query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
fe5030ceedb1134a7ad1b9ecc9949884
Determine whether the user can view a specific course.
[ { "docid": "3e667d891b5188004a8439c46bd45982", "score": "0.6292474", "text": "public function show(User $user, Course $course)\n {\n return true;\n }", "title": "" } ]
[ { "docid": "7ab429149ad48b61ef28afc12e9e4bd0", "score": "0.7487178", "text": "function can_view_quiz( $quiz_id, $course_id = 0 ) {\r\n\t\t$course = false;\r\n\t\t$view = false;\r\n\t\tif ( !$course_id ) {\r\n\t\t\t$course_id = LP_Course::get_course_by_item( $quiz_id );\r\n\t\t}\r\n\t\tif ( $course_id ) {\r\n\t\t\t$course = LP_Course::get_course( $course_id );\r\n\t\t}\r\n\r\n\t\tif ( $quiz = LP_Quiz::get_quiz( $quiz_id ) ) {\r\n\t\t\tif ( !$course ) {\r\n\t\t\t\t$course = $quiz->get_course();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( $course ) {\r\n\t\t\t$this->get_course_order( $course->id );\r\n\t\t\tif ( !$course->is( 'required_enroll' ) ) {\r\n\t\t\t\t$view = 1;\r\n\t\t\t} else {\r\n\t\t\t\tif ( $this->has( 'enrolled-course', $course->id ) || $this->has( 'finished-course', $course_id ) ) {\r\n\t\t\t\t\t$view = 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn apply_filters( 'learn_press_user_view_quiz', $view, $quiz_id, $this->id, $course_id );\r\n\t}", "title": "" }, { "docid": "c53cf8e79674e1245842c101d0c72bb6", "score": "0.7151646", "text": "function can_view_lesson( $lesson_id, $course_id = null ) {\r\n\t\t$lesson = LP_Lesson::get_lesson( $lesson_id );\r\n\t\t$view = false;\r\n\t\t// first, check if the lesson is previewable\r\n\t\tif ( $lesson->is( 'previewable' ) ) {\r\n\t\t\t$view = 1;\r\n\t\t} else {\r\n\t\t\t// else, find the course of this lesson\r\n\t\t\tif ( !$course_id ) {\r\n\t\t\t\t$course_id = LP_Course::get_course_by_item( $lesson_id );\r\n\t\t\t}\r\n\t\t\tif ( $course = LP_Course::get_course( $course_id ) ) {\r\n\t\t\t\t// if course is not required enroll so the lesson is previewable\r\n\t\t\t\tif ( !$course->is( 'required_enroll' ) ) {\r\n\t\t\t\t\t$view = 2;\r\n\t\t\t\t} elseif ( $this->has( 'enrolled-course', $course_id ) || $this->has( 'finished-course', $course_id ) ) {\r\n\t\t\t\t\t// or user has enrolled course\r\n\t\t\t\t\t$view = 3;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn apply_filters( 'learn_press_user_view_lesson', $view, $lesson_id, $this->id, $course_id );\r\n\t}", "title": "" }, { "docid": "73cc86445486c728cbabf355a45e1da6", "score": "0.6961162", "text": "function userIsAuthorizedForCourse($user_id, $event_id) {\n\n\t$db = Database::createConnection();\n\n\t$isAuthorized = false;\n\n\t$result = $db->query(\"SELECT event_whitelist\n\t\t\t\t\t FROM user\n\t\t\t\t\t WHERE id={$user_id};\");\n\n\tif ($result->num_rows > 0) {\n\t\t$whitelist = $result->fetch_assoc()['event_whitelist'];\n\t\t$event_array = split(',', $whitelist);\n\n\t\t$result = $db->query(\"SELECT course_type_id\n\t\t\t\t\t\t FROM course\n\t\t\t\t\t\t WHERE id={$event_id};\");\n\n\t\tif ($result->num_rows > 0) {\n\t\t\t$course_type_id = $result->fetch_assoc()['course_type_id'];\n\n\t\t\tif (($key = array_search($course_type_id, $event_array)) !== false) {\n\t\t\t $isAuthorized = true;\n\t\t\t}\n\t\t}\n\t}\n\n\t$db->close();\n\n\treturn $isAuthorized;\n}", "title": "" }, { "docid": "3d507e53b87bc02625e63277e06dcb76", "score": "0.67292434", "text": "public function authorize()\n {\n return auth()->user()->can('update e-learning course content');\n }", "title": "" }, { "docid": "6dd19e53a1ef6c359f5b1b908408e1ab", "score": "0.66771317", "text": "public function canViewExamUser(): bool\n {\n return $this->getRight('exam_viewuser');\n }", "title": "" }, { "docid": "f82fac79a318910a4e0439ac2b33c8d6", "score": "0.66304487", "text": "protected function userCanView()\n {\n $model = $this->findModel(Yii::$app->request->get('id'));\n\n return ( Yii::$app->user->can('contacts-view-all-contacts') || ( Yii::$app->user->can('contacts-view-his-contacts') && $model->isCurrentUserCreator() ) );\n }", "title": "" }, { "docid": "a6fdb0eaf333f4ca6306afcfc476846b", "score": "0.6602164", "text": "private function can_display(&$user, $thisid, $doctype, $courseid, $groupid, $path, $itemtype, $contextid, &$searchables) {\n global $CFG;\n\n /**\n * course related checks\n */\n // Admins can see everything, anyway.\n if (has_capability('moodle/site:config', context_system::instance())) {\n return true;\n }\n\n // First check course compatibility against user : enrolled users to that course can see.\n $mycourses = enrol_get_my_courses($user->id);\n $unenroled = !in_array($courseid, array_keys($mycourses));\n\n // If guests are allowed, logged guest can see.\n $isallowedguest = (isguestuser()) ? $DB->get_field('course', 'guest', array('id' => $courseid)) : false;\n\n if ($unenroled && !$isallowedguest) {\n return false;\n }\n\n // If user is enrolled or is allowed user and course is hidden, can he see it ?\n $visibility = $DB->get_field('course', 'visible', array('id' => $courseid));\n if ($visibility <= 0) {\n if (!has_capability('moodle/course:viewhiddencourses', context_course::instance($courseid))) {\n return false;\n }\n }\n\n /**\n * final checks\n */\n // Then give back indexing data to the module for local check.\n $searchable_instance = $searchables[$doctype];\n if ($searchable_instance->location == 'internal') {\n include_once \"{$CFG->dirroot}/local/search/documents/{$doctype}_document.php\";\n } else {\n include_once \"{$CFG->dirroot}/{$searchable_instance->location}/$doctype/search_document.php\";\n }\n $access_check_function = \"{$doctype}_check_text_access\";\n\n if (function_exists($access_check_function)) {\n $modulecheck = $access_check_function($path, $itemtype, $thisid, $user, $groupid, $contextid);\n // echo \"module said $modulecheck for item $doctype/$itemtype/$thisid\";\n return($modulecheck);\n }\n\n return true;\n }", "title": "" }, { "docid": "278684f0dbe7e152359d2cb29e2ed52f", "score": "0.65628797", "text": "public function view(User $user, Course $course) {\n return $this->isCourseTeacher($user, $course);\n }", "title": "" }, { "docid": "0a90004dfd282530d56b4391fd8a8a41", "score": "0.6559056", "text": "public function canViewExamStudent(): bool\n {\n return $this->getRight('exam_viewstudent');\n }", "title": "" }, { "docid": "76aa57a566f918ddce3cbe143c94d279", "score": "0.65289634", "text": "protected function is_my_course(Course $course) {\n $me = auth()->user();\n\n switch($me->getRol()) {\n case \"admin\":\n return true;\n default:\n\n foreach($me->courses as $myCourse) {\n if($myCourse->id == $course->id) return true;\n }\n break;\n }\n\n return false;\n }", "title": "" }, { "docid": "84a642336adba24c4498fe69f6846013", "score": "0.6521794", "text": "function isAuthorized() {\n $roles = $this->Role->calculateCMRoles();\n\n $readonly = false;\n\n\n if(!empty($this->request->params['pass'][0])) {\n $readonly = $this->Co->readonly(filter_var($this->request->params['pass'][0], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH | FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_BACKTICK));\n }\n\n\n // Construct the permission set for this user, which will also be passed to the view.\n $p = array();\n \n // Determine what operations this user can perform\n \n // Add a new CO?\n $p['add'] = $roles['cmadmin'];\n \n // Delete an existing CO?\n $p['deleteasync'] = $p['delete'] = (!$readonly && $roles['cmadmin']);\n \n // Duplicate an existing CO?\n $p['duplicate'] = $roles['cmadmin'];\n \n // Edit an existing CO?\n $p['edit'] = (!$readonly && $roles['cmadmin']);\n\n // Restore and CO marked as Garbage\n $p['restore'] = ($readonly && $roles['cmadmin']);\n\n // View all existing COs?\n $p['index'] = $roles['cmadmin'];\n \n // View an existing CO?\n $p['view'] = $roles['cmadmin'];\n \n $this->set('permissions', $p);\n return $p[$this->action];\n }", "title": "" }, { "docid": "54898e4c77ad2d9f8a5ee87473a07f42", "score": "0.65172446", "text": "public function canView()\r\n\t{\r\n\t\treturn $this->perms['visible'];\r\n\t}", "title": "" }, { "docid": "b4d5066bf3d045efe6b6a258870278bf", "score": "0.65008485", "text": "public function canViewExam(): bool\n {\n return $this->getRight('view');\n }", "title": "" }, { "docid": "99c39ff2ba6f1767f9c6a327c8f0962f", "score": "0.6462061", "text": "public function view(User $user, Section $section)\n {\n if ($user->isAdmin()) {\n return true;\n }\n\n if (!$user->active) {\n return false;\n }\n\n return $user->disciplines->contains($section->discipline);\n }", "title": "" }, { "docid": "8a7efb57f12b602c7f69269dcb774af7", "score": "0.6440859", "text": "function emc_cps_current_user_can_view() {\n\n\t/**\n\t * Default capability to grant ability to view Canceled content\n\t *\n\t * @since 0.3.0\n\t *\n\t * @return string\n\t */\n\t$capability = (string) apply_filters( 'emc_cps_default_read_capability', 'read_private_posts' );\n\n\treturn current_user_can( $capability );\n\n}", "title": "" }, { "docid": "041b2376e813f47a38d4d5d27209f77d", "score": "0.64337134", "text": "public function isAuthorized($user = null){\n if (in_array($this->request->action, ['view'])) {\n $userId = (int)$this->request->params['pass'][0];\n if($this->Auth->user('id') == $userId) {\n return true;\n }\n }\n return parent::isAuthorized($user);\n }", "title": "" }, { "docid": "14ed324b27338177cb877696230c432f", "score": "0.64032847", "text": "public function isAuthorized($user){\n\t\tif($user['role']=='teacher' || $user['role']=='manager')\n\t\t\treturn true;\n\t\telseif($user['role']=='student' && in_array($this->action, array('index','view','view_result')))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8c105332b3f34631aab413002b865051", "score": "0.63687927", "text": "public function authorize()\n {\n $this->validate($this->rules());\n $user = auth()->user()->first();\n $staff = Staff::findOrFail($this->input('staff_id'));\n $course = Course::findOrFail($this->input('course_id'));\n $semester = Semester::findOrFail($this->input('semester_id'));\n\n $school = $staff->school()->first();\n\n return (\n $user->hasRole(Role::ADMIN) || \n $user->hasRole([ \n Role::SCHOOL_OWNER, \n Role::DEAN, \n Role::HOD \n ], $school->id)\n );\n }", "title": "" }, { "docid": "b0f3b3b77a8cbfdb75e02de6235e90d2", "score": "0.6341986", "text": "public function authorize()\n {\n $this->model = $this->route('users');\n\n if (is_null($this->model)){\n $this->model = new User();\n }\n\n if ($this->isCreate() || $this->isStore()) {\n // Determine if the users is authorized to create an entry,\n return $this->can('create');\n }\n\n if ($this->isEdit() || $this->isUpdate()) {\n // Determine if the users is authorized to update an entry,\n return $this->can('update');\n }\n\n if ($this->isDelete()) {\n // Determine if the users is authorized to delete an entry,\n return $this->can('destroy');\n }\n\n // Determine if the users is authorized to view the module.\n return $this->can('view');\n }", "title": "" }, { "docid": "5090c03d5e3c1f0545aa32370c0d2c37", "score": "0.63141364", "text": "public function authorize()\n {\n return Auth::user()->id === $this->private_category->owner_id;\n }", "title": "" }, { "docid": "7852867fc7cc099596ff94a5bd404d26", "score": "0.6313951", "text": "abstract public function canView();", "title": "" }, { "docid": "1f864d1c4ab173dc9910d51f4adfae41", "score": "0.62919414", "text": "public function test_site_visibility_single_course_course_course() {\n $this->resetAfterTest();\n list ($courses, $categories) = $this->mock_structure();\n\n $generator = $this->getDataGenerator();\n $user = $generator->create_user();\n $course = $courses['A1.1'];\n $category = \\core_course_category::get($course->category);\n $wrongcategory = $categories['B1'];\n $generator->enrol_user($user->id, $course->id);\n\n $this->setUser($user);\n $time = time();\n\n // Viewing the course calendar.\n // Should see just this course, and all parent categories.\n $calendar = \\calendar_information::create($time, $course->id, null);\n\n $this->assertCount(2, $calendar->courses);\n $this->assertCount(2, $calendar->categories);\n $this->assertEquals($course->id, $calendar->courseid);\n $this->assertArrayHasKey($course->id, array_flip($calendar->courses));\n $this->assertArrayHasKey(SITEID, array_flip($calendar->courses));\n $this->assertArrayHasKey($categories['A']->id, array_flip($calendar->categories));\n $this->assertArrayHasKey($categories['A1']->id, array_flip($calendar->categories));\n $this->assertEquals(\\context_course::instance($course->id), $calendar->context);\n\n // Viewing the course calendar while specifying the category too.\n // The category is essentially ignored. No change expected.\n $calendarwithcategory = \\calendar_information::create($time, $course->id, $category->id);\n $this->assertEquals($calendar, $calendarwithcategory);\n\n // Viewing the course calendar while specifying the wrong category.\n // The category is essentially ignored. No change expected.\n $calendarwithwrongcategory = \\calendar_information::create($time, $course->id, $wrongcategory->id);\n $this->assertEquals($calendar, $calendarwithwrongcategory);\n }", "title": "" }, { "docid": "7d56c53767e291e0e9ed0b990832ebc7", "score": "0.6287217", "text": "public function view(User $user, Program $program)\n {\n return $user->hasAbility('programs.view');\n }", "title": "" }, { "docid": "a3356463f9788727db560744fe9198e3", "score": "0.62716454", "text": "public function authorize()\n {\n return $this->user()->can(\n 'edit', $this->route('user')\n );\n }", "title": "" }, { "docid": "23a55cf5edf46d7ec6ba239904075411", "score": "0.62565076", "text": "public function authorize()\n {\n if ($this->encoded_id) {\n $this->id = (new ReusablePayment)->decodeId($this->encoded_id);\n }\n\n $this->reusablePayment = ReusablePayment::findOrFail($this->id);\n\n return $this->user()->can('view', $this->reusablePayment);\n }", "title": "" }, { "docid": "a11673ba5d445464e9ed3d954c4c175e", "score": "0.6249609", "text": "public function canEdit(User $user)\n {\n return ($this->user_id == $user->id) || $user->hasAnyAccess(['buuug7.courses.access_other_courses']);\n }", "title": "" }, { "docid": "e45cb38000c87c835bc1548b4be9d50b", "score": "0.6245874", "text": "public function authorize()\n {\n $article = Article::find($this->article_id);\n return $this->user()->id == $article->user->id;\n }", "title": "" }, { "docid": "24041865ebe8b8f5f92eabcba5c43ef7", "score": "0.6214392", "text": "public function authorize()\n {\n return access()->hasPermissions(['view-backend', 'view-technician', 'manage-technician'], true);\n }", "title": "" }, { "docid": "24041865ebe8b8f5f92eabcba5c43ef7", "score": "0.6214392", "text": "public function authorize()\n {\n return access()->hasPermissions(['view-backend', 'view-technician', 'manage-technician'], true);\n }", "title": "" }, { "docid": "fca99c69a62646c9993bb1b5cad9f01e", "score": "0.6175209", "text": "public function authorize()\n {\n $statuse = $this->route('statuse');\n\n return $statuse->user_id == auth()->id();\n }", "title": "" }, { "docid": "48799ffd1245461211517c7c17b5ad6c", "score": "0.6175083", "text": "public function authorize()\n {\n return $this->user()->can('view-reports');\n }", "title": "" }, { "docid": "05590fc9a3eaa9395069921dc992b629", "score": "0.6150241", "text": "public function authorize()\n {\n //Todo check is admin\n return $this->user() != null;\n }", "title": "" }, { "docid": "7a8a5011781dd51acf7fd812548611db", "score": "0.61490417", "text": "public function canLookupCourses() {\n \treturn true;\n }", "title": "" }, { "docid": "ef4d2c5c36a7e25f4f575ccbebf35fa6", "score": "0.6144206", "text": "function can_purchase_course( $course_id ) {\r\n\t\t$course = learn_press_get_course( $course_id );\r\n\t\t$purchasable = $course->is_purchasable() && !$this->has_purchased_course( $course_id );\r\n\t\treturn apply_filters( 'learn_press_user_can_purchase_course', $purchasable, $this, $course_id );\r\n\t}", "title": "" }, { "docid": "fab3515df74c2b1183c7b69d08c5de20", "score": "0.6142223", "text": "public function authorize()\n {\n if($this->route()->hasParameter('event')) {\n $event = Event::findOrFail($this->route('event'));\n return $event && $this->user()->can('crud', $event);\n } else {\n return $this->user()->can('crud', Event::class);\n }\n }", "title": "" }, { "docid": "4420a29f61758eab4d6036663e6ab6bb", "score": "0.6126653", "text": "public function canView()\r\n {\r\n $canView = FALSE;\r\n if($this->itemId > 0)\r\n {\r\n $partnerId = $this->getPartnerId();\r\n if(current_user_can('view_'.$this->conf->getExtensionPrefix().'all_items'))\r\n {\r\n $canView = TRUE;\r\n } else if($partnerId > 0 && $partnerId == get_current_user_id() && current_user_can('view_'.$this->conf->getExtensionPrefix().'own_items'))\r\n {\r\n $canView = TRUE;\r\n }\r\n }\r\n\r\n return $canView;\r\n }", "title": "" }, { "docid": "4aed6e24f95117e36576e9c53d4aec27", "score": "0.6121333", "text": "function hasEnrollment(int $courseId, User $user): bool;", "title": "" }, { "docid": "9059bf0917e529e020e73da9aadc9d3f", "score": "0.61202526", "text": "public function userCanEdit($userContext) {\n // only instructors can edit evals\n if (!$userContext->isInstructor()) {\n return false;\n }\n\n // you need permission to edit evals\n if (!$userContext->hasPermission(\"Edit Evals\")) {\n return false;\n }\n\n // the eval has to belong to your program\n if ($userContext->program->id != $this->program_id) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "9855a5bb08d041428579ad798317c735", "score": "0.61167806", "text": "public function canLookupCourseOfferings() {\n \treturn $this->session->canLookupCourseOfferings();\n\t}", "title": "" }, { "docid": "6e3a60ccbf89f271505a7a2fd5c3c5a0", "score": "0.6110835", "text": "public function userHasAccess()\n {\n if (user()->type->name == 'backoffice' || user()->type->name == 'admin') {\n return true;\n }\n\n $userId = user()->id;\n\n $isManagerAssessor = $this->manager_assessor_id == $userId;\n\n $isChiefAssessor = $this->chief_assessor_id == $userId;\n\n $isAssistantAssessor = false;\n $isAreaManager = false;\n\n if ($this->assistantAssessors->count() > 0) {\n foreach ($this->assistantAssessors as $assistant) {\n if ($assistant->id = $userId) {\n $isAssistantAssessor = true;\n break;\n }\n }\n }\n\n if (!empty($this->area_id)) {\n $isAreaManager = $this->area->area_manager_id == $userId;\n }\n\n return $isAreaManager || $isAssistantAssessor || $isChiefAssessor || $isManagerAssessor;\n }", "title": "" }, { "docid": "1238f57bd7fca9c812c7e08a04b9d8b1", "score": "0.60951746", "text": "public function canViewExamRoom(): bool\n {\n return $this->getRight('exam_viewroom');\n }", "title": "" }, { "docid": "f09240eb597332f3cb9dae044014c527", "score": "0.6090655", "text": "protected function isAuthorizedToViewPage() {\n return PageControlFunctionsAndConsts::check_role(PageControlFunctionsAndConsts::SUPERVISING_ROLE);\n }", "title": "" }, { "docid": "4e7d719d054e5e123127f85857c061d6", "score": "0.6085189", "text": "public function isAuthorized($user)\n {\n switch ($this->Auth->user('role')) {\n case 'admin':\n if (in_array($this->request->action, ['index', 'view', 'add', 'edit', 'delete', 'getPoints'])) {\n return true;\n }\n break;\n case 'organizers':\n if (in_array($this->request->action, ['index', 'view', 'add', 'edit', 'getPoints'])) {\n return true;\n }\n break;\n // case 'participant':\n // if (in_array($this->request->action, ['index,view'])) {\n // return true;\n // }\n // break;\n }\n return false;\n }", "title": "" }, { "docid": "90b32f96ee5a6f82250dff550d91896a", "score": "0.6063472", "text": "public function authorize()\n {\n if ($this->path() == 'learning') {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "5c528e677793952976076d3dd492467d", "score": "0.60612273", "text": "public function authorize(): bool\n {\n $game = $this->route('game');\n\n return $game->user_id === auth()->id();\n }", "title": "" }, { "docid": "ca1bdb4f82e7d03f71573e2c1ecd59f3", "score": "0.6056697", "text": "public function isAuthorized()\n {\n if ($this->Auth->user('status') === 'admin') {\n return true;\n } \n if (in_array($this->request->getParam('action'), ['index','logout','login','rps','api'])) {\n return true;\n }\n\n }", "title": "" }, { "docid": "aafc12ff0512ce2fb4f697c308e5f661", "score": "0.6051761", "text": "public function authorize()\n {\n return $this->getUser()->isYou();\n }", "title": "" }, { "docid": "a5ee51c13ce7b19c27772102a42ca3da", "score": "0.60511535", "text": "public function authorize()\n {\n $contact = Contact::find(request('contact_id'));\n\n if (! $contact) {\n return false;\n }\n\n return $contact->user_id === Auth::user()->id;\n }", "title": "" }, { "docid": "9a7e2cb9b0526fbd4c215c9c8da9595f", "score": "0.60438454", "text": "public function isInstructor()\n {\n return $this->roleId == 2;\n }", "title": "" }, { "docid": "48d3c18445282e03cb39eb84ed035da6", "score": "0.6034337", "text": "public function authorize()\n {\n return $this->user()->can('backend_edit_legallibraries');\n }", "title": "" }, { "docid": "7b9393aff66375d291e098b0385a1b20", "score": "0.603261", "text": "public function authorize()\n {\n return $this->user()->can('backend_add_corruptioncases');\n }", "title": "" }, { "docid": "ade7deec94e35d2bb0dea958ecf7484e", "score": "0.60284424", "text": "public function hasAccess()\n {\n return $this->getAccess()->canViewAnything();\n }", "title": "" }, { "docid": "2f7bcd1f58a0149d67bf7d69efbcc2bd", "score": "0.6022363", "text": "public function isAuthorized($user) {\n \n $allowed = array( \"index\", \"view\" );\n if ( in_array( $this->action, $allowed )) {\n return true;\n }\n \n $allowed = array( \"add\", \"edit\", \"delete\" );\n if ( in_array( $this->action, $allowed )) {\n if ( $this->Session->read('role') === 'edit') {\n return true;\n }\n }\n \n return parent::isAuthorized($user);\n }", "title": "" }, { "docid": "f767070ea653294a5b885bc844ead2aa", "score": "0.60202503", "text": "public function show(User $user)\n {\n return $user->can('list-student') || $user->can('list-class-teacher-wise-student');\n }", "title": "" }, { "docid": "bbde3d9580b7c18564106ffdc95e2aba", "score": "0.60193336", "text": "public function view(User $user)\n {\n return $user->hasPermissionTo('degree_view');\n }", "title": "" }, { "docid": "088a1d9ae8e85f01eee9b8c803a3589a", "score": "0.6015465", "text": "public static function hasPermission($userContext)\n {\n return ($userContext->isInstructor());\n }", "title": "" }, { "docid": "a813fa1b3c106fa7925021388bf54edf", "score": "0.6012427", "text": "public function canView(){\n\t\treturn $this->viewCondition === null || $this->viewCondition->isOk();\n\t}", "title": "" }, { "docid": "bfa3c958fb0058443f22ee35367ffc08", "score": "0.60046023", "text": "public function authorize()\n {\n return $this->user()->can('backend_edit_contentarticles');\n }", "title": "" }, { "docid": "eed0ee104e748302648f3eb88bb951d7", "score": "0.6000604", "text": "public function userAuthorized()\n {\n $result = false;\n $user = $this->grav['user'];\n\n if ($user->authorized) {\n $result = $user->authorize('site.editable') || $user->authorize('admin.super') || $user->authorize('admin.pages');\n }\n return $result;\n }", "title": "" }, { "docid": "d5ff2d4b01678a797ef3219ba2b50ae6", "score": "0.5996301", "text": "public function authorize()\n {\n return $this->user()->can('list', [Team::class]);\n }", "title": "" }, { "docid": "f9955fedab1a33bfe11ebee54d00f682", "score": "0.5993794", "text": "public function canView(IdentityInterface $user, Playbook $playbook)\n {\n return $this->isAdmin($user);\n }", "title": "" }, { "docid": "8cbbd42bfa5f631e1f8978ccdd9ab829", "score": "0.5990197", "text": "function users_isEnrolled($user_id, $course_id) {\n\t\n\t\t$isEnrolled = false;\n\t\t\n\t\tif(users_exists($user_id) && courses_exists($course_id)) {\n\t\t\n\t\t\t$courseIds = users_getCourseIds($user_id);\n\t\t\tforeach($courseIds as $course) {\n\t\t\t\tif($course_id == intval($course)) {\n\t\t\t\t\t$isEnrolled = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $isEnrolled;\n\t}", "title": "" }, { "docid": "80f9611cc7474a1a8232bfe2bad2767d", "score": "0.5981905", "text": "public function authorize()\n {\n $user = auth()->user();\n\n return $user->hasRole('employee') || ($user->hasRole('customer') && $user->id == $this->request->get('id'));\n\n }", "title": "" }, { "docid": "aa6b8071bc5f4771d13de6b7bf72b468", "score": "0.5981579", "text": "public function isAuthorized($user) {\n\n\t\tif ($this->action === 'index') {\n\t\t\treturn true;\n\t\t}\n\t\tif ($this->action === 'editDefendant' || $this->action === 'edit') {\n\t\t\treturn true;\n\t\t}\n\t\tif ($this->action === 'addCase' || $this->action === 'addDefendant') {\n\t\t\treturn true;\n\t\t}\n\t\tif ($this->action === 'delete_incomplete_case' || $this->action === 'delete_def') {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn parent::isAuthorized($user);\n\t}", "title": "" }, { "docid": "31bcb55973ab3b60957f2b752077e911", "score": "0.5973676", "text": "function user_can_create_courses() {\n global $USER;\n // if user has course creation capability at any site or course cat, then return true;\n\n if (has_capability('moodle/course:create', get_context_instance(CONTEXT_SYSTEM))) {\n return true;\n }\n if ($cats = get_records('course_categories')) {\n foreach ($cats as $cat) {\n if (has_capability('moodle/course:create', get_context_instance(CONTEXT_COURSECAT, $cat->id))) {\n return true;\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "198b6eda05603a02c35e544f37192963", "score": "0.59727025", "text": "public function test_site_visibility_single_course_site() {\n $this->resetAfterTest();\n list ($courses, $categories) = $this->mock_structure();\n\n $generator = $this->getDataGenerator();\n $user = $generator->create_user();\n $course = $courses['A1.1'];\n $category = \\core_course_category::get($course->category);\n $wrongcategory = $categories['B1'];\n $generator->enrol_user($user->id, $course->id);\n\n $this->setUser($user);\n\n // Viewing the site as a whole.\n // Should see all courses that this user is enrolled in, and their\n // categories, and those categories parents.\n $calendar = \\calendar_information::create(time(), SITEID, null);\n\n $this->assertCount(2, $calendar->courses);\n $this->assertCount(2, $calendar->categories);\n $this->assertEquals(SITEID, $calendar->courseid);\n $this->assertArrayHasKey($course->id, array_flip($calendar->courses));\n $this->assertArrayHasKey(SITEID, array_flip($calendar->courses));\n $this->assertArrayHasKey($categories['A']->id, array_flip($calendar->categories));\n $this->assertArrayHasKey($categories['A1']->id, array_flip($calendar->categories));\n $this->assertEquals(\\context_system::instance(), $calendar->context);\n }", "title": "" }, { "docid": "4a6b902d3aee0b742535a85aea0c0b8a", "score": "0.5971736", "text": "public function authorize()\n {\n $trip = $this->route()->parameter('trip');\n\n if ($trip->user_id === Auth::user()->id) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "e2db71f80bd38d314500358124129398", "score": "0.5968702", "text": "public function isAuthorized($user){\n\t\tif($user['role']=='student' || $user['role']=='teacher' || $user['role']=='manager')\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "206a33cda7ffbcbc307b286f3acf0ffa", "score": "0.5966448", "text": "public function view(User $user, classroom $classroom)\n {\n if ($user->role == 'admin')\n \n return true; \n \n else if ($user->role == 'teacher')\n \n return $classroom->user->contains($user); \n \n else \n return false; \n }", "title": "" }, { "docid": "5cc9f98c135bc03d11abe81a11ca5b50", "score": "0.59648526", "text": "public function canView($member = null)\n {\n return Permission::check('CMS_ACCESS_CMSMain', 'any', $member);\n }", "title": "" }, { "docid": "2101b3976219f707fcff2de0c1ab953d", "score": "0.5959192", "text": "function can_view_tab( $tab ) {\r\n\t\t\t$privacy = intval( UM()->options()->get( 'profile_tab_' . $tab . '_privacy' ) );\r\n\t\t\t$can_view = false;\r\n\r\n\t\t\tswitch( $privacy ) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\t$can_view = is_user_logged_in() ? false : true;\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\t$can_view = is_user_logged_in() ? true : false;\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\t$can_view = get_current_user_id() == um_user( 'ID' ) ? true : false;\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\t$can_view = false;\r\n\t\t\t\t\tif( is_user_logged_in() ) {\r\n\t\t\t\t\t\t$roles = UM()->options()->get( 'profile_tab_' . $tab . '_roles' );\r\n\t\t\t\t\t\tif( is_array( $roles )\r\n\t\t\t\t\t\t && in_array( UM()->user()->get_role(), $roles ) ) {\r\n\t\t\t\t\t\t\t$can_view = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$can_view = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\treturn $can_view;\r\n\t\t}", "title": "" }, { "docid": "31beff90f07fc0d7b251495f888cf277", "score": "0.5955747", "text": "public function authorize()\n {\n\t\treturn $this->user()->isUser();\n }", "title": "" }, { "docid": "0f92675a168adaea73c96c01fd3a4d98", "score": "0.5949074", "text": "public function view(User $user)\n {\n return $user->hasPermissionTo('view user') || $user->hasPermissionWithRole('view user');\n }", "title": "" }, { "docid": "e237eaee428610bb478f20376ebaaa25", "score": "0.5946345", "text": "public function authorize()\n {\n return $this->user()->can('manage-routes');\n }", "title": "" }, { "docid": "60a6050aa49198976abe4cf6aad32bbd", "score": "0.5941381", "text": "public function authorize()\n {\n return $this->user()->type === 'admin';\n }", "title": "" }, { "docid": "acd39263de7f8581d42809fa4fb0cc78", "score": "0.5941248", "text": "public function authorize()\n {\n $id = $this->route('id');\n $project_environment = ProjectEnvironment::query()->find($id);\n return $project_environment && $project_environment->isUserAuthorized(auth()->user()->id);\n }", "title": "" }, { "docid": "d26853a2833cd847d2d0b475af5f6e1a", "score": "0.59411776", "text": "function can_enroll_course( $course_id ) {\r\n\t\t$course = LP_Course::get_course( $course_id );\r\n\t\t// if the course payment is off and required enroll\r\n\t\t$enrollable = $course && /* $course->payment == 'no' &&*/\r\n\t\t\t$course->required_enroll != 'yes';\r\n\r\n\t\t// if user cannot enroll by course settings above, check order\r\n\t\tif ( !$enrollable && ( $order_id = $this->has_purchased_course( $course_id ) ) ) {\r\n\t\t\t$order = LP_Order::instance( $order_id, true );\r\n\t\t\t$enrollable = !$this->has_enrolled_course( $course_id ) && ( $order && $order->has_status( 'completed' ) );\r\n\t\t}\r\n\t\treturn apply_filters( 'learn_press_user_can_enroll_course', $enrollable, $this, $course_id );\r\n\t}", "title": "" }, { "docid": "af18e915c34e64c36cf0b8246cfced85", "score": "0.59394944", "text": "function referentiel_is_student_course($courseid, $userid, $roleid=0){\r\n// This function returns true if userid student from course\r\nglobal $DB;\r\n if ($courseid && $userid){\r\n\t\tif ($course = $DB->get_record(\"course\", array(\"id\" => \"$courseid\"))) {\r\n\t \tif ($context = context_course::instance($course->id)){\r\n\t\t \tif ($roles = referentiel_get_student_roles()){\r\n \t foreach ($roles as $role){\r\n \t \t\tif (($roleid && $role->id==$roleid) || (!$roleid)){\r\n \t \t\tif ($users= get_role_users($role->id, $context)){\r\n \t\t\t\tforeach($users as $user){\r\n \t\t\tif ($user->id==$userid){\r\n\t\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t }\r\n \t\t }\r\n \t\t }\r\n \t\t }\r\n \t\t}\r\n\t\t }\r\n \t\t}\r\n\t\t}\r\n\t}\r\n\r\n return false;\r\n}", "title": "" }, { "docid": "5f831021264d5e34d7d1d851d5223afb", "score": "0.5937912", "text": "function referentiel_is_teacher_course($courseid, $userid, $roleid=0){\r\n// This function returns true if userid student from course\r\nglobal $DB;\r\n if ($courseid && $userid){\r\n\t\tif ($course = $DB->get_record(\"course\", array(\"id\" => \"$courseid\"))) {\r\n\t \tif ($context = context_course::instance($course->id)){\r\n\t\t \tif ($roles = referentiel_get_teacher_roles()){\r\n \t foreach ($roles as $role){\r\n \t \t\tif (($roleid && $role->id==$roleid) || (!$roleid)){\r\n \t \t\tif ($users= get_role_users($role->id, $context)){\r\n \t\t\t\tforeach($users as $user){\r\n \t\t\tif ($user->id==$userid){\r\n\t\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t }\r\n \t\t }\r\n \t\t }\r\n \t\t }\r\n \t\t}\r\n\t\t }\r\n \t\t}\r\n\t\t}\r\n\t}\r\n\r\n return false;\r\n}", "title": "" }, { "docid": "ec001bd38e23218816604180027e4b42", "score": "0.59304976", "text": "public function authorize()\n {\n return ($this->user = $this->ownableUser())? true: false;\n }", "title": "" }, { "docid": "d1818ac1c72f9aae7c13644fa878f3d6", "score": "0.59291065", "text": "function ecomhub_fi_safe_does_own_any_courses( $user_id ) {\n\n\t\tglobal $wpdb;\n\t\t$post_table_name = $wpdb->prefix . 'posts';\n\t\t$b_owns = false;\n\t\tif ( $user_id ) {\n\t\t\t//get all the courses\n\t\t\t$post_res = $wpdb->get_results( /** @lang text */\n\t\t\t\t\"\n\t\t\t\tselect p.ID as 'id' from $post_table_name p\n\t\t\t\twhere post_type='course';\"\n\t\t\t);\n\n\t\t\t$posts_ids = [];\n\t\t\tif ( ! $wpdb->last_error ) {\n\t\t\t\tif ( ! empty( $post_res ) ) {\n\t\t\t\t\tforeach ( $post_res as $ps ) {\n\t\t\t\t\t\t$posts_ids[] = $ps->id;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t//silently block on db error or empty courses\n\n\n\n\t\t\t//get the user meta data for the course starting\n\t\t\t$start_times = get_user_meta( get_current_user_id(), 'ecomhub_fi_user_start_course', true );\n\t\t\tif ( ! empty( $start_times ) && is_array( $start_times ) ) {\n\t\t\t\tforeach ( $posts_ids as $pid ) {\n\t\t\t\t\tif ( array_key_exists( $pid, $start_times ) ) {\n\t\t\t\t\t\t$b_owns = true;\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//the user has to own at least one course\n\t\t}\n\n\t\treturn $b_owns;\n\t}", "title": "" }, { "docid": "de89be5bea76bedcc4fa26e85b0d41ce", "score": "0.5926762", "text": "public function view(User $user): bool\n {\n return $user->can('Read App User');\n }", "title": "" }, { "docid": "aeb1ff55bfb0998e2a7333aba3612426", "score": "0.59240603", "text": "public function authorize()\n {\n return $this->user()->can('manage', $this->route('project'));\n }", "title": "" }, { "docid": "17f3b9a682b65ab2d447cee48e083601", "score": "0.5922203", "text": "public function authorize()\n {\n $this->id = $this->route('id');\n return auth('admin')->user()->can('manage_pages');\n }", "title": "" }, { "docid": "c3e7ff23dbfb6e6874f5e058b9265a73", "score": "0.59210545", "text": "public function authorize()\n {\n if($this->route('employee') == Auth::guard('employee')->id()) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "b22054a627c56ee2013dbfd1144e23fb", "score": "0.5918933", "text": "public function authorize()\n {\n $user = Auth::user();\n if (1 === $user->user_type_id) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "f43ac6b59ced74c81792f5602909189a", "score": "0.5906358", "text": "public function authorize()\n {\n $vehicle = (new VehiclesRepository(new Vehicle()))->findById($this->route()->parameter('vehicle_id'));\n return ($this->user()->can('edit','vehicles',$vehicle));\n }", "title": "" }, { "docid": "7493ff038140e7ba0f73ea8447c19fc3", "score": "0.59052545", "text": "public function authorize() {\n return auth()->user()->can('user', $this->route('objUser'));\n }", "title": "" }, { "docid": "70a228ec2d146c3bd4a580cceaee4cf3", "score": "0.5901593", "text": "public function view(User $user)\n {\n return $user->can_manage_users == 1 or $user->can_manage_sales == 1;\n }", "title": "" }, { "docid": "27a722a30f09e375c503cd31a5c36867", "score": "0.5883578", "text": "public function canEdit()\n {\n if( UserEntity::me()->isAdmin() || $this->teacher_id == UserEntity::me()->id ){\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "d113fb435928337d9ba99003b549fc6c", "score": "0.5883203", "text": "public static function isUserHasSomeViewAccess()\n {\n try {\n self::checkUserHasSomeViewAccess();\n return true;\n } catch (Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "491175ef895e2bd0391bca8786c1d04c", "score": "0.5881656", "text": "public function canView()\n {\n if (!$this->isModuleAccessibleOnPortal()) {\n return false;\n }\n\n if ($this->isBroadAccess()) {\n return true;\n }\n\n if ($this->isPortalAdmin()) {\n return true;\n }\n\n if (is_object($GLOBALS['APPLICATION']) && $GLOBALS['APPLICATION']->getGroupRight('sender') !== \"D\") {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "d6d1211a3aa6c3cfb70419246f369e2a", "score": "0.5877889", "text": "public function authorize()\n {\n return is_client_or_staff();\n }", "title": "" }, { "docid": "4d1ef3527cbacd3e98ac8821954c019f", "score": "0.5876584", "text": "public function canView()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "108eb1b41c498bdfb956303461873f2b", "score": "0.5872212", "text": "public function authorize()\n {\n $project = Project::find($this->route('projectId'));\n\n if (!$project)\n {\n $project = Issue::findOrFail($this->route('issue') ?? $this->route('issueId'))->project;\n }\n\n return $this->user() && $project && UserProjectRoleResolver::userHasAccessTo($this->user(), $project, UserProjectRoleResolver::USER_CAN_SEE_PROJECT);\n }", "title": "" }, { "docid": "67111946b51e489606ae7759398c7326", "score": "0.5871397", "text": "public function authorize()\n {\n if(Auth::user()->user_type === 1)\n return true;\n return false;\n }", "title": "" }, { "docid": "750df177f8b4ce22d8c1f24156e28a24", "score": "0.58699095", "text": "function canView()\n\t{\n\t\t$user =& JFactory::getUser();\n\t\t$params =& $this->getParams();\n\t\tif ($user->id != 0) {\n\t\t\tif ($params->get('captcha-showloggedin', 0) == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn parent::canView();\n\t}", "title": "" }, { "docid": "be11393be07d64c296f7ee6433a9cf92", "score": "0.5868926", "text": "public function isOnCourse($courseID, $role){\n \n global $DB, $GT;\n \n if ($role == \"STUDENT\"){\n \n $shortnames = $GT->getStudentRoles();\n $in = \\gt_create_sql_placeholders($shortnames);\n \n } elseif ($role == \"STAFF\"){\n \n $shortnames = $GT->getStaffRoles();\n $in = \\gt_create_sql_placeholders($shortnames);\n \n } else {\n \n return false;\n \n }\n \n $params = $shortnames;\n $params[] = CONTEXT_COURSE;\n $params[] = $this->id;\n $params[] = $courseID;\n \n $check = $DB->get_record_sql(\"SELECT c.id\n FROM {course} c\n INNER JOIN {context} x ON x.instanceid = c.id\n INNER JOIN {role_assignments} ra ON ra.contextid = x.id\n INNER JOIN {role} r ON r.id = ra.roleid\n WHERE r.shortname IN ({$in}) AND x.contextlevel = ? AND ra.userid = ? AND c.id = ?\", $params);\n \n return ($check) ? true : false;\n \n }", "title": "" }, { "docid": "2da87ce56b31d56a60c83620972bcdd1", "score": "0.5862502", "text": "function checkAccess () {\n if ($GLOBALS[\"pagedata\"][\"login\"] == 1) {\n if ($this->userid && $GLOBALS[\"user_show\"] == true) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return true;\n }\n }", "title": "" }, { "docid": "f77a9d345eeea4bca2d5a838bbd4920b", "score": "0.58617824", "text": "public function authorize()\n {\n return auth()->user()->can('manage-users', Structure::class);\n }", "title": "" } ]
f128107679c9f7f05b32b742a866ab08
Relacionando tabelas Relacionamento 1:N
[ { "docid": "ed6e713e26e374a603d55c18766b26b3", "score": "0.0", "text": "public function vendas() {\n // (classe que será associada, foreign_key)\n // No caso abaixo, retorna quais vendas foram feitas pro cliente X\n return $this->hasMany(Vendas::class, 'cliente_id');\n }", "title": "" } ]
[ { "docid": "ab3ae4801624ad596e7ab1ca48f9eb65", "score": "0.6878891", "text": "private function generarTablero()\n {\n $tablero = [];\n for($i = 0; $i < $this->dimension; $i++) {\n $filas = [];\n for($j = 0; $j < $this->dimension; $j++) {\n $filas[] = null;\n }\n $tablero[] = $filas;\n }\n $this->tablero = $tablero;\n }", "title": "" }, { "docid": "5540aab2e488c75fdc78c2c3ca7fac17", "score": "0.6776835", "text": "function tabela($vetorComcadastros, $vetorComIndices){//Função que cria a tabela/lista recebe o vetor cos os cadsastros e outro com os indices\n retornaEscolhidos($vetorComcadastros, $vetorComIndices);//escreve a tabela\n }", "title": "" }, { "docid": "49855642b3bb8cba04b1e74deba81bcc", "score": "0.6763274", "text": "static function VaciarTablas() {\n\n $tabla = new CpanUrlAmigables();\n $tabla->queryDelete(\"Controller='Familias' or Controller='Producto' or Controller='Fabricantes'\");\n $tabla = new CpanDocs();\n $tabla->queryDelete(\"Entity='Articulos'\");\n $tabla = new Familias();\n $tabla->truncate();\n $tabla = new Fabricantes();\n $tabla->truncate();\n $tabla = new Articulos();\n $tabla->truncate();\n unset($tabla);\n }", "title": "" }, { "docid": "329a4dfad8bab6e70e074cc4bac95eaa", "score": "0.67341465", "text": "public function lstTabela($param) {\r\n $campos = \"t.IDPROVA IDTABELA,t.IDESCOLA,t.PLACAR,t.RODADA,t.POSICAO,e.NOME NOME_ESCOLA,t.ESCOLA\";\r\n $campos.= \",p.IDPROVA,p.SIGLA,p.DESCRICAO DESCPROVA,m.DESCRICAO DESCMODALIDADE,m.ARQUIVO_PRINT,c.DESCRICAO DESCCATEGORIA,c.IDADE_MIN,c.IDADE_MAX\";\r\n $campos.= \",case WHEN p.sexo='M' THEN 'MASCULINO' WHEN p.sexo='F' THEN 'Feminino' END as DESCSEXO\";\r\n $campos.= \",qtdInscricao.qtde\";\r\n \r\n $this->bd['sql'] = \"SELECT DISTINCT \" . $campos . \" FROM ocg_prova p\"; \r\n $this->bd['sql'] .= \" INNER JOIN ocg_modalidade m ON p.IDMODALIDADE= m.IDMODALIDADE\";\r\n $this->bd['sql'] .= \" INNER JOIN ocg_categoria c ON p.idCategoria = c.idCategoria\";\r\n $joinTabela=\" LEFT\";\r\n if ($param['constaTabela']==\"sim\") {\r\n $joinTabela=\" INNER\";\r\n } \r\n $this->bd['sql'] .= $joinTabela.\" JOIN ocg_tabela t ON p.idProva = t.idProva\"; \r\n $this->bd['sql'] .= \" LEFT JOIN ocg_escola e ON t.IDESCOLA= e.IDESCOLA\";\r\n \r\n $this->bd['sql'] .= \" LEFT JOIN (SELECT ie1.idProva, count(ie1.idEscola) as qtde FROM ocg_inscricao_escola ie1 group by ie1.idProva) qtdInscricao on p.idProva = qtdInscricao.idProva\";\r\n $this->bd['sql'] .= \" LEFT JOIN (SELECT distinct t1.idProva FROM ocg_tabela t1) tabela ON p.idProva = tabela.idProva\";\r\n\r\n $and = \" WHERE\";\r\n if ($param['txtIdProva'] > 0) {\r\n $this->bd['sql'] .= $and . \" p.idProva = \" . $param['txtIdProva'];\r\n $and = ' AND';\r\n }\r\n if ($param['txtIdTabela'] > 0) {\r\n $this->bd['sql'] .= $and . \" t.IDPROVA = \" . $param['txtIdTabela'];\r\n $and = ' AND';\r\n }\r\n \r\n if ($param['txtIdModalidade'] > 0) {\r\n $this->bd['sql'] .= $and . \" m.IDMODALIDADE= \" . $param['txtIdModalidade'];\r\n $and = ' AND';\r\n }\r\n if ($param['txtIdCategoria'] > 0) {\r\n $this->bd['sql'] .= $and . \" c.idCategoria = \" . $param['txtIdCategoria'];\r\n $and = ' AND';\r\n } \r\n if ($param['txtRodada'] > 0) {\r\n $this->bd['sql'] .= $and . \" t.RODADA= \" . $param['txtRodada'];\r\n $and = ' AND';\r\n } \r\n if ($param['txtIdTipoDisputa']>0) {\r\n $this->bd['sql'] .= $and . \" p.IDTIPODISPUTA=\" . $param['txtIdTipoDisputa'];\r\n $and = ' AND';\r\n } \r\n if (!empty($param['txtPosicaoIn'])) { \r\n $this->bd['sql'] .= $and . \" t.POSICAO IN(\" . $param['txtPosicaoIn'].\")\";\r\n $and = ' AND';\r\n }\r\n $this->bd['sql'] .= $and . \" qtdInscricao.qtde>1\";\r\n \r\n $this->bd['sql'] .= \" ORDER BY t.IDPROVA, t.RODADA,t.POSICAO\";\r\n \t//echo ($this->bd['sql']);exit;\r\n return $this->cmdSQL->pesquisar($this->bd);\r\n }", "title": "" }, { "docid": "8dea19a2079094a08b8f8f132b9aa79e", "score": "0.6706165", "text": "function creaTabella()\n\t\t{\n\t\t// creazione della tabella sulla base della query sql\n\t\t$sql = \"SELECT allievi.*, corsi.rifpa, corsi.nome as nomecorso,\" .\n\t\t\t\t\"organismi.id_organismo, organismi.nome as nomeorgan,\" .\n\t\t\t\t\"amministrazioni.sigla, amministrazioni.nome as nomeamm\" .\n\t\t\t\t\" FROM allievi\" .\n\t\t\t\t\" LEFT JOIN corsi ON allievi.id_corso=corsi.id_corso\".\n\t\t\t\t\" LEFT JOIN amministrazioni ON corsi.id_amministrazione=amministrazioni.id_amministrazione\".\n\t\t\t\t\" LEFT JOIN organismi ON corsi.id_organismo=organismi.id_organismo\";\n\t\t$tabella = $this->dammiTabella($sql);\n\t\t\n\t\t// definizione delle proprieta' di base della tabella\n\t\t$tabella->titolo = \"allievi\";\n\t\t$tabella->paginaModulo = \"moduloallievi.php\";\n\t\t\n\t\t// definizione delle colonne della tabella e delle relative proprieta'\n\t\t$tabella->aggiungiColonna(\"id_allievo\", \"ID\", true, false, true, WATBL_ALLINEA_DX, WATBL_FMT_INTERO);\n\t\t$col = $tabella->aggiungiColonna(\"nome\", \"Nome\");\n\t\t\t$col->aliasDi = 'allievi.nome';\n\t\t$tabella->aggiungiColonna(\"codice_fiscale\", \"Codice fiscale\");\n\t\t$tabella->aggiungiColonna(\"rifpa\", \"Rif. P.A.\");\n\t\t$col = $tabella->aggiungiColonna(\"nomecorso\", \"Corso\");\n\t\t\t$col->aliasDi = 'corsi.nome';\n\t\t$col = $tabella->aggiungiColonna(\"id_organismo\", \"Cod. org.\", true, true, true, WATBL_ALLINEA_DX, WATBL_FMT_INTERO);\n\t\t\t$col->aliasDi = 'organismi.id_organismo';\n\t\t$col = $tabella->aggiungiColonna(\"nomeorgan\", \"Organismo\");\n\t\t\t$col->aliasDi = 'organismi.nome';\n\t\t$col = $tabella->aggiungiColonna(\"sigla\", \"Amministrazione\");\n\t\t$col = $tabella->aggiungiColonna(\"flag_ammissione\", \"Ammesso\", true, false, false, WATBL_ALLINEA_CENTRO);\n\t\t\t$col->funzioneCalcolo = array($this, \"mostraAmmissione\");\n\t\t$col = $tabella->aggiungiColonna(\"flag_promozione\", \"Promosso\", true, false, false, WATBL_ALLINEA_CENTRO);\n\t\t\t$col->funzioneCalcolo = array($this, \"mostraPromozione\");\n\t\t$col = $tabella->aggiungiColonna(\"nome_file_curriculum\", \"Curriculum\");\n\t\t\t$col->link = true;\n\t\t\n\t\t// se la tabella fosse destinata anche all'input (post o rpc), questo \n\t\t// sarebbe il punto dove chiamare $tabella->leggiValoriIngresso()\n\t\t\t\n\t\t// lettura dal database delle righe che andranno a popolare la tabella\n\t\tif (!$tabella->caricaRighe())\n\t\t\t$this->mostraErroreDB($tabella->righeDB->connessioneDB);\n\t\t\n\t\treturn $tabella;\n\t\t}", "title": "" }, { "docid": "bdde60d5fc779dd0b951b5010ee925ff", "score": "0.670108", "text": "public function listaTablas();", "title": "" }, { "docid": "18f782b3474c0c9d14fa68066b6c6f4a", "score": "0.6611978", "text": "abstract public function tables();", "title": "" }, { "docid": "a8fba7a508386fda3b86121695cf6d28", "score": "0.6563145", "text": "public function TablaNomina()\n {\n $datos= $this->mdlNomina->ConsultarEmpleadoNomina();\n require APP . 'view/_templates/header.php';\n require APP . 'view/nomina/TablaNomina.php';\n require APP . 'view/_templates/footer.php';\n }", "title": "" }, { "docid": "d1ab8e1dff74e68c7637243a88cecc8d", "score": "0.64743817", "text": "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = 'SELECT L.`descripcion`,L.`clase`, L.`tipo`, L.`categoria`, L.`marca`, C.descripcion as Clasificacion,'.$editar.','.$eliminar.' \n FROM `lubricantes` L\n INNER JOIN clasificaciones C ON L.cod_clasificacion = C.id_clasificaciones\n WHERE L.activo = 1\n ORDER BY L.marca,L.clase,C.descripcion'\n ;\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 8, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "title": "" }, { "docid": "c14a5f846fdcde101db081852898d54a", "score": "0.64505136", "text": "function m_tablaObjetivo($consulta,$tipo){\n \t $result=$this->m_query($consulta);\n \t echo \"<center>\";\n \t echo \"<table width=95% class='tbl'>\n \t <tr>\";\n \t echo \"<td class='num'>No.</td>\";\n \t echo \"<td class='num'></td>\";\n \t echo \"<td class='num'>Objetivo Especifico </td>\";\n \t \n \t echo \"</tr>\"; \t \n \t $cont = $main = 0;\n \t while ($registro = pg_fetch_array($result, null, PGSQL_NUM)) {\n \t \t$objetivo = $registro[0];\n \t \t\n \t \t$cont=$cont+1;\n \t \tif($cont%2 == 0){\n echo \"<tr class='st2'>\";\n \t \t}else{\n \t \t\techo \"<tr class='st1'>\";\n \t \t}\n \t \n \t echo \"<th class='num'>\",$cont,\"</th>\";\n \t echo \"<th class='num'>\";\n \t echo \"<a href='eliminarobjetivo.php?n=$objetivo&t=$tipo'><img src='imagenes/eliminar.png' height='23' width='23'/></a>\";\n \t echo \"</th>\";\n echo \"<th>\",$registro[2],\"</th>\";\n \n \t \n \t echo \"</tr>\"; } \n \techo \"</table>\"; \n \techo \"<center>\";\n pg_free_result($result);\n }", "title": "" }, { "docid": "0dde52781754776b9046550afcdbf52a", "score": "0.64261454", "text": "public function gerarLinhas() {\n //nao tem tabela para pesquisa\n }", "title": "" }, { "docid": "2e2dab5a9db5f9ff2ceda4776302d349", "score": "0.6399995", "text": "public function tabla_multiples_actividades_paciente($param){\n $datos = $param;\n $this->CI->load->library('table'); \n $param_tabla = array('id'=>'tbl_actividades');\n $this->CI->table->set_template($this->tabla_estilo_comun($param_tabla)); \n $this->CI->table->set_heading('Nro','Actividad','Atendido',' Estado');\n $i=1;\n foreach ($datos as $dato): \n $estudio = $dato['tx_nb_est'];\n $etiqueta_esp = '';\n $etiqueta_proc = '';\n $etiqueta_ama = '';\n if ($dato['tx_nb_esp'] != 'No Aplica'){\n $etiqueta_esp = $this->plantilla_resaltar_dato_label_default($dato['tx_nb_esp']);\n } \n if ($dato['tx_nb_proc'] != 'No Aplica' ){\n $etiqueta_proc = $this->plantilla_resaltar_dato_label_default($dato['tx_nb_proc']);\n } \n if ($dato['tx_nombre_ama'] != 'No Aplica' ){\n $etiqueta_ama = $this->plantilla_resaltar_dato_label_default($dato['tx_nombre_ama']);\n } \n \n $estudio = $estudio.$etiqueta_esp.$etiqueta_proc.$etiqueta_ama;\n \n $usuario_reserva = $this->plantilla_resaltar_dato_label_default('Por asignar');\n if(!empty($dato['tx_nombre_apellido_usr_reserva'])){\n $usuario_reserva = $this->plantilla_resaltar_dato_label_success($dato['tx_nombre_apellido_usr_reserva']); \n }\n $estado = $this->color_estado_atencion($dato['tx_estado']);\n $this->CI->table->add_row($i,$estudio,$usuario_reserva,$estado);\n $i++;\n endforeach;\n \n return $this->CI->table->generate();\n }", "title": "" }, { "docid": "f8f26d10b9c930ed88d1c8715c0e6e83", "score": "0.6394394", "text": "function m_tablaPrincipal($consulta,$tipo){\n \t $result=$this->m_query($consulta);\n \t echo \"<center>\";\n \t echo \"<table width=90% class='tbl'>\n \t <tr>\";\n \t echo \"<td class='num'>No.</td>\";\n \t echo \"<td class='num'></td>\";\n \t $posicion=0;\n \t \t while ($posicion < 1) { \n \t echo \"<td>\",pg_field_name($result,1),\"</td>\"; \n \t $posicion++;\n \t }\n \t echo \"<td>Status</td>\";\n \t echo \"</tr>\"; \t \n \t $cont = $main = 0;\n \t while ($registro = pg_fetch_array($result, null, PGSQL_NUM)) {\n \t \t$key = $registro[0];\n \t \t$cont=$cont+1;\n \t \tif($cont/2 == 1){\n echo \"<tr class='st2'>\";\n \t \t}else{\n \t \t\techo \"<tr class='st1'>\";\n \t \t}\n \t \n \t echo \"<th class='num'>\",$cont,\"</th>\";\n \t echo \"<th class='num'>\";\n \t echo \"<a href='eliminarproyecto.php?n=$key'><img src='imagenes/eliminar.png' height='23' width='23'/></a>\";\n \t echo \"</th>\";\n \t echo \"<th><a href='adondeir.php?p=$key&t=$tipo'>\",$registro[1],\"</a></th>\";\n \t if($registro[2]==1){\n \t \techo \"<th>Registrado</th>\"; \n \t }else{\n \t \techo \"<th>Registro Pendiente</th>\";\n \t }\n \t /* for($i=0; $i<count($registro); $i++){ \n \t echo \"<td bgcolor='#088A29'>\",$registro[1],\"</td>\";\n \t }*/\n\n \t echo \"</tr>\"; } \n \techo \"</table>\"; \n \techo \"<center>\";\n pg_free_result($result);\n }", "title": "" }, { "docid": "38a1eb1a79701e768cfd5d4a4463c171", "score": "0.6377045", "text": "public function getTabla1($tipo, $idPeriodo, $vista, $perfilUsuario, $catalogDepartamentoId, $catalogoPlantaId, $estatusRH, $nombrePlanta){\n\n\t\t$direccionamiento = $this->direccionamiento(MasterDom::getData('action'));\n\t\t$direccionamiento = \"checadorFechas\";\n\n\t\t$tabla = \"\";\n\t\tforeach (GeneralDao::getColaboradores($tipo, $perfilUsuario, $catalogDepartamentoId, $catalogoPlantaId, $estatusRH, $nombrePlanta) as $key => $value) {\n\t\t\t$tabla .=<<<html\n\t\t\t\t<tr>\n\t\t\t\t\t<td style=\"text-align:center; vertical-align:middle;\"><img class=\"foto\" src=\"/img/colaboradores/{$value['foto']}\"/></td>\n\t\t\t\t\t<td style=\"text-align:center; vertical-align:middle;\">{$value['nombre']} <br>{$value['apellido_paterno']}<br> {$value['apellido_materno']}</td>\n\t\t\t\t\t<td style=\"text-align:center; vertical-align:middle;\">\n\t\t\t\t\t\t<b>Depmt</b>: {$value['nombre_departamento']} <br>\n\t\t\t\t\t\t<b>Puesto</b>: {$value['nombre_puesto']} <br>\n\t\t\t\t\t\t<b>Ubicaion</b>: {$value['nombre_ubicacion']}\n\t\t\t\t\t</td>\n\t\t\t\t\t<td style=\"text-align:center; vertical-align:middle;\">{$value['nombre_empresa']}</td>\n\t\t\t\t\t<td style=\"text-align:center; vertical-align:middle;\">{$value['numero_empleado']}</td>\n\t\t\t\t\t<td style=\"text-align:center; vertical-align:middle;\">\n\t\t\t\t\t\t<a href=\"/Incidencia/{$direccionamiento}/{$value['catalogo_colaboradores_id']}/{$idPeriodo}/{$vista}/{$accion}\" type=\"submit\" name=\"id_empresa\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i> </a>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\nhtml;\n \t}\n \treturn $tabla;\n }", "title": "" }, { "docid": "aa1c5c128d596eb4bfcfd565f534b6b0", "score": "0.63640314", "text": "function m_tablaAlumnos($consulta,$tipo){\n \t $result=$this->m_query($consulta);\n \t echo \"<center>\";\n \t echo \"<table width=95% class='tbl'>\n \t <tr>\";\n \t echo \"<td class='num'>No.</td>\";\n \t echo \"<td class='num'></td>\";\n \t echo \"<td class='num'>Numero Control </td>\";\n \t echo \"<td class='num'>Nombre</td>\";\n \t echo \"<td class='num'>Institucion</td>\";\n \t echo \"<td class='num'>Semestre</td>\";\n \t echo \"<td class='num'>Grado</td>\";\n \t echo \"<td class='num'>Correo</td>\"; \n \t \n \t echo \"</tr>\"; \t \n \t $cont = $main = 0;\n \t while ($registro = pg_fetch_array($result, null, PGSQL_NUM)) {\n \t \t$ncontrol = $registro[1];\n \t \t\n \t \t$cont=$cont+1;\n \t \tif($cont%2 == 0){\n echo \"<tr class='st2'>\";\n \t \t}else{\n \t \t\techo \"<tr class='st1'>\";\n \t \t}\n \t \n \t echo \"<th class='num'>\",$cont,\"</th>\";\n \t echo \"<th class='num'>\";\n \t echo \"<a href='eliminaralumno.php?n=$ncontrol&t=$tipo'><img src='imagenes/eliminar.png' height='23' width='23'/></a>\";\n \t echo \"</th>\";\n \n \n \t$consulta = $this->m_query(\"select * from alumno where no_control='$ncontrol';\"); \n $dato = pg_fetch_object($consulta);\n //$status = $dato->nombres;\n echo \"<th>\",$registro[1],\"</th>\";\n echo \"<th>\",$dato->nombre,\"</th>\";\n \t echo \"<th></th>\";\n \t echo \"<th>\",$dato->id_grado,\"</th>\";\n \t echo \"<th></th>\";\n \t echo \"<th>\",$dato->correo,\"</th>\"; \n \t \n \t echo \"</tr>\"; } \n \techo \"</table>\"; \n \techo \"<center>\";\n pg_free_result($result);\n }", "title": "" }, { "docid": "fd67336b0eb81f4c270d24640024293a", "score": "0.63637805", "text": "function m_tablaActividades($consulta){\n \t $result=$this->m_query($consulta);\n \t echo \"<center>\";\n \t echo \"<table width=95% class='tbl'>\n \t <tr>\";\n \t echo \"<td class='num'>No.</td>\";\n \t echo \"<td class='num'></td>\";\n \t echo \"<td class='num'>Responsable Actividad </td>\";\n \t echo \"<td class='num'>Actividad</td>\";\n \t echo \"<td class='num'>Periodo Realizacion</td>\";\n \t echo \"<td class='num'>Resultado Entregable </td>\";\n \t echo \"<td class='num'>Partida Solicitada </td>\";\n \t echo \"<td class='num'>Monto Solicitado </td>\";\n \t echo \"<td class='num'>Institucion </td>\";\n \t echo \"<td class='num'>Descripcion de Bienes </td>\";\n \t \n \t echo \"</tr>\"; \t \n \t $cont = $main = 0;\n \t while ($registro = pg_fetch_array($result, null, PGSQL_NUM)) {\n \t \t$actividad = $registro[0];\n \t \t\n \t \t$cont=$cont+1;\n \t \tif($cont%2 == 0){\n echo \"<tr class='st2'>\";\n \t \t}else{\n \t \t\techo \"<tr class='st1'>\";\n \t \t}\n \t \n \t echo \"<th class='num'>\",$cont,\"</th>\";\n \t echo \"<th class='num'>\";\n \t echo \"<a href='eliminaractividad.php?n=$actividad'><img src='imagenes/eliminar.png' height='23' width='23'/></a>\";\n \t echo \"</th>\";\n echo \"<th>\",$registro[2],\"</th>\";\n echo \"<th>\",$registro[1],\"</th>\";\n echo \"<th>\",$registro[3],\" - \",$registro[4],\"</th>\";\n $consulta = $this->m_query(\"select descrip from resultadoentregable where id_resulentreg='\".$registro[5].\"';\"); \n $dato = pg_fetch_object($consulta);\n echo \"<th>\",$dato->descrip,\"</th>\";\n $consulta = $this->m_query(\"select descrip from partida where id_partida='\".$registro[6].\"';\"); \n $dato = pg_fetch_object($consulta);\n echo \"<th>\",$dato->descrip,\"</th>\"; \n echo \"<th>\",$registro[9],\"</th>\";\n $consulta = $this->m_query(\"select siglas from institucionguber where id_institucionguber='\".$registro[8].\"';\"); \n $dato = pg_fetch_object($consulta);\n echo \"<th>\",$dato->siglas,\"</th>\";\n echo \"<th>\",$registro[11],\"</th>\";\n \n \t \n \t echo \"</tr>\"; } \n \techo \"</table>\"; \n \techo \"<center>\";\n pg_free_result($result);\n }", "title": "" }, { "docid": "f2283f3502a36fea6b7a24263f0ecd4c", "score": "0.63002616", "text": "function tableauDispositif(){\n\t\t\t$resultat = \"<table>\\n<tr><th>Code du Dispositif</th><th>Nom du Dispositif</th></tr>\\n\";\n\t\t\t$table = null;\n\t\t\t$table = TableRegistry::get('dispositif')\n\t\t \t->find()\n\t\t \t->toArray();\n\n\t\t foreach($table as $data){\n\t\t\t\t$resultat.=\"<tr><td>\".$data['CodeDispositif'].\"</td><td>\".$data['NomDispositif'].\"</td></tr>\\n\";\n\t\t\t}\n\t\t\t$resultat.=\"</table>\";\n\t\t\treturn $resultat;\n\t\t}", "title": "" }, { "docid": "34561bbf4f37fcfd2a51b1fc3564c564", "score": "0.628844", "text": "public function tabelapaginada()\n {\n //endereço atual da página\n $endereco = $_SERVER ['PHP_SELF'];\n /* Constantes de configuração */\n define('QTDE_REGISTROS', 2);\n define('RANGE_PAGINAS', 3);\n /* Recebe o número da página via parâmetro na URL */\n $pagina_atual = (isset($_GET['page']) && is_numeric($_GET['page'])) ? $_GET['page'] : 1;\n /* Calcula a linha inicial da consulta */\n $linha_inicial = ($pagina_atual - 1) * QTDE_REGISTROS;\n /* Instrução de consulta para paginação com MySQL */\n $sql = \"SELECT * FROM tb_livro LIMIT {$linha_inicial}, \" . QTDE_REGISTROS;\n $statement = Conexao::getInstance()->prepare($sql);\n $statement->execute();\n $dados = $statement->fetchAll(PDO::FETCH_OBJ);\n /* Conta quantos registos existem na tabela */\n $sqlContador = \"SELECT COUNT(*) AS total_registros FROM tb_livro\";\n $statement = Conexao::getInstance()->prepare($sqlContador);\n $statement->execute();\n $valor = $statement->fetch(PDO::FETCH_OBJ);\n /* Idêntifica a primeira página */\n $primeira_pagina = 1;\n /* Cálcula qual será a última página */\n $ultima_pagina = ceil($valor->total_registros / QTDE_REGISTROS);\n /* Cálcula qual será a página anterior em relação a página atual em exibição */\n $pagina_anterior = ($pagina_atual > 1) ? $pagina_atual - 1 : 0;\n /* Cálcula qual será a pŕoxima página em relação a página atual em exibição */\n $proxima_pagina = ($pagina_atual < $ultima_pagina) ? $pagina_atual + 1 : 0;\n /* Cálcula qual será a página inicial do nosso range */\n $range_inicial = (($pagina_atual - RANGE_PAGINAS) >= 1) ? $pagina_atual - RANGE_PAGINAS : 1;\n /* Cálcula qual será a página final do nosso range */\n $range_final = (($pagina_atual + RANGE_PAGINAS) <= $ultima_pagina) ? $pagina_atual + RANGE_PAGINAS : $ultima_pagina;\n /* Verifica se vai exibir o botão \"Primeiro\" e \"Pŕoximo\" */\n $exibir_botao_inicio = ($range_inicial < $pagina_atual) ? 'mostrar' : 'esconder';\n /* Verifica se vai exibir o botão \"Anterior\" e \"Último\" */\n $exibir_botao_final = ($range_final > $pagina_atual) ? 'mostrar' : 'esconder';\n if (!empty($dados)):\n echo \"\n <table class='table table-striped table-bordered'>\n <thead>\n <tr style='text-transform: uppercase;' class='active'>\n <th style='text-align: center; font-weight: bolder;'>ID</th>\n <th style='text-align: center; font-weight: bolder;'>Título</th>\n <th style='text-align: center; font-weight: bolder;'>Ano</th>\n <th style='text-align: center; font-weight: bolder;'>Edição</th>\n <th style='text-align: center; font-weight: bolder;'>Categoria</th>\n <th style='text-align: center; font-weight: bolder;'>Editora</th>\n <th style='text-align: center; font-weight: bolder;' colspan='2'>Ações</th>\n </tr>\n </thead>\n <tbody>\";\n foreach ($dados as $source):\n echo \"<tr>\n <td style='text-align: center'>\" . $source->idtb_livro . \"</td>\n <td style='text-align: center'>\" . $source->titulo . \"</td>\n <td style='text-align: center'>\" . $source->ano . \"</td>\n <td style='text-align: center'>\" . $source->edicao . \"</td>\n <td style='text-align: center'>\" . $source->tb_categoria_idtb_categoria . \"</td>\n <td style='text-align: center'>\" . $source->tb_editora_idtb_editora . \"</td>\n <td style='text-align: center'><a href='?act=upd&id=\" . $source->idtb_livro . \"' title='Alterar'><i class='ti-reload'></i></a></td>\n <td style='text-align: center'><a href='?act=del&id=\" . $source->idtb_livro . \"' title='Remover'><i class='ti-close'></i></a></td>\n </tr>\";\n endforeach;\n echo \"\n</tbody>\n </table>\n <div class='box-paginacao' style='text-align: center'>\n <a class='box-navegacao $exibir_botao_inicio' href='$endereco?page=$primeira_pagina' title='Primeira Página'> Primeira |</a>\n <a class='box-navegacao $exibir_botao_inicio' href='$endereco?page=$pagina_anterior' title='Página Anterior'> Anterior |</a>\n\";\n /* Loop para montar a páginação central com os números */\n for ($i = $range_inicial; $i <= $range_final; $i++):\n $destaque = ($i == $pagina_atual) ? 'destaque' : '';\n echo \"<a class='box-numero $destaque' href='$endereco?page=$i'> ( $i ) </a>\";\n endfor;\n echo \"<a class='box-navegacao $exibir_botao_final' href='$endereco?page=$proxima_pagina' title='Próxima Página'>| Próxima </a>\n <a class='box-navegacao $exibir_botao_final' href='$endereco?page=$ultima_pagina' title='Última Página'>| Última </a>\n </div>\";\n else:\n echo \"<p class='bg-danger'>Nenhum registro foi encontrado!</p>\n \";\n endif;\n }", "title": "" }, { "docid": "9da02a7f7d9dfd69df6fe595a2b3668d", "score": "0.62870735", "text": "public function Tabla()\r\n {\r\n if(!\\Schema::hasTable('declaracion_formato'))\r\n {\r\n \\Schema::create('declaracion_formato', function(Blueprint $table)\r\n {\r\n $table->integer('declaracion_id')->unsigned()->default(null);\r\n $table->foreign('declaracion_id')->references('id')->on('declaraciones')->onDelete('cascade');\r\n $table->integer('formato_id');\r\n $table->boolean('estatus')->default(0);\r\n $table->primary(['declaracion_id', 'formato_id']);\r\n });\r\n }\r\n }", "title": "" }, { "docid": "93ba0642fdc504d90378f36d7e83bc42", "score": "0.62610924", "text": "abstract protected function modelTable();", "title": "" }, { "docid": "8a6f193c197dca09eee4f0b0e5cc5e4d", "score": "0.6230815", "text": "public function tablaMarcacionEmpleadosAudiotira($parametros) {\n $oLRrhh = new LRrhh();\n $o_TablaHtmlx = new tablaDHTMLX();\n $arrayFilas = $oLRrhh->tablaMarcacionEmpleadosAudiotira($parametros);\n //$arrayTablaMarcacionEmpleadosAudiotira = is_array($arrayTablaMarcacionEmpleadosAudiotira) ? $arrayTablaMarcacionEmpleadosAudiotira : array();\n\n $arrayCabecera = array(\"0\" => \"Modificado por Usuario\", \"1\" => \"Fecha Marcación\", \"2\" => \"Fecha Registro\", \"3\" => \"Modificacion\");\n $arrayTamano = array(\"0\" => \"175\", \"1\" => \"115\", \"2\" => \"115\", \"3\" => \"20\");\n $arrayTipo = array(\"0\" => \"ro\", \"1\" => \"ro\", \"2\" => \"ro\", \"3\" => \"ro\");\n $arrayCursor = array(\"0\" => \"default\", \"1\" => \"default\", \"2\" => \"default\", \"3\" => \"default\");\n $arrayHidden = array(\"0\" => \"false\", \"1\" => \"false\", \"2\" => \"false\", \"3\" => \"true\");\n $arrayAling = array(\"0\" => \"center\", \"1\" => \"center\", \"2\" => \"center\", \"3\" => \"center\");\n return $o_TablaHtmlx->generaTabla($arrayCabecera, $arrayFilas, $arrayTamano, $arrayTipo, $arrayCursor, $arrayHidden, $arrayAling);\n\n\n\n// $oLMantenimientoGeneral = new LMantenimientoGeneral();\n// $o_TablaHtmlx = new tablaDHTMLX();\n// $arrayFilas =$oLMantenimientoGeneral->tablaSucursalesXidArea($idArea);\n// \n// $arrayCabecera=array(0=>\"idSedeEmpresaArea\",1=>\"IdSedeEmpresa\",2=>\"Sede\",3=>\"idArea\",4=>\"Área\",5=>\"estado\",6=>\"Estado\",7=>\"Editar\",8=>\"Eliminar\");\n// $arrayTamano=array(0=>\"150\",1=>\"100\",2=>\"200\",3=>\"100\",4=>\"290\",5=>\"100\",6=>\"150\",7=>\"60\",8=>\"60\");\n// $arrayTipo=array(0=>\"ro\",1=>\"ro\",2=>\"ro\",3=>\"ro\",4=>\"ro\",5=>\"ro\",6=>\"ro\",7=>\"img\",8=>\"img\");\n// $arrayCursor=array(0=>\"default\",1=>\"default\",2=>\"default\",3=>\"default\",4=>\"default\",5=>\"default\",6=>\"default\",7=>\"default\",8=>\"default\");\n// $arrayHidden=array(0=>\"true\",1=>\"true\",2=>\"false\",3=>\"true\",4=>\"false\",5=>\"true\",6=>\"false\",7=>\"true\",8=>\"false\");\n// $arrayAling=array(0=>\"left\",1=>\"left\",2=>\"left\",3=>\"left\",4=>\"left\",5=>\"left\",6=>\"left\",7=>\"center\",8=>\"center\");\n// return $o_TablaHtmlx->generaTabla($arrayCabecera,$arrayFilas,$arrayTamano,$arrayTipo,$arrayCursor,$arrayHidden,$arrayAling);\n// \n }", "title": "" }, { "docid": "1443f59e7d47f7fd49f24e1f5c7e1b6d", "score": "0.62251514", "text": "function fonctTable($tab){\r\n $nb=count($tab);\r\n //si on recoit un tableau de donnée non vide\r\n if($nb!=0){\r\n //initialisation tableau\r\n $table='<table class=\"table col-md-8\"><tr class=\"row\"><th class=\"col-md-3\">Numero</th><th class=\"col-md-3\">Date</th><th class=\"col-md-3\">Redacteur</th><th class=\"col-md-3\">Visualisation</th></tr>';\r\n foreach($tab as $ligne){\r\n //on créé des variable\r\n $num=$ligne['rdv_id'];\r\n $date=$ligne['rdv_date'];\r\n $date=date_create($date);\r\n $date=date_format($date,\"d/m/Y\");\r\n $redac=$ligne['ens_nom'].\" \".$ligne['ens_prenom'];\r\n //on ajoute une ligne au tableau\r\n $table=$table.'<tr class=\"row\"><td class=\"col-md-3\">'.$num.'</td><td class=\"col-md-3\">'.$date.'</td><td class=\"col-md-3\">'.$redac.'</td><td class=\"col-md-3\"><a href=\"rapport_read.php?id='.$num.'\"><span class=\"btn btn-large btn-success\">Voir</span></a></td></tr>';\r\n }\r\n $table=$table.\"</table>\";\r\n }else{\r\n //sinon le tab est vide\r\n $table='<table class=\"table col-md-8\"><tr class=\"row\"><th>Aucun rapport</th></tr></table>';\r\n }\r\n return $table;\r\n}", "title": "" }, { "docid": "206d8d22d259fc3da5d9ab48372a0018", "score": "0.62137115", "text": "function tabla_mov_incompletos_nominas($mes, $anio) {\r\n $mysqli = conectar_db();\r\n selecciona_db($mysqli);\r\n\r\n\r\n //$Consulta = \"SELECT a.id, a.fecha, a.hora, a.origen, a.origen, a.monto, a.tipo FROM movimiento a, movimientoNominas b WHERE a.activo = 1 AND b.idMov = a.id AND (b.realizado = 0 || a.realizado = 0 || (SELECT c.realizado FROM disperciones c WHERE c.realizado = 0 AND c.idMov = a.id LIMIT 1) = 0) AND a.tipo = 2 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' GROUP BY a.id ORDER BY a.fecha, a.hora ASC\";\r\n $Consulta = \"SELECT a.id, a.fecha, a.hora, a.origen, a.origen, a.monto, a.tipo FROM movimiento a, movimientoNominas b WHERE a.activo = 1 AND b.idMov = a.id AND a.tipo = 2 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' GROUP BY a.id ORDER BY a.fecha, a.hora ASC\";\r\n $pConsulta = consulta_tb($mysqli, $Consulta);\r\n\r\n if(!$pConsulta){\r\n echo \"No se encontrarón resultados para esta consulta.\";\r\n }else{\r\n $i = 1;\r\n echo \"<tr><td id='noMov'><b>\",'No.',\"</b></td>\r\n <td class='fechaMov'><b>\",'Fecha',\"</b></td>\r\n <td class='horaMov'><b>\",'Hora',\"</b></td>\r\n <td id='empOrig'><b>\",'Origen',\"</b></td>\r\n <td id='empMov'><b>\",'Empresa',\"</b></td>\r\n <td class='montMov'><b>\",'Monto',\"</b></td>\r\n <td class='botnMov'><b>\",'Detalles',\"</b></td>\r\n <td class='botnMov'><b>\",'Final',\"</b></td></tr>\";\r\n while($row=mysqli_fetch_array($pConsulta)){\r\n $Consulta2 = \"SELECT * FROM disperciones WHERE idMov = $row[0]\";\r\n $pConsulta2 = consulta_tb($mysqli, $Consulta2);\r\n $row4=mysqli_fetch_array($pConsulta2);\r\n if(!$row4){\r\n if($row[6] == 2){\r\n $row[4] = \"<-----NÓMINA----->\";\r\n }else if($row[6] == 3){\r\n $row[4] = \"----->SÍMPLE<-----\";\r\n }\r\n echo \"<tr><td>\", $row[0],\"</td>\r\n <td class='fechaMov'>\", date_format(date_create($row[1]), 'd / m / Y'),\"</td>\r\n <td class='horaMov'>\", $row[2],\"</td>\r\n <td>\", $row[3],\"</td>\r\n <td>\", $row[4],\"</td>\r\n <td class='montMov'>\", $row[5],\"</td>\r\n <td class='botnMov'><input type='button' value='Detalles' onClick='validar(\",$i,\", 2)'></td>\r\n <td class='botnMov'><input type='button' value='Finalizar' onClick='validar2(\",$i,\", 2)'></td></tr>\";\r\n $i++;\r\n }else{\r\n $Consulta3 = \"SELECT a.realizado, b.realizado FROM disperciones a, movimiento b WHERE a.idMov = $row[0] AND b.id = $row[0] AND (a.realizado = 0 || b.realizado = 0) LIMIT 1\";\r\n $pConsulta3 = consulta_tb($mysqli, $Consulta3);\r\n\t\t if(!$pConsulta3){\r\n\t\t \r\n\t\t }else{\r\n while($row2=mysqli_fetch_array($pConsulta3)){\r\n if($row2[0] == 0 || $row2[1] == 0){\r\n if($row[6] == 2){\r\n $row[4] = \"<-----NÓMINA----->\";\r\n }else if($row[6] == 3){\r\n $row[4] = \"----->SÍMPLE<-----\";\r\n }\r\n echo \"<tr><td>\", $row[0],\"</td>\r\n <td class='fechaMov'>\", date_format(date_create($row[1]), 'd / m / Y'),\"</td>\r\n <td class='horaMov'>\", $row[2],\"</td>\r\n <td>\", $row[3],\"</td>\r\n <td>\", $row[4],\"</td>\r\n <td class='montMov'>\", $row[5],\"</td>\r\n <td class='botnMov'><input type='button' value='Detalles' onClick='validar(\",$i,\", 2)'></td>\r\n <td class='botnMov'><input type='button' value='Finalizar' onClick='validar2(\",$i,\", 2)'></td></tr>\";\r\n $i++;\r\n }\r\n\t\t\t}\r\n\t\t }\r\n }\r\n }\r\n }\r\n cerrar_db($mysqli);\r\n }", "title": "" }, { "docid": "7dcbba7c6e0872819b663057be4a59df", "score": "0.62082464", "text": "function m_tablaDocentes($consulta,$tipo){\n \t $result=$this->m_query($consulta);\n \t echo \"<center>\";\n \t echo \"<table width=95% class='tbl'>\n \t <tr>\";\n \t echo \"<td class='num'>No.</td>\";\n \t echo \"<td class='num'></td>\";\n \t echo \"<td class='num'>Nombre Colaborador</td>\";\n \t echo \"<td class='num'>Institucion</td>\";\n \t echo \"<td class='num'>RFC</td>\";\n \t echo \"<td class='num'>Tiempo Completo</td>\";\n \t echo \"<td class='num'>Correo Electronico</td>\";\n \t echo \"<td class='num'>Nivel SNI</td>\";\n \t echo \"<td class='num'>PROMEP</td>\";\n \t echo \"<td class='num'>CVU</td>\";\n \t \n \t echo \"</tr>\"; \t \n \t $cont = $main = 0;\n \t while ($registro = pg_fetch_array($result, null, PGSQL_NUM)) {\n \t \t$rfc = $registro[1];\n \t \t$tipo = $registro[2];\n \t \t\n \t \t$cont=$cont+1;\n \t \tif($cont%2 == 0){\n echo \"<tr class='st2'>\";\n \t \t}else{\n \t \t\techo \"<tr class='st1'>\";\n \t \t}\n \t \n \t echo \"<th class='num'>\",$cont,\"</th>\";\n \t echo \"<th class='num'>\";\n \t echo \"<a href='eliminardocente.php?n=$rfc&t=$tipo'><img src='imagenes/eliminar.png' height='23' width='23'/></a>\";\n \t echo \"</th>\";\n \n if($tipo == \"I\"){\n \t$consulta = $this->m_query(\"select * from docente where rfc='$rfc';\"); \n $dato = pg_fetch_object($consulta);\n //$status = $dato->nombres;\n echo \"<th>\",$dato->nombres,\"</th>\";\n echo \"<th>\",$registro[3],\"</th>\";\n \t echo \"<th>\",$registro[1],\"</th>\";\n \t echo \"<th>\",$registro[6],\"</th>\";\n \t echo \"<th>\",$dato->correo1,\"</th>\";\n \t echo \"<th>\",$registro[7],\"</th>\";\n \t echo \"<th>\",$registro[8],\"</th>\";\n \t echo \"<th>\",$dato->cvu,\"</th>\";\n\n }else{\n \techo \"<th>\",$registro[4],\"</th>\";\n \techo \"<th>\",$registro[3],\"</th>\";\n \t echo \"<th>\",$registro[1],\"</th>\";\n \t echo \"<th>\",$registro[6],\"</th>\";\n \t echo \"<th>\",$registro[5],\"</th>\";\n \t echo \"<th>\",$registro[7],\"</th>\";\n \t echo \"<th>\",$registro[8],\"</th>\";\n \t echo \"<th>\",$registro[9],\"</th>\";\n }\n \t \n \t \n \t \n\n \t echo \"</tr>\"; } \n \techo \"</table>\"; \n \techo \"<center>\";\n pg_free_result($result);\n }", "title": "" }, { "docid": "bd93a5ba9213fbd9c5383c81f2ed5dfa", "score": "0.62076294", "text": "function camposTabla($accion) {\r\n\t$sql\t=\t\"show columns from lcdd_ventas\";\r\n\t$res \t=\t$this->query($sql,0);\r\n\tif ($res == false) {\r\n\t\treturn 'Error al traer datos';\r\n\t} else {\r\n\t\t\r\n\t\t$form\t=\t'';\r\n\t\t\r\n\t\twhile ($row = mysql_fetch_array($res)) {\r\n\t\t\tif ($row[3] != 'PRI') {\r\n\t\t\t\tif (strpos($row[1],\"decimal\") !== false) {\r\n\t\t\t\t\t$form\t=\t$form.'\r\n\t\t\t\t\t\r\n\t\t\t\t\t<div class=\"form-group col-md-6\">\r\n \t<label for=\"'.$row[0].'\" class=\"control-label\" style=\"text-align:left\">'.ucwords($row[0]).'</label>\r\n <div class=\"input-group col-md-12\">\r\n\t\t\t\t\t\t\t<span class=\"input-group-addon\">$</span>\r\n \t<input type=\"text\" class=\"form-control\" id=\"'.$row[0].'\" name=\"'.$row[0].'\" value=\"0\" required>\r\n\t\t\t\t\t\t\t<span class=\"input-group-addon\">.00</span>\r\n </div>\r\n </div>\r\n\t\t\t\t\t\r\n\t\t\t\t\t';\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif ($row[0] == \"Venta\") {\r\n\t\t\t\t\t\t$label = \"Tipo Venta\";\r\n\t\t\t\t\t\t$campo = $row[0];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$label = ucwords($row[0]);\r\n\t\t\t\t\t\t$campo = $row[0];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$form\t=\t$form.'\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t<div class=\"form-group col-md-6\">\r\n\t\t\t\t\t\t\t<label for=\"'.$campo.'\" class=\"control-label\" style=\"text-align:left\">'.$label.'</label>\r\n\t\t\t\t\t\t\t<div class=\"input-group col-md-12\">\r\n\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"'.$campo.'\" name=\"'.$campo.'\" placeholder=\"Ingrese el '.$label.'...\" required>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t';\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$camposEscondido = '<input type=\"hidden\" id=\"id\" name=\"id\" value=\"'.$row[0].'\"/>';\r\n\t\t\t\t$camposEscondido = $camposEscondido.'<input type=\"hidden\" id=\"accion\" name=\"accion\" value=\"'.$accion.'\"/>';\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$formulario = $form.\"<br><br>\".$camposEscondido;\r\n\t\t\r\n\t\treturn $formulario;\r\n\t}\t\r\n}", "title": "" }, { "docid": "84dd39b1bcaf224eea9af410b8ce1c52", "score": "0.6207327", "text": "public function Tabla()\n {\n if(!\\Schema::hasTable($this->table))\n {\n \\Schema::create($this->table, function(Blueprint $table)\n {\n $table->integer('declaracion_id')->unsigned()->default(null);\n $table->foreign('declaracion_id')->references('id')->on('declaraciones')->onDelete('cascade');\n $table->integer('formato_id');\n $table->string('formato_slug');\n $table->boolean('estatus')->default(0);\n $table->primary(['declaracion_id', 'formato_id']);\n });\n }\n }", "title": "" }, { "docid": "ebd72fd6baf0c9e412e9fa3dead9b223", "score": "0.6198265", "text": "public function empleadosTabla()\n\t{\n\t\t$resultado = '';\n\t\t//obtener los empleados con medio turno\n\t\t$mt = $this->EmpleadoModel->getEmpleadosMT();\n\t\tif (!empty($mt)) {\n\t\t\tforeach ($mt as $row) {\n\t\t\t\t$resultado .= '<tr><th>'.$row->nombre.'</th><th>'.$row->entrada.' hrs</th><th>'.$row->salida.' hrs</th><th><a href=\"/nomina/Empleados/borrarMT/'.$row->id.'\" class=\"btn btn-danger btn-sm btn-block\"><i class=\"fas fa-trash-alt text-white\"></i></a></th></tr>';\n\t\t\t}\n\t\t}\n\t\treturn $resultado;\n\t}", "title": "" }, { "docid": "4e72433ecbe6d62542dca941991fb9ba", "score": "0.6195092", "text": "public function creaTabelle(){\r\n// /* check connection */\r\n// if (mysqli_connect_errno()) {\r\n// printf(\"Connect failed: %s\\n\", mysqli_connect_error());\r\n// exit();\r\n// }\r\n// $mysqli->query(\"SHOW TABLES FROM telefonia\");\r\n// if ($result = $mysqli->store_result()) {\r\n// while ($row = $result->fetch_row()) {\r\n// printf(\"%s\\n ciao\", $row[0]);\r\n// }\r\n// $result->free();\r\n// }\r\n// $mysqli->close();\r\n\r\n\r\n $sql = \"CREATE TABLE $this->tab_ric_voce (\r\n `id` INT(11) NOT NULL AUTO_INCREMENT,\r\n `nSIM` VARCHAR(50) NOT NULL,\r\n `cod` INT(11) NOT NULL,\r\n `data_chiamata` DATE NOT NULL,\r\n `ora` TIME NOT NULL,\r\n `numeroChiamato` VARCHAR(50) NOT NULL,\r\n `durata` TIME NOT NULL,\r\n `costo` DOUBLE NOT NULL,\r\n `direttrice` VARCHAR(50) NOT NULL,\r\n `tipo` VARCHAR(50) NOT NULL,\r\n INDEX `Indice 1` (`id`)\r\n );\";\r\n\r\n\r\n $sql .= \"CREATE TABLE $this->tab_ric_dati (\r\n `id` INT(11) NOT NULL AUTO_INCREMENT,\r\n `nSIM` VARCHAR(50) NOT NULL,\r\n `cod` INT(11) NOT NULL,\r\n `data_conn` DATE NOT NULL,\r\n `durata` TIME NOT NULL,\r\n `direttrice` VARCHAR(50) NOT NULL,\r\n `byte` INT(11) NOT NULL,\r\n `costo` DOUBLE NOT NULL,\r\n `tipo` VARCHAR(50) NOT NULL,\r\n `apn` VARCHAR(50) NOT NULL,\r\n INDEX `Indice 1` (`id`)\r\n );\";\r\n\r\n $sql .= \"CREATE TABLE $this->tab_abb_voce (\r\n `id` INT(11) NOT NULL AUTO_INCREMENT,\r\n `nSIM` VARCHAR(50) NOT NULL,\r\n `cod` INT(11) NOT NULL,\r\n `tipo` VARCHAR(50) NOT NULL,\r\n `direttrice` VARCHAR(50) NOT NULL,\r\n `numeroChiamato` VARCHAR(50) NOT NULL,\r\n `data_chiamata` DATE NOT NULL,\r\n `ora` TIME NOT NULL,\r\n `durata` TIME NOT NULL,\r\n `costo` DOUBLE NOT NULL,\r\n INDEX `Indice 1` (`id`)\r\n );\";\r\n\r\n $sql .= \"CREATE TABLE $this->tab_abb_dati (\r\n `id` INT(11) NOT NULL AUTO_INCREMENT,\r\n `nSIM` VARCHAR(50) NOT NULL,\r\n `cod` INT(11) NOT NULL,\r\n `tipo` VARCHAR(50) NOT NULL,\r\n `apn` VARCHAR(50) NOT NULL,\r\n `data_conn` DATE NOT NULL,\r\n `ora` TIME NOT NULL,\r\n `durata` TIME NOT NULL,\r\n `byte` INT(11) NOT NULL,\r\n `costo` DOUBLE NOT NULL,\r\n `bundle` VARCHAR(50) NOT NULL,\r\n INDEX `Indice 1` (`id`)\r\n );\";\r\n\r\n $sql .= \"CREATE TABLE $this->tab_ric_riep (\r\n `id` INT(11) NOT NULL AUTO_INCREMENT,\r\n `nSIM` VARCHAR(50) NOT NULL,\r\n `cod` INT(11) NOT NULL,\r\n `direttrice` VARCHAR(50) NOT NULL,\r\n `numeroChiamate` INT(11) NOT NULL,\r\n `durata` TIME NOT NULL,\r\n `nonUsato` VARCHAR(50) NOT NULL,\r\n `costo` DOUBLE NOT NULL,\r\n `data_chiamata` DATE NOT NULL,\r\n INDEX `Indice 1` (`id`)\r\n );\";\r\n\r\n\r\n\r\n $this->mysql($sql);\r\n\r\n }", "title": "" }, { "docid": "74540380cf8e7347b7bfdfd3c9cc417d", "score": "0.6190552", "text": "public function print_tabl() {\n $query = $this->db->query(\"\n SELECT o.nro_ot_onyx AS ot_padre, o.id_orden_trabajo_hija AS ot_hija,\n o.nombre_cliente AS cliente, o.orden_trabajo AS trabajo,\n o.servicio AS servicio, o.fecha_creacion AS fecha_creacion,\n o.ot_hija AS tipo, o.estado_orden_trabajo_hija AS estado,\n concat(u.n_name_user, ' ', u.n_last_name_user) AS nombre_usuario,\n i.fecha_mod AS fecha_modificacion, i.en_zolid AS zolid,\n i.en_excel AS excel, i.k_id_inconsistencia AS id_inc\n FROM inconcistencia i\n INNER JOIN user u\n ON i.k_id_user = u.k_id_user\n INNER JOIN ot_hija o\n ON o.id_orden_trabajo_hija = i.id_ot_hija\n WHERE estado_ver = 1\n ;\n \");\n return $query->result();\n }", "title": "" }, { "docid": "840ce602741cd0e1c3e69f8dd03eea8a", "score": "0.61806464", "text": "public function mostrarTablaTarifas() {\r\n\t\t\t\r\n\t\t$resultados = Tabla_tarifas::getAll();\r\n\t\t$resultados1 = Tabla_tarifas::getTitulosTabla();\r\n\t\t\t\r\n\t\techo '<h3>Tarifas</h3>\r\n\t\t\t\t<p class=\"explicacion_tarifas\">\r\n\t\t\t\t\t<sup>(*)</sup> Los horarios se pueden ver modificados por las medidas sanitarias\r\n\t\t\t\t\ttomadas por el Covid-19.\r\n\t\t\t\t</p>\r\n\t\t\t\t<table border=\"1\">\r\n\t\t\t\t\t<tr>';\r\n\r\n\t\t// Línea de los títulos de la tabla\r\n\t\tif ($resultados == 0 || $resultados['numero'] == 0) {\r\n\t\t\t// No hay datos para mostrar\r\n\t\t} else {\r\n\r\n\t\t\tfor ($i = 0; $i < count($resultados1['filas_consulta']); $i ++) {\r\n\t\t\t\t\t\r\n\t\t\t\techo '<td class=\"titulo_verde\"><p>';\r\n\r\n\t\t\t\tforeach ($resultados1['filas_consulta'][$i] as $key => $value) {\r\n\r\n\t\t\t\t\t$linea = null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif ($key == \"titulo\") {\r\n\t\t\t\t\t\t$titulo = '<strong>' . $value . ' </strong>';\r\n\t\t\t\t\t\t$linea = $titulo;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif ($key == \"sup\") {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ($value != null && $value != '') {\r\n\t\t\t\t\t\t\t$sup = '<sup>(' . $value . ')</sup>';\r\n\t\t\t\t\t\t\t$linea = $linea.$sup;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif ($key == \"subtitulo\") {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ($value != null && $value != '') {\r\n\t\t\t\t\t\t\t$subtitulo = '<p class=\"subtitulo\">' . $value . '</p>';\r\n\t\t\t\t\t\t\t$linea = $linea.$subtitulo;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\techo $linea;\r\n\t\t\t\t}\r\n\r\n\t\t\t\techo '</p></td>';\r\n\t\t\t}\r\n\t\t}\r\n\t\techo '</tr>';\r\n\r\n\t\t// Líneas de datos\r\n\t\tif ($resultados == 0 || $resultados['numero'] == 0) {\r\n\t\t\t// No hay datos para mostrar\r\n\t\t} else {\r\n\r\n\t\t\tfor ($i = 0; $i < count($resultados['filas_consulta']); $i ++) {\r\n\t\t\t\t\t\r\n\t\t\t\techo '<tr>';\r\n\r\n\t\t\t\tforeach ($resultados['filas_consulta'][$i] as $key => $value) {\r\n\r\n\t\t\t\t\t$linea = null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif ($key == \"dia\") {\r\n\t\t\t\t\t\t$titulo = '<td class=\"titulo_amarillo\">\r\n\t\t\t\t\t\t\t\t\t<p><strong>' . $value . '</strong>';\r\n\t\t\t\t\t\t$linea = $linea.$titulo;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($key == \"sup\") {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ($value != null && $value != '') {\r\n\t\t\t\t\t\t\t$sup = '<sup> (' . $value . ')</sup></p></td>';\r\n\t\t\t\t\t\t\t$linea = $linea.$sup;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($key == \"hora_cierre\") {\r\n\t\t\t\t\t\t$hora_cierre = '<td><p>' . $value . '</p></td>';\r\n\t\t\t\t\t\t$linea = $linea.$hora_cierre;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($key == \"precio_3_primeras_horas\") {\r\n\t\t\t\t\t\t$precio_3_primeras_horas = '<td><p>' . $value . '</p></td>';\r\n\t\t\t\t\t\t$linea = $linea.$precio_3_primeras_horas;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($key == \"precio_4_hora\") {\r\n\t\t\t\t\t\t$precio_4_hora = '<td><p>' . $value . '</p></td>';\r\n\t\t\t\t\t\t$linea = $linea.$precio_4_hora;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\techo $linea;\r\n\t\t\t\t}\r\n\r\n\t\t\t\techo '</tr>';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\techo '</table>';\r\n\t}", "title": "" }, { "docid": "e9657e60263607ee67bf6d2774284925", "score": "0.6165057", "text": "protected function montarTabelas(){\n\t\t$persistente = $this->persistente();\n\t\tif(!$persistente) return false;\n\t\t$tabelas = array();\n\t\tforeach ($persistente->lerTabelasComDescricao() as $tabela){\n\t\t\t$tabelas[$tabela['nome']]['tabela'] = $tabela;\n\t\t\t$tabelas[$tabela['nome']]['campos'] = $persistente->lerTabela($tabela['esquema'] . '.' . $tabela['nome']);\n\t\t\t$tabelas[$tabela['nome']]['restricoes'] = $persistente->lerRestricoes($tabela['esquema'] . '.' . $tabela['nome']);\n\t\t}\n\t\treturn $tabelas;\n\t}", "title": "" }, { "docid": "eb5f75e9d8ffb18ddd7b40f9e1e5bacc", "score": "0.61634624", "text": "function mostrar_as_table(){\n\t\t//entonces listo los alumnos\n\t\tif(!isset($_REQUEST['accion'])){\n\t\t\t$alumno_array = $this->modelo->listar_tabla();\t\n\t\t\t\t//incluir la vista para listar\n\t\t\t\tinclude('vista/alumno_table.php');\n\t\t\t\t$vista = new alumno_table();\n\t\t\t\t$vista -> mostrar_tabla($alumno_array);\n\t\t}\n\t}", "title": "" }, { "docid": "3001abc8d563172206ceb82c930a9b67", "score": "0.6157229", "text": "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $imagen = $this->Imagenes($this->PrimaryKey,12);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = \"SELECT L.clientetercerizado,\".$imagen.\",L.nombre,\".$editar.\",\".$eliminar.\" FROM \".$this->Table.\" L where estado='A'\";\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 5, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "title": "" }, { "docid": "f7ccea0531eab68c3426305a1d9818a2", "score": "0.6151687", "text": "public function tablaAction(){\n $this->sesion->start();\n $id_tienda= $_SESSION['user']['id_tienda'];\n $catalogo=$this->catalogo->getTiendaTotal($id_tienda);\n $this->respuesta->datosJSON(10,10,$catalogo);\n }", "title": "" }, { "docid": "e3a788902f5ae38f74538b56c89bd483", "score": "0.6149959", "text": "public function list_acc_oregional($matriz,$operaciones){\n $tabla='';\n $tabla .='\n <article class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\n <div class=\"jarviswidget jarviswidget-color-darken\" >\n <header>\n <span class=\"widget-icon\"> <i class=\"fa fa-arrows-v\"></i> </span>\n <h2 class=\"font-md\"><strong>'.count($operaciones).'.- OPERACIONES ALINEADOS</strong></h2> \n </header>\n <div>\n <div class=\"widget-body no-padding\">\n <table id=\"dt_basic\" class=\"table table table-bordered\" width=\"100%\" border=1>\n <thead>\n <tr>\n <th style=\"width:1%;\">NRO</th>\n <th style=\"width:5%;\">APERTURA PROGRAMATICA</th>\n <th style=\"width:3%;\">TP</th>\n <th style=\"width:5%;\">COMPONENTE/SERVICIO</th>\n <th style=\"width:20%;\">OPERACI&Oacute;N</th>\n <th style=\"width:3%;\">TIPO</th>\n <th style=\"width:3%;\">META</th>\n <th style=\"width:15%;\">INDICADOR</th>\n <th style=\"width:5%;\">PRIORIDAD</th>\n <th style=\"width:5%;\">PONDERACI&Oacute;N</th>\n <th style=\"width:5%;\">PROG.</th>\n <th style=\"width:5%;\">EVAL.</th>\n <th style=\"width:5%;\">EFI.%</th>\n </tr>\n </thead>\n <tbody>';\n //$nro_prio=0;$nro_nprio=0;\n for ($i=1; $i <=count($operaciones) ; $i++) { \n $tabla.='<tr>';\n for ($j=1; $j <=13 ; $j++) {\n if($j==9){\n if($matriz[$i][$j]==1){\n // $nro_prio++;\n $tabla.='<td bgcolor=\"#dff1af\"><span class=\"badge bg-color-greenLight\">Con Prioridad</span></td>';\n }\n else{\n // $nro_nprio++;\n $tabla.='<td bgcolor=\"#f9eed7\"><span class=\"badge bg-color-orange\">Sin Prioridad</span></td>';\n }\n }\n elseif($j==13){\n $tabla.='<td>'.$matriz[$i][$j].' %</td>';\n }\n else{\n $tabla.='<td>'.$matriz[$i][$j].'</td>';\n }\n \n }\n $tabla.='</tr>';\n }\n $tabla.=' </tbody>\n </table>\n <hr>\n <div class=\"col-sm-4\">\n <div class=\"well well-sm bg-color-orange txt-color-white text-center\">\n <h5>OPERACIONES SIN PRIORIDAD</h5>\n <code><b>'.$matriz[count($operaciones)+1][7].'</b></code>\n </div>\n </div>\n \n <div class=\"col-sm-4\">\n <div class=\"well well-sm bg-color-teal txt-color-white text-center\">\n <h5>OPERACIONES CON PRIORIDAD</h5>\n <code><b>'.$matriz[count($operaciones)+1][8].'</b></code>\n </div>\n </div>\n \n <div class=\"col-sm-4\">\n <div class=\"well well-sm bg-color-darken txt-color-white text-center\">\n <h5>TOTAL OPERACIONES</h5>\n <code><b>'.$matriz[count($operaciones)+1][9].'</b></code>\n </div>\n </div>\n\n <hr><br>\n </div>\n </div>\n </div>\n </article>';\n\n return $tabla;\n }", "title": "" }, { "docid": "60d156d7b33783c8b200659777cb2e36", "score": "0.6144295", "text": "function tableRelation()\n {\n $rtable = array(\n\n // \"user\" => \"userbankdetail:cascade:cascade\",\n // \"user\" => \"useraddress:cascade:cascade\",\n // \"user\" => \"complaints:cascade:cascade\",\n // \"user\" => \"userbankdetail:cascade:cascade\",\n // \"game_colors\" => \"game_rules:cascade:cascade\",\n // \"user\" => \"wallet_transactions:cascade:cascade\",\n // \"user\" => \"joinings:cascade:cascade\",\n // \"periods\" => \"joinings:cascade:cascade\",\n // \"game_types\" => \"joinings:cascade:cascade\",\n // \"game_types\" => \"periods:cascade:cascade\",\n \"periods\" => \"wallet_transactions:cascade:cascade\",\n \n );\n return $rtable;\n }", "title": "" }, { "docid": "c6faf5d4d8642db6635cbc1c92d34bee", "score": "0.61384654", "text": "function ImprimeTablePO($idTabla, $data, $pactu, $peli, $crxpag = 10, $paginap = 1, $cantlink = 5, $orderby = -1,classCSS)\n {\n $tabla = '<table id=\"' . $idTabla . '\" class=\"'.$classCSS.'\" >';\n try {\n if (count($data[\"columnas\"]) > 0) {\n $tabla .= '<thead>';\n $tabla .= '<tr>';\n $conta = 0;\n $conte = 0;\n for ($x = 0; $x < count($data[\"columnas\"]); $x++) {\n if ($conta == 0) {\n if ($pactu != \"\") {\n $tabla .= '<th class=\"td-img\"></th>';\n }\n if ($peli != \"\") {\n $tabla .= '<th class=\"td-img\"></th>';\n }\n }\n $conta++;\n $conte++;\n //Nombres de las columnas\n $ordenar = $x + 1;\n $tabla .= '<th><a href=\"#\" onClick=\"Paginar(\\'pagina=' . $paginap . '&orden=' . $ordenar . '\\'); return false\" >' . utf8_encode($data[\"columnas\"][$x]) . '</a></th>' . \"\\n\";\n }\n $tabla .= \"</tr>\";\n $tabla .= '</thead>';\n }\n //===========CUERPO DE TABLA=================================================================================================\n $numRows = count($data[\"cuerpo\"]);\n if ($numRows > 0) {\n $fin = $paginap * $crxpag;\n $ini = $fin - $crxpag;\n $tabla .= \"<tbody>\";\n for ($i = $ini; $i < $fin; $i++) {\n $conta = 0;\n $conte = 0;\n $tabla .= '<tr>';\n for ($z = 0; $z < count($data[\"columnas\"]); $z++) {\n $columnas = $data[\"columnas\"][$z];\n if (isset($data[\"cuerpo\"][$i][\"$columnas\"])) {\n if ($conta == 0) {\n if ($pactu != \"\") {\n $tabla .= '<td><a href=\"#\" onClick=\"' . $pactu . '(' . $data[\"cuerpo\"][$i][\"$columnas\"] . '); return false;\" title=\"Actualizar\" ><img title=\"Actualizar\" src=\"../img/icon-edit.png\" title=\"Actualizar\" width=\"16\" height=\"16\"/></a></td>' . \"\\n\";\n }\n if ($peli != \"\") {\n $tabla .= '<td><a href=\"#\" onClick=\"' . $peli . '(' . $data[\"cuerpo\"][$i][\"$columnas\"] . '); return false;\" ><img src=\"../img/icon-delete-blackimg.png\" width=\"16\" title=\"Eliminar\" height=\"16\"/></a></td>' . \"\\n\";\n }\n }\n $tabla .= '<td>' . $data[\"cuerpo\"][$i][\"$columnas\"] . '</td> ' . \"\\n\";\n }\n $conta++;\n $conte++;\n }\n $tabla .= '</tr>';\n }\n $tabla .= \"</tbody>\";\n //===========FIN CUERPO DE TABLA===========================================================================================\n $tabla .= '</table>';\n //===========PAGINADO======================================================================================================================\n $paginado = Paginar($numRows, $crxpag, $paginap, $cantlink, $orderby);\n $tabla .= $paginado;\n //===========FIN PAGINADO ==================================================================================================================\n } else { //solo si es k no hay datos\n $mensaje = \"No se encuentran Datos Registrados\";\n $tabla .= '<tfoot><tr> <td >&nbsp; ' . $mensaje . ' </td></tr></tfoot></table><br>';\n }\n }\n catch (exception $e) {\n return $e->getMessage();\n }\n return $tabla;\n }", "title": "" }, { "docid": "947020c984fb96b8d1a66f10d941a852", "score": "0.6138167", "text": "public function tabListaConocimientos($cod) {\n// $arrayFilas = $o_LRrhh->getExpLaboral($cod, 5, '');\n//// $arrayFilas = $o_LRrhh->getListaEmpleados($cod);\n// $funcion = 'conocimientoDetalle';\n// $arrayTipo = array(\"0\" => \"c\", \"1\" => \"c\", \"2\" => \"c\", \"3\" => \"c\", \"4\" => \"c\");\n// $arrayColorEstado = array(\"1\" => \"5\", \"2\" => \"2\", \"3\" => \"3\", \"4\" => \"4\", \"5\" => \"5\", \"6\" => \"6\", \"7\" => \"7\", \"8\" => \"8\", \"9\" => \"9\");\n// $arrayCabecera = array(\"0\" => \"CONOCIMIENTO/EVENTO\", \"1\" => \"INSTITUCION\", \"2\" => \"TIPO APRENDIZAJE\", \"3\" => \"NIVEL\", \"4\" => \"...\");\n// $o_Html = new Tabla1($arrayCabecera, 8, $arrayFilas, 'tablaOrden', 'filax', 'filay', 'filaSeleccionada', 'onClick', $funcion, 4, $arrayTipo, 0, $arrayColorEstado);\n// $o_Html->setColumnasOrdenar(array(\"0\", \"1\", \"2\", \"3\"));\n// return $o_Html->getTabla();\n $oLRrhh = new LRrhh();\n $o_TablaHtmlx = new tablaDHTMLX();\n $arrayExp = $oLRrhh->getExpLaboral($cod, 5, '');\n $arrayCabecera = array(\"0\" => \"CONOCIMIENTO/EVENTO\", \"1\" => \"INSTITUCION\", \"2\" => \"TIPO APRENDISAJE\", \"3\" => \"NIVEL\", \"4\" => \"ID\");\n $arrayTamano = array(\"0\" => \"150\", \"1\" => \"*\", \"2\" => \"120\", \"3\" => \"120\", \"4\" => \"70\");\n $arrayTipo = array(\"0\" => \"ro\", \"1\" => \"ro\", \"2\" => \"ro\", \"3\" => \"ro\", \"4\" => \"ro\");\n $arrayCursor = array(\"0\" => \"default\", \"1\" => \"center\", \"2\" => \"default\", \"3\" => \"center\", \"4\" => \"center\");\n $arrayHidden = array(\"0\" => \"false\", \"1\" => \"false\", \"2\" => \"false\", \"3\" => \"false\", \"4\" => \"false\");\n $arrayAling = array(\"0\" => \"center\", \"1\" => \"center\", \"2\" => \"center\", \"3\" => \"center\", \"4\" => \"center\");\n return $o_TablaHtmlx->generaTabla($arrayCabecera, $arrayExp, $arrayTamano, $arrayTipo, $arrayCursor, $arrayHidden, $arrayAling);\n }", "title": "" }, { "docid": "662c1b804d20920a3574a1e3bfbd2c18", "score": "0.6133678", "text": "public function criarTabela() {\n\t\tif (($comandoCriacaoTabela = $this->gerarComandoCriacaoTabela())) {\n\t\t\t$this->executarComando($comandoCriacaoTabela);\n\t\t}\n\t}", "title": "" }, { "docid": "87944f858c9dfd0202fe44eee583d063", "score": "0.61328596", "text": "function generaTabla($idmed=NULL)\r\n\t\t{\r\n\t\tglobal $_HORA_IN,$_HORA_FIN,$CITAS_MEDICAS;\r\n\t\t$color_disp = $CITAS_MEDICAS['COLOR_HOR_DISP'];\r\n\t\t$color_nodisp = $CITAS_MEDICAS['COLOR_HOR_NODISP'];\r\n\t\t$db = $this->conex;\r\n\t\t$hora1=new hora;\r\n\t\t$dias = array('lunes','martes','miercoles','jueves','viernes','sabado','domingo');\r\n\t\t$tabla = \"<tr>\r\n <td scope=\\\"col\\\" class=\\\"borde_delgado\\\" >horario\";\r\n \tforeach($dias as $dia){\r\n\t\t\tif ($dia == 'sabado' or $dia == 'domingo'){\r\n\t\t\t\t$color_dia = $color_nodisp;\r\n\t\t\t\t}\r\n\t\t\telse $color_dia = $color_disp;\r\n\t\t\t$tabla .= \"<td scope=\\\"col\\\" class=\\\"borde_delgado\\\" id=\\\"dia_$dia\\\" \r\n\t onClick=\\\"horario1.cambiaEstado('dia_$dia');\\\" \r\n\t bgcolor=\\\"$color_dia\\\">$dia\\n\";\r\n\t \t\t}\r\n\t\tif ($idmed != NULL) {\r\n\t\t\t$arr_estados = $this->obtenerEstado($idmed);\r\n\t\t\t}\r\n\t\t$hora2=$_HORA_IN;\r\n\t\twhile($hora1->horAseg($hora2) <= $hora1->horAseg($_HORA_FIN) ){\r\n\t\t\t$hora_sig = $hora1->sumar($hora2,\"1:00:00\");\r\n\t\t\t$id_tdg = \"hora_\".$hora1->horAseg($hora2);\r\n\t\t\t$tabla .=\"<tr>\\n\r\n\t\t\t<input type=\\\"hidden\\\" name=\\\"param_$id_tdg\\\" value=\\\"\\\" id=\\\"param_$id_tdg\\\">\\n\r\n\t\t\t<td class=\\\"borde_delgado\\\" id=\\\"$id_tdg\\\"\r\n\t\t\tonClick=\\\"horario1.cambiaEstado('$id_tdg');\\\" bgcolor=\\\"$color_disp\\\" >\".\r\n\t\t\thora::verHora($hora2,'0seg').\" - \".hora::verHora($hora_sig,'0seg').\"</td>\\n\";\r\n\t\t\tforeach($dias as $dia){\r\n\t\t\t\t// ESTADO POR DEFECTO\r\n\t\t\t\tif ($idmed != NULL and $arr_estados) {\r\n\t\t\t\t\t$estado = $arr_estados[$hora2][$dia];\r\n\t\t\t\t\t$color = $estado?$color_disp:$color_nodisp;\r\n\t\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif ($dia == 'sabado' or $dia == 'domingo'){\r\n\t\t\t\t\t\t$color=$color_nodisp;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\telse { \r\n\t\t\t\t\t\t$color =$color_disp;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t$cad_color=\"bgcolor=\\\"$color\\\"\";\r\n\t\t\t\t$id_td = $dia.\"_\".$hora1->horAseg($hora2);\r\n\t\t\t\t$tabla .= \"<td class=\\\"borde_delgado\\\" onClick=\\\"horario1.cambiaEstado('$id_td');\\\"\r\n\t\t\t\t $cad_color id=\\\"$id_td\\\">&nbsp;</td>\\n\";\r\n\t\t\t\t}\t\t\t\r\n\t\t\t$hora2 = $hora_sig;\r\n\t\t\t}\r\n\t\treturn $tabla;\r\n\t\t}", "title": "" }, { "docid": "7a2d6f10c8bb4a3b28122f7e43c6bdf5", "score": "0.6130709", "text": "abstract protected function showTables();", "title": "" }, { "docid": "597a3cd8485f0567af3409780c4be424", "score": "0.6120748", "text": "function m_tablaProducto($consulta){\n \t $result=$this->m_query($consulta);\n \t echo \"<center>\";\n \t echo \"<table width=95% class='tbl'>\n \t <tr>\";\n \t echo \"<td class='num'>No.</td>\";\n \t echo \"<td class='num'></td>\";\n \t echo \"<td class='num'>Meta </td>\";\n \t echo \"<td class='num'>Cantidad</td>\";\n \t echo \"<td class='num'>Fecha de Cumplimiento</td>\";\n \t echo \"<td class='num'>Onservaciones </td>\";\n \t \n \t echo \"</tr>\"; \t \n \t $cont = $main = 0;\n \t while ($registro = pg_fetch_array($result, null, PGSQL_NUM)) {\n \t \t$producto = $registro[0];\n \t \t\n \t \t$cont=$cont+1;\n \t \tif($cont%2 == 0){\n echo \"<tr class='st2'>\";\n \t \t}else{\n \t \t\techo \"<tr class='st1'>\";\n \t \t}\n \t \n \t echo \"<th class='num'>\",$cont,\"</th>\";\n \t echo \"<th class='num'>\";\n \t echo \"<a href='eliminarproducto.php?n=$producto'><img src='imagenes/eliminar.png' height='23' width='23'/></a>\";\n \t echo \"</th>\";\n echo \"<th></th>\";\n echo \"<th>\",$registro[3],\"</th>\";\n echo \"<th>\",$registro[4],\"</th>\";\n echo \"<th>\",$registro[5],\"</th>\";\n \n \t \n \t echo \"</tr>\"; } \n \techo \"</table>\"; \n \techo \"<center>\";\n pg_free_result($result);\n }", "title": "" }, { "docid": "645257733bc3bb56745e6d1c9d51023f", "score": "0.6118269", "text": "function bodyTable()\n {\n $tupla = @mysql_fetch_array($this->dataset,MYSQL_ASSOC); //Se organiza la tupla para su manipulacion, haciendo un corrimiento al siguiente elemento.\n $rowCount = 1; //Se inicializa la variable de conteo de filas para su despliegue como informacion. \n $totRows = mysql_num_rows($this->dataset);\n $response = null; //Se inicializa la cadena de codigo HTML.\n \n while($tupla)\n {\n /*\n * Mientras existan elementos dentro de la coleccion de datos,\n * se procede a un ciclo de recorrido para generar la cadena de codigo.\n */\n if(($rowCount % 2)==0)\n {\n //En caso de ser una fila de datos non, se propone el color base.\n $response = $response.'<tr class=\"dgRowsnormTR\">';\n }\n else\n {\n //En caso de ser una fila par, se propone el color alterno.\n $response = $response.'<tr class=\"dgRowsaltTR\">';\n }\n \n $display = 1; //Variable de control para la visualizacion de la columna de ID.\n \n foreach ($tupla as $value)\n {\n /*\n * Para cada elemento en el arreglo, se dispone de una casilla en la\n * tabla.\n */ \n if($display == 1)\n {\n /*\n * Si el valor corresponde a uno, la visualizacion del campo de ID no se efectua.\n */\n $response = $response.'<td style= \"display:none\">'.$value.'</td>';\n $display = 0; //Se cambia el valor de control para las siguientes interacciones.\n }\n else\n {\n /*\n * En caso que el valor corresponda a cero, se visualizan los elementos en la rejilla\n * de datos.\n */\n $response = $response.'<td>'.$value.'</td>';\n } \n }\n \n $response = $response.'<td id=\"reg_'.$tupla[$this->idEntity].'\" width= \"90\"><img id=\"'.$this->sufijo.'visualizar_'.$tupla[$this->idEntity].'\"align= \"middle\" src= \"./img/grids/view.png\" width= \"25\" height= \"25\" title= \"Visualizar\" alt= \"Visualizar\"/><img id=\"'.$this->sufijo.'edit_'.$tupla[$this->idEntity].'\"align= \"middle\" src= \"./img/grids/edit.png\" width= \"25\" height= \"25\" title= \"Editar\"alt= \"Editar\"/><a class=\"borrar\" id=\"'.$this->sufijo.'delete'.$tupla[$this->idEntity].'\" href=\"#\"><img id=\"'.$this->sufijo.'delete_'.$tupla[$this->idEntity].'\" align= \"middle\" src= \"./img/grids/erase.png\" width= \"25\" height= \"25\" title= \"Borrar\" alt= \"Borrar\"/></a></td></tr>';\n $rowCount = $rowCount + 1; //Se incrementa el contador de filas. \n $tupla = @mysql_fetch_array($this->dataset,MYSQL_ASSOC); //Se organiza la tupla para su manipulacion, haciendo un corrimiento al siguiente elemento.\n }\n \n if($totRows == 0)\n {\n $response = '<tr class=\"dgRowsnormTR\" align=\"center\"><td colspan= \"'.$this->totColumn.'\"><b>NO SE LOCALIZARON REGISTROS</b></td></tr>';\n }\n\n /*\n * Se concatenan los elementos restantes de la cadena de codigo para dar el formato a la\n * tabla en pantalla.\n */\n $response = $response.'<tr class= \"dgTotRowsTR\"><td alignt= \"left\" colspan= '.$this->totColumn.'\"><img id=\"'.$this->sufijo.'add\" align= \"right\" src= \"./img/grids/add.png\" width= \"25\" height= \"25\" alt= \"Agregar\"/></td></tr>';\n $response = $response.'<tr class= \"dgPagRow\"><td align= \"left\" colspan= \"'.$this->totColumn.'\">Visualizando ' .($rowCount-1). ' registros <img align=\"right\" id=\"'.$this->sufijo.'Previous_'.$this->DisplayRow.'\" src=\"./img/grids/previous.png\" width=\"25\" height=\"25\" title=\"Previos '.$this->DisplayRow.'\"><img align=\"right\" id=\"'.$this->sufijo.'Next_'.$this->DisplayRow.'\"src=\"./img/grids/next.png\" width=\"25\" height=\"25\" title=\"Siguientes '.$this->DisplayRow.'\"></td></tr>';\n $response = $response.'</table>';\n $response = $response.'</div>'; \n return $response;\n }", "title": "" }, { "docid": "e256590eabf41354662d39396ec44f92", "score": "0.6112413", "text": "public function tabListaIdiomas($cod) {\n// $arrayFilas = $o_LRrhh->getExpLaboral($cod, 4, '');\n// $funcion = 'idiomaDetalle';\n// $arrayTipo = array(\"0\" => \"c\", \"1\" => \"c\", \"2\" => \"c\", \"3\" => \"c\");\n// $arrayColorEstado = array(\"1\" => \"5\", \"2\" => \"2\", \"3\" => \"3\", \"4\" => \"4\", \"5\" => \"5\", \"6\" => \"6\", \"7\" => \"7\", \"8\" => \"8\", \"9\" => \"9\");\n// $arrayCabecera = array(\"0\" => \"IDIOMA\", \"1\" => \"INSTITUCION\", \"2\" => \"NIVEL\");\n// $o_Html = new Tabla1($arrayCabecera, 8, $arrayFilas, 'tablaOrden', 'filax', 'filay', 'filaSeleccionada', 'onClick', $funcion, 3, $arrayTipo, 0, $arrayColorEstado);\n// $o_Html->setColumnasOrdenar(array(\"0\", \"1\", \"2\"));\n// return $o_Html->getTabla();\n $oLRrhh = new LRrhh();\n $o_TablaHtmlx = new tablaDHTMLX();\n $arrayExp = $oLRrhh->getExpLaboral($cod, 4, '');\n $arrayCabecera = array(\"0\" => \"IDIOMA\", \"1\" => \"INSTITUCION\", \"2\" => \"NIVEL\", \"3\" => \"ID\");\n $arrayTamano = array(\"0\" => \"90\", \"1\" => \"*\", \"2\" => \"70\", \"3\" => \"70\");\n $arrayTipo = array(\"0\" => \"ro\", \"1\" => \"ro\", \"2\" => \"ro\", \"3\" => \"ro\");\n $arrayCursor = array(\"0\" => \"default\", \"1\" => \"center\", \"2\" => \"default\", \"3\" => \"center\");\n $arrayHidden = array(\"0\" => \"false\", \"1\" => \"false\", \"2\" => \"false\", \"3\" => \"false\");\n $arrayAling = array(\"0\" => \"center\", \"1\" => \"center\", \"2\" => \"center\", \"3\" => \"center\");\n return $o_TablaHtmlx->generaTabla($arrayCabecera, $arrayExp, $arrayTamano, $arrayTipo, $arrayCursor, $arrayHidden, $arrayAling);\n }", "title": "" }, { "docid": "fcc8a324fa30ab3614d0bda71bbbafa3", "score": "0.61048955", "text": "private function infoTable()\n {\n $model = $this->getClass();\n $this->table = ($t=$this->table) ? $t : Inflector::pluralize($model);\n $columns = $this->getColumnsTable();\n if(sizeof($columns))\n {\n foreach ($columns as $obj)\n {\n $Name = $obj->COLUMN_NAME;\n $this->attributes[$Name] = $obj->COLUMN_DEFAULT;\n $Size = ($Size=$obj->CHARACTER_MAXIMUM_LENGTH) ? $Size : '0';\n $Type = $this->getFieldDbType($Name, ['type'=>$obj->DATA_TYPE, 'size'=>$Size]);\n $Label = Inflector::ucwords(str_replace('_',' ',Inflector::tableize($Name)));\n $Column = [\n 'type' => $Type,\n 'label' => $Label,\n 'showlabel' => true,\n 'form' => true,\n 'list' => true,\n 'link' => true,\n ];\n\n if($Name=='DataCriacao')\n {\n $Column['form'] = false;\n $Column['list'] = false;\n }\n if($Name=='DataAtualizacao')\n {\n $Column['form'] = false;\n $Column['list'] = false;\n }\n\n $Modal = isset($this->modalColumns[$Name]) ? $this->modalColumns[$Name] : [];\n $Merge = array_merge($Column, $Modal);\n $Merge['type_raw'] = $obj->DATA_TYPE;\n $Merge['size'] = $Size;\n $Merge['default'] = $obj->COLUMN_DEFAULT;\n $Merge['nullable'] = $obj->IS_NULLABLE;\n $this->columns[$Name] = $Merge;\n }\n }\n else\n trigger_error('Não possível ler as informações da tabela '.$this->table, E_USER_ERROR);\n }", "title": "" }, { "docid": "729448faee5cbcb3fc7e3ce33fb8bf1a", "score": "0.609494", "text": "function Tableau ($nb_dimensions=2, $tab_attrs=array())\n {\n // Initialisation des variables privées\n $this->tableau_valeurs = array();\n $this->options_tables=$this->couleur_paire=\n $this->couleur_impaire=$this->legende=\"\";\n\n // Initialisation de la dimension. Quelques tests s'imposent...\n $this->nb_dimensions=$nb_dimensions;\n\n // Initialisation des tableaux d'entêtes pour chaque dimension\n for ($dim=1; $dim <= $this->nb_dimensions; $dim++)\n {\n\t$this->entetes[$dim] = array();\n\t$this->affiche_entete[$dim] = TRUE;\n }\n // Attributs de la balise <TABLE>\n $this->ajoutAttributsTable($tab_attrs);\n }", "title": "" }, { "docid": "1564b9a2bfe288e7bbab23d986b8d899", "score": "0.6087173", "text": "function tabla_mov_incompletos_simples_facturar($mes, $anio) {\r\n $mysqli = conectar_db();\r\n selecciona_db($mysqli);\r\n \r\n $Consulta = \"SELECT a.id, a.idMov, a.fecha, a.origen, (SELECT b.nombre FROM empresas b WHERE b.id = a.empresa), a.monto, a.folio, a.pdf FROM movimientoSimple a, movimiento b WHERE b.id = a.idMov AND b.activo = 1 AND a.realizado = 1 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' ORDER BY a.id ASC\";\r\n\r\n $pConsulta = consulta_tb($mysqli, $Consulta);\r\n\r\n if(!$pConsulta){\r\n echo \"No se encontrarón resultados para esta consulta.\";\r\n }else{\r\n echo \"<tr><td id='numeroMovimiento'><b>\",'No.',\"</b></td>\r\n <td id='numeroMovimiento'><b>\",'No. Mov.',\"</b></td>\r\n <td class='fechaMov'><b>\",'Fecha',\"</b></td>\r\n <td><b>\",'Destino de Factura',\"</b></td>\r\n <td><b>\",'Origen de Factura',\"</b></td>\r\n <td class='montMov'><b>\",'Monto',\"</b></td>\r\n <td class='montMov'><b>\",'Folio',\"</b></td>\r\n <td class='botnMov'><b>\",'Ingresar Folio',\"</b></td>\r\n <td class='botnMov'><b>\",'PDF',\"</b></td></tr>\";\r\n while($row=mysqli_fetch_array($pConsulta)){\r\n echo \"<tr><td><input type='hidden' name='idMovSimples[]' value='$row[0]'>\", $row[0],\"</td>\r\n <td><label>\", $row[1],\"</label></td>\r\n <td class='fechaMov'>\", date_format(date_create($row[2]), 'd / m / Y'),\"</td>\r\n <td><label>\", $row[3],\"</label></td>\r\n <td><label>\", $row[4],\"</label></td>\r\n <td><label>\", $row[5],\"</label></td>\r\n <td class='montMov'><input type='hidden' name='folioAntSimple[]' value='$row[6]'><label>\", $row[6],\"</label></td>\";\r\n if($row[6] == \"\"){\r\n echo \"<td class='botnMov'><input type='text' name='folioSimple[]' maxlength='50' onKeyUp='soloMayusculas(this.value,this.id)'></td>\";\r\n }else{\r\n echo \"<td class='botnMov'><input type='text' name='folioSimple[]' maxlength='50' disabled></td>\";\r\n }\r\n if($row[7] == \"\"){\r\n echo \"<td class='botnMov'><input type='file' name='pdfSimple[]'></td></tr>\";\r\n }else{\r\n echo \"<td class='botnMov'><input type='file' name='pdfSimple[]' disabled><a target=\\\"_blank\\\" href=\\\"$row[7]\\\" title=\\\"\\\">Factura</a></td></tr>\";\r\n }\r\n }\r\n }\r\n cerrar_db($mysqli);\r\n }", "title": "" }, { "docid": "e47f1b89d31ec4bba627c27ba46bbd65", "score": "0.608556", "text": "function fImprimirDetalle_Tabla_Todos(){\n $datos = $GLOBALS['agenda'];\n // Para cada registro\n echo \"<table border='1'>\";\n echo \"<tr><th>Nombre</th><th>Profesión</th><th>Telefóno</th><th>Aficiones</th><tr>\";\n for ($i=0; $i<count($datos); $i++){\n $registro = $datos[$i];\n $nombre_solicitado = $GLOBALS['nombre_pedido'];\n // imprime nombre, profesion, teléfono y guarda aficion\n $nombre = $registro[0];\n $profesion = $registro[1];\n $telefono = $registro[2];\n $aficiones = $registro[3];\n $n_aficiones = count($aficiones);\n\n if (count($n_aficiones) == 0){\n $n_aficiones = 1;\n }\n\n echo \"<tr>\";\n echo \" <td rowspan='$n_aficiones'>$nombre </td>\";\n echo \" <td rowspan='$n_aficiones'>$profesion </td>\";\n echo \" <td rowspan='$n_aficiones'>$telefono </td>\";\n // Para cada aficion, imprimela\n if (count($aficiones == 0)){\n echo \" <td>Aburrido </td>\";\n }\n else{\n echo \"<td> \";\n for ($j=0; $j<count($aficiones); $j++){\n echo $aficiones[$j] . \" \";\n }\n echo \"</td></tr></table> \";\n echo \"<hr>\";\n }\n\n return; \n }\n }", "title": "" }, { "docid": "c65913b1231ceb6febd357f71340dc8d", "score": "0.6084921", "text": "function crearTablas(){\n $usuarios= 'CREATE TABLE usuarios(\n id_usuario Int NOT NULL AUTO_INCREMENT,\n dni Varchar(10) NOT NULL,\n nombre Varchar(255) NOT NULL,\n password Varchar(255) NOT NULL,\n tipo Int(5) NOT NULL,\n PRIMARY KEY (id_usuario)\n )';\n $formasPago= 'CREATE TABLE formasPago(\n cod_fp Int NOT NULL AUTO_INCREMENT,\n forma_pago Varchar(255) NOT NULL,\n dias Int NOT NULL,\n PRIMARY KEY (cod_fp)\n )';\n $clientes = 'CREATE TABLE clientes(\n num_cliente Int NOT NULL AUTO_INCREMENT,\n nombre Varchar(255) NOT NULL,\n direccion Varchar(255) NOT NULL,\n cp Int(5) NOT NULL,\n localidad Varchar(25) NOT NULL,\n nombre_contacto Varchar(255),\n telefono Int(9),\n movil Int(9),\n email Varchar(150),\n cod_fp Int NOT NULL,\n cif Varchar(11) NOT NULL,\n recargo Varchar(2) NOT NULL,\n plataforma Varchar(2) NOT NULL,\n PRIMARY KEY (num_cliente),\n FOREIGN KEY (cod_fp) REFERENCES formasPago(cod_fp)\n )';\n $albaranes = 'CREATE TABLE albaranes(\n id_albaran Int NOT NULL AUTO_INCREMENT,\n num_albaran Varchar(255) NOT NULL,\n fecha_exp Date NOT NULL,\n fecha_ven Date NOT NULL,\n total_p float NOT NULL,\n total_i float NOT NULL,\n total_r float NOT NULL,\n total_a float NOT NULL,\n num_cliente Int NOT NULL,\n id_usuario Int NOT NULL,\n PRIMARY KEY (id_albaran,num_albaran),\n FOREIGN KEY (num_cliente) REFERENCES clientes(num_cliente),\n FOREIGN KEY (id_usuario) REFERENCES usuarios(id_usuario)\n )';\n $facturas = 'CREATE TABLE facturas(\n id_factura Int NOT NULL AUTO_INCREMENT,\n num_factura Varchar(255) NOT NULL,\n fecha Date NOT NULL, \n total_p float NOT NULL,\n total_i float NOT NULL,\n total_r float NOT NULL,\n total_f float NOT NULL,\n num_cliente Int NOT NULL,\n id_albaran Int,\n num_albaran Varchar(255),\n id_usuario Int NOT NULL,\n PRIMARY KEY (id_factura,num_factura),\n FOREIGN KEY (num_cliente) REFERENCES clientes(num_cliente),\n FOREIGN KEY (id_albaran,num_albaran) REFERENCES albaranes(id_albaran,num_albaran),\n FOREIGN KEY (id_usuario) REFERENCES usuarios(id_usuario)\n )';\n $categorias = 'CREATE TABLE categorias(\n cod_categoria Int(11) NOT NULL AUTO_INCREMENT,\n nom_categoria Varchar(50) NOT NULL,\n PRIMARY KEY (cod_categoria)\n )';\n $productos = 'CREATE TABLE productos(\n cod_producto Varchar(255) NOT NULL,\n nom_producto Varchar(50) NOT NULL, \n cod_categoria Int(11) NOT NULL,\n stock Int(11) NOT NULL,\n precio Int(11) NOT NULL,\n tarifa float NOT NULL,\n unidades_caja Int,\n peso_gramos float,\n oferta Varchar(2) NOT NULL, \n img Varchar(255),\n PRIMARY KEY (cod_producto),\n FOREIGN KEY (cod_categoria) REFERENCES categorias(cod_categoria),\n FOREIGN KEY (tarifa) REFERENCES tarifas(tarifa)\n )';\n $tarifaPlataforma = 'CREATE TABLE tarifaPlataforma(\n cod_tarifaP Int NOT NULL AUTO_INCREMENT,\n tarifa Int NOT NULL,\n PRIMARY KEY (cod_tarifa)\n )';\n $tarifas = 'CREATE TABLE tarifas(\n cod_tarifa Int NOT NULL AUTO_INCREMENT,\n nom_tarifa Varchar(255) NOT NULL,\n tarifa float NOT NULL,\n num_cliente Int NOT NULL,\n cod_producto Varchar(255) NOT NULL,\n especial Varchar(2) NOT NULL,\n PRIMARY KEY (cod_tarifa),\n FOREIGN KEY (num_cliente) REFERENCES clientes(num_cliente),\n FOREIGN KEY (cod_producto) REFERENCES productos(cod_producto)\n )';\n $albaranesProductos = 'CREATE TABLE albaranesProductos(\n id Int NOT NULL AUTO_INCREMENT,\n id_albaran Int NOT NULL,\n num_albaran Varchar(255) NOT NULL,\n cod_producto Varchar(255) NOT NULL,\n cantidad Int NOT NULL,\n precio float NOT NULL,\n dto float NOT NULL,\n total_u float NOT NULL,\n num_cliente Int NOT NULL,\n PRIMARY KEY (id),\n FOREIGN KEY (id_albaran,num_albaran) REFERENCES albaranes(id_albaran,num_albaran),\n FOREIGN KEY (cod_producto) REFERENCES productos(cod_producto),\n FOREIGN KEY (num_cliente) REFERENCES clientes(num_cliente)\n )';\n $facturasProductos = 'CREATE TABLE facturasProductos(\n id Int NOT NULL AUTO_INCREMENT,\n id_factura Int NOT NULL,\n num_factura Varchar(255) NOT NULL,\n cod_producto Varchar(255) NOT NULL,\n cantidad Int NOT NULL,\n precio float NOT NULL,\n dto float NOT NULL,\n total_u float NOT NULL, \n num_cliente Int NOT NULL,\n PRIMARY KEY (id),\n FOREIGN KEY (id_factura,num_factura) REFERENCES facturas(id_factura,num_factura),\n FOREIGN KEY (cod_producto) REFERENCES productos(cod_producto),\n FOREIGN KEY (num_cliente) REFERENCES clientes(num_cliente)\n )';\n\t\t//Una ves creadas las tablas, nos introduce todos los coleres de nuestra paleta de colores.\n if(mysqli_query($usuarios) && mysqli_query($formasPago) && mysqli_query($clientes) && mysqli_query($albaranes) && mysqli_query($facturas) && \n mysqli_query($categorias) && mysqli_query($productos) && mysqli_query($tarifas) && mysqli_query($albaranesProductos) && \n mysqli_query($facturasProductos)){\n echo 'Tablas creadas con exito.';\n } else{\n echo 'No se han podido crear las tablas.<br>';\n echo mysqli_error();\n }\n }", "title": "" }, { "docid": "618f17bffa3a4627a6b0a8369ded0c91", "score": "0.60794795", "text": "function tabla_mov_incompletos_simples($mes, $anio) {\r\n $mysqli = conectar_db();\r\n selecciona_db($mysqli);\r\n\r\n $Consulta = \"SELECT a.id, a.fecha, a.hora, a.origen, a.origen, a.monto, a.tipo FROM movimiento a WHERE a.activo = 1 AND a.tipo = 3 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' GROUP BY a.id ORDER BY a.fecha, a.hora ASC\";\r\n \r\n //$Consulta = \"SELECT a.id, a.fecha, a.hora, a.origen, a.origen, a.monto, a.tipo FROM movimiento a, movimientoFinal c, movimientoSimple d WHERE a.activo = 1 AND ((c.idMov = a.id AND c.realizado = 0) OR (d.idMov = a.id AND d.realizado = 0)) AND a.tipo = 3 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' GROUP BY a.id ORDER BY a.fecha, a.hora ASC\";\r\n $pConsulta = consulta_tb($mysqli, $Consulta);\r\n //$row=mysqli_fetch_array($pConsulta);\r\n //if(!$row){\r\n //$Consulta = \"SELECT a.id, a.fecha, a.hora, a.origen, a.origen, a.monto, a.tipo FROM movimiento a, movimientoFinal c WHERE a.activo = 1 AND c.idMov = a.id AND c.realizado = 0 AND a.tipo = 3 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' GROUP BY a.id ORDER BY a.fecha, a.hora ASC\";\r\n //$pConsulta = consulta_tb($mysqli, $Consulta);\r\n //$row=mysqli_fetch_array($pConsulta);\r\n //if(!$row){\r\n //$Consulta = \"SELECT a.id, a.fecha, a.hora, a.origen, a.origen, a.monto, a.tipo FROM movimiento a, movimientoSimple d WHERE a.activo = 1 AND d.idMov = a.id AND d.realizado = 0 AND a.tipo = 3 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' GROUP BY a.id ORDER BY a.fecha, a.hora ASC\";\r\n //$pConsulta = consulta_tb($mysqli, $Consulta);\r\n //$row=mysqli_fetch_array($pConsulta);\r\n //}\r\n //}\r\n\r\n $control = 1;\r\n echo \"<tr><td id='noMov'><b>\",'No.',\"</b></td>\r\n <td class='fechaMov'><b>\",'Fecha',\"</b></td>\r\n <td class='horaMov'><b>\",'Hora',\"</b></td>\r\n <td id='empOrig'><b>\",'Origen',\"</b></td>\r\n <td id='empMov'><b>\",'Empresa',\"</b></td>\r\n <td class='montMov'><b>\",'Monto',\"</b></td>\r\n <td class='botnMov'><b>\",'Detalles',\"</b></td>\r\n <td class='botnMov'><b>\",'Final',\"</b></td></tr>\";\r\n $Consulta = $Consulta;\r\n $pConsulta = consulta_tb($mysqli, $Consulta);\r\n while($row=mysqli_fetch_array($pConsulta)){\r\n $Consulta2 = \"SELECT realizado FROM disperciones WHERE idMov = $row[0]\";\r\n $pConsulta2 = consulta_tb($mysqli, $Consulta2);\r\n if(mysqli_num_rows($pConsulta2)<1){\r\n if($row[6] == 2){\r\n $row[4] = \"<-----NÓMINA----->\";\r\n }else if($row[6] == 3){\r\n $row[4] = \"----->SÍMPLE<-----\";\r\n }\r\n echo \"<tr><td>\", $row[0],\"</td>\r\n <td class='fechaMov'>\", date_format(date_create($row[1]), 'd / m / Y'),\"</td>\r\n <td class='horaMov'>\", $row[2],\"</td>\r\n <td>\", $row[3],\"</td>\r\n <td>\", $row[4],\"</td>\r\n <td class='montMov'>\", $row[5],\"</td>\r\n <td class='botnMov'><input type='button' value='Detalles' onClick='validar(\",$control,\", 3)'></td>\r\n <td class='botnMov'><input type='button' value='Finalizar' onClick='validar2(\",$control,\", 3)'></td></tr>\";\r\n $control++;\r\n }else{\r\n $Consulta2 = \"SELECT realizado FROM disperciones WHERE idMov = $row[0] AND realizado = 0 LIMIT 1\";\r\n $pConsulta2 = consulta_tb($mysqli, $Consulta2);\r\n $Consulta3 = \"SELECT realizado FROM movimientoFinal WHERE idMov = $row[0] AND realizado = 0 LIMIT 1\";\r\n $pConsulta3 = consulta_tb($mysqli, $Consulta3);\r\n if(mysqli_num_rows($pConsulta2)>0 || mysqli_num_rows($pConsulta3)>0){\r\n if($row[6] == 2){\r\n $row[4] = \"<-----NÓMINA----->\";\r\n }else if($row[6] == 3){\r\n $row[4] = \"----->SÍMPLE<-----\";\r\n }\r\n echo \"<tr><td>\", $row[0],\"</td>\r\n <td class='fechaMov'>\", date_format(date_create($row[1]), 'd / m / Y'),\"</td>\r\n <td class='horaMov'>\", $row[2],\"</td>\r\n <td>\", $row[3],\"</td>\r\n <td>\", $row[4],\"</td>\r\n <td class='montMov'>\", $row[5],\"</td>\r\n <td class='botnMov'><input type='button' value='Detalles' onClick='validar(\",$control,\", 3)'></td>\r\n <td class='botnMov'><input type='button' value='Finalizar' onClick='validar2(\",$control,\", 3)'></td></tr>\";\r\n $control++;\r\n }\r\n }\r\n \r\n }\r\n cerrar_db($mysqli);\r\n }", "title": "" }, { "docid": "8f2d89dd81859485c7d5f256f50e06f6", "score": "0.6077627", "text": "private function llenarTabla() {\n $query = new DbQuery();\n $query->select('al.name, al.id_attribute');\n $query->from('attribute_lang', 'al');\n $query->join('\n\t\t\tLEFT JOIN ' . _DB_PREFIX_ . 'attribute a ON a.id_attribute = al.id_attribute\n\t\t\tLEFT JOIN ' . _DB_PREFIX_ . 'attribute_group_lang gl ON gl.id_attribute_group = a.id_attribute_group\n ');\n $query->where('gl.name = \\'metal\\' AND al.id_lang = 1');\n $query->groupBy('al.id_attribute');\n $result = Db::getInstance()->executeS($query);\n if (is_array($result)) {\n foreach ($result as $r) {\n // Ahora llenamos la tabla \n $query = \"INSERT INTO `\" . _DB_PREFIX_ . \"cot_metales` (cot_metal_id, cot_metal_name, cot_metal_precio, cot_metal_last_update, id_attribute) \n VALUES \n (NULL, '\" . $r['name'] . \"', 0, \" . time() . \", \" . $r['id_attribute'] . \");\";\n DB::getInstance()->execute($query);\n }\n }\n }", "title": "" }, { "docid": "2a27d831f7c6429fb6cbc38c9f49b869", "score": "0.6069823", "text": "public function mostrarTablas(){\t\n\t\t\n\t\t$item = null;\n \t\t$valor = null;\n\n \t\t$Promociones = ControladorControlMuestras::ctrMostrarPromociones($item, $valor);\n\n\n \t\t$datosJson = '{\n\t\t \n\t \t\"data\": [ ';\n\n\t \tfor($i = 0; $i < count($Promociones); $i++){\n\n\t \t\t$img = \"<img class='img-thumbnail imgPortadaCategorias' src='\".$Promociones[$i][\"imagen\"].\"' width='100px'>\";\n\t \t\t$editar = \"<button class='btn btn-warning btnEditarPromociones' idPromocion='\".$Promociones[$i][\"id\"].\"' data-toggle='modal' data-target='#modalEditarPromociones'><i class='fa fa-pencil'></i></button>\";\n\t \t\t/*=============================================\n\t\t\tDEVOLVER DATOS JSON\n\t\t\t=============================================*/\n\n\t\t\t$datosJson\t .= '[\n\t\t\t\t \n\t\t\t\t \"'.$Promociones[$i][\"id\"].'\",\n\t\t\t\t \"'.$Promociones[$i][\"descripcion\"].'\",\n\t\t\t\t \"'.$img.'\",\n\t\t\t\t \"'.$editar.'\"\n\t\t\t\t ],';\n\n\t \t}\n\n\t \t$datosJson = substr($datosJson, 0, -1);\n\n\t\t$datosJson.= ']\n\t\t\t \n\t\t}'; \n\n\t\techo $datosJson;\n\n \t}", "title": "" }, { "docid": "7f0e2ae8c3734d51fa0f0c05a15a04c3", "score": "0.60638225", "text": "function listaTabelaSerial($codigo_estat_conexao,$nome_esquema,$nome_tabela){\n $sql = \"SELECT a.attname as coluna FROM pg_class s JOIN pg_depend d ON d.objid = s.oid JOIN pg_class t ON d.objid = s.oid AND d.refobjid = t.oid JOIN pg_attribute a ON (d.refobjid, d.refobjsubid) = (a.attrelid, a.attnum) JOIN pg_namespace n ON n.oid = s.relnamespace WHERE s.relkind = 'S' AND n.nspname = '$nome_esquema' AND t.relname = '$nome_tabela'\";\n $colunas = $this->execSQLDB($codigo_estat_conexao,$sql);\n $colunas = $colunas[0];\n return $colunas[\"coluna\"];\n }", "title": "" }, { "docid": "be454b65f67fddc271ba7c39161806f7", "score": "0.6062937", "text": "function PesquisaTabela($tabela){\r\n\t\tswitch($tabela) {\r\n\t\tcase produto:\r\n\t\t\t$newtable = 'srs_product';\r\n\t\t\tbreak;\r\n\t\tcase categoria:\r\n\t\t\t$newtable = 'srs_category';\r\n\t\t\tbreak;\r\n\t\tcase entrada:\r\n\t\t\t$newtable = 'srs_input';\r\n\t\t\tbreak;\r\n\t\tcase saida:\r\n\t\t\t$newtable = 'srs_output';\r\n\t\t\tbreak;\r\n\t\tcase retirante:\r\n\t\t\t$newtable = 'srs_requester';\r\n\t\t\tbreak;\r\n\t\tcase fornecedor:\r\n\t\t\t$newtable = 'srs_supplier';\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\r\n\t\tif($tabela != 'produto'){\r\n\t\t\treturn mysql_query(\"Select * from $newtable\");\r\n\t\t}else{\r\n\t\t\treturn mysql_query(\"Select a.id, b.nome as Categoria, a.nome, a.estoque_minimo, a.estoque_atual from srs_product a left join srs_category b on b.id = a.categoria or b.nome = a.categoria order by b.nome, a.nome\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "41539f9116d00188e76c1d08c2fd978f", "score": "0.6061767", "text": "public function getNroTabla()\n {\n return $this->hasOne(Tipo::className(), ['nro_tabla' => 'nro_tabla', 'desc_abrev' => 'tipo_docum']);\n }", "title": "" }, { "docid": "39ac901e71b3048b74f8f88c37cf2539", "score": "0.60605", "text": "function tablaTipoContenido($Nombre){\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::tablaRegistro($Nombre, $query);\r\n\t\r\n }", "title": "" }, { "docid": "3ab69094c3d000afc179f2f1c92a4a36", "score": "0.60549384", "text": "public function __construct() {\n\t\t\tparent::__construct('comentario');\n\t\t\t//Se asigna a la variable heredada $nombreTabla el nombre de la tabla SQL\n\t\t\t//Se marca cual es el id de la tabla\n\t\t}", "title": "" }, { "docid": "757693b548d7b8cb0d5782d2558095f5", "score": "0.60539067", "text": "private function CuerpoRegistros(){\n\t\t$registro = new Registros();\n\t\t$colspan = $this->getColspan();\n\n\t\t$this->informe .= '<table class=\"Informe\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td colspan=\"'.$colspan.'\" class=\"SuperTitulo\">\n\t\t\t\t\t\t\t\t\tGeneralidades\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>';\n\t\t\n\t\tforeach ($this->registros as $f => $v) {\n\t\t\t//TITULO DE CATEGORIA\n\t\t\t$this->informe .= '<tr>\n\t\t\t\t\t\t\t\t<td colspan=\"'.$colspan.'\" class=\"SubTitulo\">\n\t\t\t\t\t\t\t\t\t'.$this->registros[$f]['categoria'].'\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t </tr>';\n\n\t\t\t//CATEGORIAS\n\t\t\t$this->informe .= '<tr>';\n\t\t\tforeach ($this->registros[$f]['normas'] as $fi => $normas) {\n\t\t\t\t\n\t\t\t\tforeach ($normas as $campo => $valor) {\n\t\t\t\t\tif($campo == 'campo'){\n\t\t\t\t\t\t//echo $registro->getCampo($valor);\n\t\t\t\t\t\t$cabezera = $registro->getCampo($valor);\n\t\t\t\t\t\t$this->informe .= '<td class=\"Categoria\">'.$cabezera.'</td>';\n\t\t\t\t\t}else{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t$this->informe .= '</tr>';\n\n\n\t\t\t//DATOS \n\t\t\t$this->informe .= '<tr>';\n\t\t\tforeach ($this->registros[$f]['normas'] as $fi => $normas) {\n\t\t\t\t\n\t\t\t\tforeach ($normas as $campo => $valor) {\n\t\t\t\t\tif($campo == 'contenido'){\n\t\t\t\t\t\t$this->informe .= '<td class=\"Dato1\">'.$valor.'</td>';\n\t\t\t\t\t}else{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t$this->informe .= '</tr>';\n\n\t\t}\n\n\t\t$this->informe .= '</table>';\n\n\t}", "title": "" }, { "docid": "0db26ac28c94241c4d4452911ccfcd84", "score": "0.60493433", "text": "public function createTable()\n\t{\n\t\t$data = $this->loadData();\n?>\n\t\t\t<table>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Année</th>\n\t\t\t\t\t\t<th>Mois</th>\n\t\t\t\t\t\t<th>Trial Utilisateurs</th>\n\t\t\t\t\t\t<th>Utilisateurs payants</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n<?php\t\t\t\t\t\n\t\tforeach($data as $users)\n\t\t{\t\n\t\t\techo \"<tr>\";\n\t\t\tfor($i=0; $i < sizeof($users); $i++)\n\t\t\t{\n\t\t\t\techo \"<td>\" . $users[$i] . \"</td>\";\n\t\t\t}\n\t\t\techo \"</tr>\";\n\n\t\t}\n\t\t\n\t\t\t\techo \"</tbody>\";\n\t\t\techo\"</table>\";\n\t}", "title": "" }, { "docid": "22060a68b874a5a212f6b9d73eb09912", "score": "0.6047779", "text": "function doctrine_tabular($header, $data, $fields = null, $width = 'full', $options = array())\n{\n $table = array();\n\n foreach ($data as $obj)\n {\n $row = array();\n foreach ($fields as $column_name => $field_name)\n {\n if (preg_match('/^_/', $column_name))\n {\n $new_value = $field_name;\n if (preg_match('/%(\\w+)%/', $field_name, $matches))\n {\n array_shift($matches);\n foreach($matches as $replace_field)\n {\n $new_value = str_replace(\"%$replace_field%\", $obj->$replace_field, $new_value);\n }\n }\n\n $row[$column_name] = $new_value;\n continue;\n }\n\n try\n {\n $row[$column_name] = $obj->$field_name;\n }\n catch (Exception $e)\n {\n $row[$column_name] = $obj->$field_name();\n }\n }\n $table[] = $row;\n }\n\n return tabular_box($header, $table, $columns = array_keys($fields), $width, $options);\n}", "title": "" }, { "docid": "2e965d44ad4ed1d4a4d8cd404d125beb", "score": "0.6046685", "text": "function tabela2($tip, $tekst3, $red, $kol)\n {\n echo \"<table class='treca'>\";\n for ($i = 0; $i < $red; $i++) {\n echo \"<tr>\";\n for ($j = 0; $j < $kol; $j++) {\n\n // for($f = 0; $f <= $tip; $f++) {\n // if($f == $tip) {\n // echo \"<td style='font-style: italic'>$tekst3</td>\";\n // } else {\n // echo \"<td style='font-style: normal'>$tekst3</td>\";\n // }\n // }\n\n if ($j % 2 == $tip) { // nije stvarno naizmenicno, jer uvek kao da pocinje iz pocetka :|\n echo \"<td style='font-style: italic'>$tekst3</td>\";\n } else {\n echo \"<td style='font-style: normal'>$tekst3</td>\";\n }\n }\n echo \"</tr>\";\n }\n echo \"</table>\";\n }", "title": "" }, { "docid": "6a1811263929f745b2ed92ff2b0ff942", "score": "0.60420305", "text": "function get_resultados_tablero($id = NULL, $mes = NULL, $anio = NULL) {\n \n if( !is_null($id) ) {\n\n $data = array();\n\n $query = $this->ci->db->query(\"SELECT \n real_drilldown.idReal_Drilldown, real_drilldown.Campo, real_drilldown.valor\n FROM real_drilldown\n WHERE real_drilldown.idIndicador = '$id'\n AND real_drilldown.Mes = '$mes'\n AND real_drilldown.Anio = '$anio'\n \");\n \n\n if ($query != NULL) {\n foreach ($query->result() as $row) {\n $data[] = array(\n 'id' => $row -> idReal_Drilldown, \n 'campo' => $row -> Campo, \n 'valor' => $row -> valor\n );\n\n }\n\n return $data;\n } else {\n return NULL;\n }\n\n } else {\n // $query = $this->ci->db->query(\"Select \n // indicador.idIndicador,\n // indicador.Descripcion,\n // indicador.Tipo,\n // `real`.Mes,\n // `real`.Anio,\n // objetivo.valor as Objetivo,\n // real.valor,\n // CASE \n // when `real`.valor > objetivo.valor THEN 1\n // when `real`.valor = objetivo.valor THEN 0\n // when `real`.valor < objetivo.valor THEN -1\n // END AS Indicador,\n // ( select GROUP_CONCAT(CASE \n // when r2.valor > objetivo.valor THEN 1\n // when r2.valor = objetivo.valor THEN 0\n // when r2.valor < objetivo.valor THEN -1\n\n // END) from `real` as r2 where r2.idindicador = `real`.idindicador LIMIT 10) AS Historico\n // from indicador\n // inner join `real` ON real.idIndicador = indicador.idIndicador\n // inner join objetivo ON objetivo.idIndicador = real.idIndicador and objetivo.anio and objetivo.mes\");\n \n $query = $this->ci->db->query(\"Select \nindicador.idIndicador,\nindicador.Descripcion,\nindicador.Tipo,\n`real`.Mes,\n`real`.Anio,\nobjetivo.valor as Objetivo,\nreal.valor,\nreal.valor - objetivo.valor AS diferencial,\nCASE \nwhen `real`.valor > objetivo.valor THEN 1\nwhen `real`.valor = objetivo.valor THEN 0\nwhen `real`.valor < objetivo.valor THEN -1\nEND AS Indicador,\n(\nselect GROUP_CONCAT(\nCASE \nwhen r2.valor > o2.valor THEN 1\nwhen r2.valor = o2.valor THEN 0\nwhen r2.valor < o2.valor THEN -1\nEND\n) \nfrom `real` as r2 \nINNER join objetivo as o2 on r2.idindicador = o2.idindicador and r2.mes = o2.mes and r2.anio = o2.anio\nwhere r2.idindicador = `real`.idindicador \nand r2.date_computed > date_add(`real`.date_computed, INTERVAL -300 DAY) and r2.date_computed <= `real`.date_computed \nORDER BY r2.date_computed) \nAS Historico, \n\ndate_computed\nfrom indicador\ninner join `real` ON real.idIndicador = indicador.idIndicador\ninner join objetivo ON objetivo.idIndicador = real.idIndicador and objetivo.anio = real.anio and objetivo.mes = real.mes\norder by date_computed desc\");\n\n if ($query != NULL) {\n foreach ($query->result() as $row) {\n $data[] = array(\n 'id' => $row -> idIndicador, \n 'descripcion' => $row -> Descripcion, \n 'tipo' => $row -> Tipo, \n 'mes' => $row -> Mes, \n 'anio' => $row -> Anio, \n 'objetivo' => $row -> Objetivo, \n 'valor' => $row -> valor,\n 'indicador' => $row -> Indicador,\n 'historico' => $row-> Historico,\n 'diferencial' => $row-> diferencial\n );\n\n }\n\n return $data;\n } else {\n return NULL;\n }\n }\n\n }", "title": "" }, { "docid": "c819f7d53181cdbb10eeec0f3c01b122", "score": "0.6040256", "text": "private function tabla_estilo(){\n $template = array(\n 'table_open' => '<table class=\"table table-hover\">',\n\n 'thead_open' => '<thead>',\n 'thead_close' => '</thead>',\n\n 'heading_row_start' => '<tr>',\n 'heading_row_end' => '</tr>',\n 'heading_cell_start' => '<th><h1>',\n 'heading_cell_end' => '</h1></th>',\n\n 'tbody_open' => '<tbody>',\n 'tbody_close' => '</tbody>',\n\n 'row_start' => '<tr>',\n 'row_end' => '</tr>',\n 'cell_start' => '<td> <h1>',\n 'cell_end' => '</h1> </td>',\n\n 'row_alt_start' => '<tr>',\n 'row_alt_end' => '</tr>',\n 'cell_alt_start' => '<td> <h1>',\n 'cell_alt_end' => '</h1> </td>',\n\n 'table_close' => '</table>'\n );\n\n return $template;\n \n }", "title": "" }, { "docid": "091ac9c6a93360a29f1e7fe2f4c3c103", "score": "0.6039241", "text": "function createArrayLinha1Table ($titulo1, $texto1, $img_linha1, $ativo, $crud) {\n\tif(!isset($titulo1, $texto1, $ativo, $img_linha1))\n\t\tdie(\"Um ou mais parametro esta com indefinido\");\n\n\tif($crud == 'create'){\t\n\t\t$array = array(\n\t\t\t\t'titulo1' => $titulo1,\n\t\t\t\t'texto1' => $texto1,\n\t\t\t\t'img_linha1' => $img_linha1,\n\t\t\t\t'ativo' => $ativo\n\t\t\t);\n\t\treturn $array;\n\t}elseif($crud == 'update'){\n\t\t$array = array(\n\t\t\t\t'titulo1' => $titulo1,\n\t\t\t\t'texto1' => $texto1,\n\t\t\t\t'img_linha1' => $img_linha1,\n\t\t\t\t'ativo' => $ativo\n\t\t\t);\n\t\t$newArray = array();\n\t\tforeach($array as $key => $value){\n\t\t\tif($value != null)\n\t\t\t\t$newArray[$key] = $value;\n\t\t}\n\t\treturn $newArray;\n\t}else\n\t\tdie('Paramantro \"$crud\" foi passado de maneira errada para a função (\"createArrayAtendimentoTable\")');\n}", "title": "" }, { "docid": "2c7380d41e42b8d386e785219f1ad5ea", "score": "0.603439", "text": "public function abreTable() {\n $this->celula = \"\" . $this->celula . \"<table><tr align=\\\"center\\\">\";\n }", "title": "" }, { "docid": "f53147793836dd29c892b66fd5e70d25", "score": "0.6032936", "text": "public function createtables(){\r\n\t\t\techo \"Ha llegao al crear tablas\";\r\n\t\t\t$this->createTableUser();\r\n\t\t}", "title": "" }, { "docid": "e6b53ba6e6637a548979bd67b86154c6", "score": "0.60291207", "text": "function tabla_mov_incompletos_nominas_facturar($mes, $anio) {\r\n $mysqli = conectar_db();\r\n selecciona_db($mysqli);\r\n \r\n $Consulta = \"SELECT a.id, a.idMov, a.fecha, a.origen, (SELECT b.nombre FROM empresas b WHERE b.id = a.empresa), a.monto, a.folio, a.pdf FROM movimientoNominas a, movimiento b WHERE b.id = a.idMov AND b.activo = 1 AND a.realizado = 1 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' ORDER BY a.id ASC\";\r\n\r\n $pConsulta = consulta_tb($mysqli, $Consulta);\r\n\r\n if(!$pConsulta){\r\n echo \"No se encontrarón resultados para esta consulta.\";\r\n }else{\r\n echo \"<tr><td id='numeroMovimiento'><b>\",'No.',\"</b></td>\r\n <td id='numeroMovimiento'><b>\",'No. Mov.',\"</b></td>\r\n <td class='fechaMov'><b>\",'Fecha',\"</b></td>\r\n <td><b>\",'Destino de Factura',\"</b></td>\r\n <td><b>\",'Origen de Factura',\"</b></td>\r\n <td class='montMov'><b>\",'Monto',\"</b></td>\r\n <td class='montMov'><b>\",'Folio',\"</b></td>\r\n <td class='botnMov'><b>\",'Ingresar Folio',\"</b></td>\r\n <td class='botnMov'><b>\",'PDF',\"</b></td></tr>\";\r\n while($row=mysqli_fetch_array($pConsulta)){\r\n echo \"<tr><td><input type='hidden' name='idMovNominas[]' value='$row[0]'>\", $row[0],\"</td>\r\n <td><label>\", $row[1],\"</label></td>\r\n <td class='fechaMov'>\", date_format(date_create($row[2]), 'd / m / Y'),\"</td>\r\n <td><label>\", $row[3],\"</label></td>\r\n <td><label>\", $row[4],\"</label></td>\r\n <td><label>\", $row[5],\"</label></td>\r\n <td class='montMov'><input type='hidden' name='folioAntNominas[]' value='$row[6]'><label>\", $row[6],\"</label></td>\";\r\n if($row[6] == \"\"){\r\n echo \"<td class='botnMov'><input type='text' name='folioNominas[]' maxlength='50' onKeyUp='soloMayusculas(this.value,this.id)'></td>\";\r\n }else{\r\n echo \"<td class='botnMov'><input type='text' name='folioNominas[]' maxlength='50' disabled></td>\";\r\n }\r\n if($row[7] == \"\"){\r\n echo \"<td class='botnMov'><input type='file' name='pdfNominas[]'></td></tr>\";\r\n }else{\r\n echo \"<td class='botnMov'><input type='file' name='pdfNominas[]' disabled><a target=\\\"_blank\\\" href=\\\"$row[7]\\\" title=\\\"\\\">Factura</a></td></tr>\";\r\n }\r\n }\r\n }\r\n cerrar_db($mysqli);\r\n }", "title": "" }, { "docid": "d35420418546b1e9a4227820623ac67b", "score": "0.60274965", "text": "function actualizarTablero() {\n $conexion = conecta();\n $sqlT = \"truncate t_pry_tablero_control\";\n $resultT = mysql_query($sqlT, $conexion) or die(mysql_error());\n //$arrEstadoCon = variables(0);\n $arrEstado = variables(1);\n $listEstados = variables(2);\n // $sql = \"create table t_pry_tablero_control AS \";\n $sql = \"INSERT INTO t_pry_tablero_control\";\n $sql .= \" SELECT pry.seqProyecto, txtNombreProyecto,\";\n $sqlUpdate = \"ALTER TABLE t_pry_tablero_control\";\n foreach ($arrEstado as $key => $value) {\n\n $value = str_replace(\" \", \"\", $value);\n $value = quitarTildes($value);\n $sql .= \"(SELECT DISTINCT (count(frm1.seqEstadoProceso))\n FROM t_frm_formulario frm1\n WHERE frm1.seqProyecto = und.seqProyecto\n AND frm1.seqEstadoProceso = \" . $key . \") and\n 0 AS 'val\" . $value . \"',\";\n $sql .= \" 0 AS 'v\" . $value . \"', 0 AS 'a\" . $value . \"', 0 AS 'r\" . $value . \"',\";\n $sqlUpdate .= \" CHANGE v\" . $value . \" v\" . $value . \" INT,\n CHANGE a\" . $value . \" a\" . $value . \" INT,\n CHANGE r\" . $value . \" r\" . $value . \" INT,\";\n }\n\n $sql .= \" '' AS total FROM t_pry_unidad_proyecto und \n INNER JOIN t_pry_proyecto pry using(seqProyecto) \n INNER JOIN t_frm_formulario frm USING(seqFormulario) \n WHERE und.seqFormulario is not null \n and frm.seqEstadoProceso IN (\" . $listEstados . \") AND und.bolActivo = 1\n #AND pry.seqTipoEsquema in (1,2,8,9) \n and und.seqProyecto > 0 \n GROUP BY und.seqProyecto \n \";\n $sqlUpdate = substr_replace($sqlUpdate, ';', -1, 1);\n //echo $sqlUpdate;\n// echo $sql . \"<br>\";\n// die();\n $result = mysql_query($sql, $conexion) or die(mysql_error());\n mysql_query($sqlUpdate, $conexion) or die(mysql_error());\n modificarDatosTablero();\n}", "title": "" }, { "docid": "667f10e585c5cfda42620fdb80b88ab6", "score": "0.60213387", "text": "public function get_campos($tabla)\n {\n\n }", "title": "" }, { "docid": "18fb717ff84a59588f28dd17487ec003", "score": "0.6020712", "text": "function tabla_tipo_nomina($codigo,$desc,$sit){\n\t$ClsPla = new ClsPlanilla();\n\t$result = $ClsPla->get_tipo_nomina($codigo,$desc,1);\n\t\n\tif(is_array($result)){\n\t\t\t$salida.= '<div class=\"panel-body\">';\n $salida.= '<div class=\"dataTable_wrapper\">';\n\t\t\t$salida.= '<table class=\"table table-striped table-bordered table-hover dataTables-example\" >';\n\t\t\t$salida.= '<thead>';\n\t\t\t$salida.= '<tr>';\n\t\t\t$salida.= '<th class = \"text-center\" width = \"30px\"><span class=\"glyphicon glyphicon-cog\"></span></th>';\n\t\t\t$salida.= '<th class = \"text-center\" width = \"150px\">DESCRIPCI&Oacute;N</td>';\n\t\t\t$salida.= '<th class = \"text-center\" width = \"250px\">OBSERVACIONES</td>';\n\t\t\t$salida.= '</tr>';\n\t\t\t$salida.= '</thead>';\n\t\t$i=1;\n\t\tforeach($result as $row){\n\t\t\t$salida.= '<tr>';\n\t\t\t//codigo\n\t\t\t$codigo = $row[\"tip_codigo\"];\n\t\t\t$salida.= '<td class = \"text-center\" >';\n\t\t\t$salida.= '<button type=\"button\" class=\"btn btn-default btn-xs\" onclick = \"xajax_Buscar_Tipo_Nomina(\\''.$codigo.'\\')\" title = \"Editar Tipo de Nomina\" ><span class=\"glyphicon glyphicon-pencil\"></span></button> ';\n\t\t\t$salida.= '<button type=\"button\" class=\"btn btn-danger btn-xs\" onclick = \"Deshabilita_Tipo_Nomina(\\''.$codigo.'\\')\" title = \"inhabilitar Tipo de Nomina\" ><span class=\"glyphicon glyphicon-trash\"></span></button>';\n\t\t\t$salida.= '</td>';\n\t\t\t//descripcion\n\t\t\t$nom = utf8_decode($row[\"tip_descripcion\"]);\n\t\t\t$salida.= '<td class = \"text-left\">'.$nom.'</td>';\n\t\t\t//obs\n\t\t\t$ape = utf8_decode($row[\"tip_observaciones\"]);\n\t\t\t$salida.= '<td class = \"text-justify\">'.$ape.'</td>';\n\t\t\t//--\n\t\t\t$salida.= '</tr>';\n\t\t\t$i++;\n\t\t}\n\t\t\t$i--;\n\t\t\t$salida.= '</table>';\n\t\t\t$salida.= '</div>';\n\t\t\t$salida.= '</div>';\n\t}\n\t\n\treturn $salida;\n}", "title": "" }, { "docid": "8030daca8f51ac6c453fac3912f088be", "score": "0.60076445", "text": "abstract public function getTableList();", "title": "" }, { "docid": "984b3392d4711a5570e29f3a3b800fc4", "score": "0.6002102", "text": "protected function fijarTabla(){\n \n return \"ventas\";\n \n }", "title": "" }, { "docid": "9669d443c159ae281bd5fb07eb82a7bc", "score": "0.5997621", "text": "public function Tabla()\n {\n if(!\\Schema::hasTable($this->table))\n\t {\n \\Schema::create($this->table, function(Blueprint $table)\n {\n $table->increments('id');\n $table->integer('declaracion_id')->unsigned();\n $table->foreign('declaracion_id')->references('id')->on('declaraciones')->onDelete('cascade');\n $table->string('operacion',35)->nullable();\n $table->string('marca',35)->nullable();\n $table->string('tipo',35)->nullable();\n $table->string('modelo',35)->nullable();\n $table->string('serieb',35)->nullable();\n $table->string('ubicacion',35)->nullable();\n $table->string('pais',35)->nullable();\n $table->string('forma_adquisicion',35)->nullable();\n $table->string('valor_adquisicion',35)->nullable();\n $table->string('moneda_adquisicion',35)->nullable();\n $table->string('fecha_adquisicion',35)->nullable();\n $table->string('titular',35)->nullable();\n $table->string('forma_operacion',35)->nullable();\n $table->string('valor_operacion',35)->nullable();\n $table->string('moneda_operacion',35)->nullable();\n $table->string('fecha_venta',35)->nullable();\n $table->string('tipo_siniestro',35)->nullable();\n $table->string('aseguradora',35)->nullable();\n $table->string('fecha_siniestro',35)->nullable();\n $table->string('valor_siniestro',35)->nullable();\n $table->string('moneda_siniestro',35)->nullable();\n });\n }\n\t}", "title": "" }, { "docid": "5913eb727c606aa5a01da93328974593", "score": "0.5997582", "text": "public function Tabla(){\n\n if(!\\Schema::hasTable($this->table))\n {\n \\Schema::create($this->table, function(Blueprint $table)\n {\n $table->integer('declaracion_id')->unsigned()->unique();\n $table->foreign('declaracion_id')->references('id')->on('declaraciones')->onDelete('cascade');\n $table->string('pais',2)->nullable()->default(null);\n $table->string('entidadFederativa_clave',2)->nullable()->default(null);\n $table->string('entidadFederativa_valor')->nullable()->default(null);\n $table->string('municipioAlcaldia_clave',4)->nullable()->default(null);\n $table->string('municipioAlcaldia_valor')->nullable()->default(null);\n $table->string('coloniaLocalidad')->nullable()->default(null);\n $table->string('estadoProvincia')->nullable()->default(null);\n $table->string('ciudadLocalidad')->nullable()->default(null);\n $table->string('calle')->nullable()->default(null);\n $table->string('numeroExterior',6)->nullable()->default(null);\n $table->string('numeroInterior',6)->nullable()->default(null);\n $table->string('codigoPostal',13)->nullable()->default(null);\n $table->mediumText('aclaracionesObservaciones')->nullable()->default(null);\n $table->engine = 'InnoDB';\n });\n }//if schema table usuarios exist\n }", "title": "" }, { "docid": "5e5ec12566fbc40c0a77fabf6e85ae91", "score": "0.59925264", "text": "function tables_set($table_name){\n if(!is_array($table_name))\n $table_name = array($table_name);\n $this->tables_name = $table_name;\n $table_name = first($this->tables_name);\n\n //retourne le nom de la clée primaire de la table\n //on ne s'interesse qu'à la premiere table ici\n $types = yks::$get->types_xml;\n $xpath =\"//*[@birth='$table_name']\";\n $this->table_index=current($types->xpath($xpath))->getName();\n $this->tables_xml = array();\n\n foreach($this->tables_name as $table_name){\n $tmp = yks::$get->tables_xml->$table_name;\n if($tmp) $this->tables_xml[$table_name] = $tmp;\n }\n }", "title": "" }, { "docid": "2b6d0ce7ef0c788b3595f33b7aec85d2", "score": "0.5980867", "text": "public function getTabela(){ \n $color = false; \n \n\t\t\t$retorno .= $this->getHeader();\n\n $sqlGames = \"SELECT G.Game_Id\n ,G.Game_Name\n ,G.Tot_Kills\n FROM GAMES G\n ORDER BY G.Game_Id\";\n $queryGames = $this->pdo->link->query($sqlGames); \n $dadosGames = $queryGames->fetchAll(PDO::FETCH_ASSOC);\n\n if(count($dadosGames)>0){\n \n $retorno .= \"<h2 style='text-align:center'>\".$this->titulo.\"</h2>\"; \n $retorno .= \"<table style='width: 100%'>\";\n \n for($i=0; $i<count($dadosGames); $i++){\n\n $retorno .= \"<tr>\";\n $retorno .= \" <td colspan='2' class='rowGame'>\".$dadosGames[$i]['Game_Name'].\" - Total Kills: \".$dadosGames[$i]['Tot_Kills'].\"</td>\";\n $retorno .= \"</tr>\";\n\n $retorno .= \"<tr>\";\n $retorno .= \" <td style width'400px'>&nbsp;</td>\";\n $retorno .= \" <td align='right'>\";\n $retorno .= \" <table style='width: 80%' border='0' class='tbl_itens'>\";\n\n\n $sqlKills = \"SELECT RPAD(K.Causa_Mortis, (145-CHAR_LENGTH(k.Causa_Mortis)), '.') AS Causa_Mortis\n ,COUNT(K.Causa_Mortis) AS kills\n FROM GAMES G\n ,KILLS K\n WHERE K.Game_id = G.Game_Id\n AND G.Game_Id = \".$dadosGames[$i]['Game_Id'].\"\n GROUP BY K.Causa_Mortis;\";\n $queryKills = $this->pdo->link->query($sqlKills); \n $dadosKills = $queryKills->fetchAll(PDO::FETCH_ASSOC);\n\n\n for($j=0; $j<count($dadosKills); $j++){\n\n $retorno .= \" <tr>\";\n $retorno .= \" <td align='left'>\".$dadosKills[$j]['Causa_Mortis'].\"</td>\";\n $retorno .= \" <td align='right'>\".$dadosKills[$j]['kills'].\"</td>\";\n $retorno .= \" </tr>\";\n\n }\n\n $retorno .= \" </table>\";\n $retorno .= \" </td>\";\n $retorno .= \"</tr>\";\n }\n\n $retorno .= \"</table>\";\n\n }\n\t\t\t\n\t\t\t$retorno .= $this->getFooter();\n\t\t\t\n return $retorno; \n }", "title": "" }, { "docid": "25a6b1a7e36f3d5d98895704a7c3f2b3", "score": "0.5973682", "text": "function multipleTablas($core,$campos){\r\n\t\r\n\t$sql = \"SELECT {$campos['idEventos']},{$campos['nombreEvento']},{$campos['fechaEvento']},{$campos['horaEvento']},{$campos['categoriaEvent']},{$campos['nombreInvitado']},{$campos['apellidoInvitado']} \r\n\t\t\tFROM {$campos['tablaPrincipal']} \r\n\t\t\tINNER JOIN {$campos['primeraTablaRelacionada']} \r\n\t\t\tON {$campos['tablaPrincipal']}.{$campos['id_cat_event_Eventos']} = {$campos['primeraTablaRelacionada']}.{$campos['idEventosCategoria']} \r\n\t\t\tINNER JOIN {$campos['segundaTablaRelacionada']} \r\n\t\t\tON {$campos['tablaPrincipal']}.{$campos['id_inv_Eventos']} = {$campos['segundaTablaRelacionada']}.{$campos['idInvitado']}\";\r\n\t$result = $core->query($sql);\r\n\t\r\n\treturn $result;\t\t\r\n}", "title": "" }, { "docid": "12ebd641db869652963dc35423237e8e", "score": "0.5964436", "text": "public function constructTableForMain()\n {\n $obj_table=new table();\n $obj_tr=$obj_table->addTr();\n $obj_tr->addTd($this->constructTableForHeader());\n $obj_tr=$obj_table->addTr();\n $obj_tr->addTd($this->constructTableForResult());\n \n //- si on a activé la fonctionnalité de pagination\n if($this->obj_mvc_menu_loader->getPagination())\n {\n $obj_tr=$obj_table->addTr();\n $obj_tr->addTd($this->constructTableForPagination());\n } \n \n return $obj_table;\n }", "title": "" }, { "docid": "ecde2b6171d2b9627621df32426a75b7", "score": "0.59611595", "text": "function listarTablaInstancia(){\n\t\t$_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')] = $this->obtenerTablaInstancia();\n\t\t$id_maestro = $_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['vista_campo_maestro'];\n\t\t$codigo_tabla = $_SESSION['_wf_ins_'.$this->objParam->getParametro('tipo_proceso').'_'.$this->objParam->getParametro('tipo_estado')]['atributos']['bd_codigo_tabla'];\n\t\t\n\t\t//si existe como parametro el id del maestro se anade el filtro\n\t\tif ($this->objParam->getParametro($id_maestro) != '') {\t\t\t\n\t\t\t$this->objParam->addFiltro($codigo_tabla . \".\" . $id_maestro . \" = \". $this->objParam->getParametro($id_maestro));\n\t\t}\n\t\t\n\t\tif($this->objParam->getParametro('tipoReporte')=='excel_grid' || $this->objParam->getParametro('tipoReporte')=='pdf_grid'){\n\t\t\t$this->objReporte = new Reporte($this->objParam,$this);\n\t\t\t$this->res = $this->objReporte->generarReporteListado('MODTabla','listarTablaInstancia');\n\t\t} else{\n\t\t\t$this->objFunc=$this->create('MODTabla');\t\t\t\n\t\t\t$this->res=$this->objFunc->listarTablaInstancia($this->objParam);\n\t\t}\n\t\t$this->res->imprimirRespuesta($this->res->generarJson());\n\t}", "title": "" }, { "docid": "3f800161050ba2a1666fde1125daaf9b", "score": "0.595839", "text": "function tabla_listado_mov_finales($mes, $anio) {\r\n $mysqli = conectar_db();\r\n selecciona_db($mysqli);\r\n \r\n $Consulta = \"SELECT a.id, a.origen, b.empresa, b.tipoTrans, b.monto, b.banco, b.cuenta, b.pdf, a.fecha FROM movimiento a, movimientoFinal b WHERE a.activo = 1 AND b.idMov = a.id AND b.realizado = 1 AND a.fecha BETWEEN '$anio-$mes-1' AND '$anio-$mes-31' ORDER BY a.origen, a.fecha, a.hora ASC\";\r\n\r\n $pConsulta = consulta_tb($mysqli, $Consulta);\r\n\r\n if(!$pConsulta){\r\n echo \"No se encontrarón resultados para esta consulta.\";\r\n }else{\r\n $i = 1;\r\n echo \"<tr><td id='noMov'><b>\",'No.',\"</b></td>\r\n <td class='empOrigen'><b>\",'Cliente',\"</b></td>\r\n <td class='empMov'><b>\",'Destino',\"</b></td>\r\n <td class='empMov'><b>\",'Tipo',\"</b></td>\r\n <td class='montMov'><b>\",'Monto',\"</b></td>\r\n <td class='montMov'><b>\",'Banco',\"</b></td>\r\n <td class='montMov'><b>\",'Cuenta',\"</b></td>\r\n <td class='botnMov'><b>\",'Comprobante',\"</b></td>\r\n <td class='botnMov'><b>\",'Fecha',\"</b></td></tr>\";\r\n while($row=mysqli_fetch_array($pConsulta)){\r\n if($row[6] == 2){\r\n $row[4] = \"<-----NÓMINA----->\";\r\n }else if($row[6] == 3){\r\n $row[4] = \"----->SÍMPLE<-----\";\r\n }\r\n echo \"<tr><td><label>\", $row[0],\"</label></td>\r\n <td><label>\", $row[1],\"</label></td>\r\n <td><label>\", $row[2],\"</label></td>\";\r\n if($row[3] == 0){\r\n $row[3] = \"Transferencia\";\r\n }else if($row[3] == 1){\r\n $row[3] = \"Efectivo\";\r\n }else{\r\n $row[3] = \"Nómina\";\r\n }\r\n echo \"<td><label>\", $row[3],\"</label></td>\r\n <td class='montMov'><label>\", $row[4],\"</label></td>\r\n <td><label>\", $row[5],\"</label></td>\r\n <td><label>\", $row[6],\"</label></td>\";\r\n if($row[7] != \"\"){\r\n echo \"<td><label><a target=\\\"_blank\\\" href=\\\"$row[7]\\\" title=\\\"\\\">Transfer</a></label></td>\";\r\n }else{\r\n echo \"<td><label></label></td>\";\r\n }\r\n echo \"<td class='fechaMov'><label>\", date_format(date_create($row[8]), 'd / m / Y'),\"</label></td></tr>\";\r\n $i++;\r\n }\r\n }\r\n cerrar_db($mysqli);\r\n }", "title": "" }, { "docid": "11b071444b01c074da41b2fc0becd42e", "score": "0.5958241", "text": "function association_tablinfos_montants($legende='', $somme_recettes=0, $somme_depenses=0) {\r\n\t$res = '<table width=\"100%\" class=\"asso_infos\">';\r\n\t$res .= '<caption>'. _T('asso:totaux_montants', array('de_par'=>_T(\"local:$legende\"))) .\"</caption>\\n\";\r\n\t$recettes = is_array($somme_recettes) ? call_user_func_array('sql_getfetsel', $somme_recettes) : $somme_recettes ;\r\n\tif ($recettes) {\r\n\t\t$res .= \"<tr class='impair'>\"\r\n\t\t. '<th scope=\"row\" class=\"entree\">'. _T('asso:bilan_recettes') .\"</th>\\n\"\r\n\t\t. '<td class=\"decimal\">' .association_formater_prix($recettes). ' </td>'\r\n\t\t. \"</tr>\\n\";\r\n\t}\r\n\t$depenses = is_array($somme_depenses) ? call_user_func_array('sql_getfetsel', $somme_depenses) : $somme_depenses ;\r\n\tif ($depenses) {\r\n\t\t$res .= '<tr class=\"pair\">'\r\n\t\t. '<th scope=\"row\" class=\"sortie\">'. _T('asso:bilan_depenses') .\"</th>\\n\"\r\n\t\t. '<td class=\"decimal\">'.association_formater_prix($depenses) .\"</td>\\n\"\r\n\t\t. \"</tr>\\n\";\r\n\t}\r\n\tif (!$recettes && !$depenses) { // ne rien afficher si les deux sont a zero !\r\n\t\treturn '';\r\n\t}\r\n\tif ($recettes && $depenses) { // on va afficher le solde si l'un des deux ne vaut pas zero\r\n\t\t$solde = $recettes-$depenses;\r\n\t\t$res .= '<tr class=\"'.($solde>0?'impair':'pair').'\">'\r\n\t\t. '<th scope=\"row\" class=\"solde\">'. _T('asso:bilan_solde') .\"</th>\\n\"\r\n\t\t. '<td class=\"decimal\">'.association_formater_prix($solde).\"</td>\\n\"\r\n\t\t. \"</tr>\\n\";\r\n\t}\r\n\treturn \"$res</table>\\n\";\r\n}", "title": "" }, { "docid": "90d6783eb909c8af9be85371fed20855", "score": "0.5957727", "text": "abstract public function tables(): array;", "title": "" }, { "docid": "abb24ffb67f5b3876123f61796c978c3", "score": "0.595634", "text": "function make_recibos_table($data,$start_at){\n $cont = $start_at + 1;\n $html_text = \" \";\n foreach ($data as $line) {\n $hora = new DATETIME($line['complete_date']);\n if(str_contains('abono',$line['concepto_real'])){\n $line['concepto'] = str_replace(\"Pago de\",'Abono a',$line['concepto']);\n }\n if(str_contains('Cancelación',$line['concepto_real'])){\n $line['concepto'] = str_replace(\"Pago de\",'Cancelación - ',$line['concepto']);\n }\n\n $html_text .=\n \"<tr>\n <td>\".$cont.\"</td>\n <td>\". $line['id_pago'].\"</td>\n <td>\".$line['id_contrato'].\"</td>\n <td>\".$line['cliente'].\"</td>\n <td>\".$line['servicio'].\"</td>\n <td>\".$line['concepto'].\"</td>\n <td> RD$ \".CurrencyFormat($line['total']).\"</td>\n <td>\".date_spanish_format($line['fecha']).\"</td>\n <td>\".$hora->format('g:i a').\"</td>\";\n $html_text .=\"</tr>\";\n $cont+=1;\n }\n\n return $html_text;\n }", "title": "" }, { "docid": "cc7d47c1ee657fc6788215f1902e3971", "score": "0.5951164", "text": "function my_custom_table(){\t\t\n\t\t\n\t\t$operatoreInterfaccia = new OperatoreMusealeInterface();\n\t\t$operatori_museali_tab=array();\n\t\t$operatoreInterfaccia->createConn();\n\t\t$operatori_museali_tab=$operatoreInterfaccia->read();\n\t\t$trovato=false;\n\t\t\t\n\t\t/* Mi faccio restituire tutti gli operatori museali in users verifico i loro id nella tabella operatore museale se sn diversi delete*/\n\t\t\n\t\t\n\t\t$users = get_users('blog_id=1&orderby=nicename&role=operatore_museale');\n\t\t\n\t\tforeach($operatori_museali_tab as $x){\n\t\t\t\n\t\t\tforeach($users as $utente){\n\t\t\t\tif($x->getId() == $utente->ID)\n\t\t\t\t\t$trovato=true;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif($trovato==false)\n\t\t\t\t$operatoreInterfaccia->delete($x->getId());\n\t\t\t\t\n\t\t\t\n\t\t\t$trovato=false;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t$str = ' \n\t\t\t<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\"/>\n\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t\t\n\t\t\t\n\t\t\t<div class=\"container\" id = \"form_visualizzazione\">\n\t\t\t\t<h2 align = \"center\">VISUALIZZA OPERATORI</h2> \n\t\t\t\t\t<div class=\"container\" align=\"right\">\n\t\t\t\t\t<input type=\"text\" id=\"myInput\" onkeyup=\"myFunction()\" placeholder=\"Search for names..\" title=\"Type in a name\">\n\t\t\t\t\t</div>\n\t\t\t\t\t<br></br>\n\t\t\t\t\t<div class=\"table-responsive\"> \n\t\t\t\t\t\t<table class=\"table\" id=\"myTable\">';\n\t\t\t\t\techo $str;\n \n\t\t\t\t\t\t$operatoreInterfaccia->visualizzazione();\n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t$bx ='\t\t\t</table>\n\t\t\t\t\t</div>\n\t\t\t</div>\n\t\t\n\t\t<script type=text/javascript>\n\t\t\tfunction myFunction() {\n\t\t\t var input, filter, table, tr, td, i;\n\t\t\t input = document.getElementById(\"myInput\");\n\t\t\t filter = input.value.toUpperCase();\n\t\t\t table = document.getElementById(\"myTable\");\n\t\t\t tr = table.getElementsByTagName(\"tr\");\n\t\t\t for (i = 0; i < tr.length; i++) {\n\t\t\t\ttd = tr[i].getElementsByTagName(\"td\")[1];\n\t\t\t\tif (td) {\n\t\t\t\t if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {\n\t\t\t\t\ttr[i].style.display = \"\";\n\t\t\t\t } else {\n\t\t\t\t\ttr[i].style.display = \"none\";\n\t\t\t\t }\n\t\t\t\t} \n\t\t\t }\n\t\t\t}\n\t\t</script>\n\t\t';\n\t\techo $bx;\t\t\t\t\t\n\t\t\n\t\t$operatoreInterfaccia->closeConn();\n\t}", "title": "" }, { "docid": "cf2aa65d7f97a330da1b15742703781f", "score": "0.59480196", "text": "public function getTable();", "title": "" }, { "docid": "cf2aa65d7f97a330da1b15742703781f", "score": "0.59480196", "text": "public function getTable();", "title": "" }, { "docid": "cf2aa65d7f97a330da1b15742703781f", "score": "0.59480196", "text": "public function getTable();", "title": "" }, { "docid": "cf2aa65d7f97a330da1b15742703781f", "score": "0.59480196", "text": "public function getTable();", "title": "" }, { "docid": "cf2aa65d7f97a330da1b15742703781f", "score": "0.59480196", "text": "public function getTable();", "title": "" }, { "docid": "cf2aa65d7f97a330da1b15742703781f", "score": "0.59480196", "text": "public function getTable();", "title": "" }, { "docid": "cf2aa65d7f97a330da1b15742703781f", "score": "0.59480196", "text": "public function getTable();", "title": "" }, { "docid": "09e267abac9610270d74b7c2dad1bbfa", "score": "0.5946128", "text": "function CrearCuerpoTabla(&$html_tabla,$registros_tabla,$table_name,$llaves,$cambiar_valor,$cantidad_registros,$numero_pagina,$type,$command_showbyid,$form_name){\n\n //obtener las llav,s de la tabla y pasarlas a un vector\n $keys = explode(\",\",$llaves);\n \n $html_tabla .=\"\n\t\t\t\t\t\t\t\t\t<tbody>\"; \n\n for($i=(($numero_pagina-1)*$cantidad_registros);($i < $numero_pagina*$cantidad_registros )&&($i < count($registros_tabla));$i++)\n {\n\n \n\t\t\t\t\t\t\t\t\t\n $html_tabla .= \"\n\t\t\t\t\t\t\t\t\t\t<tr>\";\n\n \n //print_r($valor_estilo);\n \n //Si lo que se esta pidiendo es una lista de valores\n if ($type=='LOV'){\n \n CrearRadioButtonlov($html_tabla,$table_name,$registros_tabla,$keys,$i,$valor_estilo);\n }\n\n\n else // LIST - BROWSE\n {\n CrearRadioButton($html_tabla,$table_name,$registros_tabla,$keys,$i,$valor_estilo,$command_showbyid,$form_name);\n\n }\n\n if(isset($cambiar_valor)){\n\t\t $html_tabla .= \"<td>\"; \n CambiarValorTabla($registros_tabla,$cambiar_valor,$i);\n\t\t $html_tabla .= \"</td>\"; \n }\n\n //obtener una fila completa de la tabla de la base de datos.\n $m = array_values($registros_tabla[$i]);\n\n for($j=0;$j < count($m);$j++){\n\n\n \t\n $html_tabla .= \"<td>\";\n //$html_tabla .= \"<DIV id='CELDA\".$i.$j.\"'>\";\n if($m[$j] != \"\"){\n if (($j == 0 || $j == 1) && ($type !='LOV') )\n {\n $html_tabla .= \"<a href='#' onClick=\\\"\";\n\n $html_tabla .= $form_name.\".\".$table_name.\"__\".strtoupper($keys[0]).\".value = '\".$m[0].\"'\";\n\n\n $html_tabla .=\";\".$form_name.\".action.value='\".$command_showbyid.\"';\".$form_name.\".submit();\\\">\".$m[$j].\"</a>\";\n\n }\n else\n $html_tabla .= $m[$j];\n\n }else{\n $html_tabla .= \"&nbsp;\";\n }\n //$html_tabla .= \"</DIV>\";\n $html_tabla .= \"</td>\";\n\n }\n\t\t if ($table_name == 'ordeserv')\n\t\t {\n $html_tabla .= \"<td>\";\n\t\t $printicon='<a href=\"#\" onclick=\"popUpShowShowByIdFormkey(\\'sptosgcoCmdShowByIdOrdeservPreview\\',\\'ordeserv__ORDID\\','.$m[0].',500,500); \"><img src= \"web/images/docprint.jpg\" alt=\"Preview Orden\" align=\"middle\" border=\"0\" title=\"Preview Orden\"></a>&nbsp;&nbsp;';\n\n $html_tabla .=$printicon;\n\t\t $html_tabla .= \"</td>\";\n\t\t \n\t\t }\t\t\n $html_tabla .= \"</tr>\";\n }\n $html_tabla .=\"\n\t\t\t\t\t\t\t\t\t</tbody>\"; \n}", "title": "" }, { "docid": "488a09dffe7bc51ae79a316674fd65bd", "score": "0.59434783", "text": "public function tiempoTransbordo();", "title": "" }, { "docid": "60364269db7aa92cbcafbddd4b1709c0", "score": "0.59428847", "text": "function adhclub_declarer_tables_auxiliaires($tables) {\n$tables['spip_adhassurs_liens'] = array(\n\t'field'=> array(\n\t\t\"id_assur\"\t\t=> \"bigint(21) NOT NULL\",\n\t\t\"id_objet\" \t\t=> \"bigint(21) NOT NULL\",\n\t\t\"objet\"\t\t\t=> \"VARCHAR (25) DEFAULT '' NOT NULL\",\n\t\t\"vu\"\t\t\t=> \"VARCHAR(6) DEFAULT 'non' NOT NULL\",\n\t\t),\n\t'key' => array(\n\t\t\"PRIMARY KEY\" \t=> \"id_assur, id_objet\", objet,\n\t\t\"KEY id_assur\"\t=> \"id_assur\",\n\t\t),\n\t);\n\n//-- Relation Cotisation Club / objets lies\n$tables['spip_adhcotis_liens'] = array(\n\t'field'=> array(\n\t\t\"id_coti\" \t\t=> \"bigint(21) NOT NULL\",\n\t\t\"id_objet\" \t\t=> \"bigint(21) NOT NULL\",\n\t\t\"objet\"\t\t\t=> \"VARCHAR (25) DEFAULT '' NOT NULL\",\n\t\t\"vu\"\t\t\t=> \"VARCHAR(6) DEFAULT 'non' NOT NULL\",\n\t\t\"ref_saisie\" \t=> \"VARCHAR(10) DEFAULT '' NULL\",\n\t\t),\n 'key' => array(\n \t\"PRIMARY KEY\" \t=> \"id_coti, id_objet\", objet,\n\t\t\"KEY id_coti\" \t=> \"id_coti\",\n \t),\n );\n\n//-- Relation Niveau-Brevet / objets lies\n$tables['spip_adhnivs_liens'] = array(\n\t'field'=> array(\n\t\t\"id_niveau\" \t=> \"bigint(21) NOT NULL\",\n\t\t\"id_objet\"\t\t=> \"bigint(21) NOT NULL\",\n\t\t\"objet\"\t\t\t=> \"VARCHAR (25) DEFAULT '' NOT NULL\",\n\t\t\"vu\"\t\t\t=> \"VARCHAR(6) DEFAULT 'non' NOT NULL\",\n\t\t),\n 'key' => array(\n \t\t\"PRIMARY KEY\" \t=> \"id_niveau, id_objet\", objet,\n\t\t\"KEY id_niveau\" => \"id_niveau\",\n \t),\n );\n\nreturn $tables;\n}", "title": "" }, { "docid": "647a62773c0c8e32061cdef028978461", "score": "0.594264", "text": "abstract function list_tables();", "title": "" }, { "docid": "30799db34dfb939be544ef4cee169e1f", "score": "0.5937466", "text": "public function tabListaInvestigacion($cod) {\n// $arrayFilas = $o_LRrhh->getExpLaboral($cod, 6, '');\n// // $arrayFilas = $o_LRrhh->getListaEmpleados($cod);\n// $funcion = 'investigacionDetalle';\n// $arrayTipo = array(\"0\" => \"c\", \"1\" => \"c\", \"2\" => \"c\", \"3\" => \"c\", \"4\" => \"c\");\n// $arrayColorEstado = array(\"1\" => \"5\", \"2\" => \"2\", \"3\" => \"3\", \"4\" => \"4\", \"5\" => \"5\", \"6\" => \"6\", \"7\" => \"7\", \"8\" => \"8\", \"9\" => \"9\");\n// $arrayCabecera = array(\"0\" => \"TEMA\", \"1\" => \"INSTITUCION\", \"2\" => \"ESTADO\", \"3\" => \"FECHA\", \"4\" => \"...\");\n// $o_Html = new Tabla1($arrayCabecera, 8, $arrayFilas, 'tablaOrden', 'filax', 'filay', 'filaSeleccionada', 'onClick', $funcion, 4, $arrayTipo, 0, $arrayColorEstado);\n// $o_Html->setColumnasOrdenar(array(\"0\", \"1\", \"2\"));\n// return $o_Html->getTabla();\n\n $oLRrhh = new LRrhh();\n $o_TablaHtmlx = new tablaDHTMLX();\n $arrayExp = $oLRrhh->getExpLaboral($cod, 6, '');\n $arrayCabecera = array(\"0\" => \"TEMA\", \"1\" => \"INSTITUCION\", \"2\" => \"ESTADO\", \"3\" => \"FECHA\", \"4\" => \"ID\");\n $arrayTamano = array(\"0\" => \"150\", \"1\" => \"*\", \"2\" => \"120\", \"3\" => \"120\", \"4\" => \"70\");\n $arrayTipo = array(\"0\" => \"ro\", \"1\" => \"ro\", \"2\" => \"ro\", \"3\" => \"ro\", \"4\" => \"ro\");\n $arrayCursor = array(\"0\" => \"default\", \"1\" => \"center\", \"2\" => \"default\", \"3\" => \"center\", \"4\" => \"center\");\n $arrayHidden = array(\"0\" => \"false\", \"1\" => \"false\", \"2\" => \"false\", \"3\" => \"false\", \"4\" => \"false\");\n $arrayAling = array(\"0\" => \"center\", \"1\" => \"center\", \"2\" => \"center\", \"3\" => \"center\", \"4\" => \"center\");\n return $o_TablaHtmlx->generaTabla($arrayCabecera, $arrayExp, $arrayTamano, $arrayTipo, $arrayCursor, $arrayHidden, $arrayAling);\n }", "title": "" }, { "docid": "28f004551bdec8b4012b13bd1d1fe019", "score": "0.593527", "text": "private function tabla_estilo_comun($param=NULL){\n $id = $param['id'];\n $template = array(\n 'table_open' => \"<table id='$id' class='table table-bordered table-striped'>\",\n\n 'thead_open' => '<thead>',\n 'thead_close' => '</thead>',\n\n 'heading_row_start' => '<tr>',\n 'heading_row_end' => '</tr>',\n 'heading_cell_start' => '<th>',\n 'heading_cell_end' => '</th>',\n\n 'tbody_open' => '<tbody>',\n 'tbody_close' => '</tbody>',\n\n 'row_start' => '<tr>',\n 'row_end' => '</tr>',\n 'cell_start' => '<td>',\n 'cell_end' => '</td>',\n\n 'row_alt_start' => '<tr>',\n 'row_alt_end' => '</tr>',\n 'cell_alt_start' => '<td>',\n 'cell_alt_end' => '</td>',\n\n 'table_close' => '</table>'\n );\n\n return $template;\n \n }", "title": "" }, { "docid": "9bb3407c7b8f37c0079877204769a47c", "score": "0.5930363", "text": "function loadTableData(){\n\t\n\t\t$this->checkTableNames();\n\t\t\n\t\t$res = mysql_query(\"show full fields from `\".$this->table1.\"`\", $this->db1);\n\t\tif ( !$res ) trigger_error(mysql_error($this->db1));\n\t\t\n\t\t\n\t\t$this->table1Data = array();\n\t\twhile ( $row = mysql_fetch_assoc($res) ){\n\t\t\t$this->table1Data[$row['Field']] = $row;\n\t\t}\n\t\t\n\t\t@mysql_free_result($res);\n\t\t\n\t\t\n\t\t$res = mysql_query(\"show columns from `\".$this->table2.\"`\", $this->db2);\n\t\tif ( !$res ) trigger_error(mysql_error($this->db2));\n\t\t\n\t\t$this->table2Data = array();\n\t\twhile ( $row = mysql_fetch_assoc($res) ){\n\t\t\t$this->table2Data[$row['Field']] = $row;\n\t\t}\n\t\t\n\t\t@mysql_free_result($res);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "f68749b42080501b67958f7e1fd2b84a", "score": "0.59295785", "text": "function ImprimeTablePOB($idTabla, $data, $pactu, $peli, $crxpag, $paginap = 1, $cantlink = 5, $orderby = -1, $buscar = \"\", $link_td = \"\",$classCSS)\n {\n $tabla = \"\";\n $tabla .= '<table id=\"' . $idTabla . '\" class=\"'.$classCSS.'\" >';\n try {\n // if (count($data) > 0) {\n if (count($data[\"columnas\"]) > 0) {\n $tabla .= '<thead>';\n $tabla .= '<tr>';\n $conta = 0;\n $conte = 0;\n for ($x = 0; $x < count($data[\"columnas\"]); $x++) {\n if ($conta == 0) {\n if ($pactu != \"\") {\n $tabla .= '<th class=\"td-img\"></th>';\n }\n if ($peli != \"\") {\n $tabla .= '<th class=\"td-img\"></th>';\n }\n }\n $conta++;\n $conte++;\n $ordenar = $x + 1;\n $tabla .= '<th><a href=\"#\" onClick=\"Paginar(\\'pagina=' . $paginap . '&orden=' . $ordenar . '&busca=' . $buscar . '\\'); return false\" >' . utf8_encode($data[\"columnas\"][$x]) . '</a></th>' . \"\\n\";\n }\n $tabla .= \"</tr>\";\n $tabla .= '</thead>';\n }\n //===========CUERPO DE TABLA=================================================================================================\n $numRows = count($data[\"cuerpo\"]);\n if ($numRows > 0) {\n $fin = $paginap * $crxpag;\n $ini = $fin - $crxpag;\n $tabla .= '<tbody>';\n for ($i = $ini; $i < $fin; $i++) {\n $conta = 0;\n $conte = 0;\n $tabla .= '<tr>';\n for ($z = 0; $z < count($data[\"columnas\"]); $z++) {\n $columnas = $data[\"columnas\"][$z];\n if (isset($data[\"cuerpo\"][$i][\"$columnas\"])) {\n if ($conta == 0) {\n if ($pactu != \"\") {\n $tabla .= '<td><a href=\"#\" onClick=\"' . $pactu . '(' . $data[\"cuerpo\"][$i][\"$columnas\"] . '); return false;\" title=\"Actualizar\" ><img title=\"Actualizar\" src=\"../img/icon-edit.png\" title=\"Actualizar\" width=\"16\" height=\"16\"/></a></td>' . \"\\n\";\n }\n if ($peli != \"\") {\n $tabla .= '<td><a href=\"#\" onClick=\"' . $peli . '(' . $data[\"cuerpo\"][$i][\"$columnas\"] . '); return false;\" ><img src=\"../img/icon-delete-black.png\" width=\"16\" title=\"Eliminar\" height=\"16\"/></a></td>' . \"\\n\";\n }\n }\n if ($link_td != \"\") {\n $ID = $data[\"cuerpo\"][$i][0]; // ID\n $url = $link_td . \"?id=\" . $ID; // Url mas id como dato mediante el metodo get \n $tabla .= '<td onclick=\"document.location=\\'' . $url . '\\' \" >' . $data[\"cuerpo\"][$i][\"$columnas\"] . '</td>' . \"\\n\";\n } else {\n $tabla .= '<td>' . $data[\"cuerpo\"][$i][\"$columnas\"] . '</td> ' . \"\\n\";\n }\n }\n $conta++;\n $conte++;\n }\n $tabla .= '</tr> ' . \"\\n\";\n }\n $tabla .= '</tbody>';\n //===========FIN CUERPO DE TABLA==============================================================================\n $tabla .= '</table>';\n //===========PAGINADO======================================================================================================================\n $paginado = Paginar($numRows, $crxpag, $paginap, $cantlink, $orderby, $buscar);\n $tabla .= $paginado;\n //===========FIN PAGINADO ==================================================================================================================\n } else { //solo si es k no hay datos\n $mensaje = \"No se encuentran Datos Registrados\";\n $tabla .= '<tfoot><tr> <td >&nbsp; ' . $mensaje . ' </td></tr></tfoot></table><br>';\n }\n \n }\n catch (exception $e) {\n return $e->getMessage();\n }\n return $tabla;\n }", "title": "" }, { "docid": "38ea3ff1b07e0449cf9ae573f9fd4df3", "score": "0.5929202", "text": "public function table(){\n\t\t// if this is only a reference to another\n\t\t\tif(!empty($this->options['field'])) return false;\n\n\t\t////////////////////////////////////\n\t\t// DEFINE TABLE NAME\n\t\t\t$table_name = strtolower('connection_'.$this->class_name.'_'.$this->options['model']);\n\t\t////////////////////////////////////\t\n\t\t// BEGIN MODEL DEFINITION\n\t\t\t$f = (object) array();\n\t\t\t$f->id1 = zajDb::text();\n\t\t\t$f->id2 = zajDb::text();\n\t\t\t$f->field = zajDb::text();\n\t\t\t$f->order1 = zajDb::ordernum();\n\t\t\t$f->order2 = zajDb::ordernum();\n\t\t\t$f->status = zajDb::select(array('active','deleted'), 'active');\n\t\t\t$f->time_create = zajDb::time();\n\t\t\t$f->id = zajDb::id();\n\t\t// END OF MODEL DEFINITION\n\t\t////////////////////////////////////\t\n\n\t\t// now create field objects\n\t\t\t$field_objects = array();\n\t\t\tforeach($f as $name=>$field_def){\n\t\t\t\t$field_objects[$name] = zajField::create($name, $field_def);\n\t\t\t}\n\t\t\n\t\t// now return as array\n\t\treturn array($table_name=>$field_objects);\n\t}", "title": "" }, { "docid": "d8b32dd20331b764953703aa11013b46", "score": "0.5927382", "text": "private function prepareTables() {}", "title": "" } ]
20a0eb0a90f1d0d6d5b57ce7145e31e4
register widget e.g gridview
[ { "docid": "d8c523c0f145ef64aaee0033a43686d7", "score": "0.8022668", "text": "public function registerWidget() {\n Yii::app()->widgetFactory->widgets = array(\n 'ItstGridView' => array(\n 'cssFile' => Yii::app()->baseURL . '/css/gridview.css',\n 'template' => '{items}{summary}{pager}<div class=\"clear\"></div>',\n 'pager' => array('cssFile' => Yii::app()->baseURL . '/css/pager.css'),\n 'emptyText' => \"No Record Found\",\n 'showTableOnEmpty' => false,\n ));\n }", "title": "" } ]
[ { "docid": "066b22b76185d1122b6931898afd449c", "score": "0.83001", "text": "public static function register_custom_widget(){\n\t register_widget( 'Essential_Grids_Widget' );\n\t}", "title": "" }, { "docid": "144e8a8534363edb1f9f895af1a61b46", "score": "0.73157555", "text": "public static function register_widget() {\n\t\tregister_widget( 'Tag_List_Widget' );\n\t}", "title": "" }, { "docid": "c2fe24cfc894a42fc19c66a94b1545a3", "score": "0.7150305", "text": "public function registerWidget(): void\n {\n register_widget($this);\n }", "title": "" }, { "docid": "993e84172843a833922557a8fc2cd450", "score": "0.71455693", "text": "public static function register() {\n\t register_widget( __CLASS__ );\n\t}", "title": "" }, { "docid": "67d7b319cb3fa618bec2039d80101777", "score": "0.713085", "text": "public function register_widgets() {\n\t\t// Its is now safe to include Addon Files\n\t\t$this->include__addon_files();\n\t\t\n\t\t// Register Blog Grid Addon\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\BlogGrid() );\n\t\t\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\TeamMember() );\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "e1b7308ee8d3b639d154e2d762b0df1d", "score": "0.6980216", "text": "public function register_widget() {\n\t\tregister_widget( 'WSU_News_Announcement_Calendar_Widget' );\n\t}", "title": "" }, { "docid": "121fa9fb342ed09db745a43d9a0abd75", "score": "0.69074273", "text": "function gamerprices_register_widgets() {\r\n\tregister_widget ( 'GP_Game_Widget' );\r\n// \tregister_widget ( 'GP_Tops_Widget' );\r\n}", "title": "" }, { "docid": "dc67966eaf9d3b7dd01eef00245f474d", "score": "0.68969524", "text": "function register() {\n\t\t\n\t\tregister_widget($this->pluginName);\n\t}", "title": "" }, { "docid": "255cb02a230386778bd5c747d7735e62", "score": "0.6878038", "text": "public function register_widget() {\n add_action('widgets_init', create_function( '', 'register_widget(\"' . __CLASS__ . '\");' ));\n }", "title": "" }, { "docid": "86627cfdec7180c3b12434d43f758ab3", "score": "0.68254405", "text": "public function register_widget()\n\t{\n\t\tregister_widget( 'Widget_ACW_Recent_Comments' );\n\t}", "title": "" }, { "docid": "e93322b366fe5ac3bd41a056b0ccbb12", "score": "0.68070644", "text": "function register_tehnik__widgets() {\n register_widget(\"Tehnik_BBP_Forums_Widget\");\n register_widget(\"Tehnik_BBP_Topics_Widget\");\n register_widget(\"Tehnik_BBP_Replies_Widget\");\n}", "title": "" }, { "docid": "5f8680830d4c0a6d9a6196f0e8b6feaf", "score": "0.6803316", "text": "public function addWidget()\n {\n $this->addWidgetWithType('sync', func_get_args());\n }", "title": "" }, { "docid": "ccf3a65419f203766ab2d679e083404e", "score": "0.676773", "text": "public function registerWidget() {\n register_sidebar(array(\n 'id' => 'header-sidebar',\n 'name' => __( 'Header Sidebar', 'guten' ),\n 'before_widget' => '',\n 'after_widget' => '',\n 'before_title' => '',\n 'after_title' => '',\n ));\n }", "title": "" }, { "docid": "cf90485af5cced071626339ec9046ce5", "score": "0.6765172", "text": "static function register(){\n\t\t\t$plugin = new self();\n\t\t\t$plugin->folder = apply_filters( 'sweet_widgets_templates-folder', $plugin->folder );\n\n\t\t\tadd_action( 'in_widget_form', array( $plugin, 'in_widget_form' ), 20, 3 );\n\t\t\tadd_filter( 'widget_update_callback', array( $plugin, 'widget_update_callback' ), 20 , 4 );\n\t\t\tadd_filter( 'widget_display_callback', array( $plugin, 'widget_display_callback' ), 20, 3 );\n\t\t}", "title": "" }, { "docid": "9161e526cf7ba7662e03aaf3c16ecd0e", "score": "0.6711005", "text": "function register_foo_widget()\n{\n\tregister_widget('Foo_Widget');\n}", "title": "" }, { "docid": "4a21727d37126f0bd522aed86870c0e2", "score": "0.6698074", "text": "function jl_register_name_widget() {\n register_widget( 'JL_Name_Widget' );\n}", "title": "" }, { "docid": "b42ec1bd9c0273aa33fd452dd4e772b6", "score": "0.66793656", "text": "public function register_widgets(){\n // Its is now safe to include Widgets files\n $this->include_widgets_files();\n\n // Register Widgets\n \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type(new UAP_Banner_Slider());\n \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type(new UAP_Recent_Posts());\n \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type(new UAP_Team());\n }", "title": "" }, { "docid": "edfee840cd6fda541801f57ff48a0200", "score": "0.66780597", "text": "function register_me(){\n\t\tregister_widget('boilerplate_widget');\n\t}", "title": "" }, { "docid": "77b0ef25ac704bbd7a98c9a0b45ef246", "score": "0.66771257", "text": "function register_widgets()\n\t\t\t{\n\n\t\t\t\trequire_once( 'themeists-iview-slider-widget.php' );\n\n\t\t\t}", "title": "" }, { "docid": "e8253f716b715e5d6def51b6d70095a3", "score": "0.6625836", "text": "public function register_widgets()\n\t{\n\t\tregister_widget('Owncloud_User_Status_Widget');\n\t}", "title": "" }, { "docid": "e45ced0faa7293ac2fc78e48a5be1b99", "score": "0.6601256", "text": "public function sab_lite_register_widget(){\n register_widget('Simple_Author_Box_Widget_LITE');\n }", "title": "" }, { "docid": "03d95c0b5e2ddc6842cc29822b4bda55", "score": "0.6573177", "text": "function kinsta_register_cta_widget2() {\n\n register_widget( 'HelloBar_Widget' );\n\n}", "title": "" }, { "docid": "d4f064e7a150032972d2924269d0cb2b", "score": "0.65705746", "text": "static public function register()\n {\n $class_name = static::get_class();\n add_action('widgets_init', function() use(&$class_name){\n register_widget($class_name);\n });\n }", "title": "" }, { "docid": "00cfd9e26994baf72ecbf3206d5c3758", "score": "0.6570382", "text": "function ucw_load_widget() {\n\tregister_widget( 'ucw_widget' );\n}", "title": "" }, { "docid": "06dc448798db65977eadc3460f8e5fe8", "score": "0.65639526", "text": "function go_green_tips_load_widgets() {\r\n\tregister_widget( 'Go_Green_Tips_Widget' );\r\n}", "title": "" }, { "docid": "09538e6a9b106e8efeaf55f9a600e558", "score": "0.65322465", "text": "public static function init() {\r\n register_widget( 'HW_Multilang_Widget' );\r\n }", "title": "" }, { "docid": "ee947769e837ec36ad80a05e2fb060c4", "score": "0.6515918", "text": "public static function register_widgets() {\r\n\t\tregister_widget( 'Simple_Page_Sidebars_Widget_Area' );\r\n\t}", "title": "" }, { "docid": "a79a752dd3306c5214e4a20f4266e00a", "score": "0.650616", "text": "function charts_widget() {\n register_widget( 'charts_widget' );\n}", "title": "" }, { "docid": "d1fb2f3fa603089001022e5a5029fc56", "score": "0.6500834", "text": "function wpb_load_widget() {\n register_widget( 'multline_title_widget' );\n}", "title": "" }, { "docid": "3494e8cabd6db4090fa247e80f9c0620", "score": "0.649943", "text": "function register_widget()\n\t{\n\t\tregister_sidebar_widget('Breadcrumb NavXT', array($this, 'widget'));\n\t}", "title": "" }, { "docid": "7b13ad2843cb521d7543e53ec47e9236", "score": "0.64895886", "text": "function easydynamicslider_load_widget() {\r register_widget( 'easydynamicslider_widget' );\r}", "title": "" }, { "docid": "c6c8324cf4241441ea50cd143290e271", "score": "0.6488077", "text": "function hybrid_slideshow_register_widgets() {\r\n\tregister_widget('hybrid_slideshow_widget');\r\n}", "title": "" }, { "docid": "504024d8057ca003a08965d0d9d47bc4", "score": "0.6479867", "text": "function bookx_widget_init(){\r\n if (!function_exists(\"register_sidebar_widget\")){ return; }\r\n \r\n register_sidebar_widget('BookX', array($this, 'bookx_widget_sidebar'));\r\n register_sidebar_widget('BookX Search', array($this, 'bookx_search_widget_sidebar'));\r\n register_widget_control('BookX', array($this, 'bookx_widget_admin')); \r\n register_widget_control('BookX Search', array($this, 'bookx_search_widget_admin')); \r\n \r\n }", "title": "" }, { "docid": "042e5265dceba79e02e8841bd5bbb6f1", "score": "0.6463248", "text": "function load_fru_widgets() {\n\tregister_widget( 'job_widget' );\n\tregister_widget( 'Thumbs_Recent_Posts' );\n}", "title": "" }, { "docid": "69c75ee18704c70b007062a84c4616a2", "score": "0.6423197", "text": "function pp_load_widget() {\n register_widget( 'Ml_pp_widget' );\n }", "title": "" }, { "docid": "bf6212f7c8761f72a6bbde2fe996e9d8", "score": "0.6412666", "text": "function brand_load_widget() {\n\tregister_widget( 'buildkar_widget' );\n}", "title": "" }, { "docid": "e6962e5166787921de0c206b57aa6e87", "score": "0.64101845", "text": "public function registerWidgets()\r\n {\r\n\r\n \r\n\t\t\t/** \r\n\t\t\t* felis Posts Widget Init\r\n\t\t\t*\r\n\t\t\t*/\r\n\t\t\t$felisPost = new Plugins\\Widgets\\Posts();\r\n\r\n }", "title": "" }, { "docid": "740b81f8e6ce7896137dff051b3c0e89", "score": "0.6408335", "text": "function tdd_progress_register_widget() {\n\tregister_widget( 'TDD_Progress_Widget' );\n}", "title": "" }, { "docid": "27f1d3a8479b783501228caf89c6bdd5", "score": "0.6391516", "text": "public static function register_widgets() {\n\n\t\tregister_widget( __NAMESPACE__ . '\\Contact' );\n\t\tregister_widget( __NAMESPACE__ . '\\Social' );\n\n\t}", "title": "" }, { "docid": "86301ca98a2e3cc5d476cdcd046c15ca", "score": "0.6387769", "text": "function widget_setup() {\n\t \n wp_register_sidebar_widget(\"rsql\" , \"Remote SQL\" , \"rsql_widget_gui\" , array ( description => \"Remote SQL description goes here..\") ); \n wp_register_widget_control('rsql', 'Remote SQL' , 'rsql_widget_control_gui' , array (description => \"description goes...\"));\n \n\n }", "title": "" }, { "docid": "63d5bb08be5746624880365ee1c0b45a", "score": "0.63833046", "text": "function ml_instagram_feed_load_widget() {\n register_widget( 'Ml_instagram_feed_widget' );\n }", "title": "" }, { "docid": "7c86ed103e9b1d7b9adadf2c218ae815", "score": "0.638062", "text": "public function register_widgets() {\n\t\t$this->include_widgets_files();\n\t\t\n\t\t// Register Widgets\n\t\t// \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\Hello_World() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelBanner() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelCity() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelCountry() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelList() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelRoomlList() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelInfoImageLeft() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelInfoImageRight() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelSubscriber() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelSearchForm() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\HotelType() );\n\t}", "title": "" }, { "docid": "a1e954bb9f3e417246bb5734743a0cfa", "score": "0.6369651", "text": "public function register_widgets() {\n\t\tforeach ($this->widgets as $widgetName => $widgetPath) {\n\t\t\tinclude_once (<%= definePrefix %>_ADMIN_DIR . $widgetPath);\n\t\t\tregister_widget($widgetName);\n\t\t}\n\t}", "title": "" }, { "docid": "03623d00296a4d28eb08b34c3379f75f", "score": "0.6350549", "text": "function book_now_load_widget() {\n register_widget( 'book_now_widget' );\n}", "title": "" }, { "docid": "4d662c4a16256b9e3f7661f64d156c95", "score": "0.6345875", "text": "function sydney_child_register_new_latest_news_widget(){\n register_widget( 'Affinity_Latest_news' ); // Widget class name\n}", "title": "" }, { "docid": "a4031dd2d18d989db537d68930effcb0", "score": "0.6344554", "text": "public function addWidget(array $configuration);", "title": "" }, { "docid": "3c585b9acd474736dfce1592012292b5", "score": "0.6341495", "text": "function widgets(){\n }", "title": "" }, { "docid": "332008b74f96012d1de71ca503f82f90", "score": "0.63389575", "text": "function register_Zappy_Ads_120x600_Widget() {\n register_widget('Zappy_Ads_120x600_Widget');\n}", "title": "" }, { "docid": "3b22591ec4b0ac1902a8caa3961a9369", "score": "0.6335524", "text": "function load_enchante_widget() {\n\tregister_widget( 'Enchante_Widget' );\n}", "title": "" }, { "docid": "ce92a718173d47b186dbd5451151f464", "score": "0.6320604", "text": "public function widgets_init()\n\t{\n\n\t\tregister_widget( 'Custom_Post_Type_Dishes_Widget' );\n\t\tregister_widget( 'Custom_Post_Type_Dishes_Cart_Widget' );\n\n\t}", "title": "" }, { "docid": "59680dfb32c7421f5c0ae6cfe77f762f", "score": "0.63160336", "text": "function crb_register_widgets() {\r\n\tregister_widget( 'CrbThemeWidgetRichText' );\r\n}", "title": "" }, { "docid": "cfa734790b0343593b97f164316e9ab7", "score": "0.6314619", "text": "function wpb_load_widget() {\n //detail page widget\n register_widget( 'wpb_recent_cases_h3_widget' );\n register_widget( 'wpb_count_rank_widget' );\n register_widget( 'wpb_search_widget' );\n\n //search page widget\n register_widget( 'wpb_count_rank_vertiacl_widget' );\n register_widget( 'wpb_recent_cases_v5_widget' );\n\n}", "title": "" }, { "docid": "19561bca96363b0e9dc861c5c365d12b", "score": "0.6301233", "text": "private function insertWidget()\n\t{\n\t\t$comments = array(\n\t\t\t'column' => 'right',\n\t\t\t'position' => 1,\n\t\t\t'hidden' => false,\n\t\t\t'present' => true\n\t\t);\n\n\t\t$this->insertDashboardWidget('blog', 'comments', $comments);\n\t}", "title": "" }, { "docid": "8e35df0733b4b81796d8e42a5f64f037", "score": "0.62933946", "text": "function wpb_load_widget() {\r\n register_widget( 'cw_rss_widget' );\r\n}", "title": "" }, { "docid": "5c651226353d7ff6c53d44fd358e9bf0", "score": "0.6288562", "text": "function register_realtor_widget() {\n register_widget( 'Realtor_Widget' );\n}", "title": "" }, { "docid": "459253f09587adcf8c34d89ed38a5034", "score": "0.6282154", "text": "function register_WP2SQLite_Widget(){\n register_widget('WP2SQLite_Widget');\n}", "title": "" }, { "docid": "99f22d6cd7ffe8b95ebe29138ec96ed4", "score": "0.62810993", "text": "public function register() {\n add_action('wp_dashboard_setup', array($this, 'register_dashboard_widget'));\n }", "title": "" }, { "docid": "af0b0d808be283f625d6717c25edd9c0", "score": "0.6274025", "text": "public function register_metaslider_widget() {\r\n\r\n register_widget( 'MetaSlider_Widget' );\r\n\r\n }", "title": "" }, { "docid": "120d97e5f5b9ca3191190e049bc8195f", "score": "0.6272056", "text": "function wpb_load_widget() {\n register_widget( 'cart_widget' );\n}", "title": "" }, { "docid": "ac721f55c23ead453574850eb6895437", "score": "0.6270773", "text": "function register_widget($widgetClassName)\n{\n global $_widget;\n $_widget[] = $widgetClassName;\n}", "title": "" }, { "docid": "16463f8db31c9ea79c895d49773443e6", "score": "0.6265901", "text": "function wpb_load_widget() {\n register_widget( 'Contact_Us' );\n}", "title": "" }, { "docid": "00a836b1e427a1923032aee12711a08c", "score": "0.6263577", "text": "public function register_widget()\n\t\t{\n\t\t\tif (class_exists('WpWidgetFormSubmit_Widget')) {\n\t\t\t\tregister_widget('WpEmailCollection_EmailCollection');\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "41b5a7d0208e46441e9b3b16ab2259a1", "score": "0.6263571", "text": "function register_Zappy_Author_Post_Widget() {\n register_widget('Zappy_Author_Post_Widget');\n}", "title": "" }, { "docid": "4afbf00809d6ee0efb6acf9390ecd884", "score": "0.626321", "text": "public function register_widgets() {\n\t\t// Its is now safe to include Widgets files\n\t\t$this->include_widgets_files();\n\n\t\t// Register Widgets\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\icostatus() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\Widget_Button() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\Widget_Roadmap() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\Widget_Testimonial() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\Widget_Accordion() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\postsGrid() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\contactForm7() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\NewsLetter() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\skyreSlider() );\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\SkyreTwitter() );\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "6e11778e690b0c3785c3880869cfa784", "score": "0.6253515", "text": "function widgets_init() {\r\n\t\tregister_widget( 'um_user_tags' );\r\n\t}", "title": "" }, { "docid": "855ebf7dd614087e028aeb18bcc4e639", "score": "0.62516814", "text": "function register_Zappy_Ads_120x240_Widget() {\n register_widget('Zappy_Ads_120x240_Widget');\n}", "title": "" }, { "docid": "aee2916951a25ba7b66ba5d4596300bf", "score": "0.62334025", "text": "function rcw_registerwidget1()\r\n{\r\n\trcw_commonincludes();\r\n\t$widget_ops = array('classname' => 'rcw_widget_basket', 'description' => \"Display RomanCart Shopping Basket In Sidebar\" );\r\n\twp_register_sidebar_widget('rcw_widget_basket', 'RomanCart Basket', 'rcw_widget_basket', $widget_ops);\r\n}", "title": "" }, { "docid": "d71150436ac8e7c58d7b804ef11779ac", "score": "0.621781", "text": "function dts_register_widgets () {\r\n\t\tregister_widget('DTS_View_Full_Website');\r\n\t\t//Register the 'Return to Mobile Website' widget\r\n\t\tregister_widget('DTS_Return_To_Mobile_Website');\r\n\t}", "title": "" }, { "docid": "6c54609736a48a54f808f92bbb15c1f5", "score": "0.6199231", "text": "function faculty_search_load_widget() {\n\tregister_widget( 'faculty_search_widget' );\n}", "title": "" }, { "docid": "937afc794fff7a4a7045d92b992b48ab", "score": "0.6197454", "text": "function wywi_register_widget() {\n\trequire_once WYWI_PLUGIN_DIR . 'includes/class-widget.php'; \n\tregister_widget('WYSIWYG_Widgets_Widget'); \n}", "title": "" }, { "docid": "aeb15575901b6b57b521e3a13629936d", "score": "0.6195377", "text": "public static function do_register() {\n\n\t\t\tif ( ! self::$_widgets ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tglobal $wp_widget_factory;\n\n\n\t\t\tforeach ( self::$_widgets as $type => $args ) {\n\t\t\t\t$widget_file = LP_PLUGIN_PATH . \"inc/widgets/{$type}/{$type}.php\";\n\n\t\t\t\tif ( ! file_exists( $widget_file ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tinclude_once $widget_file;\n\t\t\t\t$widget_class = self::get_widget_class( $type );\n\n\t\t\t\tif ( class_exists( $widget_class ) ) {\n\t\t\t\t\tregister_widget( $widget_class );\n\t\t\t\t\tif ( ! empty( $wp_widget_factory->widgets[ $widget_class ] ) ) {\n\t\t\t\t\t\t$wp_widget_factory->widgets[ $widget_class ]->file = $widget_file;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "71c798f23a4b90833cf4c349141ab442", "score": "0.61940104", "text": "function load_widgets() {\n\tregister_widget( 'List_Posts' );\n\tregister_widget( 'Search_Area' );\t\n\tregister_widget( 'Social' );\n\tregister_widget( 'Categories' );\n\n}", "title": "" }, { "docid": "f89b96bd97d8aef64d72cd90796718c6", "score": "0.6163878", "text": "function ap_register_widgets() {\n\trequire_once( get_template_directory() . '/aurelien-panel/aurelien-panel-widgets.php' );\n\tregister_widget( 'AP_Social_Widget' );\n\tregister_widget( 'AP_Category_Posts' );\n\tregister_widget( 'AP_Gallery_Widget' );\n}", "title": "" }, { "docid": "22286445f493049a8d53bd8fc526dcab", "score": "0.61597836", "text": "function registerAdSpot() {\n register_widget( 'AdSpot' );\n}", "title": "" }, { "docid": "3acff84fc3edf6940b8965d90c1de821", "score": "0.61229354", "text": "function sk_widgets_init()\n{\n // Custom Widget\n include('widget/custom-widget/custom-widget.php');\n\n register_widget('Sk_Custom_Widget');\n}", "title": "" }, { "docid": "af5984da1dd037b14b2c4e055d463086", "score": "0.60941356", "text": "function wp_register_tabbed_widget()\r\n {\r\n register_widget( 'WP_Tabbed_Widget' );\r\n }", "title": "" }, { "docid": "1da25bf46bb852490fc8058f0527e807", "score": "0.60931456", "text": "function atelier_load_widget() {\n register_widget( 'atelier_widget' );\n}", "title": "" }, { "docid": "f27d9001cd1db6a1a7d84f7405b566c7", "score": "0.60801667", "text": "function wpb_load_widget() {\n\t\tregister_widget( 'wpb_widget' );\n\t}", "title": "" }, { "docid": "8caeef5d5169f6f5f5d044032c35a081", "score": "0.60786945", "text": "public function __construct() {\n\n\t\t\t//Bannres Grid admin\n\t\t\twp_register_script( 'tm-custom-menu-widget-admin', plugins_url( '/assets/js/tm-custom-menu-widget-admin.js', dirname( dirname( __FILE__ ) ) ), array( 'jquery' ), '1.0', true );\n\n\t\t\t$widget_ops = array('classname' => 'tm_about_store_widget', 'description' => __('Add Store descriprion'));\n\t\t\t$control_ops = array('width' => 400, 'height' => 350);\n\t\t\tWP_Widget::__construct('tm_about_store_widget', __('TM About Store'), $widget_ops, $control_ops);\n\t\t}", "title": "" }, { "docid": "a81c78b78e55e9e0522eb8e19452aac3", "score": "0.6068792", "text": "function widget_index_groups_init(){\r\n\tif(elgg_is_active_plugin(\"groups\")){\r\n\t\telgg_register_widget_type(\"index_groups\", elgg_echo(\"groups\"), elgg_echo(\"widget_manager:widgets:index_groups:description\"), \"index\", true);\r\n\t\twidget_manager_add_widget_title_link(\"index_groups\", \"[BASEURL]groups/all/\");\r\n\t}\r\n}", "title": "" }, { "docid": "c15ac4217c9fcc37be106e1093c69096", "score": "0.606831", "text": "public function widgets_init() {\n\t\trequire_once( $this->get_dir() . 'widgets/class-widget-products.php' );\n\n\t\tregister_widget( 'Jobify_Widget_Products' );\n\t}", "title": "" }, { "docid": "6abee49c1bcecb6dfc344ebfd094bac7", "score": "0.60655916", "text": "function gh_register_cta_widget() {\n\tregister_widget( 'CTA_Widget' );\n}", "title": "" }, { "docid": "143526d2542cd3d8aa2873bb06cde376", "score": "0.603912", "text": "function init() {\r\n \tif (!function_exists('wp_register_sidebar_widget'))\r\n \t\treturn;\r\n \r\n // let WP know of this plugin's widget view entry\r\n \twp_register_sidebar_widget('sk_qsenseisearch', 'Q-Sensei Search', array('sk_qsenseisearch', 'widget'),\r\n array(\r\n \t'classname' => 'sk_qsenseisearch',\r\n \t'description' => 'Allows the user to search Q-Sensei directly drom wordpress blog.'\r\n )\r\n );\r\n \r\n // let WP know of this widget's controller entry\r\n \twp_register_widget_control('sk_qsenseisearch', 'Q-Sensei Search', array('sk_qsenseisearch', 'control'),\r\n \t array('width' => 300)\r\n );\r\n\r\n // short code allows insertion of sk_qsenseisearch into regular posts as a [sk_qsenseisearch] tag. \r\n // From PHP in themes, call do_shortcode('sk_qsenseisearch');\r\n add_shortcode('sk_qsenseisearch', array('sk_qsenseisearch', 'shortcode'));\r\n }", "title": "" }, { "docid": "12c033554c3bb61809322eca9a5061ea", "score": "0.6038375", "text": "function acf_search_load_widget() {\n register_widget( 'acf_search_widget' );\n }", "title": "" }, { "docid": "6a62559d30dcfd1acf6a7dbb96213382", "score": "0.60378855", "text": "function load_agentrank_widgets() {\r\n register_widget('AgentRankSaleTransactionsWidget');\r\n register_widget('AgentRankClientReviewsWidget');\r\n register_widget('AgentRankMarketForecastsWidget');\r\n register_widget('AgentRankLeadFormWidget');\r\n}", "title": "" }, { "docid": "644fbd83ee3d4665972c3e8352c7126a", "score": "0.60358375", "text": "function load_widgets() {\n\n require LOGY_CORE . 'class-logy-widgets.php';\n\n // Register Login Widget\n register_widget( 'logy_login_widget' );\n\n // Register Registration Widget\n register_widget( 'logy_register_widget' );\n\n // Reset Password Widget\n register_widget( 'logy_reset_password_widget' );\n }", "title": "" }, { "docid": "207e5d98e1cebc57e15f8cd273ee35c5", "score": "0.6035308", "text": "function initWidgets() {\n foreach ( get_object_vars($this) as $prop => $val ) {\n if ( method_exists($this->$prop, 'initWidget') )\n $this->$prop->initWidget();\n }\n register_widget( 'BSP_Likes_Widget' );\n register_widget( 'BSP_SocialPhotos_Widget' );\n }", "title": "" }, { "docid": "9f3063c244b2e45565db8025f1977674", "score": "0.6032971", "text": "function easy_testimonials_register_widgets() {\r\n\t\tinclude('include/widgets/random_testimonial_widget.php');\r\n\t\tinclude('include/widgets/single_testimonial_widget.php');\r\n\t\tinclude('include/widgets/testimonial_cycle_widget.php');\r\n\t\tinclude('include/widgets/testimonial_list_widget.php');\r\n\t\tinclude('include/widgets/testimonial_grid_widget.php');\r\n\r\n\t\tregister_widget( 'randomTestimonialWidget' );\r\n\t\tregister_widget( 'cycledTestimonialWidget' );\r\n\t\tregister_widget( 'listTestimonialsWidget' );\r\n\t\tregister_widget( 'singleTestimonialWidget' );\r\n\t\tregister_widget( 'TestimonialsGridWidget' );\r\n\t}", "title": "" }, { "docid": "44649f920b0c00069922a9735293f37c", "score": "0.60271734", "text": "function video_widget() {\r\n\tregister_widget( 'Video_widget' );\r\n}", "title": "" }, { "docid": "4b77e9067eac47ed88b769808c885514", "score": "0.6009336", "text": "function acf_tags_load_widget() {\n register_widget( 'acf_tags_widget' );\n }", "title": "" }, { "docid": "26db1b9a300bb000f9882e79cde063dc", "score": "0.6007711", "text": "function advanced_twitter_widget_WidgetInit()\n{\n register_sidebar_widget(array('Advanced Twitter Widget', 'widgets'), 'advanced_twitter_widget_WidgetShow');\n register_widget_control(array('Advanced Twitter Widget', 'widgets'), 'advanced_twitter_widget_WidgetForm');\n\n}", "title": "" }, { "docid": "e75582aaaad537222a585898dc7a9135", "score": "0.6004399", "text": "public function add_widget() {\r\n\t\tif (Maps_Marker_Pro::$settings['whitelabelBackend']) {\r\n\t\t\t$prefix = esc_html__('Maps', 'mmp');\r\n\t\t} else {\r\n\t\t\t$prefix = 'Maps Marker Pro';\r\n\t\t}\r\n\r\n\t\twp_add_dashboard_widget(\r\n\t\t\t'mmp-dashboard-widget',\r\n\t\t\t$prefix . ' - ' . esc_html__('recent markers', 'mmp'),\r\n\t\t\tarray($this, 'dashboard_widget'),\r\n\t\t\tarray($this, 'dashboard_widget_control')\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "db828c07c9e5b82e426289f641580b55", "score": "0.5986224", "text": "private function widgets_init() {\n\t\t$this->loader->add_action( 'widgets_init', $this, 'register_widgets' );\n\t}", "title": "" }, { "docid": "63593299acab82a39fc29503e5d57579", "score": "0.5982167", "text": "function popular_categories_load_widget() {\r\n\tregister_widget( 'Most_Popular_Categories_Widget' );\r\n}", "title": "" }, { "docid": "5fc6784a95c7b5794d6ea07f2d98cb8f", "score": "0.5982134", "text": "function acf_cat_load_widget() {\n register_widget( 'acf_cat_widget' );\n }", "title": "" }, { "docid": "f02a60694220e1bc7fb8bf19fabd85c2", "score": "0.59647375", "text": "function roboaztechs_register_widgets() {\n\tregister_widget( 'roboaztechs_widget_recentposts' );\n\tregister_widget( 'roboaztechs_footer_social' );\n}", "title": "" }, { "docid": "40a7fa5079df0cfd1831a8ad15b2ab79", "score": "0.5963648", "text": "function wpb_load_widget() {\n\tregister_widget( 'wpb_widget' );\n}", "title": "" }, { "docid": "40a7fa5079df0cfd1831a8ad15b2ab79", "score": "0.5963648", "text": "function wpb_load_widget() {\n\tregister_widget( 'wpb_widget' );\n}", "title": "" }, { "docid": "40a7fa5079df0cfd1831a8ad15b2ab79", "score": "0.5963648", "text": "function wpb_load_widget() {\n\tregister_widget( 'wpb_widget' );\n}", "title": "" }, { "docid": "fcdefb64a9960a10963c2dd7e250136b", "score": "0.59634393", "text": "function AgileBenchInit() {\n register_widget('AgileBenchWidget');\n }", "title": "" } ]
096af4bc88669dbf9595458ba33b8f18
exponemos la funcionalidad de obtener el ultimo ID insertado util en el caso de campos autoincrementables
[ { "docid": "815f4c7dc09c73614036d6c577577002", "score": "0.0", "text": "public function lastInsertId() {\n return $this->pdo->lastInsertId();\n }", "title": "" } ]
[ { "docid": "b7513d04249a2c2d3658c3f09e9234e8", "score": "0.7580827", "text": "function set_and_get_id() {\n\t\t$query = $this->db->prepare('');\n\t\t$query->execute();\n\t\treturn $this->db->lastInsertId();\n\t}", "title": "" }, { "docid": "1c5b53758ec6dfd5f9a015ecef93ae71", "score": "0.75070155", "text": "function insert_id($table, $field)\n {\n\t\t$result = $this->query('SELECT max('.$field.') AS last_id FROM '.$table);\n $row = $this->fetch_object($result);\n\t\treturn $row->last_id;\n }", "title": "" }, { "docid": "9b37bb108ee2cfd8783eb9747c5064a1", "score": "0.74866104", "text": "function DB_PDO_Insert_LastID()\n {\n $table=$this->SqlTableName();\n if (empty($table)) { return 0; }\n \n $table=$this->Sql_Table_Name_Qualify($table.'_ID_seq');\n return $this->DB_Link()->lastInsertId($table);\n }", "title": "" }, { "docid": "d6ca3e72bf80f6deb70698bc5a002f42", "score": "0.7483323", "text": "public function getLastAutoIncrementId();", "title": "" }, { "docid": "f06e2d0292e32ed7eba91eee4ac2d737", "score": "0.7469648", "text": "function autoInc()\n\t{\n\t\t$this->field( $this->_ro_tableName . '_id', 'BIGINT', FIELD_NO_SIZE, FIELD_NOT_NULL, FIELD_AUTO_INC, FIELD_UNSIGNED );\n\t}", "title": "" }, { "docid": "1a48aae1c660cbf6ae434a60b484adc8", "score": "0.7418612", "text": "public function getLastInsertId(){}", "title": "" }, { "docid": "f3be34d03630f8d2f725b0be839f6b79", "score": "0.74180055", "text": "function getInsertId();", "title": "" }, { "docid": "ee07fb82c69697030255ac92de68ea09", "score": "0.74105406", "text": "public function insertId();", "title": "" }, { "docid": "191552ab16f4503d314b3bf88afe8819", "score": "0.73943514", "text": "function dbLastInsertId();", "title": "" }, { "docid": "2e9d0cc2ea23feaa0956dd6f2cee7709", "score": "0.7319643", "text": "function getLastId(){\n\t\treturn mysql_insert_id($this->daoConnection->Conexion_ID);\n }", "title": "" }, { "docid": "f8314875511b3108cf0181e4633a0190", "score": "0.7260483", "text": "static function lireNouvelId ()\r\n {\r\n // https://www.php.net/manual/fr/pdo.lastinsertid.php\r\n $nouvelId = Model::$dbh->lastInsertId();\r\n return $nouvelId;\r\n }", "title": "" }, { "docid": "586866fde0804f5c584b9c7f82f7ff7c", "score": "0.7255442", "text": "public function insertar()\n\t{\n\t\t//$values = \"'$this->medicamento', '$this->indicaciones', $this->idCita\";\n\t\t$values = \"'$this->indicaciones', $this->idCita\";\n\t\t$bd = new Conexion();\n\t\t$parametros = array(\"table\" => Receta::TABLA, \"fields\" => Receta::CAMPOS_NOID, \"values\" => \"$values\");\n\t\t// Así se obtiene el id autoincremental\n\t\t$this->idReceta = $bd->insert($parametros);\n\t\treturn $this->idReceta;\n\t}", "title": "" }, { "docid": "49cc879d02d7e3280d65ad14d44edd1a", "score": "0.7254948", "text": "public abstract function getInsertId();", "title": "" }, { "docid": "f8f15ac4f510ff92dd51896ccd8910f1", "score": "0.7251594", "text": "public function insertId() \n\t{\n try \n\t\t{\n $id = $this->link->lastInsertId();\n } \n\t\tcatch (\\PDOException $e) \n\t\t{\n\t\t\t$code = $e->getCode();\n\t\t\t$message = $e->getMessage();\n $message = 'Error: ' . $code . ': ' . $message;\n $this->ecordError($message);\n }\n return $id;\n }", "title": "" }, { "docid": "de154c660f561adc0dfd46b112d3b5e2", "score": "0.72345513", "text": "public function getLastInsertId();", "title": "" }, { "docid": "2c575c688dc5effca5f7eb1343f80ddf", "score": "0.72342986", "text": "abstract public function lastInsertId();", "title": "" }, { "docid": "128ef5de9c086896f0c40ab758a9b055", "score": "0.71885055", "text": "public function insertid()\n\t{\n\t\t$this->connect();\n\n\t\t// TODO: SELECT IDENTITY\n\t\t$this->setQuery('SELECT @@IDENTITY');\n\n\t\treturn (int) $this->loadResult();\n\t}", "title": "" }, { "docid": "e2731ff905dc97ffe5e0149704bc4fc0", "score": "0.71845686", "text": "protected function getLastInsertIdImpl(): int\n {\n return $this->db->lastInsertId();\n }", "title": "" }, { "docid": "3dd02f095d4f84eeefc5a8d13bbc0c71", "score": "0.71602166", "text": "function insertar_registro_transaccion_dar_id($db,$tabla,$campos, $datos){ \n $sql = \"INSERT INTO \".$tabla.\" ( \".$campos.\" ) VALUES (\".$datos.\")\"; \n return $sql;\n \n $res = $db->Execute($sql); \n if ($res){\n $id = mysql_insert_id($db);\n }else{\n $id = -1;\n }\n \n return $id;\n}", "title": "" }, { "docid": "cb2865a3e2bb6cae61d976586da0c5af", "score": "0.71484125", "text": "function insert_id() {\n return ($id = $this->link->lastInsertId()) >= 0 ? $id : $this->result($this->query(\"SELECT last_insert_id()\"), 0);\n }", "title": "" }, { "docid": "458708efa6d2663379b8f346d02b6847", "score": "0.71322614", "text": "public function insertId(){\n\t\t}", "title": "" }, { "docid": "88e17f6cef532699d848df7e66176a2b", "score": "0.7127747", "text": "public function lastInsertRowID(){}", "title": "" }, { "docid": "f31da2025bff6fdc69259c36852fb769", "score": "0.712699", "text": "public function getlastInsertId();", "title": "" }, { "docid": "3766551ab6afcb866b46512665e157e6", "score": "0.71242076", "text": "function ejecutar_sql_y_dar_id_con_transaccion($db, $tabla,$campos, $datos){\n try{\n $sql = 'INSERT '.$tabla.' ( '.$campos.' ) VALUES ('.$datos.')'; \n \n $db->Execute($sql); \n if ($db){\n $res = $db->Execute('SELECT LAST_INSERT_ID ()');//mysql_insert_id($db); \n return $res->fields[0];\n }else{\n return -1;\n }\n }catch(Exception $e){\n return -1;\n }\n \n}", "title": "" }, { "docid": "9e5db082c3db822bdacc05015efe8208", "score": "0.7123782", "text": "function last_id(){\r\n\t\treturn $this->conn->insert_id;\r\n\t}", "title": "" }, { "docid": "3f86986d9222edfa86f74714710a66b3", "score": "0.7111375", "text": "function BDDlastId(){\r\n //retour le deriner id\r\n //Paramtres : neatn\r\n\r\n\r\n //Recupere la base de donnes ouvert\r\n $bdd = BDDopen();\r\n\r\n //Retunr l'id\r\n return $bdd->lastInsertId();\r\n\r\n}", "title": "" }, { "docid": "4d9117bf44b4b87bae8a9bac655cde7f", "score": "0.71067214", "text": "function getNextID() {\r\n $this->db->select_max($this::TABLE_PK);\r\n $query = $this->db->get($this::TABLE_NAME);\r\n $nextID = $query->result()[0]->{$this::TABLE_PK} + 1;\r\n return $nextID;\r\n }", "title": "" }, { "docid": "d274afbbff7a35889afb31d48b49f6da", "score": "0.7101852", "text": "function insert_id()\r\n {\r\n // $link = $this->connect();\r\n // Get the ID generated from the previous INSERT operation\r\n $last_id = mysql_insert_id($this->link);\r\n // return last ID\r\n return $last_id;\r\n }", "title": "" }, { "docid": "c3c31b953c7994d207aeb472eee5549a", "score": "0.7100009", "text": "private function insertarEntidad($model)\r\n\t\t{\r\n\t\t\t$idGenerado = 0; \t// Autoincremental de la entidad generado debido a la insercion.\r\n\t\t\t$result = false;\r\n\r\n\t\t\t$result = $this->_conexion->guardarRegistro($this->_conn, $model->tableName(), $model->attributes());\r\n\t\t\tif ( $result ) {\r\n\t\t\t\t$idGenerado = $this->_conn->getLastInsertID();\r\n\t\t\t}\r\n\t\t\treturn $idGenerado;\r\n\t\t}", "title": "" }, { "docid": "50252135c7524a460ac96bfb740607cf", "score": "0.70979756", "text": "public function lastInsertId();", "title": "" }, { "docid": "50252135c7524a460ac96bfb740607cf", "score": "0.70979756", "text": "public function lastInsertId();", "title": "" }, { "docid": "50252135c7524a460ac96bfb740607cf", "score": "0.70979756", "text": "public function lastInsertId();", "title": "" }, { "docid": "50252135c7524a460ac96bfb740607cf", "score": "0.70979756", "text": "public function lastInsertId();", "title": "" }, { "docid": "2e65d29244214c0accfaa637a8717b93", "score": "0.7093699", "text": "public function InsertedId();", "title": "" }, { "docid": "fb0318335e951db0fbf11164d35930d3", "score": "0.70513815", "text": "protected function insertid()\n {\n $this->connect();\n\n // Error suppress this to prevent PDO warning us that the driver doesn't\n // support this operation.\n return @$this->_connection->lastInsertId();\n }", "title": "" }, { "docid": "c9c247f57fbc10231d92675ab276c928", "score": "0.704175", "text": "function ejecutar_sql_y_dar_id($tabla,$campos, $datos){\n $db = ADONewConnection(TIPOBASE);\n $exito = $db->connect(HOST, USUARIO, PASSWORD, BASE);\n if ($exito){\n $sql = 'INSERT '.$tabla.' ( '.$campos.' ) VALUES ('.$datos.')';\n $us = $db->Execute($sql); \n if ($us){\n //$id = $db->Execute('SELECT DISTINCT LAST_INSERT_ID() FROM '.$tabla.' ;');\n $id=mysql_insert_id($db);\n \n // borrar esta linea solo para mostrar la consulta\n //print_r(\"<br> SQL: $tabla: \".$sql.\"<br>Resultado:\".$us);\n \n return $id;\n }else{\n return -1;\n }\n $db->close(); \n }else{\n return 0;\n }\n}", "title": "" }, { "docid": "9ef1d8464e5880edf30a26cc242d5b3c", "score": "0.7029913", "text": "public function getAutoincrementId()\n {\n return ++$this->id;\n }", "title": "" }, { "docid": "e66c05d71640c5e2375541560871791a", "score": "0.7015098", "text": "public static function getLastId() {\r\n return self::$mysqli->insert_id;\r\n }", "title": "" }, { "docid": "562331572e95a3fed4dac023ca7f3eec", "score": "0.7005572", "text": "function insert_id($i = false) {\n\t\treturn $this->db->insert_id($i);\n\t}", "title": "" }, { "docid": "8f6dcdf363e5a60ecef57fd2992985ca", "score": "0.70039004", "text": "private function insertId() {\n return mysql_insert_id($this->resource);\n }", "title": "" }, { "docid": "c30abac05e48263b8b7a1c38d756a12b", "score": "0.70017594", "text": "function generate_id() {\r\n global $root, $cache;\r\n\r\n $last_id = $root->query(\"SELECT User FROM student ORDER BY `User` DESC LIMIT 1\");\r\n\r\n $id = $last_id[0]['User'] + 1;\r\n return $id;\r\n }", "title": "" }, { "docid": "a2a456022293c50a4e459b7e1ad911c5", "score": "0.6984696", "text": "public function insert(){\n\n $ai = $this->autoIncrementField();\n\n if($ai && array_key_exists($ai,$this->fields) && $this->fields[$ai] === null){\n unset($this->fields[$ai]);\n }//if\n\n $this->validateFields();\n\n $missing = array_diff($this->getRequiredFieldNames(), array_keys($this->fields));\n if(count($missing)){\n $missing = implode(', ',$missing);\n $class = get_called_class();\n throw new \\Disco\\exceptions\\RecordValidation(\"Record `{$class}` insert error: fields `{$missing}` cannot be null\");\n }//if\n\n $id = \\App::with($this->model)->insert($this->fields);\n\n if($id){\n\n if($ai){\n $this->fields[$ai] = $id;\n }//if\n\n $this->cache = array_merge($this->cache,$this->fields);\n\n }//if\n\n return $id;\n\n }", "title": "" }, { "docid": "500def5dd8d5956ce1c6ad47cbe4c812", "score": "0.6970268", "text": "public function getLastId(){\n\t\t\treturn $this->connection->insert_id;\n\t\t}", "title": "" }, { "docid": "df13eb30749ae9fb19da69693413cec6", "score": "0.6963299", "text": "public function getLastId()\n {\n return $this->adodb->insert_Id();\n }", "title": "" }, { "docid": "1f2deb54b699b2553825f3108e1ebc76", "score": "0.69499207", "text": "function generateID(){\n\t$config = parse_ini_file('database.ini'); \n $conexao = mysqli_connect($config['ip'],$config['username'],$config['password'],$config['dbname']);\n\t$query = \"SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = \" . \" \\\"\" . $config['dbname'] . \"\\\" AND TABLE_NAME = 'historico' \";\n\t$result = Select($query);\n\treturn $result[0][\"AUTO_INCREMENT\"];\n}", "title": "" }, { "docid": "b5422f48b5b497da71f173a1776ee982", "score": "0.69346535", "text": "function getLastInsertId() {\n return mysql_insert_id();\n }", "title": "" }, { "docid": "cb4880df9a689adbf2722ad4481d23e4", "score": "0.6931594", "text": "function lastId() {\n\treturn mysqli_insert_id(conn());\n}", "title": "" }, { "docid": "e5d3ecee360859cf681676bb2c336aeb", "score": "0.69314146", "text": "public function getLastInsertId() {\n $id = intval(mysqli_insert_id($this->link));\n if (!$id) {\n $id = $this->nextID;\n }\n return $id;\n }", "title": "" }, { "docid": "0bfc12d8a0890828cec09ef027c633c5", "score": "0.69291216", "text": "public function theInsertId(){\n return mysqli_insert_id($this->db); // Returns the auto generated id used in the last query\n }", "title": "" }, { "docid": "d7b7c3cf582b6399a505a6f0a4efed2e", "score": "0.69259304", "text": "function getInsertId(){\n $id=$this->conn->lastInsertId();\n return $id;\n }", "title": "" }, { "docid": "af2b8dbc1d343f2f6935e8dc2c8cf70c", "score": "0.6915757", "text": "public function getLastId()\n {\n return $this->conn->insert_id;\n }", "title": "" }, { "docid": "bbec2e026aeb612407eb35fe445712a7", "score": "0.6910991", "text": "function insertId() {\r\n\t\t$mysqli = $this->Connect();\r\n\t\treturn $mysqli->insert_id;\r\n\t}", "title": "" }, { "docid": "473d1f2aeee5842865b4b2f663acd7a7", "score": "0.6908946", "text": "public function lastInsertId() {\n $select = $this->select()\n ->from($this->_name, array(\n 'last_id' => 'last_insert_id(id_usuario)'\n ))\n ->order(\"id_usuario desc\")\n ->limit(1);\n \n $query = $this->fetchRow($select);\n \n return (int)$query->last_id;\n }", "title": "" }, { "docid": "92e49d5ad8ca3b7626854468a37bd186", "score": "0.690723", "text": "public function obtener_id();", "title": "" }, { "docid": "e19355ee59be3767c546ad71cf35e27e", "score": "0.6901325", "text": "public function getLastInsertedId(): int;", "title": "" }, { "docid": "67c008f1d8a7f9f4641c8a2d5b470a82", "score": "0.68985426", "text": "protected function insert_id()\n\t{\n\t\treturn @pg_getlastoid($this->resResult);\n\t}", "title": "" }, { "docid": "810e55165510cd8e8ec49c639752a187", "score": "0.68946356", "text": "function get_insert_id()\n {\n //return mysqli_insert_id($this->_dbConn);\n }", "title": "" }, { "docid": "90a325b8f490aa433e4be39bc342aba2", "score": "0.6892097", "text": "function InsertId(){\n\t\t//echo $Query;\n\t\t\n\t\treturn mysqli_insert_id($this->conn);\n\t\t\t\n\t\t\t\n\t\t$Query = 'SELECT id FROM '.$tableName.' order by id desc';\n \t\t$this->mySqlResult = mysqli_query($this->conn , $Query);\n\t \t$res = mysqli_fetch_row($this->mySqlResult );\n\t\treturn $res[0];\n \t //return (@mysqli_insert_id());\n\t}", "title": "" }, { "docid": "7d79a0ec71cb197bf77307b487b3f14f", "score": "0.68905175", "text": "function lastInsertId ()\n {\n return $this->_adodb->Insert_ID();\n }", "title": "" }, { "docid": "e0bb5b09bb4fd2b88e233c472929c069", "score": "0.6875231", "text": "public function getLastId(){ return $this->lastInsertId_a;}", "title": "" }, { "docid": "fd05f8af312bf3805dd3a904baeba107", "score": "0.6871609", "text": "public static function getLastInsertedID()\n {\n }", "title": "" }, { "docid": "5780399db8a12547d4f650de49d82447", "score": "0.68654764", "text": "function lastId()\n {\n return mysqli_insert_id($this->con);\n }", "title": "" }, { "docid": "ef7e25bb0aed083d93d8c0c29c8df6d4", "score": "0.686528", "text": "public function getLastID() {\r\n\t\treturn self::$mysqli->insert_id;\r\n\t}", "title": "" }, { "docid": "6761722e6eacfe6eaba15d2ed6009115", "score": "0.68642855", "text": "public function getNextId()\n {\n return $this->dataStore->lastInsertId() + 1;\n }", "title": "" }, { "docid": "1a3d925cdaa5a2e74bb7bbe7eebde681", "score": "0.6850252", "text": "function insert_id($result=''){\n\t\treturn $this->db->insert_id;\n\t}", "title": "" }, { "docid": "081e013242341ada332d8c505b6d94e2", "score": "0.6844706", "text": "public static function getLastInsertId() {\n\t\treturn static::$db_connection->Insert_ID();\n\t}", "title": "" }, { "docid": "6db6ef702840ed354389577ea9aa375b", "score": "0.6839203", "text": "function last_insert_id($tab,$fieldid='rowid')\n {\n return $this->db->insert_id;\n }", "title": "" }, { "docid": "b0e9d153f9633925bf448e8746bdd33e", "score": "0.68379295", "text": "public function getLastInsertId(){\n\n if($this->_engine === self::MYSQL){\n\n return mysqli_insert_id($this->_mysqlConnectionId);\n }\n }", "title": "" }, { "docid": "24db93dd64b3e09d2a42e51617f5f334", "score": "0.6836032", "text": "function obtenerLastId()\n {\n $sql = \"SELECT LAST_INSERT_ID() as IdPersona\";\n global $cnx;\n return $cnx->query($sql); \t \t\n }", "title": "" }, { "docid": "2184997ca1c87a1d5280dc783cb5de9b", "score": "0.6833928", "text": "public function lastInsertId(): int {\n\t\t$ret = 0;\n\t\tif ($this->adapter != null) {\n\t\t\t$ret = $this->adapter->lastInsertId();\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "7349f10efad445767f5a778f398941fa", "score": "0.6833071", "text": "public function id(): int\n\t{\n\t\tif($this->table_info->auto_increment ?? false)\n\t\t\treturn $this->data[$this->table_info->auto_increment];\n\t\treturn false;\n\t}", "title": "" }, { "docid": "97c4113efcd1191618dd36c3cc833aa8", "score": "0.6831765", "text": "public static function getLastId(): int\n\t{\n\t\treturn self::$instance->lastInsertId();\n\t}", "title": "" }, { "docid": "73878b0af1ec821e600712a00e20d3df", "score": "0.6830501", "text": "function get_insert_id()\r\n {\r\n return mysql_insert_id($this->_dbConn);\r\n }", "title": "" }, { "docid": "96f83ac2a47250a3f2f259b9e8ced591", "score": "0.68304634", "text": "function InsertMM($db, $cont, $table, $type, $fid, $mysqli, $min, $max)\n{\n $id=getrecentformdata($db, $fid, $mysqli);\n $id=$id+1;\n $sql = \"insert into TextBox(FID,TextBoxID,Question,Typeof,Min,Max) VALUES ('$fid','$id','$cont','$type','$min','$max')\";\n\n \n \n \n if ($mysqli->query($sql) === true) {//echo $id;\n return $id;\n } else {\n return 0;\n }\n}", "title": "" }, { "docid": "edd5731ea6e9355dd3b4056e155f3e05", "score": "0.68289596", "text": "public function user_next_auto_id()\n {\n $result = common_select_values('AUTO_INCREMENT', 'INFORMATION_SCHEMA.TABLES', ' TABLE_SCHEMA = database() AND TABLE_NAME = \"users\"', 'row');\n return $result; \n }", "title": "" }, { "docid": "76c3f8a370756df61044f4f65406bad9", "score": "0.6826833", "text": "public function getLastInsertId(): int\n {\n return (int) Arr::get($this->toArray(), 'data.record.id');\n }", "title": "" }, { "docid": "5925ef1a705b36b5c1b1f31f22f5cbb8", "score": "0.68220454", "text": "function last_id_pdo(){\n\t\t$conn = Conexion(); \n\t\treturn $conn->lastInsertId();\n\t}", "title": "" }, { "docid": "5b6258c31947bf0ee8deadf3a8b10803", "score": "0.68187815", "text": "public function insertId ()\n {\n return mysql_insert_id($this->connection);\n }", "title": "" }, { "docid": "c0f657be7fd9de8fd01c647cc6add33c", "score": "0.681514", "text": "public static function insert_id()\r\n {\r\n global $db;\r\n return mysql_insert_id($db);\r\n }", "title": "" }, { "docid": "97a5ae18e6fd12a11ef11a9eb454b410", "score": "0.6812618", "text": "function mysql_next_id($table, $id_column) {\n\n/*show table status like '%client' \nSELECT LAST_INSERT_ID() FROM matable\nSELECT MAX(NoClient) AS maxid FROM client*/\n \n\t$sql = \"SELECT MAX($id_column) AS maxid FROM $table;\";\n\t$result = mysql_query($sql);\n\tif( !$result ) {\n\t\techo( \"Erreur mysql_next_id $table $id_column : \".mysql_errno().\" : \".mysql_error().\"<br>\".$sql );\t\t\t\n\t\texit();\n\t}\t\t\n\n\tif( mysql_num_rows($result) ) { \n \t\t$rows = mysql_fetch_assoc($result);\n\t\treturn ( $rows['maxid'] + 1 );\n }\n else\n \treturn( 0 );\n}", "title": "" }, { "docid": "e00cec46b186fc03d519554b6b421d2f", "score": "0.6810902", "text": "function get_last_ID() {\r\n return mysql_insert_id( $this->connect );\r\n }", "title": "" }, { "docid": "da0a8866e0b4dbaa2a9867bdb7257575", "score": "0.68101656", "text": "static function lastInsertId()\n {\n return $GLOBALS['-DB-L']->insert_id;\n }", "title": "" }, { "docid": "9759fcb53d0b40e8c1aa14fc7608c91c", "score": "0.6809323", "text": "public function getLastInsertId(): int\n {\n return $this->pdo->lastInsertId();\n }", "title": "" }, { "docid": "03dfa0525d22196a1ac030bd01474154", "score": "0.6806645", "text": "function qa_db_last_insert_id()\n{\n\t$db = qa_db_connection();\n\treturn $db->insert_id;\n}", "title": "" }, { "docid": "03e64f4c74f74cc05c85a93d95a6edb1", "score": "0.6803447", "text": "public function insert_id() {\n\t\t// get the last id inserted over the current db connection\n\t\treturn mysqli_insert_id($this->connection);\n\t}", "title": "" }, { "docid": "0482542662a20d8f3641c77870e013f1", "score": "0.6800819", "text": "function insert_id()\r\n\t{\r\n\t\treturn mysql_insert_id($this->link_id);\r\n\t}", "title": "" }, { "docid": "c306d32a37196800c41029eb7fb932c4", "score": "0.6798461", "text": "function id_db()\n\t\t{\n\t\t\treturn mysql_insert_id($this->con);\n\t\t}", "title": "" }, { "docid": "fbb1351a8408faf2340b680904340223", "score": "0.6796354", "text": "protected function _insertId($query) {\n\t\t$model = $query->model();\n\t\t$columns = $model::schema();\n\t\tforeach ($columns as $column) {\n\t\t\tif (isset($column['sequence'])) {\n\t\t\t\t$resource = $this->_execute(\"SELECT currval('{$column['sequence']}') as max\");\n\t\t\t\tlist($id) = $resource->next();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn ($id && $id !== '0') ? $id : null;\n\t}", "title": "" }, { "docid": "b55290ecfc9b8b4a8ec40c9c7efacc68", "score": "0.6793447", "text": "public function dbi_getlastinsertid() {\n\t\tswitch ($GLOBALS[\"db_type\"])\n\t\t{\n\t\t\tcase 'mysql':\n\t\t\t\treturn mysql_insert_id();\n\t\t\tbreak;\n\t\t\n\t\t\tcase 'mysqli':\n\t\t\t\treturn mysqli_insert_id($GLOBALS[\"db_connection\"]);\n\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\techo \"error ins function like mysql_insert_id()\";\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "871f860c81e4a9194ed102a9a3219760", "score": "0.678867", "text": "public function getLastInsertId(){\n return self::$instance->lastInsertId();\n }", "title": "" }, { "docid": "0f660537f2be425e90fff5662b781426", "score": "0.678704", "text": "function get_used_id () {\n\t\t\t$result = $this->controller->perform_query ('SELECT LAST_INSERT_ID() as id');\n\t\t\tif ( ($row = $result->fetch_assoc()) ){\n\t\t\t\treturn $row['id'];\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "90ae5f58c91a5b26a65b2768e77e27b8", "score": "0.67857313", "text": "function getLastInsertId(){\n return parent::getLastInsertId();\n }", "title": "" }, { "docid": "b56c53df1011df9b4640e95c31ed8f18", "score": "0.67843926", "text": "public function obtenerId() {\n\t\tif(!$this->r) return null;\n\t\tif($this->stmt) $this->r->store_result();\n\t\treturn $this->r->insert_id;\n\t}", "title": "" }, { "docid": "abcae5bbbd73348e0178db926d2c141d", "score": "0.6783795", "text": "public function insertId():?int{\r\n\t return $this->prepare?$this->prepare->insert_id:null;\r\n\t}", "title": "" }, { "docid": "34618c975df4b57e04834ab9b5b646a0", "score": "0.67836773", "text": "function lastId()\n {\n return mysql_insert_id();\n }", "title": "" }, { "docid": "90f078982d9320d6b088f933d5b024e4", "score": "0.6783407", "text": "public function insert_id()\n {\n $this->connect();\n $id = $this->connection->Insert_ID();\n if( self::$debug ) log::debug( '(DB) insert ID = '.$id );\n return $id;\n }", "title": "" }, { "docid": "9d2d982663978f51d3b74325c9c1f1ac", "score": "0.67824614", "text": "public function insertGetId()\n {\n return $this->lastId;\n }", "title": "" }, { "docid": "9d2d982663978f51d3b74325c9c1f1ac", "score": "0.67824614", "text": "public function insertGetId()\n {\n return $this->lastId;\n }", "title": "" }, { "docid": "9d2d982663978f51d3b74325c9c1f1ac", "score": "0.67824614", "text": "public function insertGetId()\n {\n return $this->lastId;\n }", "title": "" }, { "docid": "9d2d982663978f51d3b74325c9c1f1ac", "score": "0.67824614", "text": "public function insertGetId()\n {\n return $this->lastId;\n }", "title": "" }, { "docid": "703107d4208bc53f27ccd3c03a18c36b", "score": "0.6782399", "text": "function maxId()\n {\n $sql = \"SELECT max(INV_ID) as id FROM mco_inventario \";\n $this->consult = $this->connection->Execute($sql);\n $max=$this->consult->fields;\n return $max['id']+1;\n\n }", "title": "" } ]
105f97f730630e7c32b14b9a0b23997a
Consulta Mysql para buscar en la tabla Usuario aquellos usuarios que coincidan con el mail y password ingresados en pantalla de login
[ { "docid": "22d3c83665b09f7be5f04d07c8228eae", "score": "0.0", "text": "function ValidarUsuario($email,$password){\n $query = $this->db->where('Usuario',$email); // La consulta se efectúa mediante Active Record. Una manera alternativa, y en lenguaje más sencillo, de generar las consultas Sql.\n $query = $this->db->where('Password',$password);\n $query = $this->db->get('Usuarios');\n return $query->row(); // Devolvemos al controlador la fila que coincide con la búsqueda. (FALSE en caso que no existir coincidencias)\n }", "title": "" } ]
[ { "docid": "6f9131a69aaab02feed7fc3cd133987d", "score": "0.7197439", "text": "public function checarLogin(){\n\n\t\ttry{\n\n\t\t\t$sql = new Sql;\n\n\t\t\t$usuario = $sql->select(\n\t\t\t\t\"SELECT * FROM usuarios WHERE email = :email AND senha = :senha AND admin = 1\",[\n\t\t\t\t\":email\"\t=>\t$this->getEmail(),\n\t\t\t\t\":senha\"\t=>\t$this->getSenha()]);\n\t\t\treturn $usuario[0];\n\n\t\t}catch(Exception $e){\n\t\t\tprint \"Erro ao acessar Banco de Dados<br>\";\n\t\t\tprint($e->getMessage());\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "bdd11c947fbf4a34c64e097f958844a6", "score": "0.6997658", "text": "public function getLoginUser()\n{\n\t$cn = new conexion();\n\t$cn->conectar();\n\t$sql = \"SELECT * FROM tbl_usuarios\";\n\treturn $cn->getEjecucionQuery($sql);\n}", "title": "" }, { "docid": "e6729a21681eac80c77f37b56037ab4f", "score": "0.69751287", "text": "public function connexions($email,$password){\n\t\t$requete = \"SELECT users.id_user, users.nom, users.prenom, users.email, users.adresse FROM users WHERE users.email = '\".$email.\"' AND users.password = '\".$password.\"';\";\n\t\t$result = $this->db->get($requete);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "f598b96c7a1b5146a2adff352322fa45", "score": "0.6902953", "text": "public function consulta_usuarios (){\n $stmt=null;\n try {\n $stmt = $this->dbh->prepare(\"SELECT nick from usuario;\");\n $stmt->execute();\n\n }catch (PDOException $e){\n echo $e->getMessage();\n }\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "d21aa2e97e36e3c8faa2c6c70a1e42d5", "score": "0.68994486", "text": "public function SEARCH(){\n $sql = \"SELECT * FROM USUARIOS WHERE ((login LIKE '%$this->login%') &&\n (password LIKE '%$this->password%') &&\n (email LIKE '%$this->email%'))\";\n if (!($resultado = $this->mysqli->query($sql))){\n return 'Error en la consulta sobre la base de datos';\n }\n else{\n return $resultado;\n }\n }", "title": "" }, { "docid": "80b5e1779b91e8e63c1e95028b9c041f", "score": "0.68801266", "text": "public function getUsuarioPorEmail(){\n \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 \n }", "title": "" }, { "docid": "10f47c29c2c1cb473a639add691b119a", "score": "0.6843261", "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": "98faf2a072371cba630c726ec0a8a700", "score": "0.6816351", "text": "public static function listarUsuarios()\n {\n try {\n $SQL =\n \"SELECT \n u.user_id AS idUsuario,\n u.user_name AS nombreUsuario,\n u.user_email AS emailUsuario,\n u.user_phone AS phoneUsuario,\n u.user_dirge AS usuarioOcupacion,\n DATE(u.user_register) AS fechaRegistro,\n u.user_tipe AS tipoUsuario,\n u.user_status AS estatusUsuario,\n u.user_password_hash AS userPasswd\n FROM users AS u\";\n $stmt = Connection::connect()->prepare($SQL);\n\n if ($stmt->execute()) {\n return [\"success\", $stmt->fetchAll()];\n } else {\n return [\"error\", \"Imposible obtener usuarios !\"];\n }\n } catch (Exception $e) {\n return [\"error\", \"Error al conectar a la base datos! \" . $e];\n }\n }", "title": "" }, { "docid": "2ff13391c2c0525db305b0ebaa07ee3f", "score": "0.68159515", "text": "function consultar_usuario(){\n\t\t$pdo= Conexion::Abrirbd();\n\t\t$pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);\n\n\t\t$sql=\"SELECT * FROM usuario\";\n\n\t\t$query=$pdo->prepare($sql);\n\t\t$query->execute();\n\t\t$result=$query->fetchALL(PDO::FETCH_BOTH);\n\n\t\tConexion::Cerrarbd();\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "61fada50aaf54b3f8e4cdd5c359365bb", "score": "0.67678016", "text": "public function buscarLogin($usuario){\n\t $sql=\"SELECT * from usuarios WHERE usuario='\".$usuario.\"'\";\n\t //Realizamos la consulta\n\t $resultado=$this->realizarConsulta($sql);\n\t if($resultado!=false){\n\t return $resultado->fetch_assoc();\n\t }else{\n\t return null;\n\t }\n \t}", "title": "" }, { "docid": "df02824d102b981f1eddbc0fd3db3086", "score": "0.6728693", "text": "static function findAll(){\n $cnpj = $_SESSION['login']['cnpj_empresa'];\n $sql = \"SELECT id, login, senha, perfil, ativo, cnpj_empresa FROM tb_usuario WHERE cnpj_empresa = :cnpj_empresa ORDER BY login\";\n $DB = db_connect();\n $stmt = $DB->prepare($sql);\n $stmt->bindParam(':cnpj_empresa', $cnpj);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_CLASS, 'Usuario');\n }", "title": "" }, { "docid": "1e1267ea8c128e61290dd261cbe2e6db", "score": "0.67067677", "text": "public function consultarTodosUsuarios() {\r\n $sql = \"SELECT * FROM usuarios\";\r\n\r\n $resultado = mysqli_query($this->conexao->getCon(), $sql);\r\n\r\n if (mysqli_num_rows($resultado) > 0){\r\n return $resultado;\r\n } \r\n else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "ac314f11c211cb8883637a724797824d", "score": "0.6652579", "text": "function obtener_todos_los_usuarios()\n {\n $this->crear_conexion();\n \n // Ejecutar la consulta SQL\n $resultado = $this->consulta_base_de_datos('SELECT user, pass FROM usuario');\n \n // Crear el array de elementos para la capa de la vista\n //$articulos = array();\n //while ($fila = mysql_fetch_array($resultado, MYSQL_ASSOC))\n //{\n // $articulos[] = $fila;\n //}\n \n // Cerrar la conexión\n $this->cerrar_conexion();\n \n return $resultado;\n }", "title": "" }, { "docid": "e9ca6f3735f8a1a6f90309be2eef5bb3", "score": "0.6622423", "text": "function checkUserLogin($mail, $password){\n\t\t$conn = Connection::getInstance();\n\t\t$query = \"SELECT * FROM Utenti \";\n\t\t$query .= \"WHERE mail = '$mail' AND password = PASSWORD('$password') \";\n\t\t$ris = $conn->query($query);\n\t\t$row = $conn->fetch($ris);\n\t\t\n\t\tif($conn->num_rows($ris) == 0) echo json_encode(array('ok' => 'ok', 'valida' => 'no'));\n\t\telse echo json_encode(array('ok' => 'ok', 'valida' => 'si', 'user_id' => $row['id_utente'], 'username' => $row['username']));\n\t}", "title": "" }, { "docid": "802f46be9afe75408c582641ac31f465", "score": "0.6616482", "text": "function ChecaUsuario($login,$senha){\r\n\t\t$this->dbconn->conectar();\r\n\t\t\r\n\t\t$l_str_sql = \" select adm_usr_pk, \";\r\n\t\t$l_str_sql.= \" adm_usr_nome, \";\r\n\t\t$l_str_sql.= \" adm_usr_nivel \";\r\n\t\t$l_str_sql.= \" from adm_usuario \"; \r\n \t$l_str_sql.= \" where adm_usr_login = '\".$this->dbconn->anti_sql_injection($login).\"' \";\r\n \t$l_str_sql.= \" and adm_usr_senha = password('\".$this->dbconn->anti_sql_injection($senha).\"') \";\r\n \t$l_str_sql.= \" and adm_usr_status = '\".K_ATIVO.\"' \";\t \t\t\r\n\r\n\t\t//executa o sql\r\n\t\t$RSTemp = $this->dbconn->getRecordset($l_str_sql);\r\n\t\t\r\n\t\tif ($this->dbconn->getExisteRecordset($RSTemp)){\r\n\t\t\r\n\t\t //pega os valores no banco\r\n\t\t\t$RSusuario = $this->dbconn->getRecordsetArray($RSTemp);\t\t\r\n\t\t\r\n\t\t\t//cria o cookie\r\n\t\t\t$this->CriaCookie($RSusuario[\"adm_usr_pk\"],$login,$RSusuario[\"adm_usr_nome\"],$RSusuario[\"adm_usr_nivel\"]);\r\n\t\t\t\r\n\t\t\t//fecha conexao com o banco\r\n\t\t\t$this->dbconn->fechar();\r\n\t\t\t\r\n \t\t\t//retorna verdadeiro\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n \t\t\t//senao retorna falso\r\n\t\t\treturn false;\r\n\t}", "title": "" }, { "docid": "01560fc9a486cababe894b4d5c218a5f", "score": "0.66053677", "text": "public function obtenerUsuarios(){\r\n\t\t\tglobal $miBD;\r\n\t\t\t$query = \"\tSELECT \r\n\t\t\t\t\t\t\tavatar_perfil,\r\n\t\t\t\t\t\t\turl_usuario,\r\n\t\t\t\t\t\t\tnombre_perfil,\r\n\t\t\t\t\t\t\temail_usuario,\r\n\t\t\t\t\t\t\tprestigio_perfil,\r\n\t\t\t\t\t\t\tu.id_usuario\r\n\t\t\t\t\t\tFROM usuario u\r\n\t\t\t\t\t\tLEFT JOIN perfil p ON(u.id_usuario = p.id_usuario)\r\n\t\t\t\t\t\tWHERE u.debaja = 0\r\n\t\t\t\t\t \";\r\n\t\t\t$resultado = $miBD->ejecutar($query);\r\n\t\t\t\r\n\t\t\treturn $resultado;\r\n\t\t}", "title": "" }, { "docid": "3e190be0a267284f74a1070680a75382", "score": "0.6601443", "text": "public function login() {\n $sql = \"select * from usuarios where email = '{$this->getEmail()}'\";\n $login = $this->db->query($sql);\n\n if($login && $login->num_rows == 1) {\n $usurio = $login->fetch_object();\n\n // Verificar la constraseña\n $verify = password_verify($this->getPassword(true), $usurio->password);\n return $verify ? $usurio : false;\n } else return false;\n }", "title": "" }, { "docid": "42db58b1185b2f4686ab30af5055e074", "score": "0.65956944", "text": "public function getUsuarioPorEmail()\n {\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": "cc2588f947d2c537a9d72998d4919560", "score": "0.656109", "text": "public static function mostrarUsuarios() {\n self::desconectar();\n $query = \"SELECT * FROM Usuario u \n INNER JOIN UsuarioRol ur \n ON u.idUsuario=ur.Usuario_idUsuario\n INNER JOIN Rol r\n ON ur.Rol_idRol=r.idRol\";\n\n self::getConexion();\n\n $resultado = self::$conexion->prepare($query);\n $resultado->execute();\n\n return $resultado;\n }", "title": "" }, { "docid": "c0a23a1ddaaabd0ea9da999df956efed", "score": "0.6529964", "text": "public function buscaUsuarioLogin($usuario, $pass)\r\n {\r\n return $this->database->query(\"SELECT usuario, pass, id_usuario FROM usuarios WHERE usuario = '$usuario' AND pass = '$pass';\")->fetchAll();\r\n }", "title": "" }, { "docid": "5a6de7b9bb641a9d2936a6fd5b3a391a", "score": "0.6523887", "text": "public function User($email){\r\n\r\n $sql=\"SELECT * FROM usuarios WHERE email='\".$email.\"'\";\r\n\r\n\r\n $resultado=$this->realizarConsulta($sql);\r\n\r\n if ($resultado!=null) {\r\n $tabla=[];\r\n while ($fila=$resultado->fetch_assoc()) {\r\n $tabla[]=$fila;\r\n }\r\n return $tabla;\r\n }\r\n else{\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "7c72fd678070eff3670da476582ceb64", "score": "0.6518406", "text": "public function ingresaUsuarioModel($datos,$tabla){\n $con = new Database();\n $data = $datos[\"email\"];\n $stm = $con->select(\"SELECT email,contrasena,nombre,id_admin FROM $tabla WHERE email = '$data'; \");\n return $stm;\n }", "title": "" }, { "docid": "874463e1347327ced5269d9efb297b77", "score": "0.6513753", "text": "function getUsuarios (){\n\t\n\treturn mysqli_query($_SESSION[\"conn\"], \"SELECT * FROM Users\");\n}", "title": "" }, { "docid": "13c5f8136fd1270110ff76a5933895b0", "score": "0.65072984", "text": "public function obtenerUsuarios(){\n //Hacemos la consulta para obtener todos lo usuarios registrados.\n \t\t$this->db->query(\"SELECT * FROM personas WHERE tipoPersona='usuario'\");\n $listaUsuarios=$this->db->registros();\n \t\t return $listaUsuarios;\n \t}", "title": "" }, { "docid": "afabf0edb2a47ca707cbc6a5225d13de", "score": "0.6484652", "text": "public function obtenerUsuarios()\n {\n //Asi se hace una consulta SQL, llamando el metodo query\n $this->db->query(\"SELECT * FROM users\");\n\n //Instancia del metodo registros, que retorna el resultado del query\n return $this->db->registros();\n }", "title": "" }, { "docid": "af897bede12999d28e6d505e3b6c912a", "score": "0.64810896", "text": "public static function getList(){\n\n $sql = new Sql();\n\n return $sql->select(\"SELECT * FROM tb_usuario ORDER BY desLogin;\");\n\n\n }", "title": "" }, { "docid": "8139719d958ed4ed912997259cd5947b", "score": "0.64453405", "text": "function Login() \n{\n // Se verifica que el usuario exista en la base de datos\n $Query = \"SELECT COUNT(iUsuario) AS Total FROM usuarios WHERE Usuario = '\" . $_GET['Usuario'] . \"'\";\n $Lector = Ejecuta_Query($Query);\n\n $rows = array();\n\n while ($Registro = mysql_fetch_assoc($Lector)) \n {\n $rows[] = $Registro['Total'];\n }\n\n if ($rows[0] > '0') \n {\n // Se crea el query para leer al usuario de la base de datos\n $Query = \"SELECT * FROM usuarios WHERE Usuario = '\".$_GET['Usuario'].\"' AND Password = '\" .$_GET['Password'].\"' LIMIT 1\";\n $Lector = Ejecuta_Query($Query);\n $rows = array();\n\n while ($Registro = mysql_fetch_assoc($Lector)) \n {\n $rows[] = $Registro;\n }\n if (count($rows) > 0)\n {\n return \"success\";\n } \n else \n {\n return \"Password incorrecto\";\n }\n } \n else \n {\n return \"Usuario no existe\";\n }\n \n}", "title": "" }, { "docid": "6226e82d1338b4fe6bf34076b77db417", "score": "0.64297944", "text": "public function login($datos) \n {\n // Almacenamos en $pass el password del usuario con método de encriptación sha1\n $pass = Hash::getHash('sha1', $datos['pass'], HASH_KEY);\n /*$sql = sprintf(\n \"SELECT adminId, login, pass, level \"\n . \"FROM admin \"\n . \"WHERE login = %s and pass = %s\", parent::comillas_inteligentes($username), parent::comillas_inteligentes($pass)\n );\n $res = $this->_db->con()->query($sql);\n\n if ($res->num_rows <= 0) {\n return FALSE;\n }\n if ($reg = $res->fetch_array()) {\n $this->_user[] = $reg;\n }\n $res->free();\n return $this->_user;*/\n $sql = \"SELECT `userID`, `login`, `role`, `avatar`, `nombres` FROM `users` \"\n .\"WHERE `login` = ? AND `pass` = ?\";\n $stmt = $this->_dbh->prepare($sql);\n $stmt->bindParam(1, $datos['username'], PDO::PARAM_STR);\n $stmt->bindParam(2, $pass, PDO::PARAM_STR);\n $stmt->execute();\n return $stmt->fetch(PDO::FETCH_ASSOC);\n $this->_dbh = null;\n }", "title": "" }, { "docid": "f4098eb153eaa823a853b380f5b1f260", "score": "0.64291346", "text": "function comprobarUsuario($mysqli, $username, $password) {\n \n $resultado = $mysqli->query(\"SELECT * FROM usuario WHERE username = '$username' AND contrasenia = '$password'\");\n\n return $resultado;\n}", "title": "" }, { "docid": "2682f7c03b85f258e79acfef92a7d347", "score": "0.642775", "text": "public static function getList() {\n\t\t$sql = new Sql ();\n\t\treturn $sql->select ( \"SELECT * FROM tb_usuarios ORDER BY deslogin;\" );\n\t}", "title": "" }, { "docid": "0eea8a4cff3c433874b40073484db78d", "score": "0.6414684", "text": "public function select() {\r\n $sql = 'SELECT usu_codigo, usu_nombres, usu_apellidos, usu_correo, usu_clave, usu_razon_social, usu_cargo, usu_direccion, usu_ciudad, usu_pais, usu_departamento, usu_telefono, usu_fecha_registro, usu_pagina_web, usu_descripcion, usu_estado, rol_id FROM usuarios';\r\n return $this->query($sql);\r\n }", "title": "" }, { "docid": "09fecd7c48a41fe7020f6ca3bdec5829", "score": "0.64035875", "text": "public function get_usuarios()\n {\n $sql= \"SELECT a.serial_alu, nombre1_alu,, pren.nombrePregunta_pren, alupre.respuesta_encuasta, pren.multiple_pren , alupre.serial_ape, pren.serial_pren \n\t\t\t\t\t\t\t\tFROM alumno AS a, alumno_preguntencuesta as alupre, preguntas_encuesta2 as pren LEFT JOIN alumnomalla ON alumnomalla.serial_alu=a.serial_alu LEFT JOIN malla ON malla.serial_maa=alumnomalla.serial_maa \n \t\t\t\t\t\tAND serial_maa_p=0 LEFT JOIN carrera ON carrera.serial_car=malla.serial_car LEFT JOIN carreraprincipal ON carreraprincipal.serial_crp=carrera.serial_crp LEFT JOIN facultad ON facultad.serial_fac=carrera.serial_fac \n \t\t\t\t\t\t\tLEFT JOIN seccion AS sec ON sec.serial_sec = a.serial_sec LEFT JOIN pais AS p ON a.serial_pai=p.serial_pai LEFT JOIN periodo ON periodo.serial_per=a.serial_per LEFT JOIN colegios AS col ON col.serial_col=a.serial_col \n\t\t\t\t\t\t\tWHERE (intercambio_alu<>'VIENE INTERCAMBIO' AND intercambio_alu<>'COMUNIDAD') AND fectitulacion_ama <> '0000-00-00' AND a.serial_alu=alupre.serial_alu AND alupre.serial_pren=pren.serial_pren\" ;\n\t \n\t // $res=mysql_query($sql, Conectar::Con());\n\t $res=$gConexionDB->Execute($sql);\n //mysql_fetch_assoc se utiliza para trabajar con array multidimensional\n while($reg=mysql_fetch_assoc($res))\n {\n //usuarios recibe cada uno de los registros que tiene la tabla usuarios\n $this->usuarios[]=$reg;\n \n } \n return $this->usuarios; \n }", "title": "" }, { "docid": "d2887fc9a8a0283ce543e14b24828c7a", "score": "0.6390062", "text": "public function mostrarUsuarios()\n {\n if (parent::hayError()==false) {\n $mostrar=\"SELECT * FROM usuarios\";\n $resultado = parent::getConexion()->query($mostrar);\n\n if(!$resultado){\n echo \"Falló al mostar el Usuario: (\" . parent::getConexion()->errno . \") \" . parent::getConexion()->error;\n return false;\n }else {\n return $resultado;\n }\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "577d21a3ae45a46246201621dff203a7", "score": "0.63859093", "text": "public static function getList()\n\t\t{\n\t\t\t$sql = new Sql();\n\t\t\treturn $sql->select(\"SELECT *FROM tb_usuarios ORDER BY deslogin;\");\n\t\t}", "title": "" }, { "docid": "8e0ac2cfb3982d765d682637ff4b53c2", "score": "0.6368667", "text": "function logueaUsuario($username, $passwd) {\n\t$result = \"\";\n\tinclude \"connection.php\";\n\t\n\ttry {\n\t\t$STH = $DBH->prepare(\"select id_tb_usuarios, concat(nombre,' ',ap_paterno,' ',ap_materno) as nombre, email, id_ctg_tipo_usuario from TB_USUARIOS where username = ? and passwd = MD5(?) and activo = true\");\n\t\t$STH->bindParam(1, $username);\n\t\t$STH->bindParam(2, $passwd);\n\t\t$STH->setFetchMode(PDO::FETCH_NUM);\n\t\t$STH->execute();\n\t\t\n\t\twhile ($row = $STH->fetch()) {\n\t\t\t$result = $row[0] . \"|\" . $row[1] . \"|\" . $row[2] . \"|\" . $row[3];\n\t\t}\n\t\t\n\t} catch (PDOException $ex) {\n\t\tprint $ex->getMessage();\n\t}\n\t\n\tinclude \"closeConnection.php\";\n\treturn $result;\n}", "title": "" }, { "docid": "4ab09b2a83185727045cecd8189e370f", "score": "0.63654155", "text": "public function findAllUser()\n\t{\n\t\t$Sql=\"SELECT s_Name ,s_Email ,s_Pass,\ti_Login ,i_Id ,i_Level ,i_Experience ,i_Status ,i_Credits ,i_Refresh,i_Storage ,b_Looked ,d_RegisterDate,\tb_Premium,i_GroupId,i_Server\n\t\tFROM tbl_user\";\n\t\treturn $this->doLoad($this->MySql->executeQuery($Sql));\n\t}", "title": "" }, { "docid": "f207c7c99c454b0435a193a6d12e92e6", "score": "0.6361744", "text": "function login()\n {\n\t$mail = $_POST['email'];\n\t$passwd = $_POST['password'];\n \n // Variables connexió MySQL\n\t$host = \"localhost\";\n\t$user = \"root\";\n\t$pass = \"\";\n\t$db = \"projectefinal\";\n $error = \"\";\n // Realitzem la connexió amb la base de dades\n $conn = mysqli_connect ($host, $user, $pass, $db) or die (\"Error de Connexió\");\n \n // Sentencia SQL a executar\n //$sentenciasql = \"SELECT * FROM users where username = '\".$mail.\"' and contrasenya = '\".$passwd.\"' ;\";\n //$sql= mysqli_query($connect, $sentenciasql);\n\n $sql = \"SELECT * FROM users WHERE username=? and contrasenya =?\"; // SQL with parameters\n $stmt = $conn->prepare($sql); \n\n $stmt->bind_param(\"ss\", $mail, $passwd);\n $stmt->execute();\n $result = $stmt->get_result(); \n $mostrar = $result->fetch_assoc(); \n $rowCount = mysqli_num_rows($result);\n\n \n \n if($rowCount>0){\n echo 'ok';\n header('Location: menuprincipal.php');\n }else{\n \n echo 'Contrasenya mal fatal';\n header('Location: ../index-mal.html');\n }\n /*if($mostrar['Contrasenya'] == $passwd){\n\n echo 'ok';\n header('Location: menuprincipal.php');\n \n }else{\n \n echo 'Contrasenya mal fatal';\n header('Location: ../index-mal.html');\n }*/\n \n }", "title": "" }, { "docid": "1ae9beeccfaf2f22140e4f6f46f88ca6", "score": "0.63536346", "text": "public static function login($usuario){\n $query = \"Select * from TBUsuarios where Correo = :correo and Password = :password\";\n self::getConexion();\n $resultado = self::$conexion->prepare($query);\n //$gsent->bindParam(':calories', $calorías, PDO::PARAM_INT);\n $correo = $usuario->GetCorreo();\n $pass = $usuario->GetPassword();\n //echo \" usuario = \".$correo.\" pass = \".$pass;\n $resultado->bindParam(':correo',$correo);\n $resultado->bindParam(':password',$pass);\n $resultado->execute();\n\n //print_r($resultado);\n\n if($resultado->rowCount()>0){\n $filas = $resultado->fetch();\n\t\t\t //echo \"*******\".$resultado->rowCount().\"---correo = \".$correo.\" pass \".$pass. \" filacorreo \".$filas['Correo'].\" Password \".$filas['Password'];\n\t\t\t //die();\n if($filas['Correo'] == $correo && $filas['Password'] == $pass){\n return true; \n }\n \n }\n return false;\n\n \t\t}", "title": "" }, { "docid": "426859a7b90e03783e3fa81a7c24bf04", "score": "0.6351179", "text": "function login($email,$password) {\n\t\t$res = $this->db->get_where('pengunjung', $email = 'email');\n\t\t//coba nanti tulis jika ada email sama password disini\n\t\treturn $res;\n\n\t}", "title": "" }, { "docid": "0df79a0bb8355b28c785b7160988474e", "score": "0.6349671", "text": "function parcours_utilisateur(){\n\t\t\t$requete =parent::$connexion->prepare('SELECT idMembre, nom from membre');\n\t\t\t$requete->execute();\n\t\t\treturn $requete->fetchAll();\n\t\t}", "title": "" }, { "docid": "96e301a0ac6b568956ece12b392a8fbf", "score": "0.6346338", "text": "function pega_usuario_login($login){\n\t\t$sql='SELECT *FROM usuarios WHERE login = \"'.$login.'\"';\n\t\t$query=$this->db->query($sql); \n\t\tif($query->rowCount()>0){\n\t\t\treturn $query->fetch(PDO::FETCH_ASSOC);\n\t\t}\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "35bc0d5783eafcebd50b90bd1d03494f", "score": "0.63445944", "text": "function login_user($email, $password) {\n\t$stmt = $GLOBALS['gjdb']->prepare(\"SELECT * FROM gj_users WHERE email = :email AND password = :password\");\n $stmt->bindParam(\":email\", $email, PDO::PARAM_STR);\n $stmt->bindParam(\":password\", $password, PDO::PARAM_STR);\n $stmt->execute();\n \n return $login_data = $stmt->fetch(PDO::FETCH_ASSOC);\n}", "title": "" }, { "docid": "0530fdbad1feba0462af860a6301ba6d", "score": "0.63432616", "text": "function fetchLogin(){\n\n //Creamos la sentencia sql para recoger todos los logins\n $sql = \"SELECT login FROM `USUARIO` \";\n\n // Si la busqueda no da resultados, se devuelve el mensaje de que no existe\n if (!($resultado = $this->mysqli->query($sql))){\n return 'It does not exist in DB';\n }\n else{ // si existe se devuelve la tupla resultado\n $result = $resultado;\n return $result;\n }\n }", "title": "" }, { "docid": "f3e328e52413471a8049970b43532457", "score": "0.6341893", "text": "public static function consulta($sql)\n\t{\n\t\t// Arreglo que va a contener todos los reportes\n\t\t$lista_usuarios = [];\n\n\n\t\t// Crear una instancia de la conexion\n\t\t$conexion = new Conexion;\n\n\t\t// Consulta para la base de datos y despues lo guarda en la variable\n\t\t$resultado = $conexion->conn->query($sql);\n\n\n\t\t// Recorrer todos los usuarios que llegaron de la bd\n\t\twhile ( $usuario = $resultado->fetch_assoc() ) {\n\n\t\t\t// Crear un usario temporal en cada vuelta\n\t\t\t$usuarioTemporal = new Usuario();\n\n\t\t\t// Añadir los campos al usuario\n\t\t\t$usuarioTemporal->id \t \t = $usuario['id'];\n\t\t\t$usuarioTemporal->apellido \t = $usuario['apellido'];\n\t\t\t$usuarioTemporal->cedula\t = $usuario['cedula'];\n\t\t\t$usuarioTemporal->celular \t = $usuario['celular'];\n\t\t\t$usuarioTemporal->ciudad \t = $usuario['ciudad'];\n\t\t\t$usuarioTemporal->contrasena = $usuario['contrasena'];\n\t\t\t$usuarioTemporal->correo \t = $usuario['correo'];\n\t\t\t$usuarioTemporal->direccion\t = $usuario['direccion'];\n\t\t\t$usuarioTemporal->nombre \t = $usuario['nombre'];\n\t\t\t$usuarioTemporal->rol_id \t = $usuario['rol_id'];\n\n\t\t\t// Guarda el objeto usuario en el arreglo\n\t\t\t$lista_usuarios[] = $usuarioTemporal;\n\t\t}\n\n\t\t// Devolver todos los usuarios\n\t\treturn $lista_usuarios;\n\t}", "title": "" }, { "docid": "a853132c17dee8fd471663943999fd65", "score": "0.63247776", "text": "function fetchUsers(){\r\n\t\t\t$query = \"SELECT username, nome, cognome, isOwner, isAdmin FROM utente\";\r\n\t\t\t$users = DatabaseModel::executeSelectQuery($query);\r\n\t\t\treturn $users;\r\n\t\t}", "title": "" }, { "docid": "85af04c7e936f0953652d988f95cfe0f", "score": "0.6319582", "text": "function loginme($username, $password)\n {\n $converter = new Encryption;\n $pwd = $converter->encode($password);\n\t\t//$abc = $converter->decode($pwd);\n $sql =\"SELECT user_id, user_name, full_name, pwd, sys_users.roles_id, sys_roles.roles_name, id_kecamatan, id_kelurahan FROM sys_users \n INNER JOIN sys_roles ON sys_roles.roles_id = sys_users.roles_id WHERE (user_name ='$username' or email ='$username') AND pwd = '$pwd' \";\n $query = $this->db->query($sql);\n $user = $query->result();\n if(!empty($user)){\n return $user;\n } else {\n return array();\n }\n }", "title": "" }, { "docid": "470945a75c15a1eea869abbdbf9dbade", "score": "0.630526", "text": "public function getUsers($condicion = '') \n {\n $sql = \"SELECT `u`.`userID`, `u`.`login`, `u`.`nombres`, `u`.`apaterno`, `u`.`amaterno`, `u`.`email`, `u`.`telefono`, `r`.`role` \"\n .\"FROM `users` `u`, `roles` `r` \" \n .\"WHERE `u`.`role` = `r`.`roleID` \" . $condicion . \" order by `u`.`apaterno`;\";\n $stmt = $this->_dbh->query($sql);\n $this->_user = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $this->_user;\n $this->_dbh = null;\n }", "title": "" }, { "docid": "576d113389eb9a718a34d006bfbf76c1", "score": "0.62844205", "text": "public function listaUser(){\n\t\t// $sql = \"SELECT a.user_nombres,a.user_nick, b.rol_name FROM table_user a INNER JOIN table_roles b ON a.user_rol = b.rol_id WHERE a.user_status= 1 ORDER BY b.rol_id \";\n\t\t$sql = \"SELECT a.user_nombres,a.user_nick, b.rol_name FROM table_user a JOIN table_roles b JOIN table_user_rol c WHERE a.user_nick = c.user_nick AND a.user_rol = b.rol_id AND a.user_status= 1 ORDER BY b.rol_id; \";\n\t\t$request = $this->select_all($sql);\n\t\treturn $request;\n\t}", "title": "" }, { "docid": "3cb712ecd57e8f2e4bc6d61608b4af45", "score": "0.6259063", "text": "function selectUser( $conDb, $login, $pass ) {\n\t$success = ( $login != null );\n\n\t$user = $login;\n\t$erreur = $success ? null : array( \"reason\" => \"Identité non Définie\");\n\t$IdUSR = null;\n\t$droits = null;\n\t$nbDroitAction = null;\n\t$zoneGeo = null;\n\n\tif( $success ) {\n\t\t$sqlSelectUser = \"SELECT IdUSR, USR_Nom, USR_Mail, IFNULL(USR_Droits, 0) * 2 + IF(USR_ZoneGeo IS NULL, 0, 1) AS USR_Droits, USR_ZoneGeo\"\n\t\t\t. \" FROM ts_user_usr\"\n\t\t\t. \" WHERE USR_Mail = ? AND ( USR_Pwd = ? OR USR_Pwd = PASSWORD( ? ) )\";\n\t\t\n\t\t$stmt = $conDb->prepare($sqlSelectUser);\n\t\t$stmt->execute( array($user, $pass, $pass) );\n\n\t\t$arr = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\n\t\t// Contrôle l'existance et l'unicité de l'identité\n\t\t$success = ( count($arr) == 1 );\n\t\tif( $success ) {\n\t\t\t$donnees = $arr[0];\n\t\t\t$IdUSR= $arr[0][\"IdUSR\"];\n\t\t\t$user= $arr[0][\"USR_Mail\"];\n\t\t\t$droits= $arr[0][\"USR_Droits\"];\n\t\t\t$zoneGeo= $arr[0][\"USR_ZoneGeo\"];\n\t\t\t\n\t\t\t$requete = \"SELECT COUNT( * ) AS NbDroits\"\n\t\t\t\t. \" FROM tj_droit_com\"\n\t\t\t\t. \" WHERE com_droit &8\"\n\t\t\t\t. \" AND idUtilisateur = \" . $IdUSR;\n\t\t\t\n\t\t\t$result = $conDb->query($requete);\n\n\t\t\t/* associative array */\n\t\t\t@$rec = $result->fetch(PDO::FETCH_ASSOC);\n\t\t\t$nbDroitAction = $rec[\"NbDroits\"];\n\t\t\t\n\t\t} else {\n\t\t\t$erreur = \"Erreur d'authentification\";\n\t\t}\n\t}\n\t// Lecture des parametres\n\t$paramJson = json_decode( file_get_contents(\"param.json\"), true );\n\n\t// Construit la réponse pour le client\n\t$arrUtilisateur = array(\n\t\t\"success\"=>$success,\n\t\t\"errors\"=>$erreur,\n\t\t\"IdUSR\"=>$IdUSR,\n\t\t\"user\"=>$user,\n\t\t\"droits\"=>$droits,\n\t\t\"style\"=>(isset($paramJson[\"style\"])) ? $paramJson[\"style\"] : null,\n\t\t\"nbDroitAction\"=>$nbDroitAction,\n\t\t\"societe\"=>$paramJson[\"societe\"],\n\t\t\"paramJson\"=>$paramJson,\n\t\t\"zoneGeo\"=>$zoneGeo\n\t);\n\n\treturn $arrUtilisateur;\n}", "title": "" }, { "docid": "622fc17ef8a9ffcad3602c9e65403dd1", "score": "0.6238173", "text": "public function getUsuario()\n{\n\t$cn = new conexion();\n\t$cn->conectar();\n\t$sql = \"SELECT * FROM tbl_usuarios WHERE rol = 'usuario' \";\n\treturn $cn->getEjecucionQuery($sql);\n}", "title": "" }, { "docid": "cc916ed08e5b5b8b278cda101be59521", "score": "0.623296", "text": "public function autenticarUsuario($datos=array())\n {\n $where=$datos;\n $query=$this->db\n ->select(\"USU_ID, USU_NOMBRES\")\n ->from(\"USUARIO\")\n ->where($where)\n ->get();\n //echo $this->db->last_query();\n return $query->row();\n }", "title": "" }, { "docid": "dbdd0f64475b117c829c40d363d0f063", "score": "0.6210948", "text": "private function login() {\n\t\t$nombre = (isset($_POST[\"nombre\"]) ? $_POST[\"nombre\"] : \"\");\n\t\t$password = (isset($_POST[\"password\"]) ? $_POST[\"password\"] : \"\");\n\t\t$sql = \"SELECT idUsuario FROM Usuario where nombre = '\". $nombre .\"' AND password = md5('\". $password .\"')\";\n\t\t$conn = $this->getConexion();\n\t\t$result = $conn->query($sql);\n\n\t\tif ($result->num_rows > 0) {\n \t\tif($row = $result->fetch_assoc()) {\n \t\t\t$_SESSION[\"idUsuario\"] = $row[\"idUsuario\"];\n \t\t\t$_SESSION[\"nombre\"] = $nombre;\n \t\t\theader(\"Location: inicio.php\");\n \t\t}\n \t} else {\n \t\tthrow new Exception(\"La combinación usuario / contraseña no es correcta.\");\n \t}\n\t}", "title": "" }, { "docid": "afb94e11d400a0fa56b44d84f48c0ce9", "score": "0.621025", "text": "public function listarUsuarios() {\n $sentencia = 'SELECT u.rut, u.nombre ||\\' \\'|| u.apellido_pat ||\\' \\'|| u.apellido_mat AS NOMBRE, u.tipo, u.borrado_logico, TO_CHAR(u.fecha_suspencion,\\'DD\\') AS DIA_S, TO_CHAR(u.fecha_suspencion,\\'MM\\') AS MES_S, TO_CHAR(u.fecha_suspencion,\\'YYYY\\') AS ANIO_S FROM usuarios_tab u';\n $consulta = $this->db->prepare($sentencia);\n $consulta->execute();\n//devolvemos la coleccion para que la vista la presente.\n return $consulta;\n }", "title": "" }, { "docid": "74a3aacfb06c061dbbd78fb4d65d553e", "score": "0.6208066", "text": "public function listar()\n {\n $sql = \"SELECT * FROM qgb_usuarios\";\n return ejecutarConsulta($sql);\n }", "title": "" }, { "docid": "6815a654fb0c551468d2e4a38c015a1d", "score": "0.620733", "text": "public function buscarNombreAlumno(){\n $this->objetoDato->conectar();\n $rs=$this->objetoDato->ejecutar(\"SELECT nom_usuario FROM usuarios WHERE nom_usuario LIKE '$this->nom_usuario' AND pass_usuario LIKE '$this->pass_usuario'\");\n if(count($rs)){\n for($i=0; $i<count($rs); $i++){\n return $rs[$i]['nom_usuario'];\n }\n }\n $this->objetoDato->desconectar();\n }", "title": "" }, { "docid": "52001fcda4924109b3db48384343fdaf", "score": "0.6205649", "text": "public function fetchBenutzerByLoginPW($loginName, $password) {\n// $loginName = $benutzer->getLoginname();\n $mysqli = parent::getMySQLi();\n $suchmaschineQuery = $mysqli->prepare(\"SELECT ben.id, ben.categoryID, ben.name, ben.username, ben.email, ben.password, ben.administrator\n FROM user ben\n WHERE ben.username = ? AND ben.password = ?\");\n $suchmaschineQuery->bind_param(\"ss\", $loginName, md5($password));\n $suchmaschineQuery->execute();\n $benutzerID = 0;\n $name = \"\";\n $email = \"\";\n $loginName = 0;\n $password = \"\";\n $administrator = false;\n $suchmaschineQuery->bind_result($userID, $categoryID, $name, $username, $email, $password, $administrator);\n $suchmaschineQuery->fetch();\n $benutzer = new Benutzer($userID, $categoryID, $name, $username, $email, $password, $administrator, null);\n $suchmaschineQuery->close();\n return $benutzer;\n }", "title": "" }, { "docid": "3c21c05e9cdd7ac994d8adcc4964121e", "score": "0.6204438", "text": "public function getAllUsers()\n {\n $sql = \"SELECT username, name, email, admin, created, deleted FROM login;\";\n $res = $this->db->executeFetchAll($sql);\n\n return $res;\n }", "title": "" }, { "docid": "10ec39787cf13a97038330cb52eac18b", "score": "0.62036175", "text": "public function RellenaDatos(){\n $sql= \"SELECT * FROM USUARIOS WHERE (login = '$this->login')\";\n if($resultado = $this->mysqli->query($sql)){\n $return = $resultado->fetch_array();\n return $return;\n }else{\n return 'No existe en la base de datos';\n }\n }", "title": "" }, { "docid": "3662592f3904ef8e04ebfe9964f37951", "score": "0.6202425", "text": "function searchAll() {\n $oAccesoDatos = new AccesoDatos();\n $sQuery = \"\";\n $aFila = null;\n $aLineaUsu = null;\n $j = 0;\n $oUsu = null;\n $arrUsuarios = null;\n if ($oAccesoDatos -> conectar()) {\n $sQuery = \"SELECT id, username, password, last_access, salt, fb_id, tw_id, type, status, email\n\t\t\t\tFROM app_user \n\t\t\t\tORDER BY last_access\";\n $aFila = $oAccesoDatos -> ejecutarConsulta($sQuery);\n $oAccesoDatos -> desconectar();\n if ($aFila) {\n foreach ($aFila as $aLineaUsu) {\n $oUsu = new User();\n\n $oUsu -> setId($aLineaUsu[0]);\n $oUsu -> setUsername($aLineaUsu[1]);\n $oUsu -> setPassword($aLineaUsu[2]);\n $oUsu -> setLastAccess($aLineaUsu[3]);\n $oUsu -> setSalt($aLineaUsu[4]);\n $oUsu -> setFacebookId($aLineaUsu[5]);\n $oUsu -> setTwitterId($aLineaUsu[6]);\n $oUsu -> setType($aLineaUsu[7]);\n $oUsu -> setStatus($aLineaUsu[8]);\n $oUsu -> setEmail($aLineaUsu[9]);\n $arrUsuarios[$j] = $oUsu;\n $j = $j + 1;\n }\n }\n }\n return $arrUsuarios;\n }", "title": "" }, { "docid": "c871100c1d412a58793fe3b189eaeef0", "score": "0.6201861", "text": "public static function login($usuario)\n {\n\n $query = \"SELECT * FROM usuarios WHERE Nickname= :Nickname AND Contraseña= :Contrasena\";\n\n self::getConexion();\n\n $resultado = self::$cnx->prepare($query);\n\n $usu = $usuario->getNickname();\n $pass = $usuario->getContraseña();\n\n $resultado->bindValue(\":Nickname\", $usu);\n $resultado->bindValue(\":Contrasena\", $pass);\n\n $resultado->execute();\n /**\n * Evitar Inyecciones sql\n */\n if ($resultado->rowCount() > 0) {\n $filas = $resultado->fetch();\n if (\n $filas[\"Nickname\"] == $usuario->getNickname()\n && $filas[\"Contraseña\"] == $usuario->getContraseña()\n\n\n ) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "913a7bb42dd41f55d7d155d24152ccda", "score": "0.6189257", "text": "function is_login_user($email,$password){\n global $connexion;\n $array = [\n 'email' =>$email,\n 'password' =>sha1($password)\n ];\n\n\n $sql =(\"SELECT * FROM users WHERE email = :email AND password = :password \");\n $req = $connexion->prepare($sql);\n $req->execute($array);\n $result = $req->fetchAll(PDO::FETCH_OBJ);\n $exist = $req->rowCount();\n\n return $exist;\n}", "title": "" }, { "docid": "7de9a230409ff1309533bbbc7b6097b9", "score": "0.61862916", "text": "public function login(){\n\t\t \n\t\t $this->Connect();\n\t\t $sql = \"select * from user\n\t\t where \n\t\t\t\t Email = '\".MS($this->Email).\"' AND\n\t\t\t\t\t\t\t\t Password = '\".MS($this->Password).\"'\";\n\t\t\t\t\t\t\t\t\n\t\t$sql = mysql_query($sql);\n\t\t\tif(mysql_num_rows($sql) > 0) {\n\t\t\t\twhile($d = mysql_fetch_row($sql)) {\n\t\t\t\t\t$this->Id = $d[0];\n\t\t\t\t}\t\t\t\t\n\t\t return true;\n\t\t\t }\t\n\t return false;\t \n\t\n\t }", "title": "" }, { "docid": "0d99785dbb53a3043acd30279e0038b2", "score": "0.61784387", "text": "function check_user_account($username, $password){\n return $this->db->query(\"SELECT * FROM t_user \"\n\t\t\t\t. \"LEFT JOIN t_pegawai ON pgw_id = usr_pegawai\".\" \"\n . \"WHERE usr_username LIKE BINARY \".$this->db->escape($username).\" \"\n . \"AND usr_password LIKE BINARY \".$this->db->escape(md5($password)).\" \"\n . \"AND usr_deleted = '0';\");\n }", "title": "" }, { "docid": "c50abe9adc8baaf2bf143485dac53bad", "score": "0.61763", "text": "function getuser($table_name, $username,$pass) {\n $res = $this->DB->runquery(\"SELECT*FROM $table_name WHERE name = '$username' AND password =$pass\");\n $istrue = ($res > 0 ? true : false);\n return $istrue;\n }", "title": "" }, { "docid": "9e19e4559668c141fa1d9bceb25aab96", "score": "0.6171616", "text": "public function cek_login($username,$password) { \n $this->db->where('password', $password);\n $this->db->where('username', $username)\n ->or_where('email', $username); \n return $this->db->get(TbadmiN); \n }", "title": "" }, { "docid": "761e124da148249878b7fd4c424c8cae", "score": "0.61712825", "text": "public static function searchUsuario($id,$password);", "title": "" }, { "docid": "61abf96bec983a8d80528f1640967615", "score": "0.61707294", "text": "function getConsultaUser($id_rol) {\n $con = new Conexion($id_rol);\n $sql = \"SELECT\n tbl_consultas.id_consulta,\n tbl_consultas.fecha,\n tbl_consultas.hora,\n tbl_consultas.id_usuario,\n tbl_consultas.verificador,\n tbl_consultas.solicitud,\n tbl_consultas.leido,\n tbl_consultas.estado,\n tbl_consultas.file,\n tbl_consultas.antiguedad_actividad,\n tbl_consultas.problema_oportunidad,\n tbl_consultas.met_prod_serv,\n tbl_consultas.productos_obtener,\n tbl_consultas.proceso_productivo,\n tbl_uzuaryoz.icono_perfil,\n tbl_uzuaryoz.nombre,\n tbl_uzuaryoz.apellido,\n tbl_uzuaryoz.email,\n tbl_uzuaryoz.razon_social,\n tbl_uzuaryoz.rut,\n tbl_uzuaryoz.celular,\n tbl_uzuaryoz.telefono,\n tbl_uzuaryoz.email_opcional\n FROM\n tbl_consultas,\n tbl_uzuaryoz\n WHERE\n tbl_consultas.id_usuario = tbl_uzuaryoz.id_usuario AND\n tbl_consultas.estado = '\".$this->estado.\"' AND\n tbl_consultas.id_consulta = '\".$this->id.\"'\";\n $resp = $con->busquedas($sql);\n $con->cerrar();\n return $resp;\n }", "title": "" }, { "docid": "93c8f84c8173b3c4a792bd85ca48f44c", "score": "0.6165537", "text": "function get_user_by_email_and_password( $email, $password )\n\t{\n\t\treturn mysqli_query_excute( \"SELECT * FROM users WHERE email = '$email' AND password = '$password'\" );\n\t}", "title": "" }, { "docid": "ae9c42afae096516cdacbcb993afba58", "score": "0.6161934", "text": "public function getUsers(){\n\n $result=$this->getDb()->query(\"SELECT id_utilisateur as ID,nom,prenom,email,telephone,statut,sexe,ville,pays FROM t_utilisateurs\")->fetchAll(\\PDO::FETCH_ASSOC);\n\t\treturn $result;\n }", "title": "" }, { "docid": "992f2c2378343d24995aedf5a5466f15", "score": "0.6155022", "text": "public function buscarIdAlumno(){ \n $this->objetoDato->conectar();\n $rs=$this->objetoDato->ejecutar(\"SELECT id_usuario FROM usuarios WHERE nom_usuario LIKE '$this->nom_usuario' AND pass_usuario LIKE '$this->pass_usuario'\");\n if(count($rs)){\n for($i=0; $i<count($rs); $i++){\n return $rs[$i]['id_usuario'];\n }\n }\n $this->objetoDato->desconectar();\n }", "title": "" }, { "docid": "8a7da8498406d937f53b8c8d49193a46", "score": "0.6153168", "text": "private function almacenar_usuario(){ $this->db->consultas('SELECT * FROM usuarios WHERE uid = \"'. $this->datos['uid'].'\"');\n $GG = $this->db->obtener_datos();\n $cont = count($GG);\n if ($cont>0){\n return $this->respuesta = ['ya existe'];\n }\n else{\n $this->db->consultas('INSERT INTO usuarios (uid, displayname, email, fechanacimiento, tipocuenta) VALUES(\"'.$this->datos['uid'].'\", \"'.$this->datos['displayname'].'\", \"'.$this->datos['email'].'\", \"'.$this->datos['fechanacimiento'].'\", \"'.$this->datos['tipocuenta'].'\")');\n return $this->respuesta = ['guardado'];\n }\n \n /* \n $this->db->consultas('IF EXISTS (SELECT * FROM usuarios WHERE uid = '.$this->datos['uid'].')\n BEGIN\n Set @existeUsuario=1\n END\n IF @existeUsuario=1 \n BEGIN\n DELETE FROM usuarios WHERE usuarios.uid = '.$this->datos['uid'].'\n end\n else\n begin\n INSERT INTO usuarios (uid, displayname, email, fechanacimiento, tipocuenta) VALUES(\"'.$this->datos['uid'].'\", \"'.$this->datos['displayname'].'\", \"'.$this->datos['email'].'\", \"'.$this->datos['fechanacimiento'].'\", \"'.$this->datos['tipocuenta'].'\")\n end'); */\n \n }", "title": "" }, { "docid": "1505126fb4aa83881f569e1ab2e5bfd4", "score": "0.6151988", "text": "public function obtenirListeUtilisateur() {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t$stmt = $this->connexion->query(\"SELECT * from utilisateur\");\n\n\t\t\t\t$stmt->execute();\n\t\t\t\treturn $stmt->fetchAll();\n\n\t\t\t}\n\t\t\tcatch(Exception $exc) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "14e5f6b4321e63a120e409f96f4083fc", "score": "0.6150076", "text": "function logando() {\r\n\r\n\r\n $query = \"SELECT *\r\n\r\n FROM \" . $this->table_name . \"\r\n WHERE\r\n login = ? and\r\n senha = ?\r\n LIMIT\r\n 1\";\r\n\r\n $stmt = $this->conn->prepare($query);\r\n\r\n $stmt->bindParam(1, $this->login);\r\n $stmt->bindParam(2, $this->senha);\r\n\r\n $stmt->execute();\r\n\r\n return $stmt;\r\n }", "title": "" }, { "docid": "420ded0ff7042defdabb68e82b573483", "score": "0.6149206", "text": "function loginMe($email, $password)\r\n {\r\n $this->db->select('BaseTbl.userId, BaseTbl.email, BaseTbl.password, BaseTbl.name, BaseTbl.roleId, Roles.role');\r\n $this->db->from('tbl_users as BaseTbl');\r\n $this->db->join('tbl_roles as Roles','Roles.roleId = BaseTbl.roleId');\r\n $this->db->where('BaseTbl.email', $email);\r\n $this->db->where('BaseTbl.isDeleted', 0);\r\n $query = $this->db->get();\r\n \r\n $user = $query->result();\r\n \r\n if(!empty($user)){\r\n if(verifyHashedPassword($password, $user[0]->password)){\r\n return $user;\r\n } else {\r\n return array();\r\n }\r\n } else {\r\n return array();\r\n }\r\n }", "title": "" }, { "docid": "ddc55bbe628da16f49e2e65434ced378", "score": "0.61480016", "text": "public static function getUsuaios(){\n $conexion = CineDB::conectar();\n $query = \"SELECT * from usuarios\";\n $consulta = $conexion->query($query);\n $usuarios = [];\n while($registro = $consulta->fetch(PDO::FETCH_ASSOC)){\n $usuarios = new Usuario($registro[\"idUsuario\"], $registro[\"nombre\"], $registro[\"mail\"], $registro[\"pass\"], $registro[\"admin\"]);\n }\n return $usuarios;\n $conexion = null;\n }", "title": "" }, { "docid": "e2d1075b8fd9cc1eddbf9b800cf98a45", "score": "0.61475974", "text": "public function select_user($login){\n $query = 'SELECT * FROM users WHERE :login = email OR :login = pseudo';\n $ps = $this->_db->prepare($query);\n $ps->bindValue(':login',$login);\n $ps->execute();\n $row = $ps->fetch();\n return new User($row->user_id,$row->pseudo, $row->first_name,$row->last_name,$row->email,$row->admin,$row->disabled,$row->password);\n }", "title": "" }, { "docid": "9fa01aadf274e08497efef912f91f281", "score": "0.61428136", "text": "public function consultar_usuario() {\n\n $cedula = $_POST['cedula'];\n if ($cedula == \"\") {\n exit();\n }\n $arrayData = array();\n $arrayData[] = $cedula;\n $consultar_cedula = $this->Pgsql->SELECTPLSQL('existe_usuario', $arrayData);\n if ($consultar_cedula[0][0] != 0) {\n echo 1;\n } else {\n echo 0;\n }\n }", "title": "" }, { "docid": "6d57166f4c16e262198b7dcc42114a5a", "score": "0.6138435", "text": "function login_user($email, $password){\n global $conn;\n $password = md5($password);\n $query = \"SELECT * FROM user WHERE user_email = '$email' AND user_password = '$password' LIMIT 1\";\n $rows = $conn->query($query)->fetch();\n return $rows;\n}", "title": "" }, { "docid": "f97159b15da1d1c30cd28b4695967251", "score": "0.6136232", "text": "public static function find_login_user($email, $password)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t global $database;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t /* dit is query die alle records selecteerd met het ingevulde\n\t\t\t\t\t\t\t\t\t * emailadress en password afkomstis van het formulier\n\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\t \t$query = \t\"SELECT * \n\t\t\t\t\t\t\t\t\t\t\t\tFROM \t\t`login` \n\t\t\t\t\t\t\t\t\t\t\t\tWHERE\t\t`e-mail` \t= '\".$email.\"'\n\t\t\t\t\t\t\t\t\t\t\t\tAND \t\t`password` \t= '\".$password.\"'\";\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/* met array_shift haal je het ene record uit het array\n\t\t\t\t\t\t\t\t\t\t\t\t * en geef je dus een LoginClass object terug\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// echo $query; exit();\n\t\t\t\t\t\t\t\t$record_array = self::find_by_sql($query);\t\t\t\t\n\t\t\t\t\t\t\t\treturn\tarray_shift($record_array);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "570f3e655ae84e78feda6c79e0d5ea29", "score": "0.613606", "text": "function searchUsuario($contrato) {\n \n \t$email = $contrato['email'];\n \t$email = $this->cleanString($email);\n \t//Convertir a minusculas\n \t$email = strtolower($email); \n \t\n \t$cobrador = $contrato['id_cobrador'];\n \t$cobrador = $this->cleanString($cobrador);\n \t \n \tif($cobrador == '000'){\n \t\t//Cartera oficial asignada a Hernando Madrid\n \t\t$user = array('id' => 116);\n \t\treturn $user;\n \t}\n \t \n \tif($cobrador == '009'){\n \t\t//Cartera especial asignada a Dolores Arrieta\n \t\t$user = array('id' => 68);\n \t\treturn $user;\n \t}\n \t \t \n \t$filter = array(\n \t\t\t'value' => $email,\n \t\t\t'operator' => '=',\n \t\t\t'property' => 'email'\n \t);\n \t$filter = json_encode(array($filter));\n \n \t$urlUser = $this->server.'admin/security/user?filter='.$filter;\n \t \n \t//echo \"\\n\".$urlUser.\"\\n\";\n \t$apiUser = $this->SetupApi($urlUser, $this->user, $this->pass);\n \n \t$user = $apiUser->get();\n \t$user = json_decode($user, true);\n \n \n \tif($user['total'] > 0){\n \t\t \n \t\t$u = array(\n \t\t\t\t'id' => $user['data'][0]['id'],\n \t\t\t\t'email' => $user['data'][0]['email']\n \t\t);\n \t\t\n \t\treturn $u;\n \t\t \n \t}else{\n \t\treturn $user = array('id' => 203); //User araujo y segovia\n \t}\n \t \n }", "title": "" }, { "docid": "76bfccfc8ffd7d4b0281c17a0a519b95", "score": "0.6131007", "text": "public static function getUserLogin( Array $data )\n { \n $users = DB::table((new User)->getTable().' as U')\n ->select('U.*', 'CT.city_name', 'C.nicename')\n ->leftJoin((new Country)->getTable().' as C', 'C.country_id', '=', 'U.user_country')\n ->leftJoin((new City)->getTable().' as CT', 'CT.city_id', '=', 'U.user_city')\n ->where('U.user_email', '=', $data['user_email'])\n ->where('U.user_password', '=', $data['user_password'])\n ->get();\n //->toSql();\n //echo \"<pre>\";\n //print_r($users);\n // dd(DB::getQueryLog());\n return $users;\n }", "title": "" }, { "docid": "1c9fd9b99b045029f748acc06463abb6", "score": "0.61299986", "text": "static public function mdlListarUsuario(){\n\n\t\t$stmt = Conexion::conectar()->prepare(\" SELECT\n\t\t\t\t* \n\t\t\tFROM\n\t\t\t\tusuario\n\t\t\tWHERE\n\t\t\t\testado = '1' \");\n\n\t\t$stmt -> execute();\n\n\t\treturn $stmt ->fetchAll( PDO::FETCH_ASSOC );\n\n\t}", "title": "" }, { "docid": "d2dee9ef6db44dbb0b1f9270d1e592c3", "score": "0.6125284", "text": "public function query_login($sql,$login,$password){\n $query = LinkDB::getLink()->prepare($sql);\n $query->execute(array($login,$password));\n $result = $query->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n\n }", "title": "" }, { "docid": "55de3e48493a42e9e88d08b288f82ef2", "score": "0.6124873", "text": "function SHOWALL_User($num_tupla,$max_tuplas){\n\t$login = $_SESSION['login'];\n\t$sql = \"SELECT * \n\t\t\tFROM USUARIO U, ENTREGA E, TRABAJO T\n\t\t\tWHERE (U.login = '$login' AND\n\t\t\t\t\tE.login = U.login AND\n\t\t\t\t\tE.IdTrabajo = T.IdTrabajo\n\t\t\t\t\t)\n\t\t\tLIMIT $num_tupla, $max_tuplas\";\n\t\t\t\n/*\n\t$sql = \"SELECT * FROM USUARIO U, USU_GRUPO UG, GRUPO G\n\t\t\t\t\tWHERE (U.login = UG.login AND\n\t\t\t\t\t\t\tUG.IdGrupo = G.IdGrupo )\n\t\t\t\t\tLIMIT $num_tupla, $max_tuplas\";\n*/\n\t // si se produce un error en la busqueda mandamos el mensaje de error en la consulta\n if (!($resultado = $this->mysqli->query($sql))){\n \t$this->lista['mensaje'] = 'ERROR: Fallo en la consulta sobre la base de datos'; \n\t\treturn $this->lista; \n\t}\n else{ // si la busqueda es correcta devolvemos el recordset resultado\n\t\treturn $resultado;\n\t}\n}", "title": "" }, { "docid": "4e7954975c04683062919eee8511a789", "score": "0.6122144", "text": "public function getClientes(){ //SELECT id_usuario, nombre_usuario, apellido_usuario, telefono, nickname, correo, contrasena, nombre_genero, nombre_tipo FROM usuarios INNER JOIN generos_usuario USING(id_genero) INNER JOIN tipo_usuario USING(id_tipo) ORDER BY apellido_usuario\n\t\t$sql = \"SELECT * FROM usuario WHERE id_tipouser = 2\";\n\t\t$params = array(null);\n\t\treturn Database::getRows($sql, $params);\n\t}", "title": "" }, { "docid": "a5700212dbcc495d66c90bf2c167a0c6", "score": "0.61183256", "text": "public function datosUsuario($loginUsuario)\n {\n $consultaDatosUsuario = \"SELECT idUsuario,idRolUsuario,user,password,estado,ciUsuario,primerNombre,primerApellido\n\t\t\t\t\t\t\t\tFROM usuario \n\t\t\t\t\t\t\t\tWHERE user = :loginUsuario;\";\n $consultaDatosUsuario = $this->Conexion->prepare($consultaDatosUsuario);\n $consultaDatosUsuario->bindParam(':loginUsuario', $loginUsuario);\n $consultaDatosUsuario->execute();\n $resultadoDatosUsuario = $consultaDatosUsuario->fetchAll();\n return $resultadoDatosUsuario;\n }", "title": "" }, { "docid": "50607677f271ba47b82b6f57da307803", "score": "0.6116266", "text": "public static function getAllUsuarios(){\n $query = \"Select Correo,Password,Status, Privilegio, FechaReg, Cliente_ID from TBUsuarios \";\n self::getConexion();\n $resultado = self::$conexion->prepare($query);\n $resultado->execute();\n $filas = $resultado->fetchAll();\n\t\t\t$i=0;\n\t\t\tforeach($filas as $fila){\n\t\t\t\t$arr_Correo[$i]=$fila[\"Correo\"];\n\t\t\t\t$arr_Password[$i]=$fila[\"Password\"];\n\t\t\t\t$arr_Status[$i]=$fila[\"Status\"];\n\t\t\t\t$arr_Privilegio[$i]=$fila[\"Privilegio\"];\n\t\t\t\t$arr_FechaReg[$i]=$fila[\"FechaReg\"];\n\t\t\t\t$arr_Cliente_ID[$i]=$fila[\"Cliente_ID\"];\t\n\t\t\t ++$i;\n\t\t\t}\n return array(\"arr_Correo\"=>$arr_Correo,\n\t\t\t\t\t\t\"arr_Password\"=>$arr_Password,\n\t\t\t\t\t\t\"arr_Status\"=>$arr_Status,\n\t\t\t\t\t\t\"arr_Privilegio\"=>$arr_Privilegio, \n \"arr_FechaReg\"=>$arr_FechaReg,\n\t\t\t\t\t\t\"arr_Cliente_ID\"=>$arr_Cliente_ID);\n }", "title": "" }, { "docid": "35f183e14aab4c62a4ca29d69c690d10", "score": "0.6110434", "text": "public function buscarDados(){\n $login=$_SESSION['login'];\n try {\n \n parent::setTabela('utilizador, estudante');\n parent::setValorPesquisa('utilizador.idUser =(:idUser) AND estudante.idUser = (:idUser)');\n \n $selecionaTudo = parent::selecionaTudo_ComCondicao();\n $selecionaTudo->bindParam(':idUser', $login->idUser, PDO::PARAM_INT);\n $selecionaTudo->bindParam(':idUser', $login->idUser, PDO::PARAM_INT);\n $selecionaTudo->execute();\n \n $dados = $selecionaTudo->fetch(PDO::FETCH_OBJ);\n \n return $dados;\n unset($result);\n \n } catch (Exception $exc) {\n return $exc->getMessage();\n }\n }", "title": "" }, { "docid": "ea666c836afd7eb1e36cb75c9f0c802e", "score": "0.6108597", "text": "function selectUser($email,$password)\n{\n global $dbh;\n $query = \"SELECT * FROM normal_user WHERE email = ? AND passwd = ?\";\n $stmt= $dbh->prepare($query);\n $stmt->execute(array($email,sha1($password)));\n return $stmt->fetchAll(); // DESIRED VALUES RETURNED FROM DB\n}", "title": "" }, { "docid": "bfe36342f7b9d488d18d9c261ea4944b", "score": "0.6108027", "text": "private function armarInstruccionConsultarAcceso()\n\t{\n\t$instruccion=\"select count(nick) as total, tipo from usuarios where \";\n\t$instruccion.=\" nick= '\";\n\t$instruccion.=$this->usuario->getNombreUsuario();\n\t$instruccion.=\"' and password='\";\n\t$instruccion.=$this->usuario->getContrasenia();\n\t$instruccion.=\"';\";\n\t return $instruccion;\n\t}", "title": "" }, { "docid": "e43fcc0c5e951caf8c25799083b380b4", "score": "0.61060196", "text": "public function selectUser($name)\n {\n try {\n $login = strtolower(trim($name));\n $SQL = \"SELECT * FROM `\" .self::$table_name. \"` WHERE (`username`='$login' OR `email`='$login')\";\n $result = $this->app['db']->fetchAssoc($SQL);\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e->getMessage(), 0, $e);\n }\n if (! isset($result['username'])) {\n // no user found!\n $this->app['monolog']->addDebug(sprintf('User %s not found in table _users', $name));\n return false;\n }\n $user = array();\n foreach ($result as $key => $value)\n $user[$key] = (is_string($value)) ? $this->app['utils']->unsanitizeText($value) : $value;\n return $user;\n }", "title": "" }, { "docid": "64585f35f6901e8fd8da8e5c2ddf1bd1", "score": "0.61050355", "text": "public static function getUsuario($usuario){\n\n //Select * from TBUsuarios where User_ID='diegoa' and Password = 'diegoa';\n $query = \"Select Correo,Privilegio,Cliente_ID from TBUsuarios where Correo = :correo and Password = :password\";\n self::getConexion();\n $resultado = self::$conexion->prepare($query);\n //$gsent->bindParam(':calories', $calorías, PDO::PARAM_INT);\n $correo = $usuario->GetCorreo();\n $pass = $usuario->GetPassword();\n //echo \" usuario = \".$user.\" pass = \".$pass;\n \n $resultado->bindParam(':correo',$correo);\n $resultado->bindParam(':password',$pass);\n $resultado->execute();\n\n $filas = $resultado->fetch();\n $usuario = new Usuario();\n $usuario->setCorreo($filas[\"Correo\"]);\n $usuario->setPrivilegio($filas[\"Privilegio\"]);\n $usuario->setCliente_ID($filas[\"Cliente_ID\"]);\n return $usuario;\n\n }", "title": "" }, { "docid": "00ea3f917ca209b82c2b6a04aeb3b875", "score": "0.6096422", "text": "function find_users()\n{\n\t$username=array();\n\t$email=array();\n\t$type=array();\n\t\n\t$conn=db_connect();\n\t$users=mysql_query(\"SELECT username,email,user_type FROM users\");\n\tmysql_close();\n\t\n\tif(!$users)\n\t{\n\t\tthrow new Exception('Υπήρξε κάποιο πρόβλημα με την ανάκτηση των χρηστών από το σύστημα.Παρακαλώ προσπαθήστε αργότερα.');\n\t}\n\t\n\tif(mysql_num_rows($users)>0)\n\t{\n\t\t$num=mysql_num_rows($users);\n\t\tfor($i=0; $i<$num; $i++)\n\t\t{\n\t\t\t$row=mysql_fetch_row($users);\n\t\t\t\n\t\t\t$username[count($username)]=$row[0];\n\t\t\t$email[count($email)]=$row[1];\n\t\t\t$type[count($type)]=$row[2];\n\t\t}\n\t\t\n\t\tdispUsers($username,$email,$type);\n\t}\t\n}", "title": "" }, { "docid": "a97eb251064aed30b1ba8378194a2816", "score": "0.6091954", "text": "public function getUsers(){\n \n $consulta = $this->db->query(\"SELECT * FROM datos_usuarios\");//mediante la conexion se hace un consulta simple a la BD\n \n while($filas = $consulta->fetch(PDO::FETCH_ASSOC)){//se ejecuta el while para recorrder los registros\n \n $this->usuarios[] = $filas;//se almacena dentro del array creado los recorridos que vaya haciendo el while a los registros\n \n }\n return $this->usuarios; \n }", "title": "" }, { "docid": "c9c99df00de71454f3bd9438f4d8f884", "score": "0.6091027", "text": "public function selectUsuarios($tipo){\n $sql = $this->conexion->prepare('Select DNI FROM usuarios WHERE tipo_usuario = :tipo');\n\n $sql->execute(array(':tipo' => $tipo));\n while($datos = $sql->fetch()){\n $user[]=$datos;\n }\n //echo \"por aqui\";\n //print_r($user) ;\n return $user;\n }", "title": "" }, { "docid": "5d5ad8b9e86c9da12325fe960eca4a5b", "score": "0.60907143", "text": "function getUser($login, $conexion) {\r\n \r\n try{\r\n $sql = 'SELECT * FROM anunciantes WHERE login=:login';\r\n $resultado = $conexion->prepare($sql);\r\n $resultado->execute(array(':login'=>$login));\r\n $usuario = false;\r\n\r\n //Si existe algún resultado\r\n if ($resultado->rowCount() > 0) {\r\n //Guardamos los datos de la consulta\r\n $usuario = $resultado->fetch();\r\n } \r\n }catch(PDOException $ex){\r\n echo \"Error:\" . $ex->getMessage();\r\n }\r\n \r\n cerrarConexion($conexion, $resultado);\r\n return $usuario;\r\n }", "title": "" }, { "docid": "32b95be70c256762e06aaa29cb8a7832", "score": "0.6087082", "text": "public function getUsuario($usuario, $password){\n $pdo = Database::connect();\n //Utilizamos parametros para la consulta:\n $sql = \"select * from usuarios where email=? and password=?\";\n $consulta = $pdo->prepare($sql);\n //Ejecutamos y pasamos los parametros para la consulta:\n $consulta->execute(array($usuario, $password));\n //Extraemos el registro especifico:\n $dato = $consulta->fetch(PDO::FETCH_ASSOC);\n if($dato==null){\n $user=null; \n }else{//\n $user = new Usuario($dato['id_usuario'],$dato['email'],$dato['password'],$dato['nombre'],$dato['apellido'],$dato['direccion'],$dato['telefono']);\n }\n Database::disconnect();\n return $user;\n }", "title": "" }, { "docid": "79bfae313ae51836a767f34538df278c", "score": "0.6085758", "text": "function login($table, $matricula, $senha)\n{\n $database = open_database();\n $found = null;\n try {\n if ($matricula != null && $senha != null) {\n $senha = md5($senha);\n $sql = \"SELECT * FROM \" . $table . \" WHERE matricula =\" . $matricula . \" AND senha='\" . $senha . \"'\";\n $result = $database->query($sql);\n if ($result->num_rows == 1 /*usuario existe na base */) {\n $row = $result->fetch_assoc();\n if ($row['permissao'] == 1 /*usuario administrador */) {\n\n $nome = explode(\" \", $row['nome']);\n\n $_SESSION['message'] = \"Bem Vindo(a) \" . $nome[0];\n $_SESSION['type'] = 'success';\n $_SESSION['id'] = $row['id'];\n $_SESSION['matricula'] = $matricula;\n $_SESSION['senha'] = $senha;\n $_SESSION['nome'] = $row['nome'];\n $_SESSION['email'] = $row['email'];\n $_SESSION['permissao'] = $row['permissao'];\n $found = $row['permissao'];\n } elseif ($row['permissao'] == 2 /*usuario operacional */) {\n\n $nome = explode(\" \", $row['nome']);\n\n $_SESSION['message'] = \"Bem Vindo(a): \" . $nome[0];\n $_SESSION['type'] = 'success';\n $_SESSION['id'] = $row['id'];\n $_SESSION['matricula'] = $matricula;\n $_SESSION['senha'] = $senha;\n $_SESSION['nome'] = $row['nome'];\n $_SESSION['email'] = $row['email'];\n $_SESSION['permissao'] = $row['permissao'];\n $found = $row['permissao'];\n } else /*usuario comum */ {\n $_SESSION['message'] = \"Você não tem permissão para logar no sistema\";\n $_SESSION['type'] = 'danger';\n $found = $row['permissao'];\n }\n } else {\n // Mensagem de erro quando os dados são inválidos e/ou o usuário não foi encontrado\n $_SESSION['message'] = \"Viiixe, não foi possivel logar, usuário não encontrado ou dados inválidos\";\n $_SESSION['type'] = 'danger';\n $found = 0;\n }\n }\n } catch (Exception $e) {\n $_SESSION['message'] = $e->GetMessage();\n $_SESSION['type'] = 'danger';\n $found = 0;\n }\n close_database($database);\n return $found;\n}", "title": "" }, { "docid": "8cc7711eaf17b1118b865b967def30a8", "score": "0.6068514", "text": "function cLogin(){\n \t$sql = \"select * from customer where cust_email=:cust_email and cust_password=:cust_password\";\n \t$args = [':cust_email'=>$this->cust_email, ':cust_password'=>$this->cust_password];\n $stmt = manageLoginAndRegisterModel::connect()->prepare($sql);\n $stmt->execute($args);\n return $stmt;\n }", "title": "" }, { "docid": "929575c13788f76aa52e08b33064d99e", "score": "0.6064836", "text": "function usuarioConIDEmpleadoFromDB($idEmpleado) {\r\n\t$sql = \"SELECT u.nombre \";\r\n\t$sql .= \"from ddv2_usuarios u, ddv2_relaciondeusuariosyempleados ree \";\r\n\t$sql .= \"where u.idddv2_usuarios = ree.idddv2_usuarios \";\r\n\t$sql .= \"\";\r\n\t$sql .= \" and ree.idddv2_empleados = \".$idEmpleado;\r\n\r\n $result = resultFromQuery($sql);\r\n $row = siguienteResult($result);\r\n \r\n\tif ($row != false) {\r\n\t\t$usuario = new Usuario;\r\n\t\t$nombreUsuario = $row->nombre;\r\n\t\tloadUsuario($nombreUsuario, $usuario);\r\n\t\treturn $usuario;\r\n\t} else {\r\n\t\treturn null;\r\n\t}\r\n\t\r\n}", "title": "" }, { "docid": "722c5364dfb502089cf811376c9767e0", "score": "0.6060408", "text": "public static function listarUsuarios() {\r\n $cont = 0;\r\n try {\r\n global $con;\r\n $re = $con->Execute(\"select *from usuario\");\r\n foreach ($re as $row) {\r\n //array(10) { [0]=> string(6) \"tdydyd\" [\"descripcion\"]=> string(6) \"tdydyd\" [1]=> string(8) \"jvjgjhgj\"\r\n // [\"email\"]=> string(8) \"jvjgjhgj\" [2]=> string(5) \"jkhkh\" [\"nombre\"]=> string(5) \"jkhkh\" [3]=> string(2) \"17\" [\"comentarios_sugerenciasid\"]=> string(2) \"17\" [4]=> string(1) \"1\" [\"paginaid\"]=> string(1) \"1\" } \r\n // var_dump($row);\r\n $usuarioid = $row[\"usuarioid\"];\r\n $nombre = $row[\"nombre\"];\r\n $apellido = $row[\"apellido\"];\r\n $sexo = $row[\"sexo\"];\r\n $email = $row[\"email\"];\r\n\r\n $estado = $row[\"estado\"];\r\n $fecha_ini = $row[\"fechacre\"];\r\n $fecha_fin = $row[\"fechamod\"];\r\n\r\n $user = new Usuario($usuarioid, $nombre, $apellido, $sexo, $email, \"\", $estado, $fecha_ini, $fecha_fin);\r\n //var_dump($coment);\r\n $lista[$cont++] = $user;\r\n }\r\n return $lista;\r\n } catch (Exception $exc) {\r\n echo $exc->getTraceAsString();\r\n }\r\n }", "title": "" } ]
bf3f1f1fa5e62ce3b27e92f719e2ab6f
Get or set attribute for wrapping element
[ { "docid": "953e5a4f01a1c7beac9e9817a141b3a0", "score": "0.557473", "text": "public function wrapAttr($key = null, $value = null) {\n\t\tif(is_null($value)) {\n\t\t\tif(is_null($key)) {\n\t\t\t\treturn $this->wrapAttributes;\n\t\t\t} else {\n\t\t\t\treturn isset($this->wrapAttributes[$key]) ? $this->wrapAttributes[$key] : null;\n\t\t\t}\n\t\t} else if($value === false) {\n\t\t\tunset($this->wrapAttributes[$key]);\n\t\t\treturn $this;\n\t\t} else {\n\t\t\tif(strlen($key)) $this->wrapAttributes[$key] = $value;\n\t\t\treturn $this;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "30ef5a0eefdb2f8e4e03373908dd4e9e", "score": "0.6341406", "text": "public function get_wrapper_attribute( string $attribute ) {\n\t\treturn \\array_key_exists( $attribute, $this->wrapper_attributes )\n\t\t\t? $this->wrapper_attributes[ $attribute ]\n\t\t\t: null;\n\t}", "title": "" }, { "docid": "144d3d5f7e3c937530dedbe5dae62c89", "score": "0.60233116", "text": "public function getAttribute($attr) {}", "title": "" }, { "docid": "3cf6d3084cbe37dfaa80d081372a038c", "score": "0.5920816", "text": "public function wrapper_attribute( string $attribute, $value = null ): self {\n\t\t$this->wrapper_attributes[ $attribute ] = $value;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "4116df55732cfe1ec15bb7751d26668d", "score": "0.58685327", "text": "public function setAttribute($attr, $value) {}", "title": "" }, { "docid": "6aacb524e1a4fce6dfb3473d945f3aa7", "score": "0.5856328", "text": "public function cssAttrib() {\n\t\tif ( !isset( $this->cache[__METHOD__] ) ) {\n\t\t\t// An attribute is going to be parsed by the parser as a\n\t\t\t// SimpleBlock, so that's what we need to look for here.\n\n\t\t\t$this->cache[__METHOD__] = new BlockMatcher( Token::T_LEFT_BRACKET,\n\t\t\t\tnew Juxtaposition( [\n\t\t\t\t\t$this->optionalWhitespace(),\n\t\t\t\t\tJuxtaposition::create( [\n\t\t\t\t\t\t$this->cssOptionalNamespacePrefix(),\n\t\t\t\t\t\t$this->ident(),\n\t\t\t\t\t] )->capture( 'attribute' ),\n\t\t\t\t\t$this->optionalWhitespace(),\n\t\t\t\t\tQuantifier::optional( new Juxtaposition( [\n\t\t\t\t\t\tAlternative::create( [\n\t\t\t\t\t\t\tnew TokenMatcher( Token::T_PREFIX_MATCH ),\n\t\t\t\t\t\t\tnew TokenMatcher( Token::T_SUFFIX_MATCH ),\n\t\t\t\t\t\t\tnew TokenMatcher( Token::T_SUBSTRING_MATCH ),\n\t\t\t\t\t\t\tnew DelimMatcher( [ '=' ] ),\n\t\t\t\t\t\t\tnew TokenMatcher( Token::T_INCLUDE_MATCH ),\n\t\t\t\t\t\t\tnew TokenMatcher( Token::T_DASH_MATCH ),\n\t\t\t\t\t\t] )->capture( 'test' ),\n\t\t\t\t\t\t$this->optionalWhitespace(),\n\t\t\t\t\t\tAlternative::create( [\n\t\t\t\t\t\t\t$this->ident(),\n\t\t\t\t\t\t\t$this->string(),\n\t\t\t\t\t\t] )->capture( 'value' ),\n\t\t\t\t\t\t$this->optionalWhitespace(),\n\t\t\t\t\t] ) ),\n\t\t\t\t] )\n\t\t\t);\n\t\t\t$this->cache[__METHOD__]->setDefaultOptions( [ 'skip-whitespace' => false ] );\n\t\t}\n\t\treturn $this->cache[__METHOD__];\n\t}", "title": "" }, { "docid": "c810048734ac0d63ec6375bc192be009", "score": "0.58183473", "text": "public function buildAttributeElement(): void;", "title": "" }, { "docid": "b469be8870952168461bd528049d44a5", "score": "0.5769631", "text": "public function getAttr()\n {\n }", "title": "" }, { "docid": "7d426a0dc92041875cfbd428fca48f58", "score": "0.57238245", "text": "function ncurses_slk_attrset($intarg) {}", "title": "" }, { "docid": "92db27f5a7874da6e5952bdca7368fd0", "score": "0.5671516", "text": "public function setAttribute($attr_name) {\n if (isset($this->_attr_arr[$attr_name])) {\n return $this->_attr_arr[$attr_name];\n } else {\n return $this->_attr_arr[$attr_name] = new Container();\n }\n }", "title": "" }, { "docid": "d5aabe243864397bde5e44954aa14743", "score": "0.56501335", "text": "public function wrapperAttributes()\r\n\t{\r\n\t\t$attr = $this->_v('html.attributes.wrapper', []);\r\n\t\t$attr['class'][] = 'zbase-ui-btngroup';\r\n\t\t$attr['class'][] = 'btn-group';\r\n\t\t$attr['role'][] = 'btn-group';\r\n\t\t$attr['aria-label'][] = $this->ariaLabel;\r\n\t\treturn $attr;\r\n\t}", "title": "" }, { "docid": "f86d72a2a82df297086ed7469aa9b500", "score": "0.5632804", "text": "public function getAttribute ($attribute) {}", "title": "" }, { "docid": "f86d72a2a82df297086ed7469aa9b500", "score": "0.5632452", "text": "public function getAttribute ($attribute) {}", "title": "" }, { "docid": "d70b1b9e72339922e7032b65898bc06e", "score": "0.5612098", "text": "function &getElementAttribute($name,$attr)\n\t{\n\t\treturn $this->setElementAttribute($name,$attr,NULL);\n\t}", "title": "" }, { "docid": "de549c71cc1bfbaa1744b1ba3bd44b5f", "score": "0.5595171", "text": "public function getAttributeHolder()\n {\n return $this->attributeHolder;\n }", "title": "" }, { "docid": "de549c71cc1bfbaa1744b1ba3bd44b5f", "score": "0.5595171", "text": "public function getAttributeHolder()\n {\n return $this->attributeHolder;\n }", "title": "" }, { "docid": "dac9b1797b4d089239ff514e0cd0fb1b", "score": "0.55637383", "text": "public function attr($name, $value);", "title": "" }, { "docid": "53126c6ab01a649b8f593229b68f2a8c", "score": "0.55477273", "text": "function &setElementAttribute($name,$attr,$val)\n\t{\n\t\t//echo \"<p>set_cell_attribute(tpl->name=$this->name, name='$name', attr='$attr',val='$val')</p>\\n\";\n\n\t\t$extra = array(false,$name,$attr,$val);\n\t\t$result =& $this->widget_tree_walk('set_cell_attribute_helper',$extra);\n\n\t\tif (is_null($val))\n\t\t{\n\t\t\treturn $result;\n\t\t}\n\t\treturn $extra[0];\n\t}", "title": "" }, { "docid": "4c6a92172fa8ca1d76338c9967e50f18", "score": "0.5511592", "text": "public function get_wrap()\r\n\t{\r\n\t\treturn $this->get_attr('wrap');\r\n\t}", "title": "" }, { "docid": "dce9b3361cb8a3774a061c82b66cbe40", "score": "0.5502641", "text": "public function getWrapperAttributes()\n {\n $attributes = [\n 'id' => $this->WrapperID,\n 'class' => $this->WrapperClass\n ];\n \n if ($this->Animate && $this->AnimationDuration) {\n $attributes['style'] = \"animation-duration: {$this->AnimationDuration}s\";\n }\n \n $this->extend('updateWrapperAttributes', $attributes);\n \n return $attributes;\n }", "title": "" }, { "docid": "550281388255cda4cd6f7a209212aa7c", "score": "0.54739", "text": "public function setAttribute ($attribute, $value) {}", "title": "" }, { "docid": "cafc720e3259d4478f1561cda4034a88", "score": "0.5456557", "text": "public function setAttributes( $attr ) {\n\t\tglobal $wgContLang, $wgUser, $egS5SlideHeadingMark, $egS5SlideIncMark,\n\t\t\t$egS5SlideCenterMark, $egS5DefaultStyle, $egS5Scaled;\n\t\t// Get attributes from tag content\n\t\tif (\n\t\t\tpreg_match_all(\n\t\t\t\t'/(?:^|\\n)\\s*;\\s*([^:\\s]*)\\s*:\\s*([^\\n]*)/is', $attr['content'], $m,\n\t\t\t\tPREG_SET_ORDER\n\t\t\t) > 0\n\t\t) {\n\t\t\tforeach ( $m as $set ) {\n\t\t\t\t$attr[$set[1]] = trim( $set[2] );\n\t\t\t}\n\t\t}\n\t\t// Default values\n\t\t$attr = $attr + [\n\t\t\t'title' => $this->sTitle->getText(),\n\t\t\t'subtitle' => '',\n\t\t\t'footer' => $this->sTitle->getText(),\n\t\t\t'headingmark' => $egS5SlideHeadingMark,\n\t\t\t'incmark' => $egS5SlideIncMark,\n\t\t\t'centermark' => $egS5SlideCenterMark,\n\t\t\t'style' => $egS5DefaultStyle,\n\t\t\t'font' => '',\n\t\t\t// Backwards compatibility: appended CSS\n\t\t\t'addcss' => '',\n\t\t\t// Is each slide to be scaled independently?\n\t\t\t'scaled' => $egS5Scaled,\n\t\t];\n\t\t// Boolean value\n\t\t$attr['scaled'] = strtoupper( $attr['scaled'] ) === 'TRUE'\n\t\t\t\t\t\t|| strtoupper( $attr['scaled'] ) === 'YES'\n\t\t\t\t\t\t|| intval( $attr['scaled'] ) === 1;\n\t\t// Default author = first revision's author\n\t\tif ( !isset( $attr['author'] ) ) {\n\t\t\t$rev = $this->sArticle->getOldestRevision();\n\t\t\tif ( $rev ) {\n\t\t\t\t$attr['author'] = User::newFromId( $rev->getUser() )->getRealName();\n\t\t\t} else {\n\t\t\t\t// Not saved yet\n\t\t\t\t$attr['author'] = $wgUser->getRealName();\n\t\t\t}\n\t\t}\n\t\t// Author and date in the subfooter by default\n\t\tif ( !isset( $attr['subfooter'] ) ) {\n\t\t\t$attr['subfooter'] = $attr['author'];\n\t\t\tif ( $attr['subfooter'] ) {\n\t\t\t\t$attr['subfooter'] .= ', ';\n\t\t\t}\n\t\t\t$attr['subfooter'] .= $wgContLang->timeanddate(\n\t\t\t\t$this->sArticle->getTimestamp(), true\n\t\t\t);\n\t\t} else {\n\t\t\t$attr['subfooter'] = str_ireplace(\n\t\t\t\t'{{date}}',\n\t\t\t\t$wgContLang->timeanddate( $this->sArticle->getTimestamp(), true ),\n\t\t\t\t$attr['subfooter']\n\t\t\t);\n\t\t}\n\t\t$this->attr = $attr + $this->attr;\n\t}", "title": "" }, { "docid": "f06fc1d1a606d4ae4bd88e16f732a9d3", "score": "0.5436261", "text": "public function getWrapperAttributesHTML()\n {\n return $this->getAttributesHTML($this->getWrapperAttributes());\n }", "title": "" }, { "docid": "1eb2581e9a5cdcd8e01edbbe3611290d", "score": "0.53958786", "text": "public function GetAttribute ()\r\n\t{\r\n\t\treturn $this->_attr;\r\n\t}", "title": "" }, { "docid": "5aad1d12941058fb5c0dbe05a3c4b132", "score": "0.5394463", "text": "public function setAttributeElement($attribute,$value){\n\t\treturn $this->setAttribute($attribute,$value,'_attributesElement');\n\t}", "title": "" }, { "docid": "49e2e9d4c1ff32d0612b34af48d59004", "score": "0.53720105", "text": "function attr($attr, $value = null) {\r\n\t\t$attr = strtolower($attr);\r\n\t\tif ($value !== null and $attr) $this->attr[$attr] = $value;\r\n\t\treturn $this->attr[$attr];\r\n\t}", "title": "" }, { "docid": "1a2ea744944b4ce4adfafb56e4d79e0f", "score": "0.53623176", "text": "function ncurses_slk_attrset($intarg)\n{\n}", "title": "" }, { "docid": "3b15c2f21d0b48c52a41a04346e23cb4", "score": "0.5330297", "text": "public function getAttributesElement(){\n\t\treturn $this->_attributesElement;\n\t}", "title": "" }, { "docid": "09400e7d68efdf2f10a053130ab657c9", "score": "0.5329778", "text": "function biagiotti_mikado_inline_attr( $value, $attr, $glue = '' ) {\n\t\techo biagiotti_mikado_get_inline_attr( $value, $attr, $glue );\n\t}", "title": "" }, { "docid": "6d811790f49ce15a59ee6fcf54444481", "score": "0.5319609", "text": "public function attrGet($attr) { return $this->stmt->attr_get($attr); }", "title": "" }, { "docid": "9a41aeddf751ad96a69e0aaf3ce12f88", "score": "0.52843887", "text": "public function attr($key = null, $value = null)\n\t{\n\t\treturn $this->markup($key, $value);\n\t}", "title": "" }, { "docid": "ae8638d28a3da550222d248fd58c1bc6", "score": "0.528304", "text": "public function get($attribute = null);", "title": "" }, { "docid": "4f3ca1ab9dda4330f42b1d33f3b7bc99", "score": "0.52788746", "text": "private function attribute()\n\t{\n\t\t// check value for constant\n\t\tpreg_match('/:?([\\w-]+?) *[ |:|=] *(.+)$/', $this->line, $m);\n\t\t$value = $this->parse_value($m[2]);\n\t\t\n\t\t# output line based on style.\n\t\tif('nested' == $this->style)\n\t\t\t$this->line = $this->indent . $m[1] . ': ' . $value . ';';\n\t\telseif('expanded' == $this->style)\n\t\t\t$this->line = ' ' . $m[1] . ': ' . $value . ';';\n\t\telse\n\t\t\t$this->line = $m[1] . ':' . $value . '; ';\t\t\n\n\t}", "title": "" }, { "docid": "1ac85bd8305c0dc54ed79a3bc96418d5", "score": "0.5267308", "text": "public function setAttr($attr) {\n\t\t$this->attr = $attr;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "954abc3f13b814aea272e80cedea4851", "score": "0.52605045", "text": "function setAttribute($attribute,$value) {\n $attributes[$attribute] = $value;\n return $this;\n }", "title": "" }, { "docid": "16056b4acfa23cfab09286fe09d4d4ab", "score": "0.5245963", "text": "public function getAttribute($attribute);", "title": "" }, { "docid": "16056b4acfa23cfab09286fe09d4d4ab", "score": "0.5245963", "text": "public function getAttribute($attribute);", "title": "" }, { "docid": "874a87aa25b91e69a1e73f7d57510323", "score": "0.52347463", "text": "function getStyleAttribute($tagname, $value = null) {\r\n\t\treturn $this->getAttributeNS(self :: STYLE, $tagname, $value);\r\n\t}", "title": "" }, { "docid": "0efc5d6ccaa40275bf31597a65925bac", "score": "0.52233064", "text": "public function __get( $name ) {\n\t\t\t// Check attributes first\n\t\t\tif ( $this->hasAttribute( $name ) ) {\n\t\t\t\treturn $this->getAttribute( $name );\n\t\t\t}\n\n\t\t\treturn parent::__get( $name );\n\t\t}", "title": "" }, { "docid": "633a545d4233e902d517ad9fcfc3b255", "score": "0.5210925", "text": "public static function getAttributeMutator()\n {\n return static::$attributeMutator;\n }", "title": "" }, { "docid": "1891c32db8f621dd2383102276600444", "score": "0.52090085", "text": "function get_attribute($name) {\r\n return $this->attributes[$name];\r\n }", "title": "" }, { "docid": "697c8cbec3e637f36d1185c8b3a79d3f", "score": "0.52068466", "text": "function ncurses_attron($attributes) {}", "title": "" }, { "docid": "1c0a28c7259634bc2a5b43ee9b295704", "score": "0.51809317", "text": "function numfmt_set_attribute($formatter, $attribute, $value) {}", "title": "" }, { "docid": "521affe9f593cd1677df2bbc89325c5b", "score": "0.5152703", "text": "public function __get($attribute)\n {\n return $this->getAttribute($attribute);\n }", "title": "" }, { "docid": "d02629b722efeb3689f6ddcf49d3af27", "score": "0.51498944", "text": "function getAttr($attrName){\n if(isset($this->data[$this->alias][$attrName])){\n return $this->data[$this->alias][$attrName];\n }else{\n return null;\n }\n }", "title": "" }, { "docid": "c712b00a743db9086a6f51d5acc8a825", "score": "0.5139939", "text": "public function attr() {\n\n\t\t\t\t$attr = fusion_builder_visibility_atts(\n\t\t\t\t\t$this->args['hide_on_mobile'],\n\t\t\t\t\t[\n\t\t\t\t\t\t'class' => 'fontawesome-icon ' . FusionBuilder::font_awesome_name_handler( $this->args['icon'] ) . ' circle-' . $this->args['circle'],\n\t\t\t\t\t]\n\t\t\t\t);\n\n\t\t\t\t$attr['style'] = '';\n\n\t\t\t\tif ( 'yes' === $this->args['circle'] ) {\n\n\t\t\t\t\tif ( $this->args['circlebordercolor'] ) {\n\t\t\t\t\t\t$attr['style'] .= 'border-color:' . $this->args['circlebordercolor'] . ';';\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( $this->args['circlecolor'] ) {\n\t\t\t\t\t\t$attr['style'] .= 'background-color:' . $this->args['circlecolor'] . ';';\n\t\t\t\t\t}\n\n\t\t\t\t\t$attr['style'] .= 'font-size:' . $this->args['circle_yes_font_size'] . 'px;';\n\n\t\t\t\t\t$attr['style'] .= 'line-height:' . $this->args['line_height'] . 'px;height:' . $this->args['line_height'] . 'px;width:' . $this->args['line_height'] . 'px;';\n\n\t\t\t\t} else {\n\t\t\t\t\t$attr['style'] .= 'font-size:' . $this->args['font_size'] . 'px;';\n\t\t\t\t}\n\n\t\t\t\t// Legacy icon, where no margin option was present: use the old default ,argin calcs.\n\t\t\t\tif ( $this->args['legacy_icon'] ) {\n\t\t\t\t\t$icon_margin = $this->args['font_size'] * 0.5;\n\n\t\t\t\t\tif ( 'left' === $this->args['alignment'] ) {\n\t\t\t\t\t\t$icon_margin_position = 'right';\n\t\t\t\t\t} elseif ( 'right' === $this->args['alignment'] ) {\n\t\t\t\t\t\t$icon_margin_position = 'left';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$icon_margin_position = ( is_rtl() ) ? 'left' : 'right';\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( 'center' !== $this->args['alignment'] ) {\n\t\t\t\t\t\t$attr['style'] .= 'margin-' . $icon_margin_position . ':' . $icon_margin . 'px;';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\t// New icon with dedicated margin option.\n\t\t\t\t\tif ( $this->args['margin_top'] ) {\n\t\t\t\t\t\t$attr['style'] .= 'margin-top:' . $this->args['margin_top'] . ';';\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( $this->args['margin_right'] ) {\n\t\t\t\t\t\t$attr['style'] .= 'margin-right:' . $this->args['margin_right'] . ';';\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( $this->args['margin_bottom'] ) {\n\t\t\t\t\t\t$attr['style'] .= 'margin-bottom:' . $this->args['margin_bottom'] . ';';\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( $this->args['margin_left'] ) {\n\t\t\t\t\t\t$attr['style'] .= 'margin-left:' . $this->args['margin_left'] . ';';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( $this->args['iconcolor'] ) {\n\t\t\t\t\t$attr['style'] .= 'color:' . $this->args['iconcolor'] . ';';\n\t\t\t\t}\n\n\t\t\t\tif ( $this->args['rotate'] ) {\n\t\t\t\t\t$attr['class'] .= ' fa-rotate-' . $this->args['rotate'];\n\t\t\t\t}\n\n\t\t\t\tif ( 'yes' === $this->args['spin'] ) {\n\t\t\t\t\t$attr['class'] .= ' fa-spin';\n\t\t\t\t}\n\n\t\t\t\tif ( $this->args['flip'] ) {\n\t\t\t\t\t$attr['class'] .= ' fa-flip-' . $this->args['flip'];\n\t\t\t\t}\n\n\t\t\t\tif ( $this->args['animation_type'] ) {\n\t\t\t\t\t$animations = FusionBuilder::animations(\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'type' => $this->args['animation_type'],\n\t\t\t\t\t\t\t'direction' => $this->args['animation_direction'],\n\t\t\t\t\t\t\t'speed' => $this->args['animation_speed'],\n\t\t\t\t\t\t\t'offset' => $this->args['animation_offset'],\n\t\t\t\t\t\t]\n\t\t\t\t\t);\n\n\t\t\t\t\t$attr = array_merge( $attr, $animations );\n\n\t\t\t\t\t$attr['class'] .= ' ' . $attr['animation_class'];\n\t\t\t\t\tunset( $attr['animation_class'] );\n\t\t\t\t}\n\n\t\t\t\tif ( $this->args['class'] ) {\n\t\t\t\t\t$attr['class'] .= ' ' . $this->args['class'];\n\t\t\t\t}\n\n\t\t\t\tif ( $this->args['id'] ) {\n\t\t\t\t\t$attr['id'] = $this->args['id'];\n\t\t\t\t}\n\n\t\t\t\treturn $attr;\n\n\t\t\t}", "title": "" }, { "docid": "1d83616e2eb5e41d5ce49a0e1910fa55", "score": "0.5132185", "text": "public function getAttr($name) {\n\t\t return $this->$name;\n\t }", "title": "" }, { "docid": "bcf3df82c3dfbcb768b6c809e8ae6185", "score": "0.51260144", "text": "public function getAttribute()\n {\n return $this->attribute;\n }", "title": "" }, { "docid": "bcf3df82c3dfbcb768b6c809e8ae6185", "score": "0.51260144", "text": "public function getAttribute()\n {\n return $this->attribute;\n }", "title": "" }, { "docid": "028529c23bc7af3c606b566c1c1f9433", "score": "0.512184", "text": "protected function setAttributes()\n {\n //get basic attributes\n $this->html .= parent::setAttributes();\n \n //getAttributes of button\n if (isset($this->attributes[\"maxlength\"])) {\n $this->html .= ' maxlength=\"' . $this->attributes[\"maxlength\"] . '\" ';\n }\n }", "title": "" }, { "docid": "8a96605e177389a0f31d9ce6fc5a3981", "score": "0.51115316", "text": "public function setAttribute($name, $value);", "title": "" }, { "docid": "34747953f5620c14ff5c6d8fb797d316", "score": "0.51022685", "text": "abstract public function attributes(): HtmlAttributeManager;", "title": "" }, { "docid": "b4df380c3671f2d0c4ff22523113a4d4", "score": "0.50752985", "text": "public function set($obj, $attribute);", "title": "" }, { "docid": "f9a948cfde1ffe3768226e5909422ce2", "score": "0.5073763", "text": "function ncurses_wattrset($window, $attrs) {}", "title": "" }, { "docid": "bab6847bce56a37e4e970f83e2a336d6", "score": "0.5069278", "text": "public function attr($key, $value = null) {\n $this->attributes[$key] = $value;\n return $this;\n }", "title": "" }, { "docid": "a35f0f75aade2d977be54300739a249b", "score": "0.5064027", "text": "public function setAttributeNode (DOMAttr $attr) {}", "title": "" }, { "docid": "045775332e6f1572a8aace891157f491", "score": "0.5061252", "text": "protected function takeAttributeFromDOM($attribute)\n {\n switch ($attribute->localName) {\n case 'primary':\n if(strtolower($attribute->nodeValue) == 'true')\n $this->_isPrimary = true;\n else\n $this->_isPrimary = false;\n break;\n\n case 'rel':\n $this->_addressType = $attribute->nodeValue;\n break;\n\n default:\n parent::takeAttributeFromDOM($attribute);\n }\n }", "title": "" }, { "docid": "6982d7e92718f50d3ddf20c8f1f743dc", "score": "0.5056655", "text": "function pieform_element_calendar_set_attributes($element) {/*{{{*/\n $element['jsroot'] = isset($element['jsroot']) ? $element['jsroot'] : '';\n $element['language'] = isset($element['language']) ? $element['language'] : 'en';\n $element['theme'] = isset($element['theme']) ? $element['theme'] : 'calendar-win2k-2';\n $element['caloptions']['ifFormat'] = isset($element['caloptions']['ifFormat']) ? $element['caloptions']['ifFormat'] : '%Y/%m/%d';\n $element['caloptions']['daFormat'] = isset($element['caloptions']['daFormat']) ? $element['caloptions']['daFormat'] : '%Y/%m/%d';\n return $element;\n}", "title": "" }, { "docid": "fbb5969e00fe9378929acb71620065bc", "score": "0.505626", "text": "function ncurses_slk_attron($intarg) {}", "title": "" }, { "docid": "f80566c784792ad9c53e255c88844759", "score": "0.5049277", "text": "public function _attr($element='this', $attributeName, $value=\"\", $immediatly=false) {\n\t\t$element=$this->_prep_element($element);\n\t\tif (isset($value)) {\n\t\t\t$value=$this->_prep_value($value);\n\t\t\t$str=\"$({$element}).attr(\\\"$attributeName\\\",{$value});\";\n\t\t} else\n\t\t\t$str=\"$({$element}).attr(\\\"$attributeName\\\");\";\n\t\tif ($immediatly)\n\t\t\t$this->jquery_code_for_compile[]=$str;\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "ef015f71dd7b5cf12dc08375753a9b63", "score": "0.50442743", "text": "public function attr($key, $value = null) {\n\t\tif(is_null($value)) {\n\t\t\tif(is_array($key)) return $this->setAttributes($key); \n\t\t\t\telse return $this->getAttribute($key); \n\t\t}\n\t\treturn $this->setAttribute($key, $value); \n\t}", "title": "" }, { "docid": "62aa5e750704ca82292fff254dc02da0", "score": "0.5028917", "text": "function numfmt_get_attribute($formatter, $attribute) {}", "title": "" }, { "docid": "017e75abdb86b1b6cde9c242cf90fb77", "score": "0.50223464", "text": "public function setAttribute($attribute,$value)\n\t{\n\t\tswitch(strtolower($attribute))\n\t\t{\n\t\t\tcase 'align'\t\t\t: $this->align = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'class'\t\t\t: $this->htmlclass = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'height'\t\t\t: $this->height = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'id'\t\t\t\t: $this->id = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onblur'\t\t\t: $this->onblur = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onchange'\t\t\t: $this->onchange = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onclick'\t\t\t: $this->onclick = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'ondblclick'\t\t: $this->ondblclick = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onfocus'\t\t\t: $this->onfocus = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onselect'\t\t\t: $this->onselect = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onkeydown'\t\t: $this->onkeydown = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onkeypress'\t\t: $this->onkeypress = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onkeyup'\t\t\t: $this->onkeyup = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onmousedown'\t\t: $this->onmousedown = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onmousemove'\t\t: $this->onmousemove = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onmouseout'\t\t: $this->onmouseout = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onmouseover'\t\t: $this->onmouseover = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'onmouseup'\t\t: $this->onmouseup = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'style'\t\t\t: $this->style = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'width'\t\t\t: $this->width = $value;\n\t\t\t\tbreak;\n\t\t}//eof switch\n\t}", "title": "" }, { "docid": "1069216241e70a681404cdcb66569988", "score": "0.5020327", "text": "public function get_wrap_tag() {\n\t\treturn $this->wrap_tag;\n\t}", "title": "" }, { "docid": "db4d8c33efbc2838487a184062564409", "score": "0.50195366", "text": "public function setElStat($value = NULL)\n\t{\n\t\tif (NULL !== $value) {\n\t\t $this->elStat = $value;\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "ddc1e85f29639210e2121233789a668e", "score": "0.50131005", "text": "public function attribute( $name )\n {\n switch ( $name )\n {\n case 'content':\n {\n $result = $this->Content;\n } break;\n\n case 'header':\n {\n $result = $this->Header;\n } break;\n\n default:\n {\n eZDebug::writeError( \"Attribute '$name' does not exist\", __METHOD__ );\n } break;\n }\n\n return $result;\n }", "title": "" }, { "docid": "3658932804363e4d2eb08c2f1adea7e9", "score": "0.5012167", "text": "private function get_html_named_attr() {\n\t\t$attr = array();\n\t\tif($this->data) {\n\t\t\tforeach ($this->data as $name => $value) {\n\t\t\t\t$attr[] = 'data-' . $name . '=\"' . $value . '\"';\n\t\t\t}\n\t\t}\n\t\treturn $attr;\n\t}", "title": "" }, { "docid": "0cdfe4087efc0f4fd4c5cdcd24ce7664", "score": "0.5007708", "text": "public function getAttribute ($name) {}", "title": "" }, { "docid": "0cdfe4087efc0f4fd4c5cdcd24ce7664", "score": "0.5007708", "text": "public function getAttribute ($name) {}", "title": "" }, { "docid": "57bb860e221851cf47f06cf3504a9d42", "score": "0.5004407", "text": "public function setAttributeNode(DOMAttr $attr) {}", "title": "" }, { "docid": "da20650167f8d2c689db35744c73a244", "score": "0.49871525", "text": "public function getAttribute($att='')\n\t{\n\t\t//if attribute not given, return all\n\t\tif($att=='')\n\t\t{\n\t\t\tif(isset($this->align))\n\t\t\t\t$value.=' align=\"'.$this->align.'\"';\n\t\t\t\t\t\n\t\t\tif(isset($this->htmlclass))\n\t\t\t\t$value.=' class=\"'.$this->htmlclass.'\"';\n\t\t\t\t\t\t\n\t\t\tif(isset($this->height))\n\t\t\t\t$value.=' height=\"'.$this->height.'\"';\n\t\t\t\t\t\t\t\n\t\t\tif(isset($this->id))\n\t\t\t\t$value.=' id=\"'.$this->id.'\"';\n\t\t\t\t\t\t\t\n\t\t\tif(isset($this->onblur))\n\t\t\t\t$value.=' onblur=\"'.$this->onblur.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onchange))\n\t\t\t\t$value.=' onchange=\"'.$this->onchange.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onclick))\n\t\t\t\t$value.=' onclick=\"'.$this->onclick.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->ondblclick))\n\t\t\t\t$value.=' ondblclick=\"'.$this->ondblclick.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onfocus))\n\t\t\t\t$value.=' onfocus=\"'.$this->onfocus.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onselect))\n\t\t\t\t$value.=' onselect=\"'.$this->onselect.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onkeydown))\n\t\t\t\t$value.=' onkeydown=\"'.$this->onkeydown.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onkeypress))\n\t\t\t\t$value.=' onkeypress=\"'.$this->onkeypress.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onkeyup))\n\t\t\t\t$value.=' onkeyup=\"'.$this->onkeyup.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onmousedown))\n\t\t\t\t$value.=' onmousedown=\"'.$this->onmousedown.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onmousemove))\n\t\t\t\t$value.=' onmousemove=\"'.$this->onmousemove.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onmouseout))\n\t\t\t\t$value.=' onmouseout=\"'.$this->onmouseout.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onmouseover))\n\t\t\t\t$value.=' onmouseover=\"'.$this->onmouseover.'\"';\n\t\t\t\t\n\t\t\tif(isset($this->onmouseup))\n\t\t\t\t$value.=' onmouseup=\"'.$this->onmouseup.'\"';\n\t\t\t\t\t\t\n\t\t\tif(isset($this->style))\n\t\t\t\t$value.=' style=\"'.$this->style.'\"';\n\t\t\t\t\t\t\n\t\t\tif(isset($this->width))\n\t\t\t\t$value.=' width=\"'.$this->width.'\"';\t\n\t\t}//eof if\t\t\t\t\n\t\t//else, return by attribute given\n\t\telse\n\t\t{\n\t\t\t//switch / select attribute type\n\t\t\tswitch(strtolower($att))\n\t\t\t{\n\t\t\t\tcase 'align'\t\t: $value=$this->align;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'class'\t\t: $value=$this->htmlclass;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'height'\t\t: $value=$this->height;\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'id'\t\t\t: $value=$this->id;\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'onblur'\t\t: $value=$this->onblur;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onchange'\t\t: $value=$this->onchange;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onclick'\t\t: $value=$this->onclick;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ondblclick'\t: $value=$this->ondblclick;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onfocus'\t\t: $value=$this->onfocus;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onselect'\t\t: $value=$this->onselect;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onkeydown'\t: $value=$this->onkeydown;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onkeypress'\t: $value=$this->onkeypress;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onkeyup'\t\t: $value=$this->onkeyup;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onmousedown'\t: $value=$this->onmousedown;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onmousemove'\t: $value=$this->onmousemove;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onmouseout'\t: $value=$this->onmouseout;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onmouseover'\t: $value=$this->onmouseover;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'onmouseup'\t: $value=$this->onmouseup;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'style'\t\t: $value=$this->style;\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'width'\t\t: $value=$this->width;\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t}//eof switch\n\t\t}//eof else\n\t\t\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "e8081621d2595dbbc04a625c143db6e5", "score": "0.4985623", "text": "public function getAltAttributeAttribute($value)\n {\n return $value;\n }", "title": "" }, { "docid": "ba9b77c2e5f6a102e84370d911eb8e6e", "score": "0.49833724", "text": "public function setAttribute(string $name, $value);", "title": "" }, { "docid": "485a3ab9c7b5bf8bcfd453d6047d9c19", "score": "0.49771097", "text": "public function buildAttributeGroupElement(): void;", "title": "" }, { "docid": "d5cbf381207ff7f623bc92c2f0e4313f", "score": "0.4976963", "text": "public function get($attr) {\r\n\t\treturn $this->$attr;\r\n\t}", "title": "" }, { "docid": "cb325435c76a247bbdf903e5d92f16c8", "score": "0.49694762", "text": "public function getAttribs() {\n\n if ($this->_attribs == NULL) {\n $registry = new JRegistry($this->_folder->attribs);\n $this->_attribs = $registry;\n }\n\n return $this->_attribs;\n }", "title": "" }, { "docid": "65fa4946326fc9deb3ac8899cf1db705", "score": "0.49645022", "text": "function option_attr(string $option_id): string\n{\n $attr = [\n 'value' => $option_id\n ];\n\n return html_attr($attr);\n}", "title": "" }, { "docid": "d714ba001e168ce028ed3cca8271fe1d", "score": "0.4950691", "text": "function getDrawAttribute($tagname, $value = null) {\r\n\t\treturn $this->getAttributeNS(self :: DRAW, $tagname, $value);\r\n\t}", "title": "" }, { "docid": "6639e0917ceb4b41b9f1a22661eaf178", "score": "0.4947906", "text": "public function getAttrId()\n {\n return $this->attr_id;\n }", "title": "" }, { "docid": "d870eb11b26962dfaaa1664b5c5639e9", "score": "0.49393412", "text": "public function buildAnyAttributeElement(): void;", "title": "" }, { "docid": "97498455468f60ddaac115c8ab18d109", "score": "0.49386743", "text": "public function grabAttributeFrom($cssOrXpath, $attribute) {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Action('grabAttributeFrom', func_get_args()));\n }", "title": "" }, { "docid": "97498455468f60ddaac115c8ab18d109", "score": "0.49386743", "text": "public function grabAttributeFrom($cssOrXpath, $attribute) {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Action('grabAttributeFrom', func_get_args()));\n }", "title": "" }, { "docid": "a35fd816cb665c643e37e351956a4004", "score": "0.49344158", "text": "public function set($attribute, $value);", "title": "" }, { "docid": "b99cd52deb89306848718c940907d0dc", "score": "0.49340943", "text": "function wydra_attr($code, $default = null)\n{\n return Wydra::latest()->attr($code, $default);\n}", "title": "" }, { "docid": "6cb7c2254d88c1438c5539a97f052e26", "score": "0.49323106", "text": "public function getAttribute(): ?ArgumentInterface\n {\n return $this->attribute;\n }", "title": "" }, { "docid": "3bde803dc8821f065150fa763bf82f7d", "score": "0.49321082", "text": "public function setAttribute($key, $value);", "title": "" }, { "docid": "3bde803dc8821f065150fa763bf82f7d", "score": "0.49321082", "text": "public function setAttribute($key, $value);", "title": "" }, { "docid": "6adf0deef2f1c73df3d958a88514f4bf", "score": "0.49173757", "text": "public function setAttributes($val)\n {\n $this->_propDict[\"attributes\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "135c39b68f896d1c1b5d19120ffe9e83", "score": "0.49172124", "text": "public function set_wrap($value)\r\n\t{\r\n\t\treturn $this->set_attr('wrap', $value);\r\n\t}", "title": "" }, { "docid": "27a67eaecb2f9ecf6f1e05794e110c4d", "score": "0.49157688", "text": "public function getElementAttribs()\n {\n if (null === ($element = $this->getElement())) {\n return null;\n }\n\n $attribs = $element->getAttribs();\n if (isset($attribs['helper'])) {\n unset($attribs['helper']);\n }\n\n return $attribs;\n }", "title": "" }, { "docid": "9f24904808518ba7becb01543cb5cc87", "score": "0.49141434", "text": "public function getAttribs() {\n $attribs = parent::getAttribs();\n $name = $this->getBelongsTo();\n if ($name) {\n $attribs['name'] = $name . '[' . $this->getName() . ']';\n }\n if (!isset($attribs['id'])) {\n $attribs['id'] = $this->getId();\n }\n if (!$attribs['name']) {\n $attribs['name'] = $id;\n }\n $attribs['caption'] = $this->getLabel();\n #$attribs['value'] = (string) $this->getValue();\n $attribs['value'] = $this->getValue();\n $attribs['belongsTo'] = $this->getBelongsTo();\n if (!$attribs['required']) {\n unset($attribs['required']);\n }\n return $attribs;\n }", "title": "" }, { "docid": "c5fc8311cc5110434dd8e6edfcbfac90", "score": "0.49125165", "text": "function setAttribute($xPathQuery, $name, $value, $overwrite=TRUE) {\n return $this->setAttributes($xPathQuery, array($name => $value), $overwrite);\n }", "title": "" }, { "docid": "e61d43486b5760a5da27a1efe8b3e968", "score": "0.49094245", "text": "public function GetAttributes() {\n\t\treturn [\n\t\t\t'id' => $this->element->GetName().'_tree',\n\t\t\t'class' => implode(' ', $this->getCSS())\n\t\t];\n\t}", "title": "" }, { "docid": "9f05bbe3359bf5ef7f675d0b6771b25d", "score": "0.49072334", "text": "public function attr($attributeName) {\n return $this->element->getAttribute($attributeName);\n }", "title": "" }, { "docid": "391771b182d0c1eb3dd543e24622d6f7", "score": "0.490259", "text": "public function attrSet($attr, $mode) {\n\t\treturn $this->stmt->attr_set($attr, $mode);\n\t}", "title": "" }, { "docid": "2f42f0b7cbf7b17a767d9bb74ddf80bf", "score": "0.49002513", "text": "function soliloquy_lightbox_attr( $attr, $id, $item, $data, $i ) {\n\n // If there is no lightbox, don't output anything.\n $instance = Soliloquy_Shortcode::get_instance();\n if ( ! $instance->get_config( 'lightbox', $data ) ) {\n return $attr;\n }\n\n // If the item has chosen not to enable the lightbox, pass over it.\n if ( isset( $item['lightbox_enable'] ) && ! $item['lightbox_enable'] ) {\n return $attr;\n }\n\n // Add in the rel attribute for the lightbox.\n $attr .= ' rel=\"soliloquybox' . sanitize_html_class( $data['id'] ) . '\"';\n\n // If we have a title, add in the caption for the lightbox.\n if ( ! empty( $item['caption'] ) ) {\n $attr .= ' data-soliloquy-lightbox-caption=\"' . esc_html( do_shortcode( $item['caption'] ) ) . '\"';\n }\n\n // If we have thumbnails, add in the thumbnail attribute as well.\n if ( $instance->get_config( 'lightbox_thumbs', $data ) ) {\n if ( ! empty( $item['lb_thumb'] ) ) {\n $attr .= ' data-thumbnail=\"' . esc_url( $item['lb_thumb'] ) . '\"';\n }\n }\n\n // If a video, make the helper an iframe for third party videos, and html for local videos\n if ( isset( $item['type'] ) && 'video' == $item['type'] ) {\n $url = $instance->get_video_data( $id, $item, $data, 'url' );\n $vid_type = $instance->get_video_data( $id, $item, $data, 'type' );\n switch ( $vid_type ) {\n case 'local':\n $attr .= ' data-soliloquybox-type=\"html\" data-soliloquybox-href=\"' . esc_url( $url ) . '\"';\n break;\n\n default:\n $attr .= ' data-soliloquybox-type=\"iframe\" data-soliloquybox-href=\"' . esc_url( $url ) . '\"';\n break;\n }\n }\n\n // If an HTML slide, make the helper inline.\n if ( isset( $item['type'] ) && 'html' == $item['type'] ) {\n $attr .= ' data-soliloquybox-type=\"inline\"';\n }\n\n return apply_filters( 'soliloquy_lightbox_attr', $attr, $id, $item, $data, $i );\n\n}", "title": "" }, { "docid": "f2b864b311dfe97efccabba06147ccb3", "score": "0.48953587", "text": "protected function _getAttributeRenderer()\n {\n if (!$this->_attributeRenderer) {\n $this->_attributeRenderer = $this->getLayout()->createBlock(\n 'factfinder/adminhtml_form_field_attribute', '',\n array('is_render_to_js_template' => true)\n );\n $this->_attributeRenderer->setClass('attribute_select');\n $this->_attributeRenderer->setExtraParams('style=\"width:200px\"');\n }\n\n return $this->_attributeRenderer;\n }", "title": "" }, { "docid": "71a53f168595254bf4b713d5e3b4751a", "score": "0.48886096", "text": "public function set_attr($key, $val = nil, $append = FALSE) {\n\t\tif (is_array($key)) {\n\t\t\t// Merge the new attributes with the old ones\n\t\t\t$this->attr = array_merge($this->attr, $key);\n\t\t} else {\n\t\t\tif($key == 'class' && $append) {\n\t\t\t\t$this->attr[$key] .= ' '.$val;\n\t\t\t} else {\n\t\t\t\t// Set the new attribute\n\t\t\t\t$this->attr[$key] = $val;\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "acf63c5fa7a819025a8a6b804dffe834", "score": "0.48842722", "text": "function ncurses_slk_attr() {}", "title": "" }, { "docid": "2ee38ae27983d07699bb1b6776120f5b", "score": "0.4883183", "text": "public function setAttribute($attribute)\n {\n parent::setAttribute($attribute);\n $this->setScope($attribute);\n return $this;\n }", "title": "" }, { "docid": "7e8b3b8b7e1bed1f64a70c2d4088b5eb", "score": "0.4880863", "text": "protected function attrs($ele) {\n if (!$ele->hasAttributes()) {\n return $this;\n }\n\n // TODO: Currently, this always writes name=\"value\", and does not do\n // value-less attributes.\n $map = $ele->attributes;\n $len = $map->length;\n for ($i = 0; $i < $len; ++$i) {\n $node = $map->item($i);\n $val = $this->enc($node->value);\n\n // XXX: The spec says that we need to ensure that anything in\n // the XML, XMLNS, or XLink NS's should use the canonical\n // prefix. It seems that DOM does this for us already, but there\n // may be exceptions.\n $this->wr(' ')->wr($node->name)->wr('=\"')->wr($val)->wr('\"');\n }\n }", "title": "" } ]
4129a25bb396a38037555fa2b3e705d9
Sets a new requiredSellerActionArray Container consisting of one or more RequiredSellerAction fields. RequiredSellerAction fields provide possible actions that a seller can take to expedite the release of funds into their account.
[ { "docid": "e348e03fa8a2ca53bcbcd3f1c2d55149", "score": "0.85368836", "text": "public function setRequiredSellerActionArray(array $requiredSellerActionArray)\n {\n $this->requiredSellerActionArray = $requiredSellerActionArray;\n return $this;\n }", "title": "" } ]
[ { "docid": "02603b74644ca264e789471ce9909d76", "score": "0.8122805", "text": "public function addToRequiredSellerActionArray($requiredSellerAction)\n {\n $this->requiredSellerActionArray[] = $requiredSellerAction;\n return $this;\n }", "title": "" }, { "docid": "18f4bb041387d7262af0c76b2de4a92a", "score": "0.73689944", "text": "public function getRequiredSellerActionArray()\n {\n return $this->requiredSellerActionArray;\n }", "title": "" }, { "docid": "2f0b270c20fe3d34e1323afca13d742b", "score": "0.5608583", "text": "public function issetRequiredSellerActionArray($index)\n {\n return isset($this->requiredSellerActionArray[$index]);\n }", "title": "" }, { "docid": "abe7d34fdc2f7c10746342723e9a0f38", "score": "0.5599376", "text": "public function unsetRequiredSellerActionArray($index)\n {\n unset($this->requiredSellerActionArray[$index]);\n }", "title": "" }, { "docid": "6381b5365fb37b1f968b78d6661a8d61", "score": "0.50764745", "text": "public function setNumOfReqSellerActions($numOfReqSellerActions)\n {\n $this->numOfReqSellerActions = $numOfReqSellerActions;\n return $this;\n }", "title": "" }, { "docid": "fd95ed86251054081640a269246f5344", "score": "0.4852031", "text": "public function addToActions($actionArray)\n {\n $this->_actions[] = $actionArray;\n }", "title": "" }, { "docid": "9ad8d05d3d54c743091c255087a5ae59", "score": "0.47918302", "text": "public function setAction(array $action) {\n $this->action = $action;\n\n return $this;\n }", "title": "" }, { "docid": "b6bc7a85df433d978c1053a931d7f40e", "score": "0.478885", "text": "public function getNumOfReqSellerActions()\n {\n return $this->numOfReqSellerActions;\n }", "title": "" }, { "docid": "fe63c39e7fdb0e99116a916e9bc48078", "score": "0.45059338", "text": "public function __construct(Seller $seller)\n {\n $this->seller = $seller;\n }", "title": "" }, { "docid": "06a8dc882256bc306bdfc7ee22ad743c", "score": "0.44953778", "text": "public function reject_sellerAction()\r\n {\r\n ini_set('memory_limit', '-1');\r\n //Step# 1\r\n\r\n $id = $this->getRequest()->getParam('id');\r\n $path = $this->getRequest()->getParam('path');\r\n $ref = $this->getRequest()->getParam(\"ref\");\r\n $order_id = $this->getRequest()->getParam('order_id');\r\n $product_id = $this->getRequest()->getParam('product_id');\r\n $productsNeedConfirmation = [];\r\n $rejectedProducts = [];\r\n $model = null;\r\n \r\n //end\r\n\r\n if ($id >= 0) {\r\n try {\r\n\r\n //Step# 2\r\n //getting collection for marketplace\r\n $collection = Mage::getResourceModel('marketplace/commission_collection');\r\n\r\n /*checking if marketplace id yet not visible on extended order itrm grid like\r\n when order is placed through admin\r\n */\r\n if ($id == 0) {\r\n $collection->addFieldToFilter('product_id', $product_id)\r\n ->addFieldToFilter('order_id', $order_id);\r\n $model = $collection->getFirstItem();\r\n } else {\r\n $model = Mage::getModel('marketplace/commission')->load($id);\r\n }\r\n //end\r\n\r\n //Step# 3\r\n\r\n if ($model->getIsBuyerConfirmation() == 'No') {\r\n $errorMsg = Mage::helper('marketplace')->__('Please take action on buyer request first in order to reject seller');\r\n Mage::getSingleton('adminhtml/session')->addError($errorMsg);\r\n } else {\r\n $currentDateTime = date('Y-m-d H:i:s');\r\n $model->setIsSellerConfirmation('Rejected')\r\n ->setItemOrderStatus('rejected_seller')\r\n ->setIsSellerConfirmationDate($currentDateTime)\r\n ->save();\r\n //end\r\n\r\n //Step# 4\r\n $order_id = $model->getOrderId();\r\n // Add seller product rejection comment to order\r\n $order = Mage::getModel('sales/order')->load($order_id);\r\n // using product model for adding product sku in comment\r\n $product = Mage::getModel('catalog/product')\r\n ->getCollection()\r\n ->addAttributeToSelect('sku')\r\n ->addAttributeToFilter('entity_id',$model->getProductId())->getFirstItem();\r\n if ($ref == \"cs\") {\r\n $comment =\r\n \"Order Item having SKU '{$product->getSku()}' is <strong>rejected</strong> on behalf of <strong>Marchant/Seller</strong> via Call Center\";\r\n } else {\r\n $comment =\r\n \"Order Item having SKU '{$product->getSku()}' is <strong>rejected</strong> by seller\";\r\n }\r\n\r\n $order->addStatusHistoryComment($comment, $order->getStatus())\r\n ->setIsVisibleOnFront(0)\r\n ->setIsCustomerNotified(0);\r\n $order->save();\r\n //end\r\n\r\n //Step# 5 \r\n //adding failed delivery status checking if all order items are rejected or cancelled\r\n $check_rejected = $this->getProductReject($order_id);\r\n $product_id = $model->getProductId();\r\n if ($check_rejected == \"true_seller\") {\r\n $order_sales = Mage::getModel('sales/order')->load($order_id);\r\n Mage::helper('progos_ordersedit')->getFailedDeliveryStatus($order_sales);\r\n }\r\n //cancelling the quantity of item removed\r\n Mage::getSingleton('marketplace/order')->deleteOrderItem($order_id, $product_id, $check_rejected);\r\n\r\n //sending email to suppliers@elabelz.com when an item is rejected\r\n Mage::helper('marketplace/vieworder')->getSellerRejectedData($product->getSku(), $model->getSellerId(), $order->getIncrementId(),'admin');\r\n\r\n //send email to kustomer on an order item reject @RT\r\n if (Mage::helper('progos_infotrust')->isEnableSellerItemRejectEmailAdmin()) {\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('OrderId: '. $order->getIncrementId(), null, 'jsonld.log');\r\n Mage::log('inside reject_sellerAction seller item reject', null, 'jsonld.log');\r\n }\r\n //send email to Kustomer for each item reject\r\n $itemRejectJsonld = Mage::helper('progos_infotrust')->getSellerItemRejectEmailJsonld($order, ['product_sku' => $product->getSku(), 'seller_id' => $model->getSellerId()]);\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('get Jsonld', null, 'jsonld.log');\r\n }\r\n //send email to kustomer hook\r\n Mage::helper('progos_infotrust')->zendSend($itemRejectJsonld, $order, 'Order Item Reject Notification. Order#'. $order->getIncrementId(), 'Admin Seller item reject for order #'. $order->getIncrementId());\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('after reject_sellerAction seller item reject', null, 'jsonld.log');\r\n }\r\n }\r\n //end\r\n if(Mage::helper('marketplace/vieworder')->isAllItemsConfirmedFromBuyer($order_id) && Mage::helper('marketplace/vieworder')->isAllItemsConfirmedFromSeller($order_id) && $check_rejected != \"true_seller\"){\r\n $order = Mage::getModel('sales/order')->load($order_id);\r\n // Set 'Confirmed' order status\r\n Mage::helper('orderstatuses')->setOrderStatusConfirmed($order);\r\n\r\n //send email even if one item in order accepted by seller(s)\r\n //prepare data for jsonld @RT\r\n if (Mage::helper('progos_infotrust')->isEnableSellerCancelEmail()) {\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('OrderId: '. $order->getIncrementId(), null, 'jsonld.log');\r\n Mage::log('inside reject_sellerAction seller accept', null, 'jsonld.log');\r\n }\r\n //prepare json ld\r\n $jsonld = Mage::helper('progos_infotrust')->getSellerAcceptEmailJsonld($order);\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('get Jsonld', null, 'jsonld.log');\r\n }\r\n //send email to kustomer hook\r\n Mage::helper('progos_infotrust')->zendSend($jsonld, $order, 'Order Accept Notification #'. $order->getIncrementId(), 'Seller item accept for order #'. $order->getIncrementId());\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('after reject_sellerAction seller accept', null, 'jsonld.log');\r\n }\r\n }\r\n\r\n }\r\n //Step# 6\r\n //if all items are approved by seller\r\n $rejected = $this->getProductConfirmSellerRejected($order_id,$model->getSellerId());\r\n if($rejected){\r\n //checking if rejected items are rejected by seller only\r\n $rejected_items = Mage::helper('marketplace/vieworder')->allProductsSellerRejected($order_id);\r\n if(!empty($rejected_items)){\r\n $totalRejectedItems = count($rejected_items);\r\n if($totalRejectedItems >=1){\r\n //sending email\r\n Mage::helper('marketplace/vieworder')->cancelOrderItemEmail($rejected_items);\r\n }\r\n }\r\n }\r\n //end#\r\n $successMsg = Mage::helper('marketplace')->__('Order Rejected by Seller');\r\n Mage::getSingleton('adminhtml/session')->addSuccess($successMsg);\r\n }\r\n } catch (Exception $e) {\r\n Mage::log($e->getMessage(), null, 'jsonld.log');\r\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\r\n }\r\n\r\n //Step# 7\r\n if ($path == \"sale_order\") {\r\n if ($ref == \"cs\") {\r\n $this->_redirect('adminhtml/sales_order/view', array('order_id' => $order_id, 'ref' => $ref));\r\n } else {\r\n $this->_redirect('adminhtml/sales_order/view', array('order_id' => $order_id));\r\n }\r\n } elseif ($path == \"unconfirmed_from_buyer\") {\r\n $this->_redirect('*/adminhtml_unconfirmedfrombuyer');\r\n } elseif ($path == \"unconfirmed_from_seller\") {\r\n $this->_redirect('*/adminhtml_unconfirmedfromseller');\r\n } elseif ($path == \"all_orders\") {\r\n $this->_redirect('*/adminhtml_orderitemsall');\r\n } elseif ($path == \"logistics_master\") {\r\n $successMsg = Mage::helper('marketplace')->__('Order Rejected by Buyer');\r\n } else {\r\n $this->_redirect('*/*/');\r\n }\r\n //end\r\n }\r\n }", "title": "" }, { "docid": "46c4ce5e6e59c628c4b16a1362dfed7e", "score": "0.444763", "text": "function set_actions($arr)\n\t{\n\t\tif (empty($arr))\n\t\t\t$arr = array();\t\t\n\t\t\t\n\t\tif (empty($this->actions))\n\t\t\t$this->actions = array();\n\t\t\t\n\t\t// for add_option array\n\t\tforeach($arr as $k=>$v)\n\t\t\tif (is_array($v))\n\t\t\t{\n\t\t\t\tif (!isset($this->actions[$k]))\n\t\t\t\t\t$this->actions[$k] = array();\n\t\t\t\t\t\n\t\t\t\t$arr[$k] = array_merge($arr[$k],$this->actions[$k]);\n\t\t\t}\t\t\n\t\t\t\n\t\t$this->actions = array_merge($this->actions,$arr);\n\t}", "title": "" }, { "docid": "e80a0002938dc77aff37868275596d0f", "score": "0.44235122", "text": "protected function setRequiredFields()\n {\n $requiredFields = [\n 'card_number',\n 'transaction_amount',\n 'transaction_currency'\n ];\n\n $requiredFieldsValues = [\n 'transaction_currency' => Currency::getList(),\n 'card_number' => $this->getCardNumberValidator()\n ];\n\n $this->requiredFieldValues = Common::createArrayObject($requiredFieldsValues);\n\n $this->requiredFields = Common::createArrayObject($requiredFields);\n }", "title": "" }, { "docid": "284b81ace8ac07c166f41c0278ad1a18", "score": "0.43324545", "text": "public function setOrder($action, $settings = array(), $ship_address = array(), $parcel_data = array(), $parcel_shop_id = 0) {\n $settings += $this->defaultOrderSettings();\n $ship_address += $this->defaultShipAddress();\n $parcel_data += $this->defaultParcelData();\n $order_data = array(\n 'OrderAction' => $action,\n 'OrderSettings' => $settings,\n 'OrderDataList' => array(\n array(\n 'ShipAddress' => $ship_address,\n 'ParcelShopID' => $parcel_shop_id,\n 'ParcelData' => $parcel_data,\n ),\n ),\n );\n\n $response = $this->MakeRequest('setOrder', $order_data, 'POST');\n\n return $response;\n }", "title": "" }, { "docid": "cbb7e95147d85a93256d1194b2f00818", "score": "0.43321586", "text": "public function confirm_sellerAction()\r\n {\r\n ini_set('memory_limit', '-1');\r\n //Step# 1\r\n $id = $this->getRequest()->getParam('id');\r\n $ref = $this->getRequest()->getParam(\"ref\");\r\n $path = $this->getRequest()->getParam('path');\r\n $order_id = $this->getRequest()->getParam('order_id');\r\n $product_id = $this->getRequest()->getParam('product_id');\r\n $productsNeedConfirmation = [];\r\n $rejectedProducts = [];\r\n $model = null;\r\n //end\r\n if ($id >= 0) {\r\n try {\r\n \r\n //Step# 2\r\n //getting collection for marketplace\r\n $collection = Mage::getResourceModel('marketplace/commission_collection');\r\n /*checking if marketplace id yet not visible on extended order itrm grid like\r\n when order is placed through admin\r\n */\r\n if ($id == 0) {\r\n $collection->addFieldToFilter('product_id', $product_id)\r\n ->addFieldToFilter('order_id', $order_id);\r\n $model = $collection->getFirstItem();\r\n } else {\r\n $model = Mage::getModel('marketplace/commission')->load($id);\r\n }\r\n //end\r\n //Step# 3\r\n // check before buyer confirmation seller need to be confirmed\r\n if ($model->getIsBuyerConfirmation() == 'No') {\r\n $errorMsg = Mage::helper('marketplace')\r\n ->__('Please take action on buyer request first in order to confirm seller');\r\n Mage::getSingleton('adminhtml/session')->addError($errorMsg);\r\n } else {\r\n $currentDateTime = date('Y-m-d H:i:s');\r\n $model->setIsSellerConfirmationDate($currentDateTime)\r\n ->setIsSellerConfirmation('Yes')\r\n ->setItemOrderStatus('ready')\r\n ->save();\r\n //end\r\n //Step# 4\r\n // Add seller product confirmation comment to order\r\n $order_id = $model->getOrderId();\r\n //using order model to save comment in order\r\n $order = Mage::getModel('sales/order')->load($order_id);\r\n //using product model as we are getting product sku through it in comment \r\n $product = Mage::getModel('catalog/product')\r\n ->getCollection()\r\n ->addAttributeToSelect('sku')\r\n ->addAttributeToFilter('entity_id',$model->getProductId())->getFirstItem();\r\n if ($ref == \"cs\") {\r\n $comment =\r\n \"Order Item having SKU '{$product->getSku()}' is <strong>accepted</strong> on behalf of <strong>Marchant/Seller</strong> via Call Center\";\r\n } else {\r\n $comment =\r\n \"Order Item having SKU '{$product->getSku()}' is <strong>accepted</strong> by seller\";\r\n }\r\n $order->addStatusHistoryComment($comment, $order->getStatus())\r\n ->setIsVisibleOnFront(0)\r\n ->setIsCustomerNotified(0);\r\n $order->save();\r\n //end\r\n $successMsg = Mage::helper('marketplace')->__('Order Confirmed from Seller');\r\n Mage::getSingleton('adminhtml/session')->addSuccess($successMsg);\r\n }\r\n } catch (Exception $e) {\r\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\r\n }\r\n\r\n\r\n if(Mage::helper('marketplace/vieworder')->isAllItemsConfirmedFromBuyer($order_id) && Mage::helper('marketplace/vieworder')->isAllItemsConfirmedFromSeller($order_id)){\r\n $order = Mage::getModel('sales/order')->load($order_id);\r\n // Set 'Confirmed' order status\r\n Mage::helper('orderstatuses')->setOrderStatusConfirmed($order);\r\n\r\n //send email even if one item in order accepted by seller(s)\r\n //prepare data for jsonld @RT\r\n if (Mage::helper('progos_infotrust')->isEnableSellerCancelEmail()) {\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('OrderId: '. $order->getIncrementId(), null, 'jsonld.log');\r\n Mage::log('inside confirm_sellerAction confirm seller accept', null, 'jsonld.log');\r\n }\r\n //prepare json ld\r\n $jsonld = Mage::helper('progos_infotrust')->getSellerAcceptEmailJsonld($order);\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('get Jsonld', null, 'jsonld.log');\r\n }\r\n //send email to kustomer hook\r\n Mage::helper('progos_infotrust')->zendSend($jsonld, $order, 'Order Accept Notification #'. $order->getIncrementId(), 'Seller item accept for order #'. $order->getIncrementId());\r\n //if enabled logs block\r\n if (Mage::helper('progos_infotrust')->isKustomerLog()) {\r\n Mage::log('after confirm_sellerAction confirm seller accept', null, 'jsonld.log');\r\n }\r\n }\r\n }\r\n //Step# 5\r\n if ($path == \"sale_order\") {\r\n if ($ref == \"cs\") {\r\n $this->_redirect('adminhtml/sales_order/view', array('order_id' => $order_id, 'ref' => $ref));\r\n } else {\r\n $this->_redirect('adminhtml/sales_order/view', array('order_id' => $order_id));\r\n }\r\n } elseif ($path == \"unconfirmed_from_buyer\") {\r\n $this->_redirect('*/adminhtml_unconfirmedfrombuyer');\r\n } elseif ($path == \"unconfirmed_from_seller\") {\r\n $this->_redirect('*/adminhtml_unconfirmedfromseller');\r\n } elseif ($path == \"all_orders\") {\r\n $this->_redirect('*/adminhtml_orderitemsall');\r\n } else {\r\n $this->_redirect('*/*/');\r\n }\r\n }\r\n //end\r\n }", "title": "" }, { "docid": "ba56d02dbbbaab9ab59695f926234046", "score": "0.4315663", "text": "public function setSeller($seller) {\n $this->properties['seller'] = $seller;\n\n return $this;\n }", "title": "" }, { "docid": "dac399115ef31cb1562041c467c059c9", "score": "0.43119952", "text": "public function setSellerId($seller_id)\n {\n $this->seller_id = $seller_id;\n }", "title": "" }, { "docid": "e70a7be4e67014f7fb8d977596f61401", "score": "0.4304772", "text": "public function setTendererQualificationRequest(array $tendererQualificationRequest)\n {\n $this->tendererQualificationRequest = $tendererQualificationRequest;\n return $this;\n }", "title": "" }, { "docid": "db674dc9ec7728bc0ae2ac3e3f16832d", "score": "0.42771238", "text": "public function putSeller(SellerRequest $request)\n {\n $data = $this->getSellerInformation($request);\n\n if ($this->seller->findByColumn(['user_id'=>$this->getAuthenticatedUserId()]))\n {\n if($this->seller->update($this->getAuthenticatedUserId(),$data,false))\n {\n return $this->seller->findByColumn(['user_id'=>$this->getAuthenticatedUserId()]);\n }\n return $this->response->errorInternal();\n }\n return $this->response->error('User not found.', 404);\n }", "title": "" }, { "docid": "582e12915284fdad58de21265f6bc53f", "score": "0.42615008", "text": "private function __getRequiredParamsForSeriesAwardAPIRequests($action){\n $requiredRequestHead = '' ; $requiredDataParams = '';\n switch ($action) {\n case 'update':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('series_id', 'series_awards');\n break;\n case 'show':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('id');\n break;\n case 'delete':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('id');\n break;\n }\n return array('head' => $requiredRequestHead, 'data' => $requiredDataParams);\n }", "title": "" }, { "docid": "9a178c4a628920689f7bdc8404f0376e", "score": "0.4257339", "text": "public function getReceiptActionAllowableValues()\n {\n return [\n self::RECEIPT_ACTION_REJECT,\n self::RECEIPT_ACTION_ACCEPT_BUT_WARN,\n self::RECEIPT_ACTION_ACCEPT,\n ];\n }", "title": "" }, { "docid": "cc7315b7084991a384f3e88b54f6e430", "score": "0.4214386", "text": "public function updateSeller()\n {\n /*return SellersModel::updateSeller($this->name, $this->email, $this->telephone, $this->password, $this->sellerId);*/\n return SellersModel::updateSeller($this->password, $this->sellerId);\n }", "title": "" }, { "docid": "9ad5f6a52d3740e1588cb89a6f311e23", "score": "0.41953242", "text": "public static function validateReminderItemActionForArrayConstraintsFromSetReminderItemAction(array $values = []): string\n {\n $message = '';\n $invalidValues = [];\n foreach ($values as $nonEmptyArrayOfReminderItemActionTypeReminderItemActionItem) {\n // validation for constraint: itemType\n if (!$nonEmptyArrayOfReminderItemActionTypeReminderItemActionItem instanceof \\StructType\\EwsReminderItemActionType) {\n $invalidValues[] = is_object($nonEmptyArrayOfReminderItemActionTypeReminderItemActionItem) ? get_class($nonEmptyArrayOfReminderItemActionTypeReminderItemActionItem) : sprintf('%s(%s)', gettype($nonEmptyArrayOfReminderItemActionTypeReminderItemActionItem), var_export($nonEmptyArrayOfReminderItemActionTypeReminderItemActionItem, true));\n }\n }\n if (!empty($invalidValues)) {\n $message = sprintf('The ReminderItemAction property can only contain items of type \\StructType\\EwsReminderItemActionType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));\n }\n unset($invalidValues);\n \n return $message;\n }", "title": "" }, { "docid": "e9ddb657933141f0cbd0c376df47da24", "score": "0.41590595", "text": "public function setSeller(Seller $seller)\n {\n $this->seller = $seller;\n\n return $this;\n }", "title": "" }, { "docid": "9b498f1b339855188d63f30a9743fd3f", "score": "0.41581342", "text": "public function setActions(array $asso = null);", "title": "" }, { "docid": "0acfc665982ccebffc6beef7ac314c2d", "score": "0.41499427", "text": "public static function SetStoreItems($titleId, $developerSecreteKey, $request)\n {\n //TODO: Check the devSecretKey\n\n $result = PlayFabHttp::MakeCurlApiCall($titleId, \"/Admin/SetStoreItems\", $request, \"X-SecretKey\", $developerSecreteKey);\n return $result;\n }", "title": "" }, { "docid": "4e325664368e22132fc04e9d5b52c25f", "score": "0.41444957", "text": "public function setSellerSKU($value)\n {\n $this->_fields['SellerSKU']['FieldValue'] = $value;\n return $this;\n }", "title": "" }, { "docid": "2fd40c7cf09e9ad60da449ac1d0ca6b4", "score": "0.41361517", "text": "public function set(array $params = NULL)\n\t{\n\t\t// Add the PaymentAction parameter\n\t\t$params['PAYMENTACTION'] = 'Sale';\n\t\t\n\t\treturn $this->_post('SetExpressCheckout', $params);\n\t}", "title": "" }, { "docid": "33a4eded53d3603fb37536d12f7bbb0d", "score": "0.4134493", "text": "public function setParamsForAction() {\n foreach ($this->request->attributes as $attributesKey => $attributesValue) {\n $this->paramsForAction[] = $attributesValue;\n }\n\n $this->paramsForAction[] = $this->request;\n }", "title": "" }, { "docid": "ac442f63fab48a32ab46780ce62db7fc", "score": "0.4103638", "text": "public function postSellerEnquiry(SellerEnquiryRequest $request)\n {\n if ($this->dog->attributeExists([\"seller_id\" => $request->input('seller_id'), \"id\" => $request->input('dog_id')]))\n {\n if (!$this->sellerEnquiry->findByColumn(['seller_id' => $request->input('seller_id'), 'dog_id' => $request->input('dog_id'), 'email' => $request->input('email')]))\n {\n if ($this->sellerEnquiry->create($request->except('review_token', 'reviewed')))\n {\n return $this->response->created();\n }\n return $this->response->errorInternal();\n }\n return $this->response->errorForbidden(\"Enquiry is allready sent!\");\n }\n return $this->response->errorBadRequest('Dog belongs to other seller.');\n\n }", "title": "" }, { "docid": "1a08e3fb45646146e3a0eaad5a387fb7", "score": "0.40704972", "text": "public function setRequiredFields(array $requiredFields)\n {\n $this->RequiredFields = $requiredFields;\n }", "title": "" }, { "docid": "97b72a6ac16721498dfcf3825330764e", "score": "0.40656045", "text": "public function __construct($sellerShipment)\n {\n $this->sellerShipment = $sellerShipment;\n }", "title": "" }, { "docid": "1838a35fab1a64f6da1250b8e0f2c5b8", "score": "0.40264484", "text": "public function __construct($historyAction = null, $curBookingLevel = null, $origBookingLevel = null, $seatsAssocSold = null, $seatsCurrAvail = null, $totalItemCount = null)\n {\n $this\n ->setHistoryAction($historyAction)\n ->setCurBookingLevel($curBookingLevel)\n ->setOrigBookingLevel($origBookingLevel)\n ->setSeatsAssocSold($seatsAssocSold)\n ->setSeatsCurrAvail($seatsCurrAvail)\n ->setTotalItemCount($totalItemCount);\n }", "title": "" }, { "docid": "3206208d4b49078e61d56a3b0a3c55a1", "score": "0.40142113", "text": "public function checkWhetherSellerOrNot() {\n /**\n * Initilize customer and seller group id\n */\n $customerGroupId = $sellerGroupId = $customerStatus = '';\n $customerGroupId = Mage::getSingleton ( 'customer/session' )->getCustomerGroupId ();\n $sellerGroupId = Mage::helper ( 'marketplace' )->getGroupId ();\n /**\n * Check the customer is not logged in currently\n * and group id of the customer is not equal to the seller group id\n */\n if (! Mage::getSingleton ( 'customer/session' )->isLoggedIn () && $customerGroupId != $sellerGroupId) {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( 'You must have a Seller Account to access this page' ) );\n $this->_redirect ( 'marketplace/seller/login' );\n return;\n }\n $customerStatus = Mage::getSingleton ( 'customer/session' )->getCustomer ()->getCustomerstatus ();\n if ($customerStatus != 1) {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( 'Admin Approval is required. Please wait until admin confirms your Seller Account' ) );\n $this->_redirect ( 'marketplace/seller/login' );\n return;\n }\n }", "title": "" }, { "docid": "0e0b39e1db8d45093a2fba454a151282", "score": "0.40089703", "text": "public function reject_buyerAction()\r\n {\r\n //Step# 1\r\n\r\n $id = $this->getRequest()->getParam('id');\r\n $path = $this->getRequest()->getParam('path');\r\n $ref = $this->getRequest()->getParam(\"ref\");\r\n $order_id = $this->getRequest()->getParam('order_id');\r\n $product_id = $this->getRequest()->getParam('product_id');\r\n $model = null;\r\n //end\r\n\r\n if ($id >= 0) {\r\n try {\r\n \r\n //Step# 2\r\n //for getting collection of marketplace\r\n $collection = Mage::getResourceModel('marketplace/commission_collection');\r\n \r\n //for getting collection when marketplace id not added in extended order\r\n if ($id == 0) {\r\n $collection->addFieldToFilter('product_id', $product_id)\r\n ->addFieldToFilter('order_id', $order_id);\r\n $model = $collection->getFirstItem();\r\n } else {\r\n $model = Mage::getModel('marketplace/commission')->load($id);\r\n }\r\n //end#\r\n\r\n //Step# 3\r\n //if rejected by buyer automatically rejeted by seller\r\n $currentDateTime = date('Y-m-d H:i:s');\r\n $model->setIsBuyerConfirmation('Rejected')\r\n ->setIsSellerConfirmation('Rejected')\r\n ->setItemOrderStatus('rejected_customer')\r\n ->setIsBuyerConfirmationDate($currentDateTime)\r\n ->setIsSellerConfirmationDate($currentDateTime)\r\n ->save();\r\n //end#\r\n\r\n //Step# 4\r\n // Add buyer product rejection comment to order\r\n $order_id = $model->getOrderId();\r\n $order = Mage::getModel('sales/order')->load($order_id);\r\n //using product model for using it in comment\r\n $product = Mage::getModel('catalog/product')\r\n ->getCollection()\r\n ->addAttributeToSelect('sku')\r\n ->addAttributeToFilter('entity_id',$model->getProductId())->getFirstItem();\r\n\r\n if ($ref == \"cs\") {\r\n $comment =\r\n \"Order Item having SKU '{$product->getSku()}' is <strong>rejected</strong> on behalf of <strong>Customer/Buyer</strong> via Call Center\";\r\n } else {\r\n $comment = \"Order Item having SKU '{$product->getSku()}' is <strong>rejected</strong> by buyer\";\r\n }\r\n\r\n $order->addStatusHistoryComment($comment, $order->getStatus())\r\n ->setIsVisibleOnFront(0)\r\n ->setIsCustomerNotified(0);\r\n $order->save();\r\n\r\n //end\r\n\r\n //Step# 5\r\n $product_id = $model->getProductId();\r\n $check_rejected = $this->getProductReject($order_id);\r\n Mage::getSingleton('marketplace/order')->deleteOrderItem($order_id, $product_id, $check_rejected);\r\n\r\n if ($check_rejected == \"true_seller\") {\r\n $order_sales = Mage::getModel('sales/order')->load($order_id);\r\n $order_sales->setFailedDelivery(1);\r\n $order_sales->save();\r\n }\r\n //end\r\n\r\n //Step# 6\r\n //Check if all items are confirmed from buyer end then send email\r\n $confirm = $this->getProductConfirm($order_id, $model->getSellerId());\r\n\r\n if ($confirm) {\r\n if (Mage::getStoreConfig('marketplace/admin_approval_seller_registration/sales_notification')\r\n == 1\r\n ) {\r\n $this->successAfter($order_id);\r\n }\r\n }\r\n //end\r\n\r\n $successMsg = Mage::helper('marketplace')->__('Order Rejected by Buyer');\r\n Mage::getSingleton('adminhtml/session')->addSuccess($successMsg);\r\n // if all items confirmed from buyer and not all items rejected or cancled (second condition)\r\n if(Mage::helper('marketplace/vieworder')->isAllItemsConfirmedFromBuyer($order_id) && $check_rejected != \"true_seller\"){\r\n if(Mage::helper('marketplace/vieworder')->isAllItemsConfirmedFromSeller($order_id)){ // This case can appear if anyone revert last item status from Market place and then reject from admin of from market place\r\n $order = Mage::getModel('sales/order')->load($order_id);\r\n // Set 'Confirmed' order status\r\n Mage::helper('orderstatuses')->setOrderStatusConfirmed($order);\r\n }\r\n else {\r\n // Set 'Pending Supplier Confirmation' order status\r\n Mage::helper('orderstatuses')->setOrderStatusPendingSupplierConfirmation($order);\r\n }\r\n\r\n }\r\n //Step# 7\r\n\r\n if ($path == \"sale_order\") {\r\n if ($ref == \"cs\") {\r\n $this->_redirect('adminhtml/sales_order/view', array('order_id' => $order_id, 'ref' => $ref));\r\n } else {\r\n $this->_redirect('adminhtml/sales_order/view', array('order_id' => $order_id));\r\n }\r\n } elseif ($path == \"unconfirmed_from_buyer\") {\r\n $this->_redirect('*/adminhtml_unconfirmedfrombuyer');\r\n } elseif ($path == \"unconfirmed_from_seller\") {\r\n $this->_redirect('*/adminhtml_unconfirmedfromseller');\r\n } elseif ($path == \"all_orders\") {\r\n $this->_redirect('*/adminhtml_orderitemsall');\r\n } else {\r\n $this->_redirect('*/*/');\r\n }\r\n } catch (Exception $e) {\r\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\r\n\r\n if ($path == \"sale_order\") {\r\n if ($ref == \"cs\") {\r\n $this->_redirect('adminhtml/sales_order/view', array('order_id' => $order_id, 'ref' => $ref));\r\n } else {\r\n $this->_redirect('adminhtml/sales_order/view', array('order_id' => $order_id));\r\n }\r\n } elseif ($path == \"unconfirmed_from_buyer\") {\r\n $this->_redirect('*/adminhtml_unconfirmedfrombuyer');\r\n } elseif ($path == \"unconfirmed_from_seller\") {\r\n $this->_redirect('*/adminhtml_unconfirmedfromseller');\r\n } elseif ($path == \"all_orders\") {\r\n $this->_redirect('*/adminhtml_orderitemsall');\r\n } else {\r\n $this->_redirect('*/*/');\r\n }\r\n }\r\n //end#\r\n }\r\n }", "title": "" }, { "docid": "a60ddc3cd0fa8e8a143a64d2aa54cf21", "score": "0.4007137", "text": "public function setSupplierConsumption(array $supplierConsumption)\n {\n $this->supplierConsumption = $supplierConsumption;\n return $this;\n }", "title": "" }, { "docid": "75da51ef08eb3c8e56f7bd02819d78b3", "score": "0.40040702", "text": "public function isSetSellerSKU()\n {\n return !is_null($this->_fields['SellerSKU']['FieldValue']);\n }", "title": "" }, { "docid": "e278cf6ce3dbdeaf10046ca5a4b33f3d", "score": "0.39954552", "text": "public function setSKs(\\Fincallorca\\HitchHikerApi\\Wsdl\\v3_1_388_1\\ArrayType\\ArrayOfSKRequestData $sKs = null)\n {\n if (is_null($sKs) || (is_array($sKs) && empty($sKs))) {\n unset($this->SKs);\n } else {\n $this->SKs = $sKs;\n }\n return $this;\n }", "title": "" }, { "docid": "5333aece9fac6d72c08a83eb8b64bb71", "score": "0.3984274", "text": "public function store(CreateSellerAPIRequest $request)\n {\n $input = $request->all();\n\n $sellers = $this->sellerRepository->create($input);\n\n return $this->sendResponse($sellers->toArray(), 'Seller saved successfully');\n }", "title": "" }, { "docid": "3792f80b7c540f07f3d538b626c2c618", "score": "0.39788163", "text": "protected function setRequestParams(array $params, $curlHandler = null)\n {\n $curlHandler = $curlHandler ? $curlHandler : $this->curlHandler;\n foreach ($params as $key => $value) {\n $const = constant('CURLOPT_' . strtoupper($key));\n if (!is_null($const)) {\n curl_setopt($curlHandler, $const, $value);\n }\n }\n }", "title": "" }, { "docid": "1afd4c2b936d58f4b9f9a26effa08e77", "score": "0.39750835", "text": "public function patchSeller(SellerRequest $request)\n {\n $data = $this->getSellerInformation($request);\n if ($this->seller->findByColumn(['user_id'=>$this->getAuthenticatedUserId()]))\n {\n if($this->seller->update($this->getAuthenticatedUserId(),$data,false))\n {\n return $this->seller->findByColumn(['user_id'=>$this->getAuthenticatedUserId()]);\n }\n return $this->response->errorInternal();\n }\n return $this->response->error('User not found.', 404);\n }", "title": "" }, { "docid": "1d5db18278cb5509e60f75ef866c4fc7", "score": "0.39679986", "text": "public function __construct(\n SellerRepository $sellerRepository\n )\n {\n $this->middleware('admin');\n\n $this->_config = request('_config');\n $this->sellerRepository = $sellerRepository;\n }", "title": "" }, { "docid": "4b0b64f71e35ea624096c057c413ed81", "score": "0.39616778", "text": "public function postSellerAssociation(SellerAssociationRequest $request)\n {\n if($this->associationInvite->attributeExists(['association_id'=>$request->input('association_id'),'seller_id'=>$this->getAuthenticatedUserId()]))\n {\n if(!$this->associationMember->attributeExists(['association_id'=>$request->input('association_id'),'seller_id'=>$this->getAuthenticatedUserId()])) {\n if ($this->associationMember->create(['seller_id' => $this->getAuthenticatedUserId(), 'association_id' => $request->input('association_id')]))\n {\n $this->associationInvite->findByColumn(['association_id'=>$request->input('association_id'),'seller_id'=>$this->getAuthenticatedUserId()])->update(['status'=>'active']);\n return $this->response->created();\n }\n return $this->response->errorInternal();\n }\n return $this->response->errorBadRequest(\"Seller is already part of association.\");\n }\n return $this->response->errorBadRequest(\"Invite wasn't sent to this seller.\");\n }", "title": "" }, { "docid": "e1ff9d652b197c5f4617da8356d6ecc5", "score": "0.39527434", "text": "public function setPassengers(\\Fincallorca\\HitchHikerApi\\Wsdl\\v3_1_388_1\\ArrayType\\ArrayOfModifyRequestPassenger $passengers = null)\n {\n if (is_null($passengers) || (is_array($passengers) && empty($passengers))) {\n unset($this->Passengers);\n } else {\n $this->Passengers = $passengers;\n }\n return $this;\n }", "title": "" }, { "docid": "ed541503d7b91107c9162825182c17df", "score": "0.39367524", "text": "public function massAcceptValueOnDeliveryAction()\n{\n$shipmentIds = $this->getRequest()->getParam('shipment');\nif (!is_array($shipmentIds)) {\nMage::getSingleton('adminhtml/session')->addError(\nMage::helper('sendbox_shipments')->__('Please select shipments.')\n);\n} else {\ntry {\nforeach ($shipmentIds as $shipmentId) {\n$shipment = Mage::getSingleton('sendbox_shipments/shipment')->load($shipmentId)\n->setAcceptValueOnDelivery($this->getRequest()->getParam('flag_accept_value_on_delivery'))\n->setIsMassupdate(true)\n->save();\n}\n$this->_getSession()->addSuccess(\n$this->__('Total of %d shipments were successfully updated.', count($shipmentIds))\n);\n} catch (Mage_Core_Exception $e) {\nMage::getSingleton('adminhtml/session')->addError($e->getMessage());\n} catch (Exception $e) {\nMage::getSingleton('adminhtml/session')->addError(\nMage::helper('sendbox_shipments')->__('There was an error updating shipments.')\n);\nMage::logException($e);\n}\n}\n$this->_redirect('*/*/index');\n}", "title": "" }, { "docid": "ec0598487877f353e717308804220597", "score": "0.39305803", "text": "private function setup_actions() {\n \n \n }", "title": "" }, { "docid": "0b988725a57f1b33f21e897b688c5dee", "score": "0.39214286", "text": "function setArrayBuyer(): array\n {\n return $this->arrayBuyer;\n }", "title": "" }, { "docid": "1f01341d851c5b6c687e9d4c8b7eef6d", "score": "0.39211714", "text": "public function setSellerId($value)\n {\n $this->_fields['SellerId']['FieldValue'] = $value;\n return $this;\n }", "title": "" }, { "docid": "dec8f169f2ef081c75d41d70256a13cd", "score": "0.3905047", "text": "public function setPriceSeller($price_seller)\n {\n $this->price_seller = $price_seller;\n return $this;\n }", "title": "" }, { "docid": "cc567e82e2ec0d65f93361b1022b11f2", "score": "0.38968244", "text": "public function initBooksforsalesRelatedBySellerId()\n\t{\n\t\t$this->collBooksforsalesRelatedBySellerId = array();\n\t}", "title": "" }, { "docid": "7ff6940672f08eab0a07d03e166a1fdd", "score": "0.38951784", "text": "public function setRequiredRisks(\\Mu4ddi3\\Compensa\\Webservice\\ArrayType\\ArrayOfRiskCode $requiredRisks = null)\n {\n if (is_null($requiredRisks) || (is_array($requiredRisks) && empty($requiredRisks))) {\n unset($this->RequiredRisks);\n } else {\n $this->RequiredRisks = $requiredRisks;\n }\n return $this;\n }", "title": "" }, { "docid": "6be02ac01daf079ab9c335f918da9297", "score": "0.38907668", "text": "public function __construct($_sellerId = NULL,$_sellerUserName = NULL,$_sellerRegistrationDate = NULL,$_payPalAccountID = NULL,$_secureMerchantAccountID = NULL)\r\n\t{\r\n\t\tparent::__construct(array('SellerId'=>$_sellerId,'SellerUserName'=>$_sellerUserName,'SellerRegistrationDate'=>$_sellerRegistrationDate,'PayPalAccountID'=>$_payPalAccountID,'SecureMerchantAccountID'=>$_secureMerchantAccountID));\r\n\t}", "title": "" }, { "docid": "1b673da0ea4f6f1b86091f236d5743f8", "score": "0.38898942", "text": "public function rules()\n {\n return [\n 'shop_info' => 'min:50',\n 'shop_name' =>'required|min:10|max:50|unique:sellers,shop_name,'.$this->user()->seller->id,\n ];\n }", "title": "" }, { "docid": "97b9d25f35ad2323e64213f66b0a3887", "score": "0.38862622", "text": "public function __construct(array $reminderItemAction)\n {\n $this\n ->setReminderItemAction($reminderItemAction);\n }", "title": "" }, { "docid": "1153cb1f469b40bc945c079f1d175e5c", "score": "0.3885552", "text": "public function edit(Seller $seller)\n {\n //\n }", "title": "" }, { "docid": "1153cb1f469b40bc945c079f1d175e5c", "score": "0.3885552", "text": "public function edit(Seller $seller)\n {\n //\n }", "title": "" }, { "docid": "3edbc61131133d37527c0a3af32c9a7e", "score": "0.3872397", "text": "public function approval_request() {\n \n $this->load->language('kbmp_marketplace/sellers');\n \n $this->load->model('kbmp_marketplace/kbmp_marketplace');\n $this->load->model('setting/kbmp_marketplace');\n \n //Get Seller Information\n $seller = $this->model_kbmp_marketplace_kbmp_marketplace->getSellerByCustomerId();\n \n if (isset($seller['seller_id']) && !empty($seller['seller_id'])) {\n $store_id = (int) $this->config->get('config_store_id');\n $settings = $this->model_setting_kbmp_marketplace->getSetting('kbmp_marketplace', $store_id);\n\n //Get Seller Configuration to overwrite default configuration if set exclusively for seller\n $seller_config = $this->model_kbmp_marketplace_kbmp_marketplace->getSellerConfig($seller['seller_id'], $store_id);\n if (isset($seller_config) && !empty($seller_config)) {\n foreach ($seller_config as $sellerconfig) {\n $settings['kbmp_marketplace_setting'][$sellerconfig['key']] = $sellerconfig['value'];\n }\n }\n\n\t //Start Changes added to check Approval Request Limit to resolve the issue of not checking the same 24-Dec-2018 - Harsh Agarwal\n if ($seller['disapproval_count'] <= $seller['approval_request_limit']) {\n\t //Ends\n if ($this->model_kbmp_marketplace_kbmp_marketplace->sendApprovalRequestAgain($seller['seller_id'])) {\n \n //Send email to notify admin about approval request\n $seller_details = $this->model_kbmp_marketplace_kbmp_marketplace->getSellerAccountDetails($seller['seller_id']);\n $email_template = $this->model_kbmp_marketplace_kbmp_marketplace->getEmailTemplate(5);\n\n if (isset($email_template) && !empty($email_template)) {\n $message = str_replace(\"{{seller_name}}\", $seller_details['firstname'] . ' ' . $seller_details['lastname'], $email_template['email_content']); //seller Name\n $message = str_replace(\"{{shop_title}}\", $seller_details['title'], $message); //Shop Title\n $message = str_replace(\"{{seller_email}}\", $seller_details['email'], $message); //Seller Email\n $message = str_replace(\"{{seller_contact}}\", $seller_details['telephone'], $message); //Seller Contact\n\n $email_content = '<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd\">' . \"\\n\";\n $email_content .= '<html>' . \"\\n\";\n $email_content .= ' <head>' . \"\\n\";\n $email_content .= ' <title>' . $email_template['email_subject'] . '</title>' . \"\\n\";\n $email_content .= ' <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">' . \"\\n\";\n $email_content .= ' </head>' . \"\\n\";\n $email_content .= ' <body>' . html_entity_decode($message, ENT_QUOTES, 'UTF-8') . '</body>' . \"\\n\";\n $email_content .= '</html>' . \"\\n\";\n\n if (VERSION < 3.0) {\n $mail = new Mail();\n } else {\n $mail = new Mail($this->config->get('config_mail_engine'));\n }\n $mail->protocol = $this->config->get('config_mail_protocol');\n $mail->parameter = $this->config->get('config_mail_parameter');\n $mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');\n $mail->smtp_username = $this->config->get('config_mail_smtp_username');\n $mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');\n $mail->smtp_port = $this->config->get('config_mail_smtp_port');\n $mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');\n\n $mail->setTo($this->config->get('config_email'));\n $mail->setFrom($this->config->get('config_email'));\n $mail->setSender(html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'));\n $mail->setSubject(html_entity_decode($email_template['email_subject'], ENT_QUOTES, 'UTF-8'));\n $mail->setHtml($email_content);\n $mail->send();\n }\n \n $this->session->data['success'] = $this->language->get('text_seller_approval_request');\n } else {\n $this->session->data['error'] = $this->language->get('error_seller_approval_request');\n }\n } else {\n $this->session->data['error'] = $this->language->get('error_seller_approval_request');\n } \n }\n \n $this->response->redirect($this->url->link('kbmp_marketplace/seller_profile', '', true));\n \n }", "title": "" }, { "docid": "1fddbb18b133d551b03dae08c5bb8101", "score": "0.38665822", "text": "private function __getRequiredParamsForSeriesTeamAPIRequests($action){\n $requiredRequestHead = '' ; $requiredDataParams = '';\n switch ($action) {\n case 'update':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('series_id', 'series_teams');\n break;\n case 'show':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('id');\n break;\n case 'delete':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('id');\n break;\n }\n return array('head' => $requiredRequestHead, 'data' => $requiredDataParams);\n }", "title": "" }, { "docid": "aaa96d23818368cdd3384a804f2f9296", "score": "0.38614824", "text": "public function __construct()\n {\n $this->middleware('permission:seller list|seller create|seller edit', ['only' => ['index','show']]);\n $this->middleware('permission:seller create', ['only' => ['create','store']]);\n $this->middleware('permission:seller edit', ['only' => ['edit','update']]);\n }", "title": "" }, { "docid": "5558ba403d23f9cc1507e8dc17d3d13d", "score": "0.38581645", "text": "public function edit(Seller $seller)\n {\n //\n\n }", "title": "" }, { "docid": "08c760d0c28eca7163dd2dfc98850d88", "score": "0.38567024", "text": "public function execute()\n {\n $helper = $this->helper;\n $isPartner = $helper->isSeller();\n if ($isPartner == 1) {\n try {\n if ($this->getRequest()->isPost()) {\n if (!$this->_formKeyValidator->validate($this->getRequest())) {\n return $this->resultRedirectFactory->create()->setPath(\n 'marketplace/transaction/history',\n ['_secure' => $this->getRequest()->isSecure()]\n );\n }\n $paramData = $this->getRequest()->getParams();\n if (empty($paramData['is_requested']) || $paramData['is_requested'] != '1') {\n return $this->resultRedirectFactory->create()->setPath(\n 'marketplace/transaction/history',\n ['_secure' => $this->getRequest()->isSecure()]\n );\n }\n $sellerId = $helper->getCustomerId();\n $collection = $this->saleslistColl->create();\n \n $coditionArr = [];\n $condition = \"`seller_id`=\".$sellerId;\n array_push($coditionArr, $condition);\n $condition = \"`cpprostatus`=1\";\n array_push($coditionArr, $condition);\n $condition = \"`paid_status`=0\";\n array_push($coditionArr, $condition);\n $coditionData = implode(' AND ', $coditionArr);\n\n $collection->setWithdrawalRequestData(\n $coditionData,\n ['is_withdrawal_requested' => 1]\n );\n\n $adminStoreEmail = $helper->getAdminEmailId();\n $adminEmail = $adminStoreEmail ? $adminStoreEmail : $helper->getDefaultTransEmailId();\n /*$adminUsername = 'Admin';*/\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $adminUsername = $objectManager->get('Mangoit\\Marketplace\\Helper\\Corehelper')->adminEmailName();\n\n $seller = $this->customerRepository->getById(\n $sellerId\n );\n\n $emailTemplateVariables = [];\n $emailTemplateVariables['seller'] = $seller->getFirstName();\n $emailTemplateVariables['amount'] = $helper->getFormatedPrice(\n $this->getRemainTotal()\n );\n\n $receiverInfo = [\n 'name' => $adminUsername,\n 'email' => $adminEmail,\n ];\n $senderInfo = [\n 'name' => $seller->getFirstName(),\n 'email' => $seller->getEmail(),\n ];\n \n $sellerStoreId = $seller->getStoreId();\n $this->helperEmail->sendWithdrawalRequestMail(\n $emailTemplateVariables,\n $senderInfo,\n $receiverInfo,\n $sellerStoreId\n );\n\n $this->messageManager->addSuccess(\n __('Your withdrawal request has been sent successfully.')\n );\n }\n } catch (\\Magento\\Framework\\Exception\\LocalizedException $e) {\n $this->messageManager->addError($e->getMessage());\n } catch (\\Exception $e) {\n $this->messageManager->addError($e->getMessage());\n }\n return $this->resultRedirectFactory->create()->setPath(\n 'marketplace/transaction/history',\n [\n '_secure' => $this->getRequest()->isSecure(),\n ]\n );\n } else {\n return $this->resultRedirectFactory->create()->setPath(\n 'marketplace/account/becomeseller',\n ['_secure' => $this->getRequest()->isSecure()]\n );\n }\n }", "title": "" }, { "docid": "8f5c2b87f1c60b1adae8703b0fa32fa3", "score": "0.3853517", "text": "public function set_offer(array $offer)\n\t{\n\t\t$this->offer = $offer;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8f5c2b87f1c60b1adae8703b0fa32fa3", "score": "0.3853517", "text": "public function set_offer(array $offer)\n\t{\n\t\t$this->offer = $offer;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8665b68b29b38d0912d7fb054f7b6e2f", "score": "0.38414377", "text": "function setAction( $value, $params=FALSE ) {\r\n if( empty( $value )) if( $this->getConfig( 'allowEmpty' )) $value = ''; else return FALSE;\r\n $this->action = array( 'value' => $value, 'params' => iCalUtilityFunctions::_setParams( $params ));\r\n return TRUE;\r\n }", "title": "" }, { "docid": "94d240df7b6f59707771010cef239949", "score": "0.38370067", "text": "public function setAction($action)\n {\n $valid = array(\n /**\n * Reserved for future use.\n *\n * The user no longer wants to upload the data and is requesting that\n * the system stop processing, if possible.\n */\n 'Abort',\n\n /**\n * Reserved for future use.\n *\n * The user wants to remove uploaded data parts as soon as possible.\n * Implies that an Abort status is queued.\n */\n 'Delete',\n\n /**\n * The user has not completed the data upload. Default value when the\n * object is created.\n */\n 'None',\n\n /**\n * The user has completed the data upload and is requesting that the\n * system process the data.\n */\n 'Process'\n );\n\n if (in_array($action, $valid)) {\n $this->action = $action;\n } else {\n throw new \\Exception(\n 'Invalid action. ' .\n 'Valid actions are ' . implode(', ', $valid) . '. ' .\n 'Provided action: ' . $action\n );\n }\n }", "title": "" }, { "docid": "7775daf422c4c0fa48bbd69093a5994b", "score": "0.38362902", "text": "public function initSalessRelatedBySellerId()\n\t{\n\t\t$this->collSalessRelatedBySellerId = array();\n\t}", "title": "" }, { "docid": "76d2e1914ed53862c54a055fd9adc886", "score": "0.38341254", "text": "public function setRequiredParams(array $required)\n {\n $this->required = $required;\n return $this;\n }", "title": "" }, { "docid": "ddb3033c5e6571cdddb9819b26c7c4c6", "score": "0.38341174", "text": "public function __construct(\n EavSetupFactory $eavSetupFactory,\n CollectionFactory $collectionFactory,\n Action $productAction,\n WriterInterface $configWriter\n ) {\n \n $this->_eavSetupFactory = $eavSetupFactory;\n $this->collectionFactory = $collectionFactory;\n $this->productAction = $productAction;\n $this->configWriter = $configWriter;\n }", "title": "" }, { "docid": "1deb0a90ba95b7d4e62b26bf3a60689d", "score": "0.38319692", "text": "public function setSellerId($seller_id)\n {\n $this->seller_id = $seller_id;\n\n return $this;\n }", "title": "" }, { "docid": "f0bae803c6f957bb6f264ae3588b710e", "score": "0.38222194", "text": "public function withSellerSKU($value)\n {\n $this->setSellerSKU($value);\n return $this;\n }", "title": "" }, { "docid": "701965d7b64749c49b5260d23a267b6a", "score": "0.38069695", "text": "public function getListingOffersRequest(AccessToken $accessToken, string $region, string $marketplace_id, string $item_condition, string $seller_sku, ?string $customer_type = null) : RequestInterface\n {\n // verify the required parameter 'marketplace_id' is set\n if ($marketplace_id === null || (\\is_array($marketplace_id) && \\count($marketplace_id) === 0)) {\n throw new InvalidArgumentException(\n 'Missing the required parameter $marketplace_id when calling getListingOffers'\n );\n }\n // verify the required parameter 'item_condition' is set\n if ($item_condition === null || (\\is_array($item_condition) && \\count($item_condition) === 0)) {\n throw new InvalidArgumentException(\n 'Missing the required parameter $item_condition when calling getListingOffers'\n );\n }\n // verify the required parameter 'seller_sku' is set\n if ($seller_sku === null || (\\is_array($seller_sku) && \\count($seller_sku) === 0)) {\n throw new InvalidArgumentException(\n 'Missing the required parameter $seller_sku when calling getListingOffers'\n );\n }\n\n $resourcePath = '/products/pricing/v0/listings/{SellerSKU}/offers';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $multipart = false;\n $query = '';\n\n // query params\n if (\\is_array($marketplace_id)) {\n $marketplace_id = ObjectSerializer::serializeCollection($marketplace_id, '', true);\n }\n\n if ($marketplace_id !== null) {\n $queryParams['MarketplaceId'] = ObjectSerializer::toString($marketplace_id);\n }\n // query params\n if (\\is_array($item_condition)) {\n $item_condition = ObjectSerializer::serializeCollection($item_condition, '', true);\n }\n\n if ($item_condition !== null) {\n $queryParams['ItemCondition'] = ObjectSerializer::toString($item_condition);\n }\n // query params\n if (\\is_array($customer_type)) {\n $customer_type = ObjectSerializer::serializeCollection($customer_type, '', true);\n }\n\n if ($customer_type !== null) {\n $queryParams['CustomerType'] = ObjectSerializer::toString($customer_type);\n }\n\n if (\\count($queryParams)) {\n $query = \\http_build_query($queryParams);\n }\n\n // path params\n if ($seller_sku !== null) {\n $resourcePath = \\str_replace(\n '{' . 'SellerSKU' . '}',\n ObjectSerializer::toPathValue($seller_sku),\n $resourcePath\n );\n }\n\n if ($multipart) {\n $headers = [\n 'accept' => ['application/json'],\n 'host' => [$this->configuration->apiHost($region)],\n 'user-agent' => [$this->configuration->userAgent()],\n ];\n } else {\n $headers = [\n 'content-type' => ['application/json'],\n 'accept' => ['application/json'],\n 'host' => [$this->configuration->apiHost($region)],\n 'user-agent' => [$this->configuration->userAgent()],\n ];\n }\n\n $request = $this->httpFactory->createRequest(\n 'GET',\n $this->configuration->apiURL($region) . $resourcePath . '?' . $query\n );\n\n // for model (json/xml)\n if (\\count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = \\is_array($formParamValue) ? $formParamValue : [$formParamValue];\n\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem,\n ];\n }\n }\n $request = $request->withParsedBody($multipartContents);\n } elseif ($headers['content-type'] === ['application/json']) {\n $request = $request->withBody($this->httpFactory->createStreamFromString(\\json_encode($formParams, JSON_THROW_ON_ERROR)));\n } else {\n $request = $request->withParsedBody($formParams);\n }\n }\n\n foreach (\\array_merge($headerParams, $headers) as $name => $header) {\n $request = $request->withHeader($name, $header);\n }\n\n return HttpSignatureHeaders::forConfig(\n $this->configuration,\n $accessToken,\n $region,\n $request\n );\n }", "title": "" }, { "docid": "e496242cce3324d3f679cdd4838b50eb", "score": "0.38068786", "text": "public function setup_actions() {\n\n\t}", "title": "" }, { "docid": "39f6b3969e178f7d2eb02a49bcc610aa", "score": "0.37869227", "text": "public static function getSupportedActions()\n {\n return [\n self::$apiVersion => [\n 'Bidders_Creatives' => [\n 'ListCreatives',\n 'WatchCreatives',\n 'PullWatchedCreativesSubscription'\n ],\n 'Buyers_Creatives' => [\n 'GetCreatives',\n 'ListCreatives',\n 'CreateHtmlCreatives',\n 'CreateNativeCreatives',\n 'CreateVideoCreatives',\n 'PatchCreatives'\n ],\n 'Buyers_UserLists' => [\n 'ListUserLists',\n 'CreateUserLists',\n 'UpdateUserLists'\n ],\n ],\n ];\n }", "title": "" }, { "docid": "24cee4e0777e9d17bf405b7559360f29", "score": "0.37792516", "text": "public function init_elemoentor_pro_form_action(){\r\n\t\t\r\n\t\t// Require email action for elementor\r\n\t\trequire_once(ELEMENTOR_FORM_EASTEREGG_PATH.'action/email-as-easteregg.php');\r\n\t\t\r\n\t\t// Instantiate the action class\r\n\t\t$emailaseasteregg = new EmailAsEASTEREGG();\r\n\r\n\t\t// Register the action with form widget\r\n\t\t\\ElementorPro\\Plugin::instance()->modules_manager->get_modules( 'forms' )->add_form_action( $emailaseasteregg->get_name(), $emailaseasteregg );\r\n\t\r\n\t}", "title": "" }, { "docid": "447823c064129506643b6ae252065518", "score": "0.3776795", "text": "public function setDelayAction(?string $delayAction): void\n {\n $this->delayAction['value'] = $delayAction;\n }", "title": "" }, { "docid": "488235483a87aebb05f36f95ef54f7db", "score": "0.37721604", "text": "protected function createProductDataEntry($action, $sku, $storeExtendedId = null, array $data)\n {\n // Explicitly set store id and sku to avoid mistakes!\n $data['sku'] = $sku;\n\n if (!is_null($storeExtendedId)) {\n $data['store_id'] = $storeExtendedId;\n }\n\n return [\n $action,\n self::PARAMETERS_KEY => ['data' => $data]\n ];\n }", "title": "" }, { "docid": "576b2e9387a4d2aadbee7ecc38fb084d", "score": "0.37659207", "text": "public function supportersAction()\n {\n }", "title": "" }, { "docid": "b4a91e0e0b6fc9bb5aedb4ca45cf15d1", "score": "0.37653843", "text": "public function setRequiresValidation(array $requiresValidation)\n {\n $this->requiresValidation = $requiresValidation;\n\n return $this;\n }", "title": "" }, { "docid": "5912b6e5f32a928fd89a3076ccb2a4c9", "score": "0.37595874", "text": "public function createShipmentsAction()\n {\n $orderIds = $this->getRequest()->getParam('order_ids');\n $notifyCustomer = $this->getRequest()->getParam('notifyCustomer');\n $parcelClass = Mage::getModel('hermes/config')->isTieredPriceMerchant() ? $this->getRequest()->getParam('parcelClass') : '';\n\n $parcelSuccessCount = 0;\n $parcelErrorCount = 0;\n\n if (!is_array($orderIds) || sizeof($orderIds) <= 0) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('hermes')->__('No order was selected!'));\n } else {\n $orders = Mage::getModel('sales/order')\n ->getCollection()\n ->addFieldToFilter('entity_id', array('in' => $orderIds))\n ->load();\n if (0 < $orders->count()) {\n $orderHelper = Mage::helper('hermes/order');\n $createdShipments = $orderHelper->shipOrders($orders, $parcelClass, $notifyCustomer);\n $parcelErrorCount = sizeof($createdShipments['errors']);\n $parcelSuccessCount = sizeof($createdShipments['success']);\n foreach ($createdShipments['errors'] as $orderNumber=>$error) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('hermes')->__('Order %s threw error: %s', $orderNumber, $error)\n );\n }\n } else {\n $parcelErrorCount = sizeof($orderIds);\n }\n\n }\n if (0 < $parcelSuccessCount) {\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('hermes')->__('%d Hermes shipment(s) created', $parcelSuccessCount)\n );\n Mage::getSingleton('adminhtml/session')->addWarning(\n Mage::helper('hermes')->__(\n 'Shipment(s) will be transmitted to Hermes within a short time. If you are in a hurry, you could <a href=\"%s\">trigger prompt transmission</a>.',\n Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/parcel/transmitHermesParcels')\n ));\n }\n if (0 < $parcelErrorCount) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('hermes')->__('%d Hermes shipment(s) could not be created', $parcelErrorCount)\n );\n }\n $this->_redirectReferer();\n }", "title": "" }, { "docid": "0d97c981e2820b3e5d2ede6886beca2d", "score": "0.3759014", "text": "public function setActionUrl($actionUrl) {\n $this->_actionUrl = $actionUrl;\n return $this;\n }", "title": "" }, { "docid": "b3e7313d7b133f955d7e979f783cc5c2", "score": "0.3756452", "text": "public function actionAddSkuToRule()\n {\n $asin = (Yii::$app->request->post('asin')) ? Yii::$app->request->post('asin') : Yii::$app->request->post('sku');\n $finalPrice = 0;\n $email = Yii::$app->request->post('email');\n $secretKey = Yii::$app->request->post('secretKey');\n $validSecretKey = 'repAWB654Ftrq$nhgtT6@$f%';\n $result = ['message' => '', 'status' => false, 'data' => null];\n $offerSummary = [];\n\n if($secretKey && $validSecretKey == $secretKey) {\n $userData = ($email) ? User::findOne(['u_email' => $email]) : null;\n if ($userData) {\n if (Yii::$app->request->post() && $asin) {\n $productOffer = Yii::$app->data->getAllOffers($asin, 'SKU');\n $yourBuyBox = Yii::$app->request->post('priceCurrent');\n $minPrice = Yii::$app->request->post('minPrice');\n $maxPrice = Yii::$app->request->post('maxPrice');\n $rRule = Yii::$app->request->post('repriserRule');\n\n if ($productOffer) {\n ProductOffers::deleteAll(['po_asin' => $asin, 'created_by' => $userData->u_id]);\n foreach ($productOffer as $po) {\n $model = new ProductOffers();\n $model->po_asin = $asin;\n $model->po_condition = $po['SubCondition'];\n $model->po_seller_feedback_rating = (key_exists('SellerFeedbackRating', $po)) ? $po['SellerFeedbackRating']['SellerPositiveFeedbackRating'] : null;\n $model->po_seller_feedback_count = (key_exists('SellerFeedbackRating', $po)) ? $po['SellerFeedbackRating']['FeedbackCount'] : null;\n $model->po_listing_price = (key_exists('ListingPrice', $po)) ? $po['ListingPrice']['Amount'] : null;\n $model->po_shipping_cost = (key_exists('Shipping', $po)) ? $po['Shipping']['Amount'] : null;\n $model->po_is_amazon_fulfillment = ($po['IsFulfilledByAmazon'] == 'true') ? 1 : 0;\n $model->po_is_buybox_winner = ($po['IsBuyBoxWinner'] == 'true') ? 1 : 0;\n $model->po_is_featured_merchant = ($po['IsFeaturedMerchant'] == 'true') ? 1 : 0;\n $model->created_by = $userData->u_id;\n $model->save(false);\n }\n\n $offerSummaryData = ProductOffers::find()->andWhere(['po_asin' => $asin])->one();\n $offerSummary = $offerSummaryData->attributes;\n\n $rRuleData = RepriserRule::findOne($rRule);\n if ($rRuleData) {\n $isAmazonIgnore = $rRuleData->rr_rule_comparison_ignore_amazon;\n\n if($rRuleData->rr_goal == 'bbp') {\n $comPriceD = ProductOffers::find()->select(['po_listing_price'])->andWhere(['po_asin' => $asin, 'po_is_buybox_winner' => 1])->one();\n $comPrice = ($comPriceD) ? $comPriceD->po_listing_price : 0;\n //->andFilterWhere(['po_is_amazon_fulfillment' => $isAmazonIgnore])\n } else {\n $comPrice = ProductOffers::find()->andWhere(['po_asin' => $asin])->min('po_listing_price');\n //->andFilterWhere(['po_is_amazon_fulfillment' => $isAmazonIgnore])\n }\n\n $comPrice = round($comPrice, 2);\n $spPrice = $rRuleData->rr_pricing_amount;\n $spPercent = $rRuleData->rr_pricing_percentage;\n $tempPrice = 0;\n\n if ($rRuleData->rr_match_action == 1) {\n if ($spPercent) {\n $bAmount = ($comPrice * $spPercent) / 100;\n $tempPrice = $comPrice - $bAmount;\n }\n if ($spPrice) {\n $tempPrice = $comPrice - $spPrice;\n }\n } elseif ($rRuleData->rr_match_action == 3) {\n if ($spPercent) {\n $bAmount = ($comPrice * $spPercent) / 100;\n $tempPrice = $comPrice + $bAmount;\n }\n if ($spPrice) {\n $tempPrice = $comPrice + $spPrice;\n }\n } else {\n $tempPrice = $comPrice;\n }\n\n if($asin) {\n $skuData = FbaAllListingData::find()->andWhere(['seller_sku' => $asin])->exists();\n if($skuData) {\n FbaAllListingData::updateAll(['repricing_min_price' => $minPrice, 'repricing_max_price' => $maxPrice, 'repricing_rule_id' => $rRule, 'repricing_cost_price' => $finalPrice], ['seller_sku' => $asin]);\n }\n }\n\n if ($tempPrice) {\n if($tempPrice <= $maxPrice && $tempPrice >= $minPrice) {\n $finalPrice = $tempPrice;\n } else {\n $finalPrice = $yourBuyBox;\n }\n\n $rModel = new AppliedRepriserRule();\n $rModel->arr_sku = $asin;\n $rModel->arr_user_email = $email;\n $rModel->arr_user_id = $userData->u_id;\n $rModel->arr_min_price = $minPrice;\n $rModel->arr_max_price = $maxPrice;\n $rModel->arr_repriser_price = $finalPrice;\n $rModel->arr_date = date('Y-m-d');\n $rModel->arr_rule_id = $rRule;\n $rModel->arr_own_buy_box_price = $yourBuyBox;\n $rModel->save(false);\n\n return Json::encode(['message' => 'Repricer Price saved successfully.', 'finalPrice' => $finalPrice, 'offerSummary' => $offerSummary, 'status' => true]);\n } else {\n $finalPrice = $yourBuyBox;\n\n $rModel = new AppliedRepriserRule();\n $rModel->arr_sku = $asin;\n $rModel->arr_user_email = $email;\n $rModel->arr_user_id = $userData->u_id;\n $rModel->arr_min_price = $minPrice;\n $rModel->arr_max_price = $maxPrice;\n $rModel->arr_repriser_price = $finalPrice;\n $rModel->arr_date = date('Y-m-d');\n $rModel->arr_rule_id = $rRule;\n $rModel->arr_own_buy_box_price = $yourBuyBox;\n $rModel->save(false);\n\n return Json::encode(['finalPrice' => $finalPrice, 'offerSummary' => $offerSummary, 'status' => true]);\n }\n }\n }\n }\n }\n } else {\n $result = ['message' => 'Please provide valid secret key', 'status' => false];\n return Json::encode($result);\n }\n\n if($finalPrice) {\n return Json::encode(['finalPrice' => $finalPrice, 'offerSummary' => $offerSummary, 'status' => true]);\n } else {\n return Json::encode(['finalPrice' => $finalPrice, 'offerSummary' => $offerSummary, 'status' => false]);\n }\n }", "title": "" }, { "docid": "4e585766da35070dde0b0d9c30334fe8", "score": "0.3751898", "text": "public function getActionForEmailCampaignsAllowableValues()\n {\n return [\n self::ACTION_FOR_EMAIL_CAMPAIGNS_OPENERS,\n self::ACTION_FOR_EMAIL_CAMPAIGNS_NON_OPENERS,\n self::ACTION_FOR_EMAIL_CAMPAIGNS_CLICKERS,\n self::ACTION_FOR_EMAIL_CAMPAIGNS_NON_CLICKERS,\n self::ACTION_FOR_EMAIL_CAMPAIGNS_UNSUBSCRIBED,\n self::ACTION_FOR_EMAIL_CAMPAIGNS_HARD_BOUNCES,\n self::ACTION_FOR_EMAIL_CAMPAIGNS_SOFT_BOUNCES,\n ];\n }", "title": "" }, { "docid": "e111b0375f1149703a9387ff785bd820", "score": "0.37495664", "text": "protected function initializeAction()\r\n {\r\n }", "title": "" }, { "docid": "b37d08b57d69f252d1efd31e5aa58cce", "score": "0.3747571", "text": "public function setUpdatedPolicySetItems(?array $value): void {\n $this->getBackingStore()->set('updatedPolicySetItems', $value);\n }", "title": "" }, { "docid": "f694ab7531a0bd75d3716c7897920497", "score": "0.37474075", "text": "public function massDeliveryTypeCodeAction()\n{\n$shipmentIds = $this->getRequest()->getParam('shipment');\nif (!is_array($shipmentIds)) {\nMage::getSingleton('adminhtml/session')->addError(\nMage::helper('sendbox_shipments')->__('Please select shipments.')\n);\n} else {\ntry {\nforeach ($shipmentIds as $shipmentId) {\n$shipment = Mage::getSingleton('sendbox_shipments/shipment')->load($shipmentId)\n->setDeliveryTypeCode($this->getRequest()->getParam('flag_delivery_type_code'))\n->setIsMassupdate(true)\n->save();\n}\n$this->_getSession()->addSuccess(\n$this->__('Total of %d shipments were successfully updated.', count($shipmentIds))\n);\n} catch (Mage_Core_Exception $e) {\nMage::getSingleton('adminhtml/session')->addError($e->getMessage());\n} catch (Exception $e) {\nMage::getSingleton('adminhtml/session')->addError(\nMage::helper('sendbox_shipments')->__('There was an error updating shipments.')\n);\nMage::logException($e);\n}\n}\n$this->_redirect('*/*/index');\n}", "title": "" }, { "docid": "e28accbdee60f9e3325097e545c88ef5", "score": "0.37463272", "text": "protected function initializeAction() {\n $this->pluginData = array('action' => $this->request->getControllerActionName());\n }", "title": "" }, { "docid": "f293cae4bbdd2e85877c07a5c427fbf2", "score": "0.37463003", "text": "public function isSetSellerId()\n {\n return !is_null($this->_fields['SellerId']['FieldValue']);\n }", "title": "" }, { "docid": "8412654d0723828fd39a5d2f44336561", "score": "0.37433052", "text": "protected function restrictActions($actionStep)\n {\n $lastStep = $this->pixie->orm->get('Cart')->getCart()->last_step;\n if ($lastStep == CartModel::STEP_ORDER && $actionStep != CartModel::STEP_ORDER) {\n $this->redirect('/checkout/order');\n }\n if ($actionStep > $lastStep) {\n if ($this->request->is_ajax()) {\n $this->jsonResponse(['success' => 1]);\n } else {\n $this->redirect('/cart/view');\n }\n }\n }", "title": "" }, { "docid": "30a73b87fd46c9b0273357e1995ed35e", "score": "0.37432545", "text": "public function setActionKey($actionKey)\n {\n $this->_actionKey = (string) $actionKey;\n return $this;\n }", "title": "" }, { "docid": "14be3dcf6064bec4ca933145e485758a", "score": "0.3742886", "text": "protected function initActions($action = '') {\n\t\t\n\t\t// action is set in extending class' init() method\n\t\tif ($this->action) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (trim($action) != '' && !is_array($action)) {\n\t\t\t$this->action = trim($action);\n\t\t} else {\n\t\t\tif ($this->getvars['action']) {\n\t\t\t\t$this->action = $this->getvars['action'];\n\t\t\t} else if ($this->postvars['action']) {\n\t\t\t\t$this->action = $this->postvars['action'];\n\t\t\t} else {\n\t\t\t\t$this->action = $this->defaultAction;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "81e9acf9a91a015ad73fc19466e83e63", "score": "0.37406614", "text": "public function store(Request $request)\n {\n Validator::make($request->all(),[\n 'name' => 'required',\n 'stock' => 'required',\n 'seller' => 'required',\n 'description' => 'required',\n 'discount' => 'required',\n 'maximum' => 'required',\n 'minimum' => 'required'\n ])->validate();\n\n Voucher::create([\n 'name' => $request->name,\n 'stock' => $request->stock,\n 'description' => $request->description,\n 'discount' => $request->discount,\n 'maximum_price' => $request->maximum,\n 'minimum_price' => $request->minimum\n ]);\n\n $voucher = Voucher::all()->last();\n foreach ($request->seller as $seller){\n $sellerId = Seller::where('name',$seller)->first()->id;\n DB::table('seller_voucher')->insert([\n 'voucher_id' => $voucher->id,\n 'seller_id' => $sellerId\n ]);\n }\n return redirect()->route('home');\n }", "title": "" }, { "docid": "32676d584cb704b036a0defbe8d603d9", "score": "0.37299767", "text": "protected function setPayload(array $payload): void\n {\n $this->itemId = $payload['itemId'];\n }", "title": "" }, { "docid": "fa234786c2cc5a70a011c61c8182bb25", "score": "0.37294137", "text": "private function __getRequiredParamsForSeriesAPIRequests($action) {\n $requiredRequestHead = ''; $requiredDataParams = '';\n switch ($action) {\n case 'create':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('name', 'user_id');\n break;\n case 'update':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('id');\n break;\n case 'show':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('id');\n break;\n case 'delete':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('id');\n break;\n case 'tournament_search_public':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('filters');\n break;\n case 'tournament_search':\n $requiredRequestHead = array('appGuid');\n $requiredDataParams = array('user_id','top_filter','sub_filter');\n break;\n }\n return array('head' => $requiredRequestHead, 'data' => $requiredDataParams);\n }", "title": "" }, { "docid": "4eafedb63681d7dedd9eb10c88e8bbf3", "score": "0.37264082", "text": "public function setParams($array) {\r\n\r\n $clean_array = array();\r\n\r\n // Transform key value array\r\n foreach ($array as $key) {\r\n $clean_array[$key] = \"\";\r\n }\r\n\r\n // Set to local\r\n $this->_params = $clean_array;\r\n }", "title": "" }, { "docid": "0578d6ce7729a709267af5121d574e8b", "score": "0.37204632", "text": "private function setup_actions() {\n /**\n * Filter the default fields that ship with WP Job Manager.\n * The `form_fields` method is what we use to add our own custom fields.\n */\n add_filter('submit_job_form_fields', array($this, 'form_fields'));\n\n /**\n * When WP Job Manager is saving all of the default field data, we need to also\n * save our custom fields. The `update_job_data` callback is what does this.\n */\n add_action('job_manager_update_job_data', array($this, 'update_job_data'), 10, 2);\n\n /**\n * Let's add another job_manager_update_job_data action that fires immediately after the\n * above one.\n */\n add_action('job_manager_update_job_data', array($this, 'set_featured_listing_image'), 11, 2);\n\n /**\n * Filter the default fields that are output in the WP admin when viewing a job listing.\n * The `job_listing_data_fields` adds the same fields to the backend that we added to the front.\n *\n * We do not need to add an additional callback for saving the data, as this is done automatically.\n */\n add_filter('job_manager_job_listing_data_fields', array($this, 'job_listing_data_fields'));\n }", "title": "" }, { "docid": "5e76061838a7c1b5257b416678c95d7e", "score": "0.37142253", "text": "public function batchActions(array $array): self\n {\n $this->batchActions = $array;\n return $this;\n }", "title": "" }, { "docid": "e2868ca214304909b0a4fb4c72061e77", "score": "0.37138015", "text": "public static function SetCatalogItems($titleId, $developerSecreteKey, $request)\n {\n //TODO: Check the devSecretKey\n\n $result = PlayFabHttp::MakeCurlApiCall($titleId, \"/Admin/SetCatalogItems\", $request, \"X-SecretKey\", $developerSecreteKey);\n return $result;\n }", "title": "" }, { "docid": "710f8aa0e6fc15b2748f5d03b2a2a469", "score": "0.37123865", "text": "protected function initializeAction() {\n\t\tif (!$this->actionMethodName == 'importAction') $this->allowOnlyAuthorWithMinAdminLevel(10);\n\t\t$this->resultRepository = t3lib_div::makeInstance('Tx_Wpjr_Domain_Repository_ResultRepository');\n\t}", "title": "" }, { "docid": "bad126104dfd833fec80a4612b462bf8", "score": "0.3712252", "text": "public function insert_pickup_items($buyerID, $pickup_item_arr)\n\t\t{\n\t\t\tif (session_id() == '') {\n\t\t\t\tsession_start();\n\t\t\t}\n\n\t\t\tif (isset($_SESSION['recent_orderID_arr'])) {\n\t\t\t\t$recent_orderID_arr = $_SESSION['recent_orderID_arr'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$recent_orderID_arr = array();\n\t\t\t}\n\n\t\t\trequire(\"dbstuffs.inc\");\n\n\t\t// ==================== ORDER INFO ====================\n\t\t\t$exmethod\t\t= \"local\";\n\t\t\t$status\t\t\t= \"Awaiting Seller Confirmation\";\n\t\t// =============== END OF ORDER INFO ==================\n\n\t\t// ==================== BUYER INFO ====================\n\t\t\t//$buyerID; // ALREADY HAVE IT\n\t\t\t$buyer_name\t\t= $_SESSION['firstname'] . \" \" . $_SESSION['lastname'];\n\t\t\t$buyer_email\t= $_SESSION['email'];\n\t\t\t$buyer_phone\t= $_SESSION['phone'];\n\n\t\t\t$buyer_name \t= mysqli_real_escape_string($db, $buyer_name);\n\t\t\t$buyer_email \t= mysqli_real_escape_string($db, $buyer_email);\n\t\t\t$buyer_phone \t= mysqli_real_escape_string($db, $buyer_phone);\n\t\t// =============== END OF BUYER INFO ==================\n\n\t\t// ============== SORTING BY SellerID ========================\t\n\t\t\tfor ($i = 0; $i < (count($pickup_item_arr) - 1); $i++)\n\t\t\t{\n\t\t\t\t$min = $i;\n\n\t\t\t\tfor ($j = ($i + 1); $j < count($pickup_item_arr); $j++)\n\t\t\t\t{\n\t\t\t\t\tif ($pickup_item_arr[$j]['sellerID'] < $pickup_item_arr[$min]['sellerID']) {\n\t\t\t\t\t\t$min = $j;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$temp = $pickup_item_arr[$min];\n\t\t\t\t$pickup_item_arr[$min] = $pickup_item_arr[$i];\n\t\t\t\t$pickup_item_arr[$i] = $temp;\n\t\t\t}\n\t\t// ========== END OF SORTING BY SellerID =====================\n\n\t\t\t//$counter_testing = 1; // REMOVE THIS AFTER TESTING DONE\n\n\t\t\twhile (count($pickup_item_arr) != 0)\n\t\t\t{\n\t\t\t// ============= SEPARATE ITEMS BY SellerID ===============\n\t\t\t\t$last_index = (count($pickup_item_arr) - 1);\n\n\t\t\t\t$same_seller_arr = array();\n\t\t\t\t$same_seller_arr[] = $pickup_item_arr[$last_index];\n\t\t\t\tunset($pickup_item_arr[$last_index]);\n\t\t\t\t$last_index--;\n\n\t\t\t\tfor ($i = $last_index; $i >= 0; $i--)\n\t\t\t\t{\n\t\t\t\t\tif ($same_seller_arr[0]['sellerID'] == $pickup_item_arr[$last_index]['sellerID'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$same_seller_arr[] = $pickup_item_arr[$last_index];\n\t\t\t\t\t\tunset($pickup_item_arr[$last_index]);\n\t\t\t\t\t\t$last_index--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t// ========= END OF SEPARATE ITEMS BY SellerID ============\n\n\t\t\t\t$order_quantity = count($same_seller_arr);\n\n\t\t\t// ========== INSERT same_seller_arr TO DB START FROM HERE ======\n\t\t\t\t\n\t\t\t\t/*echo \"=========== INSERT PICKUP ITEMS ============<br><br>\";\n\t\t\t\techo \"===== INSERT same_seller_arr TO DB START FROM HERE ======<br><br>\";\n\t\t\t\techo \"Inserted same seller array \" . $counter_testing;\n\t\t\t\techo \", from \" . $same_seller_arr[0]['seller'] . \", contains \" . count($same_seller_arr) . \" item(s).<br><br>\";*/\n\n\n\t\t\t\t// ================= GET SELLER INFO ====================\n\t\t\t\t$sellerID \t\t= $same_seller_arr[0]['sellerID'];\n\t\t\t\t$seller_name \t= $same_seller_arr[0]['seller'];\n\t\t\t\t$seller_name \t= mysqli_real_escape_string($db, $seller_name);\n\n\t\t\t\t$statement = \"SELECT * FROM users WHERE userID ='$sellerID'\";\n\t\t\t\t$result = mysqli_query($db, $statement);\n\t\t\t\tif (!$result)\n\t\t\t\t{\n\t\t\t\t\tprintf (\"<br>Error (%s)\", mysqli_error($db));\n\t\t\t\t\tprint \"<br>Error with MySQL\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\t$numresults = mysqli_num_rows($result);\n\t\t\t\tif($numresults == 0)\n\t\t\t\t{\n\t\t\t\t\techo \"Seller Info. Not Found!<br>\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\t$row = $result->fetch_assoc();\n\n\t\t\t\t$seller_email \t= $row['email'];\n\t\t\t\t$seller_phone\t= $row['phone'];\n\t\t\t\t$seller_address = $row['address'];\n\t\t\t\t$seller_city \t= $row['city'];\n\t\t\t\t$seller_state \t= $row['state'];\n\t\t\t\t$seller_zip \t= $row['zip'];\n\n\t\t\t\t$seller_email \t= mysqli_real_escape_string($db, $seller_email);\n\t\t\t\t$seller_phone \t= mysqli_real_escape_string($db, $seller_phone);\n\t\t\t\t$seller_address = mysqli_real_escape_string($db, $seller_address);\n\t\t\t\t$seller_city \t= mysqli_real_escape_string($db, $seller_city);\n\t\t\t\t$seller_state \t= mysqli_real_escape_string($db, $seller_state);\n\t\t\t\t$seller_zip \t= mysqli_real_escape_string($db, $seller_zip);\t\t\t\t\n\n\t\t\t\t/*echo \"Seller ID: \" . $sellerID . \"<br>\";\n\t\t\t\techo \"Seller : \" . $seller_name . \"<br>\";\n\t\t\t\techo \"Email : \" . $seller_email . \"<br>\";\n\t\t\t\techo \"Phone : \" . $seller_phone . \"<br>\";\n\t\t\t\techo \"Address : \";\n\t\t\t\techo $seller_address\t. \", \";\n\t\t\t\techo $seller_city\t. \", \";\n\t\t\t\techo $seller_state \t. \", \";\n\t\t\t\techo $seller_zip\t. \"<br><br>\";*/\n\t\t\t\t// ============ END OF GET SELLER INFO =================\n\n\t\t\t\t$doo = date(\"Y/m/d\"); // Date of Order\n\t\t\t\t$too = date(\"H:i:s\"); // Time of Order\n\n\t\t\t\t// ======= INSERTING BUYER & SELLER INFO TO THE TABLE =======\n\t\t\t\t$statement = \"INSERT INTO `order` ( \";\n\t\t\t\t$statement .= \"`exmethod`, `status`, `date_of_order`, `time_of_order`, `order_quantity`, \";\n\t\t\t\t$statement .= \"`buyerID`, `buyer_name`, `buyer_email`, `buyer_phone`, \";\n\t\t\t\t$statement .= \"`sellerID`, `seller_name`, `seller_email`, `seller_phone`, `seller_address`, `seller_city`, `seller_state`, `seller_zip`) \";\n\t\t\t\t$statement .= \"VALUES ( \";\n\t\t\t\t$statement .= \"'$exmethod', '$status', '$doo', '$too', '$order_quantity', \";\n\t\t\t\t$statement .= \"'$buyerID', '$buyer_name', '$buyer_email', '$buyer_phone', \";\n\t\t\t\t$statement .= \"'$sellerID', '$seller_name', '$seller_email', '$seller_phone', '$seller_address', '$seller_city', '$seller_state', '$seller_zip')\";\n\t\t\t\t$result = mysqli_query($db, $statement);\n\t\t\t\tif (!$result)\n\t\t\t\t{\n\t\t\t\t\tprintf (\"<br>Error (%s)\", mysqli_error($db));\n\t\t\t\t\tprint \"<br>Error with MySQL\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\t// === END OF INSERTING BUYER & SELLER INFO TO THE TABLE ====\n\n\t\t\t\t//$counter_testing++; // REMOVE THIS AFTER DONE TESTING\n\n\t\t\t\t//=== GET orderID for inserting items in same_seller_arr ====\n\t\t\t\t$statement = \"SELECT * FROM `order` WHERE `buyerID` = '$buyerID' AND `sellerID` = '$sellerID' AND `date_of_order` = '$doo' AND `time_of_order` = '$too' AND `order_quantity` = '$order_quantity' AND `exmethod` = '$exmethod'\";\n\t\t\t\t$result = mysqli_query($db, $statement);\n\t\t\t\tif (!$result)\n\t\t\t\t{\n\t\t\t\t\tprintf (\"<br>Error (%s)\", mysqli_error($db));\n\t\t\t\t\tprint \"<br>Error with MySQL\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\t$numresults = mysqli_num_rows($result);\n\t\t\t\tif($numresults == 0)\n\t\t\t\t{\n\t\t\t\t\techo \"Order Info. Not Found!<br>\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\t$row = $result->fetch_assoc();\n\n\t\t\t\t$orderID \t\t= $row['orderID'];\n\t\t\t\t$order_subtotal = $row['order_subtotal'];\n\n\t\t\t\t$recent_orderID_arr[] = $orderID;\n\t\t\t\t//echo \"OrderID: \" . $orderID . \"<br><br>\";\n\t\t\t\t\n\t\t\t\t//========= END OF GET orderID for inserting items ==========\n\n\t\t\t\t$item_number = 1;\n\n\t\t\t\tfor ($i = 0; $i < count($same_seller_arr); $i++)\n\t\t\t\t{\n\t\t\t\t\t$title_item_column \t= 'title_item' . $item_number;\n\t\t\t\t\t$author_item_column = 'author_item' . $item_number;\n\t\t\t\t\t$genre_item_column \t= 'genre_item' . $item_number;\n\t\t\t\t\t$isbn_item_column \t= 'isbn_item' . $item_number;\n\t\t\t\t\t$description_item_column = 'description_item' . $item_number;\n\t\t\t\t\t$condi_item_column \t= 'condi_item' . $item_number;\n\t\t\t\t\t$price_item_column \t= 'price_item' . $item_number;\n\n\n\t\t\t\t\t$title_item_value \t= $same_seller_arr[$i]['title'];\n\t\t\t\t\t$author_item_value \t= $same_seller_arr[$i]['author'];\n\t\t\t\t\t$genre_item_value \t= $same_seller_arr[$i]['genre'];\n\t\t\t\t\t$isbn_item_value \t= $same_seller_arr[$i]['isbn'];\n\t\t\t\t\t$description_item_value = $same_seller_arr[$i]['description'];\n\t\t\t\t\t$condi_item_value \t= $same_seller_arr[$i]['condi'];\n\t\t\t\t\t$price_item_value \t= $same_seller_arr[$i]['price'];\n\n\t\t\t\t $order_subtotal = $order_subtotal + $same_seller_arr[$i]['price'];\t\t\t\t\t\n\n\t\t\t\t\t$title_item_value = mysqli_real_escape_string($db, $title_item_value);\n\t\t\t\t\t$author_item_value = mysqli_real_escape_string($db, $author_item_value);\n\t\t\t\t\t$genre_item_value = mysqli_real_escape_string($db, $genre_item_value);\n\t\t\t\t\t$isbn_item_value = mysqli_real_escape_string($db, $isbn_item_value);\n\t\t\t\t\t$description_item_value = mysqli_real_escape_string($db, $description_item_value);\n\t\t\t\t\t$condi_item_value = mysqli_real_escape_string($db, $condi_item_value);\n\t\t\t\t\t$price_item_value = mysqli_real_escape_string($db, $price_item_value);\n\n\t\t\t\t\t/*echo $title_item_column . \"<br>\";\n\t\t\t\t\techo $author_item_column . \"<br>\";\n\t\t\t\t\techo $genre_item_column . \"<br>\";\n\t\t\t\t\techo $isbn_item_column . \"<br>\";\n\t\t\t\t\techo $description_item_column . \"<br>\";\n\t\t\t\t\techo $condi_item_column . \"<br>\";\n\t\t\t\t\techo $price_item_column . \"<br><br>\";\n\n\t\t\t\t\techo \"From same_seller_arr Index: \"\t. $i . \"<br>\";\n\t\t\t echo \"Title: \" . $title_item_value . \"<br>\";\n\t\t\t echo \"Author: \" . $author_item_value . \"<br>\";\n\t\t\t echo \"Genre: \" . $genre_item_value . \"<br>\";\n\t\t\t echo \"ISBN: \" . $isbn_item_value . \"<br>\";\n\t\t\t echo \"Description: \" . $description_item_value . \"<br>\";\n\t\t\t echo \"Condition: \" . $condi_item_value . \"<br>\";\n\t\t\t echo \"Price: \" . $price_item_value . \"<br>\";\n\t\t\t echo \"Subtotal: \" . $order_subtotal . \"<br><br>\";*/\n\n\t\t\t\t\t$statement = \"UPDATE `order` SET \";\n\t\t\t\t\t$statement .= \"`$title_item_column` = '$title_item_value', \";\n\t\t\t\t\t$statement .= \"`$author_item_column` = '$author_item_value', \";\n\t\t\t\t\t$statement .= \"`$genre_item_column` = '$genre_item_value', \";\n\t\t\t\t\t$statement .= \"`$isbn_item_column` = '$isbn_item_value', \";\n\t\t\t\t\t$statement .= \"`$description_item_column` = '$description_item_value', \";\n\t\t\t\t\t$statement .= \"`$condi_item_column` = '$condi_item_value', \";\n\t\t\t\t\t$statement .= \"`$price_item_column` = '$price_item_value', \";\n\t\t\t\t\t$statement .= \"`order_subtotal` = '$order_subtotal' \";\n\t\t\t\t\t$statement .= \"WHERE `orderID` = '$orderID'\";\n\n\t\t\t\t\t$result = mysqli_query($db, $statement);\n\t\t\t\t\tif (!$result)\n\t\t\t\t\t{\n\t\t\t\t\t\tprintf (\"<br>Error (%s)\", mysqli_error($db));\n\t\t\t\t\t\tprint \"<br>Error with MySQL\";\n\t\t\t\t\t\texit;\n\t\t\t\t\t}\n\n\t\t\t\t\t$item_number++;\n\t\t\t\t}\n\t\t\t// ============= END OF INSERT same_seller_arr TO DB ============\n\t\t\t\n\t\t\t\t//echo \"========= END INSERT same_seller_arr TO DB ===============<br><br><br><br>\";\n\t\t\t} // END OF while (count($shipping_item_arr) != 0)\n\n\t\t\t$_SESSION['recent_orderID_arr'] = $recent_orderID_arr;\n\t\t}", "title": "" }, { "docid": "45aac1c948648fe528e72066f9efafc0", "score": "0.37057564", "text": "public function insert_exchange_items($buyerID, $exchange_item_arr, $listing_for_exchange)\n\t\t{\n\t\t\tif (session_id() == '') {\n\t\t\t\tsession_start();\n\t\t\t}\n\n\t\t\tif (isset($_SESSION['recent_orderID_arr'])) {\n\t\t\t\t$recent_orderID_arr = $_SESSION['recent_orderID_arr'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$recent_orderID_arr = array();\n\t\t\t}\n\n\t\t\trequire(\"dbstuffs.inc\");\n\n\t\t// ==================== ORDER INFO ====================\n\t\t\t$exmethod\t\t= \"local\";\n\t\t\t$status\t\t\t= \"Awaiting Seller Confirmation\";\n\t\t// =============== END OF ORDER INFO ==================\n\n\t\t// ==================== BUYER INFO ====================\n\t\t\t//$buyerID; // ALREADY HAVE IT\n\t\t\t$buyer_name\t\t= $_SESSION['firstname'] . \" \" . $_SESSION['lastname'];\n\t\t\t$buyer_email\t= $_SESSION['email'];\n\t\t\t$buyer_phone\t= $_SESSION['phone'];\n\n\t\t\t$buyer_name \t= mysqli_real_escape_string($db, $buyer_name);\n\t\t\t$buyer_email \t= mysqli_real_escape_string($db, $buyer_email);\n\t\t\t$buyer_phone \t= mysqli_real_escape_string($db, $buyer_phone);\n\t\t// =============== END OF BUYER INFO ==================\n\n\t\t// ============== SORTING BY SellerID ========================\t\n\t\t\tfor ($i = 0; $i < (count($exchange_item_arr) - 1); $i++)\n\t\t\t{\n\t\t\t\t$min = $i;\n\n\t\t\t\tfor ($j = ($i + 1); $j < count($exchange_item_arr); $j++)\n\t\t\t\t{\n\t\t\t\t\tif ($exchange_item_arr[$j]['sellerID'] < $exchange_item_arr[$min]['sellerID']) {\n\t\t\t\t\t\t$min = $j;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$temp = $exchange_item_arr[$min];\n\t\t\t\t$exchange_item_arr[$min] = $exchange_item_arr[$i];\n\t\t\t\t$exchange_item_arr[$i] = $temp;\n\t\t\t}\n\t\t// ========== END OF SORTING BY SellerID =====================\n\n\t\t\twhile (count($exchange_item_arr) != 0)\n\t\t\t{\n\t\t\t// ============= SEPARATE ITEMS BY SellerID ===============\n\t\t\t\t$last_index = (count($exchange_item_arr) - 1);\n\n\t\t\t\t$same_seller_arr = array();\n\t\t\t\t$same_seller_arr[] = $exchange_item_arr[$last_index];\n\t\t\t\tunset($exchange_item_arr[$last_index]);\n\t\t\t\t$last_index--;\n\n\t\t\t\tfor ($i = $last_index; $i >= 0; $i--)\n\t\t\t\t{\n\t\t\t\t\tif ($same_seller_arr[0]['sellerID'] == $exchange_item_arr[$last_index]['sellerID'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$same_seller_arr[] = $exchange_item_arr[$last_index];\n\t\t\t\t\t\tunset($exchange_item_arr[$last_index]);\n\t\t\t\t\t\t$last_index--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t// ========= END OF SEPARATE ITEMS BY SellerID ============\n\n\t\t\t\t$order_quantity = count($same_seller_arr);\n\n\t\t\t// ===== INSERT same_seller_arr TO DB START FROM HERE =====\n\n\t\t\t\t// ================= GET SELLER INFO ====================\n\t\t\t\t$sellerID \t\t= $same_seller_arr[0]['sellerID'];\n\t\t\t\t$seller_name \t= $same_seller_arr[0]['seller'];\n\t\t\t\t$seller_name \t= mysqli_real_escape_string($db, $seller_name);\n\n\t\t\t\t$statement = \"SELECT * FROM users WHERE userID ='$sellerID'\";\n\t\t\t\t$result = mysqli_query($db, $statement);\n\t\t\t\tif (!$result)\n\t\t\t\t{\n\t\t\t\t\tprintf (\"<br>Error (%s)\", mysqli_error($db));\n\t\t\t\t\tprint \"<br>Error with MySQL\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\t$numresults = mysqli_num_rows($result);\n\t\t\t\tif($numresults == 0)\n\t\t\t\t{\n\t\t\t\t\techo \"Seller Info. Not Found!<br>\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\t$row = $result->fetch_assoc();\n\n\t\t\t\t$seller_email \t= $row['email'];\n\t\t\t\t$seller_phone\t= $row['phone'];\n\t\t\t\t$seller_address = $row['address'];\n\t\t\t\t$seller_city \t= $row['city'];\n\t\t\t\t$seller_state \t= $row['state'];\n\t\t\t\t$seller_zip \t= $row['zip'];\n\n\t\t\t\t$seller_email \t= mysqli_real_escape_string($db, $seller_email);\n\t\t\t\t$seller_phone \t= mysqli_real_escape_string($db, $seller_phone);\n\t\t\t\t$seller_address = mysqli_real_escape_string($db, $seller_address);\n\t\t\t\t$seller_city \t= mysqli_real_escape_string($db, $seller_city);\n\t\t\t\t$seller_state \t= mysqli_real_escape_string($db, $seller_state);\n\t\t\t\t$seller_zip \t= mysqli_real_escape_string($db, $seller_zip);\t\t\t\t\n\t\t\t\t// ============ END OF GET SELLER INFO =================\n\n\t\t\t\t$doo = date(\"Y/m/d\"); // Date of Order\n\t\t\t\t$too = date(\"H:i:s\"); // Time of Order\n\n\t\t\t\t//==== INSERTING BUYER & SELLER INFO TO THE TABLE =====\n\n\t\t\t\t$statement = \"INSERT INTO `order` ( \";\n\t\t\t\t$statement .= \"`exmethod`, `status`, `date_of_order`, `time_of_order`, `order_quantity`, \";\n\t\t\t\t$statement .= \"`buyerID`, `buyer_name`, `buyer_email`, `buyer_phone`, \";\n\t\t\t\t$statement .= \"`sellerID`, `seller_name`, `seller_email`, `seller_phone`, `seller_address`, `seller_city`, `seller_state`, `seller_zip`) \";\n\t\t\t\t$statement .= \"VALUES ( \";\n\t\t\t\t$statement .= \"'$exmethod', '$status', '$doo', '$too', '$order_quantity', \";\n\t\t\t\t$statement .= \"'$buyerID', '$buyer_name', '$buyer_email', '$buyer_phone', \";\n\t\t\t\t$statement .= \"'$sellerID', '$seller_name', '$seller_email', '$seller_phone', '$seller_address', '$seller_city', '$seller_state', '$seller_zip')\";\n\t\t\t\t$result = mysqli_query($db, $statement);\n\t\t\t\tif (!$result)\n\t\t\t\t{\n\t\t\t\t\tprintf (\"<br>Error (%s)\", mysqli_error($db));\n\t\t\t\t\tprint \"<br>Error with MySQL\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//=== END OF INSERTING BUYER & SELLER INFO TO THE TABLE ===\n\n\n\t\t\t\t//== GET orderID for inserting items in same_seller_arr ===\n\n\t\t\t\t$statement = \"SELECT * FROM `order` WHERE `buyerID` = '$buyerID' AND `sellerID` = '$sellerID' AND `date_of_order` = '$doo' AND `time_of_order` = '$too' AND `order_quantity` = '$order_quantity' AND `exmethod` = '$exmethod'\";\n\t\t\t\t$result = mysqli_query($db, $statement);\n\t\t\t\tif (!$result)\n\t\t\t\t{\n\t\t\t\t\tprintf (\"<br>Error (%s)\", mysqli_error($db));\n\t\t\t\t\tprint \"<br>Error with MySQL\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\t$numresults = mysqli_num_rows($result);\n\t\t\t\tif($numresults == 0)\n\t\t\t\t{\n\t\t\t\t\techo \"Order Info. Not Found!<br>\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\t$row = $result->fetch_assoc();\n\n\t\t\t\t$orderID \t\t= $row['orderID'];\n\t\t\t\t$order_subtotal = $row['order_subtotal'];\n\n\t\t\t\t$recent_orderID_arr[] = $orderID;\n\t\t\t\t\n\t\t\t\t//==== END OF GET orderID for inserting items =====\n\n\t\t\t\t$item_number = 1;\n\n\t\t\t\t$price_item_value = 0;\n\t\t\t\t$order_subtotal = 0;\n\n\t\t\t\tfor ($i = 0; $i < count($same_seller_arr); $i++)\n\t\t\t\t{\n\t\t\t\t\t$title_item_column \t= 'title_item' . $item_number;\n\t\t\t\t\t$author_item_column = 'author_item' . $item_number;\n\t\t\t\t\t$genre_item_column \t= 'genre_item' . $item_number;\n\t\t\t\t\t$isbn_item_column \t= 'isbn_item' . $item_number;\n\t\t\t\t\t$description_item_column = 'description_item' . $item_number;\n\t\t\t\t\t$condi_item_column \t= 'condi_item' . $item_number;\n\t\t\t\t\t$price_item_column \t= 'price_item' . $item_number;\n\n$ex_title_item_column = 'ex_title_item' . $item_number;\n$ex_author_item_column = 'ex_author_item' . $item_number;\n$ex_genre_item_column \t= 'ex_genre_item' . $item_number;\n$ex_isbn_item_column \t= 'ex_isbn_item' . $item_number;\n$ex_description_item_column = 'ex_description_item' . $item_number;\n$ex_condi_item_column \t= 'ex_condi_item' . $item_number;\n$ex_price_item_column \t= 'ex_price_item' . $item_number;\n\n\t\t\t\t\t$title_item_value \t= $same_seller_arr[$i]['title'];\n\t\t\t\t\t$author_item_value \t= $same_seller_arr[$i]['author'];\n\t\t\t\t\t$genre_item_value \t= $same_seller_arr[$i]['genre'];\n\t\t\t\t\t$isbn_item_value \t= $same_seller_arr[$i]['isbn'];\n\t\t\t\t\t$description_item_value = $same_seller_arr[$i]['description'];\n\t\t\t\t\t$condi_item_value \t= $same_seller_arr[$i]['condi'];\n\t\t\t\t\t$prc_item_value \t= $same_seller_arr[$i]['price'];\n\nfor ($j = 0; $j < count($listing_for_exchange); $j++)\n{\n\tif ($listing_for_exchange[$j]['title'] == $same_seller_arr[$i]['exchange_title'])\n\t{\n\t\t$ex_title_item_value \t= $listing_for_exchange[$j]['title'];\n\t\t$ex_author_item_value \t= $listing_for_exchange[$j]['author'];\n\t\t$ex_genre_item_value \t= $listing_for_exchange[$j]['genre'];\n\t\t$ex_isbn_item_value \t= $listing_for_exchange[$j]['isbn'];\n\t\t$ex_description_item_value = $listing_for_exchange[$j]['description'];\n\t\t$ex_condi_item_value \t= $listing_for_exchange[$j]['condi'];\n\t\t$ex_price_item_value \t= $listing_for_exchange[$j]['price'];\n\n\t}\n}\n\n\t\t$price_item_value \t= $prc_item_value - $ex_price_item_value;\n\n\t\t$order_subtotal = $order_subtotal + $price_item_value;\n\n/*\necho \"title_item_value: \" . $title_item_value . \"<br>\";\necho \"author_item_value: \" . $author_item_value . \"<br>\";\necho \"genre_item_value: \" . $genre_item_value . \"<br>\";\necho \"isbn_item_value: \" . $isbn_item_value . \"<br>\";\necho \"description_item_value: \" . $description_item_value . \"<br>\";\necho \"condi_item_value: \" . $condi_item_value . \"<br>\";\necho \"prc_item_value: \" . $prc_item_value . \"<br>\";\n\necho \"ex_title_item_value: \" . $ex_title_item_value . \"<br>\";\necho \"ex_author_item_value: \" . $ex_author_item_value . \"<br>\";\necho \"ex_genre_item_value: \" . $ex_genre_item_value . \"<br>\";\necho \"ex_isbn_item_value: \" . $ex_isbn_item_value . \"<br>\";\necho \"ex_description_item_value: \" . $ex_description_item_value . \"<br>\";\necho \"ex_condi_item_value: \" . $ex_condi_item_value . \"<br>\";\necho \"ex_price_item_value: \" . $ex_price_item_value . \"<br><br>\";\n*/\n\n\n\t\t\t\t\t$title_item_value = mysqli_real_escape_string($db, $title_item_value);\n\t\t\t\t\t$author_item_value = mysqli_real_escape_string($db, $author_item_value);\n\t\t\t\t\t$genre_item_value = mysqli_real_escape_string($db, $genre_item_value);\n\t\t\t\t\t$isbn_item_value = mysqli_real_escape_string($db, $isbn_item_value);\n\t\t\t\t\t$description_item_value = mysqli_real_escape_string($db, $description_item_value);\n\t\t\t\t\t$condi_item_value = mysqli_real_escape_string($db, $condi_item_value);\n\t\t\t\t\t$price_item_value = mysqli_real_escape_string($db, $price_item_value);\n\n\t\t\t\t\t$ex_title_item_value = mysqli_real_escape_string($db, $ex_title_item_value);\n\t\t\t\t\t$ex_author_item_value = mysqli_real_escape_string($db, $ex_author_item_value);\n\t\t\t\t\t$ex_genre_item_value = mysqli_real_escape_string($db, $ex_genre_item_value);\n\t\t\t\t\t$ex_isbn_item_value = mysqli_real_escape_string($db, $ex_isbn_item_value);\n\t\t\t\t\t$ex_description_item_value = mysqli_real_escape_string($db, $ex_description_item_value);\n\t\t\t\t\t$ex_condi_item_value = mysqli_real_escape_string($db, $ex_condi_item_value);\t\t\t\t\t\n\n\n$statement = \"UPDATE `order` SET \";\n$statement .= \"`$title_item_column` = '$title_item_value', \";\n$statement .= \"`$author_item_column` = '$author_item_value', \";\n$statement .= \"`$genre_item_column` = '$genre_item_value', \";\n$statement .= \"`$isbn_item_column` = '$isbn_item_value', \";\n$statement .= \"`$description_item_column` = '$description_item_value', \";\n$statement .= \"`$condi_item_column` = '$condi_item_value', \";\n$statement .= \"`$price_item_column` = '$prc_item_value', \";\n$statement .= \"`$ex_title_item_column` = '$ex_title_item_value', \";\n$statement .= \"`$ex_author_item_column` = '$ex_author_item_value', \";\n$statement .= \"`$ex_genre_item_column` = '$ex_genre_item_value', \";\n$statement .= \"`$ex_isbn_item_column` = '$ex_isbn_item_value', \";\n$statement .= \"`$ex_description_item_column` = '$ex_description_item_value', \";\n$statement .= \"`$ex_condi_item_column` = '$ex_condi_item_value', \";\n$statement .= \"`$ex_price_item_column` = '$ex_price_item_value', \";\n$statement .= \"`order_subtotal` = '$order_subtotal' \";\n$statement .= \"WHERE `orderID` = '$orderID'\";\n\n$result = mysqli_query($db, $statement);\nif (!$result)\n{\n\tprintf (\"<br>Error (%s)\", mysqli_error($db));\n\tprint \"<br>Error with MySQL\";\n\texit;\n}\n\n\t\t\t\t\t$item_number++;\n\t\t\t\t}\n\t\t\t\t//echo \"Subtotal: \" . $order_subtotal . \"<br><br>\";\n\t\t\t//========== END OF INSERT same_seller_arr TO DB ========\n\t\t\t\t\n\t\t\t} // END OF while (count($shipping_item_arr) != 0)\n\n\t\t\t$_SESSION['recent_orderID_arr'] = $recent_orderID_arr;\n\t\t}", "title": "" }, { "docid": "c67fff18c374b77a8add43bea6320997", "score": "0.36979997", "text": "public function _prepareMassaction()\n {\n $this->setMassactionIdField('entity_id');\n $this->getMassactionBlock()->setFormFieldName('order_ids');\n $this->getMassactionBlock()->setUseSelectAll(false);\n\n $this->getMassactionBlock()->addItem('delete_order', array(\n 'label' => Mage::helper('deleteanyorder')->__('Delete'),\n 'url' => $this->getUrl('*/*/confirm'),\n ));\n }", "title": "" } ]
d76bc2bed9d6396dd81325750f6348f1
Validate schema file exists.
[ { "docid": "2a9a4223ed9fff6572057888ff9b5fa5", "score": "0.71708727", "text": "public function schemaExists($file)\n {\n try {\n if (file_exists($file)) {\n return true;\n } else {\n return false;\n }\n } catch (\\Exception $e) {\n if (isset($this->dapImportLogger)) {\n $this->dapImportLogger->error($e->getMessage());\n }\n\n throw new \\Exception('Error: '.$e->getMessage());\n }\n }", "title": "" } ]
[ { "docid": "2494b9ff5cacbafc6ba49e1b66976885", "score": "0.7624818", "text": "public function validate($schemaFileName);", "title": "" }, { "docid": "586abb35b8e59fdb74be9dbe8c278b82", "score": "0.68077224", "text": "public function checkSchema() {\n\t}", "title": "" }, { "docid": "6fe5e4d0992834e94cef9fab94be1a22", "score": "0.6567859", "text": "public function validateSchema($schema = self::STRICT_SCHEMA)\n {\n $content = file_get_contents($this->path);\n $data = json_decode($content);\n\n if (null === $data && 'null' !== $content) {\n self::validateSyntax($content, $this->path);\n }\n\n $schemaFile = dirname(__DIR__) . '/Resources/res/phit-schema.json';\n $schemaData = json_decode(file_get_contents($schemaFile));\n\n // @todo : see if it use uselfull to use this\n if ($schema === self::LAX_SCHEMA) {\n // $schemaData->additionalProperties = true;\n // $schemaData->properties->name->required = false;\n // $schemaData->properties->description->required = false;\n }\n\n $validator = new Validator();\n $validator->check($data, $schemaData);\n\n if (!$validator->isValid()) {\n $errors = array();\n foreach ((array) $validator->getErrors() as $error) {\n $errors[] = ($error['property'] ? $error['property'].' : ' : '').$error['message'];\n }\n throw new JsonValidationException('\"'.$this->path.'\" does not match the expected JSON schema', $errors);\n }\n\n return true;\n }", "title": "" }, { "docid": "8e4032391913166ada18339b8740c0d2", "score": "0.6426252", "text": "public function isValid()\n {\n return file_exists($this->file);\n }", "title": "" }, { "docid": "33c8ad128b3de0389dec8b0529fded64", "score": "0.63540703", "text": "function schemaExists($tableName, $customSchemaDir = '') {\r\n $tableNameWithoutPrefix = getTableNameWithoutPrefix($tableName);\r\n $defaultSchemaDir = DATA_DIR . \"/schema\";\r\n \r\n // check for missing or invalid tablenames\r\n if (!$tableName) { return false; }\r\n elseif (preg_match('/[^a-zA-Z0-9\\-\\_\\(\\)]+/', $tableName)) { return false; } // invalid chars\r\n\r\n // check if exists\r\n $schemaDir = $customSchemaDir ?: $defaultSchemaDir;\r\n $schemaFilepath = \"$schemaDir/$tableNameWithoutPrefix.ini.php\"; \r\n $schemaExists = file_exists($schemaFilepath);\r\n \r\n //\r\n return $schemaExists;\r\n}", "title": "" }, { "docid": "da87a67fca97227a541cf4f5fce8acd3", "score": "0.62872905", "text": "protected function validate()\n {\n if (empty($this->schemaFilesets)) {\n throw new BuildException(\"You must specify a fileset of XML schemas.\", $this->getLocation());\n }\n\n // Make sure the output directory is set.\n if ($this->outputDirectory === null) {\n throw new BuildException(\"The output directory needs to be defined!\", $this->getLocation());\n }\n\n if ($this->validate) {\n if (!$this->xsdFile) {\n throw new BuildException(\"'validate' set to TRUE, but no XSD specified (use 'xsd' attribute).\", $this->getLocation());\n }\n }\n }", "title": "" }, { "docid": "8e6df14e8f1aa97f708ef8184129cfb5", "score": "0.62854177", "text": "public function validate(Schema $schema);", "title": "" }, { "docid": "bf1403bf919de40e300adc95d96f1af7", "score": "0.6233083", "text": "function htz_validatefile($file) {\n if (!file_exists($file)) {\n $fh = fopen($file, 'w') or htz_say(__FUNCTION__. \": Failed creating data file $file\", 2);\n fclose($fh);\n htz_say(__FUNCTION__. \": File $file created.\", 0);\n }\n}", "title": "" }, { "docid": "3302a6f3d545b92ca37410e02435dbd6", "score": "0.62223893", "text": "public function validate(string $path):bool\n\t {\n\t\tif ($this->doc === null)\n\t\t {\n\t\t\t$this->createXML();\n\t\t } //end if\n\n\t\treturn $this->doc->schemaValidate($path);\n\t }", "title": "" }, { "docid": "be2f01d410615fe33c17aa560bd57394", "score": "0.62143767", "text": "protected function validate()\n {\n // Get json array from file\n $jsonArray = $this->makeMigrationJson->jsonFileToArray($this->filePath);\n\n // Check for invalid json\n if ($jsonArray === null) {\n // Display error message\n $this->error('Invalid JSON detected: Check that your json file does not contain invalid syntax: '\n . $this->filePath);\n\n // End further execution\n return;\n }\n\n // Check for data existence\n if (empty($jsonArray)) {\n // Display error message\n $this->error('No data found in json file: It seems you have no data in: ' . $this->filePath);\n\n // End further execution\n return;\n }\n\n // Validate\n $errors = $this->makeMigrationJson->validateSchema($jsonArray);\n\n // If no errors where found\n if (empty($errors)) {\n // Display confirmation message\n $this->info('No validation errors where found, congrats!');\n\n // End further execution\n return;\n }\n\n // Report results\n foreach ($errors as $tableName => $fields) {\n // For every field\n foreach ($fields as $fieldName => $fieldProperties) {\n // For every field property\n foreach ($fieldProperties as $property) {\n // Show error\n $this->error($property);\n\n // Show json reference\n $this->error(\"In section: \" . json_encode([\n $tableName => [\n $fieldName => $jsonArray[$tableName][$fieldName]\n ]\n ], JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));\n }\n }\n }\n }", "title": "" }, { "docid": "684e5a5e47ff170dd8c516df353e8b63", "score": "0.6084841", "text": "public function validate(): bool\n {\n $this->lastError = '';\n try {\n // create the schemas collection\n $schemas = $this->buildSchemas();\n // validate the document using the schema collection\n $this->validateWithSchemas($schemas);\n } catch (XmlSchemaValidatorException $ex) {\n $this->lastError = $ex->getMessage();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "a8aa1df707702e45aa4f8a17a0048bed", "score": "0.6036786", "text": "public function isDbImportFileExist() {\n $file_path = Yii::app()->basePath . '/data/db_template.sql';\n\n if (file_exists($file_path) && is_readable($file_path)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "5d261948d6cad3c2f45be9d4b47475a0", "score": "0.6036587", "text": "public function testDecodeFileFailsIfValidationFailsWithSchemaFile()\n {\n $this->decoder->decodeFile($this->fixturesDir.'/invalid.json', $this->schemaFile);\n }", "title": "" }, { "docid": "8111aed6f161422853dd6472b1de9db4", "score": "0.5994233", "text": "public function validate($filename = null) {}", "title": "" }, { "docid": "075eb5f32298e2317a71ed1ba6d5783b", "score": "0.5957391", "text": "private function findSchemaDirectory() {\n if (file_exists(DRUPAL_ROOT . \"/schema\")) {\n $this->directory = DRUPAL_ROOT . \"/schema\";\n }\n // Otherwise we will use our default schema.\n else if (file_exists(__DIR__ . \"/../../../../schema\")) {\n $this->directory = __DIR__ . \"/../../../../schema\";\n }\n else {\n throw new \\Exception(\"No schema found.\");\n }\n }", "title": "" }, { "docid": "53c08eb4e547334f818b568e22588a64", "score": "0.59057784", "text": "public function validate($xmlFile)\n {\n libxml_use_internal_errors(true); //Doesnt show the errors automatically\n\n if (!file_exists($this->getXsd())) {\n throw new Exception(\"XSD missing\");\n return false;\n }\n\n $this->validator->load($xmlFile, LIBXML_NOBLANKS);\n\n if (!$this->validator->schemaValidate($this->getXsd())) //Errors in the xml file\n {\n return false;\n }\n else{ //No errors\n return true;\n }\n }", "title": "" }, { "docid": "95beb1218dd11b1cac19efc5a32c681e", "score": "0.5888182", "text": "public function isValidPathReturnsTrueIfPathExists() {}", "title": "" }, { "docid": "36de5b8c477653616a82824108d9afe5", "score": "0.5887034", "text": "public function validate()\n {\n $this->validateRequired('file');\n $this->validateRequired('name');\n $this->validateDefault('extension', '.xml');\n $this->validateDefault('directory', '');\n }", "title": "" }, { "docid": "31b2963d78096aab30dbbcd4834dfeb1", "score": "0.5885122", "text": "private function validateActiveFilePath() {\n $file_path = $this->getActiveFilePath();\n\n if (!file_exists($file_path)) {\n throw new MigrateException(sprintf('Data source file path %s does not exist', $file_path));\n }\n }", "title": "" }, { "docid": "e37232211c69852ec94222c6d89f9fb7", "score": "0.5867175", "text": "public function registerSchemaFromFile($fileName) {}", "title": "" }, { "docid": "72a0745cfb05a0c7aa19030b603e702e", "score": "0.58599114", "text": "static function schemaExists($schema_name) {\n\n // First make sure we have a valid schema name.\n if (preg_match('/^[a-z][a-z0-9]+$/', $schema_name) === 0) {\n // Schema name must be a single word containing only lower case letters\n // or numbers and cannot begin with a number.\n $this->logger->error(\n \"Schema name must be a single alphanumeric word beginning with a number and all lowercase.\");\n return FALSE;\n }\n\n $sql = \"\n SELECT true\n FROM pg_namespace\n WHERE\n has_schema_privilege(nspname, 'USAGE') AND\n nspname = :nspname\n \";\n $query = \\Drupal::database()->query($sql, [':nspname' => $schema_name]);\n $schema_exists = $query->fetchField();\n if ($schema_exists) {\n return TRUE;\n }\n return FALSE;\n }", "title": "" }, { "docid": "f4f1e34a0ed92548a2faa37dc038dfd8", "score": "0.57908094", "text": "public function createSchemaIfNotExists($schema)\n {\n }", "title": "" }, { "docid": "6665032f3207e774b9606056798a6b10", "score": "0.5785522", "text": "function testValidateXMLwithSchemaOK() {\n $this->assertIdentical(\n binarypool_validate::validate('XML', 'test', realpath(dirname(__FILE__).'/../res/xmlfile.xml')),\n true);\n }", "title": "" }, { "docid": "fcd8c6df34197db818012055a37c5596", "score": "0.57565314", "text": "public function schemaExists( $dbName, $schema )\n {\n \n $this->setLoginEnv( $this->user, $this->passwd );\n \n UiConsole::debugLine( 'psql '.$dbName.' -h '.$this->host.' -tAc \"SELECT 1 FROM information_schema.schemata WHERE catalog_name=\\''.$dbName.'\\' and schema_name=\\''.$schema.'\\';\"' );\n \n $val = Process::execute\n ( \n 'psql '.$dbName.' -h '.$this->host.' -tAc \"SELECT 1 FROM information_schema.schemata WHERE catalog_name=\\''.$dbName.'\\' and schema_name=\\''.$schema.'\\';\"' \n );\n \n if( '1' == trim($val) )\n {\n return true;\n }\n else \n {\n UiConsole::debugLine( $val );\n return false;\n }\n \n }", "title": "" }, { "docid": "1fb441a47d970b26b2c897b09bbcb501", "score": "0.5747304", "text": "public function validatePath($path)\n\t{\n\t\tif (!file_exists($path))\n\t\t{\n\t\t\tthrow new SereneException\\FileNotFound($path);\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "0c7d47fae2892c237039524a635a3140", "score": "0.573445", "text": "public function validateSchema($schemaFile)\n\t{\n\t\t$json = file_get_contents($schemaFile);\n\t\t\n\t\t$parser = new JsonParser();\n\t\t$result = $parser->lint($json);\n\t\t\n\t\t$schemaData = json_decode($json);\n\t\t$validator = new Validator();\n\t\t$validator->check($this->raw, $schemaData);\n\t\t\n\t\tif (!$validator->isValid()) {\n\t\t\t$errors = array();\n\t\t\tforeach ((array) $validator->getErrors() as $error) {\n\t\t\t\t$errors[] = ($error['property'] ? $error['property'].' : ' : '').$error['message'];\n\t\t\t}\n\t\t\tthrow new JsonValidationException($errors);\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5f89543347d83b0f5ef98008882770ef", "score": "0.57269925", "text": "private function validateFileExists($file)\n {\n if (!is_file($file)) {\n throw new \\Exception('File does not exist.'.\"\\n\".'Please be sure $file is correctly set.');\n }\n }", "title": "" }, { "docid": "00a7235e0a3f99e4eb7462bf2a52be7c", "score": "0.5677398", "text": "function onCheckSchema() {\n $schema = Schema::get();\n $schema->ensureTable('ostatus_profile', Ostatus_profile::schemaDef());\n $schema->ensureTable('ostatus_source', Ostatus_source::schemaDef());\n $schema->ensureTable('feedsub', FeedSub::schemaDef());\n $schema->ensureTable('hubsub', HubSub::schemaDef());\n $schema->ensureTable('magicsig', Magicsig::schemaDef());\n return true;\n }", "title": "" }, { "docid": "9f517ab4856eed24fa171cda816f6407", "score": "0.56448394", "text": "function chado_dbschema_exists($chado_schema) {\n\n // Retrieve the default name of the chado schema if it's not provided.\n if ($chado_schema === NULL) {\n $chado_schema = chado_get_schema_name('chado');\n }\n\n // VALIDATION: Schema name validated in ChadoSchema Contructor.\n\n // Create a new ChadoSchema instance and use it to check if the index exists.\n return \\Drupal\\tripal_chado\\api\\ChadoSchema::schemaExists($chado_schema);\n}", "title": "" }, { "docid": "a9d255855b111736f60e6f83ab0f1a54", "score": "0.5643431", "text": "protected function validateFileStructure() {\n\t\t$indexFile = $this->getSourceDirectory() . '/Index.rst';\n\n\t\t// Second attempt to detect whether the package can be rendered\n\t\tif (!is_file($indexFile)) {\n\t\t\t$indexFile = $this->getSourceDirectory() . '/Documentation/Index.rst';\n\n\t\t\tif (!is_file($indexFile)) {\n\t\t\t\tthrow new \\Exception('No Index.rst nor Documentation/Index.rst file in archive. Check out your file structure.', 1355425162);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c80d1c0b87c234939c2305e184027d55", "score": "0.5640295", "text": "public function fileExistsAction(){\n $validator = new Exists();\n $file = APPLICATION_PATH.'/public/files/check.txt';\n \n if ($validator->isValid($file)){\n echo 'File exists';\n }\n else \n {\n $messages = $validator->getMessages();\n foreach($messages as $message){\n echo $message.'<br>';\n }\n }\n\n return false;\n\n }", "title": "" }, { "docid": "1fa9a413e98cc8e8aff69f4d51408400", "score": "0.56389964", "text": "public function verifyIfNotExists()\r\n {\r\n $arr = file('sources.txt');\r\n $cont=0;\r\n foreach ($arr as $k => $line)\r\n {\r\n if (strpos($line, $this->FieldValue->getUrlField()) !== false || strpos($line, $this->FieldValue->getUrlNameField()) !== false )\r\n $cont++;\r\n }\r\n if($cont>0)\r\n {\r\n print( \"<script>alert('Essa fonte já está cadastrada!');</script>\");\r\n return true;\r\n }\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "7edd29acfda9f1fe708ae58e5e13375d", "score": "0.5633227", "text": "function table_definition_exists($table_name)\n{\n $file_path = KanojoX::$settings->table_definitions_path . \"$table_name.json\";\n return file_exists($file_path);\n}", "title": "" }, { "docid": "860611d77a527e8e19af9a71cff926d8", "score": "0.56268233", "text": "public function testDecodeFileFailsIfValidationFailsWithSchemaObject()\n {\n $this->decoder->decodeFile($this->fixturesDir.'/invalid.json', $this->schemaObject);\n }", "title": "" }, { "docid": "fb75e1f9f0ed3a053324988927dd515d", "score": "0.55883676", "text": "private function checkFile(): void\n {\n if (!is_file($this->path . $this->fileName)) {\n $this->io->note('Record file does not exist! \"' . $this->path . $this->fileName . '\"');\n $this->createFile();\n }\n }", "title": "" }, { "docid": "d5ab801f4e52d53ae9d03bf5f79d8f0b", "score": "0.5570691", "text": "private function loadSchemas() {\n $path = $this->path.'sql';\n $files = scandir($path);\n foreach ($files as $file) {\n if (!in_array($file, ['.', '..'])) {;\n $content = file_get_contents($path.'/'.$file);\n if ($content) {\n $sql = $this->sqlQuery->setSql($content)->build();\n if (!$this->database->execute($sql, false)) {\n return false;\n }\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "3cafa41e5ed5b38b7d257677352012b3", "score": "0.5567217", "text": "function validate($schema)\r\n { \r\n if($this->mStoreHouseDOM->schemaValidate($schema))\r\n return print 'valid';\r\n else return print 'UnValid';\r\n }", "title": "" }, { "docid": "0af0869c40c3f2414b3fcccc6b0729a0", "score": "0.55314416", "text": "private function checkDataSourceExists()\r\n {\r\n if (!is_dir($this->dataSource) && !$this->existsDocument($this->dataSource))\r\n throw new \\InvalidArgumentException(\"Any Json could be retrieved because {$this->dataSource} not exists\");\r\n }", "title": "" }, { "docid": "f9e5d7d1b34ab7d37d07a5e7f2269f6f", "score": "0.5493204", "text": "public function getXmlFilepathIsValid()\n {\n return $this->xmlFilepathIsValid;\n }", "title": "" }, { "docid": "cf0fbb81b3bae1fba36ed4fab06200f6", "score": "0.54651713", "text": "protected function validXmlNotice()\n\t{\n return @$this->document->schemaValidate(dirname(__FILE__).'/../xsd/hoptoad_2_0.xsd');\n\t}", "title": "" }, { "docid": "6aa38a39c9f355d98b1673c2400ff98b", "score": "0.5460803", "text": "public static function validateSchema($schema) {\n // @todo Use an existing JSON Schema Validation Library.\n $errors = array();\n foreach (self::$requiredProperties as $property => $type) {\n if (!isset($schema->{$property})) {\n $errors[] = \"Required schema property $property not found.\";\n continue;\n }\n if (gettype($schema->{$property}) !== $type) {\n $errors[] = \"Schema property $property is not of the specified type $type\";\n }\n }\n return !empty($errors) ? $errors : TRUE;\n }", "title": "" }, { "docid": "e107061124b50a408b887208b74dfb8d", "score": "0.5455827", "text": "public function isValid() {\n\t\treturn $this->directory && realpath($this->directory . '/composer.json');\n\t}", "title": "" }, { "docid": "0f0cc6c74bddae4e859f21d0106a839c", "score": "0.5454314", "text": "public function validate($xsdPath, $xml = null)\n\t{\n\t\t$xml = $xml ?: $this->xml;\n\n\t\tlibxml_use_internal_errors(true);\n\t\t$xmlDoc = new \\DOMDocument(); \n\t\t$xmlDoc->loadXML($xml);\n \n\t\tif (!$xmlDoc->schemaValidate($xsdPath)) {\n \n\t\t\t$this->errors = libxml_get_errors();\n \n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ebc5bb3b44b1c34db79893acee5df652", "score": "0.5443832", "text": "private function validateFile()\n {\n if (is_null($this->file)) {\n throw new \\Exception('Invalid filler file.'.\"\\n\".'$file property not set.');\n }\n }", "title": "" }, { "docid": "0395263d8875f1928538bafe15bddb21", "score": "0.5424954", "text": "private function checkExist() {\n if (file_exists($this->filePath))\n {\n return true;\n\n }\n else\n return false;\n }", "title": "" }, { "docid": "385f490160381f08a2f15e0183eca916", "score": "0.5422442", "text": "abstract protected function _checkStylesheetFilesExist();", "title": "" }, { "docid": "4415bb77720e44eec0681626f1e81f61", "score": "0.54108167", "text": "public function hasSchema()\n {\n $tables = $this->connection->query(\"SELECT table_name FROM information_schema.tables WHERE table_schema = '{$this->schemaName}';\");\n while ($table = $tables->fetchColumn()) {\n if ($table == $this->tableName) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "f4fb673a752a28ee83848d893cfa9df3", "score": "0.53935057", "text": "function isValidBin() {\n if ($this->bin == 'cache' || substr($this->bin, 0, 6) == 'cache_') {\n // Skip schema check for bins with standard table names.\n return TRUE;\n }\n // These fields are required for any cache table.\n $fields = array('cid', 'data', 'expire', 'created', 'serialized');\n // Load the table schema.\n $schema = drupal_get_schema($this->bin);\n // Confirm that all fields are present.\n return isset($schema['fields']) && !array_diff($fields, array_keys($schema['fields']));\n }", "title": "" }, { "docid": "d1ac6955e35d14861694275f712fbdfc", "score": "0.5385196", "text": "public function fileExists()\n {\n return $this->mainValid;\n }", "title": "" }, { "docid": "53b64797ad8ab42e00c64c6c943837f8", "score": "0.53849965", "text": "function testValidateXMLwithSchema() {\n $this->expectException(new binarypool_exception(118, 400, \"XML document is not valid.\"));\n $this->assertIdentical(\n binarypool_validate::validate('XML', 'test', realpath(dirname(__FILE__).'/../res/xmlfile-invalid.xml')),\n false);\n }", "title": "" }, { "docid": "7bbdf1a9c993399dcceef979c22a9fd1", "score": "0.53807145", "text": "public function versionFileExists(): bool\n {\n return Storage::exists($this->versionFile);\n }", "title": "" }, { "docid": "43f41b59f71288675f49328023a8917f", "score": "0.5377535", "text": "private function checkFile()\n { if (! file_exists($this->fileName))\n return self::NOFILE;\n\n //Can we open it?\n $handle = fopen($this->fileName, \"r\");\n if (! $handle)\n die(\"Unable to open file: $this->fileName\\n\");\n\n //Is the header what we are expecting?\n $header = fread($handle, self::HEADERBYTES);\n if (! $header)\n die(\"Unable to read header of file: $this->fileName\\n\");\n if (strncmp($header, self::EMPTYCAL, self::HEADERBYTES))\n {\n fclose($handle);\n return self::INVALIDFILE;\n }\n\n fclose($handle);\n return self::FILEOK;\n }", "title": "" }, { "docid": "57b8764f4c5039dd70769a87a0b4aa86", "score": "0.53722054", "text": "protected function isXmlValid()\n {\n libxml_use_internal_errors(true);\n $doc = new DOMDocument();\n $doc->loadXML($this->xmlFilePath);\n $errors = libxml_get_errors();\n\n if(empty($errors)){\n return true;\n }\n throw new DataSourceException('File'.$this->xmlFilePath.' is not a valid xml:'.print_r($errors, true));\n }", "title": "" }, { "docid": "cf8b08d73714874b1a6e036703138812", "score": "0.53713644", "text": "private function validatePath($databasePath)\n {\n if (!file_exists($databasePath)) {\n throw new \\InvalidArgumentException(\"Skype Database path '{$databasePath}' is not valid\");\n }\n\n if (!is_readable($databasePath)) {\n throw new \\InvalidArgumentException(\"Skype Database path '{$databasePath}' is not readable\");\n }\n }", "title": "" }, { "docid": "46cdc3692e77e0e6dd067e8887a2aeb5", "score": "0.53629845", "text": "function checkIfDegreeAbreviationsFileExists()\n {\n \t\n if (file_exists($this->degreeAbreviationsXMLFile)) return true; else return false;\n \n \n }", "title": "" }, { "docid": "e1b26cbb1dae8e0fffc8f0b6f545c0c7", "score": "0.536105", "text": "protected function loadSchema()\n\t{\n\t\t//\n\t\t// Init local storage.\n\t\t//\n\t\t$schemas = [];\n\n\t\t//\n\t\t// Iterate Json files directory.\n\t\t//\n\t\tforeach( new \\DirectoryIterator( $this->mJson ) as $file )\n\t\t{\n\t\t\t//\n\t\t\t// Skip dots.\n\t\t\t//\n\t\t\tif( $file->isDot() )\n\t\t\t\tcontinue;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// =>\n\n\t\t\t//\n\t\t\t// Select Json files.\n\t\t\t//\n\t\t\tif( $file->isFile()\n\t\t\t && (strtolower( $ext = $file->getExtension() ) == \"json\") )\n\t\t\t{\n\t\t\t\t//\n\t\t\t\t// Select schema files.\n\t\t\t\t//\n\t\t\t\tif( (substr( $file->getBasename( \".$ext\" ), 0, 7 ) == \"schema-\")\n\t\t\t\t && in_array( substr( $file->getBasename( \".$ext\" ), 7 ),\n\t\t\t\t\t\t\t $this->mStandards ) )\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// Load schema.\n\t\t\t\t\t//\n\t\t\t\t\t$schema\n\t\t\t\t\t\t= json_decode(\n\t\t\t\t\t\t\tfile_get_contents( $file->getRealPath() ),\n\t\t\t\t\t\t\tTRUE\n\t\t\t\t\t);\n\n\t\t\t\t\t//\n\t\t\t\t\t// Get schema code.\n\t\t\t\t\t// We assume the \"properties\" element is not empty,\n\t\t\t\t\t// we get the first and only element.\n\t\t\t\t\t//\n\t\t\t\t\tforeach( $schema[ \"properties\" ] as $code => $value ) break;\n\n\t\t\t\t\t//\n\t\t\t\t\t// Load schema attributes.\n\t\t\t\t\t//\n\t\t\t\t\t$schemas[ $code ] = [];\n\t\t\t\t\tif( array_key_exists( '$schema', $schema ) )\n\t\t\t\t\t\t$schemas[ $code ][ '$schema' ] = $schema[ '$schema' ];\n\t\t\t\t\tif( array_key_exists( \"title\", $schema ) )\n\t\t\t\t\t\t$schemas[ $code ][ \"title\" ] = $schema[ \"title\" ];\n\t\t\t\t\tif( array_key_exists( 'description', $schema ) )\n\t\t\t\t\t\t$schemas[ $code ][ \"description\" ] = $schema[ \"description\" ];\n\t\t\t\t\tif( array_key_exists( \"required\",\n\t\t\t\t\t\t\t\t\t\t $schema[ \"properties\" ][ $code ][ \"items\" ] ) )\n\t\t\t\t\t\t$schemas[ $code ][ \"required\" ]\n\t\t\t\t\t\t\t= $schema[ \"properties\" ][ $code ][ \"items\" ][ \"required\" ];\n\n\t\t\t\t\t//\n\t\t\t\t\t// Load properties.\n\t\t\t\t\t//\n\t\t\t\t\t$schemas[ $code ][ \"properties\" ]\n\t\t\t\t\t\t= $schema[ \"properties\" ][ $code ][ \"items\" ][ \"properties\" ];\n\n\t\t\t\t\t//\n\t\t\t\t\t// Collect types.\n\t\t\t\t\t//\n\t\t\t\t\tforeach( $schemas[ $code ][ \"properties\" ] as $prop )\n\t\t\t\t\t\t$this->mTypes[] = $prop[ \"type\" ];\n\n\t\t\t\t} // Is schema file.\n\n\t\t\t} // Json file.\n\n\t\t} // Iterating Json files directory.\n\n\t\t//\n\t\t// Normalise types.\n\t\t//\n\t\t$this->mTypes = array_values( array_unique( $this->mTypes ) );\n\n\t\treturn $schemas;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ==>\n\n\t}", "title": "" }, { "docid": "bf9ffff2b9cc8958028b9064e334d060", "score": "0.5350989", "text": "public function validate(\\Examples\\ThriftServices\\Hadoop\\Conf\\HadoopDatabaseConf $conf);", "title": "" }, { "docid": "9de54d990f7ef4e99848187c545c0659", "score": "0.53444797", "text": "public function isValidFile($key)\n {\n return array_key_exists($key, $this->parameters) &&\n array_key_exists('size', $this->parameters[$key]) &&\n $this->parameters[$key]['error'] == 0;\n }", "title": "" }, { "docid": "584b666cbcb1554bdb98d23a07a39e9f", "score": "0.53198576", "text": "public function createSchema();", "title": "" }, { "docid": "c1d7640fc4cfad7d3055a5c23562141a", "score": "0.53152174", "text": "protected function createSchema() : Schema {}", "title": "" }, { "docid": "c649934da5573d56547fc372aefbbc00", "score": "0.5313873", "text": "public function fullValidation() : bool\n {\n if( Helper::validateTableName( $this->name ) )\n $this->isValid = TRUE;\n else\n $this->isValid = FALSE; \n return $this->isValid;\n }", "title": "" }, { "docid": "d9e721241df17d11915be440c66adaa8", "score": "0.53090924", "text": "function checkFields()\n\t{\n\t\t$mandatoryFields = array(\"name\", \"title\", \"version\", \"summary\", \"author\", \"contributor\");\n\n\t\t$notExist = array();\n\n\t\t$vars = get_object_vars($this);\n\n\t\tforeach($mandatoryFields as $field)\n\t\t{\n\t\t\tif (!array_key_exists($field, $vars))\n\t\t\t{\n\t\t\t\t$this->error = true;\n\t\t\t\t$notExist[] = $field;\n\t\t\t}\n\t\t}\n\n\t\tif ($this->error)\n\t\t{\n\t\t\tif (empty($notExist))\n\t\t\t{\n\t\t\t\t$this->message = \"Fatal error: Probably specified file is not XML file or is not acceptable\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->message = \"Fatal error: The following fields are required: \";\n\t\t\t\t$this->message .= join(\", \", $notExist);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c2e50ae5e511dcde4793aaac9efabca7", "score": "0.52976507", "text": "private function validateTable()\n {\n if (is_null($this->table) || empty($this->table)) {\n throw new \\Exception('Invalid filler file.'.\"\\n\".'$table property not set.');\n }\n }", "title": "" }, { "docid": "9cc2b4a2dad88c3e4a87fcac2299c091", "score": "0.5294", "text": "public function isValid()\n\t{\n\t\tif ($this->_configFile != \"\" && $this->_configFile != null\n\t\t\t&& is_file($this->_configFile) && is_readable($this->_configFile))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "ce832d1ee196748cade28ba645feb757", "score": "0.52815896", "text": "public function isUsingSchema()\n {\n return $this->config->getSchemaEnabled();\n }", "title": "" }, { "docid": "e66c5f808041d6e4c741065f5949bd09", "score": "0.52804947", "text": "function validate($path);", "title": "" }, { "docid": "943b1cecf7d25efcc044fb39a2b25d67", "score": "0.5270194", "text": "public function testDecodeFileFailsIfSchemaInvalid()\n {\n $this->decoder->decodeFile($this->fixturesDir.'/valid.json', 'bogus.json');\n }", "title": "" }, { "docid": "eb9ccb4fb03760333ac48a7dfdde376e", "score": "0.5265837", "text": "private function checkFileExists($file)\n\t{\n\t\tif (!file_exists($file))\n\t\t{\n\t\t\tthrow new FileNotFoundException($file);\n\t\t}\n\t}", "title": "" }, { "docid": "0f9413a75f483383e50045d6cfe847ca", "score": "0.525321", "text": "public function isExistingMetricsFile()\n {\n return $this->_blFileExist;\n }", "title": "" }, { "docid": "07c8dce288aba906171a1977300788e2", "score": "0.52515495", "text": "protected function check() {\n\t\tif (empty($this->file) || $this->file['error'] != 0) {\n\t\t\tthrow new \\Exception('missing zip file');\n\t\t}\n\n\t\tif ($this->parameters['doc_name'] == '') {\n\t\t\tthrow new \\Exception('missing doc_name parameter');\n\t\t}\n\t}", "title": "" }, { "docid": "568fbe911470df5a23e310f98bcf2de5", "score": "0.5250933", "text": "public function isValid(): bool {\r\n\r\n $file = $this -> getFile();\r\n\r\n if(false === $file instanceof File || false === is_readable($file -> getPath())) {\r\n return true;\r\n }\r\n\r\n $size = filesize($file -> getPath());\r\n\r\n if($size > $this -> getParameter('size'))\t{\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "057893de9b9cd5132c9d33ab7f5999f3", "score": "0.5244956", "text": "public function verifyDB(){\n $errors = array();\n $Assets = $this->xpdo->getIterator('Asset');\n foreach ($Assets as $A) {\n // Missing File\n if (!file_exists($A->get('path'))) {\n $errors[] = array(\n 'status' => 'error',\n 'code' => 'missing_file',\n 'message' => 'File does not exist',\n 'data' => $A->toArray()\n );\n continue;\n }\n // Verify signature\n $actual = md5_file($A->get('path'));\n if ($actual != $A->get('sig')) {\n $errors[] = array(\n 'status' => 'error',\n 'code' => 'incorrect_signature',\n 'message' => 'File has been modified. Signature incorrect.',\n 'data' => $A->toArray()\n ); \n }\n \n }\n return $errors;\n }", "title": "" }, { "docid": "0e4dabbb473b9744309046dd57ffe2d2", "score": "0.5242428", "text": "function canvasactions_file2canvas_validate_file(&$element, &$form_status) {\n if (! file_exists($element['#value']) && ! file_exists(file_default_scheme() . '://' . $element['#value'])) {\n form_error($element, t(\"Unable to find the named file '%filepath' in either the site or the files directory. Please check the path. Use relative paths only.\", array('%filepath' => $element['#value'])) );\n }\n}", "title": "" }, { "docid": "c7e70a627fb9b5f02fa0da06d65d6261", "score": "0.5242248", "text": "public function actionIndex(): int\n {\n if (!file_exists($this->file)) {\n Schematic::error('File not found: '.$this->file);\n\n return 1;\n }\n\n $dataTypes = $this->getDataTypes();\n $this->importFromYaml($dataTypes);\n Schematic::info('Loaded schema from '.$this->file);\n\n return 0;\n }", "title": "" }, { "docid": "940cb8578d9c4feec61818753d89bb1d", "score": "0.523974", "text": "public function exists($table){\n\t\t$path = $this->path.$table.'.json';\n\t\t$errorConfig = file_exists($path);\t\t\n\t\t$path = $this->path.$table.'.config.json';\t\t\n\t\t$errorTable = file_exists($path);\n\t\tif(!$errorConfig or !$errorTable){\t\t\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\t\n\t}", "title": "" }, { "docid": "61758832b3e30e756bc5a89d7003ea58", "score": "0.5238563", "text": "public function validate(mixed $path): void\n {\n if (! $this->isFile($path)) {\n throw new FileNotFoundException($path);\n }\n }", "title": "" }, { "docid": "5c0934ba5e38d891cce3a59c62556b00", "score": "0.5237646", "text": "public function testForInvalidFile()\n {\n $file = \"/home/parina/test.xsl\";\n $test = new highBirthRate();\n try {\n $result = $test->checkFilePath($file);\n }\n catch (Exception $e){\n $this->assertEquals(\"Invalid file\", $e->getMessage());\n }\n }", "title": "" }, { "docid": "8fcde4f14a607a70a96c643cdb3bd641", "score": "0.5230243", "text": "private function existsDocument($sourceFile)\r\n {\r\n return file_exists($sourceFile);\r\n }", "title": "" }, { "docid": "32c0d4b8f6b2bf31f9ab608eb01d9791", "score": "0.5229492", "text": "public function validate()\n {\n $validator = new Validation();\n $validator->add('namespace', new Namespaces());\n // Options to validate with validators\n $options = [\n 'namespace' => $this->namespace,\n ];\n $messages = $validator->validate($options);\n\n // Check if template directory exist\n if (is_dir($this->template) === false) {\n $message = new Message('Template path do not exists');\n $validator->appendMessage($message);\n }\n\n if (count($messages)) {\n foreach ($messages as $message) {\n $this->errors[] = $message->getMessage();\n }\n return false;\n }\n // Validation passed, init class\n $this->init();\n return true;\n }", "title": "" }, { "docid": "3dc93e32de105d2483e818c8e731c531", "score": "0.5226722", "text": "function onCheckSchema()\n {\n $schema = Schema::get();\n\n // For storing user-submitted flags on profiles\n\n $schema->ensureTable('user_flag_profile',\n array(new ColumnDef('profile_id', 'integer', null,\n false, 'PRI'),\n new ColumnDef('user_id', 'integer', null,\n false, 'PRI'),\n new ColumnDef('created', 'datetime', null,\n false, 'MUL'),\n new ColumnDef('cleared', 'datetime', null,\n true, 'MUL')));\n\n return true;\n }", "title": "" }, { "docid": "15ffc90ef2e6914267c6137de883693a", "score": "0.5222512", "text": "public function chkValidFile()\n\t\t\t{\n\t\t\t\t$valid_arr = array('recentlyAdded', 'topFavorites', 'topRated', 'todayMostViewed', 'yesterdayMostViewed', 'thisWeekMostViewed',\n\t\t\t\t'thisMonthMostViewed', 'thisYearMostViewed', 'mostViewed', 'todayMostDiscussed', 'yesterdayMostDiscussed',\n\t\t\t\t'thisWeekMostDiscussed', 'thisMonthMostDiscussed', 'thisYearMostDiscussed',\n\t\t\t\t'mostDiscussed',);\n\t\t\t\tif(in_array($this->fields_arr['pg'], $valid_arr))\n\t\t\t\treturn true;\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "ae273ab2ff4e06166047a8d6161b966c", "score": "0.5221759", "text": "protected function fileValid(string $file): bool\n {\n $test = json_decode($file, true);\n if ((!$test) || (!isset($test['default_file']))) {\n return false;\n }\n $file = realpath($this->rootDir) . '/' . $this->webDir . $test['default_file'];\n\n return file_exists($file);\n }", "title": "" }, { "docid": "f94199941c7f42c5bceff9fc036aef52", "score": "0.52122945", "text": "abstract public function schemaPath(): string;", "title": "" }, { "docid": "eb25d3c168769974cca097d77da96587", "score": "0.52114683", "text": "public function is_valid ()\n {\n foreach ($this->files as $file)\n {\n if (! $file->is_valid ())\n {\n return false;\n }\n }\n\n return true; // All files are valid\n }", "title": "" }, { "docid": "64d53bd8655544e030bdc1511c7a6c19", "score": "0.5189197", "text": "public function validate()\n {\n $this->checkRequirements();\n }", "title": "" }, { "docid": "7433dc9a9d734dcc19eedfe02141805e", "score": "0.5185709", "text": "public function check_file($path) {\r\n\r\n if (file_exists($path)) {\r\n\r\n return true;\r\n } else {\r\n\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "ec212631930f0325a2c8d34625e47cfe", "score": "0.5181055", "text": "private function exists()\n {\n if (file_exists($this->fileName)) {\n $this->status = false;\n $this->errors[] = 'File already exists';\n }\n }", "title": "" }, { "docid": "e8fe0c3b09f5ee00316b1f9d31962c8e", "score": "0.5180145", "text": "public function validate()\n {\n $this->validateRequired('base');\n $this->validateRequired('themes');\n $this->validateRequired('patterns');\n $this->validateRequired('output');\n }", "title": "" }, { "docid": "65bd77bbd934f5380176f06146823e44", "score": "0.5168911", "text": "function check_file_integrity($filename)\n{\n $file = fopen($filename, 'r');\n $line = fgets($file);\n fclose($file);\n\n assert_fatal(\n strpos($line, '<?php require_once($_SERVER[\\'DOCUMENT_ROOT\\'].\"/yapf/valid_request.php\");') === 0,\n 'included file `' . $filename . '` not under request control. (add `<?php yapf_require_once($_SERVER[\\'DOCUMENT_ROOT\\'].\"/yapf/valid_request.php\");`)');\n}", "title": "" }, { "docid": "d82ad2603c8f7c960283794f260ccb64", "score": "0.5163688", "text": "function wc_is_file_valid_csv($file, $check_path = \\true)\n {\n }", "title": "" }, { "docid": "0301a00a2726488c822ae77202ca5503", "score": "0.5156081", "text": "public function checkStructure()\n {\n erLhcoreClassUpdate::doTablesUpdate(json_decode(file_get_contents('extension/lhctelegram/doc/structure.json'), true));\n }", "title": "" }, { "docid": "c34f0c9d866fc32be638b7a9aaefe6e6", "score": "0.5152678", "text": "public function testNoPreExistingSchema() {\n $schema = \\Drupal::keyValue('system.schema')->getAll();\n $this->assertArrayNotHasKey('update_test_no_preexisting', $schema);\n $this->assertFalse(\\Drupal::state()->get('update_test_no_preexisting_update_8001', FALSE));\n\n $this->runUpdates();\n\n $schema = \\Drupal::keyValue('system.schema')->getAll();\n $this->assertArrayHasKey('update_test_no_preexisting', $schema);\n $this->assertEquals('8001', $schema['update_test_no_preexisting']);\n $this->assertTrue(\\Drupal::state()->get('update_test_no_preexisting_update_8001', FALSE));\n }", "title": "" }, { "docid": "82eef9b278db1d119d35f9d31237005e", "score": "0.51517504", "text": "protected function fileHandleIsValid(): bool {\n return is_resource($this->fileHandle);\n }", "title": "" }, { "docid": "99b41e0706cb6bdc863988197e1e9109", "score": "0.5151326", "text": "public function schemaExists($name) {\r\n $query = 'SELECT 1 FROM pg_namespace WHERE nspname = \\'' . pg_escape_string($name) . '\\'';\r\n $results = $this->dbDriver->fetch($this->dbDriver->query($query));\r\n return !empty($results);\r\n }", "title": "" }, { "docid": "08307e3bdeba5af7b40701a3572aca57", "score": "0.5150747", "text": "public function validate()\n {\n // Check if media_id field was passed\n if ( ! $this->document_id)\n throw new InvalidDataException(\"A document_id is required for a document link, none given.\");\n\n // Check if slug field was passed\n if ( ! $slug = $this->slug)\n throw new InvalidDataException(\"A slug is required for a document link, none given.\");\n\n // Check if file already exists\n $query = $this->newQuery();\n $persistedItem = $query->where('slug', '=', $slug)->first();\n\n if ($persistedItem and $persistedItem->getId() != $this->getId())\n throw new DocumentLinkExistsException(\"A document link already exists with slug [$slug], slug must be unique for document link.\");\n\n return true;\n }", "title": "" }, { "docid": "5452e59b529a62d1233219a86a3ee6c2", "score": "0.5148598", "text": "public static function validate(string $filePath): bool\n {\n if (! file_exists($filePath)) {\n throw new XmlException('XML file missing');\n } elseif (! is_readable($filePath)) {\n throw new XmlException('XML file is not readable');\n }\n\n // domdocument dies silently when given a big (1.7GB) file, though known to cope with 892Mb\n // @todo: look at using xmlreader instead @see: https://gist.github.com/tentacode/5934634 for some examples\n if (filesize($filePath) > 1000000000) { // 1Gb\n return false;\n }\n\n libxml_clear_errors();\n libxml_use_internal_errors(true);\n\n set_error_handler(function ($errno, $errstr, $errfile, $errline, $errcontext): void {\n throw new XmlException($errstr, $errno);\n });\n\n // possibly more efficient to pass a $dom object rather than save/reload, but cleaner to assume already saved\n $dom = new DOMDocument('1.0', 'UTF-8');\n $dom->preserveWhiteSpace = false;\n $dom->formatOutput = true;\n $dom->load($filePath);\n $dom->normalizeDocument();\n\n restore_error_handler();\n\n if (! $dom->schemaValidate(realpath(__DIR__ . '/../xsd/catalog.xsd'))) {\n throw new XmlException(static::errorSummary());\n }\n\n return $dom->save($filePath) > 0;\n }", "title": "" }, { "docid": "53525c76d6c0d4417f2e46c012d9dc4e", "score": "0.5137694", "text": "function verify_fits_xml($xml_file) {\n if (filesize($xml_file) > 0) {\n return TRUE;\n }\n else {\n // Fits wont write to a file if it already exists.\n if (file_exists($xml_file)) {\n unlink($xml_file);\n }\n return FALSE;\n }\n }", "title": "" }, { "docid": "32478a5abfc5879b459e6351848c2457", "score": "0.51339626", "text": "public function hasSize() {\n\t\tif(!file_exists($this->file)){\n\t\t\t$this->addError('This file does not exist');\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "eab6d4634a8bdf688cd90966ed502b90", "score": "0.51328075", "text": "public function is_valid ()\n {\n return ($this->error == Uploaded_file_error_none);\n }", "title": "" }, { "docid": "ed770e1f87e163b27241a252665374dd", "score": "0.5129425", "text": "public function validate()\n {\n foreach ($this->getAllTables() as $tableName => $table)\n {\n $table->validate();\n }\n }", "title": "" } ]
99b686bfe84299f14a4cc0b490cf75f7
Conecto a la base de datos.
[ { "docid": "2e4438018b095fb73ef43eaa6af33ea9", "score": "0.0", "text": "public function UpdCategory ($id, $name, $shortcut) {\n $adb = new MySQL();\n $con = $adb->Connect();\n \n # La sentencia SQL permite realizar la cadena de lo que queremos consultar.\n $sql = \"UPDATE `categories` SET `name` = '$name', `shortcut` = '$shortcut'\";\n \n # Termino la sentencia SQL con la condicional.\n $sql .= \" WHERE `id` = '$id'\";\n \n # Solicito la consulta.\n $query = $con->query($sql);\n \n # Devuelvo los datos\n return $query;\n \n # Cierro la conexión con la base de datos.\n $con->close();\n \n }", "title": "" } ]
[ { "docid": "6a78681e1520e82065f826d4d3f4c18e", "score": "0.6822285", "text": "private function loadDataBase() {\r\n\t\t$this->sql = new SqlDB(self::DB_SERVIDOR, self::DB_USUARIO, self::DB_SENHA, self::DB_NOME);\r\n\t}", "title": "" }, { "docid": "2c1d1cf849933e9fe28ae48f4819a1ea", "score": "0.6802325", "text": "public function conecta(){\n //Tenta a conexão com o banco de dados\n try{\n //Abre uma conexão com o banco de dados\n $this->conexao = new PDO($this->getDBType().\":host=\".$this->getHost().\";port=\".$this->getPort().\";dbname=\".$this->getDB(), $this->getUser(), $this->getPassword());\n \n //Seta o charset como UTF8\n $this->conexao->exec(\"set names utf8\");\n }\n //Se houver erro executa Exception\n catch (PDOException $i){\n //Mostra o Erro\n die(\"Erro: <code>\" . $i->getMessage() . \"</code>\");\n }\n }", "title": "" }, { "docid": "e358c776713ce3b1a6e6346131e07225", "score": "0.656524", "text": "public function conectar(){\n\n#-----Conexion a la base de datos, se crea la variable link que llama al PDO con los valores de la Base de datos (host, nombre, usuario de DBA y pass)\n\t\t$link = new PDO(\"mysql:host=localhost;dbname;cursophp\",\"root\",\"\");\n\t\t#para hgacer el retorno en el archivo CRUD que se crea para hacer la ejecucuion.\n\t\t#var_dump($link);\n\t\treturn $link;\n\n\t}", "title": "" }, { "docid": "baf3934ae4a473630f3b2cdf83ef3417", "score": "0.6548236", "text": "function Mco_inventario()\n {\n $this->connection = Application::getDatabaseConnection();\n $this->connection->SetFetchMode(2);\n }", "title": "" }, { "docid": "bffe04caca3985982db70610744fcbc6", "score": "0.6512725", "text": "private function consulta() {\r\n $campos = implode(', ', array_keys($this->dados));\r\n $valorInserido = ':'. implode(', :', array_keys($this->dados));\r\n $this->objInsercao = \"INSERT INTO {$this->tabela} ({$campos}) VALUES ({$valorInserido})\";\r\n }", "title": "" }, { "docid": "6bd23f11c62cfcf051cdfb0394148f2f", "score": "0.64359534", "text": "public function ServicioDatos() {\n //se llama al metodo padre\n parent::Conexion();\n }", "title": "" }, { "docid": "0bf81b91b7d76fb5a803df0dcd16273a", "score": "0.64300674", "text": "private static function conectar(){\n\n $usuario = 'root';\n $password = 'tonito22';\n\n try{\n\n $conexion = new PDO(\"mysql:host=localhost;dbname=dwes\", \"$usuario\", \"$password\");\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n }catch (PDOException $e){\n die ('Abortamos la aplicación por fallo conectando con la BD' . $e->getMessage());\n }\n //si se ha conectado se indica el atributo com conexion pdo.\n self::$conexion = $conexion;\n\n }", "title": "" }, { "docid": "e680e43fc91894763e4dfcfac55cfebc", "score": "0.6417257", "text": "public function conectar(){\n\n $cadena = $this -> driver.':host='.$this->host.';dbname='.$this -> database;\n \n /*=================================\n INSTANCIAR LA CLASE PDO\n =================================*/\n \n $Conexion = new PDO($cadena, $this-> user,$this->pass);\n \n $Conexion -> setAttribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n $Conexion -> setAttribute (PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);\n \n /*=======================================\n ESTABLECER LA CODIFICACION CON Ñ Y TILDES\n =========================================*/\n $Conexion -> exec ('SET CHARACTER SET '.$this -> charset);\n\n // echo $cadena;\n // echo var_dump($Conexion);\n\n return $Conexion;\n \n }", "title": "" }, { "docid": "072453dc1fcee187a118f9d9a9153662", "score": "0.6385417", "text": "public function __construct()\r\n {\r\n $this->db = db::conexion();\r\n }", "title": "" }, { "docid": "949ae2bda2025e078287f33c80375bf7", "score": "0.6382949", "text": "function pedido()\r\n{\r\n\r\n$this->database = Database::getDb();\r\n\r\n}", "title": "" }, { "docid": "524c33adadcef3296e47faf0bfb1b5dd", "score": "0.637583", "text": "public function Conexion(){\n \n try{\n $this->conexion_db=new PDO('mysql:host=localhost; dbname=dbctk','cmolina','19841984');\n $this->conexion_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $this->conexion_db->exec(\"SET CHARACTER SET utf8\");\n return $this->conexion_db;\n \n }catch(Exception $e){\n echo \"la linea de erro es: \".$e->getLine();\n \n }\n \n \n \n \n //El codigo que esta comentado sirve para conectar con la libreria mysqli\n /*\n * \n $this->conexion_db= new mysqli(DB_HOST,DB_USUARIO,DB_CONTRA,DB_NOMBRE);\n if($this->conexion_db->connect_errno){\n echo \"Fallo al conectar a MySql: \". $this->conexion_db->connect_errno;\n return;\n }\n $this->conexion_db->set_charset(DB_CHARSET);\n */\n \n }", "title": "" }, { "docid": "5bb9c24b7b9026ba440d9d325263069d", "score": "0.63512194", "text": "function Cadastrar()\n\t\t{\n\t\t\t$sql = \"insert into usoproduto\n\t\t\t\t\t(codproduto,quant_uso,data) \n\t\t\t\t\tvalues \n\t\t\t\t\t(?,?,?)\";\n\n\t\t\t//executando o comando sql e passando os valores\n\t\t\t$this->con->prepare($sql)->execute(array(\n\t\t\t$this->codproduto,$this->quant_uso,$this->data));\n\t\t}", "title": "" }, { "docid": "84ffa53b0b6df6ffad3d56e88877dcb0", "score": "0.63062567", "text": "protected function setConectionn(){\n $this->host = \"localhost\";//IP do servidor ragnadonation\n $this->user = \"root\";//usuario de acesso ao banco de dados ragnadonation\n $this->pass = \"\";//senha de acesso ao banco de dados ragnadonation\n $this->banco = \"ragnadonation_db\";//nome do banco de dados ragnadonation\n }", "title": "" }, { "docid": "4772009beed8ea9c34d6dc5cd531f162", "score": "0.6303143", "text": "public function queryDb()\n {\n $this->database->getData();\n }", "title": "" }, { "docid": "ddf1f5fd191b3e466936e90432da97dc", "score": "0.629997", "text": "function abrirBancoModelo(){\n $conexao = new mysqli(\"localhost\",\"root\",\"\",\"banco\");\n return $conexao;\n }", "title": "" }, { "docid": "78528968754a5abf4fd6ffcc12e94e9e", "score": "0.6275307", "text": "public function __construct() {\r\n $this->conexion= mysqli_connect('localhost','root','','shopfree')or die('NO CONECTO AL BD');\r\n $this->tabela=\"usuarios\";\r\n }", "title": "" }, { "docid": "bcdef675ca97c6ba89aac73da0578928", "score": "0.62646556", "text": "public function __construct() { //el constructor para generar la estacion y para conectarse a la base de datos\r\n $this->estacion = array();\r\n $this->db = new PDO('mysql:host=localhost;dbname=u659609380_maestria', \"u659609380_user\", \"database\");\t\t\t\t\r\n }", "title": "" }, { "docid": "1285b92b559c3549db564b3be2f60840", "score": "0.6248925", "text": "public function conectar()\n\t{\n\t\tself::$objetosDeConexao++;\n\t}", "title": "" }, { "docid": "75eb47e6e4e605fcaaab88ae92b87071", "score": "0.6238656", "text": "private function conectar(){\n try{\n\t\t\t$this->conexion = Conexion::abrirConexion(); /*inicializa la variable conexion, llamando el metodo abrirConexion(); de la clase Conexion por medio de una instancia*/\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie($e->getMessage()); /*Si la conexion no se establece se cortara el flujo enviando un mensaje con el error*/\n\t\t}\n }", "title": "" }, { "docid": "f25e98de072eec14813ecd6335acabbc", "score": "0.6237832", "text": "function bd(){\n\t\t$this->baseDatos=\"baseDatos\";\n\t\t$this->servidor=\"localhost\";\n\t\t$this->usuario=\"root\";\n\t\t$this->contrasena=\"\";\n\n\t}", "title": "" }, { "docid": "c002f462402e12afc2e622209a1190c3", "score": "0.62329924", "text": "public function conectarBD(){\n \n \n try{\n \n \n $datosBD=\"mysql:host=localhost;dbname=bd_unicuellos\"; //gestor de base de datos, nombre del servidor, nombre de la base de datos DSN datos basicos de la base de datpos\n $conexionBD= new PDO($datosBD,$this->usuarioBD,$this->passwordBD); //Este codigo esta preprogramado (molde) para crear la conecexion con la base de datos, instanciar clase, \"sacar fotocopia\", constructor\n return($conexionBD);\n \n \n\n \n \n }catch(PDOException $error){\n \n echo($error->getMessage());\n \n }\n \n \n }", "title": "" }, { "docid": "fea80b144e43bc5ee24a9e367e01e650", "score": "0.6231453", "text": "function xManejoBD($BaseDatos)\n {\n\t\t$this->bd = new mysqli('localhost', 'wepAdmin', '159159', $BaseDatos);\n\t\tif (mysqli_connect_errno()) {\n\t\t\tprintf(\"Fallo la conexión: %s\\n\", mysqli_connect_error());\n\t\t\texit();\n\t\t}\n\t\tmysqli_set_charset($this->bd,\"utf8\");\n\t\t//if ($this->bd->connect_error) {die('Error de Conexión (' . $mysqli->connect_errno . ') '. $mysqli->connect_error);}\n\t}", "title": "" }, { "docid": "170f4fbb671b6e5742cb5aba09260626", "score": "0.6229923", "text": "function obtenerBaseDeDatos(){\n $password = obtenerVariableDelEntorno(\"MYSQL_PASSWORD\");\n $user = obtenerVariableDelEntorno(\"MYSQL_USER\");\n $dbName = obtenerVariableDelEntorno(\"MYSQL_DATABASE_NAME\");\n $database = new PDO('mysql:host=localhost;dbname=' . $dbName, $user, $password);\n $database->query(\"set names utf8;\");\n $database->setAttribute(PDO::ATTR_EMULATE_PREPARES, FALSE);\n $database->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $database->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n return $database;\n }", "title": "" }, { "docid": "c27992bb0ece940b8d7d90b561b6a1d4", "score": "0.6229416", "text": "public function run()\n {\n \\Illuminate\\Support\\Facades\\DB::table('giros_comerciales')->insert([\n ['nombre'=>'Comercializadora', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Taller mecánico', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Maquiladora', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Servicios Jurídicos', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Servicios Administrativos', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Servicios Contables', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Constructora', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Farmacia', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Productora', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Manufactura', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Seguridad y Vigilancia', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Limpieza', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Restaurant', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Escuela', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Agricultura', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Ganaderia', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Consultoria', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Transporte', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Desarrollo de Software', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Publicidad', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Mercadotecnia', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Diseño Gráfico', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Arquitectura', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Decoración', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Mueblería', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Renta de Maquinaria', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Servicios Profesionales', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Alimentos / Gastronomía', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Servicios Hospitalarios', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Servicios Turísticos', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Medio Ambiente', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Computación', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Inmobiliaria y bienes raíces ', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Gasolineria', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Refaccionaria', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Sector publico', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Efectivo', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Fundación', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ['nombre'=>'Eventos', 'descripcion'=>'','activo'=>1,'creado_por'=>1],\n ]);\n }", "title": "" }, { "docid": "b695efc25aa23e5119780613c33a20f1", "score": "0.6206609", "text": "protected function setConection(){\n $this->host = \"localhost\";//IP do servidor ragnarok\n $this->user = \"root\";//usuario de acesso ao banco de dados ragnarok\n $this->pass = \"\";//senha de acesso ao banco de dados ragnarok\n $this->banco = \"ragnarok\";//nome do banco de dados ragnarok\n }", "title": "" }, { "docid": "3ce6315f0c6d0b5bce9521470423e275", "score": "0.6196267", "text": "public function grabarComanda(){\r\n $cadenaSQL=\"INSERT INTO comanda(idempleado, fecha, estado, factura,caja) VALUES\"\r\n . \"('{$this->empleado}',{$this->fecha},'{$this->estado}' , {$this->factura},{$this->caja})\" ;\r\n ConectorBD::ejecutarQuery($cadenaSQL, null);\r\n }", "title": "" }, { "docid": "038a53ccbd49c791e23c29a4359766ce", "score": "0.61812305", "text": "public function teste() {\n\n $this->persistent->setTable('relatorio');\n $this->persistent->setColumns('curso', 'ano', 'questao', 'enade');\n\n $this->dados = [\n 'curso' => $_POST['curso'],\n 'ano' => $_POST['ano'],\n 'questao' => $_POST['questao'],\n 'enade' => $_POST['enade'],\n ];\n\n var_dump($this->dados);\n\n $this->persistent->setFields($this->dados);\n $this->persistent->saveData();\n\n\n\n }", "title": "" }, { "docid": "fbcbeb6e6813a95ec8303950156da6b8", "score": "0.6168837", "text": "function conectaBaseDatos(){\r\n\r\n\ttry{\r\n\r\n\t\t$servidor = \"alltic.co\";\r\n\r\n\t\t$puerto = \"3306\";\r\n\r\n\t\t$basedatos = \"alltic_causel\";\r\n\r\n\t\t$usuario = \"itop\";\r\n\r\n\t\t$contrasena = \"itop2019\";\r\n\r\n\t\r\n\r\n\t\t$conexion = new PDO(\"mysql:host=$servidor;port=$puerto;dbname=$basedatos\",\r\n\r\n\t\t\t\t\t\t\t$usuario,\r\n\r\n\t\t\t\t\t\t\t$contrasena,\r\n\r\n\t\t\t\t\t\t\tarray(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\r\n\r\n\t\t\r\n\r\n\t\t$conexion->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);\r\n\r\n\t\treturn $conexion;\r\n\r\n\t}\r\n\r\n\tcatch (PDOException $e){\r\n\r\n\t\tdie (\"No se puede conectar a la base de datos\". $e->getMessage());\r\n\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "96ce7ca1848d5c6a20520b9773470598", "score": "0.6160301", "text": "public function conBD(){\n\t\t$bd = new PDO(\"mysql:host=localhost;dbname=sistemacontrolescolar\", \"root\", \"\");\n\n\t\t$bd -> exec(\"set names utf8\");\n\n\t\treturn $bd;\n\n\t\t\n\n }", "title": "" }, { "docid": "e446754b1842b87825b2541cdded00e3", "score": "0.6157325", "text": "function CContratoData($db) {\r\n $this->db = $db;\r\n }", "title": "" }, { "docid": "b083655fc9ff8cbea00ab1e424c180fa", "score": "0.6146763", "text": "public function Abrir_Conexion(){\n $this->conexion = new mysqli($this->host, $this->usuario, $this->password, $this->basedatos);\n $this->conexion->set_charset(\"utf8\");\n if($this->conexion->connect_errno){\n echo 'Falló la conexión a MYSQL: ('.$this->conexion->connect_errno.\") \".$this->conexion->connect_error;\n }\n }", "title": "" }, { "docid": "b7e8663d494ab07089c756c75f76feb7", "score": "0.61338574", "text": "function __construct() {\r\n\t\t$this->connBanco = new Db();\r\n\t}", "title": "" }, { "docid": "b7e8663d494ab07089c756c75f76feb7", "score": "0.61338574", "text": "function __construct() {\r\n\t\t$this->connBanco = new Db();\r\n\t}", "title": "" }, { "docid": "f8cdd47ec602608b093e3b489fd801df", "score": "0.6131035", "text": "public function index()// trae información de la base de datos\n {\n //\n }", "title": "" }, { "docid": "88c74a15775f60029de7d15c9ba7eb14", "score": "0.61274266", "text": "public function insetar_datos_defecto($id){\n $colectivo = new colectivos;\n $colectivo->des_colectivo = 'GENERAL';\n $colectivo->id_cliente = $id;\n $colectivo->save();\n\n //Crear centro por defecto del cliente\n $centro = new centros;\n $centro->des_centro = 'GENERAL';\n $centro->id_cliente = $id;\n $centro->save();\n\n\n //Crear departamento por defecto del cliente\n $departamento = new departamentos;\n $departamento->nom_departamento = 'GENERAL';\n $departamento->num_nivel = 1;\n $departamento->cod_centro = $centro->cod_centro;\n $departamento->id_cliente = $id;\n $departamento->save();\n\n //Asignamos el departamento al centro\n DB::table('cur_departamentos_centro')->insert([\n 'cod_centro' => $centro->cod_centro,\n 'cod_departamento' => $departamento->cod_departamento\n ]);\n\n //Añadimos estructura empresarial del cliente basica\n $arbol1 = DB::table('cug_arbol_jerarquia')->where('id_cliente','1')->get();\n foreach ($arbol1 as $arbol){\n DB::table('cug_arbol_jerarquia')->insert([\n 'des_puesto' => $arbol->des_puesto,\n 'num_nivel' => $arbol->num_nivel,\n 'val_superior' => $arbol->val_superior,\n 'id_cliente' => $id\n ]);\n }\n\n //Añadimos los tipos de incidencias\n $incidencias = DB::table('cug_tipos_incidencia')->where('id_cliente','1')->get();\n foreach ($incidencias as $incidencia){\n DB::table('cug_tipos_incidencia')->insert([\n 'des_tipo_incidencia' => $incidencia->des_tipo_incidencia,\n 'val_color' => $incidencia->val_color,\n 'id_cliente' => $id\n ]);\n }\n/*\n //Añadimos las incidencias\n $incidencias = DB::table('cug_incidencias')->where('id_cliente','1')->get();\n foreach ($incidencias as $incidencia){\n DB::table('cug_incidencias')->insert([\n 'des_tipo_incidencia' => $incidencia->des_tipo_incidencia,\n 'val_color' => $incidencia->val_color,\n 'id_cliente' => $id\n ]);\n }\n*/\n //Ciclos del cliente\n $ciclos = DB::table('cug_ciclos')->where('id_cliente','1')->first();\n DB::table('cug_ciclos')->insert([\n 'nom_ciclo' => $ciclos->nom_ciclo,\n 'num_dias' => $ciclos->num_dias,\n 'id_cliente' => $id\n ]);\n $ciclo = DB::table('cug_ciclos')->get()->last();\n\n //Horarios del cliente\n $horarios = DB::table('cug_horarios')->where('id_cliente','1')->first();\n DB::table('cug_horarios')->insert([\n 'des_horario' => $horarios->des_horario,\n 'val_horas_teoricas' => $horarios->val_horas_teoricas,\n 'val_tiempo_pausa' => $horarios->val_tiempo_pausa,\n 'id_cliente' => $id\n ]);\n $hora = DB::table('cug_horarios')->get()->last();\n\n //Composicion del ciclo\n $horarios_ciclo = DB::table('cur_horarios_ciclo')->where('cod_ciclo',$ciclos->cod_ciclo)->get();\n foreach ($horarios_ciclo as $hc){\n DB::table('cur_horarios_ciclo')->insert([\n 'cod_horario' => $hora->cod_horario,\n 'cod_ciclo' => $ciclo->cod_ciclo,\n 'num_dia' => $hc->num_dia\n ]);\n }\n\n //Añadimos la composicion del horario\n DB::table('cur_bloques_horario')->insert([\n 'cod_horario' => $hora->cod_horario,\n 'tip_bloque' => 5,\n 'hor_inicio' => '00:00:01',\n 'hor_fin' => '23:59:59',\n 'num_orden' => 1\n ]);\n/*\n //Perfiles del cliente y secciones para el cliente\n //Hay que revisar si es necesario hacerlo o podemos usar los de tipo fijo\n if(DB::table('cug_clientes')->where('id_cliente', $id)->first()->cod_tipo_cliente == 3) //SumaResta\n {\n $perfiles = DB::table('cug_niveles_acceso')->where('cod_tipo_cliente','3')->where('val_nivel_acceso', '!=', '200')->whereIn('val_nivel_acceso', [1, 100])->get();\n }\n elseif(DB::table('cug_clientes')->where('id_cliente', $id)->first()->cod_tipo_cliente == 2) //CucoTime\n {\n $perfiles = DB::table('cug_niveles_acceso')->where('id_cliente','1')->where('val_nivel_acceso', '!=', '200')->whereIn('val_nivel_acceso', [1, 90])->get();\n }\n else $perfiles = DB::table('cug_niveles_acceso')->where('id_cliente','1')->where('val_nivel_acceso', '!=', '200')->get();\n\n foreach ($perfiles as $per){\n $perfil_id =\n DB::table('cug_niveles_acceso')->insertGetId([\n 'val_nivel_acceso' => $per->val_nivel_acceso,\n 'des_nivel_acceso' => $per->des_nivel_acceso,\n 'id_cliente' => $id\n ]);\n\n $secciones = DB::table('cur_secciones_perfiles')->where('id_perfil',$per->cod_nivel)->get();\n foreach ($secciones as $secc){\n DB::table('cur_secciones_perfiles')->insert([\n 'id_seccion' => $secc->id_seccion,\n 'id_perfil' => $perfil_id,\n 'mca_read' => $secc->mca_read,\n 'mca_write' => $secc->mca_write,\n 'mca_create' => $secc->mca_create,\n 'mca_delete' => $secc->mca_delete\n ]);\n }\n }\n*/\n //configuracion del cliente\n $cc = configclientes::find(1);\n $nuevocc = $cc->replicate();\n $nuevocc->id_cliente = $id;\n $nuevocc->save();\n }", "title": "" }, { "docid": "eb767c8336c55046351cd7620b098c95", "score": "0.6125739", "text": "public function __construct() { //el constructor para generar el usuario y para conectarse a la base de datos\r\n $this->usuario = array();\r\n\t\t$this->db = new PDO('mysql:host=localhost;dbname=u659609380_maestria', \"u659609380_user\", \"database\");\t\t\t\t\r\n }", "title": "" }, { "docid": "3d9808c2dd5d40fcd3c3bbf2b7b305cf", "score": "0.6113241", "text": "private function connect() {\n try {\n $this->db = new PDO('mysql:host='.DB_HOST.';port='.DB_PORT.';dbname='.DB_DATABASE, DB_USERNAME, DB_PASSWORD);\n $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // rapport d'erreurs : emet des exceptions\n $this->db->exec(\"SET NAMES 'utf8'\"); // codage utilise\n }\n catch(Exception $e) {\n echo 'Erreur : '.$e->getMessag().'<br/>';\n echo 'N° : '.$e->getCode();\n exit();\n }\n }", "title": "" }, { "docid": "ebf0e097ee2af9fa8877c2cc4064bc9f", "score": "0.6081108", "text": "public function persist (){\n\n // if(array_key_exists('usuario',$user_data)){\n // $this->get($user_data['id']);\n\n // if($user_data['id'] != $this->id){\n // foreach ($user_data as $campo => $valor) {\n // $$campo = $valor;\n // }\n // }\n // }\n\n if(count($this->existeUsuario($this->usuario)) == 0){\n\n $this->query = \"INSERT INTO usuario(nombre,email, usuario, password, estado) VALUES (:nombre,:email, :usuario, :password, 'bloqueado')\";\n\n // $this->parametros['id']=$user_data[\"id\"];\n $this->parametros['nombre']=$this->nombre;\n $this->parametros['email']=$this->email;\n $this->parametros['usuario']=$this->usuario;\n $this->parametros['password']=$this->password;\n \n // $this->parametros['validacion']=$this->validacion;\n \n $this->get_results_from_query();\n\n\n $this->mensaje = \"Usuario agregado exitosamente\";\n }\n else{\n $this->mensaje = \"El usuario ya existe\";\n }\n }", "title": "" }, { "docid": "d898824c746be95b2def8fcf129b7c50", "score": "0.6080733", "text": "function Conexion()\n\t{\n\t\t$conection['server']=\"localhost\"; //host\n\t\t$conection['user']=\"root\"; // usuario\n\t\t$conection['pass']=\"\"; //password\n\t\t$conection['base']=\"congreso\"; //base de datos\n\t\t\n\t\t// crea la conexion pasandole el servidor , usuario y clave\n\t\t$conect= mysqli_connect($conection['server'],$conection['user'],$conection['pass']);\n\n\t\tif ($conect) // si la conexion fue exitosa , selecciona la base\n\t\t{\n\t\t\tmysqli_select_db($conect,$conection['base']);\t\t\t\n\t\t\t$this->con=$conect;\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a15eb3ba5da7edd7d6d8abe3ff904fd0", "score": "0.6064916", "text": "function conDB(){\n\t\t$this->db = new Database();\n\t}", "title": "" }, { "docid": "daf6ef65dc7f705c28ff8e9359947cb0", "score": "0.6058785", "text": "function conectar()\n\t{\n\t\tif(mysql_connect($this->host,$this->user,$this->pass))\n\t\t{\n\t\t\t//echo\"Estas conectado con la base\";\n\t\t\tif(mysql_select_db($this->bd))\n\t\t\t{\n\t\t\t//echo\"La base de datos es correcta\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b9923f7a4e66709e055048084a712fb9", "score": "0.60473883", "text": "function conectardb(){\n\t\t//parametros local\n\t\t$host=\"mysql:host=localhost;dbname=betiVENDING\";\n\t\t$usr=\"root\";\n\t\t$pass=\"\";\n\t\t/*\n\t\t//parametros web\n\t\t$host=\"mysql:host=localhost;dbname=betiV\";\"betiVuser\";\n\t\t$usr=\"betiVuser\";\n\t\t$pass=\"betiV-2013\";\n\t\t*/\n\t\ttry{\n\t\t\t$basededatos = new PDO ($host,$usr,$pass);\n\t\t\t$basededatos->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t$basededatos->exec(\"SET NAMES 'utf8'\");\n\t\t} catch (Exception $e){\n\t\t\techo \"Conexion no disponible. Contacte con el administrador\";\n\t\t\texit;\n\t\t}\n\t\treturn $basededatos;\n\t}", "title": "" }, { "docid": "a7da0e8eda84fa0a77a0e4c0648d4055", "score": "0.60391295", "text": "protected function conexion_db(){\n $link = new PDO(SGBD,USER,PASS);//array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\")\n $link->exec(\"set names utf8\");\n return $link;\n }", "title": "" }, { "docid": "914770bb99017250e47932eabda9ccae", "score": "0.60369533", "text": "public function save()\n {\n // logica para salvar cliente no banco\n }", "title": "" }, { "docid": "c3bed7ce97efddfb8146ba159656de67", "score": "0.6035231", "text": "private function addTrabajadorBD()\n {\n $sql = \"INSERT INTO usuarios (nombre, apellidos, telefono)\n VALUES ('\" . $this->nombre . \"', '\" . $this->apellidos . \"','\" . $this->telefono . \"' );\";\n\n\n $conexion = new Bd ();\n $conexion->consulta($sql);\n }", "title": "" }, { "docid": "8ef85ab5c787f7c1a999a8247eb47eef", "score": "0.6019096", "text": "public function TipoResiduoAccesoDatos() {\n //Se establece la coneccion a la base de datos\n parent::ConexionAccesoDatos();\n }", "title": "" }, { "docid": "02f0cca7ab68ec0d13c051fda227dbb4", "score": "0.60145146", "text": "public static function realizarConexao(){\n $user = \"root\";\n $pass=\"root\";\n $database=\"teatro\";\n $server=\"127.0.0.1\";\n $db = new PDO(\"mysql:host=$server;dbname=$database\",$user,$pass);\n return $db;\n }", "title": "" }, { "docid": "6aef106b66fd8b8ef43d72039754dd75", "score": "0.6014272", "text": "function __construct(){\n //podriamos usar un parametro en el constructor para indicar el tipo de base de datos y asi crear conexiones a la carta\n\n $this->cadenaConexion=\"mysql:host=localhost;dbaname=biblioteca\";\n $this->conexion= new PDO($this->cadenaConexion,\"usuario\",\"contraseña\");\n }", "title": "" }, { "docid": "c4e54bb46bbca45b6b8456465b1e06f0", "score": "0.60081255", "text": "function conecta(){\r\n $this->connecta = @mysql_connect('127.0.0.1', 'root', 'root99');\r\n if(!$this->connecta){\r\n die (\"Erro ao conectar no banco de dados.\" . mysql_error());\r\n }\r\n mysql_select_db('cadastrophp', $connecta);\r\n }", "title": "" }, { "docid": "7509645cdc433b4c71088a6b4cae3de4", "score": "0.60058904", "text": "private function conectar()\n {\n try{\n $this->conexion = Conexion::abrirConexion(); /*inicializa la variable conexion, llamando el metodo abrirConexion(); de la clase Conexion por medio de una instancia*/\n }\n catch(Exception $e)\n {\n die($e->getMessage()); /*Si la conexion no se establece se cortara el flujo enviando un mensaje con el error*/\n }\n }", "title": "" }, { "docid": "b0ea6a41c5aae13cade7568b18aa6ef9", "score": "0.60014254", "text": "private function Database(){\n\t\t$this->Open_Connection();\n\t}", "title": "" }, { "docid": "e151181cc799d1431c8cd072a7ff9899", "score": "0.60009885", "text": "public function __construct() {\n $this->tableName = \"se_resaassay\";\n $this->setColumnsInfo(\"id\", \"int(11)\", 0);\n $this->setColumnsInfo(\"id_resa\", \"int(11)\", 0);\n $this->setColumnsInfo(\"id_assay\", \"int(11)\", 0);\n $this->setColumnsInfo(\"dataurl\", \"varchar(255)\", \"\");\n $this->primaryKey = \"id\";\n }", "title": "" }, { "docid": "1726605c8f896a3429009f00e1ff7b65", "score": "0.5986173", "text": "private function AgregarUsuarioBD()\n {\n $objetoDatos = AccesoDatos::DameUnObjetoAcceso();\n\n $consulta =$objetoDatos->RetornarConsulta(\"INSERT INTO usuarios (correo, clave, nombre, apellido, perfil, foto)\"\n . \"VALUES(:correo, :clave, :nombre, :apellido, :perfil, :foto)\"); \n \n $consulta->bindValue(':correo', $this->correo, PDO::PARAM_STR);\n $consulta->bindValue(':clave', $this->clave, PDO::PARAM_STR);\n $consulta->bindValue(':nombre', $this->nombre, PDO::PARAM_STR);\n $consulta->bindValue(':apellido', $this->apellido, PDO::PARAM_STR);\n $consulta->bindValue(':perfil', $this->perfil, PDO::PARAM_STR);\n $consulta->bindValue(':foto', $this->foto, PDO::PARAM_STR);\n\n //return $objetoAccesoDato->RetornarUltimoIdInsertado();\n return $consulta->execute();\n }", "title": "" }, { "docid": "b7f160684999fee54883913eb5f3192d", "score": "0.59819055", "text": "public function codigosTablas(){\r\n $sql = \"SELECT * FROM tbl_codigos\";\r\n return ejecutarConsulta($sql); \r\n }", "title": "" }, { "docid": "f054fe09899b3831fb766aed7819717f", "score": "0.5963471", "text": "function create($data)\n {\n //Se llama a la base de datos\n $this->DB->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n //se crea la consulta a utilizar y se gurada en la variable $sql como la plantilla a utilizar\n // se hace el uso de ?? en los values ya que se usan sentencias preparadas\n $sql = \"INSERT INTO estudiante(id,cedula,nombre,apellidos,promedio,edad,fecha)VALUES (?,?,?,?,?,?,?)\";\n\n $query = $this->DB->prepare($sql); //se hace la llama a la plantilla de la sentencias de la variable $sql\n\n //Se envian los parametros para la ejecucion de la sentencia\n $query->execute(array($data['id'], $data['cedula'], $data['nombre'], $data['apellidos'], $data['promedio'], $data['edad'], $data['fecha']));\n Database::disconnect();\n }", "title": "" }, { "docid": "7747598ce1d754fc9102a343502d7ac9", "score": "0.5963384", "text": "function agregaDatos()\r\n\t{\r\n\t\t$query = \"INSERT INTO \" . $this->BASEDATOS . \"(NIFNIE, Nombre, Apellidos, Usuario) VALUES ('\". $this->NIFNIE .\"', '\". $this->Nombre .\"', '\". $this->Apellidos .\"', '\". $this->Usuario .\"')\";\r\n\t\tparent::agregaRegistro( $query);\r\n\t\tif($query != \"\"){\r\n\t\t\t$this->setSQL_C($query);\r\n\t\t} // END IF\r\n\t\t$retorno=$this->execute($this->pSQL_C);\r\n\treturn $retorno;\r\n\t}", "title": "" }, { "docid": "c467571dc79608d2b84b50bf41ec6a68", "score": "0.5961476", "text": "public static function AbrirConexion(){\n if(!isset(self::$conexion))\n {\n try{\n //Toma el codigo del archivo que mandamos llamar\n include_once 'config.inc.php'; \n self::$conexion = new PDO(\"mysql:host=\".Datos::getNombreServidor().\";dbname=\".Datos::getNombreBD().\";\",Datos::getNombreUsuario() , Datos::getPassword());\n self::$conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n self::$conexion->exec(\"SET CHARACTER SET utf8\");\n } catch (PDOException $ex) {\n print \"Error: \".$ex->getMessage().\"<br>\";\n //termiar la conexion en cualquier tiempo de abrirla\n die();\n }\n }\n }", "title": "" }, { "docid": "c2fd73da99e0afbd1909130f14bbd1af", "score": "0.59606415", "text": "function Conexion()\n\t{\n\t\t$conection['server']=\"localhost\"; //host\n\t\t$conection['user']=\"alumno\"; // usuario\n\t\t$conection['pass']=\"alumnodaw\"; //password\n\t\t$conection['base']=\"neuro\"; //base de datos\n\t\t\n\t\t// crea la conexion pasandole el servidor , usuario y clave\n\t\t$conect= mysql_connect($conection['server'],$conection['user'],$conection['pass']);\n\n\t\tif ($conect) // si la conexion fue exitosa , selecciona la base\n\t\t{\n\t\t\tmysql_select_db($conection['base']);\t\t\t\n\t\t\t$this->con=$conect;\n\t\t}\n\t}", "title": "" }, { "docid": "39d2a4a3c35cf416ffb0601c365070ef", "score": "0.59580344", "text": "public function __construct(){\r\n //lo primero que hace es mandar los 4 atributos que tenemos arriba\r\n $this->conexion = new mysqli($this->server, $this->usuario, $this->pass , $this->basedatos);\r\n $this->conexion->select_db($this->basedatos);\r\n $this->conexion->query(\"SET NAMES 'utf8'\");\r\n }", "title": "" }, { "docid": "8143c8717ac5501f43cc655cbc1ae1b7", "score": "0.59572715", "text": "public function BD()\r\n {\r\n \r\n\r\n }", "title": "" }, { "docid": "d039229bdec4e5caea7e613c3ae6ed73", "score": "0.59571433", "text": "private function Usuario() {\n $this->conexion = new MongoClient();\n $this->enlace = $this->conexion->selectDB(DAOContents::getInstance()->dbName);\n }", "title": "" }, { "docid": "900fd480c4ac56bacc9241876914d5d3", "score": "0.5953817", "text": "public function __construct(){//untuk menghubungkan ke data base\r\n //data source name (koneksi ke pdo)\r\n $dsn = 'mysql:host=' . $this->host. ';dbname=' . $this->name;\r\n\r\n //untuk mengkonfigurasi koneksi\r\n $option = [\r\n //untuk menjaga koneksi data base \r\n PDO::ATTR_PERSISTENT => true,\r\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\r\n ];\r\n //mengecek data error atau tidak\r\n try{\r\n $this->dbh = new PDO ($dsn,$this->user,$this->pass,$option);\r\n }catch(PDOException $e) {\r\n die ($e->getMessage());\r\n }\r\n }", "title": "" }, { "docid": "7d8f389c8f7397b808f5adb18c5ccbbe", "score": "0.59496486", "text": "public function __construct(){\n parent::__construct(DB_HOST,DB_USERNAME,DB_PASS,DB_NAME,DB_PORT);\n $this->query(\"SET NAMES 'utf-8';\");\n\n $this->connect_errno ? die('Error con la Base de Datos') : 'Conect';\n }", "title": "" }, { "docid": "70e350efbc74e3279ee1d482314b9aef", "score": "0.59491843", "text": "private function conectar()\n\t{\n\t\t$this->conx = new mysqli($this->cn_host, $this->cn_user, $this->cn_pass, $this->cn_data);\n\t \t$this->conx->set_charset(\"utf8\");\n\t $this->conx->select_db($this->cn_data);\n\n \n\t if (mysqli_connect_errno())\n\t {\n\t\t printf(\"Connect failed: %s\\n\", mysqli_connect_error());\n\t\t exit();\n\t } else {\n\t\t $this->conected = true;\n\t }\n \t}", "title": "" }, { "docid": "d0af4dc3b7ca8003c0029dfb77e914b5", "score": "0.5948298", "text": "public function run()\n {\n /*\n | Field | Type | Null | Key | Default | Extra |\n+-------------+-------------+------+-----+---------+-------+\n| idciudadano | int(11) | NO | PRI | NULL | |\n| nombre | varchar(45) | YES | | NULL | |\n| paterno | varchar(45) | YES | | NULL | |\n| materno | varchar(45) | YES | | NULL | |\n| dni | varchar(8) | YES | | NULL | |\n| usuario | varchar(45) | YES | | NULL | |\n| password \n */\n\t\t$ciudadano = new Ciudadano();\n\t\t$ciudadano->nombre = \"Fulano\";\n\t\t$ciudadano->paterno = \"Fulano\";\n\t\t$ciudadano->materno = \"Fulano\";\n\t\t$ciudadano->dni = \"12345678\";\n\t\t$ciudadano->usuario = \"abc\";\n\t\t$ciudadano->password = bcrypt('123456');\n\t\t$ciudadano->save();\n\n\n }", "title": "" }, { "docid": "780e987a7d13398ec477c0e5b95a998b", "score": "0.5939064", "text": "public function __construct(){\n $this->conexdb = new mysqli('localhost', 'root', '', 'usuarios');\n }", "title": "" }, { "docid": "67a0e1f3415be1fcdd4fa559083b6511", "score": "0.59381664", "text": "public function run()\n {\n\n \tDB::table('estado')->insert([\n 'id' => '1',\n 'nombre' => 'Puebla',\n ]);\n\n \tDB::table('direccion')->insert([\n 'calle' => '10 sur',\n 'num_ext' => '2908',\n 'colonia' => str_random(15),\n 'cp' => rand(10000, 99999),\n 'delegacion' => str_random(20),\n 'municipio' => str_random(20),\n 'estado' => 1,\n ]);\n\n DB::table('datos_cli')->insert([\n 'razon_social' => 'Ricardo Lopez',\n 'rfc' => 'LOFR950207HM2',\n 'direccion' => 1,\n 'email' => str_random(10).'@gmail.com',\n ]);\n\n \tDB::table('users')->insert([\n 'id' => 1,\n 'email' => 'rikyfocil@gmail.com',\n 'password' => bcrypt('secret'),\n 'datos_facturacion' => 1,\n 'key' => str_random(20),\n 'cer' => str_random(20),\n 'password_cer' => str_random(20),\n ]);\n\n DB::table('cliente')->insert([\n 'id' => 1,\n 'razon_social' => str_random(20),\n 'rfc' => str_random(20),\n 'direccion' => 1,\n 'duenio' => 1,\n 'email' => str_random(10).'@gmail.com',\n ]);\n }", "title": "" }, { "docid": "411410fe1a6120ad01a673cafa32e4cd", "score": "0.5937446", "text": "public function Users()\n {\n parent::ConexionPDO();\n }", "title": "" }, { "docid": "9182c70db82c1378361c5744ca0bd400", "score": "0.59355927", "text": "static public function conectar() {\n return new PDO('mysql:dbname=ecommerce;host=127.0.0.1;port=3306', 'root', '');\n }", "title": "" }, { "docid": "4e7dc78ecc1a208f2dcea0384ea50442", "score": "0.59351736", "text": "public function datos(){\r\n $datos = [];\r\n foreach (static::$columnasDB as $columna){\r\n if($columna === 'id') continue; // si se cumple la condicion continua... lo salta\r\n $datos[$columna] = $this->$columna;\r\n }\r\n return $datos;\r\n }", "title": "" }, { "docid": "5c43c1f1718cc6cc3bd51fcc32fb8d2c", "score": "0.5931062", "text": "function Conexion()\n\t\t \t \n\t{\n\t\t$conection['server']=SERVIDOR_MYSQL; //host\n\t\t$conection['user']=USUARIO_MYSQL; //usuario\n\t\t$conection['pass']=PASSWORD_MYSQL;\t //password\n\t\t$conection['base']=BASE_DATOS;\t\t //base de datos\n\t\t\n\t\t\n\t\t// crea la conexion pasandole el servidor , usuario y clave\n\t\t$conect= @mysql_pconnect($conection['server'],$conection['user'],$conection['pass']);\n\n\n\t\t\t\n\t\tif ($conect) // si la conexion fue exitosa , selecciona la base\n\t\t{\n\t\t\t\n\t\t\tmysql_query(\"SET NAMES 'utf8'\");\n\t\t\tmysql_query(\"SET CHARACTER SET utf8\");\n\t\t\tmysql_query(\"SET COLLATION_CONNECTION = 'utf8_unicode_ci'\");\n\t\t\t\n\t\t\t\n\t\t\tmysql_select_db($conection['base']);\t\t\t\n\t\t\t$this->con=$conect;\n\t\t}\n\t}", "title": "" }, { "docid": "8d4d8e908867bcb9b30002383c404825", "score": "0.59297556", "text": "public function __construct(){\r\n \r\n try{//utilizamos un try catch para capturar las posibles excepciones que puedan producir.\r\n \r\n $this->conexion_db=new PDO('mysql:host=localhost; dbname=bom_web', 'root','');//creamos una conexion con la clase pdo a nuestra base de datos.\r\n \r\n $this->conexion_db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);//incluimos la sentencia para poder captura excepciones.\r\n \r\n $this->conexion_db->exec(\"SET CHARACTER SET utf8\");//establecemos los caracteres utf8 que permiten acentos.\r\n //echo \"conexion exitosa\";\r\n \r\n return $this->conexion_db;//Devolvemos la conexion creada con el constructor.\r\n \r\n } catch (Exception $ex) {//capturamos las excepciones en la variable $ex\r\n\r\n echo \"la línea de error es: \" . $ex->getLine();//mostramos la linea del error.\r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "29c4aa0dec2734afe73afac3f68d1461", "score": "0.5922179", "text": "private function __construct(){\r\n \r\n try {\r\n $dsn = \"mysql:host=192.168.0.24;dbname=Usuarios;charset=utf8\";\r\n $this->dbh = new PDO($dsn, \"root\", \"root\");\r\n $this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n } catch (PDOException $e){\r\n echo \"Error de conexión \".$e->getMessage();\r\n exit();\r\n }\r\n // Construyo las consultas\r\n $this->stmt_usuarios = $this->dbh->prepare(\"select * from Usuarios\");\r\n $this->stmt_usuario = $this->dbh->prepare(\"select * from Usuarios where id=:id\");\r\n $this->stmt_verificar = $this->dbh->prepare(\"select * from Usuarios where id=:id and pass=:pass\");\r\n $this->stmt_boruser = $this->dbh->prepare(\"delete from Usuarios where id =:id\");\r\n $this->stmt_moduser = $this->dbh->prepare(\"update Usuarios set nombre=:nombre, mail=:mail, pass=:pass, id=:id, plan=:plan, estado=:estado where id=:id \");\r\n $this->stmt_creauser = $this->dbh->prepare(\"insert into Usuarios (id,pass,nombre,mail,plan,estado) Values(?,?,?,?,?,?)\");\r\n }", "title": "" }, { "docid": "457bb832a84a570b006f2545945a26b2", "score": "0.5909425", "text": "function getDatos(){\n $res = $this->Consulta('SELECT * FROM '.$this->Table .' WHERE '.$this->PrimaryKey.' = '.$this->_datos);\n print_r( json_encode( $res[0] ) );\n }", "title": "" }, { "docid": "7806b0835e35937f29005c866a46d747", "score": "0.5902485", "text": "function TambahData($request)\n {\n\t\t\n\t\tquery()->insert();\n\n }", "title": "" }, { "docid": "fcf6638f3209132700e6cc16f9072c9d", "score": "0.5898568", "text": "function conectarMysql(){\n global $Servidor,$Usuario,$Clave;\n global $_SESSION;\n $this->database->setUserName($Usuario);\n $this->database->setDatabaseName($_SESSION['database']);\n $this->database->setUserPassword($Clave);\n $this->database->setHost($Servidor);\n }", "title": "" }, { "docid": "a84af5ec030c6ca070399b9a82853e74", "score": "0.58879954", "text": "function conecta(){\n \n require_once 'library/php-activerecord/ActiveRecord.php';\n \n ActiveRecord\\Config::initialize(function($cfg)\n {\n $cfg->set_model_directory('application/models/activeRecord');\n $cfg->set_connections(array(\n 'development' => 'mysql://root:@localhost/bddecom'));\n });\n}", "title": "" }, { "docid": "a4dbbd377f8c95462b89c1283a7b75e7", "score": "0.58877516", "text": "static function conectar(){\n //Creacion de un objeto conexion\n try {\n $conexion = new PDO(self::$dsn, self::$usuario, self::$password, array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n }\n catch (PDOException $e) {\n die('Error en la conexión: ' . $e->getMessage());\n }\n //Retornamos la conexion que hicimos a la BD\n return $conexion;\n }", "title": "" }, { "docid": "b65d63ff9b83a0030d7a7dfa0d0a1e27", "score": "0.5885291", "text": "public function __construct(){\n $this->cn = new PDO(\"mysql:host=127.0.0.1;dbname=db_cadastro\",\"root\",\"\");\n }", "title": "" }, { "docid": "645bba77f20753848a8250e962849242", "score": "0.5881489", "text": "protected function QueryObtieneDatos(){\n\t\t\t$this->AbreCnx();\n\t\t\t$rs = ibase_query($this->cnx, $this->query);\n\t\t\treturn $this->FetchAs($rs);\n\t\t\tunset($this->query);\t\n\t\t\t$this->CierraCnx();\n\t\t}", "title": "" }, { "docid": "c44195959a5851cb1328043271bffce6", "score": "0.58811337", "text": "public function insertInDB(){\r\n }", "title": "" }, { "docid": "29b2935d9266ec85ed4b707b5a37431c", "score": "0.5876452", "text": "public function getAll()\n {\n $cnx=new Database();//connexion à la base \n $db=$cnx->query('SELECT id,name FROM `statut`');\n return $db;\n }", "title": "" }, { "docid": "4a9dc73680a01b1012bc81ce038e87a8", "score": "0.5867623", "text": "static function conectar(){\r\n try{\r\n $conect= new PDO('pgsql:host=localhost;dbname=movi_per', 'postgres','luis18997');\r\n $conect->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);\r\n }catch (exception $e){\r\n die($e->getmessage());\r\n }\r\n return $conect;\r\n }", "title": "" }, { "docid": "6e45473c75e495c7e89901c5dd91a1a8", "score": "0.58662504", "text": "public function run()\n {\n $table = new DatosAcademicos();\n $table->id = 999999;\n $table->esc_procedencia = 'alguna';\n $table->materias_aprobadas = '24';\n $table->materias_no_aprobadas = '2';\n $table->promedio = '8.19';\n $table->clv_plantel = '111';\n $table->clv_carrera = '111';\n $table->clv_plan_estudio = '1234';\n $table->csa_ingreso = '12';\n $table->csa_egreso = '12';\n $table->UPHA = '12345';\n $table->PAart22 = '12345';\n $table->modalidades_id = 'ESC';\n $table->save();\n }", "title": "" }, { "docid": "b3317f6b1d04222358503ccefb97d738", "score": "0.5864732", "text": "public function conectare(){\r\n $this->con=null;\r\n try{\r\n $this->con=new PDO('mysql:host='.$this->host.';dbname='.$this->bd,$this->utilizator,$this->parola);\r\n $this->con->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);\r\n }catch(PDOException $e){\r\n echo \"Eroare conexiune: \".$e->getMessage();\r\n }\r\n return $this->con;\r\n }", "title": "" }, { "docid": "b2f6330b002d23554c3cc734865d0048", "score": "0.58645517", "text": "public function __construct()\n {\n $PARAM_hote = 'localhost';\n // le port de connexion à la base de données\n $PARAM_port = '3306';\n // le nom de la base de données\n $PARAM_nom_bd = 'InstaDog';\n // Le nom d'utilisateur pour se connecter \n $PARAM_utilisateur = 'adminInstaDog';\n // le mot de passe de l'utilisateur pour se connecter\n $PARAM_mot_passe = 'Inst@D0g';\n // Attraper les exceptions\n try {\n $this->connexion = new PDO(\n 'mysql:host=' . $PARAM_hote . ';\n dbname=' . $PARAM_nom_bd,\n $PARAM_utilisateur,\n $PARAM_mot_passe\n );\n } catch (Exception $e) {\n echo 'Erreur: ' . $e->getMessage() . '<br/>';\n echo 'N° : ' . $e->getCode();\n }\n }", "title": "" }, { "docid": "3ea747c67a304c40fb5e5a5372a6dac3", "score": "0.58588004", "text": "public function __construct(){\n\t\t $this->conexao = Connection::openConnection();\n\t}", "title": "" }, { "docid": "7efbb500bbc27aff11221e6d5972555f", "score": "0.5853177", "text": "public function createDbo() {\n if (!isset($this->_dbConfig[$this->adapter])) {\n $this->adapter = 'default';\n }\n try {\n $this->db = Driver::getInstance($this->_dbConfig)->getDatabase($this->adapter);\n } catch (KantException $e) {\n if (!headers_sent()) {\n header('HTTP/1.1 500 Internal Server Error');\n }\n exit('Database Error: ' . $e->getMessage());\n }\n $this->db->dbTablepre = $this->_dbConfig[$this->adapter]['tablepre'];\n $this->db->table = $this->table;\n $this->db->primary = $this->primary;\n }", "title": "" }, { "docid": "2d5328d3e6d4d34985b586ffeb14d1b0", "score": "0.5846681", "text": "static public function conectar(){\n //Configurar Variables dependiendo del servidor:\n $host=\"localhost\";\n $db=\"pos\";\n $userdb=\"root\";\n $userpw=\"\";\n\n\n\n $link = new PDO(\"mysql:host=$host;dbname=$db\",\n \"$userdb\",\n \"$userpw\");\n $link->exec(\"set names utf8\");\n return $link;\n }", "title": "" }, { "docid": "508597e33fe41a089356166b36708ec5", "score": "0.58457375", "text": "public function __construct(){ //INI HANYA SEBAGAI CONTOH SAJA, JGN LAKUKAN INI KALO MAU BUAT APLIKASINYA, KARENA JGN MEYIMPAN USER&PASSWORD KITA PADA FILE INI KARENA RAWAN UNTUK DIRETAS, HARUS DISIMPAN DITEMPAT YG AMAN\n\n //data source name\n $dsn = 'mysql:host='. $this->host .';dbname='. $this->db_name; //deklarasi variabel untuk identitas server kita\n\n //kita butuh parameter opstion untuk nantinya kita gunakan mengoptimasi ke database kita\n $option = [\n //PARAMETER dari konfigurasi database nya\n PDO::ATTR_PERSISTENT => true, //untuk membuat database kita koneksi nya terjaga terus\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION //untuk mode error nya, maka tampilkan exception\n ];\n\n //melakukan pengecekan database nya menggunakan try block catch\n try{\n $this->dbh = new PDO($dsn, $this->user, $this->pass, $option); //root yg pertama merupakan username, yg kedua password nya\n } catch(PDOException $e){ //kondisi dimana kalau error dalam variable e\n die($e->getMessage()); //maka berikan pesan error nya dari e ke getMessage()\n }\n }", "title": "" }, { "docid": "9f563ca126d2ea04650fdb451e7d892a", "score": "0.5826043", "text": "public function save() {\n require_once('db.class.php');\n $objDb = new db();\n $link = $objDb->conecta_mysql();\n\n $nome = $this->getNome();\n $gerente = $this->getGerente();\n\n $sql = \"INSERT INTO SETOR(nome, gerente) VALUES('$nome', '$gerente')\";\n\n $resultado = mysqli_query($link, $sql);\n \n if($resultado){\n echo \"Sucesso\";\n } else {\n echo 'Erro ao executar a query';\n }\n }", "title": "" }, { "docid": "a15b1e4822c8e29206575fade1e19bd3", "score": "0.58253956", "text": "public function run()\n {\n DB::table('s_sucursal')->insert(array(\n\t\t 'id' => 1,\n\t\t 'id_empresa' => 1,\n\t\t 'id_municipio' => 1,\n\t\t 'codigo' => 1,\n\t\t 'nombre' => 'Stids',\n\t\t 'telefono' => NULL,\n\t\t 'direccion' => NULL,\n\t\t 'quienes_somos' => 'Somos un grupo de desarrolladores y diseñadores de aplicaciones web en Barranquilla. Responsables, minuciosos, rápidos, destacados y eficientes. Realizamos aplicaciones de gran calidad y totalmente profesionales para satisfacer las necesidades de nuestros clientes haciendo realidad sus sueños. Llevamos nuestros servicios con responsabilidad para que el cliente encuentre en nosotros total satisfacción ya sea en proyectos básicos o muy complejos.',\n\t\t 'que_hacemos' => 'En Stids S.A.S diseñamos y desarrollamos plataformas digitales, acorde a los objetivos y metas de cada cliente. Nos destacamos por ser innovadores y prolijos en términos de códigos, administración y gestión de proyectos digitales. Desarrollamos aplicaciones, sistemas informáticos y software a medida para gestión interna de empresas y procesos de negocio (Intranet/Extranet) que cubran sus necesidades.',\n\t\t 'mision' => 'Desarrollar a nuestros clientes sus sueños tecnológicos e innovadores para su empresa con una alta calidad de trabajo aplicando de manera óptima los más altos estándares tecnológicos y satisfaciendo siempre la necesidad de todos nuestros clientes.',\n\t\t 'vision' => 'En un futuro ser la empresa tecnológica numero 1 con reconocimiento por nuestra gran labor en los proyectos innovadores y los servicios que se le brinda a las empresas y a los clientes que acuden a nosotros.',\n\t\t 'servicios' => 'Contamos con una cantidad de servicios que nos caracterizan por sobresalir eficientemente en el mercado y que nosotros nos encargamos de brindarles a nuestros clientes.',\n\t\t 'herramientas' => 'Contamos con variedades de herramientas para desarrollar su sitio de una forma eficaz y segura.',\n\t\t 'porque_escogernos' => 'Basicamente contamos con personal calificado en los distintos lenguajes y en dintintas áreas para realizar los proyectos asignados.',\n\t\t 'planes' => 'Contamos con distintos planes para brindarle a nuestros clientes alternativas que se acomoden a sus necesidades y presupuesto.',\n\t\t 'clientes' => 'Contamos con clientes que han depositado su confianza en nosotros.',\n\t\t 'estado' => 1\n\t\t));\n }", "title": "" }, { "docid": "8fbbbac5ef077036939d1acd32661489", "score": "0.58248204", "text": "function crear_base_datos($nombre, $con_encoding = false, $cant_intentos = 3)\n\t{\n\t\t$info_db = $this->get_parametros_base( $nombre );\n\t\t$base_a_crear = $info_db['base'];\n\t\tif ($info_db['motor']=='postgres7') {\n\t\t\tdormir(1000); //Para esperar que el script se desconecte\n\t\t\t$info_db['base'] = 'template1';\n\t\t\t$db = $this->conectar_base_parametros($info_db);\n\t\t\t$encoding = isset($info_db['encoding']) ? $info_db['encoding'] : self::db_encoding_estandar;\n\t\t\t$sql = \"CREATE DATABASE \\\"$base_a_crear\\\" \";\n\t\t\tif ($con_encoding) {\n\t\t\t\t$sql .= \" ENCODING '$encoding' \";\n\t\t\t}\n\t\t\t$intentos = 0;\n\t\t\tdo {\n\t\t\t\t$intentos++;\n\t\t\t\ttry {\n\t\t\t\t\t$db->ejecutar($sql);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (toba_error_db $e) {\n\t\t\t\t\tif ($intentos < $cant_intentos) {\n\t\t\t\t\t\t$this->manejador_interface->mensaje(\"Error al crear la base, reintentando una vez mas por si hay concurrencia en la creacion..\\n\");\n\t\t\t\t\t\t$db->destruir();\n\t\t\t\t\t\tdormir(2000);\n\t\t\t\t\t\t$db = $this->conectar_base_parametros($info_db);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow $e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while ($intentos <= $cant_intentos);\n\n\t\t\t$db->destruir();\n\t\t\ttoba_logger::instancia()->debug(\"Creada base '$base_a_crear'\");\n\t\t} else {\n\t\t\tthrow new toba_error('INSTALACIÓN: El método no esta definido para el motor especificado');\n\t\t}\n\t}", "title": "" }, { "docid": "60ddda62cd2426e40905f7a01aa13458", "score": "0.58236057", "text": "public function create($datos){\n $this->db->insert('libro',$datos);\n }", "title": "" }, { "docid": "5ec96754f33262b08e379bf3da79120e", "score": "0.5823457", "text": "public function run()\n {\n DB::table('tb_cidades')->insert([\n ['nome'=>'Acailandia ','fk_uf'=>'10'],\n ['nome'=>'AfonsoCunha ','fk_uf'=>'10'],\n ['nome'=>'Agua Doce do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Alcantara ','fk_uf'=>'10'],\n ['nome'=>'Aldeias Altas ','fk_uf'=>'10'],\n ['nome'=>'Altamirado Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Alto Alegre do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Alto Alegre do Pindare ','fk_uf'=>'10'],\n ['nome'=>'Alto Parnaiba ','fk_uf'=>'10'],\n ['nome'=>'Amapa do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Amarante do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Anajatuba ','fk_uf'=>'10'],\n ['nome'=>'Anapurus ','fk_uf'=>'10'],\n ['nome'=>'Apicum-Acu ','fk_uf'=>'10'],\n ['nome'=>'Araguana ','fk_uf'=>'10'],\n ['nome'=>'Araioses ','fk_uf'=>'10'],\n ['nome'=>'Arame ','fk_uf'=>'10'],\n ['nome'=>'Arari ','fk_uf'=>'10'],\n ['nome'=>'Axixa ','fk_uf'=>'10'],\n ['nome'=>'Bacabal ','fk_uf'=>'10'],\n ['nome'=>'Bacabeira ','fk_uf'=>'10'],\n ['nome'=>'Bacuri ','fk_uf'=>'10'],\n ['nome'=>'Bacurituba ','fk_uf'=>'10'],\n ['nome'=>'Balsas ','fk_uf'=>'10'],\n ['nome'=>'Barao de Grajau ','fk_uf'=>'10'],\n ['nome'=>'Barra do Corda ','fk_uf'=>'10'],\n ['nome'=>'Barreirinhas ','fk_uf'=>'10'],\n ['nome'=>'Bela Vista do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Belagua ','fk_uf'=>'10'],\n ['nome'=>'Benedito Leite ','fk_uf'=>'10'],\n ['nome'=>'Bequimao ','fk_uf'=>'10'],\n ['nome'=>'Bernardodo Mearim ','fk_uf'=>'10'],\n ['nome'=>'Boa Vistado Gurupi ','fk_uf'=>'10'],\n ['nome'=>'Bom Jardim ','fk_uf'=>'10'],\n ['nome'=>'Bom Jesus das Selvas ','fk_uf'=>'10'],\n ['nome'=>'Bom Lugar ','fk_uf'=>'10'],\n ['nome'=>'Brejo de Areia ','fk_uf'=>'10'],\n ['nome'=>'Brejo ','fk_uf'=>'10'],\n ['nome'=>'Buriti Bravo ','fk_uf'=>'10'],\n ['nome'=>'Buriti ','fk_uf'=>'10'],\n ['nome'=>'Buriticupu ','fk_uf'=>'10'],\n ['nome'=>'Buritirama ','fk_uf'=>'10'],\n ['nome'=>'Cachoeira Grande ','fk_uf'=>'10'],\n ['nome'=>'Cajapio ','fk_uf'=>'10'],\n ['nome'=>'Cajari ','fk_uf'=>'10'],\n ['nome'=>'Campestre do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Candido Mendes ','fk_uf'=>'10'],\n ['nome'=>'Cantanhede ','fk_uf'=>'10'],\n ['nome'=>'Capinzal do Norte ','fk_uf'=>'10'],\n ['nome'=>'Carolina ','fk_uf'=>'10'],\n ['nome'=>'Carutapera ','fk_uf'=>'10'],\n ['nome'=>'Caxias ','fk_uf'=>'10'],\n ['nome'=>'Cedral ','fk_uf'=>'10'],\n ['nome'=>'Central do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Centro Novo do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Centro do Guilherme ','fk_uf'=>'10'],\n ['nome'=>'Chapadinha ','fk_uf'=>'10'],\n ['nome'=>'Cidelandia ','fk_uf'=>'10'],\n ['nome'=>'Codo ','fk_uf'=>'10'],\n ['nome'=>'CoelhoNeto ','fk_uf'=>'10'],\n ['nome'=>'Colinas ','fk_uf'=>'10'],\n ['nome'=>'Conceicaodo Lago-Acu ','fk_uf'=>'10'],\n ['nome'=>'Coroata ','fk_uf'=>'10'],\n ['nome'=>'Cururupu ','fk_uf'=>'10'],\n ['nome'=>'Davinopolis ','fk_uf'=>'10'],\n ['nome'=>'Dom Pedro ','fk_uf'=>'10'],\n ['nome'=>'Duque Bacelar ','fk_uf'=>'10'],\n ['nome'=>'Esperantinopolis ','fk_uf'=>'10'],\n ['nome'=>'Estreito ','fk_uf'=>'10'],\n ['nome'=>'Feira Nova do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Fernando Falcao ','fk_uf'=>'10'],\n ['nome'=>'Formosada Serra Negra ','fk_uf'=>'10'],\n ['nome'=>'Fortaleza dos Nogueiras ','fk_uf'=>'10'],\n ['nome'=>'Fortuna ','fk_uf'=>'10'],\n ['nome'=>'Godofredo Viana ','fk_uf'=>'10'],\n ['nome'=>'Goncalves Dias ','fk_uf'=>'10'],\n ['nome'=>'Governador Archer ','fk_uf'=>'10'],\n ['nome'=>'Governador Edison Lobao ','fk_uf'=>'10'],\n ['nome'=>'Governador Eugenio Barros ','fk_uf'=>'10'],\n ['nome'=>'Governador Luiz Rocha ','fk_uf'=>'10'],\n ['nome'=>'Governador Newton Bello ','fk_uf'=>'10'],\n ['nome'=>'Governador Nunes Freire ','fk_uf'=>'10'],\n ['nome'=>'Graca Aranha ','fk_uf'=>'10'],\n ['nome'=>'Grajau ','fk_uf'=>'10'],\n ['nome'=>'Guimaraes ','fk_uf'=>'10'],\n ['nome'=>'Humberto de Campos ','fk_uf'=>'10'],\n ['nome'=>'Icatu ','fk_uf'=>'10'],\n ['nome'=>'Igarape Grande ','fk_uf'=>'10'],\n ['nome'=>'Igarape do Meio ','fk_uf'=>'10'],\n ['nome'=>'Imperatriz ','fk_uf'=>'10'],\n ['nome'=>'Itaipava do Grajau ','fk_uf'=>'10'],\n ['nome'=>'Itapecuru Mirim ','fk_uf'=>'10'],\n ['nome'=>'Itingado Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Jatoba ','fk_uf'=>'10'],\n ['nome'=>'Jenipapo dos Vieiras ','fk_uf'=>'10'],\n ['nome'=>'Joao Lisboa ','fk_uf'=>'10'],\n ['nome'=>'Jose landia ','fk_uf'=>'10'],\n ['nome'=>'Junco do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Lago Verde ','fk_uf'=>'10'],\n ['nome'=>'Lago da Pedra ','fk_uf'=>'10'],\n ['nome'=>'Lago do Junco ','fk_uf'=>'10'],\n ['nome'=>'Lagoa Grande do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Lagoa do Mato ','fk_uf'=>'10'],\n ['nome'=>'Lagoa dos Rodrigues ','fk_uf'=>'10'],\n ['nome'=>'Lajeado Novo ','fk_uf'=>'10'],\n ['nome'=>'Lima Campos ','fk_uf'=>'10'],\n ['nome'=>'Loreto ','fk_uf'=>'10'],\n ['nome'=>'Luis Domingues ','fk_uf'=>'10'],\n ['nome'=>'Magalhaes de Almeida ','fk_uf'=>'10'],\n ['nome'=>'Maracacume ','fk_uf'=>'10'],\n ['nome'=>'Maraja do Sena ','fk_uf'=>'10'],\n ['nome'=>'Maranhaozinho ','fk_uf'=>'10'],\n ['nome'=>'Mata Roma ','fk_uf'=>'10'],\n ['nome'=>'Matinha ','fk_uf'=>'10'],\n ['nome'=>'Matoes do Norte ','fk_uf'=>'10'],\n ['nome'=>'Matoes ','fk_uf'=>'10'],\n ['nome'=>'Milagres do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Mirador ','fk_uf'=>'10'],\n ['nome'=>'Miranda do Norte ','fk_uf'=>'10'],\n ['nome'=>'Mirinzal ','fk_uf'=>'10'],\n ['nome'=>'Moncao ','fk_uf'=>'10'],\n ['nome'=>'Montes Altos ','fk_uf'=>'10'],\n ['nome'=>'Morros ','fk_uf'=>'10'],\n ['nome'=>'Nina Rodrigues ','fk_uf'=>'10'],\n ['nome'=>'Nova Colinas ','fk_uf'=>'10'],\n ['nome'=>'Nova Iorque ','fk_uf'=>'10'],\n ['nome'=>'Nova Olinda do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Olho dAgua das Cunhas ','fk_uf'=>'10'],\n ['nome'=>'Olinda Nova do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'PacodoLumiar ','fk_uf'=>'10'],\n ['nome'=>'Palmeirandia ','fk_uf'=>'10'],\n ['nome'=>'Paraibano ','fk_uf'=>'10'],\n ['nome'=>'Parnarama ','fk_uf'=>'10'],\n ['nome'=>'PassagemFranca ','fk_uf'=>'10'],\n ['nome'=>'PastosBons ','fk_uf'=>'10'],\n ['nome'=>'PaulinoNeves ','fk_uf'=>'10'],\n ['nome'=>'PauloRamos ','fk_uf'=>'10'],\n ['nome'=>'Pedreiras ','fk_uf'=>'10'],\n ['nome'=>'PedrodoRosario ','fk_uf'=>'10'],\n ['nome'=>'Penalva ','fk_uf'=>'10'],\n ['nome'=>'PeriMirim ','fk_uf'=>'10'],\n ['nome'=>'Peritoro ','fk_uf'=>'10'],\n ['nome'=>'Pindare Mirim ','fk_uf'=>'10'],\n ['nome'=>'Pinheiro ','fk_uf'=>'10'],\n ['nome'=>'PioXII ','fk_uf'=>'10'],\n ['nome'=>'Pirapemas ','fk_uf'=>'10'],\n ['nome'=>'Pocao de Pedras ','fk_uf'=>'10'],\n ['nome'=>'Porto Franco ','fk_uf'=>'10'],\n ['nome'=>'Porto Rico do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Presidente Dutra ','fk_uf'=>'10'],\n ['nome'=>'Presidente Juscelino ','fk_uf'=>'10'],\n ['nome'=>'Presidente Medici ','fk_uf'=>'10'],\n ['nome'=>'Presidente Sarney ','fk_uf'=>'10'],\n ['nome'=>'Presidente Vargas ','fk_uf'=>'10'],\n ['nome'=>'Primeira Cruz ','fk_uf'=>'10'],\n ['nome'=>'Raposa ','fk_uf'=>'10'],\n ['nome'=>'Riachao ','fk_uf'=>'10'],\n ['nome'=>'Ribamar Fiquene ','fk_uf'=>'10'],\n ['nome'=>'Rosario ','fk_uf'=>'10'],\n ['nome'=>'Sambaiba ','fk_uf'=>'10'],\n ['nome'=>'Santa Filomena do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Santa Helena ','fk_uf'=>'10'],\n ['nome'=>'Santa Ines ','fk_uf'=>'10'],\n ['nome'=>'Santa Luzia do Parua ','fk_uf'=>'10'],\n ['nome'=>'Santa Luzia ','fk_uf'=>'10'],\n ['nome'=>'Santa Quiteria do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Santa Rita ','fk_uf'=>'10'],\n ['nome'=>'Santana do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Santo Amaro do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Santo Antonio dos Lopes ','fk_uf'=>'10'],\n ['nome'=>'Sao Benedito do Rio Preto ','fk_uf'=>'10'],\n ['nome'=>'Sao Bento ','fk_uf'=>'10'],\n ['nome'=>'Sao Bernardo ','fk_uf'=>'10'],\n ['nome'=>'Sao DomingosdoAzeitao ','fk_uf'=>'10'],\n ['nome'=>'Sao Domingos do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Sao Felix de Balsas ','fk_uf'=>'10'],\n ['nome'=>'Sao Francisco do Brejao ','fk_uf'=>'10'],\n ['nome'=>'Sao Francisco do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Sao Joao Batista ','fk_uf'=>'10'],\n ['nome'=>'Sao Joao do Caru ','fk_uf'=>'10'],\n ['nome'=>'Sao Joao do Paraiso ','fk_uf'=>'10'],\n ['nome'=>'SaoJoaodoSoter ','fk_uf'=>'10'],\n ['nome'=>'SaoJoaodosPatos ','fk_uf'=>'10'],\n ['nome'=>'SaoJosedeRibamar ','fk_uf'=>'10'],\n ['nome'=>'SaoJosedosBasilios ','fk_uf'=>'10'],\n ['nome'=>'Sao Luis Gonzaga do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'SaoLuis ','fk_uf'=>'10'],\n ['nome'=>'Sao Mateus do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Sao Pedro da Agua Branca ','fk_uf'=>'10'],\n ['nome'=>'Sao Pedro dos Crentes ','fk_uf'=>'10'],\n ['nome'=>'Sao Raimundo das Mangabeiras ','fk_uf'=>'10'],\n ['nome'=>'Sao Raimundodo Doca Bezerra ','fk_uf'=>'10'],\n ['nome'=>'Sao Roberto ','fk_uf'=>'10'],\n ['nome'=>'Sao Vicente Ferrer ','fk_uf'=>'10'],\n ['nome'=>'Satubinha ','fk_uf'=>'10'],\n ['nome'=>'Senador Alexandre Costa ','fk_uf'=>'10'],\n ['nome'=>'Senador La Rocque ','fk_uf'=>'10'],\n ['nome'=>'Serrano do Maranhao ','fk_uf'=>'10'],\n ['nome'=>'Sitio Novo ','fk_uf'=>'10'],\n ['nome'=>'Sucupira do Norte ','fk_uf'=>'10'],\n ['nome'=>'Sucupirado Riachao ','fk_uf'=>'10'],\n ['nome'=>'Tasso Fragoso ','fk_uf'=>'10'],\n ['nome'=>'Timbiras ','fk_uf'=>'10'],\n ['nome'=>'Timon ','fk_uf'=>'10'],\n ['nome'=>'Trizidela do Vale ','fk_uf'=>'10'],\n ['nome'=>'Tufilandia ','fk_uf'=>'10'],\n ['nome'=>'Tuntum ','fk_uf'=>'10'],\n ['nome'=>'Turiacu ','fk_uf'=>'10'],\n ['nome'=>'Turilandia ','fk_uf'=>'10'],\n ['nome'=>'Tutoia ','fk_uf'=>'10'],\n ['nome'=>'Urbano Santos ','fk_uf'=>'10'],\n ['nome'=>'Vargem Grande ','fk_uf'=>'10'],\n ['nome'=>'Viana ','fk_uf'=>'10'],\n ['nome'=>'Vila Nova dos Martirios ','fk_uf'=>'10'],\n ['nome'=>'Vitoria doMearim ','fk_uf'=>'10'],\n ['nome'=>'Vitorino Freire ','fk_uf'=>'10'],\n ['nome'=>'Ze Doca ','fk_uf'=>'10'],\n\n ]);\n }", "title": "" }, { "docid": "44acb66047a284cdd48ec258d088ff12", "score": "0.5822301", "text": "function conectar() {\n\t\t\tif(!$this->link) {\n\t\t\t\t$this->link = mysqli_connect($this->servidor, $this->user, $this->pwd, $this->bd);\n\t\t\t\tif(!$this->link) {die(\"ERRO! N&Atilde;O FOI POSS&Iacute;VEL CONECTAR NO BD.<br />\");}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5d0b04c31fd90808c8ee2dbb074e955a", "score": "0.58185863", "text": "function abrirBancoTipoMov(){\n $conexao = new mysqli(\"localhost\",\"root\",\"\",\"banco\");\n return $conexao;\n }", "title": "" }, { "docid": "d162de2a7be3b28f2c11082265905697", "score": "0.58164746", "text": "public function run()\n {\n DB::statement('set foreign_key_checks = 0;');\n DB::table('alumno')->truncate();\n DB::statement('set foreign_key_checks = 1;');\n\n $alumno= new alumno();\n $alumno->ncontrol='1111';\n $alumno->id_carrera=\"anim\";\n $alumno->num_tel_fam=\"3212342\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Rebecca Gómez\";\n $alumno->id_persona=\"1\";\n $alumno->semestre=\"2\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='1234';\n $alumno->id_carrera=\"anim\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"8\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='987212';\n $alumno->id_carrera=\"ind\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"8\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560556';\n $alumno->id_carrera=\"arq\";\n $alumno->num_tel_fam=\"753139963\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"10\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560111';\n $alumno->id_carrera=\"der\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Saens\";\n $alumno->id_persona=\"11\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560345';\n $alumno->id_carrera=\"fis\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Oblac\";\n $alumno->id_persona=\"12\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560987';\n $alumno->id_carrera=\"ind\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"13\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560376';\n $alumno->id_carrera=\"mer\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"14\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15561009';\n $alumno->id_carrera=\"neg\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"15\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560815';\n $alumno->id_carrera=\"for\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"16\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n\n $alumno= new alumno();\n $alumno->ncontrol='15560654';\n $alumno->id_carrera=\"der\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"17\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560765';\n $alumno->id_carrera=\"anim\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"18\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='123155604';\n $alumno->id_carrera=\"fis\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"19\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560348';\n $alumno->id_carrera=\"fis\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"20\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560619';\n $alumno->id_carrera=\"arq\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"21\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15562365';\n $alumno->id_carrera=\"der\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"22\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15569234';\n $alumno->id_carrera=\"fis\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"23\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15562344';\n $alumno->id_carrera=\"ind\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"24\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15568923';\n $alumno->id_carrera=\"for\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"25\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15563465';\n $alumno->id_carrera=\"mer\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"26\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15587643';\n $alumno->id_carrera=\"neg\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"27\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15560863';\n $alumno->id_carrera=\"neg\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"28\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='87761265';\n $alumno->id_carrera=\"for\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"29\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n $alumno= new alumno();\n $alumno->ncontrol='15568993';\n $alumno->id_carrera=\"mer\";\n $alumno->num_tel_fam=\"44321608\";\n $alumno->plan_de_estudios=\"Animacion Digital-2012\";\n $alumno->nombre_fam=\"Sandra Alieri\";\n $alumno->id_persona=\"30\";\n $alumno->semestre=\"1\";\n $alumno->activo=\"1\";\n $alumno->password=hash_hmac('sha256', \"secret\", env('HASH_KEY'));\n $alumno->save();\n\n\n\n\n\n\n }", "title": "" }, { "docid": "2e509fa8552da93a196b5f3c5b211dbb", "score": "0.5816435", "text": "function conec()\r\n\t{\r\n\t\t//$this->conexion = (pg_connect(\"host=localhost port=8080 dbname=sigoca user=postgres password=winita\")) or die(pg_last_error());\r\n $this->conexion = mysql_connect('localhost', 'root', 'Adm15.') or die('No se pudo conectar: ' . mysql_error());\r\n mysql_select_db(\"evaluacion_cajera\",$this->conexion) or die(mysql_error());\r\n\t}", "title": "" }, { "docid": "3814678527715bb26c9739a828adc161", "score": "0.58157533", "text": "function Cadastrar()\n\t\t{\n\t\t\t$sql = \"insert into categoria\n\t\t\t\t\t(descricao) \n\t\t\t\t\tvalues \n\t\t\t\t\t(?)\";\n\n\t\t\t//executando o comando sql e passando os valores\n\t\t\t$this->con->prepare($sql)->execute(array(\n\t\t\t$this->descricao));\n\t\t}", "title": "" }, { "docid": "40a07a66cf4047da58dcbf2206000426", "score": "0.5814454", "text": "public function run()\n {\n //\n\n DB::table('cursos')->insert([\n 'id'=>1,\n 'curso'=>'Nuevas estrategias de administración pública con enfoque en recurso humano',\n 'duracion'=>'Ochenta horas (80) Cincuenta horas virtuales y treinta horas presenciales.',\n 'fecha_ini'=>'2019-12-02',\n 'presentacion'=>'Este diplomado aborda el estudio de los contenidos de la\n función pública territorial en promoción de la ética e integridad\n en la gestión gubernamental y sus fundamentos, acorde al marco \n regulatorio nacional y los requerimientos de la ciudadanía. ',\n 'obj_general'=>\t'Comprender la importancia de la función Pública \n y aplicar los contenidos estudiados en el Módulo,\n a la realidad particular de la institución de la\n cual forma parte el participante. ',\n 'id_tipo'=>1,\n 'carrera_id'=>1,\n 'created_at'=>NULL,\n 'updated_at'=>NULL,\n 'activo'=>1,\n 'perfil_entrada'=>'El presente Módulo está dirigido a funcionarias y\n funcionarios de la administración pública territorial\n y de los organismos descentralizados que se desempeñen\n en áreas afines o comunes a los temas a ser abordados \n en este Diplomado. Manejar herramientas de informática\n básica y de Internet (web, email) debido a que parte \n del diplomado será realizado en modalidad virtual, se \n requiere además demostrar interés y compromiso en su formación personal para beneficio de la Institución.',\n 'perfil_salida'=>'El participante del Módulo será capaz de: Comprender \n la importancia de la función Pública, Transparencia e\n Integridad en la Administración Pública. Aplicar los \n contenidos estudiados en el diplomado, a la realidad\n particular de la institución de la cual forma parte, \n para sugerir la incorporación de medidas preventivas \n que promuevan ambientes de mayor integridad.',\n ]);\n \n \n\n DB::table('cursos')->insert([\n 'id'=>\t2,\t\n 'curso'=>'Administración de la Plataforma SECOP II',\n 'duracion'=>'Cuarenta (40) Horas 100% virtuales y será certificados \n previo cumplimiento de los talleres dejados como prácticas virtuales. ',\n 'fecha_ini'=>'2019-12-11',\n 'presentacion'=>'Es un seminario taller para adquirir habilidades y \n destrezas para ingresar y navegar a través de la plataforma de SECOP II',\n 'obj_general'=>\t'El Módulo busca entregar las herramientas a contratistas \n y proveedores de bienes y servicios para acceder a la plataforma de SECOP\n II obligatoria para administrar la contratación pública.',\n 'id_tipo'=>\t2,\n 'carrera_id'=>1,\n 'created_at'=>NULL,\n 'updated_at'=> NULL,\n 'activo'=>1,\n 'perfil_entrada'=>'El presente Módulo está dirigido a funcionarios y\n funcionarias de la administración pública así como \n a contratistas y proveedores de servicios y bienes\n que ofrecen al Estado. El usuario debe manejar herramientas \n de informática y habilidades básicas en el uso de computadoras.\n Debido a que parte del Módulo será realizado en modalidad a distancia, \n requiere además que los participantes tengan experiencia básica en el\n uso de herramientas de Internet (web, email).Para que puedan participar \n de manera efectiva del Módulo, los participantes deben tener acceso a \n Internet y deben contar con una dirección de correo electrónico.\n Demostrar interés y compromiso en su formación personal para beneficio de la Institución',\n 'perfil_salida'=>'El participante del Módulo será capaz de: Aplicar los contenidos\n estudiados en el Módulo, a la realidad particular de la institución de la cual forma parte.',\n ]);\n \n \n DB::table('cursos')->insert([\n 'id'=>3,\t\n 'curso'=>'Cierre fiscal entidades territoriales ',\n 'duracion'=>'Cuarenta (30) Horas 100% virtuales y será certificados previo cumplimiento de los talleres dejados como prácticas virtuales. '\t,\n 'fecha_ini'=>'2019-12-11',\n 'presentacion'=>'Este seminario se conceptualizará y se \n establecerá la importancia sobre los alcances del cierre \n fiscal y financiero en particular por tratarse del \n de cuatrienio de un gobierno. ',\n 'obj_general'=>\t 'Ilustrar a las nuevas administraciones \n sobre los contenidos del cierre fiscal y financiero, su \n exigencia e interpretación del mismo. ',\n 'id_tipo'=>\t2,\n 'carrera_id'=>1,\n 'created_at'=>NULL,\n 'updated_at'=>NULL,\n 'activo'=>1,\n 'perfil_entrada'=>'El presente Módulo está dirigido a funcionarios y\n funcionarias de la administración pública incluyendo \n a los funcionarios de entidades de control fiscal y \n disciplinario así como a contratistas que administran \n los recursos públicos.El usuario debe manejar herramientas\n de informática y habilidades básicas en el uso de computadoras. \n Debido a que parte del Módulo será realizado en modalidad \n a distancia, se requiere además que los participantes \n tengan experiencia básica en el uso de herramientas de Internet \n (web, email). Para que puedan participar de manera efectiva del Módulo, \n los participantes deben tener acceso a Internet y deben contar con una \n dirección de correo electrónico. ',\n 'perfil_salida'=>\t'El participante del Módulo será capaz de: \n Interpretar el cierre fiscal y financiero de cualquier entidad pública y proyectar su impacto en el siguiente cuatrienio de gobierno. ',]);\n\n \n DB::table('cursos')->insert([\n 'id'=>\t4,\t\n 'curso'=>\t'Derecho de Policía y Derecho Procesal Policivo',\n 'duracion'=>'sin definir',\n 'fecha_ini'=>'2019-12-14',\n 'presentacion'=>'',\n 'obj_general'=>'',\n 'id_tipo'=>1,\n 'carrera_id'=>1,\n 'created_at'=> NULL,\n 'updated_at'=> NULL,\n 'activo'=>0,\n 'perfil_entrada'=>'',\n 'perfil_salida'=>'',]);\n \n\n \n\n }", "title": "" } ]
c097739522c956b1065ba752e03b5f39
Returns the value of field entrega_cidade
[ { "docid": "b998deafa86bbd595f06b1eb34f18220", "score": "0.85220104", "text": "public function getEntregaCidade()\n {\n return $this->entrega_cidade;\n }", "title": "" } ]
[ { "docid": "d3ddb9448d5105337c2fa8e0e008caa4", "score": "0.79284513", "text": "public function getCidade()\n {\n return $this->cidade;\n }", "title": "" }, { "docid": "d3ddb9448d5105337c2fa8e0e008caa4", "score": "0.79284513", "text": "public function getCidade()\n {\n return $this->cidade;\n }", "title": "" }, { "docid": "726b010a77581b3b44dbf202566cf384", "score": "0.78234446", "text": "public function getCidade(){\n return $this->cidade;\n }", "title": "" }, { "docid": "c52d79a56624d3290130b6646af8cecf", "score": "0.7436125", "text": "public function getEntregaCep()\n {\n return $this->entrega_cep;\n }", "title": "" }, { "docid": "84a7da57d856a38448b08a120dd14e37", "score": "0.7162787", "text": "public function getCdEmpresa()\n {\n return $this->cd_empresa;\n }", "title": "" }, { "docid": "ce1a675a9e5861fc00d3420afc2192ac", "score": "0.7051793", "text": "public function getEntregaContato()\n {\n return $this->entrega_contato;\n }", "title": "" }, { "docid": "360276b266711572bee561a55b830185", "score": "0.6931752", "text": "public function get_cidade($id=null)\n\t{\n\t\t$contato = $id ? new self($id) : $this;\n\t\t$cidade = new CepCidade($contato->id_cidade);\n\t\treturn $cidade->nome;\n\t}", "title": "" }, { "docid": "ca331acfc4d485ec074411e5ffa432e0", "score": "0.66912127", "text": "public function getCod_entidad()\n {\n return $this->cod_entidad;\n }", "title": "" }, { "docid": "84e94515c39fb086c56914afd1859a6b", "score": "0.66307706", "text": "public function getCodigoCarrera( ){\n\t\treturn $this->codigoCarrera;\n\t}", "title": "" }, { "docid": "4b291542c6cc0eb5203059eb37b79e69", "score": "0.66275346", "text": "public function getId_comentario(){\n\t\treturn $this->id_comentario;\n\t}", "title": "" }, { "docid": "d643e548c4a173c201496fadb03d6160", "score": "0.66115403", "text": "function GetClienteCidade($cidade){\n $query = \"SELECT * FROM {$this->prefix}cliente WHERE cidade LIKE '%$cidade%' AND cancelado = false \";\n \n $query .= $this->PaginacaoLinksLike(\"id_Cliente\",$this->prefix.\"cliente\", $cidade, \"cidade\");\n \n $this->ExecuteSQL($query);\n\n $this->GetLista();\n }", "title": "" }, { "docid": "6e73624ec58c2fb70c27372d93bba0f9", "score": "0.6519045", "text": "public function getCodcaj(){\n\t\treturn $this->codcaj;\n\t}", "title": "" }, { "docid": "6e73624ec58c2fb70c27372d93bba0f9", "score": "0.6519045", "text": "public function getCodcaj(){\n\t\treturn $this->codcaj;\n\t}", "title": "" }, { "docid": "1891a9eca54cf5dc063c046b6eab4368", "score": "0.6503768", "text": "public function getIdCita()\n {\n return $this->id_cita;\n }", "title": "" }, { "docid": "64c1e831cc94482bf75262b0415f7adc", "score": "0.64837813", "text": "public function getIdContaCorrente(){\r\n \treturn $this->id_conta;\r\n }", "title": "" }, { "docid": "146d67847168079a10c60d31a5fd28a7", "score": "0.6444755", "text": "public function getCarreraId()\r\n {\r\n return $this->Carrera_id;\r\n }", "title": "" }, { "docid": "d276cccdc789e379bbe9f103a5cf07c0", "score": "0.6431147", "text": "public function getEntregaCdPais()\n {\n return $this->entrega_cd_pais;\n }", "title": "" }, { "docid": "37c66f255cacdac8d50ec71e6b938e41", "score": "0.6411547", "text": "function getidcad() {return $this->idcad;}", "title": "" }, { "docid": "171e5b23134a04f22ffacb4e4f32a5fa", "score": "0.64097726", "text": "public function getCdPedido()\n {\n return $this->cd_pedido;\n }", "title": "" }, { "docid": "171e5b23134a04f22ffacb4e4f32a5fa", "score": "0.64097726", "text": "public function getCdPedido()\n {\n return $this->cd_pedido;\n }", "title": "" }, { "docid": "8072d499cffa1586b7fb0d312f158505", "score": "0.63993424", "text": "public function getContasFinanceiraCdContas()\n {\n return $this->contas_financeira_cd_contas;\n }", "title": "" }, { "docid": "26a3b3697c7a67ef905f031747e1ef49", "score": "0.6395389", "text": "public function getCodEsito()\n {\n return isset($this->CodEsito) ? $this->CodEsito : null;\n }", "title": "" }, { "docid": "c33b966069cb9e082790a480d8dcf4f4", "score": "0.63620484", "text": "public function getCodigoIdentificacao()\n {\n return $this->codigoIdentificacao;\n }", "title": "" }, { "docid": "0091bcccf74ea855c60012a8aeaecebd", "score": "0.63497007", "text": "public function getCcliente()\n {\n return $this->ccliente;\n }", "title": "" }, { "docid": "0091bcccf74ea855c60012a8aeaecebd", "score": "0.63497007", "text": "public function getCcliente()\n {\n return $this->ccliente;\n }", "title": "" }, { "docid": "044a3b5c6f49fd3158b31ff83bdc182f", "score": "0.63267034", "text": "public function getIdCobro()\n {\n return $this->id_cobro;\n }", "title": "" }, { "docid": "0e2dc82b8b5e49aa7ff20de86d84d2bc", "score": "0.6323361", "text": "public function getConhecimentoTransporteCdConhecimento()\n {\n return $this->conhecimento_transporte_cd_conhecimento;\n }", "title": "" }, { "docid": "09a925a3d0f8cc3f489dd25effceae18", "score": "0.6307268", "text": "public function getIdccusto()\n {\n return $this->idccusto;\n }", "title": "" }, { "docid": "09a925a3d0f8cc3f489dd25effceae18", "score": "0.6307268", "text": "public function getIdccusto()\n {\n return $this->idccusto;\n }", "title": "" }, { "docid": "4ce00c47ea8fb50cdaf4c5ac33f73e69", "score": "0.6304457", "text": "public function getNfeClienteCdCliente()\n {\n return $this->nfe_cliente_cd_cliente;\n }", "title": "" }, { "docid": "51c45d380f715ec4e979b2d702660b2c", "score": "0.62975556", "text": "public function getDCodigo() \n\t{\n\t\treturn $this->dCodigo;\n\t}", "title": "" }, { "docid": "9f95331b898e0022c8e6dfb871609fce", "score": "0.62904036", "text": "public function getCodClinica()\n {\n return $this->getModel()->getValor(\"codClinica\");\n }", "title": "" }, { "docid": "97cd2f3132b52ed08f7e29252d707b6c", "score": "0.62818795", "text": "public function getAnoCenso() {\n return $this->iAnoCenso;\n }", "title": "" }, { "docid": "17f3d7707de65fd05c91556211d22f7f", "score": "0.62293506", "text": "public function getCnae()\n {\n return $this->cnae;\n }", "title": "" }, { "docid": "f2c90fbcdb688a034a598d8477b5a77b", "score": "0.62033445", "text": "public function getCodigo()\n {\n return $this->codigo;\n }", "title": "" }, { "docid": "f2c90fbcdb688a034a598d8477b5a77b", "score": "0.62033445", "text": "public function getCodigo()\n {\n return $this->codigo;\n }", "title": "" }, { "docid": "f2c90fbcdb688a034a598d8477b5a77b", "score": "0.62033445", "text": "public function getCodigo()\n {\n return $this->codigo;\n }", "title": "" }, { "docid": "f2c90fbcdb688a034a598d8477b5a77b", "score": "0.62033445", "text": "public function getCodigo()\n {\n return $this->codigo;\n }", "title": "" }, { "docid": "f2c90fbcdb688a034a598d8477b5a77b", "score": "0.62033445", "text": "public function getCodigo()\n {\n return $this->codigo;\n }", "title": "" }, { "docid": "f2c90fbcdb688a034a598d8477b5a77b", "score": "0.62033445", "text": "public function getCodigo()\n {\n return $this->codigo;\n }", "title": "" }, { "docid": "7ca6b256429a782e3a83354797ffdbd0", "score": "0.6199268", "text": "public function getIdIncidencia() {\n return $this->idIncidencia;\n }", "title": "" }, { "docid": "fbf7929960fbd75d33897aea8cf30f80", "score": "0.61904365", "text": "public function setEntregaCidade($entrega_cidade)\n {\n $this->entrega_cidade = $entrega_cidade;\n\n return $this;\n }", "title": "" }, { "docid": "d17b90c22b448315c412b4d1d03e058f", "score": "0.6188912", "text": "public function getCodciu(){\n\t\treturn $this->codciu;\n\t}", "title": "" }, { "docid": "3aa1a37164ddc2513e3e08bd82221a04", "score": "0.61792827", "text": "public function get_criado_em() : string {\n\n return $this->criado_em;\n \n }", "title": "" }, { "docid": "499cbf2bfe55db7517df7d9fefa08e8e", "score": "0.6174096", "text": "public function getCEstado() \n\t{\n\t\treturn $this->cEstado;\n\t}", "title": "" }, { "docid": "bac9a72c55c1d33dee2da27af5e8f0ae", "score": "0.6164879", "text": "public function getCdContas()\n {\n return $this->cd_contas;\n }", "title": "" }, { "docid": "53bd127c54de4faf75b64a87c45eaaf7", "score": "0.61639404", "text": "public function getCodigo(){\n return $this->codigo;\n }", "title": "" }, { "docid": "1121105e9e37532e3f6d71583bc456a7", "score": "0.615626", "text": "public function getId_cliente()\n {\n return $this->id_cliente;\n }", "title": "" }, { "docid": "0b97003f065a06b9d43992829c9c16c5", "score": "0.6141101", "text": "public function getDataCriacao()\n {\n return $this->data_criacao;\n }", "title": "" }, { "docid": "2d35eb8e85a806b5c5f7fd1c05ca5cac", "score": "0.61312187", "text": "public function getCodigo() {\n return $this->codigo;\n }", "title": "" }, { "docid": "462bb120f4bf155e05f933a0efefac76", "score": "0.6125096", "text": "public function getCodigo() {\r\n return $this->codigo;\r\n }", "title": "" }, { "docid": "8c4503bfd2a042cfa10624f56df3aa4d", "score": "0.6109597", "text": "public function getCodCliente()\n {\n return $this->cod_cliente;\n }", "title": "" }, { "docid": "2c6b12c26ed043d4307a6cfd4568bb32", "score": "0.6099907", "text": "public function getCodi()\n {\n return $this->codi;\n }", "title": "" }, { "docid": "5e563557c08bf0e13a97376177e85c45", "score": "0.6098151", "text": "public function getCriado()\n {\n return $this->criado;\n }", "title": "" }, { "docid": "5e563557c08bf0e13a97376177e85c45", "score": "0.6098151", "text": "public function getCriado()\n {\n return $this->criado;\n }", "title": "" }, { "docid": "5e563557c08bf0e13a97376177e85c45", "score": "0.6098151", "text": "public function getCriado()\n {\n return $this->criado;\n }", "title": "" }, { "docid": "5e563557c08bf0e13a97376177e85c45", "score": "0.6098151", "text": "public function getCriado()\n {\n return $this->criado;\n }", "title": "" }, { "docid": "5e563557c08bf0e13a97376177e85c45", "score": "0.6098151", "text": "public function getCriado()\n {\n return $this->criado;\n }", "title": "" }, { "docid": "f22e37845e41103cf3efdcc7999b269d", "score": "0.6085593", "text": "public function getCodigo()\r\n {\r\n return $this->Codigo;\r\n }", "title": "" }, { "docid": "64e06d7faa5723220c03a506b9680b78", "score": "0.6084584", "text": "public function getNfentradaCdNfentrada()\n {\n return $this->nfentrada_cd_nfentrada;\n }", "title": "" }, { "docid": "5d0f1c471e5f3052a8cc4c09feddbcbd", "score": "0.6077876", "text": "public function getCodigo()\r\n {\r\n return $this->codigo;\r\n }", "title": "" }, { "docid": "6308771b470987b322e9ab74ca135791", "score": "0.60723877", "text": "public function getFkDividaModalidadeVigencia()\n {\n return $this->fkDividaModalidadeVigencia;\n }", "title": "" }, { "docid": "0a0e69700b9656c94d7233905897dfd1", "score": "0.6071155", "text": "public function getIdAsentaCpcons() \n\t{\n\t\treturn $this->idAsentaCpcons;\n\t}", "title": "" }, { "docid": "96a963219f15e3912c4a45a03df1b4bc", "score": "0.606611", "text": "public function getCodare(){\n\t\treturn $this->codare;\n\t}", "title": "" }, { "docid": "885aa568668af5281ea4744371c3aede", "score": "0.6049177", "text": "public function getData_criacao()\n {\n return $this->data_criacao;\n }", "title": "" }, { "docid": "44aa013a2222ed8c80b25c709ce7ae42", "score": "0.604476", "text": "public function getCodigo(){\n\t\treturn $this->noticiacod;\n\t}", "title": "" }, { "docid": "09331d1d4f296e89867bd7687c91ce4a", "score": "0.60280573", "text": "public function getCadastrado()\n {\n return $this->cadastrado;\n }", "title": "" }, { "docid": "f5f2e82cca16dac5794a44d0fb3ec5f3", "score": "0.6021943", "text": "public function getIdComentario()\n {\n return $this->idComentario;\n }", "title": "" }, { "docid": "63d9487246dd83ff03601ba4c06024b5", "score": "0.6003878", "text": "public function getCodigo() {\n return $this->sCodigo;\n }", "title": "" }, { "docid": "4ae9a1aa88299638565ae877dd1cc9f8", "score": "0.59907913", "text": "public function getEntregaNumero()\n {\n return $this->entrega_numero;\n }", "title": "" }, { "docid": "8dc0342c10bf5fb7d4cbac87e12c8346", "score": "0.59896713", "text": "function get_entrada_efectivo_caja($id)\n {\n return $this->db->get_where('entrada_efectivo_caja',array('id'=>$id))->row_array();\n }", "title": "" }, { "docid": "6217f828ea855cf52397b5f1cfa1da2b", "score": "0.5980905", "text": "public function getCodigo() {\n return $this->iCodigo;\n }", "title": "" }, { "docid": "6217f828ea855cf52397b5f1cfa1da2b", "score": "0.5980905", "text": "public function getCodigo() {\n return $this->iCodigo;\n }", "title": "" }, { "docid": "6217f828ea855cf52397b5f1cfa1da2b", "score": "0.5980905", "text": "public function getCodigo() {\n return $this->iCodigo;\n }", "title": "" }, { "docid": "6217f828ea855cf52397b5f1cfa1da2b", "score": "0.5980905", "text": "public function getCodigo() {\n return $this->iCodigo;\n }", "title": "" }, { "docid": "3f1685f17df9f8306912072069dc0788", "score": "0.5979753", "text": "public function getCodigoCliente(){\n return $this->codigoCliente;\n }", "title": "" }, { "docid": "2841bf53ff1ca319ba15372a4d900621", "score": "0.59639925", "text": "public function getCarrera()\r\n {\r\n return $this->carrera;\r\n }", "title": "" }, { "docid": "e6790d01fb5155284bb544829b8632e6", "score": "0.5944366", "text": "public function getCampusCarreraId()\r\n {\r\n return $this->CampusCarrera_id;\r\n }", "title": "" }, { "docid": "8fe7fe3a5e6bae25de14409b1d0c3574", "score": "0.5934077", "text": "public function getContact(){\n if ($this->contato!=\"\" && isset($this->contato)){\n return $this->contato;\n }\n }", "title": "" }, { "docid": "7d8b0bf6e8e6bbe56e2cb29ae1911691", "score": "0.59316677", "text": "public function getIdentificacionCliente()\n {\n return $this->identificacionCliente;\n }", "title": "" }, { "docid": "bce12468dd50c06160c3eb86fde0d6ad", "score": "0.59206766", "text": "public function getFkDividaDividaCancelada()\n {\n return $this->fkDividaDividaCancelada;\n }", "title": "" }, { "docid": "e71228369af183479bb6f56cd171cef9", "score": "0.5905985", "text": "public function getCCveCiudad() \n\t{\n\t\treturn $this->cCveCiudad;\n\t}", "title": "" }, { "docid": "a148b7ddc0bae3fb0b54de04ddce5b90", "score": "0.59039783", "text": "public function getCodigoEscola() {\n return $this->iCodigoEscola;\n }", "title": "" }, { "docid": "ad1f60bdebb150dfe9db1a35b5f649dc", "score": "0.58919257", "text": "public function getFkCalendarioCalendarioCadastro()\n {\n return $this->fkCalendarioCalendarioCadastro;\n }", "title": "" }, { "docid": "ad1f60bdebb150dfe9db1a35b5f649dc", "score": "0.58919257", "text": "public function getFkCalendarioCalendarioCadastro()\n {\n return $this->fkCalendarioCalendarioCadastro;\n }", "title": "" }, { "docid": "d00fb791b80f7066555118d53b584a3c", "score": "0.5888128", "text": "public function getIdEmpresa()\n {\n return $this->id_empresa;\n }", "title": "" }, { "docid": "82306facb4d60a0a691d066a36acd29c", "score": "0.5880862", "text": "public function getCodigoCliente()\n {\n return $this->codigoCliente;\n }", "title": "" }, { "docid": "697fed8a1a3d1a03973096079da95186", "score": "0.5873721", "text": "public function getIdEmpresa()\n {\n return $this->idEmpresa;\n }", "title": "" }, { "docid": "cbea3ea95c01172973d13d9965e4e5f5", "score": "0.5873014", "text": "public function getOrcamentoCdOrcamento()\n {\n return $this->orcamento_cd_orcamento;\n }", "title": "" }, { "docid": "dd226595f05e70abd7e84591dbfcbcec", "score": "0.58700764", "text": "public static function getCiudad() {\n try {\n $query = \"SELECT * FROM v_ultimas_cinco_ciudades\";\n\n self::getConexion();\n\n $resultado = self::$cnx->prepare($query);\n $resultado->execute();\n $fila = $resultado->fetchAll(PDO::FETCH_OBJ);\n\n return $fila;\n\n } catch (Exception $e) {\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "4eb48d5e6141017b01cd7edb13e5c426", "score": "0.5866428", "text": "public function getIdEntrepriseContact()\n {\n return $this->idEntrepriseContact;\n }", "title": "" }, { "docid": "5c83708cbacf470e820a6f66a4ed27ba", "score": "0.58490944", "text": "public function getIdCliente(){return $this->ciPersonaReferencia;}", "title": "" }, { "docid": "ccc8a29b631b2f09ba25aed489da8bd5", "score": "0.5842167", "text": "public function getCorredorDaPedra(){\n\n return $this->corredor;\n }", "title": "" }, { "docid": "ee20ac6c32c2de8152ade1f40ac6ce8b", "score": "0.5837553", "text": "public function getIdPropostaComercial()\n {\n return $this->id_proposta_comercial;\n }", "title": "" }, { "docid": "66d0776b88a69d73e3aabfc38821e450", "score": "0.5809243", "text": "function getCodeClienti() {\n $sql = \"SELECT * FROM vsecommerce_info WHERE field_name='CODICECLI'\";\n $db = new MySQL();\n $result = $db -> QuerySingleRow($sql);\n return $result -> value;\n }", "title": "" }, { "docid": "eacec99ec5aa3ddee9de5b310770368c", "score": "0.58087206", "text": "public function getIdCliente()\n {\n return $this->id_cliente;\n }", "title": "" }, { "docid": "b5c42a6889ebae709298d91455b7bbba", "score": "0.5808108", "text": "public function getDtCadastro(){\n return $this->dt_cadastro;\n }", "title": "" }, { "docid": "79eb68f5f774c60507e1721c5c1dc8c0", "score": "0.5805424", "text": "public function getDataAcao()\n {\n return $this->data_acao;\n }", "title": "" }, { "docid": "399713cd36e122e3c3c0c8688706610a", "score": "0.5801193", "text": "public function getIdEncuesta(){\r\n\t\treturn $this->idEncuesta;\r\n\t}", "title": "" }, { "docid": "0416ce5bdb18d2ec67ec922ec2630d4a", "score": "0.5801143", "text": "public function getCobranca()\n {\n return $this->cobranca;\n }", "title": "" } ]
613ba35e43ef4ca309fcc0446f108283
Get every peak in the database
[ { "docid": "11c41590c7ddc9c18bb32a502d3d5735", "score": "0.64762056", "text": "public function getAllPeaks()\n\t{\n\t\t$this->connect();\n\t\t$rs = mysql_query(\"select * from peaks_location\")\n\t\tor die (\"Unable to complete query.\");\n\t\t\n\t\t$arr_peaks = array();\n\t\t\n\t\twhile( $row = mysql_fetch_assoc($rs) )\n\t\t{\n\t\t\t$peak = new MountainPeak();\n\t\t\t$peak->id = $row['id']+0;\n\t\t\t$peak->name = $row['name'];\n\t\t\t$peak->elevation = $row['elevation']+0;\n\t\t\t$peak->latitude = $row['latitude']+0.0;\n\t\t\t$peak->longitude = $row['longitude']+0.0;\n\t\t\t$peak->prominence = $row['prominence']+0;\n\t\t\t$peak->range_name = $row['range_name'];\n\t\t\t$peak->state = $row['state'];\n\t\t\t$peak->first_ascent = $row['first_ascent'];\n\t\t\t\n\t\t\tarray_push($arr_peaks,$peak);\n\t\t}\n\t\t\n\t\treturn $arr_peaks;\n\t}", "title": "" } ]
[ { "docid": "4bd686d8cc4d84ffcb7212453142ff0e", "score": "0.5637878", "text": "function getExtremeValues()\n{\n $config = Configuration::get();\n $info = new \\stdClass();\n $sql = sprintf(\"SELECT COUNT(*) AS entryNb, MIN(ts) AS oldestEntryTs, MAX(ts) AS newestEntryTs FROM %s WHERE 1\",\n $config->mysqlTableWeather);\n $info->info = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, SUM(raindifference) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val DESC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->rMax = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, MAX(temperature) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val DESC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->tMax = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, AVG(temperature) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val DESC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->tAvgMax = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, MIN(temperature) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val ASC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->tMin = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, AVG(temperature) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val ASC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->tAvgMin = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, temperature, MAX(humidity) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val DESC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->hMax = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, temperature, MIN(humidity) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val ASC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->hMin = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, MAX(wind) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val DESC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->wMax = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, (MAX(temperature) *SIGN(MAX(temperature)) - MIN(temperature) * SIGN(MIN(temperature))) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val DESC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->tDiffMax = runSqlQuery($sql);\n\n $sql = sprintf(\"SELECT ts, (MAX(temperature) *SIGN(MAX(temperature)) - MIN(temperature) * SIGN(MIN(temperature))) AS val FROM %s WHERE 1 GROUP BY YEAR(ts), MONTH(ts), DAY(ts) ORDER BY val ASC LIMIT 5\",\n $config->mysqlTableWeather);\n $info->tDiffMin = runSqlQuery($sql);\n\n return $info;\n}", "title": "" }, { "docid": "861b47443f259ac1bdc6692ba241732b", "score": "0.5451761", "text": "function getLastQsoFrequencies($mysqlConnection) {\n /*\n $q = \"SELECT station, frequency FROM frequencies ORDER BY station\";\n $results= array();\n $r = mysqli_query($mysqlConnection, $q);\n while ($row = mysqli_fetch_object($r)) \n {\n $results[$row->station] = $row->frequency;\n }\n return $results;\n */\n // Query below doesn't have GROUP BY as that would give first frequency, not last (even with ORDER BY endTime DESC)\n $q = \"SELECT station, frequency FROM log WHERE endTime>(DATE_SUB(NOW(),INTERVAL 70 MINUTE)) ORDER BY station, endTime DESC\"; // Subtract 70 mins for 10 mins off UTC time (aka nasty timezone hack)\n $results= array();\n $r = mysqli_query($mysqlConnection, $q);\n while ($row = mysqli_fetch_object($r)) \n {\n $stationNonBreakingHyphen = str_replace(\"-\",\"&#8209;\",$row->station);\n if (!array_key_exists($row->station,$results)) // Only the latest QSO can go into the array\n {\n $results[$stationNonBreakingHyphen] = $row->frequency / 1000000;\n }\n }\n ksort($results);\n return $results;\n}", "title": "" }, { "docid": "69e0307977015d4e349f4113ccedbaa5", "score": "0.53645223", "text": "public function getList() {\n $records = $this->db->fetchAll('SELECT mapname, min(runtime) AS runtime FROM playertimes WHERE runtime > -1 GROUP BY mapname');\n for ($i = 0 ; $i < count($records); $i++) \n $records[$i]['runtime'] = floatval($records[$i]['runtime']);\n return $records;\n }", "title": "" }, { "docid": "8bb2473624a0f1d3cb379853ec8a4884", "score": "0.53218013", "text": "function get_last_data($nodes, $type_mea) {\n $meas = array();\n foreach ($nodes as $node) {\n $node_id = $node['id'];\n $query = \"SELECT * FROM meas WHERE node_id =\".\n $node_id.\n \" and type_mea = \".\n $type_mea.\n \" ORDER by id DESC LIMIT 1\";\n $res = mysql_query($query);\n $row = mysql_fetch_array($res);\n $tmp_array = array(\"id\" => $row[0],\n\t\t \"node_id\" => $row[1],\n\t\t \"date\" => $row[2],\n\t\t \"mea\" => $row[3],\n\t\t \"type_mea\" => $row[4]\n\t\t );\n array_push($meas, $tmp_array);\n }\n return $meas;\n}", "title": "" }, { "docid": "e2b361cf7b392e7d359e882f342135a4", "score": "0.53180754", "text": "function generateCurrentTempMinMax($day, $month, $year, $sensorIndex)\n{\n $resForOneSensor = array();\n $tempMinMax = array();\n $lines = readAllRecordsForOneDay($day, $month, $year, 0); \n $res = reorganizeDataPerSensor($lines);\n $resForOneSensor = $res[$sensorIndex];\n $tempMinMax[\"temp\"] = end($resForOneSensor); \n $tempMinMax[\"min\"] = min($resForOneSensor);\n $tempMinMax[\"max\"] = max($resForOneSensor);\n return $tempMinMax;\n}", "title": "" }, { "docid": "99473b9699dd8bef464d97ec0908ae25", "score": "0.5119597", "text": "function db_getGraphDataForLeckeKerdezzTest($numberOfLecke = -1) {\n $graphData = array();\n\n $leckeName = \"lecke\" . $numberOfLecke . \"kf\";\n\n /* összes kitöltő */\n global $conn;\n $stmt = $conn->prepare(\"SELECT COUNT(*)\n FROM kitolt\n WHERE tesztId = (SELECT id\n FROM teszt\n WHERE nev = :lname)\");\n $stmt->bindParam(':lname', $leckeName);\n $stmt->execute();\n $allFiller = $stmt->fetchColumn();\n\n /* first column for the graph */\n $stmt = $conn->prepare(\"SELECT COUNT(*)\n FROM kitolt\n WHERE tesztId = (SELECT id\n FROM teszt\n WHERE nev = :lname) AND pontszam BETWEEN 0 AND 3\");\n $stmt->bindParam(':lname', $leckeName);\n $stmt->execute();\n $row_count = $stmt->rowCount();\n if($row_count == 0 || $allFiller == 0) {\n array_push($graphData, 0);\n } else {\n array_push($graphData, round(($stmt->fetchColumn() / $allFiller) * 100));\n }\n\n /* second column for the graph */\n $stmt = $conn->prepare(\"SELECT COUNT(*)\n FROM kitolt\n WHERE tesztId = (SELECT id\n FROM teszt\n WHERE nev = :lname) AND pontszam BETWEEN 4 AND 7\");\n $stmt->bindParam(':lname', $leckeName);\n $stmt->execute();\n $row_count = $stmt->rowCount();\n if($row_count == 0 || $allFiller == 0) {\n array_push($graphData, 0);\n } else {\n array_push($graphData, round(($stmt->fetchColumn() / $allFiller) * 100));\n }\n\n /* third column for the graph */\n $stmt = $conn->prepare(\"SELECT COUNT(*)\n FROM kitolt\n WHERE tesztId = (SELECT id\n FROM teszt\n WHERE nev = :lname) AND pontszam BETWEEN 8 AND 10\");\n $stmt->bindParam(':lname', $leckeName);\n $stmt->execute();\n $row_count = $stmt->rowCount();\n if($row_count == 0 || $allFiller == 0) {\n array_push($graphData, 0);\n } else {\n array_push($graphData, round(($stmt->fetchColumn() / $allFiller) * 100));\n }\n\n return $graphData;\n}", "title": "" }, { "docid": "860a4d73a7edcd4daa248fbb82663235", "score": "0.5116134", "text": "function getPairedEndHistogram($pdo, $table, $assembly, $left, $right, $bases, $pixels, $auto)\n{\n\tglobal $ibase;\n\t$query = \"select strand, start, end, 1, 1, length(sequenceA), length(sequenceB) from $table force index (start) where assembly = '$assembly' and start <= $right and end >= $left\";\n\t//$query = \"select 'read', strand, start, end, 1, 1, length(sequenceA), length(sequenceB) from $table where assembly = '$assembly' and start <= $right and end >= $left\";\n\n\tif (cache_exists($query, $table)) \n\t{\n\t\tif ($auto) cache_stream($query, $table);\n\t\treturn false;\n\t}\n\n\tif (!isset($pdo) || !$pdo) include_once 'common_PDO_die.php';\n\t$max = max_range($pdo, $table);\n\t$lefts = $left - $max; if ($lefts<0) $lefts=0;\n\t$qstmt = \"select strand, start, end, 1, 1, length(sequenceA), length(sequenceB) from $table force index (start) where assembly = '$assembly' and start <= $right and start > $lefts and end >= $left\"; \n\t$result = array();\n\t$unit = round($bases / $pixels);\n\n\t$stmt = $pdo->prepare($qstmt);\n\t$stmt->execute();\n\n\t$class = 'read';\n\t$result[$class] = array();\n\n\t//while ($r = mysqli_fetch_row($d))\n\twhile ($r = $stmt->fetch(PDO::FETCH_NUM))\n\t{\n\t\t//$class = $r[0];\n\t\t$strand = $r[0];\n\t\t$start = $r[1] + $ibase;\n\t\t$end = $r[2] + $ibase;\n\t\t$count = $r[3] + 0;\n\t\t$copies = $r[4] + 0;\n\t\t$lenA = $r[5] + 0;\n\t\t$lenB = $r[6] + 0;\n\n\t\t//Determine the range of x positions covered by the read\n\t\t$a1 = floor($start * $pixels / $bases);\n\t\t$a2 = ceil(($start+$lenA) * $pixels / $bases);\n\n\t\t$b1 = floor(($end-$lenB) * $pixels / $bases);\n\t\t$b2 = ceil($end * $pixels / $bases);\n\n\t\t//For each of the x positions, convert to a genome position and add to the count\n\t\tfor ($x=$a1; $x<=$b2; $x++)\n\t\t{\n\t\t\t//if ($x > $a2 && $x < $b1) continue;\n\t\t\tif ($x > $a2 && $x < $b1) $x = $b1;\n\n\t\t\t$gpos = $x * $bases / $pixels;\n\n\t\t\tif (!isset($result[$class][\"$gpos\"]))\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"] = array($gpos,0,0);\n\t\t\t}\n\n\t\t\t$amt = 0;\n\n\t\t\tif ($gpos < $start)\n\t\t\t{\n\t\t\t\t$amt = $gpos + $unit - $start;\n\t\t\t}\n\t\t\telse if ($gpos + $unit > $end && $gpos < $end)\n\t\t\t{\n\t\t\t\t$amt = $end - $gpos;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$amt = $unit;\n\t\t\t}\n\n\t\t\t$amt *= $copies;\n\n\t\t\tif ($strand == '+')\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"][1] += $amt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"][2] += $amt;\n\t\t\t}\n\t\t}\n\t}\n\n\t//Simplify the data stream\n\tforeach ($result as $class => $data)\n\t{\n\t\t$clean = array();\n\n\t\tforeach ($data as $datum)\n\t\t{\n\t\t\t$clean[] = $datum;\n\t\t}\n\t\t$result[$class] = $clean;\n\t}\n\n\t//Create cache and stream to user\n\tcache_create($query, $result, $auto, $table);\n\tunset( $result);\n\treturn true;\n}", "title": "" }, { "docid": "0d3915d9934872693a4122b6b11ae393", "score": "0.5107777", "text": "public function getRecordsInterval() {}", "title": "" }, { "docid": "5d502c4c5445db587f6f778e11cf1f7e", "score": "0.5080401", "text": "public function get_portion($table) {// return array\r\n $limit = $this->limit;\r\n $this->reconnect();\r\n $query = $this->select_bd(\"SELECT * FROM $table WHERE date_check is NULL OR DATEDIFF(NOW(), date_check) > 30 LIMIT $limit\");\r\n return $query;\r\n }", "title": "" }, { "docid": "085bc60fb0ddc4ce9a1db2efbd7c64bd", "score": "0.50611067", "text": "public function getEnergyList() {\r\n\t\t$bObjects = R::find( self::$tbl, ' ORDER BY time');\r\n\t\t$objects = array();\r\n\t\tforeach ($bObjects as $bObject) {\r\n\t\t\t$objects[] = $this->toObject($bObject);\r\n\t\t}\r\n\t\treturn $objects;\r\n\t}", "title": "" }, { "docid": "4d569abe22baea08307032bc76559dca", "score": "0.5044351", "text": "function getCurrentDataSet()\n{\n $config = Configuration::get();\n $sql = sprintf(\"SELECT * FROM %s ORDER BY ts DESC LIMIT 1\", $config->mysqlTableWeather);\n $result = runSqlQuery($sql);\n\n $date = getdate();\n $config = Configuration::get();\n $utcOffset = Configuration::getUtcOffset($date['year'], $date['mon'], $date['mday']);\n $timestamp = time();\n\n $range = sprintf(\"DATE(CONVERT_TZ(ts, '+00:00', '%s')) > DATE_SUB('%02d-%02d-%02d %02d:%02d:%02d', INTERVAL 10 HOUR) \",\n $utcOffset,\n $date['year'],\n $date['mon'],\n $date['mday'],\n $date['hours'],\n $date['minutes'],\n $date['seconds']\n );\n\n\n // For the rain, get the sum of the last few entries\n $sql = sprintf(\"SELECT SUM(raindifference) AS rd FROM %s WHERE TIMESTAMPDIFF(HOUR,ts,NOW()) < 2 ORDER BY ts DESC LIMIT 10\",\n $config->mysqlTableWeather);\n\n $rain = runSqlQuery($sql);\n\n $result->data[0]->raindifference = $rain->data[0]->rd;\n\n return $result;\n\n}", "title": "" }, { "docid": "2449b91b01699e55bf1e33ea8683ad8b", "score": "0.50393474", "text": "function getNumbersLatency() {\n $bigData = $this->get();\n$ids = $this->getIDs();\n$latestDrawID = array_shift($ids);\n// $latestDrawID = array_shift($this->getIDs());\n $latentNumbers = array_fill(1, 52, 0);\n for($number = LOTTERY_MIN_NUMBER; $number < LOTTERY_MAX_NUMBER + 1; $number++) {\n foreach($bigData as $row) {\n for($groupID = LOTTERY_MIN_NUMBER; $groupID <LOTTERY_BALLS_NUMBER + 1; $groupID++) {\n if($number == $row[\"ball_\".$groupID]) {\n $latentNumbers[$number] = $latestDrawID - $row[\"id\"];\n break 2;\n }\n }\n }\n }\n return $latentNumbers;\n }", "title": "" }, { "docid": "ff04392f7fc2ed258c9ea387591d22ab", "score": "0.49961546", "text": "function breakingRecords($scores)\n{\n $highest=0;\n $lowest=0;\n\n $temp=$scores[0];\n $temp2=$scores[0];\n for ($i=0; $i < count($scores) ; $i++) {\n if ($temp<$scores[$i]) {\n $temp=$scores[$i];\n $highest++;\n }\n if ($temp2>$scores[$i]) {\n $temp2=$scores[$i];\n $lowest++;\n }\n }\n\n echo $highest, \" \", $lowest;\n\n}", "title": "" }, { "docid": "cdad521af187c3b229c657ff47ca0fef", "score": "0.49946597", "text": "function getRainfallSenslope($site, $start_date, $end_date = null, $limit = null, $host, $db, $user, $pass)\n\t{\n\t\t/*\n\t\t$host = \"localhost\";\n\t\t$user = \"root\";\n\t\t$pass = \"senslope\";\n\t\t$db = \"senslopedb\";\n\t\t*/\n\n\t\t/**\n\t\t* Object that will be returned\n\t\t*/\n\t\tclass Senslope\n\t\t{\n\t\t\tpublic $max_rain_2year;\n\t\t\tpublic $rain_senslope = [];\n\t\t}\n\n\t\t$con = mysqli_connect($host, $user, $pass, $db);\n\t\tif ( mysqli_connect_errno() ) {\n\t\t\techo \"Failed to connect to MySQL: \" . mysqli_connect_error();\n\t\t}\n\n\t\t$query = \"SELECT rain_senslope, max_rain_2year FROM site_rain_props WHERE LEFT(name,3) = '$site' AND rain_senslope IS NOT NULL\";\n\t\t$result = mysqli_query($con, $query);\n\t\t$output = mysqli_fetch_object($result);\n\t\t//echo \"Table name: \" . $output[0];\n\t\t//var_dump($output);\n\n\t\tif( is_null($output->rain_senslope) ) {\n\t\t\techo \"Site \\\"$site\\\" has no corresponding \\\"rain_senslope\\\" values.\";\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\t$query = \"SELECT * FROM $output->rain_senslope WHERE timestamp > '$start_date'\";\n\t\t\tif (!is_null($end_date)) $query = $query . \" AND timestamp <= '$end_date'\";\n\t\t\tif(!is_null($limit)) $query = $query . \" LIMIT $limit\";\n\t\t\t//echo $query;\n\n\t\t\t$result = mysqli_query($con, $query);\n\n\t\t\t$rain_info = new Senslope;\n\t\t\t$rain_info->max_rain_2year = $output->max_rain_2year;\n\n\t\t\t$i = 0;\n\t\t\twhile ($row = mysqli_fetch_assoc($result)) {\n\t\t\t\t$rain_info->rain_senslope[$i] = $row;\n\t\t\t\t//var_dump($rain_info);\n\t\t\t\t$i = $i + 1;\n\t\t\t}\n\t\t}\n\n\t\tmysqli_close($con);\n\t\treturn json_encode($rain_info);\n\n\t}", "title": "" }, { "docid": "0b8e3171a1a5b693774efec13286665a", "score": "0.49942958", "text": "function findExtrema()\n\t{\n\t\t$extrema = performOneRowQuery(\"Find Location Extrema\",\n \"SELECT\n max(locations.latitude) as maxLat, \n min(locations.latitude) as minLat, \n max(locations.longitude) as maxLong, \n min(locations.longitude) as minLong \" .\n\t\t\t$this->getFromClause() . \" \" .\n\t\t\t$this->getWhereClause() . \" \" .\n\t\t\t\"AND locations.latitude>0 AND locations.longitude<0\"); \n\n\t\treturn $extrema;\n\t}", "title": "" }, { "docid": "f5c9b91849dd70206b9fd5392ce13b26", "score": "0.49877235", "text": "function getMemorysForOneVm ($connection, $vmName, $QueryNumber)\n{\n $sqlAverageQuery = \"SELECT timestamp, percent FROM mem WHERE machineName = '$vmName' Order By timestamp DESC limit {$QueryNumber} \";\n $sqlAverageResult = mysqli_query($connection, $sqlAverageQuery);\n\tif (!$sqlAverageResult) {\n\t\tdie(\"Database query failed.....\");\n\t}\n\t//else echo \"query success\";\n\n while ($row = mysqli_fetch_array($sqlAverageResult)) {\n $averageResult[] = $row;\n }\n\n return $averageResult;\n}", "title": "" }, { "docid": "5b02b6c52d7cf3abc68ac5aa4411f7df", "score": "0.4958452", "text": "function getArrayBusesForStop($stopName)\r\n{\r\n\t// for each stop found also get the bus number .. also I want BIAS and G series to be considered last so order by\r\n\t$busQuery=\"Select BusNumber from BusDetails where StopName='\".$stopName.\"'ORDER BY BusNumber DESC\";\r\n\t$busResult= mysql_query($busQuery);\r\n\t$busRowsnum = mysql_num_rows($busResult);\r\n\t$buses=array();\r\n\tfor($j=0;$j<$busRowsnum;$j++)\r\n\t{\r\n\t\t$busRow=mysql_fetch_row($busResult);\r\n\t\tarray_push($buses,$busRow[0]);\r\n\t}\r\n\treturn $buses;\r\n\t//echo $buses;\r\n}", "title": "" }, { "docid": "4bff0b801d6badbdd17e7624563788bf", "score": "0.49219155", "text": "private function _getMaxima($aTable) {\n $aReturn = array();\n foreach ($aTable as $row) {\n foreach (array_keys($row) as $key) {\n if (!array_key_exists($key, $aReturn)) {\n $aReturn[$key] = $row[$key];\n }\n if ($row[$key] > $aReturn[$key]) {\n $aReturn[$key] = $row[$key];\n }\n }\n }\n return $aReturn;\n }", "title": "" }, { "docid": "b2b3a41d83b7a98398256ad400e0460a", "score": "0.4919082", "text": "function getLatestMarker(){\n\t$markers =array();\n\n\t$result = pg_query(getConn(), \"\n\t\nselect a.*,f.classification_desc,f.category_desc,f.status_description,f.action_taken,f.what_happened,f.status_id,f.narrative_id from crime_db.incident_report as a\nleft OUTER join crime_db.mapdata as f on f.marker_id = a.marker_id order by marker_id;\n\n\twhere a.marker_id= (select max(incident_records.marker_id) from crime_db.incident_records);\n\t\n\t\");\n\tif (!$result) {\n\t\t\techo \"An error occurred.\\n\";\n\t\t\texit;\n\t}\n\telse{\n\t\twhile($row = pg_fetch_array($result)){\n\t\t\t\t\t\t\t$markers[] = $row;\n\t\t\t\t\t\t}\n\t} \nreturn $markers;\n}", "title": "" }, { "docid": "e80b82619a54feb43b9fa5d1c91cc40c", "score": "0.49079725", "text": "function electrique(){\n$timestamp=\"\";\n$conso=\"\";\n\n$sql = mysql_query(\"SELECT TIMESTAMP(CONCAT(YEAR(date_histo ),'-',MONTH(date_histo ),'-',DAY(date_histo ),' ',HOUR(date_histo ),':',MINUTE(date_histo ))),\n\t\t\t\t\tdate_histo, AVG(valeur1),MAX(valeur1),MIN(valeur1)\n\t\t\t\t\tFROM historique_donnees\n\t\t\t\t\tWHERE id_objet = 2\n\t\t\t\t\tAND date_histo > DATE_SUB(NOW( ), INTERVAL 1 DAY)\n\t\t\t\t\tGROUP BY YEAR( date_histo ) , MONTH( date_histo ),DAY( date_histo ),HOUR( date_histo ) , MINUTE( date_histo ), id_objet\n\t\t\t\t\tHAVING MINUTE( date_histo ) IN ( 00, 15, 30, 45 )\n\t\t\t\t\tORDER BY date_histo\");\nwhile(list($date_histo,$date_histo2,$conso_sql,$conso_sql_max,$conso_sql_min) = mysql_fetch_array($sql))\n{\n\t$timestamp[] = strtotime($date_histo);\n\t$conso[] = $conso_sql;\n\t$conso_max[] = $conso_sql_max;\n\t$conso_min[] = $conso_sql_min;\n}\n \n$myData = new pData(); \n$myData->addPoints($timestamp,\"Timestamp\");\n$myData->addPoints($conso,\"Consommation Instantanée Moyenne\");\n$myData->addPoints($conso_max,\"Conso. Inst. Max\");\n$myData->addPoints($conso_min,\"Conso. Inst. Min\");\n\n$myData->setSerieOnAxis(\"Consommation Instantanée\",0);\n$myData->setSerieOnAxis(\"Conso. Inst. Max\",0);\n$myData->setSerieOnAxis(\"Conso. Inst. Min\",0);\n\n$myData->setAbscissa(\"Timestamp\");\n$myData->setXAxisName(\"Time\");\n$myData->setXAxisDisplay(AXIS_FORMAT_TIME,\"H\\h\");\n$myData->setAxisName(0,\"Consommation Instantanée\");\n$myData->setAxisUnit(0,\"W\");\n\n$myPicture = new pImage(1250,550,$myData);\n\n$Settings = array(\"StartR\"=>48, \"StartG\"=>124, \"StartB\"=>183, \"EndR\"=>33, \"EndG\"=>86, \"EndB\"=>128, \"Alpha\"=>50);\n$myPicture->drawGradientArea(0,0,1250,550,DIRECTION_VERTICAL,$Settings);\n\n$myPicture->setShadow(TRUE,array(\"X\"=>1,\"Y\"=>1,\"R\"=>50,\"G\"=>50,\"B\"=>50,\"Alpha\"=>20));\n\n$myPicture->setFontProperties(array(\"FontName\"=>\"fonts/Forgotte.ttf\",\"FontSize\"=>18));\n$TextSettings = array(\"Align\"=>TEXT_ALIGN_MIDDLEMIDDLE\n, \"R\"=>255, \"G\"=>255, \"B\"=>255);\n$myPicture->drawText(350,25,\"Consommation éléctrique\",$TextSettings);\n\n$myPicture->setShadow(FALSE);\n$myPicture->setGraphArea(110,50,1160,500);\n$myPicture->setFontProperties(array(\"R\"=>0,\"G\"=>0,\"B\"=>0,\"FontName\"=>\"fonts/Forgotte.ttf\",\"FontSize\"=>14));\n\n$Settings = array(\"Pos\"=>SCALE_POS_LEFTRIGHT\n, \"Mode\"=>SCALE_MODE_FLOATING\n, \"LabelingMethod\"=>LABELING_ALL\n, \"GridR\"=>255, \"GridG\"=>255, \"GridB\"=>255, \"GridAlpha\"=>50,\n\"TickR\"=>0, \"TickG\"=>0, \"TickB\"=>0, \"TickAlpha\"=>50,\n\"LabelRotation\"=>0,\n \"CycleBackground\"=>1,\n \"DrawXLines\"=>1,\n \"DrawSubTicks\"=>1, \"SubTickR\"=>255, \"SubTickG\"=>0, \"SubTickB\"=>0, \"SubTickAlpha\"=>50,\n \"DrawYLines\"=>ALL,\n \"LabelSkip\"=>3\n);\n$myPicture->drawScale($Settings);\n\n$myPicture->setShadow(TRUE,array(\"X\"=>1,\"Y\"=>1,\"R\"=>50,\"G\"=>50,\"B\"=>50,\"Alpha\"=>10));\n\n$Config = \"\";\n$myPicture->drawSplineChart($Config);\n\n$Config = array(\"FontR\"=>0, \"FontG\"=>0, \"FontB\"=>0, \"FontName\"=>\"fonts/Forgotte.ttf\", \"FontSize\"=>14, \"Margin\"=>6, \"Alpha\"=>30, \"BoxSize\"=>5, \"Style\"=>LEGEND_NOBORDER\n, \"Mode\"=>LEGEND_HORIZONTAL\n);\n$myPicture->drawLegend(563,16,$Config);\n\n\n$myPicture->render(\"tmp/graphe_ej.png\");\n\necho \"<img src='tmp/graphe_ej.png' alt='graphe'/>\";\n\n}", "title": "" }, { "docid": "6ef43073409d07f5bc1b1940c03b4947", "score": "0.4906594", "text": "public function testPaginationDefaults () {\n $twoHoursMs = 120 * 60 * 1000;\n $stats = self::$ably->stats([\n \"start\" => self::$timestampOlderMs,\n \"end\" => self::$timestampOlderMs + $twoHoursMs,\n ]);\n $this->assertEquals( 100, count( $stats->items ), \"Expected 100 records\" );\n \n // verify order\n $actualRecordsPeakData = [];\n foreach ($stats->items as $minute) {\n $actualRecordsPeakData[] = (int) $minute->channels->peak;\n }\n $expectedData = range( 101, 2, -1 );\n $this->assertEquals( $expectedData, $actualRecordsPeakData, 'Expected records in backward order' );\n }", "title": "" }, { "docid": "c8d255a641f5632ffcad2a9a8295c9df", "score": "0.48918486", "text": "public function build(): array {\n self::$db->prepared_query(\"\n DROP TEMPORARY TABLE IF EXISTS temp_stats\n \");\n\n self::$db->prepared_query(\"\n CREATE TEMPORARY TABLE temp_stats (\n id integer NOT NULL PRIMARY KEY AUTO_INCREMENT,\n n bigint NOT NULL DEFAULT 0\n )\n \");\n self::$db->prepared_query(\"\n INSERT INTO temp_stats (n)\n \" . $this->selector()\n );\n\n /* Classic Mysql cannot do this (although it is fixed in MariaDB)\n * See: https://stackoverflow.com/questions/343402/getting-around-mysql-cant-reopen-table-error\n *\n * SELECT min(n) as bucket\n * FROM temp_stats\n * GROUP BY ceil(id / (SELECT count(*)/100 FROM temp_stats))\n */\n self::$db->prepared_query(\"\n DROP TEMPORARY TABLE IF EXISTS temp_stats_dup\n \");\n self::$db->prepared_query(\"\n CREATE TEMPORARY TABLE temp_stats_dup LIKE temp_stats\n \");\n self::$db->prepared_query(\"\n INSERT INTO temp_stats_dup\n SELECT * FROM temp_stats\n \");\n\n self::$db->prepared_query(\"\n SELECT min(n) as bucket\n FROM temp_stats\n GROUP BY ceil(id / (SELECT count(*)/100 FROM temp_stats_dup))\n ORDER BY 1\n \");\n $raw = self::$db->collect('bucket');\n if (empty($raw)) {\n // This occurs only a fresh installation\n $raw = [0];\n }\n\n /* We now have a list of at most 100 elements. For a number\n * of metrics the series will follow a sharp exponential\n * curve with many repeated values (because most of the\n * activity comes from a relatively small number of users).\n *\n * 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\n * 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2,\n * 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,\n * 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8,\n * 9, 10, 10, 11, 11, 12, 13, 14, 15, 17, 18, 20, 23, 25,\n * 28, 32, 36, 43, 51, 67, 83, 113, 170, 357\n *\n * The storage can be reduced by recording only the\n * percentiles breaks, making the above become:\n *\n * 357 => 100,\n * 170 => 99,\n * 113 => 98,\n * ...\n * 3 => 50,\n * 2 => 33,\n * 1 => 1\n *\n * It is then trivial to walk down the list and read off\n * the percentile. If the user metric is greater than the\n * current value, this is their percentile. Note that some\n * dimensions like data upload and download will show little\n * to no reduction in size, as such metrics are generally\n * unique per user.\n */\n\n $previous = 0;\n $percentile = 0;\n $increment = max(1, 100 / count($raw));\n $table = [];\n foreach ($raw as $bucket) {\n $percentile += $increment;\n if ($previous != $bucket) {\n $table[$bucket] = (int)(round($percentile));\n }\n $previous = $bucket;\n }\n $table = array_reverse($table, true);\n\n // add some fuzz to the expiry time, so all the tables don't expire at once\n self::$cache->cache_value($this->cacheKey(), $table, 86400 + rand(0, 3600));\n return $table;\n }", "title": "" }, { "docid": "7af9b27a84d1a52007a45d474e8e49b7", "score": "0.48860314", "text": "function uvstapelbin_by_1avbin($neu, $tb, $av, $uv){ //mehrere uv, nur 1 av\n\t$db = currdb();\n\t$l = chr(10);\n\t$ofi = ofi($db, \"binaerstapel_by_uv\".$av.\"_\".$uv.\"_\".$fu);\n\tif ($neu == 1) {\n\t\t$uv = vl4($uv, $tb); $uvf = explode(\",\", $uv); $uvgr = count($uvf);\n\t\t$av = vl4($av, $tb);\n\t\t$fu = \"sum2,count2,prop.ci\"; $fuf = explode(\",\", $fu); $fugr = count($fuf); \n\t\t\n\t\t$fs1 = \"'\".implode(\"', '\", $fuf).\"'\";\n\t\t$fs2 = implode(\"($av), \", $fuf).\"($av)\";\n\t\t\n\t\t$r .= \"con <- dbConnect(MySQL(), user = 'backuser', password = 'backuser99', dbname = '$db', host = 'localhost');\".$l;\n\t\t$r .= \"library(plyr); library(PropCIs); \".$l;\n\t\t$r .= \"x <- dbGetQuery(con, 'select $uv, $av from $tb');\".$l;\n\t\t\n\t\tfor ($j = 0; $j < $uvgr; ++$j){\n\t\t\t$u = $uvf[$j];\n\t\t\t$r .= \"x2 <- x[ ,c('$av','$u')]; x2 <- subset(x2, complete.cases(x2));\".$l;\n\t\t\t$r .= \"y = ddply(x2, ~ $u, summarise, $fs2); colnames(y) <- c('gr', $fs1); y['uv'] <- '$u'; \".$l;\n\t\t\t$r .= \"if (nrow(y) == 2) {\n\t\t\t\t\ts1 = y[2,2]; n1 = y[2,3]; s2 = y[1,2]; n2 = y[1,3]; d <- diffscoreci(s1, n1, s2, n2, 0.95);\n\t\t\t\t\ty['diff'] <- paste( s1/n1 - s2/n2, ';', d[[1]][1], ';', d[[1]][2] ); \n\t\t\t\t } else {y['diff'] <- '-';}\".$l;\n\t\t\tif ($j == 0) $r .= \"y2 <- y;\".$l; else $r .= \"y2 <- rbind(y2, y);\".$l;\n\t\t}\n\t\t$r .= \"write.table(y2, file = '$ofi', sep = '\\\\t', quote = F, row.names = FALSE); \".$l;\n\t\t$fi = \"/tmp/r.cmd\"; write2($r, $fi); $s = Rserve_connect(); Rserve_eval($s, \"{ $r }\"); Rserve_close($s);\n\t}\n\t$fe = read2d($ofi);\n \t$fe = selif3($fe, \"@uv@ <> ''\");\n \tcomp($fe, \"\\$a = explode(';', @prop.ci@); @prop@ = \\$a[0]; @prop_lci@ = \\$a[1]; @prop_uci@ = \\$a[2];\");\n \tcomp($fe, \"\\$a = explode(';', @diff@); @di@ = \\$a[0]; @di_lci@ = \\$a[1]; @di_uci@ = \\$a[2];\");\n \tcomp($fe, \"@gr@ = givelabel(@uv@, @gr@);\"); \n \tcomp($fe, \"@uv@ = givelabel(@uv@);\");\n \t\t\n \t$fe = spalteloeschen2($fe, \"prop.ci$|diff$\");\n \t$fe = function_on_fe($fe, \"^prop|^di\" , \"format2(@ * 100, '0.0')\");\n \t$fe = getmat2($fe, \"uv,gr,sum2,count2,^prop,^di\");\n\t$fe = doppelte_zeilen_leer($fe, \"^uv$|^di\");\n\t$fe = labelheaders($fe); $fe[0][0] = \"\"; $fe[0][1] = \"\";\n\t\n\tshow($fe);\n}", "title": "" }, { "docid": "1ec0c1faaaa5dd801124f43de45c85cd", "score": "0.48854887", "text": "public function getMaximumPoints()\n\t{\n\t\treturn $this->getPoints();\n\t}", "title": "" }, { "docid": "3e262228d39a98b0643ac896f453f1c8", "score": "0.4868043", "text": "public function getSpuriousExpanded() {\n\t\t$LO = $this->LO;\n\t\t$wmin = 1000;\n\t\t$wmax = -1000;\n\t\t$oldData = $this->data;\n\t\t$offset = 0;\n\t\tfor ($i=0; $i<count($LO); $i++) {\n\t\t\t$tempData = array();\n\t\t\t$min = 1000;\n\t\t\t$max = -1000;\n\t\t\tforeach ($oldData as $d) {\n\t\t\t\tif ($d['FreqLO'] == $LO[$i]) {\n\t\t\t\t\t$temp = $d;\n\t\t\t\t\t$temp['Power_dBm'] += $offset;\n\t\t\t\t\t$tempData[] = $temp;\n\t\t\t\t\tif($temp['Power_dBm'] < $wmin) {\n\t\t\t\t\t\t$wmin = $temp['Power_dBm'];\n\t\t\t\t\t}\n\t\t\t\t\tif($temp['Power_dBm'] > $wmax) {\n\t\t\t\t\t\t$wmax = $temp['Power_dBm'];\n\t\t\t\t\t}\n\t\t\t\t\tif($temp['Power_dBm'] < $min) {\n\t\t\t\t\t\t$min = $temp['Power_dBm'];\n\t\t\t\t\t}\n\t\t\t\t\tif($temp['Power_dBm'] > $max) {\n\t\t\t\t\t\t$max = $temp['Power_dBm'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->data = $tempData;\n\t\t\t$this->createTempFile('Freq_Hz', 'Power_dBm', $i);\n\t\t\t$this->spurVal[$LO[$i]] = array(round($min, 2), round($max, 2));\n\t\t\t$offset += 32;\n\t\t\t$this->data = $oldData;\n\t\t}\n\t\t$this->spurVal['ymin'] = $wmin;\n\t\t$this->spurVal['ymax'] = $wmax;\n\t}", "title": "" }, { "docid": "fa50c3df5e8448d8a1af95a427f9d1f4", "score": "0.48568663", "text": "function getReadsHistogram($pdo, $table, $assembly, $left, $right, $bases, $pixels, $auto)\n{\n\tglobal $ibase;\n\t$query = \"select start, end, strand, 1, 1 from $table force index (start) where assembly = '$assembly' and start <= $right and end >= $left\";\n\t//$query = \"select start, end, strand, 1, 1 from $table force index (start) where assembly = '$assembly' and start <= $right and start > $lefts and end >= $left\";\n\t//$query = \"select 'read', start, end, strand, 1, 1 from $table where assembly = '$assembly' and start <= $right and end >= $left\";\n\n\tif (cache_exists($query, $table)) \n\t{\n\t\tif($auto) cache_stream($query, $table);\n\t\telse return false;\n\t}\n\n\tif (!isset($pdo) || !$pdo) include_once 'common_PDO_die.php';\n\t$max = max_range($pdo, $table);\n\t$lefts = $left - $max; if ($lefts<0) $lefts=0;\n\t$qstmt = \"select start, end, strand, 1, 1 from $table force index (start) where assembly = '$assembly' and start <= $right and start > $lefts and end >= $left\";\n\n\t$result = array();\n\t$unit = round($bases / $pixels);\n\n\t$stmt = $pdo->prepare($qstmt);\n\t$stmt->execute();\n\n\t$class = 'read';\n\t$result[$class] = array();\n\n\t$xfloor = floor($left * $pixels / $bases);\n\t$xceil = ceil($right * $pixels / $bases);\n\n\t//while ($r = mysqli_fetch_row($d))\n\twhile ($r = $stmt->fetch(PDO::FETCH_NUM))\n\t{\n\t\t//$class = $r[0];\n\t\t$start = $r[0] + $ibase;\n\t\t$end = $r[1] + $ibase;\n\t\t$strand = $r[2];\n\t\t$count = $r[3] + 0;\n\t\t$copies = $r[4] + 0;\n\n\t\t//Determine the range of x positions covered by the read\n\t\t$x1 = floor($start * $pixels / $bases);\n\t\t$x2 = ceil($end * $pixels / $bases);\n\n\t\tif ($x1<$xfloor) $x1=$xfloor;\n\t\tif ($x2>$xceil) $x2=$xceil;\n\t\t//For each of the x positions, convert to a genome position and add to the count\n\t\tfor ($x=$x1; $x<=$x2; $x++)\n\t\t{\n\t\t\t$gpos = $x * $bases / $pixels;\n\n\t\t\tif (!isset($result[$class][\"$gpos\"]))\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"] = array($gpos,0,0);\n\t\t\t}\n\n\t\t\t$amt = 0;\n\n\t\t\tif ($gpos < $start)\n\t\t\t{\n\t\t\t\t$amt = $gpos + $unit - $start;\n\t\t\t}\n\t\t\telse if ($gpos + $unit > $end && $gpos < $end)\n\t\t\t{\n\t\t\t\t$amt = $end - $gpos;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$amt = $unit;\n\t\t\t}\n\n\t\t\t$amt *= $copies;\n\n\t\t\tif ($strand == '+')\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"][1] += $amt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"][2] += $amt;\n\t\t\t}\n\t\t}\n\t}\n\n\t//Simplify the data stream\n\tforeach ($result as $class => $data)\n\t{\n\t\t$clean = array();\n\n\t\tforeach ($data as $datum)\n\t\t{\n\t\t\t$clean[] = $datum;\n\t\t}\n\t\t$result[$class] = $clean;\n\t}\n\n\t//Create cache and stream to user\n\tcache_create($query, $result, $auto, $table);\n\tunset($result);\n\treturn true;\n}", "title": "" }, { "docid": "28f794b8c2be150584d715f46236700c", "score": "0.48558918", "text": "public function realtimeEnergy()\n {\n $lastTimeslot = 120;\n $hourly = array_fill(0, 24, 0);\n $hourlyPVReal = array_fill(0, 24, 0);\n $hourlySum = 0;\n $hourlySumPVReal = 0;\n $j = 0;\n\n $data = $this->realtimeData();\n for ($i = 0; $i < $lastTimeslot; $i++) { \n $hourlySum += $data['sumEnergia'][$i];\n $hourlySumPVReal += $data['sumEnergiaPVReal'][$i];\n // cada 5 timeslots totaliza la suma de 1 hora\n if ((($i+1) % 5) == 0) {\n $hourly[$j] = $hourlySum;\n $hourlyPVReal[$j] = $hourlySumPVReal;\n $hourlySum = 0;\n $hourlySumPVReal = 0;\n $j++;\n }\n }\n $datasets[0]['label'] = 'Sin energía PV';\n $datasets[0]['data'] = collect($hourly)->values();\n $datasets[1]['label'] = 'Con energía PV';\n $datasets[1]['data'] = collect($hourlyPVReal)->values();\n $consumption['labels'] = collect($hourly)->keys();\n $consumption['datasets'] = $datasets;\n\n return $consumption;\n }", "title": "" }, { "docid": "73b969278c73317ac6f8b7245270d606", "score": "0.48555523", "text": "private function getAllDataFromTable() {\n\n $query = \"SELECT * FROM $this->tableName\";\n $result = mysql_query($query) or die(\"Nao deu para executar o query \" . $query . \" pq \" . mysql_error());\n\n $i = 0;\n $countries = array();\n while ($row = mysql_fetch_array($result)) {\n /* Push the results of the query in an array */\n $years[] = $row[\"Years\"];\n\n\n foreach ($this->getYAxisLabels() as $country) {\n $countries[$country][$i] = abs($row[$country]);\n }\n\n $i++;\n }\n $this->countriesValues = $countries;\n $this->years = $years;\n }", "title": "" }, { "docid": "84c12cad0f3dd4aedbf6144478dbd847", "score": "0.48512474", "text": "public function getDataMonitor()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('tb_monitor');\n\t\t$this->db->order_by('id_aset','DESC');\n\t\t$data = $this->db->get();\n\t\treturn $data->result_array();\n\t}", "title": "" }, { "docid": "fe798a99286981d7ea03a6e5fc5e7a33", "score": "0.4844468", "text": "function getSmallReadsHistogram($pdo, $table, $assembly, $left, $right, $bases, $pixels, $auto)\n{\n\tglobal $ibase;\n\t$query = \"select start, end, strand, locations, copies from $table force index (start) where assembly = '$assembly' and start <= $right and end >= $left\";\n\t//$query = \"select start, end, strand, locations, copies from $table force index (start) where assembly = '$assembly' and start <= $right and start > $lefts and end >= $left\";\n\t//$query = \"select 'read', start, end, strand, locations, copies from $table where assembly = '$assembly' and start <= $right and end >= $left\";\n\n\tif (cache_exists($query, $table)) \n\t{\n\t\tif ($auto) cache_stream($query, $table);\n\t\telse return false;\n\t}\n\tif (!isset($pdo) || !$pdo) include_once 'common_PDO_die.php';\n\t$max = max_range($pdo, $table);\n\t$lefts = $left - $max; if ($lefts<0) $lefts=0;\n\t$qstmt = \"select start, end, strand, locations, copies from $table force index (start) where assembly = '$assembly' and start <= $right and start > $lefts and end >= $left\";\n\n\t$class = 'read';\n\t$result = array();\n\t$result[$class] = array ();\n\n\t$unit = round($bases / $pixels);\n\t$stmt = $pdo->prepare($qstmt);\n\t$stmt->execute();\n\n\t//while ($r = mysqli_fetch_row($d))\n\twhile ($r = $stmt->fetch(PDO::FETCH_NUM))\n\t{\n\t\t//$class = $r[0];\n\t\t$start = $r[0] + $ibase;\n\t\t$end = $r[1] + $ibase;\n\t\t$strand = $r[2];\n\t\t$count = $r[3] + 0;\n\t\t$copies = $r[4] + 0;\n\n\t\t//Determine the range of x positions covered by the read\n\t\t$x1 = floor($start * $pixels / $bases);\n\t\t$x2 = ceil($end * $pixels / $bases);\n\n\t\t//For each of the x positions, convert to a genome position and add to the count\n\t\tfor ($x=$x1; $x<=$x2; $x++)\n\t\t{\n\t\t\t$gpos = $x * $bases / $pixels;\n\n\t\t\tif (!isset($result[$class][\"$gpos\"]))\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"] = array($gpos,0,0);\n\t\t\t}\n\n\t\t\t$amt = 0;\n\n\t\t\tif ($gpos < $start)\n\t\t\t{\n\t\t\t\t$amt = $gpos + $unit - $start;\n\t\t\t}\n\t\t\telse if ($gpos + $unit > $end && $gpos < $end)\n\t\t\t{\n\t\t\t\t$amt = $end - $gpos;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$amt = $unit;\n\t\t\t}\n\n\t\t\t$amt *= $copies;\n\n\t\t\tif ($strand == '+')\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"][1] += $amt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$result[$class][\"$gpos\"][2] += $amt;\n\t\t\t}\n\t\t}\n\t}\n\n\t//Simplify the data stream\n\tforeach ($result as $class => $data)\n\t{\n\t\t$clean = array();\n\n\t\tforeach ($data as $datum)\n\t\t{\n\t\t\t$clean[] = $datum;\n\t\t}\n\t\t$result[$class] = $clean;\n\t}\n\n\t//Create cache and stream to user\n\tcache_create($query, $result, $auto, $table);\n\tunset( $result);\n\treturn true;\n}", "title": "" }, { "docid": "989309e1ce9bf5f0d917384026725509", "score": "0.4842585", "text": "function getDataFromDB($stepArray)\n{\n\n\n $stepFromDB = array();\n\n $queryRoad = null;\n\n //take the roadName from array into a strign to get all data\n foreach($stepArray as $step){\n $road = $step->getRoadName();\n\n $nRoad = \"HMGNS_LNK_DESC%3D'\".$road.\"'%20or%20\";\n\n $newRoad = str_replace(\" \", \"%20\", $nRoad);\n\n $queryRoad .= $newRoad;\n\n }\n\n //cut the end of useless %20\n $query = substr($queryRoad,0, strlen($queryRoad)-8);\n\n $curl = \"https://dsp-acer-believe.cloud.dreamfactory.com:443/rest/DigisoftDB/traffic_volume?filter=$query\";\n\n //get the result\n $result = getResult($curl);\n\n //select the proper one for the each step\n foreach ($stepArray as $step) {\n\n $pTVs = getDBObject($result);\n $i = 0;\n $max = 0;\n $maxElement = null;\n //get all potential road and compare select the one mid point near the start point\n if (sizeof($pTVs) == 0) {\n\n } else if (sizeof($pTVs) == 1) {\n $maxElement = $pTVs[0];\n } else {\n while (next($pTVs)) {\n\n $dis1 = sqrt(abs(($step->getStartLocationLat() - $pTVs[$i]->getMinpntLat()) / ($step->getStartLocationLng() - $pTVs[$i]->getMinpntLng())));\n $max = max($dis1, $max);\n if ($dis1 == $max) {\n $maxElement = $pTVs[$i];\n }\n// foreach($pTVs as $pTV){\n// if ($pTV->getMinpntLat() != min($step->getStartLocationLat(), $step->getEndLocationLat(), $pTV->getMinpntLat()) && $pTV->getMinpntLat() != max($step->getStartLocationLat(), $step->getEndLocationLat(), $pTV->getMinpntLat()) &&\n// $pTV->getMinpntLng() != min($step->getStartLocationLng(), $step->getEndLocationLng(), $pTV->getMinpntLng()) && $pTV->getMinpntLng() != max($step->getStartLocationLng(), $step->getEndLocationLng(), $pTV->getMinpntLng()))\n// {\n// $maxElement = $pTV;\n// }\n// }\n\n $i++;\n }\n }\n\n\n if ($maxElement != null) {\n $maxElement->setRoadName($step->getRoadName());\n $maxElement->setRoadNameURLkey(\"e?\");\n\n array_push($stepFromDB, $maxElement);\n }\n\n }\n\n\n return $stepFromDB;\n}", "title": "" }, { "docid": "7cee2c36cf05c6dd6c17664854dea56d", "score": "0.48261267", "text": "public function getStatsLogAll() {\n $query = 'SELECT AVG(NbActiveMembers) AS NbActiveMembers,AVG(NbMessageSent) AS NbMessageSent,AVG(NbMessageRead) AS NbMessageRead,AVG(NbMemberWithOneTrust) AS NbMemberWithOneTrust,AVG(NbMemberWhoLoggedToday) AS NbMemberWhoLoggedToday,created,YEARWEEK(created) AS week \n\t\tFROM stats\n\t\tGROUP BY week ';\n $s = $this->dao->query($query);\n if (!$s) {\n throw new PException('Could not retrieve statistics table!');\n }\n $result = array();\n while ($row = $s->fetch(PDB::FETCH_OBJ)) {\n $result[] = $row;\n }\n return $result;\t\t\n\t}", "title": "" }, { "docid": "4893edd6aa02950a4cb452d01c46fb5a", "score": "0.48260298", "text": "public function getStatsLog2Month() {\n\t\t$query = 'select * \n\t\tFROM stats\n\t\tORDER BY id DESC\n\t\tLIMIT 0,60';\n\t\t$s = $this->dao->query($query);\n\t\tif (!$s) {\n\t\t\tthrow new PException('Could not retrieve statistics table!');\n\t\t}\n\t\t$result = array();\n\t\twhile ($row = $s->fetch(PDB::FETCH_OBJ)) {\n\t\t\t$result[] = $row;\n\t\t}\n\t\t$result = array_reverse($result);\n\t\treturn $result;\t\t\n\t}", "title": "" }, { "docid": "74d39527e5e750065603eb1e0bd630d2", "score": "0.48242086", "text": "function max_visites_stats() {\n\t$qv = sql_select(\" MAX(visites) as maxvi FROM spip_visites\");\n\t$rv = sql_fetch($qv);\n\t$valmaxi = $rv['maxvi'];\n\tif (isset($valmaxi)) {\n\t\t$qd = sql_select(\" DATE_FORMAT(date,'%d/%m/%y') AS jmax FROM spip_visites WHERE visites = $valmaxi\");\n\t\t$rd = sql_fetch($qd);\n\t\t$jourmaxi = $rd['jmax'];\n\t\t$a = array($valmaxi, $jourmaxi);\n\t} else {\n\t\t$a = array(0, 0);\n\t}\n\n\treturn $a;\n}", "title": "" }, { "docid": "0e6d610e9bb7ddfa555ff07253d88f09", "score": "0.48132423", "text": "public function getMeasurements()\n {\n try {\n $rows = $this->conn->orderBy(\"time_measured\", \"DESC\")->get(\"measurements\", 2000);\n //the latest 20 measurements, but sorted ASC\n $measurements = array_reverse($rows);\n echo json_encode($measurements);\n }\n catch (Exception $e) {\n header(\"HTTP/1.1 500 Internal Server Error\");\n exit;\n }\n }", "title": "" }, { "docid": "6a26d4c93dca83af18f1f4cccd7dc193", "score": "0.47966927", "text": "function getBTopCountingInfos($params = \"\")\n {\n $query = \"select count(*) as NbEntries, sum(value) as SumValues, min(time) as MinTime, max(time) as MaxTime, sum(state) as NbProcessed from counting\";\n $result = $this->countDB->query($query);\n $data = $result->nextAssoc();\n $result->freeResult();\n $data[\"NbProcessed\"] = \"_,_\";\n return $data;\n }", "title": "" }, { "docid": "cd87f52bdcc2715d6c1e35f5a1528bcc", "score": "0.4795619", "text": "public function collectGauges(): array;", "title": "" }, { "docid": "5775ed308dfb0c89cc47003414f15614", "score": "0.47907966", "text": "function interval(){\n $jData = count(data()); // jumlah data\n $jInterval = round(1 + 3.3 * log($jData,10)); // jumlah interval\n $max = max_min()['max'];\n $min = max_min()['min'];\n $lInterval = round(($max - $min) / $jInterval,2);// lebar interval\n $interval = [\n 'jumlah_interval' => $jInterval,\n 'lebar_interval' => $lInterval\n ];\n return $interval;\n}", "title": "" }, { "docid": "766c87a925631574097c193b57762d95", "score": "0.47827846", "text": "function electrique_mois(){\n$timestamp=\"\";\n$conso=\"\";\n\n$sql = mysql_query(\"SELECT TIMESTAMP(CONCAT(YEAR(date_histo ),'-',MONTH(date_histo ),'-',DAY(date_histo ),' ',HOUR(date_histo ),':00')),\n\t\t\t\t\tdate_histo, AVG(valeur1),MAX(valeur1),MIN(valeur1)\n\t\t\t\t\tFROM historique_donnees\n\t\t\t\t\tWHERE id_objet = 2\n\t\t\t\t\tAND date_histo > DATE_SUB(NOW( ), INTERVAL 31 DAY)\n\t\t\t\t\tGROUP BY YEAR( date_histo ) , MONTH( date_histo ) , DAY( date_histo ), HOUR( date_histo ), id_objet\n\t\t\t\t\tHAVING HOUR( date_histo ) IN ( 00, 06, 12, 18 ) \n\t\t\t\t\tORDER BY date_histo\");\nwhile(list($date_histo,$date_histo2,$conso_sql,$conso_sql_max,$conso_sql_min) = mysql_fetch_array($sql))\n{\n\t$timestamp[] = strtotime($date_histo);\n\t$conso[] = $conso_sql;\n\t$conso_max[] = $conso_sql_max;\n\t$conso_min[] = $conso_sql_min;\n}\n \n$myData = new pData(); \n$myData->addPoints($timestamp,\"Timestamp\");\n$myData->addPoints($conso,\"Consommation Instantanée Moyenne\");\n$myData->addPoints($conso_max,\"Conso. Inst. Max\");\n$myData->addPoints($conso_min,\"Conso. Inst. Min\");\n\n$myData->setSerieOnAxis(\"Consommation Instantanée\",0);\n$myData->setSerieOnAxis(\"Conso. Inst. Max\",0);\n$myData->setSerieOnAxis(\"Conso. Inst. Min\",0);\n\n$myData->setAbscissa(\"Timestamp\");\n$myData->setXAxisName(\"Time\");\n$myData->setXAxisDisplay(AXIS_FORMAT_TIME,\"d/m\");\n$myData->setAxisName(0,\"Consommation Instantanée\");\n$myData->setAxisUnit(0,\"W\");\n\n$myPicture = new pImage(1250,550,$myData);\n\n$Settings = array(\"StartR\"=>48, \"StartG\"=>124, \"StartB\"=>183, \"EndR\"=>33, \"EndG\"=>86, \"EndB\"=>128, \"Alpha\"=>50);\n$myPicture->drawGradientArea(0,0,1250,550,DIRECTION_VERTICAL,$Settings);\n\n$myPicture->setShadow(TRUE,array(\"X\"=>1,\"Y\"=>1,\"R\"=>50,\"G\"=>50,\"B\"=>50,\"Alpha\"=>20));\n\n$myPicture->setFontProperties(array(\"FontName\"=>\"fonts/Forgotte.ttf\",\"FontSize\"=>18));\n$TextSettings = array(\"Align\"=>TEXT_ALIGN_MIDDLEMIDDLE\n, \"R\"=>255, \"G\"=>255, \"B\"=>255);\n$myPicture->drawText(350,25,\"Consommation éléctrique\",$TextSettings);\n\n$myPicture->setShadow(FALSE);\n$myPicture->setGraphArea(110,50,1160,500);\n$myPicture->setFontProperties(array(\"R\"=>0,\"G\"=>0,\"B\"=>0,\"FontName\"=>\"fonts/Forgotte.ttf\",\"FontSize\"=>14));\n\n$Settings = array(\"Pos\"=>SCALE_POS_LEFTRIGHT\n, \"Mode\"=>SCALE_MODE_FLOATING\n, \"LabelingMethod\"=>LABELING_ALL\n, \"GridR\"=>255, \"GridG\"=>255, \"GridB\"=>255, \"GridAlpha\"=>50,\n\"TickR\"=>0, \"TickG\"=>0, \"TickB\"=>0, \"TickAlpha\"=>50,\n\"LabelRotation\"=>45,\n \"CycleBackground\"=>1,\n \"DrawXLines\"=>1,\n \"DrawSubTicks\"=>1, \"SubTickR\"=>255, \"SubTickG\"=>0, \"SubTickB\"=>0, \"SubTickAlpha\"=>50,\n \"DrawYLines\"=>ALL,\n \"LabelSkip\"=>3\n);\n$myPicture->drawScale($Settings);\n\n$myPicture->setShadow(TRUE,array(\"X\"=>1,\"Y\"=>1,\"R\"=>50,\"G\"=>50,\"B\"=>50,\"Alpha\"=>10));\n\n$Config = \"\";\n$myPicture->drawSplineChart($Config);\n\n$Config = array(\"FontR\"=>0, \"FontG\"=>0, \"FontB\"=>0, \"FontName\"=>\"fonts/Forgotte.ttf\", \"FontSize\"=>14, \"Margin\"=>6, \"Alpha\"=>30, \"BoxSize\"=>5, \"Style\"=>LEGEND_NOBORDER\n, \"Mode\"=>LEGEND_HORIZONTAL\n);\n$myPicture->drawLegend(563,16,$Config);\n\n\n$myPicture->render(\"tmp/graphe_em.png\");\n\necho \"<img src='tmp/graphe_em.png' alt='graphe'/>\";\n\n}", "title": "" }, { "docid": "18dab73ebf3f2af55b8a8928bd145ef2", "score": "0.47686318", "text": "public function getHistogramMax();", "title": "" }, { "docid": "c65beacf3df5b9df813da8880b50cc5f", "score": "0.47617552", "text": "function all_elki_GENE()\n{Global $db;\n\t$results = array();\n\t$query = $db->query(\"SELECT * FROM elki \n\t\tORDER BY date_ DESC LIMIT 50\");\n\twhile($row = $query->fetch())\n\t{\n\t\t$results[] =$row;\n\t}\n\treturn $results;\n}", "title": "" }, { "docid": "a09406e03ffcb119233ce19fa9586244", "score": "0.4730338", "text": "public function getServer(){\n $ci = &get_instance();\n $ci->load->database();\n $ci->db->where('count < '.$this->daily_limit);\n $ci->db->order_by('count');\n $query = $ci->db->get($this->tablename);\n return $query->row_array();\n }", "title": "" }, { "docid": "87dcbb34cb6e2119f5ef5ee07d186bba", "score": "0.47256342", "text": "function all_embassies_arr( $limit = false, $start_from = false ) {\n \n ini_set('max_execution_time', 1200); // 1200 seconds = 20 minutes\n \n $country_arr = array();\n \n $num = 0;\n $i = 0;\n \n foreach ( sc_embassy_countries() as $country ) {\n \n if ( $start_from != false && $num++ < $start_from ) {\n continue;\n }\n \n if ( $limit != false && $i++ >= $limit ) {\n break;\n } \n \n $country = sanitize_title( $country );\n $country_arr[$country] = grab_embassy_info($country);\n }\n\n return $country_arr;\n/* $date = date(\"g_i_F_j_Y\"); \n $fp = fopen( \"embassies_data_$date.json\", 'w' );\n fwrite($fp, json_encode( all_embassies_arr() ) );\n fclose($fp);*/\n\n}", "title": "" }, { "docid": "938c93ada8bd352ae268f36531304079", "score": "0.47145748", "text": "public function getAllTimPenerimaan(){\n\t\t$query = $this->db->query(\"SELECT * from tim_penerima\")->result_array();\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "8d4be533088175dc2c0b70cadd23bd2e", "score": "0.47085747", "text": "function all_jeux_GENE()\n{Global $db;\n\t$results = array();\n\t$query = $db->query(\"SELECT * FROM jeux \n\t\tORDER BY date_j DESC LIMIT 50\");\n\twhile($row = $query->fetch())\n\t{\n\t\t$results[] =$row;\n\t}\n\treturn $results;\n}", "title": "" }, { "docid": "57ef9fe656453d5c063e710ca6d98c0a", "score": "0.47063878", "text": "function getLatestLanuvOffering($offering_id){\r\n\tglobal $conn;\r\n\t\t$transform = LANUVumwandeln();\r\n\t\t$i = 0;\r\n\t\twhile ($i < count($transform)) {\r\n\t\t$gegenFOI = $transform[$i]['feature_of_interest_id'];\r\n\t\t$gegenTS = $transform[$i]['max'];\r\n\t\t\tif ($gegenFOI == \"_\" or $gegenTS == \"_\");\r\n\t\t\telse {\r\n\t\t\t\t$result = pg_query($conn, \"SELECT numeric_value\r\n\t\t\t\t\t\t\t\t\tFROM observation\r\n\t\t\t\t\t\t\t\t\tWHERE time_stamp = '$gegenTS' AND feature_of_interest_id = '$gegenFOI' AND offering_id = '$offering_id'\");\r\n\t\t\t\tif (pg_result($result,0,\"numeric_value\") == false) {$ActualResult = '-';}\r\n\t\t\t\telse {$ActualResult = pg_result($result,0,\"numeric_value\");}\r\n\t\t\t\t$NOArray[$i]['feature_of_interest_id'] = $gegenFOI;\r\n\t\t\t\t$NOArray[$i]['numeric_value'] = $ActualResult;\r\n\t\t\t}\r\n\t\t\t$i++;\r\n\t\t}\r\n\t\treturn $NOArray;\r\n}", "title": "" }, { "docid": "bc02175e31a50e1eb210f6861620d1e0", "score": "0.47057632", "text": "public function overview()\n {\n $overview = array();\n foreach ($this->intervals as $interval) {\n\n $overview[$interval] = $this->last($interval);\n }\n\n return $overview;\n }", "title": "" }, { "docid": "7c1beff694a919499c5a14161766ab74", "score": "0.4700148", "text": "function getlatesttracks($mbid = false,$bestguess) {\n // Check the database for recent tracks\n if ($mbid) {\n $query = mysql_query(\"SELECT Log_Title, Log_PlayedByShowID, UNIX_TIMESTAMP(Log_TimePlayed) FROM tbl_logs WHERE `Log_MusicBrainzArtist` = '$mbid' OR `Log_Artist` LIKE '%$bestguess%' ORDER BY Log_ID DESC LIMIT 5\");\n } else {\n $query = mysql_query(\"SELECT Log_Title, Log_PlayedByShowID, UNIX_TIMESTAMP(Log_TimePlayed) FROM tbl_logs WHERE `Log_Artist` LIKE '%$bestguess%' ORDER BY Log_ID DESC LIMIT 5\");\n }\n \n // Process any tracks found (up to 5)\n if ($query) {\n while($row = mysql_fetch_array($query)){\n $playedby = $row['Log_PlayedByShowID'];\n if ($playedby != \"0\") {\n $showquery = mysql_query(\"SELECT * FROM `tbl_show` WHERE `Show_ID` = '$playedby' LIMIT 1\");\n if (mysql_num_rows($showquery) > 0) {\n $playedby = mysql_result($showquery,0,'Show_Name');\n }\n } else {\n $playedby = \"Fuse FM Auto DJ (Fusic)\";\n }\n $trackarray[] = array($row['Log_Title'],$playedby,$row['UNIX_TIMESTAMP(Log_TimePlayed)']);\n }\n } else {\n $trackarray = array(array(\"\",\"\",\"\"));\n }\n \n // Return the data\n return $trackarray;\n}", "title": "" }, { "docid": "9ec197807efef5611c90e8bddd6c6392", "score": "0.46913162", "text": "public function getAllEvents()\n {\n $query = $this->db->get('musicians_bands');\n $results = $query->result();\n\n return $results;\n }", "title": "" }, { "docid": "c74927092d6a6f81ef0f248b0a30a2db", "score": "0.46874383", "text": "public function getRemaining() {\n $dates = \\ORM::for_table('traindate')->order_by_asc('date')->find_many();\n $times = \\ORM::for_table('traintime')->order_by_asc('time')->find_many();\n $pcounts = array();\n $daymax = array();\n foreach ($dates as $date) {\n $pcounts[$date->id()] = array();\n $daymax[$date->id()] = 0;\n foreach ($times as $time) {\n $limit = $this->getTrainlimit($date->id(), $time->id());\n $sumadult = \\ORM::for_table('purchase')->where('trainlimitid', $limit->id())->where_like('status', 'OK%')->sum('adult');\n $sumchild = \\ORM::for_table('purchase')->where('trainlimitid', $limit->id())->where_like('status', 'OK%')->sum('child');\n $total = $limit->maxlimit - ($sumadult + $sumchild);\n $pcounts[$date->id()][$time->id()] = $total;\n if ($total > $daymax[$date->id()]) {\n $daymax[$date->id()] = $total;\n }\n }\n }\n return array($pcounts, $daymax);\n }", "title": "" }, { "docid": "2defb68b336e89fcf4c2c88ac4e02673", "score": "0.4687376", "text": "function getLastObservationValues($foi_id){\r\n\tglobal $conn;\r\n\tif (isset ($foi_id)){\r\n\t\t$result = pg_query($conn, \"SELECT time_stamp, offering_id, numeric_value, unit \r\n\t\t\t\tFROM observation NATURAL JOIN phenomenon\r\n\t\t\t\tWHERE (feature_of_interest_id = '$foi_id') AND (time_stamp = (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSELECT max(time_stamp :: timestamp without time zone) \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM observation \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE feature_of_interest_id ='$foi_id')) ORDER BY offering_id\");\r\n\t\treturn pg_fetch_all($result);\r\n\t}\r\n}", "title": "" }, { "docid": "3592ffde1592a053f5209b20fc1c992f", "score": "0.46781397", "text": "function db_getGraphDataForLeckeStartTest($userId = -1, $numberOfLecke = -1) {\n $graphData = array();\n\n $leckeName = \"lecke\" . $numberOfLecke . \"kezdo\";\n\n $ret = db_getUserDataRaw($userId, null, null, null);\n if(empty($ret)) return FALSE; else $userName = $ret['felh_nev'];\n\n /* first column for the graph */\n global $conn;\n $stmt = $conn->prepare(\"SELECT szazalek\n FROM kitolt\n WHERE felhNev = :uname AND tesztId = (SELECT id\n FROM teszt\n WHERE nev = :lname)\");\n $stmt->bindParam(':uname', $userName);\n $stmt->bindParam(':lname', $leckeName);\n $stmt->execute();\n $row_count = $stmt->rowCount();\n if($row_count == 0) {\n array_push($graphData, 0);\n } else {\n array_push($graphData, round($stmt->fetchColumn() * 100));\n }\n\n /* second column for the graph */\n array_push($graphData, round(0.25 * 100));\n\n /* third column for the graph */\n\n $ret = db_getUserDataRaw($userId, null, null, null);\n $cardId = $ret['kartyaId'];\n\n $stmt = $conn->prepare(\"SELECT cegId\n FROM kartya\n WHERE kartya_id = :kartya\");\n $stmt->bindParam(':kartya', $cardId);\n $stmt->execute();\n $companyId = $stmt->fetchColumn();\n\n $stmt = $conn->prepare(\"SELECT AVG(szazalek)\n FROM kitolt\n WHERE felhNev IN (SELECT felh_nev\n FROM felhasznalo\n WHERE kartyaId IN (SELECT kartya_id\n FROM kartya\n WHERE cegId = :compId)) AND tesztId = (SELECT id\n FROM teszt\n WHERE nev = :lname)\");\n $stmt->bindParam(':compId', $companyId);\n $stmt->bindParam(':lname', $leckeName);\n $stmt->execute();\n if($row_count == 0) {\n array_push($graphData, 0);\n } else {\n array_push($graphData, round($stmt->fetchColumn() * 100));\n }\n\n return $graphData;\n}", "title": "" }, { "docid": "7ec50427fbc0695edf9dde59de714492", "score": "0.46759623", "text": "public function compute() : array\n {\n $results = $this->report->compute();\n $max = max($results);\n return map($results, function ($time) use ($max) {\n return round($time / $max * 100, 2);\n });\n }", "title": "" }, { "docid": "5ce79ae257f0507fb765262faa9f1c67", "score": "0.46733245", "text": "public function getSpuriousNoise() {\n\t\t$LO = $this->LO;\n\t\t$min = 1000;\n\t\t$max = -1000;\n\t\t$oldData = $this->data;\n\t\tfor ($i=0; $i<count($LO); $i++) {\n\t\t\t$tempData = array();\n\t\t\tforeach ($oldData as $d) {\n\t\t\t\tif ($d['FreqLO'] == $LO[$i]) {\n\t\t\t\t\t$tempData[] = $d;\n\t\t\t\t\tif($d['Power_dBm'] < $min) {\n\t\t\t\t\t\t$min = $d['Power_dBm'];\n\t\t\t\t\t}\n\t\t\t\t\tif($d['Power_dBm'] > $max) {\n\t\t\t\t\t\t$max = $d['Power_dBm'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->data = $tempData;\n\t\t\t$this->createTempFile('Freq_Hz', 'Power_dBm', $i);\n\t\t\t$this->spurVal[$LO[$i]] = $tempData[count($tempData) - 1]['Power_dBm'];\n\t\t\t$this->data = $oldData;\n\t\t}\n\t\t$this->spurVal['ymin'] = $min;\n\t\t$this->spurVal['ymax'] = $max;\n\t}", "title": "" }, { "docid": "9957f4afb144c5e0c936045496d00890", "score": "0.4673182", "text": "public function querySeries();", "title": "" }, { "docid": "5ccb81ba0f1356efd3c8796299625819", "score": "0.46550852", "text": "function get_reservas_for_statistics($cuatrimestre, $anno) {\n error_reporting(0);\n global $wpdb;\n \n $query = \"SELECT * FROM reservas_reservas WHERE cuatrimestre='$cuatrimestre' AND fecha>='$anno-01-01' AND fecha<'\".($anno+1).\"-01-01' ORDER BY asignatura,aula\"; //Creamos la consulta\n $resultado = $wpdb->get_results($query); //Ejecutamos la consulta\n\n $size = 0;\n $statistics[100] = new ArrayObject();\n for($i=0;$i<count($resultado);$i++) {\n if($resultado[$i-1]->asignatura==$resultado[$i]->asignatura) {\n if($resultado[$i-1]->aula==$resultado[$i]->aula) { \n $statistics[$size]->asignatura = $resultado[$i]->asignatura;\n $statistics[$size]->aula = $resultado[$i]->aula;\n if($resultado[$i]->tipo_reserva==0) $statistics[$size]->horas+=14;\n if($resultado[$i]->tipo_reserva==1) $statistics[$size]->horas+=2; \n }\n else {\n $size++;\n $statistics[$size]->asignatura = $resultado[$i]->asignatura;\n $statistics[$size]->aula = $resultado[$i]->aula;\n if($resultado[$i]->tipo_reserva==0) $statistics[$size]->horas+=14;\n if($resultado[$i]->tipo_reserva==1) $statistics[$size]->horas+=2; \n } \n }\n else {\n $size++;\n $statistics[$size]->asignatura = $resultado[$i]->asignatura;\n $statistics[$size]->aula = $resultado[$i]->aula;\n if($resultado[$i]->tipo_reserva==0) $statistics[$size]->horas+=14;\n if($resultado[$i]->tipo_reserva==1) $statistics[$size]->horas+=2; \n }\n }\n \n return $statistics;\n }", "title": "" }, { "docid": "6578bc87087d476b20fb73cfe5a28f74", "score": "0.46535563", "text": "function electrique_semaine(){\n$timestamp=\"\";\n$conso=\"\";\n\n$sql = mysql_query(\"SELECT TIMESTAMP(CONCAT(YEAR(date_histo ),'-',MONTH(date_histo ),'-',DAY(date_histo ),' ',HOUR(date_histo ),':',MINUTE(date_histo ))),\n\t\t\t\t\tdate_histo, AVG(valeur1),MAX(valeur1),MIN(valeur1)\n\t\t\t\t\tFROM historique_donnees\n\t\t\t\t\tWHERE id_objet = 2\n\t\t\t\t\tAND date_histo > DATE_SUB(NOW( ), INTERVAL 7 DAY)\n\t\t\t\t\tGROUP BY YEAR( date_histo ) , MONTH( date_histo ) , DAY( date_histo ) , HOUR( date_histo ), id_objet\n\t\t\t\t\tORDER BY date_histo\");\nwhile(list($date_histo,$date_histo2,$conso_sql,$conso_sql_max,$conso_sql_min) = mysql_fetch_array($sql))\n{\n\t$timestamp[] = strtotime($date_histo);\n\t$conso[] = $conso_sql;\n\t$conso_max[] = $conso_sql_max;\n\t$conso_min[] = $conso_sql_min;\n}\n \n$myData = new pData(); \n$myData->addPoints($timestamp,\"Timestamp\");\n$myData->addPoints($conso,\"Consommation Instantanée Moyenne\");\n$myData->addPoints($conso_max,\"Conso. Inst. Max\");\n$myData->addPoints($conso_min,\"Conso. Inst. Min\");\n\n$myData->setSerieOnAxis(\"Consommation Instantanée\",0);\n$myData->setSerieOnAxis(\"Conso. Inst. Max\",0);\n$myData->setSerieOnAxis(\"Conso. Inst. Min\",0);\n\n$myData->setAbscissa(\"Timestamp\");\n$myData->setXAxisName(\"Time\");\n$myData->setXAxisDisplay(AXIS_FORMAT_TIME,\"D\");\n$myData->setAxisName(0,\"Consommation Instantanée\");\n$myData->setAxisUnit(0,\"W\");\n\n$myPicture = new pImage(1250,550,$myData);\n\n$Settings = array(\"StartR\"=>48, \"StartG\"=>124, \"StartB\"=>183, \"EndR\"=>33, \"EndG\"=>86, \"EndB\"=>128, \"Alpha\"=>50);\n$myPicture->drawGradientArea(0,0,1250,550,DIRECTION_VERTICAL,$Settings);\n\n$myPicture->setShadow(TRUE,array(\"X\"=>1,\"Y\"=>1,\"R\"=>50,\"G\"=>50,\"B\"=>50,\"Alpha\"=>20));\n\n$myPicture->setFontProperties(array(\"FontName\"=>\"fonts/Forgotte.ttf\",\"FontSize\"=>18));\n$TextSettings = array(\"Align\"=>TEXT_ALIGN_MIDDLEMIDDLE\n, \"R\"=>255, \"G\"=>255, \"B\"=>255);\n$myPicture->drawText(350,25,\"Consommation éléctrique\",$TextSettings);\n\n$myPicture->setShadow(FALSE);\n$myPicture->setGraphArea(110,50,1160,500);\n$myPicture->setFontProperties(array(\"R\"=>0,\"G\"=>0,\"B\"=>0,\"FontName\"=>\"fonts/Forgotte.ttf\",\"FontSize\"=>14));\n\n$Settings = array(\"Pos\"=>SCALE_POS_LEFTRIGHT\n, \"Mode\"=>SCALE_MODE_FLOATING\n, \"LabelingMethod\"=>LABELING_ALL\n, \"GridR\"=>255, \"GridG\"=>255, \"GridB\"=>255, \"GridAlpha\"=>50,\n\"TickR\"=>0, \"TickG\"=>0, \"TickB\"=>0, \"TickAlpha\"=>50,\n\"LabelRotation\"=>0,\n \"CycleBackground\"=>1,\n \"DrawXLines\"=>1,\n \"DrawSubTicks\"=>1, \"SubTickR\"=>255, \"SubTickG\"=>0, \"SubTickB\"=>0, \"SubTickAlpha\"=>50,\n \"DrawYLines\"=>ALL,\n \"LabelSkip\"=>23\n);\n$myPicture->drawScale($Settings);\n\n$myPicture->setShadow(TRUE,array(\"X\"=>1,\"Y\"=>1,\"R\"=>50,\"G\"=>50,\"B\"=>50,\"Alpha\"=>10));\n\n$Config = \"\";\n$myPicture->drawSplineChart($Config);\n\n$Config = array(\"FontR\"=>0, \"FontG\"=>0, \"FontB\"=>0, \"FontName\"=>\"fonts/Forgotte.ttf\", \"FontSize\"=>14, \"Margin\"=>6, \"Alpha\"=>30, \"BoxSize\"=>5, \"Style\"=>LEGEND_NOBORDER\n, \"Mode\"=>LEGEND_HORIZONTAL\n);\n$myPicture->drawLegend(563,16,$Config);\n\n\n$myPicture->render(\"tmp/graphe_es.png\");\n\necho \"<img src='tmp/graphe_es.png' alt='graphe'/>\";\n\n}", "title": "" }, { "docid": "82d3b1d564f68dae3a1113da5ba1c832", "score": "0.46362862", "text": "function getFoiIdMap2(){\r\n\tglobal $conn;\r\n\t$result = pg_query($conn, \"SELECT feature_of_interest_id,max(time_stamp) \r\n\t\t\t\t\t\t\t\tFROM observation natural inner join feature_of_interest \r\n\t\t\t\t\t\t\t\tWHERE feature_of_interest_id != 'Geist' AND feature_of_interest_id != 'Weseler' group by feature_of_interest_id order by feature_of_interest_id\");\r\n\treturn pg_fetch_all($result);\r\n}", "title": "" }, { "docid": "77386bfe803e9bb14008e2f8a893867f", "score": "0.4633527", "text": "function get_most_recent_movements_stock_home() {\n $assocData = array();\n $headerRecord = array();\n $filtered_array = array();\n if( ($handle = fopen( \"http://bsx.jlparry.com/data/movement\", \"r\")) !== FALSE) {\n $rowCounter = 0;\n while (($rowData = fgetcsv($handle, 0, \",\")) !== FALSE) {\n if( 0 === $rowCounter) {\n $headerRecord = $rowData;\n } else {\n foreach( $rowData as $key => $value) {\n $assocData[ $rowCounter - 1][ $headerRecord[ $key] ] = $value;\n }\n }\n $rowCounter++;\n }\n fclose($handle);\n }\n\n if(count($assocData) != 0) {\n for ($i = count($assocData) - 1; $i >= 0; $i --) {\n array_push($filtered_array, $assocData[$i]);\n\n if(count($filtered_array) >= 10) {\n break;\n }\n }\n\n }\n\n return $filtered_array;\n }", "title": "" }, { "docid": "067db7b9a0976c4a32952b3a0b7fa945", "score": "0.46321765", "text": "public function getPeakSignalAmplitude()\n {\n return $this->_peakSignalAmplitude;\n }", "title": "" }, { "docid": "4360d4df492e8cc11085f4b6bf0fff94", "score": "0.4632175", "text": "public function getGraph(){\n\t\t\t$this->query=\"SELECT * FROM ORDENADORES\";\n\t\t\t$this->results_query();\n\t\t\treturn $this->rows;\t\t\n\t\t}", "title": "" }, { "docid": "3014eac9bb40f40a659edc2217b11f8a", "score": "0.46286497", "text": "function getNewestWines(){\n $sql = \"SELECT * FROM \" . TABLE_WINES . \" WHERE \" . ID . \" >= \" . NEW_THRESHOLD . \" ORDER BY \". ID . \" DESC\";\n return queryWines($sql);\n }", "title": "" }, { "docid": "000915d290a53fbe214bf20d43d82388", "score": "0.4626065", "text": "public function findTrending()\n\t{\n\t\t$row = $this->connection->query('\n\t\t\tSELECT tags.name, COUNT(tags.id) AS count\n\t\t\tFROM data\n\t\t\tINNER JOIN data_tags\n\t\t\t\tON data.id = data_tags.data_id\n\t\t\tINNER JOIN tags\n\t\t\t\tON data_tags.tags_id = tags.id\n\t\t\tWHERE data.created_time > DATE_SUB(NOW(), INTERVAL 1 MONTH)\n\t\t\tGROUP BY tags.id\n\t\t\tORDER BY count DESC\n\t\t\tLIMIT 25\n\t\t')->fetchAll();\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "875d99a50ef1f8267d8d861e4e7ae16a", "score": "0.46179962", "text": "private function build_daily_data()\r\n {\r\n $arr = array();\r\n $query = mysql_query(\"SELECT * FROM daily_data WHERE ticker_id = '\".$this->id.\"' ORDER BY date DESC LIMIT 5\");\r\n if(mysql_num_rows($query) < 1)\r\n {\r\n return null;\r\n }\r\n $i = 0;\r\n while($array = mysql_fetch_array($query))\r\n {\r\n $data = new DailyData($array);\r\n $arr[$i] = $data;\r\n $i = $i + 1;\r\n }\r\n return $arr;\r\n }", "title": "" }, { "docid": "4d5e93f83a4837b3c1fa584089cc0bda", "score": "0.45978492", "text": "function all_ballons_GENE()\n{Global $db;\n\t$results = array();\n\t$query = $db->query(\"SELECT * FROM ballons ORDER BY id_ballon DESC LIMIT 70\");\n\n\twhile($row = $query->fetch())\n\t{\n\t\t$results[] =$row;\n\t}\n\treturn $results;\n}", "title": "" }, { "docid": "4eecd9ca1f1c4753448bede7756ffb7f", "score": "0.45958826", "text": "function getAvvisi(){ \n $conn = open_conn();\n if($conn){\n $avvisi = array();\n $query = 'SELECT * FROM avviso ORDER BY timestamp DESC;'; // recupera tutti gli avvisi in ordine di data\n $result = fetch_DB($conn,$query);\n while ($result && $row=mysqli_fetch_assoc($result)){\n array_push($avvisi,$row);\n }\n $conn -> close();\n return $avvisi;\n }\n return [];\n }", "title": "" }, { "docid": "fea91f71c5663d1f751fd24362f17686", "score": "0.45932966", "text": "private function ploting() {\r\n $ctBirth = count($this->birth);\r\n $ctEnd = count($this->end);\r\n $currentAlive = 0;\r\n $i = 0;\r\n $j = 0;\r\n while ($i < $ctBirth || $j < $ctEnd) {\r\n if ($i < $ctBirth && $this->birth[$i][0] < $this->end[$j][0]) {\r\n $currentAlive += $this->birth[$i][1];\r\n\r\n if ($this->maxAlive['alive'] < $currentAlive) {\r\n $this->maxAlive['year'] = $this->birth[$i][0];\r\n $this->maxAlive['alive'] = $currentAlive;\r\n }\r\n\r\n $this->dataChart['year'][] = $this->birth[$i][0];\r\n $this->dataChart['alive'][] = $currentAlive;\r\n\r\n $i++;\r\n } elseif ($j < $ctEnd) {\r\n $currentAlive -= $this->end[$j][1];\r\n\r\n $this->dataChart['year'][] = $this->end[$j][0];\r\n $this->dataChart['alive'][] = $currentAlive;\r\n\r\n $j++;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1a8f9018f7f89077200ce4cd7f311cc9", "score": "0.4592043", "text": "protected function get_pars_from_db(){\r\n\t\t$query_res=mysqli_query($this->mysqli_link,\"select full_link,visited,count(full_link) as c from `scanner`.`craw_pages` where visited=0 and proj_id={$this->proj_id} limit 1000;\");\r\n\t\tif(mysqli_error($this->mysqli_link)) {\r\n\t\t\t//echo mysqli_error($this->mysqli_link);\r\n\t\t\tdie();\r\n\t\t}\r\n\t\tif(mysqli_num_rows($query_res)!=0){\r\n\t\t\t$data=[];$c=0;\r\n\t\t\twhile($row=mysqli_fetch_assoc($query_res)){\r\n\t\t\t\t$c=$row['c'];\r\n\t\t\t\t$data[]=array(\"link\"=>$row['full_link'],\"visited\"=>$row['visited']);\r\n\t\t\t}\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t else return 0;\r\n\t}", "title": "" }, { "docid": "0f5f95779462c80253a3a546a0240a2c", "score": "0.4590737", "text": "function hitung_interval(){\n $jInterval = interval()['jumlah_interval']; // jumlah interval\n $lInterval = interval()['lebar_interval']; // lebar interval\n\n\n\n // return $jInterval;\n $awal = max_min()['min'];\n //$hit = max_min()['min'];\n $n = $awal;\n for($i=0; $i < (integer)$jInterval; $i++) {\n $n = $n + $lInterval;\n if ($i == 0) {\n $d = [$awal,round($n,2)];\n }\n else{\n $a = $data[$i-1][1];\n $d = [$a ,round($n,2)];\n }\n $data [] = $d; // himpunan sementara U\n }\n // return $data;\n // menghitung frekuensi\n $tInterval = count($data); // total interval\n for ($i=0; $i <$tInterval ; $i++) {\n $jFrek = 0; // jumlah frekuensi\n // $no = $i+1;\n // $string = 'u'.$i+1;\n foreach(data() as $nilai){\n if ( ($nilai['hasil_panen'] >= $data[$i][0]) && ($nilai['hasil_panen'] <= $data[$i][1]) ) {\n $jFrek++;\n }\n }\n // $frekuensi [] = ['u'.$no => $jFrek];\n $frekuensi [] = $jFrek;\n }\n // return $frekuensi;\n // end menghitung frekuensi\n // interval berdasarkan frekuensi\n // jika nilai frekuensi lebih dari jumlah interval maka dibagi dua\n\n $a = 'A';\n $an = 1;\n\n $lInterval2 = $lInterval / 2;\n $j = 0;\n for ($i=0; $i < $tInterval ; $i++) {\n if ($frekuensi[$i] > $jInterval ) {\n // kondisi 2\n $d = [\n $data[$i][0],\n $data[$i][0]+$lInterval2,\n nilai_tengah($data[$i][0],$data[$i][0]+$lInterval2),\n $a.$an++\n ];\n $intFrekuensi [] = $d;\n // $intFrekuensi 1/2\n $d = [\n $intFrekuensi[$j][1],\n $data[$i][1],\n nilai_tengah($intFrekuensi[$j][1],$data[$i][1]),\n $a.$an++\n ];\n $intFrekuensi [] = $d;\n $j = $j + 2;\n // end kondisi 2\n }\n else{\n // kondisi 1\n $d = [\n $data[$i][0],\n $data[$i][1],\n nilai_tengah($data[$i][0],$data[$i][1]),\n $a.$an++\n ];\n $intFrekuensi [] = $d;\n // end kondisi 1\n }\n }\n return $intFrekuensi;\n // end interval berdasarkan frekuensi\n}", "title": "" }, { "docid": "93eeb782ec936c6126edd72345f89bfb", "score": "0.45845783", "text": "function getLimitedRecurrenceEvents() {\n incrementWECqueries();\n global $wpdb;\n $query = 'SELECT eventID, repeatTimes from '.WEC_EVENT_TABLE.' where repeatTimes > 0';\n return $wpdb->get_results($query, ARRAY_A);\n }", "title": "" }, { "docid": "3b2b993eb9ed0f38590233a89e208bd6", "score": "0.45817828", "text": "public function getLatest();", "title": "" }, { "docid": "f1911c9f3bce5a9c1e271e46c9f212e1", "score": "0.4572687", "text": "static function oglasipokrajih()\n {\n $krajinst = array();\n $result = pg_query(self::con(),\"SELECT COUNT(*),k.ime_k FROM kraji k INNER JOIN oglasi o ON o.id_kraja = k.id_k GROUP BY k.ime_k ORDER BY COUNT(*) DESC;\");\n $x = 0;\n while ($row = pg_fetch_row($result))\n {\n $krajinst[$x] = $row[0].\"|\".$row[1];\n $x++;\n }\n pg_close();\n return $krajinst;\n }", "title": "" }, { "docid": "2c3968269d2eaf6350a13744b89c8d72", "score": "0.45726004", "text": "private function get_edges()\n {\n $sFilter = \"\";\n $aEdges = array();\n $sJoin = \"\";\n $sWhere = \"WHERE 1=1\";\n // Filter: Only processes with given number of activities are selected\n if(!empty($this->numActivities))\n {\n $sJoin = \"INNER JOIN prozessvarianten ON prozessvarianten.ProzessvariantenID = prozessteilschritte.ProzessvariantenId\";\n $sWhere .= \" AND numActivities = \".$this->numActivities;\n }\n \n // Filter: Only given processes are returned\n $sWhere .= $this->get_variationfilter('prozessteilschritte');\n $sQuery = \"SELECT SUM(prozessteilschritte.Haeufigkeit) AS num, ak1.Aktivitaet AS target, ak2.Aktivitaet AS source,\"\n . \" AVG(prozessteilschritte.Durchlaufzeit) AS time, Knotentyp AS type, aktivitaeten_ID, aktivitaeten_VG_ID, \"\n . \" COUNT(DISTINCT ProzessteilschrittID) AS numAct\"\n . \" FROM prozessteilschritte \"\n . \"INNER JOIN aktivitaeten ak1 ON prozessteilschritte.aktivitaeten_ID = ak1.ID \"\n . \"LEFT JOIN aktivitaeten ak2 ON prozessteilschritte.aktivitaeten_VG_ID = ak2.ID \"\n . \" $sJoin \"\n . \" $sWhere \"\n . \" GROUP BY CONCAT(Aktivitaeten_ID,'_',Aktivitaeten_VG_ID);\";\n $oTable = $this->oDB->query($sQuery);\n while($aRow = $oTable->fetch_assoc())\n {\n // Add dummy start node\n if($aRow['type'] == 'start')\n {\n $aRow['source'] = \"Start\";\n }\n // Add dummy end node\n if($aRow['type'] == 'end')\n {\n $aEdges[] = array('source'=>$aRow['target'],'target'=>'End','time'=>0,'num'=>$this->aAktivitaeten[$aRow['aktivitaeten_ID']],'type'=>'end');\n $aRow['type'] = 'normal';\n }\n $aEdges[] = array(\"source\"=>$aRow['source'], \n \"target\"=>$aRow['target'],\n \"time\"=>intval($aRow['time']),\n \"num\"=>intval($aRow['num']),\n \"type\"=>$aRow['type']);\n }\n return $aEdges;\n }", "title": "" }, { "docid": "96e93b31e3f020a58a76d99f311d9c03", "score": "0.45720142", "text": "protected function getPlannedBroadcasts()\n {\n $broadcastRepository = $this->entityManager->getRepository('LiveBroadcastBundle:LiveBroadcast');\n $expr = Criteria::expr();\n $criterea = Criteria::create();\n\n $criterea->where($expr->andX(\n $expr->lte('startTimestamp', new \\DateTime()),\n $expr->gte('endTimestamp', new \\DateTime())\n ));\n\n /** @var LiveBroadcast[] $nowLive */\n return $broadcastRepository->createQueryBuilder('lb')->addCriteria($criterea)->getQuery()->getResult();\n }", "title": "" }, { "docid": "39cc4d4a8aab238ff06f5035e87f5f60", "score": "0.45708764", "text": "public function getBitacora ()\n {\n $query =\"SELECT events_bitacora_filename, events_bitacora_max_timestamp\n FROM events_bitacora\n WHERE events_bitacora_max_timestamp = (SELECT MAX( events_bitacora_max_timestamp ) FROM events_bitacora ) limit 1 \";\n $pResult = $this->db->select($query);\n\n if (!$bitacora = $this->db->get_row($pResult, 'MYSQL_ASSOC'))\n {\n $bitacora = array(\n 'events_bitacora_filename' => '',\n 'events_bitacora_max_timestamp' => 0,\n );\n }\n return $bitacora;\n }", "title": "" }, { "docid": "34eaf7412a98fee58807c76633b6b8fe", "score": "0.45658252", "text": "public function getHighScores(int $count=5) : array {\n\t\t$stmt = $this->dbh->prepare('SELECT id,name,score FROM quizapp_players ORDER BY score DESC, id DESC LIMIT ?');\n\t\t$stmt->execute([$count]);\n\t\treturn $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "6ee7323e00395c3e7379c18d3f5c422e", "score": "0.45599264", "text": "public function getStatistic ( ) {\n\n if(empty(self::$_mark))\n return array();\n\n $max = $this->getLongest()->diff();\n $out = array();\n\n foreach($this as $id => $mark)\n $out[$id] = array(\n self::STAT_RESULT => $mark->diff(),\n self::STAT_POURCENT => ($mark->diff() * 100) / $max\n );\n\n return $out;\n }", "title": "" }, { "docid": "b8d106b43d29bd39e018e9626d4eed07", "score": "0.45562184", "text": "function all_elki_GD($idG)\n{Global $db;\n\t$results = array();\n\t$query = $db->query(\"SELECT * FROM taille_elki WHERE id_elki = '$idG' AND prix = 0 \n\t\tORDER BY id_elki DESC LIMIT 70\");\n\twhile($row = $query->fetch())\n\t{\n\t\t$results[] =$row;\n\t}\n\treturn $results;\n}", "title": "" }, { "docid": "a0274d2cae682583b31b5d31cabdfba4", "score": "0.45500535", "text": "public function getboxnumberseries()\n {\n $query = $this->connection->prepare(\"SELECT * FROM gpx_barcode_series\");\n $query->execute();\n $result = $query->fetchAll();\n return $result;\n }", "title": "" }, { "docid": "03a09fd86985a8888eb8af9db5ef5577", "score": "0.45494884", "text": "public static function dataProvider()\n\t{\n\t\treturn array(\n\t\t\tarray(1, array('min_freq' => 0, 'max_freq' => 4), TRUE),\n\t\t\tarray(1, array('min_freq' => 1, 'max_freq' => 4), TRUE),\n\t\t\tarray(1, array('min_freq' => 2, 'max_freq' => 4), FALSE),\n\t\t\tarray(5, array('min_freq' => 0, 'max_freq' => 4), FALSE),\n\t\t\tarray(5, array('min_freq' => 0, 'max_freq' => 5), TRUE),\n\t\t\tarray(5, array('min_freq' => 0, 'max_freq' => 6), TRUE),\n\t\t\tarray(1, array(0, 0, 0, 0, 0, 0), TRUE), // make sure incorrectly formatted limits will pass\n\t\t);\n\t}", "title": "" }, { "docid": "b28624d9172f91b70d685766598957d7", "score": "0.45412257", "text": "public function getLesPegis(): array\n {\n $requete = 'SELECT idPegi as identifiant, ageLimite as libelle, descPegi\n\t\t\t\t\t\tFROM Pegi \n\t\t\t\t\t\tORDER BY ageLimite';\n try {\n $resultat = PdoJeux::$monPdo->query($requete);\n $tbPegis = $resultat->fetchAll();\n return $tbPegis;\n } catch (PDOException $e) {\n die('<div class = \"erreur\">Erreur dans la requête !<p>'\n . $e->getmessage() . '</p></div>');\n }\n }", "title": "" }, { "docid": "af80c2ba0ab49972560bc5e23e7ac84c", "score": "0.4534972", "text": "function chart_system_runtime( $days = 10 ) {\n\tif ( ! $days ) {\n\t\t$days = 10;\n\t}\n\t\n\t$days = max( 1, $days );\n\t$dates = array();\n\t\n\tfor ( $i = $days + 2; $i >= 2; $i-- ) {\n\t\t$dates[] = date( \"Y-m-d\", strtotime( \"-\" . $i . \" days\" ) );\n\t}\n\t\n\t$date_start = date( \"Y-m-d\", strtotime( \"-\" . ( $days + 2 ) . \" days\" ) );\n\t$date_end = date( \"Y-m-d\", strtotime( \"-2 days\" ) );\n\t\n\t$systems = array(\n\t\t\"Heat\",\n\t\t\"Backup Heat\",\n\t\t\"Cool\",\n\t\t\"Dehumidifier\",\n\t\t\"Humidifier\",\n\t\t\"Fan\",\n\t);\n\n\t$db = get_db();\n\t\n\t$statement = $db->prepare( \"SELECT\n\t\t\tthermostat_id,\n\t\t\tdate,\n\t\t\tSUM(MAX(compHeat1, compHeat2)) `Heat`,\n\t\t\tSUM(MAX(auxHeat1, auxHeat2, auxHeat3)) `Backup Heat`,\n\t\t\tSUM(MAX(compCool1, compCool2)) `Cool`,\n\t\t\tSUM(dehumidifier) `Dehumidifier`,\n\t\t\tSUM(humidifier) `Humidifier`\n\t\t\t/*SUM(fan) `Fan`*/\n\t\tFROM history\n\t\tWHERE date >= :date_start AND date <= :date_end\n\t\tGROUP BY thermostat_id, date\n\t\tORDER BY thermostat_id ASC, date ASC\" );\n\n\t$statement->bindValue( \":date_start\", $date_start );\n\t$statement->bindValue( \":date_end\", $date_end );\n\t$result = $statement->execute();\n\t\n\t$thermostats = array();\n\t\n\twhile ( $record = $result->fetchArray() ) {\n\t\tif ( ! isset( $thermostats[ $record['thermostat_id'] ] ) ) {\n\t\t\t$thermostats[ $record['thermostat_id'] ] = array();\n\t\t}\n\t\t\n\t\t$thermostats[ $record['thermostat_id'] ][ $record['date'] ] = $record;\n\t}\n\t\n\t$statement = $db->prepare( \"SELECT\n\t\tAVG(outdoorTemp) avgTemp,\n\t\tdate\n\t\tFROM history\n\t\tWHERE date >= :date_start AND date <= :date_end\n\t\tGROUP BY date\n\t\tORDER BY date ASC\" );\n\n\t$statement->bindValue( \":date_start\", $date_start );\n\t$statement->bindValue( \":date_end\", $date_end );\n\t$temp_result = $statement->execute();\n\t\n\t$outdoor_temps = array();\n\t\n\twhile ( $record = $temp_result->fetchArray() ) {\n\t\t$outdoor_temps[ $record['date'] ] = $record['avgTemp'];\n\t}\n\t\n\t$db->close();\n\t\n\t$config = get_config();\n\t\n\t$csv_data = array();\n\t\n\t$header = array();\n\t$header[] = \"Date\";\n\t\n\tforeach ( $thermostats as $thermostat_id => $records ) {\n\t\t$thermostat_name = \"\";\n\t\t\n\t\tforeach ( $config->thermostats as $thermostat_entry ) {\n\t\t\tif ( $thermostat_entry->identifier == $thermostat_id ) {\n\t\t\t\t$thermostat_name = $thermostat_entry->name;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach ( $systems as $system ) {\n\t\t\t$header[] = trim( $thermostat_name . \" \" . $system );\n\t\t}\n\t}\n\t\n\t$header[] = \"Day's Average Temp\";\n\t\n\t$csv_data = array(\n\t\t$header,\n\t);\n\t\n\tforeach ( $dates as $date ) {\n\t\t$row = array();\n\t\t$row[] = $date;\n\t\t\n\t\tforeach ( $thermostats as $thermostat_id => $records ) {\n\t\t\tforeach ( $systems as $system ) {\n\t\t\t\tif ( isset( $records[ $date ][ $system ] ) ) {\n\t\t\t\t\t$row[] = round( $records[ $date ][ $system ] / 86400, 2 );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$row[] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( isset( $outdoor_temps[ $date ] ) ) {\n\t\t\t$row[] = round( $outdoor_temps[ $date ] );\n\t\t}\n\t\t\n\t\t$csv_data[] = $row;\n\t}\n\t\n\t$column_totals = array();\n\n\tforeach ( $csv_data as $row_number => $row ) {\n\t\tif ( 0 == $row_number ) {\n\t\t\tcontinue;\n\t\t}\n\t\t\n\t\tfor ( $i = 1; $i < count( $row ); $i++ ) {\n\t\t\tif ( ! isset( $column_totals[ $i ] ) ) {\n\t\t\t\t$column_totals[ $i ] = 0;\n\t\t\t}\n\t\t\t\n\t\t\t$column_totals[ $i ] += $row[ $i ];\n\t\t}\n\t}\n\n\tfor ( $i = count( $csv_data[0] ) - 1; $i >= 1; $i-- ) {\n\t\tif ( $column_totals[ $i ] == 0 ) {\n\t\t\tforeach ( $csv_data as $row_number => $row ) {\n\t\t\t\tarray_splice( $row, $i, 1 );\n\t\t\t\t$csv_data[ $row_number ] = $row;\n\t\t\t}\n\t\t}\n\t}\n\t\n\t?>\n\t<!doctype html>\n<html>\n\t<head>\n\t\t<meta charset=\"utf-8\"/>\n\t\t<script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>\n\t\t<script type=\"text/javascript\">\n\t\t\tgoogle.charts.load('current', {'packages':['corechart']});\n\t\t\tgoogle.charts.setOnLoadCallback(drawChart);\n\n\t\t\tfunction drawChart() {\n\t\t\t\tvar data = google.visualization.arrayToDataTable(<?php echo json_encode( $csv_data ); ?>);\n\n\t\t\t\tvar options = {\n\t\t\t\t\ttitle: 'HVAC System Runtimes',\n\t\t\t\t\tcurveType: 'function',\n\t\t\t\t\tlegend: { position: 'bottom' },\n\t\t\t\t\tvAxes : {\n\t\t\t\t\t\t0 : { title: 'Percent of time running', maxValue: 1, minValue: 0, format: 'percent' },\n\t\t\t\t\t\t1 : { title: 'Average Outdoor Temp', minValue: 30, maxValue: 70, viewWindow: { min: 30 } }\n\t\t\t\t\t},\n\t\t\t\t\tseries : {\n\t\t\t\t\t\t<?php for ( $i = 0; $i < count( $csv_data[0] ) - 2; $i++ ) { ?>\n\t\t\t\t\t\t\t<?php echo $i; ?> : {targetAxisIndex : 0},\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t<?php echo count( $csv_data[0] ) - 2; ?> : {targetAxisIndex : 1, lineDashStyle : [4, 4]}\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tvar chart = new google.visualization.LineChart(document.getElementById('curve_chart'));\n\n\t\t\t\tchart.draw(data, options);\n\t\t\t}\n\t\t</script>\n\t</head>\n\t<body>\n\t\t<div id=\"curve_chart\" style=\"width: 900px; height: 500px\"></div>\n\t</body>\n</html>\n\t<?php\n}", "title": "" }, { "docid": "539c3a803f7a84958f19900e3f492d33", "score": "0.4529355", "text": "public function findOutOfDataUsers()\n {\n $query = $this->getEntityManager()->createQueryBuilder()\n ->select('u')\n ->from(User::class, 'u')\n ->join('u.radiusCheck', 'c')\n ->where('c.attribute = :maxoctets')\n ->andWhere('c.value <= 0')\n ->setParameter('maxoctets', Check::MAX_OCTETS);\n\n return $query->getQuery()->getResult();\n }", "title": "" }, { "docid": "284234ffa570ffd983bf9ec0f0c354fe", "score": "0.45178413", "text": "function getLanuvFoiId2(){\r\n\tglobal $conn;\r\n\t$result = pg_query($conn, \"SELECT feature_of_interest_id,max(time_stamp) \r\n\t\t\t\t\t\t\t\tFROM observation natural inner join feature_of_interest \r\n\t\t\t\t\t\t\t\tWHERE feature_of_interest_id = 'Geist' OR feature_of_interest_id = 'Weseler' group by feature_of_interest_id order by feature_of_interest_id\");\r\n\treturn pg_fetch_all($result);\r\n}", "title": "" }, { "docid": "e64c0b96570ecf16841ae0d3840a9e87", "score": "0.45159742", "text": "static function getTopTenSeminars()\n {\n return DBManager::get()->query(\"SELECT a.seminar_id, b.name AS display,\n count( a.seminar_id ) AS count FROM forum_entries a\n INNER JOIN seminare b USING ( seminar_id )\n WHERE b.visible = 1\n AND a.mkdate > UNIX_TIMESTAMP( NOW( ) - INTERVAL 2 WEEK )\n GROUP BY a.seminar_id\n ORDER BY count DESC\n LIMIT 10\")->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "9be6e67b73042b97bcea322dfa056e9a", "score": "0.45042017", "text": "function get_scores($where = \"\") {\n # Definitions\n $tie = \"(dead0 + zomb0 = dead1 + zomb1)\";\n $win0 = \"(dead0 + zomb0 < dead1 + zomb1)\";\n $win1 = \"(dead0 + zomb0 > dead1 + zomb1)\";\n $ko0 = \"(rounds < 200000 && \" . $win0 . \")\";\n $ko1 = \"(rounds < 200000 && \" . $win1 . \")\";\n $score0 = \"(2 * \" . $win0 . \" + 4 * \" . $ko0 . \" + \" . $tie \n . \" - 10000 * (dead0 + zomb0 > 500)) as s0\"; \n $score1 = \"(2 * \" . $win1 . \" + 4 * \" . $ko1 . \" + \" . $tie \n . \" - 10000 * (dead1 + zomb1 > 500)) as s1\"; \n\n # Query the database\n $query = \"select min(id), player0, player1, count(id), avg(rounds), \";\n $query .= \"avg(dead0), avg(dead1), avg(zomb0), avg(zomb1), \";\n $query .= \"avg(vit0), avg(vit1), \";\n $query .= \"avg\" . $score0 . \", avg\" . $score1 . \", \";\n $query .= \"avg\" . $win0 . \", avg\" . $win1 . \", \";\n $query .= \"avg\" . $tie . \", avg\" . $ko0 . \", avg\" . $ko1 . \" \";\n $query .= \"from matches \" . $where . \" group by player0, player1\";\n $result = my_query($query);\n\n # Populate the return array\n\n $ret = array();\n while($row = mysql_fetch_row($result)) {\n $id = $row[0];\n $p0 = intval($row[1]);\n $p1 = intval($row[2]);\n $dead0 = intval($row[5]);\n $dead1 = intval($row[6]);\n $zomb0 = intval($row[7]);\n $zomb1 = intval($row[8]);\n\n $data = array();\n $data['id'] = $id;\n $data['p0'] = $p0;\n $data['p1'] = $p1;\n $data['dups'] = $row[3];\n $data['rounds'] = $row[4];\n $data['dead0'] = $dead0;\n $data['dead1'] = $dead1;\n $data['zomb0'] = $zomb0;\n $data['zomb1'] = $zomb1;\n $data['live0'] = 256 - $dead0 - $zomb0;\n $data['live1'] = 256 - $dead1 - $zomb1;\n $data['vit0'] = intval($row[9]);\n $data['vit1'] = intval($row[10]); \n $data['score0'] = floatval($row[11]);\n $data['score1'] = floatval($row[12]);\n $data['win0'] = floatval($row[13]);\n $data['win1'] = floatval($row[14]);\n $data['tie'] = floatval($row[15]);\n $data['ko0'] = floatval($row[16]);\n $data['ko1'] = floatval($row[17]);\n\n # if(!$isset(ret[$p0])) $ret[$p0] = array();\n $ret[$p0][$p1] = $data;\n }\n\n return $ret;\n}", "title": "" }, { "docid": "e2278135366afa131a593eb2aedcc2b7", "score": "0.45035174", "text": "function getLatestOffering($offering_id){\r\n\tglobal $conn;\r\n\t\t$transform = umwandeln();\r\n\t\t$i = 0;\r\n\t\twhile ($i < count($transform)) {\r\n\t\t$gegenFOI = $transform[$i]['feature_of_interest_id'];\r\n\t\t$gegenTS = $transform[$i]['max'];\r\n\t\t\tif ($gegenFOI == \"_\" or $gegenTS == \"_\");\r\n\t\t\telse {\r\n\t\t\t\t$result = pg_query($conn, \"SELECT numeric_value\r\n\t\t\t\t\t\t\t\t\tFROM observation\r\n\t\t\t\t\t\t\t\t\tWHERE time_stamp = '$gegenTS' AND feature_of_interest_id = '$gegenFOI' AND offering_id = '$offering_id'\");\r\n\t\t\t\tif (pg_result($result,0,\"numeric_value\") == false) {$ActualResult = '-';}\r\n\t\t\t\telse {$ActualResult = pg_result($result,0,\"numeric_value\");}\r\n\t\t\t\t$TempArray[$i]['feature_of_interest_id'] = $gegenFOI;\r\n\t\t\t\t$TempArray[$i]['numeric_value'] = $ActualResult;\r\n\t\t\t}\r\n\t\t\t$i++;\r\n\t\t}\r\n\t\treturn $TempArray;\r\n}", "title": "" }, { "docid": "8e17033d0754071ddd2101b2b1cbbb12", "score": "0.44998184", "text": "function getBTopSensors($params = \"\")\n {\n $query = \"SELECT C.id AS id, ref, clientId, channel, C.counter AS counter, host, descr, Flows.name AS door, \" . \n\t\"CASE WHEN CountersAssoc.sens=1 THEN L1.name ELSE L2.name END AS nameL1,\" . \n\t\"CASE WHEN CountersAssoc.sens=1 THEN L2.name ELSE L1.name END AS nameL2 \" .\n\t\"FROM CountersAvailable as C, Locations as L1, Locations as L2, Flows, CountersAssoc \" . \n\t\"WHERE C.id = CountersAssoc.counter AND CountersAssoc.flow = Flows.id AND \" .\n\t\"Flows.zone1 = L1.id AND Flows.zone2 = L2.id\";\n return $this->get_config_array($query);\n }", "title": "" }, { "docid": "da2fd2e1e8979570fe33c593fa6fd2fe", "score": "0.44959843", "text": "function temperatures_semaine(){\n$timestamp=\"\";\n$temperature_dehors=\"\";\n$temperature_chambre=\"\";\n$hygro_chambre=\"\";\n$temperature_sejour=\"\";\n$hygro_sejour=\"\";\n$pression_sejour=\"\";\n\n$sql = mysql_query(\"SELECT TIMESTAMP( CONCAT( YEAR( date_histo ) , '-', MONTH( date_histo ) , '-', DAY( date_histo ) , ' ', HOUR( date_histo ) , ':00' ) ) , date_histo, id_objet, AVG( valeur1 ) , AVG( valeur2 ) , AVG( valeur3 ) \n\t\t\t\t\tFROM historique_donnees\n\t\t\t\t\tWHERE id_objet IN ( 1, 3, 4 ) \n\t\t\t\t\tAND date_histo > DATE_SUB(NOW( ), INTERVAL 7 DAY)\n\t\t\t\t\tGROUP BY YEAR( date_histo ) , MONTH( date_histo ) , DAY( date_histo ) , HOUR( date_histo ), id_objet\n\t\t\t\t\tORDER BY date_histo\");\nwhile(list($date_histo,$date_histo2,$id_objet,$temp,$hygro,$pression) = mysql_fetch_array($sql))\n{\n\t$timestamp[$date_histo] = strtotime($date_histo);\n\tswitch($id_objet){\n\t\tcase 1: //chambre\n\t\t\t$temperature_chambre[$date_histo] = $temp;\n\t\t\t$hygro_chambre[$date_histo] = $hygro;\n\t\t\tbreak;\n\t\tcase 3: //dehors\n\t\t\t$temperature_dehors[$date_histo] = $temp;\n\t\t\tbreak;\n\t\tcase 4: //sejour\n\t\t\t$temperature_sejour[$date_histo] = $temp;\n\t\t\t$hygro_sejour[$date_histo] = $hygro;\n\t\t\t$pression_sejour[$date_histo] = $pression;\n\t\t\tbreak;\n\t}\n}\n\n//on garde les trous en cas de pertes d'informations\n$temperature_chambre=combler_les_trous($timestamp,$temperature_chambre);\n$hygro_chambre=combler_les_trous($timestamp,$hygro_chambre);\n$temperature_dehors=combler_les_trous($timestamp,$temperature_dehors);\n$temperature_sejour=combler_les_trous($timestamp,$temperature_sejour);\n$hygro_sejour=combler_les_trous($timestamp,$hygro_sejour);\n$pression_sejour=combler_les_trous($timestamp,$pression_sejour);\n\n \n$myData = new pData(); \n$myData->addPoints($timestamp,\"Timestamp\");\n$myData->addPoints($temperature_dehors,\"T° Exterieure\");\n$myData->addPoints($temperature_sejour,\"T° Séjour\");\n$myData->addPoints($temperature_chambre,\"T° Chambre\");\n$myData->addPoints($hygro_chambre,\"Hygro Chambre\");\n$myData->addPoints($hygro_sejour,\"Hygro Séjour\");\n$myData->addPoints($pression_sejour,\"Pression Atmo\");\n\n$myData->setSerieOnAxis(\"T° Exterieure\",0);\n$myData->setSerieOnAxis(\"T° Séjour\",0);\n$myData->setSerieOnAxis(\"T° chambre\",0);\n\n$myData->setSerieOnAxis(\"Hygro Séjour\",1);\n$myData->setSerieOnAxis(\"Hygro Chambre\",1);\n$myData->setSerieTicks(\"Hygro Séjour\",4);\n$myData->setSerieTicks(\"Hygro Chambre\",4);\n\n$myData->setSerieOnAxis(\"Pression Atmo\",2);\n\n$myData->setAbscissa(\"Timestamp\");\n$myData->setXAxisName(\"Time\");\n// $myData->setXAxisDisplay(AXIS_FORMAT_TIME,\"H:i\");\n$myData->setXAxisDisplay(AXIS_FORMAT_TIME,\"D\");\n//$myData->setXAxisDisplay(0,AXIS_FORMAT_CUSTOM,\"format_absisse_jour\");\n$myData->setAxisName(0,\"Temperatures en °C\");\n$myData->setAxisUnit(0,\"°\");\n//temperature\n$bornes_axe_ordonnees[0] = array(\"Min\"=>-8,\"Max\"=>35);\n//humidite\n$bornes_axe_ordonnees[1] = array(\"Min\"=>30,\"Max\"=>90);\n$myData->setAxisName(1,\"Humidite\");\n$myData->setAxisUnit(1,\"%\");\n$myData->setAxisName(2,\"Pression Atmosphérique\");\n$myData->setAxisUnit(2,\"HPa\");\n$myData->setAxisPosition(2,AXIS_POSITION_RIGHT);\n\n$myPicture = new pImage(1250,550,$myData);\n//$Settings = array(\"R\"=>48, \"G\"=>124, \"B\"=>183, \"Dash\"=>1, \"DashR\"=>68, \"DashG\"=>144, \"DashB\"=>203);\n//$myPicture->drawFilledRectangle(0,0,1200,500,$Settings);\n\n$Settings = array(\"StartR\"=>48, \"StartG\"=>124, \"StartB\"=>183, \"EndR\"=>33, \"EndG\"=>86, \"EndB\"=>128, \"Alpha\"=>50);\n$myPicture->drawGradientArea(0,0,1250,550,DIRECTION_VERTICAL,$Settings);\n\n//$myPicture->drawRectangle(0,0,1199,499,array(\"R\"=>0,\"G\"=>0,\"B\"=>0));\n\n$myPicture->setShadow(TRUE,array(\"X\"=>1,\"Y\"=>1,\"R\"=>50,\"G\"=>50,\"B\"=>50,\"Alpha\"=>20));\n\n$myPicture->setFontProperties(array(\"FontName\"=>\"fonts/Forgotte.ttf\",\"FontSize\"=>18));\n$TextSettings = array(\"Align\"=>TEXT_ALIGN_MIDDLEMIDDLE\n, \"R\"=>255, \"G\"=>255, \"B\"=>255);\n$myPicture->drawText(350,25,\"Météo Nantaise\",$TextSettings);\n\n$myPicture->setShadow(FALSE);\n$myPicture->setGraphArea(110,50,1160,500);\n$myPicture->setFontProperties(array(\"R\"=>0,\"G\"=>0,\"B\"=>0,\"FontName\"=>\"fonts/Forgotte.ttf\",\"FontSize\"=>14));\n\n$Settings = array(\"Pos\"=>SCALE_POS_LEFTRIGHT\n, \"Mode\"=>SCALE_MODE_FLOATING\n, \"LabelingMethod\"=>LABELING_ALL\n, \"GridR\"=>255, \"GridG\"=>255, \"GridB\"=>255, \"GridAlpha\"=>50,\n\"TickR\"=>0, \"TickG\"=>0, \"TickB\"=>0, \"TickAlpha\"=>50,\n\"LabelRotation\"=>0,\n \"CycleBackground\"=>1,\n \"DrawXLines\"=>1,\n \"DrawSubTicks\"=>1, \"SubTickR\"=>255, \"SubTickG\"=>0, \"SubTickB\"=>0, \"SubTickAlpha\"=>50,\n \"DrawYLines\"=>ALL,\n \"LabelSkip\"=>23//,\n// \"Mode\"=>SCALE_MODE_MANUAL,\n// \"ManualScale\"=>$bornes_axe_ordonnees\n);\n$myPicture->drawScale($Settings);\n\n$myPicture->setShadow(TRUE,array(\"X\"=>1,\"Y\"=>1,\"R\"=>50,\"G\"=>50,\"B\"=>50,\"Alpha\"=>10));\n\n$Config = \"\";\n$myPicture->drawSplineChart($Config);\n\n$Config = array(\"FontR\"=>0, \"FontG\"=>0, \"FontB\"=>0, \"FontName\"=>\"fonts/Forgotte.ttf\", \"FontSize\"=>14, \"Margin\"=>6, \"Alpha\"=>30, \"BoxSize\"=>5, \"Style\"=>LEGEND_NOBORDER\n, \"Mode\"=>LEGEND_HORIZONTAL\n);\n$myPicture->drawLegend(563,16,$Config);\n\n//$myPicture->stroke();\n\n$myPicture->render(\"tmp/graphe_ts.png\");\n\necho \"<img src='tmp/graphe_ts.png' alt='graphe'/>\";\n\n}", "title": "" }, { "docid": "f64064b4a65698857d42444b34839cb4", "score": "0.44890863", "text": "function showMaxMin(){\n $resultMax = mysqli_query(connect(),\"Select Temperature, Time From Data Where Temperature = (Select Max(Temperature) From Data WHERE Date = Current_Date()) GROUP BY (Temperature) \");\n \n echo \"<table border='1'>\n <tr>\n <th>Temperature Max</th>\n <th>Time</th>\n </tr>\";\n \n while($row = mysqli_fetch_array($resultMax)) {\n echo \"<tr>\";\n echo \"<td>\" . $row[0] . \"</td>\";\n echo \"<td>\" . $row[1] . \"</td>\";\n echo \"</tr>\";\n }\n \n $resultMin = mysqli_query(connect(),\"Select Temperature, Time From Data Where Temperature = (Select Min(Temperature) From Data WHERE Date = Current_Date())GROUP BY (Temperature) \");\n \n echo \"<table border='1'>\n <tr>\n <th>Temperature Min</th>\n <th>Time</th>\n </tr>\";\n \n while($row = mysqli_fetch_array($resultMin)) {\n echo \"<tr>\";\n echo \"<td>\" . $row[0] . \"</td>\";\n echo \"<td>\" . $row[1] . \"</td>\";\n echo \"</tr>\";\n }\n \n echo \"</table>\";\n }", "title": "" }, { "docid": "c568bd99b53c714701bc619a5037244c", "score": "0.44884714", "text": "public function findLOs() {\n\t\t$data = $this->data;\n\t\t\n\t\t$LOs = array();\n\t\tforeach($data as $d) {\n\t\t\tif(in_array($d['FreqLO'], $LOs)) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\t$LOs[] = $d['FreqLO'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->LO = $LOs;\n\t}", "title": "" }, { "docid": "0e7a5727b28c7ec937b4d03a902660b3", "score": "0.4482799", "text": "public static function lastweekplay() {\n\t\t$list = array();\n\t\t$db = Db::getInstance();\n\t\t$req = $db->query('SELECT s.IdBrano, s.Titolo, COUNT(h.IdBrano) AS played FROM Brani s INNER JOIN Ascoltate h ON(s.IdBrano = h.IdBrano) WHERE h.Timestamp BETWEEN ADDDATE(CURDATE(), - 7) AND NOW() GROUP BY h.IdBrano ORDER BY played DESC LIMIT 10');\n\t\tforeach ($req->fetchAll() as $result) {\n\t\t\t$list[] = array('id' => $result['IdBrano'], 'Title' => $result['Titolo'], 'Count' => $result['played']);\n\t\t}\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "34b0a8ffd97de92b56e67fca58676397", "score": "0.44757777", "text": "function getPredictions($sensor, $method, $start, $end) {\n // Val, Timestamp \n \n // $json[0][\"Val\"] = 15;\n // $json[0][\"Timestamp\"] = \"2016-03-17T00:00:00.000\";\n $start = $start . \" 23:59:59.999\";\n // echo $start;\n \n $SQL = \"SELECT * FROM predictions WHERE pr_sensor = '$sensor' AND pr_type = '$method' AND pr_timestamp > '$start' AND pr_timestamp < '$end'\";\n $result = mysql_query($SQL);\n echo mysql_error();\n \n $i = 0;\n while ($line = mysql_fetch_array($result)) {\n $json[$i][\"Val\"] = floatval($line[\"pr_value\"]);\n $json[$i][\"Timestamp\"] = str_replace(\" \", \"T\", $line[\"pr_timestamp\"]) . \".000\";\n $i++;\n }\n \n return json_encode($json);\n}", "title": "" }, { "docid": "5ed7fc5f998d9cdf0d81db997109ea75", "score": "0.44702753", "text": "public function LayGiayBoost()\n {\n $this->setSql('select * from tblgiay g where g.idHangGiay = 3');\n return $this->getAllRows();\n }", "title": "" }, { "docid": "e23bfe2f7362b98326634bc766a55256", "score": "0.44683138", "text": "public function getRecords()\n {\n $query = $this->db->select('data')\n ->get('networkscan');\n\n foreach ($query->result() as $row) {\n return $row->data;\n }\n }", "title": "" }, { "docid": "0081d64726f11477b88688435ce5355c", "score": "0.44658527", "text": "function getResultsBattle($rig)\n{\n foreach ($rig as $k => $r) {\n $result = R::getRow('select * from results_battle where id_rig = ?', array($r['id']));\n\n if ($r['id_reasonrig'] == REASON_FIRE || $r['id_reasonrig'] == REASON_HS) {\n $rb1 = R::getRow('select * from rb_chapter_1 where id_rig = ?', array($r['id']));\n $rb2 = R::getRow('select * from rb_chapter_2 where id_rig = ?', array($r['id']));\n $rb3 = R::getRow('select * from rb_chapter_3 where id_rig = ?', array($r['id']));\n\n $rb_arr = [];\n $rb_1_arr = [];\n $rb_2_arr = [];\n $rb_3_arr = [];\n $exclude = array('id', 'date_insert', 'id_user', 'id_rig', 'last_update');\n\n\n if (!empty($result)) {\n foreach ($result as $n => $value) {\n if (!in_array($n, $exclude))\n $rb_arr[] = $value;\n }\n }\n\n if (!empty($rb1)) {\n foreach ($rb1 as $n => $value) {\n if (!in_array($n, $exclude))\n $rb_1_arr[] = $value;\n }\n }\n\n if (!empty($rb2)) {\n foreach ($rb2 as $n => $value) {\n if (!in_array($n, $exclude))\n $rb_2_arr[] = $value;\n }\n }\n if (!empty($rb3)) {\n foreach ($rb3 as $n => $value) {\n if (!in_array($n, $exclude))\n $rb_3_arr[] = $value;\n }\n }\n\n $max = (isset($rb_arr) && !empty($rb_arr)) ? max($rb_arr) : 0;\n $max_rb1 = (isset($rb_1_arr) && !empty($rb_1_arr)) ? max($rb_1_arr) : 0;\n $max_rb2 = (isset($rb_2_arr) && !empty($rb_2_arr)) ? max($rb_2_arr) : 0;\n $max_rb3 = (isset($rb_3_arr) && !empty($rb_3_arr)) ? max($rb_3_arr) : 0;\n // echo $r['id']; echo '<br>';\n //echo $max.'='.$max_rb1.'='.$max_rb2.'='.$max_rb3; echo '<br>'; echo '<br>';\n\n if ($max == 0 && $max_rb1 == 0 && $max_rb2 == 0 && $max_rb3 == 0)\n $rig[$k]['is_empty_rb'] = 1;\n }\n\n\n if (!empty($result)) {\n // echo $is_update_now;\n $rig[$k]['dead_man'] = $result['dead_man'];\n $rig[$k]['dead_child'] = $result['dead_child'];\n $rig[$k]['save_man'] = $result['save_man'];\n $rig[$k]['inj_man'] = $result['inj_man'];\n $rig[$k]['ev_man'] = $result['ev_man'];\n } else {\n $rig[$k]['dead_man'] = 0;\n $rig[$k]['save_man'] = 0;\n $rig[$k]['inj_man'] = 0;\n $rig[$k]['ev_man'] = 0;\n }\n // exit();\n }\n //exit();\n return $rig;\n}", "title": "" }, { "docid": "df1571d49dd83922f656ef46eb3da49c", "score": "0.44610387", "text": "function lastSeenAll($src){\n\n $destinations = ampSiteList($src);\n $recent = 0;\n\n /*\n * just check the last 2 hours to see if there is data...checking too\n * far back can be quite a bit of work and causes the page to be slow\n */\n foreach($destinations->srcNames as $dst) {\n $last = lastSeenSite($src, $dst, 2);\n\n /* if it's 1, it isn't going to get any better than this so return now */\n if($last == 1)\n return 1;\n\n /* otherwise update last if this value is lower and try the next site */\n if($last != 0 && ($recent == 0 || $last < $recent))\n $recent = $last;\n\n }\n return $recent;\n}", "title": "" }, { "docid": "3c47812957b294b6bd99cd469a20892e", "score": "0.44604424", "text": "function all_guirlande_GENE()\n{Global $db;\n\t$results = array();\n\t$query = $db->query(\"SELECT * FROM guirlande \n\t\tORDER BY date_g DESC LIMIT 50\");\n\twhile($row = $query->fetch())\n\t{\n\t\t$results[] =$row;\n\t}\n\treturn $results;\n}", "title": "" }, { "docid": "ba18d643b32b9633ee620da70a2dd44d", "score": "0.44460043", "text": "public static function getCurrentReceivers(){\n\n $query = \"SELECT `\" . REVIEW_REWARDER . \"`.`receiver_id`, \n SUM(`\" . REVIEW_REWARDER . \"`.`rewarder_points`) AS `received_points`, \n `givers`, `username` \n FROM `\" . REVIEW_REWARDER . \"` \n LEFT JOIN \" . REVIEW_USERS . \" ON \" . REVIEW_USERS . \".`id` = `\" . REVIEW_REWARDER . \"`.`receiver_id` \n LEFT JOIN \n (SELECT `receiver_id`, COUNT(`giver_id`) AS `givers` \n FROM `\" . REVIEW_REWARDER . \"` WHERE `rewarder_points` > 0 AND `paid` = 0 GROUP BY `receiver_id`) \n AS `givers_table` ON `givers_table`.`receiver_id` = `\" . REVIEW_REWARDER . \"`.`receiver_id` \n WHERE `paid` = 0 AND `\" . REVIEW_REWARDER . \"`.`rewarder_points` > 0 GROUP BY `receiver_id`\";\n $rt = mysql_query($query);\n\n $receivers = array();\n while($row = mysql_fetch_assoc($rt)){\n $receivers[] = $row;\n }\n\n return $receivers;\n }", "title": "" }, { "docid": "849a4daa8bd24c499d54fb4d9f37d749", "score": "0.44339016", "text": "public function get_measurement_ids()\r\n {\r\n\t\t// create and check connection\r\n $link = CheckrouteDatabase::connect();\r\n\r\n // query all measurements associated with a given measurement campaign\r\n $stmt = mysqli_prepare($link, \"SELECT id_measurement FROM Campaign_has_Measurement WHERE id_campaign = ? ORDER BY id_measurement ASC\");\r\n if ($stmt) {\r\n mysqli_stmt_bind_param($stmt, \"s\", $this->id);\r\n mysqli_stmt_execute($stmt);\r\n mysqli_stmt_bind_result($stmt, $result);\r\n\r\n $measurements_of_campaign = array();\r\n while (mysqli_stmt_fetch($stmt)) {\r\n $measurements_of_campaign[] = $result;\r\n }\r\n mysqli_stmt_close($stmt);\r\n }\r\n\r\n // close database connection\r\n mysqli_close($link);\r\n \r\n return $measurements_of_campaign;\r\n }", "title": "" } ]
90f1a23e43644b56899d1763215d895e
Reads plot number and profitabilities from STDIN if not provided as params
[ { "docid": "66e6918013202976335ac148d550e623", "score": "0.6256453", "text": "public function __construct($plotNumber = null, array $profitabilities = null)\n {\n if (!empty($plotNumber) && !empty($profitabilities)){\n $this->plotNumber = $plotNumber;\n $this->profitabilities = $profitabilities;\n } else {\n //input is always valid, no need to do this\n //$this->validateInput();\n $stdin = fopen(\"php://stdin\",\"r\");\n $this->plotNumber = trim(fgets($stdin));\n $this->profitabilities = explode(' ', trim(fgets($stdin)));\n fclose($stdin);\n }\n }", "title": "" } ]
[ { "docid": "cfadcbb0826146f7806e037442d33d61", "score": "0.57338697", "text": "function readInputData() {\n\t\t$this->readUserVars(array('seriesId', 'title', 'division', 'affiliation'));\n\t\t$this->readUserVars(array('gridId', 'rowId'));\n\t}", "title": "" }, { "docid": "9ce3abd81f5e1d1d63ea9474f622c338", "score": "0.5348184", "text": "function readinput() {\n \t\n // get number of employees and cashbox balance \n $cashbox_bal = readline(\"Cashbox balance: \");\n $no_of_emps = readline(\"Employees Number: \");\n\t\t\n for($i = 0; $i < $no_of_emps; $i++) {\n $emp = readline(\"Employee's data (emp_no emp_type salary loan incentive)\");\n $emps[] = $emp;\n }\n\t\t\n\t\t\n\t\t $this->data['cashbox_bal'] = $cashbox_bal;\n\t\t $this->data['no_of_emps'] = $no_of_emps;\n\t\t $this->data['emps'] = $emps;\n\t\t\t\n\t\t\n }", "title": "" }, { "docid": "c6c9207c4d36a61b3228942fd966969d", "score": "0.5189882", "text": "function readInputData() {\n\t\t$this->readUserVars(array('signoffId'));\n\t}", "title": "" }, { "docid": "5485f1b45c52cbf5f1ed8b2540e16bc4", "score": "0.5177341", "text": "function readInputData() {\r\n\t\r\n\t\t$this->readUserVars(array('aboutFileNames', 'aboutFileDescriptionArray','type', 'aboutFile'));\r\n\t}", "title": "" }, { "docid": "cb1ba642a584b24a8d2e41fbf081cbcc", "score": "0.5149918", "text": "function readinput() {\n\n // get number of employees and cashbox balance \n $cashbox_bal = readline(\"Cashbox balance: \");\n $no_of_emps = readline(\"Employees Number: \");\n\n for($i = 0; $i < $no_of_emps; $i++) {\n $emp = readline(\"Employee's data (emp_no emp_type salary loan incentive)\");\n $emps[] = $emp;\n }\n }", "title": "" }, { "docid": "73d5ff6a3f23fc25f8a7fba55b441a7c", "score": "0.5142556", "text": "function readInputData() {\n\t\t$this->readUserVars(array('selectionType',\n\t\t\t\t\t\t\t\t'monographId',\n\t\t\t\t\t\t\t\t'reviewType',\n\t\t\t\t\t\t\t\t'round',\n\t\t\t\t\t\t\t\t'reviewerId',\n\t\t\t\t\t\t\t\t'personalMessage',\n\t\t\t\t\t\t\t\t'responseDueDate',\n\t\t\t\t\t\t\t\t'reviewDueDate'));\n\t\t\n\t\tif($this->getData('selectionType') == 'createNew') {\n\t\t\t$this->readUserVars(array('firstName',\n\t\t\t\t\t\t\t\t'middleName',\n\t\t\t\t\t\t\t\t'lastName',\n\t\t\t\t\t\t\t\t'affiliation',\n\t\t\t\t\t\t\t\t'interestsKeywords',\n\t\t\t\t\t\t\t\t'username',\n\t\t\t\t\t\t\t\t'email',\n\t\t\t\t\t\t\t\t'sendNotify'));\n\t\t}\n\t}", "title": "" }, { "docid": "a300f44e3becd45121f140c6e5332349", "score": "0.5071316", "text": "function readInputData() {\n\t\t$this->readUserVars(array('gridId', 'rowId'));\n\t}", "title": "" }, { "docid": "874b3c54ea11b527847f22c0283d1f30", "score": "0.50566", "text": "function readInputData() {\n\t\t$this->readUserVars(array('name'));\n\t}", "title": "" }, { "docid": "5bd9f005ea3000c24ed365a478e1e80b", "score": "0.49674594", "text": "function readInputData() {\n\t\t$this->readUserVars(array(\n\t\t\t'selectedFiles',\n\t\t\t'responseDueDate',\n\t\t\t'reviewDueDate',\n\t\t));\n\t}", "title": "" }, { "docid": "f96d29092d4367357da907715d3c0423", "score": "0.4743129", "text": "function readInputData() {\n\t\t$this->readUserVars(array('enableUploadCode', 'uploadCode', 'thesisOrder', 'thesisName', 'thesisEmail', 'thesisPhone', 'thesisFax', 'thesisMailingAddress', 'thesisIntroduction'));\n\n\t\tif (!empty($this->_data['enableUploadCode'])) {\n\t\t\t$this->addCheck(new FormValidator($this, 'uploadCode', 'required', 'plugins.generic.thesis.settings.uploadCodeRequired'));\n\t\t}\n\t}", "title": "" }, { "docid": "e0dee38f6b66b8e863d23ec125f9c0cb", "score": "0.47015113", "text": "function readInputData() {\n\t\t$this->readUserVars(array('phpmvUrl', 'phpmvSiteId'));\n\t}", "title": "" }, { "docid": "2153cb36a9e565854aaf7f3e2a935a5c", "score": "0.46843374", "text": "function read_stream(){\n global $array_stream;\n $array_key = 0;\n $array_stream = stream_get_contents(STDIN);\n $array_stream = str_split($array_stream);\n\n foreach ($array_stream as $keyMod => $valueMod) { //cut white space before .IPPcode19 header\n if(preg_match('/^\\S$/', $valueMod)){\n break;\n } else unset($array_stream[$keyMod]);\n }\n if(empty($array_stream)){\n fwrite(STDERR, \"ERROR : Input doesn't start with .IPPcode19 header\\n\");\n exit(21);#appropriate exit code\n }\n global $key_val;\n global $c_commentary;\n $c_commentary = 0;\n $key_val = $keyMod;\n }", "title": "" }, { "docid": "9af0e8bac91aa6920268064c62e9683b", "score": "0.4581106", "text": "function readInputData() {\n\t\t$this->readUserVars(array('navigationMenuItemId', 'content', 'title', 'path', 'url','menuItemType'));\n\t}", "title": "" }, { "docid": "9be09cb6d6bdc952e752b2779b51f984", "score": "0.45530865", "text": "function readInputData() {\n\t\t$userVars = array();\n\t\tforeach($this->_getNotificationSettingsMap() as $notificationSetting) {\n\t\t\t$userVars[] = $notificationSetting['settingName'];\n\t\t\t$userVars[] = $notificationSetting['emailSettingName'];\n\t\t}\n\n\t\t$this->readUserVars($userVars);\n\t}", "title": "" }, { "docid": "a2288d7082a5ac8e2bcded62b40b02bc", "score": "0.4502605", "text": "function input( $format = null ) {\n\treturn Streams::input( $format );\n}", "title": "" }, { "docid": "7ea42538c618252f7d3dd5106c49dcb9", "score": "0.4443481", "text": "public function read(Output $output, $prompt);", "title": "" }, { "docid": "04b9e287763b30654449c52001ec0ccd", "score": "0.44263837", "text": "function readInputData() {\n\t\t$this->readUserVars(\n\t\t\tarray(\n\t\t\t\t'notificationPaperSubmitted',\n\t\t\t\t'notificationMetadataModified',\n\t\t\t\t'notificationSuppFileModified',\n\t\t\t\t'notificationGalleyModified',\n\t\t\t\t'notificationSubmissionComment',\n\t\t\t\t'notificationReviewerComment',\n\t\t\t\t'notificationReviewerFormComment',\n\t\t\t\t'notificationDirectorDecisionComment',\n\t\t\t\t'notificationUserComment',\n\t\t\t\t'notificationNewAnnouncement',\n\t\t\t\t'emailNotificationPaperSubmitted',\n\t\t\t\t'emailNotificationMetadataModified',\n\t\t\t\t'emailNotificationSuppFileModified',\n\t\t\t\t'emailNotificationGalleyModified',\n\t\t\t\t'emailNotificationSubmissionComment',\n\t\t\t\t'emailNotificationReviewerComment',\n\t\t\t\t'emailNotificationReviewerFormComment',\n\t\t\t\t'emailNotificationDirectorDecisionComment', \n\t\t\t\t'emailNotificationUserComment',\n\t\t\t\t'emailNotificationNewAnnouncement'\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "319fdd71d973f1f51e2af511908082dc", "score": "0.4375694", "text": "function readInputData() {\n\t\t$this->readUserVars(\n\t\t\tarray(\n\t\t\t\t'tempFileId',\n\t\t\t\t'destination',\n\t\t\t\t'issueId',\n\t\t\t\t'pages',\n\t\t\t\t'sectionId',\n\t\t\t\t'authors',\n\t\t\t\t'primaryContact',\n\t\t\t\t'title',\n\t\t\t\t'abstract',\n\t\t\t\t'discipline',\n\t\t\t\t'subjectClass',\n\t\t\t\t'subject',\n\t\t\t\t'coverageGeo',\n\t\t\t\t'coverageChron',\n\t\t\t\t'coverageSample',\n\t\t\t\t'type',\n\t\t\t\t'language',\n\t\t\t\t'sponsor',\n\t\t\t\t'citations',\n\t\t\t\t'title',\n\t\t\t\t'abstract',\n\t\t\t\t'locale'\n\t\t\t)\n\t\t);\n\n\t\t$this->readUserDateVars(array('datePublished'));\n\n\t\t$sectionDao =& DAORegistry::getDAO('SectionDAO');\n\t\t$section =& $sectionDao->getSection($this->getData('sectionId'));\n\t\tif ($section && !$section->getAbstractsNotRequired()) {\n\t\t\t$this->addCheck(new FormValidatorLocale($this, 'abstract', 'required', 'author.submit.form.abstractRequired', $this->getData('locale')));\n\t\t}\n\t\t$this->addCheck(new FormValidatorLocale($this, 'title', 'required', 'author.submit.form.titleRequired', $this->getData('locale')));\n\t}", "title": "" }, { "docid": "78231effd83def53aa02cb616ffd7b63", "score": "0.43663195", "text": "function _parameter_histogram()\n {\n $beamlines = $this->_get_beamlines_from_type($this->ty);\n $bls = implode('\\', \\'', $beamlines);\n\n $types = array(\n 'energy' => array('unit' => 'eV', 'bin_size' => 200, 'col' => '(1.98644568e-25/(dc.wavelength*1e-10))/1.60217646e-19', 'count' => 'dc.wavelength'),\n 'beamsizex' => array('unit' => 'um', 'bin_size' => 5, 'col' => 'dc.beamsizeatsamplex*1000', 'count' => 'dc.beamsizeatsamplex'),\n 'beamsizey' => array('unit' => 'um', 'bin_size' => 5, 'col' => 'dc.beamsizeatsampley*1000', 'count' => 'dc.beamsizeatsampley'),\n 'exposuretime' => array('unit' => 'ms', 'bin_size' => 5, 'col' => 'dc.exposuretime*1000', 'count' => 'dc.exposuretime'),\n );\n\n $k = 'energy';\n $t = $types[$k];\n if ($this->has_arg('ty')) {\n if (array_key_exists($this->arg('ty'), $types)) {\n $k = $this->arg('ty');\n $t = $types[$k];\n }\n }\n\n $where = '';\n $args = array();\n\n if ($this->has_arg('bl')) {\n $where .= ' AND s.beamlinename=:' . (sizeof($args) + 1);\n array_push($args, $this->arg('bl'));\n }\n\n if ($this->has_arg('runid')) {\n $where .= ' AND vr.runid=:' . (sizeof($args) + 1);\n array_push($args, $this->arg('runid'));\n }\n\n $col = $t['col'];\n $ct = $t['count'];\n $binSize = $t['bin_size'];\n\n $hist = $this->db->pq(\"SELECT ($col div $binSize) * $binSize as x, count($ct) as y, s.beamlinename\n FROM datacollection dc \n INNER JOIN datacollectiongroup dcg ON dcg.datacollectiongroupid = dc.datacollectiongroupid\n INNER JOIN blsession s ON s.sessionid = dcg.sessionid\n INNER JOIN proposal p ON p.proposalid = s.proposalid\n INNER JOIN v_run vr ON s.startdate BETWEEN vr.startdate AND vr.enddate\n WHERE 1=1 $where AND s.beamlinename in ('$bls')\n GROUP BY s.beamlinename,x\n ORDER BY s.beamlinename\", $args);\n\n $min = null;\n $max = null;\n $bls = array();\n foreach ($hist as $h) {\n $bls[$h['BEAMLINENAME']] = 1;\n if (is_null($max) || $h['X'] > $max) $max = $h['X'];\n if (is_null($min) || $h['X'] < $min) $min = $h['X'];\n }\n $min = is_null($min) ? 0 : intval(floor($min/$binSize) * $binSize); // make min align with bin size, or 0 for no data\n\n $data = array();\n foreach ($bls as $bl => $y) {\n $ha = array();\n foreach ($hist as &$h) {\n if ($h['BEAMLINENAME'] != $bl)\n continue;\n $ha[$h['X']] = floatval($h['Y']);\n }\n\n $gram = array();\n for ($bin = $min; $bin <= $max; $bin += $binSize) {\n $gram[$bin] = array_key_exists($bin, $ha) ? $ha[$bin] : 0;\n }\n\n $lab = ucfirst($k) . ' (' . $t['unit'] . ')';\n if (!$this->has_arg('bl'))\n $lab = $bl . ': ' . $lab;\n\n array_push($data, array('label' => $lab, 'data' => $gram));\n }\n\n $this->_output(array('histograms' => $data));\n }", "title": "" }, { "docid": "b33281b7b25f7152e1e39511a7bb6948", "score": "0.42700365", "text": "abstract function get_input();", "title": "" }, { "docid": "d1aa7f720fdf7eb22a6a68b7469cc60f", "score": "0.42594022", "text": "abstract public function readFormInputData(int $input_type);", "title": "" }, { "docid": "4104c182ef5c5301c5be4b5c727aaf7f", "score": "0.4250449", "text": "private function calculateInputData() {\n\t\t$this->inputValuesSetRawData();\n\t\t$this->explodeRowsToCells();\n\t\t$this->separateHeader();\n\t\t$this->validateValues();\n\t}", "title": "" }, { "docid": "3a2c34539fc75725e2fa4b6b42621b95", "score": "0.4244384", "text": "function readInputData() {\n\t\t$this->readUserVars(array('title', 'description', 'journalPath', 'enabled'));\n\t\t$this->setData('enabled', (int)$this->getData('enabled'));\n\n\t\tif (isset($this->journalId)) {\n\t\t\t$journalDao =& DAORegistry::getDAO('JournalDAO');\n\t\t\t$journal =& $journalDao->getById($this->journalId);\n\t\t\t$this->setData('oldPath', $journal->getPath());\n\t\t}\n\t}", "title": "" }, { "docid": "69f4d7c38f3d9f9e363b4230671fdc60", "score": "0.42183542", "text": "function readInputData() {\n\t\t$this->readUserVars(array_keys($this->settings));\n\t\t\n\t\tif ($this->getData('supportedLocales') == null || !is_array($this->getData('supportedLocales'))) {\n\t\t\t$this->setData('supportedLocales', array());\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "a977c2ff39fa747d021ede3c5333fd18", "score": "0.41912836", "text": "private function input(){\n $this->params['controller_name'] = $this->ask('Controller name');\n $this->params['crud_url'] = $this->ask('CRUD url');\n $this->params['model_name'] = $this->ask('Model name');\n $this->params['table_name'] = $this->ask('Table name');\n $this->params['author'] = env('PACKAGE_AUTHOR');\n }", "title": "" }, { "docid": "5f28f03f52f5cfa89a8b5de3d8322400", "score": "0.41798386", "text": "private function readInput()\n {\n $this->urls = file(self::INPUT_URLS, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);\n $this->urls_count = sizeof($this->urls);\n }", "title": "" }, { "docid": "63cb037212577c10f16aa8b53afa37ed", "score": "0.4144487", "text": "abstract protected function input();", "title": "" }, { "docid": "771fda171faea4cbd1d2a76839f60cae", "score": "0.41182503", "text": "private function readInput()\n {\n $domain_parts = explode('.', $_SERVER['HTTP_HOST']);\n\n // explode input do different params\n $input = explode('u', $domain_parts[0]);\n\n // get request host\n unset($domain_parts[0]);\n $this->request['h'] = implode('.', $domain_parts);\n\n // decode params\n $input = array_map(function ($value) {\n\n return Converter::stringToNumber($value);\n },\n $input);\n\n $this->input = array_combine(array_keys($this->input), $input);\n\n }", "title": "" }, { "docid": "cc0a080f9fa5f8fdbdbf20a274f45bc5", "score": "0.41129327", "text": "public function readSTDIN() {\n\t\ttry {\n\t\t\t$string = NULL;\n\t\t\t$handle = fopen('php://stdin', 'r');\n\t\t\t\n\t\t\twhile (!feof($handle)) {\n\t\t\t\t$string .= fgets($handle, 1024);\n\t\t\t} //<-- end while -->\n\t\t\t\n\t\t\tfclose($handle);\n\t\t\t\n\t\t\tif (!$string) {\n\t\t\t\tthrow new Exception('No data read from STDIN.');\n\t\t\t} else {\n\t\t\t\treturn $string;\n\t\t\t} //<-- end if -->\n\t\t} catch (Exception $e) { \n\t\t\tthrow new Exception($e->getMessage().' from '.$this->className.'->'.\n\t\t\t\t__FUNCTION__.'() line '.__LINE__\n\t\t\t);\n\t\t} //<-- end try -->\n\t}", "title": "" }, { "docid": "3e8497fa41bf93f9a3a13ed00fb61830", "score": "0.41066492", "text": "function readline($prompt) {}", "title": "" }, { "docid": "90c3b031c1d95a52bfc2a3222c2ad83f", "score": "0.4099391", "text": "function handle_parameters($argv)\n{\n\t$short_opts = \"a\"; // Do not generate cols\n\t$short_opts .= \"b\"; // Group elements\n\t$short_opts .= \"g\"; // Relations option\n\n\t$long_opts = array(\"help\", // Prints help and exits program\n\t\t\"input::\", // Optional input file\n\t\t\"output::\", // Optional output file\n\t\t\"header::\", // Optional header text\n\t\t\"etc::\", // Optional max columns\n\t\t\"isvalid::\", // extension (validating of XML)\n\t);\n\n\tunset($argv[0]); // Unset script name in arguments\n\n\t$options = getopt($short_opts, $long_opts); // call getopt to parse args\n\n\tforeach($argv as $arg)\n\t\tif(!preg_match('/^(--((isvalid)|(input)|(output)|(header)|(etc))=.+)|(^-[abg]+)|(^--help+)/', $arg)) // regular expression to validate the correctness of the parameters\n\t\t\tprint_error(\"BAD_PARAM\", $arg . \" was not recognized as parameter.\");\n\n\tif(isset($options[\"etc\"]))\n\t{\n\t\tif(isset($options[\"b\"])) // --etc and -b can not be set together\n\t\t\tprint_error(\"PARAMS\", \"error: -b and --etc= are set together\");\n\n\t\t$options[\"etc\"] = intval($options[\"etc\"]);\n\t\tif(!is_int($options[\"etc\"])) // after --etc= there must be an int number\n\t\t\tprint_error(\"PARAMS\", \"etc value is not integer.\");\n\t}\n\n\tif(isset($options[\"help\"]))\n\t{\n\t\tif(!preg_match('/^--help+/', implode(\" \", $argv)))\n\t\t\tprint_help(1);\n\t\telse\n\t\t\tprint_help();\n\t}\n\n\tif(isset($options[\"input\"]))\n\t{\n\t\tif(!file_exists($input = $options[\"input\"])) //checking if input file exists\n\t\t{\n\t\t\tprint_error(\"INPUT\", $options[\"input\"] . \" can not be opened.\");\n\t\t}\n\t}\n\n\tif(isset($options[\"output\"]))\n\t{\n\t\tif($options[\"output\"] === $options[\"input\"]) // input and output can not be the same file\n\t\t\tprint_error(\"OUTPUT\", $options[\"output\"] . \" file is same for input and output.\");\n\t}\n\n\treturn $options;\n}", "title": "" }, { "docid": "4b82b6fa746b1af8157b1526ad9bf335", "score": "0.4064274", "text": "public static function ReadParamsFile(\n /* const char * */$file, // filename to read\n /* bool */$init_only, // only set parameters that need to be\n // initialized when Init() is called\n /* ParamsVectors * */$member_params) {\n\n }", "title": "" }, { "docid": "2d87aee11d59307483da59e0f9d12a5a", "score": "0.406351", "text": "protected function requireParameter(string $name)\n {\n $data = $this->request->input($name, null);\n if (is_null($data)) {\n throw new ParameterMissing($name);\n }\n return $data;\n }", "title": "" }, { "docid": "0fe82abc6843fcec9a55497317b6e41b", "score": "0.40453264", "text": "function informe($params) {\n\t\t $this->vista->addJS('highcharts','jquery.dataTable');\n $this->vista->setTitle('Informe de Participantes');\n if($this->params['cod_programa']){\n\t\t AppLoader::load_model('Reports/Estudiantes');\n\t\t $oInforme = new InformeEstudiantes($params['cod_programa']);\n\t\t $this->TEstudiante->Load('TEstado');\n\t\t $oInforme->nombreEstadoEstudiantes = $this->TEstudiante->TEstado->nombre($oInforme->EstadoEstudiantes);\n\t\t $this->vista->set('oInforme', $oInforme);\n\t\t }\n $this->vista->display();\n }", "title": "" }, { "docid": "8d29200a544a0fa561c0f53de3636f92", "score": "0.4020875", "text": "private function promptForDataFile()\n {\n do {\n $file = $this->inputter->ask(\"1) Data file (leave blank for default) [\" . static::$defaultDataFile . ']:');\n\n try {\n $this->searchEngine->loadData($file ?: static::$defaultDataFile);\n break;\n } catch (SearchEngineException $e) {\n $this->outputter\n ->say(\"\\n\")\n ->say('Aw, Snap!')\n ->say(\"\\n\")\n ->say($e->getMessage())\n ->say(\"\\n\\n\");\n }\n } while(true);\n }", "title": "" }, { "docid": "c36630461c6b39d72a2af7f4996b7e0a", "score": "0.39556587", "text": "public function testReadPspp2CheckOutput()\n {\n $mesg = 'Missing features. Check these files and the output of the reader:' . PHP_EOL\n . 'ls -al test/data/data/pspp1.2.0-phpspss4.0.0*';\n $this->markTestIncomplete( $mesg );\n\n $file = $this->_testsDir . '/data/pspp1.2.0-phpspss4.0.0.sav';\n $reader = \\SPSS\\Sav\\Reader::fromFile( $file )->read();\n\n// $actual = array(\n// 'header' => $reader->header,\n// 'documents' => $reader->documents,\n// 'variables' => $reader->variables,\n// 'valueLabels' => $reader->valueLabels,\n// 'info' => $reader->info,\n// );\n//\n// $expected = array(\n// 'header' => 'header',\n// 'documents' => 'documents',\n// 'variables' => 'variables',\n// 'valueLabels' => 'valueLabels',\n// 'info' => 'info',\n// );\n\n }", "title": "" }, { "docid": "52bff59ed321341613e4bc0222626df2", "score": "0.3939795", "text": "function getInputValues();", "title": "" }, { "docid": "8e81dbf49cb34ac3fa3698353d5a840c", "score": "0.3936124", "text": "public function onRead() {\n\t\tif (false === ($pct = $this->readExact($this->lowMark))) {\n\t\t\treturn; // not readed yet\n\t\t}\n\t\tif ($pct === \"<policy-file-request/>\\x00\") {\n\t\t\tif ($this->pool->policyData) {\n\t\t\t\t$this->write($p = $this->pool->policyData . \"\\x00\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->write(\"<error/>\\x00\");\n\t\t\t}\n\t\t}\n\t\t$this->finish();\n\t}", "title": "" }, { "docid": "e5259b5909d05b61eeaf0ddb9ea85871", "score": "0.39311585", "text": "public abstract function getSummaryData(array $inputs);", "title": "" }, { "docid": "439190d6d96916044f56cb152eb912ed", "score": "0.39286745", "text": "public function inputs();", "title": "" }, { "docid": "0f5c5ec44b000fb90b6338c3ade56577", "score": "0.39282563", "text": "public function setInput($input)\n {\n throw new Exception('pdftohtml does not support input via stdin.');\n }", "title": "" }, { "docid": "273e93f9c202d69c4119453d97dc7ebe", "score": "0.39252678", "text": "protected function setTableParams(InputInterface $input, OutputInterface $output, $configPart, $tableName)\n {\n $this->io->logInfo('Please input data for table <dbo>\\'%s\\'</dbo>.', $tableName);\n $question = sprintf('Audit table \\'%s\\' or not (y|(n)): ', $tableName);\n $question = new ConfirmationQuestion($question, false);\n\n $this->config[$configPart][$tableName]['audit'] = $this->helper->ask($input, $output, $question);\n }", "title": "" }, { "docid": "e2a200ef0ae8b60bbca5d98a42f6d104", "score": "0.3925198", "text": "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"StatisticalType\",$param) and $param[\"StatisticalType\"] !== null) {\n $this->StatisticalType = $param[\"StatisticalType\"];\n }\n\n if (array_key_exists(\"StatisticalCycle\",$param) and $param[\"StatisticalCycle\"] !== null) {\n $this->StatisticalCycle = $param[\"StatisticalCycle\"];\n }\n\n if (array_key_exists(\"Count\",$param) and $param[\"Count\"] !== null) {\n $this->Count = $param[\"Count\"];\n }\n\n if (array_key_exists(\"UpdateTime\",$param) and $param[\"UpdateTime\"] !== null) {\n $this->UpdateTime = $param[\"UpdateTime\"];\n }\n }", "title": "" }, { "docid": "8b467d6310cbe22a9473c25b26b98615", "score": "0.39188778", "text": "function getRawInputValues();", "title": "" }, { "docid": "30725849799b6958c4ee62449ae503f0", "score": "0.39161786", "text": "function plot_settings($type, $params=\"\", $ignore_invalid_type=False, $gs_file='graphsettings.xml'){\n $gs_global = fopen(\"/var/www/cinfdata/global_settings.xml\", 'r');\n $gs_global = fread($gs_global, filesize(\"/var/www/cinfdata/global_settings.xml\"));\n $gs_xml_global = new SimpleXMLElement($gs_global);\n\n # Put the system global defaults in settings\n $settings = xml_tree_to_assiciative_arrays($gs_xml_global);\n\n # Load user graphsettings\n $gs = fopen($gs_file, 'r');\n $gs = fread($gs, filesize($gs_file));\n $gs_xml = new SimpleXMLElement($gs);\n\n # Update the settings with the USER global settings\n $user_global_settings = xml_tree_to_assiciative_arrays($gs_xml->global_settings);\n $settings = array_replace($settings, $user_global_settings);\n \n # Update with the graph specific settings\n $type_found = False;\n foreach ($gs_xml->graph as $g) {\n if ($g['type'] == $type) {\n $specific_settings = xml_tree_to_assiciative_arrays($g);\n $settings = array_replace($settings, $specific_settings);\n $type_found = True;\n }\n }\n # Check if the graph type was valid\n if (!$type_found and !$ignore_invalid_type){\n return NULL;\n }\n \n \n if (gettype($params) == 'array'){\n foreach($settings as $s_key => $s_value){\n foreach($params as $p_key => $p_value){\n\t$settings[$s_key] = str_replace('{'.$p_key.'}', $p_value, $settings[$s_key]);\n }\n }\n }\n \n return $settings;\n }", "title": "" }, { "docid": "b11466d58240f19565b1b86d85362399", "score": "0.39149654", "text": "public function get_input()\n {\n }", "title": "" }, { "docid": "e04b0398638c8978522b3f18dda7ea17", "score": "0.39023614", "text": "private function extract_program_series($data) {\n $series = $episode = 0;\n\n if (preg_match('/^(\\d+)(\\/\\d+)?, series (\\d+)$/i', $data, $matches)) {\n $series = (int)$matches[3];\n $episode = (int)$matches[1];\n }\n\n return array($series, $episode);\n }", "title": "" }, { "docid": "25d356df7cf1ff1deefaa2e42fd20d66", "score": "0.3901107", "text": "function Opening()\n{\n ob_start();\n $header = \".IPPCODE19\";\n // hlavicka - odfiltrovani komentaru, bilych znaku a porovnani validni hlavicky\n $line_header = fgets(STDIN);\n $line_header = preg_replace('/#.*/','',$line_header); // odstraneni komentaru\n $line_header = preg_replace('/\\s+/', '', $line_header); // odtraneni bilych znaku\n $line_header = strtoupper($line_header);\n\n if (strcmp($line_header, $header) != 0)\n {\n fprintf (STDERR, \"Chyba - Chybna nebo chybejici hlavicka IPPcode19!\\n\");\n exit(21);\n }\n\n // hlavicka v poradku, tedy inicializovat xml\n echo \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<program language=\\\"IPPcode19\\\">\\n\";\n\n $number_of_instruction = 1; // inicializace counteru na instrukce\n while( $lines_reading = fgets(STDIN)) // cte radky vstupu, odfiltrovani mezer a komentaru, hlavicku uz necte\n {\n $lines_reading = preg_replace('/#.*/','',$lines_reading); // odstraneni komentaru\n\n if (($lines_reading == \"\") || ($lines_reading == \"\\n\")) // na radku po odstraneni komentare nic neni, tedy smazeme cely prazdny radek\n {\n continue;\n }\n\n $lines_reading = preg_replace('/\\s+/', ' ', $lines_reading); // odstraneni bilych znaku\n $instruction = array(); // ulozeni kazdeho radku s instrukci do pole\n $instruction = explode( ' ', trim($lines_reading) );\n controlInstruction($instruction, $number_of_instruction);\n\n $number_of_instruction++; // inkrementace counteru\n\n }\n}", "title": "" }, { "docid": "48ffe8d636e04de83a994e549c3c88ad", "score": "0.38978177", "text": "private static function getAndValidateStockBufferFromInput($inputData)\n {\n $inputStockBuffer = $inputData[AbstractConfigHelper::SETTINGS_STOCK_BUFFER_KEY];\n\n if (!isset($inputStockBuffer) || empty($inputStockBuffer)) {\n return 0;\n }\n\n if (!is_numeric($inputStockBuffer) || $inputStockBuffer < 0) {\n throw new ValidationException('When provided, Stock Buffer must be a non-negative number');\n }\n\n return (int) $inputStockBuffer;\n }", "title": "" }, { "docid": "083f6878f8c073d472394c5ab985b328", "score": "0.3897161", "text": "public static function input() {\n }", "title": "" }, { "docid": "c10fc74485902030582336514b65d5fe", "score": "0.3894003", "text": "private function readXY()\n {\n return [\n 'x' => $this->readDoubleL(Shapefile::FILE_SHP),\n 'y' => $this->readDoubleL(Shapefile::FILE_SHP),\n ];\n }", "title": "" }, { "docid": "bf5f528e3296406a19780c3ac5bf88b1", "score": "0.3878017", "text": "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"SecondaryInputId\",$param) and $param[\"SecondaryInputId\"] !== null) {\n $this->SecondaryInputId = $param[\"SecondaryInputId\"];\n }\n\n if (array_key_exists(\"LossThreshold\",$param) and $param[\"LossThreshold\"] !== null) {\n $this->LossThreshold = $param[\"LossThreshold\"];\n }\n\n if (array_key_exists(\"RecoverBehavior\",$param) and $param[\"RecoverBehavior\"] !== null) {\n $this->RecoverBehavior = $param[\"RecoverBehavior\"];\n }\n }", "title": "" }, { "docid": "1239bce21991b47b04bba14a73a786bc", "score": "0.38728824", "text": "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"MainInput\",$param) and $param[\"MainInput\"] !== null) {\n $this->MainInput = new StreamInputInfo();\n $this->MainInput->deserialize($param[\"MainInput\"]);\n }\n\n if (array_key_exists(\"BackupInput\",$param) and $param[\"BackupInput\"] !== null) {\n $this->BackupInput = new StreamInputInfo();\n $this->BackupInput->deserialize($param[\"BackupInput\"]);\n }\n\n if (array_key_exists(\"Outputs\",$param) and $param[\"Outputs\"] !== null) {\n $this->Outputs = [];\n foreach ($param[\"Outputs\"] as $key => $value){\n $obj = new StreamConnectOutput();\n $obj->deserialize($value);\n array_push($this->Outputs, $obj);\n }\n }\n }", "title": "" }, { "docid": "9e4ed88714b6ace65f3dbfae39d50d5b", "score": "0.38509163", "text": "function parseParams(&$input) {\n\tglobal $uwr_stats_aArt;\n\tglobal $uwr_stats_allParams;\n\tglobal $uwr_stats_fehler;\n\t\n\t$uwr_stats_fehler = FALSE;\n\n\t// get input args\n\t$aParams = explode(\"\\n\", $input); // ie 'website=http://www.whatever.com'\n\n\tforeach($aParams as $sParam) {\n\t\t$aParam = explode(\"=\", $sParam, 2); // ie $aParam[0] = 'website' and $aParam[1] = 'http://www.whatever.com'\n\t\tif( count( $aParam ) < 2 ) // no arguments passed\n\t\t\tcontinue;\n\n\t\t$sType = strtolower(trim($aParam[0])); // ie 'website'\n\t\t$sArg = trim($aParam[1]); // ie 'http://www.whatever.com'\n\n\t\tswitch ($sType) {\n\t\tcase 'start':\n\t\tcase 'ende':\n\t\t\tif ('ende' == $sType && 'heute' == $sArg) {\n\t\t\t\t$uwr_stats_allParams[$sType] = date('d.m.Y'); // 2012\n\t\t\t}\n\t\t\telse if (FALSE !== date_create($sArg)) {\n\t\t\t\t$uwr_stats_allParams[$sType] = $sArg; // 2012\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'saison':\n\t\t\t$test = (int) $sArg;\n\t\t\tif ($test > 1900 && $test < 2200) {\n\t\t\t\t$uwr_stats_allParams[$sType] = $sArg;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'name':\n\t\t\tif ('Gesamt' == $sArg || 'torschuetzen' == $sArg || 'torschuetzenS' == $sArg || 'mitspieler' == $sArg || 'gesamtbilanz' == $sArg || 'torschuetzenG' == $sArg) {\n\t\t\t\t$uwr_stats_allParams[$sType] = $sArg;\n\t\t\t} else {\n\t\t\t//if ($sArg != \"Gesamt\") {\n\t\t\t\t$rv = checkPlayerNames($sArg);\n\t\t\t\tif (! $rv) {\n\t\t\t\t\t$uwr_stats_fehler = TRUE;\n\t\t\t\t\treturn 'E3: Wert \"'.$sArg.'\" ist fuer \"name\" nicht erlaubt/unterstuetzt.';\n\t\t\t\t}\n\t\t\t\t$uwr_stats_allParams[$sType] = $sArg;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'target':\n\t\t\t$allowedTarget = array('Tore', 'Gegentore',\n\t\t\t\t\t\t\t\t'Gewonnen', 'Verloren', 'Unentschieden',\n\t\t\t\t\t\t\t\t'SerieG', 'SerieV', 'All', 'Turniere');\n\t\t\tif (in_array($sArg, $allowedTarget)) {\n\t\t\t\t$uwr_stats_allParams[$sType] = $sArg; // Tore\n\t\t\t} else {\n\t\t\t\t$uwr_stats_fehler = TRUE;\n\t\t\t\treturn 'E1: Wert \"'.$sArg.'\" ist fuer \"target\" nicht erlaubt/unterstuetzt.';\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'art':\n\t\t\t$allowedArt = array('LL', '2BL', 'BUL', 'REL',\n\t\t\t\t\t\t\t\t'JUN', 'JUG', 'BM', 'DM', 'CC',\n\t\t\t\t\t\t\t\t'BOT', 'FT');\n\t\t\t$uwr_stats_aArt = explode(\"+\", $sArg);\n\t\t\tforeach($uwr_stats_aArt as $ArtPruef) {\n\t\t\t\tif (! (in_array($ArtPruef, $allowedArt) || is_numeric($ArtPruef)) ) {\n\t\t\t\t $uwr_stats_fehler = TRUE;\n\t\t\t\t\treturn 'E2: Wert \"'.$ArtPruef.'\" ist fuer \"art\" nicht erlaubt/unterstuetzt.';\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tif ($uwr_stats_fehler) {\n\t\t\tprint 'Fehler in den Parametern.';\n\t\t\treturn false;\n\t\t}\n\t}\n\t// do not return anything - this function modifies a global variable\n}", "title": "" }, { "docid": "ef3c0f81c17215de1b89e18b385d9d52", "score": "0.38467652", "text": "public function readFormInputData(int $input_type): void\n {\n $this->data = [\n 'page_id' => filter_input($input_type, self::TARGET_PAGE_FIELD_NAME, FILTER_VALIDATE_INT) ?: 0,\n ];\n }", "title": "" }, { "docid": "e399d5f63ebebc38108df1b7b241934d", "score": "0.38422313", "text": "function readText(){\n $data = Utility::readText(\"number.txt\");\n return $data;\n }", "title": "" }, { "docid": "4361fa3eb23c51a3cea253e8e9a38b34", "score": "0.38369313", "text": "function clm_ext_request_int($input, $standard = 0) {\n\tif (!is_int($standard)) $standard = 0;\n\tif (isset($_GET[$input])) $value = $_GET[$input];\n\telseif (isset($_POST[$input])) $value = $_POST[$input];\n\telseif (isset($_REQUEST[$input])) $value = $_REQUEST[$input];\n\telseif (!class_exists('JFactory')) return $standard; // kein Joomla\n\telse {\n\t\t$app =JFactory::getApplication(); // nur nötig wegen Menüeintragstypen\n\t\t$xy = $app->input->getInt($input);\n\t\tif (!is_null($xy)) $value = $xy;\n\t\telse return $standard; \n\t}\n\tif (!is_numeric($value)) $result = $standard;\n\telse $result = (integer) $value;\n\treturn $result;\t\t\n}", "title": "" }, { "docid": "9ccc0789538557771d31fd3fef401b7b", "score": "0.38298672", "text": "function csv_to_JSON_with_trendline($input, $att_delimiter, $request)\n{\n\t$header= null;\n\t$data= array();\n\t$csvData= str_getcsv($input, \"\\n\");\n\t$markerData= array();\n\t$augmentedData= array();\n\tforeach($csvData as $csvLine){\n\t\tif(is_null($header)) {\n\t\t\t$header= explode($att_delimiter, $csvLine);\n\t\t\t//if trendline\n\t\t\t\t$tlHeader='Trend';\n\t\t\t\t$header[]=$tlHeader;\n\t\t\t//endif trendline\n\n\t\t}else{\n\t\t\t$items= explode($att_delimiter, $csvLine);\n\t\t\tfor($n= 0, $m= count($header); $n < $m; $n++){\n\t\t\t\t$items[$n]= trim($items[$n]);\n\t\t\t\t$markerData[$header[$n]]= $items[$n];\n\t\t\t}\n\n\t\t\t//if trendline\n\t\t\t\t$markerData['Trend']= 0;\n\n\t\t\t\t$augmentedData['X']= $items[0];\n\t\t\t\t$augmentedData['Y']= $items[1];\n\t\t\t\t$augmentedData['XY']=$items[0]*$items[1];\n\t\t\t\t$augmentedData['X2']=$items[0]*$items[0];\n\n\t\t\t\t$regData[]=$augmentedData;\n\t\t\t//endif trendline\n\n\t\t\t$data[]= $markerData;\n\t\t}\n\t}\n\t//if trendline\n\t\tforeach ($regData as $key => $row) {\n\t\t\t$X[$key] = $row['X'];\n\t\t\t$Y[$key] = $row['Y'];\n\t\t\t$XY[$key] = $row['XY'];\n\t\t\t$X2[$key] = $row['X2'];\n\t\t};\n\n\t\t$N=count($regData);\n\t\t$sumX=array_sum($X);\n\t\t$sumY=array_sum($Y);\n\t\t$sumXY=array_sum($XY);\n\t\t$sumX2=array_sum($X2);\n\n\t\t$b=($N*$sumXY-$sumX*$sumY)/($N*$sumX2-$sumX*$sumX);\n\t\t$a=($sumY-$b*$sumX)/$N;\n\n\t\tfor ($k=0;$k<count($data);$k++) {\n\t\t\t$data[$k]['Trend'] = $a+$b*$data[$k][$header[0]];\n\t\t};\n\t//endif trendline\n\t$JSONdata= json_encode($data, JSON_NUMERIC_CHECK);\n\treturn array($header, $JSONdata);\n}", "title": "" }, { "docid": "944c0d5cae2fce167535769533cc38a3", "score": "0.38288555", "text": "protected function getArguments()\n\t{\n\t\treturn [\n\t\t\t['file', InputArgument::REQUIRED, 'The OurAirports regions.csv file', null],\n\t\t];\n\t}", "title": "" }, { "docid": "1a6c10d0888b6fe59e915a7288b2d7f8", "score": "0.38251683", "text": "public function setParamExtendStd()\r\n {\r\n\t\treturn $this->setParamExtend(PARAM_KERNEL_PATH_PARAM_EXTEND_STD);\r\n\t}", "title": "" }, { "docid": "65177b22cd2ef597ee900534e5710c75", "score": "0.3823296", "text": "public function readStandardInput(){\n $fr = fopen(\"php://stdin\", \"r\"); //open file pointer to read from stdin\n $input = fgets($fr); //read 128 max characters\n $input = rtrim($input); //trim right\n fclose($fr); //close the file handle\n\n $this->routeCommand($input);\n }", "title": "" }, { "docid": "b93abe09b8098ba8fde08dce40b6a91c", "score": "0.3811557", "text": "private function sensorsReadTemp()\n {\n // python's script using to read data from sensors\n $cmd = \"python /home/eker/Pulpit/tmp.py \";\n // read pin numbers for each room\n foreach ($this->rooms as $key => $value) {\n $cmd .= (string)$value[0] . ' ';\n }\n // var_dump($cmd);\n // exec return string, getFloats changes it to floats array\n // $temps = $this->getFloats(exec($cmd));\n $temps = [20, 21, 22, 19, 19];\n $i = 0;\n // for each room set current temperature\n foreach ($this->rooms as $key => $value) {\n $this->rooms[$key][1] = $temps[$i++];\n }\n }", "title": "" }, { "docid": "5905812b7a8350f1714cb761e4b763e1", "score": "0.38072678", "text": "public function readArray(string $format = null, int $pipe = 1)\n {\n return $this->scanf($format, $pipe);\n }", "title": "" }, { "docid": "e9a653d18ba7defcadc3acb28a25c5dc", "score": "0.37906986", "text": "static public function getInt()\n {\n fscanf(STDIN,\"%d\\n\",$n);\n while(!is_numeric($n))\n {\n echo \"enter numeric value\".\"\\n\";\n fscanf(STDIN,\"%d\\n\",$n);\n }\n return $n; \n }", "title": "" }, { "docid": "b2887af5c5b1192331be6a52cf86e3cc", "score": "0.37832323", "text": "function get_input($upper = FALSE) \n{\n // Return filtered STDIN input\n // $upper=fgets($upper);\n return trim(fgets(STDIN));\n}", "title": "" }, { "docid": "3e041915aba6bad434b9a565ddead495", "score": "0.3782637", "text": "function profitandloss($period = NULL)\n\t{\n\t\t$data['nav_links'] = array('account/report/download/profitandloss' => 'Download CSV', 'account/report/printpreview/profitandloss' => 'Print Preview');\n\t\t$data['left_width'] = \"450\";\n\t\t$data['right_width'] = \"450\";\n\t\t$this->load->view('report/profitandloss', $data);\n\t\treturn;\n\t}", "title": "" }, { "docid": "a96f19e6950deb627fa925bfcb2f5389", "score": "0.3778139", "text": "private function _readInput() {\n $input = fopen('php://stdin', 'r');\n\n $message = fgets($input);\n return $this->_trigerMessage($message);\n }", "title": "" }, { "docid": "8e3a2e2690eb2409f1ba78922f9c45e5", "score": "0.377355", "text": "public function scanf(string $format, int $pipe = 1): array\n {\n return \\fscanf($this->getPipe($pipe), $format);\n }", "title": "" }, { "docid": "7bfccf02b325932c73dedcdb0a3cd471", "score": "0.37636977", "text": "public function readLine($prompt);", "title": "" }, { "docid": "ed5496de870844e695f5b3417e2e460d", "score": "0.37590212", "text": "function pre_exec_function()\n {\n $predefined_var = $this->_filter->filter_var_name('predefined_var');\n $type = str_replace('$', 'INPUT', $predefined_var);\n\n if (! defined($type) or constant($type) !== $this->_filter->filter_arg_value('type')) {\n // the variable and type mismatch, resets the data\n $this->returned_params['data'] = [];\n }\n\n parent::pre_exec_function();\n }", "title": "" }, { "docid": "741ab7868168dc846caeb9a43a65e674", "score": "0.37534213", "text": "function readInputData() {\n $this->readUserVars(array('dvnUri', 'username', 'password'));\n $request =& PKPApplication::getRequest();\n $password = $request->getUserVar('password');\n if ($password === DATAVERSE_PLUGIN_PASSWORD_SLUG) {\n $plugin =& $this->_plugin;\n $password = $plugin->getSetting($this->_journalId, 'password');\n }\n $this->setData('password', $password);\n }", "title": "" }, { "docid": "f13eaf32dc69f6559e218a105e346aa2", "score": "0.3746722", "text": "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"SpecName\",$param) and $param[\"SpecName\"] !== null) {\n $this->SpecName = $param[\"SpecName\"];\n }\n\n if (array_key_exists(\"MaxTps\",$param) and $param[\"MaxTps\"] !== null) {\n $this->MaxTps = $param[\"MaxTps\"];\n }\n\n if (array_key_exists(\"MaxBandWidth\",$param) and $param[\"MaxBandWidth\"] !== null) {\n $this->MaxBandWidth = $param[\"MaxBandWidth\"];\n }\n\n if (array_key_exists(\"MaxNamespaces\",$param) and $param[\"MaxNamespaces\"] !== null) {\n $this->MaxNamespaces = $param[\"MaxNamespaces\"];\n }\n\n if (array_key_exists(\"MaxTopics\",$param) and $param[\"MaxTopics\"] !== null) {\n $this->MaxTopics = $param[\"MaxTopics\"];\n }\n\n if (array_key_exists(\"ScalableTps\",$param) and $param[\"ScalableTps\"] !== null) {\n $this->ScalableTps = $param[\"ScalableTps\"];\n }\n }", "title": "" }, { "docid": "470c85ba594fd56cfb166e778e42595a", "score": "0.3742292", "text": "public function getInputValues();", "title": "" }, { "docid": "470c85ba594fd56cfb166e778e42595a", "score": "0.3742292", "text": "public function getInputValues();", "title": "" }, { "docid": "7c5678656f5f470fa3f0b29e5dbc75e6", "score": "0.37401733", "text": "abstract protected function getInput();", "title": "" }, { "docid": "15ba58bfda6731f99480316032055324", "score": "0.37300587", "text": "function read_stdin()\n{\n $fr=fopen(\"php://stdin\",\"r\"); \n $input = fgets($fr,128); \n $input = trim($input); \n fclose ($fr); \n return $input; \n}", "title": "" }, { "docid": "06f5ab011de99a36ab5049f9be205beb", "score": "0.37297645", "text": "protected function getArguments()\n {\n return array(\n array('filename', InputArgument::REQUIRED, 'Filename to load.'),\n );\n }", "title": "" }, { "docid": "9b07ca11f574b1f634ef7acf8655aac0", "score": "0.37293038", "text": "function dataExtractor() {\n\t\t$expFileName = explode('.',mb_strtolower($_FILES['datafile']['name']));\n\t\t$numexp = count($expFileName);\n\n\t\tswitch($expFileName[$numexp-1]) {\n\n\t\tcase 'vol':\n\t\t\t$volLen = strlen($this->userFileContent);\n\t\t\t$nrCur = unpack('S',substr($this->userFileContent,0,2));\n\t\t\t$nrCur = $nrCur[1];\n\t\t\t//$tmp='';\n\t\t\tfor ( $i=0; $i<$nrCur; ++$i ) {\n\t\t\t\t//unset($tmp);\n\t\t\t\t$curveName[$i] = substr($this->userFileContent,2+$i*10+($i*2) , 10);\n\t\t\t\t$curveName[$i] = substr($curveName[$i],0,strpos($curveName[$i],\"\\0\"));\n\t\t\t}\n\n\t\t\tfor ( $pa=0;$pa<60/*il parametrow*/;++$pa) {\n\t\t\t\t$tmp = unpack('l',substr($this->userFileContent, 2/*il krz*/ + (50*12)/*nazwy*/ + ($pa*4), 4));\n\t\t\t\tfor ( $cn=0;$cn<$nrCur;++$cn )\n\t\t\t\t\t$curveParams[$cn][$pa] = $tmp[1];\n\t\t\t}\n\n\t\t\tfor ($ii = 2+$i*10+($i*2);$ii<$volLen; ++$ii) {\n\t\t\t\tfor ( $iii=0;$iii<$nrCur;++$iii) {\n\t\t\t\t\tif ( substr($this->userFileContent,$ii,(strlen($curveName[$iii])+1)) == $curveName[$iii] . \"\\0\" )\n\t\t\t\t\t\t$curveStart[$iii] = $ii-2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$curValues = array();\n\t\t\t$curValues['Y'] = new splFixedArray($nrCur);\n\t\t\t$curValues['X'] = new splFixedArray(1);\n\n\t\t\tfor ( $i=0;$i<$nrCur;++$i) {\n\t\t\t\t$readpos = $curveStart[$i];\n\t\t\t\t$curNums[$i] = unpack('S',substr($this->userFileContent,$readpos, 2)); //numer krzywej\n\t\t\t\t$readpos += 2 /*z numeru krzywej*/;\n\t\t\t\tif ( substr($this->userFileContent,$readpos,(strlen($curveName[$i])+1)) != $curveName[$i] . \"\\0\" )\n\t\t\t\t\tthrow new Exception('Error while reading file');\n\t\t\t\t$readpos += 10; //nazwa\n\t\t\t\t$curComments[$i] = substr($this->userFileContent, $readpos, strpos(substr($this->userFileContent,$readpos), \"\\0\")-1);\n\t\t\t\t$readpos += 50; //komentarz\n\t\t\t\t$tmp = unpack('S', substr($this->userFileContent, $readpos, 2));\n\t\t\t\t$readpos += 2;\n\t\t\t\t$diffpar = $tmp[1];\n\t\t\t\t$num=0;\n\t\t\t\tfor ( $p=0;$p<$diffpar;++$p) {\n\t\t\t\t\t$pNum = unpack('S',substr($this->userFileContent,$readpos,2));\n\t\t\t\t\t$readpos += 2;\n\t\t\t\t\t$pVal = unpack('l',substr($this->userFileContent,$readpos,4));\n\t\t\t\t\t$readpos += 4;\n\t\t\t\t\t$curveParams[$i][$pNum[1]] = $pVal[1];\n\t\t\t\t}\n\t\t\t\tif ( $i == 0 ) {\n\t\t\t\t\t$nrofpoints = $curveParams[$i][16];// 16. parametr to ilość punktów //\n\t\t\t\t\t$cyclic = $curveParams[$i][4];\n\t\t\t\t} else if ( $nrofpoints != $curveParams[$i][16] || $cyclic != $curveParams[$i][4] ) {\n\t\t\t\t\tthrow new Exception('Measurement paramters have to be the same for all curves in file.');\n\t\t\t\t}\n\t\t\t\tif ( $curveParams[$i][4] >= 1 ) {\n\t\t\t\t\t$curValues['X'][0] = new splFixedArray(2*$nrofpoints); // 2*if it is CV //\n\t\t\t\t\t$curValues['Y'][$i] = new splFixedArray(2*$nrofpoints); // 2*if it is CV //\n\t\t\t\t} else {\n\t\t\t\t\t$curValues['X'][0] = new splFixedArray($nrofpoints);\n\t\t\t\t\t$curValues['Y'][$i] = new splFixedArray($nrofpoints);\n\t\t\t\t}\n\t\t\t\t$Estart = $curveParams[$i][9];\n\t\t\t\t$Eend = $curveParams[$i][10];\n\t\t\t\t$Estep = ($curveParams[$i][10] - $curveParams[$i][9]) / $nrofpoints;\n\t\t\t\t$num = 0;\n\t\t\t\t$limit = $readpos+($nrofpoints*8);\n\t\t\t\tfor ( $readpos=$readpos;$readpos<$limit;$readpos+=8 ) {\n\t\t\t\t\t$tmp = unpack('d',substr($this->userFileContent,$readpos, 8));\n\t\t\t\t\t$curValues['Y'][$i][$num] = $tmp[1];\n\t\t\t\t\t$curValues['X'][0][$num] = $Estart + ($num*$Estep);\n\t\t\t\t\t$num++;\n\t\t\t\t\tif ($num > $nrofpoints) \n\t\t\t\t\t\tthrow new Exception('Exception on readpos: ' . $readpos);\n\t\t\t\t}\n\t\t\t\t$pts_1w=$num;\n\t\t\t\tif ( $curveParams[$i][4] >= 1 /*krzywa cykliczna*/ ) {\n\t\t\t\t\t$limit = $readpos+($nrofpoints*8);\n\t\t\t\t\t$np = 0;\n\t\t\t\t\tif ( isset($mirror) )\n\t\t\t\t\t\tunset($mirror);\n\t\t\t\t\tfor ( $readpos=$readpos;$readpos<$limit;$readpos+=8 ) {\n\t\t\t\t\t\t$tmp = unpack('d',substr($this->userFileContent,$readpos, 8));\n\t\t\t\t\t\t$mirror[$np]=$tmp[1];\n\t\t\t\t\t\t$np++;\n\t\t\t\t\t\t$curValues['X'][0][$num] = $Eend - (($num-$pts_1w)*$Estep); //TODO: BLAD\n\t\t\t\t\t\t$num++;\n\t\t\t\t\t\tif ($num > 2*$nrofpoints)\n\t\t\t\t\t\t\tthrow new Exception('Exception on readpos: ' . $readpos);\n\t\t\t\t\t}\n\t\t\t\t\t$nppp = 0;\n\t\t\t\t\tfor ( $npp=($np-1);$npp>=0;$npp--) {\n\t\t\t\t\t\t$curValues['Y'][$i][$pts_1w+$nppp] = $mirror[$npp];\n\t\t\t\t\t\t$nppp++;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $curveParams[0][4] >=1 )\n\t\t\t\t$this->isCV = 1;\n\t\t\telse\n\t\t\t\t$this->isCV = 0;\n\n\t\t\tswitch ($curveParams[0][0]) {\n\t\t\tcase 0:\n\t\t\t\t$this->voltType='SCV';\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t$this->voltType='NPV';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->voltType='DPV';\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->voltType='SWV';\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->voltType='LSV';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->voltType='UNKNOWN';\n\t\t\t}\n\n\t\t\t$curValues['ParamsFromFile'] = $curveParams;\n\t\t\t$curValues['Names'] = array_map('trim',$curveName);\n\t\t\t$curValues['Comments'] = array_map('trim',$curComments);\n\t\t\treturn $curValues;\n\n\t\tcase 'csv': //EXTRACT FROM CSV\n\t\t\t$rowed=explode(\"\\n\",str_replace(\"\\r\",'',$this->userFileContent));\n\t\t\tif ( empty($rowed[count($rowed)-1]) ) // check if last is empty\n\t\t\t\tunset($rowed[count($rowed)-1]); //delete if is empty\n\t\t\t$csv = array_map('str_getcsv', $rowed); //convert from csv to array each row\n\t\t\t$rows = count($csv);\n\t\t\t$cols = count($csv[0]);\n\t\t\tunset($this->userFileContent); //free memory\n\t\t\t$rawArrayData = new stdClass();\n\t\t\tif ( $this->firstIsE == true && $cols > 1 ) {\n\t\t\t\t$br=0;\n\t\t\t\tfor ($i=0;$i<$rows;$i++) {\n\t\t\t\t\tfor ( $t=1;$t<$cols;$t++ )\n\t\t\t\t\t\t$rawArrayData['X'][0][$i] = $csv[$i][0]; //first col should be potential\n\t\t\t\t}\n\t\t\t\tfor ( $i=1; $i<$cols; $i++ ) {\n\t\t\t\t\tfor ( $ii=0; $ii<$rows; $ii++ ) {\n\t\t\t\t\t\t$rawArrayData['Y'][$i-1][$ii] = $csv[$ii][$i]; //remaining should be current\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} elseif ( $this->firstIsE == true && $cols < 2) {\n\t\t\t\tthrow new Exception('First col is E, but data has one col');\n\t\t\t} else {\n\t\t\t\tfor ( $i=0;$i<$cols;$i++) {\n\t\t\t\t\tfor ($ii=0;$ii<$rows;$i++) {\n\t\t\t\t\t\t$rawArrayData['Y'][$i][$ii] = $csv[$ii][$i]; //all cols are current\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( $this->isCV === 1 )\n\t\t\t\t\t$step = ($_POST['to_E'] - $_POST['from_E']) / 0.5*$rows; //generate potential step\n\t\t\t\telse\n\t\t\t\t\t$step = ($_POST['to_E'] - $_POST['from_E']) / $rows; //generate potential step\n\t\t\t\t\n\t\t\t\t$iter = 0;\n\t\t\t\tfor ( $i=$_POST['from_E'];$i<=$_POST['to_E'];$i=$i+$step ) {\n\t\t\t\t\tfor ($t=0;$t<$cols;$t++)\n\t\t\t\t\t\t$rawArrayData['X'][0][$iter]=$i;//fill in potential \n\t\t\t\t\t$iter++;\n\t\t\t\t}\n\t\t\t\tif ( $this->isCV === 1 ) {\n\t\t\t\t\tfor ( $i=$_POST['to_E'];$i>=$_POST['from_E'];$i=$i-$step ) {\n\t\t\t\t\t\tfor ($t=0;$t<$cols;$t++)\n\t\t\t\t\t\t\t$rawArrayData['X'][0][$iter]=$i;//fill in potential \n\t\t\t\t\t\t$iter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $rawArrayData;\n\t\t\t//EXTRACTED FROM CSV\n\n\t\tcase 'txt': // EXTRACT from EALAB txt\n\t\t\t$rows=explode(\"\\n\",str_replace(\"\\r\",'',$this->userFileContent));\n\t\t\tunset($this->userFileContent);\n\t\t\tif ( !isset($rows[0]) )\n\t\t\t\tthrow new Exception('Cant get rows');\n\t\t\t\t\n\t\t\tif ( substr_count($rows[0],';') > 1 ) {\n\t\t\t\t$separator = ';';\n\t\t\t} elseif ( substr_count($rows[0],\"\\t\" ) > 1 ) {\n\t\t\t\t$separator = \"\\t\";\n\t\t\t} elseif ( substr_count($rows[0],' ') > 1 ) {\n\t\t\t\t$separator = ' ';\n\t\t\t} elseif ( substr_count($rows[0],',') > 1 ) {\n\t\t\t\t$separator = ',';\n\t\t\t} else {\n\t\t\t\tthrow new Exception('Could not find separator');\n\t\t\t}\n\n\t\t\t$rawArrayData = new stdClass();\n\t\t\t$numrow = count($rows);\n\t\t\t$hack = 0;\n\n\t\t\tfor ( $i=0;$i<$numrow;$i++) {\n\t\t\t\t$rows[$i] = trim(preg_replace( \"/\\s+/\", \" \", trim($rows[$i]) ));\n\t\t\t\t$expRow = explode($separator,$rows[$i]);\n\t\t\t\t$numinrow = count($expRow);\n\t\t\t\tfor ( $ii=0;$ii<$numinrow;$ii++) {\n\t\t\t\t\tif ( is_numeric($expRow[$ii]) ) {\n\t\t\t\t\t\tif ( $ii == 0 && $this->firstIsE == true ) {\n\t\t\t\t\t\t\tfor ( $t=1;$t<$numinrow;$t++ )\n\t\t\t\t\t\t\t\t$rawArrayData['X'][0][$i] = (float) trim($expRow[$ii]);\n\t\t\t\t\t\t} elseif ( $ii != 0 && $this->firstIsE == true ) {\n\t\t\t\t\t\t\t$rawArrayData['Y'][$ii-1][$i] = (float) trim($expRow[$ii]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$rawArrayData['Y'][$ii][$i] = (float) trim($expRow[$ii]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tunset($rows[$i]);\n\t\t\t}\n\n\t\t\tif ( $this->firstIsE == false ) {\n\t\t\t\tif ( $this->isCV === 1 )\n\t\t\t\t\t$step = ($_POST['to_E'] - $_POST['from_E']) / (0.5*count($rawArrayData['Y'][0])); //generate potential step\n\t\t\t\telse\n\t\t\t\t\t$step = ($_POST['to_E'] - $_POST['from_E']) / count($rawArrayData['Y'][0]); //generate potential step\n\t\t\t\t\n\t\t\t\t$iter = 0;\n\t\t\t\tfor ( $i=$_POST['from_E'];$i<=$_POST['to_E'];$i=$i+$step ) {\n\t\t\t\t\tfor ($t=0;$t<$numinrow;$t++)\n\t\t\t\t\t\t$rawArrayData['X'][0][$iter]=$i;//fill in potential \n\t\t\t\t\t$iter++;\n\t\t\t\t}\n\t\t\t\tif ( $this->isCV === 1 ) {\n\t\t\t\t\tfor ( $i=$_POST['to_E'];$i>=$_POST['from_E'];$i=$i-$step ) {\n\t\t\t\t\t\tfor ($t=0;$t<$numinrow;$t++)\n\t\t\t\t\t\t\t$rawArrayData['X'][0][$iter]=$i;//fill in potential \n\t\t\t\t\t\t$iter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $rawArrayData;\n\t\t\t// EXTRACTED FROM EALAB TXT\n\n\t\tdefault:\n\t\t\tthrow new Exception('Unhandled extension');\n\t\t}\n\t}", "title": "" }, { "docid": "225c1c88340a4e9db208aa084d63f35f", "score": "0.37246144", "text": "private function readZ()\n {\n $z = $this->readDoubleL(Shapefile::FILE_SHP);\n return $this->getOption(Shapefile::OPTION_SUPPRESS_Z) ? [] : ['z' => $z];\n }", "title": "" }, { "docid": "725935b50e2191e987c3aa7bc44ac29b", "score": "0.37235317", "text": "public static function readFloat()\n {\n $res = filter_var(self::readLine(), FILTER_VALIDATE_FLOAT);\n \n if($res === false)\n throw new Exception(\"valor invalido\");\n \n return $res;\n }", "title": "" }, { "docid": "a143c9cf92517f9f536f31f2b4aaf782", "score": "0.37230232", "text": "protected function getFirstDataLine()\n {\n return 2;\n }", "title": "" }, { "docid": "7a1deac28a8219e204b4b4bc27c2811f", "score": "0.37194994", "text": "function pre_exec_function()\n {\n $this->_function_params->set_param('variable', null);\n\n // creates the corresponding input type, eg \"INPUT_POST\", from the variable name, eg \"$_POST\",\n $predefined_var = $this->_filter->filter_var_name('predefined_var');\n $type = str_replace('$', 'INPUT', $predefined_var);\n\n if (! defined($type) or constant($type) !== $this->_filter->filter_arg_value('type')) {\n // the variable and type mismatch, resets the data\n $this->returned_params['data'] = [];\n\n } else if ($variable_name = $this->_filter->filter_arg_value('variable_name') and\n $data = $this->_filter->filter_arg_value('data') and\n isset($data[$variable_name]))\n {\n // there is data for that variable name, sets the variable\n $this->returned_params['variable'] = $data[$variable_name];\n }\n\n parent::pre_exec_function();\n }", "title": "" }, { "docid": "8e270d3610699ecd7c0271c1016e4b8d", "score": "0.3718466", "text": "function fit2number($fit_string){\n switch ($fit_string){\n case 'loose':\n return 1; break;\n case 'fit':\n return 4; break;\n case 'tight':\n return 5; break;\n case 'N/A':\n \t\treturn 3; break;\n }\n\n }", "title": "" }, { "docid": "8ad89a2a38d93afa9809f6ec33a1b10e", "score": "0.37165773", "text": "function read( $default = '' ) {\n\t$v = trim( fgets( STDIN ) );\n\treturn $v ? $v : $default;\n}", "title": "" }, { "docid": "63ce67aab653950aa0750cd86a9dccfc", "score": "0.37155047", "text": "protected function readParams() {\n global $TYPO3_DB;\n $this->authCode = $TYPO3_DB->quoteStr(t3lib_div::_GET('c'));\n $this->linkType = $TYPO3_DB->quoteStr(t3lib_div::_GET('t'));\n $this->linkId = intval(t3lib_div::_GET('l'));\n $this->sendId = intval(t3lib_div::_GET('s'));\n }", "title": "" }, { "docid": "7d60f86b3c3e26f92317af641433bd60", "score": "0.3712591", "text": "private function readM()\n {\n $m = $this->readDoubleL(Shapefile::FILE_SHP);\n return $this->getOption(Shapefile::OPTION_SUPPRESS_M) ? [] : ['m' => $this->parseM($m)];\n }", "title": "" }, { "docid": "35bf662286fea8534864d401482d85a8", "score": "0.37046796", "text": "public function loadData($cardinality = 1) {\n $par_data_organisation = $this->getFlowDataHandler()->getParameter('par_data_organisation');\n $trading_name_delta = $this->getFlowDataHandler()->getParameter('trading_name_delta');\n if ($par_data_organisation) {\n // Store the current value of the trading name if it's being edited.\n $trading_name = $par_data_organisation ? $par_data_organisation->get('trading_name')->get($trading_name_delta) : NULL;\n\n if ($trading_name) {\n $this->getFlowDataHandler()->setFormPermValue(\"trading_name\", $trading_name->getString());\n }\n }\n\n parent::loadData();\n }", "title": "" }, { "docid": "6c8e25bc39b2c68d4fb9892199a64f4d", "score": "0.3704055", "text": "private function set_biometric_data($arr){\r\n\t\t$err=null;\r\n\t\ttry{\r\n \t\t$hf=$this->vc->exists('height_ft',$arr,\"integer\",array(\"rangex_low\"=>0,\"rangex_high\"=>8),true,false);\r\n \t\t$hi=$this->vc->exists('height_in',$arr,\"integer\",array(\"range_low\"=>0,\"rangex_high\"=>12),true,false);\r\n \t\t\r\n \t\t$this->data['biometric_data']['height']=($hf*12)+$hi;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please select your height in feet and inches\";\r\n \t\t$eob->name = \"Height\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('weight',$arr,\"numeric\",array(\"rangex_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['weight']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter you weight in pounds\";\r\n \t\t$eob->name = \"Weight\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('bp_systolic',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['bp_systolic']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your blood pressure systolic value\";\r\n \t\t$eob->name = \"Systolic\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('bp_diastolic',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['bp_diastolic']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for you blood pressure diastolic value\";\r\n \t\t$eob->name = \"Diastolic\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('body_fat',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['body_fat']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your percent body fat\";\r\n \t\t$eob->name = \"Percent Body Fat\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\r\n \t$height=$this->data['biometric_data']['height'];\r\n \tif($height>0){\r\n \t\t\t$this->data['biometric_data']['bmi']=($this->data['biometric_data']['weight']*703)/pow($height,2);\r\n \t}else{\r\n \t\t\t$this->data['biometric_data']['bmi']=0;\r\n \t}\r\n \t\t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('waist',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['waist']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your waist circumference in inches\";\r\n \t\t$eob->name = \"Waist size\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n \ttry{\r\n \t\t$v=$this->vc->exists('blood_glucose',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['blood_glucose']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your blood glucose level\";\r\n \t\t$eob->name = \"Blood Glucose\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('hemoglobin',$arr,\"numeric\",array(\"precision\"=>\"3,3\"),true,false);\r\n \t\t$this->data['biometric_data']['hemoglobin']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number of your blood hemoglobin level\";\r\n \t\t$eob->name = \"Hemoglobin\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('cotinine',$arr,\"numeric\",array(\"precision\"=>\"3,3\"),true,false);\r\n \t\t$this->data['biometric_data']['cotinine']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your blood cotinine (nicotine) level\";\r\n \t\t$eob->name = \"Cotinine\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n \ttry{\r\n \t\t$v=$this->vc->exists('cholesterol',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['cholesterol']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your total cholesterol level\";\r\n \t\t$eob->name = \"Total cholesterol\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('triglycerides',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['triglycerides']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your level of triglycerides\";\r\n \t\t$eob->name = \"Triglycerides\";\r\n \t\t$err[] = $eob;\r\n \t} \t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('hdl',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['hdl']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your HDL cholesterol level\";\r\n \t\t$eob->name = \"HDL\";\r\n \t\t$err[] = $eob;\r\n \t} \t \t\r\n\t\ttry{\r\n \t\t$v=$this->vc->exists('ldl',$arr,\"numeric\",array(\"range_low\"=>0),true,false);\r\n \t\t$this->data['biometric_data']['ldl']=($v==\"\")?0:$v;\r\n \t}catch(ValidationException $e){\r\n \t\t$eob=$e->createErrorObject();\r\n \t\t$eob->message = \"Please enter a number for your LDL cholesterol level\";\r\n \t\t$eob->name = \"LDL\";\r\n \t\t$err[] = $eob;\r\n \t}\r\n \treturn ($err)?$err:false;\r\n\t}", "title": "" }, { "docid": "65f38198e00b3e65bedcff2f425bea30", "score": "0.37022078", "text": "function fgets_u($pStdn)\n{\n\t$pArr = array($pStdn);\n\n\tif (false === ($num_changed_streams = stream_select($pArr, $write = NULL, $except = NULL, 0))) {\n\t\tprint(\"\\$ 001 Socket Error : UNABLE TO WATCH STDIN.\\n\");\n\n\t\treturn FALSE;\n\t} elseif ($num_changed_streams > 0) {\n\t\treturn trim(fgets($pStdn, 1024));\n\t}\n\treturn null;\n}", "title": "" }, { "docid": "b83ad9ce4e7697d1fe6ea8529ad8b667", "score": "0.3699247", "text": "public function getInputs();", "title": "" }, { "docid": "b83ad9ce4e7697d1fe6ea8529ad8b667", "score": "0.3699247", "text": "public function getInputs();", "title": "" }, { "docid": "7a7e4a2efe1b8225b3fd6b91ec03d325", "score": "0.36985114", "text": "function process_data() {\n $employees = array_map('str_getcsv', file($this->import_file_handle));\n if (in_array(\"employee\", $employees[0])) {\n array_shift($employees);\n }\n \n $this->process_output_csv($employees);\n }", "title": "" }, { "docid": "689ba806c7a63138d5732f597728766a", "score": "0.3698231", "text": "protected function callParentGetInputSpecification()\n {\n return parent::getInputSpecification();\n }", "title": "" }, { "docid": "f4cd1ed969c65bb7e2f5691213f71f12", "score": "0.36947888", "text": "function getParams() {\n global $config;\n\n if (isset($_GET['moss'])) {\n $params['moss'] = $_GET['moss'];\n }\n\n if (isset($_GET['lines'])) {\n $params['lines'] = $_GET['lines'];\n } else {\n $params['lines'] = 0;\n }\n\n if (isset($_GET['submitbutton'])) {\n $params['submitbutton'] = $_GET['submitbutton'];\n } else {\n $params['submitbutton'] = false;\n }\n\n if (isset($_GET['color'])) {\n $params['color'] = $_GET['color'];\n } else {\n $params['color'] = false;\n }\n\n if (isset($_GET['no_lines'])) {\n $params['no_lines'] = $_GET['no_lines'];\n } else {\n $params['no_lines'] = false;\n }\n\n if (isset($_GET['no_per'])) {\n $params['no_per'] = $_GET['no_per'];\n } else {\n $params['no_per'] = false;\n }\n\n if (isset($_GET['no_width'])) {\n $params['no_width'] = $_GET['no_width'];\n } else {\n $params['no_width'] = false;\n }\n\n $config['params'] = $params;\n}", "title": "" }, { "docid": "b065360d324e9a4f35914300d5a5f2c1", "score": "0.36901823", "text": "function uwr_stats($input) {\n\tglobal $uwr_stats_aArt;\n\tglobal $uwr_stats_allParams;\n\tglobal $uwr_stats_fehler;\n\n\t// set default arguments\n\t$uwr_stats_allParams = array(\n\t\t'start' => \"\",\n\t\t'ende' => \"\",\n\t\t'name' => \"Gesamt\",\n\t\t'target' => \"\",\n\t\t'saison' => 0,\n\t\t);\n\t$uwr_stats_aArt = array();\n\t$uwr_stats_fehler = FALSE;\n\t$output = \"\";\n\t\n\t// parse and check parameters\n\t$rv = parseParams($input);\n\tif ($uwr_stats_fehler) {\n\t\treturn \"Fehlerhafte Parameter (1) [{$rv}]\";\n\t}\n\t// target nicht gesetzt\n\tif ('' == $uwr_stats_allParams['target'] && \"Gesamt\" == $uwr_stats_allParams['name']) {\n\t\t$uwr_stats_fehler = TRUE;\n\t}\n\tif ($uwr_stats_fehler) {\n\t\treturn $uwr_stats_allParams['name'] . \"Fehlerhafte Parameter (2)\";\n\t}\n\n\t// ``saison'' gesetzt (setze ``start'' und ``ende'')\n\tif ($uwr_stats_allParams['saison']) {\n\t\t$uwr_stats_allParams['start'] = $uwr_stats_allParams['saison'] . \"-09-01\";\n\t\t$uwr_stats_allParams['ende'] = ($uwr_stats_allParams['saison'] + 1).\"-08-31\";\n\t}\n\n\t// ``start'' nicht gesetzt (auf unendlich setzen)\n\tif ('' == $uwr_stats_allParams['start']) {\n\t\t$uwr_stats_allParams['start'] = \"1900-01-01\";\n\t\t$uwr_stats_allParams['ende'] = \"2200-01-01\";\n\t}\n\t$DateA=date_create($uwr_stats_allParams['start']);\n\t// ``ende'' nicht eintegragen (auf ``start'' +1 Jahr setzen)\n\tif ('' == $uwr_stats_allParams['ende']) {\n\t\t$uwr_stats_allParams['ende'] = $DateA->format('d.m') . \".\" . ($DateA->format('Y')+1);\n\t}\n\t$DateE=date_create($uwr_stats_allParams['ende']);\n\n\t$SuchString = build_filter($DateA->format('Y-m-d'), $DateE->format('Y-m-d'));\n\n\t// build output\n\tif (\"Gesamt\" != $uwr_stats_allParams['name']) {\n\t\tswitch($uwr_stats_allParams['name']) {\n\t\tcase 'torschuetzen':\n\t\t\t$output = getListOfGoalsForAllScorers($SuchString,'N');\n\t\t\tbreak;\n\t\tcase 'torschuetzenS':\n\t\t\t$output = getListOfGoalsForAllScorers($SuchString,'S');\n\n\t\t\t// one individual game\n\t\t\tif (isset($uwr_stats_aArt) && count($uwr_stats_aArt) == 1 && is_numeric($uwr_stats_aArt[0]))\n\t\t\t{\n\t\t\t\t// load game data\n\t\t\t\t$dbr = wfGetDB(DB_SLAVE);\n\t\t\t\t$sql = \"SELECT * FROM `stats_games` WHERE {$SuchString}\";\n\t\t\t\t$res = $dbr->query($sql);\n\t\t\t\t$row = $res->fetchRow();\n\t\t\t\t$res->free();\n\t\t\t\t$totalGoals = $row['Tore'];//$row[5];\n\n\t\t\t\tif (!$totalGoals) {\n\t\t\t\t\t$output .= '<i>keine</i>';\n\t\t\t\t} else {\n\t\t\t\t\t$num_rows = count($row) / 2; // both, assoc and numbered array!\n\n\t\t\t\t\t$accountedGoals = 0;\n\t\t\t\t\tfor ($c = NUM_NONPLAYER_COLS; $c < $num_rows; $c++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$g = $row[$c];\n\t\t\t\t\t\tif ($g != 255)\n\t\t\t\t\t\t\t$accountedGoals += $g;\n\t\t\t\t\t}\n\t\t\t\t\t$mrxGoals = $totalGoals - $accountedGoals;\n\t\t\t\t\tif ($mrxGoals > 0) {\n\t\t\t\t\t\t$mrx = '';\n\t\t\t\t\t\tif ($output) {\n\t\t\t\t\t\t\t$mrx = \", \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$mrx .= 'Mr. X';\n\t\t\t\t\t\tif ($mrxGoals > 1) {\n\t\t\t\t\t\t\t$mrx .= \" {$mrxGoals}\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$output .= $mrx;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'torschuetzenG':\n\t\t\t$output = getListOfGoalsForAllScorers($SuchString,'G');\n\t\t\tbreak;\n\t\tcase 'mitspieler':\n\t\t\t$output = getListOfGoalsForAllScorers($SuchString,'M');\n\t\t\tbreak;\n\t\tcase 'gesamtbilanz':\n\t\t\t$output = getListOfGesamtbilanz($SuchString); //doofes Englisch\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$players = explode(',', $uwr_stats_allParams['name']);\n\t\t\tif (1 == count($players)) {\n\t\t\t\t// single player stats\n\t\t\t\t$player = $players[0];\n\t\t\t\tif ('Turniere' == $uwr_stats_allParams['target']) {\n\t\t\t\t\t// if `Art' is not set, default should be NOT IN ('BUL', 'LL', '2BL', 'REL')\n\t\t\t\t\t$SuchString = build_filter($DateA->format('Y-m-d'), $DateE->format('Y-m-d'));\n\t\t\t\t\t$output = getListOfTournamentsForPlayer($player, $SuchString);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$output = getNumGoalsForPlayer($player, $SuchString);\n\t\t\t} else {\n\t\t\t\t// list of players\n\t\t\t\t$output = getListOfGoalsForPlayers($players, $SuchString);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t} else { // Gesamt == name\n\t\t// whole team stats\n\t\tswitch ($uwr_stats_allParams['target']) {\n\t\tcase 'Tore':\n\t\tcase 'Gegentore':\n\t\t\t$output = getNumGoals($uwr_stats_allParams['target'], $SuchString);\n\t\t\tbreak;\n\t\tcase 'Gewonnen':\n\t\tcase 'Unentschieden':\n\t\tcase 'Verloren':\n\t\tcase 'All':\n\t\t\t$output = getNumGUVA($uwr_stats_allParams['target'], $SuchString);\n\t\t\tbreak;\n\t\tcase 'SerieG':\n\t\t\t$output = getSeriesWon($SuchString);\n\t\t\tbreak;\n\t\tcase 'SerieV':\n\t\t\t$output = getSeriesLost($SuchString);\n\t\t\tbreak;\n\t\tcase 'Turniere':\n\t\t\t// if `Art' is not set, default should be NOT IN ('BUL', 'LL', '2BL', 'REL')\n\t\t\t$SuchString = build_filter($DateA->format('Y-m-d'), $DateE->format('Y-m-d'));\n\t\t\t$output = getListOfTournamentsForPlayer(false, $SuchString);\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t//$output = mysql_num_rows($sqlres).\" : \".$uwr_stats_allParams['name'].\" : \".$uwr_stats_allParams['target'];\n\n\t// return the output\n\treturn $output;\n}", "title": "" }, { "docid": "e763d5c58b735afdb6b236b94cb5ad0a", "score": "0.36893857", "text": "public function readLine();", "title": "" }, { "docid": "83316ea3aaad1ee6b1a860d4bf9ba94d", "score": "0.36807564", "text": "abstract public function fromOutputFormat($input);", "title": "" }, { "docid": "df393a1a6b6a6d82c9049c1b7b612a76", "score": "0.36687484", "text": "function read($var, $dft=null, $channels=false, $skip_norm=false)\n\t{\n\t\tlist($value, ) = $this->get($var, $dft, $channels, $skip_norm);\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "feb6648ad8303145d89af0498407b673", "score": "0.36685362", "text": "protected function getArguments()\n {\n return [\n ['type', InputArgument::REQUIRED, 'the type of seek, 0->grab, 1->search'],\n ['start', InputArgument::REQUIRED, 'the start of the number'],\n \n ];\n }", "title": "" }, { "docid": "ba32cc1aa19d1c44243c742c5f85cb8e", "score": "0.36684054", "text": "public function readerdata()\n {\n \n if ($_GET['type'] == \"cierres\"){\n $xr8_data = $this->Querys->metalesRead();\n }else if ($_GET['type'] == \"one\"){\n $xr8_data = $this->Querys->metalesReadOne();\n }else if ($_GET['type'] == \"entregas\"){\n $xr8_data = $this->Querys->metalesReadEntregas();\n }else {\n $xr8_data = array(\"Error\" => 101);\n }\n\n\n $this->output->set_content_type('application/json')->set_output(json_encode($xr8_data));\n }", "title": "" } ]
b83aa8da0e7ece9f2f5c67e864efd450
Updates an existing Ingredients model. If update is successful, the browser will be redirected to the 'view' page.
[ { "docid": "89b15d367f757f13cb1385ec6964f7ad", "score": "0.0", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" } ]
[ { "docid": "03043cdd1f74d77c8acf5ea28fcb9229", "score": "0.68134356", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect([Url::previous()]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n 'ingredients' => Ingredients::getDropDownListItems(),\n ]);\n }\n }", "title": "" }, { "docid": "6f99b714db21002deb842a87e7dadc94", "score": "0.63900733", "text": "public function actionUpdate()\n\t{\n\t\t$model=$this->loadGalleryAlbums();\n\t\tif(isset($_POST['GalleryAlbums']))\n\t\t{\n\t\t\t$model->attributes=$_POST['GalleryAlbums'];\n\t\t\tif($model->save())\n $this->redirect(array('blog/galleries','gaid'=>$model->id,'username'=>$this->_user->username));\n\t\t}\n\t\t$this->render('update',array('model'=>$model));\n\t}", "title": "" }, { "docid": "7159c6df3b5c352c84a24c0bc754a84d", "score": "0.63697803", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\t\t$modelFamiliares=new Familiar;\n\n\t\t// Ruta de la imagen\n\t\t$path_picture = Yii::getPathOfAlias('webroot').\"/images/uploads/\";\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t$this->performAjaxValidation(array('model'=>$model, 'modelFamiliares' => $modelFamiliares));\n\n\t\tif(isset($_POST['Conductor'], $_POST['Familiar']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Conductor'];\n\t\t\t$modelFamiliares->attributes=$_POST['Familiar'];\n\n\t\t\t$modelFamiliares->id_persona1 = $model->id_persona;\n\n\t\t\t$modelFamiliares->setIsNewRecord(false);\n\n\t\t\t// Instancia a un objeto para subir archivos\n\t\t\t$uploadedFile = CUploadedFile::getInstance($model,'con_fot');\n\n\t\t\t//si el campo de la imagen está vacio o es null\n\t\t\tif ($model->con_fot == '' || $model->con_fot == null ) { \n\t\t\t\t// Fija el nombre del archivo\n\t\t\t\t$fileName = \"{$model->id_persona}-\".date('Ymd');\n\t\t\t} else { // Ya tenemos una imagen registrada\n\t\t\t\t$fileName = $model->con_fot;\n\t\t\t}\n\n\t\t\tif(!empty($uploadedFile)) // Verifica si se está subiendo un archivo\n {\n // Guardar Imagen\n $uploadedFile->saveAs($path_picture.$fileName);\n $model->con_fot = $fileName;\n }\n\n\t\t\tif($model->save() && $modelFamiliares->update())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model, 'modelFamiliares' => $modelFamiliares\n\t\t));\n\t}", "title": "" }, { "docid": "c68ae4384ad26c6ff2cddd9039985e6c", "score": "0.6364897", "text": "public function actionUpdate()\n {\n $id = 1;\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->getSession()->setFlash('success', Adm::t('','Data successfully changed!'));\n return Adm::redirect(['update', 'id' => $model->id]);\n }\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "c9a776b34412e579bf948850fb6eba0b", "score": "0.6355528", "text": "public function actionUpdate()\n {\n $model = $this->findModel(Yii::$app->request->post('id'));\n\n if ($model->load(Yii::$app->request->post(),'') && $model->save()) {\n return $this->success();\n }\n\n return $this->fail();\n }", "title": "" }, { "docid": "f5a8d0b24443e96b746de9f0aba04c60", "score": "0.6350396", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) ) \n\t\t{\n\t\t\t$model->IDuser=Yii::$app->user->getId();\n\t\t\t$model->male=$_POST[\"Father_ID\"];\n\t\t\t$model->female=$_POST[\"Mother_ID\"];\n\t\t\t$model->save();\n return $this->redirect(['view', 'id' => $model->ID]);\n } \n\t\telse \n\t\t{\n return $this->render('/couple/update', [\n 'model' => $model,\n\t\t\t\t'_MODEL_CHOOSE'=>$this->_MODEL_CHOOSE,\n ]);\n }\n }", "title": "" }, { "docid": "727d35ba05767a1b7116f1dea13c2232", "score": "0.6349329", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['GaleriModel']))\n\t\t{\n\t\t\t$gambar_upload = CUploadedFile::getInstance($model, 'gambar');\n\t\t\tif(!empty($gambar_upload))\n\t\t\t{\n\t\t\t\t$model->attributes=$_POST['GaleriModel'];\n\t $model->gambar = uniqid(rand(),true).'.'.$gambar_upload->getExtensionName();\n\t\t\t\tif($model->save())\n\t\t\t\t{\n\t\t\t\t\t$path = Yii::getPathOfAlias('webroot').'/images/galeri/temp/'.$model->gambar;\n\t $gambar_upload->saveAs($path);\n\n\t\t\t\t\t$img = Yii::app()->simpleImage->load($path);\n\t\t\t\t\t$img->resizeToWidth(640);\n\t\t\t\t\t$img->save(Yii::getPathOfAlias('webroot').'/images/galeri/'.$model->gambar);\n\n\t\t\t\t\tunlink($path);\n\n\t\t\t\t\t$this->redirect(array('index','id'=>$model->id_galeri));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$model->attributes=$_POST['GaleriModel'];\n\t\t\t\tif($model->save())\n\t\t\t\t\t$this->redirect(array('view','id'=>$model->id_galeri));\n\t\t\t}\n\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "a6bfa3348e5e34429f715f4bb7c0ca4e", "score": "0.62764066", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Intention']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Intention'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "2f8e8a4cfc58b1f336a383d80642ca17", "score": "0.6224823", "text": "public function actionUpdate($id)\n {\n// $model = $this->findModel($id);\n//\n// if ($model->load(Yii::$app->request->post()) && $model->save())\n// {\n// return $this->redirect(['view', 'id' => $model->id]);\n// } else\n// {\n// return $this->render('update', [\n// 'model' => $model,\n// ]);\n// }\n }", "title": "" }, { "docid": "aed4f88dc7bf6e3e1e34efcef76798f5", "score": "0.6160517", "text": "public function actionUpdate($id)\n{\n$model=$this->loadModel($id);\n$user = Yii::app()->user;\n\n// Uncomment the following line if AJAX validation is needed\n// $this->performAjaxValidation($model);\n\nif(isset($_POST['JugadorRanking']))\n{\n$model->attributes=$_POST['JugadorRanking'];\nif($model->save()){\n\t\t\t$user->setFlash('success', \"Datos han sido modificados <strong>satisfactoriamente</strong>.\");\n\t\t\t$this->redirect(array('admin'));\n\t\t}\n}\n\n$this->render('update',array(\n'model'=>$model,\n));\n}", "title": "" }, { "docid": "12ee994603dafbab14948e0a89544749", "score": "0.6133754", "text": "public function actionUpdate($id) {\n\t\t$model = $this -> loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif (isset($_POST['Ingerek'])) {\n\t\t\t$model -> attributes = $_POST['Ingerek'];\n\t\t\tif ($model -> save())\n\t\t\t\t$this -> redirect(array('view', 'id' => $model -> id));\n\t\t}\n\n\t\t$this -> render('update', array('model' => $model, ));\n\t}", "title": "" }, { "docid": "31d0f1cfa3c7d60dd76e736c77607b7e", "score": "0.61212415", "text": "public function actionUpdate()\n {\n if (!$model = $this->findModel()) {\n Yii::$app->session->setFlash(\"error\", Yii::t('modules/user', \"You are not logged in.\"));\n $this->goHome();\n }\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash(\"success\", Yii::t('modules/user', \"Changes has been saved.\"));\n return $this->refresh();\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "cb47fee6b2b4a5270b78f8cbcc561321", "score": "0.60909265", "text": "public function actionUpdate()\n\t{\n\t\t$model=$this->loadModel();\n\t\tif(isset($_POST['Countries']))\n\t\t{\n\t\t \n\t\t\t$model->attributes=$_POST['Countries'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->idCountry));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "edab72a1c4692b1b0bd4c11245da1155", "score": "0.6072344", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->idIndikatorNilai]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ade4f365a45c7a5330a7c9eb1d8031ba", "score": "0.60317135", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n //return $this->redirect(['view', 'id' => $model->id]);\n return $this->redirect(['index']); \n }\n \n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "c0cb3e6d24ce5fcc044031626bbbf9f9", "score": "0.60289747", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->no_kartu]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "f3e5d5fbde5a325be2b571d1ba7f077a", "score": "0.6025058", "text": "public function actionUpdate(int $id)\n {\n $model = $this->findModel($id);\n\n\t\tif ($model->issue81_id) {\n\t\t\t$_SESSION['gallery'] = [\n\t\t\t\t'id' => $model->issue81_id,\n\t\t\t\t'type' => $model->gallery_type,\n\t\t\t\t'title' => $model->gallery_type == 1 ? 'домашних питомцев' : 'домашних и ...',\n\t\t\t\t'fio' => Vypusk81::getFIO($model->issue81_id),\n\t\t\t\t'view_fio' => false,\n\t\t\t];\n\t\t}\n\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n// сохранение картинки\n\t\t\t$model->image = UploadedFile::getInstance($model, 'image');\n\t\t\tif( $model->image ){\n\t\t\t\t$model->upload();\n\t\t\t}\n\t\t\tunset($model->image);\n\n// сохранение галереи\n\t\t\t$model->gallery = UploadedFile::getInstances($model, 'gallery');\n\t\t\tif( $model->gallery ){\n\t\t\t\t$model->uploadGallery();\n\t\t\t}\n\n\t\t\tYii::$app->session->setFlash('success', 'Информация обновлена.');\n return $this->redirect([($model->gallery_type == 1 ? 'animals' : 'family')]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "2a74dfeda75f55822a7d0b42a005d8e3", "score": "0.6024704", "text": "public function actionUpdate($id){\n $model = $this->findModel($id);\n\n if($model->load(Yii::$app->request->post()) && $model->save()){\n return $this->redirect([\n 'view',\n 'id' => $model->id\n ]);\n }else{\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e54b64db91f4f2a24921d067219090c4", "score": "0.6005368", "text": "public function actionUpdate($id)\n {\n $this->layout = Auth::getRole();\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_pengaduan]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "cbfdf50d94356cd9e6a14bae6566d219", "score": "0.59948665", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n// return $this->redirect(['view', 'id' => $model->id]);\n \treturn $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "25c960c644750b5573c206a4af2f3b4d", "score": "0.59893495", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $lsgi = $model->lsgi_id;\n if ($model->load(Yii::$app->request->post())) {\n if(!$model->lsgi_id)\n {\n $model->lsgi_id = $lsgi;\n }\n $model->save();\n return $this->redirect(['index']);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "f6567f32dbd5367c5275d9f8b0201b0b", "score": "0.5983167", "text": "public function actionUpdate($id)\n {\n\n $model = $this->findModel($id);\n $this->handleSave($model);\n\n// if ($model->load(Yii::$app->request->post()) && $model->save()) {\n//\n// return $this->redirect(['view', 'id' => $model->id]);\n// }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "e366f0b48cf88b098cc58ecc7463a20b", "score": "0.59809077", "text": "public function update( Request $request, $id )\n {\n $this->validate(\n $request, [\n 'price' => 'required',\n 'quantity' => 'required',\n ]\n );\n\n $ingredients = Ingredients::find($id);\n $ingredients->price = $request->input('price');\n $ingredients->quantity = $request->input('quantity');\n $ingredients->save();\n return redirect('/')->with('success', 'Edited Ingredient');\n }", "title": "" }, { "docid": "a72539962b3415cfd34efb01cccd3719", "score": "0.59750545", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\t\tif (Yii::$app->request->isAjax) {\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->renderAjax('update', [\n 'model' => $model,\n ]);\n }\n\t\t}else{\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_maquina]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }\n }", "title": "" }, { "docid": "1e24eee1ef3e084aa210078f85022b26", "score": "0.59699196", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Egresos']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Egresos'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "b35d2a5652e3f81ceb9d13c906c6d762", "score": "0.59653324", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "55017473ab2f0e9d7c8b3ba3de9dfb6a", "score": "0.5958195", "text": "public function actionUpdate($id)\n\t{\n $model=$this->loadModel($id);\n\n if(isset($_POST['Artistas']))\n {\n $_POST['Artistas']['imagen'] = $model->imagen;\n $model->attributes=$_POST['Artistas'];\n\n $uploadedFile=CUploadedFile::getInstance($model,'imagen');\n\n if($model->save())\n {\n if(!empty($uploadedFile)) // checkeamos si el archivo subido esta seteado o no\n {\n $uploadedFile->saveAs(Yii::app()->basePath.'/../images/artistas/'.$model->imagen);\n }\n $this->redirect(array('admin'));\n }\n\n if($model->save())\n $this->redirect(array('admin'));\n }\n\n $this->render('update',array(\n 'model'=>$model,\n ));\n\t}", "title": "" }, { "docid": "e453f631d458e1b064121511502efbef", "score": "0.59556544", "text": "public function actionUpdate($id)\r\n {\r\n $model = $this->findModel($id);\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->author_id]);\r\n } else {\r\n return $this->render('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "49ee1931d93734d514099ab384455aa3", "score": "0.5952933", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $RefGolongan = ArrayHelper::map(RefGolongan::find()->select('id, nama')->all(), 'id', 'nama');\n\n if ($model->load(Yii::$app->request->post()) ) {\n $model->setGolRuang();\n $model->save();\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n 'RefGolongan' => $RefGolongan,\n ]);\n }", "title": "" }, { "docid": "cfad0da63ab243f44918f0db2427d443", "score": "0.5950291", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save(false)) { \t \t\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f0d5b4c727d09157032b98c1c153cf85", "score": "0.59409887", "text": "public function actionUpdate($id) {\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Lamaran'])) {\n $model->attributes = $_POST['Lamaran'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "285bd7f35bf72611d8131923fe77acde", "score": "0.59258676", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n // return $this->redirect(['view', 'id' => $model->id]);\n return $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "d42a59c6759a671d123200c5d2d9b371", "score": "0.59199834", "text": "public function actionUpdate($id)\n { \n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "b197f7c1bd168cd220cf3983ae0d518c", "score": "0.5917464", "text": "public function actionUpdate($id)\r\n\t{\r\n\t\t$model = $this->findModel($id);\r\n\r\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\r\n\t\t} else {\r\n\t\t\treturn $this->render('update', [\r\n\t\t\t\t'model' => $model,\r\n\t\t\t]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ae51a50ac83b5fc6bf030a7053baa254", "score": "0.5916493", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ae51a50ac83b5fc6bf030a7053baa254", "score": "0.5916493", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "a706baa3387e95840ef3343da1c22929", "score": "0.59107065", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $model->scenario = \\app\\models\\DosenFakultas::SCENARIOUPDATE;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "e88e006b27673ed8b6bb093b9e65afc4", "score": "0.59084153", "text": "public function actionUpdate($id)\n\t{\n $user = $this->getUser();\n $model=$this->loadModel($id);\n\n if (!$model->canEdit()) {\n throw new CHttpException(403,'You are not allowed to perform this action');\n }\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Album']))\n {\n $model->attributes = Yii::app()->input->stripClean($_POST['Album']);\n if($model->save())\n $this->redirect(['/album/view','id'=>$model->id,'uguid'=>$user->guid]);\n }\n\n $this->render('/album/update',[\n 'model'=>$model,\n ]);\n\t}", "title": "" }, { "docid": "8c8f1027c222e57638d60190db834343", "score": "0.5905589", "text": "public function actionUpdate($id)\n{\n\t$model = $this->findModelinfo($id);\n\n\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t} else {\n\t\treturn $this->render('update', [\n\t\t\t'model' => $model,\n\t\t]);\n\t}\n}", "title": "" }, { "docid": "47120b657f0acd92c62f76aed9aa4c9d", "score": "0.5892489", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n //$model->scenario = 'update';\n //$imagen = ['uploadUrl' => '@backend/web/imagenes/paginas'];\n\n //print_r(Yii::$app->request->post()); die();\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('update', [\n 'model' => $model,\n // 'imagenUp' => $imagen\n ]);\n }\n }", "title": "" }, { "docid": "652165855a55a90ce0e078af91f5cd14", "score": "0.58917713", "text": "public function actionUpdate($id) {\r\n\t\t$model = $this->findModel( $id );\r\n\t\tif ($model->load ( \\Yii::$app->request->post () ) && $model->save ()) {\r\n\t\t\treturn $this->redirect ( [ \r\n\t\t\t\t\t'index',\r\n\t\t\t\t\t//'id' => $model->id \r\n\t\t\t] );\r\n\t\t} else {\r\n\t\t\treturn $this->render ( 'update', [ \r\n\t\t\t\t\t'model' => $model \r\n\t\t\t] );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c48d9d33925894b62bd26cccba8fe879", "score": "0.58753365", "text": "public function actionUpdate($id)\r\n {\r\n $model = $this->findModel($id);\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->ID]);\r\n } else {\r\n return $this->render('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "6e25469f326bead0f72a64e9223a8cd3", "score": "0.58745414", "text": "public function actionUpdate($id)\n\t{\n\t\t$model = $this->findModel($id);\n\t\tif($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\treturn $this->redirect(['index']);\n\t\t}\n\t\t\n\t\treturn $this->render('_form', [\n\t\t\t'model' => $model,\n\t\t]);\n\t}", "title": "" }, { "docid": "495cf616082765d898d66bcc571f4f01", "score": "0.5871687", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post())) {\n if($model->save()){\n $this->setDefault($id);\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n\n return $this->render('update', ['model' => $model,]);\n \n \n }", "title": "" }, { "docid": "cd0443e809378fbc92974e3dba4247f0", "score": "0.5869594", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->professionalCodeID]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "0aef8d1ab0f0f7ab7f325eb72471da10", "score": "0.5868144", "text": "public function actionUpdate($id)\n\t{\n\t\t$model = $this->findModel($id);\n\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save()) {\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t} else {\n\t\t\treturn $this->render('update', [\n\t\t\t\t\t'model' => $model,\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "d75f8f243cfd1c6748033ea8b2ea3eba", "score": "0.58678037", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save())\n {\n Yii::$app->session->setFlash('success','Изменения сохранены');\n return $this->redirect(['index']);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "9bf338d2c5224e48a4a80ff68f4e628d", "score": "0.58677757", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n if ($model->id == Yii::$app->user->identity->id)\n {\n if (isset($_GET['new_name'])) {\n $new_username = $_GET['new_name'];\n $model->username = $new_username;\n }\n\n if (isset($_GET['t_url'])) {\n $new_trade_url = $_GET['t_url'];\n $model->trade_url = $new_trade_url;\n }\n\n \n if ($model->save()) {\n echo \"good\";\n }\n }\n\n \n\n /*if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);*/\n }", "title": "" }, { "docid": "dac29c02d01799024ec1fda912ae3014", "score": "0.5864832", "text": "public function actionUpdate($id)\n\t{\n\t\t$model = $this->findModel($id);\n\n\t\tif ($model->load(Yii::$app->request->post()) && $model->save())\n\t\t{\n\t\t\treturn $this->redirect(['index']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->render('update', [\n\t\t\t\t'model' => $model,\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "cd231951d8b6ed435272bbd9409b2a53", "score": "0.5864792", "text": "public function actionUpdate($id)\r\n {\r\n $model = $this->findModel($id);\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "ead2a0de7b79c31ac542e6fa50b6bd64", "score": "0.58642274", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ope_id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "6a553fa853a615b43e20a11a5c9e03c9", "score": "0.5857716", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "54d6d5c190e2073edd179a83eae67d18", "score": "0.58553123", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "2096125be210a45a41b17c92f08165da", "score": "0.58543545", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e066bed52b0965c0639294fe5a3c4334", "score": "0.5850148", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n return $this->render('update', [\n 'model' => $model,\n ]);\n\n }", "title": "" }, { "docid": "a073aa200be40bad90db132827156490", "score": "0.584821", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "45b5673f3bec2c6dc18dbe940dabf14a", "score": "0.58479655", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post())) {\n $model->save();\n return $this->redirect(['view', 'id' => $model->id_barang]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "01915b8ee773f35a14017fee69b486cd", "score": "0.58476794", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n 'turnirs' => Turnir::find()->All(),\n 'teams' => Team::find()->All(),\n ]);\n }\n }", "title": "" }, { "docid": "a06fb776fd59d847e5b602380c756cd1", "score": "0.5845309", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Images']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Images'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "b3a2033cbae40e37a0b964825d7b1638", "score": "0.5842963", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "b3a2033cbae40e37a0b964825d7b1638", "score": "0.5842963", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "ed68e4e423993b4da37e5591b199c2fa", "score": "0.58421063", "text": "public function actionUpdate($id) {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "a2623981fb5380b842df7f904e5efa53", "score": "0.5839253", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Nzb']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Nzb'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->Id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "a704af5b9d9a6ea95a92b58df82f1a58", "score": "0.5834426", "text": "public function actionUpdate($id)\n {\n\n $this->layout=\"gestion\";\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "ab8d8ff9dad49e1cfe832b1659a9eeb1", "score": "0.5824929", "text": "public function actionUpdate($id)\r\n\t{\r\n\t\t$model=$this->loadModel($id);\r\n\r\n\t\t// Uncomment the following line if AJAX validation is needed\r\n\t\t// $this->performAjaxValidation($model);\r\n\r\n\t\tif(isset($_POST['SupNewItem']))\r\n\t\t{\r\n\t\t\t$model->attributes=$_POST['SupNewItem'];\r\n\t\t\tif($model->save())\r\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\r\n\t\t}\r\n\r\n\t\t$this->render('update',array(\r\n\t\t\t'model'=>$model,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "77b46e796189d6a5ad847ce92a2e5dea", "score": "0.5819219", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if (empty($model->profile_id)) {\n \t$model->profile_id = Yii::$app->user->id;\n\t\t}\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n\n// сохранение картинки\n \t$model->image = UploadedFile::getInstance($model, 'image');\n\t\t\tif( $model->image ){\n\t\t\t\t$model->upload();\n\t\t\t}\n\t\t\tunset($model->image);\n\n// сохранение галереи\n \t$model->gallery = UploadedFile::getInstances($model, 'gallery');\n\t\t\tif( $model->gallery ){\n\t\t\t\t$model->uploadGallery();\n\t\t\t}\n\n \tYii::$app->session->setFlash('success', 'Информация обновлена.');\n\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "d01a6b12838981d958ce486e602e44f8", "score": "0.58178425", "text": "public function actionUpdate($id)\r\n {\r\n $model = $this->findModel($id);\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['update', 'id' => $model->id]);\r\n } else {\r\n return $this->render('update', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "1932bb303ba9210ae85c2e71569fc24f", "score": "0.5817825", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n if (\\Yii::$app->user->can('updateOwnAvaria', ['avaria' => $model]) || Yii::$app->user->identity->tipo != 0) {\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n if($model->estado == 2 && $model->idRelatorio == null){\n $this->redirect(['relatorio/create', 'idAvaria' => $model->idAvaria]);\n }else{\n return $this->redirect(['view', 'id' => $model->idAvaria]);\n }\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }else{\n throw new ForbiddenHttpException(\"You are not allowed to perform this action.\");\n }\n }", "title": "" }, { "docid": "6043844add4aba3d660552a34a96030b", "score": "0.58128136", "text": "public function actionUpdate($id)\n\t{\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_UPDATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t\n\n\t\tif(isset($_POST['KPKenaikanpangkatT']))\n\t\t{\n\t\t\t$model->attributes=$_POST['KPKenaikanpangkatT'];\n\t\t\tif($model->save()){\n Yii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('view','id'=>$model->kenaikanpangkat_id));\n }\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "c8ea8f91f5ba1a2f01108f9251bc0f70", "score": "0.5811934", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "3218d04147db1d81049a13bc1e15b23c", "score": "0.5809669", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Felvilagosit']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Felvilagosit'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "a3a8143570ec715967c42c8d11dc2597", "score": "0.5809528", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_keluar]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "c8bad4abe71f87a6bbb596e6c001391e", "score": "0.5809419", "text": "public function actionUpdate($id) {\n $_SESSION['KCFINDER']['disabled'] = false; // enables the file browser in the admin\n $_SESSION['KCFINDER']['uploadURL'] = Yii::app()->baseUrl . \"/uploads/\"; // URL for the uploads folder\n $_SESSION['KCFINDER']['uploadDir'] = Yii::app()->basePath . \"/../uploads/\"; // path to the uploads folder\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Articulos'])) {\n $model->attributes = $_POST['Articulos'];\n if ($model->save()) {\n //$this->redirect(array('articulos/admin', 'id' => $id));\n $this->redirect(array('articulos/admin', 'categoria' => $model->categoria));\n }\n }\n\n $this->render('update', array(\n 'model' => $model, 'id' => $id\n ));\n }", "title": "" }, { "docid": "7b3902a34822729b171b7bc0f8625233", "score": "0.5807651", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\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('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "95d92ffa134ee51b7187d9026f13b09f", "score": "0.58064675", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\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('update',\n [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "8a772ab19516ea82b6239d226f63d5fc", "score": "0.5805252", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->idprorrateo]);\n }\n\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "8ffed86775a2274500c9793c2bca6c51", "score": "0.58011544", "text": "public function update()\n\t{\t\n\n\t\t$id = Auth::id();\n \n\t\t$userWeightlifting = User::find($id)->UserWeightlifting;\n\t\t\n\t\t$userWeightlifting->user_id = $id;\n\t $userWeightlifting->maxBenchPressWeight = Input::get('maxBenchPressWeight');\n\t $userWeightlifting->repBenchPressWeight = Input::get('repBenchPressWeight');\n\t $userWeightlifting->repBenchPressReps = Input::get('repBenchPressReps');\n\t\t$userWeightlifting->maxSquatWeight = Input::get('maxSquatWeight');\n\t $userWeightlifting->repSquatWeight = Input::get('repSquatWeight');\n\t $userWeightlifting->repSquatReps = Input::get('repSquatReps');\n\t\t$userWeightlifting->maxDeadliftWeight = Input::get('maxDeadliftWeight');\n\t $userWeightlifting->repDeadliftWeight = Input::get('repDeadliftWeight');\n\t $userWeightlifting->repDeadliftReps = Input::get('repDeadliftReps');\n\t $userWeightlifting->maxOverheadPressWeight = Input::get('maxOverheadPressWeight');\n\t $userWeightlifting->repOverheadPressReps = Input::get('repOverheadPressReps');\n\t $userWeightlifting->repOverheadPressWeight = Input::get('repOverheadPressWeight');\n\t \n\t $userWeightlifting->save();\n\n\t return Redirect::to('/user/stats/');\n\t}", "title": "" }, { "docid": "26ed6012a179fe8fbd7ccff260d00d9a", "score": "0.5801138", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\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(\n 'update', [\n 'model' => $model,\n ]\n );\n }\n }", "title": "" }, { "docid": "0b92e994a31b338c7fca679822359f2d", "score": "0.579967", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Sindicato']) && isset($_POST['telefono']) && isset($_POST['yt0']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Sindicato'];\n $model->telefono=$_POST['telefono'][0].\"/\".$_POST['telefono'][1];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "7dcef86650f82eada0c6c0c4978002e8", "score": "0.57991743", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Request']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Request'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" } ]
fd86724a16c5193b89f40433638979c6
Find object by primary key. Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched. $obj = $c>findPk(12, $con);
[ { "docid": "2ccebe119cab5c8c0321397d5a127771", "score": "0.7009239", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(HeroTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = HeroTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" } ]
[ { "docid": "5364aa61e088d8b7ca6c1c601b5d782c", "score": "0.7622496", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = IgrejaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(IgrejaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "5af1da7c8928ca807eb015540449a1b2", "score": "0.75819564", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_OrdersPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_OrdersPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "96b3fd79ca1eefad0820b307c0cb67c6", "score": "0.75419027", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = OnlinecustomerPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(OnlinecustomerPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "c1960a00d481ec88eec0ae5419652fe4", "score": "0.7537969", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = CargoPesquisaPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(CargoPesquisaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "9d4fa8e07cbabde07cd93b983c2a2a90", "score": "0.75332314", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = ProductoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(ProductoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "88ea844bc4f99f629ad86143877b3db8", "score": "0.7491671", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = RelancesPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(RelancesPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "da44d43e79de07221fc5b39fe4ea3a9a", "score": "0.7485154", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CajachicadetallePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CajachicadetallePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "5570b5c659d2772fc310c160eb7c5867", "score": "0.7483804", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ChoferesPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ChoferesPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "fd2773d5a5910245cb4b3a0d6c1d67f5", "score": "0.74819815", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TicketsystemPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TicketsystemPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "3c7061e9f196e4ed7f8166121363ef13", "score": "0.7462412", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PembelajaranPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PembelajaranPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "ea46f8fa86cdbd9ca68c20b3a5da8be1", "score": "0.74491596", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = productPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(productPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "9dc0dadd3447ac1100fc978f0d4a64b0", "score": "0.7446272", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = RiwayatGajiBerkalaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(RiwayatGajiBerkalaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "864e76ed9f25906627665bdc84b0bf60", "score": "0.74362344", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = BuildingsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(BuildingsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "2f113a3d9373ef789880a39726ddbf0b", "score": "0.74165964", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DriverPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(DriverPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "0a4ea6b0b68a8c8053df0128631243e6", "score": "0.74010974", "text": "public function findPk($key, $con = null)\n {\n if ($key === null)\n {\n return null;\n }\n if ((null !== ($obj = CollectorGeocachePeer::getInstanceFromPool((string) $key))) && !$this->formatter)\n {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null)\n {\n $con = Propel::getConnection(CollectorGeocachePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n }\n else\n {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "0e418e595a7891234d29b787970fbbf8", "score": "0.7377363", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = SasaranPengawasanPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(SasaranPengawasanPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "9acd900c344b2cb7e455c7fbfe22ff8e", "score": "0.7352873", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ConsultorioPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ConsultorioPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "93054354e9edacb3a6399bcc2e730552", "score": "0.7340642", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UnitUsahaKerjasamaPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UnitUsahaKerjasamaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "8444ac0b27b57fadb298aca7aaca6645", "score": "0.7339735", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MonedaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MonedaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "95ed13d226da91dd68fc90db5638e805", "score": "0.73373425", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(BookTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = BookTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "d37a383977948e6e5d9583bfc6a07c1e", "score": "0.7334676", "text": "public function findPk($key, $con = null)\n {\n if ($key === null)\n {\n return null;\n }\n if ((null !== ($obj = CollectionPeer::getInstanceFromPool((string) $key))) && !$this->formatter)\n {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null)\n {\n $con = Propel::getConnection(CollectionPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n }\n else\n {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "b35a429e9165bf502dee8e575f818d34", "score": "0.7331012", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "b35a429e9165bf502dee8e575f818d34", "score": "0.7331012", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "b35a429e9165bf502dee8e575f818d34", "score": "0.7331012", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "93886ecf129e70c52d7ad79998fcc718", "score": "0.73298174", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MataPelajaranPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MataPelajaranPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "ab04cbb390b93f19e81462cbf9be3010", "score": "0.7327226", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = NewsletterPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(NewsletterPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "667de784dd4faf15f0ed2d96dbd4c97e", "score": "0.73246175", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = EntryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(EntryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "d7e2682b2ca9770dcc61c3a245ca3658", "score": "0.73243856", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "7ef4c441b55c75156cc031f9c47fec19", "score": "0.73177624", "text": "public function findPk($key, $con = null)\r\n\t{\r\n\t\tif ((null !== ($obj = WorkforceCircuitPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && $this->getFormatter()->isObjectFormatter()) {\r\n\t\t\t// the object is alredy in the instance pool\r\n\t\t\treturn $obj;\r\n\t\t} else {\r\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\r\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\r\n\t\t\t$stmt = $criteria\r\n\t\t\t\t->filterByPrimaryKey($key)\r\n\t\t\t\t->getSelectStatement($con);\r\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e0120adae696ee22658924085c821500", "score": "0.7317272", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = NewsletterPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(NewsletterPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "e21f9abfa6f92e3f6dd0591a005d4d01", "score": "0.73151064", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CarPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CarPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "b2d320407c928ad4fac0f2f6d1f99c65", "score": "0.7308613", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TagCloudPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TagCloudPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "c895bf2a345d22e22eb2f7a7ddc5658b", "score": "0.73079693", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = PositionsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PositionsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "e18651ecbdb61328503a2e4c8369d1ee", "score": "0.73042965", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_CountryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_CountryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "84d55ff6abd0541e195475095d6159d5", "score": "0.7301454", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(BincntlTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = BincntlTableMap::getInstanceFromPool(serialize([(null === $key[0] || is_scalar($key[0]) || is_callable([$key[0], '__toString']) ? (string) $key[0] : $key[0]), (null === $key[1] || is_scalar($key[1]) || is_callable([$key[1], '__toString']) ? (string) $key[1] : $key[1]), (null === $key[2] || is_scalar($key[2]) || is_callable([$key[2], '__toString']) ? (string) $key[2] : $key[2])]))))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "c39f091d5b356b9adc8dcbfe90819012", "score": "0.729404", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = LocationPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(LocationPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "89688e847c1d7960cbd6105bbef120b6", "score": "0.72900933", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ActividadPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "3448810043cc421384284a271d82b630", "score": "0.72858423", "text": "public function findByPK($pk){\n $pkConditions = $this->buildPKConditions($this->pk, $pk);\n return $this->findOne($pkConditions[0], $pkConditions[1]);\n }", "title": "" }, { "docid": "7d728689118610a414dae709ddfe5859", "score": "0.72830164", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = JuridicaDomPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(JuridicaDomPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "e4a9500f0b99d52c4405d5d2a79150af", "score": "0.72822183", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = LocationPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(LocationPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "4d338267d734f7d6b24f4b591dfdade6", "score": "0.72814184", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ShopPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "84b13a2b60456f8cf5e2d57396810e88", "score": "0.7281129", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PengaturanPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PengaturanPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "bc8559541cdc69ebf0b003e12ef976f6", "score": "0.7276843", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsSamenstellingPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2], (string) $key[3], (string) $key[4]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsSamenstellingPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "6303590643a363a0d0fdc353bd302d36", "score": "0.7274845", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = SolutionPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(SolutionPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "d5c3281937960d443da37c7acdcb20c3", "score": "0.7274546", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ProduitTableMap::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ProduitTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "4fe7d4df712ab1c1fac4f23238ab81fb", "score": "0.72697973", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_ImportMatchPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_ImportMatchPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "d74fe94883c5bda92856e2f4e3f23b9a", "score": "0.7246396", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CargadoresBateriasPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CargadoresBateriasPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "425e0e9746de78c9b30b4161a7ab4582", "score": "0.7240623", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ReciboEncabezadoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ReciboEncabezadoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "1d33f3f011a5027d49a402134c9e5a44", "score": "0.7233279", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CustomerReceiptmethodofpaymentPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CustomerReceiptmethodofpaymentPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "102ce840aa83e47f31ac1fdfce5f7009", "score": "0.7228906", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TbcurriculodisciplinasPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TbcurriculodisciplinasPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "57ced6b6df4378325f36e015dc09cd4d", "score": "0.72260445", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AccountTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AccountTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "464f95fc4cda3289f5e94b96a75cd535", "score": "0.72202134", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(CoagentiTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = CoagentiTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "4e16a9883cdfd2089dcd8c9b7bc28571", "score": "0.72129035", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(SekolahTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = SekolahTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "651c349a7384d03e81d02724d0680afa", "score": "0.7211918", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TarjetapuntosdetallePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TarjetapuntosdetallePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "d02211d4453d8f30266ba6a5e4b75d8b", "score": "0.7196174", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(OrderTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = OrderTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "56ae4f8720bf1280dcc1e957da6c2f54", "score": "0.7190305", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = CataloguePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "f52a7a1d4754170040e2b278880bdccd", "score": "0.71783227", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = PaymentInfoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PaymentInfoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "99cb1255af482b339875f04ad57b1c1d", "score": "0.7169295", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = EmpContactPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(EmpContactPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "c64f3aeffc094c2c373f9fcc2178f99b", "score": "0.71474725", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ConfigSysTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ConfigSysTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "2d9c0c34712bd30e6898aa01728ea6e6", "score": "0.7146278", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(MailTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = MailTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "2f9215f22d41dfb658755c3880af4477", "score": "0.71418446", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AliAsalehTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AliAsalehTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "d67501a023b2629b0d4fb5c7ca239416", "score": "0.71391064", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(SuiviTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = SuiviTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "c6d19decceab2219d116b281b952d8a4", "score": "0.7133764", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(TblentcmsTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = TblentcmsTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "24f76be49d0f6c21e89af236d2680561", "score": "0.7126635", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(Genere1TableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = Genere1TableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "5a1759df66bc9858a653f0eb5fa82910", "score": "0.7124045", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = QuarterlyDataPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(QuarterlyDataPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "be97d3d1c9862123cc0219ec1893b00c", "score": "0.711466", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = QuarterlyReportsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(QuarterlyReportsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "ae40c453c26633e8207524a23fc2e179", "score": "0.7109644", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Stops2011Peer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Stops2011Peer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "46d1495c619517f0ad4a416915886373", "score": "0.7103426", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(BsContentsTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = BsContentsTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "ee010e05671b9745439530f96b292462", "score": "0.7102423", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = OptionPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "9ba1555de9f64c1f4c32dcb5a182f92b", "score": "0.710224", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AliAmbonusTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AliAmbonusTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "ad8a8f6af66022ed06b6e05da9eb47ee", "score": "0.710133", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GW2DBItemArchivePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GW2DBItemArchivePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "625a0570449864e36e44d60e7694776c", "score": "0.70963407", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ValorOpcionPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "d2c6318320a82037e4116897d75fd099", "score": "0.70944315", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DetallePedidoPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "8d68e899b21947ce786e9a2f50b4d402", "score": "0.70942485", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = FriendPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "94b9f2bccd7021bc5b5f34a311eaabbe", "score": "0.7088762", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(EtapTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = EtapTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "67b6edfc63a453bb27219d8e6743530f", "score": "0.7074526", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ImovelTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ImovelTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "617c54c10965c8cac6953aa5505dd8a2", "score": "0.70722747", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = WpCommentsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(WpCommentsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "9cb2fa07a12d8d87620fd09727e4fd89", "score": "0.70721686", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = WineTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(WineTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "b9f10db95ffddf976de2c95d33db62de", "score": "0.7063326", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(UserTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = UserTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "fcca3c9af8272f2fcdcd086b8e03970a", "score": "0.7059176", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DescuentodetallePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(DescuentodetallePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "c99ce8c9a5d598235e8558c219431393", "score": "0.7052009", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ConfigApTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ConfigApTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "7e1e56a818f01769cb37b596e041142c", "score": "0.7051796", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(AliStockcardETableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = AliStockcardETableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "10fd7b07b984557015e2720a8fefdf83", "score": "0.7050288", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = RacesTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(RacesTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "902eaf145a061f24f3f5fdf04444ee36", "score": "0.7045084", "text": "public function get($primaryKey, $options = []) {\n\t\t$query = new MongoFinder($this->__getCollection(), $options);\n\t\t$mongoCursor = $query->get($primaryKey);\n\n\t\t//if find document, convert to cake entity\n\t\tif ($mongoCursor->count()) {\n\t\t\t$document = new Document(current(iterator_to_array($mongoCursor)), $this->alias()); // This obviously refers to Hayko's Document class in /src/ORM, because if not, I'm buying airfare to strangle someone.\n\t\t\treturn $document->cakefy();\n\t\t}\n\n\t\tthrow new InvalidPrimaryKeyException(sprintf(\n 'Record not found in table \"%s\" with primary key [%s]',\n $this->_table->table(),\n $primaryKey\n ));\n\t}", "title": "" }, { "docid": "cef063d1bf8e70670fce9271d6091fd6", "score": "0.70444685", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(PickSalesOrderDetailTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = PickSalesOrderDetailTableMap::getInstanceFromPool(serialize([(null === $key[0] || is_scalar($key[0]) || is_callable([$key[0], '__toString']) ? (string) $key[0] : $key[0]), (null === $key[1] || is_scalar($key[1]) || is_callable([$key[1], '__toString']) ? (string) $key[1] : $key[1])]))))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "f72d3e6a58f263266f2177e257305643", "score": "0.7041793", "text": "public function findPk($key, $con = null)\n {\n if ((null !== ($obj = ProjetoAmbientePeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && $this->getFormatter()->isObjectFormatter()) {\n // the object is alredy in the instance pool\n return $obj;\n } else {\n // the object has not been requested yet, or the formatter is not an object formatter\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKey($key)\n ->getSelectStatement($con);\n return $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n }\n }", "title": "" }, { "docid": "f4870202aa299d670607459d02a8d3eb", "score": "0.7039248", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = WpOptionsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(WpOptionsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "eb992df1fde8d7152fdc6dfc0d51f5d8", "score": "0.7034145", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ItemXrefVendorTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ItemXrefVendorTableMap::getInstanceFromPool(serialize([(null === $key[0] || is_scalar($key[0]) || is_callable([$key[0], '__toString']) ? (string) $key[0] : $key[0]), (null === $key[1] || is_scalar($key[1]) || is_callable([$key[1], '__toString']) ? (string) $key[1] : $key[1]), (null === $key[2] || is_scalar($key[2]) || is_callable([$key[2], '__toString']) ? (string) $key[2] : $key[2])]))))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "be301c7212b45a3c3d17b23b1624517b", "score": "0.7033145", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(SecurityTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = SecurityTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "7ffcff28868ab743d3502ee7485731ab", "score": "0.7023026", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MumTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(MumTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "df582297cdb219134100659230c59709", "score": "0.7019221", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_AttachmentLangPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_AttachmentLangPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "23bdbbecfbf23e6a2e4cec0862882164", "score": "0.70097166", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CampaignTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(CampaignTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "5baa8928da7826ff9b198d6f6d4cf13d", "score": "0.7008184", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ArTaxCodeTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = ArTaxCodeTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "9e71d4d4d2b905790d5e8159c02e0ff5", "score": "0.7007661", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = RewardTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(RewardTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "f2e00f3b7a7b263e2cbde7ae2cfbbc2d", "score": "0.7006271", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TabUfPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TabUfPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "326fc1da2390071cd3171e276c41340f", "score": "0.7004096", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = JobPacketsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(JobPacketsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "3586586f3a8d2351fdfd043d5f3daf51", "score": "0.7000183", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ContractTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ContractTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "8e83d2fda52446895c1966910e889d4a", "score": "0.6998269", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(OffersTableMap::DATABASE_NAME);\n }\n\n $this->basePreSelect($con);\n\n if (\n $this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n }\n\n if ((null !== ($obj = OffersTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {\n // the object is already in the instance pool\n return $obj;\n }\n\n return $this->findPkSimple($key, $con);\n }", "title": "" }, { "docid": "5a348b1bf90f8bb6ae0a26c11de90ae4", "score": "0.6998148", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ProductTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(ProductTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "031a6a83a264aba8b75ff717ac9f49c5", "score": "0.69934624", "text": "public function findPk($key, $con = null)\n {\n if ((null !== ($obj = TarefaActionPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && $this->getFormatter()->isObjectFormatter()) {\n // the object is alredy in the instance pool\n return $obj;\n } else {\n // the object has not been requested yet, or the formatter is not an object formatter\n $criteria = $this->isKeepQuery() ? clone $this : $this;\n $stmt = $criteria\n ->filterByPrimaryKey($key)\n ->getSelectStatement($con);\n return $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n }\n }", "title": "" } ]
05a8723660fec6818b9dc030e7990261
Get the active class if the current route is in haystack routes.
[ { "docid": "cba961428e90e3a7f5b97cd16316c73d", "score": "0.0", "text": "public function route($routes, $class = null, $fallback = null)\n {\n return $this->getCssClass(\n $this->isRoute($routes),\n $class,\n $fallback\n );\n }", "title": "" } ]
[ { "docid": "b8ffc3e7f7d6ecc99852273823aadd1c", "score": "0.7199648", "text": "function get_active_class()\n{\n\treturn call_user_func_array(array(request(),\"is\"),func_get_args()) ? 'active' : '' ;\n}", "title": "" }, { "docid": "14baaa4ba7ee826bbf9477918934e05f", "score": "0.69304967", "text": "function is_active($class){\n $ci =& get_instance();\n if ($class == $ci->router->class){\n return 'active';\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "7825f38e66d51cee793c0c910fab6ff2", "score": "0.65514576", "text": "function set_active($current_path,$route_path,$active_class = ' class=\"active\"'){\n $route_path = urldecode($route_path);\n $current_path = urldecode($current_path);\n\n if(is_array($route_path)){\n return (in_array($current_path,$route_path))? $active_class : '';\n }\n\n if(strpos($route_path,'/*')){\n $route_path = str_replace('/*','',$route_path);\n return (strpos($current_path,$route_path)!==false) ? $active_class : '';\n }\n return ($current_path == $route_path) ? $active_class : '';\n}", "title": "" }, { "docid": "848691378ad42d3d85707f3cad5da7e6", "score": "0.6542957", "text": "function setActiveNav($route, $class)\n{\n if ($route != '/') {\n $route = trim(trim($route), '/');\n }\n\n if (request()->is($route)) {\n echo $class;\n }\n}", "title": "" }, { "docid": "ea07a14eb08039adaac4f0974b986c08", "score": "0.6409989", "text": "function activeClass($requestUri)\n{\n $current_file_name = basename($_SERVER['REQUEST_URI'], \".php\");\n\t\t\n\n if ($current_file_name == $requestUri)\n echo 'class=\"active\"';\n}", "title": "" }, { "docid": "2f1b2fcb25aa95a15728e270a8f29bff", "score": "0.64007324", "text": "function active_menu($controller){\n $ci = get_instance() ; \n $class = $CI->router->fetch_class();\n\n return ($class === $controller ) ? 'active' : '';\n \n }", "title": "" }, { "docid": "b39ba110aab2e5feecf09ee497fb3c18", "score": "0.6335598", "text": "function active($route)\n {\n if (!is_null($route)) {\n if (route($route) == \\Request::url()) {\n return 'active open';\n }\n }\n return $route;\n }", "title": "" }, { "docid": "7cfc87b554a5badde59fedc4b3263054", "score": "0.6248403", "text": "function get_current_controller()\n{\n\t$CI = &get_instance();\n\n\treturn $CI->router->fetch_class();\n}", "title": "" }, { "docid": "96c4541f509d69ed4431f3bb3ebe6244", "score": "0.6231121", "text": "function set_active($path, $class = 'active') {\n return call_user_func_array('Request::is', (array)$path) ? $class : '';\n}", "title": "" }, { "docid": "a08c822ef43840405a55ca9cd16b2d80", "score": "0.6207869", "text": "function getmenuClass($url)\n{\n if(current_url()==$url)\n {\n return \"active\";\n }\n\n return \"\";\n}", "title": "" }, { "docid": "a18cfea02ef725150f3e537bf3ec8590", "score": "0.6084858", "text": "public static function active($route, $class = 'lna')\n {\n if (URL::current() === route($route)) {\n return $class;\n }\n\n return '';\n }", "title": "" }, { "docid": "a100d69b2e84071ae9537e0a5ca9b17b", "score": "0.6072523", "text": "function checkActive($curr){\n\t$rname = Route::current()->getName();\n\t/*if($curr == $rname)\n\t\techo 'active-menu';*/\n}", "title": "" }, { "docid": "a808540e519b98d90979a58707848daa", "score": "0.6062329", "text": "function activate_menu($controller) {\r\n $CI = get_instance();\r\n // Getting router class to active.\r\n $class = $CI->router->fetch_class();\r\n \r\n return ($class == $controller) ? 'active' : '';\r\n }", "title": "" }, { "docid": "c0c28fa2f43821c2b36697d0690f9184", "score": "0.60278404", "text": "function activate_menu($controller) {\r\n // Getting CI class instance.\r\n $CI = get_instance();\r\n // Getting router class to active.\r\n $class = $CI->router->fetch_class();\r\n return ($class == $controller) ? 'active' : '';\r\n }", "title": "" }, { "docid": "ec718efeabf5f83221d6a15b9dc7d943", "score": "0.6027834", "text": "public function getActiveClass(): string\n {\n return $this->activeClass;\n }", "title": "" }, { "docid": "9494225906bc6e1a271c7df54154377b", "score": "0.6027492", "text": "function setActive($path)\n{\n return Request::is($path) ? 'active' : '';\n // return Request::route()->getUri() == strtolower($path) ? 'active' : '';\n}", "title": "" }, { "docid": "a22df692ba9313c49c8fa9f02fc7e225", "score": "0.60226715", "text": "public function getActiveRoute()\n {\n return $this->_activeRoute;\n }", "title": "" }, { "docid": "3dbd5899e0062ce861a6d4412dee2e25", "score": "0.6011996", "text": "public function get_class()\n {\n if (version_compare(APP_VER, '2.8', '>='))\n {\n return ee()->router->class;\n }\n else\n {\n return ee()->input->get_post('C');\n }\n }", "title": "" }, { "docid": "d666957752f1f2c856c89bdac6205469", "score": "0.5975598", "text": "function isActiveRoute($route, $output = \"active\")\n{\n if (Route::currentRouteName() == $route) return $output;\n}", "title": "" }, { "docid": "3e95a6f9d74e00f6ef020315ce0e4d29", "score": "0.59750885", "text": "public function getCurrentRoute();", "title": "" }, { "docid": "c955ecf21c062e95337bfbc9aba3713a", "score": "0.59454715", "text": "function set_active($path,$active_class = 'active')\n{\n return Request::is($path) ? \"class=$active_class\" : '';\n}", "title": "" }, { "docid": "d10f2ce921eada0b3529b958f382774c", "score": "0.5940175", "text": "function route_class()\n{\n return str_replace('.', '-', Route::currentRouteName());\n}", "title": "" }, { "docid": "317d95156bce40fd95fafc8334df0fe7", "score": "0.59087884", "text": "protected function find_class($uri)\n\t{\n\t\t$uri_array = explode('/', trim($uri, '/'));\n\t\t$uri_array = array_map(function($val) { return ucfirst(strtolower($val)); }, $uri_array);\n\t\twhile ($uri_array)\n\t\t{\n\t\t\tif ($controller = $this->app->find_class('Controller', implode('/', $uri_array)))\n\t\t\t{\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t\tarray_unshift($this->segments, array_pop($uri_array));\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2f7947475ac7bec38bd5c6b32d84f4d7", "score": "0.5841028", "text": "function simple_nav_get_class_if_active ($myid, $mytype) {\n\t\tglobal $CFG, $PAGE;\n\t\t$myclass = null;\n\n\t\tif ($mytype == null && ($PAGE->pagetype <> 'site-index' && $PAGE->pagetype <>'admin-index')) {\n\t\t\treturn $myclass;\n\t\t}\n\t\telseif ($mytype == null && ($PAGE->pagetype == 'site-index' || $PAGE->pagetype =='admin-index')) {\n\t\t\t$myclass = ' active_tree_node';\n\t\t\treturn $myclass;\n\t\t}\n\t\telseif (!$mytype == null && ($PAGE->pagetype == 'site-index' || $PAGE->pagetype =='admin-index')) {\n\t\t\treturn $myclass;\n\t\t}\n\t\telse {\n\t\t\tif(!empty($this->page->cm->id)){\n\n\t\t\t\t$modid = $this->page->cm->id;\n\n\t\t\t} else {\n\n\t\t\t\t$modid = false;\n\n\t\t\t}\n\t\t\tif ($mytype == 'module' && substr($PAGE->pagetype,0,3) == 'mod' && $myid == $modid) {\n\t\t\t\t$myclass = ' active_tree_node';\n\t\t\t\t\n\t\t\t\treturn $myclass;\n\t\t\t}\n\t\t\telseif ($mytype == 'course' && $myid== $this->page->course->id) {\n\t\t\t\t$myclass = ' active_tree_node';\n\n\t\t\t\treturn $myclass;\n\t\t\t}\n\t\t\telseif (isset($this->page->category->path)) {\n\t\t\t\t$mypath = explode('/',$this->page->category->path);\n\t\t\t\tif ($mytype == 'category' && ($myid== $this->page->category->id || in_array($myid,$mypath))) {\n\t\t\t\t\t$myclass = ' active_tree_node';\n\t\t\t\t\treturn $myclass;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7b8f9652b765b49df801cc161c0d2cbc", "score": "0.5761313", "text": "public function getControllerClass() {\n\n if (is_array($this->uriArray)) {\n\n return $this->uriArray[0];\n\n }\n\n return \"\";\n\n }", "title": "" }, { "docid": "f43edaeb7f19e126bb88025214bb5b6f", "score": "0.5742117", "text": "public function routeMatch ()\r\n {\r\n /* @var $serviceManager \\Zend\\ServiceManager\\ServiceManager */\r\n $serviceManager = $this->getServiceLocator();\r\n return $serviceManager->get('Application')\r\n ->getMvcEvent()\r\n ->getRouteMatch();\r\n }", "title": "" }, { "docid": "38778d8e7cf96c7d607c1e804f6d39db", "score": "0.5730184", "text": "public static function active($routes)\n\t{\n\t\tif(is_array($routes))\n\t\t{\t\n\t\t\tforeach($routes as $route)\n\t\t\t{\n\t\t\t\tif(Request::is($route))\n\t\t\t\treturn 'active';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$route = $routes;\n\t\t\tif(Request::is($route))\n\t\t\treturn 'active';\n\t\t}\n\t}", "title": "" }, { "docid": "b3d59fd1f57393d1d0660e28cd4a0c1e", "score": "0.5711641", "text": "public function isActive($class = '')\n {\n $isActive = false;\n if(in_array($this->menuLinkID, self::getActiveIDs())) {\n $isActive = true;\n }\n if($isActive && $class) {\n return $class;\n }\n\n return $isActive;\n }", "title": "" }, { "docid": "b4006695fd2b0a4b3916d5ca7e2a672d", "score": "0.56881696", "text": "function setActive($path)\n\t{\n\t return Request::is($path . '*') ? ' class=active' : '';\n\t}", "title": "" }, { "docid": "fbc77151a46122ea0a159242925b4b1d", "score": "0.56881213", "text": "private function activeMenuByRouteName($currentRoute)\n {\n $routes = array(\n 'Profile' => array(\n 'user.*',\n ),\n 'Projects' => array(\n 'project.*',\n ),\n 'Issues' => array(\n 'issue.*',\n ),\n );\n\n foreach ($routes as $key => $route) {\n $regexp = sprintf('/^(%s)$/', implode('|', $route));\n\n if (preg_match($regexp, $currentRoute)) {\n return $key;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "7dd5f09fb9c48051542fd6fbb3e49e55", "score": "0.56681615", "text": "function activate_menu($menu) {\n\t$uri = get_slug();\n\t// Getting router class to active.\n\t$sub_menu_items = $menu['sub_menu_items'];\n\t$thisMenuSlugs = array_column($sub_menu_items, 'slug');\n\t$thisActive = '';\n\tif(in_array($uri,$thisMenuSlugs))\n\t{\n\t\t$thisActive = 'active';\n\t}\n\treturn $thisActive;\n }", "title": "" }, { "docid": "5110fe66f4147ae444aae1092735bf59", "score": "0.56366986", "text": "function isCurrentPageProuduct($url, $class = \"current\")\r\n{\r\n $url = array(\r\n 'san-pham', 'san-pham/*',\r\n 'products', 'products/*'\r\n );\r\n\r\n if (!is_array($url)) {\r\n $check = request()->is($url);\r\n return $check ? $class : \"\";\r\n } else {\r\n foreach ($url as $key => $value) {\r\n if (request()->is($value)) {\r\n return $class;\r\n }\r\n }\r\n }\r\n return \"\";\r\n}", "title": "" }, { "docid": "2c0ff8a8215eac2069fa5a883ebeadaa", "score": "0.5635576", "text": "function lroute_get_controller()\n\t{\n\t\t$route = lroute_get_routed();\n\t\t$uri = luri_get();\n\n\t\tif ($route)\n\t\t{\n\t\t\t$route_array = split(\"/\", $route);\n\t\t\treturn $route_array[0];\n\t\t}\n\t\telse return false;\n\t}", "title": "" }, { "docid": "8379d0ae6ebb04ff95d6a790da1bd685", "score": "0.55906403", "text": "function active_class($condition, $activeClass = 'active', $inactiveClass = '')\n {\n return app('active')->getClassIf($condition, $activeClass, $inactiveClass);\n }", "title": "" }, { "docid": "91d9f2b6cdc9c879e05c3837a60234ee", "score": "0.5587723", "text": "function modifyUrlAndClass($requestUri)\r\n{\r\n $current_file_name = basename($_SERVER['REQUEST_URI'], \".php\"); \r\n if ($current_file_name == $requestUri)\r\n echo 'class=\"active\"';\r\n}", "title": "" }, { "docid": "a0f26774f858a9767d215ea989bad541", "score": "0.554118", "text": "public static function is($name)\r\n\t{\r\n\t\treturn static::$app['router']->currentRouteNamed($name);\r\n\t}", "title": "" }, { "docid": "bcbe0532da918b6ca88b278ab9739a35", "score": "0.55380255", "text": "function url_starts_with($url, $class = 'active')\n {\n return starts_with(Request::path(), $url) ? $class : '';\n }", "title": "" }, { "docid": "e3d1fd1b63dc063952f86b8285461773", "score": "0.5515456", "text": "function active_controller($target)\n\t{\n\t\tif (in_array($this->CI->uri->segment(1), $this->subidon))\n\t\t{\n\t\n\t\t if ($this->CI->uri->segment(1) == $target)\n\t\t {\n\t\t \treturn \"selected\";\n\t\t }\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "470fd40300a775aaedde03d055869cc1", "score": "0.55110425", "text": "function active($url)\r\n{\r\n\tif (Request::is($url . '/*') || Request::url() == URL::to($url))\r\n\t{\r\n\t\treturn 'active';\r\n\t}\r\n\treturn '';\r\n}", "title": "" }, { "docid": "2494cf38fc30a2f99dda66fd7dc79473", "score": "0.55091", "text": "public function getControllerOfRoute() {\n if($this->readThisRoute($this->getRoute())) {\n $c = $this->readThisRoute($this->getRoute());\n\n $controllerName = explode(\":\", $c[\"controller\"])[0].\"Controller\";\n $actionName = explode(\":\", $c[\"controller\"])[1].\"Action\";\n\n require_once(SRC_ROUTE.\"/Controller/\" .$controllerName.\".php\");\n $controllerWithNamespace = \"\\\\Controller\\\\\".$controllerName;\n $controller = new $controllerWithNamespace;\n\n if(!empty($c[\"arguments\"])){\n return call_user_func_array(array($controller, $actionName), $c[\"arguments\"]);\n } else {\n return $controller->$actionName();\n }\n }\n return null;\n }", "title": "" }, { "docid": "575bdde4ac57ac65113ce8ebe6b9c9dc", "score": "0.5497332", "text": "public function isActive($routes = array())\n {\n \t\n if (in_array('warranty',$routes) && Yii::$app->controller->action->id == \"warranty\"){\n return \"activeTop\";\n }else if (in_array('topickup',$routes) && Yii::$app->controller->action->id == \"pickup\"){\n return \"activeTop\";\n }\n \n }", "title": "" }, { "docid": "f3d2019928765af49aff5bff9eeffd05", "score": "0.54835975", "text": "public function isActive () {\n\t\treturn ($this->request->uri === $this->urlComponent);\n\t}", "title": "" }, { "docid": "dce4d59b3beb87ac5409195e1d256868", "score": "0.5475719", "text": "public function currentRoute(): Route\n {\n return $this->container->make(Route::class);\n }", "title": "" }, { "docid": "c52a3d1654c68d58141b3871cb8e79d4", "score": "0.5465615", "text": "function active_route($pattern, $output = \"active\")\n{\n return (\\Illuminate\\Support\\Facades\\Route::is($pattern)) ? $output : null;\n}", "title": "" }, { "docid": "98e07c15661249c741dc7314bcdbb3c7", "score": "0.5458996", "text": "function is_secondary_active($str){\n $ci =& get_instance();\n if ($str == $ci->uri->segment(2)){\n return 'active';\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "2ccb69de4c729455a125645466cf638c", "score": "0.54545873", "text": "public function isCurrent()\n {\n $currentUri = $this->getTree()->getCurrentUri();\n $external = preg_match('/^(https?:\\/\\/)?([a-z0-9-]+\\.)+[a-z]{2,6}(\\/.*)?$/i', $currentUri);\n \n if($external){\n $this->setMatchBy('url');\n }\n\n if($this === $this->getTree()->getCurrentItem()){\n if($external){\n $this->setMatchBy('route');\n }\n return true;\n }\n\n if($this->checkForCurrentModule()){\n if($external){\n $this->setMatchBy('route');\n }\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "81684906139ca93f7ef7e699b7f75692", "score": "0.54545397", "text": "public function getCurrentRoute(): ?Route;", "title": "" }, { "docid": "8efaad0cd54eb326938df17c61423cd2", "score": "0.545022", "text": "function add_current_nav_class($classes, $item) {\n global $post;\n\n if (!$post) {\n return $classes;\n }\n\n // Getting the post type of the current post\n $current_post_type = get_post_type_object(get_post_type($post->ID));\n $current_post_type_slug = $current_post_type->rewrite['slug'];\n\n // Getting the URL of the menu item\n $menu_slug = strtolower(trim($item->url));\n\n // If the menu item URL contains the current post types slug add the current-menu-item class\n if ($current_post_type_slug && strpos($menu_slug, $current_post_type_slug) !== false) {\n $classes[] = 'active';\n }\n\n // Return the corrected set of classes to be added to the menu item\n return $classes;\n}", "title": "" }, { "docid": "af5666151ec61583544c8a2fd74f4d19", "score": "0.5430202", "text": "public function isActive(Request $request = null) {\n $request = $request ?? request();\n $href = ltrim($this->href(false), '/');\n return $request->is($href, $href . '/*') ? 'active' : '';\n }", "title": "" }, { "docid": "5413089b171e9d8dadde1ec76d447b5f", "score": "0.54279053", "text": "public function active($routes, $class = null, $fallback = null)\n {\n return $this->getCssClass(\n $this->is($routes),\n $class,\n $fallback\n );\n }", "title": "" }, { "docid": "a0ba072703910b7099463c8b2ddd378c", "score": "0.5412975", "text": "function classActive($class){\n return $class == 'active_head' ? 'in' : '';\n}", "title": "" }, { "docid": "b77fc843bb03325bcd1a765e6d98e4f7", "score": "0.5404082", "text": "function is_active_controller($controller)\n{\n\t$CI = &get_instance();\n\n\tif ($CI->router->fetch_class() == $controller)\n\t{\n\t\treturn TRUE;\n\t}\n\n\treturn FALSE;\n}", "title": "" }, { "docid": "c3a90874c077be6714bc369862756eee", "score": "0.5395729", "text": "public function current() {\r\n return current($this->routes);\r\n }", "title": "" }, { "docid": "cd8b543e4cca76210ea22fdcd70e4da5", "score": "0.5393434", "text": "function class_active($lien)\n{\n $lien_self = 'http://localhost' . $_SERVER['PHP_SELF'];\n \n if($lien == $lien_self)\n {\n echo ' class=\"active\"';\n }\n \n}", "title": "" }, { "docid": "6fd0e98fd14b0e2c5acc5594f6dd57cc", "score": "0.5391542", "text": "public function getCurrentRouteName();", "title": "" }, { "docid": "a8206e1b2116b595bbb65511aa50b111", "score": "0.53627384", "text": "function whetherCurrentLink($link = '') \n{\n return (strpos($_SERVER['REQUEST_URI'],$link) !== false) ? 'active':'';\n}", "title": "" }, { "docid": "1be32fc480e18bd78f24799ff702fd21", "score": "0.5351745", "text": "public function getRoute(): string\n {\n return $this->activeRoute;\n }", "title": "" }, { "docid": "154551cf08cb03f90ad22630c8552683", "score": "0.53516704", "text": "function FoundationPress_active_nav_class( $classes, $item ) {\n if ( $item->current == 1 || $item->current_item_ancestor == true ) {\n $classes[] = 'active';\n }\n return $classes;\n}", "title": "" }, { "docid": "3001750500f62169f68061660c4ebc6b", "score": "0.53459567", "text": "public function matchPath($path)\n {\n $path = rtrim($path, \"/\");\n if($path == \"\") {\n $path = \"/\";\n }\n\n foreach($this->routes as $className => $info) {\n if(preg_match($info['matchPath'], $path) === 1) {\n return $className;\n }\n }\n \n return null;\n }", "title": "" }, { "docid": "a474185eb086e8c8621f30ce146780c3", "score": "0.53404677", "text": "function required_active_nav_class( $classes, $item ) {\n if ( $item->current == 1 || $item->current_item_ancestor == true ) {\n $classes[] = 'current_page_item';\n }\n \n return $classes;\n}", "title": "" }, { "docid": "3f5016e7bb5c69e7b9b4bec345611c8e", "score": "0.5321717", "text": "function activate_sub_menu($slug){\n\t$uri = get_slug();\n\t// Getting router class to active.\n\t$thisActive = '';\n\tif($uri==$slug)\n\t{\n\t\t$thisActive = 'active';\n\t}\n\treturn $thisActive;\n }", "title": "" }, { "docid": "2fa068cc62660e2fb137c1f45112f3ce", "score": "0.5309768", "text": "public function getCurrentRoute()\n {\n return $this->current();\n }", "title": "" }, { "docid": "f52e605e78ba4d98b3dd0632789fd44f", "score": "0.52912825", "text": "public function current()\n {\n return $this->currentRoute;\n }", "title": "" }, { "docid": "c64b2a0c3ada2fe945bea6d618860af6", "score": "0.5284883", "text": "public function IsActive() {\n\t\t$inst = GoogleSitemapGenerator::GetInstance();\n\t\treturn ($inst != null && $inst->isActive);\n\t}", "title": "" }, { "docid": "fb881cd630a8c9e35d322a26aef5657a", "score": "0.5283911", "text": "function getActiveHeaderClass()\n\t{\n\t\treturn $this->active_headerclass;\n\t}", "title": "" }, { "docid": "7e7a8d58786f2c96b5dddaad08404dfd", "score": "0.52608526", "text": "abstract public function getRouteGeneratorClass() : string;", "title": "" }, { "docid": "32b067c311600597bb268861e047f665", "score": "0.52544045", "text": "function isActiveRoute($route, $output = \"active\")\n {\n if (Route::currentRouteName() == $route) {\n return $output;\n }\n }", "title": "" }, { "docid": "e023cca1c2a1abdc87f5af3f83ed3c0f", "score": "0.524605", "text": "function _is_active($page, $current, $justClass = false)\n{\n $page = strtolower($page);\n $current = strtolower($current);\n\n if ($page === $current && $justClass) return 'active';\n\n return ($page === $current) ? 'class=\"active\"' : '';\n}", "title": "" }, { "docid": "213a839d13cce87edf03de14eced9e2b", "score": "0.52310735", "text": "public function activeLinkClass($routeName, $activeClassName = 'active', $inactiveClassName = \"\")\n {\n if ($this->requestStack->getCurrentRequest()->attributes->get('_route') === $routeName) {\n return $activeClassName;\n }\n\n return $inactiveClassName;\n }", "title": "" }, { "docid": "de6b15a287c4d00a844108b093394047", "score": "0.5229289", "text": "public function routeCurrentRequest() {\n $path = $this->currentRequest->getPathInfo();\n \n $matched = $this->sfRouter->match($path);\n $this->currentRoute = $matched['_route'];\n \n return $matched;\n }", "title": "" }, { "docid": "da0d87c0133177933bed9f9039668f87", "score": "0.5201955", "text": "public static function getClass()\r\n {\r\n return get_called_class();\r\n }", "title": "" }, { "docid": "66b06b32234a16a1bac3dc38a24dca25", "score": "0.5198749", "text": "function current_page($uri = \"/\") {\n return strstr(request()->path(), $uri);\n }", "title": "" }, { "docid": "35a48489e38df21644e3823c59a44b67", "score": "0.5184913", "text": "function active($arg){\r\n\tglobal $page;\r\n\tif($page == $arg){\r\n\t\treturn 'class=\"active\"';\r\n\t}\r\n}", "title": "" }, { "docid": "5d310527a0ed67fca948b1436401c610", "score": "0.5184192", "text": "function set_active($path, $active = 'active') \n{\n return call_user_func_array('Request::is', (array) $path) ? $active : '';\n}", "title": "" }, { "docid": "4efce0d1b820a5a87ec6c99c7a8cb333", "score": "0.5176326", "text": "public function checkIfActivePage($requestUri)\n\t{\n\t\tpreg_match('@^(?:/projekte/k-k/)?([^/]+)@i',\n\t \t$_SERVER['REQUEST_URI'], $match);\n\n\t if ($match['1'] == $requestUri)\n\t echo 'active';\n\t}", "title": "" }, { "docid": "448812637073c75e0dcd7fe0a58f52f0", "score": "0.5175487", "text": "function get_controller_classname( &$uri_array){\r\n\t$controller = array_shift($uri_array);\r\n\treturn ucfirst($controller);\r\n}", "title": "" }, { "docid": "8ea987c27ce93b9805da4e458f218b18", "score": "0.51645494", "text": "public function getCurrentRoute()\n {\n if ($this->currentRoute !== null) {\n return $this->currentRoute;\n }\n\n if (is_array($this->addRouteedRoutes) && count($this->addRouteedRoutes) > 0) {\n return $this->addRouteedRoutes[0];\n }\n\n return null;\n }", "title": "" }, { "docid": "b2a1fa3e25b0e16982db74f0232dd793", "score": "0.51524216", "text": "private function getActive() {\r\n\t\t$path = $_SERVER['SCRIPT_NAME'];\r\n\t\treturn substr($path,strrpos($path,\"/\")+1,strlen($path));\r\n\t}", "title": "" }, { "docid": "ba0ec03f5cceeeb29129de6b32a9d8ab", "score": "0.5149938", "text": "function isActiveRoute($route, $paramName = NULL, $paramValue = NULL, $output = ' active')\n{\n if (Route::currentRouteName() == $route) {\n if ($paramName != NULL && $paramValue != NULL && Route::input($paramName)->id != $paramValue->id)\n return NULL;\n\n return $output;\n }\n\n return NULL;\n}", "title": "" }, { "docid": "d04395a3be1e4693a7f0dd49df026e05", "score": "0.5143663", "text": "public function currentClass()\n {\n return $this->hasOne(StudentClass::class)->where('session_id',active_session()->id);\n }", "title": "" }, { "docid": "f3fd5e33eded60aa5a787e98819482be", "score": "0.5142988", "text": "public function getClass()\n {\n $class = null;\n\n if ($this->lookupType == self::LT_PATH) {\n // TODO handle this case\n }\n\n if ($this->lookupType == self::LT_NAME) {\n if ($this->resourceType == self::RT_CLASS) {\n $class = $this->lookup;\n }\n\n if ($this->resourceType == self::RT_SERVICE) {\n $class = $this->getServiceClass($this->lookup);\n }\n }\n\n if (!$class) {\n throw new \\InvalidArgumentException(sprintf('Unable to find class of %s \"%s\"', $this->resourceType, $this->lookup));\n }\n\n return $class;\n }", "title": "" }, { "docid": "7eb282bc18e2c2f26f055fd24c9af520", "score": "0.51388186", "text": "public function useCurrentRoute() {\n return $this->route($this->router->currentRouteName(), $this->router->getCurrentRoute()->getParameters(), true);\n }", "title": "" }, { "docid": "6683e9f5cebc43f3354adf8225dc0ffc", "score": "0.5137179", "text": "function wpml_active() {\n return class_exists( 'SitePress' );\n}", "title": "" }, { "docid": "188b1d582456306b14bbfbe3bba16fe2", "score": "0.51272744", "text": "function get_current_menu($mnu){\r\n $CI =& get_instance();\r\n $current_mnu = $CI->session->userdata('MENU');\r\n if($current_mnu == $mnu){\r\n return 'class=\"active\"';\r\n }\r\n return '';\r\n}", "title": "" }, { "docid": "a20e72b73c96f5c3dc6d7808c46e12ea", "score": "0.51263696", "text": "function menu_set_current_area()\n{\n static $currentArea;\n\n if (func_num_args() > 0) {\n $currentArea = func_get_arg(0);\n }\n\n if ($currentArea === null) {\n $CI =& get_instance();\n if (isset($CI->uri->segments[1])) {\n $currentArea = $CI->uri->segments[1];\n } else {\n $currentArea = 'home';\n }\n }\n\n return $currentArea;\n}", "title": "" }, { "docid": "0664130b13aa51d36662cf260226bc80", "score": "0.5123977", "text": "protected function isActiveByRoutes()\n {\n if (!$this->routes_activate) {\n return false;\n }\n\n $rules = array_wrap($this->routes_activate);\n $route_name = request()->route()->getName();\n\n return in_array($route_name, $rules);\n }", "title": "" }, { "docid": "60ee92223a3ed23a3a3ad045becc683b", "score": "0.51196694", "text": "final protected function get_called_class()\r\n\t{\r\n\t\t$backtrace = debug_backtrace();\r\n\t\treturn get_class($backtrace[2]['object']);\r\n\t}", "title": "" }, { "docid": "8daab2a12c3930cbbb2de366938805c0", "score": "0.51172817", "text": "function special_nav_class ($classes, $item) {\n if (in_array('current-menu-item', $classes) ){\n $classes[] = 'active ';\n }\n return $classes;\n}", "title": "" }, { "docid": "dc139b6f430e09bdb98b0ef11db2e425", "score": "0.51093197", "text": "function get_called_class() {\n\t\t$bt = debug_backtrace();\n\t\t$l = 0;\n\t\tdo {\n\t\t\t$l++;\n\t\t\t$lines = file( $bt[ $l ]['file'] );\n\t\t\t$callerLine = $lines[ $bt[ $l ]['line'] - 1 ];\n\t\t\tpreg_match( '/([a-zA-Z0-9\\_]+)::' . $bt[ $l ]['function'] . '/', $callerLine, $matches );\n\t\t} while( $matches[1] === 'parent' && $matches[1] );\n\n\t\treturn $matches[1];\n\t}", "title": "" }, { "docid": "e8855c09a72ba0850a6e2c47b64a87b5", "score": "0.5091051", "text": "public static function getClass()\n\t{\n\t\treturn get_called_class();\n\t}", "title": "" }, { "docid": "7f74301a2c420f6c3dc57c872593eabb", "score": "0.508579", "text": "protected function isActiveByRoutesParts()\n {\n if (!$this->routes_parts) {\n return false;\n }\n\n $route_name = request()->route()->getName();\n\n foreach ($this->routes_parts as $group) {\n if (strpos($route_name, $group) !== false) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "d36ab47d29a5744274512ca8e7266b4c", "score": "0.5081922", "text": "function checkActive($path, $active = 'active') {\n if (is_string($path)) {\n return request()->is($path) ? $active : '';\n }\n foreach ($path as $str) {\n if (checkActive($str) == $active)\n return $active;\n }\n}", "title": "" }, { "docid": "72b906ec24b35bb3aa220c77bf3eaae4", "score": "0.50786084", "text": "public function getController(): ?string {\r\n return $this -> routeEntity -> getController();\r\n }", "title": "" }, { "docid": "d2bf8f178d2277a62473f9d32f7bb7fd", "score": "0.5070609", "text": "public function getFirstRoute();", "title": "" }, { "docid": "2a7e341f5d1ec731d38014bd0478c7cb", "score": "0.50695115", "text": "function isInRouteName($routePart, $output = ' active')\n{\n if (strpos(Route::currentRouteName(), $routePart) !== false)\n return $output;\n\n return NULL;\n}", "title": "" }, { "docid": "b630eca7eb61d84c452d608de3a5a141", "score": "0.5053318", "text": "public function active()\n {\n return isset($this->data[__FUNCTION__]) ? $this->data[__FUNCTION__] : null;\n }", "title": "" }, { "docid": "a8b4e7eefe64736b2a65685f3b135519", "score": "0.50467724", "text": "function is_route($route){\n\t\treturn Handler::$base_request == $route;\n\t}", "title": "" }, { "docid": "d077d5d9445346d74e4666651eec67b8", "score": "0.50437677", "text": "function get_instance()\n {\n if(class_exists('Application\\\\Core\\\\Controller', FALSE))\n {\n return Application\\Core\\Controller::get_instance();\n }\n elseif(class_exists('System\\\\Core\\\\Controller', FALSE))\n {\n return System\\Core\\Controller::get_instance();\n }\n else\n {\n return FALSE;\n }\n }", "title": "" }, { "docid": "47f5cbc077557a84c262a5e98eda783b", "score": "0.5040284", "text": "public function getMatchedRoute();", "title": "" }, { "docid": "76923f94d4f22e580353cbee0d0eb736", "score": "0.5027334", "text": "public function getActiveSite() {\n\t\tif($this->owner->config()->use_active_site_session) {\n\t\t\treturn Multisites::inst()->getActiveSite();\n\t\t} else {\n\t\t\tif($this->modelIsMultiSitesAware()) {\n\t\t\t\tif($active = $this->owner->getRequest()->getSession()->get($this->getActiveSiteSessionKey())) {\n\t\t\t\t\treturn Site::get()->byID($active);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b92e5b4f35d4be3a184dbfa2f77be24a", "score": "0.5024965", "text": "function active_menu($where){\n $content = filter_input(INPUT_GET, 'content', FILTER_SANITIZE_STRING);\n \n if($where === 'home' && empty($content)) return 'active';\n else if ($where === $content) return 'active';\n else return '';\n}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "79a2f843619464e0c5b82079de7d738a", "score": "0.0", "text": "public function destroy($id)\n {\n $result = PaymentType::find($id)->delete();\n if($result){\n $response['status'] = 'success';\n $response['message'] = 'Successfully Delete Payment Type';\n }else{\n $response['status'] = 'failed';\n $response['message'] = 'Unsuccessful to Delete Payment Type';\n }\n return json_encode($response);\n }", "title": "" } ]
[ { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "4dafcd8b3f56d04ade79ab84f74387a5", "score": "0.69165355", "text": "public function remove(IUser $user, ?IResource $resource): void\n {\n $hash = $this->hash($user, $resource);\n $this->storage->remove($hash);\n }", "title": "" }, { "docid": "472e75253a82e723642cd346e42766dc", "score": "0.689976", "text": "public function unpublishResource(Resource $resource);", "title": "" }, { "docid": "8c567209f449643b019402d25cb3a0e6", "score": "0.67117244", "text": "public function remove($storageOption);", "title": "" }, { "docid": "33495d1267888d9c13c56a2f54ae7981", "score": "0.6666395", "text": "public function destroy(Resource $resource)\n {\n $user = auth()->user();\n\n if ($resource->Course->User == $user or $user->role == 'Admin' ) {\n\n $file_path='storage/resources/'.$resource->attachment;\n if (file_exists($file_path)) {\n $resource->delete();\n unlink($file_path);\n abort(204); //Requête traitée avec succès mais pas d’information à renvoyer. \n }\n abort(403);\n }\n\n abort(401);\n }", "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": "0ee612316b7ece599a599780a7558aaf", "score": "0.6615533", "text": "public function deleteResource(){\n\t\tif(isset($this->posts[\"src\"])){\n\t\t\t$src = $this->posts[\"src\"];\n\t\t\tif(file_exists($src))\n\t\t\t\tunlink($src);\n\t\t}elseif(isset($this->posts[\"img_src\"])){\n\t\t\t$src = $this->posts[\"img_src\"];\n\t\t\tif(file_exists($src))\n\t\t\t\tunlink($src);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3198b8a0f2716ad40da9a8a62bebf688", "score": "0.65721023", "text": "protected function remove_storage()\n {\n }", "title": "" }, { "docid": "dc2df99962575c3f0211b8228c540b4e", "score": "0.6562633", "text": "public function remove($uri)\n {\n unset($this->resources[$uri]);\n }", "title": "" }, { "docid": "6b97aa4b089b5fe95bf08521013640ac", "score": "0.64774114", "text": "function hook_cloudinary_stream_wrapper_resource_delete(array $resource) {\n if (isset($resource['public_id'])) {\n if ($storage_class = cloudinary_storage_class()) {\n $storage = new $storage_class($resource);\n list($path, $file) = $storage->resourceUpdate(FALSE);\n\n if ($resource['mode'] == CLOUDINARY_STREAM_WRAPPER_FILE) {\n $storage->folderUpdate($path, array(CLOUDINARY_STORAGE_REMOVE => $file));\n }\n }\n }\n}", "title": "" }, { "docid": "1e8cf2db14c80b19d70f4741a30df900", "score": "0.64165723", "text": "private function deleteOne()\n {\n optional($this->instance->image)->removeFromStorage($this->instance->image);\n\n $this->instance->delete();\n }", "title": "" }, { "docid": "8d21a30b7e8135aae2724ca63410e913", "score": "0.6372442", "text": "public function unpublishResource(PersistentResource $resource)\n {\n try {\n $objectName = $this->keyPrefix . $this->getRelativePublicationPathAndFilename($resource);\n $this->storageService->objects->delete($this->bucketName, $objectName);\n $this->systemLogger->log(sprintf('Successfully unpublished resource as object \"%s\" (MD5: %s) from bucket \"%s\"', $objectName, $resource->getMd5() ?: 'unknown', $this->bucketName), LOG_DEBUG);\n } catch (\\Google_Service_Exception $e) {\n if ($e->getCode() !== 404) {\n throw $e;\n }\n }\n }", "title": "" }, { "docid": "2fa852deb4200fa4ffe64ddcf6fe73e4", "score": "0.636192", "text": "function delete(string $resourceId);", "title": "" }, { "docid": "4eda806ad84b497f305439faec49b27d", "score": "0.6358891", "text": "public function removeResourceFile(Resource $resource)\n {\n $fs = new Filesystem;\n try {\n $fs->remove($this->getUploadedFilePath($resource));\n } catch (UnexpectedValueException $e) {\n // @todo log error\n }\n }", "title": "" }, { "docid": "55c732cc61cd0c51ab885bbf6faeefac", "score": "0.63369256", "text": "public function removeAvatarResource($resource): bool;", "title": "" }, { "docid": "0125b2b138f7471b5a7daa4462593d66", "score": "0.6309427", "text": "public function destroy(Resource $resource)\n {\n //\n $this->authorize('delete', $resource);\n $resource->delete();\n return redirect('/resource');\n }", "title": "" }, { "docid": "f401492e75ca4c7ef776750aa5c51a46", "score": "0.62508374", "text": "public function removeUnderlyingResource($key);", "title": "" }, { "docid": "5da558e39fa239885e68b2d3431874d2", "score": "0.6163051", "text": "public function delete(string $resource)\n {\n $client = $this->getClient();\n $response = $client->delete(\"{$resource}\");\n return $this->result($response);\n }", "title": "" }, { "docid": "8d8d886ed1a4286839ba3968f6b69e35", "score": "0.61367285", "text": "protected function removeFromStorage($path)\n {\n if (Storage::exists($path)) {\n Storage::delete($path);\n }\n }", "title": "" }, { "docid": "d4f932fe5d33ab4124d1b00f3a93fa4a", "score": "0.6116284", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "3f6971bf8beba53671c4459991d4c502", "score": "0.6068753", "text": "public function removeResource($resource_id)\r\n {\r\n $logicNestedSet = new DragonX_NestedSet_Logic_NestedSet();\r\n $logicNestedSet->removeNode(\r\n new DragonX_Acl_Record_Resource($resource_id)\r\n );\r\n }", "title": "" }, { "docid": "01426e85ec00691416a7f655882c5af8", "score": "0.6051162", "text": "public function unlink(\\resource $context=null)\n {\n $this->checkReadable();\n if (null===$context)\n return \\unlink($this->path);\n return \\unlink($this->path, $context);\n }", "title": "" }, { "docid": "8b25ec91f92381b5e25bc75c03129532", "score": "0.6050952", "text": "public static function remove($filename){\n\n //check if file exists in storage public directory to avoid exception\n if( Storage::disk('public')->exists(\"$filename\") ){\n \n //delete oldfile using Storage @storage/app/public folder\n Storage::delete(\"public/$filename\");\n\n }//END exists\n\n \n }", "title": "" }, { "docid": "67bb6156ba52c0470fede15844ccd953", "score": "0.6024124", "text": "public function destroy($id)\n {\n $get=Social::where('id',$id)->first();\n if($get->icon!=null){\n unlink('storage/'.$get->icon);\n }\n $get->delete();\n return redirect()->route('listSocial');\n }", "title": "" }, { "docid": "8774fbdb26187176fa3c5c968af039d4", "score": "0.5983405", "text": "public function destroy( $resource)\n { \n $resource = RequiredDocument::find($resource); \n try {\n /*if ($requiredDocument->studentRequiredDocuments()->count() > 0) {\n notify()->error(__('cant delete data depend on data'), \"\", \"bottomLeft\"); \n return redirect()->route('required_documents.index');\n }*/ \n $resource->delete(); \n } catch (\\Exception $th) {\n return responseJson(0, $th->getMessage());\n }\n return responseJson(1, __('done'));\n }", "title": "" }, { "docid": "96b32200ee9cea357d9bb7756c71dbb9", "score": "0.5981521", "text": "public function destroy($id)\n {\n $filepath = File::where('id',$id)->value('physical_path');\n // return $filepath;\n Storage::delete($filepath);\n\n File::where('id', $id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "4343db7632128a4a22e019d66e290dd7", "score": "0.59791505", "text": "function destroy( $resource ){\n\n softDelete( 'customers', $resource );\n\n redirect( route( 'customer' ) );\n\n}", "title": "" }, { "docid": "b4b047fecd9f126a805ce824c7515839", "score": "0.5946296", "text": "public function destroy(Resource $resource)\n {\n $result = $resource->delete();\n if ($result) {\n return redirect(route('admin.resource.index'))->with(\"success\", 'Ресурс успешно удален');\n } else {\n return redirect(route('admin.resource.index'))->with(\"error\", 'Ошибка сервера');\n }\n }", "title": "" }, { "docid": "bc05b93beec5d500f15183a184885ed1", "score": "0.5940284", "text": "function delete_resource($resource_id)\n\t{\n\t\t\n\t\t$this -> db -> where('id', $resource_id);\n\t\t if ($this -> db -> delete('gh_resource'))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t\n\t}", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "90136674b889c89e2c35715bc8fe8d7f", "score": "0.5913318", "text": "public function delete(\\resource $context=null)\n {\n return $this->unlink($context);\n }", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "5811064cb5348a7d8234a1423fc04cf8", "score": "0.5904446", "text": "public function remove()\n {\n if ($this->currentIsExists()) {\n unlink($this->currentImage());\n $this->removeThumbs();\n }\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.589366", "text": "public function remove();", "title": "" }, { "docid": "e134b8fbd8cb5d6358f5601aad3b42b7", "score": "0.5851101", "text": "public function destroy($id)\n {\n $item = StoragePhoto::findOrFail($id);\n $oldFile = $item->file;\n $item->delete();\n Storage::disk('public')->delete('storage_photos/' . $oldFile);\n return redirect()->back();\n }", "title": "" }, { "docid": "d64670e4005c362bc99c1ff13c3761c8", "score": "0.58252704", "text": "public function deleteDataStorage($name);", "title": "" }, { "docid": "100faa416ac8af24f2dde9c9c9c5ece8", "score": "0.5825043", "text": "public function destroy($id)\n {\n unlink('.'.backing::find($id)->img);\n backing::destroy($id);\n Session::flash('warning','Removido');\n return redirect()->route('home');\n }", "title": "" }, { "docid": "daf533646ad26ec870c4d404b6612873", "score": "0.5816415", "text": "public function destroy($id)\n {\n $Supplier = Supplier::findOrFail($id);\n $photo = $Supplier->photo;\n if ($photo) {\n unlink($photo);\n Supplier::findOrFail($id)->delete(); \n }else{\n Supplier::findOrFail($id)->delete();\n }\n }", "title": "" }, { "docid": "38bf577586a27897b1f11e08b3eac6db", "score": "0.58083075", "text": "public function deallocate_resource_from_user($resource_id);", "title": "" }, { "docid": "596fbb42123cc857bd6e6415ba467f80", "score": "0.5792648", "text": "public function delete() {\n\t\tif ( file_exists( $this->path ) ) {\n\t\t\tunlink( $this->path );\n\t\t}\n\t}", "title": "" }, { "docid": "cc42a160a9315cdd157733240e749135", "score": "0.57910043", "text": "public function remove($entity): void;", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "3e75cf5e9dcd8f7f83bb797e00a4d05a", "score": "0.5761397", "text": "public function destroy($id)\n {\n $this->resource->deleteResource($id);\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": "688f093af1318a2501cc247ca7d8367f", "score": "0.57133234", "text": "public function destroy($id)\n {\n $post = Post::find($id);\t \n\n $file = $post->image;\n\n $path = storage_path('app/'.$file);\n \n\n $exists = file_exists($path) ? 1 : 0;\n \n \n if($file !== null && $exists === 1){\n \tunlink($path); \t\n } \t\t\n\n \t$post->delete();\n \n return redirect()->back()->with([\"success\" => \"Record deleted successfully!\"]);\n }", "title": "" }, { "docid": "083e7dfea48105bfa6c48a83f2638dbe", "score": "0.57117677", "text": "public function remove() {\n\t\t\n\t\t# remove file\n\t\t\n\t\t# remove thumbnails\n\t\t$this->removeThumbnail();\n\t}", "title": "" }, { "docid": "b695acf41ab282c258621f938f86e9b3", "score": "0.5690479", "text": "public function delete_item($id)\r\n\t{\r\n\t $path = $this->conf->paths['storage'].\"/\".$id;\r\n if(!$this->item_exists($id))\r\n return NULL;\r\n unlink($path);\r\n $this->update_stat();\r\n\t}", "title": "" }, { "docid": "9a27084d0c40ba49ecc9c1b53b42577b", "score": "0.5680772", "text": "public function destroy(storage $storage)\n {\n $storage->delete();\n\n return redirect()->route('storage.index')->withStatus(__('storage successfully deleted.'));\n }", "title": "" }, { "docid": "2d32ad1b48ccfbc9bbe2ec2428b76e24", "score": "0.56783164", "text": "public function destroy($id)\n {\n // Delete image for onefile\n }", "title": "" }, { "docid": "bac810fba3fe0809cb7a87735ba98fbe", "score": "0.5670975", "text": "public function delete( $path );", "title": "" }, { "docid": "52f3cfac130ce94f9536db6fe17ad61d", "score": "0.567092", "text": "public function remove()\n {\n if( file_exists( $this->getPath().\"/\".$this->getTempFile() ) ) {\n\n unlink( $this->getPath().\"/\".$this->getTempFile() );\n\n }\n }", "title": "" }, { "docid": "9fcbbf7c57d3a426ed4209fed7807bad", "score": "0.56667215", "text": "public function delete($path): self;", "title": "" }, { "docid": "0a66405a41c344aee2f23a78621638d2", "score": "0.5640811", "text": "public function destroy($id)\n {\n $image = Image::whereId($id)->first();\n Storage::delete('storage/' . $image->image_url);\n $image->delete();\n return redirect()->back()->with('success', 'image deleted');\n }", "title": "" }, { "docid": "47582204edbd05b1d7427ba375b800cb", "score": "0.5636767", "text": "public function destroy($id)\n {\n $data = Slider::find($id);\n if (file_exists(imagePath().$data->sliderimg)) { \n unlink(imagePath().$data->sliderimg);\n }\n $delete=Slider::where('id','=',$id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "633fe257801634ace1ad6774eadec06a", "score": "0.563407", "text": "public function delete()\n {\n $this->erase();\n }", "title": "" }, { "docid": "5f783edc1594c1f8b50bfd3d8032ee86", "score": "0.56227064", "text": "function delete() {\n if (is_file($this->path) && file_exists($this->path) && is_writable($this->path)) {\n return unlink($this->path);\n }\n }", "title": "" }, { "docid": "368d6e77cc3e0998a2b5e5ad75228904", "score": "0.5614642", "text": "public function destroy($id)\n {\n $file = $this->fileProvider->findById($id);\n $file->delete();\n }", "title": "" }, { "docid": "abe945199308adcf5f0a508cfdef2673", "score": "0.56135803", "text": "public function delete(Resource $resource) {\n\t\t$class = get_class($resource);\n\t\t$table = strtolower(substr($class, strrpos($class, \"\\\\\") + 1));\n\t\t$criteria = $resource->getRequiredEqualities();\n\n\t\ttry {\n\t\t\t$this->driver->delete($table, $criteria);\n\t\t} catch (InvalidQueryException $exception) {\n\t\t\tthrow $exception; # Move it up the line.\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a063c5a5194ae38910605d903212fa5d", "score": "0.5605628", "text": "public function destroy($id)\n {\n $item = Products::find($id);\n $origin_img = $item->img;\n if(Storage::disk('public')->exists($origin_img)){\n Storage::disk('public')->delete($origin_img);\n }\n $item->delete();\n return redirect('home/product');\n }", "title": "" }, { "docid": "e40139292b4af4dae5afad336cfab701", "score": "0.5594869", "text": "function remove($resource_id){\n //this primarily means remove links for this Resource\n\n DB::db_query(\"delete_resource_links\", \"DELETE FROM links WHERE from_id='\".$resource_id.\"' AND (\n type = '\".get_link_as_constant(\"RESOURCE_IN_CATEGORY\").\"' \n OR type='\".get_link_as_constant(\"RESOURCE_OF_USER\").\"'\n OR type='\".get_link_as_constant(\"RESOURCE_OF_GROUP\").\"');\");\n if(DB::db_check_result(\"delete_resource_links\") > 0){\n //success\n } \n \n }", "title": "" }, { "docid": "4d9a698ed0ccf2cc8ec46d04467cd7ec", "score": "0.5586516", "text": "public function remove(Payload $payload): void\n {\n $this->storage->destroy($this->getKey($payload));\n }", "title": "" }, { "docid": "e987c7f11e89bb4f6dc4dc023e24d763", "score": "0.5579811", "text": "public function remove(Object $entity);", "title": "" }, { "docid": "1accc3116856cce6a0b7ebddb6b796b8", "score": "0.55785817", "text": "public function destroy($id)\n\t{\n\t\tResource::destroy($id);\n\n\t\tSession::flash('delete', 'Resource Deleted');\n\t\treturn Redirect::to('resource');\n\t}", "title": "" }, { "docid": "430d1f771f7deee6de5a8179a0ce6389", "score": "0.55783314", "text": "public function destroy($id)\n {\n $item = Video::find($id);\n $path = str_replace('storage/', 'public/', $item->path);\n if (Storage::exists($path)) {\n Storage::delete($path);\n }\n $item->delete();\n }", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "6ad136b8bac727f66417bb1d762b6e97", "score": "0.5564964", "text": "public static function delete( $resource ) {\n $resource->assertLock();\n $resource->assertMemberLocks();\n $parent = $resource->collection();\n if (!$parent)\n throw new DAV_Status(DAV::HTTP_FORBIDDEN);\n $parent->assertLock();\n self::delete_member( $parent, $resource );\n}", "title": "" }, { "docid": "a2f1c01b0ea1d33119c1e555014fb703", "score": "0.5562198", "text": "public function destroy($id)\n {\n //\n $hizmetler = Hizmetler::where('id',$id)->first();\n\n if($hizmetler) {\n unlink(storage_path('app/public'.$hizmetler->image));\n $hizmetler->delete();\n\n\n\n return ['status'=>'ok','message'=>'Silme İşlemi Başarılı'];\n }\n return ['status'=>'err','message'=>'Silme İşlemi Başarısız'];\n }", "title": "" }, { "docid": "3a507f65a1de28bc6b0f34c5d713d3a2", "score": "0.5560665", "text": "public function removeUpload()\n {\n \tif ($file = $this->getAbsolutePath()) {\n \t\tunlink($file);\n \t}\n }", "title": "" }, { "docid": "0c001dc9327db66033c2beb52b0e02a9", "score": "0.5557123", "text": "public function deleteWithFile()\n {\n unlink(public_path($this->url));\n $this->delete();\n }", "title": "" }, { "docid": "c470228c5ffb5ab3fa7349260335d385", "score": "0.55545944", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n $image_path=public_path().'/upload/product/'.$product->photo;\n if(file_exists($image_path)){\n unlink($image_path);\n }\n $product->delete();\n }", "title": "" }, { "docid": "e98c4608a62ab3f2b92573a4bed86a6f", "score": "0.5551504", "text": "abstract public function Resource_Link_delete($resource_link);", "title": "" }, { "docid": "5644c2de987a8d8bda74e3ac1875315c", "score": "0.5545652", "text": "function remove(){\n\t\t$db->Execute(\"delete from \" . TABLE_INVENTORY . \" where id = \" . $id);\n\t \tif ($image_with_path) { // delete image\n\t\t\t$file_path = DIR_FS_MY_FILES . $_SESSION['company'] . '/inventory/images/';\n\t\t\tif (file_exists($file_path . $image_with_path)) unlink ($file_path . $image_with_path);\n\t \t}\n\t \t$db->Execute(\"delete from \" . TABLE_INVENTORY_SPECIAL_PRICES . \" where inventory_id = '\" . $id . \"'\");\n\t\tgen_add_audit_log(INV_LOG_INVENTORY . TEXT_DELETE, $sku);\n\t}", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "e16921589a68a78a32503d13f6338be9", "score": "0.55398196", "text": "public function delete($id){\n // delete images\n $image = Post::find($id)->image;\n if(!empty($image))\n foreach (json_decode($image, true)['urls'] as $image) {\n !isset($image) ?: \\File::delete($image);\n }\n \n // delete storage\n parent::delete($id);\n }", "title": "" }, { "docid": "987d20a90f553327a77e6cf4303821fa", "score": "0.55355304", "text": "public function remove(Question $question): Void;", "title": "" }, { "docid": "3751a58c163b979ebbab9b941282602b", "score": "0.5534674", "text": "public function destroy($id)\n {\n $data = Student::where('id',$id)->first();\n $img_path = $data->photo;\n unlink($img_path);\n Student::where('id',$id)->delete();\n return response('Data Deleted Successfully');\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": "" }, { "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": "" }, { "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": "" }, { "docid": "85cbf9c7e4906a9545dd0eecdec1aeae", "score": "0.55242705", "text": "public function destroy($id)\n {\n \n $fotoAtual=$this->foto->find($id);\n File::delete(public_path() . $fotoAtual->arquivo0);\n $fotoAtual->delete();\n }", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" } ]
9ae7713e9af71e74b30dddc70d543f18
eloquent relation dengan tabel Donatur
[ { "docid": "26c253954d1896ee795cf02ad4f75f87", "score": "0.7351079", "text": "public function donatur(){\n return $this->belongsTo('App\\Donatur');\n }", "title": "" } ]
[ { "docid": "4976f5ca2983e5f7e1923f6ee78d192a", "score": "0.74001694", "text": "public function contrato(){\n return $this->hasMany(\"App\\Contrato\",\"id_regimen\",\"id_regimen\");\n\n }", "title": "" }, { "docid": "eef78cfb9dfdc5e395107ca72c23483a", "score": "0.71791667", "text": "public function persona(){\n return $this->belongsTo(Persona::class,Abogado::class);\n }", "title": "" }, { "docid": "78d822cdf21198ff068a15ae432004e3", "score": "0.71775925", "text": "public function mahasiswa(){\n return $this->hasMany('App\\Mahasiswa','id_dosen');\n }", "title": "" }, { "docid": "c80985a473522e6af5c9bafaf7234c0e", "score": "0.7167856", "text": "public function productores(){\n return $this->hasMany('App\\Models\\Productore', 'idCiudad', 'id');\n }", "title": "" }, { "docid": "08e00a0c63664e2e063a4c7da093889a", "score": "0.71161336", "text": "public function relOperasi()\n {\n return $this->belongsTo('Operasi', 'id_operasi');\n }", "title": "" }, { "docid": "08e00a0c63664e2e063a4c7da093889a", "score": "0.71161336", "text": "public function relOperasi()\n {\n return $this->belongsTo('Operasi', 'id_operasi');\n }", "title": "" }, { "docid": "430cbbf8a1157ba88df75e5097b13988", "score": "0.71133596", "text": "public function docente(){\n\n return $this->hasMany('App/Docente','id_regimen','id_regimen');\n\n }", "title": "" }, { "docid": "96729afc06fd6461b78db7ec73964110", "score": "0.710368", "text": "public function comuni()\n {\n return $this->belongsToMany(Comune::class, 'COMUNE_PROV', 'PROVINCIA','COD');\n }", "title": "" }, { "docid": "69eadf4c0b612d877cc280fa19c13cdb", "score": "0.70895004", "text": "public function maquinas(){\n return $this->hasMany('App\\Maquina','id_juego','id_juego');\n }", "title": "" }, { "docid": "6df28cc2e3ac484d7a4174bd88f7dc4e", "score": "0.70706266", "text": "public function datos()\n {\n return $this->belongsTo('App\\Models\\dato', 'id_datos', 'id_datos');\n }", "title": "" }, { "docid": "a191190200593ed19c61abbe179002d3", "score": "0.7060103", "text": "public function compras(){\n return $this->hasMany('\\App\\Compra'); \n }", "title": "" }, { "docid": "2475bc23ad3aeb1a76d1fe9b1a1959f2", "score": "0.7033258", "text": "public function remitentes() {\n\n return $this->belongsTo(Persona::class,'remitente_id');\n }", "title": "" }, { "docid": "b6bba305bce0dd6d7a9b3597f7ebb184", "score": "0.70280915", "text": "public function comuna()\n {\n return $this->belongsTo(Comuna::class,'comunap_id');\n }", "title": "" }, { "docid": "308771456be55977f69cc79e4fc824dd", "score": "0.70107555", "text": "public function Pengguna(){\n \treturn $this->belongsTo(Pengguna::class);\n }", "title": "" }, { "docid": "dfdad7452a726848a0e891fb89f07959", "score": "0.7005229", "text": "public function cuota_pago(){\n return $this->hasMany('App\\CuotaPago');\n }", "title": "" }, { "docid": "dd3cce6c5c5a72d6d4f41b8f7ffc7597", "score": "0.70035434", "text": "public function abogado(){\n return $this->belongsTo(Abogado::class);\n }", "title": "" }, { "docid": "68d5dcc16e597858022d3bd74aeb14b4", "score": "0.70015514", "text": "public function trxdonasi(){\n return $this->belongsTo('App\\Trxdonasi');\n }", "title": "" }, { "docid": "2da40a4134c97f92fe0a49e807a365c2", "score": "0.69833004", "text": "public function trabajos(){\n \treturn $this->hasMany('App\\Trabajo');\n }", "title": "" }, { "docid": "30f4142853eb28c6a203f443284902cf", "score": "0.695861", "text": "public function ordenes()\n {\n return $this->belongsTo('App\\Ordene');\n }", "title": "" }, { "docid": "4fe53cf664aa6eb6e6886712c921a2ff", "score": "0.69398844", "text": "public function docente(){\n return $this->belongsTo('App\\Docente','iddocente');\n }", "title": "" }, { "docid": "874018bcc321c5cf8660b83a67049855", "score": "0.69247556", "text": "public function datosOrden()\n {\n return $this->hasMany(DatosOrden::class);\n }", "title": "" }, { "docid": "09bcfb5decb949fcd191bc9b8e0ccfa1", "score": "0.692316", "text": "public function AsignaturaHomologada()\n {\n return $this->hasMany('App\\AsignaturaHomologada','asignatura'); //Campo en tabla foranea\n }", "title": "" }, { "docid": "8a5d29b60a518ec2d0aa13119241903e", "score": "0.69128007", "text": "public function donaciones() \n {\n return $this->hasMany(Donacion::class);\n }", "title": "" }, { "docid": "224b619ec568ca9e17cca6ffecf8292a", "score": "0.6898008", "text": "public function tema(){\r\n return $this->hasMany('tema','bloque_id');\r\n }", "title": "" }, { "docid": "d6dd5a85f96705f191cb793277c251dd", "score": "0.68849933", "text": "public function antena(){\n \treturn $this->belongsTo(Antena::class);\n }", "title": "" }, { "docid": "194639f8632ba90f6b079437a09ead66", "score": "0.68829066", "text": "public function comedor(){\n return $this->belongsTo('App\\Models\\Comedor');\n }", "title": "" }, { "docid": "cd20771a79bf4e9761cb736c2007135a", "score": "0.6878034", "text": "public function tipoInfoDetalle(){\n return $this->hasMany(TipoInfoDetalle::class,'tipo_info_id','id');\n }", "title": "" }, { "docid": "1fbb72a8c4ff93af437053bc8ad42f73", "score": "0.6856159", "text": "function posicione(){\n return $this->belongsTo('\\futboleros\\Posicione');\n }", "title": "" }, { "docid": "89c7d197600d7b81424a15cd3d375aed", "score": "0.6850755", "text": "public function DetalleSolicitudCurso()\n {\n return $this->hasMany('App\\DetalleSolicitudCurso','asignatura'); //Campo en tabla foranea\n }", "title": "" }, { "docid": "9452e2406ddb9f5ed3a4c5c004659bff", "score": "0.6839411", "text": "public function comentarios(){\n return $this->hasMany('App\\Comentario');\n }", "title": "" }, { "docid": "bb4e9823d1a457801d876f3fdc150844", "score": "0.68377066", "text": "public function gerente()\n {\n return $this->belongsTo(Gerente::class);\n }", "title": "" }, { "docid": "2b9d43655c87aa11f8c2c3f04fa7969a", "score": "0.68307847", "text": "public function dichVus() {\n return $this->hasMany(Service::class, 'MaLoaiDichVu');\n }", "title": "" }, { "docid": "7cedf87c9ab33a122a4b55844d7c0d21", "score": "0.6830311", "text": "public function produtos(){\n return $this->hasMany(\"App\\Models\\Produto\");\n }", "title": "" }, { "docid": "387d3febc454bcb6448714dd480c38e8", "score": "0.6828608", "text": "public function proformas(){\n return $this->hasMany('App\\Proforma');\n }", "title": "" }, { "docid": "5b63195ec79f7e4c59d20160f8bb53ea", "score": "0.68284094", "text": "public function reino()\n {\n return $this->belongsTo('App\\Models\\Reino','id', 'id');\n }", "title": "" }, { "docid": "393aa7939bf2032f21e98a07eade0f20", "score": "0.68255347", "text": "public function Dentista() {\n return $this->belongsTo(Dentista::class);\n }", "title": "" }, { "docid": "149c0d8a9b68c6df3ba3ab3bfe90e1c1", "score": "0.68185", "text": "public function colaboradores(){\n return $this->belongsTo('App\\Models\\Colaborador');\n }", "title": "" }, { "docid": "1f64560d7364986fa83ae740fa7f6fa4", "score": "0.6817625", "text": "public function inteligencia(){\r\n return $this->belongsTo('inteligencia');\r\n }", "title": "" }, { "docid": "d66404db6c8832fc709a40e3ab2df255", "score": "0.68060964", "text": "public function destinos(){\n \treturn $this->hasMany('App\\Ruta','origen_id','id');\n }", "title": "" }, { "docid": "4658e1b2d72a49c3b082aeebc96a9b76", "score": "0.6805546", "text": "public function servicio_detalle_pago(){\n return $this->hasMany('App\\ServicioDetallePago');\n }", "title": "" }, { "docid": "b6c7bb1c6c38a9c5c2b288a01eac9548", "score": "0.6798873", "text": "public function origenes(){\n \treturn $this->hasMany('App\\Ruta','destino_id','id');\n }", "title": "" }, { "docid": "cdd97f3514eb75a1b3dc746ec16c5276", "score": "0.67950743", "text": "public function unidades(){\n\n return $this->hasMany('App\\Unidade_ht');\n }", "title": "" }, { "docid": "f9c628d81e67f945deefdca8756102e4", "score": "0.67921126", "text": "public function dios()\n {\n return $this->hasMany('App\\Models\\DiosReina');\n }", "title": "" }, { "docid": "2564245ea6a290eebd8f2593daf56452", "score": "0.67863524", "text": "public function atractivo()\n {\n \treturn $this->belongsTo(Atractivo::class);\n }", "title": "" }, { "docid": "87949c9d5aa35d2bb24a33b43352a014", "score": "0.67822737", "text": "public function ville()\n {\n return $this->belongsTo('App\\Ville','num_ville_depart');\n \n }", "title": "" }, { "docid": "e7166342fff7659920bb7f3b5abbcb1f", "score": "0.67502147", "text": "public function pedidos(){\n return $this->hasMany(Pedido::class)->with('usuario'); //este encargado pertenece a la\n }", "title": "" }, { "docid": "f401c06a61479cf432b80068e0f5a24e", "score": "0.6746319", "text": "public function dsemanas(){\n return $this->belongsToMany('App\\Models\\Dsemana');\n }", "title": "" }, { "docid": "323a1d2db547f72971c03cf04e414ad8", "score": "0.6743043", "text": "public function personas()\n {\n \treturn $this->hasMany('App\\Persona');\n }", "title": "" }, { "docid": "967a3778a53180eb9d4db6e5d3833e3b", "score": "0.6736906", "text": "public function adjuntos()\n {\n return $this->hasMany('App\\Models\\OficinaVirtual\\PedidoAdjunto');\n }", "title": "" }, { "docid": "56ff856b193510b819a3938b5374fffd", "score": "0.6735488", "text": "public function compras(){\n\t\t //Se tiene una relacion de 1:n \n\t\t //Utilizando Eloquent ORM, se agrega el atributo proveedores_id ya que con ese nombre\n\t\t //se encuentra en la base de datos, si no se agregara El orm asume proveedore_id\n return $this->hasMany('RED\\Compra','proveedores_id');\n\t\t \n\t }", "title": "" }, { "docid": "82e3cb41c2f37c12e45eba698a72d62c", "score": "0.6731426", "text": "public function commune()//Mettre le nom de la table enfant chez le père\n {\n return $this->hasMany('App\\Model\\Commune', 'VIL_NUM', 'VIL_NUM');\n }", "title": "" }, { "docid": "23134640e41e1b44f04dd3cdfdc2add2", "score": "0.6728238", "text": "public function productos(){\n \treturn $this->hasMany(Producto::class);\n }", "title": "" }, { "docid": "a9817a5c3182f6c9bc34b6da1b27763f", "score": "0.67252827", "text": "public function comentarios(){\n \treturn $this->hasMany('App\\Comentario');\n }", "title": "" }, { "docid": "f83e6ec023f4351d74590be1c1c3c592", "score": "0.67248946", "text": "public function libros(){\n return $this->belongsToMany('Libro', 'libroetiqueta', 'etiqueta_id', 'libro_id');\n }", "title": "" }, { "docid": "532faeb8fa1682597178aeee2d345314", "score": "0.6714211", "text": "function equipo(){\n return $this->hasMany('\\futboleros\\Equipo');\n }", "title": "" }, { "docid": "3695ea1ef86c5bb919da06c623c83f3f", "score": "0.6713978", "text": "public function rSoal()\n {\n return $this->belongsTo('App\\Pelajaran');\n }", "title": "" }, { "docid": "86e8899a08ab384837b3276a35106b7e", "score": "0.6708618", "text": "public function actividad(){\n return $this->belongsTo('App\\Actividad');\n }", "title": "" }, { "docid": "14cf794b7e8198b7de4e31b4c2f7c75a", "score": "0.6706242", "text": "public function ville1()\n {\n return $this->belongsTo('App\\Ville','num_ville_arriver');\n \n }", "title": "" }, { "docid": "7303adb8aed7614813c72bbf917c6740", "score": "0.6701441", "text": "public function direcciones()\n {\n return $this->belongsTo('App\\Models\\direccion', 'id_direccions', 'id_direccions');\n\n\n }", "title": "" }, { "docid": "d8480fddba1291fb04afc27f952efc21", "score": "0.6700584", "text": "public function relatedModelRelationAttribute(): string;", "title": "" }, { "docid": "c77027a4e0daf0cc8942f7079d6642ff", "score": "0.669957", "text": "public function etudiant()\n {\n return $this->hasMany('App\\etudiant');\n \n }", "title": "" }, { "docid": "b3adf400ba7bf79c1c67596e3adfff27", "score": "0.66940767", "text": "public function detalleLiquidacions(){\n return $this->hasMany('\\App\\Detalleliquidacion'); \n }", "title": "" }, { "docid": "8ee51b1bda79b78340a4f86c44c5dbe9", "score": "0.6692378", "text": "public function encargadoSinPedido(){\n return $this->hasMany(Encargado::class); //este encargado pertenece a la\n }", "title": "" }, { "docid": "9e14e0886d443d9af7b91a59f7542ab4", "score": "0.6692173", "text": "public function carreraR()\n {\n \treturn $this->belongsTo('App\\Carrera','carrera'); //Id local\n }", "title": "" }, { "docid": "13085ad4d1301b840f04558b22db194a", "score": "0.66881293", "text": "public function persona(){\n\t\treturn $this->hasMany('Persona','persona_EstadoUsuario_Id');\n\t}", "title": "" }, { "docid": "b59c5e6a022877b7e5816d6b4943ee03", "score": "0.6685718", "text": "public function propiedad()\n {\n\n return $this->hasMany(Propiedades::class);\n\n }", "title": "" }, { "docid": "488f20b95389595c689426af2cd56ec8", "score": "0.66807145", "text": "public function empleados(){\n //relacion uno a muchos\n return $this->hasMany('\\App\\Empleado'); //\\App\\Empleado es la ruta del otro modelo, en el modelo Empleado tambien debe existir esta relacion\n\n }", "title": "" }, { "docid": "c3cde64c539ab14cae8b365754e321e4", "score": "0.6675524", "text": "public function relMarca(){\n\n \treturn $this->belongsTo('\\App\\Marca','idMarca','idMarca');//Model con el que hago la relacion, foreign key, owner key\n }", "title": "" }, { "docid": "551df60e5c23a6f8be70c6487ebee07d", "score": "0.66628736", "text": "public function commandes()\n\n {\n return $this->hasMany('App\\Commande', 'foreign_key');\n }", "title": "" }, { "docid": "4315b29429e17e22823d8854813c0a31", "score": "0.6660217", "text": "public function perfil_cliente() {\n return $this->hasMany(PerfilCliente::class,'linea_credito_id','id');\n }", "title": "" }, { "docid": "10ccfc0ab5993e4583ba53a8a9e5beea", "score": "0.66514605", "text": "public function producto(){\n return $this->belongsTo('App\\Producto');\n }", "title": "" }, { "docid": "f0a4e5d2ad649114940fb6997c2dce5b", "score": "0.6648175", "text": "public function tipotramites(){\n return $this->belongsToMany('Tipotramite');\n }", "title": "" }, { "docid": "ae0cd6a710b46eda538101d8d5700a2f", "score": "0.6645198", "text": "public function jadwal_r(){\n return $this->belongsTo('App\\Models\\Ujidaring\\JadwalModel','id_jadwal');\n }", "title": "" }, { "docid": "630c92cff2d68bcc489aa6e32ea31ee3", "score": "0.66445386", "text": "public function responden()\n { \n return $this->hasMany(Responden::class, 'ikm_id');\n }", "title": "" }, { "docid": "e381608da1dc51822b38b8b2a9315c8f", "score": "0.6643911", "text": "public function generico(){\n return $this->belongsTo('App\\Models\\Generico');\n }", "title": "" }, { "docid": "4907d390b7a31035a61d882870814c69", "score": "0.6639047", "text": "public function persona(){\n return $this->belongsTo(Persona::class,'curp');\n }", "title": "" }, { "docid": "cccfefdb66d03becca3ceccf6a963588", "score": "0.66360974", "text": "public function akun(){\n \treturn $this->belongsTo('App\\Akun', 'no_ref');\n }", "title": "" }, { "docid": "e76b97f51c4c126905cdb07dc41f8d06", "score": "0.6631031", "text": "public function pago(){\n return $this->belongsTo(Pago::class); //Pertenece a un Cliente.\n }", "title": "" }, { "docid": "bab1f7d0076c8d5a326c4bdf7342ef48", "score": "0.6629515", "text": "public function cidade(){\n return $this->belongsTo('\\App\\Entities\\Cidade');\n }", "title": "" }, { "docid": "511ae4862ada45f2cd2da1100b51fabf", "score": "0.6628821", "text": "public function asignaturas(){\n return $this->belongsTo(Asignatura::class);\n }", "title": "" }, { "docid": "2bf5d399c8821df76927c350b434b7ac", "score": "0.66260445", "text": "public function TipoObra(){\n return $this->belongsTo(TipoObra::class);\n }", "title": "" }, { "docid": "70d50541a0bc3b99a80e62b3f71fe8f8", "score": "0.6623122", "text": "public function docente()\n {\n return $this->belongsTo(Docente::class);\n }", "title": "" }, { "docid": "d605931cc8058c77eec95a12f0c6a757", "score": "0.6621571", "text": "public function especialidad(){\n return $this->belongsTo(Especialidad::class,'id_especialidad');\n }", "title": "" }, { "docid": "3a1a0643bfadb824ce4d2540febbee30", "score": "0.66147035", "text": "public function ventas(){\n return $this->hasMany('\\App\\Venta'); \n }", "title": "" }, { "docid": "9570fbaaa77c58e316e1ee6faed87335", "score": "0.66132444", "text": "public function sousRubrique()\n {\n return $this->belongsTo(Sous_Rubrique::class, 'id_sous_rubrique', 'id_constat');\n }", "title": "" }, { "docid": "71c3c42d98ec4959c7927b7ad140b6aa", "score": "0.6612309", "text": "public function Liste()\n {\n return $this->belongsTo('App\\Liste','Liste_id');\n }", "title": "" }, { "docid": "b3359bcb1bbcd33a4526bc7131ba12a9", "score": "0.66089505", "text": "public function artikel(){\n return $this->belongsToMany('App\\Artikel');\n }", "title": "" }, { "docid": "45f9d2113d5e8c55f2d1591ccdda1d5b", "score": "0.6608828", "text": "public function etudiants(){\n return $this->belongsToMany(User::class,'groupe_etudiants','idGroupe','idEtudiant');\n }", "title": "" }, { "docid": "181b57387ca9fc8dd549454df40d1280", "score": "0.66068745", "text": "public function questao()\n {\n \treturn $this->belongsTo('App\\Questao_ht');\n }", "title": "" }, { "docid": "11f94c5da7a527c3cb6aaa601b919bf7", "score": "0.66067535", "text": "public function contratos()\n {\n return $this->hasMany(\\App\\Models\\AcContrato::class,'codigo_plan','codigo_plan');\n }", "title": "" }, { "docid": "2aae211a853e6120ccb19b8a77ddd1eb", "score": "0.66007966", "text": "public function seccionv(){\n return $this->hasMany('App\\vivienda_seccion_v');\n }", "title": "" }, { "docid": "5eff81399cb5e2dfce94743481c0a2a1", "score": "0.65957534", "text": "public function motivoLog()\n {\n return $this->belongsTo('App\\MotivoLog','id_motivo');\n }", "title": "" }, { "docid": "ce2eaec4f4ad1b08b802982c3e060b39", "score": "0.659302", "text": "public function productos()\n {\n return $this->belongsTo('App\\Producto');\n }", "title": "" }, { "docid": "e04393f82f6b9e1c47690f4fb1f9a426", "score": "0.659298", "text": "public function mes(){\n return $this->belongsTo('App\\models\\Mes');\n }", "title": "" }, { "docid": "81510eb7dd2f6ed8fa0a30cec515d790", "score": "0.6592821", "text": "public function product(){\n #Un detalle de un carrito de compras pertence a un producto\n return $this->belongsTo(Product::class);\n }", "title": "" }, { "docid": "92da5f80eb77857dbd51c828e9caf37b", "score": "0.65897334", "text": "public function jadwal_r(){\n return $this->belongsTo('App\\Models\\Ujidaring\\JadwalModel','id_jadwal');\n }", "title": "" }, { "docid": "0ae23a88267437d709950f15c246ff9b", "score": "0.6588153", "text": "public function instruktur_r(){\n return $this->belongsTo('App\\Models\\Ujidaring\\InstrukturModel','id_instruktur');\n }", "title": "" }, { "docid": "6cc53cdbe52c6b4e3f0a965f6be6c45a", "score": "0.6584112", "text": "public function venta(){\n return $this->belongsTo(Venta::class);\n }", "title": "" }, { "docid": "453714689d9c7b9a69274c701a5639e7", "score": "0.6581487", "text": "public function estado()\n {\n return $this->belongsTo('App\\Models\\Estados');\n }", "title": "" }, { "docid": "51aeb2ae47ce092a25de8ff18307a397", "score": "0.6581383", "text": "function Pedidos(){\n return $this->hasMany(Pedidos::class);\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "45595fc018892d8a3518638a751f6b25", "score": "0.0", "text": "public function destroy($id)\n {\n try {\n $grupoprodutos = $this->grupoproduto::find($id);\n $grupoprodutos->delete();\n //return redirect('grupoproduto')->with('success', 'Grupo de Produtos excluído com sucesso!');\n return ['status' => 'success'];\n\t\t} catch (\\Illuminate\\Database\\QueryException $qe) {\n\t\t\treturn ['status' => 'errorQuery', 'message' => $qe->getMessage()];\n\t\t} catch (\\PDOException $e) {\n\t\t\treturn ['status' => 'errorPDO', 'message' => $e->getMessage()];\n\t\t}\n }", "title": "" } ]
[ { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "4dafcd8b3f56d04ade79ab84f74387a5", "score": "0.69165355", "text": "public function remove(IUser $user, ?IResource $resource): void\n {\n $hash = $this->hash($user, $resource);\n $this->storage->remove($hash);\n }", "title": "" }, { "docid": "472e75253a82e723642cd346e42766dc", "score": "0.689976", "text": "public function unpublishResource(Resource $resource);", "title": "" }, { "docid": "8c567209f449643b019402d25cb3a0e6", "score": "0.67117244", "text": "public function remove($storageOption);", "title": "" }, { "docid": "33495d1267888d9c13c56a2f54ae7981", "score": "0.6666395", "text": "public function destroy(Resource $resource)\n {\n $user = auth()->user();\n\n if ($resource->Course->User == $user or $user->role == 'Admin' ) {\n\n $file_path='storage/resources/'.$resource->attachment;\n if (file_exists($file_path)) {\n $resource->delete();\n unlink($file_path);\n abort(204); //Requête traitée avec succès mais pas d’information à renvoyer. \n }\n abort(403);\n }\n\n abort(401);\n }", "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": "0ee612316b7ece599a599780a7558aaf", "score": "0.6615533", "text": "public function deleteResource(){\n\t\tif(isset($this->posts[\"src\"])){\n\t\t\t$src = $this->posts[\"src\"];\n\t\t\tif(file_exists($src))\n\t\t\t\tunlink($src);\n\t\t}elseif(isset($this->posts[\"img_src\"])){\n\t\t\t$src = $this->posts[\"img_src\"];\n\t\t\tif(file_exists($src))\n\t\t\t\tunlink($src);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3198b8a0f2716ad40da9a8a62bebf688", "score": "0.65721023", "text": "protected function remove_storage()\n {\n }", "title": "" }, { "docid": "dc2df99962575c3f0211b8228c540b4e", "score": "0.6562633", "text": "public function remove($uri)\n {\n unset($this->resources[$uri]);\n }", "title": "" }, { "docid": "6b97aa4b089b5fe95bf08521013640ac", "score": "0.64774114", "text": "function hook_cloudinary_stream_wrapper_resource_delete(array $resource) {\n if (isset($resource['public_id'])) {\n if ($storage_class = cloudinary_storage_class()) {\n $storage = new $storage_class($resource);\n list($path, $file) = $storage->resourceUpdate(FALSE);\n\n if ($resource['mode'] == CLOUDINARY_STREAM_WRAPPER_FILE) {\n $storage->folderUpdate($path, array(CLOUDINARY_STORAGE_REMOVE => $file));\n }\n }\n }\n}", "title": "" }, { "docid": "1e8cf2db14c80b19d70f4741a30df900", "score": "0.64165723", "text": "private function deleteOne()\n {\n optional($this->instance->image)->removeFromStorage($this->instance->image);\n\n $this->instance->delete();\n }", "title": "" }, { "docid": "8d21a30b7e8135aae2724ca63410e913", "score": "0.6372442", "text": "public function unpublishResource(PersistentResource $resource)\n {\n try {\n $objectName = $this->keyPrefix . $this->getRelativePublicationPathAndFilename($resource);\n $this->storageService->objects->delete($this->bucketName, $objectName);\n $this->systemLogger->log(sprintf('Successfully unpublished resource as object \"%s\" (MD5: %s) from bucket \"%s\"', $objectName, $resource->getMd5() ?: 'unknown', $this->bucketName), LOG_DEBUG);\n } catch (\\Google_Service_Exception $e) {\n if ($e->getCode() !== 404) {\n throw $e;\n }\n }\n }", "title": "" }, { "docid": "2fa852deb4200fa4ffe64ddcf6fe73e4", "score": "0.636192", "text": "function delete(string $resourceId);", "title": "" }, { "docid": "4eda806ad84b497f305439faec49b27d", "score": "0.6358891", "text": "public function removeResourceFile(Resource $resource)\n {\n $fs = new Filesystem;\n try {\n $fs->remove($this->getUploadedFilePath($resource));\n } catch (UnexpectedValueException $e) {\n // @todo log error\n }\n }", "title": "" }, { "docid": "55c732cc61cd0c51ab885bbf6faeefac", "score": "0.63369256", "text": "public function removeAvatarResource($resource): bool;", "title": "" }, { "docid": "0125b2b138f7471b5a7daa4462593d66", "score": "0.6309427", "text": "public function destroy(Resource $resource)\n {\n //\n $this->authorize('delete', $resource);\n $resource->delete();\n return redirect('/resource');\n }", "title": "" }, { "docid": "f401492e75ca4c7ef776750aa5c51a46", "score": "0.62508374", "text": "public function removeUnderlyingResource($key);", "title": "" }, { "docid": "5da558e39fa239885e68b2d3431874d2", "score": "0.6163051", "text": "public function delete(string $resource)\n {\n $client = $this->getClient();\n $response = $client->delete(\"{$resource}\");\n return $this->result($response);\n }", "title": "" }, { "docid": "8d8d886ed1a4286839ba3968f6b69e35", "score": "0.61367285", "text": "protected function removeFromStorage($path)\n {\n if (Storage::exists($path)) {\n Storage::delete($path);\n }\n }", "title": "" }, { "docid": "d4f932fe5d33ab4124d1b00f3a93fa4a", "score": "0.6116284", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "3f6971bf8beba53671c4459991d4c502", "score": "0.6068753", "text": "public function removeResource($resource_id)\r\n {\r\n $logicNestedSet = new DragonX_NestedSet_Logic_NestedSet();\r\n $logicNestedSet->removeNode(\r\n new DragonX_Acl_Record_Resource($resource_id)\r\n );\r\n }", "title": "" }, { "docid": "01426e85ec00691416a7f655882c5af8", "score": "0.6051162", "text": "public function unlink(\\resource $context=null)\n {\n $this->checkReadable();\n if (null===$context)\n return \\unlink($this->path);\n return \\unlink($this->path, $context);\n }", "title": "" }, { "docid": "8b25ec91f92381b5e25bc75c03129532", "score": "0.6050952", "text": "public static function remove($filename){\n\n //check if file exists in storage public directory to avoid exception\n if( Storage::disk('public')->exists(\"$filename\") ){\n \n //delete oldfile using Storage @storage/app/public folder\n Storage::delete(\"public/$filename\");\n\n }//END exists\n\n \n }", "title": "" }, { "docid": "67bb6156ba52c0470fede15844ccd953", "score": "0.6024124", "text": "public function destroy($id)\n {\n $get=Social::where('id',$id)->first();\n if($get->icon!=null){\n unlink('storage/'.$get->icon);\n }\n $get->delete();\n return redirect()->route('listSocial');\n }", "title": "" }, { "docid": "8774fbdb26187176fa3c5c968af039d4", "score": "0.5983405", "text": "public function destroy( $resource)\n { \n $resource = RequiredDocument::find($resource); \n try {\n /*if ($requiredDocument->studentRequiredDocuments()->count() > 0) {\n notify()->error(__('cant delete data depend on data'), \"\", \"bottomLeft\"); \n return redirect()->route('required_documents.index');\n }*/ \n $resource->delete(); \n } catch (\\Exception $th) {\n return responseJson(0, $th->getMessage());\n }\n return responseJson(1, __('done'));\n }", "title": "" }, { "docid": "96b32200ee9cea357d9bb7756c71dbb9", "score": "0.5981521", "text": "public function destroy($id)\n {\n $filepath = File::where('id',$id)->value('physical_path');\n // return $filepath;\n Storage::delete($filepath);\n\n File::where('id', $id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "4343db7632128a4a22e019d66e290dd7", "score": "0.59791505", "text": "function destroy( $resource ){\n\n softDelete( 'customers', $resource );\n\n redirect( route( 'customer' ) );\n\n}", "title": "" }, { "docid": "b4b047fecd9f126a805ce824c7515839", "score": "0.5946296", "text": "public function destroy(Resource $resource)\n {\n $result = $resource->delete();\n if ($result) {\n return redirect(route('admin.resource.index'))->with(\"success\", 'Ресурс успешно удален');\n } else {\n return redirect(route('admin.resource.index'))->with(\"error\", 'Ошибка сервера');\n }\n }", "title": "" }, { "docid": "bc05b93beec5d500f15183a184885ed1", "score": "0.5940284", "text": "function delete_resource($resource_id)\n\t{\n\t\t\n\t\t$this -> db -> where('id', $resource_id);\n\t\t if ($this -> db -> delete('gh_resource'))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t\n\t}", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "90136674b889c89e2c35715bc8fe8d7f", "score": "0.5913318", "text": "public function delete(\\resource $context=null)\n {\n return $this->unlink($context);\n }", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "5811064cb5348a7d8234a1423fc04cf8", "score": "0.5904446", "text": "public function remove()\n {\n if ($this->currentIsExists()) {\n unlink($this->currentImage());\n $this->removeThumbs();\n }\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.589366", "text": "public function remove();", "title": "" }, { "docid": "e134b8fbd8cb5d6358f5601aad3b42b7", "score": "0.5851101", "text": "public function destroy($id)\n {\n $item = StoragePhoto::findOrFail($id);\n $oldFile = $item->file;\n $item->delete();\n Storage::disk('public')->delete('storage_photos/' . $oldFile);\n return redirect()->back();\n }", "title": "" }, { "docid": "d64670e4005c362bc99c1ff13c3761c8", "score": "0.58252704", "text": "public function deleteDataStorage($name);", "title": "" }, { "docid": "100faa416ac8af24f2dde9c9c9c5ece8", "score": "0.5825043", "text": "public function destroy($id)\n {\n unlink('.'.backing::find($id)->img);\n backing::destroy($id);\n Session::flash('warning','Removido');\n return redirect()->route('home');\n }", "title": "" }, { "docid": "daf533646ad26ec870c4d404b6612873", "score": "0.5816415", "text": "public function destroy($id)\n {\n $Supplier = Supplier::findOrFail($id);\n $photo = $Supplier->photo;\n if ($photo) {\n unlink($photo);\n Supplier::findOrFail($id)->delete(); \n }else{\n Supplier::findOrFail($id)->delete();\n }\n }", "title": "" }, { "docid": "38bf577586a27897b1f11e08b3eac6db", "score": "0.58083075", "text": "public function deallocate_resource_from_user($resource_id);", "title": "" }, { "docid": "596fbb42123cc857bd6e6415ba467f80", "score": "0.5792648", "text": "public function delete() {\n\t\tif ( file_exists( $this->path ) ) {\n\t\t\tunlink( $this->path );\n\t\t}\n\t}", "title": "" }, { "docid": "cc42a160a9315cdd157733240e749135", "score": "0.57910043", "text": "public function remove($entity): void;", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "3e75cf5e9dcd8f7f83bb797e00a4d05a", "score": "0.5761397", "text": "public function destroy($id)\n {\n $this->resource->deleteResource($id);\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": "688f093af1318a2501cc247ca7d8367f", "score": "0.57133234", "text": "public function destroy($id)\n {\n $post = Post::find($id);\t \n\n $file = $post->image;\n\n $path = storage_path('app/'.$file);\n \n\n $exists = file_exists($path) ? 1 : 0;\n \n \n if($file !== null && $exists === 1){\n \tunlink($path); \t\n } \t\t\n\n \t$post->delete();\n \n return redirect()->back()->with([\"success\" => \"Record deleted successfully!\"]);\n }", "title": "" }, { "docid": "083e7dfea48105bfa6c48a83f2638dbe", "score": "0.57117677", "text": "public function remove() {\n\t\t\n\t\t# remove file\n\t\t\n\t\t# remove thumbnails\n\t\t$this->removeThumbnail();\n\t}", "title": "" }, { "docid": "b695acf41ab282c258621f938f86e9b3", "score": "0.5690479", "text": "public function delete_item($id)\r\n\t{\r\n\t $path = $this->conf->paths['storage'].\"/\".$id;\r\n if(!$this->item_exists($id))\r\n return NULL;\r\n unlink($path);\r\n $this->update_stat();\r\n\t}", "title": "" }, { "docid": "9a27084d0c40ba49ecc9c1b53b42577b", "score": "0.5680772", "text": "public function destroy(storage $storage)\n {\n $storage->delete();\n\n return redirect()->route('storage.index')->withStatus(__('storage successfully deleted.'));\n }", "title": "" }, { "docid": "2d32ad1b48ccfbc9bbe2ec2428b76e24", "score": "0.56783164", "text": "public function destroy($id)\n {\n // Delete image for onefile\n }", "title": "" }, { "docid": "bac810fba3fe0809cb7a87735ba98fbe", "score": "0.5670975", "text": "public function delete( $path );", "title": "" }, { "docid": "52f3cfac130ce94f9536db6fe17ad61d", "score": "0.567092", "text": "public function remove()\n {\n if( file_exists( $this->getPath().\"/\".$this->getTempFile() ) ) {\n\n unlink( $this->getPath().\"/\".$this->getTempFile() );\n\n }\n }", "title": "" }, { "docid": "9fcbbf7c57d3a426ed4209fed7807bad", "score": "0.56667215", "text": "public function delete($path): self;", "title": "" }, { "docid": "0a66405a41c344aee2f23a78621638d2", "score": "0.5640811", "text": "public function destroy($id)\n {\n $image = Image::whereId($id)->first();\n Storage::delete('storage/' . $image->image_url);\n $image->delete();\n return redirect()->back()->with('success', 'image deleted');\n }", "title": "" }, { "docid": "47582204edbd05b1d7427ba375b800cb", "score": "0.5636767", "text": "public function destroy($id)\n {\n $data = Slider::find($id);\n if (file_exists(imagePath().$data->sliderimg)) { \n unlink(imagePath().$data->sliderimg);\n }\n $delete=Slider::where('id','=',$id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "633fe257801634ace1ad6774eadec06a", "score": "0.563407", "text": "public function delete()\n {\n $this->erase();\n }", "title": "" }, { "docid": "5f783edc1594c1f8b50bfd3d8032ee86", "score": "0.56227064", "text": "function delete() {\n if (is_file($this->path) && file_exists($this->path) && is_writable($this->path)) {\n return unlink($this->path);\n }\n }", "title": "" }, { "docid": "368d6e77cc3e0998a2b5e5ad75228904", "score": "0.5614642", "text": "public function destroy($id)\n {\n $file = $this->fileProvider->findById($id);\n $file->delete();\n }", "title": "" }, { "docid": "abe945199308adcf5f0a508cfdef2673", "score": "0.56135803", "text": "public function delete(Resource $resource) {\n\t\t$class = get_class($resource);\n\t\t$table = strtolower(substr($class, strrpos($class, \"\\\\\") + 1));\n\t\t$criteria = $resource->getRequiredEqualities();\n\n\t\ttry {\n\t\t\t$this->driver->delete($table, $criteria);\n\t\t} catch (InvalidQueryException $exception) {\n\t\t\tthrow $exception; # Move it up the line.\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a063c5a5194ae38910605d903212fa5d", "score": "0.5605628", "text": "public function destroy($id)\n {\n $item = Products::find($id);\n $origin_img = $item->img;\n if(Storage::disk('public')->exists($origin_img)){\n Storage::disk('public')->delete($origin_img);\n }\n $item->delete();\n return redirect('home/product');\n }", "title": "" }, { "docid": "e40139292b4af4dae5afad336cfab701", "score": "0.5594869", "text": "function remove($resource_id){\n //this primarily means remove links for this Resource\n\n DB::db_query(\"delete_resource_links\", \"DELETE FROM links WHERE from_id='\".$resource_id.\"' AND (\n type = '\".get_link_as_constant(\"RESOURCE_IN_CATEGORY\").\"' \n OR type='\".get_link_as_constant(\"RESOURCE_OF_USER\").\"'\n OR type='\".get_link_as_constant(\"RESOURCE_OF_GROUP\").\"');\");\n if(DB::db_check_result(\"delete_resource_links\") > 0){\n //success\n } \n \n }", "title": "" }, { "docid": "4d9a698ed0ccf2cc8ec46d04467cd7ec", "score": "0.5586516", "text": "public function remove(Payload $payload): void\n {\n $this->storage->destroy($this->getKey($payload));\n }", "title": "" }, { "docid": "e987c7f11e89bb4f6dc4dc023e24d763", "score": "0.5579811", "text": "public function remove(Object $entity);", "title": "" }, { "docid": "1accc3116856cce6a0b7ebddb6b796b8", "score": "0.55785817", "text": "public function destroy($id)\n\t{\n\t\tResource::destroy($id);\n\n\t\tSession::flash('delete', 'Resource Deleted');\n\t\treturn Redirect::to('resource');\n\t}", "title": "" }, { "docid": "430d1f771f7deee6de5a8179a0ce6389", "score": "0.55783314", "text": "public function destroy($id)\n {\n $item = Video::find($id);\n $path = str_replace('storage/', 'public/', $item->path);\n if (Storage::exists($path)) {\n Storage::delete($path);\n }\n $item->delete();\n }", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "6ad136b8bac727f66417bb1d762b6e97", "score": "0.5564964", "text": "public static function delete( $resource ) {\n $resource->assertLock();\n $resource->assertMemberLocks();\n $parent = $resource->collection();\n if (!$parent)\n throw new DAV_Status(DAV::HTTP_FORBIDDEN);\n $parent->assertLock();\n self::delete_member( $parent, $resource );\n}", "title": "" }, { "docid": "a2f1c01b0ea1d33119c1e555014fb703", "score": "0.5562198", "text": "public function destroy($id)\n {\n //\n $hizmetler = Hizmetler::where('id',$id)->first();\n\n if($hizmetler) {\n unlink(storage_path('app/public'.$hizmetler->image));\n $hizmetler->delete();\n\n\n\n return ['status'=>'ok','message'=>'Silme İşlemi Başarılı'];\n }\n return ['status'=>'err','message'=>'Silme İşlemi Başarısız'];\n }", "title": "" }, { "docid": "3a507f65a1de28bc6b0f34c5d713d3a2", "score": "0.5560665", "text": "public function removeUpload()\n {\n \tif ($file = $this->getAbsolutePath()) {\n \t\tunlink($file);\n \t}\n }", "title": "" }, { "docid": "0c001dc9327db66033c2beb52b0e02a9", "score": "0.5557123", "text": "public function deleteWithFile()\n {\n unlink(public_path($this->url));\n $this->delete();\n }", "title": "" }, { "docid": "c470228c5ffb5ab3fa7349260335d385", "score": "0.55545944", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n $image_path=public_path().'/upload/product/'.$product->photo;\n if(file_exists($image_path)){\n unlink($image_path);\n }\n $product->delete();\n }", "title": "" }, { "docid": "e98c4608a62ab3f2b92573a4bed86a6f", "score": "0.5551504", "text": "abstract public function Resource_Link_delete($resource_link);", "title": "" }, { "docid": "5644c2de987a8d8bda74e3ac1875315c", "score": "0.5545652", "text": "function remove(){\n\t\t$db->Execute(\"delete from \" . TABLE_INVENTORY . \" where id = \" . $id);\n\t \tif ($image_with_path) { // delete image\n\t\t\t$file_path = DIR_FS_MY_FILES . $_SESSION['company'] . '/inventory/images/';\n\t\t\tif (file_exists($file_path . $image_with_path)) unlink ($file_path . $image_with_path);\n\t \t}\n\t \t$db->Execute(\"delete from \" . TABLE_INVENTORY_SPECIAL_PRICES . \" where inventory_id = '\" . $id . \"'\");\n\t\tgen_add_audit_log(INV_LOG_INVENTORY . TEXT_DELETE, $sku);\n\t}", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "e16921589a68a78a32503d13f6338be9", "score": "0.55398196", "text": "public function delete($id){\n // delete images\n $image = Post::find($id)->image;\n if(!empty($image))\n foreach (json_decode($image, true)['urls'] as $image) {\n !isset($image) ?: \\File::delete($image);\n }\n \n // delete storage\n parent::delete($id);\n }", "title": "" }, { "docid": "987d20a90f553327a77e6cf4303821fa", "score": "0.55355304", "text": "public function remove(Question $question): Void;", "title": "" }, { "docid": "3751a58c163b979ebbab9b941282602b", "score": "0.5534674", "text": "public function destroy($id)\n {\n $data = Student::where('id',$id)->first();\n $img_path = $data->photo;\n unlink($img_path);\n Student::where('id',$id)->delete();\n return response('Data Deleted Successfully');\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": "" }, { "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": "" }, { "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": "" }, { "docid": "85cbf9c7e4906a9545dd0eecdec1aeae", "score": "0.55242705", "text": "public function destroy($id)\n {\n \n $fotoAtual=$this->foto->find($id);\n File::delete(public_path() . $fotoAtual->arquivo0);\n $fotoAtual->delete();\n }", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" } ]
a7f449d9ad94690133346b8b07c8f27f
Generate products array in $cart
[ { "docid": "54829b69fb7b16986f21a850af33edca", "score": "0.6215412", "text": "function func_products_in_cart($cart, $membership) {\n\n global $active_modules,$sql_tbl, $config;\n global $current_area, $store_language;\n\n $products = array();\n\n if($cart[\"products\"])\n foreach($cart[\"products\"] as $product_data) {\n\n $productid = $product_data[\"productid\"];\n $amount = $product_data[\"amount\"];\n $options = $product_data[\"options\"];\n\n#\n# Product options code\n#\n $product_option_lines = func_query(\"select * from $sql_tbl[product_options] where productid='$productid' order by orderby\");\n $product_options = array();\n\n\t\tif($product_option_lines)\n\t\t foreach($product_option_lines as $product_option_line) {\n \t\t$product_options[] = array_merge($product_option_line,array(\"options\" => func_parse_options($product_option_line[\"options\"])));\n\t\t\t}\n\n\t\t$product_options = func_product_options_lng($product_options);\n\n\t\tforeach($product_options as $k=>$v) {\n\t\t\t$tmp[$v[\"optclass\"]] = $v[\"options\"];\n\t\t}\n\n\t\t$product_options = $tmp;\n\n $absolute_surcharge = 0;\n $percent_surcharge = 0;\n $this_product_options = \"\";\n\n#\n# Calculate option surcharges\n#\n foreach($options as $option) {\n $my_option = $product_options[$option[\"optclass\"]][$option[\"optionindex\"]];\n\n if(!empty($product_options[$option[\"optclass\"]])) {\n\t\t\t\t\t\t\tif (!empty($my_option[\"optclass\"]))\n $this_product_options.=\"$my_option[optclass]: $my_option[option]\\n\";\n\t\t\t\t\t\t\telse\n $this_product_options.=\"$option[optclass]: $my_option[option]\\n\";\n\n if($my_option[\"type\"]==\"absolute\")\n $absolute_surcharge+=$my_option[\"surcharge\"];\n elseif($my_option[\"type\"]==\"percent\")\n $percent_surcharge+=$my_option[\"surcharge\"];\n } else\n $this_product_options.=\"$option[optclass]: $option[optionindex]\\n\";\n\n }\n $this_product_options = chop($this_product_options);\n#\n# /Product options\n#\n\t\tif ($config[\"General\"][\"unlimited_products\"]==\"N\")\n\t\t\t$avail_condition = \"$sql_tbl[products].avail>=$amount and \";\n $products_array = func_query_first(\"select $sql_tbl[products].*, min(round($sql_tbl[pricing].price+$absolute_surcharge+$percent_surcharge*$sql_tbl[pricing].price/100,2)) as price from $sql_tbl[products], $sql_tbl[pricing] where $sql_tbl[pricing].productid=$sql_tbl[products].productid and $sql_tbl[products].productid='$productid' and $avail_condition $sql_tbl[pricing].quantity<=$amount and ($sql_tbl[pricing].membership='$membership' or $sql_tbl[pricing].membership='') group by $sql_tbl[products].productid order by $sql_tbl[pricing].quantity desc\");\n\n if($products_array) {\n#\n# Get thumbnail's URL (uses only if images stored in FS)\n#\n\t\t$products_array[\"tmbn_url\"] = func_get_thumbnail_url($products_array[\"productid\"]);\n#\n# If priduct's price is 0 then use customer-defined price\n#\n if($products_array[\"price\"]==0)\n $products_array[\"price\"]=price_format($product_data[\"price\"]?$product_data[\"price\"]:0);\n\n\t\t\t\t\t\tlist($products_array[\"price\"], $products_array[\"vat\"]) = func_get_price_vat($products_array);\n\n $products_array[\"total\"]=price_format($amount*$products_array[\"price\"]);\n $products_array[\"product_options\"]=$this_product_options;\n $products_array[\"amount\"]=$amount;\n\n\n\t\t\t\t\t\t$int_res = func_query_first (\"SELECT * FROM $sql_tbl[products_lng] WHERE code='$store_language' AND productid=$productid\");\n\t if ($int_res[\"product\"])\n $products_array[\"product\"] = stripslashes($int_res[\"product\"]);\n if ($int_res[\"descr\"])\n $products_array[\"descr\"] = str_replace(\"\\n\",\"<br>\", stripslashes($int_res[\"descr\"]));\n if ($int_res[\"full_descr\"])\n $products_array[\"full_descr\"] = str_replace(\"\\n\",\"<br>\", stripslashes($int_res[\"full_descr\"]));\n\n\t\t\t\t\t\t$products[] = $products_array;\n }\n }\n\n return $products;\n}", "title": "" } ]
[ { "docid": "8d178c83945f54152ea7539dc1de41a8", "score": "0.71415806", "text": "public static function setCartItems($products)\n {\n $orderItems = [];\n\n if(!empty($products))\n {\n foreach ($products as $key => $product) {\n //Product Price\n $price = array_key_exists('price',$product) ? $product['price'] : 0;\n $sale_price = array_key_exists('sale_price',$product) ? $product['sale_price'] : 0;\n $quantity = array_key_exists('quantity',$product) ? $product['quantity'] : 1;\n\n //Product options\n $product_options = self::_setProductOptionsDataStructure($product);\n\n $options_price = $product_options['price'];\n $options = $product_options['options'];\n\n\n #Product charges\n $discount = ( $price - $sale_price ) * $quantity;\n $product_price = ( $price + $options_price ) * $quantity;\n $product_sub_total = ( $price + $options_price ) * $quantity;\n\n $orderItems[] = [\n \"id\" => array_key_exists('id',$product) ? $product['id'] : null,\n \"name\" => array_key_exists('name',$product) ? $product['name'] : null,\n \"sku\" => array_key_exists('sku',$product) ? $product['sku'] : null,\n \"quantity\" => $quantity,\n \"price\" => $product_price,\n \"sale_price\" => $sale_price,\n \"discount\" => $discount,\n \"sub_total\" => $product_sub_total,\n \"image\" => array_key_exists('image',$product) ? $product['image'] : null,\n \"short_description\" => array_key_exists('short_description',$product) ? $product['short_description'] : null,\n \"description\" => array_key_exists('description',$product) ? $product['description'] : null,\n \"product_options\" => $options\n ];\n }\n\n }\n self::$products = $orderItems;\n self::$productsDefinition =true;\n }", "title": "" }, { "docid": "89de642efdbc55ad1dbfb7136f70f259", "score": "0.69591457", "text": "function get_products_array( )\n\t\t{\n\t\t\t\t\n\t\t}", "title": "" }, { "docid": "64876a3887bd3a5bd2c9903ee5c5539d", "score": "0.69075507", "text": "public function getProductForStripe(): array\n {\n // recuper le panier\n $cart = $this->sessionInterface->get('cart', []);\n\n $items = [];\n // recupere les produits avec informations nécessaire pour stripe \n foreach ($cart as $id => $taille) {\n foreach ($taille as $_taille => $qte) {\n $items[] = [\n 'product' => $this->shoe->find($id)->getNom(),\n 'taille' => $_taille,\n 'qte' => $qte['qte']\n ];\n }\n }\n return $items;\n }", "title": "" }, { "docid": "81ac75f580e29ff5905d9059b945c511", "score": "0.68894804", "text": "public function createCart()\n {\n //get products currently in the cart\n $products = $this->get();\n\n $data = '';\n\n $total = 0;\n\n $data .= '<li class=\"header_row\">\n <div class=\"col1\">Product Name:</div>\n <div class=\"col2\">Quantity:</div>\n <div class=\"col3\">Product Price:</div>\n <div class=\"col4\">Total Price:</div>\n </li>';\n if ($products != '') {\n //products to display\n $line = 1;\n $shipping = 0;\n foreach ($products as $product) {\n //create new item in the cart\n $data .= '<li ';\n if ($line % 2 == 0) {\n $data .= ' class=\"alt\"';\n }\n $data .= '><div class=\"col1\">' . $product['name'] . '</div>';\n $data .= '<div class=\"col2\"><input name=\"product' . $product['id'] . '\" value=\"' . $_SESSION['cart'][$product['id']] . '\" ></div>';\n $data .= '<div class=\"col3\">$' . $product['price'] . '</div>';\n $data .= '<div class=\"col4\">$' . $product['price'] * $_SESSION['cart'][$product['id']] . '</div></li>';\n\n $shipping += ($this->getShippingCost($product['price'] * $_SESSION['cart'][$product['id']]));\n $total += $product['price'] * $_SESSION['cart'][$product['id']];\n $line++;\n\n }\n //add subtotal row\n $data .= '<li class=\"subtotal_row\">\n <div class=\"col1\">SubTotal:</div>\n <div class=\"col2\">$' . $total . '</div>\n </li>';\n\n //shipping\n $shippingCost = number_format($shipping, 2);\n $data .= '<li class=\"shipping_row\"><div class=\"col1\">Shipping Cost:</div>\n <div class=\"col2\">$' . $shippingCost .\n '</div></li>';\n\n //taxes\n $taxes = number_format(SHOP_TAX * $total, 2);\n if (SHOP_TAX > 0) {\n $data .= '<li class=\"taxes_row\"><div class=\"col1\"> Tax(' . (SHOP_TAX * 100) . '%)</div>\n <div class=\"col2\">$' . $taxes .\n '</div></li>';\n }\n\n //add total row\n $totalCost = number_format($total + $taxes + $shippingCost, 2);\n $data .= '<li class=\"total_row\">\n <div class=\"col1\">Total:</div>\n <div class=\"col2\">$' . ($totalCost) . '</div>\n </li>';\n } else {\n //no products to display\n $data .= '<li><strong>No items in the Cart!</strong></li>';\n\n //add subtotal row\n $data .= '<li class=\"subtotal_row\">\n <div class=\"col1\">SubTotal:</div>\n <div class=\"col2\">$0.00:</div>\n </li>';\n\n //shipping\n $data .= '<li class=\"shipping_row\"><div class=\"col1\">Shipping Cost:</div>\n <div class=\"col2\">$0.00</div></li>';\n\n //taxes\n if (SHOP_TAX > 0) {\n $data .= '<li class=\"taxes_row\"><div class=\"col1\"> Tax(' . (SHOP_TAX * 100) . '%)</div>\n <div class=\"col2\">$0.00</div></li>';\n }\n\n\n //add total row\n $data .= '<li class=\"total_row\">\n <div class=\"col1\">Total:</div>\n <div class=\"col2\">$0.00:</div>\n </li>';\n }\n return $data;\n }", "title": "" }, { "docid": "d2cdc47417b3829664c108d81f4192ad", "score": "0.6708696", "text": "public function getProduct(): array\n {\n // recuper le panier\n $cart = $this->sessionInterface->get('cart', []);\n \n $items = [];\n\n /* pour chaque prdouit dans le panier\n *\n * cart s'affiche de cette maniere : \n * [id => [\n * taille => [\n * \"qte\" => \"quantite\n * ]\n * ]\n * ]\n */\n\n // le role de cette fonction est de recupere les produits avec plus d'informations\n foreach ($cart as $id => $taille) {\n foreach ($taille as $_taille => $qte) {\n $stock = $this->stock->findOneBy(['modeleChaussure' => $this->shoe->find($id)->getId(), 'taille' => $this->taille->findOneBy(['taille' => $_taille])->getId()]);\n $promo = 0;\n if ($this->getPromotion($this->shoe->find($id)) !== 0) {\n $promo = $this->getPromotion($this->shoe->find($id));\n }\n\n // le tableau a return\n $items[] = [\n 'stock' => $stock,\n 'product' => $this->shoe->find($id),\n 'taille' => $_taille,\n 'qte' => $qte['qte'],\n 'promo' => $promo\n ];\n }\n }\n return $items;\n }", "title": "" }, { "docid": "d410f1940b4a813a160ebe3b2fa314be", "score": "0.66341096", "text": "function getAllCartProducts()\n {\n $data = array();\n\n if ($stmt = $this->connection->prepare(\"SELECT * FROM cart\")) {\n $stmt->execute();\n $stmt->store_result();\n $stmt->bind_result($id, $name, $price, $desc);\n\n if ($stmt->num_rows > 0) {\n while ($stmt->fetch()) {\n $data[] = array('id' => $id, 'name' => $name, 'price' => $price, 'description' => $desc);\n }\n }\n }\n return $data;\n }", "title": "" }, { "docid": "aad706e5201b7fbfcd65100342989145", "score": "0.65666926", "text": "public static function generate()\n {\n $products = new Products();\n $reflectionProducts = new ReflectionClass($products);\n $arr = $reflectionProducts->getReflectionConstants();\n $productArray = array();\n foreach ($arr as $key => $value) {\n $productArray[$key] = new Product($key, $value->name);\n }\n return $productArray;\n }", "title": "" }, { "docid": "541b86b6875d7b6c870e4d7bc0d0d265", "score": "0.65634626", "text": "public function contents()\n {\n $cartContents = [];\n $contents = $this->cartRepo()->cartContents();\n\n foreach ($contents as $item) {\n $product = $this->service->find($item->entity_id);\n $product->cart_id = $item->id;\n $product->quantity = $item->quantity;\n $product->entity_type = $item->entity_type;\n $product->product_variants = $item->product_variants;\n $product->weight = $this->weightVariants($item, $product);\n $product->price = $this->priceVariants($item, $product);\n\n array_push($cartContents, $product);\n }\n\n return $cartContents;\n }", "title": "" }, { "docid": "88a302551c686cfe26e989fc0d90f9a2", "score": "0.65040696", "text": "public function getProducts(){\n $query = 'SELECT * FROM products order by id';\n $stmt = $this->db->dbConnection->prepare($query);\n $stmt->execute();\n $products = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n\n //create new array\n $prods = array();\n foreach($products as $product){\n //push new products to array\n array_push($prods,new Product($product['id'], $product['product_name'], $product['product_description'], $product['product_price'], $product['image_path'], 1));\n }\n \n // print_r($prods);\n\n // print_r($products);\n return $prods;\n }", "title": "" }, { "docid": "bb091dd9d73bbc5566fbc1541d97a5e3", "score": "0.64917856", "text": "public function run()\n {\n \t$products = [\n \t\t[\n \t\t\t'name' => \"Boleta de prueba 1\",\n \t\t\t'description' => \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.\",\n \t\t\t'units' => 21,\n \t\t\t'price' => 125000,\n \t\t\t'image' => \"https://www.pngitem.com/pimgs/m/282-2825770_theater-tickets-clipart-hd-png-download.png\"\n \t\t],\n \t\t[\n \t\t\t'name' => \"Boleta de prueba 2\",\n \t\t\t'description' => \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.\",\n \t\t\t'units' => 400,\n \t\t\t'price' => 58000,\n \t\t\t'image' => \"https://www.pngitem.com/pimgs/m/282-2825770_theater-tickets-clipart-hd-png-download.png\"\n \t\t],\n \t\t[\n \t\t\t'name' => \"Boleta de prueba 3\",\n \t\t\t'description' => \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.\",\n \t\t\t'units' => 37,\n \t\t\t'price' => 37800,\n \t\t\t'image' => \"https://www.pngitem.com/pimgs/m/282-2825770_theater-tickets-clipart-hd-png-download.png\"\n \t\t],\n \t\t[\n \t\t\t'name' => \"Boleta de prueba 4\",\n \t\t\t'description' => \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.\",\n \t\t\t'units' => 10,\n \t\t\t'price' => 176000,\n \t\t\t'image' => \"https://www.pngitem.com/pimgs/m/282-2825770_theater-tickets-clipart-hd-png-download.png\"\n\t\t\t],\n\t\t\t[\n \t\t\t'name' => \"Boleta de prueba 5\",\n \t\t\t'description' => \"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.\",\n \t\t\t'units' => 4,\n \t\t\t'price' => 58340,\n \t\t\t'image' => \"https://www.pngitem.com/pimgs/m/282-2825770_theater-tickets-clipart-hd-png-download.png\"\n \t\t]\n \t];\n\n \tforeach ($products as $product) {\n \t\tProduct::create($product);\n \t}\n\n }", "title": "" }, { "docid": "99483b16a82d4120004c03ca507fb5e8", "score": "0.64659774", "text": "public function products() {\n\t\t$this->checkPlugin();\n\t\t$this->load->model('catalog/product');\n\t\t$products = $this->model_catalog_product->getAllProduct();\n\t\t\n\t\tif(count($products)){\n\t\t\tforeach ($products as $product) {\n\n\t\t\t$variation = $this->model_catalog_product->getVariation($product);\n\t\n\t\t\t\tif(empty($variation[0])){\n\t\t\t\t\t$variation = null;\n\t\t\t\t}\n\t\t\t\tif(!empty($product['name'])){\n\t\t\t\t\t$aProducts[] = array(\n\t\t\t\t\t\t\t\t\t'id'\t\t\t=> $product['product_id'],\n\t\t\t\t\t\t\t\t\t'name'\t\t\t=> $product['name'],\n\t\t\t\t\t\t\t\t\t'description'\t\t=> 'b64'.base64_encode($product['description']),\n\t\t\t\t\t\t\t\t\t'model'\t\t\t=> 'b64'.base64_encode($product['model']),\n\t\t\t\t\t\t\t\t\t'sku'\t\t\t=> $product['sku'],\n\t\t\t\t\t\t\t\t\t'quantity'\t\t=> $product['quantity'],\n\t\t\t\t\t\t\t\t\t'price'\t\t\t=> $product['price'],\n\t\t\t\t\t\t\t\t\t'weight'\t\t=> $product['weight'],\n\t\t\t\t\t\t\t\t\t'length'\t\t=> $product['length'],\n\t\t\t\t\t\t\t\t\t'width'\t\t\t=> $product['width'],\n\t\t\t\t\t\t\t\t\t'height'\t\t=> $product['height'],\n\t\t\t\t\t\t\t\t\t'attribute'\t\t=> $product['attribute'],\n\t\t\t\t\t\t\t\t\t'variation'\t\t=> $variation\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$json['success'] \t= true;\n\t\t\t$json['products'] \t= $aProducts;\n\t\t}else {\n\t\t\t$json['success'] \t= false;\n\t\t\t$json['error'] \t= \"Problems Getting Products.\";\n\t\t}\n\t\tif ($this->debugIt) {\n\t\t\techo '<pre>';\n\t\t\tprint_r($json);\n\t\t\techo '</pre>';\n\t\t} else {\n\t\t\t$this->response->setOutput(json_encode($json));\n\t\t}\n\t}", "title": "" }, { "docid": "dd5f975d0e27b21d396e06db4aff3b63", "score": "0.6416659", "text": "public function getProductForLigneCommande(): array\n {\n // recuper le panier\n $cart = $this->sessionInterface->get('cart', []);\n $items = [];\n // recupere les produits avec informations nécessaire pour lignecommande \n foreach ($cart as $id => $taille) {\n foreach ($taille as $_taille => $qte) {\n $items[] = [\n 'product' => $this->shoe->find($id),\n 'product_price' => $this->getPromotion($this->shoe->find($id)),\n 'taille' => $_taille,\n 'qte' => $qte['qte']\n ];\n }\n }\n return $items;\n }", "title": "" }, { "docid": "1574d6e56f8bc3137a06ad2b63d8bccb", "score": "0.64125365", "text": "function get_products()\n\t{\n\t\t$ppc=floatval(get_option('points_per_currency_unit'));\n\t\tif ($ppc<=0.0) return array();\n\n\t\t$rows=$GLOBALS['SITE_DB']->query_select('pstore_customs',array('*'),array('c_enabled'=>1));\n\n\t\t$products=array();\n\t\tforeach ($rows as $row)\n\t\t{\n\t\t\tif ($row['c_cost']!=0)\n\t\t\t{\n\t\t\t\t$cost=floatval($row['c_cost'])/$ppc;\n\t\t\t\t$products['CUSTOM_'.strval($row['id'])]=array(PRODUCT_PURCHASE_WIZARD,float_to_raw_string($cost),'handle_custom_purchase',array(),get_translated_text($row['c_title']));\n\t\t\t}\n\t\t}\n\n\t\treturn $products;\n\t}", "title": "" }, { "docid": "27f827d4794e358391ffa63ba5406133", "score": "0.6379658", "text": "private function AddProductsToCart()\n\t{\n\t\t$response = array();\n\n\t\tif (isset($_REQUEST['products'])) {\n\t\t\t$cart = GetClass('ISC_CART');\n\n\t\t\t$products = explode(\"&\", $_REQUEST[\"products\"]);\n\n\t\t\tforeach ($products as $product) {\n\t\t\t\tlist($id, $qty) = explode(\"=\", $product);\n\t\t\t\tif (!$cart->AddSimpleProductToCart($id, $qty)) {\n\t\t\t\t\t$response[\"error\"] = $_SESSION['ProductErrorMessage'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\techo isc_json_encode($response);\n\t\texit;\n\t}", "title": "" }, { "docid": "7be48fb0b8bfd664297a92fcd7ac3bf3", "score": "0.6377291", "text": "public function product();", "title": "" }, { "docid": "33c0f978373a69a395a17e5c5c0c9301", "score": "0.6376109", "text": "public function getProduct()\n {\n $currentStoreTime = $this->changeTimeZoneToUTC();\n $lastday = strtotime('-1 day', strtotime($currentStoreTime));\n $lastday = date('Y-m-d h:i:s', $lastday);\n $orders = $this->collection\n ->addFieldToFilter('created_at', ['gteq' => $lastday])\n ->addFieldToFilter('created_at', ['lteq' => $currentStoreTime])\n ->getData();\n $data['heading'] = ['SKU', 'NAME', 'QTY ORDER', 'QTY STOCK', 'PURCHASE TIME'];\n if (count($orders) > 0) {\n foreach ($orders as $order) {\n $order_id = $order['order_id'];\n $status = $this->getOrderStatus($order_id);\n $isPaid = $this->getOrderPaid($order_id);\n if ($status == 'complete' && isset($isPaid)) {\n $keyToCheck = $order['sku'].$order['name'];\n if (array_key_exists($keyToCheck, $data)) {\n $order['qty_ordered'] += $data[$keyToCheck][2];\n $data[$keyToCheck] = [$order['sku'], $order['name'], $order['qty_ordered'], $this->getStockQty($order['product_id']), $order['created_at']];\n } else {\n $data[$keyToCheck] = [$order['sku'], $order['name'], $order['qty_ordered'], $this->getStockQty($order['product_id']), $order['created_at']];\n }\n }\n }\n } else {\n $data[] = ['SKU', 'NAME', 'QTY ORDER', 'QTY STOCK', 'PURCHASE TIME'];\n $data[] = ['empty', 'empty', 'empty', 'empty', 'empty'];\n }\n return $data;\n }", "title": "" }, { "docid": "2d4e1575b3555b8ff702d4bfa382d482", "score": "0.63525057", "text": "function build_display_cart($cart=NULL){\n $db = db_connect();\n\n $items = $cart;\n $display_cart = '';\n\n foreach ($cart as $key=>$value) {\n $display_cart_command = \"SELECT * FROM products WHERE productId=\" . $items[$key]['productId'] . \";\";\n $display_cart_results = $db->query($display_cart_command);\n $display_cart_data = $display_cart_results->fetch_object();\n $display_cart .= '<input class=\"checkout_list\" name=\"checkout_button\" type=\"text\" readonly value=\"' . $display_cart_data->name . ': ' . $value[\"quantity\"] . '\"> <br>';\n }\n\n return $display_cart;\n}", "title": "" }, { "docid": "3551309d48ea58183dc972e32eee7590", "score": "0.6341326", "text": "function getProducts() {\n\t\treturn [];\n\t}", "title": "" }, { "docid": "2f024c068a0c23452fa6163a5e901bb0", "score": "0.6335424", "text": "public function getCart();", "title": "" }, { "docid": "0a338ca933cd57de97e173bf9ce5ac97", "score": "0.6314754", "text": "public function run()\n {\n $products = [\n\n \t// BOOKS\n\n \t[\n \t\t'product_name' => 'The Book of Enoch',\n \t\t'product_description' => 'The fallen Angels, The Nephilims, and ending',\n \t\t'category_id' => 1,\n \t\t'department_id' => 1,\n \t\t'price' => 158.00,\n \t\t'image' => '',\n \t\t'quantity' => 3\n \t],\n\n \t[\n \t\t'product_name' => 'The NoteBook',\n \t\t'product_description' => 'The Love story of jack and jaw',\n \t\t'category_id' => 1,\n \t\t'department_id' => 1,\n \t\t'price' => 230.00,\n \t\t'image' => '',\n \t\t'quantity' => 3\n \t],\n\n \t[\n \t\t'product_name' => 'Hercules',\n \t\t'product_description' => 'The Love story of hercules',\n \t\t'category_id' => 1,\n \t\t'department_id' => 2,\n \t\t'price' => 500.00,\n \t\t'image' => '',\n \t\t'quantity' => 3\n \t],\n\n \t[\n \t\t'product_name' => 'My Unicorn',\n \t\t'product_description' => 'The story of unicorn',\n \t\t'category_id' => 1,\n \t\t'department_id' => 3,\n \t\t'price' => 399.00,\n \t\t'image' => '',\n \t\t'quantity' => 3\n \t],\n\n\n\n \t//School Supplies\n \t[\n \t\t'product_name' => 'notebooks',\n \t\t'product_description' => 'the notebooks',\n \t\t'category_id' => 2,\n \t\t'department_id' => 3,\n \t\t'price' => 10.00,\n \t\t'image' => '',\n \t\t'quantity' => 3\n \t],\n\n \t[\n \t\t'product_name' => 'Papers',\n \t\t'product_description' => 'The papers',\n \t\t'category_id' => 2,\n \t\t'department_id' => 1,\n \t\t'price' => 20.00,\n \t\t'image' => '',\n \t\t'quantity' => 3\n \t]\n\n ];\n\n\n foreach($products as $product){\n\n \tProduct::create([\n\n \t\t'product_name' => $product['product_name'],\n \t\t'product_description' => $product['product_description'],\n \t\t'category_id' => $product['category_id'],\n \t\t'department_id' => $product['department_id'],\n \t\t'price' => $product['price'],\n \t\t'image' => $product['image'],\n \t\t'quantity' => $product['quantity']\n\n \t]);\n\n }\n }", "title": "" }, { "docid": "995194d52aea883b0510da0bacd6abbc", "score": "0.6303151", "text": "function get_pc_cart_items() {\n\t$cartid = isset( $_COOKIE['pc_cart'] ) ? $_COOKIE['pc_cart'] : '';\n\t$api_token = get_option( 'prodigy-commerce_api-field' );\n\n\tif ( '' === $cartid ) {\n\t\treturn apply_filters( 'pc_empty_cart_message', '' );\n\t}\n\n\t$url = 'https://demo.global.cardpaysolutions.com/carts/' . $cartid;\n\t$get_args = array(\n\t\t'method' => 'GET',\n\t\t'headers' => array(\n\t\t\t'Content-Type' => 'application/json',\n\t\t\t'Authorization' => 'Token token=' . $api_token,\n\t\t),\n\t);\n\n\t$response = wp_safe_remote_get( $url, $get_args );\n\n\tif ( is_wp_error( $response ) ) {\n\t\treturn;\n\t}\n\n\t$products = json_decode( $response['body'], ARRAY_N );\n\n\tif ( is_array( $products['line_items'] ) ) {\n\t\tforeach ( $products['line_items'] as $product ) {\n\t\t\t$post_obj = get_post( (int) $product['ext_id'] );\n\t\t\t$meta = get_post_meta( $post_obj->ID, '_pc_product_general', true );\n\t\t\t$regular_price = get_post_meta( $post_obj->ID, '_pc_regular_price', true );\n\t\t\t$sale_price = get_post_meta( $post_obj->ID, '_pc_sale_price', true );\n\t\t\t$product_array[] = array(\n\t\t\t\t'id' => $product['id'],\n\t\t\t\t'ext_id' => $post_obj->ID,\n\t\t\t\t'quantity' => $product['quantity'],\n\t\t\t\t'title' => $post_obj->post_title,\n\t\t\t\t'price' => $regular_price,\n\t\t\t\t'sale-price' => $sale_price,\n\t\t\t\t'description' => $meta['short-description'],\n\n\t\t\t);\n\t\t}\n\t} else {\n\t\t$product_array = apply_filters( 'pc_empty_cart_message', '' );\n\t}\n\n\treturn $product_array;\n}", "title": "" }, { "docid": "81a9ca6b205dbe9522b5e4db5a0dab8f", "score": "0.6301725", "text": "public function getCart(): array\n {\n $cartItems = $_SESSION[\"cart\"] ?? [];\n $output = [];\n $productEntries = $this->kernel->getModelService()->find(Product::class, [\"id\" => array_keys($cartItems)]);\n\n foreach ($productEntries as $product) {\n $cartItem = $cartItems[$product->id];\n $total = $product->cost_per_item * $cartItem[\"quantity\"];\n\n $output[] = array_merge([\"product\" => $product, \"total\" => $total], $cartItem);\n }\n\n return $output;\n }", "title": "" }, { "docid": "8b7ebba3f2704110f59995354d4a9075", "score": "0.62980294", "text": "function get_cart()\n\t{\n\t\t$cart_items = array();\n\n\t\tif( $this->sessions && $this->sessions->session )\n\t\t{\n\t\t\tforeach ( $this->sessions->session as $cart_item_id => $cart_param ) {\n\t\t\t\t$param = new stdClass();\n\n\t\t\t\t// each all cart_param and add to cart_items\n\t\t\t\tforeach ( $cart_param as $key => $value ) {\n\t\t\t\t\t$param->{ $key } = $value;\n\t\t\t\t}\n\n\t\t\t\tif( $param->product_id )\n\t\t\t\t{\n\t\t\t\t\t$param->product_data = get_post( $param->product_id );\n\n\t\t\t\t\t$post_type = $param->product_data->post_type;\n\t\t\t\t\t$product_class = 'DN_Product_' . ucfirst( str_replace( 'dn_', '', $post_type) );\n\t\t\t\t\tif( ! class_exists( $product_class ) )\n\t\t\t\t\t \t$product_class = 'DN_Product_Base';\n\n\t\t\t\t\t if( ! class_exists( $product_class ) )\n\t\t\t\t\t \treturn new WP_Error( 'donate_cart_class_process_product', __( 'Class process product is not exists', 'tp-donate' ) );\n\n\t\t\t\t\t// class process product\n\t\t\t\t\t$param->product_class = apply_filters( 'donate_product_type_class', $product_class, $post_type );\n\t\t\t\t\t$product = new $param->product_class;\n\n\t\t\t\t\t// amount include tax\n\t\t\t\t\t$param->amount_include_tax = $param->amount; //$product->amount_include_tax();\n\n\t\t\t\t\t// amount exclude tax\n\t\t\t\t\t$param->amount_exclude_tax = $param->amount; //$product->amount_exclude_tax();\n\n\t\t\t\t\t// amount tax\n\t\t\t\t\t$param->tax = $param->amount_include_tax - $param->amount_exclude_tax;\n\t\t\t\t}\n\n\t\t\t\t// add to cart_items\n\t\t\t\t$cart_items[ $cart_item_id ] = $param;\n\t\t\t}\n\t\t}\n\n\t\treturn apply_filters( 'donate_load_cart_from_session', $cart_items );\n\t}", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.6291725", "text": "public function getProducts();", "title": "" }, { "docid": "ba76397df84786c76b2e586e5e29d87f", "score": "0.62706757", "text": "public function getProductList();", "title": "" }, { "docid": "f9f2e7c60b9e62cf310abbd8e61036b2", "score": "0.6258726", "text": "function prepareAjaxData(){\n\t\t$this->_cart = VirtueMartCart::getCart(false);\n\t\t$this->_cart->prepareCartData(false);\n\t\t$weight_total = 0;\n\t\t$weight_subtotal = 0;\n\n\t\t//of course, some may argue that the $this->data->products should be generated in the view.html.php, but\n\t\t//\n\t\t$data->products = array();\n\t\t$data->totalProduct = 0;\n\t\t$i=0;\n\t\t\n\t\tif (!class_exists('CurrencyDisplay'))\n require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php');\n $currency = CurrencyDisplay::getInstance();\n\t\t\n\t\tforeach ($this->_cart->products as $priceKey=>$product){\n\t\t\t$category_id = $this->_cart->getCardCategoryId($product->virtuemart_product_id);\n\t\t\t//Create product URL\n\t\t\t$url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$category_id);\n\n\t\t\t// @todo Add variants\n\t\t\t$data->products[$i]['product_cart_id']=$priceKey;\n\t\t\t$data->products[$i]['product_name'] = JHTML::link($url, $product->product_name);\n\n\t\t\t// Add the variants\n\t\t\tif (!is_numeric($priceKey)) {\n\t\t\t\tif(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php');\n\t\t\t\t// custom product fields display for cart\n\t\t\t\t$data->products[$i]['product_attributes'] = VirtueMartModelCustomfields::CustomsFieldCartModDisplay($priceKey,$product);\n\n\t\t\t}\n\t\t\t\n\n\t\t\t// product Price total for ajax cart\n\t\t\t$data->products[$i]['prices'] = $currency->priceDisplay($this->_cart->pricesUnformatted[$priceKey]['subtotal_with_tax']);\n\t\t\t// other possible option to use for display\n\t\t\t$data->products[$i]['subtotal'] = $this->_cart->pricesUnformatted[$priceKey]['subtotal'];\n\t\t\t$data->products[$i]['subtotal_tax_amount'] = $this->_cart->pricesUnformatted[$priceKey]['subtotal_tax_amount'];\n\t\t\t$data->products[$i]['subtotal_discount'] = $this->_cart->pricesUnformatted[$priceKey]['subtotal_discount'];\n\t\t\t$data->products[$i]['subtotal_with_tax'] = $this->_cart->pricesUnformatted[$priceKey]['subtotal_with_tax'];\n\t\t\t\n\t\t\t/**\n Line for adding images to minicart\n **/\n $data->products[$i]['image']='<a href=\"'.$url.'\"><img src=\"'.JFactory::getUri()->base().$product->image->file_url_thumb.'\" /></a>';\n\n\t\t\t// UPDATE CART / DELETE FROM CART\n\t\t\t$data->products[$i]['quantity'] = $product->quantity;\n\t\t\t$data->totalProduct += $product->quantity ;\n\n\t\t\t$i++;\n\t\t}\n\t\t//JFactory::getLanguage()->load('mod_vm2cart');\n\t\t//$data->billTotal = count($data->products)?$this->_cart->prices['billTotal']:JText::_('MOD_VM2CART_CART_EMPTY');\n\t\t$data->billTotal = count($data->products)?$currency->priceDisplay($this->_cart->pricesUnformatted['billTotal']):JText::_('COM_VIRTUEMART_CART_OVERVIEW');\n\t\t//$data->dataValidated = $this->_dataValidated ;\n\t\t$data->sub_total = $data->billTotal ;\n\t\t \n\n\t\t$data->dataValidated=false;\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "15d59ce1a6154b19b67c2402b4f591cd", "score": "0.62402225", "text": "public function myCart(Request $request)\n {\n if(empty($request->user()->id)){\n throw new \\Exception(\"Please login again\");\n }\n $productList = [];\n $userId = $request->user()->id;\n \n $myProducts = Cart::where('user_id',$userId)->where('status',1)->get()->toArray();\n \n if(!empty($myProducts)){\n foreach($myProducts as $key => $myProduct){\n $row = [];\n $productData = Product::where('id',$myProduct['product_id'])->first();\n $myProducts[$key]['product_name'] = $productData->name;\n $row['user_id'] = $myProduct['user_id'];\n $row['product_id'] = $myProduct['product_id'];\n $row['product_name'] = $productData->name;\n $row['created_at'] = $myProduct['created_at'];\n $productList[] = $row;\n }\n }\n if (empty($productList)) {\n return $this->sendError('No product added to cart.');\n }\n return $this->sendResponse($productList, 'Products retrieved successfully.');\n }", "title": "" }, { "docid": "2ff5bd045a4c31a0f9c979fc37dfb971", "score": "0.62389666", "text": "public function run()\n {\n $products = [\n [\n 'name' => \"Foldable Wireless Mouse\",\n 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.',\n 'quantity' => 21,\n 'price' => 200.10,\n 'image' => 'https://ke.jumia.is/unsafe/fit-in/500x500/filters:fill(white)/product/74/148842/1.jpg?6146',\n 'created_at' => new DateTime,\n 'updated_at' => null,\n ],\n [\n 'name' => \"Wired Mouse\",\n 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.',\n 'quantity' => 400,\n 'price' => 1600.21,\n 'image' => 'https://ke.jumia.is/unsafe/fit-in/680x680/filters:fill(white)/product/86/210112/1.jpg?7765',\n 'created_at' => new DateTime,\n 'updated_at' => null,\n \n ],\n [\n 'name' => \"Lenovo M20 USB 3 Button\",\n 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.',\n 'quantity' => 37,\n 'price' => 378.00,\n 'image' => 'https://ke.jumia.is/unsafe/fit-in/500x500/filters:fill(white)/product/19/589662/1.jpg?7785',\n 'created_at' => new DateTime,\n 'updated_at' => null,\n ],\n [\n 'name' => 'Gaming Mouse ',\n 'description' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\n tempor incididunt ut labore et dolore magna aliqua consequat.',\n 'quantity' => 10,\n 'price' => 21.10,\n 'image' => 'https://ke.jumia.is/unsafe/fit-in/500x500/filters:fill(white)/product/30/206462/1.jpg?2007',\n 'created_at' => new DateTime,\n 'updated_at' => null,\n ]\n ];\n\n DB::table('products')->insert($products);\n }", "title": "" }, { "docid": "15e7e712138c7070a5f4e7ed5550e3b2", "score": "0.6217447", "text": "public function create()\n {\n $products = Product::all()->toArray();\n\n $number = rand(1, count($products));\n\n\n// dd($products);\n $newOrder = [];\n $total = 0;\n for ($i = 0; $i < $number; $i++) {\n $amount = rand(1, 5);\n $product = $products[array_rand($products)];\n $newOrder[] = [\n 'product' => $product,\n 'amount' => $amount\n ];\n $total += $this->manipulateOrderProduct($product);\n }\n $newOrder['price'] = $total;\n $newOrder = Order::create($newOrder);\n dd($newOrder);\n }", "title": "" }, { "docid": "c17e3725f13d1cb215c890e32332c66f", "score": "0.62147003", "text": "function get_products() {\n global $languages_id, $pfs; // PriceFormatterStore added\n// BOF Separate Pricing Per Customer\n$this->cg_id = $this->get_customer_group_id();\n// EOF Separate Pricing Per Customer\n\n if (!is_array($this->contents)) return false;\n// BOF QPBPP for SPPC\n $discount_category_quantity = array();\n foreach ($this->contents as $products_id => $contents_array) {\n\t if(tep_not_null($contents_array['discount_categories_id'])) {\n\t if (!isset($discount_category_quantity[$contents_array['discount_categories_id']])) {\n\t\t $discount_category_quantity[$contents_array['discount_categories_id']] = $contents_array['qty'];\n\t } else {\n\t\t $discount_category_quantity[$contents_array['discount_categories_id']] += $contents_array['qty'];\n\t }\n\t }\n } // end foreach\n \n $pf = new PriceFormatter;\n// EOF QPBPP for SPPC\n\n $products_array = array();\n reset($this->contents);\n while (list($products_id, ) = each($this->contents)) {\n// BOF QPBPP for SPPC\n $pf->loadProduct($products_id, $languages_id); // does query if necessary and adds to \n // PriceFormatterStore or gets info from it next\n\t if ($products = $pfs->getPriceFormatterData($products_id)) {\n if (tep_not_null($this->contents[$products_id]['discount_categories_id'])) {\n $nof_items_in_cart_same_cat = $discount_category_quantity[$this->contents[$products_id]['discount_categories_id']];\n $nof_other_items_in_cart_same_cat = $nof_items_in_cart_same_cat - $this->contents[$products_id]['qty'];\n } else {\n $nof_other_items_in_cart_same_cat = 0;\n }\n $products_price = $pf->computePrice($this->contents[$products_id]['qty'], $nof_other_items_in_cart_same_cat);\n// EOF QPBPP for SPPC\n\n $products_array[] = array('id' => $products_id,\n 'name' => $products['products_name'],\n 'model' => $products['products_model'],\n 'image' => $products['products_image'],\n 'discount_categories_id' => $this->contents[$products_id]['discount_categories_id'],\n 'price' => $products_price,\n\t\t\t\t\t\t\t\t 'cost' => $products['products_cost'],\t\n 'quantity' => $this->contents[$products_id]['qty'],\n 'weight' => $products['products_weight'],\n 'final_price' => ($products_price + $this->attributes_price($products_id)),\n 'tax_class_id' => $products['products_tax_class_id'],\n 'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));\n }\n }\n\n return $products_array;\n }", "title": "" }, { "docid": "51f4a9363223128509973617ba125ba0", "score": "0.62136805", "text": "public function add($products){\n// $new = $test->map(function ($item ){\n// return $item*2 ;\n// });\n// dd($new->all());\n\n\n// $products = $request->products ;\n// dd($products);\n\n// $products =\n $this->user->cart()->syncWithoutDetaching($this->getStorePayload($products));\n\n\n\n }", "title": "" }, { "docid": "650aa525120e3ed3bc678dc7842f7387", "score": "0.6201423", "text": "private static function build_products_array( $product, $products = array() ) {\n\n\t\tif ( ! is_object( $product ) || ! $product->exists() ) {\n\t\t\treturn $products;\n\t\t}\n\n\t\t$products_in_cart = self::get_products_in_cart( self::$shortcode_page_id );\n\n\t\tif ( array_key_exists( $product->get_id(), $products_in_cart ) ) {\n\t\t\trapcart_set_products_prop( $product, 'in_cart', true );\n\t\t\trapcart_set_products_prop( $product, 'cart_item', $products_in_cart[ $product->get_id() ] );\n\t\t} else {\n\t\t\trapcart_set_products_prop( $product, 'in_cart', false );\n\t\t\trapcart_set_products_prop( $product, 'cart_item', array() );\n\t\t}\n\n\t\t// For the single product template we need to check if a product variation exists in the cart\n\t\tif ( $product->has_child() ) {\n\n\t\t\t$visible_children = rapcart_get_visible_children( $product );\n\n\t\t\tforeach( $visible_children as $product_id ) {\n\t\t\t\tif ( array_key_exists( $product_id , $products_in_cart ) ) {\n\t\t\t\t\trapcart_set_products_prop( $product, 'in_cart', true );\n\t\t\t\t\trapcart_set_products_prop( $product, 'cart_item', $products_in_cart[ $product_id ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$products[ $product->get_id() ] = $product;\n\n\t\treturn $products;\n\t}", "title": "" }, { "docid": "412476d54bb00cb326fb4fabd48a5b9c", "score": "0.6193243", "text": "function createProductList($array) {\r\n $productArray = array();\r\n foreach ($array as $item) { //Kan uppnås med array_map\r\n $product = new Product((int)$item->productId, $item->productName, (int)$item->price, $item->description, (int)$item->unitsInStock, (int)$item->categoryId, $item->img);\r\n array_push($productArray, $product);\r\n }\r\n return $productArray;\r\n }", "title": "" }, { "docid": "745958db1125df457247819bf7808ae4", "score": "0.6189703", "text": "public function products()\n {\n // api call to shopify\n// try {\n// $request = $this->client->get($this->url);\n// $response = $request->getBody();\n\n $response = array (\n 'products' =>\n array (\n 0 =>\n array (\n 'id' => 632910392,\n 'title' => 'IPod Nano - 8GB',\n 'body_html' => '<p>It\\'s the small iPod with one very big idea: Video. Now the world\\'s most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.</p>',\n 'vendor' => 'Apple',\n 'product_type' => 'Cult Products',\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'handle' => 'ipod-nano',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'published_at' => '2007-12-31T19:00:00-05:00',\n 'template_suffix' => NULL,\n 'published_scope' => 'web',\n 'tags' => 'Emotive, Flash Memory, MP3, Music',\n 'admin_graphql_api_id' => 'gid://shopify/Product/632910392',\n 'variants' =>\n array (\n 0 =>\n array (\n 'id' => 808950810,\n 'product_id' => 632910392,\n 'title' => 'Pink',\n 'price' => '199.00',\n 'sku' => 'IPOD2008PINK',\n 'position' => 1,\n 'inventory_policy' => 'continue',\n 'compare_at_price' => NULL,\n 'fulfillment_service' => 'manual',\n 'inventory_management' => 'shopify',\n 'option1' => 'Pink',\n 'option2' => NULL,\n 'option3' => NULL,\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'taxable' => true,\n 'barcode' => '1234_pink',\n 'grams' => 567,\n 'image_id' => 562641783,\n 'weight' => 1.25,\n 'weight_unit' => 'lb',\n 'inventory_item_id' => 808950810,\n 'inventory_quantity' => 10,\n 'old_inventory_quantity' => 10,\n 'requires_shipping' => true,\n 'admin_graphql_api_id' => 'gid://shopify/ProductVariant/808950810',\n 'presentment_prices' =>\n array (\n 0 =>\n array (\n 'price' =>\n array (\n 'currency_code' => 'USD',\n 'amount' => '199.00',\n ),\n 'compare_at_price' => NULL,\n ),\n ),\n ),\n 1 =>\n array (\n 'id' => 49148385,\n 'product_id' => 632910392,\n 'title' => 'Red',\n 'price' => '199.00',\n 'sku' => 'IPOD2008RED',\n 'position' => 2,\n 'inventory_policy' => 'continue',\n 'compare_at_price' => NULL,\n 'fulfillment_service' => 'manual',\n 'inventory_management' => 'shopify',\n 'option1' => 'Red',\n 'option2' => NULL,\n 'option3' => NULL,\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'taxable' => true,\n 'barcode' => '1234_red',\n 'grams' => 567,\n 'image_id' => NULL,\n 'weight' => 1.25,\n 'weight_unit' => 'lb',\n 'inventory_item_id' => 49148385,\n 'inventory_quantity' => 20,\n 'old_inventory_quantity' => 20,\n 'requires_shipping' => true,\n 'admin_graphql_api_id' => 'gid://shopify/ProductVariant/49148385',\n 'presentment_prices' =>\n array (\n 0 =>\n array (\n 'price' =>\n array (\n 'currency_code' => 'USD',\n 'amount' => '199.00',\n ),\n 'compare_at_price' => NULL,\n ),\n ),\n ),\n 2 =>\n array (\n 'id' => 39072856,\n 'product_id' => 632910392,\n 'title' => 'Green',\n 'price' => '199.00',\n 'sku' => 'IPOD2008GREEN',\n 'position' => 3,\n 'inventory_policy' => 'continue',\n 'compare_at_price' => NULL,\n 'fulfillment_service' => 'manual',\n 'inventory_management' => 'shopify',\n 'option1' => 'Green',\n 'option2' => NULL,\n 'option3' => NULL,\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'taxable' => true,\n 'barcode' => '1234_green',\n 'grams' => 567,\n 'image_id' => NULL,\n 'weight' => 1.25,\n 'weight_unit' => 'lb',\n 'inventory_item_id' => 39072856,\n 'inventory_quantity' => 30,\n 'old_inventory_quantity' => 30,\n 'requires_shipping' => true,\n 'admin_graphql_api_id' => 'gid://shopify/ProductVariant/39072856',\n 'presentment_prices' =>\n array (\n 0 =>\n array (\n 'price' =>\n array (\n 'currency_code' => 'USD',\n 'amount' => '199.00',\n ),\n 'compare_at_price' => NULL,\n ),\n ),\n ),\n 3 =>\n array (\n 'id' => 457924702,\n 'product_id' => 632910392,\n 'title' => 'Black',\n 'price' => '199.00',\n 'sku' => 'IPOD2008BLACK',\n 'position' => 4,\n 'inventory_policy' => 'continue',\n 'compare_at_price' => NULL,\n 'fulfillment_service' => 'manual',\n 'inventory_management' => 'shopify',\n 'option1' => 'Black',\n 'option2' => NULL,\n 'option3' => NULL,\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'taxable' => true,\n 'barcode' => '1234_black',\n 'grams' => 567,\n 'image_id' => NULL,\n 'weight' => 1.25,\n 'weight_unit' => 'lb',\n 'inventory_item_id' => 457924702,\n 'inventory_quantity' => 40,\n 'old_inventory_quantity' => 40,\n 'requires_shipping' => true,\n 'admin_graphql_api_id' => 'gid://shopify/ProductVariant/457924702',\n 'presentment_prices' =>\n array (\n 0 =>\n array (\n 'price' =>\n array (\n 'currency_code' => 'USD',\n 'amount' => '199.00',\n ),\n 'compare_at_price' => NULL,\n ),\n ),\n ),\n ),\n 'options' =>\n array (\n 0 =>\n array (\n 'id' => 594680422,\n 'product_id' => 632910392,\n 'name' => 'Color',\n 'position' => 1,\n 'values' =>\n array (\n 0 => 'Pink',\n 1 => 'Red',\n 2 => 'Green',\n 3 => 'Black',\n ),\n ),\n ),\n 'images' =>\n array (\n 0 =>\n array (\n 'id' => 850703190,\n 'product_id' => 632910392,\n 'position' => 1,\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'alt' => NULL,\n 'width' => 123,\n 'height' => 456,\n 'src' => 'https://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano.png?v=1604087419',\n 'variant_ids' =>\n array (\n ),\n 'admin_graphql_api_id' => 'gid://shopify/ProductImage/850703190',\n ),\n 1 =>\n array (\n 'id' => 562641783,\n 'product_id' => 632910392,\n 'position' => 2,\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'alt' => NULL,\n 'width' => 123,\n 'height' => 456,\n 'src' => 'https://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano-2.png?v=1604087419',\n 'variant_ids' =>\n array (\n 0 => 808950810,\n ),\n 'admin_graphql_api_id' => 'gid://shopify/ProductImage/562641783',\n ),\n ),\n 'image' =>\n array (\n 'id' => 850703190,\n 'product_id' => 632910392,\n 'position' => 1,\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'alt' => NULL,\n 'width' => 123,\n 'height' => 456,\n 'src' => 'https://cdn.shopify.com/s/files/1/0006/9093/3842/products/ipod-nano.png?v=1604087419',\n 'variant_ids' =>\n array (\n ),\n 'admin_graphql_api_id' => 'gid://shopify/ProductImage/850703190',\n ),\n ),\n 1 =>\n array (\n 'id' => 921728736,\n 'title' => 'IPod Touch 8GB',\n 'body_html' => '<p>The iPod Touch has the iPhone\\'s multi-touch interface, with a physical home button off the touch screen. The home screen has a list of buttons for the available applications.</p>',\n 'vendor' => 'Apple',\n 'product_type' => 'Cult Products',\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'handle' => 'ipod-touch',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'published_at' => '2008-09-25T20:00:00-04:00',\n 'template_suffix' => NULL,\n 'published_scope' => 'web',\n 'tags' => '',\n 'admin_graphql_api_id' => 'gid://shopify/Product/921728736',\n 'variants' =>\n array (\n 0 =>\n array (\n 'id' => 447654529,\n 'product_id' => 921728736,\n 'title' => 'Black',\n 'price' => '199.00',\n 'sku' => 'IPOD2009BLACK',\n 'position' => 1,\n 'inventory_policy' => 'continue',\n 'compare_at_price' => NULL,\n 'fulfillment_service' => 'shipwire-app',\n 'inventory_management' => 'shipwire-app',\n 'option1' => 'Black',\n 'option2' => NULL,\n 'option3' => NULL,\n 'created_at' => '2020-10-30T15:50:19-04:00',\n 'updated_at' => '2020-10-30T15:50:19-04:00',\n 'taxable' => true,\n 'barcode' => '1234_black',\n 'grams' => 567,\n 'image_id' => NULL,\n 'weight' => 1.25,\n 'weight_unit' => 'lb',\n 'inventory_item_id' => 447654529,\n 'inventory_quantity' => 13,\n 'old_inventory_quantity' => 13,\n 'requires_shipping' => true,\n 'admin_graphql_api_id' => 'gid://shopify/ProductVariant/447654529',\n 'presentment_prices' =>\n array (\n 0 =>\n array (\n 'price' =>\n array (\n 'currency_code' => 'USD',\n 'amount' => '199.00',\n ),\n 'compare_at_price' => NULL,\n ),\n ),\n ),\n ),\n 'options' =>\n array (\n 0 =>\n array (\n 'id' => 891236591,\n 'product_id' => 921728736,\n 'name' => 'Title',\n 'position' => 1,\n 'values' =>\n array (\n 0 => 'Black',\n ),\n ),\n ),\n 'images' =>\n array (\n ),\n 'image' => NULL,\n ),\n ),\n );\n\n $products = $this->transformData($response);\n\n return response()->json($products);\n// }catch (\\Exception $exception){\n// Log::error($exception->getMessage(), ['_trace' => $exception->getTraceAsString()]);\n//\n// throw new \\Exception('Whoops! something went wrong with Shopify product listings.', 500);\n// }\n }", "title": "" }, { "docid": "9fd4e0c0194fa5194cb5afa1d024be86", "score": "0.6182219", "text": "public function product_data() {\n\t\t WC()->structured_data->generate_product_data();\n }", "title": "" }, { "docid": "b7332b72aa437f5ae560ba1b8af097f7", "score": "0.61794436", "text": "public function getCartData()\n {\n $data = array();\n $items = $this->checkoutSession->getQuote()->getAllVisibleItems();\n if($items) {\n foreach ($items as $item) {\n $productData = array();\n $productData['productId'] = $this->affirmPixelHelper->escapeSingleQuotes($item->getSku());\n $productData['name'] = $this->affirmPixelHelper->escapeSingleQuotes($item->getName());\n $productData['price'] = Util::formatToCents($item->getPrice());\n $productData['currency'] = $this->getCurrentCurrencyCode();\n $productData['quantity'] = $item->getQty();\n $data[] = $productData;\n }\n }\n return $data;\n }", "title": "" }, { "docid": "9638352a4429789cea3c6527b63b018a", "score": "0.61765987", "text": "public function productGetAll() {\n // TODO: Implement productGetAll() method.\n }", "title": "" }, { "docid": "d51cb955b040eb0cd6b96eaa9dda3bc1", "score": "0.6175892", "text": "public function run()\n {\n $product = [\n // 一般 Sample account\n [\n 'name' => 'Asus VivoBook A512F i5 8265U',\n 'quantity' => 100,\n 'price' => 17490000,\n 'picture' => 'asus-vivobook-a512f-i5-8265u-8gb-512gb-win10-ej22-(3).jpg',\n 'description' => '',\n 'trademark_id' => 5,\n 'cate_id' => 2,\n 'created_at' => now()\n ],\n [\n 'name' => 'Acer Swift 3 SF315-51-54H0',\n 'quantity' => 100,\n 'price' => 16990000,\n 'picture' => 'acer-sf315-51-54h0-i5-8250u-4gb-1tb-win10-1-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 5,\n 'cate_id' => 2,\n 'created_at' => now()\n ],\n [\n 'name' => 'Dell Inspiron 5584 i5 8265U',\n 'quantity' => 100,\n 'price' => 17490000,\n 'picture' => 'dell-inspiron-5584-i5-8265u-4gb-1tb-mx130-win10-n-1-2-org.jpg',\n 'description' => '',\n 'trademark_id' => 4,\n 'cate_id' => 2,\n 'created_at' => now()\n ],\n [\n 'name' => 'Máy tính bảng Samsung Galaxy Tab A8',\n 'quantity' => 100,\n 'price' => 3690000,\n 'picture' => 'samsung-galaxy-tab-a8-t295-2019-den-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 2,\n 'cate_id' => 1,\n 'created_at' => now()\n ],\n [\n 'name' => 'Máy tính bảng Lenovo Tab E10 TB-X104L',\n 'quantity' => 100,\n 'price' => 3990000,\n 'picture' => 'lenovo-tab-e10-tb-x104l-den-1-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 3,\n 'cate_id' => 1,\n 'created_at' => now()\n ],\n [\n 'name' => 'Máy tính bảng iPad 10.2 inch Wifi 128GB (2019)',\n 'quantity' => 100,\n 'price' => 11990000,\n 'picture' => 'ipad-10-2-inch-wifi-128gb-2019-bac-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 1,\n 'cate_id' => 1,\n 'created_at' => now()\n ],\n [\n 'name' => 'Máy tính bảng iPad 10.2 inch Wifi 32GB (2019)',\n 'quantity' => 100,\n 'price' => 9990000,\n 'picture' => 'ipad-10-2-inch-wifi-32gb-2019-xam-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 1,\n 'cate_id' => 1,\n 'created_at' => now()\n ],\n [\n 'name' => 'Máy tính bảng Samsung Galaxy Tab A 10.1 (2019)',\n 'quantity' => 100,\n 'price' => 7490000,\n 'picture' => 'samsung-galaxy-tab-a-101-t515-2019-vang-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 2,\n 'cate_id' => 1,\n 'created_at' => now()\n ],\n [\n 'name' => 'Máy tính bảng Samsung Galaxy Tab A 8.0 SPen (2019)',\n 'quantity' => 100,\n 'price' => 6990000,\n 'picture' => 'samsung-galaxy-tab-a8-plus-p205-xam-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 2,\n 'cate_id' => 1,\n 'created_at' => now()\n ],\n [\n 'name' => 'Máy tính bảng Samsung Galaxy Tab S2 8',\n 'quantity' => 100,\n 'price' => 3000000,\n 'picture' => 'samsung-galaxy-tab-s2-84--1.jpg',\n 'description' => '',\n 'trademark_id' => 2,\n 'cate_id' => 1,\n 'created_at' => now()\n ],\n [\n 'name' => 'HP Pavilion 590 p0108d i3 9100/4GB/1TB/Bàn phim&Chuột/Win10 (6DV41AA)',\n 'quantity' => 100,\n 'price' => 9390000,\n 'picture' => 'hp-pavilion-590-p0108d-6dv41aa-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 3,\n 'cate_id' => 3,\n 'created_at' => now()\n ],\n [\n 'name' => 'Dell Vostro 3470 i3 9100/4GB/1TB/Bàn phím&Chuột/Win10 (STI31206W)',\n 'quantity' => 100,\n 'price' => 10190000,\n 'picture' => 'dell-vostro-3470-sti31206w-den-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 4,\n 'cate_id' => 3,\n 'created_at' => now()\n ],\n [\n 'name' => 'HP 290 p0110d i3 9100/4GB/1TB/Bàn phím&Chuột/Win10 (6DV51AA)',\n 'quantity' => 100,\n 'price' => 9290000,\n 'picture' => 'hp-slimline-290-p0110d-6dv51aa-den-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 3,\n 'cate_id' => 3,\n 'created_at' => now()\n ],\n [\n 'name' => 'HP AIO 22-b201d i3 7100U/4GB/1TB/Bàn phím&Chuột/Win10 (Z8F51AA)',\n 'quantity' => 100,\n 'price' => 15490000,\n 'picture' => 'may-tinh-bo-aio-hp-22-b201d-i3-7100u-4gb-1tb-dos-1-org.jpg',\n 'description' => '',\n 'trademark_id' => 3,\n 'cate_id' => 3,\n 'created_at' => now()\n ],\n [\n 'name' => 'MTB Dell Vostro 3668MT i5 7400 (PWVK41)',\n 'quantity' => 100,\n 'price' => 11290000,\n 'picture' => 'may-tinh-de-ban-dell-vostro-3668-mt-core-i5-740-300x300.jpg',\n 'description' => '',\n 'trademark_id' => 4,\n 'cate_id' => 3,\n 'created_at' => now()\n ]\n\n\n ];\n\n DB::table('products')->insert($product);\n }", "title": "" }, { "docid": "e1e4b77df42ebc354d58356c1050009d", "score": "0.61182934", "text": "public function getAllCartProducts()\n {\n $cartID = $this->session->get('cartID');\n\n $query = \"\n SELECT\n cp.id, cp.unit_price, cp.quantity, p.id AS product_id, p.name, p.image, p.slug\n FROM\n aca_cart_product AS cp\n INNER JOIN aca_product AS p ON cp.product_id = p.id\n WHERE cp.cart_id = :cartID\n \";\n\n $result = $this->db->fetchRowMany($query, array('cartID' => $cartID));\n\n return $result;\n }", "title": "" }, { "docid": "02fd84ff8724251cf874cf127cb1f383", "score": "0.6101707", "text": "public function viewall() {\n\t\t$ncproduct = $this->modelsManager->createBuilder ()->columns ( array (\n\t\t\t'NCProduct.id as id',\n\t\t\t'NCProduct.product_name as product_name',\n\t\t\t'NCProduct.product_type as product_type',\n\t\t\t'NCProduct.product_des as product_des',\n\t\t\t'NCProduct.product_img as product_img',\n\t\t))->from ('NCProduct')\n\t\t->inwhere(\"NCProduct.product_status\",array(1))\n\t\t->getQuery ()->execute ();\n\t\t$productarray = array();\n\t\tforeach( $ncproduct as $value ){\n\t\t\t$ncproduct_price = NCProductPricing::findByproduct_id($value -> id);\n\t\t\t$ncproduct_price_array = array();\n\t\t\tforeach($ncproduct_price as $product_data){\n\t\t\t\t$value_data['type_id'] = $product_data -> id;\n\t\t\t\t$value_data['productPrice'] = $product_data -> product_price;\n\t\t\t\t$value_data['productAgeStage'] = $product_data -> product_type;\n\t\t\t\t$ncproduct_price_array[] = $value_data;\n\t\t\t}\n\t\t\t$product_value['id'] = $value->id;\n\t\t\t$product_value['productName'] = $value->product_name;\n\t\t\t$product_value['genderType'] = $value->product_type;\n\t\t\t$product_value['productDescription'] = $value->product_des;\n\t\t\t$product_value['imageUpload'] = $value->product_img;\n\t\t\t$product_value['productPriceingQty'] = $ncproduct_price_array;\n\t\t\t$productarray[] = $product_value;\n\t\t}\n\t\t\n\t\t$chunked_array = array_chunk ( $productarray, 15 );\n\t\t\tarray_replace ( $chunked_array, $chunked_array );\n\t\t\t$keyed_array = array ();\n\t\t\tforeach ( $chunked_array as $chunked_arrays ) {\n\t\t\t\t$keyed_array [] = $chunked_arrays;\n\t\t\t}\n\t\t\t$product ['product'] = $keyed_array;\n\t\t\t\n\t\t\treturn $this->response->setJsonContent ( [\n\t\t\t\t'status' => true,\n\t\t\t\t'data' => $product\n\t\t\t] ); \n\t}", "title": "" }, { "docid": "0608a6a1e17d5083f0235d84aaa9603a", "score": "0.6100952", "text": "private function create_products()\n {\n //utils::trace((array)$this->token['data']);\n $dati = (array)$this->token['data'];\n $_table = 'dr_products';\n $tabella = $_table;\n if (in_array(\"C\", $_SESSION['user']['permissions']) or in_array(\"*\", $_SESSION['user']['permissions']) or $_SESSION['customer']['auth'] === true) {\n foreach ($dati as $record){\n $_dati = (array) $record;\n //utils::trace($_dati);\n $this->connect();\n $result = utils::InsertTabella($tabella, $_dati);\n $this->disconnect();\n if ($result > 0) {\n products::writeXML('<message><![CDATA[ok | prodotto creato]]></message>');\n } else {\n products::writeXML('<error><![CDATA[ko | Errore creazione prodotto]]></error>');\n }\n }\n\n } else {\n products::writeXML('<error><![CDATA[ko | no privileges]]></error>');\n }\n\n }", "title": "" }, { "docid": "3ffed5aaed0fde4ec1bca8aff6b87856", "score": "0.6097941", "text": "public function getUserCart();", "title": "" }, { "docid": "4386fa26b06ac8244a35efa633829306", "score": "0.60977477", "text": "public function getSupportCarts($customer_id = 0) {\n\n\t\t$support_carts = \"SELECT `ocs`.*, cus.firstname, cus.lastname, oc.cart_name\n\t\t\t\t\t\t\tFROM `oc_cart_support` AS `ocs`,\n\t\t\t\t\t\t\t \t `oc_customer` AS `cus`,\n\t\t\t\t\t\t\t \t `oc_cart` AS `oc`\n\t\t\t\t\t\t\tWHERE cus.customer_id = ocs.customer_id\n\t\t\t\t\t\t\tAND oc.cart_id = ocs.cart_id\n\t\t\t\t\t\t\tAND oc.date_deleted IS NULL\n\t\t\t\t\t\t\tORDER BY ocs.cart_support_id DESC\n\t\t\t\t\t\t\tLIMIT 0, 25;\";\n\n\t\t//die($support_carts);\n\n\t\t$support_carts = $this->db->query($support_carts)->rows;\n\t\t//echo \"<pre>\"; print_r($support_carts);\n\n\t\tif ($support_carts) {\n\t\t\t//echo sizeof($saved_carts).\"<pre>\";\n\t\t\tforeach ($support_carts as &$cart) {\n\n\t\t\t\t$cart_products = \"SELECT `cp`.*, ax.`type`, ax.`id`, p.`image`, p.`price`, p.`tax_class_id`, pd.`name`,\n\t\t\t\t\t\t\t\t\t\t(SELECT points FROM oc_product_reward WHERE product_id = p.product_id AND customer_group_id = 3) AS reward\n\t\t\t\t\t\t\t\t\t\tFROM `oc_cart_product` AS `cp`\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN ax_code AS ax ON (cp.`ax_code` = ax.`ax_code`)\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN oc_product AS p ON (cp.`product_id` = p.`product_id`)\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN `oc_product_description` AS pd ON (cp.`product_id` = pd.`product_id`)\n\t\t\t\t\t\t\t\t\t\tWHERE `cp`.`cart_id` = \".$cart['cart_id'].\";\";\n\t\t\t\t//die('model '.$cart_products);\n\t\t\t\t$cart['products'] = $this->db->query($cart_products)->rows;\n\t\t\t\t//echo \"<pre>\"; print_r($cart['products']); die('model dfbdzfb');\n\n\t\t\t\tforeach ($cart['products'] as &$product) {\n\n\t\t\t\t\t//echo \"product before <pre>\"; print_r($product);\n\n\t\t\t\t\t$product['href'] = $this->url->link( 'product/product', 'product_id='.$product['product_id'] );\n\n\t\t\t\t\t$product['option'] = array();\n\t\t\t\t\t/* $product['option'] = $this->db->query(\"SELECT * FROM `\" . DB_PREFIX . \"cart_product_option`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t WHERE `cart_id` = \".$cart['cart_id'].\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t AND `cart_product_id` = \".$product['cart_product_id'].\";\")->rows;\t*/\n\t\t\t\t\tif ($product['type'] == 3) {\n\n\t\t\t\t\t\t$get_options = \"SELECT `pocv`.*, ovd.`option_id`, `od`.`name`, `ovd`.`name` AS `value`\n\t\t\t\t\t\t\t\t\tFROM `\".DB_PREFIX.\"product_option_combination_value` AS pocv, `\".DB_PREFIX.\"option_value_description` AS `ovd`, `\".DB_PREFIX.\"option_description` AS `od`\n\t\t\t\t\t\t\t\t\tWHERE pocv.`product_option_combination_id` = \".$product['id'].\"\n\t\t\t\t\t\t\t\t\tAND ovd.`language_id` = '\".( int ) $this->config->get( 'config_language_id' ).\"'\n\t\t\t\t\t\t\t\t\tAND ovd.`option_value_id` = pocv.`option_value_id`\n\t\t\t\t\t\t\t\t\tAND `od`.`option_id` = `ovd`.`option_id`;\";\n\n\t\t\t\t\t\t$get_options = $this->db->query($get_options)->rows;\n\n\t\t\t\t\t\tforeach ($get_options as &$option) {\n\t\t\t\t\t\t\t$option_data = \"SELECT * FROM oc_product_option_value WHERE product_id = \".$product['product_id'].\" AND option_value_id = \".$option['option_value_id'].\";\";\n\t\t\t\t\t\t\t$option_data = $this->db->query($option_data)->rows;\n\t\t\t\t\t\t\t$option = array_merge($option, $option_data[0]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$product['option'] = $get_options;\n\t\t\t\t\t\t//echo \"With options \".$product['name'].\" \".$product['id'].\" type \".$product['type'].\" \".sizeof($product['option']).\"<pre>\"; print_r($product['option']);\n\t\t\t\t\t} elseif ($product['type'] == 2) {\n\t\t\t\t\t\t$get_options = \"SELECT `pov`.*, `od`.`name`, `ovd`.`name` AS `value`\n\t\t\t\t\t\t\t\t\tFROM `\".DB_PREFIX.\"product_option_value` AS `pov`, `\".DB_PREFIX.\"option_description` AS `od`, `\".DB_PREFIX.\"option_value_description` AS `ovd`\n\t\t\t\t\t\t\t\t\tWHERE `product_option_value_id` = \".$product['id'].\"\n\t\t\t\t\t\t\t\t\tAND product_id = \".$product['product_id'].\"\n\t\t\t\t\t\t\t\t\tAND `od`.`option_id` = `pov`.`option_id`\n\t\t\t\t\t\t\t\t\tAND `ovd`.`option_value_id` = `pov`.`option_value_id`;\";\n\n\t\t\t\t\t\t//echo \"type 2 query <pre>\"; print_r($get_options);\n\n\t\t\t\t\t\t$product['option'] = $this->db->query($get_options)->rows;\n\n\t\t\t\t\t\t//echo \"<br>With options \".$product['name'].\" \".$product['id'].\" type \".$product['type'].\" \".sizeof($product['option']).\"<pre>\"; print_r($product['option']);\n\t\t\t\t\t}\n\n\t\t\t\t\t// echo \"Options \".$product['type'].\" <pre>\"; print_r($product);\n\n\t\t\t\t\t$option_price = 0;\n\t\t\t\t\t$option_points = 0;\n\t\t\t\t\t$option_weight = 0;\n\t\t\t\t\t$option_data = array();\n\n\t\t\t\t\tforeach( $product['option'] as &$option ) {\n\t\t\t\t\t\t$option_query = $this->db->query( \"SELECT po.product_option_id, po.option_id, od.name, o.type\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM \".DB_PREFIX.\"product_option po\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN `\".DB_PREFIX.\"option` o ON (po.option_id = o.option_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_description od ON (o.option_id = od.option_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE po.product_option_id = '\".( int ) $option['product_option_id'].\"'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND po.product_id = '\".( int ) $product['product_id'].\"'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND od.language_id = '\".( int ) $this->config->get( 'config_language_id' ).\"'\" );\n\n\t\t\t\t\t\tif( $option_query->num_rows ) {\n\n\t\t\t\t\t\t\tif( $option_query->row['type'] == 'select' || $option_query->row['type'] == 'radio' || $option_query->row['type'] == 'image' )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$option_value_query = $this->db->query( \"\n\t\t\t\t\t\t\t\tSELECT pov.option_value_id, ovd.name, pov.quantity, pov.subtract, pov.price, pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix\n\t\t\t\t\t\t\t\tFROM \".DB_PREFIX.\"product_option_value pov\n\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_value ov ON (pov.option_value_id = ov.option_value_id)\n\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_value_description ovd ON (ov.option_value_id = ovd.option_value_id)\n\t\t\t\t\t\t\t\tWHERE pov.product_option_value_id = '\".( int ) $option['product_option_value_id'].\"'\n\t\t\t\t\t\t\t\tAND pov.product_option_id = '\".( int ) $option['product_option_id'].\"'\n\t\t\t\t\t\t\t\tAND ovd.language_id = '\".( int ) $this->config->get( 'config_language_id' ).\"'\" );\n\n\t\t\t\t\t\t\t\tif( $option_value_query->num_rows )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif( $option_value_query->row['price_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_price += $option_value_query->row['price'];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['price_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_price -= $option_value_query->row['price'];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif( $option_value_query->row['points_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_points += $option_value_query->row['points'];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['points_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_points -= $option_value_query->row['points'];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif( $option_value_query->row['weight_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_weight += $option_value_query->row['weight'];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['weight_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_weight -= $option_value_query->row['weight'];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif( $option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $product['quantity'])) )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$stock = false;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$option_data[] = array(\n\t\t\t\t\t\t\t\t\t\t'product_option_id' => $option['product_option_id'],\n\t\t\t\t\t\t\t\t\t\t'product_option_value_id' => $option['product_option_value_id'],\n\t\t\t\t\t\t\t\t\t\t'option_id' => $option_query->row['option_id'],\n\t\t\t\t\t\t\t\t\t\t'option_value_id' => $option_value_query->row['option_value_id'],\n\t\t\t\t\t\t\t\t\t\t'name' => $option_query->row['name'],\n\t\t\t\t\t\t\t\t\t\t'option_value' => $option_value_query->row['name'],\n\t\t\t\t\t\t\t\t\t\t'type' => $option_query->row['type'],\n\t\t\t\t\t\t\t\t\t\t'quantity' => $option_value_query->row['quantity'],\n\t\t\t\t\t\t\t\t\t\t'subtract' => $option_value_query->row['subtract'],\n\t\t\t\t\t\t\t\t\t\t'price' => $option_value_query->row['price'],\n\t\t\t\t\t\t\t\t\t\t'price_prefix' => $option_value_query->row['price_prefix'],\n\t\t\t\t\t\t\t\t\t\t'points' => $option_value_query->row['points'],\n\t\t\t\t\t\t\t\t\t\t'points_prefix' => $option_value_query->row['points_prefix'],\n\t\t\t\t\t\t\t\t\t\t'weight' => $option_value_query->row['weight'],\n\t\t\t\t\t\t\t\t\t\t'weight_prefix' => $option_value_query->row['weight_prefix']\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t//echo sizeof($cart['products']).\" \".$cart['cart_id'].\" products<pre>\"; print_r($option_data);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif( $option_query->row['type'] == 'checkbox' && is_array( $product['product_option_value_id'] ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach( $product['product_option_value_id'] as $product_option_value_id )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$option_value_query = $this->db->query( \"\n\t\t\t\t\t\t\t\t\tSELECT pov.option_value_id, ovd.name, pov.quantity, pov.subtract, pov.price, pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix\n\t\t\t\t\t\t\t\t\tFROM \".DB_PREFIX.\"product_option_value pov\n\t\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_value ov ON( pov.option_value_id = ov.option_value_id )\n\t\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_value_description ovd ON( ov.option_value_id = ovd.option_value_id )\n\t\t\t\t\t\t\t\t\tWHERE pov.product_option_value_id = '\".( int ) $option['product_option_value_id'].\"'\n\t\t\t\t\t\t\t\t\tAND pov.product_option_id = '\".( int ) $option['product_option_id'].\"'\n\t\t\t\t\t\t\t\t\tAND ovd.language_id = '\".( int ) $this->config->get( 'config_language_id' ).\"'\" );\n\n\t\t\t\t\t\t\t\t\tif( $option_value_query->num_rows )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif( $option_value_query->row['price_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_price += $option_value_query->row['price'];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['price_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_price -= $option_value_query->row['price'];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif( $option_value_query->row['points_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_points += $option_value_query->row['points'];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['points_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_points -= $option_value_query->row['points'];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif( $option_value_query->row['weight_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_weight += $option_value_query->row['weight'];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['weight_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_weight -= $option_value_query->row['weight'];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif( $option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $product['quantity'])) )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$stock = false;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t$option_data[] = array(\n\t\t\t\t\t\t\t\t\t\t\t'product_option_id' => $option['product_option_id'],\n\t\t\t\t\t\t\t\t\t\t\t'product_option_value_id' => $option['product_option_value_id'],\n\t\t\t\t\t\t\t\t\t\t\t'option_id' => $option_query->row['option_id'],\n\t\t\t\t\t\t\t\t\t\t\t'option_value_id' => $option_value_query->row['option_value_id'],\n\t\t\t\t\t\t\t\t\t\t\t'name' => $option_query->row['name'],\n\t\t\t\t\t\t\t\t\t\t\t'option_value' => $option_value_query->row['name'],\n\t\t\t\t\t\t\t\t\t\t\t'type' => $option_query->row['type'],\n\t\t\t\t\t\t\t\t\t\t\t'quantity' => $option_value_query->row['quantity'],\n\t\t\t\t\t\t\t\t\t\t\t'subtract' => $option_value_query->row['subtract'],\n\t\t\t\t\t\t\t\t\t\t\t'price' => $option_value_query->row['price'],\n\t\t\t\t\t\t\t\t\t\t\t'price_prefix' => $option_value_query->row['price_prefix'],\n\t\t\t\t\t\t\t\t\t\t\t'points' => $option_value_query->row['points'],\n\t\t\t\t\t\t\t\t\t\t\t'points_prefix' => $option_value_query->row['points_prefix'],\n\t\t\t\t\t\t\t\t\t\t\t'weight' => $option_value_query->row['weight'],\n\t\t\t\t\t\t\t\t\t\t\t'weight_prefix' => $option_value_query->row['weight_prefix']\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif( $option_query->row['type'] == 'text' || $option_query->row['type'] == 'textarea' || $option_query->row['type'] == 'file' || $option_query->row['type'] == 'date' || $option_query->row['type'] == 'datetime' || $option_query->row['type'] == 'time' )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$option_data[] = array(\n\t\t\t\t\t\t\t\t\t'product_option_id' => $option['product_option_id'],\n\t\t\t\t\t\t\t\t\t'product_option_value_id' => '',\n\t\t\t\t\t\t\t\t\t'option_id' => $option_query->row['option_id'],\n\t\t\t\t\t\t\t\t\t'option_value_id' => '',\n\t\t\t\t\t\t\t\t\t'name' => $option_query->row['name'],\n\t\t\t\t\t\t\t\t\t'option_value' => '',\n\t\t\t\t\t\t\t\t\t'type' => $option_query->row['type'],\n\t\t\t\t\t\t\t\t\t'quantity' => '',\n\t\t\t\t\t\t\t\t\t'subtract' => '',\n\t\t\t\t\t\t\t\t\t'price' => '',\n\t\t\t\t\t\t\t\t\t'price_prefix' => '',\n\t\t\t\t\t\t\t\t\t'points' => '',\n\t\t\t\t\t\t\t\t\t'points_prefix' => '',\n\t\t\t\t\t\t\t\t\t'weight' => '',\n\t\t\t\t\t\t\t\t\t'weight_prefix' => ''\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//echo \"option value query<pre>\"; print_r($option_value_query);\n\t\t\t\t\t\t}\n\t\t\t\t\t}//die('avsf');\n\n\t\t\t\t\t//echo \"OPTION DATA <pre>\"; print_r($option_data);\n\n\t\t\t\t\t/*$option_array = array(\n\t\t\t\t\t\t$option_data[0]['product_option_id'] => $option_data[0]['product_option_value_id']\n\t\t\t\t\t);\n\n\t\t\t\t\t$option_data = $this->cart->buildOptionDataArray( $product['id'], $option_array );*/\n\n\t\t\t\t\t//echo \"MODEL PROGRESS \".$product['model'].\" \".$product['name'].\" 1 product price \".$product['price'].\"<pre>\"; print_r($option_data);\n\n\t\t\t\t\t$product['price'] = $this->cart->calculatePriceB2B( $product['product_id'], $option_data );\n\n\t\t\t\t\t//echo \"MODEL PROGRESS \".$product['model'].\" \".$product['name'].\" 2 product price \".$product['price'].\" <pre>\";\n\n\t\t\t\t\t$price = $product['price'];\n\n\t\t\t\t\t// END option price calculation\n\n\t\t\t\t\t/*if ($product['type'] == 3) {\n\t\t\t\t\t\t$combination_data= $this->db->query(\"\n\t\t\t\t\t\t\t\t\t\t\t\tSELECT price, points FROM `\".DB_PREFIX.\"product_option_combination` WHERE `product_option_combination_id` = \".$product['id'].\";\n\t\t\t\t\t\t\t\t\t\t\t\")->row;\n\t\t\t\t\t\t$product['price'] = $combination_data['price'];\n\t\t\t\t\t\t$product['reward'] = $combination_data['points'];\n\t\t\t\t\t} elseif ($product['type'] == 2) {\n\t\t\t\t\t\t$product_option_value_id = $product['id'];\n\t\t\t\t\t\t$all_option_data= $this->db->query(\"\n\t\t\t\t\t\t\t\t\t\t\t\tSELECT product_option_id, points FROM `\".DB_PREFIX.\"product_option_value` WHERE `product_option_value_id` = \".$product_option_value_id.\";\n\t\t\t\t\t\t\t\t\t\t\t\")->row;\n\n\t\t\t\t\t\techo \"<br>\".\"SELECT product_option_id, points FROM `\".DB_PREFIX.\"product_option_value` WHERE `product_option_value_id` = \".$product_option_value_id.\";\";\n\n\t\t\t\t\t\t$option_data[$product_option_value_id] = array(\n\t\t\t\t\t\t\t'key' => $all_option_data['product_option_id']\n\t\t\t\t\t\t);\n\t\t\t\t\t\t//echo $product['name'].\" opt 1<pre>\"; print_r($option_data);\n\t\t\t\t\t\t//print_r($all_option_data);\n\n\t\t\t\t\t\t$option_data = $this->cart->buildOptionDataArray( $product['id'], $option_data );\n\n\t\t\t\t\t\techo $product['name'].\" opt 2<pre> \".$product['price']; print_r($option_data);\n\n\t\t\t\t\t\t$product['price'] = $this->cart->calculatePriceB2B( $product['product_id'], $option_data );\n\t\t\t\t\t\t$product['reward'] = $all_option_data['points'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$product['price'] = $this->cart->calculatePriceB2B( $product['product_id'], $option_data = array() );\n\t\t\t\t\t\t$plus_data= $this->db->query(\"\n\t\t\t\t\t\t\t\t\t\t\t\tSELECT points FROM `\".DB_PREFIX.\"product_reward` WHERE `product_id` = \".$product['product_id'].\";\n\t\t\t\t\t\t\t\t\t\t\t\")->row;\n\t\t\t\t\t\tif (isset($plus_data['points'])) {\n\t\t\t\t\t\t\t$product['reward'] = $plus_data['points'];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$product['reward'] = \"\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}*/\n\n\n\t\t\t\t\t//echo \"<pre>\"; print_r($product['option']); die(\"1 SELECT * FROM `\" . DB_PREFIX . \"cart_product_option` WHERE `cart_id` = \".$cart['cart_id'].\" AND `cart_product_id` = \".$product['cart_product_id'].\";\");\n\t\t\t\t\t//echo \"<pre>\"; print_r($product);\n\t\t\t\t\t$product['total'] = $product['quantity']*$product['price'];\n\n\t\t\t\t\t//echo \"MODEL AFTER product<pre>\"; print_r($product);\n\t\t\t\t}\n\t\t\t\t$get_support_query = \"SELECT\n\t\t\t\t\t\t\t\t\t csm.*,\n\t\t\t\t\t\t\t\t\t c.`firstname`,\n\t\t\t\t\t\t\t\t\t c.`lastname`,\n\t\t\t\t\t\t\t\t\t csp.`cart_support_product_id`,\n\t\t\t\t\t\t\t\t\t csp.`product_id`,\n\t\t\t\t\t\t\t\t\t pd.name,\n\t\t\t\t\t\t\t\t\t csp.`model`,\n\t\t\t\t\t\t\t\t\t csp.`quantity`,\n\t\t\t\t\t\t\t\t\t p.`price`,\n\t\t\t\t\t\t\t\t\t p.`tax_class_id`\n\t\t\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t\t `oc_cart_support_message` `csm`\n\t\t\t\t\t\t\t\t\t LEFT JOIN `oc_cart_support_product` `csp`\n\t\t\t\t\t\t\t\t\t\tON csm.`cart_support_message_id` = csp.`cart_support_message_id`\n\t\t\t\t\t\t\t\t\t LEFT JOIN `oc_customer` `c`\n\t\t\t\t\t\t\t\t\t\tON csm.`customer_id` = c.`customer_id`\n\t\t\t\t\t\t\t\t\t LEFT JOIN `oc_product` `p`\n\t\t\t\t\t\t\t\t\t\tON csp.`product_id` = p.`product_id`\n\t\t\t\t\t\t\t\t\t LEFT JOIN `oc_product_description` `pd`\n\t\t\t\t\t\t\t\t\t\tON csp.`product_id` = pd.`product_id`\n\t\t\t\t\t\t\t\t\tWHERE `csm`.cart_id = \".$cart['cart_id'].\"\n\t\t\t\t\t\t\t\t\tAND `type` IS NULL;\";\n\n\t\t\t\t//die($get_support_query);\n\t\t\t\t$cart_support = $this->db->query($get_support_query)->rows;\n\t\t\t\t//print_r($cart_support); die('gfbdgfb');\n\t\t\t\tforeach ($cart_support as &$sup) {\n\t\t\t\t\tif($this->customer->getId() == $sup['customer_id']) {\n\t\t\t\t\t\t$sup['cart_owner'] = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$sup['cart_owner'] = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ($sup['cart_support_product_id']) {\n\t\t\t\t\t\t$get_support_option_query = \"SELECT `aspo`.*, `od`.`name` AS `od_name`, `ovd`.`name` AS `ovd_name`\n\t\t\t\t\t\t\t\t\t\t\tFROM `\".DB_PREFIX.\"cart_support_product_option` `aspo`, `\".DB_PREFIX.\"product_option` `po`, `\".DB_PREFIX.\"option_description` `od`, `\".DB_PREFIX.\"product_option_value` `pov`, `oc_option_value_description` `ovd`\n\t\t\t\t\t\t\t\t\t\t\tWHERE `cart_support_product_id` = \".$sup['cart_support_product_id'].\"\n\t\t\t\t\t\t\t\t\t\t\tAND `po`.`product_option_id` = `aspo`.`product_option_id`\n\t\t\t\t\t\t\t\t\t\t\tAND `od`.`option_id` = `po`.`option_id`\n\t\t\t\t\t\t\t\t\t\t\tAND `od`.`language_id` = 2\n\t\t\t\t\t\t\t\t\t\t\tAND `pov`.`product_option_value_id` = `aspo`.`product_option_value_id`\n\t\t\t\t\t\t\t\t\t\t\tAND `ovd`.`option_value_id` = `pov`.`option_value_id`;\";\n\t\t\t\t\t\t//die($get_support_option_query);\n\t\t\t\t\t\t$sup['option'] = $this->db->query($get_support_option_query)->rows;\n\n\t\t\t\t\t\t//print_r($sup['option']); die('gfbdgfb');\n\t\t\t\t\t}\n\n\t\t\t\t};\n\n\t\t\t\t$cart['support'] = $cart_support;\n\t\t\t\t// echo \"<pre>\"; print_r($cart['support']); die('12 model ');\n\t\t\t}\n\t\t}\n\n\t\treturn $support_carts;\n\t}", "title": "" }, { "docid": "4565a749dba06d58848d9350a6f62fb6", "score": "0.60949147", "text": "public function collectCartDataDataProvider()\n {\n return [\n [\n [\n 1 => [\n 'product_id' => 100,\n 'parent_item_id' => null,\n 'sku' => 'product100',\n 'qty' => 1,\n ],\n 2 => [\n 'product_id' => 101,\n 'parent_item_id' => null,\n 'sku' => 'product101',\n 'qty' => 1,\n ],\n ],\n [\n 'super_attribute' => [\n 'option_key' => 'option_value',\n ]\n ],\n [\n 1 => [\n 'product_id' => 100,\n 'sku' => 'product100',\n 'qty' => 1,\n 'options' => [\n [\n 'option' => 'option_key',\n 'value' => 'option_value',\n ],\n ],\n 'name' => 'product1'\n ],\n 2 => [\n 'product_id' => 101,\n 'sku' => 'product101',\n 'qty' =>1,\n 'options' => [\n [\n 'option' => 'option_key',\n 'value' => 'option_value',\n ],\n ],\n 'name' => 'product1'\n ]\n ]\n\n ],\n [\n [\n 1 => [\n 'product_id' => 100,\n 'parent_item_id' => null,\n 'sku' => 'product100',\n 'qty' => 1,\n ],\n 2 => [\n 'product_id' => 101,\n 'parent_item_id' => null,\n 'sku' => 'product101',\n 'qty' => 1,\n ],\n ],\n [\n 'bundle_option' => [\n 'option_key' => 'option_value',\n ]\n ],\n [\n 1 => [\n 'product_id' => 100,\n 'sku' => 'product100',\n 'qty' => 1,\n 'options' => [\n [\n 'option' => 'option_key',\n 'value' => 'option_value',\n ],\n ],\n 'name' => 'product1'\n ],\n 2 => [\n 'product_id' => 101,\n 'sku' => 'product101',\n 'qty' =>1,\n 'options' => [\n [\n 'option' => 'option_key',\n 'value' => 'option_value',\n ],\n ],\n 'name' => 'product1'\n ]\n ]\n\n ],\n [\n [\n 1 => [\n 'product_id' => 100,\n 'parent_item_id' => null,\n 'sku' => 'product100',\n 'qty' => 1,\n ],\n 2 => [\n 'product_id' => 101,\n 'parent_item_id' => null,\n 'sku' => 'product101',\n 'qty' => 1,\n ],\n ],\n [\n 'options' => [\n 'option_key' => 'option_value',\n ]\n ],\n [\n 1 => [\n 'product_id' => 100,\n 'sku' => 'product100',\n 'qty' => 1,\n 'options' => [\n [\n 'option' => 'option_key',\n 'value' => 'option_value',\n ],\n ],\n 'name' => 'product1'\n ],\n 2 => [\n 'product_id' => 101,\n 'sku' => 'product101',\n 'qty' =>1,\n 'options' => [\n [\n 'option' => 'option_key',\n 'value' => 'option_value',\n ],\n ],\n 'name' => 'product1'\n ]\n ]\n\n ],\n ];\n }", "title": "" }, { "docid": "1a9e7d43a96f79ec69e062a5daf1bc79", "score": "0.6094027", "text": "public function getProducts(): array\n {\n return $this->products;\n }", "title": "" }, { "docid": "a1492dfded66cb98d79e4ecef6057544", "score": "0.60723937", "text": "protected function _calcCartData()\r\n {\r\n $jbPrice = $this->getJBPrice();\r\n $data = array(\r\n 'key' => $this->getSessionKey(),\r\n 'item_id' => $this->item_id,\r\n 'item_name' => $this->item_name,\r\n 'element_id' => $this->element_id,\r\n 'total' => $this->getTotal()->data(true),\r\n 'quantity' => (float)$this->quantity,\r\n 'template' => $this->template,\r\n 'values' => $this->getValues(),\r\n 'selected' => $this->selected,\r\n 'elements' => $this->defaultVariantCartData(),\r\n 'params' => $jbPrice->elementsInterfaceParams(),\r\n 'modifiers' => $this->getModifiersRates(),\r\n 'variant' => 0,\r\n 'variations' => $jbPrice->quickSearch(array_keys($this->all())),\r\n 'isOverlay' => true,\r\n );\r\n\r\n return $data;\r\n }", "title": "" }, { "docid": "f61bf6a25c445f99a25a9e44c2062551", "score": "0.6070266", "text": "public function getSimpleProducts(): array;", "title": "" }, { "docid": "59a6104012132769a9cd00c4c03be544", "score": "0.60672593", "text": "function getAllProducts() : array\n\t{\n\t\treturn $this->products;\n\t}", "title": "" }, { "docid": "6d03d97308d6445e453a3511960ee414", "score": "0.6062244", "text": "public function getMySupportCarts($customer_id = 0) {\n\n\t\t$my_support_carts = \"SELECT `ocs`.*, cus.firstname, cus.lastname, oc.cart_name\n\t\t\t\t\t\t\tFROM `oc_cart_support` AS `ocs`,\n\t\t\t\t\t\t\t \t `oc_customer` AS `cus`,\n\t\t\t\t\t\t\t \t `oc_cart` AS `oc`\n\t\t\t\t\t\t\tWHERE ocs.customer_id = \".$customer_id.\"\n\t\t\t\t\t\t\tAND cus.customer_id = ocs.customer_id\n\t\t\t\t\t\t\tAND oc.cart_id = ocs.cart_id\n\t\t\t\t\t\t\tAND oc.date_deleted IS NULL\n\t\t\t\t\t\t\tORDER BY ocs.cart_support_id DESC\n\t\t\t\t\t\t\tLIMIT 0, 25;\";\n\n\t\t//die($my_support_carts);\n\n\t\t$my_support_carts = $this->db->query($my_support_carts)->rows;\n\t\t//echo \"<pre>\"; print_r($support_carts);\n\n\t\tif ($my_support_carts) {\n\t\t\t//echo sizeof($saved_carts).\"<pre>\";\n\t\t\tforeach ($my_support_carts as &$cart) {\n\n\t\t\t\t$cart_products = \"SELECT `cp`.*, ax.`type`, ax.`id`, p.`image`, p.`price`, p.`tax_class_id`, pd.`name`,\n\t\t\t\t\t\t\t\t\t\t(SELECT points FROM oc_product_reward WHERE product_id = p.product_id AND customer_group_id = 3) AS reward\n\t\t\t\t\t\t\t\t\t\tFROM `oc_cart_product` AS `cp`\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN ax_code AS ax ON (cp.`ax_code` = ax.`ax_code`)\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN oc_product AS p ON (cp.`product_id` = p.`product_id`)\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN `oc_product_description` AS pd ON (cp.`product_id` = pd.`product_id`)\n\t\t\t\t\t\t\t\t\t\tWHERE `cp`.`cart_id` = \".$cart['cart_id'].\";\";\n\t\t\t\t//die('model '.$cart_products);\n\t\t\t\t$cart['products'] = $this->db->query($cart_products)->rows;\n\t\t\t\t//echo \"<pre>\"; print_r($cart['products']); die('model dfbdzfb');\n\n\t\t\t\tforeach ($cart['products'] as &$product) {\n\n\t\t\t\t\t//echo \"product before <pre>\"; print_r($product);\n\n\t\t\t\t\t$product['href'] = $this->url->link( 'product/product', 'product_id='.$product['product_id'] );\n\n\t\t\t\t\t$product['option'] = array();\n\t\t\t\t\t/* $product['option'] = $this->db->query(\"SELECT * FROM `\" . DB_PREFIX . \"cart_product_option`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t WHERE `cart_id` = \".$cart['cart_id'].\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t AND `cart_product_id` = \".$product['cart_product_id'].\";\")->rows;\t*/\n\t\t\t\t\tif ($product['type'] == 3) {\n\n\t\t\t\t\t\t$get_options = \"SELECT `pocv`.*, ovd.`option_id`, `od`.`name`, `ovd`.`name` AS `value`\n\t\t\t\t\t\t\t\t\tFROM `\".DB_PREFIX.\"product_option_combination_value` AS pocv, `\".DB_PREFIX.\"option_value_description` AS `ovd`, `\".DB_PREFIX.\"option_description` AS `od`\n\t\t\t\t\t\t\t\t\tWHERE pocv.`product_option_combination_id` = \".$product['id'].\"\n\t\t\t\t\t\t\t\t\tAND ovd.`language_id` = '\".( int ) $this->config->get( 'config_language_id' ).\"'\n\t\t\t\t\t\t\t\t\tAND ovd.`option_value_id` = pocv.`option_value_id`\n\t\t\t\t\t\t\t\t\tAND `od`.`option_id` = `ovd`.`option_id`;\";\n\n\t\t\t\t\t\t$get_options = $this->db->query($get_options)->rows;\n\n\t\t\t\t\t\tforeach ($get_options as &$option) {\n\t\t\t\t\t\t\t$option_data = \"SELECT * FROM oc_product_option_value WHERE product_id = \".$product['product_id'].\" AND option_value_id = \".$option['option_value_id'].\";\";\n\t\t\t\t\t\t\t$option_data = $this->db->query($option_data)->rows;\n\t\t\t\t\t\t\t$option = array_merge($option, $option_data[0]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$product['option'] = $get_options;\n\t\t\t\t\t\t//echo \"With options \".$product['name'].\" \".$product['id'].\" type \".$product['type'].\" \".sizeof($product['option']).\"<pre>\"; print_r($product['option']);\n\t\t\t\t\t} elseif ($product['type'] == 2) {\n\t\t\t\t\t\t$get_options = \"SELECT `pov`.*, `od`.`name`, `ovd`.`name` AS `value`\n\t\t\t\t\t\t\t\t\tFROM `\".DB_PREFIX.\"product_option_value` AS `pov`, `\".DB_PREFIX.\"option_description` AS `od`, `\".DB_PREFIX.\"option_value_description` AS `ovd`\n\t\t\t\t\t\t\t\t\tWHERE `product_option_value_id` = \".$product['id'].\"\n\t\t\t\t\t\t\t\t\tAND product_id = \".$product['product_id'].\"\n\t\t\t\t\t\t\t\t\tAND `od`.`option_id` = `pov`.`option_id`\n\t\t\t\t\t\t\t\t\tAND `ovd`.`option_value_id` = `pov`.`option_value_id`;\";\n\n\t\t\t\t\t\t//echo \"type 2 query <pre>\"; print_r($get_options);\n\n\t\t\t\t\t\t$product['option'] = $this->db->query($get_options)->rows;\n\n\t\t\t\t\t\t//echo \"<br>With options \".$product['name'].\" \".$product['id'].\" type \".$product['type'].\" \".sizeof($product['option']).\"<pre>\"; print_r($product['option']);\n\t\t\t\t\t}\n\n\t\t\t\t\t// echo \"Options \".$product['type'].\" <pre>\"; print_r($product);\n\n\t\t\t\t\t$option_price = 0;\n\t\t\t\t\t$option_points = 0;\n\t\t\t\t\t$option_weight = 0;\n\t\t\t\t\t$option_data = array();\n\n\t\t\t\t\tforeach( $product['option'] as &$option ) {\n\t\t\t\t\t\t$option_query = $this->db->query( \"SELECT po.product_option_id, po.option_id, od.name, o.type\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM \".DB_PREFIX.\"product_option po\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN `\".DB_PREFIX.\"option` o ON (po.option_id = o.option_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_description od ON (o.option_id = od.option_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE po.product_option_id = '\".( int ) $option['product_option_id'].\"'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND po.product_id = '\".( int ) $product['product_id'].\"'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND od.language_id = '\".( int ) $this->config->get( 'config_language_id' ).\"'\" );\n\n\t\t\t\t\t\tif( $option_query->num_rows ) {\n\n\t\t\t\t\t\t\tif( $option_query->row['type'] == 'select' || $option_query->row['type'] == 'radio' || $option_query->row['type'] == 'image' )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$option_value_query = $this->db->query( \"\n\t\t\t\t\t\t\t\tSELECT pov.option_value_id, ovd.name, pov.quantity, pov.subtract, pov.price, pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix\n\t\t\t\t\t\t\t\tFROM \".DB_PREFIX.\"product_option_value pov\n\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_value ov ON (pov.option_value_id = ov.option_value_id)\n\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_value_description ovd ON (ov.option_value_id = ovd.option_value_id)\n\t\t\t\t\t\t\t\tWHERE pov.product_option_value_id = '\".( int ) $option['product_option_value_id'].\"'\n\t\t\t\t\t\t\t\tAND pov.product_option_id = '\".( int ) $option['product_option_id'].\"'\n\t\t\t\t\t\t\t\tAND ovd.language_id = '\".( int ) $this->config->get( 'config_language_id' ).\"'\" );\n\n\t\t\t\t\t\t\t\tif( $option_value_query->num_rows )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif( $option_value_query->row['price_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_price += $option_value_query->row['price'];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['price_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_price -= $option_value_query->row['price'];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif( $option_value_query->row['points_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_points += $option_value_query->row['points'];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['points_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_points -= $option_value_query->row['points'];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif( $option_value_query->row['weight_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_weight += $option_value_query->row['weight'];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['weight_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$option_weight -= $option_value_query->row['weight'];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif( $option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $product['quantity'])) )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$stock = false;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$option_data[] = array(\n\t\t\t\t\t\t\t\t\t\t'product_option_id' => $option['product_option_id'],\n\t\t\t\t\t\t\t\t\t\t'product_option_value_id' => $option['product_option_value_id'],\n\t\t\t\t\t\t\t\t\t\t'option_id' => $option_query->row['option_id'],\n\t\t\t\t\t\t\t\t\t\t'option_value_id' => $option_value_query->row['option_value_id'],\n\t\t\t\t\t\t\t\t\t\t'name' => $option_query->row['name'],\n\t\t\t\t\t\t\t\t\t\t'option_value' => $option_value_query->row['name'],\n\t\t\t\t\t\t\t\t\t\t'type' => $option_query->row['type'],\n\t\t\t\t\t\t\t\t\t\t'quantity' => $option_value_query->row['quantity'],\n\t\t\t\t\t\t\t\t\t\t'subtract' => $option_value_query->row['subtract'],\n\t\t\t\t\t\t\t\t\t\t'price' => $option_value_query->row['price'],\n\t\t\t\t\t\t\t\t\t\t'price_prefix' => $option_value_query->row['price_prefix'],\n\t\t\t\t\t\t\t\t\t\t'points' => $option_value_query->row['points'],\n\t\t\t\t\t\t\t\t\t\t'points_prefix' => $option_value_query->row['points_prefix'],\n\t\t\t\t\t\t\t\t\t\t'weight' => $option_value_query->row['weight'],\n\t\t\t\t\t\t\t\t\t\t'weight_prefix' => $option_value_query->row['weight_prefix']\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t//echo sizeof($cart['products']).\" \".$cart['cart_id'].\" products<pre>\"; print_r($option_data);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif( $option_query->row['type'] == 'checkbox' && is_array( $product['product_option_value_id'] ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach( $product['product_option_value_id'] as $product_option_value_id )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$option_value_query = $this->db->query( \"\n\t\t\t\t\t\t\t\t\tSELECT pov.option_value_id, ovd.name, pov.quantity, pov.subtract, pov.price, pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix\n\t\t\t\t\t\t\t\t\tFROM \".DB_PREFIX.\"product_option_value pov\n\t\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_value ov ON( pov.option_value_id = ov.option_value_id )\n\t\t\t\t\t\t\t\t\tLEFT JOIN \".DB_PREFIX.\"option_value_description ovd ON( ov.option_value_id = ovd.option_value_id )\n\t\t\t\t\t\t\t\t\tWHERE pov.product_option_value_id = '\".( int ) $option['product_option_value_id'].\"'\n\t\t\t\t\t\t\t\t\tAND pov.product_option_id = '\".( int ) $option['product_option_id'].\"'\n\t\t\t\t\t\t\t\t\tAND ovd.language_id = '\".( int ) $this->config->get( 'config_language_id' ).\"'\" );\n\n\t\t\t\t\t\t\t\t\tif( $option_value_query->num_rows )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif( $option_value_query->row['price_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_price += $option_value_query->row['price'];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['price_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_price -= $option_value_query->row['price'];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif( $option_value_query->row['points_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_points += $option_value_query->row['points'];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['points_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_points -= $option_value_query->row['points'];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif( $option_value_query->row['weight_prefix'] == '+' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_weight += $option_value_query->row['weight'];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif( $option_value_query->row['weight_prefix'] == '-' )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$option_weight -= $option_value_query->row['weight'];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif( $option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $product['quantity'])) )\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$stock = false;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t$option_data[] = array(\n\t\t\t\t\t\t\t\t\t\t\t'product_option_id' => $option['product_option_id'],\n\t\t\t\t\t\t\t\t\t\t\t'product_option_value_id' => $option['product_option_value_id'],\n\t\t\t\t\t\t\t\t\t\t\t'option_id' => $option_query->row['option_id'],\n\t\t\t\t\t\t\t\t\t\t\t'option_value_id' => $option_value_query->row['option_value_id'],\n\t\t\t\t\t\t\t\t\t\t\t'name' => $option_query->row['name'],\n\t\t\t\t\t\t\t\t\t\t\t'option_value' => $option_value_query->row['name'],\n\t\t\t\t\t\t\t\t\t\t\t'type' => $option_query->row['type'],\n\t\t\t\t\t\t\t\t\t\t\t'quantity' => $option_value_query->row['quantity'],\n\t\t\t\t\t\t\t\t\t\t\t'subtract' => $option_value_query->row['subtract'],\n\t\t\t\t\t\t\t\t\t\t\t'price' => $option_value_query->row['price'],\n\t\t\t\t\t\t\t\t\t\t\t'price_prefix' => $option_value_query->row['price_prefix'],\n\t\t\t\t\t\t\t\t\t\t\t'points' => $option_value_query->row['points'],\n\t\t\t\t\t\t\t\t\t\t\t'points_prefix' => $option_value_query->row['points_prefix'],\n\t\t\t\t\t\t\t\t\t\t\t'weight' => $option_value_query->row['weight'],\n\t\t\t\t\t\t\t\t\t\t\t'weight_prefix' => $option_value_query->row['weight_prefix']\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif( $option_query->row['type'] == 'text' || $option_query->row['type'] == 'textarea' || $option_query->row['type'] == 'file' || $option_query->row['type'] == 'date' || $option_query->row['type'] == 'datetime' || $option_query->row['type'] == 'time' )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$option_data[] = array(\n\t\t\t\t\t\t\t\t\t'product_option_id' => $option['product_option_id'],\n\t\t\t\t\t\t\t\t\t'product_option_value_id' => '',\n\t\t\t\t\t\t\t\t\t'option_id' => $option_query->row['option_id'],\n\t\t\t\t\t\t\t\t\t'option_value_id' => '',\n\t\t\t\t\t\t\t\t\t'name' => $option_query->row['name'],\n\t\t\t\t\t\t\t\t\t'option_value' => '',\n\t\t\t\t\t\t\t\t\t'type' => $option_query->row['type'],\n\t\t\t\t\t\t\t\t\t'quantity' => '',\n\t\t\t\t\t\t\t\t\t'subtract' => '',\n\t\t\t\t\t\t\t\t\t'price' => '',\n\t\t\t\t\t\t\t\t\t'price_prefix' => '',\n\t\t\t\t\t\t\t\t\t'points' => '',\n\t\t\t\t\t\t\t\t\t'points_prefix' => '',\n\t\t\t\t\t\t\t\t\t'weight' => '',\n\t\t\t\t\t\t\t\t\t'weight_prefix' => ''\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//echo \"option value query<pre>\"; print_r($option_value_query);\n\t\t\t\t\t\t}\n\t\t\t\t\t}//die('avsf');\n\n\t\t\t\t\t//echo \"OPTION DATA <pre>\"; print_r($option_data);\n\n\t\t\t\t\t/*$option_array = array(\n\t\t\t\t\t\t$option_data[0]['product_option_id'] => $option_data[0]['product_option_value_id']\n\t\t\t\t\t);\n\n\t\t\t\t\t$option_data = $this->cart->buildOptionDataArray( $product['id'], $option_array );*/\n\n\t\t\t\t\t//echo \"MODEL PROGRESS \".$product['model'].\" \".$product['name'].\" 1 product price \".$product['price'].\"<pre>\"; print_r($option_data);\n\n\t\t\t\t\t$product['price'] = $this->cart->calculatePriceB2B( $product['product_id'], $option_data );\n\n\t\t\t\t\t//echo \"MODEL PROGRESS \".$product['model'].\" \".$product['name'].\" 2 product price \".$product['price'].\" <pre>\";\n\n\t\t\t\t\t$price = $product['price'];\n\n\t\t\t\t\t// END option price calculation\n\n\t\t\t\t\t//echo \"<pre>\"; print_r($product['option']); die(\"1 SELECT * FROM `\" . DB_PREFIX . \"cart_product_option` WHERE `cart_id` = \".$cart['cart_id'].\" AND `cart_product_id` = \".$product['cart_product_id'].\";\");\n\t\t\t\t\t//echo \"<pre>\"; print_r($product);\n\t\t\t\t\t$product['total'] = $product['quantity']*$product['price'];\n\n\t\t\t\t\t//echo \"MODEL AFTER product<pre>\"; print_r($product);\n\t\t\t\t}\n\t\t\t\t$get_support_query = \"SELECT\n\t\t\t\t\t\t\t\t\t csm.*,\n\t\t\t\t\t\t\t\t\t c.`firstname`,\n\t\t\t\t\t\t\t\t\t c.`lastname`,\n\t\t\t\t\t\t\t\t\t csp.`cart_support_product_id`,\n\t\t\t\t\t\t\t\t\t csp.`product_id`,\n\t\t\t\t\t\t\t\t\t pd.name,\n\t\t\t\t\t\t\t\t\t csp.`model`,\n\t\t\t\t\t\t\t\t\t csp.`ax_code`,\n\t\t\t\t\t\t\t\t\t csp.`quantity`,\n\t\t\t\t\t\t\t\t\t p.`price`,\n\t\t\t\t\t\t\t\t\t p.`tax_class_id`\n\t\t\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t\t `oc_cart_support_message` `csm`\n\t\t\t\t\t\t\t\t\t LEFT JOIN `oc_cart_support_product` `csp`\n\t\t\t\t\t\t\t\t\t\tON csm.`cart_support_message_id` = csp.`cart_support_message_id`\n\t\t\t\t\t\t\t\t\t LEFT JOIN `oc_customer` `c`\n\t\t\t\t\t\t\t\t\t\tON csm.`customer_id` = c.`customer_id`\n\t\t\t\t\t\t\t\t\t LEFT JOIN `oc_product` `p`\n\t\t\t\t\t\t\t\t\t\tON csp.`product_id` = p.`product_id`\n\t\t\t\t\t\t\t\t\t LEFT JOIN `oc_product_description` `pd`\n\t\t\t\t\t\t\t\t\t\tON csp.`product_id` = pd.`product_id`\n\t\t\t\t\t\t\t\t\tWHERE `csm`.cart_id = \".$cart['cart_id'].\"\n\t\t\t\t\t\t\t\t\tAND `type` IS NULL;\";\n\n\t\t\t\t//die($get_support_query);\n\t\t\t\t$cart_support = $this->db->query($get_support_query)->rows;\n\n\t\t\t\t/*echo \"<pre>\";\n\t\t\t\tprint_r($cart_support);\n\t\t\t\tdie('gfbdgfb');*/\n\n\t\t\t\tforeach ($cart_support as &$sup) {\n\t\t\t\t\tif($this->customer->getId() == $sup['customer_id']) {\n\t\t\t\t\t\t$sup['cart_owner'] = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$sup['cart_owner'] = false;\n\t\t\t\t\t}\n\t\t\t\t\tif ($sup['cart_support_product_id']) {\n\t\t\t\t\t\t$get_support_option_query = \"SELECT\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t`aspo`.*,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t`od`.`name` AS `od_name`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t`ovd`.`name` AS `ovd_name`\n\t\t\t\t\t\t\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t`\".DB_PREFIX.\"cart_support_product_option` `aspo`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t`\".DB_PREFIX.\"product_option` `po`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t`\".DB_PREFIX.\"option_description` `od`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t`\".DB_PREFIX.\"product_option_value` `pov`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t`\".DB_PREFIX.\"option_value_description` `ovd`\n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t\t\t\t\t\t\t`cart_support_product_id` = \".$sup['cart_support_product_id'].\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tAND `po`.`product_option_id` = `aspo`.`product_option_id`\n\t\t\t\t\t\t\t\t\t\t\t\t\tAND `od`.`option_id` = `po`.`option_id`\n\t\t\t\t\t\t\t\t\t\t\t\t\tAND `od`.`language_id` = 2\n\t\t\t\t\t\t\t\t\t\t\t\t\tAND `pov`.`product_option_value_id` = `aspo`.`product_option_value_id`\n\t\t\t\t\t\t\t\t\t\t\t\t\tAND `ovd`.`option_value_id` = `pov`.`option_value_id`;\";\n\t\t\t\t\t\t//die($get_support_option_query);\n\t\t\t\t\t\t$sup['option'] = $this->db->query($get_support_option_query)->rows;\n\n\t\t\t\t\t\t//print_r($sup['option']); die('gfbdgfb');\n\t\t\t\t\t}\n\n\t\t\t\t};\n\n\t\t\t\t$cart['support'] = $cart_support;\n\t\t\t\t// echo \"<pre>\"; print_r($cart['support']); die('12 model ');\n\t\t\t}\n\t\t}\n\n\t\treturn $my_support_carts;\n\t}", "title": "" }, { "docid": "8ca7fae6cc70f0209e14b7be2c5b13f1", "score": "0.6055072", "text": "public function run()\n {\n $products = [\n [\n \"title\" => \"NEXT ERP: Enterprise Resource Planning – ERP\",\n \"title_ar\" => \"NEXT ERP: Enterprise Resource Planning – ERP\",\n \"slug\" => \"NEXT-ERP-Enterprise-Resource-Planning-ERP\",\n \"icon\" => \"network-wired\",\n \"image\" => \"https://media.istockphoto.com/vectors/enterprise-resource-planning-concept-skyscraper-building-pencil-shape-vector-id1283808998?b=1&k=6&m=1283808998&s=612x612&w=0&h=4WQX6841jSDAdLXXVZDVIw6GvplNBJy3JGXYSW0xxx8=\",\n \"breif\" => \"Dynamic BPR (Business Process Reengineering) will lead to more flexible and organized management policies using our consulting and strategic thinking mindset, also we take into consideration the needs of top management for accurate and timely information to support their decision making process.\",\n \"breif_ar\" => \"Dynamic BPR (Business Process Reengineering) will lead to more flexible and organized management policies using our consulting and strategic thinking mindset, also we take into consideration the needs of top management for accurate and timely information to support their decision making process.\",\n \"seo\" => \"the ebst erp system in egypt\",\n ],\n [\n \"title\" => \"NEXT HRMS: Human Resources Management \",\n \"title_ar\" => \"NEXT HRMS: Human Resources Management \",\n \"slug\" => \"NEXT-HRMS-Human-Resources-Management\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Personnel Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Recruitment Planning and Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Training Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Employee Benefits </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Payroll and Salaries </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Time & Attendance </li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Personnel Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Recruitment Planning and Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Training Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Employee Benefits </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Payroll and Salaries </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Time & Attendance </li>\n ',\n \"icon\" => \"users-cog\",\n \"image\" => \"products/hr.png\",\n \"breif\" => \"Dynamic Technology offers its clients complete end-to-end human capital information technology solutions and services including payroll and personnel management, HR dashboards, data and analysis, time and attendance, and many other services\",\n \"breif_ar\" => \"Dynamic Technology offers its clients complete end-to-end human capital information technology solutions and services including payroll and personnel management, HR dashboards, data and analysis, time and attendance, and many other services\",\n \"seo\" => \"NEXT HRMS: Human Resources Management\",\n ],\n [\n \"title\" => \"Website and Mobile Applications Development \",\n \"title_ar\" => \"Website and Mobile Applications Development \",\n \"slug\" => \"website-and-mobile-applications-development\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Website Design </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Website Development </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>E-commerce </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Search Engine Optimization </li>\n ',\n \"icon\" => \"mobile\",\n \"image\" => \"http://codinghelptech.com/blog_post/Best-YouTube-Channels-To-Learn-Web-Development.jpg\",\n \"breif\" => \"Dynamic technology offers you Web Application Development Services to help you build anything from basic informational websites to complex web applications\",\n \"breif_ar\" => \"Dynamic technology offers you Web Application Development Services to help you build anything from basic informational websites to complex web applications\",\n \"seo\" => \"Website and Mobile Applications Development\",\n ],\n [\n \"title\" => \"Professional Services \",\n \"title_ar\" => \"Professional Services \",\n \"slug\" => \"professional-services\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Business Process Engineering</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Business Process Reengineering</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Industry Wise Business Analysis</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Specialized Enterprise Business Processes Training</li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Business Process Engineering</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Business Process Reengineering</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Industry Wise Business Analysis</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Specialized Enterprise Business Processes Training</li>\n ',\n \"icon\" => \"project-diagram\",\n \"image\" => \"products/01.jpeg\",\n \"breif\" => \"Dynamic Professional services include ERP diagnostics studies and the professional preparation for RFP to give your organization a very powerful position in the process of selecting an enterprise system and perform a successful implementation using a very clear and powerful methodologies. \",\n \"breif_ar\" => \"Dynamic Professional services include ERP diagnostics studies and the professional preparation for RFP to give your organization a very powerful position in the process of selecting an enterprise system and perform a successful implementation using a very clear and powerful methodologies. \",\n \"seo\" => \" ERP diagnostics studies\",\n ],\n ];\n\n $children = [\n [\n \"title\" => \"Complete Financial Solutions\",\n \"title_ar\" => \"Complete Financial Solutions\",\n \"screenshot\" => \"products/screens/cfs.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>General Ledger </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Accounts Receivable </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Accounts Payable </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Cash & Banks </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Fixed Assets </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Financial Budgeting </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Financial Reports and Analysis </li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>General Ledger </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Accounts Receivable </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Accounts Payable </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Cash & Banks </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Fixed Assets </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Financial Budgeting </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Financial Reports and Analysis </li>\n ',\n \n \"slug\" => \"complete-financial-solutions\",\n \"icon\" => \"wallet\",\n \"seo\" => \"Complete Financial Solutions\",\n \n\n ],\n [\n \"title\" => \"Supply Chain Management \",\n \"title_ar\" => \"Supply Chain Management \",\n \"screenshot\" => \"products/screens/scm.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Stock Control </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Warehouse Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Distribution Management </li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Stock Control </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Warehouse Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Distribution Management </li>\n ',\n \"slug\" => \"supply-chain-management\",\n \"icon\" => \"file-invoice-dollar\",\n \"seo\" => \"Complete Financial Solutions\",\n \n ],\n [\n \"title\" => \"Product Information Management\",\n \"title_ar\" => \"Product Information Management\",\n \"screenshot\" => \"products/screens/pim.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>General Ledger </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Information </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Features </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Accounting </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Variations </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Engineering </li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>General Ledger </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Information </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Features </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Accounting </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Variations </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Product Engineering </li>\n ',\n \"slug\" => \"Product-Information-Management\",\n \"icon\" => \"product-hunt\",\n \"seo\" => \"\",\n \n ],\n [\n \"title\" => \"Procurement Management\",\n \"title_ar\" => \"Procurement Management\",\n \"screenshot\" => \"products/screens/prm.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>General Ledger </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Supplier Relationship Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Purchase Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Cash Supply routes </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Shipments and Receiving management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Warranty Management </i>',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>General Ledger </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Supplier Relationship Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Purchase Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Cash Supply routes </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Shipments and Receiving management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Warranty Management </i>',\n \"slug\" => \"procurement-management\",\n \"icon\" => \"cc-visa\",\n \"seo\" => \"\",\n \n ],\n\n [\n \"title\" => \"Sales Management \",\n \"title_ar\" => \"Sales Management \",\n \"screenshot\" => \"products/screens/sm.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Order Management</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Point Of Sales</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Customer Information Management</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Warranty Management</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Distribution Centers </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Forecast</i>',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Order Management</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Point Of Sales</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Customer Information Management</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Warranty Management</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Distribution Centers </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Forecast</i>',\n \"slug\" => \"sales-management\",\n \"icon\" => \"money\",\n \"seo\" => \"sales managment system\",\n \n ],\n\n [\n \"title\" => \"Project Management\",\n \"title_ar\" => \"Project Management\",\n \"screenshot\" => \"products/screens/pm.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Project Life Cycle </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Resources Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Contracting Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Project Costing management </li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Project Life Cycle </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Resources Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Contracting Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Project Costing management </li>\n ',\n \n \"slug\" => \"project-managment\",\n \"icon\" => \"tasks\",\n \"seo\" => \"project management\",\n \n ],\n\n [\n \"title\" => \"Customer Relationship Management \",\n \"title_ar\" => \"Customer Relationship Management \",\n \"screenshot\" => \"products/screens/crm.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Leads Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Opportunity Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Customer Orders History </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Analytics </i>',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Leads Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Opportunity Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Customer Orders History </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Analytics </i>',\n \n \"slug\" => \"customer-relationship-management\",\n \"icon\" => \"person-booth\",\n \"seo\" => \"crm\",\n \n ],\n [\n \"title\" => \"Salesforce Management \",\n \"title_ar\" => \"Salesforce Management \",\n \"screenshot\" => \"products/screens/sfm.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Teams </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Salesmen Information and Skill Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Commissions Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Teams Evaluation </i>',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Teams </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Salesmen Information and Skill Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Commissions Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Sales Teams Evaluation </i>',\n \"slug\" => \"salesforce-management\",\n \"icon\" => \"salesforce\",\n \"seo\" => \"salesforce management\",\n \n ],\n [\n \"title\" => \"Manufacturing Management\",\n \"title_ar\" => \"Manufacturing Management\",\n \"screenshot\" => \"products/screens/prd.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Manufacturing Order Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Bill Of Materials </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Operations Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Material Requirements Planning </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Production Planning </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Manufacturing Orders / Job Costing Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Manufactured Products Margin Analysis </li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Manufacturing Order Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Bill Of Materials </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Operations Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Material Requirements Planning </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Production Planning </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Manufacturing Orders / Job Costing Management </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Manufactured Products Margin Analysis </li>\n ',\n \n \"slug\" => \"manufacuring-management\",\n \"icon\" => \"industry\",\n \"seo\" => \"Manufacturing Management\",\n \n ],\n [\n \"title\" => \"E-collaboration\",\n \"title_ar\" => \"E-collaboration\",\n \"screenshot\" => \"products/screens/ec.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>OpenChatter </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Instant Messages by email and SMS </li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>OpenChatter </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Instant Messages by email and SMS </li>\n ',\n \n \"slug\" => \"e-collaboration\",\n \"icon\" => \"users\",\n \"seo\" => \"E-collaboration\",\n \n ],\n [\n \"title\" => \"Reports and Analytics \",\n \"title_ar\" => \"Reports and Analytics \",\n \"screenshot\" => \"products/screens/ra.png\",\n \"content\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Role-based Dashboards</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Process-based Dashboards </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Financial Analytics </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Vast number of reports </li>\n ',\n \"content_ar\" => '\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Role-based Dashboards</li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Process-based Dashboards </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Financial Analytics </li>\n <li class=\"product-li\"><span class=\"icon la la-check\"></span>Vast number of reports </li>\n ',\n \n \"slug\" => \"reports-and-analytics\",\n \"icon\" => \"scroll\",\n \"seo\" => \"Reports and Analytics\",\n \n ],\n\n ];\n foreach($products as $product){\n Product::create($product);\n }\n $erp = Product::where(\"slug\" ,\"NEXT-ERP-Enterprise-Resource-Planning-ERP\")->first();\n foreach($children as $product){\n $product['parent_id'] = $erp->id;\n Product::create($product);\n }\n }", "title": "" }, { "docid": "ab149ebba9d81589aabfd957db1a901d", "score": "0.60535264", "text": "public function products()\n {\n return $this->basket->products();\n }", "title": "" }, { "docid": "f229f8b74eebfb88201b4ddf3bed18cc", "score": "0.60399413", "text": "public static function createProducts()\n {\n $products = [];\n $highestRow = self::$worksheet->getHighestRow();\n for ($row = 2; $row <= $highestRow; ++$row) {\n $product = new Product();\n\n $categories = [];\n $categories[] = CategoryService::getSingleRowCategories(self::CATEGORIES_COLUMNS[0], $row);\n $categories[] = CategoryService::getSingleRowCategories(self::CATEGORIES_COLUMNS[1], $row);\n $categories[] = CategoryService::getSingleRowCategories(self::CATEGORIES_COLUMNS[2], $row);\n $categories = CategoryHelper::removeUnsetPaths($categories);\n if (empty($categories)) {\n LoggerService::getLogger()->error(\"Product from row {$row} don't have any category\");\n continue;\n }\n $product->setCategories($categories);\n\n $product->setGlobalId(self::$worksheet->getCell(self::GLOBAL_ID.$row)->getValue());\n $product->setIndexLupus(self::$worksheet->getCell(self::INDEX_LUPUS.$row)->getValue());\n $product->setLupusPictureCode(self::$worksheet->getCell(self::LUPUS_PICTURE_CODE.$row)->getValue());\n $product->setSeries(self::$worksheet->getCell(self::SERIES.$row)->getValue());\n $product->setProductName(self::$worksheet->getCell(self::PRODUCT_NAME.$row)->getValue());\n $product->setLinkRewrite($product->getProductName());\n $product->setLongDiscription(self::$worksheet->getCell(self::DESCRYPTION_LONG_PL.$row)->getValue());\n $product->setUpc(self::$worksheet->getCell(self::UPC.$row)->getValue());\n $product->setFittingStandard(self::$worksheet->getCell(self::FITTING_STANDARD.$row)->getValue());\n $product->setEAN(self::$worksheet->getCell(self::EAN.$row)->getValue());\n $product->setDimensionAfterFoldX(self::$worksheet->getCell(self::DIMENSION_AFTER_FOLD_X.$row)->getValue());\n $product->setDimensionAfterFoldY(self::$worksheet->getCell(self::DIMENSION_AFTER_FOLD_Y.$row)->getValue());\n $product->setDimensionAfterFoldZ(self::$worksheet->getCell(self::DIMENSION_AFTER_FOLD_Z.$row)->getValue());\n $product->setNettoPriceEXWPLN(self::$worksheet->getCell(self::DETAL_NETTO_PRICE_EXW_PLN.$row)->getValue());\n $product->setCartonDimensionX(self::$worksheet->getCell(self::CARTON_DIMENSION_X.$row)->getValue());\n $product->setCartonDimensionY(self::$worksheet->getCell(self::CARTON_DIMENSION_Y.$row)->getValue());\n $product->setCartonDimensionZ(self::$worksheet->getCell(self::CARTON_DIMENSION_Z.$row)->getValue());\n $product->setWeight(self::$worksheet->getCell(self::WEIGHT.$row)->getValue());\n $product->setInOnlineShop(self::$worksheet->getCell(self::IN_ONLINE_STORE.$row)->getValue());\n $features = FeatureService::getProductFeatures($row);\n $product->setFeatures($features);\n\n //get images from worksheet\n $imageService = new ImageService();\n\n $images = $imageService->getImageData($row,self::IMAGE_ADDRESS_COLUMNS);\n $product->setImages($images);\n\n// $attachments = AttachmentService::getAttachments($row,self::INSTRUCTION_ADDRESS_COLUMNS);\n// $product->setAttachments($attachments);\n\n //checking if product is attribute\n $result = ProductHelper::checkIfIsAttribute($products, $product);\n if (!$result) {\n $products[] = $product;\n }\n }\n\n return $products;\n }", "title": "" }, { "docid": "4fc34728ea00862c35318a0c3d77e84c", "score": "0.6037199", "text": "public function getCrossSellProducts();", "title": "" }, { "docid": "32742551364a52c99475c28bc77fb4e6", "score": "0.6035029", "text": "public function getProducts()\n {\n }", "title": "" }, { "docid": "a83c4bf64c5a8e5cd308c685b7d4b7d1", "score": "0.602611", "text": "private function _processItems() {\n\n $products = $this->cart_object->getProducts(true);\n $items = array();\n\n foreach( $products as $key => $item ) {\n\n if( !empty( $item[\"reduction_applies\"] ) && !empty( $item[\"price_with_reduction\"] ) && $item[\"reduction_applies\"] ) {\n $item_price = $item[\"price_with_reduction\"];\n }\n else if( !empty( $item[\"price_wt\"] ) ) {\n $item_price = $item[\"price_wt\"];\n }\n else {\n $item_price = $item[\"price\"];\n }\n\n $item_amount = new AfterpayAmount( number_format( round( $item_price, 2, PHP_ROUND_HALF_UP ), 2, '.', '' ), $this->currency_code );\n\n $product_item = new AfterpayItem( $item[\"name\"], $item[\"reference\"], $item[\"quantity\"], $item_amount);\n $items[] = $product_item;\n }\n\n return $items;\n }", "title": "" }, { "docid": "ef2038aca9bb8a5ccf788f23eb3fd6a4", "score": "0.60151345", "text": "public function run()\n {\n $products = [\n [\n 'name' => \"MONOKUMA PLUSH\",\n 'description' => \"Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium incidunt eius dolores ratione, possimus amet animi consequuntur inventore labore, doloremque ut. Delectus repudiandae, dignissimos quidem ullam velit eum perspiciatis consequatur.\",\n 'units' => 200,\n 'price' => 30.00,\n 'image' => \"https://i.pinimg.com/originals/13/bc/a4/13bca4cddfa32cbba08fbcf88287ff76.jpg\",\n 'created_at' => new DateTime,\n 'updated_at' => null\n ],\n [\n 'name' => \"MONOMI PLUSH\",\n 'description' => \"Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium incidunt eius dolores ratione, possimus amet animi consequuntur inventore labore, doloremque ut. Delectus repudiandae, dignissimos quidem ullam velit eum perspiciatis consequatur.\",\n 'units' => 100,\n 'price' => 35.00,\n 'image' => \"https://images-na.ssl-images-amazon.com/images/I/31bpyeuOTHL._SX425_.jpg\",\n 'created_at' => new DateTime,\n 'updated_at' => null\n ],\n [\n 'name' => \"MONOKUBS FIGURE SET\",\n 'description' => \"Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium incidunt eius dolores ratione, possimus amet animi consequuntur inventore labore, doloremque ut. Delectus repudiandae, dignissimos quidem ullam velit eum perspiciatis consequatur.\",\n 'units' => 50,\n 'price' => 99.99,\n 'image' => \"https://static.myfigurecollection.net/image/KittanZero1526048995.jpeg\",\n 'created_at' => new DateTime,\n 'updated_at' => null\n ],\n [\n 'name' => \"MONOKUMA CARD HOLDER\",\n 'description' => \"Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium incidunt eius dolores ratione, possimus amet animi consequuntur inventore labore, doloremque ut. Delectus repudiandae, dignissimos quidem ullam velit eum perspiciatis consequatur.\",\n 'units' => 1000,\n 'price' => 9.99,\n 'image' => \"https://d3ieicw58ybon5.cloudfront.net/ex/228.228/0.0.800.800/shop/product/6a908484d5034b36aebc9b995b2771fe.jpg\",\n 'created_at' => new DateTime,\n 'updated_at' => null\n ],\n ];\n\n DB::table('products')->insert($products);\n }", "title": "" }, { "docid": "de5bf17ee5bd3d0f33d4dfa191fd9e53", "score": "0.6010184", "text": "function get_cart_details(){\n\n\tglobal $conn;\n\t$sql = \"SELECT \n product.product_id,\n\t\t\t\tproduct.product_title, \n\t\t\t\tproduct.product_category,\n\t\t\t\tproduct.product_type,\n product.product_price,\n product.product_size,\n product.product_image,\n\t\t\t\tcart.product_id,\n\t\t\t\tcart.quantity, \n\t\t\t\t(product.product_price * cart.quantity) as Total\n\t\tFROM cart, product\n\t\tWHERE product.product_id = cart.product_id\";\n\n\t$result = mysqli_query($conn, $sql);\n\t\n\t\n\t$cart_arr = [];\n\n\tif(mysqli_num_rows($result) > 0) {\n\t\t// output data of each row\n\t\twhile($row = mysqli_fetch_assoc($result)) {\n\t\t\tarray_push($cart_arr, $row);\n\t\t}\n\t\treturn $cart_arr;\n\t}\n}", "title": "" }, { "docid": "502d4e399e586cc1ad4f5c455bcdf2e0", "score": "0.6004569", "text": "function __construct()\r\n {\r\n $this->_cart = array();\r\n }", "title": "" }, { "docid": "f9b9cbd82a25c5fabb7cfa348f377dd9", "score": "0.59972274", "text": "function getCartProduct($id)\n {\n if ($stmt = $this->connection->prepare(\"SELECT ProductName, Price, Description, Quantity FROM products WHERE id = {$id}\")) {\n $stmt->execute();\n $stmt->store_result();\n $stmt->bind_result($name, $price, $desc, $quantity);\n\n if ($stmt->num_rows > 0) {\n while ($stmt->fetch()) {\n $data[] = array('name' => $name, 'price' => $price, 'description' => $desc, 'quantity' => $quantity);\n }\n }\n }\n return $data;\n }", "title": "" }, { "docid": "178fa2dc9553452cbe915b598dd608f2", "score": "0.59946007", "text": "public function index() {\n\n\t\t$hashset = $this-> pickRandomIds('products', 5);\n\n\t\t$output = array();\n\t\t\n\t\tforeach ($hashset as $id => $value) {\n\t\t\t$order = Product::find($id);\n\t\t\tif ($order != null) {\n\t\t\t\t$output[] = $order->toArray();\n\t\t\t} else {\n\t\t\t\t$output[] = $this->findRemainItem('products', $hashset);\n\t\t\t}\n\t\t}\n\n\t\treturn Response::json($output);\n\t}", "title": "" }, { "docid": "613a7e39566e42644335c34e00910fc1", "score": "0.59944", "text": "protected function _plainCartData()\r\n {\r\n $jbPrice = $this->getJBPrice();\r\n\r\n $total = $this->getTotal()->data(true);\r\n $discount = $this->current()->getValue(true, '_discount');\r\n $margin = $this->current()->getValue(true, '_margin');\r\n $elements = $this->defaultVariantCartData(); // bug, call only at the end!\r\n\r\n $elements['_discount'] = $discount;\r\n $elements['_margin'] = $margin;\r\n\r\n $data = array(\r\n 'key' => $this->getSessionKey(),\r\n 'item_id' => $this->item_id,\r\n 'item_name' => $this->item_name,\r\n 'element_id' => $this->element_id,\r\n 'total' => $total,\r\n 'quantity' => (float)$this->quantity,\r\n 'template' => $this->template,\r\n 'values' => $this->getValues(),\r\n 'selected' => $this->selected,\r\n 'elements' => $elements,\r\n 'params' => $jbPrice->elementsInterfaceParams(),\r\n 'modifiers' => $this->getModifiersRates(),\r\n 'variant' => $this->default,\r\n 'variations' => $jbPrice->defaultData(),\r\n 'isOverlay' => false,\r\n );\r\n\r\n return $data;\r\n }", "title": "" }, { "docid": "02cc4bcdc275de2611fe07d1bfd33380", "score": "0.59868014", "text": "public function getProducts()\n {\n return $this->data['products'];\n }", "title": "" }, { "docid": "32200818bc6badac2ad5f01dee2772d5", "score": "0.5986737", "text": "public function run()\n {\n $products = [\n [\n \"id\" => 10,\n \"brand_id\" => 0,\n \"sku\" => \"PR-0001\",\n \"name\" => \"Produit 1\",\n \"slug\" => \"produit-1\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 10,\n \"price\" => 10000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => NULL,\n \"is_new\" => 1,\n \"product_image\" => \"DcX9o2h8Uh7c6RTG4QtAhRpFU.jpg\",\n \"created_at\" => \"2021-06-03 09:15:16\",\n \"updated_at\" => \"2021-06-03 10:56:13\",\n \"height\" => 10,\n ],\n [\n \"id\" => 11,\n \"brand_id\" => 0,\n \"sku\" => \"PR-0002\",\n \"name\" => \"Produit 2\",\n \"slug\" => \"produit-2\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 50,\n \"price\" => 10000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 5,\n \"is_new\" => 0,\n \"product_image\" => \"81Oja4NXiEjbh0GqC7CsfkX0m.jpg\",\n \"created_at\" => \"2021-06-03 10:16:29\",\n \"updated_at\" => \"2021-06-03 10:16:29\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 13,\n \"brand_id\" => 0,\n \"sku\" => \"PR-0003\",\n \"name\" => \"Produit 3\",\n \"slug\" => \"produit-3\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 50,\n \"price\" => 10000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 5,\n \"is_new\" => 1,\n \"product_image\" => \"htmPyPAUH2tELxisVOM6Ahq68.jpg\",\n \"created_at\" => \"2021-06-03 10:18:57\",\n \"updated_at\" => \"2021-06-03 10:51:21\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 14,\n \"brand_id\" => 0,\n \"sku\" => \"PR-0004\",\n \"name\" => \"Produit 4\",\n \"slug\" => \"produit-4\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 5,\n \"price\" => 30000,\n \"sale_price\" => 25000,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 2,\n \"is_new\" => 0,\n \"product_image\" => \"mmxlTUvv4rAj2lUNbIhvojPfK.jpg\",\n \"created_at\" => \"2021-06-03 12:34:33\",\n \"updated_at\" => \"2021-06-03 12:34:33\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 15,\n \"brand_id\" => 0,\n \"sku\" => \"PR-0005\",\n \"name\" => \"Produit 5\",\n \"slug\" => \"produit-5\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 20,\n \"price\" => 33000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"NADfXIJoOrkGD4Oqx5cUtAJCB.jpg\",\n \"created_at\" => \"2021-06-03 12:58:46\",\n \"updated_at\" => \"2021-06-03 12:58:46\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 16,\n \"brand_id\" => 0,\n \"sku\" => \"PR-0001\",\n \"name\" => \"Samsung Galaxy A12- 4G - 6.4\\\" - 4/64Go - 13Mpx - Noir - Garantie 24 Mois\",\n \"slug\" => \"samsung-galaxy-a12-4g-64-464go-13mpx-noir-garantie-24-mois\",\n \"description\" => \"<p><strong>Le Samsung Galaxy A12</strong>&nbsp;annonc&eacute; par la firme le 13 mars 2020 est un entr&eacute;e de gamme embarquant un SoC Exynos 7904 &eacute;paul&eacute; par 2 ou 3 Go de RAM et 32 Go de stockage, extensible par microSD. Il poss&egrave;de un triple capteur au dos avec le principal &agrave; 13 m&eacute;gapixels. Il a une batterie de 4000 mAh compatible charge rapide (15 W).Le Samsung Galaxy A12 annonc&eacute; par la firme le 13 mars 2020 est un entr&eacute;e de gamme embarquant un SoC Exynos 7904 &eacute;paul&eacute; par 2 ou 3 Go de RAM et 32 Go de stockage, extensible par microSD. Il poss&egrave;de un triple capteur au dos avec le principal &agrave; 13 m&eacute;gapixels. Il a une batterie de 4000 mAh compatible charge rapide (15 W).<strong>Le Samsung Galaxy A12</strong>&nbsp;annonc&eacute; par la firme le 13 mars 2020 est un entr&eacute;e de gamme embarquant un SoC Exynos 7904 &eacute;paul&eacute; par 2 ou 3 Go de RAM et 32 Go de stockage, extensible par microSD. Il poss&egrave;de un triple capteur au dos avec le principal &agrave; 13 m&eacute;gapixels. Il a une batterie de 4000 mAh compatible charge rapide (15 W).</p>\",\n \"caracteristique\" => \"<ul>\\r\\n<li>M&eacute;moire Interne: 64 GB</li>\\r\\n<li>M&eacute;moire Ram: 4GB</li>\\r\\n<li>Appareil Photo Arri&egrave;re: 13 Mpx</li>\\r\\n<li>Ecran: 6.4 Pouces</li>\\r\\n<li>Affichage:&nbsp;Super AMOLED Plus capacitive touchscreen, 16M colors</li>\\r\\n<li>Syst&egrave;me d,exploitation:&nbsp;Android 10.0; One UI 2</li>\\r\\n<li>Cpu:&nbsp;Octa-core (2x2.2 GHz Kryo 470 Gold &amp; 6x1.8 GHz Kryo 470 Silver)</li>\\r\\n<li>R&eacute;seau: 4G LTE</li>\\r\\n<li>Sim: Dual Sim</li>\\r\\n<li>Batterie:&nbsp;Non-removable Li-Po 4000 mAh battery</li>\\r\\n<li>Type de Produit:Smartphone&nbsp;</li>\\r\\n<li>Garantie:24Mois&nbsp;</li>\\r\\n</ul>\",\n \"quantity\" => 50,\n \"price\" => 78950,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 10,\n \"is_new\" => 1,\n \"product_image\" => \"1FDt4I4sWYwuJ7jI65rpxLjVB.jpg\",\n \"created_at\" => \"2021-06-04 23:42:19\",\n \"updated_at\" => \"2021-06-04 23:42:19\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 17,\n \"brand_id\" => 0,\n \"sku\" => \"AP009MP1G1521NAFAMZ\",\n \"name\" => \"Apple IPhone 6 - 4.7\\\" - 1Go - 16Go - 8Mpx - 4G - Or - Reconditionn� - Garantie 3 Mois\",\n \"slug\" => \"apple-iphone-6-47-1go-16go-8mpx-4g-or-reconditionne-garantie-3-mois\",\n \"description\" => \"<h2><strong><em>Reconditionn&eacute; d&eacute;signe un produit qui a &eacute;t&eacute; remis sur le march&eacute; apr&egrave;s avoir &eacute;t&eacute; sorti de son emballage mais pas utilis&eacute;. Le plus souvent, il s'agit d'un mat&eacute;riel qui pr&eacute;sentait un probl&egrave;me ou une panne et qui a &eacute;t&eacute; r&eacute;par&eacute;.</em></strong></h2>\\r\\n<p>L&rsquo;iPhone 6 n&rsquo;est pas seulement plus grand en taille. Il est plus grand en tout. Plus large, mais beaucoup plus fin. Plus puissant, mais remarquablement &eacute;conome en &eacute;nergie. Sa surface lisse m&eacute;tallique &eacute;pouse &agrave; merveille le nouvel &eacute;cran Retina HD. Sous son design profil&eacute; s&rsquo;op&egrave;re une fusion parfaite entre mat&eacute;riel et logiciel. Redessin&eacute;e, aff&ucirc;t&eacute;e, perfectionn&eacute;e, une nouvelle g&eacute;n&eacute;ration d&rsquo;iPhone est n&eacute;e.&nbsp;<br />L&rsquo;iPhone n&rsquo;a jamais &eacute;t&eacute; aussi grand. Ni aussi fin.</p>\",\n \"caracteristique\" => \"<ul>\\r\\n<li>Garantie : 3 Mois</li>\\r\\n<li><strong><em>Reconditionn&eacute;</em></strong></li>\\r\\n<li>Type de produit : Smartphone</li>\\r\\n<li>Mod&egrave;le : iPhone 6</li>\\r\\n<li>&Eacute;cran : 4,7\\\" LCD Retina HD</li>\\r\\n<li>R&eacute;solution: 1334x750</li>\\r\\n<li>Camera principale : 8 M&eacute;gaPixels avec ouverture f/2.2 pour le capteur dorsal, et</li>\\r\\n<li>Camera secondaire : 1,2 MPixels pour la capteur frontal</li>\\r\\n<li>Syst&egrave;me d'exploitation : iOS 8</li>\\r\\n<li>Processeur : Processeur A8 avec architecture 64-bit</li>\\r\\n<li>Connexion : Volte, Wifi AC, NFC, Bluetooth 4.0, 4G LTE</li>\\r\\n<li>M&eacute;moire ROM : 16 Go</li>\\r\\n<li>M&eacute;moire RAM: 1 Go</li>\\r\\n<li>Autonomie : Batterie au Lithium-ion avec 10 jours d'autonomie en veille</li>\\r\\n<li>Dimensions : 138,1x67x6,9 mm</li>\\r\\n</ul>\\r\\n<ul>\\r\\n<li>MARCORY REMBLAIS NON LOIN DU FEU DE L'EGLISE CATHOLIQUE STE BERNADETTE / Tel: 21 26 07 68 Cel: 88 21 21 59 / 02 21 21 49</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 62900,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 5,\n \"is_new\" => 1,\n \"product_image\" => \"RaS3tcMZfEfCzufNu87AJZq4Q.jpg\",\n \"created_at\" => \"2021-06-04 23:46:45\",\n \"updated_at\" => \"2021-06-04 23:46:45\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 18,\n \"brand_id\" => 0,\n \"sku\" => \"AP009MP1ELYJHNAFAMZ\",\n \"name\" => \"Apple IPhone 8 - 4.7 \\\" - 4G LTE - 64Go - 2Go - 12Mpx - Noir\",\n \"slug\" => \"apple-iphone-8-47-4g-lte-64go-2go-12mpx-noir\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Type de produit : Smartphone</li>\\r\\n<li>Mod&egrave;le: Iphone 8</li>\\r\\n<li>Ecran: 4.7 Pouces LCD</li>\\r\\n<li>R&eacute;tine</li>\\r\\n<li>int&egrave;gre la puce: Nano-Sim</li>\\r\\n<li>Processeur: Apple11 Bionic</li>\\r\\n<li>Syst&egrave;me d'exploitation: IOS 11</li>\\r\\n<li>M&eacute;moire RAM: 2 Go</li>\\r\\n<li>M&eacute;moire Interne: 64 Go</li>\\r\\n<li>Touch ID: oui</li>\\r\\n<li>iTunes: 12,7</li>\\r\\n<li>iOS: 11</li>\\r\\n<li>Appareil photo Arri&egrave;re: 12 M&eacute;gapixels</li>\\r\\n<li>Appareil photo Avant: 7</li>\\r\\n<li>M&eacute;gapixels</li>\\r\\n<li>Cam&eacute;ra FaceTime: HD 7</li>\\r\\n<li>m&eacute;gapixels</li>\\r\\n<li>Connectivit&eacute;: LTE 3G + 4G</li>\\r\\n<li>iOS 11 ultra-rapide</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 149900,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"MBxPw9ZsPDLFG9mwoV51SMIlE.jpg\",\n \"created_at\" => \"2021-06-04 23:49:15\",\n \"updated_at\" => \"2021-06-04 23:49:15\",\n \"height\" => 0.2,\n ],\n [\n \"id\" => 19,\n \"brand_id\" => 0,\n \"sku\" => \"AP009MP02MD95NAFAMZ\",\n \"name\" => \"Apple IPhone Xs � 5.8\\\" - 4G - 64Go - 4Go - 12Mpx - Silver\",\n \"slug\" => \"apple-iphone-xs-58-4g-64go-4go-12mpx-silver\",\n \"description\" => \"<h2 class=\\\"pd-billboard-header pd-util-compact-large-12 pd-util-compact-small-13\\\">Offrez vous L'une de ses merveilles &agrave; la pointe de le technologie !</h2>\\r\\n<ul>\\r\\n<li>Type de produit: Iphone Xs&nbsp;</li>\\r\\n<li>Taille d'&eacute;cran: 5.8 pouces&nbsp;</li>\\r\\n<li>Type de processeur: Pomme A11 Hexa-Core bionique&nbsp;</li>\\r\\n<li>M&eacute;moire: 64 Go&nbsp;</li>\\r\\n<li>Taille m&eacute;moire RAM: 4 Go&nbsp;</li>\\r\\n<li>Capacitif tactile &Eacute;cran Super AMOLED, 16M&nbsp;</li>\\r\\n<li>Carte sim: Nano-SIM et e-SIM&nbsp;</li>\\r\\n<li>IP68 r&eacute;sistant &agrave; l'eau et &agrave; la poussi&egrave;re (jusqu'&agrave; 2 m pendant 30 min)&nbsp;</li>\\r\\n<li>S&eacute;curit&eacute;: Reconnaissance faciale&nbsp;</li>\\r\\n<li>R&eacute;solution: 12 m&eacute;gapixels&nbsp;</li>\\r\\n<li>Syst&egrave;me d'exploitation: Apple iOS 12&nbsp;</li>\\r\\n<li>NFC: Oui&nbsp;</li>\\r\\n</ul>\",\n \"caracteristique\" => \"<ul>\\r\\n<li>Type de produit: Iphone Xs</li>\\r\\n<li>Taille d'&eacute;cran: 5.8 pouces</li>\\r\\n<li>Type de processeur: Pomme A11 Hexa-Core bionique</li>\\r\\n<li>M&eacute;moire: 64 Go</li>\\r\\n<li>Taille m&eacute;moire RAM: 4 Go</li>\\r\\n<li>Capacitif tactile &Eacute;cran Super AMOLED, 16M</li>\\r\\n<li>Carte sim: Nano-SIM et e-SIM</li>\\r\\n<li>IP68 r&eacute;sistant &agrave; l'eau et &agrave; la poussi&egrave;re (jusqu'&agrave; 2 m pendant 30 min)</li>\\r\\n<li>S&eacute;curit&eacute;: Reconnaissance faciale</li>\\r\\n<li>R&eacute;solution: 12 m&eacute;gapixels</li>\\r\\n<li>Syst&egrave;me d'exploitation: Apple iOS 12</li>\\r\\n<li>NFC: Oui</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 271200,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"pgkQRBQD93qhhLV8Y9c3jXVuK.jpg\",\n \"created_at\" => \"2021-06-04 23:51:57\",\n \"updated_at\" => \"2021-06-04 23:52:26\",\n \"height\" => 0.3,\n ],\n [\n \"id\" => 20,\n \"brand_id\" => 0,\n \"sku\" => \"AP009EL1JP529NAFAMZ\",\n \"name\" => \"Apple IPhone XR- 6.1\\\"- 64 Go- IOS 12- 12 Mpx- 4G - Jaune\",\n \"slug\" => \"apple-iphone-xr-61-64-go-ios-12-12-mpx-4g-jaune\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Type de produit : Iphone</li>\\r\\n<li>Mod&egrave;le ; Iphone XR</li>\\r\\n<li>Version de l'OS : iOS 12</li>\\r\\n<li>Interface : iOS</li>\\r\\n<li>Taille d'&eacute;cran : 6,1 pouces</li>\\r\\n<li>D&eacute;finition : 1792 x 828 pixels</li>\\r\\n<li>M&eacute;moire vive (RAM) : 3 Go</li>\\r\\n<li>M&eacute;moire interne (flash) : 64 Go</li>\\r\\n<li>Appareil photo (dorsal) : 12 M&eacute;gapixels</li>\\r\\n<li>Appareil photo (frontal) : 7 M&eacute;gapixels</li>\\r\\n<li>Enregistrement vid&eacute;o : 4K</li>\\r\\n</ul>\",\n \"quantity\" => 20,\n \"price\" => 244000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"tdFjVRcPIUXoXZ6cG3E51gHsH.jpg\",\n \"created_at\" => \"2021-06-04 23:55:35\",\n \"updated_at\" => \"2021-06-04 23:55:35\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 21,\n \"brand_id\" => 0,\n \"sku\" => \"AP009MP02N4Q1NAFAMZ\",\n \"name\" => \"Apple IPhone 12 Pro (128 Go) - Bleu - 12 Mois De Garantie\",\n \"slug\" => \"apple-iphone-12-pro-128-go-bleu-12-mois-de-garantie\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul class=\\\"a-unordered-list a-vertical a-spacing-none\\\">\\r\\n<li>Type de produit : Iphone</li>\\r\\n<li>Mod&egrave;le : 11 pro</li>\\r\\n<li>Capacit&eacute; de stockage 128 Go</li>\\r\\n<li>Ram : 4Go</li>\\r\\n<li>Syst&egrave;me d&rsquo;exploitation iOS 13</li>\\r\\n<li>&Eacute;cran OLED Super Retina XDR 5,8 &Prime; pouces</li>\\r\\n<li>R&eacute;sistant &agrave; la poussi&egrave;re et &agrave; l&rsquo;eau (jusqu&rsquo;&agrave; 4 m&egrave;tres pendant 30 minutes maximum, IP68)</li>\\r\\n<li>Triple appareil photo avec ultra grand-angle, grand-angle et t&eacute;l&eacute;objectif 12 Mpx, mode Nuit, mode Portrait et vid&eacute;o 4K jusqu&rsquo;&agrave; 60 i/s</li>\\r\\n<li>Cam&eacute;ra avant TrueDepth 12 Mpx avec mode Portrait, vid&eacute;o 4K et ralenti</li>\\r\\n<li>Face ID pour l&rsquo;authentification s&eacute;curis&eacute;e et Apple Pay</li>\\r\\n<li>Puce A13 Bionic avec Neural Engine de troisi&egrave;me g&eacute;n&eacute;ration</li>\\r\\n<li>Fr&eacute;quence du processeur : 2.65 GHz</li>\\r\\n<li>CPU : Octa-Core</li>\\r\\n<li>Cam&eacute;ra : 12 Mpx/12 Mpx/12 Mpx</li>\\r\\n<li>Nombre de capteurs (arri&egrave;re et avant) : 4</li>\\r\\n<li>Recharge rapide avec l&rsquo;adaptateur 18 W fourni</li>\\r\\n<li>Recharge sans fil</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 779000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"UoFVumOmxXEGoUFB2CYYtR967.jpg\",\n \"created_at\" => \"2021-06-04 23:58:37\",\n \"updated_at\" => \"2021-06-04 23:58:37\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 22,\n \"brand_id\" => 0,\n \"sku\" => \"AP009EL09TX4ANAFAMZ\",\n \"name\" => \"Apple IPhone XR- 6.1\\\"- 12 Mpx- 64 Go- IOS 12- 4G- Noir - Garantysmart 3 Mois\",\n \"slug\" => \"apple-iphone-xr-61-12-mpx-64-go-ios-12-4g-noir-garantysmart-3-mois\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>GarantySmart 3 Mois</li>\\r\\n<li>GarantySmart 3 Mois</li>\\r\\n<li>Type de Produit: Iphone</li>\\r\\n<li>Version de l'OS: iOS 12</li>\\r\\n<li>Interface: iOS</li>\\r\\n<li>Taille d'&eacute;cran: 6, 1 pouces</li>\\r\\n<li>D&eacute;finition: 1792 x 828 pixels</li>\\r\\n<li>M&eacute;moire vive (RAM): 3 Go</li>\\r\\n<li>M&eacute;moire interne (flash): 128 Go<br />li&gt; Appareil photo (dorsal): 12 M&eacute;gapixels</li>\\r\\n<li>Appareil photo (frontal): 7 M&eacute;gapixels</li>\\r\\n<li>Enregistrement vid&eacute;o: 4K</li>\\r\\n</ul>\",\n \"quantity\" => 2,\n \"price\" => 244000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 1,\n \"is_new\" => 0,\n \"product_image\" => \"KwSm754TScvLT3dnOFoCl0HVb.jpg\",\n \"created_at\" => \"2021-06-05 00:00:46\",\n \"updated_at\" => \"2021-06-05 00:00:46\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 23,\n \"brand_id\" => 0,\n \"sku\" => \"TE292MP0ECQVXNAFAMZ\",\n \"name\" => \"Tecno POP 4 - 6\\\" - 3G - 2Go - 32Go - 8MP/5MP - 5000 MAH - Vert\",\n \"slug\" => \"tecno-pop-4-6-3g-2go-32go-8mp5mp-5000-mah-vert\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Type de produit : Smartphone</li>\\r\\n<li>Mod&egrave;le : Pop 4</li>\\r\\n<li>Ecran : 6'Pouces</li>\\r\\n<li>Camera frontale : 8MP</li>\\r\\n<li>Camera Principale: 5 MP</li>\\r\\n<li>M&eacute;moire RAM : 2 Go</li>\\r\\n<li>M&eacute;moire ROM : 32</li>\\r\\n<li>Processeur : Quad-core</li>\\r\\n<li>Android 9.0</li>\\r\\n<li>Vitesse de processeur : 1.8 GHz Cortex-A53</li>\\r\\n<li>Connectivit&eacute;s : Bluetooth, R&eacute;seau 3G, microUSB 2.0, Radio</li>\\r\\n<li>S&eacute;curit&eacute; : Empreinte Digitale</li>\\r\\n<li>Batterie : 5000 mAh</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 44500,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"zdkRIPLtAbNHjph0nwynSwAlY.jpg\",\n \"created_at\" => \"2021-06-05 00:05:41\",\n \"updated_at\" => \"2021-06-05 00:05:41\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 24,\n \"brand_id\" => 0,\n \"sku\" => \"SA024MP0OBMBNNAFAMZ\",\n \"name\" => \"Samsung Galaxy A11- 4G - 6.4\\\" - 2/32Go - 13Mpx - Garantie 24 Mois - BLEU\",\n \"slug\" => \"samsung-galaxy-a11-4g-64-232go-13mpx-garantie-24-mois-bleu\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>M&eacute;moire Interne: 32 GB</li>\\r\\n<li>M&eacute;moire Ram: 2GB</li>\\r\\n<li>Appareil Photo Arri&egrave;re: 13 Mpx</li>\\r\\n<li>Ecran: 6.4 Pouces</li>\\r\\n<li>Affichage:&nbsp;Super AMOLED Plus capacitive touchscreen, 16M colors</li>\\r\\n<li>Syst&egrave;me d,exploitation:&nbsp;Android 10.0; One UI 2</li>\\r\\n<li>Cpu:&nbsp;Octa-core (2x2.2 GHz Kryo 470 Gold &amp; 6x1.8 GHz Kryo 470 Silver)</li>\\r\\n<li>R&eacute;seau: 4G LTE</li>\\r\\n<li>Sim: Dual Sim</li>\\r\\n<li>Batterie:&nbsp;Non-removable Li-Po 4000 mAh battery</li>\\r\\n<li>Type de Produit:Smartphone&nbsp;</li>\\r\\n<li>Garantie:24Mois&nbsp;</li>\\r\\n</ul>\",\n \"quantity\" => 12,\n \"price\" => 65500,\n \"sale_price\" => 58900,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => NULL,\n \"is_new\" => 0,\n \"product_image\" => \"6NtwKYtIvbaN8r8NXsPxDOjQS.jpg\",\n \"created_at\" => \"2021-06-05 00:08:50\",\n \"updated_at\" => \"2021-06-05 00:08:50\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 25,\n \"brand_id\" => 0,\n \"sku\" => \"IN805MP04UGFLNAFAMZ\",\n \"name\" => \"Infinix Smart HD � 6.1\\\"- 2Go � 32Go � 8Mpx � 5000mAh � Noir - Garantie 13 Mois\",\n \"slug\" => \"infinix-smart-hd-61-2go-32go-8mpx-5000mah-noir-garantie-13-mois\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Garantie 13 Mois</li>\\r\\n<li>Type de produit : Smartphone</li>\\r\\n<li>Mod&egrave;le : Smart HD</li>\\r\\n<li>&Eacute;cran 6.1 pouces&nbsp;</li>\\r\\n<li>R&eacute;solution 720*1600</li>\\r\\n<li>Cam&eacute;ra&nbsp;:&nbsp;8Mpx</li>\\r\\n<li>M&eacute;moire Ram : 2Go</li>\\r\\n<li>M&eacute;moire Rom 32Go</li>\\r\\n<li>R&eacute;seau&nbsp;: 3G</li>\\r\\n<li>Batterie 4000mAh&nbsp;</li>\\r\\n<li>Empreinte digitale Oui</li>\\r\\n<li>Dimension 167*76*8.3</li>\\r\\n<li>Android 9 Pie Go &eacute;dition&nbsp;</li>\\r\\n<li>Connectivit&eacute; GPS, Wifi, BT</li>\\r\\n<li>Poids : 0.154Kg</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 56000,\n \"sale_price\" => 48600,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"GKLJz6xgkEzzZugaRhS1HIH2C.jpg\",\n \"created_at\" => \"2021-06-05 00:11:11\",\n \"updated_at\" => \"2021-06-05 00:11:11\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 26,\n \"brand_id\" => 0,\n \"sku\" => \"SA024MP05RQYTNAFAMZ\",\n \"name\" => \"Samsung Galaxy A72- 4G - 6.7\\\" - 8/128Go - 64MP/12MP/5MP/5MP - Octa-core - Bleu - Garantie 24 Mois\",\n \"slug\" => \"samsung-galaxy-a72-4g-67-8128go-64mp12mp5mp5mp-octa-core-bleu-garantie-24-mois\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Garantie : 24 Mois</li>\\r\\n<li>Type de produit : Smartphone</li>\\r\\n<li>Mod&egrave;le : A72</li>\\r\\n<li>Ecran : 6.7 Pouces</li>\\r\\n<li>Camera Principale: 64MP/12MP/5MP/5MP</li>\\r\\n<li>Camera Secondaire: 32MP</li>\\r\\n<li>R&eacute;seau: 4G</li>\\r\\n<li>M&eacute;moire ROM: 128Go</li>\\r\\n<li>M&eacute;moire RAM: 8Go</li>\\r\\n<li>Processeur: Octa-core (2x2.2 GHz Kryo 470 Gold &amp; 6x1.8 GHz Kryo 470 Silver)</li>\\r\\n<li>Connectivit&eacute; : Wifi, Bluetooth, FM radio, NFC</li>\\r\\n<li>Securit&eacute; : Empreinte digitale</li>\\r\\n<li>USB : 2.0 Type C</li>\\r\\n<li>Batterie : 4500mAh</li>\\r\\n</ul>\",\n \"quantity\" => 5,\n \"price\" => 210000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"ADH9gons0guw9YgOxKMQeyje1.jpg\",\n \"created_at\" => \"2021-06-05 00:13:27\",\n \"updated_at\" => \"2021-06-05 00:13:27\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 27,\n \"brand_id\" => 0,\n \"sku\" => \"HU830EL0XCE89NAFAMZ\",\n \"name\" => \"Huawei P30 Lite New Edition - 6,15\\\" - 24 Mpx - 6Go - 256 Go - Bleu\",\n \"slug\" => \"huawei-p30-lite-new-edition-615-24-mpx-6go-256-go-bleu\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Type de produit : Smartphone</li>\\r\\n<li>Mod&egrave;le : P30 lite New Edition</li>\\r\\n<li>R&eacute;seau 4G/LTE</li>\\r\\n<li>Dual SIM : Oui</li>\\r\\n<li>&Eacute;cran : 6,15 pouces</li>\\r\\n<li>R&eacute;solution : 1080 x 2312 pixels</li>\\r\\n<li>Processeur : Octa-core (4x2.2 GHz Cortex-A73 &amp; 4x1.7 GHz Cortex-A53)</li>\\r\\n<li>M&eacute;moire RAM :6 Go</li>\\r\\n<li>M&eacute;moire ROM : 256 Go (jusqu'&agrave; 512Go)</li>\\r\\n<li>Camera arri&egrave;re : 48 + 8 + 2 M&eacute;gapixels</li>\\r\\n<li>Camera avant : 24 M&eacute;gapixels</li>\\r\\n<li>Syst&egrave;me d'exploitation : Android 9.0 (Pie], EMUI 9.0</li>\\r\\n<li>Connectivit&eacute;s : WIFI - Bluetooth - NFC - GPS</li>\\r\\n<li>Batterie : 3340 mAh</li>\\r\\n<li>Dimensions : 152.9 x 72.7 x 7.4 mm</li>\\r\\n<li>Poids : 159g</li>\\r\\n</ul>\",\n \"quantity\" => 12,\n \"price\" => 200000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => NULL,\n \"is_new\" => 1,\n \"product_image\" => \"9uhgqBpyFBOUAfAa9Ly5kk1zh.jpg\",\n \"created_at\" => \"2021-06-05 00:16:16\",\n \"updated_at\" => \"2021-06-05 00:16:16\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 28,\n \"brand_id\" => 0,\n \"sku\" => \"LE018CL04H94HNAFAMZ\",\n \"name\" => \"Asus VivoBook 12 - Dual Core - 128Go - E203M - Win10 Officiel - Gris - Garantie 6 Mois\",\n \"slug\" => \"asus-vivobook-12-dual-core-128go-e203m-win10-officiel-gris-garantie-6-mois\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Type de produit : Ordinateur Portable</li>\\r\\n<li>Mod&egrave;le :&nbsp; E203M</li>\\r\\n<li>Processeur Processeur Intel&reg; Celeron&reg; N4000,&nbsp;1.1 GHz&nbsp;(4 Mo de cache, jusqu'&agrave; 2,6 GHz)<br />M&eacute;moire Ram : LPDDR4 4GB<br />Capacit&eacute; du disc dur : 128Go</li>\\r\\n<li>Afficher 11,6 &rsquo;// Ultra Slim 200nits // HD 1366 &times; 768 16: 9 // &Eacute;blouissement Cam&eacute;ra vid&eacute;o Cam&eacute;ra Web VGA (type fixe)</li>\\r\\n<li>Syst&egrave;me op&eacute;rateur Windows 10 (64 bits)</li>\\r\\n<li>Sans fil 802.11ac + Bluetooth 4.1 (double bande) 1 * 1 adaptateur pour courant alternatif &oslash;4.0 l'audio Haut-parleur int&eacute;gr&eacute; Batterie 42WHrs, 3S1P, Li-ion 3 cellules</li>\\r\\n<li>Poids 0,97 kg (sans batterie) Lan N / A</li>\\r\\n<li>Lecteur de cartes Type: Micro SD Port USB 2x USB 3.0 Interface 1x prise combin&eacute;e sortie casque et entr&eacute;e audio</li>\\r\\n<li>Dimension 28,6 (L) x 19,3 (P) x 2,14 ~ 2,14 (H)&nbsp;</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 199000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 3,\n \"is_new\" => 1,\n \"product_image\" => \"XV9ciMYzLQsYLzgoDgJqGuyyY.jpg\",\n \"created_at\" => \"2021-06-05 00:20:44\",\n \"updated_at\" => \"2021-06-05 00:20:44\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 29,\n \"brand_id\" => 0,\n \"sku\" => \"HP017EL1BT7M1NAFAMZ\",\n \"name\" => \"Hp ProBook 440 G5 Core I3 4 GB / 1000 GB HDD 14 Pouces Tactile Win 10 64B - Gris\",\n \"slug\" => \"hp-probook-440-g5-core-i3-4-gb-1000-gb-hdd-14-pouces-tactile-win-10-64b-gris\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<ul>\\r\\n<li><strong>Type de produit : Ordinateur portable</strong></li>\\r\\n<li><strong>Gamme de processeurs</strong>&nbsp;: Processeur Intel&reg; Core&trade; i3 de 7e g&eacute;n&eacute;ration</li>\\r\\n<li><strong>M&eacute;moire&nbsp;</strong>: 4&nbsp;Go de m&eacute;moire SDRAM DDR4-2400 (1 x 4&nbsp;Go)</li>\\r\\n<li><strong>Disque interne</strong>&nbsp;: SATA 500&nbsp;Go, 7200&nbsp;tr/min</li>\\r\\n<li><strong>Ecran&nbsp;</strong>: &Eacute;cran HD SVA anti-reflets &agrave; r&eacute;tro&eacute;clairage LED d'une diagonale de 35,56 cm (14 po], 220 cd/m2, 45 % sRGB (1 366 x 768)</li>\\r\\n<li>Carte graphique&nbsp;Int&eacute;gr&eacute;:&nbsp;Carte graphique Intel&reg; HD 620</li>\\r\\n<li>Ports :&nbsp;1 port USB 3.1 Type-C&trade; 1re g&eacute;n&eacute;ration (Power Delivery, DisplayPort&trade;)&nbsp;;2 ports USB 3.0 (1 pour le chargement)&nbsp;;1&nbsp;port HDMI 1.4b&nbsp;;1 port VGA&nbsp;;1 prise RJ-45&nbsp;;1 alimentation secteur ;1 prise combin&eacute;e casque/microphone&nbsp;</li>\\r\\n<li><strong>Audio</strong>&nbsp;:&nbsp;2 haut-parleurs st&eacute;r&eacute;o int&eacute;gr&eacute;s ;Baie &agrave; double microphone int&eacute;gr&eacute;e ;</li>\\r\\n<li><strong>Appareil photo&nbsp;</strong>: Webcam 720p HD</li>\\r\\nClavier : Clavier HP Premium, pleine largeur, r&eacute;sistant &agrave; l&rsquo;eau</ul>\\r\\n</ul>\\r\\n<ul>Sans fil :&nbsp;Combo Intel&reg; double bande sans fil AC 8265 802.11a/b/g/n/ac (2 x 2) Wi-Fi&reg; et Bluetooth&reg; 4.2</ul>\\r\\n<p>&nbsp;</p>\",\n \"quantity\" => 10,\n \"price\" => 296000,\n \"sale_price\" => 250000,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"8gZd0OIbMvAnfkRbbteJ6jJ8G.jpg\",\n \"created_at\" => \"2021-06-05 00:23:09\",\n \"updated_at\" => \"2021-06-05 00:23:09\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 30,\n \"brand_id\" => 0,\n \"sku\" => \"HP017EL1LCSGMNAFAMZ\",\n \"name\" => \"Hp PC - 15,6\\\" - CORE � I7 - 8250U - 16Go -1To Gris - Clavier Retro-eclaire\",\n \"slug\" => \"hp-pc-156-core-i7-8250u-16go-1to-gris-clavier-retro-eclaire\",\n \"description\" => NULL,\n \"caracteristique\" => \"<article class=\\\"col8 -pvs\\\">\\r\\n<div class=\\\"card-b -fh\\\">\\r\\n<div class=\\\"markup -pam\\\">\\r\\n<ul>\\r\\n<li>Nom du produit : HP Pavilion - 15-cs0057od</li>\\r\\n<li>Microprocesseur : Intel&reg; Core&trade; i7-8250U</li>\\r\\n<li>M&eacute;moire, standard : 16 GB DDR4-2400 SDRAM ( 4+ 8 GB)</li>\\r\\n<li>Graphiques vid&eacute;o : Intel UHD Graphics 620</li>\\r\\n<li>Disque dur : 1 To 5400 tpm SATA</li>\\r\\n<li>Ecran : 15.6 diagonal HD SVA WLED-backlit T (1366x768)</li>\\r\\n<li>Clavier : Clavier &icirc;lot pleine grandeur avec pav&eacute; num&eacute;rique int&eacute;gr&eacute;</li>\\r\\n<li>Dispositif de pointage : Pav&eacute; tactile avec prise en charge de gestes multi-touch</li>\\r\\n<li>Connectivit&eacute; sans fil : Intel 802.11ac (1x1) et Bluetooth&reg; 4.0 Combo</li>\\r\\n<li>Interface r&eacute;seau : LAN Ethernet 10/100 BASE-T int&eacute;gr&eacute;</li>\\r\\n<li>Ports externes : 1 HDMI; 1 combo casque / microphone; 2 USB 2.0; 1 USB 3.0; 1 RJ-45</li>\\r\\n<li>Dimensions minimales : 37.8 x 25.21 x 2.25 cm</li>\\r\\n<li><em>Poids</em>&nbsp;du produit : 2 Kg.</li>\\r\\n<li>Type d'alimentation : Adaptateur secteur 90W AC</li>\\r\\n<li>Type de batterie : 3 cellules, 41 Wh Li-ion</li>\\r\\n<li>Webcam : Webcam HP TrueVision HD (face &agrave; l'avant) avec microphone num&eacute;rique int&eacute;gr&eacute;</li>\\r\\n<li>Caract&eacute;ristiques audio :B&amp;O PLAY &trade; avec 2 haut-parleurs</li>\\r\\n<li>Syst&egrave;me d'exploitation : Windows 10 Pro</li>\\r\\n</ul>\\r\\n</div>\\r\\n</div>\\r\\n</article>\\r\\n<article class=\\\"col8 -pvs\\\">\\r\\n<div class=\\\"card-b -fh\\\">&nbsp;</div>\\r\\n</article>\",\n \"quantity\" => 12,\n \"price\" => 579000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"bA9oMNfVlYtv9woCaHeP0iFyD.jpg\",\n \"created_at\" => \"2021-06-05 00:27:53\",\n \"updated_at\" => \"2021-06-05 00:27:53\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 31,\n \"brand_id\" => 0,\n \"sku\" => \"HP017CL0V2WFLNAFAMZ\",\n \"name\" => \"Lenovo Ideapad V14 - 1000Go - 14? - RAM 4Go - Dual Core - Gris - Garantie 6 Mois - Sac Offert\",\n \"slug\" => \"lenovo-ideapad-v14-1000go-14-ram-4go-dual-core-gris-garantie-6-mois-sac-offert\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Couleur</li>\\r\\n<li>Gris</li>\\r\\n<li>Processeur</li>\\r\\n<li>Processeur Dual&nbsp;Core Intel Celeron N4020 cadenc&eacute; &agrave; 1,1&nbsp;GHz (Boost 2,8&nbsp;GHz)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</li>\\r\\n<li>4 Mo de m&eacute;moire cache</li>\\r\\n<li>M&eacute;moire</li>\\r\\n<li>4 Go de SDRAM DDR4 &agrave; 2400&nbsp;MHz</li>\\r\\n<li>Stockage</li>\\r\\n<li>Disque HDD de 1000Go</li>\\r\\n<li>Lecteur optique</li>\\r\\n<li>Aucun</li>\\r\\n<li>Affichage</li>\\r\\n<li>Ecran LED IPS&nbsp;mat de 14\\\" (35,56 cm)</li>\\r\\n<li>R&eacute;solution HD en 1366&nbsp;x 768&nbsp;pixels</li>\\r\\n<li>Rapport d'aspect 16:9</li>\\r\\n<li>Carte graphique</li>\\r\\n<li>Intel UHD Graphics 600</li>\\r\\n<li>Webcam</li>\\r\\n<li>Webcam VGA</li>\\r\\n<li>AudioHauts parleurs st&eacute;r&eacute;o</li>\\r\\n<li>Connectivit&eacute;Wi-Fi 802.11 a/b/g/n/ac</li>\\r\\n<li>Bluetooth v4.2</li>\\r\\n<li>Interfaces2 ports USB 3.0</li>\\r\\n<li>1 port HDMI</li>\\r\\n<li>1 prise combo casque/microphone</li>\\r\\n<li>1 lecteur de cartes micro SD</li>\\r\\n<li>Pas de port RJ45</li>\\r\\n<li>P&eacute;riph&eacute;riques d'entr&eacute;ePav&eacute; tactile multi-touches</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 206000,\n \"sale_price\" => 199000,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => NULL,\n \"is_new\" => 1,\n \"product_image\" => \"6ufeMHyBLU8Mkdnb14ntHaTAK.jpg\",\n \"created_at\" => \"2021-06-05 00:29:48\",\n \"updated_at\" => \"2021-06-05 00:29:48\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 32,\n \"brand_id\" => 0,\n \"sku\" => \"AS040CL0CQG75NAFAMZ\",\n \"name\" => \"Asus Vivobook E410M - 128Go - 4Go - 14'' - Dual Core - Win10 - Blanc - Garantie 6 Mois - Sac Offert\",\n \"slug\" => \"asus-vivobook-e410m-128go-4go-14-dual-core-win10-blanc-garantie-6-mois-sac-offert\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Ecran&nbsp;14.0'' FULL HD&nbsp;</li>\\r\\n<li>Processeur:&nbsp;&nbsp;Intel Celeron N4020&nbsp;(&nbsp;1.10 GHz&nbsp;Up to&nbsp;2.80 GHz,&nbsp;4Mo&nbsp;M&eacute;moire cache,&nbsp;Dual-Core)</li>\\r\\n<li>Windows 10&nbsp;</li>\\r\\n<li>M&eacute;moire RAM:&nbsp;4 Go&nbsp;</li>\\r\\n<li>Disque Dur:&nbsp;128 Go eMMC&nbsp;</li>\\r\\n<li>Carte Graphique:&nbsp;Intel HD Graphics&nbsp;</li>\\r\\n<li>Clavier Chiclet avec pav&eacute; tactile, num&eacute;rique et&nbsp;r&eacute;tro&eacute;clair&eacute;&nbsp;</li>\\r\\n<li>&nbsp;Wi-Fi, Bluetooth, Cam&eacute;ra Web et VGA</li>\\r\\n<li>&nbsp;Couleur: Bleu&nbsp;</li>\\r\\n<li>USB : 1 x USB 2.0, 1 x USB 3.1 , 1 x USB 3.1 Type C</li>\\r\\n<li>Lecteur de carte SD : x1</li>\\r\\n<li>Pas de Lecteur CD</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 229900,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 3,\n \"is_new\" => 1,\n \"product_image\" => \"067lHOTWvtOnXPyRsHEM8BVIh.jpg\",\n \"created_at\" => \"2021-06-05 00:31:32\",\n \"updated_at\" => \"2021-06-05 00:31:32\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 33,\n \"brand_id\" => 0,\n \"sku\" => \"HP017CL1CVD2HNAFAMZ\",\n \"name\" => \"Hp Pc 15-Dw - DUAL CORE - 4Go Ram - 500Go Disque - Rouge\",\n \"slug\" => \"hp-pc-15-dw-dual-core-4go-ram-500go-disque-rouge\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Type produit : Ordinateur portable</li>\\r\\n<li>Mod&egrave;le15-dw0081wm</li>\\r\\n<li>Webcam int&eacute;gr&eacute;e, microphone int&eacute;gr&eacute;, Bluetooth</li>\\r\\n<li>Taille de l'&eacute;cran 15,6 dans</li>\\r\\n<li>Processeur Intel Pentium</li>\\r\\n<li>Syst&egrave;me op&eacute;rateur Windows 10</li>\\r\\n<li>R&eacute;solution maximale 1 366 x 768</li>\\r\\n<li>Taille de la RAM4 GO</li>\\r\\n<li>Couleur du fabricant Couvercle et base rouge &eacute;carlate, cadre de clavier argent&eacute; naturel</li>\\r\\n<li>Capacit&eacute; du disque dur 500 Go</li>\\r\\n<li>La vitesse du processeur 2,40 GHz</li>\\r\\n<li>GPU Carte graphique Intel UHD 605</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 248000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => NULL,\n \"is_new\" => 1,\n \"product_image\" => \"nLlcAS729U4VEtLVP1zro6Z7F.jpg\",\n \"created_at\" => \"2021-06-05 00:33:38\",\n \"updated_at\" => \"2021-06-05 00:33:38\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 34,\n \"brand_id\" => 0,\n \"sku\" => \"HP017CL122ME5NAFAMZ\",\n \"name\" => \"Hp Ordinateur De Bureau ProDesk 400G2 MT- 21\\\" - 4Go Ram - 500 Go - Dual Core - Noir - Garantie 6 Mois\",\n \"slug\" => \"hp-ordinateur-de-bureau-prodesk-400g2-mt-21-4go-ram-500-go-dual-core-noir-garantie-6-mois\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>FAMILLE DE PROCESSEUR Intel&nbsp;</li>\\r\\n<li>M&Eacute;MOIRE VIVE 4Go (4096Mo)</li>\\r\\n<li>TYPE DE M&Eacute;MOIRE DDR3</li>\\r\\n<li>DISQUE DUR 500Go</li>\\r\\n<li>VITESSE DU DISQUE DUR 7200trs/min</li>\\r\\n<li>FORMAT DU DISQUE DUR</li>\\r\\n<li>TAILLE D'&Eacute;CRAN 21 Pouces</li>\\r\\n<li>CONTR&Ocirc;LEUR GRAPHIQUE Intel HD Graphics 4400 (int&eacute;gr&eacute; au processeur)</li>\\r\\n<li>LECTEUR OPTIQUE Lecteur / Graveur DVD</li>\\r\\n<li>CONNEXION FILAIRE Ethernet Gigabit (RJ45) 10/100/1000Mbps</li>\\r\\n<li>PORT(S) USB 2.0 4</li>\\r\\n<li>PORT(S) USB 3.0 2</li>\\r\\n<li>PORT(S) DVI 1</li>\\r\\n<li>PORT(S) RJ45 1</li>\\r\\n<li>PRISE MICROPHONE 1</li>\\r\\n<li>PRISE CASQUE 1</li>\\r\\n<li>CLAVIER Fran&ccedil;ais AZERTY Avec Pav&eacute; Num&eacute;rique</li>\\r\\n<li>SYST&Egrave;ME D'EXPLOITATION Windows 10 conseille</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 235000,\n \"sale_price\" => 210000,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"tSS0O12C8vMxXFRmxyI8abNoo.jpg\",\n \"created_at\" => \"2021-06-05 00:36:58\",\n \"updated_at\" => \"2021-06-05 00:36:58\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 35,\n \"brand_id\" => 0,\n \"sku\" => \"HP017SE0S0YEPNAFAMZ\",\n \"name\" => \"Hp Ordinateur De Bureau ProDesk 400 G7 Microtower - 1000Go - 4Go Ram - 21\\\" - Core I5 - Garantie 6 Mois\",\n \"slug\" => \"hp-ordinateur-de-bureau-prodesk-400-g7-microtower-1000go-4go-ram-21-core-i5-garantie-6-mois\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Processeur&nbsp;Intel&reg; Core&trade; i5</li>\\r\\n<li>M&eacute;moire vive(RAM) install&eacute;e&nbsp;4 Go</li>\\r\\n<li>Taille du disque dur&nbsp;1 To</li>\\r\\n<li>Type du disque dur&nbsp;SATA</li>\\r\\n<li>Vitesse de rotation du disque dur&nbsp;7200 tours/min</li>\\r\\n<li>Lecteur / Graveur&nbsp;Graveur de DVD</li>\\r\\n<li>Carte graphique&nbsp;Intel&reg; UHD 630</li>\\r\\n<li>R&eacute;solution maxi&nbsp;1920 x 1080</li>\\r\\n<li>Poids en kg&nbsp;5 kg</li>\\r\\n<li>Taille de l'&eacute;cran&nbsp;20,7\\\"</li>\\r\\n<li>Type de l'&eacute;cran&nbsp;Full HD (1920 x 1080], IPS, anti-reflet, 250 nits, 45 % NTSC</li>\\r\\n<li>Audio&nbsp;Codec Realtek ALC3205, haut-parleur interne 2 W, prise audio universelle, prise combin&eacute;e micro/casque</li>\\r\\n<li>Clavier&nbsp;Clavier filaire USB HP (Fran&ccedil;ais AZERTY)</li>\\r\\n<li>Connecteurs&nbsp;1 prise combin&eacute;e casque/microphone; 2 port USB Type-A SuperSpeed, vitesse de transfert de 10 Gbit/s; 2 ports USB Type-A, vitesse de transfert de 480 Mbit/s</li>\\r\\n<li>1 sortie audio; 1 prise d&rsquo;alimentation; 1 port RJ-45; 1 port HDMI 1.4; 3 ports USB Type-A SuperSpeed, vitesse de transfert de 5 Gbit/s; 1 port DisplayPort&trade; 1.4; 2 ports USB Type-A, vitesse de transfert de 480 Mbit/s</li>\\r\\n<li>P&eacute;riph&eacute;rique de pointage&nbsp;Souris optique filaire USB HP</li>\\r\\n</ul>\",\n \"quantity\" => 2,\n \"price\" => 249000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 1,\n \"is_new\" => 1,\n \"product_image\" => \"intWIWIJpqTxHp7p2F90TPAop.jpg\",\n \"created_at\" => \"2021-06-05 00:38:50\",\n \"updated_at\" => \"2021-06-05 00:38:50\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 36,\n \"brand_id\" => 0,\n \"sku\" => \"HP017EA0NQ2PPNAFAMZ\",\n \"name\" => \"Hp Ordinateur Bureau Pro 6300 MT - 21\\\" - Core I3 - 500GB - 4GB - FreeDOS - Noir - Garantie12 Mois\",\n \"slug\" => \"hp-ordinateur-bureau-pro-6300-mt-21-core-i3-500gb-4gb-freedos-noir-garantie12-mois\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Processeur :&nbsp;Intel Core i3</li>\\r\\n<li>M&eacute;moire RAM install&eacute;e :&nbsp;4Go DDR3&nbsp;</li>\\r\\n<li>Emplacements RAM :&nbsp;4</li>\\r\\n<li>Disque dur :&nbsp;500Go 3.5\\\" M&eacute;canique / Magn&eacute;tique SATA</li>\\r\\n<li>Lecteur optique :&nbsp;Graveur DVD</li>\\r\\n<li>Ports USB Fa&ccedil;ade :&nbsp;4x USB2</li>\\r\\n<li>Ports USB Arri&egrave;re :&nbsp;2x USB2 + 4x USB 3</li>\\r\\n<li>Socket processeur :&nbsp;FCLGA1155</li>\\r\\n<li>Profil carte accept&eacute; :&nbsp;Profil long standard</li>\\r\\n<li>Ports PCI :&nbsp;1</li>\\r\\n<li>Port SATA :&nbsp;4</li>\\r\\n<li>Port PS/2 :&nbsp;2</li>\\r\\n<li>Sorties audio :&nbsp;1x Avant + 1x Arri&egrave;re</li>\\r\\n<li>Entr&eacute;es audio :&nbsp;1x Avant + 1x Arri&egrave;re</li>\\r\\n<li>Chipset :&nbsp;Intel Q75 Express</li>\\r\\n<li>R&eacute;seau Ethernet :&nbsp;Intel 82579LM Gigabit Ethernet</li>\\r\\n<li>Syst&egrave;me d'exploitation :&nbsp;Microsoft Windows 10 Conseill&eacute;</li>\\r\\n<li>Dimensions en cms (L x H x P) :&nbsp;17.7 x 37.7 x 43.1</li>\\r\\n<li>Poids :&nbsp;2.025 Kg</li>\\r\\n</ul>\",\n \"quantity\" => 20,\n \"price\" => 450000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 10,\n \"is_new\" => 0,\n \"product_image\" => \"4TW2gUFns7myYZCdFxUAaqBqd.jpg\",\n \"created_at\" => \"2021-06-05 00:40:39\",\n \"updated_at\" => \"2021-06-05 00:40:39\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 37,\n \"brand_id\" => 0,\n \"sku\" => \"LE018CL04LIZDNAFAMZ\",\n \"name\" => \"Lenovo Tout En Un - Core I5-8100T - Ram 4 Go Sdram - Disque Dur 1 To + 16 Go Optane Memory- Gris\",\n \"slug\" => \"lenovo-tout-en-un-core-i5-8100t-ram-4-go-sdram-disque-dur-1-to-16-go-optane-memory-gris\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li><strong>T</strong>ype de produit : complet bureau</li>\\r\\n<li>Mod&egrave;le : ideacenter AIO 520</li>\\r\\n<li>Microprocesseur : Intel&reg; Core &trade; i3-8100T&nbsp;</li>\\r\\n<li>M&eacute;moire : 4 Go SDRAM</li>\\r\\n<li>M&eacute;moire du disque dur : 1 To + 16 Go optane memory</li>\\r\\n<li>Affichage : 22 pouces tactile</li>\\r\\n<li>clavier sans fil</li>\\r\\n<li>souris sans fil</li>\\r\\n</ul>\",\n \"quantity\" => 2,\n \"price\" => 1000000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 1,\n \"is_new\" => 1,\n \"product_image\" => \"H2TknGYjZt5eJATKtNaZuJmbg.jpg\",\n \"created_at\" => \"2021-06-05 00:42:32\",\n \"updated_at\" => \"2021-06-05 00:42:32\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 38,\n \"brand_id\" => 0,\n \"sku\" => \"GE070CL01F6P9NAFAMZ\",\n \"name\" => \"PARTAGEZ CE PRODUIT Support De Table Pliable Pour Ordinateur\",\n \"slug\" => \"partagez-ce-produit-support-de-table-pliable-pour-ordinateur\",\n \"description\" => \"<p><strong>DEUX GROS VENTILATEURS INT&Eacute;GR&Eacute;S:</strong><br />le puissant ventilateur du processeur r&eacute;duira la temp&eacute;rature de fonctionnement de votre ordinateur portable et fournira un flux d'air constant autour de lui.&nbsp;Il utilise des m&eacute;thodes de refroidissement actives pour r&eacute;partir l'air silencieusement et uniform&eacute;ment sous la base de votre ordinateur portable ou note-book.&nbsp;<strong>AJUSTEZ TOUT ANGLE:</strong>&nbsp;Ce support pour ordinateur portable avec des articulations &agrave; verrouillage automatique r&eacute;glables qui sont disponibles pour une rotation d'environ 360 degr&eacute;s.&nbsp;Il peut contenir des objets dans une vari&eacute;t&eacute; de configurations.&nbsp;La table fournira l'angle de frappe le plus confortable lorsque vous &ecirc;tes assis sur une chaise ou allong&eacute; sur le lit.&nbsp;<strong>JOINTS &Agrave; 360 DEGR&Eacute;S: Conception</strong>&nbsp;ergonomique avec support d'ordinateur portable &agrave; rotation r&eacute;glable &agrave; 360 degr&eacute;s.&nbsp;Ajustez l'&eacute;cran de votre ordinateur portable au meilleur niveau de vue pour prot&eacute;ger votre corps de la douleur au cou et de la pression des &eacute;paules.&nbsp;<strong>Bureau pour ordinateur portable pour lit.</strong><strong>&Eacute;tirez-vous, bougez vos jambes et laissez le support ergonomique pour ordinateur portable positionner parfaitement votre &eacute;cran.&nbsp;Bureau pour ordinateur pour canap&eacute;&nbsp;Lounge sur le canap&eacute; et calculez confortablement avec ce support d'ordinateur portable rafra&icirc;chissant.&nbsp;Support ergonomique pour ordinateur portable pour s'asseoir &agrave; un bureau&nbsp;Asseyez-vous droit et r&eacute;duisez l'&eacute;blouissement de l'&eacute;cran en tenant votre ordinateur portable &agrave; la hauteur parfaite.&nbsp;Support de&nbsp;bureau debout simple pour ordinateur portable&nbsp;Tenez-vous debout et travaillez &agrave; n'importe quelle table - ce bureau debout ergonomique pour ordinateur portable soul&egrave;ve des &eacute;crans jusqu'&agrave; 18 \\\"et comprend un tapis de souris.</strong></p>\",\n \"caracteristique\" => \"<ul>\\r\\n<li>PLATEAU EN ALUMINIUM VENTIL&Eacute; - Garde votre ordinateur portable au frais et la l&egrave;vre avant &eacute;paisse maintiendra les ordinateurs portables de toute taille en place</li>\\r\\n<li>PLATEAU EN ALUMINIUM EXTRA LARGE - Permet de placer la souris, la tablette ou le t&eacute;l&eacute;phone &agrave; c&ocirc;t&eacute; de votre ordinateur portable pour un acc&egrave;s rapide et pratique.</li>\\r\\n<li>&nbsp;PIEDS ENTI&Egrave;REMENT R&Eacute;GLABLES - Faites pivoter &agrave; 360 degr&eacute;s et verrouillez-le &agrave; diff&eacute;rents angles. R&eacute;duisez rapidement le support pour le rendre portable.</li>\\r\\n<li>UTILISATIONS MULTIPLES - La table peut &eacute;galement &ecirc;tre utilis&eacute;e pour un plateau de d&icirc;ner TV, un projecteur, un bureau debout, un plateau de livre, un bureau et un support de tablette</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 33500,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 2,\n \"is_new\" => 0,\n \"product_image\" => \"M8lrHkipHhBwL5Wi9jBnHmX6h.jpg\",\n \"created_at\" => \"2021-06-05 00:45:45\",\n \"updated_at\" => \"2021-06-05 00:45:45\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 39,\n \"brand_id\" => 0,\n \"sku\" => \"AC008CL11BV75NAFAMZ\",\n \"name\" => \"Acer Tout En Un- 21\\\" Core I5 /8GB RAM/1TB HDD+256GB SSD Avec Clavier Souris Sans Fil\",\n \"slug\" => \"acer-tout-en-un-21-core-i5-8gb-ram1tb-hdd256gb-ssd-avec-clavier-souris-sans-fil\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 20,\n \"price\" => 600000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"UQI12ri7ezMY0DnKYlnYiWYmE.jpg\",\n \"created_at\" => \"2021-06-05 00:50:06\",\n \"updated_at\" => \"2021-06-05 00:50:06\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 40,\n \"brand_id\" => 0,\n \"sku\" => \"HP017EL0D0ET5NAFAMZ\",\n \"name\" => \"Hp �cran D'ordinateur 24es - 24\\\" - Noir/Gris\",\n \"slug\" => \"hp-ecran-dordinateur-24es-24-noirgris\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>23,8 pouces (60,4 cm)&nbsp;</li>\\r\\n<li>1920 x 1080 (Full HD)&nbsp;</li>\\r\\n<li>Affichage 7 ms (Standard)</li>\\r\\n<li>1 HDMI - 1 VGA (PC)</li>\\r\\n<li>Le + : Design &eacute;l&eacute;gant et sans contour d'&eacute;cran&nbsp;</li>\\r\\n</ul>\",\n \"quantity\" => 2,\n \"price\" => 139000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 1,\n \"is_new\" => 1,\n \"product_image\" => \"HX7EXaMVPVXDmkvWOjXoTHOLZ.jpg\",\n \"created_at\" => \"2021-06-05 00:52:00\",\n \"updated_at\" => \"2021-06-05 00:52:00\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 41,\n \"brand_id\" => 0,\n \"sku\" => \"HP017CL0IDX75NAFAMZ\",\n \"name\" => \"Hp Ordinateur De Bureau 290 G1 - 20 Pouces - Dual Core 500 Gb HDD - 4 Gb RAM -FreeDos - Noir\",\n \"slug\" => \"hp-ordinateur-de-bureau-290-g1-20-pouces-dual-core-500-gb-hdd-4-gb-ram-freedos-noir\",\n \"description\" => \"<ul>\\r\\n<li>Type de produit : Ordinateur De Bureau</li>\\r\\n<li>Mod&egrave;le : 290 G1</li>\\r\\n<li>Ecran : 20 Pouces&nbsp;</li>\\r\\n<li>Processeur: Intel Dual&nbsp; , 3.2 Ghz , 3 Mo de m&eacute;moire cache</li>\\r\\n<li>Stockage Disque dur : 500 Go</li>\\r\\n<li>M&eacute;moire Ram : 4 Go</li>\\r\\n<li>Syst&egrave;me d'exploitation : Free Dos (PC sans syst&egrave;me d'exploitation avec une version d'essai Windows 10 pr&eacute;-install&eacute;e valable 1 Mois)</li>\\r\\n<li>Lecteurs/Graveurs :&nbsp;</li>\\r\\n<li>Carte graphique: Intel HD Graphics</li>\\r\\n<li>Connectivit&eacute;s : 6xUSB 2.0 , 1xDVI , 1xVGA , 1xRJ-45 , 1xEntr&eacute;e Micro</li>\\r\\n<li>Clavier: USB , Azerty</li>\\r\\n<li>Souris: USB , Optique</li>\\r\\n<li>Dimensions : 35.5 x 16.5 x 35.9 cm</li>\\r\\n<li>Poids : 13 Kg</li>\\r\\n</ul>\",\n \"caracteristique\" => \"<p>Type de produit : Ordinateur De BureauMod&egrave;le : 290 G1Ecran : 20 Pouces&nbsp;Processeur: Intel Dual&nbsp; , 3.2 Ghz , 3 Mo de m&eacute;moire cacheStockage Disque dur : 500 GoM&eacute;moire Ram : 4 GoSyst&egrave;me d'exploitation : Free Dos (PC sans syst&egrave;me d'exploitation avec une version d'essai Windows 10 pr&eacute;-install&eacute;e valable 1 Mois)Lecteurs/Graveurs :&nbsp;Carte graphique: Intel HD GraphicsConnectivit&eacute;s : 6xUSB 2.0 , 1xDVI , 1xVGA , 1xRJ-45 , 1xEntr&eacute;e MicroClavier: USB , AzertySouris: USB , OptiqueDimensions : 35.5 x 16.5 x 35.9 cmPoids : 13 Kg</p>\",\n \"quantity\" => 6,\n \"price\" => 299000,\n \"sale_price\" => 289000,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 1,\n \"is_new\" => 0,\n \"product_image\" => \"wcKGcskQtAqNsUfiR1aUe9Lyn.jpg\",\n \"created_at\" => \"2021-06-05 00:55:08\",\n \"updated_at\" => \"2021-06-05 00:55:08\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 42,\n \"brand_id\" => 0,\n \"sku\" => \"CA011EL14AS6RNAFAMZ\",\n \"name\" => \"Canon PIXMA G2411 - Imprimante Jet D'Encre Multifonction - Noir\",\n \"slug\" => \"canon-pixma-g2411-imprimante-jet-dencre-multifonction-noir\",\n \"description\" => \"<p>Imprimez en haute qualit&eacute; gr&acirc;ce &agrave; la technologie FINE de Canon et au syst&egrave;me d'encre hybride, dot&eacute; d'un pigment noir pour des documents nets et de couleurs &agrave; base de colorants pour des photos &eacute;clatantes sans bordure jusqu'au format&nbsp;A4.Ce multifonction compact avec fonctions d'impression, de copie et de num&eacute;risation traite de grands volumes d'impression en toute simplicit&eacute; gr&acirc;ce &agrave; son syst&egrave;me d'encre&nbsp;FINE r&eacute;sistant. La solution id&eacute;ale pour les particuliers et les petites entreprises.</p>\",\n \"caracteristique\" => \"<ul>\\r\\n<li>Garantie</li>\\r\\n<li>Rendement &eacute;lev&eacute;</li>\\r\\n<li>Impression sans marge</li>\\r\\n<li>Alimentation papier arri&egrave;re</li>\\r\\n<li>R&eacute;servoirs d'encre int&eacute;gr&eacute;s</li>\\r\\n<li>Mise sous tension automatique</li>\\r\\n<li>&Eacute;cran LCD 1,2&rdquo;</li>\\r\\n<li>Syst&egrave;me d'encre hybride</li>\\r\\n<li>Texte noir extr&ecirc;mement net</li>\\r\\n<li>Environ 8,8&nbsp;ipm</li>\\r\\n<li>Vitesse d'impression en couleur</li>\\r\\n<li>Environ 5&nbsp;ipm</li>\\r\\n<li>Vitesse d'impression photo</li>\\r\\n<li>10&nbsp;&times;&nbsp;15&nbsp;cm sans marge&nbsp;: environ 60&nbsp;secondes</li>\\r\\n<li>Impression sans marge</li>\\r\\n<li>Oui (A4, Lettre, 20&nbsp;&times;&nbsp;25 cm, 13&nbsp;&times;&nbsp;18 cm, 13&nbsp;&times;&nbsp;13 cm,10&nbsp;&times;&nbsp;15 cm)</li>\\r\\n<li>Formats de papier<strong>&nbsp;:&nbsp;</strong>A4, A5, B5, 10&nbsp;&times;&nbsp;15&nbsp;cm, 13&nbsp;&times;&nbsp;18&nbsp;cm, 20&nbsp;&times;&nbsp;25&nbsp;cm, Enveloppes (DL, COM10], Lettre, L&eacute;gal</li>\\r\\n<li>Syst&egrave;mes d'exploitation pris en charge</li>\\r\\n<li>Windows&nbsp;10, Windows&nbsp;8.1, Windows&nbsp;7&nbsp;SP1</li>\\r\\n<li>.NET&nbsp;Framework&nbsp;4.5.2 ou&nbsp;4.6 est requis</li>\\r\\n<li>Courant alternatif&nbsp;: 100 &agrave; 240&nbsp;V, 50&nbsp;/&nbsp;60&nbsp;Hz</li>\\r\\n<li>Hors tension&nbsp;: environ 0,2&nbsp;W</li>\\r\\n<li>Mode veille (reli&eacute; &agrave; l'ordinateur en USB)&nbsp;: environ 0,6&nbsp;W (lampe de num&eacute;risation &eacute;teinte)</li>\\r\\n<li>Mode veille (tous les ports connect&eacute;s)&nbsp;: environ 0,6&nbsp;W (lampe de num&eacute;risation &eacute;teinte)</li>\\r\\n<li>D&eacute;lai de passage en mode de veille&nbsp;: 10&nbsp;min 48&nbsp;s</li>\\r\\n<li>Copie&nbsp;: environ 9 W&nbsp;</li>\\r\\n<li>Livr&eacute; sans c&acirc;ble</li>\\r\\n<li>Les cartouches couleurs ne sont pas livr&eacute;es.</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 148000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"By29ZGu4yqMW55Gm3o3RgxOrP.jpg\",\n \"created_at\" => \"2021-06-05 00:58:32\",\n \"updated_at\" => \"2021-06-05 00:58:32\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 43,\n \"brand_id\" => 0,\n \"sku\" => \"HP017EL0QFBK9NAFAMZ\",\n \"name\" => \"Hp Imprimante 2710 - Wifi - Impression - Photocopie - Scanner - Blanc\",\n \"slug\" => \"hp-imprimante-2710-wifi-impression-photocopie-scanner-blanc\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Type de sortie d'imprimante Monochrome</li>\\r\\n<li>Couleur Blanc</li>\\r\\n<li>Marque HP</li>\\r\\n<li>Type de m&eacute;dia d'impression Envelopes, Paper (plain)</li>\\r\\n<li>Type de connecteur Wi-Fi</li>\\r\\n<li>s&eacute;ries DeskJet 2710</li>\\r\\n<li>Syst&egrave;me d'exploitation MacOS 10.12 Sierra, MacOS 10.14 Mojave, Windows 7, MacOS 10.13 High Sierra</li>\\r\\n<li>Interface du mat&eacute;riel informatique USB 2.0</li>\\r\\n<li>Capacit&eacute; de stockage 512 MB</li>\\r\\n<li>Capacit&eacute; maximale en papier (entr&eacute;e) 60</li>\\r\\n</ul>\",\n \"quantity\" => 10,\n \"price\" => 550000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 3,\n \"is_new\" => 1,\n \"product_image\" => \"zy3gbhpPnQgWp0AIOPnBEHCUH.jpg\",\n \"created_at\" => \"2021-06-05 01:00:00\",\n \"updated_at\" => \"2021-06-05 01:00:00\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 44,\n \"brand_id\" => 0,\n \"sku\" => \"GE070EA1NDONRNAFAMZ\",\n \"name\" => \"Imprimante Thermique - 58mm Pour Re�u\",\n \"slug\" => \"imprimante-thermique-58mm-pour-recu\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Type de produit : Imprimante de Re&ccedil;us&nbsp;</li>\\r\\n<li>Vitesse d'impression: 90 mm / sec</li>\\r\\n<li>Largeur du papier: 58 mm</li>\\r\\n<li>Densit&eacute; d'impression: 384 points / ligne</li>\\r\\n<li>Papier d'impression &eacute;pais: 0,06-0,08 mm</li>\\r\\n<li>Type d'interface: USB</li>\\r\\n</ul>\",\n \"quantity\" => 2,\n \"price\" => 47000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 1,\n \"is_new\" => 1,\n \"product_image\" => \"ACk79yU5yk1QCc6a2uCX2W0WX.jpg\",\n \"created_at\" => \"2021-06-05 01:01:39\",\n \"updated_at\" => \"2021-06-05 01:01:39\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 45,\n \"brand_id\" => 0,\n \"sku\" => \"HP017EA0OYLBVNAFAMZ\",\n \"name\" => \"Hp Imprimante Multifonction HP LaserJet Pro M428fdw-BLANC\",\n \"slug\" => \"hp-imprimante-multifonction-hp-laserjet-pro-m428fdw-blanc\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Imprimante multifonction noir et blanc - Id&eacute;al pour les PME</li>\\r\\n<li>Impression, Copie, Num&eacute;risation, T&eacute;l&eacute;copie, E-mail</li>\\r\\n<li>Bac 1 : A4; A5; A6; B5 (JIS); Oficio (216 x 340 mm); 16K (195 x 270 mm); 16K (184 x 260 mm); 16K (197 x 273 mm); Enveloppe n&deg;10; Enveloppe Monarch; Enveloppe B5; Enveloppe C5; Enveloppe DL; Format personnalis&eacute;; Statement; Bacs d'alimentation 2 et 3 : A4; A5; A6; B5 (JIS); Oficio (216 x 340 mm); 16K (195 x 270 mm); 16K (184 x 260 mm); 16K (197 x 273 mm); Format personnalis&eacute;; A5-R; B6 (JIS)</li>\\r\\n<li>1 port USB 2.0 haut d&eacute;bit; 1 port h&ocirc;te USB arri&egrave;re; 1 port USB avant; R&eacute;seau Gigabit Ethernet LAN 10/100/1000 BASE-T; 802.11b/g/n/2.4/5 GHZ Radio Wi-Fi</li>\\r\\n<li>Jusqu'&agrave; 80 000 page</li>\\r\\n</ul>\",\n \"quantity\" => 15,\n \"price\" => 290000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 5,\n \"is_new\" => 1,\n \"product_image\" => \"ixc7tItCStOBpTr2XoCH4D9VW.jpg\",\n \"created_at\" => \"2021-06-05 01:03:18\",\n \"updated_at\" => \"2021-06-05 01:03:18\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 46,\n \"brand_id\" => 0,\n \"sku\" => \"CA011EL0B4MR6NAFAMZ\",\n \"name\" => \"Canon Imprimante Multifonction Canon TS3140 Wi-Fi - InkJet MFP / A4 / 8 Ppm - Noir\",\n \"slug\" => \"canon-imprimante-multifonction-canon-ts3140-wi-fi-inkjet-mfp-a4-8-ppm-noir\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>ype de produit : Imprimante</li>\\r\\n<li>Mod&egrave;le : TS3140</li>\\r\\n<li>Fonctions : Wi-Fi, Impression, copie, num&eacute;risation, cloud</li>\\r\\n<li>Technologie d'impression : jet d'encre</li>\\r\\n<li>Nombre de cartouches d'impression : 2 cartouches FINE (noir et couleur)</li>\\r\\n<li>Ecran LCD de 3,8 cm monochrome</li>\\r\\n<li>Vitesse d'impression : Jusqu'&agrave; 7,7 ppm Noir ISO (A4], Jusqu'&agrave; 4 ppm Couleur ISO (A4)</li>\\r\\n<li>Recto-verso : Manuel</li>\\r\\n<li>Impression sans bordure : Oui (13x18cm, 10x15cm, 13x13cm)</li>\\r\\n<li>R&eacute;solution d'impression : jusqu'&agrave; 4800 x 1200 ppp</li>\\r\\n</ul>\",\n \"quantity\" => 12,\n \"price\" => 55000,\n \"sale_price\" => 47350,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"s40cxvR9xkLFiqoKgbWmEavme.jpg\",\n \"created_at\" => \"2021-06-05 01:04:45\",\n \"updated_at\" => \"2021-06-05 01:04:45\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 47,\n \"brand_id\" => 0,\n \"sku\" => \"GE070EA0C97WLNAFAMZ\",\n \"name\" => \"Imprimante De Re�us Thermique Mini USB + Bluetooth\",\n \"slug\" => \"imprimante-de-recus-thermique-mini-usb-bluetooth\",\n \"description\" => NULL,\n \"caracteristique\" => \"<ul>\\r\\n<li>Impression sans fil.</li>\\r\\n<li>Large compatibilit&eacute;.</li>\\r\\n<li>Multi Codes pris en charge.</li>\\r\\n<li>Batterie 1800mAh.</li>\\r\\n<li>Mini taille.</li>\\r\\n<li>Op&eacute;ration facile.</li>\\r\\n<li>Impression thermique.</li>\\r\\n<li>Contr&ocirc;le du t&eacute;l&eacute;phone intelligent.</li>\\r\\n</ul>\",\n \"quantity\" => 12,\n \"price\" => 29690,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 3,\n \"is_new\" => 1,\n \"product_image\" => \"peAXLpyqsdsFHHSq6W1ZnDQ0S.jpg\",\n \"created_at\" => \"2021-06-05 01:06:34\",\n \"updated_at\" => \"2021-06-05 01:06:34\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 48,\n \"brand_id\" => 0,\n \"sku\" => \"CA011EL0JZ49TNAFAMZ\",\n \"name\" => \"Canon Imprimante Multifonction Canon TS3140 Wi-Fi - Noir\",\n \"slug\" => \"canon-imprimante-multifonction-canon-ts3140-wi-fi-noir\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 15,\n \"price\" => 39600,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"8a5QJISNTsJFGoLEapSaB8H1y.jpg\",\n \"created_at\" => \"2021-06-05 01:08:19\",\n \"updated_at\" => \"2021-06-05 01:08:19\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 49,\n \"brand_id\" => 0,\n \"sku\" => \"HP017EA03KUM1NAFAMZ\",\n \"name\" => \"Hp Imprimante HP Laser Couleur 150a - BLANC\",\n \"slug\" => \"hp-imprimante-hp-laser-couleur-150a-blanc\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 10,\n \"price\" => 126000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"xkMBqfqwSME9O5YIHWM35V9YR.jpg\",\n \"created_at\" => \"2021-06-05 01:12:21\",\n \"updated_at\" => \"2021-06-05 01:12:21\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 50,\n \"brand_id\" => 0,\n \"sku\" => \"HP017EL1CHRMQNAFAMZ\",\n \"name\" => \"Hp Imprimante Multifonction LaserJet Pro MFP M130a - Blanc\",\n \"slug\" => \"hp-imprimante-multifonction-laserjet-pro-mfp-m130a-blanc\",\n \"description\" => NULL,\n \"caracteristique\" => NULL,\n \"quantity\" => 3,\n \"price\" => 139000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 0,\n \"stock\" => 2,\n \"is_new\" => 1,\n \"product_image\" => \"NpGiV7a3Vsccz3AbSmP70J4ZA.jpg\",\n \"created_at\" => \"2021-06-05 01:13:55\",\n \"updated_at\" => \"2021-06-05 01:13:55\",\n \"height\" => NULL,\n ],\n [\n \"id\" => 51,\n \"brand_id\" => 0,\n \"sku\" => \"GE070EA0507G3NAFAMZ\",\n \"name\" => \"Kit Recharge D'Encre 4 Couleurs 100ml - Noir/Rouge/Jaune/Bleu\",\n \"slug\" => \"kit-recharge-dencre-4-couleurs-100ml-noirrougejaunebleu\",\n \"description\" => \"<p><strong>REV&nbsp;&lsquo;COLOR</strong>, l&rsquo;encre universelle premium haute qualit&eacute; pour toutes vos impressions.</p>\\r\\n<p>Optez pour notre encre et soyez productif. Nous vous proposons un pack de 4 couleurs pour imprimantes jet d&rsquo;encre compatibles HP, Canon, Epson et Brother.</p>\\r\\n<p>Vous m&eacute;ritez le meilleur, choisissez&nbsp;<strong>REV&rsquo;COLOR</strong>&nbsp;et imprimez vos id&eacute;es.</p>\\r\\n<p><strong>REV&rsquo;COLOR</strong>&nbsp;est une marque sp&eacute;cialis&eacute;e dans la fabrication, la distribution et la vente d&rsquo;encre et consommables pour l&rsquo;impression.</p>\",\n \"caracteristique\" => NULL,\n \"quantity\" => 120,\n \"price\" => 35000,\n \"sale_price\" => NULL,\n \"status\" => 1,\n \"featured\" => 1,\n \"stock\" => 3,\n \"is_new\" => 1,\n \"product_image\" => \"D1nK1y2rIKWjUlxeNnveqoScD.jpg\",\n \"created_at\" => \"2021-06-05 01:16:04\",\n \"updated_at\" => \"2021-06-05 01:27:01\",\n \"height\" => NULL,\n ],\n ];\n\n foreach($products as $product){\n Product::create($product);\n }\n\n\n $product_images = [\n [\n \"id\" => 17,\n \"product_id\" => 13,\n \"full\" => \"bYYUncxRMpMjLrv5jj7aNhiAL.jpg\",\n \"created_at\" => \"2021-06-03 10:49:27\",\n \"updated_at\" => \"2021-06-03 10:49:27\",\n ],\n [\n \"id\" => 21,\n \"product_id\" => 10,\n \"full\" => \"UjvkBOm4xiZM1JZMzBeYUOiLu.jpg\",\n \"created_at\" => \"2021-06-03 13:47:58\",\n \"updated_at\" => \"2021-06-03 13:47:58\",\n ],\n [\n \"id\" => 22,\n \"product_id\" => 10,\n \"full\" => \"1nEIIxhGsEMz2ktOCM3yPJgaz.jpg\",\n \"created_at\" => \"2021-06-03 13:47:59\",\n \"updated_at\" => \"2021-06-03 13:47:59\",\n ],\n [\n \"id\" => 23,\n \"product_id\" => 10,\n \"full\" => \"l2gXNNEk43Kv3DcicRsexS2Vx.jpg\",\n \"created_at\" => \"2021-06-03 13:48:01\",\n \"updated_at\" => \"2021-06-03 13:48:01\",\n ],\n [\n \"id\" => 24,\n \"product_id\" => 10,\n \"full\" => \"YYb5qvFY1G25lfUDxZ1gn6rEl.jpg\",\n \"created_at\" => \"2021-06-03 13:56:12\",\n \"updated_at\" => \"2021-06-03 13:56:12\",\n ],\n [\n \"id\" => 25,\n \"product_id\" => 10,\n \"full\" => \"TA3lU2hPdDoE684ytxUpWqwdx.jpg\",\n \"created_at\" => \"2021-06-03 13:56:14\",\n \"updated_at\" => \"2021-06-03 13:56:14\",\n ],\n [\n \"id\" => 26,\n \"product_id\" => 10,\n \"full\" => \"c5KQpap58cWvScIdZ6Y67fBgO.jpg\",\n \"created_at\" => \"2021-06-03 13:56:16\",\n \"updated_at\" => \"2021-06-03 13:56:16\",\n ],\n ];\n\n foreach($product_images as $image){\n ProductImage::create($image);\n }\n\n\n $product_categories = [\n [\n \"id\" => 1,\n \"category_id\" => 4,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 2,\n \"category_id\" => 9,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 3,\n \"category_id\" => 9,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 4,\n \"category_id\" => 12,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 5,\n \"category_id\" => 9,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 6,\n \"category_id\" => 12,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 7,\n \"category_id\" => 16,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 8,\n \"category_id\" => 4,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 9,\n \"category_id\" => 12,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 10,\n \"category_id\" => 4,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 11,\n \"category_id\" => 9,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 12,\n \"category_id\" => 4,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 13,\n \"category_id\" => 9,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 14,\n \"category_id\" => 4,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 15,\n \"category_id\" => 9,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 16,\n \"category_id\" => 4,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 17,\n \"category_id\" => 9,\n \"product_id\" => NULL,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 18,\n \"category_id\" => 4,\n \"product_id\" => 10,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 19,\n \"category_id\" => 9,\n \"product_id\" => 10,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 20,\n \"category_id\" => 12,\n \"product_id\" => 10,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 21,\n \"category_id\" => 4,\n \"product_id\" => 11,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 22,\n \"category_id\" => 9,\n \"product_id\" => 11,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 23,\n \"category_id\" => 12,\n \"product_id\" => 11,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 24,\n \"category_id\" => 4,\n \"product_id\" => 13,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 25,\n \"category_id\" => 9,\n \"product_id\" => 13,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 26,\n \"category_id\" => 12,\n \"product_id\" => 13,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 27,\n \"category_id\" => 4,\n \"product_id\" => 14,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 28,\n \"category_id\" => 9,\n \"product_id\" => 14,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 29,\n \"category_id\" => 14,\n \"product_id\" => 14,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 30,\n \"category_id\" => 4,\n \"product_id\" => 15,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 31,\n \"category_id\" => 9,\n \"product_id\" => 15,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 32,\n \"category_id\" => 15,\n \"product_id\" => 15,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 33,\n \"category_id\" => 17,\n \"product_id\" => 16,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 34,\n \"category_id\" => 18,\n \"product_id\" => 16,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 35,\n \"category_id\" => 22,\n \"product_id\" => 16,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 36,\n \"category_id\" => 17,\n \"product_id\" => 17,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 37,\n \"category_id\" => 18,\n \"product_id\" => 17,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 38,\n \"category_id\" => 21,\n \"product_id\" => 17,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 39,\n \"category_id\" => 17,\n \"product_id\" => 18,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 40,\n \"category_id\" => 18,\n \"product_id\" => 18,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 41,\n \"category_id\" => 21,\n \"product_id\" => 18,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 42,\n \"category_id\" => 17,\n \"product_id\" => 19,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 43,\n \"category_id\" => 18,\n \"product_id\" => 19,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 44,\n \"category_id\" => 21,\n \"product_id\" => 19,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 45,\n \"category_id\" => 17,\n \"product_id\" => 21,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 46,\n \"category_id\" => 18,\n \"product_id\" => 21,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 47,\n \"category_id\" => 21,\n \"product_id\" => 21,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 48,\n \"category_id\" => 17,\n \"product_id\" => 22,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 49,\n \"category_id\" => 18,\n \"product_id\" => 22,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 50,\n \"category_id\" => 21,\n \"product_id\" => 22,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 51,\n \"category_id\" => 17,\n \"product_id\" => 23,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 52,\n \"category_id\" => 18,\n \"product_id\" => 23,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 53,\n \"category_id\" => 22,\n \"product_id\" => 23,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 54,\n \"category_id\" => 17,\n \"product_id\" => 24,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 55,\n \"category_id\" => 18,\n \"product_id\" => 24,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 56,\n \"category_id\" => 22,\n \"product_id\" => 24,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 57,\n \"category_id\" => 17,\n \"product_id\" => 25,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 58,\n \"category_id\" => 18,\n \"product_id\" => 25,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 59,\n \"category_id\" => 22,\n \"product_id\" => 25,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 60,\n \"category_id\" => 17,\n \"product_id\" => 26,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 61,\n \"category_id\" => 18,\n \"product_id\" => 26,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 62,\n \"category_id\" => 22,\n \"product_id\" => 26,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 63,\n \"category_id\" => 17,\n \"product_id\" => 27,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 64,\n \"category_id\" => 18,\n \"product_id\" => 27,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 65,\n \"category_id\" => 22,\n \"product_id\" => 27,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 66,\n \"category_id\" => 48,\n \"product_id\" => 28,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 67,\n \"category_id\" => 49,\n \"product_id\" => 28,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 68,\n \"category_id\" => 50,\n \"product_id\" => 28,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 69,\n \"category_id\" => 48,\n \"product_id\" => 29,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 70,\n \"category_id\" => 49,\n \"product_id\" => 29,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 71,\n \"category_id\" => 50,\n \"product_id\" => 29,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 72,\n \"category_id\" => 48,\n \"product_id\" => 30,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 73,\n \"category_id\" => 49,\n \"product_id\" => 30,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 74,\n \"category_id\" => 50,\n \"product_id\" => 30,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 75,\n \"category_id\" => 48,\n \"product_id\" => 31,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 76,\n \"category_id\" => 49,\n \"product_id\" => 31,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 77,\n \"category_id\" => 50,\n \"product_id\" => 31,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 78,\n \"category_id\" => 48,\n \"product_id\" => 32,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 79,\n \"category_id\" => 49,\n \"product_id\" => 32,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 80,\n \"category_id\" => 50,\n \"product_id\" => 32,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 81,\n \"category_id\" => 48,\n \"product_id\" => 33,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 82,\n \"category_id\" => 49,\n \"product_id\" => 33,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 83,\n \"category_id\" => 50,\n \"product_id\" => 33,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 84,\n \"category_id\" => 48,\n \"product_id\" => 34,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 85,\n \"category_id\" => 49,\n \"product_id\" => 34,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 86,\n \"category_id\" => 52,\n \"product_id\" => 34,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 87,\n \"category_id\" => 48,\n \"product_id\" => 35,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 88,\n \"category_id\" => 49,\n \"product_id\" => 35,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 89,\n \"category_id\" => 52,\n \"product_id\" => 35,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 90,\n \"category_id\" => 48,\n \"product_id\" => 36,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 91,\n \"category_id\" => 49,\n \"product_id\" => 36,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 92,\n \"category_id\" => 52,\n \"product_id\" => 36,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 93,\n \"category_id\" => 48,\n \"product_id\" => 37,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 94,\n \"category_id\" => 49,\n \"product_id\" => 37,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 95,\n \"category_id\" => 52,\n \"product_id\" => 37,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 96,\n \"category_id\" => 48,\n \"product_id\" => 38,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 97,\n \"category_id\" => 49,\n \"product_id\" => 38,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 98,\n \"category_id\" => 52,\n \"product_id\" => 38,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 99,\n \"category_id\" => 60,\n \"product_id\" => 38,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 100,\n \"category_id\" => 65,\n \"product_id\" => 38,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 101,\n \"category_id\" => 48,\n \"product_id\" => 40,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 102,\n \"category_id\" => 49,\n \"product_id\" => 40,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 103,\n \"category_id\" => 52,\n \"product_id\" => 40,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 104,\n \"category_id\" => 53,\n \"product_id\" => 40,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 105,\n \"category_id\" => 48,\n \"product_id\" => 41,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 106,\n \"category_id\" => 49,\n \"product_id\" => 41,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 107,\n \"category_id\" => 50,\n \"product_id\" => 41,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 108,\n \"category_id\" => 48,\n \"product_id\" => 42,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 109,\n \"category_id\" => 54,\n \"product_id\" => 42,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 110,\n \"category_id\" => 55,\n \"product_id\" => 42,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 111,\n \"category_id\" => 48,\n \"product_id\" => 43,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 112,\n \"category_id\" => 54,\n \"product_id\" => 43,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 113,\n \"category_id\" => 56,\n \"product_id\" => 43,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 114,\n \"category_id\" => 48,\n \"product_id\" => 44,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 115,\n \"category_id\" => 54,\n \"product_id\" => 44,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 116,\n \"category_id\" => 56,\n \"product_id\" => 44,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 117,\n \"category_id\" => 48,\n \"product_id\" => 45,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 118,\n \"category_id\" => 54,\n \"product_id\" => 45,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 119,\n \"category_id\" => 56,\n \"product_id\" => 45,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 120,\n \"category_id\" => 48,\n \"product_id\" => 46,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 121,\n \"category_id\" => 54,\n \"product_id\" => 46,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 122,\n \"category_id\" => 56,\n \"product_id\" => 46,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 123,\n \"category_id\" => 48,\n \"product_id\" => 47,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 124,\n \"category_id\" => 54,\n \"product_id\" => 47,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 125,\n \"category_id\" => 55,\n \"product_id\" => 47,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 126,\n \"category_id\" => 48,\n \"product_id\" => 48,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 127,\n \"category_id\" => 54,\n \"product_id\" => 48,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 128,\n \"category_id\" => 55,\n \"product_id\" => 48,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 129,\n \"category_id\" => 48,\n \"product_id\" => 49,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 130,\n \"category_id\" => 54,\n \"product_id\" => 49,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 131,\n \"category_id\" => 55,\n \"product_id\" => 49,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 132,\n \"category_id\" => 48,\n \"product_id\" => 50,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 133,\n \"category_id\" => 54,\n \"product_id\" => 50,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 134,\n \"category_id\" => 55,\n \"product_id\" => 50,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 135,\n \"category_id\" => 48,\n \"product_id\" => 51,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 136,\n \"category_id\" => 54,\n \"product_id\" => 51,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n [\n \"id\" => 137,\n \"category_id\" => 56,\n \"product_id\" => 51,\n \"created_at\" => NULL,\n \"updated_at\" => NULL,\n ],\n ];\n\n\n foreach($product_categories as $item){\n DB::table('product_categories')->insert($item);\n }\n }", "title": "" }, { "docid": "bbeb41dcbd25f96f916342324694cfe7", "score": "0.59864795", "text": "public function cart()\n {\n //Check Auth get product show\n if(Auth::check())\n {\n $user_email = Auth::user()->email;\n $userCart = Cart::where('user_email', $user_email)->get();\n $userCartCount = Cart::where('user_email', $user_email)->count();\n }else {\n $session_id = Session::get('session_id');\n $userCart = Cart::where('session_id', $session_id)->get();\n $userCartCount = Cart::where('session_id', $session_id)->count();\n }\n\n foreach($userCart as $key => $value) {\n $productDetail = Product::where('id', $value->product_id)->first();\n $userCart[$key]->image = $productDetail->image;\n }\n\n return view('products.cart', with(['userCart' => $userCart, 'userCartCount' => $userCartCount]));\n }", "title": "" }, { "docid": "6e40e0623fd4504355360cd5b4a82f72", "score": "0.59807545", "text": "protected function prepareProducts()\n {\n if (!empty($this->data['products'])) {\n $productsSelections = $this->data['products'];\n $this->data['products'] = [];\n foreach ($productsSelections as $index => $products) {\n $productSelection = [];\n foreach ($products as $key => $product) {\n if ($product instanceof FixtureInterface) {\n $productSelection[$key] = $product;\n continue;\n }\n list($fixture, $dataset) = explode('::', $product);\n $productSelection[$key] = $this->fixtureFactory->createByCode($fixture, ['dataset' => $dataset]);\n $productSelection[$key]->persist();\n $this->data['bundle_options'][$index]['assigned_products'][$key]['search_data']['name'] =\n $productSelection[$key]->getName();\n }\n $this->data['products'][] = $productSelection;\n }\n }\n }", "title": "" }, { "docid": "46b989d7976a77599e176dfd7b554856", "score": "0.59800595", "text": "function productsCart() {\n\n try {\n $output = \"\";\n $i = 0;\n $quantityArray = isset($_SESSION['quantityArray']) ? $_SESSION['quantityArray'] : array();\n\n // ######## please do not alter the following code ########\n $products = [\n [ \"name\" => \"Sledgehammer\", \"price\" => 125.75 ],\n [ \"name\" => \"Axe\", \"price\" => 190.50 ],\n [ \"name\" => \"Bandsaw\", \"price\" => 562.131 ],\n [ \"name\" => \"Chisel\", \"price\" => 12.9 ],\n [ \"name\" => \"Hacksaw\", \"price\" => 18.45 ],\n ];\n // ########################################################\n\n //set action to null by default\n if(!isset($_POST[\"action\"])){\n $_POST[\"action\"] = null;\n }\n\n //check if new product is added\n if($_POST[\"action\"] == \"add_product\"){\n\n if(!($_POST[\"productName\"]) || !isset($_POST[\"productPrice\"])){\n throw new Exception(\"Cannot Add Product Information Missing\");\n } else if(array_search($_POST[\"productName\"], array_column($products, 'name'))){\n throw new Exception(\"Product Already Exists\");\n }\n\n array_push($products,[\"name\"=>$_POST[\"productName\"],\"price\"=>$_POST[\"productPrice\"]]);\n }\n\n if(empty($products)){\n throw new Exception(\"No Products Found\");\n }\n\n foreach ($products as $product) { //note: quantity array could be merged to products array before this loop.\n $output .= \"<table id='cart'>\";\n if (!isset($quantityArray[$i])){\n $quantityArray[$i] = ['quantity' => 0];\n }\n\n $output .= \"<tr><th>Name</th><th>Price</th><th>Add/Remove</th><th>Quantity</th><th>Total Price</th></tr>\";\n\n $output .= \"<tr id=\".$i.\">\";\n $output .= \"<td>\" . $product['name'] . \"</td>\";\n $output .= \"<td>\" . number_format($product['price'],2) . \"</td>\"; //format prices 2 decimals\n $output .= \"<td> <a onClick='cartAction('add','\".$i.\"')' class='btnAddProduct cart-action'>+</a> \n / <a onClick='cartAction('remove','\".$i.\"')' class='btnRemoveProduct cart-action'>-<a/></td>\";\n $output .= \"<td><p id='total_quantity_\".$i.\"'>\". isset($_POST[\"action\"]) ? $this->changeQuantity($quantityArray[$i]['quantity']) : $quantityArray[$i] .\"</p></td></tr>\";\n $output .= \"<td><p id='total_price_\".$i.\"'>\". ($quantityArray[$i]['quantity'] * $product['price']) .\"</p></td></tr>\";\n $i++;\n }\n\n //count overall value of products in cart.\n $output .= \"<tr><td>Overall Total Products: \". json_encode(array_count_values(array_column($quantityArray, 'quantity'))).\"</tr>\";\n $output .= \"</table>\";\n\n //set session variables and return output\n $_SESSION['quantityArray'] = $quantityArray;\n echo $_SESSION[\"output\"] = !isset($_SESSION[\"output\"] ) ? $output : $_SESSION[\"output\"] ;\n } catch (Exception $e){\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "77a0c955e465cade9d140e9200fc4893", "score": "0.5979999", "text": "public function checkProducts($products){\n $list = explode('@',$products);\n $txt=\"\";\n $product_array=[];\n foreach ($list as $item){\n if(!empty($item)){\n $product_array[]=$item;\n }\n }\n $item_array=[];\n $id_array=[];\n $count = 0;\n foreach ($product_array as $item){\n\n $dz = explode('x',$item);\n $item_array[$count]['product']=Product::find($dz[0]);\n\n $item_array[$count]['variant']=Variant::find($dz[1]);\n\n\n $item_array[$count]['qty']=$dz[2];\n\n $count++;\n }\n\n\n // echo $count.\"----\";\n return $item_array;\n }", "title": "" }, { "docid": "3bf9f4d2766639f4aa2a0cc3760f1bfd", "score": "0.5978191", "text": "public function toArray($request)\n {\n $cart = Cart::find($this->id);\n $name = $cart->product->name;\n return [\n 'id' => $this->id,\n 'member_id' => $this->member_id,\n //'tag_line' => str_limit($this->description, 20),\n 'product_imagename' =>$cart->product->imagename,\n 'product_id' => $this->product_id,\n 'quantity' => $this->quantity,\n 'price' => $this->price,\n 'product_name' => $name,\n //'date' => $this->updated_at->format('Y/m/d'),\n 'created_at' => $this->created_at->format('Y/m/d H:i:s'),\n 'updated_at' => $this->updated_at->format('Y/m/d H:i:s'),\n ];\n }", "title": "" }, { "docid": "246e3e916f704a3edfff615cefa7d91c", "score": "0.59708005", "text": "public function listProducts();", "title": "" }, { "docid": "45c3b1ec838751080cb896d92dd05be8", "score": "0.5958944", "text": "public function run()\n {\n $products = [\n 'MLB745492667' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope'],\n 'MLB715368636' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB766610032' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB730692107' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB779807469' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB692639517' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB693789740' => ['Prince', 'Ramblewood', 'Theatre', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB729467275' => ['Prince', 'Ramblewood', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB702240801' => ['Prince', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB683514949' => ['Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB682162059' => ['Prince', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB706657627' => ['Prince', 'Ramblewood', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB744358565' => ['Prince', 'Ramblewood', 'Theatre', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB695553122' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB761872754' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB753759929' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB730391628' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB760674765' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB753535111' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Tailwater', 'Thatcher'],\n 'MLB729218311' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Thatcher'],\n 'MLB729712312' => ['Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB795270644' => ['Prince', 'Ramblewood', 'Central', 'Beacon', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB752410290' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Addison', 'Arnold', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB688984049' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Sunnyslope', 'Canal', 'Tailwater', 'Thatcher'],\n 'MLB780697998' => ['Prince', 'Ramblewood', 'Theatre', 'Arch', 'Central', 'Beacon', 'Addison', 'Arnold', 'Tailwater', 'Thatcher'],\n ];\n\n foreach($products as $sku => $stores) {\n\n $product = Product::where('sku','like',$sku)->first();\n\n foreach($stores as $code) {\n $store = Store::where('code','LIKE',$code)->first();\n $product->stores()->save($store);\n }\n }\n }", "title": "" }, { "docid": "09fb45c350ece781d624a6571ebd0b3c", "score": "0.59502363", "text": "public function getAllProducts();", "title": "" }, { "docid": "0c86eeb0d572e55e95d8626c721f6c31", "score": "0.59477437", "text": "public function get_cart() {\n\n\t\t$cart_ids = array();\n\t\t$items = WC()->cart->get_cart();\n\n\t\tif ( ! empty( $items ) ) {\n\t\t\tforeach ( $items as $cart_item ) {\n\t\t\t\tif ( ! in_array( $cart_item['product_id'], $cart_ids, true ) ) {\n\t\t\t\t\tarray_push( $cart_ids, $cart_item['product_id'] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\theader( 'Content-Type: application/json' );\n\t\twp_die( wp_json_encode( $cart_ids ) );\n\t}", "title": "" }, { "docid": "23e85e3f3787b13fcd616bdd31b5fd79", "score": "0.5943729", "text": "function getCartItems(){\n $product_array = array();\n\n //create an instance of the product class\n $product_object = new Cart();\n\n //run the search product method\n $ip = get_client_ip();\n $product_records = $product_object->getCartItems($ip);\n\n //check if the method worked\n if ($product_records) {\n\n //loop to see if there is more than one result\n //fetch one at a time\n while ($one_record = $product_object->db_fetch()) {\n\n //Assign each result to the array\n $product_array[] = $one_record;\n }\n }\n //return the array\n return $product_array;\n\n}", "title": "" }, { "docid": "05b0c16aef03457bc543d5e7936d6045", "score": "0.5938677", "text": "public function createProduct($products) {\n if (!empty($products)) {\n // $this->writeLog(print_r($products, true));\n \t$error = false;\n $response = [];\n \n $websiteId = (int) $this->storeManager->getStore()->getWebsiteId();\n $storeId = (int) $this->storeManager->getStore()->getStoreId();\n\n if($storeId == 1){\n $storeId = 0;\n }\n\n // $this->writeLog(\"WebsiteId: \" . $websiteId);\n // $this->writeLog(\"StoreId: \" . $storeId);\n foreach ($products as $product) {\n $exist = $this->productFactory->create()->getIdBySku($product['sku']);\n if($exist){\n // $this->writeLog('id: ' . $exist);\n $response[] = ['exists' => true, 'sku' => $product['sku']];\n continue;\n }\n \t\ttry {\n $sku = $product['sku'];\n $description = $product['description'];\n $name = $product['name'];\n \t \t$price = $product['price'];\n $special_price = $product['special_price'];\n $cost_price = $product['cost_price'];\n $short_description = $product['short_description'];\n $status = $product['status'];\n $weight = $product['weight'];\n \t \t$qty = $product['qty'];\n $min_sale_qty = $product['min_sale_qty'];\n $max_sale_qty = $product['max_sale_qty'];\n $is_in_stock = $product['is_in_stock'];\n $manage_stock = $product['manage_stock'];\n $url_key = $this->createUrlKey($name, $sku, $storeId);\n\n // $this->writeLog(\"url key: \" . $url_key);\n\n if($product['image'] != \"\"){\n // Get Image from URL\n $imageUrl = $product['image'];\n $tmpDir = $this->getMediaDirTmpDir();\n $this->_file->checkAndCreateFolder($tmpDir);\n $newFileName = $tmpDir . baseName($imageUrl);\n $imageName = pathinfo($newFileName)['basename'];\n // $this->writeLog(\"new file name: \" . $newFileName);\n \n $result = $this->_file->read($imageUrl, $newFileName);\n // $this->writeLog(\"Result Image: \" . $result);\n }\n\n $creatProduct = $this->productFactory->create();\n $creatProduct->setTypeId(\"simple\"); // type of product you're importing\n $creatProduct->setStatus($status); // 1 = enabled\n $creatProduct->setAttributeSetId(4); // In Magento 2.2 attribute set id 4 is the Default attribute set (this may vary in other versions)\n $creatProduct->setName($name);\n $creatProduct->setSku($sku);\n $creatProduct->setPrice($price);\n $creatProduct->setSpecialPrice($special_price);\n $creatProduct->setCost($cost_price);\n if(strpos($imageName, \".jpg\", -4) !== false || strpos($imageName, \".png\", -4) !== false || strpos($imageName, \".jpeg\", -5) !== false){\n // Add Image From URL\n $creatProduct->addImageToMediaGallery($this->_dir->getPath('media') . DIRECTORY_SEPARATOR . pathinfo($newFileName)['basename'], array('image', 'small_image', 'thumbnail'), false, false);\n }\n // Add Image From Media Directory\n // $creatProduct->addImageToMediaGallery($this->_dir->getPath('media') . DIRECTORY_SEPARATOR . pathinfo($image)['basename'], array('image', 'small_image', 'thumbnail'), false, false);\n\n $creatProduct->setTaxClassId(2); // 0 = None, 2 = Taxable Goods\n $creatProduct->setDescription($description);\n $creatProduct->setWeight($weight);\n $creatProduct->setShortDescription($short_description);\n $creatProduct->setUrlKey($url_key);\n $creatProduct->setWebsiteIds(array($websiteId));\n $creatProduct->setStoreId($storeId);\n $creatProduct->setVisibility(4); // 4 = Catalog & Search\n $creatProduct->setStockData(array('manage_stock' => $manage_stock, 'is_in_stock' => $is_in_stock, 'qty' => $qty, 'min_sale_qty' => $min_sale_qty, 'max_sale_qty' => $max_sale_qty));\n \n \t try {\n // Save Product\n $proSave = $this->productRepository->save($creatProduct);\n $response[] = ['success' => true, 'id' => $creatProduct->getId(), 'sku' => $creatProduct->getSku(), 'name' => $creatProduct->getName()];\n $this->writeLog('New Product Created, SKU: ' . $sku);\n\n\t\t\t } catch (\\Magento\\Framework\\Exception\\StateException $e) {\n $this->writeLog('Cannot save product ' . $e->getMessage());\n\t\t\t throw new StateException(__('Cannot save product.'));\n\t\t\t }\n\t\t\t\t} catch (\\Magento\\Framework\\Exception\\LocalizedException $e) {\n\t $messages[] = $product['sku'].' =>'.$e->getMessage();\n\t $error = true;\n\t }\n unset($creatProduct);\n }\n if ($error) {\n\t $this->writeLog(implode(\" || \",$messages));\n\t return false;\n\t }\n }\n\n // $data = json_encode($response, true);\n // $data = print_r($data);\n $this->writeLog(print_r($response, true));\n return $response;\n }", "title": "" }, { "docid": "9795e88e2b98b25f410e5d10e8ecfda3", "score": "0.5937343", "text": "public function run()\n {\n //\n $products =[\n [\n 'id' => 1,\n 'title' => 'Miel d\\'oranger biologique - 500 g',\n 'slug' => 'Mielpéi a- 974',\n 'subtitle' => 'Mielpéi oranger - 974',\n 'description' => 'Miel certifié agriculture biologique\n Pour la santé et pour le plaisir de toute la famille\n Plante mellifère sélectionnée pour ses bienfaits reconnus',\n 'price' => 10,\n 'image' => 'https://via.placeholder.com/200x250',\n ], \n [\n 'id' => 2,\n 'title' => 'Miel de thym biologique - 500 g',\n 'slug' => 'Mielpéi b- 974',\n 'subtitle' => 'Mielpéi citronnier - 974',\n 'description' => 'Miel certifié agriculture biologique\n Pour la santé et pour le plaisir de toute la famille\n Plante mellifère sélectionnée pour ses bienfaits reconnus',\n 'price' => 10,\n 'image' => 'https://via.placeholder.com/200x250',\n ], \n [\n 'id' => 3,\n 'title' => 'Miel d\\'eucalyptus biologique - 500 g',\n 'slug' => 'Mielpéi c- 974',\n 'subtitle' => 'Mielpéi alaska- 974',\n 'description' => 'Miel certifié agriculture biologique\n Pour la santé et pour le plaisir de toute la famille\n Plante mellifère sélectionnée pour ses bienfaits reconnus',\n 'price' => 10,\n 'image' => 'https://via.placeholder.com/200x250',\n ], \n [\n 'id' => 4,\n 'title' => 'Miel de citronier biologique - 500 g',\n 'slug' => 'Mielpéi d- 974',\n 'subtitle' => 'Mielpéi azur- 974',\n 'description' => 'Miel certifié agriculture biologique\n Pour la santé et pour le plaisir de toute la famille\n Plante mellifère sélectionnée pour ses bienfaits reconnus',\n 'price' => 10,\n 'image' => 'https://via.placeholder.com/200x250',\n ], \n [\n 'id' => 5,\n 'title' => 'Miel de romarin biologique - 500 g',\n 'slug' => 'Mielpéi e- 974',\n 'subtitle' => 'Mielpéi romarin- 974',\n 'description' => 'Miel certifié agriculture biologique\n Pour la santé et pour le plaisir de toute la famille\n Plante mellifère sélectionnée pour ses bienfaits reconnus',\n 'price' => 10,\n 'image' => 'https://via.placeholder.com/200x250',\n ], \n ];\n\n DB::table('products')->insert($products);\n }", "title": "" }, { "docid": "20e4026c2581d44bde7e8526f239eb35", "score": "0.5934059", "text": "function getAllProduct()\r\n\t{\r\n\t\t$data = array();\r\n\t\t$query = \"select * from game_product where parent_id=0 and is_active=1 order by cat_order\";\r\n\t\t$q = $this->db->query($query);\r\n\t\tif($q->num_rows()>0)\r\n\t\t{\r\n\t\t\tforeach($q->result() as $row){\r\n\t\t\t\t$data['cat_id'][] = $row->id;\r\n\t\t\t\t$data['cat_nm'][] = $row->cat_name;\r\n\t\t\t\t$data['cat_image'][] = $row->cat_image;\r\n\t\t\t\t$data['index_key'][] = $row->index_key;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.59333336", "text": "public function getProduct();", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.59333336", "text": "public function getProduct();", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.59333336", "text": "public function getProduct();", "title": "" }, { "docid": "269896bc4d4c0f4578ad499c66917233", "score": "0.5932272", "text": "public function getCartList(Request $request)\n {\n try {\n $validation = Validator::make($request->all(),[ \n 'user_id' => 'required'\n ]);\n\n if($validation->fails()){\n return response()->json([\n 'status' => 0,\n 'message' => $validation->errors()\n ]);\n }\n\n Cart::instance('cartlist')->restore($request->user_id.'_cart');\n Cart::instance('cartlist')->store($request->user_id.'_cart');\n $carts = Cart::instance('cartlist')->content()->toArray();\n $output = [];\n if (!empty($carts) || count($carts) > 0) {\n $output['user_id'] = $request->user_id;\n foreach ($carts as $key => $cart) {\n switch ($cart['options']['type']) {\n case 'book':\n $products = $this->productRepository->getBookVendorPriceInfo($cart['id']);\n $cart['vendor_name'] = $products['vendor_name'];\n break;\n\n case 'bookset':\n $products = $this->booksetRepository->getBooksetVendorPriceInfo($cart['id']);\n $cart['vendor_name'] = $products['vendor_name'];\n break;\n\n default:\n $products = $this->productRepository->getBookVendorPriceInfo($cart['id']);\n $cart['vendor_name'] = $products['vendor_name'];\n break;\n }\n $cart['thumbnail_path'] = url($cart['options']['image']);\n $cart['type'] = $cart['options']['type'];\n $items[] = $cart;\n }\n $output['cart_item'] = $items;\n\n $response = [\n 'status' => 1,\n 'page' => 0,\n 'message' => 'cart_list_found_successfully',\n 'data' => $output\n ];\n } else {\n $response = [\n 'status' => 1,\n 'page' => 0,\n 'message' => 'cart_is_empty',\n 'data' => []\n ];\n }\n return response()->json($response, 200); \n } catch (\\Exception $e) {\n //throw $e;\n return response()->json([\n 'status' => 0,\n 'message' => $e->getMessageBag()\n ]);\n }\n }", "title": "" }, { "docid": "e0a0ba997d61416483b1625f9d6ac62e", "score": "0.59311736", "text": "public function getCartProducts($uuid){\n\t\t$result = $GLOBALS['session']->execute(new Cassandra\\SimpleStatement(\n\t\t\t\"SELECT product_id, amount, price, image_link FROM users_cart WHERE uuid = $uuid\"));\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "783e564db219733f91e19c594756f0a8", "score": "0.5921456", "text": "public function getProducts()\n {\n return $this->products;\n }", "title": "" }, { "docid": "46adb57b8410bc45cb5f6e33ad604ed1", "score": "0.59164417", "text": "function show_cart(){\n\t\t$output = '';\n\t\t$no = 0;\n\t\tforeach ($this->cart->contents() as $items) {\n\t\t\t$no++;\n\t\t\t$output .='\n\t\t\t\t<div class=\"product product-widget\">\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"product-body\">\n\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"product-price\">'.number_format($items['price']).'<span class=\"qty\"> x'.$items['qty'].'</span></h3>\n\t\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"product-name\"><a href=\"#\">'.$items['name'].'</a></h2>\n\t\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"product-name\">'.number_format($items['subtotal']).'</h2>\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\n\t\t\t\t\t\t\t\t\t\t\t<button id=\"'.$items['rowid'].'\" class=\"hapus_cart cancel-btn\" data-toggle=\"modal\" data-target=\"#hapus\"><i class=\"fa fa-trash\"></i></button>\n\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t';\n\t\t}\n\t\t$output .= '\n\t\t\t<tr>\n\t\t\t\t<th colspan=\"3\">Total :</th>\n\t\t\t\t<th colspan=\"2\">'.' Rp '.number_format($this->cart->total()).'</th>\n\t\t\t</tr>\n\t\t';\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "d2ebeb0546c77f311d8eb55fcc8ab1f4", "score": "0.59107614", "text": "public function get_cart_data() {\n\t\tcheck_ajax_referer( $this->plugin->meta_prefix, 'nonce' );\n\n\t\t$line_items = get_pc_cart_items();\n\t\t$count = get_pc_cart_quantity( $line_items );\n\n\t\tif ( is_array( $line_items ) ) {\n\t\t\t$cart_html .= '<ul class=\"pc-cart-line-items\">';\n\n\t\t\tforeach ( $line_items as $cart ) {\n\t\t\t\t$cart_html .= '<li>';\n\t\t\t\t$cart_html .= '<div class=\"pc-cart-thumb\">';\n\t\t\t\t$cart_html .= '<img src= \"' . esc_url( get_the_post_thumbnail_url( $cart['ext_id'] ) ) . '\" >';\n\t\t\t\t$cart_html .= '</div>';\n\t\t\t\t$cart_html .= '<div class=\"pc-cart-item-info\">';\n\t\t\t\t$cart_html .= '<div class=\"pc-cart-item-title\" >';\n\t\t\t\t$cart_html .= esc_html( $cart['title'] );\n\t\t\t\t$cart_html .= '</div>';\n\t\t\t\t$cart_html .= '<div class=\"pc-cart-item-price\">';\n\t\t\t\t$cart_html .= '<input id=\"' . $cart['ext_id'] . '\" class=\"pc-cart-quantity-control\" type=\"number\" value=\"' . esc_html( $cart['quantity'] ) . '\" min=\"1\">';\n\t\t\t\t$cart_html .= get_pc_price( $cart['ext_id'], false, true, false );\n\t\t\t\t$cart_html .= '</div>';\n\t\t\t\t$cart_html .= '<span id=\"' . esc_attr( $cart['id'] ) . '\" class=\"pc-line-item-delete\">';\n\t\t\t\t$cart_html .= 'Remove';\n\t\t\t\t$cart_html .= '</span>';\n\t\t\t\t$cart_html .= '</div>';\n\t\t\t\t$cart_html .= '</li>';\n\t\t\t}\n\n\t\t\t$cart_html .= '</ul>';\n\t\t\t$cart_html .= '<div class=\"pc-cart-subtotal\">';\n\t\t\t$cart_html .= '<span>' . esc_html__( 'Subtotal: ', 'prodigy-commerce' ) . '$' . get_pc_cart_subtotal( $line_items, false );\n\t\t\t$cart_html .= '</div>';\n\n\t\t\t$cart_html .= '<button type=\"button\" class=\"pc-check-out\">';\n\t\t\t$cart_html .= esc_html( apply_filters( 'pc_view_cart_copy', '' ) );\n\t\t\t$cart_html .= '</button>';\n\t\t} else {\n\t\t\t$cart_html .= apply_filters( 'pc_empty_cart_message', '' );\n\t\t} // End if().\n\n\t\twp_send_json_success( $cart_html );\n\t}", "title": "" }, { "docid": "0303bc7b730205a86ccd3471f7adf4bc", "score": "0.59100574", "text": "function product($product) {\t\t\n\t\t$p = $this->__get_product($product);\n\t\t\n\t\treturn array(\n\t\t\t\t\t$p['id'], \n\t\t\t\t\t$p['number'],\n\t\t\t\t\t$p['title'],\n\t\t\t\t\t$p['description'],\n\t\t\t\t\t$p['keywords'],\n\t\t\t\t\t$p['thumbnail'],\n\t\t\t\t\t$p['image'],\n\t\t\t\t\t$p['page'],\n\t\t\t\t\t$p['inserted_date'],\n\t\t\t\t\t$p['modified_date']);\n\t}", "title": "" }, { "docid": "e9d359ee2719ebacb57fda7bac8292cd", "score": "0.5909843", "text": "public static function get_product_list() {\n $list = Product::all();\n $ret_ary = array();\n foreach($list as $item) {\n $ret_ary[''.$item->id] = $item;\n }\n\n return $ret_ary;\n }", "title": "" }, { "docid": "7d43c34c28020b55bd38e4e4a3ec1b1b", "score": "0.5908788", "text": "function fn_product_variations_update_cart_products_post(&$cart)\n{\n foreach ($cart['products'] as &$product) {\n if (!empty($product['product_options'])) {\n /** @var \\Tygh\\Addons\\ProductVariations\\Product\\Manager $product_manager */\n $product_manager = Tygh::$app['addons.product_variations.product.manager'];\n $product_type = $product_manager->getProductFieldValue($product['product_id'], 'product_type');\n $product['extra']['product_type'] = $product_type;\n\n if ($product_type === ProductManager::PRODUCT_TYPE_CONFIGURABLE) {\n $variation_id = $product_manager->getVariationId($product['product_id'], $product['product_options']);\n\n if ($variation_id) {\n $product['extra']['variation_product_id'] = $variation_id;\n }\n }\n }\n }\n}", "title": "" }, { "docid": "b528f88373dca9776b67dde32d0fe589", "score": "0.59050673", "text": "public function getTemplateVariable($products=array(), $multiple = true) {\n\t\tApp::uses('ArrayToIterator', 'Lib');\n\t\t$results = array();\n\t\t\n\t\tif (!$multiple) $products = array($products);\n\t\t\n\t\tforeach($products as $key=>$product) {\n\t\t\t\n\t\t\t/**\n\t\t\t * prepare ProductImage first;\n\t\t\t **/\n\t\t\tif (!empty($product['ProductImage'])) {\n\t\t\t\t$images = Set::extract('ProductImage.{n}.filename', $product);\t\n\t\t\t} else {\n\t\t\t\t$images = array();\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Vendor\n\t\t\t **/\n\t\t\t$vendor = (!empty($product['Vendor'])) ? $product['Vendor'] : array();\n\t\t\t\n\t\t\t/**\n\t\t\t * Variants\n\t\t\t **/\n\t\t\tif (!empty($product['Variant'])) {\n\t\t\t\t$variants = VariantModel::getTemplateVariable($product['Variant']);\n\t\t\t} else {\n\t\t\t\t$variants = (TWIG_ITERATOR) ? ArrayToIterator::array2Iterator(array()) : array();\n\t\t\t}\n\t\t\t\n\t\t\t/* Collections */\n\t\t\tif (!empty($product['ProductsInGroup']) ) {\n\t\t\t\t$collections = ProductGroup::getTemplateVariable($product['ProductsInGroup']);\n\t\t\t} else {\t\t\t\t\n\t\t\t\t$collections = (TWIG_ITERATOR) ? ArrayToIterator::array2Iterator(array()) : array();\n\t\t\t}\n\t\t\t\n\t\t\t/* store the original variants. needed for deriving Product Options */\n\t\t\t$originalVariants = (!empty($product['Variant'])) ? $product['Variant'] : array();\n\t\t\t\n\t\t\t/* now we isolate Product data */\n\t\t\t$product = isset($product['Product']) ? $product['Product'] : $product;\n\t\t\t\n\t\t\t/* preparing Product options first */\n\t\t\tif (empty($product['options'])) {\n\t\t\t\tif (!empty($originalVariants)) {\n\t\t\t\t\t$product['options'] = Product::extractProductOptionsFrom(array('Variant'=>$originalVariants));\t\n\t\t\t\t} else {\n\t\t\t\t\t$product['options'] = array();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$options = array_keys($product['options']);\n\t\t\tif (TWIG_ITERATOR) {\n\t\t\t\t$options = ArrayToIterator::array2Iterator($options);\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/* now we build the template variable */\n\t\t\t$result = array('id' => $product['id'],\n\t\t\t\t\t'title' => $product['title'],\n\t\t\t\t\t'code' => $product['code'],\n\t\t\t\t\t'description' => $product['description'],\n\t\t\t\t\t'price' => $product['price'],\n\t\t\t\t\t'handle' => $product['handle'],\n\t\t\t\t\t'underscore_handle' => str_replace('-', '_', $product['handle']),\n\t\t\t\t\t'url' => $product['url'],\n\t\t\t\t\t'weight' => $product['weight'],\n\t\t\t\t\t// hardcode this available field to test checkout\n\t\t\t\t\t'available' => 1,\n\t\t\t\t\t);\n\t\t\t\n\t\t\t/*\n\t\t\t assign the peripheral data back into Product Template Variable\n\t\t\t eg, ProductImage, Vendor, Product options, Variant, Collection\n\t\t\t*/\n\t\t\t$result['images'] \t= (TWIG_ITERATOR) ? ArrayToIterator::array2Iterator($images) : $images;\n\t\t\t$result['cover_image'] \t= isset($images[0]) ? $images[0] : '';\n\t\t\t\n\t\t\t$result['vendor'] \t= !empty($vendor['title']) ? $vendor['title'] : '';\t\t\t\n\t\t\t$result['variants']\t= $variants;\n\t\t\t$result['collections'] \t= $collections;\n\t\t\t\n\t\t\t$result['options']\t= $options;\n\t\t\t\n\t\t\t$results[$result['underscore_handle']] = $result;\n\t\t}\n\t\t\n\t\tif ($multiple && TWIG_ITERATOR) {\n\t\t\t$results = ArrayToIterator::array2Iterator($results);\n\t\t}\n\t\t\n\t\tif (!$multiple && !empty($results)) {\n\t\t\treturn current($results);\n\t\t} else if (!$multiple && empty($results)) {\n\t\t\treturn array();\n\t\t}\n\t\t\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "b4ae1c7ab9cb36f4c63c836a579807ce", "score": "0.59018457", "text": "protected abstract function getProduct();", "title": "" }, { "docid": "87f1564f9aa59d514bfbff0dc679551d", "score": "0.59014624", "text": "public function providerProductsToCreating()\r\n\t{\r\n\t\treturn array(\r\n\t\t\tarray(new Product(self::PRODUCT_AUDI_ID, self::PRODUCT_AUDI_EAN, self::PRODUCT_AUDI_NAME)),\r\n\t\t\tarray(new Product(self::PRODUCT_BMW_ID, self::PRODUCT_BMW_EAN, self::PRODUCT_BMW_NAME)),\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "3ad1fe038c947f10ac3b4ba72e3770e5", "score": "0.58947015", "text": "function cart(){\n \n $total = 0;\n $item_quantity =0;\n $item_name =1;\n $item_number =1;\n $amount =1;\n $quantity =1;\n \n //Foreach each loop to find the product key// \n foreach ($_SESSION as $name => $value){\n \n if($value > 0){\n\n /*substring function\n \n */\n if(substr($name, 0, 8) == \"product_\"){\n \n $length = strlen($name - 8);\n $id = substr($name, 8 , $length);\n \n \n \n $query = query(\"SELECT * FROM products WHERE product_id =\".escape_string($id).\" \");\n confirm($query);\n \n \n while($row = fetch_array($query)){\n \n $sub = $row['product_price']*$value;\n $item_quantity +=$value;\n \n \n$product = <<<DELIMETER\n\n<tr>\n<td>{$row['product_title']}</td>\n<td>R{$row['product_price']}</td>\n<td>{$value}</td>\n<td>{$sub}</td>\n\n<td>\n<a class= 'btn btn-warning' href=\"../resources/cart.php?remove={$row['product_id']}\"><span class='glyphicon glyphicon-minus'></span></a>\n\n<a class= 'btn btn-success' href=\"../resources/cart.php?add={$row['product_id']}\"><span class='glyphicon glyphicon-plus'></span></a>\n\n<a class= 'btn btn-danger' href=\"../resources/cart.php?delete={$row['product_id']}\"><span class='glyphicon glyphicon-remove'></span></a>\n</td>\n</tr>\n\n<input type=\"hidden\" name=\"item_name_{$item_name}\" value=\"{$row['product_title']}\">\n<input type=\"hidden\" name=\"item_number_{$item_number}\" value=\"{$row['product_id']}\">\n<input type=\"hidden\" name=\"amount_{$amount}\" value=\"{$row['product_price']}\">\n<input type=\"hidden\" name=\"quantity_{$quantity}\" value=\"{$row['product_quantity']}\">\n\n\n\n\nDELIMETER;\n \necho $product; \n \n$item_name++;\n$item_number++;\n$amount++;\n$quantity++;\n \n }\n \n //DISPLAY TOTAL FOR ALL PRODUCTS//\n $_SESSION['item_total'] = $total += $sub;\n $_SESSION['item_quantity'] = $item_quantity;\n } \n \n } \n \n \n }\n\n}", "title": "" }, { "docid": "c4f9cef54b04f84b9c16b3ccf083e7d4", "score": "0.5890776", "text": "public function responseCart($cart){\n $result = [];\n foreach ($cart->items as $key => $item) {\n $result[$key]['sku'] = $item->sku;\n $result[$key]['price'] = $item->price;\n $result[$key]['image'] = $item->product->image->image;\n $result[$key]['quantity'] = $item->quantity;\n $result[$key]['name'] = $item->product->name;\n }\n //dd($user);\n return $this->success([\n 'items'=>$result,\n // 'displayTotalPrice' =>$cart->displayTotalPrice,\n 'totalPrice'=>$cart->totalPrice,\n 'totalShipping'=>$cart->totalShipping,\n 'totalTax'=>$cart->totalTax,\n // 'displayTotal'=>$cart->displayTotal,\n 'total'=>$cart->total\n ]);\n }", "title": "" }, { "docid": "cb21031f1e2952d8daabd3c8c2afd2c1", "score": "0.5890733", "text": "public function testAddProduct(): void\n {\n $this->assertCount(0, $this->cart->getItems());\n\n $this->cart->addProduct('R01');\n $this->assertCount(1, $this->cart->getItems());\n\n $this->cart->addProduct('R01');\n $this->assertCount(1, $this->cart->getItems());\n\n $this->cart->addProduct('B01');\n $this->assertCount(2, $this->cart->getItems());\n }", "title": "" }, { "docid": "8a9f0261f691b633f2e5a9ab1282ea57", "score": "0.58809924", "text": "function cart()\n{\n // Variables\n $total = 0;\n\n $item_quantity = 0;\n\n $item_name = 1;\n\n $item_num = 1;\n\n $amount = 1;\n\n $quantity = 1;\n\n //the foreach statement uses the key and value for the associate array for this session\n foreach ($_SESSION as $name => $value) {\n // if the value is 0 it doesn't show anything in the cart\n if ($value > 0) {\n //the substring will be equal to name of product_(0,8), if it's not equal it won't show anything in the cart\n if (substr($name, 0, 8) == \"product_\") {\n\n $length = strlen($name) - 8;\n\n $id = substr($name, 8, $length);\n\n $query = query(\"SELECT * FROM products WHERE product_id = \" . escape_string($id) . \" \");\n confirm($query);\n\n while ($row = fetch_array($query)) {\n $sub = $row['product_price'] * $value;\n $item_quantity += $value;\n $product = <<<DELIMETER\n <tr>\n <td>{$row['product_title']}</td>\n <td>&#36;{$row['product_price']}</td>\n <td>{$value}</td>\n <td>&#36;{$sub}</td>\n <td><a class='btn btn-warning' href=\"../resources/cart.php?remove={$row['product_id']}\"><span class='glyphicon glyphicon-minus'></span></a> \n <a class='btn btn-success' href=\"../resources/cart.php?add={$row['product_id']}\"><span class='glyphicon glyphicon-plus'></span></a> \n <a class='btn btn-danger' href=\"../resources/cart.php?delete={$row['product_id']}\"><span class='glyphicon glyphicon-remove'></span></a> </td>\n </tr>\n \n <input type=\"hidden\" name=\"item_name_{$item_name}\" value=\"{$row['product_title']}\">\n <input type=\"hidden\" name=\"item_number_{$item_num}\" value=\"{$row['product_id']}\">\n <input type=\"hidden\" name=\"amount_{$amount}\" value=\"{$row['product_price']}\">\n <input type=\"hidden\" name=\"quantity_{$quantity}\" value=\"{$value}\">\n <input type=\"hidden\" name=\"upload\" value=\"1\">\n DELIMETER;\n\n echo $product;\n //increments the variables by 1 on each loop\n $item_name++;\n $item_num++;\n $amount++;\n $quantity++;\n }\n\n $_SESSION['item_total'] = $total += $sub;\n $_SESSION['item_quantity'] = $item_quantity;\n }\n }\n }\n}", "title": "" }, { "docid": "99a5e5e7bf9b5d78e36959474833c8e7", "score": "0.5880475", "text": "public function get_items() {\n\t\t$items = $this->get_cart();\n\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "be99ec30cd38a5d5de8eccde1038df7b", "score": "0.58771855", "text": "function show_cart(){\n\t\t$output = '';\n\t\t$output = '<li class=\"cart-icon\">\n <a href=\"#\">\n <i class=\"icon_bag_alt\"></i>\n <span>.</span>\n </a>\n <div class=\"cart-hover\">';\n\t\tforeach ($this->cart->contents() as $items) {\n\t\t\t$output .='\n\t\t\t<div class=\"select-items\">\n\t\t\t\t<table>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"si-pic\"><img style=\"height: 50px; width: 50px;\" src=\"'.site_url(\"assets/upload/produk/\".$items['img']).'\" alt=\"\"></td>\n\t\t\t\t\t\t\t<td class=\"si-text\">\n\t\t\t\t\t\t\t\t<div class=\"product-selected\">\n\t\t\t\t\t\t\t\t\t<h6>'.$items['name'].'</h6>\n\t\t\t\t\t\t\t\t\t<p>Rp. '.number_format($items['price']).' x '.$items['qty'].'</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t\t';\n\t\t}\n\t\t$output .= '\n\t\t\t<div class=\"select-total\">\n <span>total:</span>\n <h5>Rp. '.number_format($this->cart->total()).'</h5>\n </div>\n <div class=\"select-button\">\n <a href=\"'.base_url('keranjang').'\" class=\"primary-btn view-card\">KERANJANG</a>\n <a href=\"'.base_url('checkout').'\" class=\"primary-btn checkout-btn\">CHECK OUT</a>\n </div>\n </div>\n </li>\n <li class=\"cart-price\">Rp. '.number_format($this->cart->total()).'</li>\n\t\t';\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "08f0fbb5f176027aa962da6cef9fa43e", "score": "0.5876964", "text": "public function process()\n {\n // Set response header Json\n header('Content-Type: application/json');\n\n $status = true;\n $response = 'OK';\n $userId = getSession('user_id', randomString(5));\n $now = date('Y-m-d H:i:s');\n\n /**\n * Setup Cart\n * Create if not exist\n */\n $cartProductIds = [];\n $carts = $this->db->query(\"SELECT * FROM carts WHERE user_id = '$userId'\");\n\n if (count($carts) > 0) {\n $cartId = $carts[0]['id'];\n $cartProducts = $this->db->query(\"SELECT * FROM cart_products WHERE cart_id = '$cartId'\");\n $cartProductIds = pluck($cartProducts, 'product_id');\n $cartProductsKeyId = keyBy($cartProducts, 'product_id');\n } else {\n $sql = \"INSERT INTO carts (user_id, created_at, updated_at) VALUES('$userId', '$now', '$now')\";\n $query = $this->db->query($sql, true);\n $cartId = $query->insert_id;\n }\n // End of - Setup Cart\n\n /**\n * Setup Cart Product (add, remove) by Request Post\n * Parameter : product_id, qty, method (add, delete)\n */\n if (isset($_POST['product_id'])) {\n\n // Initial Bulk Array\n $bulkInsertCarts = $bulkUpdateCarts = $bulkDeleteCarts = [];\n\n /**\n * Initial quantity\n * Force into array\n * Default quantity value is 1\n */\n $quantities = $_POST['qty'] ?? [1];\n if ( ! is_array($quantities) ) $quantities = [$quantities];\n\n /**\n * Initial method (add, delete)\n * Force into array\n */\n $methods = $_POST['method'] ?? [];\n if ( ! is_array($methods) ) $methods = [$methods];\n\n /**\n * Get Product Database by Request Id Product\n */\n $postProductIds = $_POST['product_id'];\n\n if (is_array($postProductIds)) {\n // Filter product id\n foreach ($postProductIds as $key => $idProduct) {\n $postProductIds[$key] = filter($idProduct);\n }\n $sql = \"WHERE products.id IN (\".implode(', ', $postProductIds).\")\";\n } else {\n $postProductIds = filter($postProductIds);\n $sql = \"WHERE products.id = '$postProductIds'\";\n }\n\n $sql = \"SELECT products.*, categories.name AS category_name FROM products LEFT JOIN categories ON products.category_id = categories.id $sql\";\n $products = $this->db->query($sql);\n $products = keyBy($products, 'id');\n // End of - Get Product Database\n\n /**\n * Looping Array Request Data\n */\n foreach ($methods as $key => $method) {\n\n /**\n * Set selected product Id and value\n */\n $idProduct = $postProductIds[$key];\n $product = $products[$idProduct];\n\n /**\n * Validation Quantity Product\n * Number must same or smaller than products.quantity value\n * If product qty from database is empty, force method to delete\n */\n $qty = intval($quantities[$key]);\n if ( $qty < 1 ) $qty = 1;\n\n if ($method == 'add') {\n $prevQty = isset($cartProductsKeyId[$idProduct]['quantity']) ? intval($cartProductsKeyId[$idProduct]['quantity']) : 0;\n $qty = $prevQty + $qty;\n }\n\n if ( $qty > $product['quantity'] ) $qty = $product['quantity'];\n if ( $qty < 1) $method = 'delete';\n\n /**\n * Set Bulk Array Value by Selected Method\n */\n switch ($method) {\n case 'delete':\n $bulkDeleteCarts[] = $idProduct;\n break;\n case 'add':\n case 'update':\n default:\n if ( ! in_array($idProduct, $cartProductIds) ) {\n // Set value for bulk insert\n $bulkInsertCarts[] = \"('$cartId', '$product[id]', '$product[category_id]', '$product[category_name]', '$product[name]', '$product[description]', '$product[price]', '$product[images]', '$qty', '$now', '$now')\";\n } else {\n // Set value for bulk update\n $bulks = [];\n $bulks['product_id'] = $idProduct;\n $bulks['case_category_id'] = \"WHEN product_id = '$idProduct' THEN '$product[category_id]'\";\n $bulks['case_category_name'] = \"WHEN product_id = '$idProduct' THEN '$product[category_name]'\";\n $bulks['case_name'] = \"WHEN product_id = '$idProduct' THEN '$product[name]'\";\n $bulks['case_description'] = \"WHEN product_id = '$idProduct' THEN '$product[description]'\";\n $bulks['case_price'] = \"WHEN product_id = '$idProduct' THEN '$product[price]'\";\n $bulks['case_images'] = \"WHEN product_id = '$idProduct' THEN '$product[images]'\";\n $bulks['case_quantity'] = \"WHEN product_id = '$idProduct' THEN '$qty'\";\n $bulkUpdateCarts[] = $bulks;\n }\n break;\n }\n\n }\n\n /**\n * Bulk Insert Cart Products\n */\n if (count($bulkInsertCarts) > 0) {\n\n $bulkInsertCarts = implode(', ', $bulkInsertCarts);\n\n $sql = \"INSERT INTO cart_products (cart_id, product_id, category_id, category_name, name, description, price, images, quantity, created_at, updated_at) VALUES $bulkInsertCarts\";\n\n $this->db->query($sql);\n }\n\n /**\n * Bulk Update Cart Products\n */\n if (count($bulkUpdateCarts) > 0) {\n\n $bulkProductIds = implode(', ', pluck($bulkUpdateCarts, 'product_id'));\n $caseCategoryId = implode(' ', pluck($bulkUpdateCarts, 'case_category_id'));\n $caseCategoryName = implode(' ', pluck($bulkUpdateCarts, 'case_category_name'));\n $caseName = implode(' ', pluck($bulkUpdateCarts, 'case_name'));\n $caseDescription = implode(' ', pluck($bulkUpdateCarts, 'case_description'));\n $casePrice = implode(' ', pluck($bulkUpdateCarts, 'case_price'));\n $caseImages = implode(' ', pluck($bulkUpdateCarts, 'case_images'));\n $caseQuantity = implode(' ', pluck($bulkUpdateCarts, 'case_quantity'));\n\n $sql = \"UPDATE cart_products SET\n category_id = (CASE $caseCategoryId END),\n category_name = (CASE $caseCategoryName END),\n name = (CASE $caseName END),\n description = (CASE $caseDescription END),\n price = (CASE $casePrice END),\n images = (CASE $caseImages END),\n quantity = (CASE $caseQuantity END),\n updated_at = '$now'\n WHERE cart_id = '$cartId' AND product_id IN ($bulkProductIds)\";\n\n // Remove line break and double whitespaces\n $sql = trim(preg_replace(\"/\\s\\s+/\", \" \", $sql));\n\n $this->db->query($sql);\n }\n\n /**\n * Bulk Delete Cart Products\n */\n if (count($bulkDeleteCarts) > 0) {\n\n $bulkDeleteCarts = implode(', ', $bulkDeleteCarts);\n\n $sql = \"DELETE FROM cart_products WHERE cart_id = '$cartId' AND product_id IN ($bulkDeleteCarts)\";\n\n $this->db->query($sql);\n }\n\n }\n // End of - Setup Cart Product\n\n /**\n * Response Json\n */\n echo json_encode([\n 'status' => $status,\n 'response' => $response,\n 'redirect' => baseurl('cart'),\n ]);\n }", "title": "" }, { "docid": "0083ad334636eef5195a6fab98bbc898", "score": "0.58765376", "text": "function getAllProducts() {\n\t\t$products = '\n\t\t\t[{\n\t\t\t \"id\": \"A101\",\n\t\t\t \"description\": \"Screwdriver\",\n\t\t\t \"category\": \"1\",\n\t\t\t \"price\": \"9.75\"\n\t\t\t },\n\t\t\t {\n\t\t\t \"id\": \"A102\",\n\t\t\t \"description\": \"Electric screwdriver\",\n\t\t\t \"category\": \"1\",\n\t\t\t \"price\": \"49.50\"\n\t\t\t },\n\t\t\t {\n\t\t\t \"id\": \"B101\",\n\t\t\t \"description\": \"Basic on-off switch\",\n\t\t\t \"category\": \"2\",\n\t\t\t \"price\": \"4.99\"\n\t\t\t },\n\t\t\t {\n\t\t\t \"id\": \"B102\",\n\t\t\t \"description\": \"Press button\",\n\t\t\t \"category\": \"2\",\n\t\t\t \"price\": \"4.99\"\n\t\t\t },\n\t\t\t {\n\t\t\t \"id\": \"B103\",\n\t\t\t \"description\": \"Switch with motion detector\",\n\t\t\t \"category\": \"2\",\n\t\t\t \"price\": \"12.95\"\n\t\t\t }\n\t\t\t ]\n\t\t\t';\n\n\t\t\treturn json_decode($products, true);\n\t}", "title": "" }, { "docid": "3e24d36593e8e997a38a9226636a1676", "score": "0.5873385", "text": "protected function process()\n {\n $inventory = array();\n\n foreach ($this->collection as $product) {\n //get all combinations of product\n $combinations = $this->getCombinations($product['id_product']);\n\n if (empty($combinations) && $product['name'] != '') { //simple product\n $feedInventory = new UrbitInventoryfeedInventory($product);\n\n if ($feedInventory->process()) {\n $inventory[] = $feedInventory->toArray();\n }\n } else { //product with variables\n foreach ($combinations as $combId => $combination) {\n if ($combination['quantity'] <= 0) {\n continue;\n }\n\n $feedInventory = new UrbitInventoryfeedInventory($product, $combId, $combination);\n\n if ($feedInventory->process()) {\n $inventory[] = $feedInventory->toArray();\n }\n }\n }\n }\n\n $this->data = $inventory;\n }", "title": "" }, { "docid": "334c28a2ef44f58c0a38522956564562", "score": "0.58698446", "text": "function index(){\r\n \t//\tpr($_SESSION['svcart']);\r\n\t\t\tif(isset($_SESSION['User']['User']['id'])){\r\n\t\t\t\t//取cart 表数据 and Cart.session_id = '\".session_id().\"'\r\n\t\t\t\t$cart_products =\t$this->Cart->findall(\"Cart.user_id = \".$_SESSION['User']['User']['id'].\"\");\r\n\t\t\t}else{\r\n\t\t\t\t$cart_products =\t$this->Cart->findall(\"Cart.session_id = '\".session_id().\"'\");\r\n\t\t\t}\r\n\r\n\t\t\t$p_ids =array();\r\n\t\t\t$p_lists = array();\r\n\t\t \t$this->Category->set_locale($this->locale);\r\n \t\t\t$this->Category->tree('P',0,$this->locale,$this);\r\n\t\t\tif(isset($cart_products) && sizeof($cart_products)>0){\r\n\t\t\t\tunset($_SESSION['svcart']['products']);\r\n\t\t\t\tforeach($cart_products as $k=>$v){\r\n\t\t\t\t\tif(!in_array($v['Cart']['product_id'],$p_ids)){\r\n\t\t\t\t\t\t$p_ids[] = $v['Cart']['product_id'];\r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t\tif(empty($p_ids)){\r\n\t\t\t\t\t$p_ids[] =0;\r\n\t\t\t\t}\r\n\t\t\t\t$product_attr = $this->ProductAttribute->find('all',array(\r\n\t\t\t\t'fields' =>\tarray('ProductAttribute.id','ProductAttribute.product_id','ProductAttribute.product_type_attribute_id','ProductAttribute.product_type_attribute_value','ProductAttribute.product_type_attribute_price'),\t\t\t\r\n\t\t\t\t'conditions'=>array('ProductAttribute.product_id' => $p_ids)));\r\n\t\t\t\t$this->Product->set_locale($this->locale);\r\n\t\t\t\t$svcart_products = $this->Product->find('all',\r\n\t\t\t\tarray( \r\n\t\t\t\t\t\t'fields' =>\tarray('Product.id','Product.recommand_flag','Product.status','Product.img_thumb'\r\n\t\t\t\t\t\t\t\t\t,'Product.market_price'\r\n\t\t\t\t\t\t\t\t\t,'Product.shop_price','Product.promotion_price'\r\n\t\t\t\t\t\t\t\t\t,'Product.promotion_start'\r\n\t\t\t\t\t\t\t\t\t,'Product.promotion_end'\r\n\t\t\t\t\t\t\t\t\t,'Product.promotion_status'\r\n\t\t\t\t\t\t\t\t\t,'Product.code','Product.point','Product.point_fee'\r\n\t\t\t\t\t\t\t\t\t,'Product.product_rank_id'\r\n\t\t\t\t\t\t\t\t\t,'Product.quantity'\r\n\t\t\t\t\t\t\t\t\t,'ProductI18n.name','Product.extension_code','Product.weight','Product.frozen_quantity','Product.product_type_id','Product.brand_id','Product.coupon_type_id','Product.category_id'\r\n\t\t\t\t\t\t\t\t\t),\t\t\t\t\r\n\t\t\t\t'conditions'=>array('Product.id'=>$p_ids)));\r\n\t\t\t\t\r\n\t\t\t\t$svcart_products_list = array();\r\n\t\t\t\tif(isset($svcart_products) && sizeof($svcart_products)>0){\r\n\t\t\t\t\tforeach($svcart_products as $k=>$v){\r\n\t\t\t\t\t\t$svcart_products_list[$v['Product']['id']] = $v;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\t\t//\tpr($cart_products);exit;\t\r\n\t\t\t\t$product_attr_lists = array();\r\n\t\t\t\tif(isset($product_attr) && sizeof($product_attr)>0){\r\n\t\t\t\t\tforeach($product_attr as $k=>$v){\r\n\t\t\t\t\t\t$product_attr_lists[$v['ProductAttribute']['product_id']][$v['ProductAttribute']['product_type_attribute_value']] = $v;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//pr($cart_products);exit;\r\n\t\t\t\tforeach($cart_products as $k=>$v){\r\n\t\t\t\t\tif(isset($svcart_products_list[$v['Cart']['product_id']])){\r\n\t\t\t\t\t\tif($v['Cart']['product_attrbute'] == \"\"){\r\n\t\t\t\t\t\t\t$new_id = $v['Cart']['product_id'];\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$this_attr = explode('<br />',$v['Cart']['product_attrbute']);\r\n\t\t\t\t\t\t\t$new_id = $v['Cart']['product_id'];\r\n\t\t\t\t\t\t\t$attributes = $v['Cart']['product_attrbute'];\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tforeach($this_attr as $val){\r\n\t\t\t\t\t\t\t\t$val_arr = explode(':',$val);\r\n\t\t\t\t\t\t\t\tif(isset($val_arr[1]) && trim($val) != \"\" && isset($product_attr_lists[$v['Cart']['product_id']][trim($val_arr[1])])){\r\n\t\t\t\t\t\t\t\t\t$new_id.= '.'.$product_attr_lists[$v['Cart']['product_id']][trim($val_arr[1])]['ProductAttribute']['id'];\r\n\t\t\t\t\t\t\t//\t\t$attributes .= $val.\",\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//\t$attributes = substr($val,0,-1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$_SESSION['svcart']['products'][$new_id]['attributes'] = $attributes;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$_SESSION['svcart']['products'][$new_id]['Product'] = array(\r\n\t\t\t\t\t\t'id'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['id'],'code'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['code'],'weight'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['weight'],'market_price'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['market_price'],'shop_price'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['shop_price'],'promotion_price'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['promotion_price'],'promotion_start'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['promotion_start'],'promotion_end'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['promotion_end'],'promotion_status'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['promotion_status'],'product_rank_id'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['product_rank_id'],'extension_code'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['extension_code'],'frozen_quantity'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['frozen_quantity'],'product_type_id'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['product_type_id'],'brand_id'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['brand_id'],'coupon_type_id'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['coupon_type_id'],'point'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['point'],'img_thumb'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['img_thumb'],'point_fee'=>$svcart_products_list[$v['Cart']['product_id']]['Product']['point_fee']\r\n\t\t\t\t\t\t);\r\n\t\t\t $_SESSION['svcart']['products'][$new_id]['quantity'] = $v['Cart']['product_quantity'];\r\n\t\t\t $_SESSION['svcart']['products'][$new_id]['category_name'] = isset($this->Category->allinfo['assoc'][$svcart_products_list[$v['Cart']['product_id']]['Product']['category_id']])?$this->Category->allinfo['assoc'][$svcart_products_list[$v['Cart']['product_id']]['Product']['category_id']]['CategoryI18n']['name']:'';\r\n\t\t\t $_SESSION['svcart']['products'][$new_id]['category_id'] = $svcart_products_list[$v['Cart']['product_id']]['Product']['category_id'];\r\n\t \t\t\t\t\t$_SESSION['svcart']['products'][$new_id]['use_point'] = 0;\r\n\t\t\t $_SESSION['svcart']['products'][$new_id]['save_cart'] = $v['Cart']['id'];\r\n\t\t\t\t\t\t$_SESSION['svcart']['products'][$new_id]['ProductI18n'] = array('name'=>$svcart_products_list[$v['Cart']['product_id']]['ProductI18n']['name']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t\t//pr($product_attr_lists);\r\n\t\t$this->statistic_svcart(); \t\t\t\t//计算金额\r\n \t\t//unset($_SESSION['svcart']['address']);\r\n \t\t$this->Cookie->del('cart_cookie');\r\n \t//\tunset($_SESSION['svcart']['products']);\r\n\t\t$this->page_init();\r\n \t\t$this->Product->set_locale($this->locale);\r\n\t\tif(!isset($_SESSION['svcart']['products']) && isset($_COOKIE['CakeCookie']['cart_cookie'])){\r\n\t\t\t$_SESSION['svcart'] = @unserialize(StripSlashes($this->Cookie->read('cart_cookie')));\r\n\t\t}\r\n\t\t$product_ranks = $this->ProductRank->findall_ranks();\r\n\t\tif(isset($_SESSION['User']['User'])){\r\n\t\t\t$user_rank_list=$this->UserRank->findrank();\t\t\r\n\t\t}\r\n\t\t$this->order_price();\r\n\t\t\r\n \t\t//取得促销商品\r\n \t\tif(isset($this->configs['cart_promotion']) && $this->configs['cart_promotion'] == \"1\"){\r\n\t \t\t$promotion_products = $this->Product->promotion($this->configs['promotion_count'],$this->locale);\r\n\t \t\t\r\n\t \t\tif(isset($promotion_products) && sizeof($promotion_products)>0){\r\n\t \t\t\t$pid_array = array();\r\n\t \t\t\tforeach($promotion_products as $k=>$v){\r\n\t \t\t\t\t$pid_array[] = $v['Product']['id'];\r\n\t \t\t\t}\r\n\t \t\t\t\r\n\t\t\t// 商品多语言\r\n\t\t\t\t$productI18ns_list =array();\r\n\t\t\t\t\t$productI18ns = $this->ProductI18n->find('all',array( \r\n\t\t\t\t\t'fields' =>\tarray('ProductI18n.id','ProductI18n.name','ProductI18n.product_id'),\r\n\t\t\t\t\t'conditions'=>array('ProductI18n.product_id'=>$pid_array,'ProductI18n.locale'=>$this->locale)));\r\n\t\t\t\tif(isset($productI18ns) && sizeof($productI18ns)>0){\r\n\t\t\t\t\tforeach($productI18ns as $k=>$v){\r\n\t\t\t\t\t\t$productI18ns_list[$v['ProductI18n']['product_id']] = $v;\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\tforeach($promotion_products as $k=>$v){\r\n\t\t\t\tif(isset($productI18ns_list[$v['Product']['id']])){\r\n\t\t\t\t\t$promotion_products[$k]['ProductI18n'] = $productI18ns_list[$v['Product']['id']]['ProductI18n'];\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$promotion_products[$k]['ProductI18n']['name'] = \"\";\r\n\t\t\t\t}\t \t\t\t\r\n\t \t\t\t\r\n\t \t//\t\t$promotion_products[$k]['Product']['user_price'] = $this->Product->user_price($k,$v,$this);\r\n\t\t\t\tif(isset($product_ranks[$v['Product']['id']]) && isset($_SESSION['User']['User']['rank']) && isset($product_ranks[$v['Product']['id']][$_SESSION['User']['User']['rank']])){\r\n\t\t\t\t\tif(isset($product_ranks[$v['Product']['id']][$_SESSION['User']['User']['rank']]['ProductRank']['is_default_rank']) && $product_ranks[$v['Product']['id']][$_SESSION['User']['User']['rank']]['ProductRank']['is_default_rank'] == 0){\r\n\t\t\t\t\t $promotion_products[$k]['Product']['user_price']= $product_ranks[$v['Product']['id']][$_SESSION['User']['User']['rank']]['ProductRank']['product_price'];\t\t\t \r\n\t\t\t\t\t}else if(isset($user_rank_list[$_SESSION['User']['User']['rank']])){\r\n\t\t\t\t\t $promotion_products[$k]['Product']['user_price']=($user_rank_list[$_SESSION['User']['User']['rank']]['UserRank']['discount']/100)*($v['Product']['shop_price']);\t\t\t \r\n\t\t\t\t\t}\r\n\t\t\t\t} \t\t\t\r\n\t \t\t}\t\r\n\t\t\t$this->set('promotion_products',$promotion_products);\r\n\t \t}\r\n\t \t\r\n\t\t\r\n \t\t$pack_card_num = 0;\r\n\t\tif(isset($this->configs['enable_buy_packing']) && $this->configs['enable_buy_packing'] == 1){\r\n\t\t\t//取得包装信息\r\n\t\t\t$this->Packaging->set_locale($this->locale);\r\n\t\t\t$packaging_lists = $this->Packaging->find('all',array(\r\n\t\t\t'fields' =>array('Packaging.id','Packaging.img01','Packaging.fee','Packaging.free_money','PackagingI18n.name','PackagingI18n.description'),\r\n\t\t\t'order'=>array(\"Packaging.created desc\"),'conditions'=>array('Packaging.status'=>1)));\r\n\t\t//\tpr($packaging_lists);\r\n\t\t\t//$this->Packaging->findAll(\"status = '1'\",\"\",\"Packaging.created desc\",\"\")\r\n\t\t\tif(isset($packaging_lists) && sizeof($packaging_lists)>0){\r\n\t\t\t\t$pack_card_num++;\r\n\t\t\t}\r\n\t\t\t$this->set('packages',$packaging_lists);\r\n\t\t}\r\n\t\tif(isset($this->configs['enable_buy_card']) && $this->configs['enable_buy_card'] == 1){\r\n\t\t\t//取得贺卡信息\r\n\t\t\t$this->Card->set_locale($this->locale);\r\n\t\t\t$card_lists = $this->Card->find('all',\r\n\t\t\tarray(\r\n\t\t\t'fields' =>array('Card.id','Card.img01','Card.fee','Card.free_money','CardI18n.name','CardI18n.description'),\r\n\t\t\t'order'=>array(\"Card.created desc\"),'conditions'=>array('Card.status'=>1)));\r\n\t\t\t//$this->Card->findAll(\"status = '1'\",\"\",\"Card.created desc\",\"\")\r\n\t\t\tif(isset($card_lists) && sizeof($card_lists)>0){\r\n\t\t\t\t$pack_card_num++;\r\n\t\t\t}\t\t\t\r\n\t\t\t$this->set('cards',$card_lists);\r\n\t\t}\r\n\t\t\r\n\t\t$this->set('pack_card_num',$pack_card_num);\r\n\t\t\r\n\t\t//输出SV-Cart里的信息\r\n\t\tif(isset($_SESSION['svcart']['products'])){\r\n\t\t\t$this->statistic_svcart();\r\n\t\t\t$this->set('all_virtual',$_SESSION['svcart']['cart_info']['all_virtual']);\r\n\t\t\tif($this->configs['category_link_type'] == 1){\r\n\t\t\t\tforeach($_SESSION['svcart']['products'] as $k=>$v){\r\n\t\t\t\t\t$this->Category->set_locale($this->locale);\t\t\t\t\t\t\r\n\t\t\t\t\t$info = $this->Category->findbyid($v['category_id']);\t\t\t\t\t\t\r\n\t\t\t\t\t$_SESSION['svcart']['products'][$k]['use_sku'] = 1;\r\n\t\t\t\t\tif($info['Category']['parent_id']>0){\r\n\t\t\t\t\t\t$parent_info = $this->Category->findbyid($info['Category']['parent_id']);\r\n\t\t\t\t\t\tif(isset($parent_info['Category'])){\r\n\t\t\t\t\t\t\t$parent_info['CategoryI18n']['name'] = str_replace(\" \",\"-\",$parent_info['CategoryI18n']['name']);\r\n\t\t\t\t\t\t\t$parent_info['CategoryI18n']['name'] = str_replace(\"/\",\"-\",$parent_info['CategoryI18n']['name']);\r\n\t\t\t\t\t\t\t$_SESSION['svcart']['products'][$k]['parent'] = $parent_info['CategoryI18n']['name'];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t}\r\n\t\t\t//已购买商品的相关商品显示\r\n\t\t\tif(isset($this->configs['cart_product_relation']) && $this->configs['cart_product_relation'] == '1'){\r\n\t\t\t\t$product_ids = array();\r\n\t\t\t\t$product_ids_bak = array();\r\n\t\t\t\tforeach($_SESSION['svcart']['products'] as $k=>$v){\r\n\t\t\t\t\t$product_ids_bak[] = $v['Product']['id'];\r\n\t\t\t\t\t$conditions = array(\r\n\t\t\t\t\t\t\t\t\t\t'AND'=>array('Product.status'=>'1','Product.forsale'=>'1'),\r\n\t\t\t\t\t\t\t\t\t\t'OR'=> array(\"ProductRelation.product_id \"=> $v['Product']['id'],\"ProductRelation.related_product_id \"=> $v['Product']['id'])\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\t$relation_ids = $this->ProductRelation->find(\"all\",array('fields'=>array('ProductRelation.product_id','ProductRelation.related_product_id'),'conditions'=>$conditions,'recursive'=>'1','order'=>'ProductRelation.orderby'));\r\n\t\t\t\t\t$product_ids += $relation_ids;\r\n\t\t\t\t}\r\n\t\t\t\tif(sizeof($product_ids)>0){\r\n\t\t\t\t\t$relation_ids_list = array();\r\n\t\t\t\t\tforeach($relation_ids as $k=>$v){\r\n\t\t\t\t\t\tif(!in_array($v['ProductRelation']['product_id'],$product_ids_bak)){\r\n\t\t\t\t\t\t$relation_ids_list[] = $v['ProductRelation']['product_id'];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!in_array($v['ProductRelation']['related_product_id'],$product_ids_bak)){\r\n\t\t\t\t\t\t$relation_ids_list[] = $v['ProductRelation']['related_product_id'];\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\t$relation_products = $this->Product->findall(array(\"Product.id\"=>$relation_ids_list));\r\n\t\t\t\t\tif(isset($this->configs['cart_product_relation_number']) && $this->configs['cart_product_relation_number'] > 0){\r\n\t\t\t\t\t\t$relation_products = array_slice($relation_products,'0',$this->configs['cart_product_relation_number']);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tforeach($relation_products as $k=>$v){\r\n\t\t\t\t\t\t//$relation_products[$k]['Product']['shop_price'] =$this->Product->locale_price($v['Product']['id'],$v['Product']['shop_price'],$this);\r\n\t\t\t\t\t\tif(isset($this->configs['mlti_currency_module']) && $this->configs['mlti_currency_module'] == 1 && isset($v['ProductLocalePrice']['product_price'])){\r\n\t\t\t\t\t\t\t$relation_products[$k]['Product']['shop_price'] = $v['ProductLocalePrice']['product_price'];\r\n\t\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->data['relation_products'] = $relation_products;\r\n\t\t\t\t\t$this->set(\"relation_products\",$relation_products);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->set('svcart',$_SESSION['svcart']);\r\n\t\t}\r\n\t\t$this->pageTitle = $this->languages['cart'].\" - \".$this->configs['shop_title'];\r\n\t\t$this->navigations[] = array('name'=>$this->languages['cart'],'url'=>\"/carts/\");\r\n\t\t\r\n\t\tif(isset($_SESSION['svcart']['cart_info']['sum_subtotal'])){\r\n\t\t\t$promotions = $this->findpromotions();\r\n\t\t\t$this->set('promotions',$promotions);\r\n\t\t}\r\n\t\tif(isset($promotions) && sizeof($promotions)>0){\r\n\t\t\t$promotions_product_id = array();\r\n\t\t\tforeach($promotions as $k=>$v){\r\n\t\t\t\tif($v['Promotion']['type'] == '2' && isset($v['products']) && sizeof($v['products'])>0){\r\n\t\t\t\t\tforeach($v['products'] as $a=>$b){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t$promotions_product_id[] = $b['Product']['id'];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!empty($promotions_product_id)){\r\n\t\t\t\t$promotion_product_attribute = $this->ProductAttribute->find('all',array('conditions'=>array('ProductAttribute.product_id'=>$promotions_product_id)));\r\n\t\t\t}\r\n\t\t\t$this->ProductTypeAttribute->set_locale($this->locale);\r\n\t\t\t$product_type_atts = $this->ProductTypeAttribute->find_all_att($this->locale);\r\n\t\t\t$format_product_attributes = array();\r\n\t\t\t$product_attributes_name = array();\r\n\t\t\t$format_product_attributes_id = array();\r\n\t\t\t$promotion_product_attribute_lists = array();\r\n\t\t\tif(isset($promotion_product_attribute) && sizeof($promotion_product_attribute)>0){\r\n\t\t\t\tforeach($promotion_product_attribute as $k=>$v){\r\n\t\t\t\t\tif(isset($v['ProductAttribute']['product_id'])){\r\n\t\t\t\t\t$promotion_product_attribute_lists[$v['ProductAttribute']['product_id']][$product_type_atts[$v['ProductAttribute']['product_type_attribute_id']]['ProductTypeAttributeI18n']['name']][] = $v;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->set('promotion_product_attribute_lists',$promotion_product_attribute_lists);\r\n\t\t}\r\n\t\tif(isset($this->configs['enable_one_step_buy']) && $this->configs['enable_one_step_buy'] == 1){\r\n\t\t\t$js_languages = array(\"enable_one_step_buy\" => \"1\",'exceed_upper_limit_products'=>$this->languages['exceed_upper_limit_products']);\r\n\t\t\t$this->set('js_languages',$js_languages);\r\n\t\t}else{\r\n\t\t\t$js_languages = array(\"enable_one_step_buy\" => \"0\",'exceed_upper_limit_products'=>$this->languages['exceed_upper_limit_products']);\r\n\t\t\t$this->set('js_languages',$js_languages);\r\n\t\t}\r\n\t\t$this->set('locations',$this->navigations);\r\n\t\t$this->layout = 'default_full';\r\n\t}", "title": "" } ]
72539e7a2836314737d01209274ada3e
Returns send gift card email from name
[ { "docid": "a2bdcffc8b3056f9a155ee3274d61716", "score": "0.5404681", "text": "public function getGiftCardSenderName($storeId = null)\n {\n $senderName = $this->scopeConfig->getValue(\n self::XML_PATH_EMAIL_GIFT_CARD_SENDER_NAME,\n ScopeInterface::SCOPE_STORE,\n $storeId\n );\n return $senderName;\n }", "title": "" } ]
[ { "docid": "1332fd7dfebfa3dcc77e84cd5692a3f7", "score": "0.62476367", "text": "function wpr_get_giftcard_to_email( $code_id = null ) {\r\n\t$toEmail = get_post_meta( $code_id, 'rpgc_email_to', true );\r\n\r\n\treturn apply_filters( 'wpr_get_giftcard_toEmail', $toEmail, $code_id );\r\n}", "title": "" }, { "docid": "e67f65da3936617e9888f41b629f74ee", "score": "0.6219052", "text": "function send_mail_to_winner($userClass){\n if(empty($userClass->email)){ return false; }\n\n $giftList = array_gif3();\n $userClass->gift_name = isset($giftList[$userClass->gift_id]) ? $giftList[$userClass->gift_id] : null;\n\n $contentCard = '';\n $contentVoucher = '';\n $contentApplyFor = ' ';\n $contactLater = 'Mobiistar sẽ liên hệ với bạn về quy trình nhận giải thưởng sau khi chương trình kết thúc vào ngày 09/01/2017.<br><br>';\n if($userClass->gift_id >= 5 && $userClass->gift_id <= 7){ /* Neu trung voucher */\n $contentVoucher = \"\n Mã voucher: <label style=\\\"color: #fd1011;\\\">$userClass->code</label><br>\n Thời hạn sử dụng mã voucher đến hết ngày 25/01/2017.<br>\n Lưu ý: Voucher chỉ được sử dụng một lần và không có giá trị cộng gộp với các chương trình ưu đãi khác.<br>\n Mã voucher được áp dụng để mua <label style=\\\"color: #737bfd;\\\">PRIME X1</label> tại các địa điểm sau:<br>\n 1. Trang Mua Hàng Online của Mobiistar:&nbsp;<a href=\\\"http://muahang.mobiistar.vn/ \\\" target=\\\"_blank\\\">http://muahang.mobiistar.vn/ </a><br>\n 2. Hệ thống showroom Mobiistar:<br>\n - TPHCM: 40 Phạm Ngọc Thạch, Phường 6, Quận 3, TPHCM<br>\n - Hà Nội: Tầng 8, Tòa nhà An Minh, số 36 Hoàng Cầu, Đống Đa, Hà Nội<br>\n - Đà Nẵng: 354 Hải Phòng, Quận Thanh Khê, Đà Nẵng<br>\n Thời gian làm việc: Từ 8h AM - 12h AM, 13h30 PM - 17h PM thứ 2 đến thứ 7 trong tuần.<br><br>\n \";\n $contentApplyFor = 'áp dụng cho sản phẩm <label style=\"color: #737bfd;\">PRIME X1</label> ';\n $contactLater = ''; /* Nếu trúng voucher thì phát luôn chứ k cần Một lần nữa bla bla */\n }\n if($userClass->gift_id >= 8 && $userClass->gift_id <= 10){ /* Neu trung card dien thoai */\n $carrierList = array_carrier();\n $userClass->carrier = isset($carrierList[$userClass->carrier]) ? $carrierList[$userClass->carrier] : null;\n $contentCard = \"Mã thẻ cào: <label style=\\\"color: #fd1011;\\\">$userClass->code</label><br> Mạng di động bạn đã chọn: $userClass->carrier<br><br>\";\n $contactLater = ''; /* Nếu trúng thẻ cào thì phát luôn chứ k cần Một lần nữa bla bla */\n }\n\n $userClass->full_name = ucwords($userClass->full_name); // viet hoa cac ky tu dau cua ten\n\t$title = '[MOBIISTAR] Chúc mừng '.(addslashes($userClass->full_name)).' đã trúng thưởng chương trình “VÂN TAY NÓI GÌ VỀ SỰ THÀNH CÔNG CỦA BẠN?”';\n\t$content = file_get_contents(MEDIAPATH.'files/mail_to_win2.html'); /* Noi dung se de trong file html o thu muc media/files */\n\n /* Thay the nhung thong tin can thiet tu noi dung trong file */\n\t$content = str_replace('VAR_NAME', $userClass->full_name, $content);\n\t$content = str_replace('VAR_GIFT', $userClass->gift_name, $content);\n\t$content = str_replace('VAR_APPLY_FOR', $contentApplyFor, $content);\n\t$content = str_replace('VAR_CONTENT_CARD', $contentCard, $content);\n\t$content = str_replace('VAR_CONTENT_VOUCHER', $contentVoucher, $content);\n\t$content = str_replace('VAR_CONTACT_LATER', $contactLater, $content);\n\n//\trequire_once(APPPATH.'third_party/mail/class.phpmailer.php');\n require_once(APPPATH.'third_party/mail/PHPMailerAutoload.php');\n\t$mail = new PHPMailer();\n\t$mail->IsSMTP();\n\t$mail->SMTPAuth = true;\n\t$mail->Host = \"email-smtp.us-west-2.amazonaws.com\";\n\t$mail->Port = \"587\";\n\t$mail->SMTPSecure = \"tls\";\n\t$mail->Username = \"AKIAJEDEGEVJAFFXEVTA\";\n\t$mail->Password = \"AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU\";\n\t$mail->SetFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n\t$mail->CharSet = 'UTF-8';\n\n\t$mail->Subject = $title;\n\t$body = $content;\n\t$mail->MsgHTML($body);\n\t$mail->AddAddress($userClass->email, \"\");\n\t$mail->AddCC('hotro@mobiistar.vn', \"\");\n\t// $mail->AddCC('an.le@mobiistar.vn', \"\");\n//\t $mail->AddCC('hoa.tang@mobiistar.vn', \"\");\n//\t $mail->AddBCC('buihuynh.kinhluan@gmail.com', \"Kinh Luan\");\n $mail->AddBCC('kinhluan.mobiistar@gmail.com', \"Kinh Luan\");\n\t $mail->AddBCC('tuan.tran@mobiistar.vn', \"Tuan Xuong\");\n\t $mail->AddBCC('conglinh.tran@mobiistar.vn', \"Leon\");\n\treturn $mail->Send();\n}", "title": "" }, { "docid": "1e7dce9f35d84e838af6928ab7156828", "score": "0.61772925", "text": "function SendCardHTML($mName, $mTo, $cardID, $senderID, $fromName, $thImage){\r\n\t$fromMail = \"noreply@wondercard.net\";\r\n\t$subject = $fromName.\" has sent you a wonder eCard\";\r\n\t$cardURL = \"http://www.wondercard.net/view_card.php?mcard_id=\".$cardID.\"&sendid=\".$senderID;\r\n\t//$cardImage = \"http://www.wondercard.net/images/mail_images/card_img.jpg\";\r\n\t$cardImage = \"http://www.wondercard.net/cards/th/\".$thImage;\r\n\t\r\n\t$welcome = '<style>\r\n\ta{text-decoration:none; color:#790000;}\r\n\ttable, td, p, div{padding:0px; border:0px;}\r\n\t</style>\r\n\t<table align=\"center\" width=\"750\" height=\"701\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" style=\"border-spacing:0px;\">\r\n\t\t<tr><td colspan=\"5\" align=\"center\" height=\"20\" style=\"font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#898989;\">Add greeting@wondercard.net to your address book to ensure that youreceive Wonder Cardz email in your inbox.</td></tr>\r\n\t\t<tr><td colspan=\"5\" width=\"750\" height=\"74\"><img src=\"http://www.wondercard.net/images/mail_images/email_img_1.jpg\" width=\"750\" height=\"74\" alt=\"\"></td></tr>\r\n\t\t<tr>\r\n\t\t\t<td colspan=\"2\" width=\"165\" height=\"147\"><img src=\"http://www.wondercard.net/images/mail_images/email_img_2.jpg\" width=\"165\" height=\"147\" alt=\"\"></td>\r\n\t\t\t<td width=\"400\" height=\"147\" colspan=\"2\" valign=\"bottom\" background=\"http://www.wondercard.net/images/mail_images/email_img_bg.jpg\" bgcolor=\"#DAECEE\">\r\n\t\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-family:Arial, Helvetica, sans-serif; color:#898989; border-spacing:0px;\">\r\n\t\t\t\t\t<tr><td height=\"20\" align=\"center\" style=\"font-size:14px; color:#000000;\">Hi, '.$mName.'</td></tr>\r\n\t\t\t\t\t<tr><td align=\"center\" style=\"font-size:32px;\">'.$fromName.'</td></tr>\r\n\t\t\t\t\t<tr><td align=\"center\" style=\"font-size:16px;\">has sent you a wonder greeting card</td></tr>\r\n\t\t\t\t\t<tr><td height=\"25\"></td></tr>\r\n\t\t\t\t\t<tr><td align=\"center\" style=\"font-size:22px; text-decoration:underline;\"><a href=\"'.$cardURL.'\" title=\"Click Here to View Card\">Click Here to View Card</a></td></tr>\r\n\t\t\t\t</table>\r\n\t\t\t</td>\r\n\t\t\t<td width=\"185\" height=\"147\"><img src=\"http://www.wondercard.net/images/mail_images/email_img_4.jpg\" width=\"185\" height=\"147\" alt=\"\"></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td colspan=\"5\" width=\"750\" height=\"72\"><img src=\"http://www.wondercard.net/images/mail_images/email_img_5.jpg\" width=\"750\" height=\"72\" alt=\"\"></td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td width=\"156\" height=\"206\"><img src=\"http://www.wondercard.net/images/mail_images/email_08.jpg\" width=\"156\" height=\"206\" alt=\"\"></td>\r\n\t\t\t<td width=\"160\" height=\"206\" colspan=\"2\" align=\"center\" bgcolor=\"#FFFFFF\"><img src=\"'.$cardImage.'\" width=\"160\" height=\"149\" border=\"0\" /></td>\r\n\t\t\t<td width=\"406\" height=\"206\" colspan=\"2\"><img src=\"http://www.wondercard.net/images/mail_images/email_img_7.jpg\" width=\"406\" height=\"206\" alt=\"\"></td>\r\n\t\t</tr>\r\n\t\t<tr><td width=\"750\" height=\"48\" colspan=\"5\"><img src=\"http://www.wondercard.net/images/mail_images/email_img_8.jpg\" width=\"750\" height=\"48\" alt=\"\"></td></tr>\r\n\t\t<tr>\r\n\t\t\t<td width=\"750\" colspan=\"5\" align=\"center\" style=\"font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#898989;\">\r\n\t\t\tHaving trouble viewing the card? Copy and paste the following link into your web browser:<br />\r\n\t\t\t<a href=\"'.$cardURL.'\" title=\"View Card\">'.$cardURL.' </a>\r\n\t\t\t<br /><br />\r\n\t\t\tWondercard.net repects your privacy, For more information, please review our <a href=\"http://www.wondercard.net/privacy.php\" title=\"Privacy Statement\">Privacy Statement</a>.<br />\r\n\t\t\tThis is an automatic generated message. Do not reply to this message.<br />\r\n\t\t\t<a href=\"http://www.wondercard.net\" title=\"WonderCard\">wondercard.net </a>. Send eCardz that flips for FREE! Create cardz unique to you using photos, videos, music and text of your own! <br />\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td width=\"156\" height=\"1\"><img src=\"http://www.wondercard.net/images/mail_images/spacer.gif\" width=\"156\" height=\"1\" alt=\"\"></td>\r\n\t\t\t<td width=\"9\" height=\"1\"><img src=\"http://www.wondercard.net/images/mail_images/spacer.gif\" width=\"9\" height=\"1\" alt=\"\"></td>\r\n\t\t\t<td width=\"179\" height=\"1\"><img src=\"http://www.wondercard.net/images/mail_images/spacer.gif\" width=\"179\" height=\"1\" alt=\"\"></td>\r\n\t\t\t<td width=\"221\" height=\"1\"><img src=\"http://www.wondercard.net/images/mail_images/spacer.gif\" width=\"221\" height=\"1\" alt=\"\"></td>\r\n\t\t\t<td width=\"185\" height=\"1\"><img src=\"http://www.wondercard.net/images/mail_images/spacer.gif\" width=\"185\" height=\"1\" alt=\"\"></td>\r\n\t\t</tr>\r\n\t</table>';\r\n\t\r\n\t$message = $welcome;\r\n\t\t\t\t\r\n\t$headers = \"From: WonderCard <\" . $fromMail . \">\"; \r\n\t$headers = \"From: WonderCard <\" . strip_tags($fromMail) . \">\\r\\n\";\r\n\t$headers .= \"Reply-To: \". strip_tags($fromMail) . \"\\r\\n\";\r\n\t//$headers .= \"CC: aqeelashraf@gmail.com\\r\\n\";\r\n\t$headers .= \"MIME-Version: 1.0\\r\\n\";\r\n\t$headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\t\r\n\r\n\t@mail($mTo, $subject, $message, $headers);\r\n}", "title": "" }, { "docid": "4c055113487e14211c9ed58a406468bd", "score": "0.61697865", "text": "function wpb_sender_email( $original_email_address ) {\n return 'team@ggcn.org';\n}", "title": "" }, { "docid": "ba4889240add936ec73f3e058240b7ff", "score": "0.6166449", "text": "function my_wp_mail_from_name($name) {\n return 'EhSpook';\n}", "title": "" }, { "docid": "837422f4c0abb52009055cedbb50a3a0", "score": "0.61645055", "text": "function forgottenScreenEmail()\n {\n return \"Adresse e-mail\";\n }", "title": "" }, { "docid": "63cfd7fdb5defdd137d2a38289755e5f", "score": "0.611464", "text": "function wpr_get_giftcard_from_email( $code_id = null ) {\r\n\t$fromEmail = get_post_meta( $code_id, 'rpgc_email_from', true );\r\n\r\n\treturn apply_filters( 'wpr_get_giftcard_fromEmail', $fromEmail, $code_id );\r\n}", "title": "" }, { "docid": "c5e581c201d9dc085aad844a9c6771e5", "score": "0.6069371", "text": "public function sendAction()\n\n {\n\n $data = $this->getRequest()->getParams();\n \n $templateid = Mage::getStoreConfig('affiliateproduct/giftcard/admin_giftcard_template');\n $emailTemplate = Mage::getModel('core/email_template');\n if (!is_numeric($templateid)) {\n $emailTemplate->loadDefault('custom_email_template1');\n $emailTemplate->setTemplateSubject(\"Giftcard From Store\");\n }\n else {\n $emailTemplate->load($templateid);\n }\n $type = Mage::getStoreConfig('giftcard/giftcard/giftcard_sender_email');\n \n $lastorderid = Mage::getModel('kartparadigm_giftcard/giftcard')->getCollection()->addFieldToFilter('added_by', 'Admin')->getLastItem()->getOrderId();\n if ($lastorderid) $orderid = $lastorderid + 1; //admin orderid\n else $orderid = 100;\nif($data['customer_groups']){\n\t$customers = Mage::getModel('customer/customer')->getCollection()->addAttributeToSelect('*')\n\t->addFieldToFilter('group_id', $data['customer_groups']);\n foreach($customers as $customer) {\n $customermail = $customer->getEmail();\n $customername = $customer->getName();\n $msg = $data['giftcard_msg'];\n $date = new Zend_Date(Mage::getModel('core/date')->timestamp());\n $date = $date->toString('Y-M-d H:m:s');\n $exdate = $data['expiry_date'];\n $codelengh = Mage::getStoreConfig('giftcard/giftcard/txt_clength');\n $dashafter = Mage::getStoreConfig('giftcard/giftcard/txt_dashafter');\n $code = Mage::getModel('kartparadigm_giftcard/custommethods')->generateUniqueId($codelengh - 1);\n $code = $code . \"A\"; //admin giftcade\n $code = join('-', str_split($code, $dashafter));\n $data = array(\n 'giftcard_val' => $data['giftcard_val'],\n 'giftcard_bal' => $data['giftcard_val'],\n 'giftcard_code' => $code,\n 'order_id' => $orderid,\n 'giftcard_currency' => $data['giftcard_currency'],\n 'customer_name' => $customername,\n 'customer_mail' => $customermail,\n 'receiver_name' => $customername,\n 'receiver_mail' => $customermail,\n 'giftcard_name' => $data['giftcard_name'],\n 'giftcard_msg' => $data['giftcard_msg'],\n 'created_date' => $date,\n 'store_id' => $data['store_id'],\n 'expiry_date' => $exdate,\n 'giftcard_status' => $data['giftcard_status'],\n 'added_by' => 'Admin',\n 'is_notified' => 1,\n );\n $model = Mage::getModel('kartparadigm_giftcard/giftcard')->setData($data);\n $insertId = $model->save()->getId();\n // inserting in to trans table\n $transdata = array(\n 'giftcard_val' => $data['giftcard_val'],\n 'giftcard_id' => $insertId,\n 'order_id' => $orderid, //\n 'giftcard_bal' => $data['giftcard_val'],\n 'giftcard_balused' => 0,\n 'giftcard_code' => $code,\n 'giftcard_currency' => $data['giftcard_currency'],\n 'customer_name' => $data['receiver_name'],\n 'customer_mail' => $data['receiver_mail'],\n 'giftcard_name' => $data['giftcard_name'],\n 'created_date' => $date,\n 'transac_date' => $date,\n 'store_id' => $data['store_id'],\n 'expiry_date' => $exdate,\n 'giftcard_status' => $data['giftcard_status'],\n 'comment' => \"Added By Admin\"\n );\n $trasmodel = Mage::getModel('kartparadigm_giftcard/giftcardtrans')->setData($transdata);\n $trasmodel->save();\n \n $orderid++;\n $emailTemplateVariables['customername'] = \"Admin\";\n $emailTemplateVariables['giftcardname'] = $data['giftcard_name'];\n $emailTemplateVariables['giftcardval'] = Mage::app()->getLocale()->currency($data['giftcard_currency'])->getSymbol().\" \".$data['giftcard_val'];\n $emailTemplateVariables['giftcardcode'] = $code;\n $mediapath = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);\n if (strpos($mediapath, 'localhost') !== false) \n $emailTemplateVariables['templateimg'] = \"http://www.imagesbuddy.com/images/165/smile-greeting-card.jpg\";\n else \n $emailTemplateVariables['templateimg'] = $mediapath . \"giftcard/greet.jpg\";\n $emailTemplateVariables['themecolor'] = \"#32943F\";\n $emailTemplateVariables['textcolor'] = \"#BF0D0D\";\n $emailTemplateVariables['receivername'] = $customername;\n $emailTemplateVariables['custommsg'] = $msg;\n $emailTemplate->setSenderName(Mage::getStoreConfig('trans_email/ident_' . $type . '/name'));\n $emailTemplate->setSenderEmail(Mage::getStoreConfig('trans_email/ident_' . $type . '/email'));\n $emailTemplate->send($customermail, $customername, $emailTemplateVariables);\n }\n}\nelse{\n$customermail = $data['receiver_mail'];\n $customername = $data['receiver_name'];\n $msg = $data['giftcard_msg'];\n $date = new Zend_Date(Mage::getModel('core/date')->timestamp());\n $date = $date->toString('Y-M-d H:m:s');\n $exdate = $data['expiry_date'];\n $codelengh = Mage::getStoreConfig('giftcard/giftcard/txt_clength');\n $dashafter = Mage::getStoreConfig('giftcard/giftcard/txt_dashafter');\n $code = Mage::getModel('kartparadigm_giftcard/custommethods')->generateUniqueId($codelengh - 1);\n $code = $code . \"A\"; //admin giftcade\n $code = join('-', str_split($code, $dashafter));\n $data = array(\n 'giftcard_val' => $data['giftcard_val'],\n 'giftcard_bal' => $data['giftcard_val'],\n 'giftcard_code' => $code,\n 'order_id' => $orderid,\n 'giftcard_currency' => $data['giftcard_currency'],\n 'customer_name' => $customername,\n 'customer_mail' => $customermail,\n 'receiver_name' => $customername,\n 'receiver_mail' => $customermail,\n 'giftcard_name' => $data['giftcard_name'],\n 'giftcard_msg' => $data['giftcard_msg'],\n 'created_date' => $date,\n 'store_id' => $data['store_id'],\n 'expiry_date' => $exdate,\n 'giftcard_status' => $data['giftcard_status'],\n 'added_by' => 'Admin',\n 'is_notified' => 1,\n );\n $model = Mage::getModel('kartparadigm_giftcard/giftcard')->setData($data);\n $insertId = $model->save()->getId();\n // inserting in to trans table\n $transdata = array(\n 'giftcard_val' => $data['giftcard_val'],\n 'giftcard_id' => $insertId,\n 'order_id' => $orderid, //\n 'giftcard_bal' => $data['giftcard_val'],\n 'giftcard_balused' => 0,\n 'giftcard_code' => $code,\n 'giftcard_currency' => $data['giftcard_currency'],\n 'customer_name' => $data['receiver_name'],\n 'customer_mail' => $data['receiver_mail'],\n 'giftcard_name' => $data['giftcard_name'],\n 'created_date' => $date,\n 'transac_date' => $date,\n 'store_id' => $data['store_id'],\n 'expiry_date' => $exdate,\n 'giftcard_status' => $data['giftcard_status'],\n 'comment' => \"Added By Admin\"\n );\n $trasmodel = Mage::getModel('kartparadigm_giftcard/giftcardtrans')->setData($transdata);\n $trasmodel->save();\n \n $orderid++;\n $emailTemplateVariables['customername'] = \"Admin\";\n $emailTemplateVariables['giftcardname'] = $data['giftcard_name'];\n $emailTemplateVariables['giftcardval'] = Mage::app()->getLocale()->currency($data['giftcard_currency'])->getSymbol().\" \".$data['giftcard_val'];\n $emailTemplateVariables['giftcardcode'] = $code;\n $mediapath = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);\n if (strpos($mediapath, 'localhost') !== false) \n $emailTemplateVariables['templateimg'] = \"http://www.imagesbuddy.com/images/165/smile-greeting-card.jpg\";\n else \n $emailTemplateVariables['templateimg'] = $mediapath . \"giftcard/greet.jpg\";\n $emailTemplateVariables['themecolor'] = \"#32943F\";\n $emailTemplateVariables['textcolor'] = \"#BF0D0D\";\n $emailTemplateVariables['receivername'] = $customername;\n $emailTemplateVariables['custommsg'] = $msg;\n $emailTemplate->setSenderName(Mage::getStoreConfig('trans_email/ident_' . $type . '/name'));\n $emailTemplate->setSenderEmail(Mage::getStoreConfig('trans_email/ident_' . $type . '/email'));\n $emailTemplate->send($customermail, $customername, $emailTemplateVariables);\n \n}\n Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Giftcards Sent Successfully.'));\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "a02b716d4e6376e39e91e7a89192e63e", "score": "0.60498273", "text": "function wpb_sender_name( $original_email_from ) {\r\n\treturn 'Tim Smith';\r\n}", "title": "" }, { "docid": "8ce3436622c61d28669409c4b30a1963", "score": "0.60486203", "text": "function wpb_sender_name( $original_email_from ) {\n return 'Company Name';\n}", "title": "" }, { "docid": "bb1c374cf58e49a087bbe6a949ee0355", "score": "0.6037294", "text": "function ret_safety_email($email, $name=''){\r\n $ar=split(\"@\",$email);\r\n if (!empty($name)) {\r\n $ret=\"<script type=\\\"text/javascript\\\">emailE=('\".$ar[0].\"@' + '\".$ar[1].\"'); document.write('<a class=\\\"contact-email\\\" href=\\\"mailto:' + emailE + '\\\">$name</a>'); </script>\";\r\n } else {\r\n $ret=\"<script type=\\\"text/javascript\\\">emailE=('\".$ar[0].\"@' + '\".$ar[1].\"'); document.write('<a class=\\\"contact-email\\\" href=\\\"mailto:' + emailE + '\\\">' + emailE + '</a>'); </script>\";\r\n }\r\n return $ret;\r\n}", "title": "" }, { "docid": "ea15717c1305a53eb646a479ad3bff93", "score": "0.59420145", "text": "function wpb_sender_name( $original_email_from ) {\n\treturn 'GGCN';\n}", "title": "" }, { "docid": "c9b1f4d83f64f8f7fcec2fa5a6663ef4", "score": "0.5930694", "text": "public function email()\n {\n return $this->randomCharacters(self::DIGITS . self::ALPHABET_LOWER, $this->intBetween(3, 10))\n . '@example.'\n . $this->topLevelDomain();\n }", "title": "" }, { "docid": "272f77c112841e753233a35cc2892451", "score": "0.59284383", "text": "function send_mail_to_winner11($userClass){\n\tif(empty($userClass->email)){ return false; }\n\t\n\t$giftList = array_gif6();\n\t$userClass->gift_name = isset($giftList[$userClass->gift_id]) ? $giftList[$userClass->gift_id] : null;\n\t\n\t$contentCard = '';\n\t$contentVoucher = '';\n\t$contentApplyFor = ' ';\n\t$contactLater = 'Mobiistar sẽ liên hệ với bạn về quy trình nhận giải thưởng sau khi chương trình kết thúc vào ngày 04/02/2017.<br><br>';\n\tif($userClass->gift_id >= 12 && $userClass->gift_id <= 19){ /* Neu trung voucher */\n\t\t$contentVoucher = \"\n\t\tMã voucher: <label style=\\\"color: #fd1011;\\\">$userClass->code</label><br>\n\t\tThời hạn sử dụng mã voucher đến hết ngày 28/02/2017.<br>\n\t\tLưu ý: Voucher chỉ được sử dụng một lần và không có giá trị cộng gộp với các chương trình ưu đãi khác.<br>\n\t\tMã voucher được áp dụng để mua <label style=\\\"color: #737bfd;\\\">$userClass->model_name</label> tại các địa điểm sau:<br>\n\t\t1. Trang Mua Hàng Online của Mobiistar:&nbsp;<a href=\\\"http://muahang.mobiistar.vn/ \\\" target=\\\"_blank\\\">http://muahang.mobiistar.vn/ </a><br>\n\t\t2. Hệ thống showroom Mobiistar:<br>\n\t\t- TPHCM: 40 Phạm Ngọc Thạch, Phường 6, Quận 3, TPHCM<br>\n\t\t- Hà Nội: Tầng 8, Tòa nhà An Minh, số 36 Hoàng Cầu, Đống Đa, Hà Nội<br>\n\t\t- Đà Nẵng: 354 Hải Phòng, Quận Thanh Khê, Đà Nẵng<br>\n\t\tThời gian làm việc: Từ 8h AM - 12h AM, 13h30 PM - 17h PM thứ 2 đến thứ 7 trong tuần.<br><br>\n\t\t\";\n\t\t$contentApplyFor = 'áp dụng cho sản phẩm <label style=\"color: #737bfd;\">'.$userClass->model_name.'</label> ';\n\t\t$contactLater = ''; /* Nếu trúng voucher thì phát luôn chứ k cần Một lần nữa bla bla */\n\t}\n\tif($userClass->gift_id >= 7 && $userClass->gift_id <= 11){ /* Neu trung card dien thoai */\n\t\t$carrierList = array_carrier();\n\t\tif(empty($userClass->code)){\n\t\t\t$userClass->code = 'Liên hệ CSKH của Mobiistar';\n\t\t}\n\t\tif(empty($userClass->carrier)){\n\t\t\t$userClass->carrier = 'Liên hệ CSKH của Mobiistar';\n\t\t} else {\n\t\t\t$userClass->carrier = isset($carrierList[$userClass->carrier]) ? $carrierList[$userClass->carrier] : null;\n\t\t}\n\t\t$contentCard = \"Mã thẻ cào: <label style=\\\"color: #fd1011;\\\">$userClass->code</label><br> Mạng di động bạn đã chọn: $userClass->carrier<br><br>\";\n\t\t$contactLater = ''; /* Nếu trúng thẻ cào thì phát luôn chứ k cần Một lần nữa bla bla */\n\t}\n\t\n\t$userClass->full_name = ucwords($userClass->full_name); // viet hoa cac ky tu dau cua ten\n\t$title = '[MOBIISTAR] Chúc mừng '.(addslashes($userClass->full_name)).' đã trúng thưởng chương trình “LÌ XÌ TẾT, ĐÓN LỘC ĐẦU NĂM”';\n\tif(empty($userClass->resend)){ /* Neu khong phai la email khieu nai */\n\t\t$content = file_get_contents(MEDIAPATH.'files/mail_to_win11.html'); /* Noi dung se de trong file html o thu muc media/files */\n\t} else {\n\t\t$content = file_get_contents(MEDIAPATH.'files/mail_to_win11_R.html'); /* Noi dung se de trong file html o thu muc media/files */\n\t}\n\t\n\t/* Thay the nhung thong tin can thiet tu noi dung trong file */\n\t$content = str_replace('VAR_NAME', $userClass->full_name, $content);\n\t$content = str_replace('VAR_GIFT', $userClass->gift_name, $content);\n\t$content = str_replace('VAR_APPLY_FOR', $contentApplyFor, $content);\n\t$content = str_replace('VAR_CONTENT_CARD', $contentCard, $content);\n\t$content = str_replace('VAR_CONTENT_VOUCHER', $contentVoucher, $content);\n\t$content = str_replace('VAR_CONTACT_LATER', $contactLater, $content);\n\t\n\t//\trequire_once(APPPATH.'third_party/mail/class.phpmailer.php');\n\trequire_once(APPPATH.'third_party/mail/PHPMailerAutoload.php');\n\t$mail = new PHPMailer();\n\t$mail->IsSMTP();\n\t$mail->SMTPAuth = true;\n\t$mail->Host = \"email-smtp.us-west-2.amazonaws.com\";\n\t$mail->Port = \"587\";\n\t$mail->SMTPSecure = \"tls\";\n\t$mail->Username = \"AKIAJEDEGEVJAFFXEVTA\";\n\t$mail->Password = \"AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU\";\n\t$mail->SetFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n\t$mail->CharSet = 'UTF-8';\n\t\n\t$mail->Subject = $title;\n\t$body = $content;\n\t$mail->MsgHTML($body);\n\t$mail->AddAddress($userClass->email, \"\");\n\t// $mail->AddAddress('conglinh.tran@mobiistar.vn', \"Leon\");\n\t//\t$mail->AddCC('hotro@mobiistar.vn', \"\");\n\t// $mail->AddCC('an.le@mobiistar.vn', \"\");\n\t//\t $mail->AddCC('hoa.tang@mobiistar.vn', \"\");\n\t//\t $mail->AddBCC('buihuynh.kinhluan@gmail.com', \"Kinh Luan\");\n\t$mail->AddBCC('kinhluan.mobiistar@gmail.com', \"Kinh Luan\");\n\t$mail->AddBCC('tuan.tran@mobiistar.vn', \"Tuan Xuong\");\n\t$mail->AddBCC('conglinh.tran@mobiistar.vn', \"Leon\");\n\treturn $mail->Send();\n}", "title": "" }, { "docid": "655671f8858b09125ebe702df2a225db", "score": "0.5877454", "text": "function wpb_sender_email( $original_email_address ) {\r\n\treturn 'tim.smith@example.com';\r\n}", "title": "" }, { "docid": "5801a2dd5a4ca1d6868625d6f0443767", "score": "0.58678794", "text": "function website_email() {\n $sender_email= 'EMAIL';\n return $sender_email;\n}", "title": "" }, { "docid": "09ca0199f32cef8e99c0f853b975a866", "score": "0.5857751", "text": "public function getGiftRecipientEmail()\n {\n return $this->gift_recipient_email;\n }", "title": "" }, { "docid": "e050d27fc97eacc1addc0b2830a5a260", "score": "0.5857028", "text": "function envelope_mail($userClass){\n if(empty($userClass->email)){ return false; }\n if(filter_var($userClass->email, FILTER_VALIDATE_EMAIL) === false){ return false; }\n\n $giftList = envelopes_gifts();\n if(!isset($userClass->gift_id) || !isset($giftList[$userClass->gift_id])){\n return false;\n }\n $userClass->full_name = ucwords($userClass->full_name); // viet hoa cac ky tu dau cua ten\n if($userClass->gift_id == 1 || $userClass->gift_id == 2){ /* Noi dung trung non dien thoai */\n $title = 'Chúc mừng bạn nhận lì xì lớn từ Mobiistar - Trúng 01 '.$giftList[$userClass->gift_id].'!';\n $mainContent = 'Mobiistar chúc bạn một năm mới Mậu Tuất tràn tài lộc và đầy niềm vui nhé! Cảm ơn bạn đã tham gia hái lì xì từ Mobiistar và chúc mừng bạn đã may mắn trúng 01 điện thoại Zumbo S2 Dual trong chương trình \"Nhận Lộc Tết Đông Đủ Đẹp\".';\n $mainContent.='<br>';\n $mainContent.='Máy sẽ được giao hàng đến tận nhà theo địa chỉ bạn cung cấp.';\n $mainContent.='<br>';\n $mainContent.='<br>';\n $mainContent.='Lưu ý:';\n $mainContent.='<br>';\n $mainContent.='- Toàn bộ chi phí giao hàng và vận chuyển đều do Mobiistar chịu trách nhiệm.';\n $mainContent.='<br>';\n $mainContent.='- Khách hàng phải xuất trình đầy đủ các giấy tờ theo quy định mới có thể nhận máy.';\n } elseif ($userClass->gift_id == 3){ /* Noi dung trung non bao hiem */\n $carrierList = carrier_list_arr();\n $title = 'Chúc mừng bạn nhận được lì xì từ Mobiistar - Trúng 01 '.$giftList[$userClass->gift_id].'.';\n $mainContent = 'Mobiistar chúc mừng bạn đã may mắn trúng 01 nón bảo hiểm thời trang. Với phần quà này, Mobiistar thân chúc bạn một năm mới nhiều bình an và may mắn nhé!';\n $mainContent.='<br>';\n $mainContent .= 'Nón sẽ được giao hàng đến tận nhà theo địa chỉ bạn cung cấp.';\n } elseif ($userClass->gift_id > 3 && $userClass->gift_id < 10){ /* Noi dung trung non the cao */\n// $carrierList = carrier_list_arr();\n $title = 'Chúc mừng bạn nhận được lì xì từ Mobiistar - Trúng 01 '.$giftList[$userClass->gift_id].'.';\n $mainContent = 'Thẻ cào của bạn có mã thẻ là: '.(isset($userClass->code) ? $userClass->code : 'Liên hệ BTC');\n $mainContent.='<br>';\n $mainContent .= 'Nhà mạng bạn đã chọn: '.(isset($userClass->carrier_name) ? $userClass->carrier_name : 'N/A');\n } elseif ($userClass->gift_id == 10){ /* Noi dung trung code free-shipping */\n $title = 'Chúc mừng bạn nhận được lì xì từ Mobiistar - Trúng 01 '.$giftList[$userClass->gift_id].'.';\n $mainContent = 'Mobiistar chúc mừng bạn đã may mắn trúng 01 mã giao hàng miễn phí free-shipping. Với phần quà nay, Mobiistar chúc bạn một năm mới thuận buồm xuôi gió như thời gian ship cực nhanh mà lại miễn phí từ dịch vụ free-shipping của Mobiistar vậy!';\n $mainContent.='<br>';\n $mainContent .= 'Mã được áp dụng khi bạn mua hàng online cho bất kì sản phẩm nào của Mobiistar tại website http://muahang.mobiistar.vn theo 3 bước sau:';\n $mainContent.='<br>';\n $mainContent.='- Bước 1: Vào website http://muahang.mobiistar.vn/ chọn mua sản phẩm như bình thường';\n $mainContent.='<br>';\n $mainContent.='- Bước 2: Nhận cuộc gọi xác nhận đơn hàng và ưu đãi từ nhân viên Mobiistar';\n $mainContent.='<br>';\n $mainContent.='- Bước 3: Nhận hàng và thanh toán đúng với số tiền ưu đãi mà nhân viên xác nhận cho bạn';\n $mainContent.='<br>';\n $mainContent.='Lưu ý: Mã giao hàng miễn phí chỉ áp dụng với những trường hợp vận chuyển dưới 100K.';\n $mainContent.='<br>';\n $mainContent.='<br>';\n $mainContent.='Năm mới đến rồi, còn chờ gì mà chưa sắm ngay điện thoại mới với mã giao hàng miễn phí đặc biệt từ Mobiistar để đón Tết Đông Đủ Đẹp!';\n } else{\n return false;\n }\n $content = file_get_contents(MEDIAPATH.'files/envelopes.html'); /* Noi dung se de trong file html o thu muc media/files */\n\n /* Thay the nhung thong tin can thiet tu noi dung trong file */\n $content = str_replace('VAR_NAME', $userClass->full_name, $content);\n $content = str_replace('VAR_BODY', $mainContent, $content);\n\n //\trequire_once(APPPATH.'third_party/mail/class.phpmailer.php');\n require_once(APPPATH.'third_party/mail/PHPMailerAutoload.php');\n $mail = new PHPMailer();\n $mail->IsSMTP();\n $mail->SMTPAuth = true;\n $mail->Host = \"email-smtp.us-east-1.amazonaws.com\";\n $mail->Port = \"587\";\n $mail->SMTPSecure = \"tls\";\n $mail->Username = \"AKIAJEDEGEVJAFFXEVTA\";\n $mail->Password = \"AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU\";\n $mail->SetFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n $mail->CharSet = 'UTF-8';\n\n $mail->Subject = $title;\n $body = $content;\n $mail->MsgHTML($body);\n $mail->AddAddress($userClass->email, addslashes($userClass->full_name));\n $mail->AddBCC('conglinh.tran@mobiistar.vn', \"Leon\");\n return $mail->Send();\n}", "title": "" }, { "docid": "f5a49412187229bf0eeb488811b8c9ee", "score": "0.58378965", "text": "function ay_new_mail_from($email) {\r\n $email = 'ayan@yenbekbay.kz'; \r\n return $email;\r\n}", "title": "" }, { "docid": "866ad55396ffbcc5f00b90b06c75cfab", "score": "0.5805346", "text": "function ct_wp_mail_from ($email) {\n return \"support@debatetrade.com\";\n}", "title": "" }, { "docid": "78e7e41fb48ba53195d44621c372b66b", "score": "0.5796942", "text": "function signupScreenEmailDetails()\n {\n return \"Un email de vérification vous sera envoyé à cette adresse\";\n }", "title": "" }, { "docid": "5104fa40d9522b634b5d2b564f6170f0", "score": "0.57936805", "text": "function get_email($matches) {\n\t$removers = array('\"','\\\\', 'mailto:');\n\t$href = str_replace($removers,'', un_mash($matches[1]));\n\treturn '[email='.str_replace('%20', ' ', $href).']'.$matches[2].'[/email]';\n}", "title": "" }, { "docid": "1b3abe82d70285003463ddd3c057ef46", "score": "0.57780933", "text": "function submitMessage($direct, $name, $email, $message) {\n //echo \"From submit message()\";\n $to = \"sydneybucc@gmail.com\";\n $subject = \"the subject\";\n // Disclaimer - was advised to use the $extra[] code to manually change my name when emailing\n $extra[] = \"Reply to: \".$email;\n $extra[] = 'From: Sydney Bucci <sydneybucc@gmail.com>';\n $msg = \"Name: \".$name.\"\\n\\nEmail: \".$email.\"\\n\\nMessage: \".$message;\n mail($to, $subject, $msg, implode(\"\\r\\n\", $extra));\n //$direct = $direct.\"?name={$name}\";\n }", "title": "" }, { "docid": "b656c14b1e7f43d9db4fc956f029cd4f", "score": "0.57499033", "text": "public function sendEmail()\n {\n // check for non_empty email-field rather than unlocked user?\n if ($this['Residents']['unlocked'] == true)\n {\n\n\n // compose the message\n $messageBody = get_partial('global/billingMail', array('firstName' => $this['Residents']['first_name'],\n 'start' => $this['billingperiod_start'],\n 'end' => $this['billingperiod_end'],\n 'billId' => $this['id'],\n 'amount' => $this['amount'],\n 'accountNumber' => $this['Residents']['account_number'],\n 'bankNumber' => $this['Residents']['bank_number'],\n 'itemizedBill' => $this->getItemizedBill()));\n $message = Swift_Message::newInstance()\n ->setFrom(sfConfig::get('hekphoneFromEmailAdress'))\n ->setTo($this['Residents']['email'])\n ->setSubject('[HEKphone] Deine Rechnung vom ' . $this['date'])\n ->setBody($messageBody);\n\n return sfContext::getInstance()->getMailer()->send($message);\n }\n }", "title": "" }, { "docid": "5bca5e003d9c45313892e848b0971290", "score": "0.5748453", "text": "function email($suggestors_email,$feedback_text,$suggestors_name){\r\n\r\n\r\nrequire_once 'swiftmailer/lib/swift_required.php';\r\n\r\n// Create the mail transport configuration\r\n$transport = Swift_SmtpTransport::newInstance('smtpout.secureserver.net',80)\r\n ->setUsername('feedback@documendz.com')\r\n ->setPassword('feedbackZofler6991')\r\n ;\r\n\r\n\r\n// Create the message\r\n$message = Swift_Message::newInstance(Subject);\r\n$message->setTo(array(\r\n \"feedback@documendz.com\"\r\n));\r\n\r\n\r\n$message->setSubject($suggestors_email);\r\n$message->setBody($feedback_text,'text/html');\r\n$message->setFrom(\"feedback@documendz.com\",$suggestors_name);\r\n\r\n// Send the email\r\n$mailer = Swift_Mailer::newInstance($transport);\r\n$mailer->send($message);\r\n\r\n}", "title": "" }, { "docid": "0da021509cf75739fa40d9eab8cfbcdf", "score": "0.5725508", "text": "public function emailSender();", "title": "" }, { "docid": "477bfb17b616a4bea544d366bce4091e", "score": "0.57211995", "text": "function getMail();", "title": "" }, { "docid": "ddc89275ffc8f959c91f69daae8f5320", "score": "0.5720293", "text": "public function sendEmail()\n {\n switch ($this->getScenario()) {\n case \"defect\":\n $subject = \"Неполадки на сайте\";\n break;\n case \"feedback\":\n $subject = \"Пожелание или предложение\";\n break;\n default:\n $subject = \"Сообщение с сайта\";\n break;\n }\n $this->verifyCode = null;\n return Yii::$app\n ->mailer\n ->compose(\n ['html' => 'contacts-html', 'text' => 'contacts-text'],\n ['model' => $this]\n )\n ->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name])\n ->setTo(Yii::$app->params['adminEmail'])\n ->setSubject($subject . ' ' . Yii::$app->name)\n ->send();\n }", "title": "" }, { "docid": "b286668bc8c2cd7cfb05ceb30ad865bf", "score": "0.5707621", "text": "public function getTechnicalSupportEmail();", "title": "" }, { "docid": "cee660e9688c8e09570eeb3327d58fb1", "score": "0.56923825", "text": "function smcf_send($name, $phone, $time, $message, $cc) {\n\tglobal $to, $extra, $subject;\n\n\t// Filter and validate fields\n\t$name = $name;\n\t$time = $time;\n\t$subject = $name .' '.'-'.' '. \"заказал обратный звонок!\";\n\t$phone = $phone;\n\t\n\t\t$time .= \"\";\n\t\t$message .= \"\";\n\t\t$email = $to;\n\t\t$cc = 0; // do not CC \"sender\"\n\t\n\n\t// Add additional info to the message\n\t/*if ($extra[\"ip\"]) {\n\t\t$message .= \"\\n\\nIP: \" . $_SERVER[\"REMOTE_ADDR\"];\n\t}\n\tif ($extra[\"user_agent\"]) {\n\t\t$message .= \"\\n\\nUSER AGENT: \" . $_SERVER[\"HTTP_USER_AGENT\"];\n\t}*/\n\n\t// Set and wordwrap message body\n\t$body .= \"Имя отправителя: $name\\n\\n\";\n\t$body .= \"Телефон: $phone\\n\\n\";\n\t$body .= \"Удобное для звонка время: $time\\n\\n\";\n\t$body .= \"Примечание: $message\";\n\t$body = wordwrap($body, 70);\n\n\t// Build header\n\t$email = $headers; \n\t$headers = \"From: $phone <$headers\\n>\";\n\tif ($cc == 1) {\n\t\t$headers .= \"Cc: $name\\n\";\n\t}\n\t$headers .= \"X-Mailer: PHP/SimpleModalContactForm\";\n\n\t// UTF-8\n\t//if (function_exists('mb_encode_mimeheader')) {\n\t//\t$subject = mb_encode_mimeheader($subject, \"UTF-8\", \"B\", \"\\n\");\n\t//}\n \n\t$headers .= \"MIME-Version: 1.0\\n\";\n\t$headers .= \"Content-type: text/plain; charset=utf-8\\n\";\n\t$headers .= \"Content-Transfer-Encoding: quoted-printable\\n\";\n\n\t// Send email\n\t@mail($to, $subject, $body, $headers) or \n\t\tdie(\"Unfortunately, a server issue prevented delivery of your message.\");\n}", "title": "" }, { "docid": "3877c80a62b88b304ddd913b413e0722", "score": "0.5689303", "text": "function sendCard($email,$ms){\r\n\t$ch=curl_init();\r\n\t$message=$ms;\r\n\tcurl_setopt($ch,CURLOPT_URL,MailConfig::URL);\r\n\t$fields=array(\r\n\t\t'name' => 'SGSITS ROBOTICS CLUB',\r\n\t\t'from' => MailConfig::MAIL,\r\n\t\t'email' => $email,\r\n\t\t'subject' => 'SRC ID Card',\r\n\t\t'message'\t=> $message\r\n\t);\r\n\t$fields_string=\"\";\r\n\tforeach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }\r\nrtrim($fields_string, '&');\r\n\tcurl_setopt($ch,CURLOPT_POST,true);\r\n\tcurl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );\r\n\tcurl_setopt( $ch, CURLOPT_POSTFIELDS,$fields_string);\r\n $result = curl_exec( $ch );\r\n\r\n //------------------------------\r\n // Error? Display it!\r\n //------------------------------\r\n\r\n if ( curl_errno( $ch ) )\r\n {\r\n\t\t//set code to error code along with its data\r\n\t\t//$response=array('code' => '3', 'data' =>'Registered but Card Not Sent '. curl_error($ch));\r\n\t\t//curl_close($ch);\r\n\t\t//die(json_encode($response))\t;\r\n }\r\n\r\n //------------------------------\r\n // Close curl handle\r\n //------------------------------\r\n\r\n curl_close( $ch );\r\n\r\n //------------------------------\r\n // Debug GCM response\r\n //------------------------------\r\n\treturn $result;\r\n}", "title": "" }, { "docid": "1127572d52c025da1c728519d2124f7f", "score": "0.56605", "text": "function get_email($matches) {\n $removers = array('\"', '\\\\', 'mailto:');\n $href = str_replace($removers, '', un_mash($matches[1]));\n return '[email=' . str_replace('%20', ' ', $href) . ']' . $matches[2] . '[/email]';\n}", "title": "" }, { "docid": "2737ed1a4ef1118db0f4181ebb63941a", "score": "0.56360227", "text": "function kmw_wp_mail_from_name( $original_email_from ) {\n\t\t$name = get_bloginfo('name');\n\t\treturn $name;\n\t}", "title": "" }, { "docid": "0ef83b19d763f1eb7213b249b3511172", "score": "0.56235826", "text": "function signupScreenEmail()\n {\n return \"Votre adresse e-mail\";\n }", "title": "" }, { "docid": "d0c2cadd1451c3152b50f9c238782a5f", "score": "0.5617971", "text": "public function sendVerificationEmail($email, $name){\n \n $secret = \"35onoi2=-7#%g03kl\";\n \n $hash = password_hash($email . $secret, PASSWORD_DEFAULT);\n \n $mail = new \\Helpers\\PhpMailer\\Mail();\n $mail->setFrom(\"noreply@something.com\", \"Something\");\n $mail->addAddress($email);\n $mail->subject(\"Something Verification Email\");\n $mail->body(\"\n <!DOCTYPE html>\n <html>\n <body>\n Hello $name,\n <br>\n <br>\n You're almost done with your Something account registration. The only thing you need to do now is to activate your account by clicking the link below.\n <br>\n <a href='http://www.something.sellerstam.mebokund.com/activate?email=$email&code=$hash'>http://www.something.sellerstam.mebokund.com/activate?email=$email&code=$hash</a>\n </body>\n </html>\n \");\n $mail->send();\n }", "title": "" }, { "docid": "f75b89a3900c7b80f90c930ed5d89dd6", "score": "0.5600954", "text": "public function emailRecipient();", "title": "" }, { "docid": "4e77f1179eaef9771712d06c3d27dab3", "score": "0.55953056", "text": "function sus_reminders_email_address()\n{\n return 'glow_sus_reminders@williams.edu';\n}", "title": "" }, { "docid": "3ba155b8afd5ace47763bcbe615e5df6", "score": "0.5587635", "text": "function send_mail_to_winner_bk($userClass){\n if(empty($userClass->email)){ return false; }\n\n $giftList = array_gif3();\n $carrierList = array_carrier();\n $userClass->gift_name = isset($giftList[$userClass->gift_id]) ? $giftList[$userClass->gift_id] : null;\n\n $full_name = ucwords($userClass->full_name); // viet hoa cac ky tu dau cua ten\n\t$title = '[MOBIISTAR] Chúc mừng bạn đã trúng thưởng chương trình “VÂN TAY NÓI GÌ VỀ SỰ THÀNH CÔNG CỦA BẠN?”';\n\t$content = file_get_contents(MEDIAPATH.'files/mail_to_win.html'); /* Noi dung se de trong file html o thu muc media/files */\n\n /* Thay the nhung thong tin can thiet tu noi dung trong file */\n\t$content = str_replace('VAR_NAME', $userClass->full_name, $content);\n\t$content = str_replace('VAR_GIFT', $userClass->gift_name, $content);\n\n\trequire_once(APPPATH.'third_party/mail/class.phpmailer.php');\n\t$mail = new PHPMailer();\n\t$mail->IsSMTP();\n\t$mail->SMTPAuth = true;\n\t$mail->Host = \"email-smtp.us-west-2.amazonaws.com\";\n\t$mail->Port = \"587\";\n\t$mail->SMTPSecure = \"tls\";\n\t$mail->Username = \"AKIAJEDEGEVJAFFXEVTA\";\n\t$mail->Password = \"AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU\";\n\t$mail->SetFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n\t$mail->CharSet = 'UTF-8';\n\n\t$mail->Subject = $title;\n\t$body = $content;\n\t$mail->MsgHTML($body);\n\t$mail->AddAddress($userClass->email, \"\");\n//\t$mail->AddCC('hotro@mobiistar.vn', \"\");\n\t// $mail->AddCC('an.le@mobiistar.vn', \"\");\n//\t $mail->AddCC('hoa.tang@mobiistar.vn', \"\");\n//\t $mail->AddCC('buihuynh.kinhluan@gmail.com', \"\");\n\t $mail->AddCC('conglinh.tran@mobiistar.vn', \"Leon\");\n\treturn $mail->Send();\n}", "title": "" }, { "docid": "39344e6c9939c6b8cb0a18243db4d592", "score": "0.55820984", "text": "function send_email_to_buyer($to)\n{\n $adminEmail = 'zioncrm@crm4you.com';\n $adminName = 'CRM';\n $to = $to;\n $subject = \"You have received one mail\";\n $message = '<html><body>';\n $message .= '<table rules=\"all\" style=\"border-color: #666;\" cellpadding=\"10\">';\n $message .= '<tr>';\n $message .= '<td colspan=\"2\"><img src=\"http://crm4you.co.il/favicon.png\" /></td>';\n $message .= '</tr>';\n $message .= '<tr style=\"background: #eee;\">';\n $message .= '<td colspan=\"2\"><strong>Your details have been seen.</strong></td>';\n $message .= '</tr>';\n $message .= '</body></html>';\n $headers .= \"MIME-Version: 1.0\\r\\n\";\n $headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\n $headers .= \"From: \" . $adminName . \"<\" . $adminEmail . \">\" . \"\\r\\n\";\n $send = mail($to, $subject, $message, $headers);\n}", "title": "" }, { "docid": "4acce0146e4ae690e9432b9dbf67d72c", "score": "0.55713934", "text": "public function get_from_name() {\n\t\tif ( ! $this->from_name ) {\n\t\t\t$this->from_name = give_get_option( 'from_name', wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ) );\n\t\t}\n\n\t\treturn apply_filters( 'give_email_from_name', wp_specialchars_decode( $this->from_name ), $this );\n\t}", "title": "" }, { "docid": "466e72b7e2bbc23f4ef9ad1edc9c4ee8", "score": "0.5568592", "text": "function forgottenScreenEmailPrep()\n {\n return 'mailto:admin@arctic-lands.com?Subject=Login%20Help&body=S\\'il vous plaît, aider-moi avec mon compte!%0D%0A%0D%0AMon pseudo est: <Insérer Pseudo>%0D%0A%0D%0AJe pense que l\\'adresse e-mail associé à ce compte est: <Insérer Adresse e-mail>%0D%0A%0D%0ALe problème est le suivant: <Insérer une description du problème ici>';\n }", "title": "" }, { "docid": "bad4ca69ef61bb2bb445081472eee0f9", "score": "0.5566436", "text": "public function html_email($name, $recipient_mail, $recipient_name, $subject, $sender_mail, $sender_name)\n\t{\n\t $data = array('name'=>$name);\n\n\t Mail::send('mail', $data, function($message) {\n\t\t $message->to($recipient_mail, $recipient_name)->subject\n\t\t\t($subject);\n\t\t $message->from($sender_mail,$sender_name);\n\t });\n\t}", "title": "" }, { "docid": "cf652df779ea3c18284178089403d61d", "score": "0.55537343", "text": "public function getEmail()\n {\n $title = $this->getTitle();\n return \" \" . $title . \"\\n\";\n }", "title": "" }, { "docid": "787389f67847ea31e234d7fee12c64f3", "score": "0.5541899", "text": "function forgottenScreenDetails()\n {\n return \"Please type the email used to create your account\";\n }", "title": "" }, { "docid": "f718d8bd978c073bc2f039492245f4d8", "score": "0.55380476", "text": "public function get_name(): string {\n return get_string('process_news_email', 'block_news');\n }", "title": "" }, { "docid": "0de603737c1a58e90cb86fdfec587d9a", "score": "0.5534686", "text": "private static function mailer_method($name) {\n\t\t\t$out = \"\\n\";\n\t\t\t$out .= \" public function \" . $name . '($to)' . \" {\\n\";\n\t\t\t$out .= '\t \t$this->recipients = $to;' . \"\\n\";\n\t\t\t$out .= '\t \t$this->from = \\'\\';' . \"\\n\";\n\t\t\t$out .= '\t \t$this->subject = \\'\\';' . \"\\n\";\n\t\t\t$out .= \"\t }\\n\";\n\t\t\treturn $out;\n\t\t}", "title": "" }, { "docid": "c2d666daf5d85f142217d18ce486d89f", "score": "0.55236644", "text": "public function getRecipientName(): string\n {\n return $this->name;\n }", "title": "" }, { "docid": "e037e6231f9b1d6990ffd3bb1a7e2abe", "score": "0.55105716", "text": "public function getName()\n\t{\n\t\treturn 'EmailObfuscate';\n\t}", "title": "" }, { "docid": "3f7805f1826ea8165250f81f87a1d911", "score": "0.5507748", "text": "function create_mmail($matches) {\nglobal $emailaddress;\n\t$removers = array('\"','\\\\'); // in case they add quotes\n\t$mashed_address = str_replace($removers,'',$matches[1]);\n\t$mashed_address = bbmashed_mail($emailaddress.'?subject='.$mashed_address);\n\t$mashed_address = str_replace(' ', '%20', $mashed_address); // hmmm\n\treturn '<a class=\"cb-mail\" title=\"mail me!\" href=\"'.$mashed_address.'\\\">'.$matches[2].'<!--mail--></a>';\n}", "title": "" }, { "docid": "8a5120fe221930dcee55f13214119b52", "score": "0.550438", "text": "function generate_mail($add,$n)\n{\n\t$subj= \"Nonce from Agora\";\n\t$mess= \"Dear Voter,\\nThank you for using AGORA, in order to complete your voting operation\\nyou have to click on the link below once.\\n\\n$confirm_url?address=$add&nonce=$n\\n\\nHave a nice day!\\n--\\nNOTICE: Please do not reply to agora@boun.edu.tr as it is not a valid email address.\";\n\n\t$header =\"From: agora@kerevit.cmpe.boun.edu.tr\\nReply-to:gonullu@boun.edu.tr\";\n\tmail($add,$subj,$mess,$header);\n}", "title": "" }, { "docid": "befc2b030e00a32929d4d84825853a75", "score": "0.5499635", "text": "function exchange_mail($userClass){\n if(empty($userClass->email)){ return false; }\n if(filter_var($userClass->email, FILTER_VALIDATE_EMAIL) === false){ return false; }\n\n $userClass->full_name = ucwords($userClass->full_name); // viet hoa cac ky tu dau cua ten\n $title = 'Đăng kí thành công Mã Đông Đủ Đẹp sắm PRIME X Max và Zumbo S2 Dual với mức giá cực sướng.';\n $content = file_get_contents(MEDIAPATH.'files/exchange.html'); /* Noi dung se de trong file html o thu muc media/files */\n\n /* Thay the nhung thong tin can thiet tu noi dung trong file */\n $content = str_replace('VAR_NAME', $userClass->full_name, $content);\n $content = str_replace('VAR_CODE', $userClass->voucher_code, $content);\n\n //\trequire_once(APPPATH.'third_party/mail/class.phpmailer.php');\n require_once(APPPATH.'third_party/mail/PHPMailerAutoload.php');\n// require_once(APPPATH.'third_party/mail/class.smtp.php');\n\n $mail = new PHPMailer();\n $mail->IsSMTP();\n $mail->SMTPAuth = true;\n $mail->Host = \"email-smtp.us-east-1.amazonaws.com\";\n $mail->Port = \"587\";\n $mail->SMTPSecure = \"tls\";\n $mail->Username = \"AKIAJEDEGEVJAFFXEVTA\";\n $mail->Password = \"AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU\";\n $mail->SetFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n $mail->CharSet = 'UTF-8';\n// $mail->SMTPDebug = 2;\n\n// $mail->AltBody = 'Đăng kí thành công Mã Đông Đủ Đẹp sắm PRIME X Max và Zumbo S2 Dual với mức giá cực sướng.';\n// $mail->Body = '<a href=\"'.base_url().'\">sdajs</a>';\n// $mail->isHTML(true);\n $mail->AddAddress($userClass->email, addslashes($userClass->full_name));\n// $mail->AddAddress('conglinh.tran@mobiistar.vn', \"Leon\");\n $mail->AddBCC('conglinh.tran@mobiistar.vn', \"Leon\");\n\n $mail->Subject = $title;\n $mail->MsgHTML($content);\n\n $emailed = $mail->Send();\n if(!$emailed) {\n echo 'Message could not be sent.';\n// echo 'Mailer Error: ' . $mail->ErrorInfo;\n }\n return $emailed;\n}", "title": "" }, { "docid": "b441aedac30c83df736f7d200fe62995", "score": "0.5499482", "text": "public function message()\n {\n return 'You must use our email example@femto15.com';\n }", "title": "" }, { "docid": "ccadd945e0a2920f1ee1f405b93d40a8", "score": "0.5497527", "text": "function send_email_forgot_password($phone,$name,$forgot_pass_email)\n{\n\t\t\n\t\t\n}", "title": "" }, { "docid": "195b19094b8e7477cb04d38b8e6b2f36", "score": "0.54919904", "text": "public function getFromName();", "title": "" }, { "docid": "3fe714e5f69ee31f740891c098d98d8d", "score": "0.5483784", "text": "function uberspace_mail_from ($email ){\n return get_current_user() . '@' . php_uname('n');\n}", "title": "" }, { "docid": "14271bfcaddb3b470e68b51d345413a3", "score": "0.5478116", "text": "function invite_mail2($userClass){\n\tif(empty($userClass->email)){ return false; }\n\tif(filter_var($userClass->email, FILTER_VALIDATE_EMAIL) === false){ return false; }\n\t\n\t$contentVoucher = \"\n\t\t\t\n\t\t\";\n\t\n\t$userClass->full_name = ucwords($userClass->full_name); // viet hoa cac ky tu dau cua ten\n\t// \t$title = '[MOBIISTAR] Chúc mừng '.(addslashes($userClass->full_name)).' nhận mã ưu đãi từ chương trình “XXX”';\n\t// \t$title = 'Mobiistar chúc mừng '.(addslashes($userClass->full_name)).' đặt trước thành công trong chương trình đặt trước PRIME X Max (2018): \"ĐẶT CÀNG SỚM, GIÁ CÀNG SƯỚNG\" ';\n\t$title = 'Thư mời tham gia Offline Trải nghiệm PRIME X Max 2018 cùng Camera Tinh Tế Miền Tây';\n\t$content = file_get_contents(MEDIAPATH.'files/invite2.html'); /* Noi dung se de trong file html o thu muc media/files */\n\t\n\t/* Thay the nhung thong tin can thiet tu noi dung trong file */\n\t// \t\t$content = str_replace('VAR_NAME', $userClass->full_name, $content);\n\t$content = str_replace('VAR_CONTENT_VOUCHER', $contentVoucher, $content);\n\t// \t$content = str_replace('VOUCHER_VALUE', $userClass->voucher_value, $content);\n\t\n\t//\trequire_once(APPPATH.'third_party/mail/class.phpmailer.php');\n\trequire_once(APPPATH.'third_party/mail/PHPMailerAutoload.php');\n\t$mail = new PHPMailer();\n\t$mail->IsSMTP();\n\t$mail->SMTPAuth = true;\n\t$mail->Host = \"email-smtp.us-east-1.amazonaws.com\";\n\t$mail->Port = \"587\";\n\t$mail->SMTPSecure = \"tls\";\n\t$mail->Username = \"AKIAJEDEGEVJAFFXEVTA\";\n\t$mail->Password = \"AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU\";\n\t$mail->SetFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n\t$mail->CharSet = 'UTF-8';\n\t\n\t$mail->Subject = $title;\n\t$body = $content;\n\t$mail->MsgHTML($body);\n// \t$mail->AddEmbeddedImage(MEDIAPATH.\"files/thumoifan2.png\", \"myattach\", \"thumoi.png\");\n// \t$mail->AddAttachment(MEDIAPATH.\"files/thumoifan2.png\");\n\t$mail->AddAddress($userClass->email, addslashes($userClass->full_name));\n\t// \t$mail->AddAddress('kinhluan.mobiistar@gmail.com', addslashes($userClass->full_name));\n\t// \t$mail->AddAddress('conglinh.tran@mobiistar.vn', \"Leon\");\n\t// \t\t$mail->AddCC('hotro@mobiistar.vn', \"\");\n\t// $mail->AddCC('an.le@mobiistar.vn', \"\");\n\t//\t $mail->AddCC('hoa.tang@mobiistar.vn', \"\");\n\t//\t $mail->AddBCC('buihuynh.kinhluan@gmail.com', \"Kinh Luan\");\n\t// \t\t$mail->AddBCC('kinhluan.mobiistar@gmail.com', \"Kinh Luan\");\n\t// $mail->AddBCC('tuan.tran@mobiistar.vn', \"Tuan Xuong\");\n\t// $mail->AddBCC('hoa.tang@mobiistar.vn', \"A Hoa\");\n\t$mail->AddBCC('conglinh.tran@mobiistar.vn', \"Leon\");\n\t// $mail->AddBCC('an.le@mobiistar.vn', \"Leon\");\n\treturn $mail->Send();\n}", "title": "" }, { "docid": "153928974b94a85cbd603165ad7c16f1", "score": "0.54717225", "text": "function invite_mail($userClass){\n\tif(empty($userClass->email)){ return false; }\n\tif(filter_var($userClass->email, FILTER_VALIDATE_EMAIL) === false){ return false; }\n\t\n\t\t$contentVoucher = \"\n\t\t\n\t\t\";\n\t\t\n\t\t$userClass->full_name = ucwords($userClass->full_name); // viet hoa cac ky tu dau cua ten\n\t\t// \t$title = '[MOBIISTAR] Chúc mừng '.(addslashes($userClass->full_name)).' nhận mã ưu đãi từ chương trình “XXX”';\n\t\t// \t$title = 'Mobiistar chúc mừng '.(addslashes($userClass->full_name)).' đặt trước thành công trong chương trình đặt trước PRIME X Max (2018): \"ĐẶT CÀNG SỚM, GIÁ CÀNG SƯỚNG\" ';\n\t\t$title = 'Thư mời tham gia MỞ BÁN VÀ OFFLINE PRIME X MAX 2018';\n\t\t$content = file_get_contents(MEDIAPATH.'files/invite.html'); /* Noi dung se de trong file html o thu muc media/files */\n\t\t\n\t\t/* Thay the nhung thong tin can thiet tu noi dung trong file */\n// \t\t$content = str_replace('VAR_NAME', $userClass->full_name, $content);\n\t\t$content = str_replace('VAR_CONTENT_VOUCHER', $contentVoucher, $content);\n\t\t// \t$content = str_replace('VOUCHER_VALUE', $userClass->voucher_value, $content);\n\t\t\n\t\t//\trequire_once(APPPATH.'third_party/mail/class.phpmailer.php');\n\t\trequire_once(APPPATH.'third_party/mail/PHPMailerAutoload.php');\n\t\t$mail = new PHPMailer();\n\t\t$mail->IsSMTP();\n\t\t$mail->SMTPAuth = true;\n\t\t$mail->Host = \"email-smtp.us-east-1.amazonaws.com\";\n\t\t$mail->Port = \"587\";\n\t\t$mail->SMTPSecure = \"tls\";\n\t\t$mail->Username = \"AKIAJEDEGEVJAFFXEVTA\";\n\t\t$mail->Password = \"AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU\";\n\t\t$mail->SetFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n\t\t$mail->CharSet = 'UTF-8';\n\t\t\n\t\t$mail->Subject = $title;\n\t\t$body = $content;\n\t\t$mail->MsgHTML($body);\n\t\t$mail->AddEmbeddedImage(MEDIAPATH.\"files/thumoifan.png\", \"myattach\", \"thumoi.png\");\n\t\t$mail->AddAttachment(MEDIAPATH.\"files/thumoifan.png\");\n\t\t$mail->AddAddress($userClass->email, addslashes($userClass->full_name));\n\t\t// \t$mail->AddAddress('kinhluan.mobiistar@gmail.com', addslashes($userClass->full_name));\n\t\t// \t$mail->AddAddress('conglinh.tran@mobiistar.vn', \"Leon\");\n// \t\t$mail->AddCC('hotro@mobiistar.vn', \"\");\n\t\t// $mail->AddCC('an.le@mobiistar.vn', \"\");\n\t\t//\t $mail->AddCC('hoa.tang@mobiistar.vn', \"\");\n\t\t//\t $mail->AddBCC('buihuynh.kinhluan@gmail.com', \"Kinh Luan\");\n// \t\t$mail->AddBCC('kinhluan.mobiistar@gmail.com', \"Kinh Luan\");\n\t\t// $mail->AddBCC('tuan.tran@mobiistar.vn', \"Tuan Xuong\");\n\t\t// $mail->AddBCC('hoa.tang@mobiistar.vn', \"A Hoa\");\n\t\t$mail->AddBCC('conglinh.tran@mobiistar.vn', \"Leon\");\n\t\t// $mail->AddBCC('an.le@mobiistar.vn', \"Leon\");\n\t\treturn $mail->Send();\n}", "title": "" }, { "docid": "16d9294cf5de567171c759a3f5c02f69", "score": "0.5464691", "text": "public function sent_mail_details_apple_french($vEmail)\n {\n \t$ci = get_instance();\n\t\t$ci->load->library('email');\n\t\t$config['protocol'] = \"smtp\";\n\t\t$config['smtp_host'] = \"mail.easyapps.fr\";\n\t\t$config['smtp_port'] = \"25\";\n\t\t$config['smtp_user'] = \"mail@easyapps.fr\"; \n\t\t$config['smtp_pass'] = \"easyapps1@French\";\n\t\t$config['charset'] = \"utf-8\";\n\t\t$config['mailtype'] = \"html\";\n\t\t$config['newline'] = \"\\r\\n\";\n\t\t\n\t\t$message=\"\";\n\t\t$message.=\"<html>\n\t\t\t\t\t<head>\n\t\t\t\t\t\t<title>Easy App</title>\n\t\t\t\t\t</head>\n\t\t\t\t\t<body>\n\t\t\t\t\t\t<p>Cher utilisateur,</p>\n\t\t\t\t\t\t<br />\n\t \t\t<p>Merci pour la publication de votre application avec EasyApps. Les détails de votre app sont au titre.</p>\n\t \t\t<p>Nom App : \".$data['tAppName'].\"</p>\n\t \t\t<p>Mots-clés de cette appli : \".$data['tAppKeywords'].\"</p>\n\t \t\t<p>App Description : \".$data['tDescription'].\"</p>\n\t \t\t<p>site Web : \".$data['vWebsite'].\"</p>\n\t \t\t<p>App Prix : \".$data['fPrice'].\"</p>\n\t \t\t<br /><br />\n\t \t\t<p>l'information Apple</p>\n\t \t\t<p>1) Vous avez accepté la politique de l'entreprise et nous a fourni vos informations d'identification Apple Store à Plublish application. Vos pouvoirs sont comme suit.\n</p>\n\t\t\t\t\t\t<br /><br />\n\t\t\t\t\t\t<p>Apple Store utilisateur Id : \".$data['vAppleUsername'].\"</p>\n\t\t\t\t\t\t<p>Apple Store Mot de passe : \".$data['vAppleUsername'].\"</p>\n\t\t\t\t\t\t<br /><br />\n\t\t\t\t\t\t<p>3) Vous avez accepté la politique de l'entreprise et nous a permis de publier votre application sous notre compte de la société.</p>\n\t \t</body>\n\t\t\t\t</html>\";\n\t\t//Si vous avez des questions n’hésiter à nous contacter par mail sur mail@easyapps.fr ou appelez-nous au 0693420541\t\t\n\t\t$ci->email->initialize($config);\n\t\t$ci->email->from('mail@easyapps.fr', 'easyapps');\n\t\t$ci->email->to($data['vAppleUsername']);\n\t\t$this->email->reply_to('mail@easyapps.fr', 'Explendid Videos');\n\t\t$ci->email->subject('Easyapps');\n\t\t$ci->email->message($message);\n\t\t$ci->email->send();\n\t\t\n\t\treturn true;\n }", "title": "" }, { "docid": "3503fed0f08d6d41236d38840f6f73bc", "score": "0.5463671", "text": "public function getGiftCardCode();", "title": "" }, { "docid": "022cd16ed3c96f1931a12e74e3440c67", "score": "0.54620457", "text": "function forgottenScreenEmailPlaceholder()\n {\n return \"Adresse e-mail\";\n }", "title": "" }, { "docid": "219064b4b136fab80679cbfb20bed04f", "score": "0.5458822", "text": "function get_mmail($matches) {\nglobal $emailaddress;\n\t$removers = array('\"','\\\\'); // not strictly necessary\n\t$href = str_replace($removers,'',$matches[1]);\n\t$href = str_replace('mailto:'.$emailaddress.'?subject=', '', un_mash($href));\n\treturn '[mmail='.str_replace('%20', ' ', $href).']'.$matches[2].'[/mmail]';\n}", "title": "" }, { "docid": "4e99b51e117a8b38e10dab149863f09c", "score": "0.5453989", "text": "public function send_email() {\n\t\tob_start();\n\t\t$this->load_template( $this->template['template'], $this->template['params'], $this->template['type'] );\n\t\t$email_content = ob_get_contents();\n\t\tob_end_clean();\n\t\t$result = \\wp_mail( $this->to, $this->subject, $email_content, $this->headers );;\n\n\t\treturn $result;\n\n\t\t// TODO: Change sender name and email\n\t\t//https://www.wpbeginner.com/plugins/how-to-change-sender-name-in-outgoing-wordpress-email/\n\t\t//https://wordpress.org/support/topic/change-sender-email-from-wordpress/\n\n\t}", "title": "" }, { "docid": "0a6d9a649f16e7c031cc736c874b2678", "score": "0.5452914", "text": "public function testEmail()\n {\n // $this->sendThankYouEmail('Aubrey','acottle@taimalabs.com','iPhone','m',rand(99999,999999));\n $this->sendThankYouEmail('Jason', 'connectedideas@hotmail.com', 'iPhone', 'm', rand(99999, 999999));\n return 'Sent';\n }", "title": "" }, { "docid": "793c53328fa3ccd23c76630f7f1fe303", "score": "0.54455066", "text": "function vcp_send_thank_you_mail_to_user ($user_email)\n\n{\n \n\n\t\t\t\t$body = '<html><body><img src=\"https://www.webtalkies.in/wp-content/uploads/2016/10/Thank-you.jpg\" /></body></html>';\n\t\t\t\t$subject = 'Successful Transaction at webtalkies.in';\n\t\t\t\t$to = $user_email;\n\t\t\t\t$headers = array('Content-Type: text/html; charset=UTF-8');\n\t\t\t\tlog_me('Body of email is: '. $body);\n\t\t\t\tlog_me('Subject of email is: '. $subject);\n\t\t\t\t$mail_sent = wp_mail( $to, $subject, $body, $headers );\n \n return $mail_sent; \n \n\n }", "title": "" }, { "docid": "77bb2567b0e05bbcf1615626b977d090", "score": "0.5441026", "text": "function get_name_eh_from_mail(){\r\n\tglobal $ehfromemailloc;\r\n\t$theme_data = implode('', file(ABSPATH.\"/wp-content/plugins/\".$ehfromemailloc.\"/eh_from_mail.php\"));\r\n\tif (preg_match(\"|Plugin Name:(.*)|i\", $theme_data, $name_eh_from_mail)) {\r\n\t\t$name_eh_from_mail = $name_eh_from_mail[1];\r\n\t}\r\n\treturn $name_eh_from_mail;\r\n}", "title": "" }, { "docid": "df2b224ba9603f13acc87421b2e6fa44", "score": "0.5436473", "text": "public function myTestMail($myEmail, $myName)\n {\n \t$myEmail = $myEmail;\n \t\n \t$emailData['subject'] = 'Registration Confirmation';\n \t$emailData['customername'] = $myName;\n \t\n \tMail::to($myEmail)->send(new MyTestEmail($emailData));\n \t\n \t//dd(\"Mail Send Successfully\");\n }", "title": "" }, { "docid": "de457648d29bd6740ccf91cdeb505816", "score": "0.54249865", "text": "function berichtKlant($customerFirstName, $customerInsertion, $customerLastName, $customerEmail, $customerMessage){\n $emailMessage = \"\n <html>\n <head>\n <style>\n h1{\n text-align: center;\n }\n </style>\n </head>\n <body>\n <h1>Vraag van klant</h1><br>\n <p>Beste Servicedeskmedewerker,</p>\n <p>\".$customerFirstName.\" \".$customerInsertion.\" \".$customerLastName.\" bericht het volgende</p>\n <p>\".$customerMessage.\"</p>\n </body>\n </html>\n \";\n\n $email = new PHPMailer();\n \n $email->isSMTP();\n $email->Host = 'ssl://smtp.gmail.com';\n $email->Port = 465;\n $email->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;\n $email->SMTPAuth = true;\n $email->Username = \"customerservice.nerdygadgets@gmail.com\";\n $email->Password = \"AdMiN312\";\n\n\n\n\n\n // Bericht\n $email->SetFrom($customerEmail);\n $email->Subject = \"NerdyGadgets - Bericht van klant\";\n $email->Body = $emailMessage;\n $email->addAddress('customerservice.nerdygadgets@gmail.com');\n $email->addReplyTo($customerEmail);\n $email->isHTML(true);\n \n\n // var_dump($email->Sendmail);\n if(!$email->send()){\n echo \"Mailer Error: \" . $email->ErrorInfo;\n }\n else{\n return TRUE;\n }\n\n\n}", "title": "" }, { "docid": "db0605396d1ee9979e2ce536e717b017", "score": "0.5421382", "text": "public function sendEmailWithoutDirectDebit()\n {\n // check for non_empty email-field rather than unlocked user?\n if ($this['Residents']['unlocked'] == true)\n {\n\n\n // compose the message\n $messageBody = get_partial('global/billingMailWithoutDirectDebit', array('firstName' => $this['Residents']['first_name'],\n 'start' => $this['billingperiod_start'],\n 'end' => $this['billingperiod_end'],\n 'billId' => $this['id'],\n 'amount' => $this['amount'],\n 'itemizedBill' => $this->getItemizedBill()));\n $message = Swift_Message::newInstance()\n ->setFrom(sfConfig::get('hekphoneFromEmailAdress'))\n ->setTo($this['Residents']['email'])\n ->setSubject('[HEKphone] Deine Rechnung vom ' . $this['date'])\n ->setBody($messageBody);\n\n return sfContext::getInstance()->getMailer()->send($message);\n }\n }", "title": "" }, { "docid": "4faa9c800a2443d7e58d7d7f7915e747", "score": "0.5407897", "text": "public function getNameOnCard()\n {\n return $this->nameOnCard;\n }", "title": "" }, { "docid": "7dbbb41a17ca6e0f55b29a7f2b31a52b", "score": "0.5405224", "text": "public static function displayName(): string\n {\n return Craft::t('nsm-fields', 'NSM Email');\n }", "title": "" }, { "docid": "18665416d0db8e6efafaab46abc622c0", "score": "0.5402449", "text": "public static function getEmailFarewell($iso = null, $mail=null):string\n {\n return static::getEmailLine('mail_farewell',$iso, $mail);\n }", "title": "" }, { "docid": "61757ef797658201e1cd42aff441d403", "score": "0.53954405", "text": "function vpm_username_to_email( $buffer ) {\n\t// Login page\n\t$buffer = str_replace( 'Username', 'Email Address', $buffer );\n\n\t// Password reset page\n\t$buffer = str_replace( 'username or ', '', $buffer );\n\t$buffer = str_replace( ' or E-mail', '', $buffer );\n\n\t// Send it back\n\treturn $buffer;\n}", "title": "" }, { "docid": "2602ff42d49c3e88f78df606934c7916", "score": "0.538974", "text": "public function getTextAuthRecipient(): string;", "title": "" }, { "docid": "e4c8db2ed72a64a124333a30d5dafce8", "score": "0.538684", "text": "public function send_email($name, $recipient_mail, $recipient_name, $subject, $sender_mail, $sender_name, $url, $body)\n {\n $data = array('name' => $name, 'url' => $url, 'body' => $body);\n Mail::send('auth.verification_mail', $data, function ($message) use (&$recipient_mail, $recipient_name, $subject, $sender_mail, $sender_name) {\n $message->to($recipient_mail, $recipient_name)->subject\n ($subject);\n $message->from($sender_mail, $sender_name);\n });\n }", "title": "" }, { "docid": "bd43713976c3c3c4e490fd2264d2179a", "score": "0.5385345", "text": "function get_sender_full_name() {\n $parts = array(\n $this->payload['from']['first_name'],\n $this->payload['from']['last_name']\n );\n\n return implode(' ', array_filter($parts));\n }", "title": "" }, { "docid": "32b4fd9cb76dbf8075336e3f063d2550", "score": "0.53711605", "text": "public function sendqr_image($email, $name, $upc_code, $qr_image, $product_name) {\n $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n $headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\n $this->load->library('email');\n $this->email->from('info@myallergyalert.com', 'My Allergy Alert');\n $this->email->to($email);\n $this->email->subject('My Allergy Alert Qr Code details for your Product');\n $message = '<html><body>';\n $message .= 'Hi <b>' . $name . '</b>,<br>';\n $message .= 'This is Unique Qr code for your Product <b>' . $product_name . '<b>';\n $message .= '<h3>' . $upc_code . '</h3>';\n $message .= '</body></html>';\n $this->email->message($message);\n $this->email->attach($qr_image);\n return $this->email->send();\n }", "title": "" }, { "docid": "9c3e815f7b20708ff2bdaef79c7c18d1", "score": "0.53709877", "text": "public function getOrganizerMail();", "title": "" }, { "docid": "007ced018971ef45f540e071d841c078", "score": "0.5370954", "text": "public function getCustomerSenderName()\n {\n return parent::getData(self::FIELD_CUSTOMER_SENDER_NAME);\n }", "title": "" }, { "docid": "b1dfd040979f67b2db445802122321d8", "score": "0.53699416", "text": "public function Get_MailDisplayName($s){\n switch($s)\n {\n case 'BANK_TT':\n return 'BANK TT';\n break;\n case 'ERM':\n return 'ERM';\n break;\n case 'ACTIVE_CC_LIST':\n return 'ACTIVE CC LIST';\n break;\n case 'CUSTOMER_EXPIRY':\n return 'CUSTOMER EXPIRY LIST';\n break;\n case 'OUTSTANDING_PAYEES':\n return 'OUTSTANDING PAYEES LIST';\n break;\n case 'NON_PAYMENT_REMINDER':\n return 'NON PAYMENT REMINDER';\n break;\n case 'NON_PAYMENT_NON_INTIMATED_CC':\n return 'NON PAYMENT_NON INTIMATED CC LIST';\n break;\n case 'MONTHLY_PAYMENT_NON_INTIMATED_CC':\n return 'MONTHLY PAYMENT_NON INTIMATED CC LIST';\n break;\n case 'DEPOSIT_DEDUCTION':\n return 'DEPOSIT DEDUCTION';\n break;\n case 'INVOICE':\n return 'INVOICE';\n break;\n case 'CONTRACT':\n return 'CONTRACT';\n break;\n case 'INVOICE_N_CONTRACT':\n return 'INVOICE N CONTRACT';\n break;\n case 'MONTHLY_PAYMENT_REMINDER':\n return 'MONTHLY PAYMENT REMINDER';\n break;\n case 'DROP_TEMP_TABLE':\n return 'TEMPORARY TABLE LIST';\n break;\n }\n }", "title": "" }, { "docid": "d218bcbf6a2cd594e95e62c0844b1dcf", "score": "0.5369076", "text": "function email($cust_email,$message,$from,$subject,$name)\n\n{\n$from = preg_replace(\"([\\r\\n])\", \"\", $from);\n$subject = preg_replace(\"([\\r\\n])\", \"\", $subject);\n$cust_email = preg_replace(\"([\\r\\n])\", \"\", $cust_email);\n\n$match = \"/(bcc:|cc:|content\\-type:)/i\";\nif (preg_match($match, $from) ||\n preg_match($match, $subject) ||\n preg_match($match, $message)) {\n die(\"Header injection / Spam Attempt detected.. Cannot continue \");\n}\n\n\n\t\t$http_host = 'safedataxchange.com'; // Web address where email is being sent \n\t\t$sEmail=\"$cust_email\"; // To \n//\t\t$strSenderEmail = \"no-reply@$http_host\"; // From\n\t\t$strSenderEmail = $from; // From\n\t\t$strSenderName =\"$name\"; \n\t\t$subject=$subject;\n//\t\t$subject=\"Your Refund Request Approved\";\n\t\t$delimiter = \"\\n\";\n\t\t// ------------------- Email Headers [Dont Change it] ---------------------------\n\t\t$headers = 'From: '. $strSenderName .' <' . $strSenderEmail . '>' . $delimiter;\n\t\t$headers .= 'Reply-To: ' . $strSenderEmail . $delimiter;\n\t\t$headers .= 'Return-Path: ' . $strSenderEmail . $delimiter;\n\t\t$headers .= 'MIME-Version: 1.0' . $delimiter;\n\t\t$msgid = '<' . gmdate('YmdHs') . '.' . substr(md5($message . microtime()), 0, 6) . rand(100000, 999999) . '@' . $http_host . '>';\n\t\t$headers .= 'Message-ID: ' . $msgid . $delimiter;\n\t\t$headers .= 'X-Priority: 3' . $delimiter;\n\t\t$headers .= 'X-Mailer: Private Mailer' . $delimiter;\n\t\t$headers .= 'Content-Type: text/html; charset=\\\"iso-8859-1\\\"' . $delimiter;\n\t\t$headers .= \"Content-Transfer-Encoding: 8bit\" . $delimiter;\n\t\t// ---------------------- End Email Headers ------------------------------------ \n\t\t// ---------------------- HTML EMAIL MESSAGE ---------------------------------------\n/*$message = \"<html>\n<head>\n<title>Refund Request Approved</title>\n</head>\n<body>\n<p>Dear Valued Customer,</p>\n<p>Your Refund request has been approved and your account will be credited with $\".$inv_info['totalamt'].\" within two weeks. Thank you for being with us</p>\n</body>\n</html>\n\";*/\n\t\t// ---------------------- END HTML EMAIL MESSAGE ---------------------------------------\n\n\t\tif(!mail($sEmail, $subject, $message, $headers))\n\t\t{\n\t\t\tprint \"failed\";\n\t\t}\n\n\n}", "title": "" }, { "docid": "887caf8e41042d661c1a58dc150f8fe5", "score": "0.53636724", "text": "public function getName(): string\n {\n if (null === $this->name) {\n Preg::matchAll('/@[a-zA-Z0-9_-]+(?=\\s|$)/', $this->line->getContent(), $matches);\n\n if (isset($matches[0][0])) {\n $this->name = ltrim($matches[0][0], '@');\n } else {\n $this->name = 'other';\n }\n }\n\n return $this->name;\n }", "title": "" }, { "docid": "0fa752611e272d892332bd9c4cdc70e4", "score": "0.5360722", "text": "protected function _getOrderEmail(){\n\t\t$result = '';\n\t\tif(isset($this->_orderInfo['email'])){\n\t\t\t$result = $this->_orderInfo['email'];\n\t\t}else if(isset($this->_ebayOrder->TransactionArray->Transaction->Buyer->Email)){\n\t\t\tif ($this->_ebayOrder->TransactionArray->Transaction->Buyer->Email!='Invalid Request')\n\t\t\t\t$result = $this->_ebayOrder->TransactionArray->Transaction->Buyer->Email;\n\t\t\telse\n\t\t\t\t$result = '';\n\t\t} else if (isset($this->_ebayOrder->TransactionArray->Transaction[0]) &&\n\t\t\tisset($this->_ebayOrder->TransactionArray->Transaction[0]->Buyer->Email))\n\t\t{\n\t\t\t$result = $this->_ebayOrder->TransactionArray->Transaction[0]->Buyer->Email;\n\t\t}\n\t\treturn trim($result);\n\t}", "title": "" }, { "docid": "57427310b09456f76fa29473062a499e", "score": "0.5359995", "text": "public function getServiceMail(){\n return 'info@3dtf.com';\n }", "title": "" }, { "docid": "cc1eb8172283e8caafbcdd04632ec933", "score": "0.5358581", "text": "public function getFromEmail();", "title": "" }, { "docid": "fc648385ceb4173b3f57b4462afe8eb8", "score": "0.53563154", "text": "public static function getEmailGreeting($iso = null, $mail=null):string\n {\n return static::getEmailLine('mail_greeting',$iso, $mail);\n }", "title": "" }, { "docid": "66bc262092ac3f41a63833a0b527bda8", "score": "0.5356289", "text": "function Fromsendbymail($data){\r\r\n\r\r\n\t\t\t\t\t$mids =$data['groups']['emailids'];\r\r\n\t\t\t\t\t$expmids = explode(',',$mids);\r\r\n\t\t\t\t\t\r\r\n\t\t\t\t\t\t$gname = $data['groups']['hiddname'];\r\r\n\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t$pdfname = $data['groups']['hiddpdfname'];\r\r\n\t\t\t\t\t\t$description = nl2br($data['groups']['description']);\r\r\n\t\t\t\t\t $httppath ='http://'.$_SERVER['HTTP_HOST'].'/freeformpdf/'.$pdfname;\r\r\n\t\t\t\t\t\t$to='';\r\r\n\t\t\t\t\t\t$messagecontent='';\r\r\n\t\t\t\t\t\t$subject='';\r\r\n\t\t\t\t\tfor($i=0;$i < count($expmids);$i++){\r\r\n\t\t\t\t\t\t//echo $i.'<br>';\r\r\n\t\r\r\n\t\t\t\t\t\t\t\t$messagecontent = \"Ad Book Form<br><br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\".SITENAME.\" sent you this adbook form on behalf of <strong>$gname</strong>. Here is the invitation from <strong>$gname:</strong><br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$description\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<br><br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='$httppath'>Click here to get your adbook form </a><br><br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tOr copy and past the link below to your browser<br>\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$httppath\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\";\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$subject = \"Ad book Free Form - adbookonline\";\r\r\n\t\t\t \r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$from = SITE_EMAIL;\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$to = \"$expmids[$i]\";\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($to){\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif($this->sendMailContent($to,$from,$subject,$messagecontent)){\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$ok = 'ok';\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$ok = '';\r\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\t\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t\t//exit;\r\r\n\t\t\t\t\tif($ok=='ok'){\r\r\n\t\t\t\t\t\t\treturn 'send';\r\r\n\t\t\t\t\t}else{\r\r\n\t\t\t\t\t\t\treturn 'notsend';\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t\t\r\r\n\t\t\t\t\t\r\r\n\t\t\t\t\r\r\n\t\t\t\t\t\r\r\n\t\t}", "title": "" }, { "docid": "aa5c9c2d6ae2cad27cf6a2716b2ab7eb", "score": "0.5354428", "text": "function getEmailUsername() {\n return '******';\n}", "title": "" }, { "docid": "bea91d7ade07075c37c71c97dae5daa1", "score": "0.53541", "text": "public function Verificado($name,$fullname,$name_secre,$email,$admin,$id,$escuela) {\r\n Mail::send('email.verificado',['name' =>$name ,'$name_secre' => $name_secre,'escuela'=>$escuela,'fullname' => $fullname,'id'=>$id],\r\n function($message) use ($admin,$name,$name_secre,$email,$id,$escuela)\r\n {\r\n $message->from('admin@tensoft.com', 'App Sistema de Gestion de Documentos');\r\n $message->to($admin, $name)->cc($name_secre,$name_secre)->subject('El Jefe de Departamento a Verificado la Solicitud de Preparaduria N° '.$id);\r\n }\r\n );\r\n return $email;\r\n }", "title": "" }, { "docid": "2714cca23b69af5adc89efecfa6bc55d", "score": "0.5346529", "text": "public function basic_email($name, $recipient_mail, $recipient_name, $subject, $sender_mail, $sender_name)\n\t{\n\t $data = array('name'=>$name);\n\n\t Mail::send(['text'=>'mail'], $data, function($message) {\n\t\t $message->to($recipient_mail, $recipient_name)->subject\n\t\t\t($subject);\n\t\t $message->from($sender_mail,$sender_name);\n\t });\n\t}", "title": "" }, { "docid": "5ea28cc9d33c8ad3582e3cd874486586", "score": "0.5346086", "text": "public function getHashedEmail()\n {\n $email = Mage::helper('customer')->getCustomer()->getEmail();\n if($email) {\n return md5(mb_convert_encoding(trim(strtolower(str_replace('\"',\"\",$email))), \"UTF-8\", \"ISO-8859-1\"));\n }\n return '';\n }", "title": "" }, { "docid": "185a681d0931500059bc1931df1aa5bb", "score": "0.53458357", "text": "function submitMessage($direct, $name, $email, $subject, $message){\n // Will work only when live\n //echo \"from submitMessage\";\n $to = \"soumya@soumyav.com\"; //Who this is going to? Me!\n $subject = \"Message from website soumyav.com\";\n $extra = \"Reply-To: \".$email;\n $msg = \"Name: \".$name.\"\\n\\nEmail: \".$email.\"\\n\\nMessage: \".$message; //\\n works in html web and application based files. just another <br> tag\n mail($to,$subject,$msg,$extra); //expects things in a particular order - Where is it going to, the subject, the message and extra isn't a requirement\n $direct = $direct.\"?name={$name}\";\n redirect_to($direct);\n }", "title": "" }, { "docid": "3764b9f3a62b92b375c4d74a446c2394", "score": "0.53448105", "text": "public function veriEmail($email, $name, $hp)\n {\n $mail = new PHPMailer();\n\n //Tell PHPMailer to use SMTP\n $mail->isSMTP();\n\n //Enable SMTP debugging\n //SMTP::DEBUG_OFF = off (for production use)\n //SMTP::DEBUG_CLIENT = client messages\n //SMTP::DEBUG_SERVER = client and server messages\n $mail->SMTPDebug = SMTP::DEBUG_OFF;\n\n //Set the hostname of the mail server\n $mail->Host = 'smtp.gmail.com';\n //Use `$mail->Host = gethostbyname('smtp.gmail.com');`\n //if your network does not support SMTP over IPv6,\n //though this may cause issues with TLS\n\n //Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission\n $mail->Port = 587;\n\n //Set the encryption mechanism to use - STARTTLS or SMTPS\n $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;\n\n //Whether to use SMTP authentication\n $mail->SMTPAuth = true;\n\n //Username to use for SMTP authentication - use full email address for gmail\n $mail->Username = 'Tenowmar@gmail.com';\n\n //Password to use for SMTP authentication\n $mail->Password = 'risixtwenty';\n\n //Set who the message is to be sent from\n $mail->setFrom($email, $name);\n\n //Set an alternative reply-to address\n // $mail->addReplyTo('agungztya@gmail.com', 'First Last');\n\n //Set who the message is to be sent to\n $mail->addAddress('Tenowmar@gmail.com', 'No reply');\n //Set the subject line\n $mail->Subject = 'Verifikasi User';\n\n //Read an HTML message body from an external file, convert referenced images to embedded,\n //convert HTML into a basic plain-text alternative body\n // $mail->msgHTML(file_get_contents('reset.html'), $this->views('reset'));\n\n $mail->Body = \"<p>Verifikasi akun user baru <br>\n username : $name <br>\n Email : $email <br>\n No HP : $hp <br>\n <a href = http://localhost/admin-TAS/daftar/updateAkun/$email/$hp>klk disini untuk verifikasi</a></p>\";\n //Replace the plain text body with one created manually\n $mail->AltBody = 'This is a plain-text message body';\n\n //Attach an image file\n // $mail->addAttachment('images/phpmailer_mini.png');\n\n //send the message, check for errors\n if (!$mail->send()) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "c232f0cb914c1ac0dc5b4aec5ff551f1", "score": "0.5344056", "text": "public function htmlEmail()\r\n {\r\n //Role l'amil en foramt affichable\r\n //retour emaiol\r\n //Paramtres non\r\n return htmlentities($this->email);\r\n\r\n }", "title": "" }, { "docid": "a1bf216ac5247b6ba258f668917c3a24", "score": "0.5343707", "text": "public function mwEmail( $atts ) {\n\n\t\t// address\n\t\t$defaultEmail = get_bloginfo( \"email\" );\n\t\t$customEmail = get_option( \"e-mail_address\" );\n\t\t\n\t\tif ( $customEmail ) {\n\n\t\t\t$email = $customEmail;\n\n\t\t} else { \n\n\t\t\t$email = $defaultEmail;\n\n\t\t}\n\n\t\t$html = ' ';\n\t\t$html .= '<a class=\"email\" href=\"mailto:'.$email.'\" title=\"E-Mail Us\" id=\"'.$atts[\"id\"].'-email\">'.$email.'</a>';\n\t\treturn $html;\n\t\t\n\t}", "title": "" }, { "docid": "12a8399f97bf3c86d6e3974280fc2cd1", "score": "0.5341585", "text": "function exchange_mail2($userClass){\n if(empty($userClass->email)){ return false; }\n if(filter_var($userClass->email, FILTER_VALIDATE_EMAIL) === false){ return false; }\n\n $userClass->full_name = ucwords($userClass->full_name); // viet hoa cac ky tu dau cua ten\n $title = 'Đăng kí thành công Mã Đông Đủ Đẹp sắm PRIME X Max và Zumbo S2 Dual với mức giá cực sướng.';\n $content = file_get_contents(MEDIAPATH.'files/exchange_test.html'); /* Noi dung se de trong file html o thu muc media/files */\n\n /* Thay the nhung thong tin can thiet tu noi dung trong file */\n $content = str_replace('VAR_NAME', $userClass->full_name, $content);\n $content = str_replace('VAR_CODE', $userClass->voucher_code, $content);\n\n //\trequire_once(APPPATH.'third_party/mail/class.phpmailer.php');\n require_once(APPPATH.'third_party/mail/PHPMailerAutoload.php');\n// require_once(APPPATH.'third_party/mail/class.smtp.php');\n\n $mail = new PHPMailer();\n// $mail->IsSMTP();\n// $mail->SMTPAuth = true;\n// $mail->Host = \"ssl://email-smtp.us-east-1.amazonaws.com\";\n// $mail->Port = \"443\";\n// $mail->SMTPSecure = \"ssl\";\n// $mail->Username = \"AKIAJEDEGEVJAFFXEVTA\";\n// $mail->Password = \"AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU\";\n// $mail->SetFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n// $mail->CharSet = 'UTF-8';\n// $mail->SMTPDebug = 2;\n//\n//// $mail->AltBody = 'Đăng kí thành công Mã Đông Đủ Đẹp sắm PRIME X Max và Zumbo S2 Dual với mức giá cực sướng.';\n//// $mail->Body = '<a href=\"'.base_url().'\">sdajs</a>';\n//// $mail->isHTML(true);\n//// $mail->AddAddress($userClass->email, addslashes($userClass->full_name));\n// $mail->AddAddress('tplus.tcl@gmail.com', \"Leon\");\n//// $mail->AddBCC('conglinh.tran@mobiistar.vn', \"Leon\");\n//\n// $mail->Subject = $title;\n// $mail->MsgHTML($content);\n//\n// $emailed = $mail->Send();\n// if(!$emailed) {\n// echo 'Message could not be sent.';\n// echo 'Mailer Error: ' . $mail->ErrorInfo;\n// }\n $mail->SMTPDebug = 3;\n $mail->CharSet = 'UTF-8';\n // Tell PHPMailer to use SMTP\n $mail->isSMTP();\n\n// Replace sender@example.com with your \"From\" address.\n// This address must be verified with Amazon SES.\n $mail->setFrom('chuongtrinh@mobiistar.vn', 'Mobiistar');\n\n// Replace recipient@example.com with a \"To\" address. If your account\n// is still in the sandbox, this address must be verified.\n// Also note that you can include several addAddress() lines to send\n// email to multiple recipients.\n $mail->addAddress('tplus.tcl@gmail.com', 'Tran Cong Linh');\n\n// Replace smtp_username with your Amazon SES SMTP user name.\n $mail->Username = 'AKIAJEDEGEVJAFFXEVTA';\n\n// Replace smtp_password with your Amazon SES SMTP password.\n $mail->Password = 'AgK8XPx2MLj2uVc5sQHLAzGeY5QGIDipvxZfB8m7lUkU';\n\n// Specify a configuration set. If you do not want to use a configuration\n// set, comment or remove the next line.\n// $mail->addCustomHeader('X-SES-CONFIGURATION-SET', 'ConfigSet');\n\n// If you're using Amazon SES in a region other than US West (Oregon),\n// replace email-smtp.us-west-2.amazonaws.com with the Amazon SES SMTP\n// endpoint in the appropriate region.\n $mail->Host = 'email-smtp.us-east-1.amazonaws.com';\n\n// The subject line of the email\n $mail->Subject = 'Amazon SES test (SMTP interface accessed using PHP)';\n\n// The HTML-formatted body of the email\n// $mail->Body = '<h1>Email Test</h1>\n// <p>This email was sent through the\n// <a href=\"https://aws.amazon.com/ses\">Amazon SES</a> SMTP\n// interface using the <a href=\"https://github.com/PHPMailer/PHPMailer\">\n// PHPMailer</a> class.</p>';\n$mail->Body = $content;\n// Tells PHPMailer to use SMTP authentication\n $mail->SMTPAuth = true;\n\n// Enable TLS encryption over port 587\n $mail->SMTPSecure = 'ssl';\n $mail->Port = 465;\n\n// Tells PHPMailer to send HTML-formatted email\n $mail->isHTML(true);\n\n// The alternative email body; this is only displayed when a recipient\n// opens the email in a non-HTML email client. The \\r\\n represents a\n// line break.\n $mail->AltBody = \"Email Test\\r\\nThis email was sent through the \n Amazon SES SMTP interface using the PHPMailer class.\";\n$emailed = $mail->send();\n if(!$emailed) {\n echo \"Email not sent. \" , $mail->ErrorInfo , PHP_EOL;\n } else {\n echo \"Email sent!\" , PHP_EOL;\n }\n\n return $emailed;\n}", "title": "" }, { "docid": "539cabf098d23b81aca59258e8f7a490", "score": "0.5339223", "text": "public function sendEmail($email, $name, $subject, $html, $author);", "title": "" }, { "docid": "2c6df36bd0793f236c1e845982c4fc8b", "score": "0.5336074", "text": "function contact_mail($name,$email,$subject,$message){\n $subject_mail= \"Message d'un utilisateur de mon blog\";\n $message_mail = ' \n <html lang=\"en\" style=\"font-family: sans-serif;\">\n <head>\n <meta charset=\"UTF-8\">\n </head>\n <body>\n\n <br/>Nom de l\\'utilisateur : '.$name.'\n <br/>Adresse mail de l\\'utilisateur : '.$email.'\n <br/>Sujet du message : '.$subject.'\n <br/>Message en entier : '.$message.'\n </body>\n </html>\n ';\n\n $header = \"MIME-Version: 1.0\\r\\n\";\n $header .= \"Content-type: text/html; charset=UTF-8\\r\\n\";\n $header .= 'From: jerome.lacquemant@gmail.com' . \"\\r\\n\" . 'Reply-To: jerome.lacquemant@gmail.com' . \"\\r\\n\" . 'X-Mailer: PHP/' . phpversion();\n\n mail(\"jerome.lacquemant@gmail.com\",$subject_mail,$message_mail,$header);\n }", "title": "" }, { "docid": "f3fc9244f1f7e891c7bd948844d93e8e", "score": "0.5335762", "text": "public function getCustomerEmail();", "title": "" }, { "docid": "f3fc9244f1f7e891c7bd948844d93e8e", "score": "0.5335762", "text": "public function getCustomerEmail();", "title": "" }, { "docid": "f9a0d607d6225eb842b505c050a9dfba", "score": "0.53300035", "text": "function contact_mail_user($name,$email,$subject,$message){\n $subject_mail= \"Message posté sur le blog de Jé'\";\n $message_mail = ' \n <html lang=\"en\" style=\"font-family: sans-serif;\">\n <head>\n <meta charset=\"UTF-8\">\n </head>\n <body>\n\n <br/>Voici les informations que vous m\\'avez envoyées :\n <br/>\n <br/>Votre nom utilisateur : '.$name.'\n <br/>Adresse mail utilisée : '.$email.'\n <br/>Sujet du message : '.$subject.'\n <br/>Message en entier : '.$message.'\n <br/>\n <br/>Je vous remercie pour votre message et vous répondrai dans un délai de 5 jours.\n <br/>\n <br/>Excellente journée !\n <br/>\n <br/>Jérôme L.\n\n\n </body>\n </html>\n ';\n\n $header = \"MIME-Version: 1.0\\r\\n\";\n $header .= \"Content-type: text/html; charset=UTF-8\\r\\n\";\n $header .= 'From: jerome.lacquemant@gmail.com' . \"\\r\\n\" . 'Reply-To: jerome.lacquemant@gmail.com' . \"\\r\\n\" . 'X-Mailer: PHP/' . phpversion();\n\n mail($email,$subject_mail,$message_mail,$header);\n }", "title": "" } ]
ef5bb1921f0059201c236a5f44664f92
Make a grid builder.
[ { "docid": "818460d22718637fffca718f5d8b02d3", "score": "0.0", "text": "protected function grid()\n {\n return Grid::make(new GoodsReturn(), function (Grid $grid) {\n\n $grid->header(function () {\n $tab = Tab::make();\n\n $tab->addLink('待审核', '?status=0', $this->status == 0 ? true : false);\n $tab->addLink('已拒绝', '?status=1', $this->status == 1 ? true : false);\n $tab->addLink('已同意', '?status=2', $this->status == 2 ? true : false);\n return $tab;\n });\n\n if ($this->status == 0) {\n $grid->model()->where('status', 0);\n } elseif ($this->status == 1) {\n $grid->model()->where('status', 1);\n } elseif ($this->status == 2) {\n $grid->model()->where('status', 2);\n }\n\n\n $grid->column('user_id')->display(\n function () {\n return GoodsUser::whereId($this->user_id)->value('username');\n }\n );\n $grid->column('goods_id')->display(\n function () {\n $goods_ids = explode(',', $this->goods_id);\n return GoodsInfo::whereIn('id', $goods_ids)->pluck('name');\n }\n )->label('blue2');\n $grid->column('numbering');\n $grid->column('amount');\n $grid->column('status')->select(admin_trans('goods-return.options.status'),true);\n $grid->column('reason');\n $grid->column('created_at','申请时间');\n $grid->column('more', '详情')->display('查看')\n ->modal(function ($modal) {\n $username = GoodsUser::whereId($this->user_id)->value('username');\n $modal->title($username . '- 退货详情');\n\n return GoodsReturnTable::make(['title' => $this->title]);\n });\n\n $grid->disableCreateButton();\n $grid->disableViewButton();\n $grid->filter(function (Grid\\Filter $filter) {\n $filter->panel();\n $filter->equal('user_id')->select(GoodsUser::all()\n ->pluck('username','id'))->width(3);\n $filter->like('numbering')->width(3);\n $filter->between('created_at','申请时间')->datetime()->width(6);\n });\n });\n }", "title": "" } ]
[ { "docid": "89d2495f2699a2566786cd1c7e15c435", "score": "0.726827", "text": "protected function grid()\n {\n $grid = new Grid(new Driver());\n\n $grid->column('id', __('Id'));\n $grid->column('name', __('Name'));\n $grid->column('number', __('Number'));\n // $grid->column('password', __('Password'));\n $grid->column('phone', __('Phone'));\n $grid->column('manage_car', __('Manage car'));\n $grid->column('add_time', __('Add time'));\n // $grid->column('remember_token', __('Remember token'));\n $grid->column('num_state', __('Num state'))->switch();\n\n return $grid;\n }", "title": "" }, { "docid": "fbc38628c0b263231064e98c75515775", "score": "0.7218252", "text": "protected function grid()\n {\n $grid = new Grid(new Direction());\n\n $grid->column('id', __('Id'));\n $grid->column('name', __(trans('hhx.name')));\n $grid->column('intro', __(trans('hhx.intro')));\n $grid->column('Img', __(trans('hhx.img')))->image();\n $grid->column('status', __(trans('hhx.status')))->using(config('hhx.status'));\n $grid->column('order_num', __(trans('hhx.order_num')));\n $grid->column('all_num', __(trans('hhx.all_num')));\n $grid->column('this_year', __(trans('hhx.this_year')));\n $grid->column('stock', __(trans('hhx.stock')));\n $grid->column('created_at', __(trans('hhx.created_at')));\n $grid->column('updated_at', __(trans('hhx.updated_at')));\n\n return $grid;\n }", "title": "" }, { "docid": "841efc581d8304ac55e1cb1fcb09b0b7", "score": "0.7064843", "text": "public function getGridBuilder($name);", "title": "" }, { "docid": "60c8eaf3a847fa989816da4a73e7352f", "score": "0.699701", "text": "protected function grid()\n {\n $grid = new Grid(new Goods());\n $grid->disableCreateButton();\n $grid->model()->where('subject_id', request()->subject_id);\n $grid->column('id', __('Id'));\n $grid->column('title', __('Title'));\n $grid->column('total', __('Total'));\n $grid->column('tags', __('Tags'))->display(function(){\n return explode(',', $this->tags);\n })->label();\n $grid->column('credit', __('Credit'));\n $grid->column('price', __('Price'));\n $grid->column('thumb', __('Thumb'))->display(function(){\n $url = Storage::disk('admin')->url($this->thumb);\n return \"<img src='{$url}' style='width:100px'/>\";\n });\n $grid->column('updated_at', __('Updated at'));\n $grid->column('created_at', __('Created at'));\n\n return $grid;\n }", "title": "" }, { "docid": "69d5310334fd6ce81d544fe64547e657", "score": "0.6995721", "text": "protected function grid()\n {\n $grid = new Grid(new Activity());\n\n $grid->column('id', __('Id'));\n $grid->column('name', __('Name'));\n $grid->column('image', __('Image'));\n $grid->column('user_roles', __('User roles'));\n $grid->column('intro', __('Intro'));\n $grid->column('details', __('Details'));\n $grid->column('start_at', __('Start at'));\n $grid->column('end_at', __('End at'));\n $grid->column('created_at', __('Created at'));\n $grid->column('location', __('Location'));\n $grid->column('fee', __('Fee'));\n $grid->column('involves', __('Involves'));\n $grid->column('involves_min', __('Involves min'));\n $grid->column('involves_max', __('Involves max'));\n $grid->column('status', __('Status'));\n $grid->column('organizers', __('Organizers'));\n $grid->column('views', __('Views'));\n $grid->column('collectors_num', __('Collectors num'));\n $grid->column('is_stick', __('Is stick'));\n\n return $grid;\n }", "title": "" }, { "docid": "bba7d85a5008c04473b2ed89119a28f3", "score": "0.69857043", "text": "protected function grid()\n {\n $grid = new Grid(new Oto);\n $grid->id('ID')->sortable();\n $grid->column('ten');\n $grid->column('avatar')->display(function($avatar){\n return \"<img src=\\\"\".HelperController::getImageUrl($avatar).\"\\\"/>\";\n });\n $grid->gia()->display(function($gia){\n return $gia . ' trieu VND';\n });\n\n\n return $grid;\n }", "title": "" }, { "docid": "1ffa40cffc1d8f615d8344df43030977", "score": "0.6975756", "text": "protected function grid()\n {\n $grid = new Grid(new MachinesFactory());\n\n $grid->model()->latest();\n \n $grid->column('id', __('索引'))->sortable();\n\n $grid->column('factory_name', __('厂商名称'))->help('机具厂商的名称');\n\n $grid->column('machines_types.name', __('所属类型'))->help('机具厂商所属的类型');\n\n $grid->column('created_at', __('创建时间'))->date('Y-m-d H:i:s')->help('机具厂商的创建时间');\n\n $grid->column('updated_at', __('修改时间'))->date('Y-m-d H:i:s')->help('机具厂商的最后修改时间');\n\n return $grid;\n }", "title": "" }, { "docid": "2c585237838cb7152aa34a22cd7af31d", "score": "0.6936521", "text": "protected function grid()\n {\n $grid = new Grid(new Items);\n\n $grid->id('Id');\n $grid->name('Наименование предмета');\n $grid->abbreviation('Аббревиатура');\n $grid->cathedra_id('Кафедра');\n $grid->created_at('Создание записи');\n $grid->updated_at('Редактирование записи');\n\n return $grid;\n }", "title": "" }, { "docid": "86b0f35629bfcda54d421b31a80f862d", "score": "0.6927314", "text": "protected function grid()\n {\n $grid = new Grid(new LotteryCode());\n $grid->model()->orderBy('prizes_time', 'desc');\n $grid->id('Id');\n $grid->code('抽奖码');\n $grid->batch_num('批次号');\n $grid->prizes_name('奖品');\n $grid->valid_period('有效期');\n $grid->prizes_time('抽奖时间');\n $grid->award_status('发奖状态')->editable('select', [0 => '未发放', 1 => '已发放']);\n $grid->disableCreateButton();\n $grid->disableActions();\n $grid->filter(function($filter){\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n // 在这里添加字段过滤器\n $filter->like('code', '抽奖码');\n $filter->like('batch_num', '批次号');\n $filter->between('prizes_time', '抽奖时间')->datetime();\n });\n return $grid;\n }", "title": "" }, { "docid": "a9a576e45258df6339a27234d785e0f5", "score": "0.6922796", "text": "protected function grid()\n {\n $grid = new Grid(new Work);\n\n $grid->id('Id')->sortable();;\n $grid->name(trans('Название'))->sortable();;\n $grid->description(trans('Описание'))->sortable();;\n $grid->order_id(trans('Порядок'))->sortable();;\n\n $grid->paginate(20);\n\n $grid->filter(function($filter){\n $filter->disableIdFilter();\n $filter->like('name', trans('Название'));\n });\n\n return $grid;\n }", "title": "" }, { "docid": "9dcedfcae674d1e76ca2423b1bb1676e", "score": "0.6918771", "text": "protected function grid()\n {\n $grid = new Grid(new Definition());\n\n $grid->column('id', __('Id'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n $grid->column('text', __('Text'));\n $grid->column('user_id', __('User id'));\n $grid->column('word_id', __('Word id'));\n $grid->column('exemple', __('Exemple'));\n $grid->column('like', __('Like'));\n $grid->column('dislike', __('Dislike'));\n $grid->column('media_url', __('Media url'));\n $grid->column('visibility', __('Visibility'));\n\n return $grid;\n }", "title": "" }, { "docid": "67b83584d49ad0cd20d7f9f5f4b330b5", "score": "0.6913496", "text": "protected function grid()\n {\n $grid = new Grid(new Expert());\n\n $grid->column('unitType.name', '單位類別');\n $grid->column('unit_name', '單位名稱');\n $grid->column('image_path', '圖片')->image();\n $grid->column('display_order', '顯示排序')->sortable();\n\n return $grid;\n }", "title": "" }, { "docid": "afbe83e5d319d6c60f0bb97413e5a071", "score": "0.69070137", "text": "protected function grid()\n {\n $grid = new Grid(new ViewAbout());\n\n $grid->column('id', __('Id'));\n $grid->column('text1', __('Text1'));\n $grid->column('text2', __('Text2'));\n $grid->column('text3', __('Text3'));\n $grid->column('text4', __('Text4'));\n $grid->column('background', __('Background'))->image();\n $grid->column('status', __('Status'));\n\n return $grid;\n }", "title": "" }, { "docid": "2f1662424a674c1263a12872cfc5b030", "score": "0.6901681", "text": "protected function grid()\n {\n $grid = new Grid(new BoardCard());\n\n $grid->column('id', __('Id'));\n $grid->column('board_id', __('Board id'));\n $grid->column('user_id', __('User id'));\n $grid->column('list_id', __('List id'));\n $grid->column('card_title', __('Card title'));\n $grid->column('card_description', __('Card description'));\n $grid->column('card_color', __('Card color'));\n // $grid->column('owner_id', __('Owner id'));\n \n $grid->owner_id(__('models.name_of_user'))->display(function ($owner_id) {\n return ($owner_id ? User::find($owner_id)->name : null);\n });\n\n $grid->column('due_date', __('Due date'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "57206e9207d2d1aca48e8e5a157a11d3", "score": "0.69012856", "text": "protected function grid()\n {\n $grid = new Grid(new Activities);\n\n $grid->column('id', __('序号'))->sortable();\n $grid->column('title', __('标题'));\n $grid->column('created_at', __('创建时间'));\n $grid->model()->orderBy('id', 'desc');\n $grid->actions(function ($actions) {\n $actions->add(new Operate);\n });\n\n return $grid;\n }", "title": "" }, { "docid": "10814d71dbccae9e612e3c8db0143bdc", "score": "0.6901163", "text": "protected function grid()\n {\n $grid = new Grid(new Producto());\n\n $grid->column('id', __('Id'));\n $grid->column('marca_id', __('Marca id'));\n $grid->column('nombre-producto', __('Nombre producto'));\n $grid->column('sabor', __('Sabor'));\n $grid->column('descripsion-producto', __('Descripsion producto'));\n $grid->column('precio', __('Precio'));\n $grid->column('image', __('Image'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "876b74a53ffad14dfe0effea93236c9e", "score": "0.6878719", "text": "protected function grid()\n {\n $grid = new Grid(new Category);\n\n $grid->id('ID');\n $grid->name('Название');\n //$grid->intro_img('Превью');\n\n return $grid;\n }", "title": "" }, { "docid": "0f63adc0cbcb370b9b8e136b7f49f1ca", "score": "0.6853549", "text": "protected function grid()\n {\n $grid = new Grid(new Vehicle);\n\n $grid->id('ID');\n $grid->year(trans('Year'));\n $grid->make(trans('Make'));\n $grid->vmodel(trans('Model'));\n $grid->trim_1(trans('Trim New'));\n $grid->trim_2(trans('Trim Old'));\n $grid->created_at(trans('admin.timestamp'))->setAttributes(['width' => '180px']);\n return $grid;\n }", "title": "" }, { "docid": "dda0400c59e95eb4bbbe6df151c24345", "score": "0.6851238", "text": "protected function grid()\n {\n $grid = new Grid(new MobilePool);\n $grid->model()->withOnly('creator', ['name']);\n $grid->model()->with('import');\n $grid->id('ID');\n $grid->mobile('手机号');\n $grid->name('姓名');\n $grid->labels_html('导入意向')->display(function ($labels_html){\n return $labels_html;\n });\n $grid->status_html('池中状态')->display(function ($status_html){\n return $status_html;\n });\n $grid->column('提供人')->display(function (){\n return $this->creator?$this->creator['name']:'';\n });\n $grid->actions(function (Grid\\Displayers\\Actions $actions) {\n $actions->disableDelete();\n $actions->disableEdit();\n $actions->disableView();\n });\n $grid->tools(function (Grid\\Tools $tools) {\n if (Admin::user()->can('mobile-create')) {\n $tools->append(new MobileImporter());\n }\n });\n $grid->disableExport();\n $grid->disableRowSelector();\n $grid->disableCreateButton();\n return $grid;\n }", "title": "" }, { "docid": "ae0ee2f6f67c6f9f68260336bcd46f87", "score": "0.6847727", "text": "protected function grid()\n {\n $grid = new Grid(new About);\n\n $grid->column('id', __('Id'));\n $grid->column('aboutme', __('Aboutme'));\n $grid->column('total_funds', __('Total funds'));\n $grid->column('total_projects', __('Total projects'));\n $grid->column('total_volunteers', __('Total volunteers'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "f9ad243739579dcf90393f12352a10df", "score": "0.684171", "text": "protected function grid()\n {\n $grid = new Grid(new StokBarang());\n\n $grid->column('id', __('Id'));\n $grid->column('barang_id', __('Barang id'))->display(function($id) {\n return Barang::find($id)->nama;\n });\n $grid->column('lokasi_id', __('Lokasi id'))->display(function($id) {\n return Lokasi::find($id)->nama;\n });\n $grid->column('sub_lokasi_id', __('Sub lokasi id'))->display(function($id) {\n return SubLokasi::find($id)->nama;\n });\n $grid->column('ketersediaan', 'Ketersediaan');\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "d85d6e461ebf191190b14cc43d50e2d2", "score": "0.68254143", "text": "protected function grid()\n {\n $grid = new Grid(new Banner);\n\n $grid->id('Id');\n $grid->title('Title');\n $grid->image('Image')->display(function($image) {\n return '<img width=\"30\" src=\"' . (env('APP_URL') . '/storage/' . ($image ?: 'images/default.png')) . '\"\"/>';\n });\n $grid->status('Status');\n $grid->created_at('Created at');\n $grid->updated_at('Updated at');\n\n return $grid;\n }", "title": "" }, { "docid": "b40fed7f0e5b45eeb098d00adc5d4dbf", "score": "0.68234277", "text": "protected function grid()\n {\n $grid = new Grid(new GoodsModel);\n\n $grid->column('goods_id', __('Goods id'));\n $grid->column('goods_name', __('Goods name'));\n $grid->column('cate_id', __('Cate id'));\n $grid->column('brand_id', __('Brand id'));\n $grid->column('goods_sn', __('Goods sn'));\n $grid->column('shop_price', __('Shop price'));\n $grid->column('market_price', __('Market price'));\n $grid->column('goods_img', __('Goods img'));\n $grid->column('goods_thumb', __('Goods thumb'));\n $grid->column('goods_number', __('Goods number'));\n $grid->column('is_new', __('Is new'));\n $grid->column('is_best', __('Is best'));\n $grid->column('is_hot', __('Is hot'));\n $grid->column('is_on_sale', __('Is on sale'));\n $grid->column('is_del', __('Is del'));\n $grid->column('keywords', __('Keywords'));\n $grid->column('description', __('Description'));\n $grid->column('content', __('Content'));\n\n return $grid;\n }", "title": "" }, { "docid": "d04ad86619baeee2daff03d762515675", "score": "0.6814189", "text": "protected function grid()\n {\n $grid = new Grid(new Forum());\n\n $grid->column('id', __('Id'))->sortable();\n $grid->column('postalcode', __('Postal Code'));\n $grid->column('number', __('Number'));\n \n\n\n AdminHelper::gridDateFormat($grid, 'created_at', 'Created at');\n\n return $grid;\n }", "title": "" }, { "docid": "631510b6cfbe949215068154d9d53320", "score": "0.68119365", "text": "protected function grid()\n {\n $grid = new Grid(new GoodsSearch);\n\n $grid->id('ID');\n $grid->user_id(__('goods_search.user_id'))->expand(function ($model) {\n return new Table(['Key', 'Value'], $model->user->toArray());\n });\n $grid->type(__('goods_search.type'));\n $grid->name(__('goods_search.name'));\n $grid->price(__('goods_search.price'));\n $grid->num(__('goods_search.num'));\n $grid->more(__('goods_search.more'));\n $grid->imgs(__('goods_search.imgs'))->gallery(['zooming' => true, 'width' => 100, 'height' => 100]);\n $grid->status(__('goods_search.status'))->using(GoodsSearch::$EnumStatus)->label([0 => 'default', 1 => 'info'])->sortable();\n $grid->created_at(trans('admin.created_at'));\n $grid->updated_at(trans('admin.updated_at'));\n\n return $grid;\n }", "title": "" }, { "docid": "2caab64f11b6da523617b30304256eff", "score": "0.68033653", "text": "protected function grid()\n {\n $grid = new Grid(new Customer);\n\n $grid->id('Id');\n $grid->email('邮箱');\n $grid->mobile('手机号码');\n $grid->nick('昵称');\n $grid->created_at('创建时间');\n $grid->updated_at('更新时间');\n // 不在页面显示 `新建` 按钮,因为我们不需要在后台新建用户\n $grid->disableCreateButton();\n $grid->actions(function ($actions) {\n // 不在每一行后面展示删除按钮\n $actions->disableDelete();\n $actions->disableEdit();\n });\n $grid->tools(function ($tools) {\n // 禁用批量删除按钮\n $tools->batch(function ($batch) {\n $batch->disableDelete();\n });\n });\n\n return $grid;\n }", "title": "" }, { "docid": "cdfd2aa6c37d5bed1b250a380d36ca29", "score": "0.6801908", "text": "protected function grid()\n {\n $grid = new Grid(new Clinic());\n\n $grid->column('id', __('Id'))->filter();\n $grid->column('image', __('Image'))->image();\n $grid->column('name', __('Name'))->filter();\n $grid->column('type', __('Type'))->using(['1' => 'Clinic', '2' => 'Hospital'])->filter();\n $grid->column('email', __('Email'))->filter();\n $grid->column('phone', __('Phone'))->filter();\n $grid->column('address', __('Address'))->filter();\n $grid->column('website_url', __('Website url'))->link()->filter();\n $grid->column('profile_finish', __('Profile finish'))->bool()->filter();\n $grid->column('status', __('Status'))->bool()->filter();\n $grid->column('created_at', __('Created at'))->filter();\n $grid->column('updated_at', __('Updated at'))->filter();\n\n $grid->actions(function ($actions) {\n $actions->disableView();\n });\n\n return $grid;\n }", "title": "" }, { "docid": "c0b193b059d06cc81c40ec87b006e792", "score": "0.67986906", "text": "protected function grid()\n {\n $grid = new Grid(new RoomType);\n\n $grid->id('ID');\n\n $grid->name('Nama');\n $grid->is_active('Aktif?')->bool();\n\n $grid->created_at(trans('admin.created_at'));\n $grid->updated_at(trans('admin.updated_at'));\n\n // Role & Permission\n if (!\\Admin::user()->can('create.room_types'))\n $grid->disableCreateButton();\n\n $grid->actions(function ($actions) {\n\n // The roles with this permission will not able to see the view button in actions column.\n if (!\\Admin::user()->can('edit.room_types')) {\n $actions->disableEdit();\n }\n // The roles with this permission will not able to see the show button in actions column.\n if (!\\Admin::user()->can('list.room_types')) {\n $actions->disableView();\n }\n // The roles with this permission will not able to see the delete button in actions column.\n if (!\\Admin::user()->can('delete.room_types')) {\n $actions->disableDelete();\n }\n });\n\n\n return $grid;\n }", "title": "" }, { "docid": "c88f21ae4b970f63cf3776f8b205c4b2", "score": "0.6785066", "text": "protected function grid()\n {\n $grid = new Grid(new SpecificationTemplate());\n\n $grid->column('id', __('Id'));\n $grid->column('name', __('Name'));\n $grid->column('keys', __('Keys'))->display(function ($keys) {\n return implode(',', $keys);\n });\n $grid->column('content', __('Content'))->display(function ($content) {\n return implode('<br/>', array_map(fn($values) => implode(',', $values), $content));\n });\n $grid->column('sort', __('Sort'))->editable();\n $grid->column('is_display', __('Is display'))->switch();\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n $grid->actions(function (Grid\\Displayers\\Actions $actions) {\n $actions->disableView();\n });\n\n return $grid;\n }", "title": "" }, { "docid": "45def13524636d3ee60807b35fd0938f", "score": "0.678385", "text": "protected function grid()\n {\n $grid = new Grid(new orders());\n\n $grid->column('id', __('Id'));\n $grid->column('paymentStatus', __('PaymentStatus'));\n $grid->column('transaction_ref', __('Transaction ref'));\n $grid->column('delivery_id', __('Delivery id'));\n $grid->column('status', __('Status'));\n $grid->column('user_id', __('User id'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "a6e55fff83973d8d1e5a911e0bb587f8", "score": "0.67809147", "text": "protected function grid()\n {\n $grid = new Grid(new Book());\n\n $grid->column('id', __('Id'));\n $grid->author()->display(function($v) {\n return $v['name'];\n });\n $grid->column('title', __('Title'));\n $grid->column('description', __('Description'));\n $grid->column('year', __('Year'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "b0c3f36c4d4e927d6f6e3bcc2112598c", "score": "0.6769259", "text": "protected function grid()\n {\n $grid = new Grid(new Banner);\n $grid->model()->orderBy('type', 'desc')->orderBy('sort'); // 设置初始排序条件\n\n\n $grid->id('ID');\n $grid->image('Banner图')->image('', 120);\n $grid->type('类型')->sortable();\n $grid->sort('排序值')->sortable();\n $grid->created_at('创建时间');\n\n return $grid;\n }", "title": "" }, { "docid": "ceb02b348d17814193e047a4f41ee7ef", "score": "0.6767842", "text": "protected function grid()\n {\n $grid = new Grid(new City());\n\n $grid->column('id', __('Id'));\n $grid->column('sort', __('Sort'));\n $grid->column('name', __('Name'));\n $grid->column('slug', __('Slug'));\n $grid->column('description', __('field.description'))->display(function ($item) {\n return mb_strimwidth($item, 0, 500, '...');\n });\n $grid->column('files', __('field.images'))->display(function () {\n $images = array();\n foreach ($this->files as $file) {\n array_push($images, preg_replace(\"/images\\//\", \"images/small.\", $file->file));\n }\n return $images;\n })->carousel(150, 100);\n\n return $grid;\n }", "title": "" }, { "docid": "e8bc02a2a654a4637ff141683ee3e006", "score": "0.67600983", "text": "protected function grid()\n {\n $grid = new Grid(new Resources);\n\n $grid->id('ID');\n $grid->type('类型')->using(Resources::TYPE)->filter(Resources::TYPE);\n $grid->name('名称');\n $grid->url('图片')->image();\n $grid->sort_num('排序')->editable()->sortable();\n $grid->memo('备注');\n\n $grid->disableExport();\n $grid->disableFilter();\n\n $grid->actions(function ($actions) {\n $actions->disableView();\n $actions->disableDelete();\n });\n $grid->tools(function ($tools) {\n // 禁用批量删除按钮\n $tools->batch(function ($batch) {\n $batch->disableDelete();\n });\n });\n\n return $grid;\n }", "title": "" }, { "docid": "a1bf432102d11ef4715df18ee67781bd", "score": "0.6760056", "text": "protected function grid()\n {\n $grid = new Grid(new UtilityBase());\n\n $grid->column('room.title', '房间号');\n $grid->column('year_month', '月度')->display(function () {\n return $this->year . '-' . $this->month;\n });\n $grid->column('pre_electric_base', '上期电表数');\n $grid->column('current_electric_base', '本期电表数');\n $grid->column('pre_water_base', '上期水表数');\n $grid->column('current_water_base', '本期水表数');\n\n $grid->expandFilter();\n $grid->filter(function ($filter) {\n $filter->disableIdFilter();\n $filter->where(function ($query) {\n $roomIds = Room::where('title', 'like', \"%{$this->input}%\")->pluck('id')->toArray();\n $query->whereIn('room_id', $roomIds);\n }, '房间号');\n $filter->where(function ($query) {\n $arr = explode('-', $this->input);\n $query->where('year', $arr[0]);\n if (isset($arr[1])) {\n $query->where('month', $arr[1]);\n }\n }, '月度')->placeholder('支持:2020,2020-7');\n });\n\n $grid->actions(function ($actions) {\n $actions->disableView();\n });\n\n $grid->tools(function (Grid\\Tools $tools) {\n if (Admin::user()->can('utilityBases.import')) {\n $tools->append(new ImportBase());\n }\n });\n return $grid;\n }", "title": "" }, { "docid": "1716718f371117c0a1965f745722ae0b", "score": "0.6750963", "text": "protected function grid()\n {\n $grid = new Grid(new Schedule());\n\n $grid->model()->latest('id');\n\n $grid->id('Id');\n $grid->type('发送类型')->using([1 => '客服文字消息', 2 => '客服图文消息', 3 => '模板消息']);\n $grid->template_id('模板列表id')->using(WechatTemplate::all(['id', 'name'])->pluck('name', 'id')->all());\n $grid->content('发送内容')->limit(50);\n $grid->send_at('发送时间');\n $grid->created_at('新增时间');\n $grid->updated_at('更新时间');\n\n $grid->disableExport();\n $grid->disableRowSelector();\n\n $grid->actions(function ($action) {\n $action->append(new SendMessage($action->getKey()));\n });\n\n $grid->perPages([15, 20]);\n\n return $grid;\n }", "title": "" }, { "docid": "08259ceb6f79d2c47fe0de21de1ce069", "score": "0.67503357", "text": "protected function grid()\n {\n if ($mini = request(IFrameGrid::QUERY_NAME)) {\n $grid = new IFrameGrid(new Apps());\n } else {\n $grid = new Grid(new Apps());\n }\n $grid->model()->orderBy('order');\n $grid->id('ID')->bold()->sortable();\n $grid->name('应用名字')->tree();\n $grid->icon;\n $grid->description('描述');\n $grid->order->orderable();\n if (!$mini) {\n $grid->created_at;\n $grid->updated_at->sortable();\n }\n $grid->disableBatchDelete();\n $grid->disableEditButton();\n $grid->showQuickEditButton();\n $grid->disableFilterButton();\n $grid->quickSearch(['id', 'name', 'icon', 'description']);\n $grid->enableDialogCreate();\n $grid->withBorder();\n $grid->fixColumns(2, -1);\n return $grid;\n }", "title": "" }, { "docid": "56ba7334f90db04580f2809418b48e20", "score": "0.6747873", "text": "protected function grid()\n {\n $grid = new Grid(new Platform());\n\n $grid->column('platform_number', __('Platform number'));\n $grid->column('platform_name', __('Platform name'))->label()\n ->expand(function ($model){\n $shops = $model->shops()->get()->map(function ($shop){\n return $shop->only(['shop_number', 'shop_name']);\n });\n\n return new Table([__('Platform number'), __('Platform name')], $shops->toArray());\n });\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n $grid->filter(function ($filter){\n $filter->disableIdFilter();\n $filter->equal('platform_number', __('Platform number'));\n $filter->like('platform_name', __('Platform name'));\n });\n\n $grid->paginate(10);\n\n $grid->disableRowSelector();\n\n $grid->actions(function ($actions){\n $actions->disableView();\n $actions->disableDelete();\n });\n\n return $grid;\n }", "title": "" }, { "docid": "d16352ddc599ab8cbc97eca29aeef8d6", "score": "0.6735888", "text": "protected function grid() {\n\t\t$grid = new Grid(new Destinationtype);\n\n\t\t$grid->column('id', __('Id'))->editable();\n\t\t$grid->column('name', __('名称'))->editable();\n\t\t$grid->column('parenttype.name', __('父类'))->label();\n\t\t// $grid->column('order', __('排序'));\n\t\t$grid->column('description', __('描述'))->editable();\n\t\t// $grid->column('created_at', __('Created at'));\n\t\t// $grid->column('updated_at', __('Updated at'));\n\n\t\treturn $grid;\n\t}", "title": "" }, { "docid": "abed3483f02f9cd80be35372cc5280e7", "score": "0.6735288", "text": "protected function grid()\n {\n $grid = new Grid(new Barang());\n\n $grid->filter(function($filter){\n $filter->disableIdFilter();\n $filter->like('nama', 'Nama');\n });\n $grid->column('id', __('Id'));\n $grid->column('nama', __('Nama'));\n $grid->column('harga', __('Harga Beli'));\n $grid->column('harga_jual', __('Harga Jual'));\n $grid->column('satuan_id', __('Satuan id'))->display(function($satuan) {\n return Satuan::find($satuan)->nama;\n });\n $grid->column('jumlah_unit', __('Jumlah Unit'));\n $grid->column('parent_id', 'Parent')->display(function($id) {\n if($id) {\n return Barang::find($id)->nama;\n }\n else {\n return null;\n }\n });\n $grid->column('b_pengiriman', __('Pengiriman'));\n $grid->column('b_keamanan', __('Keamanan'));\n // $grid->column('created_at', __('Created at'));\n // $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "87b80a864965e59dd256e62efd150d9e", "score": "0.6727944", "text": "protected function grid()\n {\n $grid = new Grid(new Customer);\n $grid->model()->where('is_delete',0)->orderBy('id','desc');\n $grid->id('ID')->sortable();\n $grid->code('客户编号');\n $grid->name('客户名称');\n $grid->contactor('联系人');\n $grid->tel('联系电话');\n $grid->email('邮箱');\n $grid->address('地址');\n $grid->receivables('应收账款数字');\n\n $grid->create_time('创建时间')->display(function ($create_time) {\n return date('Y-m-d H:i',$create_time);\n })->sortable();\n\n // 查询过滤\n $grid->filter(function($filter){\n $filter->column(1/2, function ($filter) {\n $filter->like('code', '客户编号');\n $filter->like('name', '客户名称');\n });\n $filter->column(1/2, function ($filter) {\n $filter->like('contactor', '联系人');\n $filter->like('tel', '联系电话');\n $filter->use(new TimestampBetween('create_time','创建时间'))->datetime();\n });\n\n\n });\n\n return $grid;\n }", "title": "" }, { "docid": "31970cc574de21c80fcd90650ac55404", "score": "0.6722165", "text": "protected function grid()\n {\n $grid = new Grid(new City());\n\n $grid->id('ID')->sortable();\n\n $grid->cn_name();\n $grid->en_name();\n\n// $grid->lines()->display(function ($lines) {\n// return array_column($lines, 'name');\n// })->implode('</br>');\n\n// $grid->code();\n// $grid->pre();\n\n $grid->created_at();\n $grid->updated_at();\n\n $grid->filter(function ($filter) {\n $filter->expand();\n $filter->like('cn_name', 'Name');\n });\n\n return $grid;\n }", "title": "" }, { "docid": "a772f9f4d8349dd905728a2aabcf4854", "score": "0.6718374", "text": "protected function grid()\n {\n $grid = new Grid(new Setting());\n\n $grid->column('id', __('Id'));\n $grid->column('member_fee', __('Member fee'));\n $grid->column('task_rate', __('Task rate'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "048d9f892a2da9a645d82311519a43a5", "score": "0.6712316", "text": "protected function grid()\n {\n $grid = new Grid(new Board);\n $grid->column('id', __('연번'));\n $grid->column('분류', __('분류'))->label('success');\n $grid->column('name', __('작성자'))->display(function(){\n return \"<a href='/board/\".$this->id.\"/edit'>\".$this->name.\"</a>\";\n });\n // $grid->column('pw', __('Pw'));\n $grid->column('title', __('제목'))->display(function(){\n return \"<a href='/board/\".$this->id.\"/edit'>\".$this->title.\"</a>\";\n });\n $grid->column('content', __('내용'))->display(function(){\n return \"<a href='/board/\".$this->id.\"/edit'><div style='width:500px;color:blue;'>$this->content</div></a>\";\n });\n // $grid->column('date', __('Date'));\n // $grid->column('hit', __('Hit'));\n $grid->column('created_at', __('생성일'))->date('Y-m-d');\n $grid->column('updated_at', __('수정일'))->date('Y-m-d');\n \n $grid->model()->orderBy('id', 'desc'); //기본 정렬순서\n $grid->quickSearch('작성자', '제목', '내용'); \n $grid->fixColumns(2, 0);\n\n // $grid->disableActions();\n $grid->disableFilter(); \n // $grid->disableRowSelector();\n $grid->disableColumnSelector();\n // $grid->disableCreateButton();\n $grid->disableExport();\n return $grid;\n }", "title": "" }, { "docid": "f412861bd52ba34530390402f82e3641", "score": "0.67107344", "text": "protected function grid()\n {\n $grid = new Grid(new AppSetting);\n\n $grid->column('id', __('Id'));\n $grid->column('application_name', __('Application name'));\n $grid->column('logo', __('Logo'));\n $grid->column('contact_number', __('Contact number'));\n $grid->column('whatsapp_number', __('Whatsapp number'));\n $grid->column('email', __('Email'));\n $grid->column('country', __('Country'));\n $grid->column('default_currency', __('Default currency'));\n $grid->disableExport();\n $grid->disableCreation();\n $grid->disableFilter();\n $grid->actions(function ($actions) {\n $actions->disableView();\n $actions->disableDelete();\n });\n return $grid;\n }", "title": "" }, { "docid": "13044ed08847dc595162800f1675279f", "score": "0.67052287", "text": "protected function grid()\n {\n $grid = new Grid(new AskAdvice);\n\n $grid->id('Id');\n $grid->name('Tên người nhận');\n $grid->phone('Số điện thoại');\n $grid->email('Email');\n $grid->contract_code('Mã hợp đồng');\n $grid->column( 'Họ và tên khách hàng')->display(function () {\n $data = Contract::where('contract_code',$this->contract_code)->first();\n if($data) {\n return $data->name_customer;\n }\n });\n\n return $grid;\n }", "title": "" }, { "docid": "95c273586f32a9ef0cd59a116ce46f5a", "score": "0.6694769", "text": "protected function grid()\n {\n $grid = new Grid(new Group);\n\n $grid->id('Ид');\n\n $grid->column('Наименование')->display(function () {\n return $this->name;\n });\n\n return $grid;\n }", "title": "" }, { "docid": "ee846231cba276dd9df3c5431ede8ca3", "score": "0.66829485", "text": "protected function grid()\n {\n $grid = new Grid(new Goods);\n\n $grid->id('Id');\n $grid->title(trans('admin.title'));\n $grid->slogan(trans('admin.slogan'));\n $grid->name(trans('admin.name'));\n $grid->price(trans('admin.price'))->editable();\n $grid->created_at(trans('admin.created_at'));\n $grid->updated_at(trans('admin.updated_at'));\n $grid->actions(function ($actions) {\n $actions->disableView();\n });\n $grid->disableExport();\n return $grid;\n }", "title": "" }, { "docid": "13d2c4313e175c97b61075a288802a72", "score": "0.6681708", "text": "protected function grid()\n {\n $grid = new Grid(new Activity());\n $grid->model()->orderBy('created_at','desc');\n\n $grid->column('id', __('Id'));\n $grid->column('log_name', __('Log name'))->using($this->log_name);\n $grid->column('description', __('Description'))->limit(10);\n $grid->column('subject_id', __('Subject id'));\n $grid->column('subject_type', __('Subject type'));\n $grid->column('causer_id', __('Causer id'));\n $grid->column('causer_type', __('Causer type'));\n $grid->column('properties', __('Properties'))->display(function ($properties) {\n $properties = [\n '详情' => isset($properties['description']) ? $properties['description'] : '',\n '备注' => isset($properties['remark']) ? $properties['remark'] : '',\n ];\n return new Table([], $properties);\n });\n $grid->column('created_at', __('Created at'))->sortable();\n $grid->column('updated_at', __('Updated at'));\n\n $grid->filter(function ($filter) {\n\n $filter->equal('log_name', __('Log name'))->select($this->log_name);\n\n });\n\n #禁用创建按钮\n $grid->disableCreateButton();\n\n $grid->actions(function ($actions) {\n $actions->disableDelete();\n $actions->disableView();\n $actions->disableEdit();\n });\n return $grid;\n }", "title": "" }, { "docid": "d5e9a3fc17662d5bcd14e62894bf4c59", "score": "0.66795236", "text": "protected function grid()\n {\n $grid = new Grid(new Usertype());\n\n $grid->column('id', 'ID');\n $grid->column('usertype', '分类名称');\n $grid->column('created_at', '创建时间');\n $grid->column('updated_at', '修改时间');\n $grid->disableFilter();\n $grid->disableExport();\n $grid->disableRowSelector();\n $grid->disableColumnSelector();\n $grid->disableActions();\n return $grid;\n }", "title": "" }, { "docid": "16c42b33c5b0749ae45777253ea98e5c", "score": "0.6677377", "text": "protected function grid()\n {\n $grid = new Grid(new ApplySchool);\n\n $grid->column('id', __('申请单id'));\n $grid->column('teacher_id', __('老师名称'))->using($this->getTeacherMap());\n $grid->column('school_name', __('学校名称'));\n $grid->column('school_province', __('学校省份'));\n $grid->column('school_city', __('学校城市'));\n $grid->column('school_area', __('学校地区'));\n $grid->column('school_address', __('学校地址'));\n $grid->column('status', __('状态'))->using(ApplySchoolStatusEnum::getStatsDesc());\n $grid->column('reason', __('拒绝原因'));\n $grid->column('created_at', __('创建时间'));\n $grid->column('updated_at', __('更新时间'));\n\n return $grid;\n }", "title": "" }, { "docid": "1ec0eb1c1ed3e644884223900c09ec9b", "score": "0.6650503", "text": "protected function grid()\n {\n $classListArray = Classes::query()->pluck('class_name','class_id')->toArray();\n\n $grid = new Grid(new Student());\n\n $grid->column('student_id', __('学生ID'));\n $grid->column('class_id', __('班级ID'))->using($classListArray);\n $grid->column('name', __('姓名'));\n $grid->column('age', __('年龄'));\n $grid->column('sex', __('性别'))->radio([ 1 =>'男', 2 => '女']);\n\n// $grid->column('avatar', __('头像'));\n\n return $grid;\n }", "title": "" }, { "docid": "316f5e244475420f34f737ef3765b017", "score": "0.6648576", "text": "protected function grid()\n {\n $grid = new Grid(new WechatUser);\n\n $grid->column('id', __('ID'));\n $grid->column('nick_name', __('昵称'));\n $grid->column('name', __('用户名'));\n $grid->column('password', __('密码'));\n $grid->column('mobile', __('手机号'));\n $grid->column('mini_program_open_id', __('OpenId'));\n $grid->column('created_at', __('创建时间'));\n $grid->column('updated_at', __('更新时间'));\n\n return $grid;\n }", "title": "" }, { "docid": "9e4250b31cfe0ddb5f8cb749dddbcb35", "score": "0.66480833", "text": "protected function grid()\n {\n $grid = new Grid(new Product);\n\n $grid->model()->orderBy('id', 'desc');\n $grid->column('id', __('Id'));\n $grid->column('name', __('message.product.name'));\n $grid->column('code', __('message.product.code'));\n $grid->column('paytype', __('message.product.paytype'))->using(config('pay.type'));\n $grid->column('polling', __('message.product.polling'))->using(config('pay.polling_type'));\n $grid->column('status', __('message.product.status'))->switch();\n $grid->column('isdisplay', __('message.product.isdisplay'))->switch();\n\n $grid->disableFilter();\n $grid->disablePagination();\n\n return $grid;\n }", "title": "" }, { "docid": "577650e296db8c29b9b4e2e218b9aed6", "score": "0.6647211", "text": "protected function grid()\n {\n $grid = new Grid(new Code());\n\n\n \n $grid->filter(function ($filter) {\n $filter->disableIdFilter();\n\n $filter->column(1 / 2, function ($filter) {\n $filter->like('phone', '手机号');\n $filter->like('ip', 'IP');\n });\n\n $filter->column(1 / 2, function ($filter) {\n $filter->between('created_at', '时间范围')->datetime();\n });\n\n\n });\n\n\n // $grid->column('id', __('Id'));\n $grid->column('phone', __('手机号'))->filter('like');\n $grid->column('code', __('验证码'));\n $grid->column('created_at', __('发送时间'));\n $grid->column('used_at', __('使用时间'));\n $grid->column('ip', __('IP'));\n $grid->model()->latest();\n return $grid;\n }", "title": "" }, { "docid": "64eed3cc1be08e9fa22f6f01f77625ca", "score": "0.6641182", "text": "protected function grid()\n {\n $grid = new Grid(new CompanyRequirment);\n\n $grid->column('req_id', 'ID');\n $grid->column('company.company_name', '企业')->label('info');\n $grid->column('type.type_value', '需求类型')->label('success');\n $grid->column('contact_name', '联系人');\n $grid->column('contact_phone', '联系方式');\n $grid->column('create_time', '创建时间');\n $grid->exporter(new CompanyRequirmentExporter());\n $grid->actions(function ($actions) {\n // 去掉查看\n $actions->disableView();\n });\n return $grid;\n }", "title": "" }, { "docid": "c61c88c4fb88fc763a07e2de3f495872", "score": "0.6640685", "text": "protected function grid()\n {\n $grid = new Grid(new SpecialTyper());\n\n $grid->column('id', __('ID'))->sortable();\n $grid->column('title', __('分类名称'));\n $grid->column('sort', __('排序'))->sortable()->replace(['' => '-']);\n $grid->column('status', '状态')->display(function ($status) {\n if ($status == 1)\n return '发布';\n elseif ($status == 2)\n return '保存';\n else\n return '关闭';\n });\n $grid->column('created_at', __('新增时间'));\n $grid->column('updated_at', __('修改时间'));\n // filter($callback)方法用来设置表格的简单搜索框\n $grid->filter(function ($filter) {\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n $filter->like('title','分类名称');\n $filter->equal('status', '状态')->select(['1' => '发布', '2'=> '保存', '3'=> '关闭']);\n });\n\n return $grid;\n }", "title": "" }, { "docid": "40097ae5c239d105947a8fd12f467ffa", "score": "0.6634314", "text": "protected function grid()\n {\n $grid = new Grid(new Specialization);\n\n $grid->id('Id');\n $grid->full_name('Полное найменование');\n $grid->short_name('Краткое найменование');\n $grid->code('Код специальности');\n $grid->cathedra_id('Кафедра')->using(Cathedra::all()->pluck('abbreviation', 'id')->toArray());\n $grid->created_at('Создано');\n $grid->updated_at('Обновлено');\n\n return $grid;\n }", "title": "" }, { "docid": "f02f08d54a0b603e347a2ad56f1c1bad", "score": "0.66298777", "text": "protected function grid()\n {\n $grid = new Grid(new Lottery());\n if (!empty(@$_GET['starNO']))\n $grid->model()->where('playId', $_GET['starNO']);\n// $grid->column('lotteryId', ___('LotteryId'));\n $grid->column('buyMoney', ___('BuyMoney'));\n $grid->column('buyTime', ___('BuyTime'));\n $grid->column('faceValue', ___('FaceValue'));\n $grid->column('playId', ___('PlayId'));\n $grid->column('winMoney', ___('WinMoney'));\n $grid->column('winOrlose', ___('WinOrlose'));\n\n return $grid;\n }", "title": "" }, { "docid": "6e5c61b14c86b1005ff2df316afad4ad", "score": "0.66231555", "text": "protected function grid()\n {\n $grid = new Grid(new Gys);\n\n $grid->id('Id');\n $grid->name('公司名称');\n $grid->tel('联系人电话');\n $grid->file('营业执照')->display(function ($v){\n $str = '';\n foreach (explode(',',$v) as $item){\n $str.= '<a target=\"_blank\" href=\"'.env('APP_URL').$item.'\"><img src=\"'.env('APP_URL').$item.'\" width=\"100\" style=\"padding:10px;border:solid #eee 1px;border-radius:3px;margin-right:3px\"/></a>';\n }\n return $str;\n });\n $grid->hyzz('资质证书')->display(function ($v){\n $str = '';\n foreach (explode(',',$v) as $item){\n $str.= '<a target=\"_blank\" href=\"'.env('APP_URL').$item.'\"><img src=\"'.env('APP_URL').$item.'\" width=\"100\" style=\"padding:10px;border:solid #eee 1px;border-radius:3px;margin-right:3px\"/></a>';\n }\n return $str;\n });\n $grid->type('类型');\n $grid->username('用户名称');\n $grid->password('密码');\n $grid->created_at('创建时间');\n $grid->updated_at('更新时间');\n $grid->status('账户状态')->radio([\n 0=> '审核中',\n 1=> '审核通过',\n 2=> '冻结账户'\n ]);\n\n return $grid;\n }", "title": "" }, { "docid": "7966839225bdb3aed17525496a82bc55", "score": "0.6622456", "text": "protected function grid()\n {\n $grid = new Grid(new City());\n\n// $grid->column('id', __('Id'));\n $grid->column('date', __('Дата'));\n $grid->column('name', __('Город'))->display(function () {\n return '<a href=\"/admin/city-users?set='.$this->id.'\">'.$this->name.'</a>';\n });\n $grid->column('image', 'Картинка')->display(function () {\n $str = $this->image!='' ? '<img src=\"/uploads/images/'.$this->image.'\" height=\"100\"/>' : '';\n return $str;\n });\n// $grid->column('text', __('Text'));\n $grid->column('show', 'Активен')->display(function () {\n return $this->show ? 'да' : 'нет';\n });\n// $grid->column('orders', __('Orders'));\n// $grid->column('created_at', __('Created at'));\n// $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "22737eeaf5d6419e860a12aa19629744", "score": "0.6605076", "text": "protected function grid()\n {\n $grid = new Grid(new Category);\n\n $grid->id('Id');\n $grid->parent_id('父ID');\n $grid->name('名称');\n $grid->order('排序');\n $grid->image('图片');\n $grid->index_template('首页模版');\n $grid->detail_template('详情模版');\n $grid->status('Status')->display(function ($status){\n return $status ? '<p class=\"text-success\">启用</p>' : '<p class=\"text-muted\">禁用</p>';\n });\n $grid->created_at('创建时间');\n\n return $grid;\n }", "title": "" }, { "docid": "0c47286335d86f76e8c981c3b6a8a02e", "score": "0.66031957", "text": "protected function grid()\n {\n $grid = new Grid(new Category);\n\n $grid->column('id', __('Id'));\n $grid->column('category_name', __('Category name'));\n $grid->column('online', __('Online'));\n $grid->column('category_slug', __('Category slug'));\n $grid->column('level', 'level');\n $grid->column('is_directory', 'Is directory')->display(function($value) {\n return $value ? 'Yes' : 'No';\n });\n $grid->column('path', 'Path');\n $grid->column('order_num', 'Order number');\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "6f600f528d4fb88f705364b36e12edc4", "score": "0.660275", "text": "protected function grid() {\n\t\t$grid = new Grid(new Attribute);\n\n\t\t$grid->selector(function (Grid\\Tools\\Selector $selector) {\n\t\t\t$selector->select('parent_id', '洲名', [\n\t\t\t\t1 => '销售属性',\n\t\t\t\t2 => '价格属性',\n\t\t\t]);\n\t\t});\n\n\t\t$grid->column('id', __('Id'));\n\t\t$grid->column('name', __('名称'));\n\t\t$grid->column('parentattr.name', __('父类'))->label('primary');\n\t\t$grid->categories('归属分类')->pluck('name')->label('warning');\n\t\t$grid->column('attrvalues', '属性值')->pluck('attrvalue')->label('info')->style('max-width:200px;line-height:1.5em;word-break:break-all;');\n\t\t$grid->column('en_name', __('英文'));\n\t\t// $grid->column('isrequired', __('必须'));\n\t\t$grid->column('inputtype', __('控件'));\n\t\t// $grid->column('inputformat', __('格式'));\n\t\t// $grid->column('extra', __('扩展'));\n\t\t$grid->column('order', __('排序'));\n\t\t$states = [\n\t\t\t'on' => ['value' => 1, 'text' => '是', 'color' => 'primary'],\n\t\t\t'off' => ['value' => 0, 'text' => '否', 'color' => 'default'],\n\t\t];\n\t\t$grid->column('active', __('激活'))->switch($states);\n\t\t// $grid->column('created_at', __('Created at'))->date('Y-m-d');\n\t\t// $grid->column('updated_at', __('Updated at'));\n\n\t\treturn $grid;\n\t}", "title": "" }, { "docid": "a1431fbd5addb78878c06d2e5397cfcd", "score": "0.6601071", "text": "protected function grid()\n {\n $grid = new Grid(new Member());\n\n $grid->column('id', 'id')->sortable();\n $grid->column('username','用户名');\n $grid->column('phone', '手机号')->display(function() {\n return substr($this->phone, 0, 3).'****'.substr($this->phone, 7);\n });\n $grid->column('avatar', '头像')->image('', 50, 50);\n $grid->column('created_at', '注册时间')->sortable();\n $grid->disableCreateButton();\n $grid->disableExport();\n $grid->disableActions();\n $grid->filter(function ($filter) {\n\n // 设置created_at字段的范围查询\n $filter->between('created_at', '创建时间')->datetime();\n });\n\n return $grid;\n }", "title": "" }, { "docid": "3d356fadb003e7f88bf05f3606097bcd", "score": "0.65931946", "text": "protected function grid()\n {\n $grid = new Grid(new Withdrawal());\n\n $grid->filter(function($filter){\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n $filter->like('name', __('分区名称'));\n });\n\n $grid->column('id', __('Id'))->sortable();\n $grid->column('uid', __('用户昵称(UID)'))->display(function ($uid) {\n return UsersInfo::where('id',$uid)->value('nickname').\"({$uid})\";\n });\n $grid->column('real_name', __('实名姓名'));\n $grid->column('id_card', __('身份证号码'));\n $grid->column('mobile', __('联系电话'));\n $grid->column('amount', __('提现数量'));\n $grid->column('status', __('状态'))->display(function ($status) {\n return Withdrawal::$status[$status];\n });\n $grid->column('created_at', __('创建时间'));\n $grid->column('updated_at', __('修改时间'));\n\n $grid->disableActions();\n\n return $grid;\n }", "title": "" }, { "docid": "446a152bf34768c1c0c6de16b6927df6", "score": "0.6573453", "text": "protected function grid()\n {\n $grid = new Grid(new Test());\n\n $grid->id('编号');\n $grid->name('教师姓名');\n $grid->work_point('教学分数');\n $grid->science_point('科研分数');\n $grid->disableCreateButton();\n $grid->disableFilter();\n $grid->disableActions();\n return $grid;\n }", "title": "" }, { "docid": "afb56c2cb25c30905346471629c48692", "score": "0.65731144", "text": "protected function grid()\n {\n $grid = new Grid(new WinNotice);\n\n $grid->type('项目类型');\n $grid->tzsbh('通知书编号');\n $grid->xmbh('项目编号');\n $grid->title('标的名称');\n // $grid->zbnr('中标内容');\n $grid->zbr('中标方名称');\n $grid->zbf_phone('中标方手机号');\n // $grid->zbf_lx_1('中标方类型1');\n // $grid->zbf_lx_2('中标方类型2');\n $grid->jysj('交易时间');\n $grid->cjj_zj('成交总价');\n $grid->cjj_dj('成交单价');\n // $grid->cjj_bz('成交价格备注');\n // $grid->jyfs('交易方式');\n // $grid->jycd('交易场地');\n // $grid->zbf_qy('中标方所属区域');\n // $grid->zbhyq('Zbhyq');\n // $grid->tzs_fs('Tzs fs');\n // $grid->tzs_fs_1('Tzs fs 1');\n // $grid->tzs_fs_2('Tzs fs 2');\n // $grid->tzs_fs_3('Tzs fs 3');\n // $grid->tzs_fs_4('Tzs fs 4');\n // $grid->notes('Notes');\n // $grid->issue_time('Issue time');\n // $grid->file_path('File path');\n // $grid->created_at('Created at');\n // $grid->updated_at('Updated at');\n\n return $grid;\n }", "title": "" }, { "docid": "99bc2d7ba7c480bf93fc27b156824e72", "score": "0.6569333", "text": "protected function grid()\n {\n $grid = new Grid(new Tag());\n\n $grid->column('id', __('Id'))->width(30);\n $grid->column('tag_name', __('Tag name'))->editable()->width(300);\n\n $grid->actions(function ($actions) {\n $actions->disableView();\n $actions->disableEdit();\n });\n\n $grid->disableFilter();\n\n\n return $grid;\n }", "title": "" }, { "docid": "8d62f765bc0f0fc26af6a60a850010c0", "score": "0.65642095", "text": "protected function grid()\n {\n $grid = new Grid(new UserHealth());\n\n $grid->column('id', __('Id'))->filter();\n $grid->column('height', __('Height'))->filter();\n $grid->column('weight', __('Weight'))->filter();\n $grid->column('blood_pressure', __('Blood pressure'))->filter();\n $grid->column('sugar_level', __('Sugar level'))->filter();\n $grid->column('blood_type', __('Blood type'))->filter();\n $grid->column('muscle_mass', __('Muscle mass'))->filter();\n $grid->column('metabolism', __('Metabolism'))->filter();\n $grid->column('genetic_history', __('Genetic history'))->filter();\n $grid->column('illness_history', __('Illness history'))->filter();\n $grid->column('allergies', __('Allergies'))->filter();\n $grid->column('prescription', __('Prescription'))->filter();\n $grid->column('operations', __('Operations'))->filter();\n $grid->column('user_id', __('User id'))->filter();\n $grid->column('created_at', __('Created at'))->filter();\n $grid->column('updated_at', __('Updated at'))->filter();\n\n return $grid;\n }", "title": "" }, { "docid": "002f7e00bf5d65940132ae41d418be82", "score": "0.65639156", "text": "protected function grid()\n { \n \n $grid = new Grid(new Blog);\n\n $grid->id('Id')->sortable();\n $grid->title('标题');\n // $grid->content('内容');\n $grid->logo('图片')->display(function ($value) {\n return \"<img width='50' src='/upload/$value'>\";\n });\n $grid->discuss('评论');\n $grid->display('浏览');\n \n $grid->lab_id('标签')->display(function ($value) {\n $lab_name = Lab::select('lab_name')->where('id',$value)->get();\n \n return $lab_name[0]->lab_name;\n });\n\n $grid->cat_id('分类')->display(function ($value) {\n $cat_name = Cat::select('cat_name')->where('id',$value)->get();\n return $cat_name[0]->cat_name;\n });\n \n\n\n $grid->created_at('添加时间');\n \n $grid->actions(function ($actions){\n $actions->disableView();\n });\n\n $grid->filter(function($filter){\n $filter->like('title', '标题');\n $filter->like('content', '内容');\n });\n\n return $grid;\n }", "title": "" }, { "docid": "2674d6ab44d33f6a8309a5e3b9dae1d7", "score": "0.65577185", "text": "protected function grid()\n {\n $grid = new Grid(new Category());\n $grid->model()->small();\n \n $grid->quickCreate(function (Grid\\Tools\\QuickCreate $create) {\n $create->text('erp_id', 'ERP ID');\n $create->text('name', '小分類名稱');\n $create->select('parent_id', __('中分類'))->options(\n Category::Mid()->pluck('name', 'id')\n );\n $create->text('type','分級(不需改)')->default(3);\n });\n\n $grid->column('erp_id', __('ERP Id'));\n $grid->column('name', __('小分類名稱'));\n $grid->column('parent_id', __('中分類'))->display(function($userId) {\n return Category::find($userId)->name;\n });\n return $grid;\n }", "title": "" }, { "docid": "ed2145b0dcbfcdd1ac1e434176d06b48", "score": "0.655355", "text": "protected function grid()\n {\n $grid = new Grid(new Category);\n $grid->model()->orderBy('sort','desc');\n $grid->cate_name('类型名称')->editable();\n $grid->sort('排序')->editable();\n $grid->created_at('创建时间');\n $grid->filter(function ($filter) {\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n $filter->like('cate_name', '分类名');\n // 设置created_at字段的范围查询\n $filter->between('created_at', '创建日期')->datetime();\n });\n //禁用批量删除\n $grid->tools(function ($tools) {\n $tools->batch(function ($batch) {\n $batch->disableDelete();\n });\n });\n //关闭行操作 删除\n $grid->actions(function ($actions) {\n $actions->disableView();\n });\n //禁用导出数据按钮\n $grid->disableExport();\n $grid->disableRowSelector();\n //设置分页选择器选项\n $grid->perPages([10, 20, 30, 40, 50]);\n return $grid;\n }", "title": "" }, { "docid": "b6a503bf0befb2622f228cba14716d2c", "score": "0.6542962", "text": "protected function grid()\n {\n $grid = new Grid(new Student);\n\n $grid->id('Id');\n $grid->surname('Фамилия');\n $grid->name('Имя');\n $grid->family_name('Отчество');\n $grid->telegram_id('Telegram-id');\n $grid->email('Email');\n $grid->number('Контактный телефон');\n $grid->groups_id('Группа')->using(Group::all()->pluck('name', 'id')->toArray());\n $grid->created_at('Создание записи');\n $grid->updated_at('Редактирование записи');\n\n return $grid;\n }", "title": "" }, { "docid": "ef237a268c15725fe115c738b826c92b", "score": "0.65337956", "text": "protected function grid()\n {\n $grid = new Grid(new $this->currentModel);\n\n $grid->filter(function($filter){\n\n // 去掉默认的id过滤器\n //$filter->disableIdFilter();\n\n // 在这里添加字段过滤器\n $filter->like('title_designer_cn', '标题(设计师)');\n $filter->like('title_name_cn', '标题(项目名称)');\n $filter->like('title_intro_cn', '标题(项目介绍)');\n\n });\n\n $grid->id('ID')->sortable();\n $grid->title_designer_cn('标题(中)')->display(function () {\n return CurrentModel::formatTitle($this, 'cn');\n });\n $grid->title_designer_en('标题(英)')->display(function () {\n return CurrentModel::formatTitle($this, 'en');\n });\n $grid->article_status('状态')->display(function ($article_status) {\n switch ($article_status) {\n case '0' :\n $article_status = '草稿';\n break;\n case '1' :\n $article_status = '审核中';\n break;\n case '2' :\n $article_status = '已发布';\n break;\n }\n return $article_status;\n });\n $grid->release_time('发布时间')->sortable();\n \n // $grid->column('created_at', __('发布时间'));\n $grid->created_at('添加时间')->sortable();\n // $grid->column('updated_at', __('添加时间'));\n\n return $grid;\n }", "title": "" }, { "docid": "0217f67f15c5cd8cf1c3d4c12bdd97f3", "score": "0.6526889", "text": "protected function grid()\n {\n $grid = new Grid(new User());\n\n $grid->column('id', __('field.id'));\n $grid->column('name', __('Name'));\n $grid->column('email', __('Email'));\n $grid->column('email_verified_at', __('Email verified at'));\n $grid->column('password', __('Password'));\n $grid->column('remember_token', __('Remember token'));\n $grid->column('point', __('Point'));\n $grid->column('status', __('field.status'));\n $grid->column('created_at', __('field.created_at'));\n $grid->column('updated_at', __('field.updated_at'));\n\n return $grid;\n }", "title": "" }, { "docid": "ba5372157c4355e17a01a66c5e05f336", "score": "0.6522426", "text": "protected function grid()\n {\n $grid = new Grid(new Packages);\n\n $grid->filter(function ($filter) {\n\n // Remove the default id filter\n $filter->disableIdFilter();\n \n // Add a column filter\n $filter->like('name_ar', 'arabic name');\n $filter->like('name_en', 'english name');\n $filter->scope('is_active', 'active')->where('status', true);\n $filter->scope('not_active', 'not active')->where('status', false);\n\n });\n\n $grid->id('ID');\n $grid->name_ar('Arbic name');\n $grid->name_en('English name');\n $grid->logo()->image(100, 100);\n $grid->num_of_events();\n $grid->num_of_activity();\n $grid->num_of_services();\n $grid->duration();\n $grid->price();\n\n $grid->description();\n\n $grid->column('status')->display(function () {\n if ($this->status == 0) {\n return \"<span style='color: red;'>not active</span>\";\n } else {\n return \"<span style='color: #00a65a\t;'>active</span>\";\n }\n });\n // $grid->is_active('Is Active');\n $grid->created_at('Created at');\n $grid->updated_at('Updated at');\n\n return $grid;\n }", "title": "" }, { "docid": "37afc0e90bdf012e2200b3d568f3ab0a", "score": "0.65218806", "text": "protected function grid()\n {\n $grid = new Grid(new Product);\n $grid->model()->where('type',$this->getProductType())->orderBy('id','desc');\n //调用自定义的Grid\n\n $this->customGird($grid);\n $grid->actions(function ($actions) {\n $actions->disableView();\n $actions->disableDelete();\n });\n $grid->tools(function ($tools) {\n // 禁用批量删除按钮\n $tools->batch(function ($batch) {\n $batch->disableDelete();\n });\n });\n\n return $grid;\n }", "title": "" }, { "docid": "20c9a3b0cb52c69f67060c5897834eff", "score": "0.6519696", "text": "protected function grid()\n {\n $grid = new Grid(new Page);\n $grid->expandFilter();\n $grid->disableExport();\n $grid->model()->where('site_id', site()->get());\n $grid->filter(function ($filter) {\n $filter->disableIdFilter();\n \n $filter->column(1 / 3, function ($filter) {\n $filter->like('title', '标题');\n });\n $filter->column(1 / 3, function ($filter) {\n $filter->equal('category_id', '分类')->select(PageCategory::selectShow());\n });\n \n $filter->column(1 / 3, function ($filter) {\n $filter->like('created_at', '日期')->date();\n });\n \n });\n $grid->actions(function ($actions) {\n $actions->disableView();\n });\n $grid->column('id', __('编码'))->sortable();\n $grid->column('pic_url', __('缩略图'))->image(env('APP_URL') . '/uploads', 50, 50);\n $grid->column('title', __('标题'))->editable();\n $grid->column('created_at', __('创建时间'))->sortable();\n \n return $grid;\n }", "title": "" }, { "docid": "a28185faf62dc98028cc8e0d569e84c7", "score": "0.6508564", "text": "protected function grid()\n {\n $grid = new Grid(new DbTop());\n $grid->header(function ($query) {\n $alread = DbTop::whereStatus(1)->count();\n $notyet = DbTop::whereStatus(0)->count();\n $notok = DbTop::whereStatus(2)->count();\n $pan = DbTop::where('pan_url', '<>', '')->count();\n $x = '已看:' . $alread . '<br />未看:' . $notyet . '<br />不感兴趣:' . $notok . '<br />资源:' . $pan;\n return '<div class=\"alert alert-success\" role=\"alert\">' . $x . '</div>';\n });\n $grid->column('no', __(trans('hhx.no')))->display(function ($no) {\n return 'No.' . $no;\n });\n $grid->column('img', __(trans('hhx.img')))->image();\n $grid->column('c_title', __(trans('hhx.c_title')))->display(function () {\n return $this->c_title . ' ' . $this->year;\n });\n $grid->column('rating_num', __(trans('hhx.rating_num')));\n $grid->column('inq', __(trans('hhx.inq')));\n $grid->column('actor', __(trans('hhx.actor')));\n $grid->column('type', __(trans('hhx.type')));\n $grid->column('status', __(trans('hhx.status')))->select(config('hhx.db_status'));\n $grid->filter(function ($filter) {\n $filter->like('c_title', '中文名');\n $filter->like('year', '年');\n $filter->like('status', trans('hhx.status'))->select(config('hhx.db_status'));\n });\n\n return $grid;\n }", "title": "" }, { "docid": "d16b6883a875bba1889551c646d47540", "score": "0.65057564", "text": "public function makeGrid($width, $height)\n {\n return $this->gridProcessor->generateGrid($width, $height);\n }", "title": "" }, { "docid": "631048f7448befc3d89a64b7f73dd8a1", "score": "0.65050364", "text": "protected function grid()\n {\n $grid = new Grid(new Drug);\n\n $grid->id('ID');\n $grid->street_name('«Уличное» название');\n $grid->city('Город');\n $grid->column('photo_drug','Фотография наркотика')->display(function () {\n $photo = Photo::whereDrugId($this->id)->where('type', 0)->first();\n\n if ($photo) {\n return $photo->photo;\n } else {\n return '';\n }\n })->image();\n\n $grid->column('confirm', 'Подтверждение')->display(function ($confirm) {\n if ($confirm) {\n return '✅Подтверждено';\n } else {\n return '❌Не подтверждено';\n }\n });\n $grid->updated_at('Дата изменения');\n\n return $grid;\n }", "title": "" }, { "docid": "0a8409550d2abef88c1dc0f213481203", "score": "0.6498207", "text": "protected function grid()\n {\n $grid = new Grid(new Profile());\n\n $grid->column('id', __('ID'))->sortable();\n $grid->column('name', __('ID'))->sortable();\n $grid->column('surname', __('ID'))->sortable();\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "4924c65b4ff1228ce1d1ad45fc29ca3c", "score": "0.649693", "text": "protected function grid()\n {\n $grid = new Grid(new TariffPlan());\n\n $grid->column('id', __('Id'));\n// $grid->column('tarifplan_name_en', __('Tarifplan name en'));\n $grid->column('tarifplan_name_ru', __('Tarifplan name ru'));\n// $grid->column('tarifplan_name_kz', __('Tarifplan name kz'));\n $grid->column('managers_count', __('Managers count'));\n// $grid->column('videoclip_links_count', __('Videoclip links count'));\n// $grid->column('additional_presentation_links_count', __('Additional presentation links count'));\n// $grid->column('model3D_links', __('Model3D links'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "b8b3aede349cef8f4fae5758110f71d4", "score": "0.6496869", "text": "protected function grid()\n {\n $grid = new Grid(new Schedule);\n\n $grid->id('Id');\n $grid->type('Type')->display(function($category) {\n $result = [ 'Inbound', 'Outbound'];\n return $result[$category];\n });\n $grid->column('Tour name')->display(function () {\n $names = array_map(function($item) {\n return \"<span>{$item['lang']}: {$item['tour_name']}</span><br>\";\n }, $this->trans->toArray());\n return implode('', $names);\n });\n $grid->start_date('Start date');\n $grid->column('Url')->display(function () {\n $names = array_map(function($item) {\n return \"<span>{$item['lang']}: {$item['url']}</span><br>\";\n }, $this->trans->toArray());\n return implode('', $names);\n });\n $grid->status('Status');\n $grid->created_at('Created at');\n $grid->updated_at('Updated at');\n\n return $grid;\n }", "title": "" }, { "docid": "ba94e878f63288130bf46d020ebbcedb", "score": "0.64961153", "text": "protected function grid()\n {\n $grid = new Grid(new ArticleRecord());\n\n $grid->column('id', __('Id'));\n $grid->column('article_id', __('Article'))->display(function ($article_id) {\n return Article::find($article_id)->title;\n });\n $grid->column('user_id', __('User'))->display(function ($user_id) {\n return User::find($user_id)->username;\n });\n $grid->column('type', __('Type'))->display(function ($relased) {\n switch ($relased) {\n case 1:\n return \"Visit\";\n break;\n case 2:\n return \"Like\";\n break;\n }\n return $relased;\n });\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n $grid->column('deleted_at', __('Deleted at'));\n $grid->disableCreateButton();\n $grid->disableActions();\n return $grid;\n }", "title": "" }, { "docid": "3cb529d3cc0d43113362654b2a1e15df", "score": "0.6489132", "text": "protected function grid()\n {\n $grid = new Grid(new User);\n\n $grid->id('Id');\n $grid->avatar('头像')->image(env('OSS_URL'),30,30);\n $grid->name('姓名');\n $grid->email('邮箱');\n $grid->settings('用户设置');\n $grid->is_active('是否活动')->display(function ($is_active) {\n return $is_active ? '是' : '否';\n });;\n $grid->created_at('注册时间');\n\n return $grid;\n }", "title": "" }, { "docid": "f45aad08df60f970361af8c6511190f2", "score": "0.64881945", "text": "protected function grid()\n {\n $grid = new Grid(new User);\n\n $grid->id('Id');\n $grid->avatar('头像')->image(config('app.url'), 50, 50);\n $grid->name('姓名');\n $grid->roles('角色')->pluck('name')->label();\n $grid->email('邮箱');\n $grid->created_at('注册时间');\n $grid->last_actived_at('最后活跃时间');\n\n return $grid;\n }", "title": "" }, { "docid": "74207f9a9ba4cf10a42c6aecccab6806", "score": "0.6474169", "text": "protected function grid()\n {\n $grid = new Grid(new ProductSku());\n\n $grid->column('id', __('Id'));\n $grid->column('product', __('产品'))->display(function ($product){\n return $product['title'];\n });\n $grid->column('title', __('Title'));\n $grid->column('description', __('Description'));\n $grid->column('price', __('Price'));\n $grid->column('stock', __('Stock'));\n $grid->column('options', __('sku规格'))->display(function ($options){\n if (count($options) > 0){\n $strOption = '';\n foreach ($options as $option) {\n $strOption .= \"<p>{$option['product_property_name']}:{$option['product_property_value']}</p>\";\n }\n return $strOption;\n }\n return '';\n });\n\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "77fa12ae141c7bdf1701685ce79a5fec", "score": "0.64705735", "text": "protected function grid()\n {\n $grid = new Grid(new AppAdpublish);\n\n $grid->column('title', '标题');\n $grid->column('ADinfo', '广告信息');\n $grid->column('phone', '发布人账号');\n $grid->column('time', '发布时间');\n\n $grid->model()->orderBy('id', 'desc');\n\n //禁用行选择checkbox\n $grid->disableRowSelector();\n //禁用创建按钮\n $grid->disableCreateButton();\n\n $grid->actions(function ($actions) {\n $actions->disableDelete();\n $actions->disableEdit();\n });\n\n $grid->disableFilter();\n\n return $grid;\n }", "title": "" }, { "docid": "9455b5e64e31277e377a7b90731f51fc", "score": "0.6469046", "text": "protected function grid()\n {\n $grid = new Grid(new Order);\n // 只展示已支付的订单,并且默认按支付时间倒序排序\n $grid->model()->whereNotNull('paid_at')->orderBy('paid_at', 'desc');\n\n $grid->no('订单流水号');\n //展示关联关系的字段时,使用column方法\n $grid->column('user.name','买家');\n $grid->total_amount('总金额')->sortable();\n $grid->paid_at('支付时间')->sortable();\n $grid->ship_status('物流')->display(function($value) {\n return Order::$shipStatusMap[$value];\n });\n $grid->refund_status('退款状态')->display(function($value) {\n return Order::$refundStatusMap[$value];\n });\n // 禁用创建按钮,后台不需要创建订单\n $grid->disableCreateButton();\n $grid->actions(function ($actions) {\n // 禁用删除和编辑按钮\n $actions->disableDelete();\n $actions->disableEdit();\n });\n $grid->tools(function ($tools) {\n // 禁用批量删除按钮\n $tools->batch(function ($batch) {\n $batch->disableDelete();\n });\n });\n// return $grid;\n }", "title": "" }, { "docid": "3211726cb5b84563f9e83d31c664f005", "score": "0.6463954", "text": "protected function grid()\n {\n $grid = new Grid(new StockProduct);\n\n $grid->column('id', __('Id'));\n // $grid->column('product_id', __('Product id'))->modal('Product Name', function($model){\n // $products = $model->product()->get()->map(function($product) {\n // return $product->only('id','product_name');\n // });\n // return new Table(['ID', 'Product Name'], $products->toArray());\n // });\n $grid->column('product.product_name', __('Name'));\n $grid->column('moq', __('Moq'));\n $grid->column('quantity', __('Quantity'));\n $grid->column('price', __('Price'));\n $grid->column('note', __('Note'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "c0f2fa807fc25bd85a52bab6982cba7c", "score": "0.64510244", "text": "protected function grid()\n {\n $grid = new Grid(new Project());\n $grid->model()->orderBy('id', 'desc');\n $grid->id('ID')->sortable();\n $grid->name('项目名称')->editable();\n $grid->url('项目地址')->link();\n $grid->username('账号');\n $grid->password('密码');\n $status = [\n 'on' => ['value' => 1, 'text' => '启用', 'color' => 'success'],\n 'off' => ['value' => 0, 'text' => '禁用', 'color' => 'danger'],\n ];\n $grid->status('状态')->switch($status);\n $grid->created_at('创建时间');\n $grid->actions(function ($actions) {\n $actions->disableView();\n });\n $grid->disableFilter();\n $grid->disableExport();\n $grid->disableRowSelector();\n\n return $grid;\n }", "title": "" }, { "docid": "90bb62939f0e19f1c3d94800cf3da242", "score": "0.6446523", "text": "protected function grid()\n {\n $grid = new Grid(new Articles);\n $where = [\n 'token' => session('wxtoken'),\n 'status' => 1\n ];\n switch ($this->type) {\n case 1:\n $where['is_province'] = 1;\n break;\n case 2:\n $where['is_city'] = 1;\n break;\n default:\n $where['is_district'] = 1;\n }\n $grid->model()->where($where);\n $grid->model()->orderBy('created_at', 'desc');\n\n $grid->column('hasOneCategories.title', '分类');\n $grid->title('标题');\n $grid->description('描述')->limit(50);\n $grid->picture('封面')->image('', 60, 60);\n $grid->created_at('创建时间');\n $grid->actions(function ($actions) {\n //关闭行操作\n $actions->disableEdit();\n $actions->disableDelete();\n });\n $grid->disableFilter();\n $grid->disableExport();\n $grid->disableRowSelector();\n $grid->disableColumnSelector();\n $grid->disableCreateButton();\n return $grid;\n }", "title": "" }, { "docid": "81f4078a7be869087e451f01de586dd2", "score": "0.64450586", "text": "protected function grid()\n {\n $grid = new Grid(new TaskOrder);\n $grid->model()->orderBy('id', 'desc');\n $grid->filter(function($filter){\n $filter->disableIdFilter();\n $filter->equal('eid','快递单号')->integer();\n $filter->equal('store','快递网点')->select(storedatas(1));\n $filter->equal('etype','快递公司')->select(edatas());\n $filter->equal('sname','客服名称');\n $filter->between('created_at', '导入时间')->datetime();\n });\n $grid->id('ID');\n $grid->eid('快递单号');\n $grid->sname('客服名称');\n $grid->store('快递网点');\n $grid->etype('快递公司');\n\n $grid->created_at('分配时间');\n //$grid->updated_at('分配时间');\n $excel = new ExcelExpoter();\n $excel->setAttr([ '快递单号','快递网点','快递公司','负责客服','导入时间'], ['eid','store','etype','sname','created_at']);\n $grid->exporter($excel);\n\n return $grid;\n }", "title": "" }, { "docid": "df581c5c236897c58cf386e877e489c3", "score": "0.6431974", "text": "protected function grid()\n {\n $grid = new Grid(new Student());\n\n $grid->model()->latest();\n\n $grid->disableCreateButton();\n $grid->actions(function ($actions) {\n $actions->disableEdit();\n $actions->disableView();\n });\n\n $grid->column('id', __('Id'));\n $grid->column('name', __('Name'))->modal('send message', function ($model) {\n $form = new ModalForm();\n $form->hidden('type')->default('student');\n $form->hidden('user_id')->default($model->id);\n $form->action('/admin/send');\n $form->method('POST');\n $form->textarea('message');\n return $form->render();\n });\n $grid->column('email', __('Email'));\n $grid->column('school.name', __('School Name'));\n $grid->column('line.name', __('Line Name'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n Admin::script(\"$('.modal-backdrop').remove();\");\n\n return $grid;\n }", "title": "" }, { "docid": "e439d05cbc57f221e866246f4b106820", "score": "0.64308834", "text": "protected function grid()\n {\n $Adv=new Adv();\n $grid = new Grid($Adv);\n\n $platform= $Adv->platform;\n $type= $Adv->type;\n $status= $Adv->status;\n\n $list_array=[\n array(\"field\"=>\"title\",\"title\"=>\"标题\",\"type\"=>\"value\"),\n array(\"field\"=>\"platform\",\"title\"=>\"平台\",\"type\"=>\"array\",\"array\"=>$platform),\n array(\"field\"=>\"type\",\"title\"=>\"类型\",\"type\"=>\"array\",\"array\"=>$type),\n array(\"field\"=>\"image\",\"title\"=>\"图片\",\"type\"=>\"image\"),\n array(\"field\"=>\"start_time\",\"title\"=>\"活动开始时间\",\"type\"=>\"value\"),\n array(\"field\"=>\"end_time\",\"title\"=>\"活动结束时间\",\"type\"=>\"value\"),\n array(\"field\"=>\"status\",\"title\"=>\"状态\",\"type\"=>\"array\",\"array\"=>$status),\n array(\"field\"=>\"created_at\",\"title\"=>\"创建时间\",\"type\"=>\"value\")\n ];\n BaseControllers::setlist_show($grid,$list_array);\n\n $grid->filter(function($filter) use($platform,$type){\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n\n $filter->in('platform', \"平台\")->multipleSelect($platform);\n $filter->in('type', \"类型\")->multipleSelect($type);\n });\n return $grid;\n }", "title": "" }, { "docid": "5cb33b707ac8b029ec0ff285c48fb44f", "score": "0.6420814", "text": "protected function grid()\n {\n $grid = new Grid(new Carousel);\n\n $grid->model()->latest();\n\n $grid->filter(function($filter){\n\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n\n $filter->equal('carousel_category_id', __('carousel::carousel.carousel_category_id'))\n ->select(CarouselCategory::all()->pluck('name', 'id'));\n $filter->like('title', __('carousel::carousel.title'));\n $filter->between('start_time', __('carousel::carousel.start_time'))->date();\n $filter->between('end_time', __('carousel::carousel.end_time'))->date();\n\n });\n\n $grid->column('id', __('carousel::carousel.id'));\n $grid->column('category.name', __('carousel::carousel.carousel_category_id'));\n $grid->column('title', __('carousel::carousel.title'));\n $grid->column('img_src', __('carousel::carousel.img_src'))->image();\n $grid->column('status', __('carousel::carousel.status.label'))\n ->using(__('carousel::carousel.status.value'));\n $grid->column('start_time', __('carousel::carousel.start_time'));\n $grid->column('end_time', __('carousel::carousel.end_time'));\n $grid->column('created_at', __('admin.created_at'));\n\n return $grid;\n }", "title": "" }, { "docid": "f3cc4167364d34a73f6cf7c4dca7d413", "score": "0.64183867", "text": "protected function grid()\n {\n $grid = new Grid(new CheckIp());\n $grid->column('ip', __('IP'));\n $grid->column('iswhite', __('白名單'))->using(['0' => '否', '1' => '是']);\n $grid->column('created_at', __('建立時間'))->display(function ($created_at) {\n $date = Carbon::parse($created_at);\n return $date->format('Y-m-d H:i');\n });\n $grid->column('updated_at', __('修改時間'))->display(function ($updated_at) {\n $date = Carbon::parse($updated_at);\n return $date->format('Y-m-d H:i');\n });\n\n return $grid;\n }", "title": "" }, { "docid": "87ab21a47e36f9c26668b4f58996e3e8", "score": "0.641611", "text": "protected function grid()\n {\n $grid = new Grid(new UserInfo);\n $grid->disableActions();\n $grid->disableRowSelector();\n $grid->disableColumnSelector();\n $grid->disableFilter();\n $grid->disableExport();\n $grid->column('id', __('Id'));\n $grid->column('username', __('用户名'));\n $grid->column('password', __('密码'))->hide();\n $grid->column('user_id', __('用户账号'));\n $grid->column('role', __('角色'));\n $grid->column('motto', __('座右铭'));\n $grid->column('resume', __('简历'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }", "title": "" }, { "docid": "ef74bdd310dfd210d05fd858ea60cfe6", "score": "0.6415505", "text": "protected function grid()\n {\n $grid = new Grid(new UserAddress);\n\n $grid->id('Id');\n $grid->user_id('User id');\n $grid->province('Province');\n $grid->city('City');\n $grid->district('District');\n $grid->address('Address');\n $grid->contact_name('Contact name');\n $grid->contact_phone('Contact phone');\n $grid->last_used_at('Last used at');\n $grid->created_at('Created at');\n $grid->updated_at('Updated at');\n\n return $grid;\n }", "title": "" } ]
ae11d6cd1617906c05f884b7827e69a9
Handle a parameter validation/sanitization failure. By default, this simply throws an exception, but more advanced processing can be handled here, if necessary.
[ { "docid": "b743851092878b8b0dcbf5877073fb65", "score": "0.5740387", "text": "public function handleIllegalParameter($name, $filter, $payload, $options) {\n $msg = \"Filter %s failed for %s (options: %s)\";\n throw new FortissimoException(sprintf($msg, $filter, $name, print_r($options, TRUE)));\n }", "title": "" } ]
[ { "docid": "adc55ecd3494ae54ad49ca276050baf9", "score": "0.61337787", "text": "public function it_must_throw_invalid_argument_exception_on_parameters()\n {\n ResourceObject::all('parameters');\n }", "title": "" }, { "docid": "5bfc1a2e6b426bbf3a0483ccb54a8328", "score": "0.6005949", "text": "public function ValidatorHandlingError(){\n }", "title": "" }, { "docid": "d82a89baf7126b804d3fe395c8cd93a2", "score": "0.59959966", "text": "public function validate_ex(&$arg) {\n\t\tif (!$this->validate($arg)) {\n\t\t\tthrow new ValueException($this->getLastFailure(), $arg);\n\t\t}\n\t}", "title": "" }, { "docid": "f8eb65d8c01c90a1ce0ceff94a2f69aa", "score": "0.5863416", "text": "protected function handle_failure() {\n }", "title": "" }, { "docid": "f8eb65d8c01c90a1ce0ceff94a2f69aa", "score": "0.5863416", "text": "protected function handle_failure() {\n }", "title": "" }, { "docid": "e5c4a68694169d30a75851fd87347db7", "score": "0.5676824", "text": "public function callUserFunctionInvalidParameterDataprovider() {}", "title": "" }, { "docid": "7fa2ea07186409bc745e7fee2f0aefa0", "score": "0.5622008", "text": "protected function handleValidationExceptions()\n {\n return $this->handleExceptions([ValidationException::class]);\n }", "title": "" }, { "docid": "7fa2ea07186409bc745e7fee2f0aefa0", "score": "0.5622008", "text": "protected function handleValidationExceptions()\n {\n return $this->handleExceptions([ValidationException::class]);\n }", "title": "" }, { "docid": "fd9575422697927471a33f46d1b9fd7b", "score": "0.56098044", "text": "public function validate(): void\n {\n $params = [\n 'orderId' => $this->params->orderId,\n 'productId' => $this->params->productId,\n 'currency' => $this->params->currency,\n 'revenue' => $this->params->revenue,\n ];\n\n foreach ($params as $paramName => $paramValue) {\n if ($paramValue === null || $paramValue === '') {\n throw new InvalidArgumentException(\"$paramName param is required\");\n }\n }\n\n if (!$this->params->token && empty($this->params->isVerified)) {\n throw new InvalidArgumentException('One of the parameters must be passed: \"token\" or \"isVerified\"');\n }\n\n if ($this->params->token && !empty($this->params->isVerified)) {\n throw new InvalidArgumentException('Exactly one of the parameters must be passed: \"token\" or \"isVerified\"');\n }\n\n if (!empty($this->params->isVerified) && $this->params->isVerified !== 1) {\n throw new InvalidArgumentException('isVerified must be 1');\n }\n\n if (strlen($this->params->currency) !== 3) {\n throw new InvalidArgumentException(\"currency must be 3 character code\");\n }\n\n if ($this->params->revenue <= 0.0) {\n throw new InvalidArgumentException(\"revenue must be positive number\");\n }\n }", "title": "" }, { "docid": "209eb0883a3a98bd69020a93f3649f9d", "score": "0.558632", "text": "public function checkParam(){\n//\t\t\tthrow new MigrationException('missin param <dbkey>');\n\t}", "title": "" }, { "docid": "1047f4e9f9ef763bb71f908c7e3fa412", "score": "0.55784535", "text": "public function testInvalidParam() {\n\n $message = 'Array to string conversion';\n $this->runTryCatchForMethod( 'getSingle', array( array() ), $message );\n $this->runTryCatchForMethod( 'getMultiple', array( array(), array() ), $message );\n $this->runTryCatchForMethod( 'delete', array( array() ), $message );\n\n $message = 'Object of class stdClass could not be converted to string';\n $this->runTryCatchForMethod( 'getSingle', array( (object) array() ), $message );\n $this->runTryCatchForMethod( 'getMultiple', array( (object) array(), (object) array() ), $message );\n $this->runTryCatchForMethod( 'delete', array( (object) array() ), $message );\n }", "title": "" }, { "docid": "61fdf1a01f0206e462521ca1610899ba", "score": "0.55691123", "text": "public function testErrorHandling() {\n\t\t$bo = new MockBo();\n\n\t\ttry {\n\t\t\t$bo->getFromStorage('');\n\t\t\t$this->fail('Getting from the storage with an empty key should throw a ParameterException');\n\t\t} catch (ParameterException $e) {\n\t\t}\n\t\ttry {\n\t\t\t$bo->setToStorage('', 'test');\n\t\t\t$this->fail('Setting to the storage with an empty key should throw a ParameterException');\n\t\t} catch (ParameterException $e) {\n\t\t}\n\t}", "title": "" }, { "docid": "857b4e37fec5b5b0f3f138db0237b7c0", "score": "0.5559923", "text": "public function validateParameter($data);", "title": "" }, { "docid": "451c53c68772b9d3d23261259e191ff1", "score": "0.55328304", "text": "private function shouldThrowError()\n {\n if (!$this->resource || !$this->endpoint) response(\"Invalid API request\", 400);\n }", "title": "" }, { "docid": "6302b0112758e82b4398e542131f0c34", "score": "0.5504348", "text": "public function userMadeBadRequest() {\n $this->errorOccured(400);\n }", "title": "" }, { "docid": "0d4b41f980295b0662bfc436709a7158", "score": "0.54834014", "text": "private function validateParameters()\n {\n is_dir($this->imagePath) or $this->errorMessage('The image dir is not a valid directory.');\n is_writable($this->cachePath) or $this->errorMessage('The cache dir is not a writable directory.');\n isset($this->src) or $this->errorMessage('Must set src-attribute.');\n preg_match('#^[a-z0-9A-Z-_\\.\\/]+$#', $this->src) or $this->errorMessage('Filename contains invalid characters.');\n substr_compare($this->imagePath, $this->pathToImage, 0, strlen($this->imagePath)) == 0 or $this->errorMessage('Security constraint: Source image is not directly below the directory IMG_PATH.');\n is_null($this->saveAs) or in_array($this->saveAs, array('png', 'jpg', 'jpeg', 'gif')) or $this->errorMessage('Not a valid extension to save image as');\n is_null($this->quality) or (is_numeric($this->quality) and $this->quality > 0 and $this->quality <= 100) or $this->errorMessage('Quality out of range');\n is_null($this->newWidth) or (is_numeric($this->newWidth) and $this->newWidth > 0 and $this->newWidth <= $this->maxWidth) or $this->errorMessage('Width out of range');\n is_null($this->newHeight) or (is_numeric($this->newHeight) and $this->newHeight > 0 and $this->newHeight <= $this->maxHeight) or $this->errorMessage('Height out of range');\n is_null($this->cropToFit) or ($this->cropToFit and $this->newWidth and $this->newHeight) or $this->errorMessage('Crop to fit needs both width and height to work');\n is_null($this->filterType) or in_array($this->filterType, array('grayscale', 'sepia')) or $this->errorMessage('Not a valid image filter');\n }", "title": "" }, { "docid": "a12196ba7d07f02aa68466a3f92bb102", "score": "0.5474008", "text": "public function validate(): void\n {\n $params = [\n 'transactionId' => $this->params->transactionId,\n 'productId' => $this->params->productId,\n 'receipt' => $this->params->receipt,\n 'price' => $this->params->price,\n 'currency' => $this->params->currency,\n ];\n\n foreach ($params as $paramName => $paramValue) {\n if (empty($paramValue)) {\n throw new InvalidArgumentException(\"$paramName param is required\");\n }\n }\n\n if ($this->params->price <= 0) {\n throw new InvalidArgumentException(\"price must be positive number\");\n }\n\n if (strlen($this->params->currency) !== 3) {\n throw new InvalidArgumentException(\"currency must be 3 character code\");\n }\n\n if (!preg_match('/^[a-zA-Z0-9\\/\\r\\n+]*={0,2}$/', $this->params->receipt)) {\n throw new InvalidArgumentException(\"receipt must be valid base64 string\");\n }\n }", "title": "" }, { "docid": "4230cf91656102621dcbb5374ab07985", "score": "0.5472815", "text": "protected function validate_data() {\n parent::validate_data();\n\n if (!isset($this->other['format'])) {\n throw new \\coding_exception('The \\'format\\' must be set in \\'other\\'.');\n }\n }", "title": "" }, { "docid": "766ef74715d703f9ac16c88ceceefdbd", "score": "0.54575443", "text": "final private function validate()\n {\n if ($this->getContent() == null) {\n throw new \\Exception('Missing content exception');\n }\n if (!Language::validate($this->getLanguage())) {\n throw new \\Exception('Invalid language exception');\n }\n if (!Visibility::validate($this->getVisibility())) {\n throw new \\Exception('Invalid visibility exception');\n }\n }", "title": "" }, { "docid": "9d52463db5ab93d0e22c55aa946266a3", "score": "0.5446897", "text": "public function it_must_throw_invalid_request_exception_on_invalid_params()\n {\n Customer::retrieve('invalid');\n }", "title": "" }, { "docid": "c4b6b727b542bee5194cb3fb66f61c5d", "score": "0.53683996", "text": "protected function passedValidation(): void\n {\n if ($this->request->get($this->validate_key, false)) {\n throw new ValidatedException();\n }\n }", "title": "" }, { "docid": "afeb33f42c86e280c32d757ededaf642", "score": "0.5364278", "text": "function testAPIInputFailure()\n {\n $data = array(\"Foo_bad_input\" => array(5,\"abs\",8,7,5));\n\n try\n {\n $output = $this->api->invokeMethod(array($this->mmmr,'MMMRapi'), $data);\n }\n catch(Exception $e)\n {\n $this->assertEquals($e->getMessage(), \"Invalid Input.\");\n return;\n }\n $this->fail('Exception not thrown.');\n\n }", "title": "" }, { "docid": "1da8d166334b661bb874fa517d96c763", "score": "0.5349147", "text": "protected function validateGetUnit()\n\t{\n\t\t//\n\t\t// Validate identifier.\n\t\t//\n\t\tif( ! $this->offsetExists( kAPI_PARAM_ID ) )\n\t\t\tthrow new \\Exception(\n\t\t\t\t\"Missing unit identifier parameter.\" );\t\t\t\t\t\t\t// !@! ==>\n\n\t\t//\n\t\t// Assert result kind.\n\t\t//\n\t\tif( ! $this->offsetExists( kAPI_PARAM_DATA ) )\n\t\t\tthrow new \\Exception(\n\t\t\t\t\"Missing results kind parameter.\" );\t\t\t\t\t\t\t// !@! ==>\n\t\t\n\t\t//\n\t\t// Validate by format type.\n\t\t//\n\t\tswitch( $tmp = $this->offsetGet( kAPI_PARAM_DATA ) )\n\t\t{\n\t\t\tcase kAPI_RESULT_ENUM_DATA_MARKER:\n\t\t\t\t//\n\t\t\t\t// Assert shape offset.\n\t\t\t\t//\n\t\t\t\tif( ! $this->offsetExists( kAPI_PARAM_SHAPE_OFFSET ) )\n\t\t\t\t\tthrow new \\Exception(\n\t\t\t\t\t\t\"Missing shape offset.\" );\t\t\t\t\t\t\t\t// !@! ==>\n\t\t\t\t//\n\t\t\t\t// Normalise limit.\n\t\t\t\t//\n\t\t\t\tif( $this->offsetGet( kAPI_PAGING_LIMIT ) > kSTANDARDS_MARKERS_MAX )\n\t\t\t\t\t$this->offsetSet( kAPI_PAGING_LIMIT, kSTANDARDS_MARKERS_MAX );\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase kAPI_RESULT_ENUM_DATA_RECORD:\n\t\t\tcase kAPI_RESULT_ENUM_DATA_FORMAT:\n\t\t\t\t//\n\t\t\t\t// Normalise limit.\n\t\t\t\t//\n\t\t\t\tif( $this->offsetGet( kAPI_PAGING_LIMIT ) > kSTANDARDS_UNITS_MAX )\n\t\t\t\t\t$this->offsetSet( kAPI_PAGING_LIMIT, kSTANDARDS_UNITS_MAX );\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new \\Exception(\n\t\t\t\t\t\"Invalid result type [$tmp].\" );\t\t\t\t\t\t\t// !@! ==>\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "337cbc5e360d72c005bd7be140efe1e3", "score": "0.5345047", "text": "public function validateParameters() {\n\t\t\tglobal $rates_xml;\n\t\t\tif(isset($_POST[RATE]) && $this->isValidRate($_POST[RATE])) {\n\t\t\t\tif(isset($_POST[CODE])) {\n\t\t\t\t\tif($rates_xml->codeExists(strtoupper($_POST[CODE]))) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new APIException(ERROR_TITLE, ERROR_2400_MESSAGE, ERROR_2400);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new APIException(ERROR_TITLE, ERROR_2200_MESSAGE, ERROR_2200);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new APIException(ERROR_TITLE, ERROR_2100_MESSAGE, ERROR_2100);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "194324ec81cc79a1dda248abc0113803", "score": "0.53385526", "text": "protected function validateGetUser()\n\t{\n\t\t//\n\t\t// Assert identifier.\n\t\t//\n\t\tif( ! $this->offsetExists( kAPI_PARAM_ID ) )\n\t\t\tthrow new \\Exception(\n\t\t\t\t\"Missing unit identifier parameter.\" );\t\t\t\t\t\t\t// !@! ==>\n\n\t\t//\n\t\t// Validate identifier.\n\t\t//\n\t\t$param = $this->offsetExists( kAPI_PARAM_ID );\n\t\tif( is_array( $param )\n\t\t && ( ($this->offsetGet( kAPI_REQUEST_OPERATION ) != kAPI_OP_GET_USER)\n\t\t || (count( $param ) != 2) ) )\n\t\t\tthrow new \\Exception(\n\t\t\t\t\"Invalid user identifier parameter format.\" );\t\t\t\t\t// !@! ==>\n\n\t\t//\n\t\t// Assert result kind.\n\t\t//\n\t\tif( ! $this->offsetExists( kAPI_PARAM_DATA ) )\n\t\t\tthrow new \\Exception(\n\t\t\t\t\"Missing results kind parameter.\" );\t\t\t\t\t\t\t// !@! ==>\n\t\t\n\t\t//\n\t\t// Validate by format type.\n\t\t//\n\t\tswitch( $tmp = $this->offsetGet( kAPI_PARAM_DATA ) )\n\t\t{\n\t\t\tcase kAPI_RESULT_ENUM_DATA_RECORD:\n\t\t\tcase kAPI_RESULT_ENUM_DATA_FORMAT:\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new \\Exception(\n\t\t\t\t\t\"Invalid result type [$tmp].\" );\t\t\t\t\t\t\t// !@! ==>\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "5cb574312dfb90f267326926bfa558e4", "score": "0.5334075", "text": "private function validateRequiredProperties()\n {\n if ($this->base_url == null) {\n throw new \\Exception('The base_url property was not set.');\n }\n\n if (is_numeric($this->total_records)) {\n $this->total_records = intval($this->total_records);\n } else {\n throw new \\Exception('The total_records property was not set.');\n }\n\n if (!is_numeric($this->page_number_value)) {\n throw new \\Exception('The page_number_value property was not set.');\n }\n }", "title": "" }, { "docid": "9779c80e9600f9de9f2235854f6d5f23", "score": "0.5330534", "text": "public function validate($value)\r\n {\r\n if ($this->optional && !$value)\r\n {\r\n return true;\r\n }\r\n\r\n if (!$this->optional && !$value)\r\n {\r\n throw new Exception(\" Parameter {$this->name} value must be set\");\r\n }\r\n\r\n switch ($this->type)\r\n {\r\n case 'int':\r\n if (strval($value) != strval(intval($value)))\r\n {\r\n throw new Exception(\"Parameter {$this->name} value must be integer\");\r\n }\r\n return intval($value);\r\n case 'date':\r\n if ($value != date('Y-m-d', strtotime($value)))\r\n {\r\n throw new Exception(\"Parameter {$this->name} value must be date with format Y-m-d\");\r\n }\r\n return $value;\r\n default:\r\n return $value;\r\n }\r\n }", "title": "" }, { "docid": "f4bca06b24aa08d9efe3459fa2ace38f", "score": "0.5328417", "text": "public function testInvalidFilterParam() {\n\t\t$this->instance->createFromFilterArguments(array('boostFactor' => array('qqqq' => 0.0, 'boostFactorEnd' => 123.05)));\n\t}", "title": "" }, { "docid": "95bee75401be71d7e326a1140be5a2d6", "score": "0.5311298", "text": "private function validate_params( & $params )\n {\n if (!isset($params['id_item'])) {\n throw new \\Exception('id_item field isnt defined');\n }\n\n $val_digits = new \\Zend\\Validator\\Digits();\n\n if (false === $val_digits->isValid($params['id_item'])) {\n throw new \\Exception('id_item isnt from type bigint');\n }\n\n if (isset($params['default_display'])) {\n if (!in_array($params['default_display'], array(true,false,0))) {\n throw new \\Exception('default_display must be one of true , false or 0');\n }\n }\n\n if (isset($params['no_transform_attributes'])) {\n if (false === is_bool($params['no_transform_attributes'])) {\n throw new \\Exception('no_transform_attributes isnt from type boolean');\n }\n }\n }", "title": "" }, { "docid": "69f81c307aeaee0a1d81a218a5415287", "score": "0.53104705", "text": "public function validaParam()\n {}", "title": "" }, { "docid": "1aba27e2cd007c2b0d164fac179e1647", "score": "0.5291037", "text": "public function handleError() {\n }", "title": "" }, { "docid": "0060bb1b5886325b3e008a7931fbab93", "score": "0.5257555", "text": "public function checkParams(){\n\t\t$this->params->switchContext();\n\t\t//check year is an integer\n\t\t$this->params->checkYearIsNotNull($this->year);\n\t\t//check year is an integer\n\t\t$this->params->checkYearIsNumeric($this->year);\n\t\t//check year is in the valid yer list\n\t\t$this->params->checkYearValid($this->year,$this->datasource,$this->logger);\n\t\t\n\t}", "title": "" }, { "docid": "48e15967db48223245f878ba69f136cd", "score": "0.5249504", "text": "abstract protected function _checkParams();", "title": "" }, { "docid": "4799bebbdad04eeaf8ea3cc11293a596", "score": "0.52105504", "text": "function handleErrors($e) {\r\n}", "title": "" }, { "docid": "78f5521718a20fde203252571e205a04", "score": "0.519457", "text": "abstract protected function _validate($value);", "title": "" }, { "docid": "2ce51b491b8fe6eaa6a8c9300c937203", "score": "0.51906365", "text": "public function handle()\n {\n if($this->exception instanceof ValidationException)\n {\n return $this->handleValidationException();\n }\n\n return $this->handleException();\n }", "title": "" }, { "docid": "3d299c476b0d8471f35d3642309f0fe6", "score": "0.5175617", "text": "private function validate_params( & $params )\n {\n if (!isset($params['id_item'])) {\n throw new \\Exception('id_item field isnt defined');\n }\n\n $val_digits = new \\Zend\\Validator\\Digits();\n\n if (false === $val_digits->isValid($params['id_item'])) {\n throw new \\Exception('id_item isnt from type bigint');\n }\n\n if (!isset($params['id_image'])) {\n throw new \\Exception('id_image field isnt defined');\n }\n\n if (false === $val_digits->isValid($params['id_image'])) {\n throw new \\Exception('id_image isnt from type bigint');\n }\n }", "title": "" }, { "docid": "349fd5c2d36ef2ce1f9d81fd49b5e3d7", "score": "0.5153542", "text": "public function errorHandlingSwitch() {\n if(is_int($this->errorCase)){\n switch ($this->errorCase) {\n case 0:\n $this->addView->setErrorMSG(\"nameError\");\n $this->editView->setEditErrorMSG(\"Invalid name: Name has to be longer than 2 character and only alphabetic or numeric character\");\n break;\n case 1:\n $this->addView->setErrorMSG(\"descError\");\n $this->editView->setEditErrorMSG(\"Invalid description: Description must be longer than 10 characters\");\n break;\n case 2:\n $this->addView->setErrorMSG(\"priceError\");\n $this->editView->setEditErrorMSG(\"Invalid price: Price must be between 1 - 10000 and be of numeric characters\");\n break;\n case 3:\n $this->addView->setErrorMSG(\"imageError\");\n $this->editView->setEditErrorMSG(\"Invalid picture: Picture must be smaller than 1,5MB and be of types JPG/JPEG, PNG or GIF\");\n break;\n }\n }\n }", "title": "" }, { "docid": "221bc45965a0fc13081a266889f97557", "score": "0.5152546", "text": "function badRequest() {\n header('HTTP/1.0 400 Bad Request');\n }", "title": "" }, { "docid": "221bc45965a0fc13081a266889f97557", "score": "0.5152546", "text": "function badRequest() {\n header('HTTP/1.0 400 Bad Request');\n }", "title": "" }, { "docid": "033ee0c4d1b05aa1ce84925b9803bebc", "score": "0.51512647", "text": "protected abstract function validate();", "title": "" }, { "docid": "5d458fce1b89d8f01d3d61c82dc5490e", "score": "0.51506114", "text": "protected abstract function _validate();", "title": "" }, { "docid": "5299af517ce4082b779d25fdd1daf8d4", "score": "0.514632", "text": "abstract protected function validate();", "title": "" }, { "docid": "b48d1ae1e4a373455852f4a51fe816b3", "score": "0.5136922", "text": "private function handle_form_not_validated() {\n // If not valid, warn the user.\n \\core\\notification::error(get_string('training_management_warning_invalid_form', 'tool_attestoodle'));\n }", "title": "" }, { "docid": "675035501e4e261ac8d01e7922cff3e7", "score": "0.5112859", "text": "protected function ValidateInputs(){\n // Tolerate \"limit\" param not given\n if ((isset($this->input_format['limit'])) and (!array_key_exists('limit', $this->input_data)) ) $this->input_data['limit'] = 100;\n // Add default input format keys for paged mode\n if ($this->paged) {\n if (!isset($this->input_format['page_offset'])) $this->input_format['page_offset']= \"optional:number\";\n if (!isset($this->input_format['page_count']) ) $this->input_format['page_count'] = \"optional:number\";\n }\n // Validate each parameter\n foreach ($this->input_format as $key => $val){\n // Check if parameter is optional\n if (strpos(strtoupper($val),'OPTIONAL:')===false) {\n //Not Optional => check this one\n if (!array_key_exists($key, $this->input_data)) {\n $this->EQ(\"Paramètre manquant. On s'attend a avoir le paramètre suivant : \" . $key);\n }\n }\n }\n }", "title": "" }, { "docid": "a196b00ab042a3f29eb80cb373d11101", "score": "0.510791", "text": "public function failedValidation(Validator $validator) {\n\t\t//write your bussiness logic here otherwise it will give same old JSON response\n\t\t$response = \\App\\Helpers\\Helper::resp('Bad Request', 400, [\n\t\t\t'errors' => $validator->errors(),\n\t\t]);\n\t\tthrow new HttpResponseException(response()->json($response, 400));\n\t}", "title": "" }, { "docid": "b6d2b5780d01607ef5f8658690074c42", "score": "0.5106797", "text": "public function getValidationFailedException(): string;", "title": "" }, { "docid": "f85792cfdede8b3ede312afef5f7233a", "score": "0.5105299", "text": "public function testInvalidArg ()\r\n {\r\n $this->config->value(1.23);\r\n $this->config->value(array('yo' => 'for shure'));\r\n $this->config->value(true);\r\n }", "title": "" }, { "docid": "230d374bd6116864d421fa0e1e5ddb84", "score": "0.5091484", "text": "public function failedValidation(Validator $validator)\n {\n throw new InputValidationAPIException($validator);\n }", "title": "" }, { "docid": "1cd4eeeb47dde1ebcbcdb79a7e2e19a5", "score": "0.50890833", "text": "protected static function initializeErrorHandling() {}", "title": "" }, { "docid": "5e60a17e7c06cf271514dbd610e10e78", "score": "0.5081812", "text": "public function validate_Parameters() {\n\t\tforeach (func_get_args() as $param) {\n\t\t\tif (!isset($this->get[$param])) {\n\t\t\t\tdie('Missing parameter!');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b065152669c67d9d4508cc3c2a6da325", "score": "0.507826", "text": "public function process() {\n if (!$this->authorized() && !$this->authorize()) {\n throw new Exception('Unauthorized');\n }\n }", "title": "" }, { "docid": "cedd37263d96d783d3182547efa04e0f", "score": "0.5077644", "text": "static function bind_arg(page $page, $name, &$value = null, $validate = FILTER_DEFAULT) {\n //\n //Test for the try bind arg is it returns a false we through a \n //new exception.\n if (!page::try_bind_arg($page, $name, $value, $validate = FILTER_DEFAULT)) {\n //\n //Throw a new exception with a massege.\n throw new \\Exception(\"No argument value passed for argument \" . $name);\n }\n }", "title": "" }, { "docid": "388c6c1f06bfed911278182daf5dd21e", "score": "0.50674486", "text": "public function invaild_method() {\n $this->pre();\n http_response_code(400);\n echo json_encode(array(\n 'code' => http_response_code(),\n 'detail' => 'please use vaild HTTP method.'\n ));\n }", "title": "" }, { "docid": "68d4278aef30f1ea7b20da2d190d6244", "score": "0.5056597", "text": "abstract protected function handle_process_failure();", "title": "" }, { "docid": "80f17e269add8c0930a9d57bb6988a33", "score": "0.5056557", "text": "public function throwInvalidArgumentWhenSettingAPropagationStopperNotCallable()\n {\n try {\n $this->object->setHowToStopPropagation('undefined');\n } catch (InvalidArgumentException $invalidArgExc) {\n $this->assertContains('undefined', $invalidArgExc->getMessage());\n }\n $this->assertTrue(isset($invalidArgExc), 'Exception not thrown');\n }", "title": "" }, { "docid": "43b513673b748919e1727512730c1cd3", "score": "0.50540155", "text": "public function validateRequest()\n {\n // * To block access to API endpoints from browsers and only allow when fetching with json content-type\n if (empty($_SERVER['CONTENT_TYPE'])) {\n exit('Access to API not Allowed from Browsers.');\n } else if ($_SERVER['CONTENT_TYPE'] !== 'application/json') {\n self::throwError(REQUEST_CONTENT_TYPE_NOT_VALID, 'Request Content-Type is unvalid.');\n }\n\n // Convert data retrieved to php object\n $data = json_decode($this->request, true);\n\n // Checking the method\n if (!isset($data['method']) || empty($data['method'])) {\n self::throwError(METHOD_NAME_REQUIRED, 'Method name is required.');\n }\n $this->method = self::sanitizeData($data['method']);\n\n // If params exists and are not empty assign them\n if (isset($data['params']) || !empty($data['params'])) {\n $this->param = $data['params'];\n }\n }", "title": "" }, { "docid": "bcd96171ba573f44780cb83ebda9073c", "score": "0.504242", "text": "private function handleErrors()\n {\n $this->getHttpClient()->getEmitter()->on('complete', function (CompleteEvent $e) {\n if (!$e->getResponse()) {\n return;\n }\n\n if (!$e->getResponse()->getBody()->getSize()) {\n return;\n }\n\n try {\n $e->getResponse()->json();\n } catch (ParseException $exception) {\n //JSON is invalid - mock 502 response\n $response = $exception->getResponse();\n $response->setStatusCode(502);\n $response->setReasonPhrase($exception->getMessage());\n throw new ParseException($exception->getMessage(), $response);\n }\n });\n\n $emitter = $this->getEmitter();\n $emitter->on('process', function (ProcessEvent $e) {\n if (!$e->getException()) {\n return;\n }\n\n // Stop other events from firing when you override 401 responses\n $e->stopPropagation();\n\n if (!$e->getResponse()) {\n $response = new Response(502, [], null);\n $response->setReasonPhrase($e->getException()->getMessage());\n $e = CustomerioException::factory($e->getRequest(), $response, $e);\n throw $e;\n }\n\n if ($e->getResponse()->getStatusCode() >= 400 && $e->getResponse()->getStatusCode() < 600) {\n $e = CustomerioException::factory($e->getRequest(), $e->getResponse(), $e);\n throw $e;\n }\n });\n }", "title": "" }, { "docid": "f060caadcf3dd829a6159d4b39bfc46a", "score": "0.50382054", "text": "public function invalidActionParams($action)\n {\n \tthrow new HttpException(400,Benben::t('benben','Your request is invalid.'));\n }", "title": "" }, { "docid": "3462627793b60aa1b82d3cbc136f7bd0", "score": "0.50281185", "text": "public function validate() {\n $from = $this->input->getOption(Parameter::FROM);\n $to = $this->input->getOption(Parameter::TO);\n $departureDate = $this->input->getOption(Parameter::DEPARTURE_DATE);\n $returnDate = $this->input->getOption(Parameter::RETURN_DATE);\n $maxPrice = $this->input->getOption(Parameter::MAX_PRICE);\n\n $options = [\n '--from' => $from,\n '--to' => $to,\n '--departure' => $departureDate,\n '--arrival' => $returnDate,\n '--max-price' => $maxPrice\n ];\n\n foreach ($options as $longForm => $option) {\n if (!$option) {\n throw new InvalidOptionException(\"Option $longForm not defined\");\n }\n }\n }", "title": "" }, { "docid": "8bf961a0ae7897e6d09255897625934a", "score": "0.50187117", "text": "protected function errorAction() {}", "title": "" }, { "docid": "0a96db3221fae5ecd4c7b4accb602d20", "score": "0.50181997", "text": "protected function validateParameterValue($key, $value)\n {\n foreach ($this->params[$key] as $type => $typeValue) {\n switch ($type) {\n case 'enumeration':\n $acceptedValues = explode(',', $typeValue);\n if (!in_array($value, $acceptedValues)) {\n $message = 'Field ' . $key . ' cannot be set to value : ' . $value\n . '. Accepted values are : ' . $typeValue;\n throw new \\InvalidArgumentException($message);\n }\n break;\n\n case 'length':\n if (strlen($value) != $typeValue) {\n $message = 'Field ' . $key . ' has a size of ' . strlen($value)\n . ' and it should be that size : ' . $typeValue;\n throw new \\InvalidArgumentException($message);\n }\n break;\n\n case 'maxLength':\n if (strlen($value) > $typeValue) {\n $message = 'Field ' . $key . ' has a size of ' . strlen($value)\n . ' and it cannot exceed this size : ' . $typeValue;\n throw new \\InvalidArgumentException($message);\n }\n break;\n\n case 'minLength':\n if (strlen($value) < $typeValue) {\n $message = 'Field ' . $key . ' has a size of ' . strlen($value)\n . ' and it cannot be less than this size : ' . $typeValue;\n throw new \\InvalidArgumentException($message);\n }\n break;\n\n case 'minInclusive':\n if ($value < $typeValue) {\n throw new \\InvalidArgumentException('Field ' . $key . ' cannot be smaller than ' . $typeValue);\n }\n break;\n\n case 'maxInclusive':\n if ($value > $typeValue) {\n throw new \\InvalidArgumentException('Field ' . $key . ' cannot be higher than ' . $typeValue);\n }\n break;\n\n case 'pattern':\n $matches = [];\n $typeValue = \"/\" . $typeValue . \"/\";\n if (1 !== preg_match($typeValue, $value, $matches) || (strlen($value) > 0 && !$matches[0])) {\n $message = 'Field ' . $key . ' should match regex pattern : ' . $typeValue\n . ' and it has a value of ' . $value;\n throw new \\InvalidArgumentException($message);\n }\n break;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "6442852bae794902e4a5fea3a68046e9", "score": "0.5012869", "text": "public function validate()\n\t{\n\t\t\n\t\t// if( !isset($this->tokenDelegado) )\n\t\t// \tthrow new Exception(\"$class ERROR: Nombre de sistema invalido\");\n\t\t// if( !isset($this->nombreSistema) )\n\t\t// \tthrow new Exception(\"$class ERROR: Nombre de sistema invalido\");\n\t\t// if( !isset($this->codigoSistema) )\n\t\t// \tthrow new Exception(\"$class ERROR: Codigo de sistema invalido\");\n\t\t// if( !in_array((int)$this->ambiente, [1, 2]) )\n\t\t// \tthrow new Exception(\"$class ERROR: Codigo de ambiente invalido\");\n\t\t// if( (int)$this->nit <= 0 )\n\t\t// \tthrow new Exception(\"$class ERROR: NIT invalido\");\n\t\t// if( !in_array((int)$this->modalidad, [1, 2]) )\n\t\t// \tthrow new Exception(\"$class ERROR: Modalidad invalida\");\n\t\t\n\t}", "title": "" }, { "docid": "b8f00ab7a9c4f8f566ab07cb420e7127", "score": "0.50126976", "text": "abstract function sanitize();", "title": "" }, { "docid": "8ccbb64dc005e77dd6685cb69dbe4a14", "score": "0.5003393", "text": "public function validate()\n {\n if (!$this->name) {\n throw new \\Exception(sprintf(\n 'Field %s requires a configured name',\n get_class($this)\n ));\n }\n }", "title": "" }, { "docid": "81b3f7983b901ef10403383509663a25", "score": "0.4992518", "text": "function errorCheck() {\n\t\tglobal $race_distance_measurements;\n\n\t\tif(empty($this->r_name))\n\t\t\t$this->addErr('Name required');\n\n\t\tif(empty($this->r_dist))\n\t\t\t$this->addErr('Distance required');\n\t\telse if(!is_numeric($this->r_dist))\n\t\t\t$this->addErr('Invalid distance');\n\n\t\tif(!isset($race_distance_measurements[$this->r_dist_meas]))\n\t\t\t$this->addErr('Invalid distance measurement');\n\n\t\tif(!$this->r_time)\n\t\t\t$this->addErr('Invalid starting time');\n\n\t\tif(empty($this->r_location))\n\t\t\t$this->addErr('Location required');\n\n\t\tif(!$this->is_free_race)\n\t\t\t$this->priceErrCheck();\n\t}", "title": "" }, { "docid": "25ca0e2f94b510b04093b68dc9d5cbaa", "score": "0.49894515", "text": "function et_core_intentionally_unsanitized( $passthru, $excuse ) {\n\t$valid_excuses = array();\n\n\tif ( ! in_array( $excuse, $valid_excuses ) ) {\n\t\t_doing_it_wrong( __FUNCTION__, esc_html__( 'This is not a valid excuse to not sanitize the passed value.', 'et_core' ), esc_html( et_get_theme_version() ) );\n\t}\n\n\treturn $passthru;\n}", "title": "" }, { "docid": "4fd42e4d92e871605dcee80764d14ba9", "score": "0.4986478", "text": "function error_handler($errno, $errstr, $errfile, $errline, $errcontext) {\n\tthrow new Exception($errstr);\n}", "title": "" }, { "docid": "2d1189b9a8c4e028e2593228a64cfba2", "score": "0.49801996", "text": "private function handle_exception() {\n\n // handle local exceptions\n switch($this->exception_type) {\n case \"local\": $this->handle_local_exception(); break;\n case \"global\": $this->handle_global_exception(); break;\n default: $this->handle_unknown_exception(); break;\n }\n\n }", "title": "" }, { "docid": "766a54a3a39687aea3384e883b006dca", "score": "0.49792078", "text": "protected function failedAuthorization()\n {\n if ($validator->errors()) {\n throw new InvalidRequestException(100403);\n }\n\n parent::failedAuthorization();\n }", "title": "" }, { "docid": "1431ea3bc06c1bedb7c2037e03fae02e", "score": "0.49703223", "text": "function process_invalid_option() {\n\techo \"Invalid option.\\n\\n\";\n}", "title": "" }, { "docid": "0fff3f827c689c2e840fc63410d4d6ef", "score": "0.4956178", "text": "public function httperror400()\n\t{\n\t\t header('HTTP/1.0 400 Bad Request');\n\t\t $this->View->renderWithoutHeaderAndFooter('error/httperror400',array(\"error\"=>\"Bad Request - invalid request\"));\n\t}", "title": "" }, { "docid": "a5ece78b6c86a6b3194766310490dac1", "score": "0.49536008", "text": "abstract public function validateParameters($parameterArray);", "title": "" }, { "docid": "917d60669cf83227a7c3f212d693ab3b", "score": "0.4949816", "text": "protected function checkParameters()\n\t{\n\t\t$arParams = &$this->arParams;\n\n\t\tstatic::tryParseIntegerParameter($arParams['USER_ID'], User::getId());\n\t\tstatic::tryParseStringParameter(\n\t\t\t$arParams['PATH_TO_TASKS'],\n\t\t\t\"/company/personal/user/{$arParams['USER_ID']}/tasks/\"\n\t\t);\n\t\tstatic::tryParseStringParameter(\n\t\t\t$arParams['PATH_TO_TASKS_CREATE'],\n\t\t\t\"/company/personal/user/{$arParams['USER_ID']}/tasks/task/edit/0/\"\n\t\t);\n\n\t\treturn $this->errors->checkNoFatals();\n\t}", "title": "" }, { "docid": "e8b7f760a4e74e2eb8b4f81d0ca82613", "score": "0.49497655", "text": "protected function areArgumentsValid(): void\n {\n if (count($this->arguments) < 1) {\n throw new JsonQueryBuilderException(\"Couldn't get values for '{$this->getParameterName()}'.\");\n }\n\n // Override or extend on child objects if needed\n }", "title": "" }, { "docid": "2d1dc4f68037f7e65d915445248322e2", "score": "0.494943", "text": "protected function createValidationErrorMessage() {}", "title": "" }, { "docid": "a18c59a4c07df363dd30f97513562e30", "score": "0.49475572", "text": "public function badAuth()\n {\n throw new Exception('Username Or Pasword Not Provided.'.PHP_EOL);\n exit;\n }", "title": "" }, { "docid": "25a571f998259a9ee96b25497d5ff875", "score": "0.49440783", "text": "private function fail()\n {\n if ($this->exception) {\n throw new InvalidArgumentException(sprintf('Execution of command [%s] denied', $this->cmd));\n } else {\n $this->out = false;\n }\n }", "title": "" }, { "docid": "00c174e0314c270dcfffe4c3bf12e727", "score": "0.4943003", "text": "private function setError($rule, $key, $params=false){\n\t\t\t$name = !empty($this->arrToValidate[$key][\"name\"]) ? $this->arrToValidate[$key][\"name\"] : $key;\n\t\t\t$message = \"Message not defined\";\n\t\t\tif(!empty($this->arrToValidate[$key][\"messages\"][$rule])){\n\t\t\t\t$message = $this->arrToValidate[$key][\"messages\"][$rule];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tswitch ($rule) {\n\t\t\t\t\tcase 'required':\n\t\t\t\t\t\t$message = $name.\" is required\";\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"email\":\n\t\t\t\t\t\t$message = $name.\" is not a valid email address\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"url\":\n\t\t\t\t\t\t$message = $name.\" is not a valid URL\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"minlength\":\n\t\t\t\t\t\t$message = $name.\" must have at least %p characters\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"maxlength\":\n\t\t\t\t\t\t$message = $name.\" can have a maximum of %p characters\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"numeric\":\n\t\t\t\t\t\t$message = $name.\" must be a numeric value\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"function\":\n\t\t\t\t\t\t$message = $name.\" must match the requested requirements\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"equalto\":\n\t\t\t\t\t\t$oldParams = $params;\n\t\t\t\t\t\t$params = !empty($this->arrToValidate[$params][\"name\"]) ? $this->arrToValidate[$params][\"name\"] : $params;\n\t\t\t\t\t\tif(empty($this->arrGlobal[$oldParams])){\n\t\t\t\t\t\t\t$message = \"Both \".$name.\" and \".$params.\" are required.\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t$message = $name.\" must be equal to %p\";\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"minwords\":\n\t\t\t\t\t\t$message = $name.\" must have at least %p words\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"maxwords\":\n\t\t\t\t\t\t$message = $name.\" can have a maximum of %p words\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"filetype\":\n\t\t\t\t\t\t$message = $name.\" must match the specific filetype\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"regex\":\n\t\t\t\t\t\t$message = $name.\" doesn't match the requested pattern\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($params){\n\t\t\t\t$message = str_replace(\"%p\", $params, $message);\n\t\t\t}\n\n\t\t\t$this->arrErrors[] = $message;\n\t\t\t$unset = !empty($this->arrToValidate[$key][\"unset\"]);\n\t\t\tif($unset) $this->unsetArray[] = $key;\n\t\t}", "title": "" }, { "docid": "b6d67bd7c2ed3ebe46bb649a34536072", "score": "0.4940656", "text": "public function testValidationWithoutParametersThrows(): void\n {\n $extension = new PostalCode($this->matcher);\n\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('Validation rule postal_code requires at least 1 parameter.');\n\n $extension->validate('attribute', 'postal_code', []);\n }", "title": "" }, { "docid": "ccb1f9dff3367cd448c3a81beeaa0a89", "score": "0.49358428", "text": "protected function _validate($params = array())\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "73c4a792b9cc8e2d4f225973a7341ebb", "score": "0.49308318", "text": "private function userInvalid()\n {\n throw new NotFoundException(__('Invalid User'));\n }", "title": "" }, { "docid": "434d1ae1d2f2ff1ed12b3f4fc48e8033", "score": "0.49303347", "text": "public function validate()\n {\n if (!$this->account) {\n throw new DomainException('Mandatory field: account');\n }\n if ($this->amount === null) {\n throw new DomainException('Mandatory field: amount');\n }\n }", "title": "" }, { "docid": "4696d5f30ebde57de52c1734dc27aba4", "score": "0.4926837", "text": "protected function _failed()\n\t{\n\t\tif (true == $this->_retry) { \n\t\t\tself::_showInput();\n\t\t} else {\n\t\t\tself::_deny();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "9c43ff66a5bef5f8e980066ed0e15a96", "score": "0.49267286", "text": "private function _postValidation()\n\t{\n\t}", "title": "" }, { "docid": "3277c828d5a9a8f2797bf8d43be48462", "score": "0.4924648", "text": "protected abstract function validate($value);", "title": "" }, { "docid": "31621da69e5d4bc69b284d916ad71201", "score": "0.4922505", "text": "public function whenSettingAnActionNotCallableThrowInvalidargumentException()\n {\n try {\n $this->object->setEventAction('event3', 'void');\n } catch (InvalidArgumentException $invalidExc) {\n $this->assertContains('event3', $invalidExc->getMessage());\n }\n $this->assertNotNull($invalidExc);\n }", "title": "" }, { "docid": "8f9b1d85a7a5c277ada91976da7cac53", "score": "0.49161708", "text": "private function validate_params( & $params )\n {\n if (!isset($params['id_list'])) {\n throw new \\Exception('id_list field isnt defined');\n }\n\n $val_digits = new \\Zend\\Validator\\Digits();\n\n if (false === $val_digits->isValid($params['id_list'])) {\n throw new \\Exception('id_list isnt from type bigint');\n }\n\n if (!isset($params['id_item'])) {\n throw new \\Exception('id_item field isnt defined');\n }\n\n if (false === $val_digits->isValid($params['id_item'])) {\n throw new \\Exception('id_item isnt from type bigint');\n }\n }", "title": "" }, { "docid": "70ca1595ae158be661e2f6cb38a27333", "score": "0.49152106", "text": "public function badRequest()\n {\n $content = \"Bad Request\".PHP_EOL.\" Please enter following command for help:\".PHP_EOL.\"submit_issues -help\";\n throw new Exception('Bad Request'.PHP_EOL);\n exit;\n }", "title": "" }, { "docid": "a335a390e4266234748a72e3d4969afb", "score": "0.4915109", "text": "private function validateData(): void\n {\n if (is_null($this->userId) || is_null($this->apiKey) || is_null($this->startDate) || is_null($this->endDate)) {\n throw new InvalidArgumentException(\"All object variables must have a value\");\n }\n }", "title": "" }, { "docid": "e8378561cdb2d36692c8cf3df06b84cc", "score": "0.49135447", "text": "public function validateReport() {\n\t\t$this->parameters['message'] = (isset($this->parameters['message'])) ? StringUtil::trim($this->parameters['message']) : '';\n\t\tif (empty($this->parameters['message'])) {\n\t\t\tthrow new UserInputException('message');\n\t\t}\n\t\t\n\t\t$this->validatePrepareReport();\n\t}", "title": "" }, { "docid": "770d6cc706fff0bce57efcb239f1db00", "score": "0.4902162", "text": "abstract protected function _Sanitize($argument);", "title": "" }, { "docid": "3a5f7a702d7a87c1f03e565338b50eea", "score": "0.4890329", "text": "private function handle_error(){\n $this->output->set_status_header('400');\n $this->output->set_content_type('application/json');\n $this->output->set_output(json_encode(FALSE));\n }", "title": "" }, { "docid": "983c1e325d7e47f0bf6f884954db3a1c", "score": "0.48862955", "text": "protected abstract function getErrorList();", "title": "" }, { "docid": "8fbda0673c6dd208c9ef21db85618b20", "score": "0.48861653", "text": "public function validateArguments() {\n\t\t$messageAppended = ' Forgotten to define \\TYPO3\\CMS\\Vidi\\AjaxDispatcher::addAllowedActions in ext_tables.php or wrong usage?';\n\t\t$extensionName = $this->requestArguments['extensionName'];\n\t\tif (empty(self::$allowedControllerActions[$extensionName])) {\n\t\t\t$message = sprintf('Extension name \"%s\" is not allowed.', $extensionName);\n\t\t\tthrow new \\Exception($message . $messageAppended, 1377018166);\n\t\t}\n\n\t\t$pluginName = $this->requestArguments['pluginName'];\n\t\tif (empty(self::$allowedControllerActions[$extensionName]['plugins'][$pluginName])) {\n\t\t\t$message = sprintf('Plugin name \"%s\" is not allowed.', $pluginName);\n\t\t\tthrow new \\Exception($message . $messageAppended, 1377018167);\n\t\t}\n\n\t\t$controllerName = $this->requestArguments['controllerName'];\n\t\tif (empty(self::$allowedControllerActions[$extensionName]['plugins'][$pluginName]['controllers'][$controllerName])) {\n\t\t\t$message = sprintf('Controller name \"%s\" is not allowed.', $controllerName);\n\t\t\tthrow new \\Exception($message . $messageAppended, 1377018168);\n\t\t}\n\n\t\t$actionName = $this->requestArguments['actionName'];\n\t\tif (!in_array($actionName, self::$allowedControllerActions[$extensionName]['plugins'][$pluginName]['controllers'][$controllerName]['actions'])) {\n\t\t\t$message = sprintf('Action name \"%s\" is not allowed.', $actionName);\n\t\t\tthrow new \\Exception($message . $messageAppended, 1377018169);\n\t\t}\n\t}", "title": "" }, { "docid": "9e3f74319bc63d7f8736902f21cb295c", "score": "0.48838764", "text": "public function fireError($param) {\r\n return $param;\r\n }", "title": "" }, { "docid": "f4c2ba68db3dff96ee6fb12680dc4359", "score": "0.4880544", "text": "private function validate( )\n {\n if ( empty($this->filesets) ) {\n throw new BuildException(\"You must specify a fileset.\", $this->getLocation( ));\n }\n if ( !isset( $this->destinationFile ) ) {\n throw new BuildException(\"You must specify a destination file.\", $this->getLocation( ));\n }\n if ( !isset( $this->outputType ) ) {\n $this->outputType = 'Array';\n }\n if ( !isset( $this->outputName ) ) {\n throw new BuildException(\"You must specify a name for the output variable or function.\", $this->getLocation( ));\n }\n }", "title": "" }, { "docid": "1b4a76b00f82ea740dadffc87e86be0f", "score": "0.4879669", "text": "final protected function throwIfNotInputType(ReflectionParameter $param, AbstractAnnotation $annotation): void\n {\n $type = $annotation->getTypeInstance();\n $class = new ReflectionClass($annotation);\n $annotationName = $class->getShortName();\n\n if (!$type) {\n throw new Exception('Could not find type for parameter `$' . $param->name . '` for method ' . $this->getMethodFullName($param->getDeclaringFunction()) . '. Either type hint the parameter, or specify the type with `@API\\\\' . $annotationName . '` annotation.');\n }\n\n if ($type instanceof WrappingType) {\n $type = $type->getWrappedType(true);\n }\n\n if (!($type instanceof InputType)) {\n throw new Exception('Type for parameter `$' . $param->name . '` for method ' . $this->getMethodFullName($param->getDeclaringFunction()) . ' must be an instance of `' . InputType::class . '`, but was `' . get_class($type) . '`. Use `@API\\\\' . $annotationName . '` annotation to specify a custom InputType.');\n }\n }", "title": "" }, { "docid": "432bcb1fe688a1ad056479db9eff36ea", "score": "0.4877875", "text": "protected function validate()\n {\n $data = $this->data;\n if (($data != 0) && ($data != 1)) $this->setError(self::CODE_UNKNOWN);\n }", "title": "" }, { "docid": "0efd62aa7717cff7c82f3995b5fb18ae", "score": "0.48767692", "text": "abstract public function validate();", "title": "" } ]
d45dab3de71a280fa403805aac4f93f2
Registers a validator for a type of constraint
[ { "docid": "78211b3cd8d24dde7984f6c422e597f7", "score": "0.72059506", "text": "public function addConstraintValidator(ConstraintValidatorInterface $constraintValidator);", "title": "" } ]
[ { "docid": "89495844ad089b3f31f85d5145fbae3d", "score": "0.6528811", "text": "public function createValidator();", "title": "" }, { "docid": "076904fdf594bd8339d773988bdd492c", "score": "0.6518234", "text": "public function registerCustomValidations()\n {\n\n }", "title": "" }, { "docid": "df9c84bcf9cd1e55e5850be2f23de0e6", "score": "0.6405069", "text": "abstract public function attach($type, ValidatorInterface $validator);", "title": "" }, { "docid": "92868c5672b54975fd64372467b98dbd", "score": "0.6143698", "text": "public function registerValidators() :void\n {\n $this->registry('validators')->each(\n function ($validator) {\n list($key, $type, $class) = $validator;\n $this->app->validators($key, $type, $class);\n }\n );\n }", "title": "" }, { "docid": "ce06b2326585ccc076827f132e356be3", "score": "0.61210066", "text": "public static function publishValidator(Container $container): void\n {\n $container->setSingleton(\n Validator::class,\n new \\Valkyrja\\Dispatcher\\Validators\\Validator()\n );\n }", "title": "" }, { "docid": "8637aa8586ea5b1555be83bfd15bc5a7", "score": "0.5992289", "text": "public static function registerValidator(Validator $validator)\n {\n // Start of user code ValidatorsRegistry.registerValidator\n self::getValidators()->set($validator->getName(), $validator);\n // End of user code\n }", "title": "" }, { "docid": "aecd4d550a752af79780542427782f9d", "score": "0.59778345", "text": "public function addValidator(\n string $key,\n ValidatorInterface $validator\n ): void;", "title": "" }, { "docid": "eb1136327def744f888bd9f039fc95ab", "score": "0.5964456", "text": "function setValidator();", "title": "" }, { "docid": "992f1284151374e5165c894cf718b37b", "score": "0.59534425", "text": "public function makeValidator(){\n $this->role = User::ROLE_VALIDATOR;\n parent::save();\n }", "title": "" }, { "docid": "64bffcddd82810b6546b7615357db0e7", "score": "0.59435946", "text": "public function addValidator(\\Phalcon\\Filter\\Validation\\ValidatorInterface $validator): ElementInterface;", "title": "" }, { "docid": "59b7613720b692276d214762a1b51d6c", "score": "0.58749264", "text": "public function testGetValidator() {\r\n\t\t$v = new Validator();\r\n\t\t$this->assertNull($v->getValidator('Alnum'));\r\n\t\t$v->addValidator(new AlnumValidator());\r\n\t\t$this->assertNotNull($v->getValidator('Alnum'));\r\n\t}", "title": "" }, { "docid": "014e5010eb4534d84688e01156d462e5", "score": "0.58551776", "text": "public function testRegister(): void\n {\n $application = new ApplicationStub();\n $application->bind(PropertyAccessorInterface::class);\n\n // Run registration\n (new ValidationConstraintServiceProvider($application))->register();\n\n // Ensure services are bound\n self::assertInstanceOf(\n DateEqualToValidator::class,\n $application->get(DateEqualToValidator::class)\n );\n self::assertInstanceOf(\n DateGreaterThanValidator::class,\n $application->get(DateGreaterThanValidator::class)\n );\n self::assertInstanceOf(\n DateGreaterThanOrEqualValidator::class,\n $application->get(DateGreaterThanOrEqualValidator::class)\n );\n self::assertInstanceOf(\n DateLessThanValidator::class,\n $application->get(DateLessThanValidator::class)\n );\n self::assertInstanceOf(\n DateLessThanOrEqualValidator::class,\n $application->get(DateLessThanOrEqualValidator::class)\n );\n self::assertInstanceOf(\n DateNotEqualToValidator::class,\n $application->get(DateNotEqualToValidator::class)\n );\n self::assertInstanceOf(\n FilterValidator::class,\n $application->get(FilterValidator::class)\n );\n }", "title": "" }, { "docid": "ced9d929bd7eb2cbcc5f2b6cae658a32", "score": "0.58327997", "text": "public function addValidator()\n {\n $this->assertSame(\n $this->element,\n $this->element->addValidator('notEmpty', 'Test')\n );\n }", "title": "" }, { "docid": "876d39ddb270dab3405a7b70ae49d065", "score": "0.5812432", "text": "public function register()\n {\n Validator::extend('mobile', function ($attribute, $value, $parameters) {\n return preg_match(\"/^1[0-9]{2}[0-9]{8}$|15[0189]{1}[0-9]{8}$|189[0-9]{8}$/\",$value);\n });\n\n Validator::extend('code', function ($attribute, $value, $parameters) {\n return strlen($value) != 6 || !preg_match(\"/[0-9]{6}/\", $value);\n });\n }", "title": "" }, { "docid": "b711166abd17595f4f8db90baf85f62e", "score": "0.5810534", "text": "public function register()\n {\n \\Validator::extend(\"emails\", function ($attribute, $value, $parameters) {\n $rules = [\n 'email' => 'required|email',\n ];\n\n $emails = [ ];\n if (!is_array($value)) {\n $emails = explode(',', $value);\n } else {\n $emails = [ $value ];\n }\n\n foreach ($emails as $email) {\n $data = [\n 'email' => trim($email)\n ];\n $validator = \\Validator::make($data, $rules);\n if ($validator->fails()) {\n return false;\n }\n }\n\n return true;\n });\n }", "title": "" }, { "docid": "39d525d1fadc0dd22912f34a9d270510", "score": "0.5801645", "text": "public function onValidate(Validator $validator, string $type = null);", "title": "" }, { "docid": "90561602847a85c092aed4b33d2cb2c6", "score": "0.5798085", "text": "public function register( $Class, IValidator $Validator)\n\t{\n\t\t$this->_Validations[ $Class ] = $Validator;\n\t}", "title": "" }, { "docid": "39f908e40504b05269d5145babdf468b", "score": "0.5780046", "text": "public function validator()\n {\n\n return RegisterSightValidator::class;\n }", "title": "" }, { "docid": "780e93d8a60216266dcac3bdb2650860", "score": "0.57397", "text": "public function registerError(string $field, string $error): ValidatorInterface;", "title": "" }, { "docid": "a9fe79d2a0cf02547794e04430e9cf54", "score": "0.57377326", "text": "public function validator()\n {\n return StudentValidator::class;\n }", "title": "" }, { "docid": "1c833368dbac84beda639b9b27828753", "score": "0.57105887", "text": "public function addValidator($function, $data)\n {\n assert('is_callable($function)');\n\n $this->validators[] = array(\n 'Function' => $function,\n 'Data' => $data,\n );\n }", "title": "" }, { "docid": "3d79a49af2c83fe09ca253e38ac65275", "score": "0.5704645", "text": "public function registerValidationRules()\n {\n \\Validator::extend('valid_url', CoreValidationRules::class.'@validUrl');\n }", "title": "" }, { "docid": "a5b5b397897182d66193ce7fba27ee49", "score": "0.56986856", "text": "protected function registerCustomValidationRules(): void\n {\n Validator::extend('ethereum', static function ($attribute, $value, $parameters, $validator) {\n $type = implode(',', $parameters);\n\n $validator->addReplacer('ethereum', static fn ($message) => str_replace(':type', $type, $message));\n\n return EthereumType::resolve($type)->validate($value, false);\n });\n }", "title": "" }, { "docid": "ec19d8dbdcde2f30e4e0d9fb82192131", "score": "0.56907946", "text": "public function getValidator(): ValidatorInterface;", "title": "" }, { "docid": "ff5fe8b270dc4333113a0e2202b08a0f", "score": "0.5689204", "text": "private function registerCustomValidators()\n {\n Validator::extend('hash', 'Common\\Auth\\Validators\\HashValidator@validate');\n Validator::extend('email_confirmed', 'Common\\Auth\\Validators\\EmailConfirmedValidator@validate');\n }", "title": "" }, { "docid": "768951faeb960e242ef57ac76550c635", "score": "0.5679907", "text": "private function registerValidators()\n {\n Validator::resolver(\n function ($translator, $data, $rules, $messages) {\n return new AppValidator($translator, $data, $rules, $messages);\n }\n );\n }", "title": "" }, { "docid": "2c6941ccda24360e31bd242d9e9abaeb", "score": "0.56699204", "text": "public function register()\n {\n $this->registerValidators();\n }", "title": "" }, { "docid": "7995073a3fca10bd86483cfe099ed1f0", "score": "0.566898", "text": "public function validator()\n {\n\n return ContractValidator::class;\n }", "title": "" }, { "docid": "361380ce6e959a80a2f219b7c3a87456", "score": "0.5666318", "text": "public function addValidator($validator) { return $this; }", "title": "" }, { "docid": "15566596ff4e2757701c1b1a80b73d9b", "score": "0.56574094", "text": "final public function addValidator($validator)\n\t{\n\t\t$validator->init($this->form, $this);\n\t\t$this->validators[] = $validator;\n\t}", "title": "" }, { "docid": "7f1b3de4e4b81e5f952d8cbc1ab7e73f", "score": "0.5636898", "text": "public function testGetValidator() {\n\t\t$v = new Validator();\n\t\t$this->assertNull($v->getValidator('Alum'));\n\t\t$v->addValidator(new AlumValidator());\n\t\t$this->assertNotNull($v->getValidator('Alum'));\n\t}", "title": "" }, { "docid": "f8bb91675797550ed24c94bf93075ab9", "score": "0.5635326", "text": "public function validator()\n {\n return AttributeValidator::class;\n }", "title": "" }, { "docid": "62d9b58fa98b518e09108550634af75b", "score": "0.56246835", "text": "protected abstract function getValidatorClass();", "title": "" }, { "docid": "0c1eb2cd16cd9c5dfac3e275c7954b09", "score": "0.56226486", "text": "private function registerValidatorGenerator()\n {\n $this->app->singleton('command.slc.validator', function ($app) {\n return $app[Commands\\ValidatorMakeCommand::class];\n });\n\n $this->commands('command.slc.validator');\n }", "title": "" }, { "docid": "696dc0a27538fb2605aa6647f284c2c9", "score": "0.56051904", "text": "public function validator()\n {\n\n return AtividadeValidator::class;\n }", "title": "" }, { "docid": "6e1ea95ef0d2e6efc72d7726d1266a3f", "score": "0.56034774", "text": "public function validator()\n {\n return CourierValidator::class;\n }", "title": "" }, { "docid": "6619ab55b6d801791ce8658cfd143448", "score": "0.56010574", "text": "public abstract function buildValidator();", "title": "" }, { "docid": "ac8d12479bd4a933aaf81b03d8cd84eb", "score": "0.5580389", "text": "public function addInvalidValidator()\n {\n $this->element->addValidator('unknown--', 'Test');\n }", "title": "" }, { "docid": "af3e78b6c1e53d2dfb38476777f365a5", "score": "0.5577557", "text": "public function validator(Closure $callback)\n {\n parent::validator($callback);\n }", "title": "" }, { "docid": "1e7a7b1cea1265c56a1c3708b62d4ad6", "score": "0.5550046", "text": "public function rulesForRegister();", "title": "" }, { "docid": "e03025887ea2651ac4622b6c5f928c53", "score": "0.55337656", "text": "abstract protected function initValidators();", "title": "" }, { "docid": "da001853ad3d69c4a126a6b97dec9662", "score": "0.5526023", "text": "function createValidator()\n {\n $this->validator = \\Validator::Make(\\Input::all(), $this->rules());\n }", "title": "" }, { "docid": "8d68e41e69db10b57199f9cee583b34e", "score": "0.5518619", "text": "public function validator()\n {\n\n return CalledValidator::class;\n }", "title": "" }, { "docid": "ba1e3c3343c827324d58f80b3a763903", "score": "0.54863477", "text": "public function validator()\n {\n\n return PlantValidator::class;\n }", "title": "" }, { "docid": "d4e75360131e5d20a7de16bd70755092", "score": "0.5481456", "text": "public function addValidator($validator)\n {\n if ($validator instanceof AbstractValidate) {\n $this->_validators[get_class($validator)] = $validator;\n }\n else {\n $options = array();\n\n if (is_array($validator)) {\n $array = $validator;\n $validator = $array[0];\n $options = $array[1];\n }\n\n // create the validator class\n $validatorClass = '\\\\Cube\\\\Validate\\\\' . ucfirst($validator);\n\n if (class_exists($validator)) {\n $this->_validators[$validator] = new $validator($options);\n }\n else if (class_exists($validatorClass)) {\n $this->_validators[$validator] = new $validatorClass($options);\n }\n else {\n throw new \\InvalidArgumentException(\n sprintf(\"Class '%s' doesn\\'t exist.\", $validatorClass));\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "3937d7c1129b3d86975fec7e76ea74d8", "score": "0.5467918", "text": "public function validator()\n {\n\n return LubrificationTypeValidator::class;\n }", "title": "" }, { "docid": "912b028e7a0c240a10a6d9c85d727358", "score": "0.54507893", "text": "public function setData($data): ValidatorInterface;", "title": "" }, { "docid": "11884046091ed147b8f2c425d39120c6", "score": "0.54451954", "text": "protected function attachValidator()\n {\n return ValidatorFacade::resolver(function($translator, $data, $rules, $messages) {\n return new CustomValidator($translator, $data, $rules, $messages);\n });\n }", "title": "" }, { "docid": "aa344138746e97c4befe8d3e042d33f7", "score": "0.54447526", "text": "public function validator()\n {\n\n return SupplierValidator::class;\n }", "title": "" }, { "docid": "ab6d18a887ea403e7ff430c9ebc41e30", "score": "0.54416794", "text": "public function testValidatorCreation () {\n\n\t\t$validator = new Validator($this->request);\n\t\t$this->assertIsObject($validator);\n\n\t}", "title": "" }, { "docid": "41e0ad5230054907087d04f29acf266c", "score": "0.5429092", "text": "public function validator()\n {\n\n return SkillValidator::class;\n }", "title": "" }, { "docid": "48f27c3757ff3af4fff243fa13de2a65", "score": "0.5413022", "text": "public function addValidator(\\TYPO3\\CMS\\Extbase\\Validation\\Validator\\ValidatorInterface $validator)\n {\n if ($validator instanceof ObjectValidatorInterface) {\n // @todo: provide bugfix as soon as it is fixed in TYPO3.Flow (http://forge.typo3.org/issues/48093)\n $validator->setValidatedInstancesContainer = $this->validatedInstancesContainer;\n }\n $this->validators->attach($validator);\n }", "title": "" }, { "docid": "f9b1ddbbedbbfd825dc7b6301955a945", "score": "0.5406757", "text": "public function registerValidator($typeName, $className) {\n\t\tif (is_string($typeName) && is_string($className) &&\n\t\t\tis_subclass_of($className, 'ValidatorBase')) {\n\t\t\t\t$this->validators[$typeName] = $className;\n\t\t} else if (is_array($typeName)) {\n\t\t\tforeach ($typeName as $t) {\n\t\t\t\t$this->registerValidator($t, $className);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new Exception(\n\t\t\t\t\"FormValidator exception. Registering invalid validator class.\"\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "f279cdf9a1222bd0c4d7f4bd8eac2bb6", "score": "0.5385732", "text": "public function validator()\n {\n\n return CallValidator::class;\n }", "title": "" }, { "docid": "e2a6f779ed9bcf6a6ea97a1d2e99bb9d", "score": "0.5350486", "text": "public function withValidator($validator)\n {\n// $validator->after(function ($validator) {\n// if ($this->somethingElseIsInvalid()) {\n// $validator->errors()->add('field', 'Something is wrong with this field!');\n// }\n// });\n }", "title": "" }, { "docid": "db32820333f218b428cc65b29351490e", "score": "0.5343385", "text": "public function validator()\n {\n\n return ComunicadoValidator::class;\n }", "title": "" }, { "docid": "589cfbb36643e926054ebb5aabcabfc3", "score": "0.5321277", "text": "private function add_validation($callback, $args, $type = \"built\"){ \n $validator_obj = new custom_validator(); \n $validator_obj->callback = $callback; \n $validator_obj->type = $type; \n $validator_obj->data = $args; \n $num = sizeof($this->forms); \n if(!isset($this->custom_val[$num])) \n { \n $this->custom_val[$num] = array(); \n } \n array_push($this->custom_val[$num], $validator_obj); \n }", "title": "" }, { "docid": "0c10965126b6c82df6bb740d1afd5883", "score": "0.53170973", "text": "public function validator()\n {\n\n return PlanSubTypeValidator::class;\n }", "title": "" }, { "docid": "c79b312d5990829b50ab8dd738fda330", "score": "0.5314624", "text": "abstract public function getRegexValidator(): AbstractRegexValidator;", "title": "" }, { "docid": "3a61df30986e69ec01a974118057aac4", "score": "0.53098917", "text": "public function validator()\n {\n return CourseValidator::class;\n }", "title": "" }, { "docid": "cbc87bedd5398bf108db449b23500f90", "score": "0.5302292", "text": "public function getValidatorDefinition($name);", "title": "" }, { "docid": "2aae62a9aa66cd1bc7fd8bc18f441f26", "score": "0.53022784", "text": "public function validator()\n {\n\n return RTValidator::class;\n }", "title": "" }, { "docid": "72a87c84a66de21eac83c8a9e4f2b4fc", "score": "0.5301601", "text": "public function validator()\n {\n\n return ClientDomainTextValidator::class;\n }", "title": "" }, { "docid": "4632bbdc2b063b7be5e8cd7818f47ff6", "score": "0.5283656", "text": "public function validator()\n {\n\n return SMSTemplateValidator::class;\n }", "title": "" }, { "docid": "7aac8b0e0315457899aa37b9bb54a922", "score": "0.52819514", "text": "private function loadSymfonyValidator()\n {\n $this->validator = Validation::createValidatorBuilder()->enableAnnotationMapping()->getValidator();\n }", "title": "" }, { "docid": "8e6ef9204546b474121bab019d0e4a48", "score": "0.52746195", "text": "public function validator()\n {\n\n return TripValidator::class;\n }", "title": "" }, { "docid": "9ee3ed9c8a6c5857f0c23627812867ab", "score": "0.5259202", "text": "public function testAddValidatorException() {\n\t\ttry {\n\t\t\t$v = new Validator();\n\t\t\t$v->addValidator(new stdClass());\n\t\t} catch (InvalidArgumentException $e) {\n\t\t\treturn;\n\t\t}\n\t\t$this->fail('期待通りの例外が発生しませんでした。');\n\t}", "title": "" }, { "docid": "6dd74b797f5c9dbfb4a62d69d28b0ed1", "score": "0.5249266", "text": "protected function processValidationConstraint(Constraint $constraint) {\n\n }", "title": "" }, { "docid": "233631aacd7c482734e3d2edc86cb148", "score": "0.52429074", "text": "public function validator()\n {\n\n return ChargeStaffValidator::class;\n }", "title": "" }, { "docid": "4f107b1d81a1559c60e61f5f9136500f", "score": "0.5234015", "text": "public function validator()\n {\n\n return MkAtendimentoClassificacaoValidator::class;\n }", "title": "" }, { "docid": "382246cfd286cfed985d890d7db35455", "score": "0.5231794", "text": "protected function wrapValidator()\n {\n $resolver = new Resolver($this->factory, $this->escape);\n $this->factory->resolver($resolver->resolver($this->field));\n $this->factory->extend(RemoteValidator::EXTENSION_NAME, $resolver->validatorClosure());\n }", "title": "" }, { "docid": "51a067c691866ed62b9b32756a04a170", "score": "0.5222079", "text": "public function withValidator($validator)\n {\n $validator->after(function ($validator) {\n\n // TODO: refactoring\n\n // Document validation\n if ($typeId = $this->get('type_id')) {\n $type = ContractType::find($typeId);\n $document = $this->get('document');\n\n if ($document && $type && $type->document_validator) {\n if (!RespectValidator::{$type->document_validator}()->validate($document)) {\n $validator->errors()->add('document', __('validation.requests.document.invalid'));\n }\n }\n }\n\n // Property can only have one contract\n if ($propertyId = $this->get('property_id')) {\n $property = Property::find($propertyId);\n\n if ($property && $property->contract()->count()) {\n $validator->errors()->add('property_id', __('validation.requests.property.has_contract'));\n }\n }\n\n });\n }", "title": "" }, { "docid": "3deeb4db22904cc8bd4b346b47c34343", "score": "0.522113", "text": "public static function loadValidatorMetadata(ClassMetadata $metadata) {\n $metadata->addGetterMethodConstraint('mapping', 'getMainTag', new NotBlank(['message' => 'The main tag must not be empty.']));\n $metadata->addConstraint(new TagMappingTagsNotExist());\n }", "title": "" }, { "docid": "daaadcb93c8c181e53d071a0d4409732", "score": "0.52172667", "text": "public function validator(array $data);", "title": "" }, { "docid": "06a388b5bae3efd9fbe05b4ba49fa7ad", "score": "0.52169997", "text": "static public function loadValidatorMetadata(ClassMetadata $metadata)\r\n {\r\n $metadata->addPropertyConstraints('name', [\r\n new Assert\\NotBlank(),\r\n ]);\r\n }", "title": "" }, { "docid": "cb5f26cf6f01f2cbfb6d91200a97e7ec", "score": "0.52144617", "text": "public function withValidator($validator){\r\n\r\n $validator->after(function($validator)\r\n {\r\n try{ \r\n $patient_id = \\Crypt::decrypt($this->get('patient_id'));\r\n } catch (DecryptException $e) {\r\n abort(404);\r\n exit;\r\n }\r\n if(!$this->has('allergy_not_required') && !$this->get('allergy_not_required') == 'on'){\r\n $PatientAllergy = PatientAllergy::where('patient_id',$patient_id)->count();\r\n if($PatientAllergy == 0){\r\n $validator->errors()->add('allergy_not_required', 'Add atleast one allergy.');\r\n }\r\n \r\n }\r\n if(!$this->has('medication_not_required') && !$this->get('medication_not_required') == 'on'){\r\n $patientMed = PatientMedication::where('patient_id',$patient_id)->count();\r\n if($patientMed == 0){\r\n $validator->errors()->add('medication_not_required', 'Add atleast one medication.');\r\n }\r\n \r\n }\r\n });\r\n }", "title": "" }, { "docid": "ea710ed86eb2ba75492ba3387dcee8fc", "score": "0.5213337", "text": "public function activateValidation($validatorSchema)\n {\n }", "title": "" }, { "docid": "c47096f22de270d17fafd7681c00191d", "score": "0.52107745", "text": "protected function registerValidationService()\n {\n $this->app->singleton('laravelmodulescore.validation', function ($app) {\n return new ValidationService();\n });\n }", "title": "" }, { "docid": "383ad9c841e79f2118f89a56421cb11f", "score": "0.5182161", "text": "public function validator()\n {\n\n return ServiceValidator::class;\n }", "title": "" }, { "docid": "4f8a593f0f50846c06f3669c46185770", "score": "0.5181364", "text": "public function addConstraint($name, $constraint)\n {\n\n if (is_callable($constraint)) {\n $this->constraints[$name] = new CallableConstraint(Constraint::CHECK_MODE_NORMAL, $this->uriRetriever,\n $this, $constraint);\n\n return;\n }\n\n if (is_string($constraint)) {\n if ( ! class_exists($constraint)) {\n // @todo possible own exception?\n throw new InvalidArgumentException('Constraint class \"' . $constraint . '\" is not a Class');\n }\n $constraint = new $constraint(Constraint::CHECK_MODE_NORMAL, $this->uriRetriever, $this);\n }\n\n if ( ! $constraint instanceof ConstraintInterface) {\n // @todo possible own exception?\n throw new InvalidArgumentException('Constraint class \"' . get_class($constraint) . '\" is not an instance of ConstraintInterface');\n }\n\n $this->constraints[$name] = $constraint;\n }", "title": "" }, { "docid": "5877af2b97c7e6470c789f1977617277", "score": "0.5165089", "text": "public function setValidator(ValidatorInterface $validator): void\n {\n $this->validator = $validator;\n }", "title": "" }, { "docid": "f5a9dc210b928fdb9bc961856cd274d3", "score": "0.5164191", "text": "public function addValidation(Model $Model, $type) {\n $settings = $this->settings[$Model->alias];\n\n if (in_array($type, $this->_runtime[$Model->alias]['loadedTypes'])) {\n return;\n }\n\n $validationType = $settings['types'][$type];\n $Model->validate = Hash::merge($Model->validate, $validationType);\n $this->_runtime[$Model->alias]['loadedTypes'][] = $type;\n }", "title": "" }, { "docid": "cdec6cf83c12cde6ab17e169fbeeddf4", "score": "0.51634324", "text": "public function validator()\n {\n\n return ClientSectorValidator::class;\n }", "title": "" }, { "docid": "f4d1f98b5caf9feaa579b6f6795aadcd", "score": "0.515073", "text": "public function validator()\n {\n\n return ServicoSublimacaoMetroCorridoValidator::class;\n }", "title": "" }, { "docid": "4bcd3c91e65d298e4fe1bda750c92e81", "score": "0.5141419", "text": "protected function registerValidator(array $data)\n {\n return Validator::make($data, [\n 'name' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n 'password' => ['required', 'string', 'min:5', 'confirmed'],\n ]);\n }", "title": "" }, { "docid": "f928bc3b9147d788324f54f135d707e8", "score": "0.5140434", "text": "protected function registerPayloadValidator()\n {\n $this->app->singleton('anla.jwt.validators.payload', function () {\n return (new PayloadValidator)\n ->setRefreshTTL($this->config('refresh_ttl'))\n ->setRequiredClaims($this->config('required_claims'));\n });\n }", "title": "" }, { "docid": "dad0def7ba3b88036ed524d19d47df66", "score": "0.51335365", "text": "public function validator(){\n\t\treturn ItemValidator::class;\n\t}", "title": "" }, { "docid": "152063184d1476bbf6fe5073fe9e46a4", "score": "0.51254165", "text": "public function withValidator(Validator $validator): void\n {\n // Override parent to ignore validator\n }", "title": "" }, { "docid": "99c2cb57d1ff16fe63563874bd37b1a5", "score": "0.51225555", "text": "public function validation()\n {\n return new Validator;\n }", "title": "" }, { "docid": "629fa3123f537fca5def32150a39b448", "score": "0.51189643", "text": "public function hasValidator(): bool;", "title": "" }, { "docid": "b91b7ba25885ed64751e39b6e4203bac", "score": "0.51153004", "text": "public function validator()\n {\n\n return SourceValidator::class;\n }", "title": "" }, { "docid": "c6a7cb6c826f98473654878baa1017bb", "score": "0.51121044", "text": "public function validate($protocol, Constraint $constraint)\n {\n $building = $protocol->getBuilding();\n $gateName = $protocol->getName();\n\n $conflicts = $this->em->getRepository(Gate::class)->findBy(array(\n 'building' => $building,\n 'name' => $gateName\n ));\n\n if (count($conflicts) > 0) {\n $this->context->buildViolation($constraint->message)\n ->atPath('name')\n ->addViolation();\n }\n }", "title": "" }, { "docid": "7ade7360443d3af6177304c0cb87868e", "score": "0.5099892", "text": "public function __construct(Validator $validator)\n {\n $this->validator = $validator;\n }", "title": "" }, { "docid": "cb9eb3e7962ddc74db150537b333917e", "score": "0.5098474", "text": "public function validator()\n {\n\n return SendmailValidator::class;\n }", "title": "" }, { "docid": "7e27582f85801087272f13df3805a447", "score": "0.5089886", "text": "public function addValidator(callable $validator, string $validator_name): self\n {\n $this->validators[$validator_name] = $validator;\n\n return $this;\n }", "title": "" }, { "docid": "29406cb8e6f6da6190baa076c550b996", "score": "0.50895756", "text": "static public function loadValidatorMetadata(ClassMetadata $metadata)\n {\n $metadata->addPropertyConstraint('nickname', new NotBlank());\n $metadata->addPropertyConstraint('address', new NotBlank());\n }", "title": "" }, { "docid": "bcb052cd89959d26141545bd1780214c", "score": "0.50847083", "text": "public function validator()\n {\n\n return BeerValidator::class;\n }", "title": "" }, { "docid": "d6b8f4f454e4a4edade80c3a6c6d586f", "score": "0.50807273", "text": "public function createConstraintFromAnnotation(): IConstraint;", "title": "" }, { "docid": "a9dab5cc9aa5cb98ac7e27ea6fced23d", "score": "0.5071187", "text": "public function validator()\n {\n return GuzzledbValidator::class;\n }", "title": "" }, { "docid": "a4c608ce2dc19847d5bfd414f7c41c56", "score": "0.506983", "text": "public function validator()\n {\n\n return ReleaseValidator::class;\n }", "title": "" } ]
360dbe51995fbc5c54819aa903ea1c14
Returns table name mapped in the model.
[ { "docid": "fa04472f4356e0d38bc72a7f62f9e5e9", "score": "0.0", "text": "public function getSource()\n {\n return 'store_watermark';\n }", "title": "" } ]
[ { "docid": "8459abe97b9fd4b4b8b223f60feb6491", "score": "0.83050853", "text": "public function getTableName(): string\n {\n return static::TABLE ?: (static::MODEL)::getTableName();\n }", "title": "" }, { "docid": "243b635979adeb00dcf8a379ca3bc99a", "score": "0.816481", "text": "public static function table()\n\t{\n\t\t$class = get_called_class();\n\n\t\t// Table name set in Model\n\t\tif (property_exists($class, '_table_name'))\n\t\t{\n\t\t\treturn static::$_table_name;\n\t\t}\n\n\t\t// Table name unknown\n\t\tif ( ! array_key_exists($class, static::$_table_names_cached))\n\t\t{\n\t\t\tstatic::$_table_names_cached[$class] = Inflector::tableize($class);\n\t\t}\n\n\t\treturn static::$_table_names_cached[$class];\n\t}", "title": "" }, { "docid": "b45cfc9157105e3bac2ab24c0e4c4992", "score": "0.8149679", "text": "protected function getForeignModelTableName(): string\n {\n $class = '\\\\'.$this->get('object');\n\n return $class::$definition['table'];\n }", "title": "" }, { "docid": "3cf59e62bddb8b9b093e6b29a469e5fa", "score": "0.81249595", "text": "public function getTableName()\n {\n return $this->getModel()->getTable();\n }", "title": "" }, { "docid": "a2dcc9644f803a02ec97862ecb5c2753", "score": "0.8041866", "text": "public function tableName()\n {\n $modelName = strtolower(get_class($this));\n\n $tableName = Text::plural($modelName);\n\n return $tableName;\n }", "title": "" }, { "docid": "875c1cd49826ad7b3c08b85232c3efb3", "score": "0.8009431", "text": "public function getTableName()\n {\n return $this->table['name'];\n }", "title": "" }, { "docid": "6c9fa3604681f5111842259bb8c9550f", "score": "0.7944642", "text": "public static function get_table_name();", "title": "" }, { "docid": "dfeaeaabf3aeaae3c3caa0617341b78a", "score": "0.793477", "text": "public function table_name() {\n return strtolower(get_called_class().'s');\n }", "title": "" }, { "docid": "c12348371b681c4d2abfe0cc84bfaba5", "score": "0.79313505", "text": "public function getTable(): string\n {\n $model = $this->getModel();\n\n return $model->getTable();\n }", "title": "" }, { "docid": "bab2230b2d9f14160ac38a63e37afaf8", "score": "0.79170656", "text": "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n $noSuffix = Str::replaceLast($this->getTagModelSuffix(), '', class_basename($this));\n\n return Str::snake(\n Str::plural($noSuffix).Str::plural($this->getTagModelSuffix())\n );\n }", "title": "" }, { "docid": "43598aea53d2864ee001d8d8779ef189", "score": "0.79128426", "text": "public static function getTableName() : String\n {\n return self::getManager()->getClassMetadata(get_called_class())->getTableName();\n }", "title": "" }, { "docid": "128f97db9f258514a8de9b437027a62e", "score": "0.79035115", "text": "public function getTableName(): string\n {\n return $this->table->getTableName();\n }", "title": "" }, { "docid": "947079ec287f3bbfc8ca8434b7bedaec", "score": "0.7897376", "text": "public function tableName()\n {\n return preg_replace(\"/^{$this->tablePrefix}/\", \"\", $this->getTablename());\n }", "title": "" }, { "docid": "e9e03664da9226d879799066c9ca6aaa", "score": "0.78898525", "text": "public function getTableName() { return $this->table_name; }", "title": "" }, { "docid": "ed1cdd07f9546c0f1d89b2c84a8695c2", "score": "0.7880992", "text": "protected static function table()\n\t{\n\t\t$model_class = explode('\\\\', get_called_class()); $model_class = strtolower(end($model_class));\n\t\t$table = isset(self::$_table) ? self::$_table : $model_class.'s';\n\t\treturn $table;\n\t}", "title": "" }, { "docid": "db53f27c8f5080f3c96d037081bc33a4", "score": "0.78576475", "text": "public function getTableName()\n {\n return $this->table_name;\n }", "title": "" }, { "docid": "cc3f5c28c12e28d5142a60a9120a9d1f", "score": "0.78424954", "text": "public function getTableName(){\n return self::$TABLE_NAME;\n }", "title": "" }, { "docid": "23fc8fbe5d6b65854489ebb268d9957b", "score": "0.7834173", "text": "function model_name()\n{\n return Str::singular(table_name());\n}", "title": "" }, { "docid": "ae5f725220bc5a4120cc2add185fd6bd", "score": "0.7832028", "text": "public function getTable()\r\n {\r\n $calledClass = class_base(static::class); \r\n\t\tif (isset($this->table_name)) {\r\n return $this->table_name;\r\n }\r\n $calledClass = Str::deCamelize($calledClass);\r\n return Inflect::pluralize(strtolower($calledClass));\r\n }", "title": "" }, { "docid": "c67c907d058c39da39a36de48f3d1b22", "score": "0.78199756", "text": "public function getTable() : string\n {\n return $this->modelAccess->getTable();\n }", "title": "" }, { "docid": "b50d95e7a305c289ddbea97edd875c21", "score": "0.78027505", "text": "public function getTableName() {\r\n return $this->_table_name;\r\n }", "title": "" }, { "docid": "ad07a29c672283618d8add047fbf2593", "score": "0.7800298", "text": "protected function get_ar_table_name() {\n\n\t\tif( $this->_table ) {\n\t\t\treturn $this->_table;\n\t\t}\n\n\t\t$class = get_class($this);\n\t\t$name = strtolower(substr($class, 0, strrpos($class, '_')));\n\n\t\treturn plural($name);\n\t}", "title": "" }, { "docid": "e8fa9c82ebe63b82afa303109667b634", "score": "0.77992624", "text": "public function getTableName()\n {\n return $this->table;\n }", "title": "" }, { "docid": "85e1991fb41ebe490b2499f037b80011", "score": "0.7793694", "text": "public function table()\n {\n return $this->model()->getTable();\n }", "title": "" }, { "docid": "2b32952a277a82669d8283a5c0cd9688", "score": "0.7781298", "text": "public function getTableName();", "title": "" }, { "docid": "2b32952a277a82669d8283a5c0cd9688", "score": "0.7781298", "text": "public function getTableName();", "title": "" }, { "docid": "886fd5e3537ad2fd6befaa638bde97d3", "score": "0.77789974", "text": "public function getTableName() {\n\t\treturn self::$TABLE_NAME;\n\t}", "title": "" }, { "docid": "6491994f6a301f2ca8f409e0298d3e4d", "score": "0.7777652", "text": "protected function _getTableName()\n {\n //return $this->uncamelcase(str_replace('Object', '', get_class($this)));\n\n //way concrete does it\n return strtolower(str_replace('Object', '', get_class($this)));\n }", "title": "" }, { "docid": "71257f7c2fff1b72e8098cbb8dcd7749", "score": "0.7770263", "text": "public function tableName()\n\t{\n\t\treturn '{{'.$this->getTableName().'}}';\n\t}", "title": "" }, { "docid": "6598da78fc0945ddb3048d4588f2ebe6", "score": "0.7767329", "text": "public function getTableName()\r\n\t{\r\n\t\treturn $this->getName();\r\n\t}", "title": "" }, { "docid": "16c7437f4933a05165e93c6a39dbdbaf", "score": "0.776287", "text": "public function getTableName(): string\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "16c7437f4933a05165e93c6a39dbdbaf", "score": "0.776287", "text": "public function getTableName(): string\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "c3141d9b662772f0064d3e2394702453", "score": "0.776201", "text": "public function getTableName()\n {\n return \\str_replace(\n '_models', '',\n \\str_replace('cubex_modules_', '', \\strtolower(\\str_replace('\\\\', '_', \\get_class($this))))\n );\n }", "title": "" }, { "docid": "eef6ab5d5ca567122fbdb196e386f21e", "score": "0.7729298", "text": "public static function table(): string\n {\n return static::$table ?? Helpers\\Str::lower(\n Helpers\\Str::plural(\n Helpers\\Cls::stripNamespace(static::class)\n )\n );\n }", "title": "" }, { "docid": "527da866f8c6646223db3906cfab67b9", "score": "0.77262616", "text": "public function getTable(): string\n {\n return $this->table ?: $this->identifier->getName();\n }", "title": "" }, { "docid": "0b05ec29c4447363a44c10a295735c47", "score": "0.7723328", "text": "public function getTableName()\n {\n if (!$this->_tableName) {\n if (!$this->through) {\n $parts = [$this->getTable(), $this->getRelatedTable()];\n sort($parts);\n $this->_tableName = '{{%' . implode('_', $parts) . '}}';\n } else {\n $through = $this->through;\n $this->_tableName = $through::tableName();\n }\n }\n return $this->_tableName;\n }", "title": "" }, { "docid": "e3ef8fae08df058065aea7813fb1e48b", "score": "0.7692176", "text": "protected function tableName(): string\n {\n return static::TABLE_ALIAS ? static::TABLE . ' as ' . static::TABLE_ALIAS : static::TABLE;\n }", "title": "" }, { "docid": "5e5903aa07de0422301ba40915c34e14", "score": "0.7690683", "text": "public function getTableName()\n {\n return $this->_name;\n }", "title": "" }, { "docid": "05ad40e981c29115fd776982b4b9fdf6", "score": "0.768865", "text": "protected function generateTableName()\n {\n $classNameSpace = explode('\\\\',strtolower($this->modelClassName.\"s\"));\n return end($classNameSpace);\n }", "title": "" }, { "docid": "30e490ab81d816db7bd3409c7fddedd7", "score": "0.7680851", "text": "public function getTableNameOf( $model ) {\n return $this->models->$model->__table_name__;\n }", "title": "" }, { "docid": "cf3b58040e1f1638285ede090ba0dce5", "score": "0.7669696", "text": "public function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "cf3b58040e1f1638285ede090ba0dce5", "score": "0.7669696", "text": "public function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "cf3b58040e1f1638285ede090ba0dce5", "score": "0.7669696", "text": "public function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "cf3b58040e1f1638285ede090ba0dce5", "score": "0.7669696", "text": "public function getTableName()\n {\n return $this->tableName;\n }", "title": "" }, { "docid": "b88bc026ecfc93e5e298e4b17aa745b0", "score": "0.7667817", "text": "function getTableName()\n\t{\n\t\treturn $this->_tbl;\n\t}", "title": "" }, { "docid": "f98809ab596979a6f303dc70ae6d8b70", "score": "0.76588744", "text": "private static function getTableName() {\n if (isset(static::$table)) {\n return static::$table;\n } else {\n throw new OrmException(\n 'Could not deduce table name for ORM ' . get_called_class()\n );\n }\n }", "title": "" }, { "docid": "59f676c75d7e97d0bf1f1ac29664dc35", "score": "0.7656431", "text": "public function getTableName()\n\t{\n\t\t// print \"Hello from JoomoobaseModelJoomoobase::getTableName()<br />\\n\";\n\t\t// print \"returning this->_tableName = \\\"$this->_tableName\\\" <br />\\n\";\n\t\treturn $this->_tableName;\n\t}", "title": "" }, { "docid": "e31f78a3598b6fb694cae7b92aae5f0a", "score": "0.7655209", "text": "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n $className = str_replace(__NAMESPACE__ . '\\\\', '', get_class($this));\n return str_replace('\\\\', '', snake_case(str_plural($className)));\n }", "title": "" }, { "docid": "c791f2b36c0dec0fb14222fce3c5d531", "score": "0.7653953", "text": "private function getTableName()\n\t{\n\t\treturn $this->tableName;\n\t}", "title": "" }, { "docid": "c17018a4d61d562ac4764d1b2acfa122", "score": "0.76484406", "text": "public function getTableName() {\r\n return $this->tableName;\r\n }", "title": "" }, { "docid": "75fdc5dc18f72d5da4a4d58dde7c0c59", "score": "0.7643452", "text": "public function getTableName() {\n $this->debug->append(\"STA \" . __METHOD__, 4);\n return $this->table;\n }", "title": "" }, { "docid": "9b838804e6566f75ecac2e9d82377e5b", "score": "0.7642535", "text": "private function _getTableName(): string\n {\n if (!$this->tableName) {\n $reflectionClass = new \\ReflectionClass($this);\n $className = $reflectionClass->getShortName();\n $this->tableName = strtolower(trim($className, 's')) . 's';\n }\n\n return $this->tableName;\n }", "title": "" }, { "docid": "474c179e20cb1db55fc22d5f9ecab4b9", "score": "0.76410455", "text": "protected function getTableName(): string\n {\n if (! $this->tableName) {\n $this->tableName = Config::inst()->get($this->className, 'table_name');\n }\n\n return $this->tableName;\n }", "title": "" }, { "docid": "151f9de353f461f445698f8eb3e7d23c", "score": "0.76370853", "text": "public function getTable()\r\n {\r\n return Core::constant( \"DB_PREFIX\" ) . $this->table;\r\n }", "title": "" }, { "docid": "0e87def04bf118bfe741490bbb54952b", "score": "0.7636054", "text": "public function getTable(): string\n {\n if (!isset($this->table)) {\n $this->setTable(str_replace(\n '\\\\', '', Str::snake(Str::plural(class_basename($this)))\n ));\n }\n\n return $this->table;\n }", "title": "" }, { "docid": "a0271646e95eaa65fd50c552422aa291", "score": "0.7634417", "text": "public function get_table_name()\r\n\t{\r\n\t\treturn $this->table_name;\r\n\t}", "title": "" }, { "docid": "37f6cee8e39c9cf77227830ea042d420", "score": "0.76259696", "text": "public function getTableName()\n\t{\n\t\treturn $this->_name;\n\t}", "title": "" }, { "docid": "b4405a8f62687b205957a7f05678d737", "score": "0.7623246", "text": "public function getTableName() {\n return $this->table;\n }", "title": "" }, { "docid": "6047ff2146410f0bd176906fbb002fa6", "score": "0.762088", "text": "public function getTableName(){\n\t\t\t\t// get_called_class() contient: Model\\ProduitModel\n\t\t\t\t//get_called_class() est une fct qui me retourne le nom de la class dans laquelle nous sommes. (ex: nous somme dans la classe Produit: ->donc:Model\\ProduitModel: --> ''Produit''-->produit)\n\t\t$table= strtolower(str_replace(array('Model\\\\', 'Model'), '', get_called_class()));\n\t\treturn $table;// $table=produit dans notre exemple.\n\t\t//return 'produit';\t//on a tapé cette ligne et mis la ligne du dessus en commentaire, juste pour le test. \n\t\t\n\t\t// Au moment ou je ferai appel à cette methode, je serai dans la classe ProduitModel, ou MembreModel ou CommandeModel etc...\n\t\t// Et donc cette fonction est capable de récupérer le nom de la classe et d'en extraire le nom de la table correspondante.\n\t}", "title": "" }, { "docid": "83cd4addf0dc4b32d76735295b715ffd", "score": "0.7618757", "text": "public function getTable()\n {\n if (!isset($this->table)) {\n return str_replace(\n '\\\\', '', Str::snake(Str::plural(class_basename($this)))\n );\n }\n\n return $this->table;\n }", "title": "" }, { "docid": "13fe9e69a23f280bd001be127cab3956", "score": "0.7596865", "text": "public static final function table_name(): string\n\t{\n\t\tif(static::TABLE_NAME)\n\t\t\treturn static::TABLE_NAME;\n\n\t\t$name = get_class_name(static::class);\n\t\t$name = preg_replace('/(?<=[[:lower:]])([[:upper:]])/', '_$1', $name);\n\t\treturn strtolower($name);\n\t}", "title": "" }, { "docid": "6900a27332b36ae77d01285e52be8ffc", "score": "0.75826734", "text": "static public function table_name()\n {\n return strtolower(get_called_class()) . 's';\n }", "title": "" }, { "docid": "9b67a4ee8216a03a35d0e032d50e3d25", "score": "0.7577555", "text": "public function getTableName()\r\n\t{\r\n\t\tif (!isset($this->_tableName))\r\n\t\t{\r\n\t\t\t$class_vars = get_class_vars(get_class($this));\r\n\t\t\t$this->_tableName = $class_vars['table'];\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->_tableName;\r\n\t}", "title": "" }, { "docid": "d0d15226b64695d75ebdfa4ce92d667a", "score": "0.7574794", "text": "public static function getTableName();", "title": "" }, { "docid": "e3062822ef80f95d11bdfb15ec22263d", "score": "0.75671285", "text": "public function getTableName() {\n\t\treturn $this->tableName;\n\t}", "title": "" }, { "docid": "a95c571ad47a514964f8035e6d7a5f25", "score": "0.75598836", "text": "public function getRealTableName(): string;", "title": "" }, { "docid": "9db150b5e9c20e5867231f9711c01d2a", "score": "0.75554585", "text": "public function getTableName() \n {\n return $this->tableName; \n }", "title": "" }, { "docid": "a5eb4acf850358436aab349e87addc06", "score": "0.7547552", "text": "protected function getTableName() {\r\n return $this->_tableName;\r\n }", "title": "" }, { "docid": "8a9060a855ff9e1fd5297eb6f08c17ee", "score": "0.75421536", "text": "public function getTableName()\n {\n return $this->entityClass->getEntity()->getName();\n }", "title": "" }, { "docid": "ca60cccc6532ec2b04cf69d3f44427c4", "score": "0.75371623", "text": "protected function getTableName() {\n\t\treturn isset($this->_meta['table']) ? $this->_meta['table'] : null;\n\t}", "title": "" }, { "docid": "dfe0c12612fa46cfa88762fb9fd50966", "score": "0.75104177", "text": "public function getTableName(): string;", "title": "" }, { "docid": "181054b69479490dcee1475a533bb55b", "score": "0.75057405", "text": "public function tableName($name = NULL) {\r\n if( !$name ) $name = get_class($this);\r\n $o = new $name();\r\n if( $o->uniqTableName ) return $o->uniqTableName;\r\n else {\r\n $modelName = strtolower( $name );\r\n $lastCharacter = $modelName[strlen($modelName)-1];\r\n return in_array( $lastCharacter, Array( 's','h' ) )? $modelName . \"es\" : $modelName . \"s\"; \r\n }\r\n\t}", "title": "" }, { "docid": "f7c0d8ca8b0d0e35ffb8eff9b90a622b", "score": "0.7504588", "text": "public function getViaTableName():string\n {\n $names = [\n strtolower(Inflector::camel2id(Inflector::pluralize($this->schemaName), '_')),\n strtolower(Inflector::camel2id(Inflector::pluralize($this->relatedSchemaName), '_')),\n ];\n sort($names);\n return implode('2', $names);\n }", "title": "" }, { "docid": "b26095aa01c61f1b90e7164904d0c51b", "score": "0.7498541", "text": "public function getEntityTableName();", "title": "" }, { "docid": "f6bc9afe7cff65840ce54401472e4af2", "score": "0.749674", "text": "public function getTable()\n {\n return $this->modelInstance->getTable();\n }", "title": "" }, { "docid": "62554f5b89b092a6a39942e1f9da3a8d", "score": "0.74920946", "text": "public function tableName() {\n\t\treturn $this->tableName;\n\t}", "title": "" }, { "docid": "fd98ba1a873f579bc8ef3f8b0a880d5a", "score": "0.74876916", "text": "public static function getTableName()\n {\n return self::$_tableName;\n }", "title": "" }, { "docid": "4119dd56381756187df1a257acc27772", "score": "0.74863815", "text": "protected function getTableName()\n {\n return (is_null($this->database)) ? \"`{$this->table}`\" : \"`{$this->database}`.`{$this->table}`\";\n }", "title": "" }, { "docid": "ea1b1ba1435a4935de808e85be3ced22", "score": "0.74765915", "text": "public function getTablename()\n {\n return $this->tablename;\n }", "title": "" }, { "docid": "fa0cd411dc80cdebc220fcd07fc9389b", "score": "0.7463685", "text": "public static function tableName (): string\n\t{\n\t\treturn self::$tableName;\n\t}", "title": "" }, { "docid": "9187edbfe64ff18cb1a0b3d9442ea1aa", "score": "0.74489677", "text": "public function getTableName() {\n\t\treturn $this->_tableName;\n\t}", "title": "" }, { "docid": "7c293d364c0995eee0796dfe9b5cb4ee", "score": "0.74460787", "text": "public function getTableName() {\n\t\treturn trim(str_replace('\\\\', '-', $this->getName()), '-_ ');\n\t}", "title": "" }, { "docid": "dcb3bd1d631095b63bd2b3ded191397e", "score": "0.74358267", "text": "public static function tableName(): string\r\n {\r\n self::safe_guard_config();\r\n $tmp = explode(\"\\\\\", get_called_class());\r\n $tableName = strtolower(end($tmp));\r\n\r\n if (array_key_exists('save_with_prefix', self::$config))\r\n if (!self::$config['save_with_prefix'])\r\n $tableName = str_ireplace(self::$config['table_prefix'], \"\", $tableName);\r\n if (array_key_exists('save_with_suffix', self::$config))\r\n if (!self::$config['save_with_suffix'])\r\n $tableName = str_ireplace(self::$config['table_suffix'], \"\", $tableName);\r\n return $tableName;\r\n }", "title": "" }, { "docid": "63150cccdc0a7ffe73891f1fe51d3ddd", "score": "0.7433661", "text": "public function getRelatedModelTable()\n {\n return $this->modelInstance->{ $this->property('name') }()->getRelated()->getTable();\n }", "title": "" }, { "docid": "06a80c43bf170051a0b0e6a9d53ee1bc", "score": "0.7429618", "text": "public function table_name()\n\t{\n\t\treturn $this->_table_name;\n\t}", "title": "" }, { "docid": "6557e884c5ac14fbd61ccc48e972ce9c", "score": "0.7417357", "text": "protected function getForeignTable(): string\n {\n switch ($this->id) {\n case static::ID_LANG:\n return _DB_PREFIX_.'lang';\n case static::ID_SHOP:\n return _DB_PREFIX_.'shop';\n default:\n return _DB_PREFIX_.$this->getForeignModelTableName();\n }\n }", "title": "" }, { "docid": "70df6efa2f24953ceab2fd8dafcfa4d9", "score": "0.74152493", "text": "public function getTableName() {\r\n return $this->_name . \"_\" . (intval(fmod($this->hash, 10)) + 1);\r\n }", "title": "" }, { "docid": "c839bed46cbd250e543ba498b1d1f39b", "score": "0.7412081", "text": "public static function getTableName(){\n return with(new static)->getTable();\n }", "title": "" }, { "docid": "dd471a7b73abaacd7b3d1494a0aeff05", "score": "0.74092925", "text": "public function getTable(): string\n {\n return $this->table;\n }", "title": "" }, { "docid": "dd471a7b73abaacd7b3d1494a0aeff05", "score": "0.74092925", "text": "public function getTable(): string\n {\n return $this->table;\n }", "title": "" }, { "docid": "eb330bcff2c5961da6a800171e932385", "score": "0.7398829", "text": "public function getTableName() {\n\t\treturn $this->m_sTableName;\n\t}", "title": "" }, { "docid": "b2a189111d8dfee4a719457757828057", "score": "0.7392945", "text": "abstract function table_name();", "title": "" }, { "docid": "28d9f6cf6820bcbc0a096eaf5e94f817", "score": "0.73880786", "text": "public function getTable()\n {\n $prefix = config('paywall.table_prefix');\n\n return $prefix.parent::getTable();\n }", "title": "" }, { "docid": "c6515d7cb4f8f615bd70b6c2cd062f9b", "score": "0.7367137", "text": "public function getTable():string\n {\n return $this->table;\n }", "title": "" }, { "docid": "84f5118876209488cdddc4fb085780e4", "score": "0.73599607", "text": "public static function get_table_name()\n {\n if (! isset(self::$tableNames[static::class_name()]))\n {\n $data_manager = static::package() . '\\Storage\\DataManager';\n self::$tableNames[static::class_name()] = $data_manager::PREFIX .\n ClassnameUtilities::getInstance()->getClassNameFromNamespace(get_called_class(), true);\n }\n \n return self::$tableNames[static::class_name()];\n }", "title": "" }, { "docid": "c63b7641b12cede1fd766b49417070d2", "score": "0.7353781", "text": "abstract public function getTableName();", "title": "" }, { "docid": "24808ef75b3bd911335052f5d2f1cd05", "score": "0.7349864", "text": "public function getTableName() {\n\t\t$result = $this->_tableName;\n\t\tif ($this->getSchemaName() != '') {\n\t\t\t$result = $this->getSchemaName().'.'.$this->_tableName;\n\t\t}\n\t\treturn ($result);\n\t}", "title": "" }, { "docid": "25660c36d228e7d75c7122e9a9034b54", "score": "0.7334335", "text": "public static function name() {\n return with(new static)->getTable();\n }", "title": "" }, { "docid": "6e064c0ea23f6b9a68d113e246d91716", "score": "0.73332494", "text": "public function getTable()\n {\n return $this->layout ?? $this->table ?? Str::snake(Str::pluralStudly(class_basename($this)));\n }", "title": "" }, { "docid": "2b48d0e0496912ec9dd6e48542525b72", "score": "0.7326457", "text": "public function getTable($modelEntity)\n {\n return Mage::getSingleton('core/resource')->getTableName($modelEntity);\n }", "title": "" }, { "docid": "1ad528152219e6b4dd0073460d99df9b", "score": "0.73174506", "text": "protected function _tableName()\n {\n // Call the original method for our table name stuff\n return parent::tableName();\n }", "title": "" } ]
67ace55a708a385e2f5e48e1a61abb76
Loads userdata from the steam servers.
[ { "docid": "3f0c26c47abb01c3a00e25ebc58364ba", "score": "0.71370053", "text": "public function loadRemoteUserInfo()\n {\n $userInfo = @json_decode($this->util->file_get_contents_curl('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' . $this->config['key'] . '&steamids=' . $this->steamId), true)['response']['players'][0];\n $this->db->prepare('INSERT INTO `steamAPIUsage` SET `module` = 1');\n $this->db->execute();\n\n if (!$userInfo) {\n throw new Exception('The steam servers failed to respond to the user info request, probably due to heavy load.');\n }\n $this->logger->addEntry('Grabbed userdata from steam servers.');\n\n $this->personaName = $userInfo['personaname'];\n $this->personaState = $userInfo['personastate'];\n $this->profileState = $userInfo['communityvisibilitystate'];\n $this->profileUrl = substr($userInfo['profileurl'], 26);\n $this->avatarHash = substr($userInfo['avatar'], -44, -4);\n if (isset($userInfo['gameextrainfo'])) {\n $this->gameName = $userInfo['gameextrainfo'];\n } else {\n $this->gameName = '';\n }\n $this->cacheUser();\n }", "title": "" } ]
[ { "docid": "073e2e5945dfeb7f7fb9a509615e9a86", "score": "0.65482986", "text": "public function loadLocalUserInfo()\n {\n try {\n $this->db->prepare('SELECT `personaname`, `personastate`, `points`, (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(`lastUpdate`)) AS `lastUpdate`, `profileurl`, `profilestate`, `avatar`, `toBeatNum`, `considerBeaten`, `hideQuickStats`, `hideAccountStats`, `hideSocial`, `private`, `gameName` FROM `steamUserDB` WHERE `steamid` = ?');\n $this->db->execute(array($this->steamId), 's');\n $result = $this->db->fetch();\n\n if ($result && $result['profilestate'] === '3') {\n $this->personaName = $result['personaname'];\n $this->personaState = $result['personastate'];\n $this->points = $result['points'];\n $this->lastUpdate = $result['lastUpdate'];\n $this->profileUrl = $result['profileurl'];\n $this->profileState = $result['profilestate'];\n $this->avatarHash = $result['avatar'];\n $this->toBeatNum = $result['toBeatNum'];\n $this->considerBeaten = $result['considerBeaten'];\n $this->hideQuickStats = $result['hideQuickStats'];\n $this->hideAccountStats = $result['hideAccountStats'];\n $this->hideSocial = $result['hideSocial'];\n $this->private = $result['private'];\n $this->gameName = $result['gameName'];\n $this->logger->addEntry('Grabbed userdata from local database.');\n } else {\n $this->loadRemoteUserInfo();\n }\n } catch (Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "42bbeec456d03014114fcbc24a0959e1", "score": "0.6397217", "text": "private function loadUserData() {\n $user = array(\n 'name' => Lang::GUEST,\n 'level' => 'guest'\n );\n if(isset($this->session->user_id)) {\n $user['name'] = String::safeHTMLText($this->session->user_email);\n $user['level'] = $this->session->user_level;\n }\n $this->data['user'] = $user;\n }", "title": "" }, { "docid": "04eb6d4d29c50d62108c1d89c850ec70", "score": "0.5895654", "text": "public function load_data() {\n $person_data_json = file_get_contents(dirname(__FILE__) . '/data/sample_person_data.json');\n $this->person_data = json_decode($person_data_json, true);\n\n }", "title": "" }, { "docid": "d170363e44302079a6677dc2f690d0b7", "score": "0.58895683", "text": "function users_loadCurrentUser() {\n \n global $user;\n # If I am running on emebed mode I don't have any users, so I will just load it from the session\n $user = users_load(array('userName' => params_get('iam', '')));\n /*\n if(conf_get('embeded', 'core', false)){\n $user = users_createBasic();\n $tmpUserId = users_confirmSessionKey();\n $user->idUser = $tmpUserId;\n }else{\n }\n */\n}", "title": "" }, { "docid": "88619c20a04adc6ccfece040cb22c0eb", "score": "0.5875182", "text": "public static function loadUserData_()\n\t{\n \t$user = \\Yii::$app->user->identity;\n if (empty($user)) return;\n \t$connection = \\Yii::$app->db;\n \t$connection->createCommand(\"insert ignore into user_details (id) values (\" . $user->id . \")\")->execute();\n \t$sql = \"SELECT u.username, u.email, u.status, u.superadmin, ud.*, ci.* FROM user_details ud left join comuniistat ci on idComune = ci.CodiceComune join user u on ud.id=u.id where u.id=\" . $user->id;\n $model = $connection->createCommand($sql);\n\n $u = $model->queryOne();\n \t$session = Yii::$app->session;\n $session[\"user\"] = $u;\n\n \t$model = $connection->createCommand(\"select item_name, description from auth_assignment a, auth_item i where a.item_name=i.name and user_id=\" . $user->id);\n $u = $model->queryAll();\n $session['roles'] = $u;\n\n //Estraggo i ruoli in formato lista\n $s = Userdetails::getUserRoles($user->id);\n $session['rolesList'] = $s;\n\n $session[\"canChangeUser\"] = 0;\n //la variabile canChangeUser viene immpostata solo se mi loggo come superadmin\n\t\t\tif (Tool::hasRole(Tool::SWAPUSER) || Tool::hasRole(Tool::SUPERADMIN))\n\t\t\t{\n\t\t\t\t$session[\"canChangeUser\"] = 1;\n\t\t\t\t$session[\"masterUser\"] = $session[\"user\"];\n\t\t\t\t$session[\"masterRoles\"] = $session[\"roles\"];\n\t\t\t}\n\t}", "title": "" }, { "docid": "915bbdb96bddecdbf63933b9a0e34284", "score": "0.5837014", "text": "protected function loadStored()\n\t{\n\t\t// Check if there is a remember cookie set\n\t\t$cookie_path = '/';\n\t\t$rCookie = $this->input->cookie->getString(md5(JFactory::getConfig()->get('app_title') . '_REMEMBER'));\n\n\t\tif (isset($rCookie))\n\t\t{\n\t\t\t// Check if there is any used in database with the current remember cookie.\n\t\t\t$mUser = new User;\n\t\t\t$usersByParam = $mUser->find(array('params' => sha1($rCookie . $cookie_path)));\n\t\t\tif (!empty($usersByParam))\n\t\t\t{\n\t\t\t\t// Build the current remember cookie value of the user.\n\t\t\t\t$controlToken = $this->rememberCookie($usersByParam[0]);\n\n\t\t\t\t// Remember cookie is valid.\n\t\t\t\tif ($rCookie == $controlToken)\n\t\t\t\t{\n\t\t\t\t\t// Load user in session.\n\t\t\t\t\t$this->app->getSession()->set('user', new JUser($usersByParam[0]->id));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "efb810192ad0f21041726e65368ed36f", "score": "0.5745228", "text": "function loadWebUser() {\n $userModel = $this->loadUser(Yii::app()->user->id);\n }", "title": "" }, { "docid": "a02bc771496b73efad1a6126ceec2e5c", "score": "0.5742934", "text": "public function getUserData();", "title": "" }, { "docid": "8833c7563926c31d56342dabbb511afb", "score": "0.57384497", "text": "protected function loadSession(): void\n\t{\n\t\t$sessionTable = $this->controller->app['tables']['session'];\n\t\t$userTable = $this->controller->app['tables']['user'];\n\t\t$userData = (new \\App\\Db\\Query())->select([\"$userTable.*\", 'sid' => \"$sessionTable.id\", \"$sessionTable.language\", \"$sessionTable.created\", \"$sessionTable.changed\", \"$sessionTable.params\"])\n\t\t\t->from($userTable)\n\t\t\t->innerJoin($sessionTable, \"$sessionTable.user_id = $userTable.id\")\n\t\t\t->where([\"$sessionTable.id\" => $this->controller->headers['x-token'], \"$userTable.status\" => 1])\n\t\t\t->one(\\App\\Db::getInstance('webservice'));\n\t\tif (!$userData) {\n\t\t\tthrow new \\Api\\Core\\Exception('Invalid token', 401);\n\t\t}\n\t\t$this->setAllUserData($userData);\n\t}", "title": "" }, { "docid": "b68f81c0eac8b8219c389da646ca3e45", "score": "0.5695867", "text": "public function load(){\n\t\ttry{\n\t\t\t$request = new UsersRequest( array ( 'ususers' => $this->getName() ) );\n\t\t\t$result = $this->getSite()->getApi()->doRequest( $request );\n\t\t\t$result = $result['query']['users'][0];\n\t\t\t//todo factor the below out into newFromArray()??\n\t\t\t$this->id = $result['userid'];\n\t\t\t$this->name = $result['name'];\n\t\t\t$this->editcount = $result['editcount'];\n\t\t\t$this->registration = $result['registration'];\n\t\t\t$this->groups = $result['groups'];\n\t\t\t$this->implicitgroups = $result['implicitgroups'];\n\t\t\t$this->rights = $result['rights'];\n\t\t\t$this->gender = $result['gender'];\n\t\t\treturn true;\n\t\t} catch ( UnexpectedValueException $e ){\n\t\t\tLogger::logError( \"Cannot load user details for {$this->name} as no Site is defined\" );\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "af836f80c5201da644e28f906b074a73", "score": "0.5666501", "text": "private function initSetup()\r\n\t{\r\n\t\trequire_once 'Models/User.php';\r\n\t\tif(!empty($_SESSION['USER']))\r\n\t\t{\r\n\t\t\t$_SESSION['USER'] = unserialize($_SESSION['USER']);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "25b37e3fed1a29b5a232d3ee447134b0", "score": "0.5590359", "text": "function loadUser() {\n $r = $this->du->getUserById($this->id);\n if ($r != -1) {\n $this->login = $r['usu_login'];\n $this->password = $r['usu_clave'];\n $this->nombre = $r['usu_nombre'];\n $this->apellido = $r['usu_apellido'];\n $this->documento = $r['usu_documento'];\n $this->telefono = $r['usu_telefono'];\n $this->celular = $r['usu_celular'];\n $this->correo = $r['usu_correo'];\n $this->perfil = $r['per_id'];\n $this->estado = $r['usu_estado'];\n $this->fecha = $r['usu_fecha_ultimo_ingreso'];\n $this->ip = $r['usu_ip'];\n $this->rh = $r['usu_rh'];\n $this->fecha_ingreso = $r['usu_fecha_ingreso'];\n $this->regional = $r['usu_regional'];\n $this->cargo = $r['usu_cargo'];\n $this->correo_corporativo = $r['usu_correo_corporativo'];\n $this->cuenta_banco = $r['usu_cuenta_banco'];\n $this->celular_corporativo = $r['usu_celular_corporativo'];\n $this->ciudad = $r['usu_ciudad'];\n $this->direccion = $r['usu_direccion'];\n $this->fecha_nacimiento = $r['usu_fecha_nacimiento'];\n $this->contacto_emergencia = $r['usu_contacto_emergencia'];\n $this->fecha_aprovacion = $r['usu_fecha_aprobacion'];\n $this->arl = $r['usu_arl'];\n $this->eps = $r['usu_eps'];\n $this->alergia = $r['usu_alergia'];\n $this->antecedentes_enfermedad = $r['usu_antecedentes_enfermedad'];\n $this->medicamentos = $r['usu_medicamentos'];\n\t\t $this->telefonoContacto= $r['usu_telefono_contacto'];\n } else {\n $this->login = \"\";\n $this->password = \"\";\n $this->nombre = \"\";\n $this->apellido = \"\";\n $this->documento = \"\";\n $this->telefono = \"\";\n $this->celular = \"\";\n $this->correo = \"\";\n $this->perfil = \"\";\n $this->estado = \"\";\n $this->fecha = \"\";\n $this->ip = \"\";\n $this->rh = \"\";\n $this->fecha_ingreso = \"\";\n $this->regional = \"\";\n $this->cargo = \"\";\n $this->correo_corporativo = \"\";\n $this->cuenta_banco = \"\";\n $this->celular_corporativo = \"\";\n $this->ciudad = \"\";\n $this->direccion = \"\";\n $this->fecha_nacimiento = \"\";\n $this->contacto_emergencia = \"\";\n $this->fecha_aprovacion = \"\";\n $this->arl = \"\";\n $this->eps = \"\";\n $this->alergia = \"\";\n $this->antecedentes_enfermedad = \"\";\n $this->medicamentos = \"\";\n\t\t $this->telefonoContacto= \"\";\n }\n }", "title": "" }, { "docid": "a1251767b1c20cd114cac526e11ccba1", "score": "0.558495", "text": "public function load(string $name) {\n\t\tif (!self::exists($name)) {\n\t\t\tthrow new UserNotFoundException(\"Use '$name' doesn't exist.\");\n\t\t}\n\n\t\t$this->fimport(self::get_data_file_path($name));\n\t\t$this->session_cleanup();\n\t}", "title": "" }, { "docid": "ba4075b2339531ea34fda8e3f9a06bc3", "score": "0.5555967", "text": "function loadSeeUser() {\n $r = $this->du->getUserById($this->id);\n if ($r != -1) {\n $this->login = $r['usu_login'];\n $this->password = $r['usu_clave'];\n $this->nombre = $r['usu_nombre'];\n $this->apellido = $r['usu_apellido'];\n $this->documento = $r['usu_documento'];\n $this->telefono = $r['usu_telefono'];\n $this->celular = $r['usu_celular'];\n $this->correo = $r['usu_correo'];\n $this->perfil = $r['per_id'];\n $this->fecha = $r['usu_fecha_ultimo_ingreso'];\n $this->ip = $r['usu_ip'];\n $this->rh = $r['usu_rh'];\n $this->fecha_ingreso = $r['usu_fecha_ingreso'];\n $this->regional = $r['usu_regional'];\n $this->cargo = $r['usu_cargo'];\n $this->correo_corporativo = $r['usu_correo_corporativo'];\n $this->cuenta_banco = $r['usu_cuenta_banco'];\n $this->celular_corporativo = $r['usu_celular_corporativo'];\n $this->ciudad = $r['usu_ciudad'];\n $this->direccion = $r['usu_direccion'];\n $this->fecha_nacimiento = $r['usu_fecha_nacimiento'];\n $this->contacto_emergencia = $r['usu_contacto_emergencia'];\n $this->fecha_aprovacion = $r['usu_fecha_aprobacion'];\n $this->arl = $r['usu_arl'];\n $this->eps = $r['usu_eps'];\n $this->alergia = $r['usu_alergia'];\n $this->antecedentes_enfermedad = $r['usu_antecedentes_enfermedad'];\n $this->medicamentos = $r['usu_medicamentos'];\n\t\t $this->telefonoContacto= $r['usu_telefono_contacto'];\n if ($r['usu_estado'] == 1)\n $this->estado = \"Activo\";\n else\n $this->estado = \"Inactivo\";\n } else {\n $this->login = \"\";\n $this->password = \"\";\n $this->nombre = \"\";\n $this->apellido = \"\";\n $this->documento = \"\";\n $this->telefono = \"\";\n $this->celular = \"\";\n $this->correo = \"\";\n $this->perfil = \"\";\n $this->estado = \"\";\n $this->fecha = \"\";\n $this->ip = \"\";\n $this->rh = \"\";\n $this->fecha_ingreso = \"\";\n $this->regional = \"\";\n $this->cargo = \"\";\n $this->correo_corporativo = \"\";\n $this->cuenta_banco = \"\";\n $this->celular_corporativo = \"\";\n $this->ciudad = \"\";\n $this->direccion = \"\";\n $this->fecha_nacimiento = \"\";\n $this->contacto_emergencia = \"\";\n $this->fecha_aprovacion = \"\";\n $this->arl = \"\";\n $this->eps = \"\";\n $this->alergia = \"\";\n $this->antecedentes_enfermedad = \"\";\n $this->medicamentos = \"\";\n\t\t $this->telefonoContacto= \"\";\n }\n }", "title": "" }, { "docid": "b14d77f78e9da2e91f1cb0e23578963d", "score": "0.5551504", "text": "public function getUserdata();", "title": "" }, { "docid": "9bcbdaff4b72abbd96bbd780b66a7cc3", "score": "0.55341643", "text": "protected function loadData(): void\n {\n if (is_array($this->data)) {\n return;\n }\n\n $data = session($this->sessionName);\n\n if (!$data) {\n $this->data = [];\n return;\n }\n\n $sessionData = json_decode($data, true);\n\n if (is_null($sessionData)) {\n $this->data = [];\n return;\n }\n\n $this->data = $sessionData;\n }", "title": "" }, { "docid": "74cc68e538b23361085517f5459a44e0", "score": "0.55272615", "text": "private function loadPersonData()\n {\n return json_decode(file_get_contents(__DIR__ . '/person.json'), true);\n }", "title": "" }, { "docid": "cad5cb97f0374eba6152100a5d823977", "score": "0.55236334", "text": "public function set_user_data() {\n\t\t// available just so they can be used rather than session variables.\n\t\tif ( isset($_SESSION['LOGGED_IN']) && $_SESSION['LOGGED_IN'] === true ) {\n\t\t\t# We have a logged in user..\n\t\t\t$this->id = $_SESSION['USER_ID'];\n\t\t\t$this->firstname = $_SESSION['FIRSTNAME'];\n\t\t\t$this->lastname = $_SESSION['LASTNAME'];\n\t\t\t$this->username = $_SESSION['USERNAME'];\n\t\t\t$this->is_admin = $_SESSION['IS_ADMIN'];\n\t\t\t$this->email = $_SESSION['EMAIL'];\n\t\t\t$this->location = $_SESSION['LOCATION'];\n\t\t\t$this->gravatar = get_gravatar($this->email, 65);\n\t\t}\n\t}", "title": "" }, { "docid": "c9f8bea03567a82db8b646429e510a61", "score": "0.550603", "text": "public function load() {\n\t\t$settings = $this->db->select(\"*\");\n\t\tif (!empty($settings)) {\n\t\t\tCommon::send(\"success\", $settings);\n\t\t} else {\n\t\t\tCommon::send(\"error\", \"Settings for user not found.\");\n\t\t}\n\t}", "title": "" }, { "docid": "158dcfa601f73b980c7c602a2d219404", "score": "0.5504598", "text": "private function loadData( )\n\t{\n\n\t\t$service = new \\Google_Service_Oauth2($this->_client);\n\n\t\t$data = $service->userinfo->get() ;\n\n\t\tif( isset( $data['email'] ) && TRUE == $data['verifiedEmail'] )\n\t\t{\n\t\t\t$this->_data['name'] = $data['name'];\n\t\t\t$this->_data['email'] = $data['email'];\n\t\t\t$this->_data['gender'] = $data['gender'];\n\t\t\t$this->_data['avatar'] = $data['picture'];\n\t\t}\n\necho __LINE__.'---'.__FILE__.'<pre>';\nvar_dump( $this->_data );\necho '</pre>';\nexit;\n\n\t\treturn $this->_data;\n\t}", "title": "" }, { "docid": "840b7779b5c87a42252f4d575223ac3a", "score": "0.5499348", "text": "private static function loadTestData(){\r\n $em = self::$doctrineContainer->getEntityManager(); \r\n foreach(self::$users as $user){\r\n $u = new Imixer\\Domain\\Entities\\User();\r\n $u->setFirstName($user[\"firstName\"]);\r\n $u->setLastName($user[\"lastName\"]);\r\n $u->setEmail($user[\"email\"]);\r\n $u->setPassword($user[\"password\"]);\r\n $u->setSalt($user[\"salt\"]);\r\n $em->persist($u); \r\n }\r\n $em->flush(); //this will write my user to the db. \r\n }", "title": "" }, { "docid": "2e8c540eaca3b57f1b4c25bcab2ded53", "score": "0.5493128", "text": "public static function init_user_session(){\n\n // Auto-generate basic user info with guest info\n $this_user = array();\n $this_user['userid'] = MMRPG_SETTINGS_GUEST_ID;\n $this_user['username'] = 'guest';\n $this_user['username_clean'] = 'guest';\n $this_user['imagepath'] = '';\n $this_user['backgroundpath'] = '';\n $this_user['colourtoken'] = '';\n $this_user['colourtoken2'] = '';\n $this_user['gender'] = '';\n $this_user['password'] = '';\n $this_user['password_encoded'] = '';\n $this_user['omega'] = '';\n\n // Overwrite the session user with that one\n $_SESSION['GAME']['USER'] = $this_user;\n\n }", "title": "" }, { "docid": "270bc77b3928c16cf492f540663ac0a5", "score": "0.54822487", "text": "protected function loadProfile()\n {\n }", "title": "" }, { "docid": "903cdc2782db699ecb9112a23e480f4a", "score": "0.54732716", "text": "private static function loadUserTokenFromPersistence ()\n {\n try {\n if (is_null(self::$druid_things->getAccessToken())){\n self::$logger->debug('Load access token from cookie');\n\n if (OAuth::hasToken(iTokenTypes::ACCESS_TOKEN)) {\n self::$druid_things->setAccessToken(OAuth::getStoredToken(iTokenTypes::ACCESS_TOKEN));\n }\n if (OAuth::hasToken(iTokenTypes::REFRESH_TOKEN)) {\n self::$druid_things->setRefreshToken(OAuth::getStoredToken(iTokenTypes::REFRESH_TOKEN));\n }\n }\n\n } catch (Exception $e) {\n self::$logger->error($e->getMessage());\n }\n }", "title": "" }, { "docid": "8cc5ef691d5a18cf264f42e2613e3210", "score": "0.54646", "text": "function UserLoad( $username ){\n foreach((array)$this->_Config['pages'] as $page=>$title){\n $this->_Config['groups']['sysadmin']['pages'][] = $page;\n }\n \n $this->_User = $this->_Config['users'][$username];\n // resolve groups and pages\n //print_r($this->cms->user);\n //exit();\n foreach((array)$this->_User['groups'] as $group){\n foreach((array)$this->_Config['groups'][$group] as $k=>$perm){\n $this->_User['permissions'][$k] = array_unique(array_merge(\n (array)$this->_User['permissions'][$k],\n (array)$perm\n ));\n }\n }\n // sort out pages\n foreach($this->_User['permissions']['pages'] as $p){\n // add to title lookup (not req'd if use config\n \n if(!strstr($p,'.')){\n $this->_User['pages'][$p]['title']=$this->_Config['pages'][$p];\n }else{\n $bits=explode('.',$p);\n if(count($bits)==2&&isset($this->_User['pages'][$bits[0]])){\n $this->_User['pages'][$bits[0]]['subpages'][$p]=$this->_Config['pages'][$p];\n }\n }\n }\n // we want to know the user's pages, with titles, and sub-pages\n \n \n // refresh login\n $_SESSION['cms5_username'] = $username;\n $_SESSION['cms5_activity'] = time();\n // refresh CMS\n $this->_User['options'] = $_SESSION['cms5_options'];\n }", "title": "" }, { "docid": "2ed8f487965b223915e8c1935e2d2df3", "score": "0.5443603", "text": "public function loadClientUsers()\n {\n $user = $this->checkUser();\n if (!$user) {\n return;\n }\n\n //for API_KEY based connection\n if ($user instanceof SecurityUser) {\n $user = $this->em->getRepository('OjsUserBundle:User')->findOneBy(['username' => $user->getUsername()]);\n }\n\n $clients = $this->em->getRepository('OjsUserBundle:Proxy')->findBy(\n array('proxyUserId' => $user->getId())\n );\n $this->session->set('userClients', $clients);\n }", "title": "" }, { "docid": "3a969fd1cca84e79791f154ff838d38b", "score": "0.5438752", "text": "public function loadFromDatabase() {\n\t\t$query = \"SELECT * FROM member WHERE id = {$this->owner->id}\";\n\t\t$cloud = mysql_query($query);\n\t\t\n\t\tif (mysql_num_rows($cloud) != 1) {\n\t\t\tthrow new Exception(\"There is nobody with ID {$this->owner->id}\");\n\t\t\t//return;\n\t\t}\n\t\t\n\t\t$row = mysql_fetch_assoc($cloud);\n\t\t\n\t\t//step 3: load up data\n\t\t$this->owner->first = $row['first'];\n\t\t$this->owner->last = $row['last'];\n\t\t$this->owner->email = $row['email'];\n\t\t$this->owner->phone = $row['phone'];\n\t\t\n\t}", "title": "" }, { "docid": "10f27c9ae0f7ee10c60f0f217b61aa3d", "score": "0.5434033", "text": "public function get_user_data_from_database()\n\t{\n\t\tglobal $Mysql;\n\t\t\n\t\t$user_qry = $Mysql->query(\"SELECT * FROM `users` \n\t\t\tWHERE `id`=\". $this->id);\n\t\t$user_qry->data_seek(0);\n\t\t$user_row = $user_qry->fetch_assoc();\n\n\t\t$this->id = $user_row['id'];\n\t\t$this->username = $user_row['username'];\n\t\t$this->email = $user_row['email'];\n\t\t$this->group = $user_row['group'];\n\t\t\n\t\t// Grab the IDs for colonies owned by this player.\n\t\t$this->colony_ids = array();\n\t\t$colony_ids_query = $Mysql->query(\"SELECT `id` FROM `colonies` WHERE `player_id` = '\". $this->id .\"'\");\n\t\t$colony_id_row = $colony_ids_query->fetch_assoc();\n\t\tforeach ( $colony_id_row as $colony_id )\n\t\t\t$this->colony_ids[] = $colony_id;\n\t}", "title": "" }, { "docid": "566c3e217f8ce835d1e3fe06cf21fa5d", "score": "0.5405408", "text": "public function load_from_server ()\n {\n $this->load_from_string (read_array_index ($_SERVER, 'HTTP_USER_AGENT'));\n }", "title": "" }, { "docid": "8733d0529ea5b346fcc3cf3d3605a137", "score": "0.54034513", "text": "private function load_user(){\n\t\tif(isset($_SESSION['user'])){\n\t\t\t$this->params['user_logged'] = true;\n\t\t\treturn $this->params['user'] = UserQuery::create()->findPK($_SESSION['user']);\n\t\t}\n\t\t$this->params['user_logged'] = false;\n\t}", "title": "" }, { "docid": "20c9d14b15e1c93f1b7b6d07253f0b84", "score": "0.5389709", "text": "protected function getUserData()\n {\n $Token = new \\League\\OAuth2\\Client\\Token\\AccessToken([\n 'access_token' => 'test-token',\n 'expires' => 1490988496,\n ]);\n\n $data = [\n 'token' => $Token,\n 'id' => '1',\n 'name' => 'Test User',\n 'first_name' => 'Test',\n 'last_name' => 'User',\n 'hometown' => [\n 'id' => '108226049197930',\n 'name' => 'Madrid',\n ],\n 'picture' => [\n 'data' => [\n 'url' => 'https://scontent.xx.fbcdn.net/v/test.jpg',\n 'is_silhouette' => false,\n ],\n ],\n 'cover' => [\n 'source' => 'https://scontent.xx.fbcdn.net/v/test.jpg',\n 'id' => '1',\n ],\n 'gender' => 'male',\n 'locale' => 'en_US',\n 'link' => 'https://www.facebook.com/app_scoped_user_id/1/',\n 'timezone' => -5,\n 'age_range' => [\n 'min' => 21,\n ],\n 'bio' => 'I am the best test user in the world.',\n 'picture_url' => 'https://scontent.xx.fbcdn.net/v/test.jpg',\n 'is_silhouette' => false,\n 'cover_photo_url' => 'https://scontent.xx.fbcdn.net/v/test.jpg',\n ];\n\n $mapper = new Facebook();\n $user = $mapper($data);\n $user['provider'] = 'facebook';\n $user['validated'] = true;\n\n return $user;\n }", "title": "" }, { "docid": "8f7b5fbb6daa98ec3c47e4871c6cbe72", "score": "0.5377799", "text": "public function fetch() {\n \t// Gets user information.\n \t$user = $this->_get_user();\n\n \t// Gets profile information.\n\t$profile = profile2_load_by_user($user, 'main');\n\n\t// Set profile as a sub-object of user.\n\t$user->profile = $profile;\n\n\t// Return the final user object.\n\treturn $user;\n }", "title": "" }, { "docid": "1976ef646880f9f57cf303f754bc7cc6", "score": "0.53422254", "text": "public function loadData($uid);", "title": "" }, { "docid": "575c1c1ff6a0600e06817e4126ecc3c6", "score": "0.5338987", "text": "public static function refreshUserdata() {\n\t\tif( !Security::providerUsersInDb( Security::currentProvider() ) ) {\n\t\t\treturn;\n\t\t}\n\t\tif( !isLogged() || Security::isGuest() )\n\t\t\treturn;\n\t\t$userData = Security::fetchUserData( Security::getUserName(), \"\", true );\n\t\tstorageSet( \"UserData\", $userData );\n\t}", "title": "" }, { "docid": "a8c5e810a2b7b63ede0a37a764c87369", "score": "0.5337083", "text": "private function cacheUser()\n {\n try {\n $this->db->prepare('INSERT INTO `steamUserDB` (`steamid`, `personaname`, `personastate`, `profileurl`, avatar, `profilestate`, `gameName`)\n VALUES (?, ?, ?, ?, ?, ?, ?)\n ON DUPLICATE KEY UPDATE `personaname` = ?, `personastate` = ?, `profileurl` = ?, `avatar` = ?, `profilestate` = ?, `gameName` = ?, `lastUpdate` = now()');\n $data = array($this->steamId, $this->personaName, $this->personaState, $this->profileUrl, $this->avatarHash, $this->profileState, $this->gameName,\n $this->personaName, $this->personaState, $this->profileUrl, $this->avatarHash, $this->profileState, $this->gameName);\n $this->db->execute($data, 'ssissississis');\n $this->logger->addEntry('Updated local userdata.');\n // Legacy implementation that involved storing the avatar locally\n\n// $steamAvatar = @$this->util->file_get_contents_curl($avatarUrl);\n//\n// if(!file_exists($this->avatar) || (md5($steamAvatar) != md5(file_get_contents($this->avatar))))\n// {\n// file_put_contents($this->avatar, $steamAvatar);\n// $this->logger->addEntry('New local avatar created.');\n// }\n } catch (Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "9232101a3f0a0413f90788762838fe5f", "score": "0.5334401", "text": "public function loadByCredentials(array $data);", "title": "" }, { "docid": "674bc0a616ffb6e61bebe84e0955a1ec", "score": "0.53038794", "text": "protected function initItems() {\n $users = array();\n foreach ($this->data->users as $user) {\n $users[] = new User($user, $this->client);\n }\n $this->data->users = $users;\n }", "title": "" }, { "docid": "c81331d5843db3927a05bd2008dbcb03", "score": "0.5291704", "text": "public function loadData();", "title": "" }, { "docid": "317716ed79dba84d7a334b08e43aa2c3", "score": "0.5278312", "text": "public function load ()\n\t{\n\t\tif (file_exists($this->file_name)) {\n\t\t\t$data = file_get_contents($this->file_name);\n\t\t\t$decoded = json_decode($data, true);\n\t\t\t$this->data = $decoded ?? [];\n\t\t} else {\n\t\t\t$this->data = [];\n\t\t}\n\t}", "title": "" }, { "docid": "d69b7e4c89258f19b2505dd26df8e50b", "score": "0.52522796", "text": "protected function _loadGameserverAccountData() {\n\t\ttry {\n\t\t\t\n\t\t\tif(check($this->_username)) {\n\t\t\t\t$accountData = $this->getAccountData();\n\t\t\t\tif(!is_array($accountData)) return;\n\t\t\t\t$this->_userid = $accountData['_id'];\n\t\t\t}\n\t\t\t\n\t\t\tif(check($this->_email)) {\n\t\t\t\t$accountData = $this->getAccountData();\n\t\t\t\tif(!is_array($accountData)) return;\n\t\t\t\t$this->_userid = $accountData['_id'];\n\t\t\t}\n\t\t\t\n\t\t\t$collection = $this->db->gameserver->accounts;\n\t\t\t\n\t\t\tif(check($this->_userid)) {\n\t\t\t\t$result = $collection->findOne(\n\t\t\t\t\t[\n\t\t\t\t\t\t'_id' => (int) $this->_userid,\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'projection' => [\n\t\t\t\t\t\t\t'_id' => 1,\n\t\t\t\t\t\t\t'lastLogout' => 1,\n\t\t\t\t\t\t\t'lastLogin' => 1,\n\t\t\t\t\t\t\t'firstLogin' => 1,\n\t\t\t\t\t\t\t'playedTime' => 1,\n\t\t\t\t\t\t\t'familyRewardCoolTime' => 1,\n\t\t\t\t\t\t\t'guildCoolTime' => 1,\n\t\t\t\t\t\t\t'matingAuctionCoolTime' => 1,\n\t\t\t\t\t\t\t'activityPoints' => 1\n\t\t\t\t\t\t]\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tif(!check($result)) return;\n\t\t\t\t$gameserverAccountData = (array) $result;\n\t\t\t\tif(!is_array($gameserverAccountData)) return;\n\t\t\t\t$this->_gameserverAccountData = $gameserverAccountData;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\treturn;\n\t\t} catch(Exception $ex) {\n\t\t\tif(config('debug')) throw new Exception($ex->getMessage());\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "30304095f2e4cf8c9204f77719b2aa05", "score": "0.52498186", "text": "public static function getUserData() {\n if(is_array(self::$userData) && !empty(self::$userData)) {\n return (array) self::$userData;\n }\n \n $jsnUserData = self::getData('UsrSess');\n $userData = json_decode($jsnUserData);\n \n return self::$userData = (array) $userData;\n \n }", "title": "" }, { "docid": "b4efa4808e26e4461a5077d16f2eef8e", "score": "0.5228524", "text": "public function get_user_data() {\n if ($this->_data)\n {\n return $this->_data;\n }\n\n // Get data from Facebook\n $this->_data = $this->_facebook->api('/me');\n\n return $this->_data;\n }", "title": "" }, { "docid": "a0fbbc180039496c35c80d43e15ec30f", "score": "0.52228624", "text": "private function _load($id) {\n\t\tif ( $this->exists($id) ) {\n\t\t\t$sql = \"SELECT * FROM sessions WHERE seed = '\" . $id . \"'\";\n\t\t\t$q = $this->query($sql);\n\t\t\t$q = $q->fetch();\n\n\t\t\t$this->id = $q['seed'];\n\t\t\t$this->folder_path = $q['folder_path'];\n\t\t\t$this->interface_uri = $q['interface_uri'];\n\t\t\t$this->running = $q['running'];\n\t\t\t$this->last_query = $q['last_query'];\n\t\t\t$this->last_query_when = $q['last_query_when'];\n\t\t\t$this->current_net = $q['current_net'];\n\t\t\t$this->privacy = $q['privacy'];\n\t\t\t$this->owner = $q['owner'];\n\t\t\t$this->password = $q['password'];\n\t\t\tif ( '' === $q['password'] ) {\n\t\t\t\t$this->protected = FALSE;\n\t\t\t} else {\n\t\t\t\t$this->protected = TRUE;\n\t\t\t}\n\n\t\t\t$this->list_networks();\n\t\t\t$this->read_settings();\n\t\t}\n\t}", "title": "" }, { "docid": "4c747bed79cc7ef22d7fb34990059a83", "score": "0.52207947", "text": "public function loadUser($user_id){\n return user_load($user_id);\n }", "title": "" }, { "docid": "535ddc4cde12b50bb79e97539de5320a", "score": "0.5219045", "text": "public function getUserData()\n {\n $response = parent::getUserData();\n\n $query = array(\n 'access_token' => $response['access_token']\n );\n\n $url = $this->getOption('profileUrl') . '?' . http_build_query($query);\n\n $data = json_decode(file_get_contents($url));\n\n return array_merge($response, (array) $data->user);\n }", "title": "" }, { "docid": "d7e48259c1e9b57808819f74469d7fc8", "score": "0.5198974", "text": "public function loadRemoteGames()\n {\n $this->logger->addEntry('Requesting game data from Steam servers.');\n\n $gameData = null;\n $gameList = array();\n\n $gameData = @json_decode($this->util->file_get_contents_curl('http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=' . $this->config['key'] . '&steamid=' . $this->steamId . '&include_appinfo=1&include_played_free_games=1&format=json'), true)['response'];\n $this->db->prepare('INSERT INTO `steamAPIUsage` SET `module` = 2');\n $this->db->execute();\n\n\n if (!$gameData || isset($gameData['error']) || !isset($gameData['games'])) {\n throw new Exception('The game data could not be retrieved. The profile is probably set to private. Steam Completionist requires the profile to be set to \"Public\" in order to retrieve a list of games.');\n }\n\n $gameData = $gameData['games'];\n\n foreach ($gameData as $game) {\n\n // If a game has not been played or has no community stats, we need to set them to a default value to prevent undefined index messages\n $game['playtime_forever'] = isset($game['playtime_forever']) ? $game['playtime_forever'] : 0;\n $game['playtime_2weeks'] = isset($game['playtime_2weeks']) ? $game['playtime_2weeks'] : 0;\n $game['has_community_visible_stats'] = isset($game['has_community_visible_stats']) ? $game['has_community_visible_stats'] : false;\n\n // If we previously loaded this game locally we can carry over some parameters\n if (isset($this->games[$game['appid']])) {\n $game = new SteamGame($game['appid'],\n $this->config,\n $this->db,\n $this->logger,\n $this->util,\n $game['name'],\n $game['playtime_forever'],\n $game['playtime_2weeks'],\n $this->games[$game['appid']]->minutesStored,\n $this->games[$game['appid']]->gameSlot,\n $this->games[$game['appid']]->gameStatus,\n $this->games[$game['appid']]->achievementPercentage,\n $game['img_logo_url'],\n $game['img_icon_url'],\n $game['has_community_visible_stats'],\n $this->games[$game['appid']]->numOwned,\n $this->games[$game['appid']]->numBeaten,\n $this->games[$game['appid']]->numBlacklisted);\n } else {\n $game = new SteamGame($game['appid'],\n $this->config,\n $this->db,\n $this->logger,\n $this->util,\n $game['name'],\n $game['playtime_forever'],\n $game['playtime_2weeks'],\n 0,\n null,\n 0,\n 0,\n $game['img_logo_url'],\n $game['img_icon_url'],\n $game['has_community_visible_stats'],\n 1,\n 0,\n 0);\n }\n\n $game->saveGame($this->steamId);\n $gameList[$game->appId] = $game;\n }\n\n $removedGames = array_diff_key($this->games, $gameList);\n\n /** @var SteamGame $value */\n foreach ($removedGames as $value) {\n if ($value->gameSlot) {\n $this->setSlot($value->appId, 0);\n }\n $this->deleteList[$value->appId] = $value;\n $value->deleteGame($this->steamId);\n }\n\n $this->games = $gameList;\n $this->logger->addEntry('Retrieved game data from steam servers.');\n }", "title": "" }, { "docid": "57f0d90f8023e9e2f89dee3c334c3fa9", "score": "0.5190794", "text": "function initUser() {\n\t\t if (!isset($_SESSION['sessionPL'])) {\n\t\t $pl = new jzPlaylist();\n\t\t $pl->id = \"session\";\n\t\t $pl->name = \"Session Playlist\";\n\t\t $_SESSION['sessionPL'] = serialize($pl);\n\t\t }\n\t\t if (!isset($_SESSION['sid'])) {\n\t\t $_SESSION['sid'] = uniqid('S'); // a shorter SID than session_id().\n\t\t }\n\t\t}", "title": "" }, { "docid": "44706b55457bfddf0ad0ed3540ba8bb6", "score": "0.518864", "text": "public static function load_data(&$user_info, &$user_settings)\n\t{\n\t\tif(is_callable('geoip_db_avail'))\n\t\t\t$user_info['region'] = geoip_record_by_name($user_info['ip']);\n\t}", "title": "" }, { "docid": "7fc37a30d7f2b5e4e730057e36064395", "score": "0.5183394", "text": "function initData() {\n\n\t\tif ($this->unregisteredUserId) {\n\t\t\t$unregisteredUsersDao = new UnregisteredUsersDAO();\n\t\t\t$unregisteredUser = $unregisteredUsersDao->getById($this->unregisteredUserId, $this->contextId);\n\t\t\t$this->setData('firstName', $unregisteredUser->getFirstName());\n\t\t\t$this->setData('lastName', $unregisteredUser->getLastName());\n\t\t\t$this->setData('email', $unregisteredUser->getEmail());\n\t\t\t$this->setData('notes', $unregisteredUser->getNotes());\n\t\t\t$this->setData('ompUsername', $unregisteredUser->getOMPUsername());\n\t\t}\n\t}", "title": "" }, { "docid": "91e7caeaff00171dd1128f1d3f295838", "score": "0.5178836", "text": "private function load()\n\t{\n\t\t$iterator = new DirectoryIterator(Zend_Registry::get('config')->get('minecraft')->get('worldPath') . '/world/players/');\n\t\t\n\t\tforeach ($iterator as $fileinfo)\n\t\t{\n\t\t\tif ($fileinfo->isFile())\n\t\t\t{\n\t\t\t\t$player = new Application_Model_Player();\n\t\t\t\t\n\t\t\t\tif ($player->load($fileinfo->getBasename('.dat'))) {\n\t\t\t\t\t$this->_players[] = $player;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.5173488", "text": "public function load();", "title": "" }, { "docid": "222cb7b6f7bb8b86374882220936eeb9", "score": "0.5172887", "text": "function loadSession()\n{\n\tif (!$this->sessName) return;\n\t$s = $this->app->getSession($this->sessName);\n\n\t$this->values = array_get($s, 'values');\n\t$this->invalid = array_get($s, 'invalid');\n}", "title": "" }, { "docid": "d8af4f2541b037d9223bc3d03add8889", "score": "0.5172652", "text": "public function getUser()\n {\n\n $url = \"https://api.medium.com/$this->version/me\";\n\n $this->request->get($url);\n\n $api_response = json_decode($this->request->response, true);\n\n if (isset($api_response[\"data\"]) && !empty($api_response[\"data\"])) {\n\n $this->user = $api_response[\"data\"];\n\n } else {\n\n // Access token probably isn't set.\n\n // string(67) \"{\"errors\":[{\"message\":\"An access token is required.\",\"code\":6000}]}\"\n\n }\n\n }", "title": "" }, { "docid": "e472c9cc630fc93221506006ee8cc503", "score": "0.5172026", "text": "function getUserData()\n {\n $state = $_SESSION['state'];\n \n // Set our GET request URL\n $getURL = $state->instanceURL . '/services/data/v20.0/sobjects/User/' . $state->userId . '?fields=Name,Email,ContactId,contact.name,contact.number_of_friends__c,contact.Facebook_picture__c';\n \n // Header options\n $headerOpts = array('Authorization: Bearer ' . $state->token);\n \n // Open connection\n $ch = curl_init();\n \n // Set the url and header options\n curl_setopt($ch, CURLOPT_URL, $getURL);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headerOpts);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n \n // Execute GET\n $result = curl_exec($ch);\n \n // Close connection\n curl_close($ch);\n \n // Get the results\n $typeString = gettype($result);\n $resultArray = json_decode($result, true);\n \n // Return them as an html String\n $rtnString = '<hr><h2>User Data</h2>';\n \n foreach($resultArray as $key=>$value) \n { \n $rtnString .= \"<pre>$key=$value</pre>\";\n }\n\n $rtnString .= \" \" . $result;\n \n return $rtnString;\n }", "title": "" }, { "docid": "22de98ed2594aa1888d8aa7bf18a1070", "score": "0.51538706", "text": "function loadUser($user_id) {\r\n return getUserById($user_id);\r\n }", "title": "" }, { "docid": "baf74efe1d4cea01f304f9249bb6e166", "score": "0.5147567", "text": "private static function _getUserData()\n {\n Channels::includeSystem('User');\n $userid = User::getCurrentUserid();\n if ($userid === 0) {\n $userid = NULL;\n }\n\n include_once 'Libs/String/String.inc';\n $ret = array(\n 'userid' => $userid,\n 'time' => String::tsIso8601(time()),\n );\n\n return $ret;\n\n }", "title": "" }, { "docid": "0e9f0252a40a1d4d511008cebdfbd8d5", "score": "0.51467013", "text": "public function load()\n {\n if (file_exists($this->file_name)) {\n $encoded_string = file_get_contents($this->file_name);\n\n if ($encoded_string !== false) {\n $this->data = json_decode($encoded_string, true);\n }\n }\n }", "title": "" }, { "docid": "b36935d4fd4fd079f210c8ea06379107", "score": "0.5146166", "text": "public static function loadCurrentUser()\n {\n $objCurrentUser = null;\n if (isset($_SESSION['user.id'])) {\n $objCurrentUser = static::loadById($_SESSION['user.id']);\n }\n \n return $objCurrentUser;\n }", "title": "" }, { "docid": "d8be798f22e448e6b2af783261348224", "score": "0.5144801", "text": "protected function ParseSession()\n {\n try\n {\n $this->local_user = $this->localUserGateway->findUserByUsrID($this->Session->getUsrId());\n }\n catch (\\Exception $e)\n {\n $this->local_user = null;\n }\n }", "title": "" }, { "docid": "e62c13e0697c7b40d50fe5c47a678526", "score": "0.5138828", "text": "public function loadData(Mage_Core_Model_Store $store)\n {\n /** @var Mage_Admin_Model_User $user */\n /** @noinspection PhpUndefinedMethodInspection */\n $user = Mage::getSingleton('admin/session')->getUser();\n /** @var Nosto_Tagging_Helper_Url $urlHelper */\n $urlHelper = Mage::helper('nosto_tagging/url');\n /** @var Nosto_Tagging_Helper_Data $dataHelper */\n $dataHelper = Mage::helper('nosto_tagging/data');\n $this->_firstName = $user->getFirstname();\n $this->_lastName = $user->getLastname();\n $this->_email = $user->getEmail();\n $this->_languageIsoCode = substr(\n Mage::app()->getLocale()->getLocaleCode(), 0, 2\n );\n $this->_languageIsoCodeShop = substr(\n $store->getConfig('general/locale/code'), 0, 2\n );\n $this->_uniqueId = $dataHelper->getInstallationId();\n $this->_previewUrlProduct = $urlHelper->getPreviewUrlProduct($store);\n $this->_previewUrlCategory = $urlHelper->getPreviewUrlCategory($store);\n $this->_previewUrlSearch = $urlHelper->getPreviewUrlSearch($store);\n $this->_previewUrlCart = $urlHelper->getPreviewUrlCart($store);\n $this->_previewUrlFront = $urlHelper->getPreviewUrlFront($store);\n $this->_shopName = $store->getName();\n }", "title": "" }, { "docid": "1e7dcf6ac2b83f3875f326d9ee638b8f", "score": "0.51298106", "text": "protected function mapUserData()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bd99e622fd1d76d1436ce596e9ec06a2", "score": "0.5125071", "text": "public function getUserData(){\n\t\treturn $this -> user_data;\n\t}", "title": "" }, { "docid": "00b7869510d69037d68b13220d1c54ea", "score": "0.51243424", "text": "public function loadUsers()\n {\n $users = array();\n $keyFilePaths = $this->findKeyFiles();\n\n foreach ($keyFilePaths as $keyFilePath) {\n $parsed = User::parseKeyFilename(basename($keyFilePath));\n if ($parsed) {\n $username = $parsed['username'];\n if (!isset($users[$username])) {\n $users[$username] = $this->loadUser($parsed['username']);\n }\n }\n }\n\n return $users;\n }", "title": "" }, { "docid": "9be3d01debed6258b6f13642bb3d15bb", "score": "0.5123542", "text": "public static function & currentUserData( )\n\t{\n\t\treturn storageGet(\"UserData\");\n\t}", "title": "" }, { "docid": "f40283752dcd2c0a656733948b36428d", "score": "0.5107137", "text": "private function loadUserModules() {\n\t\t$this->logger->log('INFO', \"Loading USER modules...\");\n\t\tforeach ($this->moduleLoadPaths as $path) {\n\t\t\t$this->logger->log('DEBUG', \"Loading modules in path '$path'\");\n\t\t\tif (file_exists($path) && $d = dir($path)) {\n\t\t\t\twhile (false !== ($moduleName = $d->read())) {\n\t\t\t\t\tif ($this->isModuleDir($path, $moduleName)) {\n\t\t\t\t\t\t$this->registerModule($path, $moduleName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$d->close();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fcbae71eac1138841dc987ab81399095", "score": "0.51070374", "text": "protected abstract function LoadData();", "title": "" }, { "docid": "e787406e4aec855a9b86e4ba70b1a2d5", "score": "0.51012164", "text": "protected function userSetup()\n {\n $query = $this->db->prepare($this->userSelectSQL . $this->whereClauseSQL);\n $sid = $this->getSID();\n $query->bindParam(\":id\", $sid);\n $query->execute();\n\n $this->userInfo = $query->fetch(PDO::FETCH_ASSOC);\n\n $query = $this->db->prepare($this->labelSelectSQL . $this->whereClauseSQL);\n $query->bindParam(\":id\", $sid);\n $query->execute();\n\n $this->userInfoLabel = $query->fetch(PDO::FETCH_ASSOC);\n\n //If the SID On the server changed, our fetch came up false\n if($this->userInfo === false){\n $this->logout();\n return;\n }\n\n $this->passHash = $this->userInfo['pass'];\n //We have to do some cleanup here so we don't accidentally expose any unwanted columns\n unset($this->userInfo['pass']);\n unset($this->userInfo['sid']);\n\n }", "title": "" }, { "docid": "b00182a1981d00ca43f05309fefa462d", "score": "0.5090278", "text": "public function loadSettings()\n {\n $serverManager = new System_Api_ServerManager();\n $this->setSettings( $serverManager->getSettings() );\n }", "title": "" }, { "docid": "9eb798e82f39533d55eed28c9c56b053", "score": "0.5086943", "text": "public static function userLoad($body) {\n global $db;\n $params = json_decode($body);\n $query = \"SELECT * from users\n WHERE userId = '\" . $params->UserId . \"'\";\n try {\n $result = $db->query($query);\n } catch (mysqli_sql_exception $e) {\n Response::error(400, $e->getMessage());\n }\n\n if($result->num_rows == 0){\n $response = [];\n Response::sendForceObject(200, $response);\n } else {\n $response['UserId'] = $params->UserId;\n $response['Data'] = array();\n while($row = $result->fetch_assoc()) {\n $dataKey = $row['dataKey'];\n $data = json_decode($row['data']);\n $response['Data'][$dataKey] = $data;\n }\n Response::sendForceObject(200, $response);\n }\n }", "title": "" }, { "docid": "f5caeac3e339f039549cee3b7815aa51", "score": "0.50830024", "text": "public function stash_user() {\n $user_data =\n $this->session->set_userdata(array(\n 'user_id' => $this->user_id,\n 'username' => $this->username,\n 'email' => $this->email,\n )\n );\n }", "title": "" }, { "docid": "829c7afe036b54059901a8a219185c94", "score": "0.5078198", "text": "private function getInfo() {\n\t\t$sql = \"SELECT * FROM \" . DB_PREFIX . \"users WHERE steamID='\"\n\t\t\t\t. $this->inputSteamID . \"';\";\n\t\t$query = $this->db->query($sql);\n\t\t$this->userInfo = $query->fetch_assoc();\n\n\t\t$this->steamID = $this->userInfo[\"steamID\"];\n\t\t$this->balance = $this->userInfo[\"balance\"];\n\t\t$this->inventory = json_decode($this->userInfo[\"inventory\"]);\n\t\t$this->locked = $this->userInfo[\"locked\"];\n\t}", "title": "" }, { "docid": "1024c2e95b1452987356a105f5674498", "score": "0.50742245", "text": "protected function sessionLoad()\n\t{\n\t\tif (isset($_SESSION['userid'])) {$_userID=$_SESSION['userid'];}\n\t\tif (isset($_SESSION['sessionkey'])) {$_sessionKey=$_SESSION['sessionkey'];}\n\t\t\n\t\t// -- validate session is authentic with session key\n\t\t//\n\t\tif ($_sessionKey != md5($_userID)) {\n\t\t\t$this->destroyUserSession(); // log user out\n\t\t\tthrow new \\Exception($this->__t->__('Invalid session key.'));\n\t\t}\n\t\t\n\t\t$this->set('userid',$_userID);\n\t\t$this->set('sessionkey',$_sessionKey);\n\t\tif (isset($_SESSION['firstname'])) {$this->set('firstname', $_SESSION['firstname']);}\n\t\tif (isset($_SESSION['fullname'])) {$this->set('fullname', $_SESSION['fullname']);}\n\t\n\t}", "title": "" }, { "docid": "4b8135461cadbb0ffe9cff5886e8a5db", "score": "0.50731176", "text": "function load_from_database () {\n $db = sql_db::load();\n $sql = \"SELECT * FROM \" . TABLE_USERS . \" WHERE user_id = '\" . $this->id . \"'\";\n if ( !($result = $db->sql_query($sql)) ) message_die(SQL_ERROR, \"Unable to query users\", '', __LINE__, __FILE__, $sql);\n if (!$row = $db->sql_fetchrow($result)) {\n $this->lastError = \"User unkwown: \" . $this->id;\n return false;\n }\n \n $this->load_from_row($row);\n \n return true;\n }", "title": "" }, { "docid": "096dec02cf60944b2df0d3dc771f2ecb", "score": "0.50725967", "text": "public static function load()\n\t{\n\t\t \n\t}", "title": "" }, { "docid": "1a5334648e7ab30b06282ba5b557c2c0", "score": "0.50693166", "text": "function load() {\n\t\t$return = false;\n\t\tif ( $this->getUserID() ) {\n\t\t\t$query = \"SELECT movieID FROM \".system::getConfig()->getDatabase('mofilm_content').'.userFavourites WHERE userID = :UserID ORDER BY sequence ASC';\n\t\t\t$tmp = array();\n\n\t\t\t$oStmt = dbManager::getInstance()->prepare($query);\n\t\t\t$oStmt->bindValue(':UserID', $this->getUserID());\n\t\t\tif ( $oStmt->execute() ) {\n\t\t\t\tforeach ( $oStmt as $row ) {\n\t\t\t\t\t$tmp[] = $row['movieID'];\n\t\t\t\t}\n\t\t\t\t$return = true;\n\t\t\t\t\n\t\t\t\tif ( count($tmp) > 0 ) {\n\t\t\t\t\t$this->_setItem(mofilmMovieManager::loadInstancesByArray($tmp));\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->setModified(false);\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "00c00d3d6e27a9c35b51b3f0ffa694ec", "score": "0.50688094", "text": "public static function retrieveData(){\n $myDataAccess = aUserDataAccess::getDataAccess();\n $myDataAccess->connectToDB();\n $myDataAccess->selectUsers();\n while($row = $myDataAccess->fetchUsers()){\n // Username, Password, FirstName, LastName, Salt, CreatedBy,ModifiedBy\n $currentUser =\n new self($myDataAccess->fetchUsername($row), $myDataAccess->fetchPassword($row), $myDataAccess->fetchFirstName($row), $myDataAccess->fetchLastName($row), $myDataAccess->fetchCreatedBy($row), $myDataAccess->fetchModifiedBy($row));\n //FETCH USER RELATED DATA\n $currentUser->m_UserID = $myDataAccess->fetchUserID($row);\n $currentUser->m_Created = $myDataAccess->fetchCreated($row);\n $currentUser->m_LastModified = $myDataAccess->fetchLastModified($row);\n $currentUserObjects[] = $currentUser;\n }\n $myDataAccess->closeDB();\n return $currentUserObjects;\n }", "title": "" }, { "docid": "f13b1dfe7a7f25d89c03d84a5e2f1f2d", "score": "0.5059692", "text": "function setup_smp_site_data() {\n\t\tif ( empty( $this->smp_site_data ) ) {\n\t\t\tinclude( BP_SMP_PLUGIN_DIR . 'includes/site-data.php' );\n\t\t\t$this->smp_site_data = new BP_SMP_Site_Data;\n\t\t}\n\t}", "title": "" }, { "docid": "59fb9de6f05578ade5a5eedf4e47a496", "score": "0.50545025", "text": "public function user(){\n $user = $this->curl->getUser($this->messaging->getSenderId());\n $this->user = new User($this->messaging->getSenderId(), $user['first_name'], $user['last_name']);\n }", "title": "" }, { "docid": "7b96aff73a956cddc19f327e47f0995e", "score": "0.5051068", "text": "function read_user ($data)\n\t{\n\t\t$attributes = $this->find_attributes ('user', $data);\n\t\t$user['id'] = $attributes['id'];\n\t\t$data = $this->strip ('user', $data);\n\t\twhile ($data)\n\t\t{\n\t\t\t$current = $this->find_element ($data);\n\t\t\tif (!$this->valid_child ($current[0], 'user'))\n\t\t\t{\n\t\t\t\tdie ('Invalid child element inside user element.');\n\t\t\t}\n\t\t\tif ('!--' != $current[0])\n\t\t\t{\n\t\t\t\t$result = $this->call_element ($current);\n\t\t\t\tif ('meta' == $current[0])\n\t\t\t\t{\n\t\t\t\t\t$user['meta'][$result['key']] = $result['value'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$user[$current[0]] = $result;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data = $this->remove_element ($current[1], $data);\n\t\t}\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "f659ce2c06848ed0d94a49384a7ff1c0", "score": "0.5048567", "text": "public function getUserData()\n\t{\n\t\treturn $this->session->getData(\"userData\");\n\t}", "title": "" }, { "docid": "e3e0fea804bfcb362a8918587d3009b2", "score": "0.5038614", "text": "public function init()\r\n\t{\r\n\t\t\r\n\t\t$this->userData = $this->db->fetchRow(\"SELECT \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id`, `username`, `name`, `vorname`, `email`, `status`, `deleted`, acl_module \r\n\t\t\t\t\t\t\t\t\t\t\t\tFROM \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t`\".TBL_USER.\"` \r\n\t\t\t\t\t\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\t\t\t\t\t `id` = '\".intval($this->uid).\"' AND\r\n\t\t\t\t\t\t\t\t\t\t\t\t `deleted` != '1'\r\n\t\t\t\t\t\t\t\t\t\t\t\");\r\n\t\t\r\n\t\t$arrACLs = explode('|', $this->userData['acl_module']);\r\n\t\t\r\n\t\tif (in_array('rd:1', $arrACLs)) $this->userData['rettungsdienst'] = '1';\r\n\t\telse $this->userData['rettungsdienst'] = false;\r\n\t\t\r\n\t\tif (in_array('eb:1', $arrACLs)) $this->userData['einsatzberichte'] = '1';\r\n\t\telse $this->userData['einsatzberichte'] = false;\r\n\t\t\r\n\t\tif (in_array('ebadm:1', $arrACLs)) $this->userData['einsatzberichte_admin'] = '1';\r\n\t\telse $this->userData['einsatzberichte_admin'] = false;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d7bdd968aa9ea60663f30241bd51a68f", "score": "0.5034809", "text": "private static function load_classic(){\n global $action;\n\n $parse_origin_url = parse_url($_SERVER['HTTP_ORIGIN']);\n\n if($parse_origin_url['host'] == SITE_DOMAIN){\n header('Access-Control-Allow-Origin: http://'.SITE_DOMAIN);\n }\n\n if($_SERVER['REQUEST_METHOD'] == 'OPTIONS')\n {\n header('Access-Control-Allow-Methods: POST, GET, OPTIONS');\n header('Access-Control-Allow-Headers: yks-client-tz,yks-jsx');\n header('Content-Type:text/plain');\n header('Content-Length: 0');\n die;\n }\n\n if(!isset(sess::$sess['user_id']))\n sess::renew(); //sess::$id is now set\n\n if($action == \"logout\" || $action==\"deco\") //yeah\n sess::logout();\n\n if(sess::$sess['session_ip'] != $_SERVER['REMOTE_ADDR'])\n auth_restricted_ip::reload();\n\n if($_COOKIE['user_id'] && ($_COOKIE['user_id']!=sess::$sess['user_id']))\n auth_password::reload();\n\n if($action=='login') try {\n auth::login($_POST['user_login'], $_POST['user_pswd']);\n rbx::ok(\"&auth_success;\");\n } catch(Exception $e){ rbx::error(\"&auth_failed;\"); }\n\n if(!isset(sess::$sess['user_access'])) try {\n sess::reload();\n } catch(Exception $e){\n error_log(\"Unable to start user session. \".$e->getMessage());\n rbx::error(\"Unable to start user session.\");\n }\n }", "title": "" }, { "docid": "ff5f79e479741b241d3461047018e64e", "score": "0.5034627", "text": "protected function init() {\r\n\t\t$user = UserFactory::create();\r\n\t\tif (!isset($_SESSION['user_'.Dispatcher::inst()->activeSite['publicdir']]) ||\r\n\t\t get_class($user) != get_class($_SESSION['user_'.Dispatcher::inst()->activeSite['publicdir']])) {\r\n\t\t\t$user->cookieLogin();\r\n\t\t\t$this->user = $user;\r\n\t\t} else {\r\n\t\t\t$this->user = $_SESSION['user_'.Dispatcher::inst()->activeSite['publicdir']];\r\n\t\t}\r\n\r\n\t\tMessageQueue::unserialize();\r\n\r\n\t\t$headers = apache_request_headers();\r\n\t\tif ((isset($headers['Cache-Control']) && $headers['Cache-Control'] == 'no-cache') ||\r\n\t\t (isset($headers['Pragma']) && $headers['Pragma'] == 'no-cache')) {\r\n\t\t\t$this->refresh();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c9532d440fc8195eff3e406616151ace", "score": "0.503113", "text": "public function userData()\n {\n return User::construct($this->user);\n }", "title": "" }, { "docid": "c2dd6abe74a8a1458c92a89ed3e9977f", "score": "0.5021583", "text": "public static function loadUserCli()\r\n {\r\n $aData = array(\r\n 'user_id' => '0',\r\n 'login' => '',\r\n 'nom' => 'userCli',\r\n 'prenom' => 'userCli',\r\n 'mail' => '',\r\n 'phone' => '',\r\n 'mobile' => '',\r\n );\r\n\r\n // Save user_id recorder in database into user object\r\n $oAuthUser = new Phoenix_Auth_User_Cli($aData);\r\n // Persist user object\r\n Zend_Auth::getInstance()->getStorage()->write($oAuthUser);\r\n return $oAuthUser;\r\n }", "title": "" }, { "docid": "26065df26f61f061f84be355f7ef56d8", "score": "0.5020014", "text": "protected function get_user_meta()\n {\n $this->api = get_user_blog_meta($this->ID, \"_api\");\n $this->cid = get_user_blog_meta($this->ID, \"_cid\");\n $this->sid = get_user_blog_meta($this->ID, \"_sid\");\n $this->coaches = get_user_blog_meta($this->ID, \"_coaches\"); // cid based\n $this->token = get_user_blog_meta($this->ID, \"_token\");\n $this->avatar = get_user_blog_meta($this->ID, '_teamos_profile_avatar');\n $this->title = get_user_blog_meta($this->ID, '_teamos_profile_title');\n $this->client_admin = get_user_blog_meta($this->ID, '_teamos_admin_user');\n $this->billing_user = get_user_blog_meta($this->ID, '_teamos_billing_user');\n $this->join_date = get_user_blog_meta($this->ID, '_join_date');\n\n // this is also a per blog value\n $this->disabled = teamos_user_is_disabled($this->ID);\n }", "title": "" }, { "docid": "7043c3bccf81a9b9a444f58543ca2a9c", "score": "0.5019742", "text": "private function loadUser(){\n \t$query = 'SELECT * FROM ' . $this->prefix . 'user WHERE user_id = ' . $this->user_id . ' LIMIT 1';\n \t$result = db_query($query);\n\n $user_found = false;\n \twhile($row = mysqli_fetch_array($result)){\n $user_found = true;\n \t\t$this->user_username = $row['user_username'];\n \t\t$this->user_password = $row['user_password'];\n \t\t$this->user_nickname = $row['user_nickname'];\n $this->user_group = $row['user_group'];\n $this->user_level = $row['user_level'];\n \t}\n\n return $user_found;\n }", "title": "" }, { "docid": "a89455356cf2dcad3b1eff823d186ec5", "score": "0.50030756", "text": "protected function actLoaduserproperties() {\n $lUser = $this->getReq('user');\n $lDoc = $this->getReq('doc');\n\n $lArr = explode('/', $lDoc);\n $lJid = $lArr[1];\n $lVer = explode('_', $lArr[2]);\n $lVer = intval($lVer[1]);\n\n $lFiles = new CApi_Dalim_Files('art', $lJid);\n $lJnr = intval($lJid);\n $lMax = $lFiles->getMaxVersion($lJnr.'.pdf');\n\n $lProp = new CInc_Api_Dalim_Userproperties();\n if ($lMax > $lVer) {\n $lProp->setReaderAccess();\n }\n $this->doLog('loadUserProp on '.$lDoc.' Version '.$lVer.' Max '.$lMax);\n\n $this->doLog($lProp->getContent());\n echo $lProp->getContent();\n }", "title": "" }, { "docid": "ae9799cdbd61c8eb8202656c375b08eb", "score": "0.500237", "text": "function init_profiles() {\r\n\t\tinclude(\"profileManager.php\");\r\n\t}", "title": "" }, { "docid": "e313831c1db4cf1726fcd0a94ff2677b", "score": "0.49990246", "text": "function load_user($uid) {\n\t$users = load_array('nsh_users','uid',$uid);\n\tsort($users);\n\treturn $users[0];\n}", "title": "" }, { "docid": "2079b25390eba65f002049b20d4b146a", "score": "0.49863443", "text": "public function getUserData()\n {\n return $this->userData;\n }", "title": "" }, { "docid": "e9a2071a4216644df1bd3fa3242bcead", "score": "0.49783677", "text": "function ___users () {\r\n\r\n /* basically, here's what happens; this method attaches itself to\r\n * the XS_USERS event (the stack event that purports to deal with\r\n * users), firing off this on_user_blank event. Plugins\r\n * will listen out for this event, and feed data back if they feel\r\n * it's the right thing to do. Our callback functions will fetch\r\n * the data (credentials, mostly) and deal with it in order. */\r\n\r\n if ( $this->debug ) debug('___users()','IN') ;\r\n \r\n // First, have we switched on DEV? (development mode)\r\n if ( isset ( $this->glob->config['dev_user_management']['DEV'] ) &&\r\n $this->glob->config['dev_user_management']['DEV'] ) {\r\n\r\n $r = $this->glob->config->parse_section ( 'dev_user_management', 'user/' ) ;\r\n\r\n if ( isset ( $r['user'] ) )\r\n \r\n foreach ( $r['user'] as $user => $property )\r\n\r\n $this->users[$user] = array (\r\n 'name' => $property['@name'],\r\n 'password' => $property['@password'] ,\r\n 'roles' => isset ( $property['@roles'] ) ? $property['@roles'] : null ,\r\n 'group' => isset ( $property['@group'] ) ? $property['@group'] : null ,\r\n ) ;\r\n\r\n $this->glob->stack->add ( 'xs_users', $this->users ) ;\r\n\r\n }\r\n\r\n // Log it\r\n // $this->glob->seclog->logInfo ( '['.$this->glob->user->username.\"] xs_User->___users () BEGIN :\" ) ;\r\n\r\n // Second, set up a generic query for the session\r\n $this->glob->data->register_query (\r\n\r\n // we're using the 'session' data source\r\n 'session',\r\n\r\n // Let's call it something recognizable\r\n 'session_user_credentials',\r\n \r\n // we won't be using a pre-defined template\r\n null,\r\n\r\n // and no cache\r\n null\r\n ) ;\r\n \r\n // debug($_SESSION);\r\n // debug($this);\r\n \r\n // fire a blanking user credential event to start the\r\n // workflow for the user authentication\r\n $this->_fire_event ( 'on_user_blank' ) ;\r\n\r\n // if ( $this->debug ) debug('___users()','OUT') ;\r\n }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "835b3948f0e7c883af5a6a452c414c9f", "score": "0.0", "text": "public function run()\n {\n \t$sport_ids = collect(range(1,2));\n foreach(range(2, 11) as $index) {\n \t$sport_id = $sport_ids->random();\n \tSportPlayer::create([\n \t\t'user_id' => $index,\n \t\t'sport_id' => $sport_id,\n \t\t'name' => $sport_id. '_for_user_'.$index,\n \t\t'private_name' => $sport_id. '_for_user_'.$index\n \t]);\n }\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": "6242c83182914af1dca6a8760034eb1d", "score": "0.8013324", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $ross = User::create([\n 'email' => 'rossjbartlett@gmail.com',\n 'name' => 'Ross Bartlett',\n 'password' => Hash::make('password')\n ]);\n\n $dyl = User::create([\n 'email' => 'timeparadox98@gmail.com',\n 'name' => 'Dylan Gordon',\n 'password' => Hash::make('password')\n ]);\n\n Interest::create([\n 'user_id'=>$ross->id,\n 'interest'=>'Calgary Flames'\n ]);\n Interest::create([\n 'user_id'=>$ross->id,\n 'interest'=>'Rugby'\n ]);\n\n Like::create([\n 'user_id'=>$ross->id,\n 'item'=>'rVynOFlmK_Q',\n 'platform'=> 0 //youtube\n ]);\n\n\n }", "title": "" }, { "docid": "189174cea9e9e7145c489e18fd0089a4", "score": "0.79804534", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::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 < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\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": "b0c4f271872f35f165325de519bb487f", "score": "0.7976992", "text": "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "37a0b6a3e76804710ff7c9469eab40c2", "score": "0.79632276", "text": "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n factory(App\\User::class, 1)->create();\n factory(App\\Supplier::class, 10)->create();\n $categories = factory(App\\Category::class, 5)->create();\n \t$categories->each(function ($category) {\n factory('App\\SubCategory', 2)->create(['category_id' => $category->id]);\n });\n factory(App\\Warehouse::class, 5)->create();\n factory(App\\Employee::class, 10)->create();\n factory(App\\Customer::class, 10)->create();\n factory(App\\Income::class, 10)->create();\n factory(App\\Expense::class, 10)->create();\n factory(App\\Product::class, 20)->create();\n factory(App\\Purchase::class, 5)->create();\n factory(App\\Sale::class, 5)->create();\n }", "title": "" }, { "docid": "c8b0d4df0b00483f5e354b9b76b4f370", "score": "0.7955267", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Réén Pock',\n 'email' => 'poock@poock.com',\n 'password' => bcrypt('123456')\n ]);\n factory(Category::class, 5)->create();\n factory(Product::class, 100)->create()->each(function($product){\n for ($i=0; $i < 3; $i++) { \n $product->categories()->attach(Category::inRandomOrder()->first()->id);\n }\n });\n }", "title": "" }, { "docid": "810e2984e6eded128ac32a3c06fe3e23", "score": "0.7949612", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "title": "" }, { "docid": "338cba437c44387add3ca68b7433a1d6", "score": "0.794459", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "title": "" }, { "docid": "33dbfbc00700305306745acd24e39069", "score": "0.7938189", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "title": "" }, { "docid": "ff581332117c5a8ceb165939e5861a64", "score": "0.79368967", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "title": "" }, { "docid": "a3350553b93dfb0209ddf6ddfd533d8d", "score": "0.79337025", "text": "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => 'simpleadressemail@mail.com', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "title": "" }, { "docid": "fa8f6aeb20ad773ecabd02bb875a6c88", "score": "0.79219097", "text": "public function run()\n {\n //\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n DB::table('sections')->truncate();\n\n Section::create([\n 'id' => 1,\n 'name' => 'Lifestyle Habits',\n 'description' => 'This section focuses on lifestyle and habits of a patient']);\n Section::create([\n 'id' => 2,\n 'name' => 'Family History',\n 'description' => 'This section focuses on medical history of family of a patient']);\n Section::create([\n 'id' => 3,\n 'name' => 'Complaints',\n 'description' => 'This section deals with recent complaints of pateint']);\n Section::create([\n 'id' => 4,\n 'name' => 'Clinical Examination',\n 'description' => 'This section deals with various clinical reports of a patient']);\n \n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n }", "title": "" }, { "docid": "d683182ec8b2d791dddbb2f54ba8f8b3", "score": "0.7919681", "text": "public function run()\n {\n //Assign dummy Roles for users with in UsersTableSeeder\n DB::table('roles')->insert([\n 'title' => 'Admin',\n ]);\n\n DB::table('roles')->insert([\n 'title' => 'Employee',\n ]);\n\n //assigned user a Role\n DB::table('role_user')->insert([\n 'role_id' => '1',\n 'user_id' => '1',\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => '2',\n 'user_id' => '2',\n ]);\n\n $faker = Faker::create();\n foreach (range(3, 20) as $index) {\n DB::table('role_user')->insert([\n 'role_id' => rand(1, 2),\n 'user_id' => $index,\n ]);\n }\n }", "title": "" }, { "docid": "22408a54239aeef49683358b8f38db07", "score": "0.7906679", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // create categories\n \t$categories = factory('App\\Category', 10)->create();\n // create posts\n $posts = factory('App\\Post', 50)->create();\n // fore each post, populate 1-3 cates\n $posts->each(function ($post) use ($categories) {\n \t$post->categories()->attach(\n \t\t$categories->random(rand(1, 3))->pluck('id')->toArray()\n \t);\n });\n }", "title": "" }, { "docid": "64ddc727eef6e28c29db4c4be58c3578", "score": "0.78924936", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "title": "" }, { "docid": "4f1d5d37635c3d5345f27254da911e96", "score": "0.78846294", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n \\App\\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 < 15; $i++) {\n \\App\\Article::create([\n 'title' => $faker->sentence,\n 'content' => $faker->paragraphs($nb = 4, $asText = true),\n 'author' => $faker->name,\n 'num_views' => $faker->randomNumber($nbDigits = 4),\n 'publish_state' => $faker->boolean,\n 'publish_date' => ($faker->dateTimeThisYear($max = 'now'))->format('c')\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": "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' => 'macs@ifpe.edu.br',\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": "e78ec24a86879882dd348d32e57ca04d", "score": "0.7877498", "text": "public function run()\n {\n /* factory(\\App\\Models\\Category::class, 5)->create()->each(function ($category) {\n factory(\\App\\Models\\Category::class, random_int(0, 3))->create(['parent_id' => $category->id]);\n });\n\n factory(App\\Models\\User::class, 10)->create()->each(function ($user) {\n factory(App\\Models\\Post::class, random_int(0, 10))->create(['user_id' => $user->id])->each(function ($post) {\n $post->postContent()->save(factory(PostContent::class)->make());\n });\n });\n\n DB::table('users')->where('id', 1)->update(['user_name' => 'tiny', 'email' => 'tiny@test.com', 'locked_at' => null]);\n\n $this->call(PermissionsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(TypesTableSeeder::class);*/\n $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "5b880595ea5798cabac1baebe896e5e7", "score": "0.7871811", "text": "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "title": "" }, { "docid": "17dca3224f1ceff9e07014643cc0ecc7", "score": "0.78660107", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n /* role seeder */\n DB::table('roles')->insert([\n 'id' => 1,\n 'title' => 'Customer',\n ]);\n\n DB::table('roles')->insert([\n 'id' => 2,\n 'title' => 'Seller',\n ]);\n\n \n /* seller category seeder */\n factory(App\\SellerCategory::class, 10)->create();\n\n /* user seeder */\n factory(App\\User::class, 20)->create();\n\n /* request seeder */\n factory(App\\Request::class, 10)->create();\n }", "title": "" }, { "docid": "900d2a6c98a63207bb98e4476f29b982", "score": "0.7853861", "text": "public function run()\n {\n DB::table('users')->truncate();\n DB::table('roles')->truncate();\n\n // $this->call(UsersTableSeeder::class);\n Role::create([\n 'name' => 'admin'\n ]);\n Role::create([\n 'name' => 'author'\n ]);\n Role::create([\n 'name' => 'user'\n ]);\n User::create([\n 'name' => 'Admin',\n 'email' => 'admin@test.com',\n 'password' => bcrypt('test12345'),\n 'role' => 1\n ]);\n User::create([\n 'name' => 'User',\n 'email' => 'user@test.com',\n 'password' => bcrypt('test12345'),\n ]);\n \n $this->call([\n DishCategorySeeder::class,\n DishesSeeder::class\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' => 'shayna.sylvia@gmail.com',\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": "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": "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": "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": "16547d5faa64dc71264cbf37cd0a5a22", "score": "0.7819104", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "title": "" }, { "docid": "7e80466dc8005ac35863dfc3e5c7c169", "score": "0.7817918", "text": "public function run()\n {\n User::create([\n 'name' => 'Administrator',\n 'email' => 'admin@admin.com',\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": "405076a95a7f251d6fa3259dc0d9fb6a", "score": "0.7811153", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n // factory(Category::class, 25)->create();\n factory(Category::class, 10)->create();\n factory(Post::class, 50)->create();\n factory(Video::class, 5)->create();\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": "7c1b3b143dd76d76cb8edbf417f06a8e", "score": "0.7806364", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n // create 6 users\n // User::factory(1)->create()->each(function ($user){\n\n // // create 15 posts for each user\n // $post = Post::factory(1)->create()->each(function ($post){\n // // /create 5 comments for each post\n // $comment = Comment::factory(1)->make();\n // $post->comments()->saveMany($comment);\n // });\n // $user->posts()->saveMany($post);\n // }); \n \n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n User::truncate();\n Post::truncate();\n Comment::truncate();\n User::factory(10)->create();\n Post::factory(50)->create();\n Comment::factory(100)->create();\n // Enable it back\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n \n }", "title": "" }, { "docid": "3a3dbeb16bee414c118c000c37fbbdf7", "score": "0.7802872", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "title": "" }, { "docid": "84a2fe5ce7256b53cae2bd09c99e6aaf", "score": "0.7802348", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => 'programmerlemar@gmail.com',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "title": "" }, { "docid": "b2a340012128cdc0ce9898ea0cc3c209", "score": "0.77989215", "text": "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> 'admin@example.com',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\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": "461c8a228780b7db8fef36082242e109", "score": "0.7795819", "text": "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "title": "" }, { "docid": "706ff7ec69aebe11396b7ff7e05d374c", "score": "0.77862066", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => 'admin@admin.com',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\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": "e9a395588cf010ce0bc08d6b3e36927d", "score": "0.7777486", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\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' => 'admin@example.com',\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": "10bba340ceff4aa7654e77f3264df8b2", "score": "0.7765202", "text": "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\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 ]);\n }\n\n\n }", "title": "" }, { "docid": "e4a3f3c54eb1dbfbeaf14daf25634bfc", "score": "0.7762492", "text": "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "title": "" }, { "docid": "0350e1fc9ed9c9553317db568c12e5ba", "score": "0.77623445", "text": "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "title": "" }, { "docid": "80029eda94306be7dd06321a86e96e4f", "score": "0.77621746", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "title": "" }, { "docid": "2f5b59082890fe6ed7dc8f5c50b7611e", "score": "0.77610433", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // seed users\n factory(\\App\\User::class, 1)->create(['name' => 'test', 'email' => 'test@abv.bg', 'password' => bcrypt('test')]);\n factory(\\App\\User::class, 50)->create();\n\n // seed channels\n factory(\\App\\Channel::class, 20)->create();\n\n // seed threads\n factory(\\App\\Thread::class, 10)->create();\n\n // seed replies\n factory(\\App\\Reply::class, 10)->create();\n\n\n }", "title": "" }, { "docid": "7124f0c07efbf29272763999a735a94f", "score": "0.77606887", "text": "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \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' => 'admin@gmail.com',\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": "6f031bf4bd571edf71627cb6a09568cd", "score": "0.77596676", "text": "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\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": "b8c622da980d0f20206cf3c497b69940", "score": "0.7754705", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n Role::truncate();\n User::truncate();\n DB::table('category_posts')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Post::flushEventListeners();\n Comment::flushEventListeners();\n Game::flushEventListeners();\n Newsletter::flushEventListeners();\n Client::flushEventListeners();\n // $this->call(UsersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n // factory(User::class, 50)->create();\n $this->call(BannersTableSeeder::class);\n $this->call(BasicsTableseeder::class);\n $this->call(SocialsTableseeder::class);\n $this->call(ContactInformationsTableseeder::class);\n $this->call(ClientsTableseeder::class);\n $this->call(AboutsTableseeder::class);\n $this->call(ContactusSeeder::class);\n $this->call(NewslettersSeeder::class);\n $this->call(GamesSeederTable::class);\n $this->call(PagesTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);\n $this->call(CategoryPostsTableSeeder::class);\n $this->call(GalleriesTableSeeder::class);\n\n Schema::enableForeignKeyConstraints();\n \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": "c74d696e8998a24c61e719b8157653fa", "score": "0.772796", "text": "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "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": "aee9f58c36821ccc960ba32ca0f7c676", "score": "0.77264154", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\Kategorija::class, 10)->create();\n factory(App\\Proizvod::class, 50)->create();\n\n foreach(Proizvod::all() as $proizvod)\n {\n $proizvod->kategorije()->sync(kategorija::pluck('id')->random(rand(1,5)));\n $proizvod->save();\n }\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' => 'demo@gmail.com',\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": "01970702dcc3d254417ea716f48f61ba", "score": "0.77157193", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(ProductsTableSeeder::class);\n $this->call(SettingTableSeeder::class);\n // DB::table('orders')->insert([\n // 'name' => 'Tran Minh Luan',\n // 'address' => 'So 19, duong 13',\n // 'number' => '0163375305',\n // 'products' => 'lamp'\n // ]);\n //$this->call(OrdersTableSeeder::class);\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 = 'jesus.ra98@hotmail.com';\n $user->password = Hash::make('jamon123');\n $user->save();\n }", "title": "" }, { "docid": "006d108790ce64b4ef4a883f12760a4c", "score": "0.77140933", "text": "public function run()\n {\n $this->call(GenreSeeder::class);\n \\App\\Models\\User::factory(20)->create();\n \\App\\Models\\User::factory()->create([\n 'username' => 'admin',\n 'name' => 'Admin User',\n 'email' => 'admin@example.com',\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', //password\n 'is_admin' => true\n ]);\n \\App\\Models\\Movie::factory(100)->create();\n \\App\\Models\\Review::factory(1000)->create();\n \\App\\Models\\Celeb::factory(100)->create();\n \\App\\Models\\CelebMovie::factory(500)->create();\n \\App\\Models\\GenreMovie::factory(200)->create();\n \\App\\Models\\MovieUser::factory(100)->create();\n }", "title": "" }, { "docid": "b775152e814ada39237f6d02a27c5392", "score": "0.77140456", "text": "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "title": "" }, { "docid": "49da62fe0218d7ae61e34a8c8728ab7e", "score": "0.771243", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::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 Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\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": "deefe59dca3f24e874dfffb1bb15beeb", "score": "0.7704354", "text": "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "title": "" }, { "docid": "c3bf798056554c74cc9ea30b5654cf7d", "score": "0.7704061", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\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": "36020ec2fbcaf681814118ed22133007", "score": "0.77008796", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::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 News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "title": "" }, { "docid": "b44c7d8fac5a941c491e731eceea38f2", "score": "0.76985973", "text": "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\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": "ada5d5fc3637b7a815b289340c1ad5fe", "score": "0.76982635", "text": "public function run()\n {\n $users = $this->getSeedUsers();\n $size = count($users);\n for ($i = 0; $i < $size; $i++) {\n DB::table('users')->insert($users[$i]);\n }\n\n $court = $this->getSeedCourt();\n DB::table('courts')->insert($court);\n\n $reserves = $this->getSeedReserves();\n $size = count($reserves);\n for ($i = 1; $i <= $size; $i++) {\n DB::table('reserves')->insert($reserves[$i]);\n }\n\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": "eae1af9587a5c752d73027a3d713fa13", "score": "0.76964504", "text": "public function run()\n {\n User::firstOrCreate([\n 'email' => 'admin@admin.com'\n ], [\n 'name' => 'admin',\n 'password' => Hash::make('admin'),\n ]);\n\n $users =\\App\\Models\\User::factory(1)->create();\n $schools =\\App\\Models\\School::factory(10)->create();\n $employee = \\App\\Models\\Employee::factory(100)->make(['school_id' => null])->each(function ($employee) use($schools){\n $employee->school_id = $schools->random()->id;\n $employee->save();\n\n });\n }", "title": "" }, { "docid": "45367153bbaff6732338651be0b5630f", "score": "0.7696405", "text": "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => 'rognales@gmail.com',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => 'sonic21danger@gmail.com',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "title": "" }, { "docid": "1a75d4c49ea06f308772e6345b798116", "score": "0.7695935", "text": "public function run()\n {\n //metodo para eiminar una carpeta en storage antes de ejecutar loos seeders\n Storage::deleteDirectory('posts');\n //metodo para crear una carpeta en storage antes de ejecutar loos seeders\n Storage::makeDirectory('posts');\n\n //llamar al seeder de rolSeeder quiere decir el de roles\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Tag::factory(8)->create();\n $this->call(PostSeeder::class);\n \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": "016c973d20f43327498477b8b0832042", "score": "0.7692694", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => 'sovon.kucse@gmail.com']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "title": "" }, { "docid": "9c0db96925dc1f490c921bb00a04e003", "score": "0.7691264", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'abada@gmail.com',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','abada@gmail.com')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "title": "" }, { "docid": "7cfbc2c0b0ca1e8d2a8048e9780086c8", "score": "0.7690576", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => 'eddyjaair@gmail.com']);\n\n factory(Category::class, 5)->create();\n }", "title": "" }, { "docid": "1b46fa2a96790281813264fc3f8288b5", "score": "0.76882726", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "title": "" }, { "docid": "3cd1f7a4183660348d9343661c46ac18", "score": "0.7687553", "text": "public function run()\n {\n Eloquent::unguard();\n\n $path = 'resources/sql/seed.sql';\n DB::unprepared(file_get_contents($path));\n $manager = new User();\n $manager->username = 'root';\n $manager->email = 'root@root.com';\n $manager->password_hash = bcrypt('rootroot');\n $manager->date = '1920-01-01';\n $manager->user_role = 'Manager';\n $manager->id_image = 81;\n $manager->save();\n $user = new User();\n $user->username = 'johndoe';\n $user->email = 'john@doe.com';\n $user->address = 'John Doe Village';\n $user->password_hash = bcrypt('johndoe');\n $user->date = '1920-01-01';\n $user->user_role = 'Customer';\n $user->id_image = 81;\n $user->security_question = 'Socks';\n $user->save();\n $wishlist = new Wishlist();\n $wishlist->name = 'Favorites';\n $wishlist->id_user = $user->id;\n $wishlist->save();\n\n $this->command->info('Database seeded!');\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 admin@library.test and password secret\n User::truncate();\n User::create(array('name' => 'Administrator',\n 'email' => 'admin@library.test', \n 'password' => bcrypt('secret'),\n 'role' => 1)); \n }", "title": "" }, { "docid": "bba2ff1a30d0719e1aa8364f25fac587", "score": "0.7686844", "text": "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "title": "" }, { "docid": "39bb4261d54256e6189d729e7893cf92", "score": "0.7685065", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\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": "05fe3186975dd67e97302afe2c8d7e44", "score": "0.7683827", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "title": "" }, { "docid": "54370a0836434e352058b6fa0c527ca2", "score": "0.7678287", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => 'barbozagonzalesjose@gmail.com',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "title": "" }, { "docid": "202189ac5e6ae1c3d158da4dfad00e74", "score": "0.767549", "text": "public function run()\n {\n\t\t\tProject::truncate();\n\t\t\t\n\t\t\tfactory(Project::class, 20) -> create();\n\t\t\t/*$faker = Faker::create('en_US');\n\n\t\t\tfor($i = 0; $i < 10; $i++){\n\t\t\t\tProject::create([\n\t\t\t\t\t'title' => $faker -> name\n\t\t\t\t\t$table->string('title');\n\t\t\t\t\t$table->string('comment');\n\t\t\t\t\t$table->integer('min_price');\n\t\t\t\t\t$table->integer('max_price');\n\t\t\t\t\t$table->integer('category_id');\n\t\t\t\t\t$table->integer('user_id');\n\t\t\t\t\t$table->boolean('delete_flg');\n\t\t\t\t])\n\t\t\t}*/\n }", "title": "" }, { "docid": "4c4d418f65a57b515570be7482a92877", "score": "0.76726556", "text": "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "title": "" }, { "docid": "619d6d0bb4a4cea6758274cbd4639711", "score": "0.76711684", "text": "public function run()\n {\n // Use the factory to create a Faker\\Generator instance.\n $faker = \\Faker\\Factory::create('en_NG');\n\n /**\n * Loop through and insert the dummy data into the users table\n */\n for ($i = 0; $i < 10; $i++) {\n Interest::create([\n 'interest_description' => $faker->word(7),\n 'interest_name' => $faker->sentence(5)\n ]);\n }\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": "9f18c5c0d91d41c0a8c01c0872701c3c", "score": "0.76674765", "text": "public function run()\n {\n //Trucates exising records to start from scratch\n User::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n User::create([\n 'username'=> \"t@gml.com\",\n 'email' => \"t@gml.com\",\n 'password'=>bcrypt(\"t@gml.com\")\n ]);\n\n DB::table(\"activations\")->insert([\n 'user_id'=>1,\n 'code'=>'4rxpG9JWnDDTv3SNUHjsC3RsUwhlZgez',\n 'completed'=> 1,\n 'completed_at'=>Carbon::now(),\n 'created_at'=> Carbon::now(),\n 'updated_at'=> Carbon::now()\n ]);\n\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": "861976ea353841a1120d5e19df4f5651", "score": "0.7667395", "text": "public function run()\n {\n // $this->call(GroupsTableSeeder::class);\n // $this->call(UsersTableSeeder::class);\n // $this->call(AdminsTableSeeder::class);\n // $this->call(SellersTableSeeder::class);\n\n $this->call(AboutsTableSeeder::class);\n // $this->call(AdvertisesTableSeeder::class);\n $this->call(ContactsTableSeeder::class);\n $this->call(HowToshopsTableSeeder::class);\n $this->call(HowTosellsTableSeeder::class);\n $this->call(OfficialPartnersTableSeeder::class);\n $this->call(OurActivitiesTableSeeder::class);\n $this->call(PaymentsTableSeeder::class);\n $this->call(RefundsTableSeeder::class);\n $this->call(SellerStoriesTableSeeder::class);\n $this->call(WithdrawalsTableSeeder::class);\n\n // factory(App\\User::class,5)->create();\n // factory(App\\Model\\Product::class,50)->create();\n // factory(App\\Model\\Review::class,300)->create();\n }", "title": "" }, { "docid": "06f416db2b8ef80c81b9ff3ec0e65217", "score": "0.7661292", "text": "public function run()\n {\n $this->call([\n ContentSeeder::class,\n MetadataSeeder::class,\n// CategorySeeder::class,\n SliderSeeder::class,\n UserSeeder::class,\n ]);\n// factory('App\\Termination',10)->create();\n// factory('App\\Subcategory',10)->create();\n// factory('App\\Closure',10)->create();\n// factory('App\\Capacity',10)->create();\n $this->call(ContentsTableSeeder::class);\n $this->call(SlidersTableSeeder::class);\n }", "title": "" }, { "docid": "30dac972abaa34409e5f3917314fcb65", "score": "0.7659881", "text": "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "title": "" }, { "docid": "e508532bee1083b015a68a8047e78ca6", "score": "0.76597446", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => 'test1@t.t',\n 'name' => 'Dominic',\n ]);\n\n factory(User::class)->create([\n 'email' => 'test2@t.t',\n 'name' => 'Kira',\n ]);\n\n factory(User::class)->create([\n 'email' => 'test3@t.t',\n 'name' => 'Less',\n ]);\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": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8e8e03727ca6544a2d009483f6d1aca9", "score": "0.0", "text": "public function destroy($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "67120cc52c09f1239f92f34fd173437e", "score": "0.7333458", "text": "function remove($resource)\n {\n }", "title": "" }, { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "96aa9ea6689a46a9441f009aa879d999", "score": "0.6885214", "text": "public function removeResource($resource)\n {\n // Remove the Saved Resource\n $join = new User_resource();\n $join->user_id = $this->id;\n $join->resource_id = $resource->id;\n $join->delete();\n\n // Remove the Tags from the resource\n $join = new Resource_tags();\n $join->user_id = $this->id;\n $join->resource_id = $resource->id;\n $join->delete();\n }", "title": "" }, { "docid": "d522def58731edf5dda07c4a8e3cb839", "score": "0.6839906", "text": "public function remove(IUser $user, ?IResource $resource): void;", "title": "" }, { "docid": "5b18f4f0f245d93e1d14486ac0afbbc7", "score": "0.6735704", "text": "public function remove(ResourceInterface $resource)\n {\n $this->_em->remove($resource);\n $this->_em->flush($resource);\n }", "title": "" }, { "docid": "6ffd51684d27200dd20bb77ae5392465", "score": "0.65282005", "text": "public function dispatchOnPostRemoveResource($resource);", "title": "" }, { "docid": "20340ae69f46965449dc508b639c84e9", "score": "0.6511765", "text": "public function remove_storage()\n\t{\n\t\t$this->_storage->destroy_storage();\n\t}", "title": "" }, { "docid": "8566de5772ba8f11471da580f8907d09", "score": "0.64848197", "text": "public static function remove(string $resourcePath): void\n {\n $file = self::generatePath(\n self::generateHash($resourcePath)\n );\n\n if (\\is_file($file)) {\n \\unlink($file);\n }\n }", "title": "" }, { "docid": "b9b85ab47af2f085664ea4fb3f54b26d", "score": "0.6444909", "text": "public function dispatchOnPreRemoveResource($resource);", "title": "" }, { "docid": "ae13b12a81ef5a04c54c2ae2a1fbfc6f", "score": "0.61720115", "text": "public function unsetStorageId();", "title": "" }, { "docid": "8c0ed41f8673fd843b7ffdb22bce5eb0", "score": "0.611688", "text": "public function afterDelete($resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "77d39170a9748d8eca11f292068832c6", "score": "0.6077847", "text": "public function delete($storageName, $key);", "title": "" }, { "docid": "43dc6df10818b4435103bc0ee31fc8d1", "score": "0.6045101", "text": "public function destroy($id)\n {\n $record = Resource::where('id', $id)->get();\n\n if (!empty($record[0])) {\n DB::beginTransaction();\n\n $isRemoved = self::remove($record);\n }\n }", "title": "" }, { "docid": "db4382353b96e87cb5a70c801383930a", "score": "0.603214", "text": "public function delete($resourceId = null, $options = []);", "title": "" }, { "docid": "a2014b07fec4eb27432905d903e64664", "score": "0.59784347", "text": "public function destroy($id)\n {\n $storage = Storage::find($id);\n if($storage->item())\n {\n $storage->item()->detach();\n if( $storage->delete() )\n {\n return response('Deleted.',200);\n }\n }\n return response('Error.',400);\n }", "title": "" }, { "docid": "6dd2ae009f2219fb531720e25a26531d", "score": "0.5974692", "text": "public function remove() {\n\t\t$this->storage->rmdir($this->path);\n\t\t$this->user->triggerChange('avatar');\n\t}", "title": "" }, { "docid": "462a710c39c75c675bfe433bce80e2fe", "score": "0.5951811", "text": "public function destroy()\n {\n if ($this->instance instanceof Storage) {\n $this->instance->destroy();\n }\n $this->instance = null;\n }", "title": "" }, { "docid": "c39bd1cfb71eb924026011c0e976a9d4", "score": "0.5933563", "text": "public function delete(string $resourceType, $modelOrResourceId): void;", "title": "" }, { "docid": "31f350f911a74d37fb3a78e6981becb5", "score": "0.5921418", "text": "public function removeStorage()\n\t{\n\t\t$this->taskExec('docker rm chrome-print-storage')->run();\n\t}", "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": "d03fcfa49d2ade09cffc8d88d701076d", "score": "0.58893216", "text": "public function dropStorageFromName($storageName);", "title": "" }, { "docid": "7a7d76b4d53301e7ae6922b772849358", "score": "0.5886972", "text": "public function destroy($file)\n {\n $file = File::where('id', $file)->first();\n $url = str_replace('storage', 'public', $file->url);\n Storage::delete($url);\n $file->delete();\n return redirect()->route('files.index')->with('eliminar', 'ok');\n }", "title": "" }, { "docid": "3f6a8794d81fc01347d2f3307ac44d78", "score": "0.58504206", "text": "public function destroy($id)\n {\n //\n\n $contratista= contratistas::findOrFail($id);\n\n if (Storage::delete('public/'.$contratista->Foto)){\n Contratistas::destroy($id);\n\n }\n\n \n \n return redirect('contratistas')->with('Mensaje','Contratista eliminado');\n }", "title": "" }, { "docid": "a85763dd50ac74b8d2b8124b1c0e3e7b", "score": "0.5850285", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return back()->with('info', 'Resource deleted');\n }", "title": "" }, { "docid": "02a5bc50f3aa8ecd04834387832bc77c", "score": "0.5844418", "text": "public function destroy($id)\n {\n // $this->authorize('haveaccess','producto.destroy');\n $producto= Producto::findOrFail($id);\n\n if(Storage::delete('public/'.$producto->imagen)){\n\n Producto::destroy($id); \n }\n\n return redirect('producto');\n }", "title": "" }, { "docid": "8f406917023a0110d93d6350033a3ab5", "score": "0.58313775", "text": "public function removeItem($id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "title": "" }, { "docid": "a193f7ebf258b5fb63b8919a07678081", "score": "0.5821789", "text": "public function removeAll ($storage) {}", "title": "" }, { "docid": "dc36a581460d40a22ac889b4e61a4ab9", "score": "0.58165264", "text": "public function removeResource($resourceID)\n {\n $resourceID = db::escapechars($resourceID);\n $sql = \"DELETE FROM kidschurchresources WHERE resourceID='$resourceID' LIMIT 1\";\n $result = db::execute($sql);\n if($result){\n return true;\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "8f1b5736b25701e2b67e4f655f581689", "score": "0.57634306", "text": "public function testResourceRemoveOne()\n {\n $resourceArea = new Zend_Acl_Resource('area');\n $this->_acl->add($resourceArea)\n ->remove($resourceArea);\n $this->assertFalse($this->_acl->has($resourceArea));\n }", "title": "" }, { "docid": "5cc9f2ec9efb9c5303b848052688e6c4", "score": "0.5744329", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n $filename = $product->image;\n $product->delete();\n Storage::delete($filename);\n }", "title": "" }, { "docid": "4d84ab18e7e3c7bf3662c486977fb999", "score": "0.57371354", "text": "public function delete() {\n return $this->storage->delete($this->getId());\n }", "title": "" }, { "docid": "cbac86afaa4d65131418099d416a05f8", "score": "0.5731129", "text": "public function destroy($id)\n {\n $resource = Resource::find($id);\n\n if ($fileName = $resource->book->name) {\n $file = public_path() . '/resources/' . $fileName;\n unlink($file);\n }\n\n $resource->delete();\n\n $message = 'El recurso literario \"' . $resource->title . '\" ha sido eliminado.';\n $class = 'danger';\n\n Session::flash('message', $message);\n Session::flash('class', $class);\n\n return redirect()->route('admin.resources.index');\n }", "title": "" }, { "docid": "fec8d4881ffc82e41c0642f366a1a75a", "score": "0.5726655", "text": "public function delete($resource)\n {\n return DB::transaction(function () use ($resource) {\n $resource = $this->beforeDelete($resource);\n\n $resource->delete();\n\n return $this->afterDelete($resource);\n });\n }", "title": "" }, { "docid": "b8c78cd19161cf7966e7567365e984a3", "score": "0.56849074", "text": "public function remove(): void;", "title": "" }, { "docid": "bf109080b5ee3a89d2c795999303aee7", "score": "0.5680265", "text": "public function delete(){\n if($this->removable) {\n $directory = $this->getRootDir();\n\n App::fs()->remove($directory);\n }\n }", "title": "" }, { "docid": "8bbd28cf62ed375a2f7518342e1d75ae", "score": "0.56680655", "text": "public function removeFile();", "title": "" }, { "docid": "3819490d97e5dfe8f2ffd81ae03e6e53", "score": "0.56674856", "text": "public function remove(ReadModelInterface $element);", "title": "" }, { "docid": "b182edae2a719de4edc919c7a7b5885e", "score": "0.5663417", "text": "public function destroy($id)\n {\n\n $post = Roler::findOrFail($id);\n\n $path=public_path('/storage/uploads/');\n if (isset($post->image)) {\n $oldname=$post->image;\n File::delete($path.''.$oldname);\n }\n\n if (Roler::where('id', $id)->delete()) {\n\n return redirect()->back()->with('success', 'Record deleted successfully');\n\n }\n \n return redirect()->back();\n\n }", "title": "" }, { "docid": "2d475aa3098e33e6020ec88b30a03b25", "score": "0.5662905", "text": "public function purgeAsset($asset);", "title": "" }, { "docid": "cb1740d372b49263432bcc5cf39f97d8", "score": "0.56595594", "text": "public function destroy($id)\n {\n $emp = Employee::where('id',$id)->first();\n $photo = $emp->image;\n if($photo){\n unlink($photo);\n $emp->delete();\n }else{\n $emp->delete();\n }\n\n }", "title": "" }, { "docid": "7567af40a4901dd5dd42113b0bbccb95", "score": "0.56567484", "text": "public function removeResource($name)\n {\n unset($this->resources[$name]);\n if ($name === 'file') {\n $this->resources['file'] = array(\n 'class' => 'Dwoo\\Template\\File',\n 'compiler' => null\n );\n }\n }", "title": "" }, { "docid": "dc84ba400b70ef909d87e4a92424f6ac", "score": "0.5648853", "text": "public function destroy($id)\n {\n $album = Album::find($id);\n if($album==null){\n return reidrect('/portfolio')->with('error','this portfolio does not exist');\n }else{\n if(Storage::delete('public/album_covers/'.$album->cover_image)){\n $album->delete();\n return redirect('/portfolio')->with('success','Album removed');\n }\n }\n}", "title": "" }, { "docid": "ff85d8135b960df73371ee3703e738a4", "score": "0.5643097", "text": "public function destroy($id)\n {\n $file_name = DB::table(\"research\")->where('id',$id)->value('research_image');\n unlink(public_path(\"front/assets/images/what-we-do/research/\".$file_name)); \n DB::table(\"research\")->where('id',$id)->delete();\n return redirect()->route('all-research')->with('msg','Research deleted successfully with the image');\n }", "title": "" }, { "docid": "4dfae537943a63cbddf6151c77a88821", "score": "0.5636697", "text": "public function destroy($id)\n { \n $products = Product::findOrFail($id);\n // $delete = $products->slug;\n if($products->slug) {\n \\File::delete( public_path('storage/'.$products->slug ) );\n }\n \n // File::delete(public_path(\"storage/\"), $delete);\n Product::destroy($id);\n return redirect()->route('product-list.index')->with('success','Product Destory Successfully !!!');\n\n }", "title": "" }, { "docid": "d261281fcf3d7ca08f9b610eb6c3b1f0", "score": "0.56346554", "text": "public function destroy($id)\n {\n $photo = Photo::findOrFail($id);\n unlink(public_path() . $photo->image_url);\n $photo->delete();\n }", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "5e46d09ef2d1d9f143d6831260992e3f", "score": "0.56248415", "text": "public function destroy($id)\n {\n $pres=Prescription::find($id);\n $fileName=$pres->item;\n unlink(storage_path().'/'.'app'.'/'.'public' .'/'.'prescriptions'.'/'. $fileName);\n $pres->delete();\n }", "title": "" }, { "docid": "0428848b8d6110c6be21d9479ece2192", "score": "0.56237406", "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": "1ed1ac142686a23f0827e755ecbc86db", "score": "0.5618705", "text": "public function delete($resource, array $args = [], array $options = []) {\n return $this->do('DELETE', $resource, $args, $options);\n\n }", "title": "" }, { "docid": "c0ac500c5b367ee589c3c33143eb832b", "score": "0.5617002", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return response()->json(['success' => 'borrado correctamente']);\n }", "title": "" }, { "docid": "a9c212129736f6a4e7fd4eddbccc6f2f", "score": "0.56163317", "text": "public function destroy($id)\n {\n $delete = Supplier::where(\"id\", $id)->first();\n $img = $delete->photo;\n if($img){\n unlink('backend/assets/images/supplier/'.$img);\n $delete->delete();\n toast('Supplier Information Delete Successfully','success');\n return redirect()->route('index.supplier');\n }else{\n toast('Supplier Not Deleted','success');\n return redirect()->route('index.supplier');\n }\n }", "title": "" }, { "docid": "6b5dbac631e37705e1c7cf319db2d7e6", "score": "0.56112254", "text": "public function deleteFromDisk()\n {\n return Storage::disk($this->getLocalDiskName())->delete($this->getStoragePath(true));\n }", "title": "" }, { "docid": "30687a12463a759554c0cdd15b679592", "score": "0.56098014", "text": "public function remove (EntityInterface $entity);", "title": "" }, { "docid": "14d4df02668a2d07f51666ab31e093b8", "score": "0.5609148", "text": "public function destroy($id)\n {\n $store = Store::findorFail($id);\n $product = Product::firstorfail()->where('store_id', $id);\n // unlink(public_path() . '/img/' . $product->image);\n $product->delete();\n unlink(public_path() . '/str_img/' . $store->image);\n $store->delete();\n return redirect()->back()->withDelete(\"Store Deleted Succesfully\");\n\n\n \n }", "title": "" }, { "docid": "942f7427e779526c94189558d1185b66", "score": "0.56033164", "text": "public function delete()\n {\n Yii::debug(\"Deleting last upload.\", self::CATEGORY);\n unlink($this->path);\n Yii::$app->session->remove(self::cacheKey());\n }", "title": "" }, { "docid": "f7e25a0f3411ba82d9ef10dbdff68bb4", "score": "0.5600532", "text": "public function beforeDelete($resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "bc970628483c63b419ea48f599c8c972", "score": "0.5598614", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n $photo = $product->image;\n if ($photo) {\n unlink($photo);\n Product::findOrFail($id)->delete(); \n }else{\n Product::findOrFail($id)->delete();\n }\n\n }", "title": "" }, { "docid": "5f7b880d9042e6af83f1343c11f66a8e", "score": "0.5595085", "text": "public function destroy($record);", "title": "" }, { "docid": "eb90c146961dd680727f52741dd87d78", "score": "0.55930966", "text": "public function delete($key) {\n $this->assertKey($key);\n \n unset($this->storage[$key]);\n }", "title": "" }, { "docid": "1f90eefbc842f865e713597e80b0fc92", "score": "0.55857533", "text": "public function remove($file);", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "268c30c6782025503083fc7ba52c1d0a", "score": "0.557298", "text": "public function delete() {\n $this->dataStoreAdapter->deleteObject($this->getUuid());\n }", "title": "" }, { "docid": "68aa5a7a833751b6ce51749cd9ab047e", "score": "0.5570882", "text": "public function destroy()\n {\n LaraFile::delete(\"images/{Auth::user()->avatar}\");\n }", "title": "" }, { "docid": "8179dc9b6bd99410fef7c74e3b56208a", "score": "0.5570384", "text": "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n @unlink($file); \n \n }", "title": "" }, { "docid": "4aff284263b8a4a2b80b972accc89eb6", "score": "0.55585116", "text": "public function removeFile($file_obj)\n\t{\n\t\t$fs = new Filesystem();\n\t\tif($fs->exists($file_obj->getUrlStorage()))\n\t\t{\n\t\t\t$fs->remove($file_obj->getUrlStorage());\n\t\t}\n\t}", "title": "" }, { "docid": "614063fb503a57e9decfce510aa95492", "score": "0.5555877", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n if (($oldFile = $product->photo) !== 'uyuni.jpg'){\n Storage::delete($oldFile);\n }\n $product->delete();\n return redirect()->route('product.index')->with('success', 'Product successfully destroyed');\n }", "title": "" }, { "docid": "e58edf0ef06400cd31b9c6df91114be3", "score": "0.5555602", "text": "public function destroy(Attribute $attribute)\n {\n //delete a attribute by softDelete.\n $userId = $attribute->Category->Store->user_id;\n\n if (auth()->id() == $userId) {\n if ($attribute->delete()) {\n return new AttributeResource($attribute);\n }\n } else {\n abort(400, 'the Auth user do not store owner');\n }\n }", "title": "" }, { "docid": "ec1b691c67eb4c9111f82f370bc46ab2", "score": "0.55521524", "text": "public function removeAction ()\n { \n if (!empty ($this->params ['file']) AND file_exists (UPLOAD_PATH.$this->params ['file']))\n unlink (UPLOAD_PATH.$this->params ['file']); \n if (!empty ($this->params ['media_id']))\n {\n $model = new Model_DbTable_MediaData ();\n $model->delete_media ($this->params ['media_id']);\n } \n }", "title": "" }, { "docid": "cf67810bc53f9cd6c02a127c0ee780e0", "score": "0.55445576", "text": "public function remove()\n\t{\n\t\tFile::remove($this->tempName);\n\t}", "title": "" }, { "docid": "94cb51fff63ea161e1d8f04215cfe7bf", "score": "0.55422723", "text": "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "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": "45876224e081764ab571b0cb929a5473", "score": "0.5533963", "text": "public function destroy($id)\n {\n\n $product=Product::find($id);\n $image=str_slug($product->imagePath);\n //no se borro la imagen ???\n Storage::delete($image);\n $product->delete();\n \n return back();\n \n }", "title": "" }, { "docid": "9ac57f5d74d74f050136ae1e642ec949", "score": "0.5532133", "text": "public function delete($path) {\n $absPath = $this->_getAbsPath($path);\n $status = @unlink($absPath);\n\n if (!$status) {\n if (file_exists($absPath)) {\n throw new Scalar_Storage_Exception('Unable to delete file.');\n } else {\n $this->_log(\"Scalar_Storage_Adapter_Filesystem: Tried to delete missing file '$path'.\");\n }\n }\n }", "title": "" }, { "docid": "584dea86c95ee49398418c499126a231", "score": "0.55317944", "text": "public function forgetUsed()\n {\n if ($this->app['files']->exists($this->getUsedStoragePath())) {\n $this->app['files']->delete($this->getUsedStoragePath());\n }\n }", "title": "" }, { "docid": "52c48eff326d035cdfe9e0df0c79a23f", "score": "0.55300117", "text": "public function removeFromStorage()\n {\n if ( ! $this->is_raw ) {\n return MediaStorage::adapterByDisk($this->disk)->delete($this->path);\n }\n\n return true;\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": "" }, { "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": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "62470bdab73b1c8776214a0d888756d6", "score": "0.55259556", "text": "public function delete($filename = null){\r\n $filename = $this->getFile($filename);\r\n unlink($filename);\r\n }", "title": "" }, { "docid": "fca5783c203ebaaaafea2bcc3d6ca335", "score": "0.5525723", "text": "public function destroy($id)\n {\n \n $deleteItem = Slider::where('id', '=', $id)->first();\n $oldImg = $deleteItem->image;\n\n $oldfile = public_path('images/').$deleteItem->image;\n\n if (File::exists($oldfile))\n {\n File::delete($oldfile);\n }\n \n $slider = Slider::findOrFail($id);\n $slider->delete(); \n\n return redirect()->route('admin.slider')->with('success','Slider Item deleted successfully');\n }", "title": "" }, { "docid": "2b40268130454e39a95a6fde14dd39ee", "score": "0.55251133", "text": "public function destroy($id)\n {\n $delete = Image::find($id);\n $image = $delete->name;\n $delete->delete();\n Storage::delete('uploads/'.$image);\n return redirect()->back();\n }", "title": "" }, { "docid": "3d971daf6c6545b8d3f3ab39cedcd813", "score": "0.55225646", "text": "public static function untagOnDelete();", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" }, { "docid": "0d93adedaef8f05d9f7cbb129944a438", "score": "0.55152917", "text": "public function delete()\n {\n imagedestroy($this->image);\n $this->clearStack();\n }", "title": "" }, { "docid": "af145ca4d7fcaa5c229e51cfdaf9bb3d", "score": "0.55152094", "text": "public function delete($identifier);", "title": "" } ]
ec88f61877f8b0ed9c58564886e08294
Fonction qui converti une valeur MO en Octets
[ { "docid": "8e88ca64f67504546a358909dc48e951", "score": "0.53085554", "text": "public function moConvert($value){\n $result = $value * 1048576;\n return $result;\n }", "title": "" } ]
[ { "docid": "034c67d916ba7cf1ed1afa5cb6d6a631", "score": "0.6717903", "text": "function oct2dec($numero){\n\t\t$str = strval($numero);\n\t\t$dec = 0;\n\t\tfor ($i=strlen($str)-1; $i>=0; $i--){\n\t\t\t$j = strlen($str) - 1 - $i;\n\t\t\t$n = intval($str[$j]);\n\t\t\t//echo $n.\"<br>\";\n\t\t\t$dec += $n * pow(8, $i);\n\t\t\t//echo \"oct = \".$n.\"* 8 elevado a \".$i.\" = \".($n*pow(8,$i)).\"<br>\";\n\t\t}\n\t\techo \"<p id='converter' style='color: blue;'> Octal: \".$numero.\"<br>Decimal: \".$dec.\"</p><br>\";\n\t}", "title": "" }, { "docid": "61dcfb2594c5e9e6391c8e5f4ff7223d", "score": "0.63739026", "text": "public function octetConvertToMo($value){\n $result = $value / 1048576;\n return $result;\n }", "title": "" }, { "docid": "ac2fd778c72e65437739cad360516d9c", "score": "0.59175164", "text": "private function toNum($v){ \n\t\t$l = substr($v, -1);\n\t\t$ret = substr($v, 0, -1);\n\t\tswitch(strtoupper($l)){\n\t\t\tcase 'M':\n\t\t\t\t$ret *= 1024;\n\t\t\tcase 'K':\n\t\t\t\t$ret *= 1;\n\t\t\t\tbreak;\n\t\t\t}\n \treturn $ret;\n\t}", "title": "" }, { "docid": "a6a2b2af112bb1c75f84253e643190bd", "score": "0.58982444", "text": "function OctalDigit() {\n }", "title": "" }, { "docid": "eedd15a25c56f420ac6af059812f86d6", "score": "0.57036054", "text": "protected function _oct()\n {\n if(!$this->_decimal()->zero) {\n throw new \\RuntimeException(\n 'Cannot get octal numbers from non integer.'\n );\n }\n\n if($this->value < 0){\n return new S('-' . decoct(abs($this->value)));\n } else {\n return new S(decoct($this->value));\n }\n\n }", "title": "" }, { "docid": "3d64c50a5cd5f12b045e3f8a6fe3cf00", "score": "0.5643232", "text": "function MoToOctet($string){\n return intval($string)*1024;\n}", "title": "" }, { "docid": "5f48173576393aed11f45f61d4cbd719", "score": "0.5614141", "text": "public function getM00()\n {\n return $this->m00;\n }", "title": "" }, { "docid": "cf11e5c9ac82885749ef0b19b15ed1a6", "score": "0.5561519", "text": "function ToOctet($string){\n if(stripos($string,\"G\"))\n $mux=1048576;\n elseif(stripos($string,\"M\"))\n $mux=1024;\n elseif(stripos($string,\"K\"))\n $mux=1;\n else\n $mux=0;\n \n return intval($string)*$mux;\n}", "title": "" }, { "docid": "8e68b6fce63368f944e32d9519804ced", "score": "0.5547064", "text": "protected function _o()\n {\n return $this->_oct();\n }", "title": "" }, { "docid": "95efbf73709323d2fe1074e392efc32d", "score": "0.5489753", "text": "public function moisSuivant($mois)\n{\n\t$A = intval(substr($mois,0,4));\n\t$M = intval(substr($mois,4,5));\n\t\n\tif($M == 12){\n\t\t$M = 1;\n\t\t$A++;\n\t}else{\n\t\t$M++;\n\n\t}\n\n\t$M = strval($M);\n\tif($M < \"10\") $M = \"0\".$M;;\n\n\t$A = strval($A);\n\t$mois = $A.$M ;\n\n\t\n\treturn $mois;\n}", "title": "" }, { "docid": "5836f5fd95608750df9a1b931a0d5fe3", "score": "0.5487518", "text": "function esCero($value) {\n \n\t if (empty($value)){\n\t return \"0\"; \n\t}\n\t else{\n\t \treturn $value;\n\t }\n\n\t}", "title": "" }, { "docid": "a0c1a81f6025c6db0d9d738b00a3f51f", "score": "0.54703987", "text": "public function getVatDec()\n {\n $value = $this->get(self::VATDEC);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "209842eb2b84efe6d17b55a4149b0ba6", "score": "0.5422197", "text": "function tempoValueFormat($bLabel) {\n \t//return number_format($aLabel) \n // Format '1000 french style \n \t\t$marcaAtleta=number_format($bLabel,0,\"\",\"\");\n\t\t\t$marcaAtletaArr=str_split(str_pad($marcaAtleta, 8, \"0\", STR_PAD_LEFT), 2);\n\t\t\t$bLabel=$marcaAtletaArr[0].\":\".$marcaAtletaArr[1].\":\".$marcaAtletaArr[2].\".\".$marcaAtletaArr[3];\n\t return $bLabel; \n\t}", "title": "" }, { "docid": "0de0e87d5fd8b028ee2b5a39b1b07440", "score": "0.53917027", "text": "function formatoMoneda($monto) {\n $montoFormateado = number_format($monto, 2);\n\n return $montoFormateado;\n}", "title": "" }, { "docid": "8b0a3724963bd06f9d187c778a9be8f9", "score": "0.5328093", "text": "function intTOmon($cdn) {\r\n\t\t$cdn = trim($cdn);\r\n\t\t$CadLen = strlen($cdn);\r\n\t\t$Newcdn = \"\";\r\n\t\tif ($CadLen == 0) {\r\n\t\t\t$cdn = 0;\r\n\t\t}\r\n\t\tif ($CadLen > 3) {\r\n\t\t\t$cdnDp = \"G\" . $cdn;\r\n\t\t\t$mmc = 0;\r\n\t\t\tfor ($i = $CadLen; $i >= 1; $i--) {\r\n\t\t\t\t$Newcdn = $cdnDp{$i} . $Newcdn;\r\n\t\t\t\t$mmc++;\r\n\t\t\t\tif (($mmc == 3) && ($i > 1)) {\r\n\t\t\t\t\t$mmc = 0;\r\n\t\t\t\t\t$Newcdn = \",\" . $Newcdn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$cdn = $Newcdn;\r\n\t\t}\r\n\t\t$cdn = \"$\" . $cdn . \".00\";\r\n\t\treturn $cdn;\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "0d23df2252bb1dc980d0f04171985718", "score": "0.5316797", "text": "function let_to_num($v){\n $l = substr($v, -1);\n $ret = substr($v, 0, -1);\n switch(strtoupper($l)){\n case 'P': $ret *= 1024;\n case 'T': $ret *= 1024;\n case 'G': $ret *= 1024;\n case 'M': $ret *= 1024;\n case 'K': $ret *= 1024; break;\n }\n return $ret;\n }", "title": "" }, { "docid": "9e5515c9e9f630b81ef0b4c7a8e28973", "score": "0.5313572", "text": "function convertir($unidad,$cantidad){\n #de peso\n $conversiones['qq']=100;#quintal 100kg\n $conversiones['ton']=1000;\n $conversiones['g']=0.001;\n $conversiones['kg']=1;\n $conversiones['oz']=0.03;\n $conversiones['lb']=0.45;\n #de volumen\n $conversiones['ml']=0.001;\n $conversiones['lt']=1;\n $resultado=$conversiones[$unidad]*floatval($cantidad);\n return $resultado; \n}", "title": "" }, { "docid": "2c8cde6bea321480b9e9bc426792e556", "score": "0.5284562", "text": "protected function valuta()\n {\n return 'KM';\n }", "title": "" }, { "docid": "a590f72de9a046e9ec77005143f59ddd", "score": "0.5278382", "text": "public function getNumber()\n {\n $aux = $this->countMmsPublic();\n return ($aux . \" Vídeo\" . ($aux==1?'':'s'));\n }", "title": "" }, { "docid": "4b536c1d83b733567d5b5ef6e0c03f8a", "score": "0.5267147", "text": "function dec2bin($numero){\n\t\t$dec = $numero;\n\t\t$result = \"\";\n\t\twhile ($numero != 0){\n\t\t\t$resto = $numero % 2;\n\t\t\t//echo \"resto = \".$resto.\"<br>\";\n\t\t\t$result .= strval($resto);\n\t\t\t//echo \"result = \".$result.\"<br>\";\n\t\t\t$numero = intdiv($numero, 2);\n\t\t\t//echo \"numero = \".$numero.\"<br>\";\n\t\t}\n\t\techo \"<p id='converter' style='color: blue;'> Decimal: \".$dec.\"<br>Binário: \".strrev($result).\"</p><br>\";\n\t}", "title": "" }, { "docid": "e9bc184e2f9304961b440c8291e84d35", "score": "0.52590466", "text": "abstract public function toCMYKInt();", "title": "" }, { "docid": "74eb542f00e02d759c770b6fc83d422b", "score": "0.5257217", "text": "public function getApfmpo24mo10()\n {\n return $this->apfmpo24mo10;\n }", "title": "" }, { "docid": "697347e97831e74a953a741f2019909f", "score": "0.52088076", "text": "function cekJumlahBit($nilai) {\n\t$n = 4 - strlen($nilai);\n\n\tfor($i = 0 ; $i < $n ; $i++) {\n\t\t$nilai = \"0\" . $nilai;\n\t}\n\n\treturn $nilai;\n}", "title": "" }, { "docid": "c417cc915d4b641fb1d7edb7e86a3333", "score": "0.52016485", "text": "function to_num( $c )\r\n{\r\n\tif ( $c == '.' )\r\n\t\treturn -1;\r\n\treturn ord( $c ) - ord( '0' );\r\n}", "title": "" }, { "docid": "97b4878486ef5bac43a0771a0046bf14", "score": "0.51974624", "text": "function valorPorExtenso($valor=0) {\n\t$singular = array(\"centavo\", \"real\", \"mil\", \"milhão\", \"bilhão\", \"trilhão\", \"quatrilhão\");\n\t$plural = array(\"centavos\", \"reais\", \"mil\", \"milhões\", \"bilhões\", \"trilhões\",\"quatrilhões\");\n \n\t$c = array(\"\", \"cem\", \"duzentos\", \"trezentos\", \"quatrocentos\",\"quinhentos\", \"seiscentos\", \"setecentos\", \"oitocentos\", \"novecentos\");\n\t$d = array(\"\", \"dez\", \"vinte\", \"trinta\", \"quarenta\", \"cinquenta\",\"sessenta\", \"setenta\", \"oitenta\", \"noventa\");\n\t$d10 = array(\"dez\", \"onze\", \"doze\", \"treze\", \"quatorze\", \"quinze\",\"dezesseis\", \"dezesete\", \"dezoito\", \"dezenove\");\n\t$u = array(\"\", \"um\", \"dois\", \"três\", \"quatro\", \"cinco\", \"seis\",\"sete\", \"oito\", \"nove\");\n \n\t$z=0;\n \n\t$valor = number_format($valor, 2, \".\", \".\");\n\t$inteiro = explode(\".\", $valor);\n\tfor($i=0;$i<count($inteiro);$i++)\n\t\tfor($ii=strlen($inteiro[$i]);$ii<3;$ii++)\n\t\t\t$inteiro[$i] = \"0\".$inteiro[$i];\n \t$rt = \"\";\n\t// $fim identifica onde que deve se dar junção de centenas por \"e\" ou por \",\" ;) \n\t$fim = count($inteiro) - ($inteiro[count($inteiro)-1] > 0 ? 1 : 2);\n\tfor ($i=0;$i<count($inteiro);$i++) {\n\t\t$valor = $inteiro[$i];\n\t\t$rc = (($valor > 100) && ($valor < 200)) ? \"cento\" : $c[$valor[0]];\n\t\t$rd = ($valor[1] < 2) ? \"\" : $d[$valor[1]];\n\t\t$ru = ($valor > 0) ? (($valor[1] == 1) ? $d10[$valor[2]] : $u[$valor[2]]) : \"\";\n\t\n\t\t$r = $rc.(($rc && ($rd || $ru)) ? \" e \" : \"\").$rd.(($rd && $ru) ? \" e \" : \"\").$ru;\n\t\t$t = count($inteiro)-1-$i;\n\t\t$r .= $r ? \" \".($valor > 1 ? $plural[$t] : $singular[$t]) : \"\";\n\t\tif ($valor == \"000\")$z++; elseif ($z > 0) $z--;\n\t\tif (($t==1) && ($z>0) && ($inteiro[0] > 0)) $r .= (($z>1) ? \" de \" : \"\").$plural[$t]; \n\t\tif ($r) $rt = $rt . ((($i > 0) && ($i <= $fim) && ($inteiro[0] > 0) && ($z < 1)) ? ( ($i < $fim) ? \", \" : \" e \") : \" \") . $r;\n\t}\n \n\treturn($rt ? $rt : \"zero\");\n}", "title": "" }, { "docid": "c34d448ef8e7a1f88c2914cca422a147", "score": "0.51857144", "text": "function valor_extenso($valor = 0, $maiusculas = false) {\r\r\n if (strpos($valor, \",\") > 0) {\r\r\n // retira o ponto de milhar, se tiver\r\r\n $valor = str_replace(\".\", \"\", $valor);\r\r\n\r\r\n // troca a virgula decimal por ponto decimal\r\r\n $valor = str_replace(\",\", \".\", $valor);\r\r\n }\r\r\n $singular = array(\"centavo\", \"real\", \"mil\", \"milhão\", \"bilhão\", \"trilhão\", \"quatrilhão\");\r\r\n $plural = array(\"centavos\", \"reais\", \"mil\", \"milhões\", \"bilhões\", \"trilhões\",\r\r\n \"quatrilhões\");\r\r\n\r\r\n $c = array(\"\", \"cem\", \"duzentos\", \"trezentos\", \"quatrocentos\",\r\r\n \"quinhentos\", \"seiscentos\", \"setecentos\", \"oitocentos\", \"novecentos\");\r\r\n $d = array(\"\", \"dez\", \"vinte\", \"trinta\", \"quarenta\", \"cinquenta\",\r\r\n \"sessenta\", \"setenta\", \"oitenta\", \"noventa\");\r\r\n $d10 = array(\"dez\", \"onze\", \"doze\", \"treze\", \"quatorze\", \"quinze\",\r\r\n \"dezesseis\", \"dezesete\", \"dezoito\", \"dezenove\");\r\r\n $u = array(\"\", \"um\", \"dois\", \"três\", \"quatro\", \"cinco\", \"seis\",\r\r\n \"sete\", \"oito\", \"nove\");\r\r\n\r\r\n $z = 0;\r\r\n\r\r\n $valor = number_format($valor, 2, \".\", \".\");\r\r\n $inteiro = explode(\".\", $valor);\r\r\n $cont = count($inteiro);\r\r\n for ($i = 0; $i < $cont; $i++)\r\r\n for ($ii = strlen($inteiro[$i]); $ii < 3; $ii++)\r\r\n $inteiro[$i] = \"0\" . $inteiro[$i];\r\r\n\r\r\n $fim = $cont - ($inteiro[$cont - 1] > 0 ? 1 : 2);\r\r\n for ($i = 0; $i < $cont; $i++) {\r\r\n $valor = $inteiro[$i];\r\r\n $rc = (($valor > 100) && ($valor < 200)) ? \"cento\" : $c[$valor[0]];\r\r\n $rd = ($valor[1] < 2) ? \"\" : $d[$valor[1]];\r\r\n $ru = ($valor > 0) ? (($valor[1] == 1) ? $d10[$valor[2]] : $u[$valor[2]]) : \"\";\r\r\n\r\r\n $r = $rc . (($rc && ($rd || $ru)) ? \" e \" : \"\") . $rd . (($rd &&\r\r\n $ru) ? \" e \" : \"\") . $ru;\r\r\n $t = $cont - 1 - $i;\r\r\n $r .= $r ? \" \" . ($valor > 1 ? $plural[$t] : $singular[$t]) : \"\";\r\r\n if ($valor == \"000\")\r\r\n $z++; elseif ($z > 0)\r\r\n $z--;\r\r\n if (($t == 1) && ($z > 0) && ($inteiro[0] > 0))\r\r\n $r .= (($z > 1) ? \" de \" : \"\") . $plural[$t];\r\r\n if ($r)\r\r\n $rt = $rt . ((($i > 0) && ($i <= $fim) &&\r\r\n ($inteiro[0] > 0) && ($z < 1)) ? ( ($i < $fim) ? \", \" : \" e \") : \" \") . $r;\r\r\n }\r\r\n\r\r\n if (!$maiusculas) {\r\r\n return($rt ? $rt : \"zero\");\r\r\n } elseif ($maiusculas == \"2\") {\r\r\n return (strtoupper($rt) ? strtoupper($rt) : \"Zero\");\r\r\n } else {\r\r\n return (ucwords($rt) ? ucwords($rt) : \"Zero\");\r\r\n }\r\r\n}", "title": "" }, { "docid": "4173595eccee0071bd1f4ed3648c8d85", "score": "0.51761043", "text": "function hex2dec($numero){\n\t\t$str = strval($numero);\n\t\t//echo \"str = \".$str.\"<br>\";\n\t\t$dec = 0;\n\t\tfor ($i=strlen($str)-1; $i>=0; $i--){\n\t\t\t$j = strlen($str) - 1 - $i;\n\t\t\t//echo \"j = \".$j.\"<br>\";\n\t\t\t$n = $str[$j];\n\t\t\t//echo \"str[$j] = \".$n.\"<br>\";\n\t\t\tswitch ($n) {\n\t\t\t\tcase 'a': case 'A':\n\t\t\t\t\t$n = 10;\n\t\t\t\tbreak;\n\t\t\t\tcase 'b': case 'B':\n\t\t\t\t\t$n = 11;\n\t\t\t\tbreak;\n\t\t\t\tcase 'c': case 'C':\n\t\t\t\t\t$n = 12;\n\t\t\t\tbreak;\n\t\t\t\tcase 'd': case 'D':\n\t\t\t\t\t$n = 13;\n\t\t\t\tbreak;\n\t\t\t\tcase 'e': case 'E':\n\t\t\t\t\t$n = 14;\n\t\t\t\tbreak;\n\t\t\t\tcase 'f': case 'F':\n\t\t\t\t\t$n = 15;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$n = intval($str[$j]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//echo \"str[$j] = \".$n.\"<br>\";\n\t\t\t$dec += $n * pow(16, $i);\n\t\t}\n\t\techo \"<p id='converter' style='color: blue;'> Hexadecimal: \".$numero.\"<br>Decimal: \".$dec.\"</p><br>\";\n\t}", "title": "" }, { "docid": "0592c5aee363bcad4bb1ea9b3f17b043", "score": "0.5170553", "text": "function convertRVBtoCMJN($hex) {\n list($r, $g, $b) = sscanf($hex, \"%02x%02x%02x\");\n $r /= 255;\n $g /= 255;\n $b /= 255;\n\n // Conversion du RVB vers CMJ\n $C = 1 - $r;\n $M = 1 - $g;\n $J = 1 - $b;\n\n // Conversion du CMJ vers CMJN\n $N = min($C, $M, $J);\n //echo $N;\n\n $c = ceil(($C-$N)/(1-$N) * 100);\n $m = ceil(($M-$N)/(1-$N) * 100);\n $j = ceil(($J-$N)/(1-$N) * 100);\n $n = ceil($N * 100);\n\n return array(\n 'C' => $c,\n 'M' => $m,\n 'J' => $j,\n 'N' => $n,\n );\n}", "title": "" }, { "docid": "274d614b8dd68404056a3bd0a17d6d93", "score": "0.51597285", "text": "function converterParaDouble($valor) {\n $valor = str_replace('R$ ', '', $valor);\n $valor = str_replace('.', '', $valor);\n $valor = str_replace(',', '.', $valor);\n return $valor;\n}", "title": "" }, { "docid": "15eca4e377352461c58af2a1bf78ae89", "score": "0.51564467", "text": "private function _get_dv_imei($serie = '')\n\t{\n\t\t$serie15 = '';\n\n\t\tif (strlen($serie) == 14 AND substr($serie, 0, 1) == '1')\n\t\t{\n\t\t\t$serie15 = '0' . $serie;\n\t\t}\n\n\t\tif (strlen($serie) == 15)\n\t\t{\n\t\t\t$serie15 = $serie;\n\t\t}\n\n\t\t$serie14 = substr($serie15, 0, 14);\n\n\t\t$sum_dv = 0;\n\t\tforeach(str_split($serie14) as $i => $n)\n\t\t{\n\t\t\t$sum_dv += ($i %2 !== 0) ? (($n*2>9)?$n*2-9:$n*2): $n;\n\t\t}\n\n\t\treturn $serie14 . (10 - $sum_dv % 10);\n\t}", "title": "" }, { "docid": "435f632d209471e5f18616f64803ecfa", "score": "0.51251227", "text": "public function getApfmpo24mo09()\n {\n return $this->apfmpo24mo09;\n }", "title": "" }, { "docid": "b12a09960e8c7bb92fe490d70593f74d", "score": "0.5101198", "text": "public function getIso() : int;", "title": "" }, { "docid": "9ec02df03e117a2f1d0d12071c7e9445", "score": "0.50805384", "text": "private function conversion($from = null,$to = null,$val = 0)\n\t{\n\t\t//$from = str_replace(' ','',$this->lib[$from]['n']);\n\t\t//$to = str_replace(' ','',$this->lib[$to]['n']);\n\t\t\n\t\tif($this->lib[$this->in_type]['c'] == 'currency'):\n\t\t\treturn $this->currency_conversion($from,$to,$val);\n\t\tendif;\n\t\t/**\n\t\t * International System of Units\n\t\t */\n\t\t \n\t\t//temperature -> base = 1 kelvin\n\t\t$k_base\t\t\t\t= function($k=0 ){ return $k; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// K = K\n\t\t$base_k\t\t\t\t= function($k=0 ){ return round($k,2); };\t\t\t\t\t\t\t\t\t\t\t\t\t\t// K = K\n\t\t$f_base\t\t\t\t= function($f=0 ){ return ($f + 459.67) / 1.8; }; \t\t\t\t\t\t\t\t\t\t// K = (°F + 459.67) / 1.8\n\t\t$base_f \t\t\t= function($k=0 ){ return round($k * 1.8 - 459.67,2); }; \t\t\t\t\t\t// °F = K × 1.8 - 459.67\n\t\t$c_base \t \t\t= function($c=0 ){ return $c + 273.15; }; \t\t\t\t\t\t\t\t\t\t\t\t\t\t// K = °C + 273.15\n\t\t$base_c \t \t\t= function($k=0 ){ return round($k - 273.15,1); };\t\t\t\t\t\t\t\t\t\t// °C = K - 273.15\n\t\t$r_base\t\t\t\t= function($re=0 ){ return $re * 1.25 + 273.15; }; \t\t\t\t\t\t\t\t\t\t// K = °Re × 1.25 + 273.15\n\t\t$base_r \t\t\t= function($k=0 ){ return round(($k - 273.15) * 0.8,2); }; \t\t\t\t\t// °Ré = (K - 273.15) × 0.8\n\t\t$ro_base\t\t\t= function($ro=0 ){ return ($ro - 7.5) * 40/21 + 273.15; }; \t\t\t\t\t// K = (°Rø - 7.5) × 40/21 + 273.15\n\t\t$base_ro\t\t\t= function($k=0 ){ return round(($k - 273.15) * 21/40 + 7.5,2); }; \t// °Rø = (K - 273.15) × 21/40 + 7.5\n\t\t$ra_base\t\t\t= function($ra=0 ){ return $ra / 1.8;}; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// K = °Ra / 1.8\n\t\t$base_ra\t\t = function($k=0 ){ return round($k * 1.8,2);}; \t\t\t\t\t\t\t\t\t\t\t// °Ra = K × 1.8\n\t\t$de_base\t\t = function($de=0 ){ return (373.15 - $de) * 2/3; }; \t\t\t\t\t\t\t\t\t// K = (373.15 - °De) × 2/3\n\t\t$base_de\t\t = function($k=0 ){ return round((373.15 - $k) * 3/2,2); }; \t\t\t\t\t// °De = (373.15 - K) × 3/2\t\t\t\t\t\t\t\t\t\n\t\t//length -> base = 1 meter\n\t\t//length : metric\n\t\t$Gm_base\t\t\t= function($k=0 ){ return $k * 1000000000; };\t\t\t\t\t\t\t// M = Km * 1000000000\n\t\t$base_Gm\t\t\t= function($m=0 ){ return $m / 1000000000; };\t\t\t\t\t\t\t// Km = M / 1000000000\n\t\t$Mm_base\t\t\t= function($k=0 ){ return $k * 1000000; };\t\t\t\t\t\t\t\t// M = Km * 1000000 \n\t\t$base_Mm\t\t\t= function($m=0 ){ return $m / 1000000; };\t\t\t\t\t\t\t\t// Km = M / 1 000 000\n\t\t$km_base\t\t\t= function($k=0 ){ return $k * 1000; };\t\t\t\t\t\t\t\t\t\t// M = Km * 1000\n\t\t$base_km\t\t\t= function($m=0 ){ return $m / 1000; };\t\t\t\t\t\t\t\t\t\t// Km = M / 1000\n\t\t$hm_base\t\t\t= function($hm=0 ){ return $hm * 100;};\t\t\t\t\t\t\t\t\t\t\t// m = hm / 100\n\t\t$base_hm\t\t\t= function($m=0 ){ return $m / 100;};\t\t\t\t\t\t\t\t\t\t\t// hm = m * 100\n\t\t$dam_base\t\t\t= function($dm=0 ){ return $dm * 10;};\t\t\t\t\t\t\t\t\t\t\t// m = hm / 10\n\t\t$base_dam\t\t\t= function($m=0 ){ return $m / 10;};\t\t\t\t\t\t\t\t\t\t\t// hm = m * 10\n\t\t$m_base\t\t\t\t= function($m=0 ){ return $m; };\t \t\t\t\t\t\t\t\t\t\t\t\t\t// M = M\n\t\t$base_m\t\t\t\t= function($m=0 ){ return $m; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t// M = M\n\t\t$dm_base \t\t\t= function($dm=0 ){ return $dm / 10;};\t\t\t\t\t\t\t \t\t\t// dm = m /10\n\t\t$base_dm\t\t\t= function($m=0 ){ return $m * 10;};\t\t\t\t\t\t\t\t\t\t\t// m = dm * 10\n\t\t$cm_base\t\t\t= function($cm=0 ){ return $cm / 100;};\t\t\t\t\t\t\t\t\t\t\t// M = Cm * 100\n\t\t$base_cm\t\t\t= function($m=0 ){ return $m * 100;};\t\t\t\t\t\t\t\t\t\t\t// M = Cm / 100\n\t\t$mm_base\t\t\t= function($mm=0 ){ return $mm / 1000;};\t\t\t\t\t\t\t\t\t\t// m = mm / 1000\n\t\t$base_mm\t\t\t= function($m=0 ){ return $m * 1000;};\t\t\t\t\t\t\t\t\t\t// mm = m * 1000\n\t\t$mu_base \t\t= function($mc=0 ){ return $mc / 1000000;};\t\t\t\t\t\t\t\t\t// m = mc / 1000000 \n\t\t$base_mu \t\t= function($m=0 ){ return $m * 1000000;};\t\t\t\t\t\t\t\t\t// mc = m * 1000000\n\t\t$nm_base\t\t\t= function($nm=0 ){ return $nm / 1000000000;};\t\t\t\t\t\t\t// m = nm * 1000000000\n\t\t$base_nm\t\t\t= function($m=0 ){ return $m * 1000000000;};\t\t\t\t\t\t\t// nm = m / 1000000000\n\t\t$a_base\t\t\t\t= function($a=0 ){ return $a / 10000000000;};\t\t\t\t\t\t\t// m = a / 10000000000\n\t\t$base_a\t\t\t\t= function($m=0 ){ return $m * 10000000000;};\t\t\t\t\t\t\t// a = m * 10000000000\n\t\t//length : imperial\n\t\t$mi_base\t\t\t= function($mi=0 ){ return $mi * 1609.344;};\t\t\t\t\t\t\t\t// m = mi * 1609,344\n\t\t$base_mi\t\t\t= function($m=0 ){ return $m / 1609.344;};\t\t\t\t\t\t\t\t// mi = m / 1609,344\n\t\t$nmi_base \t\t= function($nm=0 ){ return $nm * 1852.00;};\t\t\t\t\t\t\t\t\t// m = nmi * 1852.00\n\t\t$base_nmi \t\t= function($m=0 ){ return $m / 1852.00;};\t\t\t\t\t\t\t\t\t// nmi= m / 1852.00\t\t\t\t\t\t\t\n\t\t$ch_base\t\t\t= function($ch=0 ){ return $ch * 20.1168;};\t\t\t\t\t\t\t\t\t// m = ch * 20.1168\t\t\t\t\t\t\n\t\t$base_ch\t\t\t= function($m=0 ){ return $m / 20.1168;};\t\t\t\t\t\t\t\t // ch = m / 20.1168\n\t\t$yd_base\t\t\t= function($yd=0 ){ return $yd * .9144;};\t\t\t\t\t\t\t\t \t// m = yd * .9144\n\t\t$base_yd\t\t\t= function($m=0 ){ return $m / .9144;};\t\t\t\t\t\t\t\t \t// yd = m / .9144\n\t\t$ft_base\t\t\t= function($ft=0 ){ return $ft * .3048;};\t\t\t\t\t\t\t\t \t// m = ft * .3048\n\t\t$base_ft\t\t\t= function($m=0 ){ return $m / .3048;};\t\t\t\t\t\t\t\t \t// ft = m / .3048\n\t\t$in_base\t\t\t= function($in=0 ){ return $in * .0254;};\t\t\t\t\t\t\t\t \t// m = in * .0254\n\t\t$base_in\t\t\t= function($m=0 ){ return $m / .0254;};\t\t\t\t\t\t\t\t \t// in = m / .0254\n\t\t$th_base\t\t\t= function($th=0 ){ return $th * .0254 / 1000;};\t\t\t\t\t\t// m = th * (.0254/1000)\n\t\t$base_th\t\t\t= function($m=0 ){ return $m / .0254 / 1000;};\t\t\t\t\t\t// th = m / (.0254/1000)\n\t\t//weight -> base = 1 kg\n\t\t//weight : metric\n\t\t$kg_base\t\t\t= function($kg=0 ){ return $kg; };\t\t\t\t\t\t\t\t\t\t\t\t\t// Kg = Kg\n\t\t$base_kg\t\t\t= function($k=0 ){ return $k; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Kg = Kg\n\t\t$hg_base\t\t\t= function($hg=0 ){ return $hg / 10; };\t\t\t\t\t\t\t\t\t\t\t// hg = Kg / 10\n\t\t$base_hg\t\t\t= function($k=0 ){ return $k * 10; };\t\t\t\t\t\t\t\t\t\t\t// Kg = hg * 10\n\t\t$dag_base\t\t\t= function($da=0 ){ return $da / 100; };\t\t\t\t\t\t\t\t\t\t// dag= Kg / 100\n\t\t$base_dag\t\t\t= function($k=0 ){ return $k * 100; };\t\t\t\t\t\t\t\t\t\t// Kg = dag * 100\n\t\t$g_base\t\t\t\t= function($g=0 ){ return $g / 1000; };\t\t\t\t\t\t\t\t\t\t// g = Kg / 1000\n\t\t$base_g\t\t\t\t= function($k=0 ){ return $k * 1000; };\t\t\t\t\t\t\t\t\t\t// Kg = g * 1000\n\t\t$ct_base\t\t\t= function($ct=0 ){ return $ct / 5000; };\t\t\t\t\t\t\t\t\t\t// ct = kg ×5000\n\t\t$base_ct\t\t\t= function($kg=0 ){ return $kg * 5000; };\t\t\t\t\t\t\t\t\t\t// kg = ct / 5000\n\t\t$dg_base\t\t\t= function($dg=0 ){ return $dg / 10000; };\t\t\t\t\t\t\t\t\t// dg = Kg / 10000\n\t\t$base_dg\t\t\t= function($k=0 ){ return $k * 10000; };\t\t\t\t\t\t\t\t\t// Kg = dg * 10000\n\t\t$cg_base\t\t\t= function($cg=0 ){ return $cg / 100000; };\t\t\t\t\t\t\t\t\t// cg = Kg / 100000\n\t\t$base_cg\t\t\t= function($k=0 ){ return $k * 100000; };\t\t\t\t\t\t\t\t\t// Kg = cg * 100000\n\t\t$mg_base\t\t\t= function($mg=0 ){ return $mg / 1000000; };\t\t\t\t\t\t\t\t// mg = Kg / 1000000\n\t\t$base_mg\t\t\t= function($k=0 ){ return $k * 1000000; };\t\t\t\t\t\t\t\t// Kg = mg * 1000000\n\t\t$mcg_base\t\t\t= function($mc=0 ){ return $mc / 1000000000;};\t\t\t\t\t\t\t// mcg= Kg / 1000000000\n\t\t$base_mcg\t\t\t= function($k=0 ){ return $k * 1000000000; };\t\t\t\t\t\t\t// Kg = mcg * 1000000000\n\t\t//weight : imperial\n\t\t$cwt_base\t\t\t= function($cwt=0){ return $cwt * 0.45359237 * 112; };\t\t\t// kg = ...\n\t\t$base_cwt\t\t\t= function($k=0 ){ return $k / 0.45359237 / 112; };\t\t\t// oz = ...\n\t\t$st_base\t\t\t= function($st=0 ){ return $st * 0.45359237 * 14; };\t\t\t\t// kg = ...\n\t\t$base_st\t\t\t= function($k=0 ){ return $k / 0.45359237 / 14; };\t\t\t\t// oz = ...\n\t\t$lb_base\t\t\t= function($lb=0 ){ return $lb * 0.45359237; };\t\t\t\t\t\t// kg = lb * 0.45359237 —Weights and Measures Act, 1963, Section 1(1)\n\t\t$base_lb\t\t\t= function($k=0 ){ return $k / 0.45359237; };\t\t\t\t\t\t// lb = lb / 0.45359237\n\t\t$oz_base\t\t\t= function($oz=0 ){ return $oz * 0.45359237 / 16; };\t\t\t\t// kg = oz * (0.45359237/16)/16\n\t\t$base_oz\t\t\t= function($k=0 ){ return $k / 0.45359237 * 16; };\t\t\t\t// oz = lb / (0.45359237/16)\n\t\t$dr_base\t\t\t= function($dr=0 ){ return $dr * 0.45359237 / 16 / 16; };\t// kg = ...\n\t\t$base_dr\t\t\t= function($k=0 ){ return $k / 0.45359237 * 16 * 16; };\t// oz = ...\n\t\t$gr_base\t\t\t= function($gr=0 ){ return $gr * 0.45359237 / 7000; };\t\t\t// kg = oz * (0.45359237/16)\n\t\t$base_gr\t\t\t= function($k=0 ){ return $k / 0.45359237 * 7000; };\t\t\t// oz = lb / (0.45359237/16)\n\t\t//time -> base = 1 second\n\t\t$ms_base\t\t\t= function($m=0 ){ return $m * 0.001; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$base_ms\t\t\t= function($s=0 ){ return $s / 0.001; };\t\n\t\t$s_base\t\t\t\t= function($s=0 ){ return $s; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$base_s\t\t\t\t= function($s=0 ){ return $s; };\t\n\t\t$mn_base\t\t\t= function($m=0 ){ return $m * 60; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$base_mn\t\t\t= function($s=0 ){ return $s / 60; };\t\n\t\t$hr_base\t\t\t= function($h=0 ){ return $h * 3600; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$base_hr\t\t\t= function($s=0 ){ return $s / 3600; };\t\n\t\t$d_base\t\t\t\t= function($d=0 ){ return $d * 86400; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$base_d\t\t\t\t= function($s=0 ){ return $s / 86400; };\t\n\t\t$w_base\t\t\t\t= function($d=0 ){ return $d * 604800; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$base_w\t\t\t\t= function($s=0 ){ return $s / 604800; };\n\t\t$mt_base\t\t\t= function($d=0 ){ return $d * 2628000; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$base_mt\t\t\t= function($s=0 ){ return $s / 2628000; };\n\t\t$yr_base\t\t\t= function($d=0 ){ return $d * 31536000; };\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$base_yr\t\t\t= function($s=0 ){ return $s / 31536000; };\t\n\t\t//digital storage -> base = 1byte\n\t\t$bit_base\t\t\t\t= function($x=0 ){ return $x / 8; };\n\t\t$base_bit\t\t\t\t= function($x=0 ){ return $x * 8; };\n\t\t$B_base\t\t\t\t\t= function($x=0 ){ return $x; }; \n\t\t$base_B\t\t\t\t\t= function($x=0 ){ return $x; };\n\t\t$kB_base\t\t\t\t= function($x=0 ){ return $x * pow(10,3); }; \n\t\t$base_kB\t\t\t\t= function($x=0 ){ return $x / pow(10,3); };\n\t\t$MB_base\t\t\t\t= function($x=0 ){ return $x * pow(10,6); };\n\t\t$base_MB\t\t\t\t= function($x=0 ){ return $x / pow(10,6); };\n\t\t$GB_base\t\t\t\t= function($x=0 ){ return $x * pow(10,9); };\n\t\t$base_GB\t\t\t\t= function($x=0 ){ return $x / pow(10,9); };\n\t\t$TB_base\t\t\t\t= function($x=0 ){ return $x * pow(10,12); };\n\t\t$base_TB\t\t\t\t= function($x=0 ){ return $x / pow(10,12); };\n\t\t$PB_base\t\t\t\t= function($x=0 ){ return $x * pow(10,15); };\n\t\t$base_PB\t\t\t\t= function($x=0 ){ return $x / pow(10,15); };\n\t\t$EB_base\t\t\t\t= function($x=0 ){ return $x * pow(10,18); };\n\t\t$base_EB\t\t\t\t= function($x=0 ){ return $x / pow(10,18); };\n\t\t$ZB_base\t\t\t\t= function($x=0 ){ return $x * pow(10,21); };\n\t\t$base_ZB\t\t\t\t= function($x=0 ){ return $x / pow(10,21); };\n\t\t$YB_base\t\t\t\t= function($x=0 ){ return $x * pow(10,24); };\n\t\t$base_YB\t\t\t\t= function($x=0 ){ return $x / pow(10,24); };\n\t\t$kiB_base\t\t\t\t= function($x=0 ){ return $x * pow(2,10); };\n\t\t$base_kiB\t\t\t\t= function($x=0 ){ return $x / pow(2,10); };\n\t\t$MiB_base\t\t\t\t= function($x=0 ){ return $x * pow(2,20); };\n\t\t$base_MiB\t\t\t\t= function($x=0 ){ return $x / pow(2,20); };\n\t\t$GiB_base\t\t\t\t= function($x=0 ){ return $x * pow(2,30); };\n\t\t$base_GiB\t\t\t\t= function($x=0 ){ return $x / pow(2,30); };\n\t\t$TiB_base\t\t\t\t= function($x=0 ){ return $x * pow(2,40); };\n\t\t$base_TiB\t\t\t\t= function($x=0 ){ return $x / pow(2,40); };\n\t\t$PiB_base\t\t\t\t= function($x=0 ){ return $x * pow(2,50); };\n\t\t$base_PiB\t\t\t\t= function($x=0 ){ return $x / pow(2,50); };\n\t\t$EiB_base\t\t\t\t= function($x=0 ){ return $x * pow(2,60); };\n\t\t$base_EiB\t\t\t\t= function($x=0 ){ return $x / pow(2,60); };\n\t\t$ZiB_base\t\t\t\t= function($x=0 ){ return $x * pow(2,70); };\n\t\t$base_kiZ\t\t\t\t= function($x=0 ){ return $x / pow(2,70); };\n\t\t$YiB_base\t\t\t\t= function($x=0 ){ return $x * pow(2,80); };\n\t\t$base_kiY\t\t\t\t= function($x=0 ){ return $x / pow(2,80); };\n\t\t//speed -> base = kmph\n\t\t$kmh_base\t\t\t\t= function($x=0 ){ return $x; };\n\t\t$base_kmh\t\t\t\t= function($x=0 ){ return $x; };\n\t\t$mph_base\t\t\t\t= function($x=0 ){ return $x * 1.609344; };\n\t\t$base_mph\t\t\t\t= function($x=0 ){ return $x / 1.609344; };\n\t\t$fts_base\t\t\t\t= function($x=0 ){ return $x * 1.09728; };\n\t\t$base_fts\t\t\t\t= function($x=0 ){ return $x / 1.09728; };\n\t\t$mps_base\t\t\t\t= function($x=0 ){ return $x * 3.6; };\n\t\t$base_mps\t\t\t\t= function($x=0 ){ return $x / 3.6; };\n\t\t$kn_base\t\t\t\t= function($x=0 ){ return $x * 1.852; };\n\t\t$base_kn\t\t\t\t= function($x=0 ){ return $x / 1.852; };\n\t\t\n\t\t\n\t\t$to_base = $from.'_base';\n\t\t$to_output = 'base_'.$to;\n\t\t\n\t\tif ((!isset($$to_base))||(!isset($$to_output))){ return '{formula not found}'; } //check if the formula is available\n\t\t\n\t\t$base = $$to_base($val);\n\t\t$output_val = $$to_output($base); \n\n\t\t//decimal handling ?\n\t\t\n\t\treturn $output_val;\n\t}", "title": "" }, { "docid": "90a1c32d1cea530ff675535c26fb24e7", "score": "0.5075112", "text": "abstract public function toCMY();", "title": "" }, { "docid": "6dafb7f539684b635189517c8ec298ba", "score": "0.50718725", "text": "function convertGPS($co_ord)\n\t{\n\t\tif(is_float($co_ord))\n\t\t{\n\t\t\treturn $co_ord;\n\t \t}\n\t\telse\n\t \t{\n\t \t\t$co_ord = preg_replace('([a-bA-Z]\\ )?(\\��)?(\\')?(\\\")?', '', $co_ord);\n\t \t\t$co_ordArray = split(' ', $co_ord);\n\t\t\t\n\t\t\t$degrees = isset($co_ordArray[0])? $co_ordArray[0]:0;\n\t\t\t$minutes = isset($co_ordArray[1])? ($co_ordArray[1]/60):0;\n\t\t\t$seconds = isset($co_ordArray[2])? ($co_ordArray[2]/3600):0;\n\t\t\t\n\t\t\t\n\t\t\t$decimal_co_ord = $degrees + $minutes + $seconds;\n\t\t\treturn $decimal_co_ord;\n\t \t}\n\t}", "title": "" }, { "docid": "b87005e643556b1da81bf2490d0ce03a", "score": "0.5054969", "text": "public function getM10()\n {\n return $this->m10;\n }", "title": "" }, { "docid": "ae0acbb59c950c7322e7f6d35af6f90b", "score": "0.5051273", "text": "function ModeRWX2Octal($Mode_rwx) {\n\tif ( ! preg_match(\"/[-d]?([-r][-w][-xsS]){2}[-r][-w][-xtT]/\", $Mode_rwx) )\n\t\tdie(\"wrong <TT>-rwx</TT> mode in ModeRWX2Octal('<TT>$Mode_rwx</TT>')\");\n\t$Mrwx = substr($Mode_rwx, -9); // 9 chars from the right-hand side\n\t$ModeDecStr = (preg_match(\"/[sS]/\",$Mrwx[2]))?4:0; // pick out sticky \n\t$ModeDecStr .= (preg_match(\"/[sS]/\",$Mrwx[5]))?2:0; // _ bits and change\n\t$ModeDecStr .= (preg_match(\"/[tT]/\",$Mrwx[8]))?1:0; // _ to e.g. '020'\n\t$Moctal = $ModeDecStr[0]+$ModeDecStr[1]+$ModeDecStr[2]; // add them\n\t$Mrwx = str_replace(array('s','t'), \"x\", $Mrwx); // change execute bit \n\t$Mrwx = str_replace(array('S','T'), \"-\", $Mrwx); // _ to on or off\n\t$trans = array('-'=>'0','r'=>'4','w'=>'2','x'=>'1'); // prepare for strtr\n\t$ModeDecStr .= strtr($Mrwx,$trans); // translate to e.g. '020421401401'\n\t$Moctal .= $ModeDecStr[3]+$ModeDecStr[4]+$ModeDecStr[5]; // continue \n\t$Moctal .= $ModeDecStr[6]+$ModeDecStr[7]+$ModeDecStr[8]; // _ adding \n\t$Moctal .= $ModeDecStr[9]+$ModeDecStr[10]+$ModeDecStr[11]; // _ triplets\n\treturn $Moctal; // returns octal mode, e.g. '2755' from above.\n}", "title": "" }, { "docid": "925fcb7d7c02ff7ebfcb35e6493a941d", "score": "0.5044181", "text": "public function symbol($iso);", "title": "" }, { "docid": "098e27a2e8b051cb6c75a650152afd2e", "score": "0.50370765", "text": "public function getRawNumber(): string;", "title": "" }, { "docid": "33a9b665bd742baadfefe077f9e448b4", "score": "0.50348765", "text": "private function parseToReais($valor) {\n $valor = 'R$ ' . number_format($valor, 2, ',', '.');\n return $valor;\n }", "title": "" }, { "docid": "f2f31ad20b8890a1d412c080e748c255", "score": "0.5028301", "text": "function getMois($date) {\r\n @list($jour, $mois, $annee) = explode('/', $date);\r\n if (strlen($mois) == 1) {\r\n $mois = \"0\" . $mois;\r\n }\r\n return $annee . $mois;\r\n}", "title": "" }, { "docid": "ef6d02ceac6c24f782442196ad9c04fa", "score": "0.5024662", "text": "public function getM09()\n {\n return $this->m09;\n }", "title": "" }, { "docid": "918f4200fc6906ab247c5b0cfd69c65c", "score": "0.5014431", "text": "function _GetDec($txt, $pos, $len) {\n $x = substr($txt, $pos, $len);\n $z = 0;\n for ($i=0;$i<$len;$i++) {\n $asc = ord($x[$i]);\n if ($asc>0) $z = $z + $asc*pow(256,$i);\n }\n return $z;\n }", "title": "" }, { "docid": "f0c37eab9c7cda0d0cc98a42ddb1f01a", "score": "0.49841765", "text": "function format_costo($costo)\n{\n $ret = str_replace(',', '.', $costo);\n //controllo che sia stato inserito il valore decimale\n if (strpos($ret, '.') == false) {\n $ret = $ret . '.00';\n }\n\n //controllo che non abbia un solo decimale\n if (substr($ret, strlen($ret) - 2, 1) == '.') {\n //ha un solo decimale\n $ret = $ret . '0';\n }\n return $ret;\n}", "title": "" }, { "docid": "9121f4742f9fb52102e90b234b16f24d", "score": "0.4962604", "text": "function convertCurrency($number)\n{\n $length = strlen($number);\n $currency = '';\n\n if($length == 4 || $length == 5)\n {\n // Thousand\n $number = $number / 1000;\n $number = round($number,2);\n $ext = \"Thousand\";\n $currency = $number.\" \".$ext;\n }\n elseif($length == 6 || $length == 7)\n {\n // Lakhs\n $number = $number / 100000;\n $number = round($number,2);\n $ext = \"Lac\";\n $currency = $number.\" \".$ext;\n\n }\n elseif($length == 8 || $length == 9)\n {\n // Crores\n $number = $number / 10000000;\n $number = round($number,2);\n $ext = \"Cr\";\n $currency = $number.' '.$ext;\n }\n\t\n\telseif($length == 10 || $length == 11)\n {\n // Crores\n $number = $number / 10000000;\n $number = round($number,3);\n $ext = \"Cr\";\n $currency = $number.' '.$ext;\n }\n\n\telseif($length == 12 || $length == 13)\n {\n // Crores\n $number = $number / 10000000;\n $number = round($number,4);\n $ext = \"Cr\";\n $currency = $number.' '.$ext;\n }\n \n\t elseif($length == 14 || $length == 15)\n {\n // Crores\n $number = $number / 10000000;\n $number = round($number,5);\n $ext = \"Cr\";\n $currency = $number.' '.$ext;\n }\n\t elseif($length == 16 || $length == 17)\n {\n // Crores\n $number = $number / 10000000;\n $number = round($number,6);\n $ext = \"Cr\";\n $currency = $number.' '.$ext;\n }\n\t\n\t\n\t\n return $currency;\n\n\n}", "title": "" }, { "docid": "b79c3f8792a9a315eaf498b5864c1e65", "score": "0.4958777", "text": "public function testMathematicalDigits()\n {\n for ($i = 0x1d7ce; $i < 0x1d800; $i++) {\n $a = $this->uniChar(ord('0') + ($i - 0x1d7ce) % 10);\n $b = $this->decoder->decode($this->uniChar($i));\n\n $this->assertEquals($a, $b);\n }\n }", "title": "" }, { "docid": "77fa3afadd2e407b6f9cf8d572ed8641", "score": "0.49572787", "text": "function b60to10($s)\n{\n $n = 0;\n for($i = 0; $i < strlen($s); $i++) // iterate from first to last char of $s\n {\n $c = ord($s[$i]); // put current ASCII of char into $c\n if ($c>=48 && $c<=57) { $c=$c-48; }\n else if ($c>=65 && $c<=72) { $c-=55; }\n else if ($c==73 || $c==108) { $c=1; } // typo capital I, lowercase l to 1\n else if ($c>=74 && $c<=78) { $c-=56; }\n else if ($c==79) { $c=0; } // error correct typo capital O to 0\n else if ($c>=80 && $c<=90) { $c-=57; }\n else if ($c==95) { $c=34; } // underscore\n else if ($c>=97 && $c<=107) { $c-=62; }\n else if ($c>=109 && $c<=122) { $c-=63; }\n else { $c = 0; } // treat all other noise as 0\n $n = (60 * $n) + $c;\n }\n return $n;\n}", "title": "" }, { "docid": "68fa16bae8832140887e97087918916a", "score": "0.49542475", "text": "function binnmtowm($binin){\n $binin=rtrim($binin, \"0\");\n if (!ereg(\"0\",$binin) ){\n return str_pad(str_replace(\"1\",\"0\",$binin), 32, \"1\");\n } else {\n return \"1010101010101010101010101010101010101010\";\n }\n}", "title": "" }, { "docid": "e0ce6378ff604d6ff31c148937a20319", "score": "0.49524313", "text": "#[Pure]\n public static function decoct(int $number): string\n {\n return self::decimalToOctal($number);\n }", "title": "" }, { "docid": "ee5b374b4cfe18c753500105b36ad073", "score": "0.49517354", "text": "public function abonoFormateado()\n {\n return '$' . number_format($this->abono, 2);\n }", "title": "" }, { "docid": "e689a4d5e125e0267d0bcf1d7afb7c7d", "score": "0.49450016", "text": "function hexoct2dec($value)\r\n\t\t{\r\n\t\t//As this deals with parts in IP's we can be more exclusive\r\n\t\tif(substr_count(substr($value,0,2),'0x')>0&&$this->is_hex($value))\r\n\t\t\t\t{\r\n\t\t\t\treturn hexdec($value);\r\n\t\t\t\t}\r\n\t\t\telseif($this->is_octal($value))\r\n\t\t\t\t{\r\n\t\t\t\treturn octdec($value);\t\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "5c1b3699308d5d795d39457e08c96a18", "score": "0.4939114", "text": "function completaCeros($valor,$numDigitos){\n$numCadena=str_pad($valor,$numDigitos,0,str_pad_left);\nreturn ($numCadena);\n}", "title": "" }, { "docid": "0cadf0c036c298578b3778b29b8a568e", "score": "0.49374446", "text": "function adherir_zero($hora_minuto) {\n if (strlen($hora_minuto) < 2)\n return '0' . $hora_minuto;\n return $hora_minuto;\n }", "title": "" }, { "docid": "e88ffb36a7888494ed4c540706113dec", "score": "0.49326238", "text": "function metrosValueFormat($aLabel) {\n \t//return number_format($aLabel) \n // Format '1000 french style \n return number_format($aLabel, 2, '.', ' '); \n\t}", "title": "" }, { "docid": "43607762813448b6d1b66577b8d61894", "score": "0.49299413", "text": "public function getIsoNumber () {\n\t$preValue = $this->preGetValue(\"isoNumber\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->isoNumber;\n\treturn $data;\n}", "title": "" }, { "docid": "d3230659604defbce734eadec974caf5", "score": "0.49283105", "text": "private function get_raw_value() {\n\t\treturn '27,48,0,0,0,0,31,0,0,0,0,0,127,128,0,0,0,1,255,248,0,0,0,7,255,254,0,0,0,31,255,255,0,0,0,127,255,255,0,0,0,255,255,255,0,0,127,255,255,255,0,0,255,255,255,254,0,1,255,255,255,252,12,3,255,255,255,224,19,127,255,255,252,0,33,255,255,255,254,0,65,255,255,255,254,0,129,255,255,255,254,0,15,255,255,255,254,0,8,127,255,255,255,0,16,127,255,255,255,0,16,62,127,255,255,0,32,29,191,255,254,128,32,9,111,128,204,64,0,1,107,0,102,0,0,2,98,0,35,0,0,4,70,0,33,0,0,0,132,0,16,128,0,1,8,0,0,128,0,0,8,0,0,64';\n\t}", "title": "" }, { "docid": "7d736fad5cb5726d9e5d3dba825c71da", "score": "0.49211028", "text": "public function FMoneyEn($v) { return ($v)?substr($v,0,-2).'.'.substr($v,-2):NULL; }", "title": "" }, { "docid": "787332f15602a3df3f91b99d9c8bbda5", "score": "0.49147266", "text": "function convert_numeric($num, $unit_id)\r\n{\r\n\t$sql = 'SELECT id, conversion, ref\r\n\t\t\tFROM conversion\r\n\t\t\tWHERE id=' . $unit_id;\r\n\t$result = Tempo::$db->query($sql);\r\n\t$convert = Tempo::$db->row($result);\r\n\tTempo::$db->free($result);\r\n\t\r\n\tif($convert['id'] != $convert['ref'])\r\n\t{\r\n\t\t$num .= $convert['conversion'];\r\n\t\teval(\"\\$num = $num;\");\r\n\t}\r\n\treturn $num;\r\n}", "title": "" }, { "docid": "f2cee1d5b74fb2a286dd9299d436426b", "score": "0.4863286", "text": "function decodePOLNum($oldnum) {\t$result = \"KK\";\n\treturn $result;\t\n}", "title": "" }, { "docid": "6052936f155cfd432c594244582da156", "score": "0.48597077", "text": "function Dec_to_Hex($decimal){\r\n\r\n\t/*dec = dechex($decimal);\r\n\t\r\n\tif($decimal < 0){\r\n\t\t$ret = substr($dec, 8);\r\n\t}\r\n\telse{\r\n\t\t$ret = $dec;\r\n\t}\r\n\t\r\n\treturn $ret;*/\r\n\treturn dechex((float) $decimal);\r\n\r\n}", "title": "" }, { "docid": "a0426408ac336a0dff2f70a654866df8", "score": "0.48538733", "text": "function formataMoedaSufixo($valor,$Decimais,$Sufixo)\r\n {\r\n \r\n // verifica se retornará quantidade de casas decimais espeficas\r\n if(!$Decimais)\r\n $Decimais=2;\r\n \r\n // verifica se retornará quantidade de sufixo R$\r\n if($Sufixo)\r\n return $valor = 'R$ ' . number_format($valor, $Decimais, ',', '.'); // retorna R$100.000,50\r\n else\r\n return $valor = number_format($valor, $Decimais, ',', '.'); // retorna 100.000,50\r\n }", "title": "" }, { "docid": "b615e7276f7ee74c66f15ec3996dcb3c", "score": "0.48505834", "text": "function precioNumero($itemPrecio){\n $precio = str_replace('$','',$itemPrecio); //Eliminar el símbolo Dolar\n $precio = str_replace(',','',$precio); //Eliminar la coma (separador de miles)\n return $precio; //Devolver el falor de tipo Numero\n}", "title": "" }, { "docid": "dc2381fdd07eb407b9b81e40222df2fe", "score": "0.48412374", "text": "public function data_isOctDigit() {\n\t\t\t$data = array(\n\t\t\t\tarray(array('0'), array(true)),\n\t\t\t\tarray(array('1'), array(true)),\n\t\t\t\tarray(array('2'), array(true)),\n\t\t\t\tarray(array('3'), array(true)),\n\t\t\t\tarray(array('4'), array(true)),\n\t\t\t\tarray(array('5'), array(true)),\n\t\t\t\tarray(array('6'), array(true)),\n\t\t\t\tarray(array('7'), array(true)),\n\t\t\t\tarray(array('8'), array(false)),\n\t\t\t\tarray(array('a'), array(false)),\n\t\t\t\tarray(array(chr(0)), array(false)),\n\t\t\t\tarray(array(\"\\n\"), array(false)),\n\t\t\t);\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "b728a93887acfa63a431a2e78683393e", "score": "0.48405683", "text": "function escnum($number) {\n $highNumber = 0;\n if ( $number - 256 >= 0 ) {\n $highNumber = (int)( $number / 256 );\n $number = $number - ( $highNumber * 256 );\n }\n $out = sprintf(\"\\%'.03o\", $highNumber);\n $out = $out.sprintf(\"\\%'.03o\", $number);\n\n return( $out );\n}", "title": "" }, { "docid": "4cc0105e38cbb3c9fd71a7879baf488a", "score": "0.48363155", "text": "function converterDouble($valor) {\n return str_replace(\".\", \",\", $valor);\n}", "title": "" }, { "docid": "f9c892724c9c0769309b6506196ea1c7", "score": "0.48325315", "text": "public function clearMaskMoney($valor){ \n $result = str_replace(',', '.', str_replace('.', '', str_replace('R$', '', $valor)));\n return $result;\n }", "title": "" }, { "docid": "943be3ddf29964e06c08167e267feab3", "score": "0.48300156", "text": "function celciusTofarenhait($celcius)\n{\n $convertion=($celcius *9/5)+32;\n\n echo \"$celcius celcius = $convertion farenhait\";\n\n}", "title": "" }, { "docid": "9af0ff8bd3713eb428dfecd2a5511da4", "score": "0.48246673", "text": "public function convert($number);", "title": "" }, { "docid": "b59db31b121a34fe7f05988e145dce33", "score": "0.48210785", "text": "public function getMassMoon()\n {\n return 7.35E+22; // trying scientific notation\n }", "title": "" }, { "docid": "6e6499621de0195bf67ab14dd37b9e04", "score": "0.48190036", "text": "function porciento2($porC,$neto){\r\n // a partir del precio neto y el % de utilidad y en formato de decimales\r\n return number_format($neto/((100-$porC)/100), 2, '.', '');\r\n //return $neto/((100-$porC)/100);\r\n}", "title": "" }, { "docid": "34bd797e748e8eecf81b8b55ce196238", "score": "0.48186556", "text": "public function getApfmpo24mo03()\n {\n return $this->apfmpo24mo03;\n }", "title": "" }, { "docid": "db558b92800705c0f31e2fc1911245c6", "score": "0.48176318", "text": "protected function getItoa64()\n\t{\n\t\treturn self::ITOA64;\n\t}", "title": "" }, { "docid": "a6807a108232c9bd516cf3393914e56c", "score": "0.48065343", "text": "function hexdecascii($num_hexa){\n\t$result = \"<ul>\\n\";\n\t\n\t/*On affiche notre numéro sous forme héxadécimale,\n\tpuis on le passe en format décimal pour finir avec un format\n\tASCII*/\n\t$result .= '<li>'.$num_hexa.' = '.hexdec($num_hexa).\" = '\".chr(hexdec($num_hexa)).\"'</li>\\n\";\n\t\n\t//On ferme notre liste\n\t$result .= \"</ul>\\n\";\n\t\n\treturn $result;\n}", "title": "" }, { "docid": "371eb989261a871e5f5ee4290f429b35", "score": "0.48059663", "text": "function prix_format($prix){\n // sur joyent : le point est converti en virgule,\n // mais le symbole euro n'est pas affiché (EUR uniquement)\n setlocale(LC_ALL,'fr_FR.UTF-8');\n return $prix;\n}", "title": "" }, { "docid": "30816a71f2fc6169d448fc2e18dc4b9a", "score": "0.4802643", "text": "function OctalEscape($arg) {\n $output = \"\";\n /*switch(strlen($arg)) {\n case 3:\n\n }*/\n }", "title": "" }, { "docid": "6d902079d9fd492260d1a405be46503b", "score": "0.47998622", "text": "function cek_perpuluhan($perpuluhan,$format)\n{ \n\n\t\n\tif($format==\"matawang\")\n\t\t{\n\t\t\t\t\n\t\tif(strlen($perpuluhan)>2)\n\t\t\t{\n\t\t\t\t$perpuluhan=round('0.'.$perpuluhan,2);\n\t\t\t\t\t\n\t\t\t\t$perpuluhan=substr($perpuluhan,2,2);\n\t\t\t\n\t\t\t}\n\t\t\tif(strlen($perpuluhan)==1)\n\t\t\t{\n\t\t\t\t$perpuluhan=$perpuluhan.'0';\n\t\t\t}\n\t\t\t\n\t\t\tif(strlen($perpuluhan)==2 && $perpuluhan!='00')\n\t\t\t{\n\t\t\t\t$perpuluhan_baru=belas_puluh($perpuluhan);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tif($perpuluhan!='0')\n\t\t\t\t{\n\t\t\t\t\t$perpuluhan_baru=digit($perpuluhan);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t$arr_per=str_split($perpuluhan,1);\n\t\t\tforeach($arr_per as $num)\n\t\t\t{\n\t\t\t$perpuluhan_baru.=\" \".digit($num);\n\t\t\t}\n\t\t\n\t}\t\n\t\treturn $perpuluhan_baru;\n}", "title": "" }, { "docid": "0d642cad1cf0e57ecfe5c303f8370c34", "score": "0.47964782", "text": "function l_to_romawi($number) {\n $n = '';\n\n $romawi = array('', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X',\n 20 => 'XX', 30 => 'XXX', 40 => 'XL', 50 => 'L', 60 => 'LX',\n 70 => 'LXX', 80 => 'LXXX', 90 => 'XC', 100 => 'C', 200 => 'CC',\n 300 => 'CCC', 400 => 'CD', 800 => 'DCCC', 900 => 'CM', 1000 => 'M',\n 2000 => 'MM', 3000 => 'MMM');\n\n if (array_key_exists($number, $romawi)) {\n $n = $romawi[$number];\n }\n else if ($number >= 11 && $number <= 99) {\n $i = $number % 10;\n $n = $romawi[$number-$i].$this->l_to_romawi($number%10);\n }\n else if ($number >= 101 && $number <= 999) {\n $i = $number % 100;\n $n = $romawi[$number-$i].$this->l_to_romawi($number%100);\n }\n else {\n $i = $number % 1000;\n $n = $romawi[$number-$i].$this->l_to_romawi($number%1000);\n }\n\n return $n;\n }", "title": "" }, { "docid": "b025cb1a6daa572b628aef2c6e1a6497", "score": "0.47960985", "text": "public function getApfmpur24mo10()\n {\n return $this->apfmpur24mo10;\n }", "title": "" }, { "docid": "25cdd24f488533a1e3fd7b5dc323961a", "score": "0.4790898", "text": "public function millionToEngHelper($rnumber,$sofar,$first) {\n\n //return strcmp($rnumber, '0');\n\n if (strcmp($rnumber,'1') == 0) {\n if ($first) {\n return 'One'.$sofar;\n //return 'หนึ่ง' . $sofar;\n }\n else {\n return 'One Million'.$sofar;\n //return 'หนึ่งล้าน' . $sofar;\n }\n }\n else {\n if (strlen($rnumber) > 6) {\n if ($first) {\n return $this->millionToEngHelper(substr($rnumber,6),$this->integerToEngHelper($rnumber,1,'').$sofar,false);\n }\n else {\n return $this->millionToEngHelper(substr($rnumber,6),$this->integerToEngHelper($rnumber,1,'').'Million'.$sofar,false);\n }\n }\n else {\n if ($first) {\n return $this->integerToEngHelper($rnumber,1,'').$sofar;\n }\n else {\n return $this->integerToEngHelper($rnumber,1,'').' Million'.$sofar;\n }\n }\n }\n }", "title": "" }, { "docid": "08407bb1857fb80d48f133e2ae1ab54c", "score": "0.47872686", "text": "public static function metersToCm($value){\n return round( ($value * self::RMCM), 2);\n }", "title": "" }, { "docid": "1aa4f2208a176941ed4f9d44914e6965", "score": "0.47854117", "text": "public function getCcExpMonth()\n {\n $month = $this->getInfo()->getCcExpMonth();\n /*if ($month < 10) {\n $month = '0' . $month;\n }*/\n return $month;\n }", "title": "" }, { "docid": "27106f8de15c78d1b3fc4494f5175759", "score": "0.47815043", "text": "public abstract function toStandardUnit( $value );", "title": "" }, { "docid": "c7d079024ea2bc6a9c0d53d688acb963", "score": "0.4772887", "text": "function sevazio($valor){\n\tif(empty($valor)){ return \"0.00\"; }\t\n\telse{ return $valor; }\n}", "title": "" }, { "docid": "b18eb5707c1e9ad917753e798d90f37a", "score": "0.47693238", "text": "public function number();", "title": "" }, { "docid": "0ad2663bad6a5eca4d1b171240a37c06", "score": "0.47665322", "text": "function getMois($date)\n{\n @list($jour, $mois, $annee) = explode('/', $date);\n unset($jour);\n if (strlen($mois) == 1) {\n $mois = '0' . $mois;\n }\n return $annee . $mois;\n}", "title": "" }, { "docid": "6c172c2bbbac043092a11f3781743a31", "score": "0.4760272", "text": "public function getApfmpo24mo11()\n {\n return $this->apfmpo24mo11;\n }", "title": "" }, { "docid": "5e23f598e9b3c28078889ddda5eb298b", "score": "0.47598708", "text": "function ajusta_val($arreglo_datos)\r\n{\r\n\t//El arreglo de entrada es de decimales\r\n\tif (count($arreglo_datos)==1)\r\n\t\treturn $arreglo_datos[0];\r\n\telse\r\n\t{\r\n\t\t$cadena_bit='';\r\n\t\tfor ($i=0; $i<count($arreglo_datos); $i++)\r\n\t\t{\r\n\t\t\t$cadena_bit.=decbin($arreglo_datos[$i]);\r\n\t\t}\r\n\t\t$valor=bindec($cadena_bit);\r\n\t\treturn $valor;\r\n\t}\r\n}", "title": "" }, { "docid": "a0955c835d0854be2d4b9c3a20861c5a", "score": "0.4757997", "text": "function _PutDec(&$txt, $val, $pos, $len) {\n $x = '';\n for ($i=0;$i<$len;$i++) {\n if ($val==0) {\n $z = 0;\n } else {\n $z = intval($val % 256);\n if (($val<0) && ($z!=0)) { // ($z!=0) is very important, example: val=-420085702\n // special opration for negative value. If the number id too big, PHP stores it into a signed integer. For example: crc32('coucou') => -256185401 instead of 4038781895. NegVal = BigVal - (MaxVal+1) = BigVal - 256^4\n $val = ($val - $z)/256 -1;\n $z = 256 + $z;\n } else {\n $val = ($val - $z)/256;\n }\n }\n $x .= chr($z);\n }\n $txt = substr_replace($txt, $x, $pos, $len);\n }", "title": "" }, { "docid": "78c00e5dff0d5a82b3f8628dc937da43", "score": "0.47542018", "text": "function bodb_numeric2($sValue,$dec=\".\",$thou=\"\")\n{\n $numeric2 = 0.00;\n if(!is_null($sValue))\n $numeric2 = number_format($sValue,2,$dec,$thou);\n return $numeric2;\n}", "title": "" }, { "docid": "63ee43a484c1cc1b5a7c8d430b0e17c4", "score": "0.47541562", "text": "function valide($jour,$mois,$year){\r\n if($mois == 01 || $mois == 02 || $mois == 05 || $mois == 07 || $mois == 08 || $mois == 10 || $mois == 12 &&\r\n $jour > 31){\r\n $temp = 31;\r\n $jour = -$jour + $temp;\r\n $mois++;\r\n if($mois == 13){\r\n $mois=01;\r\n $year++;\r\n }\r\n \r\n return $jour.\"/\".$mois.\"/\".$year;\r\n }else if($mois == 04 || $mois == 06 || $mois == 09 || $mois == 11 && $jour>30){\r\n $temp=30;\r\n $jour=-$jour+$temp;\r\n $mois++;\r\n return $jour.\"/\".$mois.\"/\".$year;\r\n }else if($mois == 02 && $jour > 29){\r\n $temp=29;\r\n $jour=-$jour+$temp;\r\n $mois++;\r\n return $jour.\"/\".$mois.\"/\".$year;\r\n }else{\r\n return $jour.\"/\".$mois.\"/\".$year;\r\n }\r\n }", "title": "" }, { "docid": "36003286456ee59d08e88bad4f2b9435", "score": "0.47488195", "text": "function utilgsmnumber($number){\n return $number;\n }", "title": "" }, { "docid": "34164ae47c9a39a96dc095840c7d990c", "score": "0.47461143", "text": "public function convert();", "title": "" }, { "docid": "54e84ca958885f50cb7e43e2858f77cf", "score": "0.47455275", "text": "function letters_to_num($v){\n\t\t$l = substr($v, -1);\n\t\t$ret = substr($v, 0, -1);\n\t\tswitch(strtoupper($l)){\n\t\tcase 'P':\n\t\t\t$ret *= 1024;\n\t\tcase 'T':\n\t\t\t$ret *= 1024;\n\t\tcase 'G':\n\t\t\t$ret *= 1024;\n\t\tcase 'M':\n\t\t\t$ret *= 1024;\n\t\tcase 'K':\n\t\t\t$ret *= 1024;\n\t\t\tbreak;\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "a813bc0e7ca770c638fad86b0264cdd1", "score": "0.47442412", "text": "public function getM() {\n return $this->fix_range(168.6562 + 4.0923344368 * $this->getDateObject()->getJD2000(), 0, 360, 360);\n }", "title": "" }, { "docid": "2d4f0c0f6589465f93a86a47a6e4187c", "score": "0.47372136", "text": "function aZ($num){\n if(strlen($num) <= 1){\n $num = '0'.$num;\n }\n return $num;\n}", "title": "" }, { "docid": "8bec6b6997c16787080bce712ba8ad69", "score": "0.47286642", "text": "function DMSToDecimal ($dms)\r{\r\treturn $dms[\"degrees\"] + ($dms[\"minutes\"] / 60.0) + ($dms[\"seconds\"] / 3600.0);\r}", "title": "" }, { "docid": "a162f545dacc2611329c1c70b9f3a955", "score": "0.4728617", "text": "public function toNative()\n {\n $value = $this->value;\n\n return \\intval($value);\n }", "title": "" }, { "docid": "b5a0c7d2841ff8f0f3a6da3ce204b767", "score": "0.4728007", "text": "function moeda($str=''){\n $valor = false;\n if($str!=''){\n $valor = number_format($str, 2, ',', '.');\n }\n return $valor;\n}", "title": "" }, { "docid": "6f3c26d3331dce8a1ced5e45001b18d5", "score": "0.47261405", "text": "public function __tostring()\n {\n return \"AT+CNUM\\r\";\n }", "title": "" }, { "docid": "0f253a05404138a6a1a17ddd75ca5120", "score": "0.4724166", "text": "function jdtojulian ($julianday) {}", "title": "" } ]
df66a483f6e18d5a10fb12adb5cb1220
Gets the authenticated User. This method is responsible for returning the authenticated user. If there is no authenticated user or the user does not implement the UserIdentifierInterface an AccessDeniedException should be thrown.
[ { "docid": "8b5e33dda7ae7b4c1301e4c046103207", "score": "0.7097644", "text": "public function getAuthenticatedUser();", "title": "" } ]
[ { "docid": "3bcbc53d1f0a349c31ea92e3b12ccc8b", "score": "0.78422874", "text": "protected function getAuthenticatedUser()\n {\n return $this->userProvider->getAuthenticatedUser();\n }", "title": "" }, { "docid": "ae1a5c3a90f6af4d49587a86d269a471", "score": "0.7719176", "text": "protected function userAuthenticated()\r\n {\r\n return $this->userRepository->find(Authorizer::getResourceOwnerId());\r\n }", "title": "" }, { "docid": "3b49c69db8b770b8a0e15100a8678f1f", "score": "0.7586613", "text": "private function getAuthenticatedUser()\r\n {\r\n $tokenStorage = $this->container->get('security.token_storage');\r\n return $tokenStorage->getToken()->getUser();\r\n }", "title": "" }, { "docid": "619c6d53c3e7d7820cf8335c4e0fec4f", "score": "0.7309144", "text": "public static function get_authorized_user()\n {\n if (self::$authorized_user === NULL)\n {\n $uid = Session::get('uid');\n if (!isset($uid))\n {\n return NULL;\n }\n\n try\n {\n self::$authorized_user = User::find($uid);\n }\n catch (Exception $e)\n {\n $this->logout();\n }\n }\n return self::$authorized_user;\n }", "title": "" }, { "docid": "ed41c3401fadb5bad7f934a25b1f951b", "score": "0.72244775", "text": "public function user() : Authable\n {\n if (!$this->loggedIn()) {\n throw new NoAuthableLoggedInException;\n }\n\n return $this->retrieveUser();\n }", "title": "" }, { "docid": "9ceeb5e04513747325564684845efc3c", "score": "0.72030085", "text": "public function getAuthenticatedUser()\n {\n return $this->client->get(new Route(['account']));\n }", "title": "" }, { "docid": "7fae56008a258bcee1489e8b83bd86fd", "score": "0.71034116", "text": "public function getLoggedUser()\r\n {\r\n $identity = $this->auth->getIdentity();\r\n return $this->getUserByIdentity($identity);\r\n }", "title": "" }, { "docid": "8e6da5f9bb708dcc8bfabfb8aa5906c2", "score": "0.7066805", "text": "public function authenticate()\n {\n if (! is_null($user = $this->user())) {\n return $user;\n }\n\n throw new AuthenticationException();\n }", "title": "" }, { "docid": "1b7c63bea1da5a8c6d4308ad0be14813", "score": "0.70360565", "text": "public function getAuthenticatedUser()\n {\n if (!$this->authenticatedUser) {\n try {\n $jwtObject = JWTAuth::parseToken();\n $this->authenticatedUser = $jwtObject->authenticate();\n } catch (TokenInvalidException $tie) {\n throw new AuthenticationException(null, 'Invalid Token');\n } catch (TokenExpiredException $e) {\n throw new AuthenticationException(null, 'Token expired');\n } catch (JWTException $e) {\n throw new AuthenticationException(null, 'Authorization Token not found');\n }\n\n if (JWTAuth::parseToken()->getClaim('origin') != $this->claim) {\n throw new AuthenticationException(null, 'Invalid Token');\n }\n\n if (is_bool($this->authenticatedUser)) {\n throw new AuthenticationException(null, 'User not found ('. $jwtObject->getPayload()->get('sub') .')');\n }\n }\n\n\n return $this->authenticatedUser;\n }", "title": "" }, { "docid": "d7d535b6e39f28eb823cb64b4d91a27a", "score": "0.7005896", "text": "public function authenticate()\n {\n if (! is_null($user = $this->user())) {\n return $user;\n }\n\n throw new AuthenticationException($this);\n }", "title": "" }, { "docid": "1b2ee4d9e26201852d5349ae5cc326c6", "score": "0.6963103", "text": "protected function getAuthUser() {\n return $this->session->getAuthUser();\n }", "title": "" }, { "docid": "a62dbc1b8d29de63c46ccb77baf76409", "score": "0.6934697", "text": "public function getUser()\n {\n if ($this->user === null) {\n $this->user = UserRepository::instance()->findOne(['id' => $this->getUserId()]);\n }\n\n return $this->user;\n }", "title": "" }, { "docid": "bd46a062df9ebb78e168951a6dfd56dd", "score": "0.6902578", "text": "public function user()\n {\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n\n $user = (new AuthenticationController($this->app['request']))->checkAuthentication();\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "411ff23f6beb0a5ddfcf9bc443f9cfbc", "score": "0.680157", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = $this->findIdentity($this->account);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "838723beca9ef1796cc8b5b8cf83cf8c", "score": "0.6780369", "text": "public function user()\n {\n if ($this->loggedOut) {\n return;\n }\n // $this->session->start();\n\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n $id = $this->session->get($this->getName());\n\n // First we will try to load the user using the identifier in the session if\n // one exists. Otherwise we will check for a \"remember me\" cookie in this\n // request, and if one exists, attempt to retrieve the user using that.\n if (! is_null($id) && $this->user = $this->provider->retrieveById($id)) {\n $this->fireAuthenticatedEvent($this->user);\n }\n\n // If the user is null, but we decrypt a \"recaller\" cookie we can attempt to\n // pull the user data on that cookie which serves as a remember cookie on\n // the application. Once we have a user we can return it to the caller.\n if (is_null($this->user) && ! is_null($recaller = $this->recaller())) {\n $this->user = $this->userFromRecaller($recaller);\n\n if ($this->user) {\n $this->updateSession($this->user->getAuthIdentifier());\n\n $this->fireLoginEvent($this->user, true);\n }\n }\n\n return $this->user;\n }", "title": "" }, { "docid": "7f56f52226480243e4ecba201c5b39d8", "score": "0.67774445", "text": "public static function getUser() {\n\t\treturn self::getAuthManager()->getUser();\n\t}", "title": "" }, { "docid": "0b95a9b95d2c39466fb33468cc1c64ef", "score": "0.6759362", "text": "public function getLoggedInUser()\n {\n if ($this->session->has(\"user\")) {\n return $this->find(\"id\", $this->session->get(\"user\"));\n }\n }", "title": "" }, { "docid": "e8a5e3e41be17bea94227386fdc566af", "score": "0.67389274", "text": "public function user()\n {\n if ($this->loggedOut) {\n return null;\n }\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (!is_null($this->user)) {\n return $this->user;\n }\n $id = $this->session->get($this->getName());\n // First we will try to load the user using the identifier in the session if\n // one exists. Otherwise we will check for a \"remember me\" cookie in this\n // request, and if one exists, attempt to retrieve the user using that.\n $user = null;\n if (!is_null($id) AND $user = $this->provider->retrieveById($id)) {\n if (!$tokens = $this->getCognitoTokensFromSession($user)) {\n return null;\n }\n\n $this->fireAuthenticatedEvent($user);\n }\n return $this->user = $user;\n }", "title": "" }, { "docid": "3ca4c52148e0b7344e2c7aaffa148c53", "score": "0.6736689", "text": "public function user()\n {\n if ($this->loggedOut)\n {\n return;\n }\n\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n\n $id = Cookie::get(config('auth.cookie_name'));\n\n // First we will try to load the user using the identifier in the session if\n // one exists. Otherwise we will check for a \"remember me\" cookie in this\n // request, and if one exists, attempt to retrieve the user using that.\n $user = null;\n\n if(!is_numeric($id))\n {\n try{\n $encrypter = app(Encrypter::class);\n $id = $encrypter->decrypt($id);\n }\n catch(\\Exception $e)\n {\n return null;\n }\n }\n\n if (! is_null($id) && is_numeric($id)) {\n $user = $this->provider->retrieveById($id);\n }\n\n // If the user is null, but we decrypt a \"recaller\" cookie we can attempt to\n // pull the user data on that cookie which serves as a remember cookie on\n // the application. Once we have a user we can return it to the caller.\n $recaller = $this->recaller();\n\n if (is_null($user) && ! is_null($recaller)) {\n $user = $this->getUserByRecaller($recaller);\n\n if ($user) {\n $this->updateSession($user->getAuthIdentifier());\n\n $this->fireLoginEvent($user, true);\n }\n }\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "13d711da69b68a7e59dd08fa22797abf", "score": "0.67095476", "text": "public function getUser()\n {\n if (is_null($this->user)) {\n $this->check();\n }\n\n return $this->user;\n }", "title": "" }, { "docid": "8221e37fd87eec528e768b60fff8da4d", "score": "0.669857", "text": "protected function getLoggedInUser()\n {\n /**\n * @var $authenticationHelper AuthenticationHelper\n */\n $authenticationHelper = $this->container->get('encore_merchant.helper.authentication');\n\n return $authenticationHelper->getLoggedInUser();\n }", "title": "" }, { "docid": "f129fe34e41d446e8ddc56d8e9d7f720", "score": "0.66927785", "text": "public function user()\n {\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n\n $user = null;\n\n // If a user ID was provided in the JWT, then\n // we should attempt to fetch their profile.\n if (! empty($this->id())) {\n $user = $this->provider->retrieveById($this->id());\n }\n\n return $this->user = $user;\n }", "title": "" }, { "docid": "6f66377da57aad96ced4e7367157d8eb", "score": "0.66683245", "text": "public function getUser() {\n if ($this->isAuthenticated()) {\n return Users::retrieveById(Factory::getSession()->get('auth\\id'));\n }\n\n return false;\n }", "title": "" }, { "docid": "f60064dc4bcded0526c252bfe4b29dc9", "score": "0.6665085", "text": "public function getCurrentUser()\n\t{\n\t\t$username = $_SESSION[$this->getTokenKey()];\n\t\t\n\t\t$user = $this->repo->getUser($username);\n\t\t\n\t\tif (empty($user))\n\t\t\treturn new \\Hx\\Authenticate\\User(\n\t\t\t\t'anonymous', \n\t\t\t\t'', \n\t\t\t\t\\Hx\\Authenticate\\UserInterface::LOGOUT,\n\t\t\t\t'');\n\t\telse \n\t\t\treturn $user;\n\t}", "title": "" }, { "docid": "ef63bf96db2ee90727f15e40594f4808", "score": "0.66542757", "text": "public function getUser()\n {\n return $this->getSecurityContext()->getToken()->getUser();\n }", "title": "" }, { "docid": "bc542d9eb21be5a3dd5f47613a5a9e96", "score": "0.6630708", "text": "public function getUser()\n {\n try {\n return $this->simplecas->getUser();\n } catch (NoUserForPrincipalException $e) {\n return null;\n }\n }", "title": "" }, { "docid": "57d4f39bf1ba17797aca11eb5bd2df92", "score": "0.66232693", "text": "public function getUser()\n {\n if ($this->user === false) {\n $this->user = User::findOne($this->user_id);\n }\n\n return $this->user;\n }", "title": "" }, { "docid": "44e5493af7852f81057765d5ac3349f5", "score": "0.66150296", "text": "protected function getUser() {\n if ($this->_user === null) {\n if (isset($this->user_id)) {\n $this->_user = User::findIdentity($this->user_id);\n } elseif (isset($this->auser)) {\n $this->_user = User::findByUsernameOrEmailOrPhone($this->auser);\n }\n }\n return $this->_user;\n }", "title": "" }, { "docid": "7cedc7ad995d3baf5b7ff4b9c2a1a01f", "score": "0.6599771", "text": "public function user()\n {\n return $this->guard()->user();\n }", "title": "" }, { "docid": "7dc56851c9d13d961e1e8b7308243949", "score": "0.6592769", "text": "public function getUser()\n {\n if (! $this->user) {\n $this->exchange();\n }\n\n return $this->user;\n }", "title": "" }, { "docid": "c4265f92e331b65447efefcf56a84e60", "score": "0.6591408", "text": "protected function getAuthentificatedUser()\n {\n return $this->participantProvider->getAuthenticatedParticipant();\n }", "title": "" }, { "docid": "70d30591ae187d71eef73e183f0f45d2", "score": "0.65888846", "text": "function get_auth_user() {\r\n if (!empty($_SESSION['user'])) {\r\n return \\User::find($_SESSION['user']['id']);\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "f5a806fb77b5e81bb211c90b0108aa78", "score": "0.6588793", "text": "protected function getUser()\n {\n if (!$this->container->has('security.token_storage')) {\n throw new \\LogicException('The SecurityBundle is not registered in your application.');\n }\n\n if (null === $token = $this->container->get('security.token_storage')->getToken()) {\n return;\n }\n\n if (!is_object($user = $token->getUser())) {\n // e.g. anonymous authentication\n return;\n }\n\n return $user;\n }", "title": "" }, { "docid": "0c75c3d38e7cabcc8b445477d46818cc", "score": "0.6585238", "text": "public function user()\n {\n if ($this->user instanceof Authenticatable) {\n return $this->user;\n }\n\n $tokenService = new JwtTokenService;\n $jwt = $tokenService->getTokenFromRequest($this->request);\n\n if (!$jwt) {\n return null;\n }\n\n $uuid = $tokenService->getUuidFromToken($jwt);\n\n return $this->user = $this->provider->getJWTUser($uuid);\n }", "title": "" }, { "docid": "fddcd7a22a2b80fa6b435b010a172516", "score": "0.6582614", "text": "public function getUser()\r\n {\r\n if ($this->_user === false) {\r\n $this->_user = User::findIdentity(Yii::$app->user->identity->id);\r\n }\r\n\r\n return $this->_user;\r\n }", "title": "" }, { "docid": "2bc8e2603fe15df94d9abea8ce80e344", "score": "0.65784633", "text": "private function user()\n {\n if (!AuthManager::check()) {\n return null;\n }\n return AuthManager::getUser();\n }", "title": "" }, { "docid": "9292d5408fd97c79058dc75ae06a8fc4", "score": "0.65748453", "text": "public function getUser()\n {\n $token = $this->securityContext->getToken();\n $user = $token->getUser();\n \n if ($token === null || !is_object($user))\n {\n $userAnon = $this->userManager->findUserByUsername('anonymous'); \n if($userAnon === null || !($userAnon instanceof User))\n return null;\n else\n return $userAnon;\n }\n \n return $user;\n }", "title": "" }, { "docid": "a617569f260f5535343eca591175b623", "score": "0.6560975", "text": "public function getCurrentlyLoggedInUser()\n {\n return $this->getUser();\n }", "title": "" }, { "docid": "64019cee94778eff50b41d25b016a84d", "score": "0.65562373", "text": "public function user()\n {\n if (!Auth::check())\n return null;\n\n return Auth::getUser();\n }", "title": "" }, { "docid": "f33c2af015d9e70c2b08cefa2da753ef", "score": "0.6554852", "text": "public function getAuthUser()\n {\n return auth()->user();\n }", "title": "" }, { "docid": "91f92624a31f82a1776ad1b267797ac2", "score": "0.6549338", "text": "public function user() {\n\t\tif (! Auth::check ()) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn Auth::getUser ();\n\t}", "title": "" }, { "docid": "7cad8b4446d560a1f5c9e7cce8a08040", "score": "0.6549104", "text": "public function user()\n {\n parent::user();\n\n if (!is_null($this->user)) {\n return $this->user;\n }\n\n if($this->request->has(\"username\") && $this->request->has(\"password\")) {\n $this->user = $this->getUserFromCredentials(\n $this->request->get(\"username\"),\n $this->request->get(\"password\")\n );\n }\n\n return $this->user;\n }", "title": "" }, { "docid": "3a8b094e562f687d74e1952de5114d8e", "score": "0.6531517", "text": "public function user():? Authenticatable\n {\n if ($this->user === null) {\n $token = $this->getTokenFromRequest();\n if ($token !== null) {\n $this->user = $this->getProvider()->retrieveById($token->getClaim('sub'));\n }\n }\n return $this->user;\n }", "title": "" }, { "docid": "4995e87d3803267457d7b775849a0027", "score": "0.6519535", "text": "public function getUser()\r\n\t{\r\n\t\t// Not authenticated\r\n\t\tif (!$this->_isHttpAuthenticated()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Get user\r\n\t\t$username = $_SERVER['PHP_AUTH_USER'];\r\n\t\t$userModel = BluApplication::getModel('user');\r\n\t\tif ((!$userId = $userModel->getUserId($username)) || (!$user = $userModel->getUser($userId))) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Return\r\n\t\treturn $user;\r\n\t}", "title": "" }, { "docid": "797651f6978717f5e9f72e5b2128f118", "score": "0.6515439", "text": "public static function getUser() {\n if(self::$user === Auth::NONE) {\n self::$user = UserFinder::getById(self::getUserId());\n }\n return self::$user;\n }", "title": "" }, { "docid": "c259bcc5e9232456bbfcf23d19717ae7", "score": "0.6513229", "text": "public function user()\n {\n if ($this->user instanceof UserInterface) {\n return $this->user;\n }\n if (!$this->hasLogin()) {\n return null;\n }\n $session = $this->session->get(\n static::SESSION_KEY\n );\n $user = Orm::finder($this->model)->one(\n $session['id']\n );\n if ($user instanceof UserInterface) {\n $this->user = $user;\n\n return $user;\n }\n\n return null;\n }", "title": "" }, { "docid": "aa44e05f07c90c77d80101e712ecc3bc", "score": "0.65110946", "text": "public function user() {\n if (!Auth::check()) {\n return null;\n }\n\n return Auth::getUser();\n }", "title": "" }, { "docid": "0544fdc191d26b453b533aacfa2f8505", "score": "0.6500765", "text": "function getUser() {\r\n\t\t$userDao =& DAORegistry::getDAO('UserDAO');\r\n\t\treturn $userDao->getUser($this->getUserId(), true);\r\n\t}", "title": "" }, { "docid": "416067d7ddb45c58128441ab599011ec", "score": "0.6494999", "text": "public function user()\n {\n $rawUserData = $this->httpClient->getUserFromToken($this->extractTokenFromUrl());\n\n return $rawUserData ? new User($rawUserData) : null;\n }", "title": "" }, { "docid": "ae53cde6cbfb31c550c84bf9a6319345", "score": "0.64929664", "text": "public function user()\n {\n return $this->app->auth->user();\n }", "title": "" }, { "docid": "492b918d59c9a1460500a2ecdca55097", "score": "0.64840066", "text": "public function user()\n {\n if (!Auth::check()) {\n return null;\n }\n\n return Auth::getUser();\n }", "title": "" }, { "docid": "4e31c337d055b2cf05962bfe66ecf786", "score": "0.64708906", "text": "public function getUser()\n {\n return $this->client->getUserById($this->data['user']);\n }", "title": "" }, { "docid": "a1f7c812a25ecfaebc7705aa76917cda", "score": "0.6468033", "text": "public function getAuthenticatedUser()\n {\n try {\n\n if (!$user = JWTAuth::parseToken()->authenticate()) {\n return response()->json(['user_not_found'], 404);\n }\n\n } catch (TokenExpiredException $e) {\n\n return response()->json(['token_expired'], $e->getStatusCode());\n\n } catch (TokenInvalidException $e) {\n\n return response()->json(['token_invalid'], $e->getStatusCode());\n\n } catch (JWTException $e) {\n\n return response()->json(['token_absent'], $e->getStatusCode());\n\n }\n\n // the token is valid and we have found the user via the sub claim\n //return response()->json(compact('user'));\n\n return $this->item($user, new UserTransformer());\n }", "title": "" }, { "docid": "86f115a64ca474c05a022ee2877c1032", "score": "0.6467596", "text": "public function getAuthUser()\n {\n return $this->hasOne($this->_user, ['id' => 'auth_user_id']);\n }", "title": "" }, { "docid": "dbe4b0890be1f0d069efd5aa438e437b", "score": "0.6460124", "text": "private function getUser()\n {\n $token = $this->getSecurityContext()->getToken();\n\n if (null === $token) {\n throw new \\Exception('No token found in security context.');\n }\n\n return $token->getUser();\n }", "title": "" }, { "docid": "8cc4c8307d4234d3db15cd3deabff5e7", "score": "0.6437996", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = User::findByUsername($this->username);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "993411c0f118d29f271dc6f179b3c6db", "score": "0.6437522", "text": "public function user()\n {\n // If we've already retrieved the user for the current request we can just\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n\n $token = $this->parseAuthenticateString($this->request->header('Authorization'));\n\n if (empty($token)) {\n return $this->user = null;\n }\n\n try {\n $payload = \\JWTAuth::setToken($token)->getPayload();\n $user = $this->provider->retrieveById($payload['sub']);\n\n if (!empty($this->user)\n && $this->tokenManager->check($user->getAuthIdentifier(), $payload['jti'])) {\n\n $this->user = $user;\n } else {\n $this->user = null;\n }\n\n } catch (TokenInvalidException $e) {\n\n $this->user = null;\n\n } catch (TokenExpiredException $e) {\n\n $this->user = null;\n }\n\n return $this->user;\n\n }", "title": "" }, { "docid": "ef7ac117b1b35dd8f7331ad35f88adca", "score": "0.643703", "text": "protected function getUser()\n {\n if (!$this->container->has('security.token_storage')) {\n throw new \\LogicException(\n 'The SecurityBundle is not registered in your application. Try running \"composer require symfony/security-bundle\".'\n );\n }\n\n if (null === $token = $this->container->get('security.token_storage')->getToken()) {\n return null;\n }\n\n if (!\\is_object($user = $token->getUser())) {\n // e.g. anonymous authentication\n return null;\n }\n\n return $user;\n }", "title": "" }, { "docid": "160ef5c8379dabda50b6227c7e762fa3", "score": "0.6415942", "text": "public function getUser()\r\n {\r\n /** @var User $user */\r\n $user = $this->getToken()->getUser();\r\n if (!$this->isUserLoggedIn()) {\r\n $user = new User();\r\n $user->setUsername(\"anon.\");\r\n }\r\n return $user;\r\n }", "title": "" }, { "docid": "e0b9cfddca46c3e8cc7a340c4746a611", "score": "0.6414945", "text": "protected function getUser()\n {\n if ($this->_user === null) {\n $this->_user = Yii::$app->user->identity;\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "0adf2279203ebe38d5aa0102f8c26044", "score": "0.6409211", "text": "public function getUser()\n\t{\n\t\tinclude_once(DIR . 'libs/repositories/users.php');\n\n\t\treturn Users::Find($this->getUserId());\n\t}", "title": "" }, { "docid": "d9c69cf1b03edccf2a2d3aa05b09fdae", "score": "0.6403752", "text": "protected function getLoggedUser() {\n return $this->get('security.token_storage')->getToken()->getUser();\n }", "title": "" }, { "docid": "d9c69cf1b03edccf2a2d3aa05b09fdae", "score": "0.6403752", "text": "protected function getLoggedUser() {\n return $this->get('security.token_storage')->getToken()->getUser();\n }", "title": "" }, { "docid": "b5c6486db7d79830f033a21c7584a108", "score": "0.64016527", "text": "protected function getUser()\n {\n if ($this->_user === null) {\n $this->_user = UserEntity::findByEmail($this->email);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "b344383b6ebc22b32d255ea481b67f35", "score": "0.6398546", "text": "public function getAuthUser()\n {\n\n if (!isset($_SESSION['user']))\n return null;\n\n $user = unserialize($_SESSION['user']);\n return $user;\n }", "title": "" }, { "docid": "512babce78260a0039ba176dfecc7f04", "score": "0.6392905", "text": "public static function user()\n\t{\n\n\t\tif (self::check())\n\t\t{\n\n\t\t\treturn User::findByUsernameOrEmail($_SESSION['IS_LOGGED_IN']);\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2e99e7194b8146b6aae4fcdbe0df3246", "score": "0.6386965", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = UserResource::findByUsername($this->username);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "40fa1a01b3a5fb913e95c6e9bf7c0cf3", "score": "0.6377486", "text": "protected function getUser()\n {\n if ($this->_user === null) {\n $this->_user = User::findByUsername($this->username);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "40fa1a01b3a5fb913e95c6e9bf7c0cf3", "score": "0.6377486", "text": "protected function getUser()\n {\n if ($this->_user === null) {\n $this->_user = User::findByUsername($this->username);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "7bb691f508b38397a693a12e8ba0f82e", "score": "0.6375045", "text": "public function user()\n\t{\n\t\treturn $this->user ? $this->user : Auth::user();\n\t}", "title": "" }, { "docid": "cea7800bd64fff0004ccb8f562af8b85", "score": "0.63727355", "text": "public function getUserByResourceOwnerId()\n {\n $user_id = Authorizer::getResourceOwnerId();\n return $this->getUser($user_id);\n }", "title": "" }, { "docid": "fc9e3c475db12e1eb01e2d86b7198015", "score": "0.63672614", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = User::findByUsername($this->username);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "fc9e3c475db12e1eb01e2d86b7198015", "score": "0.63672614", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = User::findByUsername($this->username);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "4b5037a81298cbad54bc8ba03d899998", "score": "0.6357493", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = User::findByEmail($this->email);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "4b5037a81298cbad54bc8ba03d899998", "score": "0.6357493", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = User::findByEmail($this->email);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "c887a32872b01fd8fb652855e21b7764", "score": "0.6356971", "text": "public function getUser() : ?\\Koony\\Model\\User\n {\n if (!$this->isLoggedIn()) return null;\n \n return $this->app[\"em\"]->find('\\Koony\\Model\\User', $this->app[\"session\"]->get(\"user\"));\n }", "title": "" }, { "docid": "8b794e7ab1398e00c5de2600858ad952", "score": "0.6351271", "text": "public function getLoggedUser()\n {\n if (null === $this->loggedUser) {\n $this->loggedUser = auth()->user();\n }\n\n if (!$this->loggedUser instanceof User) {\n throw new \\DomainException('Unable to find a valid instance of logged user.');\n }\n\n return $this->loggedUser;\n }", "title": "" }, { "docid": "cf000cce4f603741030cea5e0219e50e", "score": "0.6346818", "text": "public function getUser(): UserInterface\n {\n return $this->user;\n }", "title": "" }, { "docid": "5511c9d0baee9df708eec3acea229e2b", "score": "0.6342668", "text": "public function getUser() {\n if ($this->_user === false) {\n $this->_user = User::findByEmail($this->email);\n }\n\n return $this->_user;\n }", "title": "" }, { "docid": "275ebb73848dbf04ed60e87eb0622667", "score": "0.633437", "text": "protected function getUser()\n {\n return app()->auth->user();\n }", "title": "" }, { "docid": "c7d278166554df5194127580d17affee", "score": "0.6330551", "text": "static function user()\n {\n if (self::check()) {\n return User::findByUser($_SESSION['user']);\n }\n\n throw new \\Exception('Not logged in but called Auth::user() anyway');\n }", "title": "" }, { "docid": "c7d278166554df5194127580d17affee", "score": "0.6330551", "text": "static function user()\n {\n if (self::check()) {\n return User::findByUser($_SESSION['user']);\n }\n\n throw new \\Exception('Not logged in but called Auth::user() anyway');\n }", "title": "" }, { "docid": "a58d5c65007ea9e68dd556fe0bc14f2f", "score": "0.6315511", "text": "public function user()\n {\n if ($this->user !== null) {\n return $this->user;\n }\n }", "title": "" }, { "docid": "e987693896980af7ce3c6511ba85b08e", "score": "0.6308994", "text": "protected function getUser()\n {\n if ($this->_user === null) {\n $this->_user = AdminUser::findByUsername($this->username);\n }\n return $this->_user;\n }", "title": "" }, { "docid": "169c5668c9a165be5ea068c93c19ced9", "score": "0.6307959", "text": "public function getUser()\n {\n return $this->_managedUser->getUser();\n }", "title": "" }, { "docid": "13c24372dd8a3371efda5404eb3bb0e9", "score": "0.630251", "text": "public function getUser()\n {\n return $this->getSession()->getUser();\n }", "title": "" }, { "docid": "d30d310b04a5cae7ed96aa5a4c8094e0", "score": "0.62994325", "text": "public function user()\n {\n if ($this->user !== null) {\n return $this->user;\n }\n\n if ($this->jwt->getToken() && $this->jwt->check()) {\n $id = $this->jwt->payload()->get('sub');\n\n $user = $this->provider->retrieveById($id);\n\n $this->validateUser($user);\n\n // if the user is the same type as declared inside the token.\n // he is certainly the authenticated user of the token,\n // so returned it\n if (get_class($user) == $this->jwt->getClaim('typ')) {\n return $this->user = $user;\n }\n\n return null;\n }\n }", "title": "" }, { "docid": "368aead747faca82e8897d10ade4a624", "score": "0.6295229", "text": "public function getAuthenticatedUser($force = false) {\n\t\t$cache = $this->getIdentityCache();\n\t\t$identity = Zend_Auth::getInstance()->getIdentity();\n\t\t$cache_id = $this->identityToCacheId($identity);\n\t\tif ($force === true || $cache === false || ($user = $cache->load($cache_id)) === false) {\n\t\t\t$user = $this->getUserByIdentity($identity);\n\t\t\tif ($cache) $cache->save($user, $cache_id);\n\t\t}\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "8e1d8e6ab73c24c1b9fce38f5fb8d818", "score": "0.62900704", "text": "public function getUser()\n {\n if ($this->_user === false) {\n $this->_user = User::findByEmail($this->email);\n }\n return $this->_user;\n }", "title": "" }, { "docid": "fad35bdd42398018bb9a96d8bb2ef141", "score": "0.62861526", "text": "public function getAuthenticatedUser()\n {\n try {\n if (!$user = JWTAuth::parseToken()->authenticate()) {\n return response()->json(['user_not_found'], 404);\n }\n } catch (TokenExpiredException $e) {\n return response()->json(['token_expired'], $e->getStatusCode());\n } catch (TokenInvalidException $e) {\n return response()->json(['token_invalid'], $e->getStatusCode());\n } catch (JWTException $e) {\n return response()->json(['token_absent'], $e->getStatusCode());\n }\n\n $user->isAdmin = $user->hasRole('admin') ? true : false;\n\n return response()->json(compact('user'));\n }", "title": "" }, { "docid": "6f4e3b720459e40e8fd0deb1f17c350d", "score": "0.62772244", "text": "public function getUser() {\n\t\t$auth = Zend_Auth::getInstance();\n\n\t\treturn $auth->getIdentity();\n\t}", "title": "" }, { "docid": "ebf61940175aa566546e46cbc5878bdc", "score": "0.6274747", "text": "public static function getUser() {\n if (self::$user !== NULL) {\n return self::$user;\n }\n\n $userId = self::getId();\n $user = self::getFromSession('user');\n\n if ($user !== NULL) {\n $user = unserialize($user);\n }\n else {\n if (($user === NULL) && is_int($userId)) {\n $user = CRUDApiMisc::getById(new UserApi(), $userId);\n self::setUser($user);\n }\n }\n self::$user = $user;\n\n return $user;\n }", "title": "" }, { "docid": "bde4b1d5584718c2135789d65ee49f78", "score": "0.62743926", "text": "public function get_user()\n {\n return $this->user;\n }", "title": "" }, { "docid": "8f4e3858037b6c6111d50e557fc45081", "score": "0.62692446", "text": "public function GetUser()\n {\n return $this->user;\n }", "title": "" }, { "docid": "07071f0cd19ac0d0d828357679e529dd", "score": "0.62623656", "text": "public function retrieveByID($identifier)\n {\n return $this->userRepository->getUserByIdentifier($identifier);\n }", "title": "" }, { "docid": "6d75a8e0495b1654e0a4e2d793521edf", "score": "0.62450457", "text": "public function authenticatedUser()\n {\n $data = $this->apiAuthenticatorService->getUser();\n return response()\n ->json($this->apiAuthenticatorService->setTransformer(new AuthTransformer())->transformItem($data));\n }", "title": "" }, { "docid": "0ebbc493603eaca2741aaa70ecaaf795", "score": "0.62392104", "text": "public function getLoggedUser()\n {\n if (null === $token = $this->tokenStorage->getToken()) {\n return null;\n }\n\n if (!is_object($user = $token->getUser())) {\n return null;\n }\n\n return $user;\n }", "title": "" }, { "docid": "1fb5ac134e496bf7d4cfb4746e5ff9b5", "score": "0.6238116", "text": "public function current_user()\n {\n if ( ! $this->_current_user)\n {\n if ($this->current_user_id())\n {\n $this->_current_user = Authentic\\User::find_by_id($this->current_user_id());\n }\n }\n return $this->_current_user; \n }", "title": "" }, { "docid": "87146daf8c90daab2a4e427b67851cab", "score": "0.6234632", "text": "public function user()\n {\n return User::find($this->user_id);\n }", "title": "" }, { "docid": "83142180d6d59d3bbaaa070dea81c159", "score": "0.62216365", "text": "public function user()\n {\n // return it back immediately. We do not want to fetch the user data on\n // every call to this method because that would be tremendously slow.\n if (! is_null($this->user)) {\n return $this->user;\n }\n }", "title": "" } ]
d0cbcd91fe3d5cfe934a75ed950f3518
Returns the subclient given by its name.
[ { "docid": "b84b4c17b26c0e0fd84ed2d3a5d72da5", "score": "0.49550372", "text": "public function getSubClient( $type, $name = null )\n\t{\n\t\t/** client/html/catalog/count/tree/decorators/excludes\n\t\t * Excludes decorators added by the \"common\" option from the catalog count tree html client\n\t\t *\n\t\t * Decorators extend the functionality of a class by adding new aspects\n\t\t * (e.g. log what is currently done), executing the methods of the underlying\n\t\t * class only in certain conditions (e.g. only for logged in users) or\n\t\t * modify what is returned to the caller.\n\t\t *\n\t\t * This option allows you to remove a decorator added via\n\t\t * \"client/html/common/decorators/default\" before they are wrapped\n\t\t * around the html client.\n\t\t *\n\t\t * client/html/catalog/count/tree/decorators/excludes = array( 'decorator1' )\n\t\t *\n\t\t * This would remove the decorator named \"decorator1\" from the list of\n\t\t * common decorators (\"\\Aimeos\\Client\\Html\\Common\\Decorator\\*\") added via\n\t\t * \"client/html/common/decorators/default\" to the html client.\n\t\t *\n\t\t * @param array List of decorator names\n\t\t * @since 2015.08\n\t\t * @category Developer\n\t\t * @see client/html/common/decorators/default\n\t\t * @see client/html/catalog/count/tree/decorators/global\n\t\t * @see client/html/catalog/count/tree/decorators/local\n\t\t */\n\n\t\t/** client/html/catalog/count/tree/decorators/global\n\t\t * Adds a list of globally available decorators only to the catalog count tree html client\n\t\t *\n\t\t * Decorators extend the functionality of a class by adding new aspects\n\t\t * (e.g. log what is currently done), executing the methods of the underlying\n\t\t * class only in certain conditions (e.g. only for logged in users) or\n\t\t * modify what is returned to the caller.\n\t\t *\n\t\t * This option allows you to wrap global decorators\n\t\t * (\"\\Aimeos\\Client\\Html\\Common\\Decorator\\*\") around the html client.\n\t\t *\n\t\t * client/html/catalog/count/tree/decorators/global = array( 'decorator1' )\n\t\t *\n\t\t * This would add the decorator named \"decorator1\" defined by\n\t\t * \"\\Aimeos\\Client\\Html\\Common\\Decorator\\Decorator1\" only to the html client.\n\t\t *\n\t\t * @param array List of decorator names\n\t\t * @since 2015.08\n\t\t * @category Developer\n\t\t * @see client/html/common/decorators/default\n\t\t * @see client/html/catalog/count/tree/decorators/excludes\n\t\t * @see client/html/catalog/count/tree/decorators/local\n\t\t */\n\n\t\t/** client/html/catalog/count/tree/decorators/local\n\t\t * Adds a list of local decorators only to the catalog count tree html client\n\t\t *\n\t\t * Decorators extend the functionality of a class by adding new aspects\n\t\t * (e.g. log what is currently done), executing the methods of the underlying\n\t\t * class only in certain conditions (e.g. only for logged in users) or\n\t\t * modify what is returned to the caller.\n\t\t *\n\t\t * This option allows you to wrap local decorators\n\t\t * (\"\\Aimeos\\Client\\Html\\Catalog\\Decorator\\*\") around the html client.\n\t\t *\n\t\t * client/html/catalog/count/tree/decorators/local = array( 'decorator2' )\n\t\t *\n\t\t * This would add the decorator named \"decorator2\" defined by\n\t\t * \"\\Aimeos\\Client\\Html\\Catalog\\Decorator\\Decorator2\" only to the html client.\n\t\t *\n\t\t * @param array List of decorator names\n\t\t * @since 2015.08\n\t\t * @category Developer\n\t\t * @see client/html/common/decorators/default\n\t\t * @see client/html/catalog/count/tree/decorators/excludes\n\t\t * @see client/html/catalog/count/tree/decorators/global\n\t\t */\n\n\t\treturn $this->createSubClient( 'catalog/count/tree/' . $type, $name );\n\t}", "title": "" } ]
[ { "docid": "556e48e40692c3d7a2b060d91fdd9de9", "score": "0.68500507", "text": "public function client($name = null)\n {\n $name = $name ?: $this->getDefaultClient();\n\n return $this->clients[$name] ?? $this->clients[$name] = $this->resolve($name);\n }", "title": "" }, { "docid": "b49d22781a99bcb3872051dfea2ba179", "score": "0.62508816", "text": "public function getClientByName(string $name): ClientInterface\n {\n return $this->clients[$name] ?? throw new RuntimeException(\n sprintf(\n 'Contentful client with \"%s\" name does not exist.',\n $name,\n ),\n );\n }", "title": "" }, { "docid": "baa5d6ff206464ebb275e4a37dae78c8", "score": "0.6219094", "text": "public function get(string $name): ClientInterface\n {\n if (!isset($this->clients[$name])) {\n throw new \\Exception(\"Rpc client {$name} not found\");\n }\n\n return $this->clients[$name];\n }", "title": "" }, { "docid": "0345aa3d0abe400dbdcb548aa7fc30f7", "score": "0.5988776", "text": "public function getClientByName($name)\n {\n $request = new Request('GET', '/settings/clients/' . $name);\n return $this->getResponseJson($request);\n }", "title": "" }, { "docid": "34ef87e4749642acf29aad03743cae97", "score": "0.5826641", "text": "public function getInternalClient();", "title": "" }, { "docid": "b1ef607662ca621d352526af8227dffb", "score": "0.58049655", "text": "public function getClientName(): string\n {\n return 'Subscription';\n }", "title": "" }, { "docid": "782b1485629bdeb515e259b1f10d4121", "score": "0.5707638", "text": "protected function getSubClientNames()\n\t{\n\t\treturn $this->getContext()->getConfig()->get( $this->subPartPath, $this->subPartNames );\n\t}", "title": "" }, { "docid": "5e0e6fd7a6b4c875ed110b0028711f22", "score": "0.57004833", "text": "public static function get($name)\n {\n $key = strtolower($name);\n if (!array_key_exists($key, self::$instances)) {\n \n // Check if we have a config for this connection\n if (!array_key_exists($key, self::$configs)) {\n throw new Exception(\"No config for the connection '{$name}' was found.\");\n }\n\n self::$instances[$key] = new Client(self::$configs[$key]);\n }\n\n return self::$instances[$key];\n }", "title": "" }, { "docid": "6d04f5876e993c318a7a37de59753318", "score": "0.56719863", "text": "public function CLIENT_GETNAME()\n\t{\n\t\treturn $this->_send(array('CLIENT', 'GETNAME'));\n\t}", "title": "" }, { "docid": "b4289bc6a4c55ea92f9e5479b3410196", "score": "0.56182873", "text": "public function client($name)\n {\n $this->client = bearychat($name);\n\n return $this;\n }", "title": "" }, { "docid": "22de45f58b54f8af008aafa3141cd49c", "score": "0.5598598", "text": "public function getClientName()\n {\n return $this->client_name;\n }", "title": "" }, { "docid": "e08716b208ae00c453cf74d95702d819", "score": "0.55847454", "text": "public function getClient($alias = \"default\")\n {\n if(!isset($this->clients[$alias])) {\n return $this->container->get('realestateconz_apiclient.client.' . $alias);\n }\n \n\n return $this->clients[$alias];\n }", "title": "" }, { "docid": "a72e041a8a9ec548ede951371ce18200", "score": "0.5565146", "text": "public function getClient($id = null)\n {\n if ($id === null) {\n $id = array_keys($this->getClients())[0];\n }\n\n return parent::getClient($id);\n }", "title": "" }, { "docid": "c69d805e81a3061a18fad27f94f4400d", "score": "0.5563344", "text": "public static function getClient($configName)\n {\n if (!isset(static::$clients[$configName])) {\n static::$clients[$configName] = new Ses($configName);\n }\n\n return static::$clients[$configName];\n }", "title": "" }, { "docid": "8a328fc63871bfde7bcc7165b0f5ba93", "score": "0.5517851", "text": "protected static function getClient($name = self::CONNECTION_NAME)\n {\n $client = ConnectionManager::get($name);\n if ($client instanceof Client) {\n return $client;\n }\n throw new ConnectionManagerException(\"The fetched exception is not an instance of 'Redmine\\\\Client'\");\n }", "title": "" }, { "docid": "7f377c4253ac1a4d46b65671b087b631", "score": "0.5507697", "text": "public function __get(string $name)\n {\n $allowed = ['loop', 'options', 'logger', 'http', 'application_commands'];\n\n if (in_array($name, $allowed)) {\n return $this->{$name};\n }\n\n if (null === $this->client) {\n return;\n }\n\n return $this->client->{$name};\n }", "title": "" }, { "docid": "9008d24b93c1cb0b9ee4488eb81be259", "score": "0.5502534", "text": "public function get($name, $throwAway = false)\n {\n if (!isset($this->builderConfig[$name])) {\n throw new ClientNotFoundException('No client is registered as ' . $name);\n }\n\n if (!$throwAway && isset($this->clients[$name])) {\n return $this->clients[$name];\n }\n\n // Convert references to the actual client\n foreach ($this->builderConfig[$name]['params'] as $k => &$v) {\n if (0 === strpos($v, '{') && strlen($v) - 1 == strrpos($v, '}')) {\n $v = $this->get(trim(str_replace(array('{', '}'), '', $v)));\n }\n }\n\n $client = call_user_func(\n array($this->builderConfig[$name]['class'], 'factory'),\n $this->builderConfig[$name]['params']\n );\n\n if (!$throwAway) {\n $this->clients[$name] = $client;\n }\n\n return $client;\n }", "title": "" }, { "docid": "a2eaa97bd82329c995a93a6be140730b", "score": "0.54679", "text": "public function getActiveClient()\n {\n foreach ($this->getClients() as $id => $client) {\n $token = $client->getAccessToken();\n if ($token) {\n return $client;\n }\n }\n\n return;\n }", "title": "" }, { "docid": "ff17147188f49c20c479cc8e3310e048", "score": "0.5457162", "text": "public function activeSubscription($name = 'main')\n {\n return $this->activeSubscriptions()->name($name)->first();\n }", "title": "" }, { "docid": "b30325b863e7321bdbf505c91e405773", "score": "0.5453784", "text": "public static function connect($name = 'default')\n\t{\n\t\t// create new instance of this class\n\t\t$self = new self;\n\t\treturn $self->clients[$name ?: 'default'];\n\t}", "title": "" }, { "docid": "f1c8d8d6d35b974f32b3adfe6a3c6de6", "score": "0.54098445", "text": "private function get_client() {\n\t\treturn $this->client;\n\t}", "title": "" }, { "docid": "f1c8d8d6d35b974f32b3adfe6a3c6de6", "score": "0.54098445", "text": "private function get_client() {\n\t\treturn $this->client;\n\t}", "title": "" }, { "docid": "f1c8d8d6d35b974f32b3adfe6a3c6de6", "score": "0.54098445", "text": "private function get_client() {\n\t\treturn $this->client;\n\t}", "title": "" }, { "docid": "f1c8d8d6d35b974f32b3adfe6a3c6de6", "score": "0.54098445", "text": "private function get_client() {\n\t\treturn $this->client;\n\t}", "title": "" }, { "docid": "f1c8d8d6d35b974f32b3adfe6a3c6de6", "score": "0.54098445", "text": "private function get_client() {\n\t\treturn $this->client;\n\t}", "title": "" }, { "docid": "41c3bf333dd09603a42d97cfa34a285f", "score": "0.5374203", "text": "public function getClient() {\n $lien = Appartient::getBy('id_user', $this->getId_user());\n if (is_array($lien)){\n array_pop($lien);\n\t\t\t$client = array();\n foreach($lien as $value) {\n $client[] = Client::getById($value->getId_client());\n }\n return $client;\n }\n if ($lien)\n return Client::getById($lien->getId_client());\n else\n return false;\n }", "title": "" }, { "docid": "dc6eea8aa5cc55a7dbbf1a73cbe6cc48", "score": "0.536879", "text": "protected function getClientForSelect($useReadClient = true)\n {\n return $useReadClient ? $this->getReadClient() : $this->getClient();\n }", "title": "" }, { "docid": "96aeac7d693ae0bddafae5cdec3cbb5c", "score": "0.5366526", "text": "public function getClient() {\n\t\treturn $this->findParentRow(\"Application_Model_DbTable_Client\", \"client\");\n\t}", "title": "" }, { "docid": "6846885a24191046530dcf74e2353a6a", "score": "0.5362209", "text": "public function getSlackClient()\n {\n return $this->client;\n }", "title": "" }, { "docid": "70fe03e161fafec8c835ee287025150e", "score": "0.5355396", "text": "public function getSubnetwork()\n {\n return $this->subnetwork;\n }", "title": "" }, { "docid": "70fe03e161fafec8c835ee287025150e", "score": "0.5355396", "text": "public function getSubnetwork()\n {\n return $this->subnetwork;\n }", "title": "" }, { "docid": "2d85fead322056e19bcfbdd1d85ab9ca", "score": "0.5345967", "text": "public function getClientByUserName($userName)\n {\n $query = array(\n self::KEY_USERNAME => $userName,\n self::KEY_GROUP => self::KEY_GROUP_CLIENT\n );\n \n if(!($client = $this->_getUserCollection()->findOne($query)) || empty($client)) {\n return array();\n }\n \n $client[self::KEY_ID] = (string) $client[self::KEY_ID];\n return $client;\n }", "title": "" }, { "docid": "2b7f127a8121acb4947ffb03b22c6cc2", "score": "0.5341588", "text": "public function getClientById($id) {\n\t\treturn Client::withTrashed()->where('id', $id)->firstOrFail();\n\t}", "title": "" }, { "docid": "bba258e588923c77258977a534443498", "score": "0.5324557", "text": "public function getSubscription(?ClientInterface $client = null): SubscriptionContract;", "title": "" }, { "docid": "d405dcced3684d5ce5156469e37ca7e5", "score": "0.52959967", "text": "public function getSubservicio()\n {\n return $this->subservicio;\n }", "title": "" }, { "docid": "c48b462898f0e7d19c16a8b764ee3553", "score": "0.52847165", "text": "public function getClients();", "title": "" }, { "docid": "2be50a99a39632825bfe4b64dfed2187", "score": "0.5264393", "text": "public function findById($id)\n {\n $client = Client::where('id', $id)->first();\n return $client;\n }", "title": "" }, { "docid": "f48d9d093dc3cb5c03e375ea95bdfc7f", "score": "0.5258625", "text": "function getClientName($client_id)\n {\n // do not translate\n $clients = array('site', 'admin', 'installer');\n return mosGetParam($clients, $client_id, 'unknown');\n }", "title": "" }, { "docid": "b994aac87b70bc0658120d507a1ee8d9", "score": "0.52425885", "text": "protected function get_client():Client_Surveys{\n\t\treturn SurveyMonkey::surveys($this->item_data->id);\n\t}", "title": "" }, { "docid": "3d574035e1adb63a068097b9df98262c", "score": "0.52303493", "text": "public function listClientsByName() {\n\t\treturn Client::orderBy('client_name')->lists('client_name', 'client_id');\n\t}", "title": "" }, { "docid": "0c2641f8a2c84b5d92dc6f87f8325bfc", "score": "0.51928896", "text": "public function getChild($name) {\n\t\t$obj = $this->caldavBackend->getCalendarObject($this->calendarInfo['id'],$name);\n\t\tif (!$obj) {\n\t\t\tthrow new Sabre_DAV_Exception_NotFound('CalendarManager object not found');\n\t\t}\n\t\treturn new CalDAV_CalendarObject($this->caldavBackend,$this->calendarInfo,$obj);\n\n\t}", "title": "" }, { "docid": "ff7dbf7715d1b2f4dfae070cc7ca7d39", "score": "0.5188406", "text": "public function __get($name)\n\t{\n\t\tswitch ($name)\n\t\t{\n\t\t\tcase 'client':\n\t\t\t\treturn $this->$name;\n\t\t\t\tbreak;\n\n\t\t\tcase 'usersource':\n\t\t\tcase 'driver':\n\t\t\tcase 'ldap':\n\t\t\t\treturn $this->client;\n\t\t\t\tbreak;\n\n\t\t\tcase 'type':\n\t\t\t\treturn self::ADAPTER_TYPE;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4c9a7ade4e61c9f9bf27c5bcb100f36f", "score": "0.51865375", "text": "public static function getClient() : ClientInterface {}", "title": "" }, { "docid": "d1922d7b141bfdffe96a2c626b1f9814", "score": "0.5179881", "text": "public function getClient() {\n\t\t\t// Create client if not already set\n\t\t\tif ( is_null( $this->_client ) ) {\n\t\t\t\t$this->setClient( $this->createClient() );\n\t\t\t}\n\n\t\t\treturn $this->_client;\n\t\t}", "title": "" }, { "docid": "da983c05b8200ac54ecda3f5bebd48ba", "score": "0.5168296", "text": "function getClientIdentifier() { return $this->clientIdentifier; }", "title": "" }, { "docid": "71d6b1cb344dff5fd44e10bced8d0de2", "score": "0.51678675", "text": "protected function getClient(): CouchClient\n {\n return ClientFactory::build($this->databaseName);\n }", "title": "" }, { "docid": "bde3fc6be8303d6354e862a8c82f8fdc", "score": "0.5161392", "text": "public function get_subscription();", "title": "" }, { "docid": "fbeeee1a42ab7574ccc597e21d6fb7fd", "score": "0.5145852", "text": "public function getClient() {\n\t\treturn $this->cluster->getConnection()->getClient();\n\t}", "title": "" }, { "docid": "7fc37602a9693c3ee4c40c3f3698d06f", "score": "0.51451707", "text": "public function getClientId()\n {\n return $this->get(self::_CLIENT_ID);\n }", "title": "" }, { "docid": "b6c9cbf1bdd9627ae35171d425f9eab9", "score": "0.5141474", "text": "public function getStatusClient(): GetStatusInterface\n {\n return $this->getStatusClient;\n }", "title": "" }, { "docid": "84142375f2b23302734dd4ad917f020d", "score": "0.5123606", "text": "function GetClanByName( $name )\n\t{\n\t\t$sql_query = \t\" SELECT * \".\n\t\t\t\t\t\t\" FROM `\".$GLOBALS['g_egltb_clan_accounts'].\"` \".\n\t\t\t\t\t\t\" WHERE name='\".$this->pDBCon->EscapeString($name).\"' \".\n\t\t\t\t\t\t\" LIMIT 0,1\";\n\t\treturn $this->pDBCon->FetchObject( $this->pDBCon->Query( $sql_query ) );\n\t}", "title": "" }, { "docid": "8113136a841284f9d037f017a5ef14c2", "score": "0.51034445", "text": "public function getClientByAssignedId($id) {\n\t\treturn Client::withTrashed()->where('client_id', $id)->firstOrFail();\n\t}", "title": "" }, { "docid": "c2b5c44c472c473ccaf1fc469dc7ce9e", "score": "0.5093714", "text": "public function getClient()\n {\n if ($this->client instanceof ClientInterface) {\n return clone $this->client;\n }\n }", "title": "" }, { "docid": "d36ac85aa5e98494edb1de2abf1be04d", "score": "0.5076056", "text": "public function __get(string $name) {\n if (\\property_exists($this, '_' . $name)) {\n $method = 'get' . \\ucfirst($name);\n return $this->$method();\n }\n\n throw new TwilioException('Unknown subresource ' . $name);\n }", "title": "" }, { "docid": "af6d69f853fc2b6470f2e8bb72ae6c6f", "score": "0.50759256", "text": "public function getUserClient() {\n\t\treturn $this->userClient;\n\t}", "title": "" }, { "docid": "893dbc15cd2a3233de58608d47a5a97c", "score": "0.5063884", "text": "public function getClients()\n {\n return $this->clients;\n }", "title": "" }, { "docid": "b8dfb204bad1e863969d3665c248f66b", "score": "0.50545347", "text": "protected function getFirstClient(): ?ClientInterface\n {\n if (($client = current($this->clients)) !== false)\n return $client;\n\n return null;\n }", "title": "" }, { "docid": "44c4f4c4699512aaa9adf0e80002a1f9", "score": "0.5041115", "text": "public function getClients()\n {\n return $this->clients;\n }", "title": "" }, { "docid": "8a2f26140999281ea7df8d00feae1640", "score": "0.50334024", "text": "function get_client_by_username($client)\n{\n\tglobal $dbh;\n\t$statement = $dbh->prepare(\"SELECT * FROM \" . TABLE_USERS . \" WHERE user=:username\");\n\t$statement->bindParam(':username', $client);\n\t$statement->execute();\n\t$statement->setFetchMode(PDO::FETCH_ASSOC);\n\n\twhile ( $row = $statement->fetch() ) {\n\t\t$information = array(\n\t\t\t\t\t\t\t'id'\t\t\t\t\t=> html_output($row['id']),\n\t\t\t\t\t\t\t'name'\t\t\t\t=> html_output($row['name']),\n\t\t\t\t\t\t\t'username'\t\t\t=> html_output($row['user']),\n\t\t\t\t\t\t\t'address'\t\t\t=> html_output($row['address']),\n\t\t\t\t\t\t\t'phone'\t\t\t\t=> html_output($row['phone']),\n\t\t\t\t\t\t\t'email'\t\t\t\t=> html_output($row['email']),\n\t\t\t\t\t\t\t'notify'\t\t\t\t=> html_output($row['notify']),\n\t\t\t\t\t\t\t'level'\t\t\t\t=> html_output($row['level']),\n\t\t\t\t\t\t\t'active'\t\t\t\t=> html_output($row['active']),\n\t\t\t\t\t\t\t'max_file_size'\t=> html_output($row['max_file_size']),\n\t\t\t\t\t\t\t'contact'\t\t\t=> html_output($row['contact']),\n\t\t\t\t\t\t\t'created_date'\t\t=> html_output($row['timestamp']),\n\t\t\t\t\t\t\t'created_by'\t\t=> html_output($row['created_by'])\n\t\t\t\t\t\t);\n\t\tif ( !empty( $information ) ) {\n\t\t\treturn $information;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "1af636e6ade13987e842ace29fde0045", "score": "0.5028838", "text": "private function getBaseClient()\n {\n return $this->baseClient ?: $this->baseClient = $this->loadBaseClient();\n }", "title": "" }, { "docid": "2c8fad204fffce82500f286845812e1e", "score": "0.5013843", "text": "public function getClient()\n {\n return $this->_client;\n }", "title": "" }, { "docid": "93fa0f84954395135d890a904539edca", "score": "0.50076133", "text": "public function getCustomerClient()\n {\n return $this->customer_client;\n }", "title": "" }, { "docid": "1c2677fc49f04d018e58abfe47091556", "score": "0.50074583", "text": "public function getClient() {\n\t\treturn $this->_client;\n\t}", "title": "" }, { "docid": "fb86a99274e0d45a01c6c6f6720fec07", "score": "0.50065845", "text": "public function subscription($subscriptionId)\n {\n return $this->coreCustomer->subscriptions->get($subscriptionId);\n }", "title": "" }, { "docid": "9792bb1ddf48da2442b862d738631824", "score": "0.5005873", "text": "public function getName()\n {\n return 'wsclient';\n }", "title": "" }, { "docid": "b15f0b03bc4ddfd4d855c3d437c50926", "score": "0.500581", "text": "public function getBus($name);", "title": "" }, { "docid": "1c121cd721589c928b4dae5586c1b84b", "score": "0.50057364", "text": "public function getClient(): Client {\n return $this->client;\n }", "title": "" }, { "docid": "39c355579acc6e5f84fe4ee50f634b62", "score": "0.5001103", "text": "public static function getClient()\r\n {\r\n return self::$_client;\r\n }", "title": "" }, { "docid": "f6c67890f7b30fc0443460a8b3955330", "score": "0.49932137", "text": "protected function _get($name)\n\t{\n\t\treturn $this->call(\"ticket.component.get\", array($name));\n\t}", "title": "" }, { "docid": "bad6ef3884bfc01b2826c0b5ac772e79", "score": "0.49889368", "text": "public function cliente(){\n\t\t$cliente = mysql_fetch_array(self::ListaTable('*','clientes',\"cli_cgccpf = '\". $this->idCliente .\"'\")) or die (\"Erro na consulta pelo cliente.\");\n\t\treturn $cliente;\t\n\t}", "title": "" }, { "docid": "ea37dac00cbe31e1d87b33ccb82ca264", "score": "0.49847144", "text": "public static function getClient()\n {\n return static::$client;\n }", "title": "" }, { "docid": "8360e4dd06d779ec82760b19bbfcd287", "score": "0.49805033", "text": "public static function getClient() {\n\t\t\n\t\tif ($adapter = static::getAdapter()) {\n\t\t\n\t\t\treturn new Client($adapter);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "95a1c56c7d006ffec4730af2bc99865b", "score": "0.49758333", "text": "public function getClient() {\n\t\tif (null === $this->_client) {\n\t\t\t$this->_client = new Celsus_Db_Mock_Adapter_Redis_Server();\n\t\t}\n\t\treturn $this->_client;\n\t}", "title": "" }, { "docid": "67396eb53e3f7a6cf3fcfd3d9f6570cd", "score": "0.49730295", "text": "public function getClient(): ClientInterface\n {\n return $this->client;\n }", "title": "" }, { "docid": "498649946a34adf17cf9ef78b25c1f43", "score": "0.49712458", "text": "public function getClient()\n {\n return $this->getTransaction()->serviceClient;\n }", "title": "" }, { "docid": "26fe41a7a98777aa0be6125a006986ba", "score": "0.49613735", "text": "public function getProductClient(): GetProductInterface\n {\n return $this->getProductClient;\n }", "title": "" }, { "docid": "85bb3686670c17248bfb27a7b5fd1a4e", "score": "0.49570033", "text": "function si_get_estimate_client( $id = 0 ) {\n\t\tif ( ! $id ) {\n\t\t\t$id = get_the_ID();\n\t\t}\n\t\t$estimate = SI_Estimate::get_instance( $id );\n\t\treturn $estimate->get_client();\n\t}", "title": "" }, { "docid": "ac67880c9df446ab070cf33d93dfb492", "score": "0.49543622", "text": "public function getClientById($clientId);", "title": "" }, { "docid": "00cd2a43caa7cc52f312a598d3b066f3", "score": "0.49509403", "text": "private function getOperationByName($client, $name, $method = null)\n {\n return $client->resumeOperation($name, $method);\n }", "title": "" }, { "docid": "5d063263638184bef999af4918c3e980", "score": "0.49462658", "text": "public function &getClient()\n\t{\n\t\treturn $this->_client;\n\t}", "title": "" }, { "docid": "1142519a0a39b37abc4edc002b2e3fc1", "score": "0.49457163", "text": "public function getIdClient() {\r\n return $this->idClient;\r\n }", "title": "" }, { "docid": "f89b1a72b601183aa5e1fc45ae457eb7", "score": "0.49445337", "text": "function getSubscriber($sub_id)\n {\n $stmt = \"SELECT\n sub_usr_id,\n sub_email\n FROM\n \" . APP_DEFAULT_DB . \".\" . APP_TABLE_PREFIX . \"subscription\n WHERE\n sub_id=\" . Misc::escapeInteger($sub_id);\n $res = DB_Helper::getInstance()->getRow($stmt, DB_FETCHMODE_ASSOC);\n if (PEAR::isError($res)) {\n Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);\n return '';\n } else {\n if (empty($res['sub_usr_id'])) {\n return $res['sub_email'];\n } else {\n return User::getFromHeader($res['sub_usr_id']);\n }\n }\n }", "title": "" }, { "docid": "fc7c3f5303d864d59c1bcd618a12f273", "score": "0.4935677", "text": "public function getClientId ()\n {\n return $this->_clientId;\n }", "title": "" }, { "docid": "e741b1453bb9e7b08cf2e902cbb7014a", "score": "0.49351436", "text": "public function get_cliente()\n {\n // loads the associated object\n if (empty($this->cliente))\n $this->cliente = new Cliente($this->cliente_id);\n \n // returns the associated object\n return $this->cliente;\n }", "title": "" }, { "docid": "a6c3392cbaee02837d908b7806e45926", "score": "0.49346653", "text": "public function getCliente()\n {\n return $this->cliente;\n }", "title": "" }, { "docid": "50a7dee5570116cf9b2512e78764de5f", "score": "0.49332857", "text": "public function get_client($name = NULL) {\n \n $name = (isset($name)? trim($name) : '');\n \n if ($name != ''){\n \n //running query\n $this->db->trans_start();\n $sql = $this->db->query('\n SELECT a.id, a.first_name, a.middle_name, a.last_name, a.gender, email, mobile_phone,\n CONCAT(a.street,\", \",a.ctv, \", \",a.district) as address, a.ec_name, a.ec_number, a.ec_relation, \n (SELECT p.path FROM profile_img p WHERE p.id = a.profile_img_id) as img_path\n FROM applicants a\n WHERE CONCAT(first_name, \" \", last_name) LIKE \"%'.$name.'%\"\n ');\n $this->db->trans_complete();\n\n if ($this->db->trans_status() === FALSE){\n return FALSE;\n }\n \n return $sql->result_array();\n\n\n }else{\n //returning empty array\n return array();\n }\n \n }", "title": "" }, { "docid": "3d9676cbea551109bb4002b5877ffaec", "score": "0.49303794", "text": "public function getClient()\n\t{\n\t\treturn $this->client;\n\t}", "title": "" }, { "docid": "3d9676cbea551109bb4002b5877ffaec", "score": "0.49303794", "text": "public function getClient()\n\t{\n\t\treturn $this->client;\n\t}", "title": "" }, { "docid": "28a84acd3b8edb9dda541d5d8388e3d8", "score": "0.49245054", "text": "public function getClient()\n\t{\n\t\treturn $this->vendor_client;\n\t}", "title": "" }, { "docid": "61cce454ab9fda1623435f9b3ea2a059", "score": "0.49244255", "text": "public function get_subscription() {\n\t\t$account = $this->get_account();\n\t\tif ( $account )\n\t\t\treturn $account['subscription'];\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9e3e0fc723eafdbc04afc23da04c2d04", "score": "0.49218827", "text": "function getClient($id){\n\t\t$db = openDatabaseConnection();\n\t\t\n\t\t$query = $db->prepare(\"SELECT * FROM clients WHERE client_id = :id\");\n\t\t$query->bindParam(':id', $client_id);\n\n\t\t$client_id = $id;\n\n\t\t$query->execute();\n\n\t\t$db = null;\n\n\t\treturn $query->fetchAll();\n\t}", "title": "" }, { "docid": "b7bde43fb353702ddfb20a5dc028d107", "score": "0.49215993", "text": "public function getClientByLabel($label)\n {\n $query = array(\n self::KEY_LABEL => $label,\n self::KEY_GROUP => self::KEY_GROUP_CLIENT\n );\n \n if(!($client = $this->_getUserCollection()->findOne($query)) || empty($client)) {\n return array();\n }\n \n $client[self::KEY_ID] = (string) $client[self::KEY_ID];\n return $client;\n }", "title": "" }, { "docid": "43167c8f9d1ab5808c1e1690c889c4e6", "score": "0.4906995", "text": "public function getClient()\n {\n if (!$this->client) {\n $this->client = $this->createService();\n }\n\n return $this->client;\n }", "title": "" }, { "docid": "932682eed9a5fad9ea50c1b38e2539dd", "score": "0.49047402", "text": "public function getMailclient()\n {\n return $this->mailclient;\n }", "title": "" }, { "docid": "64c53c57549f201759e9305fb98ec02f", "score": "0.4904176", "text": "public function clientList()\r\n {\r\n return $this->getParent()->serverGroupClientList($this->getId());\r\n }", "title": "" }, { "docid": "27566ab54be4b9f6777a5f577118fab6", "score": "0.49038273", "text": "protected function getConfig($name)\n {\n return $this->app['config'][\"opentext.clients.{$name}\"];\n }", "title": "" }, { "docid": "7f2db05677aaec493489d5df6504799b", "score": "0.48909155", "text": "public function client($client = null) {\n\t\tif ($client instanceof SqsClient) {\n\t\t\t$this->_client = $client;\n\t\t}\n\n\t\tif ($client === false) {\n\t\t\treturn $this->_client = null;\n\t\t}\n\n\t\tif (empty($this->_client)) {\n\t\t\t$config = Configure::read('SQS');\n\t\t\t$this->_client = SqsClient::factory($config['connection']);\n\t\t}\n\n\t\treturn $this->_client;\n\t}", "title": "" }, { "docid": "8b28160c10ed859f26f0e1307825bf1d", "score": "0.4886257", "text": "public function findClient(ServerRequestInterface $request, &$client_credentials = null);", "title": "" }, { "docid": "f1eb78944aceafc71c257484286484f9", "score": "0.48805553", "text": "static function selectByName($name) {\n //global $mysqli;\n $con = new mysqli(DBHOST, DBUSER, DBPASS, DBNAME);\n\n $query = \"select id from subcategory where name = ?\";\n\n $stmt = $con->prepare($query);\n\n if (!$stmt) {\n return false;\n }\n //pind_param\n $res = $stmt->bind_param('s', $name);\n if (!$res) {\n echo 'binding failed' . $stmt->error;\n return false;\n }\n //execute\n if (!$stmt->execute()) {\n return false;\n }\n $result = $stmt->get_result();\n $result = $result->fetch_array();\n $stmt->close();\n $con->close();\n return $result;\n }", "title": "" }, { "docid": "da489255a4bbcc1208f7229c0f29091d", "score": "0.48759186", "text": "function create_twilio_subaccount($name) {\n\n\t$client = new Services_Twilio($sid, $token);\n \n\t$account = $client->accounts->create(array(\n \"FriendlyName\" => $name\n\t));\n\necho $account->sid;\n\n}", "title": "" } ]
516a5b4644451d5bc63fdc482fed5a2f
Returns the data model based on the primary key given in the GET variable. If the data model is not found, an HTTP exception will be raised.
[ { "docid": "0bde064021332c19f385b10829f4f920", "score": "0.0", "text": "public function loadModel($id)\n\t{\n\t\t$model=Rule::model()->findByPk($id);\n\t\tif($model===null)\n\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" } ]
[ { "docid": "0165cc7d15c27843926e4df81ca92655", "score": "0.7190081", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']) && isset($_GET['code']))\n\t\t\t\t$this->_model=TblRequest::model()->findbyPk(array('code'=>$_GET['code'],'service'=>$_GET['id']));\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "e22304d44b3fee7cb9d8e629ccc88cb9", "score": "0.6800567", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Subpanorama::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "3aff661675617f2da1b8bdc32b843160", "score": "0.68002796", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Object::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "191a5e4ca59a411d0b1e8541e11491f6", "score": "0.67366314", "text": "public function loadModel($id)\n\t{\n\t\t$model=DataExtra::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "c9496111a5fb413c292dd5974e9637e7", "score": "0.6682974", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=VisiMisi::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "4fabf60121fd3dd1c46f21415641bf7d", "score": "0.66646785", "text": "public function loadModel($id)\n\t{\n\t\t$model=CallerResult::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "ffe08a5871b37a28e82247544fe6ab88", "score": "0.6651748", "text": "public function loadModel($ID) {\r\n $model = Timesheet::model()->findByPk($ID);\r\n if ($model === null)\r\n throw new CHttpException(404, Yii::t('site', 'The requested page does not exist.'));\r\n return $model;\r\n }", "title": "" }, { "docid": "e3b4f6799f854a2fa4596c9d8726ef00", "score": "0.66126734", "text": "public function loadModel($id)\n\t{\n\t\t$model=RequestDetail::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "c742bf8d45de099d714be66c378dfb7f", "score": "0.66095215", "text": "public function loadModel($id)\n\t{\n\t\t$model=betData::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "3fe7f0945dbccbf4a482d83399060634", "score": "0.6604083", "text": "public function find($key): ?Model;", "title": "" }, { "docid": "c0000b3a5d0e9c9acaf781bf1f947df8", "score": "0.65994114", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=user_advs::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "1f5d8ddca04789cb771a52021fcf5b6b", "score": "0.6585534", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Buildcollect::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "7789b1b0aa84c6b35a8d5c5668f5d5f5", "score": "0.6576014", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=Successinfo::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null){\n throw new CHttpException(404,'The requested page does not exist.');\n }\n if($this->_model->si_userid!=Yii::app()->user->id){\n throw new CHttpException(404,'The requested page does not exist.');\n }\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "c9a00e54cb9915382e83c711754cbd8e", "score": "0.65574646", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t{\n\t\t\t\t$condition='';\n\t\t\t\t$this->_model=Chat::model()->findByPk($_GET['id'], $condition);\n\t\t\t}\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "846d8497ccfb3528d0a5a4b6d60f7ebc", "score": "0.6504356", "text": "public function loadModel($id)\n\t{\n\t\t$model=Fabric::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "b7b05a4f061f786c3a071e5732b2b436", "score": "0.650226", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=User::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\tif (isset($this->_model) && isset($this->_model->authAssignment) && (!Yii::app()->user->checkAccess($this->_model->authAssignment->itemname) || $this->_model->id == Yii::app()->user->id))\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "e89fdac79f0db48b7305360f40bc09f5", "score": "0.6500795", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t{\n\t\t\t\tif(Yii::app()->user->isGuest)\n\t\t\t\t\t$condition='status='.Post::STATUS_PUBLISHED.' OR status='.Post::STATUS_ARCHIVED;\n\t\t\t\telse\n\t\t\t\t\t$condition='';\n\t\t\t\t$this->_model=Post::model()->findByPk($_GET['id'], $condition);\n\t\t\t}\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "e2d96a5fc580f5acf6c47cccd261e86c", "score": "0.64943343", "text": "public function loadModel($id)\n\t{\n\t\t$model=KPelamarT::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "eade55890900fd9c42494746666eea6b", "score": "0.6485412", "text": "public function loadModel($id){\n\t\t\n\t\t$model=HisPinglun::model()->findByPk($id);\n\t\t\n\t\tif($model===null)\n\t\t\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t\n\t\treturn $model;\n\t\n\t}", "title": "" }, { "docid": "d0f9efeca4de8656585206606ef919c0", "score": "0.6478372", "text": "public function loadModel($id) \n\t{\n\t\t$model = Digitals::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404, Yii::t('phrase', 'The requested page does not exist.'));\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "de58659873d43c0a9786e3969b689126", "score": "0.6471122", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=User::model()->notsafe()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "de58659873d43c0a9786e3969b689126", "score": "0.6471122", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=User::model()->notsafe()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "3041bd40b86d50abbd8819607f46c30b", "score": "0.6467302", "text": "public function loadModel()\n {\n if($this->_model===null)\n {\n if(isset($_GET['id']))\n $this->_model=Msgrec::model()->findbyPk($_GET['id']);\n if($this->_model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n }\n return $this->_model;\n }", "title": "" }, { "docid": "f21b729b2cd889f0875b8e8f27f3f037", "score": "0.6461176", "text": "public function loadModel($id)\n\t{\n\t\t$model=Object::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,Yii::t('rdt','The requested page does not exist.'));\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "b79ac883d44e1df997460f344875a089", "score": "0.6449769", "text": "public function loadModel($id) {\r\n $model = Documents::model()->findByPk($id);\r\n if ($model === null)\r\n throw new CHttpException(404, 'The requested page does not exist.');\r\n return $model;\r\n }", "title": "" }, { "docid": "4b666ea19ba1f12de7ad335334e681e7", "score": "0.6449249", "text": "public function getRequestedRecord()\n {\n $request = $this->getRequest();\n $ModelClass = $request->getVar('ModelClass');\n $ID = $request->getVar('ID');\n if ($ID) {\n return DataObject::get_by_id($ModelClass, $ID);\n }\n return false;\n }", "title": "" }, { "docid": "0d7b3f31639a91c1601f86295a4e4bb6", "score": "0.6443909", "text": "public function loadModel($id)\n\t{\n\t\t$model=syscatalog::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "66492b0687ad41c925d0cd58e4f6e700", "score": "0.644029", "text": "public function get($key)\n\t{\n\t\tif($this->has($key)){\n\t\t\treturn $this->models[$key];\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2f4d07fa06d1f3ab94b9e3b040b77e37", "score": "0.6435299", "text": "public function loadModel($id)\n\t{\n\t\t$model=Mastermahasiswa::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "08a8131fca4fcad2390b69f0086157bc", "score": "0.643525", "text": "public function loadModel($id)\n\t{\n\t\t$model=RekapIndikator::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "d1955401aab99f20eb777fa818260c4e", "score": "0.64196026", "text": "public function loadModel($id)\n\t{\n\t\t$model=Item::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "d1955401aab99f20eb777fa818260c4e", "score": "0.64196026", "text": "public function loadModel($id)\n\t{\n\t\t$model=Item::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "d1955401aab99f20eb777fa818260c4e", "score": "0.64196026", "text": "public function loadModel($id)\n\t{\n\t\t$model=Item::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "0f6485d6bd29aac5c229fc8e0b8ce041", "score": "0.6418941", "text": "public function loadModel($id) {\n\t\t$model = Document::model ()->findByPk ( $id );\n\t\tif ($model === null)\n\t\t\tthrow new CHttpException ( 404, 'The requested page does not exist.' );\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "0f6485d6bd29aac5c229fc8e0b8ce041", "score": "0.6418941", "text": "public function loadModel($id) {\n\t\t$model = Document::model ()->findByPk ( $id );\n\t\tif ($model === null)\n\t\t\tthrow new CHttpException ( 404, 'The requested page does not exist.' );\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "cd78b803cfc131716c30223d283517ee", "score": "0.64184046", "text": "public function loadModel($id)\n\t{\n\t\t$model=Salary::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "45848a8a99d3d2d5609aedf7ff3d6ec0", "score": "0.64173794", "text": "public function loadModel($id) {\n $model = Swift::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "f62019cb38267c6800f0b454be00576c", "score": "0.64163816", "text": "protected function getRecordFromRequest($key = 'id')\n {\n if (empty($this->module->model_class)) {\n return null;\n }\n\n // Retrieve model class\n $modelClass = $this->module->model_class;\n\n // An id is defined, retrieve the record from the database fail (404)\n if ($this->request->has($key)) {\n $recordId = (int)$this->request->input($key);\n $record = $modelClass::findOrFail($recordId);\n }\n // Make a new empty instance\n else {\n $record = new $modelClass();\n\n // Set domain if column exists\n if (Schema::hasColumn($record->getTable(), 'domain_id')) {\n $record->domain_id = $this->domain->id;\n }\n }\n\n return $record;\n }", "title": "" }, { "docid": "84ea330c69cf2c43b792ae9e0cc54d0a", "score": "0.641595", "text": "public function loadModel($id)\n\t{\n\t\t$model=Subastas::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "aa9e7a5b33e734976466d11c8c2dbba2", "score": "0.6405295", "text": "protected function getModelFromDatabase($key)\n {\n return call_user_func_array([$this->modelClass, 'where'], [$this->keyName, $key])->firstOrFail();\n }", "title": "" }, { "docid": "fb9bf9f1871527a95ac4c83ff2200695", "score": "0.6401107", "text": "public function loadModel($id)\n\t{\n\n\t\t//$model = Store::model()->with(array('users'=>array('condition'=>'school_id='.$id)))->findByPk($id);\n\t\t$model = Store::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "ed0ff9a074da11a8625e4e1c8f35233a", "score": "0.63943857", "text": "public function loadModel($id) {\n $model = FlightMaster::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "63b7f83f78c3c9414ffb4c659f5bdbff", "score": "0.6391989", "text": "public function loadModel($id)\n\t{\n\t\t$model=Compra::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "9e71c8877b9bc57bd711d89f12877e89", "score": "0.63906074", "text": "public function loadModel($id)\n\t{\n\t\t$model=AvisEntreprise::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "7aa7b85df549ff58a0d1e4e0b4a1f955", "score": "0.63841367", "text": "public function loadModel($id) {\n\t\t$model = AKJenispenerimaanM::model()->findByPk($id);\n\t\tif ($model === null)\n\t\t\tthrow new CHttpException(404, 'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "d8c3d44637689682a9ef552b194fe53f", "score": "0.6378156", "text": "public function findModel($data)\n {\n $id = (is_array($data[$this->name]['id'])) ? @$data[$this->name]['id'][0] : $data[$this->name]['id'];\n $model = $this->EntityRepository->find($id);\n if ($model === null) {\n $model = $this->loadModel($id);\n }\n\n return $model;\n }", "title": "" }, { "docid": "8e87be7d3c1f2e69187bb2efc736bd0b", "score": "0.63769305", "text": "public function loadModel($id)\n\t{\n\t\t$model=Persona::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "31ce44bf3abdc9e39b02bd25c82cff42", "score": "0.6371936", "text": "public function loadModel($id)\n {\n $model=EmailTemplate::model()->with('layouts')->findByPk($id);\n if($model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "74c752cc502d6d297fd683602e008ccb", "score": "0.63714355", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t{\n\t\t\t\tif(Yii::app()->user->isGuest)\n\t\t\t\t\t$condition='t.status='.Post::STATUS_PUBLISHED.' OR t.status='.Post::STATUS_ARCHIVED;\n\t\t\t\telse\n\t\t\t\t\t$condition='';\n\t\t\t\t$this->_model=Post::model()->with('author','author.profile')->findByPk(Yii::app()->request->getParam('id'), $condition);\n\t\t\t}\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "c5c0a3e9002a96e753fd7b1c5ef0ddeb", "score": "0.6370786", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=User::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "c5c0a3e9002a96e753fd7b1c5ef0ddeb", "score": "0.6370786", "text": "public function loadModel()\n\t{\n\t\tif($this->_model===null)\n\t\t{\n\t\t\tif(isset($_GET['id']))\n\t\t\t\t$this->_model=User::model()->findbyPk($_GET['id']);\n\t\t\tif($this->_model===null)\n\t\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\t}\n\t\treturn $this->_model;\n\t}", "title": "" }, { "docid": "86004780f2df4d47f0b9b2338786ed1f", "score": "0.63684005", "text": "public function loadModel()\r\n {\r\n if($this->_model===null)\r\n {\r\n if(isset($_GET['id']))\r\n $this->_model=User::model()->findbyPk($_GET['id']);\r\n if($this->_model===null)\r\n throw new CHttpException(404,'The requested page does not exist.');\r\n }\r\n return $this->_model;\r\n }", "title": "" }, { "docid": "488382e347bdb86e691905add5e91aef", "score": "0.63665223", "text": "public function loadModel($id)\n\t{\n\t\t$model=Solicitudes::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "a5f50cd1cc212f3a016a052d5784b55a", "score": "0.63643", "text": "public function loadModel($id)\n\t{\n\t\t$model = Analisis::model()->findByPk($id);\n\t\tif ($model === null)\n\t\t\tthrow new CHttpException(404, 'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "4d1228b3ba5dd82641ffd5c487bdbf69", "score": "0.6363135", "text": "public function loadModel()\n {\n if ($this->_model === null) {\n if (isset($_GET['id']))\n $this->_model = User::model()->findbyPk($_GET['id']);\n if ($this->_model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n }\n return $this->_model;\n }", "title": "" }, { "docid": "6754da32153a2267737a74aeb68c8f1a", "score": "0.636228", "text": "public function loadModel($id)\n {\n $model = Akm::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "0d0d2d3e0eb8da2386b7c3dfe879f8fd", "score": "0.6359868", "text": "public function loadModel($id)\n\t{\n\t\t$model=EbrSales::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "9b066fff471252a6adc08721c4cd1147", "score": "0.6359433", "text": "public function loadModel($id)\n\t{\n\t\t$model=AvisEmploye::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "3fdef262334b9f01e158d69fe3300e77", "score": "0.6358816", "text": "public function loadModel($id) {\n $model = Permisos::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "3b5d1b8ece69be54337f86442eb50037", "score": "0.6356318", "text": "public function loadModel($id)\n\t{\n\t\t$model=PortfolioReturns::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "a805715e5df08f580e2ffd99ce43d3da", "score": "0.6356232", "text": "public function loadModel($id) {\n $model = Productionkot::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "959a567e70dad56cc349d32d5bba57fa", "score": "0.63542104", "text": "public function loadModel($id)\n\t{\n\t\t$model=Empresa::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "cb50e34469b4cc50de4f65e2addde884", "score": "0.6345917", "text": "public function loadModel($id)\r\n\t{\r\n\t\t$model=TimetableEntries::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404,Yii::t('app','The requested page does not exist.'));\r\n\t\treturn $model;\r\n\t}", "title": "" }, { "docid": "0633753385758d9ce98894529d8c3f84", "score": "0.6332028", "text": "public function loadModel($id)\n\t{\n\t\t$model=Me::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "6037ac72726efca7d4d1a8d11232b31e", "score": "0.6331964", "text": "public function loadModel($id)\n\t{\n\t\t$model=Libros::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "804aa67a77a68fcff7699cf030a643b1", "score": "0.63271767", "text": "protected function findModel($item_id)\n\t{\n\t\tif (($model = SapItem::findOne($item_id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new HttpException(404, 'The requested page does not exist.');\n\t\t}\n\t}", "title": "" }, { "docid": "4f9043c5ab7024f31aeb6c04ca7b912d", "score": "0.6326988", "text": "public function loadModel($id)\r\n\t{\r\n\t\t$model=Contacts::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404, Yii::t('app', 'The requested page does not exist.'));\r\n\t\treturn $model;\r\n\t}", "title": "" }, { "docid": "afef1211c22f8cb6a8a72c02a34738b3", "score": "0.63267624", "text": "public function loadModel($id) {\n $model = Host::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }", "title": "" }, { "docid": "b2b146af8abdeb3bd0b0476576fb9bce", "score": "0.63266003", "text": "public function loadModel($id)\n\t{\n\t\t$model=BmsInfo::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "4cec6444d2662e1809b199a6db6e3e6a", "score": "0.6325304", "text": "public function loadModel($id)\n\t{\n\t\t$model=Tabla9::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "7970fc08921acce6cebf608362cb666a", "score": "0.63167244", "text": "public function loadModel($id)\n {\n $model=Mark::model()->findByPk($id);\n if($model===null) {\n throw new CHttpException(404,'The requested page does not exist.');\n }\n return $model;\n }", "title": "" }, { "docid": "6c478ce4ae06691cf1a47a52db7b3352", "score": "0.6314896", "text": "public function loadModel($id)\n\t{\n\t\t$model=Baol::model()->findByPk((int)$id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "45f8b9c6ca93f5087334f1e8a7b53a7d", "score": "0.63123083", "text": "public function loadModel($id)\n\t{\n\t\t$model=Inmueble::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "51c28a4a237ca3d7cef586cbaa8e0001", "score": "0.6311262", "text": "public function loadModel($id)\n\t{\n\t\t$model=Bead::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "9a57dc387ae7612cf9891abf214abea1", "score": "0.63108903", "text": "public function loadModel($id)\n\t{\n\t\t$model=Job::model()->findByPk((int)$id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "b97e2f7c60fbd636b99c28751c206f9f", "score": "0.63092285", "text": "public function loadModel($id)\n\t{\n\t\t$model=WuType::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "ddbd49627bf62326359d3f65a3ca46a5", "score": "0.630885", "text": "public function load($id): ?Model;", "title": "" }, { "docid": "f54671e7f163ee241c43bc5af4269d56", "score": "0.6307952", "text": "protected function getModel ($key)\n {\n\n if (isset($this->models[$key]))\n return $this->models[$key];\n else\n return null;\n\n }", "title": "" }, { "docid": "eb2902845e810fa1e11c21feec2e6720", "score": "0.63079363", "text": "public function loadModel($id)\n\t{\n\t\t$model=Inventariofisicopadre::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "512a0725f20e7dff8ea57018ccfaad81", "score": "0.6306923", "text": "public function loadModel($id)\n\t{\n\t\t$model=Customer::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "512a0725f20e7dff8ea57018ccfaad81", "score": "0.6306923", "text": "public function loadModel($id)\n\t{\n\t\t$model=Customer::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "920cfc46d36b4e00edd9b5f76ca3fff5", "score": "0.6303", "text": "public function loadModel($id)\n\t{\n\t\t$model=Beer::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "97bab50b14ed8f049fa31350c0ee3326", "score": "0.63016963", "text": "public function loadModel($id)\n\t{\n\t\t$model=Suelas::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "ee559afb51633f99cc0f7a0c13e8523b", "score": "0.63008416", "text": "public function loadModel($id)\n\t{\n\t\t$model=Cls::model()->findByPk((int)$id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "04b8ad41ad910790454cd0398df0aca5", "score": "0.6300758", "text": "public function loadModel($code)\n\t{\n\t\t$model=Setting::model()->findByPk($code);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "048f4ffcc08dc9095d9e8a08e0e1e1e3", "score": "0.6299873", "text": "public function retrieveById($identifier){\n return $this->model::where(\"id\", $identifier)->first();\n }", "title": "" }, { "docid": "ef6f00a529d82655d224c30a739c0ffb", "score": "0.6299076", "text": "public function loadModel($id)\n\t{\n\t\t$model=Plan::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "22d173b8328844699544196e494ff68e", "score": "0.6296292", "text": "public function loadModel($id)\n\t{\n\t\t$model=Holes::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "5d925b709cfb1ee41e2c76c9c9be5b1e", "score": "0.6294284", "text": "public function loadModel($id)\n\t{\n\t\t$model=CustomerOffice::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "7b308af836e2e5b8e83e2704cab218d4", "score": "0.62915", "text": "public function loadModel($id)\n\t{\n\t\t$model = Pedido::model()->find(array(\n\t\t\t'condition' => 'id = :id and estado = :estado and idUsuario = :usuario',\n\t\t\t'params' => array(':id' => $id, ':estado' => Pedido::ENVIADO, ':usuario' => Yii::app()->user->id)\n\t\t));\n\t\t\n\t\tif($model===null)\n {\n throw new CHttpException(404,'The requested page does not exist.');\n }\n \n\t\treturn $model;\n\t}", "title": "" }, { "docid": "f3e0a95805d41fde2f9829ae1c574171", "score": "0.6288865", "text": "public function loadModel($id)\n\t{\n\t\t$model=Entity::model()->with('people')->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "6343ac8a521441602d8212772aad554c", "score": "0.6279838", "text": "public function loadModel($id)\n\t{\n\t\t$model=Task::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "271c282ee83a709aa2baf4bb45d476fe", "score": "0.62787765", "text": "public function loadModel($id)\n\t{\n\t\t$model= RMPendaftaranT::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "c46c2020065e03b2ac817b4279a962be", "score": "0.6278135", "text": "public function loadModel($id)\n\t{\n\t\t$model=PengelolaanDana::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "7cf9921c7ad0c6f77c2bad830f73e8c7", "score": "0.62780344", "text": "public function loadModel($id) {\n $model = Spt::model()->findByPk($id);\n if ($model === null) {\n throw new CHttpException(404, Yii::t('trans', 'The requested page does not exist.'));\n }\n return $model;\n }", "title": "" }, { "docid": "eda0b893d2bb36291ed275b311dd62f6", "score": "0.627768", "text": "public function loadModel($id)\n\t{\n\t\t$model=KPPengangkatantphlT::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "b4e532905f0bbdff42123dc659d7b7e4", "score": "0.6273036", "text": "public function loadModel($id)\n\t{\n\t\t$model=Tacones::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "e89be40d0bf291c06107cca99c8b8ef5", "score": "0.6266789", "text": "public function loadModel($id)\n\t{\n\t\t$model=Agencies::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "41986d5ab8a131da76768a41a4cb47d0", "score": "0.62664205", "text": "public function loadModel($id)\n\t{\n\t\t$model=JobPosting::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "cfa872d6f4f2b65cc5961f47ef8e1954", "score": "0.62659484", "text": "public function loadModel($id)\n\t{\n\t\t$model=Tariff::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "c8d3e05ff89fad26db0ba2068da3a4ca", "score": "0.62619126", "text": "public function loadModel($id)\r\n\t{\r\n\t\t$model=Contencao::model()->findByPk($id);\r\n\t\tif($model===null)\r\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\r\n\t\treturn $model;\r\n\t}", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "cd77f1d383775d55fae4b7009b8d980b", "score": "0.0", "text": "public function show(int $id = 0): JsonResponse\n {\n\n $retorno = new Collection();\n $retorno->mensagem = \"Sucesso\";\n $retorno->dados = [];\n $retorno->status = 200;\n try{\n $cliente = Cliente::all();\n if($id != 0){\n $cliente = Cliente::find($id);\n }\n $retorno->dados = $cliente;\n }catch(Exception $e){\n $retorno->mensagem = $e->getMessage();\n $retorno->status = $e->getCode();\n $retorno->dados = [];\n }\n\n return response()->json([\n 'mensagem' => $retorno->mensagem,\n 'status' => $retorno->status,\n 'dados' => $retorno->dados\n ]);\n }", "title": "" } ]
[ { "docid": "1e43f3d3b2f3866101c5634098486ad9", "score": "0.7079807", "text": "public function show(Resource $resource)\n {\n return view('resources.show')->with('resource', $resource);\n }", "title": "" }, { "docid": "1e43f3d3b2f3866101c5634098486ad9", "score": "0.7079807", "text": "public function show(Resource $resource)\n {\n return view('resources.show')->with('resource', $resource);\n }", "title": "" }, { "docid": "05b525c46e58ebdea607568ba7e031f9", "score": "0.699911", "text": "public function show(Resource $resource)\n {\n return view('admin.resources.show', compact('resource'));\n }", "title": "" }, { "docid": "4374562bd3b3c76899b3d68131e9a081", "score": "0.68174225", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\r\n {\r\n $this->_smarty->fetch($resource_name, $cache_id, $compile_id, true);\r\n }", "title": "" }, { "docid": "511a03741cea7982a95e0898bd8c8015", "score": "0.6725235", "text": "public function showResourceItem(array $data);", "title": "" }, { "docid": "6056fa21e4d2ebaac57d6ae22cfb4260", "score": "0.6548998", "text": "public function show(Request $request, $resource)\n { \n presenting_resource($resource);\n\n return $this->resource($resource);\n }", "title": "" }, { "docid": "1c52708cb57fd592777a5112fceca4f9", "score": "0.6427337", "text": "public function indexAction($resource)\n {\n parent::staticResource($resource);\n }", "title": "" }, { "docid": "02342204dff832c132b8ce831e17a092", "score": "0.63763934", "text": "public function get( $resource );", "title": "" }, { "docid": "38d4e6796db39109f0d6935dfd120534", "score": "0.6311607", "text": "public function retrieve(Resource $resource);", "title": "" }, { "docid": "54166e0b4bd59c6836b3f61a27596a54", "score": "0.6273021", "text": "public function viewResource($resourceController, $id) {\n $wrapper = $resourceController->wrapper($id);\n return $this->serialize(self::getData($wrapper));\n }", "title": "" }, { "docid": "31fd7f5a71b2af075f21c41c3d288e5e", "score": "0.62364846", "text": "public function show($id)\n {\n $resource = Resource::findorfail($id);\n return view('resources.show', ['resource'=>$resource]);\n }", "title": "" }, { "docid": "cf59458dc7815f856881d0a5db80dfc2", "score": "0.6228283", "text": "public function show(Resource $resource)\n {\n ResourceResource::withoutWrapping();\n\n return new ResourceResource($resource);\n }", "title": "" }, { "docid": "83bb7b752846f0cc3eb62e3fff19d079", "score": "0.61094654", "text": "public function displayAction()\r\n {\r\n // set filters and validators for GET input\r\n $filters = array(\r\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\r\n ); \r\n $validators = array(\r\n 'id' => array('NotEmpty', 'Int')\r\n );\r\n $input = new Zend_Filter_Input($filters, $validators);\r\n $input->setData($this->getRequest()->getParams());\r\n\r\n // test if input is valid\r\n // retrieve requested record\r\n // attach to view\r\n if ($input->isValid()) {\r\n $q = Doctrine_Query::create()\r\n ->from('Square_Model_Item i')\r\n ->leftJoin('i.Square_Model_Country c')\r\n ->leftJoin('i.Square_Model_Grade g')\r\n ->leftJoin('i.Square_Model_Type t')\r\n ->where('i.RecordID = ?', $input->id);\r\n $result = $q->fetchArray();\r\n if (count($result) == 1) {\r\n $this->view->item = $result[0]; \r\n } else {\r\n throw new Zend_Controller_Action_Exception('Page not found', 404); \r\n }\r\n } else {\r\n throw new Zend_Controller_Action_Exception('Invalid input'); \r\n }\r\n }", "title": "" }, { "docid": "c0f2735f053c6a5a3e8867a70d986464", "score": "0.6095133", "text": "function display($resource_name = null, $cache_id = null, $compile_id = null, $display = false) {\n\t\tglobal $pommo;\n\n\t\tif(!$this->templateExists($resource_name)) {\n\t\t\tPommo :: kill(sprintf(Pommo::_T('Template file (%s) not found in default or current theme'), $resource_name), true, true);\n\t\t}\n\n\t\tif ($pommo->_logger->isMsg())\n\t\t\t$this->assign('messages', $pommo->_logger->getMsg());\n\t\tif ($pommo->_logger->isErr())\n\t\t\t$this->assign('errors', $pommo->_logger->getErr());\n\t\t\t\n\t\treturn parent :: display($resource_name, $cache_id = null, $compile_id = null, $display = false);\n\t}", "title": "" }, { "docid": "1aeacbffda6650974375c42070cae740", "score": "0.6069593", "text": "public function show($id)\n {\n //\n return Resource::find($id);\n }", "title": "" }, { "docid": "7ec97073766288c908c352bcddc36a14", "score": "0.60485154", "text": "public function show($id)\n\t{\n\t\t$resource = $this->getResourceRepository()->find($id);\n\n if($resource) {\n return $this->apiResponse->success($resource->toArray());\n }\n\n return $this->apiResponse->failed(array(\"resource not found\"), 404, \"Resource not found\");\n\t}", "title": "" }, { "docid": "412f76bcd34cbd9d455a43614efe905d", "score": "0.6027944", "text": "public function single(){\n \n $this->display();\n }", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "8b1101140a2110ae57f11fa001bc879a", "score": "0.59651244", "text": "public function actionShow() {\n\n $workspace = $this->getSpace();\n $this->render('show', array('workspace' => $workspace));\n }", "title": "" }, { "docid": "8bc1c5b8544b92e4394c7b7553267dc3", "score": "0.5931247", "text": "public function show($id)\n\t{\n $model = $this->model;\n $resource = $model::find($id);\n\n if (!$resource) {\n return Response::apiNotFound();\n } else {\n\t\t return Response::api(['resource' => $resource]);\n }\n\t}", "title": "" }, { "docid": "0b4e77112a7869cf0d904b30e184112a", "score": "0.5922144", "text": "public function display()\r\n {\r\n $this->client = $this->get( 'client' );\r\n \r\n parent::display();\r\n }", "title": "" }, { "docid": "a6688716096de732ac676d2606652404", "score": "0.5905599", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "eddab4555ac4a572fa5a763f4e0471fc", "score": "0.58919686", "text": "public function show(HTTP_Request $request, HTTP_Response $response);", "title": "" }, { "docid": "0c9be934bd18c758ee8036136e38ca6d", "score": "0.586946", "text": "public function resource($resource)\n {\n return $this->_returnContent(\n 'resource://' . $resource->getResource()->getSha1()\n );\n }", "title": "" }, { "docid": "6fbb381f7148aba7574dc29413d87f90", "score": "0.5863148", "text": "public function display($id)\n {\n\n\n\n }", "title": "" }, { "docid": "ff6b8314d3827e83bc6f916f611deecc", "score": "0.5861292", "text": "public final function display()\n\t{\n\t\techo $this->fetch();\n\t}", "title": "" }, { "docid": "d9a6eb41dd9fbf426113fcd8b0ba834e", "score": "0.58584934", "text": "public function showAction()\n {\n $album = $this->_getAlbumById($this->_getParam('id'));\n $this->view->album = $album;\n $this->view->artist = $album->findParentRow('Model_Artist');\n }", "title": "" }, { "docid": "5781a2d120285a71e7e85b5a66be6d25", "score": "0.5857818", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit')->with('resource', $resource);\n }", "title": "" }, { "docid": "fb50b97152154644c43c75ade8145487", "score": "0.5847528", "text": "public function show($id)\n\t{\n\t\treturn $this->resource->find($id);\n\t}", "title": "" }, { "docid": "8827cab97e78bc260c04825c9bb3d30a", "score": "0.5832523", "text": "public\n\t\tfunction show($id)\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "1859e20a258f6d15d4629c6689c04084", "score": "0.5794996", "text": "public function show()\n\t{\n\t\t\n\n\t}", "title": "" }, { "docid": "55ebb313f26c5900b8cfe594dfa4e5eb", "score": "0.57751614", "text": "public function display() {\n\t\techo $this->render();\n\t}", "title": "" }, { "docid": "b305d1a5fdddca312c53a5b0873ba322", "score": "0.5764189", "text": "public function get(string $resource, int $id);", "title": "" }, { "docid": "e85f77f9bd4a383aa63ea576917efd8b", "score": "0.57539546", "text": "public function show(Respon $respon)\n {\n //\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "bd887cc40d240b6d393f5e769c337a39", "score": "0.5715846", "text": "public function display()\n {\n echo $this->tplObj->fetch();\n }", "title": "" }, { "docid": "056b3dd2a38f029f5eae7e6137d14e09", "score": "0.5703375", "text": "public function show($id)\n\t{\n\t\t$data = $this->resource->show($id);\n\t\treturn $this->responseMessage($data);\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": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "8a051215912849e35253d096a8bfd6b8", "score": "0.56884444", "text": "public function show($object)\n {\n //\n }", "title": "" }, { "docid": "f16e75f4649c770d9e84451bfcb472f1", "score": "0.5685978", "text": "public function show(Capacity $capacity)\n {\n //\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": "" }, { "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": "" } ]
b64362dcb4d6f9f2c0ee05d7c71181ff
Update all optin campaign settings.
[ { "docid": "dfa9679e58626f5231e821e917dd4152", "score": "0.6125562", "text": "public static function updateSettings($campaignSettings)\n {\n return update_option(MO_OPTIN_CAMPAIGN_WP_OPTION_NAME, $campaignSettings, false);\n }", "title": "" } ]
[ { "docid": "93a328475404c03c921ae5a235573c35", "score": "0.6391892", "text": "public function update_settings()\n {\n woocommerce_update_options( self::get_settings() );\n }", "title": "" }, { "docid": "b18f7a1c0832e47760c1d34fba3ff6af", "score": "0.6238343", "text": "public function wfc_update_wp_options(){\n $wfc_settings_array = array(\n 'comment_registration' => 1,\n 'require_name_email' => 1,\n 'default_comment_status' => 1,\n 'comment_moderation' => 1,\n 'timezone_string' => \"America/New_York\",\n 'blogdescription' => \"\",\n 'image_default_link_type' => \"none\"\n );\n foreach( $wfc_settings_array as $setting_i => $setting_v ){\n update_option( $setting_i, $setting_v );\n }\n header( \"Location: admin.php?page=wfc_theme_customizer.php&settings_updated=true\" );\n }", "title": "" }, { "docid": "27c007dce2419fb0d7119079fbf8c2f1", "score": "0.6173345", "text": "public function update() {\n $this->convert_legacy_settings();\n\t $this->convert_to_smart_options();\n\t $this->remove_obsolete_options();\n\t $this->remove_unnamed_options();\n\t update_option( $this->addon->option_name , $this->addon->options );\n }", "title": "" }, { "docid": "12f638588f356ecb613bfb2b7db65655", "score": "0.6074374", "text": "public function update_settings() {\n\t\tif ( isset( $_POST['amu_ldap_username_validation'] ) ) {\n\t\t\tupdate_site_option( 'amu_ldap_username_validation', '1' );\n\t\t} else {\n\t\t\tupdate_site_option( 'amu_ldap_username_validation', '' );\n\t\t}\n\n\t\tif ( isset( $_POST['ldap_host'] ) ) {\n\t\t\tupdate_site_option( 'ldap_host', $_POST['ldap_host'] );\n\t\t}\n\n\t\tif ( isset( $_POST['ldap_port'] ) ) {\n\t\t\tupdate_site_option( 'ldap_port', $_POST['ldap_port'] );\n\t\t}\n\n\t\tif ( isset( $_POST['ldap_dn'] ) ) {\n\t\t\tupdate_site_option( 'ldap_dn', $_POST['ldap_dn'] );\n\t\t}\n\n\t\t$this->updated = true;\n\t}", "title": "" }, { "docid": "75e37e307893a7ded3934e12fc79030c", "score": "0.5875153", "text": "public function update_settings() {\n $valid_round_times = array('none', '1', '15', '30');\n $valid_sort_employees_by = array('first_name', 'last_name', 'uid');\n $valid_list_employees_as = array('last_first', 'first_last');\n $valid_sort_jobs_by = array('job_id', 'job_name', 'client_name');\n \n $this->__set('round_time_by', ((array_key_exists('round_time_by', $_POST) && in_array($_POST['round_time_by'], $valid_round_times)) ? $_POST['round_time_by'] : 'none'));\n $this->__set('sort_employees_by', ((array_key_exists('sort_employees_by', $_POST) && in_array($_POST['sort_employees_by'], $valid_sort_employees_by)) ? $_POST['sort_employees_by'] : 'first_name'));\n $this->__set('list_employees_as', ((array_key_exists('list_employees_as', $_POST) && in_array($_POST['list_employees_as'], $valid_list_employees_as)) ? $_POST['list_employees_as'] : 'last_first'));\n $this->__set('sort_jobs_by', ((array_key_exists('sort_jobs_by', $_POST) && in_array($_POST['sort_jobs_by'], $valid_sort_jobs_by)) ? $_POST['sort_jobs_by'] : 'job_id'));\n $this->__set('paginate_by', ((array_key_exists('paginate_by', $_POST)) ? (int) $_POST['paginate_by'] : '10'));\n \n $this->_update_status = '<div class=\"form_success\">Settings Updated Successfully</div>';\n }", "title": "" }, { "docid": "aed4a26a59e433584e924720c1141b34", "score": "0.5866887", "text": "private function update_options() {\n\t\t$this->earlyOrderDate = get_option('early_order_date');\n\t\t$this->lastOrderDate = get_option('last_order_date');\t\n\t\t$this->orderCombo = get_option('order_combo');\n\t\t$this->addSizeToTag = get_option('add_size_to_tag');\t\n\t\t$this->modifyTags = get_option('modify_tags');\n\t}", "title": "" }, { "docid": "1c3f41debfbcfa6e3358fde765eea241", "score": "0.5847002", "text": "public function update_option_fields() {\n }", "title": "" }, { "docid": "cbc2d20bb7f93af4e59de120ba77024c", "score": "0.5735764", "text": "function aDBc_update_settings(){\r\n\r\n\t\tglobal $aDBc_settings;\r\n\t\t$aDBc_settings = get_option('aDBc_settings');\r\n\t\tif(isset($_POST['save_settings'])){\r\n\t\t\t$aDBc_settings['left_menu'] \t\t\t\t= isset($_POST['aDBc_left_menu']) ? \"1\" : \"0\";\r\n\t\t\t$aDBc_settings['menu_under_tools'] \t\t\t= isset($_POST['aDBc_menu_under_tools']) ? \"1\" : \"0\";\r\n\t\t\t// In case the user does not select any of menu positions, we force the menu under tools to be shown\r\n\t\t\tif(!isset($_POST['aDBc_left_menu']) && !isset($_POST['aDBc_menu_under_tools'])){\r\n\t\t\t\t$aDBc_settings['left_menu'] \t= \"1\";\r\n\t\t\t}\r\n\r\n\t\t\t$aDBc_settings['hide_premium_tab'] \t\t= isset($_POST['aDBc_hide_premium_tab']) ? \"1\" : \"0\";\r\n\r\n\t\t\t// Update settings in DB\r\n\t\t\tupdate_option('aDBc_settings', $aDBc_settings, \"no\");\r\n\t\t}\r\n\t\t/********************************************************************\r\n\t\t* Update premium notice for lost licenses\r\n\t\t********************************************************************/\r\n\t\tif(isset($_GET['ignore-premium-notice']) && $_GET['ignore-premium-notice'] == \"yes\"){\r\n\t\t\t$aDBc_settings['ignore_premium'] = \"yes\";\r\n\t\t\tupdate_option('aDBc_settings', $aDBc_settings, \"no\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "dc501cc04bc0eec6c8695019ebc7b521", "score": "0.5723309", "text": "function wesafe_update_options() {\n\tupdate_option( 'wesafe_client_type', wesafe_option( 'client_type' ) );\n\tupdate_option( 'wesafe_allowed_retries', wesafe_option( 'allowed_retries' ) );\n\tupdate_option( 'wesafe_lockout_duration', wesafe_option( 'lockout_duration' ) );\n\tupdate_option( 'wesafe_valid_duration', wesafe_option( 'valid_duration' ) );\n\tupdate_option( 'wesafe_lockout_notify', wesafe_option( 'lockout_notify' ) );\n\tupdate_option( 'wesafe_notify_email_after', wesafe_option( 'notify_email_after' ) );\n//\tupdate_option( 'wesafe_cookies', wesafe_option( 'cookies' ) ? '1' : '0' );\n}", "title": "" }, { "docid": "f77342c5dabf7402bdab0818304fce77", "score": "0.5714919", "text": "public function upgrade_options() {\n\t\t$voicewp_index_settings = get_option( 'alexawp_skill_index_map' );\n\t\tif ( ! empty( $voicewp_index_settings ) ) {\n\t\t\tupdate_option( 'voicewp_skill_index_map', $voicewp_index_settings );\n\t\t\tdelete_option( 'alexawp_skill_index_map' );\n\t\t}\n\n\t\t$voicewp_settings = get_option( 'alexawp-settings' );\n\t\tif ( ! empty( $voicewp_settings ) ) {\n\t\t\tupdate_option( 'voicewp-settings', $voicewp_settings );\n\t\t\tdelete_option( 'alexawp-settings' );\n\t\t}\n\t}", "title": "" }, { "docid": "88d82f6da4c4fd624048bf361e9169c7", "score": "0.57091045", "text": "function opts_update()\n\t{\n\t\t//Do some security related thigns as we are not using the normal WP settings API\n\t\t$this->security();\n\t\t//Do a nonce check, prevent malicious link/form problems\n\t\tcheck_admin_referer('bcn_options-options');\n\t\t//Update local options from database, going to always do a safe get\n\t\t$this->opt = wp_parse_args($this->get_option('bcn_options'), $this->breadcrumb_trail->opt);\n\t\t//If we did not get an array, might as well just quit here\n\t\tif(!is_array($this->opt))\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Add custom post types\n\t\t$this->find_posttypes($this->opt);\n\t\t//Add custom taxonomy types\n\t\t$this->find_taxonomies($this->opt);\n\t\t//Update our backup options\n\t\t$this->update_option('bcn_options_bk', $this->opt);\n\t\t//Grab our incomming array (the data is dirty)\n\t\t$input = $_POST['bcn_options'];\n\t\t//We have two \"permi\" variables\n\t\t$input['post_page_root'] = get_option('page_on_front');\n\t\t$input['post_post_root'] = get_option('page_for_posts');\n\t\t//Loop through all of the existing options (avoids random setting injection)\n\t\tforeach($this->opt as $option => $value)\n\t\t{\n\t\t\t//Handle all of our boolean options first\n\t\t\tif(strpos($option, 'display') > 0 || $option == 'current_item_linked')\n\t\t\t{\n\t\t\t\t$this->opt[$option] = isset($input[$option]);\n\t\t\t}\n\t\t\t//Now handle anything that can't be blank\n\t\t\telse if(strpos($option, 'anchor') > 0)\n\t\t\t{\n\t\t\t\t//Only save a new anchor if not blank\n\t\t\t\tif(isset($input[$option]))\n\t\t\t\t{\n\t\t\t\t\t//Do excess slash removal sanitation\n\t\t\t\t\t$this->opt[$option] = stripslashes($input[$option]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Now everything else\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->opt[$option] = stripslashes($input[$option]);\n\t\t\t}\n\t\t}\n\t\t//Commit the option changes\n\t\t$this->update_option('bcn_options', $this->opt);\n\t\t//Check if known settings match attempted save\n\t\tif(count(array_diff_key($input, $this->opt)) == 0)\n\t\t{\n\t\t\t//Let the user know everything went ok\n\t\t\t$this->message['updated fade'][] = __('Settings successfully saved.', $this->identifier) . $this->undo_anchor(__('Undo the options save.', $this->identifier));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Let the user know the following were not saved\n\t\t\t$this->message['updated fade'][] = __('Some settings were not saved.', $this->identifier) . $this->undo_anchor(__('Undo the options save.', $this->identifier));\n\t\t\t$temp = __('The following settings were not saved:', $this->identifier);\n\t\t\tforeach(array_diff_key($input, $this->opt) as $setting => $value)\n\t\t\t{\n\t\t\t\t$temp .= '<br />' . $setting;\n\t\t\t}\n\t\t\t$this->message['updated fade'][] = $temp . '<br />' . sprintf(__('Please include this message in your %sbug report%s.', $this->identifier),'<a title=\"' . __('Go to the Breadcrumb NavXT support post for your version.', $this->identifier) . '\" href=\"http://mtekk.us/archives/wordpress/plugins-wordpress/breadcrumb-navxt-' . $this->version . '/#respond\">', '</a>');\n\t\t}\n\t\tadd_action('admin_notices', array($this, 'message'));\n\t}", "title": "" }, { "docid": "ee00396d5bc52686bcef08f34e5d7f78", "score": "0.570116", "text": "public function testUpdateCampaign()\n {\n }", "title": "" }, { "docid": "e766e913a5f40bbcf699cab11f7d8b50", "score": "0.5699929", "text": "function wp_inpost_ads_settings_page() {\n\tglobal $wpip_options; ?>\n\t<div class=\"wrap\">\n\t\t<h2><?php _e( 'In-Post Ads Options', 'wp-inpost-ads' ); ?></h2>\n\t\t<?php do_action( 'wp_inpost_ads_license' ); ?>\n\t\t<form method='post' action='options.php'>\n\t\t\t<?php wp_nonce_field( 'update-options' ); ?>\n\t\t\t<?php settings_fields( 'wp_inpost_ads_settings_group' ); ?>\n\t\t\t<table class=\"form-table\">\n\t\t\t\t<tbody>\n\t\t\t\t\t<?php do_action( 'wp_inpost_ads_settings' ); ?>\n\t\t\t\t\t<tr valign=\"top\">\n\t\t\t\t\t\t<td colspan=\"2\"><input type=\"hidden\" name=\"action\" value=\"update\" /><?php submit_button(); ?></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</form>\n\t</div> \n\t<?php\n}", "title": "" }, { "docid": "a98c712505385e6e46c8f70e8c226341", "score": "0.56504655", "text": "protected abstract function _doUpdateSettings(array $data_array);", "title": "" }, { "docid": "933b14a2df3b722f6323534b41da059e", "score": "0.56360185", "text": "public function update() {\n\t\tif ( isset( $_POST['submit'] ) ) {\n\t\t\t// verify authentication (nonce)\n\t\t\tif ( ! isset( $_POST['amu_settings_nonce'] ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// verify authentication (nonce).\n\t\t\tif ( ! wp_verify_nonce( $_POST['amu_settings_nonce'], 'amu_settings_nonce' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// if we are using ldap, do validation.\n\t\t\tif ( isset( $_POST['amu_ldap_username_validation'] ) ) {\n\t\t\t\t$this->errors = $this->do_validation();\n\t\t\t\tif ( ! empty( $this->errors ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->update_settings();\n\t\t}\n\t}", "title": "" }, { "docid": "8a42a4ef2f5225abcc844b4c411858c1", "score": "0.5632069", "text": "public function update_wpmu_options() {\n\t\tif (!UpdraftPlus_Options::user_can_manage()) return;\n\t\t$options = $this->options->get_option(UDADDONS2_SLUG.'_options');\n\t\tif (!is_array($options)) $options = array();\n\n\t\tforeach ($_POST as $key => $value) {\n\t\t\tif ('updraftplus-addons_options' == $key && is_array($value) && isset($value['email']) && isset($value['password'])) {\n\t\t\t\t$options['email'] = $value['email'];\n\t\t\t\t$options['password'] = $value['password'];\n\t\t\t}\n\t\t}\n\n\t\t$options = $this->options_validate($options);\n\n\t\t$this->options->update_option(UDADDONS2_SLUG.'_options', $options);\n\t}", "title": "" }, { "docid": "650e2beac97483027c0362c575c232a2", "score": "0.56316", "text": "public function updateSettings()\n\t{\n\t\tif($this->request->getMethod() == \"post\"){\n\t\t\t$payment_option = $this->request->getVar('payment_option');\n\t\t\n\t\t\thelper('settingsviews');\n\t\t\t$clientDetails = \\SettingsViews::getClientDetails();\n\t\t\tif(!empty($clientDetails)){\n\t\t\t\n\t\t\t\t$data = [\n\t\t\t\t\t'payment_option' => $payment_option\n\t\t\t\t];\n\t\t\t\t$db = \\Config\\Database::connect();\n\t\t\t\t$builderupdate = $db->table('payu_token_validation'); \n\t\t\t\t$builderupdate->where('email_id', $clientDetails['email_id']); \n\t\t\t\t$builderupdate->where('store_hash', $clientDetails['store_hash']); \n\t\t\t\t$builderupdate->update($data);\n\t\t\t\thelper('custompaymentscript');\n\t\t\t\t\\CustomPaymentScript::createPaymentScript($clientDetails['sellerdb'],$clientDetails['email_id'],$clientDetails['validation_id'],$payment_option);\n\t\t\t\treturn redirect()->to('/home/dashboard?updated=1');\n\t\t\t}else{\n\t\t\t\treturn redirect()->to('/');\n\t\t\t}\n\t\t}else{\n\t\t\treturn redirect()->to('/');\n\t\t}\n\t}", "title": "" }, { "docid": "404e4b4189a8eefd171598cfddca4fea", "score": "0.5539511", "text": "public static function action_update_payment_gateway_settings() {\n\t\tif ( ! empty( $_POST['wpsc_payment_gateway_settings'] ) )\n\t\t\tforeach ( $_POST['wpsc_payment_gateway_settings'] as $gateway_name => $new_settings ) {\n\t\t\t\t$settings = new WPSC_Payment_Gateway_Setting( $gateway_name );\n\t\t\t\t$settings->merge( $new_settings );\n\t\t\t}\n\t}", "title": "" }, { "docid": "448ebc28b5d3d9cd324a9817f97f1662", "score": "0.55076885", "text": "function limit_login_update_options() {\n\tupdate_option('limit_login_client_type', limit_login_option('client_type'));\n\tupdate_option('limit_login_allowed_retries', limit_login_option('allowed_retries'));\n\tupdate_option('limit_login_lockout_duration', limit_login_option('lockout_duration'));\n\tupdate_option('limit_login_allowed_lockouts', limit_login_option('allowed_lockouts'));\n\tupdate_option('limit_login_long_duration', limit_login_option('long_duration'));\n\tupdate_option('limit_login_valid_duration', limit_login_option('valid_duration'));\n\tupdate_option('limit_login_lockout_notify', limit_login_option('lockout_notify'));\n\tupdate_option('limit_login_notify_email_after', limit_login_option('notify_email_after'));\n\tupdate_option('limit_login_cookies', limit_login_option('cookies') ? '1' : '0');\n}", "title": "" }, { "docid": "448ebc28b5d3d9cd324a9817f97f1662", "score": "0.55076885", "text": "function limit_login_update_options() {\n\tupdate_option('limit_login_client_type', limit_login_option('client_type'));\n\tupdate_option('limit_login_allowed_retries', limit_login_option('allowed_retries'));\n\tupdate_option('limit_login_lockout_duration', limit_login_option('lockout_duration'));\n\tupdate_option('limit_login_allowed_lockouts', limit_login_option('allowed_lockouts'));\n\tupdate_option('limit_login_long_duration', limit_login_option('long_duration'));\n\tupdate_option('limit_login_valid_duration', limit_login_option('valid_duration'));\n\tupdate_option('limit_login_lockout_notify', limit_login_option('lockout_notify'));\n\tupdate_option('limit_login_notify_email_after', limit_login_option('notify_email_after'));\n\tupdate_option('limit_login_cookies', limit_login_option('cookies') ? '1' : '0');\n}", "title": "" }, { "docid": "d40c099f9d541109bb3e9f7ec8785454", "score": "0.54954517", "text": "function kdg_fablab_rs_update_settings() {\n if (!get_option(\"kdg_fablab_rs_opening_hours\")) {\n update_option(\"kdg_fablab_rs_opening_hours\", \"\");\n }\n\n if (!get_option(\"kdg_fablab_rs_time_slot\")) {\n update_option(\"kdg_fablab_rs_time_slot\", \"15\");\n }\n\n if (!get_option(\"kdg_fablab_rs_send_email_on_submission\")) {\n update_option(\"kdg_fablab_rs_send_email_on_submission\", \"send-email-on-submission\");\n }\n\n if (!get_option(\"kdg_fablab_rs_email_content_on_submission\")) {\n update_option(\"kdg_fablab_rs_email_content_on_submission\", KdGFablab_RS_Constants::kdg_fablab_rs_get_message_on_submission());\n }\n\n if (!get_option(\"kdg_fablab_rs_send_email_on_approval\")) {\n update_option(\"kdg_fablab_rs_send_email_on_approval\", \"send-email-on-approval\");\n }\n\n if (!get_option(\"kdg_fablab_rs_email_content_on_approval\")) {\n update_option(\"kdg_fablab_rs_email_content_on_approval\", KdGFablab_RS_Constants::kdg_fablab_rs_get_message_on_approval());\n }\n\n if (!get_option(\"kdg_fablab_rs_email_content_on_denial\")) {\n update_option(\"kdg_fablab_rs_email_content_on_denial\", KdGFablab_RS_Constants::kdg_fablab_rs_get_message_on_denial());\n }\n }", "title": "" }, { "docid": "fd058efa621809a7f5de5beadcaa5bc0", "score": "0.5490539", "text": "function kgvid_update_settings() {\n\n\tglobal $wpdb;\n\n\t$options = kgvid_get_options();\n\t$options_old = $options; //save the values that are in the db\n\t$default_options = kgvid_default_options_fn();\n\n\tif ( empty($options) ) { // run if the new settings don't exist yet (before version 3.0)\n\n\t\t$options = array();\n\n\t\t$old_setting_equivalents = array (\n\t\t\t\"width\"=>\"wp_FMP_width\",\n\t\t\t\"height\"=>\"wp_FMP_height\",\n\t\t\t\"controlbar_style\"=>\"wp_FMP_controlbar_style\",\n\t\t\t\"poster\"=>\"wp_FMP_poster\",\n\t\t\t\"endofvideooverlay\"=>\"wp_FMP_endofvideooverlay\",\n\t\t\t\"autohide\"=>\"wp_FMP_autohide\",\n\t\t\t\"autoplay\"=>\"wp_FMP_autoplay\",\n\t\t\t\"loop\"=>\"wp_FMP_loop\",\n\t\t\t\"playbutton\"=>\"wp_FMP_playbutton\",\n\t\t\t\"stream_type\"=>\"wp_FMP_stream_type\",\n\t\t\t\"scale_mode\"=>\"wp_FMP_scale_mode\",\n\t\t\t\"bgcolor\"=>\"wp_FMP_bgcolor\",\n\t\t\t\"configuration\"=>\"wp_FMP_configuration\",\n\t\t\t\"skin\"=>\"wp_FMP_skin\",\n\t\t\t\"app_path\"=>\"wp_FMP_ffmpeg\",\n\t\t\t\"ffmpeg_exists\"=>\"wp_FMP_ffmpeg_exists\",\n\t\t\t\"encode_mobile\"=>\"wp_FMP_encodemobile\",\n\t\t\t\"encode_ogg\"=>\"wp_FMP_encodeogg\",\n\t\t\t\"encode_webm\"=>\"wp_FMP_encodewebm\",\n\t\t\t\"ffmpeg_vpre\"=>\"wp_FMP_vpre\",\n\t\t\t\"template\"=>\"wp_FMP_template\",\n\t\t\t\"titlecode\"=>\"wp_FMP_titlecode\");\n\n\t\tforeach ($old_setting_equivalents as $new_setting => $old_setting) { //apply any old settings to the new database entry then delete them\n\t\t\t$old_setting_value = get_option($old_setting, \"no_setting\");\n\t\t\tif ( $old_setting_value != \"no_setting\" ) {\n\t\t\t\tif ( $old_setting_value == \"true\" ) { $old_setting_value = \"on\"; }\n\t\t\t\t$options[$new_setting] = $old_setting_value;\n\t\t\t\tdelete_option($old_setting);\n\t\t\t}\n\t\t}\n\t\t$wpdb->query( \"DELETE FROM $wpdb->options WHERE option_name LIKE 'wp_FMP%'\" );\n\n\t\tforeach ( $default_options as $key => $value ) { //apply default values for any settings that didn't exist before\n\t\t\tif ( !array_key_exists($key, $options) ) { $options[$key] = $value; }\n\t\t}\n\n\t\tupdate_option('kgvid_video_embed_options', $options);\n\t}\n\n\telse { //user is already upgraded to version 3.0, but needs the extra options introduced in later versions\n\t\tif ( $options['version'] < 3.1 ) {\n\t\t\t$options['version'] = 3.1;\n\t\t\tif ( $options['ffmpeg_vpre'] == \"on\" ) { $options['video_bitrate_flag'] = \"on\"; } //if user has ffmpeg_vpre turned on, they need the old bitrate flags too\n\t\t\telse { $options['video_bitrate_flag'] = false; }\n\t\t\t$options['watermark'] = \"\";\n\t\t}\n\t\tif ( $options['version'] < 4.0 ) {\n\t\t\t$options['version'] = 4.0;\n\t\t\t$options['overlay_title'] = false;\n\t\t\t$options['overlay_embedcode'] = false;\n\t\t\t$options['view_count'] = false;\n\t\t\t$options['align'] = \"left\";\n\t\t\t$options['featured'] = \"on\";\n\t\t\t$options['thumb_parent'] = \"video\";\n\t\t\t$options['delete_children'] = \"encoded videos only\";\n\t\t\tif ( $options['template'] == \"on\" ) { $options['template'] = \"old\"; }\n\t\t\telse { $options['template'] = \"gentle\"; }\n\t\t\t$checkbox_convert = array ( \"autohide\", \"endofvideooverlaysame\", \"playbutton\", \"loop\", \"autoplay\" );\n\t\t\tforeach ( $checkbox_convert as $option ) {\n\t\t\t\tif ( $options[$option] == \"true\" ) { $options[$option] = \"on\"; } //some checkboxes were incorrectly set to \"true\" in older versions\n\t\t\t}\n\t\t\tif ( wp_next_scheduled('kgvid_cleanup_queue') != false ) { //kgvid_cleanup_queue needs an argument!\n\t\t\t\twp_clear_scheduled_hook('kgvid_cleanup_queue');\n\t\t\t\twp_schedule_event( time()+86400, 'daily', 'kgvid_cleanup_queue', array ( 'scheduled' ) );\n\t\t\t}\n\n\t\t}\n\t\tif ( $options['version'] < 4.1 ) {\n\t\t\t$options['version'] = 4.1;\n\t\t\t$options['embeddable'] = \"on\";\n\t\t\t$options['inline'] = \"on\";\n\t\t}\n\t\tif ( $options['version'] < 4.2 ) {\n\t\t\t$options['version'] = 4.2;\n\t\t\t$options[\"bitrate_multiplier\"] = 0.1;\n\t\t\t$options[\"h264_CRF\"] = 23;\n\t\t\t$options[\"webm_CRF\"] = 10;\n\t\t\t$options[\"ogv_CRF\"] = 6;\n\t\t\t$options[\"audio_bitrate\"] = 160;\n\t\t\t$options[\"threads\"] = 1;\n\t\t\t$options[\"nice\"] = \"on\";\n\t\t\t$options[\"browser_thumbnails\"] = \"on\";\n\t\t\t$options[\"rate_control\"] = \"abr\";\n\t\t\t$options[\"h264_profile\"] = \"none\";\n\t\t\t$options[\"h264_level\"] = \"none\";\n\t\t\t$options[\"encode_fullres\"] = false;\n\t\t\t$options[\"auto_encode\"] = false;\n\t\t\t$options[\"auto_thumb\"] = false;\n\t\t\t$options[\"auto_thumb_position\"] = 50;\n\t\t\t$options[\"right_click\"] = \"on\";\n\t\t\t$options[\"resize\"] = \"on\";\n\t\t\t$options[\"htaccess_login\"] = \"\";\n\t\t\t$options[\"htaccess_password\"] = \"\";\n\t\t\t$options[\"minimum_width\"] = false;\n\n\t\t\t$options[\"endofvideooverlaysame\"] = $options[\"endOfVideoOverlaySame\"];\n\t\t\tunset($options[\"endOfVideoOverlaySame\"]);\n\t\t\t$options[\"endofvideooverlay\"] = $options[\"endOfVideoOverlay\"];\n\t\t\tunset($options[\"endOfVideoOverlaySame\"]);\n\n\t\t\t$upload_capable = kgvid_check_if_capable('upload_files');\n\t\t\t$options[\"capabilities\"][\"make_video_thumbnails\"] = $upload_capable;\n\t\t\t$options[\"capabilities\"][\"encode_videos\"] = $upload_capable;\n\t\t\tkgvid_set_capabilities($options[\"capabilities\"]);\n\n\t\t\tif ( array_key_exists('embeddable', $options) && $options['embeddable'] != \"on\" ) { $options['open_graph'] = false; }\n\t\t\telse { $options['open_graph'] = \"on\"; }\n\n\t\t}\n\t\tif ( $options['version'] < 4.25 ) {\n\t\t\t$options['version'] = 4.25;\n\t\t\tkgvid_check_ffmpeg_exists($options, true);\n\t\t}\n\t\tif ( $options['version'] < 4.3 ) {\n\n\t\t\t$options['version'] = 4.3;\n\t\t\t$options['jw_player_id'] = '';\n\t\t\t$options['preload'] = \"metadata\";\n\t\t\t$options['sample_format'] = \"mobile\";\n\t\t\t$options['ffmpeg_watermark'] = array(\"url\" => \"\", \"scale\" => \"9\", \"align\" => \"right\", \"valign\"=> \"bottom\", \"x\" => \"6\", \"y\" => \"5\");\n\t\t\t$options['auto_thumb_number'] = 1;\n\t\t\t$options['simultaneous_encodes'] = 1;\n\t\t\t$options['downloadlink'] = false;\n\n\t\t\t$edit_others_capable = kgvid_check_if_capable('edit_others_posts');\n\t\t\t$options[\"capabilities\"][\"edit_others_video_encodes\"] = $edit_others_capable;\n\t\t\tkgvid_set_capabilities($options[\"capabilities\"]);\n\n\t\t}\n\t\tif ( $options['version'] < 4.301 ) {\n\t\t\t$options['version'] = 4.301;\n\t\t\tif ( !array_key_exists('capabilities', $options ) ) { //fix bug in 4.3 that didn't create capabilties for single installs\n\t\t\t\t$options['capabilities'] = $default_options['capabilities'];\n\t\t\t}\n\t\t\tkgvid_set_capabilities($options['capabilities']);\n\t\t}\n\n\t\tif ( $options['version'] < 4.303 ) {\n\t\t\t$options['version'] = 4.303;\n\t\t\t$options['volume'] = 1;\n\t\t\t$options['mute'] = false;\n\t\t\t$options['custom_attributes'] = '';\n\t\t}\n\t\tif ( $options['version'] < 4.304 ) {\n\t\t\t$options['version'] = 4.304;\n\t\t\t$options['gallery_end'] = \"\";\n\t\t}\n\t\tif ( $options['version'] < 4.4 ) {\n\t\t\t$options['version'] = 4.4;\n\t\t\t$options['moov_path'] = $options['app_path'];\n\t\t\t$options['replace_format'] = 'fullres';\n\t\t\t$options['custom_format'] = array(\n\t\t\t\t'format' => 'h264',\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => ''\n\t\t\t);\n\t\t\t$options['nostdin'] = false;\n\t\t\t$options['fullwidth'] = false;\n\t\t\t$options['auto_res'] = 'on';\n\t\t}\n\t\tif ( $options['version'] < 4.5 ) {\n\t\t\t$options['version'] = 4.5;\n\t\t\tif ( $options['auto_res'] == 'on' ) { $options['auto_res'] = 'automatic'; }\n\t\t\telse { $options['auto_res'] = 'highest'; }\n\t\t\t$options['watermark_link_to'] = 'none';\n\t\t\t$options['watermark_url'] = '';\n\t\t\t$options['encode_vp9'] = false;\n\t\t\t$options['gallery_pagination'] = false;\n\t\t\t$options['gallery_per_page'] = false;\n\t\t\t$options['gallery_title'] = \"on\";\n\t\t\t$options['oembed_provider'] = \"on\";\n\t\t\t$options['oembed_security'] = false;\n\t\t\t$options['ffmpeg_old_rotation'] = \"on\";\n\t\t\t$options['click_download'] = \"on\";\n\t\t}\n\n\t\tif ( $options['version'] < 4.6 ) {\n\t\t\t$options['version'] = 4.6;\n\t\t\tif ( !array_key_exists('nativecontrolsfortouch', $options) ) { $options['nativecontrolsfortouch'] = \"on\"; }\n\t\t\t$options['facebook_button'] = false;\n\t\t\t$options['sample_rotate'] = false;\n\t\t\t$options['twitter_button'] = false;\n\t\t\t$options['twitter_card'] = false;\n\t\t\t$options['schema'] = 'on';\n\t\t\t$options['error_email'] = 'nobody';\n\t\t\t$options['auto_encode_gif'] = false;\n\t\t\t$options['pixel_ratio'] = 'on';\n\t\t\t$options['twitter_username'] = kgvid_get_jetpack_twitter_username();\n\t\t}\n\n\t\tif ( version_compare( $options['version'], '4.6.8', '<' ) ) {\n\t\t\t$options['version'] = '4.6.8';\n\t\t\tif ( $options['embed_method'] == \"WordPress Default\" ) { $options['pauseothervideos'] = \"on\"; }\n\t\t\telse { $options['pauseothervideos'] = false; }\n\t\t\t$options['alwaysloadscripts'] = false;\n\t\t}\n\n\t\tif ( version_compare( $options['version'], '4.6.14', '<' ) ) {\n\t\t\t$options['version'] = '4.6.14';\n\t\t\t$options['fixed_aspect'] = 'false';\n\t\t\t$options['count_views'] = 'all';\n\t\t\t$options['ffmpeg_auto_rotate'] = false;\n\t\t}\n\n\t\tif ( version_compare( $options['version'], '4.6.16', '<' ) ) {\n\t\t\t$options['version'] = '4.6.16';\n\t\t\t$options['playback_rate'] = false;\n\t\t\tif ( $options['count_views'] == 'all' ) {\n\t\t\t\t$options['count_views'] = 'quarters';\n\t\t\t}\n\t\t}\n\n\t\tif ( version_compare( $options['version'], '4.6.20', '<' ) ) {\n\t\t\t$options['version'] = '4.6.20';\n\t\t\t$options['encode_480'] = false;\n\t\t\t$options['hide_video_formats'] = false;\n\t\t}\n\n\t\tif ( $options['version'] != $default_options['version'] ) { $options['version'] = $default_options['version']; }\n\t\tif ( $options !== $options_old ) { update_option('kgvid_video_embed_options', $options); }\n\t}\n\n}", "title": "" }, { "docid": "c61399d88d3de2354fc73490a297dc7d", "score": "0.54426724", "text": "public static function update_all_options ($new_options = FALSE, $verified = FALSE, $update_other = TRUE, $display_notices = TRUE, $enqueue_notices = FALSE, $request_refresh = FALSE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdo_action (\"ws_plugin__qcache_before_update_all_options\", get_defined_vars ()); /* If you use this Hook, be sure to use `wp_verify_nonce()`. */\r\n\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\tif ($verified || (($nonce = $_POST[\"ws_plugin__qcache_options_save\"]) && wp_verify_nonce ($nonce, \"ws-plugin--qcache-options-save\")))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif (!is_multisite () || (is_main_site () && is_super_admin ())) /* If Multisite, this MUST be ( Main Site / Super Admin ). */\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t$options = $GLOBALS[\"WS_PLUGIN__\"][\"qcache\"][\"o\"]; /* Here we get all of the existing options. */\r\n\t\t\t\t\t\t\t\t\t\t$new_options = (is_array ($new_options)) ? $new_options : ((!empty ($_POST)) ? stripslashes_deep ($_POST) : array ());\r\n\t\t\t\t\t\t\t\t\t\t$new_options = c_ws_plugin__qcache_utils_strings::trim_deep ($new_options);\r\n\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\tforeach ((array)$new_options as $key => $value) /* Looking for relevant keys. */\r\n\t\t\t\t\t\t\t\t\t\t\tif (preg_match (\"/^\" . preg_quote (\"ws_plugin__qcache_\", \"/\") . \"/\", $key))\r\n\t\t\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\t\t\tif ($key === \"ws_plugin__qcache_configured\") /* Configured. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdate_option (\"ws_plugin__qcache_configured\", $value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$GLOBALS[\"WS_PLUGIN__\"][\"qcache\"][\"c\"][\"configured\"] = $value;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\telse /* Place this option into the array. Remove ws_plugin__qcache_. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(is_array ($value)) ? array_shift ($value) : null; /* Arrays should be padded. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$key = preg_replace (\"/^\" . preg_quote (\"ws_plugin__qcache_\", \"/\") . \"/\", \"\", $key);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$options[$key] = $value; /* Overriding a possible existing option. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\t$options[\"options_version\"] = (string)($options[\"options_version\"] + 0.001);\r\n\t\t\t\t\t\t\t\t\t\t$options = ws_plugin__qcache_configure_options_and_their_defaults ($options);\r\n\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\teval('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');\r\n\t\t\t\t\t\t\t\t\t\tdo_action (\"ws_plugin__qcache_during_update_all_options\", get_defined_vars ());\r\n\t\t\t\t\t\t\t\t\t\tunset ($__refs, $__v); /* Unset defined __refs, __v. */\r\n\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\tupdate_option (\"ws_plugin__qcache_options\", $options);\r\n\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\t$updated_all_options = true; /* Flag/indication. */\r\n\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\tif ($update_other && $options[\"enabled\"])\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (c_ws_plugin__qcache_wp_cache::add_wp_cache ()) /* Add WP_CACHE to the config file. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (c_ws_plugin__qcache_advanced_cache::add_advanced ()) /* Add the advanced-cache.php file. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (c_ws_plugin__qcache_garbage_collection::add_garbage_collector ()) /* Add the garbage collector. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (c_ws_plugin__qcache_purging_routines::schedule_cache_dir_purge ()) /* Purge the cache. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$enabled = true; /* Mark this variable as enabled successfully. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($options[\"auto_cache_enabled\"]) ? c_ws_plugin__qcache_auto_cache::add_auto_cache_engine () : c_ws_plugin__qcache_auto_cache::delete_auto_cache_engine ();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (($display_notices === true || in_array (\"success\", (array)$display_notices)) && ($notice = '<strong>Options saved</strong>, and the cache was reset to avoid conflicts.' . (($request_refresh) ? ' Please <a href=\"' . esc_attr ($_SERVER[\"REQUEST_URI\"]) . '\">refresh</a>.' : '') . ''))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($enqueue_notices === true || in_array (\"success\", (array)$enqueue_notices)) ? c_ws_plugin__qcache_admin_notices::enqueue_admin_notice ($notice, \"*:*\") : c_ws_plugin__qcache_admin_notices::display_admin_notice ($notice);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (!$enabled) /* Otherwise, we need to throw a warning up. The site owner needs to try again. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!function_exists (\"wp_cron\")) /* Special warning for lack of the wp_cron function. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (($display_notices === true || in_array (\"success\", (array)$display_notices)) && ($notice = '<strong>Error:</strong> Could NOT enable Quick Cache. Your installation of WordPress® is missing the <code>wp_cron</code> function. Some web hosts disable this intentionally. Please contact your web host for assistance.'))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($enqueue_notices === true || in_array (\"success\", (array)$enqueue_notices)) ? c_ws_plugin__qcache_admin_notices::enqueue_admin_notice ($notice, \"*:*\", true) : c_ws_plugin__qcache_admin_notices::display_admin_notice ($notice, true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse /* Otherwise, the error must have something to do with file/directory permissions. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (($display_notices === true || in_array (\"success\", (array)$display_notices)) && ($notice = '<strong>Error:</strong> Could NOT enable Quick Cache. Please check permissions on <code>/wp-config.php</code>, <code>/wp-content/</code> and <code>/wp-content/cache/</code>. Permissions need to be <code>755</code> or higher.'))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($enqueue_notices === true || in_array (\"success\", (array)$enqueue_notices)) ? c_ws_plugin__qcache_admin_notices::enqueue_admin_notice ($notice, \"*:*\", true) : c_ws_plugin__qcache_admin_notices::display_admin_notice ($notice, true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\telse if ($update_other && !$options[\"enabled\"])\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (c_ws_plugin__qcache_wp_cache::delete_wp_cache ()) /* Delete WP_CACHE from the config file. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (c_ws_plugin__qcache_advanced_cache::delete_advanced ()) /* Delete the advanced-cache.php file. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (c_ws_plugin__qcache_garbage_collection::delete_garbage_collector ()) /* Delete the garbage collector. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (c_ws_plugin__qcache_purging_routines::schedule_cache_dir_purge ()) /* Purge the cache. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$disabled = true; /* Mark this variable as disabled successfully. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc_ws_plugin__qcache_auto_cache::delete_auto_cache_engine (); /* Delete Auto-Cache. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (($display_notices === true || in_array (\"success\", (array)$display_notices)) && ($notice = '<strong>Options saved.</strong> Quick Cache disabled.' . (($request_refresh) ? ' Please <a href=\"' . esc_attr ($_SERVER[\"REQUEST_URI\"]) . '\">refresh</a>.' : '') . ''))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($enqueue_notices === true || in_array (\"success\", (array)$enqueue_notices)) ? c_ws_plugin__qcache_admin_notices::enqueue_admin_notice ($notice, \"*:*\") : c_ws_plugin__qcache_admin_notices::display_admin_notice ($notice);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (!$disabled) /* Otherwise, we need to throw a warning up. The site owner needs to try again. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!function_exists (\"wp_cron\")) /* Special warning for lack of the wp_cron function. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (($display_notices === true || in_array (\"success\", (array)$display_notices)) && ($notice = '<strong>Error:</strong> Could NOT disable Quick Cache. Your installation of WordPress® is missing the <code>wp_cron</code> function. Some web hosts disable this intentionally. Please contact your web host for assistance.'))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($enqueue_notices === true || in_array (\"success\", (array)$enqueue_notices)) ? c_ws_plugin__qcache_admin_notices::enqueue_admin_notice ($notice, \"*:*\", true) : c_ws_plugin__qcache_admin_notices::display_admin_notice ($notice, true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse /* Otherwise, the error must have something to do with file/directory permissions. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (($display_notices === true || in_array (\"success\", (array)$display_notices)) && ($notice = '<strong>Error:</strong> Could NOT disable Quick Cache. Please check permissions on <code>/wp-config.php</code>, <code>/wp-content/</code> and <code>/wp-content/cache/</code>. Permissions need to be <code>755</code> or higher.'))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($enqueue_notices === true || in_array (\"success\", (array)$enqueue_notices)) ? c_ws_plugin__qcache_admin_notices::enqueue_admin_notice ($notice, \"*:*\", true) : c_ws_plugin__qcache_admin_notices::display_admin_notice ($notice, true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse if (!$update_other) /* Not updating anything else. We just need to display a notice that options have been saved successfully */\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (($display_notices === true || in_array (\"success\", (array)$display_notices)) && ($notice = '<strong>Options saved.' . (($request_refresh) ? ' Please <a href=\"' . esc_attr ($_SERVER[\"REQUEST_URI\"]) . '\">refresh</a>.' : '') . '</strong>'))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t($enqueue_notices === true || in_array (\"success\", (array)$enqueue_notices)) ? c_ws_plugin__qcache_admin_notices::enqueue_admin_notice ($notice, \"*:*\") : c_ws_plugin__qcache_admin_notices::display_admin_notice ($notice);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse /* Else, a security warning needs to be issued. Only Super Administrators are allowed to modify Quick Cache ( operating on the Main Site ). */\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tif (($display_notices === true || in_array (\"success\", (array)$display_notices)) && ($notice = 'Quick Cache can ONLY be modified by a Super Administrator, while operating on the Main Site.'))\r\n\t\t\t\t\t\t\t\t\t\t\t($enqueue_notices === true || in_array (\"success\", (array)$enqueue_notices)) ? c_ws_plugin__qcache_admin_notices::enqueue_admin_notice ($notice, \"*:*\", true) : c_ws_plugin__qcache_admin_notices::display_admin_notice ($notice, true);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\tdo_action (\"ws_plugin__qcache_after_update_all_options\", get_defined_vars ());\r\n\t\t\t\t\t\t/**/\r\n\t\t\t\t\t\treturn $updated_all_options; /* Return status update. */\r\n\t\t\t\t\t}", "title": "" }, { "docid": "0a4cfe38c34e6cedd88de1da24d43640", "score": "0.54397273", "text": "private function update() {\n\t\tglobal $wpdb;\n\t\t\n\t\t$wpdb->update(\"ffi_be_settings\", array (\n\t\t\t\"BookExpireMonths\" => $this->expire,\n\t\t\t\"EmailName\" => $this->name,\n\t\t\t\"EmailAddress\" => $this->address,\n\t\t\t\"TimeZone\" => $this->timeZone\n\t\t), array (\n\t\t\t\"ID\" => 1\n\t\t), array (\n\t\t\t\"%d\", \"%s\", \"%s\", \"%s\"\n\t\t), array (\n\t\t\t\"%d\"\n\t\t));\n\t\t\n\t\twp_redirect(admin_url() . \"admin.php?page=book-exchange/admin/settings.php&updated=1\");\n\t\texit;\n\t}", "title": "" }, { "docid": "24452f5de88d7f568522aa2eca1cb421", "score": "0.54360914", "text": "function update() {\n\n if ( version_compare( $this->updating_from , '4.4.06' , '<=' ) ) {\n $this->migrate_legacy_options( 'csl-slplus-EM-options' );\n $this->migrate_legacy_options( 'csl-slplus-ER-options' );\n $this->migrate_legacy_options( 'csl-slplus_slper' );\n $this->migrate_legacy_options( 'csl-slplus-ES-options' );\n $this->migrate_legacy_options( 'csl-slplus_slpes' );\n $this->migrate_legacy_options( 'slp-widget-pack-options' );\n\n if ( isset( $this->addon->options[ 'radius_behavior' ] ) ) {\n $this->slplus->options_nojs[ 'radius_behavior' ] = $this->addon->options[ 'radius_behavior' ];\n $this->slplus->WPOption_Manager->update_wp_option( 'default' );\n } else {\n if ( isset( $this->addon->options[ 'ignore_radius' ] ) && ( $this->addon->options[ 'ignore_radius' ] === '1' ) ) {\n $this->slplus->options_nojs[ 'radius_behavior' ] = 'always_ignore';\n $this->slplus->WPOption_Manager->update_wp_option( 'default' );\n }\n }\n }\n\n if ( version_compare( $this->updating_from , '4.6.5' , '<=' ) && ! empty( $this->addon->options['message_no_results'] ) ) {\n $this->slplus->options['message_no_results'] = $this->addon->options['message_no_results'];\n $this->slplus->WPOption_Manager->update_wp_option( 'default' );\n }\n\n parent::update();\n\n $this->add_extended_data_fields();\n\n if ( version_compare( $this->updating_from , '4.4.01' , '<=' ) ) {\n $this->update_location_markers();\n }\n }", "title": "" }, { "docid": "f6b214b6d5d02a5bcd4a63f3e318a9a2", "score": "0.5432316", "text": "function update_vicuna_config() {\n if ( ! current_user_can('switch_themes') )\n\t\treturn;\n\n\t$options = get_option('vicuna_config');\n\tif (isset($_POST['vicuna_skin'])) {\n\t\t$options['skin'] = $_POST['vicuna_skin'];\n\t}\n\tif (isset($_POST['vicuna_language'])) {\n\t\t$options['language'] = $_POST['vicuna_language'];\n\t}\n\tif (isset($_POST['vicuna_eye_catch'])) {\n\t\t$options['eye_catch'] = $_POST['vicuna_eye_catch'];\n\t}\n\tif (isset($_POST['vicuna_feed_type'])) {\n\t\t$options['feed_type'] = $_POST['vicuna_feed_type'];\n\t}\n\tif (isset($_POST['vicuna_feed_url'])) {\n\t\t$options['feed_url'] = $_POST['vicuna_feed_url'];\n\t}\n\tif (isset($_POST['vicuna_g_navi'])) {\n\t\t$options['g_navi'] = $_POST['vicuna_g_navi'];\n\t}\n\tif (isset($_POST['vicuna_g_navi_home'])) {\n\t\t$options['g_navi_home'] = $_POST['vicuna_g_navi_home'];\n\t}\n\tif (isset($_POST['vicuna_title'])) {\n\t\t$options['title'] = $_POST['vicuna_title'];\n\t}\n\tif (isset($_POST['vicuna_fontsize_switcher'])) {\n\t\t$options['fontsize_switcher'] = $_POST['vicuna_fontsize_switcher'];\n\t}\n\tupdate_option('vicuna_config', $options);\n}", "title": "" }, { "docid": "26ae246a7e8c5562cc44c815aadc54f8", "score": "0.5430986", "text": "public function update()\n {\n set_time_limit(0);\n\n // this is the current database schema version number\n $current_db_ver = get_site_option('mo_db_ver');\n\n // this is the target version that we need to reach\n $target_db_ver = self::DB_VER;\n\n // run update routines one by one until the current version number\n // reaches the target version number\n while ($current_db_ver < $target_db_ver) {\n // increment the current db_ver by one\n $current_db_ver++;\n\n // each db version will require a separate update function\n $update_method = \"update_routine_{$current_db_ver}\";\n\n if (method_exists($this, $update_method)) {\n call_user_func(array($this, $update_method));\n }\n\n // update the option in the database, so that this process can always\n // pick up where it left off\n update_site_option('mo_db_ver', $current_db_ver);\n }\n }", "title": "" }, { "docid": "e5c49c0d8d3b02c27c9b1fb1c93a9315", "score": "0.54180276", "text": "protected static function update_addons_options() {\n \n $lib = URE_Lib::get_instance();\n $multisite = $lib->get('multisite');\n if (!$multisite) {\n $count_users_without_role = $lib->get_request_var('count_users_without_role', 'post', 'checkbox');\n $lib->put_option('count_users_without_role', $count_users_without_role);\n }\n do_action('ure_settings_update2');\n \n $lib->flush_options();\n $lib->show_message(esc_html__('User Role Editor options are updated', 'user-role-editor'));\n }", "title": "" }, { "docid": "f92934594a617ec20ca7a4f2ef79acac", "score": "0.5408933", "text": "public function updateSettings() {\r\n\t\tif ( ! $this->checkPermission() ) {\r\n\t\t\twp_send_json_error( [\r\n\t\t\t\t'message' => 'You are not allow here'\r\n\t\t\t] );\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( ! wp_verify_nonce( HTTP_Helper::retrieveGet( '_wpnonce' ), 'updateSettings' ) ) {\r\n\t\t\twp_send_json_error( [\r\n\t\t\t\t'message' => 'You are not allow here'\r\n\t\t\t] );\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$data = stripslashes( $_POST['data'] );\r\n\t\t$data = json_decode( $data, true );\r\n\t\t$settings = Audit\\Model\\Settings::instance();\r\n\t\t$last_state = $settings->enabled;\r\n\t\t$settings->import( $data );\r\n\t\t$settings->save();\r\n\t\tif ( $last_state == false && Audit\\Model\\Events::instance()->hasData() == false ) {\r\n\t\t\t//this mean the previous state is disable, now is enable and no data fetched from api\r\n\t\t\tEvents::instance()->fetch();\r\n\t\t}\r\n\t\t$cronTime = $this->reportCronTimestamp( $settings->time, 'auditReportCron' );\r\n\t\tif ( $settings->notification == true ) {\r\n\t\t\twp_schedule_event( $cronTime, 'daily', 'auditReportCron' );\r\n\t\t}\r\n\t\t$res = array(\r\n\t\t\t'message' => __( \"Your settings have been updated.\", wp_defender()->domain ),\r\n\t\t\t'summary' => [\r\n\t\t\t\t'report_time' => $settings->get_report_times_as_string()\r\n\t\t\t]\r\n\t\t);\r\n\t\t$this->submitStatsToDev();\r\n\t\twp_send_json_success( $res );\r\n\t}", "title": "" }, { "docid": "3dac0db942e5431cbdc7d3b71de92a80", "score": "0.53948474", "text": "private function update()\n {\n // If no version number exists, we need to update the settings to v2.0.0 and above\n if ( ! get_option( 'abc_version' ) )\n {\n // Get old settings array\n $old_settings = get_option( 'advanced-browser-check' );\n\n if ( $old_settings )\n {\n // Add the old settings to the new once\n update_option( 'abc_title', $old_settings['title'] );\n update_option( 'abc_message', $old_settings['msg'] );\n update_option( 'abc_show', $old_settings['show_browser'] );\n update_option( 'abc_check', $old_settings['check_browser'] );\n update_option( 'abc_hide', $old_settings['hide'] );\n }\n\n // Delete the old settings array from the DB\n delete_option( 'advanced-browser-check' );\n }\n\n update_option( 'abc_version', ABC_VERSION );\n }", "title": "" }, { "docid": "e2ae9b28074904793e6466c1e4740659", "score": "0.5387462", "text": "public function save_options()\n {\n if (!isset($_POST['update-atfOptions'])) {\n return;\n }\n\n // Verify that the nonce is valid.\n if (!wp_verify_nonce($_POST['update-atfOptions'], 'update-atfOptions')) {\n return;\n }\n\n // Make sure that it is set.\n if (!isset($_POST[$this->slug])) {\n return;\n }\n\n $new_options_values = apply_filters('new_options_values', $_POST[$this->slug]);\n\n\n foreach ($new_options_values as $key => $value) {\n update_option($this->slug . '_' . $key, $value);\n }\n }", "title": "" }, { "docid": "114c1be645a51aadb53681df1671c9d4", "score": "0.5385114", "text": "private function update_settings($options){\n $models = new Models('settings');\n $where = array(\n 'type' => $options['type'],\n 'meta_key' => $options['meta_key']\n );\n $value = array(\n 'meta_value' => $options['meta_value']\n );\n $models->update($where, $value);\n }", "title": "" }, { "docid": "3a2a406fe91f69ff90ee7e72fd84d5a4", "score": "0.53722906", "text": "public function testUpdateCampaign1()\n {\n }", "title": "" }, { "docid": "bd6c6f7743400ad8769fa8869ff46d92", "score": "0.5368949", "text": "private function fillOptions() {\r\n $this->options['allowed_attempts'] = get_option('bflwp_allowed_attempts', $this->options['allowed_attempts']);\r\n $this->options['max_time'] = get_option('bflwp_max_time', $this->options['max_time']);\r\n\r\n }", "title": "" }, { "docid": "0a45eadf630af86ec58c84c78c470f66", "score": "0.53424233", "text": "public function migrateSettings()\n {\n $this->validateMigrateSettingsRequest();\n\n $options = array();\n\n if ($_POST['migrate_license_key'] === '1') {\n $licenseKey = get_option('iphorm_licence_key');\n\n if (Quform::isNonEmptyString($licenseKey)) {\n $options['licenseKey'] = $licenseKey;\n }\n }\n\n if ($_POST['migrate_recaptcha_keys'] === '1') {\n $siteKey = get_option('iphorm_recaptcha_site_key');\n $secretKey = get_option('iphorm_recaptcha_secret_key');\n\n if ( ! Quform::isNonEmptyString($siteKey) && ! Quform::isNonEmptyString($secretKey)) {\n // Check the options that existed pre v1.4.18\n $siteKey = get_option('iphorm_recaptcha_public_key');\n $secretKey = get_option('iphorm_recaptcha_private_key');\n }\n\n if (Quform::isNonEmptyString($siteKey)) {\n $options['recaptchaSiteKey'] = $siteKey;\n }\n\n if (Quform::isNonEmptyString($secretKey)) {\n $options['recaptchaSecretKey'] = $secretKey;\n }\n }\n\n if (count($options)) {\n $this->options->set($options);\n }\n\n wp_send_json(array(\n 'type' => 'success'\n ));\n }", "title": "" }, { "docid": "746268e32094a7c4e51df289bfef30d3", "score": "0.5311622", "text": "private function addAllSettings(){\t\t\n\t\tadd_option('tp_eg_role');\n\t\tdo_action('essgrid_addAllSettings');\n\t}", "title": "" }, { "docid": "ce1523fcfefed7aecaca81a31dc14bb5", "score": "0.53095174", "text": "public function updateCampaign()\n\t{\n\t\tif( !$_REQUEST['title']) {\n\t\t\t$this->responseError( __( 'Please provide title', 'ninja-split-testing') );\n\t\t}\n\t\t\n\t\tif( !$_REQUEST['post_id']) {\n\t\t\t$this->responseError( __( 'Please Select Any Post or Page', 'ninja-split-testing') );\n\t\t}\n\t\t\n\t\t$campaign_data = array(\n\t\t\t'post_id' => intval( $_REQUEST['post_id'] ),\n\t\t\t'target_url' => sanitize_text_field($_REQUEST['permalink']),\n\t\t\t'title' => sanitize_text_field($_REQUEST['title']),\n\t\t);\n\n\t\t$campaign_id = intval($_REQUEST['id']);\n\t\t\n\t\t$campaign_data = apply_filters('nst_update_campaign_data', $campaign_data, $campaign_id);\n\t\t\n\t\t$result = NstQueries::update(\n\t\t\tHelper::getDbTableName('campaigns'), \n\t\t\t$campaign_data, \n\t\t\t$campaign_id\n\t\t);\n\t\t\n\t\tdo_action('nst_campaign_updated', $campaign_id, $campaign_data);\n\t\t\n\t\twp_send_json_success(array(\n\t\t\t'message' => __('Campaign updated successfully', 'ninja-split-testing')\n\t\t), 200);\n\t}", "title": "" }, { "docid": "c15f121b90440e0ffabc4ff338c90664", "score": "0.5263331", "text": "protected function _update_options()\n {\n $this->_cart_contents['cart_total'] = 0;\n\n foreach ($this->_cart_contents as $key => $val) {\n if (!is_array($val)) {\n continue;\n }\n\n $subtotal = $this->_cart_contents[$key]['price'];\n\n if (!empty($this->_cart_contents[$key]['options'])) {\n foreach ($this->_cart_contents[$key]['options'] as $option) {\n $subtotal += $option['price'];\n }\n }\n\n $subtotal *= $this->_cart_contents[$key]['qty'];\n\n $this->_cart_contents['cart_total'] += $subtotal;\n $this->_cart_contents[$key]['subtotal'] = $subtotal;\n }\n\n $this->CI->session->set_userdata(array('cart_contents' => $this->_cart_contents));\n }", "title": "" }, { "docid": "e6b033428ca729be47c59973be31b708", "score": "0.5255883", "text": "function nsp_Options() {\n?>\n\n<div class='wrap'><h2><?php _e('NewStatPress Settings','newstatpress'); ?></h2>\n\n <?php\n if(isset($_POST['saveit']) && $_POST['saveit'] == 'yes') { //option update request by user\n\n $i=isset($_POST['newstatpress_collectloggeduser']) ? $_POST['newstatpress_collectloggeduser'] : '';\n update_option('newstatpress_collectloggeduser', $i);\n\n $i=isset($_POST['newstatpress_donotcollectspider']) ? $_POST['newstatpress_donotcollectspider'] : '';\n update_option('newstatpress_donotcollectspider', $i);\n\n $i=isset($_POST['newstatpress_cryptip']) ? $_POST['newstatpress_cryptip'] : '';\n update_option('newstatpress_cryptip', $i);\n\n $i=isset($_POST['newstatpress_dashboard']) ? $_POST['newstatpress_dashboard'] : '';\n update_option('newstatpress_dashboard', $i);\n\n $i=isset($_POST['newstatpress_externalapi']) ? $_POST['newstatpress_externalapi'] : '';\n update_option('newstatpress_externalapi', $i);\n\n global $nsp_option_vars;\n\n foreach($nsp_option_vars as $var) {\n\n if ($var['name'] == 'newstatpress_ignore_ip')\n update_option('newstatpress_ignore_ip', nsp_FilterForXss($_POST['newstatpress_ignore_ip']));\n elseif ($var['name'] == 'newstatpress_ignore_users')\n update_option('newstatpress_ignore_users', nsp_FilterForXss($_POST['newstatpress_ignore_users']));\n elseif ($var['name'] == 'newstatpress_ignore_permalink')\n update_option('newstatpress_ignore_permalink', nsp_FilterForXss($_POST['newstatpress_ignore_permalink']));\n else update_option($var['name'], $_POST[$var['name']]);\n }\n\n // update database too and print message confirmation\n nsp_BuildPluginSQLTable('update');\n print \"<br /><div class='updated'><p>\".__('Options saved!','newstatpress').\"</p></div>\";\n }\n ?>\n\n <form method=post>\n\n<div id=\"usual1\" class=\"usual\">\n\n\n <?php\n $ToolsPage_tabs = array('general' => __('General','newstatpress'),\n 'data' => __('Filters','newstatpress'),\n 'overview' => __('Overview Menu','newstatpress'),\n 'details' => __('Details Menu','newstatpress'),\n 'visits' => __('Visits Menu','newstatpress'),\n 'database' => __('Database','newstatpress'),\n 'api' => __('API (External access)','newstatpress')\n );\n\n echo \"<ul>\";\n foreach( $ToolsPage_tabs as $tab => $name ) {\n echo \" <li><a href='#$tab'>$name</a></li>\";\n }\n echo \"</ul>\";\n\n\n // case 'general' :\n echo \"<div id='general'>\\n<table class='form-tableH'>\";\n\n global $nsp_option_vars;\n\n // input parameters\n $input_size='2';\n $input_maxlength='3';\n\n echo \"<th scope='row' rowspan='2'>\"; _e('Dashboard','newstatpress'); echo \"</th>\";\n $option_title=__('Enable NewStatPress widget','newstatpress');\n $option_var='newstatpress_dashboard';\n nsp_PrintChecked($option_title,$option_var);\n\n echo \"<tr><th scope='row' rowspan='1'>Minimum capability to display each specific menu (<a href='http://codex.wordpress.org/Roles_and_Capabilities' target='_blank'>\".__(\"more info\",'newstatpress').\"</a>)</th></tr>\";\n\n $option_title=__('Overview menu','newstatpress');\n echo \"<tr><th scope='row' rowspan='1' class='tab'>\"; echo $option_title.\"</th>\";\n $option_var='newstatpress_menuoverview_cap';\n $val=get_option($option_var);\n nsp_PrintOption('',$option_var,$val);\n\n echo \"</tr>\";\n echo \"<tr>\";\n $option_title=__('Detail menu','newstatpress');\n echo \"<tr><th scope='row' rowspan='2' class='tab'>\"; echo $option_title.\"</th>\";\n // $option_var=$nsp_option_vars['menudetails_cap']['name'];\n $option_var='newstatpress_menudetails_cap';\n $val=get_option($option_var);\n nsp_PrintOption('',$option_var,$val);\n echo \"</tr>\";\n echo \"<tr>\";\n\n $option_title=__('Visits menu','newstatpress');\n echo \"<tr><th scope='row' rowspan='2' class='tab'>\"; echo $option_title.\"</th>\";\n $option_var='newstatpress_menuvisits_cap';\n $val=get_option($option_var);\n nsp_PrintOption('',$option_var,$val);\n echo \"</tr>\";\n echo \"<tr>\";\n\n $option_title=__('Search menu','newstatpress');\n echo \"<tr><th scope='row' rowspan='2' class='tab'>\"; echo $option_title.\"</th>\";\n $option_var='newstatpress_menusearch_cap';\n $val=get_option($option_var);\n nsp_PrintOption('',$option_var,$val);\n echo \"</tr>\";\n echo \"<tr>\";\n\n $option_title=__('Tools menu','newstatpress');\n echo \"<tr><th scope='row' rowspan='2' class='tab'>\"; echo $option_title.\"</th>\";\n $option_var='newstatpress_menutools_cap';\n $val=get_option($option_var);\n nsp_PrintOption('',$option_var,$val);\n echo \"</tr>\";\n echo \"<tr>\";\n\n $option_title=__('Options menu','newstatpress');\n echo \"<tr><th scope='row' rowspan='2' class='tab'>\"; echo $option_title.\"</th>\";\n $option_var='newstatpress_menuvisits_cap';\n $val=get_option($option_var);\n nsp_PrintOption('',$option_var,$val);\n echo \"</tr>\";\n echo \"<tr>\";\n\n echo \"</table></div>\";\n\n // case 'overview' :\n echo \"<div id='overview'>\\n<table class='form-tableH'>\";\n\n echo \"<tr>\";\n\n echo \"<th scope='row' rowspan='2'>\"; _e('Visits calculation method','newstatpress'); echo \"</th>\";\n echo \"</tr>\";\n echo \"<tr>\";\n $name=$nsp_option_vars['calculation']['name'];\n $valu=$nsp_option_vars['calculation']['value'];\n\n echo \"<td>\n <fieldset>\n <p><input type='radio' name='$name' value=\";\n\n if ((get_option($name)=='') OR (get_option($name)==$valu)) {\n // echo $nsp_option_vars['calculation']['value'];\n echo $valu.\" checked\";\n }\n echo \" ></input>\n <label>\"; _e('Simple sum of distinct IPs (Classic method)','newstatpress'); echo \"</label>\n </p>\n <p>\n <input type='radio' name='$name' value=\";\n\n echo 'sum';\n if (get_option($name)=='sum') {\n echo \" checked\";\n }\n\n echo \"></input>\n <label>\"; _e('Sum of the distinct IPs of each day (slower than classic method for big database)','newstatpress'); echo \"</label>\n </p>\n </fieldset>\n </td>\";\n echo \"</tr>\";\n echo \"<tr>\";\n\n echo \"<th scope='row' rowspan='2'>\"; _e('Graph','newstatpress'); echo \"</th>\";\n echo \"</tr>\";\n echo \"<tr>\";\n\n $val=array(array(7,''),array(10,''),array(20,''),array(30,''),array(50,''));\n $option_title=__('Days number in Overview graph','newstatpress');\n $option_var='newstatpress_daysinoverviewgraph';\n nsp_PrintOption($option_title,$option_var,$val);\n echo \"</tr>\";\n echo \"<tr>\";\n\n echo \"<th scope='row' rowspan='2'>\"; _e('Overview','newstatpress'); echo \"</th>\";\n\n $option_title=sprintf(__('Elements in Overview (default %d)','newstatpress'), $nsp_option_vars['overview']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['overview'],$input_size,$input_maxlength);\n echo \"</tr>\";\n echo \"</table></div>\";\n\n // case 'data' :\n echo \"<div id='data'>\\n<table class='form-tableH'>\";\n\n // traduction $variable addition for Poedit parsing\n __('Never','newstatpress');\n __('All','newstatpress');\n __('month','newstatpress');\n __('months','newstatpress');\n __('week','newstatpress');\n __('weeks','newstatpress');\n\n echo \"<th scope='row' rowspan='4'>\"; _e('Data collection','newstatpress'); echo \"</th>\";\n\n $option_title=__('Crypt IP addresses','newstatpress');\n $option_var='newstatpress_cryptip';\n nsp_PrintChecked($option_title,$option_var);\n // echo \"<tr></tr>\";\n $option_title=__('Collect data about logged users, too.','newstatpress');\n $option_var='newstatpress_collectloggeduser';\n nsp_PrintChecked($option_title,$option_var);\n // echo \"<tr></tr>\";\n $option_title=__('Do not collect spiders visits','newstatpress');\n $option_var='newstatpress_donotcollectspider';\n nsp_PrintChecked($option_title,$option_var);\n\n echo \"</table><table class='form-tableH'>\";\n\n echo \"<tr><th class='padd' scope='row' rowspan='4'>\"; _e('Data purge','newstatpress'); echo \"</th>\";\n echo \"</tr>\";\n echo \"<tr>\";\n\n $val=array(array('', 'Never'),array(1, 'month'),array(3, 'months'),array(6, 'months'),array(12, 'months'));\n $option_title=__('Automatically delete all visits older than','newstatpress');\n $option_var='newstatpress_autodelete';\n nsp_PrintOption($option_title,$option_var,$val);\n echo \"</tr>\";\n echo \"<tr>\";\n\n $option_title=__('Automatically delete only spiders visits older than','newstatpress');\n $option_var='newstatpress_autodelete_spiders';\n nsp_PrintOption($option_title,$option_var,$val);\n echo \"</tr>\";\n //\n echo \"</table><table class='form-tableH'>\";\n echo \"<tr><th class='padd' scope='row' rowspan='9'>\"; _e('Parameters to ignore','newstatpress'); echo \"</th>\";\n\n // echo '<tr><td><h3>'; _e('Parameters to ignore','newstatpress'); echo '</h3><td><td></td></tr></table>';\n // echo \"<table class='option2'>\";\n\n $option_title=__('Logged users','newstatpress');\n $option_var='newstatpress_ignore_users';\n $option_description=__('Enter a list of users you don\\'t want to track, separated by commas, even if collect data about logged users is on','newstatpress');\n nsp_PrintTextaera($option_title,$option_var,$option_description);\n\n $option_title=__('IP addresses','newstatpress');\n $option_var='newstatpress_ignore_ip';\n $option_description=__('Enter a list of networks you don\\'t want to track, separated by commas. Each network <strong>must</strong> be defined using the CIDR notation (i.e. <em>192.168.1.1/24</em>). <br />If the format is incorrect, NewStatPress may not track pageviews properly.','newstatpress');\n nsp_PrintTextaera($option_title,$option_var,$option_description);\n\n $option_title=__('Pages and posts','newstatpress');\n $option_var='newstatpress_ignore_permalink';\n $option_description=__('Enter a list of permalinks you don\\'t want to track, separated by commas. You should omit the domain name from these resources: <em>/about, p=1</em>, etc. <br />NewStatPress will ignore all the pageviews whose permalink <strong>contains</strong> at least one of them.','newstatpress');\n nsp_PrintTextaera($option_title,$option_var,$option_description);\n\n echo \"</table></div>\";\n\n // case 'visits' :\n echo \"<div id='visits'>\\n<table class='form-tableH'>\";\n\n echo \"<tr><th scope='row' rowspan='2'>\"; _e('Visitors by Spy','newstatpress'); echo \"</th>\";\n\n $val=array(array(20,''),array(50,''),array(100,''));\n $option_title=__('number of IP per page','newstatpress');\n $option_var='newstatpress_ip_per_page_newspy';\n nsp_PrintOption($option_title,$option_var,$val);\n echo \"</tr>\";\n echo \"<tr>\";\n\n $option_title=__('number of visits for IP','newstatpress');\n $option_var='newstatpress_visits_per_ip_newspy';\n nsp_PrintOption($option_title,$option_var,$val);\n\n echo \"</tr>\";\n\n echo \"<tr><th class='padd' scope='row' colspan='3'></th>\";\n echo \"</tr>\";\n\n echo \"<tr><th class='padd' scope='row' rowspan='2'>\"; _e('Parameters to ignore','newstatpress'); echo \"</th>\";\n\n $option_title=__('number of bot per page','newstatpress');\n $option_var='newstatpress_bot_per_page_spybot';\n nsp_PrintOption($option_title,$option_var,$val);\n echo \"</tr>\";\n\n echo \"<tr>\";\n\n $option_title=__('number of bot for IP','newstatpress');\n $option_var='newstatpress_visits_per_bot_spybot';\n nsp_PrintOption($option_title,$option_var,$val);\n\n echo \"</table></div>\";\n\n // case 'details' :\n echo \"<div id='details'>\\n<table class='form-tableH'>\";\n\n\n echo \"<tr><th class='padd' scope='row' rowspan='14'>\"; _e('Element numbers to display in','newstatpress'); echo \"</th>\";\n\n $option_title=sprintf(__('Top days (default %d)','newstatpress'), $nsp_option_vars['top_days']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['top_days'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('O.S. (default %d)','newstatpress'), $nsp_option_vars['os']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['os'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Browser (default %d)','newstatpress'), $nsp_option_vars['browser']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['browser'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Feed (default %d)','newstatpress'), $nsp_option_vars['feed']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['feed'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Search Engines (default %d)','newstatpress'), $nsp_option_vars['searchengine']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['searchengine'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Top Search Terms (default %d)','newstatpress'), $nsp_option_vars['search']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['search'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Top Referrer (default %d)','newstatpress'), $nsp_option_vars['referrer']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['referrer'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Countries/Languages (default %d)','newstatpress'), $nsp_option_vars['languages']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['languages'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Spiders (default %d)','newstatpress'), $nsp_option_vars['spiders']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['spiders'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Top Pages (default %d)','newstatpress'), $nsp_option_vars['pages']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['pages'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Top Days - Unique visitors (default %d)','newstatpress'), $nsp_option_vars['visitors']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['visitors'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Top Days - Pageviews (default %d)','newstatpress'), $nsp_option_vars['daypages']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['daypages'],$input_size,$input_maxlength);\n\n $option_title=sprintf(__('Top IPs - Pageviews (default %d)', 'newstatpress'), $nsp_option_vars['ippages']['value']);\n nsp_PrintRowInput($option_title,$nsp_option_vars['ippages'],$input_size,$input_maxlength);\n\n echo \"</table></div>\";\n\n ?>\n <!--\n<div id='details'>Tab 3 is always last!</div>\n<div id='visits'>Tab 3 is always last!</div> -->\n\n<div id='database'>\n\n <h3><?php _e('Database update option','newstatpress'); ?></h3>\n <table>\n <p class='table-databaseupdate'>\n <?php\n _e('Select the interval of date from today you want to use for updating your database with new definitions. ','newstatpress');\n _e('Be aware, larger is the interval, longer is the update and bigger are the resources required.','newstatpress');\n // _e('You can choose to not update some fields if you want.','newstatpress')\n ?>\n </p>\n\n <?php\n $val= array(array('', 'All'),array(1, 'week'),array(2, 'weeks'),array(3, 'weeks'),array(1, 'month'),array(2, 'months'),array(3, 'months'),array(6, 'months'),array(9, 'months'),array(12, 'months'));\n $option_title=__('Update data in the given period','newstatpress');\n $option_var='newstatpress_updateint';\n nsp_PrintOption($option_title,$option_var,$val);\n?>\n</table>\n</div>\n\n<?php\n// case 'API Key' :\necho \"<div id='api'>\\n<table class='form-tableH'>\";\n\n$option_title=__('Enable External API','newstatpress');\n$option_var='newstatpress_externalapi';\nnsp_PrintChecked($option_title,$option_var);\necho \"</td></tr>\";\n\n$option_title=__('API key','newstatpress');\n$option_var=\"newstatpress_apikey\";\n$option_description=__('The external access API is build to let you to use the collected data from your Newstatpress plugin in an other web server application (for example you can show data relative to your Wordpress blog, inside a Drupal site that run in another server). This key allows Newstatpress to recognize that you and only you want the data and not the not authorized people. Let the input form blank means that you allow everyone to get data without authorization if external API is activated. The API should be activated with the flag box. Please be aware that the external API will be also used by Newstatpress itself when are processed AJAX calls for speedup page rendering of queried data, so you will need to choose an key and activate it.\n\n<br/><br/>To retrieve data from Newstatpress plugin, you can generate automatically or set manually a private key for the external API (used for example from Multi-Newstatpress software) : only alphanumeric characters are allowed (A-Z, a-z, 0-9), length should be between 64 and 128 characters.','newstatpress');\n\necho \"<tr><td>\\n<p class='ign'><label for=$option_var>$option_title</label></p>\\n\";\necho \"<p>$option_description</p>\\n\";\necho \"<div class='justified'>\";\n\necho \"<p><textarea class='large-text code api' minlength='64' maxlength='128' cols='50' rows='3' name=$option_var id=$option_var>\";\necho get_option($option_var);\necho \"</textarea></p>\\n\";\n\necho \"</div>\";\n\necho \"<tr><td>\\n\";\necho \"<div class='justified'>\";\necho \"<div class='button' type='button' onClick='myFunction()'>\";_e('Generate new API key','newstatpress');\necho \"</div>\";\necho \"</td></tr>\\n\";\necho \"</div>\";\necho \"</td></tr>\\n\";\n\n\necho \"</table></div\";\n\n\n?>\n\n\n<p class='submit'>\n<input class='button button-primary' type=submit value=\"<?php _e('Save options','newstatpress'); ?>\">\n <input type=hidden name=saveit value=yes>\n <input type=hidden name=page value=newstatpress><input type=hidden name=newstatpress_action value=options>\n</p>\n\n </div>\n\n</form>\n\n <script type=\"text/javascript\">\n jQuery(\"#usual1 ul\").idTabs(general);\n\n function validateCode() {\n // var TCode = document.getElementById('TCode').value;\n var obj = document.getElementById(\"newstatpress_apikey\").value;\n\n if( /[^a-zA-Z0-9]/.test( obj ) ) {\n alert('Input is not alphanumeric');\n return false;\n }\n return true;\n }\n\n function randomString(length, chars) {\n var result = '';\n for (var i = length; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))];\n return result;\n }\n\n function myFunction() {\n var obj = document.getElementById(\"newstatpress_apikey\");\n var txt = randomString(128, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');\n obj.value = txt;\n }\n\n\n\n </script>\n\n\n\n<?php\n\n}", "title": "" }, { "docid": "9b229e01e787ffabf5af07d86a92e346", "score": "0.5237873", "text": "function updateSettings() {\r\n $postdata = file_get_contents(\"php://input\");\r\n $userinfo = json_decode($postdata);\r\n $errors = array();\r\n // Retrieve sign in user\r\n $account = $data['account'] = $this->account_model->get_by_id($this->session->userdata('user_id'));\r\n $data['account_details'] = $this->account_details_model->get_by_user_id($this->session->userdata('user_id'));\r\n // Update account details\r\n $attributes['country'] = $userinfo->settings_country ? $userinfo->settings_country : NULL;\r\n\r\n $this->account_details_model->update($data['account']->id, $attributes);\r\n if (isset($userinfo->settings_language) && !empty($userinfo->settings_language) && $account->language !== $userinfo->settings_language) {\r\n $language = htmlentities($userinfo->settings_language);\r\n if ($this->account_model->update_language($data['account']->id, $language))\r\n $this->session->set_userdata('language', $language);\r\n $result['reload'] = true;\r\n }\r\n\r\n $data['settings_info'] = lang('settings_details_updated');\r\n\r\n\r\n $result['errors'] = $errors;\r\n echo json_encode($result);\r\n }", "title": "" }, { "docid": "569fbcfa8c468cb9737ed5f1626a0b1e", "score": "0.52336425", "text": "function process_options() {\r\n\r\n\t\t\t// we aren't saving options\r\n\t\t\tif ( ! isset( $_POST['wp_smpro_options_nonce'] ) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// the nonce doesn't pan out\r\n\t\t\tif ( ! wp_verify_nonce( $_POST['wp_smpro_options_nonce'], 'save_wp_smpro_options' ) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// var to temporarily assign the option value\r\n\t\t\t$setting = null;\r\n\r\n\t\t\t// process each setting and update options\r\n\t\t\tforeach ( $this->settings as $name => $text ) {\r\n\t\t\t\t// formulate the index of option\r\n\t\t\t\t$opt_name = WP_SMPRO_PREFIX . $name;\r\n\t\t\t\t// get the value to be saved\r\n\t\t\t\t$setting = isset( $_POST[ $opt_name ] ) ? 1 : 0;\r\n\t\t\t\t// update the new value\r\n\t\t\t\tupdate_option( $opt_name, $setting );\r\n\t\t\t\t// unset the var for next loop\r\n\t\t\t\tunset( $setting );\r\n\t\t\t}\r\n\t\t\t//Process email address\r\n\t\t\tif ( isset( $_POST[ WP_SMPRO_PREFIX . 'notify-at' ] ) ) {\r\n\t\t\t\t$email = ! empty( $_POST[ WP_SMPRO_PREFIX . 'notify-at' ] ) ? $_POST[ WP_SMPRO_PREFIX . 'notify-at' ] : '';\r\n\r\n\t\t\t\tif ( ! empty( $email ) ) {\r\n\t\t\t\t\t//Validate\r\n\t\t\t\t\tif ( filter_var( $_POST[ WP_SMPRO_PREFIX . 'notify-at' ], FILTER_VALIDATE_EMAIL ) ) {\r\n\t\t\t\t\t\t//save option\r\n\t\t\t\t\t\tupdate_option( WP_SMPRO_PREFIX . 'notify-at', $_POST[ WP_SMPRO_PREFIX . 'notify-at' ] );\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t<div class=\"error\">\r\n\t\t\t\t\t\t<p><?php _e( 'Invalid email address.', WP_SMPRO_DOMAIN ); ?></p>\r\n\t\t\t\t\t\t</div><?php\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Update null\r\n\t\t\t\t\tupdate_option( WP_SMPRO_PREFIX . 'notify-at', '' );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "b6b3959c40a15078efca8f885e057fc5", "score": "0.52314633", "text": "function update($criteria_array = array(), $update_array = array(), $options_array = array(), $use_set_notation = false) {\n\t\t$ret_val = parent::update($criteria_array, $update_array, $options_array, $use_set_notation);\n\t\t\n\t\t// find any servers and attempte to clear the caches\n\t\t/* @todo do this in a script, so it doesn't choke the update */\n// \t\t$server = new Server();\n// \t\t$servers = $server->queryAll();\n// \t\t/* @var $server \\Flux\\Server */\n// \t\tforeach ($servers as $server) {\n// \t\t\t$server->clearCampaignCache($this);\n// \t\t}\n\t\t\n\t\treturn $ret_val;\n\t}", "title": "" }, { "docid": "56ed16d44b735c8030d9c6bc6ee8d9a5", "score": "0.52203447", "text": "function setOptions(){\n\t\tif (empty($_POST)) return false;\n\t\tforeach ($this->getProperties() as $property => $value) \n\t\t\tupdate_option($property, $value);\n\t}", "title": "" }, { "docid": "a35ba94c67a241e4227e5c93791ab012", "score": "0.521718", "text": "function borntogive_charitable_plugin_settings_update(){\n\t$ss = 'a:14:{s:15:\"active_gateways\";a:1:{s:7:\"offline\";s:26:\"Charitable_Gateway_Offline\";}s:15:\"default_gateway\";s:7:\"offline\";s:7:\"section\";s:7:\"general\";s:7:\"country\";s:2:\"AU\";s:8:\"currency\";s:3:\"AUD\";s:15:\"currency_format\";s:4:\"left\";s:17:\"decimal_separator\";s:1:\".\";s:19:\"thousands_separator\";s:1:\",\";s:13:\"decimal_count\";s:1:\"2\";s:21:\"donation_form_display\";s:5:\"modal\";s:12:\"profile_page\";s:2:\"87\";s:10:\"login_page\";s:2:\"wp\";s:17:\"registration_page\";s:2:\"wp\";s:21:\"donation_receipt_page\";s:4:\"auto\";}';\n\t$overriting_settings = unserialize($ss);\n\tupdate_option('charitable_settings', $overriting_settings);\n}", "title": "" }, { "docid": "1f1f6fecd2bfa13c407762b19a7492b3", "score": "0.52151066", "text": "function fastway_update(){\r\n $thumbnail_size = array(\r\n 'large_size_w' => fastway_configs('large_size_w'),\r\n 'large_size_h' => fastway_configs('large_size_h'),\r\n 'large_crop' => 1, \r\n 'medium_large_size_w' => fastway_configs('medium_large_size_w'),\r\n 'medium_large_size_h' => fastway_configs('medium_large_size_h'),\r\n 'medium_large_crop' => 1, \r\n 'medium_size_w' => fastway_configs('medium_size_w'),\r\n 'medium_size_h' => fastway_configs('medium_size_h'),\r\n 'medium_crop' => 1, \r\n 'thumbnail_size_w' => fastway_configs('thumbnail_size_w'),\r\n 'thumbnail_size_h' => fastway_configs('thumbnail_size_h'),\r\n 'thumbnail_crop' => 1,\r\n );\r\n foreach ($thumbnail_size as $option => $value) {\r\n if (get_option($option, '') != $value)\r\n update_option($option, $value);\r\n }\r\n}", "title": "" }, { "docid": "2a49aa4dfe8cfcff5883ff9705605501", "score": "0.52149755", "text": "private function adminNoticeOptionsUpdated() {\n\t\tif ( $this->m_fSubmitCpmMainAttempt ) {\n\t\t\t\n\t\t\tif ( $this->m_fUpdateSuccessTracker ) {\n\t\t\t\t$sNotice = '<p>Updating CPM Plugin Options was a <strong>Success</strong>.</p>';\n\t\t\t\t$sClass = 'updated';\n\t\t\t} else {\n\t\t\t\t$sNotice = '<p>Updating CPM Plugin Options <strong>Failed</strong>.</p>';\n\t\t\t\t$sClass = 'error';\n\t\t\t}\n\t\t\t$this->getAdminNotice($sNotice, $sClass, true);\n\t\t}\n\t}", "title": "" }, { "docid": "d1b4bbe5ef0f91888166a335a816d4ff", "score": "0.5199218", "text": "public function set_all() {\r\n \tglobal $Database;\r\n\r\n \t$sql = \"SELECT * FROM \".$this->settings_table;\r\n \t$result = $Database->query($sql);\r\n\r\n \t$output = array();\r\n \twhile ($row = $Database->fetch_data($result)) {\r\n $output[$row->setting_name] = $row->setting_value;\r\n }\r\n $this->settings = $output;\r\n }", "title": "" }, { "docid": "1c1f8555aab77a0e562f5213f28590e2", "score": "0.51947767", "text": "function updateAI() {\r\n\tglobal $db, $n;\r\n\t\r\n\t$posts4AI = array();\r\n\t$days4AI = array();\r\n\t\r\n\t$result = $db->query(\"SELECT groupid, ai_posts, ai_days FROM bb\".$n.\"_groups WHERE grouptype > 4 AND (ai_posts>-1 OR ai_days>-1)\");\r\n\twhile ($row = $db->fetch_array($result)) {\r\n\t\tif ($row['ai_posts'] > -1) $posts4AI[$row['groupid']] = $row['ai_posts'];\r\n\t\tif ($row['ai_days'] > -1) $days4AI[$row['groupid']] = $row['ai_days'];\r\n\t}\r\n\t\r\n\t$db->query(\"UPDATE bb\".$n.\"_options SET value='\".serialize($posts4AI).\"' WHERE varname='posts4AI'\");\r\n\t$db->query(\"UPDATE bb\".$n.\"_options SET value='\".serialize($days4AI).\"' WHERE varname='days4AI'\");\r\n\t\r\n\trequire(\"./lib/class_options.php\");\r\n\t$option = new options(\"lib\");\r\n\t$option->write();\r\n}", "title": "" }, { "docid": "97c2330ec9863079abf7e4d0af5b575c", "score": "0.5191202", "text": "private function set_options() {\r\n\t\t\t\t//iterate through our options\r\n\t\t\t\tforeach($this->options as $name => $val) {\r\n\t\t\t\t\t//if this is our options array\r\n\t\t\t\t\tif($name == $this->fix_name('options')) {\r\n\t\t\t\t\t\t//iterate through each value\r\n\t\t\t\t\t\tforeach($val as $key => $value) {\r\n\t\t\t\t\t\t\t//check it against the current settings\r\n\t\t\t\t\t\t\tif($this->settings[$key] != $value) {\r\n\t\t\t\t\t\t\t\t//if the setting was different, store the current setting, not our default\r\n\t\t\t\t\t\t\t\t$val[$key] = $this->settings[$key];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//json encode our options array into a string\r\n\t\t\t\t\t\t$val = json_encode($val);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//run the option through our update method\r\n\t\t\t\t\t$this->update_option($name, $val);\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "e78b128e8ebcd7ee620a140cd48e1aa9", "score": "0.51794815", "text": "public function updateCampaignStatus($campaign_id);", "title": "" }, { "docid": "dfddfd0f1c2bf422ee24b1cd84723297", "score": "0.5177249", "text": "function update() {\r\n\t\t$defaults = $this->defaults();\r\n\t\t\r\n\t\tif( !is_array($defaults) || empty($defaults) || !isset($_GET['page']) || $_GET['page'] != $this->menu_slug)\r\n\t\t\treturn;\r\n\t\t\r\n\t\t// Save the settings when user click \"Save\" Button\r\n\t\tif (isset($_POST['save'])) {\r\n\t\t\t\t\r\n\t\t\tforeach( $defaults as $option_name => $option_value) {\r\n\t\t\t\t$value = null;\r\n\t\t\t\tif(!empty($_POST[$option_name]))\r\n\t\t\t\t\t$value = $_POST[$option_name];\r\n\t\t\t\tif ( !is_array($value) )\r\n\t\t\t\t\t$value = trim($value);\r\n\t\t\t\t$value = stripslashes_deep($value);\r\n\t\t\t\t\r\n\t\t\t\tupdate_option($option_name, $value);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdo_action('dp_update_settings');\r\n\t\t\tdo_action('dp_save_settings');\r\n\t\t\t\r\n\t\t\t$args = array_filter(array(\r\n\t\t\t\t'page' => $_REQUEST['page'],\r\n\t\t\t\t'updated' => true\r\n\t\t\t));\r\n\t\t\twp_redirect( add_query_arg($args, get_current_url(false)) );\r\n\t\t\texit();\r\n\t\t}\r\n\t\t\r\n\t\t// Reset settings to defaults when user click \"Reset\" button or settings is empty.\r\n\t\telseif(isset($_POST['reset'])) {\r\n\t\t\tforeach($defaults as $option_name => $option_value) {\r\n\t\t\t\tupdate_option($option_name, $option_value);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdo_action('dp_update_settings');\r\n\t\t\tdo_action('dp_reset_settings');\r\n\t\t\t\r\n\t\t\t$args = array_filter(array(\r\n\t\t\t\t'page' => $_REQUEST['page'],\r\n\t\t\t\t'reset' => true\r\n\t\t\t));\r\n\t\t\twp_redirect( add_query_arg($args, get_current_url(false)) );\r\n\t\t\texit();\r\n\t\t}\r\n\t\t\r\n\t\t/* global $wp_rewrite;\r\n\t\t$wp_rewrite->flush_rules(); */\r\n\t}", "title": "" }, { "docid": "ee79d7679cd467e209263f1a659c2049", "score": "0.5166449", "text": "public function update(Request $request)\n {\n foreach ($request['setting'] as $key => $value) {\n Configuration::set($key, $value);\n }\n\n return redirect()->intended(route('admin.settings.index'));\n }", "title": "" }, { "docid": "384948c261095c85957306487ec3e4fa", "score": "0.5164054", "text": "function __editSettings()\n {\n\n //profiling\n $this->data['controller_profiling'][] = __function__;\n\n //flow control\n $next = true;\n\n if (!isset($_POST['submit'])) {\n //redirect to 'view' url instead\n $this_url = uri_string();\n $redirect = str_replace('edit', 'view', $this_url);\n redirect($redirect);\n }\n\n /*\n *---------------------------------------------------------------------\n * UPDATE ALL THE ROWS, 1 AT A TIME\n * we are updating 3 rows and so we have to do one at a time.\n * We set the actual post data as if its one row being posted/updates\n * Then loop through all 3 rows\n * In the end, the model sql will see this as one form being posted \n * at a time. (perhaps a 'multiple update' sql query in future??)\n *--------------------------------------------------------------------\n */\n for ($i = 1; $i < 4; $i++) {\n\n //artificially set post data from actual\n $_POST['clients_optionalfield_title'] = $_POST[\"clients_optionalfield_title$i\"];\n $_POST['clients_optionalfield_require'] = $_POST[\"clients_optionalfield_require$i\"];\n $_POST['clients_optionalfield_status'] = $_POST[\"clients_optionalfield_status$i\"];\n\n $result = $this->clientsoptionalfields_model->editSettings(\"clients_optionalfield$i\");\n $this->data['debug'][] = $this->clientsoptionalfields_model->debug_data;\n }\n\n for ($i = 1; $i < 6; $i++) {\n\n //artificially set post data from actual\n $_POST['projects_optionalfield_title'] = $_POST[\"projects_optionalfield_title$i\"];\n $_POST['projects_optionalfield_require'] = $_POST[\"projects_optionalfield_require$i\"];\n $_POST['projects_optionalfield_status'] = $_POST[\"projects_optionalfield_status$i\"];\n\n $result = $this->projectsoptionalfields_model->editSettings(\"projects_optionalfield$i\");\n $this->data['debug'][] = $this->projectsoptionalfields_model->debug_data;\n }\n\n $this->__viewSettings();\n }", "title": "" }, { "docid": "f9acee38b53ed78f4d3c87884546f98d", "score": "0.516095", "text": "private function update_privacy_options() {\n\t\t$options = get_option( 'tcc_options_privacy', array() );\n\t\tif ( ! empty( $options ) ) {\n\t\t\tupdate_option( 'tcc_options_privacy-my-way', $options, false );\n\t\t\tdelete_option( 'tcc_options_privacy' );\n\t\t}\n\t}", "title": "" }, { "docid": "52d689e5d54d2f11a658424af2fa3aa0", "score": "0.5144417", "text": "public static function updateSettings($data)\n {\n // only update maintenance mode if this record exists in Settings table\n if (Setting::where('key', self::MAINTENANCE_MODE)->first()) {\n $data[self::MAINTENANCE_MODE] = isset($data[self::MAINTENANCE_MODE]) ? 1 : 0;\n if ($data[self::MAINTENANCE_MODE] == 1) {\n // activate maintenance mode\n \\Artisan::call('down --secret=\"'.env('MAINTENANCE_SECRET', '2021').'\"');\n } else {\n // back to normal\n \\Artisan::call('up');\n }\n }\n\n foreach ($data as $key => $item) {\n $item_settings = Setting::where('key', $key)->first();\n $item_settings->value = $item;\n $item_settings->save();\n }\n return true;\n }", "title": "" }, { "docid": "3e94ca692631f33c1a5cc0464d4fa3a2", "score": "0.51120454", "text": "public function update_dashboard_user_options() {\r\n\t\tif ( ! check_ajax_referer( 'pvc-dashboard-user-options', 'nonce' ) )\r\n\t\t\twp_die( __( 'You do not have permission to access this page.', 'post-views-counter' ) );\r\n\r\n\t\t// get allowed post types\r\n\t\t$allowed_post_types = Post_Views_Counter()->options['general']['post_types_count'];\r\n\r\n\t\t// simulate total views as post type\r\n\t\t$allowed_post_types[] = '_pvc_total_views';\r\n\t\t\r\n\t\t// get allowed menu items\r\n\t\t$allowed_menu_items = array( 'post-views', 'most-viewed' );\r\n\r\n\t\t// valid data?\r\n\t\tif ( isset( $_POST['nonce'], $_POST['options'] ) && ! empty( $_POST['options'] ) ) {\r\n\t\t\t// get options\r\n\t\t\t$update = map_deep( $_POST['options'], 'sanitize_text_field' );\r\n\r\n\t\t\t// get user ID\r\n\t\t\t$user_id = get_current_user_id();\r\n\r\n\t\t\t// get user dashboard data\r\n\t\t\t$user_options = get_user_meta( $user_id, 'pvc_dashboard', true );\r\n\r\n\t\t\t// empty userdata?\r\n\t\t\tif ( ! is_array( $user_options ) || empty( $user_options ) )\r\n\t\t\t\t$user_options = array();\r\n\t\t\t\r\n\t\t\t// empty post types?\r\n\t\t\tif ( ! array_key_exists( 'post_types', $user_options ) || ! is_array( $user_options['post_types'] ) )\r\n\t\t\t\t$user_options['post_types'] = array();\r\n\r\n\t\t\t// hide post type?\r\n\t\t\tif ( ! empty( $update['post_type'] ) && in_array( $update['post_type'], $allowed_post_types, true ) ) {\r\n\t\t\t\tif ( isset( $update['hidden'] ) && $update['hidden'] === 'true' ) {\r\n\t\t\t\t\tif ( ! in_array( $update['post_type'], $user_options['post_types'], true ) )\r\n\t\t\t\t\t\t$user_options['post_types'][] = $update['post_type'];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif ( ( $key = array_search( $update['post_type'], $user_options['post_types'] ) ) !== false )\r\n\t\t\t\t\t\tunset( $user_options['post_types'][$key] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// hide menu item?\r\n\t\t\t$user_options['menu_items'] = array();\r\n\t\t\t\r\n\t\t\tif ( ! empty( $update['menu_items'] ) && is_array( $update['menu_items'] ) ) {\r\n\t\t\t\t$update['menu_items'] = map_deep( $update['menu_items'], 'sanitize_text_field' );\r\n\r\n\t\t\t\tforeach ( $update['menu_items'] as $menu_item => $hidden ) {\r\n\t\t\t\t\tif ( in_array( $menu_item, $allowed_menu_items ) && $hidden === 'true' )\r\n\t\t\t\t\t\t$user_options['menu_items'][] = $menu_item;\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// update userdata\r\n\t\t\tupdate_user_meta( $user_id, 'pvc_dashboard', $user_options );\r\n\t\t}\r\n\r\n\t\texit;\r\n\t}", "title": "" }, { "docid": "e874af1fd16b4d0b5e8770c9f06fe302", "score": "0.5111312", "text": "protected static function update_general_options() {\n \n $lib = URE_Lib::get_instance();\n if (defined('URE_SHOW_ADMIN_ROLE') && (URE_SHOW_ADMIN_ROLE == 1)) {\n $show_admin_role = 1;\n } else {\n $show_admin_role = $lib->get_request_var('show_admin_role', 'post', 'checkbox');\n }\n $lib->put_option('show_admin_role', $show_admin_role);\n\n $caps_readable = $lib->get_request_var('caps_readable', 'post', 'checkbox');\n $lib->put_option('ure_caps_readable', $caps_readable);\n\n $show_deprecated_caps = $lib->get_request_var('show_deprecated_caps', 'post', 'checkbox');\n $lib->put_option('ure_show_deprecated_caps', $show_deprecated_caps); \n \n $confirm_role_update = $lib->get_request_var('confirm_role_update', 'post', 'checkbox');\n $lib->put_option('ure_confirm_role_update', $confirm_role_update);\n \n $edit_user_caps = $lib->get_request_var('edit_user_caps', 'post', 'checkbox');\n $lib->put_option('edit_user_caps', $edit_user_caps);\n \n $caps_columns_quant = (int) $lib->get_request_var('caps_columns_quant', 'post', 'int');\n $lib->put_option('caps_columns_quant', $caps_columns_quant); \n \n do_action('ure_settings_update1');\n\n $lib->flush_options();\n $lib->show_message(esc_html__('User Role Editor options are updated', 'user-role-editor'));\n \n }", "title": "" }, { "docid": "23b53f3e9b62c37849622d24c7fd4d2d", "score": "0.51046664", "text": "public function bdt_update_option_cb()\n {\n Biltorvet::bdt_rewriterules();\n Biltorvet::bdt_flushrewriterules();\n }", "title": "" }, { "docid": "0a37ac8b211a6768f13b676464b946c4", "score": "0.5092314", "text": "function wp_cdaglobal_activate(){\n update_option('cdaglobalassets_fetch', 'false'); \n update_option('cdaglobalfooter_fetch', 'false');\n update_option('cdaglobalheader_fetch', 'false'); \n update_option('cdaglobal_environment', 'QA-1'); \n update_option('cdaglobal_styleembed', 'NO-STYLE'); \n update_option('cdaglobal_domfield_header', 'header');\n update_option('cdaglobal_domfield_footer', 'footer'); \n}", "title": "" }, { "docid": "086a7aabed88500a05e440a8a2081921", "score": "0.50768125", "text": "function sync_theme_option(){\r\n\t\t\t$theme_option = get_option(THEME_SHORT_NAME . '_admin_option', array());\r\n\t\t\t$customizer_option = get_option('gdlr_customizer', array());\r\n\t\t\t\r\n\t\t\tforeach( $customizer_option as $option_slug => $option_val ){\r\n\t\t\t\t$theme_option[$option_slug] = $option_val;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tupdate_option(THEME_SHORT_NAME . '_admin_option', $theme_option);\r\n\t\t\tdelete_option('gdlr_customizer');\r\n\t\t\t\r\n\t\t\tgdlr_generate_style_custom($this->admin_option);\r\n\t\t}", "title": "" }, { "docid": "c0a1c13ed9d9adcf01718b283072da51", "score": "0.50686145", "text": "public function updateConfigs() {\n $this->updateJXConfig();\n\n $domains = $this->getDomains();\n foreach ($domains as $d) {\n $d->updateConfigs();\n }\n\n if ($this->configChanged) {\n Modules_JxcoreSupport_Common::$needToReloadNginx = true;\n }\n }", "title": "" }, { "docid": "f7d35c2d18978966e9f1151ae182d81f", "score": "0.50622773", "text": "public function setBroadcasts()\n\t{\n\t\t# if the user has not selected any broadcasts they are opting out of all comms.\n\t\t# this means the broadcasts array won't exist. create it so we have something to work \n\t\t# with.\n\t\tif(! isset($this->form['broadcast'])) {\n\t\t\t$this->form['broadcast'] = [];\n\t\t}\n\n\t\t# short cut the class preferences array so we don't have to write it out each time\n\t\t$broadcasts = $this->preferences['broadcasts'];\n\n\t\t# go through the main preferences object and set it accordingly\n\t\tforeach($broadcasts AS $key => $broadcast)\n\t\t{\n\t\t\t# if its in the form submission the user has opted into it. Set isPromoted = true\n\t\t\t$broadcasts[$key]['isEnabled'] = in_array($broadcast['id'], $this->form['broadcast']);\n\t\t}\n\n\t\t# assign the updated districts array to the class wide preferences array\n\t\t$this->preferences['broadcasts'] = $broadcasts;\n\t}", "title": "" }, { "docid": "ab2c36ad4792a43709a1a7e173ab4b6c", "score": "0.50529665", "text": "public function doPrePluginOptionsSave() {\r\n\t\t\t$aOldOptions = $this->loadWpFunctionsProcessor()->getOption( 'icwp_autoupdates_system_options' );\r\n\t\t\tif ( !empty( $aOldOptions ) && is_array( $aOldOptions ) ) {\r\n\t\t\t\tif ( isset( $aOldOptions['enabled'] ) && $aOldOptions['enabled'] ) {\r\n\t\t\t\t\t$this->setIsMainFeatureEnabled( true );\r\n\t\t\t\t}\r\n\t\t\t\tif ( isset( $aOldOptions['tracking_id'] ) ) {\r\n\t\t\t\t\t$this->setOpt( 'tracking_id', $aOldOptions['tracking_id'] );\r\n\t\t\t\t}\r\n\t\t\t\t$this->setOpt( 'auto_update_plugins', ( isset( $aOldOptions['auto_update_plugins'] ) && is_array( $aOldOptions['auto_update_plugins'] ) ) ? $aOldOptions['auto_update_plugins'] : array() );\r\n\t\t\t\t$this->setOpt( 'auto_update_themes', ( isset( $aOldOptions['auto_update_themes'] ) && is_array( $aOldOptions['auto_update_themes'] ) ) ? $aOldOptions['auto_update_themes'] : array() );\r\n\t\t\t\t$this->loadWpFunctionsProcessor()->deleteOption( 'icwp_autoupdates_system_options' );\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "869e6226043b78de4e0387334052cc58", "score": "0.50343525", "text": "static function adjustOptions($options) {\n global $user;\n\n // Check and optionally adjust users.\n // Special handling of the NULL $options['users'] field (this used to mean \"all users\").\n if (!$options['users']) {\n if ($user->can('view_reports') || $user->can('view_all_reports') || $user->isClient()) {\n if ($user->can('view_reports') || $user->can('view_all_reports')) {\n $max_rank = $user->rank-1;\n if ($user->can('view_all_reports')) $max_rank = 512;\n if ($user->can('view_own_reports'))\n $user_options = array('max_rank'=>$max_rank,'include_self'=>true);\n else\n $user_options = array('max_rank'=>$max_rank);\n $users = $user->getUsers($user_options); // Active and inactive users.\n } elseif ($user->isClient()) {\n $users = ttGroupHelper::getUsersForClient(); // Active and inactive users for clients.\n }\n foreach ($users as $single_user) {\n $user_ids[] = $single_user['id'];\n }\n $options['users'] = implode(',', $user_ids);\n }\n } else {\n $users_to_adjust = explode(',', $options['users']); // Users to adjust.\n if ($user->isClient()) {\n $users = ttGroupHelper::getUsersForClient(); // Active and inactive users for clients.\n foreach ($users as $single_user) {\n $user_ids[] = $single_user['id'];\n }\n foreach ($users_to_adjust as $user_to_adjust) {\n if (in_array($user_to_adjust, $user_ids)) {\n $adjusted_user_ids[] = $user_to_adjust;\n }\n }\n $options['users'] = implode(',', $adjusted_user_ids);\n }\n // TODO: add checking the existing user list for potentially changed access rights for user.\n }\n\n if ($user->isPluginEnabled('ap') && $user->isClient() && !$user->can('view_client_unapproved'))\n $options['approved'] = 1; // Restrict clients to approved records only.\n\n return $options;\n }", "title": "" }, { "docid": "54f03a82c4078b53737a16099ed70fcf", "score": "0.50191945", "text": "public function update(Request $request)\n {\n $country = $request->country;\n $timezone = $request->timezone;\n $clock_comment = $request->clock_comment;\n $iprestriction = $request->iprestriction;\n \n \n if ($country == null && $timezone == null && $clock_comment == null && $iprestriction == null) {\n return redirect('settings');\n }\n\n if ($timezone == null) {\n return redirect('settings')->with('error', 'Please select your timezone.');\n } else {\n $t = Settings::where('id', 1)->value('timezone');\n $path = base_path('.env');\n if(file_exists($path)) {\n file_put_contents($path, str_replace('APP_TIMEZONE='.$t, 'APP_TIMEZONE='.$timezone, file_get_contents($path)));\n }\n }\n\n Settings::where('id', 1)\n ->update([\n 'country' => $country,\n 'timezone' => $timezone,\n 'clock_comment' => $clock_comment,\n 'iprestriction' => $iprestriction,\n ]);\n \n return redirect('admin/'.$this->title)->with('success', 'Settings has been updated. Please try re-login for the new settings to take effect.');\n }", "title": "" }, { "docid": "f19f79ff8565c683afb124ea669eed87", "score": "0.50109726", "text": "public function allSettingsAction() {\n $customer = $this->getCustomer();\n if (!$customer->isLoggedIn()) {\n return $this->_redirect('/');\n }\n $request = $this->getRequest();\n if ($request->isPost()) {\n $post = $request->getPost();\n // A wrapper for *.pl\n if (substr($this->config->domain->base, -3) == '.pl') {\n // Reseting plz and cityId, which may be incorrect or unset - must be verified on server side\n $post['cityId'] = '0';\n $post['plz'] = '';\n if (isset($post['city'], $post['street'], $post['hausnr'])) {\n // now we can try to override plz/cityId, as all needed data have been passed\n $cityVerbose = new Yourdelivery_Model_City_Verbose();\n // first try - trying without hausnr (as we don't know here, where current street has defined ranges)\n $matches = $cityVerbose->findmatch($post['city'], $post['street']);\n if (count($matches) > 1) {\n // second try: we must extract first numeric fragment from hausnr\n $matches = $cityVerbose->findmatch(\n $post['city'], $post['street'], $post['hausnr']\n );\n }\n if (count($matches) == 1) {\n $data = array_pop($matches);\n $post['cityId'] = $data['cityId'];\n $post['plz'] = $data['cep'];\n }\n }\n }\n\n $form = new Yourdelivery_Form_User_AllSettings();\n $form->initEmail($customer->getId());\n \n if (!$form->isValid($post)) {\n $values = $form->getValues();\n $customer->setData($values);\n $this->error($form->getMessages());\n $this->logger->debug('form errors while trying to update settings after facebook registration');\n return;\n } else {\n\n $values = $form->getValues();\n //check if those are matching\n $cityId = $form->getValue('cityId');\n if (empty($cityId)) {\n\n $plz = $form->getValue('plz');\n $cityIds = array_map(function($a) {\n return $a['id'];\n }, Yourdelivery_Model_City::getByPlz($plz)->toArray());\n\n if (count($cityIds) == 0) {\n $this->error(__('Bitte überprüfen sie ihre PLZ'));\n $this->view->post = $post;\n $this->logger->debug(__('Bitte überprüfen sie ihre PLZ'));\n return;\n }\n $values['cityId'] = (integer) current($cityIds);\n }\n $customer->setData($values);\n $customer->addAddress($values);\n $customer->save();\n\n return $this->_redirect('/user/registered');\n }\n } else {\n Yourdelivery_Model_Piwik_Tracker::trackGoal('registerpage');\n }\n $meta[] = '<meta name=\"robots\" content=\"noindex,follow\" />';\n $this->view->assign('additionalMetatags', $meta);\n }", "title": "" }, { "docid": "eb73c53008856ba5a6e0c447b7651d9a", "score": "0.5005453", "text": "private function installSettings()\n {\n $this->addSetting('companies_limit', 20);\n $this->addSetting('backup_database_limit', 7);\n }", "title": "" }, { "docid": "935255e3765a925ad80da373a3ff2eb2", "score": "0.49985486", "text": "function updateTeamProfile()\n {\n update_option(WPST_OPTION_TEAM_NAME, $this->getTeamName()) ;\n update_option(WPST_OPTION_TEAM_CLUB_OR_POOL_NAME, $this->getClubOrPoolName()) ;\n update_option(WPST_OPTION_TEAM_STREET_1, $this->getStreet1()) ;\n update_option(WPST_OPTION_TEAM_STREET_2, $this->getStreet2()) ;\n update_option(WPST_OPTION_TEAM_STREET_3, $this->getStreet3()) ;\n update_option(WPST_OPTION_TEAM_CITY, $this->getCity()) ;\n update_option(WPST_OPTION_TEAM_STATE_OR_PROVINCE, $this->getStateOrProvince()) ;\n update_option(WPST_OPTION_TEAM_POSTAL_CODE, $this->getPostalCode()) ;\n update_option(WPST_OPTION_TEAM_COUNTRY, $this->getCountry()) ;\n update_option(WPST_OPTION_TEAM_PRIMARY_PHONE, $this->getPrimaryPhone()) ;\n update_option(WPST_OPTION_TEAM_SECONDARY_PHONE, $this->getSecondaryPhone()) ;\n update_option(WPST_OPTION_TEAM_EMAIL_ADDRESS, $this->getEmailAddress()) ;\n update_option(WPST_OPTION_TEAM_WEB_SITE, $this->getWebSite()) ;\n update_option(WPST_OPTION_TEAM_POOL_LENGTH, $this->getPoolLength()) ;\n update_option(WPST_OPTION_TEAM_POOL_MEASUREMENT_UNITS, $this->getPoolMeasurementUnits()) ;\n update_option(WPST_OPTION_TEAM_POOL_LANES, $this->getPoolLanes()) ;\n update_option(WPST_OPTION_TEAM_COACH_USER_ID, $this->getCoachUserId()) ;\n }", "title": "" }, { "docid": "f73071e5668ad117a884a41b9d55b413", "score": "0.4988013", "text": "public function actionUpdateSettings() {\n $this->menu = array();\n $this->render('user_update_settings');\n }", "title": "" }, { "docid": "f73071e5668ad117a884a41b9d55b413", "score": "0.4988013", "text": "public function actionUpdateSettings() {\n $this->menu = array();\n $this->render('user_update_settings');\n }", "title": "" }, { "docid": "8bd89a3f74583a4608b96706cf054cb0", "score": "0.49714467", "text": "public function settings_admin_page_callback()\n {\n if ( ! empty($_GET['view']) && $_GET['view'] == 'add-new-optin') {\n AddOptinCampaign::get_instance()->settings_admin_page();\n } else {\n // Hook the OptinCampaign_List table to Custom_Settings_Page_Api main content filter.\n add_action('wp_cspa_main_content_area', array($this, 'wp_list_table'), 10, 2);\n add_action('wp_cspa_before_post_body_content', array($this, 'optin_theme_sub_header'), 10, 2);\n add_action('wp_cspa_before_closing_header', [$this, 'add_new_optin_form_button']);\n\n $instance = Custom_Settings_Page_Api::instance();\n\n $instance->option_name(MO_OPTIN_CAMPAIGN_WP_OPTION_NAME);\n $instance->page_header(__('Optin Campaigns', 'mailoptin'));\n $instance->sidebar($this->sidebar_args());\n $this->register_core_settings($instance);\n echo '<div class=\"mailoptin-data-listing\">';\n $instance->build(defined('MAILOPTIN_DETACH_LIBSODIUM'));\n echo '</div>';\n\n $this->ab_split_test_form();\n }\n }", "title": "" }, { "docid": "dd9f2adee946c71f77f5da70aee3ecbb", "score": "0.49686918", "text": "function admin_setup_page() {\n\t\t$this->options = get_option('usces');\n\t\t//$this->options = array();\n\t\tif(isset($_POST['usces_option_update'])) {\n\n\t\t\tcheck_admin_referer('admin_setup', 'wc_nonce');\n\n\t\t\t$_POST = $this->stripslashes_deep_post($_POST);\n\t\t\t$this->options['display_mode'] = isset($_POST['display_mode']) ? trim($_POST['display_mode']) : '';\n\t\t\t$this->options['campaign_category'] = empty($_POST['cat']) ? USCES_ITEM_CAT_PARENT_ID : $_POST['cat'];\n\t\t\t$this->options['campaign_privilege'] = isset($_POST['cat_privilege']) ? trim($_POST['cat_privilege']) : '';\n\t\t\t$this->options['privilege_point'] = isset($_POST['point_num']) ? (int)$_POST['point_num'] : '';\n\t\t\t$this->options['privilege_discount'] = isset($_POST['discount_num']) ? (int)$_POST['discount_num'] : '';\n\t\t\t$this->options['company_name'] = isset($_POST['company_name']) ? trim($_POST['company_name']) : '';\n\t\t\t$this->options['zip_code'] = isset($_POST['zip_code']) ? trim($_POST['zip_code']) : '';\n\t\t\t$this->options['address1'] = isset($_POST['address1']) ? trim($_POST['address1']) : '';\n\t\t\t$this->options['address2'] = isset($_POST['address2']) ? trim($_POST['address2']) : '';\n\t\t\t$this->options['tel_number'] = isset($_POST['tel_number']) ? trim($_POST['tel_number']) : '';\n\t\t\t$this->options['fax_number'] = isset($_POST['fax_number']) ? trim($_POST['fax_number']) : '';\n\t\t\t$this->options['order_mail'] = isset($_POST['order_mail']) ? trim($_POST['order_mail']) : '';\n\t\t\t$this->options['inquiry_mail'] = isset($_POST['inquiry_mail']) ? trim($_POST['inquiry_mail']) : '';\n\t\t\t$this->options['sender_mail'] = isset($_POST['sender_mail']) ? trim($_POST['sender_mail']) : '';\n\t\t\t$this->options['error_mail'] = isset($_POST['error_mail']) ? trim($_POST['error_mail']) : '';\n\t\t\t$this->options['postage_privilege'] = isset($_POST['postage_privilege']) ? trim($_POST['postage_privilege']) : '';\n\t\t\t$this->options['purchase_limit'] = isset($_POST['purchase_limit']) ? trim($_POST['purchase_limit']) : '';\n\t\t\t$this->options['point_rate'] = isset($_POST['point_rate']) ? (int)$_POST['point_rate'] : 1;\n\t\t\t$this->options['start_point'] = isset($_POST['start_point']) ? (int)$_POST['start_point'] : '';\n\t\t\t$this->options['shipping_rule'] = isset($_POST['shipping_rule']) ? trim($_POST['shipping_rule']) : '';\n\t\t\t$this->options['tax_mode'] = isset($_POST['tax_mode']) ? trim($_POST['tax_mode']) : 'include';\n\t\t\t$this->options['tax_target'] = isset($_POST['tax_target']) ? trim($_POST['tax_target']) : 'products';\n\t\t\t$this->options['tax_rate'] = isset($_POST['tax_rate']) ? (int)$_POST['tax_rate'] : '';\n\t\t\t$this->options['tax_method'] = isset($_POST['tax_method']) ? trim($_POST['tax_method']) : '';\n\t\t\t$this->options['cod_type'] = isset($this->options['cod_type']) ? $this->options['cod_type'] : 'fix';\n\t\t\t$this->options['transferee'] = isset($_POST['transferee']) ? trim($_POST['transferee']) : '';\n\t\t\t$this->options['copyright'] = isset($_POST['copyright']) ? trim($_POST['copyright']) : '';\n\t\t\t$this->options['membersystem_state'] = isset($_POST['membersystem_state']) ? trim($_POST['membersystem_state']) : '';\n\t\t\t$this->options['membersystem_point'] = isset($_POST['membersystem_point']) ? trim($_POST['membersystem_point']) : '';\n\t\t\t$this->options['point_coverage'] = isset($_POST['point_coverage']) ? (int)$_POST['point_coverage'] : 0;\n\t\t\t$this->options['point_assign'] = isset($_POST['point_assign']) ? (int)$_POST['point_assign'] : 1;//20120919ysk 0000573\n\n\t\t\t$this->options = apply_filters( 'usces_filter_admin_setup_options', $this->options );\n\n\t\t\tupdate_option('usces', $this->options);\n\t\t\t\n\t\t\t$this->action_status = 'success';\n\t\t\t$this->action_message = __('options are updated','usces');\n\n\t\t} else {\n\t\t\t$this->action_status = 'none';\n\t\t\t$this->action_message = '';\n\t\t}\n\t\t\n\t\trequire_once(USCES_PLUGIN_DIR . '/includes/admin_setup.php');\n\n\t}", "title": "" }, { "docid": "ed9eaab5c4bd5eb78963f4e0ba2a1e38", "score": "0.49661186", "text": "public function _adminProcess()\n\t{\t\t\t\n\t\tif(empty($_POST['action']) || $_POST['action'] != 'save')\n\t\t\treturn;\n\t\t\t\n\t\t$data = apply_filters('save_cache_options', array());\n\t\t$data['etag'] = time();\n\n\t\tupdate_option(self::OPTION_NAME, apply_filters('cache_form_process', $data, $this));\n\t\t\n\t\t$this->notice = __('Settings saved', 'xlii-cache');\n\t}", "title": "" }, { "docid": "97a9edca508dd489f6092f356c09fd7b", "score": "0.4966061", "text": "public static function updatePayPalAdvancedSettings($data)\n {\n $data = serialize($data);\n $res = update_option('scm_paypal_advanced_settings',$data);\n\n return $res;\n }", "title": "" }, { "docid": "818dc57cc69152e61a751f8979ff5307", "score": "0.4965534", "text": "public function setAll($options)\n\t{\n\t\tstatic::$options = $options;\n\t}", "title": "" }, { "docid": "ff475837384384016d9c2df19190dc98", "score": "0.4964326", "text": "public function updateRoundRobin() {\n $admin = &Yii::app()->settings;\n $admin->rrId = $admin->rrId + 1;\n $admin->save();\n }", "title": "" }, { "docid": "ae498a0576b173cdb6ba10aae01ee1b1", "score": "0.4956979", "text": "protected function update()\n {\n $this->cfg = [];\n foreach ( $this as $key => $var ){\n if ( $key !== 'cfg' && !\\is_null($var) ){\n if ( \\is_array($var) ){\n foreach ( $var as $k => $v ){\n if ( !isset($this->cfg[$key]) ){\n $this->cfg[$key] = [];\n }\n if ( !\\is_null($v) ){\n $this->cfg[$key][$k] = $v;\n }\n }\n }\n else{\n $this->cfg[$key] = $var;\n }\n }\n }\n return $this;\n }", "title": "" }, { "docid": "845467097bdc7b85a0a97e48be79a5fc", "score": "0.4954705", "text": "private function replace_auto_updates_option() {\n\t\t$old_setting_value = UpdraftPlus_Options::get_updraft_option('updraft_auto_updates');\n\t\tUpdraftPlus_Options::delete_updraft_option('updraft_auto_updates');\n\t\t$new_setting_value = (array) get_site_option('auto_update_plugins', array());\n\t\tif (!empty($old_setting_value)) $new_setting_value[] = basename(UPDRAFTPLUS_DIR).'/updraftplus.php';\n\t\t$new_setting_value = array_unique($new_setting_value);\n\t\tupdate_site_option('auto_update_plugins', $new_setting_value);\n\t}", "title": "" }, { "docid": "f3bb81bfeb97b8440b637e6622a19a60", "score": "0.49520558", "text": "public function save() {\n\t\t$this->settings = array_merge( $this->settings, $this->unsaved_settings );\n\t\t$this->unsaved_settings = array();\n\t\tupdate_option( $this->option_name, $this->settings );\n\t}", "title": "" }, { "docid": "f5ac152b45ba1a0e4d3acbbf377d88e0", "score": "0.4937255", "text": "function campaign_update($campaign_id, $campaign) {\n $request['campaign'] = $campaign;\n return $this->hook(\"/campaigns/{$campaign_id}.xml\", \"campaign\", $request, 'PUT');\n }", "title": "" }, { "docid": "d50d5c5882d0fc76c023ad2cc9546103", "score": "0.49370578", "text": "public function update($id, Request $request){\n\n $campaignData = $request->all();\n\n \n\n //update campaign section data\n\n Campaign::find($id)->update($campaignData);\n\n //store status message\n\n Session::flash('success_msg','Campaign section updated successfully');\n\n return redirect()->route('admin.campaign_section.index');\n\n\n\n }", "title": "" }, { "docid": "3b62a4f5ce033d6b9f6cbbc0b407c5d8", "score": "0.49334306", "text": "public static function burst_all_cache()\n {\n $optin_ids = self::get_optin_campaign_ids();\n\n foreach ($optin_ids as $optin_id) {\n self::burst_cache($optin_id);\n }\n }", "title": "" }, { "docid": "cdc929215eb4f73e452a5135f9f0febd", "score": "0.49305806", "text": "function syndicate_out_update_settings( $currentSettings ) {\n\n\t\t$newSettings = $currentSettings;\n\t\tswitch ( $currentSettings['options_version'] ) {\n\t\t\tcase 0: case 1: # Upgrades version 0 or 1 to version 2\n\t\t\t\tunset( $newSettings['options_version'] );\n\t\t\t\t$newSettings['group'][0] = $newSettings;\n\t\t\tcase 2: # Upgrades from version 2 to version 3; adds authenticated and api\n\t\t\t\tif ( isset( $newSettings['group'] ) && is_array( $newSettings['group'] ) ) {\n\t\t\t\t\tforeach ( $newSettings['group'] AS $groupId => $groupArray ) {\n\t\t\t\t\t\tif ( isset( $groupArray['servers'] ) && is_array( $groupArray['servers'] ) ) {\n\t\t\t\t\t\t\tforeach ( $groupArray['servers'] AS $serverId => $serverDetails ) {\n\t\t\t\t\t\t\t\tif ( ! isset( $serverDetails['authenticated'] ) ) {\n\t\t\t\t\t\t\t\t\t$newSettings['group'][$groupId]['servers'][$serverId]['authenticated'] = null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ( ! isset( $serverDetails['api'] ) ) {\n\t\t\t\t\t\t\t\t\t$newSettings['group'][$groupId]['servers'][$serverId]['api'] = null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\t$newSettings['options_version'] = SO_OPTIONS_VERSION;\n\t\tupdate_option( 'so_options', $newSettings );\n\n\t}", "title": "" }, { "docid": "10c7b99f31f03e4aaa10f5249a1e1845", "score": "0.49282336", "text": "public function updateProperties(){\n \t$this->state = $this->states[$this->values->state];\n \t$this->type = $this->state->types[$this->values->type];\n \t$this->rates = $this->type->rates;\n \t$this->endorsements = $this->type->endorsements;\n \t//Update gov-record / deed / mort\n \t$this->values->deed = $this->type->deed;\n \t$this->values->mortgage = $this->type->mortgage;\n \t//NJ Has differend deed/mort on 0 value\n \tif($this->values->loanAmount == 0 && $this->values->state == 'NJ'){\n\t\t\t$this->values->deed = 0;\n\t\t\t$this->values->mortgage = 80;\n\t\t}\n\t\t$this->values->governmentRecording = $this->values->deed+$this->values->mortgage;\n }", "title": "" }, { "docid": "a1bd2c50a7527184e98df65c25a18ac7", "score": "0.49078453", "text": "private function setOptions(): void\n {\n if ($this->secure === null) {\n $this->secure = config('short-url.enforce_https');\n }\n\n if ($this->secure) {\n $this->destinationUrl = str_replace('http://', 'https://', $this->destinationUrl);\n }\n\n if ($this->forwardQueryParams === null) {\n $this->forwardQueryParams = config('short-url.forward_query_params') ?? false;\n }\n\n if (! $this->urlKey) {\n $this->urlKey = $this->keyGenerator->generateKeyUsing($this->generateKeyUsing);\n }\n\n if (! $this->activateAt) {\n $this->activateAt = now();\n }\n\n $this->setTrackingOptions();\n }", "title": "" }, { "docid": "7b9517caa23b34a6df443b477cdc0692", "score": "0.49041146", "text": "function advanced_cost_management_settings(){ //FixIn: 6.0.1\r\n\r\n if ( isset( $_POST['checking_form_submit'] ) ) {\r\n//debuge($_POST);\r\n $booking_forms_extended = get_bk_option( 'booking_forms_extended');\r\n if ($booking_forms_extended !== false) {\r\n if ( is_serialized( $booking_forms_extended ) ) \r\n $booking_forms_extended = unserialize($booking_forms_extended); \r\n $booking_forms_extended[]=array('name'=>'standard','form'=>'');\r\n } else \r\n $booking_forms_extended = array(array('name'=>'standard','form'=>''));\r\n\r\n foreach ($booking_forms_extended as $bk_form_ext) {\r\n\r\n \r\n if ( $_POST['advanced_form_submit_name'] !== $bk_form_ext['name'] )\r\n continue;\r\n \r\n $booking_update_fields = $this->get_fields_from_booking_form($bk_form_ext['form']);\r\n\r\n if ($bk_form_ext['name'] == 'standard') {\r\n $field_sufix = '';\r\n } else {\r\n $field_sufix = $bk_form_ext['name'];\r\n $field_sufix = '__' . $field_sufix;\r\n }\r\n $field_sufix = str_replace(' ', '', $field_sufix); $field_sufix = str_replace('\"', '', $field_sufix); $field_sufix = str_replace(\"'\" , '', $field_sufix);\r\n//debuge($field_sufix);\r\n if ($booking_update_fields !== false) {\r\n\r\n $booking_additional_cost_value = array(); // General main variable for serilise and save it\r\n\r\n for ($i = 0; $i < $booking_update_fields[0]; $i++) {\r\n\r\n if ( ($booking_update_fields[1][1][$i] == 'checkbox') || ($booking_update_fields[1][1][$i] == 'checkbox*') || ($booking_update_fields[1][1][$i] == 'select') || ($booking_update_fields[1][1][$i] == 'select*') ){ // Right now working only with select boxes\r\n\r\n $field_update_name = trim($booking_update_fields[1][2][$i]);\r\n $field_update_values = trim($booking_update_fields[1][4][$i]);\r\n\r\n if ( ! isset($booking_additional_cost_value[$field_update_name]) )\r\n $booking_additional_cost_value[$field_update_name] = array();\r\n\r\n $fields_update_count_values = preg_match_all( '%\\s*\"[a-zA-Z0-9.:\\s,\\[\\]/\\\\-_!@&-=+?~]{0,}\"\\s*%', $field_update_values, $fields_update_matches_values) ;\r\n//debuge('$fields_update_matches_values',$fields_update_count_values);\r\n//debuge('------- $fields_update_matches_values',$fields_update_matches_values);\r\n for ($j = 0; $j < $fields_update_count_values; $j++) {\r\n $field_update_orig_value = trim(str_replace('\"','',$fields_update_matches_values[0][$j]));\r\n $field_update_orig_value = explode('@@',$field_update_orig_value); \r\n $field_update_orig_value = $field_update_orig_value[ ( count($field_update_orig_value) - 1 ) ]; \r\n $field_update_orig_value = trim(str_replace(' ','_',$field_update_orig_value));\r\n//debuge('$field_update_orig_value',$field_update_orig_value);\r\n if ($field_update_orig_value == '') // Its simple checkbox set 0 index\r\n $booking_additional_cost_value[ $field_update_name ]['checkbox'] = $_POST['additional_cost_value_' . $field_update_name . $field_update_orig_value . $field_sufix ] ;\r\n else\r\n $booking_additional_cost_value[ $field_update_name ][ $field_update_orig_value ] = $_POST['additional_cost_value_' . $field_update_name . $field_update_orig_value . $field_sufix ] ;\r\n//debuge('$booking_additional_cost_value', $booking_additional_cost_value); \r\n }\r\n }\r\n }\r\n//debuge('Its fin:','booking_advanced_costs_values_for' . $bk_form_ext['name'],$booking_additional_cost_value);\r\n if ($bk_form_ext['name'] == 'standard') {\r\n update_bk_option( 'booking_advanced_costs_values' , serialize($booking_additional_cost_value) );\r\n }else {\r\n update_bk_option( 'booking_advanced_costs_values_for' . $bk_form_ext['name'] , serialize($booking_additional_cost_value) );\r\n }\r\n }\r\n\r\n\r\n } // End FOR\r\n\r\n if (isset( $_POST['booking_advanced_costs_calc_fixed_cost_with_procents'] )) \r\n update_bk_option( 'booking_advanced_costs_calc_fixed_cost_with_procents' , 'On' );\r\n else \r\n update_bk_option( 'booking_advanced_costs_calc_fixed_cost_with_procents' , 'Off' );\r\n }\r\n $booking_advanced_costs_calc_fixed_cost_with_procents = get_bk_option( 'booking_advanced_costs_calc_fixed_cost_with_procents' );\r\n\r\n $booking_forms_extended = get_bk_option( 'booking_forms_extended');\r\n if ($booking_forms_extended !== false) {\r\n if ( is_serialized( $booking_forms_extended ) ) $booking_forms_extended = unserialize($booking_forms_extended);\r\n $booking_forms_extended[] = array( 'name' => 'standard' , 'form' => '' );\r\n } else $booking_forms_extended = array( array( 'name' => 'standard' , 'form'=>'' ) );\r\n ?>\r\n <div class=\"booking-submenu-tab-container\" style=\"margin:-12px 0 20px 0;padding:5px;\">\r\n <div class=\"nav-tabs booking-submenu-tab-insidecontainer wpdevbk \" style=\"margin:5px 0 0;\">\r\n <?php //FixIn: 5.4.5.5\r\n $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin');\r\n if ( ( $is_can ) || ( WP_BK_CUSTOM_FORMS_FOR_REGULAR_USERS ) ) {\r\n ?><div style=\"margin:0 5px 5px;float: left; height: auto;\"> \r\n <label class=\"wpbc_inline_legend\" for=\"select_booking_form\"><?php _e('Custom Form' ,'booking'); ?></label>\r\n <select class=\"wpbc_stick_right\" style=\"float:left;margin:0;\" \r\n name=\"select_booking_form\" id=\"select_booking_form\" onchange=\"javascript:changeBookingFormForAdvancedCost(this);\">\r\n\r\n <option style=\"padding:3px;border-bottom: 1px solid #ccc;\" value=\"form_divstandard\" <?php if ( (! isset($_GET['booking_form'])) || ($_GET['booking_form'] == 'standard') ) { echo 'selected=\"selected\"'; } ?> ><?php _e('Standard' ,'booking'); ?></option>\r\n\r\n <optgroup label=\"<?php _e('Custom Form' ,'booking'); ?>\">\r\n <?php\r\n foreach ($booking_forms_extended as $value) { \r\n if ($value['name']=='standard') continue;\r\n $div_form_name = 'form_div' . $value['name'];\r\n $div_form_name = str_replace(' ', '', $div_form_name);\r\n $div_form_name = str_replace('\"', '', $div_form_name);\r\n $div_form_name = str_replace(\"'\" , '', $div_form_name); \r\n ?>\r\n <option value=\"<?php echo $div_form_name; ?>\"\r\n <?php if ( (isset($_GET['booking_form']) ) && ($_GET['booking_form'] == $value['name'] ) ) { echo 'selected=\"selected\"'; } ?>\r\n <?php if ( (isset($_POST['advanced_form_submit_name']) ) && ( $_POST['advanced_form_submit_name'] == $value['name'] ) ) { echo 'selected=\"selected\"'; } ?>\r\n ><?php echo $value['name']; ?></option>\r\n <?php } ?>\r\n </optgroup>\r\n </select>\r\n <a data-original-title=\"<?php _e('Load selected booking form'); ?>\" rel=\"tooltip\" \r\n class=\"tooltip_top button button-secondary wpbc_stick_left\" style=\"float:left;\"\r\n onclick=\"javascript:changeBookingFormForAdvancedCost(document.getElementById('select_booking_form'));\" ><?php _e('Load' ,'booking'); ?></a>\r\n </label> \r\n </div> \r\n <?php } ?> \r\n <button class=\"button-primary button\" style=\"float: right;font-size: 12px;margin: 0 5px 0 0;\"\r\n onclick=\"javascript: wpbc_submit_advanced_form();\"\r\n ><?php _e('Save Changes' ,'booking'); ?></button> \r\n <div class=\"clear\" style=\"height:0px;\"></div>\r\n </div>\r\n </div>\r\n\r\n <div class='meta-box'> \r\n <div <?php $my_close_open_win_id = 'bk_settings_costs_advanced_cost_management'; ?> id=\"<?php echo $my_close_open_win_id; ?>\" class=\"postbox <?php if ( '1' == get_user_option( 'booking_win_' . $my_close_open_win_id ) ) echo 'closed'; ?>\" > <div title=\"<?php _e('Click to toggle' ,'booking'); ?>\" class=\"handlediv\" onclick=\"javascript:verify_window_opening(<?php echo get_bk_current_user_id(); ?>, '<?php echo $my_close_open_win_id; ?>');\"><br></div>\r\n <h3 class='hndle'><span><?php _e('Advanced cost management' ,'booking'); ?></span></h3> <div class=\"inside\">\r\n\r\n <form name=\"advanced_costs_form\" action=\"\" method=\"post\" id=\"advanced_costs_form\" >\r\n <input type=\"hidden\" name=\"checking_form_submit\" id=\"checking_form_submit\" value=\"1\" />\r\n <input type=\"hidden\" name=\"advanced_form_submit_name\" id=\"advanced_form_submit_name\" value=\"standard\" />\r\n\r\n <?php\r\n foreach ($booking_forms_extended as $bk_form_ext) { \r\n $div_form_name = 'form_div' . $bk_form_ext['name']; \r\n $div_form_name = str_replace(' ', '', $div_form_name); \r\n $div_form_name = str_replace('\"', '', $div_form_name); \r\n $div_form_name = str_replace(\"'\" , '', $div_form_name);\r\n \r\n $mystyle = 'display:none;';\r\n \r\n if ( isset( $_POST['advanced_form_submit_name'] ) ) {\r\n if ( $_POST['advanced_form_submit_name'] == $bk_form_ext['name'] ) {\r\n $mystyle = ''; \r\n }\r\n } else if ($bk_form_ext['name'] == 'standard') {\r\n $mystyle = ''; \r\n }\r\n\r\n echo '<div style=\"'.$mystyle.'\" class=\"wpdev_forms_div\" id=\"'.$div_form_name.'\">';\r\n ?><div class=\"wpbc-help-message wpbc_season_filter_hedear_section\" style=\"text-transform: capitalize;\"><?php \r\n _e('Configure Additional cost for the form' ,'booking'); ?> \r\n <span class=\"wpbc_label_available\"><?php echo $bk_form_ext['name']; ?></span> \r\n </div><?php\r\n $booking_fields = $this->get_fields_from_booking_form($bk_form_ext['form']);\r\n\r\n if ($booking_fields !== false) {\r\n $fields_count = $booking_fields[0] ;\r\n $fields_matches = $booking_fields[1] ;\r\n } else { $fields_count = 0; }\r\n ?>\r\n <table class=\"form-table settings-table0\">\r\n <tbody><?php\r\n\r\n if ($bk_form_ext['name'] == 'standard') {\r\n $field__values = get_bk_option( 'booking_advanced_costs_values' );\r\n if ( $field__values !== false ) {\r\n if ( is_serialized( $field__values ) ) $field__values_unserilize = unserialize($field__values);\r\n else $field__values_unserilize = $field__values;\r\n }\r\n $field_sufix = '';\r\n } else {\r\n $field__values = get_bk_option( 'booking_advanced_costs_values_for' . $bk_form_ext['name'] );\r\n if ( $field__values !== false ) {\r\n if ( is_serialized( $field__values ) ) $field__values_unserilize = unserialize($field__values);\r\n else $field__values_unserilize = $field__values;\r\n }\r\n $field_sufix = $bk_form_ext['name'];\r\n $field_sufix = '__' . $field_sufix;\r\n }\r\n\r\n $field_sufix = str_replace(' ', '', $field_sufix);\r\n $field_sufix = str_replace('\"', '', $field_sufix);\r\n $field_sufix = str_replace(\"'\" , '', $field_sufix);\r\n\r\n for ($i = 0; $i < $fields_count; $i++) {\r\n\r\n if ( ($fields_matches[1][$i] == 'checkbox*') || ($fields_matches[1][$i] == 'checkbox') || ($fields_matches[1][$i] == 'select') || ($fields_matches[1][$i] == 'select*') ){ // Right now working only with select boxes\r\n\r\n $field__name = trim($fields_matches[2][$i]);\r\n $field__orig_value = trim($fields_matches[4][$i]);\r\n $fields_count_values = preg_match_all( '%\\s*\"[a-zA-Z0-9.:\\s$,\\[\\]/\\\\-_!@&-=+?~]{0,}\"\\s*%', $field__orig_value, $fields_matches_values) ;\r\n ?> <tr valign=\"top\" style=\"border-top:1px solid #eee;\">\r\n <th scope=\"row\">\r\n <label for=\"paypal_is_active\" ><?php _e('Additional cost for' ,'booking'); echo ' <span style=\"color:#0d5;\">' , $fields_matches[2][$i], '</span>'; ?>:</label>\r\n </th>\r\n <td><?php\r\n for ($j = 0; $j < $fields_count_values; $j++) { ?>\r\n <?php\r\n $field__value = '100%';\r\n $field_orig_val = trim(str_replace('\"','',$fields_matches_values[0][$j]));\r\n $field_orig_val = explode('@@',$field_orig_val); \r\n $field_orig_val = $field_orig_val[ ( count($field_orig_val) - 1 ) ];\r\n $field_orig_val = trim(str_replace(' ','_',$field_orig_val));\r\n\r\n if ( ($field__values) !== false ) { // Default\r\n\r\n if ($field_orig_val =='') {\r\n\r\n if ( isset($field__values_unserilize[ $field__name ]) )\r\n if ( isset($field__values_unserilize[ $field__name ][ 'checkbox' ]) )\r\n $field__value = $field__values_unserilize[ $field__name ][ 'checkbox' ];\r\n\r\n } else {\r\n\r\n if ( isset($field__values_unserilize[ $field__name ]) )\r\n if ( isset($field__values_unserilize[ $field__name ][ $field_orig_val ]) )\r\n $field__value = $field__values_unserilize[ $field__name ][ $field_orig_val ];\r\n }\r\n }\r\n ?>\r\n <span style=\"font-weight:bold;font-size:13px;\">\r\n <?php echo $field_orig_val ; ?> \r\n </span>\r\n <span style=\"font-weight:bold;\"> = </span>\r\n <input value='<?php echo $field__value; ?>' style=\"width: 100px;text-align:left;\" type=\"text\"\r\n name=\"additional_cost_value_<?php echo $field__name, $field_orig_val, $field_sufix; ?>\"\r\n id=\"additional_cost_value_<?php echo $field__name, $field_orig_val, $field_sufix; ?>\" /><br/>\r\n <?php } ?> \r\n </td>\r\n <?php /* // Show help info about usage of cost hints for the additional costs ?>\r\n <td style=\"text-aling:left;\">\r\n <div class=\"wpbc-help-message\" style=\"margin:0px;float:left;\">\r\n <code style=\"\">[<?php echo trim($fields_matches[2][$i]); ?>_hint]</code>\r\n <span style=\"font-style: italic;font-size:0.9em;\"> - <?php \r\n printf( __( 'use this shortcode in the %sbooking form%s to show additional cost of this selected option.','booking'),\r\n '<a href=\"' . esc_url( admin_url( add_query_arg( array( 'page' => WPDEV_BK_PLUGIN_DIRNAME . '/' . WPDEV_BK_PLUGIN_FILENAME . 'wpdev-booking-option',\r\n 'tab' => 'form' ), 'admin.php' ) ) ) . '\">', '</a>' );\r\n \r\n echo '<div style=\"margin-top:5px;\"><strong>'; _e('Note' ,'booking'); echo ':</strong> ';\r\n \r\n printf( __('If you set additional cost as percent for specific option, then its will show cost for each seperated options as percent from the %stotal cost%s and not from the original cost (excluding fixed additional costs).','booking'),\r\n '<strong>', '</strong>'\r\n );\r\n echo '</div>';\r\n ?>\r\n </span>\r\n </div>\r\n </td><?php /**/ ?>\r\n </tr>\r\n <?php\r\n } //End if select\r\n } // END FOREACH\r\n ?>\r\n </tbody>\r\n </table>\r\n\r\n <?php \r\n echo \"</div>\"; \r\n } ?>\r\n <div class=\"clear\" style=\"height:1px;margin:20px 0 10px;border-top:1px solid #ccc;\"></div>\r\n <label for=\"booking_advanced_costs_calc_fixed_cost_with_procents\">\r\n <input <?php if ($booking_advanced_costs_calc_fixed_cost_with_procents == 'On') echo \"checked\";/**/ ?> value=\"<?php echo $booking_advanced_costs_calc_fixed_cost_with_procents; ?>\" name=\"booking_advanced_costs_calc_fixed_cost_with_procents\" id=\"booking_advanced_costs_calc_fixed_cost_with_procents\" type=\"checkbox\" style=\"margin:-3px 3px 0 0;\" />\r\n <?php _e('Check this box if you want that specific additional cost, which configured as percentage for some option, apply to other additional fixed costs and not only to original booking cost.' ,'booking');?>\r\n </label>\r\n\r\n\r\n <div class=\"wpbc-help-message\" style=\"\"><strong><?php _e('Note' ,'booking'); ?>. </strong>\r\n <?php \r\n printf(__('Configure additional cost, which depend from selection of selectbox(es) and checkbox(es).' ,'booking')\r\n );\r\n echo ' ';\r\n printf(__('Fields %s(selectbox(es) and checkbox(es))%s are shown here automatically if they exist in the %sbooking form%s.' ,'booking')\r\n ,'<em>', '</em>'\r\n , '<em><a href=\"admin.php?page=' . WPDEV_BK_PLUGIN_DIRNAME . '/'. WPDEV_BK_PLUGIN_FILENAME. 'wpdev-booking-option&tab=form\" >','</a></em>' \r\n ); \r\n ?>\r\n <hr/>\r\n <strong><?php \r\n _e('Enter additional cost in formats:' ,'booking'); ?></strong>\r\n <p class=\"description\"><?php printf(__('For example, if the original cost of the booking is %s, then after applying additional costs the total cost will be folowing' ,'booking'), '<code>$80</code>');?>:</p><?php\r\n ?><ul style=\"list-style: disc outside none;margin: 0 15px;\">\r\n <li>\r\n <strong><?php _e('Enter fixed cost' ,'booking');?></strong>:<?php printf(__('%s, then total cost will be %s' ,'booking'), '<code>55</code>', '<code>$80 + $55 = $135</code>');?>\r\n </li>\r\n <li>\r\n <strong><?php _e('Enter percentage of the entire booking' ,'booking');?></strong>:<?php printf(__('%s, then total cost will be %s' ,'booking'), '<code>200%</code>', '<code>$80 * 200% = $160</code>'); ?>\r\n </li>\r\n <li>\r\n <strong><?php _e('Enter fixed amount for each selected day' ,'booking');?></strong>:<?php printf(__('%s, then total cost will be (if selected 3 days) %s' ,'booking'), '<code>50/day</code> ' .__('or' ,'booking') . '<code>50/night</code>' , '<code>3 * $80 + 3 * $50 = $390</code>'); ?> \r\n </li>\r\n <li>\r\n <strong><?php _e('Enter percentage as additional sum, which is based only on original cost and not full sum' ,'booking');?></strong>:<?php printf(__('%s, then total cost will be %s' ,'booking'), '<code>+75%</code>', '<code>80 + 80 * 75% = $140</code>'); ?>\r\n </li> \r\n </ul> \r\n <hr />\r\n <?php printf(__('Please check more info about configuration of this cost settings on this %spage%s.' ,'booking')\r\n , '<em><a href=\"http://wpbookingcalendar.com/faq/\" >','</a></em>' \r\n ); \r\n ?>\r\n </div>\r\n <div class=\"clear\" style=\"height:10px;\"></div>\r\n <button class=\"button-primary button\" style=\"float: right;font-size: 12px;margin: 0 5px 0 0;\"\r\n onclick=\"javascript: wpbc_submit_advanced_form();\"\r\n ><?php _e('Save Changes' ,'booking'); ?></button>\r\n <script type=\"text/javascript\">\r\n function wpbc_submit_advanced_form(){\r\n \r\n var selectObj = document.getElementById('select_booking_form');\r\n var idx = selectObj.selectedIndex; \r\n var my_form = selectObj.options[idx].value;\r\n my_form = my_form.substr(8);\r\n jQuery('#advanced_form_submit_name').val( my_form ); \r\n jQuery( \"div.wpdev_forms_div:hidden\" ).remove(); \r\n document.forms['advanced_costs_form'].submit();\r\n }\r\n </script>\r\n </form>\r\n\r\n </div> </div> </div>\r\n <?php\r\n }", "title": "" }, { "docid": "23a4c4d30c4d0a28fc67e8e2375fdc76", "score": "0.49028552", "text": "public function update(SettingsFormRequest $request)\n {\n $id = $request->input('id');\n $setting = \\App\\Settings::find($id);\n $setting->site_title = $request->input('site_title');\n $setting->site_address_line_1 = $request->input('site_address_line_1');\n $setting->site_address_line_2 = $request->input('site_address_line_2');\n $setting->site_email = $request->input('site_email');\n $setting->site_email2 = $request->input('site_email2');\n $setting->site_phone = $request->input('site_phone');\n $setting->site_phone2 = $request->input('site_phone2');\n $setting->latitude = $request->input('latitude');\n $setting->longitude = $request->input('longitude');\n $setting->site_url = $request->input('site_url');\n $setting->facebook = $request->input('facebook');\n $setting->twitter = $request->input('twitter');\n $setting->linkedin = $request->input('linkedin');\n $setting->googleplus = $request->input('googleplus');\n $setting->payment_mode = $request->input('payment_mode');\n $setting->business_hours = $request->input('business_hours');\n $setting->site_header_top = $request->input('site_header_top');\n $setting->site_header = $request->input('site_header');\n $setting->site_footer = $request->input('site_footer');\n $setting->is_site_live = $request->has('is_site_live') ? '1' : '0';\n $setting->sale_policies = $request->input('sale_policies');\n $setting->is_sale_policies = $request->has('is_sale_policies') ? '1' : '0';\n $setting->rental_policies = $request->input('rental_policies');\n $setting->is_rental_policies = $request->has('is_rental_policies') ? '1' : '0';\n $setting->save();\n @$message .= 'Settings successfully updated.<br/>';\n $fileprefix = 'site-avatar-';\n $filename = str_replace('tmp/', '', $request->input('tmp_img_path_avatar'));\n if (is_file('tmp/' . $filename)) {\n \\File::move('tmp/' . $filename, 'admin/img/' . $fileprefix . $filename);\n $setting->avatar = $fileprefix . $filename;\n $setting->save();\n @$message .= 'Avatar picture saved.<br/>';\n } //is_file('tmp/' . $filename)\n $fileprefix = 'site-logo-';\n $filename = str_replace('tmp/', '', $request->input('tmp_img_path_logo_dark'));\n if (is_file('tmp/' . $filename)) {\n \\File::move('tmp/' . $filename, 'img/' . $fileprefix . $filename);\n $setting->logo_dark = $fileprefix . $filename;\n $setting->save();\n @$message .= 'Dark Logo picture saved.<br/>';\n } //is_file('tmp/' . $filename)\n $filename = str_replace('tmp/', '', $request->input('tmp_img_path_logo_light'));\n if (is_file('tmp/' . $filename)) {\n \\File::move('tmp/' . $filename, 'img/' . $fileprefix . $filename);\n $setting->logo_light = $fileprefix . $filename;\n $setting->save();\n @$message .= 'Light Logo picture saved.<br/>';\n } //is_file('tmp/' . $filename)\n return redirect('/admin/settings')->withMessage($message);\n }", "title": "" }, { "docid": "946cef0f06d5edee5f36e00b32aab970", "score": "0.48970914", "text": "function m_setting(){\n\n\tif (sanitize_text_field( $_POST['api_key'] ) == \"\"){\n\t\tif( sanitize_text_field($_GET['action']) == \"update\"){\n\t\tdelete_option(\"mapsian_maps_api_key\");\n\t\t}\n\t}\n\telse {\n\t\tif( sanitize_text_field( $_POST['api_key'] ) ){\n\t\tupdate_option(\"mapsian_maps_api_key\", sanitize_text_field($_POST['api_key']) );\n\t\t}\n\t}\n\n\tif ( sanitize_text_field($_POST['language']) == \"default\"){\n\t\tif( sanitize_text_field($_GET['action']) == \"update\"){\n\t\t\tdelete_option(\"mapsian_maps_language\");\n\t\t}\n\t}\n\telse {\n\t\tif( sanitize_text_field($_POST['language']) ){\n\t\tupdate_option(\"mapsian_maps_language\", sanitize_text_field($_POST['language']) );\n\t\t}\n\t}\n\n?>\n\n<h2><?php echo _e('Mapsian General settings', 'mapsian');?></h2>\n<form method=\"post\" action=\"admin.php?page=m_setting&action=update\">\n\n<div style=\"margin-top:30px\">\n\t<ul>\n\t\t<li><h3><?php echo _e('Google maps API Key', 'mapsian');?></h3></li>\n\t\t<li><input type=\"text\" name=\"api_key\" value=\"<?php echo get_option('mapsian_maps_api_key');?>\" style=\"width:60%\"></li>\n\t\t<li style=\"font-style:italic; color:gray\"><?php echo _e('If you have Google maps API key, insert this field.', 'mapsian');?> <a href=\"https://developers.google.com/maps/documentation/javascript/tutorial?hl=en\" target=\"_blank\"><?php echo _e('What is Google maps API key?', 'mapsian');?></a><br>\n\t\t\t<?php echo _e(\"All maps will not appear If it's wrong or not correct, so please insert key correctly.\", \"mapsian\");?></li>\n\t\t<li><input type=\"submit\" class=\"button button-primary\" value=\"Add key\"></li>\n\t</ul>\n</div>\n\n<div style=\"margin-top:30px\">\n\t<ul>\n\t\t<li><h3><?php echo _e('Google maps Language setting', 'mapsian');?></h3></li>\n\t\t<li>\n\t\t\t<select name=\"language\">\n\t\t\t\t<option value=\"default\">Default</option>\n\t\t\t\t<option value=\"ar\">ARABIC</option>\n\t\t\t\t<option value=\"eu\">BASQUE</option>\n\t\t\t\t<option value=\"bg\">BULGARIAN</option>\n\t\t\t\t<option value=\"bn\">BENGALI</option>\n\t\t\t\t<option value=\"ca\">CATALAN</option>\n\t\t\t\t<option value=\"cs\">CZECH</option>\n\t\t\t\t<option value=\"da\">DANISH</option>\n\t\t\t\t<option value=\"de\">GERMAN</option>\n\t\t\t\t<option value=\"el\">GREEK</option>\n\t\t\t\t<option value=\"en\">ENGLISH</option>\n\t\t\t\t<option value=\"en-AU\">ENGLISH (AUSTRALIAN)</option>\n\t\t\t\t<option value=\"en-GB\">ENGLISH (GREAT BRITAIN)</option>\n\t\t\t\t<option value=\"es\">SPANISH</option>\n\t\t\t\t<option value=\"eu\">BASQUE</option>\n\t\t\t\t<option value=\"fa\">FARSI</option>\n\t\t\t\t<option value=\"fi\">FINNISH</option>\n\t\t\t\t<option value=\"fil\">FILIPINO</option>\n\t\t\t\t<option value=\"fr\">FRENCH</option>\n\t\t\t\t<option value=\"gl\">GALICIAN</option>\n\t\t\t\t<option value=\"gu\">GUJARATI</option>\n\t\t\t\t<option value=\"hi\">HINDI</option>\n\t\t\t\t<option value=\"hr\">CROATIAN</option>\n\t\t\t\t<option value=\"hu\">HUNGARIAN</option>\n\t\t\t\t<option value=\"id\">INDONESIAN</option>\n\t\t\t\t<option value=\"it\">ITALIAN</option>\n\t\t\t\t<option value=\"iw\">HEBREW</option>\n\t\t\t\t<option value=\"ja\">JAPANESE</option>\n\t\t\t\t<option value=\"kn\">KANNADA</option>\n\t\t\t\t<option value=\"ko\">KOREAN</option>\n\t\t\t\t<option value=\"lt\">LITHUANIAN</option>\n\t\t\t\t<option value=\"lv\">LATVIAN</option>\n\t\t\t\t<option value=\"ml\">MALAYALAM</option>\n\t\t\t\t<option value=\"mr\">MARATHI</option>\n\t\t\t\t<option value=\"nl\">DUTCH</option>\n<!--\t\t\t<option value=\"nn\">NORWEGIAN NYNORSK</option>-->\n\t\t\t\t<option value=\"no\">NORWEGIAN</option>\n<!--\t\t\t<option value=\"or\">ORIYA</option>-->\n\t\t\t\t<option value=\"pl\">POLISH</option>\n\t\t\t\t<option value=\"pt\">PORTUGUESE</option>\n\t\t\t\t<option value=\"pt-BR\">PORTUGUESE (BRAZIL)</option>\n\t\t\t\t<option value=\"pt-PT\">PORTUGUESE (PORTUGAL)</option>\n\t\t\t\t<option value=\"ro\">ROMANIAN</option>\n\t\t\t\t<option value=\"ru\">RUSSIAN</option>\n\t\t\t\t<option value=\"sk\">SLOVAK</option>\n\t\t\t\t<option value=\"sl\">SLOVENIAN</option>\n\t\t\t\t<option value=\"sr\">SERBIAN</option>\n\t\t\t\t<option value=\"sv\">SWEDISH</option>\n\t\t\t\t<option value=\"tl\">TAGALOG</option>\n\t\t\t\t<option value=\"ta\">TAMIL</option>\n\t\t\t\t<option value=\"te\">TELUGU</option>\n\t\t\t\t<option value=\"th\">THAI</option>\n\t\t\t\t<option value=\"tr\">TURKISH</option>\n\t\t\t\t<option value=\"uk\">UKRAINIAN</option>\n\t\t\t\t<option value=\"vi\">VIETNAMESE</option>\n\t\t\t\t<opiton value=\"zh-CN\">CHINESE (SIMPLIFIED)</option>\n\t\t\t\t<option value=\"zh-TW\">CHINESE (TRADITIONAL)</option>\n\t\t\t</select>\n\t\t</li>\n<script>\n\tvar language = \"<?php echo get_option('mapsian_maps_language');?>\";\n\n\tif(language){\n\tjQuery(\"[name=language]\").val(language);\n\t}\n\n</script>\n\t\t<li style=\"font-style:italic; color:gray\"><?php echo _e('It makes map language by you selected.', 'mapsian');?><br><?php echo _e(\"If you select 'Default', The map language will setting automatically.\", \"mapsian\");?></li>\n\t\t<li><input type=\"submit\" class=\"button button-primary\" value=\"<?php echo _e('Add Language', 'mapsian');?>\"></li>\n\t</ul>\n</div>\n</form>\n<?php\n\n}", "title": "" }, { "docid": "33a626d0449d89720199304b26a216bb", "score": "0.48941374", "text": "public function settings()\n {\n // Process any module settings you asked for.\n $apiKey = $this->getSanitizer()->getString('apiKey');\n\n if ($this->module->enabled != 0) {\n if ($apiKey == '')\n throw new InvalidArgumentException(__('Missing API Key'), 'apiKey');\n }\n\n $this->module->settings['apiKey'] = $apiKey;\n\n // Minimum duration\n $this->module->settings['minDuration'] = $this->getSanitizer()->getInt('minDuration');\n\n // Validate that the default duration isn't lower that the min duration\n if ($this->module->settings['minDuration'] > $this->module->defaultDuration)\n throw new InvalidArgumentException(__('Please set your default duration higher than your minimum'), 'defaultDuration');\n\n // Should we reset all widgets?\n if ($this->getSanitizer()->getCheckbox('resetAllWidgets') == 1) {\n $this->getStore()->update('UPDATE `widget` SET duration = :duration WHERE type = :type AND useDuration = 1', [\n 'type' => 'googletraffic',\n 'duration' => $this->module->settings['minDuration']\n ]);\n\n // Dump the cache to force a re-cache of all the API keys\n $this->dumpCacheForModule();\n }\n }", "title": "" }, { "docid": "b0386a5b888495b2240645394c34f201", "score": "0.4893437", "text": "public function db_count_update_all() {\n\n\t\t\t// Update form submit count\n\t\t\tglobal $wpdb;\n\n\t\t\t// Get all forms\n\t\t\t$sql = sprintf(\"SELECT id, count_stat_view,count_stat_save,count_stat_submit,count_submit,count_submit_unread FROM %s\", $this->table_name);\n\t\t\t$forms = $wpdb->get_results($sql, 'ARRAY_A');\n\n\t\t\tforeach($forms as $form) {\n\n\t\t\t\t$this->id = $form['id'];\n\n\t\t\t\t// Update\n\t\t\t\tself::db_count_update($form);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "933a28ac08a44ec1bd23299171b2a66a", "score": "0.48882896", "text": "public function update_app_settings( $settings ) {\r\n\t\tupdate_option( 'gravityformsaddon_' . $this->_slug . '_app_settings', $settings );\r\n\t}", "title": "" }, { "docid": "2bfe2aea72b7d7daf2502e8abb1b6989", "score": "0.4886606", "text": "public function safeUp()\n\t{\n\n $rows = craft()->db->createCommand()\n ->select('*')\n ->from('widgets')\n ->where('type=:type', array(':type'=>'Analytics_Reports'))\n ->queryAll();\n\n if($rows)\n {\n foreach($rows as $row)\n {\n $settings = JsonHelper::decode($row['settings']);\n\n if(!empty($settings['type']))\n {\n switch($settings['type'])\n {\n case 'visits':\n $newSettings = array(\n 'menu' => \"audienceOverview\",\n 'dimension' => \"\",\n 'metric' => 'ga:sessions',\n 'chart' => \"area\",\n 'period' => \"month\",\n );\n break;\n\n case 'geo':\n $newSettings = array(\n \"menu\" => \"location\",\n \"dimension\" => \"ga:country\",\n \"metric\" => \"ga:pageviewsPerSession\",\n \"chart\" => \"geo\",\n \"period\" => \"month\",\n );\n break;\n\n case 'mobile':\n $newSettings = array(\n \"menu\" => \"mobile\",\n \"dimension\" => \"ga:deviceCategory\",\n \"metric\" => \"ga:sessions\",\n \"chart\" => \"pie\",\n \"period\" => \"week\",\n );\n break;\n\n case 'pages':\n $newSettings = array(\n \"menu\" => \"allPages\",\n \"dimension\" => \"ga:pagePath\",\n \"metric\" => \"ga:pageviews\",\n \"chart\" => \"table\",\n \"period\" => \"week\",\n );\n break;\n\n case 'acquisition':\n $newSettings = array(\n \"menu\" => \"allChannels\",\n \"dimension\" => \"ga:channelGrouping\",\n \"metric\" => \"ga:sessions\",\n \"chart\" => \"table\",\n \"period\" => \"week\",\n );\n break;\n\n case 'technology':\n $newSettings = array(\n \"menu\" => \"browserOs\",\n \"dimension\" => \"ga:browser\",\n \"metric\" => \"ga:sessions\",\n \"chart\" => \"pie\",\n \"period\" => \"week\",\n );\n break;\n\n case 'conversions':\n $newSettings = array(\n \"menu\" => \"goals\",\n \"dimension\" => \"ga:goalCompletionLocation\",\n \"metric\" => \"ga:goalCompletionsAll\",\n \"chart\" => \"area\",\n \"period\" => \"week\",\n );\n break;\n\n case 'counts':\n case 'custom':\n case 'realtime':\n $newSettings = array(\n 'menu' => \"audienceOverview\",\n 'dimension' => \"\",\n 'metric' => 'ga:sessions',\n 'chart' => \"area\",\n 'period' => \"month\",\n );\n break;\n }\n\n\n // update rows\n\n $newSettings = JsonHelper::encode($newSettings);\n\n $updateCmd = craft()->db->createCommand()\n ->update('widgets', array('type' => 'Analytics_Explorer', 'settings' => $newSettings), 'id=:id', array('id' => $row['id']));\n }\n }\n }\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "907f97e2edbda944492975570ac364c4", "score": "0.48859835", "text": "public function run()\n {\n DB::table('settings')->where('setting_id', 1)->update(['cur_version' => 'v2.3']);\n \n }", "title": "" }, { "docid": "3cb42aab968a941a3c352295261b6ca8", "score": "0.48851925", "text": "protected function _updateSpecificFields(){\r\n\t}", "title": "" }, { "docid": "69839e5a710a58840090107d384e51c6", "score": "0.48848265", "text": "public function update(Request $request)\n {\n // Company\n $company = Company::find(session('company_id'));\n\n $fields = $request->all();\n\n $skip_keys = ['company_id', '_method', '_token'];\n $file_keys = ['company_logo', 'invoice_logo'];\n\n foreach ($fields as $key => $value) {\n // Don't process unwanted keys\n if (in_array($key, $skip_keys)) {\n continue;\n }\n\n // Process file uploads\n if (in_array($key, $file_keys)) {\n // Upload attachment\n if ($request->file($key)) {\n $media = $this->getMedia($request->file($key), 'settings');\n\n $company->attachMedia($media, $key);\n\n $value = $media->id;\n }\n\n // Prevent reset\n if (empty($value)) {\n continue;\n }\n }\n\n setting()->set('general.' . $key, $value);\n }\n\n // Save all settings\n setting()->save();\n\n return redirect('wizard/currencies');\n }", "title": "" }, { "docid": "ec8f5b92a00db5d721557080ee698cef", "score": "0.48773763", "text": "public function updateOption( $files )\n\t{\t\t\n\t\tupdate_option( $this->optionName, $files );\n\t}", "title": "" }, { "docid": "d3305398c2261c4460235c89887c8568", "score": "0.48763087", "text": "function org_fileds_to_update($config)\n{\n\t$bocontacts = new addressbook_bo();\n\t$supported_fields = $bocontacts->get_fields('supported',null,0);\t// fields supported by the backend (ldap schemas!)\n\t// get the list of account fields\n\t$fields = array();\n\tforeach($bocontacts->contact_fields as $field => $label)\n\t{\n\t\t// some fields never making sense for an organisation\n\t\tif (!in_array($field,array('id','tid','owner','created','creator','modified','modifier','private','n_prefix','n_given','n_middle','n_family','n_suffix','n_fn','account_id')))\n\t\t{\n\t\t\t$fields[$field] = $label;\n\t\t}\n\t}\n\n\tif ($config['contact_repository'] != 'ldap')\t// no custom-fields in ldap\n\t{\n\t\tforeach(config::get_customfields('addressbook') as $name => $data)\n\t\t{\n\t\t\t$fields['#'.$name] = $data['label'];\n\t\t}\n\t}\n\n\t// Remove country codes as an option, it will be added by BO constructor\n\tunset($fields['adr_one_countrycode']);\n\tunset($fields['adr_two_countrycode']);\n\n\treturn html::table(array(array(\n\t\thtml::checkbox_multiselect('newsettings[org_fileds_to_update]',\n\t\t\t$config['org_fileds_to_update'] ? $config['org_fileds_to_update'] : $bocontacts->org_fields,$fields,true,'',6,\n\t\t\ttrue,'',false\n\t\t),\n\t\thtml::submit_button(\n\t\t\t'','',\"var boxen = \\$j('[name^=\\'newsettings\\[org_fileds_to_update\\]\\']'); boxen.prop('checked', !boxen.prop('checked')); return false;\",\n\t\t\ttrue,'style=\"float:left;\"','check','phpgwapi','button'\n\t\t)\n\t)));\n}", "title": "" }, { "docid": "0131932fca5f5c4b8b0d77a0fa5807b8", "score": "0.48683497", "text": "public function updateAction() {\n\t\t// @todo Check that the fields are valid\n\n\t\t// Update settings instance\n\t\t$settings = Core\\Store\\Request::get('settings');\n\t\t$book = Core\\Store\\Request::get('book');\n\n\t\t$settings->import(array(\n\t\t\t'book_id' => $book->book_id,\n\t\t\t'setting_autosave' => Core\\Request::post('setting_autosave'),\n\t\t\t'setting_font_family' => Core\\Request::post('setting_font_family'),\n\t\t\t'setting_font_size' => Core\\Request::post('setting_font_size'),\n\t\t\t'setting_font_color' => Core\\Request::post('setting_font_color'),\n\t\t\t'setting_line_height' => Core\\Request::post('setting_line_height'),\n\t\t\t'setting_alignment' => Core\\Request::post('setting_alignment'),\n\t\t\t'setting_background' => Core\\Request::post('setting_background'),\n\t\t\t'setting_page_paddings' => Core\\Request::post('setting_page_paddings'),\n\t\t\t'setting_display_comments' => Core\\Request::post('setting_display_comments')\n\t\t));\n\n\t\t$settings->save();\n\n\t\t// Display notice\n\t\techo new Helper\\Notice('success', 'Settings have been successfully updated.');\n\t\tdie();\n\t}", "title": "" }, { "docid": "9af1039946db55dabf376e857e34fb00", "score": "0.48638728", "text": "function validateAndUpdate(){\r\n\t\t\t$defaultsAdded = 0;\r\n\t\t\tforeach ($this->settingsDefault as $key => $val) \r\n\t\t\t\tif (!isset($this->settings[$key])) {\r\n\t\t\t\t\t$this->settings[$key] = $val;\r\n\t\t\t\t\t$defaultsAdded++;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\tif ($defaultsAdded > 0) $this->saveToDB();\r\n\t\t}", "title": "" }, { "docid": "26cc3deb1338d5e660fb59149d387dd0", "score": "0.48600656", "text": "function apsa_child_settings_page() {\n global $apsa_admin_labels;\n // save settings\n if (isset($_POST['apsa-update-child-settings'])) {\n $apsa_new_options = array();\n if (isset($_POST['apsa-warning-text-enabled'])) {\n $apsa_new_options['apsa_warning_text_enabled'] = $_POST['apsa-warning-text-enabled'];\n } else {\n $apsa_new_options['apsa_warning_text_enabled'] = 'false';\n }\n if (isset($_POST['apsa-warning-text'])) {\n $apsa_new_options['apsa_warning_text'] = $_POST['apsa-warning-text'];\n }\n update_option('apsa_options', $apsa_new_options);\n echo '<div class=\"updated fade apsa-success-update\"><p><strong>' . $apsa_admin_labels[\"success_update_msg\"] . '</strong></p></div>';\n }\n\n $wp_version = get_bloginfo('version');\n $apsa_options = get_option('apsa_options');\n ?>\n <!-- Messages -->\n <div class=\"apsa-popup apsa-transit-450\" id=\"apsa-message-popup\" data-apsa-open=\"false\">\n <p></p>\n <span class=\"apsa-close-popup\"></span>\n </div>\n <form method=\"POST\" action=\"\" enctype=\"multipart/form-data\">\n <div id=\"apsa-managing-wrap\" <?php echo (($wp_version >= 3.8) ? 'class=\"apsa-mobile-admin\"' : \"\"); ?>>\n <!-- Header -->\n <h2 id=\"apsa-element-campaign-header\">\n <span><?php echo $apsa_admin_labels[\"settings\"]; ?></span>\n <div id=\"apsa-save-camps-cont\">\n <div class=\"apsa-waiting-wrapper\">\n <button class=\"button button-primary\" id=\"apsa-update-child-settings\" name=\"apsa-update-child-settings\"><?php echo $apsa_admin_labels[\"update_all\"]; ?></button>\n </div>\n </div>\n </h2>\n <span class=\"apsa-by-aparg\"><?php echo $apsa_admin_labels[\"developed_by\"]; ?> <a href=\"<?php echo APSA_APARG_LINK ?>\" target=\"blank\">Aparg.</a></span>\n <div>\n <!-- Warning text -->\n <div id=\"apsa-warning-text-new\" class=\"apsa-code-type\">\n <div>\n <label><?php echo $apsa_admin_labels[\"adblock_warning\"]; ?></label>\n <div class=\"apsa-warning-text-enabled\">\n <input type=\"checkbox\" id=\"apsa-warning-text-enabled\" name=\"apsa-warning-text-enabled\" value=\"true\" <?php checked('true', $apsa_options['apsa_warning_text_enabled'], true); ?> />\n <label for=\"apsa-warning-text-enabled\"><?php echo $apsa_admin_labels[\"adblock_warning_activate\"]; ?></label>\n <span class=\"apsa-with-question\" title=\"<?php echo ucfirst($apsa_admin_labels[\"detailed_description\"]); ?>\" data-apsa-message=\"<?php echo $apsa_admin_labels[\"adblock_warning_desc\"]; ?>\"></span>\n </div>\n </div>\n <div class=\"apsa-code-type-textarea\">\n <textarea id=\"apsa-code-area\" class=\"apsa-code-area\" name=\"apsa-warning-text\"></textarea>\n <textarea class=\"apsa-hold-code-content apsa-hidden-textarea\" id=\"apsa-warning-text-value\"><?php echo stripslashes($apsa_options['apsa_warning_text']); ?></textarea>\n <span class=\"apsa-input-message\"><?php echo $apsa_admin_labels[\"default\"]; ?> <?php echo $apsa_admin_labels[\"adblock_warning_default\"]; ?> </span>\n </div>\n </div>\n </div> \n </div>\n </form>\n <?php\n}", "title": "" } ]
49972234102a132d01d9c6b6e15ac17a
Get the Categories available for the articles.
[ { "docid": "ec350ba0482fc5ac1800e319fa03b2c9", "score": "0.76361555", "text": "public function getCategories()\n {\n $categories = DB::table('article_categories')->get();\n\n return response()->json([\n 'response' => $categories,\n 'success' => true,\n ], 200);\n }", "title": "" } ]
[ { "docid": "5df1635bcdfc20524d79929c28baaf6a", "score": "0.76133186", "text": "public function getCategories();", "title": "" }, { "docid": "52a339563944c811977a60a79c77b465", "score": "0.7602291", "text": "public function getCategories() { \r\n $this->setOptions(array(\"action\" => \"/api/v1/content_categories\",\r\n\t\t));\r\n $this->doCatRequest();\r\n }", "title": "" }, { "docid": "d50ed1b9ea0a54196ff638b2db90bd0f", "score": "0.75547516", "text": "public function getCategories() {\n\n\t\t$uri = '/category/get';\n\t\treturn $this->request( 'GET', $uri );\n\n\t}", "title": "" }, { "docid": "76f83ab9b2934f5c68933153c1fa296a", "score": "0.7495707", "text": "private function getcategories()\n {\n return $categories=$this->api_request->get(\"category\",\"all\",$params=array());\n }", "title": "" }, { "docid": "b42926a3fabfe6e183307d711095ff9e", "score": "0.73816305", "text": "public function getCategories()\r\n {\r\n $items = array(array('label' => 'All Posts', 'url' => $this->createUrl('/blog')));\r\n $categories = Yii::app()->cache->get('categories-listing');\r\n if ($categories == false)\r\n {\r\n $categories = Yii::app()->db->createCommand('SELECT categories.id AS id, categories.name AS name, categories.slug AS slug, COUNT(DISTINCT(content.id)) AS content_count FROM categories LEFT JOIN content ON categories.id = content.category_id WHERE content.type_id = 2 AND content.status = 1 GROUP BY categories.id')->queryAll();\r\n Yii::app()->cache->set('categories-listing', $categories); \r\n }\r\n \r\n foreach ($categories as $k=>$v)\r\n {\r\n if ($v['name'] != 'Uncategorized')\r\n $items[] = array('label' => $v['name'], 'url' => $this->createUrl('/' . $v['slug']));\r\n }\r\n \r\n return $items;\r\n }", "title": "" }, { "docid": "dc34e72e54e852e4ad62360ae05d6330", "score": "0.735904", "text": "private function availableCategories(){\n return Category::all();\n }", "title": "" }, { "docid": "bd2b35c9e188b7e5b479db63eb9f9d30", "score": "0.7353282", "text": "public function categories()\n {\n $cat = categories::all();\n\n return $cat;\n }", "title": "" }, { "docid": "f3e677d53c4930ca8a579c89e90273b1", "score": "0.7306174", "text": "public function getCategories()\n\t{\n\t\t//if (!$this->User->isAdmin && !is_array($this->User->news))\n\t\t//{\n\t\t//\treturn array();\n\t\t//}\n\n\t\t$arrCategories = array();\n\t\t$objCategories = $this->Database->execute(\"SELECT id, title FROM tl_catalog_category ORDER BY title\");\n\n\t\twhile ($objCategories->next())\n\t\t{\n\t\t\t//if ($this->User->hasAccess($objArchives->id, 'news'))\n\t\t\t//{\n\t\t\t\t$arrCategories[$objCategories->id] = $objCategories->title;\n\t\t\t//}\n\t\t}\n\n\t\treturn $arrCategories;\n\t}", "title": "" }, { "docid": "70d9fcc926075a3e716717e40cf78169", "score": "0.7289952", "text": "public function listCategories()\n {\n $this->version = 'v1';\n $this->endpoint = 'categories';\n $this->request_type = 'GET';\n $this->location_based = true;\n\n return $this->_call();\n }", "title": "" }, { "docid": "fda8eeabd8af1a6bf8e5904db75c1a88", "score": "0.7254073", "text": "public function getCategories()\n {\n $response = $this->client->get(url('api/v1/categories?api_key=' . env('API_KEY')));\n\n return response($response->getBody(), $response->getStatusCode(), ['Content-Type' => 'application/json']);\n }", "title": "" }, { "docid": "c62c111486c0d6c96cce096dcd1a4b0b", "score": "0.72214186", "text": "public function getCategories()\n {\n return $this->categories;\n }", "title": "" }, { "docid": "c62c111486c0d6c96cce096dcd1a4b0b", "score": "0.72214186", "text": "public function getCategories()\n {\n return $this->categories;\n }", "title": "" }, { "docid": "c62c111486c0d6c96cce096dcd1a4b0b", "score": "0.72214186", "text": "public function getCategories()\n {\n return $this->categories;\n }", "title": "" }, { "docid": "5080e2464434426b41698e9d2026f7b9", "score": "0.72110885", "text": "public function getNewsCategories()\n {\n\n $categoriesLang = $this->getCategoriesLangData();\n\n return $this->_buildNewsCategories($this->nestedSetRootId, $categoriesLang);\n }", "title": "" }, { "docid": "e8c30ceca3c2eff74799cfaf665ed488", "score": "0.7186755", "text": "public function getNewsCategory(): array\n {\n return $this->db->select('categories', '*');\n }", "title": "" }, { "docid": "a768f61b53f4f5f375290d6617952d43", "score": "0.717782", "text": "public function availableCategories()\n {\n return $this->_categories;\n }", "title": "" }, { "docid": "2c7b3dee8954422bde33dbc52ba0ea3a", "score": "0.7174984", "text": "public function getCategories()\n {\n $categories = array();\n $cursor = $this->getCategoryCollection()->find(array());\n foreach ($cursor as $category) {\n $categories[] = $category['category'];\n }\n return $categories;\n }", "title": "" }, { "docid": "e62a3a6d2b10fea24a2881ea7f85fec9", "score": "0.7174426", "text": "public function listCategories()\n {\n $categories = Category::all();\n\n return $categories;\n }", "title": "" }, { "docid": "991aea0abf160230ee100c10a8d4ac77", "score": "0.71624374", "text": "public function getCategories()\n {\n $app = Factory::getApplication('com_attlist');\n\n // Obtain a database connection\n $db = JFactory::getDbo();\n //Retrieve the shout\n $query = $db->getQuery(true)\n ->select(array('id', 'title'))\n ->from($db->quoteName('#__categories'))\n ->where($db->quoteName('extension') . ' = ' . $db->quote('com_attlist.meldungen'))\n ->order('id ASC');\n // Prepare the query\n $db->setQuery($query);\n // Load the categories.\n $category = $db->loadAssocList();\n // Return the Categories\n return $category;\n }", "title": "" }, { "docid": "496af01140f8e9c0ec1eee2022f60b92", "score": "0.71610254", "text": "public function getCategories()\r\n {\r\n return $this->categoryManager->fetchAll();\r\n }", "title": "" }, { "docid": "ddbffe20d36fbbc44a3f0d52a8129719", "score": "0.71532255", "text": "public function getCategories()\n\t{\n\t\t$result = $this->get($this->actionUrl('/feed/categories'));\n\n\t\t$dom = new DOMDocument();\n\t\t$dom->loadXml($result);\n\t\t$catXml = $dom->getElementsByTagName('category');\n\t\t\n\t\treturn Flattr_Xml::toArray( $catXml );\n\t}", "title": "" }, { "docid": "0991f91400e7e6c32a347a3055d2a343", "score": "0.71406394", "text": "public function getAllCategory() {\n return $this -> categories;\n }", "title": "" }, { "docid": "365efb6a4fcfa4d3f3023c4235a5bea2", "score": "0.7120184", "text": "public function categoriesList()\n {\n $url = '/admin/categories.json';\n\n return $this->client->makeRequest($url, Request::METHOD_GET);\n }", "title": "" }, { "docid": "baeb9381d4518b9f42c2afac2ac0cf0a", "score": "0.7106292", "text": "function findAllCategories() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM categories;'));\r\n\r\n\t}", "title": "" }, { "docid": "99131362ca2d2236dce5e0c66c05fd07", "score": "0.71055555", "text": "public function getCategories(Request $request)\n {\n $categories = $this->service->getArticleCategories()\n ->toArray();\n return $this->successResponse($categories);\n }", "title": "" }, { "docid": "468ffea0581dbba650bb11a501bc6929", "score": "0.7090665", "text": "public function getCategories() {\n $data = $this->makeRequest(self::$categories);\n if (isset($data['categories'])) {\n return $data['categories'];\n }\n return [];\n }", "title": "" }, { "docid": "706df03a2d038615f8cc3392fe8e7c8e", "score": "0.70858264", "text": "public function getCategories()\n\t{\n\t\treturn $this->categories;\n\t}", "title": "" }, { "docid": "cfa0d80b1c545935ac75e1c706080537", "score": "0.7080481", "text": "public function getCategories()\n {\n return $this->_categories;\n }", "title": "" }, { "docid": "596047acd950738a049fd4f48026c03c", "score": "0.70572466", "text": "public function xmlGetCategories()\n {\n $baseUrl = $this->config->get('site_base') . 'catalog/';\n\n $result = $this->db->query(\"\n SELECT cd.category_id, cd.name, ua.keyword, c.parent_id\n FROM \" . DB_PREFIX . \"category c\n LEFT JOIN \" . DB_PREFIX . \"category_description cd ON c.category_id = cd.category_id\n LEFT JOIN \" . DB_PREFIX . \"url_alias ua ON CONCAT('category_id=', cd.category_id) = ua.query\n \")->rows;\n\n $categories = [];\n foreach ($result as $cat) {\n $categories[] = [\n 'name' => $cat['name'],\n 'url' => ((int)$cat['parent_id'] == 0) ? $baseUrl . $cat['keyword'] : $baseUrl . $this->xmlGetChildCategories((int)$cat['parent_id'], $cat['keyword'])\n ];\n }\n\n return $categories;\n }", "title": "" }, { "docid": "3eb6e90bea3da10bd146a1ad99a826f0", "score": "0.70560044", "text": "public function getAllCategorys()\n\t\t{\n\t\t\t// getting an array that holds all the category in the database\n\t\t\t$ob = $this->getFilteredQuery(['category'], ['*'] , null, 'Category');\n\t\t\treturn $ob;\n\t\t}", "title": "" }, { "docid": "975784bc5c0844bd92cf72975586864c", "score": "0.70497066", "text": "public function getCategories() {\n\t\treturn $this->categories;\n\t}", "title": "" }, { "docid": "3671e7812420132ad02116c988318226", "score": "0.7023387", "text": "function getCategories() {\n\t \treturn $this->categories;\n\t }", "title": "" }, { "docid": "517c0e5178b4af6b06b1a03f0bf83bb8", "score": "0.7013523", "text": "public function get_categories() {\n return $this->categories;\n }", "title": "" }, { "docid": "f1bdf8321e022b061d7496dd941de791", "score": "0.7001846", "text": "public function getCategories(): Collection\n {\n return $this->model->categories()->get();\n }", "title": "" }, { "docid": "f6692ea20e9f441a84290a5b4033759d", "score": "0.6992408", "text": "public function getCategories()\n {\n }", "title": "" }, { "docid": "e0ad466623b42a23df9fb9ed6b55506e", "score": "0.69821525", "text": "public function getAllCat()\n\t\t{\n\t\t\treturn Categoria::all();\n\t\t}", "title": "" }, { "docid": "62d9a683d67ed75c79a22a950d4bed5b", "score": "0.697374", "text": "public function getCategories()\n {\n return Category::All()->toNested();\n }", "title": "" }, { "docid": "18fda89ff585ce15369a51d6cac53b68", "score": "0.6971873", "text": "function getAllCategorias() {\r\n $this->defaultDB->order_by(\"nome ASC\");\r\n return $this->defaultDB->get(self::TABLE_CAT);\r\n }", "title": "" }, { "docid": "d0cab6bfe67929c0cf70754aba769137", "score": "0.69664913", "text": "public function getAllCategories()\n {\n $categories = DB::table('categories')->get();\n return $categories;\n \n }", "title": "" }, { "docid": "063e9884ab9de30e9a57836d4053f60e", "score": "0.694111", "text": "public static function GetCategories()\r\n {\r\n // Build SQL query\r\n $sql = 'CALL catalog_get_categories()';\r\n\r\n // Execute the query and return the results\r\n return DatabaseHandler::GetAll($sql);\r\n }", "title": "" }, { "docid": "b11fdf6fc92cfb65758b760112e1b30f", "score": "0.693054", "text": "public function categories()\n {\n $categoriesEnable = Item::select('category_id')\n ->whereNotNull('identifier')\n ->groupBy('category_id')\n ->pluck('category_id');\n\n $categories = Category::whereIn('id', $categoriesEnable)\n ->orderBy('title', 'asc')\n ->get();\n\n return $this->respond($categories->toArray());\n }", "title": "" }, { "docid": "3e6005313a3377100cc8ace05a8bf5b8", "score": "0.69292593", "text": "public function get_categories() {\n\t\treturn array( 'listeo' );\n\t}", "title": "" }, { "docid": "3e6005313a3377100cc8ace05a8bf5b8", "score": "0.69292593", "text": "public function get_categories() {\n\t\treturn array( 'listeo' );\n\t}", "title": "" }, { "docid": "369d02cf005997773d50faa521b9c9aa", "score": "0.6926876", "text": "public function getCategories(){\n\n\n\n // This is the Drupal content type that is being used on all sites for the download categories (added by feature module \"fmod_qmembers\")\n\n $content_types = 'mitgliederseiten_download_kat';\n\n\n\n $categories = array();\n\n $nodes = array();\n\n $result['error'] = false;\n\n\n\n // Limiting the request, just in case...\n\n $init_value = 0;\n\n $max_results = 100;\n\n\n\n // Start Drupal database query\n\n $query = new \\EntityFieldQuery();\n\n $entities = $query->entityCondition('entity_type', 'node')\n\n ->propertyCondition('type', $content_types)\n\n ->propertyCondition('status', 1)\n\n ->propertyOrderBy('title','ASC')\n\n ->range($init_value, $max_results)\n\n ->execute();\n\n\n\n if (!empty($entities['node'])) {\n\n $node_ids = array_keys($entities['node']);\n\n $nodes = entity_load('node', $node_ids);\n\n }\n\n\n\n // Extract category title only\n\n $i = 0;\n\n foreach ($nodes as $node){\n\n\n\n $categories[$i]['id'] = $node->nid;\n\t\t\t$categories[$i]['title'] = $node->title;\n\n\n\n $i++;\n\n }\n\n\n\n return $categories;\n\n }", "title": "" }, { "docid": "ef082afb7b2c9c38f7e915f68a1adcf4", "score": "0.69216484", "text": "public function getCategories()\n\t{\n\n\t}", "title": "" }, { "docid": "e40e917c834b83a7901765a6a1107ce0", "score": "0.69185203", "text": "public function getCategories() {\r\n\t\tif (array_key_exists ( 'categories', $this->data )) {\r\n\t\t\treturn $this->data ['categories'];\r\n\t\t}\r\n\t\t\r\n\t\t$categoryCollection = $this->getExtension ( 'Atom' )->getCategories ();\r\n\t\t\r\n\t\tif (count ( $categoryCollection ) == 0) {\r\n\t\t\t$categoryCollection = $this->getExtension ( 'DublinCore' )->getCategories ();\r\n\t\t}\r\n\t\t\r\n\t\t$this->data ['categories'] = $categoryCollection;\r\n\t\t\r\n\t\treturn $this->data ['categories'];\r\n\t}", "title": "" }, { "docid": "911bf36b9901ac7f2a3a3dec51ede7cd", "score": "0.6915586", "text": "public function getCategories()\n {\n $response = $this->client->get('https://www.submarino.com.br/mapa-do-site/categoria');\n\n $html = new Crawler($response->getBody()->getContents());\n $categorias = [];\n $html->filter('.sitemap-list li')->each(function (Crawler $node, $i) use (&$categorias) {\n $categorias[] = [\n 'href' => $node->filter('a')->attr('href'),\n 'name' => $node->filter('a')->text()\n ];\n });\n\n foreach ($categorias as $categoria) {\n Category::updateOrCreate($categoria, $categoria);\n }\n }", "title": "" }, { "docid": "c318833a94866c6e320469443744049e", "score": "0.6914423", "text": "public function getCategories(){\n Log::info(session()->getId() . ' | [Database Query: Retrieving Categories]');\n return Category::pluck('Name')->toArray();\n }", "title": "" }, { "docid": "423a80bcee94caf197b84fde96744533", "score": "0.68993014", "text": "protected function getCategories()\n {\n if ($this->categories)\n return $this->categories;\n\n # load from DB\n $res = Sys\\Db::select(\"c.id\", \"c.name\", array(\"COUNT(s.id) AS itemsCount\"))\n ->from(\"geo_category\", \"c\")\n ->leftJoin(\"geo_symbol\", \"s\", \"c.id = s.categoryId\")\n ->groupBy(\"c.id\")\n ->orderBy(\"c.id\")\n ->query();\n if (!$res)\n return err('Chyba při SQL dotazu', 3);\n\n while ($row = $res->fetch_assoc())\n $this->categories[] = $row;\n\n return $this->categories;\n }", "title": "" }, { "docid": "eff1813a1c73381674c8d43d2f5dcfcd", "score": "0.689797", "text": "public function loadCategories()\n {\n $categories_tree = $this->category->listTreeCategories();\n $categories = $this->category->linearizeCategoryArray($categories_tree);\n return $categories;\n }", "title": "" }, { "docid": "2fba2971889600e557481ed9d3da9b05", "score": "0.6891376", "text": "public function get()\n {\n $categories = Category::all();\n return $categories;\n }", "title": "" }, { "docid": "f734ac753979418e879c93fc69e6bfcc", "score": "0.6883581", "text": "public function getCategories()\n {\n $query = $this->db->get(\"categories_accessors\");\n return ($query->result_array());\n }", "title": "" }, { "docid": "84f9e0e908eb9cd88d065d05637c433c", "score": "0.6875766", "text": "public function fetchCategories(): array;", "title": "" }, { "docid": "9fe1812aaeac8fa1fafdd68aa0e93b22", "score": "0.687034", "text": "public function getCategories(){\n return $this->categories;\n }", "title": "" }, { "docid": "80cf449284e587295f160c526e26fd46", "score": "0.6868407", "text": "public function allCategories(){\n\n $categories = $this->categoryService->getAllCategories();\n\n return CategoryResource::collection($categories);\n }", "title": "" }, { "docid": "5831844ee59185694edfa73627414ff9", "score": "0.68571407", "text": "function &getCategories()\n\t{\n\t\tif (empty($this->_categories))\n\t\t{\n\t\t\t$model = &JModel::getInstance('Categories', 'Weblinksmodel', array('ignore_request' => true));\n\t\t\t$model->setState('published',\t$this->getState('published'));\n\t\t\t$model->setState('approved',\t$this->getState('approved'));\n\n\t\t\tif (!($this->_categories = $model->getItems())) {\n\t\t\t\t$this->setError($model->getError());\n\t\t\t}\n\t\t}\n\t\treturn $this->_categories;\n\t}", "title": "" }, { "docid": "ed5551a77291aaff6aadc143b238a1c6", "score": "0.6844318", "text": "public function get_categories() {\n\t\treturn [ 'atl-category' ];\n\t}", "title": "" }, { "docid": "331a7a801c09559660939d5f93e30beb", "score": "0.68400425", "text": "public function get_categories(){\n $this->_query_result = parent::run_query(\"categories\",json_encode($this->_data_query[\"categories\"]));\n return $this->_query_result;\n }", "title": "" }, { "docid": "caf167634d4bd9906f98279ac00064a4", "score": "0.68304884", "text": "public function getAll()\n\t{\n\t\t$query = $this->db->get(TABLE_NEWS_CATEGORIES);\n\t\treturn $query->result();\n\t}", "title": "" }, { "docid": "547253670e74e572b24ad51e7cd08976", "score": "0.68016964", "text": "public function getCategories()\n {\n $table = Engine_Api::_()->getDbTable('categories', 'album');\n return $table->fetchAll($table->select()->order('category_name ASC'));\n }", "title": "" }, { "docid": "c78c3494aea90b8c4366287541e6a5a1", "score": "0.6799892", "text": "public function getAll()\n {\n try {\n $response = $this->siteManagerClient->get('/api/v1/categories');\n } catch (ClientException $e) {\n return [];\n }\n\n return $response->getStatusCode() === 200 ?\n json_decode($response->getBody()->getContents())->data :\n [];\n }", "title": "" }, { "docid": "1074042c7a9b3b0be3e6539d552d5ef9", "score": "0.67892057", "text": "public function getCategories()\n\t{\n\t\tstatic $categories;\n\n\t\tif (!$categories)\n\t\t{\n\t\t\t$db = $this->database;\n\t\t\t$query = $db->getQuery(true);\n\n\t\t\t$query\n\t\t\t\t->select('*')\n\t\t\t\t->from($db->quoteName('#__issues_categories'))\n\t\t\t\t->where($db->quoteName('project_id') . ' = ' . $this->project_id)\n\t\t\t\t->order($db->quoteName('title'));\n\n\t\t\t$categories = $db->setQuery($query)->loadObjectList();\n\t\t}\n\n\t\treturn $categories;\n\t}", "title": "" }, { "docid": "1bea72ac2241292da03d5c8b221baf66", "score": "0.67814875", "text": "private function get_categories_list() {\n global $CFG;\n\n $cache = \\cache::make_from_params(\\cache_store::MODE_SESSION, 'report_extendedlog', 'menu');\n if ($categories = $cache->get('categories')) {\n return $categories;\n }\n\n if ($CFG->version < 2018120300.00) { // Moodle 3.6.\n $categorieslist = \\coursecat::make_categories_list();\n } else {\n $categorieslist = \\core_course_category::make_categories_list();\n }\n $categories = array();\n foreach ($categorieslist as $key => $name) {\n $categories['a'.$key] = $name;\n }\n $all = array('a' => get_string('filter_category_all', 'report_extendedlog'));\n $categories = array_merge($all, $categories);\n\n $cache->set('categories', $categories);\n return $categories;\n }", "title": "" }, { "docid": "9d553447af66b0726345152a5d4b8ce1", "score": "0.67801875", "text": "function getCategories() {\n\n\t\t$qry_categories = \"SELECT id, cat_name FROM #__imixtix_categories WHERE status = 1 ORDER BY cat_name\";\n\t\t$this -> _db -> setQuery($qry_categories);\n\t\tif (!$this -> _db -> query()) {\n\t\t\tJError::raiseError(500, $this -> _db -> getErrorMsg());\n\t\t}\n\t\treturn $this -> _db -> loadObjectList();\n\t}", "title": "" }, { "docid": "360efb7e642035c1f49f289bcd1c6824", "score": "0.6778914", "text": "public static function getCategories()\n {\n $db = DB::getInstance();\n $sql = 'SELECT * FROM '.static::$definition['table'];\n $st = $db->query($sql);\n $arr = $st->fetchAll(PDO::FETCH_ASSOC);\n foreach ($arr as $categ)\n {\n $categories[] = new self($categ['id_categ']);\n }\n return $categories;\n }", "title": "" }, { "docid": "d222457c23db6bae18d2a2327d5695e8", "score": "0.67716", "text": "private function getCategories()\n { \n // create array for each of the industry domains\n $industries = Industry::lists('name', 'id')->all();\n\n for ($i=1; $i<=count($industries); $i++)\n {\n $domains[$i] = Domain::all()->where('industry_id', $i)->lists('name', 'id');\n }\n\n return [\n 'technologies' => Technology::lists('name', 'id')->all(),\n 'industries' => $industries,\n 'domains' => $domains,\n 'tags' => Tag::lists('name', 'id')->all()\n ];\n }", "title": "" }, { "docid": "c2fd53bf826f80b4effc029e7dfacfa8", "score": "0.67597693", "text": "function getCategories() {\n $lq = new ListQuery('BookingCategory', array('name', 'expenses_unit', 'paid_rate_usd'));\n $lq->addPrimaryKey();\n $lq->addAclFilter('list');\n $lq->addFilterClause(array('field' => 'booking_class', 'value' => 'expenses'));\n $result = $lq->fetchAll();\n\n $categories = array();\n\n if (! $result->failed)\n $categories = $result->rows;\n\n return $categories;\n }", "title": "" }, { "docid": "36a4a74fb149659c6cc4a4709e466c94", "score": "0.67579037", "text": "public function allCategories() {\n return FaqCategory::all();\n }", "title": "" }, { "docid": "11f0e479076f9b5e9cec186784e97e6c", "score": "0.67557174", "text": "public function getCategories()\n { \n $categoryData = array();\n $response = $this->category->apiGetCategory();\n\n if ($response != NULL)\n return response()->json(['status' => 'success','response' => $response]);\n else\n return response()->json(['status' => 'exception','response' => 'Could not find any category ']);\n }", "title": "" }, { "docid": "11f0e479076f9b5e9cec186784e97e6c", "score": "0.67557174", "text": "public function getCategories()\n { \n $categoryData = array();\n $response = $this->category->apiGetCategory();\n\n if ($response != NULL)\n return response()->json(['status' => 'success','response' => $response]);\n else\n return response()->json(['status' => 'exception','response' => 'Could not find any category ']);\n }", "title": "" }, { "docid": "e53e0ecb3d7b8e5c3fc21e5874e471fc", "score": "0.67511356", "text": "public function getCategories() : array\n {\n return $this->categories;\n }", "title": "" }, { "docid": "718294e6b8bdd0b224aec8a113b03a9a", "score": "0.67480165", "text": "public function getCategories() {\n\t\t$snController = new SnController();\n\t\t$categories = array(\n\t\t\t'' => $snController->__('None/Unknown'),\n\t\t\t'Feedb' => array(\n\t\t\t\t'' => $snController->__('None/Unknown'),\n\t\t\t\t'Rep' => $snController->__('Reports'),\n\t\t\t\t'Sugg' => $snController->__('Suggestions'),\n\t\t\t\t'Compl' => $snController->__('Complaints'),\n\t\t\t\t'Bug' => $snController->__('Bug/Error'),\n\t\t\t),\n\t\t\t'Help' => array(\n\t\t\t\t'' => $snController->__('None/Unknown'),\n\t\t\t\t'Acc' => $snController->__('Account'),\n\t\t\t\t'Paym' => $snController->__('Payment'),\n\t\t\t\t'Subsc' => $snController->__('Subscription/Membership'),\n\t\t\t\t'Evnt' => $snController->__('Events'),\n\t\t\t\t'eSprt' => $snController->__('E-Sports'),\n\t\t\t\t'Grps' => $snController->__('Groups'),\n\t\t\t\t'oUsr' => $snController->__('Other users'),\n\t\t\t\t'Cntn' => $snController->__('Content'),\n\t\t\t),\n\t\t\t'Cont' => array(\n\t\t\t\t'' => $snController->__('None/Unknown'),\n\t\t\t\t'sCnt' => $snController->__('Staff contact'),\n\t\t\t\t'jAppl' => $snController->__('Job application'),\n\t\t\t),\n\t\t);\n\t\treturn $categories;\n\t}", "title": "" }, { "docid": "73acc60af1c68d9b8364955ddf2f6bd5", "score": "0.67435205", "text": "public function getCategories()\n {\n // Let's load the data if it doesn't already exist\n if(empty($this->_categories))\n {\n if(!$this->_loadCategories())\n {\n return array();\n }\n }\n\n return $this->_categories;\n }", "title": "" }, { "docid": "649b49fa454abdc383b199d8e7c68b61", "score": "0.67237395", "text": "public function getCategories()\n {\n $db = JFactory::getDbo();\n $getCategories = $db->getQuery(true);\n\n $getCategories\n ->select(\n array(\n 'id',\n 'category',\n 'colour_hex',\n 'colour_rgb'\n )\n )\n ->from($db->quoteName('#__pt_category'))\n ->order('id ASC');\n\n return $db->setQuery($getCategories)->loadObjectList();\n }", "title": "" }, { "docid": "46298f334fbf1ed0bccbb2b92d9fbac6", "score": "0.671074", "text": "function get_categories()\n\t\t{\n\t\t\tglobal $db;\n\t\t\t$query = \" SELECT a.*\n\t\t\t\t\t\t FROM \n\t\t\t\t\t\t \tfs_slideshow_categories AS a\n\t\t\t\t\t\t \tORDER BY ordering \";\n\t\t\t$sql = $db->query($query);\n\t\t\t$result = $db->getObjectList();\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "970ab86e9b3714439efb6392f9906b21", "score": "0.67066133", "text": "public function getCategorias() {\r\n//-------->Revisa Esto.\t\t\t\r\n// \t\t\tContenido $contenido = (Contenido) $this->datosEntidad;\r\n\t\t\t$contenido = $this->datosEntidad;\r\n\t\t\tif ( is_null($this->categorias) && !$contenido->getCategorias()->isEmpty()) {\r\n\t\t\t\t$this->setCategoriasID($contenido->getCategorias());\r\n\t\t\t}\r\n\t\t\treturn $this->categorias;\r\n\t\t}", "title": "" }, { "docid": "fbdecd5c9d3b47650117a58c88ca3217", "score": "0.6706605", "text": "public function getCat()\n {\n $request = $this->pdo->prepare(\"SELECT * FROM `categorie` INNER JOIN article ON categorie.id = article.id_categorie \");\n $request->execute();\n $categorie[] = $request->fetchAll(PDO::FETCH_ASSOC);\n return $categorie;\n }", "title": "" }, { "docid": "763b45f84a10470b07a2c0faa5c1d146", "score": "0.6703542", "text": "public static function getAllCategoriesList()\n {\n $q = self::getCategoriesQuery();\n\n return $q->execute();\n }", "title": "" }, { "docid": "6c719c2efccbb8dc1e32bcd82859c9d9", "score": "0.66971064", "text": "public function getCategory()\n {\n return response()->json(NewsCategory::all());\n }", "title": "" }, { "docid": "b8c9216fe48fe31be67daed31faba01f", "score": "0.6697011", "text": "public function get_categories()\n {\n return ['hsblog'];\n }", "title": "" }, { "docid": "7cb647b46360339880bc1a84e200239d", "score": "0.6691152", "text": "public function getCategories(){\n return $this->categories;\n }", "title": "" }, { "docid": "0b07ce245ae7ad8cf6cf0609d3f98de2", "score": "0.66822374", "text": "public function getCategories()\n {\n try\n {\n $categories = AttributeCategory::select('*')->get();\n\n return ['status' => 1, 'data' => $categories];\n }\n catch (Exception $e)\n {\n return ['status' => 0];\n }\n }", "title": "" }, { "docid": "0eecaaa5a4ae64218b3438901e3020f4", "score": "0.6674208", "text": "public static function getAllCategories()\n\t{\n\t\t$categories = array();\n\t\t$dbr = wfGetDB(DB_SLAVE);\n\t\t$result = $dbr->select(\n\t\t\tarray( 'page', 'categorylinks' ),\n\t\t\t'*',\n\t\t\tarray(\n\t\t\t\t'page_namespace' => NS_CATEGORY,\n\t\t\t\t'page_is_redirect' => 0,\n\t\t\t\t'cl_from IS NULL'\n\t\t\t),\n\t\t\t__METHOD__,\n\t\t\tarray(),\n\t\t\tarray(\n\t\t\t\t'categorylinks' => array( 'LEFT JOIN', 'cl_from = page_id' )\n\t\t\t)\n\t\t);\n\t\twhile( $row = $result->fetchRow() ) {\n\t\t\t$categories[] = Category::newFromTitle( Title::newFromID($row['page_id']) );\n\t\t}\n\t\treturn $categories;\n\t}", "title": "" }, { "docid": "261a5a88bee43ed42dd968af88138649", "score": "0.6668715", "text": "public function getCategorias()\n\t{\n\t\treturn $this->db->get('Categorias')->result();\n\t}", "title": "" }, { "docid": "300cdfdf2338a419dedf6fdfe3b24438", "score": "0.6668691", "text": "public function getCategoriesAction()\n {\n $categories = $this->categoryService->getAllCategories();\n return $this->handleView($this->view($categories));\n }", "title": "" }, { "docid": "8438313e216026a3f94b2b9c08baef1a", "score": "0.6666637", "text": "public function getAllCategories(){\n return $this->em->getRepository('Oxcategories')->findAll();\n }", "title": "" }, { "docid": "88da75083d9b5e8447a7f01a63575beb", "score": "0.6652839", "text": "public function getCategories() {\n $sql = \"SELECT * FROM tbl_categories\";\n $STH = $this->dbh->query($sql);\n $STH->setFetchMode(PDO::FETCH_ASSOC);\n $arr = array();\n while ($row = $STH->fetch())\n $arr[] = $row;\n return $arr;\n }", "title": "" }, { "docid": "6b69a929f1996bdfd9a240712c9d240e", "score": "0.6646426", "text": "public function getCategories()\n {\n return self::where('parentCatId', 0)->withTrashed()->get();\n }", "title": "" }, { "docid": "48ad0c2a4aa8ea7074a9660ee9e5906a", "score": "0.66378176", "text": "public function getCategories()\n {\n $resource = REST_API_SERVICE_URL . '/' . str_replace('{companyId}', $this->companyId, $this->serviceCalls['getCategories']);\n $curl = $this->getCurl($resource, 'GET');\n\n $curlResponse = curl_exec($curl);\n curl_close($curl);\n\n $result = $this->validateResponse($curlResponse);\n if(!$result['valid'])\n {\n throw new Exception('An error occured: ' . $result['message']);\n }\n\n $categories = json_decode($curlResponse)->categories;\n $categoriesProcessed = array();\n\n foreach($categories AS $category)\n {\n $curCategory = new StdClass();\n $curCategory->id = $category->idCategory;\n $curCategory->status = $category->idStatusType;\n $curCategory->name = $category->categoryName;\n $curCategory->url = $category->categoryUrl;\n $curCategory->number = $category->categoryNumber;\n $categoriesProcessed[] = $curCategory;\n }\n\n return $categoriesProcessed;\n }", "title": "" }, { "docid": "4903561cc0b430f734bbfdf5dc710823", "score": "0.66337276", "text": "public function getCategories()\n {\n\n $db = Db::getInstance()->getConnection();\n $stmt = $db->prepare(\"SELECT * FROM category\");\n $stmt->execute();\n $categories = $stmt->fetchAll();\n $result = array();\n foreach ($categories as $category) {\n array_push($result, (object)$category);\n }\n return $result;\n }", "title": "" }, { "docid": "301d4131b29280ae86c5ce9fd9daf6b7", "score": "0.66289467", "text": "public function categories(){\n return Category::whereIn('_id', $this->category)->get();\n }", "title": "" }, { "docid": "e2da79c9be9b88a9f18a6e33751658e1", "score": "0.6628186", "text": "public function getCategories()\r\n\t{\r\n\t\t$categories = $this->db->get('item_category');\r\n\t\treturn $categories->result();\r\n\t}", "title": "" }, { "docid": "37f0d6d62aa5bb4c88ba5bd9ff6270bd", "score": "0.6627668", "text": "public function getCategories() {\n\t\t$db = $this->_db;\n\n\t\t// Create a new query object.\n\t\t$query = $db->getQuery(true);\n\n\t\t$query->select($db->quoteName(array('a.id', 'a.code', 'a.source_id', 'a.name')));\n\t\t$query->from($db->quoteName('#__gtpihpssurvey_ref_categories', 'a'));\n\t\t\n\t\t$query->where($db->quoteName('a.published') . ' = 1');\n\t\t\n\t\t$db->setQuery($query);\n\t\treturn $db->loadObjectList('code');\n\t}", "title": "" }, { "docid": "799670477a63cfa7c2a41f422eea2fdc", "score": "0.6616053", "text": "public function findAllCategories(): array\n {\n $resultats = $this->pdo->query('SELECT * FROM categorie ORDER BY libelle DESC');\n $allCategories = $resultats->fetchAll();\n\n return $allCategories;\n }", "title": "" }, { "docid": "b00d5901bd35bb5ce99aea820f0fa939", "score": "0.6611437", "text": "public function getCategory(){\n return $this->getAll(\"SELECT * FROM categories\");\n }", "title": "" }, { "docid": "21aaa8b444224b954be67c76f18a7908", "score": "0.66029733", "text": "public function getCategories($filters = []);", "title": "" }, { "docid": "636ac1b997d76caac0ee0489072af531", "score": "0.6597921", "text": "public function get_categories() {\n\t\treturn [ 'flicky-category' ];\n\t}", "title": "" }, { "docid": "ceb31a95ffd8e0fce4fb30db37dc2005", "score": "0.65974706", "text": "public function get_categories() {\n\t\treturn [ 'general' ];\n\t}", "title": "" }, { "docid": "973ba11ac36d452bc5b30a65508b0bd9", "score": "0.6596176", "text": "public function getAllCategories()\n {\n return $this->db->get('tbl_kategori');\n }", "title": "" }, { "docid": "743f5def40b57ddb7088cb7d9bb4b6b0", "score": "0.65921676", "text": "public function categories()\n {\n return $this->belongsToMany(Category::class, 'article_has_categories', 'article_id', 'category_id');\n }", "title": "" } ]
ad282ad0cb8e499e668ebd1430ed62d0
Turn this item object into a generic array
[ { "docid": "7eac5328bf500a9a77c80d8b1a7bd465", "score": "0.0", "text": "public function transform(Difficulty $difficulty)\n {\n return array(\n 'id' => (int) $difficulty->id,\n 'game_id' => (int) $difficulty->game_id,\n 'order' => (int) $difficulty->order,\n 'name' => $difficulty->name,\n 'points' => (int) $difficulty->points,\n 'created_at' => (string) $difficulty->created_at,\n 'updated_at' => (string) $difficulty->updated_at,\n );\n }", "title": "" } ]
[ { "docid": "59ba1bc641c65ea317ec1bb9281db297", "score": "0.82171017", "text": "public function convertItemArray() {}", "title": "" }, { "docid": "cebdf7a57a38dc17a5ce6b906759136d", "score": "0.72799164", "text": "public function toArray()\n {\n return $this->convertToArray($this->items);\n }", "title": "" }, { "docid": "3d106224151e04d1b4165b7ac961cb06", "score": "0.7274007", "text": "public function toArray()\n {\n return array_merge($this->value, [\n 'items' => $this->items,\n ]);\n }", "title": "" }, { "docid": "9c6f67c6b5dba7bd0df6ebacc4636181", "score": "0.72024846", "text": "public function get_items_array() {\n\t\t$items = $this->get_items();\n\n\t\t$data = array();\n\t\tforeach ( $items as $item ) {\n\t\t\t$data[] = $item->to_array();\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "eb24fa55bfe93e6feee648ddc4b08c25", "score": "0.7145641", "text": "public function toArray(): array\n {\n return $this->items;\n }", "title": "" }, { "docid": "02bd9782c7bfaacd4c61c6192b3d4b96", "score": "0.7134927", "text": "public function __toArray();", "title": "" }, { "docid": "1b6ca76e520c1b2303dd51c12dcbf2da", "score": "0.7121073", "text": "public function toArray($item) : array\n {\n return [];\n }", "title": "" }, { "docid": "11e12ed7f2605e6fa500c29c031d19e0", "score": "0.7063274", "text": "public abstract function toArray();", "title": "" }, { "docid": "11e12ed7f2605e6fa500c29c031d19e0", "score": "0.7063274", "text": "public abstract function toArray();", "title": "" }, { "docid": "11e12ed7f2605e6fa500c29c031d19e0", "score": "0.7063274", "text": "public abstract function toArray();", "title": "" }, { "docid": "4253e6c57e44d403173d6cc056d946df", "score": "0.7054027", "text": "public function toArray()\n {\n $items = [];\n\n foreach ($this->items as $item) {\n $items[] = $item->toArray();\n }\n\n return [\n 'data' => $items,\n 'meta' => $this->meta,\n ];\n }", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.70044434", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.70044434", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.70044434", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.70044434", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.70044434", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.70044434", "text": "abstract public function toArray();", "title": "" }, { "docid": "3e6716d7bebfd822393bedf7c2081d93", "score": "0.69523627", "text": "public function toArray()\n {\n return array_map(function ($value) {\n return is_object($value) && method_exists($value, 'toArray') ? $value->toArray() : $value;\n }, $this->items);\n }", "title": "" }, { "docid": "3b7f72d5ee49f1a275810be0d3300fc1", "score": "0.6949855", "text": "public function toArray()\r\n\t\t{\r\n\t\t\treturn $this->items;\r\n\t\t}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.6947228", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69468683", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69468683", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69468683", "text": "public function toArray() {}", "title": "" }, { "docid": "1e4ad6fecd6cb69c7bc61f3b26d35d1a", "score": "0.6946521", "text": "public function toArray()\n {\n return $this->_items;\n }", "title": "" }, { "docid": "1e4ad6fecd6cb69c7bc61f3b26d35d1a", "score": "0.6946521", "text": "public function toArray()\n {\n return $this->_items;\n }", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69460094", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69460094", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69460094", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69460094", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69460094", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69460094", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69460094", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.69459707", "text": "public function toArray() {}", "title": "" }, { "docid": "f9bc7c6a50bbd0d2bdea5ed843910891", "score": "0.6945384", "text": "public function toArray() {}", "title": "" }, { "docid": "6fd93fb018fe8966766e54ac56183e8a", "score": "0.69376063", "text": "public function toArray()\n {\n return $this->items;\n }", "title": "" }, { "docid": "6fd93fb018fe8966766e54ac56183e8a", "score": "0.69376063", "text": "public function toArray()\n {\n return $this->items;\n }", "title": "" }, { "docid": "6fd93fb018fe8966766e54ac56183e8a", "score": "0.69376063", "text": "public function toArray()\n {\n return $this->items;\n }", "title": "" }, { "docid": "6fd93fb018fe8966766e54ac56183e8a", "score": "0.69376063", "text": "public function toArray()\n {\n return $this->items;\n }", "title": "" }, { "docid": "6f674551ec81242a56bc5b9f77b14d1b", "score": "0.6924084", "text": "public function convert()\n {\n\t\t$results = array();\n\t\tforeach($this->items AS $key => $value) {\n\t\t\tArr::set($results, $key, $value);\n\t\t}\n\t\treturn $results;\n }", "title": "" }, { "docid": "8c3ff55cc4f38f0932907cbd7239eb66", "score": "0.68982345", "text": "public function toArray()\n {\n $result = $this->items;\n\n $keys = array_keys($result);\n foreach ($keys as $key) {\n $value = $result[$key];\n if (is_object($value) && method_exists($value, 'toArray')) {\n $result[$key] = $value->toArray();\n }\n }\n if (!empty($this->fields)) {\n foreach ($this->fields as $fieldName => $field) {\n $fieldConfig = $field->toArray();\n $result[self::FIELDS][$fieldName] = !empty($fieldConfig) ? $fieldConfig : null;\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "7fc99c2cc3164b4113dea6b0e0927de9", "score": "0.6897363", "text": "public function toArray()\n {\n $collection = $this->itens->map(function($value)\n {\n return $value->toArray();\n });\n\n $array['item'] = $collection->toArray();\n return $array;\n }", "title": "" }, { "docid": "252b378a5f4b7ea4fcffca263e365baf", "score": "0.689469", "text": "public function getResolvedItemArray() : array {}", "title": "" }, { "docid": "111daacbd4bbc4c23e4083ae8e839419", "score": "0.68747455", "text": "public function toArray(){\n $array = parent::toArray();\n\n return $array;\n }", "title": "" }, { "docid": "8f41046d031b261f30fa06bc5816089b", "score": "0.6866787", "text": "public function toArray() {\n return (array) $this->_data;\n }", "title": "" }, { "docid": "1b0652f865ca5074bd5ea89f904897a6", "score": "0.6842925", "text": "public function toArray(): array\n\t{\n\t\t$data = [];\n\t\tforeach ($this as $item)\n\t\t{\n\t\t\t$data[] = $item;\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "1b1482210e25e941f0d4ae819f59343f", "score": "0.6827883", "text": "public function toArray()\n {\n return [\n 'data' => $this->items->toArray(),\n 'meta' => [\n 'limit' => $this->limit(),\n 'offset' => $this->offset(),\n 'count' => $this->count(),\n 'total' => $this->total()\n ]\n ];\n }", "title": "" }, { "docid": "3fe5afc026515f86c19aa77740d6f6ae", "score": "0.68205065", "text": "public function __toArray(): array;", "title": "" }, { "docid": "e7501a7682e6029d464e767565916447", "score": "0.6818841", "text": "public function toPrivateArray()\n\t{\n\t\t$item = $this->toArray();\n\n\t\t// place type info fields directly under root\n\t\tif ($this->type_info != '') {\n\t\t\t$type_info = json_decode($this->type_info);\n\t\t\tforeach ($type_info as $type_field => $value) {\n\t\t\t\t$item[$type_field] = $value;\n\t\t\t}\n\t\t}\n\n\t\treturn $item;\n\t}", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.68038094", "text": "public function toArray();", "title": "" }, { "docid": "943675ed82854c43b6996c525bc7d500", "score": "0.680085", "text": "public function item() : array;", "title": "" }, { "docid": "9af22fc467b04e07cb2c00a487e4ae05", "score": "0.67821693", "text": "function toArray( ) {\n return (array) $this;\n }", "title": "" }, { "docid": "3f3bf8ac6544166f67f408f0fa9c1211", "score": "0.6778861", "text": "public function asArray();", "title": "" }, { "docid": "3f3bf8ac6544166f67f408f0fa9c1211", "score": "0.6778861", "text": "public function asArray();", "title": "" }, { "docid": "3f3bf8ac6544166f67f408f0fa9c1211", "score": "0.6778861", "text": "public function asArray();", "title": "" }, { "docid": "8d628cbd9825b6572fe3fd8c13a598f4", "score": "0.67706186", "text": "public function toArray()\n {\n return [\n 'type' => get_class($this),\n 'value' => $this->getValue(),\n ];\n }", "title": "" }, { "docid": "e0cd97c2b53304d89b9bfca9c167b4ce", "score": "0.67467254", "text": "public function toArray()\n {\n // walk $data, add data from relationCache too\n // want this to only contain arrays and scalars, no objects\n return $this->data;\n }", "title": "" }, { "docid": "a94699088bc28a5f3f75d601b905f609", "score": "0.67445904", "text": "public function __toArray()\n\t{\n\t\t$array = array();\n\t\t$array['id'] = $this->getId();\n\t\t$array['type'] = $this->getType();\n\t\t$array['designation'] = $this->getDesignation();\n\n\t\tif(isset($this->properties))\n\t\t\t$array['properties'] = $this->properties;\n\n\t\tif(isset($this->content))\n\t\t\t$array = array_merge($array, $this->content);\n\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "22a6a4cc4665cc11c48ccfb22a2f5ffa", "score": "0.6701173", "text": "public function toArray()\n {\n return parent::toArray();\n }", "title": "" }, { "docid": "ad66ef81e92e940334e8abb0a783e939", "score": "0.6694569", "text": "public function toArray()\n {\n $a = array();\n if ($this->type) {\n $a[\"type\"] = $this->type;\n }\n if ($this->value) {\n $a[\"value\"] = $this->value;\n }\n return $a;\n }", "title": "" }, { "docid": "525fa82ab5b67e5aaa5723da9983ee00", "score": "0.6684451", "text": "public function toArray(): array\n {\n return array_map(fn(PostAggregatorInterface $item) => $item->toArray(), $this->items);\n }", "title": "" }, { "docid": "cdaecd28adc508042b5c45c6b8bad533", "score": "0.66835195", "text": "public function toArray(): array\n {\n return [\n 'type' => $this->type,\n 'details' => $this->details,\n 'provider_object' => $this->provider_object,\n 'object' => $this->object,\n ];\n }", "title": "" }, { "docid": "ea57a5f850aff295a761c699c2b9b3bb", "score": "0.668116", "text": "public function getArray()\r\n {\r\n $name = self::getName();\r\n $temp = (array) ($this);\r\n $array = array();\r\n\r\n foreach ($temp as $property => $value)\r\n {\r\n $property = preg_match('/^\\x00(?:.*?)\\x00(.+)/', $property, $matches) ? $matches[1] : $property;\r\n $getValue = $this->getValue($property);\r\n $value = $getValue ? $getValue : $value;\r\n\r\n if ($value instanceof \\Type\\Generic)\r\n {\r\n $value = $value->toDb();\r\n }\r\n\r\n if ($value instanceof \\Db\\Model)\r\n {\r\n $value = $value->getArray();\r\n }\r\n\r\n $array[$property] = $value;\r\n }\r\n\r\n return $array;\r\n }", "title": "" }, { "docid": "e0ba4f6c335316eb23e32d653a657890", "score": "0.66781574", "text": "public function toArray() {\n\t\t$array = array();\n\t\t$storage = array_values($this->storage);\n\t\tforeach ($storage as $item) {\n\t\t\t$array[] = $item['obj'];\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "dee0b73b74e277dc4db6a08eb9360867", "score": "0.6676434", "text": "public function toArray() {\n\t\t$ret = parent::toArray();\n\t\t$ret['itemLink'] = str_replace($this->handler->_itemname.'.php?', $this->handler->_itemname.'.php?uid='.$this->getVar('uid_owner').'&', $ret['itemLink']);\n\t\t$ret['itemUrl'] = str_replace($this->handler->_itemname.'.php?', $this->handler->_itemname.'.php?uid='.$this->getVar('uid_owner').'&', $ret['itemUrl']);\n\t\t$ret['creation_time'] = formatTimestamp($this->getVar('creation_time', 'e'));\n\t\t$ret['creation_time_short'] = formatTimestamp($this->getVar('creation_time', 'e'), 's');\n\t\t$ret['tribe_title'] = $this->getVar('title','e');\n\t\t$ret['tribe_content'] = $this->getTribePicture();\n\t\t$ret['picture_link'] = $this->getTribePictureLink($ret['itemUrl']);\n\t\t$ret['editItemLink'] = $this->getEditItemLink(false, true, true);\n\t\t$ret['deleteItemLink'] = $this->getDeleteItemLink(false, true, true);\n\t\t$ret['userCanEditAndDelete'] = $this->userCanEditAndDelete();\n\t\t$ret['tribe_senderid'] = $this->getVar('uid_owner','e');\n\t\t$ret['tribe_sender_link'] = $this->getTribeSender();\n\t\t$ret['tribe_sender_avatar'] = $this->getProfileTribeSenderAvatar();\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "38b56552fd461078f7b18affb09e2731", "score": "0.66756433", "text": "public function toArray()\n\t{\n\t\t$array = [];\n\t\t\n\t\tforeach($this->data as $key=>$value) {\n\t\t\tif (is_object($value)) {\n\t\t\t\t$array[$key] = $value->toArray();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$array[$key] = $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "88de4a40f9da710a5eecb61808aa2727", "score": "0.66738516", "text": "public function to_array() {\n\t\treturn get_object_vars( $this );\n\t}", "title": "" }, { "docid": "54bba47329bd4acc07bcee600d795752", "score": "0.66655463", "text": "public function toArray()\n {\n return array_map(function ($value) {\n return $value instanceof Arrayable ? $value->toArray() : $value;\n }, $this->items);\n }", "title": "" }, { "docid": "54bba47329bd4acc07bcee600d795752", "score": "0.66655463", "text": "public function toArray()\n {\n return array_map(function ($value) {\n return $value instanceof Arrayable ? $value->toArray() : $value;\n }, $this->items);\n }", "title": "" }, { "docid": "54bba47329bd4acc07bcee600d795752", "score": "0.66655463", "text": "public function toArray()\n {\n return array_map(function ($value) {\n return $value instanceof Arrayable ? $value->toArray() : $value;\n }, $this->items);\n }", "title": "" }, { "docid": "1dd5492b92823f1ecb0e190f6b96f48d", "score": "0.6653581", "text": "public function toArray() : array {}", "title": "" }, { "docid": "2b0bf2340c56b17476b99badc2f07019", "score": "0.6647508", "text": "function toArray() ;", "title": "" } ]
1bc3e5bd14ec2db5aa2dc6fa10d9b80e
Get the value of membre_id
[ { "docid": "250a345f711c8c24ae1a3b9c689c4eb6", "score": "0.779726", "text": "public function getMembre_id()\n {\n return $this->membre_id;\n }", "title": "" } ]
[ { "docid": "271d6c7e40a210a719bbaa872c0ffa7a", "score": "0.8024412", "text": "Public function get_id_membre ()\n\t\t\t{\n\t\t\t\treturn $this-> id_membre;\n\t\t\t}", "title": "" }, { "docid": "94d83365ae653b1983c8b0e5d0d4a099", "score": "0.69281393", "text": "private function getIdMembre ($login){\n if($this->connexion instanceof \\PDO){\n $query=\"SELECT idmembre from membre where login=:login\";\n $stmt = $this->connexion->prepare($query);\n $stmt->bindParam(\":login\",$login,\\PDO::PARAM_STR);\n $stmt->execute();\n foreach($stmt as $membre){\n return $membre[0];\n }\n }\n return null;\n }", "title": "" }, { "docid": "c94b67bb8f150602828c109d42349f3b", "score": "0.64904505", "text": "public function getMemberID(){\n \n $memberid = \"-1\"; // set invalid default value\n $db = JFactory::getDBO();\n $query = $db->getQuery(true);\n \n $user = JFactory::getUser();\n \n // Get joomlaid\n $userjoomlaid = $user->id;\n \n // get memberid\n $query->select('MemberID');\n $query->from('members');\n $query->where('joomlauserid = '.$db->quote($userjoomlaid));\n \n $db->setQuery($query);\n \n $db->execute ();\n $memberid = $db->loadResult (); // now have member id\n \n return $memberid;\n }", "title": "" }, { "docid": "5fcbae2ef0b4d84554d5ec6e5b925ddd", "score": "0.6388407", "text": "function getPersonID()\n {\n return $this->getValueByFieldName('person_id');\n }", "title": "" }, { "docid": "9eb85e029090dc46c1061d81a0e55f5c", "score": "0.63002694", "text": "function get_member_id($id_costumer)\n\t\t{\n\t\t\t$query = $this->db->get_where('tb_costumer', array('id_costumer' => $id_costumer,'kode_kantor' => $this->session->userdata('ses_kode_kantor') ));\n\t\t\tif($query->num_rows() > 0)\n\t\t\t{\n\t\t\t\treturn $query->row();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d71b68368c6ee137a135c832de3ff29c", "score": "0.6201459", "text": "Public function set_id_membre ($idm)\n\t\t\t{\n\t\t\t\t $this-> id_membre = $idm;\n\t\t\t}", "title": "" }, { "docid": "97c86c2f194ec7be7e3d6c136ac534b4", "score": "0.6189871", "text": "public function getID_MEMBRE()\n {\n return $this->ID_MEMBRE;\n }", "title": "" }, { "docid": "2b528eb775072d9deaa013510feb062e", "score": "0.6157198", "text": "public function getID() { // GET ID \n return $this->utilisateur_id; // SET ID\n }", "title": "" }, { "docid": "467407e5fa3e564b84627e6439841e84", "score": "0.6142291", "text": "public function getMemberID(){\n\t\t$items= 'COL';\n\t\t$stmt = $this->sql->Execute($this->sql->Prepare(\"SELECT MEM_GENID FROM webmin_membership ORDER BY MEM_ID DESC LIMIT 1 \"));\n\t\tprint $this->sql->ErrorMsg();\n\n\t\tif($stmt->RecordCount() > 0){\n\t\t\t$obj = $stmt->FetchNextObject();\n\t\t\t$order = substr($obj->MEM_GENID,3,10000);\n\t\t\t$order = $order + 1;\n\t\t\tif(strlen($order) == 1){\n\t\t\t\t$orderno = $items.'000'.$order;\n\t\t\t}else if(strlen($order) == 2){\n\t\t\t\t$orderno = $items.'00'.$order;\n\t\t\t}else if(strlen($order) == 3){\n\t\t\t\t$orderno = $items.'0'.$order;\n\t\t\t}else{\n\t\t\t\t$orderno = $items.$order;\n\t\t\t}\n\t\t}else{\n\t\t\t$orderno = $items.'0001';\n\t\t}\n\t}", "title": "" }, { "docid": "32a47230c51d3b2fd88dedfa09791f55", "score": "0.6132538", "text": "public function getId()\n {\n return $this->member_id;\n }", "title": "" }, { "docid": "e2d3d6aaaa2e1c8310528efeec6ce699", "score": "0.6090914", "text": "private function getMemberId()\n\t{\n\t\t$urabe = $this->urabe->get_clone();\n\t\t$sql = \"SELECT memberId FROM chat_members cm WHERE cm.chatId = @1 AND cm.userId = @2\";\n\t\t$sql = $urabe->format_sql_place_holders($sql);\n\t\t$this->memberId = $urabe->select_one($sql, array($this->chatId, $this->userAccess->userId));\n\t}", "title": "" }, { "docid": "b4031b34d34d28519d36b1b15a50f13f", "score": "0.6039654", "text": "function getId ($pseudo)\n{\n $bdd = new Connection();\n $stmt = $bdd->prepare(\"SELECT * FROM tmembre_inscrit WHERE pseudo=?\");\n $stmt->bindValue(1, $pseudo);\n $stmt->execute();\n return $stmt->rowCount() == 1 ? $stmt->fetch()[\"id_membre\"] : - 1;\n}", "title": "" }, { "docid": "d906dfd1fe6d69681554e986dd5e3e33", "score": "0.6008879", "text": "public function mrow_id($r)\n {\n return $r['ID_MEMBER'];\n }", "title": "" }, { "docid": "4b020bff321df3ffe8bc392f2b81fca0", "score": "0.59606254", "text": "function getMemberId(){\n return $this->memberId; \n }", "title": "" }, { "docid": "4d0bd4ae244137259374fb08364002ad", "score": "0.5919276", "text": "Public function membre ( $idm, $nom_mem, $pre_mem, $dna_mem, $mail_mem, $tel_mem, $log_mem, $mdp_membre, $etat_mem)\n\n\t\t\t{\n\t\t\t\t$this -> id_membre = $idm;\n\t\t\t\t$this -> nom_membre = $nom_mem;\n\t\t\t\t$this -> prenom_membre = $pre_mem;\n\t\t\t\t$this -> date_de_naissance_membre = $dna_mem;\n\t\t\t\t$this -> mail_membre = $mail_mem;\n\t\t\t\t$this -> telephone_membre = $tel_mem;\n\t\t\t\t$this -> login_membre = $log_mem;\n $this -> mot_de_passe_membre = $mdp_mem;\n\t\t\t\t$this -> commentaire_membre = $comm_mem;\n $this -> etat_membre = $etat_mem;\n\t\t\t}", "title": "" }, { "docid": "0771e3c211594a8bc1a682c1dc44e2f6", "score": "0.59066385", "text": "function warquest_db_member_pid($username, $password) {\r\n\t\r\n\t$pid=0;\r\n\t$query = 'select pid from member where username=\"'.$username.'\" and password=\"'.md5($password).'\"';\t\r\n\t$result = warquest_db_query($query);\r\n\t\r\n\t$data=warquest_db_fetch_object($result);\r\n\tif (isset($data->pid)) {\r\n\t\t$pid = $data->pid;\r\n\t}\r\n\treturn $pid;\r\n}", "title": "" }, { "docid": "deef30f112d02b7b6ae2b2f35131374b", "score": "0.58567417", "text": "public function get_id();", "title": "" }, { "docid": "4127e95dbfab4bedbbad7d02502994fd", "score": "0.5839309", "text": "public function getId() : ?string { return $this->m_id; }", "title": "" }, { "docid": "813ae5a46a750fa88f629e8cabfe9c48", "score": "0.5823581", "text": "protected function getID()\n {\n return $this->idremessa;\n }", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.5799969", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.5799969", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.5799969", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.5799969", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.5799969", "text": "public function getID();", "title": "" }, { "docid": "8459d401539036654cc690d2b656a5c2", "score": "0.5759275", "text": "public function get_ID();", "title": "" }, { "docid": "927b852d543d82ccdbfcbeb53171f2a2", "score": "0.57559", "text": "function get_metadatum_id() {\n return $this->get_mapped_property('metadatum_id');\n }", "title": "" }, { "docid": "577d28cfcd03fb1ab8a1044edd89428c", "score": "0.5753451", "text": "public function getallmembre()\n\t\t\t{\n\t\t\t\t$data = $this->id_membre;\n\t\t\t\t$data = $data.$this->nom_membre;\n\t\t\t\t$data = $data.$this->prenom_membre;\n\t\t\t\t$data = $data.$this->date_de_naissance_membre;\n\t\t\t\t$data = $data.$this->mail_membre;\n\t\t\t\t$data = $data.$this->telephone_membre;\n\t\t\t\t$data = $data.$this->login_membre;\n\t\t\t\t$data = $data.$this->mot_de_passe_membre;\n\t\t\t\t$data = $data.$this->commentaire_membre;\n\t\t\t\t$data = $data.$this->etat_membre;\n\n\t\t\t\treturn $data;\n\t\t\t}", "title": "" }, { "docid": "d530276b264f41ac01011d0a6d63d709", "score": "0.5747615", "text": "function get_membre($pseudo){\r\n global $bdd;\r\n //requete\r\n $req = $bdd->query('\r\n SELECT id, pseudo, mdp, admin, actif\r\n FROM membres\r\n WHERE pseudo=\"'.$pseudo.'\"');\r\n \r\n if(!$req){ //si le pseudo n'existe pas\r\n $membre = 0;\r\n } else { //entree des donnees dans un tableau\r\n $membre = $req->fetch();\r\n $req->closeCursor();\r\n }\r\n \r\n return $membre;\r\n}", "title": "" }, { "docid": "52746d48d5bbf416f18657a90d3871ae", "score": "0.57374114", "text": "public function get_member_id()\n\t{\n\t\tif (empty($this->member))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn (int)$this->member->id;\n\t}", "title": "" }, { "docid": "e6e7b9e52cde72edab66e95dd3446688", "score": "0.5727011", "text": "public function id() { return $this->_m_id; }", "title": "" }, { "docid": "6b8bdf65684f8d82bbb1bed5a0e59a33", "score": "0.57267255", "text": "function get_membership_id(){\n return $this->membership_id;\n }", "title": "" }, { "docid": "0cb0aa01258bf61bca97c4701ed6311d", "score": "0.5723105", "text": "public function get_identificacion(){\n\t\treturn $this->_identificacion;\n\t}", "title": "" }, { "docid": "b230dcd97e1f8bf504b658f7e66af49a", "score": "0.57226175", "text": "public function __getCrimeId( ){\n\t\treturn $this->crimeId;\n\t}", "title": "" }, { "docid": "579dbb022fe2396cf09e24d6198c6691", "score": "0.571498", "text": "function getId_nom()\n {\n if (!isset($this->iid_nom) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_nom;\n }", "title": "" }, { "docid": "579dbb022fe2396cf09e24d6198c6691", "score": "0.571498", "text": "function getId_nom()\n {\n if (!isset($this->iid_nom) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_nom;\n }", "title": "" }, { "docid": "4cf0672f299912b8e7c2fa9ed7e0a702", "score": "0.57000935", "text": "public function getId()\n {\n return $this->registros['empresa_id'];\n }", "title": "" }, { "docid": "733f78fefd467c846300bfe6ac2ebc8c", "score": "0.56854856", "text": "public function getSubjectID($mamon){\r\n\t\t\t$sql = \"SELECT * FROM monhoc WHERE MAMONHOC='$mamon'\";\r\n\t\t\t$this->query_DB($sql);\r\n\t\t\tif($this->num_rows() != 0){\r\n\t\t\t\t$data = mysqli_fetch_array($this->result);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t$data = 0;\r\n\t\t\t}\r\n\t\t\treturn $data;\r\n\t\t}", "title": "" }, { "docid": "3cfdd962e18e65d2808293f5c255e74b", "score": "0.56830174", "text": "public function getMemberId()\n {\n return Hash::get($this->data, 'web_id');\n }", "title": "" }, { "docid": "f32967c0b234941c23b3fb1a4587745f", "score": "0.56775004", "text": "public function getIMDbID()\n\t\t{\n\t\t\treturn $this->getAttribute(\"imdb_id\");\t\n\t\t}", "title": "" }, { "docid": "1493b16437d80391069adbb16f2deedb", "score": "0.5656987", "text": "function getId() {\n return $this->getFieldValue('id');\n }", "title": "" }, { "docid": "227fa2bfbca2b10fb5bd08eb24d20a5e", "score": "0.5656616", "text": "function obtener_id_materia($id_materia_periodo_lectivo){\n $oDB=$this->getDB();\n $sQuery=\"SELECT id_materia from ul_materia_periodo_lectivo where id=$id_materia_periodo_lectivo\";\n $result=$oDB->getFirstRowQuery($sQuery);\n $str=\"\";\n if(is_array($result) && count($result)>0){\n $str=$result[0];\n }\n return $str;\n }", "title": "" }, { "docid": "227fa2bfbca2b10fb5bd08eb24d20a5e", "score": "0.5656616", "text": "function obtener_id_materia($id_materia_periodo_lectivo){\n $oDB=$this->getDB();\n $sQuery=\"SELECT id_materia from ul_materia_periodo_lectivo where id=$id_materia_periodo_lectivo\";\n $result=$oDB->getFirstRowQuery($sQuery);\n $str=\"\";\n if(is_array($result) && count($result)>0){\n $str=$result[0];\n }\n return $str;\n }", "title": "" }, { "docid": "227fa2bfbca2b10fb5bd08eb24d20a5e", "score": "0.5656616", "text": "function obtener_id_materia($id_materia_periodo_lectivo){\n $oDB=$this->getDB();\n $sQuery=\"SELECT id_materia from ul_materia_periodo_lectivo where id=$id_materia_periodo_lectivo\";\n $result=$oDB->getFirstRowQuery($sQuery);\n $str=\"\";\n if(is_array($result) && count($result)>0){\n $str=$result[0];\n }\n return $str;\n }", "title": "" }, { "docid": "5a970902a0ab85ce94885e7aa9377f58", "score": "0.56531864", "text": "public function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}", "title": "" }, { "docid": "7e16e07aa7b1c7a4286e197c57ff1e90", "score": "0.56105286", "text": "function GetFieldsValue($sql){\n\t$conn=db_connect(HOST,USER,PASS,DB,PORT);\n\t$results=query($sql,$conn);\n\tif($results) $mem = fetch_object($results);\n\treturn($mem->id);\n}", "title": "" }, { "docid": "2d8df8c0826e6e92091a2969bdb5b60d", "score": "0.56003326", "text": "function uid() {\n\t\treturn ($this->profil['userid'] != '') ? $this->profil['userid'] : false;\n\t}", "title": "" }, { "docid": "e8512bfcd9ee236b4db0961952cdc2a2", "score": "0.55997837", "text": "public function getIdUtilisateur()\n {\n return $this->Id_utilisateur;\n }", "title": "" }, { "docid": "8616ae320245b70bc420815161c003f7", "score": "0.55910707", "text": "private function getuserid() {\n\n\n $em = $this->getDoctrine()->getManager();\n $user_security = $this->container->get('security.context');\n // authenticated REMEMBERED, FULLY will imply REMEMBERED (NON anonymous)\n if ($user_security->isGranted('IS_AUTHENTICATED_FULLY')) {\n $user = $this->get('security.context')->getToken()->getUser();\n $user_id = $user->getId();\n } else {\n $user_id = 0;\n \n }\n\n return ($user_id);\n \n }", "title": "" }, { "docid": "c01c98ef575e514e481125619e8f0522", "score": "0.55824566", "text": "function getId()\n {\n return $this->getFieldValue('id');\n }", "title": "" }, { "docid": "0be604810acdd8e43815ef7de49c1547", "score": "0.5580843", "text": "public function traer_codigo_padre($id_padre){\n $query = sprintf(\"SELECT codigo FROM herencia WHERE id_usuario = %d \",$id_padre);\n $result = $this->db->getData($query);\n\n if(count($result)>0){\n return $result[0][\"codigo\"];\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "1363f6ea84dcc3c19bb2e99920615d1a", "score": "0.55781955", "text": "public function get_id($pawprint){\n\t\t\n\t\t\t$this->db->select('id');\n\t\t\t$this->db->from('person');\n $this->db->where('pawprint', $pawprint);\n \n\t\t\t$query = $this->db->get();\n\t\t\treturn $query->result();\n\t\t}", "title": "" }, { "docid": "4fc67d4eef245748bf396c672ba1b3c4", "score": "0.55746275", "text": "function get_id_prof_principal() {\r\n\t\t\t\r\n\t\t$sql=\"SELECT id_ens\r\n\t\t\t\t FROM les_classes\r\n\t\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\t\t\treturn\t$ligne['id_ens'];\r\n\t\t}\r\n\t\telse return 0;\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "6a5362b9996d132ebb8967b997048df2", "score": "0.5573971", "text": "function get_id_for() {\r\n\r\n\t\t$sql=\"SELECT id_for\r\n\t\t\t FROM les_classes C\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\t\t\treturn $ligne['id_for'];\r\n\t\t}\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "f0e09023b64b5a4e654db50ccaa228f6", "score": "0.557296", "text": "public function getPersonalId($id){\n $params =array();\n $params['id'] = $id;\n $q = \"SELECT personal_id FROM user WHERE id = :id\";\n $result = $this->fetchOne($q, $params);\n if (isset($result['personal_id'])){\n return $result['personal_id'];\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "8ae356033e39c27e510d5ea26714b55a", "score": "0.5569171", "text": "function getId($row) {\r\n\t\treturn $row['uid'];\r\n\t}", "title": "" }, { "docid": "e19d1d4288b96eb48b98e53de2044c5e", "score": "0.55485976", "text": "public function getMemberId()\n {\n return $this->_id_member;\n }", "title": "" }, { "docid": "4dc730e1b6ba1592af32058dc750fcfc", "score": "0.55467635", "text": "function find_member_by_id($val)\n{\n global $db;\n $results = array();\n $sql = \"SELECT * FROM members WHERE id = '{$db->escape($val)}' LIMIT 1 \";\nif($result = $db->fetch_assoc($sql))\n return $result;\n else\n return null;\n return $result;\n\n}", "title": "" }, { "docid": "bd18f5c26fb77b96dfd860990272766e", "score": "0.55451536", "text": "public function id() {\n\t\treturn $this->getValue(static::$ID_FIELD);\n\t}", "title": "" }, { "docid": "e551669bc57cb930d1352add813a25cd", "score": "0.5542568", "text": "function get_master_id(){\r\n\t\t$result=$this->m_perawatan->get_master_id();\r\n\t\techo $result;\r\n\t}", "title": "" }, { "docid": "ceef214a922fe19ed58a610852c6fbee", "score": "0.5540183", "text": "public function getRecId()\n {\n return $this->rec_id;\n }", "title": "" }, { "docid": "550dd4a6165d2bb55a6f084a3cc3426f", "score": "0.55326986", "text": "public function getProfileID() \n {\n return isset($this->data['PROFILEID']) ? $this->data['PROFILEID'] : null;\t\t\n \t}", "title": "" }, { "docid": "28c711f0ab46d7d2df8ff1582fa2fc72", "score": "0.5530152", "text": "public function getUserID();", "title": "" }, { "docid": "12f808b0a2e2b68a11cd3c4007ba57e7", "score": "0.5526558", "text": "public function getMemberId()\n {\n return $this->member_id;\n }", "title": "" }, { "docid": "12f808b0a2e2b68a11cd3c4007ba57e7", "score": "0.5526558", "text": "public function getMemberId()\n {\n return $this->member_id;\n }", "title": "" }, { "docid": "12f808b0a2e2b68a11cd3c4007ba57e7", "score": "0.5526558", "text": "public function getMemberId()\n {\n return $this->member_id;\n }", "title": "" }, { "docid": "12f808b0a2e2b68a11cd3c4007ba57e7", "score": "0.5526558", "text": "public function getMemberId()\n {\n return $this->member_id;\n }", "title": "" }, { "docid": "026560dfa9bac23063ee4e5744199a07", "score": "0.5525973", "text": "public function getUtilisateur_id_utilisateur()\n {\n return $this->utilisateur_id_utilisateur;\n }", "title": "" }, { "docid": "7ee6b19f698409556909e08847427154", "score": "0.5519814", "text": "public function MemberID($setTo = null)\n\t{\n\t\tif ($setTo) $this->MemberID = $setTo;\n\t\treturn $this->MemberID;\n\t}", "title": "" }, { "docid": "08ea2d7f4c2abfbb0baea71400fb1b6a", "score": "0.5517472", "text": "public function getIdPerson(): int\n {\n return $this->idPerson;\n }", "title": "" }, { "docid": "4c17376e5b8ccb85ee07485370e60336", "score": "0.5515919", "text": "public function getIdUtilisateur()\n {\n return $this->m_idUtilisateur;\n }", "title": "" }, { "docid": "01220846df605c441c9abc33c69bedef", "score": "0.5509213", "text": "function uid() { return $this->userldaparray['uidNumber'];}", "title": "" }, { "docid": "0602518590d856e2272e41b8f092aa29", "score": "0.5499005", "text": "private function cekIdPengguna()\n {\n $id_pengguna = $this->session->userdata(\"id\");\n return $id_pengguna;\n }", "title": "" }, { "docid": "e5988a41227a5a51dbede18417febb7b", "score": "0.54952", "text": "function getUserId(){\n global $user,$mysqli;\n $query = \"SELECT id FROM members WHERE username = '$user'\";\n $ergebnis = mysqli_query($mysqli, $query);\n $id = mysqli_fetch_object($ergebnis)->id;\n return $id;\n}", "title": "" }, { "docid": "775288872e86bbc1be804c9d52becdfa", "score": "0.5493854", "text": "public function id() {\n return $this->get($this->_get_id_column_name());\n }", "title": "" }, { "docid": "cc7e096053930890825d8c10b0490ee6", "score": "0.549276", "text": "public function getUid()\n\t{\n\t\treturn $this->getField('uid');\n\t}", "title": "" }, { "docid": "85421f114169c291adf7f4a3ab587dc1", "score": "0.54927146", "text": "function id_memo($p_quien_genera){\n global $db;\n \n $sql = $db->query(\"SELECT MAX(id) AS id FROM memo WHERE id_quien_genera='{$p_quien_genera}'\");\n if($result = $db->fetch_assoc($sql))\n return $result;\n else\n return null;\n \n }", "title": "" }, { "docid": "e840b7fa7d0df4362429f9aaa233df3d", "score": "0.54857415", "text": "public function traer_padre_id($id_usuario){\n $query = sprintf(\"SELECT herencia.padre FROM herencia WHERE herencia.id_usuario = %d\",$id_usuario);\n $result = $this->db->getData($query);\n //var_dump($result);\n if (count($result)>0) {\n return $result[0]['padre'];\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "02671e9f3bedcb6418e494230f572bbd", "score": "0.5479946", "text": "function getUserID() {\n\t\treturn $this->data_array['user_id'];\n\t}", "title": "" }, { "docid": "fa58de794b9250a8dd19bd260579dcc7", "score": "0.54768115", "text": "public function getPersNr() {\r\n \treturn $this->persnr;\r\n }", "title": "" }, { "docid": "a76a973cc742d9023be554e7b1054a69", "score": "0.54722583", "text": "function get_member()\n\t{\n\t\t$member = array( 'id' => 0 );\n\n\t\t$this->loginkey = $this->check_md5( $this->ipsclass->input['loginkey'] );\n\t\t$this->securekey = $this->check_md5( $this->ipsclass->input['securekey'] );\n\t\t$this->member_id = trim(intval($this->ipsclass->input['mid'] ) );\n\n\t\tif ( ! $this->loginkey or ! $this->securekey )\n\t\t{\n\t\t\treturn $member;\n\t\t}\n\n\t\t$this->ipsclass->DB->query( \"SELECT m.*, g.* FROM ibf_members m\n\t\t\t\t\t LEFT JOIN ibf_groups g ON ( m.mgroup=g.g_id )\n\t\t\t\t\t WHERE member_login_key='{$this->loginkey}' and id='{$this->member_id}'\" );\n\n\t\t$member = $this->ipsclass->DB->fetch_row();\n\n\t\treturn $member;\n\t}", "title": "" }, { "docid": "d3688390a8820157729374b127b52d2d", "score": "0.5472104", "text": "public function get_user_id()\n\t{\n\t\tif (empty($this->member))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn array($this->id, (int) $this->member->id);\n\t}", "title": "" }, { "docid": "3d680a7d9935ddc35b5a7ea3ef4f324a", "score": "0.5467716", "text": "public function getIdUtilisateur()\n\t{\n\t\treturn $this->_idUtilisateur;\n\t}", "title": "" }, { "docid": "5e2c2efa606cbaddb01fbb10891bcb51", "score": "0.5465324", "text": "function getcampoid() {\n\t\treturn (string) $this->campoid;\n\t}", "title": "" }, { "docid": "0f614346735992a3fc00f12abe347834", "score": "0.5463386", "text": "function getIdValue()\n {\n }", "title": "" }, { "docid": "0f614346735992a3fc00f12abe347834", "score": "0.5463386", "text": "function getIdValue()\n {\n }", "title": "" }, { "docid": "f397869899afe75d8408ba347b631a57", "score": "0.54631686", "text": "public function getModId();", "title": "" }, { "docid": "8d8ed2a31b76b97185c4cbe48a305de1", "score": "0.5461671", "text": "public function getId(){\n\t\t\treturn($this->fetchid);\n\t\t}", "title": "" }, { "docid": "cdbc407fe7ee493f5b9a74ce5473245a", "score": "0.5460696", "text": "public function readUserId($pdo){\n $stmt = $pdo->prepare(\"SELECT uid from ussd_user WHERE phone=?\");\n $stmt->execute([$this->getPhone()]);\n //Getting the user ID FROM THE ASSOCIATIVE ARRAY\n $row = $stmt->fetch();\n return $row['uid'];\n }", "title": "" }, { "docid": "62f6e517c5b7ee6a701f054d400be501", "score": "0.5460494", "text": "public function getId_medico()\n {\n return $this->id_medico;\n }", "title": "" }, { "docid": "3657834dba16094daf32dc507dbcc355", "score": "0.5457348", "text": "public function getIDProjeto($perfil_id){\n $id= $this->getUserId($perfil_id);\n $get = new AccessDB(\"SELECT id FROM projeto WHERE utilizador_id=\".$id);\n $response=$get->procurar();\n $id=mysqli_fetch_assoc($response);\n $id=$id['id'];\n return $id;\n }", "title": "" }, { "docid": "37d4fbcc36deb28c28610e2ae27718a7", "score": "0.5456856", "text": "function getUniqueID(){\n\n\t\t$maxID = $this->Model->maxFrom('id_kampanye','infokampanye');\n\n\t\treturn (int) $maxID;\n}", "title": "" }, { "docid": "531bbf09690907176853c8f58796eb36", "score": "0.5456096", "text": "Public function get_id_promenade()\n\t\t\t{\n\t\t\t\treturn $this-> id_promenade;\n\t\t\t}", "title": "" }, { "docid": "b4444e706590341a198c8e7a34208e0e", "score": "0.54530996", "text": "public function getLastMemberId(){\n $sql = 'SELECT MAX(id_member) as id_member\n FROM '._DB_PREFIX_.$this->nameTable;\n\n $data=$this->dao->query($sql);\n //var_dump($data);\n\n return $data->fetchAll(\\PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "076a12ebc31f6abbace3674b2cf6ee4f", "score": "0.54488856", "text": "function get_id() {\r\n return $this->basenode->get_attribute('id');\r\n }", "title": "" }, { "docid": "635688bfa13cc606cc36eee3af7c7b49", "score": "0.5445331", "text": "function getCompanyIDForMemberID($memberID) {\n\t\t$result = resourceForQuery(\"SELECT `companyID` FROM `memberCompany` WHERE `memberID`=$memberID LIMIT 1\");\n\n\t\tif (mysql_num_rows($result) == 1) {\n\t\t\treturn mysql_result($result, 0, \"companyID\");\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "42e5f9d19e54f3bb941d7b5bfad725ce", "score": "0.5444568", "text": "public function getUserid()\r\n {\r\n return $this->get(self::_USERID);\r\n }", "title": "" }, { "docid": "42e5f9d19e54f3bb941d7b5bfad725ce", "score": "0.5444568", "text": "public function getUserid()\r\n {\r\n return $this->get(self::_USERID);\r\n }", "title": "" }, { "docid": "42e5f9d19e54f3bb941d7b5bfad725ce", "score": "0.5444568", "text": "public function getUserid()\r\n {\r\n return $this->get(self::_USERID);\r\n }", "title": "" }, { "docid": "42e5f9d19e54f3bb941d7b5bfad725ce", "score": "0.5444568", "text": "public function getUserid()\r\n {\r\n return $this->get(self::_USERID);\r\n }", "title": "" }, { "docid": "42e5f9d19e54f3bb941d7b5bfad725ce", "score": "0.5444568", "text": "public function getUserid()\r\n {\r\n return $this->get(self::_USERID);\r\n }", "title": "" } ]
fc1854ae5061994c2f70a96d4c19b573
Create a new job instance.
[ { "docid": "d52bbde352f41f8bcaf1ad5fd969f6f4", "score": "0.0", "text": "public function __construct($book)\n {\n $this->book = $book;\n $this->user_id = $book->user_id;\n $this->attachcode = $book->attachcode;\n }", "title": "" } ]
[ { "docid": "63d2d26471d2f816abfe8909a8b2bfb2", "score": "0.68703246", "text": "public function testCreateJob()\n {\n }", "title": "" }, { "docid": "9ab8646cd7417a446718660f3791329d", "score": "0.66976225", "text": "public function create($jobid)\n {\n \n\n }", "title": "" }, { "docid": "31e03df002160961fb37e349ae4a3151", "score": "0.6640514", "text": "function new_job($data) {\r\n $ret = $this->restPost(\"/api/jobs\",$data);\r\n return $ret;\r\n }", "title": "" }, { "docid": "0dbf6037c1d7747df497f3241c0be1af", "score": "0.66291076", "text": "public function createJobObject($payload)\n {\n $job = new Job([\n 'title' => $payload['JobTitle'],\n 'name' => $payload['JobTitle'],\n 'description' => $payload['Description'],\n 'url' => $payload['Url'],\n 'maximumSalary' => $payload['SalaryMax'],\n 'sourceId' => $payload['Id'],\n 'alternateName' => $payload['NormalizedJobTitle'],\n ]);\n\n $job->setDatePostedAsString($payload['PostDate'])\n ->setMinimumSalary($payload['SalaryMin'])\n ->setLocation($payload['FormattedCityState'])\n ->setCompany($payload['Company'])\n ->setCompanyDescription($payload['CompanyProfileDescription'])\n ->setCompanyEmail($payload['ApplyEmail'])\n ->setCompanyLogo($payload['CompanyLogo'])\n ->setCompanyUrl($payload['CompanyProfileUrl'])\n ->setCountry($payload['Country'])\n ->setCity($payload['City'])\n ->setState($payload['State'])\n ->setPostalCode($payload['Zip']);\n\n $this->setEmploymentType($job, $payload['WorkStatus']);\n $this->setOccupationalCategory($job, $payload['CategoryDisplay']);\n\n return $job;\n }", "title": "" }, { "docid": "29fb8c2fb932f7586a3838755ca4be76", "score": "0.6528774", "text": "public function store()\n\t{\n\t\t$job = new Job();\n\n $job->title = \\Input::get('title');\n $job->content = \\Input::get('content');\n\n $job->save();\n\n return $job;\n\t}", "title": "" }, { "docid": "f42b97ecf53eabe5fa51d2983f4b76a9", "score": "0.6475155", "text": "private static function create_job_service()\n {\n // Instantiate the client\n $client = new Google_Client();\n\n // Authorize the client using Application Default Credentials\n // @see https://developers.google.com/identity/protocols/application-default-credentials\n $client->useApplicationDefaultCredentials();\n $client->setScopes(array('https://www.googleapis.com/auth/jobs'));\n\n // Instantiate the Cloud Job Discovery Service API\n $jobService = new Google_Service_JobService($client);\n return $jobService;\n }", "title": "" }, { "docid": "f42b97ecf53eabe5fa51d2983f4b76a9", "score": "0.6475155", "text": "private static function create_job_service()\n {\n // Instantiate the client\n $client = new Google_Client();\n\n // Authorize the client using Application Default Credentials\n // @see https://developers.google.com/identity/protocols/application-default-credentials\n $client->useApplicationDefaultCredentials();\n $client->setScopes(array('https://www.googleapis.com/auth/jobs'));\n\n // Instantiate the Cloud Job Discovery Service API\n $jobService = new Google_Service_JobService($client);\n return $jobService;\n }", "title": "" }, { "docid": "c60c6826959a19de772a4e6023560a51", "score": "0.64371586", "text": "public function __construct( Job $job )\n {\n $this->job = $job;\n }", "title": "" }, { "docid": "9fdba71085b8ad91acfce8dff6d8fcc6", "score": "0.6426884", "text": "public function testCreateJob()\n {\n $this->createCategories();\n $user = $this->createTestUser('employer');\n $user->companies()->save(factory(\\App\\Entities\\Company::class)->make());\n\n $this->actingAs($user)\n ->visit('/my-company')\n ->click('Nueva Oferta')\n ->type('NewJobTest', 'name')\n ->select('1', 'occupation_id')\n ->select('1', 'contract_type_id')\n ->type('Un bonito empleo', 'description')\n ->press('save')\n ->seePageIs(route('companies.jobs.show', [1, 1]))\n ->seeInDatabase('jobs', [\n 'id' => '1',\n 'name' => 'NewJobTest',\n 'occupation_id' => '1',\n 'contract_type_id' => '1',\n 'company_id' => '1'\n ]);\n }", "title": "" }, { "docid": "587ba826938350d2f7cb5642d2bff8eb", "score": "0.63899404", "text": "public function created(Job $job)\n {\n //\n }", "title": "" }, { "docid": "418357580e94c4776a18e1e50a81230e", "score": "0.62574", "text": "public function store(JobStoreRequest $request)\n {\n $job = Job::create(\n $request->only([\n 'title',\n 'customer_name',\n 'inquiry_number',\n 'type',\n 'amount',\n 'quantity',\n 'material',\n 'weight',\n 'start_date',\n 'end_date',\n ])\n );\n\n return $job;\n }", "title": "" }, { "docid": "4f0b620af55e5a4889f0400974e5227a", "score": "0.61953765", "text": "private function createModels()\n\t{\n\t\t$this->_job = new MTDProjectJob();\n\n\t\t//set form data values\n\t\tif (isset($this->_projectComponent->jobsFormData[$this->_index])) {\n\t\t\t$formData = $this->_projectComponent->jobsFormData[$this->_index];\n\n\t\t\t\n\t\t\t// Get job type service id\n\t\t\t$jobTypeService = JobTypeService::model()->byJobTypeAndService(\n\t\t\t\tJobType::TYPE_TRANSLATE,\n\t\t\t\tService::TYPE_METADATA\n\t\t\t)->find();\n\t\t\t\n\t\t\t//prepare job attributes\n\t\t\t$langs = Yii::app()->request->getParam('Language');\n\t\t\t$lang_hash = Yii::app()->request->getParam('job_language_hash_'.$this->_index);\n\t\t\t$attributes = $formData;\n\t\t\t$attributes += [\n\t\t\t\t'status' => MTDProjectJob::STATUS_NEW,\n\t\t\t\t'target_lang_id' => $langs[$lang_hash],\n\t\t\t\t'service_type_id' => $this->_job->projectAPI()->getServiceTypeIdByAbbr('dialogue'),\n\t\t\t\t'project_id' => 1,\n\t\t\t\t'parentJobHash' => 0,\n\t\t\t\t'duration' => isset($_POST['duration'])?$_POST['duration'][$this->_index]:'',\n\t\t\t\t'job_type_service_id' => ($jobTypeService instanceof JobTypeService) ? $jobTypeService->id : '',\n\t\t\t\t'source_lang_id' => Language::ENGLISH,\n\t\t\t];\n\t\t\t$this->_job->setAttributes($attributes);\n\t\t\t$this->_job->subtitle_provided = 1;\n\t\t\t$this->_job->job_type_id = JobType::TYPE_TRANSLATE;\n\t\t\t$this->waitForUsersPostInvitation($this->_index);\n\t\t}\n\n\t}", "title": "" }, { "docid": "018589bacbd5e671a7b5645623e7eb0f", "score": "0.61468816", "text": "public function create(Request $request) {\n\t\treturn $this->edit_job($request, null);\n\t}", "title": "" }, { "docid": "372a69c482c6d7e0d91a335c44e5a34f", "score": "0.61337554", "text": "public static function factory()\n {\n $cronjob = new self();\n $cronjob->name = 'MultiNewsletter Sender';\n return $cronjob;\n }", "title": "" }, { "docid": "7b0544016f704bd1f2def00cfc460a96", "score": "0.6129805", "text": "public function create()\n {\n return new Batch();\n }", "title": "" }, { "docid": "1f70e33834cc55b94d2975199f73a9ca", "score": "0.6092395", "text": "public function createJob($jobFile, $jobArguments, $startTime, $isOneTime = true, $period = '30m') {}", "title": "" }, { "docid": "3f75a5e672df8ba9cbdba6868fc241bd", "score": "0.60747224", "text": "public function createCronJobRecord()\r\n\t{\r\n\t\tCronjob::create([]);\r\n\t}", "title": "" }, { "docid": "706035141188ac46cc70012d2ca24054", "score": "0.6067591", "text": "public function testCreatingJobEntry()\n {\n /* @var $svc \\WhiteOctober\\QueueBundle\\Service\\QueueService */\n $svc = $this->_container->get(\"whiteoctober.queue.service\");\n $this->assertTrue($svc->create(\"queue.test\", \"some data here\"));\n\n $entry = $this->_entityManager->getRepository(\"WhiteOctoberQueueBundle:QueueEntry\")->findOneBy(array(\"type\" => \"queue.test\"));\n $this->assertNotNull($entry);\n $this->assertEquals(serialize(\"some data here\"), $entry->getData());\n }", "title": "" }, { "docid": "ce13aa10bdcfda41f6e9c3cdb5e68613", "score": "0.5994087", "text": "public function createJob($jobName, $data, $notBefore = null) {\n\n\t\t$data = array(\n\t\t\t'jobtype' => $jobName,\n\t\t\t'data' => serialize($data)\n\t\t);\n\t\tif ($notBefore != null) {\n\t\t\t$data['notbefore'] = date('Y-m-d H:i:s', strtotime($notBefore));\n\t\t}\n\t\tif($this->save($this->create($data)))\n\t\t\treturn $this->read(null);\n\t}", "title": "" }, { "docid": "16bfee4a0eaaa3080a7d60dd64e64dcd", "score": "0.59874994", "text": "public function createJobFromArray($attributes)\n {\n if (!isset($attributes['class'])) {\n throw new Exception('Job needs to define a class');\n }\n\n $class = $attributes['class'];\n $jobData = array();\n unset($attributes['class']);\n\n if (isset($attributes['job_data'])) {\n $jobData = $attributes['job_data'];\n unset($attributes['job_data']);\n }\n\n $model = new $class();\n $model->job_class = $class;\n $model->setAttributes($attributes);\n $model->setJobData($jobData);\n\n return $model;\n }", "title": "" }, { "docid": "0e0278cd155a7be7612340932e9ae368", "score": "0.59710425", "text": "public function testIfJobCreatedSuccessfully()\n {\n $requestData = array (\n 'email' => 'user@gmail.com',\n 'title' => 'Awesome title',\n 'description' => 'some text',\n 'jobDate' => '2018-10-10 05:10:20',\n 'zip' => '10115',\n 'categoryId' => 1,\n 'jobTypeId' => 1,\n );\n $this->userRepositoryMocker->user = new User();\n $this->categoryTypeRepositoryMocker->category = new CategoryType();\n $this->jobTypeRepositoryMocker->jobType = new JobType();\n $this->regionRepositoryMocker->region = new Region();\n $this->jobRepositoryMocker->job = new Job();\n $this->setupService();\n $response = $this->service->create($requestData);\n $this->assertTrue($response);\n }", "title": "" }, { "docid": "24844366ff53ecb502cdef426c64b2da", "score": "0.59584945", "text": "public function create() {\n\t\t$job_types = JobType::all()\n\t\t\t->sortByDesc('job_type')\n\t\t\t->where('deletion_status', 0)\n\t\t\t->where('publication_status', 1)\n\t\t\t->toArray();\n\t\t$clients = User::all()\n\t\t\t->sortByDesc('name')\n\t\t\t->where('access_label', 5)\n\t\t\t->where('deletion_status', 0)\n\t\t\t->where('activation_status', 1)\n\t\t\t->toArray();\n\t\t$references = User::all()\n\t\t\t->sortByDesc('name')\n\t\t\t->where('access_label', 4)\n\t\t\t->where('deletion_status', 0)\n\t\t\t->toArray();\n\t\t$associates = User::all()\n\t\t\t->sortByDesc('name')\n\t\t\t->where('access_label', '>=', 2)\n\t\t\t->where('access_label', '<=', 3)\n\t\t\t->where('deletion_status', 0)\n\t\t\t->toArray();\n\t\treturn view('administrator.job.add_job', compact('job_types', 'clients', 'references', 'associates'));\n\t}", "title": "" }, { "docid": "7525a73cf854ac9931c8d2084535f462", "score": "0.59249836", "text": "private function create_job()\n {\n $data = array();\n if (isset($this->_parameters['post']['position']) && isset($this->_parameters['post']['description'])) {\n $pos = $this->_parameters['post']['position'];\n $desc = $this->_parameters['post']['description'];\n if (!is_string($pos) || strlen($pos) < 3) {\n $data['message'] = 'position should be string with at least 3 characters';\n return $data;\n }\n if (!is_string($desc) || strlen($desc) < 3) {\n $data['message'] = 'description should be string with at least 3 characters';\n return $data;\n }\n $query = 'INSERT INTO `jobs` SET `jb_position` = :p, `jb_description` = :d, `jb_created_on` = NOW()';\n $params = array(\n array(':p', $pos, PDO::PARAM_STR),\n array(':d', $desc, PDO::PARAM_STR)\n );\n $job = $this->db->query($query, $params);\n if ($job > 0) {\n $data['id'] = $this->db->last_insert_id();\n } else {\n $data['message'] = 'System error occurred. Try again later.';\n }\n } else {\n $data['message'] = 'position and description are required';\n }\n return $data;\n }", "title": "" }, { "docid": "75bea1cd41497f79164973f9a74ba944", "score": "0.5923801", "text": "public function create(Request $request)\n {\n $job = new JobDetail();\n\n $job->company_id = Session::get('company_id');\n $job->job_title = $request->title;\n $job->salary = $request->salary;\n $job->job_description = $request->description;\n $job->location = $request->location;\n $job->country = $request->country;\n\n $job->save();\n\n Session::flash('job',\"Job created Successfully\");\n return redirect()->back();\n }", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.59231514", "text": "public function create() {}", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.59231514", "text": "public function create() {}", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.59231514", "text": "public function create() {}", "title": "" }, { "docid": "0860ad0000ffc6c4b691daac377fd34d", "score": "0.5886054", "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$jobtostart = new Jobtostart($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$jobtostart->Scriptid = $this->SafeGetVal($json, 'scriptid');\n\t\t\t$jobtostart->Salesorder = $this->SafeGetVal($json, 'salesorder');\n\t\t\t$jobtostart->Rack = $this->SafeGetVal($json, 'rack');\n\t\t\t$jobtostart->Shelf = $this->SafeGetVal($json, 'shelf');\n\t\t\t$jobtostart->Clientaddress = $this->SafeGetVal($json, 'clientaddress');\n\t\t\t$jobtostart->Arguments = $this->SafeGetVal($json, 'arguments');\n\t\t\t$jobtostart->Exesequence = $this->SafeGetVal($json, 'exesequence');\n\t\t\t$jobtostart->Scripttarget = $this->SafeGetVal($json, 'scripttarget');\n\t\t\t$jobtostart->Scriptname = $this->SafeGetVal($json, 'scriptname');\n\t\t\t$jobtostart->Scriptcontent = $this->SafeGetVal($json, 'scriptcontent');\n\t\t\t$jobtostart->Interpreter = $this->SafeGetVal($json, 'interpreter');\n\t\t\t$jobtostart->Version = $this->SafeGetVal($json, 'version');\n\t\t\t$jobtostart->Returncode = $this->SafeGetVal($json, 'returncode');\n\t\t\t$jobtostart->Returnstdout = $this->SafeGetVal($json, 'returnstdout');\n\t\t\t$jobtostart->Returnstderr = $this->SafeGetVal($json, 'returnstderr');\n\t\t\t$jobtostart->Executionflag = $this->SafeGetVal($json, 'executionflag');\n\t\t\t$jobtostart->Exectime = $this->SafeGetVal($json, 'exectime');\n\n\t\t\t$jobtostart->Validate();\r\n\t\t\t$errors = $jobtostart->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// since the primary key is not auto-increment we must force the insert here\n\t\t\t\t$jobtostart->Save(true);\n\t\t\t\t$this->RenderJSON($jobtostart, $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": "e913d90ca29c7c2c96e7411cf814506d", "score": "0.5882714", "text": "public function __construct(Job $job_posted)\n {\n $this->job_posted = $job_posted;\n }", "title": "" }, { "docid": "f053839d400ebccbbbe80357764af3ae", "score": "0.5843159", "text": "public function creating(Worker $Worker)\n {\n \n }", "title": "" }, { "docid": "15d038521f54a9b72731467febf20432", "score": "0.58377606", "text": "public function getJob();", "title": "" }, { "docid": "17027559b71a15896f2fe372d11ef36e", "score": "0.5834763", "text": "public function getProjectJobModel() {\n return new ProjectJob();\n }", "title": "" }, { "docid": "1374870607a6e92b8a1a26307a6808a2", "score": "0.5795249", "text": "public function create($parent, MigrationJob $postBody, $optParams = [])\n {\n $params = ['parent' => $parent, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('create', [$params], Operation::class);\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5789109", "text": "public function create(){}", "title": "" }, { "docid": "ae50299e296469c72a4483e88fc3c9fa", "score": "0.57886916", "text": "public function create($job_id, $params)\n {\n $this->validateTitle($job_id, $params);\n\n $job_attachment = $this->job_attachment->forceCreate($this->formatParams($params, $job_id));\n\n $this->processUpload($job_attachment, $params);\n\n return $job_attachment;\n }", "title": "" }, { "docid": "d7d889ec0f635d5229d0190770e2c63b", "score": "0.5767142", "text": "public function create(TargetInterface $target, string $type, string $jobId): JobLogInterface\n {\n return new JobLog($target, $type, $jobId);\n }", "title": "" }, { "docid": "bbbb44cc289ecc21694c216cb25a28c9", "score": "0.5748879", "text": "public function __construct()\n {\n if (static::$queue !== null) {\n return;\n }\n\n $queueName = time() . '_Jobs';\n static::$queue = new Queue;\n static::$queue->create($queueName);\n\n $queueName = time() . '_Jobs2';\n static::$queue2 = new Queue;\n static::$queue2->create($queueName);\n }", "title": "" }, { "docid": "4b48a0c28e4304ba8afe51985ca7a919", "score": "0.573903", "text": "public function create()\n {\n return view('user.job_create');\n }", "title": "" }, { "docid": "f24909ef2cdd7e4e0ca958ea1369c58d", "score": "0.57279766", "text": "public function actionCreate()\n {\n $model = new JobPosting();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->job_posting_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "5a3fb386a986c87af3aaeffe64a39916", "score": "0.5720542", "text": "public function create()\n {\n //\n return view('jobs.addJob');\n }", "title": "" }, { "docid": "7335dcf33d5ff02538a0034c13500eb2", "score": "0.57046175", "text": "public function actionNewjob()\n {\n $this->layout = 'joblayout';\n $job = new Job();\n\n return $this->render('newjob', ['model' => $job]);\n }", "title": "" }, { "docid": "fba11d3aecdcf465d2ec473c7ffcfd59", "score": "0.57030165", "text": "public function store(Job $job)\n {\n Request::validate([\n 'position' => ['required', 'max:255', 'min:2'],\n 'department' => ['required', 'max:255', 'min:2'],\n 'item_number' => ['required', 'max:50', 'min:2'],\n 'education' => ['required', 'max:255', 'min:2'],\n 'experience' => ['nullable', 'max:255', 'min:2'],\n 'training' => ['nullable', 'max:255', 'min:2'],\n 'eligibility' => ['nullable', 'max:255', 'min:2'],\n 'salary_grade' => ['required', 'max:255', 'min:1', 'regex:/^[0-9+]+$/'],\n 'monthly_salary' => ['required', 'max:255', 'min:2', 'regex:/^[0-9+]+$/'],\n 'deadline_at' => ['required'],\n 'job_description' => ['required', 'min:6'],\n 'preferred_qualification' => ['required', 'min:2'],\n 'core_competencies' => ['required'],\n 'organizational_competencies' => ['required'],\n 'technical_competencies' => ['required'],\n 'document' => ['required', 'mimes:jpeg,jpg,png,pdf', 'max:20000']\n ]);\n\n $job_link = strtolower(str_replace(' ', '-', Request::input('position'))).'-'.Str::random(5);\n\n $job->create([\n 'position' => Request::input('position'),\n 'department' => Request::input('department'),\n 'item_number' => Request::input('item_number'),\n 'education' => Request::input('education'),\n 'experience' => Request::input('experience'),\n 'training' => Request::input('training'),\n 'eligibility' => Request::input('eligibility'),\n 'salary_grade' => Request::input('salary_grade'),\n 'monthly_salary' => Request::input('monthly_salary'),\n 'job_description' => Request::input('job_description'),\n 'preferred_qualification' => Request::input('preferred_qualification'),\n 'core_competencies' => Request::input('core_competencies'),\n 'organizational_competencies' => Request::input('organizational_competencies'),\n 'technical_competencies' => Request::input('technical_competencies'),\n 'deadline_at' => Request::input('deadline_at'),\n 'job_link' => $job_link,\n 'document' => Request::file('document') ? Request::file('document')->store('jobs', 'public') : null,\n ]);\n\n return Redirect::back()->with('success', 'Job added.');\n }", "title": "" }, { "docid": "71844a1d3cfc2cb134441ce2e0e5c888", "score": "0.56988835", "text": "public function create() {\n \n }", "title": "" }, { "docid": "8a59190a67017af98c59af6837d501e8", "score": "0.5682791", "text": "public function createJob($name, $data = null, $firstRun = null, $repeat = null, $unique = false, $priority = 500, $parentJobID = null)\n {\n $this->client->getLogger()->info(\"Create job\", ['name' => $name]);\n\n return $this->call(\n 'CreateJob',\n [\n 'name' => $name,\n 'data' => $data,\n 'firstRun' => $firstRun,\n 'repeat' => $repeat,\n 'unique' => $unique,\n 'priority' => $priority,\n 'parentJobID' => $parentJobID,\n ]\n );\n }", "title": "" }, { "docid": "15dbb51cbd7e0605479bf148f594db13", "score": "0.5668537", "text": "public function create()\n {\n return view('job.create');\n\n }", "title": "" }, { "docid": "638fc7a50d13fb2d55a27972098cfb1d", "score": "0.5663924", "text": "public function create()\n {\n return new $this->class();\n }", "title": "" }, { "docid": "8122fc6a109f5a0f2bf9f45dd4685e77", "score": "0.5634981", "text": "public function setJob(Job $job);", "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": "e498c1dfd291b1e26942278d34a9a3ba", "score": "0.5632702", "text": "public function create() {\n \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": "e498c1dfd291b1e26942278d34a9a3ba", "score": "0.5632702", "text": "public function create() {\n \n }", "title": "" }, { "docid": "8c7d4bd4c2b9c9f5f83616b9a6fa5313", "score": "0.56256723", "text": "public function create() {\n \n //\n \n }", "title": "" }, { "docid": "8c7d4bd4c2b9c9f5f83616b9a6fa5313", "score": "0.56256723", "text": "public function create() {\n \n //\n \n }", "title": "" }, { "docid": "8c7d4bd4c2b9c9f5f83616b9a6fa5313", "score": "0.56256723", "text": "public function create() {\n \n //\n \n }", "title": "" }, { "docid": "f38d3ff473918f4d64577233726f79a6", "score": "0.56177294", "text": "public static function create() {\n }", "title": "" }, { "docid": "9c2d3ffc7113f0838864708d9b5b6431", "score": "0.5595042", "text": "protected function getJob(array $unit): Job\n {\n $this->loadModel('Jobs');\n $job = $this->Jobs->find()\n ->where(['name' => $unit['job']])\n ->first();\n\n if (!$job) {\n $job = $this->Jobs->newEntity([\n 'name' => $unit['job']\n ]);\n\n if ($this->Jobs->save($job)) {\n $this->out(\"-> Added new job `<comment>{$unit['job']}</comment>` for unit `<unit>{$unit['name']}</unit>`\");\n }\n }\n\n return $job;\n }", "title": "" }, { "docid": "1984106947c8e222081e97f3b4e2332c", "score": "0.5594619", "text": "public function create()\n {\n //TODO:\n }", "title": "" }, { "docid": "f46b4a7d84d775b7371b3474a34d89df", "score": "0.5593605", "text": "public function __construct( $settings = array() ) {\n\n // Register Job Post Type, if needed.\n $this->_register_post_type();\n\n // Save Settings to Instance, applying defaults, returns deeply-converted object.\n $this->_settings = self::defaults( $settings, self::$defaults );\n\n // Load job if ID is set.\n if( $this->_settings->id ) {\n return Job::query( array( \"id\" => $this->_settings->id ) );\n }\n\n // Generate Title.\n $this->_settings->post_title = sprintf( __( 'Job %s', self::$text_domain ), $this->_settings->type );\n\n // Generate public job hash.\n $this->_settings->post_password = uniqid( $this->_settings->type . '-' );\n\n // Encode payload.\n $this->_settings->post_content = json_encode( (array) $this->_settings->post_content );\n\n // Insert Job, get job ID.\n $this->id = wp_insert_post( $this->_settings );\n\n // Handle creation error.\n if( $this->id instanceof WP_Error ) {\n return $this->id;\n }\n\n // Commit Meta Key.\n foreach( (array) self::$_meta as $_key => $_options ) {\n\n $_value = $this->_settings->{$_key};\n\n if( $_value ) {\n update_post_meta( $this->id, 'job::' . $_key, $_value );\n }\n\n }\n\n\n // Worker.\n return $this;\n\n }", "title": "" }, { "docid": "2e155f8300d99adf1dd8a372480a2858", "score": "0.5591821", "text": "public function create($input)\n {\n return Work::create($input);\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": "c65f6a185e42dd8a0d96ee92684c9af7", "score": "0.55773616", "text": "public static function create() {\n $created = false;\n\n if ( ! $created ) {\n $created = new self();\n }\n }", "title": "" }, { "docid": "9c4635edb0158590d7c1881298d4bdd9", "score": "0.5574841", "text": "protected function createJob($command, $commandArgs = [])\n {\n $commandArgs = array_merge(\n [\n '--message-limit=' . $this->messageLimit,\n '--env=' . $this->env,\n '--mailer=db_spool_mailer',\n ],\n $commandArgs\n );\n\n return parent::createJob($command, $commandArgs);\n }", "title": "" }, { "docid": "d05618d436b7c855920d701d8833942b", "score": "0.5572205", "text": "protected function createJob($gridField, $session)\n {\n $job = new GenerateCSVJob();\n $job->setGridField($gridField);\n $job->setSession($session);\n $job->setSeparator(',');\n $job->setIncludeHeader(true);\n return $job;\n }", "title": "" }, { "docid": "d998ff2bad8b2a38a1ecd799ff2c610b", "score": "0.5570592", "text": "public function create()\n {\n return view('dashboard.jobs.create');\n }", "title": "" }, { "docid": "9a462ab3f38fdd99844e3e9d78c166e3", "score": "0.5569514", "text": "public function create() {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "f4e000331f4e3673fc292e6bf5301a27", "score": "0.55695033", "text": "public function create()\n {\n return view('jobs.jobupdate', ['cbJob' => new cbJob]);\n }", "title": "" }, { "docid": "2b29d9d80dd0bea96a5bf20300c7fcc3", "score": "0.5565314", "text": "public function job(): JobInterface\n {\n return $this->job;\n }", "title": "" }, { "docid": "7eba0071da7728ba1a266d4f6ed2da47", "score": "0.55630946", "text": "public function testCreateJobWithTag()\n {\n $mock = new MockHandler([\n new Response(\n 200,\n ['Content-Type' => 'application/json'],\n '{\n \"id\": \"80429487\",\n \"url\": \"https://syrup-testing.keboola.com/queue/job/80429487\",\n \"status\": \"waiting\"\n }'\n )\n ]);\n\n // Add the history middleware to the handler stack.\n $container = [];\n $history = Middleware::history($container);\n $stack = HandlerStack::create($mock);\n $stack->push($history);\n\n $client = new Client([\n 'token' => 'test',\n 'runId' => 'runIdTest',\n 'url' => 'https://example.com',\n 'userAgent' => 'testClient',\n 'handler' => $stack\n ]);\n $client->createJob(\"test-component\", [\"configData\" => [\"var\" => \"val\"], \"tag\" => \"1.2.3\"]);\n\n $this->assertCount(1, $container);\n /** @var Request $request */\n $request = $container[0]['request'];\n $this->assertEquals(\"https://example.com/test-component/run/tag/1.2.3\", $request->getUri()->__toString());\n $this->assertEquals(\"POST\", $request->getMethod());\n $this->assertEquals('{\"configData\":{\"var\":\"val\"}}', $request->getBody()->read(2000));\n $this->assertEquals(\"test\", $request->getHeader(\"x-storageapi-token\")[0]);\n $this->assertEquals(\"runIdTest\", $request->getHeader(\"x-kbc-runid\")[0]);\n $this->assertEquals('Keboola Syrup PHP Client - testClient', $request->getHeader(\"user-agent\")[0]);\n }", "title": "" }, { "docid": "66f7ec96868721314154f313719cd018", "score": "0.55435246", "text": "public function run()\n {\n factory(Job::class)->create([\n 'user_id' => 1,\n 'name' => '前端开发工程师',\n ]);\n factory(Job::class)->create([\n 'user_id' => 1,\n 'name' => 'PHP开发工程师',\n ]);\n }", "title": "" }, { "docid": "cd4457e84d1d1480f58f1a5b6bb32f39", "score": "0.5542942", "text": "public function testCreateJobSuper()\n {\n $mock = new MockHandler([\n new Response(\n 200,\n ['Content-Type' => 'application/json'],\n '{\n \"id\": \"80429487\",\n \"url\": \"https://syrup-testing.keboola.com/queue/job/80429487\",\n \"status\": \"waiting\"\n }'\n )\n ]);\n\n // Add the history middleware to the handler stack.\n $container = [];\n $history = Middleware::history($container);\n $stack = HandlerStack::create($mock);\n $stack->push($history);\n\n $client = new Client([\n 'token' => 'test',\n 'super' => 'super',\n 'runId' => 'runIdTest',\n 'handler' => $stack\n ]);\n $client->createJob(\"test-component\", [\"config\" => 1]);\n\n $this->assertCount(1, $container);\n /** @var Request $request */\n $request = $container[0]['request'];\n $this->assertEquals(\"https://syrup.keboola.com/super/test-component/run\", $request->getUri()->__toString());\n $this->assertEquals(\"POST\", $request->getMethod());\n $this->assertEquals('{\"config\":1}', $request->getBody()->read(1000));\n $this->assertEquals(\"test\", $request->getHeader(\"x-storageapi-token\")[0]);\n $this->assertEquals(\"runIdTest\", $request->getHeader(\"x-kbc-runid\")[0]);\n }", "title": "" }, { "docid": "fe7fcc385f931a0373343b0ab153a963", "score": "0.552271", "text": "public function create(JobUserApiRequest $request, Job $job)\n {\n $job = $job->presenter();\n $job['code'] = 2002;\n return response()->json($job)\n ->setStatusCode(200, 'CREATE_SUCCESS');\n }", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.55171794", "text": "public function create() {\n\t\t//\n\t}", "title": "" } ]
baf857694cb4c86f0f463209b6b1b0e4
Operation teamGet Get Team
[ { "docid": "864a58e08e199461553b4a0af1fc5713", "score": "0.83219814", "text": "public function teamGet()\n {\n list($response) = $this->teamGetWithHttpInfo();\n\n return $response;\n }", "title": "" } ]
[ { "docid": "1c67c6c7c2abbcd9462a3b37d450203a", "score": "0.8152552", "text": "public function getTeam($team)\n {\n return $this->wrapper->request('GET', \"teams/$team\");\n }", "title": "" }, { "docid": "067568859103fb3b33d165851ce871f8", "score": "0.7396311", "text": "public function getTeam(){\n\t\t$db = $this->getDataSource();\n\n\t\t$sql = 'SELECT Team.team_id, Team.name FROM team_tbl AS Team';\n\n\t\t$result = $db->query($sql);\n\t\treturn $result;\n\t\t\n\t}", "title": "" }, { "docid": "293d9100eafde0c722081701bc282f2d", "score": "0.739279", "text": "public function team($team)\n {\n $response = $this->client->get('/kraken/teams/' . $team . '?api_version=5');\n $response = json_decode($response->getBody()->getContents(), true);\n return $response;\n }", "title": "" }, { "docid": "dd6df94574b9c562e77146e050e3f41f", "score": "0.72816664", "text": "public function get_team(){\n\t\t$data = $this->login_m->get_team();\n\t\t$data = json_encode($data);\n\t\techo $data;\n\t}", "title": "" }, { "docid": "438a12b320555ba263676bc89387c7c0", "score": "0.72457296", "text": "public function getTeam()\n {\n $result = $this->_data->getTeams(); \n if ($result) {\n return $result;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6dde4b02a264118ba778d563e1729071", "score": "0.7215429", "text": "public function get_team()\r\n {\r\n return $query = $this->db->where('team_status',1)->get('team')->result_array();\r\n }", "title": "" }, { "docid": "50e3e0242df58344ac81f112095538f9", "score": "0.72083366", "text": "public function getTeams()\n {\n return $this->HttpRequest( \"GET\", \"/teams\" );\n }", "title": "" }, { "docid": "7aedb7b237ef1a57169ae9714c148b73", "score": "0.70718926", "text": "public function getTeam( $team ){\n\t\n\t\t$user\t= JFactory::getUser();\n\t\t$active = $user->get( 'active_team' );\n\t\t\n\t\t$this->_com_params\t= JComponentHelper::getParams('com_zbrochure');\n\t\t\n\t\ttry{\n\t\t\n\t\t\t$query\t= $this->_db->getQuery( true );\n\t\t\t\n\t\t\t$query->select( 'u.*' );\n\t\t\t$query->from( '#__users as u' );\n\t\t\t$query->join( 'LEFT', '#__user_usergroup_map AS r ON r.user_id = u.id' );\n\t\t\t$query->where( 'r.group_id = '.$team );\n\t\t\t\n\t\t\t$this->_db->setQuery( $query );\n\t\t\t$this->_team = $this->_db->loadObjectList();\n\t\t\t\n\t\t\tif( $error = $this->_db->getErrorMsg() ){\n\n\t\t\t\tthrow new Exception( $error );\n\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}catch( JException $e ){\n\t\t\n\t\t\tif( $e->getCode() == 404 ){\n\t\t\t\n\t\t\t\t// Need to go thru the error handler to allow Redirect to work.\n\t\t\t\tJError::raiseError( 404, $e->getMessage() );\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t\t$this->setError($e);\n\t\t\t\n\t\t\t}\n\n\t\t}\n\t\t\n\t\treturn $this->_team;\n\t\t\n\t}", "title": "" }, { "docid": "bc64ceef0e36cbd6399d04c0b0187f81", "score": "0.7065249", "text": "public function show($id) #get im postman\n {\n return Team::find($id);\n }", "title": "" }, { "docid": "b6a4a0051ad94418720782d980967f4d", "score": "0.7057674", "text": "public function getTeamList () {\n \treturn $this->request(sprintf(self::URL_MATCHES_LIST_TEAM));\n }", "title": "" }, { "docid": "7ebc721500bc8d909d2dd8ea3a92827a", "score": "0.70449674", "text": "public function getTeam()\n {\n return $this->team;\n }", "title": "" }, { "docid": "7ebc721500bc8d909d2dd8ea3a92827a", "score": "0.70449674", "text": "public function getTeam()\n {\n return $this->team;\n }", "title": "" }, { "docid": "7ebc721500bc8d909d2dd8ea3a92827a", "score": "0.70449674", "text": "public function getTeam()\n {\n return $this->team;\n }", "title": "" }, { "docid": "7ebc721500bc8d909d2dd8ea3a92827a", "score": "0.70449674", "text": "public function getTeam()\n {\n return $this->team;\n }", "title": "" }, { "docid": "259789a36559b82fe623571d49616d00", "score": "0.7040953", "text": "public function getTeam()\n {\n return $this->team()->first();\n }", "title": "" }, { "docid": "6e5164fbaf45c6aae238c50a760a5b2b", "score": "0.69392794", "text": "function get_team($team_id)\n {\n return $this->db->get_where('teams',array('team_id'=>$team_id))->row_array();\n }", "title": "" }, { "docid": "1f28fe65b8a4c4423351332df07d349c", "score": "0.69057554", "text": "public function getTeam()\n {\n return $this->hasOne(Team::class, ['id' => 'team_id']);\n }", "title": "" }, { "docid": "54db9702056d3e4c66dcb3153595872e", "score": "0.6849446", "text": "public function get_teams()\n\t{\n\t\treturn $this->_api_fetch_collection('teams', 'Github_Organization_Team');\n\t}", "title": "" }, { "docid": "ee52b753e42d0f71a11646549a5aa48b", "score": "0.68155444", "text": "public function getTeamAction(Request $request) \n {\n $data = '';\n $teamNumber = $request->get('teamid');\n $userService = $this->get('UserService');\n $teamname = $userService->getTeamName($teamNumber);\n if (!empty($teamname)) {\n $data = $teamname['0']['tname'];\n if($teamname['0']['status'] == '1')\n $data .= \"^active\";\n else \n $data .= \"^inactive\";\n echo $data;\n exit;\n }\n }", "title": "" }, { "docid": "a796399c40579ddd703b1a70609819f2", "score": "0.6781335", "text": "public function teams()\n {\n $response = $this->client->get('/kraken/teams?api_version=5');\n $response = json_decode($response->getBody()->getContents(), true);\n return $response;\n }", "title": "" }, { "docid": "9706f5d9c8b87152fe2c5e6035407f68", "score": "0.67779607", "text": "public function team()\n {\n return Team::i();\n }", "title": "" }, { "docid": "ae2939a43a54f03f35134a6c26e99c76", "score": "0.67366344", "text": "protected function getTeam()\n {\n return $this->fixtures->getReference('team-1');\n }", "title": "" }, { "docid": "ae2939a43a54f03f35134a6c26e99c76", "score": "0.67366344", "text": "protected function getTeam()\n {\n return $this->fixtures->getReference('team-1');\n }", "title": "" }, { "docid": "7fea98e49e7deccc874ff3569502f4ab", "score": "0.6728495", "text": "public function teamGetWithHttpInfo()\n {\n $request = $this->teamGetRequest();\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n $this->response = $response;\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n (int) $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? (string) $e->getResponse()->getBody() : null\n );\n } catch (ConnectException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n (int) $e->getCode(),\n null,\n null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n (string) $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n (string) $response->getBody()\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode === 200) {\n if ('\\Dropbox\\Sign\\Model\\TeamGetResponse' === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\Dropbox\\Sign\\Model\\TeamGetResponse', []),\n $response->getStatusCode(),\n $response->getHeaders(),\n ];\n }\n\n $rangeCodeLeft = (int) (substr('4XX', 0, 1) . '00');\n $rangeCodeRight = (int) (substr('4XX', 0, 1) . '99');\n if ($statusCode >= $rangeCodeLeft && $statusCode <= $rangeCodeRight) {\n if ('\\Dropbox\\Sign\\Model\\ErrorResponse' === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n }\n\n return [\n ObjectSerializer::deserialize($content, '\\Dropbox\\Sign\\Model\\ErrorResponse', []),\n $response->getStatusCode(),\n $response->getHeaders(),\n ];\n }\n\n $returnType = '\\Dropbox\\Sign\\Model\\TeamGetResponse';\n if ($returnType === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders(),\n ];\n } catch (ApiException $e) {\n $statusCode = $e->getCode();\n\n if ($statusCode === 200) {\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Dropbox\\Sign\\Model\\TeamGetResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n }\n\n $rangeCodeLeft = (int) (substr('4XX', 0, 1) . '00');\n $rangeCodeRight = (int) (substr('4XX', 0, 1) . '99');\n if ($statusCode >= $rangeCodeLeft && $statusCode <= $rangeCodeRight) {\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Dropbox\\Sign\\Model\\ErrorResponse',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n }\n\n throw $e;\n }\n }", "title": "" }, { "docid": "baa23c4dd5d504b8705b27c235f0cb4d", "score": "0.671838", "text": "public function teamGetAsync()\n {\n return $this->teamGetAsyncWithHttpInfo()\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "f0c9fb599fda5b927f53e6d45d7cb9c0", "score": "0.66685444", "text": "public function show(Team $team)\n {\n //\n }", "title": "" }, { "docid": "f0c9fb599fda5b927f53e6d45d7cb9c0", "score": "0.66685444", "text": "public function show(Team $team)\n {\n //\n }", "title": "" }, { "docid": "f0c9fb599fda5b927f53e6d45d7cb9c0", "score": "0.66685444", "text": "public function show(Team $team)\n {\n //\n }", "title": "" }, { "docid": "f0c9fb599fda5b927f53e6d45d7cb9c0", "score": "0.66685444", "text": "public function show(Team $team)\n {\n //\n }", "title": "" }, { "docid": "f0c9fb599fda5b927f53e6d45d7cb9c0", "score": "0.66685444", "text": "public function show(Team $team)\n {\n //\n }", "title": "" }, { "docid": "f0c9fb599fda5b927f53e6d45d7cb9c0", "score": "0.66685444", "text": "public function show(Team $team)\n {\n //\n }", "title": "" }, { "docid": "f0c9fb599fda5b927f53e6d45d7cb9c0", "score": "0.66685444", "text": "public function show(Team $team)\n {\n //\n }", "title": "" }, { "docid": "37c8c994efaeb509dda875c0ef58720c", "score": "0.66113776", "text": "private function getTeam(): ?TeamInterface {\n // The route parameters still need to be set.\n $team = \\Drupal::routeMatch()->getParameter('team');\n // Sometimes the param converter has converted the team to an entity.\n return $team instanceof TeamInterface\n ? $team\n : (!empty($team) ? Team::load($team) : NULL);\n }", "title": "" }, { "docid": "494481fdd07e057e1c1c67e4a362129c", "score": "0.6603082", "text": "public function testTeamGetsSuccess()\n {\n $token = $this->getContainer()->getParameter('jwt_test_key');\n $this->client->request('GET', '/api/v1/league/1/teams',\n [],\n [],\n ['HTTP_Authorization' => 'Bearer '. $token]\n );\n\n $this->assertEquals(200, $this->client->getResponse()->getStatusCode());\n $response = \\json_decode($this->client->getResponse()->getContent(), true);\n $this->assertCount(2, $response['data']);\n }", "title": "" }, { "docid": "9d29536f99508882d92520604060db7d", "score": "0.6601016", "text": "public function getTeam(): string\n {\n return $this->team;\n }", "title": "" }, { "docid": "c59de67d5325ae3723c54417877cce1b", "score": "0.65910417", "text": "public function teamGetRequest()\n {\n $resourcePath = '/team';\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n\n $formParams = [];\n $multipart = false;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['multipart/form-data']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem,\n ];\n }\n }\n // for HTTP post (form)\n if (!empty($body)) {\n $multipartContents[] = [\n 'name' => 'body',\n 'contents' => $body,\n 'headers' => ['Content-Type' => 'application/json'],\n ];\n }\n\n $httpBody = new Psr7\\MultipartStream($multipartContents);\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = Utils::jsonEncode($formParams);\n } else {\n // for HTTP post (form)\n $httpBody = Psr7\\Query::build($formParams);\n }\n }\n\n // this endpoint requires HTTP basic authentication\n if (!empty($this->config->getUsername())) {\n $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ':');\n }\n // this endpoint requires Bearer (JWT) authentication (access token)\n if (!empty($this->config->getAccessToken())) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\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 = Psr7\\Query::build($queryParams);\n\n return new Psr7\\Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "eec6fef4b4018646befccf4d39a5956a", "score": "0.65737313", "text": "public function getTeam()\n {\n return $this->readOneof(101);\n }", "title": "" }, { "docid": "c618ce87fd2923b0d8f01f22eb35f1a0", "score": "0.6569844", "text": "public function index()\n {\n return Team::all();\n }", "title": "" }, { "docid": "897a05f376e2c88fc46eb0ac20ea691a", "score": "0.65627205", "text": "public function getTeamMembers($team)\r\n\t{\r\n\t\tif ($this->TC2)\r\n\t\t{\r\n\t\t\t$res = $this->db->prepare(\"\r\n\t\t\t\t\t\t\t\tSELECT \r\n\t\t\t\t\t\t\t\t\t`arena_team_member`.`arenaTeamId` AS arenateamid, \r\n\t\t\t\t\t\t\t\t\t`arena_team_member`.`guid` AS guid, \r\n\t\t\t\t\t\t\t\t\t`\".$this->translate['characters'].\"`.`\".$this->translate['characters_name'].\"` AS name\r\n\t\t\t\t\t\t\t\tFROM `arena_team_member` \r\n\t\t\t\t\t\t\t\tRIGHT JOIN `\".$this->translate['characters'].\"` ON `\".$this->translate['characters'].\"`.`\".$this->translate['characters_guid'].\"` = `arena_team_member`.`guid` \r\n\t\t\t\t\t\t\t\tWHERE `arena_team_member`.`arenateamid` = :team ORDER BY guid ASC\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$res = $this->db->prepare(\"\r\n\t\t\t\t\t\t\t\tSELECT \r\n\t\t\t\t\t\t\t\t\t`arena_team_member`.`arenateamid` AS arenateamid, \r\n\t\t\t\t\t\t\t\t\t`arena_team_member`.`guid` AS guid, \r\n\t\t\t\t\t\t\t\t\t`\".$this->translate['characters'].\"`.`\".$this->translate['characters_name'].\"` AS name\r\n\t\t\t\t\t\t\t\tFROM `arena_team_member` \r\n\t\t\t\t\t\t\t\tRIGHT JOIN `\".$this->translate['characters'].\"` ON `\".$this->translate['characters'].\"`.`\".$this->translate['characters_guid'].\"` = `arena_team_member`.`guid` \r\n\t\t\t\t\t\t\t\tWHERE `arena_team_member`.`arenateamid` = :team ORDER BY guid ASC\");\r\n\t\t}\r\n\t\t\r\n\t\t$res->bindParam(':team', $team, PDO::PARAM_INT);\r\n\t\t$res->execute();\r\n\t\t\r\n\t\tif ($res->rowCount() > 0)\r\n\t\t{\r\n\t\t\treturn $res;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tunset($res);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0ba330ab7a982e0714139150a68a844b", "score": "0.6532559", "text": "public function show($team)\n {\n $id = $this->decode($team);\n\n $team = Team::findOrFail($id);\n }", "title": "" }, { "docid": "03c91c3b2a8713c1e6880f8bde357aac", "score": "0.6526015", "text": "public function team(){\n $teams = Team::all();\n return view('teams.team');\n\n }", "title": "" }, { "docid": "066aadf3bea9516c33ff5825a0d8d9e6", "score": "0.6494419", "text": "private function getTeam($id) {\n // when the request uses the internal id the given id starts with an underscore\n if(substr($id, 0, 1) == '_') {\n // get team via _internal_id\n return Team::findOrFail(substr($id, 1));\n } else {\n // get team via GIS id\n return Team::where('id', $id)->firstOrFail();\n }\n }", "title": "" }, { "docid": "3d485e8a5fb2ea4116239444aef111da", "score": "0.6464352", "text": "public function show(Team $team)\n {\n $team->load('members');\n return response()->json($team);\n }", "title": "" }, { "docid": "472ce2d94bda220004e5dcf202a5cf99", "score": "0.6416676", "text": "public function team()\n\t{\n\t\treturn $this->hasOne('App\\Team');\n\t}", "title": "" }, { "docid": "cd5f7ac2d4ebc3aa357f6a918bf60471", "score": "0.63999844", "text": "public function team() {\n return $this->hasOne(Team::class);\n }", "title": "" }, { "docid": "3ffa6dac967d95a4558df30eba95bec4", "score": "0.6377033", "text": "public function getTeamId() {\r\n return $this->teamId;\r\n }", "title": "" }, { "docid": "bd18151b7af5cdc77485866e8a1aec3f", "score": "0.6376856", "text": "public function getTeamListLiga ($league) {\n \treturn $this->request(sprintf(self::URL_MATCHES_LIST_LIGA_TEAM. $league));\n }", "title": "" }, { "docid": "2144dc5a59702ae0ad742f1353f71528", "score": "0.63661146", "text": "public function team()\n {\n return $this->hasOne(Team::class);\n }", "title": "" }, { "docid": "27a6db63cfdeb7ea06bd21e5de56d74c", "score": "0.6360179", "text": "public function show(Team $team)\n {\n return response()->json(new TeamResource($team->load($this->relations)));\n }", "title": "" }, { "docid": "bc09593cb9276b26621656fed61642f2", "score": "0.6338873", "text": "public function getTeamId($team);", "title": "" }, { "docid": "6f8e6f6e229e29415f95d65eb7acd4c7", "score": "0.6337934", "text": "public function getTeamId(){\n\t\treturn($this->teamId);\n\t}", "title": "" }, { "docid": "08df356a792ba3d951d496e3f647e549", "score": "0.63133657", "text": "public function getOne($team){\n\t\t$this->db->where('id_team', $team);\n\t\t$this->db->limit(1);\n\t \treturn $this->db->get($this->table);\n\t}", "title": "" }, { "docid": "6dbcccc0a2038566a0ae5ab57e84d431", "score": "0.6296027", "text": "public function getTeam(): PostProjectsRequestBodyDataRelationshipsTeam\n {\n return $this->team;\n }", "title": "" }, { "docid": "2601b7b5c7082c1dd0c192a90467b93a", "score": "0.6290917", "text": "public function index()\n {\n \n $teams = Team::all();\n\n return TeamResource::collection($teams);\n }", "title": "" }, { "docid": "a2c21bdd14dc04634a96810e121a1399", "score": "0.6283815", "text": "public function getTeamId() {\r\n\t\treturn $this->teamId;\r\n\t}", "title": "" }, { "docid": "68975c376ca23ccf77b335827c2345de", "score": "0.62821275", "text": "public function getTeamName(){\n\t\treturn($this->teamName);\n\t}", "title": "" }, { "docid": "08674d56565e5d5cad3e2dc5848ecc83", "score": "0.6278024", "text": "public function getTeam(): ?TeamEntity\n {\n return $this->team;\n }", "title": "" }, { "docid": "d8568e32bab56388185c7705429b6dd4", "score": "0.6262003", "text": "public function team()\n {\n return view('team');\n }", "title": "" }, { "docid": "caeb917d6d0ff21428c5a509d7e28f1f", "score": "0.6226197", "text": "public function actionViewTeam(){\n\n $this->render('viewTeam');\n }", "title": "" }, { "docid": "f7474b5c22d933f436080c72d3fd936b", "score": "0.62088495", "text": "function getTeamName()\n {\n return ($this->__teamname) ;\n }", "title": "" }, { "docid": "82c9596c7d81711634bfe2d1adebb258", "score": "0.6204832", "text": "public function test_get_team()\n {\n /** @var User $user */\n $user = User::factory()\n ->has(Team::factory()->has(Player::factory()->count(20))->count(1))\n ->create();\n\n $user->load(\"team\");\n\n $response = $this->get(route(\"get_team\",$user->team->id));\n $response->assertStatus(401);\n\n // authenticate user\n /** @var User $auth */\n $auth= Sanctum::actingAs(\n User::factory()\n ->has(Team::factory()->has(Player::factory()->count(20))->count(1))\n ->create(),\n );\n\n// get team\n $response = $this->get(route(\"get_team\",$auth->team->id));\n $auth->load(\"team\");\n $response->assertOk()->assertExactJson($auth->team->toArray());\n\n // get team with resource\n $response = $this->get(route(\"get_team\",[\"team\"=>$auth->team->id,\"with_resource\"=>true]));\n $auth->load(\"team.players\");\n $response->assertOk()->assertExactJson($auth->team->toArray());\n\n// get team of another user\n $response = $this->get(route(\"get_team\",$user->team->id));\n $response->assertStatus(403);\n\n\n // authenticate admin\n /** @var User $auth */\n $admin = Sanctum::actingAs(\n User::factory()->admin()\n ->has(Team::factory()->has(Player::factory()->count(20))->count(1))\n ->create(),\n );\n\n // get team of another user as admin\n $response = $this->get(route(\"get_team\",$user->team->id));\n $response->assertOk()->assertExactJson($user->team->toArray());\n\n\n $max_id = Team::query()->max(\"id\") + 1;\n\n // get team of non existing team\n $response = $this->get(route(\"get_team\",$max_id));\n\n $response->assertNotFound();\n\n }", "title": "" }, { "docid": "2e0feffad25b2d5c8f780f8886feac41", "score": "0.61829746", "text": "public function get_league_teams($org)\n {\n\t\t$sql=\"SELECT t.team_name, t.team_id, t.org_id \n\t\t FROM \t\t\tpublic.team t\n\t\t WHERE t.deleted_flag='f' \t\n\t\t AND t.owned_by = ? \";\n\t\treturn $this->db->query($sql,$org)->result_array();\n }", "title": "" }, { "docid": "c7a6284191c7609a47711378c9a6b288", "score": "0.6163172", "text": "public function index()\n {\n return response()->json(Team::all());\n }", "title": "" }, { "docid": "503355d33e6db2b111a0785b11c7ebf9", "score": "0.61494005", "text": "public function getTeamById($team_id) {\n $this->course_db->query(\"\n SELECT gt.team_id, gt.registration_section, gt.rotating_section, json_agg(u) AS users\n FROM gradeable_teams gt\n JOIN\n (SELECT t.team_id, t.state, u.*\n FROM teams t\n JOIN users u ON t.user_id = u.user_id\n ) AS u ON gt.team_id = u.team_id\n WHERE gt.team_id = ?\n GROUP BY gt.team_id\",\n array($team_id));\n if (count($this->course_db->rows()) === 0) {\n return null;\n }\n $details = $this->course_db->row();\n $details[\"users\"] = json_decode($details[\"users\"], true);\n return new Team($this->core, $details);\n }", "title": "" }, { "docid": "321fe5e50baeb3e6de9452f76580d473", "score": "0.61458045", "text": "public function show(Team $team)\n {\n\t$teamData = Team::with('participant.events.season.tournament')->find($team->id);\n\n\treturn view('team',compact('team'));\n }", "title": "" }, { "docid": "ff495c6841451f6353d9b65a51d26d33", "score": "0.6130131", "text": "public function get()\n {\n $teams = Team::ofUserId(Auth::user()->id)->get();\n\n return new TeamsCollection($teams);\n }", "title": "" }, { "docid": "52dbd9b6a84a95dabc8d9d0f0925a560", "score": "0.6124371", "text": "public function show(TeamModel $team)\n {\n return new TeamResource($team);\n }", "title": "" }, { "docid": "2146311092b40942051e74e70d925a45", "score": "0.61138785", "text": "public function show($id)\n {\n return $this->team->getById($id);\n }", "title": "" }, { "docid": "21430ebf7ca95dcbd0bc6c74997fad37", "score": "0.61043763", "text": "public function showTeam($team){\n try{\n $team=Team::whereName($team)->firstOrFail();\n //check if event is also correct\n\n\n return view('organizer.team.show',compact('team'));\n\n\n }catch (ModelNotFoundException $e){\n return view('404');\n }\n\n }", "title": "" }, { "docid": "2f11744660782af511e80edafbeeb773", "score": "0.6098321", "text": "public function getTeams() {\n\t\treturn Team::find()->joinWith('registrations')->where(['competition_id' => $this->id]);\n\t}", "title": "" }, { "docid": "e07195d245af5554a58eb5241d359cbe", "score": "0.6096044", "text": "function get_teams()\n\t{\n\n\n\t\tglobal $database;\n\t\t$a = $database->get_array(\"SELECT team_id FROM lg_game_teams\n\t\t\tWHERE game_id = '\".$this->data['id'].\"'\");\n\n\t\t$teams = array();\n\t\tif(is_array($a))\n\t\t{\n\t\t\tforeach($a AS $t)\n\t\t\t{\n\t\t\t\t$team = new game_team();\n\t\t\t\t$team->load_data($t['team_id'], $this->data['id']);\n\t\t\t\t$teams[] = $team;\n\t\t\t}\n\t\t}\n\n\t\treturn $teams;\n\t}", "title": "" }, { "docid": "16b4d3faeec704912473f2c30d14fb50", "score": "0.60933214", "text": "public function getTeamById($id) {\n $resource = 'teams/' . $id;\n $response = file_get_contents($this->baseUri . $resource, false, \n stream_context_create($this->reqPrefs));\n \n $result = json_decode($response);\n \n return new Team($result);\n }", "title": "" }, { "docid": "0c85acaf48ddfaeaae3da10d5581a6ef", "score": "0.60931194", "text": "public function getTeamId()\n {\n return $this->get('teamId', 0);\n }", "title": "" }, { "docid": "b7a85ab29c823f00288467c5579adabc", "score": "0.6087298", "text": "public function team()\n {\n return view('pages.team');\n }", "title": "" }, { "docid": "63fa5bb2a542108619e70f7ac682835b", "score": "0.6084986", "text": "public function team()\n {\n return $this->belongsTo(Team::class);\n }", "title": "" }, { "docid": "63fa5bb2a542108619e70f7ac682835b", "score": "0.6084986", "text": "public function team()\n {\n return $this->belongsTo(Team::class);\n }", "title": "" }, { "docid": "4a996f2c86e29d9fc3e723b189eb7f7f", "score": "0.6083367", "text": "public function getAllTeams(array $data)\n\t{\n\t\t$user = $this->findWhere('api_token', $data['api_token'])->first();\n\n\t\treturn $user->load('teams');\n\t}", "title": "" }, { "docid": "a3fef231e824db333ed0f16568067375", "score": "0.60831636", "text": "public function getListTeam($idTeam)\n\t{\n\t\t$this->db->query(\"SELECT * from \" . $this->table_name . \" WHERE idTeam = \" . $idTeam );\n\t\treturn $this->db->get_results();\n\t}", "title": "" }, { "docid": "b847e25285d86d552957494a327f4299", "score": "0.608296", "text": "public function teamProjects(Team $team) \n {\n $user = Auth::user();\n\n if ($user->id !== $team->user_id) {\n return 'You do not have permission to edit this team!';\n }\n\n $projects = $team->projects;\n return $projects;\n }", "title": "" }, { "docid": "2ced2901264dfefd2f7b3b404c743b51", "score": "0.606755", "text": "public function retrieveTeams($filter = '')\n {\n $beansTeams = $this->getTeamsBean();\n $output = array();\n\n $q = $this->sugarQueryObject;\n $q->from($beansTeams, array('add_deleted' => true));\n $q->distinct(false);\n $fields = array(\n 'id',\n 'name',\n 'name2',\n );\n\n if ($filter == 'public' || $filter == 'reassign') {\n $q->where()\n ->equals('private', 0);\n } else {\n if ($filter == 'private') {\n $q->where()\n ->equals('private', 1);\n }\n }\n\n $q->orderBy('id', 'ASC');\n $q->select($fields);\n\n $teamsData = $q->execute();\n foreach ($teamsData as $team) {\n $teamTmp = array();\n $teamTmp['value'] = $team['id'];\n $teamTmp['text'] = $team['name'];\n if (($team['id'] != 'current_team') || ($team['id'] == 'current_team' && $filter == 'reassign')) {\n $output[] = $teamTmp;\n }\n }\n\n return $output;\n }", "title": "" }, { "docid": "97c8546207fba23fc71f8e44933ea7a7", "score": "0.6064665", "text": "function get_current_team(){\n global $teams;\n for($i = 0; $i < count($teams); $i++){\n if($teams[$i]['active'] == 1){\n return $teams[$i];\n }\n }\n return $teams[0];\n}", "title": "" }, { "docid": "3d631022db866acfe220ab04980057b3", "score": "0.60614526", "text": "public function getTeamInfo($team)\r\n\t{\r\n\t\tif ($this->TC2)\r\n\t\t{\r\n\t\t\t$res = $this->db->prepare(\"SELECT \r\n\t\t\t\t\t\t\t\t\t`arenaTeamId` AS arenateamid, \r\n\t\t\t\t\t\t\t\t\t`rating`, \r\n\t\t\t\t\t\t\t\t\t`rank`, \r\n\t\t\t\t\t\t\t\t\t`seasonGames` AS games, \r\n\t\t\t\t\t\t\t\t\t`seasonWins` AS wins, \r\n\t\t\t\t\t\t\t\t\t`name`, \r\n\t\t\t\t\t\t\t\t\t`type`\r\n\t\t\t\t\t\t\t\tFROM `arena_team` \r\n\t\t\t\t\t\t\t\tWHERE `arenaTeamId` = :team\r\n\t\t\t\t\t\t\t\tORDER BY rating DESC \r\n\t\t\t\t\t\t\t\tLIMIT 1\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$res = $this->db->prepare(\"SELECT \r\n\t\t\t\t\t\t\t\t\t`arena_team_stats`.`arenateamid` AS arenateamid, \r\n\t\t\t\t\t\t\t\t\t`arena_team_stats`.`rating` AS rating, \r\n\t\t\t\t\t\t\t\t\t`arena_team_stats`.`rank` AS rank, \r\n\t\t\t\t\t\t\t\t\t`arena_team_stats`.`played` AS games, \r\n\t\t\t\t\t\t\t\t\t`arena_team_stats`.`wins2` AS wins, \r\n\t\t\t\t\t\t\t\t\t`arena_team`.`name` AS name, \r\n\t\t\t\t\t\t\t\t\t`arena_team`.`type` AS type \r\n\t\t\t\t\t\t\t\tFROM `arena_team_stats` \r\n\t\t\t\t\t\t\t\tLEFT JOIN `arena_team` ON `arena_team_stats`.`arenateamid` = `arena_team`.`arenateamid`\r\n\t\t\t\t\t\t\t\tWHERE `arena_team_stats`.`arenateamid` = :team\r\n\t\t\t\t\t\t\t\tORDER BY rating DESC \r\n\t\t\t\t\t\t\t\tLIMIT 1\");\r\n\t\t}\r\n\t\t\r\n\t\t$res->bindParam(':team', $team, PDO::PARAM_INT);\r\n\t\t$res->execute();\r\n\t\t\t\t\r\n\t\tif ($res->rowCount() > 0)\r\n\t\t{\r\n\t\t\t$arr = $res->fetch(PDO::FETCH_ASSOC);\r\n\t\t\t\r\n\t\t\t//define array\r\n\t\t\t$row = array();\r\n\t\t\t$row['arenateamid'] = $arr['arenateamid'];\r\n\t\t\t$row['rating'] = $arr['rating'];\r\n\t\t\t$row['rank'] = $arr['rank'];\r\n\t\t\t$row['games'] = $arr['games'];\r\n\t\t\t$row['wins'] = $arr['wins'];\r\n\t\t\t$row['lost'] = $arr['games'] - $arr['wins'];\r\n\t\t\t$row['name'] = $arr['name'];\r\n\t\t\t\r\n\t\t\t//transalte the arena type\r\n\t\t\tif ($arr['type'] == 2)\r\n\t\t\t{\r\n\t\t\t\t$row['type'] = '2v2';\r\n\t\t\t}\r\n\t\t\telse if ($arr['type'] == 3)\r\n\t\t\t{\r\n\t\t\t\t$row['type'] = '3v3';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$row['type'] = '5v5';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tunset($arr);\r\n\t\t\t\r\n\t\t\treturn $row;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tunset($res);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f66a03789fe1dd8416ce2a2b0f904fc4", "score": "0.605966", "text": "public function getTeamrel(){\n\t\n\t\t$user\t= JFactory::getUser();\n\t\t$active = $user->get( 'active_team' );\n\t\t\n\t\t$this->_com_params\t= JComponentHelper::getParams('com_zbrochure');\n\t\t\n\t\ttry{\n\t\t\n\t\t\t$query\t= $this->_db->getQuery( true );\n\t\t\t\n\t\t\t$query->select( '*' );\n\t\t\t$query->from( '#__user_usergroup_map AS r' );\n\t\t\t$query->join( 'LEFT', '#__usergroups AS g ON g.id = r.group_id' );\n\t\t\t\n\t\t\t$this->_db->setQuery( $query );\n\t\t\t$this->_teamrel = $this->_db->loadObjectList();\n\t\t\t\n\t\t\tif( $error = $this->_db->getErrorMsg() ){\n\n\t\t\t\tthrow new Exception( $error );\n\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}catch( JException $e ){\n\t\t\n\t\t\tif( $e->getCode() == 404 ){\n\t\t\t\n\t\t\t\t// Need to go thru the error handler to allow Redirect to work.\n\t\t\t\tJError::raiseError( 404, $e->getMessage() );\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t\t$this->setError($e);\n\t\t\t\n\t\t\t}\n\n\t\t}\n\t\t\n\t\treturn $this->_teamrel;\n\t\t\n\t}", "title": "" }, { "docid": "c1fab8d4c2012cf1b1581889157bc5e4", "score": "0.60527563", "text": "public function getAllTeams() {\n\n return $teams = Teams::all()->toArray();\n }", "title": "" }, { "docid": "3c3305fdc6deca734d3b114b5a5cff74", "score": "0.60510236", "text": "private function Team_GetTeam() \n {\n //mismatched function calls and parameter values\n $selectTeam = new TeamController;\n $aTeam = new Team;\n $failure = true;\n\n if($this->get_request_method() != \"POST\") \n {\n $this->response('',406);\n }\n\n $info = $this->_request; \n $authUser = $this->AuthRequired($info);\n\n if(isset($info['loginId']))\n {\n $username = $info['loginId'];\n if(isset($info['teamId'])) \n {\n $teamId = $info['teamId']; \n //$aTeam = $selectTeam->GetTeamFromID($info['teamId'], $info['loginId']);\n $x1 = $selectTeam->GetTeamFromID($info['teamId'], $info['loginId']);\n } \n }\n\n $message = \"\";\n if ($x1 == -998)\n {\n //added functionality\n //if this happens, then the user either does not belong to the team\n //OR\n //the user is pendingApproval <--- this is the likely case\n\n //break team not found if then\n $x1 = null;\n $x1 = array(); \n $x1['teamId'] = -998;\n $x1['teamName'] = \"xxx\";\n }\n\n if(($x1['teamId'] == -999) or ($x1['teamName'] == \"\")) \n { \n //might be N/a\n $failure=true;\n $message = \"team not found\";\n }\n elseif(($x1['teamId'] == -998) or ($x1['teamName'] == \"xxx\")) \n {\n $failure = true;\n $message = \"team not found or membership still pendingApproval\";\n }\n else \n {\n $failure=false;\n }\n\n if($failure == true) \n {\n $respArray = array('status' => 'failure', 'response' => $message);\n } else \n {\n //$newTeam = get_object_vars($aTeam);\n $newTeam = $x1;\n $respArray = array('status' => 'success', 'response' => $newTeam);\n }\n\n logIt(var_export($respArray, true));\n $this->response($this->json($respArray), 200);\n }", "title": "" }, { "docid": "d728de24a01aaa2d6b6c38e4d299174f", "score": "0.6047739", "text": "public function show(Team $team)\n {\n $this->authorize('admin.team.show', $team);\n\n // TODO your code goes here\n }", "title": "" }, { "docid": "60dfa8fb56b0037f739f936130c6173f", "score": "0.60321236", "text": "public function getteamdetails()\n\t{\n\t\t$team_id = Request::get('team_id');\n\t\t$tournament_id = Request::get('tournament_id');\n\t\t$search_team_ids = Request::get('search_team_ids');\n\t\t$tournament_round_number = Request::get('tournament_round_number');\n\t\t$tournament_group_id = Request::get('tournament_group_id');\n\t\t$schedule_type = Request::get('scheduletype');\n\t\t$search_team = Request::get('term');\n\t\t$tournamentDetails = Tournaments::where('id', '=', $tournament_id)->first(['schedule_type']);\n\t\t$schedule_type = $tournamentDetails->schedule_type;\n\n\t\t$results = array();\n\t\t$addedTeamIds='';\n\n\t\t// If group stage then fetch teams with tournament group id else with tournament id\n\t\tif(!empty($tournament_group_id)) {\n\t\t\t$teamIDs = $this->getTournamentGroupTeams($tournament_group_id);\n\t\t}else {\n// $teamIDs = $this->getTournamentTeams($tournament_id);\n\t\t\tif(!empty($tournament_round_number)) {\n\t\t\t\tif($tournament_round_number<=1) {\n\t\t\t\t\t$final_stage_teams = Tournaments::where('id',$tournament_id)->first(['final_stage_teams_ids','final_stage_teams']);\n\t\t\t\t\t$teamIDs = $final_stage_teams->final_stage_teams_ids;\n\t\t\t\t\t/*$addedMatches = MatchSchedule::where('tournament_id',$tournament_id)->whereNull('tournament_group_id')\n ->where('tournament_round_number',1)\n ->get(['id','tournament_id','a_id','b_id']);\n if(count($addedMatches)) {\n foreach($addedMatches as $match) {\n $addedTeamIds.=$match['a_id'].',';\n if(!empty($match['b_id'])) {\n $addedTeamIds.=$match['b_id'].',';\n }\n }\n }*/\n\t\t\t\t}else {\n\t\t\t\t\tif(!empty($search_team_ids)) {\n\t\t\t\t\t\t$teamIDs = $search_team_ids;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(empty($tournament_round_number) && empty($search_team_ids)) {\n\t\t\t\t$final_stage_teams = Tournaments::where('id',$tournament_id)->first(['final_stage_teams_ids','final_stage_teams']);\n\t\t\t\t$teamIDs = $final_stage_teams->final_stage_teams_ids;\n\t\t\t}\n\t\t}\n\n\t\tif(count($teamIDs)) {\n\t\t\t$teamIDs = explode(',',trim($teamIDs,','));\n// if(!empty($addedTeamIds)) {\n// $addedTeamIds = explode(',', rtrim($addedTeamIds, ','));\n// $teamIDs = array_diff($teamIDs, $addedTeamIds);\n// }\n\t\t}\n\n\t\t//if team id then remove the team id from the existing ids\n\t\tif(!empty($team_id))\n\t\t{\n\t\t\t$team_id_key = array_search($team_id,$teamIDs);\n\t\t\tif(isset($team_id_key) && $team_id_key >= 0)\n\t\t\t{\n\t\t\t\tunset($teamIDs[$team_id_key]);\n\t\t\t}\n\t\t}\n\n\t\tif($schedule_type == 'team') {\n\t\t\t$teams = Team::whereIn('id',$teamIDs)\n\t\t\t\t->where('name','LIKE','%'.$search_team.'%')\n\t\t\t\t->orderBy('name')->get(array('name', 'id', 'team_level'));\n\t\t\tif(!empty($teams))\n\t\t\t{\n\t\t\t\tforeach ($teams as $query)\n\t\t\t\t{\n\t\t\t\t\t$results[] = ['id' => $query->id, 'value' => $query->name.' ('.$query->team_level.')'];\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t$teams = User::whereIn('id',$teamIDs)\n\t\t\t\t->where('name','LIKE','%'.$search_team.'%')\n\t\t\t\t->orderBy('name')->get(array('name', 'id'));\n\t\t\tif(!empty($teams))\n\t\t\t{\n\t\t\t\tforeach ($teams as $query)\n\t\t\t\t{\n\t\t\t\t\t$results[] = ['id' => $query['id'], 'value' => $query['name']];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//if team is selected, get the teams with same sport\n\n\t\treturn Response::json($results);\n\t}", "title": "" }, { "docid": "b2349bc19a9dd15ffc0af232ffd99326", "score": "0.6020484", "text": "public static function getTeams($id=null)\n\t{\n\t\t//get db\n\t\t$db = Factory::getDb();\n\t\t$query = $db->getQuery(true);\n\n\t\t//query\n\t\t$query->select(\"t.*,u.first_name,u.last_name,(CASE WHEN (t.name IS NOT NULL) THEN t.name ELSE \" . $query->concatenate(array('u.first_name', 'NULL', 'u.last_name')) . \" END) AS team_name\");\n\t\t$query->from(\"#__teams AS t\");\n\t\t$query->leftJoin(\"#__users AS u ON u.id = t.leader_id AND u.published=1\");\n\n\t\t//search for specific team\n\t\tif ($id)\n\t\t{\n\t\t\t$query->where(\"t.team_id = $id\");\n\t\t}\n\n\t\t$user_role = UsersHelper::getRole();\n\t\t$user_id = UsersHelper::getUserId();\n\n\t\tif ($user_role == 'manager')\n\t\t{\n\t\t\t$team_id = UsersHelper::getTeamId();\n\t\t\t$query->where('t.team_id=' . $team_id);\n\t\t}\n\n\t\t//return results\n\t\t$db->setQuery($query);\n\t\t$teams = $db->loadAssocList();\n\n\t\treturn $teams;\n\t}", "title": "" }, { "docid": "3982f1f3f78d1efc5491db3927a41a27", "score": "0.6020096", "text": "public function retrieve(Request $request)\n {\n return Auth::User()->teams()\n ->join('teams', 'team_users.team_id', '=', 'teams.id')\n ->select('teams.id', 'teams.name', 'teams.company_id')\n ->where('teams.company_id', $request->companyId)\n ->get();\n }", "title": "" }, { "docid": "b2ec463aa2a51cbc93461cd7dd7bfc6a", "score": "0.6010471", "text": "public function projectsByTeam() \n {\n $user = Auth::user();\n $teams = $user->teams;\n\n foreach ($teams as $team) {\n $team['projects'] = $team->projects;\n }\n return $teams;\n\n }", "title": "" }, { "docid": "2d3338ce439653c1b717399d5360806e", "score": "0.60051453", "text": "public function show($id)\n {\n $oneTeam = Http::get('https://www.balldontlie.io/api/v1/teams/' . $id);\n\n return json_decode($oneTeam);\n\n }", "title": "" }, { "docid": "0f18c9c4eed2f40915157722756fa0fa", "score": "0.5993238", "text": "public function getName()\n {\n return 'teams';\n }", "title": "" }, { "docid": "8ff84a2e59a3c50ed15833866090bc6a", "score": "0.59902096", "text": "public function show(Team $team)\n {\n return Inertia::render('Teams/Show', compact('team'));\n }", "title": "" }, { "docid": "e9c8e4364cc254341ddc4920cd6134a5", "score": "0.5987775", "text": "public function team()\n {\n if ($this->super) {\n return $this->superTeam();\n }\n\n if ($this->agent) {\n return $this->agentTeam();\n }\n }", "title": "" }, { "docid": "4ac87d13091d7fd64c58e1592fb05d65", "score": "0.5982656", "text": "public function index()\n {\n return response()->json(TeamResource::collection(auth()->user()->teams->load($this->relations)));\n }", "title": "" }, { "docid": "7a295d60a207d578b1bbfe4f5ca7de92", "score": "0.59748554", "text": "public function getTeams(){\n\t\n\t\t$user\t= JFactory::getUser();\n\t\t$active = $user->get( 'active_team' );\n\t\t\n\t\t$this->_com_params\t= JComponentHelper::getParams('com_zbrochure');\n\t\t\n\t\ttry{\n\t\t\n\t\t\t$query\t= $this->_db->getQuery( true );\n\t\t\t\n\t\t\t$query->select( '*' );\n\t\t\t$query->from( '#__usergroups' );\n\t\t\t$query->where( 'parent_id = '.$this->_com_params->get('team_parent') );\n\t\t\t\n\t\t\t$this->_db->setQuery( $query );\n\t\t\t$this->_teams = $this->_db->loadObjectList();\n\t\t\t\n\t\t\tif( $error = $this->_db->getErrorMsg() ){\n\n\t\t\t\tthrow new Exception( $error );\n\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}catch( JException $e ){\n\t\t\n\t\t\tif( $e->getCode() == 404 ){\n\t\t\t\n\t\t\t\t// Need to go thru the error handler to allow Redirect to work.\n\t\t\t\tJError::raiseError( 404, $e->getMessage() );\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t\t$this->setError($e);\n\t\t\t\n\t\t\t}\n\n\t\t}\n\t\t\n\t\treturn $this->_teams;\n\t\t\n\t}", "title": "" }, { "docid": "216ed16bb2c5e86e175aba7224c63be0", "score": "0.5971568", "text": "public function index($team = '') \n\t{\n\t\t//$db = $this->model('mydb');\n\n\t\t// make use of the get function declared in mydb class\n\t\t//$team = $db->get('teams');\t\t\t\n\n\t\t// push the data through to the view\n\t\t$this->view('account');\t\t\n\t}", "title": "" }, { "docid": "0e11576d30a236d601f83669693fab9b", "score": "0.59682685", "text": "public function team()\n {\n return view('about.team');\n }", "title": "" }, { "docid": "7c34e66003c4af82cd4bccb7de6a5c4c", "score": "0.596236", "text": "private function getTeamId(): ?string {\n // Get the team from the route match.\n $team = \\Drupal::routeMatch()->getParameter('team');\n // Sometimes the param converter has converted the team to an entity.\n return $team instanceof TeamInterface ? $team->id() : $team;\n }", "title": "" }, { "docid": "03f1b667c560d89aed1135f5ae9eab21", "score": "0.5960371", "text": "public function getLeaguesByTeam($TeamID,$entry=false){\n\t\treturn $this->getData($this->getDataUrl('league/by-team/'.(is_array($TeamID)?implode(',',$TeamID):$TeamID).'/'.($entry?'entry':''),'2.5'));\n\t}", "title": "" } ]
23258f2e4a5b87f28b6f9dd09225a9ab
Render the event button
[ { "docid": "cc25d9a814a9a7b9ebda1116e12bb44c", "score": "0.68441683", "text": "public function run() {\n //SILEX:conception\n // Maybe create a widget bar and put buttons in it to use the same style\n //\\SILEX:conception\n return Html::a(\n Icon::show('flag', [], Icon::FA) . \" \" . Yii::t('app', self::ADD_EVENT_LABEL),\n [\n 'event/create',\n EventPost::CONCERNED_ITEMS_URIS => $this->concernedItemsUris,\n EventPost::RETURN_URL => Url::current()\n ], \n [\n 'class' => 'btn btn-default',\n ] \n );\n }", "title": "" } ]
[ { "docid": "1067e18480ef53a8172d06494997440a", "score": "0.7569363", "text": "protected function render() {\n $this->render_button();\n }", "title": "" }, { "docid": "bd22ee56714813dc43aeab453ac505ce", "score": "0.7159413", "text": "protected function renderButtons()\n {\n }", "title": "" }, { "docid": "5c3b70fc6731da77fba198d3184c15fc", "score": "0.7009735", "text": "public function render()\n\t{\n\t\treturn $this->view('components.button');\n\t}", "title": "" }, { "docid": "dfec18431986aabed86e7af12036e85f", "score": "0.69208735", "text": "public function renderButton () {\n if (!$this->hasButton) return;\n \n echo \"\n <a href='#' title='\".CHtml::encode ($this->getLabel ()).\"'\n data-mass-action='\".get_class ($this).\"'\n data-allow-multiple='\".($this->allowMultiple ? 'true' : 'false').\"'\n class='mass-action-button x2-button mass-action-button-\".get_class ($this).\"'>\n <span></span>\n </a>\";\n }", "title": "" }, { "docid": "c8deffcf9dfc6acc261fd8f63cd73a4e", "score": "0.66667473", "text": "public function render()\n {\n return view('components.button');\n }", "title": "" }, { "docid": "c8deffcf9dfc6acc261fd8f63cd73a4e", "score": "0.66667473", "text": "public function render()\n {\n return view('components.button');\n }", "title": "" }, { "docid": "c8deffcf9dfc6acc261fd8f63cd73a4e", "score": "0.66667473", "text": "public function render()\n {\n return view('components.button');\n }", "title": "" }, { "docid": "f9a5e7c9a13799e66d17e70cd2ffdfea", "score": "0.6516004", "text": "public function render()\n {\n return view('laratify::components.button');\n }", "title": "" }, { "docid": "703ab4b6ead4c904a5503d14e2c411de", "score": "0.6502021", "text": "public function renderButton()\n\t{\n\t\tif (!empty($this->buttonOptions)) {\n\n\t\t\t$this->buttonOptions['data-toggle'] = isset($this->buttonOptions['data-toggle'])\n\t\t\t\t? $this->buttonOptions['data-toggle']\n\t\t\t\t: 'modal';\n\n\t\t\tif ($this->remote !== null && !isset($this->buttonOptions['data-remote']))\n\t\t\t\t$this->buttonOptions['data-remote'] = Html::url($this->remote);\n\n\t\t\t$label = ArrayHelper::remove($this->buttonOptions, 'label', 'Button');\n\t\t\t$name = ArrayHelper::remove($this->buttonOptions, 'name');\n\t\t\t$value = ArrayHelper::remove($this->buttonOptions, 'value');\n\n\t\t\t$attr = isset($this->buttonOptions['data-remote'])\n\t\t\t\t? 'data-target'\n\t\t\t\t: 'href';\n\n\t\t\t$this->buttonOptions[$attr] = isset($this->buttonOptions[$attr])\n\t\t\t\t? $this->buttonOptions[$attr]\n\t\t\t\t: '#' . ArrayHelper::getValue($this->options, 'id');\n\n\t\t\techo Html::button($label, $name, $value, $this->buttonOptions);\n\t\t}\n\t}", "title": "" }, { "docid": "87c559da17f98273b5ae7ae41392de30", "score": "0.64823884", "text": "public function render()\r\n {\r\n \t// return the button\r\n \t$html = array();\r\n \t$html[] = sprintf(\r\n \t'<input type=\"button\" value=\"%s\" name=\"%s\" id=\"%2$s\" %s />',\r\n \t\t$this->value,\r\n \t\t$this->name,\r\n \t\t$this->attributestorage->get_attributes());\r\n \treturn implode(\"\\n\", $html);\r\n }", "title": "" }, { "docid": "0766325d75cb896820ca3a98f5c745f1", "score": "0.6471952", "text": "public function render()\n\t{\n\t\t$id = '';\n\n\t\tif (strpos($this->attrs, 'id=\"') === FALSE)\n\t\t{\n\t\t\t$name = Form::create_id($this->name);\n\t\t}\n\t\t$this->attrs = str_replace('id=\"\"', '', $this->attrs);\n\t\t\n\t\t$str = \"<button type=\\\"\".$this->type.\"\\\" name=\\\"\".$this->name.\"\\\"\".$id.\" value=\\\"\".$this->value.\"\\\"\".$this->attrs.\">\".$this->value.\"</button>\";\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "f76cc658c16630a49dbb28217b0af44a", "score": "0.64702606", "text": "abstract public function display_button();", "title": "" }, { "docid": "7d918ec047cdb68e0b271a2431edb08a", "score": "0.6336854", "text": "public function render()\n {\n return view('components.wysiwyg.action-button');\n }", "title": "" }, { "docid": "50f6be5dcd76f0403bcede32df044eea", "score": "0.62840027", "text": "public function render()\n {\n return view('components.button.submit-outline');\n }", "title": "" }, { "docid": "496285e277ad8c5629fd2ca33f672820", "score": "0.6087379", "text": "function render() {\n \n $name = $this->_data['name'];\n $class = $this->_data['html_class'];\n \n return \"<input type='submit' name='$name' class='$class' value='' />\"; \n }", "title": "" }, { "docid": "9ecf85d7a76c493d590fd5a7b4e43a37", "score": "0.6057553", "text": "function component_button() { ?>\n\n\t<div class=\"oxygen-add-section-element\"\n\t\t\t\tdata-searchid=\"<?php echo strtolower( preg_replace('/\\s+/', '_', sanitize_text_field( $this->options['name'] ) ) ) ?>\"\n\t\t\t\tng-click=\"iframeScope.addComponent('<?php echo esc_attr($this->options['tag']); ?>','shortcode')\">\n\t\t\t<img src='<?php echo CT_FW_URI; ?>/toolbar/UI/oxygen-icons/add-icons/shortcode.svg' />\n\t\t\t<img src='<?php echo CT_FW_URI; ?>/toolbar/UI/oxygen-icons/add-icons/shortcode-active.svg' />\n\t\t\t<?php echo esc_html($this->options['name']); ?>\n\t\t</div>\n\n\t<?php }", "title": "" }, { "docid": "7f657a3b10355f6d68cece524ef2307f", "score": "0.60134864", "text": "public function run()\n {\n $this->renderButtons();\n }", "title": "" }, { "docid": "104f8808b075960d6b70933a06b4edc0", "score": "0.6006742", "text": "public function hookRender($event) { }", "title": "" }, { "docid": "5e5ec9928ca60ab1a8ad17b9c23b043a", "score": "0.5997434", "text": "public function render()\n {\n return view('nf::editor-button');\n }", "title": "" }, { "docid": "556b7c637cc52dc8f1df86861eca194d", "score": "0.59890676", "text": "function show_button() {\n\n\t\t// Extract subparts from the template\n\t\t$subpart = $this->cObj->getSubpart($this->templateHtml, '###VOTEBUTTON###');// Fill marker array\n\n\n\t\t$linkparams['tx_mzvoting']['action']= '1'; //vote\n\n\n\t\t//nomarkers jet\n\t\t$markerArray['###LINK###'] = $this->cObj->getTypoLink_URL($GLOBALS[\"TSFE\"]->id,$linkparams);\n\n\t\t//render\n\t\t$return = $this->cObj->substituteMarkerArrayCached($subpart, $markerArray);\n\n\n\n\t\treturn($return);\n\n\t}", "title": "" }, { "docid": "6c25e2b63197b6c78df78db86b99e964", "score": "0.5966354", "text": "protected function renderButton()\n {\n Html::addCssClass($this->options, 'btn');\n $label = $this->label;\n if ($this->encodeLabel) {\n $label = Html::encode($label);\n }\n $options = $this->options;\n $splitButton = '';\n $caretHtml = $this->caretHtml ? $this->caretHtml : '<span class=\"caret\"></span>';\n if ($this->split) {\n $options = $this->options;\n $this->options['data-toggle'] = 'dropdown';\n Html::addCssClass($this->options, 'dropdown-toggle');\n $splitButton = Button::widget([\n 'label' => $this->caretHtml ? $this->caretHtml : '<span class=\"caret\"></span>',\n 'encodeLabel' => false,\n 'options' => $this->options,\n 'view' => $this->getView(),\n ]);\n } else {\n $label .= ' ' . $this->caretHtml ? $this->caretHtml : '<span class=\"caret\"></span>';\n $options = $this->options;\n if (!isset($options['href'])) {\n $options['href'] = '#';\n }\n Html::addCssClass($options, 'dropdown-toggle');\n $options['data-toggle'] = 'dropdown';\n }\n\n return Button::widget([\n 'tagName' => $this->tagName,\n 'label' => $label,\n 'options' => $options,\n 'encodeLabel' => false,\n 'view' => $this->getView(),\n ]) . \"\\n\" . $splitButton;\n }", "title": "" }, { "docid": "dbeb87eae347934df5f5ddd24f05b703", "score": "0.5944483", "text": "public function getButtonHtml()\n {\n $button = $this->getLayout()->createBlock(\n 'Magento\\Backend\\Block\\Widget\\Button'\n )->setData(\n [\n 'id' => 'fastly_vcl_export_button',\n 'label' => __('Download Fastly VCL'),\n 'onclick' => \"setLocation('{$this->getExportUrl()}')\"\n ]\n );\n\n return $button->toHtml();\n }", "title": "" }, { "docid": "d570e41c5e39137e6eef4cfce8071a84", "score": "0.5942103", "text": "public function run() {\n\t\tif (false === $this->visible) {\n\t\t\treturn;\n\t\t}\n\t\techo $this->createButton();\n\t}", "title": "" }, { "docid": "752a308dc32ea894013f7e71139fc726", "score": "0.59385604", "text": "public function getAddButtonHtml()\n {\n $addButtonData = [\n 'label' => __('Add Products'),\n 'onclick' => \"rma.addProduct()\",\n 'class' => 'action-secondary action-add'\n ];\n return $this->getLayout()->createBlock(\n \\Magento\\Backend\\Block\\Widget\\Button::class\n )->setData(\n $addButtonData\n )->toHtml();\n }", "title": "" }, { "docid": "6826228d12a3bbaa527c11ebc4e685d1", "score": "0.58742887", "text": "public function buttonGenerate()\n {\n\n $imagePath = '/resources/google/images/google-signin-buttons';\n $dir = '/1x';\n $img = '/btn_google_signin_dark_normal_web.png';\n\n echo <<<EXCERPT\n <style>\n .center{\n text-align: center;\n }\n </style>\nEXCERPT;\n\n echo '<div class=\"center\">';\n\n echo '<a href=\"' . $this->authUrl() . '\">';\n\n echo '<img src=\"' . $imagePath . $dir . $img . '\" alt=\"Google Signin Button\">';\n\n echo '</a>';\n\n echo '</div>';\n\n }", "title": "" }, { "docid": "d7a18eabd6239075f2d38ac10d734e2f", "score": "0.58732593", "text": "private function renderVkButton()\n {\n $view = $this->view;\n $linkOptions = $this->linkOptions;\n $linkOptions[ 'id' ] = 'vk-share-button';\n $linkOptions[ 'onclick' ] = 'document.getElementById(\"vkBlock\").firstChild.click()';\n\n \\app\\modules\\core\\widgets\\ShareButtonsWidget\\VkAsset::register($view);\n\n $view->registerJs('var vkBlock = document.createElement(\"div\"); vkBlock.innerHTML = VK.Share.button(\"' . $this->link . '\", {type: \"custom\"}); vkBlock.setAttribute(\"id\", \"vkBlock\"); document.getElementsByTagName(\"body\")[0].appendChild(vkBlock);');\n $view->registerCss('#vkBlock { display: none;}');\n\n Html::addCssClass($linkOptions, 'fa-vk');\n\n return strtr($this->linkTemplate, [\n '{link}' => Html::a('', 'javascript:void(0);', $linkOptions),\n ]);\n }", "title": "" }, { "docid": "689b72fe0e98a4855fde6c58ba4c3a18", "score": "0.5855739", "text": "public function button(): string {\n return '<input type=\"button\" class=\"hidden button_preview_'\n . $this->id . '\" value=\"Preview\" title=\"Preview text\" />';\n }", "title": "" }, { "docid": "be764b3b5fd16dbbfc96f6d6f1bacdbe", "score": "0.5855671", "text": "public function render()\n {\n Admin::script($this->script());\n\n $refresh_url = $this->refresh_url;\n\n $refresh = trans('admin.refresh');\n//<a href=\"{$this->getResource()}/{$this->getKey()}\" class=\"btn btn-info btn-view\">\n return <<<EOT\n<a class=\"btn btn-sm btn-primary grid-refresh\" href=\"{$refresh_url}\" title=\"$refresh\"><i class=\"fa fa-refresh\"></i><span class=\"hidden-xs\"> $refresh</span></a>\nEOT;\n }", "title": "" }, { "docid": "4fb9abdf309acd8e9a2bfdfb8aafcec4", "score": "0.5844852", "text": "public function render()\n\t{\n\t\t$output = '<td><a href=\"#\" onclick=\"document.getElementById( \\'task\\' ).value = \\'add\\'; document.getElementById( \\'view\\' ).value = \\'edit\\'; document.getElementById( \\''.One_Button::getFormId().'\\' ).submit(); \"><img src=\"' . One_Config::getInstance()->getUrl() . '/vendor/images/toolset/' . self::getToolset() . '/add.png\" title=\"Add\">';\n\n\t\tif( self::showText() )\n\t\t\t$output .= '<br />Add';\n\n\t\t$output .= '</a></td>';\n\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "1353489141848936c4b0b1143088b579", "score": "0.5825492", "text": "function Cbutton(){\r\n \r\n print('</button>');\r\n \r\n }", "title": "" }, { "docid": "4f107ce06cb6e7ceeaef91aa194c27ba", "score": "0.58031994", "text": "function date_print_calendar( $p_button_name = 'trigger' ) {\n\tglobal $g_calendar_already_imported;\n\tif(( ON == config_get( 'dhtml_filters' ) ) && ( ON == config_get( 'use_javascript' ) ) ) {\n\t\tif ( !$g_calendar_already_imported ) {\n\t\t\techo \"<style type=\\\"text/css\\\">@import url(\" . config_get( 'short_path' ) . \"css/calendar-blue.css);</style>\\n\";\n\t\t\thtml_javascript_link( 'jscalendar/calendar.js' );\n\t\t\thtml_javascript_link( 'jscalendar/lang/calendar-en.js' );\n\t\t\thtml_javascript_link( 'jscalendar/calendar-setup.js' );\n\t\t\t$g_calendar_already_imported = true;\n\t\t}\n\t\t$t_icon_path = config_get( 'icon_path' );\n\t\t$t_cal_icon = $t_icon_path . \"calendar-img.gif\";\n\t\techo \"<input type=\\\"image\\\" class=\\\"button\\\" id=\\\"\" . $p_button_name . \"\\\" src=\\\"\" . $t_cal_icon . \"\\\" />\";\n\t}\n}", "title": "" }, { "docid": "12641de70d11ccb2b99bb3444e53c999", "score": "0.5798738", "text": "public function render_button() {\n\n\t\t$button_text = '';\n\t\t$classes = array(\n\t\t\t'sv-wc-apple-pay-button',\n\t\t);\n\n\t\tswitch ( $this->get_handler()->get_button_style() ) {\n\n\t\t\tcase 'black':\n\t\t\t\t$classes[] = 'apple-pay-button-black';\n\t\t\tbreak;\n\n\t\t\tcase 'white':\n\t\t\t\t$classes[] = 'apple-pay-button-white';\n\t\t\tbreak;\n\n\t\t\tcase 'white-with-line':\n\t\t\t\t$classes[] = 'apple-pay-button-white-with-line';\n\t\t\tbreak;\n\t\t}\n\n\t\t// if on the single product page, add some text\n\t\tif ( is_product() ) {\n\t\t\t$classes[] = 'apple-pay-button-buy-now';\n\t\t\t$button_text = __( 'Buy with', 'woocommerce-gateway-paypal-powered-by-braintree' );\n\t\t}\n\n\t\tif ( $button_text ) {\n\t\t\t$classes[] = 'apple-pay-button-with-text';\n\t\t}\n\n\t\techo '<button class=\"' . implode( ' ', array_map( 'sanitize_html_class', $classes ) ) . '\" lang=\"' . esc_attr( substr( get_locale(), 0, 2 ) ) . '\">';\n\n\t\t\tif ( $button_text ) {\n\t\t\t\techo '<span class=\"text\">' . esc_html( $button_text ) . '</span><span class=\"logo\"></span>';\n\t\t\t}\n\n\t\techo '</button>';\n\t}", "title": "" }, { "docid": "a9fb824e4d54f46d3ef0d20c2d92fee8", "score": "0.5788172", "text": "public function render_publishing_actions() {\n\n\t\tglobal $pagenow;\n\n\t\t// Enqueue our stylesheet.\n\t\twp_enqueue_style( 'practical-publishing-actions' );\n\n\t\t// Button title for publishing.\n\t\t$add_new_title = __( 'Publish and Add New', 'practical-publishing-actions' );\n\t\t$go_back_title = __( 'Publish and Go Back', 'practical-publishing-actions' );\n\n\t\t// If we are updating an existing post, appropriate the button title.\n\t\tif ( 'post.php' === $pagenow ) {\n\t\t\t$add_new_title = __( 'Update and Add New', 'practical-publishing-actions' );\n\t\t\t$go_back_title = __( 'Update and Go Back', 'practical-publishing-actions' );\n\t\t}\n\n\t\t?>\n\n\t\t<div class=\"ppa-actions\">\n\n\t\t\t<?php wp_nonce_field( 'ppa-actions', '_ppanonce' ); ?>\n\n\t\t\t<button class=\"button button-small\" name=\"ppa-add-new\">\n\t\t\t\t<?php echo esc_html( $add_new_title ); ?>\n\t\t\t</button>\n\n\t\t\t<button class=\"button button-small\" name=\"ppa-go-back\">\n\t\t\t\t<?php echo esc_html( $go_back_title ); ?>\n\t\t\t</button>\n\n\t\t</div>\n\n\t\t<?php\n\n\t}", "title": "" }, { "docid": "80e14ff61b7cbf2e568f3184db6495ee", "score": "0.57819563", "text": "public function render()\n {\n return ull_submit_tag(\n __('Send info to participants', null, 'ullCourseMessages'),\n array(\n 'name' => 'submit|action_slug=mail', \n 'form_id' => 'ull_tabletool_form',\n 'display_as_link' => true,\n )\n ); \n }", "title": "" }, { "docid": "3fde94f37b90420e548b401f14f5d51e", "score": "0.5755306", "text": "protected function Set_Button_HTML()\n\t{\n\n\t\t/**\n\t\t * Helper for client_code_displayoverview_setbuttonhtml(). [BR]\n\t\t */\n\t\t$application = ECash::getApplicationById($this->data->application_id);\n\t\t$this->data->application_status_string = $application->getStatus()->getApplicationStatus();\n\n\t\t/**\n\t\t * This abhorrition is for Agean's PD/AT Reminder Queues.\n\t\t */\n\t\t$isPD = false;\n\t\t$isAT = false;\n\t\t$qm = ECash::getFactory()->getQueueManager();\n\n\t\tif($qm->hasQueue('pd_reminder_queue'))\n\t\t{\n\t\t\t$isPD = $qm->getQueue('pd_reminder_queue')->entryExists($qm->getQueue('pd_reminder_queue')->getNewQueueItem($this->data->application_id));\n\t\t}\n\n\t\tif($qm->hasQueue('at_reminder_queue'))\n\t\t{\n\t\t\t$isAT = $qm->getQueue('at_reminder_queue')->entryExists($qm->getQueue('at_reminder_queue')->getNewQueueItem($this->data->application_id));\t\n\t\t}\n\n\t\tif($isAT || $isPD)\n\t\t{\n\t\t\t$this->data->REMOVE_REMINDER_BUTTON = \"<div class=\\\"app_button\\\"><input type=\\\"button\\\" name=\\\"submit_button\\\" value=\\\"Remove From Queue\\\" class=\\\"button2%%%reminder_queue_disabled%%%\\\" onClick=\\\"ReminderRemove();\\\"%%%reminder_queue_disabled%%%></div>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data->REMOVE_REMINDER_BUTTON = \"\";\n\t\t}\n\n\t\t// Only allow Fund available for confirmed statuses.\n\t\tif (($this->data->level2 == \"applicant\") ||\n\t\t\t($this->data->level1 == \"applicant\") ||\n\t\t\t($this->data->status == 'funding_failed') ||\n\t\t (($this->data->level1 == \"prospect\") && ($this->data->status == \"confirmed\")) ||\n\t\t ($this->Are_Docs_Received_And_Status_Pending($this->data->status, $this->data->docs))\n\t\t )\n\t\t{\n\t\t\tif(empty($this->data->fund_warning))\n\t\t\t{\n\t\t\t\t$this->data->fund_warning = \"\";\n\t\t\t\t$this->data->fund_button_disabled \t\t= \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->data->fund_button_disabled \t\t= \"disabled\";\n\t\t\t}\n\t\t\t$this->data->approve_button_disabled \t= \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data->fund_button_disabled \t\t= \"disabled\";\n\t\t\t$this->data->approve_button_disabled \t= \"disabled\";\n\t\t}\n\n\t\t//mantis:4648\n\t\tif (!empty($this->data->do_not_loan))\n\t\t{\n\t\t\t$this->data->approve_button_disabled \t= \"disabled\";\n\t\t\t$this->data->fund_button_disabled \t\t= \"disabled\";\n\t\t}\n\n\t\tif($this->Get_Section_ID_by_Name($this->Get_Section_ID(), 'reprocess'))\n\t\t{\n\t\t\t$this->data->reprocess_button_disabled = \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data->reprocess_button_disabled = \"disabled\";\n\t\t}\n\n\t\t//default fraud/risk release to disabled\n\t\t$this->data->release_verify_button_disabled\t\t\t= \"disabled\";\n\t\t$this->data->release_underwriting_button_disabled\t= \"disabled\";\n\t\t$this->data->af_override_button_disabled = \"disabled\";\n\n\t\tif($this->data->level1 == \"fraud\")\n\t\t{\n\t\t\t$this->data->release_verify_button_disabled = '';\n\t\t}\n\t\tif($this->data->level1 == \"high_risk\")\n\t\t{\n\t\t\t$this->data->release_underwriting_button_disabled = '';\n\t\t}\n\n\t\t// Default to allow\n\t\t$this->data->follow_up_disabled\t\t= \"\";\n\t\t$this->data->cs_withdraw_disabled\t= \"\";\n\t\t$this->data->cs_reverify_disabled\t= \"disabled\";\n\t\t$this->data->deny_button_disabled\t= \"\";\n\t\t$this->data->withdraw_disabled\t\t= \"\";\n\t\t$this->data->send_to_cccs_disabled = \"\";\n\t\t$this->data->send_to_second_tier_disabled = \"\";\n\t\t$this->data->bankruptcy_notification_disabled = \"\";\n\t\t$this->data->bankruptcy_verified_disabled = \"\";\n\t\t$this->data->inprocess_button_disabled = \"disabled\";\n\t\t$this->data->addl_button_disabled\t= \"\";\n\n\t\t// Skip Trace Button conditional display\n\t\tif($this->data->status == \"skip_trace\")\n\t\t{\n\t\t\t$this->data->skip_trace_display = \"Remove Skip Trace\";\n\t\t\t$this->data->skip_trace_short = \"Remove_Skip_Trace\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data->skip_trace_display = \"Skip Trace\";\n\t\t\t$this->data->skip_trace_short = \"Skip_Trace\";\n\t\t}\n\n\t\tif($this->module_name == 'collections' && $this->data->status != 'denied')\n\t\t\t$this->data->follow_up_disabled = \"\";\n\n\t\tif($this->data->level1 == 'verification' && $this->data->status == 'follow_up')\n\t\t{\n\t\t\t$this->data->deny_button_disabled\t= \"\";\n\t\t\t$this->data->withdraw_disabled\t\t= \"\";\n\t\t\t$this->data->cs_withdraw_disabled\t= \"\";\n\t\t}\n\n\t\tif ($this->data->level1 == 'external_collections' || $this->data->level1 == 'customer' || $this->data->level2 == 'customer' || $this->data->level3 == 'customer')\n\t\t{\n\t\t\t$this->data->cs_reverify_disabled = \"disabled\";\n\t\t}\t\t\t\t\n\n\t\tif ($this->data->level1 == 'underwriting')\n\t\t{\n\t\t\t$this->data->cs_reverify_disabled = \"\";\n\t\t}\t\t\t\t\n\t\t\n\t\tif(in_array($this->data->status,array('paid','recovered','') ))\n\t\t{\n\t\t\t$this->data->withdraw_disabled\t\t= \"disabled\";\n\t\t\t$this->data->cs_withdraw_disabled\t= \"disabled\";\n\t\t}\n\n\t\t$this->data->resig_disabled\t= \"disabled\";\t\t\n\t\tif($this->data->status == 'in_process')\n\t\t{\n\t\t\t$this->data->resig_disabled\t= \"\";\n\t\t}\n\n $debit_achs = 0;\n if ($this->data->application_status_id == 20) {\n if (round($this->data->schedule_status->posted_total, 2) < 200) {\n foreach ($this->data->schedule_status->debits as $debit) {\n if ($debit->ach_id && !(array_search($debit->type_id, $this->refi_qual_ach_pmt_types) === false)) {\n $debit_achs++;\n }\n }\n }\n }\n $this->data->refi_button_disabled = ($debit_achs) ? \"\" : \"disabled\";\n\n\t\t// Run this AFTER all the fund button checks are determined\t\t\n\t\trequire_once(CUSTOMER_LIB.\"/client_code_displayoverview_setbuttonhtml.func.php\");\n\t\tclient_code_displayoverview_setbuttonhtml($this->data);\n\n\t\t// [#18090]\n\t\tif($this->data->status == 'paid')\n\t\t{\n\t\t\t$this->data->approve_button_disabled = \"disabled\";\n\t\t\t$this->data->deny_button_disabled = \"disabled\";\n\t\t\t$this->data->withdraw_disabled = \"disabled\";\n\t\t\t$this->data->send_confirmation_disabled = \"disabled\";\n\t\t\t//$this->data->follow_up_disabled = \"disabled\";\n\t\t\t$this->data->cs_reverify_disabled\t= \"disabled\";\n\t\t\t$this->data->bankruptcy_notification_disabled = \"disabled\";\n\t\t\t$this->data->place_in_hold_disabled = \"disabled\";\n\t\t\t$this->data->amortization_disabled = \"disabled\";\n\t\t\t$this->data->bankruptcy_verified_disabled = \"disabled\";\n\t\t\t$this->data->send_to_second_tier_disabled = \"disabled\";\n\t\t\t$this->data->send_to_cccs_disabled = \"disabled\";\n\t\t\t$this->data->claim_app_button_disabled = \"disabled\";\n\t\t}\n\t\t\n\t\t\n\t\t// If the application does not have payment arrangements, it can be claimed.\n\t\tif($this->data->has_payment_arrangements === 0)\n\t\t{\n\t\t\t$disabled = isset($this->data->claim_app_button_disabled) ? $this->data->claim_app_button_disabled : '';\n\t\t\t$this->data->CLAIM_APP_BUTTON = \"<td><input type=\\\"button\\\" {$disabled} id=\\\"AppActionClaimApp\\\"name=\\\"submit_button\\\" value=\\\"Claim App\\\" class=\\\"button2{$disabled}\\\" onClick=\\\"ClaimApp();\\\"></td>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data->CLAIM_APP_BUTTON = \"\";\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6552863d99fdaa186535f1fa431c3819", "score": "0.57269996", "text": "public function DoRegisterButton() {\n\t\treturn \"<div id='registerButton'>\n <span id='registerSpan'>Haven't got an account?</span>\n <form method='post' action='index.php'>\n\t\t\t\t\t <input class='regButton' type='submit' id='$this->_register' name='$this->_register' value='Sign up now!' />\n\t\t\t </form>\n </div>\";\n\t}", "title": "" }, { "docid": "2f4b76f765284a303fb91643b0a2263b", "score": "0.57162774", "text": "function button( $vContent = NULL, $aAttrs = array() )\n\t{\n\t\t$bHasEnd = TRUE;\n\t\treturn $this->_create_tag( __FUNCTION__, $aAttrs, $bHasEnd, $vContent );\n\t}", "title": "" }, { "docid": "ee2ddae3b40203309cb745df68a06ebd", "score": "0.5707668", "text": "public function onRender() {}", "title": "" }, { "docid": "af5fb3bbf9b68b63d8cbbe6d6d3f31ea", "score": "0.5698345", "text": "public function render()\n {\n return view('components.backend.button.del');\n }", "title": "" }, { "docid": "65ce5042fab89aaee0cba3362770891a", "score": "0.5670238", "text": "public function render()\n {\n return view('htmltagcomponent::components.forms.submit-button');\n }", "title": "" }, { "docid": "96a72892733e7e2536279ac975346af3", "score": "0.5668667", "text": "public function render_content() {\n\t\techo '<div class=\"customize-control-with-button\">';\n\t\techo '<label>';\n\t\techo '<span class=\"zeen-control-reset actions\"><button type=\"button\" class=\"button\" id=\"zeen-reset\">' . sanitize_text_field( $this->label ) . '</button></span>';\n\t\techo '</label>';\n\t\techo '</div>';\n\t}", "title": "" }, { "docid": "8ddee977f1e4b5d9cefa90921e47b8c5", "score": "0.56630945", "text": "public function getButtonHtml()\n {\n $button = $this->getLayout()->createBlock('adminhtml/widget_button')\n ->setData(array(\n 'id' => 'unlock_button',\n 'label' => $this->helper('adminhtml')->__('Unlock Import'),\n 'onclick' => 'javascript:unlockImport(); return false;'\n ));\n\n return $button->toHtml();\n }", "title": "" }, { "docid": "ac048238e859c1a1486148366a4dab57", "score": "0.56599873", "text": "public function getGenerateAndDownloadButtonHtml()\n {\n $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array(\n 'id' => 'generate_and_download_button',\n 'label' => Mage::helper('mulberry_warranty')->__('Generate and Download')\n ));\n\n return $button->toHtml();\n }", "title": "" }, { "docid": "ec7831b1d9955a8b1e5d9f558af65744", "score": "0.56436455", "text": "public function getAddProductButtonHtml()\n {\n $addButtonData = [\n 'label' => __('Add Selected Product(s) to returns'),\n 'onclick' => \"rma.addSelectedProduct()\",\n 'class' => 'action-secondary action-add',\n ];\n return $this->getLayout()->createBlock(\n \\Magento\\Backend\\Block\\Widget\\Button::class\n )->setData(\n $addButtonData\n )->toHtml();\n }", "title": "" }, { "docid": "005386ba258696a03bdeb447f3be3330", "score": "0.5640447", "text": "public function getButtonHtml()\n {\n $button = $this->getLayout()->createBlock(\n 'Magento\\Backend\\Block\\Widget\\Button'\n )->setData([\n 'id' => 'fastly_waf_bypass_button',\n 'label' => __('Enable/Disable')\n ]);\n\n return $button->toHtml();\n }", "title": "" }, { "docid": "797621a58507d52003a888e732d3ffb0", "score": "0.5635975", "text": "public function renderButton($button)\n {\n if (is_array($button)) {\n $name = key($button);\n $url = $button[$name];\n\n if ($name === 'create') {\n return Html::a('<i class=\"icon icon-plus\"></i> Create', $url, [\n 'class' => 'btn btn-sm btn-success table-caption-button page__content-header-btn',\n ]);\n }\n }\n\n return (string)$button;\n }", "title": "" }, { "docid": "d7ea70790f4fc35783decad1f99bf6fd", "score": "0.5616661", "text": "function type() {\n return \"button\";\n }", "title": "" }, { "docid": "5fed10e45a105bec075f1168f10d60da", "score": "0.56052756", "text": "public function render_export_select_button() {\n $output = '';\n $output .= html_writer::start_div('', array('id' => 'oublogbuttons'));\n $output .= html_writer::tag('button', 'Select all',\n array('name' => 'oublog-export-select-all', 'class' => 'btn btn-secondary'));\n $output .= html_writer::tag('button', 'Select none',\n array('name' => 'oublog-export-select-none', 'class' => 'btn btn-secondary', 'disabled' => 'disabled'));\n $output .= html_writer::end_div();\n return $output;\n }", "title": "" }, { "docid": "e0f029e09fff0349318fd7e2d20f844c", "score": "0.55904037", "text": "public function getButtonsHtml()\n {\n $buttonData = [\n 'label' => __('Remove All'),\n 'onclick' => 'addBySku.removeAllFailed()',\n 'class' => 'action-delete',\n ];\n return $this->getLayout()\n ->createBlock(\n \\Magento\\Backend\\Block\\Widget\\Button::class\n )\n ->setData($buttonData)\n ->toHtml();\n }", "title": "" }, { "docid": "0136a69aeb1dcde89cfb9bad637e46a3", "score": "0.55891097", "text": "static protected function renderToolbarButton(&$model, &$view)\n {\n $tw = HtmlWriter::getInstance();\n \n $tw->openA();\n $tw->addAttribute('name', $model->getName());\n $tw->addAttribute('class', $view->getMasterCssClass() . '-toolbar-button');\n $tw->addAttribute('eventname', $model->getEventName());\n $tw->addAttribute('eventvalue', \"~\");\n $tw->addAttribute('href', self::HREF_NO_ACTION);\n $tw->addAttribute('id', HtmlViewBase::getHtmlId($model));\n \n $tw->openSpan();\n $tw->closeSpan(true);\n \n $tw->writeContent($model->getCaption());\n \n $tw->closeA();\n }", "title": "" }, { "docid": "9ee076133a2c33802033f982751f4b17", "score": "0.558831", "text": "public function addButton()\n {\n $tag_generator = WPCF7_TagGenerator::get_instance();\n $tag_generator->add(\n 'images-optimize-upload',\n 'optimize & upload',\n [$this, 'template']\n );\n }", "title": "" }, { "docid": "d0411c6b3a9b4ed149b9797c9a92dac2", "score": "0.55829877", "text": "public function renderButtons()\r\n {\r\n if (empty($this->headerButtons))\r\n return;\r\n\r\n echo '<div class=\"bootstrap-toolbar pull-right\">';\r\n\r\n if (!empty($this->headerButtons) && is_array($this->headerButtons)) {\r\n foreach ($this->headerButtons as $button) {\r\n if (is_string($button)) {\r\n echo $button;\r\n } else {\r\n $options = $button;\r\n $button = $options['class'];\r\n unset($options['class']);\r\n\r\n if (strpos($button, 'TbButton') === false)\r\n throw new CException('message');\r\n\r\n if (!isset($options['htmlOptions']))\r\n $options['htmlOptions'] = array();\r\n\r\n $class = isset($options['htmlOptions']['class']) ? $options['htmlOptions']['class'] : '';\r\n $options['htmlOptions']['class'] = $class . ' pull-right';\r\n\r\n $this->controller->widget($button, $options);\r\n }\r\n\r\n }\r\n } elseif (!empty($this->headerButtons) && is_string($this->headerButtons)) {\r\n echo $this->headerButtons;\r\n }\r\n\r\n echo '</div>';\r\n }", "title": "" }, { "docid": "bb267613e9e7468f2ff9a0f191875f6d", "score": "0.55706245", "text": "protected function renderButton($id, $button, $row, $data)\n\t{\n\t\t\n if (isset($button['visible']) && !$this->evaluateExpression($button['visible'], array('row'=>$row, 'data'=>$data)))\n\t\t\treturn;\n\n\t\t$label = isset($button['label']) ? $button['label'] : $id;\n \n if(isset($button['labelExpression'])) \n $label = $options['label'] = $this->evaluateExpression($button['labelExpression'], array('data'=>$data, 'row'=>$row)); \n \n\t\t$url = isset($button['url']) ? $this->evaluateExpression($button['url'], array('data'=>$data, 'row'=>$row)) : '#';\n\t\t\n $options = isset($button['optionsExpression'])?($this->evaluateExpression($button['optionsExpression'],array('row'=>$row, 'data'=>$data))):(isset($button['options']) ? $button['options'] : array());\n if (isset($button['disabledExpression']))\n {\n $button['disabled'] = $this->evaluateExpression($button['disabledExpression'],array('row'=>$row, 'data'=>$data));\n }\n \n \n\t\tif (!isset($options['title']))\n\t\t\t$options['title'] = $label;\n\n\t\tif (!isset($options['rel']))\n\t\t\t$options['rel'] = 'tooltip';\n \n //custom code to evaluate class expression\n if(isset($button['cssClassExpression'])) \n $options['class'] = $this->evaluateExpression($button['cssClassExpression'], array('data'=>$data, 'row'=>$row)); \n //custom html template \n \n if (isset($button['disabled'])&&($button['disabled']==true))\n {\n unset($options['ajax']);\n if (isset($button['htmlTemplate'])) \n {\n echo $button['htmlTemplate'];\n }\n else if (isset($button['icon']))\n {\n if (strpos($button['icon'], 'icon') === false)\n $button['icon'] = 'icon-'.implode(' icon-', explode(' ', $button['icon']));\n\n echo '<i class=\"'.$button['icon'].'\"></i>';\n }\n else if (isset($button['imageUrl']) && is_string($button['imageUrl']))\n echo CHtml::image($button['imageUrl'], $label);\n else\n echo CHtml::tag('span',$options,$label,true); \n }\n else \n {\n \n if (isset($button['htmlTemplate'])) {\n echo CHtml::link($button['htmlTemplate'], $url, $options); \n }\n else if (isset($button['icon']))\n {\n if (strpos($button['icon'], 'icon') === false)\n $button['icon'] = 'icon-'.implode(' icon-', explode(' ', $button['icon']));\n\n echo CHtml::link('<i class=\"'.$button['icon'].'\"></i>', $url, $options);\n }\n else if (isset($button['imageUrl']) && is_string($button['imageUrl']))\n echo CHtml::link(CHtml::image($button['imageUrl'], $label), $url, $options);\n else\n echo CHtml::link($label, $url, $options);\n \n \n }\n \n }", "title": "" }, { "docid": "17dfb088651e64889b839dbca88f54fa", "score": "0.55698633", "text": "public function getButtonHtml()\n {\n $strHtml = '';\n $aryButtons = $this->getButtons();\n if(count($aryButtons))\n {\n foreach($aryButtons as $objButton)\n {\n $strHtml .= $objButton->getHtml();\n }\n }\n return $strHtml;\n }", "title": "" }, { "docid": "0ccab4116368eb949143f5c482a3bbb9", "score": "0.55573404", "text": "public function renderActions()\n\t{\n\n\t\tif ($this->actions) {\n\t\t\tob_start();\n\t\t\tforeach ($this->actions as $key => $action) {\n\t\t\t\t$params = array();\n\t\t\t\tif (is_array($action)) {\n\t\t\t\t\t$params = $action;\n\t\t\t\t\t$action = $key;\n\t\t\t\t}\n\t\t\t\t$methodName = 'render' . $action . 'Action';\n\t\t\t\tif (method_exists($this, $methodName)) {\n\t\t\t\t\tcall_user_func_array(array($this, $methodName), $params);\n\t\t\t\t} else {\n\t\t\t\t\techo $action;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$actions = ob_get_clean();\n\t\t\techo '<div class=\"block-buttons\">' . $actions . '</div>';\n\t\t}\n\t}", "title": "" }, { "docid": "7bbf0d8e07d6848898787718aac9ee8a", "score": "0.5542303", "text": "function render() {\n return $this->renderIndicators() . $this->renderWidgets() . $this->renderActions();\n }", "title": "" }, { "docid": "c436060d66037ce8f943419327597c03", "score": "0.5537918", "text": "protected function renderButton(T_Form_Button $button)\n {\n $xhtml = $this->indent.'<input type=\"submit\"'.EOL;\n $xhtml .= $this->indent.' name=\"'.$button->getFieldname().'\"'.EOL;\n $xhtml .= $this->indent.' class=\"submit\"'.EOL;\n $xhtml .= $this->indent.' value=\"'.$this->escape($button->getLabel()).'\" />'.EOL;\n return $xhtml;\n }", "title": "" }, { "docid": "b053e00e936d1e4ea671bc88425633b1", "score": "0.55337185", "text": "public function button()\n {\n return $this->button;\n }", "title": "" }, { "docid": "130a37445b098c2ce2ca049fe3c0b701", "score": "0.5525806", "text": "public function add_submit_button() {\n if ( class_exists('Tribe__Events__Community__Main') ) {\n $tec = tribe( 'community.main' );\n if (tribe('tec.bar')->should_show()) {\n printf('<div class=\"tribe-bar-community-submit\"><a href=\"/%s\" class=\"button\">%s</a></div>', $tec->getCommunityRewriteSlug() . '/' . $tec->rewriteSlugs['add'], esc_html__('Submit an Event', 'fu-events-calendar'));\n }\n }\n }", "title": "" }, { "docid": "13c69d6a74965c518dc99920bdf3d6db", "score": "0.55082786", "text": "public function renderButtonHelper()\r\n {\r\n $this->_textHelper = $this->view->textHelper();\r\n return $this->_setCssClassList(func_get_args());\r\n }", "title": "" }, { "docid": "a18028f43baeb04fb995131b7bb4f4ed", "score": "0.5503665", "text": "public function createSubmitButton() {\r\n\r\n\t\techo '<div class=\"centerColumn\">';\r\n\t\techo '<input type=\"submit\" class=\"inputSubmit\" value=\"Validate\"></input>';\r\n\t\techo '</div>';\r\n\t}", "title": "" }, { "docid": "314eb09eee83804d8565ac010dd9bde5", "score": "0.5496966", "text": "protected function get_form_button()\n {\n\n $language = $this->args['language'];\n $label = wpbs_get_translated_form_meta($this->form->get('id'), 'submit_button_label', $language);\n\n if (empty($label)) {\n $label = __('Submit', 'wp-booking-system');\n }\n\n $output = '<div class=\"wpbs-form-field wpbs-form-submit-button\">';\n\n $output .= '<button type=\"submit\" formnovalidate id=\"wpbs-form-submit-' . $this->form->get('id') . '\">' . esc_attr($label) . '</button>';\n\n $output .= '</div>';\n\n return $output;\n }", "title": "" }, { "docid": "245e8e5b04919bca2f5a6aebe2723891", "score": "0.547035", "text": "public function render()\n {\n if($this->events()->count()) {\n return view('components.events.modul-current-events');\n }\n }", "title": "" }, { "docid": "501800d883fc93dfa127052421c6c54e", "score": "0.54686123", "text": "public function render(){\n $style = $this->style != null ? \" style=\\\"\".$this->style.\" !important\\\"\" : \"\";\n\t\techo '<div class=\"JSDeleteListItem\"'.$style.'>';\n\t\techo '<a href=\"'.$this->url.'\" class=\"delete\">';\n\t\techo '<img src=\"/gfx/delete_icon.png\" alt=\"x\" height=\"13px\" width=\"13px\">';\n\t\techo '</a>';\n\t\techo '</div>';\n\t}", "title": "" }, { "docid": "b40ece61c0d606696d024c6691e29feb", "score": "0.546767", "text": "public function render() {\n\n return $this->render_back_link() . '<h2>' . $this->get_question_text() . '</h2>\n <p>' . $this->get_question_summary() . '</p>\n <span id=\"question-error\" style=\"display:none\"></span>\n <form id=\"question-submit-answer\" action=\"\" method=\"post\">\n <input type=\"hidden\" name=\"question_id\" value=\"' . $this->get_id() . '\"/>\n ' . $this->get_answer_options() . '\n <input type=\"submit\" id=\"id_submitbutton\" value=\"' . get_string('btn:open', 'openwebinar') . '\"\n class=\"btn-primary\"/>\n </form>';\n }", "title": "" }, { "docid": "56fdfcef183cf2199931c608f2cff643", "score": "0.5453313", "text": "public function indexAction()\n {\n $events = $this->getBd()->getRepository('initiaticeAdminBundle:Event')->findAll();\n return $this->render('initiaticeAdminBundle:Event:index.html.twig', ['events' => $events]);\n }", "title": "" }, { "docid": "9de73c50ff7a8b53c4557f6ce681c8a6", "score": "0.54525864", "text": "function Cboton(){\r\n \r\n print('</button>');\r\n \r\n }", "title": "" }, { "docid": "eca91dacb852f5d48c9a4b3a41a5eb9b", "score": "0.545177", "text": "public function button() {\n \n // CHECK IF THERE IS A REQUEST PENDING FROM LOGGED USER\n if (session::logged() && session::username() != get::val('username')) {\n $pending = db::instance()->count('SELECT * FROM requests WHERE fromUser = ? AND toUser = ?', array(session::username(), $this->username));\n }\n\n // FORMAT LABELS ACCORDINGLY\n if ($pending != 0) {\n $header = 'Cancel Request';\n $name = 'date_cancel';\n\n } else {\n $header = 'Ask Out';\n $name = 'date_request';\n }\n\n // IF THE OTHER PERSON ALREADY HAS A PENDING REQUEST FROM THE SAME SOURCE\n $crossCheck = db::instance()->count('SELECT * FROM requests WHERE toUser = ? AND fromUser = ?', array(session::username(), $this->username));\n \n // PRINT CONTENT ACCORDINGLY\n if ($crossCheck != 0) {\n $content = '<div id=\"cross-request\">You have a pending request from ' . ucfirst($this->username) . '!</div>';\n } else {\n $content = '<li><a href=\"javascript: void(0)\" name=\"' . $name . '\">' . $header . '</a></li>';\n }\n\n echo '\n <div id=\"new\">\n <ul>\n ' . $content . '\n </ul>\n </div>\n ';\n }", "title": "" }, { "docid": "ec47537935aa163a272a08e2ea72af16", "score": "0.54471487", "text": "public function submitButton(){\n return Yii::app()->controller->widget(\"ext.yiigems.widgets.buttons.GradientButton\", array(\n 'buttonType'=>'submit',\n 'confirmMessage'=>$this->submitConfirmMessage,\n 'label' => $this->submitButtonLabel,\n 'iconClass' => $this->submitIconClass,\n 'submitHandlerCode' => $this->submitHandlerCode\n ), true);\n }", "title": "" }, { "docid": "627f6ebdcb84c334d05440c0f0d11e32", "score": "0.544559", "text": "public function renderAdd()\n {\n $this->template->title = \"Přidat dokumenty\";\n $form = $this->getComponent('docsForm');\n $form['save']->caption = 'Přidat';\n $this->template->form = $form;\n }", "title": "" }, { "docid": "5e78c15377c2ddc4d7c556d6a5c3b6fd", "score": "0.5440425", "text": "public function render()\n {\n return view('components.modal-btn');\n }", "title": "" }, { "docid": "b1756b2f71670b87294079b37a3cf0a7", "score": "0.5435751", "text": "protected function createButton() {\n\t\t\n\t\tswitch ($this->type) {\n\t\t\tcase self::BUTTON_LINK:\n\t\t\t\treturn CHtml::link($this->label, $this->url, $this->htmlOptions);\n\t\t\t\t\n\t\t\tcase self::BUTTON_SUBMIT:\n\t\t\t\t$this->htmlOptions['type'] = 'submit';\n\t\t\t\treturn CHtml::htmlButton($this->label, $this->htmlOptions);\n\n\t\t\tcase self::BUTTON_RESET:\n\t\t\t\t$this->htmlOptions['type'] = 'reset';\n\t\t\t\treturn CHtml::htmlButton($this->label, $this->htmlOptions);\n\n\t\t\tcase self::BUTTON_AJAXBUTTON:\n\t\t\t\t$this->ajaxOptions['url'] = $this->url;\n\t\t\t\t$this->htmlOptions['ajax'] = $this->ajaxOptions;\n\t\t\t\treturn CHtml::htmlButton($this->label, $this->htmlOptions);\n\n\t\t\tcase self::BUTTON_AJAXSUBMIT:\n\t\t\t\t$this->ajaxOptions['type'] = isset($this->ajaxOptions['type']) ? $this->ajaxOptions['type'] : 'POST';\n\t\t\t\t$this->ajaxOptions['url'] = $this->url;\n\t\t\t\t$this->htmlOptions['type'] = 'submit';\n\t\t\t\t$this->htmlOptions['ajax'] = $this->ajaxOptions;\n\t\t\t\treturn CHtml::htmlButton($this->label, $this->htmlOptions);\n\n\t\t\tcase self::BUTTON_INPUTBUTTON:\n\t\t\t\treturn CHtml::button($this->label, $this->htmlOptions);\n\n\t\t\tcase self::BUTTON_INPUTSUBMIT:\n\t\t\t\t$this->htmlOptions['type'] = 'submit';\n\t\t\t\treturn CHtml::button($this->label, $this->htmlOptions);\n\t\t\t\t\n\t\t\tcase self::BUTTON_DIV:\n\t\t\t\treturn $this->createButtonDiv();\n\n\t\t\tdefault:\n\t\t\tcase self::BUTTON_BUTTON:\n\t\t\t\treturn CHtml::htmlButton($this->label, $this->htmlOptions);\n\t\t}\n\t}", "title": "" }, { "docid": "7bd39c1dcc3c390d73a94d04f5f5f857", "score": "0.5430472", "text": "function _render() {\r\n\r\n\t}", "title": "" }, { "docid": "6aad1e662ee380ad9f33e8440741e6f1", "score": "0.5426257", "text": "function render() \n {\n $return = ull_submit_tag(__('Reject'), array('name' => 'submit|action_slug=reject'));\n return $return;\n }", "title": "" }, { "docid": "00002f995846edc895e09f01db3b06dc", "score": "0.54110014", "text": "public function getAddNewButtonHtml()\n {\n return $this->getChildHtml('add_button');\n }", "title": "" }, { "docid": "64e4f92cb7b6831e441401299d6dc492", "score": "0.54089975", "text": "function print_add_button() {\n global $OUTPUT;\n\n if (!$this->can_do('add')) {\n return;\n }\n\n $obj = $this->get_new_data_object();\n\n echo '<div align=\"center\">';\n $options = array('s' => $this->pagename, 'action' => 'add');\n $parent = $this->optional_param('id', 0, PARAM_INT);\n if ($parent) {\n $options['parent'] = $parent;\n }\n // FIXME: change to language string\n //echo print_single_button('index.php', $options, get_string('add','local_elisprogram').' ' . get_string($obj->get_verbose_name(),'local_elisprogram'), 'get', '_self', true, get_string('add','local_elisprogram').' ' . get_string($obj->get_verbose_name(),'local_elisprogram'));\n $button = new single_button(new moodle_url('index.php', $options), get_string('add_track','local_elisprogram'), 'get');\n echo $OUTPUT->render($button);\n\n echo '</div>';\n }", "title": "" }, { "docid": "bcbe0cafeab6f5dc781035f1e5962850", "score": "0.54061407", "text": "function obj_do_event_block( $event = null ) {\n\tif ( ! empty( $event ) ) {\n\t\t$pid = $event;\n\t\t$date = obj_get_event_dates( $pid );\n\t\t$city = obj_get_event_city( $pid );\n\t\t$perm = get_the_permalink( $pid );\n\t\t$thumb_id = get_post_thumbnail_id( $pid );\n\t\t$image = wp_get_attachment_image( $thumb_id, 'obj-blog-block', false, array( 'class' => 'event-block__thumb' ) );\n\t\t$btn_class = decide_page_button_class();\n\t\t$display = ! empty( $date ) && ! empty( $city ) && ! empty( $perm ) && ! empty( $image );\n\n\t\tif ( $display ) {\n\t\t\techo \"<div class='event-block__outer'>\";\n\t\t\techo \"<a href='{$perm}' class='event-block__link'>\";\n\t\t\techo \"<div class='event-block__inner'>\";\n\t\t\techo $image;\n\t\t\techo \"<div class='event-block__title'><span class='event-block__city'>{$city}</span> - <span class='event-block__date'>{$date}</span></div>\";\n\t\t\techo \"<div class='event-block__button-wrap'>\";\n\t\t\techo \"<div class='fake-button {$btn_class} small-button'>Learn More</div>\";\n\t\t\techo '</div>';\n\t\t\techo '</div>';\n\t\t\techo '</a>';\n\t\t\techo '</div>';\n\t\t}\n\t}\n}", "title": "" }, { "docid": "490fba4a2511c9508f2aeab986e29d5f", "score": "0.53989995", "text": "function render() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e9e41082cb88288fd39a748aa038f988", "score": "0.5393086", "text": "function mostrarEvents($events)\r\n {\r\n\r\n foreach ($events as $event) {\r\n echo \"<div class='box-aposta w3-card-4'>\";\r\n echo \"<h3>\" . $event->dataEvent . \"</h3>\";\r\n echo \"<p>\" . $event->club1 . \" x \" . $event->club2 . \"</p>\";\r\n echo \"<div class='teams-logos'>\";\r\n echo \"<img class='logo-team1' src='\" . $event->logoClub1 . \"'>\";\r\n echo \"<img class='logo-team2' src='\" . $event->logoClub2 . \"'>\";\r\n echo \"</div>\";\r\n echo \"<div class='buttons-bet'>\";\r\n echo \"<button type='submit' name='bet' value='\" . $event->idEvent . \"-1'>\". $event->quota1 .\"</button>\";\r\n echo \"<button type='submit' name='bet' value='\" . $event->idEvent . \"-x'>\". $event->quotax .\"</button>\";\r\n echo \"<button type='submit' name='bet' value='\" . $event->idEvent . \"-2'>\". $event->quota2 .\"</button>\";\r\n echo \"</div>\";\r\n echo \"</div>\";\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "569c25d15f5225a7c619f24574a49dca", "score": "0.53868014", "text": "protected function renderToggleButton()\n {\n if ($this->toggleButton !== null) {\n $tag = ArrayHelper::remove($this->toggleButton, 'tag', 'button');\n $label = ArrayHelper::remove($this->toggleButton, 'label', 'Show');\n \n if ($tag === 'button' && !isset($this->toggleButton['type'])) {\n $this->toggleButton['type'] = 'button';\n }\n\n if ($tag === 'a' && !isset($this->toggleButton['href'])) {\n $this->toggleButton['href'] = '#' . $this->options['id'];\n }\n\n return Html::tag($tag, $label, $this->toggleButton);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "2dc7207a91251f74c2a2e5102fa4de5d", "score": "0.5378901", "text": "public function print_add_button(){\n }", "title": "" }, { "docid": "cd7d2f683282c592a67272f12c72a44b", "score": "0.5373096", "text": "public function init() {\n\t\tYii::app()->getClientScript()->registerPackage('button');\n\t\tif (false === $this->visible) {\n\t\t\treturn;\n\t\t}\n\n\t\t$classes = array('ui', 'button');\n\n\t\tif ($this->isValidContext()) {\n\t\t\t$classes[] = $this->getContextClass();\n\t\t}\n\n\t\t$validSizes = array(\n\t\t\tself::SIZE_MINI,\n\t\t\tself::SIZE_TINY,\n\t\t\tself::SIZE_SMALL,\n\t\t\tself::SIZE_LARGE,\n\t\t\tself::SIZE_DEFAULT,\n\t\t\tself::SIZE_BIG,\n\t\t\tself::SIZE_HUGE,\n\t\t\tself::SIZE_MASSIVE\n\t\t);\n\n\t\tif (isset($this->size) && in_array($this->size, $validSizes)) {\n\t\t\t$classes[] = self::$sizeClasses[$this->size];\n\t\t}\n\n\t\tif ($this->fluid) {\n\t\t\t$classes[] = 'fluid';\n\t\t}\n\n\t\tif ($this->active) {\n\t\t\t$classes[] = 'active';\n\t\t}\n\n\t\tif ($this->disabled) {\n\t\t\t$disableTypes = array(\n\t\t\t\tself::BUTTON_BUTTON,\n\t\t\t\tself::BUTTON_SUBMIT,\n\t\t\t\tself::BUTTON_RESET,\n\t\t\t\tself::BUTTON_AJAXBUTTON,\n\t\t\t\tself::BUTTON_AJAXSUBMIT,\n\t\t\t\tself::BUTTON_INPUTBUTTON,\n\t\t\t\tself::BUTTON_INPUTSUBMIT,\n\t\t\t\tself::BUTTON_DIV\n\t\t\t);\n\n\t\t\tif (in_array($this->type, $disableTypes)) {\n\t\t\t\t$this->htmlOptions['disabled'] = 'disabled';\n\t\t\t}\n\n\t\t\t$classes[] = 'disabled';\n\t\t}\n\n\t\tif (!isset($this->url) && isset($this->htmlOptions['href'])) {\n\t\t\t$this->url = $this->htmlOptions['href'];\n\t\t\tunset($this->htmlOptions['href']);\n\t\t}\n\n\t\tif ($this->encodeLabel) {\n\t\t\t$this->label = CHtml::encode($this->label);\n\t\t}\n\n\t\tif ($this->isAnimated()) {\n\t\t\t$classes[] = 'animated';\n\t\t\tif (isset($this->animated['type'])) {\n\t\t\t\t$classes[] = $this->animated['type'];\n\t\t\t}\n\n\t\t\tif (isset($this->animated['visibleContent'])) {\n\t\t\t\t$this->label = '<div class=\"visible content\">';\n\t\t\t\tif (isset($this->animated['visibleContent']['icon']))\n\t\t\t\t\t$this->label .= '<i class=\"' . $this->animated['visibleContent']['icon'] . ' icon\"></i>';\n\t\t\t\tif (isset($this->animated['visibleContent']['label']))\n\t\t\t\t\t$this->label .= $this->animated['visibleContent']['label'];\n\t\t\t\t$this->label .= '</div>';\n\t\t\t}\n\n\t\t\tif (isset($this->animated['hiddenContent'])) {\n\t\t\t\t$this->label .= '<div class=\"hidden content\">';\n\t\t\t\tif (isset($this->animated['hiddenContent']['icon']))\n\t\t\t\t\t$this->label .= '<i class=\"' . $this->animated['hiddenContent']['icon'] . ' icon\"></i>';\n\t\t\t\tif (isset($this->animated['hiddenContent']['label']))\n\t\t\t\t\t$this->label .= $this->animated['hiddenContent']['label'];\n\t\t\t\t$this->label .= '</div>';\n\t\t\t}\n\t\t}\n\n\t\tif (isset($this->icon)) {\n\t\t\t$classes[] = 'icon';\n\t\t\t$this->label = '<i class=\"' . $this->icon . ' icon\"></i> ' . $this->label;\n\t\t}\n\n\t\tif (isset($this->labeled)) {\n\t\t\tif($this->labeled !== '' && $this->labeled !== null)\n\t\t\t\t$classes[] = $this->labeled;\n\t\t\t$classes[] = 'labeled';\n\t\t}\n\n\t\tif ($this->inverted) {\n\t\t\t$classes[] = 'inverted';\n\t\t}\n\n\t\t$validColors = array(\n\t\t\tself::COLOR_BLACK,\n\t\t\tself::COLOR_YELLOW,\n\t\t\tself::COLOR_GREEN,\n\t\t\tself::COLOR_BLUE,\n\t\t\tself::COLOR_ORANGE,\n\t\t\tself::COLOR_PURPLE,\n\t\t\tself::COLOR_PINK,\n\t\t\tself::COLOR_RED,\n\t\t\tself::COLOR_TEAL\n\t\t);\n\t\t\n\t\tif (isset($this->color) && in_array($this->color, $validColors)) {\n\t\t\t$classes[] = self::$colorClasses[$this->color];\n\t\t}\n\n\t\t$validSocialMedia = array(\n\t\t\tself::SOCIAL_FACEBOOK,\n\t\t\tself::SOCIAL_TWITTER,\n\t\t\tself::SOCIAL_GOOGLE_PLUS,\n\t\t\tself::SOCIAL_VK,\n\t\t\tself::SOCIAL_LINKEDIN,\n\t\t\tself::SOCIAL_INSTAGRAM,\n\t\t\tself::SOCIAL_YOUTUBE\n\t\t);\n\t\t\n\t\tif (isset($this->social) && in_array($this->social, $validSocialMedia)) {\n\t\t\t$classes[] = self::$socialClasses[$this->social];\n\t\t}\n\n\t\tif ($this->compact) {\n\t\t\t$classes[] = 'compact';\n\t\t}\n\n\t\tif ($this->circular) {\n\t\t\t$classes[] = 'circular';\n\t\t}\n\n\t\tif ($this->loading) {\n\t\t\t$classes[] = 'loading';\n\t\t}\n\n\t\tif (isset($this->attached)) {\n\t\t\tif($this->attached !== '' && $this->attached !== null)\n\t\t\t\t$classes[] = $this->attached;\n\t\t\t$classes[] = 'attached';\n\t\t}\n\n\t\t// Implode the classes\n\t\tif (!empty($classes)) {\n\t\t\t$classes = implode(' ', $classes);\n\t\t\tif (isset($this->htmlOptions['class'])) {\n\t\t\t\t$this->htmlOptions['class'] .= ' ' . $classes;\n\t\t\t} else {\n\t\t\t\t$this->htmlOptions['class'] = $classes;\n\t\t\t}\n\t\t}\n\n\t\t//Generate id property to element\n\t\tif (!isset($this->htmlOptions['id'])) {\n\t\t\t$this->htmlOptions['id'] = $this->getId();\n\t\t}\n\t}", "title": "" }, { "docid": "590060bf0a8843264c2ac7a27af85c87", "score": "0.5358333", "text": "public static function getButton()\n {\n $response = new Response();\n $url = route('tool.button.script', ['locale' => Lang::getLocale()]);\n\n $content = '<script src=\"' . $url . '\"></script>' . \"\\n\";\n $content .= '<div id=\"' . static::getId() . '_button\"></div>';\n\n $response->setContent($content);\n\n return $response;\n }", "title": "" }, { "docid": "2bbb030821b48207863e7a23eba4cc16", "score": "0.53405553", "text": "public function getCreateEventView(){\n \n return view('backend.expositor.events.create');\n }", "title": "" }, { "docid": "6bf58619cf2230dc29d669305362b189", "score": "0.53370845", "text": "public function toXml()\n {\n\n if ($this->isAction) {\n $action = $this->action;\n } else {\n $action = urlencode($this->action);\n }\n $baseFolder = View::$iconsWeb.'xsmall/';\n\n return '<button action=\"'.$this->place.'\" id=\"button_'.str_replace(' ','_',$this->text).'\" icon=\"'.$baseFolder.$this->icon.'\" value=\"'.$this->text.'\" callback=\"'.$action.'\" />'.NL;\n }", "title": "" }, { "docid": "28bc014b1b0218778e06d6cd58a825cb", "score": "0.5331887", "text": "public function renderButtons()\n {\n echo CHtml::openTag('div', array(\n 'class'=>\"btn-group\",\n 'data-toggle'=>\"buttons\"\n )). \"\\n\";\n list($name, $id) = $this->resolveNameID();\n $i=1;\n foreach( $this->selectOptions as $value=>$caption )\n {\n echo CHtml::openTag('label', array(\n 'class'=>($value==$this->value)?'btn btn-default active':'btn btn-default'\n ));\n echo CHtml::radioButton($name,$value==$this->value,array('name'=>$name, 'id'=>$name.'_opt'.$i,\n 'value'=>$value));\n echo CHtml::encode($caption);\n echo CHtml::closeTag('label') . \"\\n\";\n $i++;\n }\n echo CHtml::closeTag('div') . \"\\n\";\n }", "title": "" }, { "docid": "4658a0884043c35c0df2043e660bda3d", "score": "0.53274006", "text": "public function beforeRender(Event $event) {\n }", "title": "" }, { "docid": "589abaf3b79fe315da276dbf9c6c2962", "score": "0.5321056", "text": "function view_event($event) {\t\r\n\tglobal $class_suffix, $showBackButton, $mosConfig_live_site;\r\n\tglobal $database, $mainframe;\r\n\t\r\n\t$linktag = '<link href=\"' . $mosConfig_live_site . '/component/eventcal/style.css\" rel=\"stylesheet\" type=\"text/css\"/>';\r\n\techo $linktag;\r\n\t$category = new mosCategory( $database );\r\n\t$category->load( $event->catid );\r\n\tHTML_EventCal::component_header( $category->name );\r\n\t?>\t\r\n\t<table align=\"center\" class=\"<?php echo $class_suffix ?>event\" width=\"95%\">\r\n\t\t<tr>\r\n\t\t\t<th >\r\n\t\t\t\t<span class=\"event\" style=\"border-color:#99ddff\">\r\n\t\t\t\t\t<form >\r\n\t\t\t\t\t\t<?php echo $event->title ?>\r\n\t\t\t\t\t\t<?php if (hasAccess( \"edit_event\" )) { ?>\r\n\t\t\t\t\t\t\t<input type=\"button\" onClick=\"window.location.href='<?php echo $mosConfig_live_site . \"/index.php?c=eventcal&task=eventform&eventid=$event->id&catid=$event->catid\" ?>'\" value=\"EDIT\" />\r\n\t\t\t\t\t\t<?php } ?>\t\t\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</span>\r\n\t\t\t</th>\r\n\t\t\t<th class=\"date\">\r\n\t\t\t<?php\r\n\t\t\t\tif(@$event->type == \"complete\" && $event->start_date == $event->end_date) { \r\n\t\t\t\t\techo strftime( _DAYVIEW_CAPTION, $event->start_date);\r\n\t\t\t\t} else if(@$event->type == \"complete\") { \r\n\t\t\t\t\techo strftime( _DAYVIEW_CAPTION . \" \" . _DAYVIEW_EVENT_START, $event->start_date) . strftime(_DAYVIEW_EVENT_END,$event->end_date);\r\n\t\t\t\t} else if (@$event->type == \"middle\") {\r\n\t\t\t\t\techo strftime(_NORMAL_DATE_FORMAT . \" \" . _DAYVIEW_EVENT_START,$event->start_date) . \" - \" . strftime(_NORMAL_DATE_FORMAT . \" \" . _DAYVIEW_EVENT_START,$event->end_date);\r\n\t\t\t\t} else if (@$event->type == \"start\") {\r\n\t\t\t\t\techo strftime( _NORMAL_DATE_FORMAT . \" \" . _DAYVIEW_EVENT_START,$event->start_date) . \" - \" . strftime(_NORMAL_DATE_FORMAT . \" \" . _DAYVIEW_EVENT_START,$event->end_date);\r\n\t\t\t\t} else if (@$event->type == \"end\") {\r\n\t\t\t\t\techo strftime( _NORMAL_DATE_FORMAT . \" \" . _DAYVIEW_EVENT_START,$event->start_date) . \" - \" . strftime(_DAY_TODAY . \" \" . _DAYVIEW_EVENT_START,$event->end_date);\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo strftime( _NORMAL_DATE_FORMAT . \" \" . _DAYVIEW_EVENT_START,$event->start_date) . \" - \" . strftime(_NORMAL_DATE_FORMAT . \" \" . _DAYVIEW_EVENT_START,$event->end_date);\r\n\t\t\t\t}\r\n\t\t\t?>\r\n\t\t\t</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td colspan=\"2\" class=\"description\">\r\n\t\t\t<?php echo nl2br( $event->description ) ?>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<?php if ($event->contact <> \"\" || $event->email <> '' || $event->url <> '') { ?>\r\n\t\t\t<tr>\r\n\t\t\t\t<th class=\"contact\" colspan=\"2\"><?php echo _CONTACT_TITLE ?></th>\r\n\t\t\t</tr> \r\n\t\t\t<?php if ($event->contact <> '') { ?>\r\n\t\t\t<tr>\r\n\t\t\t\t<td class=\"contactdesc\"><?php echo _CONTACT_CONTACT ?></td>\r\n\t\t\t\t<td class=\"contacttext\"><?php echo $event->contact ?></td>\r\n\t\t\t</tr>\t\t\t\t\r\n\t\t\t<?php } if ($event->email <> '') { ?>\r\n\t\t\t<tr>\r\n\t\t\t\t<td class=\"contactdesc\"><?php echo _CONTACT_EMAIL ?></td>\r\n\t\t\t\t<td class=\"contacttext\"><?php echo mosHTML::emailCloaking( $event->email ) ?></td>\r\n\t\t\t</tr>\t\t\t\t\r\n\t\t\t<?php } if ($event->url <> '') { ?>\r\n\t\t\t<tr>\r\n\t\t\t\t<td class=\"contactdesc\"><?php echo _CONTACT_URL ?></td>\r\n\t\t\t\t<td class=\"contacttext\"><a href=\"<?php echo $event->url ?>\" target=\"_blank\"><?php echo $event->url ?></a></td>\r\n\t\t\t</tr>\t\t\t\t\r\n\t\t\t<?php } ?>\r\n\t\t<?php } ?>\r\n\t\t<?php if ($showBackButton) { ?>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\">&nbsp;</td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td class=\"backbutton\" colspan=\"2\">\r\n\t\t\t\t\t<form><input type=\"button\" onClick=\"history.back()\" value=\"<?php echo _CMN_PREV ?>\" /></form>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t<?php } ?>\r\n\t</table>\r\n\t<?php \r\n\t}", "title": "" }, { "docid": "830298e8ce1e7df554f50d7c2d3277b0", "score": "0.5320829", "text": "public function renderToggleButton()\n {\n if (!isset($this->caption))\n throw new InvalidConfigException(\"Option 'caption' can't be empty!\");\n\n // Nav options\n $this->options = array_merge([\n 'data-uk-toggle' => \"{target:'.{$this->options['id']}'}\",\n ], $this->options);\n\n return Button::widget([\n 'options' => $this->options,\n ]);\n }", "title": "" }, { "docid": "af792576569b884321f86b42572b7109", "score": "0.5319393", "text": "public function getPageGridButtonsHtml()\n {\n $addButtonData = array(\n 'id' => 'add_cms_pages',\n 'label' => Mage::helper('gri_cms')->__('Add Selected Page(s) to Tree'),\n 'onclick' => 'hierarchyNodes.pageGridAddSelected()',\n 'class' => 'add'\n );\n return $this->getLayout()->createBlock('adminhtml/widget_button')\n ->setData($addButtonData)->toHtml();\n }", "title": "" }, { "docid": "1ded06deb14d72d5b3dd1bcf8beb50c8", "score": "0.5317021", "text": "protected function renderToggleButton()\n\t{\n\t\t$bar = Html::tag('span', '', ['class' => 'icon-bar']);\n\t\t$screenReader = \"<span class=\\\"sr-only\\\">{$this->screenReaderToggleText}</span>\";\n\t\treturn Html::button(\"{$screenReader}\\n{$bar}\\n{$bar}\\n{$bar}\", [\n\t\t\t'class' => 'navbar-toggle',\n\t\t\t'data-toggle' => 'collapse',\n\t\t\t'data-target' => \"#{$this->containerOptions['id']}\",\n\t\t]);\n\t}", "title": "" }, { "docid": "d99448c2ba1570169310481a9abb217a", "score": "0.5315022", "text": "public function render()\n {\n \n }", "title": "" }, { "docid": "d3bd0399ff1dc724dcc77e653bed9c84", "score": "0.5313447", "text": "function displayActionButtons()\r\n {\r\n if ($this->getConfig('allowView')) echo '<button onclick=\"row_view()\" class=\"actionButton\">View</button>&nbsp;';\r\n if ($this->getConfig('allowCSV')) echo '<button onclick=\"event.cancelBubble = true; Fade(document.getElementById(\\'csvDownloadLayer\\'), true); document.body.scrollTop = 0\" class=\"actionButton\" id=\"actionCSV\">CSV</button>&nbsp;';\r\n if ($this->getConfig('allowAdd')) echo '<button onclick=\"row_add()\" class=\"actionButton\">Add</button>&nbsp;';\r\n if ($this->getConfig('allowEdit')) echo '<button onclick=\"row_edit()\" class=\"actionButton\">Edit</button>&nbsp;';\r\n if ($this->getConfig('allowCopy')) echo '<button onclick=\"row_copy()\" class=\"actionButton\">Copy</button>&nbsp;';\r\n if ($this->getConfig('allowDelete')) echo '<button onclick=\"row_delete()\" class=\"actionButton\">Delete</button>';\r\n }", "title": "" }, { "docid": "6000c5e84051f888e44bf2b5c08f660a", "score": "0.5310032", "text": "public function render(): string\n {\n if (!parent::enqueue()) {\n return '';\n }\n $action = input_get('action');\n if ('search' === $action) {\n $json = $this->executeSearch();\n } elseif ('edit' === $action) {\n $json = $this->executeEdit();\n } else {\n $json = $this->executeStart();\n }\n return twig_render('menu_dates', $json);\n }", "title": "" }, { "docid": "a8e20bac434ae52bec6e337c927739f1", "score": "0.5306022", "text": "protected function buildButtons()\n {\n if (!isset($this->buttonsParts['{intervalSelect}'])) {\n $this->buttonsParts['{intervalSelect}'] = $this->buildIntervalSelect();\n }\n\n if (!isset($this->buttonsParts['{aggregationSelect}'])) {\n $this->buttonsParts['{aggregationSelect}'] = $this->buildAggregationSelect();\n }\n\n return strtr($this->buttonsTemplate, $this->buttonsParts);\n }", "title": "" }, { "docid": "ea9abfc656f8144108bd847190849fb1", "score": "0.5302579", "text": "function bd_render_submit_button( $action ) {\n?>\n\t<p class=\"submit\">\n\t\t<button type=\"submit\" name=\"bd_action\" value=\"<?php echo esc_attr( $action ); ?>\" class=\"button-primary\"><?php _e( 'Bulk Delete ', 'bulk-delete' ); ?>&raquo;</button>\n\t</p>\n<?php\n}", "title": "" }, { "docid": "31be3fed3122ffec36d08c991bc7be04", "score": "0.53023857", "text": "function renderButtons() {\n $viewmode = ( isset( $_COOKIE['nm_viewmode'] ) && $_COOKIE['nm_viewmode'] == 'playlist' ) ? 'playlist' : 'browse';\n $playlistactive = ( $viewmode == 'playlist' ) ? ' active' : '';\n $browseactive = ( $viewmode == 'browse' ) ? ' active' : '';\n $shuffleactive = ( isset( $_COOKIE['nm_shuffle'] ) && $_COOKIE['nm_shuffle'] == 'on' ) ? ' active' : '';\n\n # setting browse directory when browse mode is activated\n if ( isset( $_COOKIE['nm_currentbrowsedir'] ) ) { $dir = $_COOKIE['nm_currentbrowsedir']; }\n elseif ( isset( $_COOKIE['nm_currentsongdir'] ) ) { $dir = $_COOKIE['nm_currentsongdir']; }\n else { $dir = '.'; }\n \n # rendering playlist buttons when in playlist mode\n if ( $viewmode == 'playlist' ) {\n $playlistbuttons = <<<PLBUTTONS\n <div class=\"button\" onclick=\"clearPlaylist();\"><span>Clear</span></div>\n <div class=\"separator\"></div>\nPLBUTTONS;\n } else {\n $playlistbuttons = '';\n }\n\n # rendering general buttons\n echo <<<BUTTONS\n <div class=\"buttons\">\n {$playlistbuttons}\n <div class=\"button{$shuffleactive}\" id=\"shufflebutton\" onclick=\"toggleShuffle();\"><span>Shuffle</span></div>\n <div class=\"separator\"></div>\n <div class=\"button border{$browseactive}\" onclick=\"goToDir('{$dir}');\"><span>Browse</span></div>\n <div class=\"button{$playlistactive}\" onclick=\"goToPlaylist('default')\"><span>Playlist</span></div>\n </div>\nBUTTONS;\n}", "title": "" }, { "docid": "56a533c43dd42f69db93bd0dbfc1a4dc", "score": "0.53011745", "text": "public function render(): Renderable\n {\n return view('mfw::components.btn-group');\n }", "title": "" }, { "docid": "9023bc26033df4e107bc8cd1dd2cf29a", "score": "0.53003097", "text": "public function getDownloadButtonHtml()\n {\n $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array(\n 'id' => 'download_button',\n 'label' => Mage::helper('mulberry_warranty')->__('Download')\n ));\n\n return $button->toHtml();\n }", "title": "" }, { "docid": "beb15aef86a0409a108098fe29978b57", "score": "0.5292144", "text": "public function createEvent()\n\t{\n\t\treturn view('Admin_Dashboard.createEvent');\n\t}", "title": "" } ]
17c60623e5a1e0075cc7a1a2f57d0990
getListHours return an array of hours
[ { "docid": "7b98cfe5e7ec3c412e6f841d728a31e9", "score": "0.82010794", "text": "public function getListHours() {\n //all the hours\n $hours = Hour::all();\n\n //where hours will be Will be accommodated\n $columns = array();\n\n //hours collection\n foreach ($hours as $hour) {\n //empty object\n $row = new \\stdClass();\n\n //put start and end hour in first row\n $row->hour = $hour->start_hour.' - '.$hour->end_hour;\n\n //it will fill with the subject, group and teacher name depends the hour and day\n $row->mon = null;\n $row->tue = null;\n $row->wed = null;\n $row->thu = null;\n $row->fri = null;\n\n //push row variable in array\n array_push($columns, $row);\n }\n //return array\n return $columns;\n }", "title": "" } ]
[ { "docid": "bbff9690bc7a143075408d53402d1df1", "score": "0.74586594", "text": "public static function getHours()\n {\n \t $hours = [];\n\n \t for($hour =7;$hour < 20 ;$hour++ )\n \t {\n \t \t//check if hour is less than 10 and prefix with 0\n \t \tif ($hour <10)\n \t \t{\n \t \t\t$hours['0'.$hour]='0'.$hour;\n \t \t\tcontinue;\n \t \t}\n\n \t \t$hours[$hour] = $hour;\n \t }\n\n \t return $hours;\n }", "title": "" }, { "docid": "7667e9902652c08bb7c5993adb68aca7", "score": "0.7423104", "text": "private static function hours() {\n\t\t\t$hours = array();\n\t\t\t$rangeMax = self::is_24hr_format() ? 23 : 12;\n\t\t\t$rangeStart = $rangeMax > 12 ? 0 : 1;\n\t\t\tforeach ( range( $rangeStart, $rangeMax ) as $hour ) {\n\t\t\t\tif ( $hour < 10 ) {\n\t\t\t\t\t$hour = '0' . $hour;\n\t\t\t\t}\n\t\t\t\t$hours[ $hour ] = $hour;\n\t\t\t}\n\n\t\t\t// In a 12hr context lets put 12 at the start (so the sequence will run 12, 1, 2, 3 ... 11)\n\t\t\tif ( 12 === $rangeMax ) {\n\t\t\t\tarray_unshift( $hours, array_pop( $hours ) );\n\t\t\t}\n\n\t\t\treturn $hours;\n\t\t}", "title": "" }, { "docid": "a1a04a6c913b94857c7a31b31fd963f3", "score": "0.74123394", "text": "public function getAllHours(){\n\t\t$query = \"SELECT fkUserID, fldFirstName, fldLastName, day , hour,endHour \";\n\t\t$query .= \"FROM tblUserProfile tbp, tblHours th,tblUserAccount tbu WHERE \";\n\t\t$query .= \"tbp.fkUserID = th.fkCrewID AND tbp.fkUserID = tbu.pkUserID AND tbu.active=1 ORDER BY hour;\";\n\t\t$dbWrapper = new InteractDB();\n\t\t$dbWrapper->customMysqli($query);\n\t\t$this->vars['hours'] = $dbWrapper->returnedRows;\n\t\t//logThis($this->vars['hours']);\n\t\treturn $this->vars['hours'];\n\t}", "title": "" }, { "docid": "36f1d986c1c3df298438d5c51b008b60", "score": "0.71567965", "text": "function get_hours(){\n\t\t\n\t\t$hours=array();\n\t\tfor ($i=1;$i<13;$i=$i+1){\n\t\t\t$new_object=new DefaultObject();\n\t\t\t$new_object->set_id($i);\n\t\t\t$new_object->set_name($i);\n\t\t\tarray_unshift($hours,$new_object);\n\t\t}\n\t\treturn $hours;\n\t}", "title": "" }, { "docid": "ea8ca560b3791efe1281215c89a8caf4", "score": "0.7082459", "text": "public function getOpeningHours();", "title": "" }, { "docid": "d04ac14288784c04f471ef8910451514", "score": "0.66079915", "text": "public function getSpecialOpeningHours();", "title": "" }, { "docid": "9f81012f9dbe221889e174b7d3c8a327", "score": "0.65654826", "text": "function hourlist(dateTime $datetime){\n\t\t$hour = $datetime->format('H');\n\t\t$date = $datetime->format('Y-m-d');\n\t\t$dt1 = $datetime -> format('Y-m-d H:i:s');\n\t\t$dt2 = $datetime ->modify('+1 hour');\n\t\t$dt2 = $dt2 -> format('Y-m-d H:i:s');\n\t\t$sql = \"SELECT * FROM `Passerbys` WHERE timestamp(date,time) BETWEEN '$dt1' AND '$dt2'\";\n\t\t$rs = $this->executeQuery($sql, $_SERVER[\"SCRIPT_NAME\"]);\n\t\treturn $rs;\n\t}", "title": "" }, { "docid": "6d0682f5878d876c27ff1f1798c63ae5", "score": "0.6553725", "text": "public static function listadoHorario()\n {\n return [\n '00:00',\n '01:00',\n '02:00',\n '03:00',\n '04:00',\n '05:00',\n '06:00',\n '07:00',\n '08:00',\n '09:00',\n '10:00',\n '11:00',\n '12:00',\n '13:00',\n '14:00',\n '15:00',\n '16:00',\n '17:00',\n '18:00',\n '19:00',\n '20:00',\n '21:00',\n '22:00',\n '23:00'\n ];\n }", "title": "" }, { "docid": "3d9eff5ecdb628fa33e44ac9b9de8729", "score": "0.6551752", "text": "public function getHours()\n {\n return $this->hours;\n }", "title": "" }, { "docid": "45210ad51adab76565868deafe093e5c", "score": "0.6435533", "text": "public function get_hours()\n {\n return $this->get_default_property(self::PROPERTY_HOURS);\n }", "title": "" }, { "docid": "5f620f38a74483db14e338d280409445", "score": "0.63580984", "text": "public function hoursWorked( DateTime $date=null )\n {\n\n return array(\n [ \n 'date' => '2016-01-04'\n ,'hours' => 38\n ]\n ,[ \n 'date' => '2016-01-01'\n ,'hours' => 42\n ]\n ,[ \n 'date' => '2016-01-18'\n ,'hours' => 12\n ]\n );\n }", "title": "" }, { "docid": "78017c6fcb7da655e9ee7cc096e9514c", "score": "0.6346015", "text": "public function get_hours($employee_id, $pay_period) {\n $pay_period = $this->get_pay_period($pay_period);\n \n $hours = $this->sys->db->query(\"SELECT `date`, `time`, `operation` FROM `employee_punch` WHERE `pay_period_id`=:pay_period_id AND `employee_id`=:employee_id ORDER BY convert(date, date), `employee_punch_id` ASC\", array(\n ':pay_period_id' => (int) substr($pay_period[2], 0, 4),\n ':employee_id' => (int) substr($employee_id, 0, 6)\n ));\n \n $return_hours = array();\n \n array_walk($hours, function($row) use(&$return_hours) {\n if ('in' === $row['operation']) {\n $return_hours[$row['date']]['in'][] = $row['time'];\n } elseif ('out' === $row['operation']) {\n $return_hours[$row['date']]['out'][] = $row['time'];\n }\n \n $return_hours[$row['date']]['total_hours'] = 0;\n });\n \n $sys = $this->sys;\n array_walk($return_hours, function($hour, $date) use(&$return_hours, $sys) {\n $count = (array_key_exists('in', $hour)) ? count($hour['in']) : 0;\n \n if (!array_key_exists('in', $hour)) {\n $return_hours[$date]['in'] = array();\n $hour['in'] = array();\n }\n if (!array_key_exists('out', $hour)) {\n $return_hours[$date]['out'] = array();\n $hour['out'] = array();\n }\n if ($count > count($hour['out'])) {\n $count--;\n }\n \n if (empty($hour['in']) || empty($hour['out'])) {\n return 0;\n }\n \n for ($i=0; $i<$count; $i++) {\n $in = (array_key_exists('in', $hour) && array_key_exists($i, $hour['in'])) ? strtotime(date('g:ia', $hour['in'][$i])) : 0;\n $out = (array_key_exists('out', $hour) && array_key_exists($i, $hour['out'])) ? strtotime(date('g:ia', $hour['out'][$i])) : 0;\n\n //Used to find the difference of two timestamps in hours that are rounded to the nearest 15 minutes (.25 of an hour)\n if (0 < $out) {\n switch ($sys->template->model_settings->round_time_by) {\n case '1':\n $round_by = 0.16;\n $places = 0;\n break;\n case '15':\n $round_by = 0.25;\n $places = 0;\n break;\n case '30':\n $round_by = 0.5;\n $places = 0;\n break;\n default:\n $round_by = 1;\n $places = 2;\n }\n \n $return_hours[$date]['total_hours'] += round((($out/60 - $in/60)/60)/$round_by, $places)*$round_by;\n }\n }\n \n if (!array_key_exists('total_hours', $return_hours[$date])) {\n $return_hours[$date]['total_hours'] = 0;\n }\n });\n \n return $return_hours;\n }", "title": "" }, { "docid": "6fe97e3f480fcfba158e1091225a441e", "score": "0.62951684", "text": "public function getHours($key = ''){\r\n\t\t$tr = Application_Form_FrmLanguages::getCurrentlanguage();\r\n\t\t$am = $tr->translate('AM');\r\n\t\t$pm = $tr->translate('PM');\r\n\t\t$hours = array(\r\n\t\t\t\t'12:00 '. $pm,\r\n\t\t\t\t'01:00 '. $am,\r\n\t\t\t\t'02:00 '. $am,\r\n\t\t\t\t'03:00 '. $am,\r\n\t\t\t\t'04:00 '. $am,\r\n\t\t\t\t'05:00 '. $am,\r\n\t\t\t\t'06:00 '. $am,\r\n\t\t\t\t'07:00 '. $am,\r\n\t\t\t\t'08:00 '. $am,\r\n\t\t\t\t'09:00 '. $am,\r\n\t\t\t\t'10:00 '. $am,\r\n\t\t\t\t'11:00 '. $am,\r\n\t\t\t\t'12:00 '. $am,\r\n\t\t\t\t'01:00 '. $pm,\r\n\t\t\t\t'02:00 '. $pm,\r\n\t\t\t\t'03:00 '. $pm,\r\n\t\t\t\t'04:00 '. $pm,\r\n\t\t\t\t'05:00 '. $pm,\r\n\t\t\t\t'06:00 '. $pm,\r\n\t\t\t\t'07:00 '. $pm,\r\n\t\t\t\t'08:00 '. $pm,\r\n\t\t\t\t'09:00 '. $pm,\r\n\t\t\t\t'10:00 '. $pm,\r\n\t\t\t\t'11:00 '. $pm\t\t\t\t\r\n\t\t\t\t); \r\n\t\tif(empty($key)){\r\n\t\t\treturn $hours;\r\n\t\t}\r\n\t\treturn $hours[$key];\r\n\t}", "title": "" }, { "docid": "5f091b559b94549eb3f2aa77f03940fe", "score": "0.62682664", "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": "c32381013bfac8a20d60a6478959010a", "score": "0.62509114", "text": "public function getList($userid) {\n $query = $this->database->prepare(\"SELECT \n p.name AS projectname, p.id AS projectid, h.minutes AS minutes, \n h.date AS date, h.id AS id, h.description AS description\n FROM hours AS h, projects AS p \n WHERE h.projectid = p.id AND h.userid = ?\n ORDER BY h.date DESC\");\n \n $query->execute(array($userid)); \n \n $hourslist = array();\n \n $i = 0;\n while ($hoursObject = $query->fetchObject(\"HoursViewmodel\")) {\n $hourslist[$i++] = $hoursObject;\n }\n \n return $hourslist; \n }", "title": "" }, { "docid": "5f9260edf76272776d157a2dce292a97", "score": "0.6225324", "text": "private function getHolidays(): array\n {\n return [];\n }", "title": "" }, { "docid": "ed3aa76da2afebc64b3dfe24b7eefad5", "score": "0.6209787", "text": "public function viewHours()\n {\n $hours = $this->db->selectAll($this->StaffHoursTable, [], '*', [], 0, 600);\n if (!empty($hours)) {\n foreach ($hours as $a => $hour) {\n $hours[$a]['name'] = $this->getStaffName($hour['staffid']);\n }\n return $hours;\n }\n return false;\n }", "title": "" }, { "docid": "1621c20a8ade78a6d1ce2474337cc72a", "score": "0.6093357", "text": "public function getAttendanceHours() {\n\t\treturn $this->attendanceHours;\n\t}", "title": "" }, { "docid": "593a8339d92f8ff1e4e6d80514b5e5fc", "score": "0.6087057", "text": "public function ordersToday()\n {\n $min_config = config('statistics.min_hours_to_display');\n $time = date('H');\n $min_hours = $time > $min_config ? $time : $min_config;\n $hours = [];\n for ($i = 0; $i <= $min_hours; $i++) {\n $hours[$i] = 0;\n }\n\n $data = Os::select('hour', DB::raw('COUNT(id) as orders'))\n ->whereDate('created_at', date('Y-m-d'))\n ->groupBy('hour')\n ->orderBy('orders', 'desc')\n ->get()\n ->toArray();\n\n foreach ($data as $res) {\n $hours[$res['hour']] = $res['orders'];\n }\n\n return $hours;\n }", "title": "" }, { "docid": "91ef6dc3169f00849cdb9c7cdf691d67", "score": "0.6062176", "text": "public function getList($userid) {\n $query = $this->database->prepare(\"SELECT r.id AS id, p.name AS projectname, \n p.id AS projectid, r.description AS description, \n r.starttime AS starttime, r.endtime AS endtime \n FROM recordedhours AS r, projects AS p \n WHERE r.projectid = p.id AND r.userid = ?\");\n \n $query->execute(array($userid)); \n\n $recordedHoursList = array();\n \n $i = 0;\n while ($recordObject = $query->fetchObject(\"RecordViewmodel\")) {\n \n $recordObject->minutes = floor((strtotime($recordObject->endtime) - strtotime($recordObject->starttime)) / 60);\n $recordObject->date = date(\"Y-m-d\", strtotime($recordObject->starttime));\n $recordedHoursList[$i] = $recordObject; \n $i++;\n } \n \n return $recordedHoursList;\n }", "title": "" }, { "docid": "6144ae3914f4c0b06a945765c4358390", "score": "0.59950083", "text": "public function openingHours()\n {\n return json_decode($this->opening_hours) ?? (object) $this->days;\n }", "title": "" }, { "docid": "b7b44ce0c5fb326c9a7105e6e42e9345", "score": "0.5985877", "text": "private function GetVisitinghours($intEntityId, $strTimeOfDay='am') {\n\t\t$arrDaysOfWeek = \\QCubed\\Project\\Control\\Datepickerwrapper::GetDayNameArray();\n\t\t\n\t\tforeach($arrDaysOfWeek as $strDayName=>$strDefaultDisplay) {\n\t\t\t$objExpert = $this->GetExpertForDay($intEntityId, $strDayName);\n\t\t\tif($objExpert) {\n\t\t\t\tlist($dttFrom, $dttTo) = $this->GetPossibleHourFork($intEntityId, $objExpert->Id, $strTimeOfDay, $strDayName);\n\t\t\t\tif($dttFrom && $dttTo) {\n\t\t\t\t\t$arrDaysOfWeek[$strDayName] .= ' '.$dttFrom->format('H:i') . ' &rarr; ' . $dttTo->format('H:i') . '<br/>' . $objExpert;\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn array_values($arrDaysOfWeek);//strip the keys, before returning\n\t}", "title": "" }, { "docid": "2282cac69d7bad6d87bc0692a4de94c6", "score": "0.59675115", "text": "function get_hours_range( $start = 0, $end = 86400, $step = 3600, $format = 'g:i a', $boolean = true ) {\n $times = array();\n foreach ( range( $start, $end, $step ) as $timestamp ) {\n $hour_mins = gmdate( 'H:i', $timestamp );\n $times[$hour_mins] = $boolean;\n }\n return $times;\n }", "title": "" }, { "docid": "f6abc165c9d9c2c29d658605175646fc", "score": "0.5940172", "text": "public static function get_hours($i_hours = 12, $b_pad_key = true, $i_key_start_at = 1, $b_pad_value = true, $i_value_start_at = 1)\n\t{\n\t\t$a = self::_looper($i_hours, 1, $b_pad_key, $i_key_start_at, $b_pad_value, $i_value_start_at);\n\t\treturn $a;\n\t}", "title": "" }, { "docid": "83957d7e8074afbd797a5ef6e62fef1e", "score": "0.5915415", "text": "public function getHours(): int\n {\n return $this->internal->h;\n }", "title": "" }, { "docid": "937b4e47441fd1f0143f49954f13ed5e", "score": "0.58940715", "text": "public function setHoursList(array $hours) {\n\n foreach ($hours as $hour) {\n\n if (!is_int($hour) || is_int($hour) && (0 > $hour || $hour > 23)) {\n throw new \\InvalidArgumentException('Each given hour must be an integer between 0 and 23!');\n }\n }\n\n $this->parts['BYHOUR'] = implode(',', array_unique($hours));\n\n return $this;\n }", "title": "" }, { "docid": "a522356feedfe51bf31fdc579899ba2b", "score": "0.5882234", "text": "public function getOpeningHours() {\n\n $openingHours = $this->Entity->get('Takeaway')->getOpeningHours(true);\n\n $return = '';\n\n /**\n * Go through each day\n */\n if (!is_null($openingHours)) {\n $return = '<div class=\"row\"><div class=\"col-xs-12\">';\n foreach ($openingHours as $day => $details) {\n $times = '';\n foreach($details as $detail){\n $times .= '<div>' . substr_replace($detail['StartTime'] ,\"\",-3) . ' - ' . substr_replace($detail['EndTime'] ,\"\",-3) . '</div>';\n }\n $return .= '<div class=\"row\">';\n $return .= '<div class=\"col-xs-4 col-sm-3 text-right label-div\">' . ucwords($day) . ':</div>';\n $return .= '<div class=\"col-xs-6 col-sm-9\">' . $times . '</div>';\n $return .= '</div>';\n }\n $return .= '</div></div>';\n }\n\n \n\n return $return;\n }", "title": "" }, { "docid": "921cb31a3943f41d6866f6aea09413d9", "score": "0.58797044", "text": "public function getTwentyFourHours();", "title": "" }, { "docid": "db6b4fedcf128f6e40011c0b8d44befd", "score": "0.58292115", "text": "private function updateHoursList($hours_list_link)\n {\n $html = file_get_html($hours_list_link);\n $schedule = $html->find('.tabela', 0);\n $hours_array = array();\n for ($i = 1; $i <= 11; ++$i) {\n $td = $schedule->find('tr', $i)->find('td', 1);\n $hours_from_td = $td->plaintext;\n\n if (strpos($hours_from_td, ' ')) {\n if (strpos($hours_from_td, ' ') > strpos($hours_from_td, '-')) {\n $start = substr($hours_from_td, 0, strpos($hours_from_td, '-'));\n $stop = substr($hours_from_td, strpos($hours_from_td, ' ') + 1);\n } else {\n $start = substr($hours_from_td, 0, strpos($hours_from_td, ' '));\n $stop = substr($hours_from_td, strpos($hours_from_td, '-') + 1);\n }\n } else {\n $start = substr($hours_from_td, 0, strpos($hours_from_td, '-'));\n $stop = substr($hours_from_td, strpos($hours_from_td, '-') + 1);\n }\n\n $start = trim($start);\n $stop = trim($stop);\n\n $hour_single_pair = array();\n $hour_single_pair[0] = $start;\n $hour_single_pair[1] = $stop;\n\n $hours_array[] = $hour_single_pair;\n }\n\n R::wipe('godziny');\n foreach ($hours_array as $i) {\n R::useWriterCache(true);\n\n $hour_single_pair = R::dispense('godziny');\n\n $hour_single_pair->start = (string) $i[0];\n $hour_single_pair->stop = (string) $i[1];\n\n $id = R::store($hour_single_pair);\n }\n $this->setHoursList($hours_array);\n }", "title": "" }, { "docid": "1815445b9b814f5195f63313a105401b", "score": "0.5822058", "text": "function print_calendar_hours($cal_params, $i=0, $options=NULL) {\n $calendar_dates = get_calendar_dates($cal_params);\n $start_hour = $cal_params->start_hour;\n $end_hour = $cal_params->end_hour;\n $period = $cal_params->period;\n $dateAr = $calendar_dates[0];\n $today = $dateAr['date'];\n $items = $classes = $item_options = array();\n $index=0;\n for($p=0;$p < $period; $p++) {\n for($hour=$start_hour;$hour < $end_hour; $hour++) {\n $class = 'cal_guide cal_day cell_w';\n $classes[] = $class;\n $item_options[] = array('id' => \"cal_guide-$i-$index\", 'data-date' => $today.' '.dectime2hm($hour, true, true)); \n $items[] = html_div($hour, 'guide_title').html_div('', 'guide-box'); \n $index++;\n }\n }\n $list = html_ul($items, '', array('id' => \"cal_guides-$i\", 'item_classes' => $classes, 'item_options' => $item_options));\n return $list;\n}", "title": "" }, { "docid": "2c24e0a162437c114968d9ea1b8bb3e4", "score": "0.58212584", "text": "public function hours($value) {\n return $this->setProperty('hours', $value);\n }", "title": "" }, { "docid": "530607a635127a1a269e1e081fa5aa06", "score": "0.57928264", "text": "public function projectHours()\n {\n return $this->hasMany(ProjectHour::class, 'project_id');\n }", "title": "" }, { "docid": "90222247c07f57df727f37ea2be615c1", "score": "0.5775868", "text": "public function updateHoursList($example_plan_url) {\n $html = file_get_html($example_plan_url);\n $plan = $html->find('.tabela', 0);\n $hours_list = array();\n for ($hours_row = 1; $hours_row <= 11; $hours_row++) {\n $td = $plan->find('tr', $hours_row)->find('td', 1);\n\n $hours_pair = $td->plaintext;\n\n if (strpos($hours_pair, \" \")) {\n if (strpos($hours_pair, \" \") > strpos($hours_pair, \"-\")) {\n $start = substr($hours_pair, 0, strpos($hours_pair, \"-\"));\n $stop = substr($hours_pair, strpos($hours_pair, \" \") + 1);\n } else {\n $start = substr($hours_pair, 0, strpos($hours_pair, \" \"));\n $stop = substr($hours_pair, strpos($hours_pair, \"-\") + 1);\n }\n } else {\n $start = substr($hours_pair, 0, strpos($hours_pair, \"-\"));\n $stop = substr($hours_pair, strpos($hours_pair, \"-\") + 1);\n }\n\n\n $start = trim($start);\n $stop = trim($stop);\n\n $houers_row = array();\n $houers_row[0] = $start;\n $houers_row[1] = $stop;\n\n $hours_list[] = $houers_row;\n }\n\n\n R::wipe('godziny');\n foreach ($hours_list as $hours_row) {\n R::useWriterCache(true);\n\n $houers_row = R::dispense('godziny');\n\n $houers_row->start = (string) $hours_row[0];\n $houers_row->stop = (string) $hours_row[1];\n\n $id = R::store($houers_row);\n }\n $this->setHoursList($hours_list);\n }", "title": "" }, { "docid": "9ef362d376f1adcf7838c2ef5ab13522", "score": "0.5773607", "text": "function array_hora($hora){\n\t$horas = floor($hora);\n\t$minutos = ($hora - $horas) * 60;\n\t$minutos = round($minutos+0.1);\n\treturn array($horas,$minutos);\n}", "title": "" }, { "docid": "1367b0135fb9cc774001902232d225cf", "score": "0.5738493", "text": "public function clubHoursRuleList(Request $request) {\n $user_id = $request->get('user_id');\n $response = Club::club_hours_rule_list($user_id);\n return $response;\n }", "title": "" }, { "docid": "4e2b1a9a1277a6f8baf155f09244b6cc", "score": "0.56920004", "text": "public function hour($value);", "title": "" }, { "docid": "aab7e9149ca10ae8f398ec383f222dba", "score": "0.5678238", "text": "public function getAllTours() {\n return $this->getAll(getToursIDSQL);\n }", "title": "" }, { "docid": "10608b40688d5f28fa6e450feaf2cade", "score": "0.56735265", "text": "public static function displayHours($start = 0, $end = 86400, $step = 3600, $format = 'H:i')\n {//return time interval in a day\n $times = array();\n\n foreach (range($start, $end, $step) as $timestamp) {\n $hour_mins = gmdate('H:i', $timestamp);\n\n if (!empty($format)) {\n $times[$hour_mins] = gmdate($format, $timestamp);\n } else {\n $times[$hour_mins] = $hour_mins;\n }\n }\n\n return $times;\n }", "title": "" }, { "docid": "a97cadc0b0fe8e7ed6e01ff8af850fc0", "score": "0.5649333", "text": "public function toOptionArray()\n {\n \t$j = 0;\n\t \tfor( $i=10;$i<=60;$i++ ) {\n\t \t\tif($i >= $j+10 ){\n $hour[$i] = str_pad($i, 2, '0', STR_PAD_LEFT);\n $j = $j+10;\n\t \t\t}\n \n }\n\t\treturn $hour;\n\t\t\n }", "title": "" }, { "docid": "a72aa77e2172c2197394943cf1811574", "score": "0.56454706", "text": "public function getForEnabledHosts()\n {\n $downtimes = [];\n\n $request = <<<'SQL'\n SELECT dt.dt_id,\n dt.dt_activate,\n dtp.dtp_start_time,\n dtp.dtp_end_time,\n dtp.dtp_day_of_week,\n dtp.dtp_month_cycle,\n dtp.dtp_day_of_month,\n dtp.dtp_fixed,\n dtp.dtp_duration,\n h.host_id,\n h.host_name,\n NULL as service_id,\n NULL as service_description\n FROM downtime_period dtp,\n downtime dt,\n downtime_host_relation dtr,\n host h\n WHERE dtp.dt_id = dtr.dt_id\n AND dtp.dt_id = dt.dt_id\n AND dtr.host_host_id = h.host_id\n AND h.host_activate = '1'\n SQL;\n\n $statement = $this->db->query($request);\n\n while ($record = $statement->fetch(\\PDO::FETCH_ASSOC)) {\n $downtimes[] = $record;\n }\n\n return $downtimes;\n }", "title": "" }, { "docid": "ed03aafa5796abc47d0f9d2adacb92d4", "score": "0.5625609", "text": "public function getBusinessHours($ownerId, $appointmentDate)\n\t\t{\n\t\t\t/*------------------- Start - Calculate Business Hours ----------------*/\n\t\t\t$arrDefaultTime = array('12:00 AM', '12:30 AM','01:00 AM', '01:30 AM','02:00 AM', '02:30 AM','03:00 AM', '03:30 AM','04:00 AM', '04:30 AM','05:00 AM', '05:30 AM','06:00 AM', '06:30 AM','07:00 AM', '07:30 AM', '08:00 AM', '08:30 AM', '09:00 AM', '09:30 AM', '10:00 AM', '10:30 AM', '11:00 AM', '11:30 AM', '12:00 PM', '12:30 PM', '01:00 PM', '01:30 PM', '02:00 PM', '02:30 PM', '03:00 PM', '03:30 PM', '04:00 PM', '04:30 PM', '05:00 PM', '05:30 PM','06:00 PM', '06:30 PM','07:00 PM', '07:30 PM','08:00 PM', '08:30 PM','09:00 PM', '09:30 PM','10:00 PM', '10:30 PM','11:00 PM', '11:30 PM');\n\t\t \n\t\t\t$repository = $this->getDoctrine()->getRepository('SalonSolutionEmployeeBundle:SalonsolutionsSalonHours');\n\t\t\t$salonHours = $repository->findBy(array('salonId' => $ownerId));\t\n\t\t\t\n\t\t\t\n\t\t\t$monFhalfStart = $salonHours[0]->monFhalfStart;\n\t\t\t$monFhalfEnd = $salonHours[0]->monFhalfEnd;\n\t\t\t$monShalfStart = $salonHours[0]->monShalfStart;\n\t\t\t$monShalfEnd = $salonHours[0]->monShalfEnd;\n\t\t\t$tuesFhalfStart = $salonHours[0]->tuesFhalfStart;\n\t\t\t$tuesFhalfEnd = $salonHours[0]->tuesFhalfEnd;\n\t\t\t$tuesShalfStart = $salonHours[0]->tuesShalfStart;\n\t\t\t$tuesShalfEnd = $salonHours[0]->tuesShalfEnd;\n\t\t\t$wedFhalfStart = $salonHours[0]->wedFhalfStart;\n\t\t\t$wedFhalfEnd = $salonHours[0]->wedFhalfEnd;\n\t\t\t$wedShalfStart = $salonHours[0]->wedShalfStart;\n\t\t\t$wedShalfEnd = $salonHours[0]->wedShalfEnd;\n\t\t\t$thuFhalfStart = $salonHours[0]->thuFhalfStart;\n\t\t\t$thuFhalfEnd = $salonHours[0]->thuFhalfEnd;\n\t\t\t$thuShalfStart = $salonHours[0]->thuShalfStart;\n\t\t\t$thuShalfEnd = $salonHours[0]->thuShalfEnd;\n\t\t\t$friFhalfStart = $salonHours[0]->friFhalfStart;\n\t\t\t$friFhalfEnd = $salonHours[0]->friFhalfEnd;\n\t\t\t$friShalfStart = $salonHours[0]->friShalfStart;\n\t\t\t$friShalfEnd = $salonHours[0]->friShalfEnd;\n\t\t\t$satFhalfStart = $salonHours[0]->satFhalfStart;\n\t\t\t$satFhalfEnd = $salonHours[0]->satFhalfEnd;\n\t\t\t$satShalfStart = $salonHours[0]->satShalfStart; \n\t\t\t$satShalfEnd = $salonHours[0]->satShalfEnd;\n\t\t\t$sunFhalfStart = $salonHours[0]->sunFhalfStart;\n\t\t\t$sunFhalfEnd = $salonHours[0]->sunFhalfEnd;\n\t\t\t$sunShalfStart = $salonHours[0]->sunShalfStart;\n\t\t\t$sunShalfEnd = $salonHours[0]->sunShalfEnd;\n\t\t \n\t\t \t$currentDay = date('D', strtotime($appointmentDate));\n\t\t \t\n\t\t \tif( $currentDay == 'Mon' )\n\t\t \t{\n\t\t \t\t$salonOpeningTime = $monFhalfStart;\n\t\t\t \t$salonClosingTime = $monShalfEnd;\n\t\t\t \n\t\t\t \t$salonBreakStartTime = $monFhalfEnd;\n\t\t\t \t$salonBreakEndTime = $monShalfStart;\n\t\t\t}\n\t\t \telse if( $currentDay == 'Tue' )\n\t\t \t{\n\t\t \t\t$salonOpeningTime = $tuesFhalfStart;\n\t\t\t \t$salonClosingTime = $tuesShalfEnd;\n\t\t\t \n\t\t\t \t$salonBreakStartTime = $tuesFhalfEnd;\n\t\t\t \t$salonBreakEndTime = $tuesShalfStart;\n\t\t \t}\n\t\t \telse if( $currentDay == 'Wed' )\n\t\t \t{\n\t\t\t\t$salonOpeningTime = $wedFhalfStart;\n\t\t\t \t$salonClosingTime = $wedShalfEnd;\n\t\t\t \n\t\t\t \t$salonBreakStartTime = $wedFhalfEnd;\n\t\t\t \t$salonBreakEndTime = $wedShalfStart; \n\t\t \t}\n\t\t \telse if( $currentDay == 'Thu' )\n\t\t \t{\n\t\t \t\t$salonOpeningTime = $thuFhalfStart;\n\t\t\t \t$salonClosingTime = $thuShalfEnd;\n\t\t\t \n\t\t\t \t$salonBreakStartTime = $thuFhalfEnd;\n\t\t\t \t$salonBreakEndTime = $thuShalfStart; \n\t\t \t}\n\t\t \telse if( $currentDay == 'Fri' )\n\t\t \t{\n\t\t \t\t$salonOpeningTime = $friFhalfStart;\n\t\t\t \t$salonClosingTime = $friShalfEnd;\n\t\t\t \n\t\t\t \t$salonBreakStartTime = $friFhalfEnd;\n\t\t\t \t$salonBreakEndTime = $friShalfStart; \n\t\t \t}\n\t\t \telse if( $currentDay == 'Sat' )\n\t\t \t{\n\t\t \t\t$salonOpeningTime = $satFhalfStart;\n\t\t\t \t$salonClosingTime = $satShalfEnd;\n\t\t\t \n\t\t\t \t$salonBreakStartTime = $satFhalfEnd;\n\t\t\t \t$salonBreakEndTime = $satShalfStart; \n\t\t \t}\n\t\t \telse if( $currentDay == 'Sun' )\n\t\t \t{\n\t\t \t\t$salonOpeningTime = $sunFhalfStart;\n\t\t\t \t$salonClosingTime = $sunShalfEnd;\n\t\t\t \n\t\t\t \t$salonBreakStartTime = $sunFhalfEnd;\n\t\t\t \t$salonBreakEndTime = $sunShalfStart; \n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\t$salonOpeningTime = '09:00 AM';\n\t\t\t \t$salonClosingTime = '01:00 PM';\n\t\t\t \n\t\t\t \t$salonBreakStartTime = '02:00 PM';\n\t\t\t \t$salonBreakEndTime = '07:00 PM'; \n\t\t \t}\n\t\t \n\t \t\t$i = 0;\n\t \t\t\n\t \t\t$arrTime = array();\n\t\t \tforeach($arrDefaultTime as $defaultTime)\n\t\t \t{\n\t \t\t\tif( $defaultTime == $salonOpeningTime )\n\t\t \t\t{\n\t\t \t\t\t$i = 1;\n\t\t \t\t}\n\t\t \t\t\n\t\t \t\tif( $defaultTime == $salonClosingTime )\n\t\t \t\t{\n\t\t \t\t\t$i = 0;\n\t\t \t\t}\n\t\t \t\t\n\t\t \t\tif( $i == 1 )\n\t\t \t\t{\n\t\t \t\t\t$arrTime[] = $defaultTime;\n\t\t \t\t}\n\t\t \t\telse\n\t\t \t\t{\n\t\t \t\t\tcontinue;\n\t\t \t\t}\n\t\t \t}\n\t\t \t/*------------------------ End - Calculate Business Hours --------------------------*/\n\t\t \t\n\t\t \treturn $arrTime;\n\t\t}", "title": "" }, { "docid": "4f0cf3cc00850cbc25a5b58d24c383ff", "score": "0.5616692", "text": "public function getHours(): int\n {\n return CommonTime::inSeconds($this->seconds)->getHours();\n }", "title": "" }, { "docid": "62a8ed4809e0d0486ff99d4a39503a4f", "score": "0.5611326", "text": "public function listAll( ){\n\t\t$sql = \"SELECT * FROM tempo\";\n\t\t$result = $this->connection->base->Execute( $sql ); //Show if the result of a function was successful\n\t\twhile( $register = $result->FetchNextObject( ) )\n\t\t{\n\t\t\t$timeData = new Tempo( ); //Instance of Time for use the datas\n\t\t\t$timeData->__constructOverload( $register->ID_TEMPO,$register->ANO,\n\t\t\t\t\t\t\t\t\t\t\t$register->MES );\n\t\t\t$timeReturn[] = $timeData; //Array for return all the times\n\t\t}\n\t\treturn $timeReturn;\n\t}", "title": "" }, { "docid": "c60ddd60d05ae69eeb741619fda25070", "score": "0.5600525", "text": "function get_order_opening_hours($order_id)\n {\n $this->db->select('day, open_time, close_time, work');\n $this->db->where(['type_id' => $order_id, 'type' => 'order']);\n $opening_hours = $this->db->get('pls_post_opening_hours')->result_array();\n $days = [];\n foreach ($opening_hours as $key => $value) {\n $days[$value['day']]['work'] = $value['work'];\n if ($value['work']) {\n $days[$value['day']]['open_time'] = date(\"h:i A\", strtotime($value['open_time']));\n $days[$value['day']]['close_time'] = date(\"h:i A\", strtotime($value['close_time']));\n }\n }\n return $days;\n }", "title": "" }, { "docid": "bce08d62a86a48dff6860392167f73f9", "score": "0.55728066", "text": "private static function convertTime($hours)\r\n {\r\n $hrs = (int)($hours * 60 + 0.5) / 60.0;\r\n $h = (int)($hrs);\r\n $m = (int)(60 * ($hrs - $h) + 0.5);\r\n return array(\r\n 'hrs' => $h,\r\n 'min' => $m\r\n );\r\n }", "title": "" }, { "docid": "f59970e5dcc1601f6715479c995da29e", "score": "0.5509683", "text": "function getAllBuildingHoursInfo() {\n \n //Get todays date in 'yyyy-mm-dd' format\n $today_date=date(\"Y-m-d\");\n $dbQuery = sprintf(\"SELECT Date,Section_Name,Hours FROM CRC_BuildingHours_Info,CRC_Sections_Info WHERE Date >= '%s' AND CRC_Sections_Info.Section_Id=CRC_BuildingHours_Info.Section_Id\",\n mysql_real_escape_string($today_date));\n $result = getDBResultsArray($dbQuery);\n header(\"Content-type: application/json\");\n echo json_encode($result);\n }", "title": "" }, { "docid": "0d5b22cdf9f3a6f1447bc1b151ffcac4", "score": "0.55053294", "text": "function splitTimeFromHours($time,$minutes,&$data,$count,$definedHour=45){\n //shembull: $time = ['start'=>'2017-06-06 08:00:00','end'=>'2017-06-06 09:30:00']\n //Kontrollo nese kohezgjatje e $time eshte me e madhe se $hours\n if(Carbon::parse($time['end'])->diffInMinutes(Carbon::parse($time['start'])) >= intval($minutes)){\n //Rasti kur kohezgjatja e $time eshte me e madhe se $hours\n $data[$count]['start'] = Carbon::parse($time['start'])->toDateTimeString();\n $data[$count]['end'] = Carbon::parse($time['start'])->addMinutes($minutes)->toDateTimeString();\n\n if(Carbon::parse($time['end'])->diffInMinutes(Carbon::parse($time['start'])->addMinutes($minutes)) >= intval($minutes)){\n splitTimeFromHours(['start'=>Carbon::parse($time['start'])->addMinutes($minutes)->toDateTimeString(),'end'=>Carbon::parse($time['end'])->toDateTimeString()],$minutes,$data,$count+1);\n }\n }else{\n if(Carbon::parse($time['end'])->diffInMinutes(Carbon::parse($time['start'])) < $definedHour){\n $data[$count]['start'] = null;\n $data[$count]['end'] = null;\n }else{\n $data[$count]['start'] = Carbon::parse($time['start'])->toDateTimeString();\n $data[$count]['end'] = Carbon::parse($time['end'])->toDateTimeString();\n }\n }\n return $data;\n}", "title": "" }, { "docid": "fcbaa8376f3222268f3748d17552413c", "score": "0.5503128", "text": "function hours_worked($timesheet)\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->load->library('clockout_library');\n\t\treturn $CI->clockout_library->hours_in_closed_timesheets($timesheet);\n\t}", "title": "" }, { "docid": "85ea5340ee5798b4e7acb9baf3aeb8cc", "score": "0.5495105", "text": "public static function getHolydays() {\n return self::$holydays;\n }", "title": "" }, { "docid": "91413556c4ffa60c852f733f03c7f983", "score": "0.54935575", "text": "public function count_register_per_day_hour($param){\n\t$hour = 0;\n\t$register = array();\n\twhile ($hour <= 23){\n $where = $param . \" \" . $hour . \":%\";\n $sql = \"SELECT COUNT(`user_id`) AS count FROM `user` WHERE `created` LIKE '\" . $where . \"' AND `status` = 1\";\n\t $query = $this->db->query($sql);\n $result = $query->result();\n $register[$hour] = $result;\n\t $hour ++;\n\t}\n\treturn $register;\n }", "title": "" }, { "docid": "224a785a865b4371e89dc027d1ecede0", "score": "0.54807794", "text": "public function getMonthHours()\n {\n if($this->role === ROLE_ADMIN){ \n $data = $this->employee_model->get_month_hours();\n }else{\n $data = $this->employee_model->get_month_hours($this->session->userdata('userId'));\n } \n \n //output to json format\n echo json_encode($data);\n }", "title": "" }, { "docid": "f54c8e15cad925233c36f227bdb05ab4", "score": "0.54274523", "text": "public function getHourlyForecasts($from = null, $to = null)\n {\n if (!is_null($from) || !is_null($to)) {\n return $this->getForecastsBetweenTime($this->forecasts_hourly, $from, $to);\n }\n\n return $this->forecasts_hourly;\n }", "title": "" }, { "docid": "369169112e94c8c95695bebe9f66554e", "score": "0.54261255", "text": "public function getAllRegisteredHolidaysOfAEmployee()\n {\n $holidays = Auth::user()->holidays()->get();\n return $holidays;\n }", "title": "" }, { "docid": "efdd632611acb08445a75c2714fcf92b", "score": "0.5422331", "text": "public function getForEnabledHostgroups()\n {\n $downtimes = [];\n\n $request = <<<'SQL'\n SELECT dt.dt_id,\n dt.dt_activate,\n dtp.dtp_start_time,\n dtp.dtp_end_time,\n dtp.dtp_day_of_week,\n dtp.dtp_month_cycle,\n dtp.dtp_day_of_month,\n dtp.dtp_fixed,\n dtp.dtp_duration,\n h.host_id,\n h.host_name,\n NULL as service_id,\n NULL as service_description\n FROM downtime_period dtp,\n downtime dt,\n downtime_hostgroup_relation dhr,\n host h,\n hostgroup_relation hgr,\n hostgroup hg\n WHERE dtp.dt_id = dhr.dt_id\n AND dtp.dt_id = dt.dt_id\n AND dhr.hg_hg_id = hgr.hostgroup_hg_id\n AND hgr.host_host_id = h.host_id\n AND hgr.hostgroup_hg_id = hg.hg_id\n AND hg.hg_activate = '1';\n SQL;\n\n $statement = $this->db->query($request);\n\n while ($record = $statement->fetch(\\PDO::FETCH_ASSOC)) {\n $downtimes[] = $record;\n }\n\n return $downtimes;\n }", "title": "" }, { "docid": "a144dd75c50c520a963b879a5ee5cd97", "score": "0.5417529", "text": "public function getStaffHours($id) {\n $select = $this->select\n ->setIntegrityCheck(false)\n ->from(array('SH' => 'staff_hours'))\n ->join(array('S' => 'staff'), 'S.id = SH.staff_id')\n ->columns(array('date_formatted' => 'DATE_FORMAT(date,\\'%m/%d/%Y\\')', 'id' => 'SH.id'))\n ->where('SH.id = ?', $id);\n return $this->fetchAll($select)->current();\n }", "title": "" }, { "docid": "ca8984babb8f50a0372dddcaff6d798b", "score": "0.5415509", "text": "public function getHoursForFamily($family_id) {\n return \\VolunteerHours::query()\n ->select('volunteer_id', 'hours')\n ->whereIn('volunteer_id', function($query) {\n $query->select('contact_id')\n ->from('FamilyContact')\n ->join('Family', 'FamilyContact.family_id', '=', 'Family.id');\n })\n ->where('family_id', '=', $family_id)\n ->get();\n }", "title": "" }, { "docid": "f241250b0196b9b341a70d83b02f6433", "score": "0.54017645", "text": "public function showAll()\n {\n $horas = Hora::orderBy('denominacion')->get();\n\n return $horas;\n }", "title": "" }, { "docid": "8734c9941a19c05d5aab4a68cd259c9e", "score": "0.5392501", "text": "public function getOpenHoursAction()\n {\n \n $pickup = $_GET['pickup'];\n $stationcode = $_GET['stationcode'];\n $post_string = 'XML-Request=<message>\n <serviceRequest serviceCode=\"getOpenHours\">\n <serviceParameters>\n <reservation>\n <checkout stationID=\"' . $stationcode . '\" date=\"' . $pickup . '\"/>\n </reservation>\n </serviceParameters>\n </serviceRequest>\n </message>&callerCode=22467&password=12012015';\n $openhoursxml = $this->curlrequest($post_string);\n $begintime = $openhoursxml['serviceResponse']['openHoursList']['openHours']['attributes']['beginTime'];\n $endtime = $openhoursxml['serviceResponse']['openHoursList']['openHours']['attributes']['endTime'];\n $openhours = array(\n $begintime,\n $endtime\n );\n return $this->view->openhours = $openhours;\n }", "title": "" }, { "docid": "c8a15a95cf3f49230d78bc743fd03850", "score": "0.5372181", "text": "public function getOfficeHours($id){\n\t\t\t\t\n\t\t\t$mysqli = new mysqli($this->serverName, $this->databaseUser,\n\t\t\t$this->databasePass, $this->databaseName);\n\n\t\t\tif ($mysqli->connect_error)\n\t\t\t{\n\t\t\t\tprint(\"PHP unable to connect to MySQL server; error (\" . $mysqli->connect_errno . \"): \"\n\t\t\t\t. $mysqli->connect_error);\n\n\t\t\t\texit();\n\t\t\t}\n\t\t\t\n\t\t\t$query = \"SELECT officehours FROM info WHERE id=?\";\n\t\t\t$stmt = $mysqli->prepare($query);\n\t\t\t$stmt->bind_param(\"s\", $id);\n\t\t\t\n\t\t\tif (!$stmt->execute()){\n\t\t\t\t$mysqli->close();\n\t\t\t\treturn False;\n\t\t\t}\n\t\t\t\n\t\t\t$stmt->bind_result($office);\n\t\t\t\n\t\t\t$result = $stmt->fetch();\n\t\t\t\n\t\t\t$mysqli->close();\n\t\t\t\n\t\t\tif ($result){\n\t\t\t\treturn $office;\n\t\t\t}\n\t\t\t\n\t\t\treturn False;\n\t\t}", "title": "" }, { "docid": "9958f85671a5b6ab9df5302b16f807b9", "score": "0.5363161", "text": "static public function getListaHabilidade(){\r\n\t\t\t$habilidadeLista = Array();\r\n\t\t\t\r\n\t\t\t//inicializo a minha variavel responsavel por ligar o banco\r\n\t\t\t$dbManager = New dataBaseManager();\r\n\t\t\t\r\n\t\t\t$dbManager->openConnection();\r\n\t\t\t\r\n\t\t\t//Passo o select que eu quero para o metodo, no caso do pokemon um select simples\r\n\t\t\t$result = $dbManager->getData(\"SELECT \r\n\t\t\t\t\t\t\t\t\t\t\t\tidHabilidade, \r\n\t\t\t\t\t\t\t\t\t\t\t\tnome, \r\n\t\t\t\t\t\t\t\t\t\t\t\tdescEfeito,\r\n\t\t\t\t\t\t\t\t\t\t\t\tdescEfeitoOutside\r\n\t\t\t\t\t\t\t\t\t\t\tFROM habilidade\"\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t// intero sobre todos os elemento do retorno da consulta\r\n\t\t\twhile($habilidade = mysqli_fetch_assoc($result)) {\r\n\t\t\t\t\r\n\t\t\t\t$novaHabilidade = new habilidade();\r\n\t\t\t\t$novaHabilidade->setidHabilidade((int)$habilidade['idHabilidade']);\r\n\t\t\t\t$novaHabilidade->setnome($habilidade['nome']);\r\n\t\t\t\t$novaHabilidade->setdescEfeito($habilidade['descEfeito']);\r\n\t\t\t\t$novaHabilidade->setdescEfeitoOutside(utf8_encode($habilidade['descEfeitoOutside']));\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t$resultFirst = $dbManager->getData(\"SELECT idPokemon FROM habilidadepokemon WHERE idTipoHabilidadePokemon = 1 AND idHabilidade = \".$habilidade['idHabilidade']);\r\n\t\t\t\t\r\n\t\t\t\twhile($habiFirst = mysqli_fetch_assoc($resultFirst)) {\r\n\t\t\t\t\t$novaHabilidade->addlistaIdsPokesFirst((int)$habiFirst['idPokemon']);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$resultSecond = $dbManager->getData(\"SELECT idPokemon FROM habilidadepokemon WHERE idTipoHabilidadePokemon = 2 AND idHabilidade = \".$habilidade['idHabilidade']);\r\n\t\t\t\t\r\n\t\t\t\twhile($habiSecond = mysqli_fetch_assoc($resultSecond)) {\r\n\t\t\t\t\t$novaHabilidade->addlistaIdsPokesSecond((int)$habiSecond['idPokemon']);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$resultHidden = $dbManager->getData(\"SELECT idPokemon FROM habilidadepokemon WHERE idTipoHabilidadePokemon = 3 AND idHabilidade = \".$habilidade['idHabilidade']);\r\n\t\t\t\t\r\n\t\t\t\twhile($habiHidden = mysqli_fetch_assoc($resultHidden)) {\r\n\t\t\t\t\t$novaHabilidade->addlistaIdsPokesHidden((int)$habiHidden['idPokemon']);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tarray_push($habilidadeLista, $novaHabilidade);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Salvando o resultado em arquivo\r\n\t\t\tfile_put_contents('habilidade.json', json_encode($habilidadeLista));\r\n\t\t\t\r\n\t\t\techo json_encode($habilidadeLista);\r\n\t\t}", "title": "" }, { "docid": "d83f156cac24f6ff00be34c8fdb15443", "score": "0.53566647", "text": "public function subHours($value);", "title": "" }, { "docid": "a054bffe582d7e007f9f4ea474d53f0c", "score": "0.5340945", "text": "public static function getHorasTrabajadasPorDias($id_empleado) {\r\n $diasHoras = [];\r\n $temp = [];\r\n // se considera que va a haber una hora de entrada y otra de salida por día\r\n $fichajes = self::model()->findWhere([\r\n ['id_empleado', $id_empleado],\r\n ]);\r\n\r\n\r\n foreach ($fichajes as $i => $fichaje) {\r\n if( isset($fichaje->fecha) ) {\r\n $fecha = date( \"m/d/Y\", strtotime($fichaje->fecha) );\r\n\r\n // si se ha registrado una hora se hace la diferencia\r\n if( isset($temp[$fecha]) ) {\r\n $datetime1 = new \\DateTime($temp[$fecha]);\r\n $datetime2 = new \\DateTime($fichaje->fecha);\r\n $interval = $datetime1->diff($datetime2);\r\n $diasHoras[$fecha] = $interval->format('%H').\":\".$interval->format('%I');\r\n } else {\r\n $temp[$fecha] = $fichaje->fecha;\r\n }\r\n }\r\n }\r\n\r\n return $diasHoras;\r\n }", "title": "" }, { "docid": "0869dceeeccc14818d7544f827f7cff0", "score": "0.5340594", "text": "function hoursRange($lower = 800, $upper = 1600, $step = 30, $format = '') {\n $times = [];\n\n if (empty($format)) {\n $format = 'H:i';\n }\n\n // For better readability.\n $lower = ($lower/100) * 3600;\n $upper = ($upper/100) * 3600;\n $step = $step * 60;\n\n foreach (range($lower, $upper, $step) as $increment) {\n $time = gmdate('H:i', $increment);\n list($hour, $minutes) = explode(':', $time);\n $date = new DateTime($hour . ':' . $minutes);\n // Convert the formatted time to make it easier to check for overlap time\n $times[(int) str_replace(':', '', $date->format($format))] = $date->format($format);\n }\n\n return $times;\n}", "title": "" }, { "docid": "6b0b04fae7c2eeebd03aabf5cf04142f", "score": "0.5338992", "text": "public function getAllTimeslots()\n {\n return (new Query())\n ->select(['id', 'name', 'start', 'end'])\n ->from(['delivery_date_timeslots'])\n ->all();\n }", "title": "" }, { "docid": "0ca8b97bf0673af344a8b2effd5b54a0", "score": "0.53362864", "text": "protected function _getChallengeList()\r\n {\r\n if (null === $this->_challengeList)\r\n {\r\n $teamId = $this->_getOwnerTeamId();\r\n if (null === $teamId)\r\n $this->_setchallengeList(array());\r\n else\r\n $this->_loadGameList($teamId, YBCore_Model_Event_Game_Mapper_Challenge::STATUS);\r\n }\r\n return $this->_challengeList;\r\n }", "title": "" }, { "docid": "47c80d2f8fd0fea825cac7cf5e7b04a3", "score": "0.532917", "text": "private function getHolidays(){\n \n if(!$this->holidays)\n $this->setHolidays();\n \n return $this->holidays;\n \n }", "title": "" }, { "docid": "9504350ea85d467635cc837e1253ad9d", "score": "0.5314867", "text": "public function getStaffHours($staffID)\n {\n return $this->db->select($this->StaffHoursTable, ['staffid' => $staffID], '*', [], 600);\n }", "title": "" }, { "docid": "722e4c81b29322456f7007d188993089", "score": "0.53121895", "text": "public function getReportedHoursAction(Request $request)\n {\n $oTaskItem = $this->getDoctrine()->getRepository('WWSCThalamusBundle:TaskItem')->find($request->get('id'));\n\n return new Response($oTaskItem->getSumHoursTimeTracker());\n }", "title": "" }, { "docid": "7c0824528571f9a2a3d495f1330c01dd", "score": "0.530082", "text": "public function clickHours($start = null, $end = null)\n {\n $query = $this->clickLogs()->select('click_logs.created_at', 'tracking_logs.subscriber_id');\n\n if (isset($start)) {\n $query = $query->where('click_logs.created_at', '>=', $start);\n }\n if (isset($end)) {\n $query = $query->where('click_logs.created_at', '<=', $end);\n }\n\n return $query->orderBy('click_logs.created_at', 'asc')->get()->groupBy(function($date) {\n return \\Acelle\\Library\\Tool::dateTime($date->created_at)->format('H'); // grouping by hours\n });\n }", "title": "" }, { "docid": "7f74d32db1855e2093b3422d123624c2", "score": "0.5280061", "text": "public function hourly()\n {\n return $this->attachPayload('frequency', 'hourly');\n }", "title": "" }, { "docid": "3cb401d806299050e38f68d5a7e647cc", "score": "0.5268896", "text": "public function getDoctorWorkingHours($dr_id){\n\t$stmt = $this->con->prepare(\"SELECT hour, shift FROM working_hours WHERE dr_id = ? \n\t\t\t\t\t\t\t\tORDER BY hour ASC;\");\n\t$stmt -> bind_param(\"s\",$dr_id);\n\t$stmt->execute();\n\t$out = $stmt->get_result();\n\t$result = array();\n\t\t\t\twhile($row=$out->fetch_assoc()){\n\t\t\t\t\tarray_push($result,array(\n 'hour'=>$row['hour'],\n\t\t\t\t\t'shift'=>$row['shift'],\n\t\t\t\t\t'massage'=>'successful'));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $result;\n\t\n\t}", "title": "" }, { "docid": "c91a62ed3de64853259ba3d89f9e5f98", "score": "0.52641785", "text": "public function getTimeFormats(): array\n {\n $styles = [\n 'H:i',\n 'H:i:s',\n 'h:i A',\n 'h:i:s A',\n ];\n return $this->fillList($styles);\n }", "title": "" }, { "docid": "66ace49876713d0b9d39c1680a421bd2", "score": "0.52568793", "text": "private function _getTasksEstimatehours($times = [], $isCreated = false) {\n $sumSeconds = 0;\n if($isCreated) {\n $sumSeconds = $this->timeToSeconds($times[0]) + $this->timeToSeconds($times[1]);\n } else {\n $sumSeconds = $this->timeToSeconds($times[0]) - $this->timeToSeconds($times[1]);\n }\n\n $hours = floor($sumSeconds / 3600);\n $minutes = floor(($sumSeconds % 3600) / 60);\n return $hours.':'.$minutes;\n }", "title": "" }, { "docid": "1d120259d7f737fa678383d057f6c2f6", "score": "0.5252523", "text": "public function getMembersIndividualHours($project_id)\n {\n $memberIds = $this->getUserMembers($project_id);\n \n $workinghours = TableRegistry::get('Workinghours');\n $individualTotalHours = array();\n if(!empty($memberIds)) {\n foreach($memberIds as $memberId) {\n $queryW = $workinghours\n ->find()\n ->select(['duration'])\n ->where(['member_id' => $memberId])\n ->toArray();\n\n $sum = 0;\n if(!empty($queryW)) {\n foreach($queryW as $result) {\n $sum += $result->duration;\n }\n }\n array_push($individualTotalHours, $sum);\n } \n }\n return $individualTotalHours;\n }", "title": "" }, { "docid": "e6a46511e98503869b4736b0afd3349b", "score": "0.5244423", "text": "public function timeProvider()\n {\n return array(\n array('2016-01-01T00:00:00-07:00', 1451631600),\n array('2016-01-01T00:00:00+00:00', 1451606400),\n array('2017-11-15T00:00:00+12:00', 1510660800),\n array(1, 1),\n array(100000, 100000)\n );\n }", "title": "" }, { "docid": "386f59438b6410fd69ec0cfac4376736", "score": "0.5242825", "text": "public function timecards()\n {\n $timecards = $this->resolveAccount($this->account)->employees()->whereNotNull('terminal_key')->get(['id', 'terminal_key', 'name']);\n\n return [\n 'data' => $timecards\n ];\n }", "title": "" }, { "docid": "438c383040a0cde2ab67a18954470112", "score": "0.52400696", "text": "public function getHour(): Hour\n {\n return $this->h;\n }", "title": "" }, { "docid": "7f14b25dec2f8dd14ae4814be587d3da", "score": "0.5225625", "text": "public function toHours()\n {\n return Math::div($this->seconds, LocalTime::SECONDS_PER_HOUR);\n }", "title": "" }, { "docid": "69cda4cd6aea33485de4b1b3835557de", "score": "0.5216805", "text": "public function getList()\n {\n // set key\n $key = 'standar-satuan-harga-list';\n\n // set section\n $section = 'standar-satuan-harga';\n\n // has section and key\n if ($this->cache->has($section, $key)) {\n return $this->cache->get($section, $key);\n }\n\n // query to database\n $standarsatuanharga = $this->model\n ->get(['_id', 'barang', 'satuan', 'harga'])\n ->toArray();\n\n // store to cache\n $this->cache->put($section, $key, $standarsatuanharga, 3600);\n\n return $standarsatuanharga;\n }", "title": "" }, { "docid": "4b4b6ef0376d7e392a004b0dc5a4bc37", "score": "0.5212729", "text": "public function compareHours()\n {\n $project = $this->getProject();\n $params = $this->getProjectFilters('analytic', 'compareHours');\n $query = $this->filter->create()->filterByProject($params['project']['id'])->getQuery();\n\n $paginator = $this->paginator\n ->setUrl('analytic', 'compareHours', array('project_id' => $project['id']))\n ->setMax(30)\n ->setOrder(TaskModel::TABLE.'.id')\n ->setQuery($query)\n ->calculate();\n\n $this->response->html($this->helper->layout->analytic('analytic/compare_hours', array(\n 'project' => $project,\n 'paginator' => $paginator,\n 'metrics' => $this->estimatedTimeComparisonAnalytic->build($project['id']),\n 'title' => t('Compare hours for \"%s\"', $project['name']),\n )));\n }", "title": "" }, { "docid": "e16b80cf167b902af4c8299a1f7fc17f", "score": "0.5211827", "text": "public static function getHourOptions( $date = '', $isStart = false ) {\n\t\t\t$hours = self::hours();\n\n\t\t\tif ( count( $hours ) == 12 ) {\n\t\t\t\t$h = 'h';\n\t\t\t} else {\n\t\t\t\t$h = 'H';\n\t\t\t}\n\t\t\t$options = '';\n\n\t\t\tif ( empty( $date ) ) {\n\t\t\t\t$hour = ( $isStart ) ? '08' : ( count( $hours ) == 12 ? '05' : '17' );\n\t\t\t} else {\n\t\t\t\t$timestamp = strtotime( $date );\n\t\t\t\t$hour = date( $h, $timestamp );\n\t\t\t\t// fix hours if time_format has changed from what is saved\n\t\t\t\tif ( preg_match( '(pm|PM)', $timestamp ) && $h == 'H' ) {\n\t\t\t\t\t$hour = $hour + 12;\n\t\t\t\t}\n\t\t\t\tif ( $hour > 12 && $h == 'h' ) {\n\t\t\t\t\t$hour = $hour - 12;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$hour = apply_filters( 'tribe_get_hour_options', $hour, $date, $isStart );\n\n\t\t\tforeach ( $hours as $hourText ) {\n\t\t\t\tif ( $hour == $hourText ) {\n\t\t\t\t\t$selected = 'selected=\"selected\"';\n\t\t\t\t} else {\n\t\t\t\t\t$selected = '';\n\t\t\t\t}\n\t\t\t\t$options .= \"<option value='$hourText' $selected>$hourText</option>\\n\";\n\t\t\t}\n\n\t\t\treturn $options;\n\t\t}", "title": "" }, { "docid": "ac4e0fc1a7957902ad849e80d7706d99", "score": "0.5201965", "text": "public function getTimezoneList()\r\n {\r\n $request = new Zend_Service_RememberTheMilk_Request();\r\n $request->setMethod('rtm.timezones.getList');\r\n $request->useAuth(false);\r\n $request->useTimeline(false);\r\n\r\n $response = $this->_request($request);\r\n return new Zend_Service_RememberTheMilk_TimezoneList($response);\r\n }", "title": "" }, { "docid": "786e53d596ab2e878d34d7fe292d0b7b", "score": "0.5193978", "text": "private static function workingHours($data,$start,$end,$timeZone) {\n $dt = new DateTime($data, new DateTimeZone('UTC'));\n // change the timezone of the object without changing it's time\n $dt->setTimezone(new DateTimeZone($timeZone));\n // format the datetime\n $hora = $dt->format('H');\n $minuto = $dt->format('i');\n\n if($hora == $end && $minuto > 0) {\n $hora = $hora + 1;\n }\n\n if($hora >= $start && $hora <= $end) {\n $workingHours = self::WORKING_HOURS;\n } else if ($hora > $end) {\n $workingHours = self::WORKING_HOURS_UP;\n } else if ($hora < $start) {\n $workingHours = self::WORKING_HOURS_DOWN;\n }\n\n return $workingHours;\n }", "title": "" }, { "docid": "84eb59ac8e6b925b74c2e511869246ca", "score": "0.5177161", "text": "function stats_get_list($table, $time = '', $input = array())\n\t{\n\t\t$filter = $this->_stats_get_filter($table, $time);\n\t\t\n\t\t$list = $this->filter_get_list($filter, $input);\n\t\tforeach ($list as $i => $row)\n\t\t{\n\t\t\t$r = $this->_get_value($row);\n\t\t\t$r['time'] = $row->time;\n\t\t\t\n\t\t\t$list[$i] = $r;\n\t\t}\n\t\t\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "aee8f6666bfec7cfbdfff6d3068bb333", "score": "0.5175387", "text": "public function formatHoursAccordingToType($hour)\n {\n $hoursFormat = $this->scopeConfig->getValue(\n LSR::LS_STORES_OPENING_HOURS_FORMAT,\n ScopeInterface::SCOPE_STORE\n );\n\n return [\n 'type' => $hour['type'],\n 'opening_time' => date($hoursFormat, strtotime($hour['open'])),\n 'closing_time' => date($hoursFormat, strtotime($hour['close']))\n ];\n }", "title": "" }, { "docid": "f3051981e16047d115763e19aef1ef99", "score": "0.51731193", "text": "function get_cell_hours($hour)\n\t{\n\t\t$hour = ($hour-1)%12+1;\n\t\t$am = $hour > 7 ? 'AM' : 'PM';\n\t\t\n\t\treturn \"<td class='hour' rowspan='4'>\n\t\t\t\t\t<p class='hour'>$hour</p>\n\t\t\t\t\t<p class='$am'>$am</p>\n\t\t\t\t</td>\";\n\t}", "title": "" }, { "docid": "4777bf8eeabdedede5a87c6bc67cf9c1", "score": "0.5166667", "text": "function hourhistogram(dateTime $dt1, dateTime $dt2){\n\t\t$datearray = $this->timerange($dt1,$dt2);\n\t\t$countarray = array();\n\t\tforeach ($datearray as $date){\n\t\t\t$rs = $this-> hourlist($date);\n\t\t\t$daycount = $this->countrs($rs);\n\t\t\tarray_push($countarray, $daycount);\n\t\t}\n\t\treturn $countarray;\n\t}", "title": "" }, { "docid": "197e7753db152a7522352b39f3348707", "score": "0.5166083", "text": "public static function fillEmptyHours($items, $startTimestamp) {\n\t\t$filledItems = array();\n\n\t\tfor ($hour = 0; $hour < 24; $hour ++) {\n\t\t\tif (! array_key_exists($hour, $items)) {\n\t\t\t\t$item = array(\n\t\t\t\t\t'hour' => $hour,\n\t\t\t\t\t'day' => date('d', $startTimestamp),\n\t\t\t\t\t'date' => date('Y-m-d', $startTimestamp),\n\t\t\t\t\t'quantity' => 0,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t$item = $items[$hour];\n\t\t\t}\n\n\t\t\t$filledItems[$hour] = $item;\n\t\t}\n\n\t\ttx_laterpay_core_logger::getInstance()->info(__METHOD__,\n\t\t\tarray(\n\t\t\t\t'input' => $items,\n\t\t\t\t'output' => $filledItems,\n\t\t\t));\n\n\t\treturn $filledItems;\n\t}", "title": "" }, { "docid": "62049c331f46e1c57374208803854833", "score": "0.5163786", "text": "public function getAllHalls() {\n\t\t$cinema_id = $_SESSION['userid'];\n $query = \"SELECT * FROM halls WHERE cinema_id = $cinema_id ORDER BY hall_number\";\n $this->database->prepare($query);\n $data = $this->database->getArray();\n return $data;\n }", "title": "" }, { "docid": "cf4ee218682dd7b7ea54efdcd5f4886e", "score": "0.5152518", "text": "public function getUserMonthHours()\n {\n $data = $this->employee_model->get_month_hours($this->input->post('userId')); \n \n //output to json format\n echo json_encode($data);\n }", "title": "" }, { "docid": "eb3132f20a043a3aaec6e7f82734fb77", "score": "0.5132906", "text": "function deliveryTimeHrMinSes($opentime)\n {\n\n $monopentimesplit = explode(\":\", $opentime);\n $monopentimehr = $monopentimesplit[0];\n $monopentimemin = $monopentimesplit[1];\n $monopensecsplit = explode(\" \", $monopentimemin);\n $monopentimesec = $monopensecsplit[1];\n\n return array(\n $monopentimehr,\n $monopentimemin,\n $monopentimesec);\n }", "title": "" }, { "docid": "88d0e21f1ad4c7f7b2635951ab52f764", "score": "0.5128838", "text": "public function count_visitor_per_day_hour($param){\n\t$hour = 0;\n\t$visitor = array();\n\twhile ($hour <= 23){\n $where = $param . \" \" . $hour . \":%\";\n $sql = \"SELECT COUNT(DISTINCT `ip`) AS count FROM `analyze` WHERE `created` LIKE '\" . $where . \"'\";\n\t $query = $this->db->query($sql);\n $result = $query->result();\n $visitor[$hour] = $result;\n\t $hour ++;\n\t}\n\treturn $visitor;\n }", "title": "" }, { "docid": "781d4db9bd1db372515b67cc7fbe0dbe", "score": "0.512001", "text": "public function get_all_holidays_list()\n\t{\n\t\t$this->db->select('schl.schl_name,crcl.crcl_name,hldy.*');\n\t\t$this->db->from('cms_holidays hldy');\n\t\t$this->db->join('cms_schools schl','hldy.schl_id=schl.schl_id','left');\n\t\t$this->db->join('cms_circulars crcl','hldy.crcl_id=crcl.crcl_id','left');\n\t\t$query = $this->db->get();\n\t\t//echo $this->db->last_query();\n\t\treturn $query->result();\n\t}", "title": "" }, { "docid": "f3e9a048849e9e2f6b7136f4307d9661", "score": "0.51174766", "text": "public static function getHourIntervals($sStartDate, $sEndDate)\n\t{\n\t\t$i = 1;\n\n\t\t/* Interval limits as a unix timestamps */\n\t\t$iOriginalStartDateUnix = strtotime($sStartDate);\n\t\t$iOriginalEndDateUnix\t= strtotime($sEndDate);\n\n\t\t/* Variable that will be incremented - defaults to initial start date */\n\t\t$iDateUnix = $iOriginalStartDateUnix;\n\n\t\t/* Holds the result */\n\t\t$aIntervals = array();\n\n\t\t/* As long as this is true, the while will loop */\n\t\t$bLoop = true;\n\n\t\twhile($bLoop && $iDateUnix <= $iOriginalEndDateUnix)\n\t\t{\n\n\t\t\t$iStartDateUnix = $iDateUnix;\n\t\t\t$iEndDateUnix \t= strtotime(date('Y-m-d H:59:59', $iStartDateUnix));\n\n\t\t\t/* Next period */\n\t\t\t$iDateUnix = $iEndDateUnix + 1;\n\n\t\t\t/* check for the end of interval */\n\t\t\tif($iEndDateUnix > $iOriginalEndDateUnix)\n\t\t\t{\n\t\t\t\t$bLoop = false;\n\t\t\t\t$iEndDateUnix = $iOriginalEndDateUnix;\n\t\t\t}\n\n\t\t\t$aIntervals[$i]['type']\t\t\t\t= 'hourly';\n\t\t\t$aIntervals[$i]['start_date'] \t\t= date('Y-m-d H:i:s', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['end_date'] \t\t= date('Y-m-d H:i:s', $iEndDateUnix);\n\t\t\t$aIntervals[$i]['start_date_unix'] \t= $iStartDateUnix;\n\t\t\t$aIntervals[$i]['end_date_unix'] \t= $iEndDateUnix;\n\t\t\t$aIntervals[$i]['month'] \t\t\t= date('_ym', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['ym'] \t\t\t\t= date('ym', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['Y'] \t\t\t\t= date('Y', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['y'] \t\t\t\t= date('y', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['month_start'] \t\t= date('Y-m-01 00:00:00', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['month_end'] \t\t= date('Y-m-t 23:59:59', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['ym01']\t\t\t\t= date('Y-m-01', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['day'] \t\t\t\t= date('j', $iStartDateUnix);\n\t\t\t$aIntervals[$i]['days'] \t\t\t= array(date('j', $iStartDateUnix));\n\t\t\t$aIntervals[$i]['key'] = date('Y-m-d H:00:00', $iStartDateUnix);\n\n\t\t\t$i++;\n\t\t}\n\n\t\treturn $aIntervals;\n\t}", "title": "" }, { "docid": "f29a63ea57e6f73217a211994ce26b25", "score": "0.51130015", "text": "public function getName()\n {\n return 'Hours';\n }", "title": "" }, { "docid": "cb78b2e80de66e225947a969b2e5b726", "score": "0.5108693", "text": "public function getAllStaffHours($userSession, $staff, $program, $start, $end, $sort, $dir) {\n return $this->fetchAll($this->getAllStaffHoursSelect($userSession, $staff, $program, $start, $end, $sort, $dir));\n }", "title": "" }, { "docid": "907cc38cb61498949bbdd61726bcf568", "score": "0.510345", "text": "public function getHijriMonths(): array\n {\n return $this->hijriMonths;\n }", "title": "" }, { "docid": "c99a77e0a00b518fa86f0177b9dee25f", "score": "0.51028013", "text": "public function listTaches()\n {\n try {\n $intervention = $this->connect()->prepare('SELECT * FROM tache;');\n $intervention->execute();\n $result = $intervention->fetchAll(PDO::FETCH_ASSOC);\n $intervention->closeCursor();\n return $result;\n } catch (Exception $e) {\n $GLOBALS['errorMessage'] = 2;\n //die('Erreur : ' . $e->getMessage());\n }\n }", "title": "" }, { "docid": "600483b79cf4d1a0720608149d261cf5", "score": "0.51008916", "text": "public function subHour();", "title": "" }, { "docid": "b79dfea903af22e41990e4a8baef9b33", "score": "0.5099462", "text": "public function get_hora();", "title": "" } ]
84603857b70fb700bb223d66ae43e1d0
Creates "Team Members" Custom Post Type /
[ { "docid": "bee8da69bca43b414f09dd42e070cb15", "score": "0.7543666", "text": "function custom_post_team() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Team', 'post type general name' ),\n\t\t'singular_name' => _x( 'Team Member', 'post type singular name' ),\n\t\t'add_new' => _x( 'Add New', 'Team Member' ),\n\t\t'add_new_item' => __( 'Add New Team Member' ),\n\t\t'edit_item' => __( 'Edit Team Member' ),\n\t\t'new_item' => __( 'New Team Member' ),\n\t\t'all_items' => __( 'All Team Members' ),\n\t\t'view_item' => __( 'View Team Members' ),\n\t\t'search_items' => __( 'Search Team Members' ),\n\t\t'not_found' => __( 'No Team Members Found' ),\n\t\t'not_found_in_trash' => __( 'No Team Members found in the trash' ), \n\t\t'parent_item_colon' => '',\n\t\t'menu_name' => 'Team Members'\n\t);\n\t\t\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'description' => 'The entire Red Chalk Studios team!',\n\t\t'public' => true,\n\t\t'menu_position' => 5,\n\t\t'taxonomies' => array('team_category'),\n\t\t'supports' => array( 'title', 'editor', 'thumbnail'),\n\t\t'has_archive' => true,\n\t\t'query_var' => true\n\t);\n\n\tregister_post_type('team', $args );\n}", "title": "" } ]
[ { "docid": "6512f64b937b6e72f333407b1aaed754", "score": "0.7334849", "text": "public function create_post_type()\n\t\t{\n\t\t\t$labels = array(\n\t\t\t\t'name' => _x( 'Members', 'post type general name' ),\n\t\t\t\t'singular_name' => _x( 'Member', 'post type singular name' ),\n\t\t\t\t'add_new' => _x( 'Add New', 'member' ),\n\t\t\t\t'add_new_item' => __( 'Add New Member' ),\n\t\t\t\t'edit_item' => __( 'Edit Member' ),\n\t\t\t\t'new_item' => __( 'New Member' ),\n\t\t\t\t'all_items' => __( 'All Members' ),\n\t\t\t\t'view_item' => __( 'View Member' ),\n\t\t\t\t'search_items' => __( 'Search Members' ),\n\t\t\t\t'not_found' => __( 'No members found' ),\n\t\t\t\t'not_found_in_trash' => __( 'No members found in the Trash' ), \n\t\t\t\t'parent_item_colon' => '',\n\t\t\t\t'menu_name' => 'Members'\n\t\t\t);\n\t\t\t$args = array(\n\t\t\t\t\t'labels' => $labels,\n\t\t\t\t\t'description' => 'Holds our members and bios',\n\t\t\t\t\t'public' => true,\n\t\t\t\t\t'menu_position' => 5,\n\t\t\t\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt'),\n\t\t\t\t\t'has_archive' => true,\n\t\t\t\t\t'menu_icon' => 'dashicons-id', // load the icon\n\t\t\t);\n\t\t\tregister_post_type(self::POST_TYPE, $args);\n\t\t}", "title": "" }, { "docid": "f0e6f26d88d507b394a3dbad42ab009e", "score": "0.71739304", "text": "function create_tp_post_type() {\n\tregister_post_type( 'team_player',\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => __( 'Team' ),\n\t\t\t\t'singular_name' => __( 'Team Player' )\n\t\t\t),\n\t\t\t'capability_type' => 'post',\n\t\t'public' => true,\n\t\t'has_archive' => true,\n\t\t'taxonomies' => array('category', 'person_id') \n\t\t)\n\t);\n\t\n}", "title": "" }, { "docid": "8bb5414f0fa78a3032f9806c2a4df6cb", "score": "0.69507563", "text": "public function create_cpt_players()\n {\n $labels = [\n 'name' => _x('Players', 'jaybeeplayers'),\n 'singular_name' => _x('Player', 'Singular name'),\n 'add_new' => __('New Player'),\n 'add_new_item' => __('Add New Player'),\n 'edit_item' => __('Edit Player'),\n 'new_item' => __('New Player'),\n 'view_item' => __('View Players'),\n 'search_item' => __('Search Players'),\n 'not_found' => __('No Players Found'),\n 'not_found_in_trash' => __('No Players found in trash')\n ];\n\n $birthdate = new RegisterCustomFields();\n\n $args = [\n 'labels' => $labels,\n 'has_archive' => true,\n 'public' => true,\n 'hierarchical' => true,\n 'supports' => [\n 'title',\n 'editor',\n 'excerpt',\n 'custom-fields',\n 'thumbnail',\n 'page-attributes'\n ],\n 'taxonomies' => ['category', 'post-tag', 'sex', 'teams', 'position'],\n 'register_meta_box_cb' => [$birthdate, 'jaybee_add_playerinfo_metabox'],\n 'rewrite' => ['slug' => 'player'],\n 'show_in_rest' => true\n ];\n\n register_post_type('jaybee_players', $args);\n }", "title": "" }, { "docid": "2c30f5eb53e1d3ca0128e487906edda5", "score": "0.6929174", "text": "function team()\n {\n $labels = array(\n 'name' => _x('Team Member', 'Post Type General Name', 'amitasker'),\n 'singular_name' => _x('team-member', 'Post Type Singular Name', 'amitasker'),\n 'menu_name' => _x('Team Member', 'Admin Menu text', 'amitasker'),\n 'name_admin_bar' => _x('Team', 'Add New on Toolbar', 'amitasker'),\n 'archives' => __('Team Archives', 'amitasker'),\n 'attributes' => __('Team Attributes', 'amitasker'),\n 'parent_item_colon' => __('Parent Team:', 'amitasker'),\n 'all_items' => __('All team Member', 'amitasker'),\n 'add_new_item' => __('Add New Team Member', 'amitasker'),\n 'add_new' => __('Add New member', 'amitasker'),\n 'new_item' => __('New Team member', 'amitasker'),\n 'edit_item' => __('Edit Team member', 'amitasker'),\n 'update_item' => __('Update Team member', 'amitasker'),\n 'view_item' => __('View Team member', 'amitasker'),\n 'view_items' => __('View team member', 'amitasker'),\n 'search_items' => __('Search Team member', 'amitasker'),\n 'not_found' => __('Not found', 'amitasker'),\n 'not_found_in_trash' => __('Not found in Trash', 'amitasker'),\n 'featured_image' => __('Featured Image', 'amitasker'),\n 'set_featured_image' => __('Set featured image', 'amitasker'),\n 'remove_featured_image' => __('Remove featured image', 'amitasker'),\n 'use_featured_image' => __('Use as featured image', 'amitasker'),\n 'insert_into_item' => __('Insert into Team member', 'amitasker'),\n 'uploaded_to_this_item' => __('Uploaded to this Team member', 'amitasker'),\n 'items_list' => __('Member list', 'amitasker'),\n 'items_list_navigation' => __('member list navigation', 'amitasker'),\n 'filter_items_list' => __('Filter team member list', 'amitasker'),\n );\n $rewrite = array(\n 'slug' => 'team-member',\n 'with_front' => true,\n 'pages' => true,\n 'feeds' => true,\n );\n $args = array(\n 'label' => __('Team', 'amitasker'),\n 'description' => __('', 'amitasker'),\n 'labels' => $labels,\n 'menu_icon' => 'dashicons-admin-users',\n 'supports' => array('title','custom-fields'),\n 'taxonomies' => array('team-member'),\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 20,\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'hierarchical' => true,\n 'exclude_from_search' => true,\n 'show_in_rest' => true,\n 'publicly_queryable' => false,\n 'capability_type' => 'page',\n 'rewrite' => $rewrite,\n 'show_in_rest' => true,\n );\n register_post_type('team', $args);\n }", "title": "" }, { "docid": "4e03457fdab9b5279a3a3b332cb76ab6", "score": "0.6841627", "text": "function create_post_teams()\n{\n register_post_type(\n 'team', array(\n 'labels' => array(\n 'name' => __('Teams'),\n 'singular_name' => __('Team'),\n 'add_new' => __('Add New'),\n 'add_new_item' => __('Add New Team'),\n 'edit' => __('Edit'),\n 'edit_item' => __('Edit Team'),\n 'new_item' => __('New Team'),\n 'view' => __('View'),\n 'view_item' => __('View Team'),\n 'search_items' => __('Search Teams'),\n 'not_found' => __('No Teams found'),\n 'not_found_in_trash' => __('No Teams found in Trash'),\n 'parent' => __('Parent Team')\n ),\n\n 'public' => true,\n 'supports' => array('title', 'editor', 'thumbnail', 'revisions'),\n 'taxonomies' => array(''),\n 'has_archive' => true,\n 'capability_type' => 'page',\n 'show_ui' => true,\n 'publicly_queryable' => true,\n 'exclude_from_search' => false,\n 'hierarchical' => true,\n 'show_in_nav_menus' => true,\n 'menu_icon' => 'dashicons-shield-alt',\n )\n );\n\n register_taxonomy(\n 'team-category',\n array('team'),\n array(\n 'hierarchical' => true,\n 'labels' => array(\n 'name' => __('Team Categories'),\n 'singular_name' => __('Team Category'),\n 'search_items' => __('Search Categories'),\n 'all_items' => __('All Categories'),\n 'parent_item' => __('Parent Category'),\n 'parent_item_colon' => __('Parent Category:'),\n 'edit_item' => __('Edit Category'),\n 'update_item' => __('Update Category'),\n 'add_new_item' => __('Add New Category'),\n 'new_item_name' => __('New Category Name'),\n 'menu_name' => __('Categories'),\n ),\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'teamcat'),\n )\n );\n}", "title": "" }, { "docid": "0ca7a284f426cdf4dba0a15ff07e44db", "score": "0.6811981", "text": "public function createPostType();", "title": "" }, { "docid": "4ec78c769fbf9af9d1663d95f42ca829", "score": "0.6757649", "text": "function clg_team() {\n\tregister_post_type( 'team', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */\n\t \t// let's now add all the options for this post type\n\t\tarray('labels' => array(\n\t\t\t'name' => __('Team', 'jointstheme'), /* This is the Title of the Group */\n\t\t\t'singular_name' => __('Team', 'jointstheme'), /* This is the individual type */\n\t\t\t'all_items' => __('All Teams', 'jointstheme'), /* the all items menu item */\n\t\t\t'add_new' => __('Add New Team', 'jointstheme'), /* The add new menu item */\n\t\t\t'add_new_item' => __('Add New Team', 'jointstheme'), /* Add New Display Title */\n\t\t\t'edit' => __( 'Edit', 'jointstheme' ), /* Edit Dialog */\n\t\t\t'edit_item' => __('Edit Team', 'jointstheme'), /* Edit Display Title */\n\t\t\t'new_item' => __('New Team', 'jointstheme'), /* New Display Title */\n\t\t\t'view_item' => __('View Team', 'jointstheme'), /* View Display Title */\n\t\t\t'search_items' => __('Search Teams', 'jointstheme'), /* Search Custom Type Title */\n\t\t\t'not_found' => __('Nothing found in the Database.', 'jointstheme'), /* This displays if there are no entries yet */\n\t\t\t'not_found_in_trash' => __('Nothing found in Trash', 'jointstheme'), /* This displays if there is nothing in the trash */\n\t\t\t'parent_item_colon' => ''\n\t\t\t), /* end of arrays */\n\t\t\t'description' => __( 'Wherl Team', 'jointstheme' ), /* Custom Type Description */\n\t\t\t'public' => true,\n\t\t\t'publicly_queryable' => true,\n\t\t\t'exclude_from_search' => false,\n\t\t\t'show_ui' => true,\n\t\t\t'query_var' => true,\n\t\t\t'menu_position' => 6, /* this is what order you want it to appear in on the left hand side menu */\n\t\t\t'menu_icon' => 'dashicons-groups', /* the icon for the custom post type menu */\n\t\t\t'rewrite'\t=> array( 'slug' => 'team', 'with_front' => false ), /* you can specify its url slug */\n\t\t\t'has_archive' => true, /* you can rename the slug here */\n\t\t\t'capability_type' => 'post',\n\t\t\t'hierarchical' => false,\n\t\t\t'show_in_rest' => true,\n 'rest_controller_class' => 'WP_REST_Posts_Controller',\n\t\t\t/* the next one is important, it tells what's enabled in the post editor */\n\t\t\t'supports' => array( 'title', 'excerpt', 'thumbnail')\n\t \t) /* end of options */\n\t); /* end of register post type */\n\n}", "title": "" }, { "docid": "00bc656150bc883ba49637efa4637afb", "score": "0.67351", "text": "function team_init() {\n $args = array(\n 'label' => 'Our Team',\n 'public' => true,\n 'show_ui' => true,\n 'capability_type' => 'post',\n 'hierarchical' => false,\n 'rewrite' => array('slug' => 'team'),\n 'query_var' => true,\n 'menu_icon' => 'dashicons-groups',\n 'supports' => array(\n 'title',\n 'editor',\n 'excerpt',\n 'trackbacks',\n 'custom-fields',\n 'comments',\n 'revisions',\n 'thumbnail',\n 'author',\n 'page-attributes',)\n );\n register_post_type( 'team', $args );\n}", "title": "" }, { "docid": "8dd5d4c7b8aa2e6a493b5bf5a305ada4", "score": "0.6697854", "text": "function register_post_types() {\n /* Team Member */\n\t\tregister_post_type( 'team_member',\n array(\n 'labels' => array(\n 'name' => __( 'Team Members' ),\n 'singular_name' => __( 'Team Member' )\n ),\n 'public' => true,\n 'has_archive' => false,\n 'show_in_rest' => true\n )\n );\n /* Application (for position openings) */\n register_post_type( 'position',\n array(\n 'labels' => array(\n 'name' => __( 'Position' ),\n 'singular_name' => __( 'Position' )\n ),\n 'public' => true,\n 'has_archive' => true,\n 'show_in_rest' => true\n )\n );\n }", "title": "" }, { "docid": "5753b6b4cb8db99da9827a96dbac8dcd", "score": "0.6655887", "text": "function create_team_post_type() {\n register_post_type( 'team',\n array(\n 'labels' => array(\n 'name' => 'Team',\n 'singular_name' => 'Team',\n 'add_new' => 'Agregar Nueva',\n 'add_new_item' => 'Agregar Nuevas Team',\n 'edit_item' => 'Edit Team',\n 'new_item' => 'Nuevo Team',\n 'view_item' => 'Ver Team',\n 'search_items' => 'Buscar Perfiles',\n 'not_found' => 'Nada encontrado',\n 'not_found_in_trash' => 'Nada encontrado en la basura',\n 'parent_item_colon' => ''\n ),\n\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'query_var' => true,\n 'menu_icon' => 'dashicons-universal-access',\n 'rewrite' => array('slug'=>'team','with_front'=>FALSE),\n 'capability_type' => 'post',\n 'hierarchical' => true,\n 'has_archive'=>true,\n 'menu_position' => null,\n 'supports' => array('title','editor','thumbnail','excerpt','post‐formats','author'),\n 'show_in_rest' => true,\n 'rest_base' => 'books-api',\n 'rest_controller_class' => 'WP_REST_Posts_Controller',\n 'taxonomies' => array( 'habilidad'),\n\n )\n );\n}", "title": "" }, { "docid": "0de285bb7288a649fea4e7a64fbf737b", "score": "0.6626103", "text": "function create_post_type () {\n\t\trequire_once( plugin_dir_path( __FILE__ ) . 'includes/custom/wp-structuring-custom-post-event.php' );\n\t\tnew Structuring_Markup_Custom_Post_Event( $this->text_domain );\n\t\trequire_once( plugin_dir_path( __FILE__ ) . 'includes/custom/wp-structuring-custom-post-video.php' );\n\t\tnew Structuring_Markup_Custom_Post_Video( $this->text_domain );\n\t}", "title": "" }, { "docid": "ea6421b38d0055e6f28240fdf8c4d86d", "score": "0.647258", "text": "function create_post_type() {\n\t\n\t// define labels for custom post type\n\t$labels = array(\n\t\t'name' => 'Moderatorer',\n\t\t'singular_name' => 'Moderator',\n\t\t'add_new' => 'Ny moderator',\n\t\t'add_new_item' => 'Lägg till ny moderator',\n\t\t'edit_item' => 'Redigera moderator',\n\t\t'new_item' => 'Ny moderator',\n\t\t'view_item' => 'Visa moderator',\n\t\t'search_items' => 'Sök moderator',\n\t\t'not_found' => 'Inga moderatorer hittades',\n\t\t'not_found_in_trash' => 'Inga moderatorer hittades i papperkorgen',\n\t);\n\t$args = array (\n\t\t'labels' => $labels,\n\t\t'public' => true,\n\t\t'menu_icon' => 'dashicons-admin-users',\n\t\t'supports' => array(\n\t\t\t'title',\n\t\t\t'editor',\n\t\t\t'thumbnail',\n\t\t),\n\t\t\n\t);\n\tregister_post_type('Moderator', $args);\n}", "title": "" }, { "docid": "6755a8efd96421e4ff2c81ca5c453cdb", "score": "0.6414542", "text": "public function add_membership_template( $post_type ) {\n\n\t\t$post_type['template'] = array(\n\t\t\tarray(\n\t\t\t\t'core/paragraph',\n\t\t\t\tarray(\n\t\t\t\t\t'placeholder' => __( 'Add a short description of your membership visible to all visitors...', 'lifterlms' ),\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray( 'llms/instructors' ),\n\t\t\tarray( 'llms/pricing-table' ),\n\t\t);\n\n\t\treturn $post_type;\n\n\t}", "title": "" }, { "docid": "ef423c58bb1adf33c34981cacd07127a", "score": "0.63291466", "text": "function create_fruit() {\n register_post_type( 'fruit', [\n 'labels' => [\n 'name' => __( 'Fruits', 'fruits-cpt' ),\n 'singular_name' => __( 'Fruit', 'fruits-cpt' ),\n 'add_new_item' => __( 'Add New Fruit', 'fruits-cpt' ),\n 'edit_item' => __( 'Edit Fruit', 'fruits-cpt' )\n ],\n 'public' => true,\n 'show_ui' => true,\n 'menu_position' => 30,\n 'supports' => [ 'title', 'editor', 'thumbnail' ],\n 'menu_icon' => 'dashicons-cart'\n ] );\n}", "title": "" }, { "docid": "c1bc4268b00716dcd5f12bcb79524fae", "score": "0.6325313", "text": "function trx_addons_cpt_team_init() {\n\t\ttrx_addons_meta_box_register(TRX_ADDONS_CPT_TEAM_PT, array(\n\t\t\t\"subtitle\" => array(\n\t\t\t\t\"title\" => esc_html__(\"Position\", 'trx_addons'),\n\t\t\t\t\"desc\" => wp_kses_data( __(\"Team member's position or any other text\", 'trx_addons') ),\n\t\t\t\t\"std\" => \"\",\n\t\t\t\t\"type\" => \"text\"\n\t\t\t),\n\t\t\t\"brief_info\" => array(\n\t\t\t\t\"title\" => esc_html__(\"Brief info\", 'trx_addons'),\n\t\t\t\t\"desc\" => wp_kses_data( __(\"Brief info about this team member to display on the member's single page near the avatar\", 'trx_addons') ),\n\t\t\t\t\"std\" => \"\",\n\t\t\t\t\"type\" => \"textarea\"\n\t\t\t),\n\t\t\t'email' => array(\n\t\t\t\t\"title\" => esc_html__(\"E-mail\", 'trx_addons'),\n\t\t\t\t\"desc\" => wp_kses_data( __(\"Team member's email\", 'trx_addons') ),\n\t\t\t\t\"std\" => \"\",\n\t\t\t\t\"details\" => true,\t// Display this field in the 'Details' area on the single page\n\t\t\t\t\"type\" => \"text\"\n\t\t\t),\n\t\t\t'phone' => array(\n\t\t\t\t\"title\" => esc_html__(\"Phone\", 'trx_addons'),\n\t\t\t\t\"desc\" => wp_kses_data( __(\"Team member's phone number\", 'trx_addons') ),\n\t\t\t\t\"std\" => \"\",\n\t\t\t\t\"details\" => true,\n\t\t\t\t\"type\" => \"text\"\n\t\t\t),\n\t\t\t'address' => array(\n\t\t\t\t\"title\" => esc_html__(\"Address\", 'trx_addons'),\n\t\t\t\t\"desc\" => wp_kses_data( __(\"Team member's post address\", 'trx_addons') ),\n\t\t\t\t\"std\" => \"\",\n\t\t\t\t\"details\" => true,\n\t\t\t\t\"type\" => \"text\"\n\t\t\t),\n\t\t\t'socials' => array(\n\t\t\t\t\"title\" => esc_html__(\"Socials\", 'trx_addons'),\n\t\t\t\t\"desc\" => wp_kses_data( __(\"Clone fields group and select icon/image, specify social network's title and URL to team member's profile\", 'trx_addons') ),\n\t\t\t\t\"clone\" => true,\n\t\t\t\t\"std\" => array(array()),\n\t\t\t\t\"type\" => \"group\",\n\t\t\t\t\"fields\" => array(\n\t\t\t\t\t'title' => array(\n\t\t\t\t\t\t\"title\" => esc_html__('Title', 'trx_addons'),\n\t\t\t\t\t\t\"desc\" => wp_kses_data( __(\"Social network's name. If empty - icon's name will be used\", 'trx_addons') ),\n\t\t\t\t\t\t\"class\" => \"trx_addons_column-1_3 trx_addons_new_row\",\n\t\t\t\t\t\t\"std\" => \"\",\n\t\t\t\t\t\t\"type\" => \"text\"\n\t\t\t\t\t),\n\t\t\t\t\t'url' => array(\n\t\t\t\t\t\t\"title\" => esc_html__('URL to your profile', 'trx_addons'),\n\t\t\t\t\t\t\"desc\" => wp_kses_data( __(\"Specify URL of team member's profile in this network\", 'trx_addons') ),\n\t\t\t\t\t\t\"class\" => \"trx_addons_column-1_3\",\n\t\t\t\t\t\t\"std\" => \"\",\n\t\t\t\t\t\t\"type\" => \"text\"\n\t\t\t\t\t),\n\t\t\t\t\t\"name\" => array(\n\t\t\t\t\t\t\"title\" => esc_html__(\"Icon\", 'trx_addons'),\n\t\t\t\t\t\t\"desc\" => wp_kses_data( __('Select icon of this network', 'trx_addons') ),\n\t\t\t\t\t\t\"class\" => \"trx_addons_column-1_3\",\n\t\t\t\t\t\t\"std\" => \"\",\n\t\t\t\t\t\t\"options\" => array(),\n\t\t\t\t\t\t\"style\" => trx_addons_get_setting('socials_type'),\n\t\t\t\t\t\t\"type\" => \"icons\"\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t));\n\n\t\t// Register post type and taxonomy\n\t\tregister_post_type( TRX_ADDONS_CPT_TEAM_PT, array(\n\t\t\t'label' => esc_html__( 'Team', 'trx_addons' ),\n\t\t\t'description' => esc_html__( 'Team Description', 'trx_addons' ),\n\t\t\t'labels' => array(\n\t\t\t\t'name' => esc_html__( 'Team', 'trx_addons' ),\n\t\t\t\t'singular_name' => esc_html__( 'Team member', 'trx_addons' ),\n\t\t\t\t'menu_name' => esc_html__( 'Team', 'trx_addons' ),\n\t\t\t\t'parent_item_colon' => esc_html__( 'Parent Item:', 'trx_addons' ),\n\t\t\t\t'all_items' => esc_html__( 'All Team', 'trx_addons' ),\n\t\t\t\t'view_item' => esc_html__( 'View Team member', 'trx_addons' ),\n\t\t\t\t'add_new_item' => esc_html__( 'Add New Team member', 'trx_addons' ),\n\t\t\t\t'add_new' => esc_html__( 'Add New', 'trx_addons' ),\n\t\t\t\t'edit_item' => esc_html__( 'Edit Team member', 'trx_addons' ),\n\t\t\t\t'update_item' => esc_html__( 'Update Team member', 'trx_addons' ),\n\t\t\t\t'search_items' => esc_html__( 'Search Team member', 'trx_addons' ),\n\t\t\t\t'not_found' => esc_html__( 'Not found', 'trx_addons' ),\n\t\t\t\t'not_found_in_trash' => esc_html__( 'Not found in Trash', 'trx_addons' ),\n\t\t\t),\n\t\t\t'taxonomies' => array(TRX_ADDONS_CPT_TEAM_TAXONOMY),\n\t\t\t'supports' => trx_addons_cpt_param('team', 'supports'),\n\t\t\t'public' => true,\n\t\t\t'hierarchical' => false,\n\t\t\t'has_archive' => true,\n\t\t\t'can_export' => true,\n\t\t\t'show_in_admin_bar' => true,\n\t\t\t'show_in_menu' => true,\n\t\t\t'menu_position' => '53.8',\n\t\t\t'menu_icon'\t\t\t => 'dashicons-admin-users',\n\t\t\t'capability_type' => 'post',\n\t\t\t'rewrite' => array( 'slug' => trx_addons_cpt_param('team', 'post_type_slug') )\n\t\t\t)\n\t\t);\n\n\t\tregister_taxonomy( TRX_ADDONS_CPT_TEAM_TAXONOMY, TRX_ADDONS_CPT_TEAM_PT, array(\n\t\t\t'post_type' \t\t=> TRX_ADDONS_CPT_TEAM_PT,\n\t\t\t'hierarchical' => true,\n\t\t\t'labels' => array(\n\t\t\t\t'name' => esc_html__( 'Team Group', 'trx_addons' ),\n\t\t\t\t'singular_name' => esc_html__( 'Group', 'trx_addons' ),\n\t\t\t\t'search_items' => esc_html__( 'Search Groups', 'trx_addons' ),\n\t\t\t\t'all_items' => esc_html__( 'All Groups', 'trx_addons' ),\n\t\t\t\t'parent_item' => esc_html__( 'Parent Group', 'trx_addons' ),\n\t\t\t\t'parent_item_colon' => esc_html__( 'Parent Group:', 'trx_addons' ),\n\t\t\t\t'edit_item' => esc_html__( 'Edit Group', 'trx_addons' ),\n\t\t\t\t'update_item' => esc_html__( 'Update Group', 'trx_addons' ),\n\t\t\t\t'add_new_item' => esc_html__( 'Add New Group', 'trx_addons' ),\n\t\t\t\t'new_item_name' => esc_html__( 'New Group Name', 'trx_addons' ),\n\t\t\t\t'menu_name' => esc_html__( 'Team Groups', 'trx_addons' ),\n\t\t\t),\n\t\t\t'show_ui' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array( 'slug' => trx_addons_cpt_param('team', 'taxonomy_slug') )\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "011ff4524af70d7c8d3f47bf58c881ee", "score": "0.63113785", "text": "function create_custom_post_type(){\r\n \r\n\t$labels = array(\r\n\t\t'name' => _x( 'APA', 'post type general name' ),\r\n\t\t'singular_name' => _x( 'Announcement', 'post type singular name' ),\r\n\t\t'add_new' => _x( 'Add New', 'Announcement' ),\r\n\t\t'add_new_item' => __( 'Add New Announcement' ),\r\n\t\t'edit_item' => __( 'Edit Announcement' ),\r\n\t\t'new_item' => __( 'New Announcement' ),\r\n\t\t'view_item' => __( 'View Announcement' ),\r\n\t\t'search_items' => __( 'Search Announcements' ),\r\n\t\t'not_found' => __( 'No Announcements found' ),\r\n\t\t'not_found_in_trash' => __( 'No Announcements found in Trash' ),\r\n\t\t'parent_item_colon' => ''\r\n\t);\r\n\r\n \t$args = array(\r\n \t'labels' => $labels,\r\n \t'singular_label' => __('Announcement', 'simple-announcements'),\r\n \t'public' => true,\r\n\t \t'capability_type' => 'post',\r\n \t'rewrite' => false,\r\n \t'supports' => array('title', 'editor'),\r\n );\r\n\r\n register_post_type('annonuncements', $args);\r\n}", "title": "" }, { "docid": "157b070520799519074dddc6e906a80e", "score": "0.63081723", "text": "function my_pmpro_bbg_register_member_types() {\r\n bp_register_member_type( 'member', array(\r\n 'labels' => array(\r\n 'name' => 'Members',\r\n 'singular_name' => 'Member',\r\n ),\r\n ) );\r\n}", "title": "" }, { "docid": "73b474734dbd51f7196de74ee2e6c143", "score": "0.62772524", "text": "function sp2016_create_custom_post() {\n\n // Social Posts\n $labels = array(\n\t\t 'name' \t\t\t\t=> 'Social Posts',\n\t\t\t'all_items' \t\t=> 'All Social Posts',\n\t\t 'singular_name' \t=> 'Social Post',\n\t\t 'add_new' \t\t\t=> 'Add New Post',\n\t\t 'add_new_item' \t\t=> 'Add New Post',\n\t\t 'edit' \t\t\t\t=> 'Edit',\n\t\t 'edit_item' \t\t=> 'Edit Post',\n\t\t 'new_item' \t\t\t=> 'New Post',\n\t\t 'view' \t\t\t\t\t=> 'View Post',\n\t\t 'view_item' \t\t\t=> 'View Post',\n\t\t 'search_items' \t\t\t=> 'Search Post',\n\t\t 'not_found' \t\t\t=> 'No posts found',\n\t\t 'not_found_in_trash' \t=> 'No posts found in Trash'\n );\n $args = array(\n\t\t\t'labels' \t=> $labels,\n\t\t\t'public'\t\t \t=> true,\n\t\t\t'publicly_queryable' \t=> true,\n\t\t\t'exclude_from_search'\t=> true,\n\t\t\t'show_in_menu' \t=> true,\n\t\t\t'query_var' \t=> true,\n\t\t\t'capability_type' \t=> 'post',\n\t\t\t'has_archive' \t=> false,\n\t\t\t'menu_icon'\t\t\t \t=> 'dashicons-networking',\n\t\t\t'hierarchical' \t=> false,\n\t\t\t'menu_position' \t=> 23,\n\t\t\t'supports' \t=> array(\n\t\t\t\t'title',\n\t\t\t\t'editor',\n\t\t\t\t'thumbnail',\n\t\t\t\t'page-attributes',\n\t\t\t\t'post-formats',\n\t\t\t\t'author'\n\t\t\t),\n\t\t\t'taxonomies' => array('category'),\n\t\t\t'rewrite'\t\t\t => array(\n\t\t\t\t'slug'\t=> 'socials',\n\t\t\t)\n );\n register_post_type( 'sp-social', $args );\n\n }", "title": "" }, { "docid": "6963dca1168aefc5c9867b55b5475a52", "score": "0.6266497", "text": "function create_post_type_project() {\n\tregister_post_type( 'project',\n\t\tarray(\n\t\t'labels' => array(\n\t\t\t'name' => __( 'Projects' ),\n\t\t\t'singular_name' => __( 'Project' )\n\t\t\t),\n\t\t'public' => true,\n\t\t'rewrite' => array(\n\t\t\t'slug' => '/'\n\t\t\t),\n\t\t'menu_position' => 4,\n\t\t'taxonomies' => array('category')\t\t\t\t\n\t\t)\n\t);\n\tadd_post_type_support( 'project', 'thumbnail' );\n\tadd_post_type_support( 'project', 'custom-fields' );\n}", "title": "" }, { "docid": "2b8fc484e687ed1390c0c3a0966a4eac", "score": "0.6264124", "text": "function organev_setup_post_type() {\n // register the \"organev\" custom post type\n register_post_type( 'organev', ['public' => 'true'] );\n}", "title": "" }, { "docid": "367b3a54a30288754f635eab006691ec", "score": "0.6208295", "text": "function l2p_create_jsfiddle_cpt() { \r\n register_post_type( 'jsfiddle',\r\n array(\r\n 'labels' => array(\r\n 'name' => __( 'Fiddles','link2post' ),\r\n 'singular_name' => __( 'Fiddle','link2post' ),\r\n 'add_new_item' => __('Add New Fiddle','link2post'),\r\n 'edit_item' => __( 'Edit Fiddle','link2post' ),\r\n 'new_item' => __( 'New Fiddle','link2post' ),\r\n\t\t'view_item' => __( 'View Fiddle','link2post' ),\r\n\t\t'search_items' => __( 'Search Fiddles','link2post' ),\r\n\t\t'not_found' => __( 'No Fiddles Found','link2post' ),\r\n\t\t'not_found_in_trash' => __( 'No Fiddles Found In Trash','link2post' ),\r\n\t\t'all_items' => __( 'All Fiddles','link2post' ),\r\n ),\r\n 'public' => true,\r\n 'has_archive' => true,\r\n )\r\n );\r\n}", "title": "" }, { "docid": "1e4ac5928f4ed71bab1a17310de10db3", "score": "0.6203933", "text": "private function set_custom_post () {\n\t\t$args = array(\n\t\t\t'public' => true,\n\t\t\t'_builtin' => false\n\t\t);\n\t\t$post_types = get_post_types( $args, 'objects' );\n\n\t\tforeach ( $post_types as $post_type ) {\n\t\t\t$this->type_args[] = $post_type->name;\n\t\t}\n\t}", "title": "" }, { "docid": "02d0f42a8bedece7c780d4cb923b29cd", "score": "0.62032956", "text": "function add_team_meta(){\n}", "title": "" }, { "docid": "d72ffcecb527d39b71a81690046570ee", "score": "0.6198117", "text": "function austeve_create_funds_post_type() {\n\t\t$labels = array(\n\t\t\t'name' => _x( 'Funds', 'Post Type General Name', 'austeve-funds' ),\n\t\t\t'singular_name' => _x( 'Fund', 'Post Type Singular Name', 'austeve-funds' ),\n\t\t\t'menu_name' => __( 'Funds', 'austeve-funds' ),\n\t\t\t'all_items' => __( 'All Funds', 'austeve-funds' ),\n\t\t\t'view_item' => __( 'View Fund', 'austeve-funds' ),\n\t\t\t'add_new_item' => __( 'Add New Fund', 'austeve-funds' ),\n\t\t\t'add_new' => __( 'Add New', 'austeve-funds' ),\n\t\t\t'edit_item' => __( 'Edit Fund', 'austeve-funds' ),\n\t\t\t'update_item' => __( 'Update Fund', 'austeve-funds' ),\n\t\t\t'search_items' => __( 'Search Funds', 'austeve-funds' ),\n\t\t\t'not_found' => __( 'Not Found', 'austeve-funds' ),\n\t\t\t'not_found_in_trash' => __( 'Not found in Trash', 'austeve-funds' ),\n\t\t);\n\t\t\n\t\t// Set other options for Custom Post Type\t\t\n\t\t$args = array(\n\t\t\t'label' => __( 'Funds', 'austeve-funds' ),\n\t\t\t'description' => __( 'Community Foundation Funds', 'austeve-funds' ),\n\t\t\t'labels' => $labels,\n\t\t\t// Features this CPT supports in Post Editor\n\t\t\t'supports' => array( 'title', 'author', 'revisions', 'editor'),\n\t\t\t// You can associate this CPT with a taxonomy or custom taxonomy. \n\t\t\t'taxonomies' => array( ),\n\t\t\t/* A hierarchical CPT is like Pages and can have\n\t\t\t* Parent and child items. A non-hierarchical CPT\n\t\t\t* is like Posts.\n\t\t\t*/\t\n\t\t\t'hierarchical' => false,\n\t\t\t'rewrite' => array( 'slug' => 'funds' ),\n\t\t\t'public' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_in_menu' => true,\n\t\t\t'show_in_nav_menus' => true,\n\t\t\t'show_in_admin_bar' => true,\n\t\t\t'menu_position' => 5,\n\t\t\t'can_export' => true,\n\t\t\t'has_archive' => false,\n\t\t\t'exclude_from_search' => true,\n\t\t\t'publicly_queryable' => false,\n\t\t\t'capability_type' => 'post',\n\t\t\t'menu_icon'\t\t\t\t=> 'dashicons-performance',\n\t\t);\n\t\t\n\t\t// Registering your Custom Post Type\n\t\tregister_post_type( 'austeve-funds', $args );\n\n\n\t\t// Add new taxonomy, make it hierarchical (like categories)\n\t\t$categoryLabels = array(\n\t\t\t'name' => _x( 'Fund Categories', 'taxonomy general name', 'austeve-funds' ),\n\t\t\t'singular_name' => _x( 'Fund Category', 'taxonomy singular name', 'austeve-funds' ),\n\t\t\t'search_items' => __( 'Search Fund Categories', 'austeve-funds' ),\n\t\t\t'all_items' => __( 'All Fund Categories', 'austeve-funds' ),\n\t\t\t'parent_item' => __( 'Parent Fund Category', 'austeve-funds' ),\n\t\t\t'parent_item_colon' => __( 'Parent Fund Category:', 'austeve-funds' ),\n\t\t\t'edit_item' => __( 'Edit Fund Category', 'austeve-funds' ),\n\t\t\t'update_item' => __( 'Update Fund Category', 'austeve-funds' ),\n\t\t\t'add_new_item' => __( 'Add New Fund Category', 'austeve-funds' ),\n\t\t\t'new_item_name' => __( 'New Fund Category Name', 'austeve-funds' ),\n\t\t\t'menu_name' => __( 'Fund Categories', 'austeve-funds' ),\n\t\t);\n\n\t\t$categoryArgs = array(\n\t\t\t'hierarchical' => true,\n\t\t\t'label' => __( 'austeve-funds-category', 'austeve-funds' ),\n\t\t\t'labels' => $categoryLabels,\n\t\t\t'show_ui' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array( 'slug' => 'fund-category' ),\n\t\t\t'capability_type' => 'post',\n\t\t);\n\n\t\tregister_taxonomy( 'austeve-funds-category', array( 'austeve-funds' ), $categoryArgs );\n\t}", "title": "" }, { "docid": "c7c31373f32fd61066cc10cb6421553c", "score": "0.6186887", "text": "function newcowp_register_custom_post_types() {\r\n //esta es la que crea el post personalizado\r\n register_post_type( 'trabajadores', array(\r\n //si fuera false no se veria en el panel de administración\r\n 'public' => true,\r\n //es un array porque hay diferentes nombres que cambiar, el del panel, el de arriba de la pag, etc\r\n 'labels' => array(\r\n 'name' => 'Trabajadores',\r\n 'add_new' => 'Alta nueva',\r\n 'add_new_item' => 'Añadir nuevo trabajador',\r\n 'searche_item' => 'Buscar empleado',\r\n ),\r\n 'menu_icon' => 'dashicons-admin-users',\r\n //en el caso de que quisieramos poner que x es hijo de y, hace falta, sino false\r\n 'hierarchical' => true,\r\n 'supports' => array(\r\n 'title', \r\n 'editor',\r\n //extracto\r\n 'excerpt', \r\n //imagen destacada\r\n 'thumbnail', \r\n 'page-attributes')\r\n ));\r\n}", "title": "" }, { "docid": "0749dbf7886c60da09eff4618193f7f6", "score": "0.6183791", "text": "public function setUpCPTs() {\n register_post_type(\n 'sfform',\n array(\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_in_rest' => true,\n 'show_in_nav_menus' => true,\n 'show_in_admin_bar' => true,\n 'exclude_from_search' => true,\n 'show_ui' => true,\n 'menu_icon' => 'dashicons-feedback',\n 'hierarchical' => false,\n 'has_archive' => 'sfforms',\n 'map_meta_cap' => true,\n 'description' => 'Shokka Forms form is a form based on the block editor blocks.',\n\n 'labels' => array(\n 'name' => 'SF Forms',\n 'singular_name' => 'SF Form',\n 'add_new_item' => 'Add New Form',\n 'edit_item' => 'Edit Form',\n 'new_item' => 'New Form',\n 'view_item' => 'View Form',\n 'view_items' => 'View Forms',\n 'search_items' => 'Search Forms',\n 'not_found' => 'No forms found',\n 'all_items' => 'All Forms',\n 'item_published' => 'Form publicshed',\n 'item_reverted_to_draft' => 'Form reverted to draft',\n 'item_scheduled' => 'Form scheduled',\n 'item_updated' => 'Form updated',\n 'item_link' => 'Form link',\n 'item_link_description' => 'A link to a form',\n ),\n\n 'supports' => array(\n 'title',\n 'editor',\n ),\n )\n );\n }", "title": "" }, { "docid": "86db13ad795064ddd6306a6ec8ccf811", "score": "0.61634827", "text": "function gt_custom_post_type(){\n register_post_type( 'project', array(\n 'rewrite'=>array('slug'=>'projects'),\n 'labels'=>array(\n 'name'=>'Projects',\n 'sigular_name'=>'Project',\n 'add_new_item'=>'Add New Project',\n 'edit_item'=>'Edit Project'\n ),\n 'menu-icon'=>'dashicon',\n 'public'=>true,\n 'has-archive'=>true,\n 'supports'=>array('title','comments','thumbnail','editor','excerpt')\n ));\n}", "title": "" }, { "docid": "60b96d9c3e69acf2efc77bdeb437a07c", "score": "0.61578405", "text": "public static function createPostType() {\n // Arguments for the post type\n $arrPostTypeArgs = array(\n 'public' => true,\n 'has_archive' => true,\n 'menu_position' => 34,\n 'menu_icon' => 'dashicons-image-filter',\n 'supports' => array(\n 'title',\n 'thumbnail'\n ),\n );\n\n // Get the base labels\n $arrBaseLabels = static::$arrPostTypeBaseLabels;\n\n // Create the wordpress labels\n $arrPostLabels = array(\n 'name' => sprintf( _x( '%s', 'taxonomy general name', 'cuztom' ), $arrBaseLabels[2] ),\n 'singular_name' => sprintf( _x( '%s', 'taxonomy singular name', 'cuztom' ), $arrBaseLabels[1] ),\n 'search_items' => sprintf( __( 'Search %s', 'cuztom' ), $arrBaseLabels[2] ),\n 'all_items' => sprintf( __( 'All %s', 'cuztom' ), $arrBaseLabels[2] ),\n 'parent_item' => sprintf( __( 'Parent %s', 'cuztom' ), $arrBaseLabels[1] ),\n 'parent_item_colon' => sprintf( __( 'Parent %s:', 'cuztom' ), $arrBaseLabels[1] ),\n 'edit_item' => sprintf( __( 'Edit %s', 'cuztom' ), $arrBaseLabels[1] ),\n 'update_item' => sprintf( __( 'Update %s', 'cuztom' ), $arrBaseLabels[1] ),\n 'add_new_item' => sprintf( __( 'Add New %s', 'cuztom' ), $arrBaseLabels[1] ),\n 'new_item_name' => sprintf( __( 'New %s Name', 'cuztom' ), $arrBaseLabels[1] ),\n 'menu_name' => sprintf( __( '%s', 'cuztom' ), $arrBaseLabels[2] )\n );\n\n // Post type object is created here\n static::$objPostType = new Cuztom_Post_Type(static::$strPostType, $arrPostTypeArgs, $arrPostLabels);\n }", "title": "" }, { "docid": "78c899af358ff5395cba028c135ed9d1", "score": "0.6154873", "text": "public function _createPostTypes() {\n $slug = 'mottotage';\n\n # TODO: Move po/mo for translation\n if ( defined( 'ICL_LANGUAGE_CODE' ) ) {\n switch ( ICL_LANGUAGE_CODE ) {\n case 'en':\n $slug = 'theme-days';\n break;\n case 'fr':\n $slug = 'journees-a-theme';\n break;\n }\n }\n\n register_post_type( 'mottotage', array(\n 'labels' => array(\n 'name' => __( 'Mottotage' ),\n 'singular_name' => __( 'mottotag' )\n ),\n 'menu_icon' => get_template_directory_uri() . '/includes/img/icons/mottotage.png',\n 'public' => true,\n 'has_archiv' => true,\n 'rewrite' => array( 'slug' => $slug ),\n 'show_ui' => true, # UI in admin panel\n 'capability_type' => 'post',\n 'hierarchical' => true,\n 'supports' => array( 'title', 'editor', 'thumbnail', 'trackbacks', 'custom-fields', 'revisions' ),\n 'taxonomies' => array( 'category' ),\n 'exclude_from_search' => true,\n 'publicly_queryable' => true,\n 'excerpt' => true,\n 'suppress_filters' => false\n )\n );\n }", "title": "" }, { "docid": "a7e4535cf41fae68c335f149c3cd83c8", "score": "0.6148945", "text": "public function create_post_type()\n {\n register_post_type(self::POST_TYPE,\n array(\n 'labels' => array(\n 'name' => __(sprintf('%ss', ucwords(str_replace(\"_\", \" \", self::POST_TYPE)))),\n 'singular_name' => __(ucwords(str_replace(\"_\", \" \", self::POST_TYPE)))\n ),\n 'public' => true,\n 'exclude_from_search' => true,\n 'menu_icon' => 'dashicons-businessman',\n 'supports' => array(\n 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'custom-fields', 'revisions', 'page-attributes'\n ),\n 'taxonomies' => array('partner_region','partner_country'),\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'partner','with_front' => false),\n 'hierarchical' => false,\n 'capability_type' => 'partner',\n 'map_meta_cap' => true,\n 'capabilities' => array(\n // meta caps (don't assign these to roles)\n 'edit_post' => 'edit_partner',\n 'read_post' => 'read_partner',\n 'delete_post' => 'delete_partner',\n // primitive/meta caps\n 'create_posts' => 'create_partners',\n // primitive caps used outside of map_meta_cap()\n 'edit_posts' => 'edit_partners',\n 'edit_others_posts' => 'manage_partners',\n 'publish_posts' => 'manage_partners',\n 'read_private_posts' => 'read',\n // primitive caps used inside of map_meta_cap()\n 'read' => 'read',\n 'delete_posts' => 'manage_partners',\n 'delete_private_posts' => 'manage_partners',\n 'delete_published_posts' => 'manage_partners',\n 'delete_others_posts' => 'manage_partners',\n 'edit_private_posts' => 'edit_partners',\n 'edit_published_posts' => 'edit_partners'\n ),\n )\n );\n flush_rewrite_rules();\n }", "title": "" }, { "docid": "d7a383d928e3d37d8948f7db68f1938a", "score": "0.6119394", "text": "function create_posttype() {\n\n\tregister_post_type( 'success-stories',\n\t// CPT Options\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => __( 'Success Stories' ),\n\t\t\t\t'singular_name' => __( 'Success story' )\n\t\t\t),\n\t\t\t'public' => true,\n\t\t\t'has_archive' => true,\n\t\t\t'rewrite' => array('slug' => 'success-stories'),\n\t\t)\n\t);\n}", "title": "" }, { "docid": "56b9b177e998e7ba83511e9ac5675cb3", "score": "0.61113906", "text": "public function create(){\n return view('admin.custom-post-type');\n }", "title": "" }, { "docid": "c62fe0a900ac4a51cbcaf1ddb5b362d9", "score": "0.60996836", "text": "public function testTeamsIdTemplatesNkTemplateMembersPost()\n {\n\n }", "title": "" }, { "docid": "af4fcdbbb1481e79594e64558bb1ecf1", "score": "0.60928124", "text": "public function testTeamsIdTemplatesNkMembersPost()\n {\n\n }", "title": "" }, { "docid": "ebd60e65a9ab2238a681bd5d36d46b6c", "score": "0.6066838", "text": "function widget_posts_args_add_custom_type($params) {\n $params['post_type'] = array('post', 'cb_project');\n return $params;\n}", "title": "" }, { "docid": "e361110fae47e2d24148610204861d5c", "score": "0.6059687", "text": "function register_member_types() {\n bp_register_member_type( 'dealer', array(\n 'labels' => array(\n 'name' => 'Dealer Members',\n 'singular_name' => 'Dealer Member',\n ),\n ) );\n \t\tbp_register_member_type( 'industry', array(\n 'labels' => array(\n 'name' => 'Industry Members',\n 'singular_name' => 'Industry Member',\n ),\n ) );\n \t\tbp_register_member_type( 'child', array(\n 'labels' => array(\n 'name' => 'Child Members',\n 'singular_name' => 'Child Member',\n ),\n ) );\n }", "title": "" }, { "docid": "cb73365513e06bef39bdc8bfd9473de5", "score": "0.60547495", "text": "public static function person_post_type() {\n require_once('posttypes/fau-person-posttype.php');\n self::$person_fields = $person_fields;\n self::$person_args = $person_args;\n $args = self::$person_args;\n register_post_type('person', $args);\n }", "title": "" }, { "docid": "71e318ea447d952869ef501f427737ff", "score": "0.6053674", "text": "function staff_cpt_init() {\n\t$labels = array(\n\t\t'name' => _x( 'Staff', 'post type general name', 'your-plugin-textdomain' ),\n\t\t'singular_name' => _x( 'Staff Member', 'post type singular name', 'your-plugin-textdomain' ),\n\t\t'menu_name' => _x( 'Staff', 'admin menu', 'your-plugin-textdomain' ),\n\t\t'name_admin_bar' => _x( 'Staff Member', 'add new on admin bar', 'your-plugin-textdomain' ),\n\t\t'add_new' => _x( 'Add New', 'staff', 'your-plugin-textdomain' ),\n\t\t'add_new_item' => __( 'Add New Staff member', 'your-plugin-textdomain' ),\n\t\t'new_item' => __( 'New Staff Member', 'your-plugin-textdomain' ),\n\t\t'edit_item' => __( 'Edit Staff Member', 'your-plugin-textdomain' ),\n\t\t'view_item' => __( 'View Staff Member', 'your-plugin-textdomain' ),\n\t\t'all_items' => __( 'All Staff', 'your-plugin-textdomain' ),\n\t\t'search_items' => __( 'Search Staff', 'your-plugin-textdomain' ),\n\t\t'parent_item_colon' => __( 'Parent Staff:', 'your-plugin-textdomain' ),\n\t\t'not_found' => __( 'No staff members found.', 'your-plugin-textdomain' ),\n\t\t'not_found_in_trash' => __( 'No staff members found in Trash.', 'your-plugin-textdomain' )\n\t);\n\n\t$args = array(\n\t\t'labels' => $labels,\n 'description' => __( 'Description.', 'your-plugin-textdomain' ),\n\t\t'public' => true,\n\t\t'publicly_queryable' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'staff' ),\n\t\t'capability_type' => 'post',\n\t\t'has_archive' => true,\n\t\t'hierarchical' => false,\n\t\t'menu_position' => null,\n 'menu_icon' => 'dashicons-id-alt',\n\t\t'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )\n\t);\n\n\tregister_post_type( 'staff', $args );\n}", "title": "" }, { "docid": "eb784aa489106d537c87129a6e8ab7ea", "score": "0.604833", "text": "function pfca_member() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Members', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Member', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Member', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n\t\t'all_items' => __( 'All Items', 'text_domain' ),\n\t\t'view_item' => __( 'View Item', 'text_domain' ),\n\t\t'add_new_item' => __( 'Add New Item', 'text_domain' ),\n\t\t'add_new' => __( 'Add New', 'text_domain' ),\n\t\t'edit_item' => __( 'Edit Item', 'text_domain' ),\n\t\t'update_item' => __( 'Update Item', 'text_domain' ),\n\t\t'search_items' => __( 'Search Item', 'text_domain' ),\n\t\t'not_found' => __( 'Not found', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\n\t);\n $rewrite = array(\n\t\t'slug' => 'member',\n\t\t'with_front' => true,\n\t\t'pages' => true,\n\t\t'feeds' => true,\n\t);\n\t$args = array(\n\t\t'label' => __( 'pfca_member', 'text_domain' ),\n\t\t'description' => __( 'Voting members of the website.', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'custom-fields', ),\n\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_in_admin_bar' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => '',\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n 'rewrite' => $rewrite,\n\t);\n\tregister_post_type( 'pfca_member', $args );\n\n}", "title": "" }, { "docid": "5726d373976c7dda930964a51c59590d", "score": "0.603522", "text": "public function create()\n {\n return view('admin.team.create_member');\n }", "title": "" }, { "docid": "d7d609cdbe6ba6c88629fbd1f1d1faa3", "score": "0.6009871", "text": "public function create()\n {\n $title = 'Create - team_member';\n \n return view('team_member.create');\n }", "title": "" }, { "docid": "e40e9a89d196e73a5ef79a928e58cd52", "score": "0.6007649", "text": "public function create_cpt()\n {\n\n // Set UI labels for Custom Post Type\n $labels = array(\n 'name' => _x($this->plural_label, 'Post Type General Name', $this->theme),\n 'singular_name' => _x($this->singular_label, 'Post Type Singular Name', $this->theme),\n 'menu_name' => __($this->plural_label, $this->theme),\n 'parent_item_colon' => __('Parent '.$this->singular_label, $this->theme),\n 'all_items' => __('All '.$this->plural_label, $this->theme),\n 'view_item' => __('View '.$this->singular_label, $this->theme),\n 'add_new_item' => __('Add New '.$this->singular_label, $this->theme),\n 'add_new' => __('Add New', $this->theme),\n 'edit_item' => __('Edit '.$this->singular_label, $this->theme),\n 'update_item' => __('Update '.$this->singular_label, $this->theme),\n 'search_items' => __('Search '.$this->singular_label, $this->theme),\n 'not_found' => __('Not Found', $this->theme),\n 'not_found_in_trash' => __('Not found in Trash', $this->theme),\n );\n\n // Set other options for Custom Post Type\n\n $args = array(\n 'label' => __(strtolower($this->plural_label), $this->theme),\n 'description' => __('List of '.$this->plural_label, $this->theme),\n 'labels' => $labels,\n // Features this CPT supports in Post Editor\n 'supports' => $this->supports,\n /* A hierarchical CPT is like Pages and can have\n * Parent and child items. A non-hierarchical CPT\n * is like Posts.\n */\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'show_in_nav_menus' => true,\n 'show_in_admin_bar' => true,\n 'menu_position' => 7,\n 'can_export' => true,\n 'has_archive' => false,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n );\n\n // Registering your Custom Post Type\n register_post_type(strtolower($this->plural_label), $args);\n $this->create_taxonomy();\n }", "title": "" }, { "docid": "94df61196756921058cfd79d885ebf74", "score": "0.5982551", "text": "static function createPostType()\n {\n $args = array(\n 'labels' => array(\n 'name' => __( self::$pluralName, Config::THEME_NAME),\n 'singular_name' => __( self::$singleName, Config::THEME_NAME),\n 'add_new_item' => __( 'New ' . self::$singleName, Config::THEME_NAME),\n 'add_new' => __( 'New ' . self::$singleName, Config::THEME_NAME),\n 'edit_item' => __( 'Edit ' . self::$singleName, Config::THEME_NAME),\n 'update_item' => __( 'Update ' . self::$singleName, Config::THEME_NAME),\n 'search_items' => __( 'Search ' . self::$pluralName, Config::THEME_NAME),\n 'not_found' => __( 'No ' . self::$pluralName . ' found', Config::THEME_NAME),\n 'not_found_in_trash' => __( 'No ' . self::$pluralName . ' found in Trash', Config::THEME_NAME),\n ),\n 'public' => false,\n 'show_ui' => true,\n 'menu_icon' => TrueLib::getImageURL('true-icons/' . self::$menuImage . '.png'),\n 'supports' => array('title'),\n 'exclude_from_search' => false,\n 'has_archive' => false,\n );\n\n\n if(trim(self::$slug) != '')\n {\n $args['rewrite'] = array('slug' => self::$slug, 'with_front' => false);\n add_filter( 'template_include', array(__CLASS__, 'includeTemplate'), 1 );\n } else {\n $args['rewrite'] = false;\n }\n\n register_post_type( self::$postType, $args);\n\n if(self::$hasTax)\n {\n self::createTaxonomy();\n }\n }", "title": "" }, { "docid": "e929f6c431c311b706890b47bd8087c3", "score": "0.5977582", "text": "public function jaybee_players_post_type_install()\n {\n $this->create_cpt_players();\n\n flush_rewrite_rules();\n }", "title": "" }, { "docid": "559baf2ffa7c6f78d64db04e9c0442b8", "score": "0.597127", "text": "function create_post_type(){\n\t\tadd_action( 'init', array($this, 'movie_init') );\n\t\t//hook into the init action and call create_Types_nonhierarchical_taxonomy when it fires\n\t\tadd_action( 'init', array($this, 'create_genres_taxonomy') );\n\n\t}", "title": "" }, { "docid": "d4bf211629db3ee9f5350394309b84dd", "score": "0.59684724", "text": "function createCustomFields() {\n\t\t\tif ( function_exists( 'add_meta_box' ) ) {\n\t\t\t\tforeach ( $this->postTypes as $postType ) {\n\t\t\t\t\tif($postType == \"page\") {\n\t\t\t\t\t\tadd_meta_box( 'my-custom-fields', 'Wd Custom Fields', array( &$this, 'displayCustomFields' ), 'page', 'advanced', 'high' );\n\t\t\t\t\t}\n\t\t\t\t\tif($postType == \"team-member\") {\n\t\t\t\t\t\tadd_meta_box( 'my-custom-fields', 'Team informations', array( &$this, 'displayCustomFields' ), 'team-member', 'advanced', 'high' );\n\t\t\t\t\t}\n\t\t\t\t\tif($postType == \"testimonials\") {\n\t\t\t\t\t\tadd_meta_box( 'my-custom-fields', 'Testimonials image', array( &$this, 'displayCustomFields' ), 'testimonials', 'advanced', 'high' );\n\t\t\t\t\t}\n\t\t\t\t\tif($postType == \"post\") {\n\t\t\t\t\t\tadd_meta_box( 'my-custom-fields', 'Video post format', array( &$this, 'displayCustomFields' ), 'post', 'advanced', 'high' );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "eaf98505cf89dbbc5372749c7536de2a", "score": "0.59469265", "text": "function create_staff_position_metabox() {\n\n /**\n * Add metabox to the \"page\" post type\n */\n $post_types = array('staff_post_type');\n foreach ($post_types as $post_type) {\n add_meta_box(\n 'staff_position_meta',\n __( 'Staff Member Position/Title', 'prfx-textdomain' ),\n 'staff_position_metabox_markup',\n $post_type,\n 'after_title',\n 'high'\n );\n }\n}", "title": "" }, { "docid": "2cd63a1a9b6b5e73053178058e288995", "score": "0.59391934", "text": "function create_profile_post_type() {\n\tregister_post_type( 'profile_post',\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => __( 'Profile' ),\n\t\t\t\t'singular_name' => __( 'Profile' )\n\t\t\t),\n\t\t\t'capability_type' => 'post',\n\t\t'public' => true,\n\t\t'has_archive' => true,\n\t\t'taxonomies' => array('person_id') \n\t\t)\n\t);\n\t\n\t\n\n}", "title": "" }, { "docid": "aa87456c7f5d9e2c8791ddaef7d13cb1", "score": "0.593859", "text": "function fpr_theme_contact_custom_post_type(){\r\r\n $labels = array(\r\r\n 'name' => 'Messages',\r\r\n 'singular_name' => 'Message',\r\r\n 'menu_name' => 'Messages',\r\r\n 'name_admin_bar' => 'Messages',\r\r\n );\r\r\n\r\r\n $args = array(\r\r\n 'labels' => $labels,\r\r\n 'show_ui' => true,\r\r\n 'show_in_menu' => true,\r\r\n 'capability_type' => 'post',\r\r\n 'hierarchical' => false,\r\r\n 'menu_position' => 26,\r\r\n 'menu_icon' => 'dashicons-email-alt',\r\r\n 'supports' => array( 'title', 'editor', 'author' )\r\r\n );\r\r\n\r\r\n register_post_type( 'fpr_theme-contact', $args );\r\r\n}", "title": "" }, { "docid": "f20e1210a607a71aaddf5f179949b237", "score": "0.588867", "text": "function create_post_type() {\n\tregister_post_type( 'portfolio',\n\t array(\n\t\t'labels' => array(\n\t\t 'name' => __( 'Portfolio' ),\n\t\t 'singular_name' => __( 'Work' ),\n\t\t),\n\t\t'public' => true,\n\t\t'has_archive' => true,\n\t\t'menu_icon' => 'dashicons-format-gallery',\n\t\t'menu_position' => 2,\n\t\t'supports' => array('thumbnail')\n\t )\n\t);\n }", "title": "" }, { "docid": "af82ffdb1cee36a45576ae9b83b70c21", "score": "0.5887503", "text": "function post_contribuitor_metabox(){\n\t\t$arrArgs = array('_builtin' => false);\n\n\t\t//get only custom post types\n\t\t$arrAllCustomType = get_post_types($arrArgs);\n\n\t\t//for post type post\n\t\tarray_push($arrAllCustomType,\"post\");\n\t\t\n\t\tforeach ($arrAllCustomType as $strPostType) {\n\t\t\tadd_meta_box(\"contributors\", \"Contributors\", \"display_contributors_box\",$strPostType,\"normal\",\"high\");\n\t\t}\n\t}", "title": "" }, { "docid": "e0e3a2d4838995f1d6f947c236de0fb7", "score": "0.5861508", "text": "public static function createPostType()\n\t\t{\n\t\t\tif( did_action( 'init' ) !== 1 )\n\t\t\t\treturn;\n\n\t\t\tif( !post_type_exists( self::POST_TYPE_SLUG ) )\n\t\t\t{\n\t\t\t\t$postTypeParams = self::getPostTypeParams();\n\t\t\t\t$postType = register_post_type( self::POST_TYPE_SLUG, $postTypeParams );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fbeabc15c117eea56d3e1cea1ea0529a", "score": "0.58606964", "text": "function nal_add_team_admin_page() {\n\n\t$tax = get_taxonomy( 'team' );\n\n\tadd_users_page(\n\t\tesc_attr( $tax->labels->menu_name ),\n\t\tesc_attr( $tax->labels->menu_name ),\n\t\t$tax->cap->manage_terms,\n\t\t'edit-tags.php?taxonomy=' . $tax->name\n\t);\n}", "title": "" }, { "docid": "a925867d8b7ccaf3320493783269aeb4", "score": "0.5841949", "text": "function setupCustomPostType($postType)\n\t{\n\t\t$singular = __(\"Testimonial\",'easy-testimonials');//ucwords($postType['name']);\n\t\t$plural = __(\"Testimonials\",'easy-testimonials');//isset($postType['plural']) ? ucwords($postType['plural']) : $singular . 's';\n\t\t$exclude_from_search = isset($postType['exclude_from_search']) ? $postType['exclude_from_search'] : false;\n\t\t$default_supports = array('title','editor','author','thumbnail','excerpt','comments','custom-fields');\t\t\n\t\t$supports = isset( $postType['supports'] )\n\t\t\t\t\t? $postType['supports']\n\t\t\t\t\t: $default_supports;\n\t\t\t\t\t\n\t\t\n\t\t$this->customPostTypeName = 'testimonial';//RWG: DO NOT TRANLSATE THIS STRING, ELSE YOU RISK THE PREVIOUSLY ENTERED TESTIMONIALS DISAPPEARING!\n\t\t$this->customPostTypeSingular = $singular;\n\t\t$this->customPostTypePlural = $plural;\n\n\t\tif ($this->customPostTypeName != 'post' && $this->customPostTypeName != 'page')\n\t\t{\t\t\n\t\t\t$labels = array\n\t\t\t(\n\t\t\t\t'name' => __($plural, 'easy-testimonials'),\n\t\t\t\t'singular_name' => __($singular, 'easy-testimonials'),\n\t\t\t\t'add_new' => __('Add New Testimonial', 'easy-testimonials'),\n\t\t\t\t'add_new_item' => __('Add New Testimonial', 'easy-testimonials'),\n\t\t\t\t'edit_item' => __('Edit Testimonial', 'easy-testimonials'),\n\t\t\t\t'new_item' => __('New Testimonial', 'easy-testimonials'),\n\t\t\t\t'view_item' => __('View Testimonial', 'easy-testimonials'),\n\t\t\t\t'search_items' => __('Search Testimonial', 'easy-testimonials'),\n\t\t\t\t'not_found' => __('No testimonials found', 'easy-testimonials'),\n\t\t\t\t'not_found_in_trash' => __('No testimonials found in Trash', 'easy-testimonials'), \n\t\t\t\t'parent_item_colon' => ''\n\t\t\t);\n\n\t\t\t$args = array(\n\t\t\t\t'labels' => $labels,\n\t\t\t\t'public' => true,\n\t\t\t\t'publicly_queryable' => true,\n\t\t\t\t'exclude_from_search' => $exclude_from_search,\n\t\t\t\t'show_ui' => true, \n\t\t\t\t'query_var' => true,\n\t\t\t\t'rewrite' => true,\n\t\t\t\t'capability_type' => 'post',\n\t\t\t\t'hierarchical' => false,\n\t\t\t\t'supports' => $supports,\n\t\t\t\t'menu_icon' => 'dashicons-testimonial',//RWG: added this for Easy Testimonials, specifically\n\t\t\t); \n\t\t\t$this->customPostTypeArgs = $args;\n\t\n\t\t\t$this->registerPostTypes();\n\t\t\n\t\t\t//hook functions to change \"Post Updated\", etc, to relevant CPT naming\n\t\t\tadd_filter( 'post_updated_messages', array( &$this, 'add_update_messages' ) );\n\t\t\tadd_filter( 'bulk_post_updated_messages', array( &$this, 'add_bulk_update_messages' ), 10, 2 );\n\t\t}\n\t}", "title": "" }, { "docid": "5346183c9b50fdef6152d63e39bddde6", "score": "0.58411753", "text": "function austeve_create_events_post_type() {\n\n// Set UI labels for Custom Post Type\n\t$labels = array(\n\t\t'name' => _x( 'Events', 'Post Type General Name', 'austeve-events' ),\n\t\t'singular_name' => _x( 'Event', 'Post Type Singular Name', 'austeve-events' ),\n\t\t'menu_name' => __( 'Events', 'austeve-events' ),\n\t\t'parent_item_colon' => __( 'Parent Event', 'austeve-events' ),\n\t\t'all_items' => __( 'All Events', 'austeve-events' ),\n\t\t'view_item' => __( 'View Event', 'austeve-events' ),\n\t\t'add_new_item' => __( 'Add New Event', 'austeve-events' ),\n\t\t'add_new' => __( 'Add New', 'austeve-events' ),\n\t\t'edit_item' => __( 'Edit Event', 'austeve-events' ),\n\t\t'update_item' => __( 'Update Event', 'austeve-events' ),\n\t\t'search_items' => __( 'Search Event', 'austeve-events' ),\n\t\t'not_found' => __( 'Not Found', 'austeve-events' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'austeve-events' ),\n\t);\n\t\n// Set other options for Custom Post Type\n\t\n\t$args = array(\n\t\t'label' => __( 'Events', 'austeve-events' ),\n\t\t'description' => __( 'Events of any type', 'austeve-events' ),\n\t\t'labels' => $labels,\n\t\t// Features this CPT supports in Post Editor\n\t\t'supports' => array( 'title', 'author', 'revisions', ),\n\t\t// You can associate this CPT with a taxonomy or custom taxonomy. \n\t\t'taxonomies' => array( 'event-type'),\n\t\t/* A hierarchical CPT is like Pages and can have\n\t\t* Parent and child items. A non-hierarchical CPT\n\t\t* is like Posts.\n\t\t*/\t\n\t\t'hierarchical' => false,\n\t\t'rewrite' => array( 'slug' => 'events' ),\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_in_admin_bar' => true,\n\t\t'menu_position' => 5,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t\t'menu_icon'\t\t\t\t=> 'dashicons-calendar-alt',\n\t);\n\t\n\t// Registering your Custom Post Type\n\tregister_post_type( 'austeve-events', $args );\n\n\n\t$taxonomyLabels = array(\n\t\t'name' => _x( 'Event Types', 'taxonomy general name' ),\n\t\t'singular_name' => _x( 'Event Type', 'taxonomy singular name' ),\n\t\t'search_items' => __( 'Search Event Types' ),\n\t\t'all_items' => __( 'All Event Types' ),\n\t\t'parent_item' => __( 'Parent Event Type' ),\n\t\t'parent_item_colon' => __( 'Parent Event Type:' ),\n\t\t'edit_item' => __( 'Edit Event Type' ),\n\t\t'update_item' => __( 'Update Event Type' ),\n\t\t'add_new_item' => __( 'Add New Event Type' ),\n\t\t'new_item_name' => __( 'New Event Type Name' ),\n\t\t'menu_name' => __( 'Event Types' ),\n\t);\n\n\t$taxonomyArgs = array(\n\n\t\t'label' => __( 'austeve_event_types', 'austeve-events' ),\n\t\t'labels' => $taxonomyLabels,\n\t\t'show_admin_column'\t=> false,\n\t\t'hierarchical' \t\t=> true,\n\t\t'rewrite' => array( 'slug' => 'event-type' ),\n\t\t'capabilities'\t\t=> array(\n\t\t\t\t\t\t\t 'manage_terms' => 'edit_users',\n\t\t\t\t\t\t\t 'edit_terms' => 'edit_users',\n\t\t\t\t\t\t\t 'delete_terms' => 'edit_users',\n\t\t\t\t\t\t\t 'assign_terms' => 'edit_posts'\n\t\t\t\t\t\t\t )\n\t\t);\n\n\tregister_taxonomy( 'austeve_event_types', 'austeve-events', $taxonomyArgs );\n\n}", "title": "" }, { "docid": "f5a183c8c2ce4c80eb8ec3a74f51febc", "score": "0.58395976", "text": "function custom_crm_post_type() {\n // Set UI labels for Custom Post Type\n $labels = array(\n 'name' => _x( 'Scams', 'Post Type General Name', 'twentytwenty' ),\n 'singular_name' => _x( 'Scam', 'Post Type Singular Name', 'twentytwenty' ),\n 'menu_name' => __( 'Scams', 'twentytwenty' ),\n 'parent_item_colon' => __( 'Parent Scam', 'twentytwenty' ),\n 'all_items' => __( 'All Scams', 'twentytwenty' ),\n 'view_item' => __( 'View Scam', 'twentytwenty' ),\n 'add_new_item' => __( 'Add New Scam', 'twentytwenty' ),\n 'add_new' => __( 'Add New', 'twentytwenty' ),\n 'edit_item' => __( 'Edit Scam', 'twentytwenty' ),\n 'update_item' => __( 'Update Scam', 'twentytwenty' ),\n 'search_items' => __( 'Search Scam', 'twentytwenty' ),\n 'not_found' => __( 'Not Found', 'twentytwenty' ),\n 'not_found_in_trash' => __( 'Not found in Trash', 'twentytwenty' ),\n );\n// Set other options for Custom Post Type\n $args = array(\n 'label' => __( 'scams', 'twentytwenty' ),\n 'description' => __( 'Scams news and reviews', 'twentytwenty' ),\n 'labels' => $labels,\n // Features this CPT supports in Post Editor\n 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),\n // You can associate this CPT with a taxonomy or custom taxonomy. \n 'taxonomies' => array( 'genres' ),\n /* A hierarchical CPT is like Pages and can have\n * Parent and child items. A non-hierarchical CPT\n * is like Posts.\n */ \n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'show_in_nav_menus' => true,\n 'show_in_admin_bar' => true,\n 'menu_position' => 5,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'post',\n 'show_in_rest' => true,\n 'menu_icon' => 'dashicons-format-aside',\n );\n register_post_type( 'scams', $args ); \n }", "title": "" }, { "docid": "7d8f18b63e8a64a2d0d1799d91ae7d16", "score": "0.58336633", "text": "public function testTeamsIdPortalsNkMembersPost()\n {\n\n }", "title": "" }, { "docid": "857a1687d2e679c2a9bcd9f9867c1b8d", "score": "0.58323765", "text": "function register_post_types() {\n\t$args = array(\n\t\t'supports' => array( 'custom-fields' ),\n\t\t'public' => false,\n\t\t'show_in_rest' => true,\n\n\t\t// Only allow posts to be created programmatically.\n\t\t'capability_type' => CPT_ID,\n\t\t'capabilities' => array(\n\t\t\t'create_posts' => 'do_not_allow',\n\t\t),\n\t);\n\n\tregister_post_type( CPT_ID, $args );\n}", "title": "" }, { "docid": "191f482a2b3b16b18eeed8003f71efa0", "score": "0.58316964", "text": "function mix_register_team_metabox() {\n\n\t// Start with an underscore to hide fields from custom fields list\n\t$prefix = '_mix_team_';\n\n\t/**\n\t * Metabox to be displayed on a single page ID\n\t */\n\t$cmb_team = new_cmb2_box( array(\n\t\t'id' => $prefix . 'metabox',\n\t\t'title' => __( 'Contact Info', 'cmb2' ),\n\t\t'object_types' => array( 'team', ), // Post type\n\t\t'context' => 'normal',\n\t\t'priority' => 'high',\n\t\t'show_names' => true, // Show field names on the left\n\t\t//'show_on' => array( 'id' => array( 2, ) ), // Specific post IDs to display this metabox\n\t) );\n\n\t$cmb_team->add_field( array(\n\t 'name' => 'Email',\n\t 'id' => $prefix . 'email',\n\t 'type' => 'text_email',\n\t) );\n\n}", "title": "" }, { "docid": "6f5aaf9c9e4541059d79464ba0e76c91", "score": "0.5830808", "text": "function register_post_types() {\n\t$args = array(\n\t\t'supports' => array( 'custom-fields' ),\n\t\t'public' => false,\n\t\t'show_in_rest' => true,\n\n\t\t// Only allow posts to be created programmatically.\n\t\t'capability_type' => CPT_ID,\n\t\t'capabilities' => array(\n\t\t\t'create_posts' => 'do_not_allow',\n\t\t),\n\t);\n\n\tregister_post_type( CPT_ID, $args );\n}", "title": "" }, { "docid": "a41f977aae792ef688456d9ce8c1f0b2", "score": "0.58291453", "text": "function create_activity() {\n $labels = array(\n 'name' => 'Activities',\n 'singular_name' => 'Activity',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New Activity',\n 'edit_item' => 'Edit Activity',\n 'new_item' => 'New Activity',\n 'all_items' => 'All Activities',\n 'view_item' => 'View Activity',\n 'search_items' => 'Search Activitys',\n 'not_found' => 'No Activities found',\n 'not_found_in_trash' => 'No Activities found in Trash', \n 'parent_item_colon' => '',\n 'menu_name' => 'Activities'\n );\n\n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true, \n 'show_in_menu' => true, \n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'activity' ),\n 'capability_type' => 'post',\n 'has_archive' => true, \n 'hierarchical' => false,\n 'menu_position' => null,\n 'yarpp_support' => true,\n 'supports' => array( 'title', 'editor', 'thumbnail' )\n ); \n\n register_post_type( 'activity', $args );\n}", "title": "" }, { "docid": "967a0d76789ec0defd925da933031820", "score": "0.58149594", "text": "function l2p_create_gist_cpt() { \r\n\t//add check to make sure we should make cpt\r\n\tregister_post_type( 'gist',array(\r\n\t\t'labels' => array(\r\n\t\t'name' => __( 'Gists','link2post' ),\r\n\t\t'singular_name' => __( 'Gist','link2post' ),\r\n\t\t'add_new_item' => __('Add New Gist','link2post'),\r\n\t\t'edit_item' => __( 'Edit Gist','link2post' ),\r\n\t\t'new_item' => __( 'New Gist','link2post' ),\r\n\t\t'view_item' => __( 'View Gist','link2post' ),\r\n\t\t'search_items' => __( 'Search Gists','link2post' ),\r\n\t\t'not_found' => __( 'No Gists Found','link2post' ),\r\n\t\t'not_found_in_trash' => __( 'No Gists Found In Trash','link2post' ),\r\n\t\t'all_items' => __( 'All Gists','link2post' ),\r\n\t\t),\r\n\t\t'public' => true,\r\n\t\t'has_archive' => true,\r\n\t)\r\n\t);\r\n}", "title": "" }, { "docid": "98f1a0242cc8380c73187f1934b1fdea", "score": "0.58026326", "text": "public function testTeamsIdMembersPost()\n {\n\n }", "title": "" }, { "docid": "9eb7c077280952f62dd44e87bc476a21", "score": "0.57964396", "text": "public function create_people_type() {\n $this->_ajax_start();\n\n check_ajax_referer( 'create-people-type', 'security' );\n\n if ( !current_user_can( 'edit_' . YITH_WCBK_Post_Types::$person_type . 's' ) || !current_user_can( 'create_' . YITH_WCBK_Post_Types::$person_type . 's' ) ) {\n return $this->send_json( array( 'message' => __( 'Error: something went wrong', 'yith-booking-for-woocommerce' ) ) );\n }\n\n $title = $_POST[ 'title' ];\n $post_id = wp_insert_post( array(\n 'post_title' => $title,\n 'post_type' => YITH_WCBK_Post_Types::$person_type,\n 'post_status' => 'publish'\n ) );\n\n if ( $post_id && is_wp_error( $post_id ) ) {\n $error_message = sprintf( __( 'Error: %s', 'yith-booking-for-woocommerce' ), $post_id->get_error_message() );\n return $this->send_json( array( 'message' => $error_message ) );\n }\n\n if ( $post_id ) {\n return $this->send_json( array( 'id' => $post_id, 'title' => $title ) );\n }\n return $this->send_json( array( 'message' => __( 'Error: something went wrong', 'yith-booking-for-woocommerce' ) ) );\n }", "title": "" }, { "docid": "e441cfd461dfa00a5c92020204d9a4b3", "score": "0.57906353", "text": "function guidoleen_newpost_type()\n{\n\t$label = array(\n\t\t'name' => 'vacature',\n\t\t'singular_name' => 'vacatures',\n\t\t'menu_name' => 'vacatures',\n\t\t'name_admin_bar' => 'vacatures',\n\t\t'archives' => 'vacatures_oud',\n\t\t'add_new_item' => 'Voeg nieuwe vacature',\n\t\t'add_new' => 'Voeg nieuwe toe',\n\t\t'new_item' => 'Nieuw Item',\n\t\t'edit_item' => 'Edit Item',\n\t\t'update_item' => 'Update Item'\n\t);\n\t$ptype = array(\n\t\t'labels' => $label,\n\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\t\t\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t);\n\n\tregister_post_type('post_vacatures', $ptype);\n}", "title": "" }, { "docid": "0c087896d9f99e50006844d62ec16c13", "score": "0.5770311", "text": "function nji_custom_taxonomy_teams() {\n\t$args = array(\n\t\t'show_in_rest' => true,\n\t\t'labels' => nji_custom_labels_taxonomies( 'Team', 'Teams' ),\n\t\t'hierarchical' => true,\n\t\t'show_tagcloud' => false,\n\t);\n\tregister_taxonomy( 'teams', array( 'post', 'project', 'leaders' ), $args );\n}", "title": "" }, { "docid": "03b75762a348e2e68ec29cc563acc2fd", "score": "0.57663006", "text": "function create_hero_title_metabox() {\n\n /**\n * Add metabox to the \"page\" post type\n */\n $post_types = array('page');\n foreach ($post_types as $post_type) {\n add_meta_box(\n 'hero_title_meta',\n __( 'Hero Title', 'prfx-textdomain' ),\n 'hero_title_metabox_markup',\n $post_type\n );\n }\n}", "title": "" }, { "docid": "0cdd6ab88f608a5ee1699f8ac6322943", "score": "0.57571155", "text": "public function create()\n {\n return View::make('Admin/Team_members/create');\n\n }", "title": "" }, { "docid": "3277d5e5092de0646717d9832f05b9ea", "score": "0.5747404", "text": "public function testTeamsIdPortalsNkPortalMembersPost()\n {\n\n }", "title": "" }, { "docid": "e1223264887bc784ae623083f48ec80d", "score": "0.5742395", "text": "function create_posttype() {\n\n register_post_type( 'companies',\n // CPT Options\n array(\n 'labels' => array(\n 'name' => __( 'Companies' ),\n 'singular_name' => __( 'Company' )\n ),\n 'public' => true,\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'companies'),\n )\n );\n}", "title": "" }, { "docid": "5fdda507c825e0ea5a50b21e12ff8e86", "score": "0.57345724", "text": "function clg_people() {\n\t// creating (registering) the custom type\n\tregister_post_type( 'people', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */\n\t \t// let's now add all the options for this post type\n\t\tarray('labels' => array(\n\t\t\t'name' => __('People', 'jointstheme'), /* This is the Title of the Group */\n\t\t\t'singular_name' => __('Person', 'jointstheme'), /* This is the individual type */\n\t\t\t'all_items' => __('All People', 'jointstheme'), /* the all items menu item */\n\t\t\t'add_new' => __('Add New Person', 'jointstheme'), /* The add new menu item */\n\t\t\t'add_new_item' => __('Add New Person', 'jointstheme'), /* Add New Display Title */\n\t\t\t'edit' => __( 'Edit', 'jointstheme' ), /* Edit Dialog */\n\t\t\t'edit_item' => __('Edit Person', 'jointstheme'), /* Edit Display Title */\n\t\t\t'new_item' => __('New Person', 'jointstheme'), /* New Display Title */\n\t\t\t'view_item' => __('View Person', 'jointstheme'), /* View Display Title */\n\t\t\t'search_items' => __('Search People', 'jointstheme'), /* Search Custom Type Title */\n\t\t\t'not_found' => __('Nothing found in the Database.', 'jointstheme'), /* This displays if there are no entries yet */\n\t\t\t'not_found_in_trash' => __('Nothing found in Trash', 'jointstheme'), /* This displays if there is nothing in the trash */\n\t\t\t'parent_item_colon' => ''\n\t\t\t), /* end of arrays */\n\t\t\t'description' => __( 'Wherl People', 'jointstheme' ), /* Custom Type Description */\n\t\t\t'public' => true,\n\t\t\t'publicly_queryable' => true,\n\t\t\t'exclude_from_search' => false,\n\t\t\t'show_ui' => true,\n\t\t\t'query_var' => true,\n\t\t\t'menu_position' => 6, /* this is what order you want it to appear in on the left hand side menu */\n\t\t\t'menu_icon' => 'dashicons-id-alt', /* the icon for the custom post type menu */\n\t\t\t'rewrite'\t=> array( 'slug' => 'people', 'with_front' => false ), /* you can specify its url slug */\n\t\t\t'has_archive' => true, /* you can rename the slug here */\n\t\t\t'capability_type' => 'post',\n\t\t\t'hierarchical' => false,\n\t\t\t'show_in_rest' => true,\n 'rest_controller_class' => 'WP_REST_Posts_Controller',\n\t\t\t/* the next one is important, it tells what's enabled in the post editor */\n\t\t\t'supports' => array( 'title', 'thumbnail', 'author')\n\t \t) /* end of options */\n\t); /* end of register post type */\n\n}", "title": "" }, { "docid": "ba18e18ee24d9350ce42abf87e115a78", "score": "0.5724777", "text": "public function run()\n {\n\n PostType::create([\n 'post_type'=>'Generico',\n ]);\n\n }", "title": "" }, { "docid": "5c65738bf3b1a0bb970988009164e72a", "score": "0.5724674", "text": "public function testTeamsIdTeamMembersPost()\n {\n\n }", "title": "" }, { "docid": "ca973ee4269aadc0f35f6455db03f702", "score": "0.572451", "text": "function projects_post_type() {\n register_post_type( 'projects',\n array(\n 'labels' => array(\n 'name' => __( 'Projects' ),\n 'singular_name' => __( 'Projects' )\n ),\n 'public' => true,\n 'has_archive' => true,\n )\n );\n }", "title": "" }, { "docid": "9fd0608dda254c8c0b8819523a6cf88c", "score": "0.57202005", "text": "function university_post_types() {\n //CAMPUS POST TYPE\n register_post_type('campus', array(\n // capability_type and map_meta_cap or capabilities allows us to create a custom role in members plugin\n 'capability_type' => 'campus',\n 'map_meta_cap' => true,\n 'show_in_rest' => true,\n 'supports' => array('title', 'editor', 'excerpt'),\n 'rewrite' => array('slug' => 'campuses'), \n 'has_archive' => true, \n 'public' => true,\n 'show_in_rest' => true,\n 'labels' => array(\n 'name' => 'Campuses',\n 'add_new_item' => 'Add New Campus',\n 'edit_item' => 'Edit Campus',\n 'all_items' => 'All Campuses',\n 'singular_name' => 'Campus'\n ),\n 'menu_icon' => 'dashicons-location-alt'\n ));\n // EVENT POST TYPE\n // 1st argument is the post_type name and the second is an associative array with parameters\n register_post_type('event', array(\n 'show_in_rest' => true,\n // 'capability_type' This allows for members plugin to know HEY, this is a custom post type but of event NOT the WP DEFAULT POST\n 'capability_type' => 'event',\n // map_meta_cap maps the capabolities at the right time for us\n 'map_meta_cap' => true,\n 'supports' => array('title', 'editor', 'excerpt'),\n 'rewrite' => array('slug' => 'events'), \n 'has_archive' => true, \n 'public' => true,\n 'show_in_rest' => true,\n 'labels' => array(\n 'name' => 'Events',\n 'add_new_item' => 'Add New Event',\n 'edit_item' => 'Edit Event',\n 'all_items' => 'All Events',\n 'singular_name' => 'Event'\n ),\n 'menu_icon' => 'dashicons-calendar'\n ));\n\n // PROGRAM POST TYPE\n register_post_type('program', array(\n 'show_in_rest' => true,\n 'supports' => array('title'),\n 'rewrite' => array('slug' => 'programs'), \n 'has_archive' => true, \n 'public' => true,\n 'show_in_rest' => true,\n 'labels' => array(\n 'name' => 'Programs',\n 'add_new_item' => 'Add New Program',\n 'edit_item' => 'Edit Program',\n 'all_items' => 'All Programs',\n 'singular_name' => 'Program'\n ),\n 'menu_icon' => 'dashicons-awards'\n ));\n\n // PROFESSOR POST TYPE\n register_post_type('professor', array(\n 'show_in_rest' => true, // allows for /wp-json/wp/v2/professors data to get the 10 most recient professors\n 'supports' => array('title', 'editor', 'thumbnail'),\n 'public' => true,\n 'show_in_rest' => true,\n 'labels' => array(\n 'name' => 'Professors',\n 'add_new_item' => 'Add New Professor',\n 'edit_item' => 'Edit Professor',\n 'all_items' => 'All Professors',\n 'singular_name' => 'Professor'\n ),\n 'menu_icon' => 'dashicons-welcome-learn-more'\n ));\n\n // NOTE POST TYPE\n register_post_type('note', array(\n 'capability_type' => 'note',\n 'map_meta_cap' => true,\n 'show_in_rest' => true, \n 'supports' => array('title', 'editor'),\n 'public' => false,\n 'show_ui' => true,\n 'labels' => array(\n 'name' => 'Notes',\n 'add_new_item' => 'Add New Note',\n 'edit_item' => 'Edit Note',\n 'all_items' => 'All Notes',\n 'singular_name' => 'Note'\n ),\n 'menu_icon' => 'dashicons-welcome-write-blog'\n ));\n\n // LIKE POST TYPE can only like the professor on a single professor page. So we create \n // custom endpoints.\n register_post_type('like', array(\n 'supports' => array('title'),\n 'public' => false,\n 'show_ui' => true,\n 'labels' => array(\n 'name' => 'Likes',\n 'add_new_item' => 'Add New Like',\n 'edit_item' => 'Edit Like',\n 'all_items' => 'All Likes',\n 'singular_name' => 'Like'\n ),\n 'menu_icon' => 'dashicons-heart'\n ));\n}", "title": "" }, { "docid": "a93bf667a6eea6e59352d38fba7fb248", "score": "0.5718194", "text": "function property_post_type() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Club Events', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Event', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Club Events', 'text_domain' ),\n\t\t'name_admin_bar' => __( 'Event', 'text_domain' ),\n\t\t'archives' => __( 'Item Archives', 'text_domain' ),\n\t\t'attributes' => __( 'Item Attributes', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n\t\t'all_items' => __( 'All Items', 'text_domain' ),\n\t\t'add_new_item' => __( 'Add New Item', 'text_domain' ),\n\t\t'add_new' => __( 'Add New', 'text_domain' ),\n\t\t'new_item' => __( 'New Item', 'text_domain' ),\n\t\t'edit_item' => __( 'Edit Item', 'text_domain' ),\n\t\t'update_item' => __( 'Update Item', 'text_domain' ),\n\t\t'view_item' => __( 'View Item', 'text_domain' ),\n\t\t'view_items' => __( 'View Items', 'text_domain' ),\n\t\t'search_items' => __( 'Search Item', 'text_domain' ),\n\t\t'not_found' => __( 'Not found', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\n\t\t'featured_image' => __( 'Image', 'text_domain' ),\n\t\t'set_featured_image' => __( 'Set image', 'text_domain' ),\n\t\t'remove_featured_image' => __( 'Remove image', 'text_domain' ),\n\t\t'use_featured_image' => __( 'Use as event image', 'text_domain' ),\n\t\t'insert_into_item' => __( 'Insert into page', 'text_domain' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this event', 'text_domain' ),\n\t\t'items_list' => __( 'Items list', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n\t\t'filter_items_list' => __( 'Filter items list', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Event', 'text_domain' ),\n\t\t'description' => __( 'A list of club events', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ),\n\t\t'taxonomies' => array( ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => 'building',\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => false,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t\t'map_meta_cap' => true,\n\t);\n\tregister_post_type( 'event', $args );\n\n}", "title": "" }, { "docid": "2d74a4b745d85fb805ea760112609070", "score": "0.5717576", "text": "public function testTeamsIdTemplatesNkDesignsPost()\n {\n\n }", "title": "" }, { "docid": "0c8b5c469deb979e7cc0b5123b1182d7", "score": "0.57142115", "text": "private function createPost($data, $files)\n {\n\n $id_team = 5;\n\n $team = get_term($id_team, 'team');\n\n $title_jersey = \"{$team->name} | {$data['since']} - {$data['until']}\";\n\n echo $team->name;\n\n $jersey = [\n 'post_title' => $title_jersey,\n 'post_name' => $team->name,\n 'post_content' => '<h1>Hello</h1>',\n 'post_type' => 'jersey',\n 'post_status' => 'pending',\n ];\n\n //var_dump($this->inputs);\n\n $jersey_id = wp_insert_post($jersey);\n\n if (is_wp_error($jersey_id)) {\n JPFlashMessage::FlashMessage($jersey_id->get_error_message());\n }\n\n foreach ($this->inputs as $key => $input) {\n $key_mb = PREFIX_META_BOX_JP . $input;\n add_post_meta($jersey_id, $key_mb, $data[$input]);\n }\n\n $add_term = wp_set_post_terms($jersey_id, $id_team, 'team');\n\n if (is_wp_error($add_term)) {\n JPFlashMessage::FlashMessage($add_term->get_error_message());\n }\n\n // TODO: Subir imagenes\n\n $jerseygallery = new jerseyGallery();\n $jerseygallery->gallerySingleJersey($files, $jersey_id, 2);\n\n\n //TODO: NOTIFICAR CON UN EMAIL AL ADMIN.\n }", "title": "" }, { "docid": "afc6f39ad42a1e6f8275fdebeb22e79d", "score": "0.5703239", "text": "function pmproap_addMemberToPost( $user_id, $post_id ) {\n\t$user_posts = get_user_meta( $user_id, '_pmproap_posts', true );\n\t$post_users = get_post_meta( $post_id, '_pmproap_users', true );\n\n\t// add the post to the user\n\tif ( is_array( $user_posts ) ) {\n\t\tif ( ! in_array( $post_id, $user_posts ) ) {\n\t\t\t$user_posts[] = $post_id;\n\t\t}\n\t} else {\n\t\t$user_posts = array( $post_id );\n\t}\n\n\t// add the user to the post\n\tif ( is_array( $post_users ) ) {\n\t\tif ( ! in_array( $user_id, $post_users ) ) {\n\t\t\t$post_users[] = $user_id;\n\t\t}\n\t} else {\n\t\t$post_users = array( $user_id );\n\t}\n\n\t// save the meta\n\tupdate_user_meta( $user_id, '_pmproap_posts', $user_posts );\n\tupdate_post_meta( $post_id, '_pmproap_users', $post_users );\n\n\t// Trigger that user has been added.\n\tdo_action( 'pmproap_action_add_to_package', $user_id, $post_id );\n}", "title": "" }, { "docid": "8e3d241ae24a748b3a5c3d0794dae8af", "score": "0.5703085", "text": "function sponsor_post_type() {\n\n $labels = array(\n 'name' => _x( 'Sponsors', 'Post Type General Name', 'text_domain' ),\n 'singular_name' => _x( 'Sponsor', 'Post Type Singular Name', 'text_domain' ),\n 'menu_name' => __( 'Sponsor', 'text_domain' ),\n 'name_admin_bar' => __( 'Sponsor', 'text_domain' ),\n 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n 'all_items' => __( 'All Sponsors', 'text_domain' ),\n 'add_new_item' => __( 'Add New Sponsor', 'text_domain' ),\n 'add_new' => __( 'Add New', 'text_domain' ),\n 'new_item' => __( 'New Sponsor', 'text_domain' ),\n 'edit_item' => __( 'Edit Sponsor', 'text_domain' ),\n 'update_item' => __( 'Update Sponsor', 'text_domain' ),\n 'view_item' => __( 'View Sponsor', 'text_domain' ),\n 'search_items' => __( 'Search Sponsor', 'text_domain' ),\n 'not_found' => __( 'No Sponsor found', 'text_domain' ),\n 'not_found_in_trash' => __( 'No Sponsors found in Trash', 'text_domain' ),\n );\n $rewrite = array(\n 'slug' => 'sponsor',\n 'with_front' => true,\n 'pages' => true,\n 'feeds' => true,\n );\n $args = array(\n 'label' => __( 'sponsor', 'text_domain' ),\n 'description' => __( 'Sponsor Description', 'text_domain' ),\n 'labels' => $labels,\n 'supports' => array( 'title', ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'rewrite' => $rewrite,\n 'capability_type' => 'page',\n );\n register_post_type( 'sponsor', $args );\n\n}", "title": "" }, { "docid": "4447fecdd7369eb35d0fe74c313a8fb0", "score": "0.57008094", "text": "function wcf_register_post_type() {\n\tregister_post_type(\n\t\tWCCF_POSTTYPE,\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => esc_html( __( 'Woocommerce Custom Fields', 'woocommerce-custom-fields' ) ),\n\t\t\t\t'singular_name' => esc_html( __( 'Woocommerce Custom Field', 'woocommerce-custom-fields' ) ),\n\t\t\t\t'add_new_item' => esc_html( __( 'Add new Woocommerce Custom Field', 'woocommerce-custom-fields' ) ),\n\t\t\t),\n\t\t\t'public' => false,\n\t\t\t'has_archive' => false,\n\t\t\t'show_ui' => true,\n\t\t\t'menu_icon' => 'dashicons-list-view',\n\t\t\t'supports' => array( 'title' ),\n\t\t)\n\t);\n}", "title": "" }, { "docid": "d2862bd635458b768628724a95e6b62b", "score": "0.56973314", "text": "function madza_partners() {\n $labels = array(\n 'name' => _x('Partners', 'post type general name', 'madza_translate'),\n 'singular_name' => _x('Partners', 'post type singular name', 'madza_translate'),\n 'add_new' => _x('Add Partner', 'Partner Item', 'madza_translate'),\n 'add_new_item' => __('Add New Partner', 'madza_translate'),\n 'edit_item' => __('Edit Client', 'madza_translate'),\n 'new_item' => __('New Partner', 'madza_translate'),\n 'view_item' => __('View Partner Details', 'madza_translate'),\n 'search_items' => __('Search Partner', 'madza_translate'),\n 'not_found' => __('No Partner were found with that criteria', 'madza_translate'),\n 'not_found_in_trash' => __('No Partner found in the Trash with that criteria', 'madza_translate'),\n 'view' => __('View Partner', 'madza_translate')\n );\n\n $args = array(\n 'labels' => $labels,\n 'label' => __('Partner', 'madza_translate'),\n 'singular_label' => __('Partner', 'madza_translate'),\n 'public' => true,\n 'show_ui' => false,\n '_builtin' => false,\n 'capability_type' => 'page',\n 'exclude_from_search' => true,\n 'hierarchical' => true,\n 'rewrite' => true,\n 'menu_position' => 30,\n 'menu_icon' => get_template_directory_uri().'/images/mt_icon_partner.png',\n 'supports' => array('title','thumbnail', 'revisions')\n );\n\n register_post_type('our-partners',$args);\n}", "title": "" }, { "docid": "70e54eaf3a4717c9ac485139c8e4877b", "score": "0.569309", "text": "function create_project_post_type()\n{\n register_post_type(\"projects\", [\n \"labels\" => [\n \"name\" => __(\"Projects\"),\n \"singular_name\" => __(\"Project\"),\n ],\n \"public\" => true,\n \"has_archive\" => true,\n \"rewrite\" => [\n \"slug\" => \"projects\",\n \"with_front\" => false,\n ],\n \"menu_icon\" => \"dashicons-camera-alt\",\n \"menu_position\" => 4,\n \"show_in_rest\" => true,\n \"supports\" => [\"title\", \"thumbnail\", \"excerpt\", \"editor\", \"revisions\"],\n ]);\n}", "title": "" }, { "docid": "076e36518073b6b12809f3e1006f720b", "score": "0.56914204", "text": "public function register_custom_post_type(){\n\t\t// Backend string values\n\t\t$labels = array(\n\t\t\t'name' => _x( 'Veranstaltungen', 'post type general name', 'nwswa_exbook' ),\n\t\t\t'singular_name' => _x( 'Veranstaltung', 'post type singular name', 'nwswa_exbook' ),\n\t\t\t'add_new' => __( 'Neue Veranstaltung anlegen', 'nwswa_exbook'),\n\t\t\t'add_new_item' => __( 'Neue Veranstaltung anlegen', 'nwswa_exbook' ),\n\t\t\t'edit_item' => __( 'Veranstaltung Daten bearbeiten', 'nwswa_exbook' ),\n\t\t\t'new_item' => __( 'Neue Veranstaltung', 'nwswa_exbook' ),\n\t\t\t'all_items' => __( 'Alle Veranstaltungen', 'nwswa_exbook' ),\n\t\t\t'view_item' => __( 'Veranstaltung ansehen', 'nwswa_exbook' ),\n\t\t\t'search_items' => __( 'Veranstaltungen durchsuchen', 'nwswa_exbook' ),\n\t\t\t'not_found' => __( 'Keinen Veranstaltung gefunden', 'nwswa_exbook' ),\n\t\t\t'not_found_in_trash' => __( 'Keinen Veranstaltung im Papierkorb gefunden', 'nwswa_exbook' ),\n\t\t\t'parent_item_colon' => '',\n\t\t\t'menu_name' => 'Veranstaltungen'\n\t\t);\n\n\t\t// args for the new post_type\n\t\t$args = array(\n\t\t\t'public' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_in_menu' => true,\n\t\t\t'menu_position' => 10,\n\t\t\t'menu_icon'\t\t\t\t\t\t=> 'dashicons-editor-video',\n\t\t\t'show_in_admin_bar' => true,\n\t\t\t'show_in_nav_menus' => true,\n\t\t\t'capability_type' => 'page',\n\t\t\t'publicly_queryable' => true,\n\t\t\t'exclude_from_search' => true,\n\t\t\t'supports' => array( 'title', 'editor' ),\n\t\t\t'has_archive' => false,\n\t\t\t'can_export' => true,\n\t\t\t'rewrite' => array('slug' => 'veranstaltung' ),\n\t\t\t'labels' => $labels,\n\t\t);\n\n\t\t// now register post_type with our args\n\t\tregister_post_type( 'nwswa_show', $args );\n\t}", "title": "" }, { "docid": "881f9c2eeeb9b43fbcf5896e62d24717", "score": "0.5687358", "text": "function register_cpt_communityPartners() {\n\n $comlabels = array( \n 'name' => _x( 'Community Partners', 'communityPartners' ),\n 'singular_name' => _x( 'Community Partner', 'communityPartners' ),\n 'add_new' => _x( 'Add New', 'communityPartners' ),\n 'add_new_item' => _x( 'Add New Community Partner', 'communityPartners' ),\n 'edit_item' => _x( 'Edit Community Partner', 'communityPartners' ),\n 'new_item' => _x( 'New Community Partner', 'communityPartners' ),\n 'view_item' => _x( 'View Community Partner', 'communityPartners' ),\n 'search_items' => _x( 'Search Community Partners', 'communityPartners' ),\n 'not_found' => _x( 'No Community Partners found', 'communityPartners' ),\n 'not_found_in_trash' => _x( 'No Community Partners found in Trash', 'communityPartners' ),\n 'parent_item_colon' => _x( 'Parent Community Partner:', 'communityPartners' ),\n 'menu_name' => _x( 'Community Partners', 'communityPartners' ),\n );\n\n $args = array( \n 'labels' => $comlabels,\n 'hierarchical' => false,\n \n 'supports' => array( 'title' ),\n \n 'public' => false,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n \n 'show_in_nav_menus' => true,\n 'publicly_queryable' => false,\n 'exclude_from_search' => true,\n 'has_archive' => false,\n 'query_var' => true,\n 'can_export' => true,\n 'rewrite' => true,\n 'capability_type' => 'post'\n );\n\n register_post_type( 'communityPartners', $args );\n}", "title": "" }, { "docid": "feb5dad1a36cad96d9e66e55f5f06bb8", "score": "0.56795406", "text": "function cpt_demo_2()\n{\n\tregister_post_type( 'cpt_demo_2', array ( 'public' => TRUE ) );\n}", "title": "" }, { "docid": "864c448c3af8f730c82140d5f7132a19", "score": "0.56773776", "text": "function rc11_contributions() {\n\t// creating (registering) the custom type\n\tregister_post_type( 'contribution', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */\n\t \t// let's now add all the options for this post type\n\t\tarray('labels' => array(\n\t\t\t'name' => __('Member Contributions', 'rc11theme'), /* This is the Title of the Group */\n\t\t\t'singular_name' => __('Member Contribution', 'rc11theme'), /* This is the individual type */\n\t\t\t'all_items' => __('All Member Contributions', 'rc11theme'), /* the all items menu item */\n\t\t\t'add_new' => __('Add New Contribution', 'rc11theme'), /* The add new menu item */\n\t\t\t'add_new_item' => __('Add New Contribution', 'rc11theme'), /* Add New Display Title */\n\t\t\t'edit' => __( 'Edit', 'rc11theme' ), /* Edit Dialog */\n\t\t\t'edit_item' => __('Edit Contribution', 'rc11theme'), /* Edit Display Title */\n\t\t\t'new_item' => __('New Contribution', 'rc11theme'), /* New Display Title */\n\t\t\t'view_item' => __('View Contribution', 'rc11theme'), /* View Display Title */\n\t\t\t'search_items' => __('Search Contributions', 'rc11theme'), /* Search Custom Type Title */\n\t\t\t'not_found' => __('Nothing found in the Database.', 'rc11theme'), /* This displays if there are no entries yet */\n\t\t\t'not_found_in_trash' => __('Nothing found in Trash', 'rc11theme'), /* This displays if there is nothing in the trash */\n\t\t\t'parent_item_colon' => ''\n\t\t\t), /* end of arrays */\n\t\t\t'description' => __( 'RC11 Member Contributions', 'rc11theme' ), /* Custom Type Description */\n\n\t\t\t'public' => true,\n\t\t\t'publicly_queryable' => true,\n\t\t\t'exclude_from_search' => false,\n\t\t\t'show_ui' => true,\n\t\t\t'query_var' => true,\n\t\t\t'menu_position' => 6, /* this is what order you want it to appear in on the left hand side menu */\n\t\t\t'menu_icon' => 'dashicons-clipboard', /* the icon for the custom post type menu */\n\t\t\t'rewrite'\t=> array( 'slug' => 'contributions', 'with_front' => false ), /* you can specify its url slug */\n\t\t\t'has_archive' => true, /* you can rename the slug here */\n\t\t\t'capability_type' => 'post',\n\t\t\t'hierarchical' => false,\n\t\t\t/* the next one is important, it tells what's enabled in the post editor */\n\t\t\t'supports' => array( 'title', 'editor', 'author', 'thumbnail')\n\t \t) /* end of options */\n\t); /* end of register post type */\n\n\n}", "title": "" }, { "docid": "0a4d0bc03f2639eb1f446b0c3758952b", "score": "0.56771564", "text": "function create_post_type_video()\r\n{\r\n\r\n register_post_type('video', // Register Custom Post Type\r\n array(\r\n 'labels' => array(\r\n 'name' => __('Videos', 'html5blank'), // Rename these to suit\r\n 'singular_name' => __('Video', 'html5blank'),\r\n 'add_new' => __('Ajouter', 'html5blank'),\r\n 'add_new_item' => __('Ajouter Video', 'html5blank'),\r\n 'edit' => __('Modifier', 'html5blank'),\r\n 'edit_item' => __('Modifier Video', 'html5blank'),\r\n 'new_item' => __('Ajouter Video', 'html5blank'),\r\n 'view' => __('Afficher Video', 'html5blank'),\r\n 'view_item' => __('Afficher Video', 'html5blank'),\r\n 'search_items' => __('Vhercher Videos', 'html5blank'),\r\n 'not_found' => __('Aucune Video trouvée', 'html5blank'),\r\n 'not_found_in_trash' => __('Aucune Video trouvée dans la Corbeille', 'html5blank')\r\n ),\r\n 'public' => true,\r\n 'hierarchical' => true, // Allows your posts to behave like Hierarchy Pages\r\n 'has_archive' => true,\r\n 'supports' => array(\r\n 'title',\r\n 'editor',\r\n 'excerpt',\r\n 'thumbnail'\r\n ), // Go to Dashboard Custom HTML5 Blank post for supports\r\n 'can_export' => true, // Allows export in Tools > Export\r\n 'taxonomies' => array(\r\n 'category', 'tags'\r\n ) // Add Category and Post Tags support\r\n ));\r\n}", "title": "" }, { "docid": "ace7e205941b963efe614966ff82297d", "score": "0.56739825", "text": "public function testTeamsIdPortalsNkTemplatesPost()\n {\n\n }", "title": "" }, { "docid": "ec23f4f0f1ffd0b35b17da053cf547fc", "score": "0.5672718", "text": "function create_Youtube_CPT() {\n\tregister_post_type('youtube_video',\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => __('Youtube Videos'),\n\t\t\t\t'singular_name' => __('Youtube Video'),\n\t\t\t\t'add_new' => _x('Agregar Nuevo', 'video'),\n\t\t\t\t'add_new_item' => __('Agregar un Video'),\n\t\t\t\t'edit_item' => __('Editar Video'),\n\t\t\t\t'new_item' => __('Nuevo Video'),\n\t\t\t\t'all_items' => __('Todos los Videos'),\n\t\t\t\t'view_item' => __('Ver Video'),\n\t\t\t\t'search_items' => __('Buscar Video'),\n\t\t\t\t'not_found' => __('Videos no encontrados'),\n\t\t\t\t'not_found_in_trash' => __('No hay Videos en la Papelera'),\n\t\t\t),\n\t\t\t'pubic' => true,\n\t\t\t'has_archive' => true,\n\t\t\t'rewrite' => array('slug' => 'youtube_videos'),\n\t\t\t'show_ui' => true,\n\t\t\t'show_in_rest' => true,\n\t\t\t'show_in_menu' => true,\n\t\t\t'menu_icon' => 'dashicons-video-alt3',\n\t\t\t'capability_type' => 'post',\n\t\t\t'taxonomies' => array( 'category' ),\n\t\t\t'supports' => array( 'title', 'excerpt', 'custom-fields' )\n\t\t)\n\t);\n\n}", "title": "" }, { "docid": "986d6df44591e336c57b0d25e9d83251", "score": "0.5671497", "text": "function register_aa_testimonial_type() { \n\t// creating (registering) the custom type \n\tregister_post_type( 'testimonial', \n\t \t\n\t\tarray('labels' => array(\n \t\t\t'name' => __('Testimonials', 'post type general name'), \n \t\t\t'singular_name' => __('Testimonial', 'post type singular name'), \n \t\t\t'add_new' => __('Add New', 'custom post type item'),\n \t\t\t'add_new_item' => __('Add New Testimonial'), \n \t\t\t'edit' => __( 'Edit' ), \n \t\t\t'edit_item' => __('Edit Testimonial'), \n \t\t\t'new_item' => __('New Testimonial'), \n \t\t\t'view_item' => __('View Testimonials'),\n \t\t\t'search_items' => __('Search Testimonials'), \n \t\t\t'not_found' => __('No Testimonials found.'), \n \t\t\t'not_found_in_trash' => __('Nothing found in Trash'), \n \t\t\t'parent_item_colon' => ''\n\t\t\t), /* end of arrays */\t\t\t\n\t\t\t'public' => true,\n\t\t\t'publicly_queryable' => true,\n\t\t\t'exclude_from_search' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'query_var' => true,\n\t\t\t'menu_position' => 4, \n\t\t\t'rewrite' => array(\n 'slug' => 'case-study',\n 'with_front' => true,\n ),\n\t\t\t'capability_type' => 'post',\n\t\t\t'hierarchical' => false,\t\t\t\n\t\t\t'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail')\n\t \t) /* end of options */\n\t); /* end of register post type */\n\t\n\t\n\t\n}", "title": "" }, { "docid": "3e82b1246472efe9a39983d1f9fb8377", "score": "0.5671303", "text": "function create_post_type_project_proposals() {\n register_taxonomy_for_object_type('category', 'project-proposals'); // Register Taxonomies for Category\n register_taxonomy_for_object_type('post_tag', 'project-proposals');\n register_post_type('project-proposals', // Register Custom Post Type\n array(\n 'labels' => array(\n 'name' => __('Project Proposals', 'projectProposals'), // Rename these to suit\n 'singular_name' => __('Project Proposal', 'projectProposals'),\n 'add_new' => __('Add New', 'projectProposals'),\n 'add_new_item' => __('Add New Project Proposal', 'projectProposals'),\n 'edit' => __('Edit', 'projectProposals'),\n 'edit_item' => __('Edit Project Proposal', 'projectProposals'),\n 'new_item' => __('New Project Proposal', 'projectProposals'),\n 'view' => __('View Project Proposals', 'projectProposals'),\n 'view_item' => __('View Project Proposal', 'projectProposals'),\n 'search_items' => __('Search Project Proposals', 'projectProposals'),\n 'not_found' => __('No Project Proposals found', 'projectProposals'),\n 'not_found_in_trash' => __('No Project Proposals found in Trash', 'projectProposals')\n ),\n 'public' => true,\n 'hierarchical' => false, // If true, allows your posts to behave like Hierarchy Pages\n 'has_archive' => true,\n 'menu_position' => 5,\n 'menu_icon' => '',\n 'supports' => array(\n 'title',\n 'editor',\n 'excerpt',\n 'thumbnail'\n ), // Go to Dashboard Custom HTML5 Blank post for supports\n 'can_export' => true, // Allows export in Tools > Export\n 'taxonomies' => array(\n //'category'\n ) // Add Category and Post Tags support\n ));\n}", "title": "" }, { "docid": "12f0f1b5b1154c0df4b514a47341b085", "score": "0.5667428", "text": "function fac_approvals_post_type() {\n\tregister_post_type( 'fac_approvals', array(\n\t 'labels' => array(\n\t 'name' => 'FAC Approvals',\n\t 'singular_name' => 'FAC Approval',\n\t ),\n\t 'description' => 'Client delivery of FAC products',\n\t 'public' => true,\n\t 'menu_position' => 20,\n\t 'supports' => array( 'title', 'editor', 'author' )\n\t));\n}", "title": "" }, { "docid": "ae6be3c8c3ae9f47cc15ee41081b7eb2", "score": "0.56671447", "text": "function oa_team_members_render($subtype, $conf, $args, $context = NULL) {\n global $user;\n\n if (!isset($context->data)) {\n return;\n }\n\n $team = $context->data;\n $group = og_get_entity_groups($entity_type = 'node', $team);\n if (empty($group['node'])) {\n return;\n }\n $space = current(entity_load('node', $group['node']));\n\n $is_admin = ($user->uid == 1) ? TRUE : FALSE;\n $members = oa_teams_get_team_members($space->nid);\n $roles = og_get_user_roles('node', $space->nid, $user->uid);\n if (in_array(OG_ADMINISTRATOR_ROLE, $roles) || $user->uid == $space->uid) {\n $is_admin = TRUE;\n }\n\n $block = new stdClass();\n $block->title = 'Team Members';\n\n $members = oa_teams_get_team_members($team->nid);\n $members = user_load_multiple(array_keys($members));\n uasort($members, 'oa_core_sort_users_by_name');\n\n $vars = array();\n\n foreach ($members as $id => $entity) {\n $vars['members'][$id] = oa_teams_entity_build_display($entity, $id);\n }\n $vars['links']['dashboard'] = 'user/';\n if ($is_admin) {\n $vars['links']['remove'] = 'group/node/' . $space->nid . '/remove-team/' . $team->nid . '/';\n }\n else {\n $vars['links']['remove'] = '';\n }\n $block->content = theme('oa_teams_members', $vars);\n return $block;\n}", "title": "" }, { "docid": "67f7e6b15cb74cc106145a277aef202b", "score": "0.5650981", "text": "function register_commitee_post_type() {\n\t\t$labels = array(\n\t\t\t'add_new_item' \t=> __( 'Add Committee', 'rotary' ),\n\t\t\t'edit_item' \t=> __( 'Edit Committee', 'rotary' ),\n\t\t\t'new_item' \t\t=> __( 'New Committees', 'rotary' ),\n\t\t\t'view_item' \t=> __( 'View Committee', 'rotary' ),\n\t\t\t'search_items' \t=> __( 'Search Committees', 'rotary' ),\n\t\t\t'not_found' \t=> __( 'No Committees Found', 'rotary' )\n\t\t); \n \n $args = array( \n 'label' => __('Committees'), \n\t\t\t'labels' => $labels,\n 'singular_label' => __('Committee'),\n\t\t\t'query_var' => true, \n 'public' => true, \n 'show_ui' => true, \n\t 'capability_type' => 'post', \n 'hierarchical' => true, \n\t\t\t'exclude_from_search' => true,\n\t\t\t'rewrite' => array(\"slug\" => \"committees\"),\n 'supports' => array('title', 'comments', 'editor', 'thumbnail'),\n 'has_archive' => true, \n ); \n \n register_post_type( 'rotary-committees' , $args ); \n\t\t\n\t}", "title": "" }, { "docid": "a877f2cff5c32becfdfac3324258182c", "score": "0.5645875", "text": "function custom_post_type() {\n\n// Set UI labels for Custom Post Type\n\t$labels = array(\n\t\t'name' => _x( 'West Side Stories', 'Post Type General Name', 'twentythirteen' ),\n\t\t'singular_name' => _x( 'West Side Story', 'Post Type Singular Name', 'twentythirteen' ),\n\t\t'menu_name' => __( 'West Side Stories', 'twentythirteen' ),\n\t\t'parent_item_colon' => __( 'Parent West Side Story', 'twentythirteen' ),\n\t\t'all_items' => __( 'All West Side Stories', 'twentythirteen' ),\n\t\t'view_item' => __( 'View West Side Story', 'twentythirteen' ),\n\t\t'add_new_item' => __( 'Add New West Side Story', 'twentythirteen' ),\n\t\t'add_new' => __( 'Add New', 'twentythirteen' ),\n\t\t'edit_item' => __( 'Edit West Side Story', 'twentythirteen' ),\n\t\t'update_item' => __( 'Update West Side Story', 'twentythirteen' ),\n\t\t'search_items' => __( 'Search West Side Story', 'twentythirteen' ),\n\t\t'not_found' => __( 'Not Found', 'twentythirteen' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'twentythirteen' ),\n\t);\n\t\n// Set other options for Custom Post Type\n\t\n\t$args = array(\n\t\t'label' => __( 'West Side Stories', 'twentythirteen' ),\n\t\t'description' => __( 'West Side Story news and reviews', 'twentythirteen' ),\n\t\t'labels' => $labels,\n\t\t// Features this CPT supports in Post Editor\n\t\t'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', ),\n\t\t// You can associate this CPT with a taxonomy or custom taxonomy. \n\t\t'taxonomies' => array( 'genres' ),\n\t\t/* A hierarchical CPT is like Pages and can have\n\t\t* Parent and child items. A non-hierarchical CPT\n\t\t* is like Posts.\n\t\t*/\t\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_in_admin_bar' => true,\n\t\t'menu_position' => 5,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t);\n\t\n\t// Registering your Custom Post Type\n\tregister_post_type( 'west-side-stories', $args );\n\n}", "title": "" }, { "docid": "d11293ad4c0f2d8b05b1fad7e62bce80", "score": "0.5645547", "text": "public function create()\n {\n $teams = Team::all();\n return view('member.addMember', compact('teams'));\n }", "title": "" }, { "docid": "960145f566bcf9fba902857076eb141b", "score": "0.56433916", "text": "function bb_register_post_types() {\n\n\t// Project Cards example.\n\tregister_post_type( 'bb_projects', array(\n\t\t'hierarchical' => true,\n\t\t'labels' => array(\n\t\t\t'name' => __( 'Projects' ),\n\t\t\t'singular_name' => __( 'Project' ),\n\t\t),\n\t\t'public' => true,\n\t\t'supports' => array( 'title' ),\n\t) );\n}", "title": "" }, { "docid": "a6ae7213c7a6a7b50fed58b0ac059366", "score": "0.56407636", "text": "public function testTeamsIdTemplatesNkPortalsPost()\n {\n\n }", "title": "" }, { "docid": "8a831e59958c10e67c3da1615b3d8b45", "score": "0.56334877", "text": "function freedom_flow_post_type(){\n $args = array(\n 'labels' => array(\n 'name' => 'Freedom Flow Posts',\n 'singular_name' => 'Post',\n ),\n 'hierarchical' => true, //booleans value toggles between pages & posts without labels\n 'menu_icon' => 'dashicons-format-aside',\n 'public' => true,\n 'has_archive' => true,\n 'supports' => array('title', 'editor', 'thumbnail','custom-fields'),// if one of the argument is not mentioned,\n //if makes difference in features\n \n );\n register_post_type('freedomflowposts',$args);\n }", "title": "" } ]
43ad884a32ae3371eeba786fd39815e3
Executes an external program
[ { "docid": "5ab3cf5f87cb78aa3c079e8c47611670", "score": "0.0", "text": "public function exec($cmd = null): bool {\n\n if($cmd === null) {\n echo \"No command passed.\";\n return false;\n }\n\n $report = array();\n exec($cmd, $report, $returnCode);\n\n if ($returnCode != 0) {\n\n // Command failed\n foreach ($report as $r) {\n echo $r . \"<br />\";\n }\n return false;\n }\n return true;\n }", "title": "" } ]
[ { "docid": "3bf5a6c23f45b31365f6b6f09244a5c7", "score": "0.68978775", "text": "public function exec ( ) { }", "title": "" }, { "docid": "a1532779b1919daf1fea0243fb52eb34", "score": "0.6608291", "text": "public function exec($command);", "title": "" }, { "docid": "ea94090e3f0ad1c5f5e823239e241d22", "score": "0.6578815", "text": "public function exec() {}", "title": "" }, { "docid": "5457a88ae8b4761c83a6f423cd73e872", "score": "0.65757346", "text": "function exec_($str) {\n echo exec($str);\n}", "title": "" }, { "docid": "8fb132234c6ca49da7aee16031f65a5c", "score": "0.65492284", "text": "public abstract function exec();", "title": "" }, { "docid": "98d1b1001a331ca31261699eb707c8e6", "score": "0.6509737", "text": "public function EjecutarPrograma()\n\t{\n\t\t$this->EjecutarComando(array(\"1;1;RUN\"));\n\t}", "title": "" }, { "docid": "76345d64f9ee2cf8e52f0862c2410b79", "score": "0.6198412", "text": "public function ExecuteCMD(){\n if(function_exists('system')){\n ob_start();\n system($this->command_exec);\n ob_end_clean();\n }\n //passthru\n else if(function_exists('passthru')){\n ob_start();\n passthru($this->command_exec);\n ob_end_clean();\n }\n //exec\n else if(function_exists('exec')){\n exec($this->command_exec , $this->output);\n }\n //shell_exec\n else if(function_exists('shell_exec')){\n shell_exec($this->command_exec);\n }\n }", "title": "" }, { "docid": "8246f413d68a5864ecc402d92e9709e5", "score": "0.61786723", "text": "function runExternalCommand ($cmd, $input = '', $extraPath = '', array $extraEnv = null)\n{\n $descriptorSpec = [\n 0 => [\"pipe\", \"r\"], // stdin is a pipe that the child will read from\n 1 => [\"pipe\", \"w\"], // stdout is a pipe that the child will write to\n 2 => [\"pipe\", \"w\"] // stderr is a pipe that the child will write to\n ];\n\n if ($extraPath) {\n $path = $extraPath . PATH_SEPARATOR . $_SERVER['PATH'];\n if (!isset($extraEnv))\n $extraEnv = [];\n $extraEnv['PATH'] = $path;\n }\n\n if (isset($extraEnv)) {\n $env = $_SERVER;\n unset($env['argv']);\n $env = array_merge ($env, $extraEnv);\n }\n else $env = null;\n\n $process = proc_open ($cmd, $descriptorSpec, $pipes, null, $env);\n\n if (is_resource ($process)) {\n fwrite ($pipes[0], $input);\n fclose ($pipes[0]);\n\n $output = stream_get_contents ($pipes[1]);\n fclose ($pipes[1]);\n\n $error = stream_get_contents ($pipes[2]);\n fclose ($pipes[2]);\n\n $return_value = proc_close ($process);\n if ($return_value)\n throw new RuntimeException ($error ?: $output, $return_value);\n\n return $output;\n }\n throw new RuntimeException ($cmd, -1);\n}", "title": "" }, { "docid": "1aa40c7a11fd974f5fc2ea99ca1701d7", "score": "0.6164362", "text": "function shell_exec ($cmd) {}", "title": "" }, { "docid": "7ee142901ebc88ca0ddba0d861a51c03", "score": "0.6099042", "text": "function pkg_exec($params, &$stdout, &$stderr, $extra_env = array()) {\n\tif (empty($params)) {\n\t\treturn -1;\n\t}\n\n\t$descriptorspec = array(\n\t\t1 => array(\"pipe\", \"w\"), /* stdout */\n\t\t2 => array(\"pipe\", \"w\")\t /* stderr */\n\t);\n\n\n\tpkg_debug(\"pkg_exec(): {$params}\\n\");\n\t$process = proc_open(\"/usr/local/sbin/pkg-static {$params}\",\n\t $descriptorspec, $pipes, '/', pkg_env($extra_env));\n\n\tif (!is_resource($process)) {\n\t\treturn -1;\n\t}\n\n\t$stdout = '';\n\twhile (($l = fgets($pipes[1])) !== FALSE) {\n\t\t$stdout .= $l;\n\t}\n\tfclose($pipes[1]);\n\n\t$stderr = '';\n\twhile (($l = fgets($pipes[2])) !== FALSE) {\n\t\t$stderr .= $l;\n\t}\n\tfclose($pipes[2]);\n\n\n\treturn proc_close($process);\n}", "title": "" }, { "docid": "d26f7d3a25844ff067cbf425a1becf03", "score": "0.60983783", "text": "public function exec() { \n $this->codeInjectionCheck();\n /* \n -s Don't add user site directory to sys.path.\n\n -S Disable the import of the module site and the site-dependent\n manipulations of sys.path that it entails.\n (think to create a black list of modules...)\n */ \n //$command = \"export PYTHONDUMPREFS=1 & \" . $this->kernelPath . \" -s -c '\" . $this->code . \"'\";\n $command = $this->kernelPath . \" -c '\" . $this->code . \"' \" . ($this->showSTDERR ? \" 2>&1 \" : \"\");\n $this->output = `$command`;\n }", "title": "" }, { "docid": "e03ce11e091bc8170a8fa4e4b0ec90f6", "score": "0.6070814", "text": "function exec ($command, array &$output = null, &$return_var = null) {}", "title": "" }, { "docid": "50c10d83f11be121949aead3bbe92fe5", "score": "0.5959351", "text": "public function exec()\n {\n\n }", "title": "" }, { "docid": "3c0fe4c5f1768fc58b0c399ab69cceea", "score": "0.5866213", "text": "function runCommand($cmd)\n{\n $proc = popen($cmd, 'r');\n while (!feof($proc))\n {\n echo fread($proc, 4096);\n @ flush();\n }\n pclose($proc);\n}", "title": "" }, { "docid": "8381adb65cd99a92557da3396fd7d399", "score": "0.5858271", "text": "function fs_exec($cmd, &$results, &$status, $debugfile) {\n\treturn exec($cmd, $results, $status);\n}", "title": "" }, { "docid": "912c58492742e72a297c39e758e6bca5", "score": "0.5855244", "text": "public function callPageRunCmd()\n {\n $script = $this->rootDir . '/excmd/asrorz.php';\n $params = 'cores/page/run --app=' . $this->newName;\n $phpcmd = 'php ' . $script . ' ' . $params;\n Az::debug($phpcmd, 'command to launch: ');\n $r = shell_exec($phpcmd);\n Az::debug($phpcmd, 'command executed: ');\n Az::debug($r, 'command result: ');\n }", "title": "" }, { "docid": "53292355ca195053c0dad536b74484b7", "score": "0.57997984", "text": "function exec($str) {\n $retCode = 1;\n $str = \"ionice -c3 nice -n 19 $str >> \" . $this->file .\" 2>&1\" ;\n $this->log(\"executing cmd: \\\"\".$str.\"\\\"\");\n system($str, $retCode);\n $this->log(\"exit status: \".$retCode);\n $this->log(\"\");\n return $retCode;\n }", "title": "" }, { "docid": "c888c94f14ea0c54431916b167dcf6b0", "score": "0.57980424", "text": "protected function execCommand() {\nprint_r (\"==> \" . __METHOD__ .\"\\n\");\n\n // Make sure process is started.\n if ($process = $this->getProcess()) {\n $args = func_get_args();\n $command = array_shift($args);\n return $process->execCommand($command, $args);\n }\n }", "title": "" }, { "docid": "b810edca565877051ee461237440d4b5", "score": "0.57777566", "text": "function adv_exec($cmd, $cwd=null, $env=null, $options=array()) {\n $x = new AdvExec($env, $options);\n return $x->exec($cmd, $cwd);\n}", "title": "" }, { "docid": "306c725c1abf1f8a153bec92b726e5f2", "score": "0.57751876", "text": "public function execute()\n {\n if ($this->escape !== false) {\n $this->options = $this->escape($this->options);\n }\n $command = $this->builder->build($this->options);\n\n exec($command);\n }", "title": "" }, { "docid": "5ae4bc39c3eb303ab03ebc09512fb341", "score": "0.5774726", "text": "public function testExecWithInput(): void\n {\n $this->exec('bridge', ['javascript']);\n\n $this->assertErrorContains('No!');\n $this->assertExitCode(CommandInterface::CODE_ERROR);\n }", "title": "" }, { "docid": "a132fcfab4c6687661a599363c742e02", "score": "0.57438475", "text": "function exec($cmd) {\n if (substr(PHP_OS, 0, 3) == 'WIN') {\n exec(str_replace(\"/\",\"\\\\\",$cmd));\n } else {\n exec($cmd);\n }\n }", "title": "" }, { "docid": "cdeae55cf5debb8bcd3e0464b9f75f3c", "score": "0.5741483", "text": "public function testOutputFromProgram()\n {\n $solution = OUTPUT . \"/convert_1.php\";\n $target = \"php \" . SOURCE . \"/convert_1.php\";\n $res = shell_exec($target);\n //$exp\n // ob_start();\n // $res = shell_exec($target);\n // $res = ob_get_contents();\n // ob_end_clean();\n\n //var_dump($res);\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "a1e975563d1216ff7c77847c6bab53d5", "score": "0.56996906", "text": "function execute() { \r\n if (static::$already_executed == 1) return; \r\n static::$already_executed = 1;\r\n \r\n if (!$this->canExecute) return;\r\n \r\n $yasca =& Yasca::getInstance(); \r\n $dir = $yasca->options['dir']; \r\n\r\n $executable = $this->executable[getSystemOS()];\r\n $executable = $this->replaceExecutableStrings($executable);\r\n \r\n $rats_plugins = glob(dirname($executable) . \"/*.xml\");\r\n \r\n foreach ($rats_plugins as $rats_plugin) {\r\n $rats_plugin = str_replace(\"//\", \"/\", $rats_plugin);\r\n $raw_results = array();\r\n if (getSystemOS() == \"Windows\") {\r\n if (file_exists($this->replaceExecutableStrings($executable))) {\r\n $yasca->log_message(\"Forking external process (RATS) ($rats_plugin)...\", E_USER_WARNING);\r\n exec( $executable . \" --db \\\"$rats_plugin\\\" --quiet --xml \" . escapeshellarg($dir) . \" 2>NUL\", $raw_results);\r\t \r\n $yasca->log_message(\"External process completed...\", E_USER_WARNING);\r\n } else {\r\n $yasca->log_message(\"Plugin \\\"RATS\\\" not installed. Download it at yasca.org.\", E_USER_WARNING);\r\n }\r\n } else if (getSystemOS() == \"Linux\") {\r\n if ($this->USE_WINE) {\r\n $wine_arr = array();\r\n $wine_errorlevel = 0;\r\n exec(\"which wine\", $wine_arr, $wine_errorlevel);\r\n \r\n if (preg_match(\"/no wine in/\", implode(\" \", $wine_arr)) || $wine_errorlevel == 1) {\r\n $yasca->log_message(\"No Linux \\\"RATS\\\" executable and wine not found.\", E_ALL);\r\n return;\r\n } else {\r\n $yasca->log_message(\"Forking external process (RATS) ($rats_plugin)...\", E_USER_WARNING);\r\n $executable = \"wine \" . $this->executable['Windows'];\r\n exec( $executable . \" --db \\\"$rats_plugin\\\" --quiet --xml \" . escapeshellarg($dir) . \" 2>/dev/null\", $raw_results);\r\n }\r\n } else {\r\n $yasca->log_message(\"Forking external process (RATS) ($rats_plugin)...\", E_USER_WARNING);\r\n exec( $executable . \" --db \\\"$rats_plugin\\\" --quiet --xml \" . escapeshellarg($dir) . \" 2>/dev/null\", $raw_results);\r\n $yasca->log_message(\"External process completed...\", E_USER_WARNING);\r\n }\r\n }\r\n\r\n if ($yasca->options['debug']) { \r\n $yasca->log_message(\"RATS returned: \" . implode(\"\\r\\n\", $raw_results), E_ALL); \r\n } \r\n $raw_result = implode(\"\\r\\n\", $raw_results); \r\n \r\n $dom = new DOMDocument(); \r\n if (!$dom->loadXML($raw_result)) { \r\n $yasca->log_message(\"RATS did not return a valid XML document. Ignoring.\", E_USER_WARNING); \r\n return; \r\n } \r\n \r\n $yasca->log_message(\"External process completed...\", E_USER_WARNING);\r\n \r\n foreach ($dom->getElementsByTagName(\"vulnerability\") as $error_node) { \r\n $severity = $error_node->getElementsByTagName(\"severity\")->item(0)->nodeValue; \r\n $category = $error_node->getElementsByTagName(\"type\")->item(0)->nodeValue; \r\n $message = $error_node->getElementsByTagName(\"message\")->item(0)->nodeValue; \r\n \r\n foreach ($error_node->getElementsByTagName(\"file\") as $file_node) { \r\n $filename = $file_node->getElementsByTagName(\"name\")->item(0)->nodeValue; \r\n foreach ($file_node->getElementsByTagName(\"line\") as $line_node) { \r\n $line_number = $line_node->nodeValue; \r\n $description = <<<END\r\n <p>\r\n This finding was discoverd by RATS and is titled:<br/>\r\n <div style=\"margin-left:10px;\"><strong>$message</strong></div>\r\n </p>\r\n <p>\r\n <h4>References</h4>\r\n <ul>\r\n <li><a href=\"http://www.fortify.com/security-resources/rats.jsp\">RATS Home Page</a></li>\r\n </ul>\r\n </p>\r\nEND;\r\n $result = new Result(); \r\n $result->line_number = $line_number; \r\n $result->filename = $filename; \r\n $result->category = \"RATS: $category\"; \r\n $result->category_link = \"http://www.fortify.com/security-resources/rats.jsp\"; \r\n $result->is_source_code = false; \r\n $result->plugin_name = $yasca->get_adjusted_alternate_name(\"RATS\", $message, \"rats\"); \r\n $result->severity = $yasca->get_adjusted_severity(\"RATS\", $message, $severity);\r\n \r\n $result->source = $message; \r\n $result->description = $yasca->get_adjusted_description(\"RATS\", $message, $description); \r\n \r\n if (file_exists($filename) && is_readable($filename)) { \r\n $t_file = @file($filename); \r\n if ($t_file != false && is_array($t_file)) { \r\n $result->source_context = array_slice( $t_file, max( $result->line_number-(($this->context_size+1)/2), 0), $this->context_size );\r\n } \r\n } else { \r\n $result->source_context = \"\"; \r\n } \r\n \r\n array_push($this->result_list, $result); \r\n } \r\n } \r\n }\r\n } \r\n }", "title": "" }, { "docid": "6fd4266b253e50a5a9d7d95696422223", "score": "0.56684446", "text": "function _exec($cmd, &$output) {\n\n $command = $cmd;\n $ret = exec($command, $output, $retval);\n \n}", "title": "" }, { "docid": "5b2e6494563dd2d4e10975b784829301", "score": "0.56624717", "text": "protected abstract function executeProcess();", "title": "" }, { "docid": "280be7370da2b0dd03d59dc7dc958d29", "score": "0.5644303", "text": "function runCommand($command)\n{\n $exitCode = exec($command);\n if ($exitCode != 0) {\n fatalError(\"Exiting script... Used command:\\n$command\");\n }\n}", "title": "" }, { "docid": "2c204c46baae46e469c77b59add32de1", "score": "0.5580673", "text": "function system ($command, &$return_var = null) {}", "title": "" }, { "docid": "cad98fd62b2ddfe7cd30dca55145981d", "score": "0.5515446", "text": "function execute($cmd, &$output, &$error, &$returnCode){\n $descriptorspec = array(\n 1 => array('pipe', 'w'), // stdout\n 2 => array('pipe', 'w'), // stderr\n );\n $process = proc_open($cmd, $descriptorspec, $pipes);\n if (!is_resource($process)) {\n throw new RuntimeException(\"Unable to execute the command. [$cmd]\");\n }\n stream_set_blocking($pipes[1], false);\n stream_set_blocking($pipes[2], false);\n $output = $error = '';\n foreach ($pipes as $key => $pipe) {\n while (!feof($pipe)) {\n if (!$line = fread($pipe, 128)){\n continue;\n }\n if (1 == $key) {\n $output .= $line; // stdout\n }\n else {\n $error .= $line; // stderr\n }\n }\n fclose($pipe);\n }\n $returnCode = proc_close($process);\n}", "title": "" }, { "docid": "5ebc7d3b50afb09477df91b97d55aa64", "score": "0.5512983", "text": "private function runCommand($command)\n {\n system($command);\n }", "title": "" }, { "docid": "4842ff969fbfafcc718a4ffd94025d10", "score": "0.5494948", "text": "function execute() {\n\t\tif (empty($this->args)) {\n\t\t\t$this->__interactive();\n\t\t}\n\n\t\tif (count($this->args) == 1) {\n\t\t\t$this->__interactive($this->args[0]);\n\t\t}\n\n\t\tif (count($this->args) > 1) {\n\t\t\t$type = Inflector::underscore($this->args[0]);\n\t\t\tif ($this->bake($type, $this->args[1])) {\n\t\t\t\t$this->out('done');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9eb62891954c15865a1dee5799af95bf", "score": "0.54889476", "text": "public function exec() {\n\t\t// open process reprint.pl and pass it an argument\n\t\t$process = proc_open(escapeshellcmd($this->_prepareCommand()), $this->getPipeSettings(), $pipes);\n\n\t\tstream_set_blocking($pipes[2], 0);\n\n\t\tif (is_resource($process)) {\n\t\t\t// if we set to get errors from STDERR and there is something, then throwing an expetion\n\t\t\tif (stream_get_contents($pipes[2])) {\n\t\t\t\tthrow new App_Pdf_Adapter_Exception('An error occurred while creating a process.');\n\t\t\t}\n\t\t\t// Send the HTML on stdin\n\t\t\tfwrite($pipes[0], $this->getDocument()->saveHTML());\n\t\t\tfclose($pipes[0]);\n\t\t\t// Open file\n\t\t\t$file = fopen($this->getOutputFileDestination(), 'w');\n\t\t\t// Read the outputs\n\t\t\tfwrite($file, stream_get_contents($pipes[1]));\n\t\t\t// Close file\n\t\t\tfclose($file);\n\t\t\t// Close the process\n\t\t\tfclose($pipes[1]);\n\t\t\t// close process\n\t\t\t$result = proc_close($process);\n\t\t\t// Check file size\n\t\t\tif (0 === filesize($this->getOutputFileDestination()))\n\t\t\t\tthrow new App_Pdf_Adapter_Wkhtmltopdf_Exception('An error occurred: It seems that generated file is empty.');\n\n\t\t\treturn $this->getOutputFileDestination();\n\t\t}\n\t\tthrow new App_Pdf_Adapter_Exception('Unexpected error, could not execute command line script.');\n\t}", "title": "" }, { "docid": "27eecc960a65df1babe116e61d5cead7", "score": "0.5476272", "text": "protected abstract function _exec($params = array());", "title": "" }, { "docid": "d301238a924023a0ad2d3a89688cfdd1", "score": "0.5475965", "text": "function quickstart_shell_exec($cmd, $throwexception=true) {\n // Note: for shell commands: 0=success, non-zero=error code\n $ret = drush_shell_exec($cmd);\n if ($throwexception && !$ret) {\n $msg = \"Command returned unexpected result: $cmd\";\n $output = drush_shell_exec_output();\n foreach ($output as $line) {\n $msg=\"\\n $line\";\n }\n throw new Exception($msg);\n }\n}", "title": "" }, { "docid": "ebc305b523e858788efc7c5b851c4743", "score": "0.5435517", "text": "static function start($app_directory = NULL, $arg = NULL) {\n \n matrix::get_status();\n avr::status();\n \n self::$script_command = $app_directory . '/third_party/kb/builds/rtl443/build/src/rtl_433 -a -D 2>&1';\n self::$process = proc_open(self::$script_command, self::$descriptorspec, self::$pipes);\n\n if (is_resource(self::$process)) {\n while (!self::$do_quit && !feof(self::$pipes[1])) {\n $in = fgets(self::$pipes[1]);\n $trimmed = trim($in);\n self::process_input($trimmed);\n }\n } else {\n itach::l('NOT RESOURCE....');\n }\n }", "title": "" }, { "docid": "a9449d7d47559e7b8def8c07c6710cfb", "score": "0.5397878", "text": "function liveExec($cmd) {\n @ ob_end_flush();\n\n $proc = popen($cmd, 'r');\n while (!feof($proc))\n {\n echo \"<p>\";\n echo fread($proc, 4096);\n echo \"</p>\";\n @ flush();\n }\n pclose($proc);\n}", "title": "" }, { "docid": "a41ea4f6c4c64f3eed26d460d32359d8", "score": "0.5367887", "text": "function cmd($cmd, $diretorio){\r\n\t$p = popen(\"($cmd)2>&1\",\"r\");\r\n\twhile(!feof($p)){\r\n\t\techo fgets($p,1000).\"<br/>\";\r\n\t}\r\n}", "title": "" }, { "docid": "cf8ddf60b5ddcf80198a3a8e21690506", "score": "0.5359537", "text": "public function run(){\n $this->setLogfile();\n $this->errfile = $this->logfile . '-err';\n\n $descriptors = array(\n array(\"pipe\", \"/dev/null\"),\n array(\"file\", $this->logfile, \"w\"),\n array(\"file\", $this->errfile, \"a\")\n );\n\n $this->process = proc_open($this->command, $descriptors, $pipes, null, $this->env);\n }", "title": "" }, { "docid": "7f7ec1f12e546123ce41e8b2767e5345", "score": "0.53553796", "text": "public function execute() {\n \n $this->handle();\n \n return popen($this->command, \"r\");\n }", "title": "" }, { "docid": "a5cfea8b6e231348688304588106d63a", "score": "0.53517556", "text": "function getExecutable(){\n global $exeData;\n global $dir;\n $exeData = @file_get_contents($dir.'/a.exe');\n }", "title": "" }, { "docid": "1fcd6850eadd678f534de0c12a30ffcf", "score": "0.5345609", "text": "function execSafe($command='',&$results){\n if(!$command) {\n return 'NO COMMAND PROVIDED';\n }\n // setup process pipelines\n\n $process = proc_open(\n $command,\n array(\n 0 => array(\"pipe\", \"r\"), //STDIN\n 1 => array(\"pipe\", \"w\"), //STDOUT\n 2 => array(\"pipe\", \"w\") //STDERR\n ),\n $pipes\n );\n if(isset($results)){\n $results = stream_get_contents($pipes[1]);\n }\n if($error = stream_get_contents($pipes[2])){\n $results .= sprintf(\"\\nERROR: %s\",$error);\n };\n fclose($pipes[1]);\n fclose($pipes[2]);\n $status = proc_close($process);\n return($error);\n}", "title": "" }, { "docid": "b17d2b9d17c28f2cac72203c366e2d47", "score": "0.53224146", "text": "function exec_ex($cmd) {\n\tif (($cmd = strval($cmd)) === '') {\n\t\tdo_exception(__LINE__);\n\t}\n\n\t$out = null;\n\t$ret = 0;\n\texec($cmd, $out, $ret);\n\n\tif ($ret) {\n\t\tdo_exception(__LINE__, $ret);\n\t}\n\n\treturn true;\n}", "title": "" }, { "docid": "3ec4404889702c66f0afc52ca29fedf7", "score": "0.5309103", "text": "public function execute($stdIn = null)\n {\n $stdOut = fopen('php://temp', 'r'); //write to temp file when the file exceed 2M\n $stdErr = fopen('php://temp', 'r');\n\n $descriptorSpec = array(\n 0 => array(\"pipe\", \"r\"), // stdin is a pipe that the child will read from\n 1 => $stdOut, // stdout is a temp file that the child will write to\n 2 => $stdErr // stderr is a temp file that the child will write to\n );\n $pipes = array();\n $process = proc_open(\n $this->getCmd(),\n $descriptorSpec,\n $pipes,\n $this->getCwd(),\n $this->getEnv()\n );\n\n if (is_resource($process)) {\n if ($stdIn !== null) {\n fwrite($pipes[0], (string)$stdIn);\n echo stream_get_contents($pipes[1]); \n }\n fclose($pipes[0]);\n //fclose($pipes[1]);\n\n $returnCode = proc_close($process);\n return new CallResult($this, $stdOut, $stdErr, $returnCode);\n } else {\n fclose($stdOut);\n fclose($stdErr);\n throw new RuntimeException(sprintf('Cannot execute \"%s\"', $this->getCmd()));\n }\n }", "title": "" }, { "docid": "107605aff64912ca629c3bbb5340ec2d", "score": "0.5308692", "text": "function run_script($command, string $language, string $file)\n{\n $bashOut = exec($command);\n return array($bashOut, $file, $language);\n}", "title": "" }, { "docid": "2e71f82625fbdce543156fa5a37d3b99", "score": "0.5302736", "text": "private static function execute($command) {\n\t\treturn shell_exec($command);\n\t}", "title": "" }, { "docid": "70bf619614ef8535029ca025b43919f8", "score": "0.52917796", "text": "private function exec($command) {\n\t\texec(sprintf('%s 2>&1', $command), $output);\n\t\t$execResponse = json_encode($output);\n\t\tif (preg_match('/error/i', $execResponse)) {\n\t\t\t//Set Message\n\t\t\t$this->info($command);\n\t\t\t$this->error(sprintf(\"FFMPEG ERROR:\\n %s\", $execResponse));\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "f3e83d0a54009f7fcb916b946414e3fe", "score": "0.5287566", "text": "function exec_cmd($cmd, &$output) {\n $output = '';\n $status = null;\n\n exec(\"$cmd 2>&1\", $output, $status);\n\n return $status == 0;\n}", "title": "" }, { "docid": "c3c2474118a6be0ee12bb5723d8f3549", "score": "0.52788836", "text": "function forkCasper($command){\n\t$bin = env('CASPER_BIN');\n\treturn execBin($bin,$command);\n}", "title": "" }, { "docid": "9cc86f1624685103f74923f5ad4e3dca", "score": "0.52774304", "text": "public function createExecFile()\n\t{\n /**\n * This could be beautiful, but unfortunately, PHP has not support\n * for readline on windows! Then, on windows, the system will run\n * ONLY with HTTP requisitions...sorry guys!\n */\n // <editor-fold defaultstate=\"collapsed\" desc=\"Code responsible for the instalation in windows, but is not in use by now because some of the external console components does not work on Windows!\">\n /*\n $runDir= str_replace('cmd.exe', '', getenv('COMSPEC'));\n $phpBin= '';\n\n if(!isset($_SERVER))\n {\n while(!file_exists($phpBin) || basename($phpBin)!='php.exe')\n {\n $command= \" [PROMPT] Please type the PHP bin file\";\n if(file_exists('c:/wamp'))\n $command.=\"\n eg: \\\"c:/wamp/bin/php/php5.3.4/php.exe\\\":\\n \";\n else\n echo $command.= \"\n eg: \\\"c:/php/php.exe\\\":\\n \";\n echo $command;\n $fp = fopen('php://stdin', 'r');\n $phpBin = trim(fgets($fp, 1024));\n }\n }elseif(!isset($_GET['phpBin']))\n {\n echo \"To be used in windows, you must provide the php.exe path\\n\";\n echo \"This file will probably be at\\n\";\n echo \"c:/wamp/bin/php/php5.3.4/php.exe\\n\";\n echo \"or\\n\";\n echo \"c:/php/php.exe\";\n return false;\n }\n @shell_exec(\"copy /y NUL \".$runDir.\"mind.bat >NUL\");\n @shell_exec(\"copy /y NUL \".$runDir.\"mind3rd.php >NUL\");\n\n\n $content= $phpBin.' '.$runDir.'mind3rd.php';\n @shell_exec('echo '.$content.' > '.$runDir.'mind.bat');\n\n $cwd= str_replace('\\\\', '/', getcwd());\n\n $phpContent= '$_REQ= Array(); $_REQ[\"env\"]= \"shell\"; define(\"_MINDSRC_\", \"'.$cwd.'\"); require(\"'.$cwd.'/mind3rd/API/utils/utils.php\"); ';\n @shell_exec('echo ^<?php '.$phpContent.' > '.$runDir.'mind3rd.php');\n */\n // </editor-fold>\n return true;\n\t}", "title": "" }, { "docid": "00da8517aaf87b9b7fb8f0d4f86516fb", "score": "0.5272816", "text": "protected function executeCommand()\n\t{\n\t\t$realCommand = $this->buildCommand();\n\t\t//~ $this->log(\"Executing command: `$realCommand'.\", $this->logLevel);\n\t\t$ps = new Process\\Exec($realCommand);\n\t\t$res = $ps->run($realCommand);\n\t\treturn array($res->code, implode(PHP_EOL, $res->content));\n\t}", "title": "" }, { "docid": "4b1ea7181e6903ad8ff3a1f3712d5f0e", "score": "0.5259937", "text": "public function testExecWithCommandRunner(): void\n {\n $this->exec('');\n\n $this->assertExitCode(CommandInterface::CODE_SUCCESS);\n $this->assertOutputContains('Current Paths');\n $this->assertExitSuccess();\n }", "title": "" }, { "docid": "15ce642e7f774fa9a7f5032d7b657e3d", "score": "0.5245622", "text": "public function program()\n\t{\n\t}", "title": "" }, { "docid": "7c66be5d22aa02d3f43f7a3bf7dfd9a5", "score": "0.5245621", "text": "public function executeScript() {\n\t\t\tif ($this->execute) {\n\t\t\t\t$this->statusMsgs[] = 'Execution begin';\n\t\t\t\t$this->logData();\n\t\t\t\trequire $this->script;\n\t\t\t\t$this->statusMsgs[] = 'Execution End';\n\t\t\t} else {\n\t\t\t\t$this->statusMsgs[] = 'Script not executed';\n\t\t\t}\n\t\t\t$this->logEnd();\n\t\t}", "title": "" }, { "docid": "ef665cf50d0e4cffa47a456cd69335df", "score": "0.5231407", "text": "public function system($command, $descriptor, $destination);", "title": "" }, { "docid": "e11f3d8165d26538d7f1c8053019fc59", "score": "0.51996535", "text": "public function run ()\r\n\t{\r\n\t\t$classFile = 'Demos/Cli/' . ucfirst(strtolower($this->_className)) . '.php';\r\n\t\t$className = 'Demos_Cli_' . ucfirst(strtolower($this->_className));\r\n\t\trequire_once $classFile;\r\n\t\t$cli = new $className();\r\n\t\t$cli->start();\r\n\t}", "title": "" }, { "docid": "2f04ac6395974fbe6b445a1817abccce", "score": "0.51987374", "text": "public function Execute($cmdline, &$stdin = null, $out_file_path = null, $in_file_path = null)\r\n\t\t{\r\n \t\r\n\t\t\t// Reset STDOUT and STDERR anyway\r\n \t$this->StdErr = null;\r\n \t$this->StdOut = null;\r\n \t\r\n \t$descriptors = array(\r\n\t \t\t0 => array(\"pipe\", \"r\"), // STDIN\r\n\t \t\t1 => array(\"pipe\", \"w\"), // STDOUT\r\n\t \t\t2 => array(\"pipe\", \"w\") // STDERR\r\n \t);\r\n\r\n \t// Overwrite STDOUT descriptor with filename if we'll send output to file\r\n \tif ($out_file_path)\r\n \t\t$descriptors[1] = array(\"file\", $out_file_path, \"w\");\r\n \t// Overwrite STDIN descriptor with filename if we'll read input from file\r\n \tif ($in_file_path)\r\n \t\t$descriptors[0] = array(\"file\", $in_file_path, \"r\");\r\n \t\t\r\n $process = @proc_open($cmdline, $descriptors, $pipes);\r\n \t\t\r\n \t\tif (is_resource($process)) \r\n \t\t{\r\n \t\t\t// Write to STDIN\r\n \t\t\tif (!empty($stdin))\r\n \t\t\t\t@fwrite($pipes[0], $stdin);\r\n \t\t\t// Close STDIN pipe\r\n \t\t\t@fclose($pipes[0]);\r\n \t\t\t\r\n \t\t\t// Prevent from deadlocks \r\n\t\t\t\t// @see http://www.php.net/manual/en/function.proc-open.php#38870\r\n\t\t\t\t#stream_set_blocking($pipes[2], false);\r\n\t\t\t\t#stream_set_blocking($pipes[1], false);\r\n\t\t\t\t#stream_set_write_buffer($pipes[2], 0);\r\n\t\t\t\t#stream_set_write_buffer($pipes[1], 0);\r\n\t\t \r\n\t\t // Read STDOUT\r\n\t\t if (!$out_file_path)\r\n\t\t \t$this->StdOut = @stream_get_contents($pipes[1]);\r\n\t\t\t\t\t\r\n\t\t @fclose($pipes[1]);\r\n\t\t \r\n\t\t // Read STDERR\r\n\t\t $this->StdErr = @stream_get_contents($pipes[2]);\r\n\t\t @fclose($pipes[2]);\r\n\t\t \r\n\t\t // Close process and return exit code\r\n\t\t\t\t$retval = @proc_close($process);\t\t\t\r\n\t\t\t\treturn (bool)(!$retval);\r\n \t\t}\r\n \t\telse\r\n \t\t\treturn(false);\r\n\t\t}", "title": "" }, { "docid": "563a635908f8bc96d21da33fc5254a2a", "score": "0.5179939", "text": "public function exec($command) {\n\t\t$this->connectIfNeeded();\n\t\t$this->param = \"SITE EXEC \" . $command;\n\t\t$exec = true;\n\n\t\tif (!ftp_exec($this->handle, substr($command, strlen(\"SITE EXEC\")))) {\n\t\t\tthrow new GFtpException(\n\t\t\t\t\tYii::t('gftp', 'Could not execute command \"{command}\" on \"{host}\"',\n\t\t\t\t\t\t\tarray('{host}' => $this->host, '{command}' => $this->param)\n\t\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "ddd895fa6589774e466639ddb5404881", "score": "0.517983", "text": "protected function execCommand($cmd) {\n\t\tif($this->dryRun) {\n\t\t\techo \"\\033[0m\".$cmd.PHP_EOL;\n\t\t}else{\n\t\t\texec($cmd);\n\t\t}\n\t}", "title": "" }, { "docid": "62354b99b4b3f7282791e4c9ce813966", "score": "0.5178246", "text": "function opentheory_exec($args,&$output) {\n is_string($args) or trigger_error('bad args');\n\n $cmd = REPO_BIN . ' -d ' . REPO_PATH . ' ' . $args;\n\n exec($cmd, $output, $status);\n\n is_array($output) or trigger_error('bad output');\n is_int($status) or trigger_error('bad status');\n\n return ($status == 0);\n}", "title": "" }, { "docid": "b4e631f9680fc69f30a3be6cc4fd8055", "score": "0.5177341", "text": "public function runLocally($commandline, $options = array())\n {\n if (is_array($commandline)) {\n $os = php_uname('s');\n if(preg_match('/Windows/i', $os)){\n $commandline = implode(\" & \", $commandline);\n }else {\n $commandline = implode(\" && \", $commandline);\n }\n }\n\n $this->runtimeTask->getOutput()->writeln($this->getLocalInfoPrefix().\"<info>Run: </info>$commandline\");\n\n $realCommand = $this->compileRealCommand($commandline, $options, TRUE);\n\n if ($this->runtimeTask->getOutput()->isVeryVerbose()) {\n $this->runtimeTask->getOutput()->writeln($this->getLocalInfoPrefix().\"<info>Real command: </info>$realCommand\");\n }\n\n $self = $this;\n $symfonyProcess = new SymfonyProcess($realCommand);\n if (isset($options[\"timeout\"])) {\n $symfonyProcess->setTimeout($options[\"timeout\"]);\n } else {\n $symfonyProcess->setTimeout(null);\n }\n\n $resultContent = null;\n $returnCode = $symfonyProcess->run(function ($type, $buffer) use ($self, &$resultContent) {\n $self->getRuntimeTask()->getOutput()->write($buffer);\n $resultContent .= $buffer;\n });\n return new ProcessResult($returnCode, $resultContent);\n }", "title": "" }, { "docid": "ec3793efa6959dc081b896622b2c9687", "score": "0.5172312", "text": "function _5_running_shell()\n\t{\n\t\t$php = getPHPExecutableFromPath();\n\t\t$_ci = FCPATH.SELF;\n\t\t$pid = run_shell(\"$php $_ci z_libs/sse check_innactivity\");\n\t}", "title": "" }, { "docid": "bb0ff33522f0abc30ed4fe1d9e52bd7f", "score": "0.5170407", "text": "public function exec()\n {\n try {\n $http_response = $this->front_controller->exec();\n return $this->http_transport->sendResponse($http_response);\n } catch (Exception $e) {\n $this->echoException($e);\n exit(1);\n }\n }", "title": "" }, { "docid": "0f8755b159ce41a78a8fdeb9b9facdc0", "score": "0.5160191", "text": "public function main()\n {\n if (!class_exists('Psy\\Shell')) {\n $this->err('<error>Unable to load Psy\\Shell.</error>');\n $this->err('');\n $this->err('Make sure you have installed psysh as a dependency,');\n $this->err('and that Psy\\Shell is registered in your autoloader.');\n $this->err('');\n $this->err('If you are using composer run');\n $this->err('');\n $this->err('<info>$ php composer.phar require --dev psy/psysh</info>');\n $this->err('');\n\n return 1;\n }\n\n $this->out('You can exit with <info>`CTRL-C`</info> or <info>`exit`</info>');\n $this->out('');\n\n Log::drop('debug');\n Log::drop('error');\n $this->_io->setLoggers(false);\n restore_error_handler();\n restore_exception_handler();\n\n $psy = new PsyShell();\n $psy->run();\n }", "title": "" }, { "docid": "f7abe4407bd8d3d489ddb78b53e9a5ca", "score": "0.5157225", "text": "public function testExecWithMultipleInput(): void\n {\n $this->exec('bridge', ['cake', 'blue']);\n\n $this->assertOutputContains('You may pass');\n $this->assertExitCode(CommandInterface::CODE_SUCCESS);\n }", "title": "" }, { "docid": "8b4a7670670eb721405b32266ff9dea4", "score": "0.51485705", "text": "function cmd($cmd) {\n\t$result = \"\";\n\t\n\tif (!empty($cmd)) {\n\t\tif (is_callable(\"exec\")) {\n\t\t\texec($cmd,$result); \n\t\t\t$result = join(\"\\n\",$result);\n\t\t}\n\telseif (($result = `$cmd`) !== FALSE) {\n\t\t\t\t//:S\n\t\t\t}\n\telseif (is_callable(\"system\")) {\n\t\t\t$v = @ob_get_contents(); \n\t\t\t@ob_clean(); \n\t\t\tsystem($cmd); \n\t\t\t$result = @ob_get_contents(); \n\t\t\t@ob_clean(); \n\t\t\tprint $v;\n\t\t}\n\telseif (is_callable(\"passthru\")) {\n\t\t\t$v = @ob_get_contents(); \n\t\t\t@ob_clean(); \n\t\t\tpassthru($cmd); \n\t\t\t$result = @ob_get_contents(); \n\t\t\t@ob_clean(); \n\t\t\tprint $v;\n\t\t}\n\telseif (is_resource($fp = popen($cmd,\"r\"))) {\n\t\t\t$result = \"\";\n\t\t\twhile(!feof($fp)) {\n\t\t\t\t$result .= fread($fp,1024);\n\t\t\t}\n\t\t\tpclose($fp);\n\t\t}\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "9b4d9aa7311dc8238721eeddb18751d3", "score": "0.5142552", "text": "public function Exec ( $command )\n\t {\n\t\t$process\t= $this -> ShellInstance -> Exec ( $command ) ;\n\t\t\n\t\treturn ( $process ) ;\n\t }", "title": "" }, { "docid": "6b40dfb00e43aff971575a8d534e6adb", "score": "0.51353693", "text": "public function main() {\n\t\tif ($this->baseTask != NULL) {\n\t\t\tcall_user_func(array($this, 'execute_' . $this->baseTask));\n\t\t} else {\n\t\t\tdie('Missing argument');\n\t\t}\n\t}", "title": "" }, { "docid": "c7202d7c1451da4eb5577cc868fae781", "score": "0.5134975", "text": "public function runProcess($guid);", "title": "" }, { "docid": "abdfd8207e5bfcfbdc09d58a5bed7e38", "score": "0.513486", "text": "private function insertApplyFunc()\n {\n $script = $this->rootDir . '/excmd/asrorz.php';\n $params = 'cruds/insert/apply --app=' . $this->newName;\n $phpcmd = 'php ' . $script . ' ' . $params;\n\n Az::debug($phpcmd, 'command to launch: ');\n $r = shell_exec($phpcmd);\n Az::debug($phpcmd, 'command executed: ');\n Az::debug($r, 'command result: ');\n }", "title": "" }, { "docid": "415d32add435b30279684316923eb576", "score": "0.5132001", "text": "public function testExecCoreCommand(): void\n {\n $this->exec('routes');\n\n $this->assertExitCode(CommandInterface::CODE_SUCCESS);\n }", "title": "" }, { "docid": "951834bc3d8919bcac4355b5527f8247", "score": "0.5116617", "text": "private function _exec($cmd, &$output = '')\n\t{\n\t\t// Clean output\n\t\t$output = '';\n\t\texec($cmd, $output, $exit_code);\n\t\treturn $exit_code;\n\t}", "title": "" }, { "docid": "a29363e4ba2b5ff19cd5f7a5f9daef67", "score": "0.5113584", "text": "public function run($command)\n {\n passthru($command);\n }", "title": "" }, { "docid": "a29363e4ba2b5ff19cd5f7a5f9daef67", "score": "0.5113584", "text": "public function run($command)\n {\n passthru($command);\n }", "title": "" }, { "docid": "e85b68e32d4af9de30d9443a8af969c4", "score": "0.5110051", "text": "public function run($command);", "title": "" }, { "docid": "efd1c2c7851581ca5799959b150d3ff4", "score": "0.510696", "text": "protected function exec($cmd) {\n return shell_exec($cmd);\n }", "title": "" }, { "docid": "526d8cd3b7a133e38ab8f84296a33482", "score": "0.51031953", "text": "public static function exec($cmd, $path1 = '', $path2 = '', $m = '')\n\t{\n\t\tif(strlen($m) > 0)\n\t\t\t$m = sprintf(' -m \"%s\"', addslashes($m));\n\n\t\t$cmd = sprintf(\"svn %s %s %s %s\", $cmd, $path1, $path2, $m);\n\t\treturn shell_exec($cmd);\n\t}", "title": "" }, { "docid": "4c2cd6161b413e680bafcc0e776bd6e1", "score": "0.5093766", "text": "function getCommandLine() {\r\n\t\tglobal $zariliaConfig;\r\n\t\tif (!isset($zariliaConfig['atasks_exec'])) {\r\n\t\t\t$zariliaConfig['atasks_exec'] = 'lynx';\r\n\t\t}\r\n\t\t$ret = $zariliaConfig['atasks_exec'].' ';\r\n\t\tswitch ($zariliaConfig['atasks_exec']) {\r\n\t\t\tcase 'php':\r\n\t\t\t\t$ret .= '-q '.ZAR_ROOT_PATH.'/include/atasks.php'; \r\n\t\t\tbreak;\r\n\t\t\tcase 'lynx':\r\n\t\t\tdefault:\r\n\t\t\t\t$ret .= '--dump '.ZAR_URL.'/include/atasks.php';\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn $ret.' > /dev/null';\r\n\t}", "title": "" }, { "docid": "94338504356e678f3063c5235224ab18", "score": "0.50869614", "text": "public static function execute();", "title": "" }, { "docid": "ecb8481b869eeff2e47cd66f912d6992", "score": "0.5082954", "text": "function execCmd($cmd, &$output='', &$return_var='', $user = 'phpexec', $root=false, $pwd=NULL) {\n global $u_level;\n $sudo = $root ? 'sudo' : '';\n if($u_level < USER_LEVEL_STAFF && $pwd != $_SESSION['sqlgarbage']) die(\"execCmd: Not authorized. Contact the system administrator (system@apartments-for-rent.com).\");\n \n $full_command = $user == 'phpexec' ? \"sudo -u $user $sudo $cmd\" : $cmd;\n //echo(\"executing\".html_break().$full_command.html_break());\n return exec($full_command, $output, $return_var);\n}", "title": "" }, { "docid": "756ff8d652e251a40059a0a6d0b7aad8", "score": "0.5080783", "text": "abstract public function executeCommand ();", "title": "" }, { "docid": "c03045e85f1b99c4d350bcfcdf284bf3", "score": "0.50500256", "text": "public function runCommand($cmd)\n {\n //excecuting\n echo \"'\".$cmd.\"' command executed.\\n\";\n }", "title": "" }, { "docid": "72bcfdf1a3fcc5ea911c29068b5a6819", "score": "0.5023477", "text": "abstract public function execute($sourcecode, $language, $input, $files=null, $params=null);", "title": "" }, { "docid": "19f00b4353c5431e732d290ae604b441", "score": "0.50106233", "text": "protected function invokeScript() {\n $fileSystem = $this->system->getFileSystem();\n\n $directory = $fileSystem->getTemporaryFile();\n $directory->delete();\n $directory->create();\n $directoryAbsolute = $directory->getAbsolutePath();\n\n $this->appendOutput(\"# Created working directory \" . $directoryAbsolute);\n\n $cwd = getcwd();\n $exception = null;\n\n try {\n chdir($directoryAbsolute);\n\n $variables = $this->getCommandVariables($directoryAbsolute);\n\n $commands = array();\n if ($this->builder->getWillCheckout()) {\n $commands = array_merge($commands, $this->vcsManager->getCheckoutCommands());\n }\n $commands = array_merge($commands, explode(\"\\n\", $this->builder->getScript()));\n\n foreach ($commands as $command) {\n $command = $this->parseCommandVariables($command, $variables);\n\n $this->appendOutput($command);\n\n if (substr($command, 0, 3) == 'cd ') {\n chdir(substr($command, 3));\n\n continue;\n }\n\n // if (strpos($command, ' 2>') === false) {\n // $command .= ' 2>&1';\n // }\n\n $output = $this->system->executeInShell(array('export PATH=/usr/local/bin:/usr/bin:$PATH', $command), $code);\n if ($code != 0) {\n throw new Exception('Command returned code ' . $code . ': ' . $command);\n }\n\n $output = array_slice($output, 4);\n\n $this->appendCommandOutput($output);\n }\n } catch (Exception $exception) {\n $this->setException($exception);\n }\n\n chdir($cwd);\n $directory->delete();\n\n $this->appendOutput(\"# Deleted working directory \" . $directory->getAbsolutePath());\n }", "title": "" }, { "docid": "b01dec3b91f4de579ec15e76624dce06", "score": "0.5004185", "text": "function execute($cmdAndArgs)\n{\n return shell_exec('python ' .$cmdAndArgs . \" 2>&1\");\n}", "title": "" }, { "docid": "abbb9a4f02230afe6297a50ece39e812", "score": "0.49966303", "text": "private function launchCommand(string $runCommand, string $name): string\n {\n IOHandler::debug(\"---{$name}---\");\n IOHandler::debug(\"{$runCommand}\");\n\n $process = Process::fromShellCommandline($runCommand);\n\n try {\n $process->run(function ($type, $buffer) {\n if ($type === Process::ERR) {\n IOHandler::debug($buffer, false);\n }\n });\n } catch (Exception $e) {\n IOHandler::error(\"{$name} run failed! Aborting.\", $e);\n exit(1);\n }\n\n $output = $process->getOutput();\n $exitCode = $process->getExitCode();\n if (!$output and $exitCode) {\n IOHandler::error(\"{$name} run failed! Empty output with exit code {$exitCode}\", $process->getErrorOutput());\n exit(1);\n }\n\n return $output;\n }", "title": "" }, { "docid": "5509ae1ec03d22f4b9cc44f669948781", "score": "0.49942967", "text": "protected function _exec()\n {\n }", "title": "" }, { "docid": "6de754d91100bc64c459e9b6980f0ca7", "score": "0.49899122", "text": "public function run(): int {\n\t\tif (!$this->optionBool('skip-configure')) {\n\t\t\t$this->configure('shell');\n\t\t}\n\t\t$this->handle_base_options();\n\t\t$this->saved_vars = [];\n\t\twhile ($this->hasArgument()) {\n\t\t\t$arg = $this->getArgument('eval');\n\t\t\tif ($arg === '--') {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$this->verboseLog(\"Evaluating: $arg\\n\");\n\t\t\tob_start();\n\t\t\t$result = $this->_eval($arg);\n\t\t\t$this->output_result($result, ob_get_clean());\n\t\t}\n\t\tif ($this->optionBool('interactive')) {\n\t\t\treturn $this->interactive();\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9d54fd501f34e8358065e25102a786d3", "score": "0.49840468", "text": "private function exec(string $cmd):string{\n $result = exec($cmd.' >&1 2>&1', $r);\n if($result === false){\n return $result;\n } else {\n return implode(\"\\n\", $r);\n }\n }", "title": "" }, { "docid": "fa71ba77ebf8272717165c22c7226764", "score": "0.49704856", "text": "public function exec($command)\n {\n $descriptorSpec = array(\n 0 => array(\"pipe\", \"r\"), // stdin\n 1 => array(\"pipe\", \"w\"), // stdout\n 2 => array(\"pipe\", \"w\"), // stderr\n );\n\n\n $resource = proc_open($command, $descriptorSpec, $pipes);\n\n $stdout = array();\n $stderr = array();\n\n while (($buffer = fgets($pipes[1], 4096)) !== false) {\n $stdout[] = trim($buffer);\n }\n\n while (($buffer = fgets($pipes[2], 4096)) !== false) {\n $stderr[] = trim($buffer);\n }\n\n\n //Cleanup resources\n fclose($pipes[1]);\n fclose($pipes[2]);\n proc_close($resource);\n\n\n foreach ($stderr as $line) {\n $this->writeln(\"<error>$line</error>\");\n }\n\n foreach ($stdout as $line) {\n $this->writeln(\"<info>$line</info>\");\n }\n }", "title": "" }, { "docid": "eef27e443f5d8d07b0670408434a031f", "score": "0.49663293", "text": "abstract protected function executeCommand();", "title": "" }, { "docid": "ddecc581a5e48639d313bf886b55adfd", "score": "0.49615452", "text": "public static function exec(array $cmd, $stderr = false): string\n\t{\n\t\tTwitchHelper::log(TwitchHelper::LOG_DEBUG, \"Executing command: \" . implode(\" \", $cmd));\n\t\t$process = new Process($cmd);\n\t\t$process->run();\n\t\treturn $process->getOutput() . ($stderr ? $process->getErrorOutput() : '');\n\t}", "title": "" }, { "docid": "70caca1b23b4141adf858cd62039ecfc", "score": "0.49612036", "text": "function passthru ($command, &$return_var = null) {}", "title": "" }, { "docid": "e9fa1ea804de029eae05e7a5cacabdcc", "score": "0.49606687", "text": "function compile_and_run($p)\n{\n\tcompile_cordscript( $_REQUEST['script'], $p,$_REQUEST['output'], $p->user.\" \".$_REQUEST['option'] );\n\treturn( \"compile\" );\n}", "title": "" }, { "docid": "8eb4fff761aab353b24770ff830de1e6", "score": "0.49542698", "text": "function _doexec($cmd)\n {\n $this->lastexec = $cmd;\n return `$cmd`;\n }", "title": "" }, { "docid": "cee3a9cdb7bf27e8d041814f93f87171", "score": "0.49442846", "text": "protected function executeCli($host, $command)\n {\n $output = $this->output;\n\n $testEnvironment = !$this->getContainer()->has('kernel');\n\n // Only show command to execute if in test environment\n if ($testEnvironment) {\n $output->write($command.' ');\n\n return;\n }\n\n $output->writeln(sprintf('<bg=green> Deploying to %s </>', $host));\n\n // Create process\n $process = new Process($command);\n $processInput = new InputStream();\n $process->setInput($processInput);\n // Process may take quite some time if it has to update composer, deploy to multiple servers...\n // So we set timeout and idle timeout from config\n $process->setTimeout($this->getContainer()->getParameter('rrb_deployer.timeout'));\n $process->setIdleTimeout($this->getContainer()->getParameter('rrb_deployer.idle_timeout'));\n $process->run(function ($type, $buffer) use ($output, $processInput) {\n $output->write($buffer);\n });\n\n $output->writeln('');\n }", "title": "" }, { "docid": "915a74ec0742bcbc310ecf62f4ac524c", "score": "0.49415886", "text": "function exout($cmd){\n\t$arr = array();\n\t$retval = 'not set';\n\techo \"\\n******\\ncommand: $cmd\\n\";\n\texec($cmd, $arr, $retval);\n\techo \"finished, return value: \".$retval.\", output was:\\n\";\n\t//print_r($arr);\n\tforeach($arr as $one){\n\t\techo \"\".$one.\"\\n\";\n\t}\n\t\n}", "title": "" }, { "docid": "c2500a00ceb5adadbe188233962259ea", "score": "0.49409705", "text": "public function execute()\n {\n \n // PHP_EOL doest the same thing as \"\\n\"\n \n //standard output, nothing special\n $this->output(\"Hello World!\" . PHP_EOL);\n \n $this->successOutput('Hurra! This is my first CLI module' . PHP_EOL);\n \n $this->warningOutput('Warning have yellow colour' . PHP_EOL);\n \n $this->errorOutput('Warning have red colour' .PHP_EOL);\n \n }", "title": "" }, { "docid": "5f67ba93f4ad991f7885a5dd4bb78d91", "score": "0.4936915", "text": "function execBin($bin,$command){\n // create CMD\n $return = '';\n $cmd = sprintf(\"export NODE_PATH='%s'; %s %s\",env('NODE_PATH'),$bin,$command);\n execSafe($cmd,$return);\n return $return;\n}", "title": "" }, { "docid": "905336258837d92721dc3e2ee851b836", "score": "0.49358925", "text": "public function Run() {\n\n\t\t\tif($this->missing == true) {\n\t\t\t\treturn $this->RunMissing();\n\t\t\t}\n\n\t\t\t$command_name = strtolower($this->args[0]);\n\t\t\tunset($this->args[0]);\n\t\t\t$this->args = array_values($this->args);\n\n\t\t\ttry {\n\t\t\t\tApplication::Import(\"Desmond::Interpeter::Commands::{$command_name}.php\");\n\n\t\t\t\t$command_class = 'DesmondCommand' . ucwords($command_name);\n\t\t\t\t$command = new $command_class($this->args);\n\n\t\t\t\treturn $command->Process();\n\t\t\t}\n\n\t\t\tcatch(DesmondModuleMissingException $e) {\n\t\t\t\treturn $this->RunMissing();\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "b4af09a24e1f4500b06c653286ee5f77", "score": "0.4929906", "text": "public function runProgramInCLI(string $programClass, string $actionName, array $params = []): bool\n {\n $actionName = \"action\" . $actionName;\n $callable = [$programClass, $actionName];\n if (!is_callable($callable)) {\n return false;\n }\n return call_user_func_array($callable, $params);\n }", "title": "" }, { "docid": "4771a37804530040036595068a4ab90f", "score": "0.49206355", "text": "public static function run_command( $args, $assoc_args = array() ) {\n\t\tself::get_runner()->run_command( $args, $assoc_args );\n\t}", "title": "" } ]
150c76d0c0ae51e575877e16ef3f32ce
Simulate frontenduser login for backend adminstrators only
[ { "docid": "50fd03bd457cf170215e32d97cdc67e3", "score": "0.0", "text": "public function loginAsAction(User $user)\n {\n $this->eventDispatcher->dispatch(new ImpersonateEvent($user));\n\n if (!BackendUserUtility::isAdminAuthentication()) {\n throw new UnauthorizedException(LocalizationUtility::translate('error_not_authorized'), 1516373787864);\n }\n UserUtility::login($user);\n $this->redirectByAction('loginAs', 'redirect');\n $this->redirectToUri('/');\n }", "title": "" } ]
[ { "docid": "a3f624cb63232505a722973d121f5a7a", "score": "0.78547084", "text": "abstract protected function _frontend_login();", "title": "" }, { "docid": "0f6c543f600e0787ad392f38c8252d33", "score": "0.7329464", "text": "abstract protected function _admin_login();", "title": "" }, { "docid": "c0a044b8853e000e40e9b486fa0a3750", "score": "0.681604", "text": "public function loginWithFakeAdmin()\n {\n $user = new User([\n 'id' => 1,\n 'name' => 'yish',\n 'type' => 0,\n ]);\n\n $this->be($user);\n }", "title": "" }, { "docid": "8f813c1f98cfa0d4ccf3a9a61400969f", "score": "0.68139607", "text": "public function testAdminLogin()\n {\n $this->visit('/')\n ->type('admin', 'username')\n ->type('ABC@123', 'secret')\n ->press('Login')\n ->seePageIs('/admin');\n }", "title": "" }, { "docid": "47d51c28425dbef4427b03f82cff3a7f", "score": "0.68060315", "text": "public function loginAdmin()\n\t{\n\t\tSession::start();\n\t\t$res = $this->call('POST', 'auth/login', [\n\t\t\t\t'email' => 'num@ut.admin',\n\t\t\t\t'password' => '3345677',\n\t\t\t\t'_token' => csrf_token()\n\t\t\t]);\n\t\t$this->assertRedirectedTo('/');\n\t}", "title": "" }, { "docid": "d50dd3d86f634d5baa96ac2fd0bc83ef", "score": "0.6725272", "text": "function admin_login()\n {}", "title": "" }, { "docid": "d42b62ada6712a1596df71d7a0148ede", "score": "0.6722136", "text": "public function foodbakery_auto_login_user() {\n \n }", "title": "" }, { "docid": "ddee34e6a6387fac753bda818d06db78", "score": "0.6710731", "text": "public function do_login()\n {\n return parent::do_login();\n }", "title": "" }, { "docid": "6c96587678452a1048888254150a1b09", "score": "0.6685623", "text": "public function loginSuperAdmin()\n {\n $this->logout();\n \n // create a fake identity\n $identity = new stdClass();\n $identity->role = 'superadmin';\n $identity->username = 'gfuller6';\n $identity->first_name = 'Something';\n $identity->last_name = 'New';\n $identity->active = 1;\n \n // Push our fake identity into the auth storage\n Zend_Auth::getInstance()->getStorage()->write($identity);\n \n // Run a test to make sure we have aithentification\n $auth = Zend_Auth::getInstance();\n $this->assertTrue($auth->hasIdentity());\n }", "title": "" }, { "docid": "5065d84927b42e3fc1361fdc6f0a2aac", "score": "0.6665708", "text": "public function user_login( ) {\n $this->doLogin();\n }", "title": "" }, { "docid": "a57d9f62d3e1da727e2f4bf742b80747", "score": "0.66654825", "text": "public function loginAdmin()\n {\n $this->logout();\n \n // create a fake identity\n $identity = new stdClass();\n $identity->role = 'admin';\n $identity->username = 'gfuller';\n $identity->first_name = 'Gareth';\n $identity->last_name = 'Fuller';\n $identity->active = 1;\n \n // Push our fake identity into the auth storage\n Zend_Auth::getInstance()->getStorage()->write($identity);\n \n // Run a test to make sure we have aithentification\n $auth = Zend_Auth::getInstance();\n $this->assertTrue($auth->hasIdentity());\n }", "title": "" }, { "docid": "07b3fecbe9e118962a4c1cca49c3d49a", "score": "0.6663027", "text": "public function testLogin()\n {\n $this->visit('admin/login')\n ->type($this->selectAdmin()->email, 'email')\n\t\t ->type('admin1', 'password')\n\t\t ->press('Login')\n\t\t ->seePageIs('admin/dashboard');\t\n }", "title": "" }, { "docid": "2a06d7da197f4d67cbc0279f5d5cfaea", "score": "0.6637527", "text": "public function webtestLogin() {\n //$this->open(\"{$this->sboxPath}user\");\n $password = $this->settings->adminPassword;\n $username = $this->settings->adminUsername;\n // Make sure login form is available\n $this->waitForElementPresent('edit-submit');\n $this->type('edit-name', $username);\n $this->type('edit-pass', $password);\n $this->click('edit-submit');\n $this->waitForPageToLoad('30000');\n }", "title": "" }, { "docid": "38ac8668585ed1296e8843bb44a8111d", "score": "0.6608827", "text": "function loginAdmin(array $request)\n {\n $credentials = $request;\n return parent::loginCore($credentials, Admin::class, ADMIN_GUARD); // check company admin's credentials @author Amr\n }", "title": "" }, { "docid": "4a07fdc7ff25a0774a62aebc9cd1443b", "score": "0.6562947", "text": "abstract public function requireLogin();", "title": "" }, { "docid": "f9fba015a062d630d8a7bd5abe38bf3f", "score": "0.65386915", "text": "public function stepIAmLoggedIntoTheCMS() {\n\t\t$this->stepILogInWith('sam@silverstripe.com', 'password');\n\t\t$this->natural->visit(\"admin\");\n\t}", "title": "" }, { "docid": "2b95589c254024f5679d0e005aa2a712", "score": "0.64817846", "text": "function fakeUserLoginForm() { return; }", "title": "" }, { "docid": "83c2ce672ccd3b0a7bdb1cc9a17928ae", "score": "0.6441926", "text": "public function testLogin()\n {\n $user = \\App\\Models\\User::factory()->create();\n\n $this->browse(function (Browser $browser) use($user) {\n\n $browser->visit('/admin')\n ->assertSee('Login')\n ->clickLink('Login')\n ->assertSee('Email')\n ->type('email', $user->email)\n ->type('password', 'password')\n ->press('Login')\n ->waitForText('Dashboard', 10)\n ->assertSee('Dashboard')\n ->clickLink('Logout')\n ->waitForText('Login', 5)\n ->assertSee('Login')\n ;\n\n });\n\n }", "title": "" }, { "docid": "15040f329d355add1655f7bb75a1a28f", "score": "0.6428632", "text": "function require_business_login() {\n return true;\n }", "title": "" }, { "docid": "399d244e211b9025459ef84bb1deb59d", "score": "0.6414677", "text": "private function logInAsAdmin()\n {\n $session = $this->client->getContainer()->get('session');\n\n $firewallContext = 'main';\n\n $token = new UsernamePasswordToken('admin', null, $firewallContext, array('ROLE_ADMIN'));\n $session->set('_security_'.$firewallContext, serialize($token));\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "21eb5c3d8c499ccae0f889a20efe7877", "score": "0.639028", "text": "public function testLoginExample()\n {\n $user = User::where('user_role_id', config('constants.user_types.admin'))->first();\n \n $this->browse(function (Browser $browser) use($user) {\n $browser->loginAs($user)\n ->visit(route('dashboard'))\n ->assertSee('Users');\n });\n }", "title": "" }, { "docid": "aa63083ffbfbaf560841697dd3923a08", "score": "0.63802516", "text": "public function requireLogin()\n {\n $user = Craft::$app->getUser();\n\n if ($user->getIsGuest()) {\n $user->loginRequired();\n Craft::$app->end();\n }\n }", "title": "" }, { "docid": "23fd4f3e7d11b14cb68b9a70132fc812", "score": "0.63715184", "text": "private function admin_login()\n {\n\n $user_id = User::create([\n 'name' => 'customer',\n 'email' => 'customer@gmail.com',\n 'contact_no' => '6291839827',\n 'password' => Hash::make('password')\n ])->id;\n\n RoleUser::create([\n 'user_id' => $user_id,\n 'role_id' => 2,\n ]);\n }", "title": "" }, { "docid": "d9df4fa9d7ee8fe44f9884835becd27a", "score": "0.6370365", "text": "public function login() {\n $user = $this->Auth->user('id');\n if (!empty($user)) {\n return $this->redirect('/backend/admin-dashboard');\n }\n\n if ($this->request->is('post')) {\n Utils::useTables($this, ['Backend.AdminUsers', 'Backend.AdminRoles']);\n $countRole = $this->AdminRoles->find('all')->count();\n if ($countRole == 0) {\n $userRole = $this->AdminRoles->newEntity();\n $userRole = $this->AdminRoles->patchEntity($userRole, [\n 'id' => 1,\n 'name' => ROLE_SUPER_ADMIN,\n 'role' => 1,\n ]);\n $this->AdminRoles->save($userRole);\n }\n $countAccount = $this->AdminUsers->find('all')->count();\n if ($countAccount == 0) {\n $userAccount = $this->AdminUsers->newEntity();\n $userAccount = $this->AdminUsers->patchEntity($userAccount, [\n 'email' => $this->request->getData(['email']),\n 'admin_role_id' => 1,\n 'active' => true,\n 'locked' => false,\n ]);\n $userAccount->password = $this->request->getData(['password']);\n $this->AdminUsers->save($userAccount, ['checkRules' => false]);\n }\n $checkAccount = $this->AdminUsers->find('all', [\n 'conditions' => ['AdminUsers.email' => $this->request->getData(['email'])]\n ])->first();\n\n if (!empty($checkAccount)) {\n\n $currentData = $this->AdminUsers->findById($checkAccount['id'])->first();\n $lastLogin = date('Y-m-d H:i:s');\n\n if ($checkAccount['locked'] == LOCKED) {\n\n $timeSpan = (strtotime($lastLogin) - strtotime($checkAccount['last_login'])) / 60;\n\n // instead of define a constant of Time Span Lock - we should pull this value from Configuations Table\n if ($timeSpan < LOCK_TIME_SPAN) {\n $this->Flash->error(__('Login has been temporarily disabled due to too many unsuccessful login attempts. Please try again after 15 minutes.'));\n return;\n }\n }\n // Update last_login\n $currentData->last_login = $lastLogin;\n $this->AdminUsers->save($currentData);\n\n if (!$checkAccount['active']) {\n $this->Flash->error(__('You account has not been activated yet.'));\n return;\n }\n\n $user = $this->Auth->identify();\n\n if ($user) {\n $this->configMenu($user['admin_role_id']);\n $this->Auth->setUser($user);\n\n// $menuSetup\n // Reset count_login and unlock\n if (!empty($currentData)) {\n $currentData->count_login = 0;\n $currentData->locked = false;\n $this->AdminUsers->save($currentData);\n }\n return $this->redirect('/backend/admin-dashboard');\n } else {\n $currentData->count_login++;\n if ($currentData->count_login == ATTEMPT_LOGIN_TIME) {\n // Lock account\n $currentData->locked = true;\n }\n $this->AdminUsers->save($currentData);\n }\n }\n $this->Flash->error(__('Invalid email or password. Please try again'));\n }\n }", "title": "" }, { "docid": "1beddfefbfe4215309a7d133a2386996", "score": "0.6365812", "text": "public function testLoginRequest(){\n $this->visit('admin/login')\n ->type('', 'email')\n ->type('', 'password')\n ->press('Login')\n ->see('field is required');\n\n //Email is correct, password is wrong\n $this->visit('admin/login')\n ->type($this->selectAdmin()->email, 'email')\n ->type(rand(), 'password')\n ->press('Login')\n ->see('These credentials do not match our records');\n \n //Email is wrong, password is correct\n $this->visit('admin/login')\n ->type(rand().'@gmail.com', 'email')\n ->type('admin1', 'password')\n ->press('Login')\n ->see('These credentials do not match our records');\n }", "title": "" }, { "docid": "6369ccd40cbbda9794417566d49cf1a7", "score": "0.6351538", "text": "public static function login() {\n }", "title": "" }, { "docid": "5cd9e9b65c8e00ad89beaa2e98434c76", "score": "0.63288957", "text": "public function controlLogin()\n\t{\n\t\tif (! isset($_SESSION['user_id']) || ! empty($_POST['login']) || ! empty($_REQUEST['logout'])) {\n\t\t\t$this->factory('StandardLogin')->controlLogin();\n\t\t}\n\t\t$this->userConfig();\n\t}", "title": "" }, { "docid": "e8206c4957b810e4fda6f93a23de17ec", "score": "0.63262534", "text": "public function Usuarios_registrados_pueden_login()\n {\n $this->withoutMiddleware();\n\n $user = User::factory()->create();\n\n $this->browse(function (Browser $browser) use ($user) {\n $browser->visit('/login')\n ->type('email', $user->email)\n ->type('password','password')\n ->press('#login_btn')\n ->assertAuthenticated();\n });\n }", "title": "" }, { "docid": "fa8674232e2f129f4ea71524a4f8fd06", "score": "0.6312616", "text": "public function login();", "title": "" }, { "docid": "6055962d2341674b1066934cba16cf80", "score": "0.6288542", "text": "public function loginFirst(){}", "title": "" }, { "docid": "c8018feda6828a99884f6bd5d2d0832c", "score": "0.6286492", "text": "public function loginRequired();", "title": "" }, { "docid": "143630e53e0311130de7b6e85adaa3f0", "score": "0.6274302", "text": "private function doLogin()\n {\n $this->client = static::createClient();\n $this->crawler = $this->client->request('GET', '/login');\n $form = $this->crawler->selectButton('_submit')->form(array(\n '_username' => \"faez\",\n '_password' => '123Qwe456'\n ));\n $this->client->submit($form);\n $this->assertTrue($this->client->getResponse()->isRedirect());\n $this->client->followRedirects();\n }", "title": "" }, { "docid": "84d1f0ce4e11024215cbb4c42833e8e6", "score": "0.62727636", "text": "public function login()\n {\n return true;\n }", "title": "" }, { "docid": "14bb3c62b5ec559ea673e98e7f38f3de", "score": "0.6270301", "text": "public function login() {\n if ($this->_identity === null) {\n $this->_identity = new UserIdentity($this->username, $this->password);\n $this->_identity->authenticate2();\n }\n if ($this->_identity->errorCode === UserIdentity::ERROR_NONE) {\n //$duration=$this->rememberMe ? 3600*24*30 : 0; // 30 days\n Yii::app()->admin->login($this->_identity, $duration);\n return true;\n } else\n return false;\n }", "title": "" }, { "docid": "0fcf30030117fcf4c3b73cf56ebf48cc", "score": "0.6262511", "text": "public function login()\n {\n if($this->_identity===null)\n {\n $this->_identity=new AdminIdentity($this->adminname,$this->password);\n $this->_identity->authenticate();\n }\n if($this->_identity->errorCode===AdminIdentity::ERROR_NONE)\n {\n\t\t\t$duration=$this->rememberMe ? 3600*24*30 : 0; // 30 days\n Yii::app()->user->login($this->_identity,$duration);\n return true;\n }\n else\n return false;\n }", "title": "" }, { "docid": "b4ebebc6bb7278d1b3345e47d6182c3c", "score": "0.62622285", "text": "public function _autoLogin($user) {\n }", "title": "" }, { "docid": "6c436a417fd6cc0fcf37cd4203a9abd0", "score": "0.625761", "text": "private function _login() \n {\n\n }", "title": "" }, { "docid": "6d019abb2cfeeb4c228ae30a904867ee", "score": "0.62560356", "text": "public function adminloginpost()\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$this->LogAccess($taskCode);\n\t\t\t\t$_AppUserRequestHelper = new AppUserRequestHelper();\n\t\t\t\t$_AppUser = $_AppUserRequestHelper->AssembleAppUserLoginControl();\n\t\t\t\t$_AppUserBO = new AppUserBO($this->_UserInfo);\n\t\t\t\t$_AppUserValidator = new AppUserValidator();\n\t\t\t\t$_AppUserValidator->ValidateAppUserLoginControl($_AppUser, $this->_UserInfo);\n\t\t\t\tif (!$_AppUser->getIsValid())\n\t\t\t\t{\n\t\t\t\t\treturn $this->view->outputJson(Constants::$VALERROR, \"\", $_AppUser->getErrors());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$_AppUser->setPassword(CommonUtils::EncryptTripleDES($_AppUser->getPassword()));\n\t\t\t\t\t$_AppUserBO->InsertAppUser($_AppUser);\n\t\t\t\t\t$appUser = $_AppUserBO->SelectByEmail($_AppUser->getEmail());\n\t\t\t\t\t$logger->debug(\"Email::\" . $appUser->getEmail());\n\t\t\t\t\t$this->setAdminCookie($appUser->getEmail());\n\t\t\t\t\t$logger->debug(\"Cookie is set\");\n\t\t\t\t\t$this->view->outputJson(Constants::$REDIRECT, \"/brand/searchbrands\", \"\");\n\t\t\t\t\t\t\n\t\t\t\t}\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": "d7f40bc5dbde31b91359f9bb65d50b16", "score": "0.62517565", "text": "public function login() {\n\t\t\n\t}", "title": "" }, { "docid": "7927259fc83edf3464467ecbdf01233a", "score": "0.6240389", "text": "public function authenticateByClientLogin()\r\n\t{\r\n\t}", "title": "" }, { "docid": "a6f1b779f137686c8c9e65bce2aaf5ae", "score": "0.62303305", "text": "public function login() {\n if ($this->_identity === null) {\n $this->_identity = new UserIdentity($this->username, $this->password);\n $this->_identity->authenticate();\n }\n\n if ($this->_identity->errorCode === UserIdentity::ERROR_NONE) {\n $siteConfig = Tool::getConfig($name = 'site');\n// $content = file_get_contents(Yii::getPathOfAlias('common') . '/webConfig/site.config.inc');\n// $siteConfig = unserialize(base64_decode($content));\n $duration = $this->rememberMe ? 3600 * 24 * $siteConfig['duration'] : 0; // 7 days\n Yii::app()->user->login($this->_identity, $duration);\n return true;\n }\n else\n return false;\n }", "title": "" }, { "docid": "2ecd0f652f938c1d10b0f83f66580e14", "score": "0.6220826", "text": "public function actionLogin() {\n if (empty($_SESSION['id'])) {\n $_SESSION['id'] = rand(1, 5);\n $data = $_SESSION['id'];\n } else {\n $data = $_SESSION['id'];\n }\n\n \n\n if (!Yii::$app->user->isGuest) {\n $role_type = Yii::$app->user->identity->role_type;\n $this->actionLicense();\n } else {\n $model = new LoginForm();\n if ($model->load(Yii::$app->request->post()) && $model->login()) {\n $this->actionLicense();\n \n } else {\n return $this->render('login', [\n 'model' => $model,\n ]);\n }\n }\n }", "title": "" }, { "docid": "e4e19b4a45f5e23d7f8e77fed6ce75b1", "score": "0.62109035", "text": "public function loginFirst(){\n }", "title": "" }, { "docid": "9d323903e9f6fb6553d5ac2090b14e33", "score": "0.62097454", "text": "public function loginBackend(){\n return view('backend.login');\n }", "title": "" }, { "docid": "926fd0dd4796662502474810c193d60e", "score": "0.62011373", "text": "private function logIn()\n {\n $session = $this->client->getContainer()->get('session');\n\n $firewallName = 'main';\n $token = new UsernamePasswordToken('Matteo', null, $firewallName, ['ROLE_USER']);\n $session->set('_security_'.$firewallName, serialize($token));\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "17bc37eb518b6f408f8fcaa5b0b0e075", "score": "0.6195595", "text": "private function logInSimpleUser()\n {\n $this->user= self::$kernel->getContainer()->get('doctrine')->getRepository('AppBundle:User')->findOneById(41);\n\n $session = $this->client->getContainer()->get('session');\n\n $firewall = 'secured_area';\n $attributes = [];\n\n $token = new SamlSpToken(array('ROLE_USER'),$firewall, $attributes, $this->user);\n\n\n $session->set('_security_'.$firewall, serialize($token));\n $this->client->getContainer()->get('security.token_storage')->setToken($token);\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "361835611466806b0b8506304b323869", "score": "0.6195181", "text": "public function testAnonLoginRender() {\n $client = $this->createAnonClient();\n $crawler = $client->request('GET', '/login');\n\n // Check userBaseLayout\n $this->checkAnonBaseLayout($crawler);\n\n // Check loginBaseLayout\n $this->checkLoginBaseLayout($crawler);\n }", "title": "" }, { "docid": "44dd3ef93127f15b07607d7b44780d7a", "score": "0.6190309", "text": "private function AdminLogin() {\n $role='administrator';\n if (!$this->loggedInWithRole($role)) {\n // Create user (and project)\n $user = (object) array(\n 'name' => $this->getRandom()->name(8).\"TEST\",\n 'pass' => $this->getRandom()->name(16),\n 'role' => $role,\n );\n $user->mail = \"{$user->name}@example.com\";\n\n $this->userCreate($user);\n\n $roles = explode(',', $role);\n $roles = array_map('trim', $roles);\n foreach ($roles as $role) {\n if (!in_array(strtolower($role), array('authenticated', 'authenticated user'))) {\n // Only add roles other than 'authenticated user'.\n $this->getDriver()->userAddRole($user, $role);\n }\n }\n\n // Login.\n $this->login($user);\n echo(\"Logged in as: \".$this->getUserManager()->getCurrentUser()->name.\"\\n\");\n } else {\n echo(\"Already logged in as: \".$this->getUserManager()->getCurrentUser()->name.\"\\n\");\n }\n return user_load($this->getUserManager()->getCurrentUser()->uid);\n }", "title": "" }, { "docid": "d8f529f4da8d923d7f6b11a9e09433c3", "score": "0.6183724", "text": "public function login($admin_login = false)\n {\n if ($this->validate()) {\n\n if(!$user = User::findByUsername($this->username)) {\n $this->addError('username', 'Пользователь не найден');\n return false;\n }\n\n if($admin_login) {\n $res = Yii::$app->user->login($user, $this->rememberMe ? 3600 * 2: 0);\n } else {\n $res = Yii::$app->user->login($user, $this->rememberMe ? 3600 * 24: 0);\n }\n\n if($res){\n Yii::$app->response->cookies->add(new Cookie([\n 'name' => 'user_authenticate',\n 'value' => true,\n 'httpOnly' => false,\n 'expire' => time() + 1800,\n ]));\n //$user->popup_banner_shown = false;\n $user->unlogin = false;\n $user->save();\n\n UserIpLog::setLog($user);\n \n return true;\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "39efd3feb6f1088de1cea552401250d5", "score": "0.6183604", "text": "function loginToSystem() {\n $this->model->loginToSystem();\n }", "title": "" }, { "docid": "a4c87c7d8516b660aa14f685d2ce637e", "score": "0.61802715", "text": "public function executeLogin()\n {\n }", "title": "" }, { "docid": "7b4be27ad2bbfc14273bdfa6278ed118", "score": "0.61767644", "text": "public function login()\n {\n $this->session->set($this->sessionKey, $this->adminData);\n }", "title": "" }, { "docid": "ec62c48b84c71c8413509dbe5ef1e5f0", "score": "0.61764365", "text": "function fake_login()\n\t{\n\t\t$this->redirect(array('action' => 'login'));\n\t}", "title": "" }, { "docid": "5886b1361182647600eac1055e6ced52", "score": "0.6174455", "text": "function loginUser(array $request)\n {\n $credentials = $request;\n return parent::loginCore($credentials, CompanyUser::class, USER_GUARD); // check company user's credentials @author Amr\n }", "title": "" }, { "docid": "902e1352c16440bf5fef3317e015676a", "score": "0.6162972", "text": "public function logInAction() {\n $user = $GLOBALS['TSFE']->fe_user->user;\n\n if ($user != NULL) {\n $this->redirect('index', 'Index');\n }\n\n\n if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['loginFormOnSubmitFuncs'])) {\n $_params = array();\n foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['loginFormOnSubmitFuncs'] as $funcRef) {\n list($onSub, $hid) = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::callUserFunction($funcRef, $_params, $this);\n $onSubmitAr[] = $onSub;\n $extraHiddenAr[] = $hid;\n }\n }\n\n if (count($onSubmitAr)) {\n $onSubmit = implode('; ', $onSubmitAr) . '; return true;';\n }\n\n if (count($extraHiddenAr)) {\n $extraHidden = implode(LF, $extraHiddenAr);\n }\n $this->view->assign('storagePid', $this->settings['storagePid']);\n $this->view->assign('onSubmit', $onSubmit);\n $this->view->assign('extraHidden', $extraHidden);\n $this->view->assign('currentPid', \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GP('id'));\n }", "title": "" }, { "docid": "dcdf75e971616e56a85361647f38a06f", "score": "0.6161663", "text": "public function isEnabledFrontendLogin()\n {\n if (!$this->isEnabledFrontend()) {\n return false;\n }\n\n return (bool) $this->scopeConfig->getValue(static::XML_PATH_ENABLED_FRONTEND_LOGIN);\n }", "title": "" }, { "docid": "c6e13ab973a3b6bfc0954ba204f78355", "score": "0.61602527", "text": "public function getUserLogin();", "title": "" }, { "docid": "485af05a64830bf60bf3d1ff7bfe2aab", "score": "0.6152877", "text": "public function isLoginRequired()\n {\n return true;\n }", "title": "" }, { "docid": "9b3c0b775f8b8c9407e24eaa9c8a81f5", "score": "0.61526", "text": "private function logInAsUser()\n {\n $session = $this->client->getContainer()->get('session');\n\n $firewallContext = 'main';\n\n $token = new UsernamePasswordToken('user', null, $firewallContext, array('ROLE_USER'));\n $session->set('_security_'.$firewallContext, serialize($token));\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "title": "" }, { "docid": "5fb524c5918cbdf4ec135ee1823e9f3e", "score": "0.61494917", "text": "public function authenticateAsSuperAdmin()\n {\n $user = factory(User::class)->make([\n 'group' => 1,\n ]);\n\n $this->actingAs($user);\n }", "title": "" }, { "docid": "3fd7cfe009e4587ca18016ce801256d1", "score": "0.612891", "text": "protected function isUserAllowedToLogin()\n {\n return in_array((int)$GLOBALS['TYPO3_CONF_VARS']['BE']['adminOnly'], [0, 2], true);\n }", "title": "" }, { "docid": "7922f2c93f86dcbe068f1308f8b594a9", "score": "0.6114768", "text": "public function getUserLogin()\n {\n return;\n }", "title": "" }, { "docid": "729ba3437841bcd6fff140dc60fb9bfc", "score": "0.61141855", "text": "public static function loginAdmin()\n {\n // appel de la fonction gi génére un nouvel ID de session\n // (mais maintient la donnée) ==> prevent from CROSS attacks\n session_regenerate_id(true);\n $_SESSION['est_connecte_admin'] = true;\n }", "title": "" }, { "docid": "66ef0c54c676f7e4291fb1443bff7df5", "score": "0.6112771", "text": "function core_auth_admin_login($login_data)\n {\n $this->init($login_data['id']);\n if (is_array($this->display) && count($this->display) > 0) {\n return true; //user has permission to view at least one page.\n }\n return null; //This user is not authorized to log in, according to this addon.\n //But return null, to allow other addons to be able to grant permission\n //for user to log in.\n }", "title": "" }, { "docid": "1c05faac0e0023c02c239b524150383d", "score": "0.6111096", "text": "function admin_login() {\r\n\t\t// Setting the correct layout as well as needed view variables\r\n\t\t$this->layout = 'admin_logout';\r\n\t\t$this->set('mainToolbar', $this->model->adminSettings['toolbar']['main']['login']);\r\n\t\t$this->login();\r\n\t}", "title": "" }, { "docid": "e6992ca35c04869890cd501eb92f12b8", "score": "0.6104299", "text": "public function testLoginAdmin()\n {\n \t$admin = factory(User::class)->create(['role_id' => 1]);\n\n \t$response = $this->json('POST', '/api/login', [\n \t\t'email' => $admin->email,\n \t\t'password' => 'secret'\n \t]);\n\n $response->assertStatus(200)->assertJsonStructure(['message', 'user']);\n }", "title": "" }, { "docid": "ca347f50635124ba613e1fb971702fcf", "score": "0.60996544", "text": "public function loginAction()\n {\n if ($this->getAuthService()->hasIdentity()) {\n return $this->redirect()->toRoute('admin');\n }\n\n $form = $this->getForm();\n $request = $this->getRequest();\n $password = '';\n if ($request->isPost()) {\n $form->setData($request->getPost());\n if ($form->isValid()) {\n //check authentication...\n $this->getAuthService()->getAdapter()\n ->setIdentity($request->getPost('username'))\n ->setCredential($request->getPost('password'));\n\n $result = $this->getAuthService()->authenticate();\n foreach ($result->getMessages() as $message) {\n //save message temporary into flashmessenger\n $this->flashmessenger()->addMessage($message);\n }\n\n if ($result->isValid()) {\n $redirect = 'admin';\n /* //check if it has rememberMe :\n if ($request->getPost('rememberme') == 1 ) {\n $this->getSessionStorage()\n ->setRememberMe(1);\n //set storage again\n $this->getAuthService()->setStorage($this->getSessionStorage());\n } */\n // SET Cookies\n $time = ($request->getPost('rememberme') == 1) ? (time() + 365 * 60 * 60 * 24) : (time() - 4);\n $cookie = new SetCookie('username', $request->getPost('username'), $time); // now + 1 year\n $cookie1 = new SetCookie('password', $request->getPost('password'), $time); // now + 1 year\n $cookie2 = new SetCookie('rememberme', $request->getPost('rememberme'), $time); // now + 1 year\n $response = $this->getResponse()->getHeaders();\n $response->addHeader($cookie);\n $response->addHeader($cookie1);\n $response->addHeader($cookie2);\n\n // End set cookies\n $this->getAuthService()->setStorage($this->getSessionStorage());\n $this->getAuthService()->getStorage()->write($request->getPost('username'));\n\n $wp_auth = new FrontEndAuth();\n $wp_auth->wordpress_login($request->getPost('username')); // logging in wordpress account\n\n /* Setting logged in user details in session */\n $user_details = new Container('user_details');\n $user_details->details = array('user_id' => $result->user_id, 'user_type_id' => $result->user_type_id, 'user_name' => $result->getIdentity());\n $user_permission = new Container('user_permission');\n $user_permission->rights = $this->getServiceLocator()->get('Admin\\Model\\UserRightsTable')->getUserRightsArr($result->user_id);\n\n /* set last login time for user - starts here */\n $username = $request->getPost('username');\n $result = $this->getUsersTable()->getUser($username, 'user_name');\n $result->last_login = date('Y-m-d H:i:s', time());\n $this->getUsersTable()->saveUser($result, 'update_last_login');\n /* set last login time for user - ends here */\n }\n }\n return $this->redirect()->toRoute('admin');\n } else {\n\n $username = ($this->getRequest()->getHeaders()->get('Cookie')->username) ? ($this->getRequest()->getHeaders()->get('Cookie')->username) : '';\n $password = ($this->getRequest()->getHeaders()->get('Cookie')->password) ? ($this->getRequest()->getHeaders()->get('Cookie')->password) : '';\n $rememberme = ($this->getRequest()->getHeaders()->get('Cookie')->rememberme) ? ($this->getRequest()->getHeaders()->get('Cookie')->rememberme) : '';\n\n $form->get('username')->setValue($username);\n // $form->get('password')->setValue($password); \n $form->get('rememberme')->setValue($rememberme);\n }\n\n return array(\n 'form' => $form,\n 'passwordVal' => $password,\n 'messages' => $this->flashmessenger()->getMessages()\n );\n }", "title": "" }, { "docid": "fbe7effc605ab7b82cb9400a49635969", "score": "0.6099627", "text": "public function isAlternativeLoginEnabled(): bool;", "title": "" }, { "docid": "b78afe1a4c3d5a49c4486f65a45d934c", "score": "0.609429", "text": "private function login() {\n\t\t$user_id = $this->factory->user->create();\n\t\twp_set_current_user( $user_id );\n\t}", "title": "" }, { "docid": "738ab54dc14edc2d2ad7bb889a771010", "score": "0.60873264", "text": "public function loginAction() {\n if ($this->getRequest()->isPost()) {\n $username = $_POST['username'];\n $password = $_POST['password'];\n $isGuest = false;\n $guestID = -1;\n $db = get_db();\n $userTable = $db->getTable(\"InciteUser\");\n $user = $userTable->findUserByEmailAndPassword($username, md5($password));\n \n if (!is_null($user)) {\n //If there is already a guest session, then combine the guest session with the verified user\n if (isset($_SESSION['Incite']['Guest']) && $_SESSION['Incite']['Guest'] == true) {\n $guestID = $_SESSION['Incite']['USER_DATA']->id;\n $_SESSION['Incite']['IS_LOGIN_VALID'] = true;\n $_SESSION['Incite']['Guest'] = false;\n $_SESSION['Incite']['USER_DATA'] = $user;\n mapAccounts($guestID, $_SESSION['Incite']['USER_DATA']['id']);\n } else {\n system_log('not a guest before login!');\n }\n echo 'true';\n } else {\n echo 'false';\n }\n }\n }", "title": "" }, { "docid": "148a9136eb1a8ce09d06dd0b57814f55", "score": "0.60821384", "text": "private function login() {\n $this->_template->title = 'Login';\n $this->_template->loginErrors = $this->_model->getErrors();\n $this->_template->input = $this->_model->getSubmittedValues();\n $this->_template->missing = $this->_model->getMissingValues();\n $this->_template->token = $this->_security->generateToken();\n if ($this->_model->isJustProcessed()) {\n if (filter_has_var(INPUT_POST, 'login') && $this->_model->isLoggedIn() === false) {\n $this->_template->buildFromTemplates('header.php', 'sidebar.php', 'main.login.php', 'footer.php');\n } elseif ($this->_model->isLoggedIn() === true && $this->_model->isAdmin() === true) {\n $this->_security->deleteTokenFromSession();\n $this->_registry->redirectTo('admin/main');\n } else {\n $this->_security->deleteTokenFromSession();\n $this->_session->exists('url') === true ? $this->_registry->redirectToPrevious() : $this->_registry->redirectTo('account/info'); \n }\n } else {\n if ($this->_model->isLoggedIn() === true) {\n $this->_security->deleteTokenFromSession();\n $this->_session->exists('url') === true ? $this->_registry->redirectToPrevious() : $this->_registry->redirectTo('account/info');\n } elseif ($this->_model->isLoggedIn() === true && $this->_model->isAdmin() === true) {\n $this->_security->deleteTokenFromSession();\n $this->_registry->redirectTo('admin/main');\n } else {\n $this->_template->buildFromTemplates('header.php', 'sidebar.php', 'main.login.php', 'footer.php');\n }\n } \n }", "title": "" }, { "docid": "c00eaea716a5fefcbd2cc5bc106d471f", "score": "0.6073728", "text": "public function testLogin()\n {\n $this->browse(function ($browser) {\n //fill in the credentials and login to admin account\n $browser->visit('/login')\n ->assertSee('E-Mail')\n ->assertSee('Password')\n ->type('email', '12thcanNoReply@gmail.com')\n ->type('password', 'BigBoss12345')\n ->press('Login')\n ->assertSee('Low Inventory');\n });\n }", "title": "" }, { "docid": "468bbc31ce048c75a5417944765bf23a", "score": "0.60675514", "text": "public function testAdminSignedInAsSuperAdmin()\n\t{\n\t\t$superAdmin = factory(App\\User::class, 'superadmin')->create();\n\n\t\t$this->actingAs($superAdmin)\n\t\t\t->visit('/admin')\n\t\t\t->see($this->dashboardString);\n\t}", "title": "" }, { "docid": "62bfedc040ce4a837b50a828eb69fb56", "score": "0.60673517", "text": "private function isFrontendUserLoggedIn(): bool\n {\n return $this->context->getPropertyFromAspect('frontend.user', 'isLoggedIn');\n }", "title": "" }, { "docid": "dd561b085f899073844a216cfd132027", "score": "0.60669094", "text": "function admin_login($gtUsername = null)\n\t\t{\n\t\t\t// by going to localhost/JP/admin/users/login\n\t\t\t// $this->requireLevel('admin');\n\t\t\tif (!empty($this -> data))\n\t\t\t{\n\t\t\t\t$gtUsername = $this -> data['User']['gtUsername'];\n\t\t\t}\n\t\t\tif ($gtUsername != '')\n\t\t\t{\n\t\t\t\t$user = $this -> User -> find('first', array(\n\t\t\t\t\t\t'recursive' => -1,\n\t\t\t\t\t\t'conditions' => array('User.gtUsername' => $gtUsername)\n\t\t\t\t));\n\t\t\t\t$sga = $this -> User -> SgaPerson -> find('first', array(\n\t\t\t\t\t\t'recursive' => -1,\n\t\t\t\t\t\t'conditions' => array('SgaPerson.user_id' => $user['User']['id'])\n\t\t\t\t));\n\t\t\t\t$this -> Session -> write('User.level', 'student');\n\t\t\t\tif ($user['User']['level'] != \"\")\n\t\t\t\t{\n\t\t\t\t\t$this -> Session -> write('User.level', $user['User']['level']);\n\t\t\t\t}\n\t\t\t\t$this -> Session -> write('User.name', $user['User']['name']);\n\t\t\t\t$this -> Session -> write('User.gtUsername', $gtUsername);\n\t\t\t\t$this -> Session -> write('User.id', $user['User']['id']);\n\t\t\t\tif ($user['User']['gtUsername'] != \"\")\n\t\t\t\t\t$this -> Session -> write('User.gtUsername', $user['User']['gtUsername']);\n\n\t\t\t\t$this -> Session -> write('User.phone', $user['User']['phone']);\n\t\t\t\t$this -> Session -> write('User.email', $user['User']['email']);\n\n\t\t\t\tif ($sga != null && $sga['SgaPerson']['house'] != '')\n\t\t\t\t{\n\t\t\t\t\t$this -> Session -> write('SgaPerson.house', $sga['SgaPerson']['house']);\n\t\t\t\t\t$this -> Session -> write('SgaPerson.user_id', $sga['SgaPerson']['user_id']);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1d61c912bf6c719b91d913ec2d02efd4", "score": "0.6065791", "text": "public function loginAdmin(){\n return $this->render('security/loginAdmin.html.twig');\n }", "title": "" }, { "docid": "4c8dcd916be33c3626ce6bbd030064fe", "score": "0.60574794", "text": "public function login(): void\n\t{\n\t\t$this->driver->get(\\App\\Config::main('site_URL') . 'index.php?module=Users&view=Login');\n\t\t$this->driver->findElement(WebDriverBy::id('username'))->sendKeys('demo');\n\t\t$this->driver->findElement(WebDriverBy::id('password'))->sendKeys(\\Tests\\Base\\A_User::$defaultPassrowd);\n\t\t$this->driver->findElement(WebDriverBy::tagName('form'))->submit();\n\t}", "title": "" }, { "docid": "0bfd91142a18126b6f3c7845d378c23d", "score": "0.6057265", "text": "public function testAdminLoginPageIsSuccessful()\n {\n $client = $this->createClient(); // anonymous user\n $client->request('GET', '/admin/login');\n\n $this->assertStatusCode(200, $client);\n }", "title": "" }, { "docid": "0b269e3f92433a515f7484880914a7d8", "score": "0.6056817", "text": "public function adminAuthenticate()\r\n\t{\r\n $adminUserObject = User::model()->findByAttributes(array('email'=>$this->username)); // here I use Email as user name which comes from database\r\n if($adminUserObject===null) {\r\n $this->_id='user Null';\r\n $this->errorCode=self::ERROR_TELEPHONE_INVALID;\r\n } else if(md5($this->password) != $adminUserObject->password) {\r\n $this->_id=$this->id;\r\n $this->errorCode=self::ERROR_PASSWORD_INVALID;\r\n } else {\r\n Yii::app()->user->setState('id',$adminUserObject->id);\r\n $this->_id = $adminUserObject->id;\r\n Yii::app()->user->setState('email',$adminUserObject->email);\r\n // Yii::app()->user->setState('full_name', $adminUserObject->name);\r\n }\r\n return !$this->errorCode;\t\t\r\n\t}", "title": "" }, { "docid": "f6de79fa4f6345cf406aa959f97171cf", "score": "0.6055931", "text": "public function testPagesUserWithCorrectCredentials(): void\n {\n $client = static::createClient();\n $client->setMaxRedirects(2);\n\n $crawler = $client->request('GET', '/private/en/authentication');\n self::assertEquals(\n 200,\n $client->getResponse()->getStatusCode()\n );\n\n $form = $crawler->selectButton('login')->form();\n $this->submitForm($client, $form, [\n 'form' => 'authenticationIndex',\n 'backend_email' => 'pages-user@fork-cms.com',\n 'backend_password' => 'fork',\n 'form_token' => $form['form_token']->getValue(),\n ]);\n\n self::assertContains(\n 'Now editing',\n $client->getResponse()->getContent()\n );\n\n // logout to get rid of this session\n $client->followRedirects(false);\n $client->request('GET', '/private/en/authentication/logout');\n }", "title": "" }, { "docid": "fae44801b78f7ff6b1fcf22cf722f36e", "score": "0.6053993", "text": "public function loginAsGuest($referrer = null, $medium = null);", "title": "" }, { "docid": "d23287b85a0ff497104e5c6de62fd26e", "score": "0.6053518", "text": "public function testLoginPage()\n {\n $this->visit('/login')\n ->type('luke@gmail.com', 'email')\n ->type('secret', 'password')\n ->press('Login')\n ->seePageIs('/dashboard');\n }", "title": "" }, { "docid": "b13c8b5e4f986ee95033700d1f1f7f67", "score": "0.60523516", "text": "public function login() {\n\t\t\techo json_encode(\n Array(\n \"scriptsbefore\" => Array(\n \"0\" => \"wi3.pagefillers.default.edittoolbar.reAuthenticate();\"\n )\n )\n );\n\t\t}", "title": "" }, { "docid": "c68e63ed75577b98d85cc58d52414981", "score": "0.6050368", "text": "function setUp()\r\n {\r\n global $webUrl;\r\n global $SUPER_USER_NAME;\r\n global $SUPER_USER_PASSWORD;\r\n\r\n $this->login($SUPER_USER_NAME, $SUPER_USER_PASSWORD,\r\n \"$webUrl/login.php\");\r\n \r\n return TRUE;\r\n }", "title": "" }, { "docid": "516621c35d0508aa4dad6fe0d2885fe2", "score": "0.60378957", "text": "public function testUsersUserWithCorrectCredentials(): void\n {\n $client = static::createClient();\n $client->setMaxRedirects(2);\n\n $crawler = $client->request('GET', '/private/en/authentication');\n self::assertEquals(\n 200,\n $client->getResponse()->getStatusCode()\n );\n\n $form = $crawler->selectButton('Log in')->form();\n $this->submitForm($client, $form, [\n 'form' => 'authenticationIndex',\n 'backend_email' => 'users-edit-user@fork-cms.com',\n 'backend_password' => 'fork',\n 'form_token' => $form['form_token']->getValue(),\n ]);\n\n self::assertContains(\n 'Edit profile',\n $client->getResponse()->getContent()\n );\n\n // logout to get rid of this session\n $client->followRedirects(false);\n $client->request('GET', '/private/en/authentication/logout');\n }", "title": "" }, { "docid": "7a9e1126fc7572f3f63823df59b850ed", "score": "0.6037097", "text": "public function adminlogin()\n\t\t{\n\t\t\t$logger = Logger::getLogger(__CLASS__);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$_AppUser = new AppUser();\n\t\t\t\treturn $this->view->output($_AppUser, \"plaintemplate\");\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": "985c64311942c6aa68d6b3e190e9c5ba", "score": "0.6033344", "text": "public function loginCheckAction()\n {\n // handled by the symfony to check the username and password in the db\n }", "title": "" }, { "docid": "39bc6d4b7facefbbddf8f43626bc5c6c", "score": "0.60250896", "text": "public function login() {\n $user = 'testUser';\n $password = 'testPassword';\n\n // Enter user and password into inputs\n $this->byID( 'user_login' )->value( $user );\n $this->byID( 'user_pass' )->value( $password );\n\n // Click the login button\n $this->byID( 'wp-submit' )->submit();\n\n // Check correct web page\n $this->assertEquals( 'Dashboard ‹ Georgian Chant — WordPress', $this->title() );\n }", "title": "" }, { "docid": "453d737d1282c5cc409e29169ecb858c", "score": "0.60222346", "text": "public function core_auth_admin_user_login($vars)\n {\n //$vars will be an array like so:\n $vars = array (\n 'userId' => $user_id,\n 'session' => $admin_session_id\n );\n\n //We are neither granting, nor denying access, returning null says we\n //don't care too much either way. (return true to grant access, false\n //to deny access)\n return null;\n }", "title": "" }, { "docid": "af597e1938b193caafec7f81132664e4", "score": "0.6019776", "text": "public function actionLogin()\n {\n if (!\\Yii::$app->user->isGuest) {\n return $this->goHome();\n }\n\n $model = new LoginForm();\n if ($model->load(Yii::$app->request->post()) && $model->loginAdmin()) {\n return $this->goBack();\n } else {\n return $this->render('login', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "6c91f8cecb9aad6aa9359b1e68aa6026", "score": "0.6015396", "text": "public function loginInstant(){\r\r\n $this->forbiddenToMember();\r\r\n if(!empty($_POST)){\r\r\n $auth = new DBAuth(App::getInstance()->getDb());\r\r\n if($auth->login($_POST['pseudo'], $_POST['password'])){\r\r\n $this->sendMessagetoCLI(\"Une session viens d'etre creer pour \". $_SESSION['pseudo'], 4);\r\r\n header('Location:?page=game.overview');\r\r\n\r\r\n } else {\r\r\n $errors = true;\r\r\n $form = new BootstrapForm($_POST);\r\r\n $this->render('users.login', compact('form', 'errors'));\r\r\n }\r\r\n }\r\r\n }", "title": "" }, { "docid": "7363da67cf3be2713d191ad13509b843", "score": "0.6014074", "text": "function setUp()\r\n {\r\n global $webUrl;\r\n global $SUPER_USER_NAME;\r\n global $SUPER_USER_PASSWORD;\r\n $this->login($SUPER_USER_NAME, $SUPER_USER_PASSWORD,\r\n \"$webUrl/login.php\");\r\n\r\n return TRUE;\r\n }", "title": "" }, { "docid": "9845c943ea8d23f2065ea82c2ba842a3", "score": "0.60116637", "text": "public function actionLogin()\n {\n $this->setUpLayout('login');\n\n /** @var LoginForm $model */\n $model = $this->adminModule->createModel('LoginForm');\n $token = \\Yii::$app->request->get('token');\n\n\n if (!Yii::$app->user->isGuest && empty($token)) {\n return $this->goHome();\n }\n\n //login by token and redirect\n if (!empty($token)) {\n $this->loginByToken($model, $token);\n }\n\n if ($model->load(Yii::$app->request->post())) {\n\n if ($this->adminModule->allowLoginWithEmailOrUsername) {\n $user = User::findByUsernameOrEmail($model->usernameOrEmail);\n } else {\n $user = User::findByUsername($model->username);\n }\n\n if (is_null($user)) {\n if ($this->adminModule->allowLoginWithEmailOrUsername) {\n $inactiveUser = User::findByUsernameOrEmailInactive($model->usernameOrEmail);\n } else {\n $inactiveUser = User::findByUsernameInactive($model->username);\n }\n\n if (!is_null($inactiveUser)) {\n return $this->redirect('/admin/security/reactivate-profile?userdisabled');\n }\n\n // Trigger validation for password check\n $model->validate();\n\n return $this->render('login', [\n 'model' => $model,\n ]);\n }\n\n if ($model->login()) {\n /* per amos */\n if (isset(\\Yii::$app->params['template-amos']) && \\Yii::$app->params['template-amos']) {\n $ruolo = \\Yii::$app->authManager->getRole($model->ruolo);\n $userId = \\Yii::$app->getUser()->getId();\n \\Yii::$app->authManager->revokeAll($userId);\n \\Yii::$app->authManager->assign($ruolo, $userId);\n }\n\n //Autogenerated reset widgets\n if (isset(\\Yii::$app->params['template-amos']) && \\Yii::$app->params['template-amos'] && !is_null(Yii::$app->getModule('build'))) {\n $this->run('/build/default/crea-dashboard');\n }\n\n // if google contact service enabled reload in session some contact data by google account\n AmosAdmin::fetchGoogleContacts();\n\n //Social Auth trigger\n $socialModule = Yii::$app->getModule('socialauth');\n\n //If the module is enabled then create social user\n if ($socialModule && $socialModule->id) {\n //Provider is in session\n $provider = Yii::$app->session->get('social-match');\n\n //If is set social match i nett to link user\n if ($provider) {\n //pre-compile with social-auth session data\n $socialProfile = \\Yii::$app->session->get('social-profile');\n\n //The user profile\n $userProfile = $user->profile;\n\n //Create link\n $this->createSocialUser($userProfile, $socialProfile, $provider);\n }\n }\n\n /** @var $response Response */\n// $response = $this->goBack();\n//// $current = Url::();\n// $anchor = preg_match('/#(.)+/', $_SERVER['HTTP_REFERER']);\n//\n// pr($anchor);die;\n// $url = $response->headers['location'].$anchor;\n// return $this->redirect($url);\n return $this->goBack();\n } else {\n return $this->render('login', [\n 'model' => $model,\n ]);\n }\n } else {\n\n //pre-compile with social-auth session data\n $socialProfile = \\Yii::$app->session->get('social-profile');\n\n if ($socialProfile) {\n $model->username = $socialProfile->email;\n }\n\n return $this->render('login', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "e0f4df85ef1765fa9ac4c43821b171ed", "score": "0.60088706", "text": "public static function frontend_user_logged_in(){\n $is_logged_in = false;\n \n if(Session::has('scoutpad_frontend_user_id') && Session::has('scoutpad_frontend_user_verified')){\n $is_logged_in = true;\n }\n \n return $is_logged_in;\n }", "title": "" }, { "docid": "3152386dd010034157bc0d22e792825c", "score": "0.6006035", "text": "public function testNegativeOfLogin()\n {\n $user = User::first();\n\n $this->browse(function (Browser $browser) use ($user) {\n $browser->maximize()\n ->visit('/')\n ->type('email', $user->email)\n ->type('password', 'passwordSalah')\n ->press('SIGN IN')\n ->assertSee('These credentials do not match our records.');\n });\n }", "title": "" }, { "docid": "61440c62a2f8a78b7f72510eb021fcda", "score": "0.59985924", "text": "public function login()\r\n {\r\n if(!$this->validate()) \r\n {\r\n return false;\r\n }\r\n \r\n // If login failed.\r\n if(!$result = \\Yii::$app->user->login($this->_user, $this->rememberMe ? 3600 * 24 * 30 : 0))\r\n {\r\n throw new \\yii\\web\\HttpException(503, 'There was a problem during login.'); // Service unavailable.\r\n }\r\n \r\n // If user login has been temporarily disabled, users with enough rights can always log in.\r\n if( !in_array($this->_user->username, Yii::$app->params['app.special_users']) &&\r\n !Yii::$app->user->can('YiingineBlockBypass') &&\r\n Yii::$app->getParameter('yiingine.users.disable_user_accounts', false)\r\n )\r\n { \r\n Yii::$app->user->logout();\r\n // Service unavailable.\r\n throw new \\yii\\web\\HttpException(503, Yii::t(__CLASS__, 'User accounts have been disabled'));\r\n }\r\n \r\n //Set the lastvisit date time.\r\n $this->_user->detachBehavior('ActiveRecordLockingBehavior');\r\n $this->_user->lastvisit = date(\\yiingine\\libs\\Functions::$MySQLDateTimeFormat, time());\r\n \r\n if(!$this->_user->save()) // If saving the user failed. \r\n { \r\n throw new \\yii\\base\\Exception($this->_user->getFirstError());\r\n }\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "3d4d451730713b4fb935451107ba0772", "score": "0.59971464", "text": "public function actionLogin()\n\t{\n// \t\tif(substr(strrchr(Yii::app()->user->returnUrl, '/'), 1) !='' && substr(strrchr(Yii::app()->user->returnUrl, '/'), 1)!='index.php')\n// \t\t\techo '<script>alert(\"Session Timeout\");</script>';\n\t\t\n\t\t//Yii::app()->theme = 'classic';\n\t\tif (Yii::app()->user->isGuest) {\n\t\t\t$model=new AdminLogin;\n\t\t\t\t\t\t\n\t\t\t// collect user input data\n\t\t\tif(isset($_POST['AdminLogin']))\n\t\t\t{\n\t\t\t\t$model->attributes=$_POST['AdminLogin'];\n\t\t\t\t// validate user input and redirect to previous page if valid\n\t\t\t\tif($model->validate()) {\n\t\t\t\t\t$this->lastViset();\n\t\t\t\t\t$profile = $this->loadUser()->profile;\n\t\t\t\t\t$timezone = $profile->getAttribute('timezone');\n\t\t\t\t\tYii::app()->session['user_timezone'] = $timezone;\n\t\t\t\t\t$language = $profile->getAttribute('language');\n\t\t\t\t\t\n\t\t\t\t\t$user_timezone = new DateTimeZone(Yii::app()->session['user_timezone']);\n\t\t\t\t\t$dateTimeUser = new DateTime(\"now\", $user_timezone);\n\t\t\t\t\t$timeOffset = $dateTimeUser->getOffset();\n\t\t\t\t\t\n\t\t\t\t\tif ($timeOffset<0) {\n\t\t\t\t\t\tYii::app()->session['user_timezone_diff'] = \"-\".date(\"H:i\",abs($timeOffset));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tYii::app()->session['user_timezone_diff'] = \"+\".date(\"H:i\",abs($timeOffset));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ($language){\n\t\t\t\t\t\tYii::app()->session['language'] = $language;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->getBrowserLang();\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t\tYii::app()->session['upload_rootpath'] = Yii::app()->user->id;\n\t\t\t\t\t//$_SESSION['upload_rootpath'] = Yii::app()->user->id;\n\t\t\t\t\tif (strpos(Yii::app()->user->returnUrl,'/admin.php')!==false)\n\t\t\t\t\t\t$this->redirect(Yii::app()->controller->module->returnUrl);\n\t\t\t\t\telseif(substr(strrchr(Yii::app()->user->returnUrl, '/'), 1) !='' && substr(strrchr(Yii::app()->user->returnUrl, '/'), 1)!='index.php')\n\t\t\t\t\t\t$this->redirect(Yii::app()->user->returnUrl);\n\t\t\t\t\telse\n\t\t\t\t\t\t$this->redirect(Yii::app()->request->baseUrl.'/appVersion');\n\t\t\t\t}else{\n\t\t\t\t\t$errMsgArray = $model->getErrors();\n\t\t\t\t\t$errMsg = \"Error\";\n\t\t\t\t\tif (isset($errMsgArray['status'])){\n\t\t\t\t\t\t$errMsg = $errMsgArray['status'][0];\n\t\t\t\t\t}elseif (isset($errMsgArray['username'])){\n\t\t\t\t\t\t$errMsg = $errMsgArray['username'][0];\n\t\t\t\t\t}\n\t\t\t\t\telseif (isset($errMsgArray['password'])){\n\t\t\t\t\t\t$errMsg = $errMsgArray['password'][0];\n\t\t\t\t\t}\n\t\t\t\t\tYii::app()->user->setFlash('loginMessage',$errMsg);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->getBrowserLang();\n\t\t\t// display the login form\n\t\t\t$this->render('login',array('model'=>$model));\n\t\t} else\n\t\t\t$this->redirect(Yii::app()->controller->module->returnUrl);\n\t}", "title": "" }, { "docid": "ef2e918118b485fc302b64f4d855a2f8", "score": "0.59964067", "text": "public function testCorrectLogin()\n {\n $output = new \\Codeception\\Lib\\Console\\Output([]);\n\n $index = rand(0, 9);\n $output->writeln(\"\\n\\nGrab user fixture by id as user{$index}\");\n $sample = $this->tester->grabFixture('user')->data['user' . $index];\n\n $input = [\n 'mobile' => $sample['mobile'],\n 'password' => 'password_' . $index,\n ];\n\n $model = new LoginForm($input);\n $user = User::findOne(['mobile' => $sample['mobile']]);\n\n expect($user)->notNull();\n\n if ($model->hasErrors()) {\n $output->writeln($model->getFirstErrors());\n }\n\n $token = $model->login();\n\n if ($user->status == User::STATUS_BLOCK) {\n $output->writeln(\"User is block. Token do not generated!\");\n expect($token)->null();\n } else {\n $output->writeln(\"User is valid. token generated.\");\n /** @var User|null $user */\n $user = User::findIdentityByAccessToken($token, 'yii\\filters\\auth\\HttpBearerAuth');\n\n expect($user)->isInstanceOf('common\\models\\User');\n expect($user->mobile)->equals(Normalize::normalizeMobile($sample['mobile']));\n }\n\n }", "title": "" }, { "docid": "13621fcb50f693d3c635b7febc7885ea", "score": "0.59907305", "text": "public function logs_users_in_to_web_app()\n {\n $password = Str::random(12);\n\n $user = factory(User::class)->create([\n 'password' => Hash::make($password),\n ]);\n\n $this->postJson(route('v1.login'), [\n 'email' => $user->email,\n 'password' => $password,\n 'remember' => 1,\n ], ['referer' => config('app.url')])\n ->assertStatus(200)\n ->assertJsonStructure([\n 'id',\n 'email',\n ]);\n\n $this->assertEquals($user->getAuthIdentifier(), Auth::user()->getAuthIdentifier());\n }", "title": "" }, { "docid": "2dbab89b2b6815c5f28a9febbee366ac", "score": "0.59890366", "text": "public function user_can_login()\n {\n $this->browse(function (Browser $browser) {\n\n //Need create user account\n $user1 = User::create(\n [\n 'name' => 'Keith',\n 'email' => 'keith@test.com',\n 'password' => bcrypt('nisbets')\n ]\n );\n\n $browser->visit('/login')\n ->type('email',$user1->email)\n ->type('password','nisbets')\n ->click('button[type=\"submit\"]')\n ->assertSeeIn('#accountName', $user1->name)\n //Success login message - not yet implement\n ->assertDontSeeIn('nav', 'Login')\n ->assertDontSeeIn('nav', 'register')\n ->logout()\n ;\n });\n }", "title": "" }, { "docid": "9514d99550eff440a3a6aa68f327488a", "score": "0.5988337", "text": "public function loginEditor()\n {\n $this->logout();\n \n // create a fake identity\n $identity = new stdClass();\n $identity->role = 'editor';\n $identity->username = 'gfuller2';\n $identity->first_name = 'Gareth';\n $identity->last_name = 'Fuller';\n $identity->active = 1;\n \n // Push our fake identity into the auth storage\n Zend_Auth::getInstance()->getStorage()->write($identity);\n \n // Run a test to make sure we have aithentification\n $auth = Zend_Auth::getInstance();\n $this->assertTrue($auth->hasIdentity());\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "1e43f3d3b2f3866101c5634098486ad9", "score": "0.7079807", "text": "public function show(Resource $resource)\n {\n return view('resources.show')->with('resource', $resource);\n }", "title": "" }, { "docid": "1e43f3d3b2f3866101c5634098486ad9", "score": "0.7079807", "text": "public function show(Resource $resource)\n {\n return view('resources.show')->with('resource', $resource);\n }", "title": "" }, { "docid": "05b525c46e58ebdea607568ba7e031f9", "score": "0.699911", "text": "public function show(Resource $resource)\n {\n return view('admin.resources.show', compact('resource'));\n }", "title": "" }, { "docid": "4374562bd3b3c76899b3d68131e9a081", "score": "0.68174225", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\r\n {\r\n $this->_smarty->fetch($resource_name, $cache_id, $compile_id, true);\r\n }", "title": "" }, { "docid": "511a03741cea7982a95e0898bd8c8015", "score": "0.6725235", "text": "public function showResourceItem(array $data);", "title": "" }, { "docid": "6056fa21e4d2ebaac57d6ae22cfb4260", "score": "0.6548998", "text": "public function show(Request $request, $resource)\n { \n presenting_resource($resource);\n\n return $this->resource($resource);\n }", "title": "" }, { "docid": "1c52708cb57fd592777a5112fceca4f9", "score": "0.6427337", "text": "public function indexAction($resource)\n {\n parent::staticResource($resource);\n }", "title": "" }, { "docid": "02342204dff832c132b8ce831e17a092", "score": "0.63763934", "text": "public function get( $resource );", "title": "" }, { "docid": "38d4e6796db39109f0d6935dfd120534", "score": "0.6311607", "text": "public function retrieve(Resource $resource);", "title": "" }, { "docid": "54166e0b4bd59c6836b3f61a27596a54", "score": "0.6273021", "text": "public function viewResource($resourceController, $id) {\n $wrapper = $resourceController->wrapper($id);\n return $this->serialize(self::getData($wrapper));\n }", "title": "" }, { "docid": "31fd7f5a71b2af075f21c41c3d288e5e", "score": "0.62364846", "text": "public function show($id)\n {\n $resource = Resource::findorfail($id);\n return view('resources.show', ['resource'=>$resource]);\n }", "title": "" }, { "docid": "cf59458dc7815f856881d0a5db80dfc2", "score": "0.6228283", "text": "public function show(Resource $resource)\n {\n ResourceResource::withoutWrapping();\n\n return new ResourceResource($resource);\n }", "title": "" }, { "docid": "83bb7b752846f0cc3eb62e3fff19d079", "score": "0.61094654", "text": "public function displayAction()\r\n {\r\n // set filters and validators for GET input\r\n $filters = array(\r\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\r\n ); \r\n $validators = array(\r\n 'id' => array('NotEmpty', 'Int')\r\n );\r\n $input = new Zend_Filter_Input($filters, $validators);\r\n $input->setData($this->getRequest()->getParams());\r\n\r\n // test if input is valid\r\n // retrieve requested record\r\n // attach to view\r\n if ($input->isValid()) {\r\n $q = Doctrine_Query::create()\r\n ->from('Square_Model_Item i')\r\n ->leftJoin('i.Square_Model_Country c')\r\n ->leftJoin('i.Square_Model_Grade g')\r\n ->leftJoin('i.Square_Model_Type t')\r\n ->where('i.RecordID = ?', $input->id);\r\n $result = $q->fetchArray();\r\n if (count($result) == 1) {\r\n $this->view->item = $result[0]; \r\n } else {\r\n throw new Zend_Controller_Action_Exception('Page not found', 404); \r\n }\r\n } else {\r\n throw new Zend_Controller_Action_Exception('Invalid input'); \r\n }\r\n }", "title": "" }, { "docid": "c0f2735f053c6a5a3e8867a70d986464", "score": "0.6095133", "text": "function display($resource_name = null, $cache_id = null, $compile_id = null, $display = false) {\n\t\tglobal $pommo;\n\n\t\tif(!$this->templateExists($resource_name)) {\n\t\t\tPommo :: kill(sprintf(Pommo::_T('Template file (%s) not found in default or current theme'), $resource_name), true, true);\n\t\t}\n\n\t\tif ($pommo->_logger->isMsg())\n\t\t\t$this->assign('messages', $pommo->_logger->getMsg());\n\t\tif ($pommo->_logger->isErr())\n\t\t\t$this->assign('errors', $pommo->_logger->getErr());\n\t\t\t\n\t\treturn parent :: display($resource_name, $cache_id = null, $compile_id = null, $display = false);\n\t}", "title": "" }, { "docid": "1aeacbffda6650974375c42070cae740", "score": "0.6069593", "text": "public function show($id)\n {\n //\n return Resource::find($id);\n }", "title": "" }, { "docid": "7ec97073766288c908c352bcddc36a14", "score": "0.60485154", "text": "public function show($id)\n\t{\n\t\t$resource = $this->getResourceRepository()->find($id);\n\n if($resource) {\n return $this->apiResponse->success($resource->toArray());\n }\n\n return $this->apiResponse->failed(array(\"resource not found\"), 404, \"Resource not found\");\n\t}", "title": "" }, { "docid": "412f76bcd34cbd9d455a43614efe905d", "score": "0.6027944", "text": "public function single(){\n \n $this->display();\n }", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "8b1101140a2110ae57f11fa001bc879a", "score": "0.59651244", "text": "public function actionShow() {\n\n $workspace = $this->getSpace();\n $this->render('show', array('workspace' => $workspace));\n }", "title": "" }, { "docid": "8bc1c5b8544b92e4394c7b7553267dc3", "score": "0.5931247", "text": "public function show($id)\n\t{\n $model = $this->model;\n $resource = $model::find($id);\n\n if (!$resource) {\n return Response::apiNotFound();\n } else {\n\t\t return Response::api(['resource' => $resource]);\n }\n\t}", "title": "" }, { "docid": "0b4e77112a7869cf0d904b30e184112a", "score": "0.5922144", "text": "public function display()\r\n {\r\n $this->client = $this->get( 'client' );\r\n \r\n parent::display();\r\n }", "title": "" }, { "docid": "a6688716096de732ac676d2606652404", "score": "0.5905599", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "eddab4555ac4a572fa5a763f4e0471fc", "score": "0.58919686", "text": "public function show(HTTP_Request $request, HTTP_Response $response);", "title": "" }, { "docid": "0c9be934bd18c758ee8036136e38ca6d", "score": "0.586946", "text": "public function resource($resource)\n {\n return $this->_returnContent(\n 'resource://' . $resource->getResource()->getSha1()\n );\n }", "title": "" }, { "docid": "6fbb381f7148aba7574dc29413d87f90", "score": "0.5863148", "text": "public function display($id)\n {\n\n\n\n }", "title": "" }, { "docid": "ff6b8314d3827e83bc6f916f611deecc", "score": "0.5861292", "text": "public final function display()\n\t{\n\t\techo $this->fetch();\n\t}", "title": "" }, { "docid": "d9a6eb41dd9fbf426113fcd8b0ba834e", "score": "0.58584934", "text": "public function showAction()\n {\n $album = $this->_getAlbumById($this->_getParam('id'));\n $this->view->album = $album;\n $this->view->artist = $album->findParentRow('Model_Artist');\n }", "title": "" }, { "docid": "5781a2d120285a71e7e85b5a66be6d25", "score": "0.5857818", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit')->with('resource', $resource);\n }", "title": "" }, { "docid": "fb50b97152154644c43c75ade8145487", "score": "0.5847528", "text": "public function show($id)\n\t{\n\t\treturn $this->resource->find($id);\n\t}", "title": "" }, { "docid": "8827cab97e78bc260c04825c9bb3d30a", "score": "0.5832523", "text": "public\n\t\tfunction show($id)\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "1859e20a258f6d15d4629c6689c04084", "score": "0.5794996", "text": "public function show()\n\t{\n\t\t\n\n\t}", "title": "" }, { "docid": "55ebb313f26c5900b8cfe594dfa4e5eb", "score": "0.57751614", "text": "public function display() {\n\t\techo $this->render();\n\t}", "title": "" }, { "docid": "b305d1a5fdddca312c53a5b0873ba322", "score": "0.5764189", "text": "public function get(string $resource, int $id);", "title": "" }, { "docid": "e85f77f9bd4a383aa63ea576917efd8b", "score": "0.57539546", "text": "public function show(Respon $respon)\n {\n //\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "bd887cc40d240b6d393f5e769c337a39", "score": "0.5715846", "text": "public function display()\n {\n echo $this->tplObj->fetch();\n }", "title": "" }, { "docid": "056b3dd2a38f029f5eae7e6137d14e09", "score": "0.5703375", "text": "public function show($id)\n\t{\n\t\t$data = $this->resource->show($id);\n\t\treturn $this->responseMessage($data);\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": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "8a051215912849e35253d096a8bfd6b8", "score": "0.56884444", "text": "public function show($object)\n {\n //\n }", "title": "" }, { "docid": "f16e75f4649c770d9e84451bfcb472f1", "score": "0.5685978", "text": "public function show(Capacity $capacity)\n {\n //\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": "" }, { "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": "" } ]
0d6ffdd0bb112f05af0b3aa7144d8030
Delete all comments for given ids
[ { "docid": "31b17eda44bd08e57651105dd66688ad", "score": "0.76674265", "text": "public static function deleteCommentsByIds($ids)\n\t{\n\t\tif (is_array($ids)) {\n\t\t\tif (count($ids)) {\n\t\t\t\t$db = JCommentsFactory::getDBO();\n\t\t\t\t$db->setQuery(\"SELECT DISTINCT object_group, object_id FROM #__jcomments WHERE parent IN (\" . implode(',', $ids) . \")\");\n\t\t\t\t$objects = $db->loadObjectList();\n\n\t\t\t\tif (count($objects)) {\n\t\t\t\t\trequire_once (JCOMMENTS_LIBRARIES . DS . 'joomlatune' . DS . 'tree.php');\n\n\t\t\t\t\t$descendants = array();\n\n\t\t\t\t\tforeach ($objects as $o) {\n\t\t\t\t\t\t$query = \"SELECT id, parent\"\n\t\t\t\t\t\t\t\t. \"\\nFROM #__jcomments\"\n\t\t\t\t\t\t\t\t. \"\\nWHERE `object_group` = \" . $db->Quote($o->object_group)\n\t\t\t\t\t\t\t\t. \"\\nAND `object_id` = \" . $db->Quote($o->object_id);\n\t\t\t\t\t\t$db->setQuery($query);\n\t\t\t\t\t\t$comments = $db->loadObjectList();\n\n\t\t\t\t\t\t$tree = new JoomlaTuneTree($comments);\n\n\t\t\t\t\t\tforeach ($ids as $id) {\n\t\t\t\t\t\t\t$descendants = array_merge($descendants, $tree->descendants((int) $id));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunset($tree);\n\t\t\t\t\t\t$descendants = array_unique($descendants);\n\t\t\t\t\t}\n\t\t\t\t\t$ids = array_merge($ids, $descendants);\n\t\t\t\t}\n\t\t\t\tunset($descendants);\n\n\t\t\t\t$ids = implode(',', $ids);\n\n\t\t\t\t$db->setQuery(\"DELETE FROM #__jcomments WHERE id IN (\" . $ids . \")\");\n\t\t\t\t$db->query();\n\n\t\t\t\t$db->setQuery(\"DELETE FROM #__jcomments_votes WHERE commentid IN (\" . $ids . \")\");\n\t\t\t\t$db->query();\n\n\t\t\t\t$db->setQuery(\"DELETE FROM #__jcomments_reports WHERE commentid IN (\" . $ids . \")\");\n\t\t\t\t$db->query();\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "bcfdbfe114bb5e2b5e036ce4df2286fc", "score": "0.7283567", "text": "function delete($ids);", "title": "" }, { "docid": "a9576501da2f4396c3d2de8d0a12e475", "score": "0.72658384", "text": "public function deleteMultiple($ids)\n {\n return $this->job_comment->whereIn('id', $ids)->delete();\n }", "title": "" }, { "docid": "22d7c7b6597eed84d3e16cd20a530f94", "score": "0.711968", "text": "public function deleteByIds(array $ids) {}", "title": "" }, { "docid": "b8ddb14b7316e2710afa6f8b2744239a", "score": "0.70010954", "text": "public function delete(array $ids): void;", "title": "" }, { "docid": "a8cd1781286b164c2261804154fa2654", "score": "0.69591296", "text": "public function deleteByIds(array $ids);", "title": "" }, { "docid": "bc665850c0d753f2e0dcbdc5f63a386c", "score": "0.6872151", "text": "public function deleteAllReplies($comment_id){\n $this->db->where('comment_id', $comment_id);\n $this->db->delete('comment_reply');\n }", "title": "" }, { "docid": "bb3150dfaeca56b81f33796f710cde89", "score": "0.6825582", "text": "public function deleteReviews($ids = array()) {\n if (!empty($ids)) {\n $db = $this->getAdapter();\n $condition = array('id IN(?)' => $ids);\n return $result = $db->delete($this->_review_master, $condition);\n }\n }", "title": "" }, { "docid": "ef9c48969ba325050bd5e48f9101d6db", "score": "0.6738251", "text": "function deleteAllRecipeComments() {\n $ids = array();\n if (in_array('all',$_POST['cats'])) {\n mysql_query(\"TRUNCATE TABLE \".$this->prefix.\"comments\") or die(mysql_error());\n mysql_query(\"UPDATE \".$this->prefix.\"recipes SET comCount = '0'\") or die(mysql_error());\n } else {\n $query = mysql_query(\"SELECT * FROM \".$this->prefix.\"recipes\n WHERE cat IN (\".implode(',',$_POST['cats']).\")\n \") or die(mysql_error());\n while ($RECIPE = mysql_fetch_object($query)) {\n $ids[] = $RECIPE->id;\n }\n if (!empty($ids)) {\n mysql_query(\"DELETE FROM \".$this->prefix.\"comments\n WHERE recipe IN (\".implode(',',$ids).\")\n \") or die(mysql_error());\n mysql_query(\"UPDATE \".$this->prefix.\"recipes SET\n comCount = '0'\n WHERE id IN (\".implode(',',$ids).\")\n \") or die(mysql_error());\n }\n }\n}", "title": "" }, { "docid": "536dfa929026ebd39399905ea2562b75", "score": "0.6736006", "text": "public function delete_all(){\r\n\t\t\t$ids = $this->input->post('ids');\r\n\t\t\tforeach ($ids as $id) {\r\n\t\t\t\t$this->_del($id,false);\t\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "2f598fd0a85acf90772f176ad0da8a25", "score": "0.6651665", "text": "public function deleteAllByUser($userId) {\n $this->getDb()->delete('commentaires', array('user_id' => $userId));\n }", "title": "" }, { "docid": "e3030a83704b608f72aa3083e4b0a65c", "score": "0.6588804", "text": "public function delete_many_by_id($ids)\n {\n }", "title": "" }, { "docid": "b8ca28c1e54a74aea1f0c2d7767af976", "score": "0.6552631", "text": "public function deleteAllByUser($userId) {\n $this->getDb()->delete('t_comment', array('usr_id' => $userId));\n }", "title": "" }, { "docid": "edcedd1bbe00a07bf4b79c92ad6c1ddc", "score": "0.6551443", "text": "public function delAll($id) { return $this->del(\"id1=$id OR id2=$id\"); }", "title": "" }, { "docid": "aca4dbe4d18474d868477c31ca8f86c3", "score": "0.64874554", "text": "public function deleteComments(?int $id): void\n {\n $query = Database::getDb()->prepare(\"DELETE FROM comments WHERE id = :id\");\n $query->execute([\"id\" => $id]);\n }", "title": "" }, { "docid": "85280ab90290b19f54a9dc5d4fac7dbb", "score": "0.6484838", "text": "function deleteByObjectIds($ids) {\n cache_remove_by_pattern('object_assignments_*');\n return Assignments::delete(array('object_id IN (?)', $ids));\n }", "title": "" }, { "docid": "600da65f8cee6d6fe77a708965b82efd", "score": "0.6462049", "text": "public function delete_all()\n {\n $id = $this->input->post('ids');\n if (!empty($id)) {\n foreach ($id as $key => $v) {\n $this->__del($v,false);\n }\n \n }\n }", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.6379236", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.6379236", "text": "public function deleteAll();", "title": "" }, { "docid": "0c01e10b3301ffbd715ed6dcbb5dfca3", "score": "0.6361481", "text": "public function bulk_destroy(Request $request)\n {\n $comments = Comment::find($request->ids);\n\n foreach ($comments as $comment) {\n $comment->delete();\n }\n \n Flash::success(trans('backend.deleted_successfully'));\n $Currentlanguage = Lang::getLocale();\n return redirect(''.$Currentlanguage.'/admin/comments');\n }", "title": "" }, { "docid": "2094f09a01dd83756efb29e9826e7400", "score": "0.6356119", "text": "public function galleryDelete($ids) {\n\t\tforeach($ids as $id) {\n\t\t\n\t\t\t$this->db->delete('gallery', \"id = '$id'\");\n\t\t}\n\t}", "title": "" }, { "docid": "764b8a3a5b0a041c8fe3efaa0a003c1d", "score": "0.6355347", "text": "public function clean($deleteIds);", "title": "" }, { "docid": "dc7a877bf7bd7beef5d8d8fbfe58b38f", "score": "0.63542396", "text": "public function deletePosts(array $ids)\n {\n DB::delete('blogposts', $ids);\n \n foreach($ids as $id)\n {\n Comments_Model::deleteCommentsFor($id, 'blogpost');\n }\n \n self::updateFeed();\n }", "title": "" }, { "docid": "2e9d1b91e34f9bb805f4a9b77e939012", "score": "0.62559617", "text": "public function deleteComments($id){\r\n $this->db->where('k_id_primary',$id);\r\n $this->db->delete('reporte_comentario');\r\n $error = $this->db->error();\r\n if ($error['message']) {\r\n return $error;\r\n }else{\r\n return \"ok\";\r\n }\r\n }", "title": "" }, { "docid": "ed05f1ad73b4eaae26be99eb7984c6c1", "score": "0.62489283", "text": "function delete( $id ) {\n\t\t// Which means we need to get all the comments first.\n\t\t$this->db->select(\t'comments_conversations.id' );\n\t\t$this->db->from(\t'comments_conversations'\t);\n\t\t$this->db->where(\t'conversation_id', $id \t\t);\n\t\t$results = $this->db->get();\n\t\t$comment_ids = array();\n\t\tforeach( $results->result() as $result ) {\n\t\t\tarray_push( $comment_ids, $result->id );\n\t\t}\n\n\t\t// Now delete the votes and attachments for these comments\n\t\tif( count( $comment_ids ) > 0 ) {\n\n\t\t\t// Votes\n\t\t\t$this->db->where_in( 'comment_conversation_id', $comment_ids );\n\t\t\t$this->db->delete( 'vote_comments_conversations' );\n\n\t\t\t// Attachments\n\t\t\t$this->db->where(\t\t'comment_type', \t'conversation' );\n\t\t\t$this->db->where_in(\t'comment_id',\t\t$comment_ids );\n\t\t\t$this->db->delete(\t\t'comments_attachments' );\n\t\t}\n\n\n\t\t// Now do the rest\n\t\t$this->db->delete( 'comments_conversations',\tarray( 'conversation_id'\t=> $id)); \n\t\t$this->db->delete( 'vote_conversations',\t\tarray( 'conversation_id'\t=> $id)); \n\t\t$this->db->delete( 'tags_conversations',\t\tarray( 'conversation_id'\t=> $id)); \n\t\t$this->db->delete( 'conversations',\t\t\t\tarray( 'id'\t\t\t\t\t=> $id)); \n\t}", "title": "" }, { "docid": "00c5274acc320f3668a5329c45dc0359", "score": "0.6243863", "text": "public function deleteContacts($ids)\n {\r\n return $this->_delete($ids, Addressbook_Controller_Contact::getInstance());\n }", "title": "" }, { "docid": "852110b457ec587e173195d62204567c", "score": "0.6200446", "text": "abstract public function deleteAll();", "title": "" }, { "docid": "eae4154214ecd07bd141af1df765b1ff", "score": "0.6182801", "text": "public function delete($ids=[]) {\n\t\tif (func_num_args()>0) {\n\t\t\tif (func_num_args()==1) {\n\t\t\t\tif (!is_array($ids)) {\n\t\t\t\t\t$ids = (array) $ids;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$ids = func_get_args();\n\t\t\t}\n\t\t}\n\n\t\t$this->connection();\n\n\t\tif(is_object($this->data)&&$this->data)\n\t\t\t$ids[] = $this->data->{$this->primaryKey};\n\t\tif(is_array($this->data)&&$this->data)\n\t\t\tforeach($this->data as $data)\n\t\t\t\t$ids[] = $data->{$this->primaryKey};\n\n\n\t\t$placeholder = [];\n\t\tforeach($ids as $id){\n\t\t\t$this->placeholder_data[] = $id;\n\t\t\t$placeholder[] = \"?\";\n\t\t}\n\t\t$placeholder = implode(\",\", $placeholder);\n\n\t\t$where = '';\n\t\tif($ids) {\n\t\t\tif (preg_match(\"/WHERE/\", $this->where))\n\t\t\t\t$where = $this->where.\" AND {$this->primaryKey} IN({$placeholder}) \";\n\t\t\telse\n\t\t\t\t$where = \" WHERE {$this->primaryKey} IN({$placeholder}) \";\n\t\t}else{\n\t\t\tif (preg_match(\"/WHERE/\", $this->where))\n\t\t\t\t$where = $this->where;\n\t\t}\n\n\t\t$this->sql = \"DELETE FROM {$this->table}\".$where;\n\n\t\t$this->fetch(false);\n\n\t\t$this->reset();\n\n\t\treturn $this->resultset?true:false;\n\t}", "title": "" }, { "docid": "10ea131ab2da9fc8bf846fe3ff5a1c64", "score": "0.6166193", "text": "public function deleteContactusRecords($ids = array()) {\n if (!empty($ids)) {\n $db = $this->getAdapter();\n $condition = array('id IN(?)' => $ids);\n return $result = $db->delete($this->_contactus, $condition);\n }\n }", "title": "" }, { "docid": "53dba7d5c04549a96be0965e674c950f", "score": "0.61659425", "text": "public function actionDelete(array $ids)\n {\n if(count($ids) > 0){\n $c = Test::deleteAll(['in', 'id', $ids]);\n echo json_encode(array('errno'=>0, 'data'=>$c, 'msg'=>json_encode($ids)));\n }\n else{\n echo json_encode(array('errno'=>2, 'msg'=>''));\n }\n \n \n }", "title": "" }, { "docid": "b3050f7adaad3f2d767b589493aaab9c", "score": "0.61598223", "text": "public function deleteById($commentId);", "title": "" }, { "docid": "1bf6f5589317f90163802249ac51242a", "score": "0.61591107", "text": "public function delete_all() {}", "title": "" }, { "docid": "805bfe7c16c8836314cf45273bb920f2", "score": "0.6147052", "text": "public function deleteByIds ($ids, $options=null) {\n if (!is_array ($ids)) {\n throw new InvalidArgumentException (\"Must pass array of ids as the first parameter\");\n }\n\n $str = \"\";\n for ($i = 0; $i < count ($ids) - 1; $i++) {\n $str .= \"?,\";\n }\n $str .= \"?\";\n\n $query = \"DELETE FROM \" . $this->tableName . \" WHERE id IN (\" . $str . \")\";\n //echo $query;\n $stmt = self::$dbh->prepare ($query);\n $params = $ids;\n return $stmt->execute ($params);\n }", "title": "" }, { "docid": "69da4cc90bccb32a11a72142e26abd31", "score": "0.6144776", "text": "abstract protected function deleteAll();", "title": "" }, { "docid": "23e1e992ff6c0f73f10f303b2cd5248c", "score": "0.61099213", "text": "public function deleteByIds ($ids, $options=null) {\n if (!is_array ($ids)) {\n throw new InvalidArgumentException (\"Must pass array of ids as the first parameter\");\n }\n\n // Import associated DAOs\n require_once (\"Attendance.php\");\n require_once (\"Page.php\");\n require_once (\"Article.php\");\n require_once (\"Event.php\");\n\n $attendDAO = AttendanceDAO::getInstance ();\n $pagesDAO = PageDAO::getInstance ();\n $articlesDAO = ArticleDAO::getInstance ();\n $eventsDAO = EventDAO::getInstance ();\n\n $str = \"\";\n for ($i = 0; $i < count ($ids) - 1; $i++) {\n $str .= \"?,\";\n }\n $str .= \"?\";\n\n // Use LEFT JOIN in case user does not have some entries\n $query = \"DELETE FROM {$this->tableName}, {$attendDAO->getTableName ()}, {$pagesDAO->getTableName ()}, {$articlesDAO->getTableName ()}, {$eventsDAO->getTableName ()} USING {$this->tableName} LEFT JOIN {$attendDAO->getTableName ()} ON {$this->tableName}.id = {$attendDAO->getTableName ()}.userId LEFT JOIN {$pagesDAO->getTableName ()} ON {$this->tableName}.id = {$pagesDAO->getTableName ()}.userId LEFT JOIN {$articlesDAO->getTableName ()} ON {$this->tableName}.id = {$articlesDAO->getTableName ()}.userId LEFT JOIN {$eventsDAO->getTableName ()} ON {$this->tableName}.id = {$eventsDAO->getTableName ()}.userId WHERE {$this->tableName}.id IN ({$str})\";\n //echo $query;\n\n $stmt = self::$dbh->prepare ($query);\n $params = $ids;\n $status = $stmt->execute ($params);\n return $status;\n }", "title": "" }, { "docid": "326be0da15107291a29c1e956df56537", "score": "0.6095896", "text": "public function delete($id) {\n // Supprime les commentaires enfants en premier lieu\n $this->getDb()->delete('commentaires', array('parent_id'=> $id));\n // Puis on supprime le commentaire en question\n $this->getDb()->delete('commentaires', array('idcom' => $id));\n }", "title": "" }, { "docid": "c6f19eacdf9bf2aba10bbf8adef08340", "score": "0.6081642", "text": "public function deleteMultiple($ids)\n {\n return $this->employee_term->whereIn('id', $ids)->delete();\n }", "title": "" }, { "docid": "9491620d37b36af73e44fc6b5733b71d", "score": "0.6075232", "text": "function allDelete()\r\n\t{\r\n\t\t$ids = implode(\",\",array_filter($_REQUEST['user_ids']));\r\n\t\t$this->db->query(\"DELETE FROM user WHERE id IN (\".$ids.\")\");\r\n\t\t//$this->getlist();\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "1773b277e5d28b551ca9e0cfccda2927", "score": "0.6035673", "text": "public function cdeleteAction(Request $request)\n {\n $ids = array_filter(explode(',', $request->get('ids', '')));\n\n if (0 === count($ids)) {\n return $this->handleView($this->view(null, 204));\n }\n\n $this->get('sulu_comment.manager')->delete($ids);\n $this->get('doctrine.orm.entity_manager')->flush();\n\n return $this->handleView($this->view(null, 204));\n }", "title": "" }, { "docid": "b3402ba0acb62a1592f8177c80b53a1f", "score": "0.60255605", "text": "public function bulkDestroy(BulkDestroyComment $request) : Response\n {\n DB::transaction(static function () use ($request) {\n collect($request->data['ids'])\n ->chunk(1000)\n ->each(static function ($bulkChunk) {\n Comment::whereIn('id', $bulkChunk)->delete();\n\n // TODO your code goes here\n });\n });\n\n return response(['message' => trans('brackets/admin-ui::admin.operation.succeeded')]);\n }", "title": "" }, { "docid": "372ecf6e503e99c264744873e7b23227", "score": "0.60226643", "text": "private function _del($id) {\n $comments = $this->comments_model->get_info($id);\n if (!$comments) {\n //tạo ra nội dung thông báo\n $this->session->set_flashdata('message', 'Không tồn tại bài viết này');\n redirect(admin_url('comments'));\n }\n //thuc hien xoa san pham\n $this->comments_model->delete($id);\n\n }", "title": "" }, { "docid": "bee6a73aa7926c29c237f085a5225537", "score": "0.60214585", "text": "public static function deleteMany($ids = [])\n {\n if (count($ids) === 0) {\n return;\n }\n $ids = array_map(function ($entry) {\n if ($entry instanceof static) {\n return $entry->id;\n }\n return $entry;\n }, $ids);\n\n $instances = static::find($ids);\n\n foreach ($instances as $instance) {\n $instance->fireEvent('deleting');\n }\n\n $query = 'DELETE FROM ' . (new static())->getTable() . ' WHERE ' . static::justifyKey('id') . ' IN(' . implode(', ', array_map(function () {\n return '?';\n }, $ids)) . ');';\n $statement = static::$pdo->prepare($query, [], $ids);\n\n $statement->execute($ids);\n\n foreach ($instances as $instance) {\n $instance->fireEvent('deleted');\n }\n }", "title": "" }, { "docid": "0395e98d5dbbe603f6ffb664c1fe8f38", "score": "0.6011914", "text": "function deleteMediaBatch($ids)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$ids = explode('|', $ids);\n\t\t\t\t\t\t\tif( $this->request->is('ajax') ) // validate image deletion !!\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$warning = \"\";\n\t\t\t\t\t\t\t\tforeach($ids as $key => $value)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$warning = $this->mediaused($value, 'localcall');\n\t\t\t\t\t\t\t\t\tif(!empty($warning))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\techo $warning;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse // direct delete without validity !!\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach($ids as $key => $value)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->Entry->deleteMedia($value);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$this->Session->setFlash('All selected images have been deleted successfully!','success');\n\t\t\t\t\t\t\t\t$this->redirect( redirectSessionNow($_SESSION['now']) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "title": "" }, { "docid": "c982c61e6c75a7ac9d6a2f64a92608cf", "score": "0.6003101", "text": "function queryDeleteComment()\n{\n global $db;\n $cid = intval($_POST['cid']);\n $stmt = $db->prepare(\"DELETE FROM CommentReaction WHERE cid=?\");\n $stmt->execute(array($cid));\n $stmt = $db->prepare(\"DELETE FROM Comment WHERE cid=?\");\n $stmt->execute(array($cid));\n}", "title": "" }, { "docid": "e4744f7d7e1ccfe176cd559e29122ee2", "score": "0.59988236", "text": "protected function deleteAll(){\n\t\t\n\t}", "title": "" }, { "docid": "ba8a9665b5b263aa14185577c612ab4e", "score": "0.5993041", "text": "public function deleteMultiple($ids) {\n\t\treturn $this->leave_type->whereIn('id', $ids)->delete();\n\t}", "title": "" }, { "docid": "5ba3dbef36391a0c1deb51fca12e8e6d", "score": "0.59882396", "text": "public function actionDelete($id)\n {\n $subComments = QComments::find()\n ->where(['entity' => Questions::className()])\n ->andWhere(['parent_id' => $id])\n ->all();\n foreach ($subComments as $subComment){\n $subComment->delete();\n }\n $model = $this->findModel($id);\n $q_model = Questions::findOne(['question_id' => $model->entity_id]);\n $q_model->comments_count--;\n $q_model->save();\n\n $model->delete();\n return $this->redirect(['index']);\n }", "title": "" }, { "docid": "6048c0429a9962154fdb3ede922c5b39", "score": "0.5987823", "text": "public function delete($id) {\n\n $this->autoRender = false;\n\n $likes = $this->Post->find('first', array(\n 'conditions' => array(\n 'id' => $id\n ),\n 'contain' => array(\n 'Like'\n )\n ));\n $comments = $this->Post->find('first', array(\n 'conditions' => array(\n 'id' => $id\n ),\n 'contain' => array(\n 'Comment'\n )\n ));\n \n if ($this->Post->delete($id)) {\n foreach($likes['Like'] as $like)\n {\n $this->Like->delete($like['id']);\n }\n foreach($comments['Comment'] as $comment)\n {\n $this->Comment->delete($comment['id']);\n }\n $msg['success'] = true;\n } else {\n $msg['success'] = false;\n }\n\n return json_encode($msg);\n }", "title": "" }, { "docid": "45b906dac4a96e4c1bd4fd67ecd21c20", "score": "0.5984419", "text": "function queryDeletePost()\n{\n global $db;\n $pid = intval($_POST['pid']);\n $stmt = $db->prepare(\"SELECT cid FROM Comment WHERE pid=?\");\n $stmt->execute(array($pid));\n $cids = $stmt->fetchAll(PDO::FETCH_COLUMN);\n $strCids = implode(\",\", $cids);\n if ($strCids == \"\")\n $strCids = \"-1\";\n $db->query(\"DELETE FROM CommentReaction WHERE cid IN ($strCids)\");\n $db->query(\"DELETE FROM Comment WHERE cid IN ($strCids)\");\n $stmt = $db->prepare(\"DELETE FROM PostReaction WHERE pid=?\");\n $stmt->execute(array($pid));\n $stmt = $db->prepare(\"DELETE FROM Post WHERE pid=?\");\n $stmt->execute(array($pid));\n}", "title": "" }, { "docid": "dc87368c8ab826fc29a2ba2c9b6518f4", "score": "0.5978996", "text": "public function delete($id){\n\t\t$this->action_delete($id,new Note_Comment());\n }", "title": "" }, { "docid": "c33a9e2ed23cbe3284b8833899d43cf1", "score": "0.59758544", "text": "public function deleteAll()\n\t{\n\t\t$query = \"DELETE FROM comments WHERE article_id= :article_id\";\n\n\t\t$result = $this->dbh->delete($query, array(\":article_id\"=>$this->article_id));\n\t\tif($result !== false)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "889dde1f333652857d3eaaa960983a45", "score": "0.59754866", "text": "public function deleted(Comments $comments)\n {\n echo 'Comments deleted';\n }", "title": "" }, { "docid": "b50b5554214de928f75b2c84632c62a7", "score": "0.5958174", "text": "public function deleteComment($iId)\n\t{\n\t}", "title": "" }, { "docid": "d4a4e802b7795273f112f9358de7f77c", "score": "0.5950672", "text": "public function deleteAllByTicket($ticketId) {\n $this->getDb()->delete('t_comment', array('tick_id' => $ticketId));\n }", "title": "" }, { "docid": "5ad7a01291103fb358dd9d3e99e7a625", "score": "0.59372145", "text": "public function bulk_destroy_confirm(Request $request)\n {\n $comments = Comment::find($request->ids);\n return $comments;\n }", "title": "" }, { "docid": "27864f2d620b0684e78357d671fe8e9a", "score": "0.59271646", "text": "public function delete_all_by_post_id($post_id)\n {\n }", "title": "" }, { "docid": "2d7f1c2f7437350a0e8c1a823d101da4", "score": "0.59132516", "text": "public function deleteAll($id){\n\n\n $todo = LaTodo::all();\n\n foreach($todo as $key => $row){\n\n $model = LaTodo::find($row->id);\n $model->delete();\n }\n\n return response()->json( [\n 'success' => 1,\n 'message' =>'ok',\n ], 200 );\n \n \n\n\n }", "title": "" }, { "docid": "4aa585edcef4eed787664e1e974ce01c", "score": "0.5910026", "text": "public function delete($id)\r\n{\r\n $this->_db->exec(\"DELETE FROM comment WHERE id_comment=\" .$id);\r\n}", "title": "" }, { "docid": "ed7983095a9acb837356bc576d2728be", "score": "0.58867306", "text": "public function removeAll($ids) {\n $this->run('removeAll', array($ids));\n }", "title": "" }, { "docid": "ed7983095a9acb837356bc576d2728be", "score": "0.58867306", "text": "public function removeAll($ids) {\n $this->run('removeAll', array($ids));\n }", "title": "" }, { "docid": "ed7983095a9acb837356bc576d2728be", "score": "0.58867306", "text": "public function removeAll($ids) {\n $this->run('removeAll', array($ids));\n }", "title": "" }, { "docid": "7bef5033ce153ca13072517228e4ac7a", "score": "0.5881519", "text": "private function deleteAllForTarget($target)\r\n {\r\n\r\n $resourceComment = new Resource_Comment();\r\n $resourceComment->setCommentingTarget($target);\r\n $resourceComment->deleteAllForTarget();\r\n\r\n }", "title": "" }, { "docid": "1a75ae62d90c742a4b367b7b9d2c7917", "score": "0.5873669", "text": "public function deleteCustomerById($idsCustomers){\n $db = JFactory::getDbo(); \n foreach($idsCustomers as $id):\n \n $querySearch = \" \n SELECT a.idCustomer \n FROM #__orderslp as a\n LEFT JOIN #__cat_customerslp as b ON b.userIdJoomla = a.idCustomer\n WHERE b.customerId = $id\n \"; \n $db->setQuery($querySearch);\n $db->query(); \n $rows = $db->loadResult();\n \n $nameCustomer=$this->getCustomerName($id);\n if($rows!=null){\n $resultNoDel[] = $nameCustomer;\n }else{\n $query = \" DELETE FROM #__cat_customerslp \n WHERE customerId = $id \";\n $db->setQuery($query);\n $db->query(); \n \n $result[] = $nameCustomer;\n }\n \n endforeach;\n return array('notDelete'=>$resultNoDel,'deleted'=>$result); \n }", "title": "" }, { "docid": "69c7be7ef7a439fa42dc26e2322365cc", "score": "0.58664656", "text": "public function deleteComment($id)\n {\n $bdd = $this->dbConnect();\n $delete = $bdd->query(\"DELETE FROM commentaires WHERE id = $id; \");\n }", "title": "" }, { "docid": "1c8115452e332925fddb06b7990e9a81", "score": "0.58653986", "text": "public function deleteFromAllRepos($id, $datasources, $container)\n {\n $db = $container->get($datasources['truth']);\n $db->destroy($id);\n unset($datasources['truth']);\n foreach($datasources as $source=>$repository) {\n $container->get($repository)->destroy($id);\n }\n \n }", "title": "" }, { "docid": "35b73ea8db75c1a45cac501a5022c917", "score": "0.5859866", "text": "public function destroy($ids)\n {\n $this->getModel()\n ->withoutGlobalScope('active')\n ->whereIn('id', explode(',', $ids))\n ->delete();\n }", "title": "" }, { "docid": "5c20a4c5b19255715060ebd5c15d7bec", "score": "0.58570516", "text": "public function deleteByIDs($ids)\n {\n if (empty($ids)) {\n return 0;\n }\n\n // Get PRIMARY KEY-field's name\n $primaryKey = empty($this->_primary) ? 'id' : $this->_primary;\n $primaryKey = is_array($primaryKey) ? $primaryKey[1] : strval($primaryKey);\n \n // 削除処理\n $query = $primaryKey . ' IN (' . implode(',', $ids) . ')';\n $result = $this->delete($query);\n \n return $result;\n }", "title": "" }, { "docid": "e53773f63210faa872dce758560c0cbf", "score": "0.58560264", "text": "public function destroy($id){\n \n $comment_user =Comment::where('idUser',$id)->get();\n foreach ($comment_user as $key => $value) {\n $value->delete();\n }\n $user = User::find($id);\n $user->delete();\n return redirect('admin/user')->withSuccess('Xóa Thành Công');\n }", "title": "" }, { "docid": "85caa918dd29bc4d6b1d30aa1edf8a4c", "score": "0.5854548", "text": "function delCmnt($id)\n{\n\t$conn=db_connect();\n\t$result=mysql_query(\"UPDATE comments SET comment='Το σχόλιο έχει διαγραφεί!' where commnt_id='$id'\");\n\tmysql_close();\n\t\n\tif(!$result)\n\t{\n\t\tthrow new Exception('Υπήρξε κάποιο πρόβλημα με την διαγραφή του σχολίου σας!');\n\t}\n}", "title": "" }, { "docid": "0758e53e3921727a187557b9705411e9", "score": "0.5843342", "text": "public function deleteAll()\n\t{}", "title": "" }, { "docid": "18b94eb6e285b0fda5585accc2475b95", "score": "0.5841746", "text": "public function deleteRel($commenti) {\n \t$i=0;\n \twhile ($i<count($commenti)) {\n \t\t$this->delete($commenti[$i]);\n \t\t$i++;\n \t}\n }", "title": "" }, { "docid": "0b459d0e8e523dc9a1eb8b93a6bef441", "score": "0.58356345", "text": "public function destroy($id)\n {\n \n $comments = Comments::where('id', $id)->delete();\n return 204;\n }", "title": "" }, { "docid": "00f4ed6a32b932287203256d1ccc5797", "score": "0.5833229", "text": "public function delete($idlist = array()) {\n $idlist = explode(',', $this->request->query('ids'));\n \n $this->layout = null;\n if ($this->RequestHandler->isAjax()) {\n if ($this->request->is('post')) {\n $deletedlist = array();\n $errors = array();\n foreach($idlist as $id) {\n $this->Idea->read(null, $id);\n $this->Idea->set('isdeleted', 1);\n $this->Idea->set('updated', null);\n\n if ($this->Idea->save()) {\n array_push($deletedlist, $id);\n } else {\n array_push($errors, $id);\n }\n }\n\n if (count($errors) == 0) {\n $this->cleanupCategoryInfo();\n $this->set('response','success');\n $this->set('data', $deletedlist);\n $this->render('/Elements/jsonreturn');\n } else {\n $this->set('response','failed');\n $this->set('data', $errors);\n $this->render('/Elements/jsonreturn');\n } \n } else {\n $this->set('response','failed');\n $this->set('data', $errors);\n $this->render('/Elements/jsonreturn');\n } \n } else { \n $this->set('response','failed');\n $this->set('data', $errors);\n $this->render('/Elements/jsonreturn');\n }\n\n }", "title": "" }, { "docid": "ad259e7fff7cdbebeafb43573ce8977f", "score": "0.58298343", "text": "function delete_commentaire($id_commentaire, $id_content)\n\t{\n\t\t$this->db->set('comment_delete', 1);\n\t\t$this->db->where('id', $id_commentaire);\n\t\t$this->db->update('content_comments');\n\n\t\t$this->db->where('id', $id_content);\n\t\t$this->db->set('comments', 'comments-1', FALSE);\n\t\t$this->db->update('contents');\n\n\t\t$this->client->del('commentaire_' . $id_content);\n\t}", "title": "" }, { "docid": "bdbccd10e15b6d7b256d2267fc5c1ee4", "score": "0.5824801", "text": "public static function Delete($id){\n unlink('database/torrent/'.$id.'.json');\n if(is_file('public/torrent/images/'.$id.'.jpg'))\n unlink('public/torrent/images/'.$id.'.jpg');\n if(is_file('public/torrent/TorrentFiles/'.$id.'.torrent'))\n unlink('public/torrent/TorrentFiles/'.$id.'.torrent');\n\n\n if(is_dir('database/comments/'.$id)){\n $folder =scandir('database/comments/'.$id);\n foreach ($folder as $file) {\n print \"delete coment<br>\";\n unlink('database/comments/'.$id.\"/\".$file);\n }\n rmdir(\"database/comments/$id\");\n }\n}", "title": "" }, { "docid": "312caf2f0b5028eec2a5a6eb7f5c6c4e", "score": "0.58124214", "text": "public function remove_by_ids(array $ids)\n\t{\n\t\t$stream = array();\n\t\tforeach ($ids as $id)\n\t\t{\n\t\t\t$stream[] = substr(json_encode(array('delete' => array($this->config['unique_key'] => (string) $id))), 1, -1);\n\t\t}\n\n\t\treturn $this->request('{'.implode(',', $stream).'}');\n\t}", "title": "" }, { "docid": "5837c3a38df1d72cc0b425ce7988eb27", "score": "0.580508", "text": "public function destroy($id)\n {\n Comment::find($id)->delete();\n }", "title": "" }, { "docid": "3e3a53601c6669459579524dc7e98364", "score": "0.58019245", "text": "public function destroy($id)\n {\n \n $task =Rocket::find($id);\n $task->delete();\n\n $coms = User_Comment::where('id_st',$id)->get();\n foreach ($coms as $com) {\n $com->delete();\n }\n \n return redirect()->route('test');\n }", "title": "" }, { "docid": "01c4a20fd32fc33747aaa4aca3d9407e", "score": "0.57983273", "text": "public function deleteComment($id)\n {\n LocationNoteComment::findOrFail($id)->delete();\n }", "title": "" }, { "docid": "91144c4086bc64b932b3aba6ff8eac40", "score": "0.5797897", "text": "function delete_users($users_ids) \r\n\t{\r\n\t\tglobal $db, $table_prefix;\r\n\t\t$db->query(\"DELETE FROM \" . $table_prefix . \"users WHERE user_id IN (\" . $db->tosql($users_ids, TEXT, false) . \")\");\r\n\t}", "title": "" }, { "docid": "cac57fb49cd99a2e8217323564be6546", "score": "0.57898504", "text": "function mc4wp_delete_logs( array $ids ) {\n\tglobal $wpdb;\n\t$table_name = $wpdb->prefix . 'mc4wp_log';\n\n\t$comma_separated_ids = implode( ',', $ids );\n\treturn $wpdb->query( \"DELETE FROM {$table_name} WHERE id IN ({$comma_separated_ids})\" );\n}", "title": "" }, { "docid": "e77ae1e74981caee8b39bb92ac58b498", "score": "0.57838875", "text": "public function deleteContent($id);", "title": "" }, { "docid": "adbb82427ec44ff155aba7735e0e2b42", "score": "0.57686096", "text": "public function delete(array $ids)\n {\n $images = $this->repository->query()->whereIn('id', $ids)->get();\n\n foreach ($images as $image) {\n Storage::disk($this->disk)\n ->delete(app_class_base_name($image->imagetable_type) . DIRECTORY_SEPARATOR . $image->id . DIRECTORY_SEPARATOR . $image->filename);\n\n $image->delete();\n }\n }", "title": "" }, { "docid": "75944eccb87484c0d6015a7eb916a301", "score": "0.5762926", "text": "private function deleteEventCustomer($ids)\n {\n return Yii::$app->db->createCommand()->delete(EventCustomer::tableName(), ['id' => $ids], $params = [])->execute();\n }", "title": "" }, { "docid": "9a0d61b962f5fccd9f24a916fdeab028", "score": "0.57553864", "text": "public function delete_all()\n {\n }", "title": "" }, { "docid": "a9a64b552a40d267c817c0d247b0c00f", "score": "0.57505226", "text": "public static function deleteById(array $id_list)\n {\n\n\n if (count($id_list)) {\n\n $db = static::$db;\n $tbl = static::getTable();\n $sql = \"DELETE FROM {$tbl} WHERE {$db->i('id')} IN (\"\n . implode(',', array_fill(0, count($id_list), '?')) . \")\";\n\n static::$db->delete($sql, $id_list);\n }\n }", "title": "" }, { "docid": "a3a2fe521158a4207855f392c53d87de", "score": "0.57416844", "text": "public function deleteQuery($id)\n {\n }", "title": "" }, { "docid": "426881a2f38c3ccfe90157cdf1430bf8", "score": "0.574083", "text": "public function deleteGalleryItemComment($id)\r\n {\r\n // TODO: Implement\r\n }", "title": "" }, { "docid": "e7937cafa22ce5592dc50d26b50c00fc", "score": "0.57398903", "text": "public function deleteNewsletterRecords($ids = array()) {\n if (!empty($ids)) {\n $db = $this->getAdapter();\n $condition = array('id IN(?)' => $ids);\n return $result = $db->delete('mybb_newletter', $condition);\n }\n }", "title": "" }, { "docid": "ff2e0af8e23a558e62b6845c57ed85b4", "score": "0.57375205", "text": "public static function deleteAllComments($post_id)\n {\n $get_comment = Comment::where('post_id', $post_id)->get();\n\n if(sizeof($get_comment) <= 0)\n {\n return true;\n }\n\n for($i = 0; $i < sizeof($get_comment); $i++)\n {\n $delete_comment = ApiCommentController::deleteAllUpvotes($get_comment[$i]);\n }\n\n \t$delete_success = Comment::where('post_id', $post_id)->delete();\n\n \tif(!$delete_success)\n \t{\n \t\treturn false;\n \t}\n\n return true;\n }", "title": "" }, { "docid": "8281fa45b4bdedf561b094f3b07a9140", "score": "0.5721328", "text": "function delete_comment($comment_data) {\n /* Delete all child comments */\n DB::table('comments')->where('pid', '=', $comment_data->cid)->delete();\n DB::table('comments')->where('cid', '=', $comment_data->cid)->delete();\n }", "title": "" }, { "docid": "bbc28a23b45c7ab7e2fbac07eaf1be9c", "score": "0.5717728", "text": "function deleteComment($id)\n {\n $uri = \"/comment/\" . $this->username . \"/\" . $id . \"/\";\n return $this->json_client->DELETE($uri);\n }", "title": "" }, { "docid": "541dec06f8fc91814c9450c16d027ee1", "score": "0.57168144", "text": "public function deleteEvents($ids = array()) {\n if (!empty($ids)) {\n $db = $this->getAdapter();\n $condition = array('id IN(?)' => $ids);\n return $result = $db->delete($this->_events, $condition);\n }\n }", "title": "" }, { "docid": "c52c2d8667565410a7aeab4000160a2c", "score": "0.571612", "text": "public function deleteComment(Request $request)\n {\n $statement = DB::select(\"show table status like 'comments'\");\n for($i=0;$i<$statement[0]->Auto_increment;$i++)\n {\n if($request->input('checkbox_b_'.$i.''))\n {\n \n Comment::where('id',$i)->delete();\n }\n }\n return redirect('/panel');\n }", "title": "" }, { "docid": "3933160796840b14eea2dfd11e8f7a44", "score": "0.5704196", "text": "public static function comments_delete()\r\n\t\t{\r\n\t\t\tif( isset($_GET['id']) && isset($_GET['comments_delete']) )\r\n\t\t\t{\r\n\t\t\t\t$id = $_GET['id'];\r\n\r\n\t\t\t\t$cmt_id = $_GET['comments_delete'];\r\n\r\n\t\t\t\t$stmt = self::conn()->prepare( \"DELETE FROM comments WHERE (comments.post_id = $id) AND (comments.comments_id = $cmt_id) \" );\r\n\t\t\t\t\r\n\t\t\t\tif( $stmt->execute() )\r\n\t\t\t\t\treturn header( 'location:single.php?id=' .$_GET['id'] .'&article=' .$_GET['article'] );\r\n\t\t\t\telse\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "d0eda4d7e2abbdae400b70b8198a6341", "score": "0.5703388", "text": "public function actionDelete()\n {\n $ids = Yii::$app->request->post('ids');\n if ($ids == null) {\n return new ApiResponse(ApiCode::CODE_ERROR,\"失败\");\n }\n Seckill::deleteAll(['id'=>$ids]);\n return new ApiResponse();\n }", "title": "" }, { "docid": "7b343c62c754fd4ada7f1f5294fd2e3a", "score": "0.5702386", "text": "public function deleteMultiAnything($id) {\n $db = $this->getAdapter();\n $condition = array('id IN (?)' => split(',', $id));\n return $delete = $db->delete('mybb_whats_wrong', $condition);\n }", "title": "" }, { "docid": "47463ae9424102829c7adc8b7b27939b", "score": "0.5696016", "text": "public function deleteComment($id)\n {\n $query = $this->db->prepare('DELETE FROM comment WHERE id = ?');\n $query->execute([$id]);\n }", "title": "" }, { "docid": "4e2f8d61091c214a9a332611ac8439e2", "score": "0.56944287", "text": "public function deleteSmsEmailMeRecords($ids = array()) {\n if (!empty($ids)) {\n $db = $this->getAdapter();\n $condition = array('id IN(?)' => $ids);\n return $result = $db->delete($this->_smsemailme, $condition);\n }\n }", "title": "" }, { "docid": "c851ac68c01a4dd609eb9e4c07cec0e5", "score": "0.56938326", "text": "public function forceDeleted(Comments $comments)\n {\n echo 'Comments forceDeleted';\n }", "title": "" }, { "docid": "3965611812d112edc9fd4dbf878dffaa", "score": "0.5687917", "text": "public function deleteCommentsMarkedAsSpam()\n {\n $results = $this->getClient()->search(array(\n 'search_type' => 'scan',\n 'scroll' => '30s', //a wait of 30 seconds between each scroll request\n 'size' => 50,\n 'index' => $this->getIndex(),\n 'type' => self::TYPE_COMMENT,\n 'body' => array(\n 'query' => array(\n 'match' => array(\n 'status' => 'spam'\n )\n )\n )\n ));\n\n //get scrolling identifier\n $scrollId = $results['_scroll_id'];\n\n //collect document ids and matching tags as key=value pairs\n $ids = array();\n\n while(true) {\n\n try {\n $resp = $this->getClient()->scroll(\n array(\n 'scroll_id' => $scrollId,\n 'scroll' => '30s'\n ));\n } catch (Missing404Exception $e) {\n break;\n }\n\n if (count($resp['hits']['hits']) > 0) {\n //update tag info\n foreach ($resp['hits']['hits'] as $hit) {\n $ids[] = $hit['_id'];\n }\n } else {\n //when there are no results - break out of the loop\n break;\n }\n }\n\n //delete documents\n foreach ($ids as $id) {\n $this->getClient()->delete(array(\n 'index' => $this->getIndex(),\n 'type' => self::TYPE_COMMENT,\n 'id' => $id\n ));\n }\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "b560e0c21d0d95437cea0e36b8b6311e", "score": "0.0", "text": "public function index(Request $request)\n {\n // Get all items\n $items = Item::get();\n\n if ($request->route()->getPrefix() === 'api' ) {\n return response()->json($items, 200, array(), JSON_PRETTY_PRINT);\n }\n\n // Get all items from cart\n $cart = new Cart();\n $sum = $cart->getSum();\n $cart = $cart->getAllItems();\n\n return view('shop', compact('items', 'cart', 'sum'));\n }", "title": "" } ]
[ { "docid": "66dba62b6171d79d179d2efe10c0caba", "score": "0.74747115", "text": "public function index()\n\t{\n\t\t// Paginate resource resutls\n\t\t$results = $this->paginate();\n\n\t\t// If results found add asset to make tables responsive\n\t\t$results->total();\n\n\t\t// Create header links for sorting by column\n\t\t$links = (object) link_to_sort_by($this->resource->getVisibleLabels());\n\n\t\t// Set the route for the return button\n\t\t$returnRouteName = replace_last_segment($this->prefix);\n\n\t\t// Add data to the view\n\t\t$view = view('resource.index', compact(['results', 'links', 'returnRouteName']));\n\n\t\t// Add data to the layout\n\t\t$this->layout->title = $this->resource->plural();\n\t\t$this->layout->subtitle = ($results->lastPage() > 1) ? sprintf(_('Page %d/%d'), $results->currentPage(), $results->lastPage()) : _('Index');\n\n\t\t// Return layout + view\n\t\treturn $this->layout($view);\n\t}", "title": "" }, { "docid": "26a2d94e339f9f1ef18aaa8555d5948f", "score": "0.74559", "text": "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $filter = $this->Request()->getParam('filter', []);\n $sort = $this->Request()->getParam('sort', []);\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": "26a2d94e339f9f1ef18aaa8555d5948f", "score": "0.74559", "text": "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $filter = $this->Request()->getParam('filter', []);\n $sort = $this->Request()->getParam('sort', []);\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": "725058cd65108ac80a78fe0051c949b4", "score": "0.74051094", "text": "public function lists()\n\t{ \n\t\t$input \t = $this->getListRequest();\t\t\n\t\t$resources = $this->resourceRepository->find($input['take'], $input['skip'], $input['sort'], $input['filter']);\n\t\t$total = $this->resourceRepository->count($input['filter']);\n\n\t\treturn $this->makeListResponse($resources, $total);\n\t}", "title": "" }, { "docid": "870d86aa3e5336ed0150f4b1a79d3bc6", "score": "0.7393241", "text": "public function listAction()\n {\n $entityRepository = $this->getRepository();\n $entities = $entityRepository->findAll();\n\n return $this->render(\n $this->getTemplate(__FUNCTION__),\n [\n 'entities' => $entities,\n ]\n );\n\n }", "title": "" }, { "docid": "18be17ef8678843ecf6d65f5aa5a9ee8", "score": "0.73768365", "text": "public function actionList() {\r\n\t\t// ToDo: Add security, Add pagination\r\n\t\t\r\n\t\t// Get a list of all the required resources\r\n\t\t$models = \\parallel\\yii\\ActiveRecord::model($this->_model)->findAll();\r\n\t\t\r\n\t\t// Return the list to the client\r\n\t\t$this->sendResponse($models);\r\n\t}", "title": "" }, { "docid": "fc2792e1b13ff38e0c9384e5367be91c", "score": "0.7355509", "text": "public function actionList()\n {\n return $this->render('list');\n }", "title": "" }, { "docid": "143d9a58e87ac1f21fc152d696ad25d6", "score": "0.72710556", "text": "public function index()\n {\n $catalog_lists = Catalog::paginate(GlobalEnum::PerPage);\n\n if ($catalog_lists->total()) {\n return $this->ok('', CatalogResource::collection($catalog_lists)->response()->getData(true));\n }\n\n return $this->ok(__('global.record_not_found'));\n }", "title": "" }, { "docid": "393e0d0bda703c386c7b465265bed633", "score": "0.71704257", "text": "public function indexAction()\n {\n $filter = $this->Request()->getParam('filter', []);\n\n $result = $this->resource->getList($filter);\n\n //Api controllers inherit from the shopware_controllers api rest.\n //It extends the enlight_action_controller,but\n //overrides predispatch and postdispatch method through which it defines\n //details regarding views,setting headers and json_encoding the results from the resources\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "title": "" }, { "docid": "915fb596a541fe3490b48ffd04162d2e", "score": "0.7157241", "text": "public function listAction()\n {\n $page = (int) $this->params()->fromRoute('page', 1);\n return $this->forward()->dispatch($this->getRouteIdentifierPrefix(), array('action' => 'index', 'page' => $page));\n }", "title": "" }, { "docid": "6c72516079b466368fa3fffe94f8ae35", "score": "0.7132358", "text": "function index() {\n render(\"list\");\n }", "title": "" }, { "docid": "d9b48afdd79e90cf917b6d111ca6416b", "score": "0.71212447", "text": "public function index()\n {\n $resources = Resource::orderBy('id', 'desc')->paginate(Cache::get('pagination', 10));\n\n return view('resources.index')->with(compact('resources'));\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": "c92dfed9c6b1a4ac51bf0fb7614258f9", "score": "0.7106149", "text": "public function listAction ( )\n {\n $model = $this->getModel($this->_modelName);\n $request = $this->getRequest();\n\n $this->view->items = $model->paginate($request->getParams());\n\n }", "title": "" }, { "docid": "90a1f4f6b697ee3ec0f4fa576dd38523", "score": "0.7098513", "text": "public function index()\n {\n return view('resources', ['resources' => Resource::orderBy('name', 'asc')->get(), 'listings' => RentResource::whereDate('start_time', '=', Carbon::today()->toDateString())->orderBy('start_time', 'asc')->get() ]);\n }", "title": "" }, { "docid": "ba6dd0e8295ef2a549fdf27a9cd12661", "score": "0.70087796", "text": "public function listAction()\n\t{\n\t\t$params = ['page' => 'page-catalog-list'];\n\n\t\tforeach( app( 'config' )->get( 'shop.page.catalog-list' ) as $name )\n\t\t{\n\t\t\t$params['aiheader'][$name] = Shop::get( $name )->header();\n\t\t\t$params['aibody'][$name] = Shop::get( $name )->body();\n\t\t}\n\n\t\treturn Response::view( Shop::template( 'catalog.list' ), $params )\n\t\t\t->header( 'Cache-Control', 'private, max-age=' . config( 'shop.cache_maxage', 30 ) );\n\t}", "title": "" }, { "docid": "79651e14a4b964194c02d9ee700a9ad5", "score": "0.70079595", "text": "public function list(): void\n {\n $list = $this->mysql->select($this->getListQuery());\n $this->page->show($this->getListPageTemplate(), ['list' => $list]);\n }", "title": "" }, { "docid": "5f679e4189acdce779f6ef9e23a350f9", "score": "0.700236", "text": "public function actionList()\n {\n $pagination = $this->setPagination('article');\n \n $list = $pagination['recordList'];\n $pages = $pagination['pages'];\n\n return $this->render('list',['list' => $list,'pages' => $pages]);\n }", "title": "" }, { "docid": "904740a092ed938ccd50ca494c286c30", "score": "0.69705874", "text": "public function list()\r\n\t\t{\r\n\t\t\t// Page title\r\n\t\t\t$this->title = 'Pathways list';\r\n\r\n\t\t\t// Function parameter\r\n\t\t\t$parametros = ( func_num_args() >= 1 ) ? func_get_arg(0) : array();\r\n\r\n\t\t\t// Load models\r\n\t\t\t$settings_model = $this->load_model('settings-model');\r\n\t\t\t$pathway_model = $this->load_model('pathway-model');\r\n\r\n\t\t\t/** Load files from view **/\r\n\r\n\t\t\t// Load the template definitions\r\n\t\t\trequire ABSPATH . '/views/_includes/template_config.php';\r\n\r\n\t\t\t// Load the template head section\r\n\t\t\trequire ABSPATH . '/views/_includes/template_start.php';\r\n\r\n\t\t\t// Load the page initial definitions\r\n\t\t\trequire ABSPATH . '/views/_includes/page_head.php';\r\n\r\n\t\t\t// Load the page itself\r\n\t\t\trequire ABSPATH . '/views/pathway_module/pathway_list-view.php';\r\n\r\n\t\t\t// Load the page footer\r\n\t\t\trequire ABSPATH . '/views/_includes/template_end.php';\r\n\r\n\t\t}", "title": "" }, { "docid": "bc75e71d755fa3c285f90da23f029065", "score": "0.6961202", "text": "public function listingAction()\n {\n /** @var Factory $Factory */\n $Factory = $this->get('factory');\n\n /** @var Product[] $Products */\n $Products = $Factory->getAllProducts();\n\n return $this->render(\n 'ACAShopBundle:Products:list.html.twig',\n array(\n 'Products' => $Products\n )\n );\n }", "title": "" }, { "docid": "bdcd442e256866ea4c741c1ff1cc3685", "score": "0.6940423", "text": "public function index()\n {\n // redirect($this->_url(\"all\"));\n $this->_create_list();\n $this->_display();\n }", "title": "" }, { "docid": "cffe60b04946e2b283ae38e3049adc3f", "score": "0.69368476", "text": "public function listAction()\n {\n if (!$this->service) {\n throw new \\RuntimeException('No CRUD service defined');\n }\n\n $label = (isset($this->label)) ? $this->label : '';\n \n $service = $this->getServiceLocator()->get($this->service);\n\n $this->trigger(CrudEvent::EVENT_LIST_PRE);\n\n $where = $this->parseWhere($this->getRequest());\n $order = $this->params()->fromQuery('order', array());\n\n $perPage = $service::INDEX_LIMIT;\n\n $page = ($this->params()->fromQuery('page', 1) -1);\n \n $list = $service->getList($where, $order, ($page * $perPage), $perPage);\n\n $count = $service->getCount($where);\n\n $this->trigger(CrudEvent::EVENT_LIST_POST, $list);\n\n $currentQuery = $this->params()->fromQuery();\n unset($currentQuery['page']);\n\n return $this->loadView(\n 'zucchi-admin/crud/list', \n array(\n 'resource' => $this->resource,\n 'list' => $list,\n 'count' => $count,\n 'page' => $page+1,\n 'currentQuery' => http_build_query($currentQuery),\n 'pages' => ceil($count/$perPage),\n 'listFields' => $this->listFields,\n 'metadata' => $service->getMetaData(),\n 'where' => $where,\n 'order' => $order,\n 'label' => $label,\n\n )\n );\n }", "title": "" }, { "docid": "d033fdb664b5308858d97fa62eaec1dd", "score": "0.6919906", "text": "public function showResourcesList(array $data);", "title": "" }, { "docid": "26f8fdc71a4939e7422fb301f2c7eb6b", "score": "0.69135225", "text": "public function index()\n {\n $questions = Question::latest()->paginate(10);\n\n return QuestionResource::collection($questions)->additional(['result' => 1, 'message' => 'Retrieved.']);\n }", "title": "" }, { "docid": "9614c14c55791e230f2a0558a1a13ab5", "score": "0.68943536", "text": "public function index() {\n $arrObjResource = Resource::latest()->paginate(self::INT_LIMIT);\n return view('resource.index', compact('arrObjResource'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "title": "" }, { "docid": "4f3eab1a65aa0d6cf0ac4845abdf26ac", "score": "0.6890335", "text": "public function index()\n {\n $resources = Resource::all();\n\n return view('admin.resource.index',['resources' => $resources]);\n }", "title": "" }, { "docid": "e4d514bd62d1c63ab8647f831833ec4f", "score": "0.68843615", "text": "public function index()\n {\n \n return $this->list();\n \n }", "title": "" }, { "docid": "227cc9dea5d541678d4dfd2730fdac56", "score": "0.687347", "text": "public function index()\n {\n $queryBuilder = QueryBuilder::for(Repository::enabled())\n ->allowedFilters([\n 'name',\n 'license',\n 'description',\n AllowedFilter::exact('author.name'),\n 'author.display_name',\n AllowedFilter::exact('tags.name'),\n 'tags.category.name',\n ])\n ->allowedSorts([\n 'name',\n 'stargazers',\n 'last_push',\n 'author.name',\n ])\n ->defaultSort('-stargazers')\n ->with('author', 'tags', 'tags.category');\n // Paginate if request has a page parameter\n if (request()->has('page')) {\n return RepositoryFullResource::collection($queryBuilder->jsonPaginate(100));\n } else {\n return RepositoryFullResource::collection($queryBuilder->get());\n }\n }", "title": "" }, { "docid": "85415f9379a58cfef9a5550ad415fc13", "score": "0.6871514", "text": "public function index()\n {\n return StatusResource::collection(\n Status::latest()->paginate(10)\n );\n }", "title": "" }, { "docid": "9bdc4409374aa0ca956ab945dfb3719d", "score": "0.68563753", "text": "public function listAction(){\r\n\t\t\t\r\n\t\t\t//$totalItem \t\t\t\t\t= $this->_model->countItem($this->arrParams, null);\r\n\t\t\t//$this->setPagination(array(\"totalItemPerPage\" => 5, \"pageRange\" => 2));\r\n\t\t\t//$this->_view->pagination \t= new Pagination($totalItem, $this->_pagination);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t$this->_view->nameCategory \t= $this->_model->getNameCategory($this->arrParams, array(\"task\" => \"get-name-category\"));\r\n\t\t\t$this->_view->_listBook\t\t= $this->_model->infoItem($this->arrParams, null);\r\n\r\n\r\n\t\t\t$this->_view->_title = \"<title>List</title>\";\r\n\t\t\t$this->_view->render(\"book/list\");\r\n\t\t}", "title": "" }, { "docid": "728f8e03f8b5006e5477454a725a1745", "score": "0.6847423", "text": "public function index()\n {\n return response(EntryList::getAll(), 200);\n }", "title": "" }, { "docid": "27835938400657712b507591c21e8655", "score": "0.683678", "text": "public function actionIndex()\n\t{\n\t\t$objects = self::apiRequest();\n\t\t\n\t\t$this->render('index',array(\n\t 'objects'=>$objects,\n\t 'page'=>$this->pNumber\n\t ));\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": "ddc72035c6eee5bda438fcd2d80fe704", "score": "0.68218684", "text": "public function index() {\n\t\t$resources = Resource::with(array('projects' => function($query) {\n\t\t\t$query->orderBy('updated_at','desc');\n\t\t}))->take(10)->get();\n\t\treturn View::make('resource/index', compact('resources'));\n\t}", "title": "" }, { "docid": "d773e5fd60f9ab29f11ae0739ce3ee4a", "score": "0.68212044", "text": "public function index( ) {\n\t Session::set(\"list_refer\", $_SERVER['REQUEST_URI']);\n\t\t$this->set_order();\n\t\t$this->display_action_name = 'List Items';\n\n\t\t$this->all_rows = $this->model->order($this->get_order())->page($this->this_page,$this->list_limit);\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": "cf0df3ff4d7be7a54e874c2996c82e4e", "score": "0.68184847", "text": "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Applications\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all applications allowed access via API\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/applications/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => array('button', 'float_right')))\n\t\t\t\t\t\t\t\t);\n\t\t$this->datagrid->setConfig ( OauthClients::grid() )->datagrid ();\n\t}", "title": "" }, { "docid": "7dd3e647ccd9b808f98f8f06413992bc", "score": "0.6815415", "text": "public function listingAction()\r\n {\r\n $oZendDbSelect = new Zend_Db_Select(Zend_Db_Table::getDefaultAdapter());\r\n $oSelect = $oZendDbSelect->from('r_scenarios')->order('r_scenario_id desc');\r\n \r\n // Search engine on the query\r\n $oMySearchEngine = new My_Search_Engine($oSelect);\r\n \r\n $oMySearchEngine->findWordOn(array('r_scenario_libelle' => array('operator' => 'like')));\r\n $oMySearchEngine->findByFields(array(\r\n 'r_scenario_id' => array('operator' => 'eql'),\r\n 'r_scenario_actif' => array('operator' => 'eql'),\r\n 'r_scenario_libelle' => array('operator' => 'like')\r\n ));\r\n\r\n $oMySearchEngine->makeOrderBy();\r\n \r\n // Downloading the filtered list in CSV\r\n if ($this->_helper->ContextSwitch()->getCurrentContext() == 'csv') {\r\n $oAdapterExport = new My_Data_Export_Source_Adapter_Select($oMySearchEngine->getSelect());\r\n $oExport = new My_Data_Export_CSV($oAdapterExport);\r\n $this->view->csv = $oExport->make();\r\n $this->view->filename = Phoenix_Data_Export_Csv::buildFileName();\r\n } // Viewing the filtered list in HTML\r\n else {\r\n // Handle pagination\r\n $oAdapter = new Zend_Paginator_Adapter_DbSelect($oMySearchEngine->getSelect());\r\n $oPaginator = new My_Paginator($oAdapter);\r\n $oPaginator->setCurrentPageNumber($this->_getParam('page'));\r\n $oPaginator->setItemCountPerPage(15);\r\n $this->view->paginator = $oPaginator;\r\n }\r\n }", "title": "" }, { "docid": "a422edadfd877c23034b14eb7c872f20", "score": "0.680176", "text": "public function index()\n {\n // Get Students\n\n $students = Student::paginate(10); \n return StudentResource::collection($students);\n }", "title": "" }, { "docid": "8fb097585964e814f54986427cb4f2a5", "score": "0.6801259", "text": "public function listAction ()\n {\n\n $this->_helper->viewRenderer->setNoRender(false);\n $this->_helper->viewRenderer->setViewScriptPathSpec(\"server/list.phtml\");\n $this->_helper->serverTester->listAction($this->_serverClass, $this);\n }", "title": "" }, { "docid": "9eac380992aafa51fd5f8cad7dd703c0", "score": "0.6791666", "text": "public function index()\n\t{\n\t\treturn View::make('backoffice.resource.index');\n\t}", "title": "" }, { "docid": "5d12cb46b97d3119f7b5023b68501a38", "score": "0.678868", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $altinvs = $em->getRepository('SGIBundle:Altinv')->findAll();\n\n return $this->render('altinv/list.html.twig', array(\n 'altinvs' => $altinvs,\n ));\n }", "title": "" }, { "docid": "971c5bf5ae183faa04c5c48cbd18c860", "score": "0.67845964", "text": "public function do_list()\n {\n\n $request = $this->getRequest();\n $console = $this->getConsole();\n\n $workarea = $console->tpl->getWorkArea( );\n $workarea->addTemplate( 'usermgmt/list' );\n\n }", "title": "" }, { "docid": "009c68f22edb5d32fe04a4694c775ca1", "score": "0.67772275", "text": "public function indexAction() {\n $this->render('list', array(\n 'entries' => $this->newsRepository->getAll(array('date' => 'DESC'))\n ));\n }", "title": "" }, { "docid": "f942ddab63eeccb58e9b51ecacb7adee", "score": "0.67770517", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\tlist($total, $result) = Resource_Service_Attribute::getList($page, $perpage,array('at_type' => 1,'status' => 1));\n\t\t$this->assign('result', $result);\n\t\t$this->assign('total', $total);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'?'));\n\t}", "title": "" }, { "docid": "1cda64db2e68c557b90cdabeccaba33f", "score": "0.67594475", "text": "public function index()\n {\n //\n $items = Item::all();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "183389798fc3f84d25abd7fc3486c685", "score": "0.67534196", "text": "function index()\n\t\t{\n\t\t\tif($this->AJAXCall)\n\t\t\t\texit;\n\t\t\t\n\t\t\t$this->_generate_listing(false);\n\t\t}", "title": "" }, { "docid": "117edb0c09e0fdcb587db5412ef18996", "score": "0.6751079", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $user = $em->getRepository('TicketswapUserBundle:Users')->find(1);\n $listings = $em->getRepository('TicketswapListingBundle:Listings')->findBy(['user' => $user]);\n\n return $this->render('listings/index.html.twig', array(\n 'listings' => $listings,\n ));\n }", "title": "" }, { "docid": "a0016ac4bfda3ac0418505813ba2e862", "score": "0.6734381", "text": "public function indexAction()\n {\n if ( ! $this->getUser()) {\n return $this->redirect($this->generateUrl('user_sign_in'));\n }\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('BWBlogBundle:Resource')->findBy(array(\n 'user' => $this->getUser(),\n ), array(\n 'created' => 'DESC',\n ));\n $resources = new ArrayCollection($entities);\n\n return $this->render('BWBlogBundle:Resource:index.html.twig', array(\n 'entities' => $entities,\n 'resources' => $resources,\n ));\n }", "title": "" }, { "docid": "274943ce909ef8e9f446ec40976ee886", "score": "0.6731582", "text": "public function listAction()\n {\n $all = $this->rss->findAll();\n \n $this->theme->setTitle(\"Visa alla RSS-flöden\");\n $this->views->add('rss/list-all', [\n 'feeds' => $all,\n 'title' => \"Visa alla RSS-flöden\",\n ], 'main');\n \n $this->views->add('rss/rss-sidebar', [], 'rsidebar');\n }", "title": "" }, { "docid": "c6af5753a45a23a4039724edd2030d18", "score": "0.6731379", "text": "public function index()\n {\n $data = array(\n 'objects' => $this->instituicaoBo->list_all(),\n 'title' => 'Instituição',\n 'heading' => 'Lista de',\n );\n\n $this->load->view('/instituicao/list_instituicao.html.php', $data);\n }", "title": "" }, { "docid": "ed091402879b52de0ec1b21125fb6df3", "score": "0.67281276", "text": "public function index()\n {\n //Get Products\n $products = Product::paginate(100);\n \n //Return collection of products as resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "0ee391ae331b2e93b8a1c88e428dfb9a", "score": "0.6725677", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $rentals = $em->getRepository('SGIBundle:Rental')->findAll();\n\n return $this->render('rental/list.html.twig', array(\n 'rentals' => $rentals,\n ));\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "d89867a60ba15fed734e46000a36620d", "score": "0.6722664", "text": "static function listAction() {\n // Get user files\n $users = self::getUsers();\n\n // Display user ids\n echo '<ul>';\n\n foreach ($users as $user) {\n echo '<li><a href=\"/users/' . $user->USR . '\">' . $user->NAME . ' (' . $user->USR . ')</a></li>';\n }\n\n echo '</ul>';\n }", "title": "" }, { "docid": "b10432984ae1b667b192f3f5d3985a4c", "score": "0.67152315", "text": "public function showList()\n {\n //var_dump($this->post);\n if (isset($this->post['page']) || isset($this->get['page'])) {\n if ($this->post) {\n $this->doListing($this->criteria, $this->orderBy);\n }\n if ($this->get) {\n $this->doPagination();\n }\n } else {\n //..destrói todas as sessões gravadas e cria uma view limpa.\n Session::destroySession('sqlData');\n Session::destroySession('criteria');\n Session::destroySession('orderBy');\n Session::destroySession('limit');\n Session::destroySession('lastPage');\n $this->viewList->show();\n }\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": "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": "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": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "ff3e5f5bb761df19ee88cd46c9c44f75", "score": "0.6711365", "text": "public function index()\n {\n $this->global['pageTitle'] = 'List Partners - '.APP_NAME;\n $this->global['pageMenu'] = 'List Partners';\n $this->global['contentHeader'] = 'List Partners';\n $this->global['contentTitle'] = 'List Partners';\n $this->global ['role'] = $this->role;\n $this->global ['name'] = $this->name;\n $this->global ['repo'] = $this->repo;\n \n $data['readonly'] = $this->readonly;\n $data['classname'] = $this->cname;\n $data['url_list'] = base_url($this->cname.'/list/json');\n $this->loadViews($this->view_dir.'index', $this->global, $data);\n }", "title": "" }, { "docid": "a82e643c16a81545d59c105f6fd9019e", "score": "0.6710445", "text": "public function index()\n {\n return PlaylistResource::collection(Playlist::with('tracks')->paginate());\n }", "title": "" }, { "docid": "9c3a8017fadc1446e144ef2847a75de3", "score": "0.6704527", "text": "public function index()\n {\n return PlaylistResource::collection(\\App\\Playlist::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "1c6e0baa6678b891bebbc943f9480efa", "score": "0.6700806", "text": "public function indexAction()\r\n\t{\r\n\r\n\t\t$this->_view->_title = ucfirst($this->_controller) . ' Manager :: List';\r\n\r\n\t\t $totalItems = $this->_model->countItems($this->_arrParam);\r\n\t\t $configPagination = ['totalItemsPerPage' => 3, 'pageRange' => 3];\r\n\t\t$this->setPagination($configPagination);\r\n\t\t$this->_view->pagination = new Pagination($totalItems, $this->_pagination);\r\n\t\r\n\t\t$this->_view->Items = $this->_model->listItem($this->_arrParam, null);\r\n\t\t$this->_view->slbGroup = $this->_model->itemInSelectBox($this->_arrParam);\r\n\t\t$this->_view->render($this->_controller . '/index');\r\n\t}", "title": "" }, { "docid": "da46f30f701104b01168396ab42fd3e4", "score": "0.6699936", "text": "public function actionList()\n\t{\n\t\t$data = Desire::getAll(10);\n\t\t$articles = $data['articles'];\n\t\t$count = $data['count'];\n\n\n\n\t\treturn $this->render('list', [\n\t\t\t'articles' => $articles,\n\t\t\t'count' => $count,\n\t\t\t'ajaxUrl' => '/desire/desire/list-ajax'\n\t\t]);\n\t}", "title": "" }, { "docid": "8fdc346d2ae73862487e8562ba0d2f8e", "score": "0.6697069", "text": "public function index()\n {\n $this->crud->hasAccessOrFail('list');\n\n $this->data['crud'] = $this->crud;\n $this->data['title'] = ucfirst(($this->book ? $this->book->title . ' --> ' : '') . $this->crud->entity_name_plural);\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 }", "title": "" }, { "docid": "d92ce07568892bbdbac73cfad06a3cff", "score": "0.66963553", "text": "public function index() {\n $rows = Module::paginate(10);\n return View::make(\"CoreCms::module.listing\")->with(\"models\", $rows);\n }", "title": "" }, { "docid": "f38c30f9e765863f55cf5c7e5b441e0a", "score": "0.6695974", "text": "public function listAction()\n {\n $this->_title($this->__('System'))->_title($this->__('Index Management'));\n\n $this->loadLayout();\n $this->_setActiveMenu('system/index');\n $this->renderLayout();\n }", "title": "" }, { "docid": "6302f4af4daf8199c6e51ccba9683ada", "score": "0.6693278", "text": "public function index()\n {\n $flights = Resources::all();\n return view('admin.resource.view', compact('flights'));\n }", "title": "" }, { "docid": "ce01e387a99bc334b00eed748a6952cf", "score": "0.669161", "text": "public function index()\n {\n return $this->respondWithPaginatedCollection(SmartBin::paginate(), $this->smartBinTransformer);\n }", "title": "" }, { "docid": "a852cb19289ccd3ae31b2b0e5320aea1", "score": "0.6691417", "text": "public function index()\n {\n Gate::authorize('view', 'products');\n $product = Product::paginate();\n\n return ProductResource::collection($product);\n }", "title": "" }, { "docid": "d8835f9930d0f9c4f3c53749e67962c3", "score": "0.6685593", "text": "public function listAction() {\n\n // Use the model to get all stored users\n $allUsers = $this->userModel->findAll();\n\n // Creates an array with the information to be displayed\n $userInfo = $this->userInfoBuilder([\n 'update', 'inactivate', 'activate', 'soft-delete', 'undo-delete', 'hard-delete'\n ], $allUsers);\n\n // Display the result in a view\n $this->views->add('user/list-all', [\n 'title' => 'Alla användare',\n 'users' => $userInfo\n ]);\n }", "title": "" }, { "docid": "a656fd3c504977ccfaf035cdddd42150", "score": "0.66812676", "text": "public function listAction() : void {\n $this -> view -> assignMultiple([\n 'server' => $this -> serverRepository -> findAll()\n ]);\n }", "title": "" }, { "docid": "d69e4f0b4187ff68e97b4e7a5d09ad96", "score": "0.6680512", "text": "public function list()\n {\n }", "title": "" }, { "docid": "88a8d702b1375b13dc358eb9e6dfdb8e", "score": "0.66787434", "text": "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Tickets list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the tickets.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/tickets/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\n\t\t$this->datagrid->setConfig ( Tickets::grid() )->datagrid ();\n\t}", "title": "" }, { "docid": "af48da44bf6d55a059ab53c7dd12c14e", "score": "0.66786623", "text": "public function index()\n {\n $this->authorize('view', $this->repository->modelName());\n\n $resources = $this->repository->filter()->cast();\n\n return $this->responder->ok()->withData($resources)->send();\n }", "title": "" }, { "docid": "a9f952d5e07e7d6d7e049c37f8d2fa2e", "score": "0.667737", "text": "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $contact = new Contact();\n $results = $contact->getContact4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "title": "" }, { "docid": "fcbdc058a31d41050a367e7b15d55776", "score": "0.66733277", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminMongoOdmEvents::PRE_LIST);\n\n $fields = $this->document['list']['fields'];\n $paginator = $this->mongoOdmFindAll($this->document['class'], $this->request->query->get('page', 1), $this->document['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'));\n\n $this->dispatch(EasyAdminMongoOdmEvents::POST_LIST, ['paginator' => $paginator]);\n\n $parameters = [\n 'paginator' => $paginator,\n 'fields' => $fields,\n // RESTRICTED_ACTIONS 'delete_form_template' => $this->createDeleteForm($this->document['name'], '__id__')->createView(),\n ];\n\n return $this->executeDynamicMethod('render<DocumentName>Template', ['list', $this->document['templates']['list'], $parameters]);\n }", "title": "" }, { "docid": "d25f4e517682766596d2c16eca86c7fa", "score": "0.66732645", "text": "public function index()\n {\n return view('resource.index',['resources'=>Resource::all()]);\n }", "title": "" }, { "docid": "f6d989efb8c8e985bb96c0559d9bde67", "score": "0.667212", "text": "public function index()\n\t{\n $listings = Listing::paginate(3);\n return response( $listings,200);\n\t}", "title": "" }, { "docid": "561ee0fde098e9e4a73a2a5669089034", "score": "0.66712075", "text": "public function index()\n {\n // Get employees\n $employees = Employee::latest()->paginate(5);\n\n // Return employees\n return EmployeeResource::collection($employees);\n }", "title": "" }, { "docid": "2a6023a5396366a36aac2f066e03181d", "score": "0.66709393", "text": "public function index()\n {\n $playlists = Playlist::query()\n ->with('author')\n ->latest()\n ->paginate(16);\n return PlaylistResource::collection($playlists);\n }", "title": "" }, { "docid": "f16b067e8febaf73c982ac35e0e11cd0", "score": "0.6658731", "text": "public function index()\n {\n return ActionResource::collection(Action::paginate(5));\n }", "title": "" }, { "docid": "ca2f35e9a4c5b25c7b81f82a26bdc119", "score": "0.66559094", "text": "public function list()\n {\n $books = Book::visible();\n\n return $this->apiListingResponse($books, [\n 'id', 'name', 'slug', 'description', 'created_at', 'updated_at', 'created_by', 'updated_by', 'owned_by',\n ]);\n }", "title": "" }, { "docid": "36f38270af9227d848d8bfe2fc2fb2f6", "score": "0.66512823", "text": "public function index()\n\t{\n\t\t$resources = $this->repository->getResources();\n\t\t$menuTab = $this->menuTab;\n\t\treturn response()->view('admin.resources.index', compact(['resources', 'menuTab']));\n\t}", "title": "" }, { "docid": "842b9bbe43e49f877c207858fd6dd962", "score": "0.66511077", "text": "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Products list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the products.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/products/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Products::grid () )->datagrid ();\n\t}", "title": "" }, { "docid": "7654a7b909673402548e3c1d711a6d3b", "score": "0.6646156", "text": "public function list()\n {\n $data = array(\n 'title' => 'Laporan Vclaim',\n 'class_name' => $this->class,\n 'route_name' => $this->routes\n );\n\n $data['contents'] = 'contents/laporan/' . $this->class . '/index';\n $this->load->view('master', $data);\n\n }", "title": "" }, { "docid": "165ffb7039a9dcc6c1d81e1ca64483e4", "score": "0.66448224", "text": "public function index()\n {\n // Get books\n\t $books = Book::orderBy('created_at', 'desc')->paginate(5);\n\n\t return BookResource::collection($books);\n }", "title": "" }, { "docid": "6aae86ba51583240c8fe0f141159a841", "score": "0.664316", "text": "public function index()\n {\n $accountDetail = AccountDetail::all()->sortBy('id');\n return AccountDetailResource::collection($accountDetail);\n }", "title": "" }, { "docid": "10a2b9d6812eccfed7ddcd2d5f7a7eb0", "score": "0.6640271", "text": "public function index()\n {\n $sub_localization_model = SubLocalization::on();\n $this->addUserFilteringToDataFetch($sub_localization_model, 'name', 'where', ['name', 'LIKE']);\n $this->addUserFilteringToDataFetch($sub_localization_model, 'description', 'where', ['description', 'LIKE']);\n $this->addUserFilteringToDataFetch($sub_localization_model, 'localization_id', 'where', ['localization_id', '=']);\n\n return BaseResource::collection($sub_localization_model->get());\n }", "title": "" }, { "docid": "6d76de53bb869e73d429cbb2f319f520", "score": "0.663951", "text": "public function index(Request $request)\n {\n $resources = Resource::where('status', 1);\n\n $request_append = array();\n\n if($request->has('q')) {\n\n $query_string = $request->input('q');\n\n $request_append['q'] = $query_string;\n\n $resources = $resources->where('name', 'LIKE', '%' . $query_string . '%')\n ->orWhere('source_name', 'LIKE', '%' . $query_string . '%')\n ->orWhere('description', 'LIKE', '%' . $query_string . '%');\n }\n\n \n\n $resources = $resources->paginate(env('USER_LIST_PAGINATION_SIZE'))->appends($request_append);\n\n return View('resources.show-resources', compact('resources'));\n }", "title": "" }, { "docid": "d768f601d0b3a2a45a883075e9bd74fa", "score": "0.663936", "text": "public function index()\n {\n $products = Product::latest()->paginate();\n\n return $this->respond(ProductResource::collection($products));\n }", "title": "" }, { "docid": "1863deff5f71e623d3df5630ccdabb09", "score": "0.6633998", "text": "public function indexAction()\n {\n $this->_initAction();\n $this->_title('Items');\n $this->renderLayout();\n }", "title": "" }, { "docid": "701976fee18cc3b85c2b2cb729fee5d7", "score": "0.6633943", "text": "public function display_list(){\r\n\t\t\r\n\t\t$collection = new User_Collection();\r\n\t\t$variables = array(\r\n\t\t\t'collection' => $collection->getPaginated(),\r\n\t\t\t'pagination' => $collection->getPagination(),\r\n\t\t\t'sorters' => $collection->getSortableLinks(),\r\n\t\t);\r\n\t\t\r\n\t\tBackendLayout::get()\r\n\t\t\t->prependTitle('Список пользователей')\r\n\t\t\t->setLinkTags($collection->getLinkTags())\r\n\t\t\t->setContentPhpFile(self::TPL_PATH.'admin_list.php', $variables)\r\n\t\t\t->render();\r\n\t}", "title": "" }, { "docid": "b2f9c5d65d641e65a8807637650b4e37", "score": "0.6633174", "text": "public function index()\n {\n $limit = 0;\n $list_obj = Collection::where('status', 1)->orderBy('created_at', 'DESC')->paginate($limit);\n return view('admin.collection.list')->with('list_obj', $list_obj);\n }", "title": "" }, { "docid": "fbca53bf6960e73cbc1141408c860e37", "score": "0.6629921", "text": "function index()\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->_historialModel->getHistorial();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "title": "" }, { "docid": "fc175898bd7c35e91f0a34b68f176c7f", "score": "0.6628759", "text": "public function listing()\n\t{\n\t\treturn ADMIN_URL.'/list?item='.$this->get_table();\n\t}", "title": "" }, { "docid": "03690e7a09f22de0d26d268d13653dd8", "score": "0.6626126", "text": "function index(){\n\t\t$this->listar();\n\t}", "title": "" }, { "docid": "da5a6a8e08d78cfa23a7671fa0667dac", "score": "0.66259927", "text": "public function listingAction(){\n if (LoginHelper::isAdmin()){\n $this->view->render('doctor/list', Doctor::all());\n }else{\n Router::redirect('home', '<p class=\"alert alert-danger\">You are not authorized</p>');\n }\n }", "title": "" } ]
3cb476dbfed7bd61d62c2bf4474ae99b
Check string occurring after space and before cutter for volume number
[ { "docid": "2041a85ccfc0766938ad7ac0239330bc", "score": "0.5510145", "text": "public static function isVnum($str)\n\n {\n //Explode the string into individual characters\n $star = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);\n\n $type = null;\n foreach($star as $key=>$s)\n\n { \n if(is_numeric($s)) {$type = \"n\";} else {$type = \"l\";}\n\n if($type != null AND isset($ltype) AND $type != $ltype)\n\n { $starr[] = \"/\"; }\n\n $starr[] = $s; \n \n if(is_numeric($s)) {$ltype = \"n\";} else {$ltype = \"l\";}\n }\n\n $string = implode(\"\", $starr);\n $strings = explode(\"/\", $string);\n\n if(is_numeric($strings[0]) AND !is_numeric($strings[1])) \n\n { return $string; }\n\n else\n\n { return 0; }\n }", "title": "" } ]
[ { "docid": "1e5f02f4bbf7aeabe3752f0ee91e1f91", "score": "0.57614386", "text": "function contientSpace($mot){\n $c=false;\n for($i=0;$i<nombreCaracteres($mot);$i++){\n if($mot[$i]===\" \"){\n $c=true;\n break;\n }else{\n $c=false;\n }\n }\n return $c;\n }", "title": "" }, { "docid": "f394c3dccdeb10481bdde754225459b7", "score": "0.5569538", "text": "function checkSpaces($input){\n $pattern = \" \";\n if(strpos($input, $pattern) === false){\n return false;\n }else{\n return true;\n }\n}", "title": "" }, { "docid": "6c450c036e37deb8916cf11c2f9b45ae", "score": "0.55595773", "text": "function checkSpace($str)\n {\n if (!ereg(\"([^[:space:]]+)\",trim($str))) \n {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "c156156c5c1fd7cd98e34f93f38a51a8", "score": "0.534294", "text": "function processSongKey($stringToProcess) {\n // ensure key is consistent:\n $stringToProcess = str_replace(' ', '', $stringToProcess);\n $stringToProcess = strtolower(substr($stringToProcess,2,5));\n // remove 'maj' - is default:\n $stringToProcess = str_ireplace(\"maj\", \"\", $stringToProcess);\n // make 'min' just 'm':\n $stringToProcess = str_ireplace(\"min\", \"m\", $stringToProcess);\n return $stringToProcess;\n}", "title": "" }, { "docid": "8cffff527584c1040a8d922f7cd9e51f", "score": "0.5226495", "text": "function stringStuff($inString) {\n $stringLength = strlen($inString);\n\n $trim = trim($inString);\n\n $stringToLowerCase = strtolower($inString);\n\n $containsDMACC = substr_count($stringToLowerCase,\"dmacc\");\n\n if ($containsDMACC > 0) {\n $containsDMACC = \"This string contains DMACC\";\n }\n\n else {\n $containsDMACC = \"This string does not contain DMACC\";\n }\n\n echo \"<p>Number of characters in string: $stringLength</p>\";\n echo \"<p>String with no whitespace: $trim</p>\";\n echo \"<p>String to lowercase: $stringToLowerCase</p>\";\n echo \"<p>$containsDMACC</p>\";\n }", "title": "" }, { "docid": "1db41b25f06b00aec0da5c5473713cdd", "score": "0.50298566", "text": "function valida_rut($rut)\n{\n if (!preg_match(\"/^[0-9.]+[-]?+[0-9kK]{1}/\", $rut)) {\n return false;\n }\n $rut = preg_replace('/[\\.\\-]/i', '', $rut);\n $dv = substr($rut, -1);\n $numero = substr($rut, 0, strlen($rut) - 1);\n $i = 2;\n $suma = 0;\n foreach (array_reverse(str_split($numero)) as $v) {\n if ($i == 8)\n $i = 2;\n $suma += $v * $i;\n ++$i;\n }\n $dvr = 11 - ($suma % 11);\n if ($dvr == 11)\n $dvr = 0;\n if ($dvr == 10)\n $dvr = 'K';\n if ($dvr == strtoupper($dv))\n return true;\n else\n return false;\n}", "title": "" }, { "docid": "2eee6b9f0a450c995e0ea4bea39cd581", "score": "0.50253814", "text": "function my_offset($text) {\n\n // strip off after the first space followed by a number\n preg_match('/ \\d/', $text, $m, PREG_OFFSET_CAPTURE);\n if (sizeof($m))\n return $m[0][1];\n\n // strip off after the first space followed by a hash mark\n preg_match('/ #/', $text, $m, PREG_OFFSET_CAPTURE);\n if (sizeof($m))\n return $m[0][1];\n\n // the case when there's no numbers in the string\n return strlen($text);\n}", "title": "" }, { "docid": "fc261e47c5860ddcf86d6116e47115fb", "score": "0.50182486", "text": "function getCutter ($s) {\n\t\t##### variation of US Library of Congress rules for US English\n\t\techo \"cutter input string: \" . $s . \"<br />\";\n\t\t$s = strtolower($s);\n\t\t$s2 = substr($s,0,2);\n\t\t$ch1 = substr($s,0,1);\n\t\t$ch2 = substr($s,1,1);\n\t\tswitch ($ch1) {\n\t\t\tcase 'a':; case 'e':; case 'i':; case 'o':; case 'u':\n\t\t\t\tswitch ($ch2) {\n\t\t\t\t\tcase 'b':; $n2 = '2'; break;\n\t\t\t\t\tcase 'd':; $n2 = '3'; break;\n\t\t\t\t\tcase 'l':; case 'm': $n2 = '4'; break;\n\t\t\t\t\tcase 'n':; $n2 = '5'; break;\n\t\t\t\t\tcase 'p':; $n2 = '6'; break;\n\t\t\t\t\tcase 'r':; $n2 = '7'; break;\n\t\t\t\t\tcase 's':; case 't': $n2 = '8'; break;\n\t\t\t\t\tcase 'u':; case 'v':; case 'w':; case 'x':; case 'y': $n2 = '9'; break;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 's':\t \n\t\t\t\tswitch ($ch2) {\n\t\t\t\t\tcase 'a':; $n2 = '2'; break;\n\t\t\t\t\tcase 'e':; $n2 = '4'; break;\n\t\t\t\t\tcase 'h':; case 'i':; $n2 = '5'; break;\n\t\t\t\t\tcase 'm':; case 'n':; case 'o':; case 'p':; $n2 = '6'; break;\n\t\t\t\t\tcase 't':; $n2 = '7'; break;\n\t\t\t\t\tcase 'u':; $n2 = '8'; break;\n\t\t\t\t\tcase 'w':; case 'x':; case 'y':; case 'z': $n2 = '9'; break;\n\t\t\t\t\tdefault: if (substr($s,1,2) == 'ch') $n2 = '3'; break;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tswitch ($ch2) {\n\t\t\t\t\tcase 'a':; case 'b':; case 'c':; case 'd':; $n2 = '3'; break;\n\t\t\t\t\tcase 'e':; case 'f':; case 'g':; case 'h':; $n2 = '4'; break;\n\t\t\t\t\tcase 'i':; case 'j':; case 'k':; case 'l':; case 'm':; case 'n':; $n2 = '5'; break;\n\t\t\t\t\tcase 'o':; case 'p':; case 'q':; $n2 = '6'; break;\n\t\t\t\t\tcase 'r':; case 's':; case 't':; $n2 = '7'; break;\n\t\t\t\t\tcase 'u':; case 'v':; case 'w':; case 'x':; $n2 = '8'; break;\n\t\t\t\t\tcase 'y':; case 'z':; $n2 = '9'; break;\n\t\t\t\t}\n\t\t}\n\t\t$cutter = ucfirst($ch1) . $n2;\n\t\tfor ($i= 2; $i<=3; $i++) {\n\t\t\t$ch = substr($s, $i, 1);\n\t\t\tswitch ($ch) {\n\t\t\t\t\tcase 'a':; case 'b':; case 'c':; case 'd':; $n = '3'; ;break;\n\t\t\t\t\tcase 'e':; case 'f':; case 'g':; case 'h':; $n = '4'; ;break;\n\t\t\t\t\tcase 'i':; case 'j':; case 'k':; case 'l':; $n = '5'; break;\n\t\t\t\t\tcase 'm':; case 'n':; case 'o':; $n = '6'; break;\n\t\t\t\t\tcase 'p':; case 'q':; case 'r':; case 's': $n = '7'; ;break;\n\t\t\t\t\tcase 't':; case 'u':; case 'v':; $n = '8'; break;\n\t\t\t\t\tcase 'w':; case 'x':; case 'y':; case 'z':; $n = '9'; ;break;\n\t\t\t}\n\t\t\t$cutter .= $n;\n\t\t}\n\t\treturn $cutter;\n\t}", "title": "" }, { "docid": "436b2ffe7bf2a0bf38980d341933e7ea", "score": "0.5017389", "text": "function validateAirQuality($airQuality) {\r\n if (preg_match('/^[0-9]+(\\.[0-9]{1,2})?$/', $airQuality)) {\r\n return true;\r\n };\r\n}", "title": "" }, { "docid": "1d0c19a5169f532145d21be447513dae", "score": "0.49822676", "text": "function validateString($num) {\n if (strlen($num==0)) \n return -1;\n else {\n //if ((preg_match(\"<iframe\",trim($num))) || (stristr($num,\"iframe\")))\n if (preg_match(\"#^[a-zA-Z0-9 ]+$#i\",trim($num)))\n return 1;\n else\n return 0;\n }\n }", "title": "" }, { "docid": "5dd9f013066c413d6ae77541d6431d50", "score": "0.4905591", "text": "function checkMeBarcode($key){\n $old = 1000000000000;\n if(detected_keyword($key)){\n $firstCode = substr($key, 0, 5) * 1;\n\n if($firstCode % 10000 == 0){\n return 1; // truong me_barcode\n }else{\n return 0; // truong barcode\n }\n }else{\n $a = explode($old,$key);\n if(count($a) > 1){\n return 2;\n }else{\n return 100;\n }\n }\n}", "title": "" }, { "docid": "6cb5c2e26c7994b07a3200804adcbb59", "score": "0.48834664", "text": "function noSpace($str)\n {\n return (preg_match(\"#\\s#\", $str)) ? false : true;\n }", "title": "" }, { "docid": "c8baf54e09e2d24a2b394a26d26cf016", "score": "0.48680866", "text": "function validFood($food)\r\n {\r\n /*\r\n if(!empty($food) && ctype_alpha($food)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n */\r\n\r\n $food = str_replace(' ', '', $food);\r\n return !empty($food) && ctype_alpha($food);\r\n }", "title": "" }, { "docid": "ffe517a20667c4896e2d9fc4868296cb", "score": "0.48511353", "text": "function _validate_keys_string($input) {\n foreach (explode(' ', $input) as $value) {\n $items[] = preg_match('!^(?:[a-z]|\\d{1,3})$!i', $value);\n }\n return in_array(FALSE, $items);\n}", "title": "" }, { "docid": "fd8221c69e4f045d78b168b191a30695", "score": "0.48386943", "text": "function check_string($token){\n\n\t$tmp_token=preg_replace(\"/\\\\\\\\\\d{3}/\", \"\", $token);\n\tif (preg_match(\"/\\Astring@([^\\\\\\\\\\s])*\\Z/\", $tmp_token)){\n\t\treturn True;\n\t}else{\n\t\treturn False;\n\t}\n}", "title": "" }, { "docid": "c00c9b7d26f3dee8caa66cd303d36735", "score": "0.48227924", "text": "function is_DoubtfulSpecies_stop_pattern($row)\n {\n $words = explode(\" \", strtolower($row)); //print_r($words);\n if(count($words) <= 5 && in_array(\"species\", $words) && strlen($row) <= 30) {\n $matches = array_keys($words, 'species'); //print_r($matches);\n $i = -1;\n foreach($words as $word) { $i++;\n if($i <= $matches[0]) { //echo \"\\n[$word]\\n\";\n if(stripos($word, \"l\") !== false) return true; //string is found\n if(stripos($word, \"doubt\") !== false) return true; //string is found\n }\n }\n }\n }", "title": "" }, { "docid": "a941b1d8c488f75a343581d18dca7d69", "score": "0.4818533", "text": "function validate_wachtwoord($wachtwoord){\n\tif (!preg_match(\"#\\s#\", $wachtwoord, $match)) {\n\t\treturn \"Valide wachtwoord:\".$match[0].\"<br />\";\n\t\t}\n\telse{\n\t\treturn \"geen valide wachtwoord<br />\";\n\t}\n}", "title": "" }, { "docid": "8745b68acc3a4a2b329dc92974427346", "score": "0.48180032", "text": "function isVolume($input)\n{\n $inputNums = explode(\", \", $input);\n\n for ($i = 0; $i < count($inputNums); $i += 3) {\n $x = $inputNums[$i];\n $y = $inputNums[$i + 1];\n $z = $inputNums[$i + 2];\n\n $x1 = 10; $x2 = 50;\n $y1 = 20; $y2 = 80;\n $z1 = 15; $z2 = 50;\n\n if (($x1 <= $x && $x <= $x2) &&\n ($y1 <= $y && $y <= $y2) &&\n ($z1 <= $z && $z <= $z2)) {\n echo \"inside\" . \"\\n\";\n } else {\n echo \"outside\" . \"\\n\";\n }\n }\n}", "title": "" }, { "docid": "04df3a66f4e8ab679afd9bc1f1b78e32", "score": "0.48140574", "text": "function checkNum($name){\r\n if (!preg_match(\"/^([0-9 ]){1,100}+$/\",$name)) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "b4ca5e2e2072498746478cc898c8a29c", "score": "0.48087943", "text": "function is_cbsLong($id) {\n\n $word = explode(\" \", $id);\n // print( \" END: \" . end($word) . \":\\n\");\n\n if (is_numeric(end($word))) {\n // print(\"ends with numeric\\n\");\n return true;\n } else {\n print(\"does not end with numeric\\n\");\n die();\n }\n}", "title": "" }, { "docid": "72985e92b27eac336893c4b65787e6ba", "score": "0.479205", "text": "public function volume($volume) {\n\n return true;\n\n }", "title": "" }, { "docid": "b8fdec5a47f9403cbb7754de09b1bf67", "score": "0.47880256", "text": "function checkNumLet($name){\r\n if (!preg_match(\"/^([0-9A-Za-z., ]){1,100}+$/\",$name)) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "60a4782074796ce553235074db2713fc", "score": "0.47672358", "text": "public static function no_spaces_premium($variable) {\n $treated_variable = trim($variable);\n\n // Quitamos los espacios en blanco menos obvios (codificaciones especiales)\n $treated_variable = str_replace(' ', '', $treated_variable);\n\n // Quitamos los espacios en blanco para codificaciones que php no entienda\n $treated_variable = preg_replace('/\\s+/', '', $treated_variable);\n\n // Verifico si el length de la variable es igual o no al de la misma luego de quitarle los posibles espacios en blanco\n return strlen($treated_variable) == strlen($variable) ? true : false;\n\n }", "title": "" }, { "docid": "c2392e5118dc6f61d4b2e8befbe78e38", "score": "0.4756982", "text": "function erl_skip_unsignificant_symbols($string, $i){\n $len = strlen($string);\n while($i < $len){\n \t$l = $string[$i];\n if(false !== strpos(erl_config('spaces'), $l)){\n $i++;\n continue;\n }\n break;\n }\n return $i;\n}", "title": "" }, { "docid": "4a1d8d678ed0e5999b27b86e5b3d5b22", "score": "0.4750138", "text": "private function verificaMoeda() {\n $valor = str_replace( '.', '', $this->valor );\n $valor = str_replace( ',', '.', $valor );\n\n if ( !preg_match( $this->erNUMEROPONTO, $valor ) ) {\n return false;\n } else {\n $this->valor = floatval( $valor );\n return true;\n }\n }", "title": "" }, { "docid": "9da8603bb3b515a35ea98294bcd82327", "score": "0.4727745", "text": "function split_cutter_number($cutter) {\r\n $result = preg_match('([a-zA-Z]+)', $cutter, $matches);\r\n\r\n if ($result === FALSE) {\r\n error('split_cutter_number: Regular expression matching failed.');\r\n } else if ($result === 0) {\r\n error('split_cutter_number: Cutter number format error.');\r\n }\r\n\r\n $splitted[0] = $matches[0];\r\n\r\n $result = preg_match('([0-9]+)', $cutter, $matches);\r\n\r\n if ($result === FALSE) {\r\n error('split_cutter_number: Regular expression matching failed.');\r\n } else if ($result === 0) {\r\n error('split_cutter_number: Cutter number format error.');\r\n }\r\n\r\n $splitted[1] = floatval(\".$matches[0]\");\r\n\r\n return $splitted;\r\n }", "title": "" }, { "docid": "bd6086b1dfdd13aaaefa38c3d0d32657", "score": "0.4718716", "text": "function account_check($account)\n{\n if(strlen($account)==0)\n {\n return false;\n }\n if(substr_count($account,\" \")>0)\n {\n return false; \n }\n if(substr_count($account,\"\\t\")>0)\n {\n return false;\n }\n\n return true;\n}", "title": "" }, { "docid": "19a8f88e3a72df9e8238547ae0a63f5a", "score": "0.47051743", "text": "protected function hasWilcard(string $string): bool\n\t{\n\t\treturn strpos($string, '*') !== false;\n\t}", "title": "" }, { "docid": "99c48d214284e42a4da37f97b72d3435", "score": "0.47048", "text": "function check_for_ss_number($val) {\n $words = explode(' ', $val);\n $returnboolean = 0;\n foreach ($words as $word) {\n if (check_for_ssn($word)) {\n $returnboolean = 1;\n }\n }\n return $returnboolean;\n}", "title": "" }, { "docid": "e4f27da3b67d7b95c32afc2e155a1b1d", "score": "0.4699932", "text": "function width_check($str)\n{\n\t$res = str_replace(\"WIDTH: 720px;\",\"WIDTH: 690px;\",$str);\n\t$res = str_replace(\"WIDTH: 700px;\",\"WIDTH: 690px;\",$res);\n\treturn $res;\n}", "title": "" }, { "docid": "d8a3a36c8c7633a96d8e2be597f234cf", "score": "0.46915087", "text": "function check_guild_name($name)\n{\n$temp = strspn(\"$name\", \"qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789- \");\nif ($temp != strlen($name)) {\nreturn false;\n}\nelse\n{\n$ok = \"/[a-zA-Z ]{1,60}/\";\nreturn (preg_match($ok, $name))? true: false;\n}\n}", "title": "" }, { "docid": "bc0dc6f918c6b9286685fa59b961bbe7", "score": "0.46842483", "text": "function intrim($string)\n {\n return eregi_replace(' ', '', $string);\n }", "title": "" }, { "docid": "2506168cedc6a8d02e3a6a7270a4c6aa", "score": "0.46811244", "text": "function check_num($str){\n $pattern = \"/^[\\d]+$/\";\n return preg_match($pattern, $str);\n }", "title": "" }, { "docid": "3e44ddf5861b4eed0e36f96f683c0778", "score": "0.46795082", "text": "public function testDoubleStarInString() {\n $paymentString = \"SPD*1.0*AM:100**ACC:CZ05678876589087329\";\n $result = SpaydValidator::validatePaymentString($paymentString);\n // 1 error is expected\n Assert::equal(count($result), 1);\n }", "title": "" }, { "docid": "e17555850f7a20cd76c2d5010bdf4821", "score": "0.4678792", "text": "function contientM($mot){\n $c=false;\n for($i=0;$i<nombreCaracteres($mot);$i++){\n if($mot[$i]== \"m\" || $mot[$i]==\"M\"){\n $c=true;\n break;\n }else{\n $c=false;\n }\n }\n return $c;\n }", "title": "" }, { "docid": "9b5e44dbe7979120e0a8f483c7fd03d2", "score": "0.46573287", "text": "private function has_numbers( $string ) \n {\n return preg_match( '/\\d/', $string );\n }", "title": "" }, { "docid": "be637f4ed29a37d1089586c99f4d8a10", "score": "0.46506345", "text": "function check_for_credit_info($val) {\n $words = explode(' ', $val);\n $returnboolean = 0;\n foreach ($words as $word) {\n if (check_for_ccn($word)) {\n $returnboolean = 1;\n }\n }\n return $returnboolean;\n}", "title": "" }, { "docid": "4a6dada81e7bf9bb6e5d413da93b7820", "score": "0.464522", "text": "public function is_price( $var ){\n $pattern = \"/^\\d+(\\.\\d{2})?$/\";\n\n if( preg_match( $pattern, $var ) == 1 ){\n return true;\n }\n\n return false; \n }", "title": "" }, { "docid": "af37b387b6123290a85564771d5119e1", "score": "0.4644296", "text": "function isLength2($value) {\n\t\t$valid = FALSE;\n\t\t$value = trim($value);\n\t\tif (strlen($value) < 3 && strlen($value) > 1) {\n\t\t\t$valid = TRUE;\n\t\t}\n\t\treturn $valid;\n\t}", "title": "" }, { "docid": "936b848616648cf2c95a402467b4ff53", "score": "0.4624873", "text": "function getVolume($pi) {\n exec('ssh ' . $pi . ' amixer', $output);\n $volume = array_pop($output);\n preg_match('/\\[(\\d*)/', $volume, $matches);\n return array_pop($matches);\n}", "title": "" }, { "docid": "6a537d86fd7089024c8c2ec95a0a31bb", "score": "0.46204358", "text": "function is_hybrid_number($string, $row = \"\") //e.g. \"2a\"\n {\n if($this->has_letters($string) && $this->has_numbers($string)) return true; // e.g. \"7a.\"\n }", "title": "" }, { "docid": "43a82e28cef0778a283acab02bc888b2", "score": "0.46087298", "text": "private function stringCheck($string){\n $string = trim($string);\n $len = strlen($string);\n if ($len == 0){\n return true;\n }\n for ($i = 0; $i < $len; $i++){\n if ($string[$i] >= chr(0) && $string[$i] <=chr(32)){\n // znaky s acii val od 0 do 32\n return false;\n } else if ($string[$i] == '\\\\'){\n // escape sequence\n if ($i + 3 < $len){\n if (($string[$i+1] >= '0' && $string[$i+1] <= '9') &&\n ($string[$i+2] >= '0' && $string[$i+2] <= '9') &&\n ($string[$i+3] >= '0' && $string[$i+3] <= '9')){\n $i += 2;\n continue;\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else if ($string[$i] == 35){\n // #\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "0c89424fef8f4bcb544f7a7946cd0e44", "score": "0.46042594", "text": "public static function Numeric( $str ) {\r\n return (is_numeric( $str ) and preg_match( '/^[-0-9.]++$/D', (string) $str ));\r\n }", "title": "" }, { "docid": "33f98e2d43b7c5ee1f7cc68f310786ff", "score": "0.4602648", "text": "public function namentest($wert) {\n //Wenn Eingbe = Zahl, Alpanummerische Wert zwischen 2 und 30,\nif (preg_match(\"/^\\w{2,30}$/\", $wert)) {\n //Wenn Keine Fehler enstanden sind, gibt die Methode den Wert 0 zurück\nreturn 0;\n//Ansonsten:\n} else {\nreturn 1;\n}\n}", "title": "" }, { "docid": "201ff58b38fc7207e95dfcfeec10e9a8", "score": "0.46009162", "text": "function sanitiseStringPunctuation ($string, $min, $max){\n\n\t $string = trim ($string);\n\n\tif (preg_match('/^[A-Z 0-9\\'\\,.?%-\\s]{'.$min.','.$max.'}$/i', $string)) {\n\t\treturn 1;\n\t} else {\n\t\treturn 0;\n\t}\n}", "title": "" }, { "docid": "57704b11ff9285ec07f9df153db17b98", "score": "0.4600013", "text": "function ctype_space($text)\n{\n}", "title": "" }, { "docid": "a0c24ef704e919e91c6bf1a21b0dfbcf", "score": "0.45815173", "text": "private function isDashExist($param)\n {\n return (bool)strpos($param, \"_\") || (bool)strpos($param, \"-\");\n }", "title": "" }, { "docid": "6d97c470eb006c01db01e9e9b90edf08", "score": "0.45790017", "text": "function is_sciname_in_Kubitzki($string)\n {\n $string = trim($string); //new Sep 15\n \n /* possible exclude row --- return false --- if these strings exist in the $row\n \" from\" \" taxa\"\n */\n \n // if(stripos($string, $this->in_question) !== false) exit(\"\\n[$string][]\\nelix a0\\n\"); //string is found\n \n if(stripos($string, \"±\") !== false) return false; //string is found\n // if(stripos($string, \":\") !== false) return false; //string is found //CANNOT USE THIS: e.g. \"9. Compsoneura Warb. Fig. 100 C, F Bicuiba de Wilde, Beitr. BioI. Pfl. 66: 119 (1992).\"\n \n // /* e.g. \"(2). Wien: Fr. Beck, pp. 44-55.\"\n if(substr($string,0,1) == \"(\") return false;\n // */\n\n $words = explode(\" \", $string);\n $first = @$words[0]; $second = @$words[1]; $third = @$words[2];\n $forth = @$words[3]; //e.g. \"67. Duthieastrum de Vos\" --- 4th word is \"Vos\"\n\n // /* e.g. \"7. Berlinianche (Harms) Vattimo\" --- remove parenthesis\n $third = str_replace(array(\"(\", \")\"), \"\", $third);\n // */\n\n if($first && $second && $third) {\n /*\n [1. Magnoliid Families] => \n [2. Micromolecnlar Evidence. Among vascular plants,] => \n [5. Flower Characters. In the Centrospermae, differ-] => \n [2. Teil, Bd.10. Berlin: Gebrtider Borntraeger. 364 pp.] => \n */\n $not_in_third = array(\"Families\", \"Evidence.\", \"Characters.\", \"Group\", \"Tepals\", \"I\");\n if(in_array($third, $not_in_third)) return false;\n\n $not_in_second = array(\"Tepals\", \"The\", \"Fruit\", \"Royal\", \"Leaf\", \"Special\", \"Ancestral\", \"Major\", \"Breeding\", \"Scape\", \n \"Zoophilic\", \"Leaves\", \"In\", \"Novel\", \"New\", \"South\", \"Northern\", \"Plants\", \"Berlin\", \"Old\", \"Some\", \"Many\", \"Kew\",\n \"Not\", \"Late\", \"Eastern\"); //e.g. \"3. Zoophilic Pollination\" OR \"10. Leaves V-shaped in cross-section 8. Kniphofia\"\n if(in_array($second, $not_in_second)) return false;\n\n // /*\n if($this->first_part_of_string(\"Seed\", $second)) return false;\n // e.g. \"4. Seedling Organization\"\n // e.g. \"35. Seeds D-shaped, plants American 57. Chlidanthus\"\n // */\n \n /* sample genus\n 1. Zippelia Blume Figs. 109 A, 110A, B\n reported by Jen:\n voliii1998:\n l3. Olsynium Raf. <--- misspelling, L for 1. Rats, I was hoping those wouldn't occur here DONE\n 50. Tritoniopsis 1. Bolus DONE\n 53. Gladiolus 1. Figs. 90C, 92 DONE\n 67. Duthieastrum de Vos DONE\n 7. /ohnsonia R. Br. Fig.95A-D Lanariaceae. <--- extra weird. We needn't bend over backwards, DONE\n since I'll be processing this resource manually downstream anyway\n */\n $second_word_first_char = substr($second,0,1);\n $second_word_last_char = substr($second, -1);\n $third_word_last_char = substr($third, -1);\n \n // if(stripos($string, $this->in_question) !== false) exit(\"\\n[$string][$first]\\nelix a1\\n\"); //string is found\n \n if(self::is_valid_numeric($first) && $this->first_char_is_capital($second) \n && ( $this->first_char_is_capital($third) || ($third == \"de\" && $this->first_char_is_capital($forth)) ) // \"67. Duthieastrum de Vos\"\n && !in_array($second, $this->ranks)\n && strlen($first) <= 5 //120. | \"1047. Aaronsohnia Warb. & Eig\"\n && substr($first,-1) == \".\" // exclude e.g. \"011 UrI Lui Frl GI\"\n && strlen($second) >= 2 && strlen($third) >= 1 // e.g. \"2. Rafflesia R Br.\"\n\n && !in_array($second_word_last_char, array(\".\", \",\", \":\"))\n // exclude e.g. \"3. Annuals. Carpels connate to various degrees\"\n // exclude e.g. \"2. Teil, Bd.10. Berlin: Gebrtider Borntraeger. 364 pp.\"\n // exclude e.g. \"5. Taipei: Epoch Publishing Co. , pp. 859-1137.\"\n\n && !in_array($third_word_last_char, array(\":\"))\n // exclude e.g. \"2. Monocotyledonous Organization:\"\n\n && !in_array($second_word_first_char, array(\"(\")) // exclude \"405. (In Chinese with Engl. summ.)\"\n // && $this->is_sciname_in_GNRD($second)\n ) return true;\n elseif($sciname = self::get_name_from_intermediate_rank_pattern($string)) return $sciname;\n else return false;\n }\n elseif(count($words) == 1) { //2nd Start pattern --- e.g. \"Berberidaceae\"\n if( //substr($string, -3) == \"eae\" \n in_array(substr($string, -3), array(\"eae\", \"ae1\"))\n && $this->first_char_is_capital($string) && substr($string,0,1) != \"?\") {\n return true;\n }\n else return false;\n }\n else return false;\n }", "title": "" }, { "docid": "437bca989de0b8bc6f45d971b371021c", "score": "0.45781168", "text": "protected function if_number() {\n\t\t\tif (!preg_match(\"/^[0-9]*$/\", $this->data)) {\n\t\t\t\t$this->error = $this->title .\" should contain only numbers\";\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d7aa41fe9090e8df3741d0efb3c95b10", "score": "0.45759025", "text": "private function valAlphaDash($field){\n return preg_match('/^[\\pL\\pM\\pN\\s_-]+$/u', $field);\n }", "title": "" }, { "docid": "d809942477b56d1303afa172aa17da2a", "score": "0.45756876", "text": "function checkPrice($input) {\n $input = preg_match('/^(?:0|[1-9]\\d*)(?:\\.\\d{2})?$/', $input);\n return $input;\n }", "title": "" }, { "docid": "b99e245789d331a6a343f9dc3ecd6c0a", "score": "0.45726886", "text": "function not_ctype_space($text) {\n return ! ctype_space($text);\n }", "title": "" }, { "docid": "a1d003aa92a8f8b44ea8a3290433c45d", "score": "0.45713192", "text": "function is_digits($element){\n return !preg_match (\"/[^0-9]/\", $element);\n }", "title": "" }, { "docid": "5c5e31c0c60d8e9b3ac5875e253a6bac", "score": "0.45703718", "text": "function alpha_dash_space($str_in){\n\t\tif (! preg_match(\"/^([-a-z_ ])+$/i\", $str_in)) {\n\t\t\t$this->form_validation->set_message('alpha_dash_space', '%s harap masukan huruf');\n\t\t\treturn FALSE;\n\t\t} else {\n\t\t\treturn TRUE;\n\t\t}\n\t}", "title": "" }, { "docid": "5c5e31c0c60d8e9b3ac5875e253a6bac", "score": "0.45703718", "text": "function alpha_dash_space($str_in){\n\t\tif (! preg_match(\"/^([-a-z_ ])+$/i\", $str_in)) {\n\t\t\t$this->form_validation->set_message('alpha_dash_space', '%s harap masukan huruf');\n\t\t\treturn FALSE;\n\t\t} else {\n\t\t\treturn TRUE;\n\t\t}\n\t}", "title": "" }, { "docid": "fe7baea3d085dfa2d9b262aa6a29d2d2", "score": "0.4570157", "text": "function trim_space($value) {\n $result = preg_replace('/\\s+/', '', $value);\n if(strlen($result) < 3) {\n return $msg;\n }\n}", "title": "" }, { "docid": "88d73645f2900c58f1b1d181f40d3268", "score": "0.4570075", "text": "function check_for_continuous_numerics($string,$allowed_cont_num_len=\"\")\n{\n\t$string = remove_special_characters($string,\"numbers\");\n\tif(!$allowed_cont_num_len)\n\t\t$allowed_cont_num_len = 6;\n\n\t$string_length = strlen($string);\n\tfor($i = 0; $i < $string_length; $i++)\n\t{\n\t\tif(is_numeric($string[$i]) && is_numeric($string[$i-1]))\n\t\t\t$count_numeric++;\n\t\telse\n\t\t\t$count_numeric = 1;\n\n\t\tif($count_numeric >= $allowed_cont_num_len)\n\t\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "0ac07ed3735c40a28b8969369eb6dd8f", "score": "0.45683843", "text": "private function _letraNumRaros($str)\r\n {\r\n return preg_match(\"/^[a-zA-Z0-9][a-zA-ZáéíóúÁÉÍÓÚ0-9\\W ]+$/\", $str);\r\n }", "title": "" }, { "docid": "357410b779a226d7458161956dbd8f74", "score": "0.45661312", "text": "public function getVolume($unit){\n if(! $this->flag){ //boolean flag to minimize repeated volume computation overhead\n\n $v = $this->calculateVolume();\n $this->volume = $v;\n $this->flag = true;\n }\n\n $volume = 0;\n if($unit==\"cm\"){\n\t\t\t $volume = ($this->volume/1000);\n }\n\t else{\n \t\t $volume = $this->inch3($this->volume/1000);\n }\n\n return $volume;\n }", "title": "" }, { "docid": "85e8df84ea506021e1ba56c6e88c5189", "score": "0.455346", "text": "public function containsSymbol($str)\n {\n if (!$this->notempty($str)) {\n return 0;\n }\n return strlen(trim(preg_replace('/([a-zA-Z0-9]*)/', '', $str)));\n }", "title": "" }, { "docid": "c10ebbc08d5a6b9a13f49d54a8507ee0", "score": "0.45509842", "text": "function average_string(string $s): string {\n if($s == \"\") return \"n/a\";\n \n $numbers = [\"one\" => 1,\n \"two\" => 2,\n \"three\" => 3,\n \"four\" => 4,\n \"five\" => 5,\n \"six\" => 6,\n \"seven\" => 7,\n \"eight\" => 8,\n \"nine\" => 9,\n \"zero\" => 0];\n $sum = 0;\n $arr = explode(\" \", $s);\n \n foreach($arr as $num){\n if(array_key_exists($num, $numbers)){\n $sum += $numbers[$num];\n }\n else return \"n/a\";\n }\n \n $ave = floor($sum/count($arr));\n \n return array_search($ave, $numbers);\n \n}", "title": "" }, { "docid": "e57eecc63252474c3b39ca0a54d8ad18", "score": "0.45506442", "text": "function isDoubleByte($sChkStr)\n\t{\n\t for ($i=0;$i<mb_strlen($sChkStr);$i++)\n\t {\n\t if(mb_substr_count($sChkStr,\" \")==mb_strlen($sChkStr))\n\t {\n\t return FALSE;\n\t }\n\n\t $sStr=mb_substr($sChkStr,$i, 1); \n\t if(strlen($sStr)<2)\n\t {\n\t return FALSE;\n\t }\n\t }\n\n\t return TRUE;\n\t}", "title": "" }, { "docid": "15419e6866fcb7dd7388b6b88ee23269", "score": "0.45412523", "text": "function get_primer_parrafo($string){\r\n $string = substr($string,0, strpos($string, \".\")+4);\r\n return $string;\r\n}", "title": "" }, { "docid": "913bfeb48c6e2bfe3609fa09e76bce2d", "score": "0.4541114", "text": "public static function validAlphabeticNumeric($v)\n {\n $v1 = trim($v);\n \n if($v1 == \"\")\n return false;\n \n if( eregi( \"[^a-zA-Z0-9]\", $v1 ) )\n {\n return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "e2779c9d32f4936148ab62213b3bffb6", "score": "0.45305857", "text": "function isNum($sStr) \n\t{ \n\t\tif(ereg(\"^[[:digit:]]+$\", $sStr))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "6d5a4c923fb83e24742cc681227677b1", "score": "0.45259535", "text": "function check_string ($var)\n{\n if (preg_match ('/^([A-Za-z0-9 ]+)+$/', $var))\n {\n return true;\n }\n else\n {\n return false;\n }\n}", "title": "" }, { "docid": "a4289b665375a295d7471bd7785363fc", "score": "0.45257404", "text": "function isNumeric($arg){\n return preg_match(\"#[^0-9]#\",$arg);\n }", "title": "" }, { "docid": "5fa4d3597270cae14866e6e26784c1de", "score": "0.45255202", "text": "function name_to_num( $arr, $name ) {\n foreach ( $arr as $k=>$v ) if ( stripos($name,$v) == 0 && strlen($name) == strlen($v) ) return $k;\n return FALSE;\n}", "title": "" }, { "docid": "0edef1fe4c9873a40b8bb9100393004e", "score": "0.45254135", "text": "function more_than_one_word($str)\n {\n $words = explode(\" \", trim($str));\n if(count($words) > 1) return true;\n else return false;\n }", "title": "" }, { "docid": "515443eb840ce3e028a1cc0cf2db6a85", "score": "0.45247257", "text": "function checkForCapital($word) {\n if (is_string($word)) {\n if (preg_match('/\\A[A-Z]()/',$word)) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "2ef5885dff62794896065bdfbcde1aa0", "score": "0.45198637", "text": "function cNick($text)\r\n{\r\n $numCaracteres=mb_strlen($text);\r\n if (preg_match(\"/^[A-Za-zÑñ ]{1,15}+$/\", sinTildes($text)) && $numCaracteres<=20)\r\n return 1;\r\n else\r\n return 0;\r\n}", "title": "" }, { "docid": "c9dbf1da6fe2b326c0501e3843805998", "score": "0.450652", "text": "public function var_string_format($str) {\n\n\t\t$str = trim($str);\n\n\t\t$int = 0;\n\t\t$str_length = strlen($str);\n\n\t\t$this->form_validation->set_message('var_string_format', 'The %s field contains wrong variable format - note: $variable[type]');\n\n\t\twhile ($int < $str_length) {\n\n\t\t\tif ($str[$int] === '$') {\n\n\t\t\t\t$small_name_check = '';\n\t\t\t\t++$int;\n\n\t\t\t\tif (!isset($str[$int])) return FALSE;\n\n\t\t\t\twhile ($str[$int] != ' ') {\n\n\t\t\t\t\t$small_name_check .= $str[$int];\n\n\t\t\t\t\t++$int;\n\n\t\t\t\t\tif ($int >= $str_length) break;\n\n\t\t\t\t}\n\n\t\t\t\t// To edit if regex strong-type added\n\t\t\t\t//if (!$this->panda->is_alphanumeric($small_name_check, array('[', ']', ':'))) return FALSE; // Exceptions: strong type []\n\n\n\t\t\t}\n\n\t\t\t++$int;\n\t\t}\n\n\t\treturn TRUE;\n\n\t}", "title": "" }, { "docid": "51edc14ad39bf04fee7b1ef69f5e71e7", "score": "0.45029452", "text": "public function parseQuarterTonePart(string $input)\n\t{\n\t\t// Match a note expressed in scientific pitch notation.\n\t\t$regex = '/^' . self::ACCIDENTAL_PATTERN . '$/x';\n\n\t\t// If a valid accidental (as a string) was provided.\n\t\tif (preg_match($regex, $input, $result) === 1) {\n\t\t\t// Return the quarter tone part of the accidental as a string, otherwise NULL.\n\t\t\treturn (string)$result['quarterTone'] ?: null;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8b118024dc8c596b5687681bee1e8a25", "score": "0.44990703", "text": "abstract protected function isWhitespace(int &$length): bool;", "title": "" }, { "docid": "e9876c7e538c829df2f1e2d563292bc4", "score": "0.44973132", "text": "function check_rank_name($name)//sprawdza name\n{\n$temp = strspn(\"$name\", \"qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789-[ ] \");\nif ($temp != strlen($name)) {\nreturn false;\n}\nelse\n{\n$ok = \"/[a-zA-Z ]{1,60}/\";\nreturn (preg_match($ok, $name))? true: false;\n}\n}", "title": "" }, { "docid": "c1b4072fea02247131fd53b484f8cdb1", "score": "0.4497143", "text": "function isStringNumberStartsWithMoreThanOneZero($value)\n{\n if (isNullOrEmpty($value)) {\n return false;\n }\n return preg_match('/^[0]{2,}$/', $value) === 1 || preg_match('/^0{1,}[1-9]{1,}$/', $value) === 1;\n}", "title": "" }, { "docid": "d64f5261a6208894085f8c56e20a4b96", "score": "0.44941676", "text": "function SimpleSymbols($str) { \r\n\r\n\r\n $str = str_split($str);\r\n for ($i = 0; $i < count($str); $i++) {\r\n if (ctype_alpha($str[$i])) {\r\n if ( ! (isset($str[$i + 1]) && $str[$i + 1] == \"+\") && ! (isset($str[$i - 1]) && $str[$i - 1] == \"+\")) {\r\n return \"false\";\r\n }\r\n }\r\n }\r\n return \"true\";\r\n \r\n}", "title": "" }, { "docid": "a08e723460f073e58db02e48594ae9dd", "score": "0.44919375", "text": "function is_valid_torrent($string) {\n if(strlen($torrent) < 1024*1024*10)\n return 1;\n else\n return 0;\n}", "title": "" }, { "docid": "07e8ba38b418a59c76587e195ecdd365", "score": "0.4491145", "text": "function has_valid_position($value){\n return preg_match('%^\\d+$%', $value);\n }", "title": "" }, { "docid": "4e3006fc693da1923984d67ce3abd67c", "score": "0.44878423", "text": "function GetVolumeLabel() {\n\t if (preg_match('#Volume Serial Number is (.*)\\n#i', shell_exec('dir c:'), $m)) {\n\t $volname = ' ('.$m[1].')';\n\t } else {\n\t $volname = '';\n\t }\n\t//return $volname;\n\t$serial = str_replace(\"(\",\"\",str_replace(\")\",\"\",$volname));\n\t$serial = md5($serial);\n\t$serial = substr(preg_replace(\"/[^0-9]/\", '', $serial),0,4);\n\treturn $serial;\n}", "title": "" }, { "docid": "0b2d201ac841eab4954ac274d8025670", "score": "0.44849414", "text": "function NotIsCorrect($sCadena,$sCampo)\n{\n if (!preg_match(\"/^[a-z_ÑÁÉÍÓÚÄËÏÖÜñáéíóüäëïöü\\'\\s]*$/i\", $sCadena)) {\n return \"El campo <b>$sCampo</b> solo acepta caracteres alfanumericos y espacios, \napóstrofe\";\n } elseif ((strlen($sCadena) < 2) or (strlen($sCadena) > 40)) {\n return \"El <b>$sCampo</b> debe estar formado por mas de una letra y \nser menor o igual a cuarenta (40) caracteres\";\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "18d2fd5b7fa3a50c8b2f984d6f64a867", "score": "0.44829494", "text": "public static function isApplicable($string)\n {\n $firstline = strtok($string, \"\\r\\n\\t\");\n\n return strpos($firstline, 'PENTA') !== false;\n }", "title": "" }, { "docid": "af1ba0c80e73d9c0a81969281cbe5ae0", "score": "0.44590104", "text": "function IsPosNegIntStr($s) {\n return preg_match('/^-{0,1}\\d+$/', $s);\n}", "title": "" }, { "docid": "c6d389fb875578aee28ecac891e76abb", "score": "0.44575614", "text": "public static function is_price($str)\n {\n return preg_match('/^\\d+(\\.\\d{1})?(\\.\\d{2})?$/', $str) === 1;\n }", "title": "" }, { "docid": "34ecc55cf67157b3ac9d5cc902b2132c", "score": "0.44564447", "text": "function is_clean($str, $no_space = false, $only_alphanumeric = true) {\n logging(\" Check variable : $str, check include spaces : $no_space , check only alphanumeric : $only_alphanumeric \\n\");\n $str = strtolower($str);\n // dangrous special characters\n\n\n if (empty($str)) {\n Logging(\"Data is empty \\n\");\n return true;\n }\n\n $specials = array('\\\\', \"\\n\", \"\\r\", \"'\", '\"', \"\\x1a\", \"<\", \">\", \"=\");\n foreach ($specials as $val) {\n if (strstr($str, $val)) {\n logging(\"Result Invalid reason : string $str includs harmful special chracters \\n\");\n return false;\n }\n }\n\n\n /* if(is_numeric($str)&& strstr($str, \" \")==false)\n { //handling zero issue\n Logging(\"Data is numeric\");\n return true;\n } */\n\n //No speacial chracters except the members existed in the $allowed array\n if ($only_alphanumeric == true) {\n $edited_str = $str;\n $allowed = array(\"-\", \"_\", \"@\", \".\", \",\", \"#\", \" \", \"-\", \"/\", \"|c\", \":\", \"?\");\n foreach ($allowed as $v) {\n $edited_str = str_replace($v, \"\", $edited_str);\n }\n\n if (ctype_alnum($edited_str) != true) {\n logging(\"Result Invalid reason : string $str includes special characters \\n\");\n return false;\n }\n }\n\n // No spaces\n if (strstr($str, \" \") && $no_space == true) {\n logging(\"Result Invalid reason : string $str contains spaces \\n\");\n return false;\n }\n logging(\"string $str valid \\n\");\n return true;\n}", "title": "" }, { "docid": "195b84d04ea6a8605fac54f49edde110", "score": "0.44548804", "text": "public function alpha_numeric_extra($str)\n {\n return ( !preg_match(\"/^([\\w\\.\\-'\\(\\)\\s\\/]+)$/i\", $str)) ? FALSE : TRUE;\n }", "title": "" }, { "docid": "fd8aa1ae4d15ef7612e5ed91216b3f52", "score": "0.44489846", "text": "protected function slugContainsDigit($found)\n {\n return is_numeric(substr($found->slug, -1));\n }", "title": "" }, { "docid": "65bb5a031d469790542201816259e891", "score": "0.44477087", "text": "function parse_size($size) {\n\t// Remove the non-unit characters from the size.\n\t$unit = preg_replace('/[^bkmgtpezy]/i', '', $size);\n\t\n\t// Remove the non-numeric characters from the size.\n\t$size = preg_replace('/[^0-9\\.]/', '', $size);\n\tif ($unit) {\n\t\t// Find the position of the unit in the ordered string which is the power of magnitude to multiply a kilobyte by.\n\t\treturn round($size * pow(1024, stripos('bkmgtpezy', $unit[0])));\n\t} else {\n\t\treturn round($size);\n\t}\n}", "title": "" }, { "docid": "1326bc488ee6a9193415352a0137dbf5", "score": "0.44415912", "text": "function findShort($str) {\n $words = explode(' ', $str);\n $min = strlen($words[0]);\n foreach($words as $word) {\n if (strlen($word) < $min) {\n $min = strlen($word);\n }\n }\n return $min;\n}", "title": "" }, { "docid": "02441cb30a82a4c8ef838f04e3fb32e9", "score": "0.44407737", "text": "private function parse_Description($orig)\n {\n // $str = \"TL=4,357.2 mm. Photographed during Kaneohe Bay, Hawaii, Bioblitz expedition, 2017. Specimen voucher field number: KB17-032\";\n // $str = \"TL=4,357.2 mm; Photographed\";\n // $str = \"TL=4,357.2 mm, Photographed\";\n // $str = \"TL=4,357.2 mm Photographed\";\n // $str = \"TL=4,357.2 mm\";\n $str = $orig;\n $final = array();\n $tmp = explode(\"=\", $str);\n $str = $tmp[1];\n // echo \"\\n[$str]\\n\";\n // if(preg_match_all('!\\d+\\.*\\d*!', $str, $arr)) {\n if(preg_match_all('((?:[0-9]+,)*[0-9]+(?:\\.[0-9]+)?)', $str, $arr)) {\n // print_r($arr);\n $number_str = $arr[0][0];\n // echo \"\\n[$number_str]\\n\";\n $str = trim(str_replace($number_str, '', $str));\n // echo \"\\n[$str]\\n\";\n $unit = '';\n $chars = array(\".\", \";\", \",\", \" \");\n for($i = 0; $i <= strlen($str); $i++) {\n $char = substr($str,$i,1);\n if(in_array($char, $chars)) break;\n $unit .= $char;\n }\n // echo \"\\n[$unit]\\n\";\n $final['Measurement'] = \"$number_str $unit\";\n }\n else exit(\"\\nTest this value: [$str]\\n\");\n //----------------------------------------\n /* Measurement Type:\n in the pattern match above, take whatever is to the left of the \"=\". If that string contains a separator \".\", \";\" or \",\" \n take only what follows the last separator before the \"=\". \n eg: for \"TL=457.2 mm. Photographed during Kaneohe Bay, Hawaii, Bioblitz expedition, 2017. Specimen voucher field number: KB17-032\" -> TL */\n $str = $orig;\n // $str = \"TL=4,357.2 mm\"; //debug only\n $tmp = explode(\"=\", $str);\n if($tmp[0] && @$tmp[1]) {\n $str = trim($tmp[0]);\n // echo (\"\\n[$str]\\n\");\n $chars = array(\".\", \";\", \",\");\n foreach($chars as $char) {\n if(stripos($str, $char) !== false) { //string is found\n $arr = explode($char, $str);\n // print_r($arr);\n $final['Measurement Type'] = end($arr); // exit(\"\\n\".$final['Measurement Type'].\"\\n\");\n break;\n }\n }\n if(!@$final['Measurement Type']) $final['Measurement Type'] = $str;\n }\n //----------------------------------------\n return $final;\n }", "title": "" }, { "docid": "02441cb30a82a4c8ef838f04e3fb32e9", "score": "0.44407737", "text": "private function parse_Description($orig)\n {\n // $str = \"TL=4,357.2 mm. Photographed during Kaneohe Bay, Hawaii, Bioblitz expedition, 2017. Specimen voucher field number: KB17-032\";\n // $str = \"TL=4,357.2 mm; Photographed\";\n // $str = \"TL=4,357.2 mm, Photographed\";\n // $str = \"TL=4,357.2 mm Photographed\";\n // $str = \"TL=4,357.2 mm\";\n $str = $orig;\n $final = array();\n $tmp = explode(\"=\", $str);\n $str = $tmp[1];\n // echo \"\\n[$str]\\n\";\n // if(preg_match_all('!\\d+\\.*\\d*!', $str, $arr)) {\n if(preg_match_all('((?:[0-9]+,)*[0-9]+(?:\\.[0-9]+)?)', $str, $arr)) {\n // print_r($arr);\n $number_str = $arr[0][0];\n // echo \"\\n[$number_str]\\n\";\n $str = trim(str_replace($number_str, '', $str));\n // echo \"\\n[$str]\\n\";\n $unit = '';\n $chars = array(\".\", \";\", \",\", \" \");\n for($i = 0; $i <= strlen($str); $i++) {\n $char = substr($str,$i,1);\n if(in_array($char, $chars)) break;\n $unit .= $char;\n }\n // echo \"\\n[$unit]\\n\";\n $final['Measurement'] = \"$number_str $unit\";\n }\n else exit(\"\\nTest this value: [$str]\\n\");\n //----------------------------------------\n /* Measurement Type:\n in the pattern match above, take whatever is to the left of the \"=\". If that string contains a separator \".\", \";\" or \",\" \n take only what follows the last separator before the \"=\". \n eg: for \"TL=457.2 mm. Photographed during Kaneohe Bay, Hawaii, Bioblitz expedition, 2017. Specimen voucher field number: KB17-032\" -> TL */\n $str = $orig;\n // $str = \"TL=4,357.2 mm\"; //debug only\n $tmp = explode(\"=\", $str);\n if($tmp[0] && @$tmp[1]) {\n $str = trim($tmp[0]);\n // echo (\"\\n[$str]\\n\");\n $chars = array(\".\", \";\", \",\");\n foreach($chars as $char) {\n if(stripos($str, $char) !== false) { //string is found\n $arr = explode($char, $str);\n // print_r($arr);\n $final['Measurement Type'] = end($arr); // exit(\"\\n\".$final['Measurement Type'].\"\\n\");\n break;\n }\n }\n if(!@$final['Measurement Type']) $final['Measurement Type'] = $str;\n }\n //----------------------------------------\n return $final;\n }", "title": "" }, { "docid": "71c9c1c80f590a5c23bc4c56fd6a2858", "score": "0.44400615", "text": "function is_phone($p) {\n return strlen(ltrim(preg_remove('/[^\\d]+/', $p), 1)) === 10;\n}", "title": "" }, { "docid": "5ac6c6f3f8a1903a8cfe038e571a15c2", "score": "0.44345146", "text": "function string_starts_with($string, $test)\n{\n $length = strlen($test);\n return (substr($string, 0, $length) === $test);\n}", "title": "" }, { "docid": "67c54eeb7efafe4ba28fac4c01c05df4", "score": "0.44335517", "text": "function ec3_Version($str) {\n $s=preg_replace('/([-a-z]+)([0-9]+)/','\\1.\\2',$str);\n $v=explode('.',$s);\n $this->part=array();\n foreach($v as $i) {\n if(preg_match('/^[0-9]+$/',$i))\n $this->part[]=intval($i);\n elseif(preg_match('/^dev/',$i))\n $this->part[]=-1000;\n elseif(preg_match('/^_/',$i))\n $this->part[]=-500;\n elseif(preg_match('/^a(lpha)?/',$i))\n $this->part[]=-3;\n elseif(preg_match('/^b(eta)?/',$i))\n $this->part[]=-2;\n elseif(preg_match('/^rc?/',$i))\n $this->part[]=-1;\n elseif(empty($i))\n $this->part[]=0;\n else\n $this->part[]=$i;\n }\n }", "title": "" }, { "docid": "800ec930a104b19ee5f17cf2bdfd293e", "score": "0.4428715", "text": "function check_account_name($name)//sprawdza name\n{\n$temp = strspn(\"$name\", \"QWERTYUIOPASDFGHJKLZXCVBNM0123456789\");\nif ($temp != strlen($name))\nreturn false;\nif(strlen($name) > 32)\nreturn false;\nelse\n{\n$ok = \"/[A-Z0-9]/\";\nreturn (preg_match($ok, $name))? true: false;\n}\n}", "title": "" }, { "docid": "f930b7a5cbeb43b05d992ef31b0f5bda", "score": "0.44252732", "text": "function read_until_white_space($stringName) {\n\treturn substr($stringName, 0, strpos($stringName, ' '));\n}", "title": "" }, { "docid": "3f344548ad0f7a7ed86ee675d7659e45", "score": "0.44236186", "text": "public function var_restriction($str) {\n\n\t\t$str = trim($str);\n\t\t$str_array = explode(\" \", $str);\n\n\t\t$num_words = count($str_array);\n\t\t$num_dyn_words = 0;\n\n\t\tforeach ($str_array as $row) {\n\n\t\t\tif ($row[0] === '$') $num_dyn_words++;\n\n\t\t}\n\n\t\tif ($num_dyn_words >= $num_words) {\n\n\t\t\t$this->form_validation->set_message('var_restriction', 'The %s field cannot contain only dynamic datas');\n\t\t\treturn FALSE;\n\n\t\t} else {\n\n\t\t\treturn TRUE;\n\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "bc2f3ffbe9dd0ee6dc18363e723d5016", "score": "0.44235018", "text": "function printerError($s) {\r\n $errors = 0;\r\n foreach (count_chars($s, 1) as $i => $val) {\r\n preg_match('/^([a-m])([A-M])?$/', chr($i), $matches);\r\n\r\n if(!$matches) {\r\n $errors += $val;\r\n }\r\n }\r\n\r\n return $errors.'/'.strlen($s);\r\n}", "title": "" }, { "docid": "a70ac66e63f785be8ce3181afb4a4fa9", "score": "0.44227022", "text": "function check_name($name)//sprawdza name\n{\n$temp = strspn(\"$name\", \"qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM- [ ] '\");\nif ($temp != strlen($name)) {\nreturn false;\n}\nelse\n{\n$ok = \"/[a-zA-Z ']{1,25}/\";\nreturn (preg_match($ok, $name))? true: false;\n}\n}", "title": "" }, { "docid": "b70610d758ac7af15f2653d1ced8a434", "score": "0.44217682", "text": "function sanitiseBasicString ($string, $min, $max){\n\n\t$string = trim ($string);\n\n\tif (preg_match('/^[A-Z \\'.-]{'.$min.','.$max.'}$/i', $string)) {\n\t\treturn 1;\n\t} else {\n\t\treturn 0;\n\t}\n}", "title": "" } ]
bfcfd61db2aafb344aa73f2028d62cbb
Print column headers, accounting for hidden and sortable columns. this overrides WP core simply to make column headers use REQUEST instead of GET
[ { "docid": "f5d99ae2121574b020cdf8cd224aac87", "score": "0.6811122", "text": "public function print_column_headers( $with_id = true ) {\n\t\tlist( $columns, $hidden, $sortable ) = $this->get_column_info();\n\n\t\t$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );\n\t\t$current_url = remove_query_arg( 'paged', $current_url );\n\n\t\tif ( isset( $_REQUEST['orderby'] ) ) {\n\t\t\t$current_orderby = $_REQUEST['orderby'];\n\t\t} else {\n\t\t\t$current_orderby = '';\n\t\t}\n\n\t\tif ( isset( $_REQUEST['order'] ) && 'desc' == $_REQUEST['order'] ) {\n\t\t\t$current_order = 'desc';\n\t\t} else {\n\t\t\t$current_order = 'asc';\n\t\t}\n\n\t\tif ( ! empty( $columns['cb'] ) ) {\n\t\t\tstatic $cb_counter = 1;\n\n\t\t\t$columns['cb'] = '<label class=\"screen-reader-text\" for=\"cb-select-all-' . $cb_counter . '\">' . esc_html__( 'Select All', 'woocommerce-product-vendors' ) . '</label>'\n\t\t\t\t. '<input id=\"cb-select-all-' . $cb_counter . '\" type=\"checkbox\" />';\n\n\t\t\t$cb_counter++;\n\t\t}\n\n\t\tforeach ( $columns as $column_key => $column_display_name ) {\n\t\t\t$class = array( 'manage-column', \"column-$column_key\" );\n\n\t\t\t$style = '';\n\n\t\t\tif ( in_array( $column_key, $hidden ) ) {\n\t\t\t\t$style = 'display:none;';\n\t\t\t}\n\n\t\t\t$style = ' style=\"' . $style . '\"';\n\n\t\t\tif ( 'cb' == $column_key ) {\n\t\t\t\t$class[] = 'check-column';\n\t\t\t} elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ) ) ) {\n\t\t\t\t$class[] = 'num';\n\t\t\t}\n\n\t\t\tif ( isset( $sortable[ $column_key ] ) ) {\n\t\t\t\tlist( $orderby, $desc_first ) = $sortable[ $column_key ];\n\n\t\t\t\tif ( $current_orderby == $orderby ) {\n\t\t\t\t\t$order = 'asc' == $current_order ? 'desc' : 'asc';\n\t\t\t\t\t$class[] = 'sorted';\n\t\t\t\t\t$class[] = $current_order;\n\t\t\t\t} else {\n\t\t\t\t\t$order = $desc_first ? 'desc' : 'asc';\n\t\t\t\t\t$class[] = 'sortable';\n\t\t\t\t\t$class[] = $desc_first ? 'asc' : 'desc';\n\t\t\t\t}\n\n\t\t\t\t$column_display_name = '<a href=\"' . esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ) . '\"><span>' . $column_display_name . '</span><span class=\"sorting-indicator\"></span></a>';\n\t\t\t}\n\n\t\t\t$id = $with_id ? \"id='$column_key'\" : '';\n\n\t\t\tif ( ! empty( $class ) ) {\n\t\t\t\t$class = \"class='\" . join( ' ', $class ) . \"'\";\n\t\t\t}\n\n\t\t\techo \"<th scope='col' $id $class $style>$column_display_name</th>\";\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "794a10e21d891e8c76ab656f4730f412", "score": "0.7094919", "text": "private function show_header() {\r\n //\r\n //Get the fields in this sql \r\n $cols = $this->fields->get_array();\r\n //\r\n //Loop through the fields and display the <tds>\r\n foreach ($cols as $col) {\r\n //\r\n $name = is_null($col->alias) ? $col->to_str() : $col->alias;\r\n echo \"<th>$name</th>\";\r\n }\r\n }", "title": "" }, { "docid": "c41409cc26e710d374fbac7aebcfb053", "score": "0.70749474", "text": "function table_column_headers($headers) {\n\t\techo \"\\t<thead><tr>\\n\";\n\t\t$mk = $this->get_module_key();\n\t\tforeach ($headers as $class => $header) {\n\t\t\t$class = is_numeric($class) ? '' : \" class='su-$mk-$class su-$class'\";\n\t\t\techo \"\\t\\t<th scope='col'$class>$header</th>\\n\";\n\t\t}\n\t\techo \"\\t</tr></thead>\\n\";\n\t}", "title": "" }, { "docid": "d2c79edbd94e31bc6bd4f57ec279fdc6", "score": "0.68540084", "text": "private function render_column_captions()\n {\t// Render Headers\n\t\t$tr = tag('tr class=\"ui-headers\"');\n\t\tforeach($this->columns as $col_id => $c)\n\t\t{\t$tr->append($th = tag('th', $c['caption']));\n\t\t\n\t\t\tif ($c['headerclickable'])\n\t\t\t{\t$th->add_class('ui-clickable');\n\t\t\t\t$th->attr('onclick',\n\t\t\t\t\t'$(\\'form#' . $this->grid_id . \t' input[name=libgrid_backend_action]\\').val(\\'headerclick\\'); ' .\n\t\t\t\t\t'$(\\'form#' . $this->grid_id . ' input[name=libgrid_backend_colid]\\').val(\\'' . $col_id . '\\');' .\n\t\t\t\t\t' $(\\'form#' . $this->grid_id . '\\').submit();'\n\t\t\t\t);\n\t\t\t}\n\t\t\tforeach($c['htmlattribs'] as $n => $v)\n\t\t\t\t$th->attr($n, $v);\n\t\t}\n\t\treturn $tr;\n }", "title": "" }, { "docid": "e82bd56ee63931d044d7f2f9c812a5bd", "score": "0.6708837", "text": "function get_column_info() {\r\n\r\n if (isset($this->_column_headers)) {\r\n return $this->_column_headers;\r\n }\r\n\r\n $screen = convert_to_screen($this->_args['current_screen']);\r\n\r\n $columns = get_column_headers($screen);\r\n\r\n $hidden = get_hidden_columns($screen);\r\n\r\n $_sortable = apply_filters(\"manage_{$screen->id}_sortable_columns\", $this->get_sortable_columns());\r\n\r\n $sortable = array();\r\n foreach ($_sortable as $id => $data) {\r\n if ( empty( $data ) ) {\r\n continue;\r\n }\r\n\r\n $data = (array) $data;\r\n if ( !isset( $data[1] ) ) {\r\n $data[1] = false;\r\n }\r\n\r\n $sortable[$id] = $data;\r\n }\r\n\r\n $this->_column_headers = array($columns, $hidden, $sortable);\r\n\r\n return $this->_column_headers;\r\n }", "title": "" }, { "docid": "b79927cf4904cfa1eb6c93501dd4d1cf", "score": "0.66417384", "text": "private static function table_head() {\n\t\t?>\n\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<td scope=\"col\" id=\"cb\" class=\"manage-column column-cb check-column\">&nbsp;</td>\n\t\t\t\t<th scope=\"col\" id=\"name\" class=\"manage-column column-name\" style=\"width: 190px;\"><?php _e( 'Name', 'next-template-packs' ); ?></th>\n\t\t\t\t<th scope=\"col\" id=\"description\" class=\"manage-column column-description\"><?php _e( 'Description', 'next-template-packs' ); ?></th>\n\t\t\t\t<th scope=\"col\" id=\"supports\" class=\"manage-column column-supports\" style=\"width: 190px;\"><?php _e( 'Supports', 'next-template-packs' ); ?></th>\n\t\t\t</tr>\n\t\t</thead>\n\n\t\t<tfoot>\n\t\t\t<tr>\n\t\t\t\t<td scope=\"col\" class=\"manage-column column-cb check-column\">&nbsp;</td>\n\t\t\t\t<th scope=\"col\" class=\"manage-column column-name\" style=\"width: 190px;\"><?php _e( 'Name', 'next-template-packs' ); ?></th>\n\t\t\t\t<th scope=\"col\" class=\"manage-column column-description\"><?php _e( 'Description', 'next-template-packs' ); ?></th>\n\t\t\t\t<th scope=\"col\" class=\"manage-column column-supports\" style=\"width: 190px;\"><?php _e( 'Supports', 'next-template-packs' ); ?></th>\n\t\t\t</tr>\n\t\t</tfoot>\n\n\t\t<?php\n\t}", "title": "" }, { "docid": "7f3344cdf58f2eaa8dbe30adaa700c8d", "score": "0.66395146", "text": "protected function getTableHeaderHtml() {\n\n //Placeholder for output\n $out = array();\n\n if ($this->has_table_header) {\n $out[] = '<thead>';\n $out[] = '<tr>';\n foreach ($this->actions as $action) {\n $out[] = ($action['placement'] == 'left') ? '<th>&nbsp;</th>' : '';\n }\n\n //Process data cols\n $searchReq = $this->itemList->getSearchRequest(); \n foreach ($this->columns as $field => $col) {\n\n //Can we order by this?\n if ($col['orderable']) {\n\n //Work out the correct params used to build the URL\n //And some neat css classes whilst we're at it\n if ($col['orderby']) {\n\n $orderField = $col['orderby'];\n } else {\n $orderField = $field;\n }\n\n $classes = 'orderable';\n if ($searchReq[$this->itemList->getQueryStringSortVariable()]) {\n\n $classes .= \" active\";\n\n if ($searchReq[$this->itemList->getQueryStringSortDirectionVariable()] == \"desc\") {\n\n $classes .= \" desc\";\n } else {\n $classes .= \" asc\";\n }\n } else {\n\n $classes .= \" asc\";\n }\n\n //build the URL\n $orderUrl = $this->itemList->generateSortByURL($orderField);\n\n //And mash it all together\n $out[] = \"<th><a class=\\\"{$classes}\\\" href=\\\"{$orderUrl}\\\">{$col['label']}</a></th>\";\n } else {\n\n $out[] = \"<th>{$col['label']}</th>\";\n }\n }\n\n foreach ($this->actions as $action) {\n $out[] = ($action['placement'] == 'right') ? '<th>&nbsp;</th>' : '';\n }\n\n $out[] = '</tr>';\n $out[] = '</thead>';\n }\n\n\n return $out;\n }", "title": "" }, { "docid": "2c4d5644fcb01c5ee2b6b060e6059b59", "score": "0.662691", "text": "public function standardOutputHeaders()\n\t\t{\n\t\t\t$res = PHP_EOL . \"<table>\" . PHP_EOL . \"<thead>\" . PHP_EOL;\n\t\t\tforeach ($this->_displayedFields as $curField)\n\t\t\t\t$res .= \"<th>{$curField['label']}</th>\" . PHP_EOL;\n\t\t\t$res .= \"</thead>\" . PHP_EOL . \"<tbody>\" . PHP_EOL;\n\t\t\treturn $res;\n\t\t}", "title": "" }, { "docid": "5579f3726efa36df1f20303e6a062439", "score": "0.661098", "text": "function my_pmpro_memberslist_extra_cols_header($theusers)\r\n{\r\n\t?>\r\n <th><?php _e('Member #', 'pmpro');?></th>\r\n <th><?php _e('Gender', 'pmpro');?></th>\r\n\t<th><?php _e('Birthdate', 'pmpro');?></th>\r\n\t<th><?php _e('Cell', 'pmpro');?></th>\r\n <th><?php _e('Add. Household Member', 'pmpro');?></th>\r\n <th><?php _e('Precinct Area', 'pmpro');?></th>\r\n\t<th><?php _e('Community', 'pmpro');?></th>\r\n <th><?php _e('Income', 'pmpro');?></th>\r\n <th><?php _e('Referral Source', 'pmpro');?></th>\r\n\t<?php\r\n}", "title": "" }, { "docid": "b39d8f8fe1b33e34b534cdd71b1d5dc3", "score": "0.6599551", "text": "public function print_column_headers($with_id = \\true)\n {\n }", "title": "" }, { "docid": "b4a70f2b21d35e5e2db30084cfe9d9d8", "score": "0.65981126", "text": "function output_header($type, $cols, $sort=array(), $text=\"\", $units){\n if ($type==OF_TBL){\n print \"<table class=\\\"datatable\\\">\\n\";\n \n if (sizeof($cols)>0){\n $link = $_SERVER[\"REQUEST_URI\"];\n $link = preg_replace(\"/&sortkey=.*&/\", \"&\", $link);\n $link = preg_replace(\"/&sortdir=.*&/\", \"&\", $link);\n $link = preg_replace(\"/&sortdir=.*/\", \"\", $link);\n \n // Start by printing the two first columns - site id and date, then loop beginning at 2.\n print \"<TR>\";\n print \"<TH>$cols[0]<a href=\\\"$link&sortkey=$sort[0]&sortdir=DESC\\\"><img src=\\\"images/sort_arrow.png\\\"></a><a href=\\\"$link&sortkey=$sort[0]&sortdir=ASC\\\"><img src=\\\"images/sort_arrowup.png\\\"></a></TH>\";\n print \"<TH>$cols[1]<a href=\\\"$link&sortkey=$sort[1]&sortdir=DESC\\\"><img src=\\\"images/sort_arrow.png\\\"></a><a href=\\\"$link&sortkey=$sort[1]&sortdir=ASC\\\"><img src=\\\"images/sort_arrowup.png\\\"></a></TH>\";\n \n for ($i=2;$i<sizeof($cols);$i++)\n {\n if ($sort[$i]) {\n print \"<TH>$cols[$i] ($units[$i]) <a href=\\\"$link&sortkey=$sort[$i]&sortdir=DESC\\\"><img src=\\\"images/sort_arrow.png\\\"></a><a href=\\\"$link&sortkey=$sort[$i]&sortdir=ASC\\\"><img src=\\\"images/sort_arrowup.png\\\"></a></TH>\";\n }\n else print \"<TH>$cols[$i] ($units[$i])</TH>\";\n }\n print \"</TR>\\n\";\n }\n }\n elseif ($type==OF_CSV){\n if ($text) {\n print \"\\\"$text\\\"\\n\";\n }\n if (sizeof($cols)>0){\n \n // Start by printing the two first columns - site id and date, then loop beginning at 2.\n print \"\\\"$cols[0]\\\",\";\n print \"\\\"$cols[1]\\\",\";\n \n for ($i=2;$i<(sizeof($cols)-1);$i++)\n {\n print \"\\\"$cols[$i] ($units[$i])\\\",\\\"$cols[$i] Notes\\\",\";\n }\n print \"\\\"$cols[$i] ($units[$i])\\\",\\\"$cols[$i] Notes\\\"\\n\";\n }\n } \n}", "title": "" }, { "docid": "a4cf2e4c6e15000b2960f35c47264afd", "score": "0.6579145", "text": "public function getColumnHeadings() {\n\t\treturn array_map(array($this, 'renderColumnHeading'), $this->fields);\n\t}", "title": "" }, { "docid": "45d87a6fb81c00376784e62e20e5acea", "score": "0.6514184", "text": "function pageHeader()\n {\n if($this->ProcessingTable)\n $this->TableHeader();\n }", "title": "" }, { "docid": "15872aca689f5c5daf8dd8b5b1fcca8b", "score": "0.65084153", "text": "function contact_columns_headers($columns){\n\t$columns['telephone'] = 'Phone';\n\t$columns['email'] = 'Email';\n\treturn $columns;\n}", "title": "" }, { "docid": "0e9c2e480eca6cc55bd9d1696d55d336", "score": "0.64932716", "text": "protected function rowHeader(){\n\n $row = \"\";\n\n if($this->hasNumbering == true){\n $row .= \"<th style ='width:10px;text-align:center;background-color: #F5F5F5;' ><strong>#</strong></th>\";\n }\n\n foreach ($this->rowsDesc as $value) {\n $row .= \"<th \".$this->rowsAttributes.\">\";\n $row .= $value;\n $row .= \"</th>\";\n }\n\n if($this->hasAction && !empty($this->queryData)){\n $row .= \"<th style ='width:100px;text-align:center' \".$this->rowsAttributes.\">Actions</th>\";\n }\n\n return $row;\n }", "title": "" }, { "docid": "ead6334b63a3d85d6113bff11b219993", "score": "0.6470554", "text": "function product_columns_headers($columns){\n\t$columns['product_diameter'] = 'Diameter';\n\t$columns['product_height'] = 'Height';\n\t$columns['product_width'] = 'Width';\n\t$columns['product_materials'] = 'Materials';\n\t$columns['product_neckfinish'] = \"Neck Finish\";\n\t$columns['product_capacity'] = \"Capacity\";\n\t$columns['product_featured'] = \"Featured\";\n\treturn $columns;\n}", "title": "" }, { "docid": "fa8b80f1c5dbe6bc96973829ffc961e6", "score": "0.64403486", "text": "public function get_column_headers() : array {\n\t\treturn ['id', 'Card Type ID', 'Card Type', 'User ID', 'User', 'Equipment Type ID', 'Equipment Type'];\n\t}", "title": "" }, { "docid": "15347edf078dd3428cd6ec9ef824dd5b", "score": "0.6354517", "text": "function exportHeader() {\n\tglobal $exportData, $exportFields, $settings, $wpdb;\n\t$header = '';\n\t// Now write the header...\n\t$exportData .= $settings['outputOpenHeader'] . $header . $settings['outputCloseHeader'];\n}", "title": "" }, { "docid": "3dcc48f19ed5267ec3a015f87b32c8c9", "score": "0.6319097", "text": "function ShowTableHeader() {\n?>\n<thead>\n<tr>\n<th class=\"logHeader\">Action</th>\n<th class=\"logHeader\">Date</th>\n<th class=\"logHeader\" colspan=\"2\">Departure</th>\n<th class=\"logHeader\" colspan=\"2\">Arrival</th>\n<th class=\"logHeader\" colspan=\"2\">Aircraft</th>\n<th class=\"logHeader\" colspan=\"2\">Total time</th>\n<th class=\"logHeader\">Name</th>\n<th class=\"logHeader\" colspan=\"2\">Landings</th>\n<th class=\"logHeader\" colspan=\"6\">Pilot function time</th>\n</tr>\n<tr>\n<th class=\"logLastHeader\"></th>\n<th class=\"logLastHeader\">(dd/mm/yy)</th>\n<th class=\"logLastHeader\">Place</th>\n<th class=\"logLastHeader\">Time UTC</th>\n<th class=\"logLastHeader\">Place</th>\n<th class=\"logLastHeader\">Time UTC</th>\n<th class=\"logLastHeader\">Model</th>\n<th class=\"logLastHeader\">Registration</th>\n<th class=\"logLastHeader\" colspan=\"2\">of flight</th>\n<th class=\"logLastHeader\">PIC</th>\n<th class=\"logLastHeader\">Day</th>\n<th class=\"logLastHeader\">Night</th>\n<th class=\"logLastHeader\" colspan=\"2\">PIC</th>\n<th class=\"logLastHeader\" colspan=\"2\">Dual</th>\n<th class=\"logLastHeader\" colspan=\"2\">Instructor</th>\n</thead>\n<?php\n}", "title": "" }, { "docid": "6d727ace5487b044c6ad542b2f91915f", "score": "0.6313238", "text": "function headerTable () {\n\t}", "title": "" }, { "docid": "64fef18465babb658d9fd019dc35d1a7", "score": "0.63105994", "text": "public function renderHeader() {\n $cells = [];\n foreach ($this->columns as $column) {\n /* @var $column Column */\n $cells[] = $column->renderHeaderCell();\n }\n $content = Html::tag('tr', implode('', $cells), $this->headerRowOptions);\n if ($this->filterPosition == self::FILTER_POS_HEADER) {\n $content = $this->renderFilters() . $content;\n } elseif ($this->filterPosition == self::FILTER_POS_BODY) {\n $content .= $this->renderFilters();\n }\n $styleExcel95 = [\n 'font' => [\n 'bold' => TRUE,\n 'color' => [\n 'argb' => 'FFFFFFFF',\n ],\n ],\n 'fill' => [\n 'type' => \\PHPExcel_Style_Fill::FILL_SOLID,\n 'color' => [\n 'argb' => '00000000',\n ],\n ],\n ];\n $styleExcel2007 = [\n 'font' => [\n 'bold' => TRUE,\n ],\n 'fill' => [\n 'type' => \\PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR,\n 'startcolor' => [\n 'argb' => 'FFA0A0A0',\n ],\n 'endcolor' => [\n 'argb' => 'FFFFFFFF',\n ],\n ],\n ];\n if ($this->fullExportConfig[$this->fullExportType]['header']) {\n $cell = $this->objPHPExcel->getActiveSheet()->setCellValue($this->columnName(1) . $this->tableStartRow, Yii::$app->name, true);\n $this->tableStartRow++;\n $cell = $this->objPHPExcel->getActiveSheet()->setCellValue($this->columnName(1) . $this->tableStartRow, Yii::t('excelview', 'Data exported on: {timestamp}', ['timestamp' => Yii::$app->formatter->asDate(time(), 'yyyy-MM-dd HH:mm:ss')]), true);\n $this->tableStartRow++;\n $this->tableStartRow++;\n }\n $this->tableEndColumn = 0;\n foreach ($this->columns as $column) {\n $this->tableEndColumn = $this->tableEndColumn + 1;\n $provider = $column->grid->dataProvider;\n\n if ($column->header === null) {\n if ($provider instanceof ActiveDataProvider && $provider->query instanceof ActiveQueryInterface) {\n /* @var $model Model */\n $model = new $provider->query->modelClass;\n $head = $model->getAttributeLabel($column->attribute);\n } else {\n $models = $provider->getModels();\n if (($model = reset($models)) instanceof Model) {\n /* @var $model Model */\n $head = $model->getAttributeLabel($column->attribute);\n } else {\n $head = Inflector::camel2words($column->attribute);\n }\n }\n } else {\n $head = $column->header;\n }\n\n $cell = $this->objPHPExcel->getActiveSheet()->setCellValue($this->columnName($this->tableEndColumn) . $this->tableStartRow, $head, true);\n // Apply formatting to header cell\n if ($this->fullExportType == self::FULL_EXCELX)\n $cell = $this->objPHPExcel->getActiveSheet()->getStyle($this->columnName($this->tableEndColumn) . $this->tableStartRow)->applyFromArray($styleExcel2007);\n else\n $cell = $this->objPHPExcel->getActiveSheet()->getStyle($this->columnName($this->tableEndColumn) . $this->tableStartRow)->applyFromArray($styleExcel95);\n }\n for ($i = $this->headerStartRow; $i < ($this->tableStartRow-1); $i++) {\n $this->objPHPExcel->getActiveSheet()->mergeCells($this->columnName(1) . $i . \":\" . $this->columnName($this->tableEndColumn) . $i);\n if ($this->fullExportType == self::FULL_EXCELX)\n $cell = $this->objPHPExcel->getActiveSheet()->getStyle($this->columnName(1) . $i)->applyFromArray($styleExcel2007);\n else\n $cell = $this->objPHPExcel->getActiveSheet()->getStyle($this->columnName(1) . $i)->applyFromArray($styleExcel95);\n }\n // Freeze the top row\n $this->objPHPExcel->getActiveSheet()->freezePane($this->columnName(1) . ($this->tableStartRow+1));\n }", "title": "" }, { "docid": "9463e6af0ad7a9216b543534a013dabc", "score": "0.6240392", "text": "function xsm_sorted_column_header($id, $inner_html, $sorted_columns)\n{\n $sort_icon = \"&#x21e3;\"; // default sorting is ASC\n $column_class = \"\";\n\n $my_column = array();\n foreach ($sorted_columns as $sort_column)\n {\n if ($id == $sort_column[\"name\"])\n {\n $my_column = $sort_column;\n break;\n }\n }\n if (count($my_column))\n {\n $column_class = \"sort_active\";\n if ($my_column[\"direction\"] == XSM_SORT_DIRECTION_ASC)\n {\n $sort_icon = \"&#x21a1;\";\n }\n elseif ($my_column[\"direction\"] == XSM_SORT_DIRECTION_DESC)\n {\n $sort_icon = \"&#x219f;\";\n }\n }\n\n $inner_html = \"$sort_icon&nbsp;$inner_html\";\n return \"<span id=\\\"sort_by_$id\\\" class=\\\"sort_by_inner $column_class\\\">$inner_html</span>\";\n}", "title": "" }, { "docid": "c4c1915f8b37a04f707b08a23a093b88", "score": "0.6235282", "text": "function renderHeaders();", "title": "" }, { "docid": "3dbf817542eeb35588e3dc7479a3cc50", "score": "0.62317497", "text": "function ntl_columns_head( $columns ) {\n\t$columns['url'] = 'URL';\n\n\tunset( $columns['date'] );\n\n\treturn $columns;\n}", "title": "" }, { "docid": "ebf7d7461582d09020e4def3427ad722", "score": "0.62285197", "text": "function Event_Categories_List_Column_Headers ($columns) {\n\t\t$new_columns['cb'] = '<input type=\"checkbox\" />';\n\t\t$new_columns['name'] = 'Name';\n\t\t$new_columns['description'] = 'Description';\n\t\t$new_columns['posts'] = 'Events';\n\t\t$new_columns['hc_event_category_color'] = \"Color\";\n\t\treturn $new_columns;\n\t}", "title": "" }, { "docid": "96d09b206e8b79f3b9b673833a20f020", "score": "0.6221068", "text": "private function buildHeaders()\n {\n $html = '<tr>';\n foreach ($this->columns as $column) {\n $html .= '<th>' . $column . '</th>';\n }\n $html .= '</tr>';\n\n return $html;\n }", "title": "" }, { "docid": "d49c36d8db45dd3243fc1f2b00e62a99", "score": "0.62115616", "text": "function admin_wftable_start($headers = false) {\n\t\techo \"\\n<table class='table table-bordered'>\\n\";\n\t\tif ($headers)\n\t\t\t$this->table_column_headers($headers);\n\t\telse {\n\t\t\techo \"\\t<thead><tr>\\n\";\n\t\t\tprint_column_headers($this->plugin_page_hook);\n\t\t\techo \"\\t</tr></thead>\\n\";\n\t\t\techo \"\\t<tfoot><tr>\\n\";\n\t\t\tprint_column_headers($this->plugin_page_hook);\n\t\t\techo \"\\t</tr></tfoot>\\n\";\n\t\t}\n\t\techo \"\\t<tbody>\\n\";\n\t}", "title": "" }, { "docid": "c410bfaf4336e9b5efbc8eb7d2dae13d", "score": "0.6211139", "text": "function create_table_header(){\n return $header = array(\n\t\t\t\t\tarray('data' => 'Name', 'field' => 'name', 'sort' => 'asc'),\n\t\t\t\t\tarray('data' => 'Address', 'field' => 'address'),\n\t\t\t\t\tarray('data' => 'Type', 'field' => 'type', 'sort' => 'asc'),\n\t\t\t\t\tarray('data' => 'Actions', 'colspan' => 2)\n\t\t//\t\t\tarray('data' => 'Edit'),\t\t\t\t\n\t\t\t\t);\n}", "title": "" }, { "docid": "1c943e4ec7eb0a566e8ea9479a74a598", "score": "0.6183111", "text": "abstract public function printHeader();", "title": "" }, { "docid": "9ad1e2d6854912805fa3529f4a18e11d", "score": "0.61743855", "text": "function print_table_headers($headers) {\n\t$table_header = \"<table border='1'><tr>\";\n\tfor ($i=0;$i<count($headers);$i++) {\n\t\t$table_header .= \"<th>\" . strtoupper($headers[$i]) . \"</th>\";\n\t}\n\t$table_header .= \"</tr>\";\n\t\n\treturn $table_header;\n}", "title": "" }, { "docid": "e7b00a94bd7140f3f45401cbf4551ad9", "score": "0.6165852", "text": "function get_table_header_params($ths, $controller, $table_options){\n\t\t\textract($table_options);\n\t\t\t\t\n\t\t\t$thead= array();\n $filters= array();\n $show_filters= false;\n \n\t\t\tforeach($ths as $j=>$th){\n\t\t\t\t$th= array_merge($this->header_defaults(), $th);\n\t\t\t\textract($th);\n\t\t\t\t\n\t\t\t\tif($sortable){\n\t\t\t\t\t$url_paginator_tmp= array();\n\t\t\t\t\tif(isset($this->Paginator->options[\"url\"])){\n\t\t\t\t\t\t$url_paginator_tmp= $this->Paginator->options[\"url\"];\n\t\t\t\t\t\t$url_aux= $url_paginator_tmp;\n\t\t\t\t\t\t$url_aux[\"page\"]= 1;\n\t\t\t\t\t\t$this->Paginator->options(array(\"url\"=>$url_aux));\t\n\t\t\t\t\t}\n\t\t\t\t\t$sort= $this->Paginator->sort($field, $label, array(\"url\"=>$url_base, \"page\"=>1));\n\t\t\t\t\t$thead[]= $sort;\n\t\t\t\t\t\n\t\t\t\t\tif(isset($this->Paginator->options[\"url\"])){\n\t\t\t\t\t\t$this->Paginator->options(array(\"url\"=>$url_paginator_tmp));\t\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$thead[]= $label;\n }\n\t\t\t\t\n if($filterable){\n $filter_options= array();\n \n\t\t\t\t\tif($date_filter){\n\t\t\t\t\t\t$initial_id = 'DateFilter'.$controller.str_replace('.', '', $field).\"CustomTableInitialDate\";\n\t\t\t\t\t\t$final_id = 'DateFilter'.$controller.str_replace('.', '', $field).\"CustomTableFinalDate\";\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$initial_default = false;\n\t\t\t\t\t\tif($this->Session->check('DateFilters.'.$controller.'.'.$field.'.custom_table_datefilter.initial.value')) {\n\t\t\t\t\t\t\t$initial_default = $this->Session->read('DateFilters.'.$controller.'.'.$field.'.custom_table_datefilter.initial.value');\n\t\t\t\t\t\t\t$this->Js->buffer('add_date_filtered_class_to_column(\"'.$controller.'\", '.$j.')');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$final_default = false;\n\t\t\t\t\t\tif($this->Session->check('DateFilters.'.$controller.'.'.$field.'.custom_table_datefilter.final.value')) {\n\t\t\t\t\t\t\t$final_default = $this->Session->read('DateFilters.'.$controller.'.'.$field.'.custom_table_datefilter.final.value');\n\t\t\t\t\t\t\t$this->Js->buffer('add_date_filtered_class_to_column(\"'.$controller.'\", '.$j.')');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->Js->buffer('highlight_date_filtered_column(\"'.$controller.'\")');\n\t\t\t\t\t\t\n\t\t\t\t\t\t$initial_date = $this->Form->input('DateFilter.'.$controller.'.'.$field.'.CustomTableInitialDate', array('type'=>'hidden', 'class'=>'filter daterange initial', 'id'=>$initial_id, 'default'=>$initial_default));\n\t\t\t\t\t\t$final_date = $this->Form->input('DateFilter.'.$controller.'.'.$field.'.CustomTableFinalDate', array('type'=>'hidden', 'class'=>'filter daterange final', 'id'=>$final_id, 'default'=>$final_default));\n\t\t\t\t\t\t\n\t\t\t\t\t\t$new_filter= $initial_date.$final_date;\n\t\t\t\t\t\t$this->Js->buffer('initialize_date_filter(\"'.$initial_id.'\", \"'.$final_id.'\", \"initial\", \"'.$parent_div.'\",\"'.$this->Html->url($url_base, true).'\", \"'.$this->Html->url('/', true).'\", \"'.$initial_default.'\" , \"'.$final_default.'\", '.json_encode($this->date_labels()).')');\n\t\t\t\t\t\t$this->Js->buffer('initialize_date_filter(\"'.$initial_id.'\", \"'.$final_id.'\", \"final\", \"'.$parent_div.'\", \"'.$this->Html->url($url_base, true).'\", \"'.$this->Html->url('/', true).'\", \"'.$initial_default.'\" , \"'.$final_default.'\", '.json_encode($this->date_labels()).')');\n\t\t\t\t\t\t$this->Js->buffer('$(\"#'.$initial_id.'\").next().css(\"float\", \"left\")');\n\t\t\t\t\t\t$this->Js->buffer('$(\"#'.$final_id.'\").next().css(\"float\", \"right\")');\n\t\t\t\t\t\t\n\t\t\t\t\t\t$initial_date_value = '';\n\t\t\t\t\t\tif($this->Session->check('DateFilters.'.$controller.'.'.$field.'.custom_table_datefilter.initial.value')) {\n\t\t\t\t\t\t\t$initial_date_value = $this->Session->read('DateFilters.'.$controller.'.'.$field.'.custom_table_datefilter.initial.value');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$final_date_value = '';\n\t\t\t\t\t\tif($this->Session->check('DateFilters.'.$controller.'.'.$field.'.custom_table_datefilter.final.value')) {\n\t\t\t\t\t\t\t$final_date_value = $this->Session->read('DateFilters.'.$controller.'.'.$field.'.custom_table_datefilter.final.value');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$qtip_options= array();\n\t\t\t\t\t\t$qtip_options['content']['title']= __('Initial Date');\n\t\t\t\t\t\t$qtip_options['content']['text']= $initial_date_value;\n\t\t\t\t\t\t$qtip_options['position']= array('my'=>'bottom center', 'at'=>'top center');\n\t\t\t\t\t\t$this->Js->buffer('$(\"#'.$parent_div.' #'.$initial_id.'\").next().qtip('.json_encode($qtip_options).');');\n\t\t\t\t\t\t\n\t\t\t\t\t\t$qtip_options= array();\n\t\t\t\t\t\t$qtip_options['content']['title']= __('Final Date');\n\t\t\t\t\t\t$qtip_options['content']['text']= $final_date_value;\n\t\t\t\t\t\t$qtip_options['position']= array('my'=>'bottom center', 'at'=>'top center');\n\t\t\t\t\t\t$this->Js->buffer('$(\"#'.$parent_div.' #'.$final_id.'\").next().qtip('.json_encode($qtip_options).');');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($use_ajax){\n\t $filter_options[\"div\"]= false;\n\t $filter_options[\"style\"]= \"padding: 0; margin: auto; width: 99%;\";\n\t $filter_options[\"label\"]= false;\n\t\t\t\t\t\t\t$filter_options[\"autocomplete\"]= \"off\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($select_options){\n\t\t\t\t\t\t\t\t$filter_options[\"onchange\"]= \"filtrar('\".$parent_div.\"', '\".$this->Html->url($url_base).\"')\";\n\t\t\t\t\t\t\t}else{\n\t \t$filter_options[\"onkeyup\"]= \"filtrar('\".$parent_div.\"', '\".$this->Html->url($url_base).\"')\";\n\t\t\t\t\t\t\t}\n\t }else{\n\t\t\t\t\t\t\t$filter_options[\"label\"]= $label;\t\n\t\t\t\t\t\t}\n\t $filter_options[\"class\"]= $input_filter_class;\n\t \n\t //Intento leer de la session un valor para este campo\n\t if($this->Session->check(\"Filters.\".$controller.\".\".$field)){\n\t \t$session_value= $this->Session->read(\"Filters.\".$controller.\".\".$field);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(is_array($session_value)){\n\t\t\t\t\t\t\t\t$session_value_string=\"\";\n\t\t\t\t\t\t\t\tforeach($session_value as $vs)\n\t\t\t\t\t\t\t\t$session_value_string.= $vs.VALUES_SEPARATOR;\n\t\t\t\t\t\t\t\t$session_value= substr($session_value_string, 0, -2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t \tif($this->Session->check(\"Comparators.\".$controller.\".\".$field)){\n\t\t\t\t\t\t\t\t$filter_options[\"default\"]= $session_value.VALUE_COMPARATOR_SEPARATOR.$this->Session->read(\"Comparators.\".$controller.\".\".$field);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$filter_options[\"default\"]= $session_value;\n\t\t\t\t\t\t\t}\n\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t$filter_options[\"hl_index\"]= $j;\n\t if($select_options){\n\t \t$aux_select_options= array(); \n\t\t\t\t\t\t\t$aux_select_options[\"\"]= EMPTY_OPTION;\n\t \tforeach($select_options as $option){\n\t\t\t\t\t\t\t\textract($option);\n\t\t\t\t\t\t\t\tif(!isset($comparator)){\n\t\t\t\t\t\t\t\t\t$comparator= \"equal\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$option_value= $value.VALUE_COMPARATOR_SEPARATOR.$comparator;\n\t\t\t\t\t\t\t\t$aux_select_options[$option_value]= $display;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tunset($comparator);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} \n\t $filter_options[\"options\"]= $aux_select_options;\n\t }else{\n\t $filter_options[\"type\"]= \"text\";\n\t }\n\t $new_filter= $this->Form->input(\"Filters.\".$controller.\".\".$field, $filter_options);\n\t \n\t if(isset($extra_fields) && is_array($extra_fields) && $extra_fields){\n\t\t\t\t\t\t\tforeach($extra_fields as $i=>$ef){\n\t\t\t\t\t\t\t\t$new_filter.= $this->Form->input(\"ExtraFilters.\".$controller.\".\".$field.\".ExtraFiltersValues.\".$i, array(\"type\"=>\"hidden\", \"class\"=>\"filter extra\", \"default\"=>$ef));\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\t$filters[]= $new_filter;\n \n $show_filters= true;\n }else{\n if($use_ajax)\n $filters[]= \"\";\n }\n\t\t\t\t\n\t\t\t\tunset($sortable, $filterable, $field, $label, $select_options, $extra_fields);\n\t\t\t}\n\t\t\treturn compact(\"thead\", \"filters\", \"show_filters\");\n\t\t}", "title": "" }, { "docid": "bf0e3eea618ce59056c3e2370cbd0f7f", "score": "0.615955", "text": "function displayTableHeaders(){\n\n $columns = $this->tableColumns;\n\n $this->Ln(20);\n $this->setFillColor(205, 205, 205);\n $this->SetTextColor(70, 70, 70);\n $this->SetFont('Arial', 'B', 9);\n\n\n $cWidth = array(40, 100, 60, 60, 60, 130, 80);\n $cIndex = 0;\n\n $this->setX(32.5);\n\n $currentY = $this->getY();\n $currentX = $this->getX();\n\n foreach($columns as $column => $value){\n $cellAlign = 'C';\n $cellWidth = $cWidth[$cIndex];\n $cellText = $value;\n $textWidth = $this->GetStringWidth($cellText);\n $cellLineHeight = 11;\n if($textWidth < $cellWidth){\n $cellLineHeight = $cellLineHeight * 2;\n }\n $this->MultiCell($cellWidth, $cellLineHeight, $cellText, 1, $cellAlign, 1);\n // Set up for next cell\n $currentX += $cWidth[$cIndex];\n $this->setXY($currentX, $currentY);\n $cIndex++;\n }\n $this->Ln();\n\n return $cWidth;\n }", "title": "" }, { "docid": "4ab59504a5e33b2f5812296d01247899", "score": "0.6156465", "text": "function table_header($header) {\r\n\t\t\techo \"<tr>\";\r\n\t\t\techo \"<th colspan='5' style='text-align: left'>$header</th>\";\r\n\t\t\techo \"</tr>\";\r\n\t\t\techo \"<tr class = 'tr'>\";\r\n\t\t\techo \"<th class='th'>Sub Content</th>\";\r\n\t\t\techo \"<th class='th'>Language</th>\";\r\n\t\t\techo \"<th class='th'>Syntax</th>\";\r\n\t\t\techo \"<th class='th'>Example</th>\";\r\n\t\t\techo \"<th class='th'>Edit</th>\";\r\n\t\t\techo \"</tr>\";\r\n\t\t}", "title": "" }, { "docid": "9d8bfea487a29bd3c531ae3203369a22", "score": "0.61502767", "text": "function drawHeaders($headers, $cols, $useBoxes=null, $useLinks=null, $numberOfButtons, $lockedColumns=array()) { //, $lockcontrols) {\n\n\tstatic $checkedHelpLink = false;\n\tstatic $headingHelpLink;\n\tif(!$checkedHelpLink) {\n\t\t$module_handler =& xoops_gethandler('module');\n\t\t$config_handler =& xoops_gethandler('config');\n\t\t$formulizeModule =& $module_handler->getByDirname(\"formulize\");\n\t\t$formulizeConfig =& $config_handler->getConfigsByCat(0, $formulizeModule->getVar('mid'));\n\t\t$headingHelpLink = $formulizeConfig['heading_help_link'];\n\t\t$checkedHelpLink = true;\n\t}\n\n\tprint \"<tr>\";\n\tif($useBoxes != 2 OR $useLinks) {\n\t\tprint \"<td class=head>&nbsp;</td>\\n\";\n\t}\n\tfor($i=0;$i<count($headers);$i++) {\n\t\n\t\t$classToUse = \"head column column\".$i;\n\t\tif($i==0) {\n\t\t\tprint \"<td class='head floating-column' id='floatingcelladdress_0'>\\n\";\n\t\t}\n\t\tprint \"<td class='$classToUse' id='celladdress_0_$i'><div class='main-cell-div' id='cellcontents_0_\".$i.\"'>\\n\";\n\n\t\tif($headingHelpLink) {\n\t\t\t$lockedUI = in_array($i, $lockedColumns) ? \"[X]\" : \"[ ]\";\n\t\t\tprint \"<div style=\\\"float: right; margin-left: 3px;\\\"><a href=\\\"\\\" id=\\\"lockcolumn_$i\\\" class=\\\"lockcolumn\\\" title=\\\"\"._formulize_DE_FREEZECOLUMN.\"\\\">$lockedUI</a></div>\\n\";\n\t\t\tprint \"<div style=\\\"float: right;\\\"><a href=\\\"\\\" onclick=\\\"javascript:showPop('\".XOOPS_URL.\"/modules/formulize/include/moreinfo.php?col=\".$cols[$i].\"');return false;\\\" title=\\\"\"._formulize_DE_MOREINFO.\"\\\">[?]</a></div>\\n\";\n\t\t}\n\t\tprint clickableSortLink($cols[$i], printSmart(trans($headers[$i])));\n\t\tprint \"</div></td>\\n\";\n\t}\n\tfor($i=0;$i<$numberOfButtons;$i++) {\n\t\tprint \"<td class=head>&nbsp;</td>\\n\";\n\t}\n\tprint \"</tr>\\n\";\n}", "title": "" }, { "docid": "6d79ad5412a7f3d65546e86eb6eb1444", "score": "0.6146428", "text": "protected function _getExportHeaders()\n {\n $row = array();\n foreach ($this->_columns as $column) {\n if (!$column->getIsSystem()) {\n $row[] = $column->getExportHeader();\n }\n }\n return $row;\n }", "title": "" }, { "docid": "8214308f2726f94729af61c1bbf7ef58", "score": "0.6108098", "text": "function add_term_toxonomy_ColumnHeader($columns){\r\r\n\t\tglobal $typenow,$wp_query,$wpdb,$ecpt_db_tax_name;\r\r\n\t\tif ($typenow==$wp_query->query['post_type']) {\r\r\n\t\t\t$new_columns = array();\r\r\n\t\t\tif(isset($columns['cb']))\t\t\t$new_columns['cb'] = '';\r\r\n\t\t\tif(isset($columns['title']))\t\t$new_columns['title'] = '';\r\r\n\t\t\tif(isset($columns['author']))\t\t$new_columns['author'] = '';\r\r\n\t\t//\tif(isset($columns['categories']))\t$new_columns['categories'] = '';\r\r\n\t\t\tif(isset($columns['tags']))\t\t\t$new_columns['tags'] = '';\r\r\n\t\t\t$get_result_tax = $wpdb->get_results(\"SELECT * FROM `\".$ecpt_db_tax_name.\"` WHERE `page` LIKE '%\".$wp_query->query['post_type'].\"%'\");\r\r\n\t\t\t$taxonomy = '';\r\r\n\t\t\t$taxonomy_label = '';\r\r\n\t\t\tif($get_result_tax){\r\r\n\t\t\t\tforeach ($get_result_tax as $set_tax=> $tax){\r\r\n\t\t\t\t\t$taxonomy = $tax->name.'_col';\r\r\n\t\t\t\t\t$taxonomy_label = $tax->singular_name;\r\r\n\t\t\t\t\tif($taxonomy){\r\r\n\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\tif(!$taxonomy){\r\r\n\t\t\t\t\t$taxonomy = 'set_category_col';\r\r\n\t\t\t\t\t$taxonomy_label = 'Category';\r\r\n\t\t\t\t}\r\r\n\t\t\t\t$new_columns[$taxonomy] = __($taxonomy_label);\r\r\n\t\t\t\treturn array_merge($new_columns, $columns);;\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t}", "title": "" }, { "docid": "33e7b4d909734baafb352fe9b645b7b4", "score": "0.60703856", "text": "function job_items_table_header($table) {\n $table->addColumn(\"mod_date\", __(\"Modified\", \"jobboard\"));\n $table->addColumn(\"applicants\", __(\"# of applicants\", \"jobboard\"));\n $table->addColumn(\"views\", __(\"Views\", \"jobboard\"));\n $table->removeColumn(\"user\");\n $table->removeColumn(\"category\");\n }", "title": "" }, { "docid": "153382edc4e1b339ed7a0617013839d4", "score": "0.60686594", "text": "function getHeaders(){\n\t$data = mysql_query(\"SELECT * FROM questions\") \n\tor die(mysql_error());\n\t\n\t//Print the default headers like the id and title\n\techo '<tr>';\n\techo '<th>Product</th>';\n\t\n\twhile($row = mysql_fetch_array( $data ))\n\t{\n\t\t$qID = $row['id'];\n\t\t$qTitle = $row['title'];\n\t\techo '<th>' . $qTitle . '</th>';\n\t}\n\techo '</tr>';\n}", "title": "" }, { "docid": "d6cff40aa2c49b62bc4a0a8cfe15f147", "score": "0.60612786", "text": "public function renderTableHeader()\n\t{\n\t\t$this->renderChart();\n\t\tparent::renderTableHeader();\n\t}", "title": "" }, { "docid": "1f243510b89a19322f7e98b10b037e1f", "score": "0.6041733", "text": "public function get_datatable_headers ()\n {\n return array (\n 'Id' => '#',\n 'FirstName' => 'First Name',\n 'LastName' => 'Last Name',\n 'PostalCode' => 'Postcode',\n );\n\n }", "title": "" }, { "docid": "844d26db1de54aaa8f96d3b055ab86c8", "score": "0.6035291", "text": "public function printTabbedHeaders() {\n\t\techo \"date\\thead_cook\\tasst1\\tasst2\\tcleaner1\\tcleaner2\\tcleaner3\\ttable_setter\\n\";\n\t}", "title": "" }, { "docid": "2871283c409d879042c6543bd013c10c", "score": "0.60283625", "text": "public function getHeaders() {\n $DB=DBC::get();\n $result=$DB->query($this->sql);\n $nCols=$result->columnCount();\n for ($i=0; $i<$nCols; $i++) {\n $meta[]=$result->getColumnMeta($i);\n $header[]=_($meta[$i]['name']);\n }\n return $header;\n}", "title": "" }, { "docid": "f74dd0c35635e5c3537f1b9ee3ee3a52", "score": "0.6023892", "text": "protected function renderTableHeader(): string\n {\n if (!$this->options['showHeader']) {\n return '';\n }\n\n $colspan = $this->options['lineNumbers'] ? ' colspan=\"2\"' : '';\n\n return\n '<thead>' .\n '<tr>' .\n '<th' . $colspan . '>' . $this->_('old_version') . '</th>' .\n '<th' . $colspan . '>' . $this->_('new_version') . '</th>' .\n '</tr>' .\n '</thead>';\n }", "title": "" }, { "docid": "fa0020e6085367008fa0f9d8210e7065", "score": "0.60119176", "text": "function headers() {\n\n // Sorting\n $dir = isset( $_GET['sort'] ) && $_GET['sort'] == 'ASC' ? 'DESC' : 'ASC';\n $dir_default = 'ASC';\n $sort_field = isset( $_GET['field'] ) ? sanitize_text_field( $_GET['field'] ) : '';\n\n // Set values\n $post = $this->parent;\n $post_type = $this->child_post_type;\n $parent_post_type = $this->parent_post_type;\n $data = $this->data;\n\n $wpcf_fields = wpcf_admin_fields_get_fields( true );\n $headers = array();\n\n foreach ( $this->headers as $k => $header ) {\n if ( $k === '__parents' || $k === '__taxonomies' ) {\n continue;\n }\n\n if ( $header == '_wp_title' ) {\n if ( $this->child_supports['title']) {\n $title_dir = $sort_field == '_wp_title' ? $dir : 'ASC';\n $headers[$header] = '';\n $headers[$header] .= $sort_field == '_wp_title' ? '<div class=\"wpcf-pr-sort-' . $dir . '\"></div>' : '';\n $headers[$header] .= '<a href=\"' . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_sort&amp;field='\n . '_wp_title&amp;sort=' . $title_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='\n . $post_type . '&amp;_wpnonce='\n . wp_create_nonce( 'pr_sort' ) ) . '\">' . __( 'Post Title', 'wpcf' ) . '</a>';\n } else {\n $headers[$header] = 'ID';\n }\n } else if ( $header == '_wp_body' ) {\n $body_dir = $sort_field == '_wp_body' ? $dir : $dir_default;\n $headers[$header] = '';\n $headers[$header] .= $sort_field == '_wp_body' ? '<div class=\"wpcf-pr-sort-' . $dir . '\"></div>' : '';\n $headers[$header] .= '<a href=\"' . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_sort&amp;field='\n . '_wp_body&amp;sort=' . $body_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='\n . $post_type . '&amp;_wpnonce='\n . wp_create_nonce( 'pr_sort' ) ) . '\">' . __( 'Post Body', 'wpcf' ) . '</a>';\n } else if (\n $header == '_wp_excerpt'\n || $header == '_wp_featured_image'\n ) {\n $headers[$header] = $this->get_header($header);\n } else {\n $link_text = $this->get_header($header);\n if (\n strpos( $header, WPCF_META_PREFIX ) === 0\n && isset( $wpcf_fields[str_replace( WPCF_META_PREFIX, '', $header )] )\n ) {\n wpcf_field_enqueue_scripts( $wpcf_fields[str_replace( WPCF_META_PREFIX, '', $header )]['type'] );\n $link_text = stripslashes( $wpcf_fields[str_replace( WPCF_META_PREFIX, '', $header )]['name'] );\n }\n $field_dir = $sort_field == $header ? $dir : $dir_default;\n $headers[$header] = '';\n $headers[$header] .= $sort_field == $header ? '<div class=\"wpcf-pr-sort-' . $dir . '\"></div>' : '';\n $headers[$header] .= '<a href=\"' . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_sort&amp;field=' . $header . '&amp;sort=' . $field_dir . '&amp;post_id=' . $post->ID . '&amp;post_type=' . $post_type . '&amp;_wpnonce=' . wp_create_nonce( 'pr_sort' ) ) . '\">' . $link_text . '</a>';\n }\n }\n if ( !empty( $this->headers['__parents'] ) ) {\n foreach ( $this->headers['__parents'] as $_parent => $data ) {\n if ( $_parent == $parent_post_type ) {\n continue;\n }\n $temp_parent_type = get_post_type_object( $_parent );\n if ( empty( $temp_parent_type ) ) {\n continue;\n }\n $parent_dir = $sort_field == '_wpcf_pr_parent' ? $dir : $dir_default;\n $headers['_wpcf_pr_parent_' . $_parent] = $sort_field == '_wpcf_pr_parent' ? '<div class=\"wpcf-pr-sort-' . $dir . '\"></div>' : '';\n $headers['_wpcf_pr_parent_' . $_parent] .= '<a href=\"' . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_sort&amp;field='\n . '_wpcf_pr_parent&amp;sort='\n . $parent_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='\n . $post_type . '&amp;post_type_sort_parent='\n . $_parent . '&amp;_wpnonce='\n . wp_create_nonce( 'pr_sort' ) ) . '\">' . $temp_parent_type->label . '</a>';\n }\n }\n if ( !empty( $this->headers['__taxonomies'] ) ) {\n foreach ( $this->headers['__taxonomies'] as $tax_id => $taxonomy ) {\n $headers[\"_wpcf_pr_taxonomy_$tax_id\"] = $taxonomy;\n }\n }\n return $headers;\n }", "title": "" }, { "docid": "e2b79c0d93410afc05031145a3bcf114", "score": "0.5985858", "text": "public function get_columns() {\n\t\t\t$columns = array(\n\t\t\t\t'cb' => '<input type=\"checkbox\" />',\n\t\t\t\t'plugin' => __( 'Plugin', 'zues' ),\n\t\t\t\t'source' => __( 'Source', 'zues' ),\n\t\t\t\t'type' => __( 'Type', 'zues' ),\n\t\t\t);\n\n\t\t\tif ( 'all' === $this->view_context || 'update' === $this->view_context ) {\n\t\t\t\t$columns['version'] = __( 'Version', 'zues' );\n\t\t\t\t$columns['status'] = __( 'Status', 'zues' );\n\t\t\t}\n\n\t\t\treturn apply_filters( 'tgmpa_table_columns', $columns );\n\t\t}", "title": "" }, { "docid": "d9c4c7ff07bb9349ec9dae28ba3e32f0", "score": "0.5973718", "text": "function get_member_table_header() {\n\n\t\t$header = array();\n\t\t$header[] = array(\"data\" => \"Id #\", \"field\" => \"id\",\n\t\t\t\"sort\" => \"desc\");\n\t\t$header[] = array(\"data\" => \"Badge #\", \"field\" => \"badge_num\");\n\t\t$header[] = array(\"data\" => \"Badge Name\", \"field\" => \"badge_name\");\n\t\t$header[] = array(\"data\" => \"Real Name\");\n\t\t$header[] = array(\"data\" => \"Member Type\", \"field\" => \"member_type\");\n\t\t$header[] = array(\"data\" => \"Status\", \"field\" => \"status\");\n\n\t\treturn($header);\n\n\t}", "title": "" }, { "docid": "dee23fd349862eb1ee6ed0362c92f12c", "score": "0.59704006", "text": "public static function showHeader($fields) {\n global $lng;\n\techo \"<tr>\\n<th align=\\\"left\\\">\" . $lng->getTrn('table-pos', 'LeagueTables') . \"</th>\";\n\tforeach (array_keys($fields) as $field) {\n\t\techo \"<th align=\\\"left\\\">\" . $field . \"</th>\";\n\t}\n\techo \"</tr>\\n\";\n}", "title": "" }, { "docid": "abcb7d8c6c3c9d9d687e42c2450763b7", "score": "0.5952673", "text": "protected function get_sortable_columns()\n {\n }", "title": "" }, { "docid": "1aa9dc9fe7043449bc3670a08817dcb7", "score": "0.5945768", "text": "private function getColumnHeaders(&$results) {\r\n $html = '<h3>Column Headers</h3><pre>';\r\n\r\n $headers = $results->getColumnHeaders();\r\n foreach ($headers as $header) {\r\n $html .= <<<HTML\r\n\r\nColumn Name = {$header->getName()}\r\nColumn Type = {$header->getColumnType()}\r\nData Type = {$header->getDataType()}\r\n\r\nHTML;\r\n }\r\n\r\n $html .= '</pre>';\r\n return $html;\r\n }", "title": "" }, { "docid": "00fc461a32d9d545ec0c9f1ac64ef4a1", "score": "0.593648", "text": "function print_header(){\n\t\tglobal $worksheet, $xlsRow;\n\n\t\t$worksheet->set_column(0, 0, 10);\n\t\t$worksheet->set_column(1, 1, 25);\n\t\t$worksheet->set_column(2, 2, 25);\n\t\t$worksheet->set_column(3, 3, 20);\n\t\t$worksheet->set_column(4, 4, 15);\n\t\t$worksheet->set_column(5, 5, 40);\n\n\t\t$xlsRow++;\n\t\t$worksheet->write($xlsRow, 0, \"ลำดับที่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 1, \"ประเภทการลา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 2, \"ตั้งแต่วันที่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 3, \"ถึงวันที่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 4, \"จำนวนวัน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 5, \"หมายเหตุ\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t}", "title": "" }, { "docid": "7ce84f6c950f1d19d9d7292a12524559", "score": "0.59284836", "text": "public function mountTableHeader() : void {\n \n $arrayHeader = $this->getArrayHeader();\n \n foreach($arrayHeader as $columnNumber => $index) {\n \n $column = $this->table->getColumn($columnNumber);\n $header = $column->getHeader();\n \n $this->setHeaderContent($header, $index);\n $this->setColumnWidth($column, $index);\n \n }\n \n }", "title": "" }, { "docid": "4de274858bd00cc4b86c0d003d0054db", "score": "0.59244496", "text": "function palamares_get_TableHeader($isUserAdminInCLub, $DisplayTournoi,$for_printing=false){\n\tif($for_printing){\n\t\t//pas d'affichage d'email ? \n\t\t$array_header = '<table border=\"1\" ><thead><tr align=\"center\" bgcolor=\"#2d678c\">\n\t\t\t\t\t<th>Rang</th>\n\t\t\t\t\t<th>Nom </th>\n\t\t\t\t\t<th>Prénom</th>\n\t\t\t\t\t<th>Classement</th>\n\t\t\t\t</tr></thead><tbody>';\n\t\t\n\t\treturn $array_header;\n\t}\n\t\t// ***** TABLE ******\n\t\t// ligne de titre\n\t\techo '<table id=\"table_palmares\" class=\"dt-responsive no-wrap stripe table_tennisdefi\">\n <thead><tr>\n <th>Rang</th>\n <th>Nom </th>\n <th>Prénom</th>\n \t\t\t\t<th>Classement</th>\n \t\t\t\t<th>Partenaires</th>\n <th></th>';\n\t\n\t\tif($isUserAdminInCLub)\n\t\t\techo '<th>Email</th>';\n\t\n\t\t\n\t\t\techo '</tr></thead><tbody> ';\n\t\t\t\n\n}", "title": "" }, { "docid": "bba23ce98223f92ccbd8986032a7312c", "score": "0.59202194", "text": "function header_output() {\n }", "title": "" }, { "docid": "4daccc16d2f68f75390c41dc0cd46859", "score": "0.59176147", "text": "function TableHeader() {\n\t\t$this->AdaptFont(10,'B'); //Police gras 10pt\n\t\t$this->SetX($this->TableX);\n\t\t$fill = !empty($this->HeaderColor);\n\t\tif($fill)\n\t\t\t$this->SetFillColor($this->HeaderColor[0],$this->HeaderColor[1],$this->HeaderColor[2]);\n\t\tforeach($this->aCols as $col)\n\t\t\t$this->Cell($col['w'],6,utf8_decode(html_entity_decode($col['c'])),1,0,'C',$fill);\n\t\t$this->Ln();\n\t}", "title": "" }, { "docid": "d52e14e3f10b05d529c71d9f6dfafffc", "score": "0.58958966", "text": "function print_header(){\n\t\tglobal $worksheet, $xlsRow;\n\n\t\t$worksheet->set_column(0, 0, 6);\n\t\t$worksheet->set_column(1, 1, 10);\n\t\t$worksheet->set_column(2, 2, 25);\n\t\t$worksheet->set_column(3, 3, 25);\n\t\t$worksheet->set_column(4, 4, 35);\n\t\t$worksheet->set_column(5, 5, 35);\n\t\t$worksheet->set_column(6, 6, 15);\n\t\t$worksheet->set_column(7, 7, 30);\n\t\t$worksheet->set_column(8, 8, 10);\n\t\t$worksheet->set_column(9, 9, 10);\n\t\t$worksheet->set_column(10, 10, 20);\n\t\t$worksheet->set_column(11, 11, 10);\n\t\t$worksheet->set_column(12, 12, 35);\n\t\t$worksheet->set_column(13, 13, 35);\n\t\t$worksheet->set_column(14, 14, 15);\n\t\t$worksheet->set_column(15, 15, 30);\n\t\t$worksheet->set_column(16, 16, 15);\n\t\t$worksheet->set_column(17, 17, 10);\n\t\t$worksheet->set_column(18, 18, 20);\n\t\t$worksheet->set_column(19, 19, 40);\n\n\t\t$xlsRow++;\n\t\t$worksheet->write($xlsRow, 0, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TL\", 1));\n\t\t$worksheet->write($xlsRow, 1, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 2, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 3, \"บัญชีข้าราชการพลเรือนสามัญเดิม\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 4, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 5, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 6, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 7, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 8, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 9, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 10, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 1));\n\t\t$worksheet->write($xlsRow, 11, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 0));\n\t\t$worksheet->write($xlsRow, 12, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 13, \"บัญชีข้าราชการพลเรือนสามัญใหม่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 14, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 15, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 16, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 17, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 18, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 19, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 0));\n\n\t\tset_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"LRB\", 0);\n\t\t\n\t\t$xlsRow++;\n\t\t$worksheet->write($xlsRow, 0, \"ลำดับที่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 1, \"เลขที่ตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 2, \"ชื่อ\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 3, \"สกุล\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 4, \"ชื่อตำแหน่งในการบริหารงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 5, \"ชื่อตำแหน่งในสายงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 6, \"ประเภทตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 7, \"สายงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 8, \"ระดับตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 9, \"อัตราเงินเดือน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 10, \"อัตราเงินประจำตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 11, \"เลขที่ตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 12, \"ชื่อตำแหน่งในการบริหารงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 13, \"ชื่อตำแหน่งในสายงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 14, \"ประเภทตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 15, \"สายงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 16, \"ระดับตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 17, \"อัตราเงินเดือน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 18, \"อัตราเงินประจำตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 19, \"หมายเหตุ\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t}", "title": "" }, { "docid": "6bae74368f2aad3e50935a29f76d34f6", "score": "0.58900464", "text": "public static function column_headings( $columns ) {\n\n\t\t\tunset( $columns['date'] );\n\n\t\t\t$columns['aiosrs_schema_type'] = __( 'Type', 'wp-schema-pro' );\n\t\t\t$columns['aiosrs_schema_display_rules'] = __( 'Target Location', 'wp-schema-pro' );\n\t\t\t$columns['date'] = __( 'Date', 'wp-schema-pro' );\n\n\t\t\treturn $columns;\n\t\t}", "title": "" }, { "docid": "d59f1d60ba34c48962d3d2950dea1bf4", "score": "0.5881426", "text": "function set_header($header = array()) {\n \t$this->columns = $header['columns'];\n\n \t$this->header_row = '<thead>';\n \t$this->header_row .= '<tr>';\n \tforeach($this->columns as $column) {\n // Column variables\n $c_style = (isset($column['style']) ? 'style=\"'.$column['style'].'\"': '');\n $c_class = (isset($column['class']) ? 'class=\"'.$column['class'].'\"': '');\n\n \t\t// Set a tag variables\n \t\t$class = (isset($column['atag']['class']) ? 'class=\"'.$column['atag']['class'].'\"': '');\n \t\t$title = (isset($column['atag']['title']) ? 'title=\"'.$column['atag']['title'].'\"': '');\n \t\t$href = (isset($column['atag']['href']) ? $column['atag']['href']: '');\n\n \t\t$this->header_row .= '<td '.$c_style.' '.$c_class.'>';\n \t\t$this->header_row .= (isset($column['atag']) ? '<a '.$class.' '.$title.' href=\"'.$href.'\">': '');\n \t\t$this->header_row .= (isset($column['title']) ? $column['title']: '');\n \t\t$this->header_row .= (isset($column['atag']) ? '</a>': '');\n \t\t$this->header_row .= '</td>';\n \t}\n \t$this->header_row .= '</tr>';\n \t$this->header_row .= '</thead>';\n }", "title": "" }, { "docid": "1de08112ec15b5daf00189f22fb063e3", "score": "0.58747566", "text": "function tableHeader($col1, $col2, $col3, $col4){\n echo '<thead style=\"border: 1px solid black; border-collapse:collapse; padding:10px;\">\n <tr>';\n for($cll=1; $cll<5; $cll++){\n echo '<th style=\"border:3px solid gray; border-collapse: collapse;padding:10px;\">'.${col.$cll}.'</th>';\n }\n echo '</tr>\n </thead>';\n}", "title": "" }, { "docid": "3d686bb2739c6121da61bfbda58f2855", "score": "0.58680296", "text": "function manage_column_titles( $columns ) {\r\n\t\t$taxonomy = get_taxonomy( $this->taxonomy );\r\n\r\n\t\t$columns[ $this->taxonomy ] = $taxonomy->labels->singular_name;\r\n\r\n\t\treturn $columns;\r\n\t}", "title": "" }, { "docid": "f7d51b5e009bbbf5cf98ca9380d6e2d5", "score": "0.58637583", "text": "public function getColumns() {\r\n $return_value['DT_RowIndex'] = ['title' => 'Sr. No', 'orderable' => false, 'searchable' => false];\r\n \r\n (request()->type != 'referral_sources' && request()->type != 'rehabs' && request()->type != 'hospice_providers' && request()->type != 'housing_assistances' && request()->type != 'mental_health_assistances' && request()->type != 'home_health_providers' && request()->type != 'insurances') ? $return_value['name'] = ['title' => (request()->type == 'pcp_informations' || request()->type == 'specialities')?'Doctor Name':'Name', 'orderable' => false]:'';\r\n\r\n \r\n (request()->type !='emergency_departments') ? $return_value['org_name'] = ['title' => 'Organization', 'orderable' => false] :'';\r\n \r\n\r\n (request()->type != 'rehabs' && request()->type != 'hospice_providers' && request()->type != 'housing_assistances' && request()->type != 'mental_health_assistances' && request()->type != 'home_health_providers' && request()->type != 'insurances') ? $return_value['email'] = ['title' => 'Email', 'orderable' => false]:''; \r\n\r\n (request()->type == 'insurances') ? $return_value['contact_email'] = ['title' => 'Contact Person Email', 'orderable' => false]:'';\r\n \r\n $return_value['contact_name'] = ['title' => (request()->type == 'housing_assistances' || request()->type == 'mental_health_assistances' || request()->type == 'home_health_providers') ? 'Counselor Name':'Contact Person Name', 'orderable' => false];\r\n \r\n (request()->type == 'rehabs' || request()->type == 'hospice_providers' || request()->type == 'housing_assistances' || request()->type == 'mental_health_assistances' || request()->type == 'home_health_providers') ? $return_value['contact_title'] = ['title' => (request()->type == 'housing_assistances' || request()->type == 'mental_health_assistances' || request()->type == 'home_health_providers') ? 'Counselor Title':'Contact Title', 'orderable' => false]:'';\r\n \r\n $return_value['city'] = ['title' => 'Address', 'orderable' => false];\r\n \r\n \r\n (request()->type == 'referral_sources') ? $return_value['web_address'] = ['title' => 'Web Address', 'orderable' => false]:'';\r\n \r\n (request()->type != 'pcp_informations' && request()->type != 'specialities' && request()->type != 'rehabs' && request()->type != 'hospice_providers' && request()->type != 'housing_assistances' && request()->type != 'mental_health_assistances' && request()->type != 'home_health_providers')?$return_value['code'] = ['title' => 'Code', 'orderable' => false]:'';\r\n\r\n (request()->type == 'pcp_informations' || request()->type == 'specialities')?$return_value['speciality'] = ['title' => 'Specialty', 'orderable' => false]:'';\r\n\r\n $return_value['action'] = ['title' => 'Action', 'orderable' => false];\r\n \r\n return $return_value;\r\n }", "title": "" }, { "docid": "ebe968bbad0dcfcba5b9b8f0be41fb03", "score": "0.58471227", "text": "function get_columns() {\n\n\t\t\t$columns = array( 'cb' => '<input type=\"checkbox\" />' );\n\n\t\t\tif ( ! empty( $this->sql ) ) {\n\t\t\t\tglobal $wpdb;\n\t\t\t\t$results = $wpdb->get_results( $this->sql );\n\t\t\t\tif(is_array($results) and !empty($results)) {\n\t\t\t\t\tforeach ( $results[0] as $column_name => $column_value ) { // Get all columns by provided returned by sql query(Preparing Columns Array).\n\t\t\t\t\tif(array_key_exists($column_name, $this->columns)) {\n\t\t\t\t\t\t$this->columns[ $column_name ] = $this->columns[$column_name];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->columns[ $column_name ] = $column_name;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ( empty( $this->columns ) ) {\n\t\t\t\t\tglobal $wpdb;\n\t\t\t\t\tforeach ( $wpdb->get_col( 'DESC ' . $this->table, 0 ) as $column_name ) { // Query all column name usind DESC (Preparing Columns Array).\n\t\t\t\t\t\t$this->columns[ $column_name ] = $column_name;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->unset_id_field(); // Preventing Id field to showup in Listing.\n\n\t\t\t// This is how we initialise all columns dynamically instead of statically (normally we write each column name here) in get_columns function definition :).\n\t\t\tforeach ( $this->columns as $dbcolname => $collabel ) {\n\t\t\t\t$columns[ $dbcolname ] = __( $collabel, $this->textdomain );\n\t\t\t}\n\n\t\t\treturn $columns;\n\t\t}", "title": "" }, { "docid": "6011c58c78a2687fcd4b93c3d3cf2362", "score": "0.58462375", "text": "public function getColumnNames();", "title": "" }, { "docid": "6011c58c78a2687fcd4b93c3d3cf2362", "score": "0.58462375", "text": "public function getColumnNames();", "title": "" }, { "docid": "6011c58c78a2687fcd4b93c3d3cf2362", "score": "0.58462375", "text": "public function getColumnNames();", "title": "" }, { "docid": "3a37374ea3d24faad25226e1f309ec59", "score": "0.5834704", "text": "function get_columns()\n\t\t {\n\t\t return $columns= array(\n\t\t\t\t 'col_link_id'=>__('ID'),\n\t\t\t\t 'col_link_name'=>__('Name'),\n\t\t\t\t 'col_link_url'=>__('Url'),\n\t\t\t\t 'col_link_description'=>__('Description'),\n\t\t\t\t 'col_link_visible'=>__('Visible')\n\t\t\t\t );\n\t\t }", "title": "" }, { "docid": "5c35733e1823ffd5d0bf8ec5c4eecb91", "score": "0.5826656", "text": "private function getHtmlHeaders(){\n\t\t$html = \"<tr>\";\n\t\t\tforeach($this->getHeadings() as $h => $func){\n\t\t\t\t$html .= \"<th>\";\n\t\t\t\t\t$html .= $this->getHeaderLink($h);\n\t\t\t\t$html .= \"</th>\";\n\t\t\t}\n\t\t\tforeach($this->getNonDataHeadings() as $h => $func){\n\t\t\t\t$html .= \"<th>\";\n\t\t\t\t\t$html .= $h;\n\t\t\t\t$html .= \"</th>\";\n\t\t\t}\n\t\t$html .= \"</tr>\";\n\t\t\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "61cd6649f454200afb2d4c85ffdde0ab", "score": "0.5826052", "text": "function action_woocommerce_admin_order_item_headers( ) \r\n{ ?>\r\n <th class=\"item sortable\" colspan=\"2\" data-sort=\"string-ins\"><?php _e( 'Item category', 'woocommerce' ); ?></th>\r\n <?php \r\n}", "title": "" }, { "docid": "3fe6dfd5dad6c4fb0dbedaed03df65d4", "score": "0.5825554", "text": "public function custom_columns($column){ \n\t global $post; \n switch ($column){ \n \t\tcase \"bn_neighborhoods_category\":\n\t \t\tif ( ! $terms = get_the_terms( $post->ID, $column ) ) {\n\t\t\t\t\techo '<span class=\"na\">&ndash;</span>';\n\t\t\t\t} else {\n\t\t\t\t\t$termlist = array();\n\t\t\t\t\tforeach ( $terms as $term ) {\n\t\t\t\t\t\t$termlist[] = '<a href=\"' . admin_url( 'edit.php?' . $column . '=' . $term->slug . '&post_type=bn_neighborhoods' ) . ' \">' . $term->name . '</a>';\n\t\t\t\t\t}\n\n\t\t\t\t\techo implode( ', ', $termlist );\n\t\t\t\t}\n \t\t\t// echo get_the_term_list($post->ID, 'cards_msgs_category', '', ', ','');\n \t\tbreak;\n }\n\t}", "title": "" }, { "docid": "3d321d4128f3f530e2b82407a79eb0b2", "score": "0.5816859", "text": "public function useHeaderAsFieldNames(){\n $this->useHeaderAsFieldNames = true;\n }", "title": "" }, { "docid": "59c896ed607a606fd8f6f00bd453b3c0", "score": "0.5815341", "text": "function get_columns() {\n $columns = array(\n 'cb' => '<input type=\"checkbox\" />',\n 'deduction_name' => __( 'Name', 'erp' ),\n 'description' => __( 'Description', 'erp' ),\n );\n\n return apply_filters( 'rbs_erp_deduction_table_cols', $columns );\n }", "title": "" }, { "docid": "8e88094d8763e165393d30a617f8ad83", "score": "0.580859", "text": "function audiotheme_record_display_columns( $column_name, $post_id ) {\n\tglobal $post;\n\n\tswitch ( $column_name ) {\n\t\tcase 'record_type' :\n\t\t\t$taxonomy = 'audiotheme_record_type';\n\t\t\t$post_type = get_post_type( $post_id );\n\t\t\t$terms = wp_get_object_terms( $post_id, $taxonomy, array( 'fields' => 'slugs' ) );\n\n\t\t\tif ( ! empty( $terms ) ) {\n\t\t\t\t$record_types = get_audiotheme_record_type_strings();\n\t\t\t\tforeach ( $terms as $term ) {\n\t\t\t\t\tif ( isset( $record_types[ $term ] ) ) {\n\t\t\t\t\t\t$names[] = $record_types[ $term ];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( ! empty( $names ) ) {\n\t\t\t\t\techo join( ', ', $names );\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 'release_year' :\n\t\t\techo get_audiotheme_record_release_year( $post_id );\n\t\t\tbreak;\n\n\t\tcase 'track_count' :\n\t\t\t$args = array(\n\t\t\t\t'post_type' => 'audiotheme_track',\n\t\t\t\t'post_parent' => $post_id,\n\t\t\t);\n\n\t\t\tprintf( '<a href=\"%s\">%s</a>',\n\t\t\t\tadd_query_arg( $args, esc_url( admin_url( 'edit.php' ) ) ),\n\t\t\t\tget_post_meta( $post_id, '_audiotheme_track_count', true )\n\t\t\t);\n\t\t\tbreak;\n\t}\n}", "title": "" }, { "docid": "5659b89eea10fadf06745463cafbb869", "score": "0.5789718", "text": "protected function _prepareColumns()\n {\n $this->addColumn('id',\n array(\n 'header'=> $this->__('ID'),\n 'align' =>'center',\n 'width' => '50px',\n 'index' => 'id'\n )\n );\n \n $this->addColumn('order_id',\n array(\n 'header'=> $this->__('Order Id'),\n\t\t\t\t'align' => 'right',\n 'width' => '80px',\n 'index' => 'order_id'\n )\n );\n \n\t\t$this->addColumn('employer',\n array(\n 'header'=> $this->__('Employer Name'),\n\t\t\t\t'width' => '35%',\n 'index' => 'employer'\n )\n );\n $this->addColumn('occupation',\n array(\n 'header'=> $this->__('Occupation'),\n 'index' => 'occupation'\n )\n );\n \n return parent::_prepareColumns();\n }", "title": "" }, { "docid": "64dbde31746d55dcbd10c05aacfd3db0", "score": "0.5785104", "text": "function get_columns() : array {\r\n return [\r\n 'cb' => '<input type=\"checkbox\" />', //Render a checkbox instead of text\r\n 'time' => 'Time',\r\n 'first_name' => 'First Name',\r\n 'last_name' => 'Last Name',\r\n 'email' => 'E-Mail',\r\n 'phone' => 'Phone',\r\n 'subject' => 'Subject',\r\n 'message' => 'Message',\r\n\t\t\t'src_post_id' => 'Source',\r\n ];\r\n }", "title": "" }, { "docid": "4c10050fa6bb8daac5c8eb443757af73", "score": "0.57835674", "text": "public function init_manage_columns() {\r\n\r\n\t\t//add_filter( \"manage_{$this->page}_columns\", array( $this, 'add_headings' ), 100 );\r\n\t\t//add_action( 'manage_comments_custom_column', array( $this, 'manage_value' ), 100, 2 );\r\n\t}", "title": "" }, { "docid": "606284b80fc36f5e46f1dbeb9f2064ac", "score": "0.57807446", "text": "public function headerNames();", "title": "" }, { "docid": "26f7e8204e91c5956115bdd800a2f9e4", "score": "0.5774529", "text": "public function printHeader()\n {\n if( isset($_REQUEST['file']) )\n {\n $stmt = $this->getDbh()->prepare( 'select Name, Type, Size, Content from Uploads where Uploads_ID=?' );\n if( $stmt->execute( [$_REQUEST['file']] ) )\n {\n $filedata = $stmt->fetch(PDO::FETCH_ASSOC);\n }\n }\n else\n {\n $filedata = null;\n }\n \n if( $filedata )\n {\n header('Content-length: ' . $filedata['Size']);\n header('Content-type: ' . $filedata['Type']);\n header('Content-Disposition: attachment; filename=' . $filedata['Name'] );\n print $filedata['Content'];\n }\n else\n {\n header(\"HTTP/1.1 404 Not Found\");\n header(\"Content-type: text/plain\");\n print \"file not found\";\n }\n \n /* suppress any further output */\n return false;\n }", "title": "" }, { "docid": "77c330d0973cce663d36f1992ba3bf72", "score": "0.57672185", "text": "protected function _prepareColumns()\n {\n\n $this->addColumn('filename', array(\n 'header' => Mage::helper('kariboo_shipping')->__('Filename'),\n 'index' => 'filename',\n 'filter' => false,\n 'sortable' => false\n ));\n return parent::_prepareColumns();\n }", "title": "" }, { "docid": "a91caf506d7eadc6f80ef8529b8ff937", "score": "0.57586706", "text": "public function getTableHeaders()\n {\n return ['ID', 'Titulo', 'URL', 'Tela-cheia', 'Logo-Youtube','Mudo', 'Controle-video'];\n }", "title": "" }, { "docid": "eb6f44b8a66281991e3e7f36acf62555", "score": "0.5753663", "text": "protected function renderHeaderCellContent() {\n if ($this->grid->enableSorting && $this->sortable && $this->name !== null)\n echo $this->grid->dataProvider->getSort()->link($this->name, $this->header);\n else if ($this->name !== null && $this->header === null) {\n if ($this->grid->dataProvider instanceof CActiveDataProvider)\n echo CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name));\n else\n echo CHtml::encode($this->name);\n }\n else\n parent::renderHeaderCellContent();\n }", "title": "" }, { "docid": "411be1c6066c0be40e088a605459b3b5", "score": "0.57488626", "text": "public static function get_csv_header() {\n\t\treturn [ 'date', 'source', 'ip', 'referrer', 'useragent' ];\n\t}", "title": "" }, { "docid": "6490a289504fe649dd8c28247066fce2", "score": "0.5739263", "text": "function get_columns() {\n\t $columns = [\n\t 'cb' => '<input type=\"checkbox\" />',\n\t 'username' => __( 'Username', 'sp' ),\n\t 'email' => __( 'Email', 'sp' ),\n\t 'package' => __( 'Package', 'sp' ),\n\t 'payment_method' => __( 'Payment Method', 'sp' ),\n\t 'user_type' => __( 'User Type', 'sp' ),\n\t 'price' => __( 'Price', 'sp' ),\n\t 'payment_date' => __( 'Payment Date', 'sp' ),\n\t 'expiry_date' => __( 'Expiry Date', 'sp' )\n\t ];\n\n\t return $columns;\n\t}", "title": "" }, { "docid": "3c5b41f37f4dc78e3c0f1d8d89926844", "score": "0.5730234", "text": "function render_column_names()\n\t{\n\t\tforeach ($this->columns as $column)\n\t\t{\n\t\t\tif (isset($this->structure[$column][\"custom\"][\"label\"]))\n\t\t\t{\n\t\t\t\t$this->render_columns[$column] = $this->structure[$column][\"custom\"][\"label\"];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// do translation\n\t\t\t\t$this->render_columns[$column] = language_translate_string($this->language, $column);\n\t\t\t}\n\t\t}\n\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "f636389d8ad41015c868204a48cfc608", "score": "0.5729533", "text": "function print_header(){\n\t\tglobal $worksheet, $xlsRow;\n\n\t\t$worksheet->set_column(0, 0, 6.29);\n\t\t$worksheet->set_column(1, 1, 7.71);\n\t\t$worksheet->set_column(2, 2, 24.57);\n\t\t$worksheet->set_column(3, 3, 18.57);\n\t\t$worksheet->set_column(4, 4, 27.29);\n\t\t$worksheet->set_column(5, 5, 18.57);\n\t\t$worksheet->set_column(6, 6, 24.57);\n\t\t$worksheet->set_column(7, 7, 11.57);\n\t\t$worksheet->set_column(8, 8, 13.14);\n\t\t$worksheet->set_column(9, 9, 18.57);\n\t\t$worksheet->set_column(10, 10, 24.57);\n\t\t$worksheet->set_column(11, 11, 11.57);\n\t\t$worksheet->set_column(12, 12, 13.14);\n\t\t$worksheet->set_column(13, 13, 11.57);\n\t\t$worksheet->set_column(14, 14, 27.29);\n//\t\t$worksheet->set_column(15, 15, 20);\n\n\t\t$xlsRow++;\n\t\t$worksheet->write($xlsRow, 0, \"ลำดับ\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TRL\", 1));\n\t\t$worksheet->write($xlsRow, 1, \"ตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 1));\n\t\t$worksheet->write($xlsRow, 2, \" \", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 3, \"ข้อมูลผู้ดำรงตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 4, \" \", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 1));\n\t\t$worksheet->write($xlsRow, 5, \" \", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 6, \"ส่วนราชการและตำแหน่งที่ ก.ก. กำหนดไว้เดิม\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 7, \" \", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 8, \" \", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 1));\n\t\t$worksheet->write($xlsRow, 9, \" \", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 10, \"ส่วนราชการและตำแหน่งที่ ก.ก. กำหนดใหม่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 11, \" \", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"T\", 1));\n\t\t$worksheet->write($xlsRow, 12, \" \", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 1));\n\t\t$worksheet->write($xlsRow, 13, \"อัตรา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 1));\n\t\t$worksheet->write($xlsRow, 14, \"หมายเหตุ\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 0));\n//\t\t$worksheet->write($xlsRow, 15, \"อัตรา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TR\", 0));\n\n\t\tset_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"LRB\", 0);\n\t\t\n\t\t$xlsRow++;\n\t\t$worksheet->write($xlsRow, 0, \"ที่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"LRB\", 0));\n\t\t$worksheet->write($xlsRow, 1, \"เลขที่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"LRB\", 0));\n\t\t$worksheet->write($xlsRow, 2, \"ชื่อ-นามสกุลผู้ดำรงตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 3, \"เลขประจำตัวประชาชน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 4, \"คุณวุฒิ\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 5, \"ชื่อตำแหน่งในการบริหารงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLB\", 0));\n\t\t$worksheet->write($xlsRow, 6, \"ชื่อตำแหน่งในสายงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 7, \"ประเภทตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 8, \"ระดับตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 9, \"ชื่อตำแหน่งในการบริหารงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 10, \"ชื่อตำแหน่งในสายงาน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 11, \"ประเภทตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 12, \"ระดับตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TLRB\", 0));\n\t\t$worksheet->write($xlsRow, 13, \"เงินเดือน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"LRB\", 0));\n\t\t$worksheet->write($xlsRow, 14, \"\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"LRB\", 0));\n//\t\t$worksheet->write($xlsRow, 15, \"เงินประจำตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"LRB\", 0));\n\t}", "title": "" }, { "docid": "8d4f39b144b34f517965058abddf4266", "score": "0.572907", "text": "public function get_columns()\n {\n }", "title": "" }, { "docid": "c4743e2a2023fd2f44abf8aa5d608c05", "score": "0.5717331", "text": "public static function propertyState_columns_head() {\n\n $new_columns = array(\n 'cb' => '<input type=\"checkbox\" />',\n 'name' => __('Name','houzez-theme-functionality'),\n 'country' => __('Country','houzez-theme-functionality'),\n 'header_icon' => '',\n 'slug' => __('Slug','houzez-theme-functionality'),\n 'posts' => __('Posts','houzez-theme-functionality')\n );\n\n if ( is_rtl() ) {\n $new_columns = array_reverse( $new_columns );\n }\n return $new_columns;\n }", "title": "" }, { "docid": "1c2445871a2bafeeeab8d3a85f17b3d7", "score": "0.5713417", "text": "public function register_columns() {\n\t\t$post_types = get_option( 'helpful_post_types' );\n\t\t$hide_cols = get_option( 'helpful_hide_admin_columns' );\n\n\t\tif ( isset( $hide_cols ) && 'on' === $hide_cols ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! isset( $post_types ) || ! is_array( $post_types ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ( $post_types as $post_type ) {\n\t\t\t$post_type = esc_attr( $post_type );\n\t\t\tadd_filter( 'manage_edit-' . $post_type . '_columns', [ $this, 'set_columns_title' ], 10 );\n\t\t}\n\t}", "title": "" }, { "docid": "833ebc042f83d1f93e8f4057d4064920", "score": "0.5711089", "text": "public function getTableHeaders()\n {\n return['#', 'Nome', 'Email', 'Nivel', 'Setor'];\n }", "title": "" }, { "docid": "ff397493744ba4d8cce012b662cd844d", "score": "0.5708665", "text": "public function post_list_columns_head( $columns )\r\n\t{\r\n\t $columns['template'] = 'Template';\r\n\t return $columns;\r\n\t}", "title": "" }, { "docid": "4d3b5912b697b750da5343ee0814eb64", "score": "0.57064486", "text": "function bios_sort_columns( $columns ) {\n\t$columns['_cmbi_featured'] = __( 'Featured' );\n\t\n\treturn $columns;\n}", "title": "" }, { "docid": "ba57f7c4cfe0c2ad3c83ad025ca5848d", "score": "0.57051194", "text": "function get_columns() {\n\t\t$columns = array(\n\t\t\t'cb' => '<input type=\"checkbox\" />',\n\t\t\t'id' => __( 'Id', 'wc-support-system' ),\n\t\t\t'title' => __( 'Title', 'wc-support-system' ),\n\t\t\t'user_id' => __( 'User id', 'wc-support-system' ),\n\t\t\t'user_name' => __( 'User name', 'wc-support-system' ),\n\t\t\t'user_email' => __( 'User email', 'wc-support-system' ),\n\t\t\t'product_id' => __( 'Product', 'wc-support-system' ),\n\t\t\t'status' => __( 'Status', 'wc-support-system' ),\n\t\t\t'create_time' => __( 'Create time', 'wc-support-system' ),\n\t\t\t'update_time' => __( 'Update time', 'wc-support-system' ),\n\t\t\t'delete' => '',\n\t\t);\n\n\t\treturn $columns;\n\t}", "title": "" }, { "docid": "ff7d14b3c7347939e5cf50dc962fac6a", "score": "0.56973046", "text": "protected function outputHeaders() {\n foreach ($this->headers as $name => $value) {\n header(\"$name: $value\", true);\n }\n }", "title": "" }, { "docid": "2cb6c2284b1827ecc4433cedc2951200", "score": "0.5694547", "text": "public function getTableHeaders()\n {\n return ['Ações','Grupo Kanban','Situação','Data Entrada','Paciente','Cliente','Quantidade','Valor Unitário','Valor Total'];\n }", "title": "" }, { "docid": "18d6dcd8f2bc816d75b049a66454636b", "score": "0.5692651", "text": "public static function column_display( $column_name, $id ) {\n\t\t$client = SI_Client::get_instance( $id );\n\n\t\tif ( ! is_a( $client, 'SI_Client' ) ) {\n\t\t\treturn; // return for that temp post\n\t\t}\n\t\tswitch ( $column_name ) {\n\n\t\t\tcase 'info':\n\n\t\t\t\techo '<p>';\n\t\t\t\t$address = si_format_address( $client->get_address(), 'string', '<br/>' );\n\t\t\t\techo $address;\n\t\t\t\tif ( $address != '' ) {\n\t\t\t\t\techo '<br/>';\n\t\t\t\t}\n\t\t\t\techo make_clickable( esc_url( $client->get_website() ) );\n\t\t\t\techo '</p>';\n\n\t\t\t\t$associated_users = $client->get_associated_users();\n\t\t\t\techo '<p>';\n\t\t\t\tprintf( '<b>%s</b>: ', __( 'Users', 'sprout-invoices' ) );\n\t\t\t\tif ( ! empty( $associated_users ) ) {\n\t\t\t\t\t$users_print = array();\n\t\t\t\t\tforeach ( $associated_users as $user_id ) {\n\t\t\t\t\t\t$user = get_userdata( $user_id );\n\t\t\t\t\t\tif ( $user ) {\n\t\t\t\t\t\t\t$users_print[] = sprintf( '<span class=\"associated_user\"><a href=\"%s\">%s</a></span>', get_edit_user_link( $user_id ), $user->display_name );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( ! empty( $users_print ) ) {\n\t\t\t\t\techo implode( ', ', $users_print );\n\t\t\t\t} else {\n\t\t\t\t\techo __( 'No associated users', 'sprout-invoices' );\n\t\t\t\t}\n\t\t\t\techo '</p>';\n\n\t\t\tbreak;\n\n\t\t\tcase 'invoices':\n\n\t\t\t\t$invoices = $client->get_invoices();\n\t\t\t\t$split = 3;\n\t\t\t\t$split_invoices = array_slice( $invoices, 0, $split );\n\t\t\t\tif ( ! empty( $split_invoices ) ) {\n\t\t\t\t\techo '<dl>';\n\t\t\t\t\tforeach ( $split_invoices as $invoice_id ) {\n\t\t\t\t\t\tprintf( '<dt>%s</dt><dd><a href=\"%s\">%s</a></dd>', get_post_time( get_option( 'date_format' ), false, $invoice_id ), get_edit_post_link( $invoice_id ), get_the_title( $invoice_id ) );\n\t\t\t\t\t}\n\t\t\t\t\techo '</dl>';\n\t\t\t\t\tif ( count( $invoices ) > $split ) {\n\t\t\t\t\t\tprintf( '<span class=\"description\">' . __( '...%s of <a href=\"%s\">%s</a> most recent shown', 'sprout-invoices' ) . '</span>', $split, get_edit_post_link( $id ), count( $invoices ) );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tprintf( '<em>%s</em>', __( 'No invoices', 'sprout-invoices' ) );\n\t\t\t\t}\n\t\t\tbreak;\n\n\t\t\tcase 'estimates':\n\n\t\t\t\t$estimates = $client->get_estimates();\n\t\t\t\t$split = 3;\n\t\t\t\t$split_estimates = array_slice( $estimates, 0, $split );\n\t\t\t\tif ( ! empty( $split_estimates ) ) {\n\t\t\t\t\techo '<dl>';\n\t\t\t\t\tforeach ( $split_estimates as $estimate_id ) {\n\t\t\t\t\t\tprintf( '<dt>%s</dt><dd><a href=\"%s\">%s</a></dd>', get_post_time( get_option( 'date_format' ), false, $estimate_id ), get_edit_post_link( $estimate_id ), get_the_title( $estimate_id ) );\n\t\t\t\t\t}\n\t\t\t\t\techo '</dl>';\n\t\t\t\t\tif ( count( $estimates ) > $split ) {\n\t\t\t\t\t\tprintf( '<span class=\"description\">' . __( '...%s of <a href=\"%s\">%s</a> most recent shown', 'sprout-invoices' ) . '</span>', $split, get_edit_post_link( $id ), count( $estimates ) );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tprintf( '<em>%s</em>', __( 'No estimates', 'sprout-invoices' ) );\n\t\t\t\t}\n\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t// code...\n\t\t\tbreak;\n\t\t}\n\n\t}", "title": "" }, { "docid": "c7d95c3b3dd2eb839f5565ba38301823", "score": "0.5682429", "text": "function print_header(){\n\t\tglobal $worksheet, $xlsRow;\n\n\t\t$worksheet->set_column(0, 0, 15);\n\t\t$worksheet->set_column(1, 1, 20);\n\t\t$worksheet->set_column(2, 2, 20);\n\t\t$worksheet->set_column(3, 3, 40);\n\t\t$worksheet->set_column(4, 4, 5);\n\t\t$worksheet->set_column(5, 5, 5);\n\t\t$worksheet->set_column(6, 6, 10);\n\t\t$worksheet->set_column(7, 7, 10);\n\t\t$worksheet->set_column(8, 8, 30);\n\t\t$worksheet->set_column(9, 9, 10);\n\t\t$worksheet->set_column(10, 10, 10);\n\t\t$worksheet->set_column(11, 11, 30);\n\t\t$worksheet->set_column(12, 12, 10);\n\t\t$worksheet->set_column(13, 13, 10);\n\t\t$worksheet->set_column(14, 14, 30);\n\t\t$worksheet->set_column(15, 15, 10);\n\t\t$worksheet->set_column(16, 16, 10);\n\t\t$worksheet->set_column(17, 17, 30);\n\t\t$worksheet->set_column(18, 18, 15);\n\n\t\t$xlsRow++;\n\t\t$worksheet->write($xlsRow, 0, \"เลขประจำตัวประชาชน\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 1, \"ชื่อ\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 2, \"นามสกุล\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 3, \"ชื่อตำแหน่ง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 4, \"ลำดับที่\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 5, \"สถานะ\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 6, \"รหัสระดับการศึกษา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 7, \"รหัสกรมบัญชีกลาง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 8, \"ชื่อระดับการศึกษา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 9, \"รหัสวุฒิการศึกษา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 10, \"รหัสกรมบัญชีกลาง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 11, \"ชื่อวุฒิการศึกษา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 12, \"รหัสสาขาวิชาเอก\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 13, \"รหัสกรมบัญชีกลาง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 14, \"ชื่อสาขาวิชาเอก\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 15, \"รหัสสถาบันการศึกษา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 16, \"รหัสกรมบัญชีกลาง\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 17, \"ชื่อสถาบันการศึกษา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t\t$worksheet->write($xlsRow, 18, \"วันที่สำเร็จการศึกษา\", set_format(\"xlsFmtTableHeader\", \"B\", \"C\", \"TBLR\", 0));\n\t}", "title": "" }, { "docid": "b2deb93786e803113079e9836554a038", "score": "0.5679138", "text": "function option_wrapper_header($values){\n\t\t?>\n\t\t<tr valign=\"top\"> \n\t\t\t<th scope=\"row\"><?php echo $values['name']; ?>:</th>\n\t\t\t<td>\n\t\t<?php\n\t\t}", "title": "" }, { "docid": "42e8a702237bf1fb816a56f425406d0f", "score": "0.567879", "text": "function clean_table($column_headers) {\n\t//unwanted\n\tunset($column_headers['posts']);\n\t//new needed columns\n\t$column_headers['badge'] = 'Badge No';\n\t$column_headers['agency'] = 'Agency';\n\treturn $column_headers;\n}", "title": "" }, { "docid": "d8d6bc5d483804f1afe62fa90b67abc4", "score": "0.56776327", "text": "function agenda_header($contentType, $memberInfo, &$args){\n\t\t$header='';\n\n\t\tswitch($contentType){\n\t\t\tcase 'tableview':\n\t\t\t\t$header='';\n\t\t\t\tbreak;\n\n\t\t\tcase 'detailview':\n\t\t\t\t$header='';\n\t\t\t\tbreak;\n\n\t\t\tcase 'tableview+detailview':\n\t\t\t\t$header='';\n\t\t\t\tbreak;\n\n\t\t\tcase 'print-tableview':\n\t\t\t\t$header='';\n\t\t\t\tbreak;\n\n\t\t\tcase 'print-detailview':\n\t\t\t\t$header='';\n\t\t\t\tbreak;\n\n\t\t\tcase 'filters':\n\t\t\t\t$header='';\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $header;\n\t}", "title": "" }, { "docid": "1faa14d5c71fa1827a67c5072f503cf9", "score": "0.56687707", "text": "protected function header($arg=null){\n $header = $this->list_showing;\n return $header;\n }", "title": "" }, { "docid": "bcedccd40d45f50917eee9cdd6835729", "score": "0.5668745", "text": "function create_trend_table_grp_header($xmlCols,$xmlReport,$strOrderByColumn = \"\", $strOrderByDir = \"ASC\")\r\n{\r\n\t$widthPerColumn = get_col_width($xmlCols,0);\r\n\r\n\t$arrCriteria = $xmlReport->criteria;\r\n\t$colNum = 0;\r\n\t$strHTML=\"<div class='report' style='display:inline;align:right;'>\";\r\n\r\n\t//-- read xml columns and construct header\r\n\tforeach ($xmlCols as $nodePos => $aCol)\r\n\t{\r\n\t\t$colNum++;\r\n\t\tif($aCol->has_attributes())\r\n\t\t{\r\n\t\t\tif(!getAttribute(\"hidden\",$aCol->attributes())){\r\n\t\t\t\t$strDBname=getAttribute(\"dbname\",$aCol->attributes());\r\n\t\t\t\tif($strDBname!=\"\")\r\n\t\t\t\t{\r\n\t\t\t\t\t$strDBtable=getAttribute(\"dbtable\",$aCol->attributes());\r\n\t\t\t\t\t$strFullDbName = $strDBtable.\".\".$strDBname;\r\n\t\t\t\t\t$strColName=$strDBname;\r\n\t\t\t\t\t$strHeader=$aCol->get_content();\t\t\r\n\r\n\t\t\t\t\t//-- is this the column we are sorting by\r\n\t\t\t\t\t$strImg=\"\";\r\n\t\t\t\t\tif($colNum==$strOrderByColumn)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$dir .= (strtolower($strOrderByDir) == \"asc\")?\"up\":\"down\";\r\n\t\t\t\t\t\tif($xmlReport->criteria['wssm']==true)\r\n\t\t\t\t\t\t\t$strImg = \"&nbsp;<img src='img/icons/arr_\".$dir.\".gif'>\";\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$strImg = \"&nbsp;<img src='../common/img/icons/arr_\".$dir.\".gif'>\";\r\n\t\t\t\t\t\t\tif(isset($_SESSION['thisAppValue']))\r\n\t\t\t\t\t\t\t\t$strImg = \"&nbsp;<img src='../common/\".$_SESSION['thisAppValue'].\"/img/icons/arr_\".$dir.\".gif'>\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif($aCol->tagname=='freetext')\r\n\t\t\t\t\t\t$strHeader=str_replace(\"_\",\" \",$strDBname);\r\n\t\t\t\t\t$strHTML .=\t\"<div onclick='report_sort(this);' class='li-report-tbl-header' style=\\\"width: \".$widthPerColumn.\";\\\" tablename='\".$colNum.\"' dbname='' align='left'>\".$strHeader.$strImg.\"</div>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t$strHTML .= \"</div>\";\r\n\r\n\treturn $strHTML;\r\n}", "title": "" }, { "docid": "de33f798826455cbe5c0011dbd295fe4", "score": "0.5667543", "text": "function sv_wc_csv_export_modify_column_headers_example( $column_headers, $csv_generator ) {\n\n\t// add the new `example` column header\n\t$column_headers['authorize_cim_id'] = 'authorize_net_customer_cim_id';\n\n\n\treturn $column_headers;\n}", "title": "" }, { "docid": "77461e02e33ef4b024f631a4605106d8", "score": "0.5667205", "text": "public function headers() {\n\t\t$this->msg(headers_list(), DEBUG_DUMP);\n\t}", "title": "" } ]
5ad7820edcc79c9e9159553b108d0367
Function to print the main subcategory columns of a particular category being viewed or selected
[ { "docid": "bc9a54907c069d5efc27d6e58db63a5c", "score": "0.0", "text": "function print_skills_columns($slng = 'eng', $showcount = 1, $prepopulate = true, $columns = 4, $doajax = false, $customfield1 = '', $customfield2 = '', $sid_value = '')\n {\n global $ilance, $phrase, $ilconfig, $ilpage, $show, $sqlquery, $categoryfinderhtml, $headinclude;\n\t\t$html = '<table border=\"0\" cellspacing=\"6\" cellpadding=\"1\" width=\"100%\" dir=\"' . $ilconfig['template_textdirection'] . '\">';\n $html .= $this->fetch_skills_columns(0, $slng, $showcount, 1, $prepopulate, $columns, $doajax, $customfield1, $customfield2, $sid_value);\n $html .= '</table>';\n return $html;\n }", "title": "" } ]
[ { "docid": "a3d6353b4992e67bdbd7fdfdd33f15e0", "score": "0.6744062", "text": "public function show_all_sub_category(){\n $sql = \"SELECT tbl_subCategory.*,tbl_category.category_title\n FROM tbl_subCategory\n INNER jOIN tbl_category\n ON tbl_subCategory.category_id = tbl_category.category_id\n ORDER BY tbl_subCategory.sb_cat_id DESC;\n \";\n\n $query_result = mysqli_query(Database::dbConnection(),$sql);\n\n if($query_result){\n\n return $query_result;\n }else{\n die(\"Query Problem\".mysqli_error(Database::dbConnection()));\n }\n }", "title": "" }, { "docid": "cbc1f67936d7a84024c883d33c739ebd", "score": "0.66860956", "text": "public function action_showSubCats(){\n $str = file_get_contents(MODPATH.'board/data/subcategories.json');\n $var = json_decode($str);\n echo Debug::vars( $var );\n }", "title": "" }, { "docid": "e2729ccabe9919c71842e72d7a407476", "score": "0.6478501", "text": "function printCategories($activeCat = 0)\n {\n global $sids, $PMF_LANG, $PMF_CONF;\n $open = 0;\n $output = \"\";\n if ($this->height() > 0) {\n\n for ($y = 0 ;$y < $this->height(); $y = $this->getNextLineTree($y)) {\n\n list($symbol, $categoryName, $parent, $description) = $this->getLineDisplay($y);\n\n if ($activeCat == $parent) {\n $a = \" class=\\\"active\\\"\";\n } else {\n $a = \"\";\n }\n\n $level = $this->treeTab[$y][\"level\"];\n $leveldiff = $open - $level;\n\n if ($leveldiff > 1) {\n for ($i = $leveldiff; $i > 1; $i--) {\n $output .= \"</li>\\n\".str_repeat(\"\\t\", $level + 2).\"</ul>\\n\".str_repeat(\"\\t\", $level + 1).\"</li>\\n\";\n }\n }\n\n if ($level < $open) {\n if (($level - $open) == -1) {\n $output .= '</li>';\n }\n $output .= \"\\n\".str_repeat(\"\\t\", $level + 2).\"</ul>\\n\".str_repeat(\"\\t\", $level + 1).\"</li>\\n\";\n } elseif ($level == $open && $y != 0) {\n $output .= \"</li>\\n\";\n }\n\n if ($level > $open) {\n $output .= \"\\n\".str_repeat(\"\\t\", $level +1 ).\"<ul class=\\\"subcat\\\">\\n\".str_repeat(\"\\t\", $level + 1).\"<li>\";\n } else {\n $output .= str_repeat(\"\\t\", $this->treeTab[$y][\"level\"] + 1).\"<li>\";\n }\n\n if (isset($this->treeTab[$y]['symbol']) && $this->treeTab[$y]['symbol'] == 'plus') {\n if (isset($PMF_CONF['mod_rewrite']) && $PMF_CONF['mod_rewrite'] == \"TRUE\") {\n \t\t $output .= \"<a title=\\\"\".$description.\"\\\" href=\\\"category\".$parent.\".html\\\"\".$a.\">\".$categoryName.\" <img src=\\\"images/more.gif\\\" width=\\\"11\\\" height=\\\"11\\\" alt=\\\"\".$categoryName.\"\\\" style=\\\"border: none; vertical-align: middle;\\\" /></a>\";\n } else {\n $output .= \"<a title=\\\"\".$description.\"\\\" href=\\\"\".$_SERVER[\"PHP_SELF\"].\"?\".$sids.\"action=show&amp;cat=\".$parent.\"\\\"\".$a.\">\".$categoryName.\" <img src=\\\"images/more.gif\\\" width=\\\"11\\\" height=\\\"11\\\" alt=\\\"\".$categoryName.\"\\\" style=\\\"border: none; vertical-align: middle;\\\" /></a>\";\n }\n } else {\n \t\tif ($this->treeTab[$y][\"symbol\"] == \"minus\") {\n if (isset($PMF_CONF['mod_rewrite']) && $PMF_CONF['mod_rewrite'] == \"TRUE\") {\n $output .= \"<a title=\\\"\".$description.\"\\\" href=\\\"category\".$this->treeTab[$y][\"parent_id\"].\".html\\\"\".$a.\">\".$categoryName.\"</a>\";\n } else {\n \t\t\t $output .= \"<a title=\\\"\".$description.\"\\\" href=\\\"\".$_SERVER[\"PHP_SELF\"].\"?\".$sids.\"action=show&amp;cat=\".$this->treeTab[$y][\"parent_id\"].\"\\\"\".$a.\">\".$categoryName.\"</a>\";\n }\n } else {\n \t\t\tif (isset($PMF_CONF['mod_rewrite']) && $PMF_CONF['mod_rewrite'] == \"TRUE\") {\n $output .= \"<a title=\\\"\".$description.\"\\\" href=\\\"category\".$parent.\".html\\\"\".$a.\">\".$categoryName.\"</a>\";\n } else {\n \t\t\t $output .= \"<a title=\\\"\".$description.\"\\\" href=\\\"\".$_SERVER[\"PHP_SELF\"].\"?\".$sids.\"action=show&amp;cat=\".$parent.\"\\\"\".$a.\">\".$categoryName.\"</a>\";\n }\n }\n }\n $open = $level;\n }\n if ($open > 0) {\n $output .= str_repeat(\"</li>\\n\\t</ul>\\n\\t\", $open);\n }\n $output .= \"</li>\";\n return $output;\n\n } else {\n $output = '<li><a href=\"#\">'.$PMF_LANG['no_cats'].'</a></li>';\n }\n return $output;\n }", "title": "" }, { "docid": "90d42827f9cdc5c369297af81aac1648", "score": "0.64691556", "text": "function review_columns( $column, $post_id ) {\n switch ( $column ) {\n\n\tcase \"review_category\": \n\t $terms = wp_get_post_terms($post_id,'review_category'); \n\t\tforeach ($terms as $term) { \n\t\t\t\techo $term->name .\"<br> \"; \n\t\t\t}\n\t\tbreak; \n }\n}", "title": "" }, { "docid": "c623be9e1bc6f5637fb73f89797065a5", "score": "0.643965", "text": "public function subcategoryAction() {\n\n $category_id_temp = Zend_Controller_Front::getInstance()->getRequest()->getParam('category_id_temp');\n $row = Engine_Api::_()->getDbTable('categories', 'sitepage')->getCategory($category_id_temp);\n if (!empty($row->category_name)) {\n $categoryname = Engine_Api::_()->getDbTable('categories', 'sitepage')->getCategorySlug($row->category_name);\n }\n $data = array();\n $this->view->subcats = $data;\n if (empty($category_id_temp))\n return;\n $results = Engine_Api::_()->getDbTable('categories', 'sitepage')->getSubCategories($category_id_temp);\n foreach ($results as $value) {\n $content_array = array();\n $content_array['category_name'] = Zend_Registry::get('Zend_Translate')->_($value->category_name);\n $content_array['category_id'] = $value->category_id;\n $content_array['categoryname_temp'] = $categoryname;\n $data[] = $content_array;\n }\n $this->view->subcats = $data;\n }", "title": "" }, { "docid": "b562462bfbcaffd523dc57de6637b664", "score": "0.6391799", "text": "public function subcategoryAction() {\n\n $category_id_temp = Zend_Controller_Front::getInstance()->getRequest()->getParam('category_id_temp');\n $row = Engine_Api::_()->getDbTable('categories', 'sitegroup')->getCategory($category_id_temp);\n if (!empty($row->category_name)) {\n $categoryname = Engine_Api::_()->getDbTable('categories', 'sitegroup')->getCategorySlug($row->category_name);\n }\n $data = array();\n $this->view->subcats = $data;\n if (empty($category_id_temp))\n return;\n $results = Engine_Api::_()->getDbTable('categories', 'sitegroup')->getSubCategories($category_id_temp);\n foreach ($results as $value) {\n $content_array = array();\n $content_array['category_name'] = Zend_Registry::get('Zend_Translate')->_($value->category_name);\n $content_array['category_id'] = $value->category_id;\n $content_array['categoryname_temp'] = $categoryname;\n $data[] = $content_array;\n }\n $this->view->subcats = $data;\n }", "title": "" }, { "docid": "576dddd05f38b515b1706a14cbff01f4", "score": "0.6334621", "text": "public function subcategory(){\n\n\t\t$array\t\t= \t\tarray(\n\t\t\t\"is_deleted\"\t=> \t0,\n\t\t\t\"is_active\"\t\t=> \t1,\n\t\t\t\t\t\t\t\t);\n\t\t$category \t= \t\tCategory::where($array)->get();\n\t\t$limit \t= \t\t100;\n\t\t$subcat \t= \t\tSubCategory::where($array)->paginate($limit);\n\t\treturn view('admin/subcategory',['subcat' \t=> \t$subcat,'category'\t=> \t$category,'limit'\t=> \t$limit]);\n\n\t}", "title": "" }, { "docid": "27de3e38510f78d06ab999b794a08e1e", "score": "0.62605995", "text": "function recipe_columns( $column, $post_id ) {\n switch ( $column ) {\n\n\tcase \"recipe_category\": \n\t $terms = wp_get_post_terms($post_id,'recipe_category'); \n\t\tforeach ($terms as $term) { \n\t\t\t\techo $term->name .\"<br> \"; \n\t\t\t}\n\t\tbreak; \n }\n}", "title": "" }, { "docid": "c8b5d6a6c9b5e9e0f4fc44b6d78a16c6", "score": "0.6254907", "text": "public function show(SubCategories $sub_category)\n {\n //\n }", "title": "" }, { "docid": "46a2bd8e7b1c21ca2bbe733bccd7b2cc", "score": "0.6250232", "text": "function craft_columns( $column, $post_id ) {\n switch ( $column ) {\n\t\n\tcase \"craft_category\": \n\t $terms = wp_get_post_terms($post_id,'craft_category'); \n\t\tforeach ($terms as $term) { \n\t\t\t\techo $term->name .\"<br> \"; \n\t\t\t}\n\t\tbreak; \n }\n}", "title": "" }, { "docid": "ee0967306bd8e6ae2650d2945a26459d", "score": "0.62387997", "text": "function _hrb_output_subcategories() {\n\n\t$category = (int) $_POST['category'];\n\t$selected = (int) $_POST['selected'];\n\n\t$args = array(\n\t\t'hide_empty' => false,\n\t\t'parent' => $category,\n\t);\n\n\t$html = html( 'option', array( 'value' => '' ), __( '- Select Sub-Category -', APP_TD ) );\n\n\tforeach( get_terms( HRB_PROJECTS_CATEGORY, $args ) as $sub_cat ) {\n\n\t\t$atts = array(\n\t\t\t'value' => $sub_cat->term_id,\n\t\t);\n\n\t\tif ( $selected == $sub_cat->term_id ) {\n\t\t\t$atts['selected'] = 'selected';\n\t\t}\n\n\t\t$html .= html( 'option', $atts, $sub_cat->name );\n\t}\n\n\techo $html;\n\tdie(1);\n}", "title": "" }, { "docid": "fc3d5cc675d362be7628627551ca974d", "score": "0.6222207", "text": "public function show_sub_category()\n {\n $data['all_cate'] = $this->Category->list_all_sub_category();\n\n $data['subView'] = '/category/sub_category_layout';\n $data['title'] = \"Quản lý danh mục\";\n $data['subData'] = $data;\n $this->load->view('/main/main_layout', $data);\n }", "title": "" }, { "docid": "85cde2ecfb5a4cf715a5857cae21f04e", "score": "0.62059647", "text": "function subcategoryName($dbConn, $sub_cat_id){\n\t\t$sql = \"SELECT * FROM tbl_sub_category WHERE sub_cat_id = '$sub_cat_id'\";\n\t\t$result = dbQuery($dbConn, $sql);\n\t\tif(dbNumRows($result) > 0){\n\t\t\t$row = dbFetchAssoc($result);\n\t\t\techo $row['sub_cat_title'];\n\t\t}\n\t}", "title": "" }, { "docid": "b9c840978a5532f2b902783c73a18769", "score": "0.61756307", "text": "function Show_Subcategories($ret_subcat,$url,$row_cat)\n\t\t{\n\t\t\tglobal $db,$inlineSiteComponents,$Captions_arr,$Settings_arr,$ecom_siteid;\n\t\t\t$heading = $HTML_subcat_header = $HTML_alert = '';\n\t\t\tif(in_array('mod_catimage',$inlineSiteComponents))\n\t\t\t{\n\t\t\t\t$img_support = true;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$img_support = false;\n\t\t\t$custom_id = get_session_var('ecom_login_customer');\n\t\t\t$subcategory_showimagetype = $row_cat['subcategory_showimagetype'];\n\t\t\tif ($db->num_rows($ret_subcat)==1)\n\t\t\t{\n\t\t\t\tif($Captions_arr['CAT_DETAILS']['CATDET_SUBCAT']!='')\n\t\t\t\t{\n\t\t\t\t\t$heading = stripslash_normal($Captions_arr['CAT_DETAILS']['CATDET_SUBCAT']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($Captions_arr['CAT_DETAILS']['CATDET_SUBCATS']!='')\n\t\t\t\t{\n\t\t\t\t\t$heading = stripslash_normal($Captions_arr['CAT_DETAILS']['CATDET_SUBCATS']);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($heading!='')\n\t\t\t{\n\t\t\t\t$HTML_subcat_header = '<div class=\"subcat_header\">'.$heading.'</div>';\n\t\t\t}\t\n\t\t if($_REQUEST['type_cat']=='sub_cat')\n\t\t\t{\n\t\t\t if($_REQUEST['resultcat']=='added')\n\t\t\t {\n\t\t\t $alert = stripslash_normal($Captions_arr['CAT_DETAILS']['ADD_MSG']);\n\t\t\t }\n\t\t\t else if($_REQUEST['resultcat']=='removed')\n\t\t\t {\n\t\t\t $alert = stripslash_normal($Captions_arr['CAT_DETAILS']['REM_MSG']);\n\t\t\t }\n\t\t\t } \n\t\t\tif($alert)\n\t\t\t{\n\t\t\t\techo $HTML_alert = '<div class=\"red_msg\">- '.$alert.' -</div>';\n\t\t\t}\n\t\t\t\techo '<div class=\"category_main_products\">';\n\t\t\t\twhile ($row_subcat = $db->fetch_array($ret_subcat))\n\t\t\t\t{\n\t\t\t\t\t$HTML_subcatname = $HTML_image = $HTML_short_desc = '';\n\t\t\t\t\tif($row_cat['category_showimage']==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t $HTML_image = '';\n\t\t\t\t\t\t\tswitch($subcategory_showimagetype)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcase 'Default':\n\t\t\t\t\t\t\t\t\t$pass_type = 'image_thumbpath';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase 'Icon':\n\t\t\t\t\t\t\t\t\t$pass_type = 'image_iconpath';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase 'Thumb':\n\t\t\t\t\t\t\t\t\t$pass_type = 'image_thumbpath';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase 'Medium':\n\t\t\t\t\t\t\t\t\t$pass_type = 'image_thumbcategorypath';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase 'Big':\n\t\t\t\t\t\t\t\t\t$pass_type = 'image_bigpath';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase 'Extra':\n\t\t\t\t\t\t\t\t\t$pass_type = 'image_extralargepath';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t $pass_type = 'image_thumbpath';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif ($row_subcat['category_showimageofproduct']==0) // Case to check for images directly assigned to category\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Calling the function to get the image to be shown\n\t\t\t\t\t\t\t\t$img_arr = get_imagelist('prodcat',$row_subcat['category_id'],$pass_type,0,0,1);\n\t\t\t\t\t\t\t\tif(count($img_arr))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$HTML_image .= url_root_image($img_arr[0][$pass_type],1);\n\t\t\t\t\t\t\t\t\t$show_noimage = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t$show_noimage = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse // Case of check for the first available image of any of the products under this category\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Calling the function to get the id of products under current category with image assigned to it\n\t\t\t\t\t\t\t\t$cur_prodid = find_AnyProductWithImageUnderCategory($row_subcat['category_id']);\n\t\t\t\t\t\t\t\tif ($cur_prodid)// case if any product with image assigned to it under current category exists\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// Calling the function to get the image to be shown\n\t\t\t\t\t\t\t\t\t$img_arr = get_imagelist('prod',$cur_prodid,$pass_type,0,0,1);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(count($img_arr))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$HTML_image .= url_root_image($img_arr[0][$pass_type],1);\n\t\t\t\t\t\t\t\t\t\t$show_noimage = false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t$show_noimage = true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse// case if no products exists under current category with image assigned to it\n\t\t\t\t\t\t\t\t\t$show_noimage = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// ** Following section makes the decision whether the no image is to be displayed\n\t\t\t\t\t\t\tif ($show_noimage)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// calling the function to get the default no image \n\t\t\t\t\t\t\t\t$no_img = get_noimage('prodcat',$pass_type); \n\t\t\t\t\t\t\t\tif ($no_img)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$HTML_image .= url_site_image('no_small_image.gif',1);\n\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\t$sr = \"'\";\n\t\t\t\t$rp = '&quot;';\t\n\t\t\t\t$pname = str_replace($sr,$rp,stripslash_normal($row_subcat['category_name']));\n\t\t\t?>\n\t\t\t\t\t<div class=\"products_inner\"><a href=\"<?php url_category($row_subcat['category_id'],$row_subcat['category_name'])?>\" title=\"<?php echo stripslash_normal($row_subcat['category_name'])?>\"><img src=\"<?php echo $HTML_image?>\" onmouseover=\"tooltip.show('<?php echo $pname?>');\" onmouseout=\"tooltip.hide();\" /></a></div>\n\t\t\t<?php\n\t\t\t\t}\t\n\t\t\t\techo '<div>';\t\n\t\t}", "title": "" }, { "docid": "9b9d868de60291d391036f57ae0bbbb7", "score": "0.61293805", "text": "function sub_category_listing($dat){\n\t\t $where=\"snax_products_categories.status=1 AND snax_products_sub_categories.status=1\";\n\t\tif(isset($dat[\"cat_id\"]) && $dat[\"cat_id\"]){\n\t\t $where.=\" AND snax_products_categories.cat_id=\".$dat[\"cat_id\"]; \n\t\t}\n\t $strSql=\"SELECT snax_products_categories.title as category_title,snax_products_sub_categories.* FROM `snax_products_categories` inner join snax_products_sub_categories on snax_products_categories.cat_id=snax_products_sub_categories.cat_id\";\n\t if($where)\n\t $strSql= $strSql.\" where \".$where;\n\t $rsSql = mysql_query($strSql);\n\t $data=array();\n\t if(mysql_num_rows($rsSql)>0){\n\t\t while($row=mysql_fetch_object($rsSql)){\n\t\t\t $data[]=$row;\n\t\t }\n\t\t return $data;\t\t\n\t }\n\t else{\n\t\t $res=array();\n\t\t $res[\"status\"]=0;\n\t\t $res[\"message\"]=\"Currently, Sub Category listing is not available\";\t\n\t\t return $res;\t\n\t }\n\t}", "title": "" }, { "docid": "fcf6eab2805c57c03d581d09a0502309", "score": "0.6097156", "text": "public function subCategorias()\n {\n return Auxiliar::subCategoriaArma();\n }", "title": "" }, { "docid": "dba821dd1f4a9f3358c0e639537a52bc", "score": "0.6049495", "text": "function showRecursive()\n {\n $this->initializeTable();\n //start moving through all categories, starting by elements that have no parent elements\n $this->showRecursively(0, 0);\n $this->table .= \"</table>\";\n if (isset($_GET['m']))\n return view(\"showCategories\", [\"table\" => html_entity_decode($this->table), \"message\" => $this->getMessage(), \"response\" => $_GET['m']]);\n else\n return view(\"showCategories\", [\"table\" => html_entity_decode($this->table)]);\n }", "title": "" }, { "docid": "72b4699d6b184b8d9593a8a710dd6621", "score": "0.60494757", "text": "function print_category_info2($category, $depth, $showcourses = false) {\n/// This function is only used by print_whole_category_list() above\n\n global $CFG;\n static $strallowguests, $strrequireskey, $strsummary;\n\n if (empty($strsummary)) {\n $strallowguests = get_string('allowguests');\n $strrequireskey = get_string('requireskey');\n $strsummary = get_string('summary');\n }\n\n $catlinkcss = $category->visible ? '' : ' class=\"dimmed\" ';\n\n static $coursecount = null;\n if (null === $coursecount) {\n // only need to check this once\n $coursecount = count_records('course') <= FRONTPAGECOURSELIMIT;\n }\n\n if ($showcourses and $coursecount) {\n $catimage = '<img src=\"'.$CFG->pixpath.'/i/course.gif\" alt=\"\" />';\n } else {\n $catimage = \"&nbsp;\";\n }\n\n echo \"\\n\\n\".'<table class=\"categorylist\">';\n\n $courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.guest,c.cost,c.currency');\n if ($showcourses and $coursecount) {\n\n echo '<tr>';\n\n if ($depth) {\n $indent = $depth*30;\n $rows = count($courses) + 1;\n echo '<td class=\"category indentation\" rowspan=\"'.$rows.'\" valign=\"top\">';\n print_spacer(10, $indent);\n echo '</td>';\n }\n\n echo '<td valign=\"top\" class=\"category image\">'.$catimage.'</td>';\n echo '<td valign=\"top\" class=\"category name\">';\n echo '<a '.$catlinkcss.' href=\"'.$CFG->wwwroot.'/course/category.php?id='.$category->id.'\">'. format_string($category->name).'</a>';\n echo '</td>';\n echo '<td class=\"category info\">&nbsp;</td>';\n echo '</tr>';\n\n // does the depth exceed maxcategorydepth\n // maxcategorydepth == 0 or unset meant no limit\n\n $limit = !(isset($CFG->maxcategorydepth) && ($depth >= $CFG->maxcategorydepth-1));\n\n if ($courses && ($limit || $CFG->maxcategorydepth == 0)) {\n foreach ($courses as $course) {\n $linkcss = $course->visible ? '' : ' class=\"dimmed\" ';\n echo '<tr><td valign=\"top\">&nbsp;';\n echo '</td><td valign=\"top\" class=\"course name\">';\n echo '<a '.$linkcss.' href=\"'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'\">'. format_string($course->fullname).'</a>';\n echo '</td><td align=\"right\" valign=\"top\" class=\"course info\">';\n if ($course->guest ) {\n echo '<a title=\"'.$strallowguests.'\" href=\"'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'\">';\n echo '<img alt=\"'.$strallowguests.'\" src=\"'.$CFG->pixpath.'/i/guest.gif\" /></a>';\n } else {\n echo '<img alt=\"\" style=\"width:18px;height:16px;\" src=\"'.$CFG->pixpath.'/spacer.gif\" />';\n }\n if ($course->password) {\n echo '<a title=\"'.$strrequireskey.'\" href=\"'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'\">';\n echo '<img alt=\"'.$strrequireskey.'\" src=\"'.$CFG->pixpath.'/i/key.gif\" /></a>';\n } else {\n echo '<img alt=\"\" style=\"width:18px;height:16px;\" src=\"'.$CFG->pixpath.'/spacer.gif\" />';\n }\n if ($course->summary) {\n link_to_popup_window ('/course/info.php?id='.$course->id, 'courseinfo',\n '<img alt=\"'.$strsummary.'\" src=\"'.$CFG->pixpath.'/i/info.gif\" />',\n 400, 500, $strsummary);\n } else {\n echo '<img alt=\"\" style=\"width:18px;height:16px;\" src=\"'.$CFG->pixpath.'/spacer.gif\" />';\n }\n echo '</td></tr>';\n }\n }\n } else {\n\n echo '<tr>';\n\n if ($depth) {\n $indent = $depth*20;\n echo '<td class=\"category indentation\" valign=\"top\">';\n print_spacer(10, $indent);\n echo '</td>';\n }\n\n echo '<td valign=\"top\" class=\"category name\">';\n echo '<a '.$catlinkcss.' href=\"'.$CFG->wwwroot.'/course/category.php?id='.$category->id.'\">'. format_string($category->name).'</a>';\n echo '</td>';\n echo '<td valign=\"top\" class=\"category number\">';\n if (count($courses)) {\n echo count($courses);\n }\n echo '</td></tr>';\n }\n echo '</table>';\n}", "title": "" }, { "docid": "44f9cf6849b0a7e41189dfbb2704231c", "score": "0.6038081", "text": "public function showcat()\n {\n \n $categories=$this->im->showcat();\n return $categories;\n }", "title": "" }, { "docid": "7a74ffdd6e75a97263f0336478cf08d9", "score": "0.600509", "text": "public function display_main_category($sub_category_id = NULL, $want_id = 0)\n {\n $main_category_label = '';\n $this->db->select('');\n $this->db->from('category');\n $this->db->where('category_id', $sub_category_id);\n $query = $this->db->get();\n if ($query->num_rows() == 1)\n {\n $main_category_id = $query->row()->main_category_id;\n\n $this->db->select('category_id, category_label');\n $this->db->from('category');\n $this->db->where('category_id', $main_category_id);\n $query2 = $this->db->get();\n if ($query2->num_rows() == 1)\n {\n if ($want_id == 1)\n {\n $main_category_label = $query2->row()->category_id;\n }\n else\n {\n $main_category_label = $query2->row()->category_label;\n }\n }\n }\n return $main_category_label;\n }", "title": "" }, { "docid": "980c927e88217823c9ec00bfa6ea756e", "score": "0.6004387", "text": "function definition_columns( $column, $post_id ) {\n switch ( $column ) {\n\n\tcase \"definition_category\": \n\t $terms = wp_get_post_terms($post_id,'definition_category'); \n\t\tforeach ($terms as $term) { \n\t\t\t\techo $term->name .\"<br> \"; \n\t\t\t}\n\t\tbreak; \n }\n}", "title": "" }, { "docid": "e775191d99701d7fcecee9bd68099b90", "score": "0.6002342", "text": "function categories() {\n\tglobal $here, $main, $filtered, $current_file, $id, $c, $x;\n\tforeach ($main as $key => $row) {\n\t\t$cat_list[$key] = $row['category'];\n\t}\n\t$cat_list = array_unique($cat_list);\n\tnatcasesort($cat_list);\n\t$cat_list = array_values($cat_list);\n\tfor ($i=0; $i<count($cat_list); $i++) {\n\t\t$c_link = eregi_replace(\"[^[:alnum:]+]\",\"_\", strtolower($cat_list[$i]));\n\t\t$c_view = eregi_replace(\"[^[:alnum:]+]\",\" \",$cat_list[$i]);\n\t\techo(\"<li><a href=\\\"$here?c=$c_link\\\"\".($c_link==$c ? ' class=\"selected\"' : '').\" title=\\\"$c_view\\\">\".$c_view.\"</a></li>\");\t// you could test $c_link == reset(explode('__',$id)) to show cat of file when $c is not set but it would be an awkward UI choice\n\t}\t\n}", "title": "" }, { "docid": "6e409a3ad8289614bb602e88b46dd642", "score": "0.5995341", "text": "public function subsubcategoryAction() {\n\n $subcategory_id_temp = Zend_Controller_Front::getInstance()->getRequest()->getParam('subcategory_id_temp');\n\n $row = Engine_Api::_()->getDbTable('categories', 'sitepage')->getCategory($subcategory_id_temp);\n if (!empty($row->category_name)) {\n $categoryname = Engine_Api::_()->getDbTable('categories', 'sitepage')->getCategorySlug($row->category_name);\n }\n $data = array();\n $this->view->subsubcats = $data;\n if (empty($subcategory_id_temp))\n return;\n\n $results = Engine_Api::_()->getDbTable('categories', 'sitepage')->getSubCategories($subcategory_id_temp);\n\n foreach ($results as $value) {\n $content_array = array();\n $content_array['category_name'] = Zend_Registry::get('Zend_Translate')->_($value->category_name);\n $content_array['category_id'] = $value->category_id;\n $content_array['categoryname_temp'] = $categoryname;\n $data[] = $content_array;\n }\n $this->view->subsubcats = $data;\n }", "title": "" }, { "docid": "3a0bd7bf6dbaa5f36ec9568250d9ead8", "score": "0.59852237", "text": "function display_category() {\n $category = get_the_category( get_the_ID() , 'category' );\n $multiple_category = '';\n if ($category) {\n foreach ( $category as $term ) {\n $multiple_category .= $term->name . ', ';\n }\n $multiple_category = rtrim( $multiple_category, ', ' );\n echo $multiple_category;\n }\n }", "title": "" }, { "docid": "d575068007a10799ebaf130e7b77c845", "score": "0.5983798", "text": "function show_categories () {\n\tglobal $db;\n\t\n\t$result = $db->query(\"SELECT name, category_id from category\");\n\n if ($result) {\n\t echo \" &bull; \";\n $arrRow = $result->fetchAll(PDO::FETCH_ASSOC);\n\t foreach($arrRow as $category){\n\t\techo \"<a href=\\\"javascript:filter_category('{$category['category_id']}', '{$category['name']}');\\\">{$category['name']}</a> &bull; \";\n\t }\n\t}\n}", "title": "" }, { "docid": "a347c37dbf8d6df726e70db2b0469238", "score": "0.5966002", "text": "function story_columns( $column, $post_id ) {\n switch ( $column ) {\n case \"order\":\n echo get_post_meta( $post_id, '_simple_fields_fieldGroupID_9_fieldID_1_numInSet_0', true);\n break;\n\n\tcase \"story_category\": \n\t $terms = wp_get_post_terms($post_id,'story_category'); \n\t\tforeach ($terms as $term) { \n\t\t\t\techo $term->name .\"<br> \"; \n\t\t\t}\n\t\tbreak; \n }\n}", "title": "" }, { "docid": "3b779c5df61ead270a18593bcb9f9444", "score": "0.5951486", "text": "public function show(SubCategory $subCategory)\n {\n //\n }", "title": "" }, { "docid": "3b779c5df61ead270a18593bcb9f9444", "score": "0.5951486", "text": "public function show(SubCategory $subCategory)\n {\n //\n }", "title": "" }, { "docid": "3b779c5df61ead270a18593bcb9f9444", "score": "0.5951486", "text": "public function show(SubCategory $subCategory)\n {\n //\n }", "title": "" }, { "docid": "3b779c5df61ead270a18593bcb9f9444", "score": "0.5951486", "text": "public function show(SubCategory $subCategory)\n {\n //\n }", "title": "" }, { "docid": "b3e5c2f043d9585c9a80d5f1867a3dfa", "score": "0.59490883", "text": "public function subCat()\n\t\t{\n\t\t\t$aux = $this->uri->segment(2);\n\t\t\t$aux2 = explode(\"-\", $aux);\n\t\t\t$id_categoria = $aux2[(count($aux2) - 1)];\n\n\t\t\t$dataPrincipal = array();\n\t\t\t$dataPrincipal['categorias'] = $this->Inicio_model->getCategorias(6);\n\t\t\t$dataPrincipal['id_categoria_current'] = $id_categoria;\n\t\t\t$dataPrincipal['bannerslateral'] = $this->Inicio_model->getBannersLateral();\n\t\t\t$dataPrincipal['nomCategoria'] = $this->Productos_model->getNombreCategoria($id_categoria);\n\t\t\t$dataPrincipal['prueba'] = $id_categoria;\n\t\t\t$seccion = 'productos';\n\t\t\t$dataPrincipal['seccion'] = $seccion;\n\t\t\t$dataPrincipal['titulo'] = 'producto';\n\t\t\t$dataPrincipal['texto'] = \"\";\n\t\t\t$dataPrincipal['cuerpo'] = 'subcat_view';\n\t\t\t$dataPrincipal['textosweb'] = $this->Generales_model->getTextosWeb($seccion);\n\t\t\t$limite = 20;\n\t\t\t$dataPrincipal['subcategorias'] = $this->Productos_model->getSubcat($id_categoria, $limite);\n\n\t\t\t$data = array();\n\t\t\t$data['title'] = 'producto';\n\t\t\t$data['keywords'] = 'producto';\n\t\t\t$data['description'] = 'producto';\n\t\t\t$dataPrincipal['header'] = $this->load->view('frontend/includes/header_view', $data, true);\n\t\t\t$dataPrincipal['footer'] = $this->load->view('frontend/includes/footer_view', $data, true);\n\t\t\t$this->load->view(\"frontend/includes/template\", $dataPrincipal);\n\t\t}", "title": "" }, { "docid": "57188931db02fa34901109f0cb883c06", "score": "0.59387267", "text": "static public function ctrShowSubcategories($item, $v)\n {\n //declare the table we want to work with\n $table = \"subcategories\";\n //function witch executes the SQL sentence to the db\n $res = ProductsModel::mdlShowSubCategories($table, $item, $v);\n return $res;\n }", "title": "" }, { "docid": "dfed7d893512a89cc92a934bd86f48fc", "score": "0.59257954", "text": "public function subsubcategoryAction() {\n\n $subcategory_id_temp = Zend_Controller_Front::getInstance()->getRequest()->getParam('subcategory_id_temp');\n\n $row = Engine_Api::_()->getDbTable('categories', 'sitegroup')->getCategory($subcategory_id_temp);\n if (!empty($row->category_name)) {\n $categoryname = Engine_Api::_()->getDbTable('categories', 'sitegroup')->getCategorySlug($row->category_name);\n }\n $data = array();\n $this->view->subsubcats = $data;\n if (empty($subcategory_id_temp))\n return;\n\n $results = Engine_Api::_()->getDbTable('categories', 'sitegroup')->getSubCategories($subcategory_id_temp);\n\n foreach ($results as $value) {\n $content_array = array();\n $content_array['category_name'] = Zend_Registry::get('Zend_Translate')->_($value->category_name);\n $content_array['category_id'] = $value->category_id;\n $content_array['categoryname_temp'] = $categoryname;\n $data[] = $content_array;\n }\n $this->view->subsubcats = $data;\n }", "title": "" }, { "docid": "9faa4557a56cae9547fcbb5b26533ad9", "score": "0.59249496", "text": "public function show_all_child_category(){\n\n $sql = \"SELECT tbl_child_category.*,tbl_category.category_title,tbl_subCategory.sb_cat_title\n FROM tbl_child_category\n INNER JOIN tbl_category\n ON tbl_child_category.category_id = tbl_category.category_id\n INNER JOIN tbl_subCategory\n ON tbl_child_category.sb_cat_id = tbl_subCategory.sb_cat_id\n ORDER BY tbl_child_category.child_cat_id DESC\";\n\n $query_result = mysqli_query(Database::dbConnection(),$sql);\n if($query_result){\n return $query_result;\n }else{\n die(\"Query Problem\".mysqli_error(Database::dbConnection()));\n }\n\n\n }", "title": "" }, { "docid": "42ff9785694215156b088d7661a01aed", "score": "0.5913248", "text": "public function CategoriesTable()\n\t{\tob_start();\n\t\techo '<table><tr class=\"newlink\"><th colspan=\"2\"><a onclick=\"CourseCatPopUp(', $this->id, ');\">Add topic</a></th></tr><tr><th>Topics added</th><th>Actions</th></tr>';\n\t\tforeach ($this->cats as $cat_row)\n\t\t{\t$cat = new AdminCourseCategory($cat_row);\n\t\t\techo '<tr><td class=\"pagetitle\">', $cat->CascadedName(), '</td><td><a href=\"coursecatedit.php?id=', $cat->id, '\">edit</a>&nbsp;|&nbsp;<a onclick=\"CourseCatRemove(', $this->id, ',', $cat->id, ');\">remove from theme</a></td></tr>';\n\t\t}\n\t\techo '</table>';\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "3c0ce799d1ee710a233176e67e03b98e", "score": "0.59028184", "text": "function getSubCategories($catLevel, $phrase) {\n\t\t// $sqlStmt .= \"where kw_index @@ to_tsquery('english', '\" . str_replace(\" \", \" & \", $phrase) . \"') \";\n\t\t// $sqlStmt .= \"AND keywords ILIKE '%$phrase%' \";\n\t\t// $sqlStmt .= \"order by full_category \";\n\t\t// $sqlStmt .= \";\";\n\t\t\n\n\t\t$sqlStmt = \"select \";\n\t\t$sqlStmt .= \" id_subcategory, \";\n\t\t$sqlStmt .= \" kw_count, \";\n\t\t$sqlStmt .= \" full_category, \";\n\t\t// $sqlStmt .= \" ts_rank_cd(kw_index, fsQuery, 8) as freq_rank \";\n\t\t$sqlStmt .= \" iCountInString(keywords, E'$phrase') as freq_rank \";\n\t\t\n\t\t$sqlStmt .= \"from \";\n\t\t$sqlStmt .= \" cat_key_subcategory, \";\n\t\t$sqlStmt .= \" to_tsquery('english', '\" . str_replace ( \" \", \" & \", $phrase ) . \"') as fsQuery \";\n\t\t\n\t\t$sqlStmt .= \"where \";\n\t\t$sqlStmt .= \" kw_index @@ fsQuery AND \";\n\t\t$sqlStmt .= \" keywords ILIKE '%$phrase%' \";\n\t\t\n\t\t$sqlStmt .= \"order by \";\n\t\t$sqlStmt .= \" freq_rank desc;\";\n\t\t\n\t\techo \"sqlStmt: $sqlStmt<BR>\";\n\t\t//echo \"<span style=\\\"font-size:small\\\">Step 1 - Choose Relevant Categories: <span style=\\\"color:red\\\"><B>$sqlStmt</B></span></span><BR>\";\n\t\t\n\n\t\t$result = My_Classes_iepFunctionGeneral::sqlExecToArray ( $sqlStmt, $errorId, $errorMsg, true, false );\n\t\tif (false === $result) {\n\t\t\techo \"false<BR>\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif (count ( $result ) > 0) {\n\t\t\t\t\n\t\t\t\treturn $result;\n\t\t\t\t\n\t\t\t//return $this->rowsToList($result, 'category');\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "dca36a9b4327d1b2e4ab35f84d08aa2a", "score": "0.58751243", "text": "function print_category_option($category, $selcat, $depth=-1) {\n\nglobal $CFG, $USER, $OUTPUT;\n\n static $str = NULL;\n\n if (!empty($category)) {\n\n if (!isset($category->context)) {\n $category->context = context_coursecat::instance($category->id);\n }\n\n\t\t$indent = '';\n\t\t$selected = ($category->id == $selcat ? ' selected=\"selected\" ' : '');\n\t\t\n for ($i=0; $i<$depth;$i++) {\n $indent .= '&nbsp;&nbsp;&nbsp;';\n }\n\n echo '<option '.$selected.' value=\"'.$category->id.'\" >'.$indent.\n format_string($category->name, true, array('context' => $category->context)).'</option>';\n\n } else {\n $category = new stdClass();\n $category->id = '0';\n }\n\n if ($categories = get_categories($category->id)) { // Print all the children recursively\n $countcats = count($categories);\n $count = 0;\n $first = true;\n $last = false;\n foreach ($categories as $cat) {\n $count++;\n if ($count == $countcats) {\n $last = true;\n }\n $up = $first ? false : true;\n $down = $last ? false : true;\n $first = false;\n\n print_category_option($cat, $selcat, $depth+1);\n }\n }\n\n}", "title": "" }, { "docid": "916fd4020f3c2d47465633fa101cf4af", "score": "0.58227134", "text": "function recursively_print_categories($categories, $start = null, $end = null) {\n global $CFG;\n\n foreach($categories as $id => $category) {\n // render the table for the current category ?>\n <li>\n <?php\n // shorten category name to display it better\n $full_cat_name = $category['name'];\n $cat_name = $full_cat_name;\n\n if(!empty($category['children'])) { ?>\n <img id=\"img<?php echo $id; ?>\" alt=\"nav\" src=\"<?php echo $CFG->wwwroot; ?>/theme/standard/pix/t/icon-toggle-open.png\" class=\"nav\" onclick=\"javascript: toggle_category_menu('<?php echo $id; ?>');\" /> \n <?php\n } else { ?>\n <!--<img id=\"img<?php echo $id; ?>\" alt=\"empty_nav\" src=\"<?php echo $CFG->wwwroot; ?>/theme/conel/pix/t/switch_square.gif\" />-->\n <?php\n } \n\n $cat_id = (isset($_GET['category_id']) && $_GET['category_id'] != '') ? $_GET['category_id'] : '';\n if ($cat_id == $id) {\n $active_class = ' class=\"active\"';\n } else {\n $active_class = '';\n }\n // Has Children\n if (!empty($category['children'])) {\n ?>\n <a href=\"#\" onclick=\"javascript: toggle_category_menu('<?php echo $id; ?>');\"<?php echo $active_class; ?>><?php echo $cat_name; ?></a> \n <a href=\"<?php echo $CFG->wwwroot; ?>/blocks/lpr/actions/reports.php?category_id=<?php echo $id; ?>&amp;start_date=<?php echo $start; ?>&amp;end_date=<?php echo $end; ?>\"><img src=\"<?php echo $CFG->wwwroot; ?>/blocks/lpr/views/images/icon-view2.png\" width=\"16\" height=\"16\" title=\"Load '<?php echo $full_cat_name; ?>'\" /></a>\n <?php\n } else {\n // Barren\n ?>\n <a href=\"<?php echo $CFG->wwwroot; ?>/blocks/lpr/actions/reports.php?category_id=<?php echo $id; ?>&amp;start_date=<?php echo $start; ?>&amp;end_date=<?php echo $end; ?>\"<?php echo $active_class; ?>><?php echo $cat_name; ?></a>\n <?php\n }\n ?>\n <ul id='cat<?php echo $id; ?>' class='cat_container'>\n <?php\n if(!empty($category['children'])) {\n recursively_print_categories($category['children'], $start, $end);\n } ?>\n </ul>\n </li>\n <?php\n }\n}", "title": "" }, { "docid": "b2f1a2d0cf75647f89d58a02e74f4c11", "score": "0.5813064", "text": "function outputCategoryPages()\n \t{\n \t\t// remove root directory\n \t\t$catalog_tree = modApiFunc(\"Catalog\", \"getSubcategoriesFullListWithParent\", 1);\n\n \t\tforeach($catalog_tree as $key => $cat)\n \t\t{\n \t\t\t$id = prepareHTMLDisplay($cat['id']);\n \t\t\t$catName = prepareHTMLDisplay($cat['name']);\n \t\t\t$result .= \"<label><span class='checkBox'>\n <input type='checkbox' name='CatPageList[\". $id .\"]' value='\".$catName.\"' class='form-control'/></span>\"\n .$catName.\"</label>\";\n\n \t\t}//foreach loop\n \t\treturn $result;\n \t}", "title": "" }, { "docid": "af2bba6b56a7124c5bfad4d59605a8bf", "score": "0.58048666", "text": "function showIterative()\n {\n $this->initializeTable();\n //start moving through all categories, starting by elements that have no parent elements\n $this->showIteratively();\n $this->table .= \"</table>\";\n if (isset($_GET['m']))\n return view(\"showCategories\", [\"table\" => html_entity_decode($this->table), \"message\" => $this->getMessage(), \"response\" => $_GET['m']]);\n else\n return view(\"showCategories\", [\"table\" => html_entity_decode($this->table)]);\n }", "title": "" }, { "docid": "b2ad24511eeb46eeaf7741392b254800", "score": "0.57913935", "text": "function printCat() {\r\n $database = connectDB();\r\n $query = \"SELECT cat2 FROM surveyresults\";\r\n $result = mysqli_query($database, $query);\r\n while ($row = mysqli_fetch_array($result)) {\r\n if ($row[0] != null) {\r\n print_r($row[0]);\r\n echo \" | \";\r\n }\r\n }\r\n mysqli_close($database);\r\n }", "title": "" }, { "docid": "a2a8d328f6ee5d5e0d1481b8add9599f", "score": "0.57852906", "text": "function subcategories($cat_name){\nglobal $conn;\n \n $query = (\"SELECT * FROM Categories WHERE parent_cat = ?\");\n $stm = $conn->prepare($query);\n $stm->execute(array(category()));\n $parent = $stm->fetchAll();\n \n $links = parent();\n \n $links .= \"<ul>\";\n foreach ($parent as $row){\n $links.= \"<li><a href='category.php?cat=\".$row['cat_id'].\"'>\".$row['cat_name'].\"</a></li>\";\n }\n \n $links .= \"</ul>\";\n \n $links .= \"<hr><li><a href='category.php?cat=0'>Back</a></li>\";\n\n echo $links;\n}", "title": "" }, { "docid": "52591cab7e85b81919f0e581df45bf74", "score": "0.57840914", "text": "function Get_UPCP_SubCategories() {\n\t$Path = ABSPATH . 'wp-load.php';\n\tinclude_once($Path);\n\n\tglobal $wpdb;\n\tglobal $subcategories_table_name;\n\t\n\t$SubCategories = $wpdb->get_results($wpdb->prepare(\"SELECT SubCategory_ID, SubCategory_Name FROM $subcategories_table_name WHERE Category_ID=%d\", sanitize_text_field($_POST['CatID'])));\n\tforeach ($SubCategories as $SubCategory) {$Response_Array[] = $SubCategory->SubCategory_ID; $Response_Array[] = $SubCategory->SubCategory_Name;}\n\tif (is_array($Response_Array)) {$Response = implode(\",\", $Response_Array);}\n\telse {$Response = \"\";}\n\techo $Response;\n}", "title": "" }, { "docid": "b00764d09268fd685a5ca76a2a6bf3ac", "score": "0.5775116", "text": "public function getSub_categories_title()\n {\n return $this->sub_categories_title;\n }", "title": "" }, { "docid": "3a3c2356254f565e60cd44e5c2439998", "score": "0.57511824", "text": "function b_bmcart_category_show()\r\n{\r\n\t$category_id = isset($_SESSION['bmcart']['category_id']) ? $_SESSION['bmcart']['category_id'] : 0;\r\n\t$handler = xoops_getmodulehandler(\"category\", \"bmcart\");\r\n\t$myObject = $handler->get($category_id);\r\n\tif ($myObject) {\r\n\t\t$mListData = array(\r\n\t\t\t\"parent_id\" => $myObject->getVar(\"parent_id\"),\r\n\t\t\t\"category_id\" => $myObject->getVar(\"category_id\"),\r\n\t\t\t\"category_name\" => $myObject->getVar(\"category_name\")\r\n\t\t);\r\n\t} else {\r\n\t\t$mListData = array(\r\n\t\t\t\"parent_id\" => 0,\r\n\t\t\t\"category_id\" => 0,\r\n\t\t\t\"category_name\" => \"Top\"\r\n\t\t);\r\n\r\n\t}\r\n\t$criteria = new Criteria('parent_id', $category_id);\r\n\t$objects = $handler->getObjects($criteria);\r\n\tforeach ($objects as $object) {\r\n\t\t$mListData['child'][] = array(\r\n\t\t\t\"parent_id\" => $object->getVar(\"parent_id\"),\r\n\t\t\t\"category_id\" => $object->getVar(\"category_id\"),\r\n\t\t\t\"category_name\" => $object->getVar(\"category_name\")\r\n\t\t);\r\n\t}\r\n\t$block = array();\r\n\t$block['categoryList'] = $mListData;\r\n\treturn $block;\r\n}", "title": "" }, { "docid": "5ade8a030d121bf2f0c17e0485ce4014", "score": "0.575038", "text": "function displayCategories()\n{\n\t$result = mysql_query(\"SELECT categoryName FROM categories\");\n\tif (!$result) {\n\t\t$message = 'Invalid query: ' . mysql_error() . \"\\n\";\n\t\t$message .= 'Whole query: ' . $query;\n\t\tdie($message);\n\t}\n\n\treturn $result;\n\t//while ($row = mysql_fetch_assoc($result)) {\n\t//\techo $row['categoryName'];\n\t\t//remove echo and replace it with return so the other people can use this}\n\t\t\n\t\n}", "title": "" }, { "docid": "c167e1315a3a9b0b9228955261271e4c", "score": "0.57416534", "text": "function displayCategories() { \n global $dbConn;\n \n $sql = \"SELECT * FROM fs_category ORDER BY catName\";\n $stmt = $dbConn->prepare($sql);\n $stmt->execute();\n $records = $stmt->fetchAll(PDO::FETCH_ASSOC);\n \n foreach ($records as $record) {\n echo \"<option value='\".$record['catId'].\"'>\" .$record['catName']. \"</option>\";\n }\n }", "title": "" }, { "docid": "5c320ddbb9b2c2fea1587ef06a26f23f", "score": "0.5731398", "text": "private function view_subcategory($subcategory) {\n\t\t$itemsubcategory = $this->item_subcategory_model->select_by_urlname($subcategory);\n\n\n\t\t$this->headdata['title'] = 'Category - GrowPartPicker';\n\t\t$this->titledata['heading'] = 'Category';\n\t\t$this->contentdata['view'] = 'views/content/products/view_category.php';\n\t\t$this->contentdata['message'] = $itemsubcategory;\n\t\t$this->contentdata['subcategory'] = $subcategory;\n\t\t\n\t\t// View\n\t\t$this->load->two_column(\n\t\t\t$this->headdata,\n\t\t\t$this->headerdata,\n\t\t\t$this->navdata,\n\t\t\t$this->titledata,\n\t\t\t$this->sidebardata,\n\t\t\t$this->contentdata\n\t\t);\n }", "title": "" }, { "docid": "8efa7f6ff5b6247a878dda662a8de1e1", "score": "0.5717365", "text": "public function view_product_by_category($subcategory_id)\n {\n }", "title": "" }, { "docid": "eb5fa5d4c5e756cfcd3f0094014a1825", "score": "0.57157546", "text": "function resource_columns( $column, $post_id ) {\n switch ( $column ) {\n\n\tcase \"resource_category\": \n\t $terms = wp_get_post_terms($post_id,'resource_category'); \n\t\tforeach ($terms as $term) { \n\t\t\t\techo $term->name .\"<br> \"; \n\t\t\t}\n\t\tbreak; \n\n\tcase \"aiotitle\":\n\t\techo get_post_meta( $post_id, '_aioseop_title', true);\n\t\tbreak; \n\n\tcase \"aiodesc\":\n\t\techo get_post_meta( $post_id, '_aioseop_description', true);\n\t\tbreak; \n }\n}", "title": "" }, { "docid": "290c4eeba90b6036319a6d10e2de169e", "score": "0.5714922", "text": "function show_categories($sub_action, $id){\r\n global $sql, $rs, $ns, $aj;\r\n $text = \"<div style='border : solid 1px #000; padding : 4px; width :auto; height : 200px; overflow : auto; '>\\n\";\r\n if($category_total = $sql -> db_Select(\"news_category\")){\r\n $text .= \"<table class='fborder' style='width:100%'>\r\n <tr>\r\n <td style='width:5%' class='forumheader2'>&nbsp;</td>\r\n <td style='width:75%' class='forumheader2'>\".NWSLAN_6.\"</td>\r\n <td style='width:20%; text-align:center' class='forumheader2'>\".NWSLAN_41.\"</td>\r\n </tr>\";\r\n while($row = $sql -> db_Fetch()){\r\n extract($row);\r\n\r\n if($category_icon){\r\n $icon = (strstr($category_icon, \"images/\") ? THEME.\"$category_icon\" : e_IMAGE.\"newsicons/$category_icon\");\r\n }\r\n\r\n $text .= \"<tr>\r\n <td style='width:5%; text-align:center' class='forumheader3'><img src='$icon' alt='' style='vertical-align:middle' /></td>\r\n <td style='width:75%' class='forumheader3'>$category_name</td>\r\n <td style='width:20%; text-align:center' class='forumheader3'>\r\n \".$rs -> form_open(\"post\", e_SELF.\"?cat\",\"myform__{$category_id}\",\"\",\"\",\" onsubmit=\\\"return confirm_('cat',$category_id)\\\"\").\"\r\n <div>\".$rs -> form_button(\"button\", \"category_edit_{$category_id}\", NWSLAN_7, \"onclick=\\\"document.location='\".e_SELF.\"?cat.edit.$category_id'\\\"\").\"\r\n \".$rs -> form_button(\"submit\", \"category_delete_{$category_id}\", NWSLAN_8).\"\r\n </div>\".$rs -> form_close().\"\r\n\r\n\r\n </td>\r\n </tr>\\n\";\r\n }\r\n $text .= \"</table>\";\r\n }else{\r\n $text .= \"<div style='text-align:center'><div style='vertical-align:center'>\".NWSLAN_10.\"</div>\";\r\n }\r\n $text .= \"</div>\";\r\n $ns -> tablerender(NWSLAN_51, $text);\r\n\r\n $handle=opendir(e_IMAGE.\"newsicons\");\r\n while ($file = readdir($handle)){\r\n if($file != \".\" && $file != \"..\" && $file != \"/\" && $file != \"null.txt\" && $file != \"CVS\"){\r\n $iconlist[] = $file;\r\n }\r\n }\r\n closedir($handle);\r\n\r\n unset($category_name, $category_icon);\r\n\r\n if($sub_action == \"edit\"){\r\n if($sql -> db_Select(\"news_category\", \"*\", \"category_id='$id' \")){\r\n $row = $sql -> db_Fetch(); extract($row);\r\n }\r\n }\r\n\r\n $text = \"<div style='text-align:center'>\r\n \".$rs -> form_open(\"post\", e_SELF.\"?cat\", \"dataform\").\"\r\n <table class='fborder' style='width:auto'>\r\n <tr>\r\n <td class='forumheader3' style='width:30%'><span class='defaulttext'>\".NWSLAN_52.\"</span></td>\r\n <td class='forumheader3' style='width:70%'>\".$rs -> form_text(\"category_name\", 30, $category_name, 200).\"</td>\r\n </tr>\r\n <tr>\r\n <td class='forumheader3' style='width:30%'><span class='defaulttext'>\".NWSLAN_53.\"</span></td>\r\n <td class='forumheader3' style='width:70%'>\r\n \".$rs -> form_text(\"category_button\", 60, $category_icon, 100).\"\r\n <br />\r\n <input class='button' type ='button' style='cursor:hand' size='30' value='\".NWSLAN_54.\"' onclick='expandit(this)' />\r\n <div style='display:none'>\";\r\n while(list($key, $icon) = each($iconlist)){\r\n $text .= \"<a href='javascript:addtext3(\\\"$icon\\\")'><img src='\".e_IMAGE.\"newsicons/\".$icon.\"' style='border:0' alt='' /></a>\\n \";\r\n }\r\n $text .= \"</div></td>\r\n </tr>\r\n\r\n <tr><td colspan='2' style='text-align:center' class='forumheader'>\";\r\n if($id){\r\n $text .= \"<input class='button' type='submit' name='update_category' value='\".NWSLAN_55.\"' />\r\n \".$rs -> form_button(\"submit\", \"category_clear\", NWSLAN_79).\r\n $rs -> form_hidden(\"category_id\", $id).\"\r\n </td></tr>\";\r\n }else{\r\n $text .= \"<input class='button' type='submit' name='create_category' value='\".NWSLAN_56.\"' /></td></tr>\";\r\n }\r\n $text .= \"</table>\r\n \".$rs -> form_close().\"\r\n </div>\";\r\n\r\n $ns -> tablerender(NWSLAN_56, $text);\r\n }", "title": "" }, { "docid": "d64856109bb09986c7ac3f87f4e55458", "score": "0.5705961", "text": "function report_category_list($category=NULL, $displaylist=NULL, $parentslist=NULL, $depth=-1, $showcourses = true) {\n/// with or without courses included\n global $CFG;\n/*\n // maxcategorydepth == 0 meant no limit\n if (!empty($CFG->maxcategorydepth) && $depth >= $CFG->maxcategorydepth) {\n return;\n }\n*/\n if (!$displaylist) {\n make_categories_list($displaylist, $parentslist);\n }\n\n if ($category) {\n if ($category->visible or has_capability('moodle/category:viewhiddencategories', get_context_instance(CONTEXT_SYSTEM))) {\n //print_category_info2($category, $depth, $showcourses);\n var_dump($category);\n echo '<br/><br/><br/>';\n } else {\n return; // Don't bother printing children of invisible categories\n }\n\n } else {\n $category->id = \"0\";\n }\n\n if ($categories = get_child_categories($category->id)) { // Print all the children recursively\n $countcats = count($categories);\n $count = 0;\n $first = true;\n $last = false;\n foreach ($categories as $cat) {\n $count++;\n if ($count == $countcats) {\n $last = true;\n }\n $up = $first ? false : true;\n $down = $last ? false : true;\n $first = false;\n\n report_category_list($cat, $displaylist, $parentslist, $depth + 1, $showcourses);\n }\n }\n}", "title": "" }, { "docid": "eef50bd74f6c85684432c0d71e1f4d6f", "score": "0.57045764", "text": "function epp_subcats($classes) {\n\n global $cat;\n\n if (is_category()) {\n $this_category = get_category($cat);\n if ($this_category->category_parent) {\n $parent_cat_id = $this_category->category_parent;\n } elseif ($this_category) {\n $parent_cat_id = $this_category->cat_ID;\n }\n $args = array(\n 'orderby' => 'name',\n 'title_li' => '',\n 'child_of' => $parent_cat_id,\n 'echo' => '0'\n );\n $this_cat_id = $this_category->term_id;\n $categories = wp_list_categories($args);\n\n if ($categories !== ('<li>No categories</li>') || ('')) { ?>\n <ul class=\"cat-nav <?php echo $classes ?>\">\n <li <?php if($parent_cat_id == $this_cat_id) { echo('class=\"current-cat\"'); } ?>>\n <a href=\"<?php echo(get_category_link($parent_cat_id)); ?>\">Everything</a>\n </li>\n <?php echo($categories); ?>\n </ul>\n <?php }\n }\n }", "title": "" }, { "docid": "9cd173258292e5b485a4210d8f9f057d", "score": "0.57018757", "text": "function display_showSubcategory_end($parent, $level, &$retArray)\n {\n $sql = \"SELECT * from `tbtt_category` WHERE parent_id='$parent' and cat_status = 1 order by cat_order\";\n $query = $this->db->query($sql);\n $i = 0;\n if (count($query->result_array()) > 0) {\n foreach ($query->result_array() as $row) {\n $sql1 = \"SELECT * from `tbtt_category` WHERE parent_id='\" . $row['cat_id'] . \"' and cat_status = 1 order by cat_order\";\n $query1 = $this->db->query($sql1);\n if (count($query1->result_array()) > 0) {\n foreach ($query1->result_array() as $row1) {\n $object = new StdClass;\n $object->cat_id = $row1['cat_id'];\n $retArray[] = $object;\n }\n } else {\n $object = new StdClass;\n $object->cat_id = $row['cat_id'];\n $retArray[] = $object;\n }\n }\n } else {\n $object = new StdClass;\n $object->cat_id = $parent;\n $retArray[] = $object;\n }\n }", "title": "" }, { "docid": "e0656ba6dbea6943e00e62a80048ad98", "score": "0.56773734", "text": "public function index()\n {\n $datas = Category::with('subcates', 'parent', 'type')->get();\n\n return view('admin.column.index', ['datas' => $datas]);\n }", "title": "" }, { "docid": "26f94d571e138abb4db6e8d827b116d2", "score": "0.5662749", "text": "public function datos_subcategoria_controlador(){\n\n\t\t\treturn subcategoriaModelo::datos_subcategoria_modelo();\n\n\t\t}", "title": "" }, { "docid": "f15f4e8d2caf39b55da4479359a4a49c", "score": "0.56566036", "text": "public function selectAllPublishedSubCategory($cat_id){\n $sql = \"SELECT * FROM tbl_subCategory WHERE publication_status=1 AND category_id='$cat_id'\";\n $run_query = mysqli_query(Database::dbConnection(),$sql);\n\n if($run_query){\n\n return $run_query;\n }else{\n die(\"Query problme\".mysqli_error(Database::dbConnection()));\n }\n }", "title": "" }, { "docid": "314a90380f6eb2e9481ffd59d1092e07", "score": "0.5643961", "text": "private function printCategory($i)\n {\n $this->data['cc'] .= '<h1>';\n $this->data['cc'] .= $this->data['categories'][$i]->name;\n $this->data['cc'] .= '</h1>';\n foreach ($this->data['accessories'][$i] as $value)\n {\n $this->printAccessory($value);\n }\n\n }", "title": "" }, { "docid": "303208417e55d0e622c04e9bdcafc784", "score": "0.5622685", "text": "public function show(AdditionSubCategory $additionSubCategory)\n {\n //\n }", "title": "" }, { "docid": "c94eaa69e5fe1fb4f94df548f529df1f", "score": "0.5615254", "text": "public function getSubCategory()\r\n {\r\n\r\n $query = \"\r\n SELECT\r\n S.Id AS Id,\r\n IFNULL(S.SubCategoryName, '') AS SubCategoryName,\r\n IFNULL(S.CategoryId, '') AS CategoryId,\r\n IFNULL(C.Id, '') AS Id,\r\n IFNULL(C.CategoryName, '') AS CategoryName,\r\n IFNULL(S.IsActive, '') AS IsActive\r\n FROM \" . CommonTables::PRODUCT_SUB_CATEGORY . \" S\r\n INNER JOIN \" . CommonTables::PRODUCT_CATEGORY . \" C ON C.Id=S.Id\r\n ORDER BY SubCategoryName\r\n \";\r\n\r\n\r\n $stmt = $this->pdoConn->prepare($query);\r\n $stmt->execute();\r\n $result = $stmt->fetchAll(PDO::FETCH_OBJ);\r\n if (!empty($result)) {\r\n return $result;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "9924496db312b5f9e4de32bd2eb54ab3", "score": "0.5608479", "text": "function all_cats () {\n $cat_ids = tx_chcforum_category::get_all_cat_ids($this->cObj);\n if (!empty($cat_ids)) {\n $tx_chcforum_tpower = t3lib_div::makeInstanceClassName(\"tx_chcforum_tpower\");\n $tmpl = new $tx_chcforum_tpower($this->tmpl_path.'cat_view.tpl');\n $tmpl->prepare();\n $cat_list_headers = array ('header_title' => tx_chcforum_shared::lang('all_cats_header_title'),\n 'header_thread' => tx_chcforum_shared::lang('all_cats_header_thread'),\n 'header_post' => tx_chcforum_shared::lang('all_cats_header_post'),\n 'header_last' => tx_chcforum_shared::lang('all_cats_header_last'));\n $tmpl->assign($cat_list_headers);\n foreach ($cat_ids as $a_cat_id) { \n $tx_chcforum_category = t3lib_div::makeInstanceClassName(\"tx_chcforum_category\");\n $current_cat = new $tx_chcforum_category($a_cat_id, $this->cObj);\n $cat_header_row = $current_cat->cat_header_row();\n\t\t\t\t\t$cat_header_printed = false;\n $conf_ids = $current_cat->get_confs();\n if ($conf_ids) {\n $at_least_one = false;\n\t\t\t\t\t\tif (!$cat_header_printed) {\n\t\t\t\t\t\t $tmpl->newBlock('cat_list');\n\t\t\t\t\t\t\t$tmpl->newBlock('cat_row');\n\t\t\t\t\t\t\t$tmpl->assign($cat_header_row);\n\t\t\t\t\t\t\t$cat_header_printed = true;\n\t\t\t\t\t\t}\n\n foreach ($conf_ids as $a_conf_id) {\n if ($this->user->can_read_conf($a_conf_id) == true) {\n $tx_chcforum_conference= t3lib_div::makeInstanceClassName(\"tx_chcforum_conference\");\n $current_conf = new $tx_chcforum_conference($a_conf_id, $this->cObj);\n $current_conf->new_cnt = $this->user->check_new($current_conf->uid, 'conf');\n $conf_row = $current_conf->return_conf_row_data();\n $tmpl->newBlock('conf_row');\n $tmpl->assign($conf_row);\n $at_least_one = true;\n }\n \n }\n // no conferences were returned for this cat -- say so.\n if ($at_least_one != true && $this->fconf['hide_empty_cats'] != 1) {\n \t$tmpl->newBlock('conf_row');\n \t$empty_arr['conf_thread_count'] = '&nbsp;';\n \t$empty_arr['conf_post_count'] = '&nbsp;';\n \t$empty_arr['conf_last_post_data'] = '&nbsp;';\n \t$empty_arr['conf_name'] = 'No conferences';\n \t$empty_arr['conf_desc'] = tx_chcforum_shared::lang('all_cats_noconfs');\n \t$tmpl->assign($empty_arr);\n }\n } else {\n\t\t\t\t\t if ($this->fconf['hide_empty_cats'] != 1) {\n\n\t\t\t\t\t\t if (!$cat_header_printed) {\n\t\t\t\t\t\t\t $tmpl->newBlock('cat_list');\n\t\t\t\t\t\t\t\t$tmpl->newBlock('cat_row');\n\t\t\t\t\t\t\t\t$tmpl->assign($cat_header_row);\n\t\t\t\t\t\t\t\t$cat_header_printed = true;\n\t\t\t\t\t\t\t}\n\n $conf_row = tx_chcforum_conference::return_conf_row_data(true);\n $tmpl->newBlock('conf_row');\n $tmpl->assign($conf_row);\n }\n }\n }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$tmpl->assignGlobal('nav_path',$this->set_nav_path());\n $tmpl->assignGlobal('footer_box',$this->return_footer_box());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->html_out .= $tmpl->getOutputContent();\n } else {\n $this->html_out .= $this->no_auth_msg('dflt');\n }\n }", "title": "" }, { "docid": "49a7540b544af402de55636125828c1d", "score": "0.5582604", "text": "public function getSubCategory()\r\n {\r\n\r\n $query = \"\r\n SELECT\r\n S.Id AS Id,\r\n IFNULL(S.SubCategoryName, '') AS SubCategoryName,\r\n IFNULL(S.CategoryId, '') AS CategoryId,\r\n IFNULL(C.CategoryName, '') AS CategoryName,\r\n IFNULL(S.Description, '') AS Description,\r\n IFNULL(S.image, '') AS image,\r\n IFNULL(S.IsActive, '') AS IsActive\r\n FROM \" . CommonTables::PRODUCT_SUB_CATEGORY . \" S\r\n INNER JOIN \" . CommonTables::PRODUCT_CATEGORY . \" C\r\n ON C.Id=S.CategoryId\r\n ORDER BY CategoryName\r\n \";\r\n\r\n//return $query;\r\n $stmt = $this->pdoConn->prepare($query);\r\n $stmt->execute();\r\n $result = $stmt->fetchAll(PDO::FETCH_OBJ);\r\n if (!empty($result)) {\r\n return $result;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "37fae242f5c5284a1dde62475bcdb64d", "score": "0.5578088", "text": "public function ViewCategory()\n\t{\n\t\t//Get data from database\n $sql = \"SELECT * FROM category ORDER BY name ASC\";\n $result = mysqli_query($this->dbcon(), $sql);\n if ($result) {\n $query_result = $result;\n return $query_result;\n } else {\n echo \"Something went wrong\";\n }\n\t}", "title": "" }, { "docid": "d242b57472c3d47f413450601c8a1838", "score": "0.5560904", "text": "public function show(Subcategory $subcategory)\n {\n //\n }", "title": "" }, { "docid": "d4f3568577012efd1427de831da65321", "score": "0.5560375", "text": "public function categoryChild()\n\t{\n\t\t$category_id = $this->input->get('category_id');\n\t\t$categoryChilds = $this->commonmodel->getRecords('category','*',array('parent'=>$category_id ,'is_active'=>1));\n\t\t\n\t\t$selectOption = count($categoryChilds).'##';\n\t\t\n\t\tforeach($categoryChilds as $categoryChild){\n\t\t$selectOption .= \"<li value=\\\"\".$categoryChild['category_id'].\"\\\" text=\\\"\".$categoryChild['name'].\"\\\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<img src=\\\"images/how-to-items.png\\\"/>\n\t\t\t\t\t\t\t<span>\".$categoryChild['name'].\"</span>\n\t\t\t\t\t\t </li>\";\n\t\t} \t\t\t\t\t\t \n\t\t$selectOption .='';\n\t\techo $selectOption;\n\t}", "title": "" }, { "docid": "d96c7c43dcdeb056b4d9f05a74867529", "score": "0.5558137", "text": "public function generateSubCategoriesReport() {\r\n\r\n $results_array = array();\r\n\r\n //Get Categories, Groupings and SubCategories\r\n $query = Connection::getHandle()->prepare(\"SELECT *\r\n FROM (\r\n SELECT 'category' AS pageType, c.id AS pageId, c.name AS categoryName, '' AS groupingName, '' AS subCategoryName FROM bs_categories c\r\n WHERE c.active=true\r\n\r\n UNION ALL\r\n\r\n SELECT 'grouping' AS pageType, g.id AS pageId, bs_categories.name AS categoryName, g.name AS groupingName, '' AS subCategoryName FROM bs_groupings g\r\n INNER JOIN bs_categories ON bs_categories.id=g.category_id\r\n WHERE g.active=true\r\n\r\n UNION ALL\r\n\r\n SELECT 'subcategory' AS pageType, s.id AS pageId, bs_categories.name AS categoryName, bs_groupings.name AS groupingName, s.name AS subCategoryName FROM bs_subcategories s\r\n INNER JOIN bs_groupings ON bs_groupings.id=s.grouping_id\r\n INNER JOIN bs_categories ON bs_categories.id=bs_groupings.category_id\r\n WHERE s.active=true\r\n\r\n ) q\r\n ORDER BY categoryName, groupingName, subCategoryName;\");\r\n\r\n if ( $query->execute() ) {\r\n\r\n while ( $row = $query->fetch(PDO::FETCH_ASSOC) ) {\r\n\r\n //Get the Page URL\r\n $results_array[] = array(\r\n 'pageId' => (string)$row['pageId'],\r\n 'pageType' => (string)$row['pageType'],\r\n 'categoryName' => (string)$row['categoryName'],\r\n 'groupingName' => (string)$row['groupingName'],\r\n 'subCategoryName' => (string)$row['subCategoryName'],\r\n 'pageUrl' => (string)Page::getPageUrlFromTypeAndId($row['pageType'], (int)$row['pageId']),\r\n );\r\n\r\n }\r\n\r\n }\r\n\r\n return $results_array;\r\n\r\n }", "title": "" }, { "docid": "d66871f10c7e36655ff49ff7f9171fe4", "score": "0.55517495", "text": "public function selectAllPublishedChildCategory($sub_cat_id){\n $sql = \"SELECT * FROM tbl_child_category WHERE sb_cat_id='$sub_cat_id'\";\n $run_query = mysqli_query(Database::dbConnection(),$sql);\n\n if($run_query){\n\n return $run_query;\n }else{\n die(\"Query problme\".mysqli_error(Database::dbConnection()));\n }\n\n }", "title": "" }, { "docid": "bfb8220a29e56fac34af8fa2513901f8", "score": "0.5549701", "text": "function subCategory($dbh, $rubrieknummer, $rubrieknaam) {\r\n $query = $dbh->prepare(\"SELECT *\r\n FROM\t Rubriek\r\n WHERE rubriek = :rubrieknummer\");\r\n $query->bindParam(':rubrieknummer', $rubrieknummer);\r\n $query->execute();\r\n while($row = $query->fetch()) {\r\n echo '<li><a href=\"producten.php?rubriek=' . $row['rubrieknaam'] .\r\n '&rubriek2=' . $rubrieknaam . '\" class=\"rubrieken\">\r\n ' . $row['rubrieknaam'] . '</a></li>';\r\n echo aantalItemsSub($dbh, $row['rubrieknummer'], $row['rubriek']);\r\n }\r\n}", "title": "" }, { "docid": "4b7d4babc79220ab5fad519044d8bf7d", "score": "0.5549207", "text": "function msc_maybe_show_product_subcategories() {\n\techo woocommerce_maybe_show_product_subcategories();\n}", "title": "" }, { "docid": "13f97415e09c9a8abe6bbf8c22b377b3", "score": "0.5541271", "text": "function getSubcategory($loaicha){\n $sql = mysql_query(\"SELECT * FROM cate WHERE parent_id = \".$loaicha); \n while($row = mysql_fetch_array($sql)){\n echo '<ul>';\n echo '<li><a href=\"index.php?xem=editcate&id='.$row['id_cate'].'\" >'.$row['name_cate'].'</a> <a href=\"modules/cate/function.php?id='.$row['id_cate'].'\" style=\"color:red\">Xóa</a></li>';\n getSubcategory($row['id_cate']); // *\n echo '</ul>';\n } \n }", "title": "" }, { "docid": "815ebe7a65fd8469dde01df234fb7aeb", "score": "0.5540578", "text": "public function manageSubcategory()\n {\n return view('admin.sub-category.manage-subcategory',[\n \n 'subcategories' => DB::table('sub_categories')\n ->join('categories','sub_categories.category_id','categories.id')\n ->select('sub_categories.*','categories.category_name')\n ->where('sub_categories.deleted_at',null)\n ->get()\n ]);\n }", "title": "" }, { "docid": "928f5633e7ed0352d5283b52f16e0a65", "score": "0.55392724", "text": "function editCategories()\r\n\t{\r\n\t\techo \" <p><strong>Category Division</strong> (.watsCategoryViewWithTicketSet)<br />\r\n\t\t\t\t \";\r\n\t\t\t\t $this->edit('.watsCategoryViewWithTicketSet');\r\n\t\t\t\t echo \"\r\n\t\t\t\t </p>\r\n\t\t\t\t<p><strong>Category Description Table</strong> (.watsCategoryView)<br />\r\n\t\t\t\t \";\r\n\t\t\t\t $this->edit('.watsCategoryView');\r\n\t\t\t\t echo \"\r\n\t\t\t\t </p>\r\n\t\t\t\t<p><strong>Links In Category Tables</strong> (.watsCategoryView th a)<br />\r\n\t\t\t\t \";\r\n\t\t\t\t $this->edit('.watsCategoryView th a');\r\n\t\t\t\t echo \"\r\n\t\t\t\t </p>\r\n\t\t\t\t<p><strong>Selected Page</strong> (.watsSelectedPage)<br />\r\n\t\t\t\t \";\r\n\t\t\t\t $this->edit('.watsSelectedPage');\r\n\t\t\t\t echo \"\r\n\t\t\t\t </p>\";\r\n\t}", "title": "" }, { "docid": "973c6ead398dab05e3f35527ec5cc8ce", "score": "0.5533293", "text": "function aurum_woocommerce_get_category_columns() {\n\t$category_columns = get_data( 'shop_category_columns' );\n\treturn apply_filters( 'aurum_woocommerce_get_category_columns', $category_columns );\n}", "title": "" }, { "docid": "cac9aee1095418e498b8a55918b34ecf", "score": "0.5532193", "text": "function wpsc_display_categories() {\n global $wp_query;\n $output = false;\n\tif(!is_numeric(get_option('wpsc_default_category'))) {\n\t\tif(is_numeric($wp_query->query_vars['category_id'])) {\n\t\t\t$category_id = $wp_query->query_vars['category_id'];\n\t\t} else if(is_numeric($_GET['category'])) {\n\t\t\t$category_id = $_GET['category'];\n\t\t}\n\t\t\n\t\t// if we have no categories, and no search, show the group list\n\t\t//exit('product id '.$product_id.' catid '.$category_id );\n\t\tif(is_numeric(get_option('wpsc_default_category')) || (is_numeric($product_id)) || ($_GET['product_search'] != '')) {\n\t\t $output = true;\n\t\t}\n\t\tif((get_option('wpsc_default_category') == 'all+list')|| (get_option('wpsc_default_category') == 'list')){\n\t\t $output = true;\n\t\t}\n\t}\n\t\n\tif($category_id > 0) {\n\t\t$output = false;\n\t}\n return $output;\n}", "title": "" }, { "docid": "666c7fe151c1ad13aafe2eb553740e00", "score": "0.5528458", "text": "function clients_subcategories_getExportData($ctlData,$clientID) {\n\t$selected_values = clients_subcategories_getData($ctlData,$clientID);\n\t$categories = _subcategories_prepareValues($ctlData);\n\t\n\t$output = array();\n\tforeach($categories as $parent_option=>$subcategories) {\n\t\tif(isset($selected_values[$parent_option])) {\n\t\t\t$output[] = $subcategories['LABEL'];\n\t\t} \n\t}\n\t\n\tforeach($categories as $parent_option=>$subcategories) {\n\t\t$selected_subvalues = $selected_values[$parent_option];\n\t\t\n\t\tforeach($subcategories['SUBCATEGORIES'] as $key=>$value) {\n\t\t\tif(@in_array($key,$selected_subvalues)) {\n\t\t\t\t$output[] = $value;\n\t\t\t} \n\t\t}\n\t}\n\t\n\treturn join(';',$output);\n}", "title": "" }, { "docid": "3910434997aacfa1ab8ba9893d053d27", "score": "0.552673", "text": "function dimension_columns_show_columns($name) {\n global $post;\n\n switch ($name) {\n case 'order':\n $views = $post->menu_order;\n echo $views;\n break;\n }\n}", "title": "" }, { "docid": "4461ea4ed57c52a3712af618682b538e", "score": "0.552671", "text": "public function index(SubCategoryDataTable $subCategoryDataTable)\n {\n return $subCategoryDataTable->render('sub_categories.index');\n }", "title": "" }, { "docid": "77557c7748e83595a92563acf4c06f52", "score": "0.5515497", "text": "public function show_super_category()\n {\n $data['all_super_category'] = $this->Category->list_all_super_category();\n\n $data['subView'] = '/category/super_category_layout';\n $data['title'] = \"Quản lý danh mục\";\n $data['subData'] = $data;\n $this->load->view('/main/main_layout', $data);\n }", "title": "" }, { "docid": "0c230851dd14f08fcddd1662fb291cf8", "score": "0.5504344", "text": "public function get_main_categoryname($category_id=\"\")\n\t{\n\t\t$result = $this->db->from(\"category\")->where(array(\"category_status\" => 1,\"category_id\"=>$category_id))->orderby(\"category_name\",\"ASC\")->get();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "035fb844b521e729927362a2ffd25ae3", "score": "0.5500525", "text": "public function run()\n {\n $subcategory = [\n ['category_id' => 1, 'subcategory' => 'トップス'],\n ['category_id' => 1, 'subcategory' => 'ジャケット/アウター'],\n ['category_id' => 1, 'subcategory' => 'ワンピース'],\n ['category_id' => 1, 'subcategory' => 'パンツ'],\n ['category_id' => 1, 'subcategory' => 'スカート'],\n ['category_id' => 1, 'subcategory' => 'バッグ'],\n ['category_id' => 1, 'subcategory' => 'ファッション小物'],\n ['category_id' => 1, 'subcategory' => '靴/シューズ'],\n ['category_id' => 1, 'subcategory' => 'アクセサリー'],\n ['category_id' => 1, 'subcategory' => 'ヘアアクセサリー'],\n ['category_id' => 1, 'subcategory' => '水着/浴衣'],\n ['category_id' => 1, 'subcategory' => 'フォーマル/ドレス'],\n ['category_id' => 1, 'subcategory' => '帽子'],\n ['category_id' => 1, 'subcategory' => 'ルームウェア/パジャマ'],\n ['category_id' => 1, 'subcategory' => '下着/アンダーウェア'],\n ['category_id' => 1, 'subcategory' => 'レッグウェア'],\n ['category_id' => 1, 'subcategory' => 'ウィッグ/エクステ'],\n ['category_id' => 1, 'subcategory' => 'レディース/その他'],\n ['category_id' => 2, 'subcategory' => 'トップス'],\n ['category_id' => 2, 'subcategory' => 'ジャケット/アウター'],\n ['category_id' => 2, 'subcategory' => 'パンツ'],\n ['category_id' => 2, 'subcategory' => '靴/シューズ'],\n ['category_id' => 2, 'subcategory' => 'バッグ'],\n ['category_id' => 2, 'subcategory' => 'スーツ'],\n ['category_id' => 2, 'subcategory' => '帽子'],\n ['category_id' => 2, 'subcategory' => 'アクセサリー'],\n ['category_id' => 2, 'subcategory' => 'ファッション小物'],\n ['category_id' => 2, 'subcategory' => '時計'],\n ['category_id' => 2, 'subcategory' => '水着/浴衣'],\n ['category_id' => 2, 'subcategory' => 'レッグウェア'],\n ['category_id' => 2, 'subcategory' => 'アンダーウェア'],\n ['category_id' => 2, 'subcategory' => 'メンズ/その他'],\n ['category_id' => 3, 'subcategory' => 'キッズ服'],\n ['category_id' => 3, 'subcategory' => 'ベビー服'],\n ['category_id' => 3, 'subcategory' => 'キッズ靴/シューズ'],\n ['category_id' => 3, 'subcategory' => 'ベビー靴/シューズ'],\n ['category_id' => 3, 'subcategory' => 'マタニティ'],\n ['category_id' => 3, 'subcategory' => 'キッズ/ベビー/マタニティ/その他'],\n ];\n \n DB::table('subcategory')->insert($subcategory);\n }", "title": "" }, { "docid": "025c9f557a38ab7433e421f5ec584a49", "score": "0.5491673", "text": "function get_frontPage($dblink)\n{\n $sql = \"SELECT * FROM category\";\n $svar = mysqli_query($dblink, $sql);\n $catTab = array();\n $row = 0;\n while ($rad = mysqli_fetch_assoc($svar)) {\n $catTab[$row] = $rad;\n $row++;\n\n $thread = $rad[\"name\"];\n $sql2 = \"SELECT * FROM subcategory WHERE Category_name = '$thread' ORDER BY name\";\n $svar2 = mysqli_query($dblink, $sql2);\n\n while ($rad2 = mysqli_fetch_assoc($svar2)) {\n $catTab[$row] = $rad2;\n $row++;\n }\n }\n return $catTab;\n}", "title": "" }, { "docid": "a764f8f898fe5bd482ee5053db0744d6", "score": "0.54858136", "text": "function category_page_subcategories($category, $args, $clear_div = 1) {\n\n extract($args);\n\n $content_start = '<div class=\"large-12 left small-12 engine-block column center-column\">';\n $title_start = '<h3 class=\"widget-title\">';\n $cat_desc = NULL;\n if ( $category->description ) {\n $cat_desc = '<p class=\"description\">' . $category->description . '</p>';\n }\n $title_end = '</h3>';\n $clear_both = '';\n $category_post = '';\n if ( $clear_div === 1 ) {\n $category_post = 'category-post ';\n $clear_both = '<div class=\"span12 no-margin small-12 engine-block column block-Clear\"></div>';\n }\n $content_end = '</div>';\n\n // title and description\n echo $content_start;\n echo $title_start . $category->name . $title_end;\n echo $cat_desc;\n\n // the good stuff\n $news_cat_ID = $category->cat_ID;\n $news_args = array(\n 'parent' => $news_cat_ID,\n 'orderby' => $orderby,\n 'order' => $order\n );\n $news_cats = get_categories($news_args);\n $news_query = new WP_Query();\n\n $count = 0;\n foreach ($news_cats as $news_cat):\n $count++;\n echo $clear_both;\n echo '<div class=\"' . $category_post . 'large-12 small-12 column left engine-block center-column\">';\n echo '<h4 class=\"widget-title\">' . $news_cat->name .\n '<span><a href=\"' . get_category_link($news_cat->cat_ID) . '\"> more&raquo;</a></span>' . '</h4>';\n\n echo '<ul class=\"posts title_meta_thumb_2 small-block-grid-2 large-block-grid-2\">';\n // query for each category\n $news_query->query('posts_per_page=' . $args['posts'] . '&cat=' . $news_cat->term_id);\n\n if ( $news_query->have_posts() ):\n while ( $news_query->have_posts() ): $news_query->the_post(); ?>\n <li class=\"title-meta-thumb\">\n <article class=\"the-post\">\n <div class=\"featured-image\">\n <a href=\"<?php the_permalink(); ?>\">\n <?php engine_thumbnail('archive-first'); ?>\n </a>\n </div>\n <header class=\"entry-header\">\n <div class=\"entry-meta\">\n <span class=\"entry-comments\">\n <a href=\"<?php comments_link(); ?>\">\n <i class=\"icon-comments\"></i><?php comments_number(0, 1, '%'); ?>\n </a>\n </span>\n <span class=\"entry-date\">\n <i class=\"icon-calendar\"></i>\n <?php the_time( get_option('date_format') ); ?>\n </span>\n </div>\n <h2 class=\"entry-title\">\n <a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a>\n </h2>\n </header>\n <!-- /.entry-header -->\n <div class=\"entry-content\">\n <?php\n echo engine_excerpt(25);\n ?>\n </div>\n </article>\n </li>\n <?php\n endwhile;\n\n endif;\n\n echo '</ul>';\n\n echo '</div>';\n\n endforeach;\n\n echo $content_end;\n}", "title": "" }, { "docid": "c513e643b179e0d2de98b767a1219e0e", "score": "0.54782987", "text": "function subCategory($dbh, $rubrieknummer, $rubrieknaam) {\r\n $query = $dbh->prepare(\"SELECT *\r\n FROM\t Rubriek\r\n WHERE rubriek = :rubrieknummer\");\r\n $query->bindParam(':rubrieknummer', $rubrieknummer);\r\n $query->execute();\r\n while($row = $query->fetch()) {\r\n echo '<li><a href=\"producten.php?rubriek=' . $row['rubrieknaam'] .\r\n '&rubriek2=' . $rubrieknaam . '\">\r\n ' . $row['rubrieknaam'] . '</a></li>';\r\n }\r\n}", "title": "" }, { "docid": "da298eb279914ae8d4901b9ffa0936b7", "score": "0.5470717", "text": "function getCategory($category_id) { \n $query = mysql_query(\"SELECT DISTINCT *, (SELECT GROUP_CONCAT(CONCAT(cd1.name,'-', cd1.category_id) ORDER BY level SEPARATOR '>') FROM oc_category_path cp LEFT JOIN oc_category_description cd1 ON (cp.path_id = cd1.category_id AND cp.category_id != cp.path_id) WHERE cp.category_id = c.category_id GROUP BY cp.category_id) AS path FROM oc_category c LEFT JOIN oc_category_description cd2 ON (c.category_id = cd2.category_id) WHERE c.category_id ='\".(int)$category_id.\"' \");\n\n $rs=mysql_fetch_assoc($query);\n \n return $rs;\n }", "title": "" }, { "docid": "c2c17e28199d0c995b4f0da4ab5bb29a", "score": "0.5466429", "text": "public function subCategoryViewAjax()\n\t{\n\t\t$requestData = Request::all();\n\t\treturn DB::table('sub_categories')\n\t\t\t\t->join('categories', 'categories.id', '=', 'sub_categories.category_id')\n\t\t\t\t->select(\n\t\t\t\t\t\t\t'categories.id as category_id',\n\t\t\t\t\t\t\t'sub_categories.name as name'\n\t\t\t\t\t\t)\n\t\t\t\t->where('sub_categories.id', '=', $requestData['sub_category_id'])\n\t\t\t\t->get();\n\t}", "title": "" }, { "docid": "fa22809bac404099fed069d76f72227b", "score": "0.54658014", "text": "function displayCategories($catId) { \n global $dbConn;\n \n $sql = \"SELECT * FROM final_category ORDER BY catName\";\n $stmt = $dbConn->prepare($sql);\n $stmt->execute();\n $records = $stmt->fetchAll(PDO::FETCH_ASSOC);\n \n foreach($records as $record) {\n echo \"<option \";\n echo ($record[\"catId\"] == $catId)? \"selected\": \"\";\n echo \" value='\".$record[\"catId\"].\"'>\". $record[\"catName\"].\"</option>\";\n }\n }", "title": "" }, { "docid": "5aa25e1b84ef654c655a214810a355d7", "score": "0.5464947", "text": "public function displayArticleCategory()\n {\n $database = $this->connectDatabase();\n $idcategory = $_POST['selectCategory'] ?? $_GET['category_id'];\n $myQuery = \"SELECT A.*,\n B.CATEGORY_NAME,\n C.USER_CITY as ARTICLE_CITY \n FROM `article` as A left join `category` as B on A.CATEGORY_ID = B.CATEGORY_ID \n left join _user as C on A.USER_ID = C.USER_ID\n WHERE A.CATEGORY_ID = :idcategory and A.valid = 1 \";\n $queryArticle = $database->prepare($myQuery);\n $queryArticle->bindValue(':idcategory', $idcategory, PDO::PARAM_INT);\n $queryArticle->execute();\n $fetch = $queryArticle->fetchAll();\n return $fetch;\n }", "title": "" }, { "docid": "502be25b56ca4d26606e0a5211c80669", "score": "0.54628056", "text": "function menu(){\nglobal $conn;\n\n$query = (\"SELECT parent_cat, cat_name FROM Categories WHERE cat_id = ?\");\n$stm = $conn->prepare($query);\n$stm->execute(array(category()));\n$par_cat = $stm->fetch();\n if(empty($par_cat)||($par_cat == 0)){\n Categories();\n }else{\n subcategories($par_cat['cat_name']);\n }\n}", "title": "" }, { "docid": "5ce2072d35d7ba800a44c1ef11fa9e39", "score": "0.546213", "text": "public function queryVisibleCategory($root);", "title": "" }, { "docid": "dcef14d0ba8e26eca57c0ce24d58f7d9", "score": "0.54411995", "text": "public function index()\n {\n //\n $result = SubCategory::with('category')->get();\n // $result = Category::with('subCategory')->get();\n // $result = Post::with('subCategory')->get()->pluck('title', 'subCategoryId');\n\n // dump($result);\n // return $result;\n return view('admin.subCategory',['subCategory' => $result]);\n }", "title": "" }, { "docid": "e4ca8be3b6eff263127275226ce77770", "score": "0.5433801", "text": "function sc_bootstrap_news_category_tabs(){\n \t\n $news = e107::getObject('e_news_category_tree'); // get news class.\n // $sc = e107::getScBatch('news'); // get news shortcodes.\n $tp = e107::getParser(); // get parser.\n \n // load active news categories. ie. the correct userclass etc.\n $data = $news->loadActive(false)->toArray(); // false to utilize the built-in cache.\n\n $text = '';\n\t\n\t $tab = array();\n\n foreach($data as $row){\n // $sc->setScVar('news_item', $row); // send $row values to shortcodes.\t \n\t $parm = array('category'=>$row['category_id'], 'featured' => 1,'limit' => 4,'layout' => 'bootstrap-news-tabs');\n\t\t $tab[] = array('caption'=>$row['category_name'], 'text'=>e107::getObject('news')->render_newsgrid($parm)); \n }\n return e107::getForm()->tabs($tab);\n }", "title": "" }, { "docid": "0f94036b8e293a012691e0bf9b10af28", "score": "0.54330957", "text": "function print_category_option_list( $p_category=\"\" ) {\r\n\t\tglobal $g_mantis_bug_table, $g_mantis_project_category_table, $g_project_cookie_val;\r\n\r\n\t\t# grab all categories in the project category table\r\n\t\t$cat_arr = array();\r\n\t\t$query = \"SELECT DISTINCT( category ) as category\r\n\t\t\t\tFROM $g_mantis_project_category_table\r\n\t\t\t\tWHERE project_id='$g_project_cookie_val'\r\n\t\t\t\tORDER BY category\";\r\n\t\t$result = db_query( $query );\r\n\t\t$category_count = db_num_rows( $result );\r\n\t\tfor ($i=0;$i<$category_count;$i++) {\r\n\t\t\t$row = db_fetch_array( $result );\r\n\t\t\t$cat_arr[] = $row[\"category\"];\r\n\t\t}\r\n\t\tsort( $cat_arr );\r\n\t\t$cat_arr = array_unique( $cat_arr );\r\n\r\n\t\tforeach( $cat_arr as $t_category ) {\r\n\t\t\tif ( $t_category == $p_category ) {\r\n\t\t\t\tPRINT \"<option value=\\\"$t_category\\\" SELECTED>$t_category</option>\";\r\n\t\t\t} else {\r\n\t\t\t\tPRINT \"<option value=\\\"$t_category\\\">$t_category</option>\";\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "98d988d58e9903d7c28b6a27ca49cb9e", "score": "0.5428162", "text": "public function get_all_subcategories()\r\n {\r\n return $this->queryAll('SELECT id, name FROM cat_subcat_membranes');\r\n }", "title": "" }, { "docid": "cd4dd965dd958ca24df5209f3223a780", "score": "0.5427256", "text": "public function view_print() {\n\t\t// Permission\n\t\t$this->session_lib->check_permission('p_item_report');\n\n\t\t// Log\n\t\t$this->log_activity_lib->activity_record('Barang', 'Visit');\n\n\t\t//category item\n\t\t$query = $this->db->query(\"SELECT name FROM itemcategory\");\n\n\t\tif ($query->num_rows() > 0) {\n\t\t\tforeach ($query->result() as $row) {\n\t\t\t\t$category[] = $row->name;\n\t\t\t}\n\t\t}\n\n\t\t$attr = array(\n\t\t\t\t\t\t'filterCategory' \t=> $this->display_filter_category(),\n\t\t\t\t\t\t'category'\t\t\t=> $category\n\t\t\t\t\t);\n\n\t\t$this->layout_lib->default_template('master/item/view-print', $attr);\n\t}", "title": "" }, { "docid": "c0ad74c42a62c6cf0ba29d970d5ff86a", "score": "0.5423912", "text": "function clients_subcategories_displayInput($ctlData,$id) {\n\tglobal $Auth,$gSession;\n\n\t$identifier = strtolower($ctlData['IDENTIFIER']);\n\n\t## prepare the template\n\t$inputFile = \"input.tpl\";\n\t$template = new Template(ENGINE.'modules/clients/attributetypes/subcategories/interface');\n\t$template->set_templatefile(array(\"attribute\" => $inputFile));\n\n\t\n\t## check if we need to setup this attribute type\n\tclients_subcategories_setup($identifier);\n\t\n\t## then we need to get any data that was previously entered\n\t$selected_values = clients_subcategories_getData($ctlData,$id);\t\n\t$categories = _subcategories_prepareValues($ctlData);\n\t\t\n\t## since we need the selectmenu for all categories- we handle it here first\n\t$selectmenu = '<select name=\"'.$ctlData['IDENTIFIER'].'_category\" id=\"'.$ctlData['IDENTIFIER'].'_category\" size=\"1\" style=\"width: 178px;\" class=\"default\">';\n\tforeach($categories as $parent_option=>$subcategories) {\n\t\tif(isset($selected_values[$parent_option])) {\n\t\t\t$selectmenu .= '<option label=\"'.$subcategories['LABEL'].'\" value=\"'.$parent_option.'\" selected=\"selected\">'.$subcategories['LABEL'].'</option>';\n\t\t} else {\n\t\t\t$selectmenu .= '<option label=\"'.$subcategories['LABEL'].'\" value=\"'.$parent_option.'\">'.$subcategories['LABEL'].'</option>';\n\t\t}\n\t}\n\t$selectmenu .= '</select>';\t\n\t\n\t\n\t## okay now we need to loop through each parent category and prepare a element\n\t$output = '';\n\tforeach($categories as $parent_option=>$subcategories) {\n\t\t$parent_label = $subcategories['LABEL'];\n\t\t$selected_subvalues = $selected_values[$parent_option];\n\t\t\n\t\t## okay now we need to loop through the subcategories and display them\n\t\t$subcategory_output = '<div id=\"'.$ctlData['IDENTIFIER'].$parent_option.'_subcategory\"><select multiple name=\"'.$identifier.''.$parent_option.'[]\" style=\"width: 178px;\" class=\"default\" size=\"4\">';\n\t\tforeach($subcategories['SUBCATEGORIES'] as $key=>$value) {\n\t\t\tif(@in_array($key,$selected_subvalues)) {\n\t\t\t\t$subcategory_output .= '<option label=\"'.$value.'\" value=\"'.$key.'\" selected=\"selected\">'.$value.'</option>';\n\t\t\t} else {\n\t\t\t\t$subcategory_output .= '<option label=\"'.$value.'\" value=\"'.$key.'\">'.$value.'</option>';\n\t\t\t}\n\t\t}\n\t\t$subcategory_output .='</select></div>';\n\t\t\n\t\t$output .= $subcategory_output;\n\t}\n\t\n\t## set the vars\n\t$template->set_var(\"title\",$ctlData['NAME']);\t\n\t$template->set_var(\"selector\",$selectmenu);\t\n\t$template->set_var(\"attributes\",$output);\n\n\t## finally fill the template and return it\n\treturn $template->fill_block('attribute');\t\n}", "title": "" }, { "docid": "68072876be680e2e8940e8a9c3a42c79", "score": "0.5423114", "text": "public function getSubCategory()\n {\n return $this->subCategory;\n }", "title": "" }, { "docid": "55fbd0c51469919f36ffe5685b4697b8", "score": "0.5423112", "text": "function formatSubCategory($catId,$mainCat,$subCatId,$subCatName)\n{\n\t$safeCat = makeURLSafe($mainCat);\n\t$safeSubCat = makeURLSafe($subCatName);\n\t//$category_url = \"http://localhost/business_directory/$safeCat-$catId/$safeSubCat-$subCatId\";\n\t$category_url = SITE_URL.\"/$safeCat-$catId/$safeSubCat-$subCatId\";\n\treturn \t\"\n\t<li><a href='$category_url' onclick=\\\"_gaq.push(['_trackEvent', 'Listing Subcategory', 'click', '$subCatName']);\\\">\".$subCatName.\"</a></li>\";\n\n}", "title": "" }, { "docid": "e2ae187117e20f8fb05d46bb6bf4f213", "score": "0.5417735", "text": "public function generateCategorySideNav($categories, $catUrl = '', $top = true)\r\n\t{\r\n\t\t$class = ($top) ? ' class=\"filter-style\"' : '';\r\n\t\t\r\n\t\t$this->tree .= '<ul' . $class . '>';\r\n\r\n\t\t$count = count($categories);\r\n\t\t$i = 0;\r\n\t\t\r\n\t\tforeach ($categories as $k => $category)\r\n\t\t{\r\n\t\t\t$catID = $category['Category']['id'];\r\n\t\t\t$catName = $category['CategoryName']['name'];\r\n\t\t\t$myCatUrl = $category['CategoryName']['url'];\r\n\t\t\t$catCount = $category['Category']['product_counter']; // TJP 23/10/15 this is why it displays the wrong no. per cat\r\n\r\n\t\t\t// $topLiOpen = ($catID == $this->topActiveCategory) ? ' class=\"open\"' : '';\r\n\t\t\t// $activeCategory = ($catID == $this->openCategoryID) ? ' class=\"current\"' : '';\r\n\r\n\t\t\t$classes = array();\t\r\n\r\n\t\t\tif ($catID == $this->openCategoryID)\r\n\t\t\t{\r\n\t\t\t\t$classes[] = 'selected';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (!$this->showAllResults && $count == ($i + 1))\r\n\t\t\t{\r\n\t\t\t\t$classes[] = 'last';\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t$classString = (!empty($classes)) ? ' class=\"' . implode(' ', $classes) . '\"' : '';\r\n\t\t\t\r\n\t\t\t$this->tree .= \"\\n<li\" . $classString . \">\";\r\n\t\t\t\r\n\t\t\t$this->tree .= '<a href=\"/' . $catUrl . $myCatUrl . '\">' . h($catName) . ' <span class=\"face1\">(' . intval($catCount) . ')</span></a>';\r\n\r\n\t\t\tif (in_array($catID, $this->pathIDs) || ($catID == $this->openCategoryID) && !empty($category['children']))\r\n\t\t\t{\r\n\t\t\t\t$passUrl = $myCatUrl . '/';\r\n\t\t\t\t$passUrl = (!empty($catUrl)) ? $catUrl . $passUrl : $passUrl;\r\n\t\t\t\t$this->generateCategorySideNav($category['children'], $passUrl, false);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->tree .= \"\\n</li>\";\r\n\r\n\t\t\t$i++;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tif($this->showAllResults && !empty($this->topCategoryRecord) && $top){\r\n\t\t\t$this->tree .= '<li class=\"last\">';\r\n\t\t\t$this->tree .= '<a href=\"' . $this->topCategoryRecord['CategoryName']['full_url'] . '\">' . 'All Results <span class=\"face1\">(' . $this->topCategoryRecord['Category']['product_counter'] . ')</span>' . '</a>';\r\n\t\t\t$this->tree .= '</li>';\r\n\t\t}\r\n\t\t\r\n\t\t$this->tree .= '</ul>';\r\n\t\t\r\n\t}", "title": "" }, { "docid": "63492ea5385a412c6d264a215aff94e6", "score": "0.5414177", "text": "public function subcategories_get()\n\t{\n\t\t$get = $this->input->get('category_id');\n\t\t$subcategories = $this->Customerapi_model->get_subcategories($get);\n\t\tif(count($subcategories)>0){\n\t\t\t\t$message = array\n\t\t\t\t(\n\t\t\t\t\t'status'=>1,\n\t\t\t\t\t'Subcategories'=>$subcategories,\n\t\t\t\t\t'path' =>base_url('assets/subcategoryimages/')\n\t\t\t\t);\n\t\t\t\t$this->response($message, REST_Controller::HTTP_OK);\n\t\t\t\n\t\t}else{\n\t\t\n\t\t\t$message = array('status'=>0,'message'=>'Sub Category List Empty.');\n\t\t\t$this->response($message, REST_Controller::HTTP_OK);\t\n\t\t}\n\t}", "title": "" }, { "docid": "e4db878d2ddc941d9daf2017ec1c2334", "score": "0.5412067", "text": "public function action_index(){\n $this->_filter_fields['category_id']['data']['options'] = ORM::factory('BoardCategory')->getFullDepthArray();\n if(!$this->_filter_values['category_id'])\n $this->_filter_values['category_id'] = key($this->_filter_fields['category_id']['data']['options']);\n $this->_filter_fields['category_id']['data']['selected'] = $this->_filter_values['category_id'];\n\n /* Set category filter value (IN ARRAY)*/\n $parents = ORM::factory('BoardCategory')->getParentsId($this->_filter_values['category_id']);\n $parents[] = $this->_filter_values['category_id'];\n $this->_filter_values['category_id'] = $parents;\n\n parent::action_index();\n }", "title": "" }, { "docid": "86842faa6729ff4264a4414c154fb9e7", "score": "0.54058826", "text": "function subcategoria_x_id($id){\n return mostrar_subcategoria($id);\n }", "title": "" } ]
e7cc5b9146fcca1e9f8ad83f0a4ca254
Fires on the form load.
[ { "docid": "cda471ed56da46eb83bcadaded73a26b", "score": "0.0", "text": "public function onInit()\n {\n }", "title": "" } ]
[ { "docid": "4206f882d9c65ac891930161dd04cc0f", "score": "0.7248689", "text": "function loadFromForm() \n {\n parent::loadFromForm();\n \n \n }", "title": "" }, { "docid": "fd603dc583150d76544a5a16d404f0ec", "score": "0.7073251", "text": "function loadFromForm() \n {\n parent::loadFromForm();\n \n /*\n * Put any additional data manipulations here.\n * if you don't need to do anything else, you should \n * just remove this method and let the parent method get\n * called directly.\n */\n \n }", "title": "" }, { "docid": "0654a46d82a0d9873c8b09ea32f5424d", "score": "0.6931825", "text": "function loadFromForm() \n {\t \t \n\t parent::loadFromForm(); \n \n }", "title": "" }, { "docid": "8c8d58102ee7e09e3f75287ce09ebff8", "score": "0.6903006", "text": "public function onBeforeLoad() {\n\t\t}", "title": "" }, { "docid": "0f8daabc9097c07ad05984a70a96a78e", "score": "0.6841539", "text": "public function formInit()\n {\n $this->updateFormDir();\n }", "title": "" }, { "docid": "26c8b76bc5e53f0f9e37cc1118014295", "score": "0.6829682", "text": "protected function postLoad()\n {\n \t\n }", "title": "" }, { "docid": "92cc704e5b07326a0ad8340f7b5ee857", "score": "0.6639214", "text": "function onload() {\n\n\t\t\tif ( SITE_HAS_DONATE ) {\n\t\t\t\t$this->fields['donate'] = array('name' => 'Donation', 'formtype' => 'lookup', 'required' => false, 'function' => 'donatelookup');\n\t\t\t}\n\t\t\t// add the gallery chooser dropdown if appropriate\n\t\t\tif ( BOOKING_HAS_INLINE_GALLERIES ) {\n\t\t\t\t$this->fields['gallery'] = array( 'name' => 'Gallery', 'formtype' => 'lookup', 'required' => false, 'function' => 'gallerylookup' );\n\t\t\t}\n\t\t\t$this->paginated = true;\n\t\t\t$this->paginate_items_per_page = BOOKINGS_ADMIN_PAGINATE_ITEMS_PER_PAGE;\n\n\n\n\t\t}", "title": "" }, { "docid": "1a7f2d2b1f08a31072b7a6f360fce119", "score": "0.66339946", "text": "protected function loadCreateForm()\n {\n }", "title": "" }, { "docid": "d84ecd87534c559f1fdd553b4905de7c", "score": "0.6616838", "text": "protected function _afterLoad()\r\n { \r\n parent::_afterLoad();\r\n }", "title": "" }, { "docid": "50f10c2748905b9f46ed8600fdb9eb02", "score": "0.6589798", "text": "protected function afterLoad()\n {\n }", "title": "" }, { "docid": "3dbf6fba554f5fb58a67cea23306f751", "score": "0.65695184", "text": "protected function onLoad() {\n\t\t\tparent::onLoad();\n\n\t\t\t$this->addValidator(new \\System\\Validators\\NumericValidator());\n\t\t}", "title": "" }, { "docid": "c1b170109b3dff59b2a79af7b13482d9", "score": "0.6521885", "text": "protected function onLoad()\n\t\t{\n\t\t\tparent::onLoad();\n\n\t\t\t$this->autoPostBack = $this->getParentByType( '\\System\\Web\\WebControls\\RadioGroup' )->autoPostBack;\n\t\t}", "title": "" }, { "docid": "c17f41efa596e09c1e8dceb01ccedc76", "score": "0.6521675", "text": "public function onLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "a17b551af037693f21568574541db47d", "score": "0.6476425", "text": "public function __onload() {\r\n $this->uses(array('auth', 'ajaxer', 'form'));\r\n $this->uses('script', array('url' => $this->request->config['url']));\r\n\r\n $this->options = $this->loadModel('options');\r\n $options = $this->options->find('all');\r\n $this->set('site_title', $options[0]['site_title']);\r\n }", "title": "" }, { "docid": "3698394889b088ee74f1ae1989cb2f45", "score": "0.6417579", "text": "function loaded()\n {\n //TODO: Change the component state from loading to loaded\n }", "title": "" }, { "docid": "a57cab4f4f47200ad7671d9f689169bc", "score": "0.6412108", "text": "public function load() {\n\t\tadd_action( 'p4fb_post_save_form', [ $this, 'entry_handler' ], 10, 3 );\n\t\tadd_action( P4FB_KEY_PREFIX . 'queued_entry', [ $this, 'send_entry' ] );\n\t}", "title": "" }, { "docid": "6e1f4983f0e838a0ba3d92959f42233e", "score": "0.63583523", "text": "protected function _afterLoad(){}", "title": "" }, { "docid": "1df0fe952ad92b4afd5d24bc00c71c85", "score": "0.6355718", "text": "public function Load()\n\t{\n\t\tparent::Load();\n\t\t\n\t\t//Checks if Page is not Posted back.\n\t\tif ($this->IsPostBack == false)\n\t\t{\n\t\t\t//Then Change Label to Current Date Time.\n\t\t\t$this->DateLoadedLabel->Text(date(\"Y/m/d H:i:s\"));\n\t\t}\n\t}", "title": "" }, { "docid": "659310947ee8620b0a499a9311a7eb6b", "score": "0.62905514", "text": "private function initForm(): void\n\t{\n\t\t$provider = $this->getEditorProvider();\n\n\t\t$this->arResult['FORM'] = $provider->getFields();\n\t\t$this->arResult['FORM']['ENABLE_CONFIGURATION_UPDATE'] = ! $provider->isReadOnly();\n\t}", "title": "" }, { "docid": "62b017585b5dc6b4d945a059881c174c", "score": "0.6290207", "text": "public function onSHPlaformInitialise()\n\t{\n\t\t$this->onAfterInitialise();\n\t}", "title": "" }, { "docid": "a786f8d0eadac022ae148213644af6cb", "score": "0.6271092", "text": "protected function loaded()\r\n\t{\r\n\t}", "title": "" }, { "docid": "aa718b1bfd91c37c19a2f38f621811cc", "score": "0.61999786", "text": "protected function onLoaded()\n {\n\n }", "title": "" }, { "docid": "4453bf1a367b480a5253701fd994b9c5", "score": "0.6194298", "text": "public function on_load() {\n $first_tab = null;\n\t\t// gather the list of reports, which should be registered by now\n\t\t$this->reports = $this->get_reports();\n\n\t\t// create a list of request args\n\t\t$first_tab = array_keys( $this->reports );\n\t\t$this->current_tab = ! empty( $_GET['tab'] ) && is_scalar( $_GET['tab'] ) && isset( $this->reports[ $_GET['tab'] ] ) ? sanitize_title( $_GET['tab'] ) : $first_tab[0];\n\t\t$this->current_report = isset( $_GET['report'] ) ? sanitize_title( $_GET['report'] ) : current( array_keys( $this->reports[ $this->current_tab ]['reports'] ) );\n\n\t\t// if this is the printer-friendly version, then handle that now\n\t\tif ( isset( $_POST['pf'] ) && 1 == $_POST['pf'] ) {\n\t\t\t// if the report exists\n\t\t\tif ( isset( $this->reports[ $this->current_tab ], $this->reports[ $this->current_tab ]['reports'], $this->reports[ $this->current_tab ]['reports'][ $this->current_report ] )) {\n\t\t\t\t$report = $this->reports[ $this->current_tab ]['reports'][ $this->current_report ];\n\t\t\t\t// and if the report has a printer friendly function declared\n\t\t\t\tif ( isset( $report['pf_function'] ) && is_callable( $report['pf_function'] ) ) {\n\t\t\t\t\t// call it\n\t\t\t\t\tcall_user_func( $report['pf_function'] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b3797aa4e561d1f1db16a97705717722", "score": "0.6180613", "text": "function onLoad() {\n\t\tglobal $app;\n\t\t\n\t\t/*\n\t\tRegister for the events\n\t\t*/\n\t\t\n\t\t//* Mailboxes\n\t\t$app->plugins->registerEvent('firewall_insert',$this->plugin_name,'insert');\n\t\t$app->plugins->registerEvent('firewall_update',$this->plugin_name,'update');\n\t\t$app->plugins->registerEvent('firewall_delete',$this->plugin_name,'delete');\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "920ceec8ba6e851eeea882b16ca96171", "score": "0.6141106", "text": "public function load_controller_hooks(){\n //add_filter( 'gform_pre_submission_filter_'.$fieldId, [$this,'populate_location_dropdown'] );\n //add_filter( 'gform_admin_pre_render_'.$fieldId, [$this,'populate_location_dropdown'] );\n }", "title": "" }, { "docid": "05fb628c94a7543efd576eeeb95d3a2c", "score": "0.61285543", "text": "public function BeforeLoad()\n\t\t{\n\t\t}", "title": "" }, { "docid": "3f08ace3ac2ca8b3cbb413881ed71fe9", "score": "0.6109766", "text": "function ControlOnLoad()\n {\n DataFactory::GetStorage($this, \"StatTable\", \"statStorage\", true, \"stat\");\n $this->referer_domain = $this->statStorage->GetRefererDomainById(\n $this->Page->Request->QueryString['referers_parent_id']\n );\n $this->Page->Kernel->Localization->SetItem('REFERERS_DETAIL', '_LIST_TITLE',\n sprintf($this->Page->Kernel->Localization->GetItem('REFERERS_DETAIL', '_LIST_TITLE'),\n $this->referer_domain\n ));\n parent::ControlOnLoad();\n }", "title": "" }, { "docid": "d05052608f2adb57de07e45ce9cd7a9c", "score": "0.6096852", "text": "public function init_form_fields() {\r\n\t\t// Create Field Loader Object\r\n\t\t$aps_field_loader = new APS_Fields_Loader();\r\n\r\n\t\t// Load all fields\r\n\t\t$this->form_fields = $aps_field_loader->get_config_fields();\r\n\t}", "title": "" }, { "docid": "1823d55ab13e89450e88a0f40bce4c85", "score": "0.6068482", "text": "public function on_load() {\r\n\t\t$this->tabs = array(\r\n\t\t\t'general' \t\t=> __( 'General', 'wphb' ),\r\n\t\t\t'import_export' => __( 'Import / Export', 'wphb' ),\r\n\t\t\t'data' \t\t=> __( 'Data & Settings', 'wphb' ),\r\n\t\t\t'main' \t\t=> __( 'Accessibility', 'wphb' ),\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "1ab9343467e09aaf95ba64c663a5e366", "score": "0.6058859", "text": "public function AfterLoad()\n\t\t{\n\t\t}", "title": "" }, { "docid": "3df2e61fdb2b1f0dce2988e3b55ee041", "score": "0.60087407", "text": "function onLoad($param)\r\n\t{\r\n\t\tif(!$this->IsPostBack) $this->showList();\r\n\t}", "title": "" }, { "docid": "bbd8c7689a8454ac50e0e384e56ffe79", "score": "0.6002485", "text": "public function beforeLoad(){\n \n }", "title": "" }, { "docid": "1f803ef7994a1d16f4c58c272bdac8fc", "score": "0.5997402", "text": "function show()\r\n {\r\n if (!$this->loaded)\r\n {\r\n $this->onReload( func_get_arg(0) );\r\n }\r\n parent::show();\r\n }", "title": "" }, { "docid": "de66650e20baaf1187236af42c5f08b2", "score": "0.59924334", "text": "public function init()\n\t{\n\t\tparent::init();\n\n\t\t/**\n\t\t * form\n\t\t */\n\t\t$this->setAttrib('id', 'formConfiguration');\n\n\n\t}", "title": "" }, { "docid": "b6f549914f9ece0e5c77715eb7ca7a57", "score": "0.59883034", "text": "public function init_form_fields()\n {\n $this->form_fields = include 'settings-fastspring.php';\n }", "title": "" }, { "docid": "c46b1912dc69c96515c596f3bd8f78cf", "score": "0.59806573", "text": "function Page_Loaded()\r\n\t{\r\n\t\t//echo \"<b>Page_Loaded</b>\";\r\n\t\t//$this->PrintTree();\r\n\t\t\r\n\t\t$this->_Loaded = true;\r\n\t\t\r\n\t\t//call the master loader\r\n\t\tif ($this->Master != null)\r\n\t\t{\r\n\t\t\t$this->Master->Page_Load();\r\n\t\t\t\r\n\t\t\t$this->Master->Page_Loaded();\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//call the control loader\r\n\t\tforeach ($this->Controls as $control)\r\n\t\t{\r\n\t\t\t$controlx =& $this->Controls[$control->ID];\r\n\t\t\t$controlx->Control_Load();\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->IsPostBack)\r\n\t\t{\r\n\t\t\t//call the control preloader(postback data loader)\r\n\t\t\tforeach ($this->Controls as $control)\r\n\t\t\t{\r\n\t\t\t\t$controlx =& $this->Controls[$control->ID];\r\n\t\t\t\t$controlx->Control_Preload();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//call the control postback\r\n\t\t\tforeach ($this->Controls as $control)\r\n\t\t\t{\r\n\t\t\t\t$controlx =& $this->Controls[$control->ID];\r\n\t\t\t\t$controlx->Control_Postback();\r\n\t\t\t}\r\n\t\t\r\n\t\t\t//call the postback event loader -> \r\n\t\t\t//NOTE: needs to come before the controls are loaded\r\n\t\t\t//WHY?? here it is after\r\n\t\t\r\n\t\t\t$this->Page_Postback();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b28c737649c62dd4e4db71fbe105e135", "score": "0.5942627", "text": "protected function beforeLoad()\n {\n $this->eventManager->dispatch('abstract_search_result_load_before', ['collection' => $this]);\n if ($this->eventPrefix && $this->eventObject) {\n $this->eventManager->dispatch($this->eventPrefix . '_load_before', [$this->eventObject => $this]);\n }\n }", "title": "" }, { "docid": "336e26287991120f717cbf0add1ad4f1", "score": "0.5934737", "text": "function loadFromForm() \n {\n\n if ( $_REQUEST[ 'submit' ] == $this->labels->getLabel('[yes]')) {\n $this->shouldDelete = true;\n }\n \n $this->wasSubmitted = true;\n \n }", "title": "" }, { "docid": "8851d03e242a751ac806a985a64c1a8a", "score": "0.59328145", "text": "protected function _beforeLoad(){}", "title": "" }, { "docid": "c10fe4c854f3bdd545f5e6bc70b986be", "score": "0.5892628", "text": "public function PreDispatch () {\n\t\tparent::PreDispatch();\n\t\t$this->form->AddJsSupportFile(\n\t\t\t$this->jsSupportingFile, $this->jsClassName, [$this->name]\n\t\t);\n\t}", "title": "" }, { "docid": "fbbc4286e7fc07b997e6953fdc8a73f9", "score": "0.5879444", "text": "protected function formSetup()\n {\n }", "title": "" }, { "docid": "799b86c75db9b4450cefa2b254898ae8", "score": "0.58752245", "text": "public function load_with_defaults ($form) {}", "title": "" }, { "docid": "ee14fb3b5c05ea794ee1b992e642539e", "score": "0.58584094", "text": "public function initForm()\n\t{\n\t\t$this->setStartState();\t\n\t\t\n\t\t// if it's a start of a form we want to set the session var that tells the form to post the data\n\t\tif($this->isStart())\n\t\t\t$this->setSessionPost();\n\t\t// if we've gone back on a ver. form we want to reset the session\n\t\tif($this->isVerOption())\n\t\t\t$this->setSessionPost();\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "c7eeb149d4a8ddbbfcdabda441896e9b", "score": "0.5854427", "text": "public function loadForm($form);", "title": "" }, { "docid": "5150cfcecf292f9d42efa640c97d1363", "score": "0.5854213", "text": "public function buildForm()\n {\n $this->_formBuilt = true;\n }", "title": "" }, { "docid": "52b00871fbbb8d0b297e61ba1d34a681", "score": "0.5843658", "text": "function loadFromForm() \r\n {\t \t \r\n\t $this->formName = $_REQUEST['form_name']; \t \r\n\t \r\n// \t echo 'Inside load_from_form of main page: <pre>'.print_r($this->formValues,true).'</pre><br>';\t \r\n\t \r\n\t\tswitch($this->formName) {\r\n\t\t\t\r\n\t\t\tcase 'basicStaffForm':\r\n\t\t\t\t$this->active_subPage = $this->basic_form;\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'scheduledActivityForm':\r\n\t\t\t\t$this->active_subPage = $this->optional_sheduled_activity_form;\t \r\n\t\t\t\tbreak;\t\r\n\t\t\tcase 'approvalForm':\r\n\t\t\t\t$this->active_subpage = null;\r\n\t\t\t\tbreak;\t\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tdie('VALID FORM NAME **NOT** FOUND; name = '.$this->formName);\r\n\t\t} \r\n\t\tif ($this->active_subPage == null)\r\n\t { \r\n\t\t\tparent::loadFromForm(); \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->active_subPage->loadFromForm(); \r\n\t\t} \r\n\t\t$this->form_submitted = true; \r\n \r\n }", "title": "" }, { "docid": "0d644bf44961d381469a5dffd1d37bb0", "score": "0.5841583", "text": "final public function load()\n\t\t{\n\t\t\t$this->onLoad();\n\t\t}", "title": "" }, { "docid": "994b433a880ddf792e1b2fbf6593bfd1", "score": "0.5829036", "text": "public function load()\n\t{\n\t\tif(isset($this->click_object))\n\t\t{\n\t\t\t$this->on_click($this->click_object);\n\t\t}\n\t\t\n\t\t$this->model->set_view_data(); //load the $view_data into the view_data\n\t\t$this->view->update();\n\t}", "title": "" }, { "docid": "47aabdaf27cab6c7c30131b1106c0577", "score": "0.58242995", "text": "function ControlOnLoad(){\n \t$this->Request->SetValue(\"library\", \"new\");\n \t$parent_id=$this->Request->ToNumber(\"parent_id\", 0);\n if ($parent_id>0) $this->Request->Form[\"parent_id\"]=$parent_id;\n //$this->UseBanners=Engine::isPackageExists($this->Kernel, \"banners\");\n parent::ControlOnLoad();\n }", "title": "" }, { "docid": "284736088a1f4c076c2335af3a651e35", "score": "0.5810903", "text": "function on_load_page() {\n\t\t//alowing this to be extended - examples:\n\t\t//add several metaboxes now, all metaboxes registered during load page can be switched off/on at \"Screen Options\" automatically, nothing special to do therefore\n\t//\tadd_meta_box('howto-metaboxes-sidebox-1', 'Sidebox 1 Title', array(&$this, 'on_sidebox_1_content'), $this->pagehook, 'side', 'core');\n\t\tadd_meta_box('howto-metaboxes-sidebox-2', 'Sidebox 2 Title', array(&$this, 'on_sidebox_2_content'), $this->pagehook, 'side', 'core');\n\t\tadd_meta_box('eshop-admin', __('eShop Admin','eshop'), array(&$this, 'on_contentbox_1_content'), $this->pagehook, 'normal', 'core');\n\t//\tadd_meta_box('howto-metaboxes-contentbox-2', 'Contentbox 2 Title', array(&$this, 'on_contentbox_2_content'), $this->pagehook, 'normal', 'core');\n\t//\tadd_meta_box('howto-metaboxes-contentbox-additional-1', 'Contentbox Additional 1 Title', array(&$this, 'on_contentbox_additional_1_content'), $this->pagehook, 'additional', 'core');\n\t//\tadd_meta_box('howto-metaboxes-contentbox-additional-2', 'Contentbox Additional 2 Title', array(&$this, 'on_contentbox_additional_2_content'), $this->pagehook, 'additional', 'core');\n\t}", "title": "" }, { "docid": "ddba79b9211f18359a033a244c5acc1a", "score": "0.5784194", "text": "public function onLoad($param)\n\t{\n\t\t$this->raiseEvent('OnLoad',$this,$param);\n\t}", "title": "" }, { "docid": "6015d3db2b771a3e76c3fb21516556cd", "score": "0.57686394", "text": "public function init()\r\n {\r\n BootstrapActiveForm_Asset::register($this->view);\r\n\r\n parent::init();\r\n }", "title": "" }, { "docid": "bf7810147f4a00c91a14e457ee70f029", "score": "0.5759586", "text": "public function init(){\r\n\t\t$elements = array(\r\n\t\t\t$this->input_element()\r\n\t\t);\r\n\t\t\r\n\t\t$this->create_form($elements);\r\n\t\t\r\n\t\tparent::init();\r\n\t}", "title": "" }, { "docid": "e5bfeb4f8d7ae0be420169d471bf739f", "score": "0.57407266", "text": "public function init()\n {\n parent::init();\n\n $this->form->onHook('displayError', function ($form, $fieldName, $str) {\n // default behavior\n $jsError = [$form->js()->form('add prompt', $fieldName, $str)];\n\n // if field is part of an accordion section, will open that section.\n $section = $form->getClosestOwner($form->getField($fieldName), '\\atk4\\ui\\AccordionSection');\n if ($section) {\n $jsError[] = $section->owner->jsOpen($section);\n }\n\n return $jsError;\n });\n }", "title": "" }, { "docid": "9edc6e5508abbb011fa06d78ac666d1f", "score": "0.5736921", "text": "function load_form()\n\t{\n\t\t# Get the passed details into the form data array if any\n\t\t$urldata = $this->uri->uri_to_assoc(4, array('company_id'));\n\t\tif(!is_numeric($urldata['company_id'])){\n if($this->userdata['company_id'])\n $urldata['company_id'] = $this->userdata['company_id']; \n \n }\n \n\t\t# User is editing\n\t\tif(!$urldata['company_id']){\n\t\t\t$data['company_id'] = $urldata['company_id'];\n\t\t\t$data['companydetails'] = $this->Query_reader->get_row_as_array('pick_company_by_id', array('company_id'=>$urldata['company_id']));\n\t\t}\n\t\t\n\t\t\n\t\t$data['userdetails'] = $this->session->userdata('alluserdata');\n\t\t$data['curPage'] = 'company';\n\t\t$this->load->view('userprofile/register', $data);\n\t}", "title": "" }, { "docid": "e8774e3754a0911b41a3e073f02964aa", "score": "0.5736081", "text": "public function on_init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "e8774e3754a0911b41a3e073f02964aa", "score": "0.5736081", "text": "public function on_init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "e8774e3754a0911b41a3e073f02964aa", "score": "0.5736081", "text": "public function on_init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "4f9728dd043862297f6d9dc9948113e0", "score": "0.5734414", "text": "public function load() {\n // $allAdmins = $adminManager->selectAll();\n // $this->addParam('allAdmins', $allAdmins);\n // $this->addParam('visibleFields', $this->visibleFields);\n }", "title": "" }, { "docid": "cba0ff814a6db602d2fe7ba5a2798d71", "score": "0.5713718", "text": "protected function afterLoad()\n {\n $this->eventManager->dispatch('abstract_search_result_load_after', ['collection' => $this]);\n if ($this->eventPrefix && $this->eventObject) {\n $this->eventManager->dispatch($this->eventPrefix . '_load_after', [$this->eventObject => $this]);\n }\n }", "title": "" }, { "docid": "b4d0b06de4e9154389187403c988830c", "score": "0.5707238", "text": "public function init()\n {\n //nastavi defaultni nazev ukolu\n if (empty($this->form_data['name']))\n {\n $this->form_data['name'] = __('appformiteminteresttask.default_task_name', array(':preview' => $this->model->advert->preview()));\n }\n\n //nastaveni defaultniho stavu 'active'\n if ( ! isset($this->form_data['active']))\n {\n $this->form_data['active'] = $this->getDefaultActiveStatus();\n }\n\n //standardni plugin pro tento prvek\n Web::instance()->addCustomJSFile(View::factory('js/jquery.AppFormItemInterestTask.js'));\n\n //kod, ktery provadi inicializaci pluginu\n parent::addInitJS(View::factory('js/jquery.AppFormItemInterestTask-init.js'));\n\n }", "title": "" }, { "docid": "3c3a95a1d2a6e2a032692fe6fa061616", "score": "0.57047015", "text": "protected function postInitializeAction() {}", "title": "" }, { "docid": "537af90acb7b6d821606db99c35ce93b", "score": "0.57029074", "text": "public function init()\n {\n $this->addSubForm(new LandlordsInsuranceQuote_Form_Subforms_PaymentSelection(), 'subform_paymentselection');\n }", "title": "" }, { "docid": "0d0de8e04892147989886b5816321679", "score": "0.56949914", "text": "public function load_form_edit()\n\t{\n\t\t$subAdmin = $this->SubAdmin->findById($this->Session->read('id'));\n\t\t$this->set('subAdmin', $subAdmin);\n\t}", "title": "" }, { "docid": "2b3eb4c3152e650dab63a1fe20036cf2", "score": "0.5694812", "text": "function loaded() {\n\t\tdo_action( 'scholarpress_researcher_loaded' );\n\t}", "title": "" }, { "docid": "4dd15b40aa178308a09c14df0eae48c8", "score": "0.5691576", "text": "public function onLoadOptions() {\n }", "title": "" }, { "docid": "b17ed604ddfc60f876940ddf885d0597", "score": "0.5688054", "text": "public function onReload()\n {\n Transaction::open('trunfo'); // inicia transação com o BD\n $repository = new Repository('Empresa');\n\n // cria um critério de seleção de dados\n $criteria = new Criteria;\n $criteria->setProperty('order', 'id');\n\n // obtém os dados do formulário de buscas\n $dados = $this->form->getData();\n\n // verifica se o usuário preencheu o formulário\n if ($dados->nome)\n {\n // filtra pelo nome do empresa\n $criteria->add(new Filter('nome_fantasia', 'like', \"%{$dados->nome}%\"));\n }\n\n // carrega as empresas que satisfazem o critério\n $empresas = $repository->load($criteria);\n $this->datagrid->clear();\n if ($empresas)\n {\n foreach ($empresas as $empresa)\n {\n // adiciona o objeto na Datagrid\n $this->datagrid->addItem($empresa);\n }\n }\n\n // finaliza a transação\n Transaction::close();\n $this->loaded = true;\n }", "title": "" }, { "docid": "8833acea86ee3b4b9e46311e7618d3b3", "score": "0.56830084", "text": "public function postLoad(LifecycleEventArgs $args): void;", "title": "" }, { "docid": "7f48d2003847768ffbd6bfed86c11cc5", "score": "0.5657629", "text": "public function onSaving()\n\t{\n\t\t$entry = $this->getFormEntry();\n\n\t\tif (!$entry->section_id && $section = $this->getSection()) {\n\t\t\t$entry->section_id = $section->getId();\n\t\t}\n\t}", "title": "" }, { "docid": "f2ba28b066bf78dac3fc4f9550b6630a", "score": "0.564629", "text": "public function onload() {\n $options = get_option( self::OPTION_NAME );\n if ( ! is_array( $options ) )\n $options = array();\n $this->existing_options = $options;\n\n $this->settings_api_init();\n }", "title": "" }, { "docid": "f1dc3a5acf771472d3e620620410b868", "score": "0.56412137", "text": "protected function onInit() { }", "title": "" }, { "docid": "b81c9edd80faaea3d4b0fa26eb7324aa", "score": "0.5637251", "text": "public function postConfigure()\n {\n if (self::$dispatcher)\n {\n self::$dispatcher->notify(new sfEvent($this, 'form.post_configure'));\n self::$dispatcher->notify(new sfEvent($this, sprintf('form.%s.post_configure', $this->getName())));\n }\n }", "title": "" }, { "docid": "970031f77dd85fc44ffdd1d20a96d150", "score": "0.5610535", "text": "public function register_form_init_scripts( $form ) {\n\t\tGFFormDisplay::add_init_script( $form['id'], $this->type . '_' . $this->id, GFFormDisplay::ON_PAGE_RENDER, $this->get_form_inline_script_on_page_render( $form ) );\n\t}", "title": "" }, { "docid": "b50024904bbb78e0c045fe303af5afe7", "score": "0.5609107", "text": "protected function afterValidate()\n {\n if ($this->hasErrors()) {\n $errors = $this->getErrors();\n $this->displayErrors($errors);\n }\n parent::afterValidate();\n }", "title": "" }, { "docid": "c7022ab9f5c3030eb489f7dca2f336cd", "score": "0.56022894", "text": "function initFormData()\n {\n $this->ViewState =\n array(\"hasCloseScript\" => \"false\"\n ,\"FormSubmitValue\" => \"update\"\n );\n }", "title": "" }, { "docid": "f24e7d0d08e4eaee97322456dc4506f6", "score": "0.55978644", "text": "public function onLoad($param)\n {\n // $this->ImagesRepeater->databind();\n }", "title": "" }, { "docid": "83967d0860116218323c5062d5a17c19", "score": "0.5591071", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('Flash');\n $this->loadComponent('Paginator');\n $this->loadComponent('ImageUpload'); //loading custom image upload and resize component\n }", "title": "" }, { "docid": "f62a81dc2c13beb470875f02f5ce1619", "score": "0.5590196", "text": "public function postInit()\n {\n }", "title": "" }, { "docid": "ffaa5efe1055b39bba1c21e2646f0dbf", "score": "0.55900085", "text": "function on_draw()\n\t{\n\t\t$last_form = &Form::$current;\n\t\tForm::$current = &$this;\n\t\t$this->draw();\n\t\tForm::$current=&$last_form;\n\t}", "title": "" }, { "docid": "6f695362292d2fc894617a9469f81bf9", "score": "0.5589424", "text": "private function loadFormParams() {\n $this->view->params[self::EVENT_TYPES] = $this->getEventsTypes();\n $this->view->params[self::SENSOR_DATA] = $this->getSensorsUrisTypesLabels();\n $this->view->params[self::INFRASTRUCTURES_DATA] = $this->getInfrastructuresUrisTypesLabels();\n\t $this->view->params[self::SCIENTIFICOBJECT_DATA] = $this->getScientificObjectsUrisTypesLabels();\n $this->view->params[self::UNIT_DATA] = $this->getUnitsUrisTypesLabels();\n $this->view->params[self::ACTUATOR_DATA] = $this->getActuatorsUrisTypesLabels();\n $this->view->params[self::VECTOR_DATA] = $this->getVectorsUrisTypesLabels();\n $this->view->params[self::VARIABLE_DATA] = $this->getVariablesUrisTypesLabels();\n $this->view->params[self::USER_DATA] = $this->getUsersUrisTypesLabels();\n $this->view->params[self::EXPERIMENT_DATA] = $this->getExperimentsUrisTypesLabels();\n $this->view->params[self::DOCUMENT_DATA] = $this->getDocumentsUrisTypesLabels();\n }", "title": "" }, { "docid": "3578c284d2761b14fefb38995d4848e7", "score": "0.558725", "text": "public function mlp_loaded() {\n do_action( 'mlp_init' );\n\t}", "title": "" }, { "docid": "ec24f1860aafa5296f4d09d51fa53745", "score": "0.5585594", "text": "public function ready() {\n // add scripts after page render\n $this->wire->addHookAfter('Page::render', function($event) {\n $event->return = str_replace('</head>', $this->renderAssets().'</head>', $event->return);\n $event->return = str_replace(\n '</body>',\n \"<script>document.dispatchEvent(new Event('DOMReady'))</script></body>\",\n $event->return\n );\n });\n\n // show only json data on ajax requests\n $this->wire->addHookBefore('Page::render', function($event) {\n $this->modules->get('InputfieldRockGrid')->handleAJAX();\n });\n }", "title": "" }, { "docid": "18182accc290ac86f3208773ac16be01", "score": "0.55808055", "text": "public function init() {\n\t\tif( ! is_callable( array( 'GFFormsModel', 'get_physical_file_path' ) ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_filter( 'gform_entry_post_save', array( $this, 'rename_uploaded_files' ), 9, 2 );\n\t\tadd_filter( 'gform_entry_post_save', array( $this, 'stash_uploaded_files' ), 99, 2 );\n\n\t\tadd_action( 'gform_after_update_entry', array( $this, 'rename_uploaded_files_after_update' ), 9, 2 );\n\t\tadd_action( 'gform_after_update_entry', array( $this, 'stash_uploaded_files_after_update' ), 99, 2 );\n\n\t}", "title": "" }, { "docid": "c3295bd25b40ba156cef4c927d9be1e7", "score": "0.5569105", "text": "function csl_ajax_onload() {\n $this->setPlugin();\n\n // Get Locations\n //\n $response = array();\n $locations = $this->execute_LocationQuery('sl_num_initial_displayed');\n foreach ($locations as $row){\n $response[] = $this->slp_add_marker($row);\n }\n\n // Output the JSON and Exit\n //\n $this->renderJSON_Response(\n array(\n 'count' => count($response) ,\n 'type' => 'load',\n 'response' => $response\n )\n );\n }", "title": "" }, { "docid": "0d9ee0ec2fc253b78d8e60e5e48597b7", "score": "0.55675846", "text": "public function init_form_fields() {\n $this->form_fields = require( plugin_dir_path( dirname( __FILE__ ) ) . 'admin/partials/kyber-settings.php' );\n }", "title": "" }, { "docid": "8451a7a6595cc82e13f1f7052fdef4dc", "score": "0.5563318", "text": "public function logic()\n\t{\n\t\t$query = Query::getQuery();\n\t\t$form = $this->getForm();\n\n\t\tif($form == false)\n\t\t\tthrow new CoreError('Unable to locate ' . $this->model->getType() . ' form');\n\n\t\t$this->form = $form;\n\t\tif($this->form->wasSubmitted())\n\t\t{\n\t\t\t$inputs = $this->form->checkSubmit();\n\t\t\tif($inputs && $this->formStatus = $this->processInput($inputs))\n\t\t\t{\n\t\t\t\tCacheControl::clearCache('models', $this->model->getType(), 'browseModelBy');\n\t\t\t\t$this->formStatus = true;\n\t\t\t\t$this->onSuccess();\n\t\t\t}else{\n\t\t\t\t$this->ioHandler->setStatusCode(400);\n\t\t\t}\n\t\t}\n\n\t\t$this->setSetting('titleRider', 'Base', ' New ' . $this->model->getType());\n\t}", "title": "" }, { "docid": "14cea2baf011acdd76d240ea2df93cc3", "score": "0.55586165", "text": "function _on_initialize()\n {\n }", "title": "" }, { "docid": "14cea2baf011acdd76d240ea2df93cc3", "score": "0.55586165", "text": "function _on_initialize()\n {\n }", "title": "" }, { "docid": "14cea2baf011acdd76d240ea2df93cc3", "score": "0.55586165", "text": "function _on_initialize()\n {\n }", "title": "" }, { "docid": "de6a12d9bb9235c6f19496fca0270124", "score": "0.55585134", "text": "public function PreDispatch () {\n\t\tparent::PreDispatch();\n\t\t$this->preDispatchTabIndex();\n\t\tif (!$this->translate) return;\n\t\t$form = & $this->form;\n\t\tif ($this->alt !== NULL && $this->alt !== '')\n\t\t\t$this->alt = $form->translate($this->alt);\n\t}", "title": "" }, { "docid": "4d91e0fe33403f8f13c74a2cc6182f39", "score": "0.5550962", "text": "function loadSeriesAdd() {\n \n // mark the value of the call back \n $formAction = $this->getCallBack();\n $this->pageDisplay = new page_SeriesAdd( '', null, $formAction );\n \n }", "title": "" }, { "docid": "3f240cf695509871c074968fcd165263", "score": "0.55472624", "text": "private function mpl_fully_loaded() {\n\t\t$this->loader->add_action( 'init', $this, 'mlp_loaded' );\n\t}", "title": "" }, { "docid": "2d7b8198a3c02b63fc6825b39a222494", "score": "0.55445206", "text": "public function onPrepareAdminForm($form);", "title": "" }, { "docid": "9810610d58982add3d9e3908271c57e3", "score": "0.5540665", "text": "public function PreDispatch () {\n\t\tparent::PreDispatch();\n\t\tif ($this->translate && $this->value)\n\t\t\t$this->value = $this->form->Translate($this->value);\n\t\t$this->preDispatchTabIndex();\n\t}", "title": "" }, { "docid": "6d9a17812f8720b86cb1f2790b9e59e0", "score": "0.55375844", "text": "public function _on_initialize()\n {\n $this->_require_type_value();\n\n if ($this->maxlength == -1) {\n if (property_exists($this->_type, 'maxlength')) {\n $this->maxlength = $this->_type->maxlength;\n }\n }\n if ($this->maxlength < 0) {\n $this->maxlength = 0;\n }\n }", "title": "" }, { "docid": "d90cbd19ddfb76ce3adc7e0b8a83a4f1", "score": "0.55357534", "text": "function onPreRender($param)\n\t{\n\t\t$this->validator2->enabled=true;\n\t}", "title": "" }, { "docid": "d6d67b5623eeec57346a9b97a707d024", "score": "0.55262464", "text": "public function onRun()\n {\n $this->postPage = $this->page['postPage'] = $this->property('postPage');\n $this->categoryPage = $this->page['categoryPage'] = $this->property('categoryPage');\n\n $this->onLoadPage($this->property('page'));\n }", "title": "" }, { "docid": "771b2ecfc76b9a3335d04d585f021673", "score": "0.5520857", "text": "public function page_init()\n { \n register_setting(\n $this->option_group, // Option group\n HtpasswdGenericOptions::$name, // Option name\n array( $this, 'sanitize_on_submit' ) // Sanitize\n );\n\n add_settings_section(\n $this->settings_section,\n 'Generic Settings',\n array( $this, 'print_section_info' ), // Callback\n $this->page_id // Page\n );\n \n $this->add_form_field('resource_paths', 'Resource/s path to protect (MUST exist)', 'resource_paths_callback');\n }", "title": "" }, { "docid": "544aa7a72178f4a43d26e283ec302906", "score": "0.5518257", "text": "public function onPreSubmit(FormEvent $event)\n {\n $data = $event->getData();\n $form = $event->getForm();\n\n if (!$data) {\n return;\n }\n\n $perimetreRlc = key_exists('perimetresRlc', $data) ? $data['perimetresRlc'] : null;\n\n $this->addPerimetresBrhpForm($form, $perimetreRlc);\n }", "title": "" }, { "docid": "49725eaa093300dd7a193d42aa500ed7", "score": "0.5516046", "text": "function form_init_data() \r\n\t{\r\n\t\t$this->set_hidden_element_value(\"operation_id\", \"submit\");\r\n\t}", "title": "" }, { "docid": "f1bb635640067e5424b56b7b5856d0e2", "score": "0.5513266", "text": "public function init()\n\t{\n $this->getPages()->validateCurrentPage = false;\n\t\tparent::init();\n\t}", "title": "" } ]
18830106990fc70fcee611896d84e7a3
Returns the configuration of core Podium components.
[ { "docid": "51b8437a3ad00e71b22f33e446e47c23", "score": "0.6509852", "text": "public function coreComponents(): array\n {\n return [\n 'account' => [\n 'class' => Account::class,\n 'podiumBridge' => true,\n ],\n 'category' => ['class' => Category::class],\n 'forum' => ['class' => Forum::class],\n 'group' => ['class' => Group::class],\n 'log' => ['class' => Log::class],\n 'member' => ['class' => Member::class],\n 'message' => ['class' => Message::class],\n 'permit' => ['class' => Permit::class],\n 'post' => ['class' => Post::class],\n 'rank' => ['class' => Rank::class],\n 'thread' => ['class' => Thread::class],\n ];\n }", "title": "" } ]
[ { "docid": "99ec5faa9018f33fd5584bb0a4e75573", "score": "0.6693868", "text": "protected function getConfig()\n {\n return System_Components::getComponentConfig($this->getComponentName());\n }", "title": "" }, { "docid": "ef19a78d1985106bc8b87dcfbbd4c57e", "score": "0.63970476", "text": "public static function Config()\n {\n return phoxy_conf();\n }", "title": "" }, { "docid": "8afb8bc90bd52d0f6c3b3eaa9a3a86ed", "score": "0.63198537", "text": "public function getConfiguration();", "title": "" }, { "docid": "8afb8bc90bd52d0f6c3b3eaa9a3a86ed", "score": "0.63198537", "text": "public function getConfiguration();", "title": "" }, { "docid": "8afb8bc90bd52d0f6c3b3eaa9a3a86ed", "score": "0.63198537", "text": "public function getConfiguration();", "title": "" }, { "docid": "8a79262e80a8ea8996ca9efa7ca00a16", "score": "0.62728816", "text": "public static function cfg()\r\n {\r\n return self::pkg()->getConfig();\r\n }", "title": "" }, { "docid": "8600fd38193884b4ffbfb23beda27aae", "score": "0.626986", "text": "public function coreComponents()\n {\n return [\n 'cdn' => ['class' => 'xutl\\aliyun\\components\\Cdn'],\n 'cloudAuth' => ['class' => 'xutl\\aliyun\\components\\CloudAuth'],\n 'cloudPhoto' => ['class' => 'xutl\\aliyun\\components\\CloudPhoto'],\n 'cloudPush' => ['class' => 'xutl\\aliyun\\components\\CloudPush'],\n 'dm' => ['class' => 'xutl\\aliyun\\components\\Dm'],\n 'dns' => ['class' => 'xutl\\aliyun\\components\\Dns'],\n 'domain' => ['class' => 'xutl\\aliyun\\components\\Domain'],\n 'green' => ['class' => 'xutl\\aliyun\\components\\Green'],\n 'httpDns' => ['class' => 'xutl\\aliyun\\components\\Dns'],\n 'jaq' => ['class' => 'xutl\\aliyun\\components\\Jaq'],\n 'live' => ['class' => 'xutl\\aliyun\\components\\Live'],\n 'mts' => ['class' => 'xutl\\aliyun\\components\\Mts'],\n 'slb' => ['class' => 'xutl\\aliyun\\components\\Slb'],\n 'scdn' => ['class' => 'xutl\\aliyun\\components\\Scdn'],\n 'sms' => ['class' => 'xutl\\aliyun\\components\\Sms'],\n 'vod' => ['class' => 'xutl\\aliyun\\components\\Vod'],\n 'vpc' => ['class' => 'xutl\\aliyun\\components\\Vpc'],\n ];\n }", "title": "" }, { "docid": "97aeab17b1b18c4e836c10e1257c4759", "score": "0.62514836", "text": "public function getBasicConfig();", "title": "" }, { "docid": "8428012c38923d86e98680583ddd4fcd", "score": "0.6240991", "text": "public function getConfigurations();", "title": "" }, { "docid": "60094138fb15267599872021b96ea3de", "score": "0.6223048", "text": "public function getConfig($component) {}", "title": "" }, { "docid": "885f156dfdb06056f879f0ef45ff6393", "score": "0.6222273", "text": "public function coreComponents() {\n return [\n 'log' => ['class' => 'Kant\\Log\\Dispatcher'],\n 'i18n' => ['class' => 'Kant\\I18n\\I18N'],\n 'files' => ['class' => 'Kant\\Filesystem\\Filesystem']\n ];\n }", "title": "" }, { "docid": "c3f185966140105fd7927220a63cd3ea", "score": "0.62173027", "text": "public function getConfig() {\n return $this->_call(\"configuration\", \"\");\n }", "title": "" }, { "docid": "ea4a908d2e24d3255af4210b1cbbf670", "score": "0.6194858", "text": "protected function loadCoreConfig()\n {\n $allModule = Config::get('cms.module.all', []);\n $thisModule = Config::get(\"cms.module.{$this->getModuleName()}\", []);\n\n $this->coreConfig = array_replace_recursive($allModule, $thisModule);\n\n return $this->coreConfig;\n }", "title": "" }, { "docid": "b5f4b330034ac9d0cb76fd2e36a9336e", "score": "0.61839", "text": "public function getConfiguration() {\n\n\t}", "title": "" }, { "docid": "d1cf6ef13c574e14e7c077b79b075be7", "score": "0.6173867", "text": "public function getConfiguration()\n {\n return self::$config;\n }", "title": "" }, { "docid": "d1cf6ef13c574e14e7c077b79b075be7", "score": "0.6173867", "text": "public function getConfiguration()\n {\n return self::$config;\n }", "title": "" }, { "docid": "84d8d403e5dc0383637e663e0a14ab0a", "score": "0.6126476", "text": "public function getSystemConfiguration();", "title": "" }, { "docid": "2f14290d47e1ec1acf72f17e41fa51f0", "score": "0.61220604", "text": "protected function get_root_config()\n\t{\n\t\treturn Jquarry_Primitive::factory('config', Jquarry_Filestore::instance()->path(Kohana::$config->load('jquarry.component.root_config')));\n\t}", "title": "" }, { "docid": "7a68b7e15f73e6edd9bd982a4f151d7e", "score": "0.6104361", "text": "public function getConfiguration(): array;", "title": "" }, { "docid": "a9640ec19d6b0cb617fe416f5df71e91", "score": "0.6079046", "text": "public function config()\n {\n return $this->_client->getConfig();\n }", "title": "" }, { "docid": "474786d2e0f11c6e89618504e7f6791b", "score": "0.6059057", "text": "function Config() {\n\t\treturn DefaultConfig::getInstance();\n\t}", "title": "" }, { "docid": "08930e7d24f31fa4c6e16c670070d34f", "score": "0.6046585", "text": "static public function config()\n {\n return self::$app->config;\n }", "title": "" }, { "docid": "e72b102c2dab28484f99109b290b730a", "score": "0.60346586", "text": "abstract public function getConfig();", "title": "" }, { "docid": "36b153e215f9e6dd86a6fdb00a7f0ef1", "score": "0.60048896", "text": "public function getPluginConfiguration();", "title": "" }, { "docid": "36b153e215f9e6dd86a6fdb00a7f0ef1", "score": "0.60048896", "text": "public function getPluginConfiguration();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.6003288", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.6003288", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.6003288", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.6003288", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.6003288", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.6003288", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.6003288", "text": "public function getConfig();", "title": "" }, { "docid": "88036d2d3b38154d8ff418b57d7d58db", "score": "0.6003288", "text": "public function getConfig();", "title": "" }, { "docid": "37f56555990912b9900c117e32a35b0d", "score": "0.59607095", "text": "public static function getConfig();", "title": "" }, { "docid": "b1d64df324604813d7dcf98272d7ee28", "score": "0.59561276", "text": "public static function getConfig(){\n return self::$_instance->configuration;\n }", "title": "" }, { "docid": "966581d4bf4b32c360d15e3a88f43c66", "score": "0.59532994", "text": "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "8b81e7bf52f95b0ff00b506a8ac5feef", "score": "0.5939691", "text": "public function config(): array;", "title": "" }, { "docid": "8b81e7bf52f95b0ff00b506a8ac5feef", "score": "0.5939691", "text": "public function config(): array;", "title": "" }, { "docid": "3d916833d0d1fe18389461f9f0380fb1", "score": "0.5920914", "text": "public function config() \n\t{\n\t\tif (!isset($this->config)) {\n\t\t\t$this->loadConfig();\n\t\t}\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "23473a04c010d49868e5a714bdbd470c", "score": "0.5904734", "text": "public function getConfig()\n {\n return config();\n }", "title": "" }, { "docid": "57465ec390400a53efae7f61ca37d006", "score": "0.58577704", "text": "abstract protected function getConfig();", "title": "" }, { "docid": "66a06d4bcd1e3482a9f6938336865ace", "score": "0.58482", "text": "protected static function config()\n {\n return [];\n }", "title": "" }, { "docid": "ea119d8f5ca60f2570326ee326c8001e", "score": "0.58447576", "text": "abstract protected function getConfiguration();", "title": "" }, { "docid": "ea119d8f5ca60f2570326ee326c8001e", "score": "0.58447576", "text": "abstract protected function getConfiguration();", "title": "" }, { "docid": "6087af5c915c4a83827cbcb181195d0a", "score": "0.583689", "text": "public static function config()\n {\n return Config::forClass(get_called_class());\n }", "title": "" }, { "docid": "a5f19b7d1aa67292aa0b33e6ccdd314a", "score": "0.5834299", "text": "public static function getConfig() {\n\t\treturn static::$config;\n\t}", "title": "" }, { "docid": "93bf8d2091303e14ad3308223f14e902", "score": "0.58309054", "text": "public static function getConfig()\n {\n return self::$config;\n }", "title": "" }, { "docid": "4bcde483d89242c36647e1fbea53b0a1", "score": "0.5825", "text": "public function getConfig()\r\n\t{\r\n\t\treturn Config::getInstance();\r\n\t}", "title": "" }, { "docid": "794385c26454f3c0fa9fa7ec97a976c8", "score": "0.5823843", "text": "public function GetCoinfig() { return $this->config; }", "title": "" }, { "docid": "17c6bf6ef2c32c2413a407ebdf795ee0", "score": "0.58223355", "text": "public function config() : array;", "title": "" }, { "docid": "7391c3b3584dfb434ed46eb9505c4b6d", "score": "0.58103484", "text": "private function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "3c45de32e123ea9efd05e6f333ccd1a9", "score": "0.580943", "text": "public static function getConfig(){\n\t\treturn self::$config;\n\t}", "title": "" }, { "docid": "1dae9bae6b242c68a499f0320521a031", "score": "0.58062655", "text": "public function getConfig() {}", "title": "" }, { "docid": "c6b88c5ed2d8124835a1968cda1766f9", "score": "0.5795033", "text": "protected function getComponentConfiguration()\n {\n $components = $this->storageApiClient->indexAction();\n\n foreach ($components[\"components\"] as $c) {\n if ($c[\"id\"] == $this->componentName) {\n return $c;\n }\n }\n\n // no component configuration found\n return [];\n }", "title": "" }, { "docid": "d2c8feddc83604a0e92916eb2551a632", "score": "0.57888854", "text": "public function get_config()\n {\n return $this->config;\n }", "title": "" }, { "docid": "deeb3f94663dc7a59ae0584c02a8986e", "score": "0.578572", "text": "public function getConfig(){\n\t\treturn $this->defaultConfig;\n\t}", "title": "" }, { "docid": "1c4e4cd1d57792057675d2e7687eb001", "score": "0.5776325", "text": "public function getConfiguration() {\n\t\treturn $this->configuration;\n\t}", "title": "" }, { "docid": "ee605815b66e79478a1ff4d8c0d9b63d", "score": "0.5776006", "text": "public function config()\n {\n return $this->config;\n }", "title": "" }, { "docid": "78646cabccfe64f2bd8a6054566be9ed", "score": "0.57613134", "text": "public function get_config()\n {\n return $this->config;\n }", "title": "" }, { "docid": "d6545e17eb417bed0043903cefe875ee", "score": "0.575377", "text": "public function getConfiguration()\n {\n return [\n 'preferences' => [\n CookieManagerInterface::class => \\Magento\\TestFramework\\CookieManager::class,\n StoreManagerInterface::class => \\Magento\\TestFramework\\Store\\StoreManager::class,\n ScopeConfigInterface::class => \\Magento\\TestFramework\\App\\Config::class,\n \\Magento\\Framework\\App\\Config::class => \\Magento\\TestFramework\\App\\Config::class,\n BackendConfig::class => \\Magento\\TestFramework\\Backend\\App\\Config::class,\n ReinitableConfig::class => \\Magento\\TestFramework\\App\\ReinitableConfig::class,\n MutableScopeConfig::class => \\Magento\\TestFramework\\App\\MutableScopeConfig::class,\n ]\n ];\n }", "title": "" }, { "docid": "6455b71aada6657c162a9dd4e7e432ea", "score": "0.57531166", "text": "public function GetConfig()\n\t{\n\t\treturn $this->projectConfig;\n\t}", "title": "" }, { "docid": "6455b71aada6657c162a9dd4e7e432ea", "score": "0.57531166", "text": "public function GetConfig()\n\t{\n\t\treturn $this->projectConfig;\n\t}", "title": "" }, { "docid": "4992ff19766e7e357d38065c798faadc", "score": "0.57520205", "text": "public function own_components() {\n\t\treturn array(\n\t\t\t'pricing_table' => array(\n\t\t\t\t'config' => array(\n\t\t\t\t\t'PricingPalette' => array(\n\t\t\t\t\t\t'config' => array(),\n\t\t\t\t\t\t'extends' => 'PalettesV2',\n\t\t\t\t\t),\n\t\t\t\t\t'PriceInstances' => array(\n\t\t\t\t\t\t'config' => array(\n\t\t\t\t\t\t\t'sortable' => true,\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'typography' => array( 'hidden' => true ),\n\t\t\t'animation' => array(\n\t\t\t\t'disabled_controls' => array(\n\t\t\t\t\t'.btn-inline:not(.anim-animation)',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'shadow' => array(\n\t\t\t\t'config' => array(\n\t\t\t\t\t'disabled_controls' => array( 'text' ),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'layout' => array(\n\t\t\t\t'disabled_controls' => array(\n\t\t\t\t\t'Overflow',\n\t\t\t\t\t'ScrollStyle',\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "d02f9f6d86163d19b4f2937e42e977a6", "score": "0.57504433", "text": "public static function getConfiguration() {\n\n return self::$xml;\n }", "title": "" }, { "docid": "61f9b312aafabe80794d560f08b03470", "score": "0.57432497", "text": "public function getConfiguration() {\n return $this->configuration;\n }", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.57421386", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "c219179d86aa5566df6825d3506002c9", "score": "0.57421386", "text": "public function getConfiguration()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "83489767c86fcce5aa6d85f0536593a7", "score": "0.5737958", "text": "public function getConfig() : array;", "title": "" }, { "docid": "0908c96a93b03d5694b18ef3c1fa3dc4", "score": "0.57336706", "text": "public function getConfig()\n\t{\n\t\treturn [\n\t\t\t'js_composer' => [\n\t\t\t\t'classes' => '',\n\t\t\t\t'bin' => '',\n\t\t\t\t'public' => '',\n\t\t\t\t'boot' => '',\n\t\t\t\t'bootfiles' => [\n\t\t\t\t\t'pages' => [\n\t//\t\t\t\t\t'{CONTROLLER_CLASS}' => [\n\t//\t\t\t\t\t\t'actions' => [\n\t//\t\t\t\t\t\t\t'{ACTION_NAME}' => ['{BOOTFILE1}', '{BOOTFILE3}']\n\t//\t\t\t\t\t\t],\n\t//\t\t\t\t\t\t'bootfiles' => ['{BOOTFILE1}', '{BOOTFILE2}']\n\t//\t\t\t\t\t]\n\t\t\t\t\t],\n\n\t\t\t\t\t'errors' => [\n\t\t\t\t\t\t'specific' => [\n\t\t\t\t\t\t\t//'{ERROR}' => ['{BOOTFILE1}', '{BOOTFILE2}']\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'default' => [\n\t\t\t\t\t\t\t//['{BOOTFILE1}', '{BOOTFILE2}']\n\t\t\t\t\t\t]\n\t\t\t\t\t],\n\n\t\t\t\t\t'default' => [\n\t\t\t\t\t\t//['{BOOTFILE1}', '{BOOTFILE2}']\n\t\t\t\t\t]\n\t\t\t\t],\n\t\t\t]\n\t\t];\n\t}", "title": "" }, { "docid": "ed821b4e7925edeacb1db4cf41cc76ec", "score": "0.5726596", "text": "public function getConfig(): array;", "title": "" }, { "docid": "15227c532b31cac20ec1a2f65ede6a9c", "score": "0.57223225", "text": "public function config();", "title": "" }, { "docid": "c4a0bf79bfd4196b44035958b0fa512d", "score": "0.5718751", "text": "public function getConfig()\n {\n $coreModuleConfig = new ZendConfig( parent::getConfig() );\n $sliceModuleConfig = new ZendConfig( include __DIR__ . '/config/module.config.php' );\n\n $mergedConfig = $coreModuleConfig->merge( $sliceModuleConfig );\n return $mergedConfig->toArray();\n }", "title": "" }, { "docid": "8cac0ec539438f1e3a9a29ce109b5266", "score": "0.5705694", "text": "public function getAllConfigElements(){\n\t\treturn $this->allConfigInfo;\n\t}", "title": "" }, { "docid": "90289525b72805e109a871ec3c3501a0", "score": "0.56969345", "text": "public function getConfiguration() {\n\n return $this->configuration;\n\n }", "title": "" }, { "docid": "0d9bb68edf89728bf7936e0461ae7304", "score": "0.5694421", "text": "static public function getConfig() {\r\n return self::registry('config');\r\n }", "title": "" }, { "docid": "bbb8bc1a00f8ee14f449e3f6b91e3379", "score": "0.5688892", "text": "public function getConfig() {\n return $this->config;\n }", "title": "" }, { "docid": "c26ab3c4e9db0a2c0acf2d512b72ea8c", "score": "0.567395", "text": "public function getConfig() {\n\t\treturn $this->multiClient->getConfig();\n\t}", "title": "" }, { "docid": "81c3fcf0b2861ee74a7df7f454065fe7", "score": "0.56608516", "text": "public function getConfig()\n {\n return $this->parentGetConfig();\n }", "title": "" }, { "docid": "ea8816c394d957179d7a68aded5253ab", "score": "0.56572884", "text": "public function getConfig() {\n return $this->pluginCfg;\n }", "title": "" }, { "docid": "91fedbffe297d423185156a35ed3b801", "score": "0.56561303", "text": "public function config():array\n {\n return [\n 'rpcHost' => $this->rpcHost,\n 'rpcPort' => $this->rpcPort,\n 'rpcPassword' => $this->rpcPassword,\n ];\n }", "title": "" }, { "docid": "ec39372bf3b522ac1d2ab65f371ebc94", "score": "0.5655165", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "b7b9c3af39db100c7454fcaa1517982f", "score": "0.56528866", "text": "public function componentSettings();", "title": "" }, { "docid": "d47c68a92b9e9bf45637a628863318bc", "score": "0.5650689", "text": "public function getConfig(): \\Nipwaayoni\\Config\n {\n return $this->config;\n }", "title": "" }, { "docid": "73006e6dd5c36a9109ff13e96e4aa198", "score": "0.5644139", "text": "public static function getConfig() {\n if (!isset(self::$cConfig)) {\n self::$cConfig = new CConfig(SYSTEM_CONFIG_PATH);\n self::$cConfig->load();\n }\n return self::$cConfig;\n }", "title": "" }, { "docid": "5aeec4c581cad2711f4d2004f797776c", "score": "0.56440645", "text": "public function own_components() {\n\t\t$components = array(\n\t\t\t'tqb_question' => array(\n\t\t\t\t'config' => array(\n\t\t\t\t\t'Palettes' => array(\n\t\t\t\t\t\t'config' => array(),\n\t\t\t\t\t\t'important' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'ProgressBar' => array(\n\t\t\t\t\t\t'config' => array(\n\t\t\t\t\t\t\t'name' => '',\n\t\t\t\t\t\t\t'label' => __( 'Progress Bar', 'thrive-quiz-builder' ),\n\t\t\t\t\t\t\t'default' => true,\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'css_suffix' => '',\n\t\t\t\t\t\t'css_prefix' => '',\n\t\t\t\t\t\t'extends' => 'Switch',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'typography' => array( 'hidden' => true ),\n\t\t\t'animation' => array( 'hidden' => true ),\n\t\t\t'responsive' => array( 'hidden' => true ),\n\t\t\t'styles-templates' => array( 'hidden' => true ),\n\t\t);\n\n\t\treturn array_merge( $components, $this->group_component() );\n\t}", "title": "" }, { "docid": "af57d8c9a0272d167a0cf35b27331397", "score": "0.5635339", "text": "public function getConfig(){\n return $this->config;\n }", "title": "" }, { "docid": "0aa5830e7992a1afc148e0b15faabe3b", "score": "0.56351763", "text": "public function getConfig()\n {\n return [];\n }", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.56272995", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.56272995", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.56272995", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.56272995", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "33472e8f0030562a3b82da9bb3947475", "score": "0.5625348", "text": "public function getAppConf()\n {\n $data = \\core\\module\\files::read($this->core->setting['DOCUMENT_ROOT'].$this->core->setting['app']['dir'].'/app/conf.json');\n $conf = json_decode($data,true);\n unset($data);\n return $conf;\n }", "title": "" }, { "docid": "81c906e450a97fc5bcc963e3e0d5213f", "score": "0.56220555", "text": "private function getConfig() {\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "896d10d8daf60d26b72a2d8af74080cb", "score": "0.5619433", "text": "public function getConfig()\n {\n return $this->loadConfig(__DIR__ . '/resources/config/config.php');\n }", "title": "" }, { "docid": "7f53fe3679172498a8f3cdca12438516", "score": "0.5616557", "text": "public function config(): array\n {\n return $this->config;\n }", "title": "" }, { "docid": "b757efb79484ebf5d1fe6b51467cb4cb", "score": "0.56103134", "text": "public function getConfig() {\n return $this->config;\n }", "title": "" }, { "docid": "a65212530da6dd3c29c15c70a2e85502", "score": "0.56102765", "text": "public function getConfig() {\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.56102425", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.56102425", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.56102425", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" } ]
09a91ae7280401dcb78b794d11dff61e
Delete only one record
[ { "docid": "7993e0fa38cba35265ac8046e2f355a1", "score": "0.0", "text": "public function delete_record($table, array $condition){\n \n $where = '';\n foreach ($condition as $key=>$value) {\n $type = 'varchar';\n if(is_numeric($value)){\n $type = 'integer';\n }\n $where .= $key . ' = ' . $this->quote($value,$type) . ' AND ';\n }\n \n $where = rtrim($where, ' AND ');\n \n if (!empty($where)) {\n //to modify only one record\n $where .= ' LIMIT 1';\n $sql = \"DELETE FROM $table WHERE $where\";\n\n $result = $this->DB->query($sql);\n \n if ($this->DB->errno) {\n Connector_relationaldb::throwException($this->DB->error, $this->DB->errno);\n return false;\n }\n \n return $result;\n }\n \n return false;\n }", "title": "" } ]
[ { "docid": "835208e49478d6284b4820a459a9abe6", "score": "0.7387023", "text": "public function delete() {\n\t\treturn db_query(\"DELETE FROM `%s` WHERE `id` = %d LIMIT 1\", $this->table, $this->id);\n\t}", "title": "" }, { "docid": "b43ca359e56df71e63dbb260a4936071", "score": "0.735854", "text": "public function delete()\n\t\t{\n\t\t\t$pkStatement = $this->createPkStatement();\n\t\t\t\n\t\t\t$sql = \"DELETE FROM `\" . $this->_dbAdapter->escape($this->_tableName) . \"` WHERE \" . $where_expr . \" LIMIT 1\";\n\t\t\t$this->_dbAdapter->exec($sql);\n\t\t}", "title": "" }, { "docid": "cafd35dfde1dc3b0deb4c9a5c7c93475", "score": "0.7204316", "text": "public function delete(){\n\t\t\t$this->deleted = 1;\n\t\t\t$this->save();\n\t\t}", "title": "" }, { "docid": "6480b3163c5875ea17b3b99dfe91b281", "score": "0.71074367", "text": "public function delete(){\n $record_id = isset($_POST['record_id'])? $_POST['record_id']:'';\n if($record_id === '')\n return;\n \n $this->record_obj\n ->ready()\n ->delete()\n ->where([\n 'record_id' => $record_id\n ])\n ->go();\n }", "title": "" }, { "docid": "10a0bc0ae400e831575486fbf474250f", "score": "0.70901215", "text": "public function delete(){\n $where = $this->idField . \" = '\" . $this->{$this->idField} . \"'\";\n return $this->adapter->delete($this->table, $where);\n }", "title": "" }, { "docid": "9d61d6d0e3d2ada66951c71af2910bd4", "score": "0.70513624", "text": "public function delete() \r\n\t{\r\n\t\t$this->_table->delete ('id='.$this->id);\r\n\t}", "title": "" }, { "docid": "0fbed1b1b5183da5683451dfd8f643b2", "score": "0.7032787", "text": "public function delete(){\n\t\t\tLoader::db()->Execute(\"DELETE FROM {$this->tableName} WHERE id = ?\", array($this->id));\n\t\t}", "title": "" }, { "docid": "eedfca7119bd40cc5d2a07d04406694c", "score": "0.70118487", "text": "public function delete(){\n $db = self::dbConnect();\n $del = $db->prepare('DELETE FROM ' . self::TABLE_NAME . ' WHERE id=?');\n $del->execute([$this->id]);\n $del->closeCursor();\n }", "title": "" }, { "docid": "04ef3a6317f9eec2d9f4c09b2f514136", "score": "0.6985276", "text": "public function delete()\n {\n $primary = self::getPrimaryColumn();\n return self::db()->Execute(\"DELETE FROM \" . self::getTableName() . \" WHERE {$primary} = ?\", [$this->{$primary}]);\n }", "title": "" }, { "docid": "04d2bcd1e35222007bf4005ffd2976ed", "score": "0.69812876", "text": "public function delete(){\n\n global $database;\n\n $sql = \" DELETE FROM \" .self::$db_table. \" \";\n $sql.= \" WHERE id= \". $database->escape_string($this->id);\n $sql.= \" LIMIT 1\";\n debugger($sql,true);\n $database->query($sql);\n return (mysqli_afftected_rows($database->connection) == 1) ? true : false;\n\n \n\n }", "title": "" }, { "docid": "e6a3c561025e1dd952d8ebcb27327bb4", "score": "0.6951089", "text": "private function deleteRecord()\n {\n $sql = \"DELETE FROM \" . self::TABLENAME_STATE;\n $sql.= \" WHERE \" . self::DBCOL_ID_INSERT . \"= $this->_insert_id \";\n\n $this->db->query($sql);\n }", "title": "" }, { "docid": "1b524fa17d66d0e5a020f5fa83a298e5", "score": "0.6934946", "text": "public function testDeleteOneRow() {\r\n $delete = $this->_database->delete();\r\n $original = $this->_database\r\n ->select()\r\n ->from('version')\r\n ->fetchAll();\r\n $first = current($original);\r\n\r\n $delete->setTable('version')\r\n ->where('id = ?', $first['id'])\r\n ->run();\r\n $deleted = $this->_database\r\n ->select()\r\n ->from('version')\r\n ->fetchAll();\r\n\r\n $this->assertEquals(1, count($original) - count($deleted));\r\n }", "title": "" }, { "docid": "da3060257d4b30e8c85a7f97fa2bb8f5", "score": "0.692983", "text": "public function delete()\n {\n $this->deleteById($this->field['id']);\n }", "title": "" }, { "docid": "d22ec6b1bfead1ecb5d86866ebfac621", "score": "0.69143254", "text": "public function delete() {\n\t\tif ($this->_newRecord) {\n\t\t\tthrow new Exception(\"Can't delete new record\");\n\t\t}\n\n\t\t$this->_beforeDelete();\n\n\t\t$criteria = array('_id' => $this->mongoId());\n\t\tstatic::collection()->remove($criteria, array('justOne' => true, 'safe' => true));\n\n\t\t$this->_afterDelete();\n\t}", "title": "" }, { "docid": "1eba57e910734c2ea107a5554b6ac8cb", "score": "0.69140947", "text": "function del_single($table,$key) {\n\n $success = $this->db->delete($table, array('id' => $key));\n\n if($success){\n\n return true;\n\n }else{\n\n return false;\n\n }\n }", "title": "" }, { "docid": "c5b716f1c853ccc2e20233319a7c76bc", "score": "0.6872961", "text": "function delete_record()\n {\n global $app;\n\t\t$numargs = func_num_args();\n\t\t$args = func_get_args();\n\t\t$sql = \"delete from {$app[table][$args[0]]} where 0!=0 \";\n\t\tif ($numargs == 2):\n\t\t\tif (is_array($args[1])):\n\t\t\t\tfor ($x=0; $x < count($args[1]); $x++):\n\t\t\t\t\t$sql .= \"or id = '{$args[1][$x]}' \";\n\t\t\t\tendfor;\n\t\t\telse:\n\t\t\t\t$sql .= \"or id = '$args[1]' \";\n\t\t\tendif;\n\t\telse:\n\t\t\tif (is_array($args[2])):\n\t\t\t\tfor ($x=0; $x < count($args[2]); $x++):\n\t\t\t\t\t$sql .= \"or $args[1] = '{$args[2][$x]}' \";\n\t\t\t\tendfor;\n\t\t\telse:\n\t\t\t\t$sql .= \"or $args[1] = '$args[2]' \";\n\t\t\tendif;\n\t\tendif;\t\t\n \tdb::qry($sql);\n }", "title": "" }, { "docid": "c5b716f1c853ccc2e20233319a7c76bc", "score": "0.6872961", "text": "function delete_record()\n {\n global $app;\n\t\t$numargs = func_num_args();\n\t\t$args = func_get_args();\n\t\t$sql = \"delete from {$app[table][$args[0]]} where 0!=0 \";\n\t\tif ($numargs == 2):\n\t\t\tif (is_array($args[1])):\n\t\t\t\tfor ($x=0; $x < count($args[1]); $x++):\n\t\t\t\t\t$sql .= \"or id = '{$args[1][$x]}' \";\n\t\t\t\tendfor;\n\t\t\telse:\n\t\t\t\t$sql .= \"or id = '$args[1]' \";\n\t\t\tendif;\n\t\telse:\n\t\t\tif (is_array($args[2])):\n\t\t\t\tfor ($x=0; $x < count($args[2]); $x++):\n\t\t\t\t\t$sql .= \"or $args[1] = '{$args[2][$x]}' \";\n\t\t\t\tendfor;\n\t\t\telse:\n\t\t\t\t$sql .= \"or $args[1] = '$args[2]' \";\n\t\t\tendif;\n\t\tendif;\t\t\n \tdb::qry($sql);\n }", "title": "" }, { "docid": "4955d9f83983ad94decb718554700162", "score": "0.6862685", "text": "public function delete()\n {\n if ($this->isNew()) {\n throw $this->_exception('ERR_CANNOT_DELETE_NEW_RECORD', array(\n 'class' => get_class($this),\n ));\n }\n \n if ($this->isDeleted()) {\n throw $this->_exception('ERR_DELETED', array(\n 'class' => get_class($this),\n ));\n }\n \n $this->_preDelete();\n \n $primary = $this->getPrimaryCol();\n $where = array(\n \"$primary = ?\" => $this->getPrimaryVal(),\n );\n \n $this->_model->delete($where);\n \n $this->_setSqlStatus(self::SQL_STATUS_DELETED);\n \n $this->_postDelete();\n }", "title": "" }, { "docid": "8d16c46a155d23e2585c4a2a72abcd4c", "score": "0.68321913", "text": "public function delete(){\n\t\tif( false == $this->getId() ) return;\n\t\treturn $this->getMapper()->delete( ( int ) $this->getId() );\n\t}", "title": "" }, { "docid": "9eb3ac1f092ec4b2947d44e7b9c83ac0", "score": "0.68147826", "text": "public function deleteRow() {\r\n\r\n $query = \"DELETE FROM autosave WHERE id = ?\";\r\n\r\n $stmt = $this->_db->prepare($query);\r\n $stmt->bindParam(1, $this->id);\r\n\r\n if($result = $stmt->execute()) {\r\n\r\n return true;\r\n } else {\r\n\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "df360d409ccec8fec5112517f6022429", "score": "0.6811441", "text": "public function delete()\n\t{\n\t\t$model = $this->model;\n\t\t$primary = $model->primary;\n\n\t\treturn $model->delete($this->$primary);\n\t}", "title": "" }, { "docid": "21aa697bb63c30c83503a11f12bc42aa", "score": "0.6803665", "text": "public function delete($row = '');", "title": "" }, { "docid": "6348f4ab28356e3f30cf10284cf84317", "score": "0.6796628", "text": "public function delete()\n \t{\n \t\tif (!$this->exists()) return false;\n \t\t$table = $this->table();\n \t\t$table->delete($this->where());\n \t}", "title": "" }, { "docid": "750eaf920166d4247f918850b81133d4", "score": "0.67942387", "text": "function delete() {\r\n $this->db->delete(self::table_name, array('id' => $this->id));\r\n }", "title": "" }, { "docid": "a285cb03edfb99878e677f2d4b8d525b", "score": "0.67941993", "text": "public function i_delete() {\n $id_name = $this->table_identifier;\n $this->db->where($id_name,$this->$id_name);\n return $this->db->delete($this->table_name);\n }", "title": "" }, { "docid": "fc89e1d56c9cfe9c430db1fa114e2569", "score": "0.67918843", "text": "public function one_delete($pk) {\n return false;\n }", "title": "" }, { "docid": "11a088e5d35cd36e05044c19d209af72", "score": "0.677795", "text": "public function delete()\n\t{\n\t\t$records = $this->execute();\n\n\t\tforeach($records as $record)\n\t\t\t$record->delete();\n\t}", "title": "" }, { "docid": "0113eb23abe8c902841aca18aaf66203", "score": "0.6775848", "text": "function delete($data)\n\t\t{\t\t\n\t\t\t$this->db->query(\"DELETE FROM lecturer WHERE id=\".$data.\" LIMIT 1\");\t\t\n\t\t}", "title": "" }, { "docid": "463aa4f5b54e593843ddbd412fa572b2", "score": "0.6772756", "text": "function delete()\r\n\t{\r\n\t\tglobal $sql;\r\n\t\t$sql->Query(\"DELETE FROM $this->tablename WHERE id = '$this->id'\");\r\n\t}", "title": "" }, { "docid": "d362db6b993fba28c6cca0ffbdfb2810", "score": "0.6753928", "text": "public function delete() {\n\t\tglobal $database;\n\t\t// Construct the delete query.\n\t\t$sql = \t\"DELETE FROM \".static::$tableName.\" \";\n\t\t$sql .= \"WHERE \".static::$dbFields[0].\"=\". $this->getPk() . \";\";\n\t\t$sql .= \" LIMIT 1\";\n\t\t// Send query to database\n\t\t$database->query($sql);\n\t\t// Check whether a row has been affected to see if the query was successfull\n\t\treturn ($database->affectedRows() == 1) ? true : false;\n\t}", "title": "" }, { "docid": "c3aadcced5261162903681d72f75036e", "score": "0.6753747", "text": "public function del(){\n\t\t$sql = \"delete from \".self::$tablename.\" where id=$this->id\";\n\treturn\tExecutor::doit($sql);\n\t}", "title": "" }, { "docid": "6f8a92c0a6e8cf5f11122860f5b050e8", "score": "0.67448217", "text": "public function delete(){\n\n $pk_val = $this->data[$this->_pk];\n $qry = \"DELETE FROM $this->_table WHERE $this->_pk = $pk_val\";\n $this->query($qry, \"Delete error: \");\n\n return $this;\n\t}", "title": "" }, { "docid": "e3ab9cc15122d082feda1f8b065fabaf", "score": "0.6740768", "text": "public function del(){\n\t\t$sql = \"delete from \".self::$tablename.\" where id=$this->id\";\n\t\treturn\tExecutor::doit($sql);\n\t}", "title": "" }, { "docid": "624ea6e2f0dd8b3dd57735e2f2d112e8", "score": "0.6714483", "text": "public function delete()\n {\n $db = Database::connection();\n return $db->Execute(\"DELETE FROM {$this->table} {$this->getWhereClause()}\", $this->values);\n }", "title": "" }, { "docid": "408cee806ef8af17163a775c0d54b8f0", "score": "0.6708417", "text": "public function delete()\n {\n $database = cbSQLConnect::connect('object');\n if (isset($database))\n {\n return ($database->SQLDelete(self::$table_name, 'id', $this->id));\n }\n }", "title": "" }, { "docid": "0e909021123d7b6d52abb97a68f6c34d", "score": "0.6705155", "text": "public function delete(){\n if ($this->id()!='') {\n $this->deleteFiles();\n $query = 'DELETE FROM '.$this->tableName.'\n WHERE '.$this->primary.'=\"'.$this->id().'\"';\n Db::execute($query);\n $onDelete = (string)$this->info->info->sql->onDelete;\n if ($onDelete!='') {\n $onDeleteFields = explode(',', $onDelete);\n foreach ($onDeleteFields as $onDeleteField) {\n $onDeleteObject = new $onDeleteField;\n $listObjects = $onDeleteObject->readListObject(array('where'=>$this->primary.'=\"'.$this->id().'\"'));\n foreach ($listObjects as $listObject) {\n $listObject->delete();\n }\n }\n }\n }\n }", "title": "" }, { "docid": "8fdcddd321dbec20ffba05273ede7d5e", "score": "0.6691005", "text": "public function delete() {\n\t\t$loc = __CLASS__ . '::' . __FUNCTION__;\n\n\t\t$result = self::deleteEvent( $this->getID() );\n\t\t\n $this->log->error_log(\"{$loc}: {$this->toString()} Deleted {$result} rows from db.\");\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "c12d533bf0e8e74775608c572b69e72d", "score": "0.66835856", "text": "function delete($db) {\r\n $query = $db->prepare(\"DELETE FROM `dostawa` WHERE `id`=? LIMIT 1;\");\r\n $query->execute(array($this->_id));\r\n }", "title": "" }, { "docid": "be1eff9549fcd2d2de55e5a9d6ef131f", "score": "0.6681117", "text": "public function delete() {\r\n return DB::deleteQuery($this->id, 'id', self::TABLE_NAME);\r\n }", "title": "" }, { "docid": "be1eff9549fcd2d2de55e5a9d6ef131f", "score": "0.6681117", "text": "public function delete() {\r\n return DB::deleteQuery($this->id, 'id', self::TABLE_NAME);\r\n }", "title": "" }, { "docid": "f995785564ebcdd31d294b14393c76e8", "score": "0.66808677", "text": "public function delete() {\n\t\tif(intval($this->_ID) > 0) {\n\t\t\t$sql = \"DELETE FROM `\" . db_input($this->_table) . \"`\n\t\t\t\tWHERE `\" . db_input($this->_table_id) . \"` = '\" . intval($this->_ID) . \"'\";\n\t\t\tdb_query($sql);\n\t\t\tforeach($this->_data as $key => $value) {\n\t\t\t\t$this->_data[$key] = null;\n\t\t\t}\n\t\t\t$this->_ID = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "9ea1a3203afd616b4d655781fb8926a1", "score": "0.6680278", "text": "public function delete() {\n\t\t$this->getMapper()->delete($this->id);\n\t}", "title": "" }, { "docid": "89fc7777b0d297df1793ef3de5e05469", "score": "0.6676827", "text": "public function delete() {\n\t\t$db = new DB();\n $db->delete($this->tableName, 'id = '.$this->id);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.6675777", "text": "public function delete();", "title": "" }, { "docid": "6aa99ed0566bb59519778ee4b533f90c", "score": "0.6675371", "text": "public function delete()\r\n {\r\n $db = new Database();\r\n\r\n $sql = \"DELETE FROM perro WHERE idPer={$this->idPer} ;\";\r\n\r\n //echo $sql;\r\n //die();\r\n $db->query($sql);\r\n\r\n \r\n }", "title": "" }, { "docid": "a31d22ef15986d3cfe1b07b14021c679", "score": "0.6661196", "text": "public function delete() {\r\n $this->db->delete(\"objects\", $this->db->quoteInto(\"o_id = ?\", $this->model->getO_id() ));\r\n }", "title": "" }, { "docid": "06ced5ecc98ca0c3129d271d8f10ff7c", "score": "0.66548014", "text": "public function delete() {\n $this->db->delete($this::DB_TABLE, array(\n $this::DB_TABLE_PK => $this->{$this::DB_TABLE_PK}, \n ));\n unset($this->{$this::DB_TABLE_PK});\n }", "title": "" }, { "docid": "a06e7c726fba457a6160643f2631457a", "score": "0.66526484", "text": "public function delete() {\n $this->db->delete($this::DB_TABLE, array(\n $this::DB_TABLE_PK => $this->{$this::DB_TABLE_PK}, \n ));\n unset($this->{$this::DB_TABLE_PK});\n\n }", "title": "" }, { "docid": "227fb9ab5589fdfd45675647e4a06c98", "score": "0.6627871", "text": "public function removeFirst();", "title": "" }, { "docid": "227fb9ab5589fdfd45675647e4a06c98", "score": "0.6627871", "text": "public function removeFirst();", "title": "" }, { "docid": "ee24b5d17c230240002c1d75054e8053", "score": "0.66224766", "text": "public function remove (){\n extract( $this->kernel->params );\n\n if( $this->row = $this->getOne( $id ) )\n $this->kernel->db->query(\"DELETE FROM {$this->table} WHERE id = '$id'\");\n\n }", "title": "" }, { "docid": "3d36b6d723dc63735503c344c43e0617", "score": "0.66069245", "text": "function doDelete()\n {\n global $ilDB;\n\n $ilDB->manipulate(\"DELETE FROM rep_robj_xeph_data WHERE \".\n \"obj_ id = \".$ilDB->quote($this->getId(), \"integer\")\n );\n\n }", "title": "" }, { "docid": "2ae66631edfe857177ef5f98e72f2043", "score": "0.66014725", "text": "public function delete(){\n\n\t}", "title": "" }, { "docid": "e40e3a4db2472d39f4260137926a81a8", "score": "0.6598636", "text": "public function delete() {\n\n\t\tglobal $database;\n\n\t\t$sql = \"DELETE FROM \" .static::$db_table. \" \";\n\t\t$sql .= \"WHERE id=\" . $database->escape_string($this->id);\n\t\t$sql .= \" LIMIT 1\"; // just to make sure there is only gonna come back with 1 row\n\n\t\t$database->query($sql);\n\n\t\treturn (mysqli_affected_rows($database->connection) == 1) ? true : false;\n\n\t}", "title": "" }, { "docid": "d5e3097e3c392a8f32752ff3b9bde103", "score": "0.6590633", "text": "function delete(){\n\t \n\t // delete query\n\t $query = \"DELETE FROM \" . $this->table_name . \" WHERE Id = ?\";\n\t \n\t // prepare query\n\t $stmt = $this->conn->prepare($query);\n\t \n\t // sanitize\n\t $this->Id=htmlspecialchars(strip_tags($this->Id));\n\t \n\t // bind id of record to delete\n\t $stmt->bindParam(1, $this->Id);\n\t \n\t // execute query\n\t if($stmt->execute()){\n\t\treturn true;\n\t }else{\n\t \treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "b0c76cbec1ff19b51cc2474900d15f81", "score": "0.65838224", "text": "function del() {\n\t\tif (!empty($this->id)) {\n\t\t\t$query = \"DELETE FROM page WHERE id = ?\";\n\t\t\t$statm = $this->db->prepare($query);\n\t\t\t$statm->execute([ $this->id ]);\n\t\t}\n\t}", "title": "" }, { "docid": "2be2a43111c1d287c3624d8a0d146532", "score": "0.6576125", "text": "public function deleteRecord($key){\n if(count($this->searchRecord($key))==0){\n echo \"[-] Record not found to edit\";\n return;\n }else{\n // find the actual key of the database\n $key2 = $this->findkey($key);\n // then unset this from the array\n unset($this->records[key2]);\n }\n }", "title": "" }, { "docid": "af0643a44ddd78a45d8160d1456861e0", "score": "0.6570651", "text": "public function delete() {}", "title": "" }, { "docid": "e0e5dc8c4b2770dcb64e8faf8c752aa9", "score": "0.656767", "text": "public function delete(){\n global $database;\n $sql = \"DELETE FROM \" . self::$table_name . \" \";\n $sql .= \"WHERE user_id=\" . $this->user_id;\n $sql .= \" LIMIT 1\";\n $database->query($sql);\n return ($database->affected_rows() == 1) ? true : false;\n }", "title": "" }, { "docid": "23e352c2b83ea8a7489ae210e7bf7cbc", "score": "0.65591455", "text": "public function delete(){\n return self::deletes(\" WHERE eId='\".encode($this->eId).\"';\");\n }", "title": "" }, { "docid": "0811ed8f00effaf99833b1048e7e554d", "score": "0.65577424", "text": "public function deleteRecord() {\n Database::prepare(\n \"DELETE FROM tt_persons WHERE id = ?\",\n array($this->id)\n );\n $this->displayListScreen();\n }", "title": "" }, { "docid": "86716cf114c6af30fc1e5f0e4dd54b94", "score": "0.6557434", "text": "public function delete() {\n $db = DBController::getConnection();\n $parameter = Model::ID;\n $where = \"$parameter = :$parameter\";\n $this->prepare();\n\n return $db->delete($this->table, $where, $this->prepareStatement);\n }", "title": "" }, { "docid": "098acd5f09da87fa433c99536cd3eae9", "score": "0.6551175", "text": "function delete ($log_query = TRUE) {\n\t\tif ( ! isset($this->_values['id']) ) {\n\t\t\tErr::critical(\"Unable to delete record, primary key column 'id' is not set.\");\n\t\t}\n\n\t\t$values = $this->_values;\n\n\t\tif ( ($ret = Database::delete($this->_table_name, $values, 'id', $log_query)) === FALSE ) {\n\t\t\tErr::critical(\"Unable to delete database record.\\n\\n\" . Err::last());\n\t\t}\n\n\t\treturn($ret);\n\t}", "title": "" }, { "docid": "1f845aa8dca7cb7b91224ce82fd2c556", "score": "0.6550389", "text": "function delete() {\n\t\tif(!$this->check() || is_null($this->id)) {return false;}\n\t\t\n\t\t$query = $this->db->prepare(\"DELETE FROM \".$this->table.\" WHERE id=:id\");\n\t\t$query->bindValue(\":id\", $this->id);\n\t\t$query->execute();\n\n\t\t// Check if row was deleted\n\t\t$rows = $query->rowCount();\n\t\tif($rows == 1) {\n\t\t\t$this->data = null;\n\t\t\t$this->id = null;\n\t\t\treturn true;\n\t\t}\n\n\t\t// An error occurred\n\t\t$this->error = $query->errorInfo();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "47e3b7ddba2e328c10deb915f4729d50", "score": "0.6549133", "text": "public function delete() {\n global $database;\n\n $sql = \"DELETE FROM \" . static::$dbTable;\n $sql .= \" WHERE id = \" . $database->escapeString($this->id);\n $sql .= \" LIMIT 1\";\n\n $database->query($sql);\n\n // mysqli_affected_rows: Gets the number of affected rows in a previous MySQL operation\n return (mysqli_affected_rows($database->connection) == 1) ? true : false;\n }", "title": "" }, { "docid": "fd026072def88d499d394e47b42567c3", "score": "0.65447634", "text": "public function delete_record($id){\n\t\t$this->db->where('id',$id);\n\t\t$result = $this->db->delete($this->table_name); \n\t\treturn $result;\n\t}", "title": "" }, { "docid": "fec2162027f1138884fc39f13616a00d", "score": "0.65409946", "text": "public function delete()\n {\n if (is_null($this->id)) trigger_error(\"Article::delete(): Attempt to delete an Article object that does not have its ID property set.\", E_USER_ERROR);\n\n $conn = new PDO(DB_DSN, DB_USERNAME, DB_PASSWORD);\n $st = $conn->prepare(\"DELETE FROM Phones WHERE id = :id LIMIT 1\");\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "b42bdf515085bbf8003b42d7a6cb1e22", "score": "0.6538005", "text": "function delete(){\n \n // delete query\n $query = \"DELETE FROM \" . $this->table_name . \" WHERE id = ?\";\n \n // prepare query\n $stmt = $this->conn->prepare($query);\n \n // sanitize\n $this->id=htmlspecialchars(strip_tags($this->id));\n \n // bind id of record to delete\n $stmt->bindParam(1, $this->id);\n \n // execute query\n if($stmt->execute()){\n return true;\n } \n return false; \n }", "title": "" }, { "docid": "a38b0c256d3cecc25e3568a51a460856", "score": "0.65358114", "text": "public function delete($row) {\n unset($this->data[$row['index']]);\n }", "title": "" }, { "docid": "c3c074b4e40851887dc44beea47beceb", "score": "0.6533989", "text": "public function delete(): void\n {\n if (!$this->isDeleted) {\n $this->isDeleted = true;\n $delete = new Delete($this->getTable());\n $delete->where($this->getPrimaryKey(), '=', $this->getPrimaryValue());\n $delete->exec();\n }\n }", "title": "" }, { "docid": "2a647cd35d4c5d81628e01b23fb363cd", "score": "0.65281945", "text": "public function delete(){\n $res = $this->deleteData($this->table,$this->where,$this->_where_data);\n $this->close();\n return $res;\n }", "title": "" }, { "docid": "bec3e7d48c22293b703704d94778a72f", "score": "0.6527733", "text": "function deleteRecord($sql){\n $resp=0;\n return $resp;\n }", "title": "" }, { "docid": "f4db37e7458c3c6de00b4014450afb0e", "score": "0.6527357", "text": "public function delete(){\n $record = temoignage::find($this->selectedId);\n $record->delete();\n\n /* update image file */\n Storage::delete('public/temoignage/'.$this->selectedId.'.png');\n /* $this->photo->storePubliclyAs('public/_temoignage/'.$this->selectedId.'.png'); */\n\n session()->flash('message', 'temoignage modifié avec succès');\n $this->emit('Deleted');\n $this->dispatchBrowserEvent('Deleted');\n $this->resetFields();\n }", "title": "" }, { "docid": "004f848d50a6293dfa4bc9c9d90fc41c", "score": "0.6525863", "text": "public function delete() {\n\n\t\t// delete from database\n\t\tSource::getInstance($this->source)->query(\"\n\t\t\tDELETE FROM dra_\".$this->table.\" \n\t\t\tWHERE id = \".$this->id.\" \n\t\t\");\n\t}", "title": "" }, { "docid": "857ca450b4133a6bb916ed82187d9907", "score": "0.6522702", "text": "public function delete()\n {\n \n }", "title": "" }, { "docid": "2215046d11bde62f80e87429e5a7fa6b", "score": "0.65197295", "text": "public function delete()\n {\n if($this->id){\n $result = QB::table($this->table)->where('id', '=', $this->id)->delete();\n\n $this->attributes = [];\n\n return $result;\n } \n }", "title": "" }, { "docid": "94c05d7b342e236f394bb1b9ae395d96", "score": "0.6516497", "text": "public function delete() {\n\t}", "title": "" }, { "docid": "b72ccef16d1a1fcb891481bd73d133be", "score": "0.65161717", "text": "function delete(){\n\t\tif($this->ID_recomendado){\n\t\t\tif($this->ID_recomendado) $this->db->where('ID_recomendado', $this->ID_recomendado);\n\t\t\t$Q = $this->db->delete($this->tabla);\n\t\t\treturn $Q;\n\t\t}else return false;\n\t}", "title": "" }, { "docid": "bac28264d30a24b5e1b0cb1d993cbf87", "score": "0.649977", "text": "public function delete() {\n\t\t$m = static::get_object_manager();\n\t\t$filters = array(array(\"id=\" => $this->fields['id']));\n\t\treturn $m->delete($filters);\n\t}", "title": "" }, { "docid": "24d3d3445798a267787432edc3c38f87", "score": "0.6498752", "text": "function delete(){\n if ($this->_poetry_master_id):\n $poetry_master_id = preg_replace('#[^0-9]#i', '', $this->_poetry_master_id);\n $Query = sprintf(\"Delete from \" . TABLE_POETRY_MASTER . \" where poetry_master_id =%d\",$poetry_master_id);\n $objDB = new database;\n $objDB->db_connect();\n return $objDB->db_query($Query);\n endif;\n }", "title": "" }, { "docid": "55b9805258f2e3de481ed6f7d5959f4d", "score": "0.64917713", "text": "public static function deleteSingleEntity($page,$table,$primary_index,$id){\n\n\n try {\n DB::table($table)->where($primary_index,$id)->delete();\n Session::put('system_message','Data Deleted Successfully !');\n Session::put('system_message_type','success');\n } catch (\\Illuminate\\Database\\QueryException $e) {\n Session::put('system_message',$e->getMessage());\n Session::put('system_message_type','danger');\n } catch (\\Exception $e) {\n Session::put('system_message',$e->getMessage());\n Session::put('system_message_type','danger');\n }\n\n }", "title": "" }, { "docid": "f226110b475915b38cafb91c47f300bb", "score": "0.6490731", "text": "public function delete(){\n \t$db = new Db();\n \t$db = $db->get();\n\n }", "title": "" }, { "docid": "35104fa1fcf027fc905b20e05947bc5c", "score": "0.64729005", "text": "public function delete() {\n $id=$this->getId();\n //Suppression de base\n parent::delete();\n \n //Save history\n $this->createHistory(array(), array(),BaseModel::DELETE_ACTION,$id);\n }", "title": "" }, { "docid": "0ead365fc0c2f4d7bf53d6799f0655ac", "score": "0.6464328", "text": "public function delete() {\n $this->db->delete($this::DB_TABLE, array(\n $this::DB_TABLE_PK => $this->{$this::DB_TABLE_PK},\n ));\n unset($this->{$this::DB_TABLE_PK});\n }", "title": "" }, { "docid": "1bcd6af3dcc7ec041411b9f0e1cababb", "score": "0.6454778", "text": "public function delete() {\r\n\t\treturn $this->execute ( $this->eq ( $this->primaryKey, $this->{$this->primaryKey} )->_buildSql ( array (\r\n\t\t\t\t'delete',\r\n\t\t\t\t'from',\r\n\t\t\t\t'where' \r\n\t\t) ), $this->params );\r\n\t}", "title": "" }, { "docid": "b980c6a6dd05a0f73189e239bf854b2e", "score": "0.64356124", "text": "public function delete()\n\t{\n\t\t$params = array();\n\t\t$where = array('AND');\n\t\tforeach($this->_data->pk as $pkField=>$pkValue)\n\t\t{\n\t\t\t$where[] = \"{$this->tableName}.{$pkField} = :_id{$pkField}\";\n\t\t\t$params[\":_id{$pkField}\"] = $pkValue;\n\t\t}\n\t\treturn Yii::app()->{self::$dbConnection}->createCommand()\n\t\t\t\t->delete($this->getFullTableName(), $where, $params);\n\t}", "title": "" }, { "docid": "727fc134786ba41c7a1045aabab823a0", "score": "0.6432473", "text": "public function deleteOne($id)\n\t{\n\t\t$result = $this->database->table($this->table)->get($id)->delete();\n\t\t\n\t\tif (FALSE === $result) {\n\t\t\tthrow new \\DatabaseException(\"Unable to delete from {$this->table} row with id:{$id}\");\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "fe72ceb9a4680ec58f3e4ff6dbfc59e2", "score": "0.6430042", "text": "function deleteRecordById($id){\n \n $where = array($this->pk => $id); \n \n return SHIN_Core::$_db[SHIN_Core::$_shdb->active_group]->delete($this->table_name, $where);\n }", "title": "" }, { "docid": "4e9484f0f189b483845e487957550414", "score": "0.6408514", "text": "public function delete()\n {\n \n }", "title": "" }, { "docid": "89fdf5805cadccd520e897bcd23f7cb6", "score": "0.6406067", "text": "public function _delete()\n\t{\n\t\treturn $this->delete();\n\t}", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->fetch($resource_name, $cache_id, $compile_id, true);\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->fetch($resource_name, $cache_id, $compile_id, true);\n }", "title": "" }, { "docid": "ddf04ce79355e6393b4e16ac5ca5339b", "score": "0.72854424", "text": "public function show(Resource $resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "b1f9ad094841da4c93bfc71c1fe290ee", "score": "0.7228577", "text": "function resourceAction() {\n\t\t$model = new Resources;\n\t\t$model->output( $_GET['resource'] );\n\t\texit();\n\t\tif (isset($_GET['resource'])) {\n\t\t\tResources::output();\n\t\t}\n\t}", "title": "" }, { "docid": "675560eedfc7019d4f6a3a8ccf4380ae", "score": "0.7058661", "text": "public function show($resource, $resourceId)\n {\n return view('microboard::resource.show', compact('resource', 'resourceId'));\n }", "title": "" }, { "docid": "2ef8aa5a12fe505c49b213bd0bde4d8c", "score": "0.6679027", "text": "public function show(Resource $Resource)\n {\n\t\t\t\t$Actions = Action::all()->toArray();\n return view('resource.show',compact(\"Resource\",\"Actions\"));\n }", "title": "" }, { "docid": "dfd1e41399b89992277d2f4181b60c74", "score": "0.66665685", "text": "public function index($resource)\n {\n return view('microboard::resource.index', compact('resource'));\n }", "title": "" }, { "docid": "dda8eb008b6dd683d8a6d910da413069", "score": "0.6562032", "text": "public function show(Resource $resource)\n {\n return Storage::download($resource->file);\n }", "title": "" }, { "docid": "5dbe1076e63c172c2caafb4d8a1cf41a", "score": "0.63623476", "text": "public function show($id)\n {\n $resource = MyResource::find($id);\n if ($resource != null) {\n return view('resources.show', compact('resource'));\n }\n return abort(404, 'Resource Not Found!');\n }", "title": "" }, { "docid": "45a73038dfd7440f98b74e8f017c5dbf", "score": "0.6339965", "text": "function viewItem($pResourceId = null) {\n if (isset($pResourceId) && is_numeric($pResourceId) && ($pResourceId > 0)) {\n $this->load->model('findaids/FindingAidsItemDAO');\n $data['resource'] = $this->FindingAidsItemDAO->getItem($pResourceId); //get the resource data from the database\n }\n else {\n $data['msg'] = 'Resource not found';\n }\n \n $this->display('findaids/viewItem', $data);\n }", "title": "" }, { "docid": "62fef0174aa48ad81f97f645799dda19", "score": "0.62100685", "text": "public function show($id)\n {\n //\n\t\treturn Resource::find($id);\n }", "title": "" }, { "docid": "040327f0d952b093f5c02dfe2fde04db", "score": "0.611832", "text": "public function show($id) {\n ${$this->resource} = $this->model->findOrFail($id);\n\n return view($this->view_path . '.show', compact($this->resource));\n }", "title": "" }, { "docid": "4acc522a1cb2928143f0fad96697ebf3", "score": "0.60883623", "text": "public function show(Request $request, $client, $resource)\n\t{\n\t\t$resource = Resource::findBySlug($client, $resource);\n\n\t\tif (!$resource) {\n\t\t\treturn response(view('resources.404'), 404);\n\t\t}\n\n\t\t$this->authorize('view', $resource);\n\n\t\t$resource->load('client', 'tags', 'type');\n\n\t\treturn view('resources.show', ['resource' => $resource]);\n\t}", "title": "" }, { "docid": "a8c35455a5242ccc9e930e21edd43e0b", "score": "0.6043974", "text": "function display($resource_name, $cache_id = null, $compile_id = null, $display = false) {\n\t\t\n\t\t// attempt to load the theme's requested template\n\t\tif (!is_file($this->template_dir.'/'.$resource_name) and substr($resource_name,0,5) != 'file:')\n\t\t\t// template file not existant in theme, fallback to \"default\" theme\n\t\t\tif (!is_file($this->_themeDir.'default/'.$resource_name))\n\t\t\t\t// requested template file does not exist in \"default\" theme, die.\n\t\t\t\tdie('<img src=\"'.bm_baseUrl.'themes/shared/images/icons/alert.png\" align=\"middle\">'.$resource_name.': '._T('Template file not found in default theme.'));\n\t\t\telse\n\t\t\t\t$resource_name = $this->_themeDir.'default/'.$resource_name;\n\t\t\n\t\tglobal $poMMo;\n\t\tif ($poMMo->_logger->isMsg()){ \n\t\t\t$this->assign('messages',$poMMo->_logger->getMsg(false,false));\n }\n\t\tif ($poMMo->_logger->isErr())\n\t\t\t$this->assign('errors',$poMMo->_logger->getErr(false,false));\n\t\t\n\t\treturn parent::display($resource_name, $cache_id = null, $compile_id = null, $display = false);\n\t}", "title": "" }, { "docid": "f7c05d96e66a9dcdda46564a24504d64", "score": "0.603562", "text": "public function show($id)\n {\n $model = $this->resourceModel::find($id);\n\n $this->beforeShow($model);\n\n if (!is_null($this->relatedModel) && !$model->relationLoaded($this->relatedModel)) {\n $model->load($this->relatedModel);\n }\n\n $this->viewData['resourceData'] = $model;\n\n return view(\n \"{$this->viewBaseDir}.{$this->viewFiles['show']}\",\n $this->viewData\n );\n }", "title": "" }, { "docid": "0a686d0ac05d929e084eb5f40c6c52cf", "score": "0.59964097", "text": "public function show(Restify $restify)\n {\n //\n }", "title": "" }, { "docid": "395de905ba7e4d06210c28e4bf02fc77", "score": "0.59784734", "text": "public function show( )\n\t{\n\t}", "title": "" }, { "docid": "f92fbb1cbd7db59751764b73789cea6c", "score": "0.59730935", "text": "public function actionView()\n {\n if (!Parameters::hasParam('type'))\n throw new APIException('Invalid resource TYPE (parameter name: \\'type\\')', APIResponseCode::API_INVALID_METHOD_PARAMS);\n \n if (!Parameters::hasParam('id'))\n throw new APIException('Invalid resource IDENTIFICATOR (parameter name: \\'id\\')', APIResponseCode::API_INVALID_METHOD_PARAMS);\n \n $resource_type = Parameters::get('type');\n\n $finder = new YiiResourceFinder($resource_type);\n $object = $finder->findById(Parameters::get('id'));\n\n $format = Parameters::hasParam('format') ? Parameters::get('format') : 'json';\n $coder = ObjectCodingFactory::factory()->createObject($format);\n if ($coder === null)\n throw new APIException('Invalid Coder for format', APIResponseCode::API_INVALID_CODER);\n \n $response = $coder->encode($object->getAttributes());\n die($response);\n }", "title": "" }, { "docid": "1e891653b5f4912aa409c758d50a1b98", "score": "0.5965172", "text": "function display()\n\t{\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "title": "" }, { "docid": "bdefca54eb98b7da00ba328f778b1d62", "score": "0.5963372", "text": "public function show() {\r\n $this->_handleThumbRequest();\r\n $this->_setOutputHeaders();\r\n\r\n // Show image\r\n if ($this->_cache) {\r\n // Note to developers:\r\n // If you are using some sort of _GET, _POST, _COOKIE, ... parameters to set\r\n // the cache path or the root path, make sure you sanity check the path's so\r\n // file_get_contents doesn't ouput any other file on your server!\r\n //\r\n // By default the _cachePath is created in PHP and _cachedFileName is a md5 hashed string\r\n // and normally you shouldn't run into security issues here\r\n echo file_get_contents($this->_cachePath.$this->_pathSeparator.$this->_cachedFileName);\r\n } else {\r\n $this->_toImage($this->_image);\r\n }\r\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3ff943e72bc423e0031ca638d0459516", "score": "0.59518224", "text": "public function Display()\n {\n // by application template)\n }", "title": "" }, { "docid": "711b3e79a897f1435b168cf31d7bbc46", "score": "0.5939425", "text": "public function show($id)\n {\n // Get the resource using the parent API\n $object = $this->api()->show($id);\n\n // Render show view\n $data = [Str::camel($this->package) => $object];\n return $this->content( 'show', $data );\n }", "title": "" }, { "docid": "10dda82513aea0f93ead687a2ff8c827", "score": "0.5917097", "text": "public function show() {\n if (!$this->resource) return false;\n header(\"Content-Type: \" . $this->mime);\n switch ($this->ext) {\n case \"jpeg\":\n imagejpeg($this->resource);\n break;\n case \"png\":\n imagesavealpha($this->resource, true);\n imagepng($this->resource);\n break;\n }\n }", "title": "" }, { "docid": "6ba059f4682aab8baf61ec9d7bd7aa2f", "score": "0.59067607", "text": "public function showAction($id){\n $data = $this->getData();\n //returns object and renders it to a Twig file\n return $this->app['twig']->render('show.twig.html', array('item' => $data[$id],'id'=>$id));\n }", "title": "" }, { "docid": "a4e858e0516451a1779fc03420ea9ca6", "score": "0.58891064", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('DevPCultBundle:Representation')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Representation entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('DevPCultBundle:Representation:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(), ));\n }", "title": "" }, { "docid": "165e57248abdff75085b534357be6960", "score": "0.5881089", "text": "public function show() {\r\n // feel free to change this method if it is ever needed\r\n abort(404);\r\n }", "title": "" }, { "docid": "1346e215e2992fa9399bf2d0e2cefa29", "score": "0.5880812", "text": "public function showAction($id)\n {\n # code...\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.58112013", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "3561014ddd4ab65fe67a18e78c535e0f", "score": "0.57959795", "text": "public function show()\n {\n // get data\n $data = $this->model->get();\n\n // print_r($data); die();\n\n // render data\n $this->twig->render($this->template, $data);\n }", "title": "" }, { "docid": "18dc3859862f1c173af6767cfb82607b", "score": "0.5793224", "text": "public function act(Resource $resource): void;", "title": "" }, { "docid": "63925fbab89765f6ec514208a03fc871", "score": "0.5787218", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "8f15cdd2f287675d36c7b7df028043ec", "score": "0.5736634", "text": "public function show($id)\n\t{\n\t//\n\t}", "title": "" }, { "docid": "9b77148c668e41a20410842157f00e5a", "score": "0.5732526", "text": "public function showAction()\r\n {\r\n $id = $this->getRequest()->getParam('id');\r\n if ($id > 0) {\r\n $post = $this->Surveys->loadData($id);\r\n $this->view->survey = $post;\r\n }\r\n else $this->view->message = 'The post ID does not exist';\r\n }", "title": "" }, { "docid": "4de13c28a63d7306cf639907e8ef1d9c", "score": "0.57274294", "text": "public function edit($resource, $resourceId)\n {\n return view('microboard::resource.edit', compact('resource', 'resourceId'));\n }", "title": "" }, { "docid": "82d1ab8dceb8c3af6887aff2ec025a2a", "score": "0.5725802", "text": "public function resolveForDisplay($resource)\n {\n if (is_callable($this->displayCallback)) {\n $this->value = call_user_func($this->displayCallback, $resource[$this->attribute]);\n } else {\n $this->value = $resource[$this->attribute];\n }\n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "d0e3eeb22ea781b9d946b9eabd93bb46", "score": "0.57204515", "text": "public function show()\n {\n $fileType = pathinfo($this->_fullPath, PATHINFO_EXTENSION);\n $contentType = '';\n switch ($fileType) {\n case 'jpg':\n $contentType = 'image/jpeg';\n break;\n case 'png':\n $contentType = 'image/png';\n break;\n }\n\n if (!$contentType) {\n return;\n }\n\n header(\"Content-Type: {$contentType}\");\n echo file_get_contents($this->_fullPath);\n }", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "f2d9ca8da2ec54369857c7069cea0429", "score": "0.57117283", "text": "public function show()\n\t{\n\t}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "d5b3a480445ab1fbb2e08bd3242ca940", "score": "0.56927294", "text": "abstract public function get($resource, $id);", "title": "" }, { "docid": "70b16164ff10f28b63f2a72c5d91047b", "score": "0.56880486", "text": "public function show($id)\n\t{\n\t\t// \n\t}", "title": "" }, { "docid": "7580b6a8a70ffcf0c85b9c5fd2d164c8", "score": "0.56878597", "text": "public function show($id)\n\t{\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": "" } ]
3cbe4b49120056fdc76b026c06cd0675
Create a new command instance.
[ { "docid": "beeda352e37e57573722143269c99118", "score": "0.0", "text": "public function __construct()\n {\n parent::__construct();\n }", "title": "" } ]
[ { "docid": "4c487b97bdfa90771644b1a2d407ca94", "score": "0.7225216", "text": "public function createCommand() {\n return new DbCommand($this);\n }", "title": "" }, { "docid": "c7954430bec637108fc93826ff99f3ee", "score": "0.71405894", "text": "public static function make($name)\n {\n return new Command($name);\n }", "title": "" }, { "docid": "7c1d67dfb8127f8b23e87d7793794810", "score": "0.71198696", "text": "public function createCommand(array $commandDefinition);", "title": "" }, { "docid": "7f5fc0e3a29f098173495b71bad06666", "score": "0.7115853", "text": "public function createCommand(ApiCommand $command, array $args);", "title": "" }, { "docid": "c797c5741ffc33198f34c4eca4b4efad", "score": "0.7097109", "text": "public function __construct()\n {\n $this->name = 'cc';\n $this->description = 'Create a new command line command.';\n $this->required = false;\n $this->alias = 'create-command';\n\n $this->exec = function ($name) {\n $name = str_replace('_', '', $name);\n $name = trim($name);\n\n if (! ctype_alpha($name)) {\n sf_error(\n 'Error: Command names must only contain alphabetic characters and no spaces. '.\n 'TitleCase recommended.',\n true\n );\n } else {\n $fileName = './src/App/Commands/'.$name.'.php';\n\n if (! file_exists($fileName)) {\n $template = new Template('Command.tmpl', ['name' => $name], true);\n\n file_put_contents(\n $fileName,\n $template->parse()\n );\n sf_info(\n 'Created command in \\'src/App/Commands\\' with name \\''.$name.'\\'.',\n true\n );\n chmod($fileName, 0750);\n } else {\n sf_error('Error: A command by that name already exists.', true);\n }\n }\n\n return parameter_result_halt();\n };\n }", "title": "" }, { "docid": "6f71eeb559b2cf35fa2aa9114f3ebf1f", "score": "0.7095949", "text": "public function create(string $commandID, array $arguments = []): CommandInterface;", "title": "" }, { "docid": "60a37ae3fc4b57ee0d2285ddef5d1c70", "score": "0.704305", "text": "protected function createCommand($args) {\n $command = new Command();\n $command->name = $args['name'];\n $command->url = $args['url'];\n $command->description = $args['description'];\n $command->uses = $args['uses'];\n $command->creationDate = $args['creation_date'];\n $command->lastUseDate = $args['last_use_date'];\n $command->goldenEggDate = $args['golden_egg_date'];\n return $command;\n }", "title": "" }, { "docid": "b46c803cd44e631d75f879b103c224a6", "score": "0.7038949", "text": "function createCommand($command_class)\n {\n $cmd = new $command_class;\n\n // check self \n if( is_a($this, '\\CLIFramework\\Application' ) ) {\n $cmd->application = $this;\n $cmd->parent = $this;\n } else {\n $cmd->application = $this->application;\n $cmd->parent = $this;\n } \n\n // get option parser, init specs from the command.\n $specs = new OptionSpecCollection;\n\n // init application options\n $cmd->options($specs);\n\n\n // save options specs\n $cmd->optionSpecs = $specs;\n\n // let command has the command loader to register subcommand (load class)\n $cmd->loader = $this->loader;\n\n $cmd->init();\n return $cmd;\n }", "title": "" }, { "docid": "729368dfc6230545e107f84ecc9e5ece", "score": "0.6959371", "text": "public function create(array $command): ProcessInterface;", "title": "" }, { "docid": "af47455a77269e089a89aa47fd584060", "score": "0.68715", "text": "public function create(string $type) : CommandInterface\n {\n $commandObject = sprintf(\n '%s\\%s%s',\n self::COMMAND_NAMESPACE,\n ucfirst($type),\n self::CLASS_SUFFIX\n );\n\n if (!class_exists($commandObject)) {\n throw new InvalidCommandException(\n sprintf('Command not found: %s', $type)\n );\n }\n\n $commandObject = new $commandObject($this->robot);\n\n if (!$commandObject instanceof CommandInterface) {\n throw new InvalidCommandInstanceException(\n sprintf('Command must implement %s', CommandInterface::class)\n );\n }\n\n return $commandObject;\n }", "title": "" }, { "docid": "34312229492e4c23ad709ed3f7c8428c", "score": "0.68180764", "text": "public function buildCommand(): CommandInterface;", "title": "" }, { "docid": "5f32379dd65435bc54fa0a4d36e9cfa5", "score": "0.6767515", "text": "public function __construct(Command $command)\n {\n $this->command = $command;\n }", "title": "" }, { "docid": "9265ae569be8278d228a9fb947d7245d", "score": "0.66873616", "text": "public function createCommand($query = null)\n\t{\n\t\t$commandFactory = $this->asa('commandFactory');\n\n\t\tif ($commandFactory) {\n\t\t\treturn $commandFactory->createCommand($this, $query);\n\t\t} else {\n\t\t\treturn parent::createCommand($query);\n\t\t}\n\t}", "title": "" }, { "docid": "a7ab47a2edd229d3f01a3853384b0a86", "score": "0.6500468", "text": "protected function generateCommand()\n {\n $dialog = $this->getHelperSet()->get(\"dialog\");\n\n // Get the name for the command('s class, i.e AcmeCommand)\n $commandName = $dialog->askAndValidate(\n $this->output,\n \"What do you want to name the new command? <info>(MUST end with 'Command')</info>: \",\n function($answer) {\n // Validate that the command's name is a valid class name for PHP:\n if(!preg_match(\"/[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*/\", $answer)) {\n throw new RuntimeException(\n \"The command's name must be a valid PHP class name\"\n );\n }\n\n // Validate that the command's name is suffixed with \"Command\"\n if(\"Command\" !== substr($answer, -7)) {\n throw new RuntimeException(\n \"The command's name must be suffixed with 'Command' (i.e: AcmeCommand)\"\n );\n }\n\n return $answer;\n },\n false,\n \"AcmeCommand\"\n );\n\n $this->renderTemplateToFile(\n \"command.html.twig\",\n $this->app[\"path.commands\"] . \"/{$commandName}.php\",\n array(\n \"command_name\" => $commandName,\n \"command_short_name\" => strtolower($commandName)\n )\n );\n }", "title": "" }, { "docid": "c23d2f1582633f4eaeae398987fc8044", "score": "0.642678", "text": "public static function spawn($command, array $options = array()) {\n\t\treturn new self($command, $options);\n\t}", "title": "" }, { "docid": "32ed6109442bcdd4cb0b24204e42d7a8", "score": "0.6407158", "text": "public function sys(): Command\n {\n return new Command(__METHOD__, get_defined_vars());\n }", "title": "" }, { "docid": "1c62a3d90a22ca365513f9ec871a968f", "score": "0.63919866", "text": "public function actionCreate() {\n $model = new Command();\n $model->author = \\Yii::$app->user->identity->id;\n\n // check that at least one server connection exists\n $connection = \\common\\models\\ServerConnection::find()->asArray()->one();\n if (!$connection) {\n \\Yii::$app->getSession()->setFlash('error', 'Command requires functional server connection.');\n $this->redirect(['/server-connection']);\n }\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": "b089b3eea70b11576d6f8938543dcbe0", "score": "0.63773245", "text": "private function __construct($command = null)\n {\n $this->command = $command;\n }", "title": "" }, { "docid": "b7ab5bc4e4fbadbb48ede30f84edb4c8", "score": "0.63334477", "text": "abstract protected function makeCommand(): string;", "title": "" }, { "docid": "90ba17cb3411fab1cfab3454af3dea1b", "score": "0.6324835", "text": "public function command($command);", "title": "" }, { "docid": "745e2294e217c3199087998e1cbcf20e", "score": "0.6237034", "text": "public function createCommand()\n {\n\n\n $model = ShopOrder::find()->select('shop_order.*');\n $add = Az::$app->db->createCommand()->createTable('post', [\n 'id' => 'pk',\n 'title' => 'string',\n 'text' => 'text',\n ]);\n vd($add);\n\n }", "title": "" }, { "docid": "bf17a68e12c96dfcb9138588673f92ac", "score": "0.6225206", "text": "private function _command() {\n\t\t// Create <command/>\n\t\t$this->command = $this->epp->appendChild($this->document->createElement('command'));\n\t}", "title": "" }, { "docid": "69d9f07c6e800dde61aebe545300e06c", "score": "0.62190837", "text": "public function setCommand(string $command): CommandBuilderInterface;", "title": "" }, { "docid": "b534bf524c7e620c13556b2d8e86914b", "score": "0.61919135", "text": "public function test_it_creates_command(): void\n {\n $this->makeCommand();\n\n $this->assertTrue(file_exists($this->getExpectedCommandFile()));\n }", "title": "" }, { "docid": "38bd9ae867105ab3082a2cab59c7ad74", "score": "0.61789805", "text": "public function __construct($command)\n {\n call_user_func_array([$this, 'setCommand'], func_get_args());\n }", "title": "" }, { "docid": "3a8264b59d424c3ee12d454278f8f559", "score": "0.6174266", "text": "protected function createCommand($name, array $parameters = [])\n {\n return new Fluent(array_merge(compact('name'), $parameters));\n }", "title": "" }, { "docid": "159f4b0e9db24e877da86e70befbd180", "score": "0.61341536", "text": "public function create(string $commandLine): Process;", "title": "" }, { "docid": "9494d0496c93813d4ed4b8349bcae6f2", "score": "0.6130412", "text": "public function command($command = null);", "title": "" }, { "docid": "f28d80f755bb43a97c705969fc83de0f", "score": "0.61259556", "text": "protected function getCommand()\n {\n $command = new CheckAutoloading();\n\n $reflection = new \\ReflectionProperty(\n $command,\n 'input'\n );\n $reflection->setAccessible(true);\n $reflection->setValue($command, new StringInput(''));\n\n $reflection = new \\ReflectionProperty(\n $command,\n 'output'\n );\n $reflection->setAccessible(true);\n $reflection->setValue($command, new BufferedOutput());\n\n return $command;\n }", "title": "" }, { "docid": "2276089c3f32fbe1ddaedc9ddf8c38e9", "score": "0.612517", "text": "public function createCommand()\n\t{\n\t\tif ($this->primaryModel !== null) {\n\t\t\t// lazy loading\n\t\t\tif ($this->via instanceof self) {\n\t\t\t\t// via pivot table\n\t\t\t\t$viaModels = $this->via->findPivotRows(array($this->primaryModel));\n\t\t\t\t$this->filterByModels($viaModels);\n\t\t\t} elseif (is_array($this->via)) {\n\t\t\t\t// via relation\n\t\t\t\t$relationName = $this->via[0];\n\t\t\t\t$viaModels = $this->primaryModel->$relationName;\n\t\t\t\tif ($viaModels === null) {\n\t\t\t\t\t$viaModels = array();\n\t\t\t\t} elseif (!is_array($viaModels)) {\n\t\t\t\t\t$viaModels = array($viaModels);\n\t\t\t\t}\n\t\t\t\t$this->filterByModels($viaModels);\n\t\t\t} else {\n\t\t\t\t$this->filterByModels(array($this->primaryModel));\n\t\t\t}\n\t\t}\n\t\treturn parent::createCommand();\n\t}", "title": "" }, { "docid": "f73b800344734d2a1e7c36aa6dcd21cb", "score": "0.61123794", "text": "public function __construct(Command $command, InputInterface $input, OutputInterface $output)\n {\n $this->command = $command;\n $this->input = $input;\n $this->output = $output;\n }", "title": "" }, { "docid": "85ad5265c8f9e5637d64370ce7079fa0", "score": "0.6101634", "text": "private function _createShellCommand(string $command): ShellCommand\n {\n // Create the shell command\n $shellCommand = new ShellCommand();\n $shellCommand->setCommand($command);\n\n // If we don't have proc_open, maybe we've got exec\n if (!function_exists('proc_open') && function_exists('exec')) {\n $shellCommand->useExec = true;\n }\n\n return $shellCommand;\n }", "title": "" }, { "docid": "eba39190069636159ea114890c3c9253", "score": "0.60860515", "text": "public static function fromConsoleCommand(Command $command) : self\n {\n // A bare-bone application is needed to execute the Symfony CommandTester as what it does is configuring the\n // application and using it to execute the command.\n $application = new Application();\n $executableCommand = $application->add(new SymfonyCommand($command));\n Assert::notNull($executableCommand);\n return new self($executableCommand);\n }", "title": "" }, { "docid": "0d66497db8579fe3144ac79e7c6d7600", "score": "0.6084586", "text": "public function __construct()\n {\n parent::__construct(self::APP_NAME, self::APP_VERSION);\n\n $this->shellApplication = new ShellApplication(\n self::APP_NAME,\n self::APP_VERSION\n );\n\n $command = new ShellCommand($this->shellApplication);\n $command->setApplication($this);\n $this->add($command);\n }", "title": "" }, { "docid": "a9b2d0e11c1ccdd9b788af29e0254e54", "score": "0.6081284", "text": "public function getCommand();", "title": "" }, { "docid": "a9b2d0e11c1ccdd9b788af29e0254e54", "score": "0.6081284", "text": "public function getCommand();", "title": "" }, { "docid": "21b41a509e83f2b4ff2b429bc031cb67", "score": "0.6075964", "text": "protected function makeCommand(): void\n {\n Artisan::call('make:tactician:command', ['name' => 'Foo']);\n }", "title": "" }, { "docid": "25b2468ceff508f4296bc6773a48d752", "score": "0.60758", "text": "static function createCommandCreateProperty ($property):CommandCreateProperty {\n\t\treturn new CommandCreateProperty($property);\n\t}", "title": "" }, { "docid": "853ecdc02dfe85afcb7a4d096d054f76", "score": "0.6072565", "text": "public function createCommand($method, $arguments = array())\n {\n return $this->profile->createCommand($method, $arguments);\n }", "title": "" }, { "docid": "6ced9f82e5aab7e6b7c0fc56ac3583f3", "score": "0.60692877", "text": "public function __construct($command)\n {\n $this->command = $command;\n\n $this->command->line('Installing Eloquent Models: <info>✔</info>');\n }", "title": "" }, { "docid": "613a206f32898e82c6e8f1859a766275", "score": "0.60672283", "text": "private function __construct() {\n\t\t$this->_command = array();\n\t}", "title": "" }, { "docid": "5f2c63995891cd04a99b2ef3f1051805", "score": "0.6043252", "text": "protected function getMakeCommand()\n {\n // Once we have the migration creator registered, we will create the command\n // and inject the creator. The creator is responsible for the actual file\n // creation of the migrations, and may be extended by these developers.\n $this->registerCreator();\n\n $creator = $this->app['migration.creator'];\n $composer = $this->app['composer'];\n\n return new MakeCommand($creator, $composer);\n }", "title": "" }, { "docid": "a6008593ce6dfea91acbd17100ee242d", "score": "0.6039576", "text": "protected function createCommand(string $class): ?Command\n {\n $object = null;\n if (class_exists($class)) {\n try {\n $object = new $class($this->io);\n } catch (\\ErrorException $exception) {\n // there is an issue in the command\n throw new ConsoleException(sprintf('%s in %s', $exception->getMessage(), $class));\n }\n\n return $object;\n }\n\n return null;\n }", "title": "" }, { "docid": "9c9bb7f90481b01101acf8a6b850f26e", "score": "0.6037956", "text": "public static function create($host, $port, $password)\n {\n $rconMessenger = MessengerFactory::create($host, $port, $password);\n\n return new Commander($rconMessenger);\n }", "title": "" }, { "docid": "682c24366a3ee39c911bdfece4719593", "score": "0.60084116", "text": "public function command();", "title": "" }, { "docid": "9ec4ba98a77733550949af81f95f3ff3", "score": "0.59873617", "text": "function __construct( $command, $args, $assoc_args ) {\n\t\t$this->command = $command;\n\n\t\t$this->dispatch( $args, $assoc_args );\n\t}", "title": "" }, { "docid": "d3eb1682fe7388bceb47772f6fd294b4", "score": "0.5932965", "text": "public function __construct()\n {\n parent::__construct();\n foreach (static::config('commands') as $command) {\n $this->add(Reflector::instantiate($command));\n }\n }", "title": "" }, { "docid": "8a28e44fa1a4dd7e7c44cb55c201609d", "score": "0.591831", "text": "public function baseCommand(): Command\n {\n return new Command('ssh', array_merge($this->createSshOptionArgs(), [$this->host]));\n }", "title": "" }, { "docid": "d80c57c4464b2f14bcff1e8be462f688", "score": "0.59087116", "text": "protected function createCommand($command)\r\n {\r\n $artisan = base_path('artisan');\r\n return \"php {$artisan} $command\";\r\n }", "title": "" }, { "docid": "62fb507eaa1e8c3da4e95e9a69cfd4cc", "score": "0.5906729", "text": "public static function createFromArray(array $data): StorageCommand\n {\n $properties = ['id', 'command', 'parameters', 'created', 'runAfter'];\n array_walk($properties, function (string $property) use ($data) {\n switch ($property) {\n case 'id':\n if (empty($data['id'])) {\n throw new InvalidArgumentException('Data \"id\" can\\'t be empty.');\n }\n break;\n case 'command':\n if (empty($data['command'])) {\n throw new InvalidArgumentException('Data \"command\" can\\'t ben empty.');\n }\n break;\n case 'parameters':\n if (!empty($data['parameters']) && !($data['parameters'] instanceof ArrayInput)) {\n throw new InvalidArgumentException(\n 'Data \"parameters\" should be an instanceof: ' . ArrayInput::class\n );\n }\n break;\n case 'created':\n if (!($data['created'] instanceof DateTime)) {\n throw new InvalidArgumentException(\n 'Data \"created\" should be an instanceof: ' . DateTime::class\n );\n }\n break;\n case 'runAfter':\n if (!empty($data['runAfter']) && !($data['runAfter'] instanceof DateTime)) {\n throw new InvalidArgumentException(\n 'Data \"runAfter\" should be an instanceof: ' . DateTime::class\n );\n }\n break;\n }\n });\n\n if (empty($data['parameters'])) {\n $data['parameters'] = null;\n }\n\n if (empty($data['runAfter'])) {\n $data['runAfter'] = null;\n }\n\n $storageCommand = new static($data['command'], $data['parameters'], $data['runAfter']);\n $storageCommand->id = $data['id'];\n $storageCommand->created = $data['created'];\n\n return $storageCommand;\n }", "title": "" }, { "docid": "510d9cabd549673515b1954d13b2877a", "score": "0.59066033", "text": "public function buildCommand($commandClass)\n {\n /** @var Command $command */\n return new $commandClass($this, $this->container);\n }", "title": "" }, { "docid": "5e1705dbb599e7f18292d91ecc57f696", "score": "0.58981764", "text": "public function setCommand($command);", "title": "" }, { "docid": "eb03d0ef223eabebb3728cf6f8ef2580", "score": "0.5886665", "text": "public function setCommand($var)\n {\n GPBUtil::checkString($var, True);\n $this->command = $var;\n\n return $this;\n }", "title": "" }, { "docid": "e58f35ca2a2064afb1c2f6f280d62b5b", "score": "0.5886147", "text": "public function buildCommandBasic(): Command\n {\n $pluginBuilder = new PluginBuilder($this->pluginDetails());\n $commandStyles = new CommandStyles();\n $gitRepository = new Repository();\n $application = $this->application();\n $settings = $this->settings();\n\n $build = new Build($pluginBuilder, $commandStyles, $gitRepository, $application, $settings);\n }", "title": "" }, { "docid": "7337cbbf99d1b0a352ba47ea44e532c4", "score": "0.58847594", "text": "public function adopt(Command $command): Command\n {\n return $this->baseCommand()->withArgs([Shell::render($command)], true);\n }", "title": "" }, { "docid": "df47172157494846c68d09b765f01a15", "score": "0.5880516", "text": "function __construct($cmd = false) {\n\t\tif ($cmd != false)\n\t\t\t$this->command = $cmd;\n\t\t\n\t\t$this->pid = 0;\n\t}", "title": "" }, { "docid": "6bb74e3f5ce41b1eb3b0c7784e728331", "score": "0.58610266", "text": "public function ledger(string $arg): Command\n {\n return new Command(__METHOD__, get_defined_vars());\n }", "title": "" }, { "docid": "871787c4aa05a5432f9b7415f7a68693", "score": "0.5858492", "text": "protected function createCommand(InputInterface $input)\n {\n return $this->createContainer($input)->get('behat.console.command');\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.58442044", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.58442044", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.58442044", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.58442044", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.58442044", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.58442044", "text": "public function create(){}", "title": "" }, { "docid": "134890879cb87a6c231ad9711f959fe7", "score": "0.58217317", "text": "public function setCommand(string $command): self\n {\n $this->command = $command;\n\n return $this;\n }", "title": "" }, { "docid": "fc15aafe79acf061fd3dc93cf665e337", "score": "0.5795853", "text": "protected function createCommandBuilder()\n\t{\n\t\treturn new CSqliteCommandBuilder($this);\n\t}", "title": "" }, { "docid": "f20d2d7fe581b1f8c71f56aa612b6c68", "score": "0.57773733", "text": "public function stat(): Command\n {\n return new Command(__METHOD__, get_defined_vars());\n }", "title": "" }, { "docid": "66e5f91a1272b303aedd659a11a66e5a", "score": "0.5774559", "text": "public function getCommand($name, array $args = array())\n {\n $command = null;\n\n // If a service description is present, see if a command is defined\n if ($this->serviceDescription && $this->serviceDescription->hasCommand($name)) {\n $command = $this->serviceDescription->createCommand($name, $args);\n }\n\n // Check if a concrete command exists using inflection\n if (!$command) {\n // Determine the class to instantiate based on the namespace of the\n // current client and the default location of commands\n $prefix = $this->getConfig('command.prefix');\n if (!$prefix) {\n // The prefix can be specified in a factory method and is cached\n $prefix = implode('\\\\', array_slice(explode('\\\\', get_class($this)), 0, -1)) . '\\\\Command\\\\';\n $this->getConfig()->set('command.prefix', $prefix);\n }\n\n $class = $prefix . str_replace(' ', '\\\\', ucwords(str_replace('.', ' ', Inflector::camel($name))));\n\n // Create the concrete command if it exists\n if (class_exists($class)) {\n $command = new $class($args);\n }\n }\n\n if (!$command) {\n throw new \\InvalidArgumentException(\"$name command could not be found\");\n }\n\n $command->setClient($this);\n $this->getEventManager()->notify('command.create', $command);\n\n return $command;\n }", "title": "" }, { "docid": "79435b7075e82b27bae59e3da022c731", "score": "0.57545805", "text": "public abstract function command();", "title": "" }, { "docid": "12746c58f209ad2e01f8bb2114dfddaa", "score": "0.5725328", "text": "public function createCommand(ISqlHandler $sqlHandler = null) {\n $command = new Command($sqlHandler ?: $this->sqlHandler);\n list($sql, $params) = $command->getBuilder()->build($this);\n return $command->setSql($sql)->bindValues($params);\n }", "title": "" }, { "docid": "686c379cb95f5ae7a47dbee49e2ce193", "score": "0.5719357", "text": "public function prepare(array $commands): CommandInterface;", "title": "" }, { "docid": "16dbafc5b40d056d971f3e3e222234c8", "score": "0.57016987", "text": "public static function fromString($commandValue)\n {\n return new self($commandValue);\n }", "title": "" }, { "docid": "14c963e8e53152f51c9452067b437737", "score": "0.5691205", "text": "abstract protected function buildCommand(): string;", "title": "" }, { "docid": "95143681c404f361f2f5a8301a9a4767", "score": "0.56869245", "text": "public function createCommand($db = null)\n {\n if ($db === null) {\n $db = Yii::$app->get('dynamodb');\n }\n $config = $db->getQueryBuilder()->build($this);\n\n return $db->createCommand($config);\n }", "title": "" }, { "docid": "feaed8b2138eb55dfdcf14b14ecaf955", "score": "0.56757814", "text": "public function addCommand(string $class, ApplicationConfig &$config)\n {\n Assert::classExists($class, \"The command handler class '$class' does not exist!\");\n Assert::subclassOf($class, AbstractCommand::class, \"The command handler class '$class' does not inherit from '\" . AbstractCommand::class . \"'!\");\n\n $reflector = new \\ReflectionClass($class);\n\n $className = $reflector->getShortName();\n\n Assert::endsWith($className, 'Command', \"The command handler class '$class' has an invalid name: '%s'!\");\n\n $commandName = str_replace('Command', '', $className);\n $commandName = StringHelper::camelToSnakeCase($commandName);\n\n Assert::false($this->hasCommand($commandName, $config), \"A command with the name '$commandName' has already been declared!\");\n\n $command = $config->beginCommand($commandName);\n\n $classDocBlock = $reflector->getDocComment();\n\n Assert::notEmpty($classDocBlock, \"The command handler class '$class' is missing a descriptive docblock!\");\n\n $classDocBlock = $this->docBlockFactory->create($classDocBlock);\n\n $summary = $classDocBlock->getSummary();\n\n Assert::notEmpty($summary, \"The command handler doc-block of '$class' is missing a summary!\");\n\n $command->setDescription($summary);\n\n if (!empty($description = (string) $classDocBlock->getDescription())) {\n // $description = HelpTextUtility::convertToHelpText($description);\n $command->setHelp($description);\n }\n\n $container = &$this->container;\n $command->setHandler(function () use ($class, $container) {\n return $container->get($class);\n });\n\n $methods = $reflector->getMethods(\\ReflectionMethod::IS_PUBLIC | ~\\ReflectionMethod::IS_STATIC);\n\n Assert::notEmpty($methods, \"The command handler class '$class' defines no valid methods!\");\n\n $actionMethods = array_filter($methods, function (\\ReflectionMethod $elem) {\n return (bool) preg_match('/Action$/', $elem->getName());\n });\n\n Assert::notEmpty($actionMethods, \"The command handler class '$class' defines no valid action methods!\");\n\n if (count($actionMethods) === 1) {\n $method = array_shift($actionMethods);\n $cmdName = str_replace('Action', '', $method->getName());\n\n $command->setHandlerMethod(\"${cmdName}Cmd\");\n\n $aliases = $this->annotationReader->getMethodAnnotation($method, Aliases::class);\n if ($aliases !== null) {\n $aliasMap = $aliases->getNames();\n\n Assert::allRegex(\n $aliasMap,\n '/^[0-9a-zA-Z-]+$/',\n 'Alias names may only contain letters, digits and hyphens! Got: %s'\n );\n\n $command->setAliases($aliasMap);\n }\n\n $this->addArgsAndOptions($command, $method, $class);\n } else {\n foreach ($actionMethods as $method) {\n $cmdName = str_replace('Action', '', $method->getName());\n\n $subCommand = $command->beginSubCommand(StringHelper::camelToSnakeCase($cmdName));\n $subCommand->setHandlerMethod(\"${cmdName}Cmd\");\n\n if ($this->annotationReader->getMethodAnnotation($method, DefaultCommand::class) !== null) {\n $subCommand->markDefault();\n\n if ($this->annotationReader->getMethodAnnotation($method, AnonymousCommand::class) !== null) {\n $subCommand->markAnonymous();\n }\n }\n\n $aliases = $this->annotationReader->getMethodAnnotation($method, Aliases::class);\n if ($aliases !== null) {\n $aliasMap = $aliases->getNames();\n\n Assert::allRegex(\n $aliasMap,\n '/^[0-9a-zA-Z-]+$/',\n 'Alias names may only contain letters, digits and hyphens! Got: %s'\n );\n\n $subCommand->setAliases($aliasMap);\n }\n\n $this->addArgsAndOptions($subCommand, $method, $class);\n\n $subCommand->end();\n }\n }\n\n $command->end();\n }", "title": "" }, { "docid": "96aed3ba908ba901f0c6d9c807a2082a", "score": "0.56567776", "text": "public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }", "title": "" }, { "docid": "96aed3ba908ba901f0c6d9c807a2082a", "score": "0.56567776", "text": "public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }", "title": "" }, { "docid": "96aed3ba908ba901f0c6d9c807a2082a", "score": "0.56567776", "text": "public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }", "title": "" }, { "docid": "e6274b7609b0f5ca6c3d8fffa42f342e", "score": "0.5650912", "text": "public function __construct(Command $makeCommand, string $command)\n {\n $this->makeCommand = $makeCommand;\n $this->command = $command;\n $this->config = config('amfl.' . $command);\n }", "title": "" }, { "docid": "7696ae5a1c60e818ec522b2ebaefbb17", "score": "0.5649423", "text": "public function __construct()\n {\n parent::__construct();\n $this->_sub_commands = [];\n $this->initialize_command();\n }", "title": "" }, { "docid": "591967e181bfe010770aaa5b0ac4ea34", "score": "0.56476754", "text": "public static function createInstance() {\n \n }", "title": "" }, { "docid": "d5ee2327cc9a2544f187ecbe3fdcda6f", "score": "0.5647324", "text": "public function createCommand($sql = null, $params = [])\n {\n /** @var Command $command */\n $command = new $this->commandClass([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }", "title": "" }, { "docid": "d5ee2327cc9a2544f187ecbe3fdcda6f", "score": "0.5647324", "text": "public function createCommand($sql = null, $params = [])\n {\n /** @var Command $command */\n $command = new $this->commandClass([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }", "title": "" }, { "docid": "30aaf834eb5eeefa3248b0999d5fefd6", "score": "0.56470466", "text": "public function registerCommand()\n {\n //\n // return [\n // PublishCommand::class,\n // ];\n }", "title": "" }, { "docid": "0b1c17957573c0aa92ec7914a5cfc22d", "score": "0.5630915", "text": "protected function registerCommand()\n {\n $this->app->singleton('jwt.secret', function () {\n return new JWTGenerateSecretCommand;\n });\n }", "title": "" }, { "docid": "cf9e2d998737628688b549075c1a8620", "score": "0.56209713", "text": "public function testInstantiation()\n {\n $command = new UpdateRule('4');\n }", "title": "" }, { "docid": "2ff635aa0baf18816152d3af950d1ef4", "score": "0.5616789", "text": "public function __construct($commandPath)\n {\n parent::__construct($commandPath);\n }", "title": "" }, { "docid": "3bbdbf052640266575577df2c801068f", "score": "0.5605294", "text": "public function testAddCommand()\n {\n $new_member = 'test@example.com';\n $this->site->user_memberships->expects($this->once())\n ->method('create')\n ->willReturn($this->workflow)\n ->with($new_member, 'team_member');\n $this->command->add('mysite', $new_member);\n }", "title": "" }, { "docid": "a94e6c2a99bf9ef84c1358640c315d65", "score": "0.5602415", "text": "function __construct() {\n\t\t$this->cli = new CLI();\n\n\n\t}", "title": "" }, { "docid": "d4d57a04c4731ebe727465e89e1fc66d", "score": "0.55983543", "text": "public function setCommand($command)\n\t{\n\t\t$this->command = $command;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e90f30c61786a75ff99b1a67948bbbc0", "score": "0.5596508", "text": "public function getCommand($name, array $args = [])\n {\n if (!isset($this->api['operations'][$name])) {\n $name = ucfirst($name);\n if (!isset($this->api['operations'][$name])) {\n throw new \\InvalidArgumentException(\"Operation not found: $name\");\n }\n }\n\n // Merge in default configuration options.\n $args += $this->getConfig('defaults');\n\n if (isset($args['@future'])) {\n $future = $args['@future'];\n unset($args['@future']);\n } else {\n $future = false;\n }\n\n return new Command($name, $args + $this->defaults, [\n 'emitter' => clone $this->getEmitter(),\n 'future' => $future\n ]);\n }", "title": "" }, { "docid": "9ffb970eb3fdb0098eb692b5ef78c2a1", "score": "0.55804265", "text": "public function testInitCommand() {\n\n\t\t$command = new ExampleSlashCommand;\n\n\t\t$this->assertInstanceOf('HybridLogic\\Slack\\SlashCommand', $command);\n\n\t}", "title": "" }, { "docid": "286fe551d124623fdc78a852c77deb36", "score": "0.5570424", "text": "protected function makeCommandAndCommandHandler(): void\n {\n Artisan::call('make:tactician', ['name' => 'Foo']);\n }", "title": "" }, { "docid": "ca27180a85678d2c629232f234e4c99a", "score": "0.5566515", "text": "public function addCommand($command)\n {\n if (!is_object($command)) {\n if (!class_exists($command)) {\n throw new TelegramSDKException(\n sprintf(\n 'Command class \"%s\" not found! Please make sure the class exists.',\n $command\n )\n );\n }\n\n if ($this->telegram->hasContainer()) {\n $command = $this->buildDependencyInjectedCommand($command);\n } else {\n $command = new $command();\n }\n }\n\n if ($command instanceof CommandInterface) {\n\n /*\n * At this stage we definitely have a proper command to use.\n *\n * @var Command $command\n */\n $this->commands[$command->getName()] = $command;\n\n return $this;\n }\n\n throw new TelegramSDKException(\n sprintf(\n 'Command class \"%s\" should be an instance of \"Telegram\\Bot\\Commands\\CommandInterface\"',\n get_class($command)\n )\n );\n }", "title": "" }, { "docid": "a7af95812586e8fe7f606fe4fb7e9d78", "score": "0.55640906", "text": "public function create() {\n }", "title": "" }, { "docid": "a7af95812586e8fe7f606fe4fb7e9d78", "score": "0.55640906", "text": "public function create() {\n }", "title": "" }, { "docid": "3e9af00de83d187d9ad80eaaac17c12a", "score": "0.5561559", "text": "public function create()\n {\n // TODO\n }", "title": "" }, { "docid": "0068d9916f849e4d28c84d64a24cbd03", "score": "0.5560442", "text": "public function init()\n {\n return new InitCommandBuilder($this);\n }", "title": "" }, { "docid": "19943eb364f67cf9fd62011ddf68c919", "score": "0.55601394", "text": "function __construct(cliRequest $inRequest) {\n\t\tparent::__construct($inRequest, self::COMMAND,\n\t\t\tnew cliCommandChain(\n\t\t\t\tarray(\n\t\t\t\t\tnew cliCommandNull($inRequest, '<path/to/controller>', 'The full path to the controller including the controller itself but without the Controller suffix (e.g. controlPanel/user/login)', false, false, false),\n\t\t\t\t\tnew systemCommandSite($inRequest),\n\t\t\t\t\tnew cliCommandNull($inRequest, self::COMMAND_DESC, 'A short description for the controller that can be used as a title', true),\n\t\t\t\t\tnew cliCommandNull($inRequest, self::COMMAND_DAO, 'If set, will build a controller for manipulating the Data Access Object, usually reserved for an admin site.', true),\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\t\n\t\t$this->setCommandHelp(\n\t\t\t'Creates a new controller in the site and component specified. If any controllers are missing '.\n\t\t\t'from the path, these will be created as part of the process. Custom site templates can be '.\n\t\t\t'created once the site exists. They should be added to /data/templates/mvcGenerator. If any '.\n\t\t\t'files are missing from the path, they will be automatically generated. This includes default '.\n\t\t\t'controller, model, view and template files.'\n\t\t);\n\t\t$this->setCommandRequiresValue(true);\n\t}", "title": "" }, { "docid": "652a1adeba97cfc87599ba0957349f1d", "score": "0.5559745", "text": "public function create() {\n\n\t}", "title": "" }, { "docid": "652a1adeba97cfc87599ba0957349f1d", "score": "0.5559745", "text": "public function create() {\n\n\t}", "title": "" } ]
3aa7690f505564bef1a980d93fb1a6b6
Init allowed pages from configuration
[ { "docid": "6f05b82369f35711b98cec4539916f77", "score": "0.80126977", "text": "protected function _initAllowedPages()\n {\n if ($this->_allowedPages === null) {\n $this->_allowedPages = array();\n \n foreach (Mage::getConfig()->getNode(self::XML_PATH_ALLOWED_PAGES)->children() as $page => $info) {\n $module = ($info->getAttribute('module') ? $info->getAttribute('module') : 'ecomdev_varnish');\n $this->_allowedPages[$page] = Mage::helper($module)->__((string)$info->label);\n }\n }\n \n return $this;\n }", "title": "" } ]
[ { "docid": "4d7fdd28588091d6867792767704e061", "score": "0.7260816", "text": "protected function _initPages() {\n }", "title": "" }, { "docid": "aa34c49fc3515908f92a3ed462da531e", "score": "0.71524966", "text": "protected function initialize_pages() {\n\t\t$this->pages['log_list_page'] = new Page\\LogListPage();\n\t\t$this->pages['settings_page'] = new Page\\SettingsPage();\n\t}", "title": "" }, { "docid": "217fa0993af21df21e38187ac1286ca4", "score": "0.6780286", "text": "public function init() {\n\t\t\n\t\t$pagesTable = DIBASIC_DB_PREFIX.'pages';\n\t\t$q = \"SELECT * FROM $pagesTable ORDER BY `order` ASC\";\n\t\t$qr = mysql_query($q) or trigger_error(mysql_error(), E_USER_ERROR);\n\t\t\n\t\t$this->options['pageTitles'] = array();\n\t\t$this->options['pageDefaultPermissions'] = array();\n\t\t\n\t\twhile ($r = mysql_fetch_assoc($qr)) {\n\t\t\t$title = $r['group'] ? $r['group'].\" » \" : '';\n\t\t\t$title .= $r['title'];\n\t\t\t\n\t\t\t$this->options['pageTitles'][$r['id']] = $title;\n\t\t\t$this->options['pageDefaultPermissions'][$r['id']] = (int) $r['can_open_by_default'];\n\t\t}\n\t}", "title": "" }, { "docid": "03cd3b6c1d3e0b0a2ba2db2b671432a7", "score": "0.6685802", "text": "public function setPagesAccessible()\r\n\t{\r\n\t\t$this->aPagesAccessible = array();\r\n\r\n\t\tif($this->oPrediggoConfig->home_recommendations)\r\n\t\t\t$this->aPagesAccessible[] = 'index';\r\n\t\tif($this->oPrediggoConfig->error_recommendations)\r\n\t\t\t$this->aPagesAccessible[] = '404';\r\n\t\tif($this->oPrediggoConfig->product_recommendations)\r\n\t\t\t$this->aPagesAccessible[] = 'product';\r\n\t\tif($this->oPrediggoConfig->category_recommendations)\r\n\t\t\t$this->aPagesAccessible[] = 'category';\r\n\t\tif($this->oPrediggoConfig->customer_recommendations)\r\n\t\t{\r\n\t\t\t$this->aPagesAccessible[] = 'my-account';\r\n\t\t\t$this->aPagesAccessible[] = 'addresses';\r\n\t\t\t$this->aPagesAccessible[] = 'history';\r\n\t\t\t$this->aPagesAccessible[] = 'order-return';\r\n\t\t}\r\n\t\tif($this->oPrediggoConfig->cart_recommendations)\r\n\t\t{\r\n\t\t\t$this->aPagesAccessible[] = 'order';\r\n\t\t\t$this->aPagesAccessible[] = 'order-opc';\r\n\t\t}\r\n\t\tif($this->oPrediggoConfig->best_sales_recommendations)\r\n\t\t\t$this->aPagesAccessible[] = 'best-sales';\r\n\t\tif($this->oPrediggoConfig->blocklayered_recommendations)\r\n\t\t\t$this->aPagesAccessible[] = 'blocklayered';\r\n\t}", "title": "" }, { "docid": "a31c6499b6a69b8714b577d37056d3d4", "score": "0.6638267", "text": "public function init_pages()\n {\n menu_page::addonAddPage('addon_contact_us_main', '', 'Settings', $this->name, '');\n }", "title": "" }, { "docid": "99d315ea00609f82bb7f43b5d0d13b4b", "score": "0.6583534", "text": "public static function init() {\n\t\t\tadd_action( 'admin_page_access_denied', array( get_called_class(), 'settings_page_access_denied' ) );\n\t\t}", "title": "" }, { "docid": "8589fc2a4c6478bc7685fe2cb3798cb1", "score": "0.65200216", "text": "public function pageInit() { \n \n \t// Register the settings group\n register_setting(\n 'my_option_group', // Option group\n 'my_endpoints', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n \n // Register plugin settings\n register_setting(\n \t'my_plugin_settings_group', // Option group\n \t'my_plugin_settings', // Option name\n \tarray( $this, 'sanitize' ) // Sanitize\n );\n \n // Create SDK settings section\n add_settings_section(\n \t'sdk_setting_section_id', // ID\n \t'SDK definition', // Title\n \tarray( $this, 'printSdkSectionInfo' ), // Callback\n \t$this->settingsPage // Page\n );\n \n add_settings_section(\n \t$this->pluginSettingsSection . '_id', // ID\n \t'Widget Settings', // Title\n \tarray( $this, 'printSdkSectionInfo' ), // Callback\n \t \t$this->pluginSettingsSection // Page\n );\n\n // Create endpoint settings section\n add_settings_section(\n \t$this->settingSectionId, // ID\n \t'Environment definition', // Title\n \t \tarray( $this, 'printSectionInfo' ), // Callback\n \t$this->settingsPage // Page\n );\n\n // Create fields for endpoint settings\n $this->_initEndpointFields();\n \n // Create fields for sdk settings\n $this->_initSdkFields();\n }", "title": "" }, { "docid": "0c02d53159299397b3af3b84213fa5c7", "score": "0.6440366", "text": "function paging_configpageload() {\n\tglobal $currentcomponent;\n\n\t// Init vars from $_REQUEST[]\n\t$action = isset($_REQUEST['action']) ? $_REQUEST['action']:null;\n\t$extdisplay = isset($_REQUEST['extdisplay']) ? $_REQUEST['extdisplay']:null;\n\t$tech_hardware = isset($_REQUEST['tech_hardware']) ? $_REQUEST['tech_hardware']:'';\n\t\n\t// Don't display this stuff it it's on a 'This xtn has been deleted' page.\n\tif ($action != 'del' && $tech_hardware != 'virtual') {\n\n\t\t$default_group = sql(\"SELECT value FROM `admin` WHERE variable = 'default_page_grp'\", \"getOne\");\n\t\t$section = _(\"Default Group Inclusion\");\n\t\tif ($default_group != \"\") {\n\t\t\t$in_default_page_grp = paging_check_default($extdisplay);\n\t\t\t$currentcomponent->addguielem($section, new gui_selectbox('in_default_page_grp', $currentcomponent->getoptlist('page_group'), $in_default_page_grp, _('Default Page Group'), _('You can include or exclude this extension/device from being part of the default page group when creating or editing.'), false));\n\t\t} \n\t}\n}", "title": "" }, { "docid": "80701a4eaa648f9ca57fd313eedadcb7", "score": "0.63855964", "text": "public function setup_pages() {\n\t\t$this->pages = array(\n\t\t\t'the7-dashboard' => array(\n\t\t\t\t'title' => __( 'My The7', 'the7mk2' ),\n\t\t\t\t'capability' => 'edit_theme_options',\n\t\t\t),\n\t\t\t'the7-demo-content' => array(\n\t\t\t\t'title' => __( 'Pre-made Websites', 'the7mk2' ),\n\t\t\t\t'capability' => 'edit_theme_options',\n\t\t\t),\n\t\t\t'the7-plugins' => array(\n\t\t\t\t'title' => __( 'Plugins', 'the7mk2' ),\n\t\t\t\t'capability' => 'install_plugins',\n\t\t\t),\n\t\t\t'the7-status' => array(\n\t\t\t\t'title' => __( 'Service Information', 'the7mk2' ),\n\t\t\t\t'capability' => 'switch_themes',\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "0b2b2d27b5923764d17f4073199fc7a5", "score": "0.63160294", "text": "public\n function page_init()\n {\n register_setting(\n 'ksr_utm_option_group', // Option group\n 'ksr_utm_option_group', // Option name\n array($this, 'sanitize') // Sanitize\n );\n\n add_settings_section(\n 'setting_section_id', // ID\n '', // Title\n [$this, 'return_false'], // Callback\n 'ksr_utm_option_group' // Page\n );\n\n add_settings_field(\n 'ksr-utm-list', // ID\n 'UTM Options', // Title\n [$this, 'return_false'], // Callback\n 'ksr_utm_option_group', // Page\n 'setting_section_id' // Section\n );\n }", "title": "" }, { "docid": "e53a919221ccab012184607af5cfe43d", "score": "0.62895536", "text": "function init()\n\t{\n\t\t//parse whitelist from config-file and turn \"pseudo-regex\" with *.domain.com to a regex\n\t\tif ($this->load_config())\n\t\t{\n\t\t\t$ar_whitelist = rcmail::get_instance()->config->get('automx_whitelist');\n\t\t\t\n\t\t\tif (is_array($ar_whitelist) && count($ar_whitelist) > 0)\n\t\t\t{\n\t\t\t\tforeach ($ar_whitelist as $wlstring)\n\t\t\t\t{\n\t\t\t\t\t$wlstring = preg_quote($wlstring);\n\t\t\t\t\t$pattern = \"~\".str_replace('\\*', \".*\", $wlstring).\"~U\"; //ungreedy\n\t\t\t\t\t$this->_whitelist[] = $pattern;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->add_hook('authenticate', array($this, 'process'));\n\t\t$this->include_script('automx.js'); //hides select dropdown\n\t}", "title": "" }, { "docid": "e9933cb25fad17130c444833d1a13442", "score": "0.62615085", "text": "protected function _configure() {\n\t\t$this->_verifyBlockTypes(); // attributes\n\t\t$this->_verifySinglePages(); // dashboard pages\n\t}", "title": "" }, { "docid": "c8d795d75d8a429b809d7a7e6b6f278d", "score": "0.62456805", "text": "private function initializePage()\n {\n $page = $this->request->getParameter(self::PAGE_PARAMETER_NAME, 1);\n if (!is_numeric($page)) {\n $page = 1;\n }\n $this->page = $page;\n }", "title": "" }, { "docid": "daae54deda60b6eda3278d105e768f81", "score": "0.61378753", "text": "public function init()\n {\n if($this->view->is_internal_admin===false){\n House_Log::log(\"not internal admin\");\n $this->_helper->_redirector->gotoUrl(\"/admin/galleries\");\n }\n }", "title": "" }, { "docid": "9adf96cd36de72f7a59342edd736161e", "score": "0.6124564", "text": "public function init()\n {\n \tdefined('BASE_URL')\t|| define('BASE_URL', Zend_Controller_Front::getInstance()->getBaseUrl());\n \t$tr = Application_Form_FrmLanguages::getCurrentlanguage();\n\t\t$db = new Application_Model_DbTable_DbGlobal();\n\t\t$rs = $db->getValidUserUrl();\n\t\tif(empty($rs)){\n\t\t\tApplication_Form_FrmMessage::Sucessfull(\"YOU_NO_PERMISION_TO_ACCESS_THIS_SECTION\",\"/index/dashboad\");\n\t\t}\n }", "title": "" }, { "docid": "1e9b29bbb98a6dbd31801a7ae2b275ff", "score": "0.6120978", "text": "public function page_init()\n { \n register_setting(\n 'ffc_general_group', // Option group\n 'ffc_general', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n add_settings_section(\n 'ffc-settings-general', // ID\n 'Forge Facebook Connect', // Title\n array( $this, 'print_section_info' ), // Callback\n 'ffc-settings-admin' // Page\n ); \n\n add_settings_field(\n 'id_number', // ID\n 'ID Number', // Title \n array( $this, 'id_number_callback' ), // Callback\n 'ffc-settings-admin', // Page\n 'ffc-settings-general' // Section \n ); \n\n add_settings_field(\n 'title', \n 'Title', \n array( $this, 'title_callback' ), \n 'ffc-settings-admin', \n 'ffc-settings-general'\n ); \n }", "title": "" }, { "docid": "9e8718be2c97fc7e4e047adb679a08b8", "score": "0.6115858", "text": "public function create_pages() {\n\t\tif ( ! wp_verify_nonce( LP_Request::get_string( '_wpnonce', 'setup-create-pages' ) ) ) {\n\t\t\tdie();\n\t\t}\n\n\t\t$settings = LP_Request::get( 'settings' );\n\t\tforeach ( $settings['pages'] as $page => $page_id ) {\n\t\t\tif ( empty( $page_id ) ) {\n\t\t\t\t$_REQUEST['settings']['pages'][ $page ] = $this->create_page( $page );\n\t\t\t}\n\t\t}\n\n\t\tLP_Request::$ajax_shutdown = false;\n\t}", "title": "" }, { "docid": "fc9636916f5c67a11ddb68ade8bd4af6", "score": "0.6057055", "text": "public function init()\n {\n \tdefined('BASE_URL')\t|| define('BASE_URL', Zend_Controller_Front::getInstance()->getBaseUrl());\n \t$tr = Application_Form_FrmLanguages::getCurrentlanguage();\n \t$db = new Application_Model_DbTable_DbGlobal();\n \t$rs = $db->getValidUserUrl();\n \tif(empty($rs)){\n \t Application_Form_FrmMessage::Sucessfull(\"YOU_NO_PERMISION_TO_ACCESS_THIS_SECTION\",\"/index/dashboad\");\n \t}\n }", "title": "" }, { "docid": "737e411fbbd48e09ca48c6023b9a5bab", "score": "0.6054317", "text": "private function _setPageVars()\n {\n //Strip off first two segments since they will be page/render or facebook/render\n $segments = array_slice($this->uri->segment_array(), 2);\n $this->pagePath = $this->_getPagesPath();\n $resolved = $this->getPageFromSegments($segments);\n if ($resolved['page'])\n $this->page = $resolved['page'];\n if ($resolved['path'])\n $this->pagePath = $resolved['path'];\n if ($resolved['segmentIndex'])\n $this->config->set_item('parm_segment', $resolved['segmentIndex']);\n\n if(!$resolved['found'])\n {\n //We didn't find the page we were looking for so attempt to load up the\n //404 page within the config setting in place of this page (thereby keeping the\n //URL entered intact). If the config isn't set, go to the old 404 page.\n if($nonExistantErrorPage = Config::getConfig(CP_404_URL))\n {\n $pageSetPrefix = ($this->getPageSetPath() !== null) ? $this->getPageSetPath() . '/' : '';\n $customErrorPage = \"{$this->pagePath}{$pageSetPrefix}{$nonExistantErrorPage}.php\";\n if(FileSystem::isReadableFile($customErrorPage))\n {\n header($_SERVER[\"SERVER_PROTOCOL\"] . \" 404 Not Found\");\n $this->page = $nonExistantErrorPage;\n $this->pagePath = $customErrorPage;\n }\n else\n {\n show_404(\"{$resolved['currentPath']}.php\");\n }\n }\n else\n {\n show_404(\"{$resolved['currentPath']}.php\");\n }\n }\n }", "title": "" }, { "docid": "5fda6b178447d08696fe7debbf27edb7", "score": "0.6051943", "text": "function get_pages(){\n\t\treturn array(\n\t\t\t'login' => 'Login Page',\n\t\t\t'register' => 'Register Page',\n\t\t);\n\t}", "title": "" }, { "docid": "b5af5ea9c5b754baa96f0fd94a49380c", "score": "0.6029081", "text": "public function init() {\n\t\t$readActions = array('index', 'students','view', 'photoupload', 'managephotos', 'deletephoto', \n\t\t\t'actuallydeletephoto', 'setdefaultphoto', 'viewdefaultphoto', 'pblgroups', 'group','blockchairs',\n\t\t\t'teachingstaff', 'stafflist', 'editdetails', 'doeditdetails');\n\t\t$this->_helper->_acl->allow('student', $readActions);\n\t\t$writeActions = array('setofficialphoto','viewofficialphoto');\n\t\t$this->_helper->_acl->allow('staff', $writeActions);\n\t\t$this->_helper->_acl->allow('admin', array('cohortgroup'));\n\t}", "title": "" }, { "docid": "24c39097811c36ee5b640881a1334e36", "score": "0.6026409", "text": "function init() {\n\t\t\n\t\tif($this->getData(\"pagingRecordsPerPage\")!='')\n\t\t{\n\t\t\t$this->internal['results_at_a_time'] = $this->getData(\"pagingRecordsPerPage\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->internal['results_at_a_time'] = 2;\n\t\t}\n\t\t// Settings for paging starts here\n\t\t\n\t\t$this->internal['maxPages'] = 7;\n\t\t$this->internal['dontLinkActivePage'] = true;\n\t\t$this->internal['pagefloat'] = 'center';\n\t\t// Settings for paging ends here\n\n\t}", "title": "" }, { "docid": "982287534e5c3d8eecc127055be1931a", "score": "0.6021372", "text": "public function __construct()\n\t{\n\t\t$this->initPageParams();\n\t}", "title": "" }, { "docid": "9c581a55b32354250ed554fa332800a0", "score": "0.60099745", "text": "public function initPagess()\n\t{\n\t\t$this->collPagess = array();\n\t}", "title": "" }, { "docid": "f34f28a1aaf1fd8868f713f4215d620f", "score": "0.6003825", "text": "function __construct()\n\t{\n\t\t// without this, we won't be able to...\n\t\t// this->build our pages.\n\t\tparent::__construct();\n\t\t$this->has_permission('ACCESS_ADMIN') or show_404();\n\n\n\t\t$this->load->library(array('form_validation' => 'fv'));\n\n\t}", "title": "" }, { "docid": "639d72541fc778dda799b7cafacdb4fc", "score": "0.6003814", "text": "private static function setupPages()\n {\n self::$pages = array (\n 'mooexternallinks' => array (\n 'title' => 'External Links (for the bottom of the page)',\n 'file_folder' => 'operations',\n 'table' => 'moo_external_link',\n 'singular' => 'External link',\n 'submenu_title' => 'External link',\n 'default_empty_msg' => 'Sorry, no external links could be found! Please try again.',\n 'model' => array (\n 'selects' => array (\n '*'\n ),\n 'joins' => array (\n ),\n 'where_fields' => array (\n 'title',\n 'url',\n ),\n /**\n * Fix url\n */\n 'pre_hook' => function (&$row) {\n if (!preg_match(\"~^(?:f|ht)tps?://~i\", $row->url)) {\n $row->url = \"http://\" . $row->url;\n }\n }\n ),\n 'view' => array (\n 'all' => array (\n 'title' => array (\n 'link' => true,\n 'sort' => true,\n 'width' => '5%',\n 'align' => 'left'\n ),\n 'url' => array (\n 'heading' => 'Links To',\n 'sort' => true,\n 'external_link' => true,\n 'align' => 'left'\n ),\n 'ordering' => array (\n 'width' => '5%',\n 'sort' => true\n ),\n 'published' => array (\n 'width' => '5%',\n 'sort' => true\n )\n ),\n 'single' => array (\n 'title' => array (\n \n ),\n 'url' => array (\n 'heading' => 'Links To'\n ),\n 'ordering' => array (\n 'additional_style' => 'width:25px;'\n ),\n 'published' => array (\n 'formatter' => 'boolean'\n ),\n )\n ),\n 'controller' => array (\n )\n ),\n );\n }", "title": "" }, { "docid": "1f437d8e797b00b20344a7604ee04195", "score": "0.59814787", "text": "public function page_init()\n {\n register_setting(\n 'blank_plugin_settings_group', // Option group\n 'blank_plugin_settings', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n /**\n * URL group\n */\n\n add_settings_section(\n 'blank_plugin', // ID\n __('General Settings', 'blank-plugin'), // Title\n array( $this, 'print_section_info' ), // Callback\n 'blank-plugin-admin' // Page\n );\n\n add_settings_field(\n 'blank_plugin_first_setting', // ID\n __('First Setting', 'blank-plugin'), // Title\n array( $this, 'blank_plugin_first_setting_callback' ), // Callback\n 'blank-plugin-admin', // Page\n 'blank_plugin' // Section\n );\n\n }", "title": "" }, { "docid": "61487530e731e92e6b29f24f9daefaab", "score": "0.59537655", "text": "function __construct() {\n\t\tparent::__construct();\n\t\t\n\t\tdefine('PAGE', 'admin');\n\t\t\n\t}", "title": "" }, { "docid": "900b6070be2ddd35853d6e5fb9def545", "score": "0.595297", "text": "public function init() {\n\t\tif ( filter_input( INPUT_GET, 'wpseo_reset_defaults' ) && wp_verify_nonce( filter_input( INPUT_GET, 'nonce' ), 'wpseo_reset_defaults' ) && current_user_can( 'manage_options' ) ) {\n\t\t\tWPSEO_Options::reset();\n\t\t\twp_redirect( admin_url( 'admin.php?page=' . WPSEO_Configuration_Page::PAGE_IDENTIFIER ) );\n\t\t}\n\n\t\tadd_action( 'admin_init', array( $this, 'admin_init' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'config_page_scripts' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'config_page_styles' ) );\n\t}", "title": "" }, { "docid": "5e44c882649bed3b918362addbca3731", "score": "0.5941265", "text": "static public function init() {\n if (count(Lang::langs())>1) {\n return Url::initLang();\n }\n $url = (isset($_GET['url'])) ? $_GET['url'] : '';\n $info = explode('/', $url);\n if (isset($info[0]) && $info[0]==ADMIN_URL_STRING) {\n //If the url points to the admin area\n $_GET['mode'] = 'admin';\n $_GET['type'] = (isset($info[1]) && $info[1]!='') ? $info[1] : 'NavigationAdmin';\n $_GET['action'] = (isset($info[2])) ? $info[2] : '';\n $_GET['id'] = (isset($info[3])) ? $info[3] : '';\n $_GET['extraId'] = (isset($info[4])) ? $info[4] : '';\n $_GET['addId'] = (isset($info[5])) ? $info[5] : '';\n } else {\n //If the url points to the public area\n $_GET['type'] = 'Navigation';\n $_GET['action'] = (isset($info[0])) ? $info[0] : '';\n $_GET['id'] = (isset($info[1])) ? $info[1] : '';\n $_GET['extraId'] = (isset($info[2])) ? $info[2] : '';\n $_GET['addId'] = (isset($info[3])) ? $info[3] : '';\n }\n $_GET['lang'] = LANGS;\n $_GET['action'] = (isset($_GET['action']) && $_GET['action']!='') ? $_GET['action'] : 'intro';\n }", "title": "" }, { "docid": "60619c9caea8ebed47796e850dd7b954", "score": "0.5938833", "text": "public function actionInit(){\n $permissions = $this->_listPermissions();\n\n foreach($permissions as $pms){\n $this->validAdd($pms['name'] . '_index', $pms['description'] );\n $this->validAdd($pms['name'] . '_view', $pms['description'] . ' View');\n $this->validAdd($pms['name'] . '_create', $pms['description'] . ' Create');\n $this->validAdd($pms['name'] . '_update', $pms['description'] . ' Update');\n $this->validAdd($pms['name'] . '_delete', $pms['description'] . ' Delete');\n }\n }", "title": "" }, { "docid": "43217b5f3689bbcbeb4f2c4ef3e77721", "score": "0.59328216", "text": "public function initialize()\n {\n $this->view->setVar(\"page\", \"runningcampaigns\");\n }", "title": "" }, { "docid": "e86768e2a4b5e08be8f59c16676b5b81", "score": "0.59036964", "text": "public function page_init()\n {\n register_setting( 'dp_settings_page', 'dp_settings', array($this, 'dp_settings_save'));\n }", "title": "" }, { "docid": "45e29c4b7b8a625b0934f74fd7d5e643", "score": "0.5902042", "text": "static public function init(){\r\n\r\n\t\tSession::init();\r\n\r\n\t\tself::$page = preg_replace(\"/[^A-Za-z0-9_ ]/\", '', IO::GET('p'));\r\n\t\tself::enforceLogin();\r\n\t\tself::validatePage();\r\n\t\tself::loadLoggedInUser();\r\n\t\tself::execute();\r\n\t}", "title": "" }, { "docid": "7ddc07e1c36e4f66a796b35f20678610", "score": "0.5880825", "text": "public function init() {\n\t$this->_helper->_acl->allow(null);\n\t$this->_helper->contextSwitch()\n\t\t->setAutoDisableLayout(true)\n\t\t->addActionContext('index', array('xml','json'))\n\t\t->addActionContext('denomination', array('xml','json'))\n\t\t->initContext();\n }", "title": "" }, { "docid": "588ea12040c41bc033a992e931ff482b", "score": "0.5876858", "text": "function static_page()\n\t{\n\t\tglobal $errors, $cache, $Cl_root_path, $lang_loader, $basic_lang, $template, $plug_clcode, $userdata;\n\t\t\n\t\t// get the name\n\t\t$name = ( isset( $_GET[ SUBMODE_URL ] ) ) ? str_replace( '%20', ' ', strval( $_GET[ SUBMODE_URL ] ) ) : '';\n\t\t\n\t\t// get the pages\n\t\tif ( !$pages_array = $cache->pull( 'static_pages' ) )\n\t\t{ // need to get them\n\t\t\tif ( !is_readable( $Cl_root_path . 'kernel/config/static_pages' . phpEx ) )\n\t\t\t{ // oh noes, run away\n\t\t\t\t$errors->report_error( $basic_lang[ 'Unknown_page' ], GENERAL_ERROR );\n\t\t\t}\n\t\t\t$pages_array = unserialize( @file_get_contents( $Cl_root_path . 'kernel/config/static_pages' . phpEx ) );\n\t\t\t$cache->push( 'static_pages', $pages_array, TRUE );\n\t\t}\n\t\t\n\t\tif ( !$page = $pages_array[ $lang_loader->board_lang ][ $name ] )\n\t\t{ // didn't get the bastard\n\t\t\t$errors->report_error( $basic_lang[ 'Unknown_page' ], GENERAL_ERROR );\n\t\t}\n\t\t// check auth\n\t\t// check the auth :)\n\t\tif ( isset( $page[ 'auth' ] ) )\n\t\t{\n\t\t\tif ( $page[ 'auth' ] < ADMIN )\n\t\t\t{ // for wee low folk\n\t\t\t\tif ( $page[ 'auth' ] > $userdata[ 'user_level' ] )\n\t\t\t\t{ // don't display this one\n\t\t\t\t\t$errors->report_error( $basic_lang[ 'Page_auth' ], GENERAL_ERROR );\n\t\t\t\t}\n\t\t\t}else\n\t\t\t{ // for a tad normaler guys\n\t\t\t\tif ( $userdata[ 'user_level' ] < $page[ 'auth' ] )\n\t\t\t\t{ // don't display this one\n\t\t\t\t\t$errors->report_error( $basic_lang[ 'Page_auth' ], GENERAL_ERROR );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// fire up ze template\n\t\t$template->assign_files( array(\n\t\t\t'static_page' => 'static_page' . tplEx\n\t\t) );\n\t\t// stuff add\n\t\t$template->assign_block_vars( 'page', '', array(\n// \t\t\t'BODY' => $plug_clcode->parse( stripslashes( $page[ 'content' ] ), TRUE )\n\t\t\t'BODY' => stripslashes( $page[ 'content' ] )\n\t\t) );\n\t\t$template->assign_switch( 'page', TRUE );\n\t\t\n\t\t// some minor thingies eh\n\t\t$this->set_title( $name );\n\t\t$this->set_level( 1, 'pages', '', array( array( 'URL' => '?' . MODE_URL . '=pages&' . SUBMODE_URL . '=' . str_replace( ' ', '%20', $name ), 'title' => $name ) ) );\n\t\t\n\t\t// add to output\n\t\t$this->add_file( 'static_page' );\n\t}", "title": "" }, { "docid": "d0cafd6f8b615c537e757e9242d972fa", "score": "0.58716017", "text": "function initialize()\n\t{\n\t\t$this->_configure \t= $this->config->item('biz_type_configure');\n\t\t$this->_pagination \t= $this->config->item('pagination');\n\t\t$this->_validation \t= $this->config->item('biz_type_validation');\n\t}", "title": "" }, { "docid": "655ce016e8053c55c150aa8a21ba1b2b", "score": "0.5863005", "text": "function page_init(&$a) {\n\n\t$which = argv(1);\n\t$profile = 0;\n\tprofile_load($a,$which,$profile);\n\n\tif($a->profile['profile_uid'])\n\t\thead_set_icon($a->profile['thumb']);\n\n\n\t// load the item here in the init function because we need to extract\n\t// the page layout and initialise the correct theme.\n\n\n\t$observer = $a->get_observer();\n\t$ob_hash = (($observer) ? $observer['xchan_hash'] : '');\n\n\t$perms = get_all_perms($a->profile['profile_uid'],$ob_hash);\n\n\tif(! $perms['view_pages']) {\n\t\tnotice( t('Permission denied.') . EOL);\n\t\treturn;\n\t}\n\n\tif(argc() < 3) {\n\t\tnotice( t('Invalid item.') . EOL);\n\t\treturn;\n\t}\n\n\t$channel_address = argv(1);\n\t$page_id = argv(2);\n\n\t$u = q(\"select channel_id from channel where channel_address = '%s' limit 1\",\n\t\tdbesc($channel_address)\n\t);\n\n\tif(! $u) {\n\t\tnotice( t('Channel not found.') . EOL);\n\t\treturn;\n\t}\n\n\tif($_REQUEST['rev'])\n\t\t$revision = \" and revision = \" . intval($_REQUEST['rev']) . \" \";\n\telse\n\t\t$revision = \" order by revision desc \";\n\n\trequire_once('include/security.php');\n\t$sql_options = item_permissions_sql($u[0]['channel_id']);\n\n\t$r = q(\"select item.* from item left join item_id on item.id = item_id.iid\n\t\twhere item.uid = %d and sid = '%s' and service = 'WEBPAGE' and \n\t\titem_restrict = %d $sql_options $revision limit 1\",\n\t\tintval($u[0]['channel_id']),\n\t\tdbesc($page_id),\n\t\tintval(ITEM_WEBPAGE)\n\t);\n\n\tif(! $r) {\n\n\t\t// Check again with no permissions clause to see if it is a permissions issue\n\n\t\t$x = q(\"select item.* from item left join item_id on item.id = item_id.iid\n\t\twhere item.uid = %d and sid = '%s' and service = 'WEBPAGE' and \n\t\titem_restrict = %d $revision limit 1\",\n\t\t\tintval($u[0]['channel_id']),\n\t\t\tdbesc($page_id),\n\t\t\tintval(ITEM_WEBPAGE)\n\t\t);\n\t\tif($x) {\n\t\t\t// Yes, it's there. You just aren't allowed to see it.\n\t\t\tnotice( t('Permission denied.') . EOL);\n\t\t}\n\t\telse {\n\t\t\tnotice( t('Page not found.') . EOL);\n\t\t}\n\t\treturn;\n\t}\n\n\tif($r[0]['layout_mid']) {\n\t\t$l = q(\"select body from item where mid = '%s' and uid = %d limit 1\",\n\t\t\tdbesc($r[0]['layout_mid']),\n\t\t\tintval($u[0]['channel_id'])\n\t\t);\n\n\t\tif($l) {\n\t\t\trequire_once('include/comanche.php');\n\t\t\tcomanche_parser(get_app(),$l[0]['body']);\n\t\t\tget_app()->pdl = $l[0]['body'];\n\t\t}\n\t}\n\n\t$a->data['webpage'] = $r;\n\n\n\n}", "title": "" }, { "docid": "0ba902e3b857b1ab6c7027068684b11b", "score": "0.5852483", "text": "public function load_options_page() {\n\t\t$page_str = str_replace('wpv_', '', $_GET['page']);\n\t\t$page = WPV_ADMIN_OPTIONS . $page_str . '.php';\n\n\t\tif(file_exists($page)) {\n\t\t\t$options = include $page;\n\t\t} else {\n\t\t\t$name = $this->option_pages[$page_str][0];\n\n\t\t\t$options = array(\n\t\t\t\t'name' => $name,\n\t\t\t\t'auto' => true,\n\t\t\t\t'config' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => $name,\n\t\t\t\t\t\t'type' => 'title',\n\t\t\t\t\t\t'desc' => '',\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$tabs = include WPV_THEME_OPTIONS . $page_str . '/list.php';\n\n\t\t\tforeach($tabs as $tab) {\n\t\t\t\t$tab_contents = include WPV_THEME_OPTIONS.$page_str.\"/$tab.php\";\n\n\t\t\t\t$options['config'] = array_merge($options['config'], $tab_contents);\n\t\t\t}\n\t\t}\n\n\t\tif($options['auto'])\n\t\t\tnew WpvConfigGenerator($options['name'], $options['config']);\n\t}", "title": "" }, { "docid": "a7a49e643a60c9dba88eb3720a68d5d9", "score": "0.58524776", "text": "protected function _construct()\n {\n $this->_init('cms_page', 'page_id');\n }", "title": "" }, { "docid": "d5f27879b0e8262ff86b803f04403cf4", "score": "0.5850535", "text": "public function init()\n\t{\n\t\tadd_action( 'init', array( $this, 'config' ), 0 );\n\t\tadd_action( 'init', array( $this, 'route_response' ), 1 );\n\t\tadd_filter( 'page_template', array( $this, 'load_template' ) );\n\t}", "title": "" }, { "docid": "cdaf59697d235808e09d44f723d6246d", "score": "0.58474135", "text": "function init() {\r\n $page = isset($_GET['page']) && intval($_GET['page']) ? intval($_GET['page']) : 1;\r\n $infos = $this->db->listinfo($where,$order = 'id DESC',$page, $pages = '12');\r\n $pages = $this->db->pages;\r\n $invest_type = $this->invest_type;\r\n include $this->admin_tpl('communist_list');\r\n }", "title": "" }, { "docid": "ed5236c1909b023a27a9f5583c839c19", "score": "0.5846705", "text": "public function init()\n {\n // Setting internal vars:\n $this->sys_language = (int)GeneralUtility::_GP('sys_language');\n $this->page_id = (int)GeneralUtility::_GP('uid');\n $this->table = GeneralUtility::_GP('table');\n $this->R_URI = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));\n $this->input_moveUid = GeneralUtility::_GP('moveUid');\n $this->moveUid = $this->input_moveUid ? $this->input_moveUid : $this->page_id;\n $this->makeCopy = GeneralUtility::_GP('makeCopy');\n // Select-pages where clause for read-access:\n $this->perms_clause = $this->getBackendUser()->getPagePermsClause(1);\n }", "title": "" }, { "docid": "c1b42ec360a841985332cefda070778e", "score": "0.58436114", "text": "private function register_menu_pages() {\n\t\tadd_options_page(\n\t\t\t__( 'HelpScout Docs API', 'helpscout-docs-api' ),\n\t\t\t__( 'HelpScout API', 'helpscout-docs-api' ),\n\t\t\t'manage_options',\n\t\t\t$this->hook,\n\t\t\tarray( new Admin_Page(), 'config_page' )\n\t\t);\n\n\t}", "title": "" }, { "docid": "d38705da82491fb930018ad34231f2c9", "score": "0.58380455", "text": "function SetupMultiPages() {\r\n\t\t$pages = new cSubPages();\r\n\t\t$pages->Add(0);\r\n\t\t$pages->Add(1);\r\n\t\t$pages->Add(2);\r\n\t\t$pages->Add(3);\r\n\t\t$this->MultiPages = $pages;\r\n\t}", "title": "" }, { "docid": "337bcde83c80604be141c68442389ff2", "score": "0.5819608", "text": "public function init()\n\t{\n\t\t$this->registerActiveRecord();\n\t\t$this->registerSmarty();\n\t\t$this->registerPage();\n\t\tif ($this->isFacebookApp()) {\n\t\t\t$this->registerFbApp();\n\t\t}\n\t}", "title": "" }, { "docid": "c437fbdeea4639e1a56317adc0409fdb", "score": "0.58082366", "text": "public static function init()\n {\n rex_extension::register('PACKAGES_INCLUDED', function () {\n if (rex_addon::get('structure')->isAvailable() &&\n (rex_request('page', 'string') == 'structure' || rex_request('page', 'string') == 'linkmap')\n ) {\n rex_extension::register('PAGE_HEADER', [__CLASS__, 'ep']);\n }\n });\n }", "title": "" }, { "docid": "a31f949769b07b5ddb857cc872996d8e", "score": "0.5803951", "text": "private function pages_tab() {\n\t\t$this->pages_settings_appearance();\n\t}", "title": "" }, { "docid": "ab1733067da42f0b243dcb048c44ad28", "score": "0.58017695", "text": "public function init() {\n $page = $this->view->navigation()->findOneByLabel('Promos'); \n if ($page) {\n $page->setActive();\n }\n if ($this->_helper->Layout->getLayout() != 'nolayout') {\n $this->_helper->Layout->setLayout('admin');\n }\n $this->_users_svc = new Service_Users;\n $this->_admin_svc = new Service_Admin;\n $this->_promos_mapper = new Model_Mapper_Promos;\n if (!$this->_users_svc->isAuthenticated(true)) {\n $this->_helper->Redirector->gotoSimple('index', 'index');\n }\n $this->view->inlineScriptMin()->loadGroup('admin-promos')\n ->appendScript(\"Pet.loadView('AdminPromos');\");\n }", "title": "" }, { "docid": "6f3c77ec4a36b775d020f2a83bf11a34", "score": "0.58001", "text": "public function init_config_hooks() {\n //It sets up the various tabs and the fields for the settings admin page.\n \n if (is_admin()) { // for frontend just load settings but dont try to render settings page.\n \n //Read the value of tab query arg.\n $tab = isset( $_REQUEST['tab'] ) ? sanitize_text_field($_REQUEST['tab']) : 1;\n $this->current_tab = empty($tab) ? 1 : $tab;\n \n //Setup the available settings tabs array.\n $this->tabs = array(\n 1 => SwpmUtils::_('General Settings'), \n 2 => SwpmUtils::_('Payment Settings'),\n 3 => SwpmUtils::_('Email Settings'), \n 4 => SwpmUtils::_('Tools'), \n 5 => SwpmUtils::_('Advanced Settings'), \n 6 => SwpmUtils::_('Addons Settings')\n );\n \n //Register the draw tab action hook. It will be triggered using do_action(\"swpm-draw-settings-nav-tabs\")\n add_action('swpm-draw-settings-nav-tabs', array(&$this, 'draw_tabs'));\n \n //Register the various settings fields for the current tab.\n $method = 'tab_' . $this->current_tab;\n if (method_exists($this, $method)) {\n $this->$method();\n }\n }\n }", "title": "" }, { "docid": "47c2fbb2d3f359f53f754ad398fda7fa", "score": "0.57960796", "text": "public function init() {\n parent::init();\n PageContext::$body_class=\"home\";\n\n PageContext::addScript(\"login.js\");\n PageContext::addScript(\"hoverIntent.js\");\n //PageContext::addScript(\"jquery-1.2.6.min.js\");\n PageContext::addScript(\"superfish.js\");\n //Tool Tip\n PageContext::addScript(\"jquery.tooltipster.min.js\");\n PageContext::addScript(\"banner.js\");\n\n User::googleAnalytics();\n PageContext::addPostAction('cloudfooterpage','index');\n User::getFwMetaData(METHOD);\n\n }", "title": "" }, { "docid": "6cc0c11055dd40bc29f393326569cc68", "score": "0.57934815", "text": "public function init() {\n\t\t$page_hook_suffix = null;\n\n\t\t/* Registers the UI for \"Rusty Inc. Org Chart\" page linked from the main\n\t\t * wp-admin menu\n\t\t * @see https://developer.wordpress.org/reference/functions/add_menu_page/\n\t\t */\n\t\tadd_action( 'admin_menu', function() use ( &$page_hook_suffix ) {\n\t\t\t$position = 2; // this means the second one from the top\n\t\t\t$page_hook_suffix = add_menu_page( 'Rusty Inc. Org Chart', 'Rusty Inc. Org Chart', 'publish_posts', 'rusty-inc-org-chart', array( $this, 'org_chart_controller' ), 'dashicons-heart', $position );\n\t\t\tadd_action( \"admin_footer-{$page_hook_suffix}\", [ $this, 'scripts_in_footer' ] );\n\t\t} );\n\n\t\t/**\n\t\t * Handles routing for the publicly shared page -- only triggered when\n\t\t * we have the right arguments in the URL\n\t\t */\n\t\tif ( $this->sharing->does_url_have_valid_key() ) {\n\t\t\t$this->org_chart_controller();\n\t\t\t$this->scripts_in_footer();\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "528fb6993b970c8ce9f477e0a9c8410e", "score": "0.57908785", "text": "function add_pages() {\n\t\t\t$this->load_textdomain();\n\t\t\t\n\t\t\tif ($this->is_multisite()) {\n\t\t\t\tadd_submenu_page( 'ms-admin.php', sprintf(__('Semisecure Login Reimagined %s', $this->text_domain), $this->version()), __('Semisecure Login', $this->text_domain), SEMISECURELOGIN_REIMAGINED__MANAGE_NETWORK_CAP, 'ms-semisecureloginreimagined', array(&$this, 'options_page') );\n\t\t\t\tif ($this->get_option('allow_overrides') != 'no') {\n\t\t\t\t\tif ($this->get_option('allow_overrides') == 'network-admins' && current_user_can(SEMISECURELOGIN_REIMAGINED__MANAGE_NETWORK_CAP)) {\n\t\t\t\t\t\t$cap = SEMISECURELOGIN_REIMAGINED__MANAGE_NETWORK_CAP;\n\t\t\t\t\t\t$func = 'options_page_overrides';\n\t\t\t\t\t}\n\t\t\t\t\telse if ($this->get_option('allow_overrides') == 'site-admins' && current_user_can(SEMISECURELOGIN_REIMAGINED__MANAGE_OPTIONS_CAP)) {\n\t\t\t\t\t\t$cap = SEMISECURELOGIN_REIMAGINED__MANAGE_OPTIONS_CAP;\n\t\t\t\t\t\t$func = 'options_page_overrides';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!isset($cap) || !isset($func)) {\n\t\t\t\t\t$cap = SEMISECURELOGIN_REIMAGINED__MANAGE_OPTIONS_CAP;\n\t\t\t\t\t$func = 'options_page_integration';\n\t\t\t\t}\n\t\t\t\tadd_options_page(sprintf(__('Semisecure Login Reimagined %s', $this->text_domain), $this->version()), __('Semisecure Login', $this->text_domain), $cap, 'semisecureloginreimagined', array(&$this, $func));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tadd_options_page(sprintf(__('Semisecure Login Reimagined %s', $this->text_domain), $this->version()), __('Semisecure Login', $this->text_domain), SEMISECURELOGIN_REIMAGINED__MANAGE_OPTIONS_CAP, 'semisecureloginreimagined', array(&$this, 'options_page'));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "bf78d77c8649dbe0473dcbac0695fd63", "score": "0.57827616", "text": "public function getAllowedPages()\n {\n $this->_initAllowedPages();\n return $this->_allowedPages;\n }", "title": "" }, { "docid": "76862dd64c201cc7c25e6f4b802128c2", "score": "0.57800514", "text": "public function init() {\r\n $this->_helper->_acl->allow('public',null);\t\r\n }", "title": "" }, { "docid": "2db3b754b74b53ebeea7d09c44e2b412", "score": "0.5761142", "text": "protected function init() {\n\t\t$this->setRequiredValue('imageThumbPartial', 'Required setting \"imageThumbPartial\" could not be found in item list settings! 1294407391');\n\t\t$this->setRequiredValue('imageAdminThumbPartial', 'Required setting \"imageAdminThumbPartial\" could not be found in item list settings! 1294407392');\n\t\t\n\t\t$this->setValueIfExists('itemsPerPage');\n\t\t$this->setValueIfExists('columnCount');\n\n\t\t$this->setBooleanIfExistsAndNotNothing('showTitle');\n\t}", "title": "" }, { "docid": "733d75e85175c85b255a3aa8a72d6d9a", "score": "0.57584995", "text": "protected function _init() {\n\t\tparent::_init();\n\t\t// setting up the _config array for use in links etc. with our string templates\n\t\t$this->_library = isset($this->_context->_config['request']->params['library']) ? $this->_context->_config['request']->params['library']:null;\n\t\t$this->_controller = $this->_context->_config['request']->params['controller'];\n\t\t$this->_action = $this->_context->_config['request']->params['action'];\n\t\t$this->_page = ($this->_context->_config['data']['page'] + 0) ?: 1;\n\t\t$this->_total = $this->_context->_config['data']['total'];\n\t\t$this->_limit = $this->_context->_config['data']['limit'];\n\t}", "title": "" }, { "docid": "011b19e3ef611cb7a94a7f3c51152f47", "score": "0.5753752", "text": "function initialize() {\n\t\t\n\t\t// vars\n\t\t$this->name = 'options_page';\n\t\t$this->label = __(\"Options Page\",'acf');\n\t\t$this->category = 'forms';\n \t\n\t}", "title": "" }, { "docid": "6be6a5ec3899ffb28a7bb2202f75d289", "score": "0.5747957", "text": "function init() {\n\t\t\tif (current_user_can('activate_plugins')) {\n\t\t\t\tforeach ($this->pages as $page) {\n\t\t\t\t\t$options = $page->option_groups;\n\t\t\t\t\tif (is_array($options) and count($options) > 0) {\n\t\t\t\t\t\tUfOptionUtilities::add_options($options);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->tables) {\n\t\t\t\t\trequire_once(ABSPATH . 'wp-admin/upgrade-functions.php');\n\n\t\t\t\t\tforeach ($this->tables as $table_name => $sql) {\n\t\t\t\t\t\tmaybe_create_table($table_name, $sql);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "b16e9d977cb4a11c048947aa2bc07c18", "score": "0.57416517", "text": "public function action_init()\n\t{\n\t\t$this->class_name = strtolower(get_class($this));\n\t\tforeach (self::default_options() as $name => $value) {\n\t\t\t$this->config[$name] = Options::get($this->class_name . '__' . $name);\n\t\t}\n\t\t$this->load_text_domain($this->class_name);\n\t}", "title": "" }, { "docid": "ebb188324beb1311052db37697ef7a56", "score": "0.5728658", "text": "public function page_init()\n { \n register_setting(\n 'marketo_credentials_group', // Option group\n 'marketo_credentials_option', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n add_settings_section(\n 'marketo_credentials', // ID\n 'Marketo Credentials', // Title\n array( $this, 'print_section_info' ), // Callback\n 'marketo-subscribe-settings' // Page\n ); \n\n add_settings_field(\n 'user_id', // ID\n 'User ID', // Title \n array( $this, 'user_id_callback' ), // Callback\n 'marketo-subscribe-settings', // Page\n 'marketo_credentials' // Section\n ); \n\n add_settings_field(\n 'encryption_key', \n 'Encryption Key', \n array( $this, 'encryption_key_callback' ), \n 'marketo-subscribe-settings', \n 'marketo_credentials'\n );\n\n add_settings_field(\n 'soap_url', \n 'SOAP Endpoint URL', \n array( $this, 'soap_endpoint_callback' ), \n 'marketo-subscribe-settings', \n 'marketo_credentials'\n );\n }", "title": "" }, { "docid": "6df2f20d5eedd0b8f41738c576859499", "score": "0.57149786", "text": "public function initialize(\\Glugox\\PDF\\Model\\Page\\Config $config = null)\n {\n parent::initialize($config);\n\n $this->setCanRequestNewPage(false);\n\n }", "title": "" }, { "docid": "1fc80368cab2d85528da30a9ae7a7091", "score": "0.5712018", "text": "public function register_settings_pages() {\n\n\t\tdo_action( 'slack_before_register_pages' );\n\n\t\tnew Settings\\General();\n\t\tnew Settings\\Notifications();\n\t\tnew Settings\\Support();\n\n\t\tdo_action( 'slack_after_register_pages' );\n\n\t}", "title": "" }, { "docid": "7804c9d848d57731793dd842cc590b94", "score": "0.5709669", "text": "public function init()\n {\n $this->initializeDatabaseQueryRestrictions();\n\n if ($this->getTypoScriptFrontendController()->showHiddenRecords || $GLOBALS['SIM_ACCESS_TIME'] !== $GLOBALS['ACCESS_TIME']) {\n // Set the simulation flag, if simulation is detected!\n $this->simulationHiddenOrTime = 1;\n }\n\n // Sets the paths from where TypoScript resources are allowed to be used:\n $this->allowedPaths = [\n $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'],\n // fileadmin/ path\n 'uploads/',\n 'typo3temp/',\n TYPO3_mainDir . 'ext/',\n TYPO3_mainDir . 'sysext/',\n 'typo3conf/ext/'\n ];\n if ($GLOBALS['TYPO3_CONF_VARS']['FE']['addAllowedPaths']) {\n $pathArr = GeneralUtility::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['addAllowedPaths'], true);\n foreach ($pathArr as $p) {\n // Once checked for path, but as this may run from typo3/mod/web/ts/ dir, that'll not work!! So the paths ar uncritically included here.\n $this->allowedPaths[] = $p;\n }\n }\n }", "title": "" }, { "docid": "72bdb89795ba5eed95761ca7924da3b0", "score": "0.5705596", "text": "public function load()\n {\n $this->getPages()->each(function ($page) {\n $action = $page->browseable ? $page->browseable->getAction()\n : $this->actionResolver->resolve($page);\n\n $route = $this->router->get($page->slug, $action)->name($page->route)->middleware('web');\n\n if ($page->browseable) {\n $route->defaults($page->browseable->getParameterName(), $page->browseable);\n }\n });\n }", "title": "" }, { "docid": "5f83bf95dc3e175cd0b93b4827843149", "score": "0.5691404", "text": "public function menu_init() {\n\t\t$this->parent_page->add_child(\n\t\t\t__( 'Settings', 'event-vetting' ),\n\t\t\t[ $this, 'render_page' ],\n\t\t\t'',\n\t\t\t'',\n\t\t\t'manage_options'\n\t\t);\n\t}", "title": "" }, { "docid": "93cc04d3e4c9abc2f4efb34a97f0228b", "score": "0.56878895", "text": "public function initializePage()\n\t{\n\t\tadd_submenu_page('theme-options', self::$pageName, self::$pageName, 'manage_options', 'contact-options', [$this, 'display']);\n\t}", "title": "" }, { "docid": "cb2b7758ffc698236d02fa4ca3b4a7a8", "score": "0.5682124", "text": "public static function init()\n {\n register_nav_menus(self::$menusArray);\n add_filter('acf/load_field/name=wp_menu', array('DriscollHealthPlanMenus', 'acf_load_wp_menu_field_choices'));\n }", "title": "" }, { "docid": "1814c5d85c39ed46734e9348ffb51f74", "score": "0.56777775", "text": "public function page_init()\n { \n register_setting(\n 'lowermedia_phone_options', // Option group\n 'lowermedia_phone_number', // Option name\n array( $this, 'sanitize' ) // Sanitize\n );\n\n add_settings_section(\n 'setting_section_id', // ID\n 'My Custom Settings', // Title\n array( $this, 'print_section_info' ), // Callback\n 'lowermedia-setting-admin' // Page\n ); \n\n add_settings_field(\n 'id_number', // ID\n 'ID Number', // Title \n array( $this, 'id_number_callback' ), // Callback\n 'lowermedia-setting-admin', // Page\n 'setting_section_id' // Section \n ); \n \n }", "title": "" }, { "docid": "22da2244ce5f9cb17c7342267cda60b6", "score": "0.56729746", "text": "private function setup_page_options() {\n\t\t$rba_wt_page_definition_DBoptions = get_option('rba_wt_page_definition_DBoptions');\n\t\tif ($rba_wt_page_definition_DBoptions != false) {\n\t\t\t// Validate the contentId mode\n\t\t\t$rba_wt_page_definition_DBoptions['rba_wt_content_id_mode'] = intval($rba_wt_page_definition_DBoptions['rba_wt_content_id_mode']);\n\t\t\tif(gettype($rba_wt_page_definition_DBoptions['rba_wt_content_id_mode']) == \"integer\" && $rba_wt_page_definition_DBoptions['rba_wt_content_id_mode'] >= 0 && $rba_wt_page_definition_DBoptions['rba_wt_content_id_mode'] <= 3) {\n\t\t\t\t$this->rba_wt_content_id_mode = $rba_wt_page_definition_DBoptions['rba_wt_content_id_mode'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->rba_wt_content_id_mode = 0;\n\t\t\t}\n\t\t\t// Validate the link tracking mode\n\t\t\tif($rba_wt_page_definition_DBoptions['rba_wt_link_track'] == \"none\" || $rba_wt_page_definition_DBoptions['rba_wt_link_track'] == \"link\" || $rba_wt_page_definition_DBoptions['rba_wt_link_track'] == \"standard\") {\n\t\t\t\t$this->rba_wt_link_track = $rba_wt_page_definition_DBoptions['rba_wt_link_track'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->rba_wt_link_track = 'none';\n\t\t\t}\n\t\t\t// Validate the presence of the linkTrack attribute\n\t\t\t$rba_wt_page_definition_DBoptions['rba_wt_link_track_attribute_present'] = intval($rba_wt_page_definition_DBoptions['rba_wt_link_track_attribute_present']);\n\t\t\tif(gettype($rba_wt_page_definition_DBoptions['rba_wt_link_track_attribute_present']) == \"integer\" && $rba_wt_page_definition_DBoptions['rba_wt_link_track_attribute_present'] = 1) {\n\t\t\t\t$this->rba_wt_link_track_attribute_present = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->rba_wt_link_track_attribute_present = 0;\n\t\t\t}\n\t\t\t// Validate the linkTrack attribute - this needs improving\n\t\t\tif(gettype($rba_wt_page_definition_DBoptions['rba_wt_link_track_attribute']) == \"string\") {\n\t\t\t\t$this->rba_wt_link_track_attribute = $rba_wt_page_definition_DBoptions['rba_wt_link_track_attribute'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->rba_wt_link_track_attribute = 'INVALID';\n\t\t\t}\n\t\t\t// Validate the presence of the heatmap attribute\n\t\t\t$rba_wt_page_definition_DBoptions['rba_wt_heatmap'] = intval($rba_wt_page_definition_DBoptions['rba_wt_heatmap']);\n\t\t\tif(gettype($rba_wt_page_definition_DBoptions['rba_wt_heatmap']) == \"integer\" && $rba_wt_page_definition_DBoptions['rba_wt_heatmap'] = 1) {\n\t\t\t\t$this->rba_wt_heatmap = \"1\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->rba_wt_heatmap = '';\n\t\t\t}\n\t\t\t$this->rba_wt_form = '';\n\t\t}\n\t}", "title": "" }, { "docid": "752062fe022775e62fcee703fd4aff3f", "score": "0.56728625", "text": "function display_main_html_allowed()\n {\n $this->display_html_allowed_list();\n $this->display_page();\n }", "title": "" }, { "docid": "13b7572b7dc71dbd19604cb42f794690", "score": "0.5663512", "text": "public function pageConstructor() { }", "title": "" }, { "docid": "6cc904761383775910b966dccd7c8902", "score": "0.5659818", "text": "public function init()\n {\n $this->event->trigger('pageInit', [$this]);\n }", "title": "" }, { "docid": "3e09872443e912bdb48a5d645a318204", "score": "0.5657916", "text": "public function init()\n {\n //1) rendering the real admin page via browser\n //2) accepting request from cron from localhost\n }", "title": "" }, { "docid": "739a34d1df6267f2d464fa0a3caafc29", "score": "0.56563836", "text": "public function hookInit() {\r\n if (HMW_Classes_Tools::getIsset(HMW_Classes_Tools::getOption('hmw_disable_name'))) {\r\n if (HMW_Classes_Tools::getValue(HMW_Classes_Tools::getOption('hmw_disable_name')) == HMW_Classes_Tools::getOption('hmw_disable')) {\r\n return;\r\n }\r\n }\r\n\r\n //If the user changes the Permalink to default ... prevent errors\r\n if (!HMW_Classes_Tools::isPermalinkStructure()) {\r\n if (current_user_can('manage_options')) {\r\n if (HMW_Classes_Tools::$default['hmw_admin_url'] <> HMW_Classes_Tools::getOption('hmw_admin_url')) {\r\n $this->model->flushChanges();\r\n }\r\n }\r\n }\r\n\r\n //Show the menu for admins only\r\n if (current_user_can('manage_options')) {\r\n HMW_Classes_ObjController::getClass('HMW_Controllers_Menu')->hookInit();\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "1f8db0404ae31b631b8acad81f2d776a", "score": "0.56496227", "text": "protected function initializeAction()\n {\n $this->id = (int)GeneralUtility::_GET('id');\n $this->tsParser = new TsParserUtility();\n // Get extension configuration\n $extensionConfiguration = $this->getExtensionConfiguration('themes');\n // Initially, get configuration from extension manager!\n $extensionConfiguration['categoriesToShow'] = GeneralUtility::trimExplode(',', $extensionConfiguration['categoriesToShow']);\n $extensionConfiguration['constantsToHide'] = GeneralUtility::trimExplode(',', $extensionConfiguration['constantsToHide']);\n // mod.tx_themes.constantCategoriesToShow.value\n // Get value from page/user typoscript\n $externalConstantCategoriesToShow = $this->getBackendUser()->getTSConfig(\n 'mod.tx_themes.constantCategoriesToShow',\n BackendUtility::getPagesTSconfig($this->id)\n );\n if ($externalConstantCategoriesToShow['value']) {\n $this->externalConfig['constantCategoriesToShow'] = GeneralUtility::trimExplode(',', $externalConstantCategoriesToShow['value']);\n $extensionConfiguration['categoriesToShow'] = array_merge(\n $extensionConfiguration['categoriesToShow'],\n $this->externalConfig['constantCategoriesToShow']\n );\n }\n // mod.tx_themes.constantsToHide.value\n // Get value from page/user typoscript\n $externalConstantsToHide = $this->getBackendUser()->getTSConfig(\n 'mod.tx_themes.constantsToHide',\n BackendUtility::getPagesTSconfig($this->id)\n );\n if ($externalConstantsToHide['value']) {\n $this->externalConfig['constantsToHide'] = GeneralUtility::trimExplode(',', $externalConstantsToHide['value']);\n $extensionConfiguration['constantsToHide'] = array_merge(\n $extensionConfiguration['constantsToHide'],\n $this->externalConfig['constantsToHide']\n );\n }\n $this->allowedCategories = $extensionConfiguration['categoriesToShow'];\n $this->deniedFields = $extensionConfiguration['constantsToHide'];\n // initialize normally used values\n }", "title": "" }, { "docid": "2fd4c2b7f858b252f0ec7f58cc476ad8", "score": "0.56462497", "text": "public function init() {\n // if (Url::base() == '/frontend/web' && $route != 'baogia' || ($route == 'site' && !isset($_GET['r']) || (isset($_GET['r']) && $_GET['r'] != 'gii')))\n // $this->redirect(Yii::$app->request->hostInfo.'/acp');\n\n }", "title": "" }, { "docid": "17355415f1990e817f33857ff0eacfd2", "score": "0.56379795", "text": "public function init() {\r\n add_action( 'admin_menu', array( $this, 'add_options_page' ) );\r\n }", "title": "" }, { "docid": "7a6d284742cf72b76e2682c73bf32e7e", "score": "0.5624311", "text": "public function __construct()\n\t\t\t{\n\t\t\t\tee()->load->helper('url');\n\n\t\t\t\t// Get info from the pages module about page uris\n\t\t\t\t$this->site_id\t\t\t= ee()->config->item('site_id');\n\t\t\t\t$this->pages_array\t\t= ee()->config->item('site_pages')[$this->site_id]['uris'];\n\t\t\t\t$this->ids_array\t\t= array_flip($this->pages_array);\n\t\t\t\t$this->field_names\t\t= $this->field_names();\n\t\t\t\t$this->field_ids\t\t= array_flip($this->field_names);\n\t\t\t\t\n\n\t\t\t\t// Fetch the pages_uri.\n\t\t\t\tif(ee()->TMPL->fetch_param('pages_uri'))\n\t\t\t\t{\n\t\t\t\t\t// Make sure it's in the right format.\n\t\t\t\t\t$str\t\t\t\t= ee()->TMPL->fetch_param('pages_uri');\n\t\t\t\t\t$this->pages_uri\t= '/' . trim($str,'/');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Fetch the field parameter.\n\t\t\t\tif(ee()->TMPL->fetch_param('field'))\n\t\t\t\t{\n\t\t\t\t\t$this->field = explode('|',ee()->TMPL->fetch_param('field'));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Fetch the wrapper parameter.\n\t\t\t\tif(ee()->TMPL->fetch_param('wrapper'))\n\t\t\t\t{\n\t\t\t\t\t$this->wrapper = explode('|',ee()->TMPL->fetch_param('wrapper'));\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t// Set the entry_id.\n\t\t\t\tif($this->pages_uri)\n\t\t\t\t{\n\t\t\t\t\tif(isset($this->ids_array[$this->pages_uri]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->entry_id = $this->ids_array[$this->pages_uri];\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->title = $this->current_title();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->return_string();\n\t\t\t}", "title": "" }, { "docid": "e4d83f5029587dd8fa6ac8a9bb273c23", "score": "0.5619082", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler', [\n 'enableBeforeRedirect' => false,\n ]);\n $this->loadComponent('Flash');\n\n /*\n * Enable the following component for recommended CakePHP security settings.\n * see https://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n //$this->loadComponent('Security');\n $this->loadComponent('Auth', [\n 'authenticate' => [\n 'Form' => [\n 'fields' => [\n 'username' => 'email',\n 'password' => 'password'\n ]\n ]\n ],\n 'loginAction' => [\n 'controller' => 'Users',\n 'action' => 'login'\n ],\n // If unauthorized, return them to page they were just on\n 'unauthorizedRedirect' => $this->referer()\n ]);\n\n // Allow the display action so our PagesController\n // continues to work. Also enable the read only actions.\n $this->Auth->allow(['display', 'view', 'index']);\n\n define('statesList', ['AL'=>\"Alabama\", \n 'AK'=>\"Alaska\", \n 'AZ'=>\"Arizona\", \n 'AR'=>\"Arkansas\", \n 'CA'=>\"California\", \n 'CO'=>\"Colorado\", \n 'CT'=>\"Connecticut\", \n 'DE'=>\"Delaware\", \n 'DC'=>\"District Of Columbia\", \n 'FL'=>\"Florida\", \n 'GA'=>\"Georgia\", \n 'HI'=>\"Hawaii\", \n 'ID'=>\"Idaho\", \n 'IL'=>\"Illinois\", \n 'IN'=>\"Indiana\", \n 'IA'=>\"Iowa\", \n 'KS'=>\"Kansas\", \n 'KY'=>\"Kentucky\", \n 'LA'=>\"Louisiana\", \n 'ME'=>\"Maine\", \n 'MD'=>\"Maryland\", \n 'MA'=>\"Massachusetts\", \n 'MI'=>\"Michigan\", \n 'MN'=>\"Minnesota\", \n 'MS'=>\"Mississippi\", \n 'MO'=>\"Missouri\", \n 'MT'=>\"Montana\",\n 'NE'=>\"Nebraska\",\n 'NV'=>\"Nevada\",\n 'NH'=>\"New Hampshire\",\n 'NJ'=>\"New Jersey\",\n 'NM'=>\"New Mexico\",\n 'NY'=>\"New York\",\n 'NC'=>\"North Carolina\",\n 'ND'=>\"North Dakota\",\n 'OH'=>\"Ohio\", \n 'OK'=>\"Oklahoma\", \n 'OR'=>\"Oregon\", \n 'PA'=>\"Pennsylvania\", \n 'RI'=>\"Rhode Island\", \n 'SC'=>\"South Carolina\", \n 'SD'=>\"South Dakota\",\n 'TN'=>\"Tennessee\", \n 'TX'=>\"Texas\", \n 'UT'=>\"Utah\", \n 'VT'=>\"Vermont\", \n 'VA'=>\"Virginia\", \n 'WA'=>\"Washington\", \n 'WV'=>\"West Virginia\", \n 'WI'=>\"Wisconsin\", \n 'WY'=>\"Wyoming\"]);\n }", "title": "" }, { "docid": "e04254ced14b17355f903a13fc02ec83", "score": "0.56096673", "text": "public static function init() {\n\t\t$theme = new self();\n\n\t\t$theme->add_settings_pages();\n\t}", "title": "" }, { "docid": "b458e0355d91c26ad52292a9d32b78ff", "score": "0.5606228", "text": "private function __construct()\n\t{\n\t\t$this->_acl = new Zend_Acl();\n\n\t\t// allow all resources by default\n\t\t$this->_acl->setRule(Zend_Acl::OP_REMOVE, Zend_Acl::TYPE_DENY);\n\t\t$this->_acl->setRule(Zend_Acl::OP_ADD, Zend_Acl::TYPE_ALLOW);\n\n\t\t$this->_getRolesFromDb();\n\t\t$this->_loadPageRoles();\n\t\t//\n\t\t//\t\t// add our pages as resources.\n\t\t$root = Tg_Site::getInstance()->getRootPage();\n\t\t$this->_addPage($root);\n\n\t}", "title": "" }, { "docid": "869abe4f4676525a25c8b2cb3786aebb", "score": "0.560526", "text": "public function init() {\n\t\t$readActions = array('index', 'upload','showmoreresources','setrating','updaterating','studentresourcesmall', 'recent', 'editresource','history','showquestion','compile','questioncompleted','quiz');\n\t\t$this->_helper->_acl->allow('student', $readActions);\n\t}", "title": "" }, { "docid": "376bd532db9369d06b1ffee4993d41f6", "score": "0.56029934", "text": "public function init()\r\r\n\t{\r\r\n\t\t@session_start();\r\r\n\r\r\n\t\t$this->view->template_name = sprintf($this->config->value('VIEW.SMARTY.ACTION_TEMPLATE_FORMAT'), $this->request->controller, $this->request->action);\r\r\n\r\r\n\t\t$this->user_rights = new App_Local_User_Rights($this->request);\r\r\n\r\r\n\t\tif (!$this->user_rights->has_rights($this->request->controller, $this->request->action))\r\r\n\t\t{\r\r\n\t\t\t$this->handle_access_denied();\r\r\n\t\t}\r\r\n\t}", "title": "" }, { "docid": "0d9176738da08a844526ef5343b8c41d", "score": "0.5602908", "text": "public function add_option_pages()\n {\n $options = [\n 'dashboard' => __('Dashboard Page', 'theme-translations'),\n 'leads' => __('Leads Page', 'theme-translations'),\n 'reception' => __('Reception Page', 'theme-translations'),\n 'reception_2' => __('Reception Page 2', 'theme-translations'),\n 'tco' => __('TCO Page', 'theme-translations'),\n 'tco_2' => __('TCO Page 2', 'theme-translations'),\n 'create_leads' => __('Blank Lead Page', 'theme-translations'),\n ];\n\n foreach ($options as $key => $name) {\n $option_name = 'theme_page_' . $key;\n\n register_setting('reading', $option_name);\n\n add_settings_field(\n 'theme_setting_' . $key,\n $name,\n [__CLASS__, 'page_select_callback'],\n 'reading',\n 'theme-pages-section',\n [\n 'id' => 'theme_setting_' . $key,\n 'option_name' => $option_name,\n ]\n );\n }\n }", "title": "" }, { "docid": "9c66b5b5e71eb632fb2c0cbcaa9ccc65", "score": "0.55955964", "text": "public function initialize()\n {\n\n // load configurations\n $this->_config = $this->di->get('config');\n if ($this->_config->logger->enable === true) {\n $this->_logger = $this->di->get('logger');\n }\n\n // setup breadcrumbs\n $this->_breadcrumbs = $this->di->get('breadcrumbs');\n\n // setup navigation\n\n $navigation = $this->di->get('navigation');\n\n $navigation->setActiveNode(\n $this->router->getActionName(),\n $this->router->getControllerName(),\n $this->router->getModuleName()\n );\n\n if (APPLICATION_ENV === 'development') {\n // add toolbar to the layout\n $toolbar = new \\Fabfuel\\Prophiler\\Toolbar($this->di->get('profiler'));\n $toolbar->addDataCollector(new \\Fabfuel\\Prophiler\\DataCollector\\Request());\n $this->view->setVar('toolbar', $toolbar);\n }\n\n // global view variables\n $this->view->setVars([\n 'user' => $this->_user,\n 'breadcrumbs' => $this->_breadcrumbs,\n 'navigation' => $navigation,\n 'search' => new Forms\\SearcherForm()\n ]);\n }", "title": "" }, { "docid": "736a3f326be3f96b892e9f38ee1055b3", "score": "0.5593315", "text": "public function init() {\n\t\tadd_action( 'after_setup_theme', array( $this, 'setup_pages' ), 9999 );\n\t\tadd_action( 'admin_menu', array( $this, 'add_menu_page' ) );\n\t\tadd_action( 'after_switch_theme', array( $this, 'redirect_to_dashboard' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_scripts' ) );\n\t}", "title": "" }, { "docid": "75623fdef12765f3aa6d91692785bbef", "score": "0.5592881", "text": "public function SetupAffiliatePages() {\n\t\techo \"<pre>************************SetupAffiliatePages()</pre>\";\t\t\n\t\t$this->ImportPageFromPDFFiles(ROOTPATH . '/bin/pages/bermanbraun/BB_Cover_Essential.pdf');\n\t}", "title": "" }, { "docid": "5b1e18adb890d58eb10d879a2ea4a1e0", "score": "0.55924463", "text": "public function init()\n {\n parent::init();\n // load the default link if userlinks are empty\n if (empty($this->userlinks))\n $this->userlinks = $this->links_default;\n }", "title": "" }, { "docid": "976969a66e4ea569bad9d6af37d4fd9b", "score": "0.55819815", "text": "public function init() {\n $this->__setVersion();\n $this->loadThemeFile();\n\n //check access\n if (!$this->isAuthenticatedClient()) {\n $logger = new Nexva_Util_Log_Mongo('mobile_site_deny_log');\n $data = array(\n 'whitelabel' => print_r($this->themeMeta, true),\n 'chap_id' => $this->themeMeta->USER_ID\n ); //just want usage so need to log specific data\n $logger->log($data);\n\n $this->_redirect('/page/static/id/deny');\n }\n\n $conf = $this->_conf;\n // set the title\n $this->view->title = isset($conf->basic->sitename) ? $conf->basic->sitename : 'neXva';\n // add the overiride CSS depends on the theme\n if (!empty($conf->basic->css)) {\n $verQs = '?' . $this->view->siteVersion; //siteVersion set in __setVersion();\n $this->view->headLink()->appendStylesheet($this->view->cdn('site_assets') . $conf->basic->css . $verQs);\n }\n // site Name\n $this->view->footerSitename = isset($conf->footer->sitename) ? $conf->footer->sitename : 'neXva Inc';\n // menu\n $this->view->menuLinks = isset($conf->content->menu) ? $conf->content->menu->toArray() : array();\n // footer links\n $this->view->legalLinks = isset($conf->footer->menu) ? $conf->footer->menu->toArray() : array('Legal' => '#', 'Privacy' => '#');\n\n // Logo Image\n $this->view->logo = isset($conf->header->logo) ? $conf->header->logo->toArray() : array('/mobile/images/nexva_logo.gif', 'neXva Logo');\n // Buttons\n $this->view->buyButton = isset($conf->buttons->buy) ? $conf->buttons->buy : 'nexva_buy.gif';\n $this->view->downloadButton = isset($conf->buttons->buy) ? $conf->buttons->download : 'nexva_download.gif';\n // show title of the page on contents\n $this->view->showPageTitle = true;\n // show utility options\n $this->view->showUtility = true;\n // enable search for all pages\n $this->view->enableSearch = true;\n\n\n $this->initLog();\n \n //Detect device\n $this->checkIsNotWireless();\n \n\n }", "title": "" }, { "docid": "0c7165956927ffec43860eee3b4cfcab", "score": "0.558152", "text": "public function init()\n\t{\n\t\t$this->imanager = imanager();\n\t\t$this->pageUrl = $this->imanager->config->getUrl();\n\t\t$this->input = $this->imanager->input;\n\t\t$this->segments = $this->input->urlSegments;\n\t\t$this->pages = $this->imanager->getCategory('name=Pages');\n\t\t$this->users = $this->imanager->getCategory('name=Users');\n\t\tif(!isset($_SESSION['msgs'])) {\n\t\t\t$_SESSION['msgs'] = array();\n\t\t}\n\t\t$this->msgs = & $_SESSION['msgs'];\n\n\t\t$this->execute();\n\t\t$this->renderMessages();\n\t}", "title": "" }, { "docid": "a93e64f9b7e1e3782c539edcb8ea3c5c", "score": "0.5579964", "text": "function auxin_theme_admin_pages(){\n return apply_filters( 'auxin_theme_admin_pages',\n array_merge(\n array('toplevel_page_auxin', 'appearance_page_auxin', 'toplevel_page_auxin-welcome', 'appearance_page_auxin-welcome', 'page', 'post', 'widgets'),\n auxin_registered_post_types(true)\n )\n );\n}", "title": "" }, { "docid": "43ae254ddb70a5b2e3710569e2e970b0", "score": "0.5577769", "text": "function __construct(){\n $this->page = \"admin\";\n $this->head = '';\n $this->title = '';\n $this->content = '';\n $this->styles = '';\n $this->scripts = '';\n }", "title": "" }, { "docid": "37dd43d1d79c113b3bb99aa8d202cbbc", "score": "0.55759585", "text": "public function init()\n {\n\t\t$this->view->courant = 'home';\n }", "title": "" }, { "docid": "b8ab4ce99c88a413571969318a7aafcf", "score": "0.5574504", "text": "function init_integrated_options() {\n\t\t$this->permalink_sections();\n\t}", "title": "" }, { "docid": "59bca852664908e8f445b1b20f1f821e", "score": "0.55739135", "text": "public function init() {\n Yii::app()->theme = Website::model()->theme();\n parent::init();\n Yii::app()->params = CMap::mergeArray(Yii::app()->params, Settings::model()->getParams());\n $this->verifiedUser();\n }", "title": "" }, { "docid": "4803aaa591888e12f60523939bc17bc2", "score": "0.5572239", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->Auth->deny();\n $this->Auth->allow(['index']);\n }", "title": "" }, { "docid": "80142296be15d1af5353f2f963304415", "score": "0.5569539", "text": "function pages(){\r\n \r\n if (!$this->flexi_auth->is_privileged($this->uri_privileged)) {\r\n $this->session->set_flashdata('message', '<p class=\"error_msg\">You do not have access privileges to Frontend Pages.</p>');\r\n if ($this->flexi_auth->is_admin())\r\n redirect('auth_admin');\r\n else\r\n redirect('auth_public');\r\n }\r\n \r\n //start breadcrumbs\r\n $this->breadcrumbs->push('Frontend Pages', base_url() . '/admin/frontend_setting/pages');\r\n \r\n $this->data['all_pages'] = $this->frontend_setting_model->get_pages();\r\n \r\n $btn_array[\"Add\"][\"action\"] = \"admin/frontend_setting/add_frontend_pages/\";\r\n $btn_array[\"Edit\"][\"action\"] = \"admin/frontend_setting/edit_frontend_pages/\";\r\n $btn_array[\"View\"][\"action\"] = \"admin/frontend_setting/view_frontend_pages/\";\r\n $btn_array[\"Delete\"][\"action\"] = \"admin/frontend_setting/delete_frontend_pages/\";\r\n $methods_privileges = $this->menu_model->get_privilege_name($btn_array);\r\n $this->data['add_frontend_pages'] = (isset($methods_privileges[\"Add\"][\"title\"]) && ($methods_privileges[\"Add\"][\"title\"]!=\"\"))?$methods_privileges[\"Add\"][\"title\"]:\"\";\r\n $this->data['edit_frontend_pages'] = (isset($methods_privileges[\"Edit\"][\"title\"]) && ($methods_privileges[\"Edit\"][\"title\"]!=\"\"))?$methods_privileges[\"Edit\"][\"title\"]:\"\";\r\n $this->data['view_frontend_pages'] = (isset($methods_privileges[\"View\"][\"title\"]) && ($methods_privileges[\"View\"][\"title\"]!=\"\"))?$methods_privileges[\"View\"][\"title\"]:\"\";\r\n $this->data['delete_frontend_pages'] = (isset($methods_privileges[\"Delete\"][\"title\"]) &&($methods_privileges[\"Delete\"][\"title\"]!=\"\"))?$methods_privileges[\"Delete\"][\"title\"]:\"\";\r\n \r\n \r\n $this->data['page_title'] = 'Frontend Pages';\r\n \r\n $this->data['message'] = $this->session->flashdata('message');\r\n \r\n $this->load->view('admin/includes/header', $this->data);\r\n\r\n $this->load->view('admin/frontend/view_all_pages', $this->data);\r\n }", "title": "" }, { "docid": "045dad64ee1d9c439db40c2c58633b76", "score": "0.5563481", "text": "public function page_init() {\n\t\tregister_setting( 'maxicharts_option_group', // Option group\n\t\t'maxicharts_option', // Option name\n\t\tarray( $this, 'sanitize' ) ); // Sanitize\n\t\t\n\t\tadd_settings_section( 'maxicharts_setting_section_id', // ID\n\t\t'Settings', // Title\n\t\tarray( $this, 'print_section_info' ), // Callback\n\t\t'maxicharts-setting-admin' ); // Page\n\t\t/*\n\t\t * add_settings_field('id_number', // ID\n\t\t * 'ID Number', // Title\n\t\t * array(\n\t\t * $this,\n\t\t * 'id_number_callback'\n\t\t * ), // Callback\n\t\t * 'maxicharts-setting-admin', // Page\n\t\t * 'maxicharts_setting_section_id'); // Section\n\t\t */\n\t\t/*\n\t\tadd_settings_field( \n\t\t\t'cpt_range',\n\t\t\t'Restrict CPT to show to post creator',\n\t\t\tarray( $this, 'maxicharts_cpt_setting' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t*/\n\t\tadd_settings_field( \n\t\t\t'license_key',\n\t\t\t'Please enter a valid license key',\n\t\t\tarray( $this, 'license_key_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\t\n\t\tadd_settings_field(\n\t\t 'maxicharts_log_level',\n\t\t 'Set <a href=\"https://logging.apache.org/log4php/docs/introduction.html\" target=\"_blank\">logging level</a>',\n\t\t array( $this, 'log_level_callback' ),\n\t\t 'maxicharts-setting-admin',\n\t\t 'maxicharts_setting_section_id'\n\t\t );\n\t\t\t\n\t\t/*\n\t\tadd_settings_field( \n\t\t\t'tags_to_replace',\n\t\t\t'Coma separated list of HTML tags to replace by a space character',\n\t\t\tarray( $this, 'setting_chk1_fn' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'tags_to_keep',\n\t\t\t'HTML Tags to keep ($allowable_tags parameter of <a target=\"_blank\" href=\"https://www.php.net/strip-tags\">strip_tags</a>)',\n\t\t\tarray( $this, 'html_tags_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'tag_class_to_acf',\n\t\t\t'HTML Tags to map to ACF fields. Should be json format like : <pre>{\"tag_class\":\"acf_field_id\",\"tag_class_2\":\"acf_field_id2\",...}</pre>',\n\t\t\tarray( $this, 'html_tags_to_acf_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'images_block_tag',\n\t\t\t'Class name of tag containing one (or more) a caption and one (or more) images. The plugin will detect those blocs to try to associate images and captions',\n\t\t\tarray( $this, 'images_block_tag_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'legend_class_tag',\n\t\t\t'Class name of tag containing captions of images. The plugin will detect the figure number inside these tags',\n\t\t\tarray( $this, 'legend_tag_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'figure_call_class_tag',\n\t\t\t'Class name of tag containing figure call inside the body of the text. The plugin will detect the figure number inside these tags and try to associate it with correct images insertions',\n\t\t\tarray( $this, 'figure_call_tag_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'featured_img_class_tag',\n\t\t\t'Class name added to img tag containing featured image.',\n\t\t\tarray( $this, 'featured_img_class_tag_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'resize_images',\n\t\t\t'Automatic image resizing.',\n\t\t\tarray( $this, 'resize_images_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'resize_images_width',\n\t\t\t'Resize width (px) to',\n\t\t\tarray( $this, 'resize_images_width_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'resize_images_height',\n\t\t\t'Resize height (px) to',\n\t\t\tarray( $this, 'resize_images_height_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'resize_mode',\n\t\t\t'Choose resize mode',\n\t\t\tarray( $this, 'maxicharts_resize_setting' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'use_imagick',\n\t\t\t'Use ImageMagick if present',\n\t\t\tarray( $this, 'use_imagick_setting' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\n\t\tadd_settings_field( \n\t\t\t'enable_swipe',\n\t\t\t'Enable swipe on image galleries',\n\t\t\tarray( $this, 'enable_swipe_callback' ),\n\t\t\t'maxicharts-setting-admin',\n\t\t\t'maxicharts_setting_section_id' );\n\t\t\t*/\n\t}", "title": "" }, { "docid": "107e7dc7c691e1c50479e2c7095e474c", "score": "0.5559694", "text": "function init_pages()\n {\n menu_page::addonAddPage('addon_exporter', '', 'Export', 'exporter', $this->icon_image);\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "ab25a5e2ee67f305a0fc482e15de8201", "score": "0.0", "text": "public function show(User $user): View\n {\n //\n }", "title": "" } ]
[ { "docid": "165e2bbcf8f47c0adbed93548f33d6c1", "score": "0.8019291", "text": "public function show(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5e8acc247b28ba8722842dd97070847", "score": "0.74223363", "text": "abstract protected function makeDisplayFromResource();", "title": "" }, { "docid": "cf7a236473d0b19def52419220a82d95", "score": "0.7193305", "text": "public function show(Resource $resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "b8de278532cf1b2d94016c0cd12737fd", "score": "0.7159185", "text": "public function show(Resource $resource)\n {\n $resource = new ResourceResource($resource);\n return $this->success('Resource Detail.', $resource);\n }", "title": "" }, { "docid": "1981d87b70ebb966cb1a7214c5461ecf", "score": "0.7105166", "text": "function display($resource_name) {\n return include $resource_name;\n }", "title": "" }, { "docid": "815f5613a8189df2880c7c0be463594e", "score": "0.69159317", "text": "public function show(Resource $resource)\n {\n return $this->showOne($resource);\n }", "title": "" }, { "docid": "1be3fb8370513aa7e96f7c3e96fdff88", "score": "0.6462615", "text": "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "title": "" }, { "docid": "bf9855687af595254565be84ecf08da3", "score": "0.6460327", "text": "public function show(Request $request, $resource, $id)\n {\n $command = $this->translator->getCommandFromResource($resource, 'show');\n\n $this->runBeforeCommands($command);\n\n $data = $this->dispatchFrom($command, $request, [\n 'modelClass' => $this->translator->getClassFromResource($resource),\n 'id' => $id\n ]);\n\n $this->fireEventForResource($resource, 'show', $data);\n\n return $this->success($data);\n }", "title": "" }, { "docid": "1cff5c8d606548f28e8af3af4e531294", "score": "0.6286817", "text": "protected function showAction()\n {\n $this->showAction\n ->setAccess($this, Access::CAN_SHOW)\n ->execute($this, NULL, NULL, NULL, __METHOD__)\n ->render()\n ->with(\n [\n 'user_log' => $this->userMeta->unserializeData(\n ['user_id' => $this->thisRouteID()],\n [\n 'login', /* array index 0 */\n 'logout', /* array index 1 */\n 'brute_force', /* index 2 */\n 'user_browser' /* index 3 */\n ]\n )\n ]\n )\n ->singular()\n ->end();\n }", "title": "" }, { "docid": "237d3c90b7035170d5fd20572d1e0dbb", "score": "0.6247061", "text": "public function display( Response $response );", "title": "" }, { "docid": "1e1b2e6a47cd86a471b2f6e43a786d4f", "score": "0.6238523", "text": "public function testShowResourceReturnsTheCorrectResource()\n {\n $items = factory(Item::class, 10)->create();\n $item = $items->get(6);\n\n $this->call('GET', sprintf('/api/v1/item/%s', $item->id));\n\n $this->seeJson([\n 'id' => $item->id,\n 'name' => $item->name,\n ]);\n }", "title": "" }, { "docid": "1b943006f882cdea6214d3238f5094bb", "score": "0.61226845", "text": "public function display($id);", "title": "" }, { "docid": "988fc9380f55f5086ebf1ea38e63511d", "score": "0.61054146", "text": "public function operate()\n {\n echo $this->resource.\"\\n\";\n }", "title": "" }, { "docid": "9cd2c7f88d644fa456e7453c3bb610d2", "score": "0.6069253", "text": "function show()\n {\n $this->display();\n }", "title": "" }, { "docid": "31c91777927cb1b0555e264f1cece7a9", "score": "0.6053162", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array('id' => array('HtmlEntities', 'StripTags', 'StringTrim')); \n $validators = array('id' => array('NotEmpty', 'Int'));\n\n // test if input is valid retrieve requested record attach to view\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Square_Model_Item i')\n ->leftJoin('i.Square_Model_Country c')\n ->leftJoin('i.Square_Model_Grade g')\n ->leftJoin('i.Square_Model_Type t')\n ->where('i.RecordID = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.60360175", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "9c46cbbf718572f41d5fb18cb85408df", "score": "0.60352117", "text": "public function viewName($resource)\n {\n return $this->name.'::'.$resource;\n }", "title": "" }, { "docid": "4157890d7ce997c99fc951f60a368f8a", "score": "0.6034318", "text": "public function showResource()\n {\n return new ParceiroResource(Parceiro::find(2));\n }", "title": "" }, { "docid": "5f890361bf8d16515c9463c62dee48f3", "score": "0.602238", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/User/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "4b6584e73c632121e7d29d1a53288f08", "score": "0.600146", "text": "public function show(Request $request ,$id){\n \n if($request->session()->exists('resources') && isset($request->session()->get('resources')[$id])) {\n $resource = $request->session()->get('resources')[$id];\n $data = [];\n $data['resource'] = $resource;\n $data['enterprise'] = 'Resources Ltd.';\n \n return view('resource.show', $data); \n \n }\n \n return redirect('resource');\n \n }", "title": "" }, { "docid": "f4584c6fbf6732a4cc30c153518eac85", "score": "0.5962682", "text": "function displayResource($file) {\n\tglobal $mosConfig_lang;\n\t$file_lang = migratorBasePath() . '/resources/' . $file . '.' . $mosConfig_lang . '.html';\n\t$file = migratorBasePath() . '/resources/' . $file . '.english.html';\n\tif (file_exists($file_lang)) {\n\t\techo '<div align=\"left\" style=\"border: 1px solid black; padding: 5px; \">';\n\t\tinclude ($file_lang);\n\t\techo '</div>';\n\t} else if (file_exists($file)) {\n\t\techo '<div align=\"left\" style=\"border: 1px solid black; padding: 5px; \">';\n\t\tinclude ($file);\n\t\techo '</div>';\n\t}\n\telse\n\t\tdie(_BBKP_CRITINCLERR . $file);\n\techo __VERSION_STRING;\n}", "title": "" }, { "docid": "78f674e0991329ee80d8bfe522602ce3", "score": "0.59581137", "text": "public function actionShow()\n {\n $this->render('show', array());\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "51df0e59505572a08a6c3c4ea6558bb4", "score": "0.5942475", "text": "public function showAction()\n\t{\n\t\t$this->loadLayout()->renderLayout();\n\t}", "title": "" }, { "docid": "d0d1f283ce410ec0d9c7e82af4062258", "score": "0.59333754", "text": "public function display(WebResource $res) {\n $view = $res->getView() ?: array();\n switch(count($view)) {\n case 0:\n case 1:\n $viewType = Config::get('view.defaultViewType', 'json');\n break;\n default:\n $viewType = $view[0];\n break;\n }\n $viewMappings = Config::get('view.mappings');\n if (!isset($viewMappings[$viewType])) {\n throw new Exception(\n \"Could not render view by type $viewType\",\n Exception::CODE_PRETTY_VIEW_NOTFOUND);\n }\n $viewName = $viewMappings[$viewType];\n $view = $this->classLoader->load($viewName, true);\n if (!$view) {\n throw new Exception(\"Could not render view by $viewName, view class not found.\",\n Exception::CODE_PRETTY_CLASS_NOTFOUND);\n }\n $view->render($res);\n }", "title": "" }, { "docid": "9c9f166dfbd4a1117126f1616068d929", "score": "0.590676", "text": "public function displayAction()\n {\n\n $domainName = GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST');\n\n $shortenUrl = $this->urlRepository->findShortUrlByPage($this->currentPage);\n\n if (empty($shortenUrl)) {\n $shortenUrl = $this->generateShortUrl();\n }\n\n $this->view\n ->assign('display', $shortenUrl)\n ->assign('domain', $domainName);\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e45bfcde7a17ab2a4f6f9e2caad01271", "score": "0.5883924", "text": "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', 'category' );\n\t\t}\n\n\t\t$layout = JRequest::getCmd( 'layout' );\n\n\t\tif ($layout == 'form') {\n\t\t\tJError::raiseError( 404, JText::_(\"Resource Not Found\") );\n\t\t\treturn;\n\t\t}\n\n\t\t$view = JRequest::getVar('view');\n\n\t\tparent::display(true);\n\t}", "title": "" }, { "docid": "6f20a1779e33227cfc4451ace6ab29af", "score": "0.5864878", "text": "public function edit(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e278522937d7847767c9d2ff92455995", "score": "0.5863409", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n \n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_News i')\n ->where('i.newsid = ?', $input->id);\n\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->news = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "8c62873548eaa44202c0ae405fd7d4b3", "score": "0.58593535", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n $this->prepareLines($resource, $attribute);\n }", "title": "" }, { "docid": "bf80668121276aa95e552b7e16de0410", "score": "0.58592206", "text": "public function display() \n\t{\n\t\t\n\t\tparent::display(); \n\t}", "title": "" }, { "docid": "f0ce504b8c6c28b59b1b83da05a1e7ee", "score": "0.58354145", "text": "public function show($imageResource) {\n\t\theader('Content-type: image/png');\n\t\theader('Content-disposition: inline');\n\t\timagepng($imageResource, null, 0);\n\t}", "title": "" }, { "docid": "1b6934d948dba93be88f01d4f4cde49a", "score": "0.58158535", "text": "public function display($context);", "title": "" }, { "docid": "bcb7bd8aa9f807e36423f26674169bf6", "score": "0.5785241", "text": "public static function resource($resource, $controller, $options) {\n \n }", "title": "" }, { "docid": "06a412168984820a16a8be534a2d85f1", "score": "0.57841134", "text": "public function display()\n\t{\n\t\theader('Content-type: image/png');\n\t\timagepng($this->_imageResource , null , 5 );\n\t}", "title": "" }, { "docid": "55ebb313f26c5900b8cfe594dfa4e5eb", "score": "0.57751614", "text": "public function display() {\n\t\techo $this->render();\n\t}", "title": "" }, { "docid": "2543e47f21a6d16ac7911a7ed2e24588", "score": "0.5771402", "text": "public function showAction()\n {\n //loads the artist\n $artist = $this->_getArtistById($this->_getParam('id'));\n \n //sends it to the view\n $this->view->artist = $artist;\n \n //loads and sends its albums to the view\n $this->view->albums = $artist->findDependentRowset('Model_Album');\n }", "title": "" }, { "docid": "a1ebeebfc498c76d0c8996e04e37ac78", "score": "0.5764601", "text": "public function show(){\n $this->init();\n $this->load(self::class);\n }", "title": "" }, { "docid": "41311b65a90295f931830bf21bc118c5", "score": "0.57608664", "text": "public function DisplayResources($resource_IDs) {\n \n //Variables for the pagination\n $limit_offset = $this->CPagination->limit_offset;\n $limit_maxNumRows = $this->CPagination->limit_maxNumRows;\n \n //Get resources\n $result = $this->MDatabase->GetResources((int) $limit_offset, (int) $limit_maxNumRows, $resource_IDs);\n \n //If nothing is returned, say so and end here\n if(!$result) {\n echo 'No results.';\n return;\n }\n \n //Initiate the variable that will contain all the output\n $output = '';\n \n //Display the resources one by one\n while($row = $result->fetch_array()) {\n $output .= '<div class=\"resource\">';\n \n $title = htmlspecialchars($row['title']);\n $resource_type = htmlspecialchars($row['resource_type']);\n $description = htmlspecialchars($row['description']);\n $publishing_date = htmlspecialchars($row['publishing_date']);\n \n $output .= \"<h3>\" . $title . \"</h3>\";\n $output .= \"<table class='resource_info'><tbody>\";\n $output .= \"<tr>Type: \" . ucwords(strtolower($resource_type)) . '</tr>';\n $output .= ' <tr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#\" class=\"tooltip\">'\n . '<img src=\"img/information-icon-small.png\">'\n . '<span><img class=\"callout\" src=\"img/callout_black.gif\" />'\n . '<strong>Description</strong><br />' . $this->Parsedown->text($description)\n . '</span></a></tr>';\n \n /* Get and display the URLs */\n $output .= $this->DisplayURLs((int) $row['resource_id']); \n \n //Clear the float\n $output .= '<div class=\"clear\"></div>';\n \n /* Display the publishing date, if it exists */\n $output .= $publishing_date ? \"<tr>Publishing Date: {$publishing_date}</tr>\" : '';\n \n /* Get and display the authors */\n $output .= $this->DisplayAuthors((int) $row['resource_id']);\n\n /* Get and display the keywords */\n $output .= $this->DisplayKeywords((int) $row['resource_id']);\n \n $output .= '</div>'; //close the class=\"resource\" div\n }\n \n echo $output;\n }", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.5757105", "text": "public function display(){}", "title": "" }, { "docid": "e9b2cd8fa004ddb7b0d9e03744f3126f", "score": "0.57506883", "text": "public function display()\n {\n $return = $this->fetch();\n echo $return;\n }", "title": "" }, { "docid": "2c3490c6d6b2073fd195968f652e07c5", "score": "0.57488596", "text": "public function render()\n {\n $rows = $this->resource->model()::all();\n\n $title = Str::of($this->resource->name())->plural();\n\n return view('moon::resources.index', [\n 'title' => $title,\n 'columns' => $this->resource->columns(),\n 'rows' => $rows\n ])->layout('moon::layouts.app', ['title' => $title]);\n }", "title": "" }, { "docid": "b817fe8afcad697af904cbcdb8688cef", "score": "0.57483834", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AVBundle:Reto')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Reto entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AVBundle:Reto:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "c0a70a08a2849ac13def6ed6304e58da", "score": "0.5743798", "text": "public function show(): UserResource\n {\n return $this->repository->show();\n }", "title": "" }, { "docid": "c952768f11b98a6aed12e59d779b7efa", "score": "0.57387173", "text": "public function display() { echo $this->render(); }", "title": "" }, { "docid": "9aee1654836904270de00365634a70fd", "score": "0.57323885", "text": "protected function show($param) {\n $method = 'show_' . $param;\n if (method_exists($this, $method)) {\n $this->$method();\n } else {\n $this->error('Invalid command argument!');\n $this->help();\n }\n }", "title": "" }, { "docid": "c7ce15d35acae8f764d0adba3a337cb0", "score": "0.57273036", "text": "public function display($file) \n {\n echo $this->fetch($file); \n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7fa9265465a0729600bbbce97f9e8303", "score": "0.57220465", "text": "function render(Request $Req, Response $Res, $resource);", "title": "" }, { "docid": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57208323", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "3635f9e6312e7f3ef2e689432f8a3312", "score": "0.5705637", "text": "public function show( Patient $patient ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "a042815ce2283cc6c3688042abe87a56", "score": "0.56963277", "text": "public function show($id)\n\t{\n\t\t//\n \n \n\t}", "title": "" }, { "docid": "5bc1d8742885bcbc1dc675e2bcd69dd2", "score": "0.56894034", "text": "public function display(midgardmvc_core_request $request);", "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": "" } ]
5c32079d0c85506da41ed07a1d25835c
This function reorders the records: the record with the first id in the array will get order 1, the record with the second it will get order 2,...
[ { "docid": "81a89b92ca3a94ffec29099997c72daf", "score": "0.54669344", "text": "public static function setNewOrder($ids, int $startOrder = 1);", "title": "" } ]
[ { "docid": "e2be158078d7f76d2e2d67242294f32d", "score": "0.6795469", "text": "public function fixOrderIds() {\n\t$this->addFieldToFilter('order_id', array('null' => true))->load();\n\tif($this->count()) {\n\t foreach($this->getItems() as $item) {\n\t\tif($item->getOrderIncrementId())\n\t\t{\n\t\t $order = Mage::getModel('sales/order')->loadByIncrementId($item->getOrderIncrementId());\n\t\t $item->setOrderId($order->getId());\n\t\t $item->save();\n\t\t}\n\t }\n\t}\n }", "title": "" }, { "docid": "61e95b541f7adca16b1f32f48b47cf32", "score": "0.65554506", "text": "public function order();", "title": "" }, { "docid": "421702bd278376c14e20c858f7aefb6b", "score": "0.64520615", "text": "function sortordermodel()\n\t{\n\t\t$db = JFactory::getDBO();\n\t\t$listitem = JRequest::getvar('listItem','','get','var');\n\n\t\t$ids = implode(',', $listitem);\n\t\t$sql = 'UPDATE #__hdflvplayerupload SET `ordering` = CASE id ';\n\t\tforeach ($listitem as $position => $item) {\n\t\t\t$sql .= sprintf(\"WHEN %d THEN %d \", $item, $position);\n\t\t}\n\t\t$sql .= ' END WHERE id IN ('.$ids.')';\n\n\t\t$db->setQuery($sql );\n\t\t$db->query();\n\t}", "title": "" }, { "docid": "804e5c0ecc9585785c0af5778b57f730", "score": "0.63622004", "text": "public function getObjectsOrderedById();", "title": "" }, { "docid": "08f2d266f76d25b57877a4933ca9cd68", "score": "0.62785065", "text": "function ordering()\n {\n parent::ordering();\n $this->rebuild();\n $row->reorder();\n }", "title": "" }, { "docid": "1f82a62a373d177617fe81ad12e837ce", "score": "0.62316304", "text": "function switch_order($sort_order)\r\n{\r\n\tglobal $in, $db;\r\n $uri_order = $in->get(URI_ORDER, 0.0);\r\n $uri_order = explode('.', $uri_order);\r\n $element1 = ( isset($uri_order[0]) ) ? $uri_order[0] : 0;\r\n $element2 = ( isset($uri_order[1]) ) ? $uri_order[1] : 0;\r\n\r\n $array_size = count($sort_order);\r\n if ( $element1 > $array_size - 1 )\r\n {\r\n $element1 = $array_size - 1;\r\n }\r\n if ( $element2 > 1 )\r\n {\r\n $element2 = 0;\r\n }\r\n\r\n for ( $i = 0; $i < $array_size; $i++ )\r\n {\r\n if ( $element1 == $i )\r\n {\r\n $uri_element2 = ( $element2 == 0 ) ? 1 : 0;\r\n }\r\n else\r\n {\r\n $uri_element2 = 0;\r\n }\r\n $current_order['uri'][$i] = $i . '.' . $uri_element2;\r\n }\r\n\r\n $current_order['uri']['current'] = $element1.'.'.$element2;\r\n $current_order['sql'] = $db->escape($sort_order[$element1][$element2]);\r\n\r\n return $current_order;\r\n}", "title": "" }, { "docid": "b76368ee1b116f4494a67fd0f3dcb5e3", "score": "0.6145503", "text": "function move_down($table_name, $where_clause_all, $where_clause_item, $sort_order, $move_by)\n{\n $dest_order = $sort_order + $move_by;\n // $arr_ids_to_move=Array();\n // echo\t\"<br>$movie_artist_id, $movie_id, $artistcate_id, $sort_order, $move_by, $dest_order<br>\";\n for ($i = $sort_order + 1; $i < $dest_order + 1; $i++) {\n $sql = \" update\t$table_name\tset\tsort_order=sort_order-1\twhere $where_clause_all\tand\tsort_order='$i'\t\";\n // echo\t\"<br>$sql<br>\";\n db_query($sql);\n }\n $sql = \" update\t$table_name\tset\tsort_order=sort_order+$move_by where $where_clause_item\";\n // echo\t\"<br>$sql<br>\";\n db_query($sql);\n}", "title": "" }, { "docid": "375abeeccbabbb762ccf0253b593c9d0", "score": "0.6129033", "text": "public function order(array $order);", "title": "" }, { "docid": "c325aa6ada2208fbc7c7091bbe4e8a9b", "score": "0.60935515", "text": "public function sort(array $order)\n {\n foreach($order as $priority => $id){\n $data = ['priority' => $priority + 1];\n $this->update($data, $id);\n }\n }", "title": "" }, { "docid": "928eb3cbd9604aa9f5f3b434a39a6120", "score": "0.60758555", "text": "public function ajaxReorder()\n\t{\n\t\t//get table model\n\t\t$model =& JModel::getInstance('table', 'FabrikModel');\n\t\t$model->setId(JRequest::getInt('tableid'));\n\t\t$db =& $model->getDb();\n\t\t$direction = JRequest::getVar('direction');\n\n\t\t$orderEl = $model->getForm()->getElement(JRequest::getInt('orderelid'), true);\n\t\t$table = $model->getTable();\n\t\t$origOrder = JRequest::getVar('origorder');\n\t\t$orderBy =$db->nameQuote($orderEl->getElement()->name);\n\t\t$order = JRequest::getVar('order');\n\t\t$dragged = JRequest::getVar('dragged');\n\n\t\t//are we dragging up or down?\n\t\t$origPos = array_search($dragged, $origOrder);\n\t\t$newPos = array_search($dragged, $order);\n\t\t$dragDirection = $newPos > $origPos ? 'down' : 'up';\n\n\t\t//get the rows whose order has been altered\n\t\t$result = array_diff_assoc($order, $origOrder);\n\t\t$result = array_flip($result);\n\t\t//remove the dragged row from the list of altered rows\n\t\tunset($result[$dragged]);\n\n\t\t$result = array_flip($result);\n\n\t\tif (empty($result)) {\n\t\t\t//no order change\n\t\t\treturn;\n\t\t}\n\t\t//get the order for the last record in $result\n\t\t$splitId = $dragDirection == 'up' ? array_shift($result) : array_pop($result);\n\t\t$db->setQuery(\"SELECT \".$orderBy.\" FROM \".$table->db_table_name.\" WHERE \".$table->db_primary_key.\" = \".$splitId);\n\t\t$o = (int)$db->loadResult();\n\n\n\t\tif ($direction == 'desc') {\n\t\t\t$compare = $dragDirection == 'down' ? '<' : '<=';\n\t\t}else{\n\t\t\t$compare = $dragDirection == 'down' ? '<=' : '<';\n\t\t}\n\t\t//shift down the ordered records which have an order less than or equal the newly moved record\n\t\t$query = \"UPDATE \".$table->db_table_name.\" SET \".$orderBy.' = COALESCE('.$orderBy.', 1) - 1 ';\n\t\t$query .= \" WHERE \".$orderBy.' '.$compare.' '.$o.' AND '.$table->db_primary_key. ' <> '.$dragged;\n\t\t$db->setQuery($query);\n\t\tif(!$db->query()) {\n\t\t\techo $db->getErrorMsg();\n\t\t} else {\n\n\t\t\t//shift up the ordered records which have an order greater than the newly moved record\n\n\t\t\tif ($direction == 'desc') {\n\t\t\t\t$compare = $dragDirection == 'down' ? '>=' : '>';\n\t\t\t}else{\n\t\t\t\t$compare = $dragDirection == 'down' ? '>' : '>=';\n\t\t\t}\n\n\t\t\t$query = \"UPDATE \".$table->db_table_name.\" SET \".$orderBy.' = COALESCE('.$orderBy.', 0) + 1';\n\t\t\t$query .= \" WHERE \".$orderBy.' '.$compare.' '.$o;\n\n\t\t\t$db->setQuery($query);\n\n\t\t\tif(!$db->query()) {\n\t\t\t\techo $db->getErrorMsg();\n\t\t\t} else {\n\t\t\t\t//change the order of the moved record\n\t\t\t\t$query = \"UPDATE \".$table->db_table_name.\" SET \".$orderBy.' = '.$o;\n\t\t\t\t$query .= \" WHERE \".$table->db_primary_key.' = '.$dragged;\n\t\t\t\t$db->setQuery($query);\n\t\t\t\t$db->query();\n\t\t\t}\n\t\t}\n\t\t$model->reorder(JRequest::getInt('orderelid'));\n\t}", "title": "" }, { "docid": "4a3fabaf294f6fcd5dfbb8da8d5dfc26", "score": "0.60074097", "text": "function update_sort_order()\n\t{\n\t\t$page_id = $this->input->post('sort_id');\n\t\t$row_sort_order = $this->input->post('row_sort_order');\n\t\t$this->Image_card_model->update_sort_order($page_id, $row_sort_order);\n\t}", "title": "" }, { "docid": "60e93a43b1a877515e7740ab1e20295c", "score": "0.5997396", "text": "public function reorder()\n\t{\n\t\tif ( Request::ajax() ){\n\t\t\t$order = explode(',', Input::get('order'));\n\t\t\t$list = $this->toylist->getUserList();\n\n\t\t\tforeach ( $order as $key=>$item ){\n\t\t\t\t$neworder[] = $key;\n\t\t\t\t$list->dolls()->detach($item);\n\t\t\t\t$list->dolls()->attach($item, array('order'=>$key, 'status'=>0));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "00ba89211e3c8eb65bef441693e18e60", "score": "0.5957646", "text": "protected function reorganize()\n {\n /*\n $data = [];\n\n $size = count($this->sorted)-1;\n\n for ($nam = $size ; $nam >= 0 ; --$nam) {\n $data[] = $this->sorted[$nam];\n }\n\n $this->sorted = $data;\n */\n\n $this->sorted = array_reverse($this->sorted);\n\n }", "title": "" }, { "docid": "dac839085b81c68c4a1009bb4ea74847", "score": "0.5941522", "text": "public function order($order);", "title": "" }, { "docid": "7d899113eb645cc1b5865338541b35f5", "score": "0.5910353", "text": "function exp_reorder_export_groups($info)\n{\n global $g_table_prefix, $L;\n\n $sortable_id = $info[\"sortable_id\"];\n $export_group_ids = explode(\",\", $info[\"{$sortable_id}_sortable__rows\"]);\n\n $order = 1;\n foreach ($export_group_ids as $export_group_id)\n {\n mysql_query(\"\n UPDATE {$g_table_prefix}module_export_groups\n SET list_order = $order\n WHERE export_group_id = $export_group_id\n \");\n $order++;\n }\n\n return array(true, $L[\"notify_export_group_reordered\"]);\n}", "title": "" }, { "docid": "cb258a7e5aea437b942a2eb36a6c3ad1", "score": "0.58796465", "text": "function move_up($table_name, $where_clause_all, $where_clause_item, $sort_order, $move_by)\n{\n $dest_order = $sort_order - $move_by;\n // $arr_ids_to_move=Array();\n // echo\t\"<br>$movie_artist_id, $movie_id, $artistcate_id, $sort_order, $move_by, $dest_order<br>\";\n for ($i = $sort_order - 1; $i > $dest_order - 1; $i--) {\n $sql = \" update\t$table_name\tset\tsort_order=sort_order+1\twhere $where_clause_all\tand\tsort_order='$i'\";\n // echo\t\"<br>$sql<br>\";\n db_query($sql);\n }\n $sql = \" update\t$table_name\tset\tsort_order=sort_order-$move_by where $where_clause_item\";\n // echo\t\"<br>$sql<br>\";\n db_query($sql);\n}", "title": "" }, { "docid": "e9123c7014aa01729d888bee144104b5", "score": "0.5874081", "text": "function swap_collection_order($resource1,$resource2,$collection)\n\t{\n\n\t// sanity check -- we should only be getting IDs here\n\tif (!is_numeric($resource1) || !is_numeric($resource2) || !is_numeric($collection)){\n\t\texit (\"Error: invalid input to swap collection function.\");\n\t}\n\t//exit (\"Swapping \" . $resource1 . \" for \" . $resource2);\n\t\n\t$query = \"select resource,date_added,sortorder from collection_resource where collection='$collection' and resource in ('$resource1','$resource2') order by sortorder asc, date_added desc\";\n\t$existingorder = sql_query($query);\n\n\t$counter = 1;\n\tforeach ($existingorder as $record){\n\t\t$rec[$counter]['resource']= $record['resource'];\t\t\n\t\t$rec[$counter]['date_added']= $record['date_added'];\n\t\tif (strlen($record['sortorder']) == 0){\n\t\t\t$rec[$counter]['sortorder'] = \"NULL\";\n\t\t} else {\t\t\n\t\t\t$rec[$counter]['sortorder']= \"'\" . $record['sortorder'] . \"'\";\n\t\t}\n\t\t\t\n\t\t$counter++;\t\n\t}\n\n\t\n\t$sql1 = \"update collection_resource set date_added = '\" . $rec[1]['date_added'] . \"', \n\t\tsortorder = \" . $rec[1]['sortorder'] . \" where collection = '$collection' \n\t\tand resource = '\" . $rec[2]['resource'] . \"'\";\n\n\t$sql2 = \"update collection_resource set date_added = '\" . $rec[2]['date_added'] . \"', \n\t\tsortorder = \" . $rec[2]['sortorder'] . \" where collection = '$collection' \n\t\tand resource = '\" . $rec[1]['resource'] . \"'\";\n\n\tsql_query($sql1);\n\tsql_query($sql2);\n\n\t}", "title": "" }, { "docid": "65a9ec3773ac878971417411de536a43", "score": "0.5854675", "text": "public function action_reorder(){\n\t\t$this->auto_render = false;\n\t\tif (HTTP_Request::POST == $this->request->method()) \n\t\t{\n\t\t\t$i = '0';\n\t\t\tforeach($this->request->post('item') as $status_id){\n\t\t\t\t$task = ORM::factory('statu', $status_id);\n\t\t\t\t$task->order = $i;\n\t\t\t\t$task->save();\n\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fa2d4b026950161019bf13b6fa762356", "score": "0.5840597", "text": "function ensureOrder($board, $project)\r\n{\r\n $i = 1;\r\n $aBatch = [];\r\n $oDatabase = getDb();\r\n \r\n $items = $oDatabase->items->find(\r\n ['board' => $board, 'project' => $project], \r\n ['sort' => ['order' => 1]]\r\n );\r\n\r\n foreach ($items as $currentItem) {\r\n $aBatch[] = [\r\n 'updateOne' => [\r\n ['board' => $board, '_id' => $currentItem['_id']],\r\n [\r\n '$set' => [\r\n 'order' => $i\r\n ]\r\n ]\r\n ]\r\n ];\r\n $i++;\r\n }\r\n $oDatabase->items->bulkWrite($aBatch);\r\n}", "title": "" }, { "docid": "b807183c15337c5dd8bb0f600d13e383", "score": "0.5836642", "text": "function SetUpSortOrder() {\n\t\tglobal $contadores;\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$contadores->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$contadores->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$contadores->UpdateSort($contadores->id); // id\n\t\t\t$contadores->UpdateSort($contadores->op); // op\n\t\t\t$contadores->UpdateSort($contadores->zona); // zona\n\t\t\t$contadores->UpdateSort($contadores->descripcion); // descripcion\n\t\t\t$contadores->UpdateSort($contadores->programa); // programa\n\t\t\t$contadores->UpdateSort($contadores->diahasta); // diahasta\n\t\t\t$contadores->UpdateSort($contadores->objetivo); // objetivo\n\t\t\t$contadores->UpdateSort($contadores->op2); // op2\n\t\t\t$contadores->UpdateSort($contadores->horahasta); // horahasta\n\t\t\t$contadores->UpdateSort($contadores->material); // material\n\t\t\t$contadores->UpdateSort($contadores->orden); // orden\n\t\t\t$contadores->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "title": "" }, { "docid": "c6d1b118c56932e88e1376d748a26919", "score": "0.5831314", "text": "function reorder($where = '')\n {\n parent::reorder('product_id = '.$this->_db->Quote($this->product_id) );\n }", "title": "" }, { "docid": "cb8ebf42a48cdd68ac7168675e652201", "score": "0.5819392", "text": "public function reorder()\n\t{\n\t\treturn $this->orderItems();\n\t}", "title": "" }, { "docid": "48a4a15add4a1285d261d9ac9a659d7a", "score": "0.58158743", "text": "public function getOrderByID($id){\n \t\t\n \t\t$this->clear();\n \t\t\n \t\t$sql = new sqlControl();\n\t\t$sql->sqlCommand('SELECT UserPK, Timestamp, PointsUsed FROM Orders WHERE PK = :PK', array(':PK' => $id), false);\n\t\t\n\t\t$results = $sql->returnResults(); // get the results for the user. \n\t\t\n\t\t$this->ID = $id;\n\t\t$this->UserID = $results['UserPK'];\n\t\t$this->Date = $results['Timestamp'];\n\t\t$this->Points = $results['PointsUsed'];\n\t\t\n\t\t$sql->sqlCommand('SELECT ItemPK, Quantity, Variations FROM OrderLines WHERE OrderPK = :PK', array(':PK' => $id), false);\n\t\t\n\t\t$results = $sql->returnAllResults();\n\t\t\n\t\tforeach ($results as $r){\n\t\t\t$this->Lines[] = array( 'PK' => $r['ItemPK'], 'Quantity' => $r['Quantity'], 'Variations' => $r['Variations'] );\n\t\t}\n\t\t\n\t\t\n\t\t$sql = '';\n \t}", "title": "" }, { "docid": "e867b29fdadd6465a176e8dc69374cbe", "score": "0.5813836", "text": "function refine_list($id_column, $table_name, $where_clause)\n{\n $sql = \" select\t$id_column,\tsort_order from\t$table_name\twhere $where_clause\torder by sort_order\";\n // echo\t\"<br>$sql<br>\";\n $result = db_query($sql);\n $i = 1;\n while ($line = mysqli_fetch_array($result)) {\n $sql = \" update\t$table_name\tset\tsort_order='$i'\twhere $id_column='$line[0]'\";\n // echo\t\"<br>$sql<br>\";\n db_query($sql);\n $i++;\n }\n}", "title": "" }, { "docid": "d76e3e8dacff535b2391d1c792efb506", "score": "0.5788168", "text": "function df_order($id) {return df_order_r()->get($id);}", "title": "" }, { "docid": "3f3f8d9a6e42d92ba1bdb3b8ebec57d3", "score": "0.57829636", "text": "function orderMultiDimensionalArray ($toOrderArray, $field, $inverse = false) {\n\t$position = array(); \n $newRow = array(); \n foreach ($toOrderArray as $key => $row) { \n $position[$key] = $row[$field]; \n $newRow[$key] = $row; \n } \n if ($inverse) { \n arsort($position); \n } \n else { \n asort($position); \n } \n $returnArray = array(); \n foreach ($position as $key => $pos) { \n $returnArray[] = $newRow[$key]; \n } \n return $returnArray; \n}", "title": "" }, { "docid": "e78257b8aee2685ca8b9d97dbc00e264", "score": "0.5729577", "text": "private function sort_array_by_id($array){\n\t\tforeach($array as $row){\n\t\t\t$temp[$row['id']] = $row;\n\t\t}\n\t\treturn $temp;\n }", "title": "" }, { "docid": "ddee39f817874d413bbc96c0148f8a06", "score": "0.5727508", "text": "function record_sort($records, $field, $reverse=false) {\r\n\t\tif (is_array($records)) {\r\n\t\t\t$hash = array();\r\n\r\n\t\t\tforeach ($records as $record) {\r\n\r\n\t\t\t\t$keyToUse = $record[$field];\r\n\t\t\t\twhile (array_key_exists($keyToUse, $hash)) {\r\n\t\t\t\t\t$keyToUse = $keyToUse + 1;\r\n\t\t\t\t}\r\n\t\t\t\t$hash[$keyToUse] = $record;\r\n\t\t\t}\r\n\t\t\t($reverse) ? krsort($hash) : ksort($hash);\r\n\t\t\t$records = array();\r\n\t\t\tforeach ($hash as $record) {\r\n\t\t\t\t$records [] = $record;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $records;\r\n\t}", "title": "" }, { "docid": "3f00f81acb1de0bccc626f9420621e9d", "score": "0.5725997", "text": "function sortItem($sort,$id){\n global $dbconn;\n // ---- Get sql query\n $sql = \" UPDATE $this->tablename set trinhdo_sort=\".$sort.\" where trinhdo_id=\".$id;\n // ---- Execute SQL\n $dbconn->Execute($sql);\n }", "title": "" }, { "docid": "dcd1b465246201f1f917b46283a0f803", "score": "0.57249945", "text": "function DSResortOriginal($a,$b)\r\n{\r\n\tif($a->id > $b->id) return 1;\r\n\tif($a->id < $b->id) return -1;\r\n\treturn 0;\r\n}", "title": "" }, { "docid": "11aaee6063913dc56cc899b426c31abb", "score": "0.5701367", "text": "function SetUpSortOrder() {\n\t\tglobal $graficos;\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$graficos->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$graficos->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$graficos->UpdateSort($graficos->id); // id\n\t\t\t$graficos->UpdateSort($graficos->grafico); // grafico\n\t\t\t$graficos->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "title": "" }, { "docid": "22ef134585cd18a74145665de97ef60b", "score": "0.5695305", "text": "public function sort_id_asc(){\n\t\t$data['url'] = base_url();\n\t\t//$config['base_url']=\"http://localhost/excersise/csvupload/order_details\";\n\t\t$config['total_rows'] = $this->upload_model->total();\n\t\t$config['per_page'] = 10;\n\t\t$config[\"uri_segment\"] = 3;\n\t\t$choice = $config[\"total_rows\"] / $config[\"per_page\"];\n\t\t$config[\"num_links\"] = round($choice);\n\t\t$this->pagination->initialize($config);\n\t\t$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;\n\t\t$records = $this->upload_model->id_asc($page,$config['per_page']);\t\t// Pagination happens here\n\t\t\n\t\t$data['records'] = $records->result();\n \n\t\t$data['sort_id'] = \"sort_id_desc\";\n\t\t$data['sort_fname'] = \"sort_fname_desc\";\n\t\t$data['sort_lname'] = \"sort_lname_desc\";\n\t\t$data['sort_country'] = \"sort_country_desc\";\n\t\t$data['total'] = \"sort_total_desc\";\n\t\t$this->load->view('csvupload/import_details',$data);\n\t}", "title": "" }, { "docid": "9f1bb1158524a038698bf85cff111988", "score": "0.56848973", "text": "protected function _getOrderIds()\n {\n // $orderIds = $this->getRequest()->getPost('order_ids');\n \t$orderIds = $this->_request->getPost('selected');;\n \tsort($orderIds);\n \treturn $orderIds;\n }", "title": "" }, { "docid": "a6f4aa615868019d9e3e327ddebc35eb", "score": "0.5674044", "text": "public static function getOrderByID($id) {\n $pdo = Helper::tuckshopPDO();\n $query = \"SELECT * FROM Orders WHERE orderID=?\";\n $statement = $pdo->prepare($query);\n\n $statement->execute([$id]);\n $orders = $statement->fetchAll(PDO::FETCH_CLASS, 'Order');\n\n // ID is unique, so there should only be one row\n $order = $orders[0];\n\n // Get the items in this order\n $query = \"SELECT orderItemID FROM OrderItems WHERE orderID=?\";\n $statement = $pdo->prepare($query);\n\n $statement->execute([$id]);\n $orderItemIDs = $statement->fetchAll(PDO::FETCH_COLUMN);\n $orderItems = array();\n\n foreach ($orderItemIDs as $oiID) {\n $orderItems[] = OrderItem::getOrderItemByID($oiID);\n }\n\n $order->addOrderItems($orderItems);\n\n return $order;\n }", "title": "" }, { "docid": "47c463f0506b5549cb99091ac9ec84d5", "score": "0.56666785", "text": "protected function sortData()\n {\n\n $tmps = $this->data;\n $this->data = array();\n\n foreach( $tmps as $tmp )\n {\n if( !$tmp['id_parent'] )\n {\n $this->data[0][] = $tmp;\n }\n else\n {\n $this->data[$tmp['id_parent']][] = $tmp;\n }\n }\n\n }", "title": "" }, { "docid": "6714b339755c1e96cbff1311e79928f4", "score": "0.5655042", "text": "public function orders();", "title": "" }, { "docid": "a8e181baec3ac211c53e91013eeee0ef", "score": "0.56282926", "text": "public function setSortableRowsOrder($entityName, $data)\n\t{\n\t\t$array = preg_split(\"/[&]/\", preg_replace(\"/[srt=]/\", \"\", $data));\n\n\t\t$order = 1;\n\t\tforeach($array as $id) {\n\t\t\t$this->em->createQuery(\n\t\t\t\t'UPDATE '.\n\t\t\t\t$entityName.\n\t\t\t\t' m set m.sort = '\n\t\t\t\t.($order*777)\n\t\t\t\t.' where m.id = '\n\t\t\t\t.$id )->execute();\n\t\t\t$order++;\n\t\t}\n\n\t\t$this->em->clear();\n\t}", "title": "" }, { "docid": "0d0ef95be4ef3c38a7474af4b5590582", "score": "0.56154275", "text": "function order(){\n $query = $this->db->query(\"select * from orders order by id DESC\");\n return $query->result();\n }", "title": "" }, { "docid": "3ea56844a0b3d86937fa9f36a8735151", "score": "0.56133455", "text": "function _order($inc) {\n\t\n\t\t// Check for request forgeries\n\t\tJRequest::checkToken() or die( 'Invalid Token' );\n\t\n\t\tif (CLM_usertype != 'admin' AND CLM_usertype != 'tl') {\n\t\t\tJError::raiseWarning(500, JText::_('TOURNAMENT_NO_ACCESS') );\n\t\t\treturn FALSE;\n\t\t}\n\t\n\t\t$cid = JRequest::getVar('cid', array(), '', 'array');\n\t\tJArrayHelper::toInteger($cid);\n\t\t$tlnid = $cid[0];\n\t\n\t\t$row =& JTable::getInstance( 'turnier_teilnehmer', 'TableCLM' );\n\t\tif ( !$row->load($tlnid) ) {\n\t\t\tJError::raiseWarning( 500, CLMText::errorText('PLAYER', 'NOTEXISTING') );\n\t\t\treturn FALSE;\n\t\t}\n\t\t$row->move($inc, '');\n\t\n\t\t$app =& JFactory::getApplication();\n\t\t$app->enqueueMessage( JText::_('ORDERING_CHANGED') );\n\t\t\n\t\treturn TRUE;\n\t\t\n\t}", "title": "" }, { "docid": "f796390632217fbb20addc67f7bb7b42", "score": "0.56107754", "text": "function sort_module_default_UpdateOrder($vID, $vOrder, $vMoveBy) {\n\tglobal $Auth;\n\t\n\t## multiclient\n\t$client_id = $Auth->auth[\"client_id\"];\n\t\n\t$db_connection = new DB_Sql();\n\t\n\t## we need to get the parent info for this page\n\t$pageInfo = structure_getPage($vID);\n\t\n\t## check for the last entry\n\t$query = \"SELECT max(structure_order) FROM \".STRUCTURE.\" WHERE structure_parent=\".$pageInfo[\"parent\"].\" AND client_id='$client_id'\";\n\t$db_result = $db_connection->query($query);\n\t$db_connection->next_record();\n\t\t\n\t## retrieve the maxorder\t\n\tlist($max_order) = $db_connection->Record;\n\tif($vMoveBy == 1) {\n\t\t$updated_menu_order = $vOrder-1;\n \tif ($updated_menu_order < 0) {\n \t\t\t$updated_menu_order = 0;\n \t}\n\t\t## next we should check if there is an item with that order\n\t\t$query = \"SELECT structure_id FROM \".STRUCTURE.\" WHERE structure_order='$updated_menu_order' AND structure_parent=\".$pageInfo[\"parent\"].\" AND client_id='$client_id'\";\n\t\t$db_result = $db_connection->query($query);\n\t\t$db_connection->next_record();\n\t\t\n\t\t$id_old_order = $db_connection->Record[\"structure_id\"];\n\n\t\t$element_counter = $db_connection->num_rows();\n\n\t\tif($max_order <=0) {\n\t\t\t$max_order = $element_counter;\n\t\t}\n\t\t\n\t\t$menu_order = $updated_menu_order+1;\n \tif ($menu_order > $max_order) {\n \t\t$menu_order = $max_order;\n \t\t}\t\t\n }\n\n\tif ($vMoveBy == 0) {\n\t\t$updated_menu_order = ($vOrder + 1);\n \tif ($updated_menu_order > $max_order){\n \t\t$updated_menu_order = $max_order;\n \t}\n\n\t\t## next we should check if there is an item with that order\n\t\t$query = \"SELECT structure_id FROM \".STRUCTURE.\" WHERE structure_order='$updated_menu_order' AND structure_parent=\".$pageInfo[\"parent\"].\" AND client_id='$client_id'\";\n\t\t$db_result = $db_connection->query($query);\n\t\t$db_connection->next_record();\n\t\t\n\t\t$id_old_order = $db_connection->Record[\"structure_id\"];\n\t\t$element_counter = $db_connection->num_rows();\n\t\t\t\t \t\n \t$menu_order = ($updated_menu_order - 1);\n \tif ($menu_order < 0){\n \t\t$menu_order = 0;\n \t}\n\n\t}\n \n \t$update_query = \"UPDATE \".STRUCTURE.\" SET structure_order='$menu_order' WHERE structure_id='$id_old_order' AND client_id='$client_id'\";\n\t$result_pointer = $db_connection->query($update_query);\n \t\t\n \t$update_query = \"UPDATE \".STRUCTURE.\" SET structure_order='$updated_menu_order' WHERE structure_id='$vID' AND client_id='$client_id'\";\n \t$result_pointer = $db_connection->query($update_query);\n}", "title": "" }, { "docid": "fc336b7963db4070d633ef4451f26bff", "score": "0.5609974", "text": "function product_number_order ( $listid, $listnum, $type = \"-\" )\n{\n global $db_config, $db, $module_data;\n $arrayid = explode( \"|\", $listid);\n $arraynum = explode( \"|\", $listnum );\n $i = 0;\n foreach ( $arrayid as $id )\n {\n \tif ($id > 0)\n \t{\n \tif ( empty( $arraynum[$i] ) ) $arraynum[$i] = 0;\n \t$query = \"UPDATE `\" . $db_config['prefix'] . \"_\" . $module_data . \"_rows` SET \n `product_number` = `product_number` \".$type.\" \". intval( $arraynum[$i] ) . \" WHERE `id` =\" . $id . \"\";\n $db->sql_query( $query );\n \t}\n $i++;\n }\n}", "title": "" }, { "docid": "07cf26b2b5bc52f7503de35e87c9ef51", "score": "0.5606802", "text": "public function orderById()\n {\n }", "title": "" }, { "docid": "198e2056334549bec30301082124e9f7", "score": "0.5601381", "text": "function SetUpSortOrder() {\n\t\tglobal $trx_booking;\n\n\t\t// Check for an Order parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$trx_booking->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$trx_booking->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$trx_booking->UpdateSort($trx_booking->kode); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->grup); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->tanggal); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->title); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->nama); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->company); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->room); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->person); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->arrival); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->departure); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->discname); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->disc); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->confirmasi); // Field \n\t\t\t$trx_booking->UpdateSort($trx_booking->checkin); // Field \n\t\t\t$trx_booking->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "title": "" }, { "docid": "c313128d68ef820f5ab9e7e5dba2e15c", "score": "0.55883795", "text": "public function reorder_groups()\n {\n $ids = ee()->input->get_post('ids');\n ee()->republic_variables_model->reorder_groups($ids);\n ee()->output->send_ajax_response(array('XID' => ee()->functions->add_form_security_hash('{XID_HASH}'), 'status' => 'success'));\n }", "title": "" }, { "docid": "4f747ac67aed54c7552e7c9a354054bb", "score": "0.5573512", "text": "function sortItem($sort,$id){\n global $dbconn;\n // ---- Get sql query\n $sql = \" UPDATE $this->tablename set hanghoa_sort=\".$sort.\" where hanghoa_id=\".$id;\n // ---- Execute SQL\n $dbconn->Execute($sql);\n }", "title": "" }, { "docid": "16f6e9c8c96a4fc14146d93269ac9c10", "score": "0.5567051", "text": "function reorder(int $responseID) { //{{{\n // question string and series item to use for ordering\n // e.g. reorder repeating 'landing' answers using 'Species' item\n $fields = ['landing' => 'Species'];\n \n // connect to database\n $db = new DB();\n \n foreach ($fields as $qField => $sField) {\n $db->reorder($responseID, $qField, $sField);\n }\n}", "title": "" }, { "docid": "0c560831b2e9a2eca773a490aad8ab85", "score": "0.5554548", "text": "public function order(Request $request)\n {\n $ids = $request->get('ids');\n if(!$ids){\n return response()->json(['status' => 'err']);\n }\n \n $order = 0;\n foreach($ids as $id){\n $item = Multimedia::find($id);\n if($item){\n $item->order = $order;\n $item->save();\n }\n $order++;\n }\n \n return response()->json(['status' => 'ok']);\n }", "title": "" }, { "docid": "edf049ba8efcabb76aeb18ed903c490d", "score": "0.5548733", "text": "function zen_update_attributes_products_option_values_sort_order($products_id) {\r\n global $db;\r\n $attributes_sort_order = $db->Execute(\"select distinct pa.products_attributes_id, pa.options_id, pa.options_values_id, pa.products_options_sort_order, pov.products_options_values_sort_order from \" . TABLE_PRODUCTS_ATTRIBUTES . \" pa, \" . TABLE_PRODUCTS_OPTIONS_VALUES . \" pov where pa.products_id = '\" . $products_id . \"' and pa.options_values_id = pov.products_options_values_id\");\r\n while (!$attributes_sort_order->EOF) {\r\n $db->Execute(\"update \" . TABLE_PRODUCTS_ATTRIBUTES . \" set products_options_sort_order = '\" . $attributes_sort_order->fields['products_options_values_sort_order'] . \"' where products_id = '\" . $products_id . \"' and products_attributes_id = '\" . $attributes_sort_order->fields['products_attributes_id'] . \"'\");\r\n $attributes_sort_order->MoveNext();\r\n }\r\n}", "title": "" }, { "docid": "ba581f771146348ef249d8315bab6fe2", "score": "0.55472", "text": "public function reorder(Request $request)\n {\n $input = $request::all();\n foreach (json_decode($input['order']) as $id) {\n $item = Exam_instance_item::find($id->id);\n $item->order = $id->order;\n $item->save();\n }\n return array(\n 'status' => 0,\n );\n }", "title": "" }, { "docid": "5916f9b84e13de01970053ca2a5da576", "score": "0.55470365", "text": "function sortItem($sort,$id){\n global $dbconn;\n // ---- Get sql query\n $sql = \" UPDATE $this->tablename set hdmua_sort=\".$sort.\" where hdmua_id=\".$id;\n // ---- Execute SQL\n $dbconn->Execute($sql);\n }", "title": "" }, { "docid": "8d6af84181841537de5e58993aa782df", "score": "0.55422753", "text": "function saveEntryOrder()\n {\n global $objDatabase;\n\n if ($_POST['entries']) {\n $entries = contrexx_input2db($_POST['entries']);\n foreach ($entries as $sort => $value) {\n $sort++;\n $id = explode('_', $value);\n $query = \"UPDATE `\".DBPREFIX.\"module_data_messages`\n SET `sort` = \".$sort.\"\n WHERE `message_id` = \".$id[1];\n $objDatabase->Execute($query);\n }\n } else {\n header(\"HTTP/1.0 500 Internal Server Error\");\n return;\n }\n\n }", "title": "" }, { "docid": "d4126c558831fe1e4dcad999fd492f43", "score": "0.554151", "text": "function order($o_key) \n {\n if (!isset($_SESSION['filtro'][$this->key]['order']))\n $_SESSION['filtro'][$this->key]['order'] = array();\n\n if (isset($_SESSION['filtro'][$this->key]['order'][$o_key]))\n {\n if ($_SESSION['filtro'][$this->key]['order'][$o_key] == 'ASC')\n $_SESSION['filtro'][$this->key]['order'][$o_key] = 'DESC';\n else\n unset($_SESSION['filtro'][$this->key]['order'][$o_key]);\n }\n else\n $_SESSION['filtro'][$this->key]['order'][$o_key] = 'ASC';\n return;\n }", "title": "" }, { "docid": "395a3d8afbfc05c6569a86d6c9744a85", "score": "0.5534552", "text": "public function set_image_order($id, $order)\r\n {\r\n $this->collection_order = $order;\r\n $this->db->where('img_id', $id);\r\n\r\n return $this->db->update('img', $this);\r\n }", "title": "" }, { "docid": "47fa82c00dbfc9058b2afbe6105f721c", "score": "0.55338854", "text": "public function reorderExistingValues() {\n\t\t$options = ilDclSelectionOption::getAllForField($this->getId());\n\t\t// loop each record(-field)\n\t\tforeach (ilDclCache::getTableCache($this->getTableId())->getRecords() as $record) {\n\t\t\t$record_field = $record->getRecordField($this->getId());\n\t\t\t$record_field_value = $record_field->getValue();\n\n\t\t\tif (is_array($record_field_value) && count($record_field_value) > 1) {\n\t\t\t\t$sorted_array = array();\n\t\t\t\t// $options has the right order, so loop those\n\t\t\t\tforeach ($options as $option) {\n\t\t\t\t\tif (in_array($option->getOptId(),$record_field_value)) {\n\t\t\t\t\t\t$sorted_array[] = $option->getOptId();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$record_field->setValue($sorted_array);\n\t\t\t\t$record_field->doUpdate();\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "bd469464127eaba6781f46f0ae97d905", "score": "0.55216616", "text": "function findOrder($id);", "title": "" }, { "docid": "17dc642f7a61be867cbca6b95d307f81", "score": "0.55145127", "text": "public function find_all_tasks_sort_by_order($list_id){\n $condition = array('list_id' => $list_id, 'is_deleted' => 0);\n $this->db->where($condition);\n $rst = $this->db->select('id, order');\n $this->db->order_by('order asc');\n $query = $this->db->get('list_data');\n return $query->result_array();\n }", "title": "" }, { "docid": "1dfa94c15f08e4140bf570cc601a92f0", "score": "0.55021393", "text": "public function orderby($order) {}", "title": "" }, { "docid": "29606b871b9072649886862c4e89e456", "score": "0.5499869", "text": "function sortItem($sort,$id){\n global $dbconn;\n // ---- Get sql query\n $sql = \" UPDATE $this->tablename set vttb_datlich_sort=\".$sort.\" where vttb_datlich_id=\".$id;\n // ---- Execute SQL\n $dbconn->Execute($sql);\n }", "title": "" }, { "docid": "5ed94f532b1fd6cf0d1e9338855fb3e4", "score": "0.5497698", "text": "public function getOrder();", "title": "" }, { "docid": "bedd25b9ee891a584cf02429d8d9918a", "score": "0.5490967", "text": "function move_up()\n\t{\n\t\t$id = $this->uri->segment(5);\n\t\t$this->db->order_by($this->data['prefix'] . 'Order');\n\t\t$data = $this->db->get($this->data['table'])->result_array();\n\t\t$c = 0;\n\t\t$last = false;\n\t\tforeach($data AS $key => $row)\n\t\t{\n\t\t\t$q[$this->data['prefix'] . 'Order'] = $c;\n\t\t\t$this->db->where($this->data['prefix'] . 'Id', $row[$this->data['prefix'] . 'Id']);\n\t\t\t$this->db->update($this->data['table'], $q);\n\t\t\t\n\t\t\tif($row[$this->data['prefix'] . 'Id'] == $id)\n\t\t\t{\n\t\t\t\t$c++; \n\t\t\t\t$q[$this->data['prefix'] . 'Order'] = $c;\n\t\t\t\t$this->db->where($this->data['prefix'] . 'Id', $last[$this->data['prefix'] . 'Id']);\n\t\t\t\t$this->db->update($this->data['table'], $q);\n\t\t\t}\n\t\t\t\n\t\t\t$last = $row;\n\t\t\t$c++;\n\t\t}\n\t\tredirect($this->data['cms']['cp_base'] . '/buckets/listview/' . $this->uri->segment(4));\n\t}", "title": "" }, { "docid": "a4e98357d8b24120ff2253460d4eaa3b", "score": "0.54848385", "text": "function getOrder()\n {\n return 4;\n }", "title": "" }, { "docid": "5a7800b53d2c00d3231a13e30e15bf61", "score": "0.54825777", "text": "public function restore_order() {\n \n if( isset($_POST['ids']) ){\n\n $id = $_POST['ids'];\n $log_data = (array) App::get_row_by_where('order_logs', array( 'id' => $id ) );\n $order_id = $log_data['order_id'];\n $order_data = json_decode( $log_data['order_data'] , true );\n $order_data = array_merge( $order_data , array( 'current_version' => $id ) );\n unset($order_data['id']);\n \n $update_id = App::update( 'pk_order',array( 'id' => $order_id ), $order_data );\n \n $result['order'] = true;\n \n // restores product order\n $product_data = json_decode( $log_data['product_data'] , true );\n $this->order_model->deleteWhere( 'product_order',array( 'order_id' => $order_id ) );\n if(count($product_data) != 0) {\n \n foreach ($product_data AS $pro){\n unset($pro['id']);\n if( $update_id = App::save_data( 'product_order', $pro ) )\n {\n $result['product'] = true;\n }\n }\n }else{\n $result['product'] = true;\n }\n \n // restores expenses order\n $expenses_data = json_decode( $log_data['expenses_data'] , true );\n $this->order_model->deleteWhere( 'expenses',array( 'order_id' => $order_id ) );\n if(count($expenses_data) != 0) {\n $result['expenses'] = true;\n foreach ($expenses_data AS $expense){\n unset($expense['id']);\n if( $update_id = App::save_data( 'expenses', $expense ) )\n {\n $result['expenses'] = true;\n }\n }\n }else{\n $result['expenses'] = true; \n }\n \n // restores files order\n $files_data = json_decode( $log_data['files_data'] , true );\n $this->order_model->deleteWhere( 'files',array( 'field_id' => $order_id ) );\n if(count($files_data) != 0) {\n $result['files'] = true;\n foreach ($files_data AS $file){\n unset($file['file_id']);\n if( $update_id = App::save_data( 'files', $file ) )\n {\n $result['files'] = true;\n }\n }\n }else{\n $result['files'] = true;\n }\n \n\n if( $result['order'] == true && $result['product'] == true && $result['expenses'] == true && $result['files'] == true ){\n echo \"TRUE\";\n }else{\n echo \"false\";\n }\n }\n }", "title": "" }, { "docid": "ce96948be40109771091efae6984b13d", "score": "0.5474595", "text": "public function setOrderId($id);", "title": "" }, { "docid": "38502e352d7569a354fcad7c0acb9e82", "score": "0.5468401", "text": "public function sort_id_desc(){\n\t\t$data['url'] = base_url();\n\t\t//$config['base_url']=\"http://localhost/excersise/csvupload/order_details\";\n\t\t$config['total_rows'] = $this->upload_model->total();\n\t\t$config['per_page'] = 10;\n\t\t$config[\"uri_segment\"] = 3;\n\t\t$choice = $config[\"total_rows\"] / $config[\"per_page\"];\n\t\t$config[\"num_links\"] = round($choice);\n\t\t$this->pagination->initialize($config);\n\t\t$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;\n\t\t$records = $this->upload_model->id_desc($page,$config['per_page']);\t\t// Pagination happens here\n\t\t$data['records'] = $records->result();\n\t\t$data['sort_id'] = \"sort_id_asc\";\n\t\t$data['sort_fname'] = \"sort_fname_asc\";\n\t\t$data['sort_lname'] = \"sort_lname_asc\";\n\t\t$data['sort_country'] = \"sort_country_asc\";\n\t\t$data['total'] = \"sort_total_asc\";\n\t\t$this->load->view('csvupload/import_details',$data);\n\t}", "title": "" }, { "docid": "edc6e34b7b0bb1416b4030d264fb4de6", "score": "0.5468136", "text": "public function update_order_items_after($table, $primary_key_field, $id, $order_field, $order, $where = array())\n\t{\n\t\t$this->db->set($order_field, \"`\".$order_field.\"` + 1\", FALSE);\n\n\t\t$this->db->where($order_field.' >=', intval($order));\n\t\t$this->db->where($primary_key_field.' <>', intval($id));\n\n\t\tif(!empty($where))\n\t\t{\n\t\t\tforeach($where as $condition)\n\t\t\t{\n\t\t\t\t$this->db->where($condition[0], isset($condition[1]) ? $condition[1] : NULL);\n\t\t\t}\n\t\t}\n\n\t\treturn $this->db->update($table);\n\t}", "title": "" }, { "docid": "d7a1dd579296cced147f680df92d5d38", "score": "0.5466636", "text": "public function order($field, $order = 'desc');", "title": "" }, { "docid": "f5231fbad485038c634f8dc66590a26a", "score": "0.54604423", "text": "public function order()\n {\n $page1 = Page::find((int)Input::get('id1'));\n $page2 = Page::find((int)Input::get('id2'));\n\n $pages = $page1->category->pages;\n $i = 0;\n foreach($pages as $page) {\n $page->order = $i;\n $page->save();\n $i += 1;\n }\n\n $order1 = Input::get('order1');\n $order2 = Input::get('order2');\n\n $page1->order = (int)$order1;\n $page2->order = (int)$order2;\n\n $page1->save();\n $page2->save();\n\n return json_encode(['success' => true]);\n }", "title": "" }, { "docid": "1ee49e04f68e1f6f8688f4fdf22bbd1e", "score": "0.5454443", "text": "public function order()\n {\n $orderFields = $this->getOrderFields();\n if (!empty($orderFields)) {\n $this->getQuery()->order($orderFields);\n }\n }", "title": "" }, { "docid": "5ff843c4dbe5d10c7915b29f8e6f9b02", "score": "0.54499656", "text": "function getOrder()\n {\n return 3;\n }", "title": "" }, { "docid": "5ff843c4dbe5d10c7915b29f8e6f9b02", "score": "0.54499656", "text": "function getOrder()\n {\n return 3;\n }", "title": "" }, { "docid": "1c738e53d1380b7df2dd3267f0bc68d9", "score": "0.54484284", "text": "function sort_by_row( $a, $b ) {\n return( $a[\"_Atom_chem_shift.ID\"] > $b[\"_Atom_chem_shift.ID\"] ? 1 : -1 ); \n}", "title": "" }, { "docid": "4235a4800bfd6d4de86d42bf8ec893dd", "score": "0.54464996", "text": "public function actionSortOrder()\n {\n \\Yii::$app->response->format = \\yii\\web\\Response::FORMAT_JSON;\n $object_type = FHtml::getRequestParam('object_type');\n $sort_orders = FHtml::getRequestParam('sort_orders');\n $sort_order_field = FHtml::getRequestParam('sort_order_field', 'sort_order');\n\n if (empty($sort_orders) || empty($object_type))\n return 'Empty data';\n\n if (is_array($sort_orders))\n $arr = $sort_orders;\n else if (is_string($sort_orders))\n $arr = explode(',', $sort_orders);\n\n $sort_orders = $object_type . ': ';\n for ($i = 0; $i < count($arr); $i++) {\n $model = FHtml::getModel($object_type, '', $arr[$i], null, false);\n if (isset($model) && method_exists($model, 'setSortOrder')) {\n $model->setSortOrder($i);\n $model->save();\n $sort_orders .= $arr[$i] . ', ';\n\n } else if (isset($model) && FHtml::field_exists($model, 'sort_order')) {\n FHtml::setFieldValue($model, 'sort_order', $i);\n $model->save();\n $sort_orders .= $arr[$i] . ', ';\n }\n }\n return $sort_orders;\n }", "title": "" }, { "docid": "27d757e3e70ad7dce6f713fc90f00a40", "score": "0.5443314", "text": "function getOrder();", "title": "" }, { "docid": "1a3c0a33e9b6bc4f22166e8f3fa8125a", "score": "0.54404837", "text": "public function linksGridOrder(){\n\n\t\t// Update order\n\t\t$ids = json_decode(Input::post('ids'));\n\t\tmodel('LinkModel')->updateSequence($ids);\n\n\t\t// Output success\n\t\toutput_json_encode(array(\n\t\t\t'success'\t=> true\n\t\t));\n\t}", "title": "" }, { "docid": "7864cb4c935ae5cc9da3ffc14f4bb4c5", "score": "0.54368526", "text": "abstract protected function sortModels();", "title": "" }, { "docid": "6d1d3730775b14b6d87e09739d3e2298", "score": "0.54322994", "text": "function exp_check_export_group_order()\n{\n global $g_table_prefix;\n\n $query = mysql_query(\"\n SELECT export_group_id\n FROM {$g_table_prefix}module_export_groups\n ORDER BY list_order ASC\n \");\n\n $ordered_groups = array();\n while ($row = mysql_fetch_assoc($query))\n $ordered_groups[] = $row[\"export_group_id\"];\n\n $order = 1;\n foreach ($ordered_groups as $export_group_id)\n {\n mysql_query(\"\n UPDATE {$g_table_prefix}module_export_groups\n SET list_order = $order\n WHERE export_group_id = $export_group_id\n \");\n $order++;\n }\n}", "title": "" }, { "docid": "0445376a217e75af634d7cdf40dfdfaf", "score": "0.5414993", "text": "public function order(){\n\t\treturn parent::order();\n\t}", "title": "" }, { "docid": "0445376a217e75af634d7cdf40dfdfaf", "score": "0.5414993", "text": "public function order(){\n\t\treturn parent::order();\n\t}", "title": "" }, { "docid": "34f9051321a2f5e33604de44dfa784e5", "score": "0.54067206", "text": "public function automaticOrdering($data)\n\t{\n\t\tif (!isset($data['ordering']))\n\t\t{\n\t\t\t$last = self::all()\n\t\t\t\t->select('ordering')\n\t\t\t\t->whereEquals('user_id', $data['user_id'])\n\t\t\t\t->order('ordering', 'desc')\n\t\t\t\t->row();\n\n\t\t\t$data['ordering'] = $last->ordering + 1;\n\t\t}\n\n\t\treturn $data['ordering'];\n\t}", "title": "" }, { "docid": "7978b11c4062ed8f2691472fa8517297", "score": "0.5404509", "text": "public function getOrderBy();", "title": "" }, { "docid": "1827655e4d5de9d55297b31605d3ee03", "score": "0.54027003", "text": "public function change_order($id, $direction)\n\t{\n\t\tif (isset($this->attachments[$id]))\n\t\t{\n\t\t\t$this->sort(true);\n\t\t\t$order = $this->custom_order;\n\t\t\t$current = $order[$id];\n\n\t\t\t// Can we move from the current position? If so, set the new order for the attachment and its sibling\n\t\t\tif (($direction == 'up' && $current !== 0) || ($direction == 'down' && $current !== ($this->get_count() - 1)))\n\t\t\t{\n\t\t\t\t$sibling_index = $current + (($direction == 'up') ? -1 : 1);\n\t\t\t\t$sibling_id = array_search($sibling_index, $order);\n\t\t\t\t$order[$id] = $sibling_index;\n\t\t\t\t$order[$sibling_id] = $current;\n\t\t\t\t$this->sort(true, $order, true);\n\t\t\t}\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "ae85bc8d5366c4c5a61635159c5fb865", "score": "0.53982496", "text": "function getOrder(){\n return 1;\n }", "title": "" }, { "docid": "d2c1ef3ea25820f02c5b47a2a2a8c3fe", "score": "0.5396384", "text": "function getOrder ()\n {\n return 1;\n }", "title": "" }, { "docid": "5e07edd225382894fb79ae495e7e797f", "score": "0.5390526", "text": "public static function ordering(&$row, $id)\n\t{\n\t\tif ($id)\n\t\t{\n\t\t\t$query = \\Components\\Menus\\Models\\Item::all()\n\t\t\t\t->select('ordering', 'value')\n\t\t\t\t->select('title', 'text')\n\t\t\t\t->whereEquals('menutype', $row->menutype)\n\t\t\t\t->whereEquals('parent_id', (int) $row->parent_id)\n\t\t\t\t->where('published', '!=', '-2')\n\t\t\t\t->order('ordering', 'asc')\n\t\t\t\t->toString();\n\n\t\t\t$order = Html::select('ordering', $query);\n\n\t\t\t$ordering = Html::select(\n\t\t\t\t'genericlist',\n\t\t\t\t$order,\n\t\t\t\t'ordering',\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => 'class=\"inputbox\" size=\"1\"',\n\t\t\t\t\t'list.select' => intval($row->ordering)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$ordering = '<input type=\"hidden\" name=\"ordering\" value=\"' . $row->ordering . '\" />' . Lang::txt('JGLOBAL_NEWITEMSLAST_DESC');\n\t\t}\n\n\t\treturn $ordering;\n\t}", "title": "" }, { "docid": "a8fc91318e5286bf2dd403b9e24faf9c", "score": "0.53901505", "text": "public function resetOrder() {\n\t\t$this->_order = array();\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "7c0c9f14f546ae0feab4c36aa601b38a", "score": "0.53726596", "text": "function array_orderby(&$data) {\n \n $args = func_get_args();\n //$data = array_shift($args);\n array_shift($args);\n foreach ($args as $n => $field) {\n if (is_string($field)) {\n $tmp = array();\n foreach ($data as $key => $row)\n $tmp[$key] = $row[$field];\n $args[$n] = $tmp;\n }\n }\n $args[] = &$data;\n call_user_func_array('array_multisort', $args);\n return array_pop($args);\n}", "title": "" }, { "docid": "99d2d315931dc840670d16fdff440587", "score": "0.53642344", "text": "public function linksCategoriesGridOrder(){\n\n\t\t// Update order\n\t\t$ids = json_decode(Input::post('ids'));\n\t\tmodel('LinkCategoryModel')->updateSequence($ids);\n\n\t\t// Output success\n\t\toutput_json_encode(array(\n\t\t\t'success'\t=> true\n\t\t));\n\t}", "title": "" }, { "docid": "98081532c5d71d2ea8ccd5e37569a6ac", "score": "0.5364209", "text": "function yaz_itemorder($id, $package) {}", "title": "" }, { "docid": "7b82515ada2d880c28e89ca6bfd3d0c7", "score": "0.5359636", "text": "function getOrder()\n {\n return 1;\n }", "title": "" }, { "docid": "7b82515ada2d880c28e89ca6bfd3d0c7", "score": "0.5359636", "text": "function getOrder()\n {\n return 1;\n }", "title": "" }, { "docid": "7b82515ada2d880c28e89ca6bfd3d0c7", "score": "0.5359636", "text": "function getOrder()\n {\n return 1;\n }", "title": "" }, { "docid": "7b82515ada2d880c28e89ca6bfd3d0c7", "score": "0.5359636", "text": "function getOrder()\n {\n return 1;\n }", "title": "" }, { "docid": "e69731015ed9b6b0f164d2e0c2fb5934", "score": "0.5358943", "text": "public function actionOrder()\n {\n if (!isset($_POST['order'])) throw new CHttpException(400, 'No data, to save');\n $gp = $_POST['order'];\n $orders = array();\n $i = 0;\n foreach ($gp as $k => $v) {\n if (!$v) $gp[$k] = $k;\n $orders[] = $gp[$k];\n $i++;\n }\n sort($orders);\n $i = 0;\n $res = array();\n foreach ($gp as $k => $v) {\n /** @var $p GalleryPhoto */\n $p = GalleryPhoto::model()->findByPk($k);\n $p->rank = $orders[$i];\n $res[$k] = $orders[$i];\n $p->save(false);\n $i++;\n }\n\n echo CJSON::encode($res);\n\n }", "title": "" }, { "docid": "3ec8355c9b87f18e4bf1c2ceaaa80737", "score": "0.53559524", "text": "function sortbyname( $a, $b )\n{\n return $a[ 'id' ] < $b[ 'id' ] ? -1 : 1;\n}", "title": "" }, { "docid": "5ef995bc8fa2c1edccff06e4b98f8130", "score": "0.5353962", "text": "function sortByOrder(array $array, array $order)\n {\n return array_filter(array_replace(array_fill_keys($order, null), $array));\n }", "title": "" }, { "docid": "249c16c79c8dcc8904b4064da5a1046e", "score": "0.5353937", "text": "public function findOrder($id) {\n return $this->fetchRow('id = '. $id);\n\n }", "title": "" }, { "docid": "79339132a6d4e806feae87f793583232", "score": "0.5351129", "text": "function SetUpSortOrder() {\n\t\tglobal $mst_menuweb;\n\n\t\t// Check for an Order parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$mst_menuweb->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$mst_menuweb->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$mst_menuweb->UpdateSort($mst_menuweb->kode); // Field \n\t\t\t$mst_menuweb->UpdateSort($mst_menuweb->seqno); // Field \n\t\t\t$mst_menuweb->UpdateSort($mst_menuweb->lang); // Field \n\t\t\t$mst_menuweb->UpdateSort($mst_menuweb->caption); // Field \n\t\t\t$mst_menuweb->UpdateSort($mst_menuweb->url); // Field \n\t\t\t$mst_menuweb->UpdateSort($mst_menuweb->target); // Field \n\t\t\t$mst_menuweb->UpdateSort($mst_menuweb->createby); // Field \n\t\t\t$mst_menuweb->UpdateSort($mst_menuweb->createdate); // Field \n\t\t\t$mst_menuweb->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "title": "" }, { "docid": "163b68c4259bcd05c72c9d14a5ccf94b", "score": "0.5336309", "text": "function reorder($id, $direction) {\n return false;\n }", "title": "" }, { "docid": "cd0dc29a8481d0e15b40f3565a56c52a", "score": "0.53349864", "text": "function update_order() {\n\n\t\t$aQuestionData = array();\n\t\t$sError = '';\n\t\t$aJsonData = array('error' => '');\n\n\t\t//log_message('error', $_POST['sorted_questions']);\n\n\t\t$aSortedQuestions = safeText('sorted_questions');\n\n\t\t//log_message('error', print_r($aSortedQuestions, true));\n\n\t\t// get the questions in the original order\n\t\t$aOriginalOrder_Questions = array();\n\t\tforeach($this->question_model->getQuestionsForSorting() AS $oItem) {\n\t\t\t$aOriginalOrder_Questions[] = $oItem->uid;\n\t\t}\n\n\n\t\t// verification - make sure we have only the data we really want.\n\t\tif( ! empty($aIntersect = array_diff($aSortedQuestions, $aOriginalOrder_Questions )) ) {\n\t\t\t$sError = 'Invalid data' . print_r($aIntersect, true);\n\t\t}\n\n\t\t// If there are no errors, update new order of questions to DB.\n\t\tif( ! $sError ) {\n\n\t\t\t//we want the the indexing to start from 1.\n\t\t\tarray_unshift($aOriginalOrder_Questions, '');\n\t\t\tunset($aOriginalOrder_Questions[0]);\n\n\t\t\t//we want the the indexing to start from 1.\n\t\t\tarray_unshift($aSortedQuestions, '');\n\t\t\tunset($aSortedQuestions[0]);\n\n\n\t\t\t$aOriginalOrder_Questions_flipped = array_flip($aOriginalOrder_Questions);\n\n\t\t\t//update the order as a single transaction.\n\t\t\t$this->db->trans_start();\n\t\t\tlog_message('error', 'sorted questions count' . count($aSortedQuestions));\n\t\t\tlog_message('error', 'original questions count' . count($aOriginalOrder_Questions_flipped));\n\n\t\t\tforeach($aSortedQuestions AS $iNewOrder => $iUid ) {\n\n\n\t\t\t\t$iOriginalOrder = $aOriginalOrder_Questions_flipped[$iUid];\n\n\t\t\t\tif($iOriginalOrder != $iNewOrder) {\n\n\t\t\t\t\t//log_message( 'error', $iUid . ' -> ' . $iNewOrder );\n\n\t\t\t\t\t$this->db->where('uid', $iUid);\n\t\t\t\t\t$this->db->set('question_order', $iNewOrder);\n\t\t\t\t\t$this->db->update('questions');\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t$this->db->trans_complete();\n\n\t\t\t// update to config array, the updated order\n\t\t\t$this->question_model->generateConfig_QuestionsInOrder();\n\n\n\t\t} else {\n\t\t\tlog_message( 'error', 'error msg : ' . $sError);\n\t\t}\n\n\n\t\t$aJsonData['error'] = $sError;\n\t\t$sJsonData = json_encode($aJsonData);\n\n\t\t$this->output->set_header('Content-type: application/json');\n\t\t$this->load->view('output', array('output' => $sJsonData));\n\t}", "title": "" }, { "docid": "34277ec66cbb9231551492095f5e1b32", "score": "0.5334151", "text": "public function byPageId($id, $order = ['order' => 'DESC']);", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "483c4d3f2d3c7eff50329db5300a8ac8", "score": "0.0", "text": "public function show($id)\n {\n try {\n $category = Category::findOrFail($id);\n } catch (Exception $e) {\n alert()->flash($e->getMessage(), 'warning', ['text' => 'Error intenta nuevamente.']);\n return redirect()->back();\n }\n \n return view('categories.show')\n ->with(\n [\n 'title' => 'Información de la categoria', 'category' => $category,\n 'new' => route('categories.create')\n ]\n );\n }", "title": "" } ]
[ { "docid": "f379d94fc578937200b5c52c49012541", "score": "0.8565385", "text": "public function display($resource)\t\r\r\n\t{\r\r\n\t\t$this->sm->display($resource);\r\r\n\t}", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "56c1b3fa26b6d9cabf2dd64200068151", "score": "0.7232847", "text": "public function viewAction()\n\t{\n\t\t$id = $this->getRequest()->getParam('id');\n\t\t// Check to see if they specified id in the url and its a valid id\n\t\tif($id == null || !intval($id)) {\n\t\t\t// Redirect because to view a Resource, they have to specify one in the url\n\t\t\t$this->_redirect($this->view->baseUrl('/resources/'));\n\t\t\texit();\n\t\t}\n\n\t\t// Get the resource from the database\n\t\t$this->view->resource = Application_Model_Document_Resource::find($id);\n\t}", "title": "" }, { "docid": "f7b7d1b1441808ba8a10baf202dd812d", "score": "0.7231613", "text": "function viewResource() {\n if ( !isset($_GET[\"resourceId\"]) || !$_GET[\"resourceId\"] ) {\n homepage();\n return;\n }\n \n $results = array();\n $results['resource'] = Resource::getById( (int)$_GET[\"resourceId\"] );\n $results['pageTitle'] = $results['resource']->title . \" | Couch To Code\";\n require( $TEMPLATE_PATH . \"/viewResource.php\" );\n}", "title": "" }, { "docid": "2469246bfacb305518866aabf78fdf25", "score": "0.711776", "text": "public function show(Resource $resource)\n {\n return view('frontend.resources.show', compact('resource'));\n }", "title": "" }, { "docid": "ecd32fc705283cc0e1ddec209c43aec8", "score": "0.69488674", "text": "public function displayResourceForm($resource)\n {\n $childServices = new Setting('child_services');\n\n ob_start();\n include(VIEW_PATH . '/child-resources-edit.phtml');\n $resource_content = ob_get_contents();\n ob_end_clean();\n\n print $resource_content;\n }", "title": "" }, { "docid": "fd732d21f7abd3682ae6c91a53d78e2a", "score": "0.6865356", "text": "function display($resource_name, $cache_id = null, $compile_id = null)\r\n {\r\n header(\"content-type:text/html; charset=UTF-8\");\r\n $this->fetch($resource_name, $cache_id, $compile_id, true);\r\n }", "title": "" }, { "docid": "c20bab39c09603f7d64ce51657305feb", "score": "0.6764596", "text": "public function show($resource, $id)\n {\n $fields = $this->getModelAttributes();\n $model = $this->model->findOrFail($id);\n return view('admin::resource.show', [\n 'id' => $id,\n 'fields' => $fields,\n 'model' => $model,\n 'model_name' => $this->modelName,\n ]);\n }", "title": "" }, { "docid": "cdbc9ca49f6e1cb18dac8bcf70572df8", "score": "0.654542", "text": "public function show($resourceId)\n {\n $resource = $this->resource->with('fields')->where('slug', $this->slug)->first();\n $model = $this->getModel($resource);\n $entity = $model::with('objects')->where('id', $resourceId)->first();\n $objects = Object::all();\n\n return view('laramanager::resource.show', compact('resource', 'entity', 'objects'));\n }", "title": "" }, { "docid": "754481a7bcbe790bd36063183e1ce547", "score": "0.65097207", "text": "public function show($id)\n {\n // GET /resources/{id}\n echo 'This is ResourceController-'.\"<span style=\\\"color: red\\\">show-{$id}</span>\".' function for GET request';\n }", "title": "" }, { "docid": "f5f88a360f9e8bba14d5cdf454b19db2", "score": "0.63916266", "text": "public function getAction()\n {\n $id = $this->_getParam('id', 0);\n\n $this->view->id = $id;\n $this->view->message = sprintf('Resource #%s', $id);\n $this->_response->ok();\n }", "title": "" }, { "docid": "44d76948504b6adb4e16305ebd5913b0", "score": "0.628938", "text": "function view($id = null) {\r\n\t $this->__requireLogin();\r\n\t\tif (!$id) {\r\n\t\t\t$this->flash(__('Invalid Resource', true), array('action'=>'index'));\r\n\t\t}\r\n\t\t$file = $this->Resource->findById($id);\r\n \r\n header('Content-type: ' . $file['Resource']['type']);\r\n header('Content-length: ' . $file['Resource']['size']);\r\n header('Content-Disposition: attachment; filename=\"'.$file['Resource']['name'].'\"');\r\n echo $file['Resource']['data'];\r\n exit;\r\n\t}", "title": "" }, { "docid": "48b73977d6fc027cde6cd073ae8022ea", "score": "0.6241571", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n return view('resources.show')->with('resource', $resource);\n }", "title": "" }, { "docid": "40f975ff71d90c3f5edf0cf754386eab", "score": "0.6150558", "text": "public function displayPlain($resource_name, $cache_id = null, $compile_id = null) {\n\t\t\tparent::display($resource_name, $cache_id, $compile_id);\n\t\t}", "title": "" }, { "docid": "ad3f5bc00574f3d97b19728b6e3e0bbf", "score": "0.61076814", "text": "public function show(ResourceBuilder $resource)\n {\n return $resource\n ->setId($this->route->parameter('id'))\n ->setOption('map', $this->route->parameter('map'))\n ->setOption('read', true)\n ->response(\n $this->route->parameter('namespace'),\n $this->route->parameter('stream')\n );\n }", "title": "" }, { "docid": "73f64795d6bc2b94d2d47da1cfe131e9", "score": "0.60787934", "text": "public function show($id)\n\t{\n\t\t$this->layout->nest('content', $this->view, array('route' => $this->resource));\n\t}", "title": "" }, { "docid": "6bd053b923b63a1f9a1cfc5ee94f9a92", "score": "0.6056226", "text": "public static function display () {\n\t\t$r = self::get();\n\t\techo $r;\n\t}", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.60360175", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "a0bc85eba3bf9a7248de034fbbb25784", "score": "0.6007803", "text": "public function display()\n {\n echo $this->getResponse();\n }", "title": "" }, { "docid": "3b3cd10f692f83d4dc9bbb65b5a42273", "score": "0.5948826", "text": "public function index(Resource $resource)\n {\n session(['resourceId' => $resource->id]);\n\n $credits = $this->getCredits();\n\n $noSideBar = true;\n\n // Show the page\n return view('admin.credit.index', compact('resource', 'credits', 'noSideBar'));\n }", "title": "" }, { "docid": "924979ab90976d4cf30edfc605f8b0a4", "score": "0.5944731", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n parent::resolveForDisplay($resource, $attribute);\n\n $attribute = $attribute ?? $this->attribute;\n\n $properties = $this->getPropertiesWithMetaForDisplay($resource, $attribute);\n\n $this->resolveResourceFields($resource, $attribute, $properties);\n }", "title": "" }, { "docid": "5d8393b27071ea3dea23f88f54ed88d2", "score": "0.5931804", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/Obs/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "e7087dc02ae8702a512361ac22fc4c1b", "score": "0.59251773", "text": "public function showAction()\n\t{\n\t\t$file = $this->_fileModel->getFileById($this->getRequest()->getParam('id'));\n\n\t\t$filename = $file->filename;\n\n\t\tif ($file->getThumb()) {\n\t\t\t$filename = $file->getThumb();\n\t\t}\n\t\t$this->_helper->SendFile(Zend_Registry::get('config')->directories->uploads.$filename, $file->mimetype, array('disposition' => 'inline'));\n\t\texit();\n\t}", "title": "" }, { "docid": "edcfd48bc84396ce018d75bad0445dd1", "score": "0.59243864", "text": "function presenting_resource($resource)\n { \n return event(new \\Core\\Crud\\Events\\PresentingResource($resource)); \n }", "title": "" }, { "docid": "aade75262be1495917e772f7186d1ef6", "score": "0.5920925", "text": "public function displayURI()\n\t\t{\n\n\t\t\t//Look up template from url (processed by FileDispatcher)\n\t\t\t$buffer = parent::fetch('file:'.FileDispatcher::getFilePath());\n\n\t\t\tparent::assignGlobal('buffer', $buffer);\n\n\t\t\t//Select Container and look up from FileDispatcher\n\t\t\t$container = parent::getTemplateVars('container');\n\n\t\t\tif(!isset($container))\n\t\t\t\t$container = 'default.tpl';\n\t\t\t//Display container\n\n\t\t\tparent::display('ember_container:'.$container);\n\t\t}", "title": "" }, { "docid": "926f5a0c2f718fd012ee6af0eb82bb93", "score": "0.5911495", "text": "public function show(Retiro $retiro)\n {\n //\n }", "title": "" }, { "docid": "b0c30b37c914212f6751d7af803d3c9c", "score": "0.5878103", "text": "public function show(Fetch $fetch)\n {\n //\n }", "title": "" }, { "docid": "fd728130e464c7ca0e936873b067ad9b", "score": "0.5873589", "text": "public function index()\n {\n $resource = $this->resource->with('fields')->where('slug', $this->slug)->first();\n\n $select = ['id'];\n $eagerLoad = [];\n foreach($resource->fields as $field)\n {\n if($field->list) $select[] = $field->slug;\n\n if($field->type == 'relational')\n {\n $eagerLoad[] = $field->data('method');\n }\n }\n\n $model = $this->getModel($resource);\n $entities = $model::with($eagerLoad)->select($select)->get();\n\n $hasObjects = false;\n if(method_exists($model, 'objects')) $hasObjects = true;\n\n return view('laramanager::resource.index', compact('resource', 'entities', 'hasObjects'));\n }", "title": "" }, { "docid": "8f6a1062ec77ffb509e4d3ffaf7b3ff0", "score": "0.5872246", "text": "public\tfunction\tshow($id)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t}", "title": "" }, { "docid": "d7ce48ce019e0bea04d049b9105b5e4d", "score": "0.58685344", "text": "public function edit(Resource $resource)\n {\n return view('dashboard.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "c37bc8432dc699eb4868713404eb44df", "score": "0.5867447", "text": "public function displayAction() {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_News n')\n ->where('n.newsid = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->news = $result[0];\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "47e747f99077c377d962c44054ba1f49", "score": "0.586655", "text": "public function action_show() {\n $this->render('show');\n }", "title": "" }, { "docid": "7c25d9175a0b8f2be9a3f3b0c4a64c29", "score": "0.5860501", "text": "public function showAction()\r\n\t{\r\n\t\t$this->loadLayout()->renderLayout();\r\n\t}", "title": "" }, { "docid": "afdef03db60b66fcaac5256155065eef", "score": "0.58447284", "text": "public function show()\n {\n $parameters = func_get_args();\n $id = end($parameters);\n\n $this->getPermissionClass()->canShowOrFail();\n $entry = $this->getEntry($id);\n\n $title = $this->getSingularModelName();\n SEO::setTitle($title);\n\n return view($this->getViewShow(), [\n 'title' => $title,\n 'entry' => $entry,\n ]);\n }", "title": "" }, { "docid": "699876e556a945a17b98cfd3fd402c79", "score": "0.5843976", "text": "public function show(RespondentResponse $respondentResponse)\n {\n //\n }", "title": "" }, { "docid": "173a672fb3fc108352b0a12fdf43c627", "score": "0.58403057", "text": "public function display($name, $context = array());", "title": "" }, { "docid": "fa8588667a1d890c9dfa26a352341bfd", "score": "0.58148795", "text": "public function showResourceForm(array $data);", "title": "" }, { "docid": "70aa9bc46f07e7c2bb6237a1a809da50", "score": "0.58115053", "text": "public function display(): void{\n\t\tif($this->checkPermissions())\n\t\t\t$this->render();\n\t}", "title": "" }, { "docid": "656fe493779bf91e119cf4af807d6ffc", "score": "0.5810919", "text": "public function show( )\n {\n //\n }", "title": "" }, { "docid": "89ba560285c74712b8199c0fc1766637", "score": "0.5805252", "text": "public function show($id)\n {\n // Nothing TODO ... yet\n }", "title": "" }, { "docid": "41e5ee3783ca0e67337c6b41b7d0ca62", "score": "0.57929444", "text": "public function display()\n {\n echo $this->fetch();\n }", "title": "" }, { "docid": "dffabbd39fa01d27e5385af66489771e", "score": "0.5784531", "text": "public function show()\n\t{\n\n\n\n\t}", "title": "" }, { "docid": "8479d09c5ed3e908dc1de9eefe3c1948", "score": "0.57744014", "text": "public function show($name)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "86c1cdcea2e8f7d9622836d391eb01a0", "score": "0.57640016", "text": "public function resources()\n {\n if($this->input->post('resource_id', false)) {\n $this->auth->restrict('Capacity_Building.Content.Create');\n $this->addOrEditResourceLink();\n $id = $this->input->post('resource_id');\n\n Template::redirect($this->resourceResourcesUrl.'/'.$id);\n } else {\n $this->auth->restrict('Capacity_Building.Content.View');\n $id = $this->uri->segment(5);\n $listView = $this->showResourceResourcesList($id);\n\n Template::set('backUrl', $this->homeScreenUrl);\n Template::set('listView', $listView);\n Template::render();\n }\n }", "title": "" }, { "docid": "f9398d1b2a35351b84b6f10fff87197f", "score": "0.57630813", "text": "public function showAction() {\n $id = $this->route_params['id'];\n $company = Company::getById($id);\n View::renderTemplate('Companies/show.html', [\n 'company' => $company\n ]);\n }", "title": "" }, { "docid": "1c17a048467bdd4665dff5a0b022922b", "score": "0.5749995", "text": "function ShowAction()\n\t\t{\n\t\t\t//retrieve post details\n\t\t\t//display post details\n\t\t}", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "8c6c92dca7be1af09c99f8f3d0192fb4", "score": "0.57394016", "text": "function display() {\n echo $this->get();\n }", "title": "" }, { "docid": "b805cdaee398222732d4781465289810", "score": "0.5737449", "text": "public function show($id)\n\t{\n \t//\n\t}", "title": "" }, { "docid": "63e8b96d2643a39f6b58a94ab06cc3e5", "score": "0.5724377", "text": "public function show() {\n if (!isset($_GET['id']))\n return call('application', 'error');\n\n // we use the given id to get the right course\n $course = Course::find($_GET['id']);\n require_once('views/courses/show.php');\n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "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": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57208323", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "231df042c1c22328d0bccca36d00d4b3", "score": "0.5717272", "text": "public function showAction($id)\n {\n $bookRepository = new BookRepository();\n $book = $bookRepository->getOneById($id);\n\n if(null == $book){\n $errorMessage = 'no book found with id = ' . $id;\n $this->app->abort(404, $errorMessage);\n }\n\n $argsArray = [\n 'book' => $book\n ];\n $templateName = 'show';\n return $this->app['twig']->render($templateName . '.html.twig', $argsArray);\n }", "title": "" }, { "docid": "8beddd76b0dfd4ee8fbc7e77c7941f9d", "score": "0.57165015", "text": "public function display()\n \t{\n \t\tparent::display();\n \t}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "51bb50cf0d2068c55898b438773d4e90", "score": "0.5704464", "text": "public function show(Entry $entry) {\n //\n }", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "2204f8d554d9525d60e0aba235700bfd", "score": "0.56858474", "text": "public function locate($resource);", "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": "" } ]
bc553dc88f3058b639533a1140154d9a
Outputs the HTML to power the picnik editor launching dialog
[ { "docid": "e795526e2d8656de241aeca238abac72", "score": "0.57593834", "text": "public function handleLaunchPicnikModal()\n\t{\n\t\tif (!isset($_POST['imageType']) || !isset($_POST['imageId'])) {\n\t\t\treturn;\n\t\t}\n\n\t\t$token = $this->setupPicnikSession($_POST['imageType'], $_POST['imageId']);\n\n\t\t$this->template->display('picnik.intro.tpl');\n\t}", "title": "" } ]
[ { "docid": "67971aa8e67128ce75cad1fffc46cb90", "score": "0.722836", "text": "public function program()\n {\n $this->showHTML();\n }", "title": "" }, { "docid": "b2ca714e7627a58ed8618040aec3eccf", "score": "0.67957515", "text": "function launch_interface_HTML() {\n\n\t\tinclude_once __DIR__ . '/views/html-interface-launch.php';\n\t}", "title": "" }, { "docid": "df4774cb9abe0519b2c6edf8e556dc9b", "score": "0.6622601", "text": "public function mostrar_html_app_launcher()\n\t{\n\t\techo $this->get_html_app_launcher();\n\t}", "title": "" }, { "docid": "90884dc022324d77a21a7cf61f0664fe", "score": "0.65322894", "text": "function execute() {\n\t\tglobal $wgRequest, $wgLang;\n\t\tinclude('cavendish/config.php');\n\t\t$QRURL = htmlentities( $this->getSkin()->getTitle()->getFullURL()).$cavendishQRurladd;\n\t\t$styleversion = '2.3.3';\n\t\t$this->skin = $skin = $this->data['skin'];\n\t\t$action = $wgRequest->getText( 'action' );\n\t\tif ( $action == \"\") {\n\t\t\t$action = \"view\";\n\t\t}\n\t\t// Suppress warnings to prevent notices about missing indexes in $this->data\n\t\twfSuppressWarnings();\n\t\t// HTML starts here\n\t\t$this->html( 'headelement' );\n?>\n<div id=\"internal\"></div>\n<!-- Skin-Version: <?php echo $styleversion ?> //Please leave this for bugtracking purpose//-->\n<div id=\"globalWrapper\" class=\"<?php echo $action ?>\">\n\t<div id=\"p-personal\" class=\"portlet\">\n\t\t<h5><?php $this->msg('personaltools') ?></h5>\n\t\t<div class=\"pBody\">\n\t\t\t<ul <?php $this->html('userlangattributes') ?>>\n\t\t\t<?php foreach($this->data['personal_urls'] as $key => $item) {?>\n\t\t\t\n\t\t\t<li id=\"<?php echo Sanitizer::escapeId( \"pt-$key\" ) ?>\" class=\"<?php\n\t\t\t\t\tif ($item['active']) { ?>active <?php } ?>top-nav-element\">\n\t\t\t\t<span class=\"top-nav-left\">&nbsp;</span>\n\t\t\t\t<a class=\"top-nav-mid <?php echo htmlspecialchars($item['class']) ?>\" \n\t\t\t\t href=\"<?php echo htmlspecialchars($item['href']) ?>\">\n\t\t\t\t <?php echo htmlspecialchars($item['text']) ?></a>\n\t\t\t\t<span class=\"top-nav-right\">&nbsp;</span></li>\n\t\t\t\t<?php\n\t\t\t\t} ?>\n\t\t\t\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n\t<div id=\"header\">\n\t\t<a name=\"top\" id=\"contentTop\"></a>\n\t\t<h6>\n\t\t<a\n\t\thref=\"<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>\"\n\t\ttitle=\"<?php $this->msg('mainpage') ?>\"><?php $this->text('pagetitle') ?></a></h6>\n\t\t<div id=\"p-cactions\" class=\"portlet\"><ul>\n<?php\t\t\tforeach($this->data['content_actions'] as $key => $tab) {\n\t\t\t\t\techo '\n\t\t\t\t<li id=\"' . Sanitizer::escapeId( \"ca-$key\" ) . '\"';\n\t\t\t\t\tif( $tab['class'] ) {\n\t\t\t\t\t\techo ' class=\"'.htmlspecialchars($tab['class']).'\"';\n\t\t\t\t\t}\n\t\t\t\t\techo '><a href=\"'.htmlspecialchars($tab['href']).'\"';\n\t\t\t\t\t# We don't want to give the watch tab an accesskey if the\n\t\t\t\t\t# page is being edited, because that conflicts with the\n\t\t\t\t\t# accesskey on the watch checkbox. We also don't want to\n\t\t\t\t\t# give the edit tab an accesskey, because that's fairly su-\n\t\t\t\t\t# perfluous and conflicts with an accesskey (Ctrl-E) often\n\t\t\t\t\t# used for editing in Safari.\n\t\t\t\t\tif( in_array( $action, array( 'edit', 'submit' ) ) && in_array( $key, array( 'edit', 'watch', 'unwatch' ) ) ) {\n\t\t\t\t\t\techo $skin->tooltip( \"ca-$key\" );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\techo $skin->tooltip( \"ca-$key\" );\n\t\t\t\t\t}\n\t\t\t\t\techo '>'.htmlspecialchars($tab['text']).'</a></li>';\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t?>\n\t\t\t</ul></div>\n\t\t\t<?php \n\t\t\t// TODO Searchbox Handling\n\t\t\t$this->searchBox(); ?>\n\t</div>\n\t<div id=\"mBody\">\n\t\t<div id=\"side\">\n\t\t\t<div id=\"nav\">\n<?php //sidebar\n\t\t$sidebar = $this->data['sidebar'];\n\t\tif ( !isset( $sidebar['SEARCH'] ) ) $sidebar['SEARCH'] = true;\n\t\tif ( !isset( $sidebar['TOOLBOX'] ) ) $sidebar['TOOLBOX'] = true;\n\t\tif ( !isset( $sidebar['LANGUAGES'] ) ) $sidebar['LANGUAGES'] = true;\n\t\tforeach ($sidebar as $boxName => $cont) {\n\t\t\t// TODO Searchbox Handling\n\t\t\tif ( $boxName == 'SEARCH' ) {\n//\t\t\t\t$this->searchBox();\t\n\t\t\t} elseif ( $boxName == 'TOOLBOX' ) {\n\t\t\t\t$this->toolbox();\n\t\t\t} elseif ( $boxName == 'LANGUAGES' ) {\n\t\t\t\t$this->languageBox();\n\t\t\t} else {\n\t\t\t\t$this->customBox( $boxName, $cont );\n\t\t\t}\n\t\t}\n\t\t?>\n</div>\n</div>\n\t\t</div><!-- end of SIDE div -->\n\t\t<div id=\"column-content\">\n\t\t\t<div id=\"content\">\n\t\t\t\t<a id=\"top\"></a>\n\t\t\t\t<?php if($this->data['sitenotice']) { ?><div id=\"siteNotice\"><?php $this->html('sitenotice') ?></div><?php } ?>\n\t\t\t\t<h1 id=\"firstHeading\" class=\"firstHeading\"><?php $this->html('title') ?></h1>\n\t\t\t\t<div id=\"bodyContent\">\n\t\t\t\t\t<h3 id=\"siteSub\"><?php $this->msg('tagline') ?></h3>\n\t\t\t\t\t<div id=\"contentSub\"><?php $this->html('subtitle') ?></div>\n\t\t\t\t\t<?php if($this->data['undelete']) { ?><div id=\"contentSub2\"><?php $this->html('undelete') ?></div><?php } ?>\n\t\t\t\t\t<?php if($this->data['newtalk'] ) { ?><div class=\"usermessage\"><?php $this->html('newtalk') ?></div><?php } ?>\n\t\t\t\t\t<?php if($this->data['showjumplinks']) { ?><div id=\"jump-to-nav\"><?php $this->msg('jumpto') ?> <a href=\"#column-one\"><?php $this->msg('jumptonavigation') ?></a>, <a href=\"#searchInput\"><?php $this->msg('jumptosearch') ?></a></div><?php } ?>\n\t\t\t\t\t<!-- start content -->\n\t\t\t\t\t<?php $this->html('bodytext') ?>\n\t\t\t\t\t<?php if($this->data['catlinks']) { $this->html('catlinks'); } ?>\n\t\t\t\t\t<!-- end content -->\n\t\t\t\t\t<?php if($this->data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?>\n\t\t\t\t</div>\n\t\t\t</div><!-- end of MAINCONTENT div -->\t\n\t\t</div>\n\t</div><!-- end of MBODY div -->\n\t<div class=\"visualClear\"></div>\n\t<div id=\"footer\">\n\t\t<table>\n\t\t\t<tr>\n\t\t\t\t<td rowspan=\"2\" class=\"f-iconsection\">\n\t\t<?php //copytight icon\n\t\tif($this->data['copyrightico']) { ?><div id=\"f-copyrightico\"><?php $this->html('copyrightico') ?></div><?php } ?>\n\t\t\t\t</td>\n\t\t\t\t<td align=\"center\">\n<?php\t// Generate additional footer links\n\t\t$footerlinks = array(\n\t\t\t'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright',\n\t\t\t'privacy', 'about', 'disclaimer', 'tagline',\n\t\t);\n\t\t$validFooterLinks = array();\n\t\tforeach( $footerlinks as $aLink ) {\n\t\t\tif( isset( $this->data[$aLink] ) && $this->data[$aLink] ) {\n\t\t\t\t$validFooterLinks[] = $aLink;\n\t\t\t}\n\t\t}\n\t\tif ( count( $validFooterLinks ) > 0 ) {\n?>\t\t\t<ul id=\"f-list\">\n<?php\n\t\t\tforeach( $validFooterLinks as $aLink ) {\n\t\t\t\tif( isset( $this->data[$aLink] ) && $this->data[$aLink] ) {\n?>\t\t\t\t\t<li id=\"f-<?php echo$aLink?>\"><?php $this->html($aLink) ?></li>\n<?php \t\t\t}\n\t\t\t}\n\t\t}\n?></ul></td>\n\t\t\t\t<td rowspan=\"2\" class=\"f-iconsection\">\n\t\t\t\t\t<?php\n\t\t\t\t\t$validFooterIcons = $this->getFooterIcons( \"nocopyright\" );\n\t\t\t\t\tforeach ( $validFooterIcons as $blockName => $footerIcons ) { ?>\n\t\t\t\t\t\t\t<div id=\"f-<?php echo htmlspecialchars($blockName); ?>ico\"><?php\n\t\t\t\t\t\tforeach ( $footerIcons as $icon ) {\n\t\t\t\t\t\t\techo $this->skin->makeFooterIcon( $icon );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t?></div>\n\t\t\t\t\t<?php \n\t\t\t\t\t// QR-Code added on option\n\t\t\t\t\tif ($cavendishQRCode) { ?>\n\t\t\t\t\t<div id=\"qrcode\">\n\t\t\t\t\t\t<a href=\"http://goqr.me/\" style=\"border:0 none;cursor:default;text-decoration:none;\"><img src=\"http://api.qrserver.com/v1/create-qr-code/?data=<?php echo $QRURL; ?>&#38;size=160x160\" height=80 width=80 alt=\"QR Code generator\" title=\"\" /></a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<?php } ?> \n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td><div id=\"skin-info\">\n\t\t\t\t\tMozilla Cavendish Theme based on Cavendish style by Gabriel Wicke modified by <a href=\"http://www.dasch-tour.de\" title=\"DaSch-Tour Blog\" target=\"_blank\">DaSch</a> for the <a href=\"http://www.wecowi.de/\" title=\"Web Community Wiki\">Web Community Wiki</a><br/>\n\t\t\t\t\t<a href=\"https://github.com/DaSchTour/Cavendish\" title=\"github projectpage\">github Projectpage</a> &ndash; <a href=\"https://github.com/DaSchTour/Cavendish/issues\" title=\"Bug reporting at github\">Report Bug</a> &ndash; Skin-Version: <?php echo $styleversion ?>\n\t\t\t\t</div></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div><!-- end of the FOOTER div -->\n</div><!-- end of the CONTAINER div -->\n<!-- scripts and debugging information -->\n<?php\n\n\t\t$this->printTrail();\n\t\techo Html::closeElement( 'body' );\n\t\techo Html::closeElement( 'html' );\n\t\twfRestoreWarnings();\n\t}", "title": "" }, { "docid": "025c0c27a7d931b444e0996266202a86", "score": "0.632908", "text": "public function output() {\n\n\t\t/**\n\t\t * Provides the filepath for the pop up HTML.\n\t\t *\n\t\t * @since 0.1.0\n\t\t */\n\t\t$popup_template = apply_filters( 'rbpu_popup_template', ROADBLOCKPOPUP_DIR . 'includes/views/popup.php' );\n\n\t\t$popup_video_url = esc_url_raw( $this->video_url );\n\n\t\tif ( file_exists( $popup_template ) ) {\n\t\t\tinclude $popup_template;\n\t\t}\n\t}", "title": "" }, { "docid": "da9691be81e85621c5190ab454fd6340", "score": "0.6282482", "text": "public function showScript() {\r\n switch ($this->type) {\r\n case \"visual\":\r\n // Output CKeditor script\r\n echo\r\n \"<script>CKEDITOR.replace(\\\"\" .\r\n $this->slug .\r\n \"\\\");</script>\"\r\n ;\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "595f7f8f51f62a8e00b69fdb4221a28d", "score": "0.6173028", "text": "function show_editor_pick()\r\n\t{\r\n\t\techo '<div id=\"editors_pick\" style=\"padding-bottom:10px\">\r\n\t\tThis content requires JavaScript and Macromedia Flash Player 7 or higher. <a href=http://www.macromedia.com/go/getflash/>Get Flash</a><br/><br/>\r\n\t\t</div>\r\n\t\t<script type=\"text/javascript\">\r\n\t\tvar ep = new FlashObject(\"/plugins/editors_pick/editors_pick_player.swf?xmlfile=/plugins/editors_pick/editors_pick_player.php\", \"sotester\", \"340\", \"243\", \"9\", \"#FFFFFF\");\r\n ep.addParam(\"wmode\", \"opaque\");\r\n ep.addParam(\"allowFullScreen\", \"true\");\r\n\t\tep.write(\"editors_pick\");\r\n\t\t</script>';\r\n\t}", "title": "" }, { "docid": "6f17b949e35845a060e105a0c48a0192", "score": "0.6156038", "text": "public function render() {\n\t\trequire_once WEBSTORIES_PLUGIN_DIR_PATH . 'includes/templates/admin/experiments.php';\n\t}", "title": "" }, { "docid": "a7cde4401991cc4dc7dda162ad9de0e0", "score": "0.6155226", "text": "public function output() {\n\t\tglobal $TEST_MODE;\n\t\tswitch ( $this->action['action'] ) {\n\t\t\tcase \"inbox\":\n\t\t\t\t$this->title .= \"::Inbox\";\n\t\t\t\t$this->html = $this->inbox();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->title .= \"::Inbox\";\n\t\t\t\t$this->html = $this->inbox();\n\t\t\t\tbreak;\n\t\t}\n\t\tmakePage($this->html, $this->title);\n\t}", "title": "" }, { "docid": "0912fd648f21db8ec181d52f11348dbf", "score": "0.6145373", "text": "function add_edit_HTML() {\n\n\t\tinclude_once __DIR__ . '/views/html-interface-widget-edit-actions.php';\n\t}", "title": "" }, { "docid": "6f2a39f1b5fe787bd3e18fbd8f5359aa", "score": "0.6127763", "text": "function input ()\r\n{\r\n $vhtml = new VHtml();\r\n $vhtml->showHtml('input.html');\r\n \t\r\n}", "title": "" }, { "docid": "d570e41c5e39137e6eef4cfce8071a84", "score": "0.61208653", "text": "public function run() {\n\t\tif (false === $this->visible) {\n\t\t\treturn;\n\t\t}\n\t\techo $this->createButton();\n\t}", "title": "" }, { "docid": "485829068f415692d82b90e72402ab98", "score": "0.6115892", "text": "function display() \n\t{\n\t\tif (!$this->db['connected']) \n\t\t{ \n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$this->logBenchmark('display() {');\n\t\t\n\t\t$this->_saveIEFromItself(\"I'm not laughing.\");\n\t\t\n\t\t$update = '';\n\t\t$h2style = '';\n\t\t$updatesAvailable = $this->_updatesAvailable();\n\t\tif ($updatesAvailable && !$this->cfg['update']['dismissed'])\n\t\t{\n\t\t\t$update = \"<a href=\\\"?uptodate\\\" class=\\\"update-btn\\\"><span>Update\".(($updatesAvailable > 1) ? 's' : '').\" Available</span></a>\";\n\t\t\t$h2style = ' style=\"visibility: hidden;\"';\n\t\t}\n\t\t\n\t\t$header = \"<div id=\\\"header-container\\\">\\r\";\n\t\t$header .= \"\\t<div id=\\\"header\\\"\";\n\t\t$header .= ($this->cfg['preferences']['singleColumn']) ? ' style=\"width: '.($this->cfg['preferences']['singleColumnWidth'] - 72).'px;\"' : '';\n\t\t$header .= \">\\r\";\n\t\t$header .= \"\\t\\t<h1><a href=\\\"{$this->cfg['installDir']}/\\\" class=\\\"refresh\\\">MINT</a></h1>\\r\";\n\t\t$header .= \"\\t\\t<h2{$h2style}>A Fresh Look at Your Site</h2>\\r\";\n\t\t$header .= \"\\t\\t{$update}\\r\";\n\t\t$header .= \"\\t\\t<div class=\\\"panes\\\">\\r\\t\\t\\t<div>\\r\\t\\t\\t\\tPanes: &nbsp; \\r\\t\\t\\t\\t<span id=\\\"pane-list\\\">\";\n\t\t\n\t\t$js = \"<script type=\\\"text/javascript\\\" language=\\\"javascript\\\">\\r\";\n\t\t$js .= \"// <![CDATA[\\r\";\n\t\t$js .= \"SI.Mint.panes = [\";\n\t\t\n\t\t$html = '';\n\t\t$html .= '<div id=\"pane-container\">';\n\t\tforeach ($this->cfg['preferences']['paneOrder']['enabled'] as $paneId) \n\t\t{\n\t\t\t$pepperId\t= $this->cfg['panes'][$paneId]['pepperId'];\n\t\t\t$paneName\t= $this->cfg['panes'][$paneId]['name'];\n\t\t\t$tabs\t\t= $this->cfg['panes'][$paneId]['tabs'];\n\t\t\tif (isset($this->pepper[$pepperId]))\n\t\t\t{\n\t\t\t\t$pepper \t= $this->pepper[$pepperId];\n\t\t\t\t\n\t\t\t\tif (!is_object($pepper))\n\t\t\t\t{\n\t\t\t\t\t$this->logError('Could not load \"'.$paneName.'\" pane.');\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$header .= \"\\r\\t\\t\\t\\t\\t<a href=\\\"#pane-$paneId\\\" onclick=\\\"SI.Scroll.to(this.href.replace(/^[^#]*#/,'')); return false;\\\">$paneName</a> &nbsp; \";\n\t\t\t\t$js .= \"$paneId,\";\n\t\t\t\t\n\t\t\t\t$html .= \"<div id=\\\"pane-$paneId\\\" class=\\\"pane\\\">\\r\";\n\t\t\t\t$html .= \"\\t<h1>$paneName</h1>\\r\";\n\t\t\t\t$html .= \"\\t<ul class=\\\"tabs\\\">\";\n\t\t\t\t\n\t\t\t\t$active_tab = (isset($_COOKIE[\"MintPane$paneId\"]) && isset($tabs[$_COOKIE[\"MintPane$paneId\"]]))?$_COOKIE[\"MintPane$paneId\"]:0;\n\t\t\t\t$tab_count = count($tabs);\n\t\t\t\tfor ($j = 0; $j < $tab_count; $j++) \n\t\t\t\t{\n\t\t\t\t\t$classes = array();\n\t\t\t\t\tif ($j == $active_tab)\n\t\t\t\t\t{\n\t\t\t\t\t\t$classes[] = 'active';\n\t\t\t\t\t}\n\t\t\t\t\tif ($tab_count == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$classes[] = 'only-child';\n\t\t\t\t\t}\n\t\t\t\t\telse if ($j == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$classes[] = 'first-child';\n\t\t\t\t\t}\n\t\t\t\t\telse if ($j == $tab_count - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$classes[] = 'last-child';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$class = (!empty($classes))?' class=\"'.join(' ', $classes).'\"':'';\n\t\t\t\t\t$html .= \"<li$class><a href=\\\"#\\\" onclick=\\\"SI.Mint.loadTab($paneId,this); SI.Cookie.set('MintPane$paneId',$j); return false;\\\">{$tabs[$j]}</a></li>\";\n\t\t\t\t}\n\t\t\t\t$html .= \"</ul>\\r\";\n\t\t\t\t$html .= \"<div id=\\\"pane-$paneId-content\\\" class=\\\"content\\\">\\r<div class=\\\"content-container\\\">\\r\";\n\t\t\t\t$html .= $pepper->onDisplaySupplemental($paneName);\n\t\t\t\t$scroll_class = (in_array($paneName, $pepper->oddPanes)) ? 'scroll-inline' : 'scroll';\n\t\t\t\t\n\t\t\t\t$this->logBenchmark('display('.$pepper->info['pepperName'].' : '.$paneName.' : '.$tabs[$active_tab].') {');\n\t\t\t\t$pane_html = ($this->cfg['preferences']['staggerPanes']) ? '&nbsp;' : $pepper->onDisplay($paneName, $tabs[$active_tab]);\n\t\t\t\t$this->logBenchmark('}');\n\t\t\t\t\n\t\t\t\tif (strpos($pane_html, '<ul class=\"filters\">'))\n\t\t\t\t{\n\t\t\t\t\t$scroll_class .= ' scroll-filters';\n\t\t\t\t}\n\t\t\t\tif (strpos($pane_html, 'class=\"search-form\"'))\n\t\t\t\t{\n\t\t\t\t\t$scroll_class .= ' scroll-form';\n\t\t\t\t}\n\t\t\t\t$html .= ($this->cfg['preferences']['fixHeight'])?\"<div class=\\\"$scroll_class\\\">$pane_html</div>\\r\":$pane_html;\n\t\t\t\t\n\t\t\t\t$html .= \"</div>\\r\";\n\t\t\t\t$html .= \"</div>\\r\"; // content-container\n\t\t\t\t$html .= \"\\t<div class=\\\"footer\\\">\\r\";\n\t\t\t\t$html .= \"\\t\\t<div></div>\\r\";\n\t\t\t\t$html .= \"\\t</div>\\r\";\n\t\t\t\t$html .= \"</div>\\r\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$html .= '</div>';\n\t\t\n\t\t$header = preg_replace('/ &nbsp; $/','',$header);\n\t\t$header .= \"\\r\\t\\t\\t\\t</span>\\r\\t\\t\\t</div>\\r\\t\\t\\t<ul id=\\\"page-list\\\" class=\\\"pages\\\">\\r\";\n\t\tif ($this->cfg['mode'] != 'client' || $this->isLoggedIn())\n\t\t{\n\t\t\t$header .= \"\\t\\t\\t\\t<li class=\\\"first-child\\\"><a href=\\\"?preferences\\\">Preferences</a></li>\\r\";\n\t\t\t$header .= \"\\t\\t\\t\\t<li class=\\\"last-child\\\"><a href=\\\"?logout\\\">Logout</a></li>\\r\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$header .= \"\\t\\t\\t\\t<li class=\\\"only-child\\\"><a href=\\\"?preferences\\\">Login</a></li>\\r\";\n\t\t}\n\t\t\n\t\t$header .= \"\\t\\t\\t</ul>\\r\\t\\t</div>\\r\";\n\t\t$header .= \"\\t</div>\\r\";\n\t\t$header .= \"</div>\\r\\r\";\n\t\t\n\t\t$js = preg_replace('/,$/','',$js);\n\t\t$js .= \"];\\r\";\n\t\t$js .= \"// ]]>\\r\";\n\t\t$js .= \"</script>\\r\";\n\t\t\n\t\t$after = '';\n\t\tforeach($this->pepper as $pepper)\n\t\t{\n\t\t\t$after .= $pepper->onAfterDisplay();\n\t\t}\n\t\t\n\t\tif (!empty($this->errors['list'])) \n\t\t{\n\t\t\t$header .= \"<div class=\\\"notice\\\">\".$this->getFormattedErrors().\"</div>\";\n\t\t}\n\t\t\n\t\t$html = $header.$html.$js.$after;\n\t\t\n\t\t$this->logBenchmark('}');\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "2ff9b20cacc7bada019f2c961deece9c", "score": "0.60969204", "text": "public static function display() {\n include WEBPEXPRESS_PLUGIN_DIR . '/lib/options/page.php';\n }", "title": "" }, { "docid": "645d3cd6f49c2a53ed8c3a4c653b6a63", "score": "0.60950565", "text": "public function main()\n {\n $fieldsets = [];\n $fieldsets['Character encoding'] = $this->getDestEncodingSelect();\n $fieldsets['Update Static Info Tables'] = $this->handleUpdateStaticInfoTables();\n\n $content = '';\n $content .= '<form action=\"'.htmlspecialchars(\\Sys25\\RnBase\\Utility\\Link::linkThisScript()).'\" method=\"post\">';\n foreach ($fieldsets as $legend => $fieldset) {\n $content .= '<fieldset>';\n if ($legend && !is_numeric($legend)) {\n $content .= '<legend><strong>&nbsp;'.$legend.'&nbsp;</strong></legend>';\n }\n $content .= $fieldset;\n $content .= '</fieldset>';\n $content .= '<p><br /></p>';\n }\n\n $content .= '<p><input type=\"submit\" /></p>';\n $content .= '</form>';\n\n return $content;\n }", "title": "" }, { "docid": "46c8ed087f87aab14dbe5418ccc836bc", "score": "0.6093893", "text": "public function html()\n {\n //in the future this behaviour can be changed\n $this->parentWidget->toLayout->assignJS('/admin/tools/vendor/ckeditor/ckeditor.js');\n $this->parentWidget->toLayout->assignInlineJS(\n <<<JS\n\t\t\t\tvar \\$flashEditors = function(){\n\t\t\t\t\tfor(var cb in \\$editorAreas){\n\t\t\t\t\t\\$editorAreas[cb]()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( window.addEventListener )\n\t\t\t\t\twindow.addEventListener( 'load', \\$flashEditors, false );\n\t\t\t\telse if ( window.attachEvent )\n\t\t\t\t\twindow.attachEvent( 'onload', \\$flashEditors );\nJS\n );\n\n $this->parentWidget->toLayout->assignInlineJS(\n <<<JS\n\t\t\t\tvar \\$editorAreas = \\$editorAreas || [];\n\t\t\t\t\\$editorAreas.push(function(){CKEDITOR.replace('{$this->parentWidget->container}')});\nJS\n ,\n false\n );\n return '';\n }", "title": "" }, { "docid": "5b6734fec60081726eda4c16962e9ae3", "score": "0.60877794", "text": "function editor()\n\t{\n\t\tglobal $we_responseText,$we_JavaScript, $we_responseTextType;\n\t\tif($_REQUEST[\"we_cmd\"][0] == \"save_document\"){\n\t\t\t$we_responseText = $l_we_class[\"response_save_ok\"];\n\t\t\t$we_JavaScript = \"\";\n\t\t\t$this->save();\n\t\t\t$we_responseText = sprintf($we_responseText,$this->Path);\n\t\t\t$we_responseTextType = WE_MESSAGE_NOTICE;\n\t\t\treturn \"we_templates/we_editor_save.inc.php\";\n\t\t}\n\t\tswitch($this->EditPageNr){\n\t\t\tcase WE_EDITPAGE_PROPERTIES:\n\t\t\tcase WE_EDITPAGE_WORKSPACE:\n\t\t\treturn \"we_templates/we_editor_properties.inc.php\";\n\t\t\tcase WE_EDITPAGE_INFO:\n\t\t\treturn \"we_modules/object/we_editor_info_object.inc.php\";\n\t\t\tcase WE_EDITPAGE_CONTENT:\n\t\t\treturn \"we_modules/object/we_editor_contentobject.inc.php\";\n\t\t\tdefault:\n\t\t\t$this->EditPageNr = WE_EDITPAGE_PROPERTIES;\n\t\t\t$_SESSION[\"EditPageNr\"] = WE_EDITPAGE_PROPERTIES;\n\t\t\treturn \"we_templates/we_editor_properties.inc.php\";\n\t\t}\n\t}", "title": "" }, { "docid": "e001640fcdd3ad8acfb714e07ebf62c0", "score": "0.6081121", "text": "protected function outputHTML() {\r\n echo new \\view\\components\\ErrorMessage(array(\r\n \"errorMessage\" => $this->errorMessage\r\n ));\r\n echo new \\view\\components\\ResultMessage(array(\r\n \"resultMessage\" => $this->resultMessage\r\n ));\r\n\t\t\r\n\t\techo new \\view\\components\\KontaktOsobeForm(array(\r\n\t\t\t\"postAction\" => \\route\\Route::get('d3')->generate(array(\r\n\t\t\t\t\"controller\" => 'ozsn',\r\n\t\t\t\t\"action\" => 'modifyContact'\r\n\t\t\t)) . \"?id=\" . $this->kontakt->idKontakta,\r\n\t\t\t\"submitButtonText\" => \"Spremi promjene\",\r\n\t\t\t\"kontakt\" => $this->kontakt,\r\n\t\t\t\"sponzori\" => $this->sponzori,\r\n\t\t\t\"tvrtke\" => $this->tvrtke,\r\n\t\t\t\"mediji\" => $this->mediji,\r\n\t\t\t\"mobiteli\" => $this->mobiteli,\r\n\t\t\t\"mailovi\" => $this->mailovi\r\n\t\t));\t\t\r\n }", "title": "" }, { "docid": "a4b41b172adf0c698787041549f01565", "score": "0.60340744", "text": "public function render() {\n\t\t$settings = array(\n\t\t\t'Sprites' => array(\n\t\t\t\t'create' => IconUtility::getSpriteIconClasses('actions-edit-add'),\n\t\t\t\t'destroy' => IconUtility::getSpriteIconClasses('actions-edit-delete'),\n\t\t\t\t'edit' => IconUtility::getSpriteIconClasses('actions-document-open'),\n\t\t\t\t'run' => IconUtility::getSpriteIconClasses('extensions-df_tools-run'),\n\t\t\t\t'refresh' => IconUtility::getSpriteIconClasses('actions-system-refresh'),\n\t\t\t\t'error' => IconUtility::getSpriteIconClasses('status-dialog-error'),\n\t\t\t\t'warning' => IconUtility::getSpriteIconClasses('status-dialog-warning'),\n\t\t\t\t'information' => IconUtility::getSpriteIconClasses('status-dialog-information'),\n\t\t\t\t'unknown' => IconUtility::getSpriteIconClasses('actions-system-help-open'),\n\t\t\t\t'ok' => IconUtility::getSpriteIconClasses('status-dialog-ok'),\n\t\t\t\t'hide' => IconUtility::getSpriteIconClasses('actions-edit-hide'),\n\t\t\t\t'unhide' => IconUtility::getSpriteIconClasses('actions-edit-unhide'),\n\t\t\t\t'showPage' => IconUtility::getSpriteIconClasses('actions-document-view'),\n\t\t\t\t'comment' => IconUtility::getSpriteIconClasses('actions-edit-localize-status-low'),\n\t\t\t),\n\t\t\t'Settings' => array(\n\t\t\t\t'destroyWindowFile' => '../' . ExtensionManagementUtility::siteRelPath('df_tools') .\n\t\t\t\t\t'/Resources/Public/Templates/destroyWindow.html',\n\t\t\t),\n\t\t);\n\n\t\t$this->getPageRenderer()->addInlineSettingArray('DfTools', $settings);\n\n\t}", "title": "" }, { "docid": "0e069382131fcc699065f717ffa873f5", "score": "0.6007107", "text": "public function page()\n {\n ob_start();\n ?>\n <div id=\"myhome-importer\">\n <demo-importer url=\"<?php echo esc_url(admin_url('admin-post.php')); ?>\"\n :demos='<?php echo esc_attr(json_encode($this->demos)); ?>'\n :translations='<?php echo esc_attr($this->get_strings()); ?>'></demo-importer>\n </div>\n <?php\n echo ob_get_clean();\n }", "title": "" }, { "docid": "88c2d54f641587c872b0d193945ba8c1", "score": "0.6005472", "text": "public function execute() {\n\t\t$this->html( 'headelement' ); ?>\n \n \t\n\t \t<div class=\"grid clearfix\"> \n\t \t\n\t\t \t<!-- Outputs a message to a user about new messages on their talk page. -->\n\t\t\t<?php if ( $this->data['newtalk'] ) { ?>\n\t\t\t\t<div class=\"usermessage\">\n\t\t\t\t\t<?php $this->html( 'newtalk' ) ?>\n\t\t\t\t</div>\n\t\t\t<?php } ?>\n\t\t\t\n\t\t\t<!-- Outputs a wiki's sitenotice -->\n\t\t\t<?php if ( $this->data['sitenotice'] ) { ?>\n\t\t\t\t<div id=\"siteNotice\">\n\t\t\t\t\t<?php $this->html( 'sitenotice' ); ?>\n\t\t\t\t</div>\n\t\t\t<?php } ?>\n\t\t\t\n\t\t\t<!-- Output list of personal tools for user -->\n\t\t\t<div class=\"tools-wrapper clearfix\">\n\t\t\t\t<ul class=\"tools-sidebar clearfix\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\t$varTools = $this->getPersonalTools();\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach ( $varTools as $key => $item ) {\n\t\t\t\t\t\t\techo $this->makeListItem( $key, $item );\n\t\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t\n\t\t\t\n\t\t\t<!-- Output logo -->\n\t\t\t<div class=\"grid-unit\">\n\t\t\t\t<a class=\"logo\" href=\"/\">\n\t\t\t\t\t<div>TransparencyX</div>\t\n\t\t\t\t</a>\n\t\t\t</div>\n\t\n\n\t\t\t<!-- Output sidebar links as header navigation -->\n\t\t\t<?php \n\t\t\t\t/* Splice the 'tools' box from the sidebar array, leaving only the 'navigation' box to be output */\n\t\t\t\t$sideBarBoxes = $this->getSidebar();\n\t\t\t\tarray_splice($sideBarBoxes, 1, 1); \n\t\t\t\tforeach ( $sideBarBoxes as $boxName => $box ) { ?>\n\t\t\t\t<div id=\"<?php echo Sanitizer::escapeId( $box['id'] ) ?>\"<?php echo Linker::tooltip( $box['id'] ) ?>>\n\t\t\t\t\t\t\t\t\n\t\t\t\t<?php\n\t\t\t\t\tif ( is_array( $box['content'] ) ) { ?>\n\n\t\t\t\t<div class=\"grid-main nav-header\">\t\t\t\t\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tforeach ( $box['content'] as $key => $item ) {\n\t\t\t\t\t\t\t\t\techo $this->makeListItem( $key, $item );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\n\t\t\t\t\t</ul>\t\t\t\n\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t<?php\n\t\t\t\t} else {\n\t\t\t\t\techo $box['content'];\n\t\t\t\t}\n\t\t\t} ?>\n\n\n\t\t\t\n\t\t\t<div class=\"grid-unit\">\n\t\t\t\t<!-- Search -->\n\t\t\t\t<form id=\"searchform\" action=\"<?php $this->text( 'wgScript' ); ?>\">\n\t\t\t\t\t<input type=\"hidden\" name=\"title\" value=\"<?php $this->text( 'searchtitle' ) ?>\" />\n\t\t\t\t\t\n\t\t\t\t\t<!-- Text field for query input -->\n\t\t\t\t\t<!-- makeSearchInput takes an array of html attributes that MediaWiki then uses to generate the input -->\n\t\t\t\t\t<?php echo $this->makeSearchInput( array( \n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'id' => 'searchInput' ) ); ?>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t\t\n\t\t\t<!-- Grid row 2 -->\n\t\t\t<div class=\"grid-unit grid-clear\">\n\t\t\t\t<div id=\"toc-sidebar\">\n\t\t\t\t\t<!-- Table of contents is placed here via javascript -->\n\t\t\t\t</div>\t\t\t\t\n\t\t\t</div>\n\t\t\t\t\t\t\n\t\t\t<div class=\"grid-main\">\n\t\t\t\t<div>\n\t\t\t\t \t<h1 id=\"firstHeading\" class=\"firstHeading\">\n\t\t\t\t \t\t<?php $this->html( 'title' ) ?>\n\t\t\t \t\t</h1>\n\t\t\t \t\t\n\t\t\t \t\t<!-- Subtitle -->\n\t\t\t \t\t<?php if ( $this->data['subtitle'] ) { ?>\n\t\t\t\t \t\t<div id=\"contentSub\">\n\t\t\t\t\t \t\t<?php $this->html( 'subtitle' ); ?>\n\t\t\t\t \t\t</div>\n\t\t\t \t\t<?php } ?>\t\n\t\t\t \t\t\n\t\t\t\t \t<div class=\"content-body\">\n\t\t\t\t \t\t<div class=\"content-text\">\n\t\t\t\t \t\t\t<?php $this->html( 'bodytext' ) ?>\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t</div>\t\t\t \t\t\n\t\t\t\t \t\t\n\t\t\t\t \t\t<!-- Output categories -->\n\t\t\t\t \t\t<?php $this->html( 'catlinks' ); ?>\n\t\t\t\t \t\t\n\t\t\t\t \t\t<?php $this->html( 'dataAfterContent' ); ?>\n\t\t\t\t \t</div>\t\n\t\t \t\t</div>\n\t \t\t</div>\n\t \t\t\n\t \t\t<!-- Content actions sidebar -->\n\t \t\t<div class=\"grid-unit actions-sidebar\">\n\t \t\t\t<ul>\n\t\t\t\t\t<?php\n\t\t\t\t\t\tforeach ( $this->data['content_actions'] as $key => $tab ) {\n\t\t\t\t\t\t\techo $this->makeListItem( $key, $tab );\n\t\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t\t<li><a href=\"./Special:Upload\">Upload a file</a></li>\n\t\t\t\t</ul>\n\t \t\t</div>\n\t\t </div> <!-- end grid -->\n\t\t \n\t\t \n\t\t <script type=\"text/javascript\">\n\t\t \t/* Move the table of contents from the body to the sidebar */\n\t\t var toc = document.getElementById('toc');\n\t\t var toc_holder = document.getElementById('toc-sidebar');\n\t\t if(toc && toc_holder){\n\t\t toc.parentNode.removeChild(toc);\n\t\t toc_holder.appendChild(toc);\n\t\t }\n\t\t \n\t\t /* Move the upload file link from the toolbar to the actions sidebar */\n\t\t \n\t\t</script>\n<?php $this->printTrail(); ?>\n</body>\n</html><?php\n\t}", "title": "" }, { "docid": "43f664bfacd83d79c24129882920cdd5", "score": "0.59922117", "text": "public function showPreviewInBrowser()\r\n\t{\r\n\t\t$this->redirect($this->getPreviewLink());\r\n\t}", "title": "" }, { "docid": "6df0e997c3e6a8803daf25bc2ec3c8e8", "score": "0.5972639", "text": "public function show()\n {\n $this->load();\n print $this->html;\n }", "title": "" }, { "docid": "aa80ecef27fcfd16de945f858793635d", "score": "0.5954129", "text": "public function execute() {\n\t\tglobal $wgOut, $wgJsMimeType;\n\t\t$this->html( 'headelement' );\n?><div id=\"globalWrapper\"><table width=\"100%\"><tr><td align=\"center\">\n<div id=\"content\" <?php $this->html(\"specialpageattributes\") ?>>\n\n<?php\n\t// Sidebar tree\n\t$article = new Article( Title::newFromText( 'Wholistic Panel', NS_TEMPLATE ) );\n\t$content = $article->getPage()->getContent();\n\techo $wgOut->parse( is_object( $content ) ? $content->getNativeData() : $content );\n?>\n\n\t<a id=\"top\"></a>\n\t<?php if($this->data['sitenotice']) { ?><div id=\"siteNotice\"><?php $this->html('sitenotice') ?></div><?php } ?>\n\n\t<h1 id=\"firstHeading\" class=\"firstHeading\"><?php $this->html('title') ?></h1>\n\t<div id=\"bodyContent\">\n\t\t<h3 id=\"siteSub\"><?php $this->msg('tagline') ?></h3>\n\t\t<div id=\"contentSub\"<?php $this->html('userlangattributes') ?>><?php $this->html('subtitle') ?></div>\n<?php if($this->data['undelete']) { ?>\n\t\t<div id=\"contentSub2\"><?php $this->html('undelete') ?></div>\n<?php } ?><?php if($this->data['newtalk'] ) { ?>\n\t\t<div class=\"usermessage\"><?php $this->html('newtalk') ?></div>\n<?php } ?><?php if($this->data['showjumplinks']) { ?>\n\t\t<div id=\"jump-to-nav\"><?php $this->msg('jumpto') ?> <a href=\"#column-one\"><?php $this->msg('jumptonavigation') ?></a>, <a href=\"#searchInput\"><?php $this->msg('jumptosearch') ?></a></div>\n<?php } ?>\n\t\t<!-- start content -->\n<?php $this->html('bodytext') ?>\n\t\t<!-- end content -->\n\t\t<?php if($this->data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?>\n\t\t<div class=\"visualClear\"></div>\n\t</div>\n</div>\n</td></tr></table></div>\n<div class=\"visualClear\"></div>\n\n<?php\n\t\t// Closing scripts and elements\n\t\techo \"<script type=\\\"$wgJsMimeType\\\"> if ( window.isMSIE55 ) fixalpha(); </script>\\n\";\n\t\t$this->printTrail();\n\t\techo \"\\n</body>\\n</html>\\n\";\n\t}", "title": "" }, { "docid": "4a0d5123f7a3c43b6c81461240599e21", "score": "0.59510845", "text": "public function view() {\n $this->renderRemotePage('');\n }", "title": "" }, { "docid": "4f17b6b9f1ead01b8c7657fcd6b76dbc", "score": "0.5950859", "text": "protected function uploadHTML() {\n echo $this->uploadHTML;\n }", "title": "" }, { "docid": "0cf4fd96748059cf0f5a0af0350aabc2", "score": "0.59505385", "text": "public function saveHTML () {}", "title": "" }, { "docid": "ea575d2e11a2e01b66d43903faefa925", "score": "0.593835", "text": "public function getEditorHTML () { return $this->createHidden(); }", "title": "" }, { "docid": "dba310ad5b20f6e1b1c798f3a93b3add", "score": "0.5936682", "text": "protected function main_content() {\n\t\t$steps = $this->get_steps_data();\n\t\t$this->license_box( $steps['license'] );\n\t\tif ( isset( $steps['plugin'] ) ) {\n\t\t\t$this->show_plugin_install( $steps['plugin'] );\n\t\t}\n\t\t$this->show_app_install( $steps['import'] );\n\t\t$this->show_page_links( $steps['complete'] );\n\t}", "title": "" }, { "docid": "daf72af92f5a25a45cfb3dd4509f5ba7", "score": "0.5927546", "text": "public function runImpl()\n {\n return $this->render(\n $this->viewFile,\n [\n 'title' => $this->title,\n ]\n );\n }", "title": "" }, { "docid": "e605bae20e85096e73dd298049374e53", "score": "0.59020567", "text": "function auto_run()\n {\n \t//-----------------------------------------\n \t// Require the HTML and language modules\n \t//-----------------------------------------\n \t\n\t\t$this->ipsclass->load_language('lang_help');\n \t$this->ipsclass->load_template('skin_help');\n \t\n \t$this->base_url = $this->ipsclass->base_url;\n \t\n \t//-----------------------------------------\n \t// What to do?\n \t//-----------------------------------------\n \t\n \tswitch($this->ipsclass->input['CODE'])\n \t{\n \t\tcase '01':\n \t\t\t$this->show_section();\n \t\t\tbreak;\n \t\tcase '02':\n \t\t\t$this->do_search();\n \t\t\tbreak;\n \t\tdefault:\n \t\t\t$this->show_titles();\n \t\t\tbreak;\n \t}\n \t\n \t//-----------------------------------------\n \t// If we have any HTML to print, do so...\n \t//-----------------------------------------\n \t\n \t$this->ipsclass->print->add_output(\"$this->output\");\n $this->ipsclass->print->do_output( array( 'TITLE' => $this->page_title, 'JS' => 0, 'NAV' => $this->nav ) );\n \t}", "title": "" }, { "docid": "95402f9f6e9d6a93e86df56e4aa029b9", "score": "0.58928216", "text": "private function DisplayEmbedCode()\n\t{\tif ((int)$this->data['width'] && $this->data['height'])\n\t\t{\techo '<form id=\"mmEmbedForm\" onsubmit=\"return false;\"><label>Your embed code</label><textarea onclick=\"this.select();\">', $this->multimedia->IFrameEmbedCode($this->data), '</textarea><br /></form><div class=\"clear\"></div>';\n\t\t}\n\t}", "title": "" }, { "docid": "3980614e882690684df0dc37bf500c29", "score": "0.5891743", "text": "function execute() {\n\t\tglobal $wgRequest, $wgUser;\n\t\t$this->skin = $skin = $this->data['skin'];\n\t\t$action = $wgRequest->getText( 'action' );\n\n\t\t//Load skinlib providing additional feature like halomenu quicklinks etc.\n\t\trequire_once(\"ontoskin3/includes/OntoSkin3Lib.php\");\n\t\t//create smwh_Skin Object, which provides functions for menu, quicklings, tabs\n\t\t$this->smwh_Skin = new SMWH_Skin( $this, $action );\n\n\t\tglobal $wgOut;\n\t\t$wgOut->addModules( 'skins.ontoskin3.styles' );\n\n\t\t// Suppress warnings to prevent notices about missing indexes in $this->data\n\t\twfSuppressWarnings();\n\t\t?>\n<!DOCTYPE html>\n<html lang=\"<?php $this->text( 'lang' ) ?>\" dir=\"<?php $this->text( 'dir' ) ?>\">\n\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"<?php $this->text( 'mimetype' ) ?>; charset=<?php $this->text( 'charset' ) ?>\" />\n\t\t<?php $this->html( 'headlinks' ) ?>\n\t\t<title><?php $this->text( 'pagetitle' ) ?></title>\n\t\t<?php $this->html( 'csslinks' ) ?>\n\n\t\t<!--[if lt IE 7]><script type=\"<?php $this->text( 'jsmimetype' ) ?>\"\n\t\t\tsrc=\"<?php $this->text( 'stylepath' ) ?>/common/IEFixes.js?<?php echo $GLOBALS['wgStyleVersion'] ?>\"></script>\n\t\t<meta http-equiv=\"imagetoolbar\" content=\"no\" /><![endif]-->\n\n\t\t<?php print Skin::makeGlobalVariablesScript( $this->data ); ?>\n\n\t\t<!-- <script type=\"<?php $this->text( 'jsmimetype' ) ?>\" src=\"<?php $this->text( 'stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>\"></script> -->\n\n\t\t<?php $this->html( 'headscripts' ) ?>\n\t\t<?php if ( $this->data['jsvarurl'] ) { ?>\n\t\t\t<script type=\"<?php $this->text( 'jsmimetype' ) ?>\" src=\"<?php $this->text( 'jsvarurl' ) ?>\"><!-- site js --></script>\n\t\t<?php } ?>\n\t\t<?php\n\t\t\tif ( $this->data['pagecss'] ) { ?>\n\t\t\t\t<style type=\"text/css\"><?php $this->html( 'pagecss' ) ?></style>\n\t\t<?php }\n\t\t\tif ( $this->data['usercss'] ) { ?>\n\t\t\t\t<style type=\"text/css\"><?php $this->html( 'usercss' ) ?></style>\n\t\t<?php }\n\t\t\tif ( $this->data['userjs'] ) { ?>\n\t\t\t\t<script type=\"<?php $this->text( 'jsmimetype' ) ?>\" src=\"<?php $this->text( 'userjs' ) ?>\"></script>\n\t\t<?php }\n\t\t\tif ( $this->data['userjsprev'] ) { ?>\n\t\t\t\t<script type=\"<?php $this->text( 'jsmimetype' ) ?>\"><?php $this->htmgl( 'userjsprev' ) ?></script>\n\t\t<?php }\n\t\t\tif ( $this->data['trackbackhtml'] )\n\t\t\t\tprint $this->data['trackbackhtml'];\n\t\t?>\n\t\t <!-- hide browser'check warning -->\n <script language=\"javascript\" type=\"text/javascript\">\n function hideDiv()\n {\n var divstyle = new String();\n divstyle = document.getElementById(\"smw_browserCheck\").style.display;\n if(divstyle.toLowerCase()==\"block\" || divstyle == \"\")\n {\n document.getElementById(\"smw_browserCheck\").style.display = \"none\";\n }\n else\n {\n document.getElementById(\"smw_browserCheck\").style.display = \"block\";\n } \n\t\t\t <?php\n setcookie(\"BrowserWarning\",\"true\",time()+(3600*24));\n ?>\n\t\t\t }\n </script> \n\t</head>\n\t<body<?php if ( $this->data['body_ondblclick'] ) { ?> ondblclick=\"<?php $this->text( 'body_ondblclick' ) ?>\"<?php } ?>\n\t<?php if ( $this->data['body_onload'] ) { ?>\n\t\tonload=\"<?php $this->text( 'body_onload' ) ?>\"\n\t<?php } ?>\n\t\tclass=\"mediawiki <?php $this->text( 'dir' ) ?> <?php $this->text( 'pageclass' ) ?> <?php $this->text( 'skinnameclass' ) ?>\">\n\t\t<!-- globalWrapper -->\n\t\t<div id=\"globalWrapper\">\n\t\t\t<!-- wrapper -->\n\t\t\t<div id=\"wrapper\" class=\"clearfix\">\n\t\t\t\t<?php if ( $wgRequest->getText( 'page' ) != \"plain\" ) : ?>\n\t\t\t\t<!-- header -->\n\t\t\t\t<div id=\"smwh_head\">\n\t\t\t\t\t<div class=\"smwh_center\">\n\t\t\t\t\t\t<!-- logo -->\n\t\t\t\t\t\t<div id=\"smwh_logo\">\n\t\t\t\t\t\t\t<a href=\"<?php echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] ) ?>\"\n\t\t\t\t\t\t\t\t<?php echo $skin->tooltipAndAccesskey( 'p-logo' ) ?>>\n\t\t\t\t\t\t\t\t<img src=\"<?php $this->text( 'logopath' ) ?>\"/>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<!-- /logo -->\n\t\t\t\t\t\t<!-- personalbar -->\n\t\t\t\t\t\t<div id=\"smwh_personal\">\n\t\t\t\t\t\t\t<a id=\"personal_expand\" class=\"limited\" href=\"#\">Change view</a>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tforeach ( $this->data['personal_urls'] as $key => $item ) {\n\t\t\t\t\t\t\t\t\t//echo $key;\n\t\t\t\t\t\t\t\t\tif ( !($key == \"login\" || $key == \"anonlogin\" || $key == \"logout\" || $key == \"userpage\") ) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} ?>\n\t\t\t\t\t\t\t\t\t<a id=\"personal_<?php echo $key ?>\"\n\t\t\t\t\t\t\t\t\t\thref=\"<?php echo htmlspecialchars( $item['href'] ) ?>\"<?php echo $skin->tooltipAndAccesskey( 'pt-' . $key ) ?>\n\t\t\t\t\t\t\t\t\t\tclass=\"<?php if ( $item['active'] ) { ?>active<?php }\n\t\t\t\t\t\t\t\t\t\tif ( !empty( $item['class'] ) ) {\n\t\t\t\t\t\t\t\t\t\t\techo htmlspecialchars( $item['class'] );\n\t\t\t\t\t\t\t\t\t\t} ?>\">\n\t\t\t\t\t\t\t\t\t\t<?php echo htmlspecialchars( $item['text'] ) ?>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<!-- /personalbar -->\n\t\t\t\t\t\t<?php echo $this->smwh_Skin->buildPersonalQuickLinks(); ?>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!-- /header -->\n\t\t\t\t<!-- menu -->\n\t\t\t\t<div id=\"smwh_menu\" class=\"clearfix\">\n\t\t\t\t\t<div class=\"smwh_center\">\n\t\t\t\t\t\t<?php global $tvgIP; if ( isset( $tvgIP ) ) { ?>\n\t\t\t\t\t\t\t<div id=\"smwh_treeviewtoggle\">\n\t\t\t\t\t\t\t\t<img src=\"<?php $this->text( 'stylepath' )?>/<?php $this->text( 'stylename' ) ?>/img/treeview.png\"\n\t\t\t\t\t\t\t\t\talt=\"<?php wfMsg( 'smw_treeviewright' ) ?>\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t<div id=\"home\">\n\t\t\t\t\t\t\t<a href=\"<?php echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] ) ?>\"<?php echo $skin->tooltipAndAccesskey( 'p-logo' ); ?>>\n\t\t\t\t\t\t\t\t<img src=\"<?php $this->text( 'stylepath' ) ?>/<?php $this->text( 'stylename' ) ?>/img/menue_mainpageicon_white.gif\" alt=\"mainpage\"/>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?php echo $this->smwh_Skin->buildMenuHtml(); ?>\n\t\t\t\t\t\t<!-- Search -->\n\t\t\t\t\t\t<?php $this->searchBox(); ?>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!-- /menu -->\n\t\t\t\t<!-- content -->\n\t\t\t\t<div id=\"main\" class=\"shadows smwh_center\">\n\t\t\t\t\t<div id=\"smwh_breadcrumbs\">\n\t\t\t\t\t\t<div id=\"smwh_last_visited\">\n\t\t\t\t\t\t\t<?php $this->msg( 'smw_last_visited' ); ?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id=\"breadcrumb\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<?php\n\t\t\t\t\t// checks the compatibility of the browser and return a warning\n\tfunction getBrowserDetails() {\n\t\t$u_agent = $_SERVER['HTTP_USER_AGENT'];\n\t\t$bname = 'Unknown';\n\t\t$platform = 'Unknown';\n\t\t$version = \"\";\n\n\t\t//platform\n\t\tif ( preg_match( '/linux/i', $u_agent ) ) {\n\t\t\t$platform = 'linux';\n\t\t} elseif ( preg_match( '/macintosh|mac os x/i', $u_agent ) ) {\n\t\t\t$platform = 'mac';\n\t\t} elseif ( preg_match( '/windows|win32/i', $u_agent ) ) {\n\t\t\t$platform = 'windows';\n\t\t}\n\n\t\t// get the name of the useragent \n\t\tif ( preg_match( '/MSIE/i', $u_agent ) && !preg_match( '/Opera/i', $u_agent ) ) {\n\t\t\t$bname = 'Internet Explorer';\n\t\t\t$ub = \"MSIE\";\n\t\t} elseif ( preg_match( '/Firefox/i', $u_agent ) ) {\n\t\t\t$bname = 'Mozilla Firefox';\n\t\t\t$ub = \"Firefox\";\n\t\t} elseif ( preg_match( '/Chrome/i', $u_agent ) ) {\n\t\t\t$bname = 'Google Chrome';\n\t\t\t$ub = \"Chrome\";\n\t\t} elseif ( preg_match( '/Safari/i', $u_agent ) ) {\n\t\t\t$bname = 'Apple Safari';\n\t\t\t$ub = \"Safari\";\n\t\t} elseif ( preg_match( '/Opera/i', $u_agent ) ) {\n\t\t\t$bname = 'Opera';\n\t\t\t$ub = \"Opera\";\n\t\t} elseif ( preg_match( '/Netscape/i', $u_agent ) ) {\n\t\t\t$bname = 'Netscape';\n\t\t\t$ub = \"Netscape\";\n\t\t}\n\n\t\t// get the version number\n\t\t$known = array('Version', $ub, 'other');\n\t\t$pattern = '#(?<browser>' . join( '|', $known ) .\n\t\t\t')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';\n\t\tif ( !preg_match_all( $pattern, $u_agent, $matches ) ) {\n\t\t\t// no matching number just continue\n\t\t}\n\n\t\t// how many we have\n\t\t$i = count( $matches['browser'] );\n\t\tif ( $i != 1 ) {\n\t\t\t//see if version is before or after the name\n\t\t\tif ( strripos( $u_agent, \"Version\" ) < strripos( $u_agent, $ub ) ) {\n\t\t\t\t$version = $matches['version'][0];\n\t\t\t} else {\n\t\t\t\t$version = $matches['version'][1];\n\t\t\t}\n\t\t} else {\n\t\t\t$version = $matches['version'][0];\n\t\t}\n\n\t\t// check if we have a number\n\t\tif ( $version == null || $version == \"\" ) {\n\t\t\t$version = \"?\";\n\t\t}\n\n\t\treturn array(\n\t\t\t'userAgent' => $u_agent,\n\t\t\t'name' => $bname,\n\t\t\t'version' => $version,\n\t\t);\n\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// checks browser's compatibility and return a warning, should the case arise.\n \t\t\t\n\t\t\t\t\t$cookie = $_COOKIE[\"BrowserWarning\"];\n\n\t\t\t\t\tif ( $cookie == \"NULL\" or $cookie == \"\") {\n\t\t\t\t\t\t$ua = getBrowserDetails();\n\t\t\t\t\t\t$version = explode( '.', $ua['version'] );\n\t\t\t\t\t\t$yourbrowser = $ua['name'] . \" \" . $version[0];\n\n\t\t\t\t\t//valid Browsers \n\t\t\t\t\t\t$validBrowser[0][0] = \"Internet Explorer\";\n\t\t\t\t\t\t$validBrowser[0][1] = \"8\";\n\t\t\t\t\t\t$validBrowser[1][0] = \"Mozilla Firefox\";\n\t\t\t\t\t\t$validBrowser[1][1] = \"10\";\n\t\t\t\t\t\t$validBrowser[1][1] = \"11\";\n\t\t\t\t\t\t$validBrowser[2][0] = \"Google Chrome\";\n\t\t\t\t\t\t$validBrowser[2][1] = \"18\";\n\n\t\t\t\t\t\t// IE8\n\t\t\t\t\t\tif ( $ua['name'] == $validBrowser[0][0] ) {\n\t\t\t\t\t\t\tif ( $version[0] == $validBrowser[0][1] ) {\n\t\t\t\t\t\t\t\t$valid = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// FF7/8\n\t\t\t\t\t\tif ( $ua['name'] == $validBrowser[1][0] ) {\n\t\t\t\t\t\t\tif ( $version[0] == $validBrowser[1][1] or $version[0] == $validBrowser[1][2] ) {\n\t\t\t\t\t\t\t\t$valid = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//GC 15\n\t\t\t\t\t\tif ( $ua['name'] == $validBrowser[2][0] ) {\n\t\t\t\t\t\t\tif ( $version[0] == $validBrowser[2][1] ) {\n\t\t\t\t\t\t\t\t$valid = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( $valid == false ) { ?>\n\t\t\t\t\t <div id=\"smw_browserCheck\">\n\t\t\t\t\t\t<div style=\"float:left\">Your browser (<?php echo \"$yourbrowser\" ?>) is not supported, we recommend using: IE8, Firefox 10/11 or Google chrome 18</div>\n\t\t\t\t\t\t<a href=\"#\" onclick=\"hideDiv()\"><div id=\"smw_browserCheckClose\"><span>Don't show me again</span><img src=\"<?php $this->text( 'stylepath' )?>/<?php $this->text( 'stylename' ) ?>/img/button_close.png\"></img></div></a>\n\t\t\t\t\t </div>\n\t\t\t\t\t<?php\n\t\t\t\t\t\t} // end browser's check\n\t\t\t\t\t} // end coockie's check\n\t\t\t\t\t?>\n\n\t\t\t\t\t<div id=\"mainpage\">\n\t\t\t\t\t\t<div id=\"smwh_tabs\">\n\t\t\t\t\t\t\t<?php echo $this->smwh_Skin->buildTabs(); ?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?php echo $this->smwh_Skin->buildCreatedBy(); ?>\n\t\t\t\t\t\t<?php endif; // action != 'plainpage' ?>\n\t\t\t\t\t\t<div id=\"column-content\">\n\t\t\t\t\t\t\t<div id=\"content\">\n\t\t\t\t\t\t\t\t<!-- div from mw 1.13 removed 1.15 -->\n\t\t\t\t\t\t\t\t<div id=\"bodyContent\">\n\t\t\t\t\t\t\t\t\t<h3 id=\"siteSub\"><?php $this->msg( 'tagline' ) ?></h3>\n\t\t\t\t\t\t\t\t\t<div id=\"contentSub\"><?php $this->html( 'subtitle' ) ?></div>\n\t\t\t\t\t\t\t\t\t\t<?php if ( $this->data['undelete'] ) { ?>\n\t\t\t\t\t\t\t\t\t\t\t<div id=\"contentSub2\"><?php $this->html( 'undelete' ) ?></div>\n\t\t\t\t\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t\t\t\t\t<?php if ( $this->data['newtalk'] ) { ?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"usermessage\"><?php $this->html( 'newtalk' ) ?></div>\n\t\t\t\t\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t\t\t\t\t<?php if ( $this->data['showjumplinks'] ) { ?>\n\t\t\t\t\t\t\t\t\t\t\t<div id=\"jump-to-nav\"><?php $this->msg( 'jumpto' ) ?>\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"#column-one\"><?php $this->msg( 'jumptonavigation' ) ?></a>, <a href=\"#searchInput\"><?php $this->msg( 'jumptosearch' ) ?></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<?php } ?>\n\t\t\t\t\t\t\t\t\t\t<?php $this->html( 'bodytext' ) ?>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"visualClear\"></div>\n\t\t\t\t\t\t\t\t\t\t<?php if ( $this->data['catlinks'] ) { ?>\n\t\t\t\t\t\t\t\t\t\t\t<div id=\"catlinks\"><?php $this->html( 'catlinks' ) ?></div>\n\t\t\t\t\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t\t\t\t\t<?php if ( $this->data['dataAfterContent'] ) {\n\t\t\t\t\t\t\t\t\t\t\t$this->html( 'dataAfterContent' );\n\t\t\t\t\t\t\t\t\t\t} ?>\n\t\t\t\t\t\t\t\t\t<div class=\"visualClear\"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<?php if ( $wgRequest->getText( 'page' ) != \"plain\" ) : ?>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"visualClear\"></div>\n\t\t\t\t\t<div id=\"smwh_pstats\"> <?php echo $this->smwh_Skin->showPageStats(); ?> </div>\n\t\t\t\t\t<?php endif; // page != 'plain' ?>\n\t\t\t\t\t<?php if ( $wgRequest->getText( 'page' ) != \"plain\" ) : ?>\n\t\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t<!-- /content -->\n\t\t\t</div>\n\t\t\t<!-- /wrapper -->\n\t\t</div>\n\t\t<?php echo $this->smwh_Skin->treeview(); ?>\n\t\t<!-- /globalWrapper -->\n\t\t<!-- footer -->\n\t\t<div id=\"footer\">\n\t\t\t<div class=\"smwh_center\">\n\t\t\t\t<?php echo $this->smwh_Skin->buildQuickLinks(); ?>\n\t\t\t</div>\n\t\t</div>\n\t\t<!-- /footer -->\n\t\t<?php endif; // page != 'plain' ?>\n\t\t<div id=\"ontomenuanchor\"></div>\n\t\t<?php $this->html( 'bottomscripts' ); /* JS call to runBodyOnloadHook */ ?>\n\t\t<?php $this->html( 'reporttime' ) ?>\n\t\t<?php if ( $this->data['debug'] ): ?>\n\t\t\t<!-- Debug output:\n\t\t\t<?php $this->text( 'debug' ); ?>\n\t\t\t-->\n\t\t<?php endif; ?>\n\t</body>\n</html>\n<?php\n\twfRestoreWarnings();\n}", "title": "" }, { "docid": "bfdd63d4b1a66939c2241bef54dc8ae1", "score": "0.5881085", "text": "protected function renderContent() {\n\t\techo '<div class=\"alert-message block-message info\">';\n\t\techo '<p>This is the Hope for Tomorrow development site. As new sections are available, they will appear in the menu above.</p>';\n\t\techo '<p>If you spot any bugs or have a feature request, please enter the details below.<br />You can view updates on your requests <a href=\"https://docs.google.com/a/newicon.net/spreadsheet/ccc?key=0Ape6AGoGde2YdEs2NUlTUzBUZkY4WFVFeE0xZHJlckE\" target=\"_blank\">here</a>.</p></div>';\n\t\techo '<iframe src=\"https://docs.google.com/spreadsheet/embeddedform?formkey=dEs2NUlTUzBUZkY4WFVFeE0xZHJlckE6MQ\" width=\"500\" height=\"850\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" style=\"margin-top: 10px;\">Loading...</iframe>';\n\t}", "title": "" }, { "docid": "f637bb892327fffded23e2e41b2c5e67", "score": "0.5880239", "text": "function html()\n {\n switch($this->output)\n {\n case 'Slideshow':\n return $this->slideshow_html();\n break;\n case 'Static':\n return $this->static_html();\n break;\n case 'Slideshow2':\n default:\n return $this->slideshow2_html();\n break;\n }\n }", "title": "" }, { "docid": "475474985cf7011e49b34144a0b942a9", "score": "0.5877962", "text": "function performIsoCreation()\n {\n $return_button = \"<form method='get' action='main.php' target='_parent'>\n <input type='submit' value='\"._(\"Back\").\"'>\n <input type='hidden' name='plug' value='\".$_GET['plug'].\"'/>\n </form>\";\n\n $dsc = array(0 => array(\"pipe\", \"r\"), 1 => array(\"pipe\", \"w\"), 2 => array(\"pipe\", \"w\"));\n\n /* Get and check command */\n $command= $this->config->get_cfg_value(\"workgeneric\", \"systemIsoHook\");\n if (check_command($command)){\n @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, \"Execute\");\n\n /* Print out html introduction */\n echo ' <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n <html>\n <head>\n <title></title>\n <style type=\"text/css\">@import url(\"themes/default/style.css\");</style>\n <script language=\"javascript\" src=\"include/focus.js\" type=\"text/javascript\"></script>\n </head>\n <body style=\"background: none; margin:4px;\" id=\"body\" >\n <pre>';\n\n /* Open process handle and check if it is a valid process */\n $process= proc_open($command.\" '\".$this->dn.\"'\", $dsc, $pipes);\n if (is_resource($process)) {\n fclose($pipes[0]);\n\n /* Print out returned lines && write JS to scroll down each line */\n while (!feof($pipes[1])){\n $cur_dat = fgets($pipes[1], 1024);\n echo $cur_dat;\n echo '<script language=\"javascript\" type=\"text/javascript\">scrollDown2();</script>' ;\n flush();\n }\n }\n\n /* Get error string && close streams */\n $buffer= stream_get_contents($pipes[2]);\n\n fclose($pipes[1]);\n fclose($pipes[2]);\n echo \"</pre>\";\n\n /* Check return code */\n $ret= proc_close($process);\n if ($ret != 0){\n echo \"<h1 style='color:red'>\"._(\"Creating the image failed. Please see the report below.\").\"</h1>\";\n echo \"<pre style='color:red'>$buffer</pre>\";\n }\n echo $return_button.\"<br>\";\n } else {\n $tmp= \"<h1 style='color:red'>\".sprintf(_(\"Command '%s', specified for ISO creation doesn't seem to exist.\"), $command).\"</h1>\";\n echo $tmp;\n echo $return_button.\"<br>\";\n }\n\n /* Scroll down completly */\n echo '<script language=\"javascript\" type=\"text/javascript\">scrollDown2();</script>' ;\n echo '</body></html>';\n flush();\n exit;\n }", "title": "" }, { "docid": "fbf6838ac63fb484e7fa73d7c4540b13", "score": "0.5876397", "text": "function displayContent() {\n include(\"views/main-html/\".$this->mainHtmlFile);\n exit();\n }", "title": "" }, { "docid": "f428d75560aee1865c0e87422bc8cb32", "score": "0.58733124", "text": "public function present_body() {\r\n\t\t$game = $this->getGame();\r\n\t\t$name = $game->getPlayer();\r\n\r\n\t\t$html = <<<HTML\r\n<div class=\"body\">\r\n<form class=\"newgame\" method=\"post\" action=\"post/index-post.php\">\r\n\t<div class=\"controls\">\r\n\t<p class=\"name\"><label for=\"name\">Name </label><br><input type=\"text\" id=\"name\" name=\"name\" value=\"$name\"></p>\r\n\t<p><select name=\"game\">\r\nHTML;\r\n\r\n\t\tforeach(Games::$games as $id => $g) {\r\n\t\t\t$desc = $g['desc'];\r\n\t\t\t$html .= \"<option value=\\\"$id\\\">$desc</option>\";\r\n\t\t}\r\n\r\n\t\t$html .= <<<HTML\r\n\t\t</select></p>\r\n\t<p><button>Start Game</button></p>\r\nHTML;\r\n\t\tif($game->getMessage() !== null) {\r\n\t\t\t$html .= '<p class=\"message\">' . $game->getMessage() . '</p>';\r\n\t\t}\r\n\r\n\t\t$html .= <<<HTML\r\n\t</div>\r\n</form>\r\n</div>\r\nHTML;\r\n\r\n\t\treturn $html;\r\n\t}", "title": "" }, { "docid": "16d17f74cf554b569db9e7600b953686", "score": "0.5868906", "text": "public function run()\n {\n // Add textarea to the page \n if( $this->target === null )\n {\n list( $name, $id ) = $this->resolveNameID();\n \n if( $this->hasModel() )\n echo CHtml::activeTextArea( $this->model, $this->attribute, $this->htmlOptions );\n else\n echo CHtml::textArea( $name, $this->value, $this->htmlOptions );\n }\n \n // Publish extension assets\n $assets = Yii::app()->getAssetManager()->publish( Yii::getPathOfAlias(\n 'ext.EWYMeditor' ) . '/assets' );\n $cs = Yii::app()->getClientScript();\n $cs->registerScriptFile( $assets . '/jquery.wymeditor.js', \n CClientScript::POS_END );\n \n // Add the plugins to editor\n if( $this->plugins !== array() )\n {\n $this->_addPlugins( $cs, $assets );\n }\n \n $options = CJavaScript::encode( $this->options );\n \n if( $this->target === null )\n {\n $cs->registerScript( 'wym', \"jQuery('#{$id}').wymeditor({$options});\" );\n }\n else\n {\n $cs->registerScript( 'wym', \"jQuery('{$this->target}').wymeditor({$options});\" );\n }\n }", "title": "" }, { "docid": "5b65c9b845566e0b12bceba5c2eee24f", "score": "0.5865394", "text": "function printHTML() \n {\n $this->openBlockHeader(\"Heimdall Transient Event Pipeline\");\n?>\n <center>\n <img src=\"/images/blankimage.gif\" border=0 width='1024px' height='768px'; id=\"candidate\" TITLE=\"Current Candidate\" alt=\"alt\"></br>\n<?\n if ($this->update_required)\n {\n?>\n <font size=\"-1\">image updates every <?echo ($this->callback_freq / 1000).\" seconds\";?></font>\n<?\n }\n?>\n </center>\n<?\n if (!$this->update_required)\n {\n?>\n <script type=\"text/javascript\">\n setTimeout('transient_viewer_request()', 1);\n </script>\n<? } \n\n $this->closeBlockHeader();\n }", "title": "" }, { "docid": "35b4dec9720a8732f5adc27adc221637", "score": "0.5860094", "text": "public function create_admin_page()\n {\n // this shows the actual admin page, we pull in an external file because it is messy to have html in here\n ob_start();\n $apiName = self::getApiActionName();\n require plugin_dir_path(__FILE__) . '/form.phtml';\n $view = ob_get_clean();\n echo $view;\n }", "title": "" }, { "docid": "a93ca8db0797d01b13d19ce6bfe960be", "score": "0.5858387", "text": "public function page_start() {\n\t\techo '<!DOCTYPE html>\n\t\t<html xmlns=\"http://www.w3.org/1999/xhtml\" class=\"wp-toolbar\" lang=\"en-US\">\n\t\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\t\t<meta http-equiv=\"refresh\" content=\"60\">\n\t\t<meta name=\"robots\" content=\"noindex, nofollow\">\n\t\t<title>UpdraftClone</title>\n\t\t<style>\n\n\t\t@-webkit-keyframes rotateIcon {\n\n\t\t\tfrom {\n\t\t\t\t-webkit-transform: rotate(0);\n\t\t\t\t\t\ttransform: rotate(0);\n\t\t\t}\n\t\t\n\t\t\tto {\n\t\t\t\t-webkit-transform: rotate(360deg);\n\t\t\t\t\t\ttransform: rotate(360deg);\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t@keyframes rotateIcon {\n\n\t\t\tfrom {\n\t\t\t\t-webkit-transform: rotate(0);\n\t\t\t\t\t\ttransform: rotate(0);\n\t\t\t}\n\t\t\n\t\t\tto {\n\t\t\t\t-webkit-transform: rotate(360deg);\n\t\t\t\t\t\ttransform: rotate(360deg);\n\t\t\t}\n\t\t\n\t\t}\n\n\t\tbody {\n\t\t\tbackground-color: #EDEDED;\n\t\t\tmargin: 0;\n\t\t\tpadding: 20px;\n\t\t}\n\t\tp {\n\t\t\tpadding: 0;\n\t\t\tmargin: 15px 0;\n\t\t\tline-height: 1.2;\n\t\t}\n\t\tbody:before {\n\t\t\tcontent: \\' \\';\n\t\t\tposition: absolute;\n\t\t\tbackground: #db6939;\n\t\t\tdisplay: block;\n\t\t\theight: 477px;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\tz-index: 1;\n\t\t}\n\t\ta {\n\t\t\tcolor: #ffceb9;\n\t\t}\n\t\t.updraftclone_content_container {\n\t\t\tposition: relative;\n\t\t\tz-index: 2;\n\t\t\tmargin:auto; \n\t\t\tmargin-top:40px; \n\t\t\twidth:80%; \n\t\t\tmax-width: 520px; \n\t\t\ttext-align:center; \n\t\t\tcolor: #ffffff; \n\t\t\tfont-family: Source Sans Pro, Helvetica, Arial, Lucida, sans-serif; \n\t\t\tfont-weight: 300; \n\t\t\tfont-size: 16px;\n\t\t}\n\t\t.updraftclone_logo {\n\t\t\twidth: 50%;\n\t\t}\n\n\t\t.status-box {\n\t\t\tmax-width: 520px;\n\t\t\tmargin: 0 auto;\n\t\t\tbackground: #FFF;\n\t\t\tbox-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);\n\t\t\tcolor: #43322B;\n\t\t}\n\t\tsection.progress {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: -ms-flexbox;\n\t\t\tdisplay: flex;\n\t\t\tposition: relative;\n\t\t}\n\t\t\n\t\t.progress-item {\n\t\t\t-webkit-box-flex: 1;\n\t\t\t\t-ms-flex: 1;\n\t\t\t\t\tflex: 1;\n\t\t\tposition: relative;\n\t\t\tpadding: 10px;\n\t\t\tpadding-bottom: 20px;\n\t\t}\n\n\t\t.progress-item.active {\n\t\t\tfont-weight: bold;\n\t\t}\n\n\t\t.progress-item__bar {\n\t\t\theight: 10px;\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\twidth: 100%;\n\t\t\tleft: 0;\n\t\t}\n\n\t\t.done .progress-item__bar {\n\t\t\tbackground: #43322B;\n\t\t}\n\t\t\n\t\t.active .progress-item__bar {\n\t\t\tbackground: #43322B;\n\t\t\toverflow: hidden;\n\t\t}\n\n\t\t.active .progress-item__bar:before {\n\t\t\tcontent: \\' \\';\n\t\t\tdisplay: block;\n\t\t\twidth: 10px;\n\t\t\theight: 10px;\n\t\t\tposition: absolute;\n\t\t\tbackground: #43322B;\n\t\t\tright: 0;\n\t\t\ttop: 0;\n\t\t\tborder-top: 10px solid #FFF;\n\t\t\tborder-right: 10px solid #FFF;\n\t\t\t-webkit-transform: translateY(-5px) translateX(10px) rotate(45deg);\n\t\t\t\t\ttransform: translateY(-5px) translateX(10px) rotate(45deg);\n\t\t}\n\n\t\tsection.progress:before {\n\t\t\tcontent: \\' \\';\n\t\t\tposition: absolute;\n\t\t\tdisplay: block;\n\t\t\theight: 10px;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\tbox-shadow: 0 4px 14px rgba(0, 0, 0, 0.21);\n\t\t}\n\t\tspan.icon {\n\t\t\tdisplay: block;\n\t\t\tpadding-top: 15px;\n\t\t\tpadding-bottom: 10px;\n\t\t}\n\t\tspan.icon svg {\n\t\t\tdisplay: inline-block;\n\t\t\tmax-width: 28px;\n\t\t\tfill: #C4C4C4;\n\t\t\tcolor: currentColor;\n\t\t}\n\n\t\t.done span.icon svg {\n\t\t\tfill: green;\n\t\t}\n\n\t\t.active span.icon svg {\n\t\t\tfill: #43322B;\n\t\t\t-webkit-animation-name: rotateIcon;\n\t\t\t\t\tanimation-name: rotateIcon;\n\t\t\t-webkit-animation-duration: 1.8s;\n\t\t\t\t\tanimation-duration: 1.8s;\n\t\t\t-webkit-animation-iteration-count: infinite;\n\t\t\t\t\tanimation-iteration-count: infinite;\n\t\t\t-webkit-animation-timing-function: linear;\n\t\t\t\t\tanimation-timing-function: linear;\n\t\t}\n\n\t\t.progress-item:not(.done):not(.active) {\n\t\t\tcolor: #C4C4C4;\n\t\t}\n\t\t.done {\n\t\t\tcolor: green;\n\t\t}\n\n\t\tp.status-description {\n\t\t\tmargin: 0;\n\t\t\tpadding: 20px;\n\t\t\tborder-top: 1px solid #EBEBEB;\n\t\t}\n\n\t\t@media (max-width: 520px) {\n\t\t\t.progress-item:not(.active) {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t\t</style>\n\t\t</head>\n\t\t<body>';\n\t}", "title": "" }, { "docid": "587707b403b9e2bd168bd90bdfca6307", "score": "0.5848691", "text": "public function printHtml() : void;", "title": "" }, { "docid": "95d0328f24ae37c7b8831a9496d974f6", "score": "0.58417296", "text": "public static function navigation_skin_css_edit_dialog(){\n\t\t?>\n\t\t<div id=\"navigation-skin-css-edit-dialog-wrap\" class=\"essential-dialog-wrap\" title=\"<?php _e('Navigation Skin CSS', EG_TEXTDOMAIN); ?>\" style=\"display: none;\">\n\t\t\t<textarea id=\"eg-navigation-skin-css-editor\"></textarea>\n\t\t\t<?php\n\t\t\tdo_action('essgrid_navigation_skin_css_edit_dialog_post');\n\t\t\t?>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "d252c6ca9b3162cbc8f4ee474c4dc347", "score": "0.5840402", "text": "function _mostrar(){\n $html = $this->Cabecera();\n $html .= $this->contenido();\n $html .= $this->Pata();\n echo $html;\n }", "title": "" }, { "docid": "d252c6ca9b3162cbc8f4ee474c4dc347", "score": "0.5840402", "text": "function _mostrar(){\n $html = $this->Cabecera();\n $html .= $this->contenido();\n $html .= $this->Pata();\n echo $html;\n }", "title": "" }, { "docid": "6113ab8eca2e11c28620d49bacfa4bd2", "score": "0.58155453", "text": "function display_pane($disp) {\n\t\tglobal $I2_ARGS,$I2_ROOT,$I2_USER;\n\t\tif( !isset($I2_ARGS[1]) ){\n\t\t\techo \"<!doctype html>\\n\";\n\t\t\techo \"<html>\\n\";\n\t\t\techo \"<head>\\n\";\n\t\t\techo \"<title>CLIodine</title>\\n\";\n\t\t\techo \"<script type=\\\"text/javascript\\\">\\n\";\n\t\t\techo \"var username='{$I2_USER->username}';\\n\";\n\t\t\techo \"var i2root='{$I2_ROOT}';\\n\";\n\t\t\t/*echo \"}\\n\";\n\t\t\techo \"\\n\";\n\t\t\techo \"\\n\";\n\t\t\techo \"\\n\";\n\t\t\techo \"\\n\";\n\t\t\techo \"\\n\";\n\t\t\techo \"\\n\";\n\t\t\techo \"\\n\";\n\t\t\techo \"\\n\";*/\n\t\t\techo \"</script>\\n\";\n\t\t\techo \"<script type='text/javascript' src='\".$I2_ROOT.\"www/js/cliodine.js'></script>\\n\";\n\t\t\techo \"<link href='\".$I2_ROOT.\"www/extra-css/cliodine.css' rel='stylesheet' />\\n\";\n\t\t\techo \"</head>\\n\";\n\t\t\techo \"<body onload=\\\"init()\\\">\\n\";\n\t\t\techo \"<div class='console' id='terminal'>\\n\";\n\t\t\techo \"</div>\\n\";\n\t\t\techo \"</body>\\n\";\n\t\t\techo \"</html>\";\n\t\t} else if ( isset($I2_ARGS[1])) {\n\t\t\tif($this->do_special()) { //handle special stuff\n\t\t\t} else if(get_i2module($I2_ARGS[1])) {\n\t\t\t\ttry {\n\t\t\t\t\t$mod= new $I2_ARGS[1];\n\t\t\t\t\tif($mod instanceOf Module) {\n\t\t\t\t\t\t$cmd=$mod->init_cli();\n\t\t\t\t\t\tif(!$cmd) {\n\t\t\t\t\t\t\techo \"<div>The module \".$I2_ARGS[1].\" is not implemented for CLIodine.<br /></div>\\n\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$str=$mod->display_cli($disp);\n\t\t\t\t\t\t\techo $str.\"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo \"<div>\".$I2_ARGS[1].\": command not found<br /></div>\\n\";\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\techo \"<div>\".$I2_ARGS[1].\": command not found<br /></div>\\n\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\techo \"<div>\".$I2_ARGS[1].\": command not found<br /></div>\\n\";\n\t\t\t}\n\t\t}\n\t\tDisplay::stop_display();\n\t}", "title": "" }, { "docid": "107f9ce19553859294078f34e6871a64", "score": "0.58120376", "text": "function ViewHTML()\n{\n\tstartPortlet();\n\techo \"<table with=90% align=center border=0 cellpadding=5 cellspacing=0 align=center class=cooltable><tr valign=top>\";\n\techo \"<form method=post enctype=\\\"multipart/form-data\\\" action='index.php?module=redirect&page=depot&tab=facter&op=Update'>\";\n\techo \"<input type=\\\"hidden\\\" name=\\\"MAX_FILE_SIZE\\\" value=\\\"30000\\\" />\";\n\techo \"Upload a facter file: <input name=\\\"userfile\\\" type=\\\"file\\\" /><br />\";\n\techo \"<input type=\\\"submit\\\" value=\\\"Upload File\\\" />\";\n\techo \"</td></tr></table></td></tr>\";\n\techo \"</form>\";\n\techo \"</table>\";\n\tfinishPortlet();\n}", "title": "" }, { "docid": "5b68fcac27509011b5b81d2f67ad49d5", "score": "0.58032715", "text": "function nc_content_html ($name, $return = false)\n{\n\tglobal $nc_login_state;\n\t\n\t$output = nc_load_create_content($name); // Output the content we have prepared to webpage\n\t\n\tif($nc_login_state) // Edit mode is on, load the editor\n\t\t$output .= '<a href=\"'.nc_get_cms_path_relative().'/index.php?action=edit_html&amp;name='.$name.'\" class=\"nc_edit\"><img src=\"'.nc_get_cms_path_relative().'/system/images/edit.png\" alt=\"Edit\" title=\"Edit\" border=\"0\"/></a>';\n\n\tif($return)\n\t\treturn $output;\n\telse\n\t\techo $output;\n}", "title": "" }, { "docid": "da65b89f7bd9cc02894bd4afaac6e6b8", "score": "0.5800909", "text": "function allView()\n {\n ?><!DOCTYPE html>\n <html>\n <head><title>Text Editor</title></head>\n <body><h1><a href=\"index.php\">Simple Text Editor</a></h1></body>\n </html>\n <?php\n }", "title": "" }, { "docid": "91b004c3f641a521579f522ee8d14c32", "score": "0.5795574", "text": "public static function show()\n {\n echo self::$instance->getHtml();\n }", "title": "" }, { "docid": "d28bbe36dc0eebd0a4ab4f4b956f3811", "score": "0.57944065", "text": "public function execute() {\n\t\tglobal $wgLocalStylePath;\n\n\t\t$this->skin = $this->data['skin'];\n\t\t\n\t\t$this->buildNavUrls();\n\t\t\n\t\t// Reverse horizontally rendered navigation elements\n\t\t$this->fixRTL();\n\t\t\n\t\t// Add the #sp ID to the <body> tag (needed for Paradise CSS files)\n\t\t$this->data['headelement'] = str_replace( '<body ', '<body id=\"sp\" ', $this->data['headelement'] );\n\t\t\n\t\t// Remove TOC if we have less than 3 headers\n\t\tif ( XBMCSkinHooks::$headerCount < 3 ) {\n\t\t\t$this->data['bodycontent'] = preg_replace( '/<table[^=]*=\"toc\"[^>]*>/',\n\t\t\t\t\t'<table id=\"toc\" class=\"toc\" style=\"display:none;\">', $this->data['bodycontent'] );\n\t\t}\n\t\t\n\t\t// Fix the categories link toolbar\n\t\t$this->fixCatlinks();\n\t\t\n\t\t// Rebuild the sidebar using the 'xbmc-sidebar' wiki message instead of the default\n\t\t// 'sidebar' message. This lets us have separate navigation links for Vector and the\n\t\t// XBMC skin\n\t\t$this->set( 'sidebar', $this->buildSidebar() );\n\t\t\n\t\t// Output the head element and first <body> tag\n\t\t$this->html( 'headelement' );\n\t\t\n?>\n\t\t<!-- content -->\n\t\t<div class=\"container\">\n\t\t\t<div id=\"header\">\n\t\t\t\t<a href=\"http://xbmc.org\" class=\"logo\">\n\t\t\t\t\t<img src=\"<?php echo $wgLocalStylePath ?>/xbmc/images/logo.png\" alt=\"\">\n\t\t\t\t</a>\n\t\t\t\t<form role=\"search\" method=\"get\" id=\"searchform\" action=\"http://www.google.com/cse\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"cx\" value=\"003239339731796940873:16ru8erxpls\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"ie\" value=\"UTF-8\">\n\t\t\t\t\t\t<label class=\"screen-reader-text\" for=\"s\">Search for:</label>\n\t\t\t\t\t\t<input type=\"text\" value=\"\" name=\"q\" id=\"s\" <?php /*style=\"color: rgb(178, 177, 177); \"*/?>>\n\t\t\t\t\t\t<input type=\"submit\" name=\"sa\" id=\"searchsubmit\" value=\"Search\">\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t<div class=\"clear\"></div>\n\t\t\t</div>\n\t\t\t<div id=\"MainNav\">\n\t\t\t\t<a href=\"http://xbmc.org\" class=\"home_btn\">\n\t\t\t\t\t<img src=\"<?php echo $wgLocalStylePath ?>/xbmc/images/icon_home.gif\" width=\"17\" height=\"19\" alt=\"Home\">\n\t\t\t\t</a>\n\t\t\t\t<div id=\"menu\" class=\"ddsmoothmenu\">\n\t\t\t\t\t<ul id=\"menu-main-menu\" class=\"ddsmoothmenu\">\n\t\t\t\t\t\t<li id=\"menu-item-671\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-671\">\n\t\t\t\t\t\t\t<a href=\"http://www.xbmc.org/home/\">About</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li id=\"menu-item-732\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-732\">\n\t\t\t\t\t\t\t<a href=\"http://www.xbmc.org/download/\">Download</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t<!--<li id=\"menu-item-738\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-738\">\n\t\t\t\t\t\t\t<a href=\"http://addons.xbmc.org/\">Add-Ons</a> \n\t\t\t\t\t\t</li>-->\n\t\t\t\t\t\t<li id=\"menu-item-734\" class=\"menu-item menu-item-type-custom menu-item-object-custom current-menu-item page_item page-item-2 current_page_item menu-item-734\">\n\t\t\t\t\t\t\t<a href=\"<?php echo Title::newMainPage()->getLocalURL(); ?>\">Wiki</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li id=\"menu-item-733\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-733\">\n\t\t\t\t\t\t\t<a href=\"http://forum.xbmc.org\">Forum</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li id=\"menu-item-811\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-811\">\n\t\t\t\t\t\t\t<a href=\"http://www.xbmc.org/Contribute/Donate\">Donate</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"clear\"></div>\n\t\t\t</div>\n\t\t\t<!-- navigation -->\n\t\t\t<div id=\"breadcrumbs\">\n\t\t\t\t<div id=\"mw-panel\" class=\"noprint\">\n\t\t\t\t\t<?php $this->renderPortals( $this->data['sidebar'] ); ?>\n\t\t\t\t</div>\n\t\t\t\t<div id=\"mw-panel2\" class=\"noprint\">\n\t\t\t\t\t<?php $this->renderPersonalNavigation(); ?>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<!-- /navigation -->\n\t\t\t<a id=\"top\"></a>\n\t\t\t<div class=\"PageTitle\">\n\t\t\t\t<h1><?php $this->html( 'title' ) ?></h1>\n\t\t\t</div>\n\t\t\t<div id=\"right-navigation-wrapper\">\n\t\t\t\t<div id=\"right-navigation\">\n\t\t\t\t\t<?php $this->renderNavigation( array( 'NAMESPACES', 'VIEWS', 'ACTIONS' ) ); ?>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id=\"content_wrapper\">\n\t\t\t\t<div id=\"content\"><div class=\"box\">\n\t\t\t\t\t<div id=\"mw-js-message\" style=\"display:none;\"<?php $this->html( 'userlangattributes' ) ?>></div>\n\t\t\t\t\t<?php if ( $this->data['subtitle'] ): ?>\n\t\t\t\t\t<!-- subtitle -->\n\t\t\t\t\t<div id=\"contentSub\"><?php $this->html( 'subtitle' ) ?></div>\n\t\t\t\t\t<!-- /subtitle -->\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\n\t\t\t\t\t<?php if ( $this->data['undelete'] ): ?>\n\t\t\t\t\t<!-- undelete -->\n\t\t\t\t\t<div id=\"contentSub2\"><?php $this->html( 'undelete' ) ?></div>\n\t\t\t\t\t<!-- /undelete -->\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\n\t\t\t\t\t<?php if( $this->data['newtalk'] ): ?>\n\t\t\t\t\t<!-- newtalk -->\n\t\t\t\t\t<div class=\"usermessage\"><?php $this->html( 'newtalk' ) ?></div>\n\t\t\t\t\t<!-- /newtalk -->\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\n\t\t\t\t\t<!-- bodycontent -->\n\t\t\t\t\t<div id=\"mw-content-article\">\n\t\t\t\t\t\t<?php $this->html( 'bodycontent' ) ?>\n\t\t\t\t\t</div>\n\t\t\t\t\t<!-- /bodycontent -->\n\t\t\t\t\t\n\t\t\t\t\t<?php if ( $this->data['catlinks'] ): ?>\n\t\t\t\t\t<!-- catlinks -->\n\t\t\t\t\t<?php $this->html( 'catlinks' ); ?>\n\t\t\t\t\t<!-- /catlinks -->\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\n\t\t\t\t\t<?php if ( $this->data['dataAfterContent'] ): ?>\n\t\t\t\t\t<!-- dataAfterContent -->\n\t\t\t\t\t<?php $this->html( 'dataAfterContent' ); ?>\n\t\t\t\t\t<!-- /dataAfterContent -->\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"visualClear\"></div>\n\t\t\t\t\t<!-- debughtml -->\n\t\t\t\t\t<?php $this->html( 'debughtml' ); ?>\n\t\t\t\t\t<!-- /debughtml -->\n\t\t\t\t\t\n\t\t\t\t\t<!-- footer -->\n\t\t\t\t\t<div id=\"mw-footer\"<?php $this->html( 'userlangattributes' ) ?>>\n\t\t\t\t\t\t<?php foreach( $this->getFooterLinks() as $category => $links ): ?>\n\t\t\t\t\t\t\t<ul id=\"mw-footer-<?php echo $category ?>\">\n\t\t\t\t\t\t\t\t<?php foreach( $links as $link ): ?>\n\t\t\t\t\t\t\t\t\t<li id=\"mw-footer-<?php echo $category ?>-<?php echo $link ?>\"><?php $this->html( $link ) ?></li>\n\t\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t<div style=\"clear:both\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<!-- /footer -->\n\t\t\t\t</div></div>\n\t\t\t\t<div class=\"clear\"></div>\n\t\t\t</div>\n\t\t\t<!-- Start Footer Sidebar -->\n\t\t\t<div id=\"f_sidebar\">\n\t\t\t\t<div class=\"sb_wrapper\">\n\t\t\t\t\t<!-- Start First Column -->\n\t\t\t\t\t<div class=\"widget-container widget_text\">\n\t\t\t\t\t\t<h3>About XBMC</h3>\n\t\t\t\t\t\t<p>XBMC is a free and open source media player application developed by the XBMC Foundation, a non-profit technology consortium. XBMC is available for multiple operating-systems and hardware platforms, featuring a 10-foot user interface for use with televisions and remote controls. It allows users to play and view most videos, music, podcasts, and other digital media files from local and network storage media and the internet.</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<!-- Start First Column -->\n\t\t\t\t\t<div class=\"widget-container\">\n\t\t\t\t\t\t<h3>Internal Links</h3>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<li><a href=\"#\" title=\"Contribute\">Contribute</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\" title=\"Corporate Enquiries\">Corporate</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\" title=\"XBMC Foundation\">XBMC Foundation</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\" title=\"XBMC Software\">XBMC Software</a></li>\n\t\t\t\t\t\t\t<li><a href=\"#\" title=\"XBMC Team\">XBMC Team</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t<!-- Start Second Column -->\n\t\t\t\t\t<div class=\"widget-container\">\n\t\t\t\t\t<h3>Feeds</h3>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<li><a href=\"http://addons.xbmc.org/rssupdated.php\" title=\"At-Visons\">Latest Add-Ons</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://www.xbmc.org/comments/feed/\" title=\"Comments RSS\">Latest Comments</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://www.xbmc.org/feed/\" title=\"News RSS\">Latest News</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://addons.xbmc.org/rssnewest.php\" title=\"Newest RSS\">Newest Add-Ons</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<!-- Start Third Column -->\n\t\t\t\t\t<div class=\"widget-container\">\n\t\t\t\t\t<h3>Sponsors</h3>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<li><a href=\"http://www.at-visions.com\" title=\"At-Visons\">at-Visons</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://www.ouya.tv/\" title=\"Ouya\">Ouya</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://www.pivosgroup.com/\" title=\"PivosConvar\">Pivos</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://www.vidon.me/\" title=\"VidOn.Me\">VidOn.Me</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://www.webhostingbuzz.com/\" title=\"WebHostingBuzz\">WebHostingBuzz</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://www.wunderground.com/\" title=\"wunderground\">wunderground</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t<!-- Start 4th Collumn -->\n\t\t\t\t\t<div class=\"widget-container footer-widget-last\">\n\t\t\t\t\t\t<h3>External Links</h3>\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<li><a href=\"http://fanart.tv\" title=\"Fanart.tv\">Fanart.TV</a></li>\n\t\t\t\t\t\t\t<li><a href=\"http://openelec.tv/\" title=\"OpenELEC\">OpenELEC</a></li>\n\t\t\t\t\t\t\t<li><a href=\"www.TheAudioDB.com\" title=\"April 2010\">TheAudioDB.com</a></li>\n\t\t\t\t\t\t\t<li><a href=\"www.TheGamesDB.net\" title=\"TheGamesDB\">TheGamesDB.net</a></li>\n\t\t\t\t\t\t\t<li><a href=\"www.TheMovieDB.org\" title=\"TheMovieDB\">TheMovieDB.org</a></li>\n\t\t\t\t\t\t\t<li><a href=\"www.TheTVDB.com\" title=\"TheTVDB\">TheTVDB.com</a></li>\n\t\t\t\t\t\t\t<li><a href=\"www.xbmlogs.net\" title=\"XBMCLogs\">XBMCLogs.com</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"clear\"></div>\n\t\t\t</div>\n\t\t\t<!-- End Footer Sidebar -->\n\t\t</div>\n\t\t<!-- /content -->\n\t\t<!-- fixalpha -->\n\t\t<script type=\"<?php $this->text( 'jsmimetype' ) ?>\"> if ( window.isMSIE55 ) fixalpha(); </script>\n\t\t<!-- /fixalpha -->\n\t\t<?php $this->printTrail(); ?>\n\t</body>\n</html>\n<?php\n\t}", "title": "" }, { "docid": "2d5ffda31439bb87b9cb70c29c33f780", "score": "0.5794153", "text": "protected function html()\n {\n }", "title": "" }, { "docid": "0609fcae510ac866c66db6e682671afb", "score": "0.5791994", "text": "public function generateHtmlPage()\n\t {\n\n\t\t // set title\n\t\t $htmlTitle = 'PrivyPaste | Store your text securely and safely! | '.$this->subTitle;\n\n\t\t // get most recent pastes that will be displayed at the top of the page\n\t\t $lastModifiedPastesHTML = $this->generateMostRecentlyModifiedPastesHtml();\n\n\t\t // get header subArea HTML\n\t\t $subAreaHTML = $this->generateHeadingSubArea();\n\n\t\t // build page html\n\t\t $html = '\n\t\t <!DOCTYPE html>\n\t\t\t\t<html>\n\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta charset=\"utf-8\" />\n\t\t\t\t\t\t\n\t\t\t\t\t\t<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"'.BASE_URL_DIR.'media/favicon.ico\" />\n\n\t\t\t\t\t\t<title>'.$htmlTitle.'</title>\n\n\t\t\t\t\t\t<!-- CSS -->\n\t\t\t\t\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"'.BASE_URL_DIR.'css/master.css\" />\n\n\t\t\t\t\t</head>\n\t\t\t\t\t<body id=\"index\">\n\t\t\t\t\t\t<div id=\"vars\">\n\t\t\t\t\t\t\t<span class=\"base_url\">'.$this->url.'</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id=\"ticker\">\n\t\t\t\t\t\t\t'.$lastModifiedPastesHTML.'\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id=\"errorMsgWrapper\">\n\t\t\t\t\t\t\t<div id=\"errorMsg\">\n\t\t\t\t\t\t\t\t<p>'.$this->errorMsg.'</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id=\"container\">\n\t\t\t\t\t\t\t<header>\n\t\t\t\t\t\t\t\t<!--<p id=\"accountInfo\">Josh Carlson &lt;magneticstain@gmail.com&gt; | <a href=\"pastes.php\" title=\"View Your Pastes\">Pastes</a> | <a href=\"account.php\" title=\"Update Your Account\">Account</a> | <a href=\"signout.php\" title=\"Sign Out of Your Account\">Sign Out</a></p>-->\n\t\t\t\t\t\t\t\t<div id=\"logo\">\n\t\t\t\t\t\t\t\t\t<a href=\"'.$this->url.'\">\n\t\t\t\t\t\t\t\t\t\t<img src=\"'.BASE_URL_DIR.'media/icons/paper_airplane.png\" alt=\"Welcome to PrivyPaste!\" />\n\t\t\t\t\t\t\t\t\t\t<h1 class=\"accent\">Privy</h1><h1>Paste</h1>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t'.$subAreaHTML.'\n\t\t\t\t\t\t\t</header>\n\t\t\t\t\t\t\t<section id=\"content\">\n\t\t\t\t\t\t\t\t'.$this->content.'\n\t\t\t\t\t\t\t</section>\n\t\t\t\t\t\t\t<footer>\n\t\t\t\t\t\t\t\t<a target=\"_blank\" href=\"https://github.com/magneticstain/PrivyPaste\">Project Home</a> | <a target=\"_blank\" href=\"http://opensource.org/licenses/MIT\">The MIT License (MIT)</a>\n\t\t\t\t\t\t\t</footer>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t\t<!-- js -->\n\t\t\t\t\t\t<script src=\"'.BASE_URL_DIR.'js/jquery-3.1.0.min.js\"></script>\n\t\t\t\t\t\t<script src=\"'.BASE_URL_DIR.'js/jquery.global.js\"></script>\n\t\t\t\t\t\t<script src=\"'.BASE_URL_DIR.'js/jquery.errorator.js\"></script>\n\t\t\t\t\t\t<script src=\"'.BASE_URL_DIR.'js/jquery.textual.js\"></script>\n\t\t\t\t\t\t<script src=\"'.BASE_URL_DIR.'js/jquery.controller.js\"></script>\n\t\t\t\t\t\t<script src=\"'.BASE_URL_DIR.'js/jquery.js\"></script>\n\t\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t ';\n\n\t\t return $html;\n\t }", "title": "" }, { "docid": "2bb7fa4714dae67fcafc64d92e00eb8b", "score": "0.57887244", "text": "public function run()\n {\n $config = array();\n if ($this->encoding)\n $config['encoding'] = strtoupper($this->encoding);\n\n if ($this->color)\n $config['color'] = strtoupper($this->color);\n\n if ($this->attribute)\n $config['name'] = CHtml::activeName($this->model,$this->attribute);\n\n $config = CJSON::encode($config);\n $config = substr($config,1,-1);\n\n echo '<script src=\"http://api.reklamper.com/start.js\" captchaConfig=\\''.$config.'\\'></script>';\n }", "title": "" }, { "docid": "0b24687186277e4494418b3949d1e812", "score": "0.5783882", "text": "public function main() {\n\n\t\tif (($fileRenderer = RendererRegistry::getInstance()->getRenderer($this->file)) !== NULL) {\n\t\t\t$output = $fileRenderer->render($this->file, $this->width, $this->height);\n\t\t\t$markerArray = array(\n\t\t\t\t'###TITLE###' => ($this->file->getProperty('title') ?: $this->title),\n\t\t\t\t'###IMAGE###' => $output,\n\t\t\t\t'###BODY###' => $this->bodyTag\n\t\t\t);\n\t\t\t$this->content = str_replace(array_keys($markerArray), array_values($markerArray), $this->content);\n\t\t} else {\n\t\t\tparent::main();\n\t\t}\n\t}", "title": "" }, { "docid": "fe7c05b48aebbea337d66d693dc71614", "score": "0.5783742", "text": "function draw_page(){\n\n\t\tif (!$this->check_auth() && $this->must_authenticate){\n\t\t\t$this->login_redirect();\n\t\t}\n\t\telseif ($this->preprocess()){\n\t\t\t\n\t\t\tif ($this->window_dressing)\n\t\t\t\techo $this->get_header();\n\n\t\t\techo $this->body_content();\n\n\t\t\tif ($this->window_dressing)\n\t\t\t\techo $this->get_footer();\n\n\t\t\tforeach($this->scripts as $s_url => $s_type){\n\t\t\t\tprintf('<script type=\"%s\" src=\"%s\"></script>',\n\t\t\t\t\t$s_type, $s_url);\n\t\t\t\techo \"\\n\";\n\t\t\t}\n\t\t\t\n\t\t\t$js_content = $this->javascript_content();\n\t\t\tif (!empty($js_content) || !empty($this->onload_commands)){\n\t\t\t\techo '<script type=\"text/javascript\">';\n\t\t\t\techo $js_content;\n\t\t\t\techo \"\\n\\$(document).ready(function(){\\n\";\n\t\t\t\tforeach($this->onload_commands as $oc)\n\t\t\t\t\techo $oc.\"\\n\";\n\t\t\t\techo \"});\\n\";\n\t\t\t\techo '</script>';\n\t\t\t}\n\n\t\t\t$page_css = $this->css_content();\n\t\t\tif (!empty($page_css)){\n\t\t\t\techo '<style type=\"text/css\">';\n\t\t\t\techo $page_css;\n\t\t\t\techo '</style>';\n\t\t\t}\n\t\t\tforeach($this->css_files as $css_url){\n\t\t\t\tprintf('<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">',\n\t\t\t\t\t$css_url);\n\t\t\t\techo \"\\n\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2c9d39e342e6e0ef5eab23a40d48fced", "score": "0.5780037", "text": "function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}", "title": "" }, { "docid": "82e142a84844bc46ffad61d58741c981", "score": "0.57779837", "text": "function DisplayContent()\n {\n global $nm_config, $nm_template, $nm_browser;\n\n /* Includes */\n include_once $nm_config['path_lib'] . 'php_edit.inc.php';\n\n /* Seta variaveis com valores da sessao */\n $this->rule_group->SetApplication($_SESSION['nm_session']['user']['cod_grp'],\n $_SESSION['nm_session']['app']['cod'],\n $_SESSION['nm_session']['user']['cod_ver']);\n\n /* Inicializa lista de erros */\n $this->InitErrorList();\n\n /* Dados do formulario */\n\t\t$rule_group_nome = $this->GetArg('rule_group_nome');\n\t\t$rule_group_label = $this->GetArg('rule_group_label');\n\t\t$rule_group_fields = $this->getRuleFields();\n\t\t$rule_group_sc_free_group_by_use = $this->GetArg('rule_group_sc_free_group_by_use');\n\t\t$rule_group_sc_free_group_by_openmode = $this->GetArg('rule_group_sc_free_group_by_openmode');\n\t\t$rule_group_sc_free_group_by_hide_help_line = $this->GetArg('rule_group_sc_free_group_by_hide_help_line');\n\t\t\n\n\t\t/* Modo de abertura da pagina */\n $nm_template->SetVar('form_option', $this->GetArg('form_option'));\n\n /* Valida formulario enviado */\n if ($this->FormSent('edit') || $this->GetArg('form_option') == 'delete_rule_group')\n {\n\t\t\tswitch ($this->GetArg('form_option'))\n \t{\n \t\tcase 'save'; //Salva regra\n \t\tcase 'generate';\n \t\tcase 'run';\n \t\tcase 'build';\n\t\t\t\t\t$this->ValidateFormRuleGroup($rule_group_nome, $rule_group_fields);\n if ($this->IsValid())\n {\n\t $this->SaveRuleGroup($rule_group_nome, $rule_group_label, $rule_group_fields, $rule_group_sc_free_group_by_use, $rule_group_sc_free_group_by_openmode, $rule_group_sc_free_group_by_hide_help_line);\n\t\t\t\t\t\t$nm_template->SetVar('form_option', 'edit_rule_group');\n\t $this->CheckRedirect();\n\t\t\t\t\t\t$this->MenuReload($rule_group_nome, 'save');\n }\n \t\tbreak;\n\n \t\tcase 'add_rule_group':\n \t\tcase 'inc_rule_group':\n\t\t\t\t\t$this->ValidateFormRuleGroup($rule_group_nome, $rule_group_fields);\n \t\t\tif ($this->IsValid())\n \t\t{\n \t\t\t$this->SaveRuleGroup($rule_group_nome, $rule_group_label, $rule_group_fields, $rule_group_sc_free_group_by_use, $rule_group_sc_free_group_by_openmode, $rule_group_sc_free_group_by_hide_help_line);\n\t \t\t\t$this->MenuReload($rule_group_nome, 'add');\n\t\t\t $this->CheckRedirect();\n\t\t\t\t\t\t$rule_group_nome = \"\";\n\t\t\t\t\t\t$rule_group_label = \"\";\n\t\t\t\t\t\t$rule_group_fields = array();\n\t\t\t\t\t\t$rule_group_sc_free_group_by_use = \"\";\n\t\t\t\t\t\t$rule_group_sc_free_group_by_openmode = \"\";\n\t\t\t\t\t\t$rule_group_sc_free_group_by_hide_help_line = \"\";\n \t\t\t\t$nm_template->SetVar('form_option', 'add_rule_group');\n \t\t}\n \t\t/* Exibe criticas */\n\t\t else\n\t\t {\n\t\t\t\t\t\t$nm_template->SetVar('arr_erros', $this->GetErrors());\n\t \t\t\t$nm_template->SetVar('form_option', 'add_rule_group');\n\t\t }\n \t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'delete_rule_group':\n\t\t\t\t\t$this->DelRuleGroup($_GET['rule_group_nome']);\n\t\t\t\t\t$nm_template->SetVar('form_option', 'add_rule_group');\n\t\t\t\t\t$this->MenuReload($_GET['rule_group_nome'], '', '', 'delete');\n\t\t\t\t\t\n\t\t\t\t\t$rule_group_nome = \"\";\n\t\t\t\t\t$rule_group_label = \"\";\n\t\t\t\t\t$rule_group_fields = array();\n\t\t\t\t\t$rule_group_sc_free_group_by_use = \"\";\n\t\t\t\t\t$rule_group_sc_free_group_by_openmode = \"\";\n\t\t\t\t\t$rule_group_sc_free_group_by_hide_help_line = \"\";\n\t\t\t\t\t$nm_template->SetVar('form_option', 'add_rule_group');\n\t\t\t\tbreak;\n \t}\n }\n\t\t\n\t\t$this->DisplayForm($rule_group_nome, $rule_group_label, $rule_group_fields, $rule_group_sc_free_group_by_use, $rule_group_sc_free_group_by_openmode, $rule_group_sc_free_group_by_hide_help_line);\n\n /* Gera aplicacao */\n\t\tif ('generate' == $this->GetArg('form_option'))\n {\n \t$_SESSION['nm_session']['compile_apps_ajax'] = protectAjaxChar($_SESSION['nm_session']['app']['cod']) . '#@#' .\n \t\t\t\t\t\t\t\t\t\t\t\t $_SESSION['nm_session']['app']['type'] . '#@#' .\n \t\t\t\t\t\t\t\t\t\t\t\t protectAjaxChar($_SESSION['nm_session']['app']['friendly_name']);\n \t$nm_template->Display('body_generate_app');\n }\n elseif (('run' == $this->GetArg('form_option')) ||\n ('build' == $this->GetArg('form_option')))\n {\n\n \tif ($nm_browser->GetAgent() == 'CHROME')\n\t\t\t{\n\t \t$nm_template->Display('body_popup_test');\n\t\t\t}\n\n\t\t\t$nm_template->SetVar('cod_app', $_SESSION['nm_session']['app']['cod']);\n\t\t\t$nm_template->SetVar('type', \t$_SESSION['nm_session']['app']['type']);\n\t\t\t$nm_template->SetVar('target', 'nmWinGenExecV7_' . $nm_config['win_name']);\n\t $nm_template->SetVar('friendly_name', $_SESSION['nm_session']['app']['friendly_name']);\n\t\t\t$nm_template->Display('body_generate_code');\n }\n }", "title": "" }, { "docid": "d49571102ece8f763aa8ac901f7f35ae", "score": "0.5768514", "text": "abstract public function html();", "title": "" }, { "docid": "ec13022373f9a6c2506a1da7aef9e117", "score": "0.5767519", "text": "public function adminMenuPageOutputHTML()\n\n\n {\n\n\n $url = self::$DOMAIN['www'];\n\n\n\n\n\n echo \"<div id='plulzwrapper' class='wrap'>\";\n\n\n echo \"<a id='plulzico' href='{$url}' target='_blank'> {$this->menuPage['page_title']} </a>\";\n\n\n echo \"<h2>{$this->menuPage['page_title']}</h2>\";\n\n\n\n\n\n $this->generalConfigMetabox();\n\n\n\n\n\n $this->adminSidebarOutputHMTL();\n\n\n\n\n\n echo \"</div>\"; // Close .wrap\n\n\n }", "title": "" }, { "docid": "15693bb2d78751d7bb1f15f9e2e220b2", "score": "0.57605237", "text": "public function html() {\n }", "title": "" }, { "docid": "009ecf6d8f65556da55e758abbb62cd0", "score": "0.57575804", "text": "function rte_display() {\r\n global $HEAD, $ONLOAD;\r\n\r\n $path_details = pathinfo(html_encode($_SERVER[\"PHP_SELF\"]));\r\n switch($_SESSION[\"config\"][PREF_USERTE]) {\r\n case \"htmlarea\" :\r\n $i = count($HEAD);\r\n $HEAD[$i] = \"<script language=\\\"JavaScript\\\" type=\\\"text/javascript\\\">\\n\";\r\n $HEAD[$i] .= \"_editor_url = '\".$path_details[\"dirname\"].\"/javascript/htmlarea/';\\n\";\r\n $HEAD[$i] .= \"_editor_lang = 'en';\\n\";\r\n $HEAD[$i] .= \"</script>\\n\";\r\n $HEAD[$i] .= \"<script language=\\\"JavaScript\\\" type=\\\"text/javascript\\\" src=\\\"./javascript/htmlarea/htmlarea.js\\\"></script>\\n\";\r\n $HEAD[$i] .= \"<script type=\\\"text/javascript\\\" language=\\\"javascript\\\">\\n\";\r\n $HEAD[$i] .= \"HTMLArea.loadPlugin('FullPage');\\n\";\r\n $HEAD[$i] .= \"HTMLArea.loadPlugin('CharacterMap');\\n\";\r\n $HEAD[$i] .= \"HTMLArea.loadPlugin('ImageManager');\\n\";\r\n $HEAD[$i] .= \"function initDocument() {\\n\";\r\n $HEAD[$i] .= \"\\tvar editor = new HTMLArea('html_message');\\n\";\r\n $HEAD[$i] .= \"\\teditor.registerPlugin(FullPage);\\n\";\r\n $HEAD[$i] .= \"\\teditor.registerPlugin(CharacterMap);\\n\";\r\n $HEAD[$i] .= \"\\teditor.registerPlugin(ImageManager);\\n\";\r\n $HEAD[$i] .= \"\\teditor.config.hideSomeButtons(' formatblock ');\\n\";\r\n $HEAD[$i] .= \"\\teditor.generate();\\n\";\r\n $HEAD[$i] .= \"}\\n\\n\";\r\n $HEAD[$i] .= \"HTMLArea.onload = initDocument;\\n\";\r\n $HEAD[$i] .= \"</script>\\n\";\r\n $ONLOAD[] = \"HTMLArea.init()\";\r\n break;\r\n case \"innovastudio\" :\r\n case \"yes\" :\r\n $i = count($HEAD);\r\n $HEAD[$i] = \"<script language=\\\"JavaScript\\\" type=\\\"text/javascript\\\" src=\\\"./javascript/innovastudio/scripts/innovaeditor.js\\\"></script>\\n\";\r\n\r\n echo \"<script language=\\\"JavaScript\\\" type=\\\"text/javascript\\\">\\n\";\r\n echo \"\\tvar oEdit1 = new InnovaEditor('oEdit1');\\n\";\r\n echo \"\\toEdit1.cmdAssetManager = 'modalDialogShow(\\'\".$path_details[\"dirname\"].\"/javascript/innovastudio/assetmanager/assetmanager.php?sid=\".session_id().\"\\', 640, 472);';\\n\";\r\n echo \"\\toEdit1.mode = 'XHTML';\\n\";\r\n echo \"\\toEdit1.useTagSelector = false;\\n\";\r\n echo \"\\toEdit1.btnPasteText = true;\\n\";\r\n echo \"\\toEdit1.btnSpellCheck = true;\\n\";\r\n echo \"\\toEdit1.btnClearAll = true;\\n\";\r\n echo \"\\toEdit1.width = '100%';\\n\";\r\n echo \"\\toEdit1.height = '350px';\\n\";\r\n echo \"\\toEdit1.REPLACE('html_message');\\n\";\r\n echo \"</script>\\n\";\r\n break;\r\n default :\r\n continue;\r\n break;\r\n }\r\n}", "title": "" }, { "docid": "cd0bedb3c3a0e83f73831ce910715f4c", "score": "0.5754964", "text": "public function Render()\n {\n echo $this->GetOutputHtml();\n }", "title": "" }, { "docid": "f7ab916cb8817de5e4c02c4d4b472614", "score": "0.57533365", "text": "public function getContent()\n\t{\n\t\t$output = null;\n\n\n\t\tif (Tools::isSubmit('submit'.$this->name))\n\t\t{\n\t\t\t$image_cloud_gallery = strval(Tools::getValue('PDC_NAME'));\n\t\t\tif (!$image_cloud_gallery\n\t\t\t\t|| empty($image_cloud_gallery)\n\t\t\t\t|| !Validate::isGenericName($image_cloud_gallery)) {\n\t\t\t\t$output .= $this->displayError($this->l('Invalid Configuration value'));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tConfiguration::updateValue('PDC_NAME', $image_cloud_gallery);\n\t\t\t\t$output .= $this->displayConfirmation($this->l('Settings updated'));\n\t\t\t}\n\t\t}\n\n\t\tif (Tools::isSubmit('newItem'))\n\t\t{\n\t\t\t$this->addItem();\n\t\t}\n\t\telseif (Tools::isSubmit('updateItem'))\n\t\t{\n\t\t\t$this->updateItem();\n\t\t}\n\t\telseif (Tools::isSubmit('removeItem'))\n\t\t{\n\t\t\t$this->removeItem();\n\t\t}\n\n\t\t$output .= $this->renderThemeConfiguratorForm();\n\t\treturn $output.$this->displayForm();\n\t}", "title": "" }, { "docid": "155a682baf2d909f299a64a6a91a09d4", "score": "0.57489663", "text": "public static function showOptionsPage()\n {\n ?>\n\n <div class=\"wrap uber-login-logo\">\n <?php screen_icon('edit-pages'); ?>\n <h2>Uber Login Logo</h2>\n\n <div class=\"updated fade update-status\">\n <p><strong><?php _e('Settings Saved', 'uber-login-logo'); ?></strong></p>\n </div>\n\n <p><?php printf(__('by %1$s from %2$s', 'uber-login-logo'), '<strong>Alex Rogers</strong>', '<strong><a href=\"http://www.uberweb.com.au\" title=\"uberweb web design and development\">uberweb.com.au</a></strong>'); ?></p>\n\n <h3><?php _e('How it Works', 'uber-login-logo'); ?></h3>\n <ol>\n <li><?php _e('Use the WordPress media uploader to upload an image, or select one from the media library.', 'uber-login-logo'); ?></li>\n <li><?php _e('It is highly recommended that you select an image with a width less than 320px.', 'uber-login-logo'); ?></li>\n <li><?php _e('Select your desired image size and click \"insert into post\".', 'uber-login-logo'); ?></li>\n <li><?php _e('Finished!', 'uber-login-logo'); ?></li>\n </ol>\n <form class=\"inputfields\">\n <input id=\"upload-input\" type=\"text\" size=\"36\" name=\"upload image\" class=\"upload-image\" value=\"\" />\n <input id=\"upload-button\" type=\"button\" value=\"<?php _e('Upload Image', 'uber-login-logo'); ?>\" class=\"upload-image\" />\n <?php wp_nonce_field('uber_login_logo_action','uber_login_logo_nonce'); ?>\n </form>\n <div class=\"img-holder\">\n <p><?php _e('Here is a preview of your selected image at actual size', 'uber-login-logo'); ?></p>\n <div class=\"img-preview\"></div>\n </div>\n </div>\n\n <?php\n }", "title": "" }, { "docid": "affa79b98ae8a20179a6cf13a6cab879", "score": "0.5748829", "text": "public function run()\n\t{\n\t\t$this->Template = new BackendTemplate('be_preview');\n\n\t\t$this->Template->base = Environment::get('base');\n\t\t$this->Template->language = $GLOBALS['TL_LANGUAGE'];\n\t\t$this->Template->title = specialchars($GLOBALS['TL_LANG']['MSC']['fePreview']);\n\t\t$this->Template->charset = $GLOBALS['TL_CONFIG']['characterSet'];\n\t\t$this->Template->site = Input::get('site', true);\n\n\t\tif (Input::get('page'))\n\t\t{\n\t\t\t$this->Template->url = $this->redirectToFrontendPage(Input::get('page'), Input::get('article'), true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->Template->url = Environment::get('base');\n\t\t}\n\n\t\t$GLOBALS['TL_CONFIG']['debugMode'] = false;\n\t\t$this->Template->output();\n\t}", "title": "" }, { "docid": "f1e9389dbdb6e2edbafbfa3a8ca44be9", "score": "0.57483524", "text": "public function render()\n {\n /**\n * @var $ke LightKitEditorService\n */\n $ke = $this->getContainer()->get(\"kit_editor\");\n $websites = $ke->getWebsites();\n\n\n return $this->renderAdminPage('Ling.Light_Kit_Admin_Kit_Editor/lke_editor', [\n \"widgetVariables\" => [\n 'body.w1' => [\n \"websites\" => $websites,\n ],\n ],\n ]);\n }", "title": "" }, { "docid": "4527a7830fd3cd6a3d3e6313ebc4261d", "score": "0.5736209", "text": "abstract protected function html5Editor();", "title": "" }, { "docid": "ddcd81797abc5e8ecf9474f8bbbee116", "score": "0.57200426", "text": "function sandbox_general_options_callback() { \n echo '<p>Paste the Open Comment Box HTML Below</p>'; \n}", "title": "" }, { "docid": "3ba3f2cb92cebedc221f42ac9689df9d", "score": "0.5708283", "text": "function gui()\n\t{\n\t\t$title=get_page_title('IP_BANS');\n\n\t\t$lookup_url=build_url(array('page'=>'admin_lookup'),get_module_zone('admin_lookup'));\n\t\t$GLOBALS['HELPER_PANEL_TEXT']=comcode_to_tempcode(do_lang('IP_BANNING_WILDCARDS',$lookup_url->evaluate()));\n\n\t\t$bans='';\n\t\t$rows=$GLOBALS['SITE_DB']->query_select('usersubmitban_ip',array('ip','i_descrip'));\n\t\tforeach ($rows as $row)\n\t\t{\n\t\t\t$bans.=$row['ip'].' '.str_replace(\"\\n\",' ',$row['i_descrip']).chr(10);\n\t\t}\n\n\t\t$post_url=build_url(array('page'=>'_SELF','type'=>'actual'),'_SELF');\n\n\t\trequire_code('form_templates');\n\n\t\tlist($warning_details,$ping_url)=handle_conflict_resolution();\n\n\t\treturn do_template('IPBAN_SCREEN',array('_GUID'=>'963d24852ba87e9aa84e588862bcfecb','PING_URL'=>$ping_url,'WARNING_DETAILS'=>$warning_details,'TITLE'=>$title,'BANS'=>$bans,'URL'=>$post_url));\n\t}", "title": "" }, { "docid": "2d71075dc302d35341deee7ca317aba9", "score": "0.5706935", "text": "public function main()\n {\n // Setting GPvars:\n $mode = GeneralUtility::_GP('mode');\n $bparams = GeneralUtility::_GP('bparams');\n $moduleUrl = BackendUtility::getModuleUrl('wizard_element_browser') . '&mode=';\n $documentTemplate = $this->getDocumentTemplate();\n $documentTemplate->JScode = GeneralUtility::wrapJS('\n\t\t\t\tfunction closing() {\t//\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t\tfunction setParams(mode,params) {\t//\n\t\t\t\t\tparent.content.location.href = ' . GeneralUtility::quoteJSvalue($moduleUrl) . '+mode+\"&bparams=\"+params;\n\t\t\t\t}\n\t\t\t\tif (!window.opener) {\n\t\t\t\t\talert(\"ERROR: Sorry, no link to main window... Closing\");\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t');\n\n // build the header part\n $documentTemplate->startPage($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:TYPO3_Element_Browser'));\n\n // URL for the inner main frame:\n $url = $moduleUrl . rawurlencode($mode) . '&bparams=' . rawurlencode($bparams);\n\n // Create the frameset for the window\n // Formerly there were a ' onunload=\"closing();\"' in the <frameset> tag - but it failed on Safari browser on Mac unless the handler was \"onUnload\"\n $this->content = $this->getPageRenderer()->render(PageRenderer::PART_HEADER) .\n '<frameset rows=\"*,1\" framespacing=\"0\" frameborder=\"0\" border=\"0\">\n\t\t\t\t<frame name=\"content\" src=\"' . htmlspecialchars($url) . '\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" scrolling=\"auto\" noresize=\"noresize\" />\n\t\t\t\t<frame name=\"menu\" src=\"' . htmlspecialchars(BackendUtility::getModuleUrl('dummy')) . '\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" scrolling=\"no\" noresize=\"noresize\" />\n\t\t\t</frameset>\n\t\t</html>\n\t\t';\n }", "title": "" }, { "docid": "8ea81b4ee18a324e8ff74dc8231965a6", "score": "0.5702896", "text": "function RenderContent()\n {\n //Generate filename\n $filename = md5(uniqid(rand(), true));\n\n //Save the content file //make sure to do this before generating template\n Save(\"files/\" . $filename . \".html\", $_POST['content']);\n\n //Generate JS Template\n GenerateJSTemplate($filename);\n\n //Execute PhantomJS Operation\n exec('phantomjs files/' . $filename . \".js\");\n\n //Once picture is saved, return URL\n $microserviceURL = (isset($_SERVER['HTTPS']) ? \"https\" : \"http\") . \"://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n echo $microserviceURL . \"files/\" . $filename . \".png\";\n }", "title": "" }, { "docid": "9b621014de6448db3fa6eea8cd2024ec", "score": "0.5700381", "text": "public function showMain()\r\n {\r\n $this->defaultViewHandler();\r\n }", "title": "" }, { "docid": "7c3c9f845db94d798c71d24aea8e9089", "score": "0.56963354", "text": "public function run() {\r\n\t\tif ($this->showLink) {\r\n\t\t\techo CHtml::link(\r\n\t\t\t\t\tCHtml::image($this->getImageUrl(),$this->getAltText(),$this->htmlOptions),\r\n\t\t\t\t\t($this->linkUrl === null ? $this->user->createUrl() : $this->linkUrl),\r\n\t\t\t\t\t$this->linkOptions\r\n\t\t\t);\r\n\t\t}\r\n\t\telse {\r\n\t\t\techo CHtml::image($this->getImageUrl(),$this->getAltText(),$this->htmlOptions);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "93911652a4ffb45465f8183e3db44b98", "score": "0.5696251", "text": "protected function render_content()\n\t{\n\t\tinclude CEI_PLUGIN_DIR . 'includes/control.php';\n\t}", "title": "" }, { "docid": "b675726e66fdb243c5695ec7fb4d99b6", "score": "0.56913453", "text": "protected function renderContent()\n {\n echo gdpr('view')->render($this->template);\n }", "title": "" }, { "docid": "540193ef4059f957043f74ec063b8421", "score": "0.56879574", "text": "protected function display_content() {\n global $CFG, $OUTPUT;\n require_once(dirname(__FILE__) . '/../form/mod_lips_problem_form.php');\n\n // Administration title.\n echo $this->lipsoutput->display_h1(get_string('administration', 'lips'));\n\n // Administration menu.\n echo $this->lipsoutput->display_administration_menu();\n\n // Modify a problem.\n echo $OUTPUT->render(new action_link(new moodle_url('view.php', array(\n 'id' => $this->cm->id,\n 'view' => 'tuto',\n 'action' => 'problem'\n )),\n get_string('help'),\n null,\n array('class' => 'title-right-link')));\n echo $this->lipsoutput->display_h2(get_string('administration_problem_modify_title', 'lips'));\n\n $modifyselectproblemform = new mod_lips_problem_modify_select_form(\n new moodle_url('view.php',\n array('id' => $this->cm->id, 'view' => $this->view, 'action' => 'problem_modify')),\n null, '');\n $modifyselectproblemform->display();\n }", "title": "" }, { "docid": "b11071b335fb774665892223407820e2", "score": "0.5679373", "text": "public function run()\n\t{\n\t\t$content = $this->getTitle();\n // Form errors\n if ( isset( $this->data['error']['form'] ) ) {\n $content .= '<p class=\"error\">';\n $content .= $this->data['error']['form'];\n $content .= '</p>';\n }\n\t\t$this->Form = new Form;\n\t\t$this->buildForm();\n\t\t$content .= $this->Form->getHTML();\n\t\t\n\t\t$content .= '<p>Have an account? <a href=\"/login\">Sign In</a></p>';\n\n\t\t$this->content = $content;\n\t}", "title": "" }, { "docid": "c4f24dcf99da3a0bd8fb348ff9de5f3c", "score": "0.5673511", "text": "function main()\t{\n\t\tglobal $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;\n\n\t\t\t// Draw the header.\n\t\t$this->doc = t3lib_div::makeInstance('noDoc');\n\t\t$this->doc->backPath = $BACK_PATH;\n\t\t$this->doc->form='<form action=\"\" method=\"post\" enctype=\"'.$TYPO3_CONF_VARS['SYS']['form_enctype'].'\">';\n\n\t\t\t// JavaScript\n\t\t$this->doc->JScode = '\n\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\tscript_ended = 0;\n\t\t\t\tfunction jumpToUrl(URL)\t{\n\t\t\t\t\tdocument.location = URL;\n\t\t\t\t}\n\t\t\t</script>\n\t\t';\n\n\t\t\t// Header:\n\t\t$this->content.=$this->doc->startPage($LANG->getLL('title'));\n\t\t$this->content.=$this->doc->header($LANG->getLL('title'));\n\n\t\t$this->content.=$this->doc->divider(5);\n\n\n\t\t\t// Render the module content (for all modes):\n\t\t$this->content.=$this->doc->section('', $this->moduleContent((string)t3lib_div::_GP('table'),(int)t3lib_div::_GP('id'),t3lib_div::_GP('cmd')));\n\n\t\t$this->content.=$this->doc->spacer(10);\n\t}", "title": "" }, { "docid": "a5ca71042396e8c85a44fe4194b70b9d", "score": "0.56721824", "text": "public function showPage() {\n\t\t\n\t\t$this->render();\n\t}", "title": "" }, { "docid": "8b8de56a0a5c06f89a2010800f9f7c43", "score": "0.5670945", "text": "public function display()\n\t{\n\t\t?>\n\n\t\t<div class=\"wrap\">\n\t\t\t<h2><?php echo self::$pageName;?></h2>\n\t\t\t<form method=\"post\" action=\"options.php\">\n\n\t\t\t\t<?php\n\t\t\t\tsettings_fields('socialmedia-options');\n\t\t\t\tdo_settings_sections('socialmedia-options');\n\t\t\t\t?>\n\n\t\t\t\t<?php submit_button();?>\n\t\t\t</form>\n\t\t</div>\n\n\t<?php\n\t}", "title": "" }, { "docid": "073d894c48f34319ebbc4addff8107d9", "score": "0.5666742", "text": "private function own_content(){\n $res = \"\";\n \n $res .= $this->createModal(\"fileReader\", \"\");\n \n $res .= '<div class=\"w3-container w3-theme-d4 w3-center\"><p class=\"no_margin_tb\">';\n $res .= 'Otevřená témata';\n $res .= '</p></div>';\n $res .= $this->createReviews($this->req_data['reviews_pending']);\n \n $res .= '<div class=\"w3-margin-top w3-container w3-theme-d4 w3-center\"><p class=\"no_margin_tb\">';\n $res .= 'Uzavřená témata';\n $res .= '</p></div>';\n $res .= $this->createReviews($this->req_data['reviews_done']);\n \n return $res;\n }", "title": "" }, { "docid": "0e24dec6f46aca2dcdcf034d6617f5d1", "score": "0.5663225", "text": "public function getOutput()\n {\n $this->barraSuperior();\n\n //cria a DIV que armazenar� todo o conte�do;\n $this->container();\n\n //cria a DIV do conte�do esquerdo\n $this->leftContent();\n\n //cria o menu do topo da p�gina\n $this->topHeader();\n\n // cria a DIV de conte�do principal\n $this->content();\n\n return parent::getOutput();\n }", "title": "" }, { "docid": "93506a09f03e66a66472f6be65ce84aa", "score": "0.5660583", "text": "function outputHtml()\n\t{\n\t\tglobal $_ERROR;\n\t\tglobal $_START_TIME;\n?>\n<!DOCTYPE HTML>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"<?php print $this->getConfig('lang'); ?>\" lang=\"<?php print $this->getConfig('lang'); ?>\">\n<head>\n<meta name=\"viewport\" content=\"width=device-width\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<?php print $this->getConfig('charset'); ?>\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"__encode/static/encode.css\">\n<!-- <meta charset=\"<?php print $this->getConfig('charset'); ?>\" /> -->\n\n<?php\nif($this->getConfig('jquery_source') != null && $this->getConfig('jquery_source') != \"none\")\n{\n\tif(($this->getConfig('log_file') != null && strlen($this->getConfig('log_file')) > 0)\n\t\t|| ($this->getConfig('thumbnails') != null && $this->getConfig('thumbnails') == true && $this->mobile == false)\n\t\t|| (GateKeeper::isDeleteAllowed()))\n\t{\n\n\t\t//\n\t\t// Jquery source selection\n\t\t//\n\t\t$jq_src = \"\";\n\t\tif ($this->getConfig('jquery_source') == \"local\")\n\t\t{\n\t\t\t$jq_src = '__encode/static/jquery.min.js';\n\t\t}\n\t\telseif ($this->getConfig('jquery_source') == \"cdn\")\n\t\t{\n\t\t\t$jq_src = $this->getConfig('jquery_cdn_url');\n\t\t}\n\t\telse {} // Do nothing\n\n\n\t\t// begin JS code\n\t\techo \"<script type=\\\"text/javascript\\\" src=\\\"\" . $jq_src . \"\\\"></script>\\n\";\n\t\techo \"<script type=\\\"text/javascript\\\">\\n\";\n\t\techo \"//<![CDATA[\\n\";\n\t\techo \"$(document).ready(function() {\\n\";\n\n\n\t\tif(GateKeeper::isDeleteAllowed())\n\t\t{\n\n\t\t\techo \"\n\t$('td.del a').click(function(){\n\t\tvar answer = confirm('Are you sure you want to delete : \\\"' + $(this).attr(\\\"data-name\\\") + '\\\" ?');\n\t\treturn answer;\n\t});\n\";\n\n\t\t}\n\n\t\tif($this->logging == true)\n\t\t{\n\t\t\techo \"\n\tfunction logFileClick(path)\n\t{\n\t\t$.ajax({\n\t\t\tasync: false,\n\t\t\ttype: \\\"POST\\\",\n\t\t\tdata: {log: path},\n\t\t\tcontentType: \\\"application/x-www-form-urlencoded; charset=UTF-8\\\",\n\t\t\tcache: false\n\t\t});\n\t}\n\n\t$('a.file').click(function(){\n\t\tlogFileClick('\" . $this->location->getDir(true, true, false, 0) . \"' + $(this).html());\n\t\treturn true;\n\t});\n\";\n\t\t}\n\n\t\tif(EncodeExplorer::getConfig(\"thumbnails\") == true && $this->mobile == false)\n\t\t{\n\t\t\techo \"\n\tfunction positionThumbnail(e) {\n\t\txOffset = 30;\n\t\tyOffset = 10;\n\t\t$('#thumb').css(\\\"left\\\",(e.clientX + xOffset) + \\\"px\\\");\n\n\t\tdiff = 0;\n\t\tif(e.clientY + $('#thumb').height() > $(window).height())\n\t\t\tdiff = e.clientY + $('#thumb').height() - $(window).height();\n\n\t\t$('#thumb').css(\\\"top\\\",(e.pageY - yOffset - diff) + \\\"px\\\");\n\t}\n\n\t$('a.thumb').hover(function(e){\n\t\t$('#thumb').remove();\n\t\t$('body').append('<div id=\\\"thumb\\\"><img src=\\\"?thumb='+ $(this).attr(\\\"href\\\") +'\\\" alt=\\\"Preview\\\" \\/><\\/div>');\n\t\tpositionThumbnail(e);\n\t\t$('#thumb').fadeIn(\\\"medium\\\");\n\t},\n\tfunction() { $('#thumb').remove(); });\n\n\t$('a.thumb').mousemove(function(e) { positionThumbnail(e); });\n\t$('a.thumb').click(function(e) { $('#thumb').remove(); return true;} );\n\";\n\t\t}\n\n\n\t\t// End of JS code\n\t\techo \"\\n});\\n//]]>\\n</script>\\n\";\n\t}\n}\n?>\n\n<title><?php if(EncodeExplorer::getConfig('main_title') != null) print EncodeExplorer::getConfig('main_title'); ?></title>\n</head>\n<body class=\"<?php print ($this->mobile == true?\"mobile\":\"standard\");?>\">\n<?php\n//\n// Print the error (if there is something to print)\n//\nif(isset($_ERROR) && strlen($_ERROR) > 0)\n{\n\tprint \"<div id=\\\"error\\\">\".$_ERROR.\"</div>\";\n}\n?>\n<div id=\"frame\">\n<?php\nif(EncodeExplorer::getConfig('show_top') == true)\n{\n?>\n<div id=\"top\">\n\t<a href=\"<?php print $this->makeLink(false, false, null, null, null, \"\"); ?>\"><span><?php if(EncodeExplorer::getConfig('main_title') != null) print EncodeExplorer::getConfig('main_title'); ?></span></a>\n<?php\nif(EncodeExplorer::getConfig(\"secondary_titles\") != null && is_array(EncodeExplorer::getConfig(\"secondary_titles\")) && count(EncodeExplorer::getConfig(\"secondary_titles\")) > 0 && $this->mobile == false)\n{\n\t$secondary_titles = EncodeExplorer::getConfig(\"secondary_titles\");\n\tprint \"<div class=\\\"subtitle\\\">\".$secondary_titles[array_rand($secondary_titles)].\"</div>\\n\";\n}\n?>\n</div>\n<?php\n}\n\n// Checking if the user is allowed to access the page, otherwise showing the login box\nif(!GateKeeper::isAccessAllowed())\n{\n\t$this->printLoginBox();\n}\nelse\n{\nif($this->mobile == false && EncodeExplorer::getConfig(\"show_path\") == true)\n{\n?>\n<div class=\"breadcrumbs\">\n<a href=\"?dir=\"><?php print $this->getString(\"root\"); ?></a>\n<?php\n\tfor($i = 0; $i < count($this->location->path); $i++)\n\t{\n\t\tprint \"&gt; <a href=\\\"\".$this->makeLink(false, false, null, null, null, $this->location->getDir(false, true, false, count($this->location->path) - $i - 1)).\"\\\">\";\n\t\tprint $this->location->getPathLink($i, true);\n\t\tprint \"</a>\\n\";\n\t}\n?>\n</div>\n<?php\n}\n?>\n\n<!-- START: List table -->\n<table class=\"table\">\n<?php\nif($this->mobile == false)\n{\n?>\n<tr class=\"row one header\">\n\t<td class=\"icon\"> </td>\n\t<td class=\"name\"><?php print $this->makeArrow(\"name\");?></td>\n\t<td class=\"size\"><?php print $this->makeArrow(\"size\"); ?></td>\n\t<td class=\"changed\"><?php print $this->makeArrow(\"mod\"); ?></td>\n\t<?php if($this->mobile == false && GateKeeper::isDeleteAllowed()){?>\n\t<td class=\"del\"><?php print EncodeExplorer::getString(\"del\"); ?></td>\n\t<?php } ?>\n</tr>\n<?php\n}\n?>\n<tr class=\"row two\">\n\t<td class=\"icon\"><img alt=\"dir\" src=\"?img=directory\" /></td>\n\t<td colspan=\"<?php print (($this->mobile == true?1:(GateKeeper::isDeleteAllowed()?4:3))); ?>\" class=\"long\">\n\t\t<a class=\"item\" href=\"<?php print $this->makeLink(false, false, null, null, null, $this->location->getDir(false, true, false, 1)); ?>\">..</a>\n\t</td>\n</tr>\n<?php\n//\n// Ready to display folders and files.\n//\n$row = 1;\n\n//\n// Folders first\n//\nif($this->dirs)\n{\n\tforeach ($this->dirs as $dir)\n\t{\n\t\t$row_style = ($row ? \"one\" : \"two\");\n\t\tprint \"<tr class=\\\"row \".$row_style.\"\\\">\\n\";\n\t\tprint \"<td class=\\\"icon\\\"><img alt=\\\"dir\\\" src=\\\"?img=directory\\\" /></td>\\n\";\n\t\tprint \"<td class=\\\"name\\\" colspan=\\\"\".($this->mobile == true ? 1:2).\"\\\">\\n\";\n\t\tprint \"<a href=\\\"\".$this->makeLink(false, false, null, null, null, $this->location->getDir(false, true, false, 0).$dir->getNameEncoded()).\"\\\" class=\\\"item dir\\\">\";\n\t\tprint $dir->getNameHtml();\n\t\tprint \"</a>\\n\";\n\t\tprint \"</td>\\n\";\n\t\tif($this->mobile != true)\n\t\t{\n\t\t\tprint \"<td class=\\\"changed\\\">\".$this->formatModTime($dir->getModTime()).\"</td>\\n\";\n\t\t}\n\t\tif($this->mobile == false && GateKeeper::isDeleteAllowed())\n\t\t{\n\t\t\tprint \"<td class=\\\"del\\\"><a data-name=\\\"\".htmlentities($dir->getName()).\"\\\" href=\\\"\".$this->makeLink(false, false, null, null, $this->location->getDir(false, true, false, 0).$dir->getNameEncoded(), $this->location->getDir(false, true, false, 0)).\"\\\"><img src=\\\"?img=del\\\" alt=\\\"Delete\\\" /></a></td>\";\n\t\t}\n\t\tprint \"</tr>\\n\";\n\t\t$row =! $row;\n\t}\n}\n\n//\n// Now the files\n//\nif($this->files)\n{\n\t$count = 0;\n\tforeach ($this->files as $file)\n\t{\n\t\t$row_style = ($row ? \"one\" : \"two\");\n\t\tprint \"<tr class=\\\"row \".$row_style.(++$count == count($this->files)?\" last\":\"\").\"\\\">\\n\";\n\t\tprint \"<td class=\\\"icon\\\"><img alt=\\\"\".$file->getType().\"\\\" src=\\\"\".$this->makeIcon($file->getType()).\"\\\" /></td>\\n\";\n\t\tprint \"<td class=\\\"name\\\" colspan=\\\"1\\\">\\n\";\n\t\tprint \"\\t\\t<a href=\\\"\".$this->location->getDir(false, true, false, 0).$file->getNameEncoded().\"\\\"\";\n\t\tif(EncodeExplorer::getConfig('open_in_new_window') == true)\n\t\t\tprint \"target=\\\"_blank\\\"\";\n\t\tprint \" class=\\\"item file\";\n\t\tif($file->isValidForThumb())\n\t\t\tprint \" thumb\";\n\t\tprint \"\\\">\";\n\t\tprint $file->getNameHtml();\n\t\tif($this->mobile == true)\n\t\t{\n\t\t\tprint \"<span class =\\\"size\\\">\".$this->formatSize($file->getSize()).\"</span>\";\n\t\t}\n\t\tprint \"</a>\\n\";\n\t\tprint \"</td>\\n\";\n\t\tif($this->mobile != true)\n\t\t{\n\t\t\tprint \"<td class=\\\"size\\\">\".$this->formatSize($file->getSize()).\"</td>\\n\";\n\t\t\tprint \"<td class=\\\"changed\\\">\".$this->formatModTime($file->getModTime()).\"</td>\\n\";\n\t\t}\n\t\tif($this->mobile == false && GateKeeper::isDeleteAllowed())\n\t\t{\n\t\t\tprint \"<td class=\\\"del\\\">\n\t\t\t\t<a data-name=\\\"\".htmlentities($file->getName()).\"\\\" href=\\\"\".$this->makeLink(false, false, null, null, $this->location->getDir(false, true, false, 0).$file->getNameEncoded(), $this->location->getDir(false, true, false, 0)).\"\\\">\n\t\t\t\t\t<img src=\\\"?img=del\\\" alt=\\\"Delete\\\" />\n\t\t\t\t</a>\n\t\t\t</td>\";\n\t\t}\n\t\tprint \"</tr>\\n\";\n\t\t$row =! $row;\n\t}\n}\n\n\n//\n// The files and folders have been displayed\n//\n?>\n\n</table>\n<!-- END: List table -->\n<?php\n}\n?>\n</div>\n\n<?php\nif(GateKeeper::isAccessAllowed() && GateKeeper::showLoginBox()){\n?>\n<!-- START: Login area -->\n<form enctype=\"multipart/form-data\" method=\"post\">\n\t<div id=\"login_bar\">\n\t<?php print $this->getString(\"username\"); ?>:\n\t<input type=\"text\" name=\"user_name\" value=\"\" id=\"user_name\" />\n\t<?php print $this->getString(\"password\"); ?>:\n\t<input type=\"password\" name=\"user_pass\" id=\"user_pass\" />\n\t<input type=\"submit\" class=\"submit\" value=\"<?php print $this->getString(\"log_in\"); ?>\" />\n\t<div class=\"bar\"></div>\n\t</div>\n</form>\n<!-- END: Login area -->\n<?php\n}\n\nif(GateKeeper::isAccessAllowed() && $this->location->uploadAllowed() && (GateKeeper::isUploadAllowed() || GateKeeper::isNewdirAllowed()))\n{\n?>\n<!-- START: Upload area -->\n<form enctype=\"multipart/form-data\" method=\"post\">\n\t<div id=\"upload\">\n\t\t<?php\n\t\tif(GateKeeper::isNewdirAllowed()){\n\t\t?>\n\t\t<div id=\"newdir_container\">\n\t\t\t<input name=\"userdir\" type=\"text\" class=\"upload_dirname\" />\n\t\t\t<input type=\"submit\" value=\"<?php print $this->getString(\"make_directory\"); ?>\" />\n\t\t</div>\n\t\t<?php\n\t\t}\n\t\tif(GateKeeper::isUploadAllowed()){\n\t\t?>\n\t\t<div id=\"upload_container\">\n\t\t\t<input name=\"userfile\" type=\"file\" class=\"upload_file\" />\n\t\t\t<input type=\"submit\" value=\"<?php print $this->getString(\"upload\"); ?>\" class=\"upload_sumbit\" />\n\t\t</div>\n\t\t<?php\n\t\t}\n\t\t?>\n\t\t<div class=\"bar\"></div>\n\t</div>\n</form>\n<!-- END: Upload area -->\n<?php\n}\n\n?>\n<!-- START: Info area -->\n<div id=\"info\">\n<?php\nif(GateKeeper::isUserLoggedIn())\n\tprint \"<a href=\\\"\".$this->makeLink(false, true, null, null, null, \"\").\"\\\">\".$this->getString(\"log_out\").\"</a> | \";\n\nif(EncodeExplorer::getConfig(\"mobile_enabled\") == true)\n{\n\tprint \"<a href=\\\"\".$this->makeLink(true, false, null, null, null, $this->location->getDir(false, true, false, 0)).\"\\\">\\n\";\n\tprint ($this->mobile == true)?$this->getString(\"standard_version\"):$this->getString(\"mobile_version\").\"\\n\";\n\tprint \"</a> | \\n\";\n}\nif(GateKeeper::isAccessAllowed() && $this->getConfig(\"calculate_space_level\") > 0 && $this->mobile == false)\n{\n\tprint $this->getString(\"total_used_space\").\": \".$this->spaceUsed.\" MB | \";\n}\nif($this->mobile == false && $this->getConfig(\"show_load_time\") == true)\n{\n\tprintf($this->getString(\"page_load_time\").\" | \", (microtime(TRUE) - $_START_TIME)*1000);\n}\n?>\n<a href=\"http://encode-explorer.siineiolekala.net\">Encode Explorer</a>\n</div>\n<!-- END: Info area -->\n</body>\n</html>\n\n<?php\n\t}", "title": "" }, { "docid": "42377ea60655acf6b565fab2916384ec", "score": "0.5658011", "text": "private function displayResult() {\n\t\t\tNGS()->getTemplateEngine()->display();\n\n\t\t}", "title": "" }, { "docid": "5c791a030e15ce8c29a46fd94237b41e", "score": "0.56547815", "text": "public function output_snippet() {\n ?>\n <div class=\"sso-container\">\n <?php if (!empty($_GET['saml-error'])) { ?>\n <p class=\"sso-error\"><?php echo $_GET['saml-error'];?></p>\n <?php } ?>\n <a href=\"?option=saml_user_login&redirect_to=/wp-admin\" class=\"button button-primary button-large sso-button\">\n RFG Login\n </a>\n </div>\n <?php\n }", "title": "" }, { "docid": "6618e62c4d19a2314d74ee19237f8023", "score": "0.56546724", "text": "public function run()\n\t{\n\t\tif(($pageCount=$this->getPageCount())<=1)\n\t\t\treturn;\n\t\t$pages=array();\n\t\tfor($i=0;$i<$pageCount;++$i)\n\t\t\t$pages[$this->createPageUrl($i)]=$this->generatePageText($i);\n\t\t$selection=$this->createPageUrl($this->getCurrentPage());\n\t\techo $this->header;\n\t\techo CHtml::dropDownList($this->getId(),$selection,$pages,$this->htmlOptions);\n\t\techo $this->footer;\n\t}", "title": "" }, { "docid": "49e95e6748f9915e4e3675961b27fb97", "score": "0.56545746", "text": "public function display_admin_page(){\n\t\t\techo \"<div class='wrap \" . PhoneNumberSwappy::$prefix . \"options-page \" . PhoneNumberSwappy::$prefix . \"wrap'>\";\n\t\t\t// $msg = $this->save_admin();\n\t\t\t$current_tab = ( isset( $_GET['tab'] ) ) ? intval( $_GET['tab'] ) : 0 ;\n\t\t\t$msg = '';\n\t\t\t$noncename = PhoneNumberSwappy::$prefix . 'nonce';\n\t\t\t$nonceaction = PhoneNumberSwappy::$prefix . 'do_save_nonce';\n\t\t\t// $msg = $this->save_admin();\n\t\t\techo \"<h2 class='\" . PhoneNumberSwappy::$prefix . \"option-page-title'>Plugin Options</h2>\";\n\n\t\t\t$this->do_tabs($current_tab);\n\n\t\t\techo \"<form action='' method='post'>\";\n\t\t\t$this->generate_option_fields($current_tab);\n\t\t\t$key = intval($current_tab);\n\t\t\t$tabvals = $this->static['tabs'][$current_tab];\n\t\t\t$hidesave = ( isset($tabvals['informational']) ) ? $tabvals['informational'] : false;\n\t\t\tif ( ! $hidesave ){\n\t\t\t\t$savepost = PhoneNumberSwappy::$prefix . \"save_post\";\n\t\t\t\techo \"<input type='hidden' name='{$savepost}' value='1' />\";\n\t\t\t\techo \"<input type='hidden' name='tab' value='{$current_tab}' />\";\n\t\t\t\twp_nonce_field( $nonceaction, $noncename );\n\t\t\t\techo \"<button class='button button-primary \" . PhoneNumberSwappy::$prefix . \"plugin-save-btn' type='submit'>Save Options</button>\";\n\t\t\t}\n\t\t\tif (isset($_GET['debug']))\n\t\t\t\t$this->debug_info();\n\t\t\techo \"</form>\";\n\t\t\techo \"</div><!-- EOF WRAP -->\";\n\t\t}", "title": "" }, { "docid": "3f8e1a358d316d02430d94035085a75f", "score": "0.5654178", "text": "function print_html() : void {\n\t\t\t// Code for writing tags\n\t\t\t$tag_code = \"(function () {var taglists = document.getElementsByClassName('tags');\";\n\n\t\t\tforeach ($this->problems as $num=>$problem)\n\t\t\t\t$problem->print_html($tag_code, $num);\n\n\t\t\t$tag_code .= \"})();\";\n\t\t\tprint \"<script id='tagscript'>$tag_code</script>\";\n\t\t}", "title": "" }, { "docid": "14002cc9f46f85225d663eac446841ea", "score": "0.5653091", "text": "public function getContent(): string {\n $content = inBox(\"\n <h1>Админ::Задачи</h1>\n\n <div class='centered'>\n <input type='submit' value='Нова задача' onclick='redirect(`problems/new`);' class='button button-large button-color-blue'>\n </div>\n \");\n $content .= $this->getProblemsList();\n\n // Specific problem is open\n if (isset($_GET[\"problemId\"])) {\n $problem = $_GET[\"problemId\"] == \"new\" ? new Problem() : Problem::get($_GET[\"problemId\"]);\n if ($problem == null) {\n $content .= showNotification(\"ERROR\", \"Не съществува задача с този идентификатор!\");\n }\n\n $redirect = \"/admin/problems\";\n $content .= \"\n <script>\n showEditProblemForm(`{$this->getEditProblemForm($problem)}`, `{$redirect}`);\n let anchor = (document.URL.split('#').length > 1) ? document.URL.split('#')[1] : '';\n if (anchor === 'options') changeTab('optionsTab');\n if (anchor === 'statement') changeTab('statementTab');\n if (anchor === 'tests') changeTab('testsTab');\n if (anchor === 'solutions') changeTab('solutionsTab');\n </script>\n \";\n $content .= $this->getEditProblemScript($problem);\n }\n\n return $content;\n }", "title": "" }, { "docid": "047aaf5c9cf03d3ad5503d9fd0c1378c", "score": "0.5652022", "text": "protected function _output() : void\n\t{\n\t\t$this->_pageTitle = __\\HTML::correctTypography($this->_page->title);\n\t\t$this->_HTMLHead->title('Właściwości: „' . $this->_pageTitle . '”');\n\n\t\t$this->_HTMLContextMenu->append('Edycja', self::URL('pageEdit', ['id' => $this->_page->id]), 'iconEdit');\n\t\t$this->_HTMLContextMenu->append('Ustawienia', self::URL('pageSettings', ['id' => $this->_page->id]), 'iconSettings');\n\n\t\t$this->_HTMLTemplate->page = $this->_page;\n\n\t\t// \"userId\" property.\n\t\t$this->_HTMLTemplate->hideUserIdChange = true;\n\t\t$this->_HTMLTemplate->usersIdList = [];\n\n\t\tif (!$this->_settings->lockdownUsers) {\n\t\t\t$this->_HTMLTemplate->hideUserIdChange = false;\n\n\t\t\t$usersIdList = array_column(__\\User::getAll(), 'name', 'id');\n\t\t\tif (!$this->_page->userId) {\n\t\t\t\t// userId column is set to NULL by foreign key of DBMS when user is deleted.\n\t\t\t\t$usersIdList += ['' => '(użytkownik został usunięty)'];\n\t\t\t}\n\t\t\t$this->_HTMLTemplate->usersIdList = $usersIdList;\n\t\t}\n\n\t\t// \"noIndex\" property.\n\t\t$this->_HTMLTemplate->disableNoIndex = false;\n\t\tif (strpos($this->_settings->searchEnginesRobots, 'noindex') !== false) {\n\t\t\t$this->_page->noIndex = true; // Fake value used to check the checkbox, won't be saved in database.\n\t\t\t$this->_HTMLTemplate->disableNoIndex = true;\n\t\t}\n\n\t\t// Check current user permissions.\n\t\t$this->_HTMLTemplate->disallowUserIdChange = !($this->_currentUser->permissions & __\\User::PERM_EDIT_PAGES);\n\t\t$this->_HTMLTemplate->disallowPublicPage = !($this->_currentUser->permissions & __\\User::PERM_PUBLISH_PAGES);\n\n\t\t// Show warning and lock form controls when user isn't permitted to modify page.\n\t\t$this->_HTMLTemplate->disallowModifications = !$this->_isUserAllowedToEditPage($this->_page);\n\t}", "title": "" }, { "docid": "48e17f1a4c6bb5f576bc7b8b6bfd627a", "score": "0.5648292", "text": "private function renderHTML () {\n // Set the HTTP status code and headers.\n header('HTTP/1.1 '.$this->statusCode);\n header('Content-Type: text/html');\n $this->setHeaders();\n // Extract the data and include the view file.\n extract($this->data);\n include($this->file);\n // Show the HTML console.\n if (CONSOLE) {\n require(SYS.'/html/console.php');\n }\n }", "title": "" }, { "docid": "5ca0f0b6e2e51400dd561bbebecb9729", "score": "0.5637574", "text": "public function run()\n\t{\n\t\tlist($name,$id)=$this->resolveNameID();\n\t\tif(substr($name,-2)!=='[]')\n\t\t\t$name.='[]';\n\t\tif(isset($this->htmlOptions['id']))\n\t\t\t$id=$this->htmlOptions['id'];\n\t\telse\n\t\t\t$this->htmlOptions['id']=$id;\n\t\t$this->registerClientScript();\n\t\techo CHtml::fileField($name,'',$this->htmlOptions);\n\t}", "title": "" }, { "docid": "2b10d59b977f4d9cc021447af395a6d8", "score": "0.56361365", "text": "private function _displayCompropago()\n {\n return $this->display(__FILE__, './views/templates/hook/infos.tpl');\n }", "title": "" }, { "docid": "f562c3e20175f7d4f9d4e3d2dbdab8ae", "score": "0.5631309", "text": "public function run()\n\t{\n\t\t$content = $this->getTitle();\n \n if ( $this->success() ) {\n $content .= '<p class=\"form-success\">Your practice has been updated.</p>';\n }\n\t\t\n if ( isset( $this->data['error']['form'] ) ) {\n $content .= '<p class=\"form-error\">' . $this->data['error']['form'] . '</p>';\n }\n\t\t$this->form = new Form;\n\t\t$this->buildForm();\n\t\t$content .= $this->form->getHtml();\n\t\t\n\t\t// Add the delete link\n\t\tif ( isset( $this->data['id'] ) ) {\n\t\t\t//$content .= $this->deleteLink();\n\t\t}\n\t\t\n\t\t$this->content = $content;\n\t}", "title": "" }, { "docid": "bf8236d858ba5b9ff12dc77dcc677255", "score": "0.56292605", "text": "function HtmlStart()\n {\n echo \"<HTML>\\n\" ;\n }", "title": "" }, { "docid": "57119a96174503a1b3c1a5f735b87a1c", "score": "0.5628341", "text": "public function output() {\n\t\tFrmAppHelper::include_svg();\n\t\t$this->css();\n\t\t$class = FrmAppHelper::pro_is_installed() ? 'pro' : 'lite';\n\n\t\techo '<div id=\"frm-welcome\" class=\"wrap frm-wrap frm-admin-plugin-landing upgrade_to_pro ' . sanitize_html_class( $class ) . '\">';\n\n\t\t$this->header();\n\t\t$this->main_content();\n\n\t\techo '</div>';\n\t}", "title": "" }, { "docid": "213cf9861bfbb60f4ee3e7a001143653", "score": "0.562512", "text": "function toHtml()\n\t{\n global $PAGE;\n\n // Create the label for the editor.\n $html = html_writer::tag('label', $this->getLabel(), array('for' => $this->getAttribute('id'), 'class' => 'accesshide'));\n\n // Create the text area that the editor is based around.\n $html .= parent::toHtml();\n\n // Generate the pair of nested divs that will house a list of any errors encountered.\n $divid = $this->getAttribute('id').'_dynamicerrors';\n $div = html_writer::tag('div', '', array('class' => 'felement', 'id' => $divid));\n $html .= html_writer::tag('div', $div, array('class' => 'fitem'));\n\n $jsmodule = array(\n 'name' => 'qtype_scripted',\n 'fullpath' => '/question/type/scripted/module.js',\n 'requires' => array('node'),\n 'strings' => array() //TODO: internationalize error checks?\n );\n\n //Get the options with which the editor should be initializes.\n $highlighting = $this->_options['highlighting'];\n $language = $this->_options['language'];\n\n //Initialize the syntax checker module.\n $PAGE->requires->js_init_call('M.qtype_scripted.init_dynamic', array($this->getAttribute('id'), $highlighting, $language), true);\n\n return $html;\n\t}", "title": "" }, { "docid": "44696b163ab5d46a24ce8be3994ed22b", "score": "0.5620219", "text": "public function pageHelp()\n\t{\n\t\t$body = new Body();\n\n\t\t$body->addTitle('', LOC_OPTION_TOURNAMENTS_POONA, 3);\n\t\t$body->addP('', LOC_P_HELP_TOURNAMENT_POONA, 'bn-p-info');\n\t\t$body->addTitle('', LOC_OPTION_TOURNAMENTS_BADNET, 3);\n\t\t$body->addP('', LOC_P_HELP_TOURNAMENT_BADNET, 'bn-p-info');\n\t\t$body->addTitle('', LOC_OPTION_PLAYERS, 3);\n\t\t$body->addP('', LOC_P_HELP_PLAYER, 'bn-p-info');\n\t\t$body->addButtonCancel('btnClose', LOC_BTN_CLOSE);\n\n\t\t// Envoi des donnees\n\t\t$body->display();\n\t\treturn false;\n\t}", "title": "" } ]
61350191caf742630ff529ef5718d6ba
Creates a form to delete a User entity by id.
[ { "docid": "52d8dbcb8775634b55ec45179184f11b", "score": "0.75980246", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_users_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" } ]
[ { "docid": "3845e7f30966b21d6642d9a0a20c85ce", "score": "0.81035024", "text": "public function deleteFormUser($id) {\n $user = $this->UserModel->getRow($id);\n \n include(\"views/user/delete.php\");\n }", "title": "" }, { "docid": "e75972c49c8c708c01ab9ec9dfed8695", "score": "0.7838091", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b2c167a47dbdba943cfb8adb403186d2", "score": "0.7809424", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_user_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "e2908fe945a38c13c0ea4c64d67e48ec", "score": "0.7763908", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('app_user_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b176c0dd4b9be9aba798ac897f2e7397", "score": "0.77437425", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b176c0dd4b9be9aba798ac897f2e7397", "score": "0.77437425", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b176c0dd4b9be9aba798ac897f2e7397", "score": "0.77437425", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b176c0dd4b9be9aba798ac897f2e7397", "score": "0.77437425", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "e4e60a920a10d856fa238e10a4bd098e", "score": "0.76108176", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('users_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "4fcbb62e7348f6c036826e098671a608", "score": "0.75959635", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('usuario_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "d6e0ffe3d1e3cd7eb94eeb043a61c536", "score": "0.75818866", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('users_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('attr' => array('class' => 'btn btn-primary'), 'label' => 'Delete'))\n ->getForm();\n }", "title": "" }, { "docid": "49aeb2ff8a9478da0b6f118c02aa8161", "score": "0.75733215", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_users_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "eaf5de37b0bc51b2f9d798f40ecd4419", "score": "0.75671524", "text": "public function getDeleteForm($id){\n \n $userL = Sentinel::check(); \n if($userL){\n $ci = User::find($id);\n return view('admin.user.delete',['ci'=>$ci])->render();\n } \n }", "title": "" }, { "docid": "29cb504add43130ca927c6373aea1274", "score": "0.7551161", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm();\n\n }", "title": "" }, { "docid": "49efe5b51a234d7638f32194acf80dc5", "score": "0.7548616", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('main_user2_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "bf2c71ed7107a4d98ec83d29928be865", "score": "0.7526193", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm();\n }", "title": "" }, { "docid": "2433aca82a494bbbb04923afd87bf4ec", "score": "0.75067025", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('usuario_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "661ba1cdd5fdcad5a2895a48ed98cdee", "score": "0.7504355", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('usuarios_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => ' Eliminar', 'attr' => array('icon' => 'remove' )))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c7cbe33015828a71edf061f7ceb59cdf", "score": "0.74987984", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "5e2c7bc4287488b986bde12f2e2e1757", "score": "0.74986887", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "5e2c7bc4287488b986bde12f2e2e1757", "score": "0.74986887", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "a8467aa9192b1a0a4769cf69e1de675d", "score": "0.7462442", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('GestionUsersEn_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "cf2a6559f8d4f756a3b8e32516feb498", "score": "0.7443923", "text": "private function del()\n {\n if (filter_input(INPUT_POST, 'id', FILTER_VALIDATE_INT)) {\n $id = filter_input(INPUT_POST, 'id', FILTER_SANITIZE_NUMBER_INT);\n } else if (filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT)) {\n $id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);\n } else {\n $id = null;\n }\n $user = new UserModel();\n if (!$id || !$user->load($this->db, $id)) {\n $this->show((string) new Message('User to delete not found.', Message::ALERT));\n return;\n }\n $userSuccessfullyDeleted = false;\n $message = '';\n if (filter_input(INPUT_POST, 'action') == 'del') {\n $userSuccessfullyDeleted = $user->delete($this->db);\n $message = (string) $user->getMessage();\n }\n if (!$userSuccessfullyDeleted) {\n echo Template::create('page', [\n 'message' => $message,\n 'content' => (string) new Template('deleteUserForm', ['id' => $user->getId(), 'name' => $user->getSurname()])\n ]);\n } else {\n $this->show($message);\n }\n }", "title": "" }, { "docid": "90716f686cdadf1dd1f2fe0977417d92", "score": "0.74393827", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('usuariointerno_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "2c5dce0148aace3468190434560af4e0", "score": "0.74274015", "text": "private function createDeleteForm($userId)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('userId' => $userId)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array(\n \t\t'label' => 'Delete',\n \t\t'attr' => array('class' => 'ui-btn ui-corner-all ui-shadow ui-btn-b ui-btn-icon-left ui-icon-check')\n ))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "0b7e0add88127129899101b79185053a", "score": "0.7416995", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "0b7e0add88127129899101b79185053a", "score": "0.7416995", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_user_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "a0772872fda66013e7a386fd2d7f3aac", "score": "0.73991066", "text": "function user_delete_form($user_id) {\n\t$user = new User();\n $user->byID($user_id);\n if ($user->affected > 0) {\n $frm = new DbForm();\n\t\t$user->first_last_name = $user->first_name . ' ' . $user->last_name;\n $frm->build('user_delete_form', $user, $_SESSION['log_access_level']);\n }\n else {\n\t\tnatural_set_message('Problems loading user ' . $user_id, 'error');\n\t return FALSE;\n }\n}", "title": "" }, { "docid": "54fcdfcd9f7ef5b9475b5cfc938c6d1d", "score": "0.7391372", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user-post_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "title": "" }, { "docid": "92e1f82f36b054d473925f40edd600fc", "score": "0.7339243", "text": "private function createDeleteForm(Users $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('users_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "8124a4d9e7073a61c486a4ab99b7388f", "score": "0.73275614", "text": "private function createDeleteForm(User $user)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_delete', array('id' => $user->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b8aae5d1216de8389cdef4c7b99b0d7c", "score": "0.73251885", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tutorias_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => \"Eliminar\", 'attr' => array('class' => 'btn btn-danger')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "834d593531827e3ddcf670bdcdc01f64", "score": "0.7244541", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('profissao_delete', array('id' => $id)))\n ->setMethod('DELETE')\n //->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "6a67a902fc769ccb1c66c586d66d9ae3", "score": "0.7221509", "text": "private function createDeleteForm($id) {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('grhemployes_delete', array('id' => $id)))\r\n// ->setMethod('DELETE')\r\n ->add('submit', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType'), array('label' => 'Supprimer'))\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "14a543d8ee244e828782b6efb4ed3363", "score": "0.7206717", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('u__delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "be6aa88e3048fc6023e62dad47430434", "score": "0.71748716", "text": "private function createDeleteForm($id) {\n\t\t\treturn $this->createFormBuilder()\n\t\t\t ->setAction($this->generateUrl('individu_delete', array('id' => $id)))\n\t\t\t ->setMethod('DELETE')\n\t\t\t ->add('submit', 'submit', array('label' => 'Delete'))\n\t\t\t ->getForm();\n\t\t}", "title": "" }, { "docid": "6057140ea816fb24a6f45c4af3a9d67c", "score": "0.71700823", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('zz_app_usersmoke_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "title": "" }, { "docid": "9a5839302281142294f7304fba139d96", "score": "0.7164647", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('activo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "f7da02cebae578689834f637318b3288", "score": "0.71456015", "text": "private function createDeleteForm(Usuarios $user)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('admin_user_delete', array('id' => $user->getId())))\r\n ->setMethod('DELETE')\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "dfea9b337dfac1341d01e5a4037a8bf3", "score": "0.7144224", "text": "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('supprimer_instance', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm();\r\n }", "title": "" }, { "docid": "31353b1a3baf8cb71ee0956034a5ffc1", "score": "0.71409404", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('alumno_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "41ff07b74c460f11688e79950982d010", "score": "0.713942", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('userroles_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "1b5b3518fac5d3e939b81796f7dd2f85", "score": "0.7137908", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('precios_delete', array('id' => $id)))\n ->setMethod('DELETE')\n //->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "ab821ecce5d4751e02a3dd28113feac5", "score": "0.71313477", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('administradores_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "0c3327ef054dbe6b798c465659e24212", "score": "0.71277624", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('curso_delete', array('id' => $id)))\n ->setMethod('DELETE')\n // ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "34bf3ffe63c24970553499bb08bdfbb4", "score": "0.71003246", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cuestionarios_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "title": "" }, { "docid": "e8612c59868be7ab5461714258226fd6", "score": "0.7098863", "text": "public function showDeleteForm($id)\n {\n // Get the user or fail.\n $user = User::findOrFail($id);\n\n // Return the view to delete the user.\n return view(\"admin.user.delete\")->withUser($user);\n }", "title": "" }, { "docid": "3805f2f24a11678ba0db5d9593dfd550", "score": "0.7098404", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('registro_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Borrar','attr' => array('class' => 'btn btn-danger btn-sm')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b37855e029b9e3a8954e0e12ef478ebd", "score": "0.7078207", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('visita_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "345d0a13581cfb68090188475106362e", "score": "0.7076973", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('discoduro_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar','attr' => array('class' => 'btn btn-danger')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "7a6231d9148611328706778036220004", "score": "0.70763755", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cdeudas_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "title": "" }, { "docid": "917be7f8ac8478ac9f2ca7954859f4f3", "score": "0.7074949", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('usuario_proyecto_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Cancelar proyecto'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "652f536ef8bdcfc9f1081bb7b91d7506", "score": "0.70649225", "text": "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('plaisir_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "1a7400aa690cdb0f1f986410dd0992e0", "score": "0.70578074", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('colegiado_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c5daa1ba71e11296287bf40ca52f6802", "score": "0.7056743", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('informefinanciero_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b4a580aff34f80f73287deeb9bc505b1", "score": "0.7053913", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('offre_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Supprimer'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "dc4e90e8a4c02b59a794d3cd94e4f900", "score": "0.70520514", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('reservaciones_delete', array('id' => $id)))\n ->setMethod('DELETE')\n //->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "5eb264a75170c03855ce33b58ef393e8", "score": "0.7041922", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('datosfiscales_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "7951848d005ea1a694b3760ad25142d8", "score": "0.70379066", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('actividades_delete', array('id' => $id)))\n ->setMethod('DELETE')\n //->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "1b1f70d92bcc14033a7666e3e990063e", "score": "0.7036798", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('sites_delete', array('id' => $id)))\n ->setMethod('DELETE')\n //->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "cf41c58c96388642f8880b915ebc3f81", "score": "0.70339745", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('aulas_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Borrar'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "07808ed3b99f29e5112e9bd809b61bca", "score": "0.70315903", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tecnico_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "4f6eb5f76e6ab4a5690af2e8d8f8ed52", "score": "0.7030398", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('direccioncliente_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar','attr' => array('class' => 'btn btn-danger')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "1a6ac55d860771046012f9c8d885c8e6", "score": "0.7029694", "text": "public function deleteAction(Request $request, $id) {\n $form = $this->createDeleteForm($id);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('kidskulaadminBundle:User')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find User entity.');\n }\n\n $em->remove($entity);\n $em->flush();\n }\n\n return $this->redirect($this->generateUrl('user-post'));\n }", "title": "" }, { "docid": "8344f606c9dffdaa3fde4690b0d48eef", "score": "0.7027828", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('evento_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Borrar'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "fadcdd20687533e7b11aacf28eff808b", "score": "0.7024946", "text": "private function createDeleteForm($id) {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('supprimer_signalisation', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm();\r\n }", "title": "" }, { "docid": "ee2bc79a34e2310688a7ddbd37b4abff", "score": "0.7020481", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('avatar_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "3b862ec643501d9929d9791efdc2ea3f", "score": "0.7020231", "text": "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('terceros_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "bc5da135d1d46865380f637be6386e15", "score": "0.70181566", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('campodocumento_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "0fc1abbb3244e8f3c6c25c1af4774380", "score": "0.7011508", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('pauta_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar Pauta'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "24b051e9501c8971d2b5914a38e3a74d", "score": "0.7010465", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('costo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "fc204291d283f8ef2a33f490916fb67e", "score": "0.7009292", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('festivos_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "96a52b850cc91fcf53d5d2cc994a109e", "score": "0.70092803", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('antecedentepenal_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar', 'attr'=>array('class'=>'btn btn-primary')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "876c8af64ebc8ce20b7d9658f9f7684f", "score": "0.70089245", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('customer_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "15a0feab1a2cae2fd8a371eccd87d7d4", "score": "0.7008441", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('komentarz_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, array('label' => 'Skasuj Komentarz','attr' => array('class' => 'btn btn-danger' )))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "9d0ce01cf0e81f114a3f23dbd1a62bf1", "score": "0.7008308", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('administracion_tiposervicio_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "title": "" }, { "docid": "e62035b09b0a2aa9d71fb236ef8c5226", "score": "0.70077294", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('object_object_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Удалить номер'))\n ->getForm();\n }", "title": "" }, { "docid": "c43c8429926399e3bc7ac527fc66e4cc", "score": "0.7007171", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('table_delete', ['id' => $id]))\n ->setMethod('DELETE')\n ->add('submit', 'submit', ['label' => 'Ištrinti', 'attr' => ['class' => 'btn btn-danger btn-block']])\n ->getForm();\n }", "title": "" }, { "docid": "2c5e19d8c93c87cb02e15a59b0e434d8", "score": "0.7004597", "text": "private function createDeleteForm($id) {\n\t\t\treturn $this->createFormBuilder()\n\t\t\t ->setAction($this->generateUrl('voie_delete', array('id' => $id)))\n\t\t\t ->setMethod('DELETE')\n\t\t\t ->add('submit', 'submit', array('label' => 'Delete'))\n\t\t\t ->getForm();\n\t\t}", "title": "" }, { "docid": "7309264bb92dcc2fe74271efa2d8e686", "score": "0.700351", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('modelo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "d5e47826921522f06837b9e63dc8ad64", "score": "0.70032275", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('seguridad_perfil_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "8ea3b4714d92529b59c1dc5f9095c24a", "score": "0.7001111", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('customers_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, array('label' => 'Delete'))\n ->getForm();\n }", "title": "" }, { "docid": "a19a5f93a2d5a5603772adbfedc0bae4", "score": "0.70008004", "text": "private function createDeleteForm($id) {\r\n $icon = '<i class=\"icon icon-remove\"></i>';\r\n //$icon = html_ ($icon);\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('article_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType'), array('label' => 'Supprimer l\\'article courant'))\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "cc24bc68aab9b9cf653850d42bed8141", "score": "0.69997865", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('comentarioproyecto_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "174f7c371fe14982a3e744c383cd45aa", "score": "0.69929045", "text": "private function createDeleteForm($id) {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('grhcontrats_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', LegacyFormHelper::getType('Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType'), array('label' => 'Supprimer'))\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "71a84110c136720061b9707eb859dd90", "score": "0.6991444", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('clientes_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "02a37717c4e107e032e26e3f01241f80", "score": "0.69885594", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('absensi_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "29de813d9e6c8f53c806bbcce1dc97ef", "score": "0.69862455", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('vehicule_delete', array('id' => $id)))\n ->setMethod('DELETE')\n //--\n ->add('supprimer', 'submit', array('label' => 'S', 'attr' => array('class' => 'btn-supp btn-danger', 'title' => 'Supprimer')))\n //--\n ->getForm()\n ;\n }", "title": "" }, { "docid": "2ce8346bc924cbce49b3b6bd1d6442f9", "score": "0.69860953", "text": "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('typetable_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', SubmitType::class, array('label' => 'Delete'))\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "8ac822b58a1949ac059084959cc72a0e", "score": "0.6985455", "text": "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('masdocumentos_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "b6d8cfeae0036155d8834bba4ad5e5cf", "score": "0.69843376", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('gasto_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "title": "" }, { "docid": "57a254770b91584b264ab48c6fe69b43", "score": "0.69840354", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('color_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => '刪除'))\n ->getForm()\n ;\n }", "title": "" } ]
80ec399be902cf48059a577e332ec2b2
Defines configuration options for this command.
[ { "docid": "b7d0d23870adc856b298f95ac3fda285", "score": "0.0", "text": "protected function configure(): void {\n $this->setName('site:remove');\n $this->setDescription('Remove a site from the project');\n $this->setAliases(['sr']);\n\n $this->addArgument('siteid', InputArgument::OPTIONAL, 'Site ID (Must be a machine name e.g. uregni)');\n }", "title": "" } ]
[ { "docid": "8391ce72b8f47d6d6c74ac284aa3cfaa", "score": "0.74467504", "text": "protected function configure()\n {\n $this->setHelp(\n <<<EOT\n I'm not sure what to put here yet\nEOT\n )\n ->addOption('mid', null, InputOption::VALUE_REQUIRED, 'The id of the monitor record')\n ->addOption('max-runs', null, InputOption::VALUE_REQUIRED, 'The maximum number of recursive iterations permitted')\n ->addOption('query-count', null, InputOption::VALUE_OPTIONAL, 'The number of records to search for per iteration. Default is 100.', 100)\n ->addOption('show-posts', null, InputOption::VALUE_NONE, 'Use this option to display the posts retrieved')\n ->addOption('show-stats', null, InputOption::VALUE_NONE, 'Use this option to display the stats of the tweets fetched');\n }", "title": "" }, { "docid": "e25d31b4f75adb069a8d2228404472e6", "score": "0.74206334", "text": "protected function configure()\n {\n $this->addOption('cmd', 'cmd', InputOption::VALUE_REQUIRED);\n $this->addOption('config_path', 'cfg', InputOption::VALUE_REQUIRED);\n }", "title": "" }, { "docid": "e25d31b4f75adb069a8d2228404472e6", "score": "0.74206334", "text": "protected function configure()\n {\n $this->addOption('cmd', 'cmd', InputOption::VALUE_REQUIRED);\n $this->addOption('config_path', 'cfg', InputOption::VALUE_REQUIRED);\n }", "title": "" }, { "docid": "fd12ac9135d74e49fad5acbe73d91b15", "score": "0.7167833", "text": "protected function configure()\n {\n $this\n ->addOption('recommended', null, InputOption::VALUE_NONE, 'Only include recommended updates')\n ->addOption('restart', null, InputOption::VALUE_NONE, 'Only include restart updates')\n ->addOption('shutdown', null, InputOption::VALUE_NONE, 'Only include shutdown updates')\n ->addOption('no-scan', null, InputOption::VALUE_NONE, 'Do not scan for new updates')\n ->addOption('timeout', null, InputOption::VALUE_REQUIRED, 'Software Update timeout in seconds.', $this->getDefaultTimeout())\n ;\n }", "title": "" }, { "docid": "3d6d86ad7d777de0dc5245a4cca781c0", "score": "0.7067249", "text": "protected function configure()\n {\n $this->setDescription('Start consuming asynchronous commands from the command bus');\n $this->addOption(\n 'limit',\n null,\n InputOption::VALUE_OPTIONAL,\n 'Number of jobs to handle before dying',\n 0\n );\n\n /*\n * If we have the EventBus loaded, we can add listeners as well\n */\n if (class_exists(EventBus::class)) {\n $this->addOption(\n 'exchange',\n null,\n InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED,\n 'Exchanges to listen'\n );\n }\n\n $this->addOption('prefetch-size', null, InputOption::VALUE_OPTIONAL, 'Prefetch size. Only for AMQP', 0);\n $this->addOption('prefetch-count', null, InputOption::VALUE_OPTIONAL, 'Prefetch count. Only for AMQP', 1);\n $this->addOption('is-prefetch-local', null, InputOption::VALUE_NONE, 'Prefetch is global. Only for AMQP');\n }", "title": "" }, { "docid": "083bbfc7ddaca19ffe87078382c1d28d", "score": "0.6944226", "text": "protected function configure()\n {\n $this\n ->setDescription('Load les clients')\n ->addOption('fileName', null, InputOption::VALUE_OPTIONAL, 'Le nom de fichier')\n ;\n }", "title": "" }, { "docid": "93a794d263028d5295aec00e7d459ef0", "score": "0.69094765", "text": "protected function configure()\n {\n $this->setName($this->command)->setDescription($this->description);\n\n $this->addArguments();\n $this->addOptions();\n }", "title": "" }, { "docid": "357e722a519bacb5ad13a46283077afd", "score": "0.68801785", "text": "protected function configure()\n {\n\n // initialize the command with the required/optional options\n $this->setName(CommandNames::IMPORT_CREATE_CONFIGURATION_FILE)\n ->setDescription('Create\\'s a configuration file from the given entity\\'s template')\n ->addOption(InputOptionKeysInterface::DEST, null, InputOption::VALUE_REQUIRED, 'The relative/absolut pathname of the destination file');\n\n // invoke the parent method\n parent::configure();\n }", "title": "" }, { "docid": "b19499538a71abe381592ce29f60922a", "score": "0.6878253", "text": "protected function configure($options = array(), $attributes = array())\r\n {\r\n// $this->addOption('date', array());\r\n// $this->addOption('time', array());\r\n $this->addOption('with_time', true);\r\n $this->addOption('context', 'form');\r\n// $this->addOption('format', '%date% %time%');\r\n }", "title": "" }, { "docid": "e5bad7cbb06618a2317ea7f9959bf6ae", "score": "0.6823869", "text": "protected function configure()\r {\r $this->addArguments(array(\r new sfCommandArgument('download', sfCommandArgument::OPTIONAL, 'Skip downloading input file if false.'),\r ));\r\r $this->addOptions(array(\r new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'recording'),\r new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\r new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel'),\r // add your own options here\r ));\r\r $this->namespace = 'recording';\r $this->name = 'cj';\r $this->briefDescription = 'Imports Commission Junction Data Dumps';\r $this->detailedDescription = <<<EOF\rImports Commission Junction Data Dumps\r\r [php symfony sitemap|INFO]\rEOF;\r }", "title": "" }, { "docid": "f5c298b1f48ed37074af1a1901fd94f2", "score": "0.67809945", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'uUtil';\n $this->name = 'showconfig';\n $this->briefDescription = 'Show the project configuration';\n $this->detailedDescription = <<<EOF\nThe [uUtil:showconfig|INFO] emits the sfConfig array for the given application\nand environment.\n\nCall it with:\n\n [php symfony uUtil:showconfig|INFO]\nEOF;\n }", "title": "" }, { "docid": "16c70dcd0dfdcc9b86b44058ec2ee824", "score": "0.6763159", "text": "protected function defineCommandOptions()\n {\n $this->addArgument(\n 'path',\n InputArgument::REQUIRED,\n 'Installation Path'\n );\n\n /**\n * Allows user to supply path to a globals file to use\n */\n $this->addOption(\n 'import-globals',\n 'i',\n InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,\n 'Import settings from globals file',\n array()\n );\n\n /**\n * If running iteractively, prompt for all available options\n */\n $this->addOption(\n 'all',\n 'A',\n InputOption::VALUE_NONE,\n 'Prompt for all globals options when running interactively'\n );\n\n\n /**\n * ModxInstallerConfig properties\n */\n $this->addOption('database_type', null, InputOption::VALUE_REQUIRED, 'DB Type');\n $this->addOption('database_server', null, InputOption::VALUE_REQUIRED, 'DB Host');\n $this->addOption('database', null, InputOption::VALUE_REQUIRED, 'DB Name');\n $this->addOption('database_user', null, InputOption::VALUE_REQUIRED, 'DB User');\n $this->addOption('database_password', null, InputOption::VALUE_REQUIRED, 'DB Password');\n $this->addOption('database_connection_charset', null, InputOption::VALUE_REQUIRED, 'DB Connection charset');\n $this->addOption('database_charset', null, InputOption::VALUE_REQUIRED, 'DB charset');\n $this->addOption('database_collation', null, InputOption::VALUE_REQUIRED, 'DB collation');\n $this->addOption('table_prefix', null, InputOption::VALUE_REQUIRED, 'Table prefix');\n $this->addOption('https_port', null, InputOption::VALUE_REQUIRED, 'Https port');\n $this->addOption('http_host', null, InputOption::VALUE_REQUIRED, 'Http Server host');\n $this->addOption('cache_disabled', null, InputOption::VALUE_REQUIRED, 'Disable cache');\n $this->addOption('inplace', null, InputOption::VALUE_NONE, 'Extracted from GIT?');\n $this->addOption('unpacked', null, InputOption::VALUE_NONE, 'Core package already extracted');\n $this->addOption('language', null, InputOption::VALUE_REQUIRED, 'Default language');\n $this->addOption('cmsadmin', null, InputOption::VALUE_REQUIRED, 'Admin user');\n $this->addOption('cmspassword', null, InputOption::VALUE_REQUIRED, 'Admin password');\n $this->addOption('cmsadminemail', null, InputOption::VALUE_REQUIRED, 'Admin email');\n $this->addOption('core_path', null, InputOption::VALUE_REQUIRED, 'Core Path');\n $this->addOption('context_mgr_path', null, InputOption::VALUE_REQUIRED, 'Manager Path');\n $this->addOption('context_mgr_url', null, InputOption::VALUE_REQUIRED, 'Manager URL');\n $this->addOption('context_connectors_path', null, InputOption::VALUE_REQUIRED, 'Connectors Path');\n $this->addOption('context_connectors_url', null, InputOption::VALUE_REQUIRED, 'Connectors URL');\n $this->addOption('context_web_path', null, InputOption::VALUE_REQUIRED, 'Site Base path');\n $this->addOption('context_web_url', null, InputOption::VALUE_REQUIRED, 'Site Base URL');\n $this->addOption(\n 'remove_setup_directory',\n null,\n InputOption::VALUE_NONE,\n \"Remove setup directory after install\"\n );\n\n }", "title": "" }, { "docid": "e012f303eb43244430a439419954dc5e", "score": "0.6746946", "text": "protected function configure()\n {\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'backend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n ));\n\n parent::configure();\n\n $this->name = 'reload-cron';\n $this->briefDescription = 'Initiate reload cron process.';\n $this->detailedDescription = 'This task will issue the CronTask to reload its schedule.';\n }", "title": "" }, { "docid": "dabaad28ded2c6f2b0de3ea1f39b95cd", "score": "0.6741537", "text": "protected function configure()\n\t{\n\t\t$this->setName(defined('CLI_NAMESPACE_PLATFORM') ? 'images' : 'platform:images')\n\t\t\t->setDescription('Work with generated images.')\n\t\t\t->addOption('status', null, InputOption::VALUE_OPTIONAL, 'Show status of images.', false)\n\t\t\t->addOption('clean', null, InputOption::VALUE_OPTIONAL, 'Clean unused images.', false)\n\t\t\t->ignoreValidationErrors();\n\t}", "title": "" }, { "docid": "6d54140c5b6eefc93a2a751384176359", "score": "0.6737881", "text": "protected function configure() {\n // Disable default version option.\n $this->disableDefaultVersion();\n \n // New and improved help version.\n $help = $this->setupOpt('sos')\n ->describe('Provides help to a poor lost soul.');\n $this->setHelpOption($help);\n \n // Setup the old help command just in case the user uses it.\n // If he does show a message.\n $this->setupOpt('h')->alias('help');\n }", "title": "" }, { "docid": "70833dff154ab768e89ed54f5cb26a8a", "score": "0.6732087", "text": "protected function configure()\n\t{\n\t\t$this->setName('customize')\n\t\t\t ->setDescription('Copy templates and generator.json into current directory')\n \t\t\t ->addOption('config', null, InputOption::VALUE_REQUIRED, 'Use your own generate.json files')\n\t\t\t ->addOption('yes', null, InputOption::VALUE_NONE, 'Automatically answer yes to any prompts');\n\t}", "title": "" }, { "docid": "08fa41b01a8a61b2ab544f85c3fd3428", "score": "0.67196065", "text": "protected function configure()\n {\n $this->setName('merge')\n ->addArgument(\n 'directory',\n InputArgument::REQUIRED,\n 'Directory to scan for exported PHP_CodeCoverage objects stored in .cov files'\n )\n ->addOption(\n 'clover',\n null,\n InputOption::VALUE_REQUIRED,\n 'Generate code coverage report in Clover XML format'\n )\n ->addOption(\n 'crap4j',\n null,\n InputOption::VALUE_REQUIRED,\n 'Generate code coverage report in Crap4J XML format'\n )\n ->addOption(\n 'html',\n null,\n InputOption::VALUE_REQUIRED,\n 'Generate code coverage report in HTML format'\n )\n ->addOption(\n 'php',\n null,\n InputOption::VALUE_REQUIRED,\n 'Export PHP_CodeCoverage object to file'\n )\n ->addOption(\n 'text',\n null,\n InputOption::VALUE_REQUIRED,\n 'Generate code coverage report in text format'\n );\n }", "title": "" }, { "docid": "36e4e606d3cc75f6994ec44ac6867d3e", "score": "0.6707996", "text": "protected function configure()\n {\n $this->setDescription($this->shortDesc);\n\n foreach($this->paramsArray as $nameParam => $arrayOptions){\n if($arrayOptions['optional']){\n $this->addOption($nameParam, null, InputOption::VALUE_OPTIONAL, $arrayOptions['comment'], null);\n }\n else {\n $this->addOption($nameParam, null, InputOption::VALUE_REQUIRED, $arrayOptions['comment'], null);\n } \n }\n }", "title": "" }, { "docid": "196ef08b286b95a98b24ebce5d49e81b", "score": "0.6694784", "text": "protected function configure()\n {\n parent::configure();\n\n $this \n ->addOption(\n 'host',\n NULL,\n InputOption::VALUE_OPTIONAL,\n 'The host address to serve the application on.',\n 'localhost'\n )\n ->addOption(\n 'port',\n NULL,\n InputOption::VALUE_OPTIONAL,\n 'The port to serve the application on.',\n 8000\n )\n ->addOption(\n 'docroot',\n NULL,\n InputOption::VALUE_OPTIONAL,\n 'Specify an explicit document root.',\n FALSE\n ); \n }", "title": "" }, { "docid": "cdd25a46655e244b24170a17407605a2", "score": "0.6659715", "text": "protected function configure() {\n\t\t$this->setName( 'import' )\n\t\t\t->setDescription( 'Import the files in the /data directory' )\n\t\t\t->addOption(\n\t\t\t\t'mode',\n\t\t\t\tnull,\n\t\t\t\tInputOption::VALUE_OPTIONAL,\n\t\t\t\t'Run-mode',\n\t\t\t\t'imperative'\n\t\t\t)\n\t\t\t->addOption(\n\t\t\t\t'porcelain',\n\t\t\t\t'p',\n\t\t\t\tInputOption::VALUE_NONE,\n\t\t\t\t'Hide console output until complete'\n\t\t\t);\n\t}", "title": "" }, { "docid": "e5b66dc7a4559eb4bd77c2f1f2280331", "score": "0.66483116", "text": "protected function configure()\n {\n $this->setName('list')\n ->setDescription('Display your jobs and filter them by status')\n ->addOption('onlyFailed', 'f', InputOption::VALUE_NONE, 'Display only failed jobs')\n ->addOption('onlyDisabled', 'd', InputOption::VALUE_NONE, 'Display only disabled jobs')\n ;\n }", "title": "" }, { "docid": "da44a7d0a966ee2424d474938bdd0344", "score": "0.66450435", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'mondongo'),\n new sfCommandOption('type', null, sfCommandOption::PARAMETER_OPTIONAL, 'type'),\n // add your own options here\n ));\n\n $this->namespace = 'tv';\n $this->name = 'tencentVideo';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [tvsinaVideo|INFO] task does things.\nCall it with:\n\n [php symfony tencentVideo|INFO]\nEOF;\n }", "title": "" }, { "docid": "173e488bb845062e46c11bfc946ec0f7", "score": "0.66119564", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'mondongo'),\n // add your own options here\n ));\n\n $this->namespace = 'tv';\n $this->name = 'EpgCsv';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [tv:EpgCsv|INFO] task does things.\nCall it with:\n\n [php symfony tv:EpgCsv|INFO]\nEOF;\n }", "title": "" }, { "docid": "f0b9c06b48f6ae1b73a09a7b342ead6a", "score": "0.6598753", "text": "protected function configure()\n {\n $this->configureName();\n\n $this->addArgument(\n 'database-size',\n InputArgument::REQUIRED,\n 'Identifier of the created before database size'\n );\n\n $this->addArgument(\n 'sample-size',\n InputArgument::IS_ARRAY | InputArgument::REQUIRED,\n 'Size of the benchmark sample',\n []\n );\n\n $this->addOption(\n 'database-prefix',\n 'p',\n InputOption::VALUE_OPTIONAL,\n 'Database name prefix',\n 'benchmark_database'\n );\n\n $this->addOption(\n 'attribute-code',\n 'a',\n InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,\n 'List of attributes to retrieve during selection process',\n ['firstname', 'lastname', 'email', 'country', 'dob']\n );\n\n $scopes = ['en', 'fr', 'de', 'nl', 'it'];\n\n $this->addOption(\n 'scope',\n 's',\n InputOption::VALUE_OPTIONAL,\n 'Scope code for selection of data',\n $scopes[array_rand($scopes)]\n );\n\n $this->addOption(\n 'run-count',\n 'c',\n InputOption::VALUE_REQUIRED,\n 'Number of run counts',\n 10\n );\n\n $this->addOption(\n 'format',\n 'o', InputOption::VALUE_REQUIRED,\n 'Output format, default to console table. Possible values: csv, table, json',\n 'table'\n );\n }", "title": "" }, { "docid": "8888a2740d41f05aee2945cd2c47e54e", "score": "0.65978646", "text": "protected function configure () {\n\t\t\t// Register the command and set the arguments\n\t\t\t$options = [\n\t\t\t\tnew InputOption (\n\t\t\t\t\t\"domain\",\n\t\t\t\t\tnull,\n\t\t\t\t\tInputOption::VALUE_REQUIRED,\n\t\t\t\t\t\"What is the domain name?\"\n\t\t\t\t),\n\t\t\t\tnew InputOption (\n\t\t\t\t\t\"state\",\n\t\t\t\t\tnull,\n\t\t\t\t\tInputOption::VALUE_REQUIRED,\n\t\t\t\t\t\"Set development-mode 'on' or 'off'?\"\n\t\t\t\t)\n\t\t\t];\n\t\t\t$this\n\t\t\t\t->setName (\"cloudflare:caching:development-mode:set\")\n\t\t\t\t->setDescription (\"Set development mode to 'on' or 'off'\")\n\t\t\t\t->setDefinition ( $options );\n\t\t\tparent::configure ();\n\t\t}", "title": "" }, { "docid": "c70f4711cb324e3945890689dff62058", "score": "0.6590415", "text": "protected function configure($options = array(), $attributes = array())\n {\n $this->addOption('tiny_options', sfConfig::get('app_tiny_mce_default', array()));\n $this->addOption('options_without_quotes', sfConfig::get('app_tiny_mce_options_without_quotes', array('setup'))); \n $this->addOption('with_gzip', false); \n $this->addOption('tiny_gz_options', sfConfig::get('app_tiny_mce_gz_default', array()));\n }", "title": "" }, { "docid": "c1ab542840a834a8b71e1d2a78c40b9d", "score": "0.65799326", "text": "public function options(){}", "title": "" }, { "docid": "aecdad4ffb23135a84999050023a34d0", "score": "0.65402395", "text": "protected function configure()\n {\n\n // initialize the command with the required/optional options\n $this->addArgument(InputArgumentKeysInterface::SHORTCUT, InputArgument::OPTIONAL, 'The shortcut that defines the operation(s) that has to be used for the import, one of \"add-update\", \"replace\", \"delete\" or \"convert\" or a combination of them', OperationKeys::ADD_UPDATE)\n ->addArgument(InputArgumentKeysInterface::FILENAME, InputArgument::OPTIONAL, 'An explicit filename that should be imported');\n\n // invoke the parent method\n parent::configure();\n }", "title": "" }, { "docid": "bf03614e4f9df31e799fe80063137773", "score": "0.6536953", "text": "public function addCommonOptions()\n {\n $this->addOption('config', null, InputOption::VALUE_REQUIRED, 'Configuration file path');\n }", "title": "" }, { "docid": "7117ecc5eeb7edfeebc0e16b30790684", "score": "0.6536675", "text": "protected function configure()\n {\n $allChecks = [\n Check::MINIMUM,\n Check::MEDIUM,\n ];\n\n $this\n ->setName('compare')\n ->setDescription('compares the results of different useragent parsers')\n ->addOption(\n 'check-level',\n '-c',\n InputOption::VALUE_REQUIRED,\n 'the level for the checks to do. Available Options:' . implode(',', $allChecks),\n Check::MINIMUM\n )\n ;\n }", "title": "" }, { "docid": "6a7f0bf2dcba1e9304f0ddaaacac4958", "score": "0.65353715", "text": "protected function setConfiguration()\n {\n $this->setDescription($this->description);\n $this->configureArguments($this->arguments, 'addArgument');\n $this->configureArguments($this->options);\n }", "title": "" }, { "docid": "bcccf780dc6178518ba897a599827e9e", "score": "0.6534168", "text": "protected function configure(): void\n {\n $this->addOption('raw', 'r', InputOption::VALUE_OPTIONAL, 'Return result as raw object (e.g. json)', false);\n }", "title": "" }, { "docid": "1699639d5e784c09bd9016ab68657abf", "score": "0.65332454", "text": "protected function configure()\n {\n $this\n ->setName('db:default-configuration')\n ->setDescription('Get default configuration')\n ->addOption(\n 'key',\n null,\n InputOption::VALUE_OPTIONAL,\n 'Get value by key'\n );\n }", "title": "" }, { "docid": "02d15145cb190ec9cefa4e031a155c2a", "score": "0.6504143", "text": "protected function configure(): void\n {\n $this\n ->setName('core:version')\n ->setDescription('Shows the Joomla! version')\n ->addOption(\n 'long',\n 'l',\n InputOption::VALUE_NONE,\n 'The long version info, eg. Joomla! x.y.z Stable [ Codename ] DD-Month-YYYY HH:ii GMT (default).'\n )\n ->addOption(\n 'short',\n 's',\n InputOption::VALUE_NONE,\n 'The short version info, eg. x.y.z'\n )\n ->addOption(\n 'release',\n 'r',\n InputOption::VALUE_NONE,\n 'The release info, eg. x.y'\n )\n ;\n }", "title": "" }, { "docid": "461c235d5dc187cf95ad96f3ccb31b51", "score": "0.65039957", "text": "protected function options() { }", "title": "" }, { "docid": "b259c09037a6ac9b13285f4e07682b78", "score": "0.6494601", "text": "protected function configure() {\n $this->setupOpt('n', ClipOption::OPTION_REQUIRED)\n ->alias('name')\n ->describe('The name to greet.');\n \n $this->setupOpt('r', ClipOption::OPTION_OPTIONAL)\n ->describe('The amout of times to repeat. Min: 2, Max 10')\n ->expect(ClipOption::EXPECT_IN_RANGE, array('#range' => '[2,10]'))\n ->defaultValue(10);\n }", "title": "" }, { "docid": "80bf03c9b3f07628c5b7ea3df356f7e3", "score": "0.64945227", "text": "public function configure()\n {\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'),\n ));\n\n $this->namespace = 'tumblr';\n $this->name = 'cache';\n }", "title": "" }, { "docid": "4044a22a85d5c2ef3ed84d70c7a890c3", "score": "0.6487224", "text": "protected function configure($options = array(), $attributes = array())\n {\n $this->addOption('theme', 'modern');\n $this->addOption('width');\n $this->addOption('height');\n $this->addOption('config', '');\n }", "title": "" }, { "docid": "9df8acfe16871c13bc1432512693e7af", "score": "0.64828604", "text": "protected function configure() {\n $this\n ->setName('command:makeMenu')\n ->setDescription('...')\n ->addArgument('argument', InputArgument::OPTIONAL, 'Argument description')\n ->addOption('option', null, InputOption::VALUE_NONE, 'Option description')\n ;\n }", "title": "" }, { "docid": "9622ead2a3a2311bc966642f4d9f92b8", "score": "0.6481503", "text": "protected function configure()\n {\n $this->addArguments(array(\n new sfCommandArgument('from', sfCommandArgument::REQUIRED, 'from identifiant'),\n new sfCommandArgument('to', sfCommandArgument::REQUIRED, 'to identifiant'),\n ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'declarvin'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'default'),\n // add your own options here\n ));\n\n $this->namespace = 'drm';\n $this->name = 'switch-history';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\n\nEOF;\n }", "title": "" }, { "docid": "3e87b5f919c18283ec6d3ab8bcbc9bda", "score": "0.6471734", "text": "protected function configure()\n { \n $this->setName('scan')\n ->setDescription('Scan the code base to find the previously marked issues.')\n ->setDefinition([\n\n new InputOption('configuration', null, InputOption::VALUE_REQUIRED, 'Configuration file'),\n new InputOption('keyword', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Keywords to look for'),\n new InputOption('include', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Directories to include'), \n new InputOption('exclude', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Directories to exclude'), \n new InputOption('include_file', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Files to include'), \n new InputOption('exclude_file', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Files to exclude'), \n new InputOption('output_type', null, InputOption::VALUE_REQUIRED , 'Render the output in a tabular format'), \n ])\n ->setHelp('Scan the code base to find the previously marked issues.');\n }", "title": "" }, { "docid": "28c3f61628fe5fb3b1417658fead6db6", "score": "0.6470556", "text": "protected function configure()\n {\n $this\n ->setName('finance:get-quotes')\n ->setDescription('Получить котировки')\n ->addOption(\n 'symbol',\n null,\n InputOption::VALUE_REQUIRED\n )\n ->addOption(\n 'start',\n null,\n InputOption::VALUE_REQUIRED,\n ''\n )\n ->addOption(\n 'end',\n null,\n InputOption::VALUE_OPTIONAL,\n '',\n (new DateTime())->format('Y-m-d')\n )\n ;\n }", "title": "" }, { "docid": "4a0fbafbad9a6959179cde2cd979af8a", "score": "0.64703906", "text": "protected function configure()\n {\n $this->setDescription('Copy bunch of images from a local storage to a cloudinary storage')\n ->addOption('silent', 's', InputOption::VALUE_OPTIONAL, 'Mute output as much as possible', false)\n ->addOption('yes', 'y', InputOption::VALUE_OPTIONAL, 'Accept everything by default', false)\n ->addOption('base-url', '', InputArgument::OPTIONAL, 'A base URL where to download missing files', '')\n ->addOption('filter', '', InputArgument::OPTIONAL, 'Filter pattern with possible wild cards, --filter=\"/foo/bar/%\"', '')\n ->addOption('filter-file-type', '', InputArgument::OPTIONAL, 'Add a possible filter for file type as defined by FAL (e.g 1,2,3,4,5)', '')\n ->addOption('limit', '', InputArgument::OPTIONAL, 'Add a possible offset, limit to restrain the number of files. (eg. 0,100)', '')\n ->addOption('exclude', '', InputArgument::OPTIONAL, 'Exclude pattern, can contain comma separated values e.g. --exclude=\"/apps/%,/_temp/%\"', '')\n ->addArgument('source', InputArgument::REQUIRED, 'Source storage identifier')\n ->addArgument('target', InputArgument::REQUIRED, 'Target storage identifier')\n ->setHelp('Usage: ./vendor/bin/typo3 cloudinary:copy 1 2');\n }", "title": "" }, { "docid": "7693fc5cb7d632e2d898df51f1b4dbee", "score": "0.6457583", "text": "protected function configure()\n {\n $this->setName('import')\n\n ->addOption('wpfile', 'w', InputOption::VALUE_REQUIRED, 'The XML file exported from Wordpress.')\n\n ->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'The output path of the markdown files.')\n\n // the short description\n ->setDescription('')\n\n // the full command description shown when running the command with\n // the \"--help\" option\n ->setHelp('')\n ;\n }", "title": "" }, { "docid": "fd40a597a6c0942e629157251dc37a5c", "score": "0.64309657", "text": "protected function configure()\n {\n $message = 'Move bunch of images to a cloudinary storage. Consult the README.md for more info.';\n $this->setDescription($message)\n ->addOption('silent', 's', InputOption::VALUE_OPTIONAL, 'Mute output as much as possible', false)\n ->addOption('yes', 'y', InputOption::VALUE_OPTIONAL, 'Accept everything by default', false)\n ->addOption('base-url', '', InputArgument::OPTIONAL, 'A base URL where to download missing files', '')\n ->addOption('filter', '', InputArgument::OPTIONAL, 'Filter pattern with possible wild cards, --filter=\"/foo/bar/%\"', '')\n ->addOption('filter-file-type', '', InputArgument::OPTIONAL, 'Add a possible filter for file type as defined by FAL (e.g 1,2,3,4,5)', '')\n ->addOption('limit', '', InputArgument::OPTIONAL, 'Add a possible offset, limit to restrain the number of files. (eg. 0,100)', '')\n ->addOption('exclude', '', InputArgument::OPTIONAL, 'Exclude pattern, can contain comma separated values e.g. --exclude=\"/apps/%,/_temp/%\"', '')\n ->addArgument('source', InputArgument::REQUIRED, 'Source storage identifier')\n ->addArgument('target', InputArgument::REQUIRED, 'Target storage identifier')\n ->setHelp('Usage: ./vendor/bin/typo3 cloudinary:move 1 2');\n }", "title": "" }, { "docid": "e768ac7dd16d3002bd16cab6a245f77f", "score": "0.64279926", "text": "protected function configure($options = array(), $attributes = array())\n\t{\n\t\t$this->addOption('dispatcher');\n\t\t$this->addOption('response');\n\t\t$this->addOption('request');\n\n\t\tparent::configure($options, $attributes);\n\t\t\n\t\t$this->addOption('config', array('do_not_autocomplete' => true));\n\t}", "title": "" }, { "docid": "8e81c64bc1df0f78f46e6f18fe84422e", "score": "0.6417418", "text": "protected function configure()\n {\n $this\n ->setDescription('Sends emails from the spool')\n ->addOption('message-limit', null, InputOption::VALUE_REQUIRED, 'The maximum number of messages to send.')\n ->addOption('time-limit', null, InputOption::VALUE_REQUIRED, 'The time limit for sending messages (in seconds).')\n ->addOption('recover-timeout', null, InputOption::VALUE_REQUIRED, 'The timeout for recovering messages that have taken too long to send (in seconds).')\n ->setAliases(['swiftmailer:spool:send']);\n }", "title": "" }, { "docid": "4672b0dd961a82ff85b6a4d3d5cf1d36", "score": "0.64049894", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name','stb'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'mondongo'),\n // add your own options here\n ));\n\n $this->namespace = 'tv';\n $this->name = 'makeDict';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [makeDict|INFO] task does things.\nCall it with:\n\n [php symfony makeDict|INFO]\nEOF;\n }", "title": "" }, { "docid": "2be39fbaf97dec2d1be5104c3a21875b", "score": "0.64023286", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'tv';\n $this->name = 'deleteQiyiVideo';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [tvdeleteYoukuVideo|INFO] task does things.\nCall it with:\n\n [php symfony tvdeleteYoukuVideo|INFO]\nEOF;\n }", "title": "" }, { "docid": "31841dbf24f2878c805736158d9739de", "score": "0.63941926", "text": "protected function configure(): void\r\n {\r\n $this\r\n // the short description shown while running \"php bin/console list\"\r\n ->setDescription('Imports a data')\r\n\r\n // the full command description shown when running the command with\r\n // the \"--help\" option\r\n ->setHelp('This command allows you import data')\r\n ->addArgument('type', InputArgument::REQUIRED, 'Type Action')\r\n ->addArgument('filename', InputArgument::REQUIRED, 'File name')\r\n ->addArgument('delimiter', InputArgument::REQUIRED, 'Delimiter')\r\n ->addArgument('status', InputArgument::REQUIRED, 'status Action')\r\n ;\r\n }", "title": "" }, { "docid": "d571ab4a16ff560d5229c7283e0fe24d", "score": "0.63859934", "text": "public function options();", "title": "" }, { "docid": "f04e1e1517dc63ebb1f82348b565da9d", "score": "0.63826853", "text": "protected function configure()\n {\n $this\n ->setName('init')\n ->setAliases([])\n ->setDescription('Initialize environment for Extas. Run this command before extas install.')\n ->setHelp('This command allows you prepare all necessary files and other data. Uses extas.json .')\n ->addOption(\n static::OPTION__CONTAINER_REWRITE,\n 'r',\n InputOption::VALUE_OPTIONAL,\n 'Rewrite class-container file',\n true\n )->addOption(\n static::OPTION__PACKAGE_FILENAME,\n 'p',\n InputOption::VALUE_OPTIONAL,\n 'Extas-compatible package name',\n 'extas.json'\n )\n ;\n }", "title": "" }, { "docid": "4fc512dfa2f7e44b3d815a309f07ab6b", "score": "0.63795453", "text": "protected function configure($options = array()) {\n\t}", "title": "" }, { "docid": "aa70d211818cbf6a28f3dab0ab1a4fb3", "score": "0.6377652", "text": "protected function getOptions()\n {\n return array(\n array('publishConfig','c', InputOption::VALUE_NONE, 'Publish the config file.'),\n );\n }", "title": "" }, { "docid": "dd44df03c889da798d70f6e7b1329de2", "score": "0.63699204", "text": "protected function configure(): void\n\t{\n\t\t$this->setName('emails:send');\n\t\t$this->setDescription('Sends emails.');\n\t\t$this->addOption('configuration', 'c', InputOption::VALUE_REQUIRED, 'Path to project configuration file');\n\t\t$this->addArgument('number', InputArgument::OPTIONAL, 'Number of emails to send.');\n\t}", "title": "" }, { "docid": "15344a9cfcead2e928c78423d64336cd", "score": "0.6367664", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'backend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'mastodonte';\n $this->name = 'progenitores';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [progenitores|INFO] task does things.\nCall it with:\n\n [php symfony progenitores|INFO]\nEOF;\n }", "title": "" }, { "docid": "cbbfecfefa21d9c74877870958a89b91", "score": "0.6365857", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'statistics'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n // add your own options here\n ));\n\n $this->namespace = 'yiid';\n $this->name = 'generate-vhosts';\n $this->briefDescription = 'Generates the vhosts config for Apache';\n $this->detailedDescription = <<<EOF\nThe [GenerateVhostsConfig|INFO] task does things.\nCall it with:\n\n [php symfony GenerateVhostsConfig|INFO]\nEOF;\n }", "title": "" }, { "docid": "f5716cbfd352bcebd6b3b0a7bb5f4091", "score": "0.6358132", "text": "protected function configure()\n {\n $this->setName('key:generate')\n ->setDescription('Generates a key for BlackPlatinum encryption system')\n ->setHelp(\"<comment>\\nGenerates a key for BlackPlatinum encryption system.\\n</comment>\")\n ->addOption('storage', null, InputOption::VALUE_REQUIRED, 'Specify the storage of key to save', 'file');\n }", "title": "" }, { "docid": "c647fe4386ec529e9de8c7c79eb22560", "score": "0.63574564", "text": "public function configure(): void\n {\n $this\n ->setName('export')\n ->setDescription('Export geographic data')\n ->setHelp('Export geographic data in webtrees/googlemap format')\n ->setDefinition(\n new InputDefinition([\n new InputOption(\n 'language',\n null,\n InputOption::VALUE_REQUIRED,\n 'Language code',\n 'en'\n ),\n new InputOption(\n 'prefix',\n null,\n InputOption::VALUE_OPTIONAL,\n 'Extract only places beginning with this prefix',\n ''\n ),\n ])\n );\n }", "title": "" }, { "docid": "82959dbe0a50da347d063896d9655fb3", "score": "0.63543344", "text": "protected function configure()\n {\n $this->setName('jackal:scheduler:runner')\n ->addArgument('command_name', InputArgument::OPTIONAL)\n ->addOption('list',null,null,'Display all registered command to execute');\n }", "title": "" }, { "docid": "64749b61a867423bd88ed2d238c6b7d4", "score": "0.6342654", "text": "protected function configure()\n {\n $this->setName('app:start')\n ->addOption('benchmark', 'b', InputOption::VALUE_NONE, 'Benchmark the maximum tps')\n ->addOption('benchmark-decrease', null, InputOption::VALUE_REQUIRED, 'Benchmark tpt decrease in milliseconds', 0.01)\n ->addArgument('positionX', InputArgument::OPTIONAL, 'the initial position X', 0)\n ->addArgument('positionY', InputArgument::OPTIONAL, 'the initial position Y', 0)\n ->addArgument('angle', InputArgument::OPTIONAL, 'the rover angle', 0)\n ->addOption('max-tick', 'm', InputOption::VALUE_REQUIRED, 'Max tick execution', -1)\n ->addOption('max-time', 't', InputOption::VALUE_REQUIRED, 'Max execution time', -1);\n }", "title": "" }, { "docid": "b5391f182e79b00a36520766faa4a63a", "score": "0.6342487", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n // // add your own options here\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'Application Name','operations'),\n ));\n\n $this->namespace = 'csvGeneration';\n $this->name = 'qaOnlineProcess';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [dailyGharpayProcess|INFO] task does things.\nCall it with:\n\n [php symfony qaOnlineProcess|INFO]\nEOF;\n }", "title": "" }, { "docid": "0c8c4b6b39c80791735d7b74f36afc5d", "score": "0.6342403", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'www'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'check';\n $this->name = 'domains';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [test:local|INFO] task does things.\nCall it with:\n\n [php symfony check:domains|INFO]\nEOF;\n }", "title": "" }, { "docid": "f3b9223dcb8fa66b2a0ed3baf10b168b", "score": "0.6334259", "text": "public function configure()\n {\n $this->setName(\"build\")\n ->setDescription(\"Trigger a new build\")\n ->addArgument(\"job\", InputArgument::REQUIRED, \"Job name\")\n ->addOption(\"wait\", \"w\", InputOption::VALUE_NONE, \"Wait until the completion/abortion of the command\")\n ->addOption(\"params\", \"p\", InputOption::VALUE_OPTIONAL, \"Specify the build parameters in the key=value format\");\n }", "title": "" }, { "docid": "8b39ce4e653a6b7705d3aa570e1972d0", "score": "0.6331972", "text": "protected function configure($options = array(), $attributes = array())\n {\n $this->addOption('upload_route', null); // will default to the form upload action through jQuery traversing\n $this->addOption('uploadify_css', 'dmMediaUploadifyerPlugin.uploadify');\n \n $this->addOption('add_sessionid', false);\n }", "title": "" }, { "docid": "78a34f407e413175ab31b776a75beab1", "score": "0.63283396", "text": "protected function setOptions()\n {\n foreach (Config::settings() as $key => $option) {\n $this->{$key} = $option;\n }\n }", "title": "" }, { "docid": "cece7fb90d728ba8231449739c25374a", "score": "0.6312327", "text": "protected function configure()\n {\n $this\n ->setName('generate')\n ->setDescription('Create pdf with the Pivotal tasks')\n ->addArgument('name', InputArgument::OPTIONAL)\n ->addOption('size', 's', InputOption::VALUE_OPTIONAL, 'What size of post-its is used')\n ->addOption('token', 't', InputOption::VALUE_OPTIONAL, 'Pivotal api token')\n ->addOption('project', 'p', InputOption::VALUE_OPTIONAL, 'Pivotal project id')\n ->addOption('after', 'a', InputOption::VALUE_OPTIONAL, 'Stories after this id')\n ->addOption('before', 'b', InputOption::VALUE_OPTIONAL, 'Stories before this id')\n ->addOption('ignore-settings', null, InputOption::VALUE_NONE, 'Start up without loading the settings');\n }", "title": "" }, { "docid": "ba53e882aa6f622e8cfb830623892d47", "score": "0.6308362", "text": "public function getConfigureOptions () { }", "title": "" }, { "docid": "de007d890e076c30efa3013147e39dca", "score": "0.6307877", "text": "protected function configure()\n {\n $this\n ->setName('magento2:sync-stock-levels')\n ->setDescription(\"View differences and optionally sync stock levels with Magento\")\n ->addOption('show-missing', null, InputOption::VALUE_NONE, \"Show items that are missing from Magento 2\")\n ->addOption('show-same', null, InputOption::VALUE_NONE, \"Show items whose stock levels match\")\n ->addOption('sync', null, InputOption::VALUE_NONE, \"Sync stock levels, don't just view\");\n }", "title": "" }, { "docid": "fc10d84bf4044ef95931306edddb7b00", "score": "0.6295855", "text": "protected function configure()\n {\n $this\n ->setName('config:set')\n ->setDescription('Sets a config value')\n ->addArgument('variableName', InputArgument::REQUIRED, 'Variable name')\n ->addArgument('variableValue', InputArgument::REQUIRED, 'Variable value')\n ->addOption('variableType', null, InputOption::VALUE_REQUIRED, 'Variable type')\n ->addOption('moduleId', null, InputOption::VALUE_OPTIONAL, '');\n }", "title": "" }, { "docid": "6ef2ce28cf29b102669af506a999bcef", "score": "0.6289134", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n // // add your own options here\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name','jeevansathi'),\n ));\n\n $this->namespace = 'billing';\n $this->name = 'activateMiniVdOffer';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [activateMiniVdOffer|INFO] task does things.\nCall it with:\n\n [php symfony activateMiniVdOffer|INFO]\nEOF;\n }", "title": "" }, { "docid": "a57e8dce8728c0b14f26bca7f26d466e", "score": "0.62829363", "text": "protected function configure()\n {\n $this->addArguments(array(\n new sfCommandArgument('file', sfCommandArgument::REQUIRED, 'input file'),\n ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'taskapp'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'sfjp';\n $this->name = 'convert-markdown';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [convertMarkdown|INFO] task does things.\nCall it with:\n\n [php symfony convertMarkdown|INFO]\nEOF;\n }", "title": "" }, { "docid": "13f473d7d1cbf5df4e46c14a37e48cb0", "score": "0.62803245", "text": "protected function configure()\n {\n $this->setName('app:Establishments');\n\n // the short description shown while running \"php bin/console list\"\n $this->setDescription('Generates Establishments.');\n\n // the full command description shown when running the command with\n // the \"--help\" option\n $this->setHelp('Downloads Establishments data and creates data files.');\n\n $this->addOption(\n 'autoquit',\n false,\n InputOption::VALUE_OPTIONAL,\n 'Should we quit after running?',\n false\n );\n\n }", "title": "" }, { "docid": "250e744e8bad12110faa41f2f1e8c8a3", "score": "0.6278755", "text": "protected function configure()\n {\n parent::configure();\n $cwd = getcwd() . DIRECTORY_SEPARATOR;\n $this->setName('dump:multi')\n ->setDescription('Fetch multiple workouts from a tracker and save each one of them into a folder.')\n ->addArgument(\n 'tracker',\n InputArgument::OPTIONAL,\n 'The tracker to dump from (ex: polar, endomondo). Optional only if provided a resume list.'\n )\n ->addArgument('output-format', InputArgument::OPTIONAL, 'The format to dump it.', 'tcx')\n ->addOption('output-directory', 'd', InputOption::VALUE_REQUIRED, 'The directory where to dump the workouts.', $cwd . 'dump')\n ->addOption('output-overwrite', 'o', InputOption::VALUE_NONE, 'Flag to auto overwrite the file if it already exists.')\n ->addOption(\n 'output-files-list',\n 'l',\n InputOption::VALUE_REQUIRED,\n 'The file with the list of workouts to dump.',\n $cwd . 'dump' . DIRECTORY_SEPARATOR . 'list.csv'\n )\n ->addOption('date-start', 's', InputOption::VALUE_REQUIRED, 'The start date from where to start dumping workouts', 'today')\n ->addOption('date-end', 'e', InputOption::VALUE_REQUIRED, 'The end date from where to start dumping workouts', 'now')\n ->addOption('list-only', null, InputOption::VALUE_NONE, 'Flag if only the list should be generated and not also processed.')\n ->addOption('resume-list', 'r', InputOption::VALUE_REQUIRED, 'Resume a multi dump from a dump list file.');\n }", "title": "" }, { "docid": "1cdeeabdeda2f27528443f1583daa134", "score": "0.6277601", "text": "protected function configure()\n {\n $this->setAliases(array('transform'))\n ->setDescription(\n 'Converts the PHPDocumentor structure file to documentation'\n )\n ->setHelp(\n<<<TEXT\nThis task will execute the transformation rules described in the given\ntemplate (defaults to 'responsive') with the given source (defaults to\noutput/structure.xml) and writes these to the target location (defaults to\n'output').\n\nIt is possible for the user to receive additional information using the\nverbose option or stop additional information using the quiet option. Please\ntake note that the quiet option also disables logging to file.\nTEXT\n );\n\n $this->addOption(\n 'source',\n 's',\n InputOption::VALUE_OPTIONAL,\n 'Path where the XML source file is located (optional)'\n );\n $this->addOption(\n 'target',\n 't',\n InputOption::VALUE_OPTIONAL,\n 'Path where to store the generated output (optional)'\n );\n $this->addOption(\n 'template',\n null,\n InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,\n 'Name of the template to use (optional)'\n );\n $this->addOption(\n 'progressbar',\n 'p',\n InputOption::VALUE_NONE,\n 'Whether to show a progress bar; will automatically quiet logging to stdout'\n );\n\n parent::configure();\n }", "title": "" }, { "docid": "60655125be20ba59e8e59e9a3f689362", "score": "0.62764347", "text": "protected function defineOptions() {\n return [];\n }", "title": "" }, { "docid": "6f9d2f46a2cf52830bc157795dae9998", "score": "0.6275831", "text": "protected function configure()\n {\n parent::configure();\n $cwd = getcwd() . DIRECTORY_SEPARATOR;\n $this->setName('dump:workout')\n ->setDescription('Fetch a workout from a tracker and save it to a file.')\n ->addArgument('tracker', InputArgument::REQUIRED, 'The tracker to dump from (ex: polar, endomondo).')\n ->addArgument('id-workout', InputArgument::REQUIRED, 'The ID of the workout to dump.')\n ->addArgument('output-format', InputArgument::OPTIONAL, 'The format to dump it.', 'tcx')\n ->addOption('output-file', 'f', InputOption::VALUE_REQUIRED, 'The path to the output file.', $cwd . '/dump/[ID].[FORMAT]')\n ->addOption('output-overwrite', 'o', InputOption::VALUE_NONE, 'Flag to auto overwrite the file if it already exists.');\n }", "title": "" }, { "docid": "0e855b5ab73cfe92ddb40920c91a9a16", "score": "0.6272095", "text": "public function defineOptions() {\n $options = parent::defineOptions();\n\n $options['link_to_item'] = ['default' => FALSE];\n\n if ($this->isMultiple()) {\n $options['multi_type'] = ['default' => 'separator'];\n $options['multi_separator'] = ['default' => ', '];\n }\n\n return $options;\n }", "title": "" }, { "docid": "2712f64b40a3a9adea52050df6ca2248", "score": "0.626958", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'console'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'sp';\n $this->name = 'spActivityDealerStatisticStatus';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [spActivityDealerStatisticStatus|INFO] task does things.\nCall it with:\n\n [php symfony spActivityDealerStatisticStatus|INFO]\nEOF;\n }", "title": "" }, { "docid": "75905171fcaf39a1b8fb914f6ec95e2c", "score": "0.62683964", "text": "public function options()\n {\n\n }", "title": "" }, { "docid": "bf2c8c0ab6530cf81639bbe39126c073", "score": "0.62612396", "text": "protected function configure()\n {\n $webHookPort = getenv('WEBHOOK_PORT');\n if ($webHookPort === false) {\n $webHookPort = self::DEFAULT_HTTP_PORT;\n }\n\n $this\n ->addOption(\n 'httpPort',\n 'p',\n InputOption::VALUE_OPTIONAL,\n 'HTTP port to listen callbacks from Telegram',\n $webHookPort\n )\n ->addOption(\n 'skipCheckWebHookUrl',\n '',\n InputOption::VALUE_NONE,\n 'Do not check correct webhook and try to set it otherwise'\n )\n ->setDescription('Run bot server and get updates from webhooks');\n }", "title": "" }, { "docid": "e9d2c751f0a837e49827997912a5fc5b", "score": "0.62531096", "text": "protected function configure($options = array(), $attributes = array())\n {\n parent::configure($options, $attributes);\n\n $this->addRequiredOption('file_src');\n $this->addRequiredOption('url');\n $this->addOption('delete_label', 'Delete');\n $this->addOption('template' , '<div id=\"msg_%image_id%\"></div> <br/> <a href=\"%image_path%\" target=\"_blank\">%file%</a><br />%input% %delete_button%');\n $this->addOption('loading_image', 'general/snake.gif');\n }", "title": "" }, { "docid": "71e1381e4c0181e8178cd9b4271a57a9", "score": "0.6247723", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n // // add your own options here\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'Application Name','operations'),\n ));\n\n $this->namespace = 'inDialer';\n $this->name = 'indialerEligibilityUpdateTask';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [indialerEligibilityUpdateTask|INFO] task does things.\nCall it with:\n\n [php symfony indialerEligibilityUpdateTask|INFO]\nEOF;\n }", "title": "" }, { "docid": "835b0c08157d52b028a0bbdfda24bdb6", "score": "0.6246564", "text": "public function configure(): void\n {\n $this->setDefinition($this->createOptions());\n }", "title": "" }, { "docid": "274196dda2d6cec351b8b67ea059216b", "score": "0.62441057", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = '';\n $this->name = 'findWorks';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [findWorks|INFO] task does things.\nCall it with:\n\n [php symfony findWorks|INFO]\nEOF;\n }", "title": "" }, { "docid": "9f3270a224fccf54e706dba5085acec0", "score": "0.62437856", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'steam';\n $this->name = 'stats';\n $this->briefDescription = 'generate stats';\n $this->detailedDescription = <<<EOF\nThe [stats|INFO] task does things.\nCall it with:\n\n [php symfony stats|INFO]\nEOF;\n }", "title": "" }, { "docid": "61fe2efe29f2c0daaff4ec7d7c70cf60", "score": "0.6235863", "text": "protected function configure()\n {\n $this\n ->setDescription('Print all tokens of an app-id')\n ->addArgument(\n 'app-name',\n InputArgument::REQUIRED,\n 'App name'\n )\n ->addOption(\n 'with-metadata',\n null,\n InputOption::VALUE_NONE,\n 'Print metadata'\n );\n }", "title": "" }, { "docid": "7a17dc255df715fc01e13066ed41ed2a", "score": "0.62345695", "text": "protected function configure($options = array(), $attributes = array())\n {\n \n if (sfContext::hasInstance())\n $this->addOption('culture', sfContext::getInstance()->getUser()->getCulture());\n\n else\n $this->addOption('culture', \"fr\");\n $this->addOption('changeMonth', false);\n $this->addOption('changeYear', false);\n $this->addOption('numberOfMonths', 1);\n $this->addOption('showButtonPanel', false);\n \t$this->addOption('yearRange', 'c-20:c+20');\n $this->addOption('date_format', null);\n\t\tparent::configure($options, $attributes);\n }", "title": "" }, { "docid": "cf0b872325ed8b015f810224ceb5580a", "score": "0.6232519", "text": "protected function configure()\n {\n $this\n ->addDefaults()\n ->setName('backup')\n ->setDescription('Run backup on all or one Skylab projects')\n ->addArgument('project', InputArgument::OPTIONAL, 'If set, the task will only backup the project named')\n ->addOption(\"--quick\", null, InputOption::VALUE_NONE, 'If set, no tar.gz file will be created, only the preBackup and postBackup hooks will be executed.')\n ->addOption(\"--anonymize\", null, InputOption::VALUE_NONE, 'If set, the database backup will be anonymized')\n ->setHelp(<<<EOT\nThe <info>backup</info> command will dump all your databases and create a tarball of one or all projects.\n\n<info>php skylab.phar backup</info> # Will backup all projects\n<info>php skylab.phar backup myproject</info> # Will backup the myproject project\n<info>php skylab.phar backup myproject --quick</info> # Will backup the myproject project, but not create the tar file.\n\nEOT\n );\n }", "title": "" }, { "docid": "4d826abe0e2ff576e4bf2693b9d258b6", "score": "0.62310237", "text": "protected function configure()\n {\n // add your own arguments here\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'gsbl';\n $this->name = 'resetDemonstration';\n $this->briefDescription = 'Reset all data from demonstration account';\n $this->detailedDescription = <<<EOF\nThe [gsbl:resetDemonstration|INFO] task does things.\nCall it with:\n\n [php symfony gsbl:resetDemonstration|INFO]\nEOF;\n }", "title": "" }, { "docid": "d72234fafcb50b6e34d6c13bb48807b3", "score": "0.6226005", "text": "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\tarray('port', null, InputOption::VALUE_OPTIONAL, 'The port you want the websocket server to run on (default: 8080)','8080'),\n\t\t);\n\t}", "title": "" }, { "docid": "8bafcd95889b542187a22663c4b144b2", "score": "0.62225395", "text": "protected function configure($options = array(), $messages = array()) {\n parent::configure();\n \n $this->addOption('acl', AmazonS3::ACL_PRIVATE);\n $this->addOption('validated_file_class', 's3ValidatedFile');\n }", "title": "" }, { "docid": "07ccd8924802b2eca1647fe34b427a5f", "score": "0.62171406", "text": "protected function configure()\n {\n $this->addArguments(array(\n new sfCommandArgument('petition_id', sfCommandArgument::REQUIRED, 'the petition id'),\n new sfCommandArgument('filename', sfCommandArgument::REQUIRED, 'filename (csv)'),\n ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'policat';\n $this->name = 'import-signings';\n $this->briefDescription = 'Import Signings from file';\n $this->detailedDescription = <<<EOF\nThe [policat:import-signings|INFO] task does things.\nCall it with:\n\n [php symfony policat:import-signings|INFO]\nEOF;\n }", "title": "" }, { "docid": "fc12fe234658ad61c85a40c1523d8ada", "score": "0.62154603", "text": "protected function configure()\n {\n $this\n ->setName($this->commandName)\n ->setDescription($this->commandDescription)\n ->setHelp($this->commandHelp)\n ->addArgument(\n $this->commandArgumentName,\n InputArgument::OPTIONAL,\n $this->commandArgumentDescription\n );\n }", "title": "" }, { "docid": "0b2c67108dccce8392ed9866bf946c67", "score": "0.620711", "text": "public function configure($options = array(), $attributes = array())\n {\n parent::configure($options, $attributes);\n\n $this->addOption('add_empty', false);\n $this->addOption('form_name', 'dc_mailer_configuration');\n \n $options = $this->getOption('add_empty') ? array('' => '') + dcTransport::$transports : dcTransport::$transports;\n\n $this->setOption('choices', $options);\n }", "title": "" }, { "docid": "bd8074bcc3dfb4dd27078e8202c87733", "score": "0.6205648", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'jmsPaymentPlugin';\n $this->name = 'updateRates';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [jmsPaymentPlugin:updateRates|INFO] task does things.\nCall it with:\n\n [php symfony jmsPaymentPlugin:updateRates|INFO]\nEOF;\n }", "title": "" }, { "docid": "9f23829b22d060c55c953f10aaf7dca2", "score": "0.62043166", "text": "protected function configure()\n {\n $this\n // the name of the command (the part after \"bin/console\")\n ->setName('app:parse-planet-info')\n\n // the short description shown while running \"php bin/console list\"\n ->setDescription('Parses the planet info')\n\n // the full command description shown when running the command with\n // the \"--help\" option\n ->setHelp('Parses the planet info')\n ->addOption('planet', 'p', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Planets names to get', []);\n }", "title": "" }, { "docid": "085fa4409cafffd274d6b71684f0924e", "score": "0.6201845", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n// new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'stg';\n $this->name = 'setupProject';\n $this->briefDescription = 'Set configuration to project from \"config/setupProject.php\"';\n $this->detailedDescription = <<<EOF\nThe [addPermissions|INFO] task does things.\nCall it with:\n\n [php symfony stg:setupProject|INFO]\nEOF;\n }", "title": "" }, { "docid": "bc0d49bf2fa3c43436c9309f2b1bb3c5", "score": "0.6197014", "text": "protected function configure()\n {\n $this->setName('scheduling')\n ->setDescription('Display upcoming jobs in a specified timeframe.')\n ->addOption('starttime', 's', InputOption::VALUE_OPTIONAL, 'Start time to display the jobs', null)\n ->addOption('endtime', 'e', InputOption::VALUE_OPTIONAL, 'End time to display the jobs', null)\n ;\n }", "title": "" }, { "docid": "b760c566cd7080c385c231aac010adbe", "score": "0.61934555", "text": "protected function configure($options = array(), $messages = array())\n {\n // Typically you'll set both of these if you're using it for page slugs,\n // and set neither for media item or blog post slugs\n $this->addOption('allow_slashes', false);\n $this->addOption('require_leading_slash', false);\n // If strict is false, doClean will just clean the slug (potentially changing it).\n // If strict is true, it will reject slugs that are not already clean.\n // The latter is probably best when users are explicitly editing slugs\n $this->addOption('strict', true);\n \n parent::configure($options, $messages);\n }", "title": "" }, { "docid": "fcf635f54993a1c1ec9a54f6b5e62a35", "score": "0.6190133", "text": "protected function configure($options = array(), $messages = array())\n {\n }", "title": "" } ]
ab12894ec94d4b8d7c26bd8e885c3e30
Construct the Session Manager.
[ { "docid": "0976346e5b46e218f2a15c17980fd630", "score": "0.0", "text": "public static function getSessionManager(ServiceManager $sm)\n {\n $cookieManager = $sm->get('Resources\\CookieManager');\n $sessionConfig = new \\Zend\\Session\\Config\\SessionConfig();\n $options = [\n 'cookie_path' => $cookieManager->getPath(),\n 'cookie_secure' => $cookieManager->isSecure()\n ];\n $domain = $cookieManager->getDomain();\n if (!empty($domain)) {\n $options['cookie_domain'] = $domain;\n }\n\n $sessionConfig->setOptions($options);\n\n return new \\Zend\\Session\\SessionManager($sessionConfig);\n }", "title": "" } ]
[ { "docid": "744c4820e7232e4fc5b688f4680de940", "score": "0.7252976", "text": "public static function initialize() : Object\n {\n $factory = new SessionFactory();\n return $factory->create('magmacore', \\Magma\\Session\\Storage\\NativeSessionStorage::class, YamlConfig::file('session'));\n }", "title": "" }, { "docid": "027699ca6cce89f704ffb7f4ab722f64", "score": "0.72450185", "text": "protected function prepareSessionManager()\n {\n if ($this->sessionManager === null) {\n $this->sessionManager = new SessionManager(\n $this->session,\n array(\n 'base' => 'cmf',\n 'route' => 'routes',\n 'content' => 'contents',\n 'snippet' => 'snippets',\n )\n );\n }\n }", "title": "" }, { "docid": "0731dc701fb83f347f7202b2c71c204b", "score": "0.7187443", "text": "public function _initSessionManager()\n {\n $container = $this;\n\n $this['sessionManager'] = $this->share( function () use ($container){\n\n $sessionConfigs = $container['configs']['app']['sessions'];\n\n $saveHandler = new Cache($container['cacheManager']);\n\n $config = new SessionConfig();\n $config->setOptions($sessionConfigs);\n\n $sessionManager= new SessionManager($config);\n $sessionManager->setSaveHandler($saveHandler);\n\n\n return $sessionManager;\n });\n }", "title": "" }, { "docid": "20ab6295630d8ae94bf50f2f8c71ac16", "score": "0.6950254", "text": "protected function initSession() {\r\n\t\t$factory = new SessionFactory();\r\n\t\t$factory->load();\r\n\t\t\r\n\t\tself::$sessionObj = SessionHandler::getInstance();\r\n\t\tself::$userObj = self::getSession()->getUser();\r\n\t}", "title": "" }, { "docid": "b2f85d6ffd3fed683cb328cef42a0c8c", "score": "0.69066936", "text": "function __construct() {\n $this->_session = new Zend_Session_Namespace('session_app');\n $this->_userinfo = $this->_session->userinfo;\n }", "title": "" }, { "docid": "b77b8e7a09f827d8410cf0f900bae8eb", "score": "0.6792184", "text": "public function __construct()\n {\n \t//SessionManager $session\n //$this->session = $session;\n }", "title": "" }, { "docid": "3c95f9070d30942eccb7c7a18deb39bd", "score": "0.67581403", "text": "public function __construct(){\n /*****\n * GET THE CONFIG\n *****/\n $c = config::get_config();\n \n /*****\n * IF NOT A GATED APPLICATION, RETURN\n *****/\n if(!$c->GATED) return;\n \n /*****\n * GET THE DB FILE\n *****/\n $db = db::get_db();\n \n /*****\n * CHECK FOR TABLE\n *****/\n $res = $db->con->query('SHOW TABLES LIKE \"'.$c->DATABASE_SESSION_TABLE_NAME.'\"');\n \n /*****\n * CHECK FOR TABLE AND CREATE IT\n *****/\n if($res->num_rows == 0){ \n mysqli_free_result($res);\n $this->create_session_table();\n \n /*****\n * START SESSION AND RETURN\n *****/\n \n session_start();\n return;\n }\n \n /*****\n * CHECK FOR OLD SESSIONS AND REMOVE\n *****/\n $exp = time() - $c->MAX_SESSION_HOURS*60*60;\n $db->con->query('DELETE FROM '.$c->DATABASE_SESSION_TABLE_NAME.' WHERE timestamp <'.$exp);\n \n /*****\n * START SESSION AND RETURN\n *****/\n session_start();\n return;\n }", "title": "" }, { "docid": "3cc8f1443aacdb2e7c4f5c045e151158", "score": "0.6625713", "text": "public static function init ()\n {\n\t\tSession::$data = new Map();\n\n\t\tSession::$sessionOpen = false;\n\t\tSession::$validSessionId = false;\n\n\t\tSession::$sessionName = Configuration::getInstance()->Session;\n\t\tif (Session::$sessionName) Session::$sessionName = Session::$sessionName->name;\n\n\t\tSession::$sessionId = '';\n\n\t\t// Verify if m_<SessionName> was provided over POST or GET to override session id.\n\t\tif (Session::$sessionName)\n\t\t{\n\t\t\tif (Gateway::getInstance()->requestParams->has('m_'.Session::$sessionName))\n\t\t\t\tSession::$sessionId = Gateway::getInstance()->requestParams->get('m_'.Session::$sessionName);\n\t\t\telse\n\t\t\t\tSession::$sessionId = Cookies::get(Session::$sessionName);\n\n\t\t\tSession::$sessionId = Regex::_extract('/^['.Session::$charset.']+$/', Session::$sessionId);\n\n\t\t\tif (!Session::$sessionId || Text::length(Session::$sessionId) != 48)\n\t\t\t\tSession::$sessionId = '';\n\t\t}\n }", "title": "" }, { "docid": "cf2b47ec465a2d9dd21ca4d6247fe437", "score": "0.66083115", "text": "public function __construct()\n {\n $this->_session = new Zend_Session_Namespace($this->getName());\n }", "title": "" }, { "docid": "60ca4ef5628c78fb44a8d0717fe538d5", "score": "0.652845", "text": "protected function initSession()\n {\n $this->set('session', new Session());\n }", "title": "" }, { "docid": "10b104902c8b4897a1a71b07d0a66ad1", "score": "0.6502979", "text": "public function init()\n {\n $this->_helper->validateModule();\n\n $this->_helper->authenticate();\n\n $session_dlayer = new Dlayer_Session();\n\n $this->site_id = $session_dlayer->siteId();\n $this->identity_id = $session_dlayer->identityId();\n\n $this->session = new Dlayer_Session_Content();\n }", "title": "" }, { "docid": "1b2893b7918d5ebf9d438b7a8e3cb453", "score": "0.6493755", "text": "function __construct()\n\t\t{\n\t\t\t$this->startSession();\t\n\t\t}", "title": "" }, { "docid": "6504f79a04ebe37e92bcf2f69ec2739c", "score": "0.64812833", "text": "private function initializeSessionInstance()\n {\n if (empty($this->sessionInstance)){\n $this->sessionInstance = new XASession();\n }\n }", "title": "" }, { "docid": "76c7b73074d1614de8db2d2fe5def357", "score": "0.64736843", "text": "public function initSession()\n\t{\t\n\t\t$modules = $this->app->modules();\n\t\t$manager = $this->sessionManager();\n\t\t$this->session = $manager->loadSession();\n\t\t\n\t\tforeach ($modules as $module) {\n\t\t\tif ($module instanceof BeforeSessionCheckInterface) {\n\t\t\t\t$module->beforeSessionCheck($this);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($this->session->id()) {\n\t\t\t$manager = $this->sessionManager();\n\t\t\t$manager->attachUser($this->session);\n\t\t}\n\t\t\n\t\tforeach ($modules as $module) {\n\t\t\tif ($module instanceof AfterSessionCheckInterface) {\n\t\t\t\t$module->afterSessionCheck($this);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$user = $this->session->user();\n\t\t\n\t\t// Load role permissions\n\t\t$role = $this->roleRegistry()->role($user->roleId());\n\t\t$user->role($role);\n\t\t\n\t\t// Define user settings\n\t\t$settings = $user->settings();\n\t\tforeach ($modules as $module) {\n\t\t\tif ($module instanceof Settings\\SettingsProviderInterface) {\n\t\t\t\t$moduleSettings = $settings->module($module);\n\t\t\t\t$module->defineUserSettings(\n\t\t\t\t\t$moduleSettings->definitions()\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$settings->load();\n\t}", "title": "" }, { "docid": "9292e6a41d3cb02f4eb2c16a46c6682c", "score": "0.6456135", "text": "public function __construct()\n {\n $this->session = new SessionService();\n }", "title": "" }, { "docid": "d8a5a8ca14376e9f956942d3441022fc", "score": "0.6444513", "text": "public function __construct(){\n\t\t\n\t\t\n\t\tsession_set_save_handler(\n\t\t\tarray($this, \"_open\"),\n\t\t\tarray($this, \"_close\"),\n\t\t\tarray($this, \"_read\"),\n\t\t\tarray($this, \"_write\"),\n\t\t\tarray($this, \"_destroy\"),\n\t\t\t// array($this, \"_gc\")\n\t\t\tarray($this, \"_clean\")\n\t\t);\n\t\t\n\t\t//setting session name\n\t\tsession_name('local');\n\t\t\n\t\t// Start the session\n\t\tsession_start();\n\t\t\n\t\n\t\t\n\t}", "title": "" }, { "docid": "f9d323720e7c711b90eff6d3b238a24a", "score": "0.6419797", "text": "private function __construct()\n\t{\n\t\tif (!isset($_SESSION[SESSION_NAMESPACE])) {\n\t\t\t$_SESSION[SESSION_NAMESPACE] = array();\n\t\t}\n\t}", "title": "" }, { "docid": "3cffdeca34a85913609c54d99803771d", "score": "0.6377725", "text": "private function init()\n {\n $this->delegate = NULL;\n $this->modulePaths = array();\n if (defined('WEBAPP_DELEGATE')) \n {\n // load delegate\n $delegate_path = APP_ROOT . '/classes/' . WEBAPP_DELEGATE . '.php';\n if ( !file_exists($delegate_path) )\n {\n die(\"WFWebApplicationDelegate class file cannot be found: $delegate_path\");\n }\n // include the application's delegate. This file should load any classes needed by the session.\n require_once($delegate_path);\n $delegate_class = WEBAPP_DELEGATE;\n if ( !class_exists($delegate_class) )\n {\n \tdie(\"WFWebApplicationDelegate class $delegate_class does not exist.\");\n }\n $this->delegate = new $delegate_class;\n\n // @todo THINK ABOUT THIS LIFE-CYCLE.. important things are autoload, singleton/constructor issue, etc\n // just seems weird that sessionDidStart would come AFTER initialize\n // load the session HERE - CANNOT DO THIS VIA AUTOLOAD! EXACT TIMING OF THIS IS VERY IMPORTANT\n $this->sessionWillStart();\n require('framework/WFSession.php');\n $this->initialize(); // this is\n $this->sessionDidStart(); // call this AFTER initialize... so people can hit the DB and such\n }\n }", "title": "" }, { "docid": "102fe38f709c62387c507ac140bb73fb", "score": "0.6370131", "text": "public function createSession();", "title": "" }, { "docid": "7aed3ab47ec7c7fa14b784348653d9d4", "score": "0.6342074", "text": "function factory($params = array()){\n ini_set('session.auto_start', 0);\n\t\tBase::getInstance()->load->_assign_params($this, gc('session'));\n\t\t$this->encryption_key = gc('base.encryption_key');\n $this->savepath = strtolower($this->savepath);\n\t\tif ('app' == $this->savepath){\n $path = TMP_PATH. 'session'. DS;\n io::mkdir($path);\n session_save_path($path);\n }elseif ($this->savepath=='db'){\n\t\t\tif ($this->dbtable=='' OR !class_exists('Db')) $this->savepath='php';\n\t\t}\n\t\t$this->now = time();\n\t\tif ($this->expiration == 0) $this->expiration = (60*60*24*365*2);\n\t\tif ($this->savepath!='db') session_start();\n\t\t// Set the cookie name\n\t\tif ( ! $this->sess_read()){\n\t\t\t$this->sess_create();\n\t\t}else{\n\t\t\t$this->sess_update();\n\t\t}\n\n\t\t// Delete 'old' flashdata (from last request)\n\t \t$this->_flashdata_sweep();\n\t\t// Mark all new flashdata as old (data will be deleted before next request)\n\t \t$this->_flashdata_mark();\n\t\t// Delete expired sessions if necessary\n\t\t$this->_sess_gc();\n\t\t//log_message('debug', \"Session routines successfully run\");\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "22562eb73726e5ec0c3bc8499ba7735f", "score": "0.6338629", "text": "public function __construct()\n {\n $this->sessionName = $GLOBALS[\"tachyon_config\"][\"session_name\"];\n $sessionId = session_id();\n if (strlen($sessionId) == 0)\n throw new Exception(\"No session has been started.\\n<br />Please add `session_start();` initially in your file before any output.\");\n\n DataMappingManager::initializeMapper();\n\n $this->_validateUser();\n }", "title": "" }, { "docid": "b24beb26ad490a43bf521618e7ec8a0b", "score": "0.6332604", "text": "public static function _setup()\n {\n $path = System::getBaseUri();\n if (empty($path)) {\n $path = '/';\n } elseif (substr($path, -1, 1) != '/') {\n $path .= '/';\n }\n\n $host = System::serverGetVar('HTTP_HOST');\n\n if (($pos = strpos($host, ':')) !== false) {\n $host = substr($host, 0, $pos);\n }\n\n // PHP configuration variables\n ini_set('session.use_trans_sid', 0); // Stop adding SID to URLs\n @ini_set('url_rewriter.tags', ''); // some environments dont allow this value to be set causing an error that prevents installation\n ini_set('session.serialize_handler', 'php'); // How to store data\n ini_set('session.use_cookies', 1); // Use cookie to store the session ID\n ini_set('session.auto_start', 1); // Auto-start session\n\n\n ini_set('session.name', self::getCookieName()); // Name of our cookie\n // Set lifetime of session cookie\n $seclevel = System::getVar('seclevel');\n switch ($seclevel) {\n case 'High':\n // Session lasts duration of browser\n $lifetime = 0;\n // Referer check\n // ini_set('session.referer_check', $host.$path);\n ini_set('session.referer_check', $host);\n break;\n case 'Medium':\n // Session lasts set number of days\n $lifetime = System::getVar('secmeddays') * 86400;\n break;\n case 'Low':\n default:\n // Session lasts unlimited number of days (well, lots, anyway)\n // (Currently set to 25 years)\n $lifetime = 788940000;\n break;\n }\n ini_set('session.cookie_lifetime', $lifetime);\n\n // domain and path settings for session cookie\n // if (System::getVar('intranet') == false) {\n // Cookie path\n ini_set('session.cookie_path', $path);\n\n // Garbage collection\n ini_set('session.gc_probability', System::getVar('gc_probability'));\n ini_set('session.gc_divisor', 10000);\n ini_set('session.gc_maxlifetime', System::getVar('secinactivemins') * 60); // Inactivity timeout for user sessions\n\n ini_set('session.hash_function', 1);\n\n // Set custom session handlers\n ini_set('session.save_handler', 'user');\n if (System::getVar('sessionstoretofile')) {\n ini_set('session.save_path', System::getVar('sessionsavepath'));\n }\n // PHP 5.2 workaround\n if (version_compare(phpversion(), '5.2.0', '>=')) {\n register_shutdown_function('session_write_close');\n }\n // Do not call any of these functions directly. Marked as private with _\n session_set_save_handler('_SessionUtil__Start', '_SessionUtil__Close', '_SessionUtil__Read', '_SessionUtil__Write', //use session_write_close();\n '_SessionUtil__Destroy', // use session_destroy();\n '_SessionUtil__GC');\n }", "title": "" }, { "docid": "617ea1d7c29fbba7ef39c60f40e718ca", "score": "0.6318371", "text": "protected function init() {\n\t\t# request ist statisch, muss nix initialisiert werden\n\t\t$session = \\core\\protocol\\http\\Session::getInstance();\n\t}", "title": "" }, { "docid": "a1ccd3593a00994674fa677e8d87b513", "score": "0.6280187", "text": "public function __construct()\n {\n $this->session = new Container('User');\n }", "title": "" }, { "docid": "141f89c8c30fd21cbe74057c8fae8c95", "score": "0.62798", "text": "static function initSession() {\n\t\tif (function_exists('session_status')) {\n\t\t\tif (session_status() === PHP_SESSION_NONE) {\n\t\t\t\tsession_start();\n\t\t\t}\n\t\t}\n\n\t\t$user = self::getUser();\n\n\t\tif (!$user) {\n\t\t\tself::$_session = $_SESSION['session_id'] = null;\n\t\t\treturn;\n\t\t}\n\n\t\t$session = null;\n\n\t\tif (!empty($_SESSION['session_id'])) {\n\t\t\t$session = Session::retrieveByPK($_SESSION['session_id']);\n\t\t\tif (!$session || @$_SESSION['user_id'] && $session->getUserId() != $_SESSION['user_id']) {\n\t\t\t\t$session = self::$_session = $_SESSION['session_id'] = null;\n\t\t\t}\n\t\t}\n\n\t\tif (!$session) {\n\t\t\t$session = new Session;\n\t\t\t$session->setUser($user);\n\t\t\t$session->setIpAddress(@$_SERVER['REMOTE_ADDR']);\n\t\t\t$session->setUserAgent(@$_SERVER['HTTP_USER_AGENT']);\n\t\t\t$session->setStarted(time());\n\t\t}\n\n\t\t$session->setEnded(time());\n\t\t$session->save();\n\n\t\tif (empty(self::$_classroom)\n\t\t\t&& $classroom = self::getUser()->getMostRecentClassroomFromSession()) {\n\t\t\tself::switchClassroom($classroom);\n\t\t}\n\n\t\tself::$_session = $session;\n\t\t$_SESSION['session_id'] = $session->getId();\n\t}", "title": "" }, { "docid": "bb582fa32fb2359bd515b2b4ff4154f5", "score": "0.6275052", "text": "function __construct()\n\t{\n\t\tif ($this->autoSession) {\n\t\t\t@session_start();\n\t\t}\n\t}", "title": "" }, { "docid": "90da23b44a21c0595136c3241e756143", "score": "0.6267627", "text": "protected function _createSessionNamespace()\n\t{\n\t\t$sessionNamespace = '/' . $this->_getParam(\"module\") . '/' . $this->_getParam(\"controller\") . '/' . $this->_getParam(\"action\") . '/';\n\t\t$c = $this->_getDiContainer();\n\t\t$c->session = function () use ($sessionNamespace) {\n\t\t\t\t\treturn new Session($sessionNamespace);\n\t\t\t\t};\n\t\t$this->_session = $c->session;\n\n\t\t$this->view->addScriptPath(APPLICATION_PATH . \"/layouts/scripts/\");\n\t}", "title": "" }, { "docid": "2facc7a1ca632027400d61901b58d407", "score": "0.6266308", "text": "public function __construct(SessionManager $manager)\n {\n parent::__construct($manager);\n }", "title": "" }, { "docid": "ff8aab877f5eaca192b8ce62e2277f97", "score": "0.6248906", "text": "protected function setup()\n {\n // set gc max lifetime\n ini_set('session.gc_maxlifetime', intval($this->handler->getConfig('lifetime')));\n\n // set session cookie accessible via http only\n ini_set('session.cookie_httponly', 1);\n\n // register respective handler methods\n session_set_save_handler($this->handler, true);\n return $this;\n }", "title": "" }, { "docid": "628ad24b38d02249620774277fff7f39", "score": "0.6246306", "text": "public function __construct(){\n\t\t\t// Comenzar la sesion\n\t\t\tsession_start();\n\t\t\t// Pasamos las variables de sesion al atributo \"mi_sesion\"\n\t\t\t$this->mi_sesion = &$_SESSION;\n\t\t}", "title": "" }, { "docid": "967f185b91313fbe4921b5768b214aad", "score": "0.62304556", "text": "static function setupSession()\n\t{\n\t\tSession::init();\n\t}", "title": "" }, { "docid": "1837e47c7f7a6999b194300cf8ee53bf", "score": "0.6204554", "text": "public static function initFramework()\n {\n Core::setupBuildConstants();\n\n self::setupSentry();\n\n if (Core::isLogLevel(LogLevel::INFO)) {\n Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' initializing framework (' . 'PID: ' . getmypid() . ')');\n }\n\n // avoid autostart of sessions\n $config = new Config(['strict' => true]);\n $sessionManager = new SessionManager($config);\n $sessionManager->writeClose();\n\n Core::setupTempDir();\n\n Core::setupStreamWrapper();\n\n // Cache must be setup before User Locale because otherwise Zend_Locale tries to setup\n // its own cache handler which might result in a open_basedir restriction depending on the php.ini settings\n Core::setupCache();\n\n // setup a temporary user locale. This will be overwritten later but we\n // need to handle exceptions during initialisation process such as session timeout\n // @todo add fallback locale to config file\n Core::set('locale', new Locale('en_US'));\n\n Core::setupUserLocale();\n\n Core::enableProfiling();\n\n if (PHP_SAPI !== 'cli') {\n header('X-API: http://www.tine20.org/apidocs/tine20/');\n if (isset($_SERVER['HTTP_X_TRANSACTIONID'])) {\n header('X-TransactionID: ' . substr($_SERVER['HTTP_X_TRANSACTIONID'], 1, - 1) . ';' . $_SERVER['SERVER_NAME'] . ';16.4.5009.816;' . date('Y-m-d H:i:s') . ' UTC;265.1558 ms');\n }\n }\n\n Core::setupContainer();\n }", "title": "" }, { "docid": "ccab76eb715e92769b5f9217e388fb23", "score": "0.61933106", "text": "public function __construct()\n\t{\n\t\t$this->config = Phpill::config('session');\n\t}", "title": "" }, { "docid": "1c727b5633711dc35d13855830547331", "score": "0.6192997", "text": "public function __construct(){\n\t\t$this->session = new Zend_Session_Namespace('MyClientPortal');\n\t\t$this->error = new Zend_Session_Namespace('MyClientPortalerror');\n\t\t$this->sessionid = new Zend_Session_Namespace('MyClientPortalId');\n\t\t\n\t\t// DB Connection\n\t\t$this->db=Zend_Registry::get('db');\n\t}", "title": "" }, { "docid": "938f954524fb03cc2cbdeac8f1b663d3", "score": "0.61851484", "text": "function __construct() {\n\t\t$this->fc = RequestMediator::getInstance();\n\t\t$this->pageState = $this->fc->getParams();\n\n\t\t// Start/Continue a session\n\t\tsession_start();\n\n\t\t// Instantiate a view to be used by the controller\n\t\t$this->view = new View();\n\t\t$this->view->session = $_SESSION;\n\t\t$this->view->pageState = $this->pageState;\n\t}", "title": "" }, { "docid": "a8b636c279e91e9ca8e28493536d5458", "score": "0.6178934", "text": "public function __construct(){\n\t\t$this->session = new Zend_Session_Namespace('MyPortal');\n\t\t$this->error = new Zend_Session_Namespace('MyPortalerror');\n\t}", "title": "" }, { "docid": "17f95a83033a84af3fb39a87bf5e2a8d", "score": "0.6164673", "text": "public function __construct()\n {\n // check has request a session Id\n if (array_key_exists($this->name, $_COOKIE) == true) {\n // get session Id\n $this->id = $_COOKIE[$this->name];\n\n // read session data\n $this->read();\n\n } else {\n // create a new session Id\n $this->id = $this->createId();\n }\n\n // disabled standard session functions from PHP\n ini_set('session.use_cookies', false);\n ini_set('session.use_trans_sid', false);\n\n // set session name\n session_name($this->name);\n \n // start session\n session_id($this->id);\n session_start();\n\n // save session Id on cookie\n setcookie($this->name, $this->id, time()+3600, null, null, null, 1);\n\n // set session data to session super var\n $_SESSION = $this->data;\n }", "title": "" }, { "docid": "8790bc010e7abedd3939cdf0435a0a6f", "score": "0.6160912", "text": "public function __construct(){\n\t\tif (!$this->readSession()){\n\t\t\tif (defined('MSM_DB_HOST')){\n\t\t\t\t$this->host = MSM_DB_HOST;\n\t\t\t}\n\t\t\tif (defined('MSM_DB_PORT')){\n\t\t\t\t$this->port = MSM_DB_PORT;\n\t\t\t}\n\t\t\tif (defined('MSM_DB_NAME')){\n\t\t\t\t$this->dbname = MSM_DB_NAME;\n\t\t\t}\n\t\t\tif (defined('MSM_DB_USER')){\n\t\t\t\t$this->user = MSM_DB_USER;\n\t\t\t}\n\t\t\tif (defined('MSM_DB_PASS')){\n\t\t\t\t$this->pass = MSM_DB_PASS;\n\t\t\t}\n\t\t}\n\t\tif (strlen($this->user) > 0 && strlen($this->dbname) > 0){\n\t\t\t$this->connect();\n\t\t}\n\t}", "title": "" }, { "docid": "213700551f88ae17df91b1dc33ba2df6", "score": "0.6157517", "text": "public function __construct()\n\t\t{\n\t\t\tif(!isset($_SESSION)) {\n\t\t\t\tsession_start();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "93873a07872b9fd4fc86ed08e846aed6", "score": "0.6142626", "text": "public static function init() {\n Debug::trace();\n /**\n * If it's cookie mode (for web)\n */\n if (isset($_COOKIE['token'])) {\n self::$id = $_COOKIE['token'];\n }\n\n /**\n * If the session id is transmitted via API (via X-Token header)\n */\n $headers = Http::headers();\n if (isset($headers['X-Token'])) {\n self::$id = $headers['X-Token'];\n }\n\n /**\n * Clean old sessions\n */\n Db::getInstance()->sessions->remove([\n 'expire' => [\n '$lt' => Db::date()\n ]\n ]);\n\n /**\n * If a session id was transmitted, we try to get data from DB\n */\n if (self::$id !== false) {\n $d = Db::getInstance()->sessions->findOne([\n 'token' => self::$id\n ]);\n if (!$d) {\n self::$id = false;\n } else {\n self::$__data = $d['data'];\n }\n }\n self::save();\n\n register_shutdown_function(function(){\n Session::save();\n });\n }", "title": "" }, { "docid": "6d26e6c8b1d4cb51816c955592c2efae", "score": "0.6138458", "text": "public function __construct()\n {\n parent::__construct();\n \n ini_set('session.save_handler', 'user');\n \n session_set_save_handler(\n array(&$this, 'open'),\n array(&$this, 'close'),\n array(&$this, 'read'),\n array(&$this, 'write'),\n array(&$this, 'destroy'),\n array(&$this, 'gc')\n );\n }", "title": "" }, { "docid": "d97fdb52d94aa14c9fef4d15d8697fa3", "score": "0.61351955", "text": "protected function _initSession() {\n $config = Kps_Application_Config::load();\n $session_save_path = 'tcp://' . $config['memcache_session']['host'] . ':' . $config['memcache_session']['port'];\n ini_set('session.save_handler', 'memcache');\n ini_set('session.save_path', $session_save_path);\n }", "title": "" }, { "docid": "dd1d31f9d91e7985bf90d9b578d90b2a", "score": "0.6132124", "text": "protected function __construct()\n {\n //Initialize cookie object.\n $this->Cookie = Cookie::getCookie();\n\n //Setup the session configuration details.\n self::setupSession();\n\n //Start the session.\n session_start();\n\n //Secure the session.\n self::secureSession();\n }", "title": "" }, { "docid": "2533b1d7fa0700fca3b143df13c067b2", "score": "0.612806", "text": "public static function getSession() {\n\t\n\t\tif (self::$instance === NULL) {\n\t\t\tself::$instance = new self;\n\t\t}\n\t\t\n\t\t// call \"constructor\" / initialisation method every time an instance is created\n\t\tself::$instance->initSession();\n\t\t\t\n\t\treturn self::$instance;\n\t}", "title": "" }, { "docid": "0c442a488c714e10440e499d1e9db862", "score": "0.61163336", "text": "public function __construct() {\n\t\t$c = getConfig();\n\t\t$c = $c['database'];\n\n\t\t$this->db = new DB($c['host'] . ':' . $c['port'], $c['username'], $c['password'], $c['schema']);\n\t\t$this->sessionId = session_id();\n\t}", "title": "" }, { "docid": "ee1f843eeae7b7fd7879d7118a27191d", "score": "0.6102739", "text": "function __construct() {\n\t\tglobal $session;\n\t\tparent::__construct();\n\t\t\n\t\t$this->session = $session;\n\t}", "title": "" }, { "docid": "6b698344a1a3356a01754639257e75d5", "score": "0.60970676", "text": "public function startSession()\n {\n $this->session = new Session(new PhpBridgeSessionStorage());\n $this->session->start();\n \n return $this;\n }", "title": "" }, { "docid": "441707ca2f8fa5c9108ed860dcae6c57", "score": "0.6095553", "text": "public function __construct()\n {\n session_start();\n $this->initDatabaseConnection();\n }", "title": "" }, { "docid": "1456012535a7f883227ba27ab240086c", "score": "0.60917336", "text": "protected function initAuthSession() \n {\n $authtype = $this->router->getAuthType();\n\n // open PHP session data\n $this->router->initSession();\n \n if ($_SESSION['userid'] == 0 && $this->router->getInput('remembermecode') != '') {\n // auth with a Remember Me code\n $loginmod = $this->application->getModel('Login',array());\n $loginmod->logInWithCode($this->router->getInput('remembermecode'));\n }\n \n // set a user info to an application\n if ($_SESSION['userid'] > 0) {\n $this->application->setUserID($_SESSION['userid']);\n }\n }", "title": "" }, { "docid": "ea9efa89b0246ab0c37813e4c105b4a9", "score": "0.6076922", "text": "public function __construct() {\n\t\tif(!isset($_SESSION)) {\n\t\t\tsession_start();\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "4e2a8cecbf34ad54057bb70aa3789221", "score": "0.6072817", "text": "public function __construct()\n {\n $this->database = new DBFactory();\n $this->session = new Session();\n $this->postmanager = new PostManagerPDO($this->database->getMysqlConnexionWithPDO());\n $this->usermanager = new UserManagerPDO($this->database->getMysqlConnexionWithPDO());\n $this->commentmanager = new CommentManagerPDO($this->database->getMysqlConnexionWithPDO());\n }", "title": "" }, { "docid": "bb142da70b2d49e0456406fe81bef2c6", "score": "0.6072153", "text": "public function __construct(){\n\t\t/* SPUZIK INIT */\n\t\t$this->aws = Aws::factory(\"/var/www/new/packages/amazon-php-sdk/config.php\");\n\t\t$this->client = $this->aws->get(\"dynamodb\");\n\n\t\t/* FACEBOOK INIT */\n\t\t$this->facebook = new \\Facebook(array(\n\t\t\t'appId' => '194694247368490',\n\t\t\t'secret' => 'b4a7c130729347f94f14f64322865126',\n\t\t));\n\n\t\t$this->sessionHandler = $this->client->registerSessionHandler(array(\n\t\t\t'table_name' \t => 'Sessions',\n\t\t\t'session_lifetime' => 604800\n\t\t));\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "f1d1637a64c41b79c990cdaaf83d4708", "score": "0.6061446", "text": "public function __construct()\n {\n if (session_status() == PHP_SESSION_NONE) {\n session_start();\n }\n }", "title": "" }, { "docid": "19496248a413a0ce97cb306adac6e335", "score": "0.6049816", "text": "private function __construct()\n\t{\n\t\tsession_start();\n\t\t$this -> id = session_id();\n\t\t$this -> data =& $_SESSION;\n\t}", "title": "" }, { "docid": "8d54c3ca15d72bab310e2d11bd6e181d", "score": "0.6038928", "text": "public function __construct(){\n\n //modify ini\n //if we are running in https mode, enable secure cookies\n if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on'){\n ini_set('session.cookie_secure', 1);\n }else{\n ini_set('session.cookie_secure', 0);\n }\n ini_set('session.cookie_httponly', 1); //stops any client-side scripts getting access to cookie data\n ini_set('session.use_only_cookies', 1); //make sure only cookies are used for client side session data\n ini_set('session.cookie_lifetime', 0); //make session cookies expire when user's browser is closed\n ini_set('session.gc_maxlifetime', SESSION_LIFE); //seconds before dormant session data is seen as garbage\n ini_set('session.use_trans_sid', 0); //stop session_id being transmitted in URL\n ini_set('session.save_handler', 'user'); //tell PHP that we are going to use custom session handlers\n\n /*\n we can't use our usual mysql library because it destroys itself before session handlers are ever called\n making it unavailable in this scope, instead we have to interface with mysqli separately.\n */\n\n $this->_mysqli_db = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n //check if the sessions table exists, if it doesn't, create it.\n $check_query = $this->_mysqli_db->query('SHOW TABLES LIKE \"'.$this->_session_table.'\"');\n $check_table = $check_query->fetch_row();\n if(empty($check_table[0])){\n $this->create_cache_table();\n }\n\n //check if a session has already been started, start it if not.\n if(session_status() == PHP_SESSION_NONE){\n //set the session name\n session_name(SESSION_NAME);\n\n //stop default session behaviour and set handler functions\n session_set_save_handler(\n array($this, 'open'),\n array($this, 'close'),\n array($this, 'read'),\n array($this, 'write'),\n array($this, 'destroy'),\n array($this, 'garbage_collector')\n );\n\n //start the session\n session_start();\n }\n\n //manually run the garbage collector to make sure sessions older than 45 minutes are removed\n $this->garbage_collector();\n\n }", "title": "" }, { "docid": "e234d3730b449fdea8e56f058a626e61", "score": "0.6031102", "text": "public function __construct($config) {\n if (!session_id()) {\n session_start();\n }\n parent::__construct($config);\n if (!empty($config['sharedSession'])) {\n $this->initSharedSession();\n }\n }", "title": "" }, { "docid": "4b9f059761cc709403eb79143f60808e", "score": "0.6023008", "text": "public function __construct(EntityManagerInterface $em)\n {\n if(session_status() == PHP_SESSION_NONE){\n $this->session = new Session();\n $this->session->start();\n }\n $this->em = $em;\n\n // $this->session->invalidate();\n // die;\n\n }", "title": "" }, { "docid": "1cdf422ebcc2f90d61887f1b9eeb0234", "score": "0.6020289", "text": "static public function start()\n {\n if ($GLOBALS['CREOVEL']['SESSION']) {\n \n if ($GLOBALS['CREOVEL']['SESSION'] === 'table') {\n // include/create session db object\n require_once CREOVEL_PATH . 'classes/active_session.php';\n $GLOBALS['CREOVEL']['SESSIONS_TABLE'] = self::$_table_name_;\n $GLOBALS['CREOVEL']['SESSION_HANDLER'] = new ActiveSession;\n }\n \n // Fix for PHP 5.05\n // http://us2.php.net/manual/en/function.session-set-save-handler.php#61223\n register_shutdown_function('session_write_close');\n \n // start session\n if (session_id() == '') session_start();\n }\n }", "title": "" }, { "docid": "7061e43b1716161dfed5f73084fa8930", "score": "0.59970623", "text": "public function __construct()\n\t{\n\t\t// the session to be started - so fire it up!\n\t\t$this->session = service('session');\n\n\t\t$this->config = config('Auth');\n\t\t$this->auth = service('authentication');\n\t}", "title": "" }, { "docid": "8989a8b343399c087181a5051533eddb", "score": "0.59947956", "text": "function __construct()\n {\n /** STARTS SESSION IF SESSION NOT STARTED YET */\n if (!session_id())\n session_start();\n }", "title": "" }, { "docid": "db1b08aae35e19ab1a10e9c0dd87294d", "score": "0.59946", "text": "public static function factory() {\n return new self(Session::factory());\n }", "title": "" }, { "docid": "b23b012cac66121ede314b4da7ebd11e", "score": "0.5975597", "text": "public function __construct(){\n\t\t$session = new Session();\n\t\t//seguridad de que el usuario este logueado\n\t\t$session->Logueado();\n\t}", "title": "" }, { "docid": "26efa85b714d1e56890b5255ac609a2c", "score": "0.5970653", "text": "public function init()\n {\n parent::init();\n $this->session->start();\n }", "title": "" }, { "docid": "629e188cf127bd56a8ebd577dd58f3d6", "score": "0.59663004", "text": "public function __construct()\n\t{\n\t\t\\session_start();\n\n\t\t$this->bag = & $_SESSION;\n\t}", "title": "" }, { "docid": "f7e017e8a5be7bef59536a5c23325d2b", "score": "0.59506077", "text": "public static function init(){\r\n\t\tif(null == self::$delegate){\r\n\r\n\t\t\tself::$delegate = $_SESSION;\r\n\r\n\t\t}else{\r\n\t\t\tthrow new ComponentException('Cannot init the class '. __CLASS__ .' again.');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8731250517cc10ea7d5843682e7bef96", "score": "0.5948496", "text": "protected function __construct() {\n if(!session_id ()) {\n session_start ();\n }\n }", "title": "" }, { "docid": "d816fe093ef091c15ba602abcdf2c9da", "score": "0.59473705", "text": "public function __construct($session_lifespan = 36000) {\n\t\t$this->dbh = Database::instance();\n\n\t\tsession_set_save_handler(\n\t\t\tarray(&$this, '_session_open_method'),\n\t\t\tarray(&$this, '_session_close_method'),\n\t\t\tarray(&$this, '_session_read_method'),\n\t\t\tarray(&$this, '_session_write_method'),\n\t\t\tarray(&$this, '_session_destroy_method'),\n\t\t\tarray(&$this, '_session_gc_method')\n\t\t);\n\t\t\n\t\t$strUserAgent = $GLOBALS['HTTP_USER_AGENT'];\n\t\tif ($_COOKIE['session']) {\n\t\t\t$this->php_session_id = $_COOKIE['session'];\n\t\t\t$stmt = $this->dbh->select(\"SELECT * FROM user_sessions\n\t\t\t\t\t\t\t\t \t\tWHERE ascii_session_id = \\\"{$this->php_session_id}\\\"\n\t\t\t\t\t\t\t\t \t\tAND ((now() - created) < \\\"$session_lifespan\\\")\n\t\t\t\t\t\t\t\t\t\tAND ((now() - last_impression) <= \\\"{$this->session_timeout}\\\")\n\t\t\t\t\t\t\t\t\t\tOR last_impression = NULL\");\n\t\t}\n\t\tsession_set_cookie_params($session_lifespan, \"/\", \".slimphp.dev\");\n\t\tsession_start();\n\t}", "title": "" }, { "docid": "3991a85f7ea9d0bf39d83d3290ebed24", "score": "0.5945095", "text": "public function __construct()\n {\n $memcache = \\OC::$server->getMemCacheFactory();\n if ($memcache->isAvailable()) {\n $this->cache = $memcache->create();\n }\n $this->helper = new \\OCA\\user_typo3\\lib\\Helper();\n $domain = \\OC::$server->getRequest()->getServerHost();\n $this->settings = $this->helper->loadSettingsForDomain($domain);\n $this->ocConfig = \\OC::$server->getConfig();\n $this->helper->connectToDb($this->settings);\n $this->session_cache_name = 'USER_TYPO3_CACHE';\n return false;\n }", "title": "" }, { "docid": "8dfc81a4f4134391743f9c561c798c83", "score": "0.59445286", "text": "protected function _init() {\n\t\tif (!isset($this->_config['session.name'])) {\n\t\t\t$this->_config['session.name'] = basename(LITHIUM_APP_PATH);\n\t\t}\n\t\t\n\t\tsession_set_save_handler(\n\t\t\tarray($this, \"open\"),\n\t\t\tarray($this, \"close\"),\n\t\t\tarray($this, \"read\"),\n\t\t\tarray($this, \"write\"),\n\t\t\tarray($this, \"destroy\"),\n\t\t\tarray($this, \"gc\")\n\t\t);\n\t\t\n\t\tforeach ($this->_config as $key => $value) {\n\t\t\tif (strpos($key, 'session.') === false) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (ini_set($key, $value) === false) {\n\t\t\t\tthrow new ConfigException(\"Could not initialize the session.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tsession_start();\n\t}", "title": "" }, { "docid": "90c4f39664616ba7e93d3838f3aa1210", "score": "0.594256", "text": "public function start()\n {\n if (!$this->started)\n {\n session_start();\n if (!isset($_SESSION[self::$namespace]) || !is_array(self::$namespace))\n {\n $_SESSION[self::$namespace] = array();\n }\n $this->started = true;\n }\n return $this;\n }", "title": "" }, { "docid": "cf051dcb8aa7988e6c695c3f243c8a75", "score": "0.59373593", "text": "public function testSessionCreate()\n\t{\n\t\t$session = new SessionStorage($this->getHandler());\n\t}", "title": "" }, { "docid": "d49d6d075393e133bde9b747a4331b3b", "score": "0.5931664", "text": "public function __construct()\n {\n // Therefore I can check for the Login directly each time an object of this class is constructed,\n // so that I don't need to check separately in each function.\n if (Session::init()->checkLogin() === false) {\n header('Location:/logout.php');\n exit;\n }\n $this->model = new UserModel();\n $this->userId = $_SESSION['user_id'];\n $this->userName = $_SESSION['user'];\n }", "title": "" }, { "docid": "10e00199a53d6645c1c57d92543d59e9", "score": "0.5927371", "text": "public function __construct($config) {\n\t\tif (!CakeSession::started()) {\n\t\t\tCakeSession::start();\n\t\t}\n\t\tparent::__construct($config);\n\t}", "title": "" }, { "docid": "04d01e54c60cddb31dc40c360031458b", "score": "0.5926367", "text": "public function __construct(){\r\n\t\trequire_once ('Zend/Session/Namespace.php');\r\n\t\t\r\n\t\t//obtem a sessao referente ao namespace Login\r\n\t\t$this->session = new Zend_Session_Namespace ( 'Login' );\r\n\t\t$this->id = $this->session->id;\r\n\t\t\r\n\t\t//verifica login\r\n\t\tif (isset( $this->id )) {\r\n\t\t\t$model = new Application_Model_Motorista();\r\n\t\t\t$motorista = $model->getMotorista($this->id);\r\n\t\t\t\r\n\t\t\t$this->nome = $motorista->nome_motorista;\r\n\t\t\t$this->nascimento = $motorista->nascimento;\r\n\t\t\t$this->email = $motorista->email;\r\n\t\t\t$this->senha = $motorista->senha;\r\n\t\t\t$this->foto_url = FOTO_URL.$motorista->nome_foto;\r\n\t\t\t\r\n\t\t\tif($motorista->bloqueado == 1){\r\n\t\t\t\t$this->logout();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t$this->logado = TRUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\t$this->logado = FALSE;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f25008c88a33875e5646b25b0b35c348", "score": "0.59159124", "text": "public function init()\n {\n $this->db = $this->getInvokeArg('bootstrap')->getResource('db');\n\n /* Set logs protected property with an instance of the Logs model. */\n $this->log = new Default_Model_DbTable_Logs();\n\n /* initialize debug logger. we're going to use FirePHP to log debug\n * messages during runtime, using the Zend_Log_Writer_Firebug which\n * uses the Wildfire protocol. */\n $logger = new Zend_Log_Writer_Null();\n if (APP_ENV != 'production') {\n $logger = new Zend_Log_Writer_Firebug();\n }\n $this->debug = new Zend_Log($logger);\n\n /* Initialize default acl with guest role. */\n $this->acl = new Zend_Acl();\n $this->acl->addRole('user');\n\n /* Initialize user if already authenticated. */\n $userns = new Zend_Session_Namespace('user');\n if ($userns->authenticated == true) {\n $this->user['authenticated'] = true;\n $this->user['userId'] = $userns->userId;\n $this->user['email'] = $userns->email;\n $this->user['name'] = $userns->name;\n $this->user['memberType'] = $userns->memberType;\n $this->user['primaryGroup'] = $userns->primaryGroup;\n $this->user['website'] = $userns->website;\n $this->user['company'] = $userns->company;\n $this->user['location'] = $userns->location;\n $this->user['groups'] = $userns->groups;\n\n /* Unserialize acl if authenticated and set in the session. */\n $aclns = new Zend_Session_Namespace('acl');\n if (isset($aclns->acl)) {\n $this->acl = unserialize($aclns->acl);\n }\n }\n }", "title": "" }, { "docid": "9596b74cf79a50e8badac67c4e465d70", "score": "0.5910167", "text": "protected function __construct() \n\t{\n\t\t$session = Session::getInstance();\n\t\t$session->cart = $this;\n\t\t$this->session = $session->cart;\n\n\t\t$this->session->items = array();\n\t\t$this->session->observers = array();\n\t}", "title": "" }, { "docid": "407266368beab6f277174fd6c221a741", "score": "0.589875", "text": "public static function start(){\n\n @session_start(); //Starts Session\n return new static;\n }", "title": "" }, { "docid": "b2931f36e39461ef24a0690f47ad20f7", "score": "0.5882071", "text": "public function __construct() {\n if (session_status() === PHP_SESSION_NONE)\n session_start();\n else if (session_status() === PHP_SESSION_DISABLED)\n throw new SessionsNotEnabled();\n }", "title": "" }, { "docid": "7a1197a031b7d2def233034218ba725a", "score": "0.5869166", "text": "static function Process() {\n\t\tif (Config::Exists('session')) {\n\t\t\tSession::Init(Config::Get('session'), Config::Get('sessionid'), Config::Get('sessionname'));\n\t\t}\n\t}", "title": "" }, { "docid": "f81e788ff8a43236282b992d0288cfdb", "score": "0.5867054", "text": "public function __construct() {\n\n /* Load Model */\n\t\t$this->main_model = new Main_Model();\n\t\t\n\t\t$this->session = \\Config\\Services::session();\n $this->session->start();\n }", "title": "" }, { "docid": "481c06ef4844b2201bc6be2fac56323a", "score": "0.5861284", "text": "public function __construct()\n {\n //Register Error handler\n set_error_handler([$this, 'replica_error_handler']);\n\n //Register the Exception handler\n set_exception_handler([$this, \"replica_exceptions_handler\"]);\n\n //Register shutdown handler\n register_shutdown_function([$this,'replica_shutdown_handler']);\n\n //set custom php session name instead of default PHPSESSIONID\n session_name(self::get_system('session_name'));\n\n //Start session only it hasn't been started already\n if(session_status()== PHP_SESSION_NONE) {session_start();}\n\n //If the pages hasn't been cached already, then generate new cache\n if(!self::session('exists',['name'=>self::get_system('cached_pages_at')])){ $this->_generate_cached_pages(); }\n\n }", "title": "" }, { "docid": "9fa0f4bcff5a3480954bc9f5ef809f72", "score": "0.58551264", "text": "public function initialize()\n {\n $this->session();\n\n $this->users = new \\Anax\\Users\\User();\n $this->users->setDI($this->di);\n }", "title": "" }, { "docid": "54afd32607f205a62234797acd221e4b", "score": "0.5849755", "text": "function __construct() {\n parent::__construct();\n $this->sessionCheck();\n }", "title": "" }, { "docid": "a9f0914d7a804f139fa8caa395dc6acd", "score": "0.5848026", "text": "public function __construct(){\n $this->index = \\Base::instance();\n try{\n $db = $this->index->get('dbconexion');\n if ($db === null){\n throw new \\Exception('Error en la conexión a base de datos');\n }\n $sesion = new \\DB\\SQL\\Session($db);\n }catch (\\Exception $e){\n print $e->getMessage();\n //TODO: Implementar esto\n //$this->index->reroute('@login_mensaje(@mensaje=Error general de la aplicación)');\n //exit();\n }\n // El que descienda de acá, usará twig\n $this->twig = $this->index->get('twig');\n // Traemos las variables de sesión necesarias\n // dn y pswd quedarán disponibles para el uso de las clases hijas\n $this->dn = $this->index->get('SESSION.dn');\n $this->pswd = $this->index->get('SESSION.pswd');\n // Solo los necesitamos para crear inicializar el array parametros\n $this->parametros = array(\n 'rol' => $this->index->get('SESSION.rol'),\n 'menu' => $this->index->get('SESSION.permisos'),\n 'titulo'=> $this->index->get('SESSION.titulo'),\n 'usuario' => $this->index->get('SESSION.user')\n );\n }", "title": "" }, { "docid": "56d6246524ba48e0b1e1faa5059345c1", "score": "0.584561", "text": "public function __construct($token = \"\")\n {\n parent::__construct();\n\n // try to check if session is already in progress\n $this->tryCreateSession($token);\n\n }", "title": "" }, { "docid": "6af4f48052637641532305672d660293", "score": "0.58396715", "text": "public function __construct() {\n if (isset($_SESSION['user'])) {\n $this->user = $_SESSION['user'];\n } else {\n $this->user = new \\Modele\\user;\n }\n }", "title": "" }, { "docid": "173198dad565bf864d0891b27bd07ede", "score": "0.58307457", "text": "public function openSession() {\n return new repose_Session(\n $this->configuration->engine(),\n $this->configuration->mapping(),\n $this->configuration->autoloader()\n );\n }", "title": "" }, { "docid": "b2f6d84e862ca38a3d1cec871236c723", "score": "0.5824972", "text": "public function __construct(){\n\t\tparent::__construct();\n\t\t$this->_checkSession();\n\t}", "title": "" }, { "docid": "feeb3aec675fc768a4ff40d146467d40", "score": "0.58229387", "text": "public function __construct() {\n\t\tsession_start();\n\t\t// create session\n\n\n\t\t\tif ($this -> logout()) {// checking for logout, performing login\n\n\t\t\t\t// do nothing, you are logged out now // this if construction just exists to prevent unnecessary method calls\n\n\t\t\t} elseif ($this -> loginWithSessionData()) {\n\n\t\t\t\t$this -> logged_in = true;\n\n\t\t\t} elseif ($this -> loginWithPostData()) {\n\n\t\t\t\t$this -> logged_in = true;\n\n\t\t\t}\n\n\n\t}", "title": "" }, { "docid": "b3a4cf7598118619e539d06c65733f55", "score": "0.5818754", "text": "private static function session(){\n if(!isset(self::$session)){\n self::$session = new Session();\n }\n if (!self::$session->isActive()){\n self::$session->resume();\n //print \"Starting session:\";\n }\n return self::$session;\n }", "title": "" }, { "docid": "1677430f1c7c55a6a196e7035a1c9369", "score": "0.58179635", "text": "protected static function initZombieSession()\n {\n $configs = sfConfig::get('sf_phpunit_mink');\n extract($configs['drivers']['zombie']);\n\n $connection = new ZombieConnection($host, $port);\n $server = $autoServer ? new ZombieServer($host, $port, $nodeBin) : null;\n\n return new Session(new ZombieDriver($connection, $server, $autoServer));\n }", "title": "" }, { "docid": "e84e00f37995abe94371bd720b658069", "score": "0.581298", "text": "function __construct() {\n\t\t$this->starttime = microtime(TRUE);\n\n\t\t// we're going to create our own directory for saving cookies, so that we\n\t\t// can extend the amount of time before they're garbage collected.\n\t\t$path = session_save_path();\n\t\tif ($path) $ourpath = endslash($path).'pwo/';\n\t\telse $ourpath = endslash(sys_get_temp_dir()).'pwo/';\n\t\tif (!file_exists($ourpath)) mkdir($ourpath);\n\t\tsession_save_path($ourpath);\n\t\t\n\t\t// set the max lifetime to 30 days, so that extend() will work\n\t\tini_set('session.gc_maxlifetime', 60*60*24*30);\n\t\t\n\t\t// let's set the cookie path to our link root, if we have one\n\t\tglobal $cfg;\n\t\tif ($cfg['link_root']) {\n\t\t\t$info = session_get_cookie_params(); \n\t\t\tsession_set_cookie_params($info['lifetime'], $cfg['link_root'], $info['domain'], $info['secure'], $info['httponly']);\n\t\t}\n\t\t\n\t\t// we do our own URL re-writing, so make sure PHP doesn't try\n\t\t// to do it for us\n\t\tini_set('session.use_trans_sid', false);\n\t\t// use the long-term cookie if session cookie is missing\n\t\tif (!$_REQUEST[$this->sidname()] && $_COOKIE['cookiesid']) {\n\t\t\tsession_id($_COOKIE['cookiesid']); }\n\t\t\t\t\t\t\n\t\t// check to see if the session can be continued\n\t\tsession_name($this->sidname());\n\t\tsession_start();\n\t\t\t\t\n\t\t// if this is a good session, \"initiated\" will be TRUE\n\t\tif (!$_SESSION['initiated']) {\n\t\t\tsession_destroy();\n\t\t\tsession_id(generatestring(12));\n\t\t\tsession_start();\n\t\t\t$_SESSION['initiated'] = TRUE;\n\t\t} else {\n\t\t\t// if we just moved from secure to non-secure or vice versa,\n\t\t\t// generate a new session id. This helps prevent session hijack\n\t\t\t// exploits.\n\t\t\tif ($_SESSION['wassecure'] != doc::issecure()) $this->escalate();\n\t\t}\n\t\t$_SESSION['wassecure'] == doc::issecure();\n\t\t\n\t\t// set the save path back to what it was\n\t\tsession_save_path($path);\n\t}", "title": "" }, { "docid": "ca5a01401feec6cfbc078d1ef246691f", "score": "0.5809046", "text": "public function __construct()\r\n\t{\r\n\t\tsession_start();\r\n\t}", "title": "" }, { "docid": "97683460d16b19624efa72bd80dd1f13", "score": "0.5806367", "text": "function __construct() {\r\n kloader::load('Zend_Auth');\r\n kloader::load('Zend_Auth_Storage_Session');\r\n \r\n// set the unique storege\r\n Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session(\"shgfhgjhgjkhjrakkesan4kemasti\"));\r\n }", "title": "" }, { "docid": "766f1d23ef79a4c4b3a92e0ee22b3ea2", "score": "0.58036727", "text": "public function __construct()\n\t{\n\t\tsession_start();\n\t}", "title": "" }, { "docid": "c28a8383791e199dbca034120c66cc00", "score": "0.5802735", "text": "function __construct()\n {\n session_start();\n if (!isset($_SESSION['adjectives'])) {\n $_SESSION['adjectives'] = $this->getData('adjectives');\n $_SESSION['names'] = $this->getData('names');\n }\n }", "title": "" }, { "docid": "ce903c9167fa6bbf428b3e7e31606b09", "score": "0.57995725", "text": "public function __construct()\n\t{\n\t\t$this->DB= DB::getInstance();\n\t\tif(!isset($_SESSION))\n\t\t\tsession_start();\n\t}", "title": "" }, { "docid": "2cc7e703d81dda2bc446c1d5995270d2", "score": "0.5798889", "text": "static function start(){\n\t\tself::$preData = $_SESSION;\n\t\tsession_set_save_handler(\n\t\t\t\tarray(Session,\"open\"),\n\t\t\t\tarray(Session,\"close\"),\n\t\t\t\tarray(Session,\"read\"),\n\t\t\t\tarray(Session,\"write\"),\n\t\t\t\tarray(Session,\"destroy\"),\n\t\t\t\tarray(Session,\"gc\")\n\t\t\t);\n\t\tsession_start();\n\t}", "title": "" }, { "docid": "dbee535b14bd5a40d4408ab340e65643", "score": "0.5795836", "text": "function __construct()\n {\n // does not persist values between requests\n mw('user')->session_provider = 'array';\n }", "title": "" }, { "docid": "a409fff2322e251a0727f02cd4b80b0b", "score": "0.57956815", "text": "protected function setupSession()\n {\n //Set session settings.\n ini_set('session.use_cookies', 1);\n ini_set('session.use_only_cookies', 1);\n ini_set('session.cookie_lifetime', 0);\n ini_set('session.cookie_httponly', 1);\n ini_set('session.use_trans_sid', 0);\n ini_set('session.use_strict_mode', 1);\n ini_set('session.entropy_length', 32);\n ini_set('session.hash_bits_per_character', 5);\n ini_set('session.hash_function', CONFIG\\SESSION\\ENCRYPTION);\n\n session_name(CONFIG\\SESSION\\NAME);\n }", "title": "" }, { "docid": "e7aae58d4da1194d14c578e8cdbd632f", "score": "0.57927203", "text": "function __construct()\n {\n session_start();\n }", "title": "" } ]
8ef242df6ad03ea33f54ee76ecc344c0
Bootstrap any application services.
[ { "docid": "895e5680f252e7019c28838583dd6396", "score": "0.0", "text": "public function boot()\n {\n // Using class based composers...\n View::composer(\n [\n 'covid-cases.overall',\n 'covid-cases.countries'\n ],\n 'App\\Http\\View\\Composers\\CovidCases\\OverallCaseComposer'\n );\n\n View::composer(\n 'covid-cases.countries', 'App\\Http\\View\\Composers\\CovidCases\\CountryCaseComposer'\n );\n }", "title": "" } ]
[ { "docid": "b9c6b57c4a4af16f094fbbcb0566c6f5", "score": "0.7690103", "text": "protected function bootstrap() {\n\t\tforeach ( $this->get_services() as $service ) {\n\t\t\tif ( method_exists( $service, 'boot' ) ) {\n\t $service->boot();\n\t }\n\t\t}\n\t}", "title": "" }, { "docid": "b4684a89e64c6637db95a223a12bd3b5", "score": "0.76085657", "text": "private function boot()\n {\n // load service classes by the config and instantiate them\n $services_classes = config('app.services');\n if (is_array($services_classes))\n {\n foreach ($services_classes as $service_class)\n {\n $service = instantiate_if($service_class, '\\Pure\\Service');\n if($service) {\n array_push($this->m_services, $service);\n }\n }\n }\n\n // boot services\n foreach ($this->m_services as $service)\n {\n $service->boot();\n }\n }", "title": "" }, { "docid": "5a722d65bbda26084d9599125302c614", "score": "0.7483943", "text": "public static function boot()\n {\n $services = config('providers');\n foreach ($services as $service) {\n call_user_func([$service, 'boot']);\n }\n }", "title": "" }, { "docid": "374cec27322643427c092bb4c7fbf2e2", "score": "0.72739476", "text": "public function boot() {\n\n $this->handleConfigs();\n\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n\n }", "title": "" }, { "docid": "7e646dc7a80d72ec1699fa90df7accf3", "score": "0.7151613", "text": "public function boot() : void\n {\n $configLoader = new ConfigSettingsService($this->app->environment());\n $configLoader->load();\n }", "title": "" }, { "docid": "663fb2589400202b93132cf024dcb827", "score": "0.706437", "text": "public function boot()\n {\n $this->bootstrap();\n $this->bootstrapConsole();\n }", "title": "" }, { "docid": "56e14a436b3098780c4a9e4f5bcd839b", "score": "0.70358205", "text": "public function bootstrap()\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n $this->app->loadDeferredProviders();\n\n if (! $this->commandsLoaded) {\n $this->commands();\n\n $this->commandsLoaded = true;\n }\n }", "title": "" }, { "docid": "b118f5c1c453ea06a15fd54854e7d352", "score": "0.70175827", "text": "public function boot()\n {\n $this->loadJsonTranslationsFrom(DASHBOARD_PATH.'/resources/lang');\n $this->registerViews();\n $this->registerProviders();\n $this->registerConfig();\n $this->registerDatabase();\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "556b46d9bdee7c07b3853c20c1e49709", "score": "0.7012213", "text": "public function boot()\n {\n $app = $this->app;\n\n $this->bootConfig();\n }", "title": "" }, { "docid": "1bab681aa28147244f221d2b0c3e9a30", "score": "0.7006159", "text": "public function boot()\n {\n \\URL::forceRootUrl(\\Config::get('app.url'));\n if (\\Str::contains(\\Config::get('app.url'), 'https://')) {\n \\URL::forceScheme('https');\n }\n\n Task::observe(TaskObserver::class);\n\n Paginator::defaultView('pagination.materialize-css');\n Paginator::defaultSimpleView('pagination.simple-materialize-css');\n }", "title": "" }, { "docid": "a938aa369274ea76ffa3eafb09b288ed", "score": "0.69968307", "text": "public function boot()\n {\n // Default settings that we want to apply to all our projects\n Schema::defaultStringLength(191);\n Paginator::defaultView('pagination.uikit');\n\n //Routes\n $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');\n\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'laravel-uikit');\n\n if (!$this->app->runningInConsole()) {\n return;\n }\n\n $this->commands([\n Console\\InstallCommand::class,\n ]);\n }", "title": "" }, { "docid": "a2a6f840ae8752aef01ab127725df8c8", "score": "0.69932055", "text": "public function boot()\n {\n if (! config('app.installed')) {\n return;\n }\n\n $this->registerEnabledProviders();\n $this->setupFacebook();\n $this->setupGoogle();\n }", "title": "" }, { "docid": "af5d2ea24fa1dbfa132efc607b7f8f0a", "score": "0.6989376", "text": "public function boot()\n\t{\n\t\t//Only for development. Not necessary for publishing.\n require __DIR__ . '/../../../../../vendor/autoload.php';\n\t}", "title": "" }, { "docid": "ec37c74229c47d27099c47657c023b75", "score": "0.69614553", "text": "public function boot()\n {\n $this->app->bind(GeoCoordinatesApiService::class, function (): GeoCoordinatesApiService {\n return new GeoCoordinatesApiService(\n config('geocoder.key'),\n app()->make(Geocoder::class)\n );\n });\n\n $this->app->bind(UserRepositoryInterface::class, UserRepository::class);\n $this->app->bind(ClientRepositoryInterface::class, ClientRepository::class);\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.695625", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "8ff3a37d8ea964a02d920c45f63bba1e", "score": "0.695625", "text": "public function boot()\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "d81a76cf431610bb5627427ab0de6e1d", "score": "0.6936834", "text": "public function boot(): void\n {\n $this->setupConfig($this->app);\n }", "title": "" }, { "docid": "3214f2a0ee1a20a52156aa47471012ab", "score": "0.6933938", "text": "public function boot()\n {\n $this->strapViews();\n $this->strapMigrations();\n $this->strapCommands();\n $this->strapTranslations();\n $this->strapRoutes();\n\n $this->registerPolicies();\n }", "title": "" }, { "docid": "9ae290f3d8e6c908bcabe7278dadbc1b", "score": "0.69201154", "text": "public function boot()\n {\n $router = $this->app['router'];\n $router->pushMiddlewareToGroup('web', ServiceMiddleware::class);\n $this->loadRoutesFrom(__DIR__.'/../routes/web.php');\n $this->loadRoutesFrom(__DIR__.'/../routes/api.php');\n $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'service');\n\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'service');\n\n\n $this->publishes([\n __DIR__.'/../public' => public_path('vendor/jmrashed'),\n ], 'jmrashed');\n $this->commands([\n MigrateStatusCommand::class,\n ]);\n }", "title": "" }, { "docid": "dae1083e643a5802172ecbd3b8af041e", "score": "0.6902575", "text": "public function boot()\n {\n $applicationFileName = with(new ReflectionClass('\\Anwendungen\\Applications\\ApplicationsServiceProvider'))->getFileName();\n $applicationPath = dirname($applicationFileName);\n\n $this->loadViewsFrom($applicationPath . '/../../resources/views', 'applications');\n\n include $applicationPath . '/../../routes/api.php';\n include $applicationPath . '/../../routes/web.php';\n }", "title": "" }, { "docid": "371b5fb4287dce9224bf8653f9364c73", "score": "0.68983895", "text": "public function boot()\n {\n $loader = AliasLoader::getInstance();\n\n $loader->alias('AppLaravel', LaraJapan::class);\n $this->app->singleton('LaraJapan', function () {\n return new AppLaravel();\n });\n\n $this->loadHelpers();\n $this->registerConfigs();\n\n }", "title": "" }, { "docid": "c7b4db2c11e2e4aad8d7dabf79b068d5", "score": "0.68939203", "text": "public function boot(): void\n {\n if ($this->isBooted()) {\n return;\n }\n\n array_walk($this->serviceProviders, function (ServiceProvider $provider) {\n $this->bootProvider($provider);\n });\n\n $this->booted = true;\n }", "title": "" }, { "docid": "49d4e5411f358fc2b6c05b2e9b16a19f", "score": "0.689156", "text": "public function boot()\n {\n Nova::script('NovaAwsCloudwatch', __DIR__.'/../dist/js/tool.js');\n\n $this->app->booted(function () {\n $this->routes();\n });\n\n $this->mergeConfigFrom(__DIR__.'../../config/nova_aws_cloudwatch.php', 'nova_aws_cloudwatch');\n\n }", "title": "" }, { "docid": "e1afe4f6a2bb6fa790ac5e35a2b5cba1", "score": "0.68877506", "text": "public function boot() {\n // Mix manifest\n if (array_key_exists('SERVER_ADDR', $_SERVER) && $_SERVER[\"SERVER_ADDR\"] == \"185.51.191.57\") {\n $this->app->bind('path.public', function () {\n return base_path().'/../public_html';\n });\n }\n\n // Blade kiegészítés\n Blade::directive('money', function ($expression) {\n return \"<?php echo '<span>' . resolve('App\\Subesz\\MoneyService')->getFormattedMoney({$expression}) . '</span>'; ?>\";\n });\n\n Schema::defaultStringLength(191);\n\n // Bootstrap léptető modul\n Paginator::useBootstrap();\n }", "title": "" }, { "docid": "1451bef3935057cc91a4c58ec8733095", "score": "0.68853635", "text": "public function boot()\n {\n // Bootstrap code here.\n }", "title": "" }, { "docid": "1451bef3935057cc91a4c58ec8733095", "score": "0.68853635", "text": "public function boot()\n {\n // Bootstrap code here.\n }", "title": "" }, { "docid": "dc56400e14d71d74c7dbb862ac6a463c", "score": "0.687691", "text": "public function boot()\n {\n $container = $this->getContainer();\n\n // Load route of application\n $container->get(FileSystem::class)->load('/routes/web.php');\n $container->get(FileSystem::class)->load('/routes/api.php');\n }", "title": "" }, { "docid": "80eaa87d6bcab6f40b70fbea345f926a", "score": "0.6875531", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->bootInConsole();\n }\n\n // Load pusher\n $this->loadPusher();\n\n // Load routes\n $this->loadRoutesFrom(__DIR__.'/routes/boilerplate.php');\n if (file_exists(base_path('routes/boilerplate.php'))) {\n $this->loadRoutesFrom(base_path('routes/boilerplate.php'));\n }\n\n // Load migrations, views and translations from current directory\n $this->loadMigrationsFrom(__DIR__.'/database/migrations');\n $this->loadViewsFrom(__DIR__.'/resources/views/components', 'boilerplate');\n $this->loadViewsFrom(__DIR__.'/resources/views', 'boilerplate');\n $this->loadJSONTranslationsFrom(__DIR__.'/resources/lang');\n $this->loadTranslationsFrom(__DIR__.'/resources/lang', 'boilerplate');\n\n // Add the impersonate middleware into the default web middleware group\n if (config('boilerplate.app.allowImpersonate', false)) {\n $this->router->pushMiddlewareToGroup('web', BoilerplateImpersonate::class);\n }\n\n // Load view composers\n $this->viewComposers();\n }", "title": "" }, { "docid": "ad23349e053d244387ad5ea0981c3654", "score": "0.68703157", "text": "public function boot()\n\t{\n\t\t//set default time to New York\n\t\tdate_default_timezone_set('America/New_York');\n\t\t\n\t\t//add forms support (TODO: check if support already available)\n\t\t$loader = AliasLoader::getInstance();\n\t\tif ($loader) {\n\t $loader->alias('Form', \\Collective\\Html\\FormFacade::class);\n \t$loader->alias('HTML', \\Collective\\Html\\HtmlFacade::class);\n\t\t}\n\t\tApp::register('Collective\\Html\\HtmlServiceProvider');\n\n\t\t//register middleware\n\t\t$router = $this->app['router'];\n\t\tif ($router) {\n\t\t\t$router->middleware('AppHTTPS', 'Belif\\Mobile\\Middleware\\HTTPSMiddleware');\n//\t\t\t$router->middleware('AppAuth', 'Soup\\Mobile\\Middleware\\AuthMiddleware');\t\n//\t\t\t$router->middleware('AppSignUp', 'Soup\\Mobile\\Middleware\\SignUpMiddleware');\n//\t\t\t$router->middleware('NewSignUp', 'Soup\\Mobile\\Middleware\\InquiryRegisteredMiddleware');\n\t\t\t$router->middleware('ProductAvailable', 'Belif\\Mobile\\Middleware\\AvailableMiddleware');\n\t\t\t$router->middleware('ProductRequired', 'Belif\\Mobile\\Middleware\\ProductMiddleware');\n\t\t\t$router->middleware('EmailRequired', 'Belif\\Mobile\\Middleware\\EmailMiddleware');\n\t\t\t$router->middleware('AppMobile', 'Belif\\Mobile\\Middleware\\MobileMiddleware');\n\t\t\t$router->middleware('AppDesktop', 'Belif\\Mobile\\Middleware\\DesktopMiddleware');\n\t\t}\n\n\t\t//include package routes\n\t\tinclude __DIR__.'/routes.php';\n\t\t\n\t\t//include package composers\n\t\tinclude __DIR__.'/composers.php';\n\t\t\n\t\t//include package helpers\n\t\tinclude __DIR__.'/helpers/CMSHelper.php';\n\t\tinclude __DIR__.'/helpers/DataHelper.php';\n\n\t\t//load views\n\t\t$this->loadViewsFrom(__DIR__.'/views', 'belif');\n\n\t\t//publish assets\n\t\t$this->publishes([\n\t\t __DIR__.'/../public' => public_path('belif/mobile'),\n\t\t], 'public');\n\n\t\t// force HTTPS (used because Nginx runs HTTP behind AWS portal)\n if (env('APP_ENV') != 'local') {\n\t\t \\URL::forceSchema('https');\n }\n\n\t}", "title": "" }, { "docid": "679596d7110f06eaa7dfb9b9c5bf9f67", "score": "0.68540823", "text": "public function boot()\n {\n $this->app->bind('App\\Services\\TeamService', function() {\n return new TeamService;\n });\n }", "title": "" }, { "docid": "1aa4f1f90ffd40dd03d9b3aa4b261813", "score": "0.6844431", "text": "public function boot()\n {\n $this->app->singleton(Plivo::class, function ($app) {\n return new Plivo(config('services.plivo'));\n });\n }", "title": "" }, { "docid": "24a6543baa1448c5254c78fee1a673a9", "score": "0.68429834", "text": "public function boot()\n {\n $this->registerServiceProviders(array_merge(\n $this->getContainersServiceProviders(),\n $this->engineServiceProviders\n ));\n\n $this->autoLoadViewsFromContainers();\n\n $this->overrideDefaultFractalSerializer();\n }", "title": "" }, { "docid": "95bc038d52a676d55be285462de1d363", "score": "0.6842535", "text": "public function boot()\n {\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'nova-installer');\n\n $this->app->booted(function () {\n $this->routes();\n });\n\n if ($this->app->runningInConsole()) {\n $this->commands([\n NovaPackageDiscoveryCommand::class,\n ]);\n\n $this->publishes([\n __DIR__.'/../config/config.php' => config_path('nova-installer.php'),\n ], 'config');\n }\n }", "title": "" }, { "docid": "6ad69d4c95a61516515bd342a97b7c85", "score": "0.6841509", "text": "public function boot() {\n\n\t\tif ($this->app->runningInConsole()) {\n\t\t\t$this->commands([\n\t\t\t\t\\Electrik\\Console\\InstallCommand::class,\n\t\t\t\t\\Electrik\\Console\\MakeCommand::class,\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "8d543cca20e8c6cfa5d5f80684e54940", "score": "0.6840064", "text": "public function boot()\n {\n //\n $this->initDbListen();\n $this->initAppTerminating();\n $this->initLogListen();\n $this->initBugsnag();\n }", "title": "" }, { "docid": "20d8cadc33e266e4f6f8d40885e1d352", "score": "0.68306595", "text": "private function bootstrap()\n {\n $this->bootstrapConfigs();\n\n $this->bootstrapMiddleware();\n\n $this->loadResources();\n\n $this->registerBladeDirectives();\n\n }", "title": "" }, { "docid": "ac0f67f830c49b58ced70da7eee56013", "score": "0.68295825", "text": "public function boot()\n {\n $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'jijoel');\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n\n $this->loadBladeConfigDirective();\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "43f20fe13e4a40d790f0e86b6c189511", "score": "0.6828949", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Console\\Custom\\ServiceMakeCommand::class,\n Console\\Custom\\RepositoryMakeCommand::class,\n ]);\n }\n }", "title": "" }, { "docid": "3b617485f2f7d9607343fdb9b6de026c", "score": "0.68279755", "text": "public function boot() {\n\t\tif ($this->app->runningInConsole()) {\n\t\t\t$this->publishes([\n\t\t\t\t__DIR__ . '/../config/servicedeskplus-api.php' => config_path('servicedeskplus-api.php'),\n\t\t\t\t\t], 'servicedeskplus-api-config');\n\t\t}\n\t}", "title": "" }, { "docid": "c7c39fbd5c2d85d1ad57194d8e560bca", "score": "0.6824917", "text": "public function boot()\n {\n // Bootstrap code here.\n $this->app->when(JusibeChannel::class)\n ->needs(JusibeClient::class)\n ->give(function () {\n\n $jusibeConfig = config('services.jusibe');\n\n if(is_null($jusibeConfig)) {\n throw InvalidConfiguration::configurationNotSet();\n }\n\n return new JusibeClient(\n $jusibeConfig['key'],\n $jusibeConfig['token']\n );\n });\n }", "title": "" }, { "docid": "3b053054ebe7363fe446daef0faeb667", "score": "0.68208516", "text": "public function boot(): void\n {\n $this->loadTranslationsFrom($this->lang, 'ApiHelper');\n\n $this->app['router']->aliasMiddleware('ApiHelperRateLimiter', CustomRateLimiter::class);\n\n if ($this->app->runningInConsole()) {\n $this->publishes([\n $this->stubPath => resource_path('stubs/joy2362'),\n ], 'service-generator-stub');\n \n $this->publishes([\n $this->lang => $this->app->langPath('joy2362/service-generator'),\n ], 'service-generator-lang');\n }\n }", "title": "" }, { "docid": "bf335797bd12ac7bd69869fdf05a7fe3", "score": "0.6815237", "text": "public function boot()\n {\n $this->client = new HttpClient([\n 'base_uri' => 'https://api.ipdata.co/',\n 'query' => [\n 'api-key' => $this->config('key'),\n ],\n ]);\n }", "title": "" }, { "docid": "0ef38d564689845078fc7f057c2e74bf", "score": "0.6814007", "text": "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'morshadun');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'morshadun');\n // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "417f12b102dd2d58b19394140307597b", "score": "0.68110234", "text": "public function boot()\n {\n $packageBaseDir = __DIR__ . '/../../';\n // load migrations\n $this->loadMigrationsFrom($packageBaseDir . 'database/migrations');\n // load routes\n $this->loadRoutesFrom($packageBaseDir . 'routes/api.php');\n\n // register commands and schedules\n if ($this->app->runningInConsole()) {\n $this->commands([\n CompleteDeposits::class,\n SendWithdrawals::class\n ]);\n\n $this->app->booted(function () {\n $schedule = $this->app->make(Schedule::class);\n $schedule->command('deposits:complete')->everyMinute();\n $schedule->command('withdrawals:send')->everyFiveMinutes();\n });\n }\n }", "title": "" }, { "docid": "5d41fdf8ee46a7fe059a165222bc8135", "score": "0.6795001", "text": "public function boot()\n {\n dd(\"Initing Greeting service\");\n }", "title": "" }, { "docid": "3656a14f697a3c3407d2130bdcdc9717", "score": "0.6793178", "text": "public function boot()\n {\n // main\n Blade::component(Hamburger::class, 'main-hamburger');\n Blade::component(Logo::class, 'main-logo');\n Blade::component(Header::class, 'main-header');\n Blade::component(LeftMenu::class, 'main-left-menu');\n Blade::component(RightMenu::class, 'main-right-menu');\n Blade::component(Footer::class, 'main-footer');\n\n // home\n Blade::component(QuickStart::class, 'home-quick-start');\n Blade::component(Procedure::class, 'home-procedure');\n Blade::component(About::class, 'home-about');\n Blade::component(Advantage::class, 'home-advantage');\n Blade::component(ActiveDevelopers::class, 'home-active-developers');\n Blade::component(TopDevelopers::class, 'home-top-developers');\n Blade::component(Tasks::class, 'home-tasks');\n Blade::component(Portfolio::class, 'home-portfolio');\n Blade::component(TopCategories::class, 'home-top-categories');\n Paginator::useBootstrap();\n\n }", "title": "" }, { "docid": "03072715c4d8b8d257a07a85de8100b5", "score": "0.6792469", "text": "public function boot()\n {\n $this->client = new HttpClient([\n 'base_uri' => 'https://api.2ip.ua/',\n /*\n 'query' => [\n 'some_option' => $this->config('some_option'),\n ],*/\n ]);\n }", "title": "" }, { "docid": "8d7b3f82f2ec930d3d3fcd192c268d5d", "score": "0.67786294", "text": "public function boot()\n {\n\n $this->app->bind(UserRepositoryInterface::class, UserRepository::class);\n $this->app->bind(UserServiceInterface::class, UserService::class);\n\n $this->app->bind(DistrictRepositoryInterface::class, DistrictRepository::class);\n $this->app->bind(DistrictServiceInterface::class, DistrictService::class);\n\n $this->app->bind(DeceasedRepositoryInterface::class, DeceasedRepository::class);\n $this->app->bind(DeceasedServiceInterface::class, DeceasedService::class);\n\n $this->app->bind(DonationRepositoryInterface::class, DonationRepository::class);\n $this->app->bind(DonationServiceInterface::class, DonationService::class);\n\n $this->app->bind(EventRepositoryInterface::class, EventRepository::class);\n $this->app->bind(EventServiceInterface::class, EventService::class);\n\n $this->app->bind(PanditaRepositoryInterface::class, PanditaRepository::class);\n $this->app->bind(PanditaServiceInterface::class, PanditaService::class);\n\n $this->app->bind(RegionRepositoryInterface::class, RegionRepository::class);\n $this->app->bind(RegionServiceInterface::class, RegionService::class);\n\n $this->app->bind(RequestKtubRepositoryInterface::class, RequestKtubRepository::class);\n $this->app->bind(RequestKtubServiceInterface::class, RequestKtubService::class);\n\n $this->app->bind(ViharaRepositoryInterface::class, ViharaRepository::class);\n $this->app->bind(ViharaServiceInterface::class, ViharaService::class);\n\n $this->app->bind(CompanyVacancyRepositoryInterface::class, CompanyVacancyRepository::class);\n $this->app->bind(CompanyVacancyServiceInterface::class, CompanyVacancyService::class);\n }", "title": "" }, { "docid": "5c37fe8921963295ca54bd81803fd0e5", "score": "0.67778003", "text": "public function boot() {\n\t\t$this->app->resolve( Component::class )->boot();\n\t}", "title": "" }, { "docid": "90a2134dcef34868588c8c15525501ca", "score": "0.6773912", "text": "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'fevrok');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'fevrok');\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "e51f3f6962eb3d10832be100dbcc457f", "score": "0.6772949", "text": "public function boot()\n {\n $this->app->singleton(RolesHelper::class);\n }", "title": "" }, { "docid": "34dff9c16cb2c5b330896a5a44ae3da6", "score": "0.67719465", "text": "public function boot(): void\n {\n $repositories = $this->fileRepositoies();\n $contracts = $this->fileContracts();\n\n foreach ($repositories as $key => $repository) {\n $this->app->bind($this->getAppNamespace() . $contracts[$key], $this->getAppNamespace() . $repository);\n }\n }", "title": "" }, { "docid": "9322e16c4850e25e81848c9457b7d0f5", "score": "0.67699623", "text": "public function boot()\n { \n $this->app->booted(function () {\n $this->routes();\n }); \n\n Nova::serving(function() {\n Nova::resources([\n SmsPanel::class\n ]);\n });\n }", "title": "" }, { "docid": "e50c8f01680a42476bb238355c75a385", "score": "0.67698866", "text": "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'deniskisel');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'deniskisel');\n // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "df97828faa13b27518f8d7f330a70312", "score": "0.6766494", "text": "public function boot()\n {\n $this->app->make(EngineManager::class)->extend('sonic', function () {\n return new SonicSearchEngine(\n new Ingest($this->generateClient()),\n new Search($this->generateClient()),\n new Control($this->generateClient()),\n \\config('scout.sonic.password')\n );\n });\n }", "title": "" }, { "docid": "afd9b4c598dd7cf03d017530a97d857c", "score": "0.6754361", "text": "public function boot() {\n\n /*\n * Services we need for admin\n */\n $this->app['view']->composer([\n 'layouts.template.admin.default',\n 'layouts.template.admin.page-with-aside']\n ,Composers\\AddAdminUser::class);\n $this->app['view']->composer('layouts.upload', Composers\\AddAdminUser::class);\n\n /*\n * Services we need for FrontEnd\n */\n\n $this->app['view']->composer('layouts.template.frontend.default', Composers\\InjectPages::class);\n\n /*\n * Theme View finder service\n */\n $this->app['view']->setFinder($this->app['theme.finder']);\n }", "title": "" }, { "docid": "a909f9e81cf4fa4d14672123a49a8a55", "score": "0.67519873", "text": "public function boot()\n {\n // ...\n }", "title": "" }, { "docid": "a909f9e81cf4fa4d14672123a49a8a55", "score": "0.67519873", "text": "public function boot()\n {\n // ...\n }", "title": "" }, { "docid": "4ff97677e61f11349b55f3bd61247c27", "score": "0.67496496", "text": "public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/api-vendors.php' => config_path('api-vendors.php'),\n ], 'config');\n\n $this->commands([\n ApiVendorMakeCommand::class,\n ]);\n }\n\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.6727638", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "44b6d399481468a53330e1bf9a7c91d4", "score": "0.6727638", "text": "public function boot()\n {\n app()->booted(function () {\n $this->booted();\n });\n }", "title": "" }, { "docid": "5205febcf261d910caa87ebadb02bd72", "score": "0.6714812", "text": "public function boot()\n {\n $this->loadTranslationsFrom(module_path('sports', 'Resources/Lang', 'app'), 'sports');\n $this->loadViewsFrom(module_path('sports', 'Resources/Views', 'app'), 'sports');\n $this->loadMigrationsFrom(module_path('sports', 'Database/Migrations', 'app'), 'sports');\n $this->loadConfigsFrom(module_path('sports', 'Config', 'app'));\n $this->loadFactoriesFrom(module_path('sports', 'Database/Factories', 'app'));\n }", "title": "" }, { "docid": "204f47da7d67f353a2fce1dfee9b05a1", "score": "0.6711785", "text": "public function boot()\n {\n\n $this->app->translate_manager->addTranslateProvider(TranslateOption::class);\n\n $aliasLoader = AliasLoader::getInstance();\n $aliasLoader->alias('Option', OptionFacade::class);\n\n $this->loadRoutesFrom(dirname(__DIR__) . '/routes/api.php');\n\n }", "title": "" }, { "docid": "668144f874f4974974f67c82d3986f1c", "score": "0.67051125", "text": "public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'ihjordanov');\n\t $this->loadMigrationsFrom(__DIR__.'/Database/migrations');\n\t $this->loadRoutesFrom(__DIR__.'/routes/web.php');\n\t $this->loadViewsFrom(__DIR__.'/resources/views', 'contactform');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }", "title": "" }, { "docid": "cdfbc08253af7a88551d9060b7ecd427", "score": "0.6704818", "text": "public function boot()\n {\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'tanwencms');\n\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../resources/assets' => public_path('vendor/laravel-ecommerce'),\n //__DIR__ . '/../resources/lang' => resource_path('lang'),\n __DIR__ . '/../database/migrations' => database_path('migrations'),\n ]);\n\n $this->commands([\n InstallCommand::class,\n BootPermissionsCommand::class\n ]);\n }\n\n //AppBootstrap::boot();\n\n //AdminBootstrap::boot();\n }", "title": "" }, { "docid": "193af5fb48cf57c21c2ec7203d32108d", "score": "0.6696779", "text": "public function boot()\n {\n // Configs\n $this->publishes([\n __DIR__.'/../config/anti-spam.php' => config_path('anti-spam.php'),\n ], 'configs');\n\n // Migrations\n $this->publishes([\n __DIR__ . '/../database/migrations' => base_path('database/migrations')\n ], 'migrations');\n\n // Services\n $this->app->bind(SpamServiceInterface::class, AkismetSpamService::class);\n $this->app->singleton(SpamServiceInterface::class, function ($app) {\n return new AkismetSpamService(new \\GuzzleHttp\\Client);\n });\n }", "title": "" }, { "docid": "ddb9e1a91a44c5f3a5274f026585dd3e", "score": "0.66867495", "text": "public function boot() {\n\t\t\t\n\t\t\t$this->app->singleton(\n\t\t\t Geolocation::class, function () {\n\t\t\t\t\n\t\t\t\treturn new Geolocation(config('project.tomtom_api_key'));\n\t\t\t});\n\t\t\t\n\t\t\t$this->app->singleton(\n\t\t\t TokenUtil::class, function () {\n\t\t\t\t\n\t\t\t\treturn new TokenUtil(config('project.token_key'));\n\t\t\t});\n\t\t\t\n\t\t\t$this->app->singleton(\n\t\t\t BraintreeGateway::class, function () {\n\t\t\t\t\n\t\t\t\treturn new BraintreeGateway(config('project.braintree'));\n\t\t\t});\n\t\t}", "title": "" }, { "docid": "fe69a41140b7706b660f9326f7c5e95e", "score": "0.668564", "text": "public function boot()\n {\n /**\n * FusionCMS will now merge it's own\n * configurations on top of Laravel's.\n */\n $this->resetBackupConfigurations();\n $this->mergeFusionCMSConfigurations();\n $this->mergeFileSystemConfigurations();\n $this->registerMailServices();\n }", "title": "" }, { "docid": "c842be6467963aa652df6cf8d2bd141e", "score": "0.66836756", "text": "public function boot()\n {\n $this->configurePublishing();\n $this->configureRoutes();\n $this->configureResources();\n $this->passwordLessWebauthn();\n }", "title": "" }, { "docid": "23f3959e887270dc3ea75522c7da7931", "score": "0.6679268", "text": "public function boot()\n {\n $this->publishTests();\n $this->publishMigrations();\n\n $this->app->booted(function () {\n $this->defineRoutes();\n });\n }", "title": "" }, { "docid": "6ef6f134c7b73934dcc2a84869de1aed", "score": "0.66758764", "text": "public function boot(): void {\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'SimonMarcelLinden');\n Blade::component('SimonMarcelLinden::components.multiSelect', 'multiSelect');\n\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n $this->commands([\n PackageCommand::class,\n ]);\n }\n }", "title": "" }, { "docid": "bc26486e4d14a707eb221681af4e6564", "score": "0.6675094", "text": "public function boot(): void\n {\n $this->loadViews();\n $this->loadTranslations();\n\n if ($this->app->runningInConsole()) {\n $this->publishMultipleConfig();\n $this->publishViews();\n $this->publishTranslations();\n $this->publishAssets();\n }\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" }, { "docid": "b81d79858044559a252103ed6f54511d", "score": "0.66734093", "text": "public function boot()\n {\n }", "title": "" } ]
4a5a6264c350b1f5c42fc669a550160f
Display a listing of the Ap3debatec3m1.
[ { "docid": "99c0c8dc9038f5ebe619aaf2cba49197", "score": "0.5652613", "text": "public function index(Request $request)\n {\n $ap3debatec3m1s = $this->ap3debatec3m1Repository->all();\n\n return view('ap3debatec3m1s.index')\n ->with('ap3debatec3m1s', $ap3debatec3m1s);\n }", "title": "" } ]
[ { "docid": "7b13f032e662dc2c2fb212f14ed1ba5d", "score": "0.60540926", "text": "public function index()\n\t{\n $data['items'] = $this->Master->f_get_particulars(\"md_item\", NULL, NULL, 0);\n $this->load->view('common/header');\n\t\t$this->load->view('item/item_list',$data);\n $this->load->view('common/footer');\n\t}", "title": "" }, { "docid": "71713ae06daeec79d187009a7a626589", "score": "0.5960653", "text": "public function index()\n {\n $dataUmkm=Umkm::latest()->paginate(3);\n return view('umkm.index',compact('dataUmkm'));\n }", "title": "" }, { "docid": "da61233dfed120905815918c0a795afc", "score": "0.59559137", "text": "public function mlist() {\r\n $totalNumber = $this->model_makecard->get_make_card_total_num();\r\n\t\t$config['base_url'] = 'http://localhost/member/index.php/makecard/mlist/page';\r\n\t\t$config['total_rows'] = $totalNumber;\r\n\t\t\r\n\t\t$this->pagination->initialize($config); \r\n\t\t\r\n\t\t//Get the Current page number.\r\n\t\t$startIndex = ($this->uri->segment(4) > 0)? ($this->uri->segment(4)):0;\r\n\r\n $this->template\r\n ->title('制卡列表')\r\n ->set('title_info', '制卡列表')\r\n\t\t\t\t->set('mc_data',$this->model_makecard->getMakecardList(null,$startIndex))\r\n\t\t\t\t->set('paginationlinks',$this->pagination->create_links())\r\n\t\t\t\t->set('totalNumber',$totalNumber)\r\n ->build('makecard/list.php');\r\n }", "title": "" }, { "docid": "19ac4551318a00d14873184b8c3c6cda", "score": "0.58453476", "text": "public function index(){\t\n\t\t$datas=$this->cat->find('list');\n\t\t$this->set('datas',$datas);\n\t\t//$this->render('index');\n\t}", "title": "" }, { "docid": "ab482f32dc55ecbd2b8438ff0b6f3843", "score": "0.5827803", "text": "public function index()\n {\n $data['items'] = Advert::orderBy('created_at', 'desc')->get();\n return view('admin.advert.advert', $data);\n }", "title": "" }, { "docid": "a8219f7511c208b206421d7070626481", "score": "0.58092093", "text": "public function index() {\r\n $this->listing();\r\n }", "title": "" }, { "docid": "ee014aee73afd3ecaa209f43efc4205a", "score": "0.57944584", "text": "function display()\n\t{\n\t\t$app =& JFactory::getApplication();\n\t\t$db =& JFactory::getDBO();\n\t\t// get the total number of records\n\t\t$db->setQuery(\"SELECT count(*) FROM #__fabrik_packages\");\n\t\t$total = $db->loadResult();\n\t\t$context\t\t= 'com_fabrik.package.list.';\n\t\t$limit\t\t\t= $app->getUserStateFromRequest( $context.'limit', 'limit', $app->getCfg('list_limit'), 'int');\n\t\t$limitstart = $app->getUserStateFromRequest( $context.'limitstart', 'limitstart', 0, 'int');\n\t\t$sql = \"SELECT * FROM #__fabrik_packages\";\n\t\t$db->setQuery($sql, $limitstart, $limit);\n\t\tjimport('joomla.html.pagination');\n\t\t$pageNav = new JPagination($total, $limitstart, $limit);\n\t\t$rows = $db->loadObjectList();\n\t\trequire_once(JPATH_COMPONENT.DS.'views'.DS.'package.php');\n\t\tFabrikViewPackage::show($rows, $pageNav);\n\t}", "title": "" }, { "docid": "4b86dd8e10a2603e11395c36edc2dec8", "score": "0.5791496", "text": "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Credit notes list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the credit notes.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/creditnotes/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\n\t\t$this->datagrid->setConfig ( CreditNotes::grid() )->datagrid ();\n\t}", "title": "" }, { "docid": "5414804a7e0b719dc2a1cd88861b6fe4", "score": "0.57485676", "text": "public function display_testimonials_list(){\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect(ADMIN_ENC_URL);\n\t\t}else {\n\t\t\tif ($this->lang->line('admin_menu_display_testimonials') != '') \n\t\t $this->data['heading']= stripslashes($this->lang->line('admin_menu_display_testimonials')); \n\t\t else $this->data['heading'] = 'Testimonials List';\n\t\t\t$condition = array();\n\t\t\t$sortArr = array('name'=>'ASC');\n\t\t\t$this->data['testimonialsList'] = $this->testimonials_model->get_all_details(TESTIMONIALS,$condition);\n\t\t\t$this->load->view(ADMIN_ENC_URL.'/testimonials/display_testimonials',$this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "0e320629598100f8e1ce80dc99bc9c20", "score": "0.57303745", "text": "function casset_detail_list() {\n\t\tglobal $conn;\n\n\t\t// Initialize table object\n\t\t$GLOBALS[\"asset_detail\"] = new casset_detail();\n\n\t\t// Initialize other table object\n\t\t$GLOBALS['asset_category'] = new casset_category();\n\n\t\t// Intialize page id (for backward compatibility)\n\t\tif (!defined(\"EW_PAGE_ID\"))\n\t\t\tdefine(\"EW_PAGE_ID\", 'list', TRUE);\n\n\t\t// Initialize table name (for backward compatibility)\n\t\tif (!defined(\"EW_TABLE_NAME\"))\n\t\t\tdefine(\"EW_TABLE_NAME\", 'asset_detail', TRUE);\n\n\t\t// Open connection to the database\n\t\t$conn = ew_Connect();\n\n\t\t// Initialize list options\n\t\t$this->ListOptions = new cListOptions();\n\t}", "title": "" }, { "docid": "ab5d31d7e6d74462b2f9bdd0c13d92fe", "score": "0.5729864", "text": "public function viewList() {\r\n\t\t$pageName = 'List';\r\n $productRes = Product::getInitialProducts();\r\n\t\t$myID = $_SESSION['id'];\r\n $user = User::loadById($myID);\r\n $array1;\r\n if ($user != null) {\r\n if ($user->get('following') == \"\") {\r\n $array1 = array();\r\n }\r\n else {\r\n $array1 = unserialize($user->get('following'));\r\n }\r\n }\r\n\t\tinclude_once SYSTEM_PATH.'/view/header.tpl';\r\n\t\tinclude_once SYSTEM_PATH.'/view/list.tpl';\r\n\t\tinclude_once SYSTEM_PATH.'/view/footer.tpl';\r\n \t}", "title": "" }, { "docid": "c7b66488d8138f587f6c56ac6bc7fa0a", "score": "0.5714803", "text": "public function display_category_list(){\n\t\tif ($this->checkLogin('CA') == ''){\n\t\t\tredirect('deals_crm');\n\t\t}else {\n\t\t\t$this->data['heading'] = 'Category List';\n\t\t\t$this->data['categoryView'] = $this->category_model->view_category_details();\n\t\t\t$this->load->view('crmadmin/category/display_category_list',$this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "3320e080fc1e909350dbd9c0752edf8b", "score": "0.56931263", "text": "public function index() {\n\n $conducts = Conduct::paginate(10);\n return view('admin.conduct.index', [\n 'conducts' => $conducts,\n 'id' => $conducts->currentPage() == 1 ? 0 : ($conducts->currentPage() - 1) * 10\n ]);\n }", "title": "" }, { "docid": "a9390aaf410ebe46e31b9e5bc19b2d90", "score": "0.5684451", "text": "public function actionIndex()\n {\n $searchModel = new LddapadaitemSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "8bea1f94954bd25a8aec8959bf31d4a2", "score": "0.5680247", "text": "public function showArticleList(){ \r\n $this->view->makeListPage($this->articleStore->readAll());\r\n }", "title": "" }, { "docid": "3bfab0c0d61dd27a3e3720a425712f00", "score": "0.56800765", "text": "public function index()\n {\n return view('/device/showitemmodel')->with('itemmodels', ItemModel::paginate(10));\n }", "title": "" }, { "docid": "4bc8bb53a4fc0a7993cae889acc0cab1", "score": "0.5679204", "text": "public function index()\n {\n $zakats = Zakat::latest()->paginate(10);\n return view('admin.zakats.index',compact('zakats'));\n }", "title": "" }, { "docid": "5fcfa4c35030d6e5d8665ce054a19859", "score": "0.567217", "text": "function index() {\n //var_dump($this->ucat->getRecords());\n }", "title": "" }, { "docid": "0aaa67796485bf773768a7fa9316062d", "score": "0.56709236", "text": "public function index()\n {\n $kontrakmks = kontrakmk::orderBy ('id','desc')->paginate (3);\n \n return response () ->json([\n 'success'=> true,\n 'message'=> 'Daftar Kontrak Matakuliah',\n 'data'=> $kontrakmks\n ],200);\n }", "title": "" }, { "docid": "7c5436fac4c77ee77f00987408854421", "score": "0.56624925", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_book->get_all();\n\t\t$this->template->set('title', 'Book List');\n\t\t$this->template->load('template', 'contents', 'book/book_list', $data);\n\t}", "title": "" }, { "docid": "dca54eb2ff00e9b4ae39f06684425359", "score": "0.5631584", "text": "public function index()\n {\n $categories = DB::table('myway_third_category as third_cat')\n ->join('myway_first_category as first_cat', 'first_cat.id', '=', 'third_cat.first_cat_id')\n ->join('myway_second_category as second_cat', 'second_cat.id', '=', 'third_cat.second_cat_id')\n ->select('third_cat.*', 'first_cat.name as first_cat_name', 'first_cat.alias as first_cat_alias', 'second_cat.name as second_cat_name', 'second_cat.alias as second_cat_alias')\n ->orderBy('alias', 'ASC')\n ->paginate(20);\n\n return view('dashboard.categories.thirdCategoryList', compact('categories'));\n }", "title": "" }, { "docid": "3005a7694daa66d5411575d09a01fd3c", "score": "0.5629046", "text": "public function indexAction()\r\n\t{\r\n\t\t$this->_view->_title = ucfirst($this->_controller) . ' Manager :: List';\r\n\r\n\t\t$totalItems = $this->_model->countItems($this->_arrParam);\r\n\t\t$configPagination = ['totalItemsPerPage' => 3, 'pageRange' => 3];\r\n\t\t$this->setPagination($configPagination);\r\n\t\t$this->_view->pagination = new Pagination($totalItems, $this->_pagination);\r\n\r\n\t\t$this->_view->countActive = $this->_model->countItems($this->_arrParam, ['task' => 'count-active']);\r\n\t\t$this->_view->countInactive = $this->_model->countItems($this->_arrParam, ['task' => 'count-inactive']);\r\n\t\t$this->_view->Items = $this->_model->listItem($this->_arrParam, null);\r\n\t\t$this->_view->render($this->_controller . '/index');\r\n\t}", "title": "" }, { "docid": "6f9656d0e1f0173b6228b9299f8eda3c", "score": "0.562655", "text": "public function index()\n\t{\n\t\treturn View::make('campaign.list');\n\t}", "title": "" }, { "docid": "187ec101935a79ed032959ef1b75d4ae", "score": "0.56236035", "text": "public function actionList()\n {\n \n return $this->render('_list');\n }", "title": "" }, { "docid": "206e1a085e44a6e96b896e6d17550ab2", "score": "0.5614469", "text": "public function index()\n {\n $categories = Category::all();\n $items = Item::where('category_id', request()->cat ? request()->cat : $categories[0]->id)->get();\n return view('admin.item-display', ['items' => $items, 'categories' => $categories]);\n }", "title": "" }, { "docid": "c2a7954f11364aad7594cb731976f9f7", "score": "0.56135255", "text": "public function listAction(){\n\n\n\t\t$addresses = $this->addressRepository->findAddresses(\n\t\t\t$this->settings['order'],\n\t\t\t$this->settings['categories']\n\t\t);\n\n\t\t// Add javascript\n\t\t// $this->addJavascript();\n\n\t\t// => View\n\t\t$this->view->assign('addresses', $addresses);\n\t\t$this->view->assign('settings', $this->settings);\n\t\t$this->view->assign('host', $this->getProtocolAndHost());\n\n\t}", "title": "" }, { "docid": "a1836a85440fd7e70146db0b66cf4668", "score": "0.56097", "text": "public function list_atk() {\n\t\t\t\t$site \t\t= $this->mConfig->list_config();\n\t\t\t\t$barang \t\t= $this->mProses->get_atk();\n\t\t\t\t\n\t\t\t\t$data = array(\t'title'\t\t=> 'Proses',\n\t\t\t\t\t\t\t\t'menu'\t\t=> 'proses-unit-list',\n\t\t\t\t\t\t\t\t'site'\t\t=> $site,\n\t\t\t\t\t\t\t\t'barang'\t=> $barang,\n\t\t\t\t\t\t\t\t'isi'\t\t=> 'sistem/proses/unit/list-atk');\n\t\t\t\t$this->load->view('public/layout/wrapper',$data);\t\t\n\t\t\t}", "title": "" }, { "docid": "9874116c2ec2c415acf72bbdcadcdf03", "score": "0.5607938", "text": "public function index()\n {\n $datas = M_item::all();\n return view('masters.mitems',compact('datas'));\n //\n }", "title": "" }, { "docid": "fbe6e777ed8af7be0a302063d55b144d", "score": "0.5595597", "text": "public function index()\n {\n // $lists = Metastasis_list::where('status','active')->orderBy('id','desc')->get();\n $lists = Metastasis_list::orderBy('id','desc')->get();\n return view('admin.MetastasisList.index', compact('lists'));\n }", "title": "" }, { "docid": "b7cabd3652aab7b842428d3178d2db91", "score": "0.5592455", "text": "public function index()\n {\n return view('backend.layouts.testimonial.list', [\n 'testimonials' => Testimonial::orderBy('id', 'desc')->paginate(10),\n ]);\n }", "title": "" }, { "docid": "3814ae9ddf9e1b561752d26eeec443f3", "score": "0.55892426", "text": "public function index()\n {\n $this->authorize('use-permission', 'adm/smartcars/airports');\n\n $airports = Airport::query()->orderBy('icao')->paginate(50);\n\n return $this->viewMake('adm.smartcars.airports')->with('airports', $airports);\n }", "title": "" }, { "docid": "2928ed83e4c71ef34bc6ef0f0f614855", "score": "0.5588339", "text": "public function listAds()\n {\n \n\n return view('Ads::list');\n }", "title": "" }, { "docid": "7d94f073fcce639c671771d733b6953d", "score": "0.5580467", "text": "public function show($id)\n {\n $ap3debatec3m1 = $this->ap3debatec3m1Repository->find($id);\n\n if (empty($ap3debatec3m1)) {\n Flash::error('Ap3Debatec3M1 not found');\n\n return redirect(route('ap3debatec3m1s.index'));\n }\n\n return view('ap3debatec3m1s.show')->with('ap3debatec3m1', $ap3debatec3m1);\n }", "title": "" }, { "docid": "7dfe36cf37341a42d5b022a9363f36a6", "score": "0.55788535", "text": "public function actionIndex()\n {\n $pdk_id = \\Yii::$app->session->get('pdk_id');\n $region = Region::findOne($pdk_id);\n $api = AcmoApi::get($region)->getCacheData();\n\n return $this->render('index', ['photos' => $api->photo, 'meteo' => $api->meteo]);\n }", "title": "" }, { "docid": "3d23e1a8b4e7560ecbd40770b374e756", "score": "0.5573477", "text": "public function index()\n {\n $testimonials = Testimonial::orderBy('created_at', 'desc')\n ->get();\n\n return view('admin.testimonials.list',['testimonials' => $testimonials]);\n }", "title": "" }, { "docid": "bc34948f505f9b7af6568eaa86c84c53", "score": "0.5570016", "text": "public function index()\n {\n //\n $posts = Post::orderByDesc('id')->limit(3)->get();\n return view('front.index',compact('posts'));\n }", "title": "" }, { "docid": "be9946583828b7f5949f0df1c8ffb180", "score": "0.556837", "text": "public function index()\n {\n $details = \\App\\Models\\Detail::GetMaterialsInDetails();\n return view('detailsList', ['data' => $details]);\n }", "title": "" }, { "docid": "6a1a0a5c97aeba6d74c9006d85ea531e", "score": "0.55553204", "text": "public function getListcards() {\n\t\t$packages\t=\tPackages::all();\n\t\t$packageslist\t=\tPackages::lists('package_id', 'price');\n\t\t$qtyList\t=\tarray(\n\t\t\t\t\t\t//''=>'-Select-',\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t'1'=>1,\n\t\t\t\t\t\t\t'2'=>2,\n\t\t\t\t\t\t\t'3'=>3,\n\t\t\t\t\t\t\t'4'=>4,\n\t\t\t\t\t\t\t'5'=>5,\n\t\t\t\t\t\t\t'6'=>6,\n\t\t\t\t\t\t\t'7'=>7,\n\t\t\t\t\t\t\t'8'=>8,\n\t\t\t\t\t\t\t'9'=>9,\n\t\t\t\t\t\t\t'10'=>10,\n\t\t\t\t\t\t\t);\n\t\t\n\t\t$cards = Cards::whereRaw('idclient = ? AND cardstatus = 1', array(Session::get('idclient')))->orderBy('card_id', 'DESC') -> get();\n\t\t$this -> layout -> content = View::make('users.listcards', array('cards'=>$cards, 'packages'=>$packages, 'packageslist'=>$packageslist, 'qtyList'=>$qtyList));\n\t\t\n\t}", "title": "" }, { "docid": "e1479397688dba9adac245ce27d98fa0", "score": "0.5552196", "text": "public function index() {\n CommonHelper::add_breadcrumb(\"Testimonial\", URL::to('/admin/testimonial'));\n //This is for breadcrumb\n\n return view(\"admin.testimonial.testimonial_list\");\n }", "title": "" }, { "docid": "9df0f47a587ac8ab86c24748a83841f3", "score": "0.5551659", "text": "public function index()\n {\n \t$campaigns = DB::table('campaigns')->where('del_flg', 0)->paginate(10);\n \treturn view('admin.campaign.index',compact('campaigns'));\n }", "title": "" }, { "docid": "bc45095b238e9180706c6b81055e2598", "score": "0.55498666", "text": "public function list(){\n // recuperar la lista de mascotas\n $mascotas = Mascota::get();\n \n \n //cargar la vista que muesta el listado\n include 'views/mascota/lista.php';\n \n }", "title": "" }, { "docid": "4ea9ef70d600cf187560a8b90e80bafa", "score": "0.5548761", "text": "public function listing() {\n $this->aConfigs = $this->oComment->select();\n }", "title": "" }, { "docid": "8d1f4ad58c6e732c2c9760b4b7e08268", "score": "0.55433244", "text": "protected function listing_ad() {}", "title": "" }, { "docid": "f9b6023df9b1037fffccae6014ae6d5c", "score": "0.5534785", "text": "public function cetakAction() {\n\t$cari = \" a.usulan_id = b.usulan_id\";\n\t$this->view->dataPraTpm = $this->tpm_serv->getListTpm3($cari);\n}", "title": "" }, { "docid": "68ab074163969ddb903af5ca601d9b22", "score": "0.5526134", "text": "public function indexAction()\n {\n $module = $this->params('module');\n $categorySingle = $this->params('category');\n\n // Get config\n $config = Pi::service('registry')->config->read($module);\n\n // Get list of plans and category\n $categories = Pi::api('plans', 'plans')->getPlans();\n\n // Check and set category\n if ($config['category_active'] && isset($categorySingle) && !empty($categorySingle) && $categorySingle > 0) {\n $categoryList = [];\n foreach ($categories as $category) {\n if ($category['id'] == $categorySingle) {\n $categoryList[$category['id']] = $category;\n }\n }\n $categories = $categoryList;\n }\n\n // Set view\n $this->view()->setTemplate('index-index');\n $this->view()->assign('categories', $categories);\n $this->view()->assign('categorySingle', $categorySingle);\n $this->view()->assign('config', $config);\n }", "title": "" }, { "docid": "0fb5f23165e52053443e7b656d952ca5", "score": "0.5524452", "text": "public function index()\n {\n $items = Testimonial::orderBy('list_order')->get();\n\n return $this->view('titan::testimonials', compact('items'));\n }", "title": "" }, { "docid": "a1fc36339edff078830a68b44d0f0b51", "score": "0.55237395", "text": "public function index()\n {\n global $config;\n // Get banner\n $data['banner'] = $this->model_inner_banner->find_by_pk(15);\n // Get cms work\n //$data['cms_content_1'] = $this->model_cms_page->get_page(2);\n // Get all user Programs which has purchase\n $data['programs'] = $this->model_order_item->get_user_program($this->userid);\n // debug($data['programs'],1);\n // Load View\n $this->load_view(\"index\", $data);\n }", "title": "" }, { "docid": "b5d130ddb780dd407e4f90c703bba1bd", "score": "0.55227476", "text": "public function index(){\n\t\t\t$recordPerPage = 3;\n\t\t\t//tinh so trang de truyen ra view\n\t\t\t$numPage = ceil($this->modelTotalRecord()/$recordPerPage);\n\t\t\t//lay du lieu\n\t\t\t$data = $this->modelRead($recordPerPage);\n\t\t\t//goi view, truyen du lieu ra view\n\t\t\t$this->loadView(\"ActivitiesView.php\",[\"numPage\"=>$numPage,\"data\"=>$data]);\n\t\t}", "title": "" }, { "docid": "ffa2b881103846b1ccaa4fb4d4202290", "score": "0.55195355", "text": "public function showAccountList(){ \r\n $this->view->makeListPage($this->accountStore->readAll());\r\n }", "title": "" }, { "docid": "a3720146415f23c943668d82d74b6ddc", "score": "0.5511534", "text": "public function indexAction() {\n\t\t$this->initInstance();\n\t\t//récupère les ressources disponibles\n\t\t//http://localhost/omeka-s/api/item_sets?resource_class_label=MediaResource\n\t}", "title": "" }, { "docid": "20fc044471e8b7bbab43d6136b38c549", "score": "0.5509868", "text": "public function actionIndex()\n {\n if (Yii::app()->user->isGuest) {\n $this->redirect('/site/login');\n }\n\n $modelComments = Comment::model()->findCheckComments();\n\n $comments = $this->toArrayFromAR($modelComments);\n\n $this->render('list', [\n 'comments' => $comments\n ]);\n }", "title": "" }, { "docid": "a8d535e298001a80916d848b2c2bb9e1", "score": "0.5509239", "text": "public function index()\n {\n $list_show = (new TravelRecord)->latest()->get();\n return view('TravelRecord.list')->with(compact('list_show'));\n }", "title": "" }, { "docid": "0b74a48e80f0aedfb800877cd75f7547", "score": "0.5507559", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_structure->get_all();\n\t\t$this->template->set('title', 'Fee Structure List');\n\t\t$this->template->load('template', 'contents', 'fee_structures/list', $data);\n\t}", "title": "" }, { "docid": "b2ecf27765f78e3d0eddc390f1b99bee", "score": "0.5507178", "text": "public function index(){\n\t\t$data['all_classes'] = $this->mdl_class->get_all_classes();\n $data['all_teachers'] = $this->mdl_teachers->get_all_teachers();\n\t\t// echo \"<pre>\";print_r($data);echo \"</pre>\";exit;\n\t\t$this->load->view('list', $data);\n\t}", "title": "" }, { "docid": "1bb7874a541d0548e01e2b8f1b44a9fa", "score": "0.5501165", "text": "public function unit_list() \r\n\t{\r\n\t\t$view_data['page'] = 'unit_list';\r\n\t\t$data['page_title'] = \"Unit List\";\r\n\t\t$data['page_data'] = $this->load->view('unit/unit_list', $view_data, TRUE);\r\n\t\techo modules::run(AUTH_DEFAULT_TEMPLATE, $data);\r\n\t}", "title": "" }, { "docid": "f87b3ed08ad11ffd65f406ae5e8a08d3", "score": "0.5497529", "text": "public function cust_list()\n {\n $data['customer'] = $this->Master->f_get_particulars(\"md_customer\", NULL, NULL, 0);\n $this->load->view('common/header');\n $this->load->view('customer/cust_list',$data);\n $this->load->view('common/footer');\n }", "title": "" }, { "docid": "50eb09c44783d55ae8c2ea18154f03bd", "score": "0.5495561", "text": "public function index()\n {\n $activeProject = Session::get('active_project');\n $items = Adapter::where('project_id', '=', $activeProject->id)->get();\n\n return Inertia::render('Adapter/List', [\n 'items' => $items,\n 'types' => AdapterType::labels()\n ]);\n }", "title": "" }, { "docid": "2fabc8360fec02c0894e9976ef8dc795", "score": "0.5492919", "text": "public function index()\n {\n $limit = 10;\n $list_obj = Category::where('status', 1)->orderBy('created_at', 'DESC')->paginate($limit);\n return view('category.list')->with('list_obj', $list_obj);\n }", "title": "" }, { "docid": "2d41c4e5e253547bc7aafec0d99791d1", "score": "0.54906756", "text": "function displayList() {\n\t\t$theCode = $this->theCode;\n\t\t$where = '';\n\t\t$content = '';\n\t\t$content .= '<!-- function displayList() -->';\n\t\tswitch ($theCode) {\n\t\t\tcase 'LATEST':\n\t\t\t\t$prefix_display = 'displayLatest';\n\t\t\t\t$templateName = 'TEMPLATE_LATEST';\n\t\t\t\t$this->arcExclusive = -1; // Only latest, non archive items\n\t\t\t\t$this->config['limit'] = $this->config['latestLimit'];\n\t\t\tbreak;\n\t\t\tcase 'LIST':\n\t\t\t\t$prefix_display = 'displayList';\n\t\t\t\t$templateName = 'TEMPLATE_LIST';\n\t\t\tbreak;\n\t\t\tcase 'LIST_FOR_NAV_MENU':\n\t\t\t\t$prefix_display = 'displayList';\n\t\t\t\t$templateName = 'TEMPLATE_LIST_FOR_NAV_MENU';\n\t\t\tbreak;\n\t\t\tcase 'SEARCH':\n\t\t\t\t$prefix_display = 'displayList';\n\t\t\t\t$templateName = 'TEMPLATE_LIST';\n\t\t\t\t// $GLOBALS['TSFE']->set_no_cache();\n\t\t\t\t// $this->allowCaching = 0;\n\t\t\t\t$formURL = $this->pi_linkTP_keepPIvars_url(array('pointer' => null, 'cat' => null), 0, '', $this->config['searchPid']) ;\n\n\t\t\t\t\t// Get search subpart\n\t\t\t\t$t['search'] = $this->getItemsSubpart($this->templateCode, $this->spMarker('###TEMPLATE_SEARCH###'));\n\n\t\t\t\t\t// Substitute the markers for the search form\n\t\t\t\t$out = $t['search'];\n\t\t\t\t$out = $this->cObj->substituteMarker($out, '###FORM_URL###', $formURL);\n\t\t\t\t$out = $this->cObj->substituteMarker($out, '###SWORDS###', htmlspecialchars($this->piVars['swords']));\n\t\t\t\t$out = $this->cObj->substituteMarker($out, '###SEARCH_BUTTON###', $this->pi_getLL('searchButtonLabel'));\n\n\t\t\t\t\t// Add to content\n\t\t\t\t$content .= $out;\n\n\t\t\t\t\t// do the search and add the result to the $where string\n\t\t\t\tif ($this->piVars['swords']) {\n\t\t\t\t\t$where = $this->searchWhere(trim($this->piVars['swords']));\n\t\t\t\t\t$theCode = 'SEARCH';\n\t\t\t\t} else {\n\t\t\t\t\t$where = ($this->conf['emptySearchAtStart']?'AND 1=0':''); // display an empty list, if 'emptySearchAtStart' is set.\n\t\t\t\t}\n\t\t\tbreak;\n\n\t\t\t\t// xml news export\n\t\t\tcase 'XML':\n\t\t\t\t$prefix_display = 'displayXML';\n\t\t\t\t\t// $this->arcExclusive = -1; // Only latest, non archive items\n\t\t\t\t$this->allowCaching = $this->conf['displayXML.']['xmlCaching'];\n\t\t\t\t$this->config['limit'] = $this->conf['displayXML.']['xmlLimit']?$this->conf['displayXML.']['xmlLimit']:$this->config['limit'];\n\n\t\t\t\tswitch ($this->conf['displayXML.']['xmlFormat']) {\n\t\t\t\t\tcase 'rss091':\n\t\t\t\t\t\t$templateName = 'TEMPLATE_RSS091';\n\t\t\t\t\t\t$this->templateCode = $this->cObj->fileResource($this->conf['displayXML.']['rss091_tmplFile']);\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'rss2':\n\t\t\t\t\t\t$templateName = 'TEMPLATE_RSS2';\n\t\t\t\t\t\t$this->templateCode = $this->cObj->fileResource($this->conf['displayXML.']['rss2_tmplFile']);\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t// this will be possible later:\n\t\t\t\t\t// case 'rdf':\n\t\t\t\t\t// \t$templateName = 'TEMPLATE_RDF';\n\t\t\t\t\t// \t$this->templateCode = $this->cObj->fileResource($this->conf['displayXML.']['rdf_tmplFile']);\n\t\t\t\t\t// break;\n\n\t\t\t\t\t// case 'atom':\n\t\t\t\t\t// \t$templateName = 'TEMPLATE_ATOM';\n\t\t\t\t\t// \t$this->templateCode = $this->cObj->fileResource($this->conf['displayXML.']['atom_tmplFile']);\n\t\t\t\t\t// break;\n\n\t\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\t\t// process extra codes from $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']\n\t\t$userCodes = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['workshops']['what_to_display'];\n\n\t\tif ($userCodes && !$prefix_display && !$templateName) {\n\t\t\twhile (list(, $ucode) = each($userCodes)) {\n\t\t\t\tif ($theCode == $ucode[0]) {\n\t\t\t\t\t$prefix_display = 'displayList';\n\t\t\t\t\t$templateName = 'TEMPLATE_' . $ucode[0] ;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$noPeriod = 0;\n\n\t\tif (!$this->conf['emptyArchListAtStart']) {\n\t\t\t\t// if this is true, we're listing from the archive for the first time (no pS set), to prevent an empty list page we set the pS value to the archive start\n\t\t\tif (($this->arcExclusive > 0 && !$this->piVars['pS'] && $theCode != 'SEARCH')) {\n\t\t\t\t\t// set pS to time minus archive startdate\n\t\t\t\t$this->piVars['pS'] = ($GLOBALS['SIM_EXEC_TIME'] - ($this->config['datetimeDaysToArchive'] * 86400));\n\t\t\t}\n\t\t}\n\n\t\tif ($this->piVars['pS'] && !$this->piVars['pL']) {\n\t\t\t$noPeriod = 1; // override the period length checking in getSelectConf\n\t\t}\n\n\t\t\t// Allowed to show the listing? periodStart must be set, when listing from the archive.\n\t\tif (!($this->arcExclusive > -1 && !$this->piVars['pS'] && $theCode != 'SEARCH')) {\n\t\t\tif ($this->conf['displayCurrentRecord'] && $this->item_uid) {\n\t\t\t\t$this->pid_list = $this->cObj->data['pid'];\n\t\t\t\t$where = 'AND tx_workshops.uid=' . $this->item_uid;\n\t\t\t}\n\n\t\t\t\t// build parameter Array for List query\n\t\t\t$selectConf = $this->getSelectConf($where, $noPeriod);\n\n\t\t\t\t// performing query to count all items (we need to know it for browsing):\n\t\t\t$selectConf['selectFields'] = 'count(distinct(uid))'; //count(*)\n\t\t\t$res = $this->cObj->exec_getQuery('tx_workshops', $selectConf);\n\t\t\t$row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res);\n\t\t\t$itemsCount = $row[0];\n\n\n\t\t\t\t// Only do something if the queryresult is not empty\n\t\t\tif ($itemsCount > 0) {\n\t\t\t\t\t// Init template parts: $t['total'] is complete template subpart (TEMPLATE_LATEST f.e.)\n\t\t\t\t\t// $t['item'] is an array with the alternative subparts (WORKSHOP, WORKSHOP_1, WORKSHOP_2 ...)\n\t\t\t\t$t = array();\n\t\t\t\t$t['total'] = $this->getItemsSubpart($this->templateCode, $this->spMarker('###' . $templateName . '###'));\n\n\t\t\t\t$t['item'] = $this->getLayouts($t['total'], $this->alternatingLayouts, 'WORKSHOP');\n\n\t\t\t\t\t// build query for display:\n\t\t\t\t$selectConf['selectFields'] = '*';\n\t\t\t\tif ($this->config['groupBy']) {\n\t\t\t\t\t$selectConf['groupBy'] = $this->config['groupBy'];\n\t\t\t\t} else {\n\t\t\t\t\t$selectConf['groupBy'] = 'uid';\n\t\t\t\t}\n\n\t\t\t\tif ($this->config['orderBy']) {\n\t\t\t\t\t$selectConf['orderBy'] = $this->config['orderBy'] . ($this->config['ascDesc']?' ' . $this->config['ascDesc']:'');\n\t\t\t\t} else {\n\t\t\t\t\t$selectConf['orderBy'] = 'datetime DESC';\n\t\t\t\t}\n\n\t\t\t\t\t// overwrite the groupBy value for categories\n\t\t\t\tif (!$this->catExclusive && $selectConf['groupBy'] == 'category') {\n\t\t\t\t\t$selectConf['leftjoin'] = 'tx_workshops_cat_mm ON tx_workshops.uid = tx_workshops_cat_mm.uid_local';\n\t\t\t\t\t$selectConf['groupBy'] = 'tx_workshops_cat_mm.uid_foreign';\n\t\t\t\t\t$selectConf['selectFields'] = 'DISTINCT tx_workshops.uid,tx_workshops.*';\n\t\t\t\t}\n\n\t\t\t\t\t// exclude the LATEST template from changing its content with the pagebrowser. This can be overridden by setting the conf var latestWithPagebrowser\n\t\t\t\tif ($theCode != 'LATEST' && !$this->conf['latestWithPagebrowser']) {\n\t\t\t\t\t$selectConf['begin'] = $this->piVars['pointer'] * $this->config['limit'];\n\t\t\t\t}\n\n\t\t\t\t\t// exclude item records shown in LATEST from the LIST template\n\t\t\t\tif (($theCode == 'LIST' || $theCode == 'LIST_FOR_NAV_MENU') && $this->conf['excludeLatestFromList'] && !$this->piVars['pointer'] && !$this->piVars['cat']) {\n\t\t\t\t\tif ($this->config['latestLimit']) {\n\t\t\t\t\t\t$selectConf['begin'] += $this->config['latestLimit'];\n\t\t\t\t\t\t$itemsCount -= $this->config['latestLimit'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$selectConf['begin'] += $itemsCount;\n\t\t\t\t\t\t// this will clean the display of LIST view when 'latestLimit' is unset because all the item data have been shown in LATEST already\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\t// List start ID\n\t\t\t\tif (($theCode == 'LIST' || $theCode == 'LATEST' || $theCode == 'LIST_FOR_NAV_MENU') && $this->config['listStartId'] && !$this->piVars['pointer'] && !$this->piVars['cat']) {\n\t $selectConf['begin'] = $this->config['listStartId'];\n\t\t\t\t}\n\n\n\t\t\t\t\t// Reset:\n\t\t\t\t$subpartArray = array();\n\n\t\t\t\t$wrappedSubpartArray = array();\n\t\t\t\t$markerArray = array();\n\n\t\t\t\tif ($theCode == 'XML') {\n\t\t\t\t\t$markerArray = $this->getXmlHeader();\n\t\t\t\t\t$subpartArray['###HEADER###'] = $this->cObj->substituteMarkerArray($this->getItemsSubpart($t['total'], '###HEADER###'), $markerArray);\n\t\t\t\t}\n\n\t\t\t\t\t// get the list of items and fill them in the CONTENT subpart\n\t\t\t\t$subpartArray['###CONTENT###'] = $this->getListContent($t['item'], $selectConf, $prefix_display);\n\n\t\t\t\t$markerArray['###GOTOARCHIVE###'] = $this->pi_getLL('goToArchive');\n\n\n\t\t\t\t$markerArray['###LATEST_HEADER###'] = $this->pi_getLL('latestHeader');\n\t\t\t\t$wrappedSubpartArray['###LINK_ARCHIVE###'] = $this->local_cObj->typolinkWrap($this->conf['archiveTypoLink.']);\n\n\t\t\t\t\t// unset pagebrowser markers\n\t\t\t\t$markerArray['###LINK_PREV###'] = '';\n\t\t\t\t$markerArray['###LINK_NEXT###'] = '';\n\t\t\t\t$markerArray['###BROWSE_LINKS###'] = '';\n\n\t\t\t\t\t// render a pagebrowser if needed\n\t\t\t\tif ($itemsCount > $this->config['limit'] && !$this->config['noPageBrowser']) {\n\t\t\t\t\t\t// configure pagebrowser vars\n\t\t\t\t\t$this->internal['res_count'] = $itemsCount;\n\t\t\t\t\t$this->internal['results_at_a_time'] = $this->config['limit'];\n\t\t\t\t\t$this->internal['maxPages'] = $this->conf['pageBrowser.']['maxPages'];\n\t\t\t\t\tif (!$this->conf['pageBrowser.']['showPBrowserText']) {\n\n\t\t\t\t\t\t$this->LOCAL_LANG[$this->LLkey]['pi_list_browseresults_page'] = '';\n\t\t\t\t\t}\n\t\t\t\t\tif ($this->conf['userPageBrowserFunc']) {\n\t\t\t\t\t\t$markerArray = $this->userProcess('userPageBrowserFunc', $markerArray);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$markerArray['###BROWSE_LINKS###'] = $this->pi_list_browseresults($this->conf['pageBrowser.']['showResultCount'], $this->conf['pageBrowser.']['tableParams']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$content .= $this->cObj->substituteMarkerArrayCached($t['total'], $markerArray, $subpartArray, $wrappedSubpartArray);\n\t\t\t} elseif (ereg('1=0', $where)) {\n\n\t\t\t\t\t// first view of the search page with the parameter 'emptySearchAtStart' set\n\t\t\t\t$markerArray['###SEARCH_EMPTY_MSG###'] = $this->local_cObj->stdWrap($this->pi_getLL('searchEmptyMsg'), $this->conf['searchEmptyMsg_stdWrap.']);\n\t\t\t\t$searchEmptyMsg = $this->getItemsSubpart($this->templateCode, $this->spMarker('###TEMPLATE_SEARCH_EMPTY###'));\n\n\t\t\t\t$content .= $this->cObj->substituteMarkerArrayCached($searchEmptyMsg, $markerArray);\n\t\t\t} elseif ($this->piVars['swords']) {\n\t\t\t\t\t// no results\n\t\t\t\t$markerArray['###SEARCH_EMPTY_MSG###'] = $this->local_cObj->stdWrap($this->pi_getLL('noResultsMsg'), $this->conf['searchEmptyMsg_stdWrap.']);\n\t\t\t\t$searchEmptyMsg = $this->getItemsSubpart($this->templateCode, $this->spMarker('###TEMPLATE_SEARCH_EMPTY###'));\n\t\t\t\t$content .= $this->cObj->substituteMarkerArrayCached($searchEmptyMsg, $markerArray);\n\t\t\t} elseif ($theCode == 'XML') {\n\t\t\t\t\t// fill at least the template header\n\t\t\t\t\t// Init Templateparts: $t['total'] is complete template subpart (TEMPLATE_LATEST f.e.)\n\t\t\t\t$t = array();\n\t\t\t\t$t['total'] = $this->getItemsSubpart($this->templateCode, $this->spMarker('###' . $templateName . '###'));\n\t\t\t\t\t// Reset:\n\t\t\t\t$subpartArray = array();\n\t\t\t\t$wrappedSubpartArray = array();\n\t\t\t\t$markerArray = array();\n\t\t\t\t\t// header data\n\t\t\t\t$markerArray = $this->getXmlHeader();\n\n\t\t\t\t\t// get the list of items and fill them in the CONTENT subpart\n\t\t\t\t$subpartArray['###HEADER###'] = $this->cObj->substituteMarkerArray($this->getItemsSubpart($t['total'], '###HEADER###'), $markerArray);\n\n\t\t\t\t$t['total'] = $this->cObj->substituteSubpart($t['total'], '###HEADER###', $subpartArray['###HEADER###'], 0);\n\t\t\t\t$t['total'] = $this->cObj->substituteSubpart($t['total'], '###CONTENT###', '', 0);\n\n\t\t\t\t$content .= $t['total'];\n\n\t\t\t}\n\t\t\t\t// this matches if a user has switched languages within a archive period that contains no items in the desired language\n\t\t\telseif ($this->arcExclusive && $this->piVars['pS'] && $GLOBALS['TSFE']->sys_language_content) {\n\t\t\t\t$content .= $this->local_cObj->stdWrap($this->pi_getLL('noItemsForArchPeriod','Sorry, there are no translated descriptions in this archive period'), $this->conf['noItemsToListMsg_stdWrap.']);\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\t$content .= $this->local_cObj->stdWrap($this->pi_getLL('noItemsToListMsg'), $this->conf['noItemsToListMsg_stdWrap.']);\n\t\t\t}\n\t\t}\n\t\t$content .= '<!-- end of function displayList() / arcExclusive: '. $this->arcExclusive .' -->';\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "c7ded18142c77bc64bc895210d02507a", "score": "0.5488823", "text": "public function indexAction() {\n $this->view->categories = $this->_categories->getCategoriesPeriod(36);\n }", "title": "" }, { "docid": "9646d2e1f43e7eceb160c397fb34ad96", "score": "0.54816455", "text": "function showDetail(){\n\t#query all information for the project\n}", "title": "" }, { "docid": "6479164d34fe00117894c554140f463b", "score": "0.5480213", "text": "public function index()\n {\n $respon = json_decode($this->curl->simple_get($this->API.'/buku'));\n $data['title'] = 'Data Buku';\n $data['databuku'] = $respon->data;\n $this->load->view('template/header', $data);\n $this->load->view('perpustakaan/buku', $data);\n $this->load->view('template/footer');\n }", "title": "" }, { "docid": "b0a5c20fa5b111d2cc5b07d1da80db54", "score": "0.5477066", "text": "public function list()\n {\n $category = CategoryDB::get();\n echo json_encode($category);\n }", "title": "" }, { "docid": "cae38f4d40bdec45a29f1c39f62709cc", "score": "0.54709256", "text": "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Wiki Categories list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the wiki categories.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/wikicategories/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\n\t\t$this->datagrid->setConfig ( WikiCategories::grid() )->datagrid ();\n\t}", "title": "" }, { "docid": "562f1c49615386f40e08b4ce94d660a9", "score": "0.5469544", "text": "public function index()\n {\n\n $artworks = Artwork2::latest()->paginate(15);\n\n //\n return view('pages.admin.artwork', compact('artworks'));\n }", "title": "" }, { "docid": "6b31d331767d8da9202be8ce5f392268", "score": "0.5468111", "text": "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Apple::find(),\n /*\n 'pagination' => [\n 'pageSize' => 50\n ],\n 'sort' => [\n 'defaultOrder' => [\n 'id' => SORT_DESC,\n ]\n ],\n */\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "8a1ad51c89e7336185d28a9369dcaca9", "score": "0.546737", "text": "public function index()\n {\n //\n $allDS = Dataset::all();\n foreach ($allDS as $key => $dataset) {\n echo \"<a href='/data/{$dataset -> id}'> \" . (($dataset -> title) ? $dataset -> title : $dataset -> id) . \" </a><br />\";\n }\n exit();\n }", "title": "" }, { "docid": "cb2297571f527fcf8856191e1ce90d58", "score": "0.5466453", "text": "public function index()\n {\n //\n return view('admin.attendence.att')->with('list', Attendence::all()->sortBy('date'));\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.54654914", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "57e9c789e19fd79f230d69fd12eb9c5a", "score": "0.54637396", "text": "public function index()\n\t{\n\t\t// \n\t\t$Ciudades = Ciudades::all();\n\t\treturn \\View::make('CIUDADES/listCiudades',compact('Ciudades'));\n\n\t}", "title": "" }, { "docid": "8825e7f24c7f3fd8657a50df4b550526", "score": "0.54616463", "text": "public function index()\n {\n //\n $data['category'] = Category::all();\n $id = Category::find(1);\n // return $id;\n $data['subcategory'] = db::table('subcategories')->paginate(9);\n return view('admin.material.material_list',$data);\n }", "title": "" }, { "docid": "ee1689b505cc3f902491870403a1d478", "score": "0.54609704", "text": "public function actionIndex()\n {\n $searchModel = new ItImToApSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n $dataProvider->pagination->pageSize=30;\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "4f99651bb34540db1c4e35c694f4b9eb", "score": "0.54599905", "text": "public function index()\n {\n $contas = Conta::paginate(5);\n $data = [\n 'title' => \"Contas\",\n 'type' => \"contas\",\n 'menu' => \"Contas\",\n 'submenu' => \"Listar\",\n 'getContas' => $contas,\n ];\n return view('conta.list', $data);\n }", "title": "" }, { "docid": "c034792445ee872b399eeb77eaa00641", "score": "0.54585296", "text": "public function index()\n {\n $show = BankEntry::with('BankTypeEntry')->orderBy('bankEntryId','desc')->paginate(20);\n return ['show'=>$show];\n }", "title": "" }, { "docid": "4877fa4af83d4ce4ed0278acf5127ad3", "score": "0.54577446", "text": "public function index()\n {\n //\n $listCategory = Cate_posts::All();\n return view('admin.san-pham.danh-muc-bai-viet.index', compact('listCategory'));\n }", "title": "" }, { "docid": "2d6c1c493c03355be9aa8b42c3a5b5b5", "score": "0.5457136", "text": "public function index()\n {\n $data = GetData::fetch('mst_collection_categorys','category_status','1','category_id','asc');\n return view('mst.collection_category.index',compact('data'));\n }", "title": "" }, { "docid": "b7eb175f667c6f3610b59a44435928cc", "score": "0.54553056", "text": "public function actionIndex()\n {\n //$this->checkUsers();\n $car = new Car();\n\n $carFilter=[\n 'cstat'=> [0,1],\n 'owner'=> ' ',\n 'group'=>'0',\n ];\n $carList = $car->getCar(Yii::$app->request->get(), $carFilter);\n\n return $this->render('index',[\n 'carList' => $carList,\n ]);\n }", "title": "" }, { "docid": "cd8d24ad7fb355408d9e8e1a86817ae8", "score": "0.5453515", "text": "public function getList(\\Base $f3, $params) {\n\t\t$this->response->data['SUBPART'] = 'comment_list.html';\n\t\t$filter = array('approved = ?',0); // new\n\t\tif (isset($params['viewtype'])) {\n\t\t\tif ($params['viewtype'] == 'published')\n\t\t\t\t$filter = array('approved = ?',1);\n\t\t\telseif ($params['viewtype'] == 'rejected')\n\t\t\t\t$filter = array('approved = ?',2);\n\t\t\telseif(!empty($params['viewtype'])) {\n\t\t\t\t// display all comments for a specified post\n\t\t\t\t$filter = array('post = ?',$params['viewtype']);\n\t\t\t}\n\t\t}\n\n\t\t$page = \\Pagination::findCurrentPage();\n\t\t$limit = 10;\n\t\t$this->response->data['comments'] =\n\t\t\t$this->resource->paginate($page-1,$limit,$filter, array('order' => 'datetime desc'));\n\t}", "title": "" }, { "docid": "754899fc5d9511a9dedabb2828b90287", "score": "0.54527706", "text": "public function index()\n {\n $adsCategories = AdsCategory::all();\n $arg = [\n 'adsCategories' => $adsCategories\n ];\n return $this->responseViewAdmin('admin.tables.adsCategoryTable', $arg);\n }", "title": "" }, { "docid": "d980943f412b0d5b00061c0a6eb58819", "score": "0.5448436", "text": "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => UbahDataKabkota::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "056c239b66bf22cc53ce5e687d595237", "score": "0.54431087", "text": "public function admincp_index()\n {\n modules::run('admincp/chk_perm', $this->session->userdata('ID_Module'), 'r', 0);\n $default_func = 'created';\n $default_sort = 'DESC';\n $data = array(\n 'module' => $this->module,\n 'module_name' => $this->session->userdata('Name_Module'),\n 'default_func' => $default_func,\n 'default_sort' => $default_sort\n );\n\n $item = $this->model->fetch('*','cli_newbie_item','server = 47');\n $data['item'] = $item;\n\n $servers = $this->model->fetch('*','cli_servers','server_status = 1');\n $data['servers'] = $servers;\n\n $this->template->write_view('content', 'BACKEND/index', $data);\n $this->template->render();\n }", "title": "" }, { "docid": "f576d0bb1f776b9ac6aca660a9ee1735", "score": "0.5441997", "text": "function show() {\n\t\tglobal $style, $mysql, $prefix;\n\t\t// Modul anzeigen\n\t\t$mysql->id_select('*', $prefix.'modul', sql($this->request['id']));\n\t\t$mod = $mysql->fetchRow();\n\t\t\n\t\t$list = new liste('Modul: '.$mod['mod_name']);\n\t\t$list->add_columns(array('' => '50%', ' ' => ''));\n\t\t$list->add_row(array(liste_title('ID'), $mod['id']));\n\t\t$list->add_row(array(liste_title('Modulname'), $mod['mod_name']));\n\t\t$list->add_row(array(liste_title('Modulkategorie'), $this->get_modul_cat_name($mod['mod_cat'])));\n\t\t// navigationskategorie noch machen<=========================================================\n\t\t$list->add_row(array(liste_title('Schlüssel'), $mod['mod_key']));\n\t\t$list->add_row(array(liste_title('Linkparameter'), $mod['mod_link']));\n\t\t$list->add_row(array(liste_title('Paket'), $mod['mod_archive']));\n\t\t$list->add_row(array(liste_title('Version'), $mod['mod_version']));\n\t\t$list->add_row(array(liste_title('Autor'), $mod['mod_author']));\n\t\t$list->add_row(array(liste_title('Copyright'), $mod['mod_copyright']));\n\t\t$list->add_row(array(liste_title('Veröffentlichungsdatum'), date('d.m.Y', $mod['mod_date'])));\n\t\t$list->add_row(array(liste_title('Changelog'), $mod['mod_changelog']));\n\t\t$list->add_row(array(liste_title('Beschreibung'), $mod['mod_description']));\n\t\t$style->add($list->get());\n\t\t\n\t\t// Bearbeiten Button\n\t\t$form = new form();\n\t\t$form->button('Zurück', INDEX);\n\t\t$style->add($form->get());\n\t}", "title": "" }, { "docid": "6b84228e680a14e2a8f8074316a6a92a", "score": "0.544132", "text": "public function listAction() {\n\t\t\t$this->view->assign('categories', $this->categoryRepository->findAll());\n\t\t}", "title": "" }, { "docid": "7521085b8bd8062116fe85b732fe3f30", "score": "0.5440763", "text": "public function index()\n {\n //\n return PlanCollection::collection(PlanModel::paginate(5));\n }", "title": "" }, { "docid": "c306ed71757863b67cd9e574c74b11d6", "score": "0.54343504", "text": "public function index()\n {\n $postcards = $this->postcards->getAllPostcards();\n \n $names = \"\";\n for ($i=0; $i < count($postcards); $i++) {\n if ($i == 0)\n $names = $postcards[$i][\"name\"];\n else\n $names = $names . ',' . $postcards[$i][\"name\"];\n }\n\n // load views. Put names in a hidden field for js to load images\n require APP . 'view/_templates/header.php';\n echo \"<input type=\\\"hidden\\\" id=\\\"card_names\\\" value=\\\"\" . $names . \"\\\"/>\";\n require APP . 'view/postcards/index.php';\n require APP . 'view/_templates/footer.php';\n }", "title": "" }, { "docid": "9051fd38b8c975ac149dd081631df266", "score": "0.5429297", "text": "public function index()\n {\n return $this->fetch('lst');\n }", "title": "" }, { "docid": "50ef0eafe92c2819b9a17a19666b4e90", "score": "0.5427369", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$sid = intval($this->getInput('sid'));\n\t\tif(!$sid || $sid == 1){\n\t\t\t$type = 1;\n\t\t} else {\n\t\t\t$type = $sid;\n\t\t}\n\t\t$this->cookieParams();\n\t\t$perpage = $this->perpage;\n\t\tlist($total, $result) = Resource_Service_Attribute::getList($page, $perpage,array('at_type'=>$type));\n\t\t$this->assign('result', $result);\n\t\t$this->assign('sid', $type);\n\t\t$this->assign('at_ptypes', $this->at_ptypes);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'?'));\n\t}", "title": "" }, { "docid": "7bfae14ba8b7c1409a6cf465ddd1aec0", "score": "0.54257494", "text": "public function index()\n {\n $advertisers = Advertiser::latest()->paginate( 20 );\n\n return API::success( AdvertiserResource::collection( $advertisers ) );\n }", "title": "" }, { "docid": "035f6de7d67b67c8aac107864bb88b5b", "score": "0.54234046", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:Feast:list.html.twig');\n }", "title": "" }, { "docid": "73e21ddecab4b021d04c26722eca983d", "score": "0.5421101", "text": "public function index()\n {\n $data = Campaigns::orderBy('c_created_at', 'desc')->paginate(10);\n return view('campaign.index')->with('campaigns', $data);\n }", "title": "" }, { "docid": "bfc46a2bdbc109efd2525e2d5d1b8262", "score": "0.5416967", "text": "public function actionIndex()\n {\n $searchModel = new DemandaSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n //$dataProvider->pagination->pageSize = 1;\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "1ec8c70afa71a91f40bcd16f4d0c6776", "score": "0.541633", "text": "public function list()\n {\n $datas = $this->model->getBooks(null, $this->level);\n $this->createView($this->_tab . DS . 'list', $datas);\n $this->view->page_title = 'BIBLIOGRAPHIE';\n \n $this->view->render($datas);\n }", "title": "" }, { "docid": "0dcbd6542795faaa86be98485aa4badd", "score": "0.5414059", "text": "public function index()\n {\n $dcms = DCM::where('team_id', Auth::user()->current_team_id)->orderBy('id', 'DESC')->paginate(20);\n return view('dcm.index', compact('dcms'));\n \n }", "title": "" }, { "docid": "4a03508408c507c38ec1dadfdb109eb0", "score": "0.54131514", "text": "public function index()\n {\n $query = $this->db->query(\"SELECT * FROM makul\");\n $data['makul'] = $query->result();\n $data['total'] = $query->num_rows();\n $data['page'] = 'mk/showall';\n $this->load->view('siakadku', $data);\n }", "title": "" }, { "docid": "160dabf4c3e8e0ced38d990b63da0e48", "score": "0.54092455", "text": "public function index()\n {\n //show page\n $arts = Art::latest()->paginate(5);\n return view('art.index')->with('arts', $arts);\n }", "title": "" }, { "docid": "34a4151248e1a15ff1cb18077020fa9b", "score": "0.5406277", "text": "public static function tvShow(){\n $sql = \"SELECT `article_id`,`article_name`,`thumbnail`,`created_at`,`categoryName` FROM `article` a \n join `category` b ON a.`category_id` = b.`categoryId`\n WHERE a.`category_id` = '11' ORDER BY `article_id` DESC LIMIT 3\";\n $rows = db_get_list($sql);\n if($rows){\n return $rows;\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "7b92cee240de08da3d4a453b4e115549", "score": "0.54058784", "text": "public function actionIndex() {\n $searchModel = new PdmB1Search();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'sysMenu' => $this->sysMenu\n ]);\n }", "title": "" }, { "docid": "8cfe63ca790aa037aa5857f94b9a06f0", "score": "0.54027635", "text": "public function actionIndex()\n {\n $this->layout = 'main-full';\n $searchModel = new MaterialCopiasSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n $dataProvider->sort = ['defaultOrder' => ['matc_id'=>SORT_DESC]];\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "a531dd94ece2ca73d2296667959f2454", "score": "0.5402462", "text": "public function stkitem_list()\n\t{\n $data['stkitems'] = $this->Master->f_get_particulars(\"md_stk_item \", NULL, NULL, 0);\n $this->load->view('common/header');\n\t\t$this->load->view('stkitem/item_list',$data);\n $this->load->view('common/footer');\n\t}", "title": "" }, { "docid": "0e67d5d72bf33c1fcdc3ef1a7448fb5f", "score": "0.5400605", "text": "public function index()\n {\n $testimonial = Testimonial::latest()->paginate(10);\n return view('admin.testimonial.index',compact('testimonial'));\n }", "title": "" } ]
c2e0719c7d8ba4abea54bfd896d84086
Sets the serviceManagementUrl property value. The URL of the management portal for the managed service. Readonly.
[ { "docid": "b02b0f2ee2043615bd5aeda110e49156", "score": "0.7865542", "text": "public function setServiceManagementUrl(?string $value): void {\n $this->getBackingStore()->set('serviceManagementUrl', $value);\n }", "title": "" } ]
[ { "docid": "e328684b839f39fc481b2b2c660953d0", "score": "0.5620372", "text": "function setServiceEndPointUrl($url)\n {\n \tif (isProd())\n \t\treturn false;\n \t$this->serviceEndpointUrl = $url;\t\n }", "title": "" }, { "docid": "6854022c5d33c3951b58cdbccdcea367", "score": "0.53792596", "text": "function set_url($url)\n {\n $this->set_default_property(self :: PROPERTY_URL, $url);\n }", "title": "" }, { "docid": "8dad811843b3c77cd4c4ad9312ff8d93", "score": "0.5353971", "text": "public function setUrl($url)\n {\n if (!is_string($url)) {\n throw ServiceException::invalidServiceUrl();\n }\n\n $this->url = $url;\n }", "title": "" }, { "docid": "ee2e58c80f3764d5ca0c669d07c84068", "score": "0.5223369", "text": "public function getManagementUrl()\n {\n if (empty($this->managementUrl)) {\n if (!$this->authenticate()) {\n throw new Exception\\RuntimeException('Authentication failed, you need a valid token to use the Rackspace API');\n }\n }\n return $this->managementUrl;\n }", "title": "" }, { "docid": "31b8822a6b641f87f107e35eab025207", "score": "0.5177718", "text": "public function setUrl($url = '')\n {\n $this->url = $url;\n }", "title": "" }, { "docid": "775d49bc2116261525f8d704d3264d90", "score": "0.5165897", "text": "public function setUrl(?string $url): void {\r\n $this -> url = $url;\r\n }", "title": "" }, { "docid": "eeaba2192406b8517a1e697f2402ab2e", "score": "0.5115889", "text": "public function setManagerUrl($url): self\n {\n $this->managerUrl = (strpos($url, 'localhost') !== false)\n ? $url\n : $url.'/'.static::CONTAO_MANAGER;\n\n return $this;\n }", "title": "" }, { "docid": "97d84ce0a975d19d673a019fcaed648a", "score": "0.51106745", "text": "public function setService($service);", "title": "" }, { "docid": "11c1372034222877062a8cce06717199", "score": "0.50894046", "text": "public function setUrl($url) {\n $this->url = $url;\n }", "title": "" }, { "docid": "83cd641a51c07212e61a54ab2df9090d", "score": "0.5081701", "text": "public function setServiceUrl ($url)\n {\n if ($this->hasBeenOpened()) {\n throw new CAS_OutOfSequenceException(\n 'Cannot set the URL, stream already opened.'\n );\n }\n if (!is_string($url) || !strlen($url)) {\n throw new CAS_InvalidArgumentException('Invalid url.');\n }\n\n $this->_url = $url;\n }", "title": "" }, { "docid": "a10e2500da9e6327f45f9cbb15a4e8f1", "score": "0.50496274", "text": "public function setUrl( $url )\n {\n $this->url = $url;\n }", "title": "" }, { "docid": "c47e89b72bf622588e9963ddbc45b881", "score": "0.5038078", "text": "public function setUrl($url) {\n\t\t$this->url = $url;\n\t}", "title": "" }, { "docid": "c47e89b72bf622588e9963ddbc45b881", "score": "0.5038078", "text": "public function setUrl($url) {\n\t\t$this->url = $url;\n\t}", "title": "" }, { "docid": "c47e89b72bf622588e9963ddbc45b881", "score": "0.5038078", "text": "public function setUrl($url) {\n\t\t$this->url = $url;\n\t}", "title": "" }, { "docid": "c47e89b72bf622588e9963ddbc45b881", "score": "0.5038078", "text": "public function setUrl($url) {\n\t\t$this->url = $url;\n\t}", "title": "" }, { "docid": "f87cd03bf5e60ec5a5c816ac0b51d7bc", "score": "0.50344276", "text": "function setUrl($surl = '')\n {\n $this->surl = $surl;\n }", "title": "" }, { "docid": "d0940ad89b739caab54b31e750d45b1a", "score": "0.50112784", "text": "function setUrl($url)\n\t{\n\t\t$this->url = $url;\n\t}", "title": "" }, { "docid": "38a242db78540c7007690ae046072af2", "score": "0.50104785", "text": "public function setServerUrl( $url ) {\n\t\t$this->server_url=$url;\n\t\t$this->initClient();\n\t}", "title": "" }, { "docid": "3cae1212abaa606b80500b5295f0d0df", "score": "0.50091046", "text": "public function setUrl($url) {\n $this->url = $url;\n }", "title": "" }, { "docid": "d0c413d5ae766eea76cf8ea283879d98", "score": "0.50052184", "text": "public function setUrl($url)\n\t{\n\t $this->url = $url;\n\t}", "title": "" }, { "docid": "5fc751d35e2f16b1b2068ead3b4845c3", "score": "0.4992346", "text": "public function setUrl($value)\n {\n if (is_string($value) === false)\n throw new SystemException(SystemException::EX_INVALIDPARAMETER, 'Parameter = value');\n \n $this->url = $value;\n }", "title": "" }, { "docid": "41e7e4ebc0af31a26f6898c933be657f", "score": "0.49852476", "text": "public function setUrl($url)\n {\n $this->url = $url;\n }", "title": "" }, { "docid": "41e7e4ebc0af31a26f6898c933be657f", "score": "0.49852476", "text": "public function setUrl($url)\n {\n $this->url = $url;\n }", "title": "" }, { "docid": "81d4a70249ec68d0bcae5e6b23040419", "score": "0.4980481", "text": "public function setManagementCertificates(?array $value): void {\n $this->getBackingStore()->set('managementCertificates', $value);\n }", "title": "" }, { "docid": "38b33a51eb85e5e3edccb122a3099aed", "score": "0.49562523", "text": "public function setUrl($url){\r\n\t\t$this->url = $url;\r\n\t}", "title": "" }, { "docid": "7bfcd809290b347d4ab0c728b26fa553", "score": "0.49499997", "text": "public static function setService(string $serviceName, string $serviceUrl): void\n {\n self::$dnsRecords[$serviceName] = $serviceUrl;\n }", "title": "" }, { "docid": "e97cbd0359fc47b4c18589949d9c5270", "score": "0.492953", "text": "public function setUrl(string $url);", "title": "" }, { "docid": "77addd6c9a9d4072b42bc4e222cdfa23", "score": "0.4928356", "text": "public function set_payment_server_url( $url ) {\n\t\t$this->payment_server_url = $url;\n\t}", "title": "" }, { "docid": "d12270e9775630cc1d551f995f5765d2", "score": "0.49274313", "text": "public function SetStorageUrl($storageUrl) {\n $storageUrl = rtrim(trim($storageUrl), \"/\");\n if (strlen($storageUrl) > 0) {\n $storageUrl = $storageUrl . \"/\";\n if (!preg_match(\"/^https?:\\/\\//i\", $storageUrl)) {\n $storageUrl = \"http://\" . $storageUrl;\n }\n }\n\n $this->logger->info(\"SetStorageUrl: $storageUrl\", [\"app\" => $this->appName]);\n\n $this->config->setAppValue($this->appName, $this->_storageUrl, $storageUrl);\n }", "title": "" }, { "docid": "9a5d6cb25fa239cfcda50a1ca63ad5bc", "score": "0.4901929", "text": "public function set_url( $url ) {\n $this->url = $url;\n }", "title": "" }, { "docid": "e16c77e9795eae2079af9ef6ac7de183", "score": "0.48697022", "text": "public function setUrl($value) \n {\n $this->url = $value;\n }", "title": "" }, { "docid": "d18fc4a9dbffeab5f031942cb5b896d7", "score": "0.48596385", "text": "public function setUrl($url)\n {\n $url = str_replace(\"\\\\\", \"/\", $url);\n $this->url = (substr($url, -1) != '/') ? $url.'/' : $url;\n }", "title": "" }, { "docid": "61d7e33fe8e21f462ae5eb21f7dc3606", "score": "0.4841715", "text": "public function setService(\\Zend\\Json\\Server\\Smd\\Service $service)\n {\n $this->setParam('service', $service);\n return $this;\n }", "title": "" }, { "docid": "00a4c4d003647bbb92e046a0a6ad2fc3", "score": "0.48366737", "text": "public static function setUrl($url)\n {\n self::$url = $url;\n }", "title": "" }, { "docid": "a0581c8a2c6898248bf38d85fdc3384e", "score": "0.48344073", "text": "function set_url($url)\r\n {\r\n $this->url = $url;\r\n }", "title": "" }, { "docid": "93b42db90cbb69a755e962b32e49482e", "score": "0.48307574", "text": "function setProcessUrl($url)\n {\n $this->m_processUrl = $url;\n }", "title": "" }, { "docid": "6a710960070dc0352465183f76ba26c1", "score": "0.48224512", "text": "public function setUrl(string $url): void;", "title": "" }, { "docid": "7fc5621961ce8d94cbe134be5170ba06", "score": "0.48188344", "text": "public function setServiceManager(ServiceManager $serviceManager) {\n $this->sm = $serviceManager;\n }", "title": "" }, { "docid": "1486cb01d9ff1ac17923b46fa532cd8d", "score": "0.47987995", "text": "public function setProxyAutomaticConfigurationUrl(?string $value): void {\n $this->getBackingStore()->set('proxyAutomaticConfigurationUrl', $value);\n }", "title": "" }, { "docid": "e71d8fff478aa553f0b9222f591cceac", "score": "0.4794086", "text": "function setSyncUrl()\n {\n }", "title": "" }, { "docid": "9a4b9b339b09a670f3879504e86908fd", "score": "0.47817728", "text": "public function setUrl($url)\n {\n $url = trim($url);\n $this->url = $url;\n }", "title": "" }, { "docid": "902c6d4e437d70b56dbcd69b273e251f", "score": "0.47759902", "text": "public function setUrl($url)\n {\n $this->initialized = false;\n $this->data = array();\n $this->url = $url;\n }", "title": "" }, { "docid": "78597118c1a3be2c76c4400bacc5e9cf", "score": "0.47758514", "text": "public function setURL($url) {\n\n $this->url = $url;\n }", "title": "" }, { "docid": "effea770468f52689dfa3a2c5afd55d4", "score": "0.47680765", "text": "public function setUrl($url=null);", "title": "" }, { "docid": "9916a632d1b4ba95a6f9fffa51b579ad", "score": "0.4762071", "text": "public function setUrl($url)\n {\n curl_setopt($this->_ch, CURLOPT_URL, $url);\n\n }", "title": "" }, { "docid": "a84aec8f3cdf6bf60c3425da2103dc59", "score": "0.475425", "text": "public function setServiceProperties($serviceProperties, $options = null);", "title": "" }, { "docid": "a998a4b48a62cba69efb215191ea9616", "score": "0.47199458", "text": "public function setUrl();", "title": "" }, { "docid": "64506ecd4fa4a3dd7ffcfdbff9933071", "score": "0.4708964", "text": "public function setUrl ($url) {}", "title": "" }, { "docid": "e5f47167f51b97517a687024852e91fd", "score": "0.4703684", "text": "public function seturl($url)\n\t{\n\t\t$this->_url = $url;\n\t}", "title": "" }, { "docid": "55671fdcedd654d6f6437f21e11ae474", "score": "0.47036165", "text": "public function setTargetUrl(?string $value): void {\n $this->getBackingStore()->set('targetUrl', $value);\n }", "title": "" }, { "docid": "cb534d2041c736e02a847fee1bfa3b4a", "score": "0.46967888", "text": "protected function setService(Service $value)\n {\n $this->service = $value;\n }", "title": "" }, { "docid": "e72abe9dec074b66817ef63d7e978e69", "score": "0.4689059", "text": "public function setUrl($url);", "title": "" }, { "docid": "e72abe9dec074b66817ef63d7e978e69", "score": "0.4689059", "text": "public function setUrl($url);", "title": "" }, { "docid": "e72abe9dec074b66817ef63d7e978e69", "score": "0.4689059", "text": "public function setUrl($url);", "title": "" }, { "docid": "e72abe9dec074b66817ef63d7e978e69", "score": "0.4689059", "text": "public function setUrl($url);", "title": "" }, { "docid": "9e49068b4efc8e4460b27624107530cd", "score": "0.4680316", "text": "public function setUrl( $url ) {\n\t\t$this->url = $url;\n\t\t$this->fetchData();\n\t}", "title": "" }, { "docid": "86c94c60ad4ba2f5e75fea09a783bfa5", "score": "0.4672737", "text": "public function setGatewayURL(string $url)\n {\n $file = Libs\\FileSystem::getExportDir().'/.gatewayURL';\n file_put_contents($file, $url);\n\n }", "title": "" }, { "docid": "b01cb384ecd0ccc406c4fdd000329e8a", "score": "0.4670713", "text": "public function getServiceManagementUrl(): ?string {\n $val = $this->getBackingStore()->get('serviceManagementUrl');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'serviceManagementUrl'\");\n }", "title": "" }, { "docid": "9d457fbf237ed97bb0454c15fc7434cc", "score": "0.46696046", "text": "public function setUrl(?string $url): self;", "title": "" }, { "docid": "e9e4b9d0fb254aa757cb974aa8564a7f", "score": "0.46593904", "text": "public function setUrl(string $url)\n\t{\n\t\t//We remove the query string from the url because\n\t\t//it is not needed for this framework\n\t\t//Todo: Check how extra data for api calls are gonna be sent...\n if (($strpos = strpos($url, \"?\")) !== false) {\n $url = substr($url, 0, $strpos);\n }\n\n //We strip the base path from the request url, so we can match\n\t\t//it with the routes. If there's an trailing slash at the end of\n\t\t//an url it gets stripped, so we can ensure consistency through all\n\t\t//urls.\n $url = rtrim(str_replace(BASE_PATH, \"\", $url), \"/\");\n\n //If the url is empty it's the root route.\n if(empty($url)) {\n $url = \"/\";\n }\n \n\t\t$this->url = $url;\n\t}", "title": "" }, { "docid": "a8c5d020835eade0dbb0ff128d6d0c23", "score": "0.46447313", "text": "public function setUrl($url) {\n\t\t$url = $this->getApiBaseUrl() . $url;\n\t\t\n\t\tif ( strpos($url, \"?\") ) {\n\t\t\t$url .= '&token=' . $this->getApiToken();\n\t\t} else {\n\t\t\t$url .= '?token=' . $this->getApiToken();\n\t\t}\n\n\t\t$this->call_url = $url;\n\t}", "title": "" }, { "docid": "77f53808b4fd4e0fbdec1b54af2e3ca5", "score": "0.46266523", "text": "public function setUrl(string $url) : self\n {\n $this->initialized['url'] = true;\n $this->url = $url;\n return $this;\n }", "title": "" }, { "docid": "5f4d0dec7fe6e4a5db5c3d6348d6c946", "score": "0.46076393", "text": "public function setProxyServerUri(?string $value): void {\n $this->getBackingStore()->set('proxyServerUri', $value);\n }", "title": "" }, { "docid": "c1622c6ff4d80c6136a2384fbf880c63", "score": "0.46033818", "text": "public function setScriptUrl($value)\n {\n $this->_scriptUrl = $value;\n }", "title": "" }, { "docid": "d70df09345ca9583f58793717c5aca57", "score": "0.45972496", "text": "public function setDownloadUrl($value)\n {\n \t$this->downloadUrl = $value;\n }", "title": "" }, { "docid": "b21913a8625bb707ac8ab0276520111c", "score": "0.45917487", "text": "public function setManagedDevice(?ManagedDevice $value): void {\n $this->getBackingStore()->set('managedDevice', $value);\n }", "title": "" }, { "docid": "c559ca423cd09c039e9ee047431b61fe", "score": "0.45901468", "text": "public function setWebUrl(?string $value): void {\n $this->getBackingStore()->set('webUrl', $value);\n }", "title": "" }, { "docid": "c559ca423cd09c039e9ee047431b61fe", "score": "0.45901468", "text": "public function setWebUrl(?string $value): void {\n $this->getBackingStore()->set('webUrl', $value);\n }", "title": "" }, { "docid": "c559ca423cd09c039e9ee047431b61fe", "score": "0.45901468", "text": "public function setWebUrl(?string $value): void {\n $this->getBackingStore()->set('webUrl', $value);\n }", "title": "" }, { "docid": "a0acb9ec87e38508bd6e6d1fd2aff6a4", "score": "0.45852953", "text": "public function setDeviceOwnerManagementEnabled(?bool $value): void {\n $this->getBackingStore()->set('deviceOwnerManagementEnabled', $value);\n }", "title": "" }, { "docid": "24509b565de928eee1daac2b0dfcd1a7", "score": "0.4573071", "text": "function setUrl($url);", "title": "" }, { "docid": "d5d0e0eef2b1aa92e690943b9259c280", "score": "0.45556146", "text": "public function setVaCentralUrl($url);", "title": "" }, { "docid": "76b12f219ca85bfe7942a4328c2ad41f", "score": "0.4550269", "text": "public function setUrl($url)\n\t{\n\t\t$this->setAttribute('href', Enviroment::resolveUrl($url));\n\t}", "title": "" }, { "docid": "0ddd41ef565efb93195530f34d8826d1", "score": "0.45470795", "text": "public function setProxyManualAddress(?string $value): void {\n $this->getBackingStore()->set('proxyManualAddress', $value);\n }", "title": "" }, { "docid": "859bf222d5fa6274d9bab5f094a1cb51", "score": "0.45469844", "text": "public function setService(?string $value): void {\n $this->getBackingStore()->set('service', $value);\n }", "title": "" }, { "docid": "112b8fd1bfd7cf0933e4e785b978996f", "score": "0.45452368", "text": "function setUrl($url) {\n\t\treturn $this->setData('url', $url);\n\t}", "title": "" }, { "docid": "dd2791692a295b826d2718ea6a54c192", "score": "0.4538483", "text": "public function setRequestUrl(?string $value): void {\n $this->getBackingStore()->set('requestUrl', $value);\n }", "title": "" }, { "docid": "885b99ff5706c0b36f70e761862097f5", "score": "0.45220795", "text": "public function setNotificationURL($value) {\n\t\t$this->NotificationURL = $value;\n\t}", "title": "" }, { "docid": "e6aa0334168cda1629ec4fc7f0c13ea3", "score": "0.45203894", "text": "function set_url($url){\n $this->url->value = $url;\n $this->set_url_attributes();\n }", "title": "" }, { "docid": "4a2047b0d4e36589b966496c4f3caced", "score": "0.45179373", "text": "public function getCacheManagementUrl()\n {\n return $this->getBackendUrl('adminhtml/cache/index', false, false);\n }", "title": "" }, { "docid": "4919fbbf66c2b4c92707fd34978b9038", "score": "0.45151857", "text": "public function setRemotelyHostedUrl(?string $remotelyHostedUrl): void\n {\n $this->remotelyHostedUrl = $remotelyHostedUrl;\n }", "title": "" }, { "docid": "3a0da6fdeeb856b139ac6923b2a079c7", "score": "0.451149", "text": "public function url($url) {\n\t\t$this->url = $url;\n\t}", "title": "" }, { "docid": "ae1d4230ee7d90065fe3b72c5d441003", "score": "0.45097807", "text": "public function set_url( $url );", "title": "" }, { "docid": "93006fa10a137459413157123e4c7adf", "score": "0.4509758", "text": "public function set_sp_url($sp_url) {\n\t\t$this->sp_url = $sp_url;\n\t}", "title": "" }, { "docid": "af70178cb0528b9496c128aa47e45081", "score": "0.4496978", "text": "public function setAuthorizationUrl($url) {\n $this->urlAuthorization = $url;\n }", "title": "" }, { "docid": "933d41aa5fdc6d525669c1cfdf194412", "score": "0.44877157", "text": "public static function setURL($url) {\n\t\tstatic::$url = $url;\n\t}", "title": "" }, { "docid": "990042cd399a166b5078c3460d8f1828", "score": "0.44834998", "text": "public function setServiceManager(ServiceManager $serviceManager)\n {\n $this->serviceManager = $serviceManager;\n }", "title": "" }, { "docid": "990042cd399a166b5078c3460d8f1828", "score": "0.44834998", "text": "public function setServiceManager(ServiceManager $serviceManager)\n {\n $this->serviceManager = $serviceManager;\n }", "title": "" }, { "docid": "443d8fc195d9286d5d355468a064c85d", "score": "0.44735453", "text": "public function setApiUrl($url = NULL)\n\t{\n\t\tif (is_string($url))\n\t\t{\n\t\t\t$this->api_url = $url;\n\t\t}//end if\n\t}", "title": "" }, { "docid": "da79894f9084379be340fbbebf4875de", "score": "0.44679248", "text": "protected function setUrl($url) {\n if(!$this->_isTest) {\n $this->_url = self::BASE_URL . $url;\n $this->_accessTokenUrl = self::BASE_URL . '/authorize';\n } else {\n $this->_url = self::BASE_TEST_URL . $url;\n $this->_accessTokenUrl = self::BASE_TEST_URL . '/authorize';\n }\n }", "title": "" }, { "docid": "d2a11c8616056b836ecd0149ad0a1b4f", "score": "0.4463788", "text": "public function setPublicUrl(?string $publicUrl): void\n {\n $this->publicUrl = $publicUrl;\n }", "title": "" }, { "docid": "87b198658b3121796e1655b154c0cba1", "score": "0.4463489", "text": "public function setApiUrl($url)\n {\n $this->_baseUri = $url;\n }", "title": "" }, { "docid": "059386850c279a3cecded8067bfe70db", "score": "0.44587472", "text": "public function setUrl(string $url): self\n {\n $this->options['url'] = $url;\n return $this;\n }", "title": "" }, { "docid": "059386850c279a3cecded8067bfe70db", "score": "0.44587472", "text": "public function setUrl(string $url): self\n {\n $this->options['url'] = $url;\n return $this;\n }", "title": "" }, { "docid": "ac559ca1be3b780fca715b1e91bbd08f", "score": "0.4457549", "text": "public function setBaseUrl(string $url)\n {\n $this->url = $url;\n }", "title": "" }, { "docid": "e04451ea5aadf858c1ad02736f634f62", "score": "0.4453815", "text": "function setUrl($apiUrl) {\n $this->apiUrl = $apiUrl;\n }", "title": "" }, { "docid": "04ab40d9a7f3deee06574b7d13aaf367", "score": "0.4424466", "text": "public function setCurrentURL($url) {\n $this->currentURL = $url;\n }", "title": "" }, { "docid": "265ac0fdf022c5603f63a41689f9cf09", "score": "0.44231474", "text": "public function setUrl ($url)\n\t\t{\n\t\t\t$this->authUrl = $url . '/oauth/authorize';\n\t\t\t$this->tokenUrl = $url . '/oauth/token';\n\t\t\t$this->apiBaseUrl = $url . '/api';\n\t\t}", "title": "" }, { "docid": "3fd3e5ed5f15def75700c579064eefc7", "score": "0.44077757", "text": "public function setService($serviceName)\n {\n $this->service = $serviceName;\n }", "title": "" }, { "docid": "8bc4eccb4b70b51df77a155a88c540aa", "score": "0.4406872", "text": "public function setServiceProperties(\n ServiceProperties $serviceProperties,\n ServiceOptions $options = null\n );", "title": "" } ]
74aacd4ebd7ab19555cf01c731821c07
Magic method for reading data from inaccessible properties
[ { "docid": "d60a8f23af7b8544b618c2bb15c324bc", "score": "0.0", "text": "public function __get(string $property)\n {\n return $this->get($property);\n }", "title": "" } ]
[ { "docid": "bfa46a22c9b363323265f3e775a379a5", "score": "0.6862184", "text": "final public function __get($name)\n {\n throw new \\Foundation\\Exception\\BadMethodCallException('Reading data from inaccessible properties is not allowed.');\n }", "title": "" }, { "docid": "0d62454afd9a0e93c265bcfb561bcc42", "score": "0.6853912", "text": "abstract protected function properties();", "title": "" }, { "docid": "98546796b44438e7775b8b22e3d9f290", "score": "0.6845263", "text": "public function __get($name)\n {\n throw new \\Foundation\\Exception\\BadMethodCallException('Reading data from inaccessible properties is not allowed.');\n }", "title": "" }, { "docid": "98546796b44438e7775b8b22e3d9f290", "score": "0.6845263", "text": "public function __get($name)\n {\n throw new \\Foundation\\Exception\\BadMethodCallException('Reading data from inaccessible properties is not allowed.');\n }", "title": "" }, { "docid": "7ec3df0ca566d483bdb881788f45543c", "score": "0.6648731", "text": "abstract public function getRawAdditionalProperties();", "title": "" }, { "docid": "6be1e18d7bffc357d55e6b2657ca2990", "score": "0.6375392", "text": "public function getData()\n\t{\n\t\t$data = array();\n\t\tforeach ($this->getReflection()->getEntityProperties() as $property) {\n\t\t\t$data[$property->getName()] = $this->__get($property->getName());\n\t\t}\n\t\t$internalGetters = array_flip($this->internalGetters);\n\t\tforeach ($this->getReflection()->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {\n\t\t\t$name = $method->getName();\n\t\t\tif (substr($name, 0, 3) === 'get' and !isset($internalGetters[$name])) {\n\t\t\t\tif ($method->getNumberOfRequiredParameters() === 0) {\n\t\t\t\t\t$data[lcfirst(substr($name, 3))] = $method->invoke($this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6372928", "text": "public function getProperties();", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6372928", "text": "public function getProperties();", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6372928", "text": "public function getProperties();", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6372928", "text": "public function getProperties();", "title": "" }, { "docid": "dfdf598785efe1d02d64ac0f06f60429", "score": "0.635674", "text": "public function getProperties()\n {\n return (array)$this->_data['data'];\n }", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.61784834", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.61784834", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.61784834", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.61784834", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.61784834", "text": "public static function getters();", "title": "" }, { "docid": "a4f4d3d40bcaa246b079dddfe54537df", "score": "0.61784834", "text": "public static function getters();", "title": "" }, { "docid": "21435e82ea1052a5e20d6ef5e4399ad3", "score": "0.6170454", "text": "public function get_data()\n\t{\n\t\t$data = array();\n\t\tforeach($this->properties() as $prop => $val)\n\t\t{\n\t\t\t$data[$prop] = $this->prop_str($prop);\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "803f4d837096aea76ead6e4ea0960d9f", "score": "0.610959", "text": "function __get($data) {\r\n // $data = \"<br>__get is called<br>undefined attributes \";\r\n return $data;\r\n }", "title": "" }, { "docid": "c8e591ce27fa9da608ea9cd2d20327a1", "score": "0.6053526", "text": "public function accessProperties()\n\t{\n\t\t$properties = $this->getProperties([T_EXTENDS, T_USE]);\n\t\tforeach ($properties as $property) {\n\t\t\tif (!$property->isPublic()) {\n\t\t\t\t$property->setAccessible(true);\n\t\t\t}\n\t\t}\n\t\treturn $properties;\n\t}", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.6021021", "text": "public function getProperties(): array;", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.6021021", "text": "public function getProperties(): array;", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.6021021", "text": "public function getProperties(): array;", "title": "" }, { "docid": "67d0668a23cb8423c70aca75ab449dde", "score": "0.6013671", "text": "abstract protected function _initProperties();", "title": "" }, { "docid": "9e8f9cee46c215a17f8c6dba702e29f3", "score": "0.6008777", "text": "public function __get( $name )\n\t{\n\t\tif ( in_array( $name, array( 'access', 'name', 'operator', 'type', 'subtype', 'size', 'value', 'extendedValue', 'alternatives' ) ) ) {\n\t\t\t$name = '_' . $name;\n\t\t\treturn $this->{$name};\n\t\t} else {\n\t\t\tthrow new Exception( 'Inaccessible property ' . $name );\n\t\t}\n\t}", "title": "" }, { "docid": "69759982053ac88004c4a693db5e6940", "score": "0.598916", "text": "public function read()\n\t{\n\t\t$data = parent::read();\n\t\t$this->access->value = $data[0]->access;\n\t}", "title": "" }, { "docid": "ded5d354e78cc2bb61ce3c6dcd8ed1a9", "score": "0.59558886", "text": "public function __get($name)\n {\n // echo \"Access properties $name\" . PHP_EOL;\n return $this->properties[$name]; // memanfaatkan magic function\n }", "title": "" }, { "docid": "35bdcc6e3e6c661f95ef1afc94481575", "score": "0.59417", "text": "protected function readProperty($key) {\n\t\tif (isset($this->$key)) {\n\t\t\treturn $this->$key;\n\t\t}\n\t\tif (in_array($key, static::$lazy_properties, true)) {\n\t\t\treturn $this->lazyLoadProperty($key);\n\t\t}\n\t}", "title": "" }, { "docid": "9e589f81f0081eee433ed99fcd968686", "score": "0.58793205", "text": "public function get_property_data()\n {\n return $this->m_property_data;\n }", "title": "" }, { "docid": "58ea8ebc73ffac972c56cb3a13ebac3e", "score": "0.58637476", "text": "public function get_property_data(): array\n {\n $ret = [];\n foreach ($this->get_property_names() as $property) {\n $ret[$property] = $this->{$property};//this triggers the overloading and the hooks\n }\n return $ret;\n }", "title": "" }, { "docid": "2307bcb8e5daee8a29b47e0d69891e2b", "score": "0.5855753", "text": "public function __get($name)\n {\n $this->_initObject();\n\n if (!array_key_exists($name, $this->_readProperties))\n {\n throw new PAF_Exception_NoSuchProperty($name); // @todo\n }\n\n $class = get_class($this);\n\n $accessor = $this->_accessorLookUp(\n $class, $this->_readProperties[$name]\n );\n if (false !== $accessor)\n {\n $returnValue = $this->{$accessor}();\n }\n else\n {\n $attribute = $this->_attributeLookUp(\n $class, $this->_readProperties[$name]\n );\n if (false !== $attribute)\n {\n $returnValue = $this->{$attribute};\n }\n else\n {\n throw new PAF_Exception_BrokenProperty('(get)' . $name); // @todo\n }\n }\n\n return $returnValue;\n }", "title": "" }, { "docid": "1dc8a669dc166856fe5efb4f20cfcbe5", "score": "0.58526284", "text": "final function __GET($p_name){\n throw new UnknownPropertyException($this,$p_name);\n }", "title": "" }, { "docid": "8ad61e08b83dd50a8813aa8b12323091", "score": "0.5850729", "text": "private function findProperties(): void\n {\n if (!$this->inputDefinition->isPropertyEnabled()) {\n return;\n }\n $propertyParameter = $this->inputDefinition->getPropertyParameter();\n if ($propertyParameter && ($input = ($this->others[$propertyParameter] ?? null))) {\n // Parse value. Value is a comma separated list of names, each name\n // can be prefixed by ! which means \"hidden\", otherwise it means\n // displayed.\n foreach (\\explode(',', $input) as $candidate) {\n $candidate = \\trim($candidate);\n if ('!' === $candidate || !$candidate) {\n // Invalid value.\n continue;\n }\n if ('!' === $candidate[0]) {\n // Prune values such as \"! foo\" with whitespace inside.\n $candidate = \\trim(\\substr($candidate, 1));\n if ($candidate) {\n $this->properties[$candidate] = false;\n }\n } else {\n $this->properties[$candidate] = true;\n }\n }\n }\n }", "title": "" }, { "docid": "3a1cb232db53f0383a176b1fe64b0881", "score": "0.5830245", "text": "public function __get($property_name);", "title": "" }, { "docid": "bf62190dcc36dfaf49b3598355c82841", "score": "0.58026254", "text": "protected function init_properties()\n\t{\n\t}", "title": "" }, { "docid": "a51dd66d768081d984f3b0e57aa8d453", "score": "0.5798114", "text": "private function getProperties()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "44e358d58610fc451c6b11261e90c17a", "score": "0.5776254", "text": "public static function get_properties_data(): array\n {\n return self::get_columns_data() + self::get_class_properties_data();\n }", "title": "" }, { "docid": "3c4fd417465db837fa7d2767b3897d9f", "score": "0.5774079", "text": "public function __get($name) {\n\t\t$getter = 'get' . $name;\n\t\tif (method_exists($this, $getter)) {\n\t\t\t// read property, e.g. getName()\n\t\t\treturn $this->$getter();\n\t\t}\n\t\tif (method_exists($this, 'set' . $name)) {\n\t\t\tthrow new Exception('Getting write-only property: ' . get_class($this) . '::' . $name);\n\t\t}\n\t\telse {\n\t\t\tthrow new Exception('Getting unknown property: ' . get_class($this) . '::' . $name);\n\t\t}\n\t}", "title": "" }, { "docid": "47b8a2b1728fcf16ca91de949c561f21", "score": "0.57678556", "text": "public function readProperty(string $propertyName);", "title": "" }, { "docid": "8af8d70206b40c06b8dc4908fe6d75df", "score": "0.5763025", "text": "public function accessPropertiesDone()\n\t{\n\t\t$properties = $this->getProperties([T_EXTENDS, T_USE]);\n\t\tforeach ($properties as $property) {\n\t\t\tif (!$property->isPublic()) {\n\t\t\t\t$property->setAccessible(false);\n\t\t\t}\n\t\t}\n\t\treturn $properties;\n\t}", "title": "" }, { "docid": "ff6745264a69e79d8cc10909908336a3", "score": "0.5737604", "text": "public function __get($name)\n {\n if (!$this->hasData()) {\n throw new \\Exception(\"data property=$name has not been initialised\", 1);\n }\n\n if (property_exists($this->data, $name)) {\n return $this->data->$name;\n }\n\n $trace = debug_backtrace();\n throw new \\Exception(\n 'Undefined property via __get(): ' . $name .\n ' in ' . $trace[0]['file'] .\n ' on line ' . $trace[0]['line'],\n 1\n );\n }", "title": "" }, { "docid": "46f5fe570ef51edd2af4d043ce5f58ae", "score": "0.57367885", "text": "protected function loadLayerFields()\n {\n foreach (get_object_vars($this) as $prop => $val) {\n $getter = 'get' . $prop;\n $value = $val;\n if (method_exists($this->entity, $getter)) {\n $value = $this->entity->$getter();\n } elseif (property_exists($this->entity, $prop)) {\n $value = $this->entity->$prop;\n }\n $loadMethod = 'load' . $prop;\n if (method_exists($this, $loadMethod)) {\n $this->$loadMethod($value);\n } else {\n $this->$prop = $value;\n }\n }\n }", "title": "" }, { "docid": "b7607c00effc031432b15ce757259574", "score": "0.57348466", "text": "final protected function getProperties()\n\t{\n\t\t$ret = array();\n\t\tforeach ($this->properties as $name => $value) {\n\t\t\t$ret[$name] = $value[\"value\"];\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "06d14320c38f6661fffd1f694661573c", "score": "0.5729286", "text": "public function getProperty();", "title": "" }, { "docid": "06d14320c38f6661fffd1f694661573c", "score": "0.5729286", "text": "public function getProperty();", "title": "" }, { "docid": "ba9c3101ebc8bba44a9f15957bcfeb2d", "score": "0.5717866", "text": "public function getProperty() {\n\t \treturn get_object_vars($this);\n\t }", "title": "" }, { "docid": "ce7452d0649b30efb2de93f1d855debc", "score": "0.57102376", "text": "public function __get($name) {\n // get corresponding data from database if needed\n // check, if requested property name is in current class\n // columns, parents, children or siblings and call corresponding\n // getter with name as an argument\n // throw an exception, if attribute is unrecognized\n }", "title": "" }, { "docid": "4c9db399cc30c3d0f97114ddfd34e2dd", "score": "0.5698864", "text": "protected function getData()\n\t{\n $arr = $this->rel->getProperties() ?: null;\n return $arr;\n\t}", "title": "" }, { "docid": "89c6a2ad2c8e90d02cf848b5801e663d", "score": "0.5678544", "text": "function get_data() {\r\n return $this->unserialized;\r\n }", "title": "" }, { "docid": "b26ad2a9bf86b434abcf6b093f177450", "score": "0.5678148", "text": "abstract protected function getData();", "title": "" }, { "docid": "b26ad2a9bf86b434abcf6b093f177450", "score": "0.5678148", "text": "abstract protected function getData();", "title": "" }, { "docid": "801ba3316137e4a43cafe181a1ab62f1", "score": "0.5670122", "text": "private function getPublicPropertiesWithValues(): array\n {\n try {\n $dynamicProperties = (new \\ReflectionClass($this))->getProperties(\\ReflectionProperty::IS_PUBLIC);\n $objectVars = get_object_vars($this);\n $properties = [];\n foreach ($dynamicProperties as $dynamicProperty) {\n $properties[$dynamicProperty->name] = $objectVars[$dynamicProperty->name];\n }\n\n return $properties;\n } catch (\\Exception $e) {\n $this->logger->error(new \\Exception('BaseObject getPublicProperties failed: ' . $e->getMessage()));\n\n return [];\n }\n }", "title": "" }, { "docid": "d5cc46f71ca20753f62be958baa02611", "score": "0.56652373", "text": "public function &__get($name) {\n\t\ttry {\n\t\t\t$value = parent::__get($name);\n\t\t\treturn $value;\n\n\t\t} catch (MemberAccessException $e) {\n\t\t\tif ($this->hasProtectedReflectionField($name)) { // intentionally not used __isset\n\t\t\t\t$value = $this->$name;\n\t\t\t\treturn $value;\n\t\t\t} else {\n\t\t\t\t$class = get_called_class();\n\t\t\t\tthrow new MemberAccessException($e->getMessage()\n\t\t\t\t\t. \" If you want to use dynamic getter for this property, make sure that property has visibility 'protected'.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "96ff5552021078915e3aa826c8383b3c", "score": "0.5660012", "text": "abstract protected function getProperty($key, $value, $name);", "title": "" }, { "docid": "2cacb2f6666198370c0bca88be983246", "score": "0.56404996", "text": "public function __get($key) {\n switch ($key) {\n case 'contents':\n return $this->contents;\n case 'data':\n return base64_encode($this->contents);\n case 'encoding':\n return $this->encoding;\n case 'mime':\n return $this->mime;\n case 'type':\n return $this->type;\n default:\n throw new Kohana_InvalidProperty_Exception('Unknown property :key', array(':key' => $key));\n }\n }", "title": "" }, { "docid": "7c4ea5be36fc174380e17963280a1179", "score": "0.56272227", "text": "protected function ImportValueFromData_Getter() {\n\n return $this->Form->GetValue($this->Name);\n }", "title": "" }, { "docid": "229d90b97fddb52b8f4d2cbf9cd674ee", "score": "0.561567", "text": "protected function _getProperties(){\r\n $propertyArray = array();\r\n $class=new Zend_Reflection_Class($this);\r\n $properties=$class->getProperties();\r\n foreach ($properties as $property) {\n if($property->isPublic()){\r\n $propertyArray[]=$property->getName();\r\n }\n }\r\n return $propertyArray;\r\n }", "title": "" }, { "docid": "35afb166c3ce75b1d07a9e8909b379cf", "score": "0.5601681", "text": "public function getProperties($className) {}", "title": "" }, { "docid": "cc95eb9e58a2ec0c81ccb5a52eea0807", "score": "0.5600087", "text": "public function __wakeup() {\n // inflate field map\n $this->fm = epManager::instance()->\n getClassMap($this->fm[0])->getField($this->fm[1]);\n }", "title": "" }, { "docid": "1c25a1ea2d1f50b3ee1e2ecb45c6290f", "score": "0.55849624", "text": "public function getProperties(bool $externalProperties = false);", "title": "" }, { "docid": "665ae87bd2e0871894ac5bda30836884", "score": "0.55838126", "text": "function __get($key) {\n\t\treturn $this->data[$key];\n\t}", "title": "" }, { "docid": "8491f10b3218fc29a9355db04b7f7b0a", "score": "0.5581677", "text": "protected function loadProperty()\n\t{\n\t\t/** @global \\CUserTypeManager $USER_FIELD_MANAGER */\n\t\tglobal $USER_FIELD_MANAGER;\n\n\t\tforeach ($this->fields[\"ID\"] as $i => $sectionId)\n\t\t{\n\t\t\t$userFields = $USER_FIELD_MANAGER->getUserFields(\n\t\t\t\t\"IBLOCK_\".$this->fields[\"IBLOCK_ID\"][$i].\"_SECTION\",\n\t\t\t\t$sectionId\n\t\t\t);\n\t\t\tforeach ($userFields as $id => $uf)\n\t\t\t{\n\t\t\t\t//TODO $uf[\"USER_TYPE\"][\"BASE_TYPE\"] == \"enum\"\n\t\t\t\t$propertyCode = $id;\n\t\t\t\t$fieldCode = \"property.\".mb_strtolower(mb_substr($id, 3));\n\t\t\t\t$this->fieldMap[$fieldCode] = $propertyCode;\n\t\t\t\tif (is_array($uf[\"VALUE\"]))\n\t\t\t\t{\n\t\t\t\t\tforeach ($uf[\"VALUE\"] as $value)\n\t\t\t\t\t\t$this->fields[$propertyCode][] = $value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->fields[$propertyCode][] = $uf[\"VALUE\"];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "28c33e024aa2e9b2dba675660a4df465", "score": "0.55796665", "text": "public function __get($name) {\n\t\t\tswitch ($name) {\n\t\t\t\tcase 'creation_date':\n\t\t\t\tcase 'file_name':\n\t\t\t\tcase 'modification_date':\n\t\t\t\tcase 'read_date':\n\t\t\t\tcase 'size':\n\t\t\t\t\treturn $this->parameters[$name];\n\t\t\t\tcase 'inline':\n\t\t\t\t\treturn $this->type;\n\t\t\t\tcase 'type':\n\t\t\t\t\treturn ($this->type) ? 'inline' : 'attachment';\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new \\Leap\\Core\\Throwable\\InvalidProperty\\Exception('Message: Unable to get the specified property. Reason: Property :name is either inaccessible or undefined.', array(':name' => $name));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f9b9527fc3e28fbbfc1214a8c28fba9c", "score": "0.55787385", "text": "function __get($property) {\n if (isset($this::$_propertyList[$property])) {\n return $this->data[$this::$_propertyList[$property]]; // access fields by PHP properties\n } else {\n return $this->$property; // throw the default PHP error\n }\n }", "title": "" }, { "docid": "fe680284ff7dc37305783a1a179680c7", "score": "0.557687", "text": "public function read_meta( &$data ) { }", "title": "" }, { "docid": "0e6cfa65bd07b24955104d8ec8bbf0a3", "score": "0.557643", "text": "protected function extractProperties()\n {\n foreach ($this->refClass->getPropertiesByMatcher(self::$methodAndPropertyMatcher) as $property) {\n $this->properties[$property->getName()] = $this->createSerializerDelegate($property, $property->getName());\n }\n }", "title": "" }, { "docid": "445b6d594e69ddadc2c9e48ba64c2343", "score": "0.5574989", "text": "public function __get($varname) {\r\n if (!static::valid_magic_property($varname)) {\r\n throw new e_developer(\"Invalid \".get_called_class().\" variable $varname\", array($this,$this->data));\r\n }\r\n return $this->data[$varname];\r\n }", "title": "" }, { "docid": "8c9f1b2b377d1011b2a08b699893af36", "score": "0.5569165", "text": "protected function propertyGet($name)\n {\n return $this->data[$name];\n }", "title": "" }, { "docid": "854ee779a55c53bdccc5b2d542c1438c", "score": "0.55610716", "text": "public static function get_properties()\n\t{\n\t//\tStart with the default for all properties\n\t\t$params = parent::get_properties();\n\t//\tSomes specifics for this attr\n\t\t$params['key']['value'] = 'url';\n\t\t$params['key']['readonly'] = true;\n\t\tunset($params['required']);\n\t//\tReturn\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "bc8f9641e5e4244bbf3cbea34fd0e0b5", "score": "0.5560619", "text": "public function getProperties() {\n \t$properties = array();\n\t\tforeach (array_keys($this->_properties) as $property) {\n if (is_array($this->_properties[$property]) \n \t// && $this->getConfig($property, 'type') != 'inline' \n \t&& !in_array($property, $this->_ignoredFields) || in_array($property, array('uid', 'pid', 'sorting'))) {\n if (!$this->resolveAlias($property, true)) {\n \t$properties[] = $property;\n }\n }\n }\n \treturn $properties;\n }", "title": "" }, { "docid": "00884261d78c610af9c3ada942af8e00", "score": "0.5559128", "text": "public function getVisibleProperties();", "title": "" }, { "docid": "22c9618f41e9fb3fb457c80e1fbaadca", "score": "0.5552821", "text": "public function __get($name)\n\t{\n\t\tif (isset($this->_config[$name])) {\n\t\t\tif (!isset($this->_config[$name]['_data'])) {\n\t\t\t\t$this->_config[$name]['_data'] = new SectionProperties($this->_config[$name]);\n\t\t\t}\n\t\t return $this->_config[$name]['_data'];\n\t\t} else {\n\t\t\t$funcName = 'get'.$name;\n\t\t\tif (method_exists($this, $funcName))\n\t\t\t\treturn $this->$funcName();\n\t\t\tthrow new CException(Yii::t('base', 'Configuration section \"{section}\" does not exists', array('{section}' => $name)));\n\t\t}\n\t}", "title": "" }, { "docid": "e1335c27bc28a3f5177f2e698f853afc", "score": "0.55486774", "text": "function get_property($property)\r\n {\r\n if (empty($this->userID)) $this->error('No user is loaded', __LINE__);\r\n if (!isset($this->userData[$property])) $this->error('Unknown property <b>'.$property.'</b>', __LINE__);\r\n return $this->userData[$property];\r\n }", "title": "" }, { "docid": "add0bca775712527983797d7da088381", "score": "0.5545684", "text": "protected function get_data()\n\t{\n\t\treturn unserialize($this->config[$this->key]);\n\t}", "title": "" }, { "docid": "ae86519e58104adb2b46c07fdaac14dc", "score": "0.5544228", "text": "protected function _read() {\n return $this->_readSerialized();\n }", "title": "" }, { "docid": "f7a29d1170b45b2ab44ea603b611f5da", "score": "0.554028", "text": "public function __get($name)\n\t{\n\t\t$getProperty = 'get' . $name;\n\t\tif (in_array($getProperty, $this->properties)) {\n\t\t\treturn $this->$getProperty();\n\t\t} else {\n\t\t\tthrow new Exception('Property ' . $name . ' does not exists.');\n\t\t}\n\t}", "title": "" }, { "docid": "6036bd7144493176b014d7cac37b5dee", "score": "0.5535554", "text": "function __get($prop_name) {\n\t\tif ($this->debug) debug(\"Metodo get general ($prop_name,$prop_value)\");\n\t\treturn $this->$prop_name;\n\t}", "title": "" }, { "docid": "4db113c2caee931a9ef5f5b8fa34c8b6", "score": "0.55345845", "text": "public function __get($key)\n {\n $keys = explode('.', $key);\n\n $value = $this->getData();\n\n // The easiest way to chain the object properties\n foreach ($keys as $key) {\n try {\n $value = $value->{$key};\n } catch (\\Exception $e) {\n $value = '';\n break;\n }\n }\n\n return $value;\n }", "title": "" }, { "docid": "34e8d629b2f8cab6b71be63191cfc28d", "score": "0.55332154", "text": "public function getProperties()\n {\n $this->scan();\n\n $return = array();\n foreach ($this->infos as $info) {\n if ($info['type'] != 'property') {\n continue;\n }\n\n $return[] = $this->getProperty($info['name']);\n }\n\n return $return;\n }", "title": "" }, { "docid": "61c56d461157affdcf9348d85a295ac9", "score": "0.5530691", "text": "#[\\ReturnTypeWillChange]\n public static function getProperties();", "title": "" }, { "docid": "9b43877571a10f702fe9f094e6066bac", "score": "0.5523389", "text": "public function __get($key) {\n if (array_key_exists($key, $this->properties)) {\n return $this->properties[$key];\n }\n else {\n throw new Exception('Property \"'.$key.'\" does not exists in '.basename(__FILE__).' line '.__LINE__);\n }\n }", "title": "" }, { "docid": "521fc5f10e8fc2ef061356e2164564b8", "score": "0.5517043", "text": "public function __get($name)\n\t{\n\t\tif ($this->objectReflection->hasProperty($name) && ($property = $this->objectReflection->getProperty($name)) && $property->isProtected()) {\n\t\t\t$property->setAccessible(TRUE);\n\t\t\treturn $property->getValue($this->object);\n\t\t} else {\n\t\t\treturn $this->object->$name;\n\t\t}\n\t}", "title": "" }, { "docid": "e34ff9ae04fe71d7758e6783231afd32", "score": "0.5516949", "text": "public function populateproperties()\n\t{\n\t\tforeach ($this->properties as $p)\n\t\t{\n\t\t\t$this->$p = $this->obj->$p;\n\t\t}\n\t}", "title": "" }, { "docid": "3abec9d80ccd1073f0c5d054d0d75a15", "score": "0.5505499", "text": "public function _getPropertiesLock();", "title": "" }, { "docid": "c4b7fb82bf748c4a3922b12f24b12abc", "score": "0.55002433", "text": "public function loadProperties($data)\n\t{\n\t\tif (!is_array($data)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$local = array();\n\t\t\n\t\tforeach ($this->_public_fields as $key => $val) {\n\t\t\t\n\t\t\tif (array_key_exists($val, $data)) {\n\t\t\t\t$local[$val] = $data[$val];\n\t\t\t\tunset($data[$val]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tparent::loadProperties($local);\n\t\t\n\t\tif (count($data) > 0) {\n\t\t\trequire_once(dirname(__FILE__) . \"/profile.php\");\n\t\t\t$profile = new onesite_sdk_dao_profile($data);\n\t\t\t$this->profile = $profile;\n\t\t} else {\n\t\t\t$this->profile = null;\n\t\t}\n\t}", "title": "" }, { "docid": "e47d988e338ab5c2c9f8114993857029", "score": "0.5497209", "text": "public function getProperties()\n\t{\n\n\t\tif (!$this->objectId) $this->objectId = \"0\";\n\t\t\n\t\t$sql = \"SELECT data FROM docmgr.dm_properties WHERE object_id='\".$this->objectId.\"'\";\n\t\t$info = $this->DB->single($sql);\n\n\t\t$this->PROTO->add(\"properties\",unserialize($info[\"data\"]));\n\n\t\tif ($this->DB->error()) $this->throwError($this->DB->error());\n\t\n\t\t//return for internal calls\n\t\treturn unserialize($info[\"data\"]);\n\t\n\t}", "title": "" }, { "docid": "df6f4d8c43e1a8645f9bf35a26e65b7b", "score": "0.5496641", "text": "public function getJsonProperties();", "title": "" }, { "docid": "57b8e1690a5ca644e2597c1fb1880622", "score": "0.54829854", "text": "public function __get($key)\n\t{\n\t\t// Localize the request and validate scope.\n\t\t$local = $this->_isPropertyPublic($key);\n\t\n\t\tif (array_key_exists($local, $this->_properties)) {\n\t\t\treturn $this->_properties[$local];\n\t\t} else {\n\t\t\treturn null;\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "dad284f2183172b072c595b7700fdf9c", "score": "0.54763204", "text": "public function __get($key)\n {\n if (array_key_exists($key, $this->_data)) {\n return $this->_data[$key];\n } else {\n throw $this->_exception('ERR_NO_SUCH_PROPERTY', array(\n 'class' => get_class($this),\n 'property' => $key,\n 'keys' => array_keys($this->_data),\n ));\n }\n }", "title": "" }, { "docid": "eb4223a8aa87e9b1a0ca8735cc8ff8ca", "score": "0.5474755", "text": "abstract public function get_data();", "title": "" }, { "docid": "744e61790f02ccc7b55ee521fce2940a", "score": "0.54702055", "text": "abstract public function getAlterableData();", "title": "" }, { "docid": "cefe587521d97495efab906ee95a5e2f", "score": "0.54681665", "text": "public function __get($name)\n {\n if (in_array($name, (array) $this->readOnlyVars)) {\n return $this->$name;\n }\n return parent::__get($name);\n }", "title": "" }, { "docid": "7239c0b0289995eda4cc3d4493ed3e2f", "score": "0.54597956", "text": "public function epGetVars() {\n \n // get vars from the wrapped object\n $vars = get_object_vars($this->ep_object);\n \n // append oid to array\n $vars['oid'] = $this->ep_object_id;\n \n // also collect protected/private members (accessible via public g/setters)\n\t\tif ($this->ep_cm) {\n\t\t\tforeach ($this->ep_cm->getAllFields() as $name => $field) {\n\t\t\t\t// if field is not in the get_object_vars result\n\t\t\t\tif (!isset($vars[$name])) {\n\t\t\t\t\t// then either private or protected\n\t\t\t\t\t$vars[$name] = $this->epObjectGetVar($name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $vars;\n }", "title": "" }, { "docid": "cb19201b4edf3f6e457ac3dc7d281c98", "score": "0.54533833", "text": "public function get_data()\n {\n // Unused.\n }", "title": "" }, { "docid": "068d8fc4d677c112061493af5ff30d4d", "score": "0.54339683", "text": "public function __get($name){\n\t\t$ret = @$this->properties->{$name};\n\t\treturn $ret ?htmlentities($ret) :\"<i>[empty]</i>\";\n\t}", "title": "" }, { "docid": "6822986da5a811e7dd305475315c25ab", "score": "0.54275674", "text": "public function __get($name)\n\t{\n\t\t$access = array_unique(array_merge(explode(',', static::GETACCESS), explode(',', self::GETACCESS)));\n\t\t$access = array_map('trim', $access);\n\t\tif (in_array($name, $access))\n\t\t{\n\t\t\treturn $this->{$name};\n\t\t}\n\t\telseif (array_key_exists($name, $this->attach))\n\t\t{\n\t\t\treturn $this->attach[$name];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new \\Exception(\"Cannot grant accessor \". get_class() .\"(\". get_called_class() .\"->{$name})\");\n\t\t}\n\t}", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.54178965", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.54178965", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.54178965", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.54178965", "text": "public function listInvalidProperties();", "title": "" }, { "docid": "7fed39667d839c08102ac22f697eafc2", "score": "0.54178965", "text": "public function listInvalidProperties();", "title": "" } ]
b2bba69a3ba55252547f3cd0cca90c8f
Create a resized version of this image and store it in the given destination filename.
[ { "docid": "4ce795f18e8a833f6b9d8367f76be42b", "score": "0.6547354", "text": "private function resizeTo($width, $height, $destination) {\n\t\t\tif (substr($this->filename, -3) == \"png\")\n\t\t\t\t$image = imagecreatefrompng($this->getPath());\n\t\t\telse\n\t\t\t\t$image = imagecreatefromjpeg($this->getPath());\n\n\t\t\t$orig_w = imagesx($image);\n\t\t\t$orig_h = imagesy($image);\n\n\t\t\t// Use the full source width, and scale\n\t\t\t// the height proportionally\n\t\t\t$src_w = $orig_w;\n\t\t\t$src_h = $height / ($width / $src_w);\n\n\t\t\t// If the resulting height is larger\n\t\t\t// than the source height, use the full\n\t\t\t// height and scale the width instead.\n\t\t\tif ($src_h > $orig_h) {\n\t\t\t\t$src_h = $orig_h;\n\t\t\t\t$src_w = $width / ($height / $src_h);\n\t\t\t}\n\n\t\t\t$result = imagecreatetruecolor($width, $height);\n\t\t\t$src_x = ($orig_w - $src_w) / 2;\n\t\t\t$src_y = ($orig_h - $src_h) / 2;\n\t\t\timagecopyresampled($result, $image, 0, 0, $src_x, $src_y, $width, $height, $src_w, $src_h);\n\t\t\timagejpeg($result, $destination, 90);\n\t\t\timagedestroy($result);\n\t\t\timagedestroy($image);\n\t\t}", "title": "" } ]
[ { "docid": "81a75f52c40d0dc43af405ca18854555", "score": "0.72465795", "text": "public function file_resized($filename);", "title": "" }, { "docid": "13f215b51e072bd63d39e58bef03286b", "score": "0.6984842", "text": "public function createResizeImage()\n {\n $this->getFileExtension();\n $this->getDimensions();\n $this->createImageVariable();\n $this->createImage();\n }", "title": "" }, { "docid": "3c84067befc943a2d37901a9ee9216ad", "score": "0.69689673", "text": "public static function resizeImage($filename){\r\n\t\t$original_info = getimagesize($filename);\r\n\t\t$original_w = $original_info[0];\r\n\t\t$original_h = $original_info[1];\r\n\t\t$original_img = imagecreatefromjpg($filename);\r\n\t\t$thumb_w = 100;\r\n\t\t$thumb_h = 100;\r\n\t\t$thumb_img = imagecreatetruecolor($thumb_w, $thumb_h);\r\n\t\timagecopyresampled($thumb_img, $original_img,\r\n\t\t 0, 0,\r\n\t\t 0, 0,\r\n\t\t $thumb_w, $thumb_h,\r\n\t\t $original_w, $original_h);\r\n\t\timagejpeg($thumb_img, $thumb_filename);\r\n\r\n\t\t//TODO CHECK THIS:\r\n\t\t//imagepng($thumb_img, $thumb_filename);\r\n\t\timagedestroy($thumb_img);\r\n\t\timagedestroy($original_img);\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "2833c4e3b4823f74b4e74f1038c0be25", "score": "0.6755184", "text": "public static function resizeImage($sourceFileName, $sourceFilePath, $destinationPath)\n {\n $fileHelper = new FileHelper();\n $fileHelper->sourceFilename = $sourceFileName;\n $fileHelper->sourceFilepath = $sourceFilePath;\n $fileHelper->destinationPath = $destinationPath;\n $fileHelper->resizeImage('ticker');\n }", "title": "" }, { "docid": "ba785f5890b9973920fa2000af256a62", "score": "0.6713267", "text": "protected function createImage()\n {\n $resource = imagecreatetruecolor($this->newWidth, $this->newHeight);\n\n imagecopyresampled($resource, $this->image, 0, 0, 0, 0,\n $this->newWidth, $this->newHeight, $this->oldWidth, $this->oldHeight);\n imagejpeg($resource, $this->originalFilePath, 80);\n }", "title": "" }, { "docid": "edb65e4eaffc67587979b5ef8640c130", "score": "0.6620785", "text": "function create_thumbnail($newfile,$tmpname,$width)\r\n{\r\n $image = new Image();\r\n $image->load($tmpname);\r\n $image->resizeToWidth($width);\r\n $image->save($newfile);\r\n}", "title": "" }, { "docid": "1e99d9d6c7df016cb2b0390fdd741435", "score": "0.65652454", "text": "public function resize(){\n\t\t$imgSplit = explode(\"/\",$this->image);\n\t\t$srcName = end($imgSplit);\n\t\t//$srcUrl = str_ireplace($srcName, \"\", $this->image);\n\t\t$srcUrl = str_ireplace($srcName, \"\", $this->image);\n\t\t\n\t\t\n\t\t//$srcPath = $_SERVER['DOCUMENT_ROOT'] .\"/resize/\". str_ireplace($srcName, \"\", $this->image);\n\t\t//$srcPath = $this->image;\n\t\t$srcPath = $srcUrl;\n\t\t// Get extension\n \n\t\t$split = explode(\".\",$srcName);\n\t\t$ext = strtolower($split[1]);\n\n\t\t// Misc variables\n\t\t$rszUrl = $srcUrl . $this->folder;\n\t\t$rszName = $this->prefix . $srcName;\n\t\t$rszPath = $this->folder;\n\t\t$rszQuality = $this->quality;\n\t\t\n\t\t// If save path doesn't exist, create it\n\t\t//echo \"<br />resize Path : $rszPath <br />\";\n\t\t//echo \"<br />and :\".$targetImage;\n \n\t\tif (!file_exists($rszPath)){ mkdir($rszPath, 0777);\t}\n\t\t\t\n\t\t// If the resized img doesn't exist, create it\n\t\t\n\t\t//if(file_exists(\"$rszPath/$rszName\") || !file_exists(\"$rszPath/$rszName\")){ \n\t\t\t\n\t\t\tswitch($ext){\n\t\t\t\tcase('jpg'): $srcImage = imagecreatefromjpeg(\"$srcPath$srcName\"); break;\n\t\t\t\tcase('jpeg'): $srcImage = imagecreatefromjpeg(\"$srcPath$srcName\"); break;\n\t\t\t\tcase('png'): $srcImage = imagecreatefrompng(\"$srcPath$srcName\"); if($rszQuality==10){ $rszQuality=9; } break;\n\t\t\t\tcase('gif'): $srcImage = imagecreatefromgif(\"$srcPath$srcName\"); break;\n\t\t\t}\n\t\t\t\n\t\t\t$srcWidth = imagesx($srcImage);\n\t\t\t$srcHeight = imagesy($srcImage);\n\t\t\t\n\t\t\t// Determine specs based on type\n\t\t\t$rszWidth = $this->width;\n\t\t\t$rszHeight = $this->height;\n\t\t\t/*if(strtolower($this->type)==\"width\"){\n\t\t\t\t$rszWidth = $this->max;\n\t\t\t\t$rszHeight = $srcHeight/($srcWidth/$rszWidth);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$rszHeight = $this->max;\n\t\t\t\t$rszWidth = $srcWidth/($srcHeight/$rszHeight);\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\t// Determine specs if crop applied\n\t\t\t\n\t\t\t$srcX = 0; $srcY = 0;\n\t\t\t$srcNewWidth = $srcWidth; $srcNewHeight = $srcHeight;\n\t\t\t$dest = $srcImage;\n\t\t\t\n\t\t\t// Square crop\n\t\t\t\n\t\t\tif($this->square==true){\n\t\t\t\t$rszWidth = $this->width;\n\t\t\t\t$rszHeight = $this->height;\n\t\t\t\t\n\t\t\t\tif($srcHeight>$srcWidth){\n\t\t\t\t\t$srcX = 0;\n\t\t\t\t\t$srcY = floor(($srcHeight-$srcWidth)/2);\n\t\t\t\t\t$srcNewHeight = $srcWidth;\n\t\t\t\t\t$srcNewWidth = $srcWidth;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($srcWidth>$srcHeight){\n\t\t\t\t\t$srcX = floor(($srcWidth-$srcHeight)/2);\n\t\t\t\t\t$srcY = 0;\n\t\t\t\t\t$srcNewHeight = $srcHeight;\n\t\t\t\t\t$srcNewWidth = $srcHeight;\n\t\t\t\t}\n\t\t\t\t// Create new image with a new width and height.\n\t\t\t\t$dest = imagecreatetruecolor($srcNewWidth, $srcNewHeight);\n\t\t\t\t$this->resize_png($this->image,$srcImage,$dest);\n\t\t\t\t// Copy new image to memory after cropping.\n\t\t\t\timagecopy($dest, $srcImage, 0, 0, $srcX, $srcY, $srcNewWidth, $srcNewHeight);\n\t\t\t}\n\t\t\t\t\n\t\t\t$targetImage = imagecreatetruecolor($rszWidth,$rszHeight);\n\t\t\t\n\t\t\t/* starts */\n\t\t\tif($ext == 'png'){\n\t\t\t\t\n\t\t\t\t$this->resize_png($this->image,$srcImage,$targetImage);\n\t\t\t\t// Save file, quality=9, Add filters... although sometimes better without.\n\t\t\t\t//imagepng( $d, substr($rszUrl . $rszName,1), 9, PNG_ALL_FILTERS);\n\t\t\t}\n\t\t\t/* ends */\n\t\t\t\n\t\t\t\t\n\t\t\timagecopyresampled($targetImage,$dest,0,0,0,0,$rszWidth,$rszHeight,$srcNewWidth,$srcNewHeight);\n\t\t\t\n\t\t\tswitch($ext){\n\t\t\t\tcase('jpg'): imagejpeg($targetImage, \"$rszPath/$rszName\", $rszQuality * 10); break;\n\t\t\t\tcase('jpeg'): imagejpeg($targetImage, \"$rszPath/$rszName\", $rszQuality * 10);\tbreak;\n\t\t\t\tcase('png'): imagepng($targetImage, \"$rszPath/$rszName\", $rszQuality); break;\n\t\t\t\tcase('gif'): imagegif($targetImage, \"$rszPath/$rszName\"); break;\n\t\t\t}\n\t\t\t\n\t\t//}\n\t\t\n\t\t// Return the resized image\n\t\t\n\t\treturn($rszUrl . $rszName);\n\t\t\n\t\t// Clear temps\n\t\timagedestroy($dest);\n\t\timagedestroy($targetImage);\n\t\t\n\t}", "title": "" }, { "docid": "38964900350b08f1387d564f107781c5", "score": "0.6556906", "text": "function resizeToFile ($sourcefile, $dest_x, $dest_y, $targetfile, $jpegqual) {\r\n /* Get the dimensions of the source picture */\r\n $picsize = getimagesize(\"$sourcefile\");\r\n $source_x = $picsize[0];\r\n $source_y = $picsize[1];\r\n $source_id = imageCreateFromJPEG(\"$sourcefile\");\r\n\r\n /* Create a new image object (not neccessarily true colour) */\r\n $target_id = imagecreatetruecolor($dest_x, $dest_y);\r\n\r\n /* Resize the original picture and copy it into the just created image\r\n object. Because of the lack of space I had to wrap the parameters to\r\n several lines. I recommend putting them in one line in order keep your\r\n code clean and readable */\r\n $target_pic = imagecopyresampled($target_id, $source_id, 0, 0, 0, 0, $dest_x, $dest_y, $source_x, $source_y);\r\n\r\n /* Create a jpeg with the quality of \"$jpegqual\" out of the image object \"$target_pic\".\r\n This will be saved as $targetfile */\r\n imagejpeg($target_id, \"$targetfile\", $jpegqual);\r\n\r\n return true;\r\n}", "title": "" }, { "docid": "21ee53da3714aa502a0e9e5b0d69f58f", "score": "0.65340966", "text": "public function createThumbnail($image, $destination, $maxWidth, $maxHeight, $keepProportions = false, $quality = 90);", "title": "" }, { "docid": "f5ec28348ea82a8cd45b8fe46a277723", "score": "0.65339994", "text": "function _crushAndSave($file, $size, $newPath) {\r\n\tif( false !== strpos($file, '.png') ) {\r\n\t\t$quality = -1;\r\n\t}\r\n\telse {\r\n\t\t$quality = 93;\r\n\t}\r\n\t$image = WideImage::load($file)\r\n\t\t->resize($size['w'], $size['h'])\r\n\t\t->saveToFile($newPath, $quality);\r\n\t\r\n\t// dispose\r\n\tunset($image);\r\n}", "title": "" }, { "docid": "b4b84710eafa6ce126d9d2989d343d30", "score": "0.65090865", "text": "public function resize($width, $height, $new_name) {\n\t\t// Abort if the import wasn't done.\n\t\tif($this->import == FALSE)\n\t\t\treturn FALSE;\n\t\n\t\t$results['file_name'] = \"{$new_name}.{$this->output_format}\";\n\t\t$results['file_ext'] = $this->output_format;\n\t\t$results['encoded_string'] = '';\n\t\t$results['file_path'] = $this->import['file_path'];\n\t\t$results['full_path'] = $this->import['file_path'].$results['file_name'];\n\t\t$results['raw_name'] = \"{$new_name}\";\n\t\t\t\t\t\n\t\tif($this->use_library == \"magickwand\") {\n\t\t\t$copy = $this->imagick_import;\n\n\t\t\t// Strip EXIF data.\n\t\t\t$copy->stripImage();\n\t\t\t$copy->setImageFormat( $this->output_format );\n\t\t\t$copy->setImageOpacity(1.0);\n\t \t$copy->resizeImage($width, $height, imagick::FILTER_CATROM, 0.9, true);\n\t\t\t$copy->writeImage($results['full_path']);\t\t\n\n\t\t\t// Generate the encoded string without writing the file.\n\t\t\t$results['encoded_string'] = $this->capture_image($copy);\n\t\t\t\n\t\t} else if($this->use_library == \"gd\") {\n\t\t\t\n\t\t\t$our_ratio = $width/$height;\n\t\t\t\n\t\t\t// Extract the width and heightfrom the new image.\n\t\t\tlist($curr_width, $curr_height) = getimagesize($this->import['full_path']);\n\n\t\t\t// Calculate the ratio of the new image.\n \t\t$curr_ratio = $curr_width / $curr_height;\n\t\t\t\n \tif ($curr_ratio < $our_ratio) {\n\t\t\t\t// Dimensions for the thumbnail. Height is max, and relative width calculated.\n\t\t\t\t$new_height = $height;\n\t\t\t\t$new_width = $height*$our_ratio;\n \t\t} else {\n\t\t\t\t// In this case the ratio is greater (in favour of the width) \n\t\t\t\t$new_width = $width;\n\t\t\t\t$new_height = $width/$our_ratio;\n\t\t\t}\t\n\n \t\t\t$new_image = imagecreatetruecolor($new_width, $new_height);\n \t\t\timagecopyresampled($new_image, $this->gd_import, 0, 0, 0, 0, $new_width, $new_height, $curr_width, $curr_height);\n \t\t\t\n \t\t\t// Generate the encoded string without writing the file.\n\t\t\t$results['encoded_string'] = $this->capture_image($new_image);\n\t\t\t\n\t\t}\n\t\t\t\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "fc2a8ade2d4e8af35c0e984b4596a540", "score": "0.65044075", "text": "public function resizeImage()\n {\n // check file extension\n switch ($this->imageMimetype) {\n case'image/png':\n $img = imagecreatefrompng($this->sourceFile);\n break;\n case'image/jpeg':\n $img = imagecreatefromjpeg($this->sourceFile);\n break;\n case'image/gif':\n $img = imagecreatefromgif($this->sourceFile);\n break;\n default:\n return 'Unsupported format';\n }\n\n $width = imagesx($img);\n $height = imagesy($img);\n\n if ($width > $this->maxWidth || $height > $this->maxHeight) {\n // recalc image size based on this->maxWidth/this->maxHeight\n if ($width > $height) {\n if ($width < $this->maxWidth) {\n $new_width = $width;\n } else {\n $new_width = $this->maxWidth;\n $divisor = $width / $new_width;\n $new_height = floor($height / $divisor);\n }\n } elseif ($height < $this->maxHeight) {\n $new_height = $height;\n } else {\n $new_height = $this->maxHeight;\n $divisor = $height / $new_height;\n $new_width = floor($width / $divisor);\n }\n\n // Create a new temporary image.\n $tmpimg = imagecreatetruecolor($new_width, $new_height);\n imagealphablending($tmpimg, false);\n imagesavealpha($tmpimg, true);\n\n // Copy and resize old image into new image.\n imagecopyresampled($tmpimg, $img, 0, 0, 0, 0, $new_width, $new_height, $width, $height);\n\n unlink($this->endFile);\n //compressing the file\n switch ($this->imageMimetype) {\n case'image/png':\n imagepng($tmpimg, $this->endFile, 0);\n break;\n case'image/jpeg':\n imagejpeg($tmpimg, $this->endFile, 100);\n break;\n case'image/gif':\n imagegif($tmpimg, $this->endFile);\n break;\n }\n\n // release the memory\n imagedestroy($tmpimg);\n } else {\n return 'copy';\n }\n imagedestroy($img);\n\n return true;\n }", "title": "" }, { "docid": "de1d9bebdb1516d987628d679baec057", "score": "0.64756703", "text": "static function generateThumb($imagePath, $saveToDestination = '_thumb', $newWidth=100) {\n /* read the source image */\n $source_image = imagecreatefromjpeg($imagePath);\n $width = imagesx($source_image);\n $height = imagesy($source_image);\n /* find the \"desired height\" of this thumbnail, relative to the desired width */\n $desired_height = floor($height*($newWidth/$width));\n /* create a new, \"virtual\" image */\n $virtual_image = imagecreatetruecolor($newWidth,$desired_height);\n /* copy source image at a resized size */\n imagecopyresized($virtual_image,$source_image,0,0,0,0,$newWidth,$desired_height,$width,$height);\n /* create the physical thumbnail image to its destination */\n imagejpeg($virtual_image, $saveToDestination);\n }", "title": "" }, { "docid": "d5d4a84873cd597a3a2f7175d7bdfd7e", "score": "0.64306307", "text": "function resize_image($file_name, $path, $size) {\n $full_path = $path.$file_name;\n $manipulator = new ImageManipulator($full_path);\n switch($size) {\n case \"large\":\n $newImage = $manipulator->resample(1200, 1200);\n break;\n case \"medium\":\n $newImage = $manipulator->resample(800, 800);\n break;\n case \"small\":\n $newImage = $manipulator->resample(400, 400);\n break;\n case \"thumbnail\":\n $newImage = $manipulator->resample(200, 200);\n break;\n }\n $manipulator->save($_SERVER[\"DOCUMENT_ROOT\"].'/my_website/uploaded_files/'.$size.\"/\".$file_name);\n}", "title": "" }, { "docid": "1f4022a15c38ae42a1aa124332425a09", "score": "0.63965625", "text": "public function create_image($width, $height, $destination, $filename, $file)\n {\n $background = Image::canvas($width, $height);\n\n // read image file and resize it to 200x200\n // but keep aspect-ratio and do not size up,\n // so smaller sizes don't stretch\n $image = Image::make($file)->resize($width, $height, function ($c) {\n $c->aspectRatio();\n $c->upsize();\n });\n\n // insert resized image centered into background\n $background->insert($image, 'center');\n\n // save or do whatever you like\n $background->save($destination.'/'.$filename, 100);\n return true;\n }", "title": "" }, { "docid": "9958749afacffe04d314560cb06c9f54", "score": "0.6373409", "text": "public function createThumb($width, $height, $destination, $newimgpath){\n\n\t\t//Resizing and Preserving Aspect Ratio\n\t\t$thumb = Image::getImagine()->open($destination)->thumbnail(new Box($width, $height))->save($newimgpath , ['quality' => 90]);\n\t\t// only thumb\n\t\t//$thumb = Image::thumbnail( $destination, $width, $height)->save(Yii::getAlias($newimgpath), ['quality' => 80]);\n\t\t\n\t\tif(!$thumb)\n\t\t\techo \"error\";\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "f6e465719f98cefd23b50e415009e710", "score": "0.636698", "text": "function createResizedImage($inFile, $outFile, $newheight='160', $newwidth='160') {\n $thumb = @imagecreatetruecolor($newwidth, $newheight);\n $ext = strtolower(substr($inFile, -3)); # load lowercase version extension from path/filename\n if ($ext == \"jpg\") { $source = imagecreatefromjpeg($inFile);\n } elseif ($ext == \"png\") { $source = imagecreatefrompng($inFile);\n } elseif ($ext == \"gif\") { $source = imagecreatefromgif($inFile); }\n list($width, $height) = getimagesize($inFile); // Get current image sizes\n imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);\n if ($ext == \"jpg\") { imagejpeg($thumb, $outFile);\n } elseif ($ext == \"png\") { imagepng($thumb, $outFile);\n } elseif ($ext == \"gif\") { imagegif($thumb, $outFile); }\n return true;\n}", "title": "" }, { "docid": "4d217b165d5eacee72c9e11c184101e3", "score": "0.6354367", "text": "function createThumbnail($file,$file_name,$dir,$width_dest,$height_dest)\r\n\t{\r\n\t\t$img = imagecreatefromjpeg($file);\r\n\t\t\t$width = imagesx($img);\r\n\t\t\t$height = imagesy($img);\r\n\t\t\tif (!$width || !$height) {\r\n\t\t\t\techo \"ERROR:Invalid width or height\";\r\n\t\t\t\texit(0);\r\n\t\t\t}\r\n\t\t\t// Build the thumbnail\r\n\t\t\t$target_width = $width_dest;\r\n\t\t\t$target_height = $height_dest;\r\n\t\t\t$target_ratio = $target_width / $target_height;\r\n\t\t\t$img_ratio = $width / $height;\r\n\t\t\tif ($target_ratio > $img_ratio) {\r\n\t\t\t\t$new_height = $target_height;\r\n\t\t\t\t$new_width = $img_ratio * $target_height;\r\n\t\t\t} else {\r\n\t\t\t\t$new_height = $target_width / $img_ratio;\r\n\t\t\t\t$new_width = $target_width;\r\n\t\t\t}\r\n\t\t\tif ($new_height > $target_height) {\r\n\t\t\t\t$new_height = $target_height;\r\n\t\t\t}\r\n\t\t\tif ($new_width > $target_width) {\r\n\t\t\t\t$new_height = $target_width;\r\n\t\t\t}\r\n\t\t\t$new_img = ImageCreateTrueColor($target_width,$target_height);\r\n\t\t\tif (!@imagefilledrectangle($new_img, 0, 0, $target_width-1, $target_height-1, 0)) {\t// Fill the image black\r\n\t\t\t\techo \"ERROR:Could not fill new image\";\r\n\t\t\t\texit(0);\r\n\t\t\t}\r\n\t\t\tif (!@imagecopyresampled($new_img, $img, ($target_width-$new_width)/2, ($target_height-$new_height)/2, 0, 0, $new_width, $new_height, $width, $height)) {\r\n\t\t\t\techo \"ERROR:Could not resize image\";\r\n\t\t\t\texit(0);\r\n\t\t\t}\r\n\t\t\t$img_mini_dir = $dir; // mini thumbnail floder\r\n\t\t\tif(!is_dir($img_mini_dir)) {\r\n\t\t\t\tmkdir($img_mini_dir,0777);\r\n\t\t\t}\r\n\t\t\timagejpeg($new_img,$img_mini_dir.$file_name,100); // save the mini thumbnail\r\n\t}", "title": "" }, { "docid": "933b63e464011642d9103bdfc8d9a23b", "score": "0.63455576", "text": "function resizeImage ( ) {/* Contructor */}", "title": "" }, { "docid": "34366af03f275ab97f455d002a329886", "score": "0.6338639", "text": "public function createThumbnail($image_name, $new_width, $new_height, $uploadDir, $moveToDir) {\n $path = $uploadDir . '/' . $image_name;\n\n $mime = getimagesize($path);\n\n if ($mime['mime'] == 'image/png') {\n $src_img = imagecreatefrompng($path);\n }\n if ($mime['mime'] == 'image/jpg') {\n $src_img = imagecreatefromjpeg($path);\n }\n if ($mime['mime'] == 'image/jpeg') {\n $src_img = imagecreatefromjpeg($path);\n }\n if ($mime['mime'] == 'image/pjpeg') {\n $src_img = imagecreatefromjpeg($path);\n }\n\n $old_x = imageSX($src_img);\n $old_y = imageSY($src_img);\n\n if ($old_x > $old_y) {\n $thumb_w = $new_width;\n $thumb_h = $old_y * ($new_height / $old_x);\n }\n\n if ($old_x < $old_y) {\n $thumb_w = $old_x * ($new_width / $old_y);\n $thumb_h = $new_height;\n }\n\n if ($old_x == $old_y) {\n $thumb_w = $new_width;\n $thumb_h = $new_height;\n }\n\n $thumb_w = $new_width;\n $thumb_h = $new_height;\n \n $dst_img = ImageCreateTrueColor($thumb_w, $thumb_h);\n\n imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $thumb_w, $thumb_h, $old_x, $old_y);\n\n\n // New save location\n $new_thumb_loc = $moveToDir . $image_name;\n\n if ($mime['mime'] == 'image/png') {\n $result = imagepng($dst_img, $new_thumb_loc, 8);\n }\n if ($mime['mime'] == 'image/jpg') {\n $result = imagejpeg($dst_img, $new_thumb_loc, 80);\n }\n if ($mime['mime'] == 'image/jpeg') {\n $result = imagejpeg($dst_img, $new_thumb_loc, 80);\n }\n if ($mime['mime'] == 'image/pjpeg') {\n $result = imagejpeg($dst_img, $new_thumb_loc, 80);\n }\n\n imagedestroy($dst_img);\n imagedestroy($src_img);\n\n return $result;\n }", "title": "" }, { "docid": "f3d88e2bfb2f0a1620ebc88d1cf87d82", "score": "0.6307867", "text": "function create_resized_image($original_file,$destination_file,$resized_width,$resized_height)\n{\n \n // Selvitetaan kuvan koko ja tyyppi\n list($original_width, $original_height, $type) = getimagesize($original_file);\n \n // Tarkistetaan tiedoston tyyppi\n if($type == 1) // GIF\n {\n $original_image = imagecreatefromgif($original_file);\n // Lapinakyvyys -> valkoinen\n $white = imagecolorallocate($original_image, 255, 255, 255);\n $transparent = imagecolortransparent($original_image, $white);\n }\n elseif($type == 2) // JPEG\n {\n $original_image = imagecreatefromjpeg($original_file);\n }\n elseif($type == 3) // PNG\n {\n $original_image = imagecreatefrompng($original_file);\n }\n else // Tiedostomuoto ei ole tuettu, palauttaa FALSE\n {\n $type = FALSE;\n }\n if($type)\n {\n // Lasketaan kuvalle uusi koko siten, etta kuvasuhde sailyy\n $new_w = $original_width/$resized_width; // Kuvasuhde: leveys\n $new_h = $original_height/$resized_height; // Kuvasuhde: korkeus\n if($new_w > $new_h || $new_w == $new_h)\n {\n if($new_w < 1)\n {\n // Jos alkuperainen kuva on pienempi kuin luotava, luodaan alkuperaisen kokoinen kuva\n $new_w = 1;\n }\n // Kaytetaan sita suhdetta, jolla tulee max. asetettu leveys, korkeus on alle max.\n $new_width = $original_width / $new_w;\n $new_height = $original_height / $new_w;\n }\n elseif($new_w < $new_h)\n {\n if($new_h < 1)\n {\n // Jos alkuperainen kuva on pienempi kuin luotava, luodaan alkuperaisen kokoinen kuva\n $new_h = 1;\n }\n // Kaytetaan sita suhdetta, jolla tulee max. asetettu korkeus, leveys on alle max.\n $new_width = $original_width / $new_h;\n $new_height = $original_height / $new_h;\n }\n // Luodaan kuva, joka on maaratyn kokoinen\n $image = imagecreatetruecolor($new_width, $new_height);\n // Resample, luo uuden kuvan tiedostoon\n imagecopyresampled($image, $original_image, 0, 0, 0, 0, $new_width, $new_height, $original_width, $original_height);\n \n // Tallennetaan uusi kuva maariteltyyn tiedostoon ja annetaan sopiva tiedostopaate\n if($type == 1) // GIF\n {\n imagegif($image, $destination_file);\n }\n elseif($type == 2) // JPEG\n {\n imagejpeg($image, $destination_file);\n }\n elseif($type == 3) // PNG\n {\n imagepng($image, $destination_file);\n }\n }\n // Poistetaan kuva muistista, ei tuhoa alkuperaista tiedostoa!\n imagedestroy($image);\n // Palauttaa tiedostotyypin onnistuessaan, FALSE jos ei onnistu\n return $type;\n }", "title": "" }, { "docid": "c2b3161753802b7aee46d4eef3817417", "score": "0.6284878", "text": "public function create($destination, $quality = 100) {\n if ($this->image != \"\") {\n $extension = substr($destination, -3, 3);\n\n switch ($extension) {\n case \"gif\" :\n imagegif($this->image, $destination, $quality);\n break;\n case \"png\" :\n $quality = ceil($quality / 10) - 1;\n imagepng($this->image, $destination, $quality);\n break;\n default :\n imagejpeg($this->image, $destination, $quality);\n break;\n }\n imagedestroy($this->image);\n }\n }", "title": "" }, { "docid": "4dc3238876fa691a8dbbfcd2f979c56a", "score": "0.6260731", "text": "private function createImage(): void {\n\t\tswitch ($this->type) {\n\t\t\tcase 'image/jpeg':\n\t\t\t\t$src = imagecreatefromjpeg($this->originalFile);\n\n\t\t\t\tbreak;\n\t\t\tcase 'image/gif':\n\t\t\t\t$src = imagecreatefromgif($this->originalFile);\n\n\t\t\t\tbreak;\n\t\t\tcase 'image/png':\n\t\t\t\t$src = imagecreatefrompng($this->originalFile);\n\n\t\t\t\tbreak;\n\t\t\tcase 'image/webp':\n\t\t\t\t$src = imagecreatefromwebp($this->originalFile);\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$src = false;\n\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (!$src) {\n\t\t\treturn;\n\t\t}\n\n\t\t$dest = imagecreatetruecolor($this->width, $this->height);\n\n\t\timagealphablending($dest, false);\n\t\timagesavealpha($dest, true);\n\t\timagecopyresampled(\n\t\t\t$dest,\n\t\t\t$src,\n\t\t\t0,\n\t\t\t0,\n\t\t\t$this->cropX,\n\t\t\t$this->cropY,\n\t\t\t$this->width,\n\t\t\t$this->height,\n\t\t\t(int) round($this->originalWidth - (2 * $this->cropX)),\n\t\t\t(int) round($this->originalHeight - (2 * $this->cropY))\n\t\t);\n\n\t\tDebug::log($this, 'Saving \"' . $this->fileFullPath . '\"');\n\n\t\t// Create cache directory, if not existing.\n\t\tFileSystem::makeDir(AM_BASE_DIR . Cache::DIR_IMAGES);\n\n\t\tswitch ($this->type) {\n\t\t\tcase 'image/jpeg':\n\t\t\t\timagejpeg($dest, $this->fileFullPath, AM_IMG_JPG_QUALITY);\n\n\t\t\t\tbreak;\n\t\t\tcase 'image/gif':\n\t\t\t\timagegif($dest, $this->fileFullPath);\n\n\t\t\t\tbreak;\n\t\t\tcase 'image/png':\n\t\t\t\timagepng($dest, $this->fileFullPath);\n\n\t\t\t\tbreak;\n\t\t\tcase 'image/webp':\n\t\t\t\timagewebp($dest, $this->fileFullPath);\n\n\t\t\t\tbreak;\n\t\t}\n\n\t\tchmod($this->fileFullPath, AM_PERM_FILE);\n\t}", "title": "" }, { "docid": "9d2240729d93b22385c630eeee0083a7", "score": "0.6255353", "text": "function imageResize ($source, $destination, $width, $height) {\n\n $ext = explode(\".\", $source);\n $ext = end($ext);\n $ext = strtolower($ext);\n $image = \"\";\n\n if ($ext == \"jpg\" || $ext == \"jpeg\")\n $image = imagecreatefromjpeg($source);\n if ($ext==\"png\")\n $image = imagecreatefrompng($source);\n if ($ext==\"bmp\")\n $image = imagecreatefrombmp($source);\n if ($ext==\"gif\")\n $image = imagecreatefromgif($source);\n\n $tmp = imagecreatetruecolor($width, $height);\n\n imagecopyresized($tmp, $image, 0, 0, 0, 0, $width, $height, imagesx($image), imagesy($image));\n\n imagejpeg($tmp, $destination);\n}", "title": "" }, { "docid": "1a20ec7bf1ed1c40011da5b4db3b94f0", "score": "0.62496775", "text": "function SERVICE_RESIZE_IMAGE_gd2($image, $dimensions, $dest = false, $imageType = \"audio\") {\n\t\tglobal $include_path, $keep_porportions, $resize_images;\n\n\t\t// Let's make sure they have GD installed\n\t\tif (gd_version() < 2) { return $image; }\n\t\t\n\t\t// Now let's make sure this is a JPG\n\t\t#if (!stristr($image,\".jpg\") and !stristr($image,\"ID3:\")){return $image;}\n\t\tif ( !(stristr($image,\".jpg\") || stristr($image, \".gif\") ) and !stristr($image,\"ID3:\")){return $image;}\n\n\t\t// Should we do this at all?\n\t\tif ($resize_images == \"false\"){return $image;}\n\t\t\n\t\t// Ok, let's get on with it...\n\t\t// First let's create our filenames\n\t\t$iArr = explode(\"/\",$image);\n\t\t$imgName = $iArr[count($iArr)-1];\n\t\t\n\t\t// Now let's see where this is gonna go\n\t\tunset($iArr[count($iArr)-1]);\n\t\tunset($iArr[0]);\n\t\t$name = implode(\"--\",$iArr);\n\t\t$path = $name. \"--\";\n\n\t\tif ($dest){\n\t\t\t$destImage = $dest;\n\t\t} else {\n\t\t\t$destImage = $path. str_replace(\".jpg\",\"\",$imgName);\n\t\t\t$destImage = \"data/images/\". md5($destImage). \".\". $dimensions. \".jpg\";\n\t\t}\n\n\t\t// Now let's create the images IF they don't exist\n\t\tif (!is_file($destImage)){\n\t\t\treturn createImage($image,$destImage,$dimensions);\n\t\t} else {\n\t\t\treturn $destImage;\n\t\t}\n\t}", "title": "" }, { "docid": "a96f384081f88f1aaba9fee1e3d6f9f0", "score": "0.6237542", "text": "private function createThumbnail($srcFile, $destFile, $width, $quality = 90)\n\t{\n\t\t$thumbnail = '';\n\t\t\t\t\t\n\t\t//HACKED TO ALLOW REMOTE URL UPLOAD\n\t\t/*if (file_exists($srcFile) && isset($destFile))\n\t\t{*/\n\t\t\t$size = getimagesize($srcFile);\n\t\t\t$w = number_format($width, 0, ',', '');\n\t\t\t$h = number_format(($size[1] / $size[0]) * $width, 0, ',', '');\n\n\t\t\t$thumbnail = $this->copyImage($srcFile, $destFile, $w, $h, $quality);\n\t\t//}\n\t\t\n\t\t// return the thumbnail file name on sucess or blank on fail\n\t\treturn basename($thumbnail);\n\t}", "title": "" }, { "docid": "a8ccddccc84a07b5572859940a0c440c", "score": "0.62307674", "text": "public function resize($image_name, $dest_name, $t_width = 0, $t_height = 0)\n {\n $stats = $this->getSize($image_name);\n if ($stats['height'] < $t_height && $stats['width'] < $t_width) {\n copy($image_name, $dest_name);\n return;\n }\n \n $image = $this->manager->make($image_name)->resize($t_width, $t_height, function ($constraint) {\n $constraint->aspectRatio();\n });\n \n $image->save($dest_name);\n }", "title": "" }, { "docid": "a58704ccb749aaba679b287ef975d4f2", "score": "0.62239766", "text": "function resizeAndSaveImage($originalPath, $destination, $W, $H){\n \t\n \tlist($width, $height, $type, $attr) = getimagesize($originalPath);\n \t$img = new abeautifulsite\\SimpleImage($originalPath);\n\t\n\tif($width/$height < $W/$H){\n\t\t//portrait\n\t\t$y1 = (($height * $W / $width) - $H) / 2;\n\t\t$y2 = ((($height * $W / $width) - $H) / 2 ) + $H;\n\t\t$img->fit_to_width($W)->crop(0, $y1, $W, $y2)->save($destination);\n\t} else{\n\t\t//landscape\n\t\t$x1 = (($width * $H / $height) - $W) / 2;\n\t\t$x2 = ((($width * $H / $height) - $W) / 2 ) + $W;\n\t\t$img->fit_to_height($H)->crop($x1, 0, $x2, $H)->save($destination);\n\t}\n\t\n\t/*\n\t\t if($width/$height < $W/$H){\n\t\t\t$img->fit_to_width($W)->crop(0, ($height - $H) / 2, $W, (($height - $H) / 2) + $H)->save($destination);\n\t\t} else{\n\t\t\t$img->fit_to_height($H)->crop(($width - $W) / 2, 0, (($width - $W) / 2) + $W, $H)->save($destination);\n\t\t}\n\t */\t\n }", "title": "" }, { "docid": "5c86d0f5bcb36176baaaef402167f387", "score": "0.6217293", "text": "private function make_thumb($src, $dest, $desired_width) {\n $source_image = imagecreatefromstring(file_get_contents($src));\n $width = imagesx($source_image);\n $height = imagesy($source_image);\n\n /* find the \"desired height\" of this thumbnail, relative to the desired width */\n $desired_height = floor($height * ($desired_width / $width));\n\n /* create a new, \"virtual\" image */\n $virtual_image = imagecreatetruecolor($desired_width, $desired_height);\n\n /* copy source image at a resized size */\n imagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\n\n /* create the physical thumbnail image to its destination */\n\n imagecopy($virtual_image, $virtual_image, 0, 140, 0, 0, imagesx($virtual_image), imagesy($virtual_image));\n imagejpeg($virtual_image, $dest);\n\n }", "title": "" }, { "docid": "e35b2789a6dabaa59629b935318dcb54", "score": "0.62095696", "text": "public static function createthumb($name,$filename,$new_w,$new_h)\n {\n $system=explode(\".\",$name);\n //var_dump($system);\n if (preg_match(\"/jpg|jpeg$/\",$name)){\n $src_img=imagecreatefromjpeg($name);\n }\n if (preg_match(\"/png$/\",$name)){\n $src_img=imagecreatefrompng($name);\n }\n $old_x=imageSX($src_img);\n $old_y=imageSY($src_img);\n if ($old_x > $old_y) \n {\n $thumb_w=$new_w;\n $thumb_h=$old_y*($new_w/$old_x);\n }\n if ($old_x < $old_y) \n {\n $thumb_w=$old_x*($new_h/$old_y);\n $thumb_h=$new_h;\n }\n if ($old_x == $old_y) \n {\n $thumb_w=$new_w;\n $thumb_h=$new_h;\n }\n //echo $thumb_w.\":\".$thumb_h.\"<br/>\";\n //exit();\n $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);\n\t\timagesavealpha($dst_img, true);\n\t\t$trans_colour = imagecolorallocatealpha($dst_img, 0xFF, 0xFF, 0xFF, 127);\n\t\timagefill($dst_img, 0, 0, $trans_colour);\n imagecopyresampled($dst_img,\n\t\t\t\t\t\t\t$src_img,\n\t\t\t\t\t\t\t0,0,0,0,\n\t\t\t\t\t\t\t$thumb_w,\n\t\t\t\t\t\t\t$thumb_h,\n\t\t\t\t\t\t\t$old_x,\n\t\t\t\t\t\t\t$old_y); \n if (preg_match(\"/png/\",$system[1])){\n imagepng($dst_img,$filename); \n } else {\n imagejpeg($dst_img,$filename); \n }\n imagedestroy($dst_img); \n imagedestroy($src_img); \n }", "title": "" }, { "docid": "be867381e76caea009d9c96bda5eb7d4", "score": "0.6206627", "text": "private function scaleImage()\n\t{\n\t\t$ret = imagecopyresized($this->destination[\"imagehandler\"], $this->source[\"imagehandler\"], 0, 0, 0, 0, $this->destination[\"width\"], $this->destination[\"height\"], $this->source[\"width\"], $this->source[\"height\"]);\n\n\t\timagedestroy($this->source[\"imagehandler\"]);\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "45723575e962be6ab7d32d73fc419840", "score": "0.6195961", "text": "function createThumbnail($sourcePath, $targetPath, $size)\r\n{\r\n $sourcefileName = basename($sourcePath);\r\n $extension = strtolower(pathinfo($sourcefileName,PATHINFO_EXTENSION));\r\n list($currentW, $currentH) = getimagesize($sourcePath);\r\n $ar = $currentW / $currentH;\r\n $image = $extension == 'png' ? imagecreatefrompng($sourcePath) : imagecreatefromjpeg($sourcePath);\r\n $w = $ar > 1 ? $size : $size * $ar;\r\n $h = $ar > 1 ? $size / $ar : $size;\r\n $image2 = imagecreatetruecolor($w, $h);\r\n imagecopyresampled($image2, $image, 0, 0, 0, 0, $w, $h, $currentW, $currentH);\r\n $targetFileName = basename($targetPath);\r\n $targetDir = str_replace($targetFileName, '', $targetPath);\r\n //debug($targetDir);\r\n if (!file_exists($targetDir))\r\n {\r\n mkdir($targetDir, 0777, true);\r\n }\r\n if ($extension == 'png')\r\n {\r\n imagepng($image2, $targetPath);\r\n }\r\n else\r\n {\r\n imagejpeg($image2, $targetPath);\r\n }\r\n}", "title": "" }, { "docid": "b1140e245884e6feda62c7dae48a40fe", "score": "0.61941123", "text": "function resize_image($img_info){\n\tif($img_info[\"image_width\"] <= 0 || $img_info[\"image_height\"] <= 0){\n\t\treturn false; //return false if nothing to resize\n\t}\n\n\t//Path for saving resized images\n\tif($img_info[\"random_file_name\"]){\n\t\t$new_image_name = $img_info[\"unique_id\"] . get_extention($img_info);\n\t}else{\n\t\t$new_image_name = $img_info[\"image_data\"][\"name\"];\n\t}\n\n\t$img_info[\"save_dir\"] = $img_info[\"destination_folder\"] . $new_image_name;\n\n //Do not resize if image is smaller than max size\n if($img_info[\"image_width\"] <= $img_info[\"image_max_size_width\"] && $img_info[\"image_height\"] <= $img_info[\"image_max_size_height\"]){\n\t\t//Create a new true color image\n\t\t$img_info[\"canvas\"] = imagecreatetruecolor($img_info[\"image_width\"], $img_info[\"image_height\"]); \n \n //Copy and resize part of an image with resampling\n if(imagecopyresampled($img_info[\"canvas\"], $img_info[\"img_res\"], 0, 0, 0, 0, $img_info[\"image_width\"], $img_info[\"image_height\"], $img_info[\"image_width\"], $img_info[\"image_height\"])){\n if(save_image($img_info)){\n\t\t return $new_image_name;\n\t }\n\t}\n }\n\n //Construct a proportional size of new image\n $image_scale = min($img_info[\"image_max_size_width\"]/$img_info[\"image_width\"], $img_info[\"image_max_size_height\"]/$img_info[\"image_height\"]);\n $new_width = ceil($image_scale * $img_info[\"image_width\"]);\n $new_height = ceil($image_scale * $img_info[\"image_height\"]);\n \n\t//Create a new true color image\n\t$img_info[\"canvas\"] = imagecreatetruecolor($new_width, $new_height); \n \n //Copy and resize part of an image with resampling\n if(imagecopyresampled($img_info[\"canvas\"], $img_info[\"img_res\"], 0, 0, 0, 0, $new_width, $new_height, $img_info[\"image_width\"], $img_info[\"image_height\"])){\n if(save_image($img_info)){\n\t\t return $new_image_name;\n\t }\n\t}\n}", "title": "" }, { "docid": "808cb715c55b2c7c28c0585707e782ca", "score": "0.6186605", "text": "public static function createThumbnail ($srcFileName, $destFileName, $params = array()) {\n \n $allowedTypes = array('IMAGETYPE_GIF', 'IMAGETYPE_JPEG', 'IMAGETYPE_PNG', 'IMAGETYPE_SWF', 'IMAGETYPE_PSD', \n \t\t'IMAGETYPE_BMP', 'IMAGETYPE_TIFF_II', 'IMAGETYPE_TIFF_MM', 'IMAGETYPE_JPC', 'IMAGETYPE_JP2', \n \t\t'IMAGETYPE_JPX', 'IMAGETYPE_JB2', 'IMAGETYPE_SWC', 'IMAGETYPE_IFF', 'IMAGETYPE_WBMP', 'IMAGETYPE_XBM', 'IMAGETYPE_ICO');\n \n $default_type = fvSite::$fvConfig->get('images.default_type', 'normal');\n \n if (!empty($params['type'])) $default_type = $params['type'];\n \n if (!empty($params['width'])) $width = $params['width']; else $width = (int)fvSite::$fvConfig->get(\"images.{$default_type}.width\"); \n if (!empty($params['height'])) $height = $params['height']; else $height = (int)fvSite::$fvConfig->get(\"images.{$default_type}.height\");\n if (!empty($params['resize_type'])) $type = $params['resize_type']; else $type = (int)fvSite::$fvConfig->get(\"images.{$default_type}.type\");\n \n list($orig_width, $orig_height, $orig_type) = getimagesize($srcFileName);\n \n switch ($type) {\n case self::THUMB_WIDTH:\n if ($orig_width > $width) {\n $ratio = ($width / $orig_width);\n $height = round($orig_height * $ratio);\n }\n else {\n $width = $orig_width;\n $height = $orig_height;\n }\n break;\n case self::THUMB_SQUADRE:\n \n if ($width > $height) {\n $val = \"width\";\n $aval = \"height\";\n }\n else {\n $val = \"height\";\n $aval = \"width\";\n }\n \n if (${'orig_' . $val} > ${$val}) {\n $ratio = (${$val} / ${'orig_' . $val});\n ${$aval} = round(${'orig_' . $aval} * $ratio);\n }\n else {\n $width = $orig_width;\n $height = $orig_height;\n }\n break;\n default:\n return false;\n break;\n }\n \n $origFileExt = '';\n \n if ($width == $orig_width && $height = $orig_height) {\n copy($srcFileName, $destFileName);\n return true;\n }\n \n foreach ($allowedTypes as $allowedType) {\n if (defined($allowedType) && (constant($allowedType) == $orig_type)) {\n $origFileExt = strtolower(substr($allowedType, strpos($allowedType, \"_\") + 1));\n }\n }\n \n if (!function_exists($functionName = \"imagecreatefrom\" . $origFileExt)) {\n return false;\n }\n \n if (($srcImage = call_user_func($functionName, $srcFileName)) === false) return false;\n if (($dstImage = imagecreatetruecolor($width, $height)) === false) return false;\n \n imagecopyresampled($dstImage, $srcImage, 0, 0, 0, 0, $width, $height, $orig_width, $orig_height);\n \n if (!function_exists($functionName = \"image\" . $origFileExt)) {\n return false;\n }\n \n// header(\"Content-Type: \" . image_type_to_mime_type($orig_type));\n if (call_user_func($functionName, $dstImage, $destFileName) === false) return false;\n\n imagedestroy($srcImage);\n imagedestroy($dstImage);\n \n return true;\n }", "title": "" }, { "docid": "4032c4dcdc690b9c2876f87e76cc1ef5", "score": "0.61772656", "text": "public function resize($filename, $width, $height) {\n\t define(\"DIR_IMAGE\", Library::imageRootPath());\n\t\t//echo DIR_IMAGE . $filename;\n\t\tif (!file_exists(DIR_IMAGE . $filename) || !is_file(DIR_IMAGE . $filename)) {\n\t\t\treturn;\n\t\t} \n\t\t$info = pathinfo($filename);\n\t\t\n\t\t$extension = $info['extension'];\n\t\t\n\t\t$old_image = $filename;\n\t\t$new_image = 'cache/' . substr($filename, 0, strrpos($filename, '.')) . '-' . $width . 'x' . $height . '.' . $extension;\n\t\t\n\t\tif (!file_exists(DIR_IMAGE . $new_image) || (filemtime(DIR_IMAGE . $old_image) > filemtime(DIR_IMAGE . $new_image))) {\n\t\t\t$path = '';\n\t\t\t\n\t\t\t$directories = explode('/', dirname(str_replace('../', '', $new_image)));\n\t\t\t\n\t\t\tforeach ($directories as $directory) {\n\t\t\t\t$path = $path . '/' . $directory;\n\t\t\t\t\n\t\t\t\tif (!file_exists(DIR_IMAGE . $path)) {\n\t\t\t\t\t@mkdir(DIR_IMAGE . $path, 0777);\n\t\t\t\t}\t\t\n\t\t\t}\n require_once \"classes/image.php\";\n\t\t\t$image = new Image(DIR_IMAGE . $old_image);\n\t\t\t$image->resize($width, $height);\n\t\t\t$saveimage=$image->save(DIR_IMAGE . $new_image);\n\t\t\treturn Library::getCatalogUploadLink().$new_image;\n\t\t}else {\n\t\t\treturn Library::getCatalogUploadLink().$new_image;\n\t\t}\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t}", "title": "" }, { "docid": "f756beddd6e3450282bc8198627ba803", "score": "0.6172738", "text": "function save() {\n\t\t$filename = $_FILES[\"new_image\"][\"tmp_name\"];\n\t\t$filesize = getimagesize($filename);\n\t\t\n\t\tif( $_FILES[\"new_image\"][\"error\"] != UPLOAD_ERR_OK ||\n\t\t\t( $filesize[0] * $filesize[1] ) > 1500 * 1500 )\n\t\t{\n\t\t\tthrow new exception(\"Upload failed. The image may be too large. Please resize the image and try again.\");\n\t\t}\n\t\t\n\t\t$uploaded_image = new upload($_FILES[\"new_image\"]);\n\t\t\n\t\tif( $uploaded_image->uploaded )\n\t\t{\n\t\t\t$uploaded_image->file_new_name_body = $this->_replicate_site->user_name;\n\t\t\t$uploaded_image->file_overwrite = true;\n\t\t\t$uploaded_image->file_auto_rename = false;\n\t\t\t$uploaded_image->image_convert = \"jpg\";\n\t\t\t$uploaded_image->image_resize = true;\n\t\t\t$uploaded_image->image_x = 200;\n\t\t\t$uploaded_image->image_ratio_y = true;\n\t\t\t\n\t\t\t$uploaded_image->process(\"../replicates/images/\");\n\t\t\t\n\t\t\t$uploaded_image->file_new_name_body = \"thumb_\";\n\t\t\t$uploaded_image->file_name_body_add = $this->_replicate_site->user_name;\n\t\t\t$uploaded_image->file_overwrite = true;\n\t\t\t$uploaded_image->file_auto_rename = false;\n\t\t\t$uploaded_image->image_convert = \"jpg\";\n\t\t\t$uploaded_image->image_resize = true;\n\t\t\t$uploaded_image->image_x = 50;\n\t\t\t$uploaded_image->image_y = 60;\n\t\t\t$uploaded_image->image_ratio_y = false;\n\t\t\t$uploaded_image->image_ratio = true;\n\t\t\t\n\t\t\t$uploaded_image->process(\"../replicates/images/\");\n\t\t}\n\t}", "title": "" }, { "docid": "e6189ea44b4910668061dbe46e18502d", "score": "0.61658585", "text": "function make_thumb($src, $dest, $desired_width) {\n\terror_log(\"image source:\" . $src);\n\t$source_image = imagecreatefromjpeg($src);\n\t$width = imagesx($source_image);\n\t$height = imagesy($source_image);\n\t\n\t/* find the \"desired height\" of this thumbnail, relative to the desired width */\n\t$desired_height = floor($height * ($desired_width / $width));\n\t\n\t/* create a new, \"virtual\" image */\n\t$virtual_image = imagecreatetruecolor($desired_width, $desired_height);\n\t\n\t/* copy source image at a resized size */\n\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\n\t\n\t/* create the physical thumbnail image to its destination */\n\timagepng($virtual_image, $dest);\n}", "title": "" }, { "docid": "98a5d1fee69f1dcbde3a454dea8e77b7", "score": "0.6158957", "text": "private function save_image( $path ) {\n \n // Actually make the new .jpg.\n imagejpeg(\n $this->resized_image, // The resized image\n $path, // The path to save the new .jpg\n 100 // The quality of the new .jpg (0-100)\n );\n \n $this->final_path = $path;\n \n // Destroy the old image resources.\n imagedestroy( $this->image );\n imagedestroy( $this->resized_image );\n \n }", "title": "" }, { "docid": "7e0b5aa943e95e7e4e179795e8c42baf", "score": "0.61526036", "text": "function make_thumb($src, $dest, $desired_width) {\r\n\r\n /* read the source image */\r\n $source_image = imagecreatefromjpeg($src);\r\n $width = imagesx($source_image);\r\n $height = imagesy($source_image);\r\n \r\n /* find the \"desired height\" of this thumbnail, relative to the desired width */\r\n $desired_height = floor($height * ($desired_width / $width));\r\n \r\n /* create a new, \"virtual\" image */\r\n $virtual_image = imagecreatetruecolor($desired_width, $desired_height);\r\n \r\n /* copy source image at a resized size */\r\n imagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\r\n \r\n /* create the physical thumbnail image to its destination */\r\n imagejpeg($virtual_image, $dest);\r\n}", "title": "" }, { "docid": "cfe39413b79c07a6a4924f456f640b6b", "score": "0.61525226", "text": "function _createThumbnail($filename) {\n $config['image_library'] = 'GD';\n $config['source_image'] = $this->upload->get_upload_path() . $filename;\n $config['create_thumb'] = TRUE;\n $config['maintain_ratio'] = FALSE;\n $config['width'] = 100;\n $config['height'] = 100;\n \n $this->load->library('image_lib', $config);\n \n if(!$this->image_lib->resize()){\n $this->messages->add($this->upload->display_errors(), \"error\");\n }\n }", "title": "" }, { "docid": "faf28bbcd2c92b1365779fb57d88eb1f", "score": "0.61477923", "text": "public function save($filename) {\r\n\r\n if ( !file_exists( dirname($filename) ) ) {\r\n mkdir( dirname($filename), 0755, true);\r\n }\r\n \r\n return imagejpeg($this->_image, $filename, 85);\r\n }", "title": "" }, { "docid": "5ffd473b49328f2a5298a3cf524fec96", "score": "0.6142312", "text": "function make_thumb($img_name, $filename, $new_w, $new_h)\r\n{\r\n\t//get image extension.\r\n\t$ext = getExtension($img_name);\r\n\t//creates the new image using the appropriate function from gd library\r\n\tif(!strcmp(\"jpg\",$ext) || !strcmp(\"gif\",$ext))\r\n\t\t$src_img = imagecreatefromjpeg($img_name);\r\n\r\n\tif(!strcmp(\"png\",$ext))\r\n\t\t$src_img = imagecreatefrompng($img_name);\r\n\r\n\t//gets the dimmensions of the image\r\n\t$old_x = imageSX($src_img);\r\n\t$old_y = imageSY($src_img);\r\n\r\n\t// next we will calculate the new dimmensions for the thumbnail image\r\n\t// the next steps will be taken:\r\n\t// 1. calculate the ratio by dividing the old dimmensions with the new ones\r\n\t// 2. if the ratio for the width is higher, the width will remain the one define in WIDTH variable\r\n\t// and the height will be calculated so the image ratio will not change\r\n\t// 3. otherwise we will use the height ratio for the image\r\n\t// as a result, only one of the dimmensions will be from the fixed ones\r\n\t$ratio1 = $old_x/$new_w;\r\n\t$ratio2 = $old_y/$new_h;\r\n\tif($ratio1>$ratio2) {\r\n\t\t$thumb_w = $new_w;\r\n\t\t$thumb_h = $old_y/$ratio1;\r\n\t}\r\n\telse {\r\n\t\t$thumb_h = $new_h;\r\n\t\t$thumb_w = $old_x/$ratio2;\r\n\t}\r\n\r\n\t// we create a new image with the new dimmensions\r\n\t$dst_img = ImageCreateTrueColor($thumb_w,$thumb_h);\r\n\r\n\t// resize the big image to the new created one\r\n\timagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);\r\n\r\n\t// output the created image to the file. Now we will have the thumbnail into the file named by $filename\r\n\tif(!strcmp(\"png\",$ext))\r\n\t\timagepng($dst_img, $filename);\r\n\telse\r\n\t\timagejpeg($dst_img, $filename);\r\n\r\n\t//destroys source and destination images.\r\n\timagedestroy($dst_img);\r\n\timagedestroy($src_img);\r\n}", "title": "" }, { "docid": "378ae21f53cc2acd1301d4c85b1d0313", "score": "0.6130302", "text": "function resizeThumbnailImage($thumb_image_name, $image, $width, $height, $start_width, $start_height, $scale){\r\n $newImageWidth = ceil($width * $scale);\r\n $newImageHeight = ceil($height * $scale);\r\n $newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);\r\n $source = imagecreatefromjpeg($image);\r\n imagecopyresampled($newImage,$source,0,0,$start_width,$start_height,$newImageWidth,$newImageHeight,$width,$height);\r\n imagejpeg($newImage,$thumb_image_name,90);\r\n chmod($thumb_image_name, 0777);\r\n return $thumb_image_name;\r\n}", "title": "" }, { "docid": "15d4c898fa53281308f1d90226a86531", "score": "0.61281985", "text": "function resize( $newWidth, $targetFile, $originalFile ) {\n\n\t$info = getimagesize( $originalFile );\n\t$mime = $info['mime'];\n\n\tswitch ( $mime ) {\n\t\tcase 'image/jpeg':\n\t\t\t$image_create_func = 'imagecreatefromjpeg';\n\t\t\t$image_save_func = 'imagejpeg';\n\t\t\t$new_image_ext = 'jpg';\n\t\t\tbreak;\n\n\t\tcase 'image/png':\n\t\t\t$image_create_func = 'imagecreatefrompng';\n\t\t\t$image_save_func = 'imagepng';\n\t\t\t$new_image_ext = 'png';\n\t\t\tbreak;\n\n\t\tcase 'image/gif':\n\t\t\t$image_create_func = 'imagecreatefromgif';\n\t\t\t$image_save_func = 'imagegif';\n\t\t\t$new_image_ext = 'gif';\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow Exception( 'Unknown image type.' );\n\t}\n\n\t$img = $image_create_func( $originalFile );\n\tlist( $width, $height ) = getimagesize( $originalFile );\n\n\t$newHeight = ( $height / $width ) * $newWidth;\n\t$tmp = imagecreatetruecolor( $newWidth, $newHeight );\n\timagecopyresampled( $tmp, $img, 0, 0, 0, 0, $newWidth, $newHeight, $width, $height );\n\n\tif ( file_exists( $targetFile ) ) {\n\t\tunlink( $targetFile );\n\t}\n\n\t// save merged image\n\timagepng( $tmp, $targetFile );\n\n\n}", "title": "" }, { "docid": "faa556faa92cadd9c1519046ae4a8fa7", "score": "0.6112381", "text": "public static function generateResizeImage($inputFilePath, $inputFileName, $outputFilePath, $outputFileName, $options) {\r\n Yii::import('application.extensions.EWideImage.EWideImage');\r\n $inputImage = $inputFilePath . \"/\" . $inputFileName;\r\n $outputImage = $outputFilePath . \"/\" . $outputFileName;\r\n $extension = pathinfo($inputImage, PATHINFO_EXTENSION);\r\n $quality = (strtolower($extension) == 'png') ? 9 : 90;\r\n list($imageWidth, $imageHeight) = getimagesize($inputImage);\r\n if (is_array($options) && !empty($options)) {\r\n foreach ($options as $key => $value) {\r\n $imageSize = array();\r\n $imageSize = explode('_', $value);\r\n $imageSizeNew = $imageSize;\r\n if (!is_dir($outputFilePath . \"/\" . $value)) {\r\n mkdir($outputFilePath . \"/\" . $value, 0777, true);\r\n }\r\n if (($imageWidth == $imageSize[0]) && ($imageHeight == $imageSize[1])) {\r\n $cpSrc = $_SERVER['DOCUMENT_ROOT'] . '/' . $inputFilePath . $inputFileName;\r\n $cpDes = $_SERVER['DOCUMENT_ROOT'] . '/' . $outputFilePath . \"/\" . $value . \"/\" . $inputFileName;\r\n copy($cpSrc, $cpDes);\r\n } else {\r\n EWideImage::load($inputImage)->resize($imageSizeNew[0], $imageSizeNew[1], 'inside', 'down')->saveToFile($outputFilePath . \"/\" . $value . \"/\" . $inputFileName, $quality);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5a3c56372f194e3977e05f16e453cc18", "score": "0.6102366", "text": "function resize($imagePath, $destinationWidth, $destinationHeight, $MaxWidth=0) { \n // The file has to exist to be resized \n if(file_exists($imagePath)) { \n // Gather some info about the image \n $imageInfo = getimagesize($imagePath); \n \n // Find the intial size of the image \n $sourceWidth = $imageInfo[0]; \n $sourceHeight = $imageInfo[1]; \n \n // Find the mime type of the image \n $mimeType = $imageInfo['mime']; \n \n\t\t\t //adjust image size\n\t\t\t $size = getimagesize($imagePath);\n\t\t\t if($size[0]>$destinationWidth){\n\t\t\t\t if (($size[1]/$destinationHeight) > ($size[0]/$destinationWidth)) // $size[0]:destinationWidth, [1]:destinationHeight, [2]:type \n\t\t\t\t\t$destinationWidth = ceil(($size[0]/$size[1]) * $destinationHeight); \n\t\t\t\telse \n\t\t\t\t\t$destinationHeight = ceil($destinationWidth / ($size[0]/$size[1])); \n\t\t\t }else{\n\t\t\t\t$destinationWidth=$size[0];\n\t\t\t }\n\t\t\t \n\t\t\t if($size[1]>$destinationHeight){ \n\t\t\t\t//$destinationHeight = ceil($destinationWidth / ($size[0]/$size[1])); \n\t\t\t }else{\n\t\t\t\t$destinationHeight=$size[1];\n\t\t\t }\n\t\t\t \n\t\t\t // Create the destination for the new image \n\t\t\t$destination = imagecreatetruecolor($destinationWidth, $destinationHeight); \n\n\t\t\t// Now determine what kind of image it is and resize it appropriately \n\t\t\tif($mimeType == 'image/jpeg' || $mimeType == 'image/pjpeg') { \n\t\t\t\t$source = imagecreatefromjpeg($imagePath); \n\t\t\t\timagecopyresampled($destination, $source, 0, 0, 0, 0, $destinationWidth, $destinationHeight, $sourceWidth, $sourceHeight);\n\t\t\t\timagejpeg($destination, $imagePath); \n\t\t\t} else if($mimeType == 'image/gif') { \n\t\t\t\t$source = imagecreatefromgif($imagePath); \n\t\t\t\timagecopyresampled($destination, $source, 0, 0, 0, 0, $destinationWidth, $destinationHeight, $sourceWidth, $sourceHeight);\n\t\t\t\timagegif($destination, $imagePath); \n\t\t\t} else if($mimeType == 'image/png' || $mimeType == 'image/x-png') { \n\t\t\t\t$source = imagecreatefrompng($imagePath); \n\t\t\t\timagecopyresampled($destination, $source, 0, 0, 0, 0, $destinationWidth, $destinationHeight, $sourceWidth, $sourceHeight);\n\t\t\t\timagepng($destination, $imagePath); \n\t\t\t} else { \n\t\t\t\t$this->_error('This image type is not supported.'); \n\t\t\t} \n\t\t\t \n\t\t\t// Free up memory \n\t\t\timagedestroy($source); \n\t\t\timagedestroy($destination); \n } else { \n $this->_error('The requested file does not exist.'); \n } \n }", "title": "" }, { "docid": "2d413915a20745c281c5c049813b0ee2", "score": "0.6102249", "text": "function resizeThumbnailImage($thumb_image_name, $image, $width, $height, $start_width, $start_height, $scale){\n\t\t$newImageWidth = ceil($width * $scale);\n\t\t$newImageHeight = ceil($height * $scale);\n\t\t$newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);\n\t\t$source = imagecreatefromjpeg($image);\n\t\timagecopyresampled($newImage,$source,0,0,$start_width,$start_height,$newImageWidth,$newImageHeight,$width,$height);\n\t\timagejpeg($newImage,$thumb_image_name,90);\n\t\tchmod($thumb_image_name, 0777);\n\t\treturn $thumb_image_name;\n\t}", "title": "" }, { "docid": "4b00cb57dff57054cc753825f7dcc0b4", "score": "0.6094846", "text": "function crearThumb($src, $dest, $desired_width) {\n\t$source_image = imagecreatefromjpeg($src);\n\t$width = imagesx($source_image);\n\t$height = imagesy($source_image);\n\t\n\t/* find the \"desired height\" of this thumbnail, relative to the desired width */\n\t$desired_height = floor($height * ($desired_width / $width));\n\t\n\t/* create a new, \"virtual\" image */\n\t$virtual_image = imagecreatetruecolor($desired_width, $desired_height);\n\t\n\t/* copy source image at a resized size */\n\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\n\t\n\t/* create the physical thumbnail image to its destination */\n\timagejpeg($virtual_image, $dest);\n}", "title": "" }, { "docid": "7b87b5e02e091f4a7afecea02750bc68", "score": "0.6094161", "text": "public static function createResized(\n\t\tstring $origFile,\n\t\tstring $dstFile,\n\t\tint $width,\n\t\tint $height,\n\t\tint $quality = self::DEFAULT_QUALITY\n\t): bool {\n\t\tstatic::init();\n\t\t$type = static::getImageType($origFile);\n\t\t$origRes = static::getImageFromFile($origFile, $type);\n\t\t$origX = imagesx($origRes);\n\t\t$origX = imagesy($origRes);\n\n\t\t$dstRes = imagecreatetruecolor($width, $height);\n\t\timagecopyresampled($dstRes, $origRes, 0, 0, 0, 0, $width, $height, $origX, $origX);\n\t\treturn static::writeImageFile($dstRes, $dstFile, $type, $quality);\n\t}", "title": "" }, { "docid": "83c3132a3962662d6a7e47b937161b04", "score": "0.60918003", "text": "function createThumbnail($imageName)\n{\n\t$img = imagecreatefromjpeg($imageName);\n\t$width = imagesx($img);\n\t$height = imagesy($img);\n\t$new_img = imagecreatetruecolor(200, 200);\n\timagecopyresampled($new_img, $img, 0, 0, 0, 0, 200, \n\t\t200, $width, $height);\n\timagejpeg($new_img, \"./thumbs/\".$imageName);\n\timageDestroy($img);\n\timageDestroy($new_img);\n}", "title": "" }, { "docid": "8e603932e79b5a553670a9b8d01ed116", "score": "0.608838", "text": "function make_thumb($src, $dest, $desired_width) {\n\t$source_image = imagecreatefromjpeg($src);\n\t$width = imagesx($source_image);\n\t$height = imagesy($source_image);\n\t\n\t/* find the \"desired height\" of this thumbnail, relative to the desired width */\n\t$desired_height = floor($height * ($desired_width / $width));\n\t\n\t/* create a new, \"virtual\" image */\n\t$virtual_image = imagecreatetruecolor($desired_width, $desired_height);\n\t\n\t/* copy source image at a resized size */\n\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\n\t\n\t/* create the physical thumbnail image to its destination */\n\timagejpeg($virtual_image, $dest);\n}", "title": "" }, { "docid": "9f40696c2a81e52a11c9bd125b8e6acd", "score": "0.60865355", "text": "static function resize($old_filename, $new_filename, $new_width, $new_height) {\n\n\t\t$imagesize = getimagesize($old_filename);\n\t\t$width = $imagesize[0];\n\t\t$height = $imagesize[1];\n\n\t\t$mime = Image::get_mime($imagesize['mime']);\n\n\t\tif ($mime == \"png\"){\n\n\t\t//deal with transparency for png's\n\n\t\t\t$alphablending = false;\n\t\t\t$old_img = imagecreatefrompng($old_filename);\n\n\t\t\timagealphablending($old_img, true);\n\t\t\timagesavealpha($old_img, true);\n\n\t\t\t$new_img = imagecreatetruecolor($new_width, $new_height);\n\n\t\t\t$background = imagecolorallocate($new_img, 0, 0, 0);\n\t\t\tImageColorTransparent($new_img, $background);\n\t\t\timagealphablending($new_img, $alphablending);\n\t\t\timagesavealpha($new_img, true);\n\n\t\t\tImageCopyResampled(\n\t\t\t\t$new_img,\n\t\t\t\t$old_img,\n\t\t\t\t0, 0, 0, 0,\n\t\t\t\t$new_width,\n\t\t\t\t$new_height,\n\t\t\t\timagesx($old_img),\n\t\t\t\timagesy($old_img)\n\t\t\t);\n\n\t\t\t//header(\"Content-type: \".$mime);\n\t\t\t//imagepng($img_temp);\n\n\t\t\t$success = imagepng($new_img, $new_filename);\n\t\t\t@chmod($new_filename, 0777);\n\n\t\t\timagedestroy($old_img);\n\t\t\timagedestroy($new_img);\n\n\t\t\treturn $success;\n\n\n\t\t} else {\n\n\t\t\t$input_func = \"imagecreatefrom$mime\";\n\t\t\t$output_func = \"image$mime\";\n\n\t\t\t$old_img = $input_func($old_filename);\n\t\t\t$new_img = imagecreatetruecolor($new_width, $new_height);\n\n\t\t\timagecopyresampled($new_img, $old_img, 0, 0, 0, 0, $new_width, $new_height, $width, $height);\n\n\t\t\t$success = $output_func($new_img, $new_filename, 100);\n\t\t\t@chmod($new_filename, 0777);\n\n\t\t\timagedestroy($old_img);\n\t\t\timagedestroy($new_img);\n\n\t\t\treturn $success;\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "ef0253d5f566bbf26877770105fa212e", "score": "0.60820013", "text": "public function resizeImage($filename, $width, $height, $w = '') {\n\t\tif (!file_exists(DIR_IMAGE . $filename) || !$filename || !filesize(DIR_IMAGE . $filename)) {\n\t\t\treturn;\n\t\t}\n\n\t\t$size = getimagesize(DIR_IMAGE . $filename);\n\t\tif (!$size) return;\n\t\t\n\t\t$info = pathinfo($filename);\n\t\t$extension = $info['extension'];\n\n\t\t$temporary_filename = time() . '_' . md5(rand()) . '.' . $info[\"basename\"];\n\t\t$image = new Image(DIR_IMAGE . $filename);\n\t\t$image->resize($width, $height, $w);\n\t\t$image->save(DIR_IMAGE . $this->config->get('msconf_temp_image_path') . $temporary_filename);\n\n\t\t$file = substr($info['basename'], 0, strrpos($info['basename'], '.')) . '-' . $width . 'x' . $height . '.' . $extension;\n\t\t$new_image = $this->_checkExistingFilesMd5(DIR_IMAGE . $this->config->get('msconf_temp_image_path'), $file, md5_file(DIR_IMAGE . $this->config->get('msconf_temp_image_path') . $temporary_filename));\n\n\t\tif (copy(DIR_IMAGE . $this->config->get('msconf_temp_image_path') . $temporary_filename, DIR_IMAGE . $this->config->get('msconf_temp_image_path') . $new_image)) {\n\t\t\tunlink(DIR_IMAGE . $this->config->get('msconf_temp_image_path') . $temporary_filename);\n\t\t}\n\n\t\tif (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {\n\t\t\t$base = defined('HTTPS_CATALOG') ? HTTPS_CATALOG : HTTPS_SERVER;\n\t\t\treturn $base . 'image/' . $this->config->get('msconf_temp_image_path') . $new_image;\n\t\t} else {\n\t\t\t$base = defined('HTTP_CATALOG') ? HTTP_CATALOG : HTTP_SERVER;\n\t\t\treturn $base . 'image/' . $this->config->get('msconf_temp_image_path') . $new_image;\n\t\t}\n\t}", "title": "" }, { "docid": "821795e49173a76b93e68daa2f8f934e", "score": "0.607364", "text": "function make_thumb($folder,$src,$dest,$thumb_width) {\r\n $source_image = imagecreatefromjpeg($folder.'/'.$src);\r\n $width = imagesx($source_image);\r\n $height = imagesy($source_image); \r\n $thumb_height = floor($height*($thumb_width/$width));\r\n $virtual_image = imagecreatetruecolor($thumb_width,$thumb_height);\r\n imagecopyresampled($virtual_image,$source_image,0,0,0,0,$thumb_width,$thumb_height,$width,$height);\r\n imagejpeg($virtual_image,$dest,100);\r\n }", "title": "" }, { "docid": "27536f6a11e0316f81a3e284efbcdaf6", "score": "0.6070624", "text": "public function save($name) {\n $targetImage = imagecreatetruecolor($this->targetWidth, $this->targetHeight);\n switch ($this->sourceImageType) {\n case IMAGETYPE_JPEG:\n $background = imagecolorallocate($targetImage, 255, 255, 255);\n imagefilledrectangle($targetImage, 0, 0, $this->targetWidth, $this->targetHeight, $background);\n break;\n case IMAGETYPE_PNG:\n imagealphablending($targetImage, false);\n imagesavealpha($targetImage, true);\n break;\n }\n imagecopyresampled(\n $targetImage, $this->sourceImage, \n 0, 0, 0, 0, \n $this->targetWidth, $this->targetHeight , $this->sourceWidth, $this->sourceHeight\n );\n \n switch ($this->sourceImageType) {\n case IMAGETYPE_JPEG:\n imagejpeg($targetImage, $name);\n break;\n case IMAGETYPE_PNG:\n imagepng($targetImage, $name);\n break;\n }\n imagedestroy($targetImage);\n }", "title": "" }, { "docid": "96f26079197dd8216b72465155e51838", "score": "0.6067673", "text": "function make_thumb($src, $dest, $desired_width) {\n\t$source_image = imagecreatefromjpeg($src);\n\t$width = imagesx($source_image);\n\t$height = imagesy($source_image);\n\t\n\t/* find the \"desired height\" of this thumbnail, relative to the desired width */\n\t$desired_height = floor($height * ($desired_width / $width));\n\t\n\t/* create a new, \"virtual\" image */\n\t$virtual_image = imagecreatetruecolor($desired_width, $desired_height);\n\t\n\t/* copy source image at a resized size */\n\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\n\t\n\t/* create the physical thumbnail image to its destination */\n\timagejpeg($virtual_image, $dest, 100);\n}", "title": "" }, { "docid": "9a69de1c94cb0abc0a65e0ce33beb671", "score": "0.6067553", "text": "public function createImage($sourcePath, $destPath, $type, $sizeConstraint, $mimeType);", "title": "" }, { "docid": "4e7bca9c5830f6ee61401f345aee8891", "score": "0.60658324", "text": "private function createThumbnail($src, $dest, $width = null, $height = 60)\n {\n $this->createImage()->fromFile($src)\n ->resize($width, $height)\n ->save($dest);\n }", "title": "" }, { "docid": "477104e571a0310ffb3977ce519fba1a", "score": "0.60523045", "text": "function resize($image_name, $size, $folder_name) {\n $file_extension = getFileExtension($image_name);\n switch ($file_extension) {\n case 'jpg':\n case 'jpeg':\n $image_src = imagecreatefromjpeg($folder_name . '/' . $image_name);\n break;\n case 'png':\n $image_src = imagecreatefrompng($folder_name . '/' . $image_name);\n break;\n case 'gif':\n $image_src = imagecreatefromgif($folder_name . '/' . $image_name);\n break;\n }\n $true_width = imagesx($image_src);\n $true_height = imagesy($image_src);\n\n $width = $size;\n $height = ($width / $true_width) * $true_height;\n\n $image_des = imagecreatetruecolor($width, $height);\n\n imagecopyresampled($image_des, $image_src, 0, 0, 0, 0, $width, $height, $true_width, $true_height);\n\n switch ($file_extension) {\n case 'jpg':\n case 'jpeg':\n imagejpeg($image_des, $folder_name . '/' . $image_name, 100);\n break;\n case 'png':\n imagepng($image_des, $folder_name . '/' . $image_name, 8);\n break;\n case 'gif':\n imagegif($image_des, $folder_name . '/' . $image_name, 100);\n break;\n }\n return $image_des;\n}", "title": "" }, { "docid": "7bacdb949e6a147cba074287768af6fa", "score": "0.6050784", "text": "public function resize($filename, $width, $height) {\n\t\tif (!is_file(DIR_IMAGE . $filename)) {\n\t\t\treturn;\n\t\t}\n\n\t\t$extension = pathinfo($filename, PATHINFO_EXTENSION);\n\n\t\t$old_image = $filename;\n\t\t$new_image = 'cache/' . utf8_substr($filename, 0, utf8_strrpos($filename, '.')) . '-' . $width . 'x' . $height . '.' . $extension;\n\n\t\tif (!is_file(DIR_IMAGE . $new_image) || (filectime(DIR_IMAGE . $old_image) > filectime(DIR_IMAGE . $new_image))) {\n\t\t\t$path = '';\n\n\t\t\t$directories = explode('/', dirname(str_replace('../', '', $new_image)));\n\n\t\t\tforeach ($directories as $directory) {\n\t\t\t\t$path = $path . '/' . $directory;\n\n\t\t\t\tif (!is_dir(DIR_IMAGE . $path)) {\n\t\t\t\t\t@mkdir(DIR_IMAGE . $path, 0777);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist($width_orig, $height_orig) = getimagesize(DIR_IMAGE . $old_image);\n\n\t\t\tif ($width_orig != $width || $height_orig != $height) {\n\t\t\t\t$image = new Image(DIR_IMAGE . $old_image);\n\t\t\t\t$image->resize($width, $height);\n\t\t\t\t$image->save(DIR_IMAGE . $new_image);\n\t\t\t} else {\n\t\t\t\tcopy(DIR_IMAGE . $old_image, DIR_IMAGE . $new_image);\n\t\t\t}\n\t\t}\n\n\t\tif ($this->request->server['HTTPS']) {\n\t\t\treturn $this->config->get('config_ssl') . 'image/' . $new_image;\n\t\t} else {\n\t\t\treturn $this->config->get('config_url') . 'image/' . $new_image;\n\t\t}\n\t}", "title": "" }, { "docid": "eca6d835e68872938896683a92df3bca", "score": "0.60374844", "text": "protected function buildThumbnailForUploadedImage()\n {\n $this->image->makeThumbnail($this->getDestinationDirectory(), $this->getImageFilename(), 'thumb_'); \n }", "title": "" }, { "docid": "b5a81d5589e8c920364ebeca2ccdf989", "score": "0.60320425", "text": "function resizeThumbnailImage($thumb_image_name, $image, $width, $height, $start_width, $start_height, $scale){\r\n\t$newImageWidth = ceil($width * $scale);\r\n\t$newImageHeight = ceil($height * $scale);\r\n\t$newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);\r\n\t$source = imagecreatefromjpeg($image);\r\n\timagecopyresampled($newImage,$source,0,0,$start_width,$start_height,$newImageWidth,$newImageHeight,$width,$height);\r\n\timagejpeg($newImage,$thumb_image_name,90);\r\n\tchmod($thumb_image_name, 0777);\r\n\treturn $thumb_image_name;\r\n}", "title": "" }, { "docid": "d8e5f7e02f984d1f5aff3a1bc383e376", "score": "0.6031549", "text": "private function storePictures($image, $destinationFilePath, $width = 1366, $height = 421)\n {\n $img = Image::make($image);\n\n if ($height === null) {\n //Set Auto Height\n $img->resize($width, null, function ($constraint) {\n $constraint->aspectRatio();\n });\n } else {\n $img->resize($width, $height);\n }\n\n $img->save($destinationFilePath);\n }", "title": "" }, { "docid": "52988c880cf49ce217431ac000d7c87e", "score": "0.60181046", "text": "function createthumb($name,$filename,$new_w,$new_h)\n{\n\t$system=explode(\".\",$name);\n\tif (preg_match(\"/jpg|jpeg/\",$system[1])){$src_img=imagecreatefromjpeg($name);}\n\tif (preg_match(\"/png/\",$system[1])){$src_img=imagecreatefrompng($name);}\n\tif (preg_match(\"/gif/\",$system[1])){$src_img=imagecreatefromgif($name);}\n\t$old_x=imageSX($src_img);\n\t$old_y=imageSY($src_img);\n\tif ($old_x > $old_y) \n\t{\n\t\t$thumb_w=$new_w;\n\t\t$thumb_h=$old_y*($new_h/$old_x);\n\t}\n\tif ($old_x < $old_y) \n\t{\n\t\t$thumb_w=$old_x*($new_w/$old_y);\n\t\t$thumb_h=$new_h;\n\t}\n\tif ($old_x == $old_y) \n\t{\n\t\t$thumb_w=$new_w;\n\t\t$thumb_h=$new_h;\n\t}\n\t$dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);\n\timagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y); \n\tif (preg_match(\"/png/\",$system[1]))\n\t{\n\t\timagepng($dst_img,$filename); \n }\n else if (preg_match(\"/gif/\",$system[1]))\n\t{\n\t\timagegif($dst_img,$filename); \n\t} \n else \n {\n\t\timagejpeg($dst_img,$filename); \n\t}\n\timagedestroy($dst_img); \n\timagedestroy($src_img); \n}", "title": "" }, { "docid": "2e707a2258ea6f9a0229fddac058ae67", "score": "0.60102946", "text": "function make_thumb($folder,$src,$dest,$thumb_width) {\r\n\r\n\t$source_image = imagecreatefromjpeg($folder.'/'.$src);\r\n\t$width = imagesx($source_image);\r\n\t$height = imagesy($source_image);\r\n\t\r\n\t$thumb_height = floor($height*($thumb_width/$width));\r\n\t\r\n\t$virtual_image = imagecreatetruecolor($thumb_width,$thumb_height);\r\n\t\r\n\timagecopyresampled($virtual_image,$source_image,0,0,0,0,$thumb_width,$thumb_height,$width,$height);\r\n\t\r\n\timagejpeg($virtual_image,$dest,100);\r\n\t\r\n}", "title": "" }, { "docid": "31281e036f07441834dcf2fcb1093b19", "score": "0.6004777", "text": "public function make_thumb($src, $dest, $desired_width) {\r\n\t\t\t$source_image = imagecreatefromjpeg($src);\r\n\t\t\t$width = imagesx($source_image);\r\n\t\t\t$height = imagesy($source_image);\r\n\t\t\t\r\n\t\t\t/* find the \"desired height\" of this thumbnail, relative to the desired width */\r\n\t\t\t$desired_height = floor($height * ($desired_width / $width));\r\n\t\t\t\r\n\t\t\t/* create a new, \"virtual\" image */\r\n\t\t\t$virtual_image = imagecreatetruecolor($desired_width, $desired_height);\r\n\t\t\t\r\n\t\t\t/* copy source image at a resized size */\r\n\t\t\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\r\n\t\t\t\r\n\t\t\t/* create the physical thumbnail image to its destination */\r\n\t\t\timagejpeg($virtual_image, $dest);\r\n\t\t}", "title": "" }, { "docid": "159d18d39b6e0c6528f3316aebac5fdb", "score": "0.5999572", "text": "function make_thumb($src,$dest,$desired_width) {\n\t/* read the source image */\n\t$source_image = imagecreatefromjpeg($src);\n\t$width = imagesx($source_image);\n\t$height = imagesy($source_image);\n\t/* find the \"desired height\" of this thumbnail, relative to the desired width */\n\t$desired_height = floor($height*($desired_width/$width));\n\t/* create a new, \"virtual\" image */\n\t$virtual_image = imagecreatetruecolor($desired_width,$desired_height);\n\tdebug($virtual_image);\n\tdebug(\"Break in between\");\n\t/* copy source image at a resized size */\n\timagecopyresized($virtual_image,$source_image,0,0,0,0,$desired_width,$desired_height,$width,$height);\n\tdebug($virtual_image);\n\t/* create the physical thumbnail image to its destination */\n\timagejpeg($virtual_image, $dest);\n}", "title": "" }, { "docid": "93fa23ec6a4c60ca0f98fe578e5716b9", "score": "0.5997926", "text": "function saveThumbnail($image, $path, $thumbname) {\n $width = getimagesize($image['tmp_name'])[0];\n $height = getimagesize($image['tmp_name'])[1];\n // berechne (neue)thumbnail size\n $new_height = 120;\n $new_width = floor($width * ($new_height / $height));;\n\n // getimagesize in eine liste holen\n list(, , $type) = getimagesize($image['tmp_name']);\n // dateiendung holen\n $type = image_type_to_extension($type);\n\n// vorberieten einer methode welche das effektive file eines imagepfades ladet\n $getResourceOfImage = 'imagecreatefrom' . $type;\n $getResourceOfImage = str_replace('.', '', $getResourceOfImage);\n $img = $getResourceOfImage($image[\"tmp_name\"]);\n\n// erstellt ein neues temporäres image\n $tmp_img = imagecreatetruecolor($new_width, $new_height);\n// kopiert und verändert die grösse vom alten image in das neue image\n imagecopyresized($tmp_img, $img, 0, 0, 0, 0, $new_width, $new_height, $width, $height);\n// speichert das image (thumbnail) in ein file\n imagejpeg($tmp_img, \"{$path}{$thumbname}\");\n return $path . $thumbname;\n}", "title": "" }, { "docid": "96db13ea064dca5cf71e60acea083fec", "score": "0.59862083", "text": "private function createImage($source, $destination, $size) {\n if (file_exists($destination)) {\n unlink($destination);\n }\n\n $command = \"convert -strip -interlace Plane -gaussian-blur 0.05\";\n // Handle PDFs/images with transparency (https://github.com/WhyJustRun/Clubsite/issues/176)\n $command .= \" -background white -alpha remove\";\n\n // For PDFs, create a composite image with all the pages\n if ($this->extensionOf($source) == 'pdf') {\n // Use a higher DPI for converting PDFs\n $command .= \" -density 288 -colorspace RGB\";\n $command .= \" -quality 85% '$source'\";\n $command .= \" '$destination.%04d.tmp.jpg'\";\n shell_exec($command);\n $command = \"convert -quality 85% '$destination.*.tmp.jpg' -append '$destination'\";\n shell_exec($command);\n $command = \"rm -f $destination.*.tmp.jpg\";\n shell_exec($command);\n } else {\n $command .= \" -quality 85% '$source'\";\n if ($size) {\n $command .= \" -resize $size\\>\";\n }\n $command .= \" '$destination'\";\n shell_exec($command);\n }\n }", "title": "" }, { "docid": "c1ceb37592fd0d60e71ed9d6dc18e33f", "score": "0.59851533", "text": "function createthumb($name,$filename,$new_w,$new_h) {\r\n\r\n\tif (file_exists($name)) {\r\n\t\tif(!MakeDirectory(dirname($filename), 0777,true)) {\r\n\t\t\techo \"Error: \".$thumbsfolder.\" Does not exist and could not be created.<BR>\";\r\n\t\t}\r\n\t} else {\r\n\t\techo $name.\" does not exist. Cannot generate thumbnails.\";\r\n\t\treturn;\r\n\t}\r\n\t\r\n\t$system=explode(\".\",$name);\r\n\t$src_img=\"\";\r\n\tif (preg_match(\"/jpg|jpeg|JPG|JPEG/\",$system[1])) {\r\n\t\t$src_img=imagecreatefromjpeg($name);\r\n\t}\r\n\tif (preg_match(\"/png|PNG/\",$system[1])) {\r\n\t\t$src_img=imagecreatefrompng($name);\r\n\t}\r\n\t$old_x=imageSX($src_img);\r\n\t$old_y=imageSY($src_img);\r\n\t\r\n\tif ($old_x > $old_y) \r\n\t{\r\n\t\t$thumb_w=$new_w;\r\n\t\t$thumb_h=$old_y*($new_h/$old_x);\r\n\t}\r\n\tif ($old_x < $old_y) \r\n\t{\r\n\t\t$thumb_w=$old_x*($new_w/$old_y);\r\n\t\t$thumb_h=$new_h;\r\n\t}\r\n\tif ($old_x == $old_y) \r\n\t{\r\n\t\t$thumb_w=$new_w;\r\n\t\t$thumb_h=$new_h;\r\n\t}\r\n\t\r\n\t$dst_img=ImageCreateTrueColor($thumb_w,$thumb_h);\r\n\timagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y); \r\n\tif (preg_match(\"/png/\",$system[1])) {\r\n\t\timagepng($dst_img,$filename); \r\n\t} else {\r\n\t\timagejpeg($dst_img,$filename); \r\n\t}\r\n\timagedestroy($dst_img); \r\n\timagedestroy($src_img); \r\n}", "title": "" }, { "docid": "adea158a01eea5b0e73a38b4ffd6b835", "score": "0.5984311", "text": "function make_thumb($src, $dest) {\n\t$source_image = imagecreatefromjpeg($src);\n\t$width = imagesx($source_image);\n\t$height = imagesy($source_image);\n\t\n\t// finds the desired height relative to the desired width \n\t$desired_width = 128;\n\t$desired_height = floor($height * ($desired_width / $width));\n\t\n\t// create a new \"virtual\" image \n\t$virtual_image = imagecreatetruecolor($desired_width, $desired_height);\n\t\n\t// copy source image at a resized size \n\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\n\t\n\t// create the physical thumbnail image to its destination \n\timagejpeg($virtual_image, $dest);\n}", "title": "" }, { "docid": "56580c78f2413030bad5669996a06ee6", "score": "0.59842676", "text": "static function thumb($filename, $width, $height, $options = []) {\n \n if (isset($options['root'])) {\n $root = $options['root'];\n } else {\n $root = \\Yii::getAlias('@uploads');\n }\n if (!is_file($root . $filename)) {\n $filename = '/empty.jpg';\n }\n\n $extension = pathinfo($filename, PATHINFO_EXTENSION);\n\n $old_image = $filename;\n $new_image = '/cache/' . md5(substr($filename, 0, strrpos($filename, '.')) . '-' . $width . 'x' . $height) . '.' . $extension;\n\n if (!is_file($root . $new_image) || (filectime($root . $old_image) > filectime($root . $new_image))) {\n $path = '';\n\n $directories = explode('/', dirname(str_replace('../', '', $new_image)));\n\n foreach ($directories as $directory) {\n $path = $path . '/' . $directory;\n\n if (!is_dir($root . $path)) {\n @mkdir($root . $path, 0777);\n }\n }\n\n list($width_orig, $height_orig) = getimagesize($root . $old_image);\n\n if ($width_orig != $width || $height_orig != $height) {\n $image = new CoreImage($root . $old_image);\n $image->resize($width, $height);\n if (isset($options['quality'])) {\n $image->save($root . $new_image, $options['quality']);\n } else {\n $image->save($root . $new_image);\n }\n } else {\n copy($root . $old_image, $root . $new_image);\n }\n }\n\n if (isset($options['webroot'])) {\n return Url::to($options['webroot'] . $new_image);\n } else {\n return Url::to('@webuploads' . $new_image);\n }\n \n }", "title": "" }, { "docid": "d2d7f6d93b7fec67c200128083ae6151", "score": "0.5983837", "text": "function imageResize($sourch,$destination,$width,$height,$method)\n\t{\n\t\t\n\t\t$source = \\Tinify\\fromUrl($sourch);\n\t\t\n\t\tif($method=='scale'){\n\t\t\tif($width!='' && $height!=''){\n\t\t\t\t$resized = $source->resize(array(\n\t\t\t\t\"method\" => $method,\n\t\t\t\t\"width\" => $width\n\t\t\t));\n\t\t\t}\n\t\t}else{\n\t\t\t\t\t\t\n\t\t\t$resized = $source->resize(array(\n\t\t\t\t\"method\" => $method,\n\t\t\t\t\"width\" => $width,\n\t\t\t\t\"height\" => $height\n\t\t\t));\n\t\t}\n\t\t$resized->toFile($destination);\n\t\t\n\t\treturn $resized;\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c63e7e1b2559635ebfc6e5fcb604a1bf", "score": "0.5978319", "text": "public function make_thumb($src, $dest, $desired_width) {\n $source_image = imagecreatefromjpeg($src);\n $width = imagesx($source_image);\n $height = imagesy($source_image);\n\n /* find the \"desired height\" of this thumbnail, relative to the desired width */\n $desired_height = floor($height * ($desired_width / $width));\n\n /* create a new, \"virtual\" image */\n $virtual_image = imagecreatetruecolor($desired_width, $desired_height);\n\n /* copy source image at a resized size */\n imagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\n\n /* create the physical thumbnail image to its destination */\n imagejpeg($virtual_image, $dest);\n }", "title": "" }, { "docid": "2dbf4ac5b592604a036a841f03f954e3", "score": "0.59765184", "text": "function resizeImage($fileNameSrc, $size = null, $params = null, $fileNameDst = null){\r\n if($size === null){\r\n $size = $this->size;\r\n }\r\n \r\n //jesli nie podano pliku przeznaczenia - przeskaluj zrodlo\r\n $fileNameDst = ($fileNameDst)?$fileNameDst:$fileNameSrc;\r\n \r\n $absolutePath = (!empty($params['absolutePath']))?true:false;\r\n $jpgQuality = (!empty($params['quality']))?$params['quality']:$this->jpgQuality;\r\n $jpgQuality = (!empty($params['jpgQuality']))?$params['jpgQuality']:$jpgQuality;\r\n \r\n $urlDst = $this->getImageUrl($fileNameDst);\r\n \r\n if(!$absolutePath){\r\n //create full path\r\n $fileNameSrc = WWW_ROOT.\"files\".DS.$fileNameSrc;\r\n $fileNameDst = WWW_ROOT.\"files\".DS.$fileNameDst;\r\n }\r\n\r\n //debug($fileNameSrc);\r\n\r\n //check if the src file exists\r\n if (!file_exists($fileNameSrc) || !is_file($fileNameSrc) || !is_readable($fileNameSrc)){ \r\n $tempArray = explode('webroot'.DS.'files'.DS,$fileNameSrc);\r\n $tempArray = explode(DS,$tempArray[1]);\r\n //debug($tempArray);\r\n $fileNameSrc = WWW_ROOT.\"files\".DS.$tempArray[0].DS.'brak_zdjecia.png';\r\n \r\n if (!file_exists($fileNameSrc) || !is_file($fileNameSrc) || !is_readable($fileNameSrc)){ \r\n //debug('Source file not exist, or is not readable.');\r\n $this->log(\"IMAGE VENDOR: Source file \".$fileNameSrc.\" not exist, or is not readable.\");\r\n return false; \r\n }\r\n }\r\n //check if the dest dir is writable;\r\n $destDir = dirname($fileNameDst);\r\n if (!is_writeable($destDir)) {\r\n $result = @mkdir($destDir, 0777) | @chmod($destDir, 0777);\r\n if (!$result) {\r\n// debug('Destination dir is not writable.');\r\n $this->log('IMAGE VENDOR: Destination dir '.$destDir.' is not writable.');\r\n return false;\r\n }\r\n }\r\n\r\n $srcData = list($srcWidth, $srcHeight, $srcImageType) = getimagesize($fileNameSrc);\r\n\r\n if($srcImageType != IMAGETYPE_GIF && $srcImageType != IMAGETYPE_JPEG && $srcImageType != IMAGETYPE_PNG){\r\n $this->log('IMAGE VENDOR: Not supported image type: \"'.$srcImageType.'\".');\r\n return false;\r\n }\r\n\r\n $destX = 0;\r\n $destY = 0;\r\n $srcX = 0;\r\n $srcY = 0;\r\n if(empty($size['width']) || empty($size['height'])){\r\n //Simple resample. One dimension is computed from other.\r\n if(empty($size['width'])){\r\n $destHeight = $size['height'];\r\n $destWidth = number_format(($srcWidth/$srcHeight)*$size['height'],0,',','');\r\n } elseif(empty($size['height'])){\r\n $destWidth = $size['width'];\r\n $destHeight = number_format(($srcHeight/$srcWidth)*$size['width'],0,',','');\r\n }\r\n } elseif(!$this->maintainAspectRatio) {\r\n $destWidth = $size['width'];\r\n $destHeight = $size['height'];\r\n }\r\n \r\n elseif($this->crop) {\r\n list($srcX, $srcY, $destWidth, $destHeight, $srcWidth, $srcHeight) = $this->cropCords($size,$srcData);\r\n \r\n } elseif(empty($this->backgroundColor)){\r\n $destWidth = $size['width'];\r\n $destHeight = $size['height'];\r\n\r\n $ratioX = $size['width']/$srcWidth;\r\n $ratioY = $size['height']/$srcHeight;\r\n\r\n// $co_x = $max_width/$width;\r\n// $co_y = $max_height/$height;\r\n \r\n if ( ($srcWidth<=$destWidth) && ($srcHeight<=$destHeight) && $this->rescaleUp == false){\r\n $destWidth = $srcWidth;\r\n $destHeight = $srcHeight;\r\n }\r\n elseif (($ratioX * $srcHeight)< $destHeight){\r\n $destHeight = ceil($ratioX * $srcHeight);\r\n }\r\n else {\r\n $destWidth = ceil($ratioY * $srcWidth);\r\n }\r\n }\r\n\r\n $dest = imagecreatetruecolor($destWidth, $destHeight);\r\n $this->lastDstSize = array(0=>$destWidth, 1=>$destHeight, 2=>$srcImageType, 3=>' height=\"'.$destHeight.'\" width=\"'.$destWidth.'\" ');\r\n// imageantialias($dest, TRUE);\r\n\r\n switch($srcImageType) {\r\n case IMAGETYPE_GIF:\r\n $src = imagecreatefromgif($fileNameSrc);\r\n break;\r\n case IMAGETYPE_JPEG:\r\n $src = imagecreatefromjpeg($fileNameSrc);\r\n break;\r\n case IMAGETYPE_PNG:\r\n imagealphablending($dest, false); // setting alpha blending on\r\n imagesavealpha($dest, true);\r\n $src = imagecreatefrompng($fileNameSrc);\r\n break;\r\n default:\r\n $this->log('IMAGE VENDOR: Not supported image type: \"'.$srcImageType.'\".');\r\n return false;\r\n break;\r\n }\r\n// imagecopyresampled( dst, src, dst_x, dst_y, src_x, src_y, dst_w, int dst_h, int src_w, int src_h )\r\n if(!imagecopyresampled($dest, $src, $destX, $destY, $srcX, $srcY, $destWidth, $destHeight, $srcWidth, $srcHeight)){\r\n $this->log('IMAGE VENDOR: Resampling failed: imagecopyresampled($dest, $src, $destX, $destY, $srcX, $srcY, $destWidth, $destHeight, $srcWidth, $srcHeight)');\r\n $this->log(\"IMAGE VENDOR: With this params: imagecopyresampled(dest, src, $destX, $destY, $srcX, $srcY, $destWidth, $destHeight, $srcWidth, $srcHeight)\");\r\n return false;\r\n }\r\n imagedestroy($src);\r\n \r\n switch($srcImageType) {\r\n case IMAGETYPE_GIF:\r\n $result = imagegif($dest,$fileNameDst);\r\n break;\r\n case IMAGETYPE_JPEG:\r\n $result = imagejpeg($dest,$fileNameDst, $jpgQuality);\r\n break;\r\n case IMAGETYPE_PNG:\r\n $result = imagepng($dest,$fileNameDst);\r\n }\r\n\r\n imagedestroy($dest);\r\n \r\n if(!$result){\r\n $this->log('IMAGE VENDOR: Saving file '.$fileNameDst.' failed.');\r\n return false;\r\n }\r\n\r\n @chmod($fileNameDst, 0777); \r\n\r\n\r\n return $urlDst;\r\n }", "title": "" }, { "docid": "6f87f1f8a9d05e2e98dc4ed6294e14bf", "score": "0.5971903", "text": "function imagecopyresized($dst_im,$src_im,$dst_x,$dst_y,$src_x,$src_y,$dst_w,$dst_h,$src_w,$src_h)\n{\n}", "title": "" }, { "docid": "51ad1e3dfa19ed1fb866d73d28953dfd", "score": "0.5969268", "text": "public function create_thumb( $nsize ) {\n \n // Call the CROP IMAGE method, which does the work of cropping.\n $this->crop_image( $nsize );\n \n // Create the path for the SAVE IMAGE method.\n $extension = strrchr( $this->file_name, '.' );\n $path = substr_replace( $this->file_name, '_thumb' . $nsize, strrpos( $this->file_name, '.' ) ) . $extension;\n \n // Call the SAVE IMAGE method, which saves the image, as you might guess.\n $this->save_image( $path );\n }", "title": "" }, { "docid": "760c434cb342710774bf518418374133", "score": "0.59621227", "text": "function resizeImage($image,$width,$height,$scale) {\r\n $newImageWidth = ceil($width * $scale);\r\n $newImageHeight = ceil($height * $scale);\r\n $newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);\r\n $source = imagecreatefromjpeg($image);\r\n imagecopyresampled($newImage,$source,0,0,0,0,$newImageWidth,$newImageHeight,$width,$height);\r\n imagejpeg($newImage,$image,90);\r\n chmod($image, 0777);\r\n return $image;\r\n}", "title": "" }, { "docid": "bf51255cd4a2a1a964eac1593e2eb645", "score": "0.59611636", "text": "private function SaveAsJPG($SOURCE,$DEST,$FILENAME)\n {\n $image_info = $image_info = getimagesize($SOURCE.$FILENAME);\n $image_type = $image_info[2]; \n if($image_type == IMAGETYPE_JPEG)\n {\n $image = imagecreatefromjpeg($SOURCE.$FILENAME);\n }\n elseif($image_type == IMAGETYPE_PNG)\n {\n $image = imagecreatefrompng($SOURCE.$FILENAME);\n }\n else\n {\n $image = imagecreatefromwbmp($SOURCE.$FILENAME); \n }\n \n $image_width = imagesx($image);\n $image_height = imagesy($image); \n $new_image = imagecreatetruecolor($image_width , $image_height);\n imagecopyresampled($new_image,$image,0,0,0,0,$image_width,$image_height,$image_width,$image_height);\n imagejpeg($new_image,$DEST.$FILENAME,JPG_QTY);\n }", "title": "" }, { "docid": "17808e8a5d9a3bd195a2c393f3ee5024", "score": "0.59566504", "text": "public function resizeImage($newWidth, $newHeight, $option=\"auto\")\n\t{\n\t\t$optionArray = $this->getDimensions($newWidth, $newHeight, $option);\n\n\t\t$optimalWidth = $optionArray['optimalWidth'];\n\t\t$optimalHeight = $optionArray['optimalHeight'];\n\n\n\t\t// *** Resample - create image canvas of x, y size\n\t\t$this->imageResized = imagecreatetruecolor($optimalWidth, $optimalHeight);\n\n\t\tif($this->extension == '.png' || $this->extension == '.gif')\n\t\t{\n\t\t\timagecolortransparent($this->imageResized, imagecolorallocatealpha($this->imageResized, 0, 0, 0, 127));\n\t\t\timagealphablending($this->imageResized, false);\n\t\t\timagesavealpha($this->imageResized, true);\n\t\t}\n\t\t imagecopyresampled($this->imageResized, $this->image, 0, 0, 0, 0, $optimalWidth, $optimalHeight, $this->width, $this->height);\n\t\t// *** if option is 'crop', then crop too\n\t\tif ($option == 'crop') {\n\t\t\t$this->crop($optimalWidth, $optimalHeight, $newWidth, $newHeight);\n\t\t}\n\t}", "title": "" }, { "docid": "0e7caca82100117951b2338cee95a983", "score": "0.59506446", "text": "function resize($width, $height){\r\n list($w, $h) = getimagesize($_FILES['car']['tmp_name']);\r\n /* calculate new image size with ratio */\r\n $ratio = max($width/$w, $height/$h);\r\n $h = ceil($height / $ratio);\r\n $x = ($w - $width / $ratio) / 2;\r\n $w = ceil($width / $ratio);\r\n /* new file name */\r\n $path = 'cars/'.$_FILES['car']['name'];\r\n \r\n echo\"<br>\";\r\n /* read binary data from image file */\r\n $imgString = file_get_contents($_FILES['car']['tmp_name']);\r\n /* create image from string */\r\n $car = imagecreatefromstring($imgString);\r\n $tmp = imagecreatetruecolor($width, $height);\r\n imagecopyresampled($tmp, $car,\r\n 0, 0,\r\n $x, 0,\r\n $width, $height,\r\n $w, $h);\r\n /* Save image */\r\n switch ($_FILES['car']['type']) {\r\n case 'image/jpeg':\r\n imagejpeg($tmp, $path, 100);\r\n break;\r\n case 'image/png':\r\n imagepng($tmp, $path, 0);\r\n break;\r\n case 'image/gif':\r\n imagegif($tmp, $path);\r\n break;\r\n default:\r\n exit;\r\n break;\r\n }\r\n\r\n\r\n return $path;\r\n /* cleanup memory */\r\n \r\n}", "title": "" }, { "docid": "f4896af460e267b1fa2aef098e06ace0", "score": "0.5950604", "text": "function make_thumb($image, $target_file, $image_type, $width, $height ) {\n //list($width, $height) = getimagesize($image);\n\n //setup the new size of the image\n $ratio = $width/$height;\n $new_height = 100;\n $new_width = $new_height * $ratio;\n\n //move the file in the new location\n //move_uploaded_file($image, $target_file);\n \n // resample the image \n \n $new_image = imagecreatetruecolor($new_width, $new_height);\n\n\t\tswitch(strtolower($image_type))\n\t\t{\n\t\t\tcase 'image/png':\n\t\t\t\t$old_image = imagecreatefrompng($image);\t\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 'image/gif':\n\t\t\t\t$old_image = imagecreatefromgif($image);\t\t\t\t\t\n\t\t\t\tbreak;\t\t\t\n\t\t\tcase 'image/jpeg':\n\t\t\tcase 'image/pjpeg':\n\t\t\t\tif( !$old_image = imagecreatefromjpeg($image) ) return false;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\t\t\n\t \n //$old_image = imagecreatefromjpeg($image);\n imagecopyresampled($new_image,$old_image,0,0,0,0,$new_width, $new_height, $width, $height); \n\n //output\n imagejpeg($new_image, $target_file, 50 );\n return true;\n}", "title": "" }, { "docid": "59782f335955c8e44af50c480169f997", "score": "0.5949379", "text": "function resizeImage($filename, $filesizes) {\n /// $imagick = new \\Imagick(realpath($imagePath));\n /// https://stackoverflow.com/questions/34687115/image-color-ruined-while-resizing-it-using-imagecopyresampled;\n\n\n\n list($width, $height) = getimagesize( $filename);\n\n //split filename on the dot.\n $extractFile = $this->extractFilename($filename , '/');\n $folder = $extractFile[0] . '/';\n $fileExt = $this->extractFilename(substr($extractFile[1], 1), '.');\n\n foreach ($filesizes as $key => $maxWidth) {\n\n $useUploadFolder = $folder . '_'. $key ;\n $this->createFolderIfnotExist($useUploadFolder);\n\n $thumbFilename = $useUploadFolder . '/' . $fileExt[0] . $fileExt[1];\n\n if(file_exists($thumbFilename) && !$this->overwrite){\n $thumbFilename = $useUploadFolder . '/' . $fileExt[0] . '-' . date('ymdHis'). $fileExt[1];\n }\n\n // calculate new sizes\n $percent = ($maxWidth / $width);\n if($percent > 1){\n $percent = 1;\n }\n $newwidth = $width * $percent;\n $newheight = $height * $percent;\n\n // Load\n $thumb = imagecreatetruecolor($newwidth, $newheight);\n\n if($fileExt[1] === '.png'){\n $source = imagecreatefrompng( $filename);\n imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);\n imagepng($thumb, $thumbFilename , 9);\n }else if($fileExt[1] === '.gif'){\n $source = imagecreatefromgif( $filename);\n imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);\n imagegif($thumb, $thumbFilename );\n }else{\n $source = imagecreatefromjpeg( $filename);\n imagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);\n imagejpeg($thumb, $thumbFilename , 100);\n }\n\n imagedestroy($thumb);\n $this->success[] = [$thumbFilename,$newwidth, $newheight];\n }\n }", "title": "" }, { "docid": "fd3ed844993f55af7fc3d0b4d0cf010f", "score": "0.5948925", "text": "function normal_resize_image($source, $destination, $image_type, $max_size, $image_width, $image_height, $quality){\n \n if($image_width <= 0 || $image_height <= 0){return false;} //return false if nothing to resize\n \n //do not resize if image is smaller than max size\n if($image_width <= $max_size && $image_height <= $max_size){\n if(save_image($source, $destination, $image_type, $quality)){\n return true;\n }\n }\n \n //Construct a proportional size of new image\n $image_scale = min($max_size/$image_width, $max_size/$image_height);\n $new_width = ceil($image_scale * $image_width);\n $new_height = ceil($image_scale * $image_height);\n \n $new_canvas = imagecreatetruecolor( $new_width, $new_height ); //Create a new true color image\n \n //Copy and resize part of an image with resampling\n if(imagecopyresampled($new_canvas, $source, 0, 0, 0, 0, $new_width, $new_height, $image_width, $image_height)){\n save_image($new_canvas, $destination, $image_type, $quality); //save resized image\n }\n\n return true;\n}", "title": "" }, { "docid": "ee3e25343b17dc284bbc30e59b8b96e2", "score": "0.5944623", "text": "function resize($width, $height){\r\n\t/* Get original image x y*/\r\n\tlist($w, $h) = getimagesize($_FILES['SmallImage']['tmp_name']);\r\n\t/* calculate new image size with ratio */\r\n\t$ratio = max($width/$w, $height/$h);\r\n\t$h = ceil($height / $ratio);\r\n\t$x = ($w - $width / $ratio) / 2;\r\n\t$w = ceil($width / $ratio);\r\n\t/* new file name */\r\n\t$path = '../Upload/'.$width.'x'.$height.'_'.$_FILES['SmallImage']['name'];\r\n\t$image_name=$resize_image=$_FILES['SmallImage']['name'];\r\n\r\n\t/* read binary data from image file */\r\n\t$imgString = file_get_contents($_FILES['SmallImage']['tmp_name']);\r\n\t/* create image from string */\r\n\t$image = imagecreatefromstring($imgString);\r\n\t$tmp = imagecreatetruecolor($width, $height);\r\n\timagecopyresampled($tmp, $image,\r\n \t0, 0,\r\n \t$x, 0,\r\n \t$width, $height,\r\n \t$w, $h);\r\n\t/* Save image */\r\n\tswitch ($_FILES['SmallImage']['type']) {\r\n\t\tcase 'image/jpeg':\r\n\t\t\timagejpeg($tmp, $path, 100);\r\n\t\t\tbreak;\r\n\t\tcase 'image/png':\r\n\t\t\timagepng($tmp, $path, 0);\r\n\t\t\tbreak;\r\n\t\tcase 'image/gif':\r\n\t\t\timagegif($tmp, $path);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\texit;\r\n\t\t\tbreak;\r\n\t} \r\n\treturn $path;\r\n\t\r\n\t\r\n\t/* cleanup memory */\r\n\timagedestroy($image);\r\n\timagedestroy($tmp);\r\n}", "title": "" }, { "docid": "79d544cb6eddf24da7f717fa36fba87c", "score": "0.59417653", "text": "function files_resizeImg($fileName, $sizes = array()) {\n\n # Base name without extention\n $fileParts = pathinfo($fileName);\n\n $baseName = $fileParts['filename'];\n\n # Create the new image\n $newImage = new \\Eventviva\\ImageResize($fileName);\n\n if (is_array($sizes)) {\n foreach ($sizes as $size) {\n grace_debug(\"Creating a new version of the image: \" . $size);\n $newImage->resizeToMax($size);\n $newImage->save(str_replace($baseName, $baseName . \"_\" . $size, $fileName));\n }\n } else {\n grace_debug(\"Resizing image and keeping the same name\");\n $newImage->resizeToMax($sizes);\n $newImage->save($fileName);\n }\n\n return true;\n}", "title": "" }, { "docid": "43cb289a6435f59ad47a9961d60d9a0c", "score": "0.59411526", "text": "function saveThumbnail ($filename)\r\n \t{\r\n \t\r\n \t $handle = fopen($filename, 'a');\r\n \t \r\n \t fwrite($handle, $this->image);\r\n \t \r\n \t fclose($handle);\r\n \t\r\n \t}", "title": "" }, { "docid": "c873d512e18dd40194dd88363d4d0ee4", "score": "0.5940764", "text": "public function make_thumb($src, $dest, $desired_width)\n {\n $source_image = imagecreatefromjpeg($src);\n $width = imagesx($source_image);\n $height = imagesy($source_image);\n\n /* find the \"desired height\" of this thumbnail, relative to the desired width */\n $desired_height = floor($height * ($desired_width / $width));\n\n /* create a new, \"virtual\" image */\n $virtual_image = imagecreatetruecolor(\n $desired_width,\n $desired_height\n );\n\n /* copy source image at a resized size */\n imagecopyresampled(\n $virtual_image,\n $source_image,\n 0,\n 0,\n 0,\n 0,\n $desired_width,\n $desired_height,\n $width,\n $height\n );\n\n /* create the physical thumbnail image to its destination */\n imagejpeg(\n $virtual_image,\n $dest,\n 100\n );\n }", "title": "" }, { "docid": "33f1d18ded2e9e724f86cf370f790626", "score": "0.5937522", "text": "function make_thumb($src, $dest, $desired_width) {\n\ttry {\n\t\tif ( ($source_image = imagecreatefromjpeg($src)) === false) {\n\t\t\treturn false;\n\t\t}\t\n\t\t$width = imagesx($source_image);\n\t\t$height = imagesy($source_image);\n\t\t\n\t\t/* find the \"desired height\" of this thumbnail, relative to the desired width */\n\t\t$desired_height = floor($height * ($desired_width / $width));\n\t\t\n\t\t/* create a new, \"virtual\" image */\n\t\t$virtual_image = imagecreatetruecolor($desired_width, $desired_height);\n\t\t\n\t\t/* copy source image at a resized size */\n\t\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);\n\t\t\n\t\t/* create the physical thumbnail image to its destination */\n\t\treturn imagejpeg($virtual_image, $dest);\n\t}\n\tcatch (Exception $e) {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "e17d85d7954bd072fd3f796ea6b36da5", "score": "0.59357285", "text": "function makeImages($destination, $name, $extension)\n{\n\t$sizes = \\App\\Admin\\Setting::getAllSettings()['images'];\n\n\t$img = Image::make($destination . $name . $extension);\n\n\t$img->backup();\n\n\tforeach($sizes as $key => $val){\n\t\t$img->fit($val['width'], $val['height'], function($const){\n\t\t\t$const->upsize();\n\t\t});\n\n\t\t$img->save($destination . $name . '_' . $key . $extension);\n\n\t\t$img->reset();\n\t}\t\n}", "title": "" }, { "docid": "de39005b2c2e0200cec8fa56d16454a4", "score": "0.592793", "text": "function image_resize ($file_content, $crop, $width, $height, $new_width, $new_height) {\n if ($new_width < 1 || $new_height < 1) {\n throw new Exception('specified size too small');\n } else if ($width<$new_width || $height<$new_height) {\n throw new Exception('too small');\n } else {\n $dst = imagecreatetruecolor($new_width, $new_height);\n $src_x = 0;\n $src_y = 0;\n if ($crop) {\n $ratio = $width / $height;\n $new_ratio = $new_width / $new_height;\n if ($ratio > $new_ratio) {\n $width = ceil($new_ratio * $height);\n } else if ($ratio < $new_ratio) {\n $height = ceil($width / $new_ratio);\n }\n }\n imagecopyresampled($dst, $file_content, 0, 0, $src_x, $src_y, $new_width, $new_height, $width, $height);\n return $dst;\n }\n}", "title": "" }, { "docid": "45bc40d8a2c6a3cec23334316ee5ea14", "score": "0.5921058", "text": "function ImageResize($FileName='') {\r\n\t\t$this->FileName= $FileName;\r\n\t}", "title": "" }, { "docid": "5984b5b109e96e9fddc451f742073901", "score": "0.5916316", "text": "static function resize_fit($old_filename, $new_filename, $new_width, $new_height, $background) {\n\n\t\t$imagesize = getimagesize($old_filename);\n\t\t$width = $imagesize[0];\n\t\t$height = $imagesize[1];\n\n\t\t$mime = Image::get_mime($imagesize['mime']);\n\n\t\t$input_func = \"imagecreatefrom$mime\";\n\t\t$output_func = \"image$mime\";\n\n\t\t$new_img = imagecreatetruecolor($new_width, $new_height);\n\n\t\t// Convert hex colour to RGB\n\t\t$background = array(base_convert(substr($background, 0, 2), 16, 10), base_convert(substr($background, 2, 2), 16, 10), base_convert(substr($background, 4, 2), 16, 10));\n\t\t$bg = imagecolorallocate($new_img, $background[0], $background[1], $background[2]);\n\n\t\tif (($width / $height) >= ($new_width / $new_height)) {\n\t\t\t// by width\n\t\t\t$nw = $new_width;\n\t\t\t$nh = $height * ($new_width / $width);\n\t\t\t$nx = 0;\n\t\t\t$ny = round(abs($new_height - $nh) / 2);\n\t\t} else {\n\t\t\t// by height\n\t\t\t$nw = $width * ($new_height / $height);\n\t\t\t$nh = $new_height;\n\t\t\t$nx = round(abs($new_width - $nw) / 2);\n\t\t\t$ny = 0;\n\t\t}\n\n\t\tif($mime == \"png\"){\n\n\t\t\t//deal with png transparencies\n\n\t\t\t$alphablending = false;\n\t\t\t$old_img = imagecreatefrompng($old_filename);\n\n\t\t\timagealphablending($old_img, true);\n\t\t\timagesavealpha($old_img, true);\n\n\t\t\tImageColorTransparent($new_img, $bg);\n\t\t\timagealphablending($new_img, $alphablending);\n\t\t\timagesavealpha($new_img, true);\n\n\t\t\timagecopyresampled($new_img, $old_img, $nx, $ny, 0, 0, $nw, $nh, $width, $height);\n\n\t\t\t$success = $output_func($new_img, $new_filename);\n\n\t\t} else {\n\n\t\t\t$old_img = $input_func($old_filename);\n\n\t\t\timagefill($new_img, 0, 0, $bg);\n\t\t\timagecopyresampled($new_img, $old_img, $nx, $ny, 0, 0, $nw, $nh, $width, $height);\n\n\t\t\t$success = $output_func($new_img, $new_filename, 100);\n\n\t\t}\n\n\t\t@chmod($new_filename, 0777);\n\n\t\timagedestroy($old_img);\n\t\timagedestroy($new_img);\n\n\t\treturn $success;\n\n\t}", "title": "" }, { "docid": "e92e75c6d819d4c6702f1324052de7b8", "score": "0.5915962", "text": "function resizeImage($width = 100, $append = \"t\", $forceResize = false, $newPath = \"\"){\n\n\t\t$path = $this->getSmallestPath($width);\n\n\t\t//make sure the source image exists\n\t\tif($path == \"\")\n\t\t\treturn false;\n\t\tif(!fileutil::file_exists_incpath($path))\n\t\t\treturn false;\n\n\t\t//create a source image object to work with\n\t\t$ext = fileutil::getExt($this->path);\n\t\tif ( preg_match(\"/jpg|jpeg/\", $ext))\n\t\t\t$src_img=imagecreatefromjpeg($this->path);\n\t\tif ( preg_match(\"/png/\", $ext))\n\t\t\t$src_img=imagecreatefrompng($this->path);\n\n\t\t//determine what the size of the image should be\n\t\t$old_x=imageSX($src_img);\n\t\t$old_y=imageSY($src_img);\n\n\t\t//if we are trying to enlarge a smaller image, return the largest image\n\t\t//we already have instead\n\t\tif($old_x < $width && !$forceResize)\n\t\t\treturn $this->path;\n\n\t\t//resize the image based on the new width\n\t\t$thumb_w = $width;\n\t\t$thumb_h = ($width * $old_y) / $old_x;\n\n\n\t\t//create the temporary thumbnail performing a resize (keeping proportions)\n\t\t$temp_img=ImageCreateTrueColor($thumb_w,$thumb_h);\n\t\timagecopyresampled( $temp_img, $src_img, 0, 0, 0, 0, $thumb_w, $thumb_h, $old_x, $old_y );\n\n\t\t//determine where to save the file\n\t\tif($newPath == \"\") {\n\t\t\t$newPath = $this->trimAppended($path);\n\t\t}\n\t\tif($append!=\"\")\n\t\t\t$newPath = fileutil::stripExt($newPath).\"_$append\".\".\".$ext;\n\n\t\t$filename = $newPath;\n\n\t\tif (preg_match(\"/png/\",$ext) )\n\t\t\t$ok = imagepng($temp_img,$filename);\n\t\telse\n\t\t\t$ok = imagejpeg($temp_img,$filename);\n\n\t\t//clean up resources\n\t\timagedestroy($temp_img);\n\t\timagedestroy($src_img);\n\n\t\tif ($ok)\n\t\t\treturn $filename;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4d69164d9947d67d7b21618f6bb4e66d", "score": "0.5907137", "text": "function imagecopyresized($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h)\n{\n}", "title": "" }, { "docid": "c1b9b01eaa5adfec2ce6d02d8be2c60a", "score": "0.5902487", "text": "public static function resample($source_filename, $dest_filename, $width = null, $height = null, $maintain_ratio = true)\r\n\t{\r\n\t\tif (! $width && ! $height) {\r\n\t\t\t$width = Zend_Registry::get('config')->get('resample_maxwidth');\r\n\t\t\t$height = Zend_Registry::get('config')->get('resample_maxheight');\r\n\t\t}\r\n\t\t\r\n\t\t// Get new dimensions\r\n\t\tlist ($width_orig, $height_orig) = getimagesize($source_filename);\r\n\t\t\r\n\t\t// Use the same image if image is smaller\r\n\t\tif ($maintain_ratio && $width_orig <= $width && $height_orig <= $height) {\r\n\t\t\tcopy($source_filename, $dest_filename);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tif ($maintain_ratio) {\r\n\t\t\t$ratio_orig = $width_orig / $height_orig;\r\n\t\t\t\r\n\t\t\tif ($width / $height > $ratio_orig) {\r\n\t\t\t\t$width = $height * $ratio_orig;\r\n\t\t\t} else {\r\n\t\t\t\t$height = $width / $ratio_orig;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$extension = strtolower(pathinfo($source_filename, PATHINFO_EXTENSION));\r\n\t\t\r\n\t\tswitch ($extension) {\r\n\t\t\tcase 'gif':\r\n\t\t\t\t$image_p = imagecreatetruecolor($width, $height);\r\n\t\t\t\t$image = imagecreatefromgif($source_filename);\r\n\t\t\t\timagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);\r\n\t\t\t\timagegif($image_p, $dest_filename);\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'jpg':\r\n\t\t\tcase 'jpeg':\r\n\t\t\t\t$image_p = imagecreatetruecolor($width, $height);\r\n\t\t\t\t$image = imagecreatefromjpeg($source_filename);\r\n\t\t\t\timagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);\r\n\t\t\t\t\r\n\t\t\t\timagejpeg($image_p, $dest_filename, 75);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'png':\r\n\t\t\t\t$image_p = imagecreatetruecolor($width, $height);\r\n\t\t\t\timagealphablending($image_p, false);\r\n\t\t\t\timagesavealpha($image_p, true);\r\n\t\t\t\t$image = imagecreatefrompng($source_filename);\r\n\t\t\t\timagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);\r\n\t\t\t\timagepng($image_p, $dest_filename, 9);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "8dbf23d9e13f92005f1ec22bb13e38b4", "score": "0.58880836", "text": "function make_thumb($input_filename, $output_filename, $new_width, $new_height, $CropToFit = false, $Resize = false){\n $src_img = loadimage($input_filename);\n if ($src_img) {\n //gets the dimmensions of the image\n $old_x = imageSX($src_img);\n $old_y = imageSY($src_img);\n\n $ratio1 = $old_x / $new_width;\n $ratio2 = $old_y / $new_height;\n\n $thumb_w = $new_width;\n $thumb_h = $new_height;\n if ($ratio1 > $ratio2) {\n $thumb_h = $old_y / $ratio1;\n } else {\n $thumb_w = $old_x / $ratio2;\n }\n if ($CropToFit) {\n if ($thumb_w < $new_width) {\n $ratio1 = $new_width / $thumb_w;\n $thumb_w = $new_width;\n $thumb_h = $thumb_h * $ratio1;\n } else if ($thumb_h < $new_height) {\n $ratio1 = $new_height / $thumb_h;\n $thumb_w = $thumb_w * $ratio1;\n $thumb_h = $new_height;\n }\n }\n if ($Resize) {\n if ($thumb_w < $new_width) {\n $new_width = $thumb_w;\n }\n if ($thumb_h < $new_height) {\n $new_height = $thumb_h;\n }\n }\n\n $dst_img = ImageCreateTrueColor($new_width, $new_height);\n $ext = \"png\";\n if ($output_filename) {\n $ext = getExtension($output_filename);\n }\n if ($ext == \"png\" || $ext == \"gif\") {//transparent background\n $bgcolor = imagecolorallocatealpha($dst_img, 128, 255, 128, 127);\n imagesavealpha($dst_img, true);\n } else {//white background\n $bgcolor = imagecolorallocate($dst_img, 255, 255, 255);\n }\n imagefill($dst_img, 0, 0, $bgcolor);\n imagealphablending($dst_img, true);\n imageantialias($dst_img, true);\n imagecopyresampled($dst_img, $src_img, ($new_width * 0.5) - ($thumb_w * 0.5), ($new_height * 0.5) - ($thumb_h * 0.5), 0, 0, $thumb_w, $thumb_h, $old_x, $old_y);\n imagedestroy($src_img);\n\n if ($output_filename) {\n $Dir = \"\";\n if (strpos($output_filename, \"/\") === false) {\n $Dir = getdirectory($input_filename) . \"/\";\n }\n switch ($ext) {\n case \"png\":\n imagepng($dst_img, $Dir . $output_filename);\n break;\n default:\n imagejpeg($dst_img, $Dir . $output_filename);\n }\n imagedestroy($dst_img);\n } else {\n return $dst_img;\n }\n return $output_filename;\n }\n }", "title": "" }, { "docid": "e24aaba38941ffcda2b6bdfe948c0872", "score": "0.58825696", "text": "static public function resize($img, $w, $h, $newfilename) {\r\n if (!extension_loaded('gd') && !extension_loaded('gd2')) {\r\n trigger_error(\"GD is not loaded\", E_USER_WARNING);\r\n return false;\r\n }\r\n \r\n //Get Image size info\r\n $imgInfo = getimagesize($img);\r\n switch ($imgInfo[2]) {\r\n case 1: $im = imagecreatefromgif($img); break;\r\n case 2: $im = imagecreatefromjpeg($img); break;\r\n case 3: $im = imagecreatefrompng($img); break;\r\n default: trigger_error('Unsupported filetype!', E_USER_WARNING); break;\r\n }\r\n \r\n //If image dimension is smaller, do not resize\r\n\r\n //yeah, resize it, but keep it proportional\r\n \r\n $nWidth = $w;\r\n \r\n $nHeight = $h;\r\n \r\n\r\n $nWidth = round($nWidth);\r\n $nHeight = round($nHeight);\r\n \r\n $newImg = imagecreatetruecolor($nWidth, $nHeight);\r\n \r\n /* Check if this image is PNG or GIF, then set if Transparent*/ \r\n if(($imgInfo[2] == 1) OR ($imgInfo[2]==3)){\r\n imagealphablending($newImg, false);\r\n imagesavealpha($newImg,true);\r\n $transparent = imagecolorallocatealpha($newImg, 255, 255, 255, 127);\r\n imagefilledrectangle($newImg, 0, 0, $nWidth, $nHeight, $transparent);\r\n }\r\n imagecopyresampled($newImg, $im, 0, 0, 0, 0, $nWidth, $nHeight, $imgInfo[0], $imgInfo[1]);\r\n \r\n //Generate the file, and rename it to $newfilename\r\n switch ($imgInfo[2]) {\r\n case 1: imagegif($newImg,$newfilename); break;\r\n case 2: imagejpeg($newImg,$newfilename); break;\r\n case 3: imagepng($newImg,$newfilename); break;\r\n default: trigger_error('Failed resize image!', E_USER_WARNING); break;\r\n }\r\n \r\n return $newfilename;\r\n}", "title": "" }, { "docid": "6cdd5419659709fb8a1e074c86c49cc9", "score": "0.5879627", "text": "function resizeImage($image,$width,$height,$scale) {\r\n\t$newImageWidth = ceil($width * $scale);\r\n\t$newImageHeight = ceil($height * $scale);\r\n\t$newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);\r\n\t$source = imagecreatefromjpeg($image);\r\n\timagecopyresampled($newImage,$source,0,0,0,0,$newImageWidth,$newImageHeight,$width,$height);\r\n\timagejpeg($newImage,$image,90);\r\n\tchmod($image, 0777);\r\n\treturn $image;\r\n}", "title": "" }, { "docid": "c02edb516fecd580a12c9b2423444993", "score": "0.58773935", "text": "public static function resizeImage($newWidth, $newHeight, $fileName, $extension) {\n\t\t\n\t\t// Get new sizes\n\t\tlist($width, $height) = @getimagesize($fileName);\n\t\tif( $newWidth/$width > 0 ) $newWidth = $width;\n\t\t$newHeightTmp = (int)($height*($newWidth/$width));\n\t\tif( $newHeightTmp > $newHeight ) {\n\t\t\t$newWidth = (int)($width*($newHeight/$height));\n\t\t} else {\n\t\t\t$newHeight = $newHeightTmp;\n\t\t}\n\t\tif( $newHeightTmp > $height ) {\n\t\t\t$newHeight = $height;\n\t\t\t$newWidth = $width;\n\t\t}\n\t\t\n\t\t//create empty image\n\t\t$resizedImg = @imagecreatetruecolor($newWidth, $newHeight);\n\t\t\n\t\t//get content\n\t\tif( $extension == 'jpg' )\n\t\t\t$source = @imagecreatefromjpeg($fileName);\n\t\telseif( $extension == 'png' )\n\t\t\t$source = @imagecreatefrompng($fileName);\n\t\telseif( $extension == 'gif' )\n\t\t\t$source = @imagecreatefromgif($fileName);\n\t\telseif( $extension == 'bmp' )\n\t\t\t$source = @imagecreatefromwbmp($fileName);\n\t\t\n\t\t// Resize\n\t\t@imagecopyresampled($resizedImg, $source, 0, 0, 0, 0, $newWidth, $newHeight, $width, $height);\n\t\t\n\t\t// Output\n\t\t@imagejpeg($resizedImg, $fileName);\n\t\t@imagedestroy($resizedImg);\n\t}", "title": "" } ]
fc2b65d8da661ebffb16feb920a7f5fe
Set the value of Page
[ { "docid": "9a252c9e6fbfce8e9ca5d2c8c2b12113", "score": "0.0", "text": "public function setPage($page)\n {\n $this->page = $page;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "4e35c0def0bc7a91b0b1e63d54de5d45", "score": "0.76935685", "text": "public function setPage($page);", "title": "" }, { "docid": "4e35c0def0bc7a91b0b1e63d54de5d45", "score": "0.76935685", "text": "public function setPage($page);", "title": "" }, { "docid": "1547ce68d8b8b5a4725806c16cd276fb", "score": "0.7407485", "text": "function setPage($thePage) {\n\t\t$this->page = $thePage;\n\t\t$this->page->addVersItem($this->version);\n\t}", "title": "" }, { "docid": "446ac29833ce3bd90afe5f5d97c0a49d", "score": "0.7164691", "text": "public function setPage($value)\n {\n return $this->set(self::page, $value);\n }", "title": "" }, { "docid": "ecf28584f0e1812695c6f9c362708f67", "score": "0.71538377", "text": "function setCurrentPage($page)\r\n {\r\n $this->page = $page;\r\n }", "title": "" }, { "docid": "e7aee4977114f051dc08436fd2221b6c", "score": "0.713922", "text": "public function setPage($page)\n {\n $this->_page = (int)$page;\n }", "title": "" }, { "docid": "faa84a8f913edb99eda73703ecb2862a", "score": "0.70608616", "text": "function setCurrentPage($page)\n {\n $this->page = $page;\n }", "title": "" }, { "docid": "5151fd90364869f2ec61bbd9de5fe8eb", "score": "0.69966817", "text": "public function setPage($value)\n {\n return $this->set(self::PAGE, $value);\n }", "title": "" }, { "docid": "125e96996811a6bb0e78f3016e23165a", "score": "0.698945", "text": "public function setPage($page)\n {\n $this->page = intval($page);\n }", "title": "" }, { "docid": "09ba6bce0e676ebd8cb2461fc553f47a", "score": "0.6987975", "text": "public function setPage($page)\n {\n $this->page = $page;\n // (re-)calculate start rec\n $this->calculateStart();\n }", "title": "" }, { "docid": "70c8a35506b7bb1adb0404172e8944c0", "score": "0.69364613", "text": "public function setPage($page)\n {\n if ($page > 0) $this->page = (int) $page;\n }", "title": "" }, { "docid": "eb4fb29ca3ad6c01be1724e8c54d156d", "score": "0.6910884", "text": "public function setCurrentPage($page);", "title": "" }, { "docid": "eb4fb29ca3ad6c01be1724e8c54d156d", "score": "0.6910884", "text": "public function setCurrentPage($page);", "title": "" }, { "docid": "eb4fb29ca3ad6c01be1724e8c54d156d", "score": "0.6910884", "text": "public function setCurrentPage($page);", "title": "" }, { "docid": "f774a9a8a29721014844cfe1c39716ca", "score": "0.69054353", "text": "function setPageId($value) {\n return $this->setFieldValue('page_id', $value);\n }", "title": "" }, { "docid": "b9007bc8815b0cf7d12338207911067d", "score": "0.68658197", "text": "public static function setPage(string $page)\n {\n self::$page = $page;\n }", "title": "" }, { "docid": "e68453df4470c535ee6f900e8bbf1a2c", "score": "0.6859699", "text": "public function setPageObject(Page $value) : PageVersion\n {\n return $this->setPageId($value->getId());\n }", "title": "" }, { "docid": "5bd23729c3d6cf87411119ffd4121a82", "score": "0.682236", "text": "public function setPage(int $page): self;", "title": "" }, { "docid": "239482ecba93183a9dc7625d455ddbc1", "score": "0.6808417", "text": "protected function setActivePage($value) {\n\t\tif ($value>0) {\n\t\t\t$this->activePage = $value;\n\t\t\t// $this->clearResult();\n\t\t}\n\t}", "title": "" }, { "docid": "d3802e22d24896550466cdb8c30b7bed", "score": "0.6791083", "text": "public function __set($name, $value)\n {\n return $this->page->{$name} = $value;\n }", "title": "" }, { "docid": "23e7887d1e3e0341a25daadd114eae0c", "score": "0.6786406", "text": "public function SetCurrentPage($page)\n\t{\n\t\t$this->page = intval($page);\n\t}", "title": "" }, { "docid": "9a9e4226572ec02c7fc1272e2d42fbed", "score": "0.67411005", "text": "public function setCurrentPage($page) {\n\n\t\t$this->page = $page;\n\t}", "title": "" }, { "docid": "f0a2b5f016519ad8823a0fb62e596066", "score": "0.67280203", "text": "public function page($value) {\n return $this->setProperty('page', $value);\n }", "title": "" }, { "docid": "14213fe34a5a580eed198d7b5eb1c805", "score": "0.6693447", "text": "function setPage($page)\n\t{\n\t\tif ($page === 'all') {\n\t\t\t$this->setPageLen($this->length);\n\t\t\t$this->page = 1;\n\t\t\treturn;\n\t\t}\n\n\t\t$this->page = $this->clamp($page, 1, $this->maxPage);\n\t}", "title": "" }, { "docid": "2b07ee06596a2c4e9ce14fca9087a81f", "score": "0.66923094", "text": "public function set_page( Admin_Page $page ) {\n\t\t$this->page = $page;\n\t}", "title": "" }, { "docid": "5a410644be15e93a7a1aa8a610de15dc", "score": "0.6672573", "text": "private function setPage()\n {\n $routeTest = isset($_GET['p']) ? $_GET['p'] : '/home';\n\n $this->routeInfos = explode('/', $routeTest);\n\n if (!isset($this->routeInfos[1])) {\n $this->routeInfos[1] = 'home';\n }\n\n $this->page = $this->routeInfos[1];\n }", "title": "" }, { "docid": "cbed336e48d2eb7da5704d8844e8f4f5", "score": "0.6669009", "text": "public function setPage($page=1){\n\t\t$this->paging = true;\n\t\t$this->paging_page = $page;\n\t}", "title": "" }, { "docid": "fe9e3d0cce1f58810208921af0e9bed7", "score": "0.6651762", "text": "public function setPage($value) {\n return $this->setParameter('page', $value);\n }", "title": "" }, { "docid": "fe9e3d0cce1f58810208921af0e9bed7", "score": "0.6651762", "text": "public function setPage($value) {\n return $this->setParameter('page', $value);\n }", "title": "" }, { "docid": "fe9e3d0cce1f58810208921af0e9bed7", "score": "0.6651762", "text": "public function setPage($value) {\n return $this->setParameter('page', $value);\n }", "title": "" }, { "docid": "00fc5425a339a57f32837b4c4e651dc8", "score": "0.6646069", "text": "public function setPage($value)\n {\n $this->page = (int) $value;\n\n return $this;\n }", "title": "" }, { "docid": "d4d1fdb10c46a280a70ba60caa6025a7", "score": "0.663987", "text": "public function setPage(array $input)\n {\n $this->pageModel->page = $input;\n }", "title": "" }, { "docid": "e62d7a5ad15f9b51c4403e4107372762", "score": "0.6599601", "text": "private function setPageFromGET(){\n\t\t$get = new Variable('GET','p');\n\t\t$pageName =$get->getValue();\n\t\tif($pageName!==false){\n\t\t\t$this->page = new Page($pageName); \n\t\t}else{\n\t\t\t$this->page = new Page($this->default_page); \n\t\t}\t\n\t}", "title": "" }, { "docid": "4cd16c9ef051d58a9d5d51271f0a78c9", "score": "0.6577863", "text": "public function setPage($value) : PageVersion\n {\n // Is this a scalar value representing the ID of this foreign key?\n if (is_scalar($value)) {\n return $this->setPageId($value);\n }\n\n // Is this an instance of Page?\n if (is_object($value) && $value instanceof Page) {\n return $this->setPageObject($value);\n }\n\n // Is this an array representing a Page item?\n if (is_array($value) && !empty($value['id'])) {\n return $this->setPageId($value['id']);\n }\n\n // None of the above? That's a problem!\n throw new \\Exception('Invalid value for Page.');\n }", "title": "" }, { "docid": "1549dbc9ee86ab8e0bbe02834c0f9e6d", "score": "0.6571947", "text": "static function setPage($page_num) {\n self::$page = $page_num;\n }", "title": "" }, { "docid": "846f819571812affb575a3c0670fc107", "score": "0.6544609", "text": "function setReadTitleFromPage($value) {\n $this->_readtitlefrompage = $value;\n }", "title": "" }, { "docid": "3372f4588524cbbf12ad87159b0671a1", "score": "0.65060294", "text": "public function setPage($page)\n {\n $this->currentPage = \\WT\\Util\\Value::clamp($page, 1, $this->totalPages);\n }", "title": "" }, { "docid": "d4dfc75610a2b7d997cd6dbebecda3c1", "score": "0.6483333", "text": "public function setCurrentPage(SAIPage &$page) {\n\t\t$this->currentPage = &$page;\n\t}", "title": "" }, { "docid": "79eb63b553680cab00816cda32f7a71c", "score": "0.6454966", "text": "public function setPersonalPage($personalPage){\n\t\t$database = new DataBase();\n\t\t$this->personalPage = $personalPage ;\n\t\t$sql = \"UPDATE `lecturer` SET `personalPage` = '$personalPage' WHERE id='$this->id'\";\n $query = $database->executeQuery($sql, \"Failed updating personal page!\");\n\t}", "title": "" }, { "docid": "b40ce88bc3b4530c6d9b9f52bb7db4e4", "score": "0.64004254", "text": "public function setCurrentPage($page)\n {\n self::$current_page = $page;\n }", "title": "" }, { "docid": "9e284ddb863a572c3d624f658dc2c712", "score": "0.6388724", "text": "public function setCurrentHTMLPage($page) \n {\n $this->_currentHTMLPage = $page;\n }", "title": "" }, { "docid": "712c63b833f23487a476baee71a5d72f", "score": "0.63778305", "text": "public static function setCurrentPage($value) {\n return self::set('current_page', $value);\n }", "title": "" }, { "docid": "00ea1dd131a184fc342e03f0c72530f5", "score": "0.6367906", "text": "protected function changePage($page)\n {\n $this->currentPage = $page;\n $this->manialinkFactory->update($this->manialink->getUserGroup());\n }", "title": "" }, { "docid": "50288dd845579cc55e64b50de1be8ecf", "score": "0.63532066", "text": "public function setCurrentPage(&$page) {\n\t\t$this->_currentPage = $page;\n\t\t$this->_currentLang = $page->getLang();\n\t\t$this->_currentPageName = $page->getName();\n\t\t$this->_pagesInitialised = true;\n\t}", "title": "" }, { "docid": "1eaa9d00023f4d898245756765b8064b", "score": "0.6340943", "text": "public function setValue(string $key, $value): void\n {\n $this->_pageContext[$key] = $value;\n }", "title": "" }, { "docid": "f614b1ddcbb4c7c8daaaf5d9c4159614", "score": "0.63384616", "text": "public function setPage( $page ) {\n\n if( !($page instanceof Page) ){\n throw new Exception('MailerHelper::setPage expects a Page as parameter');\n }\n\n $this->template_page = $page;\n }", "title": "" }, { "docid": "673d73e5af0d3dccb0ef8dc28debdf1a", "score": "0.6259448", "text": "public function setCurrentPage($i)\n {\n $this->current_page = $i;\n }", "title": "" }, { "docid": "d5d30497d4da295cf4bb610395f48c94", "score": "0.6255005", "text": "public function setPage($page)\n {\n $this->_page = $page;\n return $this->getPage();\n }", "title": "" }, { "docid": "822866915622117cdf71a6f3ae7aa5c9", "score": "0.6236444", "text": "private function _setCurrentPage($pPage)\n {\n $this->currentPage = (empty($pPage)) ? 1 : $pPage;\n }", "title": "" }, { "docid": "59538d76922527d4a80b8a35168d45e2", "score": "0.6206785", "text": "public function setValue($value){}", "title": "" }, { "docid": "59538d76922527d4a80b8a35168d45e2", "score": "0.6206785", "text": "public function setValue($value){}", "title": "" }, { "docid": "59538d76922527d4a80b8a35168d45e2", "score": "0.6206785", "text": "public function setValue($value){}", "title": "" }, { "docid": "b07cbc59fc33ad818dd6c56d2e3bfb14", "score": "0.6194497", "text": "function setValue($value){\n\t\t$this->_value=$value;\n\t}", "title": "" }, { "docid": "70e52421ddfa0af7bb44daa6896b28b3", "score": "0.61930466", "text": "public function setPage($integer) {\n\t\t$this->page = $integer;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "3b965998b6319e768c606634f7561ec5", "score": "0.6170003", "text": "public function set( $path, $value ){\n\t\t\n\t\t// Generate the new data\n\t\t$config = CONFIG::set( $this->conf, $path, $value );\n\t\t\n\t\t// If generation succeed Sets the new Page's data\n\t\tif( $config !== FALSE ) $this->conf = $config;\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "7256a747b078115ea53bac5bc32fd925", "score": "0.6169894", "text": "public function setupNewPage()\n {\n $defaultVars = array(\n 'branchingElementLabel' => ''\n );\n foreach ($defaultVars as $name => $value) {\n $var = $this->_applicationPage->getPage()->setVar($name, $value);\n $this->_controller->getEntityManager()->persist($var);\n }\n }", "title": "" }, { "docid": "ac7e06dd2a2941c3c5b31e4faa8df355", "score": "0.6166669", "text": "public function setIndexPage($page);", "title": "" }, { "docid": "716b2885d3c06d0a3d9965adbbf8e1b9", "score": "0.6151831", "text": "public function setPageTitle($pageTitle){ //set the page title \n $this->pageTitle=$pageTitle;\n }", "title": "" }, { "docid": "18013e7b5f4f09cf11c3c35f8641c01b", "score": "0.6148743", "text": "public function setPage($sData) {\n\n\t \t\t$CI =& get_instance();\n\n\t \t\t$CI->session->set_userdata('currpage', $sData);\n\n\t \t\treturn $sData;\n\t \t}", "title": "" }, { "docid": "7447da7a4d009e6f8b5fe975a73f3c00", "score": "0.6147249", "text": "public function setPage($page)\n {\n if (!is_int($page) || $page < 1) {\n throw new Exception('The page requested must be an integer larger than 1');\n }\n \n $this->page = $page;\n }", "title": "" }, { "docid": "3016c70a7384e406af2b292f61103a4e", "score": "0.61411744", "text": "public function setPageTitle($pageTitle){ //set the page title \r\n $this->pageTitle=$pageTitle;\r\n }", "title": "" }, { "docid": "259122533f2a31727256a8f871d5dbc5", "score": "0.6136871", "text": "public function updatedInputPage($value)\n {\n // Validate and correct input if necessary.\n\n // Bottom limit = 1\n if(!$value || $value < 1) {\n $this->inputPage = 1;\n }\n\n // Top limit = $pageCount\n if($value > $this->pageCount) {\n $this->inputPage = $this->pageCount;\n }\n\n }", "title": "" }, { "docid": "46f420b3a31c4ef126ce249b26193500", "score": "0.612819", "text": "function setPageText ( $page , $text ) {\n\t\t$ch = null;\n\t\t$res = $this->doApiQuery( array(\n\t\t\t'format' => 'json',\n\t\t\t'action' => 'tokens',\n\t\t\t'type' => 'edit',\n\t\t), $ch );\n\t\tif ( !isset( $res->tokens->edittoken ) ) {\n\t\t\theader( \"HTTP/1.1 500 Internal Server Error\" );\n\t\t\techo 'Bad API response[setPageText]: <pre>' . htmlspecialchars( var_export( $res, 1 ) ) . '</pre>';\n\t\t\treturn false ;\n\t\t}\n\t\t$token = $res->tokens->edittoken;\n\t\t\n\t\t// Now do that!\n\t\t$res = $this->doApiQuery( array(\n\t\t\t'format' => 'json',\n\t\t\t'action' => 'edit',\n\t\t\t'title' => $page,\n\t\t\t'text' => $text ,\n\t\t\t'minor' => '' ,\n\t\t\t'token' => $token,\n\t\t), $ch );\n\t\t\n\t\tif ( isset ( $res->error ) ) {\n\t\t\t$this->error = $res->error->info ;\n\t\t\treturn false ;\n\t\t}\n\n\t\treturn true ;\n\t}", "title": "" }, { "docid": "0dfdd9b23837c3f2830c0d0e749e35c3", "score": "0.6128064", "text": "function setValue( $value ) {\r\n $this->_value = $value;\r\n }", "title": "" }, { "docid": "ce886ecf210de2a7a6e4b76503fa2a8e", "score": "0.61152434", "text": "public function set($var, $val)\n {\n $this->pageVars[$var] = $val;\n }", "title": "" }, { "docid": "3cb223574d1cc4380dd9926600647482", "score": "0.6115104", "text": "function setValue($value) {\n $this->value = $value;\n }", "title": "" }, { "docid": "c1a3efd53eedef214c0660e14fac9017", "score": "0.6101206", "text": "function setValue($value)\n\t {\n\t\t$this->value = $value;\n\t}", "title": "" }, { "docid": "d39e921cc6f38e4818928ca41ba57a0f", "score": "0.6100716", "text": "function set_current_page($page) {\n $this->current_page = $page;\n\n // If the pager is already initialized, pass it through to the pager.\n if (!empty($this->query->pager)) {\n return $this->query->pager->set_current_page($page);\n }\n\n }", "title": "" }, { "docid": "7ed075d66916f7c8b6ff7523fc327edc", "score": "0.61000687", "text": "static function setPageId($id) {\n if (!is_int($id)) {\n Log::debug('Not an int: ' . gettype($id) . '(' . $id . ')');\n }\n $_SESSION['core.page.id'] = intval($id);\n }", "title": "" }, { "docid": "8a34a2aa9963e921da36978a863ae196", "score": "0.6077815", "text": "public function setPage(Page $page, $pagePath) {\n\n\t\t$pageFullPath = $pagePath . $this->fileExtension;\n\n\t\ttry {\n\t\t\t$fs = new Files(PAGES);\n\n\t\t\tif(!$fs->exists($pageFullPath)) {\n\t\t\t\t// TODO create page\n\t\t\t}\n\n\t\t\t$data = $this->serializer->serialize($page);\n\n\t\t\t$res = $fs->write($pageFullPath, $data);\n\n\t\t\tif($res !== false) {\n\t\t\t\t$this->pages[$pagePath] = $page;\n\t\t\t}\n\n\t\t\treturn $res;\n\n\t\t} catch(IOException $e) {\n\t\t\texceptionHandler($e);\n\t\t}\n\t}", "title": "" }, { "docid": "d9afc05ff87dc626f6e13b1cf94a0eca", "score": "0.6068381", "text": "public function setPageHeading($pageHead){ //set the page heading \n $this->pageHeading=$pageHead;\n }", "title": "" }, { "docid": "7f79f3ac823fc40a87cd774225bb75db", "score": "0.6067611", "text": "public function setNextPageValue($value): void\n {\n $this->pageValues[$this->pageIndex + 1] = $value;\n }", "title": "" }, { "docid": "50fdb1be99b8cfe4c68caf159a38baa9", "score": "0.6061415", "text": "function setPage($page, $convert=false) {\n\t\t$this->page = $page;\n\t\tif ($convert) {\n\t\t\tEmailTemplate::convertFromWord($this->page);\n\t\t}\n\t}", "title": "" }, { "docid": "20791a34f5009049ca840ceafc00af33", "score": "0.6061315", "text": "public function page($page): self\n {\n }", "title": "" }, { "docid": "20791a34f5009049ca840ceafc00af33", "score": "0.6061315", "text": "public function page($page): self\n {\n }", "title": "" }, { "docid": "20791a34f5009049ca840ceafc00af33", "score": "0.6061315", "text": "public function page($page): self\n {\n }", "title": "" }, { "docid": "20791a34f5009049ca840ceafc00af33", "score": "0.6061315", "text": "public function page($page): self\n {\n }", "title": "" }, { "docid": "3ef780269d51230720089d2633792542", "score": "0.60531676", "text": "public function setPage($page_name) {\n\t\t$this->page = $page_name;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "4b285f7ffe23a0f5252d0ca6d09400c5", "score": "0.604838", "text": "function setPageId($pageId)\n {\n $this->set_default_property(self::PROPERTY_PAGE_ID, $pageId);\n }", "title": "" }, { "docid": "41b06e0064a83cf3d67a68f75b0eeda9", "score": "0.6029012", "text": "public function setPageNumber(int $page): self;", "title": "" }, { "docid": "587a729ba0a697569d4c0af3c8f31c6c", "score": "0.6016276", "text": "public function turnPage()\n {\n $this->page++;\n }", "title": "" }, { "docid": "6e61eca24abb172e79b40e7dfc1e9f0a", "score": "0.60110414", "text": "public function setValue( $value ) {\n\t\t$this->value = $value;\t\n\t}", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6009716", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6009716", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6009716", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6009716", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6009716", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6009716", "text": "public function setValue($value);", "title": "" }, { "docid": "1ef20f0ae53328890627fa2c0d5a1230", "score": "0.6009716", "text": "public function setValue($value);", "title": "" }, { "docid": "b112f2aaad2fbda259b008cec8dfbfbf", "score": "0.60075015", "text": "public function updatePage($page, array $data);", "title": "" }, { "docid": "0aeb9c1c42fb28187c5157e368835624", "score": "0.59957397", "text": "public function set_value( $value );", "title": "" }, { "docid": "a3ecb0096d22d49f6f67b98802a05186", "score": "0.59939843", "text": "protected function setPage()\n {\n $urlTemplates = array();\n\n if ($this->arParams['SEF_MODE'] === 'Y')\n {\n $variables = array();\n\n $urlTemplates = \\CComponentEngine::MakeComponentUrlTemplates(\n $this->defaultUrlTemplates,\n $this->arParams['SEF_URL_TEMPLATES']\n );\n\n $variableAliases = \\CComponentEngine::MakeComponentVariableAliases(\n $this->defaultUrlTemplates,\n $this->arParams['VARIABLE_ALIASES']\n );\n\n $this->templatePage = \\CComponentEngine::ParseComponentPath(\n $this->arParams['SEF_FOLDER'],\n $urlTemplates,\n $variables\n );\n\n if (!$this->templatePage)\n {\n if ($this->arParams['SET_404'] === 'Y')\n {\n $folder404 = str_replace('\\\\', '/', $this->arParams['SEF_FOLDER']);\n\n if ($folder404 != '/')\n {\n $folder404 = '/'.trim($folder404, \"/ \\t\\n\\r\\0\\x0B\").\"/\";\n }\n\n if (substr($folder404, -1) == '/')\n {\n $folder404 .= 'index.php';\n }\n\n if ($folder404 != Main\\Context::getCurrent()->getRequest()->getRequestedPage())\n {\n $this->return404();\n }\n }\n\n $this->templatePage = $this->defaultSefPage;\n }\n\n /* if ($this->isSearchRequest() && $this->arParams['USE_SEARCH'] === 'Y')\n {\n $this->templatePage = 'search';\n } */\n\n \\CComponentEngine::InitComponentVariables(\n $this->templatePage,\n $this->componentVariables,\n $variableAliases,\n $variables\n );\n }\n else\n {\n $this->templatePage = $this->defaultPage;\n }\n\n $this->arResult['FOLDER'] = $this->arParams['SEF_FOLDER'];\n $this->arResult['URL_TEMPLATES'] = $urlTemplates;\n $this->arResult['VARIABLES'] = $variables;\n $this->arResult['ALIASES'] = $variableAliases;\n }", "title": "" }, { "docid": "a072e06ec971791d13b37d5caa98ebf3", "score": "0.59883237", "text": "public function setPageMessage($pageMessage)\n\t\t{\n\t\t\t$this->_PageMessage = $pageMessage;\n\t\t}", "title": "" }, { "docid": "e9b606bda4eb5e9f953c280ddd7ea004", "score": "0.5985169", "text": "public function setPage(int $page)\n {\n if ($page < 1) {\n throw new Exception(\"Expected page number as parameter\");\n }\n $this->page = $page;\n }", "title": "" }, { "docid": "502d8adf2f252f09a9ffdc0b232ef715", "score": "0.59597164", "text": "function SetCurrentPage($current){\r\n\t\t$this->CurrentPage = $current;\r\n\t}", "title": "" }, { "docid": "1200eceb39f0dece47e4939163cbbbd4", "score": "0.5950379", "text": "public function setPageHeading($pageHead){ //set the page heading \r\n $this->pageHeading=$pageHead;\r\n }", "title": "" }, { "docid": "23d04641de9bca38b556a1bbfadb1582", "score": "0.5934994", "text": "public function set($key, $value) {\n\n\t\tif($key == 'page') {\n\t\t\t$this->page = $value; \n\t\t\treturn $this; \n\n\t\t} else if($key == 'date') {\n\n\t\t\t// convert date string to unix timestamp\n\t\t\tif($value && !ctype_digit(\"$value\")) $value = strtotime($value); \t\n\n\t\t\t// sanitized date value is always an integer\n\t\t\t$value = (int) $value; \n\n\t\t} else if($key == 'notes') {\n\t\t\t// regular text sanitizer\n\t\t\t$value = $this->sanitizer->text($value); \n\t\t}\n\n\t\treturn parent::set($key, $value); \n\t}", "title": "" }, { "docid": "bb5a3d8f30501c62701d137cd15b4f36", "score": "0.592624", "text": "public function setPage(int $pageId) {\n return self::$page = $pageId;\n }", "title": "" }, { "docid": "dd43d7636e2ced73f805dc95d2a4b783", "score": "0.5922755", "text": "public static function page($page): self\n {\n }", "title": "" }, { "docid": "dd43d7636e2ced73f805dc95d2a4b783", "score": "0.5922755", "text": "public static function page($page): self\n {\n }", "title": "" }, { "docid": "dd43d7636e2ced73f805dc95d2a4b783", "score": "0.5922755", "text": "public static function page($page): self\n {\n }", "title": "" } ]
67aff52968aae3ffaf75d87b1dd147f4
Carrega um array simples da classe atual
[ { "docid": "e8c3be31f6bcf5b40d2271a8636fa631", "score": "0.0", "text": "public function findFromSql($sql) {\r\n\r\n $sql = str_replace(\"?\", $this->className, $sql);\r\n\r\n $r1 = self::query($sql);\r\n $array = array();\r\n foreach ($r1 as $v1) {\r\n $array[] = $v1;\r\n }\r\n\r\n return $array;\r\n }", "title": "" } ]
[ { "docid": "db1aafbeb74f0afeb9de35e1b5db45ed", "score": "0.6541049", "text": "public abstract function as_array();", "title": "" }, { "docid": "f7cd1e81b86fc1eb38e46afcb06e4bed", "score": "0.65013254", "text": "abstract public function getAsArray();", "title": "" }, { "docid": "596cd801fd5274748b57707cbdb1f6ec", "score": "0.6452191", "text": "function __construct(){\n $this->cesta = new ArrayObject();\n\n }", "title": "" }, { "docid": "32f7d0bf66c295d634500afa3f7d3e6b", "score": "0.6448081", "text": "abstract function __toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.6418", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.6418", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.6418", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.6418", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.6418", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.6418", "text": "abstract public function toArray();", "title": "" }, { "docid": "49d953cb668ade691f05013fead1b2e3", "score": "0.6418", "text": "abstract public function toArray();", "title": "" }, { "docid": "268beb54dff81e5db9decc29b5a7f8df", "score": "0.63626766", "text": "public function classes(): array;", "title": "" }, { "docid": "c4a7812c5b273ce8975423ad55f7c3f3", "score": "0.6361142", "text": "abstract function get_array_instance();", "title": "" }, { "docid": "02bd9782c7bfaacd4c61c6192b3d4b96", "score": "0.6342832", "text": "public function __toArray();", "title": "" }, { "docid": "04a6fdf51ed389587ae80c61fb3f20ac", "score": "0.6266743", "text": "abstract public function elements(): array;", "title": "" }, { "docid": "4d7a51dda22a7e9d644b361be510bcbc", "score": "0.62606853", "text": "public function toArray():array;", "title": "" }, { "docid": "db9262318dd5a83d6c4dbe3114153068", "score": "0.6250278", "text": "abstract public function build(): array;", "title": "" }, { "docid": "9d90e9b45f462e6199b54a7e850115a5", "score": "0.62395406", "text": "function __construct(){\n $this->array = array();\n }", "title": "" }, { "docid": "edd78c252e6527cebbbc55e6ecdabc41", "score": "0.623304", "text": "abstract protected function _toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "58e92c5cfdabe669dbe8f6326213f9a6", "score": "0.6228907", "text": "public function toArray();", "title": "" }, { "docid": "f2a9ea38b2041450bfe04b738c90c037", "score": "0.6221919", "text": "public function toArray()\n {\n }", "title": "" }, { "docid": "e79b520edb2495627089783b62d2462a", "score": "0.6195893", "text": "public function toArray() : array\n {\n \n }", "title": "" }, { "docid": "b48df141ed05779a13ba7ab2019befd3", "score": "0.61826456", "text": "public abstract function loadArray();", "title": "" }, { "docid": "3fe5afc026515f86c19aa77740d6f6ae", "score": "0.6178811", "text": "public function __toArray(): array;", "title": "" }, { "docid": "bfb7ef6b5f46396493ab1b06bb5c38cf", "score": "0.6173268", "text": "public function getArray() {\n return [\n \"sigla\" => $this->getSigla(),\n \"nome\" => $this->getNome(),\n ];\n }", "title": "" }, { "docid": "1a0571d02d493dcdc43285aa27350966", "score": "0.6133408", "text": "public function toArray() { return []; }", "title": "" }, { "docid": "65e48ff30eb86193ebe93fe1c1d50378", "score": "0.61264277", "text": "public static function toArray();", "title": "" }, { "docid": "65e48ff30eb86193ebe93fe1c1d50378", "score": "0.61264277", "text": "public static function toArray();", "title": "" }, { "docid": "937672c68db0f071163d899615661484", "score": "0.61251456", "text": "public function __construct()\n {\n $this->initArrays();\n }", "title": "" }, { "docid": "f9e5d006714b5b5344a2299fc4e0eca8", "score": "0.61190045", "text": "final public function toArray()\n {\n }", "title": "" }, { "docid": "15ccd43771245e79a757bd04466393c2", "score": "0.6114404", "text": "public function ToArray() : array\r\n {\r\n return parent::ToArray();\r\n }", "title": "" }, { "docid": "25ce8e0667c4a6890bf7a38e17d2eda7", "score": "0.61059046", "text": "public function complex() : array\n {\n return [\n [\n 'id' => 'jumbotron',\n 'name' => 'Jumbotron',\n 'trigger' => [ 'column' ],\n 'btn-classes' => [ 'btn-outline-info' ]\n ],\n [\n 'id' => 'heading-and-date',\n 'name' => 'Heading & date',\n 'trigger' => [ 'column' ],\n 'btn-classes' => [ 'btn-outline-info' ]\n ],\n [\n 'id' => 'blog-post',\n 'name' => 'Blog post',\n 'trigger' => [ 'column' ],\n 'btn-classes' => [ 'btn-outline-info' ]\n ]\n ];\n }", "title": "" }, { "docid": "de454b72926dc37885943366fbd989f6", "score": "0.61006814", "text": "function toArray();", "title": "" }, { "docid": "de454b72926dc37885943366fbd989f6", "score": "0.61006814", "text": "function toArray();", "title": "" }, { "docid": "ad00ff794a41427fae39e29fc5048d4f", "score": "0.6073156", "text": "public function toArray() : array;", "title": "" }, { "docid": "ad00ff794a41427fae39e29fc5048d4f", "score": "0.6073156", "text": "public function toArray() : array;", "title": "" }, { "docid": "ad00ff794a41427fae39e29fc5048d4f", "score": "0.6073156", "text": "public function toArray() : array;", "title": "" }, { "docid": "d6ff36de8e75bfe890fd052732ec871c", "score": "0.60718954", "text": "public function __construct() {\n\t\t$this->suroviny = array();\n\t\t$this->jidla = array();\n\t}", "title": "" }, { "docid": "1a72a268868990bbc922f081c1b5c112", "score": "0.6068176", "text": "abstract public function toAPIArray () : array;", "title": "" }, { "docid": "c9067367569faa3fc55ec45dd2c84a17", "score": "0.60665727", "text": "abstract function get_array_all();", "title": "" }, { "docid": "6762c0388311caac754c741a6cb830b5", "score": "0.6057751", "text": "abstract public function convertArray();", "title": "" }, { "docid": "1603e3301dc7fada5a5dc38af166674d", "score": "0.6056653", "text": "protected function arraymap() {\n \n }", "title": "" }, { "docid": "f973a6dd44822b86685b99f148d8825f", "score": "0.60424", "text": "abstract public function toArray(): array;", "title": "" }, { "docid": "f973a6dd44822b86685b99f148d8825f", "score": "0.60424", "text": "abstract public function toArray(): array;", "title": "" }, { "docid": "f973a6dd44822b86685b99f148d8825f", "score": "0.60424", "text": "abstract public function toArray(): array;", "title": "" }, { "docid": "f973a6dd44822b86685b99f148d8825f", "score": "0.60424", "text": "abstract public function toArray(): array;", "title": "" }, { "docid": "f973a6dd44822b86685b99f148d8825f", "score": "0.60424", "text": "abstract public function toArray(): array;", "title": "" }, { "docid": "530dc22ae35ad606adc51ff87839dc90", "score": "0.6037539", "text": "public function getArrayCaratteristiche() { \n \n $array = array(\n 'itemId' => $this->getSku(),\n 'name' => $this->getTitle(), \n 'description' => strip_tags($this->getShortDescription()),\n 'price' => ($this->getSpecialPrice() == null) ? $this->getPrice() : $this->getSpecialPrice(),\n 'oldPrice' => $this->getPrice(),\n 'deepLink' => $this->getLink().\"?utm_source=shopalike&utm_medium=cpc&utm_term=\".$this->getSku().\"&utm_campaign=shopalikeppc\",\n 'fullCategory' => $this->getTopCategory(), \n 'category' => $this->getPathCategoria(',',1), \n 'image' => $this->getImageLink(), \n 'shippingCosts' => $this->costoSpedizione(), \n 'availability' => $this->getShippingDays(),\n 'CPC' => $this->getCPC(),\n 'currency' => $this->getCodiceValuta()\n ); \n \n if($this->getBrand() != false) { \n $array[\"Brand\"] = $this->getBrand();\n }\n \n return $array;\n }", "title": "" }, { "docid": "42b9bb93031a568cf57219ec5cfe4d0f", "score": "0.60334945", "text": "public function pagosClass(array $array){\n \n return new Class($array){\n var $Id_pago;\n var $Nombre;\n var $Mes;\n var $Pago;\n var $Estatus;\n var $Folio;\n var $Fecha_pago;\n function __construct($array){\n $this->Id_pago = $array[0];\n $this->Nombre = $array[1];\n $this->Mes = $array[2];\n $this->Pago = $array[3];\n $this->Estatus = $array[4];\n $this->Folio = $array[5];\n $this->Fecha_pago = $array[6];\n $this->Proxima_fecha = $array[7];\n \n }\n };\n }", "title": "" }, { "docid": "4b4e64d472287f280547d3b17a0cee23", "score": "0.6032844", "text": "public static function Array(): array {\n switch(\\random_int(0, 5)) {\n case 0:\n return \\range(0, \\random_int(1, 15));\n case 1:\n switch(\\random_int(0, 1)) {\n case 0:\n return static::Text;\n case 1:\n return \\array_reverse(static::Text);\n }\n case 2:\n return \\array_map(\"static::Value\", \\range(0, \\random_int(3, 10)));\n case 3:\n return \\array_map(\"static::String\", \\range(0, \\random_int(1, 15)));\n case 4:\n return \\array_map(\"static::Float\", \\range(0, \\random_int(1, 15)));\n case 5:\n return \\array_map(\"static::Int\", \\range(0, \\random_int(1, 15)));\n }\n }", "title": "" }, { "docid": "4e464996856d05d725cbaecaa31a0eda", "score": "0.60288715", "text": "public static function toArray()\r\n {\r\n $className = get_called_class();\r\n return $className::getInstance()->getArray();\r\n }", "title": "" }, { "docid": "eafe068abd8e2500e2019d52e3600db5", "score": "0.6006358", "text": "public function provideDataForConstructor()\n {\n return array(\n array('return', '', '', array(), ''),\n array('return', 'int', 'int', array('int'), ''),\n array(\n 'return',\n 'int Number of Bobs',\n 'int',\n array('int'),\n 'Number of Bobs'\n ),\n array(\n 'return',\n 'int|double Number of Bobs',\n 'int|double',\n array('int', 'double'),\n 'Number of Bobs'\n ),\n array(\n 'return',\n \"int Number of \\n Bobs\",\n 'int',\n array('int'),\n \"Number of \\n Bobs\"\n ),\n array(\n 'return',\n \" int Number of Bobs\",\n 'int',\n array('int'),\n \"Number of Bobs\"\n ),\n array(\n 'return',\n \"int\\nNumber of Bobs\",\n 'int',\n array('int'),\n \"Number of Bobs\"\n ),\n array(\n 'return',\n 'array<int, string> Types of Bobs',\n 'array<int, string>',\n array('array<int, string>'),\n 'Types of Bobs'\n ),\n array(\n 'return',\n 'array<int, string>|string Types of Bobs',\n 'array<int, string>|string',\n array('array<int, string>', 'string'),\n 'Types of Bobs'\n ),\n array(\n 'return',\n 'array<int, string|bool>|string Types of Bobs',\n 'array<int, string|bool>|string',\n array('array<int, string|bool>', 'string'),\n 'Types of Bobs'\n )\n );\n }", "title": "" }, { "docid": "e50c80261565c6e3b371ebe43a68a53e", "score": "0.5997764", "text": "public function exportArray ();", "title": "" }, { "docid": "1455b0a804193ed083d045250aab4810", "score": "0.5994959", "text": "public function toArrayAccess();", "title": "" }, { "docid": "b186cc923c750a04d5cf707929560ae1", "score": "0.59808767", "text": "private function makeFormObjectsArrays () {\n\t\tfor ($x = 0; $x <= $this->count - 1; $x++) {\n\t\t\t$product_line = $this->list[$x];\n\t\t\t$this->values[$x] = $product_line->id;\n\t\t\t$this->displays[$x] = $product_line->name;\n\t\t}\n\t}", "title": "" }, { "docid": "4947b12cee29673853df8ea47ebd3005", "score": "0.59713995", "text": "public function simple() : array\n {\n return [\n [\n 'id' => 'heading',\n 'name' => 'Heading',\n 'trigger' => [ 'column' ],\n 'btn-classes' => [ 'btn-outline-info' ]\n ],\n [\n 'id' => 'rich-text#',\n 'name' => 'Rich text',\n 'trigger' => [ 'column' ],\n 'btn-classes' => [ 'btn-outline-info' ]\n ],\n [\n 'id' => 'plain-text',\n 'name' => 'Plain text',\n 'trigger' => [ 'column' ],\n 'btn-classes' => [ 'btn-outline-info' ]\n ],\n [\n 'id' => 'html',\n 'name' => 'HTML',\n 'trigger' => [ 'column' ],\n 'btn-classes' => [ 'btn-outline-info' ]\n ]\n ];\n }", "title": "" }, { "docid": "4be893a37747e09383959bc7db8ca5e7", "score": "0.59649485", "text": "public function toArray(): array;", "title": "" }, { "docid": "4be893a37747e09383959bc7db8ca5e7", "score": "0.59649485", "text": "public function toArray(): array;", "title": "" }, { "docid": "4be893a37747e09383959bc7db8ca5e7", "score": "0.59649485", "text": "public function toArray(): array;", "title": "" }, { "docid": "4be893a37747e09383959bc7db8ca5e7", "score": "0.59649485", "text": "public function toArray(): array;", "title": "" }, { "docid": "4be893a37747e09383959bc7db8ca5e7", "score": "0.59649485", "text": "public function toArray(): array;", "title": "" } ]
8eb42c6af283ccdec07e6cea9165ec5f
Preprocesses the olderthan parameter depending on format
[ { "docid": "0d8ce950c7ad00c9a70a1090e8751d02", "score": "0.61846966", "text": "public static function resolve_olderthan() {\n $olderthan = optional_param('olderthan', 2, PARAM_INT);\n if ($olderthan > 1000) {\n // We got a timestamp, so get the shift in month\n $olderthan = floor((time() - $olderthan) / (30 * DAYSECS));\n }\n return $olderthan;\n }", "title": "" } ]
[ { "docid": "38b906c995ef65e4654bb46a2edb92fa", "score": "0.5892328", "text": "public function olderThan($timestamp);", "title": "" }, { "docid": "8b733d457be2618e19dea8bb299b9877", "score": "0.5512704", "text": "function wp_pre_kses_less_than_callback( $matches ) {\n\tif ( false === strpos($matches[0], '>') )\n\t\treturn esc_html($matches[0]);\n\treturn $matches[0];\n}", "title": "" }, { "docid": "28a0f4a5dd589053b564e9cf86af657a", "score": "0.55006677", "text": "function lara_pre_kses_less_than_callback( $matches ) {\n if ( false === strpos( $matches[0], '>' ) ) {\n return esc_html( $matches[0] );\n }\n return $matches[0];\n}", "title": "" }, { "docid": "e6a276eaf51b249ae48963812117d2d9", "score": "0.53808993", "text": "function lt($cmp, $value) : bool\n{\n return $value < $cmp;\n}", "title": "" }, { "docid": "e8fb0ffb964f6c7986e7f1d1834eeeba", "score": "0.5365342", "text": "function date_greater_than($dateA, $dateB, $addEqual=false) {\n //when date are not valid ones\n if (!isDateTime($dateA) and !isDate($dateA)) {\n trigger_exception(\"The date ({$dateA}) is not valid.Please provide the format: Y-m-d H:i:s or Y-m-d\");\n }\n\n if (!isDateTime($dateB) and !isDate($dateB)) {\n trigger_exception(\"The date ({$dateB}) is not valid.Please provide the format: Y-m-d H:i:s or Y-m-d\");\n }\n\n //parse to carbon\n $dateA = Carbon::parse($dateA);\n $dateB = Carbon::parse($dateB);\n\n if ($addEqual) {\n if ($dateA->gte($dateB)) return true;\n }else {\n if ($dateA->gt($dateB)) return true;\n }\n \n return false;\n}", "title": "" }, { "docid": "e1d69317d936731580b07ed098be8648", "score": "0.5327497", "text": "protected function get_time_ago_i18n( $since ) {\n\n\t\t$now = time();\n\t\t$ago = $now - $since;\n\t\t$ago_i18n = '';\n\n\t\tif ( $ago < 0 || $ago > $now ) {\n\t\t\t//= $since is in the future. Or, $since is before recorded time itself.\n\t\t\t$ago_i18n = \\__( 'Invalid time. Is your server clock OK?', 'the-seo-framework-extension-manager' );\n\t\t\tgoto ret;\n\t\t}\n\n\t\t$minute = 60;\n\t\t$hour = $minute * 60;\n\t\t$day = $hour * 24;\n\t\t$week = $day * 7;\n\n\t\tif ( $ago < $minute ) {\n\t\t\t$ago_i18n = \\__( 'Just now', 'the-seo-framework-extension-manager' );\n\t\t} elseif ( $ago < $hour ) {\n\t\t\t$x = round( $ago / $minute );\n\t\t\t/* translators: %d = minutes */\n\t\t\t$ago_i18n = sprintf( \\_n( '%d minute ago', '%d minutes ago', $x, 'the-seo-framework-extension-manager' ), $x );\n\t\t} elseif ( $ago < $day ) {\n\t\t\t$x = round( $ago / $hour );\n\t\t\t/* translators: %d = hours */\n\t\t\t$ago_i18n = sprintf( \\_n( '%d hour ago', '%d hours ago', $x, 'the-seo-framework-extension-manager' ), $x );\n\t\t} elseif ( $ago < $week ) {\n\t\t\t$x = round( $ago / $day );\n\t\t\t/* translators: %d = days */\n\t\t\t$ago_i18n = sprintf( \\_n( '%d day ago', '%d days ago', $x, 'the-seo-framework-extension-manager' ), $x );\n\t\t}\n\n\t\tif ( $ago_i18n )\n\t\t\tgoto ret;\n\n\t\t$month = $week * 4;\n\t\t$year = $week * 52;\n\n\t\t//= A more accurate representation. It annotates the beginning of X.\n\t\t//* e.g. last week can be up to 13 days ago; last month 60 days ago, etc.\n\t\t$last_week = strtotime( 'last week', $now );\n\t\t$last_month = strtotime( 'last month', $now );\n\t\t$last_year = strtotime( 'last year', $now ); //= '12 months ago'\n\n\t\tif ( $ago < $last_week ) {\n\t\t\t$ago_i18n = \\__( 'Last week', 'the-seo-framework-extension-manager' );\n\t\t} elseif ( $ago < $month ) {\n\t\t\t$x = round( $ago / $week );\n\t\t\t/* translators: %d = weeks */\n\t\t\t$ago_i18n = sprintf( \\_n( '%d week ago', '%d weeks ago', $x, 'the-seo-framework-extension-manager' ), $x );\n\t\t} elseif ( $ago < $last_month ) {\n\t\t\t$ago_i18n = \\__( 'Last month', 'the-seo-framework-extension-manager' );\n\t\t} elseif ( $ago < $year ) {\n\t\t\t$x = round( $ago / $month );\n\t\t\t/* translators: %d = months */\n\t\t\t$ago_i18n = sprintf( \\_n( '%d month ago', '%d months ago', $x, 'the-seo-framework-extension-manager' ), $x );\n\t\t} elseif ( $ago < $last_year ) {\n\t\t\t$ago_i18n = \\__( 'Last year', 'the-seo-framework-extension-manager' );\n\t\t} else {\n\t\t\t$x = round( $ago / $year );\n\t\t\t/* translators: %d = months */\n\t\t\t$ago_i18n = sprintf( \\_n( '%d year ago', '%d years ago', $x, 'the-seo-framework-extension-manager' ), $x );\n\t\t}\n\n\t\tret :;\n\t\treturn $ago_i18n;\n\t}", "title": "" }, { "docid": "a69be2e070276aa40a6abec69cf40a6b", "score": "0.5268363", "text": "function _MakeDateForCondition($value)\n {\n if ($value[\"year\"]!=\"\") $fromvalue.= $value[\"year\"];\n if ($value[\"year\"]!=\"\" && $value[\"month\"]!=0) $fromvalue.= \"-\".sprintf(\"%02d\",$value[\"month\"]);\n return $fromvalue;\n }", "title": "" }, { "docid": "8e91cbcbc46541928cc3ca6a41ddd56a", "score": "0.5262724", "text": "function lara_pre_kses_less_than( $text ) {\n return preg_replace_callback( '%<[^>]*?((?=<)|>|$)%', 'lara_pre_kses_less_than_callback', $text );\n}", "title": "" }, { "docid": "e6746218706e7f8c6e3b697eb050e941", "score": "0.5244629", "text": "function gte($cmp, $value) : bool\n{\n return $value >= $cmp;\n}", "title": "" }, { "docid": "65cf22c7954a4ac96f8a17a41435e5d3", "score": "0.5237235", "text": "protected function validate_date_before( $value, array $data = [ ], array $parameters = [ ] ) {\n\t\t$date = strtotime( $value );\n\n\t\treturn ( $date !== false && $value < strtotime( $parameters[0] ) );\n\t}", "title": "" }, { "docid": "a6ac02bd292a962eb54be3a13ffffb18", "score": "0.52143145", "text": "function wp_pre_kses_less_than( $text ) {\n\treturn preg_replace_callback('%<[^>]*?((?=<)|>|$)%', 'wp_pre_kses_less_than_callback', $text);\n}", "title": "" }, { "docid": "2b4f61769a82aea4ca6aa6d69596b6ee", "score": "0.51627624", "text": "function lte($cmp, $value) : bool\n{\n return $value <= $cmp;\n}", "title": "" }, { "docid": "c34e4973e19850693ccaef562782eb2c", "score": "0.51446754", "text": "function cmp_dates($a, $b){\r\n\t\t//print_r($a);\r\n\t\t//echo ('~>> ' . $a['Knowyournumber']['time']);\r\n\t\t$a_t = strtotime($a['Knowyournumber']['time']); \r\n\t\t$b_t = strtotime($b['Knowyournumber']['time']); \r\n\t\tif($a_t == $b_t){\r\n\t\t\treturn 0;\r\n\t\t}else if($a_t < $b_t){\r\n\t\t\treturn -1;\r\n\t\t}else{ // a_t > b_t\r\n\t\t\treturn 1;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "c51f6b92afcff397fd627d2164310277", "score": "0.5122307", "text": "public function isLesser(Date $date);", "title": "" }, { "docid": "0fe61dfb5a2a6ae5c85f688cb4266fdd", "score": "0.5099787", "text": "function comparatorFunc( $w1, $w2) \n {\n if ($w1[\"datetime\"] < $w2[\"datetime\"]) \n return TRUE;\n else\n \treturn FALSE;\n }", "title": "" }, { "docid": "8ff31e3f09710884fc4aa7fbc22efc8d", "score": "0.50886935", "text": "function cmpCrDate ($a, $b) \r\n\t{\r\n\t $v1 = $a['cr_date'];\r\n\t $v2 = $b['cr_date'];\r\n\t\r\n\t if ($v1 == $v2)\r\n\t return 0;\r\n\t\r\n\t return ($v1 > $v2) ? -1 : 1;\r\n\t}", "title": "" }, { "docid": "eb4778a9b263d21026295c0950e663f4", "score": "0.5073015", "text": "function cmp_by_date($msg1, $msg2) {\n\t\tif ($msg1[\"date\"] == $msg2[\"date\"]) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn ($msg1[\"date\"] < $msg2[\"date\"])?-1:1;\n\t}", "title": "" }, { "docid": "34d19dfbb1da70cd12577c726b2f5743", "score": "0.50598496", "text": "function compare_date1($i1, $i2){\n // Oldest to newest\n $date1 = strtotime($i1[\"created_time\"]);\n $date2 = strtotime($i2[\"created_time\"]);\n return -($date2 - $date1);\n }", "title": "" }, { "docid": "e9eb1b6c960fe06a6a153c93c0e1cd2e", "score": "0.5059149", "text": "function meeting_condition_meeting_mtgdate_before($meeting, $tdate) {\n return ($meeting->mtgdate < $tdate);\n}", "title": "" }, { "docid": "cee12a9f483024bcf3d7cbbba3f43637", "score": "0.50398743", "text": "function custom_sort($a,$b) \n{\n //return trim($a['add_date'])>trim($b['add_date']);\n return trim($a['add_date'])<trim($b['add_date']);\n}", "title": "" }, { "docid": "964c988a0b33d92b4c5fb0ba36d782af", "score": "0.5037744", "text": "function date_compare($a, $b)\n {\n $time1 = strtotime($a[2]); // get created_time value\n $time2 = strtotime($b[2]); // get created_time value\n if ($time1 < $time2)\n return 1;\n else if ($time1 > $time2)\n return -1;\n else\n return 0;\n }", "title": "" }, { "docid": "b787808841958b406d6e33c181ca1fb8", "score": "0.50347996", "text": "public static function over_age($value, $compare = 18)\n {\n $today = date(\"d-m-Y\");\n $birth = explode(\"-\", $value); //separa a data de nascimento em array, utilizando o símbolo de - como separador\n $actual = explode(\"-\", $today); //separa a data de hoje em array\n \n if($birth[0] < '1900')\n {\n return FALSE;\n }\n\n $birth = array_reverse($birth);//invert a ordem pq o formato é outro...\n \n if(count($actual) < 2 OR count($birth) < 2)\n {\n return FALSE;\n }\n\n $age = $actual[2] - $birth[2];\n\n if($birth[1] > $actual[1]) //verifica se o mês de nascimento é maior que o mês atual\n {\n $age--; //tira um ano, já que ele não fez aniversário ainda\n }\n elseif($birth[1] == $actual[1] && $birth[0] > $actual[0]) //verifica se o dia de hoje é maior que o dia do aniversário\n {\n $age--; //tira um ano se não fez aniversário ainda\n }\n \n return (bool)($age >= $compare);\n }", "title": "" }, { "docid": "3ba0bc568bd76e7d7b0cda19fa502d63", "score": "0.50229543", "text": "function compare_dates($dateDB)\n{\n\t// This function returns true if the given date is later than today\n\t// Date comes from the database\n\n\t$today = date(\"Y-m-d H:i:s\"); // 2001-03-10 17:16:18 (the MySQL DATETIME format)\n\t$value = strtotime($dateDB) - strtotime($today);\n\t//print(\"Today is $today and the package start date is $dateDB and the value is: $value <br> \");\n\tif ($value < 0)\n\t{\n\t\treturn true;\n\t}\n\n}", "title": "" }, { "docid": "9252ce9d61cf7ae4a3b52ef901308a59", "score": "0.5015611", "text": "function date_cmp ($p1, $p2) {\n $proTime1 = strtotime($p1['proTime']);\n $proTime2 = strtotime($p2['proTime']);\n return $proTime2 - $proTime1;\n }", "title": "" }, { "docid": "7688b32ebead7496a446f57ad1c66d27", "score": "0.4994801", "text": "function INST_phpOutOfDate()\n{\n $minv = explode('.', SUPPORTED_PHP_VER);\n\n $phpv = php_v();\n if (($phpv[0] < $minv[0]) ||\n (($phpv[0] == $minv[0]) && ($phpv[1] < $minv[1])) ||\n (($phpv[0] == $minv[0]) && ($phpv[1] == $minv[1]) && ($phpv[2] < $minv[2]))) {\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "891d0d8e29ba5e60b8624d2545ad322e", "score": "0.49877858", "text": "protected function _handle_date_check_runtime($cutoff, $compare)\n {\n if (!is_null($cutoff)) {\n if (is_integer($cutoff)) {\n if ($compare < $cutoff) {\n return false;\n }\n } elseif (is_array($cutoff)) {\n if (((!is_null($cutoff[0])) && ($compare < $cutoff[0])) || ((!is_null($cutoff[1])) && ($compare > $cutoff[1]))) {\n return false;\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "b96cad8d488d9669b8b2c9c9ac714da8", "score": "0.4959538", "text": "function exponent_sorting_workflowRevisionAscending($a,$b) {\n\treturn strnatcmp($a->wf_major.\".\".$a->wf_minor,$b->wf_major.\".\".$b->wf_minor);\n}", "title": "" }, { "docid": "b4c9ed0578100abeb6ac25ad31d9b572", "score": "0.49533913", "text": "public function getDateAgo() {\n\t\t$createdon = parent::get('createdon');\n\t\t/** @var LMS $LMS */\n\t\tif ($LMS = $this->xpdo->getService('LMS')) {\n\t\t\t$createdon = $LMS->dateFormat($createdon);\n\t\t}\n\t\treturn $createdon;\n\t}", "title": "" }, { "docid": "1d2a5063a68247b08059d7424c6164e7", "score": "0.49304715", "text": "public function search_m_time_created_before( $params )\n {\n\n //tpl: special\n $inputDate = $this->view->newInput( 'input'.$this->prefix.'MTimeCreatedBefore' , 'Date' );\n $inputDate->addAttributes\n (\n array\n (\n 'name' => $this->keyName.'[m_time_created_before]',\n 'id' => 'wgt-input-'.$this->keyName.'_m_time_created_before'.($this->suffix?'-'.$this->suffix:''),\n 'class' => 'wcm wcm_req_search small wgt-no-save'.($this->assignedForm?' fparam-'.$this->assignedForm:''),\n 'title' => $this->view->i18n->l('Changed Before','wbf.label'),\n )\n );\n $inputDate->setWidth('small');\n\n $inputDate->setReadOnly( $this->readOnly );\n $inputDate->setLabel\n (\n $this->view->i18n->l('Created Before','wbf.label')\n );\n $inputDate->refresh = $this->refresh;\n $inputDate->serializeElement = $this->sendElement;\n\n // activate the category\n $this->view->addVar\n (\n 'showCat'.$this->namespace.'_Search_Meta' ,\n true\n );\n\n }", "title": "" }, { "docid": "3a4813fbc0c2bcc5ef4d20bceaa6edbc", "score": "0.49140528", "text": "function date_compare($a, $b)\n{\n // $t2 = DateTime::createFromFormat(\"d/m/Y H:i:s.\",$b['datetri']);\n//\tif ($t1 == $t2) {\n // return 0;\n // }\n\n //return $t1 > $t2 ? -1 : 1;\n \tif ($a['date'] == $b['date']) {\n return 0;\n }\n\n return $a['date'] > $b['date'] ? -1 : 1;\n \n}", "title": "" }, { "docid": "900191b9ac1cc40bd849da6f4429aedb", "score": "0.49036765", "text": "function compare_date($i1, $i2){\n // Newest to oldest\n $date1 = strtotime($i1[\"created_time\"]);\n $date2 = strtotime($i2[\"created_time\"]);\n return $date2 - $date1;\n }", "title": "" }, { "docid": "4193a859169adde50b4cdbacead313d2", "score": "0.4886703", "text": "function gt($cmp, $value) : bool\n{\n return $value > $cmp;\n}", "title": "" }, { "docid": "9f81103f6a590faa0c59b1ee90a636eb", "score": "0.4875511", "text": "public function testRuleBefore(): void {\r\n\r\n //Should pass\r\n foreach(['1987-11-09', '2000-01-01'] as $data) {\r\n\r\n $validator = new Validator(['date' => $data]);\r\n $validator -> field('date') -> before(date('Y-m-d'), 'Y-m-d');\r\n $this -> assertTrue($validator -> passes());\r\n $this -> assertFalse($validator -> fails());\r\n }\r\n\r\n //Should fail\r\n foreach(['', null, [], (object) [], 2552, true, date('Y-m-d'), '3000-01-01'] as $data) {\r\n\r\n $validator = new Validator(['date' => $data]);\r\n $validator -> field('date') -> before('1952-03-28', 'Y-m-d');\r\n $this -> assertFalse($validator -> passes());\r\n }\r\n\r\n //Should fail\r\n $validator = new Validator();\r\n $validator -> field('date') -> before('1952-03-28');\r\n $this -> assertFalse($validator -> passes());\r\n }", "title": "" }, { "docid": "e3f0b4cc126d66559e8b0f2fa9fe4363", "score": "0.48552316", "text": "function makeValidDateRange($data)\n{\n global $appConfig;\n\n if ($data['download_from'] < date('Ymd', strtotime($appConfig['first_puzzle_date']))) {\n $data['download_from'] = (int)date('Ymd', strtotime($appConfig['first_puzzle_date']));\n }\n\n if ($data['download_till'] < date('Ymd', strtotime($appConfig['first_puzzle_date']))) {\n $data['download_till'] = (int)date('Ymd', strtotime($appConfig['first_puzzle_date']));\n } else if ($data['download_till'] > getTodaysDate()) {\n $data['download_till'] = getTodaysDate();\n }\n\n return $data;\n}", "title": "" }, { "docid": "5fc7b91e8c39e08fe8cd71b1c034b1f9", "score": "0.48517784", "text": "public function is_newer_than($f1, $f2)\n {\n if( (int)filemtime($f1) > (int)filemtime($f2) )\n {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2f6972876d363bed251fd856a363ffec", "score": "0.48472363", "text": "public function testAgoTranslated()\n {\n if (JenssegersDate::now()->format('m-d') === '02-29') {\n JenssegersDate::setTestNow(JenssegersDate::now()->subDay());\n }\n\n $date = JenssegersDate::parse('-21 hours');\n $this->assertSame('πριν 21 ώρες', $date->ago());\n\n $date = JenssegersDate::parse('-5 days');\n $this->assertSame('πριν 5 μέρες', $date->ago());\n\n $date = JenssegersDate::parse('-3 weeks');\n $this->assertSame('πριν 3 εβδομάδες', $date->ago());\n\n $date = JenssegersDate::now()->subMonthsNoOverflow(6);\n $this->assertSame('πριν 6 μήνες', $date->ago());\n\n $date = JenssegersDate::parse('-10 years');\n $this->assertSame('πριν 10 χρόνια', $date->ago());\n }", "title": "" }, { "docid": "a64caa65e5cbd7753b3556476ed184b3", "score": "0.4841113", "text": "function get_time_ago($date, $prefix, $suffix, $secs, $mins, $hours, $days, $weeks, $years, $error) {\n $date = $item->pubDate;\n $now = time();\n\n // default message\n if ($date == null) $date = returnPageField(return_page_slug(),'pubDate');\n if ($prefix == null) $prefix = '';\n if ($suffix == null) $suffix = 'ago';\n if ($secs == null) $secs = 'seconds';\n if ($mins == null) $mins = 'minutes';\n if ($hours == null) $hours = 'hours';\n if ($days == null) $days = 'days';\n if ($weeks == null) $weeks = 'weeks';\n if ($years == null) $years = 'years';\n if ($error == null) $error = 'Invalid time stamp';\n\n //time difference\n $timestamp = strtotime($date);\n $timediff = ($now - $timestamp);\n\n //outputs the difference\n if ((0 <= $timediff) && (($timediff) < 60)) { $timeago = round($timediff, 0); echo $prefix.' '.$timeago.' '.$secs.' '.$suffix; }\n elseif ((60 <= $timediff) && (($timediff) < 3600)) { ($timeago = round($timediff / 60, 0)); echo $prefix.' '.$timeago.' '.$mins.' '.$suffix; }\n elseif ((3600 <= $timediff) && (($timediff) < 86400)) { ($timeago = round($timediff / 3600, 0)); echo $prefix.' '.$timeago.' '.$hours.' '.$suffix; }\n elseif ((86400 <= $timediff) && (($timediff) < 604800)) { ($timeago = round($timediff / 86400, 0)); echo $prefix.' '.$timeago.' '.$days.' '.$suffix; }\n elseif ((604800 <= $timediff) && (($timediff) < 31449600)) { ($timeago = round($timediff / 604800, 0)); echo $prefix.' '.$timeago.' '.$weeks.' '.$suffix; }\n elseif (31449600 <= $timediff) { ($timeago = round($timediff / 31449600, 0)); echo $prefix.' '.$timeago.' '.$years.' '.$suffix; }\n else echo $error;\n }", "title": "" }, { "docid": "46551ffb4bb389498bc89d41b5b58eaf", "score": "0.48391277", "text": "function compareDate($from_date, $to_date) {\r\n $from_date = trim($from_date);\r\n $to_date = trim($to_date);\r\n\r\n if ($from_date == $to_date){\r\n return 3;\r\n }\r\n\r\n $waktu_awal = explode(\"-\",$from_date);\r\n $waktu_akhir = explode(\"-\",$to_date);\r\n if ($waktu_awal[0] > $waktu_akhir[0]){\r\n return 2;\r\n }else if ($waktu_awal[0] == $waktu_akhir[0]){\r\n if ($waktu_awal[1] > $waktu_akhir[1]){\r\n return 2;\r\n }else if ($waktu_awal[1] == $waktu_akhir[1]){\r\n if ($waktu_awal[2] > $waktu_akhir[2]){\r\n return 2;\r\n }\r\n }\r\n }\r\n return 1;\r\n}", "title": "" }, { "docid": "bba42052a93c11f630bad02384262924", "score": "0.48385486", "text": "function tpl_func_date($original, $main_argument, $other_arguments)\n{\n // Example:\n // $DATE(d.m.Y) => 03.05.2013 (where today is 03.05.2013)\n // $DATE(d.m.Y [946706400]) => 01.01.2000 (946706400 is timestamp of 01.01.2000)\n\n // current timestamp if no other timestamp is passed\n if (empty($other_arguments))\n $other_arguments = time();\n\n //return var or false\n return date_loc($main_argument, intval($other_arguments));\n}", "title": "" }, { "docid": "f0073574894de9ee5dc1c15ce3d0171b", "score": "0.48354492", "text": "protected function verifyChangedSince($value)\n {\n if (is_int($value)) {\n return $value;\n }\n // remove whitespaces, tabulation etc\n $trimmed = trim($value);\n if ($this->isValidTimeStamp($trimmed)) {\n return $trimmed;\n }\n //at this point we have numeric string which is not timestamp\n if (is_numeric($value)) {\n throw new SdkException(\"Input string doesn't look as unix timestamp or date string\");\n }\n // trying to parse string into timestamp\n $converted = $this->convertToTimestamp($value);\n if (!$converted) {\n throw new SdkException(\"Input value should be unix timestamp or valid date string\");\n }\n\n return $converted;\n }", "title": "" }, { "docid": "99800c50f16b09b51dfe22b537910959", "score": "0.48312604", "text": "public static function wasEarlier($date_a, $date_b): bool\n {\n return strtotime($date_b) >= strtotime($date_a);\n }", "title": "" }, { "docid": "687209b7348e6d1ba89d0ebef3af356d", "score": "0.4826414", "text": "function meeting_condition_mtg_item_itemdate_before($mtg_item, $itemdate) {\n return ($mtg_item->itemdate < $itemdate);\n}", "title": "" }, { "docid": "c721d0797120e1577c20cffbf1f042f4", "score": "0.48171172", "text": "function lnk_compare_by_date($post1, $post2){\n if($post1->post_date == $post2->post_date) {\n return 0;\n } else if ($post1->post_date > $post2->post_date) {\n return -1;\n } else {\n return 1;\n }\n }", "title": "" }, { "docid": "c9db0d05dd29b29d21e70f9a46b6a7df", "score": "0.48154145", "text": "function compare_func($a, $b)\n{\n $t1 = strtotime($a['date']);\n $t2 = strtotime($b['date']);\n\n return ($t1 - $t2);\n}", "title": "" }, { "docid": "34243b8d5e85bbc396f9010f78a3648a", "score": "0.48132232", "text": "public function isGreater(Date $date);", "title": "" }, { "docid": "8d0d7235bdc23e79cee07e5372bd24ea", "score": "0.48132044", "text": "public function isLessThan($value, $failMessage = null) {}", "title": "" }, { "docid": "5d121188dba45b31bc4d4f0d540ddfa1", "score": "0.48024186", "text": "function compare($a,$b)\n{\n\t//return ($a[\"commentId\"]>$b[\"commentId\"])?-1:1;\n\treturn (strtotime($a['created'])>strtotime($b['created']))?-1:1;\n}", "title": "" }, { "docid": "a39e5488a18274fd27f0256de2420c1f", "score": "0.47881007", "text": "protected function isOlderThanConfigured(GraphObject $data)\n {\n if ($this->config['updateTime'] < 0) {\n return false;\n }\n\n $start = new \\DateTime($data->getProperty('start_time'));\n $until = new \\DateTime(sprintf('-%d days', $this->config['updateTime']));\n\n return $start < $until;\n }", "title": "" }, { "docid": "0520ead894b87ab675c94bcae9bd9033", "score": "0.47851515", "text": "public function search_m_time_changed_before( $params )\n {\n\n //tpl: special\n $inputDate = $this->view->newInput( 'input'.$this->prefix.'MTimeChangedBefore' , 'Date' );\n $inputDate->addAttributes\n (\n array\n (\n 'name' => $this->keyName.'[m_time_changed_before]',\n 'id' => 'wgt-input-'.$this->keyName.'_m_time_changed_before'.($this->suffix?'-'.$this->suffix:''),\n 'class' => 'wcm wcm_req_search small wgt-no-save'.($this->assignedForm?' fparam-'.$this->assignedForm:''),\n 'title' => $this->view->i18n->l('Changed Before','wbf.label'),\n )\n );\n $inputDate->setWidth('small');\n\n $inputDate->setReadOnly( $this->readOnly );\n $inputDate->setLabel\n (\n $this->view->i18n->l('Changed Before','wbf.label')\n );\n $inputDate->refresh = $this->refresh;\n $inputDate->serializeElement = $this->sendElement;\n\n // activate the category\n $this->view->addVar\n (\n 'showCat'.$this->namespace.'_Search_Meta' ,\n true\n );\n\n }", "title": "" }, { "docid": "f34097e70ce3de0091646de8e352bd47", "score": "0.4782154", "text": "function tie_get_time(){\n\tglobal $post ;\n\tif( tie_get_option( 'time_format' ) == 'none' ){\n\t\treturn false;\n\t}elseif( tie_get_option( 'time_format' ) == 'modern' ){\t\n\t\t$to = current_time('timestamp'); //time();\n\t\t$from = get_the_time('U') ;\n\t\t\n\t\t$diff = (int) abs($to - $from);\n\t\tif ($diff <= 3600) {\n\t\t\t$mins = round($diff / 60);\n\t\t\tif ($mins <= 1) {\n\t\t\t\t$mins = 1;\n\t\t\t}\n\t\t\t$since = sprintf(_n('%s min', '%s mins', $mins), $mins) .' '. __( 'ago' , 'tie' );\n\t\t}\n\t\telse if (($diff <= 86400) && ($diff > 3600)) {\n\t\t\t$hours = round($diff / 3600);\n\t\t\tif ($hours <= 1) {\n\t\t\t\t$hours = 1;\n\t\t\t}\n\t\t\t$since = sprintf(_n('%s hour', '%s hours', $hours), $hours) .' '. __( 'ago' , 'tie' );\n\t\t}\n\t\telseif ($diff >= 86400) {\n\t\t\t$days = round($diff / 86400);\n\t\t\tif ($days <= 1) {\n\t\t\t\t$days = 1;\n\t\t\t\t$since = sprintf(_n('%s day', '%s days', $days), $days) .' '. __( 'ago' , 'tie' );\n\t\t\t}\n\t\t\telseif( $days > 29){\n\t\t\t\t$since = get_the_time(get_option('date_format'));\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$since = sprintf(_n('%s day', '%s days', $days), $days) .' '. __( 'ago' , 'tie' );\n\t\t\t}\n\t\t}\n\t}else{\n\t\t$since = get_the_time(get_option('date_format'));\n\t}\n\techo '<span>'.$since.'</span>';\n}", "title": "" }, { "docid": "b4943c8fb55fbaa5e23d91796970cb08", "score": "0.47691244", "text": "function cmp($a, $b){\n $ad = strtotime($a[2]);\n $bd = strtotime($b[2]);\n return ($ad - $bd);\n}", "title": "" }, { "docid": "357503f0ea59726c827fa87927ce4bcb", "score": "0.47655198", "text": "public function set_min_before( $min_before ) {\n\t\t$this->min_before = $min_before;\n\t}", "title": "" }, { "docid": "01cd7f3fd20a2bfb80f5d91a9b5b6476", "score": "0.47600144", "text": "function age_limit($year, $required)\n{\n\tif($year - $required)\n\t{\n\t\treturn false;\n\t}\n\t\n\treturn true; // date malformed\n}", "title": "" }, { "docid": "a72db1efb66cde506ff90e3caa70bb6c", "score": "0.4743158", "text": "function parseDate($stringvalue, $formats){\n //looking in which format the stringvalue match and then get the data\n foreach($formats as $format){\n //make vars to know te position of the d,m and y symbols\n $dayBegin = strpos($format,'d');\n $dayLength = 0; while(substr($format,$dayBegin+$dayLength,1) == 'd') $dayLength++;\n\n $monthBegin = strpos($format,'m');\n $monthLength = 0; while(substr($format,$monthBegin+$monthLength,1) == 'm') $monthLength++;\n\n $yearBegin = strpos($format,'y');\n $yearLength = 0; while(substr($format,$yearBegin+$yearLength,1) == 'y') $yearLength++;\n\n //analyze the formate and make a regular expression\n $replaces = array();\n $replaces[$dayBegin] = array(\"[0-9]{\".$dayLength.\"}\",$dayLength);\n $replaces[$monthBegin] = array(\"[0-9]{\".$monthLength.\"}\",$monthLength);\n $replaces[$yearBegin] = array(\"[0-9]{\".$yearLength.\"}\",$yearLength);\n\n ksort($replaces);\n\n $regexpr = str_replace(\"-\",\" \",$format);\n $marge = 0; //this is the marge that the new string greater is than the old one\n foreach($replaces as $begin=>$replace){\n $newpart = $replace[0];\n $length = $replace[1];\n $newbegin = $begin + $marge;\n\n $regexpr = substr($regexpr,0,$newbegin).$newpart.substr($regexpr,$newbegin+$length);\n\n $marge = strlen($regexpr) - strlen($format);\n }\n\n $regexpr = \"^$regexpr$\";\n\n $valueSeparators = array (\"-\",\"/\",\"\\.\",\"\\\\\\\\\",\"a\");\n\n //if the value has the format given by regexpr.\n //also try to replace - by \"/\",\".\" or \"\\\"\"\n foreach($valueSeparators as $valueSeparator)\n {\n $expr = str_replace(\" \",$valueSeparator,$regexpr);\n if(ereg($expr,$stringvalue))\n {\n $day = substr($stringvalue,$dayBegin,$dayLength);\n $month = substr($stringvalue,$monthBegin,$monthLength);\n $year = substr($stringvalue,$yearBegin,$yearLength);\n\n if($month > 12 && $day <= 12)\n {\n $month += $day;\n $day = $month-$day;\n $month -= $day;\n }\n return array('day'=>$day,'month'=>$month,'year'=>$year);\n }\n }\n }\n\n return array('day'=>0,'month'=>0,'year'=>0);\n }", "title": "" }, { "docid": "b39813606bdcbc3bba51b31855eac3fc", "score": "0.47416025", "text": "public function condition()\n {\n return strtotime($this->output);\n }", "title": "" }, { "docid": "720ece4478312ffd21863f5a1d41f7d0", "score": "0.4740903", "text": "function Gatuf_Template_dateAgo($date, $f='withal') {\n\tGatuf::loadFunction('Gatuf_Date_Easy');\n\tif (is_null($date)) {\n\t\treturn 'nunca';\n\t}\n\t$date = Gatuf_Template_dateFormat($date, '%Y-%m-%d %H:%M:%S');\n\tif ($f == 'withal') {\n\t\treturn Gatuf_Date_Easy($date, null, 2, 'ahora');\n\t} else {\n\t\treturn Gatuf_Date_Easy($date, null, 2, 'ahora', false);\n\t}\n}", "title": "" }, { "docid": "6703d0f5f975c0963e1fe8f5a44508be", "score": "0.47343194", "text": "private function validateUpdatedSince($value) {\n if(\n !preg_match('`^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$`', $value) // ISO\n && !preg_match('`^([0-9]+)\\s*(hour|day|week|month|year)s?$`', $value) // offset\n && !preg_match('`^[0-9]+$`', $value) // Epoch\n ) throw new Exception('Invalid updatedSince value');\n }", "title": "" }, { "docid": "537fb4a0b370afec7d249951957f8b2f", "score": "0.47308114", "text": "function customSort($a,$b)\n\t\t{\n\t\t\t\treturn $a['date'] <= $b['date'];\n\t\t}", "title": "" }, { "docid": "60d5b9677746e54953f4c5777de36aef", "score": "0.47210723", "text": "function time_ago($date)\n{\n if(empty($date)) {\n return \"No date provided\";\n }\n \n$periods = array(\"sec\", \"min\", \"hr\", \"day\", \"week\", \"month\", \"year\", \"decade\");\n$lengths = array(\"60\",\"60\",\"24\",\"7\",\"4.35\",\"12\",\"10\");\n$now = time();\n$unix_date = strtotime($date);\n// check validity of date\n \nif(empty($unix_date)) {\n \nreturn \"Bad date\";\n \n}\n \n// is it future date or past date\n \nif($now > $unix_date) {\n \n$difference = $now - $unix_date;\n \n$tense = \"ago\";\n \n} else {\n \n$difference = $unix_date - $now;\n$tense = \"from now\";}\n \nfor($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {\n \n$difference /= $lengths[$j];\n \n}\n \n$difference = round($difference);\n \nif($difference != 1) {\n \n$periods[$j].= \"s\";\n \n}\n \nreturn \"$difference $periods[$j] {$tense}\";\n \n}", "title": "" }, { "docid": "d615240a1007a8cf1153b579e4ba3b32", "score": "0.47196263", "text": "function available_since($array) {\n\n if ($array['php_4_0_0']) {\n return '';\n }\n\n foreach($array as $key => $val) {\n if ($val) {\n return 'Available since PHP ' . tag2version($key) . '.';\n }\n }\n\n}", "title": "" }, { "docid": "c0ef14b4226bed041bf0b25bca0fddba", "score": "0.4708715", "text": "function lt($var, $value, $option='')\n\t{\n\t\t$comparison = $var . ' < ' . $value;\n\n\t\tif ($this->notEmpty($value, $option) && !in_array($comparison, $this->where))\n\t\t{\n\t\t\t$this->where[] = $comparison;\n\t\t}\n\t}", "title": "" }, { "docid": "531b25a9b2f9f0af672295f2ce466285", "score": "0.47078687", "text": "public function testversion1elisparsedate($instr, $oldformats, $inctime, $minyear, $maxyear, $expected) {\n $plugin = new rlip_importplugin_version1elis();\n $timestamp = $plugin->parse_date($instr, $oldformats, $inctime, $minyear, $maxyear);\n $this->assertEquals($expected, $timestamp);\n }", "title": "" }, { "docid": "a10278cf15201a7746358944ce28c859", "score": "0.47042704", "text": "public static function lt($date1, $date2)\n {\n return static::compare($date1, $date2, 'lt');\n }", "title": "" }, { "docid": "dd4c8302d91ad17f37ce9b6af98ae338", "score": "0.46986794", "text": "protected function _formatFrom()\n {\n }", "title": "" }, { "docid": "9f81006dd3a22f8fd053195d0d92ce22", "score": "0.46979806", "text": "public function ltField($name,$val){\n return $this->setWhereVal($name,'lt',$val);\n }", "title": "" }, { "docid": "b30328e1588bc57e3a772f1ad29ff76e", "score": "0.469276", "text": "function cmp_refined($a, $b) {\n\tif ($a['price_info']['value_raw'] > $b['price_info']['value_raw']) {\n\t\treturn -1;\n\t} elseif ($a['price_info']['value_raw'] < $b['price_info']['value_raw']) {\n\t\treturn 1;\n\t}\n\n\treturn 0;\n}", "title": "" }, { "docid": "c25206b3b33b33893dd8b8c58cde52f5", "score": "0.46877757", "text": "public static function reFormat($date)\n {\n $time = strtotime($date);\n $date = date('Y-m-d G:i', $time);\n $currentDay = Carbon::now(); //returns current day\n $date_from = $currentDay->firstOfMonth()->toDateString(); \n $date_to = $currentDay->lastOfMonth()->toDateString(); \n return $date > $date_from && $date < $date_to ? true : false;\n }", "title": "" }, { "docid": "4e67b574edcd3a08d049d75815d90b42", "score": "0.46861753", "text": "protected function validateMinMax ($date) {\n\t\tif ($this->min !== NULL && $date < $this->min) {\n\t\t\t$this->field->AddValidationError(\n\t\t\t\tstatic::GetErrorMessage(static::ERROR_DATE_TO_LOW),\n\t\t\t\t[$this->min->format($this->format)]\n\t\t\t);\n\t\t}\n\t\tif ($this->max !== NULL && $date > $this->max) {\n\t\t\t$this->field->AddValidationError(\n\t\t\t\tstatic::GetErrorMessage(static::ERROR_DATE_TO_HIGH),\n\t\t\t\t[$this->max->format($this->format)]\n\t\t\t);\n\t\t}\n\t\treturn $date;\n\t}", "title": "" }, { "docid": "28ccfd3b70e8984ca97d3a839ccfaa73", "score": "0.46839857", "text": "private static function cmpDatePost($a, $b)\n {\n return ( date_create($a->getPost_date()) < date_create($b->getPost_date()) );\n }", "title": "" }, { "docid": "91d3826b87405ee44bf1d01590e981f6", "score": "0.46761334", "text": "function shareon_version_compare($current_version = '', $version_up_to_date = true, $ttl = 86400)\n\t{\n\t\tglobal $cache, $template;\n\n\t\t$info = $cache->get('shareon_versioncheck');\n\n\t\tif ($info === false)\n\t\t{\n\t\t$errstr = '';\n\t\t$errno = 0;\n\n\t\t$info = get_remote_file('www.suportephpbb.com.br', '/shareon', 'shareon.txt', $errstr, $errno);\n\t\tif ($info === false)\n\t\t{\n\t\t\t$template->assign_var('S_VERSIONCHECK_FAIL', true);\n\t\t\t$cache->destroy('shareon_versioncheck');\n\t\t}\n\t\t}\n\n\t\tif ($info !== false)\n\t{\n\t\t$cache->put('shareon_versioncheck', $info, $ttl);\n\t\t$latest_version_info = explode(\"\\n\", $info);\n\n\t\t$latest_version = strtolower(trim($latest_version_info[0]));\n\t\t$current_version = strtolower(trim($current_version));\n\t\t$version_up_to_date = version_compare($current_version, $latest_version, '<') ? false : true;\n\n\t\t$template->assign_vars(array(\n\t\t\t'U_VERSIONCHECK'\t=> ($version_up_to_date) ? false : $latest_version_info[1],\n\t\t\t'S_VERSIONOLD'\t\t=> $current_version,\n\t\t\t'S_VERSIONNEW'\t\t=> ($version_up_to_date) ? false : $latest_version_info[0],\n\t\t));\n\t}\n\n\t\treturn $version_up_to_date;\n\t}", "title": "" }, { "docid": "3671a116eb2ff5b9bcfe7ff87d203f28", "score": "0.46701", "text": "function exponent_sorting_workflowRevisionDescending($a,$b) {\n\treturn (strnatcmp($a->wf_major.\".\".$a->wf_minor,$b->wf_major.\".\".$b->wf_minor) == -1 ? 1 : -1);\n}", "title": "" }, { "docid": "ba229daaff1fd7a2294618402ceca7c8", "score": "0.4665925", "text": "public function date_compare($value, $mode, $against)\n\t{\n\t\t$against_str = $this->data[$this->name][$against];\n\t\t$value_str = reset($value);\n\n\t\t\n\t\tif( $against == 'stop_time' && $against_str == null )\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tif( $against == 'start_time' && $value_str == null)\n\t\t{\n\t\t\treturn true;\n\t\t}\t\t\n\n\t\tswitch($mode)\n\t\t{\n\t\t\tcase 'lt':\n\t\t\tcase '<':\n\t\t\t\t//debug( sprintf('verifying %s < %s', $value_str, $against_str) );\n\t\t\t\tif( strtotime($value_str) < strtotime($against_str) )\n\t\t\t\t{\n\t\t\t\t\t//debug('returning true');\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'lte':\n\t\t\tcase '<=':\n\t\t\t\t//debug( sprintf('verifying %s <= %s', $value_str, $against_str) );\n\t\t\t\tif( strtotime($value_str) <= strtotime($against_str) )\n\t\t\t\t{\n\t\t\t\t\t//debug('returning true');\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'gt':\n\t\t\tcase '>':\n\t\t\t\t//debug( sprintf('verifying %s > %s', $value_str, $against_str) );\n\t\t\t\tif( strtotime($value_str) > strtotime($against_str) )\n\t\t\t\t{\n\t\t\t\t\t//debug('returning true');\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'gte':\n\t\t\tcase '>=':\n\t\t\t\t//debug( sprintf('verifying %s >= %s', $value_str, $against_str) );\n\t\t\t\tif( strtotime($value_str) < strtotime($against_str) )\n\t\t\t\t{\n\t\t\t\t\t//debug('returning true');\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//debug('returning false');\n\t\t\n\t\treturn false;\n\n\t}", "title": "" }, { "docid": "65601cbc3bb212e02de218ca2c99dd0d", "score": "0.46630633", "text": "function cmp($a, $b) {\n $ad = new DateTime($a['created']);\n $bd = new DateTime($b['created']);\n if ($ad == $bd) {\n return 0;\n}\n\nreturn ($ad < $bd) ? 1 : -1;\n}", "title": "" }, { "docid": "dc80f3bbe07a7af8e84b004f3ada65ef", "score": "0.4625672", "text": "public function require_service_18y_or_older( $value ) {\n\t\t$merchant_info = $this->plugin->get_merchant_info();\n\n\t\tif ( is_object( $merchant_info ) && false === $merchant_info->services->{'18y_or_older'} ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "cf6794d68beee232f930eee34901b08e", "score": "0.4624234", "text": "function compare($a,$b){\n\t\treturn (-strcmp($a->getDate(),$b->getDate()));\n\t}", "title": "" }, { "docid": "eda06b93c60a710668a3c7362857acf5", "score": "0.46199417", "text": "function date_compare($a, $b){\n $t1 = strtotime($a['tanggalTransaksi']);\n $t2 = strtotime($b['tanggalTransaksi']);\n return $t1 - $t2;\n }", "title": "" }, { "docid": "eda06b93c60a710668a3c7362857acf5", "score": "0.46199417", "text": "function date_compare($a, $b){\n $t1 = strtotime($a['tanggalTransaksi']);\n $t2 = strtotime($b['tanggalTransaksi']);\n return $t1 - $t2;\n }", "title": "" }, { "docid": "53490268098f2319455590d44dc6776d", "score": "0.46167454", "text": "public function setLastUpdatedBefore($value)\n {\n $this->_fields['LastUpdatedBefore']['FieldValue'] = $value;\n return $this;\n }", "title": "" }, { "docid": "49c5ce4356569cab3e8b25a9aefac7cf", "score": "0.4611481", "text": "public function lessThan(\n string $field,\n float|int $value,\n ?string $message = null,\n Closure|string|null $when = null\n ) {\n if ($message === null) {\n if (!$this->_useI18n) {\n $message = sprintf('The provided value must be less than `%s`', $value);\n } else {\n $message = __d('cake', 'The provided value must be less than `{0}`', $value);\n }\n }\n\n $extra = array_filter(['on' => $when, 'message' => $message]);\n\n return $this->add($field, 'lessThan', $extra + [\n 'rule' => ['comparison', Validation::COMPARE_LESS, $value],\n ]);\n }", "title": "" }, { "docid": "1f6462fcebcb00b454d5f7d2792cdc53", "score": "0.4598255", "text": "function INST_mysqlOutOfDate($db)\n{\n $minv = explode('.', SUPPORTED_MYSQL_VER);\n\n if ($db['type'] == 'mysql' || $db['type'] == 'mysql-innodb') {\n $myv = mysql_v($db['host'], $db['user'], $db['pass']);\n\n if (($myv[0] < $minv[0]) ||\n (($myv[0] == $minv[0]) && ($myv[1] < $minv[1])) ||\n (($myv[0] == $minv[0]) && ($myv[1] == $minv[1]) && ($myv[2] < $minv[2]))) {\n\n return true;\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "c3965a8d2f2e4bedcc53eeca4dc18c11", "score": "0.45951352", "text": "public function scopeValidBefore($query, $date, $field = null)\n {\n $field = empty($field) ? $this->getModel()->getQualifiedValidToColumn() : $field;\n\n # what's the greatest Value?\n $max = Carbon::maxValue();\n\n # Apply the scope\n return $query->whereRaw(\"'{$date}' >= COALESCE({$field}, '{$max}')\");\n }", "title": "" }, { "docid": "dec14d1f0fa59e77c981ae10f86134a2", "score": "0.45893273", "text": "function date_compare($a, $b){\n $t1 = strtotime($a['tanggalAturanKembali']);\n $t2 = strtotime($b['tanggalAturanKembali']);\n return $t1 - $t2;\n }", "title": "" }, { "docid": "dec14d1f0fa59e77c981ae10f86134a2", "score": "0.45893273", "text": "function date_compare($a, $b){\n $t1 = strtotime($a['tanggalAturanKembali']);\n $t2 = strtotime($b['tanggalAturanKembali']);\n return $t1 - $t2;\n }", "title": "" }, { "docid": "3d5a28587efb8ad8e0c381b98a6cfd75", "score": "0.45774505", "text": "function cmptime($alfa, $beta)\n{ \n // alfone, betone = older-newer\n // betone, alfone = newer-older\n $alfone = filectime($alfa->getLocation().$alfa->getName());\n $betone = filectime($beta->getLocation().$beta->getName());\n return strcmp($betone, $alfone);\n}", "title": "" }, { "docid": "8d75c5628cfbf4e38d50e86d381108c6", "score": "0.45773065", "text": "function meeting_condition_meeting_mtgdate_after($meeting, $tdate) {\n return ($meeting->mtgdate > $tdate);\n}", "title": "" }, { "docid": "bc003a797a921959871f8a5611f0b6c9", "score": "0.45577082", "text": "function fecha_cmp_pormes($fecha, $mes, $agno)\n{\n\t$icmp = 0;\n\tif ($fecha['a'] < $agno) $icmp = -1;\n\telseif ($fecha['a'] > $agno) $icmp = 1;\n\tif ($icmp == 0)\n\t{\n\t\tif ($fecha['m'] < $mes) $icmp = -1;\n\t\telseif ($fecha['m'] > $mes) $icmp = 1;\n\t}\n\treturn $icmp;\n}", "title": "" }, { "docid": "08259a8523511dd15956386d501686ce", "score": "0.45562494", "text": "function rearrange_date($date, $fmt1, $fmt2) {\n\t// convert current format to regex\n\t$fmt1 = preg_quote($fmt1, \"/\");\n\t$fmt1 = str_replace(\"d\", \"(?P<d>\\d{1,2})\", $fmt1);\n\t$fmt1 = str_replace(\"y\", \"(?P<y>\\d{1,4})\", $fmt1);\n\t$fmt1 = str_replace(\"m\", \"(?P<m>\\d{1,2})\", $fmt1);\n\t$fmt1 = '/' . $fmt1 . '/';\n\t\n\t// match date to format $fmt1\n\tif (preg_match($fmt1, $date, $matches)) {\n\t\treturn str_replace(\"d\", $matches[\"d\"], str_replace(\"m\", $matches[\"m\"], str_replace(\"y\", $matches[\"y\"], $fmt2)));\n\t} else {\n\t\treturn $date;\n\t}\n}", "title": "" }, { "docid": "195487a4d61980e0a5f338392fd01b66", "score": "0.45525774", "text": "function comprobarFecha( $fechainicio, $fechafin)\n\t{\n\t\t$fi\t\t\t\t= str_replace(\"/\",'',$fechainicio);\n\t\t$ff\t\t\t\t= str_replace(\"/\",'',$fechafin);\n\t\n\t\t$fi\t\t\t\t= str_split($fi,2);\n\t\t$ff\t\t\t\t= str_split($ff,2);\n\t\t$fi\t\t\t\t= $fi[2].$fi[3].$fi[1].$fi[0];\n\t\t$ff\t\t\t\t= $ff[2].$ff[3].$ff[1].$ff[0];\n\t\tif( $fi > $ff )\n\t\t echo(\"{'codMsg':3,'mensaje': ' La fecha de inicio debe ser menor que la de fin.'}\");\n\t\t\t\n\t\t\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4b5e178cc98a86b482c3e16331ceced0", "score": "0.45498145", "text": "function minDates($date1,$date2){\n\t$tabDate1=explode(\"/\",$date1);\n\t$jour1=$tabDate1[0];\n\t$mois1=$tabDate1[1];\n\t$an1=$tabDate1[2];\n\n\t$tabDate2=explode(\"/\",$date2);\n\t$jour2=$tabDate2[0];\n\t$mois2=$tabDate2[1];\n\t$an2=$tabDate2[2];\n\n\tif ($an1<$an2) {\n\t\treturn $date1;\n\t}elseif ($an1>$an2){\n\t\treturn $date2;\n\t}else{\n\t\tif ($mois1<$mois2){\n\t\t\treturn $date1;\n\t\t}elseif ($mois1>$mois2){\n\t\t\treturn $date2;\n\t\t}else{\n\t\t\tif ($jour1<$jour2){\n\t\t\t\treturn $date1;\n\t\t\t}else{\n\t\t\t\treturn $date2;\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "6434a95fa0ca91ea1c61421e3adf1491", "score": "0.4547942", "text": "function newSince($days) {\n\t\t return false;\n\t\t}", "title": "" }, { "docid": "0f4337693865abd009d3f4d1b67babfc", "score": "0.45439067", "text": "public static function getDefaultConfig()\n {\n $config = apply_filters('quform_default_config_validator_less_than', array(\n 'max' => '10',\n 'inclusive' => false,\n 'messages' => array(\n self::INVALID => '',\n self::NOT_NUMERIC => '',\n self::NOT_LESS => '',\n self::NOT_LESS_INCLUSIVE => ''\n )\n ));\n\n $config['type'] = 'lessThan';\n\n return $config;\n }", "title": "" }, { "docid": "c321020bde58e5361b146ecf9a40eec3", "score": "0.4538592", "text": "private function get_bump_thresholds() {\n\t\treturn array( 60, 45, 20, 7, 1 ); // days.\n\t}", "title": "" }, { "docid": "f447587d099304e7e35db712d65688c2", "score": "0.4533251", "text": "function toekomst2($datum) {\n $vandaagdatum = date(\"Y-m-d\");\n $vandaag = strtotime($vandaagdatum);\n $anderedatum = strtotime($datum);\n return ($vandaag < $anderedatum); //Het product kan niet op dezelfde dag nog geleverd worden.\n}", "title": "" }, { "docid": "755f2d0864079d33aa8faddc6a982295", "score": "0.4532399", "text": "function sortDates($a, $b) {\n // Interprets a string of XML into an object\n $reading1 = simplexml_load_string($a->asXML());\n $reading2 = simplexml_load_string($b->asXML());\n\n //get date and time concatenated\n $dateFormat = \"d/m/Y H:i:s\";\n $date1 = DateTime::createFromFormat($dateFormat, ($reading1->attributes()->date . \" \" . $reading1->attributes()->time));\n $date2 = DateTime::createFromFormat($dateFormat, ($reading2->attributes()->date . \" \" . $reading2->attributes()->time));\n\n //return comparison\nif($date1 == $date2){\n return 0;\n }\nif($date1 < $date2){\n return -1;\n }\n else{\n return 1;\n }\n\n}", "title": "" }, { "docid": "48d9cd866a48ecd64a73ff24de0dee00", "score": "0.45307335", "text": "function acf_version_compare( $left = '', $compare = '>', $right = '' ) {\n\n\t// Detect 'wp' placeholder.\n\tif ( $left === 'wp' ) {\n\t\tglobal $wp_version;\n\t\t$left = $wp_version;\n\t}\n\n\t// Return result.\n\treturn version_compare( $left, $right, $compare );\n}", "title": "" }, { "docid": "dbc1e0b15abced61c1cbacd211c18dd1", "score": "0.45219415", "text": "function GetCompareDate($date_x, $date_y) {\r\n \t\t$db_exc = db_query(\"SELECT (\r\n\t\t\t\t\t\t\tdate( '$date_x' ) <= date( '$date_y' )\r\n\t\t\t\t\t\t\t) AS rest\");\r\n \t\treturn db_fetch_one($db_exc);\r\n }", "title": "" }, { "docid": "17df80fac1214d21a8a3fd462590ba47", "score": "0.45155448", "text": "private final function processModifierSince(&$searchTerms, &$params, &$toRemove, $i, $l) {\n \n $unit = null;\n $duration = 1;\n\n /*\n * <since> \"numeric\" \"(year|day|month)\"\n */\n if ($i + 2 < $l && $this->isNumeric($searchTerms[$i + 1]) && $this->dictionary->getUnit($searchTerms[$i + 2])) {\n $unit = $this->dictionary->getUnit($searchTerms[$i + 2]);\n $duration = $this->toNumeric($searchTerms[$i + 1]);\n array_push($toRemove, $searchTerms[$i + 2]);\n array_push($toRemove, $searchTerms[$i + 1]);\n }\n /*\n * <since> \"date\"\n */\n else if ($i + 1 < $l && isISO8601($searchTerms[$i + 1])) {\n $params['time:start'] = toISO8601($searchTerms[$i + 1]);\n array_push($toRemove, $searchTerms[$i + 1]);\n }\n /*\n * <since> \"month\" \"year\"\n */\n else if ($i + 2 < $l && $this->dictionary->getMonth($searchTerms[$i + 1]) && preg_match('\\d{4}$', $searchTerms[$i + 2])) {\n $params['time:start'] = $searchTerms[$i + 2] . '-' . $this->dictionary->getMonth($searchTerms[$i + 1]) . '-01' . 'T00:00:00';\n array_push($toRemove, $searchTerms[$i + 1]);\n array_push($toRemove, $searchTerms[$i + 2]);\n }\n /*\n * <since> \"month\"\n */\n else if ($i + 1 < $l && $this->dictionary->getMonth($searchTerms[$i + 1])) {\n $params['time:start'] = date('Y') . '-' . $this->dictionary->getMonth($searchTerms[$i + 1]) . '-01' . 'T00:00:00';\n array_push($toRemove, $searchTerms[$i + 1]);\n }\n /*\n * <since> \"numeric\" <last> \"(year|day|month)\"\n */\n else if ($i + 3 < $l && $this->dictionary->getNumber($searchTerms[$i + 1]) && $this->dictionary->getModifier($searchTerms[$i + 2]) === 'last' && $this->dictionary->getUnit($searchTerms[$i + 3])) {\n $unit = $this->dictionary->getUnit($searchTerms[$i + 3]);\n $duration = $this->toNumeric($searchTerms[$i + 1]);\n array_push($toRemove, $searchTerms[$i + 3]);\n array_push($toRemove, $searchTerms[$i + 1]);\n }\n /*\n * <since> <last> \"numeric\" \"(year|day|month)\"\n */\n else if ($i + 3 < $l && $this->dictionary->getModifier($searchTerms[$i + 1]) === 'last' && $this->isNumeric($searchTerms[$i + 2]) && $this->dictionary->getUnit($searchTerms[$i + 3])) {\n $unit = $this->dictionary->getUnit($searchTerms[$i + 3]);\n $duration = $this->toNumeric($searchTerms[$i + 2]);\n array_push($toRemove, $searchTerms[$i + 3]);\n array_push($toRemove, $searchTerms[$i + 2]);\n }\n /*\n * <since> <last> \"(year|day|month)\"\n */\n else if ($i + 2 < $l && $this->dictionary->getModifier($searchTerms[$i + 1]) === 'last' && $this->dictionary->getUnit($searchTerms[$i + 2])) {\n $unit = $this->dictionary->getUnit($searchTerms[$i + 2]);\n array_push($toRemove, $searchTerms[$i + 2]);\n }\n /*\n * <since> \"(year|day|month)\" <last>\n */\n else if ($i + 2 < $l && $this->dictionary->getModifier($searchTerms[$i + 2]) === 'last' && $this->dictionary->getUnit($searchTerms[$i + 1])) {\n $unit = $this->dictionary->getUnit($searchTerms[$i + 1]);\n array_push($toRemove, $searchTerms[$i + 1]);\n }\n\n /*\n * Known duration unit\n */\n if ($unit === 'days' || $unit === 'months' || $unit === 'years') {\n $params['time:start'] = date('Y-m-d', strtotime(date('Y-m-d') . ' - ' . $duration . $unit));\n }\n \n }", "title": "" }, { "docid": "6ee057cd880a8f7a088096b8b0212ed4", "score": "0.45121896", "text": "protected function BestDate() {\n\tif (is_null($this->WhenOrdered())) {\n\t if (is_null($this->WhenConfirmed())) {\n\t\tif (is_null($this->WhenCreated())) {\n\t\t if (is_null($this->WhenExpectedOriginal())) {\n\t\t\tif (is_null($this->WhenExpectedFinal())) {\n\t\t\t $out = '(date n/a)';\n\t\t\t} else {\n\t\t\t $out = 'xf'.$this->WhenExpectedFinal();\n\t\t\t}\n\t\t } else {\n\t\t\t$out = 'xo'.$this->WhenExpectedOriginal();\n\t\t }\n\t\t} else {\n\t\t $out = 'cr'.$this->WhenCreated();\n\t\t}\n\t } else {\n\t\t$out = 'cf'.$this->WhenConfirmed();\n\t }\n\t} else {\n\t $out = 'or'.$this->WhenOrdered();\n\t}\n\treturn $out;\n }", "title": "" }, { "docid": "0e590a7d17ae28947725dc419e1e5a52", "score": "0.45109367", "text": "function sortFunction($a, $b)\n{\n\tif (isset($a->date_created) && isset($b->date_created)) {\n\t\treturn strtotime($a->date_created) - strtotime($b->date_created);\n\t}\n\tif (isset($a[\"date_created\"]) && isset($b[\"date_created\"])) {\n\t\treturn strtotime($a[\"date_assigned\"]) - strtotime($b[\"date_assigned\"]);\n\t}\n}", "title": "" }, { "docid": "ed122400b3899072a5e10469f6f8df0f", "score": "0.45096627", "text": "function isDatePrepare($field_name, $fldValue){\n $field_type = $this->columns_edit_mode[$field_name]['type'];\n switch (strtolower($field_type)){\n case 'date': // date: DATE\n case 'datetime': // date: DATE\n break;\n case 'datetimedmy': // date: DATETIME\n $time1 = substr(trim($fldValue), 10, 9);\n $year1 = substr(trim($fldValue), 6, 4);\n\t\t$month1 = substr(trim($fldValue), 3, 2);\n $day1 = substr(trim($fldValue), 0, 2);\n $fldValue = $year1.\"-\".$month1.\"-\".$day1.\" \".$time1;\n break;\n case 'datedmy': // date: DATE\n $year1 = substr(trim($fldValue), 6, 4);\n $month1 = substr(trim($fldValue), 3, 2);\n $day1 = substr(trim($fldValue), 0, 2);\n $fldValue = $year1.\"-\".$month1.\"-\".$day1;\n break;\n default:\n break;\n }\n return $fldValue;\n }", "title": "" } ]
ec1663062b558661135cbec3b5091bc1
Renders the createtable statement.
[ { "docid": "11cb67681717c16e1f229e97807f4cf2", "score": "0.0", "text": "private function renderStructureTableUp(\n StructureInterface $structure,\n string $tableName,\n int $indent = 0,\n string $schema = null,\n string $engineVersion = null\n ): string {\n $columns = $structure->getColumns();\n $renderedColumns = [];\n foreach ($columns as $column) {\n $renderedColumns[] = $this->columnRenderer->render(\n $column,\n $structure->getPrimaryKey(),\n 8,\n $schema,\n $engineVersion\n );\n }\n\n return $this->applyIndent(\n $indent,\n str_replace(\n [\n '{tableName}',\n '{columns}',\n ],\n [\n $tableName,\n implode(\"\\n\", $renderedColumns),\n ],\n $this->createTableTemplate\n )\n );\n }", "title": "" } ]
[ { "docid": "4dd57c6d1d754175193520c303e47861", "score": "0.7018034", "text": "public function create()\n {\n return view(\"management.table.create\");\n }", "title": "" }, { "docid": "8a88188b203ab112b01125805d24d956", "score": "0.683442", "text": "private function createNewTable() {\n //generate the create table statement\n $sql = \"create table $this->tableName(\";\n $comma = \"\";\n $keyNameList = [];\n foreach ($this->columns as $column /* @var $column DbColumn */) {\n $sql .= \" $comma $column->columnName $column->dataType $column->extraStuff\";\n $comma = \",\";\n if ($column->primaryKey === true) {\n $keyNameList[] = $column->columnName;\n }\n }\n //generate the primary key list, if any are present\n $primaryKeySql = \"\";\n if (count($keyNameList) > 0) {\n $primaryKeySql = \"primary key(\";\n $comma = \"\";\n foreach ($keyNameList as $keyName) {\n $primaryKeySql = \"$primaryKeySql $comma $keyName\";\n $comma = \",\";\n }\n $primaryKeySql = \",$primaryKeySql)\";\n }\n\n //constraints\n $cSql = \"\";\n //we are assuming that there is at least one table. otherwise, the query would fail anyway.\n $comma = \",\";\n foreach ($this->constraints as $c) {\n $cSql .= \" $comma\";\n switch ($c->constraintType) {\n case \"foreign key\":\n $cSql .= \" FOREIGN KEY($c->columnName) REFERENCES $c->referencesTableName($c->referencesColumnName)\";\n break;\n }\n }\n $sql = \"$sql $primaryKeySql $cSql)\";\n return DbManager::nonQuery($sql);\n }", "title": "" }, { "docid": "fedcc78f345b5e1133a6ca46cbc72cd9", "score": "0.6769845", "text": "public function create()\n {\n return view('tables.create');\n }", "title": "" }, { "docid": "03eb96e9268e09855872183f94cd1443", "score": "0.6701044", "text": "protected function _createTableSql()\n\t{\n\t\treturn 'CREATE TABLE ' . $this->getTable() . ' (pgt_iou VARCHAR(255) NOT NULL PRIMARY KEY, pgt VARCHAR(255) NOT NULL)';\n\t}", "title": "" }, { "docid": "2d61619801e4f6da2c77864b8d9f3b85", "score": "0.6691477", "text": "protected function _getCreateTablesStatement() {\n\t\t$models = $this->getGarpModels();\n\t\t$statement = '';\n\n\t\tforeach ($models as $model) {\n\t\t\t$statement .= $model->getCreateStatement();\n\t\t}\n\t\t\n\t\t$statement .= $this->getBindingModel()->getCreateStatement();\n\n\t\treturn $statement;\n\t}", "title": "" }, { "docid": "d6545e8fba7ad6cddedd0d5ce7dceb3a", "score": "0.6679006", "text": "public function create()\n {\n return view('users_tables.create');\n }", "title": "" }, { "docid": "5637382a7d1993eeaee3889d9f273ea8", "score": "0.66562515", "text": "public function tableDefinition()\r\n {\r\n if(is_array($this->cols)){\r\n $table = $this->tableName();\r\n $colString = implode(','.PHP_EOL,$this->cols); // creates a comma separated string of SQL column definitions\r\n return \"CREATE TABLE IF NOT EXISTS $table ($colString)\";\r\n }else{\r\n return false;\r\n }\r\n\r\n }", "title": "" }, { "docid": "77b97d855358ef8c474984e95679dcbf", "score": "0.665098", "text": "protected function generateTable(){\n\t\t$columns = $this->getConfig()->getColumns();\n\t\t$columns['magento_entity_id'] = array('type' => 'int');\n\n\t\t$sql = 'CREATE TABLE ' . $this->_table . '(';\n\n\t\tforeach ($columns as $name => $params) {\n\t\t\t$type = $this->getConfig()->getTypeForDatabase($params['type'], $name);\n\t\t\t$value = isset($params['default']) ? $params['default'] : 'NULL';\n\t\t\tif ($value != 'NULL') {\n\t\t\t\t$value = 'DEFAULT ' . $value;\n\t\t\t}\n\t\t\t$primary = isset($params['primary']) && $params['primary'] ? ' PRIMARY KEY' : '';\n\n\t\t\t$sql .= \"\\n\" . $name . \" \" . $type . \" \" . $value . $primary . \",\";\n\t\t}\n\t\t$sql = substr($sql, 0, -1) . ') ENGINE=InnoDB DEFAULT CHARSET=utf8;' . \"\\n\";\n\n\t\treturn $sql;\n\t}", "title": "" }, { "docid": "328e049be019997a9728e5a29865f8ed", "score": "0.66401553", "text": "function createTable() {\n print \"\\nCreate table: \".$dbtable.\"\\n\";\n if (createDB()) {\n print \"OK\\n\";\n }\n interceptExit();\n }", "title": "" }, { "docid": "e0cdc2da1a4dabf0792a03640a84c11b", "score": "0.6595782", "text": "public function createTable($columns, $values = [], $tablename = '') {\n\n $html = \"<table id='\".$tablename.\"'>\";\n \n $html .= $this->createHeader($columns);\n \n $html .= $this->createRows($columns, $values);\n \n $html .= \"</table>\";\n return $html;\n }", "title": "" }, { "docid": "dfc33e7bae2a513a9744fdd948c498ed", "score": "0.65315574", "text": "public function CreateTable($sql){\n\t\t//Create Table\n\t\tif ($this->connection->query($sql) === TRUE) {\n\t\t #echo \"Table has been created successfully\";\n\t\t} else {\n\t\t #echo \"Error to creating table: \".$this->connection->error;\n\t\t}\n\t\t#echo \"<br>\";\n\t}", "title": "" }, { "docid": "ff7c5acc1d5f86bc11134f0a259e1747", "score": "0.6496761", "text": "abstract public function createTable();", "title": "" }, { "docid": "8e79323b91a43be9d4b3200e11f7d256", "score": "0.64519894", "text": "function createTableModel()\r\n {\r\n?>\r\n // table model\r\n var <?php echo $this->Name; ?>_tableModel = new qx.ui.table.SimpleTableModel();\r\n <?php\r\n if ($this->owner!=null)\r\n {\r\n ?>\r\n <?php echo $this->owner->Name.\".\".$this->Name; ?>_tableModel=<?php echo $this->Name; ?>_tableModel;\r\n <?php\r\n }\r\n ?>\r\n<?php\r\n }", "title": "" }, { "docid": "cca73d0d9efa367ffc2286890e0e1d3b", "score": "0.643168", "text": "public function createTable()\n\t{\n\t\t$app = Factory::getApplication();\n\n\t\tif ($app->isSite())\n\t\t{\n\t\t\techo 'Error creating DB table - Need to run this in admin area';\n\n\t\t\treturn;\n\t\t}\n\n\t\t$user = Factory::getUser();\n\n\t\tif (!$user->authorise('core.admin'))\n\t\t{\n\t\t\techo 'Error creating DB table - You need to be superadmin user to exeacute this task';\n\n\t\t\treturn;\n\t\t}\n\n\t\t$jinput = $app->input;\n\t\t$context = $jinput->get->get('context', '', 'cmd');\n\n\t\tif (empty($context))\n\t\t{\n\t\t\techo 'Error creating DB table - No context is passed';\n\n\t\t\treturn;\n\t\t}\n\n\t\t$model = $this->getModel('indexer');\n\t\t$model->createTable($context);\n\t}", "title": "" }, { "docid": "35619d8c55ca4886719b7feae585eaaf", "score": "0.6397633", "text": "public function build_table()\n {\n if (count($this->properties) > 0)\n {\n foreach ($this->properties as $property => $values)\n {\n $contents = array();\n $contents[] = $property;\n \n if (! is_array($values))\n {\n $values = array($values);\n }\n \n if (count($values) > 0)\n {\n foreach ($values as $value)\n {\n $contents[] = $value;\n }\n }\n \n $this->addRow($contents);\n }\n \n $this->setColAttributes(0, array('class' => 'header'));\n }\n else\n {\n $contents = array();\n $contents[] = Translation::get('NoResults', null, Utilities::COMMON_LIBRARIES);\n $row = $this->addRow($contents);\n $this->setCellAttributes($row, 0, 'style=\"font-style: italic;text-align:center;\" colspan=2');\n }\n }", "title": "" }, { "docid": "dc4dc8db00a323eebc5b33614d575d9c", "score": "0.63681984", "text": "function create_table($table_name, $field_name, $field_type, $field_length){\n // $sql_chk = db::query(\"SELECT COUNT(*) AS TOTAL FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_CATALOG='\".strtoupper(db::$_dbName).\"' AND TABLE_NAME = '\".$table_name.\"'\");\n // $rec_chk = db::fetch_array($sql_chk);\n // if($rec_chk['TOTAL'] > 0)\n // {\n // echo \"<script>alert('ตาราง \".$table_name.\" ถูกใช้งานแล้ว กรุณาตรวจสอบ'); window.location.href='\".$_SERVER['HTTP_REFERER'].\"';</script>\";\n // db::db_close();\n // exit;\n // }\n\n $field_length = $field_length == \"\" ? \"\" : \"(\".$field_length.\")\";\n\n $sql_create = \" CREATE TABLE [dbo].[\".$table_name.\"]([\".$field_name.\"] \".$field_type.\" \".$field_length.\" NOT NULL, PRIMARY KEY ([\".$field_name.\"]))\";\n\n }", "title": "" }, { "docid": "a707eccb37b5d7dc4dde8b6904d471b1", "score": "0.6324125", "text": "protected function buildTable(): string\n {\n $sql = '';\n\n if ( empty($this->tableInto) )\n {\n return $sql;\n }\n\n $sql .= 'INTO' . PHP_EOL;\n $sql .= $this->indent();\n $sql .= $this->tableInto . PHP_EOL;\n\n return $sql;\n }", "title": "" }, { "docid": "faf4af0c13b9922aff8d14191f86e421", "score": "0.63184416", "text": "function createTableDisplay($STID){\n\n\n echo \"<table border='1'>\\n\";\n while ($row = oci_fetch_array($STID, OCI_ASSOC+OCI_RETURN_NULLS)) {\n echo \"<tr>\\n\";\n foreach ($row as $item) {\n echo \" <td>\" . ($item !== null ? htmlentities($item, ENT_QUOTES) : \"&nbsp;\") . \"</td>\\n\";\n }\n echo \"</tr>\\n\";\n }\n echo \"</table>\\n\";\n\n }", "title": "" }, { "docid": "5e548cc3bbb1da83c68467594384ebb9", "score": "0.6304944", "text": "private function _createTables()\r\n {\r\n return true;\r\n }", "title": "" }, { "docid": "3e0a9ec4ad7b9cb81d22608adf68bf3c", "score": "0.6290319", "text": "public function create()\n {\n return view('admin.product_table.create');\n }", "title": "" }, { "docid": "f1cd9cc62cebf1ffdf74a11b3a415bff", "score": "0.6260759", "text": "public function create()\n {\n parent::create();\n\n $sheet = $this->add_sheet();\n\n $this->add_table($sheet, $this->database, $this->generate_table());\n }", "title": "" }, { "docid": "a21e3f943087691b1eed5061f17d20b5", "score": "0.6254158", "text": "protected function create_table( $table_name ) {\n\t\t\tglobal $wpdb;\n\t\t\t$wpdadb = WPDADB::get_db_connection( $this->schema_name );\n\n\t\t\t$save_suppress_errors = $wpdadb->suppress_errors;\n\t\t\t$wpdadb->suppress_errors = true;\n\n\t\t\tif ( 'off' !== $this->show_create ) {\n\t\t\t\t$query = \"show create table {$this->schema_name_prefix}`$table_name`\";\n\t\t\t\t$ctcmd = $wpdadb->get_results( $query, 'ARRAY_A' ); // WPCS: unprepared SQL OK; db call ok; no-cache ok.\n\t\t\t}\n\n\t\t\t$this->output_string = '';\n\t\t\tif ( $wpdadb->num_rows > 0 ) {\n\t\t\t\tif ( 'off' !== $this->show_comments ) {\n\t\t\t\t\t$this->output_string .= \"--\\n\";\n\t\t\t\t\tif ( 'on' === WPDA::get_option( WPDA::OPTION_BE_EXPORT_VARIABLE_PREFIX ) ) {\n\t\t\t\t\t\tif ( $wpdb->dbname === $this->schema_name && strpos( $table_name, $wpdb->prefix ) === 0 ) {\n\t\t\t\t\t\t\t$this->output_string .= '-- Create table `{wp_prefix}' . esc_attr( substr( $table_name, strlen( $wpdb->prefix ) ) ) . \"`\\n\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->output_string .= '-- Create table `' . esc_attr( $table_name ) . \"`\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->output_string .= '-- Create table `' . esc_attr( $table_name ) . \"`\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t$this->output_string .= \"--\\n\";\n\t\t\t\t}\n\n\t\t\t\tif ( 'off' !== $this->show_create ) {\n\t\t\t\t\t$create_table_statement = $ctcmd[0]['Create Table'];\n\t\t\t\t\tif ( 'on' === WPDA::get_option( WPDA::OPTION_BE_EXPORT_VARIABLE_PREFIX ) ) {\n\t\t\t\t\t\tif ( $wpdb->dbname === $this->schema_name && strpos( $table_name, $wpdb->prefix ) === 0 ) {\n\t\t\t\t\t\t\t$table_name_position = strpos( $create_table_statement, $table_name );\n\t\t\t\t\t\t\tif ( $table_name_position > 0 ) {\n\t\t\t\t\t\t\t\t$create_table_statement_saved = $create_table_statement;\n\t\t\t\t\t\t\t\t$create_table_statement = substr( $create_table_statement, 0, $table_name_position );\n\t\t\t\t\t\t\t\t$create_table_statement .= '{wp_prefix}' . esc_attr( substr( $table_name, strlen( $wpdb->prefix ) ) );\n\t\t\t\t\t\t\t\t$create_table_statement .= substr( $create_table_statement_saved, $table_name_position + strlen( $table_name ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->output_string .= wp_kses_data( $create_table_statement ) . \";\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t$table_exists = true;\n\t\t\t} else {\n\t\t\t\tif ( 'off' !== $this->show_comments ) {\n\t\t\t\t\t$this->output_string .= \"--\\n\";\n\t\t\t\t\t$this->output_string .= '-- Table `' . esc_attr( $table_name ) . \"` not found\\n\";\n\t\t\t\t\t$this->output_string .= \"--\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t$table_exists = false;\n\t\t\t}\n\n\t\t\t$this->write_output();\n\n\t\t\t$wpdadb->suppress_errors = $save_suppress_errors;\n\n\t\t\treturn $table_exists;\n\t\t}", "title": "" }, { "docid": "bb9a06046086c924b8a0994354c8e3d1", "score": "0.62124634", "text": "public function tableWizard() {}", "title": "" }, { "docid": "d21e652d31e7fc9ead3d2d24cbf08d5f", "score": "0.6210673", "text": "public function create_table() {\n\n\t\tglobal $wpdb;\n\n\t\t$table_name \t = $this->table_name;\n\t\t$charset_collate = $wpdb->get_charset_collate();\n\n\t\t$query = \"CREATE TABLE {$table_name} (\n\t\t\tid bigint(10) NOT NULL AUTO_INCREMENT,\n\t\t\tname text NOT NULL,\n\t\t\tdate_created datetime NOT NULL,\n\t\t\tdate_modified datetime NOT NULL,\n\t\t\tstatus text NOT NULL,\n\t\t\tical_hash text NOT NULL,\n\t\t\tPRIMARY KEY id (id)\n\t\t) {$charset_collate};\";\n\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\t\tdbDelta( $query );\n\n\t}", "title": "" }, { "docid": "2e700496f7ed2b8e6a464633574124c3", "score": "0.6182888", "text": "public function write() {\n\t\t$table = '<table '.$this->addHTML.'>';\n\t\tif(!is_null($this->tableInfo['head'])) {\n\t\t\t$table .= '<thead><tr>';\n\t\t\tforeach($this->tableInfo['head'] as $value) {\n\t\t\t\t$table .= '<th>'.$value.'</th>';\n\t\t\t}\n\t\t\tif($this->crud) {\n\t\t\t\t\t$table .= '<th>Options</th>';\t\n\t\t\t}\n\t\t\t$table .= '</tr></thead>';\n\t\t}\n\t\t$table .= '<tbody>';\n\t\tif(isset($this->tableInfo['rows'])) {\n\t\t\tforeach($this->tableInfo['rows'] as $row) {\n\t\t\t\t$table .= '<tr>';\n\t\t\t\tforeach($row as $key => $column) {\n\t\t\t\t\tif(($key != $this->crud_id) OR $this->show_crud_id) {\n\t\t\t\t\t\t$table .= '<td>'.$column.'</td>';\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($this->crud && isset($row[$this->crud_id])) {\n\t\t\t\t\t$table .= '<td>';\n\t\t\t\t\t$table .= '<a href=\"'.$this->crudPath.'Details/'.$row[$this->crud_id].'\" title=\"Details\"><i class=\"fa fa-search\"></i></a> | ';\n\t\t\t\t\t$table .= '<a href=\"'.$this->crudPath.'Edit/'.$row[$this->crud_id].'\" title=\"Edit\"><i class=\"fa fa-wrench\"></i></a> | ';\n\t\t\t\t\t$table .= '<a href=\"'.$this->crudPath.'Delete/'.$row[$this->crud_id].'\" title=\"Delete\"><i class=\"fa fa-trash\"></i></a>';\n\t\t\t\t\t$table .= '</td>';\n\t\t\t\t}\n\t\t\t\t$table .= '</tr>';\n\t\t\t}\n\t\t} else {\n\t\t\t$table .= '<tr>';\n\t\t\t$table .= '<td>';\n\t\t\t$table .= 'No Data to show here.';\n\t\t\t$table .= '</td>';\n\t\t\t$table .= '</tr>';\t\n\t\t}\n\t\t\n\t\t$table .= '</tbody></table>';\n\t\treturn $table;\n\t}", "title": "" }, { "docid": "d0ee751bb0fc5d9f1a5114c3ece3f39d", "score": "0.6175797", "text": "public function create_table() {\n\n\t\tglobal $wpdb;\n\n\t\trequire_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\n\t\tif ( $wpdb->get_var( \"SHOW TABLES LIKE '$this->table_name'\" ) == $this->table_name ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$sql = \"CREATE TABLE \" . $this->table_name . \" (\n\t\tid bigint(20) NOT NULL AUTO_INCREMENT,\n\t\tuser_id bigint(20) NOT NULL,\n\t\tusername varchar(50) NOT NULL,\n\t\temail varchar(50) NOT NULL,\n\t\tname mediumtext NOT NULL,\n\t\tproduct_count bigint(20) NOT NULL,\n\t\tsales_value mediumtext NOT NULL,\n\t\tsales_count bigint(20) NOT NULL,\n\t\tstatus mediumtext NOT NULL,\n\t\tnotes longtext NOT NULL,\n\t\tdate_created datetime NOT NULL,\n\t\tPRIMARY KEY (id),\n\t\tUNIQUE KEY email (email),\n\t\tKEY user (user_id)\n\t\t) CHARACTER SET utf8 COLLATE utf8_general_ci;\";\n\n\t\tdbDelta( $sql );\n\n\t\tupdate_option( $this->table_name . '_db_version', $this->version );\n\t}", "title": "" }, { "docid": "fb61ce5db7b7ae3abff8e5f2dd5401d6", "score": "0.6167511", "text": "public static function create_table_head()\n\t{\n\t\t\n\t\tif (!static::$columns)\n\t\t{\n\t\t\treturn static::$template['wrapper_start'].'<tr><th>No columns config</th></tr>'.static::$template['wrapper_end'];\n\t\t}\n\n\t\t$table_head = static::$template['wrapper_start'];\n\t\t$table_head .= '<tr>';\n\t\t\n\t\tforeach(static::$columns as $column)\n\t\t{\n\t\t\t$sort_key \t= (is_array($column) ? isset($column[1]) ? $column[1] : strtolower($column[0]) : $column);\n\t\t\t$col_attr\t= (is_array($column) && isset($column[2]) ? $column[2] : array());\n\t\t\t\n\t\t\t$new_direction = static::$direction;\n\t\t\t\n\t\t\tif(static::$sort_by == $sort_key)\n\t\t\t{\n\t\t\t\t$active_class_name = static::$template['col_class_active'].' '.static::$template['col_class_active'].'_'.$new_direction;\n\t\t\t\tif(isset($col_attr['class']))\n\t\t\t\t{\n\t\t\t\t\t$col_attr['class'] .= ' '.$active_class_name;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t$col_attr['class'] = $active_class_name;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$new_direction = (static::$direction == 'asc' ? 'desc' : 'asc');\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(is_array($column) && (!isset($column[1]) || isset($column[1]) && $column[1] !== false)){\n\t\t\t\t\n\t\t\t\t$url \t\t\t= rtrim(static::$base_url, '/').(static::$current_page ? '/'.static::$current_page : '');\n\t\t\t\t$url \t\t\t.= '/'.$sort_key.static::$uri_delimiter.$new_direction;\n\t\t\t\t\n\t\t\t\t$cell_content \t= rtrim(static::$template['link_start'], '> ').' href=\"'.$url.'\">';\n\t\t\t\t$cell_content \t.= $column[0];\n\t\t\t\t$cell_content \t.= static::$template['link_end'];\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tif(is_array($column))\n\t\t\t\t{\n\t\t\t\t\t$column = $column[0];\n\t\t\t\t}\n\t\t\t\t$cell_content = static::$template['nolink_start'].$column.static::$template['nolink_end'];\t\n\t\t\t}\n\t\t\t\n\t\t\t$table_head .= html_tag(static::$template['col_tag'], $col_attr, $cell_content);\n\t\t\t\n\t\t}\n\t\t\n\t\t$table_head .= '</tr>';\n\t\t$table_head .= static::$template['wrapper_end'];\n\n\t\treturn $table_head;\n\t}", "title": "" }, { "docid": "356674a06eb127d987c635a2230f1763", "score": "0.6159877", "text": "function createTable($objSchema);", "title": "" }, { "docid": "86c080379ae04c5d5be6d448906ff194", "score": "0.61597645", "text": "public function compileCreate(Blueprint $blueprint, Fluent $command)\n {\n $columns = implode ( ', ', $this->getColumns ( $blueprint ) );\n $sql = 'create table ' . $this->wrapTable ( $blueprint ) . \" ($columns\";\n $sql .= ( string ) $this->addForeignKeys ( $blueprint );\n $sql .= ( string ) $this->addPrimaryKeys ( $blueprint );\n return $sql .= ')';\n }", "title": "" }, { "docid": "162cafc9df506cc2ba1acafaf0dead41", "score": "0.6155695", "text": "public function createTable(Table $table) {\n $sql = \"\";\n\n $sql .= sprintf(config('sql.table.create'), $table->getName());\n\n foreach($table->getColumns() as $column_name => $column) {\n $sql .= \"\\n\";\n $sql .= $this->column($column, [], false, $table->getIndices());\n $sql .= \",\";\n }\n\n foreach($table->getIndices() as $name => $index) {\n $sql .= \"\\n\";\n $sql .= $this->addIndexImplicit($index);\n $sql .= \",\";\n }\n\n $sql = $this->removeLastChar($sql);\n\n $sql .= \"\\n\";\n $sql .= \")\";\n\n $sql .= $this->tableClose(($table));\n\n $sql .= \"\\n\";\n $sql .= \"\\n\";\n $sql .= \"\\n\";\n\n return $sql;\n }", "title": "" }, { "docid": "2d67b6987efcb5bb72ca98a9e6d181a0", "score": "0.6122721", "text": "public function showTable() {\n\t\t$tableName = $this->request->getVariable('id');\n\t\t$this->smarty->assign('dbTableObject',new $tableName());\n\t\t$this->pageDisplay('tools');\n\t}", "title": "" }, { "docid": "c343de34be41f34370475bcf1e5c213d", "score": "0.61206645", "text": "function Render()\n\t{\n\t\t$strTableName = $this->_strName;\n\t\t$strVixenTable = \"Vixen.table.{$strTableName}\";\n\n\t\techo \"\n<script type='text/javascript'>\n\t{$strVixenTable} = Object();\n\t{$strVixenTable}.collapseAll = TRUE;\n\t{$strVixenTable}.linked = TRUE;\n\t{$strVixenTable}.totalRows = 0;\n\t{$strVixenTable}.row = Array();\n</script>\";\n\t\t\t\n\t\t\n\t\t$strPageSize = $this->_intPageSize > 0 ? \" page_size='{$this->_intPageSize}' \" : \"\";\n\n\t\techo \"<table border='0' cellpadding='3' cellspacing='0' class='Listing' width='100%' id='$strTableName'$strPageSize>\\n\";\n\t\t\n\t\t// Build headers\n\t\techo \"<tr class='First'>\\n\";\n\t\t$intHeaderCount = 0;\n\t\t$intSortLimit = ($this->_bolSortable && is_array($this->_arrSortFields)) ? count ($this->_arrSortFields) : -1;\n\t\tforeach ($this->_arrHeader AS $objField)\n\t\t{\n\t\t\t$strAlign = $this->_arrAlignments[$intHeaderCount];\n\t\t\t$strSortLabel = \"\";\n\t\t\tif ($intHeaderCount <= $intSortLimit)\n\t\t\t{\n\t\t\t\tif ($this->_arrSortFields[$intHeaderCount] !== NULL)\n\t\t\t\t{\n\t\t\t\t\t$strSortLabel = \" TABLE_SORT='\" . $this->_arrSortFields[$intHeaderCount] . \"' \";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$strSortLabel = \" NO_TABLE_SORT='1' \";\n\t\t\t\t}\n\t\t\t}\n\t\t\techo \" <th width='{$this->_arrWidths[$intHeaderCount]}' align='$strAlign'$strSortLabel>\". $objField .\"</th>\\n\";\n\t\t\t$intHeaderCount++;\n\t\t}\n\t\techo \"</tr>\\n\";\n\t\t\n\t\t// Build rows\n\t\t$intRow = -1;\n\t\tforeach ($this->_arrRows AS $objRow)\n\t\t{\n\t\t\t$intRow++;\n\t\t\t$strClass = ($intRow % 2) ? 'Odd' : 'Even';\n\t\t\t$strStyle = \"\";\n\t\t\t\n\t\t\tif (isset($objRow['OnClick']))\n\t\t\t{\n\t\t\t\t// Escape special chars\n\t\t\t\t$strOnClick = \"onclick='\". htmlspecialchars($objRow['OnClick'], ENT_QUOTES) .\"'\";\n\t\t\t\t$strStyle .= \"cursor:pointer;\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$strOnClick = \"\";\n\t\t\t}\n\t\t\t\n\t\t\techo \"<tr id='\" . $strTableName . \"_\" . $intRow . \"' class='$strClass' $strOnClick style='$strStyle'>\\n\";\n\t\t\t\n\t\t\t$intColCount = 0;\n\t\t\t// Build fields\n\t\t\tforeach ($objRow['Columns'] as $objField)\n\t\t\t{\n\t\t\t\t$strWidth = '';\n\t\t\t\t// Work out which width to use\n\t\t\t\t//TODO! After setting the widths once in the header, you shouldn't have to set them again, but we are anyway.\n\t\t\t\t//This could cut down the size of the html file generated\n\t\t\t\t/*if (isset($objRow['Widths']))\n\t\t\t\t{\n\t\t\t\t\t// Use the width specific to this row and column\n\t\t\t\t\t$strWidth = \"width='\". $objRow['Widths'][$intColCount] .\"'\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Use the general width of this column\n\t\t\t\t\t$strWidth = \"width='\". $this->_arrWidths[$intColCount] .\"'\";\n\t\t\t\t}\n\t\t\t\t*/\n\n\t\t\t\t// Work out which alignment to use\n\t\t\t\tif (isset($objRow['Alignments']))\n\t\t\t\t{\n\t\t\t\t\t// Use the alignment specific to this row and column\n\t\t\t\t\t$strAlignment = \"align='\". $objRow['Alignments'][$intColCount] .\"'\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Use the general alignment of this column\n\t\t\t\t\t$strAlignment = \"align='\". $this->_arrAlignments[$intColCount] .\"'\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Work out how many columns, this column spans\n\t\t\t\t$strColSpan = \"\";\n\t\t\t\tif (isset($objRow['ColSpans']))\n\t\t\t\t{\n\t\t\t\t\t// colspan values have been declared for this row\n\t\t\t\t\t$strColSpan = \"colspan='\". $objRow['ColSpans'][$intColCount] .\"'\";\n\t\t\t\t\t\n\t\t\t\t\t// If using ColSpans do not use row widths\n\t\t\t\t\t$strWidth = \"\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\techo \"<td $strWidth $strAlignment $strColSpan>\";\n\t\t\t\techo \"$objField\";\n\t\t\t\techo \"</td>\\n\";\n\t\t\t\t$intColCount++;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Build detail\n\t\t\tif ($this->_bolDetails)\n\t\t\t{\n\t\t\t\techo \"</tr>\";\n\t\t\t\techo \"<tr>\";\n\t\t\t\techo \"<td colspan=\". count($this->_arrHeader) .\" style='padding: 0px 1px 1px 1px;'>\";\n\t\t\t\techo \"<div id='\" . $strTableName . \"_\" . $intRow . \"DIV-DETAIL' style='display: block; overflow:hidden;'>\";\n\t\t\t\techo $objRow['Detail'];\n\t\t\t\techo \"</div>\";\n\t\t\t\techo \"</td>\\n\";\n\t\t\t}\n\t\t\t\n\t\t\t// Build tooltip\n\t\t\tif ($this->_bolToolTips)\n\t\t\t{\n\t\t\t\techo \"</tr>\";\n\t\t\t\techo \"<tr>\";\n\t\t\t\techo \"<td colspan=4 style='padding-top: 0px; padding-bottom: 0px'>\";\n\t\t\t\techo \"<div id='\" . $strTableName . \"_\" . $intRow . \"DIV-TOOLTIP' style='display: none;'>\";\n\t\t\t\techo $objRow['ToolTip'];\n\t\t\t\techo \"</div>\\n\";\n\t\t\t\techo \"</td>\";\n\t\t\t}\n\t\t\n\t\t\techo \"\\n<script type='text/javascript'>\";\n\t\t\techo \"objRow = Object();\\n\";\n\t\t\t\n\t\t\techo \"objRow.selected = false;\\n\";\n\t\t\techo \"objRow.up = true;\\n\";\n\n\t\t\tif ($this->_bolLinked)\n\t\t\t{\n\t\t\t\tif (is_array($objRow['Index']))\n\t\t\t\t{\n\t\t\t\t\t// add Indexes to objRow\n\t\t\t\t\techo \"objIndex = Object();\";\n\t\t\t\t\t\n\t\t\t\t\tforeach ($objRow['Index'] as $strIndexName=>$arrValues)\n\t\t\t\t\t{\n\t\t\t\t\t\techo \"objIndex.{$strIndexName} = Array();\";\n\t\t\t\t\t\tforeach ($arrValues as $strValue)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\techo \"objIndex.{$strIndexName}.push('$strValue');\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\techo \"objRow.index = objIndex;\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\techo \"{$strVixenTable}.row.push(objRow);\\n\";\n\t\t\techo \"</script>\\n\";\n\t\t\techo \"</tr>\\n\";\n\t\t}\n\t\t$intRowCount = $intRow + 1;\n\t\techo \"</table>\\n\";\n\t\t\n\t\techo \"<script type='text/javascript'>{$strVixenTable}.totalRows = $intRowCount;</script>\\n\";\t\n\t\t\n\t\tif ($this->_bolRowHighlighting)\n\t\t{\n\t\t\t// The following \"Vixen.AddCommand\" method breaks down when you try dynamicly inserting a VixenTable into\n\t\t\t// the DOM, because AddCommand only triggers the command when the body.onload event is triggered\n\t\t\t//echo \"<script type='text/javascript'>Vixen.AddCommand('Vixen.Highlight.Attach','\\'$strTableName\\'', $intRowCount);</script>\";\n\t\t\techo \"<script type='text/javascript'>Vixen.Highlight.Attach('$strTableName');</script>\";\n\t\t}\n\t\t\n\t\tif ($this->_bolToolTips)\n\t\t{\n\t\t\techo \"<script type='text/javascript'>Vixen.Tooltip.Attach('$strTableName');</script>\";\n\t\t}\n\t\t\n\t\tif ($this->_bolDetails)\n\t\t{\n\t\t\techo \"<script type='text/javascript'>Vixen.Slide.Attach('$strTableName', TRUE);</script>\\n\";\n\t\t}\n\t\t\n\t\tif ($this->_bolLinked)\n\t\t{\n\t\t\techo \"<script type='text/javascript'>\";\n\t\t\techo \"{$strVixenTable}.linked = TRUE;\";\n\t\t\t\n\t\t\techo \"objLink = Object();\\n\";\n\t\t\t\n\t\t\tforeach ($this->_arrLinkedTables AS $strTableName=>$arrIndexes)\n\t\t\t{\n\t\t\t\techo \"objLink.{$strTableName} = Array();\\n\";\n\t\t\t\tforeach ($arrIndexes AS $strIndex)\n\t\t\t\t{\n\t\t\t\t\techo \"objLink.{$strTableName}.push('$strIndex');\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t\techo \"{$strVixenTable}.link = objLink;\\n\";\n\t\t\t\n\t\t\techo \"</script>\\n\";\n\t\t\t\t/*'link':\n\t\t\t{\n\t\t\t\t'AccountInvoices' :\n\t\t\t\t[\n\t\t\t\t\t'Invoice'\n\t\t\t\t]\n\t\t\t},*/\n\t\t}\n\t\t\n\t\tif ($this->_bolSortable)\n\t\t{\n\t\t\techo \"<script type='text/javascript'>Vixen.TableSort.prepare('$strTableName');</script>\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "1841af33c8a159cba3cb65c5fef665d0", "score": "0.6109263", "text": "function createTable(array $results = array())\n{\n if (empty($results)) {\n return '<table><tr><td>Empty Result Set</td></tr></table>';\n }\n\n // dynamically create the header information from the keys\n // of the result array from mysql\n $table = '<table>';\n $keys = array_keys(reset($results));\n $table.='<thead><tr>';\n foreach ($keys as $key) {\n $table.='<th><mark>&nbsp;'.$key.'&nbsp;</mark></th>';\n }\n $table.='</tr></thead>';\n\n // populate the main table body\n $table.='<tbody>';\n foreach ($results as $result) {\n $table.='<tr>';\n foreach ($result as $val) {\n $table.='<td><mark>&nbsp;'.$val.'&nbsp;</mark></td>';\n }\n $table.='</tr>';\n }\n $table.='</tbody></table>';\n return $table;\n}", "title": "" }, { "docid": "848b1670eddecc339885930ff0bf9679", "score": "0.6102418", "text": "private function render_table($table_header, $table_content)\n\t{\n\t\t$table = new Table($this->output);\n\t\t$table->setHeaders($table_header)\n\t\t\t->setRows($table_content)\n\t\t\t->render();\n\n\t\t$this->output->writeln('');\n\t}", "title": "" }, { "docid": "03318ae3d72542cb41d6e823d929ae5a", "score": "0.6095041", "text": "function create_table($id, $data, $headers=[], $caption = \"\") {\n $table = \"<table id=\\\"$id\\\"><caption>$caption</caption>\";\n\n if (sizeof($headers) > 0) {\n $table .= add_row(create_headers($headers));\n }\n\n foreach($data as $vals) {\n $table .= add_row(create_row($vals));\n }\n\n $table .= \"</table>\";\n return $table;\n }", "title": "" }, { "docid": "f0202d34ac408602133576b6ac72dac0", "score": "0.6094345", "text": "public function print_table_description()\n {\n }", "title": "" }, { "docid": "d4ec6e5915755940d7512a09ae6dfe8a", "score": "0.60863066", "text": "public function drawTable()\n {\n echo \"<table border='1'>\";\n for ($i = 0; $i < $this->m; $i++) {\n echo \"<tr>\";\n for ($j = 0; $j < $this->n; $j++) {\n if ($this->isInSolution($i, $j, $this->matrix)) {\n echo \"<td bgcolor='#9acd32'>\";\n } else {\n echo \"<td>\";\n }\n echo $this->matrix[$i][$j];\n echo \"</td>\";\n }\n echo \"</tr>\";\n }\n echo \"</table>\";\n }", "title": "" }, { "docid": "9447b440bed2d77d92b5c4ba68d7f4d6", "score": "0.6073178", "text": "public function createTable() {\n return $this->getActionByName('CreateTable');\n }", "title": "" }, { "docid": "033edeb6e47a22e9c029fdff3d35f195", "score": "0.6067284", "text": "public static function table () {\n\t\tglobal $pdo_handler;\n\t\t$pdo_handler->query( \"\n\t\t\tCREATE TABLE IF NOT EXISTS `etc_texts_history` (\n\t\t\t `text_id` int(11) NOT NULL,\n\t\t\t `user_id` int(11) NOT NULL,\n\t\t\t `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\t\t `text` mediumtext COLLATE utf8_unicode_ci NOT NULL,\n\t\t\t PRIMARY KEY (`text_id`,`user_id`,`timestamp`)\n\t\t\t) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\n\t\t\" );\n\t}", "title": "" }, { "docid": "c1d955feedb6bc2adbc5a3438bddbcda", "score": "0.60663694", "text": "function create()\n {\n $this->definitions['columns'] =& $this->columns;\n return $this->connection->create_table($this->name, $this->definitions);\n }", "title": "" }, { "docid": "ae46dda8bee671bfb08f5c80d06a70e9", "score": "0.6057656", "text": "protected function getTableStructure($table)\r\n\t{\r\n\t\treturn \"\\t<create><![CDATA[\".parent::getTableStructure($table).\"]]></create>\\n\";\r\n\t}", "title": "" }, { "docid": "281001b2269836766051a52c970f5804", "score": "0.6042986", "text": "public function buildCreateTable(Query $query) {\n $schema = $query->getSchema();\n\n if (!$schema) {\n throw new InvalidSchemaException('Table creation requires a valid schema object');\n }\n\n return $this->renderStatement(Query::CREATE_TABLE, [\n 'table' => $this->formatTable($schema->getTable()),\n 'columns' => $this->formatColumns($schema),\n 'keys' => $this->formatTableKeys($schema),\n 'options' => $this->formatTableOptions($schema->getOptions())\n ] + $this->formatAttributes($query->getAttributes()));\n }", "title": "" }, { "docid": "11fd96008c2cd8f5f304affd70204ed2", "score": "0.60405236", "text": "protected function createTable($tableName, array $tableCreate, SchemaCheck $response)\n {\n foreach ($tableCreate as $query) {\n if ($this->runQuery($tableName, $query)) {\n $response->addTitle($tableName, sprintf('Created table `%s`.', $tableName));\n }\n }\n }", "title": "" }, { "docid": "eefa97521c4738144f7f625443ba800d", "score": "0.6021142", "text": "public function createSQL() {\n\n\t\t$query = <<<SQL\nCREATE TABLE IF NOT EXISTS `$this->tablename` (\n instance char(32) NOT NULL, \n memberid int(11) NOT NULL, \n interactid int(11) NOT NULL, \n time datetime NOT NULL, \n username varchar(150) NOT NULL, \n userrole char(1) NOT NULL, \n PRIMARY KEY (instance), \n INDEX (interactid));\n\n\nSQL;\n\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "0affa025cb968f6a33139df878b0cc84", "score": "0.60009426", "text": "public function createTable()\n {\n $table = self::$table_name;\n $SQL = <<<EOD\n CREATE TABLE IF NOT EXISTS `$table` (\n `communication_usage_id` INT(11) NOT NULL AUTO_INCREMENT,\n `communication_usage_name` VARCHAR(32) NOT NULL DEFAULT '',\n `communication_usage_description` VARCHAR(255) NOT NULL DEFAULT '',\n PRIMARY KEY (`communication_usage_id`),\n UNIQUE (`communication_usage_name`)\n )\n COMMENT='The communication usage definition table'\n ENGINE=InnoDB\n AUTO_INCREMENT=1\n DEFAULT CHARSET=utf8\n COLLATE='utf8_general_ci'\nEOD;\n try {\n $this->app['db']->query($SQL);\n $this->app['monolog']->addInfo(\"Created table 'contact_communication_usage'\", array(__METHOD__, __LINE__));\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e);\n }\n }", "title": "" }, { "docid": "43e80f3db6bab9b181a2d314a95306e3", "score": "0.5997214", "text": "function postCreateTable(){\n\t}", "title": "" }, { "docid": "656a714d8f68f208e6c774463ae52547", "score": "0.59954697", "text": "function renderStatement($type, $data) {\n\t\tswitch (strtolower($type)) {\n\t\t\tcase 'schema':\n\t\t\t\textract($data);\n\n\t\t\t\tforeach (array('columns', 'indexes') as $var) {\n\t\t\t\t\tif (is_array(${$var})) {\n\t\t\t\t\t\t${$var} = \"\\t\" . join(\",\\n\\t\", array_filter(${$var}));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn \"CREATE TABLE {$table} (\\n{$columns});\\n{$indexes}\";\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn parent::renderStatement($type, $data);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "36c15bdeea25a92b3214ef349965bd55", "score": "0.59897745", "text": "function as_table() \n {\n #$str = \"<table> \\n\";\n $str = \"\";\n foreach(get_object_vars($this) as $name => $obj) \n {\n if ($obj != NULL) \n {\n $str .= \"<tr>\\n\\t<td>\".$obj->label().\"</td>\\n\\t\";\n $str .= \"<td>\".$obj.\"</td>\\n</tr>\\n\";\n }\n }\n #$str .= \"</table>\\n\";\n return $str;\n }", "title": "" }, { "docid": "01b772e407f77c9e241ff8510ec96e7c", "score": "0.5978112", "text": "function make_table($query) {\r\n\t\techo \"<table><tr>\";\r\n\t\t$row = mysqli_fetch_assoc($query);\r\n\t\tforeach ($row as $attr => $value) {\r\n\t\t\techo \"<th>$attr</th>\";\r\n\t\t}\r\n\t\techo \"</tr>\";\r\n\t\twhile ($row = mysqli_fetch_assoc($query)) { \r\n\t\t\techo \"<tr>\";\r\n\t\t\tforeach($row as $value) {\r\n\t\t\t\techo \"<td>$value</td>\";\r\n\t\t\t}\r\n\t\t\techo \"</tr>\";\r\n\t\t}\r\n\t\techo \"</table>\";\r\n\t}", "title": "" }, { "docid": "17da09fb943cf22621247723624f5bb0", "score": "0.5976437", "text": "function createTable($name, $rows);", "title": "" }, { "docid": "eb7ebb7a677f704f82fe9786199b668e", "score": "0.59639263", "text": "public function create($if_not_exists = false) {\n $db = DB::getInstance();\n\n $query = [];\n $query[] = 'CREATE TABLE';\n if ($if_not_exists) {\n $query[] = 'IF NOT EXISTS';\n }\n $query[] = $db->quoteIdentifier($this->prefix . $this->name);\n\n $fields = [];\n foreach ($this->fields as $item) {\n $fields[] = ' ' . $item;\n }\n foreach ($this->keys as $item) {\n $fields[] = ' ' . $item;\n }\n\n $query[] = \"(\\n\" . implode(\",\\n\", $fields) . \"\\n)\";\n\n return implode(' ', $query);\n }", "title": "" }, { "docid": "f42e1cfee350acede15866fdd2cf1e6d", "score": "0.594744", "text": "public function createTable(){\n\t\t\t\n\t\t$sql = \"CREATE TABLE IF NOT EXISTS `sy_color_codes` (\n\t\t`id` int(11) NOT NULL AUTO_INCREMENT,\n\t\t`name` varchar(30) NOT NULL DEFAULT '',\n\t\t`color` varchar(7) NOT NULL DEFAULT '',\n\t\t`text` varchar(7) NOT NULL DEFAULT '',\t\t\n\t\t`display_order` int(11) NOT NULL DEFAULT 0,\n\t\tPRIMARY KEY (`id`)\n\t\t);\";\n\t\t\n\t\t$pdo = $this->runRequest($sql);\n\t\t//return $pdo;\n\t\t\n\t\t// add columns if no exists\n\t\t$sql = \"SHOW COLUMNS FROM `sy_color_codes` LIKE 'text'\";\n\t\t$pdo = $this->runRequest($sql);\n\t\t$isColumn = $pdo->fetch();\n\t\tif ( $isColumn == false){\n\t\t\t$sql = \"ALTER TABLE `sy_color_codes` ADD `text` varchar(6) NOT NULL DEFAULT '#000000'\";\n\t\t\t$pdo = $this->runRequest($sql);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e8b1c6593f3c4894e03057410cd36c88", "score": "0.59433675", "text": "public function create_table()\n {\n $sql = \"CREATE TABLE IF NOT EXISTS `whollycoders`.`table_contacts_171005_1207` (\n `contact_ID` INT NOT NULL AUTO_INCREMENT , \n `contact_firstname` VARCHAR(50) NOT NULL , \n `contact_lastname` VARCHAR(50) NOT NULL , \n `contact_phone` VARCHAR(20) NOT NULL , \n `contact_email` VARCHAR(100) NOT NULL , \n `contact_date_added` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP , \n PRIMARY KEY (`contact_ID`)\n ) ENGINE = InnoDB;\";\n $result = $this->process_query($sql);\n }", "title": "" }, { "docid": "d00b4ca59fd1faf1689eb5e9f91aba9f", "score": "0.594247", "text": "function createTableToTemplates(){\n\n\tglobal $mysqli,$templatesTableName;\n\n\t$create=\"CREATE TABLE IF NOT EXISTS `$templatesTableName` (\n\t `id` int(8) NOT NULL AUTO_INCREMENT,\n\t `clienteName` varchar(100) NOT NULL,\n\t `method` text NOT NULL,\n\t `created` TIMESTAMP,\n\t PRIMARY KEY (`id`)\n\t) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1\";\t\n\n\tif (!$mysqli->query($create)) {\n\t\tshowErrors();\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "cc7e81f175d0370ff55d1deb5a582579", "score": "0.59414786", "text": "protected function RetCreateTable() {\n\n if (!isset($this->\n tables[0])) {\n\n throw new \\Exception(\"Error: Table not properly provided in QueryHelper.\");\n }\n\n $return = \"CREATE\";\n\n if ($this->\n temporary == 'T' ||\n $this->\n temporary == 'G') {\n\n $return .= \" TEMPORARY\";\n }\n\n $return .= \" TABLE\";\n\n if (isset($this->\n addArgs['notexists']) &&\n $this->\n addArgs['notexists'] === true) {\n\n $return .= \" IF NOT EXISTS\";\n }\n\n $columnsDefn = [];\n $primaryKeys = [];\n $indexes = [];\n $primaryKeysDefn = \"\";\n $indexesDefn = \"\";\n\n $indexesArr = $this->\n indexes;\n\n foreach ($this->\n columns as $column => $parms) {\n\n $parms['type'] = strtoupper($parms['type']);\n\n if (!isset($parms['type']) ||\n !is_string($parms['type']) ||\n !$parms['type']) {\n\n $parms['type'] = 'VARCHAR';\n\n $parms['length'] = !isset($parms['length']) ||\n !is_int($parms['length']) ||\n $parms['length'] < 1 ? 1 : $parms['length'];\n }\n\n $type = $parms['type'];\n\n if (isset($parms['length']) &&\n is_int($parms['length']) &&\n $parms['length'] > 0) {\n\n $type .= \"({$parms['length']})\";\n }\n\n $columnsDefn[$column] = \"`{$column}` {$type}\";\n\n if (isset($parms['isnull']) &&\n $parms['isnull'] === false) {\n\n $columnsDefn[$column] .= \" NOT null\";\n }\n\n if (isset($parms['autoincrement']) &&\n $parms['autoincrement'] === true) {\n\n $columnsDefn[$column] .= \" AUTO_INCREMENT\";\n }\n\n if (isset($parms['default']) &&\n $parms['default']) {\n\n if (isset($parms['default']['function']) &&\n $parms['default']['function']) {\n\n $columnsDefn[$column] .= \" DEFAULT {$parms['default']['function']}\";\n } else if (is_string($parms['default'])) {\n\n $columnsDefn[$column] .= \" DEFAULT '{$parms['default']}'\";\n }\n }\n\n if (isset($parms['primary']) &&\n $parms['primary'] === true) {\n\n $primaryKeys[] = $column;\n }\n\n if (isset($parms['unique']) &&\n $parms['unique'] === true) {\n\n $columnsDefn[$column] .= \" UNIQUE\";\n }\n\n if (isset($parms['index']) &&\n $parms['index'] === true) {\n\n $columnsDefn[$column] .= \" INDEX\";\n }\n\n if (isset($parms['referencetable']) &&\n isset($parms['referencecolumn']) &&\n is_string($parms['referencetable']) &&\n is_string($parms['referencecolumn'])) {\n\n $columnsDefn[$column] .= \" REFERENCES `{$parms['referencetable']}` (`{$parms['referencecolumn']}`)\";\n }\n\n if (isset($parms['check']) &&\n is_string($parms['check'])) {\n\n $indexesArr[] = array(\n 'indextype' => 'CH',\n 'check' => $parms['check']\n );\n }\n }\n\n if (count($primaryKeys) == 1) {\n\n $columnsDefn[$primaryKeys[0]] .= \" PRIMARY KEY\";\n } else if (count($primaryKeys) > 1) {\n\n $primaryKeysDefn = \", PRIMARY KEY (`\" . implode($primaryKeys, \"`, `\") . \"`)\";\n }\n\n foreach ($indexesArr as $index => $parms) {\n\n $indexDefn = \"\";\n $indexName = \"\";\n\n if (is_string($index)) {\n\n $indexName = \" `{$index}`\";\n }\n\n if (!isset($parms['indextype'])) {\n\n $parms['indextype'] = 'I';\n }\n\n $parms['indextype'] = strtoupper($parms['indextype']);\n\n switch ($parms['indextype']) {\n default:\n case 'I':\n $indexDefn .= \"INDEX{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'K':\n $indexDefn .= \"KEY{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'U':\n $indexDefn .= \"UNIQUE{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'UK':\n $indexDefn .= \"UNIQUE KEY{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'UI':\n $indexDefn .= \"UNIQUE INDEX{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'FK':\n if (is_string($index)) {\n\n $indexDefn .= \"CONSTRAINT{$indexName} FOREIGN KEY (`\" . implode($parms['columns'], \"`, `\") . \"`) REFERENCES `{$parms['referencetable']}` (`\" . implode($parms['referencecolumns'], \"`, `\") . \"`)\";\n } else {\n\n $indexDefn .= \"FOREIGN KEY (`\" . implode($parms['columns'], \"`, `\") . \"`) REFERENCES `{$parms['referencetable']}` (`\" . implode($parms['referencecolumns'], \"`, `\") . \"`)\";\n }\n break;\n case 'FT':\n $indexDefn .= \"FULLTEXT{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'FTK':\n $indexDefn .= \"FULLTEXT KEY{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'FTI':\n $indexDefn .= \"FULLTEXT INDEX{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'S':\n $indexDefn .= \"SPATIAL{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'SK':\n $indexDefn .= \"SPATIAL KEY{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'SI':\n $indexDefn .= \"SPATIAL INDEX{$indexName} (`\" . implode($parms['columns'], \"`, `\") . \"`)\";\n break;\n case 'CH':\n $indexDefn .= \"CHECK{$indexName} {$parms['check']}\";\n break;\n }\n\n $indexes[] = $indexDefn;\n }\n\n if (count($indexes)) {\n $indexesDefn = \", \" . implode($indexes, \", \");\n }\n\n $return .= \" `{$this->\n tables[0]}` (\" . implode($columnsDefn, \", \") . \"{$primaryKeysDefn}{$indexesDefn})\";\n\n return $return . \";\";\n }", "title": "" }, { "docid": "e9bd802ecf294559c5ab724bbef755cc", "score": "0.59355074", "text": "public function createTable()\n\t{\n\t\tphpCAS::traceBegin();\n\n\t\t// initialize the PDO object for this method\n\t\t$pdo = $this->getPdo();\n\t\t$this->setErrorMode();\n\n\t\ttry {\n\t\t\t$pdo->beginTransaction();\n\n\t\t\t$query = $pdo->query($this->_createTableSQL());\n\t\t\t$query->closeCursor();\n\n\t\t\t$pdo->commit();\n\t\t}\n\t\tcatch(PDOException $e) {\n\t\t\t// attempt rolling back the transaction before throwing a phpCAS error\n\t\t\ttry {\n\t\t\t\t$pdo->rollBack();\n\t\t\t}\n\t\t\tcatch(PDOException $e) {}\n\t\t\tphpCAS::error('error creating PGT storage table: ' . $e->getMessage());\n\t\t}\n\n\t\t// reset the PDO object\n\t\t$this->resetErrorMode();\n\n\t\tphpCAS::traceEnd();\n\t}", "title": "" }, { "docid": "04f5b8d8bf4d1034bf687e12e1aad227", "score": "0.593041", "text": "private function createTableFooter() {\n\t\treturn \"</table>\\n\";\n\t}", "title": "" }, { "docid": "d2908ca07336be9ce431454938e594a7", "score": "0.5930395", "text": "function draw_table($rows) {\n \n echo \"<table border=1 cellspacing=1>\"; //Set up border and spacing\n echo \"<tr>\"; //Begin the table row insertion for header row\n \n foreach($rows[0] as $key => $item) {\n \n echo \"<th>$key</th>\";\n \n }\n \n echo \"</tr>\";\n \n // Insert data into each row\n foreach ($rows as $row) {\n \n echo \"<tr>\";\n \n foreach ($row as $key => $item) {\n \n echo \"<td>$item</td>\"; //Table data\n \n }\n \n echo \"</tr>\";\n \n }\n \n echo \"</table>\";\n \n }", "title": "" }, { "docid": "1e642d294947116df34c460d7736de7f", "score": "0.59180903", "text": "public function getDDL()\n {\n $lines = [];\n foreach ($this->columns as $column) {\n $lines[] = \" \" . $column->toString($this->getCollation());\n }\n foreach ($this->indexes as $index) {\n $lines[] = \" \" . $index->toString();\n }\n foreach ($this->foreigns as $foreign) {\n $lines[] = \" \" . $foreign->toString();\n }\n\n $text = \"CREATE TABLE \" . Token::escapeIdentifier($this->name) . \" (\\n\" .\n implode(\",\\n\", $lines) .\n \"\\n\" .\n \")\";\n\n $options = $this->options->toString();\n if ($options !== '') {\n $text .= \" \" . $this->options->toString();\n }\n\n return [$text];\n }", "title": "" }, { "docid": "0452f2ea79c59a1084704b481d9f1aba", "score": "0.58863693", "text": "public function ListTable()\n {\n echo $this->ListTableText();\n }", "title": "" }, { "docid": "b32ffd13b484f6f742889e80cea971a1", "score": "0.5874934", "text": "public function create_table($name, $data) {\n\t\t$this->execute($this->engine->create_table_sql($name, $data));\n\t}", "title": "" }, { "docid": "ac4d6670fb26a7961de158f8b94bded1", "score": "0.58670384", "text": "function createTable($tablename, $fields, $types, $overwrite = FALSE) {\r\n //CREATE TABLE `TableName` (`FieldName1` DATE, `FieldName2` VARCHAR (50), `FieldName3` TEXT)\r\n $params = \"\";\r\n if (count($fields) == count($types)) {\r\n $params .= \"(\";\r\n $i = 0;\r\n foreach ($fields as $field) {\r\n $params .= $field . \" \" . $types[$i];\r\n if ($i < (count($types) - 1)) {\r\n $params .= \",\";\r\n }\r\n $i++;\r\n }\r\n $params .= \");\";\r\n }\r\n if ($overwrite == TRUE) {\r\n $query = \"drop table if exists $tablename;\";\r\n $this->makeQuery($query);\r\n }\r\n\r\n $query = \"CREATE TABLE $tablename \" . $params;\r\n //echo $query.'<br/>';\r\n return $this->makeQuery($query);\r\n }", "title": "" }, { "docid": "6b4cbf740b1ddd473ce37b500765108a", "score": "0.5863939", "text": "function mscaffolding_create_table($name, $data)\n\t{\n\t\t$query_string = \"CREATE TABLE `\" . lconf_get(\"db_name\") . \"`.`\" . $name . \"` (`id` INT NOT NULL AUTO_INCREMENT,\";\n\n\t\tfor ($i = 0; $i < count($data) / 2; $i++)\n\t\t{\n\t\t\t$query_string .= \"`\" . $data[\"name\" . $i] . \"`\" . mscaffolding_get_type($data[\"type\" . $i]);\n\t\t}\n\n\t\t$query_string .= \" PRIMARY KEY ( `id` )) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_slovenian_ci\";\n\n\t\treturn ldb_query($query_string);\n\t}", "title": "" }, { "docid": "7f06979d17294813664375c4f4618ba4", "score": "0.5859681", "text": "protected function createTable() {\n $this->db->initializeQuery();\n $query = \"\nCREATE TABLE `items` (\n`id`INTEGER,\n`name`TEXT,\n`price`REAL,\nPRIMARY KEY(`id`)\n);\n\";\n\n $r = $this->db->q->Expr($query)->execute($this->db->c);\n \n }", "title": "" }, { "docid": "28d689cd52d8c47c8299d493f4cc4ec4", "score": "0.58555084", "text": "public function createSchemaTable();", "title": "" }, { "docid": "8025bc1654a1a76554c0be7e3ba02ba9", "score": "0.58552563", "text": "public function render()\n\t{\n\n\t\t$table = \"<table\";\n\n\t\t// Add all attributes\n\t\tforeach ($this->attributes as $key => $value) {\n\t\t\t$table .= ' ' . $key . '=\"' . $value .'\"';\n\t\t}\n\n\t\t$table .= \">\"; // Close table\n\n\t\t// Add the head\n\t\tif ($this->showHeadRow) {\n\t\t\t$table .= \"<thead><tr>\";\n\n\t\t\t// Show the number header.\n\t\t\tif ($this->showNumberColumn) {\n\t\t\t\t$table .= \"<th>#</th>\";\n\t\t\t}\n\n\t\t\tforeach ($this->columns as $column) {\n\t\t\t\t$columnHeadTitle = isset($column['headTitle']) ? $column['headTitle'] : $column[0];\n\t\t\t\t$table .= \"<th>\" . $columnHeadTitle . \"</th>\";\n\t\t\t}\n\n\t\t\t$table .= \"</tr></thead>\"; // finish head\n\t\t}\n\n\t\t// Body\n\t\t$table .= \"<tbody>\";\n\n\t\t$row = $this->numberColumnOffset;\n\n\t\tif (count($this->data) == 0) {\n\t\t\t// Show a no data entry\n\t\t\t$colspan = count($this->columns) + ($this->showNumberColumn ? 1 : 0);\n\t\t\t$table .= '<tr><td colspan=\"'.$colspan.'\"><p align=\"center\" style=\"font-weight:bold;\">Keine Einträge</p></td></tr>';\n\t\t}\n\t\telse {\n\t\t\tforeach ($this->data as $dataObject) {\n\n\t\t\t\t// Row attributes\n\t\t\t\t$attributes = $this->rowAttributes;\n\t\t\t\tif (!is_array($attributes)) {\n\t\t\t\t\tif (is_callable($this->rowAttributes)) {\n\t\t\t\t\t\t$callable = $this->rowAttributes;\n\t\t\t\t\t\t$attributes = $callable($dataObject);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$attributeString = '';\n\t\t\t\tif ($attributes) {\t\t// Add attributes if we have some\n\t\t\t\t\tforeach ($attributes as $attributeName => $attributeValue) {\n\t\t\t\t\t\t$attributeString .= $attributeName . '=\"' . $attributeValue . '\" ' ;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->rowIdDataMethod) {\n\t\t\t\t\t// method name or closure?\n\t\t\t\t\t$id = '';\n\t\t\t\t\tif (is_string($this->rowIdDataMethod)) {\n\t\t\t\t\t\t$id = $dataObject->{$this->rowIdDataMethod}(); // Call the row data method\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$rf = new \\ReflectionFunction($this->rowIdDataMethod);\n\t\t\t\t\t\tif ($rf->isClosure()) {\n\t\t\t\t\t\t\t// we got a closure\n\t\t\t\t\t\t\t$closure = $this->rowIdDataMethod;\n\t\t\t\t\t\t\t$id = $closure($dataObject);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t$table .= '<tr id=\"'. $id .'\" ' . $attributeString . '>'; // Start row with id\n\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$table .= \"<tr \". $attributeString .\">\";\t// Start row without id\n\t\t\t\t}\n\n\t\t\t\t// Number?\n\t\t\t\tif ($this->showNumberColumn) {\n\t\t\t\t\t$table .= \"<td>\" . $row . \"</td>\";\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->columns as $column) {\n\t\t\t\t\t$dataMethod = isset($column['dataMethod']) ? $column['dataMethod'] : $column[1];\n\t\t\t\t\tif (is_string($dataMethod)) {\n\t\t\t\t\t\t// Just call the method an insert the return value into the table cell\n\t\t\t\t\t\t$table .= \"<td>\". $dataObject->$dataMethod() .\"</td>\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$rf = new \\ReflectionFunction($dataMethod);\n\t\t\t\t\t\tif ($rf->isClosure()) {\n\n\t\t\t\t\t\t\t// Call the closure and get the result\n\t\t\t\t\t\t\t$value = $dataMethod($dataObject, $this);\n\n\t\t\t\t\t\t\t$table .= \"<td>\". $value .\"</td>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$table .= \"</tr>\";\t// End the table row\n\t\t\t\t$row++;\n\t\t\t}\n\n\t\t\t// Render the footer row\n\t\t\t$table = $this->renderFooter($table);\n\n\t\t}\n\n\t\t$table .= \"</tbody>\";\n\n\t\t$table .= \"</table>\";\n\t\treturn $table;\n\t}", "title": "" }, { "docid": "9f0b580968b20ae26e2917d7ec0116c0", "score": "0.58533835", "text": "protected function startTable() {}", "title": "" }, { "docid": "4414c3509b322f0f442e255f249bca42", "score": "0.5850974", "text": "public function create()\n\t{\n\t\treturn view('customer.fin-statement.create');\n\t}", "title": "" }, { "docid": "02ea79a693112157d29bc91a3714153b", "score": "0.58372355", "text": "function createTable($result) {\n $table = \"<table class='table table-bordered'>\";\n $row = $result->fetch_assoc();\n $table .= \"<tr>\";\n foreach(array_keys($row) as $field) {\n $table .= \"<th class='text-center'>$field</th>\";\n }\n $table .= \"</tr>\";\n while($row) {\n $table .= \"<tr>\";\n foreach($row as $key => $value) {\n $table .= \"<td class='text-center'>\";\n if(strcmp($key, \"Price\") == 0 or strcmp($key, \"Revenue\") == 0) {\n $table.=\"\\$\" . number_format($value, 2, \".\", \"\");\n }\n else {\n $table .= $value;\n }\n $table.=\"</td>\";\n }\n $table .= \"</tr>\";\n $row = $result->fetch_assoc();\n }\n $table .= \"</table>\";\n return $table;\n }", "title": "" }, { "docid": "65ab085a2e083810aac22d36092833d5", "score": "0.583197", "text": "function write_table_head()//scrie capul de tabel pentru perioadele de vacanta\r\n{\r\n\t$output = \"\";\r\n\tadd($output,'<table width=\"500px\" cellpadding=\"1\" cellspacing=\"1\" class=\"special\">');\r\n\tadd($output,'<tr class=\"tr_head\"><td>Nr</td><td>Data inceput</td><td>Data sfarsit</td></tr>');\r\n\t\r\n\treturn $output;\r\n}", "title": "" }, { "docid": "5e9745474f398342730506ced769ccca", "score": "0.5825001", "text": "public function createTable()\n {\n $this->dbInstance->query(\"CREATE TABLE IF NOT EXISTS Image\n (\n ImageID int NOT NULL AUTO_INCREMENT,\n Name varchar(255) NOT NULL,\n File varchar(255) NOT NULL,\n Thumb varchar(255) NOT NULL,\n uploadDate DATETIME DEFAULT CURRENT_TIMESTAMP,\n UserFK int,\n PRIMARY KEY (ImageID),\n FOREIGN KEY (UserFK) REFERENCES User(UserID) ON DELETE CASCADE\n )\n \");\n }", "title": "" }, { "docid": "bac3e9d9ed171942864db9a1e589847e", "score": "0.5822939", "text": "public function renderCreate(): void {\n }", "title": "" }, { "docid": "c2c8c0dcc48384318e150e45a7921290", "score": "0.58152264", "text": "public function create()\n\t{\n\t\treturn $this->_adapter->createTable($this->_identifier, $this->_info, $this->_options);\n\t}", "title": "" }, { "docid": "128b3ef6256f2019272a61eb7eca5310", "score": "0.5814041", "text": "public function create_table($opt = null)\n\t{\n\t\tif (!$opt) $opt = array();\n\t\t\n\t\treturn $this->authenticate('CreateTable', $opt);\n\t}", "title": "" }, { "docid": "15bb803a2bdb9c5ef4b84b3aad2cf74f", "score": "0.5809988", "text": "static function generateTableHeaderHTML()\n\t{\n\t\techo \"<p class=left>Description:</p>\\n\";\n\t}", "title": "" }, { "docid": "d69759d69f390059ed62558b9e32ec83", "score": "0.58096826", "text": "function CreateTable()\n {\n $qry = \"Create Table $this->tablename (\".\n \"id_user INT NOT NULL AUTO_INCREMENT ,\".\n \"name VARCHAR( 128 ) NOT NULL ,\".\n \"email VARCHAR( 64 ) NOT NULL ,\".\n \"phone_number VARCHAR( 16 ) NOT NULL ,\".\n \"username VARCHAR( 16 ) NOT NULL ,\".\n \"password VARCHAR( 32 ) NOT NULL ,\".\n \"confirmcode VARCHAR(32) ,\".\n \"PRIMARY KEY ( id_user )\".\n \")\";\n \n if(!mysqli_query($this->connection, $qry))\n {\n $this->HandleDBError(\"Fout bij toevoegen van de data in de database \\nquery was\\n $qry\");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "75fb2e018f3f9ded94fdb298530b6476", "score": "0.58070046", "text": "function make_table($table) {\n return print_table($table, true);\n}", "title": "" }, { "docid": "2b3f3862a88469f6f5d587a75f2ef302", "score": "0.58046764", "text": "public function createTable()\n {\n $sql = \"\n CREATE TABLE IF NOT EXISTS `\".self::TABLE.\"`(\n `migration` VARCHAR(20) NOT NULL,\n `up` VARCHAR(1000) NOT NULL,\n `down` VARCHAR(1000) NOT NULL\n ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;\n \";\n\n $this->adapter->query($sql, Adapter::QUERY_MODE_EXECUTE);\n }", "title": "" }, { "docid": "f3fd318f2c120f5cb1664b8e00893104", "score": "0.57997584", "text": "public function table()\n\t{\n\t\t$this->datatables->select('experiment_id, user_id_caller, id');\n\t\t$this->datatables->from('caller');\n\n\t\t$this->datatables->edit_column('experiment_id', '$1', 'experiment_get_link_by_id(experiment_id)');\n\t\t$this->datatables->edit_column('user_id_caller', '$1', 'user_get_link_by_id(user_id_caller)');\n\t\t$this->datatables->edit_column('id', '$1', 'caller_actions(id)');\n\n\t\techo $this->datatables->generate();\n\t}", "title": "" }, { "docid": "daeb5bd5bb3dcffc534dcb1cfb982b38", "score": "0.5793239", "text": "public function createtable($arguments)\n {\n $this->_validate($arguments);\n $this->_QUERYCOUNT++;\n\n return $this->_query->createtable($arguments);\n }", "title": "" }, { "docid": "7ef01be36e038ee77710e9c65782725c", "score": "0.5785895", "text": "public function render()\n {\n return view('components.table', [\n 'format' => $this->format,\n 'data' => $this->data,\n ]);\n }", "title": "" }, { "docid": "2a97378ef8a9b5c334918a2535884b7d", "score": "0.5785379", "text": "public static function stucture($table)\n {\n $drop = \"DROP TABLE IF EXISTS `$table`;\";\n $res = Driver::read('SHOW CREATE TABLE '.$table);\n $struct = $res[0]['Create Table'];\n //\n return \"\\n\\n-- $table\\n\\n-- '$table' Table Structure\\n$drop\\n\".$struct.\";\\n\\n\";\n }", "title": "" }, { "docid": "ed0c5d35e868d7a07dedb9da3c73e3d5", "score": "0.57827556", "text": "public function create_table($table, $definition, $index=array()){\n\t\t$create_sql = \"CREATE TABLE $table (\";\n\t\tif(!is_array($definition)){\n\t\t\tnew DbException(\"Definici&oacute;n invalida para crear la tabla '$table'\");\n\t\t\treturn false;\n\t\t}\n\t\t$create_lines = array();\n\t\t$index = array();\n\t\t$unique_index = array();\n\t\t$primary = array();\n\t\t$not_null = \"\";\n\t\t$size = \"\";\n\t\tforeach($definition as $field => $field_def){\n\t\t\tif(isset($field_def['not_null'])){\n\t\t\t\t$not_null = $field_def['not_null'] ? 'NOT NULL' : '';\n\t\t\t} else {\n\t\t\t\t$not_null = \"\";\n\t\t\t}\n\t\t\tif(isset($field_def['size'])){\n\t\t\t\t$size = $field_def['size'] ? '('.$field_def['size'].')' : '';\n\t\t\t} else {\n\t\t\t\t$size = \"\";\n\t\t\t}\n\t\t\tif(isset($field_def['index'])){\n\t\t\t\tif($field_def['index']){\n\t\t\t\t\t$index[] = \"INDEX($field)\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($field_def['unique_index'])){\n\t\t\t\tif($field_def['unique_index']){\n\t\t\t\t\t$index[] = \"UNIQUE($field)\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($field_def['primary'])){\n\t\t\t\tif($field_def['primary']){\n\t\t\t\t\t$primary[] = \"$field\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($field_def['auto'])){\n\t\t\t\tif($field_def['auto']){\n\t\t\t\t\t$gen = $this->fetch_one(\"SELECT COUNT(*) FROM RDB\\$GENERATORS WHERE RDB\\$GENERATOR_NAME = UPPER('{$table}_{$field}_seq')\");\n\t\t\t\t\tif(!$gen[0]){\n\t\t\t\t\t\t$this->query(\"INSERT INTO RDB\\$GENERATORS (RDB\\$GENERATOR_NAME) VALUES (UPPER('{$table}_{$field}_seq'))\");\n\t\t\t\t\t}\n\t\t\t\t\t$this->query(\"SET GENERATOR {$table}_{$field}_seq TO 1;\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($field_def['extra'])){\n\t\t\t\t$extra = $field_def['extra'];\n\t\t\t} else {\n\t\t\t\t$extra = \"\";\n\t\t\t}\n\t\t\t$create_lines[] = \"$field \".$field_def['type'].$size.' '.$not_null.' '.$extra;\n\t\t}\n\t\t$create_sql.= join(',', $create_lines);\n\t\t$last_lines = array();\n\t\tif(count($primary)){\n\t\t\t$last_lines[] = 'PRIMARY KEY('.join(\",\", $primary).')';\n\t\t}\n\t\tif(count($index)){\n\t\t\t$last_lines[] = join(',', $index);\n\t\t}\n\t\tif(count($unique_index)){\n\t\t\t$last_lines[] = join(',', $unique_index);\n\t\t}\n\t\tif(count($last_lines)){\n\t\t\t$create_sql.= ','.join(',', $last_lines).')';\n\t\t}\n\t\treturn $this->query($create_sql);\n\n\t}", "title": "" }, { "docid": "57abd869c39503c95963e8fee0e30d91", "score": "0.5782219", "text": "public function generateTable($myTableArrayBody) {\n\t\t\t $x = 0;\n\t\t\t $y = 0;\n\t\t\t $seTableStr = '<table><caption><h3>HAVANAO PAYMENT DETAILS</h3></caption><tbody>';\t\t \n\t\t\t foreach ($myTableArrayBody as $key => $value) {\n\t\t\t \t$seTableStr = $seTableStr.'<tr><th>'.strtoupper($key).'</th><td>'.$value.'</td></tr>';\n\t\t\t }\n\t\t\t $seTableStr .= '</tbody></table>';\n\t\t\t return $seTableStr;\n\t\t\t}", "title": "" }, { "docid": "0f3605eb2d726148fdab992ac281b635", "score": "0.57808185", "text": "public function createTable() {\n global $database;\n $SQL = \"CREATE TABLE IF NOT EXISTS `\".self::getTableName().\"` ( \".\n \"`trans_id` INT(11) NOT NULL AUTO_INCREMENT, \".\n \"`i18n_id` INT(11) NOT NULL DEFAULT '-1', \".\n \"`trans_language` VARCHAR(2) NOT NULL DEFAULT 'EN', \".\n \"`trans_translation` TEXT, \".\n \"`trans_usage` ENUM('TEXT','MESSAGE','ERROR','HINT','LABEL','BUTTON') NOT NULL DEFAULT 'TEXT', \".\n \"`trans_type` ENUM('REGULAR','CUSTOM') NOT NULL DEFAULT 'REGULAR', \".\n \"`trans_status` ENUM('ACTIVE','BACKUP') NOT NULL DEFAULT 'ACTIVE', \".\n \"`trans_author` VARCHAR(64) NOT NULL DEFAULT '- unknown -', \".\n \"`trans_quality` FLOAT NOT NULL DEFAULT '0', \".\n \"`trans_is_empty` TINYINT NOT NULL DEFAULT '0', \".\n \"`trans_timestamp` TIMESTAMP, \".\"PRIMARY KEY (`trans_id`), KEY (`i18n_id`, `trans_language`)\".\n \" ) ENGINE=MyIsam AUTO_INCREMENT=1 DEFAULT CHARSET utf8 COLLATE utf8_general_ci\";\n if (null == $database->query($SQL)) {\n $this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $database->get_error()));\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "0ce2c12e2453a065b67525be3259140c", "score": "0.5777527", "text": "public function renderStatement($type, $data)\n {\n switch (strtolower($type)) {\n case 'schema':\n extract($data);\n\n foreach (['columns', 'indexes'] as $var) {\n if (is_array(${$var})) {\n ${$var} = \"\\t\".implode(\",\\n\\t\", array_filter(${$var}));\n }\n }\n\n return \"CREATE TABLE {$table} (\\n{$columns});\\n{$indexes}\";\n break;\n default:\n return parent::renderStatement($type, $data);\n break;\n }\n }", "title": "" }, { "docid": "b809ca3d4e3a5e0c1511544ab2d38ae2", "score": "0.5775632", "text": "public function renderTableBody() {\n //$models = array_values($this->dataProvider->getModels());\n //$keys = $this->dataProvider->getKeys();\n $rows = [];\n \n foreach ($this->dataProvider as $model) {\n if (is_callable($this->beforeRow)) {\n $row = call_user_func($this->beforeRow, $model, $this);\n if (!empty($row)) {\n $rows[] = $row;\n }\n }\n\n $rows[] = $this->renderTableRow($model);\n\n if ($this->afterRow !== null) {\n $row = call_user_func($this->afterRow, $model, $this);\n if (!empty($row)) {\n $rows[] = $row;\n }\n }\n }\n\n if (empty($rows)) {\n $colspan = count($this->columns);\n\n return \"<tbody>\\n<tr><td colspan=\\\"$colspan\\\">\" . $this->renderEmpty() . \"</td></tr>\\n</tbody>\";\n } else {\n return \"<tbody>\\n\" . implode(\"\\n\", $rows) . \"\\n</tbody>\";\n }\n }", "title": "" }, { "docid": "63326fb6337e30d861fc1b2d05a4f8b0", "score": "0.57739013", "text": "public function begin_table_export(xmldb_table $table) {\n $this->output('<table name=\"'.$table->getName().'\" schemaHash=\"'.$table->getHash().'\">');\n }", "title": "" }, { "docid": "ba7d688fef9f86d0b27c41bd56e1dbcd", "score": "0.57737994", "text": "protected function createTable() {\n\t\t$query = \"\n\t\tCREATE TABLE `items` (\n\t\t\t`id`\tINTEGER,\n\t\t\t`firstName`\tTEXT,\n\t\t\t`lastName`\tTEXT,\n\t\t\t`address`\tTEXT,\n\t\t\t'occupation' TEXT,\n\t\t\tPRIMARY KEY(`id`)\n\t\t);\n\t\t\";\n\t\t$this->PDO->query($query);\n\t}", "title": "" }, { "docid": "95f79c6195a600792b59719bbeb72a68", "score": "0.5768097", "text": "private function createDummyTable() {}", "title": "" }, { "docid": "5269effd0bd336a743868452fbf1ed98", "score": "0.57649744", "text": "protected function createTableStatement(string $columnDefinition): string\n {\n return sprintf(static::CREATE_TABLE_STATEMENT, $columnDefinition);\n }", "title": "" }, { "docid": "96c3673ec8d8c6cab92098c5b6b086bc", "score": "0.5763554", "text": "public function createTable($tableName, $schemaName, $definition){ }", "title": "" }, { "docid": "b7a5cba7a89caa969a6ee20e862e04ae", "score": "0.5762894", "text": "function createTable($conn, $table)\n { \n /*$sqlStr = \"CREATE TABLE $table(name VARCHAR(150), vendor VARCHAR(150), manufacturer VARCHAR(150), rating DECIMAL(4, 2), quantity INT, PRIMARY KEY(name, vendor))\";*/\n $sqlStr = \"CREATE TABLE $table(name VARCHAR(150) NOT NULL, vendor VARCHAR(150) NOT NULL, manufacturer VARCHAR(150) NOT NULL, rating DECIMAL(4, 2), quantity INT, productID INT primary key AUTO_INCREMENT)\";\n $result = $conn->query($sqlStr);\n if(!result) die($conn->error);\n else\n echo \"Created the $table table.<br />\";\n if(strcmp(\"NEWEGG\", strtoupper($table)) == 0)\n echo \"<br />\";\n }", "title": "" }, { "docid": "ba703f1388a269445f6574710baa3b9f", "score": "0.5757826", "text": "function create_new() {\n if($this->table_title != '' ) {\n $this->title = 'New ' . $this->table_title .\n $this->makeForm();\n }\n }", "title": "" }, { "docid": "7e787317810c068fab3de1f580a34a4a", "score": "0.5757307", "text": "function print_pure_table($query_result, $headers) {\n echo \"<table class=\\\"pure-table pure-table-bordered\\\">\";\n if ($headers) {\n echo $headers;\n } else {\n echo \"<thead><tr>\";\n for ($i = 0; $i < pg_num_fields($query_result); $i++) {\n $fieldname = pg_field_name($query_result, $i);\n echo \"<th>$fieldname</th>\";\n }\n echo \"</tr></thead>\";\n }\n \n echo \"<tbody>\";\n while ($row = pg_fetch_row($query_result)) {\n echo \"<tr>\";\n $num = pg_num_fields($query_result);\n for ($i = 0; $i < $num; $i++) {\n echo \"<td>$row[$i]</td>\";\n }\n echo \"</tr>\";\n }\n echo \"</tbody>\";\n echo \"</table>\";\n }", "title": "" }, { "docid": "8e9b2ceedac1b0194b0959e3a9c05936", "score": "0.5756471", "text": "public function renderStatement($type, $data)\n {\n switch (strtolower($type)) {\n case 'schema':\n extract($data);\n\n foreach ($indexes as $i => $index) {\n if (preg_match('/PRIMARY KEY/', $index)) {\n unset($indexes[$i]);\n $columns[] = $index;\n break;\n }\n }\n $join = ['columns' => \",\\n\\t\", 'indexes' => \"\\n\"];\n\n foreach (['columns', 'indexes'] as $var) {\n if (is_array(${$var})) {\n ${$var} = implode($join[$var], array_filter(${$var}));\n }\n }\n\n return \"CREATE TABLE {$table} (\\n\\t{$columns}\\n);\\n{$indexes}\";\n break;\n default:\n return parent::renderStatement($type, $data);\n break;\n }\n }", "title": "" }, { "docid": "f3b2bc41d43d615abcf8de1383cbb9d8", "score": "0.5749661", "text": "public function create_table($tablename, $vararray) {\n try {\n $str = \"SET AUTOCOMMIT = 0;\\n\";\n $str .= \"START TRANSACTION;\\n\";\n $str .= \"CREATE TABLE `\".$tablename.\"` (\\n\" ;\n $str .= \"\t`id` int(11) NOT NULL,\\n\";\n foreach($vararray as $row) {\n if ($row['name'] == \"id\" || $row['name'] == \"status\") {\n $row['name'] = $tablename.\"_\".$row['name']; // change name\n }\n $str .= \"\t`\".$row['name'].\"` \".$row['type'];\n if ($row['notnull']) $str .= \" NOT NULL\";\n if ($row['default']) $str .= \" DEFAULT '\".$row['default'].\"'\";\n $str .= \",\\n\";\n }\n $str .= \"\t`status` enum('INACTIVE','LOCKED','ACTIVE') NOT NULL DEFAULT 'INACTIVE'\\n\";\n $str .= \") ENGINE=INNODB;\\n\";\n $str .= \"ALTER TABLE `\".$tablename.\"`\\n\";\n $str .= \"\tADD PRIMARY KEY (`id`);\\n\";\n $str .= \"ALTER TABLE `\".$tablename.\"`\\n\";\n $str .= \"\tMODIFY `id` int(11) NOT NULL AUTO_INCREMENT;\\n\";\n $str .= \"COMMIT;\\n\";\n //echo $str.\"<br>\";\n $result = $this->conn->query($str);\n } catch (PDOException $e) {\n die(\"DB ERROR: \".$e->getMessage());\n }\n }", "title": "" }, { "docid": "076011f39991b25b67a6b0d853aaeb83", "score": "0.57483846", "text": "public function create()\n {\n return view('admin.timetable.addTimetable');\n }", "title": "" }, { "docid": "0bce48a89721d514bb908a102f68c6ae", "score": "0.57462925", "text": "private function createTableHeader($attributeList = false, $prefixHTML = false)\n\t{\n\t\t// Render table with all specified attributes\n\t\t$attributeString = false;\n\t\tif ($attributeList)\n\t\t{\n\t\t\tforeach($attributeList as $name => $value) {\n\t\t\t\t$attributeString .= sprintf('%s=\"%s\" ', $name, $value);\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn \"$prefixHTML\\n\\n<table class=\\\"form-table\\\" $attributeString>\\n\";\n\t}", "title": "" }, { "docid": "0a009b7ba08be78c0fd81f9f9d72e65c", "score": "0.5738687", "text": "abstract public function create_table($table_name, $fields, $primary_key = TRUE);", "title": "" }, { "docid": "72f9958d929f432a15f4f4eb2b183b79", "score": "0.5719497", "text": "private function prepare_table()\n {\n global $g_dirs;\n\n $l_dao = new isys_cmdb_dao($this->database);\n $l_quicky = new isys_ajax_handler_quick_info();\n\n $l_table = \"<table width=\\\"100%\\\" class=\\\"report_listing\\\">\";\n\n foreach ($this->m_its_arr as $l_obj_id => $l_title) {\n unset($this->m_obj_arr);\n $l_table .= \"<tr style=\\\"\\\"><td onclick=\\\"collapse_it_service('\" . $l_obj_id . \"')\\\" id=\\\"\" . $l_obj_id . \"\\\" class=\\\"report_listing\\\"><img id=\\\"\" . $l_obj_id .\n \"_plusminus\\\" src=\\\"\" . $g_dirs[\"images\"] . \"dtree/nolines_plus.gif\\\" class=\\\"vam\\\">\";\n\n $l_table .= $l_quicky->get_quick_info($l_obj_id, $l_dao->get_obj_name_by_id_as_string($l_obj_id), C__LINK__OBJECT);\n\n $l_table .= \"<img src=\\\"\" . $g_dirs[\"images\"] . \"ajax-loading.gif\\\" id=\\\"ajax_loading_view_\" . $l_obj_id . \"\\\" style=\\\"display:none;\\\" class=\\\"vam\\\" /></td></tr>\";\n\n $l_table .= \"<tr id=\\\"childs_\" . $l_obj_id . \"\\\" style=\\\"display:none;\\\"><td><div id=\\\"childs_content_\" . $l_obj_id . \"\\\"></div>\";\n $l_table .= \"</td></tr>\";\n }\n\n $l_table .= \"</table>\";\n\n return $l_table;\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "b0004a8a63e16d4035b1612463bdf14e", "score": "0.0", "text": "public function destroy(Request $request,$id)\n {\n $article = Articles::find($id);\n\n $img = public_path('Website/img/articles/'.$article->img);\n if(file_exists($img))\n {\n unlink($img);\n\n }\n if ($request->ajax()) {\n $article->delete();\n\n return response(['msg' => 'the article is deleted successfully', 'status' => 'success']);\n }\n return response(['msg' => 'Failed deleting the article', 'status' => 'failed']);\n\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": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "f9c1368957d6469e34b1756d788441d6", "score": "0.0", "text": "public function store(Request $request)\n {\n //return \"Mensaje Storage\";\n //return $request->all(); //Devuelve todos los datos.\n //return $request->input(\"nombre\"); //Devuelve un campo espesifico. \n\n //Guarda Mensajes con QueryParam / QueryBuilder(?)\n // DB::table('messages')->insert([\n\n // Asignación de datos mediante QueryBuilder\n // \"nombre\" => $request->input('nombre'),\n // \"email\" => $request->input('email'),\n // \"mensaje\" => $request->input('mensaje'),\n // \"created_at\" => Carbon::now(),\n // \"updated_at\" => Carbon::now(),\n // ]);\n\n //Asignación de datos mediante eloquent 1 \n // $message = new Message;\n // $message->nombre = $request->input('nombre');\n // $message->email = $request->input('email');\n // $message->mensaje =$request->input('mensaje');\n // $message->save();\n\n //Asignación de datos mediante Eloquent 2 para datos espesificos. \n // Message::create(\n // [\n // \"nombre\" => $request->input('nombre'),\n // \"email\" => $request->input('email'),\n // \"mensaje\" => $request->input('mensaje'),\n // ]\n // );\n\n //dd($request->all()); // --------- Inspecciona los valores que se mandan y el proceso se para despues de esta linea (como un break)\n \n //Model::unguard();\n \n //Asignación de datos mediante Eloquent 3\n /*\n Para utilizar este metodo, se tiene que espesificar en el modelo\n los campos a solicitar (si lo dejas así te va a arrojar todos y eso eso permite\n el ingreso masivo de datos) mediante el metodo protected $filable = [\"array de elementos permitidos];\n */\n Message::create($request->all());\n //return $request; //Quitar para que funcione\n\n return redirect()->route('mensajes.create')->with('info', 'Hemos recibido tu mensaje');\n }", "title": "" } ]
[ { "docid": "643f51843534c99b002271c413f71061", "score": "0.7149016", "text": "public function store()\n {\n $this->storage->set($this);\n\n }", "title": "" }, { "docid": "aba977442c12d8193d7ce12cb2a46e96", "score": "0.669261", "text": "public function store ()\n {\n $this->_update_login ();\n $this->_pre_store ();\n\n if ($this->exists ())\n {\n $this->_update ();\n }\n else\n {\n $this->_create ();\n }\n }", "title": "" }, { "docid": "75600e5d65c2156987ff7cb140e14a4b", "score": "0.6621582", "text": "public function store() {\n $fileService = $this->getFileService();\n $filename = $this->getCacheDirectory() . $this->generateCacheablefilename();\n $fileService->saveFile($filename, $this->resource->getContent());\n }", "title": "" }, { "docid": "98fadc36fd3a4194a25023de21dae9ff", "score": "0.6428514", "text": "public function save($resource);", "title": "" }, { "docid": "9181113e9ca478f57b376bb60189432a", "score": "0.639531", "text": "public function store()\n\t{\n\t\t//\n\t\t$inputs = Input::all();\n\t\t$validator = Validator::make($inputs , \\App\\Resource::$rules);\n\n\t\tif($validator->passes()){\n\t\t\t$destinationPath = 'pictures/'; // upload path\n\t\t\t$extension = Input::file('image')->getClientOriginalExtension(); // getting image extension\n\t\t\t$fileName = rand(11111,99999). '_' . time() . '.'.$extension; // renameing image\n\t\t\tImage::make(Input::file('image')->getRealPath())->resize(300, null,function($constrain){\n\t\t\t\t$constrain->aspectRatio();\n\t\t\t})->save($destinationPath . $fileName);\n\t\t\t// Input::file('image')->move($destinationPath, $fileName); // uploading file to given path\n\t\t\t$inputs['image'] = $fileName;\n\t\t\t\\App\\Resource::create($inputs);\n\t\t\treturn Redirect::to('/');\n\n\t\t}\n\n\t\treturn Redirect::back()\n\t\t\t->withInput(Input::all())\n\t\t\t->withErrors($validator);\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "bd7a2528e89d1c3f43656fa9d3a11bc3", "score": "0.63575023", "text": "public function store(StoreResourceRequest $request): JsonResponse\n {\n $resource = new Resource;\n $resource->fill($request->all());\n if ($request->has('url')) {\n $resource->url = $request->file('url')->store('articles', 'article');\n }\n $resource->saveOrFail();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.created'),\n 'code' => 201\n ], 201);\n }", "title": "" }, { "docid": "af1871e1a1f1d758082bcf4ebeab10eb", "score": "0.6356851", "text": "public function saveStorage()\n {\n $this->storage->save($this->getProduct());\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": "" }, { "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": "" } ]