query
stringlengths 7
5.25k
| document
stringlengths 15
1.06M
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Get the Project (aka list) that tasks belongs to | function project () {
return $this->belongsTo('App\Project');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getProjects();",
"function getProjectList() {\n global $logger;\n\n $projects = Project::getProjects();\n if($projects != NULL) {\n $extproj_id = Config::getInstance()->getValue(Config::id_externalTasksProject);\n $smartyProjects = array();\n foreach($projects as $id => $name) {\n // exclude ExternalTasksProject\n if ($extproj_id == $id) {\n echo \"<script type=\\\"text/javascript\\\">console.log(\\\" getProjectList - project $id: ExternalTasksProject is excluded\\\");</script>\";\n continue;\n }\n\n // exclude SideTasksProjects\n try {\n $p = ProjectCache::getInstance()->getProject($id);\n if ($p->isSideTasksProject()) {\n echo \"<script type=\\\"text/javascript\\\">console.log(\\\" getProjectList - project $id: sideTaskProjects are excluded\\\");</script>\";\n continue;\n }\n } catch (Exception $e) {\n // could not determinate, so the project should be included in the list\n echo \"<script type=\\\"text/javascript\\\">console.log(\\\" getProjectList - project $id: Unknown type, project included anyway\\\");</script>\";\n // nothing to do.\n }\n $smartyProjects[$id] = $name;\n }\n return $smartyProjects;\n } else {\n return NULL;\n }\n}",
"function getProjects() {\n\n\tglobal $db;\n\treturn $db->getProjectsByGroup ( $GLOBALS [\"targetId\"] );\n\n}",
"function getRelatedTasks() {\n\t\tif (!$this->relatedtasks) {\n\t\t\t$this->relatedtasks = db_query_params ('SELECT pt.group_project_id,pt.project_task_id,pt.summary,pt.start_date,pt.end_date,pgl.group_id,pt.status_id,pt.percent_complete,ps.status_name\n\t\t\tFROM project_task pt, project_group_list pgl, project_status ps\n\t\t\tWHERE pt.group_project_id = pgl.group_project_id\n AND ps.status_id = pt.status_id\n AND EXISTS (SELECT project_task_id FROM project_task_artifact\n\t\t\t\tWHERE project_task_id=pt.project_task_id\n\t\t\t\tAND artifact_id = $1)',\n\t\t\t\t\t\t\t array ($this->getID())) ;\n\t\t}\n\t\treturn $this->relatedtasks;\n\t}",
"function project_by_task($key) {\n $project_key = $this->projects[$this->task_project[$key]];\n $project = $this->parsed_items[$project_key];\n return $project;\n }",
"function getProjectList()\n\t{\n\t\t//Update Project List\n\t\t$this->Project_List = null;\n\t\t$assigned_projects_rows = returnRowsDeveloperAssignments($this->getUsername(), 'Project');\n\t\tforeach($assigned_projects_rows as $assigned_project)\n\t\t\t$this->Project_List[] = new Projects( $assigned_project['ClientProjectTask'] );\n\t\treturn $this->Project_List;\n\t}",
"function getProjectsTasksAssigned($projectid)\n\t{\n\t\t$ret = array();\n\t\t$project = new Projects($projectid);\n\t\t//$project = $this->getProject($projectid);\n\t\t$dev_tasks = $this->getTaskList();\n\n\t\t//for each tasks if the developer's tasks and the task have the ID push it into the list\n\t\tforeach($dev_tasks as $dev_task)\n\t\t\tforeach($project->getTaskList() as $task)\n\t\t\t\tif($dev_task->getTaskID() == $task->getTaskID())\n\t\t\t\t\tarray_push($ret, $task);\n\n\t\treturn $ret;\n\t}",
"function &getTasksByGroupProjectName () {\n\t\treturn $this->getTasksFromSQLwithParams ('SELECT ptv.*,g.group_name,pgl.project_name\n\t\t\tFROM project_task_vw ptv,\n\t\t\t\tproject_assigned_to pat,\n\t\t\t\tgroups g,\n\t\t\t\tproject_group_list pgl\n\t\t\tWHERE ptv.project_task_id=pat.project_task_id\n\t\t\t\tAND pgl.group_id=g.group_id\n\t\t\t\tAND pgl.group_project_id=ptv.group_project_id\n\t\t\t\tAND ptv.status_id=1\n\t\t\t\tAND pat.assigned_to_id=$1\n\t\t\tORDER BY group_name,project_name',\n\t\t\t\t\t\t\t array ($this->User->getID())) ;\n\t}",
"function get_rel_tasks_project($id)\n {\n return $this->db->get_where('rel_tasks_project',array('id'=>$id))->row_array();\n }",
"public function getProjectTasks() {\n $fieldNames = [];\n $sql = \"SELECT \n p.name as ProjectName,\n pt.name as TaskName, \n u.username, \n pt.`start_date`,\n pt.`due_date`,\n pt.status \n FROM projects AS p \n LEFT JOIN project_has_tasks as pt on pt.project_id = p.id \n LEFT JOIN users as u on pt.user_id=u.id;\";\n /** @var CI_DB_mysql_result $result */\n $result = $this->_primaryDatabase->query($sql, []);\n $resultArray = $result->result();\n if ($result->num_rows() > 0) {\n foreach ((array) $resultArray[0] as $fieldName => $fieldValue) $fieldNames[] = $fieldName;\n $resultArray = array_merge([(object) $fieldNames], $resultArray);\n }\n\n return $resultArray;\n }",
"public function get_project_all(){\n }",
"public function getProjects()\n {\n return $this->projects;\n }",
"public function getProjects()\n {\n }",
"public function getProjectList() { \n $q = Doctrine_Query::create()->from('Project')\n ->orderBy('id');\n \n return $q->execute(); \n }",
"public function get_project_list_get()\n {\n \t$result = $this->Post_project_model->get_project_list();\n \treturn $this->response($result);\n }",
"public function taskList() {\n return $this->hasMany('Peteryan\\Task', 'ProjectId', 'Id');\n }",
"public function get_projects() {\n\t\treturn $this->request( array(\n\t\t\t'function' => 'projects',\n\t\t\t'method' => 'GET',\n\t\t) );\n\t}",
"public function tasks()\n {\n return $this->hasMany('App\\Model\\Task', 'idproject')->orderBy('lasteditdate', 'DESC');\n }",
"public function projects()\n {\n return $this->request('get', 'api/teams/'.Helpers::config('team').'/projects');\n }",
"public function getGathercontentProject();",
"public function getProjects()\n {\n return $this->hasOne(Project::className(), ['id' => 'project_id']);\n }",
"public function getActiveProjectList() {\n\t\treturn $this->getProjectDao()->getActiveProjectList();\n\t}",
"function getTaskList()\n\t{\n\t\t//Update Task List\n\t\t$this->Task_List = null;\n\t\t$assigned_tasks_rows = returnRowsDeveloperAssignments($this->getUsername(), 'Task');\n\t\tforeach($assigned_tasks_rows as $assigned_task)\n\t\t\t$this->Task_List[] = new Tasks( $assigned_task['ClientProjectTask'] );\n\t\treturn $this->Task_List;\n\t}",
"public static function projectList() {\n\t\tif(!Authenticate::isAuthorized()) {\n \t\t throw new NotifyException(\"You are not authorized for this method\", 1);\n \t}\n else {\n\t\t\t$api_end_point = \"project\";\n\t\t\t$request_data=[];\n\t\t\treturn Request::sendRequest($api_end_point, $request_data);\n\t\t}\n\t}",
"function VM_projects() { return bList::getListInstance(myOrg_ID,'bList_vm_projects'); }",
"public function get_project(){\n if ( $this->project != NULL){\n $myProject= new Project();\n return $myProject->get_by_ID($this->project);\n }\n }",
"function Projects(){\n\t\t\t\treturn $this->projects;\n\t\t\t}",
"public function getProjects()\n {\n return $this->projects;\n }",
"function getAllSubProjectTasks()\n {\n\t\t$projectTasksBeans = array();\n\n if (!empty($this->project_task_id) && !empty($this->project_id))\n\t\t{\n //select all tasks from a project\n $query = \"SELECT id, project_task_id, parent_task_id FROM project_task WHERE project_id = '{$this->project_id}' AND deleted = 0 ORDER BY project_task_id\";\n\n $result = $this->db->query($query, true, \"Error retrieving child project tasks\");\n\n $projectTasks=array();\n while($row = $this->db->fetchByAssoc($result))\n {\n $projectTasks[$row['id']]['project_task_id'] = $row['project_task_id'];\n $projectTasks[$row['id']]['parent_task_id'] = $row['parent_task_id'];\n }\n\n $potentialParentTaskIds[$this->project_task_id] = $this->project_task_id;\n $actualParentTaskIds=array();\n $subProjectTasks=array();\n\n $startProjectTasksCount=0;\n $endProjectTasksCount=0;\n\n //get all child tasks\n $run = true;\n while ($run)\n {\n $count=0;\n\n foreach ($projectTasks as $id=>$values)\n {\n if (in_array($values['parent_task_id'], $potentialParentTaskIds))\n {\n $potentialParentTaskIds[$values['project_task_id']] = $values['project_task_id'];\n $actualParentTaskIds[$values['parent_task_id']] = $values['parent_task_id'];\n\n $subProjectTasks[$id]=$values;\n $count=$count+1;\n }\n }\n\n $endProjectTasksCount = count($subProjectTasks);\n\n if ($startProjectTasksCount == $endProjectTasksCount)\n {\n $run = false;\n }\n else\n {\n $startProjectTasksCount = $endProjectTasksCount;\n }\n }\n\n foreach($subProjectTasks as $id=>$values)\n {\n //ignore tasks that are parents\n if(!in_array($values['project_task_id'], $actualParentTaskIds))\n {\n $projectTaskBean = BeanFactory::getBean('ProjectTask', $id);\n array_push($projectTasksBeans, $projectTaskBean);\n }\n }\n\t\t}\n\n\t\treturn $projectTasksBeans;\n\t}",
"public function getProjects() {\n\t\treturn $this->projects;\n\t}",
"function get_all_rel_tasks_project($project_id)\n {\n $this->db->order_by('id', 'desc');\n $this->db->where('project_id', $project_id);\n return $this->db->get('rel_tasks_project')->result_array();\n }",
"public function projects()\n {\n $query = 'project';\n return json_decode($this->client->request('GET', $query, $this->options)->getBody(), true);\n }",
"public function getTasks();",
"public function getTasks();",
"public function getProjects()\n {\n return $this->hasMany(Project::className(), ['customer_id' => 'id']);\n }",
"public function getParentTaskLists()\n {\n $me = Auth::user();\n $status = ResponseStatus::OK;\n\n $tasks = Task::select(Task::table. '.id', Task::table. '.' .Task::slug, Task::table. '.' .Task::title)\n ->leftJoin(TaskParticipants::table, TaskParticipants::table. '.' . TaskParticipants::task_id, '=', Task::table. '.id')\n ->where(function ($query) use ($me) {\n $query->orWhere(Task::table . '.' .Task::creator_user_id, $me->id)\n ->orWhere(Task::table . '.' .Task::responsible_person_id, $me->id)\n ->orWhere(TaskParticipants::table . '.' .TaskParticipants::user_id, $me->id);\n })\n ->where(Task::table. '.'. Task::is_template, false)\n ->where(Task::table . '.' .Task::archive, false);\n\n if (request()->has('q')) {\n $query = request()->q;\n $tasks->Where(Task::table. '.' .Task::title, 'like', \"%{$query}%\");\n }\n\n $tasks->groupBy(Task::table. '.id');\n $response = $tasks->get();\n\n if ($response->isEmpty()) {\n $status = ResponseStatus::NOT_FOUND;\n }\n\n return $this->content = array(\n 'data' => $response,\n 'code' => Response::HTTP_OK,\n 'status' => $status\n );\n }",
"function get_project()\n {\n return $this->find('all');\n }",
"public function getProjects()\n\t{\n\t\t$query = $this->db->getQuery(true);\n\t\t$query->select('id, name, alias')\n\t\t\t->from('#__monitor_projects');\n\n\t\t$this->countItems($query);\n\n\t\tif ($this->list !== null && isset($this->list['fullordering']) && in_array($this->list['fullordering'], $this->orderOptions))\n\t\t{\n\t\t\t$query->order($this->list['fullordering']);\n\t\t}\n\n\t\t$this->db->setQuery($query);\n\n\t\treturn $this->db->loadObjectList();\n\t}",
"public function get_projects()\n\t{\n\t\t$query = $this->db->get('projects');\n\t\treturn $query->result();\n\t}",
"public function Query() {\n return FactoryService::ProjectService()->GetList()->ToList();\n }",
"public function getProjectTasksForSelectProjects($projectIdList) {\n if (count($projectIdList) < 1) return [];\n $fieldNames = [];\n $sql = \"SELECT \n p.category as category, \n p.name as ProjectName,\n pt.name as TaskName, \n u.username, \n pt.`start_date`,\n pt.`due_date`,\n pt.status \n FROM projects AS p \n LEFT JOIN project_has_tasks as pt on pt.project_id = p.id \n LEFT JOIN users as u on pt.user_id=u.id\n WHERE p.id IN (\" . implode(\",\", $projectIdList) . \")\n ORDER BY p.category, p.name;\";\n /** @var CI_DB_mysql_result $result */\n $result = $this->_primaryDatabase->query($sql, []);\n $resultArray = $result->result();\n if ($result->num_rows() > 0) {\n foreach ((array) $resultArray[0] as $fieldName => $fieldValue) $fieldNames[] = $fieldName;\n $resultArray = array_merge([(object) $fieldNames], $resultArray);\n }\n return $resultArray;\n }",
"public function index()\n {\n $business_id = request()->session()->get('user.business_id');\n $is_admin = $this->commonUtil->is_admin(auth()->user(), $business_id);\n $user = request()->session()->get('user');\n $statuses = ProjectTask::taskStatuses();\n \n if (!(auth()->user()->can('superadmin') || $this->moduleUtil->hasThePermissionInSubscription($business_id, 'project_module'))) {\n abort(403, 'Unauthorized action.');\n }\n\n if (request()->ajax()) {\n $project_task = ProjectTask::with(['members', 'createdBy', 'project', 'comments'])\n ->where('business_id', $business_id)\n ->select('*');\n\n //if user is not admin get assiged task only\n $user_id = $user['id'];\n if (empty(request()->get('project_id')) && !$is_admin) {\n $project_task->whereHas('members', function ($q) use ($user_id) {\n $q->where('user_id', $user_id);\n });\n }\n\n //filter by project id\n if (!empty(request()->get('project_id'))) {\n $project_task->where('project_id', request()->get('project_id'));\n }\n\n //filter by assigned to\n if (!empty(request()->get('user_id'))) {\n $user_id = request()->get('user_id');\n $project_task->whereHas('members', function ($q) use ($user_id) {\n $q->where('user_id', $user_id);\n });\n }\n\n // filter by status\n if (!empty(request()->get('status'))) {\n $project_task->where('status', request()->get('status'));\n }\n\n // filter by priority\n if (!empty(request()->get('priority'))) {\n $project_task->where('priority', request()->get('priority'));\n }\n\n // filter by due date\n if (!empty(request()->get('due_date'))) {\n if (request()->get('due_date') == 'overdue') {\n $project_task->where('due_date', '<', Carbon::today())\n ->where('status', '!=', 'completed');\n } elseif (request()->get('due_date') == 'today') {\n $project_task->where('due_date', Carbon::today())\n ->where('status', '!=', 'completed');\n } elseif (request()->get('due_date') == 'less_than_one_week') {\n $project_task->whereBetween('due_date', [Carbon::today(), Carbon::today()->addWeek()])\n ->where('status', '!=', 'completed');\n }\n }\n\n // check if user can crud task\n $project_id = request()->get('project_id');\n $project = Project::find($project_id);\n $is_lead = $this->projectUtil->isProjectLead(auth()->user()->id, $project_id);\n $is_member = $this->projectUtil->isProjectMember(auth()->user()->id, $project_id);\n\n $can_crud = false;\n if ($is_admin || $is_lead) {\n $can_crud = true;\n } elseif ($is_member && (isset($project->settings['members_crud_task']) && $project->settings['members_crud_task'])) {\n $can_crud = true;\n }\n\n if (request()->get('task_view') == 'list_view') {\n return Datatables::of($project_task)\n ->addColumn('action', function ($row) use ($can_crud) {\n $html = '<div class=\"btn-group\">\n <button class=\"btn btn-info dropdown-toggle btn-xs\" type=\"button\" data-toggle=\"dropdown\" aria-expanded=\"false\">\n '. __(\"messages.action\").'\n <span class=\"caret\"></span>\n <span class=\"sr-only\">'\n . __(\"messages.action\").'\n </span>\n </button>\n <ul class=\"dropdown-menu dropdown-menu-left\" role=\"menu\">\n <li>\n <a data-href=\"' . action('\\Modules\\Project\\Http\\Controllers\\TaskController@show', ['id' => $row->id, 'project_id' => $row->project_id]) . '\" class=\"cursor-pointer view_a_project_task\">\n <i class=\"fa fa-eye\"></i>\n '.__(\"messages.view\").'\n </a>\n </li>\n <li>\n <a data-href=\"' . action('\\Modules\\Project\\Http\\Controllers\\TaskController@getTaskStatus', ['id' => $row->id, 'project_id' => $row->project_id]) . '\"class=\"cursor-pointer change_status_of_project_task\">\n <i class=\"fa fa-check\"></i>\n '.__(\"project::lang.change_status\").'\n </a>\n </li>';\n\n if ($can_crud) {\n $html .= '<li>\n <a data-href=\"' . action('\\Modules\\Project\\Http\\Controllers\\TaskController@edit', ['id' => $row->id, 'project_id' => $row->project_id]) . '\" class=\"cursor-pointer edit_a_project_task\">\n <i class=\"fa fa-edit\"></i>\n '.__(\"messages.edit\").'\n </a>\n </li>\n <li>\n <a data-href=\"' . action('\\Modules\\Project\\Http\\Controllers\\TaskController@destroy', ['id' => $row->id, 'project_id' => $row->project_id]) . '\" class=\"cursor-pointer delete_a_project_task\">\n <i class=\"fas fa-trash\"></i>\n '.__(\"messages.delete\").'\n </a>\n </li>';\n }\n\n $html .= '</ul>\n </div>';\n\n return $html;\n })\n ->editColumn('priority', function ($row) {\n $priority = __('project::lang.'.$row->priority);\n\n $html = '<span class=\"label '.$this->priority_colors[$row->priority].'\">'.\n $priority\n .'</span>';\n\n \n return $html;\n })\n ->editColumn('start_date', '\n @if(isset($start_date))\n {{@format_date($start_date)}}\n @endif\n ')\n ->editColumn('due_date', '\n @if(isset($due_date))\n {{@format_date($due_date)}}\n @endif\n ')\n ->editColumn('createdBy', function ($row) {\n return optional($row->createdBy)->user_full_name;\n })\n ->editColumn('project', function ($row) {\n return $row->project->name;\n })\n ->editColumn('members', function ($row) {\n $html = ' ';\n foreach ($row->members as $member) {\n if (isset($member->media->display_url)) {\n $html .= '<img class=\"user_avatar\" src=\"'.$member->media->display_url.'\" data-toggle=\"tooltip\" title=\"'.$member->user_full_name.'\">';\n } else {\n $html .= '<img class=\"user_avatar\" src=\"https://ui-avatars.com/api/?name='.$member->first_name.'\" data-toggle=\"tooltip\" title=\"'.$member->user_full_name.'\">';\n }\n }\n\n return $html;\n })\n ->editColumn('status', function ($row) {\n if ($row->status == 'completed') {\n $status = __('project::lang.completed');\n $bg = 'bg-green';\n } elseif ($row->status == 'cancelled') {\n $status = __('project::lang.cancelled');\n $bg = 'bg-red';\n } elseif ($row->status == 'on_hold') {\n $status = __('project::lang.on_hold');\n $bg = 'bg-yellow';\n } elseif ($row->status == 'in_progress') {\n $status = __('project::lang.in_progress');\n $bg = 'bg-info';\n } elseif ($row->status == 'not_started') {\n $status = __('project::lang.not_started');\n $bg = 'bg-red';\n }\n\n $href = action(\"\\Modules\\Project\\Http\\Controllers\\TaskController@getTaskStatus\", [\"id\" => $row->id, \"project_id\" => $row->project_id]);\n\n $html = '<span class=\"cursor-pointer change_status_of_project_task label '.$bg.'\" data-href=\"'.$href.'\">\n '.\n $status\n .'</span>';\n\n return $html;\n })\n ->editColumn('subject', '\n <a data-href=\"{{action(\"\\Modules\\Project\\Http\\Controllers\\TaskController@show\", [\"id\" => $id, \"project_id\" => $project_id])}}\" class=\"cursor-pointer view_a_project_task text-black\">\n {{$subject}} <code>{{$task_id}}</code>\n </a>\n ')\n ->removeColumn('id')\n ->rawColumns(['action', 'project', 'subject', 'members', 'priority', 'start_date', 'due_date', 'status', 'createdBy'])\n ->make(true);\n } elseif (request()->get('task_view') == 'kanban') {\n $project_task = $project_task->get()->groupBy('status');\n\n //sort array based on status\n $project_tasks = [];\n foreach ($statuses as $key => $value) {\n if (!isset($project_task[$key])) {\n $project_tasks[$key] = [];\n } else {\n $project_tasks[$key] = $project_task[$key];\n }\n }\n\n $kanban_tasks = [];\n foreach ($project_tasks as $key => $tasks) {\n //get all the card for particular board(status)\n $cards = [];\n foreach ($tasks as $task) {\n $edit = '';\n $delete = '';\n if ($can_crud) {\n $edit = action('\\Modules\\Project\\Http\\Controllers\\TaskController@edit', ['id' => $task->id, 'project_id' => $task->project_id]);\n\n $delete = action('\\Modules\\Project\\Http\\Controllers\\TaskController@destroy', ['id' => $task->id, 'project_id' => $task->project_id]);\n }\n\n $view = action('\\Modules\\Project\\Http\\Controllers\\TaskController@show', ['id' => $task->id, 'project_id' => $task->project_id]);\n\n //if member then get their avatar\n if ($task->members->count() > 0) {\n $assigned_to = [];\n foreach ($task->members as $member) {\n if (isset($member->media->display_url)) {\n $assigned_to[$member->user_full_name] = $member->media->display_url;\n } else {\n $assigned_to[$member->user_full_name] = \"https://ui-avatars.com/api/?name=\".$member->first_name;\n }\n }\n }\n\n $cards[] = [\n 'id' => $task->id,\n 'title' => $task->subject,\n 'project_id' => $task->project_id,\n 'project' => $task->project->name,\n 'subtitle' => $task->task_id,\n 'viewUrl' => $view,\n 'viewUrlClass' => 'view_a_project_task',\n 'editUrl' => $edit,\n 'editUrlClass' => 'edit_a_project_task',\n 'deleteUrl' => $delete,\n 'deleteUrlClass' => 'delete_a_project_task',\n 'hasDescription' => !empty($task->description) ?: false,\n 'hasComments' => ($task->comments->count() > 0) ?: false,\n 'dueDate' => $task->due_date,\n 'assigned_to' => $assigned_to,\n 'tags' => [__('project::lang.'.$task->priority)],\n ];\n }\n\n //get all the card & board title for particular board(status)\n $kanban_tasks[] = [\n 'id' => $key,\n 'title' => __('project::lang.'.$key),\n 'cards' => $cards,\n ];\n }\n\n $output = [\n 'success' => true,\n 'project_tasks' => $kanban_tasks,\n 'msg' => __('lang_v1.success')\n ];\n\n return $output;\n }\n }\n\n $business_id = request()->session()->get('user.business_id');\n $users = User::forDropdown($business_id, false);\n $priorities = ProjectTask::prioritiesDropdown();\n $due_dates = ProjectTask::dueDatesDropdown();\n\n // if not admin get assigned project for filter\n $user_id = null;\n if (!$is_admin) {\n $user_id = $user['id'];\n }\n\n $projects = Project::projectDropdown($business_id, $user_id);\n\n return view('project::my_task.index')\n ->with(compact('users', 'statuses', 'priorities', 'due_dates', 'projects', 'is_admin'));\n }",
"private function getAllProjects()\n {\n $url = $this->base_uri.'project?expand=description,lead,issueTypes,url,projectKeys';\n $projects = $this->request($url);\n return $projects;\n }",
"public function getProjects(){\n $projects = Project::all()->sortBy('dead');\n return $projects;\n }",
"public function viewProjectTasks() {\n\n return $this->render('enterprise/task/project_tasks.html.twig', array(\n 'tasks' => array(\n '0' => array(\n 'titre' => 'titre',\n 'priority' => 'High',\n 'category' => 'Bug',\n 'status' => 'New',\n 'progress' => '20%',\n 'datemodif' => '20/05/2015'\n ),\n '1' => array(\n 'titre' => 'titre',\n 'priority' => 'Low',\n 'category' => 'Dev',\n 'status' => 'In Progress',\n 'progress' => '60%',\n 'datemodif' => '03/06/2004'\n ),\n '2' => array(\n 'titre' => 'titre',\n 'priority' => 'Med',\n 'category' => 'Doc',\n 'status' => 'Rejected',\n 'progress' => '20%',\n 'datemodif' => '02/08/2013'\n ),\n '3' => array(\n 'titre' => 'titre',\n 'priority' => 'Med',\n 'category' => 'Dev',\n 'status' => 'Valided',\n 'progress' => '100%',\n 'datemodif' => '02/05/2016'\n )\n )\n )\n );\n }",
"public function getListItems()\n {\n return $this->getProjects();\n }",
"public function getProjects()\n {\n return $this->hasMany(Project::class, ['type_id' => 'id']);\n }",
"public function getProjects()\n {\n return PortfolioProject::get()->filter('ParentID', $this->AllChildren()->column('ID') ?: null);\n }",
"public static function retrieveAllProjects() {\n return R::getAll('SELECT * FROM project');\n }",
"public static function index(Project $project): array\n {\n $company = $project->company;\n $tasks = $project->tasks()\n ->with('list')\n ->with('assignee')\n ->with('author')\n ->with('timeTrackingEntries')\n ->get();\n\n // the goal of the following is to first display tasks without lists,\n // and after this, tasks with lists, grouped by lists.\n // the trick is to do this with a single query, as we don’t want to do\n // multiple queries to slow down the loading speed of the page.\n\n $tasksWithoutLists = $tasks->filter(function ($task) {\n return is_null($task->project_task_list_id);\n });\n $tasksWithoutListsCollection = collect([]);\n foreach ($tasksWithoutLists as $task) {\n $tasksWithoutListsCollection->push(self::getTaskInfo($task, $company));\n }\n\n $tasksWithLists = $tasks->diff($tasksWithoutLists);\n\n // get the list of unique task list ids\n $taskLists = $project->lists;\n $tasksListCollection = collect([]);\n foreach ($taskLists as $taskList) {\n $tasksWithListsCollection = collect([]);\n\n $tasks = $tasksWithLists->filter(function ($task) use ($taskList) {\n return $task->project_task_list_id == $taskList->id;\n });\n\n foreach ($tasks as $task) {\n $tasksWithListsCollection->push(self::getTaskInfo($task, $company));\n }\n\n $tasksListCollection->push([\n 'id' => $taskList->id,\n 'title' => $taskList->title,\n 'description' => $taskList->description,\n 'tasks' => $tasksWithListsCollection,\n ]);\n }\n\n return [\n 'tasks_without_lists' => $tasksWithoutListsCollection,\n 'task_lists' => $tasksListCollection,\n ];\n }",
"public function getTasks()\n {\n $sql = \"SELECT workflow.form_steps_id FROM fs_workflow workflow\n LEFT JOIN fs_workstpes task \n ON task.work_id = workflow.form_steps_id\n WHERE workflow.form_name = '$this->wf_name'\n ORDER BY workflow.form_sequence ASC\";\n\n $query = $this->conn->query($sql);\n\n $collection = new ArrayCollection();\n\n while($row = $query->fetch_assoc()) {\n $task = new task($row['form_steps_id']);\n $collection->add($task);\n }\n \n return $collection;\n }",
"function getProjects(){\n\t\t \n\t\t $db = $this->startDB();\n\t\t $result = false;\n\t\t \n\t\t $sql = \"SELECT count(actTab.uuid) AS recCount, project_list.project_id, project_list.project_name\n\t\t FROM \".$this->penelopeTabID.\" AS actTab\n\t\t JOIN space ON actTab.uuid = space.uuid\n\t\t JOIN project_list ON space.project_id = project_list.project_id\n\t\t GROUP BY space.project_id \n\t\t \";\n\t\t \n\t\t $result = $db->fetchAll($sql);\n\t\t if($result){\n\t\t\t\t$projects = array();\n\t\t\t\tforeach($result as $row){\n\t\t\t\t\t $name = $row[\"project_name\"];\n\t\t\t\t\t $count = $row[\"recCount\"] + 0;\n\t\t\t\t\t $uuid = $row[\"project_id\"];\n\t\t\t\t\t $uri = self::projectBaseURI.$uuid;\n\t\t\t\t\t $projects[$uri] = array(\"name\" => $name, \"count\" => $count);\n\t\t\t\t}//end loop\n\t\t\t\t\n\t\t\t\t$projects = $this->orderURIs($projects);\n\t\t\t\t$this->projects = $projects;\n\t\t }//end case with results\n\t \n\t }",
"public function listProjects()\n {\n\n\t\t$data = ProjectsRepository::findByUser($_SESSION[\"uuid\"]);\n\t\treturn array(\"data\" => $data);\n\n }",
"public function getAll()\n {\n return $this->performQuery(\n $this->createUrl('project')\n );\n }",
"public function getTaskList($params = [])\n {\n $this->sendRequest(\n [\n 'methodName' => 'project.list',\n 'pool_id' => $params['pool_id'] ?? 0,\n 'limit' => $params['limit'] ?? 10,\n 'status' => $params['status'] ?? 'ACTIVE',\n 'sort' => $params['sort'] ?? '-id',\n ]\n );\n\n return $this->result;\n }",
"public function getTskProject()\n {\n return $this->tsk_project;\n }",
"public function getProject()\r\n {\r\n return $this->_params['project'];\r\n }",
"function getProjects() {\n if($this->projects === false) {\n if($this->isAdministrator() || $this->isProjectManager()) {\n $this->projects = Projects::findAll();\n } else {\n $this->projects = Projects::findByUser($this);\n } // if\n } // if\n return $this->projects;\n }",
"public function get()\n {\n return $this->tasks;\n }",
"public function getProject()\n { \n return $this->hasOne('App\\Project', 'id', 'resourse');\n }",
"public function projects()\n {\n return $this->belongsToMany('App\\Entities\\Projects\\Project', 'jobs', 'worker_id')\n ->groupBy('worker_id')\n ->groupBy('project_id');\n }",
"public function get_projects()\n {\n\n $this->db->select(\"*\");\n $this->db->from('pr_projects');\n $this->db->where('approved', 1);\n $this->db->order_by(\"id\", \"desc\");\n\n $query = $this->db->get();\n $result = $query->result();\n return $result;\n\n }",
"public function getBelongedProjects() {\n $sql = \"SELECT * FROM project p WHERE p.id IN (SELECT pc.project_id FROM project_category WHERE category_id = %d);\";\n $sql = sprintf($sql, $this->id);\n $results = self::$connection->execute($sql);\n $projects = array();\n foreach ($results as $project_arr) {\n array_push($projects, new Project($project_arr));\n }\n return $projects;\n }",
"public static function project()\n {\n return self::context()->project();\n }",
"public function getProject() {\n return $this->hasOne(Projects::className(), ['id' => 'project_id']);\n }",
"public function index()\n {\n // ->paginate(3);\n $tasks = QueryBuilder::for(Task::class)\n ->allowedIncludes(['project', 'user'])\n ->allowedFilters(['completed', 'due_date', Filter::exact('user_id'),Filter::exact('project_id')])\n ->get();\n\n\n return TaskResource::collection($tasks);\n }",
"function getProject($projectid)\n\t{\n\t\tforeach($this->Project_List as $project)\n\t\t\tif($project->getProjectID() == $projectid)\n\t\t\t\treturn $project;\n\t}",
"public function projects()\n {\n //return $this->belongsToMany('App\\Project','assignment', 'projectID','taskID');\n return $this->belongsToMany('App\\Project')->using('App\\Assignment');\n }",
"public function projects()\n {\n $result = $this->get('projects');\n\n Validator::isArray($result);\n\n return array_map(function ($project) {\n return $this->fromMantisProject($project);\n }, $result['projects']);\n }",
"public function index()\n {\n $done = $this->taskRepository->done();\n $undone = $this->taskRepository->undone();\n $projects = auth()->user()->projects()->pluck('name','id')->toArray();\n \n return view('tasks.index',compact('projects','done','undone'));\n //$table->foreign()->\n }",
"public function tasks()\n\t{\n\t\treturn $this->hasOne(Task::class,'id','task_id');\t\t\n\t}",
"public function getProjectsDetails()\n {\n $em = $this->getEntityManager();\n $qb = $em->createQueryBuilder();\n $qb->select('p.pid,n.name,c.clientName,pp.phaseName,p.lifeCycleStatus,'\n . 'p.billingStatus,pu.userName,pu.id,p.createDate,p.startDate,'\n . 'p.endDate,p.projectStatus');\n $qb->from('Vlreleases\\UserBundle\\Entity\\Projects', 'p');\n $qb->leftJoin('p.user', 'pu');\n $qb->leftJoin('p.projectName', 'n');\n $qb->leftJoin('p.client', 'c');\n $qb->leftJoin('p.phase', 'pp');\n $result = $qb->getQuery()->getResult();\n \n return $result;\n }",
"public function getProject()\n {\n return $this->project;\n }",
"public function getProject()\n {\n return $this->project;\n }",
"public function getProject()\n {\n return $this->project;\n }",
"public function actionProjecttask()\n {\n $message = \"\";\n if (RoleHelper::checkAccessControl('task', 'view')) {\n if (isset($_GET['id'])) {\n\n $model = Task::model()->findAll(\"id_project=:id\", array(':id' => $_GET['id']));\n }\n $this->render('Projecttask', array('model' => $model, 'title' => $_GET['title'], 'message' => $message));\n } else {\n $message = \"شما اجازه ی مشاهده ی تسک ها را ندارید\";\n $this->render('index', array('message' => $message));\n }\n }",
"private function getProject()\n {\n $url = $this->base_uri.\"project/\".$this->project;\n $project = $this->request($url);\n return $project;\n }",
"public function startedTasks()\n\t{\n\t\treturn $this->belongsToMany('TGLD\\Tasks\\Task', 'user_started_task', 'user_id', 'task_id')\n\t\t\t->with('project')\n\t\t\t->orderBy('priority', 'ASC')\n\t\t\t->latest();\n\t}",
"public function getProject();",
"public function getProject()\n {\n return $this->hasOne(Project::className(), ['id' => 'project_id']);\n }",
"public function getProject()\n {\n return $this->hasOne(Project::className(), ['id' => 'project_id']);\n }",
"public function projects()\n\t{\n\t\t$members = $this->hasMany('App\\Project_members', 'member_id', 'id')->get();\n\t\t$projects = new Collection();\n\n\t\tforeach ($members as $member) {\n\t\t\t$project = $member->project()->getResults();\n\n\t\t\tif ($project) {\n\t\t\t\t$projects->add ($project);\n\t\t\t}\n\t\t}\n\n\t\treturn $projects;\n\t}",
"private function getProjects($contract) {\n $projects = array();\n\n $projList = $contract->getProjects();\n\n foreach ($projList as $projectid => $prj) {\n $projects[\"$projectid\"] = array ('name' => $prj->getName());\n }\n return $projects;\n }",
"public function completedTasks()\n\t{\n\t\treturn $this->belongsToMany('TGLD\\Tasks\\Task', 'user_completed_task', 'user_id', 'task_id')\n\t\t\t->with('project')\n\t\t\t->orderBy('priority', 'ASC')\n\t\t\t->latest();\n\t}",
"public function show()\n {\n $project = $this->getProject();\n $search = $this->helper->projectHeader->getSearchQuery($project);\n\n if ($this->request->getIntegerParam('show_subtasks') !== 0 ||\n $this->request->getIntegerParam('hide_subtasks') !== 0 ||\n $this->request->getStringParam('direction') !== '' ||\n $this->request->getStringParam('order') !== '') {\n $this->checkReusableGETCSRFParam();\n }\n\n if ($this->request->getIntegerParam('show_subtasks')) {\n session_set('subtaskListToggle', true);\n } elseif ($this->request->getIntegerParam('hide_subtasks')) {\n session_set('subtaskListToggle', false);\n }\n\n if ($this->userSession->hasSubtaskListActivated()) {\n $formatter = $this->taskListSubtaskFormatter;\n } else {\n $formatter = $this->taskListFormatter;\n }\n\n list($order, $direction) = $this->userSession->getListOrder($project['id']);\n $direction = $this->request->getStringParam('direction', $direction);\n $order = $this->request->getStringParam('order', $order);\n $this->userSession->setListOrder($project['id'], $order, $direction);\n\n $paginator = $this->paginator\n ->setUrl('TaskListController', 'show', array('project_id' => $project['id'], 'csrf_token' => $this->token->getReusableCSRFToken()))\n ->setMax(30)\n ->setOrder($order)\n ->setDirection($direction)\n ->setFormatter($formatter)\n ->setQuery($this->taskLexer\n ->build($search)\n ->withFilter(new TaskProjectFilter($project['id']))\n ->getQuery()\n )\n ->calculate();\n\n $this->response->html($this->helper->layout->app('task_list/listing', array(\n 'project' => $project,\n 'title' => $project['name'],\n 'description' => $this->helper->projectHeader->getDescription($project),\n 'paginator' => $paginator,\n )));\n }",
"private function term_project() {\n $matched = false;\n $project = array();\n\n $line = $this->_lines->cur();\n\n // special default project zero, for orphaned tasks and the like\n if ($this->_index == 0) {\n $text = \\tpp\\lang('orphaned');\n $note = $this->empty_note();\n $matched = true;\n $line = '';\n\n } elseif (preg_match($this->term['project'], $line , $match) > 0) {\n $this->_lines->move();\n\n $text = $match[1];\n $note = $this->term_note();\n $matched = true;\n }\n\n if ($matched) {\n $project = (object) array('type' => 'project', 'text' => $text, 'index' => $this->_index, 'note' => $note, 'raw' => $line);\n $this->_index++;\n\n $project->children = $this->match_any(array('term_task', 'term_info', 'term_empty'), array());\n return $project;\n } else {\n return false;\n }\n }",
"public function getProjectsAction(){\n\n $projects = $this->getDoctrine()->getRepository(\"GithubProjectsBundle:Project\")->findAll();\n return array('projects' => $projects);\n }",
"public function projects()\n {\n return $this->hasMany(Project::class);\n }",
"public function projects()\n {\n return $this->hasMany(Project::class);\n }",
"public function projects()\n {\n return $this->hasMany(Project::class);\n }",
"public function projects()\n {\n return $this->hasMany(Project::class);\n }",
"public function showTasks($projectID)\n {\n $tasks = DB::table('tasks')\n ->where('projectID', '=', $projectID)\n ->get();\n\n $project = DB::table('projects')\n ->where('id', '=', $projectID)\n ->get();\n // dd($tasks);\n return view('project/tasks.index', ['tasks' => $tasks, 'project' => $project] );\n }",
"public function get_projectlist($inc_global = 0, $gid = null, $num = 0, $start = 0)\n {\n $return = array();\n $q_r = '';\n $q_l = 'SELECT `id`, `title`, `uid` FROM '.$this->Tbl['cal_project'].' WHERE 1=1';\n if (!empty($gid)) {\n $q_l .= ' AND `gid`='.doubleval($gid);\n }\n $q_l .= ' AND `uid` '.($inc_global ? ' IN('.$this->uid.',0)' : '='.$this->uid);\n if ($num > 0) {\n $q_r .= ' LIMIT ' . doubleval($start) . ',' . doubleval($num);\n }\n $qid = $this->query($q_l . ' GROUP BY id ORDER BY `uid`, `title`' . $q_r);\n while ($line = $this->assoc($qid)) {\n $return[] = $line;\n }\n return $return;\n }",
"function all_projects(){\n /**\n * @var \\AWorDS\\App\\Models\\Project $project\n */\n $project = $this->set_model();\n $logged_in = $project->login_check();\n if($logged_in){\n $this->set('logged_in', $logged_in);\n $this->set('active_tab', 'projects');\n $this->set('projects', $project->getAll());\n }else $this->redirect();\n }",
"private function getProjectCandidates($contract) {\n $candidates = array();\n $team = TeamCache::getInstance()->getTeam($contract->getTeamid());\n\n $projList = $team->getProjects();\n $currentProjects = $contract->getProjects();\n\n foreach ($projList as $projectid => $name) {\n if (($team->isSideTasksProject($projectid)) &&\n (!array_key_exists($projectid, $currentProjects))) {\n $candidates[$projectid] = $name;\n }\n }\n return $candidates;\n }",
"public static function getTasks($params)\r\n {\r\n $database = new Database();\r\n $dbConn = $database->getConnection();\r\n\r\n // select all query\r\n $query = '';\r\n\r\n $query .= \"SELECT c.company_name,p.project_name, u1.nickname as assigned_user_nickname,u2.nickname as creator_user_nickname, COUNT(n.ID) as notes_count, t.* FROM tasks t LEFT JOIN users u1 ON u1.ID=t.assigned_user_id LEFT JOIN users u2 ON u2.ID=t.creator_user_id INNER JOIN projects p ON t.related_table_id=p.ID INNER JOIN companies c ON c.ID=p.company_id LEFT JOIN notes n ON t.ID=n.related_table_id AND n.related_table='tasks' WHERE t.related_table='projects' AND t.status = 'not_started'\";\r\n\r\n if (isset($params['assignedUserId']) && is_numeric($params['assignedUserId']))\r\n $query .= \" AND t.assigned_user_id=\" . $params['assignedUserId'];\r\n\r\n $query .= \" GROUP BY t.ID\";\r\n $query .= \" ORDER BY t.due_date ASC\";\r\n //$query .= \" LIMIT 1000, 500\";\r\n\r\n // prepare query statement\r\n $stmt = $dbConn->prepare($query);\r\n\r\n // execute query\r\n $stmt->execute();\r\n\r\n $numRows = $stmt->rowCount();\r\n\r\n $tasksArray = array();\r\n\r\n if ($numRows > 0) {\r\n // retrieve our table contents\r\n // fetch() is faster than fetchAll()\r\n // http://stackoverflow.com/questions/2770630/pdofetchall-vs-pdofetch-in-a-loop\r\n\r\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\r\n $taskItem = array(\r\n 'ID' => $row['ID'],\r\n 'title' => $row['title'],\r\n 'description' => $row['description'],\r\n 'assignedUserNickname' => $row['assigned_user_nickname'],\r\n 'creatorUserNickname' => $row['creator_user_nickname'],\r\n 'projectName' => $row['project_name'],\r\n 'companyName' => $row['company_name'],\r\n 'dueDate' => $row['due_date'],\r\n 'notesCount' => $row['notes_count']\r\n\r\n );\r\n\r\n array_push($tasksArray, $taskItem);\r\n }\r\n }\r\n\r\n return $tasksArray;\r\n }",
"public function index()\n\t{\n\t\treturn Project::all();\n\t}",
"public function projects() {\n return $this->hasMany(Project::class);\n }",
"public function getProjectInformation() {\n $query = \"select * from projects\";\n $result = mysql_query($query);\n return $result;\n }",
"public function getTasks()\n {\n return $this->tasks;\n }",
"public function projects()\n {\n return $this->hasMany('App\\Project');\n }"
] | [
"0.7634686",
"0.75420916",
"0.73413384",
"0.7323148",
"0.7288481",
"0.72396207",
"0.71639544",
"0.71624696",
"0.71464735",
"0.70548004",
"0.7042036",
"0.69417673",
"0.6915769",
"0.68842375",
"0.68442404",
"0.6798166",
"0.67946637",
"0.67923003",
"0.6785621",
"0.6777376",
"0.67710114",
"0.67645335",
"0.6761506",
"0.6756673",
"0.675318",
"0.6727673",
"0.67215836",
"0.67187846",
"0.66831124",
"0.6672466",
"0.66478115",
"0.66446346",
"0.6632975",
"0.6632975",
"0.6552916",
"0.65448266",
"0.6528032",
"0.6510909",
"0.6508388",
"0.6504052",
"0.64898616",
"0.64579517",
"0.6444898",
"0.6440806",
"0.64312154",
"0.64275026",
"0.6375924",
"0.63719666",
"0.6362202",
"0.6357956",
"0.6356422",
"0.63543904",
"0.6347622",
"0.63262117",
"0.63036865",
"0.63035226",
"0.6299225",
"0.6285404",
"0.62740165",
"0.6266628",
"0.6248242",
"0.6244094",
"0.6239409",
"0.6237748",
"0.6234689",
"0.6226659",
"0.6211939",
"0.62010807",
"0.61909276",
"0.61865175",
"0.61842334",
"0.6179822",
"0.6179751",
"0.6179751",
"0.6179751",
"0.6176317",
"0.6171239",
"0.6170998",
"0.6164886",
"0.61603945",
"0.61603945",
"0.6158789",
"0.6151823",
"0.61460334",
"0.61429447",
"0.6141198",
"0.6134966",
"0.6126081",
"0.6126081",
"0.6126081",
"0.6126081",
"0.6124816",
"0.6113378",
"0.6111185",
"0.60988533",
"0.60982186",
"0.60972124",
"0.6094448",
"0.60941714",
"0.60886264",
"0.6086128"
] | 0.0 | -1 |
Method for displaying the location his inventory. | public function index(Item $items): Renderable
{
$items = $items->userLocation()->paginate();
return view('inventory.coordinator.index', compact('items'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(InventoryLocation $location)\n {\n return view('ims::inventory_location.show', compact('location'));\n }",
"public function show(Inventory $inventory)\n {\n //\n }",
"public function show()\n {\n return view('inventory::show');\n }",
"function showLocations() {\n if(isset($_REQUEST['newloc'])) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Location.php');\n $loc = new Sysinventory_Location;\n $loc->description = $_REQUEST['description'];\n $loc->save();\n }else if (isset($_REQUEST['delloc'])) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Location.php');\n $loc = new Sysinventory_Location;\n $loc->id = $_REQUEST['id'];\n $loc->delete();\n }\n\n // set up some stuff for the page template\n $tpl = array();\n $tpl['PAGE_TITLE'] = 'Edit Locations';\n $tpl['HOME_LINK'] = PHPWS_Text::moduleLink('Back to menu','sysinventory');\n\n // create the list of locations and stick it in the template array\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Location.php');\n $locList = Sysinventory_Location::generateLocationList();\n $tpl['PAGER'] = $locList;\n\n // make the form for adding a new location\n $form = new PHPWS_Form('add_location');\n $form->addText('description');\n $form->setLabel('description','Description');\n $form->addSubmit('submit','Create Location');\n $form->setAction('index.php?module=sysinventory&action=edit_locations');\n $form->addHidden('newloc','add');\n\n $form->mergeTemplate($tpl);\n\n $template = PHPWS_Template::process($form->getTemplate(),'sysinventory','edit_location.tpl');\n\n Layout::addStyle('sysinventory','style.css');\n Layout::add($template);\n\n }",
"function showLocations() {\n if(isset($_REQUEST['newloc'])) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Location.php');\n $loc = new Sysinventory_Location;\n $loc->description = $_REQUEST['description'];\n $loc->save();\n }else if (isset($_REQUEST['delloc'])) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Location.php');\n $loc = new Sysinventory_Location;\n $loc->id = $_REQUEST['id'];\n $loc->delete();\n }\n\n // set up some stuff for the page template\n $tpl = array();\n $tpl['PAGE_TITLE'] = 'Edit Locations';\n $tpl['HOME_LINK'] = PHPWS_Text::moduleLink('Back to menu','sysinventory');\n\n // create the list of locations and stick it in the template array\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Location.php');\n $locList = Sysinventory_Location::generateLocationList();\n $tpl['PAGER'] = $locList;\n\n // make the form for adding a new location\n $form = new PHPWS_Form('add_location');\n $form->addText('description');\n $form->setLabel('description','Description');\n $form->addSubmit('submit','Create Location');\n $form->setAction('index.php?module=sysinventory&action=edit_locations');\n $form->addHidden('newloc','add');\n\n $form->mergeTemplate($tpl);\n\n $template = PHPWS_Template::process($form->getTemplate(),'sysinventory','edit_location.tpl');\n\n Layout::addStyle('sysinventory','style.css');\n Layout::add($template);\n\n }",
"function output_inventory_screen($member_id)\n{\n\tif ((is_null($member_id)) || ($member_id==-1)) $member_id=get_member();\n\n\t$pic='';\n\t$avatar='';\n\tif ($member_id>$GLOBALS['FORUM_DRIVER']->get_guest_id())\n\t{\n\t\t$username=$GLOBALS['FORUM_DRIVER']->get_username($member_id);\n\t\tif (is_null($username)) $username=do_lang('UNKNOWN');\n\t\tif (method_exists($GLOBALS['FORUM_DRIVER'],'get_member_photo_url')) $pic=$GLOBALS['FORUM_DRIVER']->get_member_photo_url($member_id);\n\t\tif (method_exists($GLOBALS['FORUM_DRIVER'],'get_member_avatar_url')) $avatar=$GLOBALS['FORUM_DRIVER']->get_member_avatar_url($member_id);\n\t} else\n\t{\n\t\t$username=$GLOBALS['SITE_DB']->query_value('w_realms','troll_name',array('id'=>(-$member_id-1)));\n\t}\n\t$title=get_page_title('W_INVENTORY_OF',true,array(escape_html($username)));\n\t$health=$GLOBALS['SITE_DB']->query_value('w_members','health',array('id'=>$member_id));\n\n\t$rows=$GLOBALS['SITE_DB']->query_select('w_inventory',array('*'),array('item_owner'=>$member_id));\n\t$inventory=new ocp_tempcode();\n\tforeach ($rows as $myrow)\n\t{\n\t\t$item_rows=$GLOBALS['SITE_DB']->query_select('w_itemdef',array('*'),array('name'=>$myrow['item_name']));\n\t\tif (!array_key_exists(0,$item_rows)) continue;\n\t\t$item_row=$item_rows[0];\n\t\t$pic_url=$item_row['picture_url'];\n\t\tif ((url_is_local($pic_url)) && ($pic_url!='')) $pic_url=get_custom_base_url().'/'.str_replace(' ','%20',$pic_url);\n\t\t$description=$item_row['description'];\n\t\t$bribable=$item_row['bribable'];\n\t\t$healthy=$item_row['healthy'];\n\n\t\t$width='';\n\t\tif ($pic_url!='')\n\t\t{\n\t\t\t$ext=strtolower(substr($pic_url,strlen($pic_url)-4));\n\t\t\t$mypic=false;\n\t\t\tif (($ext=='jpeg') || ($ext=='.jpg')) $mypic=@imagecreatefromjpeg($pic_url);\n\t\t\tif ($ext=='.png') $mypic=@imagecreatefrompng($pic_url);\n\t\t\tif ((function_exists('imagecreatefromgif')) && ($ext=='.gif')) $mypic=@imagecreatefromgif($pic_url);\n\t\t\tif (($mypic===false) || (imagesx($mypic)>200)) $width='width: 200px';\n\t\t}\n\n\t\t$inventory->attach(do_template('W_INVENTORY_ITEM',array('_GUID'=>'6850866532d2e5a65ca1b74f5ed8e49a','HEALTHY'=>$healthy==1,'BRIBABLE'=>$bribable==1,'WIDTH'=>$width,'PIC_URL'=>$pic_url,'ITEM_NAME'=>$myrow['item_name'],'DESCRIPTION'=>$description,'ITEM_COUNT'=>integer_format($myrow['item_count']))));\n\t}\n\n\treturn do_template('W_INVENTORY_SCREEN',array('_GUID'=>'74dd29919831eb75212b9805511fdca8','TITLE'=>$title,'USERNAME'=>$username,'HEALTH'=>integer_format($health),'AVATAR'=>$avatar,'PIC'=>$pic,'INVENTORY'=>$inventory));\n}",
"public function index()\n {\n $inventoryLocations = $this->inventoryLocationService->getAllLocationsExceptDefaults();\n return view('ims::inventory_location.index', compact('inventoryLocations'));\n }",
"public function show($id)\n {\n $wine_location = InventoryLocation::findOrFail($id);\n\n return view('backend.wine.inventory_locations.show', compact('wine_location'));\n }",
"public function show(Location $location)\n {\n //\n }",
"public function show(Location $location)\n {\n //\n }",
"public function show(Location $location)\n {\n //\n }",
"public function index()\n {\n $inventory_locations = InventoryLocation::paginate(30);\n\n return view('backend.wine.inventory_locations.index', compact('inventory_locations'));\n }",
"public function actionWalmartproductinventoryinfo()\n {\n $sku = false;\n $productdata = \"add sku on url like ?sku=product_sku\";\n if (isset($_GET['sku'])) {\n $sku = $_GET['sku'];\n }\n $merchant_id = MERCHANT_ID;\n $config = Data::getConfiguration($merchant_id);\n $walmartHelper = new Walmartapi($config['consumer_id'], $config['secret_key']);\n if ($sku) {\n $productdata = $walmartHelper->getInventory($sku);\n }\n\n print_r($productdata);\n die;\n }",
"public function show(Inventory $inventory)\n {\n return view('inventory.show');\n }",
"public function show(ProductLocation $productLocation)\n {\n //\n }",
"public function index(){\n $this->smarty->display('admin/waterbar/inventory.tpl');\n }",
"public function getLocationIndex()\n {\n return view('admin.world_expansion.locations', [\n 'locations' => Location::orderBy('sort', 'DESC')->get()\n ]);\n }",
"public function index() {\n return view($this->view . 'inventory', ['equipments' => Equipment::all()]);\n }",
"public function edit(InventoryLocation $location)\n {\n $departments = $this->departmentService->getDepartmentsForDropdown();\n return view('ims::inventory_location.edit', compact('location', 'departments'));\n }",
"public function show($id)\n {\n return view('inventory::show');\n }",
"public function index()\n {\n return view('inventory', [\n 'categories' => Category::all(),\n 'states' => State::all()->sortBy('id'),\n 'conditions' => Condition::all()->sortBy('id'),\n 'products' => \\Auth::user()->products,\n ]);\n }",
"function showLocationBox () {\n\t\t$template['list'] = $this->cObj2->getSubpart($this->templateCode,'###TEMPLATE_LOCATIONBOX###');\n\t\t$markerArray = $this->helperGetLLMarkers(array(), $this->conf['location.']['LL'], 'location');\n\n\t\t$content = $this->cObj2->substituteMarkerArrayCached($template['list'],$markerArray);\n\t\treturn $content;\n\t}",
"public function showIngredient($identifier);",
"public function show(location $location)\n {\n //\n }",
"public function locationshowAction()\n {\n $em = $this->getDoctrine()->getManager();\n $countries = $em->getRepository('adminBundle:countries')->findAll();\n return $this->render(':Location:index.html.twig', array(\n 'countries' => $countries,\n ));\n }",
"public function index()\n {\n $products = Product::all();\n\n return view('inventory.showInventory', ['products' => $products]);\n }",
"public function show($id)\n {\n return Inventory::find($id);\n }",
"protected function toString(){\n echo '<br>The item name: '.$this->getName().'</br>The item price is : '.$this->getPrice();\n }",
"public function index()\n {\n $inventories = Inventory::orderBy('id', 'asc')->paginate(5);\n return view('workcenter.inventory.index', compact('inventories'));\n }",
"public function index()\n {\n $user = auth()->user();\n if(!$user->hasPermissionTo('inventory all items'))\n {\n return redirect(route('home'));\n }\n\t\t$inventories = Inventory::where('branch_id', $user->branch_id)->orderBy('id','desc') ->get();\n\n return view('staff.inventory.index', [\n 'items' => $inventories,\n 'items_count' => count($inventories),\n 'type' => 'all',\n ]);\n }",
"public function edit()\n {\n return view('inventory::edit');\n }",
"public function show($id)\n {\n $inventory = Inventory::findOrFail($id);\n return view('workcenter.inventory.show', compact('inventory'));\n }",
"public function show(vendorequipment $vendorequipment)\n {\n //\n }",
"public static function printLocation()\n { \n echo '\n <div id=\"navi_location\">\n <p class=\"pfeil\">Sie befinden sich hier: '.self::$siteName.self::$subNav.self::$subSubNav.'</p>\n </div>';\n }",
"public function index()\n {\n //\n $inventory = Inventory::all();\n\n return view('inventory.index')->with('inventory',$inventory);\n }",
"public static function manageinventory()\n\t\t{\n\t\t\t$stageDBO = DatabaseObjectFactory::build('Material');\n\t\t\t$arr = ['material_id','unit_price'];\n\t\t\t$materials = $stageDBO->getRecords($arr);\n\t\t\t\n\t\t\t$stageDBO = DatabaseObjectFactory::build('craft');\n\t\t\t$arr = ['craft_id','calculated_qoh'];\n\t\t\t$stageDBO->SetJoin(['[><]item' => 'item_id']);\n\t\t\t$crafts = $stageDBO->getRecords($arr);\n\n\t\t\t$stageDBO = DatabaseObjectFactory::build('return_details');\n\t\t\t$stageDBO->SetJoin(['[><]item' => 'item_id']);\n\t\t\t$arr = ['return_id','item_id','qty','current_price'];\n\t\t\t$returns = $stageDBO->getRecords($arr);\n\n\t\t\tinclude('views/pages/manageinventory.php');\n\t\t}",
"public function get_inventory_by_location_summary()\n\t{\n\t\t$this->db->select(\n\t\t\t$this->datas_table.\".location_id, \".\n\t\t\t$this->locations_table.\".code, \".\n\t\t\t$this->locations_table.\".name, \".\n\t\t\t\"COUNT(\".$this->datas_table.\".location_id) AS total\"\n\t\t);\n\t\t$this->db->from($this->datas_table);\n\n\t\t// join categories table\n\t\t$this->db->join(\n\t\t\t$this->locations_table,\n\t\t\t$this->datas_table.'.location_id = '.$this->locations_table.'.id',\n\t\t\t'left');\n\n\t\t$this->db->where($this->datas_table.'.deleted', '0');\n\n\t\t$this->db->group_by($this->datas_table.'.location_id');\n\n\t\t$datas = $this->db->get();\n\t\treturn $datas;\n\t}",
"public function index()\n {\n if (!has_permission('inventory_items', '', 'view')) {\n access_denied('Inventory Items');\n } \n\t\t$data['values'] = $this->inventory_model->get('tblcustom', $objArr=TRUE);\t\t\n\t\t$data['accounts'] = $this->inventory_model->get('tblclients', $objArr=TRUE);\n\t\t\n\t\t$this->load->view('admin/inventory/manage', $data);\n\t}",
"public function index()\n {\n $user = Auth::user();\n return view('inventory/list',compact('user'));\n }",
"public function view_item(){\n\t\treturn view(mProvider::$view_prefix.mProvider::$view_prefix_priv.'stock_view');\n\t}",
"public function getIndex()\n\t{\n\t\treturn view('inventory.list')->with($this->menuKey, $this->menuValue);\n\t}",
"function view_items() {\n $items = \\Model\\Item::all();\n \n $this->SC->CP->load_view('stock/view_items',array('items'=>$items));\n }",
"public function show(Region $region)\n {\n //\n }",
"public function show(Region $region)\n {\n //\n }",
"public function index()\n {\n return Inventory::all();\n }",
"function displayWarehouses($num, $addr, $city, $state, $zip, $quant) {\n echo \"\n <h2>Warehouse #\" . $num . \"</h2>\n <ul class='summaryList'>\n <li>Street Address: <i>'\" . $addr . \"'</i></li>\n <li>City: <i>'\" . $city . \"'</i></li>\n <li>State: <i>'\" . $state . \"'</i></li>\n <li>Zip-Code: <i>'\" . $zip . \"'</i></li>\n <li>Quantity Shipping: <i>'\" . $quant . \"'</i></li>\n </ul>\n \";\n }",
"public function show(LocationUser $locationUser)\n {\n //\n }",
"public function show()\n {\n \t$locations = Locations::orderBy('city', 'ASC')->get();\n\n \t$mr = Hours::orderBy('day', 'ASC')->wherelocations_id(1)->get();\n \t$gf = Hours::orderBy('day', 'ASC')->wherelocations_id(2)->get();\n \t$nm = Hours::orderBy('day', 'ASC')->wherelocations_id(3)->get();\n \t$rm = Hours::orderBy('day', 'ASC')->wherelocations_id(4)->get();\n \t$wr = Hours::orderBy('day', 'ASC')->wherelocations_id(5)->get();\n return View::make('locations')\n \t\t\t->with('locations', $locations)\n \t\t\t->with('mr', $mr)\n \t\t\t->with('gf', $gf)\n \t\t\t->with('nm', $nm)\n \t\t\t->with('rm', $rm)\n \t\t\t->with('wr', $wr);\n }",
"public function getInventorySnapshot()\n {\n return $this->inventory_snapshot;\n }",
"public function showItemsToSell(){\n $data = $this->getListing();\n\n return view('sales.show-items')->with(['listing' => $data]);\n }",
"function LocationList()\n\t{\tif ($this->id)\n\t\t{\techo \"<table><tr class='newlink'><th colspan='2'><a href='locationedit.php?city=\", $this->id, \"'>add new location</a></th></tr>\\n<tr><th>Location name</th><th>Actions</th></tr>\\n\";\n\t\t\tif ($locations = $this->GetLocations())\n\t\t\t{\tforeach ($locations as $location)\n\t\t\t\t{\t\n\t\t\t\t\techo \"<tr>\\n<td>\", $this->InputSafeString($location->details[\"loctitle\"]), \"</td>\\n<td><a href='locationedit.php?id=\", $location->id, \"'>edit</a>\";\n\t\t\t\t\tif ($histlink = $this->DisplayHistoryLink(\"locations\", $location->id))\n\t\t\t\t\t{\techo \" | \", $histlink;\n\t\t\t\t\t}\n\t\t\t\t\tif ($location->CanDelete())\n\t\t\t\t\t{\techo \" | <a href='locationedit.php?id=\", $location->id, \"&delete=1'>delete</a>\";\n\t\t\t\t\t}\n\t\t\t\t\techo \"</td>\\n</tr>\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t\techo \"</table>\\n\";\n\t\t}\n\t}",
"public function index()\n {\n return view('purchases.receive-inventory');\n }",
"public function showInventory($movies_array) {\r\n\t\tprint \"\r\n\t\t<div class='inventory_table'>\r\n\t\t<div class='content'>\r\n\t\t<table>\r\n\t\t<caption>Movies Inventory</caption>\r\n\t\t<tr>\r\n\t\t<th>Movie ID</th>\r\n\t\t<th>Title</th>\r\n\t\t<th>Inventory DVD</th>\r\n\t\t<th>Inventory BluRay</th>\r\n\t\t</tr>\r\n\t\t\";\r\n\t\tif (!empty($movies_array)) {\r\n\t\t\tforeach ($movies_array as $movies) {\r\n\t\t\t\t$this->showInventoryInHtml($movies);\r\n\t\t\t}\r\n\t\t}\r\n\t\tprint \"\r\n\t\t</table>\r\n\t\t</div>\r\n\t\t</div>\r\n\t\t\";\r\n\t}",
"public function edit($id)\n {\n $wine_location = InventoryLocation::findOrFail($id);\n\n return view('backend.wine.inventory_locations.edit', compact('wine_location'));\n }",
"public function equipment()\n {\n return view('site_preparation.equipment');\n }",
"public function show(equipo $equipo)\n {\n //\n }",
"public function show($id)\n {\n //\n //$equipments = Equipment::EquipmentsAll();\n $data = Inventory::InventoryDetails($id);\n\n $department_id = Auth::user()->department_id;\n $messages = Application::getMessages($department_id);\n return view('inventories.show', compact('messages', 'data'));\n }",
"public function show(geoip $geoip)\n {\n //\n }",
"public function edit(Inventory $inventory)\n {\n //\n }",
"public function edit(Inventory $inventory)\n {\n //\n }",
"public function show(vendorequipmendetails $vendorequipmendetails)\n {\n //\n }",
"function index()\n\t{\n $logged_in = $this->session->userdata('logged_in');\n if(!$logged_in){\n redirect('/login');\n exit();\n }\n \n // Kids would be bored by this\n $helperid = $this->session->userdata('userid');\n if($this->User_model->is_child($helperid)){\n die(\"People with 'child' level permissions would be bored to death by this.\");\n }\n \n\t\t$num_items = $this->Item_model->get_item_count(1);\n $items = $this->Item_model->get_item_range(0,$num_items,1);\n\n $data = array(\n \"picture\" => $this->session->userdata['picture'],\n \"listitems\" => $items\n );\n\n $this->load->view('inventory', $data);\n }",
"function block_core_navigation_get_menu_items_at_location($location)\n {\n }",
"public function index()\n\t{\n\t\t$data['item']=$this->Inventory_stock_model->getItem();\n\t\t$data['location']=$this->Inventory_stock_model->getLocation();\n\t\t$data['warehouse']=$this->Inventory_stock_model->getInventory();\n\t\t$data['total']=$this->Inventory_stock_model->total();\n\n\t\t$this->load->view('reports/inventory_stock_hand',$data);\t\n\t}",
"public function show(Ingredient $ingredient)\n {\n //\n }",
"public function inventory()\n{\n $vendor_product=vendorproduct::where('user_id','=',Auth::user()->id)->get();\n\n return View::make('vendors.product.inventory' , compact('vendor_product')); \n}",
"public function show(){\n $data=$this->cart->contents();\n echo \"<pre>\";\n print_r($data);\n echo \"</pre>\";\n\t}",
"function storeEquipment($store_id, $journey_id, $character_id, $player_id) {\n\t\n\t\taddToDebugLog(\"manageEquipment(), Function Entry - supplied parameters: Player ID: \" . $player_id . \"; Journey ID: \" . $journey_id . \"; Character ID: \" . $charcter_id . \"; Store ID: \" . $store_id . \", INFO\");\n\t\n\t\t// Get store name\n\t\t$store_name = getStoreName($store_id);\n\t\n\t\techo \"<table cellpadding=3 cellspacing=0 border=1>\";\n\t\techo \"<tr><td colspan=5 align=center><h2>For Sale</h2></tr>\";\n\t\techo \"<tr bgcolor=#bbb><td>Item<td align=center>Weight<td align=center>Cost<td align=center>Buy</tr>\";\n\t\n\t\tgetStoreContentsBySlot($store_id, $journey_id, $character_id, $player_id, 'chest');\n\t\tgetStoreContentsBySlot($store_id, $journey_id, $character_id, $player_id, 'head');\n\t\tgetStoreContentsBySlot($store_id, $journey_id, $character_id, $player_id, 'legs');\n\t\tgetStoreContentsBySlot($store_id, $journey_id, $character_id, $player_id, 'shield');\n\t\tgetStoreContentsBySlot($store_id, $journey_id, $character_id, $player_id, 'weapon');\n\t\tgetStoreContentPotions($store_id, $journey_id, $character_id, $player_id);\n\t\tgetStoreContentPets($store_id, $journey_id, $character_id, $player_id);\n\t\n\t\techo \"</table>\";\n\t\n\t}",
"public function show(Location $location)\n {\n return view('locations.show',['location' => $location]);\n }",
"public function location_edit() {\n\t\treturn view( 'provider.location.index' );\n\t}",
"public function show($id)\n\t{\n\n\t\tif($id == 'search')\n\t\t{\n\t\t\treturn $this->searchView();\n\t\t}\n\n\n\t\tif(Request::ajax())\n\t\t{\n\t\t\treturn json_encode(\n\t\t\t\tInventory::where('id','=',$id)\n\t\t\t\t\t\t\t\t->with('itemtype')\n\t\t\t\t\t\t\t\t->select('id','itemtype_id','brand','model','details','warranty','unit','quantity','profileditems')\n\t\t\t\t\t\t\t\t->first()\n\t\t\t\t\t);\n\t\t}\n\n\t\treturn view('inventory.item.show');\n\t}",
"public function retrieve_inventory()\n {\n if (Authenticate::is_player()) {\n if (isset($_POST['token']) && Authenticate::is_valid_token($_POST['token'])) {\n $this->model_product = Product::getInstance();\n $this->model_material = Material::getInstance();\n $this->model_asset = Asset::getInstance();\n\n $product = $this->model_product->get_player_product();\n $material = $this->model_material->get_player_material();\n $asset = $this->model_asset->get_player_asset();\n\n $binding = array(\n \"result_var\" => \"session_ready\",\n \"product_var\" => json_encode($product, JSON_PRETTY_PRINT),\n \"material_var\" => json_encode($material, JSON_PRETTY_PRINT),\n \"asset_var\" => json_encode($asset, JSON_PRETTY_PRINT)\n );\n\n binding_data($binding);\n } else {\n transport(\"error404\");\n }\n } else {\n $binding = array(\"result_var\" => \"no_session\");\n binding_data($binding);\n }\n }",
"public function show($id)\n {\n $warehouse=InventoryWarehouse::findOrFail($id);\n $varieties=$warehouse->varieties()->get();\n $name=[];\n $unit=[];\n foreach ($varieties as $variety){\n $name[$variety->pivot->product_variety_id]=InventoryProductVariety::find($variety->pivot->product_variety_id)\n ->products()->pluck('name');\n $unit[$variety->pivot->product_variety_id]=InventoryProductVariety::find($variety->pivot->product_variety_id)\n ->products()->pluck('default_uom');\n\n }\n return view('warehouse.show',compact('name','warehouse','varieties','unit'));\n\n }",
"function imprint_location(){\n include (__PROMOPATH__.\"admin/imprint-locations.php\");\n }",
"public function overview() {\r\n\r\n // load model\r\n require_once APP_PATH . '/models/LocationsModel.php';\r\n\r\n // get all locations\r\n $locationsModel = new LocationsModel();\r\n $locations = $locationsModel->getAll();\r\n\r\n // show views\r\n loadView('theme/header');\r\n loadView('locations/overview', [\r\n 'locations' => $locations,\r\n ]);\r\n loadView('theme/footer');\r\n }",
"public function create()\n {\n $inventory_locations = InventoryLocation::paginate(30);\n \n return view('backend.wine.inventory_locations.create', compact('inventory_locations'));\n }",
"public function render()\n {\n return view('adminhub::livewire.components.products.variants.editing.inventory')\n ->layout('adminhub::layouts.base');\n }",
"public function inventory()\n\t{\n\t\t$list = array();\n\n\t\tif (count($this->items) > 0)\n\t\t{\n\t\t\tforeach ($this->items as $item)\n\t\t\t{\n\t\t\t\t$list[] = array(\n\t\t\t\t\t'id' => $item->id,\n\t\t\t\t\t'name' => $item->name(),\n\t\t\t\t\t'price' => $item->parameter,\n\t\t\t\t\t'img' => $item->img(),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn $list;\n\t}",
"function calendar_display_location_list() {\n return 1;\n }",
"public function isInInventorySection() {\n if (Mage::app()->getRequest()->getParam('inventoryplus') == '1') {\n return true;\n }\n return false;\n }",
"public function show(Inventario $inventario)\n {\n //\n }",
"public function setVanilla() {\n\t\t$this->locations[\"Altar\"]->setItem(Item::get('MasterSword'));\n\t\t$this->locations[\"Uncle\"]->setItem(Item::get('L1SwordAndShield'));\n\t\t$this->locations[\"[cave-034] Hyrule Castle secret entrance\"]->setItem(Item::get('Lamp'));\n\t\t$this->locations[\"[cave-018] Graveyard - top right grave\"]->setItem(Item::get('Cape'));\n\t\t$this->locations[\"[cave-047] Dam\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"[cave-040] Link's House\"]->setItem(Item::get('Lamp'));\n\t\t$this->locations[\"[cave-031] Tavern\"]->setItem(Item::get('Bottle'));\n\t\t$this->locations[\"[cave-026] chicken house\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"[cave-044] Aginah's cave\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"[cave-035] Sahasrahla's Hut [left chest]\"]->setItem(Item::get('FiftyRupees'));\n\t\t$this->locations[\"[cave-035] Sahasrahla's Hut [center chest]\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"[cave-035] Sahasrahla's Hut [right chest]\"]->setItem(Item::get('FiftyRupees'));\n\t\t$this->locations[\"[cave-021] Kakariko well [top chest]\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"[cave-021] Kakariko well [left chest row of 3]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-021] Kakariko well [center chest row of 3]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-021] Kakariko well [right chest row of 3]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-021] Kakariko well [bottom chest]\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"[cave-022-B1] Thief's hut [top chest]\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"[cave-022-B1] Thief's hut [top left chest]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-022-B1] Thief's hut [top right chest]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-022-B1] Thief's hut [bottom left chest]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-022-B1] Thief's hut [bottom right chest]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-016] cave under rocks west of Santuary\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"[cave-050] cave southwest of Lake Hylia [bottom left chest]\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"[cave-050] cave southwest of Lake Hylia [top left chest]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-050] cave southwest of Lake Hylia [top right chest]\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"[cave-050] cave southwest of Lake Hylia [bottom right chest]\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"[cave-051] Ice Cave\"]->setItem(Item::get('IceRod'));\n\t\t$this->locations[\"Bottle Vendor\"]->setItem(Item::get('Bottle'));\n\t\t$this->locations[\"Sahasrahla\"]->setItem(Item::get('PegasusBoots'));\n\t\t$this->locations[\"Magic Bat\"]->setItem(Item::get('HalfMagic')); // @TODO: perhaps use 0xFF here\n\t\t$this->locations[\"Sick Kid\"]->setItem(Item::get('BugCatchingNet'));\n\t\t$this->locations[\"Hobo\"]->setItem(Item::get('Bottle'));\n\t\t$this->locations[\"Bombos Tablet\"]->setItem(Item::get('Bombos'));\n\t\t$this->locations[\"King Zora\"]->setItem(Item::get('Flippers'));\n\t\t$this->locations[\"Piece of Heart (Thieves' Forest Hideout)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Piece of Heart (Lumberjack Tree)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Piece of Heart (south of Haunted Grove)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Piece of Heart (Graveyard)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Piece of Heart (Desert - northeast corner)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"[cave-050] cave southwest of Lake Hylia - generous guy\"]->setItem(Item::get('ThreeHundredRupees'));\n\t\t$this->locations[\"Library\"]->setItem(Item::get('BookOfMudora'));\n\t\t$this->locations[\"Mushroom\"]->setItem(Item::get('Mushroom'));\n\t\t$this->locations[\"Witch\"]->setItem(Item::get('Powder'));\n\t\t$this->locations[\"Piece of Heart (Maze Race)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Piece of Heart (Desert - west side)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Piece of Heart (Lake Hylia)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Piece of Heart (Dam)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Piece of Heart (Zora's River)\"]->setItem(Item::get('PieceOfHeart'));\n\t\t$this->locations[\"Haunted Grove item\"]->setItem(Item::get('OcarinaInactive'));\n\t\t$this->locations[\"Waterfall Fairy - Left\"]->setItem(Item::get('RedShield'));\n\t\t$this->locations[\"Waterfall Fairy - Right\"]->setItem(Item::get('RedBoomerang'));\n\n\t\treturn $this;\n\t}",
"public function index(InventoryRepository $repository)\n {\n $request = new InventoryRequest(request());\n\n $query = $repository->getInventoryForUser(\n Auth::user(),\n $request->getFilters()\n );\n\n return view('inventory', [\n 'inventory' => $query->paginate(20)\n ]);\n }",
"public function display()\n\t\t{\n\t\t\techo \"<table border=\\\"1\\\">\";\n\t\t\techo \"<tr><th>Artikel</th><th>Menge</th><th>Optionen</th></tr>\";\n\t\t\tforeach ($this->items as $art=>$qty)\n\t\t\t\techo \"<tr>\n\t\t\t\t\t\t<td>$art</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<form name='qtyForm' action='cart.php' method='get'>\n\t\t\t\t\t\t\t\t<input type='hidden' name='artChangeQty' value='$art'/>\n\t\t\t\t\t\t\t\t<input name='artQty' value='$qty'/>\n\t\t\t\t\t\t\t\t<input name='positive' type='submit' value='1' />\n\t\t\t\t\t\t\t\t<input name='negative' type='submit' value='-1' />\n\t\t\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t\t\t<input type='submit' value='Ändern' />\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<form name='removeForm' action='cart.php' method='get'>\n\t\t\t\t\t\t\t\t<input type='hidden' name='artRemoveAll' value='$art'/>\n\t\t\t\t\t\t\t\t<input type='submit' value='Remove' />\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\";\n\t\t\techo \"</table>\";\n\t\t}",
"public function index()\n {\n $invlocations = InvLocation::getAllInvLocation();\n return InvLocationResource::collection($invlocations);\n }",
"function showNoticeLocation()\n {\n $id = $this->notice->id;\n\n $location = $this->notice->getLocation();\n\n if (empty($location)) {\n return;\n }\n\n $name = $location->getName();\n\n $lat = $this->notice->lat;\n $lon = $this->notice->lon;\n $latlon = (!empty($lat) && !empty($lon)) ? $lat.';'.$lon : '';\n\n if (empty($name)) {\n $latdms = $this->decimalDegreesToDMS(abs($lat));\n $londms = $this->decimalDegreesToDMS(abs($lon));\n // TRANS: Used in coordinates as abbreviation of north.\n $north = _('N');\n // TRANS: Used in coordinates as abbreviation of south.\n $south = _('S');\n // TRANS: Used in coordinates as abbreviation of east.\n $east = _('E');\n // TRANS: Used in coordinates as abbreviation of west.\n $west = _('W');\n $name = sprintf(\n // TRANS: Coordinates message.\n // TRANS: %1$s is lattitude degrees, %2$s is lattitude minutes,\n // TRANS: %3$s is lattitude seconds, %4$s is N (north) or S (south) depending on lattitude,\n // TRANS: %5$s is longitude degrees, %6$s is longitude minutes,\n // TRANS: %7$s is longitude seconds, %8$s is E (east) or W (west) depending on longitude,\n _('%1$u°%2$u\\'%3$u\"%4$s %5$u°%6$u\\'%7$u\"%8$s'),\n $latdms['deg'],$latdms['min'], $latdms['sec'],($lat>0? $north:$south),\n $londms['deg'],$londms['min'], $londms['sec'],($lon>0? $east:$west));\n }\n\n $url = $location->getUrl();\n\n $this->out->text(' ');\n $this->out->elementStart('span', array('class' => 'location'));\n // TRANS: Followed by geo location.\n $this->out->text(_('at'));\n $this->out->text(' ');\n if (empty($url)) {\n $this->out->element('abbr', array('class' => 'geo',\n 'title' => $latlon),\n $name);\n } else {\n $xstr = new XMLStringer(false);\n $xstr->elementStart('a', array('href' => $url,\n 'rel' => 'external'));\n $xstr->element('abbr', array('class' => 'geo',\n 'title' => $latlon),\n $name);\n $xstr->elementEnd('a');\n $this->out->raw($xstr->getString());\n }\n $this->out->elementEnd('span');\n }",
"function show($pos)\r\n\t{\r\n\t\techo $this->get($pos);\r\n\t}",
"public function display($simple = false)\n {\n $translate = $this->getTranslate();\n $storeLocation = $this;\n\n if (!$storeLocation instanceof StorePickupLocation) {\n return '<em>' . $translate->_('N/A') . '</em>';\n }\n\n $locationsService = new Service\\Table\\Relational\\Locations();\n $storeLocationsService = new Service\\StorePickupLocations();\n\n $locationFields = $storeLocationsService->getStoreLocationFields();\n\n $storeLocationData = $storeLocation->getData();\n\n foreach ($storeLocationData as $key => $value) {\n if (!in_array($key, $locationFields)) {\n unset($storeLocationData[$key]);\n }\n }\n\n $storeLocation = (array)$storeLocationData;\n\n if (is_numeric($storeLocation['country'])) {\n $row = $locationsService->findBy('id', (int)$storeLocation['country']);\n $storeLocation['country'] = ($row != null) ? $translate->_($row->getData('name')) : $translate->_('n/a');\n }\n\n if (is_numeric($storeLocation['state'])) {\n $row = $locationsService->findBy('id', (int)$storeLocation['state']);\n $storeLocation['state'] = ($row != null) ? $translate->_($row->getData('name')) : $translate->_('n/a');\n }\n\n if (!empty($storeLocation['opening_hours'])) {\n $keys = (isset($storeLocation['opening_hours']['key'])) ? array_values($storeLocation['opening_hours']['key']) : array();\n $values = (isset($storeLocation['opening_hours']['value'])) ? array_values($storeLocation['opening_hours']['value']) : array();\n\n $storeLocation['opening_hours'] = array_filter(\n array_combine($keys, $values));\n\n $openingHours = '<em>Opening Hours</em><br>';\n foreach ($storeLocation['opening_hours'] as $key => $value) {\n $openingHours .= '<small>' . $key . '</small> ' . $value . '<br>';\n }\n\n $storeLocation['opening_hours'] = $openingHours;\n }\n\n\n if (!empty($storeLocation['collection_days'])) {\n $collectionDays = null;\n $collectionDaysSimple = null;\n if (!empty($storeLocation['collection_days'][0])) {\n $collectionDays = $storeLocation['collection_days'][0];\n $collectionDaysSimple = date('d M y', strtotime('+ ' . $storeLocation['collection_days'][0] . ' day'));\n }\n if (!empty($storeLocation['collection_days'][1])) {\n if (!empty($collectionDays)) {\n $collectionDays .= ' - ';\n $collectionDaysSimple .= ' to ';\n }\n $collectionDays .= $storeLocation['collection_days'][1];\n $collectionDaysSimple .= date('d M y', strtotime('+ ' . $storeLocation['collection_days'][1] . ' day'));\n }\n\n $collectionDays .= ' days';\n\n $storeLocation['collection_days'] = '<em>Estimated Collection</em>: ' . $collectionDays;\n $storeLocation['collection_days_simple'] = '<em>Estimated Collection</em>: ' . $collectionDaysSimple;\n }\n else {\n $storeLocation['collection_days'] = null;\n $storeLocation['collection_days_simple'] = null;\n }\n\n if ($simple === true) {\n $storeAddress = $storeLocation['address']\n . ', '\n . $storeLocation['city']\n . ', '\n . $storeLocation['state']\n . ', '\n . $storeLocation['zip_code']\n . ', '\n . $storeLocation['country'];\n\n\n if (self::GOOGLE_MAPS_LINK) {\n $storeAddress = '<a href=\"http://maps.google.com/?q=' . $storeAddress . '\" target=\"_blank\" title=\"View on Google Maps\">'\n . $storeAddress . '</a>';\n }\n\n return $storeLocation['pickup_store_name']\n . ' [ '\n . $storeAddress\n . ' ]'\n . (($storeLocation['collection_days']) ? '<div>' . $storeLocation['collection_days'] . '</div>' : '');\n }\n\n return '<address>'\n . '<strong>' . $storeLocation['pickup_store_name'] . '</strong>'\n . '<br>'\n . $storeLocation['address']\n . '<br>'\n . $storeLocation['city']\n . '<br>'\n . $storeLocation['zip_code']\n . '<br>'\n . $storeLocation['state']\n . ', '\n . $storeLocation['country']\n . ((!empty($storeLocation['store_phone_number'])) ?\n '<br><abbr title=\"' . $translate->_('Phone Number') . '\"><i class=\"fa fa-phone\"></i></abbr> ' . $storeLocation['store_phone_number'] : '')\n . ((!empty($storeLocation['store_email_address'])) ?\n '<br><abbr title=\"' . $translate->_('Email Address') . '\"><i class=\"fa fa-envelope\"></i></abbr> ' . $storeLocation['store_email_address'] : '')\n . ((!empty($storeLocation['collection_days'])) ?\n '<br><br>' . $storeLocation['collection_days'] : '')\n . ((!empty($storeLocation['opening_hours'])) ?\n '<br><br>' . $storeLocation['opening_hours'] : '')\n . '</address>';\n }",
"public function show(Location $location)\n {\n return $this->view\n ->with('location', $location)\n ->with('locations', $this->location->all()->load('languages'));\n }",
"public function show(IceTax $iceTax)\n {\n //\n }",
"public function getSource()\n {\n return 'inventory';\n }",
"public function show(Equipement_it $equipement_it)\n {\n //\n }",
"public function show(Reserve $reserve)\n {\n //\n }",
"public function actionIndex()\n {\n\t\treturn $this->render('inventorystatus', ['model' => $this->genInventoryStatus(26)]);\n }",
"public function show(Location $location,$id)\n {\n $location=Ho_details::find($id);\n return view('admin.master.ho_details.show',compact('location'));\n }",
"public function show(Equipe $equipe)\n {\n //\n }",
"public function display_admin_menu_item() {\n add_menu_page(\n 'Visit Seattle Partners Importer',\n 'Partners Importer',\n 'manage_options',\n 'visit-seattle-partners-importer',\n array( 'VSPI_Admin', 'display_page' ),\n 'dashicons-update'\n );\n }",
"protected function infoScreenAction() {}",
"public function getCreateLocation()\n {\n return view('admin.world_expansion.create_edit_location', [\n 'location' => new Location,\n 'types' => LocationType::all()->pluck('name','id')->toArray(),\n 'locations' => Location::all()->pluck('name','id')->toArray(),\n 'ch_enabled' => Settings::get('WE_character_locations'),\n 'user_enabled' => Settings::get('WE_user_locations')\n ]);\n }",
"public function show($id)\n {\n $inventory = Inventory::find($id);\n $loker = Loker::find($id);\n $lokasi = Lokasi::all();\n if ($inventory->status_id != 1) {\n return redirect()->route('peminjaman.index');\n }\n return view('peminjaman.show', compact('lokasi', 'loker', 'inventory'));\n }",
"function show_inv(){\n $inv_str = \"\";\n foreach ($_SESSION[\"inventory\"] as $key => $value){\n if($value!=0){\n $inv_str .= $value . ' ' . $_SESSION['objects'][$key] . nl2br (\"\\n\");\n }\n }\n return $inv_str;\n}"
] | [
"0.71094733",
"0.70829487",
"0.67656285",
"0.6498799",
"0.6498799",
"0.64895517",
"0.6260395",
"0.6222347",
"0.6159522",
"0.6159522",
"0.6159522",
"0.6048778",
"0.6016226",
"0.6001091",
"0.5986605",
"0.59700495",
"0.593639",
"0.59221834",
"0.59189767",
"0.58934575",
"0.5882221",
"0.58709913",
"0.58477676",
"0.5834176",
"0.58329314",
"0.5822368",
"0.5772929",
"0.5764918",
"0.5742386",
"0.57345587",
"0.57069767",
"0.5704132",
"0.5701819",
"0.5673716",
"0.56649214",
"0.56499976",
"0.5630902",
"0.56278133",
"0.56224877",
"0.5613885",
"0.55970794",
"0.5564671",
"0.55607545",
"0.55607545",
"0.55489814",
"0.553158",
"0.55260473",
"0.5518908",
"0.5518692",
"0.5504048",
"0.5496438",
"0.5481742",
"0.54601",
"0.5458557",
"0.5446029",
"0.5437654",
"0.54368186",
"0.5430407",
"0.54299194",
"0.54299194",
"0.54247344",
"0.5420524",
"0.5415717",
"0.54071516",
"0.5370215",
"0.5365297",
"0.53585315",
"0.5352843",
"0.534704",
"0.5339364",
"0.5333219",
"0.5325147",
"0.53220534",
"0.53068125",
"0.53030396",
"0.52965546",
"0.5287004",
"0.5286758",
"0.5282276",
"0.5280141",
"0.52451044",
"0.5241894",
"0.5241192",
"0.52398086",
"0.52232593",
"0.5221683",
"0.52183855",
"0.5217495",
"0.5214042",
"0.52089286",
"0.5208558",
"0.52015203",
"0.5196619",
"0.51915014",
"0.5190775",
"0.51904833",
"0.5189094",
"0.51874804",
"0.51871186",
"0.5184696",
"0.51789314"
] | 0.0 | -1 |
Method for searching items in the application. | public function search(Request $request, Item $items): Renderable
{
$items = $items->userLocation()->where('item_code', 'LIKE', "%{$term}%")
->orWhere('name', 'LIKE', "%{$term}%");
return view('inventory.index', compact('items'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function search_items()\n\t\t{\n\t\t\t$inputsearch = str_replace(\"\\\\\",\"\\\\\\\\\",$this->inputsearch); // SRX_BACKSLASH_FIX_ISSUE\n\t\t\tif(substr($this->inputsearch,0,1) == \"\\\\\")\n\t\t\t{\n\t\t\t\t$pre_jocker = '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pre_jocker = '%';\n\t\t\t}\n\t\t\t\n\t\t\t$query = \"\tSELECT\n\t\t\t\t\t\t\t`MTN`.`id` AS 'id'\n\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t`\".$this->tree_node.\"` `MTN`,\n\t\t\t\t\t\t\t`\".$this->tree_caption.\"` `MTC`\n\t\t\t\t\t\tWHERE 1 = 1\n\t\t\t\t\t\t\tAND `MTN`.`id` = `MTC`.`id`\n\t\t\t\t\t\t\tAND `MTN`.`application_release` = `MTC`.`application_release`\n\t\t\t\t\t\t\tAND `MTN`.`application_release`\t= '\".$this->application_release.\"'\n\t\t\t\t\t\t\tAND `MTC`.`language` = '\".$this->language.\"'\n\t\t\t\t\t\t\tAND `MTC`.`title`\t\tlike '\".$pre_jocker.$this->mysql_protect($inputsearch).\"%'\n\t\t\t\t\t\";\n\t\t\t$result = $this->link_mt->query($query);\n\t\t\t\n\t\t\t// Clear list\n\t\t\t$this->listexpand = ''; \n\t\t\t$this->listhighlight = '';\n\t\t\t\n\t\t\t$this->count_item_found = 0;\n\t\t\t\n\t\t\twhile ($row = $result->fetch_array(MYSQLI_ASSOC))\n\t\t\t{\n\t\t\t\t// Prepare array for full expansion\n\t\t\t\t$this->listexpand[$row['id']] = true;\n\t\t\t\t\n\t\t\t\t// Build array to highlight item\n\t\t\t\t$this->listhighlight[$row['id']] = true;\n\t\t\t\t\n\t\t\t\t$this->count_item_found = $this->count_item_found + 1; // Count number of entries in current search\n\t\t\t}\n\n\t\t\tif(!$this->count_item_found)\n\t\t\t{\n\t\t\t\t// Search launched but no item found\n\t\t\t\t$this->count_item_found = 'NoItemFound';\n\t\t\t}\n\t\t\t\n\t\t\t$this->build_full_array_expansion();\n\t\t\t\n\t\t\t//$_SESSION[$this->ssid]['MT'][$this->internal_id][\"expandlist\"] = $this->listexpand;\n\t\t}",
"public function search();",
"public function search();",
"public function search(){}",
"function search() {}",
"public function search()\n\t{\n\t\t\n\t}",
"public function search()\n\t{\n\t\treturn self::extraSearch($this);\n\t}",
"public abstract function search_items(\\WP_REST_Request $request);",
"function search()\n\t{}",
"function search()\n\t{}",
"public function search_items(\\WP_REST_Request $request)\n {\n }",
"public function search_items(\\WP_REST_Request $request)\n {\n }",
"public function SearchCombatItems() {\n\t\t\t// Declare Classes\n\t\t\t$RepItem\t\t\t= new RepItem();\n\t\t\t$ModItem\t\t\t= new ModItem();\n\t\t\t// Intialize variables\n\t\t\t$return\t\t\t\t= '<br />(no Combat Items found)';\n\t\t\t// Get first 20 entries\n\t\t\t$result\t\t\t\t= $RepItem->getAllCombatItems(20);\n\t\t\t// If there are entries\n\t\t\tif ($result) {\n\t\t\t\t// Get Field names\n\t\t\t\t$RepQuestion\t= new RepQuestion();\n\t\t\t\t$fields\t\t\t= $RepQuestion->getAllFields();\n\t\t\t\t// Separate returned data an paging info\n\t\t\t\t$rows\t\t\t= $result[0];\n\t\t\t\t$paging_info\t= $result[1];\n\t\t\t\t// Model Result\n\t\t\t\t$return\t\t\t= $ModItem->listCombatItems($rows, $fields, 'i.id', 'ASC');\n\t\t\t\t// Define Pager info\n\t\t\t\t$pager\t\t\t= Pager::pagerOptions($paging_info, 'items', 'partialCombatResult');\n\t\t\t}\n\t\t\t// Define sub menu selection\n\t\t\t$GLOBALS['menu']['items']['opt2_css'] = 'details_item_on';\n\t\t\t// Prepare info to be displayed\n\t\t\tView::set('pager', $pager);\n\t\t\tView::set('return', $return);\n\t\t\t// render view\n\t\t\tView::render('usersSearch');\n \t\t}",
"public function search() {\n\t\t\tif (!empty($this->params['form']['query'])) {\n\t\t\t\t/* Get query */\n\t\t\t\t$query = Sanitize::escape($this->params['form']['query']);\n\t\t\t\n\t\t\t\t/* Get list of menu items filtered by query */\n\t\t\t\t$this->menuList = $this->getThreadedList($query);\n\t\t\t} else {\n\t\t\t\t/* Get list of menu items */\n\t\t\t\t$this->menuList = $this->getThreadedList();\n\t\t\t}\n\t\t\t$this->set('menuList', $this->menuList);\n\t\t\t\n\t\t\t$this->render('list');\n\t\t}",
"public function search()\n {\n\n }",
"public function search()\n {\n\n }",
"public function getSearch();",
"function ciniki_ags_exhibitorItemSearch($ciniki) {\n //\n // Find all the required and optional arguments\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'),\n 'start_needle'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Search String'),\n 'exhibitor_id'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Exhibitor'),\n 'exhibit_id'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Exhibit'),\n 'limit'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Limit'),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $args = $rc['args'];\n\n //\n // Check access to tnid as owner, or sys admin.\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'ags', 'private', 'checkAccess');\n $rc = ciniki_ags_checkAccess($ciniki, $args['tnid'], 'ciniki.ags.exhibitorItemSearch');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Load maps\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'ags', 'private', 'maps');\n $rc = ciniki_ags_maps($ciniki);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $maps = $rc['maps'];\n\n $args['start_needle'] = preg_replace(\"/ /\", '%', $args['start_needle']);\n \n //\n // Get the list of items\n //\n if( isset($args['exhibit_id']) && $args['exhibit_id'] != '' ) {\n $strsql = \"SELECT ciniki_ags_items.id, \"\n . \"ciniki_ags_items.exhibitor_id, \"\n . \"ciniki_ags_items.exhibitor_code, \"\n . \"ciniki_ags_items.code, \"\n . \"ciniki_ags_items.name, \"\n . \"ciniki_ags_items.tag_info, \"\n . \"ciniki_ags_items.permalink, \"\n . \"ciniki_ags_items.status, \"\n . \"ciniki_ags_items.status AS status_text, \"\n . \"ciniki_ags_items.flags, \"\n . \"ciniki_ags_items.flags AS flags_text, \"\n . \"(ciniki_ags_items.flags&0x06) AS online_flags_text, \"\n . \"ciniki_ags_items.unit_amount AS unit_amount_display, \"\n . \"ciniki_ags_items.unit_discount_amount AS unit_discount_amount_display, \"\n . \"ciniki_ags_items.unit_discount_percentage AS unit_discount_percentage_display, \"\n . \"ciniki_ags_items.fee_percent AS fee_percent_display, \"\n . \"ciniki_ags_items.taxtype_id, \"\n . \"IFNULL(ciniki_ags_exhibit_items.exhibit_id, 0) AS exhibit_id, \"\n . \"IFNULL(ciniki_ags_exhibit_items.inventory, 0) AS inventory, \"\n . \"IFNULL(tags.tag_name, '') as categories \"\n . \"FROM ciniki_ags_items \"\n . \"LEFT JOIN ciniki_ags_exhibit_items ON (\"\n . \"ciniki_ags_items.id = ciniki_ags_exhibit_items.item_id \"\n . \"AND ciniki_ags_exhibit_items.exhibit_id = '\" . ciniki_core_dbQuote($ciniki, $args['exhibit_id']) . \"' \"\n . \"AND ciniki_ags_exhibit_items.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \" \n . \"LEFT JOIN ciniki_ags_item_tags AS tags ON (\" \n . \"ciniki_ags_exhibit_items.item_id = tags.item_id \" \n . \"AND tags.tag_type = 20 \" \n . \"AND tags.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \") \" \n . \"WHERE ciniki_ags_items.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND ciniki_ags_items.exhibitor_id = '\" . ciniki_core_dbQuote($ciniki, $args['exhibitor_id']) . \"' \"\n . \"AND (\"\n . \"name LIKE '\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR name LIKE '% \" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR name LIKE '% \" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR exhibitor_code LIKE '%\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR exhibitor_code LIKE '%0\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '% \" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '%-\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '%-0\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '%00\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \") \"\n . \"\";\n } else {\n $strsql = \"SELECT ciniki_ags_items.id, \"\n . \"ciniki_ags_items.exhibitor_id, \"\n . \"ciniki_ags_items.exhibitor_code, \"\n . \"ciniki_ags_items.code, \"\n . \"ciniki_ags_items.name, \"\n . \"ciniki_ags_items.tag_info, \"\n . \"ciniki_ags_items.permalink, \"\n . \"ciniki_ags_items.status, \"\n . \"ciniki_ags_items.status AS status_text, \"\n . \"ciniki_ags_items.flags, \"\n . \"ciniki_ags_items.flags AS flags_text, \"\n . \"(ciniki_ags_items.flags&0x06) AS online_flags_text, \"\n . \"ciniki_ags_items.unit_amount AS unit_amount_display, \"\n . \"ciniki_ags_items.unit_discount_amount AS unit_discount_amount_display, \"\n . \"ciniki_ags_items.unit_discount_percentage AS unit_discount_percentage_display, \"\n . \"ciniki_ags_items.fee_percent AS fee_percent_display, \"\n . \"ciniki_ags_items.taxtype_id, \"\n . \"0 AS exhibit_id, \"\n . \"0 AS inventory, \"\n . \"'' AS categories \"\n . \"FROM ciniki_ags_items \"\n . \"WHERE ciniki_ags_items.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND ciniki_ags_items.exhibitor_id = '\" . ciniki_core_dbQuote($ciniki, $args['exhibitor_id']) . \"' \"\n . \"AND (\"\n . \"name LIKE '\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR name LIKE '% \" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR name LIKE '%-\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR exhibitor_code LIKE '%\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR exhibitor_code LIKE '%0\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '% \" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '%-\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '%-0\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \"OR code LIKE '%00\" . ciniki_core_dbQuote($ciniki, $args['start_needle']) . \"%' \"\n . \") \"\n . \"\";\n }\n if( isset($args['limit']) && is_numeric($args['limit']) && $args['limit'] > 0 ) {\n $strsql .= \"LIMIT \" . ciniki_core_dbQuote($ciniki, $args['limit']) . \" \";\n } else {\n $strsql .= \"LIMIT 25 \";\n }\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryArrayTree');\n $rc = ciniki_core_dbHashQueryArrayTree($ciniki, $strsql, 'ciniki.ags', array(\n array('container'=>'items', 'fname'=>'id', \n 'fields'=>array('id', 'exhibitor_id', 'exhibitor_code', 'tag_info', 'code', 'name', 'permalink', \n 'status', 'status_text', 'flags', 'flags_text', 'online_flags_text',\n 'unit_amount_display', 'unit_discount_amount_display', 'unit_discount_percentage_display', \n 'fee_percent_display', 'taxtype_id', 'exhibit_id', 'inventory', 'categories'),\n 'maps'=>array('status_text'=>$maps['item']['status']),\n 'dlists'=>array('categories'=>', '),\n 'flags'=>array('flags_text'=>$maps['item']['flags'],\n 'online_flags_text'=>$maps['item']['flags'],\n ),\n 'naprices'=>array('unit_amount_display', 'unit_discount_amount_display'),\n 'percents'=>array('unit_discount_percentage_display', 'fee_percent_display'),\n ),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['items']) ) {\n $items = $rc['items'];\n $item_ids = array();\n foreach($items as $iid => $item) {\n $item_ids[] = $item['id'];\n }\n } else {\n $items = array();\n $item_ids = array();\n }\n\n return array('stat'=>'ok', 'items'=>$items, 'nplist'=>$item_ids);\n}",
"public function searchAll($input)\n {\n \n }",
"public function searchForPlayList();",
"function search() {\n // ...\n }",
"function clsRecorditemsSearch()\r\n {\r\n\r\n global $FileName;\r\n $this->Visible = true;\r\n $this->Errors = new clsErrors();\r\n $this->InsertAllowed = false;\r\n $this->UpdateAllowed = false;\r\n $this->DeleteAllowed = false;\r\n if($this->Visible)\r\n {\r\n $this->ComponentName = \"itemsSearch\";\r\n $this->HTMLFormAction = $FileName . \"?\" . CCAddParam(CCGetQueryString(\"QueryString\", \"\"), \"ccsForm\", $this->ComponentName);\r\n $CCSForm = CCGetFromGet(\"ccsForm\", \"\");\r\n $this->FormSubmitted = ($CCSForm == $this->ComponentName);\r\n $Method = $this->FormSubmitted ? ccsPost : ccsGet;\r\n $this->s_title = new clsControl(ccsTextBox, \"s_title\", \"s_title\", ccsText, \"\", CCGetRequestParam(\"s_title\", $Method));\r\n $this->s_description = new clsControl(ccsTextBox, \"s_description\", \"s_description\", ccsMemo, \"\", CCGetRequestParam(\"s_description\", $Method));\r\n $this->CatID = new clsControl(ccsCheckBox, \"CatID\", \"CatID\", ccsInteger, \"\", CCGetRequestParam(\"CatID\", $Method));\r\n $this->CatID->CheckedValue = 1;\r\n $this->CatID->UncheckedValue = 0;\r\n $this->DoSearch = new clsButton(\"DoSearch\");\r\n }\r\n }",
"public function WidgetSearch()\n {\n return $this->extensionSearch();\n }",
"public function search()\n {\n return Search::i();\n }",
"public function searchItem($title) {\n \n //Create Database conexion\n }",
"public function SearchNonCombatItems() {\n\t\t\t// Declare Classes\n\t\t\t$RepItem\t\t\t= new RepItem();\n\t\t\t$ModItem\t\t\t= new ModItem();\n\t\t\t// Intialize variables\n\t\t\t$return\t\t\t\t= '<br />(no Non-Combat Items found)';\n\t\t\t// Get first 20 entries\n\t\t\t$result\t\t\t\t= $RepItem->getAllNonCombatItems(20);\n\t\t\t// If there are entries\n\t\t\tif ($result) {\n\t\t\t\t// Separate returned data an paging info\n\t\t\t\t$rows\t\t\t= $result[0];\n\t\t\t\t$paging_info\t= $result[1];\n\t\t\t\t// Model Result\n\t\t\t\t$return\t\t\t= $ModItem->listNonCombatItems($rows, 'i.id', 'ASC');\n\t\t\t\t// Define Pager info\n\t\t\t\t$pager\t\t\t= Pager::pagerOptions($paging_info, 'items', 'partialNonCombatResult');\n\t\t\t}\n\t\t\t// Define sub menu selection\n\t\t\t$GLOBALS['menu']['items']['opt3_css'] = 'details_item_on';\n\t\t\t// Prepare info to be displayed\n\t\t\tView::set('pager', $pager);\n\t\t\tView::set('return', $return);\n\t\t\t// render view\n\t\t\tView::render('usersSearch');\n \t\t}",
"public function search()\n {\n $cats = Category::where('status',1)->get();\n $item = request()->input('search');\n $posts = Post::where('status', 1)->where('title', 'like', \"%$item%\")->orWhere('text', 'like', \"%$item%\")->get();\n return View('main.search', compact('cats', 'posts'));\n }",
"public function getItemsCriteria() {}",
"public function getItemsCriteria() {}",
"protected function search()\n\t{\n\t\treturn Phpfox::getLib('search');\t\n\t}",
"function post_search(){\n global $cfg, $db, $libhtml;\n\n $html = '';\n $tables_already_searched = array();\n foreach($_SESSION[\"apps\"] as $my_apps){\n if (!empty($my_apps->path) && (!in_array(str_replace(\"/\", \"\", $my_apps->path), $this->exclude_apps))) {\n\n foreach(glob($cfg[\"source_root\"] . $my_apps->path . \"classes/*.php\") as $object) {\n\n $where = array(\"\", array(), array()); // used for query\n $where_in = array();\n $object_name = str_replace(array($cfg[\"source_root\"] . $my_apps->path . \"classes/\", \".php\"), array(\"\", \"\"), $object);\n\n if (!in_array($object_name, $this->exclude_objects)) {\n $object = new $object_name;\n\n if (!empty($object->table) && !in_array($object->table, $tables_already_searched)) {\n $tables_already_searched[] = $object->table;\n\n // get all varchar & text fields in these searchable tables\n $columns = $db->get_table_column_metadata($object->table);\n foreach($columns as $column){\n //error_log(print_r($column, true));\n if ($column->DATA_TYPE == \"text\" || $column->DATA_TYPE == \"varchar\"){\n //$where_in[0] .= \"t.\".$column->COLUMN_NAME.\" LIKE '%\".my_request(\"keyword\").\"%'\";\n $where_in[] = \" t.\".$column->COLUMN_NAME.\" LIKE ?\";\n $where[1][$column->COLUMN_NAME] = \"%\" . my_request(\"keyword\") . \"%\";\n $where[2][] = 'varchar';\n }\n }\n $where[0] = \"WHERE \" . implode(\" OR \", $where_in);\n\n // dump_var($object->table);\n // dump_var(print_r($where_in, true));\n\n // if there are varchar / text fields do ...\n if (!empty($where_in)) {\n // list object\n $tmphtml = $object->_list(array(\n //'where'=>\" AND ( \" . implode(\" OR \", $where_in) . \" )\"\n 'where' => $where,\n 'width'=>\"100%\",\n 'quick_search'=>true,\n 'app_path'=> $my_apps->path, // needed for _list edit action\n 'view'=>true,\n 'xml_export'=>false,\n 'pdf_export'=>false,\n 'csv_export'=>false,\n 'email_alert'=>false,\n 'dynamic_append'=>false,\n 'pagination'=>false,\n 'edit'=>false,\n 'delete'=>false,\n ));\n\n // do not show empty messages\n //if (strpos($tmphtml, \"No items found\") === false) {\n if ($object->list_total>0) {\n\n $res = ($object->list_total>1) ? \"results\" : \"result\";\n $truncate = ($object->list_total>500) ? \", truncated to first 500\" : '';\n\n $html .= section(array(\n \"title\"=>$my_apps->name . \" - \". ucwords(str_replace(\"_\", \" \", $object_name)). \" (\".$object->list_total.\" \".$res.$truncate.\")\",\n \"collapsible\"=>true,\n \"state\"=>\"collapsed\",\n \"to_top\"=>true\n ));\n\n $html .= $tmphtml;\n }\n }\n\n }\n }\n }\n }\n }\n\n // do not show empty results\n if (empty($html)) return '<div class=\"success\">Search returned no results.</div>';\n else return $html;\n\n }",
"public function search_available_items_query($args = array())\n {\n }",
"private function search_bar()\n\t{\n\n\t\t# code...\n\t}",
"function search( $args )\n {\n\t\t//Load the browse_result subview to present search results\n\t\t$subview = array('browse_result');\n $this->view->add('subviews',$subview);\n\t\t\n\t\t//Set the term $searching as the users search parameters if set\n\t\tif(isset($_GET['item-search'])){\n\t\t\t$searching = $_GET['item-search'];\n\t\t\t\n\t\t\t// set the page_title for a search\n\t\t\t$this->view->add('page_title','Searching the Garage for : '. \n\t\t\t $_GET['item-search']);\n\t\t}else{\n\t\t\t$searching = null;\n\t\t}\n\t\t\n\t\t//If the user doesn't input anything, notify the view\n\t\tif($searching=='' || $searching==null || trim($searching)==''){\n\t\t\t$result=null;\n\t\t\t$this->view->add('result',$result);\n\t\t\t\n\t\t}else{\n\t\t\t// Add it to the view to display the users search terms back \n\t\t\t// to them\n\t\t\t$this->view->add('searching',$searching);\n\t\t\t\n\t\t\t\n /* ====================== \n * Get the listings model \n */\n $model = $this->app->model('listings');\n\t\t\t\t\t\n\t\t\t\n // get from settings, 10 as default\n $limit = $this->settings->get('per_page');\n $limit = ( $limit != null ) ? $limit : 10;\n\t\t\t// find if user has decided on some number already\n\t\t\tif( isset( $_SESSION['listings_per_page'] )){\n\t\t\t\t$limit = (int)$_SESSION['listings_per_page'];\n\t\t\t}\n\t\t\t\n\t\t\t// get the page number\n\t\t\t$page = 0;\n\t\t\t// convert to integer\n\t\t\tif( $args['page'] != null && is_numeric($args['page']) ){\n\t\t\t\t$page = ((int) $args['page'])-1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Produce the result of the search given the searching terms\n\t\t\t$result = $model->limit($limit)->page($page)->\n\t\t\t get_search( $searching );\n\t\t\t\n\t\t\t$count = $model->count_search($searching);\n\t\t\t// set up counts\n\t\t\t$paginate = array(\n\t\t\t\t'page_count' => ((int)ceil($count/$limit)),\n\t\t\t\t'this_page' => $page+1\n\t\t\t);\n\t\t\t\n\t\t\t// add page count\n\t\t\t$this->view->add('paginate',$paginate);\n\t\t\t\n\t\t\t// add teh page action to the view\n\t\t\t$this->view->add('page_action',\n\t\t\t\t$this->app->form_path('browse/search') );\n\t\t\t\n\t\t\t// add action extra\n\t\t\tif( isset($_GET['item-search']) ){\n\t\t\t\t$this->view->add('action_extra','?item-search='.\n\t\t\t\t\t$_GET['item-search']);\n\t\t\t}\n\t\t\t\n\t\t\t// add the result to the view\n\t\t\t$this->view->add('listing_results', $result);\n }\n\t\t\n }",
"public function search($name)\n {\n return Item::where('title', 'like','%' .$name. '%')->orWhere('sku', 'like','%' .$name. '%')->orWhere('ebay_item_id', 'like','%' .$name. '%')->get();\n\n \n }",
"public function search(){\n //includes google maps script for place autocomplete and to get experiences\n \t$this->set('jsIncludes',array('http://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&language=fr&libraries=places','places_autocomplete','get_experiences','logo_fly','jquery.dropdown','cookies'));\n \n //sets motives, schools and departments by alphbetical order\n $this->__set_motives_schools_and_departments();\n }",
"public function getListSearch()\n {\n //set warehouse and client id\n $warehouse_id = ( !is_numeric(request()->get('warehouse_id')) ) ? auth()->user()->current_warehouse_id : request()->get('warehouse_id');\n $client_id = ( !is_numeric(request()->get('client_id')) ) ? auth()->user()->current_client_id : request()->get('client_id');\n\n //instantiate model and run search\n $product_model = new Product();\n return $product_model->getListSearch(request()->get('search_term'), $warehouse_id, $client_id);\n }",
"public function search() {\n\t\tif(isset($_GET['query'])) $this->query_str = $_GET['query'];\n\t\telse return;\n\n\t\t$raw = null;\n\n\t\t$cache = new Cache($this->query_str);\n\t\t//check if the result is cached\n\t\t\n\t\tif($cache->allow_cache()) {\n\t\t\t$raw = $cache->load_cache();\n\t\t\tif($raw === false) $raw = null;\n\t\t}\n\n\t\tif($raw === null) {\n\t\t\t//check if jar exists\n\t\t\tif(file_exists('../executable/app.jar')) $raw = shell_exec('cd ../executable/ && java -jar app.jar search ' . escapeshellarg($this->query_str));\n\t\t\telse return;\n\n\t\t\t//only save into cached when the escaped string equal to input string\n\t\t\tif($raw !== null && count($raw) > 0 && $cache->allow_cache()) \n\t\t\t\t$cache->save_cache($raw);\n\t\t}\n\n\t\t$this->results = json_decode($raw);\n\n\t\t$this->end_time = microtime(true);\n\t}",
"public function search(){\r\n\t\t//Test if the POST parameters exist. If they don't present the user with the\r\n\t\t//search controls/form\r\n\t\tif(!isset($_POST[\"search\"])){\r\n\t\t\t$this->template->display('search.html.php');\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Get the recipe from the database\r\n\t\t$recipes = Recipe::search($_POST[\"search\"]);\r\n\t\t//If successful and the count is equal to one (as desired)\r\n\t\t//set the recipe object in the template to be displayed\r\n\t\t$this->template->recipes = $recipes;\r\n\t\r\n\t\t$this->template->display('results.html.php');\r\n\t}",
"public static function index(WireData $data) {\n\t\t$fields = ['q|text'];\n\t\tself::sanitizeParametersShort($data, $fields);\n\t\tself::pw('page')->headline = \"Find Item\";\n\n\t\tself::pw('config')->scripts->append(self::getFileHasher()->getHashUrl('scripts/warehouse/find-item.js'));\n\t\t\n\t\tif ($data->q === '') {\n\t\t\treturn self::searchForm($data);\n\t\t}\n\t\treturn self::search($data);\n\t}",
"public function search() {\r\n\t\t$mintURL = $this->Configuration->findByName('Mint URL');\r\n\t\t$queryURL = $mintURL['Configuration']['value'];\r\n\t\t$query = '';\r\n\t\tif (isset($this->params['url']['query'])) {\r\n\t\t\t$query = $this->params['url']['query'];\r\n\t\t}\r\n\r\n\t\t$queryURL = $queryURL.\"/Parties_People/opensearch/lookup?searchTerms=\".$query;\r\n\t\t$queryResponse = \"error\";\r\n\n\t\t$ch = curl_init();\r\n\t\t$timeout = 5;\r\n\t\tcurl_setopt($ch,CURLOPT_URL,$queryURL);\r\n\t\tcurl_setopt($ch,CURLOPT_RETURNTRANSFER,1);\r\n\t\tcurl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);\r\n\t\t$queryResponse = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\r\n\t\t$this->autoRender = false;\r\n\t\t$this->response->type('json');\r\n\r\n\t\t$this->response->body($queryResponse);\r\n\t}",
"public function searchList() {\n include 'views/search-list.php';\n }",
"public function searchAction()\n {\n //get the barcode, identifier and action for the product scanned or entered.\n $code = $this->getRequest()->getPost('input');\n $identifier = $this->getRequest()->getPost('identifier');\n\n Mage::log($identifier, null, 'identifier.log');\n\n if(isset($code) && !empty($identifier))\n {\n $product = Mage::getModel('barcodescanner/find')->findProduct($code, $identifier);\n } else {\n $product = \"Product not found, please try a different code\";\n }\n\n $this->getResponse()->setBody(json_encode($product));\n\n }",
"public function searchAction() {\n parent::searchAction();\n }",
"public function action_search()\n\t{\n\t\tglobal $txt, $context;\n\n\t\t// What can we search for?\n\t\t$subActions = array(\n\t\t\t'internal' => array($this, 'action_search_internal', 'permission' => 'admin_forum'),\n\t\t\t'online' => array($this, 'action_search_doc', 'permission' => 'admin_forum'),\n\t\t\t'member' => array($this, 'action_search_member', 'permission' => 'admin_forum'),\n\t\t);\n\n\t\t// Set the subaction\n\t\t$action = new Action('admin_search');\n\t\t$subAction = $action->initialize($subActions, 'internal');\n\n\t\t// Keep track of what the admin wants in terms of advanced or not\n\t\tif (empty($context['admin_preferences']['sb']) || $context['admin_preferences']['sb'] != $subAction)\n\t\t{\n\t\t\t$context['admin_preferences']['sb'] = $subAction;\n\n\t\t\t// Update the preferences.\n\t\t\trequire_once(SUBSDIR . '/Admin.subs.php');\n\t\t\tupdateAdminPreferences();\n\t\t}\n\n\t\t// Setup for the template\n\t\t$context['search_type'] = $subAction;\n\t\t$context['search_term'] = $this->_req->getPost('search_term', 'trim|\\\\ElkArte\\\\Util::htmlspecialchars[ENT_QUOTES]');\n\t\t$context['sub_template'] = 'admin_search_results';\n\t\t$context['page_title'] = $txt['admin_search_results'];\n\n\t\t// You did remember to enter something to search for, otherwise its easy\n\t\tif ($context['search_term'] === '')\n\t\t{\n\t\t\t$context['search_results'] = array();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$action->dispatch($subAction);\n\t\t}\n\t}",
"public function search()\n {\n return $this->call('GET', $this->endpoint);\n }",
"public function search()\n {\n $keyword = Input::get('q');\n $items = with(new MasterCategory())->search($keyword);\n\n return $this->renderList($items);\n }",
"public function DoSearch()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $this->GetSearchResults_Obj(true);\n \n $ret = $this->GetNumberOfResults();\n \n return $ret;\n }",
"public function searchItemById(){\n\n $this -> Conexion -> abrir();\n $this -> Conexion -> ejecutar( $this -> ProductoDAO -> searchItemById());\n $res = $this -> Conexion -> extraer();\n $this -> idProducto = $res[0];\n $this -> nombre = $res[1];\n $this -> foto = $res[2];\n $this -> descripcion = $res[3];\n $this -> precio = $res[4];\n $this -> Conexion -> cerrar();\n }",
"public function onSearch()\r\n {\r\n // get the search form data\r\n $data = $this->form->getData();\r\n \r\n // clear session filters\r\n TSession::setValue('MusicaList_filter_muscodigo', NULL);\r\n TSession::setValue('MusicaList_filter_musnome', NULL);\r\n TSession::setValue('MusicaList_filter_musregistro', NULL);\r\n\r\n if (isset($data->muscodigo) AND ($data->muscodigo)) {\r\n $filter = new TFilter('muscodigo', 'like', \"%{$data->muscodigo}%\"); // create the filter\r\n TSession::setValue('MusicaList_filter_muscodigo', $filter); // stores the filter in the session\r\n }\r\n\r\n\r\n if (isset($data->musnome) AND ($data->musnome)) {\r\n $filter = new TFilter('musnome', 'like', \"%{$data->musnome}%\"); // create the filter\r\n TSession::setValue('MusicaList_filter_musnome', $filter); // stores the filter in the session\r\n }\r\n\r\n\r\n if (isset($data->musregistro) AND ($data->musregistro)) {\r\n $filter = new TFilter('musregistro', 'like', \"%{$data->musregistro}%\"); // create the filter\r\n TSession::setValue('MusicaList_filter_musregistro', $filter); // stores the filter in the session\r\n }\r\n\r\n \r\n // fill the form with data again\r\n $this->form->setData($data);\r\n \r\n // keep the search data in the session\r\n TSession::setValue('Musica_filter_data', $data);\r\n \r\n $param=array();\r\n $param['offset'] =0;\r\n $param['first_page']=1;\r\n $this->onReload($param);\r\n }",
"function item_search()\n {\n session_write_close();\n $suggestions = $this->Item->get_item_search_suggestions($this->input->get('term'), 'unit_price', 100);\n echo json_encode($suggestions);\n }",
"public static function search() {\r\n $result = lC_Default::find($_GET['q']);\r\n\r\n echo $result;\r\n }",
"public function searchUsers()\n {\n # Set tables to search to a variable.\n $tables = $this->getTables();\n # Set fields to search to a variable.\n $fields = $this->getFields();\n # Set search terms to a variable.\n $search_terms = $this->getSearchTerms();\n # Perform search.\n $this->performSearch($search_terms, $tables, $fields);\n }",
"public function search($value, $itemsByPage)\n\t{\n\t\treturn \t$this->model->withTrashed()->where('id','like','%' . $value . '%')\n\t\t\t\t\t\t\t->orwhere(function ($query) use ($value){\n\t\t\t\t\t\t\t\t$query->orwhere('role_name','like','%' . $value . '%')\n\t\t\t\t\t\t\t\t\t\t\t->orwhere('role_description','like','%' . $value . '%');\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t->paginate($itemsByPage);\n\t}",
"public function ajax_search_available_items()\n {\n }",
"public function searchResult()\r\n {\r\n // Setting the page title\r\n $this->set(\"title_for_layout\",\"Search Results\");\r\n \r\n // Getting all the categories\r\n $categoryList = $this->Category->getCategoryList();\r\n \r\n // Passing the categories list to views\r\n $this->set('categoryList', $categoryList);\r\n \r\n // initialising the variable\r\n $whereCondition = '';\r\n $search_keyword = '';\r\n // if any search keyword then setting into variable.\r\n if (isset($this->data['Product']['keywords']) && !empty($this->data['Product']['keywords']))\r\n {\r\n $search_keyword = $this->data['Product']['keywords'];\r\n \r\n if(!empty($whereCondition))\r\n {\r\n $whereCondition .= \" AND \";\r\n }\r\n \r\n $whereCondition .= \" (Product.product_name LIKE '%\".$search_keyword.\"%') OR (Product.product_desc LIKE '%\".$search_keyword.\"%') \";\r\n }\r\n \r\n $conditions[] = $whereCondition;\r\n \r\n // Getting the products and categories list agianst search criteria\r\n $productList = $this->Product->getSearchResults($conditions);\r\n \r\n // Passing for first product images by default.\r\n $this->set('productList', $productList);\r\n \r\n // Passing the search keywords to views\r\n $this->set('search_keyword', $search_keyword);\r\n \r\n }",
"public function find()\n {\n parent::validateRoles(['superadmin']);\n $model_app = new Model_App();\n $conditions = json_decode(file_get_contents(\"php://input\"));\n\n $result = $model_app->find($conditions);\n\n $this->response->sendMessage(iterator_to_array($result))\n ->setCode(200);\n }",
"public function search($params = []);",
"public function index()\n {\n \t\tif (isset($_GET[\"search\"])){\n \t\t\t$search = $_GET[\"search\"];\n \t\t\t$items = Item::where('name','LIKE','%'.$search.'%')->orWhere('description','LIKE','%'.$search.'%')->orWhere('barcode','LIKE','%'.$search.'%')->orderBy('name','asc')->paginate(20);\n \t\t} else {\n \t\t\t$items = Item::orderBy('name','asc')->paginate(20);\n \t\t}\n return view('items.index', compact('items'));\n }",
"public function action_search() {\n\t\t$productIds = explode('/', $this->request->param('id'));\n\t\t\n\t\t$products = ORM::factory('product')->where('product_id', 'in', $productIds)->find_all();\n\t\t\n\t\t$view = View::factory('product/search');\n\t\t$view->set('products', $products);\n\t\t$this->template->set('content', $view);\n\t}",
"public function func_search() {}",
"function Search()\n{\n\tglobal $txt, $settings, $context;\n\n\t// Search may be disabled if they're softly banned.\n\tsoft_ban('search');\n\n\t// Is the load average too high to allow searching just now?\n\tif (!empty($context['load_average']) && !empty($settings['loadavg_search']) && $context['load_average'] >= $settings['loadavg_search'])\n\t\tfatal_lang_error('loadavg_search_disabled', false);\n\n\tloadLanguage('Search');\n\tloadTemplate('Search');\n\n\t// Popup mode?\n\tif (AJAX)\n\t{\n\t\twetem::load('search_ajax');\n\t\treturn;\n\t}\n\n\t// Check the user's permissions.\n\tisAllowedTo('search_posts');\n\n\t// Link tree....\n\t// !!! If we've come back here because of an error, we're going to have: Site > Search > Search Results > Search in the linktree. Is this what we want?\n\tadd_linktree($txt['search'], '<URL>?action=search');\n\n\t// This is hard coded maximum string length.\n\t$context['search_string_limit'] = 100;\n\n\t$context['require_verification'] = we::$is_guest && !empty($settings['search_enable_captcha']) && empty($_SESSION['ss_vv_passed']);\n\tif ($context['require_verification'])\n\t{\n\t\tloadSource('Subs-Editor');\n\t\t$verificationOptions = array(\n\t\t\t'id' => 'search',\n\t\t);\n\t\t$context['require_verification'] = create_control_verification($verificationOptions);\n\t\t$context['visual_verification_id'] = $verificationOptions['id'];\n\t}\n\n\t// If you got back from search2 by using the linktree, you get your original search parameters back.\n\tif (isset($_REQUEST['params']))\n\t{\n\t\t// Due to IE's 2083 character limit, we have to compress long search strings\n\t\t$temp_params = base64_decode(str_replace(array('-', '_', '.'), array('+', '/', '='), $_REQUEST['params']));\n\t\t// Test for gzuncompress failing\n\t\t$temp_params2 = @gzuncompress($temp_params);\n\t\t$temp_params = explode('|\"|', !empty($temp_params2) ? $temp_params2 : $temp_params);\n\n\t\t$context['search_params'] = array();\n\t\tforeach ($temp_params as $i => $data)\n\t\t{\n\t\t\t@list ($k, $v) = explode('|\\'|', $data);\n\t\t\t$context['search_params'][$k] = $v;\n\t\t}\n\t\tif (!empty($context['search_params']['brd']))\n\t\t\tloadSource('Search2');\n\t\t$context['search_params']['brd'] = empty($context['search_params']['brd']) ? array() : wedge_ranged_explode(',', $context['search_params']['brd']);\n\t}\n\n\tif (isset($_REQUEST['search']))\n\t\t$context['search_params']['search'] = un_htmlspecialchars($_REQUEST['search']);\n\n\tif (isset($context['search_params']['search']))\n\t\t$context['search_params']['search'] = westr::htmlspecialchars($context['search_params']['search']);\n\tif (isset($context['search_params']['userspec']))\n\t\t$context['search_params']['userspec'] = htmlspecialchars($context['search_params']['userspec']);\n\tif (!empty($context['search_params']['searchtype']))\n\t\t$context['search_params']['searchtype'] = 2;\n\tif (!empty($context['search_params']['minage']))\n\t\t$context['search_params']['minage'] = (int) $context['search_params']['minage'];\n\tif (!empty($context['search_params']['maxage']))\n\t\t$context['search_params']['maxage'] = (int) $context['search_params']['maxage'];\n\n\t$context['search_params']['show_complete'] = !empty($context['search_params']['show_complete']);\n\t$context['search_params']['subject_only'] = !empty($context['search_params']['subject_only']);\n\n\t// Load the error text strings if there were errors in the search.\n\tif (!empty($context['search_errors']))\n\t{\n\t\tloadLanguage('Errors');\n\t\t$context['search_errors']['messages'] = array();\n\t\tforeach ($context['search_errors'] as $search_error => $dummy)\n\t\t{\n\t\t\tif ($search_error === 'messages')\n\t\t\t\tcontinue;\n\n\t\t\t$context['search_errors']['messages'][] = $txt['error_' . $search_error];\n\t\t}\n\t}\n\n\t// Find all the boards this user is allowed to see.\n\t$request = wesql::query('\n\t\tSELECT b.id_cat, c.name AS cat_name, b.id_board, b.name, b.child_level\n\t\tFROM {db_prefix}boards AS b\n\t\t\tLEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)\n\t\tWHERE {query_see_board}\n\t\t\tAND redirect = {string:empty_string}\n\t\tORDER BY b.board_order',\n\t\tarray(\n\t\t\t'empty_string' => '',\n\t\t)\n\t);\n\t$context['num_boards'] = wesql::num_rows($request);\n\t$context['boards_check_all'] = true;\n\t$context['categories'] = array();\n\twhile ($row = wesql::fetch_assoc($request))\n\t{\n\t\t// This category hasn't been set up yet...\n\t\tif (!isset($context['categories'][$row['id_cat']]))\n\t\t\t$context['categories'][$row['id_cat']] = array(\n\t\t\t\t'id' => $row['id_cat'],\n\t\t\t\t'name' => $row['cat_name'],\n\t\t\t\t'boards' => array()\n\t\t\t);\n\n\t\t// Set this board up, and let the template know when it's a child, so it can indent them.\n\t\t$context['categories'][$row['id_cat']]['boards'][$row['id_board']] = array(\n\t\t\t'id' => $row['id_board'],\n\t\t\t'name' => $row['name'],\n\t\t\t'child_level' => $row['child_level'],\n\t\t\t'selected' => (empty($context['search_params']['brd']) && (empty($settings['recycle_enable']) || $row['id_board'] != $settings['recycle_board']) && !in_array($row['id_board'], we::$user['ignoreboards'])) || (!empty($context['search_params']['brd']) && in_array($row['id_board'], $context['search_params']['brd']))\n\t\t);\n\n\t\t// If a board wasn't checked that probably should have been, ensure the board selection is selected!\n\t\tif (!$context['categories'][$row['id_cat']]['boards'][$row['id_board']]['selected'] && (empty($settings['recycle_enable']) || $row['id_board'] != $settings['recycle_board']))\n\t\t\t$context['boards_check_all'] = false;\n\t}\n\twesql::free_result($request);\n\n\t// Now, let's sort the list of categories into the boards for templates that like that.\n\t$temp_boards = array();\n\tforeach ($context['categories'] as $category)\n\t{\n\t\t$temp_boards[] = array(\n\t\t\t'name' => $category['name'],\n\t\t\t'child_ids' => array_keys($category['boards'])\n\t\t);\n\t\t$temp_boards = array_merge($temp_boards, array_values($category['boards']));\n\n\t\t// Include a list of boards per category for easy toggling.\n\t\t$context['categories'][$category['id']]['child_ids'] = array_keys($category['boards']);\n\t}\n\n\t$max_boards = ceil(count($temp_boards) / 2);\n\tif ($max_boards == 1)\n\t\t$max_boards = 2;\n\n\t// Now, alternate them so they can be shown left and right ;).\n\t$context['board_columns'] = array();\n\tfor ($i = 0; $i < $max_boards; $i++)\n\t{\n\t\t$context['board_columns'][] = $temp_boards[$i];\n\t\tif (isset($temp_boards[$i + $max_boards]))\n\t\t\t$context['board_columns'][] = $temp_boards[$i + $max_boards];\n\t\telse\n\t\t\t$context['board_columns'][] = array();\n\t}\n\n\tif (!empty($_REQUEST['topic']))\n\t{\n\t\t$context['search_params']['topic'] = (int) $_REQUEST['topic'];\n\t\t$context['search_params']['show_complete'] = true;\n\t}\n\tif (!empty($context['search_params']['topic']))\n\t{\n\t\t$context['search_params']['topic'] = (int) $context['search_params']['topic'];\n\n\t\t$context['search_topic'] = array(\n\t\t\t'id' => $context['search_params']['topic'],\n\t\t\t'href' => '<URL>?topic=' . $context['search_params']['topic'] . '.0',\n\t\t);\n\n\t\t$request = wesql::query('\n\t\t\tSELECT ms.subject\n\t\t\tFROM {db_prefix}topics AS t\n\t\t\t\tINNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)\n\t\t\t\tINNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)\n\t\t\tWHERE t.id_topic = {int:search_topic_id}\n\t\t\t\tAND {query_see_board}\n\t\t\t\tAND {query_see_topic}\n\t\t\tLIMIT 1',\n\t\t\tarray(\n\t\t\t\t'search_topic_id' => $context['search_params']['topic'],\n\t\t\t)\n\t\t);\n\n\t\tif (wesql::num_rows($request) == 0)\n\t\t\tfatal_lang_error('topic_gone', false);\n\n\t\tlist ($context['search_topic']['subject']) = wesql::fetch_row($request);\n\t\twesql::free_result($request);\n\n\t\t$context['search_topic']['link'] = '<a href=\"' . $context['search_topic']['href'] . '\">' . $context['search_topic']['subject'] . '</a>';\n\t}\n\n\t$context['page_title'] = $txt['search'];\n}",
"public function hookAdminItemsSearch()\n {\n $html = '<div class=\"field\">';\n $html .= '<div class=\"two columns alpha\">';\n $html .= get_view()->formLabel('annotated', 'Annotation Status');\n $html .= '</div>';\n $html .= '<div class=\"inputs five columns omega\">';\n $html .= '<div class=\"input-block\">';\n $html .= get_view()->formSelect('annotated', null, null, array(\n '' => 'Select Below',\n '1' => 'Only Annotated Items',\n '0' => 'Only Non-Annotated Items'\n ));\n $html .= '</div></div></div>';\n echo $html;\n }",
"public function searchProduct(){\n if($this->checkKeyWord() === false && $this->searchOrNoSearch == 0) return array();\n $this->check_branch();\n $andWhere = '';\n if($this->active == 0) $andWhere .= ' AND usp_active = 0';\n else $andWhere .= ' AND usp_active = 1';\n if($this->checkKeyWord() && $this->searchOrNoSearch == 0){\n if($this->class_import_export->detect_barcode($this->keyword)){\n if($this->class_import_export->detect_me_barcode($this->keyword)) $andWhere .= \" AND usp_me_barcode LIKE '%\".$this->keyword.\"%'\";\n else $andWhere .= \" AND usp_barcode LIKE '%\".$this->keyword.\"%'\";\n }else{\n $andWhere .= \" AND usp_pro_name LIKE '%\".$this->keyword.\"%'\";\n }\n }\n $sql_search = \"SELECT * FROM \".USER_PRODUCTS.\"\n WHERE usp_branch_id = \" . $this->branch_id . \"\n AND usp_use_child_id = \".$this->use_id.\"\n AND usp_use_parent_id = \" . $this->admim_id .$andWhere;\n $db_query = new db_query($sql_search);\n return $db_query->resultArray();\n }",
"function test_general_entries_search_on_frm_items_key() {\n\t\t$form_id = FrmForm::getIdByKey( 'all_field_types' );\n\t\t$where_clause = array( 'it.form_id' => $form_id );\n\n\t\t// Single word is searched, matching entry should be returned\n\t\t$search_string = 'jamie_entry_key';\n\t\t$items = self::run_search_query( $where_clause, $form_id, $search_string );\n\t\t$msg = 'A general search for ' . $search_string . ' in entries table';\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'jamie_entry_key', 'jamie_entry_key_2' ) );\n\n\t\t// Single word is searched. Three matching entries should be found.\n\t\t$search_string = '_entry_key';\n\t\t$items = self::run_search_query( $where_clause, $form_id, $search_string );\n\t\t$msg = 'A general search for ' . $search_string . ' in entries table';\n\t\tself::run_entries_found_tests( $msg, $items, 4, array( 'steph_entry_key', 'steve_entry_key', 'jamie_entry_key', 'jamie_entry_key_2' ) );\n\n\t\t// Multiple words are searched. Two matching entries should be found.\n\t\t$search_string = 'jamie_entry_key steph_entry_key';\n\t\t$items = self::run_search_query( $where_clause, $form_id, $search_string );\n\t\t$msg = 'A general search for ' . $search_string . ' in entries table';\n\t\tself::run_entries_found_tests( $msg, $items, 3, array( 'jamie_entry_key', 'steph_entry_key', 'jamie_entry_key_2' ) );\n\t}",
"function resourcesSearch($args)\n {\n if(!array_key_exists('search', $args))\n {\n throw new Exception('Parameter search is not defined', MIDAS_INVALID_PARAMETER);\n }\n $userDao = $this->_getUser($args);\n\n $order = 'view';\n if(isset($args['order']))\n {\n $order = $args['order'];\n }\n return $this->Component->Search->searchAll($userDao, $args['search'], $order);\n }",
"public function searchQueryDataProvider() {}",
"public function actionSearch() {\n //return Yii::$app->request->get('name');\n $keyword = Yii::$app->request->get(); // strongly recommended used more than $_GET function;\n if (!empty($keyword)) {\n $model = new $this->modelClass;\n foreach ($keyword as $key => $value) {\n if (!$model->hasAttribute($key)) {\n throw new HttpException(404, 'Invalid attribute:' . $key);\n }\n }\n try {\n $provider = new ActiveDataProvider([\n 'query' => $model->find()->where($keyword),\n 'pagination' => false\n ]);\n } catch (Exception $ex) {\n throw new HttpException(500, 'Internal server error');\n }\n\n if ($provider->getCount() <= 0) {\n throw new HttpException(404, 'No entries found with this query string');\n } else {\n return $provider;\n }\n } else {\n throw new HttpException(400, 'There are no query string');\n }\n }",
"public function getSearch()\n {\n return $this->get(self::_SEARCH);\n }",
"function globalSearch()\n{\n global $app, $globalSettings;\n\n // TODO check search paramater?\n\n $filter = getFilter();\n $search = $app->request()->get('search');\n $tlb = $app->calibre->titlesSlice($globalSettings['lang'], 0, $globalSettings[PAGE_SIZE], $filter, trim($search));\n $tlb_books = array_map('checkThumbnail', $tlb['entries']);\n $tla = $app->calibre->authorsSlice(0, $globalSettings[PAGE_SIZE], trim($search));\n $tla_books = array_map('checkThumbnail', $tla['entries']);\n $tlt = $app->calibre->tagsSlice(0, $globalSettings[PAGE_SIZE], trim($search));\n $tlt_books = array_map('checkThumbnail', $tlt['entries']);\n $tls = $app->calibre->seriesSlice(0, $globalSettings[PAGE_SIZE], trim($search));\n $tls_books = array_map('checkThumbnail', $tls['entries']);\n $app->render('global_search.html', [\n 'page' => mkPage(getMessageString('pagination_search'), 0),\n 'books' => $tlb_books,\n 'books_total' => $tlb['total'] == -1 ? 0 : $tlb['total'],\n 'more_books' => ($tlb['total'] > $globalSettings[PAGE_SIZE]),\n 'authors' => $tla_books,\n 'authors_total' => $tla['total'] == -1 ? 0 : $tla['total'],\n 'more_authors' => ($tla['total'] > $globalSettings[PAGE_SIZE]),\n 'tags' => $tlt_books,\n 'tags_total' => $tlt['total'] == -1 ? 0 : $tlt['total'],\n 'more_tags' => ($tlt['total'] > $globalSettings[PAGE_SIZE]),\n 'series' => $tls_books,\n 'series_total' => $tls['total'] == -1 ? 0 : $tls['total'],\n 'more_series' => ($tls['total'] > $globalSettings[PAGE_SIZE]),\n 'search' => $search]);\n}",
"public function searchAction()\n {\n $user_id = $this->getSecurityContext()->getUser()->getId();\n $drive = $this->_driveHelper->getRepository()->getDriveByUserId($user_id);\n\n $q = $this->getScalarParam('q');\n // $hits = $this->getResource('drive.file_indexer')->searchInDrive($q, $drive->drive_id);\n $hits = $this->getResource('drive.file_indexer')->search($q);\n\n echo '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />';\n echo '<strong>', $hits->hitCount, '</strong> hits<br/>';\n foreach ($hits->hits as $hit) {\n $file = $this->_driveHelper->getRepository()->getFile($hit->document->file_id);\n if (empty($file)) {\n echo 'Invalid file ID: ', $hit->document->file_id;\n }\n if ($file && $this->_driveHelper->isFileReadable($file)) {\n echo '<div>', '<strong>', $file->name, '</strong> ', $this->view->fileSize($file->size), '</div>';\n }\n }\n exit;\n }",
"public function search()\n {\n $data = [];\n if ($this->request->is('ajax')) {\n $term = $this->request->getQuery('term');\n $this->loadModel('Airobjects');\n $data = $this->Airobjects\n ->find('all')\n ->where(\n [\n 'OR' => [ \n \"code LIKE\" => $term . '%', \n \"city_name LIKE\" => $term . '%', \n \"airport_name LIKE\" => $term . '%', \n ],\n 'AND' => [\n \"code <> \\\"\\\"\" \n ]\n ]\n )\n ->limit(10)\n ->order('code')\n ->toArray(); \n }\n\n $this->set(compact('data'));\n $this->set('_serialize', 'data');\n }",
"public function search(Request $request)\n {\n $this->validate($request, [\n 'title' => 'max:255',\n 'published' => 'in:true,false',\n 'date_from' => 'date',\n 'date_to' => 'date'\n ]);\n\n $results = Item::customSearch(\n $request->input('title'),\n $request->input('published'),\n $request->input('date_from'),\n $request->input('date_to')\n );\n\n return view('item.search', [\n 'results' => $results\n ]);\n }",
"public function search($search);",
"public function search(){ \n\t\t$this->layout = false;\t \n\t\t$q = trim(Sanitize::escape($_GET['q']));\t\n\t\tif(!empty($q)){\n\t\t\t// execute only when the search keywork has value\t\t\n\t\t\t$this->set('keyword', $q);\n\t\t\t$data = $this->BdSpoc->find('all', array('fields' => array('HrEmployee.first_name'),\n\t\t\t'group' => array('first_name'), 'conditions' => \tarray(\"OR\" => array ('first_name like' => '%'.$q.'%'),\n\t\t\t'AND' => array('HrEmployee.status' => '1', 'HrEmployee.is_deleted' => 'N','BdSpoc.is_deleted' => 'N'))));\t\t\n\t\t\t$this->set('results', $data);\n\t\t}\n }",
"public function actionSearch() {\n $keyword = isset($_GET['keyword']) ? $_GET['keyword'] : '';\n $condition = '`id` < 0';\n $tagId = '';\n $page = isset($_GET['page']) ? $_GET['page'] : 1;\n $item = isset(Yii::app()->request->cookies['setItem']) ? Yii::app()->request->cookies['setItem']->value : 30;\n $office = ($page - 1) * $item;\n $listId = '';\n if ($keyword) {\n $string = $keyword;\n $string1 = '\"' . $keyword . '\"';\n $result = Yii::app()->askSearch->get('content:' . $string1 . '^60 OR content:' . $string . '^10 OR title:' . $string1 . '^100 OR title:' . $string . '^20', $office, $item);\n if (isset($result->response->docs)) {\n foreach ($result->response->docs as $doc) {\n $listId .= ',' . $doc->id;\n }\n }\n if (strlen($listId) > 1) {\n $listId = substr($listId, 1);\n $condition = '`id` IN (' . $listId . ')';\n }\n }\n\n $criteria = new CDbCriteria(array(\n 'condition' => $condition,\n 'order' => 'lastUpdate DESC',\n ));\n $criteria->limit = $item;\n $criteria->offset = ($page - 1) * $item;\n\n $dataProvider = new CActiveDataProvider('AskModel', array(\n 'pagination' => false,\n 'criteria' => $criteria,\n ));\n\n $dataProvider = $dataProvider->getData();\n\n //add comment value\n\n $this->commentProcess();\n\n $this->render('view/search', array('dataProvider' => $dataProvider, 'tagId' => $tagId, 'keyword' => $keyword));\n }",
"public function search(Request $request)\n {\n $search = $request->search ? $request->search : '';\n\n $items = Item::with('category')->where('item_name', 'like', '%' . $search . '%')->get();\n\n $cats = Item::with('category')->whereHas('category', function($query) use ($search) {\n $query->where('name', 'like', '%' . $search . '%');\n })->get();\n\n return (count($items) === 0) ? $cats : $items;\n }",
"public function search()\n {\n $vereinRepository = new VereinRepository();\n $searchTerm = $_GET['searchTerm'];\n $view = new View('verein_index');\n $view->heading = 'Suchbegriff: '. $searchTerm;\n $view->title = 'Vereine';\n $view->vereine = $vereinRepository->search($searchTerm);\n\n $view->display();\n }",
"public function search()\n\t{\n\t\t$search = $this->input->post('search_item');\n\t\t\n\t\tif(!empty($search))\n\t\t{\n\t\t\tredirect('products/search/'.$search);\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tredirect('products/all-products');\n\t\t}\n\t}",
"public function get_results() {\n\n\t\t\tif(!isset($_GET['wpusquery'])) {\n\t\t\t\tdie(); // if no data has been entered, quit\n\t\t\t} else {\n\t\t\t\t$searcharray = $_GET['wpusquery'];\n\t\t\t}\n\n\t\t\t$nonce = $_GET['searchNonce'];\n\t\t\tif(!wp_verify_nonce($nonce, 'search-nonce')) // make sure the search nonce matches the nonce generated earlier\n\t\t\t{\n\t\t\t\tdie ('Busted!');\n\t\t\t}\n\n\t\t\tif(class_exists(\"WPUltimateSearchPro\")) {\n\t\t\t\t$this->pro_class->execute_query_pro($searcharray);\n\t\t\t} else {\n\t\t\t\t$this->execute_query_basic($searcharray);\n\t\t\t}\n\t\t}",
"public static function search()\n {\n return [\n 'module_name' => 'string',\n 'module_key' => 'string',\n ];\n }",
"function voyage_mikado_get_search() {\n\n\t\tif(voyage_mikado_active_widget(false, false, 'mkd_search_opener')) {\n\n\t\t\t$search_type = voyage_mikado_options()->getOptionValue('search_type');\n\n\t\t\tvoyage_mikado_load_search_template();\n\n\t\t}\n\t}",
"public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t\n\t}",
"function searchItem(Request $request){\n $shoes = Shoe::where('name', 'LIKE', '%'.$request->search.'%')->paginate(6);\n return view('justdu-it.home')->with('shoes', $shoes);\n }",
"public function actionIndex()\n {\n $searchModel = new SearchItems();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n \n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function search()\r\n {\r\n $this->setTpl('search.htm');\r\n $this->setControllerTitle('Apollo');\r\n $this->setCurrentControllerName('Rechecher une condition');\r\n }",
"public function search()\n\t{\n\t\tif(isset($_GET['term']))\n\t\t{\n\t\t\t$result = $this->Busca_Model->pesquisar($_GET['term']);\n\t\t\tif(count($result) > 0) {\n\t\t\tforeach ($result as $pr)$arr_result[] = $pr->nome;\n\t\t\t\techo json_encode($arr_result);\n\t\t\t}\n\t\t}\n\t}",
"public function searchItems( \\Aimeos\\MW\\Criteria\\Iface $filter, &$total = null );",
"public function searchAction()\n\t{\n\t\t$userSession = new Container('fo_user');\n\t\t$this->layout('frontend');\n\t\t$request \t\t= $this->getRequest();\n\t\t$message\t\t= '';\n\t\t$errorMessage\t= '';\n\t\t\n\t\t//\tDestroy listing Session Vars\n\t\t$listingSession = new Container('fo_listing');\n\t\t$sessionArray\t= array();\n\t\tforeach($listingSession->getIterator() as $key => $value) {\n\t\t\t$sessionArray[]\t= $key;\n\t\t}\n\t\tforeach($sessionArray as $key => $value) {\n\t\t\t$listingSession->offsetUnset($value);\n\t\t}\n\t\t\n\t\tif ($request->isPost()) {\n\t\t\t$formData\t= $request->getPost();\n\t\t\tif(isset($formData['search']) && $formData['search'] != '')\n\t\t\t\t$listingSession->keyword\t= $formData['search'];\n\t\t\telse\n\t\t\t\t$listingSession->keyword\t= '';\n\t\t\t\n\t\t}\n\t\t\n\t\treturn new ViewModel(array(\n\t\t\t'userObject'\t=> $userSession->userSession,\n\t\t\t'message'\t\t=> $message,\n\t\t\t'errorMessage'\t=> $errorMessage,\n\t\t\t'action'\t\t=> $this->params('action'),\n\t\t\t'controller'\t=> $this->params('controller'),\n\t\t));\n }",
"public function getSearch()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('search');\n }",
"function searchInventory ($searchValue) {\n global $db;\n \n \n //$stmt = $db->prepare(\"SELECT * FROM schools WHERE $column LIKE :search\");\n\n \n \n $results = [];\n $stmt = $db->prepare(\"SELECT idItem, `name`, amount, unitPrice, salesPrice, parAmount FROM inventory WHERE name LIKE :search\");\n $search = '%'.$searchValue.'%';\n $binds = array(\n \":search\" => $search\n );\n\n if ( $stmt->execute($binds) && $stmt->rowCount() > 0 ) {\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n }\n\n return ($results);\n }",
"public static function search() {\n\n $string = Input::get('string');\n\n $results = Artist::Where('name', 'like', \"$string%\")->get();\n\n return ($results->toArray());\n }",
"function SearchItem($class)\r\n\t{\r\n\t\t\r\n\t\t$TagsArr = array(\"form\"=>\"<form name=\\\"addform\\\" action=\\\"/index.php?do={$this->MyTitle}&op=search&class={$class}&action=search\\\" enctype=\\\"multipart/form-data\\\" method=\\\"post\\\">\", \"/form\"=>\"<input type=\\\"hidden\\\" name=\\\"fromsent\\\" value=\\\"yes\\\" /></form>\", \"input_submit\"=>\"<input type=\\\"submit\\\" size=\\\"40\\\" class=\\\"inputstyle_03\\\" value=\\\"Найти\\\">\");\r\n\t\tforeach($this->SearchData[$class] as $key=>$values)\r\n\t\t{\r\n\t\t\tforeach($values as $value)\r\n\t\t\t{\r\n\t\t\t\t// Now get form value for the field\r\n\t\t\t\tif(is_array($value))\r\n\t\t\t\t{\r\n\t\t\t\t\t// if it is not just field, take it\r\n\t\t\t\t\t$TagsArr[\"input_\".$value['item']] = $this->GetFormValue($value['item'], \"\", $value['type']);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$TagsArr[\"input_\".$value] = $this->GetFormValue($value, \"\", $this->MyClasses[$class]['db'][$value]);\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//$ArrVar = array_merge($ArrVar, $this->GetAdminLinks($class, \"ShowItem\"));\r\n\t\t//$this->MakeTemplate($this->MyClasses[$class]['tpl']['search'], $TagsArr, \"content\");\r\n\t\t$MyPages = $this->MakeItemPage($class, $TagsArr, $this->MyClasses[$class]['tpl']['search']);\r\n\t\t\r\n\t\treturn $MyPages;\r\n\t}",
"private static function search()\r\n\t{\r\n\t\t$dir = 'plugins';\r\n\t\t// search for plugin modules in the plugins directory\t\t \r\n\t\t$modules = model_Utils_ModuleHelper::searchDirectoryForModules($dir);\r\n\t\tforeach ($modules as $module)\r\n\t\t{\r\n\t\t\t// save found module paths to the db so we can auto-load them in the future\r\n\t\t\tmodel_Utils_ModuleHelper::saveModule($module);\r\n\t\t\t// add matching paths to Kohana's module paths\t\t\r\n\t\t\tmodel_Utils_ModuleHelper::addModulePath($module);\r\n\t\t}\r\n\t\treturn Model_Admin_EventsAdmin::searchForListeners($dir,'Interface_iPCPPlugin');\t\r\n\t}",
"public function searchprocessAction() {\n\t\t$this->_helper->ajaxgrid->setConfig ( ProductsAttributes::grid() )->search ();\n\t}",
"public function search($query);",
"function item_search_filters(array $params = null)\n{\n return get_view()->itemSearchFilters($params);\n}",
"public function search() {\n\t\t$this->ApiClass = ClassRegistry::init('ApiGenerator.ApiClass');\n\t\t$conditions = array();\n\t\tif (isset($this->params['url']['query'])) {\n\t\t\t$query = $this->params['url']['query'];\n\t\t\t$conditions = array('ApiClass.search_index LIKE' => '%' . $query . '%');\n\t\t}\n\t\t$this->paginate['fields'] = array('DISTINCT ApiClass.name', 'ApiClass.search_index');\n\t\t$this->paginate['order'] = 'ApiClass.name ASC';\n\t\t$results = $this->paginate($this->ApiClass, $conditions);\n\t\t$classIndex = $this->ApiClass->getClassIndex();\n\t\t$this->helpers[] = 'Text';\n\t\t$this->set(compact('results', 'classIndex'));\n\t}",
"function search($keywords)\r\n {\r\n\r\n }",
"public function search(){\r\n\t\t$parishID = Convert::raw2sql($this->request->getVar('ParishID'));\t\t\r\n\t\tif(!$this->canAccess($parishID)){\r\n\t\t\treturn $this->renderWith(array('Unathorised_access', 'App'));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t$this->title = 'Search Media';\r\n\t\t$this->list = $this->Results();\r\n\t\treturn $this->renderWith(array('Media_results','App'));\r\n\t}"
] | [
"0.7736727",
"0.70116454",
"0.70116454",
"0.70027107",
"0.6957029",
"0.69046044",
"0.6824751",
"0.67501706",
"0.6626849",
"0.6626849",
"0.6602712",
"0.6602712",
"0.65696985",
"0.64953846",
"0.64404714",
"0.64404714",
"0.63912034",
"0.6307893",
"0.6307891",
"0.62957203",
"0.62922585",
"0.6279742",
"0.6267458",
"0.62299097",
"0.62052816",
"0.61944926",
"0.6184765",
"0.61754483",
"0.61742115",
"0.616766",
"0.61535573",
"0.6142463",
"0.6133497",
"0.61259556",
"0.60987806",
"0.6090089",
"0.6082945",
"0.60725343",
"0.6065744",
"0.6049836",
"0.6049788",
"0.6049527",
"0.60273004",
"0.6027026",
"0.60207707",
"0.60131866",
"0.5979687",
"0.5977047",
"0.59696543",
"0.5962767",
"0.59511316",
"0.59503937",
"0.59490585",
"0.5932754",
"0.59306735",
"0.59301776",
"0.5929292",
"0.5926414",
"0.59205246",
"0.59143513",
"0.5893374",
"0.5890806",
"0.5889396",
"0.58818924",
"0.5865669",
"0.5860815",
"0.5859512",
"0.5859444",
"0.58559036",
"0.5855042",
"0.58455575",
"0.5837735",
"0.58227247",
"0.5819321",
"0.58172035",
"0.58164996",
"0.5814508",
"0.58000827",
"0.5798452",
"0.5793525",
"0.5790133",
"0.57856107",
"0.5782447",
"0.5769753",
"0.5765949",
"0.57609874",
"0.5757699",
"0.5755574",
"0.5755411",
"0.5750543",
"0.57501304",
"0.57443964",
"0.5744055",
"0.5742541",
"0.57349855",
"0.5734107",
"0.57338494",
"0.5733293",
"0.57299274",
"0.5713331"
] | 0.62105924 | 24 |
Method for displaying the create view of new item. | public function create(): Renderable
{
$categories = Category::pluck('name', 'id');
return view('inventory.coordinator.create', compact('categories'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function create()\n\t{\n\t\treturn view('item.create');\n\t}",
"public function create()\n {\n /* display create form */\n return view('item.item');\n }",
"public function create()\n {\n //\n return view('backend.item.new');\n }",
"public function create()\n {\n\t\treturn view('item.create');\n }",
"public function create()\n {\n return View('Item.create');\n }",
"public function create()\n {\n return view('items::create_item');\n }",
"public function create()\n {\n return view('item.create');\n }",
"public function create()\n {\n return view('item.create');\n }",
"public function create()\n {\n return view('items.create', ['item' => new Item]);\n }",
"public function create()\n {\n # code...\n return view('item/create');\n }",
"public function create()\n {\n return view('backend.items.create');\n }",
"public function create()\n {\n return view('grn_items.create');\n }",
"public function create()\n {\n return view('backend.pages.items.create');\n }",
"public function create()\n {\n return view('items.create');\n }",
"public function create()\n {\n return view('items.create');\n }",
"public function create()\n {\n return view('items.createitem');\n }",
"public function create()\n {\n return view(\"resturant.controladmin.items.create\");\n }",
"public function create()\n {\n return view('alteritem');\n }",
"public function create()\n {\n access_is_allowed('create.item');\n\n $view = view('framework::app.master.item.create');\n $inventories_account = CoaCategory::where('name', 'Inventories')->first();\n $view->list_account_asset = $inventories_account->coa;\n $view->list_item_category = ItemCategory::active()->get();\n $view->list_warehouse = Warehouse::active()->get();\n $view->list_unit = Unit::all();\n $view->converter = TempDataHelper::get('converter', app('request')->user()->id, ['is_pagination' => false]);\n $view->list_petty_cash_account = Coa::joinCategory()->where('coa_category.name', '=', 'Petty Cash')->selectOriginal()->get();\n\n return $view;\n }",
"public function create()\n {\n $items=Item::latest()->get();\n return view(\"invoiceitem.create\",compact(\"items\"));\n }",
"public function create()\n {\n //\n return view('create_item_ctg');\n }",
"public function create()\n\n {\n\n\n return view('admin.items.create');\n }",
"public function create()\n {\n // Not needed cause this is coming from the item listing\n }",
"public function actionCreate()\n {\n $model = new Item();\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('create', [\n 'model' => $model,\n ]);\n }",
"public function create()\n {\n // Create new item\n $listBtn = ['title'=>'All Items', 'action' => 'items', 'icon' => 'icon md-format-list-bulleted'];\n $buttons =[];\n array_push($buttons, $listBtn);\n return view('backend.items.create', compact('buttons'));\n }",
"public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }",
"public function create()\n\t{\n return view('admin.common.create',['name'=>'items']);\n\t}",
"public function newAction()\n {\n global $config;\n\n if(empty($this->crumbs->crumbs['new']['label']))\n $this->crumbs->add('New', '/', 'New', false); \n\n $form = new ItemsTypeForm(new ItemsType(), array('new' => true));\n $this->view->setVar(\"form\", $form);\n }",
"public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}",
"public function create()\n {\n return view(self::$folder . 'add')->withTitle(self::$mainTitle)->with('link', self::$link);\n }",
"public function create()\n {\n return Inertia::render('Items/create');\n }",
"public function create(): object\n {\n if (!Bouncer::can('create', $this->model)) {\n abort(403);\n }\n $form = $this->form($this->form, [\n 'method' => 'POST',\n 'route' => [$this->routeWithModulePrefix . '.' . 'store']\n ]);\n\n $item = new $this->model;\n return $this->view($this->baseView . '.create', ['form' => $form, 'item' => $item]);\n }",
"public function create()\n {\n return view('shopping-items.add');\n }",
"public function create()\n {\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \"Create Product Item\";\n $this->data['mode'] = \"create\";\n return view('product.form', $this->data);\n }",
"public function createAction() : object\n {\n $page = $this->di->get(\"page\");\n $form = new CreateForm($this->di);\n $form->check();\n\n $page->add(\"questions/crud/create\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $page->render([\n \"title\" => \"Create a item\",\n ]);\n }",
"public function create()\n {\n return view(\"Add\");\n }",
"public function create()\n {\n $categories = Category::orderBy('id', 'desc')->get();\n return view('admin.item.create', compact('categories'));\n }",
"public function create()\n {\n //\n return view('product.itemclasses.create');\n }",
"public function newAction()\n {\n $entity = new Item();\n $form = $this->createForm(new ItemType(), $entity);\n\n return $this->render('StriideInventoryBundle:Item:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'json_types' => json_encode($this->get('striide_inventory.types')->getInventoryTypesArray()),\n 'form_theme' => 'StriideTwitterbootstrapBundle:Form:form_theme.html.twig',\n 'crumbs' => array(\n array('href' => $this->get('router')->generate('StriideInventoryBundle_homepage'),\n 'label' => $this->get('translator')->trans('Inventory')),\n array('href' => $this->get('router')->generate('StriideInventoryBundle_admin_item_new'),\n 'label' => $this->get('translator')->trans('Create new Item'))\n )\n ));\n }",
"public function create()\n {\n return view('backend.product.product-add')->with([\n 'items' => $this->itemService->itemDropdown()\n ]);\n }",
"public function create()\n {\n //To show the required create page when its clicked\n return view('receive.create');\n }",
"public function newAction()\n {\n $entity = new Items();\n $form = $this->createForm(new ItemsType(), $entity);\n\n return $this->render('DiverPriceLisrBundle:Items:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }",
"public function create()\n {\n return view('backend.menu.create');\n }",
"public function actionCreate()\n {\n $this->isCreateView = true;\n $modelClass = $this->_getModelClass();\n $model = new $modelClass;\n return $this->_renderView($model);\n }",
"public function create()\n {\n //\n return view('cores.addItem');\n }",
"public function create()\n\t{\n\t\treturn View::make('admin.banner.create-detail');\n\t}",
"public function create()\n {\n $categories = Category::all();\n return view('AdministratorPages.item.create')->with('categories', $categories);\n }",
"public function create()\n {\n return view('pages.restaurant.expense.expenseItem.create');\n }",
"public function create()\n {\n $data = Category::all();\n return view('admin.item.create', compact('data'));\n }",
"public function create()\n {\n return view('seller.create')\n ->with('isCreate', true);\n }",
"public function create()\n {\n return view('admin_panel.item_types.create');\n }",
"public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}",
"public function create()\n {\n return view('detailpaket.create');\n }",
"public function create()\n {\n BreadcrumbsRegister::Register($this->ModelName,$this->BreadCrumbName);\n return view('admin.products.create')->with(['title' => $this->BreadCrumbName]);\n }",
"public function actionCreateItem()\r\n {\r\n $catalogItem = new CatalogItem(['scenario' => 'create']);\r\n\r\n if($catalogItem->load(Yii::$app->request->post()) && $catalogItem->save())\r\n {\r\n $this->redirect(['/admin/catalog/index', 'id' => $catalogItem->id]);\r\n }\r\n\r\n $catalog = new Catalog();\r\n\r\n return $this->render(\r\n 'create',\r\n [\r\n 'catalog' => $catalog,\r\n 'catalogItem' => $catalogItem,\r\n ]\r\n );\r\n }",
"public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }",
"public function create()\n\t{\n\t\t\n\t\treturn view('product.create');\n\t}",
"public function create()\n {\n $data['url'] = route($this->route . '.store');\n $data['title'] = 'Add ' . $this->viewName;\n $data['module'] = $this->viewName;\n $data['resourcePath'] = $this->view;\n $data['route'] = $this->route;\n\n return view('admin.general.create')->with($data);\n }",
"public function create()\n {\n $data['url'] = route($this->route . '.store');\n $data['title'] = 'Add ' . $this->viewName;\n $data['module'] = $this->viewName;\n $data['resourcePath'] = $this->view;\n $data['route'] = $this->route;\n\n return view('admin.general.create')->with($data);\n }",
"public function create()\n {\n $this->load->view('theme/header');\n $this->load->view('itemCRUD/create');\n $this->load->view('theme/footer'); \n }",
"public function create()\n {\n return view(\"List.form\");\n }",
"public function create()\n {\n //\n // $item = Item::with(['unit','category'])->first();\n $section_header = \"Create Item\";\n $unit= Unit::all();\n $category = Category::all();\n return view('product.item.item_create',compact(['unit','category','section_header']));\n }",
"public function create() {\n $categories = Category::all();\n return view('dashboard.item.item-add',compact('categories'));\n }",
"public function create()\n {\n abort_unless(\\Gate::allows('item_create'), 403);\n\n $kategori = ItemCategory::all()->pluck('nama','id');\n $unit = ItemUnit::all()->pluck('nama','id');\n\n return view('admin.item.create',\\compact('kategori','unit'));\n }",
"public function create()\n {\n return view('catalog::create');\n }",
"public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }",
"public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}",
"public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }",
"public function create()\n {\n return view('list.create');\n }",
"public function create()\n\t{\n\t\t//\n\t\t $id = Request::all(); \n\t\t $item_product_id = $id['pid'];\n\t\t return view(\"product.items_create\",compact('item_product_id'))->render();\n\t}",
"public function create()\r\n {\r\n //\r\n return view('Listing');\r\n }",
"public function create()\n\t{\n\t\treturn \\View::make('manager.create', [\n\t\t\t'entity' => new Category(),\n\t\t\t'slug' => 'category',\n\t\t\t'routeSlug' => 'catalog.categories',\n\t\t]);\n\t}",
"public function create()\n {\n $items = Item::all();\n $cats = Person_catrgory::where('category_type','=',1)->get();\n $clients = Person::where('person_type_id', 101)->orderBy('created_at', 'Desc')->get();\n\n return view($this->viewName . 'add', compact('items', 'cats', 'clients'));\n }",
"public function create()\n {\n return view('restful.add');\n }",
"public function create()\n {\n return view('orders.create')->with([\n 'items' => Item::all()\n ]);\n }",
"public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}",
"public function create()\n {\n return view('backend.product.create');\n }",
"public function create()\n {\n BreadcrumbsRegister::Register($this->ModelName,$this->BreadCrumbName);\n return view('admin.news_interactions.create');\n }",
"public function create()\n {\n $title = \"Create New type for the Items\";\n return view('admin.types.create', compact('title'));\n }",
"public function create()\n {\n //显示添加页\n return view('admin.navigation.create');\n }",
"public function create()\n {\n return view('admin.items.create',\n ['categories' => Taxonomy::with(['translates' => function ($query){\n $query->where('lang', auth()->user()->lang);\n }])->type('item_category')\n ->get(),\n 'attributes' => Attribute::all(),\n ]);\n }",
"public function create()\n {\n return view($this->module.'.create');\n }",
"public function create()\n {\n return $this->view('create');\n }",
"public function create()\n {\n return view('product.add');\n }",
"public function create()\n {\n return view('back/createshareitem')->with(\"categories\", ShareCategory::all());\n }",
"public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}",
"public function create()\n {\n return view(\"admin.product.create\");\n }",
"public function create()\n {\n return view('workcenter.inventory.create');\n }",
"public function create()\n {\t\n //\n\t\treturn view('products.create');\n }",
"public function create()\n {\n return view('sell.create');\n }",
"public function getCreate()\n\t{\n\t\treturn View::make('liceos.create');\n\t}",
"public function create()\n {\n return View::make('purchasereturndetails.create');\n }",
"public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}",
"public function create()\n {\n return view('dashboard.product.add')->with([\n 'title' => 'Ajouter Product'\n ]);\n }",
"public function create()\n {\n return view('widgetsmodule::acheive.create');\n }",
"public function create()\n {\n return $this->showForm('create');\n }",
"public function create()\n {\n return $this->showForm('create');\n }",
"public function create()\n {\n $title = $this->title;\n $module_name = $this->module_name;\n $module_icon = $this->module_icon;\n $module_action = \"Create\";\n\n return view(\"backend.$module_name.create\", compact('title', 'module_name', 'module_icon', 'module_action'));\n }",
"public function create()\n\t{\n\t\treturn View::make('quantridonvi.create');\n\t}",
"public function create()\n {\n //\n return view('object.create');\n }",
"public function create() {\n\t\t$title = trans( 'invoice.new' );\n\t\t$this->generateParams();\n\n\t\treturn view( 'layouts.create', compact( 'title' ) );\n\t}"
] | [
"0.8521509",
"0.8513242",
"0.8471215",
"0.84537995",
"0.8431904",
"0.8402875",
"0.8331901",
"0.8313873",
"0.8249103",
"0.824609",
"0.8226069",
"0.8134991",
"0.8131095",
"0.812354",
"0.812354",
"0.8118362",
"0.80606484",
"0.7960095",
"0.7900867",
"0.7866851",
"0.7858469",
"0.78548986",
"0.78482985",
"0.7845606",
"0.7829374",
"0.77916753",
"0.7752322",
"0.7714556",
"0.7702623",
"0.7695385",
"0.76753205",
"0.7624107",
"0.76109445",
"0.7568665",
"0.75627524",
"0.75607085",
"0.75560176",
"0.75512993",
"0.75450265",
"0.75289637",
"0.7526255",
"0.7520757",
"0.7508198",
"0.75038147",
"0.74978244",
"0.74976027",
"0.7486471",
"0.74861044",
"0.7482908",
"0.74715847",
"0.7462143",
"0.7458494",
"0.74569863",
"0.74552834",
"0.7452403",
"0.74429786",
"0.74401087",
"0.7432034",
"0.7432034",
"0.74271476",
"0.74124825",
"0.74117917",
"0.74100757",
"0.7403405",
"0.73995507",
"0.73978406",
"0.73965496",
"0.73935014",
"0.73830867",
"0.73816425",
"0.7376376",
"0.73703647",
"0.73683923",
"0.736822",
"0.7366452",
"0.73562264",
"0.7353481",
"0.73487324",
"0.73421216",
"0.7340967",
"0.7340003",
"0.7338588",
"0.73365587",
"0.7334382",
"0.7331921",
"0.7326763",
"0.7323959",
"0.73223644",
"0.7320615",
"0.7313459",
"0.73047876",
"0.730081",
"0.7298939",
"0.7296387",
"0.72951293",
"0.72945374",
"0.72945374",
"0.7294177",
"0.72898936",
"0.72895664",
"0.728948"
] | 0.0 | -1 |
Method for storing the new item in the application. | public function store(ItemFormRequest $request, Item $item): RedirectResponse
{
$request->merge(['item_code' => $item->generateItemCode()]);
DB::transaction(static function () use ($request, $item): void {
$location = auth()->user()->location->id;
$item = $item->create($request->except(['location', 'category']));
$item->location()->associate($location)->save();
$item->category()->associate($request->category)->save();
flash(ucfirst($item->name) . ' is toegevoegd in de applicatie');
});
return redirect()->route('coordinator.home');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createNewItem();",
"public function insert()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->newItemEntry();\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $this->getEntry()->setItemType($this->_getItemType());\n $entry = $service->insertGbaseItem($this->getEntry());\n $this->setEntry($entry);\n $entryId = $this->getEntry()->getId();\n $published = $this->gBaseDate2DateTime($this->getEntry()->getPublished()->getText());\n $this->getItem()\n ->setGbaseItemId($entryId)\n ->setPublished($published);\n\n if ($expires = $this->_getAttributeValue('expiration_date')) {\n $expires = $this->gBaseDate2DateTime($expires);\n $this->getItem()->setExpires($expires);\n }\n }",
"abstract protected function saveItems();",
"private function saveItems()\n {\n $this->storage->save($this->items);\n }",
"public function store()\n {\n # code...\n $item = new Item();\n\n $item->item_name = request('itemname');\n $item->price = request('itemprice');\n $item->itemCategory = request('type');\n $item->save();\n return redirect()->route('item.index');\n }",
"function storeAndNew() {\n $this->store();\n }",
"abstract public function add_item();",
"public function store()\n {\n $command = new PostNewItemCommand(Input::get('title'), Input::get('currency'), Input::get('price'), Auth::user()->getAuthIdentifier());\n return $this->commandBus->execute($command);\n\n }",
"function addItemToDB()\n {\n $this->database->addItemToDB($this);\n }",
"function save()\r\n {\r\n $GLOBALS['DB']->exec(\"INSERT INTO inventory_items (name) VALUES ('{$this->getName()}')\");\r\n $this->id = $GLOBALS['DB']->lastInsertId();\r\n }",
"public function store(ItemRequest $request)\n {\n Item::create($request->all());\n\n return back();\n }",
"public function store(ItemFormRequest $request)\n {\n $item = Item::create($request->all());\n flash('New item has been added!', 'success');\n return redirect('items');\n }",
"public function store(Requests\\StoreItemRequest $request)\n {\n // $input = $request->all();\n // dd($input);\n // $item = new Item;\n // $item->name = $input['name'];\n // $item->unit = $input['unit'];\n // $item->description = $input['description'];\n // $item->save();\n \t\tItem::create($request->all());\n return redirect()->route('items.index')\n \t\t\t\t\t\t\t\t ->with('success', 'Item created successfully.');\n }",
"public function save() {\r\n /** probably we should add a timestamp, Item ID and stuff */\r\n $stored_data = json_encode(array($this->name, $this->status), JSON_UNESCAPED_UNICODE);\r\n $this->db_write(\"objects\", \"Item_s11n\", $stored_data);\r\n print ($stored_data);\r\n }",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\n\t{\n\t\t\n\t\t//\n\t}",
"private function persist() {\n $session = new Session();\n $items = $this->getItems();\n $session->set('inspiration_board', json_encode($items));\n }",
"public function create()\n {\n // Not needed cause this is coming from the item listing\n }",
"public function store()\n {\n $this->preStoreActions($this->data);\n\n //check all the fields\n $this->validate();\n\n //save to the database\n $this->save();\n\n //do broadcast\n //$this->broadcastUpdate(\"Updated Menu for - \".Str::limit($this->accountName,50));\n\n //tidy up\n $this->afterStore($this->data['id'] ?? '');\n\n //run a user specific method IF installed and needed after save\n $this->afterStoreActions($this->data);\n }",
"public function add($item);",
"public function add($item);",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}"
] | [
"0.7153127",
"0.6742037",
"0.6681948",
"0.65785134",
"0.6573818",
"0.65452904",
"0.65388566",
"0.65338904",
"0.652992",
"0.6483176",
"0.6462975",
"0.64616394",
"0.6441762",
"0.6386628",
"0.63806474",
"0.63806474",
"0.63806474",
"0.63798577",
"0.63760185",
"0.6335225",
"0.63197625",
"0.63114506",
"0.63114506",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401",
"0.6308401"
] | 0.0 | -1 |
Get the created at in a more readable userfriendly format | public function getDateCreatedAttribute()
{
return Carbon::parse($this->created_at)->format('d-m-Y');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCreatedAtText()\n {\n return Yii::$app->getFormatter()->asDateTime($this->created_at);\n }",
"function getFormattedCreatedDateTime()\r\n {\r\n return $this->created_at->format('d/m/Y H:i:s');\r\n }",
"public function getFormattedCreatedAt(): string\n {\n\n return $this->createdAt->format('d-m-Y H:m');\n\n }",
"public function createdAt() {\n return $this->_formatDate($this->created_at);\n }",
"public function getCreatedAt(): string\n {\n return $this->createdAt;\n }",
"public function getCreatedAt(): string\n {\n return $this->createdAt;\n }",
"public function createdAt(): string\n {\n return $this->createdAt;\n }",
"public function createdAt(){\n return $this->created_at->format('d/m/Y H:i:s');\n }",
"public function getCreatedAt()\n {\n return $this->createdAt->format(\"d-m-y à H:i:s\");\n }",
"function getFormattedCreatedDate()\r\n {\r\n return $this->created_at->format('d/m/y');\r\n }",
"public function createdAt();",
"public function createdAt();",
"public function humanCreatedAt()\n {\n $datetime = new \\Datetime($this->attributes['created_at'], new \\DatetimeZone(config('app.timezone')));\n return $datetime->format(config('date_formats.datetime'));\n }",
"public function getCreatedAt(){\n return $this->_getData(self::CREATED_AT);\n }",
"public function getCreated() : string\n {\n return $this->created;\n }",
"public function getCreateAt()\n {\n return $this->create_at;\n }",
"public function forcreated(){\n $created = $this->created_at;\n $newcreated = date('d-m-Y',strtotime(str_replace('/', '-', $created)));\n return $newcreated;\n }",
"public function getCreate_at()\n {\n return $this->create_at;\n }",
"public function getCreate_at()\n {\n return $this->create_at;\n }",
"public function getCreatedAt(): string;",
"public function getCreatedAt(): string;",
"public function getDateCreated() {\n return Yii::app()->dateFormatter->format(\"HH:mm\",$this->createTime).\" \".Yii::app()->dateFormatter->format(Yii::app()->locale->dateFormat,$this->createTime);\n }",
"public function getCreatedAt()\n {\n return $this->object->getCreatedAt();\n }",
"public function getCreatedAt()\n {\n return $this->object->getCreatedAt();\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->created_at;\n }",
"public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}",
"public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}",
"public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}",
"public function created_at()\n {\n return $this->date($this->created_at);\n }",
"public function created_at()\n {\n return ExpressiveDate::make($this->created_at)->getRelativeDate();\n }",
"public function getCreated_at()\n {\n return $this->created_at;\n }",
"public function getCreated_at()\n {\n return $this->created_at;\n }",
"public function getCreated_at()\n {\n return $this->created_at;\n }",
"public function getCreated_at()\n {\n return $this->created_at;\n }",
"public function getReadableCreatedAtAttribute()\n {\n return is_null($this->created_at)? null : Carbon::parse($this->created_at)->format('d/m/Y | H:i');\n }",
"public function getCreatedAt()\n {\n return $this->getProperty(self::CREATED_AT);\n }",
"public function getReadableCreatedAtAttribute(): string\n {\n return $this->created_at->diffForHumans();\n }",
"public function getCreatedAt()\n {\n return $this->data['fields']['created_at'];\n }",
"public function created() {\n\t\treturn gmdate( 'Y-m-d\\TH:i:s\\Z' );\n\t}",
"public function created_at()\n {\n return $this->object->created_at;\n }",
"public function getCreatedAt()\n {\n return $this->sys->getCreatedAt();\n }",
"public function getCreated_at() {\n return $this->_created_at;\n }",
"public function getCreatedAt()\n {\n return $this->_created_at;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt()\n {\n return $this->createdAt;\n }",
"public function getCreatedAt() {\n return $this->attributes['created_at'];\n }",
"public function getCreatedAt () {\n return $this->createdAt;\n }",
"public function getCreatedAt() \r\n {\r\n return $this->createdAt;\r\n }",
"public function getCreatedAt()\n {\n return $this->CreatedAt;\n }",
"public function getCreatedAt()\n {\n return $this->getResolved()->getCreatedAt();\n }",
"public function getCreatedAttribute() {\n $timestamp = strtotime($this->created_at);\t\n\t \n $strTime = array(\"second\", \"minute\", \"hour\", \"day\", \"month\", \"year\");\n $length = array(\"60\",\"60\",\"24\",\"30\",\"12\",\"10\");\n\n $currentTime = time();\n if($currentTime >= $timestamp) {\n $diff = time()- $timestamp;\n for($i = 0; $diff >= $length[$i] && $i < count($length)-1; $i++) {\n $diff = $diff / $length[$i];\n }\n\n $diff = round($diff);\n return $diff . \" \" . $strTime[$i] . \"(s) ago \";\n }\n }",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();",
"public function getCreatedAt();"
] | [
"0.8116333",
"0.8014908",
"0.7867258",
"0.78535014",
"0.77972764",
"0.77972764",
"0.77828866",
"0.7692976",
"0.7689015",
"0.765734",
"0.7614347",
"0.7614347",
"0.7608014",
"0.75539625",
"0.75257903",
"0.7497665",
"0.74621",
"0.7442",
"0.7442",
"0.74393976",
"0.74393976",
"0.74203056",
"0.7407238",
"0.7407238",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73990923",
"0.73937845",
"0.73937845",
"0.73937845",
"0.73825896",
"0.73660135",
"0.7365735",
"0.7365735",
"0.7365735",
"0.7365735",
"0.7364043",
"0.7341513",
"0.7338382",
"0.732107",
"0.7305302",
"0.7298475",
"0.72974217",
"0.7286204",
"0.7281785",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72812235",
"0.72743785",
"0.72729856",
"0.7265923",
"0.72444004",
"0.72421384",
"0.7225379",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593",
"0.72211593"
] | 0.0 | -1 |
Get the code attribute | public function getCodeAttribute()
{
return $this->id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCode() {\n return @$this->attributes['code'];\n }",
"public function getAttributeCode()\r\n {\r\n return $this->getAttribute()->getAttributeCode();\r\n }",
"public function get_code() {\n\t\treturn $this->code;\n\t}",
"public function getCode()\n {\n return $this->getValueObject('code');\n }",
"public function getCode()\n {\n return $this->__get(\"code\");\n }",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode() {\n\t\treturn $this->code;\n\t}",
"public function getCode() {\n\t\treturn $this->code;\n\t}",
"public function getCode() {\n\t\treturn $this->code;\n\t}",
"function getCode()\r\n {\r\n return $this->code;\r\n }",
"public function getCode() {\n return $this->code;\n }",
"public function getCode() {\n return $this->code;\n }",
"public function getCode()\n\t{\n\t\treturn $this->code;\n\t}",
"public function getCode()\n\t{\n\t\treturn $this->code;\n\t}",
"public function getCode()\n\t{\n\t\treturn $this->code;\n\t}",
"public function getCode() {return $this->code;}",
"function getCode()\n {\n return $this->code;\n }",
"public function getCode() { return $this->code; }",
"public function getCode() {\n return $this->get(self::CODE);\n }",
"public function getCode()\n {\n return $this->get(self::CODE);\n }",
"public function getCode()\r\n {\r\n return $this->code;\r\n }",
"public function getCode() {}",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode() {\n return $this->code;\n }",
"public function getcode()\n {\n return $this->code;\n }",
"public function getCode(): string\n {\n return $this->code;\n }",
"public function getCode(): string\n {\n return $this->code;\n }",
"public function getCode(): string\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->values[\"code\"];\n }",
"public function getCode() {\n return $this->parse()['code'];\n }",
"public function getCode()\n {\n return $this->_code;\n }",
"public function getCode()\n {\n return $this->_code;\n }",
"public function getCode()\n {\n return $this->_code;\n }",
"final function getCode();",
"public function getCode()\n {\n return $this->data[1];\n }",
"public function getCode()\n {\n return $this->getData()->code;\n }",
"public function code()\n {\n return $this->code;\n }",
"public function code()\n {\n return $this->code;\n }",
"public function getCode() {\r\n return $this->__code;\r\n }",
"public function GetCode () \r\n\t{\r\n\t\treturn ($Code);\r\n\t}",
"public function Code()\n {\n return $this->code;\n }",
"public function getCode() : string\n {\n return $this->_code;\n }",
"public function getCode(): string;",
"public function getCode(): string;",
"public function getCode(): string;",
"public function getCode()\n {\n }",
"public function getCode()\n {\n return static::CODE;\n }",
"public function getCode()\n\t{\n\t\treturn $this->_options['code'];\n\t}",
"public function getCode():string;",
"public function getCode()\n {\n return $this->get(self::ENTRY_CODE);\n }",
"protected function getAttribute($code)\n {\n $attributeValue = '';\n\n $attribute = $this->getProduct()->getResource()->getAttribute($code);\n\n if (!$attribute) return $attributeValue;\n\n if (in_array($attribute->getFrontendInput(), ['select', 'multiselect'])) {\n $attributeValue = $this->getProduct()->getAttributeText($code);\n } else {\n $attributeValue = $this->getProduct()->getData($code);\n }\n\n return $attributeValue;\n }",
"public function getCode()\n {\n $this->code = $_GET['code'];\n return $this->code;\n\n }",
"public function getAttributeCode(){\n\t\t$code = 'brand_name';\n\t\treturn $code;\n\t}",
"function code($code=null)\n {\n if (isset($code)) $this->code = $code;\n return $this->code;\n }",
"function code_value()\n {\n return app('code_value');\n }",
"public function getCode()\n {\n if (is_null($this->code)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_CODE);\n if (is_null($data)) {\n return null;\n }\n $this->code = (string) $data;\n }\n\n return $this->code;\n }",
"public function getAttribute($code)\n {\n if (!isset($this->_attributes[$code])) {\n $this->_attributes[$code] = $this->getCustomerModel()->getResource()->getAttribute($code);\n }\n return $this->_attributes[$code];\n }",
"protected function getCode()\n {\n return $this->request->input('code');\n }",
"protected function getCode()\n {\n return $this->request->input('code');\n }",
"public function getCode() {\n\t\treturn $this->languagCode;\n\t}",
"public function getCodeRef()\n {\n return $this->codeRef;\n }",
"public function getCode() : int;",
"public function getCodeName(): string;",
"public function getCode(): int\n {\n return $this->code;\n }",
"public function getCode(): int;",
"public function getCodeType()\n {\n return $this->codeType;\n }",
"public function getCode()\n {\n if ($this->iata != null)\n return $this->iata;\n return $this->icao;\n }",
"public function getCode() {\n return $this->request->query->get(\"code\") != NULL ? $this->request->query->get(\"code\") : \"\";\n }",
"public function getEventCode() \n {\n return $this->_fields['EventCode']['FieldValue'];\n }",
"public function getDocCode()\n {\n return $this->doc_code;\n }",
"public function getCode(): ?string\n {\n return $this->code;\n }"
] | [
"0.8766521",
"0.8017696",
"0.7929307",
"0.7892651",
"0.7877565",
"0.78488374",
"0.78488374",
"0.78488374",
"0.78488374",
"0.78488374",
"0.78488374",
"0.78412217",
"0.78412217",
"0.78412217",
"0.7833364",
"0.7825513",
"0.7825513",
"0.7820288",
"0.7820288",
"0.7820288",
"0.78058153",
"0.7785102",
"0.77729756",
"0.77702117",
"0.77685255",
"0.77650696",
"0.7762956",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.775427",
"0.77270716",
"0.7714516",
"0.76852417",
"0.76852417",
"0.76852417",
"0.76852137",
"0.766755",
"0.7659878",
"0.7659878",
"0.7659878",
"0.76352817",
"0.7624587",
"0.7602511",
"0.75988555",
"0.75988555",
"0.75821626",
"0.7568923",
"0.7526878",
"0.75024205",
"0.7490042",
"0.7490042",
"0.7490042",
"0.746287",
"0.7414672",
"0.73885816",
"0.7342272",
"0.7259474",
"0.72164714",
"0.72140354",
"0.72036254",
"0.71791285",
"0.7129341",
"0.70638967",
"0.7051181",
"0.70441055",
"0.70441055",
"0.70109457",
"0.6979644",
"0.69698626",
"0.68908036",
"0.6871727",
"0.68574977",
"0.68487203",
"0.6844282",
"0.67795897",
"0.6692553",
"0.6662203",
"0.6652589"
] | 0.71291703 | 84 |
Many to many relation with users departments | public function users() : BelongsToMany
{
return $this->belongsToMany(User::class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function userdepartments()\n {\n return $this->belongsToMany(\n config('core.acl.department'), \n config('core.acl.user_role_department')\n )->withPivot('user_id');\n }",
"public function departments()\n {\n return $this->belongsToMany('App\\Models\\Department');\n }",
"public function departments()\n {\n return $this->belongsToMany(\n config('core.acl.department'), \n config('core.acl.departments_roles_table'), \n 'role_id', \n 'department_id'\n );\n }",
"public function departments() : BelongsToMany\n {\n return $this->belongsToMany(Department::class);\n }",
"public function users()\n {\n return $this->belongsToMany(\n config('core.acl.user'), \n config('core.acl.user_role_department')\n )->withPivot('department_id');\n }",
"public function department() {\n\t\treturn $this->has_many_and_belongs_to('Department', 'department_members');\n\t}",
"public function getUsersDepartments()\n\t{\n\t\t$db = $this->getDbTable()->getAdapter();\n\t\t$select = $db->select()\n\t\t\t->from(array('u' => 'users'), array('user_id', 'name', 'surname', 'patronymic'))\n\t\t\t->joinLeft(array('ud' => 'users_departments'),\n\t\t\t\t'ud.user_id = u.user_id', array('department_id', 'chief'));\n\t\treturn $db->fetchAll($select);\t\n\t}",
"public function userDepartment()\n {\n return $this->belongsTo('PanicHD\\PanicHD\\Models\\Department', 'ticketit_department', 'id');\n }",
"public function departments() {\n return $this->hasMany('Department')->orderBy('name');\n }",
"public function completed_users()\n {\n return $this->belongsToMany(\n User::class,\n CompletedSentence::class,\n 'sentence_id',\n 'user_id',\n 'id',\n 'id'\n );\n }",
"public function heads()\n {\n return $this->belongsToMany(User::class,'department_head', 'department_id','user_id')\n ->withPivot('main');\n }",
"public function getUserProfiles()\n {\n return $this->hasMany(UserProfile::class, ['department_id' => 'id']);\n }",
"public function admins()\n {\n return $this->belongsToMany(User::class, 'port_user', 'port_id', 'user_id');\n }",
"public function users()\n {\n return $this->belongsToMany('App\\Models\\User', 'user_team_join', 'team_id', 'user_id');\n }",
"public function departmentId() {\n return $this->hasMany('App\\Member_Department_Map')->select('member_id', 'department_id');\n }",
"public function participants()\n{\n\treturn $this->belongsToMany(User::class);\n}",
"public function subdepartments()\n {\n return $this->hasMany(Department::class,'parent');\n }",
"public function users(): BelongsToMany\n {\n return $this->belongsToMany(Hotstream::userModel(), Hotstream::membershipModel())\n ->withPivot('role')\n ->withTimestamps()\n ->as('membership');\n }",
"public function members(){\n return $this->belongsToMany('App\\User', 'team_members');\n }",
"public function users(): BelongsToMany\n {\n return $this->belongsToMany(\n 'App\\User',\n config('permission.table_names.role_tenant_user')\n );\n }",
"public function department()\n {\n return $this->belongsTo('App\\Department');\n }",
"public function department()\n {\n return $this->belongsTo('App\\Department');\n }",
"public function department()\n {\n return $this->belongsTo('App\\Department');\n }",
"public function department()\n {\n return $this->belongsTo('App\\Department');\n }",
"public function userJoin() {\n return $this->belongsToMany('App\\Model\\User', 'trip_users');\n }",
"public function users() {\n return $this->belongsToMany('App\\User','users_courses','courses_id','users_id');\n\t }",
"public function department()\n {\n return $this->belongsTo('App\\Models\\core\\Department', 'department_id');\n }",
"public function department() {\n return $this->belongsTo(Department::class);\n }",
"public function departures()\n {\n return $this->hasMany(Departure::class, 'from_port_id');\n }",
"public function department()\n\t{\n\t\treturn $this->belongsTo('PanicHD\\PanicHD\\Models\\Department');\n\t}",
"public function departamentos(){\n return $this->belongsTo('App\\Departamento', 'departamento_id');\n }",
"public function department()\n {\n return $this->belongsTo(Department::class);\n }",
"public function department()\n {\n return $this->belongsTo(Department::class);\n }",
"public function department()\n {\n return $this->belongsTo(Department::class);\n }",
"public function users()\n {\n return $this->belongsToMany('App\\User', 'user__positions', 'position_id', 'user_id');\n }",
"public function getDepartmentUsers()\n {\n # code...\n $dept_id = auth()->user()->department_id;\n $users = User::where('department_id', $dept_id)->get();\n return response()->json(['users'=>$users]);\n }",
"public function manyToManyRelation(Request $request){\n $userData = User::with('getUserRoles')->get();\n $roleData = Role::with('getRoleUsers')->get();\n \n return view('pages.many_to_many', compact('userData', 'roleData'));\n }",
"public function departmentTasks()\n {\n return $this->hasMany('App\\DepartmentTask');\n }",
"public function users(){\n return $this->belongsToMany(User::class, 'user_article', 'article_id','user_id');\n }",
"public function users()\n {\n return $this->belongsToMany(User::class, 'user_technologies');\n }",
"public function department()\n {\n return $this->belongsTo('App\\Models\\Department','department_code','department_code');\n }",
"public function users(){\n return $this->belongsToMany('App\\User');\n }",
"public function employees(): BelongsToMany\n {\n return $this->belongsToMany(\n User::class,\n 'employee_manager',\n 'manager_id',\n 'employee_id'\n )->withTimestamps();\n\n }",
"public function users(){\n return $this->belongsToMany('App\\User');\n }",
"public function departures()\n {\n return $this->belongsToMany(Departure::class, 'departure_tax', 'tax_id', 'departure_id');\n }",
"public function teams(): BelongsToMany\n {\n return $this\n ->belongsToMany(\n Team::class,\n 'team_user',\n 'user_id',\n 'team_id'\n );\n }",
"public function users()\n {\n /** @var \\UserFrosting\\Sprinkle\\Core\\Util\\ClassMapper $classMapper */\n $classMapper = static::$ci->classMapper;\n\n return $this->belongsToManyThrough(\n $classMapper->getClassMapping('user'),\n $classMapper->getClassMapping('role'),\n 'permission_roles',\n 'permission_id',\n 'role_id',\n 'role_users',\n 'role_id',\n 'user_id'\n );\n }",
"public function users()\n {\n return $this->belongsToMany('App\\User', 'meeting_user');\n }",
"public function getRelatedDepartments()\n\t{\n if (is_null($this->department)) return [];\n\n $member_department = $this->department()->get();\n\n\t\tif ($this->department()->first()->is_main()){\n\t\t\treturn $member_department->merge($this->department()->first()->descendants()->get());\n\t\t}else{\n\t\t\treturn $member_department->merge($this->department()->first()->ancestor()->get());\n\t\t}\n\t}",
"public function users()\n {\n return $this->belongsToMany(User::class,'element_user','element_id','user_id')->withTimestamps();\n }",
"public function users(){\n return $this->belongsToMany(Config::get('auth.providers.users.model'), Config::get('entrust.role_user_table'),Config::get('entrust.role_foreign_key'),Config::get('entrust.user_foreign_key'));\n // return $this->belongsToMany(Config::get('auth.model'), Config::get('entrust.role_user_table'));\n }",
"public function departamentos(){\n \treturn $this->hasMany(Departamento::class, 'id_ministerio_departamento', 'id_ministerio_departamento')->where('bo_activo', true)->where('bo_estado', 1);//->orderBy('email');\n }",
"public function organisations(){\n return $this->belongsToMany(Organisation::class);\n }",
"public function participants()\n {\n return $this->belongsToMany(User::class)->withPivot('project_role_id');\n }",
"public function department()\n {\n return $this->belongsTo(Department::class,'d_id');\n }",
"public function dept()\n {\n return $this->belongsTo('App\\Department','dept_id','id');\n }",
"public function member_department_maps() {\n return $this->hasMany('App\\Member_Department_Map');\n }",
"public function participants()\n {\n return $this->belongsToMany(User::class, 'conversation_participants', 'conversation_id', 'user_id');\n }",
"public function students(){\n return $this->belongsToMany('App\\Models\\User');\n }",
"public function users(): BelongsToMany\n {\n return $this->belongsToMany(User::class)->using(AchievementUser::class)->withTimestamps();\n }",
"public function getDepartment()\n {\n return $this->hasOne(Departments::className(), ['ID' => 'DepartmentID']);\n }",
"public function user() {\n return $this->belongsToMany('App\\User');\n }",
"public function users(){\n return $this->belongsToMany('cms\\User');\n }",
"public function user() {\n return $this->belongsToMany('\\App\\User');\n }",
"function getUserDepartments($user) {\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n\r\n return $data->getUserDepartments($user);\r\n\r\n }",
"public function users(): BelongsToMany\n {\n return $this->belongsToMany(\n User::class,\n 'user_roles',\n 'role_id',\n 'user_id'\n );\n }",
"public function usersAndTeamsView(): HasMany\n {\n return $this\n ->hasMany(\n UserAndTeam::class,\n 'entity_id',\n 'id'\n )\n ->where('type', UserAndTeam::TYPE_USER);\n }",
"public function users()\n {\n return $this->belongsToMany('App\\User')->withPivot('team')->withTimestamps();\n }",
"public function users(){\n\t\treturn $this->belongsToMany('Alsaudi\\\\Eloquent\\\\UserRelation',\n\t\t\t'trip_user','trip_id','user_id');\n\t}",
"public function users()\n {\n return $this->belongsToMany(Config::get('guardian.user'), Config::get('guardian.role_user_table'), Config::get('guardian.role_foreign_key'), Config::get('guardian.user_foreign_key'));\n }",
"public function student()\n {\n return $this->hasMany(StudentManage::class, 'department_id');\n }",
"public function users() {\n return $this->belongsToMany('App\\User');\n }",
"public function users()\n {\n return $this->belongsToMany('App\\User');\n\n }",
"public function members(){\n return $this->belongsToMany(User::class,'classes_users','class','user');\n }",
"public function students() {\n return $this->belongsToMany('App\\Models\\User');\n }",
"public function supportticket(){\n return $this->hasMany('App\\SupportTicket', 'department_id', 'id');\n }",
"private function addDepartments($email, $departments)\r\n {\r\n foreach ($departments as $departmentid)\r\n {\r\n $sqlQuery = \"INSERT INTO user_department (useremail, departmentid) VALUES ('$email', $departmentid)\";\r\n $this->_dbHandle->exec($sqlQuery);\r\n }\r\n }",
"public function users()\n {\n return $this\n ->belongsToMany(User::class, 'user_skills', 'user_id', 'skill_id');\n }",
"public function users()\n {\n return $this->belongsToMany(\n Spark::userModel(), 'team_users', 'team_id', 'user_id'\n )->withPivot('role');\n }",
"public function users()\n {\n # Define a many-to-many relationship.\n return $this->belongsToMany('\\PeerReview\\User')->withTimestamps();\n }",
"public function members()\n\t{\n return $this->belongsToMany('App\\Models\\User', 'team_user')\n ->withPivot(['is_admin']);\n\t}",
"public function users() {\n\t\treturn $this->belongsToMany('User', 'project_user', 'project_id', 'user_id');\n\t}",
"public function getDepartment()\n {\n return $this->hasOne(Department::className(), ['id' => 'department_id']);\n }",
"public function managers(): BelongsToMany\n {\n return $this->belongsToMany(\n User::class,\n 'employee_manager',\n 'employee_id',\n 'manager_id'\n )->withTimestamps();\n }",
"public function teams(){\n\t\treturn $this->belongsToMany('App\\Team','part_of');\n\t}",
"public function users() {\n return $this -> belongsToMany(Author::class);\n }",
"public function users()\n {\n return $this->belongsToMany('App\\User', 'user_product')->withTimestamps();\n }",
"public function users(){\n return $this->belongsToMany(User::class);\n }",
"public function users()\n {\n return $this->belongsToMany('App\\User', 'role_assign')\n ->withPivot('id', 'entity_type', 'entity_id')\n ->withTimestamps();\n }",
"public function users(): BelongsToMany\n {\n return $this->belongsToMany(HCUser::class, HCUserRole::getTableName(), 'role_id', 'user_id');\n }",
"public function Usuarios()\n {\n return $this->belongsToMany('App\\Models\\Users', 'users_empresas');\n }",
"public function followedBy(){\n return $this->belongsToMany('App\\User', 'follows', 'dog_id', 'user_id');\n }",
"public function roles(){\n return $this->belongsToMany('App\\Role', 'role_user', 'user_id', 'role_id');\n }",
"public function datausers(){\n return $this->belongsToMany('App\\Datauser');\n }",
"public function user()\n {\n return $this->belongsToMany('App\\User');\n }",
"public function user()\n {\n return $this->belongsToMany('App\\User');\n }",
"public function users()\n {\n return $this->belongsToMany('App\\User', 'institution_users')\n ->withTimestamps();\n }",
"public function users()\n {\n return $this->belongsToMany(Config::get('auth.providers.users.model'), Config::get('entrust-branch.role_user_table'),Config::get('entrust-branch.role_foreign_key'),Config::get('entrust-branch.user_foreign_key'));\n // return $this->belongsToMany(Config::get('auth.model'), Config::get('entrust-branch.role_user_table'));\n }",
"public function domains()\n {\n\t\t// Second argument is the name of pivot table.\n\t\t// Third & forth arguments are the names of foreign keys.\n return $this->belongsToMany('Domain', 'domain_user', 'user_id', 'domain_id')->withTimestamps();\n }",
"public function educacion_superior(){\n\t\treturn $this->hasMany('App\\EducacionSuperior', 'Sup_ID_Asp');\n\t}"
] | [
"0.7609636",
"0.7300985",
"0.7280795",
"0.72631794",
"0.68693084",
"0.664126",
"0.65675545",
"0.6417519",
"0.62982017",
"0.6127191",
"0.60717773",
"0.6062713",
"0.5999376",
"0.5984964",
"0.5959175",
"0.59463763",
"0.5932918",
"0.5917276",
"0.59156764",
"0.5893821",
"0.58883643",
"0.58883643",
"0.58883643",
"0.58883643",
"0.58620435",
"0.5857137",
"0.58498067",
"0.5838398",
"0.5833161",
"0.58244884",
"0.5806863",
"0.5778921",
"0.5778921",
"0.5778921",
"0.57780176",
"0.5765433",
"0.5765429",
"0.57541835",
"0.575228",
"0.57246834",
"0.5724073",
"0.57154614",
"0.5709245",
"0.5705778",
"0.5690042",
"0.5682704",
"0.5681002",
"0.5679735",
"0.56792843",
"0.5676218",
"0.56671196",
"0.5666375",
"0.56656235",
"0.5664263",
"0.5658464",
"0.5652769",
"0.5651204",
"0.564758",
"0.56469387",
"0.5638937",
"0.5637743",
"0.56338465",
"0.5625112",
"0.5618842",
"0.5616862",
"0.5608524",
"0.56035346",
"0.5592502",
"0.55753225",
"0.55735147",
"0.5565128",
"0.5563778",
"0.55585027",
"0.55546695",
"0.55533737",
"0.55519336",
"0.55338424",
"0.553307",
"0.55286884",
"0.55280346",
"0.5523092",
"0.5519576",
"0.5516222",
"0.5515118",
"0.55147064",
"0.5512898",
"0.5512345",
"0.55120486",
"0.5509633",
"0.5509334",
"0.5504381",
"0.5502786",
"0.54977465",
"0.54977083",
"0.5493789",
"0.5493789",
"0.54933304",
"0.5491875",
"0.54895353",
"0.5486218"
] | 0.5584343 | 68 |
Get minimized values for request body | public function getValues(): stdClass
{
$res = [];
foreach (get_object_vars($this) as $attrib => $value)
{
if (!is_null($value))
{
if ($value instanceof self)
{
$value = $value->getValues();
}
$res[$attrib] = $value;
}
}
return (object) $res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getRequestBody() {}",
"abstract public function getRequestBody();",
"public function body()\n {\n $entityBody = file_get_contents('php://input');\n\n foreach ((array)json_decode($entityBody) as $field => $value) {\n $this->requestStack[$field] = $value;\n }\n return json_decode($entityBody);\n }",
"public function get_body_params()\n {\n }",
"public function getBody() : array\n {\n if ($this->requestMethod == \"GET\") {\n $result = array(); \n foreach ($_GET as $key => $value) {\n $result[$key] = $value;\n }\n return $result;\n }\n\n if ($this->requestMethod == \"POST\") {\n $result = array();\n foreach ($_POST as $key => $value) {\n $result[$key] = filter_input(INPUT_POST, $key, FILTER_SANITIZE_SPECIAL_CHARS);\n }\n\n return $result;\n }\n\n return $body;\n }",
"public function getPayload()\n {\n return $this->request->getJsonRawBody();\n }",
"static function body()\n\t{\n\t\treturn file_get_contents('php://input');\n\t}",
"public function getParsedBody() {}",
"protected function getRequestBody()\n\t{\n\t\treturn $this->request->getContent();\n\t}",
"public function getRawRequest() {\n\t}",
"private function body()\n {\n return json_decode($this->request->all()[\"job\"], true);\n }",
"public function getRequestBody() {\n return json_encode($this->buildRequestArray());\n }",
"#[Pure]\nfunction http_get_request_body() {}",
"public function getParsedBody();",
"public function effectiveBodyAttributes()\n {\n return $this->effectiveBodyAttributes;\n }",
"public function getRawBody();",
"public function getBodyParams()\n {\n // TODO: Implement getBodyParams() method.\n }",
"public static function requestPayload() {\n return json_decode(file_get_contents('php://input'), true);\n }",
"public function body()\r\n {\r\n // Only get it once\r\n if (null === $this->body) {\r\n $this->body = @file_get_contents('php://input');\r\n }\r\n\r\n return $this->body;\r\n }",
"public function getParams()\n {\n return $this->getBody()->getParams();\n }",
"static function getBodyData(): array {\n $data = json_decode(file_get_contents('php://input'), true);\n return !is_null($data)? $data:array();\n }",
"function handle_request_body_params() {\n // Merges HTTP Request body with the instance parameters,\n // instance params have priority for security reasons\n $body = $this->get_request_body();\n $params = $body ? $this->decode($body) : null;\n $this->params = xUtil::array_merge(xUtil::arrize($params), $this->params);\n }",
"public function getBodyParameters()\n {\n return $this->bodyParameters;\n }",
"function getHttpBody() {\n return $this->httpBody;\n }",
"public function getHttpBody(): string\n {\n return $this->httpBody;\n }",
"public function getJsonRequest() {\n return json_encode($this->getRequestParams());\n }",
"public function get_body()\n {\n return json_decode(file_get_contents('php://input'), TRUE);\n }",
"protected function parse_body_params()\n {\n }",
"public static function getBody() {\r\n return @file_get_contents('php://input');\r\n }",
"protected function getRequestData()\n {\n return \\Includes\\Utils\\ArrayManager::filterByKeys(\n \\XLite\\Core\\Request::getInstance()->getData(),\n array('paymentStatus', 'shippingStatus', 'adminNotes')\n );\n }",
"public function getBodyContents()\n {\n return ($this->payload != null) \n ? $this->payload : URLUtils::formURLEncodeMap($this->bodyParams); \n }",
"public function getHttpBody()\n {\n return $this->httpBody;\n }",
"public function body() {\n\t\tif ( null === $this->_body ) {\n\t\t\t$this->_body = @file_get_contents( 'php://input' );\n\t\t}\n\n\t\treturn $this->_body;\n\t}",
"protected function _getBodyFields() {\n return array(\n 'apikey' => $this->getApiKey(),\n );\n }",
"public function getBodyParametersAsString() {\n return $this->bodyParameters ? http_build_query($this->getBodyParameters()) : null;\n }",
"public function post_body() {\n\t\treturn file_get_contents( 'php://input' );\n\t}",
"protected function getRequestBody(Request $request)\n {\n return json_decode((string) $request->getBody());\n }",
"public static function getRequestBodyStream() {}",
"public function getPostParams()\n {\n return $this->request->all();\n }",
"public function getJsonRequestParams()\n {\n return json_decode(file_get_contents(\"php://input\"));\n }",
"#[Pure]\n public function getRawRequestMessage() {}",
"public function getBody()\n {\n $body = json_decode($this->body, true);\n\n dd($body);\n }",
"private function extractParamsFromJSONBody(Request $request)\n {\n $params = array();\n\n $content = $request->getContent();\n if(!empty($content)) {\n $result = json_decode($content);\n\n if (json_last_error() === JSON_ERROR_NONE) {\n $params = $result;\n }\n }\n\n return $params;\n }",
"function bodyFilter($request){\r\n global $context;\r\n $i= new $this->model;\r\n\r\n if(!$this->authRequired){\r\n $i->supperUser();\r\n }\r\n\r\n foreach($request->body as $key=>$value){\r\n if($i->field_exists($key)){\r\n $i->where($key,$value);\r\n }\r\n }\r\n\r\n $data=$i->get();\r\n\r\n if($request->UseApi() ){\r\n json_success(\"Success\",$data);//where(['id','<','50'])->orderBy('id','desc')->limit(2,1)->\r\n }else{\r\n return $this->view(compact('data'));\r\n }\r\n }",
"private function bodyBuilder(){\n\t\t// create empty structures\n\t\t$body = new stdClass();\n\t\t$input = new stdClass();\n\n\n\t\t// add leads array to input\n\t\t$body->input = $this->leads;\n\n\t\t// if tokens exists, add them to body->input\n\t\tif (isset($this->tokens)) {\n\t\t\t$body->input->tokens = $this->tokens;\n\t\t}\n\n\t\t$json = json_encode($body, JSON_PRETTY_PRINT);\n\n\t\treturn $json;\n\t}",
"protected function body() \n\t{\n\t\tif (!$this->body instanceof stdClass)\n\t\t{\n\t\t\t$this->body = new stdClass;\n\t\t}\n\t\treturn $this->body;\n\t}",
"public function rawRequest() {\n\t\treturn $this->raw_request;\n\t}",
"private static function getPostParams()\n\t{\n\t\treturn (count($_POST) > 0) ? $_POST : json_decode(file_get_contents('php://input'), true);\n\t}",
"public function getRequestData();",
"public function getRequestData()\n {\n return json_decode($this->requestData);\n }",
"public function get_payload_request();",
"public function getBody() {\n if (!$this->body && $this->bodyParameters) {\n $contentType = $this->getHeader(Header::HEADER_CONTENT_TYPE);\n\n if (strpos($contentType, ';') !== false) {\n list($contentType, $attributes) = explode(';', $contentType);\n }\n\n if ($contentType == 'application/json') {\n $this->body = json_encode($this->bodyParameters);\n } elseif ($contentType == 'application/x-www-form-urlencoded') {\n $this->body = $this->getBodyParametersAsString();\n }\n }\n\n return $this->body;\n }",
"public function getBody() : string\n {\n if ($this->requestMethod !== \"POST\" && $this->requestMethod !== \"PUT\" && $this->requestMethod !== \"DELETE\")\n throw new \\InvalidArgumentException(\"Body is only availabe on POST/PUT requests.\");\n return file_get_contents(\"php://input\");\n }",
"public function getBodyParams()\n {\n if ($this->_bodyParams === null) {\n if (isset($_POST[$this->methodParam])) {\n $this->_bodyParams = $_POST;\n unset($this->_bodyParams[$this->methodParam]);\n return $this->_bodyParams;\n }\n\n if ($this->getMethod() === 'POST') {\n // PHP has already parsed the body so we have all params in $_POST\n $this->_bodyParams = $_POST;\n } else {\n $this->_bodyParams = [];\n mb_parse_str($this->getRawBody(), $this->_bodyParams);\n }\n }\n\n return $this->_bodyParams;\n }",
"public function jsonSerialize()\n {\n $json = [];\n $json['body'] = $this->body;\n\n return array_filter($json, function ($val) {\n return $val !== null;\n });\n }",
"private function getRequest() {\n return json_decode(request()->getContent(), true);\n }",
"protected function _getEncodedBody() {\n $body_fields = $this->_getBodyFields();\n return http_build_query($this->_getBodyFields(), '', '&');\n }",
"public function getRawBody(): string\n {\n if ($this->rawBody === null) {\n $this->rawBody = file_get_contents('php://input');\n }\n\n return $this->rawBody;\n }",
"public function transformRequest()\n {\n return $arrTransformReq = ['id' => 'CompanyId',\n 'type' => 'Type',\n 'name' => 'Name', 'doing_business_as' => 'DoingBusinessAs',\n 'tax_id' => 'TaxId',\n 'created_at' => 'CreatedAt', 'etag' => 'Etag',\n 'deleted_at' => 'DeletedAt'];\n }",
"protected function getBody()\n {\n return $this->getRequest()->getBody();\n }",
"public function get_request_arguments();",
"static function getBody()\n\t{\n\t return self::get('__postBody__', null);\n\t}",
"public function getPayload()\n {\n return @json_decode($this->body);\n }",
"public function getBodyParameters() {\n if ($this->bodyParameters !== null) {\n return $this->bodyParameters;\n }\n\n if ($this->body) {\n $contentType = $this->getHeader(Header::HEADER_CONTENT_TYPE);\n\n if (strpos($contentType, ';') !== false) {\n list($contentType, $attributes) = explode(';', $contentType);\n }\n\n if ($contentType == 'application/json') {\n $this->bodyParameters = json_decode($this->body, true);\n } elseif ($contentType == 'application/x-www-form-urlencoded') {\n $this->bodyParameters = $this->parseQueryString($this->body);\n } else {\n $this->bodyParameters = array();\n }\n } else {\n $this->bodyParameters = array();\n }\n\n return $this->bodyParameters;\n }",
"public function serializeRequest(Request $request): string;",
"public function getFieldBody() //TODO: Check caching here\n {\n $body = parent::getFieldBody();\n foreach ($this->params as $name => $value) {\n if (null !== $value) {\n // Add the parameter\n $body .= '; '.$this->createParameter($name, $value);\n }\n }\n\n return $body;\n }",
"public function getBody() {}",
"protected function getBody()\n {\n $body = file_get_contents('php://input');\n json_decode($body);\n if(json_last_error() == JSON_ERROR_NONE){\n return json_decode($body);\n }else{\n return false;\n }\n }",
"function getRequestInfo()\n\t{\n\t\treturn json_decode(file_get_contents('php://input'), true);\n\t}",
"abstract protected function getRequiredRequestParameters();",
"public function getBody(): string\n {\n $body = [\n 'Customer' => $this->getCustomer()->toArray(),\n 'Message' => $this->getMessage()->toArray(),\n 'Shipments' => $this->getShipmentsArray()\n ];\n $body= json_encode($this->filterEmptyArrayValues($body));\n return $body;\n }",
"#[Pure]\nfunction http_get_request_body_stream() {}",
"public function getRawRequest()\n {\n return $this->request;\n }",
"public function getBody()\n {\n return $this->values[\"body\"];\n }",
"protected function validDataFromRequest()\n {\n return array_merge([\n 'obj_type',\n 'obj_id',\n 'rev_num',\n ], parent::validDataFromRequest());\n }",
"public function getRequestData(Request $request) {\n return $request->all();\n }",
"public function getRequestParams();",
"protected function payload($request)\n {\n $allFields = $request->all();\n\n foreach (config('http-query-logger.dont_log', []) as $key) {\n if (array_key_exists($key, $allFields)) {\n unset($allFields[$key]);\n }\n }\n\n return json_encode($allFields);\n }",
"public static function getBody()\n {\n $entityBody = file_get_contents('php://input');\n return $entityBody;\n }",
"public function getBody(): string;",
"public function getBody(): string;",
"function get_html_post_body_ini();",
"public function getInputSource()\n\t{\n\t\t$parsedBody = $this->getParsedBody();\n\t\t\n\t\tif ($this->getRequestMethod() === Request::GET) {\n\t\t\treturn $this->getQueryParams();\n\t\t}\n\t\t\n\t\treturn $parsedBody;\n\t}",
"abstract public function getRawPostPayload() : array;",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getBody();",
"public function getParsedBody()\n {\n return $this->parsedBody;\n }",
"public function getInfo() \n {\n return $this->requestInfo;\n }",
"public function getPostVariables();",
"public function get_request_content();",
"public function getRawBody()\n {\n if ($this->_rawBody === null) {\n $this->_rawBody = file_get_contents('php://input');\n }\n\n return $this->_rawBody;\n }"
] | [
"0.65630114",
"0.6321832",
"0.6314384",
"0.6240643",
"0.6147378",
"0.6140751",
"0.6107435",
"0.6089362",
"0.6087342",
"0.60554665",
"0.6049181",
"0.6024815",
"0.60130256",
"0.5954696",
"0.5914939",
"0.58982086",
"0.58672243",
"0.5860333",
"0.58530796",
"0.5847302",
"0.5835988",
"0.58181757",
"0.5796328",
"0.57464427",
"0.57199436",
"0.57145876",
"0.5663058",
"0.5656184",
"0.5635854",
"0.56222993",
"0.56168914",
"0.5609472",
"0.5601455",
"0.5597885",
"0.5597161",
"0.55931246",
"0.5591736",
"0.55723125",
"0.55606186",
"0.55477977",
"0.5538563",
"0.5530551",
"0.5523924",
"0.5510028",
"0.5503436",
"0.54967856",
"0.54877293",
"0.5482749",
"0.5467139",
"0.546374",
"0.5446644",
"0.5445508",
"0.54392034",
"0.54374814",
"0.5436268",
"0.5434758",
"0.54242724",
"0.5422822",
"0.5419776",
"0.5419451",
"0.5413515",
"0.5382417",
"0.5370426",
"0.5369788",
"0.53674567",
"0.5356765",
"0.5353806",
"0.5350613",
"0.5346465",
"0.534474",
"0.53437614",
"0.53436375",
"0.5339735",
"0.53396946",
"0.5331298",
"0.5319565",
"0.5314314",
"0.53091675",
"0.52854943",
"0.5283093",
"0.5283093",
"0.52794707",
"0.52780217",
"0.5276741",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.52738404",
"0.5259383",
"0.5258099",
"0.52559626",
"0.5250166",
"0.524939"
] | 0.0 | -1 |
Determine if the user is authorized to make this request. | public function authorize()
{
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }",
"public function authorize()\n {\n return $this->user() !== null;\n }",
"public function authorize()\n {\n return $this->user() !== null;\n }",
"public function authorize()\n {\n return $this->user() != null;\n }",
"public function authorize(): bool\n {\n return $this->user() !== null;\n }",
"public function authorize(): bool\n {\n return $this->isUserAuthorised();\n }",
"public function authorize()\n {\n return !is_null($this->user());\n }",
"public function authorize()\n {\n return request()->user() != null;\n }",
"public function authorize()\n\t{\n\t\t// if user is updating his profile or a user is an admin\n\t\tif( $this->user()->isSuperAdmin() || !$this->route('user') ){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public function authorize()\n {\n // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }",
"public function isAuthorized()\n {\n return $this->cookieHelper->requestCookieExists('auth');\n }",
"public function authorize()\n {\n return !empty(Auth::user()) && ($this->user()->isAnAdmin() || $this->user()->hasRole('user'));\n }",
"public function authorize()\n {\n $originAccount = Account::find($this->get('origin_account_id'));\n return $originAccount->user_id == auth()->id();\n }",
"public function authorize()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default:\n return $this->user()->type == 'App\\\\Staff' ? true : false;\n break;\n }\n\n return false;\n }",
"public function authorize()\n {\n if($this->user()->role == \"admin\" || $this->user()->id == $this->request->get('author_id')) return true;\n else return false;\n }",
"public function authorize()\n {\n if(\\Auth::guest())\n {\n return false;\n } else {\n // Action 1 - Check if authenticated user is a superadmin\n if(\\Auth::User()->hasRole('superadmin'))\n return true;\n\n // Action 2 - Find UUID from request and compare to authenticated user\n $user = User::where('uuid', $this->user_uuid)->firstOrFail();\n if($user->id == \\Auth::User()->id)\n return true;\n\n // Action 3 - Fail request\n return false;\n }\n }",
"public function authorize()\n {\n $this->model = $this->route('user');\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }",
"public function isAuthorized(): bool\n {\n // TODO: implement authorization check\n\n return true;\n }",
"public function isAuthorized() {}",
"public function authorize()\n {\n return request()->loggedin_role === 1;\n }",
"public function authorize()\n {\n $this->model = $this->route('user');\n\n if ($this->isEdit() && !is_null($this->model)) {\n if (!user()->hasPermissionTo('Administrations::admin.user') && $this->model->id != user()->id) {\n return false;\n }\n }\n\n $this->model = is_null($this->model) ? User::class : $this->model;\n\n return $this->isAuthorized();\n }",
"public function authorize()\n {\n $accessor = $this->user();\n\n return $accessor->isAdmin() || $accessor->hasKey('post-users');\n }",
"public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }",
"public function authorize()\n {\n return auth()->check() ? true : false;\n }",
"public function authorize()\n {\n return auth()->check() ? true : false;\n }",
"public function authorize()\n {\n /**\n * @var User $user\n * @var Document $document\n */\n $user = Auth::user();\n $document = $this->route('document');\n\n return (int)$user->id === (int)$document->user_id;\n }",
"public function authorize()\n {\n switch (true) {\n case $this->wantsToList():\n case $this->wantsToShow():\n if ($this->hasRoles(['owner', 'administrator'])) {\n return true;\n }\n break;\n case $this->wantsToStore():\n case $this->wantsToUpdate():\n case $this->wantsToDestroy():\n if ($this->hasRoles(['owner'])) {\n return true;\n }\n break;\n }\n\n return false;\n }",
"public function authorize()\n {\n $user = JWTAuth::parseToken()->authenticate();\n $organisation = Organization::findOrFail($this->route('organizations'));\n return $organisation->admin_id == $user->id;\n }",
"public function authorize()\n {\n if($this->user()->isAdmin())\n return true;\n\n return false;\n }",
"function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\n }",
"public function authorize()\n {\n $user = auth('web')->user();\n if ($user && $user->active) {\n return true;\n }\n\n return false;\n }",
"public function authorize()\n {\n $this->user = User::query()->find($this->route()->parameter('user'));\n $this->merge(['verified' => $this->get('verified') ? 1 : 0]);\n\n return true;\n }",
"public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }",
"public function authorize()\n {\n return is_client_or_staff();\n }",
"public function isAuthorized() {\n\t\treturn true;\n\t}",
"public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }",
"public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }",
"public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin'])) {\n return true;\n } else {\n return false;\n }\n }",
"public function isAuthorized()\n\t{\n\t\t$sessionVal = Yii::$app->session->get($this->sessionParam);\n\t\treturn (!empty($sessionVal));\n\t}",
"public function authorize() {\n\n return auth()->user() && auth()->user()->username === $this->user->username;\n }",
"public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }",
"public function authorize()\n {\n if ($this->user()->isAdmin($this->route('organization'))) {\n return true;\n }\n\n return false;\n\n }",
"public function authorize()\n {\n return $this->user() && $this->user()->role === Constants::USER_ROLE_ADMIN;\n }",
"public function authorized()\n {\n return $this->accepted && ! $this->test_mode;\n }",
"public function authorize()\n {\n if (!auth()->check()) {\n return false;\n }\n return true;\n }",
"public function hasAuthorized() {\n return $this->_has(1);\n }",
"public function authorize()\n {\n $resource = Resource::find($this->route('id'));\n\n if (!$resource) {\n return true;\n }\n\n return $resource && $this->user()->can('access', $resource);\n }",
"public function authorize()\n {\n /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }",
"public function authorize()\n {\n //TODO Authorice Request (without Controller)\n return auth()->user()->role_id === 1;\n }",
"public function authorize(): bool\n {\n return $this->user()->id === $this->article->user->id;\n }",
"public function authorize()\n {\n return $this->user()->rol == 'admin' ? true : false;\n }",
"public function isAuth()\n {\n return $this->session->hasAuthorisation();\n }",
"public function authorize()\n {\n if(Auth::user())\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"public function authorize()\n {\n //Check if user is authorized to access this page\n if($this->user()->authorizeRoles(['admin', 'hrmanager', 'hruser'])) {\n return true;\n } else {\n return false;\n }\n }",
"public function authorize()\n {\n return \\Auth::check() ? true : false;\n }",
"public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}",
"public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }",
"public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }",
"public function authorize()\n {\n return !empty(Auth::user());\n }",
"public function authorize()\n {\n return $this->groupHasUser() || $this->hasSeller();\n }",
"public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}",
"public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}",
"public function isAuthorized() {\n\t\t\n\t}",
"public function authorize()\n {\n if(Auth::check())\n {\n return (Auth::user()->has_world_admin_access);\n }\n return false;\n }",
"public function authorize()\n {\n if (!\\Auth::guest()) {\n $user = \\Auth::getUser();\n if ($user->type == User::USER_TYPE_ADMIN) {\n return true;\n }\n }\n\n return false;\n }",
"public function authorize()\n {\n if (auth()->user()->is_admin) {\n return true;\n }\n return false;\n }",
"public function authorize()\n {\n if ($this->user()->is_admin){\n return true;\n }\n else if ($this->method == \"PUT\"){\n if ($this->user()->id == $this->input('id')){\n return true;\n }\n }\n return false;\n }",
"public function authorize(): bool\n {\n return parent::authorize() && (int)$this->playList->user_id === auth()->user()->id;\n }",
"public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}",
"public function authorize()\n {\n if (Auth::check()) {\n \n return true;\n \n }\n return false;\n }",
"public function authorize()\n {\n $user = Auth::user();\n return $user && $user->rol == 'admin';\n }",
"public function authorize()\n\t{\n\t\t// Nutzern akzeptiert werden\n\t\tif(Auth::check())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public function authorize()\n {\n // TODO: Check if has business\n return session()->has('id');\n }",
"public function authorize()\n {\n if (auth()->check() && auth()->user()->isAdmin()) {\n return true;\n }\n\n return false;\n }",
"public function authorize()\n {\n return $this->auth->check();\n }",
"public function authorize() {\n\t\t$user = \\Auth::user();\n\n\t\tif ( $user->isAdmin() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public function authorize()\n {\n if (auth()->user()->isAdmin() || auth()->user()->isCustomer()) {\n return true;\n }\n return false;\n }",
"public function authorize()\n {\n return $this->container['auth']->check();\n }",
"function isAuthorized($request) {\n return true;\n }",
"public function authorize()\n {\n return Auth::guest() || isMember();\n }",
"public function authorize()\n {\n return auth()->user() && auth()->user()->isCeo();\n }",
"public function authorize(): bool\n {\n $deckId = $this->request->get('deck_id');\n $userId = Deck::whereKey($deckId)->value('user_id');\n\n return $userId === user()->id;\n }",
"public function authorize()\n {\n return Auth::check() && Auth::user()->is_contractor;\n }",
"public function authorize()\n {\n return TRUE;\n }",
"public function authorize()\n {\n $user = User::find($this->id);\n\n if (!$user) {\n $user = User::where('no_ahli', $this->no_ahli)->first();\n }\n if ($user && $user->id == auth()->user()->id) return true;\n if (auth()->user()->is('admin')) return true;\n\n return false;\n }",
"public function authorize()\n {\n # if it's false, it will rejected\n return true;\n }",
"public function authorize()\n {\n $isValid = auth()->user()->is($this->route('task')->attempt->checklist->owner);\n\n return $isValid;\n }",
"public function authorize()\n {\n $user = Auth::user();\n\n return ($user->getRole() == 'admin');\n }",
"public function is_authorized() {\n\t\t$authorized = true;\n\t\tif ( $this->is_access_token_expired() ) {\n\t\t\t$authorized = false;\n\t\t}\n\n\t\treturn $authorized;\n\t}",
"public function authorize()\n {\n $user = User::findOrFail($this->route('id'));\n\n return $user->hasRole('admin') || $user->hasRole('teacher');\n }",
"public function authorize()\n {\n $project = \\App\\Project::find($this->request->get('project'));\n return $project && $project->isManager($this->user()->name);\n }",
"public function isAuthorized() {\n\t\treturn (bool)$this->_storage->hasData();\n\t}",
"public function authorize()\n {\n $idExpense = $this->input('expense');\n $expense = Expense::find($idExpense);\n\n return $expense && $this->user()->id == $expense->user_id;\n }",
"public function authorize()\n {\n // User system not implemented\n return true;\n }",
"public function authorize() : bool\n {\n // TODO check request to xhr in middleware\n return true;\n }",
"public function authorize()\n {\n $organizationId = (string) $this->route('id');\n\n $this->organization = Organization::findByUuidOrFail($organizationId);\n\n return $this->user()->can('show', [Organization::class, $this->organization]);\n }",
"public function authorize()\n {\n $user = $this->findFromUrl('user');\n return $this->user()->can('update', $user);\n }",
"public function authorize()\n {\n $user = Auth::user();\n $orderElement = OrderElement::find($this->input(\"order_element_id\"));\n $order = $orderElement->order;\n\n if ($user->id == $order->user_id) {\n return true;\n } else {\n return false;\n }\n }",
"public function authorize()\n {\n $current_user = auth()->user();\n $convention = Convention::find($this->route('convention_id'));\n\n // Use ClientPolicy here to authorize before checking the fields\n return $current_user->can('store', Convention::class)\n || $current_user->can('update', $convention);\n }",
"public function authorize()\n {\n if (session()->has('user'))\n {\n $participantController = new ParticipantController();\n\n return !$participantController->isParticipating($this->input('id_user'), $this->input('id_event'));\n }\n else\n {\n return false;\n }\n }",
"public function authorize()\n {\n return (Auth::user()->allowSuperAdminAccess || Auth::user()->allowAdminAccess);\n }"
] | [
"0.8401071",
"0.8377486",
"0.8377486",
"0.8344406",
"0.8253731",
"0.824795",
"0.8213121",
"0.8146598",
"0.81115526",
"0.8083369",
"0.7991986",
"0.79907674",
"0.79836637",
"0.79604936",
"0.79516214",
"0.79494005",
"0.79265946",
"0.7915068",
"0.79001635",
"0.7894822",
"0.7891453",
"0.7890965",
"0.7862504",
"0.78414804",
"0.78414804",
"0.7837965",
"0.78248763",
"0.7812292",
"0.7809632",
"0.77928597",
"0.7788316",
"0.7781619",
"0.77815884",
"0.7763308",
"0.7754035",
"0.7717961",
"0.7717961",
"0.77171147",
"0.77138597",
"0.7705001",
"0.7693082",
"0.7692783",
"0.76915383",
"0.76909506",
"0.76733255",
"0.7667128",
"0.7665592",
"0.7656238",
"0.7650853",
"0.764326",
"0.76431626",
"0.76431614",
"0.7635147",
"0.76311624",
"0.76294273",
"0.7627076",
"0.76207024",
"0.76207024",
"0.76139116",
"0.76036394",
"0.76035625",
"0.76035625",
"0.76032084",
"0.7602515",
"0.76007926",
"0.75971127",
"0.7588128",
"0.7586303",
"0.7581912",
"0.7563037",
"0.7554785",
"0.75526226",
"0.755171",
"0.75436753",
"0.75432944",
"0.7540682",
"0.7538806",
"0.75280696",
"0.751548",
"0.75149626",
"0.7501161",
"0.74959517",
"0.74956346",
"0.74911124",
"0.7489147",
"0.74858016",
"0.748033",
"0.7478443",
"0.7472642",
"0.7472576",
"0.7465409",
"0.7464371",
"0.74630046",
"0.7462218",
"0.7461453",
"0.7449168",
"0.74399257",
"0.74358094",
"0.7433247",
"0.7432659",
"0.74248093"
] | 0.0 | -1 |
Get the validation rules that apply to the request. | public function rules()
{
return [
"add_member" => [
'required',
'exists:users,user_name',
function ($attribute, $value, $fail) {
$member = User::where('user_name', $value)->first();
if (isset($member->team_id) && $member->team_id == Auth::user()->team_id) {
return $fail('既にチームに所属しています。');
}
if (isset($member->team_id) && $member->team_id != Auth::user()->team_id) {
return $fail('既に他のチームに所属しています。');
}
if (isset($member->child_id) && $member->child->team->id != Auth::user()->team_id) {
return $fail("既に他のチームの部門に所属しています。");
}
}
],
];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }",
"public function getRules()\n {\n return $this->validator->getRules();\n }",
"public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }",
"public function rules()\n {\n return $this->validationRules;\n }",
"public function rules()\n {\n $rules = [];\n switch ($this->getMethod()):\n case \"POST\":\n $rules = [\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"PUT\":\n $rules = [\n 'id' => 'required|numeric',\n 'course_id' => 'required|numeric',\n 'questions' => 'required|array',\n ];\n break;\n case \"DELETE\":\n $rules = [\n 'id' => 'required|numeric'\n ];\n break;\n endswitch;\n return $rules;\n }",
"public static function getRules()\n {\n return (new static)->getValidationRules();\n }",
"public function getRules()\n {\n return $this->validation_rules;\n }",
"public function getValidationRules()\n {\n return [];\n }",
"public function getValidationRules() {\n return [\n 'email' => 'required|email',\n 'name' => 'required|min:3',\n 'password' => 'required',\n ];\n }",
"public function rules()\n {\n if($this->isMethod('post')){\n return $this->post_rules();\n }\n if($this->isMethod('put')){\n return $this->put_rules();\n }\n }",
"public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }",
"protected function getValidationRules()\n {\n $rules = [\n 'title' => 'required|min:3|max:255',\n ];\n\n return $rules;\n }",
"public function getRules()\n\t{\n\t\t$rules['user_id'] = ['required', 'exists:' . app()->make(User::class)->getTable() . ',id'];\n\t\t$rules['org_id'] = ['required', 'exists:' . app()->make(Org::class)->getTable() . ',id'];\n\t\t$rules['role'] = ['required', 'string', 'in:' . implode(',', Static::ROLES)];\n\t\t$rules['scopes'] = ['nullable', 'array'];\n\t\t$rules['ended_at'] = ['nullable', 'date'];\n\t\t$rules['photo_url'] = ['nullable', 'string'];\n\n\t\treturn $rules;\n\t}",
"public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }",
"public function rules()\n {\n\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'min:6|same:password',\n 'role_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required|max:255',\n 'email' => 'required|email|max:255|unique:users,email,'.$this->id,\n ];\n break;\n }\n return $rules;\n }",
"public function rules()\n {\n return $this->rules;\n }",
"public function rules()\n {\n return $this->rules;\n }",
"public function rules()\n {\n return $this->rules;\n }",
"public function rules()\n {\n return $this->rules;\n }",
"public function rules()\n {\n return $this->rules;\n }",
"public function rules()\n {\n return $this->rules;\n }",
"public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [];\n case 'POST':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'name' => 'required|max:50',\n 'company' => 'required|max:100',\n 'position' => 'required|max:50',\n 'email' => 'required|email|max:150',\n 'phone' => 'required|max:25',\n 'description' => 'nullable|max:500',\n ];\n case 'DELETE':\n return [];\n default:break;\n }\n \n }",
"public function rules($request) {\n $function = explode(\"@\", $request->route()[1]['uses'])[1];\n return $this->getRouteValidateRule($this->rules, $function);\n // // 获取请求验证的函数名\n // // ltrim(strstr($a,'@'),'@')\n // if (count(explode(\"@\", Request::route()->getActionName())) >= 2) {\n // $actionFunctionName = explode(\"@\", Request::route()->getActionName()) [1];\n // }\n\n // // 取配置并返回\n // if (isset($this->rules[$actionFunctionName])) {\n // if (is_array($this->rules[$actionFunctionName])) {\n // return $this->rules[$actionFunctionName];\n // }\n // else {\n // return $this->rules[$this->rules[$actionFunctionName]];\n // }\n // }\n // else {\n // return [];\n // }\n }",
"function getValidationRules() {\n\t\treturn array(\n\t\t\t'_MovieID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CountryID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_BroadCastDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t\t'_CreatedDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}",
"public function rules()\n {\n if ($this->method() === 'POST') {\n return $this->rulesForCreating();\n }\n\n return $this->rulesForUpdating();\n }",
"public function rules()\n {\n $validation = [];\n if ($this->method() == \"POST\") {\n $validation = [\n 'name' => 'required|unique:users',\n 'email' => 'required|unique:users|email',\n 'password' => 'required|min:6|confirmed',\n 'password_confirmation' => 'required|min:6',\n 'roles' => 'required',\n ];\n } elseif ($this->method() == \"PUT\") {\n $validation = [\n 'name' => 'required|unique:users,name,' . $this->route()->parameter('id') . ',id',\n 'email' => 'required|unique:users,email,' . $this->route()->parameter('id') . ',id|email',\n 'roles' => 'required',\n ];\n\n if ($this->request->get('change_password') == true) {\n $validation['password'] = 'required|min:6|confirmed';\n $validation['password_confirmation'] = 'required|min:6';\n }\n }\n\n return $validation;\n }",
"protected function getValidationRules()\n {\n $class = $this->model;\n\n return $class::$rules;\n }",
"public function rules()\n {\n $data = $this->request->all();\n $rules['username'] = 'required|email';\n $rules['password'] = 'required'; \n\n return $rules;\n }",
"public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }",
"protected function getValidRules()\n {\n return $this->validRules;\n }",
"public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n case 'PUT':\n {\n return [\n 'name' => 'required',\n ];\n }\n default:break;\n }\n }",
"public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }",
"public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'index':\n return [\n 'full_name' => 'nullable|string',\n 'phone' => 'nullable|string',\n ];\n break;\n case 'store':\n return [\n 'crm_resource_id' => 'required|exists:crm_resources,id',\n 'channel' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$channel),\n 'call_status' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$call_statuses),\n ];\n break;\n default:\n return [];\n break;\n }\n }",
"public function rules()\n {\n //With password\n if(request('password') || request('password_confirmation')) {\n return array_merge($this->passwordRules(), $this->defaultRules());\n }\n //Without password\n return $this->defaultRules();\n }",
"public function rules()\n {\n $rules = [\n '_token' => 'required'\n ];\n\n foreach($this->request->get('emails') as $key => $val) {\n $rules['emails.'.$key] = 'required|email';\n }\n\n return $rules;\n }",
"function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CoverImageID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_TrackID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Rank' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_CreateDate' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t);\n\t}",
"public function rules()\n { \n return $this->rules;\n }",
"public function getValidationRules()\n {\n if (method_exists($this, 'rules')) {\n return $this->rules();\n }\n\n $table = $this->getTable();\n $cacheKey = 'validate.' . $table;\n\n if (config('validate.cache') && Cache::has($cacheKey)) {\n return Cache::get($cacheKey);\n }\n\n // Get table info for model and generate rules\n $manager = DB::connection()->getDoctrineSchemaManager();\n $details = $manager->listTableDetails($table);\n $foreignKeys = $manager->listTableForeignKeys($table);\n\n $this->generateRules($details, $foreignKeys);\n\n if (config('validate.cache')) {\n Cache::forever($cacheKey, $this->rules);\n }\n\n return $this->rules;\n }",
"public function getValidationRules()\n {\n $rules = $this->getBasicValidationRules();\n\n if (in_array($this->type, ['char', 'string', 'text', 'enum'])) {\n $rules[] = 'string';\n if (in_array($this->type, ['char', 'string']) && isset($this->arguments[0])) {\n $rules[] = 'max:' . $this->arguments[0];\n }\n } elseif (in_array($this->type, ['timestamp', 'date', 'dateTime', 'dateTimeTz'])) {\n $rules[] = 'date';\n } elseif (str_contains(strtolower($this->type), 'integer')) {\n $rules[] = 'integer';\n } elseif (str_contains(strtolower($this->type), 'decimal')) {\n $rules[] = 'numeric';\n } elseif (in_array($this->type, ['boolean'])) {\n $rules[] = 'boolean';\n } elseif ($this->type == 'enum' && count($this->arguments)) {\n $rules[] = 'in:' . join(',', $this->arguments);\n }\n\n return [$this->name => join('|', $rules)];\n }",
"public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'vacancy_name' => 'required|string|min:4|max:20',\n 'workers_amount' => 'required|integer|min:1|max:10',\n 'organization_id'=> 'required|integer|exists:organizations,id',\n 'salary' => 'required|integer|min:1|max:10000000',\n ];\n }\n return $rules;\n }",
"public function validationRules()\n {\n return [];\n }",
"public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|min:2,max:16';\n }\n return $rules;\n }",
"function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_EventID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_SourceID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_HasEvent' => array(\n\t\t\t\t'inArray' => array('values' => array(self::HASEVENT_0, self::HASEVENT_1),),\n\t\t\t),\n\t\t);\n\t}",
"public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'GET':\n $rules['mobile'] = ['required', 'regex:/^1[3456789]\\d{9}$/'];\n break;\n case 'POST':\n if($this->route()->getActionMethod() == 'sms') {\n $rules['area_code'] = ['digits_between:1,6'];\n if(in_array($this->get('type'), ['signup', 'reset_pay_pwd'])) {\n $rules['mobile'] = ['required', 'digits_between:5,20'];\n if($this->get('type') == 'signup' && !$this->get('area_code')) {\n $this->error('请选择区号');\n }\n }\n $rules['type'] = ['required', Rule::in(\\App\\Models\\Captcha::getSmsType())];\n }\n break;\n }\n return $rules;\n }",
"public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }",
"public function rules()\n {\n $rules = [\n 'first_name' => ['required'],\n 'birthdate' => ['required', 'date', 'before:today'],\n ];\n\n if (is_international_session()) {\n $rules['email'] = ['required', 'email'];\n }\n\n if (should_collect_international_phone()) {\n $rules['phone'] = ['phone'];\n }\n\n if (is_domestic_session()) {\n $rules['phone'] = ['required', 'phone'];\n }\n\n return $rules;\n }",
"public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }",
"public function rules()\n {\n return static::$rules;\n }",
"function getRules() {\n\t\t$fields = $this->getFields();\n\t\t$allRules = array();\n\n\t\tforeach ($fields as $field) {\n\t\t\t$fieldRules = $field->getValidationRules();\n\t\t\t$allRules[$field->getName()] = $fieldRules;\n\t\t}\n\n\t\treturn $allRules;\n\t}",
"public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }",
"public function rules()\n {\n $rules = [\n 'name' => 'required',\n 'phone' => 'required|numeric',\n 'subject' => 'required',\n 'message' => 'required',\n 'email' => 'required|email',\n ];\n\n return $rules;\n }",
"public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }",
"protected function getValidationRules()\n {\n return [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|max:255',\n 'new_password' => 'required_with:current_password|confirmed|regex:' . config('security.password_policy'),\n ];\n }",
"public function rules()\n {\n // get 直接放行\n if( request()->isMethod('get') ){\n return []; // 规则为空\n }\n\n // 只在post的时候做验证\n return [\n 'username' => 'required|min:2|max:10', \n 'password' => 'required|min:2|max:10', \n 'email' => 'required|min:2|max:10|email', \n 'phoneNumber' => 'required|min:2|max:10', \n\n ];\n }",
"public function rules()\n {\n\n $rules = [\n 'id_tecnico_mantenimiento' => 'required',\n 'id_equipo_mantenimiento' => 'required'\n ];\n\n if ($this->request->has('status')) {\n $rules['status'] = 'required';\n }\n\n if ($this->request->has('log_mantenimiento')) {\n $rules['log_mantenimiento'] = 'required';\n }\n\n return $rules;\n }",
"public function rules()\n {\n $this->buildRules();\n return $this->rules;\n }",
"public function rules()\n {\n $rules = [];\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|string',\n 'email' => 'email',\n 'password' => 'confirmed|min:6',\n\n ]);\n }\n\n if ($this->isStore()) {\n $rules = array_merge($rules, [\n\n ]);\n }\n\n if ($this->isUpdate()) {\n $rules = array_merge($rules, [\n ]);\n }\n\n return $rules;\n }",
"public function rules()\n {\n switch (true) {\n case $this->wantsToList():\n $rules = $this->listRules;\n break;\n case $this->wantsToStore():\n $rules = $this->storeRules;\n break;\n case $this->wantsToUpdate():\n $this->storeRules['email'] = 'required|email|between:5,100|unique:users,email,' . $this->route('administrators');\n\n $rules = $this->storeRules;\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n }",
"public function rules()\n {\n if($this->isMethod('post')) {\n return $this->storeRules();\n }\n else if($this->isMethod('put') || $this->isMethod('patch')){\n return $this->updateRules();\n }\n }",
"abstract protected function getValidationRules();",
"public function rules()\n\t{\n\t\treturn ModelHelper::getRules($this);\n\t}",
"public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->getPostRules();\n case 'PUT':\n return $this->getPutRules();\n }\n }",
"public function rules()\n {\n $rules = [\n 'name' => 'required|string|min:2',\n 'email' => \"required|email|unique:users,email, {$this->request->get('user_id')}\",\n 'role_id' => 'required|numeric',\n 'group_id' => 'required|numeric',\n ];\n\n if ($this->request->has('password')){\n $rules['password'] = 'required|min:6';\n }\n\n return $rules;\n }",
"public function rules()\n {\n if($this->method() == 'POST')\n {\n return [\n 'reason'=>'required',\n 'date_from'=>'required',\n 'date_to'=>'required',\n 'attachment'=>'required',\n ];\n }\n }",
"public function rules()\n {\n $method = $this->method();\n if ($this->get('_method', null) !== null) {\n $method = $this->get('_method');\n }\n // $this->offsetUnset('_method');\n switch ($method) {\n case 'DELETE':\n case 'GET':\n break; \n case 'POST':\n $mailRules = \\Config::get('database.default').'.users';\n break;\n case 'PUT':\n $user = $this->authService->authJWTUserForm();\n $mailRules = \\Config::get('database.default').'.users,email,'.$user->getKey();\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n \n return [\n 'name' => 'required|string|max:256',\n 'email' => 'required|string|email|max:255|unique:'.$mailRules,\n 'password' => 'required|string|min:3',\n ];\n }",
"public function rules() {\n $rule = [\n 'value' => 'bail|required',\n ];\n if ($this->getMethod() == 'POST') {\n $rule += ['type' => 'bail|required'];\n }\n return $rule;\n }",
"public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'from' => 'required|max:100',\n 'to' => 'required|max:500',\n 'day' => 'required|max:500',\n ];\n }\n default:\n break;\n }\n\n return [\n //\n ];\n }",
"public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }",
"public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n return [];\n case 'POST':\n return [\n 'name' => 'required|string',\n 'lastName' => 'string',\n 'gender' => 'boolean',\n 'avatar' => 'sometimes|mimes:jpg,png,jpeg|max:3048'\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'oldPassword' => 'required|string',\n 'newPassword' => 'required|string',\n ];\n default:\n break;\n }\n }",
"public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [\n 'validation' => [\n 'accepted'\n ]\n ];\n }\n case 'POST':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'published_at_time' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n 'unpublished_time' => [\n 'nullable',\n ],\n ];\n }\n case 'PUT':\n {\n return [\n 'title' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250'\n ],\n 'body' => [\n 'required',\n 'string',\n 'min:3',\n 'max:250000'\n ],\n 'online' => [\n 'required',\n ],\n 'indexable' => [\n 'required',\n ],\n 'published_at' => [\n 'required',\n ],\n 'unpublished_at' => [\n 'nullable',\n ],\n ];\n }\n case 'PATCH':\n {\n return [];\n }\n default:\n break;\n }\n }",
"public function rules()\n {\n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n $user = User::findOrFail(\\Request::input('id'))->first();\n\n array_forget($this->rules, 'email');\n $this->rules = array_add($this->rules, 'email', 'required|email|max:255|unique:users,email,' . $user->id);\n }\n\n return $this->rules;\n }",
"public function rules()\n {\n $method = explode('@', $this->route()->getActionName())[1];\n return $this->get_rules_arr($method);\n }",
"public function rules()\n {\n $rules = parent::rules();\n $extra_rules = [];\n $rules = array_merge($rules, $extra_rules);\n return $rules;\n }",
"public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }",
"public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }",
"public function rules()\n {\n $this->rules['email'] = ['required', 'min:6', 'max:60', 'email'];\n $this->rules['password'] = ['required', 'min:6', 'max:60'];\n\n return $this->rules;\n }",
"public function getValidatorRules()\n {\n if ($validator = $this->getValidator()) {\n return $validator->getRulesForField($this->owner);\n }\n \n return [];\n }",
"public function getValidationRules() : array;",
"public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'login': {\n if ($this->request->has('access_token')) {\n return [\n 'access_token' => 'required',\n 'driver' => 'required|in:facebook,github,google',\n ];\n }\n return [\n 'email' => 'required|email',\n 'password' => 'required|min:6',\n ];\n }\n case 'register': {\n return [\n 'email' => 'required|email|unique:users,email',\n 'password' => 'required|min:6',\n 'name' => 'required',\n ];\n }\n default: return [];\n }\n }",
"public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }",
"public function rules()\n {\n switch (strtolower($this->method())) {\n case 'get':\n return $this->getMethodRules();\n case 'post':\n return $this->postMethodRules();\n case 'put':\n return $this->putMethodRules();\n case 'patch':\n return $this->patchMethodRules();\n case 'delete':\n return $this->deleteMethodRules();\n }\n }",
"public function rules()\n {\n /**\n * This is the original way, expecting post params for each user value\n */\n return [\n 'firstName' => 'required|min:2|max:255',\n 'lastName' => 'required|min:2|max:255',\n 'phone' => 'min:9|max:25',\n 'gender' => 'in:M,V',\n 'dateOfBirth' => 'before:today|after:1890-01-01',\n 'email' => 'email|min:12|max:255',\n ];\n }",
"public function getValidationRules(): array {\n\t\t$result = [];\n\t\t\n\t\tforeach ($this->getSections() as $section) {\n\t\t\t$result = array_merge($result, $section->getValidationRules());\n\t\t}\n\t\t\n\t\treturn $result;\n\t}",
"public function rules()\n\t{\n\t\t$rule = [];\n\t\tif(Request::path() == 'api/utility/upload-image'){\n\t\t\t$rule = [\n\t\t\t\t'imagePath' => 'required',\n\t\t\t];\n\t\t}else if(Request::path() == 'api/utility/check-transaction'){\n\t\t\t$rule = [\n\t\t\t\t'countNumber' => 'required',\n\t\t\t];\n\t\t}\n\t\treturn $rule;\n\t}",
"public function rules()\n {\n $rules = array();\n return $rules;\n }",
"public function rules()\n {\n $this->setValidator($this->operation_type);\n return $this->validator;\n }",
"public function rules()\n {\n switch($this->method()){\n case 'POST':\n return [\n 'name' => 'required',\n 'app_id' => 'required',\n 'account_id' => 'required',\n 'start_at' => 'required',\n 'end_at' => 'required',\n 'content' => 'required',\n ];\n break;\n default:\n return [];\n break;\n }\n\n }",
"protected function get_validation_rules()\n {\n }",
"public function rules()\n {\n $rules = [\n 'users' => 'required|array',\n ];\n\n foreach($this->request->get('users') as $key => $user) {\n $rules['users.'. $key . '.name'] = 'required|string|min:3|max:255';\n $rules['users.'. $key . '.phone'] = 'required|regex:/^[0-9\\+\\s]+$/|min:10|max:17';\n $rules['users.'. $key . '.country'] = 'required|string|min:2:max:3';\n }\n\n return $rules;\n }",
"public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }",
"public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n $rules['location'] = 'required';\n $rules['end_recruit_date'] = 'required';\n $rules['time_taken'] = 'required';\n $rules['payment'] = 'required';\n $rules['objective'] = 'required';\n $rules['method_desc'] = 'required';\n $rules['health_condition'] = 'required';\n $rules['required_applicant'] = 'required|integer';\n $rules['applicant'] = 'nullable';\n $rules['datetime'] = 'required';\n\n return $rules;\n }",
"public function rules()\n {\n switch($this->method()) {\n\n case 'PUT':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n case 'POST':\n {\n return [\n 'company_name' => 'required',\n 'status' => 'required|integer',\n 'notify_url' => 'required',\n 'name' => 'required'\n ];\n }\n default:\n return [];\n }\n\n }",
"public function rules()\n {\n $rules['name'] = 'required';\n $rules['poa'] = 'required';\n $rules['background'] = 'required';\n $rules['tester_name'] = 'required';\n\n return $rules;\n }",
"public function rules()\n {\n switch(Route::currentRouteName()){\n case 'adminBinding' :\n return [\n 'order_id' => 'required|integer',\n 'money' => 'required|numeric',\n ];\n case 'adminUnbinding' :\n return [\n 'order_id' => 'required|integer',\n 'pivot_id' => 'required|integer',\n ];\n case 'adminReceiptSave' :\n case 'adminReceiptUpdate' :\n return [\n 'customer_id' => 'required',\n 'receiptcorp' => 'required',\n 'account' => 'required',\n 'account_id' => 'required',\n 'bank' => 'required',\n 'currency_id' => 'required',\n 'advance_amount' => 'required|numeric',\n 'picture' => 'required',\n 'business_type' => 'required|in:1,2,3,4,5',\n 'exchange_type' => 'required_unless:currency_id,354|in:1,2',\n 'expected_received_at' => 'required|date_format:Y-m-d',\n ];\n case 'adminReceiptExchange' :\n return [\n 'rate' => 'required|numeric',\n ];\n default :\n return [];\n }\n }",
"public function rules()\n {\n $rules = [];\n $method = $this->getMethod();\n switch ($method) {\n case 'GET':\n if (Route::currentRouteName() === 'schoolActivity.getSchoolActivity') {\n $rules = [\n ];\n }\n break;\n }\n return $rules;\n }",
"public function rules()\n {\n $rules = new Collection();\n\n if (!$this->user() or !$this->user()->addresses()->count()) {\n $rules = $rules->merge($this->addressRules('billing'));\n if ($this->has('different_shipping_address')) {\n $rules = $rules->merge($this->addressRules('shipping'));\n }\n\n return $rules->toArray();\n }\n\n return $rules->merge([\n 'billing_address_id' => 'required|numeric',\n 'shipping_address_id' => 'required|numeric',\n ])->toArray();\n }",
"public function rules(): array\n {\n switch ($this->method()) {\n case 'POST':\n return $this->__rules() + $this->__post();\n case 'PUT':\n return $this->__rules() + $this->__put();\n default:\n return [];\n }\n }",
"public function defineValidationRules()\n {\n return [];\n }",
"public function rules(Request $request)\n {\n return Qc::$rules;\n }",
"public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'user_name' => 'nullable|string',\n 'excel' => 'nullable|file|mimes:xlsx',\n 'category' => 'required|int|in:' . implode(',', array_keys(UserMessage::$categories)),\n 'content' => 'required|string|max:500',\n 'member_status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n }\n }",
"public function rules()\n {\n return [\n 'lead_id' => [\n 'required', 'string',\n ],\n 'api_version' => [\n 'required', 'string',\n ],\n 'form_id' => [\n 'required', 'int',\n ],\n 'campaign_id' => [\n 'required', 'int',\n ],\n 'google_key' => [\n 'required', 'string', new GoogleKeyRule,\n ],\n ];\n }"
] | [
"0.8342703",
"0.80143493",
"0.7937251",
"0.79264987",
"0.79233825",
"0.79048395",
"0.78603816",
"0.7790699",
"0.77842164",
"0.77628785",
"0.7737272",
"0.7733618",
"0.7710535",
"0.7691693",
"0.76849866",
"0.7683038",
"0.7683038",
"0.7683038",
"0.7683038",
"0.7683038",
"0.7683038",
"0.7675849",
"0.76724476",
"0.76665044",
"0.7657698",
"0.7641827",
"0.7630892",
"0.76293766",
"0.7617708",
"0.76102096",
"0.7607475",
"0.7602442",
"0.7598732",
"0.7597544",
"0.75924",
"0.75915384",
"0.7588146",
"0.7581354",
"0.7555758",
"0.755526",
"0.7551423",
"0.7546329",
"0.7541439",
"0.75366044",
"0.75363225",
"0.7530296",
"0.7517988",
"0.75155175",
"0.7508439",
"0.75069886",
"0.7505724",
"0.749979",
"0.7495976",
"0.74949056",
"0.7492888",
"0.7491117",
"0.74901396",
"0.7489651",
"0.7486808",
"0.7486108",
"0.7479687",
"0.7478561",
"0.7469412",
"0.74635684",
"0.74619836",
"0.7461325",
"0.74591017",
"0.7455279",
"0.745352",
"0.7453257",
"0.7449877",
"0.74486",
"0.7441391",
"0.7440429",
"0.7435489",
"0.7435326",
"0.74341524",
"0.7430354",
"0.7429103",
"0.7423808",
"0.741936",
"0.74152505",
"0.7414828",
"0.741382",
"0.74126065",
"0.74105227",
"0.740555",
"0.7404385",
"0.74040926",
"0.74015605",
"0.73905706",
"0.73837525",
"0.73732615",
"0.7371123",
"0.7369176",
"0.73619753",
"0.73554605",
"0.73448825",
"0.7344659",
"0.73427117",
"0.73357755"
] | 0.0 | -1 |
Get all cells grid informations | public function handle_grid($attributes, $content, $block_instance)
{
$cellsLayout = [];
foreach ($block_instance->parsed_block["innerBlocks"] as $innerBlock) {
if ($innerBlock["blockName"] != "custom/wpe-column") {
continue;
}
if( !isset($innerBlock["attrs"]["id_component"]) ) {
continue;
}
$cellsLayout[$innerBlock["attrs"]["id_component"]] =
$innerBlock["attrs"]["layout"] ?? null;
}
// Generate Coffeekraken CSS layout string
$layout = [];
$media = $this->get_config()->get_spec("media");
if (
$media &&
is_array($media) &&
isset($media["queries"]) &&
is_array($media["queries"]) &&
count($media["queries"]) > 0
) {
foreach ($media["queries"] as $device => $query) {
$layout[$device] = Css::generate_coffeekraken_css_layout(
$cellsLayout,
$device
);
}
}
// Generate grid ID
$grid_id =
isset($attributes["anchor"]) && !empty($attributes["anchor"])
? $attributes["anchor"]
: "grid_" . mt_rand();
// Prepare data
$attributes = array_merge($attributes, [
"id" => $grid_id,
"media" => $layout,
"frontspec" => [
"media" => $media,
],
"container" => true,
"attributes" => [
"class" => $attributes["className"] ?? "",
],
]);
// Return
return $attributes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCells();",
"public function getCells()\n {\n return $this->cells;\n }",
"public function getGrid()\n {\n return $this->all();\n }",
"public function getGrid()\n {\n return $this->all();\n }",
"public function cells();",
"public function getCells()\r\n {\r\n return $this->cells ?: $this->cells = new \\Doctrine\\Common\\Collections\\ArrayCollection();\r\n }",
"public function get_cell_info() {\n $types = array();\n $cells = array();\n foreach ($this->get_unique_section('GridMap/Palette')->sections as $cell) {\n if (is_array($cell)) {\n $cell = end($cell);\n }\n /** @var \\Totengeist\\IVParser\\Section $cell */\n $path = explode('/', $cell->path);\n $name = $path[count($path)-1];\n // If the name is empty, the character is '/' and was exploded.\n if ($name == '') {\n $name = '/';\n }\n // If the cell is empty space, it contains no content.\n if (count($cell->content) == 0) {\n $types[$name] = array();\n } else {\n foreach ($cell->content as $key => $type) {\n if (in_array($key, static::$CELLS)) {\n $types[$name][] = $key;\n } elseif (in_array($key, static::$CELL_TYPES)) {\n $key = 'Storage ' . $type;\n $types[$name][] = $key;\n } else {\n $types[$name] = array();\n }\n }\n }\n }\n $typekeys = array_keys($types);\n $cell_width = strlen($typekeys[count($typekeys)-1])+1;\n\n foreach ($this->get_unique_section('GridMap/Cells')->content as $cellk => $cell) {\n for ($i = 0; $i < strlen($cell); $i += $cell_width) {\n $char = trim(substr($cell, $i, $cell_width));\n if (in_array($char, array_keys($types))) {\n foreach ($types[$char] as $type) {\n if (!isset($cells[$type])) {\n $cells[$type] = 1;\n } else {\n $cells[$type]++;\n }\n }\n }\n }\n }\n if (isset($cells['Habitation'])) {\n $cells['HabitationCapacity'] = (int) floor($cells['Habitation']/9);\n }\n\n return $cells;\n }",
"abstract public function grid();",
"public function grid() : array\r\n {\r\n return [];\r\n }",
"public function getGrids() {\n $gridList = array();\n\n // Query to get all grids from the database\n $query = \"SELECT * FROM grid\";\n $stmt = $this->conn->prepare($query);\n if ($stmt->execute()) {\n // Getting the grids\n $result = $stmt->fetchAll(PDO::FETCH_OBJ);\n\n // Filling the array with the grid object\n foreach ($result as $grid) {\n $gridModel = new Grid($grid->id, $grid->name, $grid->length, $grid->height);\n array_push($gridList, $gridModel);\n }\n }\n // Returning the array\n return $gridList;\n }",
"private function populateGrid() {\n for ($x = 0; $x < self::HEIGHT; $x++) {\n $this->grid[$x] = [];\n for ($y = 0; $y < self::HEIGHT; $y++) {\n $location = new Location();\n $location->setX($x);\n $location->setY($y);\n $this->grid[$x][$y] = $location;\n }\n }\n }",
"public function getCells(): array\n {\n $matrix = [];\n\n foreach ($this->cells as $x => $cellY)\n {\n foreach ($cellY as $y => $cellX)\n {\n $matrix[$x][$y] = $this->cells[$x][$y]->imAlive();\n }\n }\n\n return $matrix;\n }",
"public function getGridSize();",
"protected function grid()\n {\n $grid = new Grid(new gameLog());\n\n $grid->column('onlyId', ___('OnlyId'));\n $grid->column('bigBlindIndex', ___('BigBlindIndex'));\n $grid->column('gameNums', ___('GameNums'));\n $grid->column('smallBlindIndex', ___('SmallBlindIndex'));\n $grid->column('tableCards', ___('TableCards'));\n $grid->column('tableId', ___('TableId'));\n $grid->column('tableSeat1Str1', ___('TableSeat1Str1'));\n $grid->column('tableSeat1Str2', ___('TableSeat1Str2'));\n $grid->column('tableSeat1Str3', ___('TableSeat1Str3'));\n $grid->column('tableSeat1Str4', ___('TableSeat1Str4'));\n $grid->column('tableSeat1Str5', ___('TableSeat1Str5'));\n $grid->column('tableSeat1Str6', ___('TableSeat1Str6'));\n $grid->column('tableSeat1Str7', ___('TableSeat1Str7'));\n $grid->column('time', ___('Time'));\n\n return $grid;\n }",
"static function getGriditemsInfo()\r\n\t{\r\n\t\treturn Storydata::get('item_locations',array());\t\t\r\n\t}",
"public function getCells($gameid) {\n\n $sql =<<<SQL\nSELECT * \nFROM $this->tableName \nWHERE gameid=?\nSQL;\n\n $pdo = $this->pdo();\n $statement = $pdo->prepare($sql);\n $statement->execute([$gameid]);\n\n $cells = [];\n\n foreach($statement as $row) {\n $cells[] = new Cell($row);\n }\n\n return $cells;\n\n }",
"protected function buildGrid()\n {\n\t$this->cases = array() ;\n\tfor($row = 1; $row<=$this->size; $row++) { // row \n\t for($col = 1 ; $col<= $this->size; $col++) { // col\n $region = $this->getRegion($row, $col) ;\n $this->cases[$row . '.' . $col] = new GridCase($region, $row, $col, $this->size) ;\n }\n\t}\n return $this->cases ;\n }",
"public function getIterateOnlyExistingCells()\n {\n return $this->_onlyExistingCells;\n }",
"public function grid() : array\n {\n return [\n 'name' => 'Имя',\n 'publish_at' => 'Дата публикации',\n 'created_at' => 'Дата создания',\n ];\n }",
"protected function grid()\n {\n $grid = new Grid(new NewEnergy());\n\n $grid->column('user_id', __('用户'));\n $grid->column('car_id', __('车辆ID'));\n $grid->column('start_mileage', __('开始里程'));\n $grid->column('end_mileage', __('结束里程'));\n $grid->column('mileage', __('里程'));\n $grid->column('type', __('车辆类型'));\n $grid->column('status', __('状态'));\n $grid->column('remark', __('备注'));\n\n return $grid;\n }",
"public function getCell()\n {\n return $this->cell;\n }",
"public function hasCells();",
"protected function calculateRowsAndColumns() {}",
"final private function initCells(){\n\t\t$row = $this->row;\n\t\t$col = $this->col;\n\t\tfor($i=0;$i<$row;$i++)\n\t\t\tfor($j=0;$j<$col;$j++)\n\t\t\tif (@$this->contents[$i]->contents[$j] and\n\t\t\t\t\t@!$this->markspan[$i][$j] and\n\t\t\t\t\tcount(@$this->contents[$i]->contents[$j]->contents) == 0)\n\t\t\t$this->cellContent($i,$j,' ');\n\n\t}",
"protected function grid()\n {\n $grid = new Grid(new MachinesStyle());\n\n $grid->model()->latest();\n \n $grid->column('id', __('索引'))->sortable();\n\n $grid->column('style_name', __('型号名称'))->help('机具的型号名称');\n\n $grid->column('machines_fact.factory_name', __('所属厂商'))->help('机具型号所属的厂商');\n\n // $grid->column('machines_fact.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 }",
"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 }",
"public function getCellsRead() : array\n {\n\n return $this->cellsRead;\n }",
"protected function grid()\n {\n $grid = new Grid(new PointMachine());\n\n $grid->column('id', __('Id'));\n $grid->column('name', __('Name'));\n $grid->column('point.name', __('Point name'));\n $grid->column('machine_no', __('Machine no'));\n // 1-自助型 2-全自动型\n $grid->column('type', __('Type'))->display(function ($type) {\n return $type == 1 ? '自助型 ' : '全自动型';\n });\n $grid->column('cost', __('Cost'));\n $grid->column('cost_at', __('Cost at'));\n $grid->column('build_at', __('Build at'));\n $grid->column('remark', __('Remark'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new StationBannerImage());\n\n $grid->column('id', __('Id'));\n $grid->column('station.station_name', __('測站'));\n $grid->column('image', __('輪播圖'))->image('', '50');\n $grid->column('url', __('連結'))->link();\n $grid->column('order', __('排序'));\n $grid->column('valid_at', __('有效日期'));\n $grid->column('mod_user', __('異動人員'));\n $grid->column('updated_at', __('異動時間'));\n\n if (Admin::user()->username != 'admin') {\n $grid->model()->where('station_id', '=', Admin::user()->station_id);\n }\n\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Goods);\n $grid->id('ID')->sortable();\n $grid->name('名称');\n $grid->type('分类')->display(function($status) {\n $arr = (new AdminModel('goods_type'))->getAll('',['type','id']);\n foreach ($arr as $key => $value) {\n if($status==$value['id']) return $value['type']; \n }\n \n });\n $grid->cover('商品大图')->image('',70, 70);\n $grid->image('详情图')->image('',70, 70);\n $grid->stock('库存');\n $grid->price('积分价格');\n $grid->status('状态')->display(function($status) {\n if($status==1) return \"上架中\";\n if($status==0) return \"已下架\"; \n });\n $grid->disableExport();//禁用导出数据按钮\n $grid->filter(function ($filter) {\n $filter->disableIdFilter();//禁用查询过滤器\n });\n \n \n return $grid;\n }",
"public function getCellValues()\n {\n return $this->get('CellValues');\n }",
"protected function grid()\n {\n $grid = new Grid(new News);\n\n $grid->id('Id');\n $grid->title('题目');\n $grid->category_id('分类ID');\n // $grid->content('内容');\n $grid->thumbnail('封面图');\n $grid->status('状态');\n $grid->read_count('阅读数量');\n $grid->created_at('创建时间');\n $grid->updated_at('更新时间');\n\n return $grid;\n }",
"public function get_grid_info($info=null){\n\t\t\tif(isset($this->GridInfo) === false){\n\t\t\t\t$result = $this->makeCallToAPI('get_grid_info', true, null, array(\n\t\t\t\t\t'GridInfo' => array('object'=>array())\n\t\t\t\t));\n\n\t\t\t\t$this->GridInfo = WebUI\\GridInfo::f();\n\t\t\t\tforeach($result->GridInfo as $k=>$v){\n\t\t\t\t\t$this->GridInfo[$k] = $v;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn (isset($info) && is_string($info) && ctype_graph($info)) ? $this->GridInfo[$info] : $this->GridInfo;\n\t\t}",
"protected function grid()\n {\n $grid = new Grid(new $this->currentModel);\n\n $grid->id('ID')->sortable();\n\n $grid->company_id('公司名称')->display(function ($company_id) {\n $company = Company::find($company_id);\n if ($company) {\n return $company->company_name;\n }\n return $company_id;\n });\n $grid->project_name('项目名称')->sortable();\n $grid->link_url('项目链接');\n $grid->display('公开度')->display(function ($display) {\n return $display == 0 ? '公开' : '私密';\n });\n $grid->created_at('添加时间')->sortable();\n\n return $grid;\n }",
"public function gameGrid() {\n\n }",
"protected function grid()\n {\n $grid = new Grid(new Reply);\n\n $grid->id('Id');\n $grid->comment_id('评论ID');\n $grid->fromId('评论者ID');\n $grid->fromName('评论者');\n// $grid->fromAvatar('评论者头像');\n $grid->toId('被评论者ID');\n $grid->toName('被评论者');\n// $grid->toAvatar('被评论者头像');\n $grid->contents('评论内容');\n $grid->created_at('发布时间');\n// $grid->updated_at('更新时间');\n\n return $grid;\n }",
"public function getColumns();",
"public function getColumns();",
"public function getColumns();",
"public function getColumns();",
"public function getColumns();",
"public function getColumns();",
"public function getColumns();",
"protected function grid()\n {\n $grid = new Grid(new WechatMessage);\n\n $grid->id('Id');\n $grid->msg_type('消息类型');\n $grid->media_id('素材id');\n $grid->title('标题');\n $grid->created_at('创建时间');\n $grid->updated_at('修改时间');\n\n return $grid;\n }",
"public function getColumns(){\n $rows = array();\n return $rows; \n }",
"public static function getColsSetting(){\n\t\t$colGrid = array('1', '2', '3', '4', '5', '6');\n\t\tforeach($colGrid as $value){\n\t\t\t$data[$value] = $value;\n\t\t}\n\t\treturn $data;\n\t}",
"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 }",
"protected function CalcGrid()\n {\n if(isset($this->grid_calc_done))\n return;\n\n $grid_bottom = $this->height - $this->pad_bottom;\n $grid_left = $this->pad_left;\n\n $y_axis = $this->y_axes[$this->main_y_axis];\n $x_axis = $this->x_axes[$this->main_x_axis];\n $y_points = $y_axis->GetGridPoints($grid_bottom);\n $x_points = $x_axis->GetGridPoints($grid_left);\n\n if($this->flip_axes) {\n $this->grid_limit = $this->label_centre ?\n $this->g_height - ($y_axis->Unit() / 2) : $this->g_height;\n } else {\n $this->grid_limit = $this->label_centre ?\n $this->g_width - ($x_axis->Unit() / 2) : $this->g_width;\n }\n $this->grid_limit += 0.01; // allow for floating-point inaccuracy\n $this->grid_calc_done = true;\n }",
"protected function grid()\n {\n $grid = new Grid(new MethodPrice);\n\n $grid->id('ID');\n $grid->entity('Сущность')->select(Pest::all()->pluck('name','id'));\n $grid->method('Сущность')->select(Method::all()->pluck('name','id'));\n $grid->chemical('Сущность')->select(Chemical::all()->pluck('name','id'));\n $grid->square_1('Сущность')->select(Chemical::all()->pluck('name','id'));\n\n return $grid;\n }",
"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 }",
"function grid($Regs){\n\t\t// Datos\n\t\t$Grid = $this->_Registros($Regs);\n\t\t$Grid->addVariable('TAM_TXT', $this->TamTextoGrilla);\n\t\t//$Grid->addVariable('DIR_HTTP_FOTOS_NOTICIAS', DIR_HTTP_FOTOS_NOTICIAS);\n\t\t\n\t\t// devuelvo\n\t\treturn ($Grid->fetchGrid('noticias/noticia-grid.htm', 'Listado de noticias',\n\t\t\t\t\t\t\t\tbasename($_SERVER['SCRIPT_NAME']), // Paginador\n\t\t\t\t\t\t\t\t\"\", // PDF\n\t\t\t\t\t\t\t\tbasename($_SERVER['SCRIPT_NAME']), // Home\n\t\t\t\t\t\t\t\tbasename($_SERVER['SCRIPT_NAME']), // Mto\n\t\t\t\t\t\t\t\t$this->AccionesGrid));\n\t}",
"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 }",
"protected function grid()\n {\n $grid = new Grid(new HotRank());\n\n// $grid->column('id', __('Id'));\n $grid->column('sort', __('排序'))->editable();\n $grid->column('nickname', __('昵称'));\n $grid->column('avatar', __('头像'))->image();\n $grid->column('gender', __('性别'))->using([\n 1 => '男',\n 2 => '女'\n ]);\n// $grid->column('role', __('Role'));\n// $grid->column('intro', __('Intro'));\n $grid->column('fans', __('粉丝数'));\n $grid->column('red_book_link', __('小红书链接'));\n $grid->column('red_book_fans', __('小红书粉丝'));\n $grid->column('douyin_link', __('抖音链接'));\n $grid->column('douyin_fans', __('抖音粉丝'));\n $grid->column('created_at', __('创建时间'));\n $grid->actions(function ($actions) use ($grid) {\n // 去掉删除\n// $actions->disableDelete();\n// // 去掉编辑\n// $actions->disableEdit();\n // 去掉查看\n $actions->disableView();\n });\n\n return $grid;\n }",
"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 }",
"public function getArrgamegrid() {\n return json_decode($this->gettxtGamegrid());\n }",
"public function getGridHtml()\n {\n return $this->getBlockGrid()->toHtml();\n }",
"protected function getGridInstance()\n {\n return null;\n }",
"protected function grid()\n {\n $grid = new Grid(new Collect());\n $grid->disableActions();\n $grid->disableCreateButton();\n $grid->column('name','姓名');\n $grid->column('phone','手机号');\n $grid->column('address','地址');\n $grid->column('time','时间');\n $grid->column('message','备注');\n\n $postsExporter = new ColectExport();\n $postsExporter->fileName = date('Y-m-d H:i:s').'.xlsx';\n $grid->exporter($postsExporter);\n $url = url()->current();\n $url .= \"?_export_=all\";\n $grid->tools(function ($tools)use($grid,$url){\n $tools->append(new Export($grid,$url));\n });\n\n return $grid;\n }",
"public function getEntries()\n {\n $rows = array();\n // dd($this->xml->entry->asXml()); // <- TO GET XML\n\n if(count($this->xml->entry) > 0) {\n // d($this->xml); // <- NOT GETTING EMPTY CELLS\n\n $colNames = $this->getColumnNames($this->xml);\n // dd($colNames);\n // dd($this->xml);\n\n\n foreach ($this->xml->entry as $entry) {\n $cols = $entry->xpath('gsx:*');\n // dd($cols);\n\n $vals = array();\n foreach($cols as $col) {\n // dd($col); // <- THIS DISPLAYS\n // var_dump((string) $col);\n\n // if (is_null($col) || $col == '' || $col === '' || !isset($col)) {\n // // $col = ' ';\n // $vals[] = ' ';\n // } else {\n $vals[] = $col->__toString();\n // }\n }\n // dd($vals); // <- THIS HAS THE VALUES YOU WANT\n // d($entry);\n // dd($colNames);\n // d($vals); <- ROWS (in a basic array form)\n $rows[] = new ListEntry($entry, array_combine($colNames, $vals));\n\n }\n }\n // dd($rows);\n return $rows;\n }",
"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 }",
"protected function grid()\n {\n $grid = new Grid(new Station());\n\n $grid->column('id', __('Id'));\n $grid->column('area.area_name', __(trans('admin.area_name')));\n $grid->column('station_code', __(trans('admin.station_code')));\n $grid->column('station_name', __(trans('admin.station_name')));\n $grid->column('telno', __(trans('admin.telno')));\n $grid->column('order', __(trans('admin.order')));\n $grid->column('valid_at', __(trans('admin.valid_at')));\n $grid->column('mod_user', __(trans('admin.mod_user')));\n $grid->column('updated_at', __(trans('admin.updated_at')));\n\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Good);\n $grid->column('id', __('Id'))->sortable();\n $grid->column('name', __('名称'));\n $grid->column('unit', __('单位'));\n //$grid->column('list_img', __('商品图片'))->image()->width(10);\n $grid->column('amount', __('价格'));\n $grid->column('created_at', __('创建时间'));\n $grid->disableExport();\n $grid->disableRowSelector();\n $grid->disableFilter();\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Facility);\n\n $grid->id('施設ID')->sortable();\n $grid->facility_name('施設名')->sortable();\n $grid->type('タイプ')->sortable();\n $grid->room('部屋数')->sortable();\n $grid->floor('フロア数')->sortable();\n $grid->transaction_status('取引ステータス')->sortable();\n $grid->sales_status('運営状況')->sortable();\n $grid->postalcode('郵便番号')->sortable();\n $grid->prefecture('都道府県')->sortable();\n $grid->address('住所')->sortable();\n $grid->katagaki('方書')->sortable();\n $grid->tel('電話番号')->sortable();\n $grid->manager('支配人')->sortable();\n $grid->manager_phone_number('支配人 携帯電話')->sortable();\n // $grid->division1('担当事業部1')->sortable();\n // $grid->department1('部署1')->sortable();\n // $grid->staff1('担当者名1')->sortable();\n // $grid->staff_phone_number1('担当者携帯1')->sortable();\n // $grid->remarks1('備考1')->sortable();\n // $grid->division2('担当事業部2')->sortable();\n // $grid->department2('部署2')->sortable();\n // $grid->staff2('担当者名2')->sortable();\n // $grid->staff_phone_number2('担当者携帯2')->sortable();\n // $grid->remarks2('備考2')->sortable();\n // $grid->division3('担当事業部3')->sortable();\n // $grid->department3('部署3')->sortable();\n // $grid->staff3('担当者名3')->sortable();\n // $grid->staff_phone_number3('担当者携帯3')->sortable();\n // $grid->remarks3('備考3')->sortable();\n // $grid->customer_id('顧客ID')->sortable();\n // $grid->wifi('WiFi販売')->sortable();\n // $grid->fixtures('備品販売')->sortable();\n // $grid->tv('TV販売')->sortable();\n // $grid->tableware('食器販売')->sortable();\n // $grid->created_at('Created at');\n // $grid->updated_at('Updated at');\n\n $grid->actions(function ($actions) {\n // $actions->disableDelete();\n // $actions->disableEdit();\n $actions->disableView();\n });\n\n return $grid;\n }",
"private function display_grid($grid) \n\t{\n\t\techo \"<table border=1>\";\n\t\tforeach ($grid as $row =>$columns) {\n\t\t\t\techo \"<tr><td></td>\";\n\t\t\tforeach ($columns as $key =>$value) {\n\t\t\t\t\n\t\t\t\techo \"<td>$value</td>\";\n\t\t\t\t\n\t\t\t}\n\t\t\techo \"</tr>\";\n\t\t}\n\t\techo \"</table>\";\n\t\t\n\t\t\n\t}",
"abstract public function getCols();",
"protected function grid()\n {\n $grid = new Grid(new Elevator);\n\n $grid->id('ID');\n $city=getCity();$brand=getBrand();\n\n if($city!='*'){\n $subsql=DB::table('project')->whereIn('city_id', $city)->select('id')->sql();\n $grid->model()->whereRaw(DB::raw('pid in ('.$subsql.')'));\n }\n if($brand!='*'){\n $subsql=DB::table('project')->whereIn('brand', $brand)->select('id')->sql();\n $grid->model()->whereRaw(DB::raw('pid in ('.$subsql.')'));\n }\n $grid->column('project.name','项目名称');\n $grid->region('梯号');\n $grid->eid('电梯设备')->display(function(){\n if($this->device){\n return $this->device->brand.$this->device->brand_set;\n }\n return '未找到电梯设备';\n });\n $grid->num('电梯数量');\n $grid->height('提升高度(m)');\n $grid->layer_numbers('层/站/门')->display(function($layer_number){\n return \"{$this->layer_number}/{$this->layer_number_site}/{$this->layer_number_door}\";\n });\n $grid->pit_depth('底坑深度(mm)');\n $grid->top_height('顶层高度(mm)');\n $grid->hall_width('厅门尺寸(mm)')->display(function($hall){\n return \"{$this->hall_width}X{$this->hall_height}\";\n });\n $grid->car_width('轿厢尺寸(mm)')->display(function($car){\n return \"{$this->car_width}X{$this->car_height}X{$this->car_depth}\";\n });\n $grid->desc('电梯说明');\n\n $grid->status1('功能/装修')->display(function(){\n if($this->status>=Elevator::STATUS_JD_JT){\n return Elevator::getStatusStr($this->status);\n }\n return '<a href=\"/admin/elevator/'.$this->id.'/funfit\">查看&配置</a>';\n });\n $grid->status('状态')->eleStatus();\n $grid->filter(function($filter) use($city,$brand){\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n // 在这里添加字段过滤器\n $pj=Project::select('*');\n if($city!='*'){\n $pj->whereIn('city_id', $city);\n }\n if($brand!='*'){\n $pj->where('brand', $brand);\n }\n $pj=$pj->get();\n $arr=Arr::pluck($pj, 'name','id');\n //var_dump($pj,$arr);\n $filter->equal('pid','项目')->select($arr);\n $filter->like('desc', '电梯说明');\n });\n $grid->tools(function ($tools) {\n $tools->batch(function ($batch) {\n $batch->disableDelete();\n });\n });\n $grid->disableExport();\n $grid->actions(function (Grid\\Displayers\\Actions $actions) {\n $actions->disableView();\n if($actions->row->status>=Elevator::STATUS_JD_JT){\n $actions->disableDelete();\n $actions->disableEdit();\n }\n });\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Regional());\n\n $grid->column('id', 'ID');\n $grid->column('logo', 'Logo')->image('', '50', '50');\n $grid->column('name', 'Nama');\n $grid->column('address', 'Alamat');\n $grid->column('created_at', 'Dibuat')->date('d-m-Y');\n $grid->column('updated_at', 'Diubah')->date('d-m-Y');\n\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Information);\n\n $grid->model()->where('adminuser_id', '=', Admin::user()->id);\n $grid->disableCreateButton();\n\n $grid->column('id', __('Id'));\n $grid->column('name', __('项目名称'));\n $grid->column('content', __('项目简介'))->limit(30);\n $grid->column('industry', __('行业类别'));\n $grid->column('investment', __('投资金额')); \n $grid->column('cont_name', __('资方联系人'));\n $grid->column('cont_phone', __('资方联系方式'));\n $grid->column('staff_name', __('工作人员姓名'));\n $grid->column('staff_phone', __('工作人员电话'));\n $grid->column('created_at', __('上报时间'));\n $grid->column('updated_at', __('更新时间'));\n $grid->filter(function($filter){\n\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n\n // 在这里添加字段过滤器\n $filter->like('name', '项目名称');\n $filter->like('cont_name', '资方联系人');\n $filter->like('content', '项目情况');\n });\n\n\n return $grid;\n }",
"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 }",
"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 }",
"public function getCellXfCollection() {\n\t\treturn $this->cellXfCollection;\n\t}",
"protected function grid()\n {\n $grid = new Grid(new Article);\n $grid->model()->latest('id');\n\n $grid->id('Id');\n $grid->title('标题')->limit(50);\n $grid->url('文章链接')->display(function () {\n return \"http://btl.yxcxin.com/article_detail/{$this->id}/public\";\n });\n $grid->category()->title('分类');\n $grid->read_count('阅读数');\n $grid->share_count('分享数');\n $grid->show_at('显示时间');\n $grid->created_at('创建时间');\n $grid->updated_at('更新时间');\n\n $grid->disableExport();\n\n $grid->filter(function ($filter) {\n $filter->disableIdFilter();\n $filter->equal('category_id', '分类')->select(ArticleCategory::query()->pluck('title', 'id'))->default(1);\n $filter->like('title', '标题');\n });\n\n $grid->actions(function ($action) {\n $action->disableView();\n });\n\n return $grid;\n }",
"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 }",
"protected function grid()\n {\n $grid = new Grid(new GoodsClass);\n $pid=Input::get(\"pid\",null);\n $grid->model()->where(\"pid\",$pid);\n $info_array=[\n array(\"field\"=>\"id\",\"title\"=>\"id\",\"type\"=>\"value\"),//展示昵称\n array(\"field\"=>\"parent.title\",\"title\"=>\"上级\",\"type\"=>\"default\",\"default\"=>\"顶级\"),//展示昵称\n array(\"field\"=>\"title\",\"title\"=>\"标题\",\"type\"=>\"value\"),//展示昵称\n array(\"field\"=>\"desc\",\"title\"=>\"简介\",\"type\"=>\"value\"),//展示真实姓名\n array(\"field\"=>\"icon\",\"title\"=>\"图标\",\"type\"=>\"image\"),//展示图片\n array(\"field\"=>\"updated_at\",\"title\"=>\"更新时间\",\"type\"=>\"value\"),\n ];\n BaseControllers::setlist_show($grid,$info_array);//拼接列表展示数据\n\n $grid->actions(function ($actions) use($pid) {\n\n if(empty($pid)){\n $actions->add(new SeeNext());\n }\n });\n\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new ArticleCategory);\n// $grid->id('Id');\n $grid->name('名称');\n $grid->created_at('创建时间');\n $grid->updated_at('修改时间');\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Feedback);\n $grid->column('id', 'ID');\n $grid->column('content', '内容');\n $grid->column('member', '用户')->display(function(){\n return $this->member->nickname;\n });\n $grid->column('created_at', '时间');\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Player\\Rank);\n // 新增按钮\n $grid->disableCreateButton();\n // 导出按钮\n $grid->disableExport();\n // 批量操作\n $grid->tools(function ($tools) {\n $tools->batch(function ($batch) {\n $batch->disableDelete();\n });\n });\n // 筛选\n $grid->filter(function($filter){\n $filter->expand();\n $filter->disableIdFilter();\n $filter->equal('type', trans('game.rank'))->select(collect($this->ranks)->map(function ($item) {\n return trans($item);\n }));\n });\n // 行操作\n $grid->actions(function ($actions) {\n $actions->disableEdit();\n $actions->disableDelete();\n $actions->append(new ConfirmButton($actions->getResource(), $actions->getRouteKey(), 'kickout', 'fa-chain-broken'));\n });\n // 列\n $grid->rank(trans('game.info.rank'));\n $grid->id('ID')->display(function ($link) {\n return \"<a href='search?&id={$link}'>{$link}</a>\";\n });;\n $grid->name(trans('game.info.name'));\n $grid->value(trans('game.info.value'));\n $grid->role(trans('game.info.role'));\n $grid->vip(trans('game.info.vip'));\n $grid->guild(trans('game.info.guild'))->display(function ($link) {\n return \"<a href='/admin/guild/search?&id={$link}'>{$link}</a>\";\n });\n $grid->status(trans('game.info.status'))->display(function ($status) {\n $status = PlayerController::$statusInfo[$status];\n\n $name = trans('game.info.'.$status['name']);\n $style = $status['style'];\n return \"<span class='label label-{$style}'>$name</span>\";\n });\n $grid->forbidlogin(trans('game.info.forbid'))->displayUsing(SwitchDisplay::Class);\n\n return $grid;\n }",
"public function getFreeCell()\n {\n $free = array();\n foreach ($this->kitCells as $pos => $value) {\n if ($value === null) {\n $free[] = $pos;\n }\n }\n\n return $free;\n }",
"protected function grid()\n {\n $grid = new Grid(new SiteHelp);\n\n $grid->model()->latest();\n\n $grid->filter(function ($filter) {\n\n // 去掉默认的id过滤器\n $filter->disableIdFilter();\n\n $filter->equal('site_help_category_id', __('site-help::help.site_help_category_id'))\n ->select(SiteHelpCategory::pluck('name', 'id'));\n $filter->like('title', __('site-help::help.title'));\n $filter->equal('status', __('site-help::help.status.label'))\n ->select(__('site-help::help.status.value'));\n });\n\n $grid->column('thumbnail', __('site-help::help.thumbnail'))->image('', 66);\n $grid->column('id', __('site-help::help.id'));\n $grid->column('category.name', __('site-help::help.site_help_category_id'));\n $grid->column('title', __('site-help::help.title'));\n $grid->column('useful', __('site-help::help.useful'));\n $grid->column('status', __('site-help::help.status.label'))\n ->using(__('site-help::help.status.value'));\n $grid->column('created_at', __('admin.created_at'));\n $grid->column('updated_at', __('admin.updated_at'));\n\n return $grid;\n }",
"public function grid()\n {\n echo json_encode(array(\n \"data\" => $this->slider->getGridData()->result()\n ));\n }",
"protected function grid()\n {\n $grid = new Grid(new WechatEvent);\n\n $grid->id('Id');\n $grid->title('事件标题');\n $grid->key('Key');\n $grid->event('事件类型')->using(WechatEvent::EVENTLIST);\n $grid->method('执行方法');\n $grid->column('message.title', '消息标题');\n $grid->created_at('创建时间');\n $grid->updated_at('修改时间');\n\n return $grid;\n }",
"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 }",
"protected function grid()\n {\n date_default_timezone_set(\"PRC\");\n\n $grid = new Grid(new BackPeopleInfo());\n\n $grid->column('id', __('序号'));\n $grid->column('name', __('姓名'));\n $grid->column('id_num', __('身份证号码'));\n $grid->column('phone', __('手机号码'));\n $grid->column('address', __('楼栋房号'));\n $grid->column('originatin', __('始发地'));\n $grid->column('back_date', __('返回日期'));\n $grid->column('isolate_date', __('隔离日期'));\n $grid->column('isolate_flag', __('解除隔离'));\n $grid->column('isolate_level', __('隔离等级'));\n $grid->column('qrcode_flag', __('网格化管理'));\n $grid->column('vehicle_info', __('交通工具'));\n $grid->column('remarks', __('备注'));\n\n $grid->filter(function($filter){\n $filter->disableIdFilter();\n $filter->scope('new_isolate', '今日新增')->where('isolate_date',date(\"Y-m-d\"));\n $filter->scope('qrcode_new', '今日扫码')->where([['qrcode_flag', '是'],['isolate_date',date(\"Y-m-d\")]]);\n $filter->scope('new_free', '今日解除')->where('isolate_date', date(\"Y-m-d\", strtotime(\"-15 day\")));\n $filter->scope('qrcode', '扫码人员')->where('qrcode_flag', '是');\n $filter->scope('isolate', '隔离人员')->where('isolate_flag', '否');\n $filter->scope('hubei', '湖北地区')->where('isolate_level', 'like','%湖北%');\n $filter->scope('hot_city', '一省四市')->where('isolate_level', 'like','%两省四市%');\n $filter->scope('other', '其他地区')->where('isolate_level', '普通');\n $filter->like('name','姓名');\n $filter->like('address','楼栋号');\n $filter->like('originatin','始发地');\n $filter->equal('isolate_flag','解除隔离')->radio([\n '否' => '否',\n '是' => '是',\n ]);\n\n\n\n\n });\n\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Site());\n\n $grid->id('ID');\n $grid->category()->title('分类');\n $grid->title('标题');\n $grid->thumb('图标')->gallery(['width' => 50, 'height' => 50]);\n $grid->describe('描述')->limit(40);\n $grid->url('地址');\n\n $grid->disableFilter();\n $grid->disableExport();\n return $grid;\n }",
"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 }",
"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 }",
"public function getSelectedCells() {\n\t\treturn $this->getActiveSheet()->getSelectedCells();\n\t}",
"protected function grid()\n {\n $grid = new Grid(new HhxEquip());\n\n $grid->column('id', __('Id'));\n $grid->column('name', __(trans('hhx.name')));\n $grid->column('hhx_travel_id', __(trans('hhx.hhx_travel_id')))->display(function ($hhx_travel_id){\n return self::getTravelService()->getNameByTravelId($hhx_travel_id);\n });\n $grid->column('status', __(trans('hhx.status')))->select(config('hhx.equip_status'));\n $grid->column('created_at', __(trans('hhx.created_at')));\n $grid->column('updated_at', __(trans('hhx.updated_at')));\n\n return $grid;\n }",
"protected function grid()\n {\n $grid = new Grid(new Community);\n\n\n $grid->column('id', __('Id'));\n $grid->column('permalink', __('Permalink'));\n $grid->column('eyecatch_path', __('Eyecatch path'));\n $grid->column('name', __('Name'));\n $grid->column('pref', __('Pref'));\n $grid->column('information', __('Information'));\n $grid->column('image1_path', __('Image1 path'));\n $grid->column('image2_path', __('Image2 path'));\n $grid->column('image3_path', __('Image3 path'));\n $grid->column('video1_link', __('Video1 link'));\n $grid->column('video2_link', __('Video2 link'));\n $grid->column('video3_link', __('Video3 link'));\n $grid->column('calendar', __('calendar'));\n $grid->column('message_image_path', __('Message image path'));\n $grid->column('message', __('Message'));\n $grid->column('contact', __('Contact'));\n $grid->column('facebook_link', __('Facebook link'));\n $grid->column('instagram_link', __('Instagram link'));\n $grid->column('website_link', __('Website link'));\n $grid->column('created_at', __('Created at'));\n $grid->column('updated_at', __('Updated at'));\n\n\n return $grid;\n }",
"protected function grid()\n {\n return Admin::grid(Classroom::class, function (Grid $grid) {\n\n $grid->id('ID')->sortable();\n\n // $grid->column();\n\n $grid->column('number', '编号');\n $grid->column('name', '名称');\n $grid->column('location', '地点');\n $grid->column('square', '面积');\n $grid->column('floor', '楼层');\n $grid->column('is_free', '是否空闲');\n $grid->column('building_name', '建筑物名称');\n\n $grid->created_at();\n $grid->updated_at();\n });\n }",
"public function renderGameSetup(){\n $cells = $_SESSION['GameView::cellNumbers'];\n for ($ind=1;$ind<100;$ind++)\n {\n $cell1 = mt_rand(0,14);\n $cell2 = mt_rand(0,14);\n\n $temp = $cells[$cell1];\n $cells[$cell1] = $cells[$cell2];\n $cells[$cell2] = $temp;\n } \n return $cells;\n }",
"abstract protected function getColumns(): array;",
"function LLena_GridGeneral()\n { /*Instruccion de sql que manda los datos al dbgEstimacion*/\n global $sContrato;\n $sql= \"select\n iNumeroEstimacion as Estimacion,\n sNumeroOrden as No_Orden,\n iSemana as Sem,\n sNumeroGenerador as Gen,\n lStatus as Status,\n dFinancieroGenerador as Porcent,\n date_format(dFechaInicio,'%d/%m/%Y') as F_Inicio,\n date_format(dFechaFinal,'%d/%m/%Y') as F_Final,\n format(dMontoMN,2) as Monto_MN,\n format(dMontoDLL,2) as Monto_DLL,\n sFaseObra as Fase_Obra\n from\n estimaciones\n where\n sContrato='$sContrato'\";\n $this->qryGeneral->Active=false;\n $this->qryGeneral->setSQL($sql);\n $this->qryGeneral->Active=true;\n }",
"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 }",
"public function displayGridlines() {\n\t}",
"protected function grid()\n {\n $grid = new Grid(new Report());\n $grid->model()->with(['company', 'room']);\n\n $grid->column('company.company_name', '公司当前名称')->display(function () {\n return $this->record->company->company_name;\n });\n $grid->column('room.title', '房间号')->display(function () {\n return $this->record->room->title;\n });\n $grid->column('company_name', '报表时公司名称');\n $grid->column('start_date', '租金起止日')->display(function () {\n return date('m-d', strtotime($this->start_date)) . '—' . date('m-d', strtotime($this->end_date));\n });\n $grid->column('year_month', '月度')->display(function () {\n return $this->year . '-' . $this->month;\n });\n $grid->column('electric_money', '电费');\n $grid->column('water_money', '水费');\n $grid->column('rent', '租金');\n $grid->column('status', '状态')->display(function () {\n if ($this->charged_at) {\n return '<span class=\"label label-success\">已缴费</span>';\n }\n if ($this->discounted_at) {\n return '<span class=\"label label-warning\">已减免</span>';\n } else {\n return '<span class=\"label label-danger\">未减免</span>';\n }\n });\n $grid->column('rent_discount', '减免额度')->display(function ($discount) {\n return ($discount * 100) . '%';\n });\n $grid->column('actual_rent', '减免后租金');\n $grid->column('total', '合计')->display(function () {\n return $this->actual_rent + $this->electric_money + $this->water_money;\n });\n $grid->column('bases', '水电详情')->expand(function ($model) {\n $bases = [[\n $model->pre_electric_base,\n $model->current_electric_base,\n $model->electric_amount,\n $model->electric_price,\n $model->pre_water_base,\n $model->current_water_base,\n $model->water_amount,\n $model->water_price,\n ]];\n\n return new Table([\n '上期电表数', '本期电表数', '用电量', '电单价',\n '上期水表数', '本期水表数', '用水量', '水单价'\n ], $bases);\n });\n $grid->column('charged_at', '缴费/扣款时间');\n $grid->column('charge_way', '方式');\n\n $grid->disableCreateButton();\n\n $grid->actions(function ($actions) {\n $row = $actions->row;\n if (!$row->discounted_at) { // 还没有减免\n if (Admin::user()->can('reports.discount')) {\n $actions->add(new DiscountButton);\n }\n $actions->disableEdit();\n } else if (!$row->charged_at) { // 还没有缴费,此时可以修改\n if (Admin::user()->can('reports.charge')) {\n $actions->add(new ChargeButton);\n }\n if (!Admin::user()->can('reports.edit')) {\n $actions->disableEdit();\n }\n } else {\n $actions->disableEdit();\n }\n $actions->disableDelete();\n $actions->disableView();\n });\n $grid->batchActions(function ($batch) {\n $batch->disableDelete();\n if (Admin::user()->can('reports.charge')) {\n $batch->add(new BatchCharge);\n }\n });\n $grid->tools(function (Grid\\Tools $tools) {\n if (Admin::user()->can('reports.generate')) {\n $tools->append(new Generate());\n }\n if (Admin::user()->can('reports.discount.import')) {\n $tools->append(new ImportDiscount());\n }\n $tools->append(new MonthReport());\n });\n\n $grid->expandFilter();\n\n $grid->filter(function ($filter) {\n $filter->disableIdFilter();\n $filter->column(1 / 2, function ($filter) {\n $filter->where(function ($query) {\n $query->whereHas('record.company', function ($query) {\n $query->where('company_name', 'like', \"%{$this->input}%\");\n });\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 $filter->where(function ($query) {\n if ($this->input === 'undiscounted') {\n $query->whereNull('discounted_at');\n }\n if ($this->input === 'discounted') {\n $query->whereNotNull('discounted_at')->whereNull('charged_at');\n }\n if ($this->input === 'charged') {\n $query->whereNotNull('charged_at');\n }\n }, '状态')->radio([\n 'undiscounted' => '未减免 ',\n 'discounted' => '已减免 ',\n 'charged' => '已缴费 ',\n ]);\n });\n $filter->column(1 / 2, function ($filter) {\n $filter->where(function ($query) {\n $query->whereHas('record.room', function ($query) {\n $query->where('title', 'like', \"%{$this->input}%\");\n });\n }, '房间号');\n $filter->like('company_name', '原公司名');\n $filter->between('charged_at', '缴费时间')->date();\n });\n });\n return $grid;\n }",
"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 }",
"public function getBatchColumns();",
"protected function grid()\n {\n $grid = new Grid(new Milestone);\n\n $grid->column('id', __('Id'))->sortable();\n $grid->column('type', __('Type'))->select(Milestone::TYPE_MAP);\n $grid->column('version', __('Version'));\n $grid->column('content', __('Content'));\n $grid->column('detail', __('Detail'));\n $grid->column('created_at', __('Created at'))->sortable()->hide();\n $grid->column('updated_at', __('Updated at'))->sortable()->hide();\n\n $grid->model()->orderBy('id', 'desc');\n\n $grid->filter(function ($filter) {\n $filter->equal('version', '版本');\n $filter->like('content', '内容');\n $filter->equal('type', '类型')->select(Milestone::TYPE_MAP);\n $filter->between('created_at', '创建时间')->datetime();\n $filter->between('updated_at', '更新时间')->datetime();\n });\n\n return $grid;\n }",
"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 }",
"protected function grid()\n {\n return Grid::make(new EverydayExchangeietsLog(), function (Grid $grid) {\n $grid->header(function ($collection) {\n $today = date('Y-m-d', time());\n $todayFhData = ExchangeietsLogModel::where('day', $today)->first();\n if (empty($todayFhData)){\n $state = 1;\n }else{\n if ($todayFhData->status!=2){\n $state = 1;\n }else{\n $state = 0;\n }\n }\n// dd($todayFhData->toArray());\n if ($state == 1){\n if (Admin::user()->id == 1 || Admin::user()->id == 2) {\n $buttoncss = 'background: #5c6bc6;font-weight: 600;color: #fff;margin-bottom: 4px;display: inline;\npadding: .24em .6em .34em;line-height: 1;text-align: center;white-space: nowrap;vertical-align: baseline;border-radius: .25em;cursor: pointer;box-sizing: border-box;';\n\n return \"<div style='margin: 10px;text-align: right'>\n <a href=\\\"javascript:if(confirm('确定要分红吗?'))location='sdEveryDayIetsFh'\\\"><span style='$buttoncss'>今日资产手动分红</span></a>\n </div>\";\n }}\n });\n $grid->model()->orderBy('id', 'desc');\n $grid->column('id')->sortable();\n $grid->column('day');\n $grid->column('status')->using(EverydayExchangeietsLog::$statusText)->label(EverydayExchangeietsLog::$statusColor);\n $grid->column('type');\n $grid->column('created_at');\n $grid->column('updated_at')->sortable();\n\n // 禁用创建按钮\n $grid->disableCreateButton();\n // 禁用编辑按钮\n $grid->disableEditButton();\n // 禁用删除按钮\n $grid->disableDeleteButton();\n // 禁用显示按钮\n $grid->disableViewButton();\n $grid->disableBatchDelete();\n $grid->disableActions();\n\n// $grid->filter(function (Grid\\Filter $filter) {\n// $filter->equal('id');\n//\n// });\n });\n }"
] | [
"0.816132",
"0.7498548",
"0.72881174",
"0.72881174",
"0.7136754",
"0.6959496",
"0.6794501",
"0.6749108",
"0.67091",
"0.65088576",
"0.65007776",
"0.6479085",
"0.62507814",
"0.62147814",
"0.6127746",
"0.6103049",
"0.6096594",
"0.60762733",
"0.606526",
"0.60621285",
"0.606179",
"0.60137296",
"0.60079473",
"0.5987206",
"0.5970018",
"0.5965421",
"0.59563005",
"0.59541416",
"0.58656",
"0.5863369",
"0.58626497",
"0.58564544",
"0.5840803",
"0.58333814",
"0.58289975",
"0.58289456",
"0.5821405",
"0.5821405",
"0.5821405",
"0.5821405",
"0.5821405",
"0.5821405",
"0.5821405",
"0.5812375",
"0.580533",
"0.58041245",
"0.57969683",
"0.5791315",
"0.579036",
"0.5787628",
"0.5787235",
"0.5785141",
"0.5780617",
"0.5779556",
"0.57745785",
"0.5749104",
"0.57362896",
"0.57311964",
"0.57248306",
"0.5717775",
"0.57116896",
"0.57108057",
"0.57016766",
"0.5701083",
"0.56699157",
"0.5668967",
"0.5662498",
"0.56546587",
"0.5649539",
"0.56453085",
"0.5643587",
"0.56430656",
"0.5634622",
"0.5624115",
"0.5623543",
"0.5602495",
"0.5593872",
"0.559286",
"0.5591465",
"0.55903274",
"0.5587314",
"0.5571689",
"0.5571646",
"0.55663866",
"0.5551387",
"0.5550747",
"0.55480635",
"0.554731",
"0.5538555",
"0.5536256",
"0.5528952",
"0.55191743",
"0.5517155",
"0.5516751",
"0.550655",
"0.5503034",
"0.54987234",
"0.54965264",
"0.5494328",
"0.5484327",
"0.54742193"
] | 0.0 | -1 |
to trigger and error 403 | function defaultAction($args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function notAuthorized()\n {\n $this->response = $this->response->withStatus(403);\n $this->jsonBody($this->payload->getInput());\n }",
"public function redirect403(){\n\t\t\n\t\t$this->page = new PageGenerator($this->app);\n\t\t$this->page->setContentFile(__DIR__ . '/../Errors/403');\n\t\t\n\t\t$this->addHeader('HTTP/1.0 403 Forbidden');\n\t\t\n\t\t$this->send();\n\t\t\n\t}",
"function access_denied() {\n\t\tif ( ! php_version_at_least( '4.1.0' ) ) {\n\t\t\tglobal $_SERVER;\n\t\t}\n\n\t\t// Si viene por webservice no necesita estar logueado.\n\t\tif($_POST['code']=='14149989'){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif ( ! auth_is_user_authenticated() ) {\n\t\t\t$p_return_page = string_url( $_SERVER['REQUEST_URI'] );\n\t\t\tprint_header_redirect( 'index.php?m=webtracking&a=login_page&return=' . $p_return_page );\n\t\t} else {\n\t\t\tglobal $AppUI;\n\t\t\t$AppUI->redirect(\"m=public&a=access_denied\");\n\t\t\t\n\t\t\t/*\n\t\t\tprint '<center>';\n\t\t\tprint '<p>'.error_string(ERROR_ACCESS_DENIED).'</p>';\n\t\t\tprint_bracket_link( 'index.php?m=webtracking&a=main_page', lang_get( 'proceed' ) );\n\t\t\tprint '</center>';*/\n\t\t}\n\t\texit;\n\t}",
"public function forbidden() :string {\n\t\theader('HTTP/1.0 403 Forbidden');\n\t\tdie('Api overloaded 403 forbidden');\n\t}",
"public static function error403() {\n header('Forbidden', true, 403);\n $html403 = sprintf(\"<title>Error 403: Forbidden</title>\\n\" .\n \"<main><div class=\\\"container\\\"><div class=\\\"row\\\"><div class=\\\"col-lg-10 offset-lg-1\\\">\" .\n \"<div class=\\\"row wow fadeIn\\\" data-wow-delay=\\\"0.4s\\\"><div class=\\\"col-lg-12\\\"><div class=\\\"divider-new\\\">\" .\n \"<h2 class=\\\"h2-responsive\\\">Error 403</h2>\" .\n \"</div></div>\" .\n \"<div class=\\\"col-lg-12 text-center\\\">\" .\n \"<p>You don’t have permission to access this resource.</br>\n If you think that this is a mistake, please contact the system administrator.</p>\" .\n \"</div></div></div></div></div></main>\", $_SERVER[\"REQUEST_URI\"]);\n echo $html403;\n }",
"function httpForbidden() {\n header('HTTP/1.1 403 Forbidden');\n echo '<h1>403 - Interdit</h1>';\n exit('Le serveur a compris la requête, mais refuse de l\\'exécuter.');\n}",
"public function s403($message = '') { self::respondWithJSON($message, 403); }",
"public static function write403() {\r\n // impostiamo il codice della risposta http a 404 (file not found)\r\n header('HTTP/1.0 403 Forbidden');\r\n $titolo = \"Accesso negato\";\r\n $messaggio = \"Non hai i diritti per accedere a questa pagina\";\r\n $login = true;\r\n include_once('error.php');\r\n exit();\r\n }",
"public function postAction() {\n return $this->getResponse()->setHttpResponseCode(403);\n }",
"public function csrfForbiddenAction() {\n \t$this->getResponse()->setRawHeader(\"HTTP/1.1 403 Forbidden\");\n\n parent::$_flashmessenger->addMessage(\"Attenzione, per questioni di sicurezza si prega di aggiornare la pagina prima di effettuare la login.\");\n parent::$_flashmessenger->addMessage(\"Si consiglia di non memorizzare mai le informazioni di login.\");\n \n // assegno i valori alla view\n $this->viewInit();\n $this->view->messaggi= parent::$_flashmessenger->getMessages();\n $this->view->title = parent::$_config->application->name.\" - 403 Forbidden\";\n $this->view->pagetitle = \"403 Forbidden\";\n\n // Redirect all'homepage\n parent::$_redirector->gotoUrl($this->_siteurl.\"/home\");\n }",
"public function notAllowedDeliverHook()\n {\n if (CHAMELEON_CHECK_VALID_USER_SESSION_ON_PROTECTED_DOWNLOADS) {\n throw new AccessDeniedHttpException('Access denied.');\n }\n }",
"public static function sendUnauthorizedResponse(){\n http_response_code(401);\n die();\n }",
"public static function access_denied($error = 'Access Denied') {\n // Clear any buffered crap\n ob_end_clean();\n header(\"HTTP/1.1 403 $error\");\n require_once Config::get('prefix') . '/templates/show_denied.inc.php';\n exit;\n }",
"function show_deny() {\n\t\t\tshow_error(\n\t\t\t\t'403 Forbidden',\n\t\t\t\t'You do not have sufficient clearance to view this page.'\n\t\t\t);\n\t\t}",
"public function forbidden() {\n\t\t\theader('HTTP/1.0 403 Forbidden');\n\t\t\t$this->render('error/403.twig.html');\n\t\t}",
"public function forbiddenError() {\n sfContext::getInstance()->getController()->redirect('errores/forbidden');\n\t}",
"public function forbiddenAction() {\n }",
"private static function rejectRequest()\n {\n header('HTTP/1.1 403 Forbidden'); \n\n die(MODE == 'DEV' ? 'Request is missing the required CSRF token' : '');\n }",
"public function isForbidden();",
"public function forbiddenResponse()\n {\n //return redirect('error')->with('error_message', $this->error);\n //return response(view('errors.403'), 403);\n abort(403);\n }",
"public function indexAction() {\n return $this->getResponse()->setHttpResponseCode(403);\n }",
"public static function accessDenied() {\r\n self::redirectTo(self::urlFor('includes/shared/access_denied.php'));\r\n }",
"public static function forbidden(){\n\n throw new \\yii\\web\\HttpException(403, 'Forbidden Access not Available', 405);\n\n }",
"public function checkPermissions() {\n if ($this->checkIp()) {\n \\BDSCore\\Errors\\Errors::returnError(403);\n }\n }",
"private function userNotPermit(){\n throw new \\Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException('Bad user',null, 403);\n }",
"public function index()\n {\n abort(403,'MAAF POSTINGAN ANDA TUJU TIDAK ADA');\n }",
"public static function error403($text = '') {\n header(\"{$_SERVER['SERVER_PROTOCOL']} 403 Forbidden\");\n View::render(static::VIEW_ERROR_HTTP, [\n 'code' => 403,\n 'msg' => $text ? $text : 'You are not authorized to perform this action.',\n ], static::LAYOUT_ERROR_HTTP, false, App::requestIsAjax());\n static::end(43);\n }",
"function Generic_deny($message = \"An error has occured\")\n{\n exit(\n json_encode(\n array(\n \"message\"=>$message,\n \"tracking_id\"=>LoggingEngine::$TRACKING_ID\n )\n )\n );\n}",
"protected function failedAuthorization()\n {\n if ($this->container['request'] instanceof Request) {\n throw new HttpException(403);\n }\n\n parent::failedAuthorization();\n }",
"function redirect_403()\n{\n // prevent Browser cache for php site\n header(\"Cache-Control: no-store, no-cache, must-revalidate, max-age=0\");\n header(\"Cache-Control: post-check=0, pre-check=0\", false);\n header(\"Pragma: no-cache\");\n header('HTTP/1.1 403 Forrbidden');\n exit;\n}",
"function _access_denied_splash()\n {\n }",
"public function OnInvalidKey()\n {\n $this->response(403, 'Access denied ' . $_SERVER['REMOTE_ADDR'], 'Unauthorized', null);\n }",
"public function forbidden() {\n return $this->setStatus(403);\n }",
"function defaultAction() {\n\t\tthrow new xException(\"Method not allowed\", 403);\n\t}",
"public function show() {\r\n\t\t@header('HTTP/1.0 403 Forbidden');\r\n\t\tWCF::getTPL()->display('permissionDenied');\r\n\t}",
"protected function _overview() {\n return Helper::redirectTo('/errors/403');\n }",
"public static function error()\n {\n if ($error = static::$errorHandler) {\n admin_exit($error());\n }\n\n if (Helper::isAjaxRequest()) {\n abort(403, trans('admin.deny'));\n }\n\n admin_exit(\n Content::make()->withError(trans('admin.deny'))\n );\n }",
"function unauthorized() {\n\treturn show_template('401');\n}",
"static function denied()\n {\n\n }",
"public function action_access_denied()\r\n\t{\r\n\t\t$this->title = \"Access Denied\";\r\n\t\t$this->template->content = View::factory('access_denied');\r\n\t}",
"public function forbidden()\n {\n return response()->json([\"error\" => Config::get('constants.http_error.e403')], 403);\n }",
"function deny($message = null) {\n // Ignore soft 403 for ajax requests as redirections is transparent.\n if (config\\SOFT_403 != false && !\\melt\\request\\is_ajax()) {\n $user = get_user();\n if ($user === null) {\n if (config\\LAST_DENY_AUTOREDIRECT)\n $_SESSION['userx\\LAST_DENY_PATH'] = APP_ROOT_URL . \\substr(REQ_URL, 1);\n if ($message === null)\n $message = _(\"Access denied. You are not logged in.\");\n \\melt\\messenger\\redirect_message(config\\SOFT_403, $message, \"bad\");\n } else {\n if ($message === null)\n $message = _(\"Access denied. Insufficient permissions.\");\n \\melt\\messenger\\redirect_message(config\\SOFT_403, $message, \"bad\");\n }\n } else\n \\melt\\request\\show_xyz(403);\n exit;\n}",
"public function unauthorized()\n\t{\n\t\t$this->template->content = $this->add_view('extinfo/unauthorized');\n\t\t$this->template->content->error_description = _('If you believe this is an error, check the HTTP server authentication requirements for accessing this page and check the authorization options in your CGI configuration file.');\n\t}",
"public function index(){\n \tdump('You are not allowed to access this server resource.');\n }",
"function forbidden(){\n\t\t$this->render_view(\"errors/forbidden.php\");\n\t}",
"protected function denyRequest()\n {\n $this->loginAction();\n }",
"public function getErrorStatusCode(): int\n {\n return 403;\n }",
"function wlabarron_saml_intercept_admin() {\n\tif ( isset( $_GET['access'] ) && $_GET['access']=='denied' ) {\n\t\tyourls_add_notice('Access Denied');\n\t}\n\n\t// Intercept requests for plugin management\n\tif(isset( $_SERVER['REQUEST_URI'] ) &&\n\t preg_match('/\\/admin\\/plugins/', $_SERVER['REQUEST_URI'] ) ) {\n \n if (!wlabarron_saml_is_user_in_config()) {\n yourls_redirect( yourls_admin_url( '?access=denied' ), 302 );\n }\n\t}\n}",
"public function deniedAction() {\n \t// assegno i valori alla view\n $this->viewInit();\n \t$this->view->title = parent::$_config->application->name.\" - Accesso Negato\";\n \t$this->view->pagetitle = \"Accesso Negato\";\n \t$this->view->message = \"Stai tentando di accedere a una risorsa non consentita per il tuo profilo.\";\n }",
"protected abstract function onAuthorizeMissingOwner(): Effect|Response;",
"protected function accessDenied()\n\t{\n\t\t$this->title = \"Доступ закрыт!\";\n\t\t$this->meta_desc = \"Доступ к данной странице закрыт.\";\n\t\t$this->meta_key = \"доступ закрыт, доступ закрыт страница, доступ закрыт страница 403\";\n\n\t\t$pm = new PageMessage();\n\t\t$pm->header = \"Доступ закрыт!\";\n\t\t$pm->text = \"У Вас нет прав доступа к данной странице.\";\n\t\t$this->render($pm);\n\t}",
"public static function denyAccess()\n {\n static::redirect(static::adminPath(), cbTrans('denied_access'));\n }",
"private function notAdmin() : void\n {\n if( intval($this->law) === self::CREATOR_LAW_LEVEL)\n {\n (new Session())->set('user','error','Impossible d\\'effectuer cette action');\n header('Location:' . self::REDIRECT_HOME);\n die();\n }\n }",
"public function autherrorAction()\n {\n }",
"public function denyLink()\n {\n }",
"protected function checkRedirect() {}",
"protected function redirectNotAuthorized(){\r\n if(!$this->auth()->isAuthorized()){\r\n header(\"Location: \".BASE_URI.Routes::getUri('access_denied_authorization'));\r\n }\r\n }",
"function accessDenied($message = null)\n{\n $final_message = \"Access denied\";\n\n if ($message) {\n $final_message = \"$final_message: $message\";\n }\n \n $return = jsonErrorResponse($final_message, 403);\n\n return $return;\n}",
"public function failedAuthorization()\n {\n\n throw new HttpResponseException(response()->json(['message' => 'You are not authorized to edit this Note.'],\n 429));\n\n }",
"function forbidden($message = null){\n\t\t$this->setStatusCode(403);\n\t\t$this->clearOutputBuffer();\n\t\tif(!isset($message)){\n\t\t\t$message = \"\n\t\t\t\tYou don't have permission to access \".htmlspecialchars($GLOBALS[\"HTTP_REQUEST\"]->getRequestURI()).\"\n\t\t\t\ton this server.\n\t\t\t\";\n\t\t}\n\t\t$this->_writeStatusMessage($message);\n\t}",
"public static function banned()\n {\n // Set the \"forbidden\" status code\n Http::setHeadersByCode(403);\n\n // Inclusion of the HTML IP Banned page\n include PH7_PATH_SYS . 'global/views/' . PH7_DEFAULT_THEME . '/other/banned.html.php';\n\n // Stop script\n exit;\n }",
"public function throwForbidden()\n {\n throw new Exception\\ForbiddenException('Forbidden', 1449130939);\n }",
"public function putAction() {\n return $this->getResponse()->setHttpResponseCode(403);\n }",
"public function execute()\n {\n if (Application::isGuest()) {\n // Check if the provided value exists in the array\n if (empty($this->actions) || in_array(Application::$jinx->controller->action, $this->actions)) {\n throw new ForbiddenException();\n }\n }\n }",
"public function errorForbidden($message = 'Forbidden')\n {\n $this->error($message, 403);\n }",
"public function no_op() {\n\t\t\texit( 'Not permitted' );\n\t\t}",
"public function authorize() {\n\t\treturn false;\n }",
"public function changeStatus()\n {\n $trackVisits = Piwik_Common::getRequestVar('trackVisits', false);\n $nonce = Piwik_Common::getRequestVar('nonce');\n\n if (Piwik_Nonce::verifyNonce('Piwik_OptOut', $nonce)) {\n\t\t\tPiwik_Tracker_Cookie::setIgnoreCookie();\n } else {\n throw new Exception(Piwik_Translate('OptOut_WrongNonce'));\n }\n Piwik::redirectToModule('OptOut', 'index');\n }",
"public function forbiddenResponse()\n {\n // (default is to just redirect to initial page with errors)\n //\n // Can return a response, a view, a redirect, or whatever else\n\n return Response::make('Permission denied foo!', 403);\n }",
"public function forbiddenResponse( ) {\n if ( $this->ajax() || $this->wantsJson() ) {\n return (new ApiController())->setStatusCode(403)->respondWithError($this->ForbiddenMessage);\n }//if ( $this->ajax() || $this->wantsJson() )\n return parent::forbiddenResponse();\n }",
"public function execute()\n {\n if (Application::isGuest()) {\n if (empty($this->actions) || in_array(Application::$app->controller->action, $this->actions)) {\n throw new ForbiddenException();\n }\n }\n }",
"function authError()\r\n\t{\r\n\t\t$ajax = ajax();\r\n\t\t\r\n\t\t$ajax->warning(\"Could no Authenticate. Please re-login\");\r\n\t}",
"function methodNotAllowed($allowed = 'GET, HEAD') {\n header('HTTP/1.0 405 Method Not Allowed');\n header('Allow: '.$allowed);\n }",
"public function checkPageUnavailableHandler() {}",
"protected function sendForbidden($error) {\n ob_start();\n echo 'WMI_RESULT=RETRY&WMI_DESCRIPTION=' . urlencode($error);\n ob_end_flush();\n }",
"public function indexAction()\n {\n echo 'Forbidden access';\n }",
"protected function show403()\n {\n $resp = $this->render('errors/403.phtml');\n $resp->status = 403;\n return $resp;\n }",
"public function blockIllegalRequests(ActionRequest $request);",
"function _404() {\n die();\n }",
"function badRequest() {\n header(\"Location: http://<base_url>\");\n}",
"protected function accessRetification($extract, $action){\n $buff = explode(' ', $extract);\n if(array_search($action, $buff) === FALSE){\n throw new \\yii\\web\\HttpException('403', 'Permission denied are not allowed to view the page'); \n }\n \n }",
"public function testUpdateUnauthenticatedAccess(): void { }",
"public function create()\n {\n abort(403);\n }",
"public function performPermissionError( $args )\n {\n $this->redirect();\n }",
"public static function paymentRequired(){\n\n throw new \\yii\\web\\HttpException(403, 'Payment Required to perform this action', 405);\n\n }",
"public function checkAccess()\n {\n if (!$this->isAuthenticated()) {\n header('HTTP/1.1 401 Unauthorized');\n exit();\n }\n }",
"protected function _forwardDenied()\n {\n $this->_forward('denied', 'error', 'index');\n }",
"function ReturnServerError()\n{\n header('HTTP/1.1 500 Internal Server Error');\n die(\"A server error occured while saving your request.\\r\\nPlease check our API status page at http://status.prybar.io and try again later\");\n}",
"protected function notAuthenticated()\n {\n $this->response = $this->response->withStatus(401);\n $this->jsonBody($this->payload->getInput());\n }",
"public function renderErrorNotAdmin(): void\n {\n header('HTTP/1.1 301 Not Found');\n header('Location: /error/notAdmin');\n die();\n }",
"public function authorize()\r\n {\r\n return false;\r\n }",
"function authorizedAdminOnly(){\n global $authenticatedUser;\n if(!$authenticatedUser['admin']){\n header(\"HTTP/1.1 403 Forbidden\");\n header(\"Location: https://eso.vse.cz/~frim00/marvelous-movies/error-403\");\n exit();\n }\n }",
"function deny($reason) {\n $this->denied_reasons[] = $reason;\n }",
"public function checkPermission()\n\t{\n\t\tif ($this->User->isAdmin)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->redirect('contao/main.php?act=error');\n\t}",
"function admEnforceAccess()\n{\n if( !admCheckAccess() ) {\n // no access. stop right now.\n\n // should print error message, but hey. let's just dump back to homepage\n header( \"Location: /\" ); \n exit;\n }\n}",
"public function authorize()\n\t{\n\t\t// Compile the rules\n\t\t$this->compile();\n\t\t\t\n\t\t// Check if this user has access to this request\n\t\tif ($this->user_authorized())\n\t\t\treturn TRUE;\n\n\t\t// Set the HTTP status to 403 - Access Denied\n\t\t$this->request->status = 403;\n\n\t\t// Execute the callback (if any) from the compiled rule\n\t\t$this->perform_callback();\n\n\t\t// Throw a 403 Exception if no callback has altered program flow\n\t\tthrow new Kohana_Request_Exception('You are not authorized to access this resource.', NULL, 403);\n\t}",
"public static function sendMethodNotAllowedResponse(){\n http_response_code(405);\n die();\n }",
"public function testMeetupAccessWillCheckPermission()\n {\n list($responseCodeForUser1, $responseBody) = sendGetRequest($this->endpoint .'/5003e8bc757df2020d0f0033', array(), $this->user1Headers);\n list($responseCodeForUser2, $responseBody) = sendGetRequest($this->endpoint .'/5003e8bc757df2020d0f0033', array(), $this->user3Headers);\n\n $this->assertEquals(200, $responseCodeForUser1);\n $this->assertEquals(403, $responseCodeForUser2);\n }",
"protected function failedAuthorization()\n {\n throw new UnauthorizedException();\n }",
"abstract public function url_authorize();",
"public function unauthorizedAction()\n {\n $this->view->errorMsg =\n 'Sorry, you are not authorized for this action.';\n }"
] | [
"0.6952284",
"0.69005924",
"0.68416655",
"0.6822391",
"0.68119377",
"0.6811357",
"0.672441",
"0.67243093",
"0.67163354",
"0.6589626",
"0.65779656",
"0.6577362",
"0.65682805",
"0.6558972",
"0.6554696",
"0.6542789",
"0.65160173",
"0.6514854",
"0.64951324",
"0.64753973",
"0.64545137",
"0.64213854",
"0.6404152",
"0.63823783",
"0.63438624",
"0.6337527",
"0.63357097",
"0.6335627",
"0.633536",
"0.633329",
"0.6332834",
"0.6326702",
"0.6301523",
"0.629786",
"0.6268895",
"0.61974484",
"0.61792004",
"0.617038",
"0.61664873",
"0.61538243",
"0.6147974",
"0.6130091",
"0.61150336",
"0.61148965",
"0.6092549",
"0.60843456",
"0.60744846",
"0.60466605",
"0.6027013",
"0.5995694",
"0.59803104",
"0.5975921",
"0.59742534",
"0.59662145",
"0.5960065",
"0.5933854",
"0.5933815",
"0.59322655",
"0.593043",
"0.592666",
"0.59260887",
"0.5925069",
"0.5921263",
"0.59138846",
"0.58927125",
"0.5876093",
"0.58447325",
"0.58420575",
"0.58361745",
"0.583397",
"0.5813282",
"0.57964",
"0.5789493",
"0.5786553",
"0.5784896",
"0.578359",
"0.57812136",
"0.57809675",
"0.57768035",
"0.5768399",
"0.57658935",
"0.5764294",
"0.5754339",
"0.57463455",
"0.5743027",
"0.57392454",
"0.57378364",
"0.57375854",
"0.57364863",
"0.5732641",
"0.573073",
"0.57301635",
"0.5725862",
"0.5724081",
"0.5721339",
"0.57186973",
"0.5714369",
"0.5713668",
"0.56984013",
"0.5696187",
"0.5685901"
] | 0.0 | -1 |
Set the Collection data to the Table Object. | public function setData(Collection $Collection): void
{
$this->Collection = $Collection;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setCollection()\n {\n $cl = $this->nameCollection;\n $this->collection = self::$database->$cl;\n }",
"public function setCollection(\\Magento\\Framework\\Data\\Collection $collection) {\n $this->collection = $collection;\n }",
"public function setUp()\n {\n foreach ($this->data as $row) {\n $this->table->insert($row);\n }\n\n parent::setUp();\n\n }",
"public function setCollection(Collection $collection): void\n {\n $this->collection = $collection;\n\n // Map the properties of the base collection\n $this->mapProperties($this->collection);\n\n $this->setUsers();\n }",
"public function setData() {\n\t\t$this->import($this->get());\n\t}",
"public static function setTable($name = ''){\n\t\tif(! self::$db){\n\t\t\tself::setDbName();\n\t\t}\n\t\tif($name){\n\t\t\treturn self::$collection = self::$db->$name;\n\t\t}else{\n\t\t\treturn self::$collection = self::$db->$table;\n\t\t}\n\t}",
"public function initTable(){\n\t\t\t\n\t\t}",
"private function tinydb_datafill($data)\n {\n // Fix up access information\n $this->tinydb_access_manager = new \\TinyDb\\Internal\\AccessManager($this->tinydb_get_reflector());\n foreach (static::tinydb_get_table_info()->table_info() as $name => $field) {\n unset($this->$name);\n }\n\n // Set the information from the database\n $this->tinydb_rowdata = $data;\n }",
"private function setTable()\n {\n if (is_null($this->table)) {\n $this->table = $this->getTableName();\n }\n }",
"protected function setData($data) {\n $this->data = collect($data);\n }",
"public function fillData( PostIt $PostIt, Collection $data )\n {\n $PostIt->fill( $data->toArray() );\n\n $PostIt->save();\n\n return $PostIt;\n }",
"public function load()\n {\n if (count($this->table)) {\n $this->value = array_pop($this->table);\n }\n }",
"public function initEtablissements()\n {\n $this->collEtablissements = new PropelObjectCollection();\n $this->collEtablissements->setModel('Etablissement');\n }",
"public function set_all_data($data)\n\t{\n\t\t$this->_data = $data;\n\t}",
"protected function _initsTable() {}",
"public function __construct() {\n $this->columnas = new ArrayCollection();\n }",
"function setTable($table) {\r\r\n\t\t$this->table = $table;\r\r\n\t}",
"protected function setUp() {\n $this->object = new Table;\n }",
"protected function populateTable() {\n\t\t$query = \"\n\t\tINSERT INTO `items` VALUES (1, 'Candy', 'Crush', '1924 Sucka Drive', 'Stripper');\n\t\tINSERT INTO `items` VALUES (2, 'John', 'Smith', '9999 The Way', 'Unemployeed');\n\t\t\";\n\t\t$this->PDO->query($query);\n\t}",
"public function setData($data)\n {\n $this->rowData = $data;\n }",
"private function createCollection()\n {\n $class = get_class($this->data);\n\n $this->name = strtolower(class_basename($class));\n\n $result = $this->callEvent($class, [$class => $this->data]);\n\n if ($result instanceof $this->data) {\n $this->data = $result;\n }\n\n $this->makePaginator();\n }",
"public function setTable(Table $table): void\n {\n $this->table = $table;\n }",
"public function save()\n {\n array_push($this->table, $this->value);\n }",
"function setAllData(&$data) {\n\t\t$this->_data =& $data;\n\t}",
"public function getTableData()\n\t{\n\t}",
"public function setTableDefinition()\n {\n foreach ($this->_columns as $column) {\n $this->hasColumn($column['name'], $column['type'], $column['length'], $column['options']);\n }\n }",
"private function populateDummyTable() {}",
"private function prepare_data(){\r\n\t\t\t$this->data_table['cols'] = array();\r\n\t\t\t\r\n\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\tswitch($column_info['type']){\r\n\t\t\t\t\tcase 'number':\r\n\t\t\t\t\tcase 'float':\r\n\t\t\t\t\tcase 'currency':\r\n\t\t\t\t\t\t$column_info['type'] = 'number';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$column_info['type'] = 'string';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['cols'][] = array_merge(array('id' => $column_id), $column_info);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$rows_count = sizeof(reset($this->data));\r\n\t\t\t\r\n\t\t\tfor($i = 0; $i < $rows_count; $i++){\r\n\t\t\t\t$c = array();\r\n\t\t\t\t\r\n\t\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\t\t$value = $this->data[$column_id][$i];\r\n\t\t\t\t\t$c[] = array('v' => $value);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['rows'][] = array('c' => $c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->data_table = json_encode($this->data_table);\r\n\t\t}",
"public function load()\n {\n $pdo = $this->getDbConnection();\n $query = \"SELECT * FROM {$this->dbTable}\";\n $data = $pdo->query($query)->fetchAll(\\PDO::FETCH_ASSOC);\n\n foreach ($data as ['key' => $key, 'value' => $value]) {\n $this->setData($key, $value);\n }\n }",
"public function setTable($table);",
"private function getTableCollection()\n {\n $tables = $this->tables;\n $collection = new TableCollection();\n\n foreach ($tables as $tableKey => $tableMeta) {\n $collection->add(new TableVO($tableKey, $tableMeta));\n }\n\n return $collection;\n }",
"public function set_table_vars() {\n\t\tglobal $wpdb;\n\n\t\t$this->table = $wpdb->prefix . self::TABLE_NAME;\n\t\t$this->ms_table = $wpdb->base_prefix . self::MS_TABLE_NAME;\n\n\t\t/* Register the snippet table names with WordPress */\n\t\t$wpdb->snippets = $this->table;\n\t\t$wpdb->ms_snippets = $this->ms_table;\n\n\t\t$wpdb->tables[] = self::TABLE_NAME;\n\t\t$wpdb->ms_global_tables[] = self::MS_TABLE_NAME;\n\t}",
"protected function _setTable($table)\n\t{\n\t\t$this->_table = $table;\n\t}",
"public function setTable($table)\n\t{\n\t\tdebugInfo(get_class($this).\"->setTable($table)\");\n\n\t\t$this->_table = $table;\n\t}",
"public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }",
"protected function setUp()\n {\n $this->object = new CollectionWrapper();\n }",
"abstract protected function mapData($data, $tableObject);",
"abstract public function setTableName();",
"public function setTable($table) {\n\n $this->table = is_array($table) ? $table : array(self::camelCaseToUnderscore((new \\ReflectionClass($this))->getShortName()) => $table);\n\n }",
"public function setCollection($collection)\r\n {\r\n $collection->addAttributeToSelect('thumbnail')\r\n ->addAttributeToSelect('url_key')\r\n ->addAttributeToSelect('meta_title');\r\n $this->_collection = $collection;\r\n }",
"public function setTable($tablename){\r\n$this->tablename=$tablename;\r\n}",
"protected function setTable()\n {\n $class = explode('\\\\', get_called_class());\n $this->table = lcfirst(end($class)).'s';\n }",
"public function setUp() {\n\t\t$this->PDO = $this->getConnection();\n\t\t$this->createTable();\n\t\t$this->populateTable();\n\n\t\t$this->ItemsTable = new ItemsTable($this->PDO);\n\t}",
"function setDbcoll($collection){\n $this->collection = $collection;\n $this->dbdotcoll = $this->mdb.'.'.$this->collection;\n }",
"public function initTables(): void\n {\n $table = TableRegistry::getTableLocator()->get('Qobo/Survey.Surveys');\n $this->Surveys = $table;\n\n $table = TableRegistry::getTableLocator()->get('Qobo/Survey.SurveyResults');\n $this->SurveyResults = $table;\n\n $table = TableRegistry::getTableLocator()->get('Qobo/Survey.SurveyEntries');\n $this->SurveyEntries = $table;\n\n $table = TableRegistry::getTableLocator()->get('Qobo/Survey.SurveyEntryQuestions');\n $this->SurveyEntryQuestions = $table;\n }",
"public function setData($data)\n\t{\n\t\t$column = self::COL_DATA;\n\t\t$this->$column = $data;\n\n\t\treturn $this;\n\t}",
"public function setData($data)\n\t{\n\t\t$column = self::COL_DATA;\n\t\t$this->$column = $data;\n\n\t\treturn $this;\n\t}",
"public function initialize()\n {\n $this->setSource('tblEntry');\n\n $this->hasOne('userId', '\\Soul\\Model\\User', 'userId', ['alias' => 'user']);\n $this->belongsTo('eventId', '\\Soul\\Model\\Event', 'eventId', ['alias' => 'event']);\n $this->hasOne('paymentId', '\\Soul\\Model\\Payment', 'paymentId', ['alias' => 'payment']);\n }",
"public function setTable( $table ) {\n\t\t$this->_table = $table;\n\t}",
"public function set($data);",
"public function getDataCollectionForUpdate($collection)\n {\n }",
"public function setAllData($data)\n {\n \n foreach ($data as $key => $value) {\n $this->setData($key, $value);\n }\n \n }",
"function setAsForm($collection,$primary_table,$formname,$manager = \"\",$parent_collection = null) {\n\t\t$this->is_form = true;\n\t\t$this->manager = $manager;\n\t\t$this->primary_tablename = $primary_table;\n\t\t$this->collection = $collection;\n\t\t$this->form_name = $formname;\n\t\tif (!is_null($this->primary_key) && !isset($this->datafields[$this->primary_key]))\n\t\t\t$this->addDataFieldElement($this->primary_key,new HiddenField($this->primary_key,$this->primary_key_value),true,$this->primary_tablename, $parent_collection);\n\t\t$this->initDataFields();\n\t\t\n\t\tif (!isset($this->datafields[$this->primary_key]))\n\t\t\t$this->addDataFieldElement($this->primary_key,new HiddenField($this->primary_key,0),true,$this->primary_tablename,$parent_collection);\n\t}",
"public function setData($data) { \n $this->data = $data; \n }",
"public function __construct()\n\t{\n\t\t$this->tableObjects = Array();\n\t\t$this->count = 0;\n\t}",
"public function setData($data)\n {\n $this->_data = $data;\n }",
"public function setDataTable($dataTable)\n {\n $this->dataTable = $dataTable;\n }",
"function refreshTable(){\n\t\t$this->table = array();\n\n\t\t//set the column headers\n\t\t$this->table[0] = $this->getColumnHeaders();\n\n\t\t//add a row for each user\n\t\tforeach ($this->users as $name => $schedule) {\n\t\t\t$row = array();\n\n\t\t\t//if this user is being edited\n\t\t\tif($this->currentEdit == $name) $row = $this->userEditRow($name, $schedule, $this->table[0]);\n\t\t\telse $row = $this->userDisplayRow($name, $schedule, $this->table[0]);\n\t\t\t\n\t\t\tarray_push($this->table, $row);\n\t\t}\n\n\t\tarray_push($this->table, $this->genSubmitRow());\n\n\t\tarray_push($this->table, $this->genTotalRow());\n\n\t\t$this->logMsg(SUCCESS, 'internal table constructed');\n\t}",
"protected function triggerTable()\n {\n // Get the columns and their configurable options.\n if (!$this->columns) {\n $this->columns = $this->getColumns();\n }\n\n // Ordering\n if (is_array($this->orderBy)) {\n foreach ($this->orderBy as $orderBy => $sort) {\n $this->model->orderBy($orderBy, $sort);\n }\n } else {\n $this->model->orderBy($this->orderBy, $this->sort);\n }\n\n // Get the entry data.\n if (!$this->entries) {\n $this->entries = $this->model->get();\n }\n\n // Finally prep the rows for the table.\n $this->rows = $this->getRows();\n\n $this->output = \\View::make('streams/entry/table', get_object_vars($this));\n\n return $this;\n }",
"public function __construct()\n {\n $this->currentId = Piwik_DataTable_Manager::getInstance()->addTable($this);\n }",
"public function dataTable();",
"private function __construct() { \n $this->movieData = $this->generateTable();\n\n }",
"public function setTableHead($tableHead)\n {\n $i = 0;\n foreach ($tableHead as $head) {\n $this->tableHead[$i] = $head;\n $i++;\n }\n $rows = $i;\n $this->setTableColumns($rows);\n\n }",
"function tableData(){\n\t\t$entity_type = in(\"entity_type\");\t\t\n\t\t$table = $entity_type()->getTable();\n\t\t$test = in('test');\n\n\t\t// Table's primary key\n\t\t$primaryKey = 'id';\n\n\t\t// Array of database columns which should be read and sent back to DataTables.\n\t\t// The `db` parameter represents the column name in the database, while the `dt`\n\t\t// parameter represents the DataTables column identifier. In this case simple\n\t\t// indexes\n\t\t$columns = array(\n\t\t\tarray( \t'db' => 'id',\n\t\t\t\t\t'dt' => 0 \n\t\t\t\t ),\n\t\t\tarray( \t'db' => 'created', \n\t\t\t\t\t'dt' => 1, \n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t),\n\t\t\tarray( \t'db' => 'updated',\n\t\t\t\t\t'dt' => 2,\n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t ),\n\t\t);\n\t\t\n\t\t$additional_columns = self::getAdditionalFields( $entity_type );\n\t\t\n\t\t$columns = array_merge( $columns, $additional_columns );\n\n\t\t// SQL server connection information\n\t\t$sql_details = array(\n\t\t\t'user' => 'root',\n\t\t\t'pass' => '7777',\n\t\t\t'db' => 'ci3',\n\t\t\t'host' => 'localhost'\n\t\t);\n\t\n\t\trequire( 'theme/admin/scripts/ssp.class.php' );\t\t\n\t\t$date_from = in(\"date_from\");\n\t\t$date_to = in(\"date_to\");\n\t\t$extra_query = null;\n\t\tif( !empty( $date_from ) ){\n\t\t\t$stamp_from = strtotime( $date_from );\n\t\t\t$extra_query .= \"created > $stamp_from\";\n\t\t}\n\t\tif( !empty( $date_to ) ){\n\t\t\t$stamp_to = strtotime( $date_to.\" +1 day\" ) - 1;\n\t\t\tif( !empty( $extra_query ) ) $extra_query .= \" AND \";\n\t\t\t$extra_query .= \"created < $stamp_to\";\n\t\t\t\n\t\t}\t\t\n\t\t\n\t\techo json_encode(\n\t\t\tSSP::complex( $_GET, $sql_details, $table, $primaryKey, $columns, $extra_query )\n\t\t);\n\t}",
"private function tableDataTable()\r\n\t{\r\n\t\t$source = $this->getSource();\r\n\r\n\t\t//$table = new TableExample\\DataTable();\r\n\t\t$table = new Model\\DataInsTable();\r\n\t\t$table->setAdapter($this->getDbAdapter())\r\n\t\t->setSource($source)\r\n\t\t->setParamAdapter(new AdapterDataTables($this->getRequest()->getPost()))\r\n\t\t;\r\n\t\treturn $table;\r\n\t}",
"public function setValues($valueCollection) {\n\n foreach ($valueCollection as $key => $value) {\n if (isset($this[$key])) {\n $this[$key]->setValue($value);\n } //if\n } //foreach\n \n }",
"public function setData($data)\n\t{\n\t\t//Check all the array values\n\t\tforeach ($data as $row)\n\t\t{\n\t\t\tif(!($row instanceof DataSet))\n\t\t\t{\n\t\t\t\tthrow new QueryException('To set the data for this object, the submission must be an array of Staple_Query_DataSet objects.', Error::APPLICATION_ERROR);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Sync the dataSet with the current query's connection.\n\t\t\t\t$row->setConnection($this->getConnection());\n\t\t\t}\n\t\t}\n\t\t$this->data = $data;\n\t\treturn $this;\n\t}",
"private function setupTable ($dataRows) {\n $rows = [];\n $this->addColumn(\"name\", \"Page Name\");\n $this->addColumn(\"visits\", \"Visits\");\n\n foreach ($dataRows as $dataRow) {\n array_push($rows, array(\n \"name\" => $dataRow[0],\n \"visits\" => $dataRow[1]\n ));\n }\n\n $this->addMultipleRows($rows);\n\n }",
"public function setParameters()\n {\n $params = array();\n $associations = array();\n foreach ($this->datatablesModel->getColumns() as $key => $data) {\n // if a function or a number is used in the data property\n // it should not be considered\n if( !preg_match('/^(([\\d]+)|(function)|(\\s*)|(^$))$/', $data['data']) ) {\n $fields = explode('.', $data['data']);\n $params[$key] = $data['data'];\n $associations[$key] = array('containsCollections' => false);\n\n if (count($fields) > 1) {\n $this->setRelatedEntityColumnInfo($associations[$key], $fields);\n } else {\n $this->setSingleFieldColumnInfo($associations[$key], $fields[0]);\n }\n }\n }\n\n $this->parameters = $params;\n // do not reindex new array, just add them\n $this->associations = $associations + $this->associations;\n }",
"protected function fromDatabase( $data )\n\t{\n\t\tforeach ( $data AS $field => $value ) \n\t\t{\t\n\t\t\tif ( isset( static::$schema[ $field ] ) )\n\t\t\t{\n\t\t\t\tif ( is_array( static::$schema[ $field ] ) )\n\t\t\t\t{\n\t\t\t\t\t$type = static::$schema[ $field ][ 'type' ];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$type = static::$schema[ $field ];\n\t\t\t\t}\n\t\n\t\t\t\t$this->data[ $field ] = $this->sanitize( $type, $value );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->loaded = true;\n\t}",
"public function setAll($values) {\n\t\tif (isset($values[self::$primaryKey[$this->table]])) {\n\t\t\t$this->originalData = $values;\n\t\t}\n\t\telse {\n\t\t\t$this->modifiedData = $values;\n\t\t}\n\t}",
"private function prepareTables() {}",
"public function set_data($data)\n {\n }",
"public function setData(array $data): self\n {\n if ($this->hasHeaders) {\n $this->setHeaders(array_keys(reset($data)));\n }\n\n $this->addRows($data);\n\n return $this;\n }",
"public function set_data($data)\n {\n }",
"protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }",
"public function setTableDefinition()\n { \n $this->addListener(new Doctrine_Template_Listener_Markdown($this->_options));\n foreach ($this->_options['fields'] as $key => $value) \n {\n $this->hasColumn($key, 'clob', $this->_options['options']);\n }\n }",
"public function setFromArray(array $data)\n\t{\n\t\t//原来是array_intersect_key($data, $this->getArrayCopy()),现在取消参数列表检查,因此直接使用data\n\t\tforeach ($data as $columnName => $value) {\n\t\t\t$this[$columnName] = $value;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setColumnsHeadData()\n\t{\n\t\tFileStorage::getInstance()->store([], 'league_table_columns_head');\n\t}",
"private function _setColumns()\n {\n $this->columns = new Pike_Grid_DataSource_Columns();\n\n foreach ($this->_query->getFields() as $field) {\n $this->columns->add($field, null, $field);\n }\n }",
"public function __construct($collection) {\n\t\t\t$this->collection = $collection;\n\t\t}",
"public function setData(Array $data)\n {\n $this->data_view = array_merge_recursive($this->data_view, $data);\n }",
"protected function setUp() {\n $this->object = new SelectQuery();\n $this->object->setEntity('table t');\n $this->object->addColumn('column');\n $criteria = new SqlCriteria();\n $criteria->add(new SqlFilter('t.id', '=', 5));\n $criteria->setBlockStatus('order', 't.id');\n $criteria->setBlockStatus('limit', 1);\n $criteria->setBlockStatus('offset', 1);\n $this->object->setCriteria($criteria);\n }",
"function bindVenueObject()\r\n\t{\r\n JTable::addIncludePath( JPATH_ADMINISTRATOR . '/components/com_calendar/tables' );\r\n\t\t$table = JTable::getInstance( 'Venues', 'CalendarTable' );\r\n\t\t\r\n\t if (!empty($this->venue_id))\r\n\t {\r\n\t $table->load( $this->venue_id );\r\n\t }\r\n\t \r\n\t\t$table->trimProperties();\r\n\t\t\r\n\t\t$properties = $this->getProperties();\r\n\t\t$table_properties = $table->getProperties();\r\n\r\n\t\tforeach ($table_properties as $prop=>$value)\r\n\t\t{\r\n\t\t if (!array_key_exists($prop, $properties))\r\n\t\t {\r\n\t\t $this->$prop = $table->$prop;\r\n\t\t }\r\n\t\t}\r\n\t}",
"private function _loadDataToTemporaryTable(){\n\n }",
"public function set($rowData)\n {\n $this->rawRowData = $rowData;\n }",
"protected function fillTable()\n {\n $names = [\n 'Anna', 'Betty', 'Clara', 'Donna', 'Fiona',\n 'Gertrude', 'Hanna', 'Ione', 'Julia', 'Kara',\n ];\n\n $stm = \"INSERT INTO {$this->table} (name) VALUES (:name)\";\n foreach ($names as $name) {\n $this->connection->perform($stm, ['name' => $name]);\n }\n }",
"public function initRowsHolders()\n {\n $this->phantomIdMap = [\n 'tasks' => [],\n 'calendars' => [],\n 'resources' => []\n ];\n\n $this->updatedRows = [\n 'tasks' => [],\n 'calendars' => [],\n 'resources' => []\n ];\n\n $this->removedRows = [\n 'tasks' => [],\n 'assignments' => []\n ];\n }",
"public function setData() \n {\n // Empty, to be overridden \n }",
"private function _set_table()\n\t{\n\t\t$dossier = $this->config->item('dossier');\n\t\tif($dossier === false)\n\t\t{\n\t\t\tlog_message('info', '\"Dossier\" params is not set');\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_dossier = $dossier;\n\t\t\t$this->_table = $this->_dossier . '.' . $this->_table;\n\t\t}\n\t}",
"public function setData(array $data) {\n\t\t// Validate the data\n\t\t$this->validateData($data);\n\t\t\n\t\t// Store rows and columns number\n\t\t$this->_num_rows = count($data);\n\t\tforeach ($data as $row) {\n\t\t\t$this->_num_cols = count($row);\n\t\t\tbreak;\n\t\t}\n\n\t\t$this->_data = $data;\n\n\t\treturn $this;\n\t}",
"public function refreshTable();",
"protected function setUp()\n {\n $this->object = new \\Yana\\Db\\Ddl\\Table('table');\n }",
"private function __construct($table, $data = array()) {\n $temp = array_merge(array('data' => array()), $data);\n\n $this->set_table_name($table);\n $this->load_columns_information();\n $this->new_register = true;\n\n\n // Carrega os dados iniciais, caso $temp['data'] esteja definido\n if(sizeof($temp['data']) > 0)\n $this->load_data($temp['data']);\n }",
"protected function setUpTable()\n {\n return new Table('foo', array($this->oldColumn));\n }",
"function set_entity($ent){\n $this -> table = $ent;\n }",
"public static function setData($data) {}",
"protected function tableModel()\n {\n }",
"public function setCurrentTable($thisTable){\n User::setTable($thisTable);\n }",
"abstract protected function _generateDataCollection();"
] | [
"0.61740935",
"0.5982793",
"0.5805614",
"0.5736228",
"0.5708509",
"0.5701421",
"0.5687937",
"0.56327903",
"0.5616224",
"0.5604099",
"0.55113167",
"0.5484863",
"0.5455524",
"0.54291433",
"0.5416777",
"0.5415401",
"0.5396353",
"0.53894746",
"0.53751767",
"0.53708917",
"0.5366494",
"0.5363428",
"0.5363243",
"0.5353099",
"0.53530526",
"0.53368175",
"0.5334016",
"0.53140134",
"0.5310946",
"0.53071594",
"0.5289212",
"0.528503",
"0.5283264",
"0.5258955",
"0.52580994",
"0.5248896",
"0.5243197",
"0.5226562",
"0.5226452",
"0.52080536",
"0.5199736",
"0.51925075",
"0.51896834",
"0.51825947",
"0.51815444",
"0.51789105",
"0.51789105",
"0.517234",
"0.5170693",
"0.5169914",
"0.516044",
"0.5157828",
"0.515228",
"0.5149327",
"0.51397055",
"0.51395255",
"0.5137365",
"0.51133263",
"0.5109089",
"0.5100515",
"0.50879943",
"0.50841546",
"0.50822383",
"0.50729454",
"0.50711113",
"0.50708413",
"0.5068189",
"0.5064496",
"0.5062934",
"0.50601864",
"0.5057403",
"0.5050802",
"0.5044333",
"0.50431174",
"0.50427586",
"0.50412893",
"0.5039928",
"0.5037785",
"0.5037266",
"0.5036069",
"0.50244355",
"0.50240076",
"0.5010034",
"0.50097114",
"0.500855",
"0.50066227",
"0.50059927",
"0.50007856",
"0.4999145",
"0.49920014",
"0.49855065",
"0.49842933",
"0.4980277",
"0.49767968",
"0.49727812",
"0.49727494",
"0.4972317",
"0.4968625",
"0.49684444",
"0.49682596"
] | 0.6440375 | 0 |
Add field labels to the existing labels. | public function setLabels(array $labels): void
{
foreach ($labels as $field_name => $label) {
if (isset($this->display_fields[$field_name])) {
$this->labels[$field_name] = $label;
} else {
throw new InvalidFieldException('"'.$field_name.'" not set as a display field');
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function addNamesLabelsValues() {\n foreach ($this->__fields() as $field) {\n $this->$field->__name = $field;\n if (!$this->$field->label && $this->$field->label !== '') $this->$field->label = strtoupper($field[0]) . substr ($field, 1);\n $this->setFieldValue($field);\n $this->$field->setForm($this);\n }\n }",
"public function setLabels($labels){\n\t\tif(!is_array($labels)) return;\n\t\t\n\t\tforeach($labels as $field_name => $label){\n\t\t\tif(isset($this->Fields[$field_name])){\n\t\t\t\t$this->Fields[$field_name]->label = $label;\n\t\t\t}\n\t\t}\n\t}",
"protected function alterFields(&$fields) {\n $label_key = $this->entityList->getTargetEntityType()->getKey('label');\n if ($label_key) {\n $fields['_label']['sort_field'] = $label_key;\n }\n }",
"function labelField($fieldName,$fieldLabel){\n\n\t\t$this->labels[$fieldName] = $fieldLabel;\n\n\t}",
"public function addLabels(array $labels)\n {\n $this->labels = array_merge($this->labels, $labels);\n }",
"protected function setLabel($field,$label)\r\n {\r\n $this->labels[$field]=$label;\r\n }",
"abstract function add_label();",
"function getFieldLabels( $field ) \n {\n $returnValue = '';\n \n $fieldName = $field->getName();\n \n $label = $field->getTitle();\n if ($label != '') {\n// $label = str_replace( \"'\", \"''\", $label);\n $label = str_replace( '\"', '\\\"', $label);\n $returnValue = ' $labelManager->addLabel( \"[title_'.$fieldName.']\", \"'.$label.'\", \"en\" );';\n \n }\n \n $label = $field->getFormLabel();\n if ($label != '') {\n \n if ( $returnValue != '') {\n $returnValue .= \"\\n\";\n }\n/// $label = str_replace( \"'\", \"''\", $label);\n $label = str_replace( '\"', '\\\"', $label);\n $returnValue .= ' $labelManager->addLabel( \"[formLabel_'.$fieldName.']\", \"'.$label.'\", \"en\" );';\n \n }\n \n $label = $field->getExample();\n if ($label != '') {\n \n if ( $returnValue != '') {\n $returnValue .= \"\\n\";\n }\n// $label = str_replace( \"'\", \"''\", $label);\n $label = str_replace( '\"', '\\\"', $label);\n $returnValue .= ' $labelManager->addLabel( \"[example_'.$fieldName.']\", \"'.$label.'\", \"en\" );';\n\n }\n \n $label = $field->getError();\n if ($label != '') {\n \n if ( $returnValue != '') {\n $returnValue .= \"\\n\";\n }\n/// $label = str_replace( \"'\", \"''\", $label);\n $label = str_replace( '\"', '\\\"', $label);\n $returnValue .= ' $labelManager->addLabel( \"[error_'.$fieldName.']\", \"'.$label.'\", \"en\" );';\n \n }\n \n if ( $returnValue != '') {\n $returnValue .= \"\\n\";\n }\n \n return $returnValue;\n \n }",
"private function setLabels(){\n\t\t$this->labels = array(\n\t\t\t'name' => $this->name,\n\t\t\t'singular_name' => $this->nameMenuSingular,\n\t\t\t'menu_name' => $this->nameMenu,\n\t\t\t'all_items' => $this->nameAll,\n\t\t\t'add_new' => $this->nameAddNew,\n\t\t\t'add_new_item' => $this->nameNewItem,\n\t\t\t'edit_item' => $this->nameEdit,\n\t\t\t'new_item' => $this->nameNewItem,\n\t\t\t'view_item' => $this->nameView,\n\t\t\t'search_items' => $this->nameSearch,\n\t\t\t'not_found' => $this->msgNotFound,\n\t\t\t'not_found_in_trash' => $this->msgNotFoundTash,\n\t\t\t'parent_item_colon' => $this->msgParentItemColon\n\t\t);\n\t}",
"function localizeLabels() {\n // (standard fields) and the artifact field table with a special flag and make sure\n // all tracker scripts handle them properly\n // For now make a big hack!! (see import.php func=showformat)\n $submitted_field = $this->art_field_fact->getFieldFromName('submitted_by');\n if (strstr($submitted_field->getLabel(),\"ubmit\")) {\n // Assume English\n $this->lbl_list['follow_ups'] = 'Follow-up Comments';\n $this->lbl_list['is_dependent_on'] = 'Depend on';\n $this->lbl_list['add_cc'] = 'CC List';\n $this->lbl_list['cc_comment'] = 'CC Comment';\n\n $this->dsc_list['follow_ups'] = 'All follow-up comments in one chunck of text';\n $this->dsc_list['is_dependent_on'] = 'List of artifacts this artifact depends on';\n $this->dsc_list['add_cc'] = 'List of persons to receive a carbon-copy (CC) of the email notifications (in addition to submitter, assignees, and commenters)';\n $this->dsc_list['cc_comment'] = 'Explain why these CC names were added and/or who they are';\n\n } else {\n // Assume French\n $this->lbl_list['follow_ups'] = 'Commentaires';\n $this->lbl_list['is_dependent_on'] = 'Depend de';\n $this->lbl_list['add_cc'] = 'Liste CC';\n $this->lbl_list['cc_comment'] = 'Commentaire CC';\n\n $this->dsc_list['follow_ups'] = 'Tout le fil de commentaires en un seul bloc de texte';\n $this->dsc_list['is_dependent_on'] = 'Liste des artefacts dont celui-ci depend';\n $this->dsc_list['add_cc'] = 'Liste des pesonnes recevant une copie carbone (CC) des notifications e-mail (en plus de la personne qui l\\'a soumis, a qui on l\\'a confie ou qui a poste un commentaire)';\n $this->dsc_list['cc_comment'] = 'Explique pourquoi ces personnes sont en CC ou qui elles sont';\n }\n }",
"public function setLabels(array $labels): void;",
"public function insertFormLabel()\r\n {\r\n\r\n $formfield = new FormFields();\r\n $formfield->setName('name');\r\n $formfield->setLabel('name');\r\n $formfield1 = new FormFields();\r\n $formfield1->setName('surname');\r\n $formfield1->setLabel('surname');\r\n $formfield2 = new FormFields();\r\n $formfield2->setName('email');\r\n $formfield2->setLabel('email');\r\n $formfield3 = new FormFields();\r\n $formfield3->setName('telephone');\r\n $formfield3->setLabel('telephone');\r\n\r\n $this->entityManage->persist($formfield);\r\n $this->entityManage->persist($formfield1);\r\n $this->entityManage->persist($formfield2);\r\n $this->entityManage->persist($formfield3);\r\n $this->entityManage->flush();\r\n\r\n }",
"function label( $field_name, $label ) {\n// okay, the reason this is failing, is that I think it is being called before the array is being created. The fields array does not have any contents until validate() method is invoked. So during form setup, it has no content.\n// what I did was adde a labels list so the calling program can create the labels as an assoc. array before validate is invoked.\n\n// debug\n//print \"Setting Label: $label on Field: $field_name\";\n$this->fields[$field_name][label] = $label;\n//print \"Label Set To: \". $this->fields[$field_name][label];\n\t\t\n}",
"public function addLabel($text){\n $name=\"label\".$this->labelID;\n $this->labelID++;\n $this->items[$name]['type']=\"label\";\n $this->items[$name]['text']=$text;\n }",
"function _getFieldLabels($fieldName,$fieldOptions){\n\n\t\t$fieldOptions= \"'\".implode(\"','\",$fieldOptions).\"'\";\n\t\t$SQLquery = \"SELECT `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableKey'].\"` AS pkey\".\n\t\t\t\t\t\", `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableValue'].\"` AS value \".\n\t\t\t\t\t\"FROM `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableName'].\"` \".\n\t\t\t\t\t\"WHERE `\".$this->labelValues[$fieldName]['tableKey'].\"` IN(\".$fieldOptions.\")\";\n\n\t\t$retrievedData = $this->db->execute($SQLquery);\n\t\tif($this->db->error != \"\"){\n\t\t\techo \"ERROR: Unable to retrieve field labels from '\".$this->labelValues[$fieldName]['tableName'].\"'.\".($this->db_errors?\"<br/>\".$this->db->error:\"\");\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach($retrievedData as $set){\n\n\t\t\t$this->labelValues[$fieldName][$set['pkey']] = $set['value'];\n\n\t\t}\n\n\t}",
"public function setLabels(array $labels);",
"public function getLabelField() {}",
"public function prepareLabels() {\n\t\t$this[ Argument::LABELS ] = $this->doReplacements( $this[ Argument::LABELS ] );\n\n\t\treturn $this;\n\t}",
"public function labels(array $labels)\n\t{\n\t\t$this->labels = $labels + $this->labels;\n\n\t\treturn $this;\n\t}",
"public function labels(array $labels);",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['Gallery'] = _t(__CLASS__ . '.GALLERY', 'Gallery');\n $labels['ShowImageCounts'] = _t(__CLASS__ . '.SHOWIMAGECOUNTS', 'Show image counts');\n \n // Answer Field Labels:\n \n return $labels;\n }",
"function set_labels( $labels )\n\t{\n\t\t$this->labels = $labels;\n\t}",
"public function label_fields_customization( $fields ) {\n\n\t\t\tif ( is_checkout() && ! is_wc_endpoint_url( 'order-received' ) && 'modern' === astra_get_option( 'woo-input-style-type' ) ) {\n\n\t\t\t\t$field_types = array(\n\t\t\t\t\t'billing',\n\t\t\t\t\t'shipping',\n\t\t\t\t\t'account',\n\t\t\t\t\t'order',\n\t\t\t\t);\n\n\t\t\t\tforeach ( $field_types as $type ) {\n\n\t\t\t\t\tif ( isset( $fields[ $type ] ) && is_array( $fields[ $type ] ) ) {\n\n\t\t\t\t\t\tforeach ( $fields[ $type ] as $key => $field ) {\n\t\t\t\t\t\t\t// Add label as placeholder if the placeholder value is empty.\n\t\t\t\t\t\t\tif ( empty( $fields[ $type ][ $key ]['placeholder'] ) ) {\n\t\t\t\t\t\t\t\t$fields[ $type ][ $key ]['placeholder'] = $fields[ $type ][ $key ]['label'];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Remove screen-reader-text class from labels.\n\t\t\t\t\t\t\tif ( isset( $fields[ $type ][ $key ]['label_class'] ) ) {\n\t\t\t\t\t\t\t\t$fields[ $type ][ $key ]['label_class'] = array_diff( $fields[ $type ][ $key ]['label_class'], array( 'screen-reader-text' ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $fields;\n\t\t}",
"function field_views_field_label($field_name) {\n $label_counter = array();\n $all_labels = array();\n // Count the amount of instances per label per field.\n $instances = field_info_instances();\n foreach ($instances as $entity_name => $entity_type) {\n foreach ($entity_type as $bundle) {\n if (isset($bundle[$field_name])) {\n $label_counter[$bundle[$field_name]['label']] = isset($label_counter[$bundle[$field_name]['label']]) ? ++$label_counter[$bundle[$field_name]['label']] : 1;\n $all_labels[$entity_name][$bundle[$field_name]['label']] = TRUE;\n }\n }\n }\n if (empty($label_counter)) {\n return array($field_name, $all_labels);\n }\n // Sort the field lables by it most used label and return the most used one.\n arsort($label_counter);\n $label_counter = array_keys($label_counter);\n return array($label_counter[0], $all_labels);\n}",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['ClassName'] = $labels['Type'] = _t(__CLASS__ . '.TYPE', 'Type');\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function createLabels()\n {\n // default labels\n $labels = [\n 'name' => $this->plural,\n 'singular_name' => $this->singular,\n 'menu_name' => $this->plural,\n 'all_items' => \"All {$this->plural}\",\n 'edit_item' => \"Edit {$this->singular}\",\n 'view_item' => \"View {$this->singular}\",\n 'update_item' => \"Update {$this->singular}\",\n 'add_new_item' => \"Add New {$this->singular}\",\n 'new_item_name' => \"New {$this->singular} Name\",\n 'parent_item' => \"Parent {$this->plural}\",\n 'parent_item_colon' => \"Parent {$this->plural}:\",\n 'search_items' => \"Search {$this->plural}\",\n 'popular_items' => \"Popular {$this->plural}\",\n 'separate_items_with_commas' => \"Seperate {$this->plural} with commas\",\n 'add_or_remove_items' => \"Add or remove {$this->plural}\",\n 'choose_from_most_used' => \"Choose from most used {$this->plural}\",\n 'not_found' => \"No {$this->plural} found\",\n ];\n\n return array_replace($labels, $this->labels);\n }",
"public function replaceLabels() {\n $keys = array_keys($this->labels());\n $values = array_values($this->labels());\n\n foreach ($this->errors as $k => $error) {\n $this->errors[$k] = str_ireplace($keys, $values, $error);\n }\n }",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['Email'] = _t(__CLASS__ . '.EMAIL', 'Email');\n $labels['EmailSubject'] = _t(__CLASS__ . '.SUBJECT', 'Subject');\n $labels['EmailMessage'] = _t(__CLASS__ . '.MESSAGE', 'Message');\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['SendTo'] = _t(__CLASS__ . '.SENDTO', 'Send to');\n $labels['SendFrom'] = _t(__CLASS__ . '.SENDFROM', 'Send from');\n $labels['EmailSubject'] = _t(__CLASS__ . '.EMAILSUBJECT', 'Email subject');\n $labels['OnSendMessage'] = _t(__CLASS__ . '.ONSENDMESSAGE', 'On Send message');\n \n $labels['Name'] = $labels['NameTo'] = $labels['NameFrom'] = _t(__CLASS__ . '.NAME', 'Name');\n $labels['Email'] = $labels['EmailTo'] = $labels['EmailFrom'] = _t(__CLASS__ . '.EMAIL', 'Email');\n $labels['Disabled'] = $labels['Disabled.Nice'] =_t(__CLASS__ . '.DISABLED', 'Disabled');\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function addLabel(Label $label): void\n {\n if (is_null($this->labels)) {\n $this->labels = collect();\n }\n $this->labels->put($label->Text, $label);\n }",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['Title'] = _t(__CLASS__ . '.TITLE', 'Title');\n $labels['Value'] = _t(__CLASS__ . '.VALUE', 'Value');\n $labels['HideTitle'] = _t(__CLASS__ . '.HIDETITLE', 'Hide title');\n $labels['TitleOptions'] = _t(__CLASS__ . '.TITLE', 'Title');\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['Image'] = _t(__CLASS__ . '.IMAGE', 'Image');\n $labels['InlineVector'] = _t(__CLASS__ . '.INLINEVECTORIMAGE', 'Inline vector image');\n $labels['LinkImageFile'] = _t(__CLASS__ . '.FILE', 'File');\n $labels['LinkImageWidth'] = _t(__CLASS__ . '.WIDTH', 'Width');\n $labels['LinkImageHeight'] = _t(__CLASS__ . '.HEIGHT', 'Height');\n \n // Define Relation Labels:\n \n if ($includerelations) {\n $labels['LinkImage'] = _t(__CLASS__ . '.has_one_LinkImage', 'Image');\n }\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['Caption'] = _t(__CLASS__ . '.CAPTION', 'Caption');\n $labels['ImageID'] = _t(__CLASS__ . '.IMAGE', 'Image');\n $labels['HideCaption'] = _t(__CLASS__ . '.HIDECAPTION', 'Hide caption');\n \n // Define Relation Labels:\n \n if ($includerelations) {\n $labels['Image'] = _t(__CLASS__ . '.has_one_IMAGE', 'Image');\n }\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['Zoom'] = _t(__CLASS__ . '.ZOOM', 'Zoom');\n $labels['Markers'] = _t(__CLASS__ . '.MARKERS', 'Markers');\n $labels['MapType'] = _t(__CLASS__ . '.MAPTYPE', 'Map type');\n $labels['Latitude'] = _t(__CLASS__ . '.LATITUDE', 'Latitude');\n $labels['Longitude'] = _t(__CLASS__ . '.LONGITUDE', 'Longitude');\n $labels['MarkerTitle'] = _t(__CLASS__ . '.MARKERTITLE', 'Marker title');\n $labels['MarkerLabel'] = _t(__CLASS__ . '.MARKERLABEL', 'Marker label');\n $labels['MarkerContent'] = _t(__CLASS__ . '.MARKERCONTENT', 'Marker content');\n $labels['ShowMarker'] = _t(__CLASS__ . '.SHOWMARKERFORLOCATION', 'Show marker for location');\n $labels['HideMarkerContent'] = _t(__CLASS__ . '.HIDEMARKERCONTENT', 'Hide marker content');\n $labels['HeightMode'] = _t(__CLASS__ . '.HEIGHTMODE', 'Height mode');\n $labels['HeightManual'] = _t(__CLASS__ . '.HEIGHTMANUALINPIXELS', 'Height manual (in pixels)');\n $labels['Coordinates'] = _t(__CLASS__ . '.COORDINATES', 'Coordinates');\n $labels['MapStyle'] = $labels['MapOptions'] = _t(__CLASS__ . '.MAP', 'Map');\n \n // Define Relation Labels:\n \n if ($includerelations) {\n $labels['Markers'] = _t(__CLASS__ . '.has_many_Markers', 'Markers');\n }\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function setLabel($newLabel);",
"function getLabelField() \n {\n return \"label_label\";\n }",
"public function labels($labels)\n\t{\n\t\t$this->labels = $labels;\n\t\treturn $this;\n\t}",
"public function labels()\n {\n }",
"public function add($label);",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['Links'] = _t(__CLASS__ . '.LINKS', 'Links');\n $labels['SortBy'] = _t(__CLASS__ . '.SORTBY', 'Sort by');\n $labels['LinkMode'] = _t(__CLASS__ . '.LINKMODE', 'Mode');\n $labels['ShowIcons'] = _t(__CLASS__ . '.SHOWICONS', 'Show icons');\n $labels['LinkedPages'] = _t(__CLASS__ . '.LINKEDPAGES', 'Pages');\n $labels['HeaderContent'] = _t(__CLASS__ . '.HEADERCONTENT', 'Header content');\n $labels['FooterContent'] = _t(__CLASS__ . '.FOOTERCONTENT', 'Footer content');\n $labels['NavigationOptions'] = _t(__CLASS__ . '.NAVIGATION', 'Navigation');\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['Options'] = _t(__CLASS__ . '.OPTIONS', 'Options');\n $labels['Portfolio'] = _t(__CLASS__ . '.PORTFOLIO', 'Portfolio');\n $labels['DetailsHeading'] = _t(__CLASS__ . '.DETAILSHEADING', 'Details heading');\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function fieldLabels($includerelations = true)\n {\n // Obtain Field Labels (from parent):\n \n $labels = parent::fieldLabels($includerelations);\n \n // Define Field Labels:\n \n $labels['FeedTitle'] = _t(__CLASS__ . '.FEEDTITLE', 'Title');\n $labels['FeedOptions'] = _t(__CLASS__ . '.FEED', 'Feed');\n $labels['FeedEnabled'] = _t(__CLASS__ . '.FEEDENABLED', 'Feed enabled');\n $labels['FeedDescription'] = _t(__CLASS__ . '.DESCRIPTION', 'Description');\n $labels['FeedNumberOfArticles'] = _t(__CLASS__ . '.NUMBEROFARTICLES', 'Number of articles');\n \n // Answer Field Labels:\n \n return $labels;\n }",
"public function fieldLabels($includerelations = true)\n {\n $labels = parent::fieldLabels($includerelations);\n\n $labels['Name'] = _t(__CLASS__ . '.NAME', 'Author name');\n $labels['Comment'] = _t(__CLASS__ . '.COMMENT', 'Comment');\n $labels['Email'] = _t(__CLASS__ . '.EMAIL', 'Email');\n $labels['URL'] = _t(__CLASS__ . '.URL', 'URL');\n $labels['IsSpam'] = _t(__CLASS__ . '.ISSPAM', 'Spam?');\n $labels['Moderated'] = _t(__CLASS__ . '.MODERATED', 'Moderated?');\n $labels['ParentTitle'] = _t(__CLASS__ . '.PARENTTITLE', 'Parent');\n $labels['Created'] = _t(__CLASS__ . '.CREATED', 'Date posted');\n\n return $labels;\n }",
"public function fieldLabels($includerelations = true)\n {\n $labels = parent::fieldLabels($includerelations);\n $tagLabels = array(\n 'Title' => _t('Tag.TITLE', 'Title'),\n 'Description' => _t('Tag.DESCRIPTION', 'Description'),\n 'Impression' => _t('Tag.IMPRESSION', 'Impression image'),\n );\n\n return array_merge($tagLabels, $labels);\n }",
"function dp_post_object_labels() {\n\t$custom_labels = get_option('dp_post_labels');\n\tif(!empty($custom_labels)) {\n\t\tglobal $wp_post_types;\n\t\t$labels = &$wp_post_types['post']->labels;\n\t\n\t\tforeach($custom_labels as $key => $label) {\n\t\t\tif(!empty($label))\n\t\t\t\t$labels->$key = $label;\n\t\t}\n\t}\n}",
"function prepareLabels() {\n $engine = defined('DB_CAN_TRANSACT') && DB_CAN_TRANSACT ? 'InnoDB' : 'MyISAM';\n\n try {\n $labels_table = TABLE_PREFIX . 'labels';\n\n DB::execute(\"CREATE TABLE $labels_table (\n id int unsigned NOT NULL auto_increment,\n type varchar(50) NOT NULL DEFAULT 'Label',\n name varchar(10) DEFAULT NULL,\n is_default tinyint(1) unsigned not null default '0' NOT NULL DEFAULT '0',\n raw_additional_properties longtext,\n PRIMARY KEY (id),\n INDEX type (type),\n UNIQUE name (name, type)\n ) ENGINE=$engine DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci\");\n\n $white = '#FFFFFF';\n $black = '#000000';\n $red = '#FF0000';\n $green = '#00A651';\n $blue = '#0000FF';\n $yellow = '#FFFF00';\n $orange = '#F26522';\n $grey = '#ACACAC';\n\n $labels_by_type = array(\n 'AssignmentLabel' => array(\n array('NEW', $black, $yellow),\n array('CONFIRMED', $white, $orange),\n array('WORKS4ME', $white, $green),\n array('DUPLICATE', $white, $green),\n array('WONTFIX', $white, $green),\n array('ASSIGNED', $white, $red),\n array('BLOCKED', $black, $grey),\n array('INPROGRESS', $black, $yellow),\n array('FIXED', $white, $blue),\n array('REOPENED', $white, $red),\n array('VERIFIED', $white, $green),\n ),\n 'ProjectLabel' => array(\n array('NEW', $black, $yellow),\n array('INPROGRESS', $white, $green),\n array('CANCELED', $white, $red),\n array('PAUSED', $white, $blue),\n )\n );\n\n foreach($labels_by_type as $type => $labels) {\n foreach($labels as $label) {\n list($label_name, $fg_color, $bg_color) = $label;\n\n DB::execute(\"INSERT INTO $labels_table (type, name, raw_additional_properties) VALUES (?, ?, ?)\", $type, $label_name, serialize(array('fg_color' => $fg_color, 'bg_color' => $bg_color)));\n } // foreach\n } // foreach\n\n DB::execute(\"UPDATE $labels_table SET is_default = ? WHERE type = ? AND name = ?\", true, 'AssignmentLabel', 'NEW');\n DB::execute(\"UPDATE $labels_table SET is_default = ? WHERE type = ? AND name = ?\", true, 'ProjectLabel', 'NEW');\n } catch(Exception $e) {\n return $e->getMessage();\n } // try\n\n return true;\n }",
"public function setLabels($labels) {\n\t\t$this -> setProperty('chl', urlencode($this->encodeData($this->getApplicableLabels($labels),\"|\")));\n\t}",
"function build_label($labels, $noLimit = false, $customTemplate = '')\n {\n $tags = '';\n\n if (count($labels) > 0) {\n foreach ($labels as $key => $label) {\n if (!$customTemplate) {\n $tags .= '#' . $label . ' ';\n\n if ($key > 1 && !$noLimit) {\n break;\n }\n } else {\n $tags .= str_replace(':name', $label, $customTemplate);\n }\n }\n } else {\n\n if ($customTemplate) {\n $tags = str_replace(':name', 'NoTag', $customTemplate);\n } else {\n $tags = '#NoTag';\n }\n\n }\n\n return $tags;\n }",
"public function testAddLabel() {\n\n foreach ($this->testCases['Label'] as $key => $testCase) {\n $label = new Label();\n $label->setLabelName($testCase['label_name']);\n $label->setLabelComment($testCase['label_comment']);\n $label->setLabelStatus($testCase['label_status']);\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('addLabel')\n ->will($this->returnValue($label));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->addLabel($testCase['label_name'], $testCase['label_comment']);\n $this->assertTrue($result instanceof Label);\n $this->assertEquals($label, $result);\n }\n }",
"function acf_render_field_wrap_label($field)\n{\n}",
"public function generateLabels();",
"function get_fields_labels_recursive(&$array, $field){\n \n $label = '';\n \n $ancestors = isset($field['ancestors']) ? $field['ancestors'] : count(acf_get_field_ancestors($field));\n $label = str_repeat('- ', $ancestors) . $label;\n \n $label .= !empty($field['label']) ? $field['label'] : '(' . __('no label', 'acf') . ')';\n $label .= $field['required'] ? ' <span class=\"acf-required\">*</span>' : '';\n \n $array[$field['key']] = $label;\n \n if(isset($field['sub_fields']) && !empty($field['sub_fields'])){\n \n foreach($field['sub_fields'] as $s_field){\n \n $this->get_fields_labels_recursive($array, $s_field);\n \n }\n \n }\n \n }",
"abstract function labels();",
"protected function insert() {\n $this->repo_id = $this->repository->repo_id; // for drupal_write_record() only\n\n if (isset($this->label_id)) {\n // The label already exists in the database, update the record.\n drupal_write_record('versioncontrol_labels', $this, 'label_id');\n }\n else {\n // The label does not yet exist, create it.\n // drupal_write_record() also assigns the new id to $this->label_id.\n drupal_write_record('versioncontrol_labels', $this);\n }\n unset($this->repo_id);\n }",
"public function parseLabels(): void;",
"public function labels() {\n\t\treturn array(\n\t\t\t'id' => 'ID',\n\t\t\t'name' => 'Name',\n\t\t\t'email' => 'Email',\n\t\t\t'phone' => 'Phone',\n\t\t\t'message' => 'Message',\n\t\t\t'date_submitted' => 'Date Submitted',\n\t\t\t'ip_address' => 'IP Address',\n\t\t);\n\t}",
"public function add_label($buffer)\n {\n if(empty($buffer))\n {\n return;\n }\n if(!in_array($buffer[0], $this->labelsName))\n {\n array_push($this->labelsName, $buffer[0]);\n $this->labels++;\n }\n }",
"protected function set_labels() {\n\n\t\t$defaults = array(\n\t\t\t'browse' => esc_html__( 'Browse:', 'boo' ),\n\t\t\t'aria_label' => esc_attr_x( 'Breadcrumbs', 'breadcrumbs aria label', 'boo' ),\n\t\t\t'home' => esc_html__( 'Home', 'boo' ),\n\t\t\t'error_404' => esc_html__( '404 Not Found', 'boo' ),\n\t\t\t'archives' => esc_html__( 'Archives', 'boo' ),\n\t\t\t'search' => esc_html__( 'Search results for “%s”', 'boo' ),\n\t\t\t'paged' => esc_html__( 'Page %s', 'boo' ),\n\t\t\t'archive_minute' => esc_html__( 'Minute %s', 'boo' ),\n\t\t\t'archive_week' => esc_html__( 'Week %s', 'boo' ),\n\n\t\t\t'archive_minute_hour' => '%s',\n\t\t\t'archive_hour' => '%s',\n\t\t\t'archive_day' => '%s',\n\t\t\t'archive_month' => '%s',\n\t\t\t'archive_year' => '%s',\n\t\t);\n\n\t\t$this->labels = wp_parse_args( $this->args['labels'], $defaults );\n\t}",
"public function setLabel($label);",
"public function setLabel($label);",
"public function setLabel($label);",
"public function setLabel($label);",
"public function attributeLabels()\n\t{\n\t\t$labels = array();\n\t\tforeach($this->searchFields as $field=>$data)\n\t\t\t$labels[$field] = isset($data['label']) ? $data['label'] : parent::generateAttributeLabel($field);\n\t\treturn $labels;\n\t}",
"function _putLabel($fieldName, $fieldLabel, $css=\"text\", $focus=true, $fieldSet=false){\n\n\t\tif($focus && $this->jsLabels) $onclick = \" onClick=\\\"forms['$this->formName']['$fieldName'].select();\\\"\";\n\t\telse $onclick = \"\";\n\n\t\tif( !$this->NS4 && !strstr($fieldName,\" \") ){\n\t\t\techo \"<label class=\\\"\".$css.\"label\\\" for=\\\"\".$fieldName.\"\\\"$onclick>\".$fieldLabel.\"</label>\";\n\t\t\tif(!$fieldSet) echo $this->labelBreak; else echo $this->optionBreak;\n\t\t} else {\n\t\t\techo \"<label class=\\\"\".$css.\"label\\\" for=\\\"\".$fieldName.\"\\\">\".$fieldLabel.\"</label>\";\n\t\t\tif(!$fieldSet) echo $this->labelBreak; else echo $this->optionBreak;\n\t\t}\n\n\t}",
"function acf_render_field_label($field)\n{\n}",
"function getLabels($fieldName, $tableName, $tableKey = \"ID\", $tableValue = \"name\"){\n\t\t\n\t\t$this->labelValues[$fieldName]['tableName'] = $tableName;\n\t\t$this->labelValues[$fieldName]['tableKey'] = $tableKey;\n\t\t$this->labelValues[$fieldName]['tableValue'] = $tableValue;\n\t}",
"public function getLabels($field_names=array()){\n\t\tif(!is_array($field_names)){\n\t\t\t$field_names = $this->getFields();\n\t\t}\n\t\t\n\t\t$labels = array();\n\t\tforeach($field_names as $field_name){\n\t\t\tif(isset($this->Fields[$field_name])){\n\t\t\t\t$labels[$field_name] = $this->Fields[$field_name]->label;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $labels;\n\t}",
"function glass_change_post_object_label() {\n\tglobal $wp_post_types;\n\t$labels = &$wp_post_types['post']->labels;\n\t$labels->name = 'News';\n\t$labels->singular_name = 'News';\n\t$labels->add_new = 'Add News';\n\t$labels->add_new_item = 'Add News';\n\t$labels->edit_item = 'Edit News';\n\t$labels->new_item = 'News';\n\t$labels->view_item = 'View News';\n\t$labels->search_items = 'Search News';\n\t$labels->not_found = 'No News found';\n\t$labels->not_found_in_trash = 'No News found in Trash';\n}",
"public function labels()\n {\n return $this->morphToMany(\\VentureDrake\\LaravelCrm\\Models\\Label::class, config('laravel-crm.db_table_prefix').'labelable');\n }",
"public function getFormFieldLabels()\n {\n return craft()->coalescentForms->getFormFieldLabels();\n }",
"public function setLabels($asLabels)\n {\n $this->widgetSchema->setLabels($asLabels);\n }",
"public function setLabels($asLabels)\n {\n $this->widgetSchema->setLabels($asLabels);\n }",
"public function setLabels($asLabels)\n {\n $this->widgetSchema->setLabels($asLabels);\n }",
"function ninja_forms_display_field_label( $field_id, $data ){\n\tglobal $ninja_forms_fields, $ninja_forms_loading, $ninja_forms_processing;\n\n $field = ninja_forms_get_field_by_id( $field_id );\n $form_id = $field['form_id'];\n\n\t$plugin_settings = nf_get_settings();\n\n\tif ( isset ( $ninja_forms_loading ) && $ninja_forms_loading->get_form_ID() == $form_id ) {\n\t\t$field_row = $ninja_forms_loading->get_field_settings( $field_id );\n\t} else if ( isset ( $ninja_forms_processing ) && $ninja_forms_processing->get_form_ID() == $form_id ) {\n\t\t$field_row = $ninja_forms_processing->get_field_settings( $field_id );\n\t}\n\t\n\t$field_type = $field_row['type'];\n\n\tif( isset ( $data['label'] ) ) {\n\t\t$label = stripslashes($data['label']);\n\t} else if ( isset ( $ninja_forms_fields[$field_type]['default_label'] ) ) {\n\t\t$label = $ninja_forms_fields[$field_type]['default_label'];\n\t} else {\n\t\t$label = '';\n\t}\n\n\tif( isset ( $data['label_pos'] ) ) {\n\t\t$label_pos = stripslashes($data['label_pos']);\n\t} else {\n\t\t$label_pos = '';\n\t}\n\n\tif ( isset( $plugin_settings['req_field_symbol'] ) ) {\n\t\t$req_symbol = $plugin_settings['req_field_symbol'];\n\t} else {\n\t\t$req_symbol = '';\n\t}\n\n\tif ( isset ( $data['req'] ) ) {\n\t\t$req = $data['req'];\n\t} else {\n\t\t$req = '';\n\t}\n\n\tif ( isset ( $data['display_label'] ) ) {\n\t\t$display_label = $data['display_label'];\n\t} else {\n\t\t$display_label = true;\n\t}\n\n\t$label_class = '';\n\n\t$label_class = apply_filters( 'ninja_forms_label_class', $label_class, $field_id );\n\n\tif ( $display_label ) {\n\t\tif ( $req == 1 && $req_symbol != '' && $label_pos != 'inside' ) {\n\t\t\t$req_span = \"<span class='ninja-forms-req-symbol'>$req_symbol</span>\";\n\t\t} else {\n\t\t\t$req_span = '';\n\t\t}\n\t\t?>\n\t\t<label for=\"ninja_forms_field_<?php echo $field_id;?>\" id=\"ninja_forms_field_<?php echo $field_id;?>_label\" class=\"<?php echo $label_class;?>\"><?php echo $label;?> <?php echo $req_span;?>\n\t\t<?php\n\t\tif ( $label_pos != 'left' ) {\n\t\t\tdo_action( 'ninja_forms_display_field_help', $field_id, $data );\n\t\t}\n\t\t?>\n\t\t</label>\n\t\t<?php\n\t}\n}",
"public function add_label($caption, $num_cols=1, $attrs=false, $attrs2=false)\n\t{\n\t\tif (!is_array($attrs)) { $attrs = array(); }\n\t\tif (!is_array($attrs2)) { $attrs2 = array(); }\n\t\t$obj_label = new GenElement('label', $caption, $attrs);\n\t\t$label = $obj_label->render(1);\n\t\tarray_push($this->form_elements, array($label, $num_cols, 'cell', $attrs2));\n\t}",
"public function setLabel() {\n }",
"function maker_4ym_change_post_object_label() {\n global $wp_post_types;\n\n $labels = &$wp_post_types['post']->labels;\n $labels->name = 'Blog';\n $labels->singular_name = 'Artículos del Blog';\n $labels->add_new = 'Agregar un nuevo artículo';\n $labels->add_new_item = 'Escribir un nuevo artículo';\n $labels->edit_item = 'Editar un artículo';\n $labels->new_item = 'Nuevo artículo';\n $labels->view_item = 'Ver artículo';\n $labels->search_items = 'Buscar artículos';\n $labels->not_found = 'ningún artículo coincide con tu búsqueda';\n $labels->not_found_in_trash = 'ningún artículo en la papelera coincide con la búsqueda';\n}",
"function pnAddressBook_admin_updatelabels() {\r\n\r\n\t$output = new pnHTML();\r\n\r\n // Security check\r\n if (!pnSecAuthAction(0, 'pnAddressBook::', '::', ACCESS_ADMIN)) {\r\n $output->Text(pnVarPrepHTMLDisplay(_PNADDRESSBOOK_NOAUTH));\r\n $output->Text(pnAddressBook_themetable('end'));\r\n\t\treturn $output->GetOutput();\r\n }\r\n\r\n\tlist($id,$del,$name,$newname) = pnVarCleanFromInput('id','del','name','newname');\r\n\tif(is_array($del)) {\r\n $dels = implode(',',$del);\r\n }\r\n\r\n\t$modID = $modName = array();\r\n\r\n\tif(isset($id)) {\r\n\t\tforeach($id as $k=>$i) {\r\n \t$found = false;\r\n \tif(count($del)) {\r\n \tforeach($del as $d) {\r\n \tif($i == $d) {\r\n \t$found = true;\r\n \tbreak;\r\n \t}\r\n \t}\r\n \t}\r\n \tif(!$found) {\r\n \tarray_push($modID,$i);\r\n \tarray_push($modName,$name[$k]);\r\n }\r\n \t}\r\n\t}\r\n\r\n\t$pntable = pnDBGetTables();\r\n\t$lab_table = $pntable[pnaddressbook_labels];\r\n\t$lab_column = $pntable['pnaddressbook_labels_column'];\r\n\r\n\t$updates = array();\r\n foreach($modID as $k=>$id) {\r\n array_push($updates,\"UPDATE $lab_table\r\n SET $lab_column[name]='\".pnVarPrepForStore($modName[$k]).\"'\r\n WHERE $lab_column[nr]=$id\");\r\n\t}\r\n\r\n\t$error = '';\r\n\r\n\tif(pnModAPIFunc(__PNADDRESSBOOK__,'admin','updatelabels',array('updates'=>$updates))) {\r\n if (empty($error)) { $error .= 'UPDATE '.pnVarPrepHTMLDisplay(_pnAB_SUCCESS); }\r\n\t\telse { $error .= ' - UPDATE '.pnVarPrepHTMLDisplay(_pnAB_SUCCESS); }\r\n }\r\n\r\n\t$delete = \"DELETE FROM $lab_table WHERE $lab_column[nr] IN ($dels)\";\r\n\tif(isset($dels)) {\r\n if(pnModAPIFunc(__PNADDRESSBOOK__,'admin','deletelabels',array('delete'=>$delete))) {\r\n if (empty($error)) { $error .= 'DELETE '.pnVarPrepHTMLDisplay(_pnAB_SUCCESS); }\r\n\t\t\telse { $error .= ' - DELETE '.pnVarPrepHTMLDisplay(_pnAB_SUCCESS); }\r\n }\r\n }\r\n\r\n\tif( (isset($newname)) && ($newname != '') ) {\r\n if(pnModAPIFunc(__PNADDRESSBOOK__,'admin','addlabels',array('name'=>$newname))) {\r\n if (empty($error)) { $error .= 'INSERT '.pnVarPrepHTMLDisplay(_pnAB_SUCCESS); }\r\n\t\t\telse { $error .= ' - INSERT '.pnVarPrepHTMLDisplay(_pnAB_SUCCESS); }\r\n }\r\n }\r\n\r\n\tif ($error > 0) {\r\n\t\t$msg = pnVarPrepHTMLDisplay(_ERROR);\r\n\t}\r\n\telse {\r\n\t\t$msg = pnVarPrepHTMLDisplay(_pnAB_SUCCESS);\r\n\t}\r\n\r\n\t$args=array('msg'=>$error);\r\n\tpnRedirect(pnModURL(__PNADDRESSBOOK__, 'admin', 'labels',$args));\r\n\treturn true;\r\n}",
"public function setLabel($text) {\n $this->label = '<label for=\"'.$this->id.'\">'.$text.'</label>';\n }",
"public function setLabel($text) {\n $this->label = '<label for=\"'.$this->id.'\">'.$text.'</label>';\n }",
"public function setLabels($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->labels !== $v) {\n $this->labels = $v;\n $this->modifiedColumns[BiblioTableMap::COL_LABELS] = true;\n }\n\n return $this;\n }",
"public function addLabels(\\google\\tracing\\v1\\Span\\LabelsEntry $value){\n return $this->_add(6, $value);\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"protected function addFormFieldNamesToViewHelperVariableContainer() {}",
"function setLabel( $label ) \n {\n return $this->setValueByFieldName( 'label_label', $label );\n }",
"public function label($field, $label = NULL)\n\t{\n\t\tif ($label === NULL AND ($field !== TRUE OR $field !== '*') AND ! isset($this->labels[$field]))\n\t\t{\n\t\t\t// Set the field label to the field name\n\t\t\t$this->labels[$field] = ucfirst(preg_replace('/[^\\pL]+/u', ' ', $field));\n\t\t}\n\t\telseif ($label !== NULL)\n\t\t{\n\t\t\t// Set the label for this field\n\t\t\t$this->labels[$field] = $label;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setLabel($name, $label);",
"public function labels($key = null, $default = '');",
"public function addLabels(\\google\\tracing\\v1\\Span\\TimeEvent\\Annotation\\LabelsEntry $value){\n return $this->_add(2, $value);\n }",
"public function setLabels(&$var)\n {\n GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::ENUM, POGOProtos\\Data\\Avatar\\AvatarCustomization_Label::class);\n $this->labels = $var;\n }",
"public function setDataLabels($val)\n {\n $this->_propDict[\"dataLabels\"] = $val;\n return $this;\n }",
"public function labels(){\n\t\treturn array(\n\t\t\t'name' => __($this->options('plural_name')),\n\t\t\t'singular_name' => __($this->options('singular_name')),\n\t\t\t'add_new_item' => __($this->options('add_new_item')),\n\t\t\t'edit_item' => __($this->options('edit_item')),\n\t\t\t'new_item' => __($this->options('new_item')),\n\t\t);\n\t}",
"public function labels()\n {\n return [\n 'name' => __('Name'),\n 'email' => __('Email'),\n 'message' => __('Message'),\n 'captcha' => __('Captcha')\n ];\n }",
"private function updateMediaGalleryLabels(array $labels)\n {\n if (!empty($labels)) {\n $this->mediaProcessor->updateMediaGalleryLabels($labels);\n }\n }",
"private function _createLabels ()\n {\n $content = '';\n\n foreach ($this->dayLabels as $label)\n {\n $content .= Html::tag('td', $label);\n }\n\n return Html::tag('tr', $content).\"\\n\";\n }"
] | [
"0.7471149",
"0.72132975",
"0.69580746",
"0.6903273",
"0.6844792",
"0.6467242",
"0.64215684",
"0.62982434",
"0.62847424",
"0.62402797",
"0.61971086",
"0.61275095",
"0.61232185",
"0.6091797",
"0.6082249",
"0.60744256",
"0.60711735",
"0.6031615",
"0.60126454",
"0.6011852",
"0.5999558",
"0.59955484",
"0.59626126",
"0.59365374",
"0.5933076",
"0.59228945",
"0.5887781",
"0.58843493",
"0.58832705",
"0.58825403",
"0.5879547",
"0.5876226",
"0.5870079",
"0.5846904",
"0.5846641",
"0.5830809",
"0.5819066",
"0.581334",
"0.5806335",
"0.5805584",
"0.57853526",
"0.5771898",
"0.57574356",
"0.57506126",
"0.5661722",
"0.56433475",
"0.5640871",
"0.5597884",
"0.5579502",
"0.5575248",
"0.5569605",
"0.5553838",
"0.55164343",
"0.55139285",
"0.5510871",
"0.5504931",
"0.5493024",
"0.54853517",
"0.54784447",
"0.54784447",
"0.54784447",
"0.54784447",
"0.5469776",
"0.5467779",
"0.5465438",
"0.54620147",
"0.54571706",
"0.54417694",
"0.54377383",
"0.54148287",
"0.54126126",
"0.54126126",
"0.54126126",
"0.5412153",
"0.53923917",
"0.5383925",
"0.53741324",
"0.53730536",
"0.53692234",
"0.53692234",
"0.5362323",
"0.5357778",
"0.5353968",
"0.5353968",
"0.5353968",
"0.5353968",
"0.5353968",
"0.5353968",
"0.5346707",
"0.5346135",
"0.5328321",
"0.53241533",
"0.5321044",
"0.5313134",
"0.5311131",
"0.5310471",
"0.5300127",
"0.5277247",
"0.5270485",
"0.5269126"
] | 0.63941073 | 7 |
Get a Label for a specific field. | public function getLabel(string $field_name): string
{
if (isset($this->labels[$field_name])) {
return $this->labels[$field_name];
}
// This should always be done the same was as Field::makeLabel()
return ucfirst(str_replace('_', ' ', $field_name));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLabel($field){\n\t\treturn $this->labels()[$field] ?? $field;\n\t}",
"public function getLabel($field)\r\n {\r\n return is_array($this->labels) && isset($this->labels[$field]) ? $this->labels[$field] : $field;\r\n }",
"function get_field_label($field_instance) {\n return $field_instance['label'];\n }",
"function acf_get_field_label($field, $context = '')\n{\n}",
"public function getLabelField() {}",
"public function get_field_label() {\n\t\treturn $this->get_field_attr( 'name' );\n\t}",
"function getLabel() \n {\n return $this->getValueByFieldName( 'label_label' );\n }",
"function getLabelField() \n {\n return \"label_label\";\n }",
"function getLabel() {\n global $Language;\n if ($this->isLabelMustBeLocalized()) {\n return $Language->getText('plugin_tracker_common_fieldset', $this->label);\n } else {\n return $this->label;\n }\n }",
"static function getFieldLabel($form, $key)\n { \n // The field really exists?\n if (isset($form[$key])) {\n // A label was define?\n if (!$label = $form->getWidget($key)->getLabel()) {\n $label = $form->getWidgetSchema()->getFormFormatter()->generateLabelName($key);\n }\n\n // Here, take this label\n return $label;\n }\n\n // we could not find the field. humm...\n return null;\n }",
"function getFieldLabel($fieldName){\n\n\t\tif( isset($this->labels[$fieldName]) ) return $this->labels[$fieldName];\n\t\telse return ucwords( str_replace(\"_\", \" \", $fieldName) );\n\n\t}",
"function getFieldLabels( $field ) \n {\n $returnValue = '';\n \n $fieldName = $field->getName();\n \n $label = $field->getTitle();\n if ($label != '') {\n// $label = str_replace( \"'\", \"''\", $label);\n $label = str_replace( '\"', '\\\"', $label);\n $returnValue = ' $labelManager->addLabel( \"[title_'.$fieldName.']\", \"'.$label.'\", \"en\" );';\n \n }\n \n $label = $field->getFormLabel();\n if ($label != '') {\n \n if ( $returnValue != '') {\n $returnValue .= \"\\n\";\n }\n/// $label = str_replace( \"'\", \"''\", $label);\n $label = str_replace( '\"', '\\\"', $label);\n $returnValue .= ' $labelManager->addLabel( \"[formLabel_'.$fieldName.']\", \"'.$label.'\", \"en\" );';\n \n }\n \n $label = $field->getExample();\n if ($label != '') {\n \n if ( $returnValue != '') {\n $returnValue .= \"\\n\";\n }\n// $label = str_replace( \"'\", \"''\", $label);\n $label = str_replace( '\"', '\\\"', $label);\n $returnValue .= ' $labelManager->addLabel( \"[example_'.$fieldName.']\", \"'.$label.'\", \"en\" );';\n\n }\n \n $label = $field->getError();\n if ($label != '') {\n \n if ( $returnValue != '') {\n $returnValue .= \"\\n\";\n }\n/// $label = str_replace( \"'\", \"''\", $label);\n $label = str_replace( '\"', '\\\"', $label);\n $returnValue .= ' $labelManager->addLabel( \"[error_'.$fieldName.']\", \"'.$label.'\", \"en\" );';\n \n }\n \n if ( $returnValue != '') {\n $returnValue .= \"\\n\";\n }\n \n return $returnValue;\n \n }",
"protected function _getInputFieldValueFromLabel( $aField ) { \n \n // If the value key is explicitly set, use it. But the empty string will be ignored.\n if ( isset( $aField['value'] ) && $aField['value'] != '' ) { return $aField['value']; }\n \n if ( isset( $aField['label'] ) ) { return $aField['label']; }\n \n // If the default value is set,\n if ( isset( $aField['default'] ) ) { return $aField['default']; }\n \n }",
"public function getLabelField(ICrugeField $field)\r\n {\r\n\r\n $r = \"\";\r\n $ast = \"\";\r\n $text = ucfirst(CrugeTranslator::t($field->longname));\r\n if ($field->required == 1) {\r\n $r = \" class='required' \";\r\n $ast = \"<span {$r}>*</span>\";\r\n }\r\n\r\n return \"<label {$r}>{$text} {$ast}</label>\";\r\n }",
"public function getLabel()\n\t{\n\t\treturn $this->get('label');\n\t}",
"public function get_label();",
"public function get_label();",
"public function getLabel($fieldName) {\n\t\t$result = '';\n\t\tif ($this->hasLabel($fieldName)) {\n\t\t\t$field = $this->getField($fieldName);\n\t\t\t$result = \\TYPO3\\CMS\\Extbase\\Utility\\LocalizationUtility::translate($field['label'], '');\n\t\t}\n\t\treturn $result;\n\t}",
"public function getLabel(): Label\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->getData(self::LABEL);\n }",
"function field_views_field_label($field_name) {\n $label_counter = array();\n $all_labels = array();\n // Count the amount of instances per label per field.\n $instances = field_info_instances();\n foreach ($instances as $entity_name => $entity_type) {\n foreach ($entity_type as $bundle) {\n if (isset($bundle[$field_name])) {\n $label_counter[$bundle[$field_name]['label']] = isset($label_counter[$bundle[$field_name]['label']]) ? ++$label_counter[$bundle[$field_name]['label']] : 1;\n $all_labels[$entity_name][$bundle[$field_name]['label']] = TRUE;\n }\n }\n }\n if (empty($label_counter)) {\n return array($field_name, $all_labels);\n }\n // Sort the field lables by it most used label and return the most used one.\n arsort($label_counter);\n $label_counter = array_keys($label_counter);\n return array($label_counter[0], $all_labels);\n}",
"function acf_render_field_label($field)\n{\n}",
"function fieldLabel($field, $option = [])\n{\n if (!empty($option['label'])) {\n return $option['label'];\n }\n\n return ucfirst($field);\n}",
"public function fieldLabel($field, $short = false) {\n\t\tif (strstr($field, \".\")) {\n\t\t\t// use the path to get to the data poing\n\t\t\t$fieldParts = explode(\".\", $field);\n\t\t\t$key = array_pop($fieldParts);\n\t\t\t\n\t\t\t// add the field parts to the entityPath to get the correct model\n\t\t\tEntity::_setEntityPath($fieldParts);\n\t\t} else {\n\t\t\t$key = $field;\n\t\t\t$fieldParts = array();\n\t\t}\n\t\t\n\t\t$model = Entity::currentPathClass();\n\t\t\n\t\tEntity::_revertEntityPath(count($fieldParts));\n\t\t\n\t\t// TODO: Generalize this so to get the model if it's already loaded by previous calls\n\t\tApp::uses($model, \"Model\");\n\t\t\n\t\tif (class_exists($model)) {\n\t\t\t$types = $this->entityFields($model);\n\t\t} else {\n\t\t\treturn $key;\n\t\t}\n\t\t\n\t\t// if field is not defined in db, and it's not a defined html helper func, then just print whatever it is the key\n\t\tif (!isset($types[$key]) ) {\n\t\t\treturn $key;\n\t\t}\n\t\t\n\t\t// TODO: load configs using uiapphelper's load model config method\n\t\tif (!isset($configs[$model])) {\n\t\t\ttry {\n\t\t\t\tConfigure::load($model, \"objects\");\n\t\t\t\t$configs[$model] = Configure::read(\"$model.Fields\");\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$configs[$model] = array();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (@is_string($configs[$model][$key])) {\n\t\t\treturn $configs[$model][$key];\n\t\t} elseif (@is_array($configs[$model][$key]) && isset($configs[$model][$key]['label'])) {\n\t\t\tif ($short && isset($configs[$model][$key]['shortLabel']))\n\t\t\t\treturn $configs[$model][$key]['shortLabel'];\n\t\t\telse\n\t\t\t\treturn $configs[$model][$key]['label'];\n\t\t} else {\n\t\t\treturn Inflector::humanize(Inflector::underscore($key));\n\t\t}\n\t}",
"public function get_label() {\n\t\treturn $this->label;\n\t}",
"function getLabelFromId($id) {\n return 'field_'.$id;\n }",
"function ihc_get_custom_field_label($slug=''){\n\t $data = get_option('ihc_user_fields');\n\t if ($data){\n\t \t $key = ihc_array_value_exists($data, $slug, 'name');\n\t\t if (isset($data[$key]) && isset($data[$key]['label'])){\n\t\t \treturn $data[$key]['label'];\n\t\t }\n\t }\n\t return '';\n}",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label;\n }",
"public function getLabel() {\n return $this->label;\n }",
"public function getLabel() {\n return $this->label;\n }",
"function form__label($field, $text = '') {\n if(empty($text)) {\n $text = ucfirst(str_replace('_', ' ', $field));\n }\n\n return '<label for=\"' . form__field_id($field) . '\">' . $text . '</label>';\n}",
"public function getLabel() {\n return $this->label;\n }",
"public function getLabel() {\n return $this->label;\n }",
"public function getLabel()\n {\n return $this->label ?: $this->getName();\n }",
"function getSingleLabel($fieldConf, $rawLabelOnly = FALSE) {\n\t\tglobal $TCA;\n\n\t\t$output = '';\n\t\t$icons = '';\n\n\t\tswitch ($fieldConf['mode']) {\n\t\t\tcase 'tca':\n\t\t\t\tif (isset($fieldConf['label'])) {\n\t\t\t\t\t$label = $this->LANG->sL ($fieldConf['label']);\n\t\t\t\t} else {\n\t\t\t\t\t\t// Load TCA configuration for the given field:\n\t\t\t\t\t$table = isset ($fieldConf['table']) ? $fieldConf['table'] : $this->conf['defaultTable'];\n\t\t\t\t\tt3lib_div::loadTCA($table);\n\t\t\t\t\t$tcaFieldConf = $TCA[$table]['columns'][$fieldConf['name']]['config'];\n\t\t\t\t\t$label = $this->LANG->sL($TCA[$table]['columns'][$fieldConf['name']]['label']);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 'manual':\n\t\t\t\t$table = $fieldConf['table'];\n\t\t\t\t$tcaFieldConf = $fieldConf['config'];\n\t\t\t\t$label = $this->LANG->sL ($fieldConf['label']);\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$output = $fieldConf['name'];\n\t\t}\n\n\t\t$id = isset ($fieldConf['overridename']) ? $fieldConf['overridename'] : $this->prefixId.'[data]['.$fieldConf['table'].']['.$fieldConf['name'].']';\n\t\tif (!$rawLabelOnly) {\n\t\t\t$label = htmlspecialchars($label);\n\n\t\t\t\t// Render required icon if neccesary:\n\t\t\t$label = stristr($tcaFieldConf['eval'], 'required') ? $this->pObj->cObj->wrap($label, $this->labelWraps['fieldRequired']) : $label;\n\n\t\t\t\t// Render evaluation error wrap if neccessary:\n\t\t\t$label = isset($this->currentEvalErrors[$table.'|'.$fieldConf['name']]) ? $this->pObj->cObj->wrap($label, $this->labelWraps['fieldEvalError']) : $label;\n\n\t\t\t\t// Render the label:\n\t\t\tif (intval($fieldConf['config']['tx_frontendformslib_swaphorizontally'])) {\n\t\t\t\t$output .= '<label for=\"'.$id.'\" class=\"tx-frontendformslib-label tx-frontendformslib-label-switched\">'.$label.'</label>';\n\t\t\t} else {\n\t\t\t\t$output .= '<label for=\"'.$id.'\" class=\"tx-frontendformslib-label tx-frontendformslib-label-normal\">'.$label.'</label>';\n\t\t\t}\n\t\t} else {\n\t\t\t$output = $label;\n\t\t}\n\n\t\treturn $output;\n\t}",
"public function label($field, $label = NULL)\n\t{\n\t\tif ($label === NULL AND ($field !== TRUE OR $field !== '*') AND ! isset($this->labels[$field]))\n\t\t{\n\t\t\t// Set the field label to the field name\n\t\t\t$this->labels[$field] = ucfirst(preg_replace('/[^\\pL]+/u', ' ', $field));\n\t\t}\n\t\telseif ($label !== NULL)\n\t\t{\n\t\t\t// Set the label for this field\n\t\t\t$this->labels[$field] = $label;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function getLabel() {\n\t\treturn $this->label;\n\t}",
"public function getLabel() {\n\t\treturn $this->label;\n\t}",
"public function getLabel() {\n\t\treturn $this->label;\n\t}",
"public function getLabel() {\n\t\treturn $this->label;\n\t}",
"public function getField( $aField ) {\r\n \r\n $_sPath = $this->getElement( $aField, array( 'attributes', 'value' ), '' );\r\n $_aBaseAttributes = $this->_getBaseAttributes( $aField );\r\n \r\n return\r\n $aField[ 'before_label' ]\r\n . \"<div class='fen-input-label-container fen-input-container {$aField[ 'type' ]}-field'>\" \r\n . \"<label for='{$aField[ 'input_id' ]}'>\"\r\n . $aField[ 'before_input' ]\r\n . $this->getAOrB(\r\n $aField[ 'label' ] && ! $aField[ 'repeatable' ],\r\n \"<span \" . $this->getLabelContainerAttributes( $aField, 'fen-input-label-string' ) . \">\" \r\n . $aField[ 'label' ] \r\n . \"</span>\", \r\n '' \r\n )\r\n . \"<input \" . $this->getAttributes( $this->_getPathInputAttributes( $aField, $_sPath, $_aBaseAttributes ) ) . \" />\" \r\n . $aField[ 'after_input' ]\r\n . \"<div class='repeatable-field-buttons'></div>\" \r\n . \"</label>\"\r\n . \"</div>\" \r\n . $aField[ 'after_label' ]\r\n . $this->_getRemoveButtonScript( \r\n $aField[ 'input_id' ], \r\n $this->getElementAsArray( $aField, array( 'attributes', 'remove_button' ) ) \r\n + $_aBaseAttributes,\r\n $aField[ 'type' ] // path \r\n )\r\n . $this->_getSelectButtonScript( \r\n $aField[ 'input_id' ], \r\n $aField[ 'repeatable' ], \r\n $this->getElementAsArray( $aField, array( 'attributes', 'select_button' ) )\r\n + $_aBaseAttributes\r\n )\r\n . $this->_getSelectorElement( $aField[ 'input_id' ], $aField[ 'options' ] )\r\n ;\r\n\r\n }",
"public function getLabel()\n {\n return Translation::get(($this->label ? : $this->name));\n }",
"public function getLabel()\n {\n return $this->_label;\n }",
"public function getLabel()\n {\n return $this->_label;\n }",
"public function label($name) {\n\t\tif(!$this->field) return '';\n\t\treturn $this->field->type->getLabel($this->field, $name); \n\t}",
"public function getLabel()\n\t{\t\t\t\n\t\treturn $this->label;\n\t}",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"function getLabelField() \n {\n return \"No Field Label Marked\";\n }",
"public function getLabel() {\n return $this->getAttribute('label');\n }",
"function ninja_forms_display_field_label( $field_id, $data ){\n\tglobal $ninja_forms_fields, $ninja_forms_loading, $ninja_forms_processing;\n\n $field = ninja_forms_get_field_by_id( $field_id );\n $form_id = $field['form_id'];\n\n\t$plugin_settings = nf_get_settings();\n\n\tif ( isset ( $ninja_forms_loading ) && $ninja_forms_loading->get_form_ID() == $form_id ) {\n\t\t$field_row = $ninja_forms_loading->get_field_settings( $field_id );\n\t} else if ( isset ( $ninja_forms_processing ) && $ninja_forms_processing->get_form_ID() == $form_id ) {\n\t\t$field_row = $ninja_forms_processing->get_field_settings( $field_id );\n\t}\n\t\n\t$field_type = $field_row['type'];\n\n\tif( isset ( $data['label'] ) ) {\n\t\t$label = stripslashes($data['label']);\n\t} else if ( isset ( $ninja_forms_fields[$field_type]['default_label'] ) ) {\n\t\t$label = $ninja_forms_fields[$field_type]['default_label'];\n\t} else {\n\t\t$label = '';\n\t}\n\n\tif( isset ( $data['label_pos'] ) ) {\n\t\t$label_pos = stripslashes($data['label_pos']);\n\t} else {\n\t\t$label_pos = '';\n\t}\n\n\tif ( isset( $plugin_settings['req_field_symbol'] ) ) {\n\t\t$req_symbol = $plugin_settings['req_field_symbol'];\n\t} else {\n\t\t$req_symbol = '';\n\t}\n\n\tif ( isset ( $data['req'] ) ) {\n\t\t$req = $data['req'];\n\t} else {\n\t\t$req = '';\n\t}\n\n\tif ( isset ( $data['display_label'] ) ) {\n\t\t$display_label = $data['display_label'];\n\t} else {\n\t\t$display_label = true;\n\t}\n\n\t$label_class = '';\n\n\t$label_class = apply_filters( 'ninja_forms_label_class', $label_class, $field_id );\n\n\tif ( $display_label ) {\n\t\tif ( $req == 1 && $req_symbol != '' && $label_pos != 'inside' ) {\n\t\t\t$req_span = \"<span class='ninja-forms-req-symbol'>$req_symbol</span>\";\n\t\t} else {\n\t\t\t$req_span = '';\n\t\t}\n\t\t?>\n\t\t<label for=\"ninja_forms_field_<?php echo $field_id;?>\" id=\"ninja_forms_field_<?php echo $field_id;?>_label\" class=\"<?php echo $label_class;?>\"><?php echo $label;?> <?php echo $req_span;?>\n\t\t<?php\n\t\tif ( $label_pos != 'left' ) {\n\t\t\tdo_action( 'ninja_forms_display_field_help', $field_id, $data );\n\t\t}\n\t\t?>\n\t\t</label>\n\t\t<?php\n\t}\n}",
"public function getLabel()\n {\n return $this->sLabel;\n }",
"public function get_label() {\n return $this->_label;\n }",
"public function getLabel()\n {\n return $this->_label;\n }",
"function getLabel(){\r\n\t\treturn $this->label;\r\n\t}",
"public function label()\n {\n return $this->label;\n }",
"public function get_label()\n\t{\n\t\treturn $this->_label;\n\t}",
"public function getLabel()\n\t{\n\t\treturn $this->_label;\n\t}",
"function getLabelField()\n {\n return 'person_fname';\n }",
"public function getLabel(): string\n {\n return $this->label;\n }",
"public function getLabel(): string\n {\n return $this->label;\n }",
"public function getLabel(): string\n {\n return $this->label;\n }",
"public function getLabel(): string\n {\n return $this->label;\n }",
"public function get_label(){ return $this->label; }",
"public function getLabel(): string\n {\n return $this->_label;\n }",
"public function get_field_name();",
"public function getLabel(): string {\n return $this->label;\n }",
"public function GetLabel();",
"public function getAttrLabel($fieldName) {\n\n list($model, $attr) = $this->instance->getModelAndAttr($fieldName);\n $field = $model->getField ($attr);\n if ($field) {\n return $field->attributeLabel;\n }\n\n return ucfirst($fieldName);\n\n }",
"public function getLabel()\n\t{\n\t\t$label = parent::getLabel();\n\t\t$label->for = $this->getId();\n\t\treturn $label;\n\t}",
"public function getFrontendLabel();",
"public function get_field( string $field ) {\n\t\tif ( array_key_exists( $field, $this->data ) ) {\n\t\t\treturn $this->data[ $field ];\n\t\t}\n\n\t\treturn '';\n\t}",
"public function label_to_field($label) {\n\t\t\treturn preg_replace ( \"/[^a-zA-Z0-9_]/\" , \"_\" , $label);\n\t\t}",
"function get($field)\n {\n $fieldLc = strtolower($field);\n if (array_key_exists($fieldLc, self::$translate))\n $fieldLc = self::$translate[$fieldLc];\n\n switch($fieldLc)\n { // act on field name\n case 'name':\n {\n return $this->getName();\n }\n\n case 'nativename':\n {\n return $this->getNativeName();\n }\n\n case 'sorry':\n {\n return $this->getSorry();\n }\n\n case 'cc':\n {\n if (array_key_exists('cc', $this->extras))\n return $this->extras['cc'];\n else\n return null;\n }\n\n\n default:\n { // other fields\n return parent::get($fieldLc);\n } // other fields\n } // act on field name\n }",
"function acf_get_field_type_label($name = '')\n{\n}",
"protected function get_metafield_name($label) {\n\t\t\tif(!$options = $this->options) {\n\t\t\t\t$options = $this->pro_class->options;\n\t\t\t}\n\n\t\t\tforeach($options['metafields'] as $metafield => $value) {\n\t\t\t\tif($value['label'] == $label) {\n\t\t\t\t\treturn $metafield;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $label; // if no match found, try to use the label\n\t\t}",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();"
] | [
"0.81255037",
"0.80604076",
"0.76362646",
"0.75166166",
"0.7397318",
"0.7335072",
"0.727692",
"0.7222852",
"0.70932376",
"0.7087718",
"0.69987214",
"0.6998191",
"0.69718045",
"0.69003105",
"0.68653476",
"0.68581426",
"0.68581426",
"0.6847359",
"0.674416",
"0.6740811",
"0.6689899",
"0.66538894",
"0.6613723",
"0.66055954",
"0.6603944",
"0.6603431",
"0.6584419",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.6579765",
"0.65765786",
"0.65765786",
"0.6574635",
"0.6569438",
"0.6569438",
"0.6551839",
"0.6545478",
"0.6530899",
"0.6526593",
"0.6526593",
"0.6526593",
"0.6526593",
"0.6512495",
"0.64960897",
"0.64789295",
"0.64789295",
"0.6436434",
"0.64273655",
"0.6426712",
"0.6426712",
"0.6426712",
"0.6426712",
"0.6426712",
"0.6426712",
"0.6419435",
"0.6419424",
"0.64112884",
"0.64097416",
"0.6383747",
"0.6376763",
"0.63759553",
"0.6373966",
"0.6365379",
"0.6356938",
"0.63546276",
"0.63546276",
"0.63546276",
"0.63546276",
"0.6341913",
"0.6341791",
"0.6335079",
"0.6329421",
"0.6301123",
"0.62900084",
"0.6262834",
"0.6254598",
"0.6224246",
"0.62205654",
"0.6202025",
"0.62001",
"0.61991274",
"0.61825335",
"0.61825335",
"0.61825335",
"0.61825335",
"0.61825335",
"0.61825335",
"0.61825335",
"0.61825335"
] | 0.6741662 | 19 |
Get array of Labels. | public function getLabels(): array
{
return $this->labels;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getLabels(): array;",
"public function labels()\n {\n return array();\n }",
"public function labels(): array\n {\n return [];\n }",
"public function getLabels()\n {\n $headers = $this->getDefaultHeaders();\n $response = $this->client->request(\n 'GET',\n $this->api . $this->repo . \"/labels\",\n array(\n \"headers\" => $headers\n )\n );\n \n if ($response->getStatusCode() == 200) {\n $body = $response->getBody();\n $body = json_decode($body, true);\n return $body;\n }\n\n return array();\n }",
"public function getLabels();",
"public function getLabels();",
"public function getLabels();",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return $this->labels;\n }",
"public function getLabels()\n {\n return array_values(array_unique($this->labels));\n }",
"public function getLabels() {\r\n return $this->labels;\r\n }",
"public function getLabels()\n {\n return isset($this->labels) ? $this->labels : null;\n }",
"public static function labelsPlainArray()\n\t{\n\t\t$rows = DB::table('labels')->where(\"lang\", \"EN\")->orderBy(\"key\")->get(); // DV0001\n\t\tforeach($rows as $row) {\n\t\t\t$output[] = $row->key;\n\t\t}\n\t\treturn $output;\n\t}",
"public function getLabels()\n {\n if (is_null($this->labels)) {\n $this->labels = collect();\n $testlabel_models = TestLabel::where([\n ['buildid', '=', $this->buildid],\n ['outputid', '=', $this->outputid],\n ])->get();\n foreach ($testlabel_models as $testlabel_model) {\n $label = new Label();\n $label->Id = $testlabel_model->labelid;\n $text = $label->GetText();\n $this->labels->put($text, $label);\n }\n }\n return $this->labels;\n }",
"public function getLabelsList(){\n return $this->_get(6);\n }",
"public function getLabelsList(){\n return $this->_get(2);\n }",
"private function getYLabelsArray() {\n\t\treturn $this->yLabelsArray;\n\t}",
"private function getXLabelsArray() {\n\t\treturn $this->xLabelsArray;\n\t}",
"public function getLabels(): ?array {\n $val = $this->getBackingStore()->get('labels');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Label::class);\n /** @var array<Label>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'labels'\");\n }",
"public static function getAttributeList() {\n $model = self::_getDataType();\n $LblNm = $model::_getLabelName();\n $table = self::_getDbTable();\n $rs = $table->fetchAll(\n $table->select($LblNm)\n );\n $labels = array();\n foreach($rs as $row) {\n array_push($labels, $row->$LblNm);\n }\n return $labels;\n }",
"public function labels()\n {\n return new Labels($this->getClient());\n }",
"public function getCustomLabels() {\r\n return $this->labels->getItems();\r\n }",
"public function listLabels()\n {\n $this->authenticate();\n $labels = $this->client->api('projects')->labels($this->issueIntegrator->getProjectName());\n\n return $this->mapLabels($labels);\n }",
"private function getLabelsArray()\n{\n \n $returnArray=array();\n \n //set up labels array.\n if (isset($this->tableStructure)) {\n foreach ($this->tableStructure as $ind => $fieldArray) {\n $returnArray[$fieldArray['columnName']]=isset($fieldArray['label']) ? $fieldArray['label'] : $fieldArray['columnName'];\n }\n }\n \n return $returnArray; \n}",
"public function getLabelAnnotations()\n {\n return $this->label_annotations;\n }",
"public function getLabels() {\n\t\tif ($this->labels === null) {\n\t\t\t$this->labels = new LabelList();\n\t\t\t$this->labels->getConditionBuilder()->add(\"label.objectTypeID IN (?)\", array(array_keys($this->cache['objectTypes'])));\n\t\t\t$this->labels->sqlLimit = 0;\n\t\t\t$this->labels->readObjects();\n\t\t}\n\t\t\n\t\treturn $this->labels;\n\t}",
"public function getLabels()\n\t{\n\t\t// Check for existence of a model\n\t\tif (NULL === ($model = $this->getModel())) {\n\t\t\tthrow new Scil_Services_Model_Decorator_Exception(__METHOD__.' no model available to process!');\n\t\t}\n\n\t\t// Get the fields\n\t\t$fields = $model->getFieldsAsContainer();\n\t\t$labels = array();\n\n\t\tforeach ($fields as $key => $value) {\n\t\t\t$labels[$key] = isset($this->_labels[$key]) ? $this->_labels[$key] : $key;\n\t\t}\n\n\t\treturn $this->_labels;\n\t}",
"public function defaultLabels(): array;",
"public function labels(): array\n {\n return [\n 'firstname' => 'First Name',\n 'lastname' => 'Last Name',\n 'email' => 'Email',\n 'password' => 'Password',\n 'confirmPassword' => 'Confirm Password'\n ];\n }",
"public function getLabels($repo) {\n echo \"GET /repos/$repo/labels\\n\";\n $r = $this->api()->get(\"/repos/$repo/labels\", [], [], ['throw' => true]);\n\n $labels = $r->getBody();\n $labels = array_column($labels, null, 'name');\n $labels = array_change_key_case($labels);\n return $labels;\n }",
"public function getVariableLabelList() {\n return $this->_get(8);\n }",
"public function getLabelsAttribute()\n {\n return (get_taxonomy($this->name))->labels;\n }",
"public function labels(array $labels);",
"public function getLabels($field_names=array()){\n\t\tif(!is_array($field_names)){\n\t\t\t$field_names = $this->getFields();\n\t\t}\n\t\t\n\t\t$labels = array();\n\t\tforeach($field_names as $field_name){\n\t\t\tif(isset($this->Fields[$field_name])){\n\t\t\t\t$labels[$field_name] = $this->Fields[$field_name]->label;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $labels;\n\t}",
"public function labels()\n {\n return $this->morphToMany(\\VentureDrake\\LaravelCrm\\Models\\Label::class, config('laravel-crm.db_table_prefix').'labelable');\n }",
"public function getLabels ()\n {\n $origin = $this->getOriginCompanies();\n\n $labels = $this->tabla . \"_etiqueta\";\n $sql = \"SELECT uid_etiqueta FROM {$labels} WHERE uid_empresa IN ({$origin->toComaList()})\";\n $array = $this->db->query($sql, \"*\", 0, \"etiqueta\");\n\n if ($array && count($array)) {\n return new ArrayObjectList($array);\n }\n\n return new ArrayObjectList;\n }",
"public function labels() : array\n {\n return [\n 'username' => 'username',\n 'email' => 'email address',\n 'password' => 'password',\n ];\n }",
"public function labels()\r\n {\r\n \treturn array(\r\n\t\t\t 'id_post'\t\t=> 'Id post',\r\n\t\t\t 'id_user'\t\t=> 'Id user',\r\n\t\t\t 'id_category'\t=> 'Id category',\r\n\t\t\t 'id_location'\t=> 'Id location',\r\n\t\t\t 'type'\t\t\t=> 'Type',\r\n\t\t\t 'title'\t\t\t=> 'Title',\r\n\t\t\t 'seotitle'\t\t=> 'SEO title',\r\n\t\t\t 'description'\t=> 'Description',\r\n\t\t\t 'adress'\t\t=> 'Adress',\r\n\t\t\t 'price'\t\t\t=> 'Price',\r\n\t\t\t 'phone'\t\t\t=> 'Phone',\r\n\t\t\t 'ip_address'\t=> 'Ip address',\r\n\t\t\t 'created'\t\t=> 'Created',\r\n\t\t\t 'published'\t\t=> 'Published',\r\n\t\t\t 'status'\t\t=> 'Status',\r\n\t\t\t 'has_images'\t=> 'Has images',\r\n\t\t\t );\r\n }",
"public function attributeLabels()\n {\n return [];\n }",
"public function getSMSLabels()\n {\n $urllink = \"http://api.onehop.co/v1/labels/\";\n $ch = curl_init($urllink);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_TIMEOUT, 4);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n 'Accept: ',\n 'apiKey:' . $this->smsAPI\n ));\n $output = Tools::jsonDecode(curl_exec($ch));\n curl_close($ch);\n $labelArr = array();\n $labelInfo = array();\n if ($output && isset($output->labelsList) && $output->labelsList) {\n $output->accountId = '';\n $labelInfo['acountid'] = $output->accountId;\n $labelArr[] = array(\n 'id_option' => '',\n 'name' => 'Select Label'\n );\n foreach ($output->labelsList as $labelVal) {\n $labelArr[] = array(\n 'id_option' => $labelVal,\n 'name' => $labelVal\n );\n }\n } elseif ($output && isset($output->message)) {\n $labelArr[] = array(\n 'id_option' => '',\n 'name' => 'No label available'\n );\n }\n $labelInfo['labellist'] = $labelArr;\n return $labelInfo;\n }",
"public function getLabelsOnAxis() {\r\n return $this->labels->bOnAxis;\r\n }",
"public function labels($project_id)\n {\n return $this->get($this->getProjectPath($project_id, 'labels'));\n }",
"public static function getColumnLabels(): array {\n return array_values(self::attributeLabels());\n }",
"public function getLabelData()\n {\n $query = '\nSELECT\n d.id, CONCAT(d.fornavn, \" \",\n d.efternavn),\n w.navn AS wear,\n dwp.antal,\n dwp.size\nFROM\n deltagere AS d\n JOIN deltagere_wear AS dwp ON dwp.deltager_id = d.id\n JOIN wearpriser AS wp ON wp.id = dwp.wearpris_id\n JOIN wear AS w on w.id = wp.wear_id\nWHERE\n w.id IN (7, 18, 21, 22, 28, 29, 31)\nORDER BY\n d.id, w.navn';\n\n $labels = [];\n\n foreach ($this->db->query($query) as $row) {\n if (!isset($labels[$row['id']])) {\n $labels[$row['id']] = [\n 'name' => e('ID: ' . $row['id']),\n 'wear' => [],\n ];\n }\n\n $labels[$row['id']]['wear'][] = e(sprintf('%u %s - %s', $row['antal'], $row['size'], $row['wear']));\n\n }\n\n $groups = [];\n\n while (count($labels) > 0) {\n $groups[] = array_splice($labels, 0, 8);\n }\n\n return $groups;\n }",
"public function getStoreLabels();",
"public function generateLabels();",
"public function getPackagesAsLabels($status = TRUE) {\n $labels = [];\n foreach ($this->getPackagesByStatus($status) as $package) {\n $labels[$package->id()] = $package->label();\n }\n return $labels;\n }",
"public function getShipmentLabels()\n {\n return $this->shipmentLabels ?: [];\n }",
"function getInheritableMdLabelArray() {\n $mdla = array();\n\n // Status\n $md = $this->getHardCodedMetadataFromLabel('status');\n $this->appendHardCodedMetadataParams($md);\n if($md->isUsed()) {\n $mdla['status'] = 'status';\n }\n\n // Real metadata\n $dao = $this->getDao();\n $dar = $dao->searchByGroupId($this->groupId, true, array());\n while($dar->valid()) {\n $row = $dar->current();\n $mdla[$row['label']] = $row['label'];\n $dar->next();\n }\n return $mdla;\n }",
"public static function getAttributeTypeList() {\n $model = self::_getDataType();\n $LblNm = $model::_getLabelName();\n $table = self::_getDbTable();\n $rs = $table->fetchAll(\n $table->select($LblNm)\n );\n $labels = array();\n foreach($rs as $row) {\n array_push($labels, $row->$LblNm);\n }\n return $labels;\n }",
"public function to_array()\n\t{\n\t\treturn array(\n\t\t\t'id'\t\t=> $this->get_id(),\n\t\t\t'label'\t\t=> $this->get_label()\n\t\t);\n\t}",
"public function labels()\n {\n }",
"private function getLabels(Repository $repository)\n {\n $allLabels = $this->labelsApi->getAllLabelsForRepository($repository);\n $closure = function ($s) {\n return strtolower($s);\n };\n\n return array_combine(array_map($closure, $allLabels), $allLabels);\n }",
"abstract function labels();",
"public function labels() {\n\t\treturn array(\n\t\t\t'id' => 'ID',\n\t\t\t'name' => 'Name',\n\t\t\t'email' => 'Email',\n\t\t\t'phone' => 'Phone',\n\t\t\t'message' => 'Message',\n\t\t\t'date_submitted' => 'Date Submitted',\n\t\t\t'ip_address' => 'IP Address',\n\t\t);\n\t}",
"public function actionLabels() {\n return Label::getList();\n }",
"public static function get_default_labels()\n {\n }",
"public static function get_default_labels()\n {\n }",
"protected function getLocalizedRandomLabels()\n {\n $labels = [];\n\n foreach ($this->locales as $locale) {\n $labels[$locale->getCode()] = $this->faker->sentence(2);\n }\n\n return $labels;\n }",
"public function toArray()\n {\n $array = [];\n foreach ($this->toOptionArray() as $item) {\n $array[$item['value']] = $item['label'];\n }\n return $array;\n }",
"public function toArray()\n {\n $array = [];\n foreach ($this->toOptionArray() as $item) {\n $array[$item['value']] = $item['label'];\n }\n return $array;\n }",
"function wpsl_labels() {\n\n $labels = array(\n 'search',\n 'search_btn',\n 'preloader',\n 'radius',\n 'no_results',\n 'results',\n 'more',\n 'directions',\n 'no_directions',\n 'back',\n 'street_view',\n 'zoom_here',\n 'error',\n 'phone',\n 'fax',\n 'email',\n 'url',\n 'hours',\n 'start',\n 'limit',\n 'category',\n 'category_default'\n );\n\n return $labels;\n}",
"private function _get_labels( $project ) {\n\n\t\tif ( ! empty( $project['_links']['labels'] ) ) {\n\n\t\t\t$labels_link = $project['_links']['labels'];\n\n\t\t\t$request = new Gitlab();\n\t\t\t$gitlab = $request->init_request();\n\n\t\t\t$labels = [];\n\t\t\t$page_index = 1;\n\t\t\t$total = 0;\n\n\t\t\tdo {\n\n\t\t\t\t$response = $gitlab->get( \"$labels_link?per_page=50&page=$page_index&sort=asc\" );\n\t\t\t\t$response_arr = json_decode( $response->body, true );\n\n\t\t\t\t$labels = array_merge( $labels, $response_arr );\n\n\t\t\t\t$page_index ++;\n\t\t\t\t$total += count( $response_arr );\n\n\t\t\t} while ( count( $response_arr ) > 0 );\n\n\t\t\treturn $labels;\n\n\t\t}\n\n\t}",
"public static function getLabels($type = null)\n {\n $labels = [];\n switch ($type) {\n case 'post':\n $labels['singular'] = 'Post';\n $labels['multiple'] = 'Posts';\n break;\n case 'category':\n $labels['singular'] = 'Category';\n $labels['multiple'] = 'Categories';\n break;\n case 'author':\n $labels['singular'] = 'Author';\n $labels['multiple'] = 'Authors';\n break;\n default:\n $labels['singular'] = 'Page';\n $labels['multiple'] = 'Pages';\n break;\n }\n return $labels;\n }",
"public function getLabelExtendedData()\n {\n $data = array();\n $data['label'] = $this->getNazwa();\n $data['subtext'] = $this->getIndeks();\n\n return $data;\n }",
"function GetLabelAxial($nbSprints){\n\t\t$labels = [];\n\t\tfor($i = 0 ; $i<=$nbSprints; $i++)\n\t\t\t$labels[$i] = \"Sprint \".$i;\n\t\treturn $labels;\n\t}",
"public function getVocabularyAnnotations(): array\n {\n return [];\n }",
"public function toKeyArray()\r\n {\r\n $result = [];\r\n $options = $this->toOptionArray();\r\n foreach ($options as $option) {\r\n $result[$option['value']] = $option['label'];\r\n }\r\n return $result;\r\n }",
"public function labels(): array\n {\n return [\n 'db.driver' => __('Database type'),\n 'db.host' => __('Host'),\n 'db.username' => __('User name'),\n 'db.password' => __('User password'),\n 'db.database' => __('Database name'),\n 'db.prefix' => __('Table prefix'),\n 'mail.enable' => __('Use mail features'),\n 'mail.from' => __('From'),\n 'mail.dsn' => __('DSN connection'),\n 'singleLanguage' => __('Default language'),\n 'multiLanguage' => __('Multi language'),\n 'user.email' => __('Email'),\n 'user.password' => __('Password'),\n 'user.repassword' => __('Repeat password'),\n 'mainpage' => __('Main page')\n ];\n }",
"public function labels()\n {\n return [\n 'name' => __('Name'),\n 'email' => __('Email'),\n 'message' => __('Message'),\n 'captcha' => __('Captcha')\n ];\n }",
"private function getCategoriesLabel(array $categories) : array\n {\n /** @var JobParameters $parameters */\n $parameters = $this->jobParameters;\n $labels = [];\n foreach ($this->categoryRepository->getCategoriesByCodes($categories) as $category) {\n $labels[] = $category->setLocale($parameters->get('filters')['structure']['locales'][0])->getLabel();\n }\n\n return $labels;\n }",
"public function getLabels(Request $request, $orderIds): array {\n $orderIds = $this->processOrderIds($request, $orderIds);\n $this->loggerContract\n ->info(\n TranslationHelper::getLoggerKey('getGeneratedLabels'), [\n 'additionalInfo' => ['orderIds' => $orderIds],\n 'method' => __METHOD__\n ]\n );\n\n return $this->shipmentRegisterService->getGeneratedLabels($orderIds);\n }",
"public function toArray()\n {\n return [\n 'label' => $this->label,\n 'value' => $this->value,\n ];\n }",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();",
"public function getLabel();"
] | [
"0.8889515",
"0.8322369",
"0.8316176",
"0.82619953",
"0.80908847",
"0.80908847",
"0.80908847",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7871494",
"0.7843284",
"0.7805255",
"0.7712425",
"0.75955886",
"0.7582359",
"0.73109907",
"0.7289066",
"0.72544926",
"0.7138668",
"0.7061644",
"0.7030904",
"0.70136034",
"0.69871765",
"0.6970953",
"0.6954756",
"0.6952977",
"0.69284064",
"0.69190794",
"0.68255097",
"0.67816836",
"0.675622",
"0.6749083",
"0.6701782",
"0.66515493",
"0.65356183",
"0.6504866",
"0.6489135",
"0.64726645",
"0.64482933",
"0.64441615",
"0.6371984",
"0.6352934",
"0.6335564",
"0.6320517",
"0.6270114",
"0.6266044",
"0.6257562",
"0.62546587",
"0.62264174",
"0.6208609",
"0.62068486",
"0.6203804",
"0.6199509",
"0.61976504",
"0.6190888",
"0.61399955",
"0.61302066",
"0.6129153",
"0.6129153",
"0.6090244",
"0.60864294",
"0.60864294",
"0.60749316",
"0.60736734",
"0.6065508",
"0.6032662",
"0.6007037",
"0.6003121",
"0.59549195",
"0.59241074",
"0.5901155",
"0.5870686",
"0.5846793",
"0.58337456",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415",
"0.58285415"
] | 0.8456396 | 1 |
Check if a field has a replacement pattern. | public function hasFieldReplacement(string $field): bool
{
return isset($this->field_replacements[$field]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function hasPregReplace() {\n\t\treturn isset($this->replaces);\n\t}",
"public static function isFieldValid(Field $field): bool\n {\n return $field instanceof PatternField;\n }",
"public function hasReplacement( string $name ) : bool;",
"public function canResolveField($field)\n {\n return false === strpos($field, '.');\n }",
"public function has($_field);",
"public function already_appended($pattern)\n\t{\n\t\treturn (bool)($this->that->preg_match_PLAIN($pattern) OR $this->that->preg_match_HTML($pattern)); \n\t}",
"function pfb_match_filter_field($flent, $fields) {\n\tif (isset($fields)) {\n\t\tforeach ($fields as $key => $field) {\n\t\t\tif (empty($field)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (strpos($field, '!') !== FALSE) {\n\t\t\t\t$field = substr($field, 1);\n\t\t\t\t$field_regex = str_replace('/', '\\/', str_replace('\\/', '/', $field));\n\t\t\t\tif (@preg_match(\"/{$field_regex}/i\", $flent[$key])) {\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$field_regex = str_replace('/', '\\/', str_replace('\\/', '/', $field));\n\t\t\t\tif (!@preg_match(\"/{$field_regex}/i\", $flent[$key])) {\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn TRUE;\n}",
"public function getPatternedField(string $field);",
"public function setPattern($pattern) {}",
"protected function areFieldChangeFunctionsValid() {}",
"function filter_pattern($value)\n {\n global $pattern;\n return !strncmp($pattern, $value, strlen($pattern));\n }",
"public static function is_valid_shortcut($field)\n\t{\n\t\treturn App_Utils_Validation::is_valid_regexp($field, cpf_config('APP.VALIDATION.SHORTCUT_REGEXP'));\n\t}",
"private function matchesPattern($pattern)\n {\n if (preg_match('/' . $pattern . '/u', $this->str)) {\n return true;\n } else {\n return false;\n }\n }",
"public function hasRepeatedStringField()\n {\n return count($this->get(self::REPEATED_STRING_FIELD)) !== 0;\n }",
"public function matches($str, $field)\n\t{\n\t\tif ( ! isset($_POST[$field]))\n\t\t{\n\t\t\treturn FALSE;\t\t\t\t\n\t\t}\n\t\t\n\t\t$field = $_POST[$field];\n\n\t\treturn ($str !== $field) ? FALSE : TRUE;\n\t}",
"function check_replacement ($conn,$data, $final_valid, $defected) {\n\n\tif ($final_valid == \"YES\" AND $defected == \"Defected\") {\n\t\treturn \"VALID\";\n\t}\n\telse {\n\t return \"INVALID\" ; \n\t}\n}",
"function validarNombre($variable, $pattern){\n if (preg_match($pattern, $variable)) {\n return \tTrue;\n }\n return false;\n }",
"function _matches($field, $other_field)\r\n\t{\r\n\t\treturn ($this->{$field} !== $this->{$other_field}) ? FALSE : TRUE;\r\n\t}",
"static public function is_pattern($pattern)\n\t{\n\t\treturn (strpos($pattern, '<') !== false) || (strpos($pattern, ':') !== false);\n\t}",
"protected function replaceField(Field $field){\n }",
"public function hasField($field){\n\t\t#if[compile-time]\n\t\tCoreType::assertString($field);\n\t\t#endif\n\t\t$this->_connect();\n\t\t$fields = $this->_getAttributes();\n\t\treturn in_array($field, $fields);\n\t}",
"public static function isMatchVaribleRegexPattern($value=null)\r\n {\r\n // determines if the variable that can be used\r\n // in the route file meets the regex rule.\r\n return (preg_match('@\\{(.*?)\\}@is',$value)) ? true : false;\r\n }",
"public function hasPlaceholders();",
"public function patternMatches($fieldName,$validation){\n\t\tif (isSet($_SESSION[$fieldName])){\n\t\t\treturn preg_match($validation,$_SESSION[$fieldName]);\n\t\t}\n\t}",
"public function patternExists(string $id) : bool;",
"function isBadPhone( string $field )\r\n {\r\n \r\n return ( array_search( $field, BAD_PHONES ) !== false || !preg_match( ALLOWED_CODES, $field ) ); \r\n }",
"public function is_registered($pattern_name)\n {\n }",
"public function hasField(string $field): bool;",
"public function matches(Pattern $pattern);",
"public function hasValue(string $field): bool;",
"public function fieldExists($fieldName) {}",
"function _valid_match($field, $param = array())\r\n\t{\r\n\t\treturn in_array($this->{$field}, $param);\r\n\t}",
"private function isField($fld)\n {\n return isset($this->columns->{$fld});\n }",
"public function check($field, $exp) {\n\t\treturn (preg_match($exp, $_POST[$field['name']]));\n\t}",
"public function checkForField( $field, $table );",
"function hasField($fieldName);",
"protected static function isField($key) {\n\t\t\treturn array_key_exists($key, static::$_fields);\n\t\t}",
"function test($value) {\n\t\t// php doesn't have g modifier so we remove it if it's there and call preg_match_all()\n\t\tif(strpos($this->modifiers, 'g') !== false){\n\t\t\t$this->modifiers = str_replace('g', '', $this->modifiers);\n\t\t\treturn preg_match_all($this->getRegex(), $value);\n\t\t}\n\t\treturn preg_match($this->getRegex(), $value);\n\t}",
"static public function is_pattern(string $pattern): bool\n\t{\n\t\treturn (strpos($pattern, '<') !== false) || (strpos($pattern, ':') !== false) || (strpos($pattern, '*') !== false);\n\t}",
"public function hasField();",
"function isFieldInTemplate($FIELD_SID, $tpl)\n\t{\n\t\t$check_str1 = '$FORM->ShowInput(\\''.$FIELD_SID.'\\')';\n\t\t$check_str2 = '$FORM->ShowInput(\"'.$FIELD_SID.'\")';\n\n\t\treturn !((strpos($tpl, $check_str1) === false) && (strpos($tpl, $check_str2) === false));\n\n\t}",
"protected function accept_regex() {\n return true;\n }",
"public function __isset( $field )\n {\n return array_key_exists( $field, $this->_original );\n }",
"protected function hasSourceFieldChanged() {\n $source_field_name = $this->getSource()->getConfiguration()['source_field'];\n $current_items = $this->get($source_field_name);\n return isset($this->original) && !$current_items->equals($this->original->get($source_field_name));\n }",
"public function isInvalid($field) {\n return in_array($field, $this->invalid);\n }",
"function _pgsql_field_exists($table, $field) {\n $sql = '\n SELECT\n a.attname,\n pg_catalog.format_type(a.atttypid, a.atttypmod) AS \"Datatype\"\n FROM\n pg_catalog.pg_attribute a\n WHERE\n a.attnum > 0\n AND NOT a.attisdropped\n AND a.attrelid = (\n SELECT c.oid\n FROM pg_catalog.pg_class c\n LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace\n WHERE c.relname ~ ' . \"'^($table)\\$' \n AND pg_catalog.pg_table_is_visible(c.oid)\n )\n AND a.attname = '$field' \";\n $r = db_query($sql);\n $row = db_row($r['result']);\n if($row) {\n return true;\n }\n return false;\n}",
"public function isRegex()\n {\n return filter_var($this->_value, FILTER_VALIDATE_REGEXP);\n }",
"public function patterns_check() {\n $patterns = $this->get_patterns_from_templates();\n $storedpatterns = $this->patterns;\n\n // View patterns.\n $viewupdates = array();\n if (!empty($patterns['view']) or !empty($storedpatterns['view'])) {\n // Stored.\n if (!$viewupdates and !empty($patterns['view']) and empty($storedpatterns['view'])) {\n foreach ($patterns['view'] as $pattern) {\n $viewupdates[] = array(\n 'pattern' => $pattern,\n 'type' => 'view',\n 'problem' => 'Not cached',\n 'dataform' => $this->df->name,\n 'view' => $this->name,\n );\n }\n }\n\n if (!$viewupdates and empty($patterns['view']) and !empty($storedpatterns['view'])) {\n foreach ($storedpatterns['view'] as $pattern) {\n $viewupdates[] = array(\n 'pattern' => $pattern,\n 'type' => 'view',\n 'problem' => 'Not used',\n 'dataform' => $this->df->name,\n 'view' => $this->name,\n );\n }\n }\n\n if (!$viewupdates and $notstored = array_diff($patterns['view'], $storedpatterns['view'])) {\n foreach ($notstored as $pattern) {\n $viewupdates[] = array(\n 'pattern' => $pattern,\n 'type' => 'view',\n 'problem' => 'Not cached',\n 'dataform' => $this->df->name,\n 'view' => $this->name,\n );\n }\n }\n }\n\n // Field patterns.\n $fieldupdates = array();\n if (!empty($patterns['field']) or !empty($storedpatterns['field'])) {\n if (!$fieldupdates and !empty($patterns['field']) and empty($storedpatterns['field'])) {\n foreach ($patterns['field'] as $fieldid => $fieldpatterns) {\n foreach ($fieldpatterns as $pattern) {\n $fieldupdates[] = array(\n 'pattern' => $pattern,\n 'type' => 'field',\n 'problem' => 'Not used',\n 'dataform' => $this->df->name,\n 'view' => $this->name,\n );\n }\n }\n }\n\n if (!$fieldupdates and empty($patterns['field']) and !empty($storedpatterns['field'])) {\n foreach ($storedpatterns['field'] as $fieldid => $fieldpatterns) {\n foreach ($fieldpatterns as $pattern) {\n $fieldupdates[] = array(\n 'pattern' => $pattern,\n 'type' => 'field',\n 'problem' => 'Not used',\n 'dataform' => $this->df->name,\n 'view' => $this->name,\n );\n }\n }\n }\n\n if (!$fieldupdates) {\n foreach ($patterns['field'] as $fieldid => $fieldpatterns) {\n if (empty($storedpatterns['field'][$fieldid])) {\n foreach ($fieldpatterns as $pattern) {\n $fieldupdates[] = array(\n 'pattern' => $pattern,\n 'type' => 'field',\n 'problem' => 'Not used',\n 'dataform' => $this->df->name,\n 'view' => $this->name,\n );\n }\n } else if ($notstored = array_diff($patterns['field'][$fieldid], $storedpatterns['field'][$fieldid])) {\n foreach ($notstored as $pattern) {\n $fieldupdates[] = array(\n 'pattern' => $pattern,\n 'type' => 'field',\n 'problem' => 'Not cached',\n 'dataform' => $this->df->name,\n 'view' => $this->name,\n );\n }\n }\n }\n }\n\n }\n\n // Anything else that looks like a pattern.\n $otherupdates = array();\n // Get the templates text.\n $text = $this->get_templates_text();\n // Remove found patterns from text.\n if (!empty($patterns['view'])) {\n $text = str_replace($patterns['view'], '', $text);\n }\n if (!empty($patterns['field'])) {\n foreach ($patterns['field'] as $fieldpatterns) {\n $text = str_replace($fieldpatterns, '', $text);\n }\n }\n // Find patterns of form ##...## and [[...]].\n preg_match_all(\"/##[^#]+##|\\[\\[[^\\]]+\\]\\]/\", $text, $matches);\n if (!empty($matches[0])) {\n foreach ($matches[0] as $pattern) {\n $otherupdates[] = array(\n 'pattern' => $pattern,\n 'type' => 'Unknown',\n 'problem' => '',\n 'dataform' => $this->df->name,\n 'view' => $this->name,\n );\n }\n }\n\n if ($updates = array_merge($viewupdates, $fieldupdates, $otherupdates)) {\n return $updates;\n }\n\n return null;\n }",
"protected function getValidPattern(): string\n {\n return '/^(?P<type>[\\w\\|\\[\\]]+)(?P<var> \\$\\w+)?$|\\s/';\n }",
"public function hasReplacements()\n\t{\n\t\treturn (bool) $this->replacements;\n\t}",
"function match($field, $value);",
"public function testNonExistingFieldFlag()\n {\n $configNonExistingFieldReturnFalse = json_decode(sprintf(\n $this->regexpConfigStub,\n '/Beer/',\n 'noHaveLaa',\n 'false'\n ), true);\n\n $configNonExistingFieldReturnTrue = json_decode(sprintf(\n $this->regexpConfigStub,\n '/Beer/',\n 'noHaveLaa',\n 'true'\n ), true);\n\n $nonExistingFieldReturnFalseFilter = new Regexp($configNonExistingFieldReturnFalse);\n $nonExistingFieldReturnTrueFilter = new Regexp($configNonExistingFieldReturnTrue);\n\n $this->assertFalse($nonExistingFieldReturnFalseFilter->accept($this->logEvent));\n $this->assertTrue($nonExistingFieldReturnTrueFilter->accept($this->logEvent));\n }",
"public function _is_different($str, $field) {\n $user_id = $this->session->userdata('user')['id'];\n\n // based on is_unique[]\n\t\tsscanf($field, '%[^.].%[^.]', $table, $field);\n\t\t$res = isset($this->db)\n\t\t\t? ($this->db->limit(1)->get_where($table, array($field => $str, 'id !=' => $user_id))->num_rows() === 0)\n : FALSE;\n \n if (!$res) {\n $this->form_validation->set_message('_is_different', 'This {field} is already taken.');\n }\n \n return $res;\n }",
"public function addPregReplace($pattern, $replacement) {\n\t\t$this->replaces[] = array('pattern' => $pattern, 'replacement' => $replacement);\n\t}",
"function str_is($pattern, $value)\n\t{\n\t\treturn Illuminate\\Support\\Str::is($pattern, $value);\n\t}",
"function checkDbFields($fields)\n\t{\n\t\tif (!is_array($fields)) return FALSE;\n\t\tforeach (array('server', 'user', 'db', 'prefix') as $key)\n\t\t{\n\t\t\tif (isset($fields[$key]))\n\t\t\t{\n\t\t\t\tif (strtr($fields[$key],\"';\", ' ') != $fields[$key])\n\t\t\t\t{\n\t\t\t\t\treturn FALSE;\t\t// Invalid character found\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn TRUE;\n\t}",
"public function hasDynamic(string $regex, string $method = null): bool;",
"public function is_unique_update($str, $field){\n $explode = explode('.', $field);\n\n $table = $explode[0];\n $field = $explode[1];\n $field_excluded = $explode[2];\n\n $query = $this->CI->db->limit(1)->get_where($table, array($field => $str));\n\n $result = $query->row_array();\n\n if( ($query->num_rows() === 0) or ( ($query->num_rows() > 0) and ($_POST[$field_excluded] == $result[$field_excluded])))\n return true;\n\n return false;\n }",
"public function testPattern() {\r\n // Remove the following line when you implement this test.\r\n $p = '/(\\d+)\\s+(\\w+)/';\r\n $result = $this->reader->pattern($p);\r\n $this->assertEquals($result, $p);\r\n $p = $this->reader->pattern();\r\n $this->assertEquals($p, $result);\r\n \r\n $result = $this->reader->pattern(false); //disable pattern\r\n $this->assertFalse($result);\r\n }",
"public function hasFieldBinding(string $name) : bool;",
"public function existsField($key){ return array_key_exists($key,$this->field_map); }",
"public function validateRealname() {\r\n $leng = mb_strlen($this->data[$this->name]['RealName']);\r\n if ($leng > 128) {\r\n return FALSE;\r\n } else if ($leng > 64) {\r\n if (mb_ereg(self::_REGEX_FULLWITH, $this->data[$this->name]['RealName']) !== false) {\r\n return FALSE;\r\n }\r\n }\r\n return TRUE;\r\n }",
"public function patternMatch($pattern) {\r\n $result = new qti_variable('single', 'boolean', array('value' => false));\n \n if ($this->_isNull()) {\n $result->value = null;\n return result;\n }\n \n // TODO: What if the pattern contains a percent? Should be escaped\n $result->value = (preg_match('%' . $pattern . '%', $this->value) > 0);\n return $result;\r\n }",
"public function testNonMatchingRegexp()\n {\n $configDefaultField = json_decode(sprintf($this->regexpConfigStub, '/^Bar/', '', 'false'), true);\n $nonMatchingRegexpFilterWithDefaultField = new Regexp($configDefaultField);\n\n $configCustomField = json_decode(sprintf($this->regexpConfigStub, '/phpunit/', 'name', 'false'), true);\n $nonMatchingRegexpFilterWithCustomField = new Regexp($configCustomField);\n\n $this->assertFalse($nonMatchingRegexpFilterWithDefaultField->accept($this->logEvent));\n $this->assertFalse($nonMatchingRegexpFilterWithCustomField->accept($this->logEvent));\n }",
"public function hasField($key){ return !empty($this->field_map[$key]); }",
"function acf_str_exists($needle, $haystack)\n{\n}",
"public function getPatternedFieldType(string $field);",
"public function check () {\n $modelName = $this->field->model->name;\n $fieldName = $this->field->name;\n $bean = $this->field->model->bean;\n $ctx = @$this->field->constraints['context'];\n $update = $ctx ? strpos(\",,{$ctx->value},\", ',update,') : true;\n return $this->dispatch(\n (!$this->value) || ($this->field && $this->field->value) || ($bean->id && !$update),\n \"{$this->field->title} is required\"\n );\n }",
"public function preg_match_PLAIN($pattern)\n\t{\n\t\treturn (bool)preg_match($pattern,$this->PLAIN);\n\t}",
"public function isValidHolder()\n {\n return !empty($this->holderValue) && preg_match($this->holderPattern, $this->holderValue);\n }",
"function validate_email($field_input, array &$field): bool\n{\n $pattern = '/^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,})$/i';\n if (!preg_match_all($pattern, $field_input)) {\n $field['error'] = 'Such email address is not valid';\n return false;\n }\n return true;\n}",
"public function setPatternedField(string $field, $value): ObjectInterface;",
"public function hasParameters()\n {\n return preg_match('/\\{/', $this->pattern) === 1;\n }",
"public function fieldExists($field) {\n\t\tif (strstr($field, \".\")) {\n\t\t\t// use the path to get to the data poing\n\t\t\t$fieldParts = explode(\".\", $field);\n\t\t\t$key = array_pop($fieldParts);\n\t\t\t\n\t\t\t// add the field parts to the entityPath to get the correct model\n\t\t\tEntity::_setEntityPath($fieldParts);\n\t\t} else {\n\t\t\t$key = $field;\n\t\t\t$fieldParts = array();\n\t\t}\n\t\t\n\t\t$model = Entity::currentPathClass();\n\t\t\n\t\tEntity::_revertEntityPath(count($fieldParts));\n\t\t\n\t\tApp::uses($model, \"Model\");\n\n\t\t// if field is not defined in db, and it's not a defined html helper func, then just print whatever it is\n\t\t$types = $this->entityFields($model);\n\t\t\n\t\tif (@$types[$key] == \"virtual\") {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (isset($types[$key]))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t}",
"public function hasField($fieldName): bool;",
"function placeFormat ($value){\n \n if(strlen($value) == 0){\n return true;\n }\n \n else if(!preg_match(VALID_PLACE_FORMAT,$value)){\n return false;\n }\n \n return true;\n}",
"public function is_valid_field() {\n\t\tglobal $wpdb, $bp;\n\n\t\t$retval = $wpdb->get_row( $wpdb->prepare( \"SELECT id FROM {$bp->profile->table_name_fields} WHERE id = %d\", $this->field_id ) );\n\n\t\treturn apply_filters_ref_array( 'xprofile_data_is_valid_field', array( (bool)$retval, $this ) );\n\t}",
"protected function findReplacements($pattern)\n {\n if (0 !== strpos($pattern, '@')) {\n return $pattern;\n }\n\n $replace = array(\n '@yearly' => '0 0 1 1 * *',\n '@annually' => '0 0 1 1 * *',\n '@monthly' => '0 0 1 * *',\n '@weekly' => '0 0 * * 0',\n '@daily' => '0 0 * * *',\n '@hourly' => '0 * * * *',\n );\n if (isset($replace[$pattern])) {\n $pattern = $replace[$pattern];\n }\n\n return $pattern;\n }",
"function validate_field($field)\n {\n }",
"public function isValid($value) {\n return parent::isValid($value) || preg_match($this->_pattren, $value);\n }",
"function str_is($pattern, $value)\n {\n return Str::is($pattern, $value);\n }",
"public function getFieldReplacement(string $field, &$Object): string\n {\n $pattern = '/\\{([a-zA-Z0-9_\\?]+)\\}/';\n $results = [];\n preg_match_all($pattern, $this->field_replacements[$field], $results, PREG_PATTERN_ORDER);\n\n $replaced = $this->field_replacements[$field];\n\n if (! is_array($results[0]) || ! is_array($results[1])) {\n return $replaced;\n }\n\n foreach ($results[0] as $key => $match) {\n // If it's an option parameter, drop the question market\n $optional = false;\n if (strpos($results[1][$key], '?') !== false) {\n $optional = true;\n $results[1][$key] = str_replace('?', '', $results[1][$key]);\n }\n\n if (is_object($Object) && isset($Object->{$results[1][$key]})) {\n $replaced = $this->fieldReplaceString($results[0][$key], $Object->{$results[1][$key]}, $replaced, $field);\n } elseif (is_array($Object) && isset($Object[$results[1][$key]])) {\n $replaced = $this->fieldReplaceString($results[0][$key], $Object[$results[1][$key]], $replaced, $field);\n } elseif ($optional) {\n $replaced = str_replace($results[0][$key], '', $replaced);\n }\n }\n\n return $replaced;\n }",
"public function matches($field, $matches) {\n\t\tif ( ! isset($_POST[$matches]) || $_POST[$field['name']] !== $_POST[$matches]) {\n\t\t\t$this->_errors[$field['name']]['param'] = $matches;\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}",
"public function hasField(string $name): bool;",
"function validate_phone($field_input, array &$field): bool\n{\n $default = \"/\\+3706(\\d{7})$/\";\n\n if (!empty($field_input)) {\n if (!preg_match_all($default, $field_input)) {\n $field['error'] = 'Number must be like +3706XXXXXXX';\n }\n }\n\n return true;\n\n}",
"private function _checkField(FieldInterface $field, string $table, string $fieldColumnPrefix)\n {\n /** @var Field $field */\n if (!$field::hasContentColumn()) {\n return;\n }\n\n $columnType = $field->getContentColumnType();\n\n if (!preg_match('/^\\w+/', $columnType, $matches)) {\n return;\n }\n\n $columnType = strtolower($matches[0]);\n\n if (in_array($columnType, [\n 'tinytext',\n 'mediumtext',\n 'longtext',\n 'text',\n 'varchar',\n 'string',\n 'char'\n ], true)) {\n $this->_textColumns[] = [$table, $fieldColumnPrefix . $field->handle];\n }\n }",
"function like($pattern, $subject)\t{\n\t\t$pattern = str_replace('%', '.*', preg_quote($pattern));\n\t\treturn (bool) preg_match(\"/^{$pattern}$/i\", $subject);\n\t}",
"private function ValidateTranslationFields()\t\n\t{\n\t\t// check for required fields\t\t\n\t\tforeach($this->arrTranslations as $key => $val){\t\t\t\n\t\t\tif(strlen($val['image_text']) > 2048){\n\t\t\t\t$this->error = str_replace('_FIELD_', '<b>'._DESCRIPTION.'</b>', _FIELD_LENGTH_EXCEEDED);\n\t\t\t\t$this->error = str_replace('_LENGTH_', 2048, $this->error);\n\t\t\t\t$this->errorField = 'image_text_'.$key;\n\t\t\t\treturn false;\n\t\t\t}\t\t\t\n\t\t}\t\t\n\t\treturn true;\t\t\n\t}",
"public static function isI18nName($field) {\r\n\t\treturn substr($field, 0, strlen(self::getCfg('i18n'))) == self::getCfg('i18n');\r\n\t}",
"public function has(File $file, $pattern);",
"function validate($data)\n {\n if ($data == '') return TRUE;\n\n $pattern = isset($this->settings['vz_regulator_pattern']) ? '#' . str_replace('#', '\\#', $this->settings['vz_regulator_pattern']) . '#' : '';\n $hint = isset($this->settings['vz_regulator_hint']) ? $this->settings['vz_regulator_hint'] : '';\n\n if ($pattern == '' || preg_match($pattern, $data) > 0)\n {\n return TRUE;\n }\n else\n {\n return $hint;\n }\n }",
"protected function patterns() {\n throw new coding_exception('patterns() method needs to be overridden in each subclass of mod_dataform_field_patterns');\n }",
"public function isMissing($field) {\n return in_array($field, $this->missing);\n }",
"function acf_is_field($field = \\false, $id = '')\n{\n}",
"public function process_additional_include_links($pattern, $replacement_string)\n {\n return true;\n }",
"function acf_get_valid_field($field = \\false)\n{\n}",
"private function is_meta_field( $key ) {\n\t\treturn '_' === $key[0];\n\t}",
"function _mysql_field_exists($table, $field) {\n $sql = \"SHOW COLUMNS FROM $table LIKE '$field'\";\n $r = db_query($sql);\n $row = db_row($r['result']);\n\n if($row) {\n return true;\n }\n return false;\n}",
"public function isField() : bool\n {\n return null == $this->fields || empty($this->fields);\n }",
"public function isApplicable($placeholder);"
] | [
"0.62857735",
"0.5981456",
"0.58648974",
"0.58528006",
"0.55580354",
"0.54394835",
"0.5431845",
"0.5411922",
"0.5316236",
"0.52655107",
"0.52470887",
"0.5219204",
"0.52190346",
"0.52129245",
"0.5200667",
"0.52000356",
"0.5194565",
"0.5190763",
"0.51823705",
"0.51764005",
"0.51698613",
"0.5148142",
"0.5126879",
"0.5112374",
"0.51093054",
"0.5103855",
"0.5093595",
"0.5070314",
"0.5067271",
"0.50533485",
"0.50480044",
"0.5041532",
"0.5039916",
"0.50189006",
"0.5013182",
"0.5010961",
"0.5003055",
"0.497358",
"0.49697024",
"0.4967736",
"0.4964071",
"0.4911446",
"0.49078825",
"0.48946473",
"0.48935786",
"0.4893134",
"0.48692346",
"0.48687214",
"0.4865766",
"0.48630533",
"0.48539823",
"0.48529348",
"0.48473567",
"0.48455203",
"0.4838792",
"0.482799",
"0.4826806",
"0.48195976",
"0.4810807",
"0.48077905",
"0.4807312",
"0.48015034",
"0.47987515",
"0.479769",
"0.47966674",
"0.47869897",
"0.47856992",
"0.4766573",
"0.47529155",
"0.47506252",
"0.4733435",
"0.473157",
"0.47249004",
"0.47247952",
"0.47209468",
"0.47157472",
"0.47154725",
"0.4714182",
"0.47029313",
"0.4695236",
"0.46908498",
"0.46907634",
"0.46904296",
"0.46885803",
"0.46821433",
"0.467752",
"0.46773833",
"0.4669495",
"0.46676657",
"0.46599427",
"0.4651749",
"0.4651711",
"0.46515325",
"0.46495238",
"0.4640693",
"0.46370876",
"0.4620343",
"0.46172428",
"0.4613226",
"0.46114865"
] | 0.7110213 | 0 |
Get a field's replacement value. | public function getFieldReplacement(string $field, &$Object): string
{
$pattern = '/\{([a-zA-Z0-9_\?]+)\}/';
$results = [];
preg_match_all($pattern, $this->field_replacements[$field], $results, PREG_PATTERN_ORDER);
$replaced = $this->field_replacements[$field];
if (! is_array($results[0]) || ! is_array($results[1])) {
return $replaced;
}
foreach ($results[0] as $key => $match) {
// If it's an option parameter, drop the question market
$optional = false;
if (strpos($results[1][$key], '?') !== false) {
$optional = true;
$results[1][$key] = str_replace('?', '', $results[1][$key]);
}
if (is_object($Object) && isset($Object->{$results[1][$key]})) {
$replaced = $this->fieldReplaceString($results[0][$key], $Object->{$results[1][$key]}, $replaced, $field);
} elseif (is_array($Object) && isset($Object[$results[1][$key]])) {
$replaced = $this->fieldReplaceString($results[0][$key], $Object[$results[1][$key]], $replaced, $field);
} elseif ($optional) {
$replaced = str_replace($results[0][$key], '', $replaced);
}
}
return $replaced;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getFieldValue($field);",
"public function get_field_value($field)\n\t{\n\t\t//$field = strtoupper($field);\t\t\n\t\tif ($this->is_bound($field))\n\t\t{\n\t\t\treturn $this->get_bound_value($field);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->_fields[$field];\n\t\t}\n\t}",
"public function get_field(/* .... */)\n {\n return $this->_field;\n }",
"public function get_originalvalue($field, $default=null) {\n if (isset($this->current->$field)) {\n return $this->current->$field;\n } else {\n return $default;\n }\n }",
"function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }",
"function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}",
"protected function referenceOurValue(): Field\n {\n $ourModel = $this->getOurModel();\n\n $ourModel->persistence_data['use_table_prefixes'] = true;\n\n return $this->getOurField();\n }",
"public function getFieldValue()\n {\n return $this->value;\n }",
"function f($field) {\n\t\treturn($this->fetchfield($field));\n\t}",
"protected function replaceField(Field $field){\n }",
"public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}",
"function update_field( $field, $post_id )\n\t{\n\t\t// Note: This function can be removed if not used\n\t\treturn $field;\n\t}",
"public function __get(string $field)\n\t{\n\t\treturn $this->getValue($field);\n\t}",
"public function getValue(): mixed\n {\n return $this->field?->getValue();\n }",
"function f($field)\n {\n if (isset($this->_data[$field])) {\n return $this->_data[$field];\n } else {\n return '';\n }\n }",
"public function fld(mixed $field): mixed\n\t{\n\t\treturn self::$regs[$field];\n\t}",
"function getValue(int $field);",
"function inputted_to_field_value($editing,$field,$upload_dir='uploads/catalogues',$old_value=NULL)\n\t{\n\t\t$id=$field['id'];\n\t\t$tmp_name='field_'.strval($id);\n\t\treturn post_param($tmp_name,$editing?STRING_MAGIC_NULL:'');\n\t}",
"private function field_original_value($field, $post_id) {\n\t\tif ( $this->is_secondary_language() && 'repeater' !== $field['type'] ) {\n\t\t\t$custom_field_original_data = apply_filters( 'wpml_custom_field_original_data', false, $post_id, $field['_name'] );\n\t\t\tif ( ! empty( $custom_field_original_data['value'] ) && is_string( $custom_field_original_data['value'] ) ) {\n\t\t\t\techo '<div class=\"wpml_acf_original_value\">';\n\t\t\t\techo '<strong>' . esc_html_x( 'Original', 'It is displayed before hint with value of ACF field in original language.', 'acfml' ) . ': </strong>';\n\t\t\t\techo strip_tags( $custom_field_original_data['value'] );\n\t\t\t\techo '</div>';\n\t\t\t}\n\t\t}\n\t}",
"public function getCustomFieldValue($field) {\n $customFieldValue = Doctrine::getTable('ArticleCustomFieldValue')->getByArticleAndName($this, $field);\n return $customFieldValue ? $customFieldValue->getValue() : '';\n }",
"public function getField(): string\n {\n return $this->field;\n }",
"public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }",
"public function value($field){\n \n if(isPostBack()){\n return Input::get($field);\n } else { \n if(array_key_exists($field, $this->defaultValues) ){\n return $this->defaultValues[$field];\n }\n }\n }",
"private function getTranslatedFieldReference() {\n\t\t$fieldsParent = $this->getFieldsParentByReference();\n\t\tif ( $fieldsParent ) {\n\t\t\t$trid = $this->sitepress->get_element_trid( $fieldsParent, sprintf( 'post_%s', self::GROUP_POST_TYPE ) );\n\t\t\t$translatedFieldGroups = $this->sitepress->get_element_translations( $trid, sprintf( 'post_%s', self::GROUP_POST_TYPE ) );\n\t\t\tif ( isset( $translatedFieldGroups[ $this->sitepress->get_current_language() ]->element_id ) ) {\n\t\t\t\treturn $this->getReferenceFromChildrenOfFieldGroup( $translatedFieldGroups[ $this->sitepress->get_current_language() ]->element_id );\n\t\t\t}\n\t\t}\n\t\treturn $this->originalReference;\n\t}",
"function getValue($fieldname)\n\t{\n\t\tif ($this->id == 'new')\n\t\t\treturn \"\";\n\t\t\t\n\t\tif (isset($this->record->values[$fieldname]->value))\n\t\t\treturn $this->record->values[$fieldname]->value;\n\t\telse\n\t\t\treturn NULL;\n// \t\t\ttrigger_error(\"No value is set for the field: $fieldname\");\n\t}",
"public function getField() {\n\t\treturn $this->field; \n\t}",
"public function getValue(ContentEntityInterface $entity, $field);",
"private function get_bound_value($field)\n\t{\n\t\tif (!array_key_exists($field, $this->_bindings))\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t\t\n\t\t$variable = $this->_bindings[$field][0];\n\t\t$key = $this->_bindings[$field][1];\n\t\t\n\t\treturn $this->evaluate_bind($variable, $key);\n\t}",
"public function getField() {\n\t\treturn $this->field;\n\t}",
"function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}",
"public function getField()\n {\n return $this->_field;\n }",
"protected function getReplacementValue($placeholder) {\n\t\tif (array_key_exists($placeholder, $this->replacementValuesCache)) {\n\t\t\treturn $this->replacementValuesCache[$placeholder];\n\t\t}\n\n\t\t$value = array_get($this->getAllReplacements(), $placeholder);\n\t\tif (is_callable($value)) {\n\t\t\t$value = call_user_func($value, $this);\n\t\t}\n\t\t$this->replacementValuesCache[$placeholder] = $value;\n\n\t\treturn $value;\n\t}",
"public function getFieldValue(/*string*/ $fieldName);",
"public function getField()\n {\n return $this->field;\n }",
"public function getField()\n {\n return $this->field;\n }",
"public function getField()\n {\n return $this->field;\n }",
"public function getField()\n {\n return $this->field;\n }",
"public function getOriginalContentField()\n {\n $model = $this->owner->getCustomisedObj();\n if (!$model) {\n $model = $this->owner->data();\n }\n if (!$model) {\n return null;\n }\n\n $field = $this->contentField();\n if (!$model->hasField($field)) {\n return null;\n }\n\n return $model->getField($field);\n }",
"public function getField() {\n\t\treturn $this->_field;\n\t}",
"function get_value($post_id, $field)\n\t{\n\t\t// get value\n\t\t$value = parent::get_value($post_id, $field);\n\t\t\n\t\t// format value\n\t\t\n\t\t// return value\n\t\treturn $value;\t\t\n\t}",
"public function getModifiedValue(): string\n {\n\t\treturn $this->applyModifiers((string) $this->value);\n\t}",
"public function value($field) {\n if ($field instanceof FormExtension)\n return $field->getValue($this->record);\n else if (isset($this->record)) {\n if (strpos($field, '.') !== false) {\n $elements = explode('.', $field);\n $value = $this->record;\n foreach ($elements as $element)\n $value = $value[$element];\n return $value;\n }\n return $this->record->$field;\n }\n else if (isset($this->data[$field])) {\n if (strpos($field, '.') !== false) {\n $elements = explode('.', $field);\n $value = $this->data;\n foreach ($elements as $element)\n $value = $value[$element];\n return $value;\n }\n return $this->data[$field];\n }\n return null;\n }",
"public function getFieldValue($fieldname)\n {\n return $this->{'get'.$fieldname}();\n }",
"public function getPatternedField(string $field);",
"public function newValue()\n\t{\n\t\tif(is_null($this->new_value) or strlen($this->new_value) == '')\n\t\t{\n\t\t\treturn $this->revisionNullString;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tif(strpos($this->key, '_id'))\n\t\t\t{\n\t\t\t\t$model = str_replace('_id', '', $this->key);\n\t\t\t\t$item = $model::find($this->new_value);\n\n\t\t\t\tif(!$item)\n\t\t\t\t{\n\t\t\t\t\treturn $this->format($this->key, $this->revisionUnknownString);\n\t\t\t\t}\n\n\t\t\t\treturn $this->format($this->key, $item->identifiableName());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\t// Just a failsafe, in the case the data setup isn't as expected.\n\t\t}\n\n\t\treturn $this->format($this->key, $this->new_value);\n\t}",
"private function retrieve_cf_custom_field_name( $var ) {\n\t\tglobal $post;\n\t\t$replacement = null;\n\n\t\tif ( is_string( $var ) && $var !== '' ) {\n\t\t\t$field = substr( $var, 3 );\n\t\t\tif ( ( is_singular() || is_admin() ) && ( is_object( $post ) && isset( $post->ID ) ) ) {\n\t\t\t\t$name = get_post_meta( $post->ID, $field, true );\n\t\t\t\tif ( $name !== '' ) {\n\t\t\t\t\t$replacement = $name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $replacement;\n\t}",
"protected function getOurValue()\n {\n $ourModel = $this->getOurModel();\n\n if ($ourModel->loaded()) {\n return $this->our_field\n ? $ourModel->get($this->our_field)\n : $ourModel->getId();\n }\n\n // create expression based on existing conditions\n return $ourModel->action('field', [\n $this->getOurFieldName(),\n ]);\n }",
"public function get_field( string $field ) {\n\t\tif ( array_key_exists( $field, $this->data ) ) {\n\t\t\treturn $this->data[ $field ];\n\t\t}\n\n\t\treturn '';\n\t}",
"public function getField()\n {\n if ($this->field) return $this->field;\n\n if (!($field = $this->fieldAble->getField($this->fieldTemplate->program_name))) {\n\n $field = new Field();\n $field->common_fields_template_id = $this->fieldTemplate->id;\n $field->field_reference = $this->fieldAble->getFieldReference();\n $field->visible = true;\n $field->editable = true;\n\n $field->save(false);\n\n $this->fieldAble->getFieldHandler()->setToCache($this->fieldTemplate->program_name, $field);\n }\n\n $this->field = $field;\n\n return $this->field;\n }",
"public function getLookupField() {}",
"public function getField(){\n return $this->field;\n }",
"function get_field_inputter($_cf_name,$_cf_description,$field,$actual_value,$new)\n\t{\n\t\tif (is_null($actual_value)) $actual_value=''; // Plug anomaly due to unusual corruption\n\t\treturn form_input_line($_cf_name,$_cf_description,'field_'.strval($field['id']),$actual_value,$field['cf_required']==1);\n\t}",
"public function getValue($field, $default = null) {\n if (array_key_exists($field, $this->updates)) {\n return $this->updates[$field];\n } elseif (array_key_exists($field, $this->data)) {\n return $this->data[$field];\n } else {\n return $default;\n }\n }",
"protected function _getReferenceField($name) {\r\n \treturn $this->_referenceMap[$name]['field'];\r\n }",
"public function getValue($fieldname, $raw = true);",
"public function __get($field)\n\t{\n\t\treturn $this->get($field);\n\t}",
"public function getValue(string $field, mixed $default = null): mixed;",
"function getField(){\n\t\treturn $this->Field;\n\t}",
"public function get($field);",
"public function get($field);",
"public function __get ($field) {\n return $this->__fields[$field]['data'];\n }",
"function getValue() {\n global ${$this->name}, ${$this->name.\"_name\"}, ${$this->name.\"_old\"}; // ${$this->name} = ${\"surname\"} = $surname\n $ext=substr(${$this->name.\"_name\"},-3);\n if ($ext==\"\") $ext=${$this->name.\"_old\"};\n if ($ext==\"\") $ext=$this->value;\n return $ext;\n }",
"private function getSingleVal($fieldNamePattern, $field){\r\n\t\t\r\n\t\t$realValue = $this->getDefaultValue($field);\r\n\t\t\r\n\t\tif(\r\n\t\t\tarray_key_exists('field-'.$fieldNamePattern.'-'.$this->securityHash, $this->sentData) \r\n\t\t)\r\n\t\t{\r\n\t\t\t$_value = $this->sentData['field-'.$fieldNamePattern.'-'.$this->securityHash];\r\n\t\t\t\r\n\t\t\tif( \r\n\t\t\t\tmb_strlen($_value)>0\r\n\t\t\t){\r\n\t\t\t\t$realValue = $_value;\r\n\t\t\t}else{\r\n\t\t\t\t$realValue = $_value;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->fieldValues['jform-cell-'.$fieldNamePattern] = $realValue;\r\n\t\treturn nl2br($realValue);\r\n\t}",
"function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}",
"public function getFieldValue($entity, $field_name, $langcode) {\n if ($entity->hasTranslation($langcode)) {\n // If the entity has translation, fetch the translated value.\n return $entity->getTranslation($langcode)->get($field_name)->getValue();\n }\n\n // Entity doesn't have translation, fetch original value.\n return $entity->get($field_name)->getValue();\n }",
"public abstract function GetCurrentField();",
"function field() {\n\t/* Note: This function depends on special PHP functions, which cannot be used outside of a function definition. The behavior of the functions is somewhat inconsistent with the behavior of normal functions.\n\t */\n\t$numargs = func_num_args(); // function cannot be used directly as a function parameter\n\t \n\tif ($numargs > 1) {\n\n\t\t/**\n\t\t * Field Assign\n\t\t *\n\t\t */\n\t\t\t \n\t\t$arg_list = func_get_args();\n\t\t \n\t\t$field_name = $arg_list[0];\n\t\t$field_value = $arg_list[1];\n\t\t\t \n\t\t/* I suppose this would work too\n\t\t $field_name = func_get_arg(0);\n\t\t $field_value = func_get_arg(1);\n\t\t*/\n\t\t\n\t\t// debug\t\n\t\t//print \"Assigning value \" \t. $field_value .\" to \". $field_name .\" field<br>\";\n\t\n\t\t$this->fields[$field_name]['value'] = $field_value;\n\t\t \n\t} else {\n\t\n\t/**\n\t * Field Retrieve\n\t *\n\t */\n\t\t\t\n\t$arg_list = func_get_args();\n\n\t$field_name = $arg_list[0];\n\t\t \n\t/* I suppose this would work too\n\t $field_name = func_get_arg(0);\n\t */\n\t \n\treturn $this->value( $field_name );\n\t }\n\t}",
"function get_gp_field_only($gid, $field) {\n $fields = $this->get_gp_field($gid, $field);\n return $fields[$field];\n }",
"public function getFieldValue(Field $field, $model);",
"public function __get($field){\n if ($field == 'usuario_id'){\n return $this->codigo;\n }\n else{\n return $this->fields[$field];\n }\n }",
"public function getField()\n\t{\n\t\t// this Fldsrc is not related to the target-table\n\t\treturn null;\n\t}",
"function __get($n, $field) {\n // from core function field_info_field_map <- FieldInfo::getFieldMap (not available in Drupal 6) \n // to obtain field type from $field_map[field_name]['type']\n $upsert_field_map = field_info_field_map();\n\n switch ($field) {\n case 'nid':\n case 'vid':\n case 'type':\n case 'language':\n case 'title':\n case 'uid':\n case 'name':\n case 'created':\n case 'changed':\n return $n->{$field};\n break;\n case 'status':\n return ($n->status) ? TRUE:FALSE;\n break;\n case 'disabled':\n return ($n->status) ? FALSE:TRUE;\n break;\n case 'meta_data':\n return __get_meta_data($n);\n default:\n // get field type from field map info\n $type = $upsert_field_map[$field]['type'];\n\n// print \"field: \" . $field . \" field type: \" . $type . \"\\n\";\n\n // return result from function __get_{$n, $field}\n if ($type) {\n if ($type == 'file' || $type == 'image') return __get_media($n, $field);\n $function = '__get_' . $type;\n return $function($n, $field);\n }\n else {\n return '';\n }\n break;\n }\n}",
"function get_value_edit()\n\t{\n\t\treturn $this->value;\n\t}",
"public function &__get($field) {\n\t\tif (isset($this->viewVars[$field])) {\n\t\t\treturn $this->viewVars[$field];\n\t\t}\n\t\t\n\t\ttrigger_error(\"Undefined view variable '{$field}'\");\n\t}",
"protected function _getInputFieldValueFromLabel( $aField ) { \n \n // If the value key is explicitly set, use it. But the empty string will be ignored.\n if ( isset( $aField['value'] ) && $aField['value'] != '' ) { return $aField['value']; }\n \n if ( isset( $aField['label'] ) ) { return $aField['label']; }\n \n // If the default value is set,\n if ( isset( $aField['default'] ) ) { return $aField['default']; }\n \n }",
"public function getFieldValue(): ?string\n {\n return $this->getOption('fieldvalue');\n }",
"public function getExistingValue()\n {\n return $this->existingValue;\n }",
"public function retrieveFieldValue(Field $field, $model);",
"public function get_field_name();",
"function update_value( $value, $post_id, $field )\n\t{\n\t\t// Note: This function can be removed if not used\n\t\treturn $value;\n\t}",
"function load_value( $value, $post_id, $field )\n\t{\n\t\t// Note: This function can be removed if not used\n\t\treturn $value;\n\t}",
"public function display($field)\n {\n\t\treturn $field->value; \n }",
"public function getOriginalSearchValue(): ?string\n {\n return $this->originalValue;\n }",
"function update_value($value, $post_id, $field) {\n\t\t//$value = \"this overrides\";\n\t\treturn $value;\n\t}",
"public function getReplacementID();",
"public function getField(): string;",
"function load_field( $field )\n\t{\n\t\t// Note: This function can be removed if not used\n\t\treturn $field;\n\t}",
"public function __get($field)\n {\n if ($field == 'userId')\n {\n return $this->uid;\n }\n else \n {\n return $this->fields[$field];\n }\n }",
"function get_gp_field($gid, $field) {\n global $db;\n $results = $db->select(tbl($this->gp_tbl), $field, \"group_id='$gid'\");\n\n if ($db->num_rows > 0) {\n return $results[0];\n } else {\n return false;\n }\n }",
"function get($field)\n {\n $fieldLc = strtolower($field);\n if (array_key_exists($fieldLc, self::$translate))\n $fieldLc = self::$translate[$fieldLc];\n\n switch($fieldLc)\n { // act on field name\n case 'name':\n {\n return $this->getName();\n }\n\n case 'nativename':\n {\n return $this->getNativeName();\n }\n\n case 'sorry':\n {\n return $this->getSorry();\n }\n\n case 'cc':\n {\n if (array_key_exists('cc', $this->extras))\n return $this->extras['cc'];\n else\n return null;\n }\n\n\n default:\n { // other fields\n return parent::get($fieldLc);\n } // other fields\n } // act on field name\n }",
"private function getValue(string $fieldName) {\r\n return $this -> translator -> get($fieldName);\r\n }",
"public function getNewValue()\n {\n return $this->new_value;\n }",
"public function getReplacementText();",
"public function fetchField();",
"function tk_template_get_field (&$this, &$res, $field)\n{\n $ui =& $app->ui;\n\n $res[\"form_$field\"] = $ui->new_formfield ($field);\n $res[$field] = $ui->value ($field);\n}",
"public function getTargetField()\n {\n return $this->target_field;\n }",
"function get_value_for_api($post_id, $field){\n\t\t// get value\n\t\t$value = $this->get_value($post_id, $field);\n\t\t\n\t\t// return value\n if( !empty($value) ) {\n\t\t return new ACF_Link_Field_Value($value);\n } else {\n return '';\n } \n\n\t}",
"protected function getReplacementWord($word)\n\t{\n\t\t$replacement = parent::getReplacementWord($word);\n\t\t\n\t\tif ($replacement === NULL)\n\t\t{\n\t\t\t$where = $this->where;\n\t\t\t$where[$this->model_original_name] = $word;\n\t\t\t\n\t\t\tif ($this->model->loadBy($where))\n\t\t\t{\n\t\t\t\t$replacement = $this->model->__get($this->model_replacement_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$replacement = FALSE;\n\t\t\t}\n\t\t\t\n\t\t\t$this->replacement_data[$word] = $replacement;\n\t\t}\n\t\t\n\t\treturn $replacement;\n\t}",
"public function getFieldvalue($fieldname)\n\t{\n\t\t$field = $this->fields->get($fieldname);\n\t\tif($field == null)\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn $field->getFieldvalue();\n\t}",
"public static function custom_field_value($post_id, $field_name){\n $field_value = get_post_meta( $post_id, $field_name, true );\n\n if( is_array($field_value) ) {\n return $field_value;\n }\n\n return ($field_value) ? esc_html($field_value) : null;\n }"
] | [
"0.6863512",
"0.64743817",
"0.64484435",
"0.643917",
"0.62648684",
"0.62114304",
"0.6116827",
"0.6051574",
"0.60396254",
"0.6007611",
"0.59959006",
"0.5983635",
"0.5971142",
"0.59319264",
"0.5923896",
"0.59231895",
"0.5912591",
"0.59038264",
"0.58995426",
"0.58922863",
"0.5873687",
"0.58711076",
"0.5868903",
"0.58683425",
"0.5863863",
"0.5843501",
"0.58310986",
"0.5827598",
"0.5825568",
"0.58234584",
"0.580448",
"0.5801701",
"0.5793448",
"0.57902217",
"0.57902217",
"0.57902217",
"0.57902217",
"0.57863915",
"0.57862985",
"0.5779",
"0.57761985",
"0.5766051",
"0.576406",
"0.5757423",
"0.5750783",
"0.5731039",
"0.5730723",
"0.5713157",
"0.5713006",
"0.570945",
"0.570393",
"0.56983495",
"0.5687459",
"0.5684672",
"0.5682444",
"0.56686085",
"0.5667958",
"0.5660401",
"0.5647959",
"0.5647959",
"0.56433266",
"0.56299585",
"0.5619625",
"0.5610809",
"0.5600306",
"0.5592041",
"0.5591088",
"0.5569321",
"0.55624074",
"0.5544331",
"0.55378306",
"0.5537213",
"0.5533128",
"0.5527217",
"0.5525604",
"0.5514375",
"0.55075645",
"0.5502089",
"0.55007845",
"0.5497919",
"0.54914814",
"0.54891175",
"0.5484211",
"0.548231",
"0.5474122",
"0.5473565",
"0.5471845",
"0.54672265",
"0.54591507",
"0.545291",
"0.544366",
"0.54322076",
"0.54207367",
"0.54207337",
"0.5391422",
"0.5390968",
"0.5384444",
"0.5373926",
"0.5371251",
"0.5370249"
] | 0.60683435 | 7 |
Get array of Field Replacements. | public function getFieldReplacements(): array
{
return $this->field_replacements;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getReplacements()\n {\n if (isset($this->raw->replacements)) {\n return (array) $this->raw->replacements;\n }\n\n return array();\n }",
"public function getPatternedFields(): array;",
"public function getReplaces(): array {\n return [];\n }",
"public function getFieldsArray() {\n\t\t\treturn $this->fields_array;\n\t\t}",
"protected function replacements(): array\n {\n return [\n 'modelSingularCapitalized' => $this->modelSingularCapitalized(),\n 'values' => $this->values(),\n 'buttons' => $this->buttons(),\n ];\n }",
"public function getAllFields()\n {\n return array_merge($this->_fields, $this->_changedFields);\n }",
"public function providerFieldValues()\n {\n return [\n ['non_existent_field', []],\n ['empty_field', []],\n ['empty_field_2', []],\n [\n 'acf_value_field',\n [\n ['test-1' => 'test 1'],\n ['test-1' => 'test 2'],\n ['test-1' => 'test 3'],\n ],\n ],\n [\n 'acf_option_field',\n [\n [\n 'label' => 'test 1',\n 'slug' => 'test-1',\n ],\n [\n 'label' => 'test 2',\n 'slug' => 'test-2',\n ],\n ],\n ],\n ];\n }",
"public function getProcessedReplacements()\n {\n $values = $this->getReplacements();\n\n if (null !== ($git = $this->getGitHashPlaceholder())) {\n $values[$git] = $this->getGitHash();\n }\n\n if (null !== ($git = $this->getGitShortHashPlaceholder())) {\n $values[$git] = $this->getGitHash(true);\n }\n\n if (null !== ($git = $this->getGitTagPlaceholder())) {\n $values[$git] = $this->getGitTag();\n }\n\n if (null !== ($git = $this->getGitVersionPlaceholder())) {\n $values[$git] = $this->getGitVersion();\n }\n\n if (null !== ($date = $this->getDatetimeNowPlaceHolder())) {\n $values[$date] = $this->getDatetimeNow($this->getDatetimeFormat());\n }\n\n $sigil = $this->getReplacementSigil();\n\n foreach ($values as $key => $value) {\n unset($values[$key]);\n\n $values[\"$sigil$key$sigil\"] = $value;\n }\n\n return $values;\n }",
"public function getFields() {\n $field = $this->get('field');\n return null !== $field ? $field : array();\n }",
"final public function getAllFields()\r\n {\r\n return array($this->_field);\r\n }",
"public function getReplaces(): ReplaceCollection;",
"public function getFields() {\n $modifiable_fields = [];\n $type = $this->getType();\n $bundle = $this->getBundle();\n // Get _all_ defined fields. This should return an associative array.\n $fields = Framework::instance()->fieldInfoFields();\n foreach ($fields as $field => $info) {\n if (isset($info['bundles'][$type]) && is_array($info['bundles'][$type]) && in_array($bundle, $info['bundles'][$type]) && $this->filter($field)) {\n $this->addModifier($modifiable_fields, 'field', $field);\n }\n }\n return $modifiable_fields;\n }",
"public function prepareFields(): array\n\t{\n\t\t$fields = [];\n\t\tforeach ($this->getFieldsToDisplay(static::DISPLAY_IN_FILTER) as $field => $fieldParams)\n\t\t{\n\t\t\t$customMethod = $this->getCustomFieldOptionMethodIfExists($field);\n\t\t\tif (!empty($fieldParams['filterOptionPreset']))\n\t\t\t{\n\t\t\t\t$options = $this->prepareFieldOptionByPreset($fieldParams);\n\t\t\t}\n\t\t\telseif ($customMethod)\n\t\t\t{\n\t\t\t\t$options = $this->$customMethod($fieldParams);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$options = [\n\t\t\t\t\t'type' => $fieldParams['type'],\n\t\t\t\t\t'default' => $fieldParams['defaultFilter']\n\t\t\t\t];\n\t\t\t}\n\n\t\t\t$fields[$field] = [\n\t\t\t\t'options' => $options,\n\t\t\t];\n\t\t}\n\n\t\t$this->prepareParentFields($fields);\n\n\t\t$result = [];\n\t\tforeach($fields as $name => $field)\n\t\t{\n\t\t\t$result[$name] = $this->createField($name, (!empty($field['options']) ? $field['options'] : []));\n\t\t}\n\n\t\tif ($this->factory->isCrmTrackingEnabled())\n\t\t{\n\t\t\t\\Bitrix\\Crm\\Tracking\\UI\\Filter::appendFields($result, $this);\n\t\t}\n\n\t\treturn $result;\n\t}",
"public function fields(): array\n {\n return MyField::withSlug('name', MyField::withMeta([\n MyField::relation('categories')\n ->fromModel(ProductCategory::class, 'name')\n ->multiple(),\n MyField::uploadMedia(),\n MyField::input('price')\n ->step(0.001)\n ->required(),\n MyField::input('discount')\n ->step(0.001)\n ->required(),\n MyField::quill('body'),\n MyField::switcher('is_active')\n ->value(true)\n ]));\n }",
"public function getFields(): array\n {\n return $this->fields;\n }",
"public function getFields(): array\n {\n return $this->fields;\n }",
"protected function getAllReplacements() {\n\t\tif (!is_array($this->replacementsCache)) {\n\t\t\t$modelReplacements = Config::get('replaceable.' . get_called_class() . '.replacements', []);\n\t\t\t$globalReplacements = Config::get('replaceable.*.replacements', []);\n\t\t\t$this->replacementsCache = array_merge($globalReplacements, $modelReplacements);\n\t\t}\n\n\t\treturn $this->replacementsCache;\n\t}",
"private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"last_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"happy\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"select\",\n \"field_name\" => \"character\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => [\n [\"value\" => \"biff\", \"label\" => \"Biff\"],\n [\"value\" => \"marty\", \"label\" => \"Marty\"],\n [\"value\" => \"doc\", \"label\" => \"Doc Brown\"],\n [\"value\" => \"jennifer\", \"label\" => \"Jennifer\"],\n [\"value\" => \"needles\", \"label\" => \"Needles\"],\n ]\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"kids\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n ];\n }",
"public function getChangeset(): array\n\t{\n\t\t$changes = [];\n\n\t\tforeach ($this->getNonMetadataFields() as $key => $value) {\n\t\t\tif (! isset($this->initialFieldValues[$key]) || $value !== $this->initialFieldValues[$key]) {\n\t\t\t\t$changes[$key] = $value;\n\t\t\t}\n\t\t}\n\n\t\treturn $changes;\n\t}",
"public function getFieldsWithUpdate()\n {\n return array_filter($this->fieldChanges, function ($fieldChange) {\n return $fieldChange->hasChange();\n });\n }",
"public function getFields()\n\t{\n\t\treturn [];\n\t}",
"public function getFields(){\n if($fields = json_decode($this->fields)){\n\n // si la variable es un array, tengo que concatenar sus valores porque el component/slot no admite paso de arrays\n // foreach ($fields as &$value) {\n // if(is_array($value) && sizeof($value)){\n\n // if(!is_object($value[0])){ // tengo que dejar tranquilos a los arrays que tienen objetos dentro, que son del repeater y no de un select2 multiple por ej\n // $value = implode($value,',');\n // }\n\n // }\n // }\n\n return $fields;\n }\n else{\n return [];\n }\n }",
"protected function replacements(): array\n {\n return [\n 'useModel' => $this->useModel(),\n 'modelClass' => $this->modelClass(),\n 'useSeeder' => $this->useSeeder(),\n 'seed' => $this->seed(),\n ];\n }",
"public function fields()\n {\n return array_map(\n function (array $field) {\n return Field::fromArray($field);\n },\n $this->client->get('field')\n );\n }",
"public function getFields(): array;",
"public function getFields(): array;",
"public function getFields(): array;",
"public function getFields() : array {\n\t\treturn $this->fields;\n\t}",
"public function getFields(): array\n {\n $fields = [];\n\n foreach ($this->getGroups() as $group) {\n foreach ($group->fields as $field) {\n $fields[$field->id ?? \\count($fields)] = $field;\n }\n }\n\n return $fields;\n }",
"public function values_as_array() {\n $Data = array();\n foreach ($this->__fields() as $field) {\n $v = $this->$field->cleaned_value();\n if ($v instanceof Newforms_File_Object) continue;\n $Data[$field] = $v;\n }\n return $Data;\n }",
"protected function buildFieldsReplacement(array $replace)\n {\n $table = $this->option('table');\n\n $columns = collect($table->tableFields);\n\n $foreignColumns = $columns->filter(function ($value) {\n return $value->table != null;\n });\n\n return (array_merge($replace, [\n 'DummyFields' => $this->buildFields((new TableSchema(\n $table, $columns\n ))->getColumns()),\n 'DummyForeignFields' => $this->buildForeignTable((new TableSchema(\n $table, $foreignColumns\n ))->getColumns()),\n ]));\n }",
"public function getFieldsForUpdate()\r\n\t{\r\n\t\tforeach($this->rules_for_update as $field => $rule)\r\n\t\t{\r\n\t\t\tif(!strlen($rule['value']))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif(strpos($rule['value'],',') === false)\r\n\t\t\t{\r\n\t\t\t\t$fields[] = strtolower($rule['value']);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t \t$tmp_fields = explode(',',$rule['value']);\r\n\t\t\t$value = '';\r\n\t\t \tforeach($tmp_fields as $tmp_field)\r\n\t \t\t{\r\n\t\t\t\t$fields[] = trim(strtolower($tmp_field));\r\n\t \t\t}\r\n\t \t}\r\n\t\treturn $fields ? $fields : array();\r\n\t}",
"private function getPreviewFields() \r\n\t{\r\n\t\t$sql = \"select field1, field2, field3, field4, field5 \r\n\t\t\t\tfrom redcap_ddp_preview_fields where project_id = \" . $this->project_id;\r\n\t\t$q = db_query($sql);\r\n\t\tif (db_num_rows($q)) {\r\n\t\t\t// Remove all blank instances\r\n\t\t\t$preview_fields = db_fetch_assoc($q);\r\n\t\t\tforeach ($preview_fields as $key=>$field) {\r\n\t\t\t\tif ($field == '') unset($preview_fields[$key]);\r\n\t\t\t}\r\n\t\t\treturn array_values($preview_fields);\r\n\t\t} else {\r\n\t\t\treturn array();\r\n\t\t}\r\n\t}",
"public function getFields() : FieldCollection;",
"public function getAllForParsing(): array\n {\n return $this->model->pluck('replace', 'find')->toArray();\n }",
"abstract protected function getTrackedRegularFieldNames(): array;",
"public function toRealNamesArray(): array\n {\n $values = array();\n foreach ($this->getAllFieldsAliases() as $name) {\n $field = $this->{'field' . \\ucfirst($name)};\n $realName = (string) \\constant(static::class . '::FIELD_' . \\strtoupper(Helper::codifyName($name)));\n $values[$realName] = $field['value'];\n }\n\n return $values;\n }",
"public function getFieldValues() {\n return array_values($this->_fields);\n }",
"public function metaFields()\n {\n $metaFields = [];\n foreach ($this->metaFieldDefinitions() as $fieldData) {\n $metaFields[] = Field::createFromData($fieldData);\n }\n return $metaFields;\n }",
"static function getTemplateFields_internal(): array {\n return [\n TemplateField::newBuilder()->called(self::FIELD_POSTS)->asRequired()->build(),\n TemplateField::newBuilder()->called(self::FIELD_TITLE)->build()\n ];\n }",
"public function getFields()\n\t{\n\t\tif (!isset($this->_fields))\n\t\t{\n\t\t\t$this->_fields = array();\n\n\t\t\t$fieldLayoutFields = $this->getFieldLayout()->getFields();\n\n\t\t\tforeach ($fieldLayoutFields as $fieldLayoutField)\n\t\t\t{\n\t\t\t\t$field = $fieldLayoutField->getField();\n\t\t\t\t$field->required = $fieldLayoutField->required;\n\t\t\t\t$this->_fields[] = $field;\n\t\t\t}\n\t\t}\n\n\t\treturn $this->_fields;\n\t}",
"protected function getFieldOverrides() {\n $processes = [];\n\n /** @var \\Drupal\\hs_capx\\Entity\\CapxImporterInterface $importer */\n foreach ($this->importers as $importer) {\n foreach (array_keys($importer->getFieldTags()) as $field_name) {\n $processes[$field_name] = [\n [\n 'plugin' => 'capx_tagging',\n ],\n ];\n }\n }\n return $processes;\n }",
"public function inject_fields() {\n return array(\n '__inject__'\n );\n }",
"protected function get_posted_fields() {\r\n\t\t$this->init_fields();\r\n\r\n\t\t$values = array();\r\n\r\n\t\tforeach ( $this->fields as $group_key => $group_fields ) {\r\n\t\t\r\n\t\t\tforeach ( $group_fields['fields'] as $key => $field ) {\r\n\t\t\t\t// Get the value\r\n\t\t\t\t$field_type = str_replace( '-', '_', $field['type'] );\r\n\t\t\t\t\r\n\t\t\t\tif ( $handler = apply_filters( \"listeo_core_get_posted_{$field_type}_field\", false ) ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$values[ $group_key ][ $key ] = call_user_func( $handler, $key, $field );\r\n\t\t\t\t} elseif ( method_exists( $this, \"get_posted_{$field_type}_field\" ) ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$values[ $group_key ][ $key ] = call_user_func( array( $this, \"get_posted_{$field_type}_field\" ), $key, $field );\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$values[ $group_key ][ $key ] = $this->get_posted_field( $key, $field );\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Set fields value\r\n\r\n\t\t\t\t$this->fields[ $group_key ]['fields'][ $key ]['value'] = $values[ $group_key ][ $key ];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\treturn $values;\r\n\t}",
"public function getEditFields(): array\n\t{\n\t\t$fields = [];\n\t\t$editFields = ['name'];\n\t\t$editFields[] = 'icon';\n\t\tif ($this->fieldModel->getModule()->isEntityModule()) {\n\t\t\tif (!$this->getId()) {\n\t\t\t\t$editFields[] = 'roles';\n\t\t\t}\n\t\t\t$editFields[] = 'description';\n\t\t\t$editFields[] = 'prefix';\n\t\t\tif ($this->fieldModel->getFieldParams()['isProcessStatusField'] ?? false) {\n\t\t\t\tif (\\App\\Db::getInstance()->getTableSchema($this->getTableName())->getColumn('time_counting')) {\n\t\t\t\t\t$editFields[] = 'time_counting';\n\t\t\t\t}\n\t\t\t\t$editFields[] = 'record_state';\n\t\t\t}\n\t\t\tif (15 === $this->fieldModel->getUIType()) {\n\t\t\t\t$editFields[] = 'close_state';\n\t\t\t}\n\t\t}\n\n\t\tforeach ($editFields as $fieldName) {\n\t\t\t$propertyModel = $this->getFieldInstanceByName($fieldName);\n\t\t\tif (null !== $this->get($fieldName)) {\n\t\t\t\t$propertyModel->set('fieldvalue', $this->get($fieldName));\n\t\t\t} elseif (($defaultValue = $propertyModel->get('defaultvalue')) !== null) {\n\t\t\t\t$propertyModel->set('fieldvalue', $defaultValue);\n\t\t\t}\n\t\t\t$fields[$fieldName] = $propertyModel;\n\t\t}\n\n\t\treturn $fields;\n\t}",
"function variable_fields()\n\t{\n\t\t$vf=$this->variable_fields;\n\n\t\tif (!is_array($vf))\n\t\t{\n\t\t\t//default search field if nothing is selected\n\t\t\treturn array('labl,qstn,catgry');\n\t\t}\n\n\t\t$tmp=NULL;\n\t\tforeach($vf as $field)\n\t\t{\n\t\t\tif (in_array($field,$this->variable_allowed_fields))\n\t\t\t{\n\t\t\t\t$tmp[]=$field;\n\t\t\t}\n\t\t}\n\n\t\t//no allowed fields found\n\t\tif ($tmp==NULL)\n\t\t{\n\t\t\treturn array('labl');\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $tmp;\n\t\t}\n\t}",
"public static function getTextFields(): array\n {\n $Qb = GlobalContainer::getConnection()\n ->createQueryBuilder()\n ->select('ff.*')\n ->from('pqr_form_fields', 'ff')\n ->join('ff', 'pqr_html_fields', 'hf', 'ff.fk_pqr_html_field=hf.id')\n ->where(\"hf.type_saia='Text' and ff.active=1\")\n ->orderBy('ff.orden');\n\n $data = [];\n if ($records = PqrFormField::findByQueryBuilder($Qb)) {\n foreach ($records as $PqrFormField) {\n $data[] = [\n 'id' => $PqrFormField->getPK(),\n 'text' => $PqrFormField->label\n ];\n }\n }\n\n return $data;\n }",
"protected function fields(FieldFactory $fieldFactory) {\n return [];\n }",
"function _get_fields()\n\t{\n\t\tglobal $DB;\n\t\n\t\tif ( ! isset($this->cache['fields']))\n\t\t{\n\t\t\t$this->cache['fields'] = array();\n\n\t\t\t$query = $DB->query('SELECT field_id FROM exp_weblog_fields\n\t\t\t WHERE field_type = \"ftype_id_'.$this->_fieldtype_id.'\"');\n\t\t\tif ($query->num_rows)\n\t\t\t{\n\t\t\t\tforeach($query->result as $row)\n\t\t\t\t{\n\t\t\t\t\t$this->cache['fields'][] = 'field_id_'.$row['field_id'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this->cache['fields'];\n\t}",
"public function getFields()\n\t{\n\t\t$fields = [];\n\n\t\tforeach (array_keys($this->map) as $field)\n\t\t{\n\t\t\t$get = $this->convertToCamelCase('get_' . $field);\n\t\t\t$fields[$field] = $this->$get();\n\t\t}\n\n\t\treturn $fields;\n\t}",
"public function Fields()\n {\n foreach ($this->getExtraFields() as $field) {\n if (!$this->fields->fieldByName($field->getName())) {\n $this->fields->push($field);\n }\n }\n\n return $this->fields;\n }",
"public function getFields()\n {\n $out = array();\n foreach($this->_map as $bind => $field)\n {\n if(isset($field[self::MAP_FIELD]))\n {\n $out[$bind] = $field[self::MAP_FIELD];\n }\n }\n return $out;\n }",
"protected function getFields(): array {\n if (!$this->fields) {\n // Search the pattern for named subpatterns and get their names.\n // @link https://stackoverflow.com/a/47753964/3260408\n preg_match_all(\"~(?<!\\\\\\\\)(?:\\\\\\\\{2})*\\(\\?(?|P?<([_A-Za-z]\\w{0,31})>|'([_A-Za-z]\\w{0,31})')~\", $this->getPattern(), $matches);\n $this->fields = $matches[1];\n\n if (!$this->fields) {\n throw new \\RuntimeException('Pattern must contain named subpatterns.');\n }\n if (count(array_unique($this->fields)) != count($this->fields)) {\n throw new \\RuntimeException('Subpattern names must be unique.');\n }\n }\n\n return $this->fields;\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'action' => fn(ParseNode $n) => $o->setAction($n->getEnumValue(OnenotePatchActionType::class)),\n 'content' => fn(ParseNode $n) => $o->setContent($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'position' => fn(ParseNode $n) => $o->setPosition($n->getEnumValue(OnenotePatchInsertPosition::class)),\n 'target' => fn(ParseNode $n) => $o->setTarget($n->getStringValue()),\n ];\n }",
"public function getFields() : array\n {\n return get_object_vars($this);\n }",
"public function getFields(): array\n {\n $group = [\n 'id' => $this->id,\n 'name' => $this->name,\n 'status' => $this->status,\n 'owner_id' => $this->owner_id,\n 'rejected_at' => $this->rejected_at,\n 'deleted_at' => $this->deleted_at\n ];\n\n if (get_class($this->owner) !== Reference::class) {\n $group['owner'] = $this->owner->getFields();\n }\n\n return $group;\n }",
"protected function __fields() {\n $Fields = array_keys(get_object_vars($this));\n if (!empty ($this->__onlyFields)) {\n $Fields = $this->__onlyFields;\n }\n $NewFields = array();\n foreach ($Fields as $field) {\n if (in_array ($field, array ('__bound', '__Data', 'cleaned_data', 'label_suffix', 'required_suffix', 'is_editable', 'suppress_errors'))) continue;\n if (!is_object($this->$field)) continue;\n if (!empty ($this->disabled[$field])) continue;\n if (in_array ($field, $this->__Exclude)) continue;\n $NewFields[] = $field;\n }\n return $NewFields;\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'templateId' => fn(ParseNode $n) => $o->setTemplateId($n->getStringValue()),\n 'values' => fn(ParseNode $n) => $o->setValues($n->getCollectionOfObjectValues([SettingValue::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"private function getFacetFields()\n {\n $fields = [];\n\n foreach ($this->getConfig()->getFacetConfig() as $facet) {\n $fields[] = $facet['field'];\n }\n\n return array_unique($fields);\n }",
"private function fields() {\n $fields = array();\n include($this->directories['plugin']['var']['dir'].'/fields.php');\n return $fields;\n }",
"public function getFormFields() {\n $fields = new FieldList();\n\n if ($shippingRegion = $this->Region()) {\n $field = new StreakRegionShippingModifierField(\n $this,\n $this->Description,\n $shippingRegion->ID\n );\n /** @var Price $price */\n $price = Price::create();\n $price->setAmount($this->Price);\n\n $field->setAmount($price);\n $fields->push($field);\n };\n\n if (!$fields->exists()) {\n Requirements::javascript('swipestreak-regionalshipping/javascript/RegionalShippingModifierField.js');\n }\n\n\n return $fields;\n }",
"function getReplacesTerms() {\n\t\treturn $this->_ReplacesTerms;\n\t}",
"public function fields(): array\n {\n return [];\n }",
"public function getChangedFields()\n {\n\n $fields = [];\n\n if ($this->synchronized || !static::$track) {\n return $fields;\n }\n\n foreach ($this->savedData as $key => $value) {\n\n if ($value != $this->data[$key]) {\n $fields[] = $key;\n }\n }\n\n return $fields;\n\n }",
"public function getFields() {\n\t\treturn array(\n\t\t\tself::FIELD_ID,\n\t\t\tself::FIELD_PHRASE_ID,\n\t\t\tself::FIELD_LANGUAGE_ID,\n\t\t\tself::FIELD_TRANSLATION,\n\t\t\tself::FIELD_CREATED_AT,\n\t\t\tself::FIELD_USER_ID,\n\t\t);\n\t}",
"public function getPivotUpdateRules() : array\n {\n return $this->getFields()\n ->mapWithKeys(function (Field $field) {\n return [$field->getName() => $field->getUpdateRules()];\n })\n ->toArray();\n }",
"function FieldTypesArray() {}",
"public function getExternalizableFieldNames(): array\n\t{\n\t\t$externalizableList = [\n\t\t\t$this->fieldNameMap->getBindings(),\n\t\t];\n\n\t\tif ($this->fieldNameMap->isMultipleIdsFilled())\n\t\t{\n\t\t\t$externalizableList[] = $this->fieldNameMap->getMultipleIds();\n\t\t}\n\t\tif ($this->fieldNameMap->isSingleIdFilled())\n\t\t{\n\t\t\t$externalizableList[] = $this->fieldNameMap->getSingleId();\n\t\t}\n\n\t\treturn $externalizableList;\n\t}",
"protected function prepareFields(): array\n {\n $formFields = [];\n foreach ($this->toArray() as $key => $value) {\n if ($value !== null) {\n $formFields[ucfirst($key)] = $value;\n }\n }\n return $formFields;\n }",
"public function &getFields() { return $this->fields; }",
"private function getSubmissionFields()\n {\n $submissionFields = array();\n $submissionFieldLookup = [];\n\n // Prepare additional fields if project submission is enabled\n if ($this->getSystemSetting(\"submission-pid\") !== null && $this->getSystemSetting('submission-target') == 1) {\n \n $targetPID = $this->getSystemSetting(\"submission-pid\");\n\n $result = $this->query(\"\n SELECT\n field_name,\n element_type,\n element_label,\n element_enum,\n element_note,\n element_validation_type,\n field_req,\n regex_js\n FROM redcap_metadata AS m\n LEFT JOIN redcap_validation_types AS v\n ON m.element_validation_type = v.validation_name\n WHERE m.project_id = $targetPID\n AND m.form_name = 'requester_info'\n AND m.misc = '@USER-DEFINED'\n ORDER BY field_order\n \");\n\n while ($row = db_fetch_assoc($result)) {\n\n if ($row['element_type'] == 'yesno') {\n $row['element_type'] = 'radio';\n $row['element_enum'] = '1,Yes\\n0,No';\n }\n else if ($row['element_type'] == 'truefalse') {\n $row['element_type'] = 'radio';\n $row['element_enum'] = '1,True\\n0,False';\n }\n\n $formattedChoices = [];\n $choices = explode('\\n', $row['element_enum']);\n\n foreach ($choices as $choiceStr) {\n $splitChoice = explode(',', $choiceStr);\n\n $newChoice = array(\n 'value' => $splitChoice[0],\n 'label' => $splitChoice[1]\n );\n\n array_push($formattedChoices, $newChoice);\n }\n\n $row['choices'] = $formattedChoices;\n\n array_push($submissionFieldLookup, $row);\n }\n\n $submissionFields['submissionFieldLookup'] = $submissionFieldLookup;\n }\n\n return $submissionFields;\n }",
"abstract public function getFields(): array;",
"private function getFieldDefList(): array\n {\n $sql = <<<SQL\nWITH type_list AS\n(\n SELECT\n typname,\n typnamespace,\n typtype\n FROM\n pg_type\n),\nfieldlist_prelim AS\n(\n SELECT\n column_name,\n is_nullable,\n column_default,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale,\n udt_schema,\n udt_name\n FROM\n information_schema.columns\n WHERE\n table_schema = :schema\n AND\n table_name = :table\n),\nfieldlist AS\n(\n SELECT\n fp.column_name,\n fp.is_nullable,\n fp.column_default,\n CASE WHEN data_type = 'USER-DEFINED' THEN\n (\n SELECT\n CASE\n WHEN tp.typtype = 'b' THEN\n 'base'\n WHEN tp.typtype = 'c' THEN\n 'composite'\n WHEN tp.typtype = 'd' THEN\n 'domain'\n WHEN tp.typtype = 'e' THEN\n 'enum'\n WHEN tp.typtype = 'p' THEN\n 'psuedo'\n WHEN tp.typtype = 'r' THEN\n 'range'\n END\n FROM\n type_list tp\n WHERE\n tp.typname = fp.udt_name\n AND tp.typnamespace = (\n SELECT\n oid\n FROM\n pg_namespace ns\n WHERE\n ns.nspname = fp.udt_schema\n )\n )\n ELSE\n data_type\n END AS data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale,\n udt_schema,\n udt_name\n FROM\n fieldlist_prelim fp\n)\n\nSELECT * FROM fieldlist;\nSQL;\n\n $sth = $this->db->prepare($sql);\n $sth->execute(\n [\n ':table' => $this->table->getName(),\n ':schema' => $this->table->getSchema()\n ]);\n\n return $sth->fetchAll(PDO::FETCH_OBJ);\n }",
"public function get_fields(array $options = null) {\n\n if ($fieldpatterns = $this->get_pattern_set('field')) {\n $fieldids = array_keys($fieldpatterns);\n if (!empty($options['exclude'])) {\n $fieldids = array_diff($fieldids, $options['exclude']);\n }\n return $this->df->field_manager->get_fields_by_id($fieldids);\n }\n\n return array();\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(WindowsQualityUpdateClassification::class)),\n 'isExpeditable' => fn(ParseNode $n) => $o->setIsExpeditable($n->getBooleanValue()),\n 'kbArticleId' => fn(ParseNode $n) => $o->setKbArticleId($n->getStringValue()),\n ]);\n }",
"public function getFields() {\n if($this->cachedFields == null) {\n $this->cachedFields = $this->createFields();\n }\n\n return $this->cachedFields;\n }",
"public function __invoke(): array\n {\n $mappedFields = [];\n foreach ($this->aggregatedFields() as $fieldKey => $fieldData) {\n if ($fieldData instanceof Field) {\n $mappedFields[] = $fieldData;\n continue;\n }\n if ($fieldData instanceof FieldDefinition) {\n /** @var \\GraphQL\\Type\\Definition\\FieldDefinition $fieldData */\n if (!$fieldData->resolveFn && ($fieldResolver = $this->type->getFieldResolver($fieldData->name))) {\n $fieldData->config['resolve'] = $fieldData->resolveFn = $fieldResolver;\n }\n $mappedFields[] = $fieldData;\n continue;\n }\n $field = [];\n if (is_string($fieldKey)) {\n $field['name'] = $fieldKey;\n } else {\n $field['name'] = $fieldData instanceof \\Traversable ? $fieldData['name'] : null;\n }\n if ($fieldData instanceof \\Traversable) {\n $field += $fieldData;\n } else {\n $field['type'] = $fieldData;\n }\n if (!isset($field['resolve']) || !is_callable($field['resolve'])) {\n if ($fieldResolver = $this->type->getFieldResolver($field['name'])) {\n $field['resolve'] = $fieldResolver;\n }\n }\n $mappedFields[] = $field;\n }\n return $mappedFields;\n }",
"public function toArray(): array\n {\n $values = array();\n foreach ($this->getAllFieldsAliases() as $name) {\n $field = $this->{'field' . \\ucfirst($name)};\n $values[$name] = $field['value'];\n }\n\n return $values;\n }",
"public function getChangedFields() {}",
"private function set_fields() {\r\n\r\n\t\t$fields = array();\r\n\r\n\t\t$temp_fields = get_option( 'wc_fields_billing' );\r\n\r\n\t\tif ( $temp_fields !== false ) {\r\n\t\t\t$fields = array_merge( $fields, $temp_fields );\r\n\t\t}\r\n\r\n\t\t$temp_fields = get_option( 'wc_fields_shipping' );\r\n\r\n\t\tif ( $temp_fields !== false ) {\r\n\t\t\t$fields = array_merge( $fields, $temp_fields );\r\n\t\t}\r\n\r\n\t\t$temp_fields = get_option( 'wc_fields_additional' );\r\n\r\n\t\tif ( $temp_fields !== false ) {\r\n\t\t\t$fields = array_merge( $fields, $temp_fields );\r\n\t\t}\r\n\r\n\t\treturn $fields;\r\n\t}",
"public function values(): array\n\t{\n\t\treturn $this->fields()->values()->all();\n\t}",
"public function getFields(): array\n {\n if ($this->_fields !== null) {\n return $this->_fields;\n }\n\n try {\n $id = $this->getFieldLayoutId();\n } catch (InvalidConfigException $e) {\n return [];\n }\n\n return $this->_fields = Craft::$app->getFields()->getFieldsByLayoutId($id);\n }",
"public function fields()\n {\n return [];\n }",
"public function fields()\n {\n return [];\n }",
"public function fields()\n {\n return [];\n }",
"public function fields()\n {\n return [];\n }",
"public function fields()\n {\n return [];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'filter' => fn(ParseNode $n) => $o->setFilter($n->getObjectValue([WorkbookFilter::class, 'createFromDiscriminatorValue'])),\n 'index' => fn(ParseNode $n) => $o->setIndex($n->getIntegerValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'values' => fn(ParseNode $n) => $o->setValues($n->getObjectValue([Json::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"public function getFieldsArray($create = false) {}",
"private static function sanitizeReplace($replace){\n $final = [];\n \n foreach ($replace as $field => $value) {\n $value = str_replace('\\'', '\\\\\\'', $value);\n $value = str_replace('\\\"', '\\\\\\\"', $value);\n // $value = str_replace('<', '\\<', $value);\n // $value = str_replace('>', '\\>', $value);\n $final[$field] = $value;\n }\n return $final;\n }",
"protected function _getFields()\n\t{\n\t\treturn array(\n\t\t\t'tms_modification' => array(\n\t\t\t\t'modification_id' => array('type' => self::TYPE_UINT, 'autoIncrement' => true),\n\t\t\t\t'title' => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 50,\n\t\t\t\t\t'verification' => array('$this', '_verifyPrepareTitle'), 'requiredError' => 'please_enter_valid_title'),\n\t\t\t\t'template_title' => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 75),\n\t\t\t\t'style_id' => array('type' => self::TYPE_UINT, 'required' => true),\n\n\t\t\t\t'execute_order' => array('type' => self::TYPE_UINT, 'default' => 10),\n\t\t\t\t'description' => array('type' => self::TYPE_STRING, 'default' => ''),\n\n\t\t\t\t'modification_type' => array('type' => self::TYPE_STRING, 'default' => 'str_replace', 'allowedValues' => array('str_replace', 'preg_replace', 'callback')),\n\n\t\t\t\t'search_value' => array('type' => self::TYPE_STRING, 'default' => '', 'noTrim' => true),\n\t\t\t\t'replace_value' => array('type' => self::TYPE_STRING, 'default' => '', 'noTrim' => true),\n\n\t\t\t\t'callback_class' => array('type' => self::TYPE_STRING, 'maxLength' => 75, 'default' => ''),\n\t\t\t\t'callback_method' => array('type' => self::TYPE_STRING, 'maxLength' => 50, 'default' => ''),\n\n\t\t\t\t'addon_id' => array('type' => self::TYPE_STRING, 'maxLength' => 25, 'default' => ''),\n\t\t\t\t'version_id' => array('type' => self::TYPE_UINT, 'default' => 0),\n\t\t\t\t'version_string' => array('type' => self::TYPE_STRING, 'maxLength' => 30, 'default' => ''),\n\t\t\t\t'active' => array('type' => self::TYPE_UINT, 'allowedValues' => array(0, 1), 'default' => 1),\n\t\t\t)\n\t\t);\n\t}",
"public function fieldUpdate()\n\t{\n\t\t$fieldUpdate=array();\n\t\tforeach($this->getTable()->result_array() as $row)\n\t\t{\n\t\t\t$fieldUpdate[]=array(\n\t\t\t\t'field'=>$row['Field'],\n\t\t\t\t'max_length'=>preg_match('/varchar/',$row['Type']) ? (preg_replace('/[A-Za-z()]/','',$row['Type'])!=='' ? '\\'maxlength\\'=>'.preg_replace('/[A-Za-z()]/','',$row['Type']).',' : false) : false,\n\t\t\t\t'type'=>preg_match('/text/',$row['Type']) ? 'Area' : 'Field',\n\t\t\t\t'required'=>$row['Null']=='NO' ? true : false,\n\t\t\t\t'input'=>preg_match('/^(password|pass|passwd|passcode)$/i',$row['Field']) ? 'password' : 'text',\n\t\t\t);\n\t\t}\n\t\treturn $fieldUpdate;\n\t}",
"public function getFieldList()\n {\n return $this->_fieldList;\n }",
"public function get_all_external_fields() {\n\n\t\tif ( ! empty( $this->external_fields ) ) {\n\t\t\treturn $this->external_fields;\n\t\t}\n\n\t\t$this->external_fields = array();\n\t\tif ( tvd_has_external_fields_plugins() ) {\n\t\t\t$this->external_fields = array_merge_recursive( $this->get_acf_fields( false, $this->field_types ), $this->external_fields );\n\t\t}\n\n\t\treturn $this->external_fields;\n\t}",
"public function getFieldsAttribute(): Collection\n {\n if (! $repeatable = $this->getRepeatable()) {\n return collect([]);\n }\n\n return $repeatable->getRegisteredFields();\n }",
"public function fields(): array\n {\n return [\n ID::make(),\n DateTime::make('createdAt')->sortable()->readOnly()->hidden(),\n DateTime::make('updatedAt')->sortable()->readOnly()->hidden(),\n Str::make('slug'),\n Str::make('name'),\n ];\n }",
"public function getFieldsData()\n {\n $cacheKey = $this->getCacheKey();\n\n if (isset($this->getFieldsDataCache[$cacheKey])) {\n\n return $this->getFieldsDataCache[$cacheKey];\n }\n\n $data = array();\n $db = \\Database::getInstance()->prepare(\"\n SELECT * FROM (\n SELECT\n ld.master_id AS id,\n IFNULL(ff.name, ld.name) AS name,\n IF(ff.label IS NULL OR ff.label='', ld.name, ff.label) AS label,\n ff.type,\n ff.options,\n ld.field_id,\n ld.sorting\n FROM tl_lead_data ld\n LEFT JOIN tl_form_field ff ON ff.id=ld.master_id\n LEFT JOIN tl_lead l ON ld.pid=l.id\n WHERE l.master_id=?\" . (!empty($this->fieldIds) ? (\" AND ld.field_id IN (\" . implode(',', $this->fieldIds) . \")\") : \"\") . \"\n ORDER BY l.master_id!=l.form_id\n ) ld\n GROUP BY field_id\n ORDER BY \" . (!empty($this->fieldIds) ? \\Database::getInstance()->findInSet(\"ld.field_id\", $this->fieldIds) : \"sorting\")\n )->execute($this->formId);\n\n while ($db->next()) {\n $data[$db->id] = $db->row();\n }\n\n $this->getFieldsDataCache[$cacheKey] = $data;\n\n return $data;\n }",
"public function toArray(): array\n {\n return [\n 'type' => 'partial',\n 'expr' => $this->regularExpression,\n ];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'comment' => fn(ParseNode $n) => $o->setComment($n->getStringValue()),\n 'createdBy' => fn(ParseNode $n) => $o->setCreatedBy($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])),\n 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()),\n 'items' => fn(ParseNode $n) => $o->setItems($n->getCollectionOfObjectValues([DocumentSetVersionItem::class, 'createFromDiscriminatorValue'])),\n 'shouldCaptureMinorVersion' => fn(ParseNode $n) => $o->setShouldCaptureMinorVersion($n->getBooleanValue()),\n ]);\n }",
"public function get_values() {\n\t\t$values = [];\n\n\t\tforeach ( $this->fields as $field ) {\n\t\t\t$values[$field->name] = $field->get_value();\n\t\t}\n\n\t\treturn $values;\n\t}"
] | [
"0.67094177",
"0.6581179",
"0.632138",
"0.62687904",
"0.61752635",
"0.6167777",
"0.61544096",
"0.6133821",
"0.60789096",
"0.6060479",
"0.60374373",
"0.603728",
"0.5987658",
"0.5983393",
"0.5976312",
"0.5976312",
"0.5957291",
"0.5942206",
"0.5910858",
"0.5910759",
"0.5908768",
"0.5896189",
"0.5886965",
"0.5867383",
"0.5864676",
"0.5864676",
"0.5864676",
"0.58636",
"0.5848744",
"0.5840645",
"0.58307236",
"0.58019686",
"0.57887685",
"0.5775925",
"0.57679373",
"0.5764153",
"0.5750926",
"0.57452804",
"0.5733837",
"0.5715506",
"0.57048357",
"0.5687976",
"0.5679136",
"0.5668032",
"0.56581783",
"0.5652761",
"0.56498253",
"0.5635099",
"0.5632096",
"0.56241125",
"0.5616087",
"0.5602331",
"0.5599886",
"0.5599729",
"0.5592827",
"0.5592691",
"0.5591825",
"0.5577995",
"0.55701566",
"0.556568",
"0.55576694",
"0.5554072",
"0.554618",
"0.5546069",
"0.55410916",
"0.55353934",
"0.55329263",
"0.5526966",
"0.5521366",
"0.55208844",
"0.5518703",
"0.55084556",
"0.550098",
"0.5500445",
"0.5495825",
"0.5492872",
"0.5490841",
"0.54886305",
"0.54855716",
"0.5482428",
"0.54795676",
"0.5468913",
"0.54688066",
"0.54688066",
"0.54688066",
"0.54688066",
"0.54688066",
"0.54641306",
"0.5463864",
"0.5463593",
"0.5462209",
"0.54587",
"0.5458512",
"0.5453635",
"0.54409057",
"0.543688",
"0.5432874",
"0.54295415",
"0.54274",
"0.5412063"
] | 0.8786153 | 0 |
String replace for specific field, conditionally uses htmlspecialchars. | protected function fieldReplaceString($search, $replace, $subject, $field)
{
if (in_array($field, $this->raw_fields)) {
$replaced = str_replace($search, $replace, $subject);
} else {
$replaced = str_replace($search, e($replace), $subject);
}
return $replaced;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function escapeField($string);",
"public function fn_htmlspecialchars($str, $arField = array(), $arItem = array(), $profile = array())\n\t{\n\t\t$str = trim($str);\n\n\t\t//static $search = array(\"&\", \"\\\"\", \"«\", \"»\", \">\", \"<\", \"'\");\n\t\t//static $replace = array(\"&\", \""\", \""\", \""\", \">\", \"<\", \"'\");\n\t\t//return str_replace($search, $replace, $str);\n\n\t\t$str = htmlspecialcharsbx($str);\n\n\t\treturn $str;\n\t}",
"private function htmlspecialcarfy(&$value) {\r\n $value = htmlspecialchars($value);\r\n }",
"function rehtmlspecialchars($arg){\n\t//$arg = str_replace(\"\", \"<\", $arg);\n\t//$arg = str_replace(\" \", \"_\", $arg);\n\t$arg = str_replace(\"/\", \"\", $arg);\n\t$arg = str_replace(\"&\", \"\", $arg);\n\t$arg = str_replace(\"'\", \"\", $arg);\n\t$arg = str_replace(\"#\", \"\", $arg);\n\t$arg = str_replace(\"(\", \"\", $arg);\n\t$arg = str_replace(\")\", \"-\", $arg);\n\t$arg = str_replace(\".\", \"\", $arg);\n\t\n\treturn $arg;\n\t}",
"function lynt_antispam_replace($field)\n {\n $replaced = str_replace('=\"comment\"', '=\"lynt-comment\"', $field);\n return $replaced;\n }",
"function secur($string){return htmlspecialchars($string, ENT_QUOTES|ENT_SUBSTITUTE);}",
"function filter($value){\n return htmlspecialchars($value);\n }",
"public function getValueEncoded($field) {\n return htmlspecialchars($this->getValue($field));\n}",
"function prepare_field($field)\n{\n return trim(preg_replace(\"/[<>&=%:'“]/i\", \"\", $field));\n}",
"function sterilize($input){\r\n return htmlspecialchars($input);\r\n }",
"function txt_htmlspecialchars($t=\"\")\n\t{\n\t\t// Use forward look up to only convert & not {\n\t\t$t = preg_replace(\"/&(?!#[0-9]+;)/s\", '&', $t );\n\t\t$t = str_replace( \"<\", \"<\" , $t );\n\t\t$t = str_replace( \">\", \">\" , $t );\n\t\t$t = str_replace( '\"', \""\", $t );\n\t\t$t = str_replace( \"'\", ''', $t );\n\t\t\n\t\treturn $t; // A nice cup of?\n\t}",
"function mild_htmlspecialchars($string) {\n $subst = array(\n '\"' => '"',\n '&' => '&',\n '<' => '<',\n '>' => '>',\n );\n return preg_replace('/(&(?:\\w+|#x[0-9A-Fa-f]+|#\\d+);|[\"&<>])/e',\n 'isset(\\$subst[\"$1\"]) ? \\$subst[\"$1\"] : \"$1\"', $string);\n }",
"function txt_UNhtmlspecialchars($t=\"\")\n\t{\n\t\t$t = str_replace( \"&\" , \"&\", $t );\n\t\t$t = str_replace( \"<\" , \"<\", $t );\n\t\t$t = str_replace( \">\" , \">\", $t );\n\t\t$t = str_replace( \""\", '\"', $t );\n\t\t$t = str_replace( \"'\", \"'\", $t );\n\t\t\n\t\treturn $t;\n\t}",
"function htmlspecialchars(&$value)\n\t{\n\t\t$value = htmlspecialchars($value);\n\t}",
"private function convertHtmlSpecialChars( &$var_array, $fields )\n {\n foreach($fields as $f)\n {\n $var_array[$f] = htmlspecialchars ( $var_array[$f], ENT_COMPAT, $this->config['charset'] );\n }\n }",
"private function convertHtmlSpecialChars( &$var_array, $fields )\r\n {\r\n foreach($fields as $f)\r\n {\r\n $var_array[$f] = htmlspecialchars ( $var_array[$f], ENT_COMPAT, $this->viewVar['charset'] );\r\n }\r\n }",
"function pun_htmlspecialchars($str)\r\n{\r\n\t$str = preg_replace('/&(?!#[0-9]+;)/s', '&', $str);\r\n\t$str = str_replace(array('<', '>', '\"'), array('<', '>', '"'), $str);\r\n\r\n\treturn $str;\r\n}",
"function antiinjection($data){\n\t$filter_sql = stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES)));\n \treturn $filter_sql;\n}",
"function sanitiseString($strField)\n{\n\t$strOut = filter_var($strField, FILTER_SANITIZE_STRING);\n\treturn $strOut;\n}",
"function _xss_clean($field, $is_image = FALSE)\r\n\t{\r\n\t\t$this->{$field} = xss_clean($this->{$field}, $is_image);\r\n\t}",
"function e($string)\r\n{\r\n if ($string) {\r\n return htmlspecialchars($string);\r\n }\r\n}",
"public function getCleanString(string $field): string\n {\n return htmlspecialchars(trim($this->getString($field)));\n }",
"public function htmlValue($field) {\n return htmlentities($this->value($field), ENT_COMPAT, 'UTF-8'); \n }",
"function anti_injection($data){\n\t$filter = stripslashes(strip_tags(htmlspecialchars($data, ENT_QUOTES)));\n\treturn $filter;\n}",
"function _sanitize_text_fields($str, $keep_newlines = \\false)\n {\n }",
"function hte($str) {\n return htmlspecialchars($str);\n}",
"function replace_invalid_values($value,$opt){\n\n if(is_string($value)){\n $value = preg_replace(\"/&/\", \"&\", $value);\n $value = preg_replace(\"/</\", \"<\", $value);\n $value = preg_replace(\"/>/\", \">\", $value);\n $value = preg_replace(\"/\\\"/\", \""\", $value);\n $value = preg_replace(\"/\\'/\", \""\", $value);\n }\n return $value;\n }",
"function safety($text){\r\n $text = strip_tags($text); //Remove html tags\r\n $text = $this->ixd->real_escape_string($text); // Make safe for Database.\r\n return $text;\r\n }",
"function encode_html($str)\r\n\t{\r\n\t\t$_POST[$this->_current_field] = htmlspecialchars($str, ENT_COMPAT, \"UTF-8\");\r\n\t}",
"function filter($string){\n\t\t\t\t\t\t$string = htmlspecialchars($string);\n\t\t\t\t\t\t$string = preg_replace(array('`[^a-z0-9]`i','`[-]+`'), '-', $string);\n\t\t\t\t\t\t$string = mysql_escape_string($string);\n\t\t\t\t\t\treturn $string;\n\t\t\t\t\t}",
"function sanitize_text_field($str)\n {\n }",
"function escape_html($string) {\n $text = htmlspecialchars($string);\n // $text = strip_tags($string);\n\n return $text;\n}",
"function html_xss_clean($text) {\n return htmlspecialchars($text);\n}",
"function ailyak_facebook_group_feed_html_escape(&$text) {\n $text = htmlspecialchars($text);\n}",
"function htmlspecialchars_uni($message)\r\n{\r\n\t$message = preg_replace(\"#&(?!\\#[0-9]+;)#si\", \"&\", $message); // Fix & but allow unicode\r\n\t$message = str_replace(\"<\", \"<\", $message);\r\n\t$message = str_replace(\">\", \">\", $message);\r\n\t$message = str_replace(\"\\\"\", \""\", $message);\r\n\treturn $message;\r\n}",
"function filterSpecials($data){\n\n if(!$this->isUTF8($data))\n $data = utf8_encode($data);\n $data = htmlspecialchars($data, ENT_QUOTES);\n\n return $data;\n }",
"public function insertEscaped(...$field_values);",
"function e($str) {\n return htmlspecialchars($str);\n}",
"function string_html_specialchars( $p_string ) {\r\n\t# achumakov: @ added to avoid warning output in unsupported codepages\r\n\t# e.g. 8859-2, windows-1257, Korean, which are treated as 8859-1.\r\n\t# This is VERY important for Eastern European, Baltic and Korean languages\r\n\treturn preg_replace(\"/&(#[0-9]+|[a-z]+);/i\", \"&$1;\", @htmlspecialchars( $p_string, ENT_COMPAT, config_get('charset') ) );\r\n}",
"function _xss_sanitization_esc_html( $text ) {\n $safe_text = wp_check_invalid_utf8( $text );\n $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES );\n return $safe_text;\n}",
"function h($text)\n{\n return htmlspecialchars($text,ENT_QUOTES,Yii::app()->charset);\n}",
"function h($text)\n{\n return htmlspecialchars($text,ENT_QUOTES,Yii::app()->charset);\n}",
"function h($text)\n{\n return htmlspecialchars($text,ENT_QUOTES,Yii::app()->charset);\n}",
"function escape($value){//XSS attacks protection\n return htmlspecialchars($value , ENT_QUOTES,'UTF-8');\n }",
"function html($text)\n{\n\treturn htmlspecialchars($text, ENT_QUOTES, 'UTF-8');\n}",
"function sql_replace($table, $fields, $html_encode = true, $stripslashes = false)\n{\n\tglobal $db, $cache;\n\n\tif (empty($fields) || empty($table))\n\t{\n\t\treturn false;\n\t}\n\n\tif (!is_array($fields))\n\t{\n\t\t$fields = array($fields);\n\t}\n\n\t$sql_replace_array = array();\n\n\tif ($html_encode)\n\t{\n\t\tforeach ($fields as $field)\n\t\t{\n\t\t\t$sql_replace_array[] = \"UPDATE \" . $table . \" SET \" . $field . \" = REPLACE(\" . $field . \", '&', '&')\";\n\t\t\t$sql_replace_array[] = \"UPDATE \" . $table . \" SET \" . $field . \" = REPLACE(\" . $field . \", '&&', '&')\";\n\t\t\t$sql_replace_array[] = \"UPDATE \" . $table . \" SET \" . $field . \" = REPLACE(\" . $field . \", '\\\"', '"es;')\";\n\t\t\t$sql_replace_array[] = \"UPDATE \" . $table . \" SET \" . $field . \" = REPLACE(\" . $field . \", '<', '<')\";\n\t\t\t$sql_replace_array[] = \"UPDATE \" . $table . \" SET \" . $field . \" = REPLACE(\" . $field . \", '>', '>')\";\n\t\t}\n\t}\n\n\tif ($stripslashes)\n\t{\n\t\tforeach ($fields as $field)\n\t\t{\n\t\t\t$sql_replace_array[] = \"UPDATE \" . $table . \" SET \" . $field . \" = REPLACE(\" . $field . \", \\\"\\'\\\", \\\"'\\\")\";\n\t\t}\n\t}\n\n\tfor ($i = 0; $i < sizeof($sql_replace_array); $i++)\n\t{\n\t\t$db->sql_return_on_error(true);\n\t\t$result = $db->sql_query($sql_replace_array[$i]);\n\t\t$db->sql_return_on_error(false);\n\t}\n\n\treturn true;\n}",
"function _xss_sanitization_esc_attr( $text ) {\n $safe_text = wp_check_invalid_utf8( $text );\n $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES );\n return $safe_text;\n}",
"function html($data) {\n $data = htmlspecialchars($data, ENT_QUOTES); // <>\n return $data;\n }",
"function h($value){\n return htmlspecialchars($value, ENT_QUOTES);\n }",
"function h($text){\n\treturn htmlspecialchars($text, ENT_QUOTES, Yii::app()->charset);\n}",
"public function filter($value) {\n if (!is_scalar($value)) {\n return $value;\n }\n\n return htmlspecialchars($value, ENT_QUOTES);\n }",
"function _xss_sanitization_esc_textarea( $text ) {\n $safe_text = htmlspecialchars( $text, ENT_QUOTES );\n return $safe_text;\n}",
"function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {\n if ( $double_encode ) {\n $string = @htmlspecialchars( $string, $quote_style, $charset );\n } else {\n // Decode & into &\n $string = wp_specialchars_decode( $string, $quote_style );\n\n // Guarantee every &entity; is valid or re-encode the &\n $string = kses_normalize_entities( $string );\n\n // Now re-encode everything except &entity;\n $string = preg_split( '/(&#?x?[0-9a-z]+;)/i', $string, -1, PREG_SPLIT_DELIM_CAPTURE );\n\n for ( $i = 0; $i < count( $string ); $i += 2 )\n $string[$i ] = @htmlspecialchars( $string[$i], $quote_style, 'UTF-8' );\n\n $string = implode( '', $string );\n }\n\n return $string;\n\n}",
"function sanitize($dirty){\n return htmlentities($dirty,ENT_QUOTES,\"UTF-8\");\n}",
"function _un_htmlspecialchars($str)\n{\n\tstatic $rev_html_translation_table;\n\n\tif ( empty($rev_html_translation_table) )\n\t{\n\t\t$rev_html_translation_table = function_exists('get_html_translation_table') ? array_flip(get_html_translation_table(HTML_ENTITIES)) : array('&' => '&', ''' => '\\'', '"' => '\"', '<' => '<', '>' => '>');\n\t}\n\treturn strtr(str_replace('<br />', \"\\n\", $str), $rev_html_translation_table);\n}",
"function EscTxt2($text) {\n\t\tif($text) {\n\t\t\tif(MAGIC_QUOTES_ON) \n\t\t\t\treturn \"='\". $text .\"'\";\n\t\t\telse \n\t\t\t\treturn \"='\". addslashes($text) .\"'\";\n\t\t} else {\n\t\t\treturn \" IS NULL\";\n\t\t}\n\t}",
"protected function filterXss($value) {\n return htmlspecialchars($value, ENT_QUOTES);\n }",
"public function filter($value)\n {\n return htmlspecialchars((string) $value, $this->quoteStyle, $this->charset, $this->doubleEncode);\n }",
"function ___($text) {\n return htmlspecialchars($text);\n}",
"function sanitxt($sanitxt) {\r\n\t$sanitxt = str_replace('><','> <',$sanitxt);\r\n\r\n\t// remove HTML tags\r\n\t$sanitxt = strip_tags($sanitxt);\r\n\r\n\t// remove multiple spaces\r\n\t$sanitxt = preg_replace('/\\s+/', ' ', $sanitxt);\r\n\r\n\t// convert smart quotes into normal\r\n\tconvert_smart_quotes($sanitxt);\r\n\r\n\t// replace quotes and ampersands with HTML chars (recommended)\r\n\t// and encode string to UTF-8. UTF-8 is default from PHP 5.4.0 only\r\n\r\n\t$sanitxt = htmlspecialchars($sanitxt,ENT_QUOTES,\"UTF-8\",FALSE);\r\n\r\nreturn($sanitxt);\r\n}",
"function html_escape($value)\n{\n return apply_filters('html_escape', $value);\n}",
"function tohtml($strValue)\n{\n return htmlspecialchars($strValue);\n}",
"function esc_specialchars($value)\n{\n // Numbers and boolean values get turned into strings which can cause problems\n // with type comparisons (e.g. === or is_int() etc).\n return is_string($value) ? htmlspecialchars($value, ENT_QUOTES, sfConfig::get('sf_charset')) : $value;\n}",
"function convertHTML($strInput) //Convert to html special code\n{\n\t//$strInput = htmlspecialchars($strInput, ENT_QUOTES);\n\t$strInput = str_replace('\"', '"', $strInput);\n\t$strInput = str_replace(\"'\", \"'\", $strInput);\n\treturn $strInput;\n}",
"protected function replaceField(Field $field){\n }",
"abstract protected function _escape($s);",
"function sanitize($input) {\n return htmlspecialchars(strip_tags(trim($input)));\n }",
"function esc_html($text) {\n return htmlspecialchars($text);\n }",
"protected function sanitizeString($var){\n $var = stripslashes($var);\n $var = htmlspecialchars($var, ENT_QUOTES, 'UTF-8');\n $sanitizedVar = strip_tags($var);\n return $sanitizedVar;\n\t}",
"function sanitizeString($var)\n{\nglobal $connection;\n$var = strip_tags($var);\n$var = htmlentities($var);\n$var = stripslashes($var);\nreturn $connection->real_escape_string($var);\n}",
"function filter_mydata($data)\n{\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}",
"function filter($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}",
"function qa_post_text($field)\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\treturn isset($_POST[$field]) ? preg_replace('/\\r\\n?/', \"\\n\", trim(qa_gpc_to_string($_POST[$field]))) : null;\n}",
"function sanitize_html_string($string)\n{\n $pattern[0] = '/\\&/';\n $pattern[1] = '/</';\n $pattern[2] = \"/>/\";\n $pattern[3] = '/\\n/';\n $pattern[4] = '/\"/';\n $pattern[5] = \"/'/\";\n $pattern[6] = \"/%/\";\n $pattern[7] = '/\\(/';\n $pattern[8] = '/\\)/';\n $pattern[9] = '/\\+/';\n $pattern[10] = '/-/';\n $replacement[0] = '&';\n $replacement[1] = '<';\n $replacement[2] = '>';\n $replacement[3] = '<br>';\n $replacement[4] = '"';\n $replacement[5] = ''';\n $replacement[6] = '%';\n $replacement[7] = '(';\n $replacement[8] = ')';\n $replacement[9] = '+';\n $replacement[10] = '-';\n return preg_replace($pattern, $replacement, $string);\n}",
"function escape($html) { return htmlspecialchars($html, ENT_QUOTES | ENT_SUBSTITUTE, \"UTF-8\"); }",
"function getData($field) {\n if (!isset($_POST[$field])) {\n $data = \"\";\n htmlspecialchars($data, ENT_QUOTES);\n }\n else {\n $data = trim($_POST[$field]);\n $data = htmlspecialchars($data);\n htmlspecialchars($data, ENT_QUOTES);\n }\n return $data;\n }",
"public function sanitise($value, $isWysiwyg = false);",
"function replacespecialchars($str){\n\t$str=trim($str);\n\t$str=ereg_replace(\""\",\"\",$str);\n\t$str=ereg_replace(\"'\",\"\",$str);\n\t$str=ereg_replace(\"&\",\"&\",$str);\n\t$str=ereg_replace(\"\\;\",\";\",$str);\n\t$str=ereg_replace(\"-\",\"\",$str);\n\t$str=ereg_replace(\"#\",\"\",$str);\n\t$str=ereg_replace(\"\\?\",\"\",$str);\n\t$str=ereg_replace('\"',\"\",$str);\n\t$str=ereg_replace(\"'\",\"\",$str);\n\t$str=ereg_replace(\",\",\"\",$str);\n\t$str=ereg_replace(\"!\",\"\",$str);\n\t$str=ereg_replace(\"'\",\"\",$str);\n\t$str=ereg_replace(\"&\",\"\",$str);\n\t$str=ereg_replace(\"\\/\",\"\",$str);\n\t$str=ereg_replace(\"\\.\",\"\",$str);\n\t$str=ereg_replace(\":\",\"\",$str);\n\t$str=ereg_replace(\",\",\"\",$str);\n\t$str=ereg_replace(\";\",\"\",$str);\n\t$str=ereg_replace(\"\\(\",\"\",$str);\n\t$str=ereg_replace(\"\\)\",\"\",$str);\n\t$str=ereg_replace(\"!\",\"\",$str);\n\t$str=ereg_replace(\"\\>\",\"\",$str);\n\t$str=ereg_replace(\"\\%\",\"\",$str);\n\t$str=ereg_replace(\" \",\" \",$str);\n\t$str=ereg_replace(\" \",\" \",$str);\n\t$str=ereg_replace(\"�\",\"‚\",$str);\n\t$str=ereg_replace(\"�\",\"ƒ\",$str);\n\t$str=ereg_replace(\"�\",\"„\",$str);\n\t$str=ereg_replace(\"�\",\"…\",$str);\n\t$str=ereg_replace(\"�\",\"†\",$str);\n\t$str=ereg_replace(\"�\",\"‡\",$str);\n\t$str=ereg_replace(\"�\",\"ˆ\",$str);\n\t$str=ereg_replace(\"�\",\"‰\",$str);\n\t$str=ereg_replace(\"�\",\"Š\",$str);\n\t$str=ereg_replace(\"�\",\"‹\",$str);\n\t$str=ereg_replace(\"�\",\"Œ\",$str);\n\t$str=ereg_replace(\"�\",\"‘\",$str);\n\t$str=ereg_replace(\"�\",\"’\",$str);\n\t$str=ereg_replace(\"�\",\"“\",$str);\n\t$str=ereg_replace(\"�\",\"”\",$str);\n\t$str=ereg_replace(\"�\",\"•\",$str);\n\t$str=ereg_replace(\"�\",\"–\",$str);\n\t$str=ereg_replace(\"�\",\"—\",$str);\n\t$str=ereg_replace(\"�\",\"˜\",$str);\n\t$str=ereg_replace(\"�\",\"™\",$str);\n\t$str=ereg_replace(\"�\",\"š\",$str);\n\t$str=ereg_replace(\"�\",\"›\",$str);\n\t$str=ereg_replace(\"�\",\"œ\",$str);\n\t$str=ereg_replace(\"�\",\"Ÿ\",$str);\n\t$str=strtolower($str);\n\treturn $str;\n}",
"static function html_sanitization($input)\r\n {\r\n return strip_tags($input);\r\n }",
"function sanitizeString($var) {\n $var = stripslashes($var);\n $var = strip_tags($var);\n $var = htmlentities($var);\n return $var;\n}",
"function sanitize_string($str)\r\n{\r\n\t$str = strip_tags($str);\r\n $str = htmlentities($str, ENT_QUOTES);\r\n return $str;\r\n}",
"function filter( $str ){\r\n\t\treturn addslashes( $str );\r\n\t}",
"function twig_safe_filter($string)\n{\n return $string;\n}",
"function sanitize_post_field($field, $value, $post_id, $context = 'display')\n {\n }",
"function sanitize($data) {\n return htmlentities(strip_tags(mysql_real_escape_string($data)));\n }",
"function sanitizeString($str_input) {\r\n $str_input = strip_tags($str_input);\r\n $str_input = htmlentities($str_input);\r\n $str_input = stripslashes($str_input);\r\n return $str_input;\r\n}",
"function attribute_escape($text)\n {\n }",
"function db_output($string) {\n return htmlspecialchars($string);\n }",
"abstract public function escapeString($value);",
"function sanitize($string){\n\t$strip = strip_tags($string);\n\t$trim = trim($strip);\n\t$htmlchar = htmlspecialchars($trim);\n\treturn $htmlchar;\n\n}",
"public static function html($string) {\n return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');\n }",
"function sanitation($postVal){\n\t$rawinfo= $postVal;\n\t$removeSpecial = htmlspecialchars($rawinfo);\n\t$finalForm = escapeshellcmd($removeSpecial);\n\treturn $finalForm;\n}",
"function e($value)\n {\n return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false);\n }",
"function clean($field)\n{ \n //if post field is not empty\n if (!empty($_POST[$field])) {\n return htmlentities($_POST[$field], ENT_QUOTES, \"UTF-8\");\n } else {\n return '';\n }\n}",
"public abstract function escapeString($value);",
"function clean_output($string) \n{\n if (!($string)) return;\n echo htmlspecialchars($string, ENT_QUOTES);\n}",
"function string_attribute( $p_string ) \r\n{\r\n\t$p_string = string_html_specialchars( $p_string );\r\n\r\n\treturn $p_string;\r\n}",
"function HtmlEncode(&$str)\n{\n\t\t\t //$str = str_replace(\"&\", \"。。\",$str);\n $str = str_replace(\"<\", \"。。\",$str);\n $str = str_replace(\">\", \"。。\",$str);\n $str = str_replace(\"'\", \"\\'\",$str);\n $str = str_replace(\"*\", \"\",$str);\n $str = str_replace(\"\\n\", \"<br/>\",$str);\n $str = str_replace(\"\\r\\n\", \"<br/>\",$str);\n $str = str_replace(\"select\", \"\",$str);\n $str = str_replace(\"insert\", \"\",$str);\n $str = str_replace(\"update\", \"\",$str);\n $str = str_replace(\"delete\", \"\",$str);\n $str = str_replace(\"create\", \"\",$str);\n $str = str_replace(\"drop\", \"\",$str);\n $str = str_replace(\"delcare\", \"\",$str);\n\t\t\t return $str;\n}",
"function sanitize($input) {\n\t\n\t\t$input = stripslashes($input);\n\t\t$input = htmlspecialchars($input);\n\t\n\t\treturn $input;\n\t}",
"function sanitize($data) \n{\n\treturn htmlentities(strip_tags(mysql_real_escape_string($data)));\n}",
"function getData($field)\n{\n if (!isset($_POST[$field])) {\n $data = \"\";\n } else {\n $data = trim($_POST[$field]);\n $data = htmlspecialchars($data, ENT_QUOTES);\n }\n return $data;\n}"
] | [
"0.6722328",
"0.66236264",
"0.6571963",
"0.6474068",
"0.6471372",
"0.63852423",
"0.63519007",
"0.62458736",
"0.6235993",
"0.6154476",
"0.6129334",
"0.6121149",
"0.6119125",
"0.6101356",
"0.6094571",
"0.60825336",
"0.60549784",
"0.6053532",
"0.605181",
"0.6043265",
"0.6006101",
"0.59577924",
"0.59323007",
"0.5929413",
"0.5908272",
"0.5888365",
"0.5880997",
"0.58476883",
"0.5846996",
"0.5831725",
"0.58312833",
"0.58255804",
"0.5818401",
"0.58092165",
"0.58079606",
"0.579629",
"0.5778332",
"0.57597214",
"0.5758189",
"0.5753464",
"0.57513404",
"0.57507783",
"0.57507783",
"0.57387334",
"0.5728518",
"0.5723988",
"0.57230115",
"0.571624",
"0.5712862",
"0.57128376",
"0.57067037",
"0.57050693",
"0.570244",
"0.5696498",
"0.56945753",
"0.5686413",
"0.56805086",
"0.56788844",
"0.5672821",
"0.566771",
"0.5659985",
"0.5656511",
"0.5644145",
"0.563878",
"0.5636098",
"0.5632768",
"0.5628541",
"0.5615331",
"0.56103456",
"0.56059295",
"0.55966383",
"0.5594495",
"0.5586597",
"0.55666196",
"0.55662346",
"0.55555457",
"0.5554549",
"0.55459917",
"0.5545908",
"0.55437857",
"0.5539388",
"0.5534358",
"0.5533584",
"0.55293226",
"0.5528219",
"0.5527928",
"0.55273247",
"0.5522524",
"0.55203587",
"0.5519775",
"0.5515156",
"0.5508485",
"0.5502561",
"0.54992646",
"0.5499069",
"0.54962474",
"0.5494521",
"0.549426",
"0.5493428",
"0.54884887",
"0.54866874"
] | 0.0 | -1 |
Convenience method for setting a linking pattern on a field. | public function addLinkingPattern(string $field_name, string $href): void
{
// Make and set the linking pattern
$this->field_replacements[$field_name] = '<a href="'.$href.'">{'.$field_name.'}</a>';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setPattern($pattern) {}",
"public function setPattern($pattern)\n {\n $this->_pattern = $pattern;\n }",
"public function testSetReferencePattern1()\n {\n $this->object->setReferencePattern('%', '%');\n\n // test data to use\n $data = [\n 'test1' => '%wow1%',\n 'test2' => [\n 'test3' => '%wow3%'\n ],\n 'wow1' => '%test2.test3%',\n 'wow3' => 'xxx'\n ];\n $this->object->set(null, $data);\n\n $this->assertEquals('xxx', $this->object->get('test1'));\n }",
"public function setPattern($pattern) {\n $this->pattern = $pattern;\n return $this;\n }",
"public function SetPattern ($pattern) {\n\t\t$this->pattern = $pattern;\n\t\treturn $this;\n\t}",
"public function setPattern(?string $pattern): static\n {\n $this->pattern = $pattern;\n return $this;\n }",
"function AddLinkPrefix($pSet, $field, $link)\n{\n\tif(strpos($link,\"://\")===false && substr($link,0,7)!=\"mailto:\")\n\t\treturn $pSet->getLinkPrefix($field).$link;\n\treturn $link;\n}",
"public function setPatternIdentifier(PatternIdentifier $identifier)\n {\n $this->patternIdentifier = $identifier;\n }",
"public function setPattern($pattern)\n {\n $this->pattern = $pattern;\n return $this;\n }",
"public function setPattern($pattern)\n {\n $this->pattern = $pattern;\n return $this;\n }",
"public function setPattern($value)\n\t{\n\t\t$this->setViewState('Pattern',$value,'');\n\t}",
"public function getPatternedField(string $field);",
"public function setPatternedField(string $field, $value): ObjectInterface;",
"public function setPattern($pattern)\n {\n $this->options['pattern'] = $pattern;\n\n return $this;\n }",
"public function addLinkingPatternByRoute(string $field_name, string $route_name, array $replacement_map = [], $query_string = []): void\n {\n $Route = Route::getRoutes()->getByName($route_name);\n if ($Route == null) {\n throw new InvalidRouteException('Invalid route name '.$route_name);\n }\n\n $uri = $Route->uri;\n foreach ($replacement_map as $key => $new) {\n $uri = str_replace($key, $new, $uri);\n }\n\n if (is_array($query_string) && count($query_string) > 0) {\n $uri .= '?'.implode('&', array_map(function ($key, $val) {\n return $key.'='.$val;\n }, array_keys($query_string), $query_string));\n } elseif (is_string($query_string)) {\n $uri .= '?'.$query_string;\n }\n\n // If it already has a linking pattern, replace $field_name with that linking pattern\n $link_text = (isset($this->field_replacements[$field_name]) ? $this->field_replacements[$field_name] : '{'.$field_name.'}');\n\n // Make and set the linking pattern\n $this->field_replacements[$field_name] = '<a href=\"/'.$uri.'\">'.$link_text.'</a>';\n }",
"public function setSlugPattern($pattern);",
"public function createExternalLinkPattern(array $data): void\n {\n $uri = 'external-link-patterns';\n $required = [\n 'pattern' => self::TYPE_STRING,\n 'linkReplacement' => self::TYPE_STRING,\n ];\n $this->throwIfInvalid($required, $data);\n\n $this->client->post($this->buildUrl($uri), $data);\n }",
"function setUrlLink(){\n if( $this->id == 0 ) return;\n $url = $this->aFields[\"url\"]->toString();\n if( $url == \"\" ) return;\n $url = strip_tags( preg_replace( \"/[\\\"']/\", \"\", $url ) );\n if( !$this->aFields[\"url\"]->editable ) $this->aFields[\"url\"]->display = false;\n $this->aFields[\"url_link\"]->display = true;\n $this->aFields[\"url_link\"]->value = \"<a href=\\\"\".$url.\"\\\">\".$url.\"</a>\";\n }",
"public function setByKey($field, $key)\n {\n \n if (isset(static::$links[$field])) {\n \n $this->data[$field] = $this->orm->getIdByKey(\n SFormatStrings::subToCamelCase(static::$links[$field]),\n $key\n );\n \n } else {\n throw new LibDb_Exception('Invalid Route '.$field);\n }\n \n }",
"public function pattern($key, $pattern)\n {\n $this->patterns[$key] = $pattern;\n }",
"function _prep_url($field)\r\n\t{\r\n\t\t$this->{$field} = $this->form_validation->prep_url($this->{$field});\r\n\t}",
"public function setPattern(string $countryCode, string $pattern) : void\n {\n $this->patterns[$countryCode] = $pattern;\n }",
"public function setPattern($pattern) {\n if ($pattern instanceof PanelsPatternInterface) {\n $this->pattern = $pattern;\n $this->configuration['pattern'] = $pattern->getPluginId();\n }\n elseif (is_string($pattern)) {\n $this->pattern = NULL;\n $this->configuration['pattern'] = $pattern;\n }\n else {\n throw new \\Exception(\"Pattern must be a string or PanelsPatternInterface object\");\n }\n\n return $this;\n }",
"public function setLink($link);",
"public static function getPatternUrl()\n {\n return handles('antares::customfields/index');\n }",
"function addLinkToField($fieldName,$renderClass=\"\"){\r\n\t\t$this->fieldsToLink[$fieldName]=$renderClass;\r\n\t}",
"public function setDashPattern($pattern) {}",
"function setRefFields($val) {\n $this->_refFields = $val;\n }",
"public function set_permalink_structure($structure = '')\n {\n global $wp_rewrite;\n\n $wp_rewrite->init();\n $wp_rewrite->set_permalink_structure($structure);\n $wp_rewrite->flush_rules();\n }",
"function setFieldLinks(array $fieldLinks) {\n if ($fieldLinks !== ($oldFieldLinks = $this->fieldLinks)) {\n if ($this->immutable) throw self::immutableException();\n if (!$fieldLinks) throw new Ac_E_InvalidCall(\"\\$fieldLinks must not be empty\");\n $this->fieldLinks = $fieldLinks;\n $this->fieldLinksRev = array_flip($fieldLinks);\n $this->srcNNIdsRelation = false;\n }\n }",
"function setLink(&$link)\n {\n $this->_link = $link;\n }",
"public function setNumberPattern($pattern)\n\t{\n\t\t$this->number_pattern = $pattern;\n\t\treturn $this;\n\t}",
"function setLink($link) {\r\n $this->_link = $link;\r\n }",
"function setLink($link) {\r\n $this->_link = $link;\r\n }",
"public function setLinkFun(ModuleFunction $linkFun) {}",
"public function renderLinkAttributeFields() {}",
"public function renderLinkAttributeFields() {}",
"function _durp_link_field($base_uri, $field_name, DOMXPath $planXpath, $xpathQuery, $node) {\n $links = $planXpath->query($xpathQuery);\n $node->{$field_name} = array(LANGUAGE_NONE => array());\n foreach ($links as $linkNode) {\n $link_url = $base_uri . $linkNode->nodeValue;\n $node->{$field_name}[LANGUAGE_NONE][] = array(\n 'url' => $link_url,\n 'title' => $linkNode->nodeValue,\n );\n }\n}",
"public function setLink($value)\n {\n return $this->set('Link', $value);\n }",
"public function setLink($value)\n {\n return $this->set('Link', $value);\n }",
"public function setLink($value)\n {\n return $this->set('Link', $value);\n }",
"public function setLink($value)\n {\n return $this->set('Link', $value);\n }",
"public function setLink($value)\n {\n return $this->set('Link', $value);\n }",
"public function setGuid($guid, $isPermalink = false);",
"function ldap_mod_replace($link_identifier, $dn, $entry)\n{\n}",
"public static function linkField($text,$url='#',$option=array()) {\n $option['href']=$url;\n \t\treturn self::htmltag('a',$option,$text);\n\t}",
"public function setDatePattern($datePattern) {\r\n\t\t$this->setString('datePattern', $datePattern);\r\n\t}",
"public static function getPatternUrl()\n {\n return handles('antares::customfields/{name}/index');\n }",
"public function append_url_pattern($pattern) {\n $this->urls[] = $pattern;\n }",
"public function __construct($pattern) {\n $pattern = preg_quote($pattern, self::DELIMITER);\n $pattern = preg_replace_callback('/([\\\\\\\\]{1,3})\\*/', function($matches) {\n $length = strlen($matches[1]);\n if ($length === 1) {\n return '.*';\n }\n\n return '\\*';\n }, $pattern);\n\n $this->regexp = self::DELIMITER.'^'.$pattern.'$'.self::DELIMITER;\n }",
"public function setLink($link){\n\t\t$this->link = $link;\n\t}",
"public function setUriRule($pattern, $layout, $theme = null)\n\t{\n\t\t\n\t\t$this->themeUriRules[$pattern] = array('theme' => $theme, 'layout' => $layout);\n\n\t\t$this->rulesApplied(true);\n\t}",
"public function setField(string $field): static;",
"public function __construct( $pattern, $default = null )\n {\n $this->pattern = $pattern;\n $this->default = $default;\n }",
"public function setNamingPattern($pattern ='/([a-zA-Z1-9]+)(Function|Block)$/') {\n\t\t //\"/([a-zA-Z1-9]+)Function$/\";\n\t\t $this->_namingPattern = $pattern;\n\t}",
"public function setLink(?string $link)\n {\n $this->link = $link;\n\n return $this;\n }",
"public function fillField($field, $value, $fieldset = null, $tab = null, TableNode $params = null)\n {\n //use $needle expression in the beginning of the line to randomize the string entered with a-z 0-9 characters\n $needle = '%rand%';\n $randomCharactersAmount = 6;\n $randomString = substr(str_shuffle(\"0123456789abcdefghijklmnopqrstuvwxyz\"), 0, $randomCharactersAmount);\n\n if(stristr($value, $needle))\n {\n $value=substr_replace($value, $randomString, 0,6);;\n }\n\n $params = ($params) ? $params->getRowsHash() : array();\n $this->findField($field, 'field', $fieldset, $tab, $params)\n ->setValue($value);\n }",
"function create_field($field)\t{\n\t\t// vars\n $field['value'] = (array) $field['value'];\n\n\t\t$target = isset($field['value']['target']) ? $field['value']['target'] : ( isset($field['default_target']) ? $field['default_target'] : '_self');\n $class = isset($field['value']['class']) ? $field['value']['class'] : '';\n \n\t\t// html\n ?>\n <div class=\"acf-link-field-primary-row\">\n <label class=\"inline\"><?php _e('Text'); ?>:</label>\n <input type=\"text\" name=\"<?php echo $field['name']; ?>[text]\" value=\"<?php echo $field['value']['text']; ?>\" />\n\n <label class=\"inline\"><?php _e('URL'); ?>:</label>\n <input type=\"text\" name=\"<?php echo $field['name']; ?>[url]\" value=\"<?php echo $field['value']['url']; ?>\" />\n </div>\n\n <?php if( $field['show_title'] || $field['show_target'] || count($field['classes']) ): ?>\n <div class=\"acf-link-field-secondary-row\">\n <?php if( $field['show_title']): ?>\n <label class=\"inline\">Title Attribute</label>\n <input type=\"text\" name=\"<?php echo $field['name']; ?>[title]\" value=\"<?php echo $field['value']['title']; ?>\" />\n <?php endif; ?>\n\n <?php if( $field['show_target']): ?>\n <label class=\"inline\"><?php _e('Target'); ?></label>\n <select name=\"<?php echo $field['name']; ?>[target]\">\n <?php foreach( ACF_Link_Field::$targets as $k => $l ): ?>\n <option value=\"<?php echo $k; ?>\" <?php if($k == $target) echo 'selected=\"selected\"'; ?>><?php _e($l); ?></option>\n <?php endforeach; ?>\n </select>\n <?php endif; ?>\n\n <?php if( count($field['classes']) ): ?>\n <label class=\"inline\"><?php _e('Style'); ?></label>\n <select name=\"<?php echo $field['name']; ?>[class]\">\n <option value=\"\" <?php if(empty($class)) echo 'selected=\"selected\"'; ?>><?php _e('Default'); ?></option>\n <?php foreach( $field['classes'] as $c => $l ): ?>\n <option value=\"<?php echo $c; ?>\" <?php if($c == $class) echo 'selected=\"selected\"'; ?>><?php _e($l); ?></option>\n <?php endforeach; ?>\n </select>\n <?php endif; ?>\n </div>\n <?php endif; \n\t}",
"public function setLink($link){\n $this->link = $link;\n return $this;\n }",
"public function setFormLink($link) {\n $this->form_link = $link;\n }",
"protected function patterns() {\n throw new coding_exception('patterns() method needs to be overridden in each subclass of mod_dataform_field_patterns');\n }",
"public static function create_url($pattern, $request, $param)\n\t{\n\t\tpreg_match_alL($pattern, $request, $url_replace_array, PREG_PATTERN_ORDER);\n\t\t\n\t\t$url_replace_array = $url_replace_array[0]; // Get rid of first array layer\n\t\t\n\t\tif(in_array('{id}', $url_replace_array))\n\t\t{\n\t\t\tforeach($url_replace_array as $key => $value)\n\t\t\t{\n\t\t\t\tif($value == '{id}')\n\t\t\t\t{\n\t\t\t\t\t// Set/favor first parameter to id\n\t\t\t\t\t$url_replace_array[$key] = $param[0];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Set to 2nd passed parameter\n\t\t\t\t\t$url_replace_array[$key] = $param[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach($url_replace_array as $key => $value)\n\t\t\t{\n\t\t\t\t$i = 0;\n\t\t\t\t$url_replace_array[$key] = $param[$i];\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$url_array = preg_replace(array($pattern), $url_replace_array, $request);\n\t\t\n\t\t// var_dump($pattern_array);\n\t\t\n\t\techo '<br /><br />';\n\t\t\n\t\tvar_dump($url_replace_array);\n\t\t\n\t\techo '<br /><br />';\n\t\t\n\t\techo $url_array;\n\t\t\n\t\t// Start building url\n\t}",
"function dblions_fb_link() {\n\t$fblink = esc_attr( get_option( 'facebook_link' ) );\n\tcreate_input_field( array(\n\t\t\t'facebook_link', 'text', \n\t\t\t$fblink, 'Facebook Link'\n\t\t) );\n}",
"public function pattern($name, $pattern)\n {\n $this->routeObject->addPattern($name, $pattern);\n return $this;\n }",
"protected function getLinkAttributeFieldDefinitions() {}",
"protected function getLinkAttributeFieldDefinitions() {}",
"public function setLink(string $link): void\n {\n $this->link = $link;\n }",
"public function setLink($str, $type = Link::TYPE_HREF)\n {\n return parent::setLink(new Link($type, $str));\n }",
"public function setLink(string $value): Save\n {\n $this->link = $value;\n return $this;\n }",
"protected function preparePatternAndBackReferenceIndexes () {\n\t\t$protocols = implode('|', $this->allowedSchemes);\n\t\tif (($this->allowProtocol & self::ALLOW_PROTOCOL_ABSOLUTE) != 0) {\n\t\t\t$protocol = '('.$protocols.')://';\n\t\t} else if (($this->allowProtocol & self::ALLOW_PROTOCOL_RELATIVE) != 0) {\n\t\t\t$protocol = '(?:('.$protocols.'):)?//';\n\t\t} else {\n\t\t\t$protocol = '(?:('.$protocols.')://)?';\n\t\t}\n\n\t\t$auth = '';\n\t\tif ($this->allowBasicAuth) {\n\t\t\t$auth = static::PATTERN_PART_AUTH;\n\t\t\t$this->backReferencePosHostname = 5;\n\t\t\t$this->backReferencePosPort = 9;\n\t\t} else {\n\t\t\t$this->backReferencePosHostname = 2;\n\t\t\t$this->backReferencePosPort = 6;\n\t\t}\n\t\t\n\n\t\t$hostname = '';\n\t\t$hostnameParts = [];\n\t\tif ($this->allowDomains)\n\t\t\t$hostnameParts[] = static::PATTERN_PART_DOMAIN;\n\t\tif ($this->allowIPv4)\n\t\t\t$hostnameParts[] = static::PATTERN_PART_IPV4;\n\t\tif ($this->allowIPv6)\n\t\t\t$hostnameParts[] = static::PATTERN_PART_IPV6;\n\t\tif (count($hostnameParts) > 0) {\n\t\t\t$hostname = '(' . implode('|', $hostnameParts) . ')';\n\t\t} else {\n\t\t\t$hostname = '(' . implode('|', [\n\t\t\t\tstatic::PATTERN_PART_DOMAIN,\n\t\t\t\tstatic::PATTERN_PART_IPV4,\n\t\t\t\tstatic::PATTERN_PART_IPV6\n\t\t\t]) . ')';\n\t\t}\n\t\t\n\n\t\t$port = '';\n\t\tif (count($this->allowedPorts) > 0 || $this->allowPorts) {\n\t\t\t$port = static::PATTERN_PART_PORT;\n\t\t} else {\n\t\t\t$this->backReferencePosPort = NULL;\n\t\t}\n\n\n\t\t$this->pattern = str_replace([\n\t\t\t'{%protocol}', '{%auth}', '{%hostname}', '{%port}', \n\t\t\t'{%path}', '{%query}', '{%fragment}'\n\t\t], [\n\t\t\t$protocol, $auth, $hostname, $port, \n\t\t\tstatic::PATTERN_PART_PATH, static::PATTERN_PART_QUERY, static::PATTERN_PART_FRAGMENT\n\t\t], static::PATTERN_ALL);\n\t}",
"function resolveLink($fieldname, &$record){\n\t\tif ( !is_a($record, 'Dataface_Record') ){\n\t\t\ttrigger_error(\"Dataface_TableTool::resolveLink() expects an object of type 'Dataface_Record' as the second argument, but received '\".get_class($record).\"'\\n<br>\".Dataface_Error::printStackTrace());\n\t\t}\n\t\t$link = $record->getLink($fieldname);\n\t\n\t\tif ( is_array($link) ){\n\t\t\treturn Dataface_LinkTool::buildLink($link);\n\t\t} else if ( $link ){\n\t\t\treturn $this->_app->filterUrl($link);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t\n\t}",
"public function setLink($link)\n {\n $this->link = static::BASE_LINK . $link;\n\n return $this;\n }",
"public function setField($field);",
"public function setField($field);",
"public function setRegexurl($regex);",
"public function setRegexurl($regex) {\n }",
"public function getPattern();",
"public function getPattern();",
"function SetLink($link,$y=0,$page=-1)\n\t\t{\n\t\t\tif($y==-1) $y=$this->y;\n\t\t\tif($page==-1)\t$page=$this->page;\n\t\t\t$this->links[$link]=array($page,$y);\n\t\t}",
"public function setRegex($regexPattern) {\n\t\t$this->regex = $regexPattern;\n\t}",
"function setLinksource($linksource)\r\n\t{\r\n\t\t$this->linksource = $linksource;\r\n\t}",
"private function replaceLink(&$string, $match)\n\t{\n\t\t$attributes = $this->helpers->get('link')->getLinkAttributeList($match['0']);\n\n\t\tif (!$this->helpers->get('pass')->passLinkChecks($attributes))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$data = array();\n\t\t$isexternal = $this->helpers->get('file')->isExternal($attributes->href);\n\t\t$ismedia = $this->helpers->get('file')->isMedia($attributes->href);\n\t\t$iframe = $this->helpers->get('file')->isIframe($attributes->href, $data);\n\n\t\t// Force/overrule certain data values\n\t\tif ($iframe || ($isexternal && !$ismedia))\n\t\t{\n\t\t\t// use iframe mode for external urls\n\t\t\t$data['iframe'] = 'true';\n\t\t\t$this->helpers->get('data')->setDataWidthHeight($data, $isexternal);\n\t\t}\n\n\t\t$attributes->class = !empty($attributes->class) ? $attributes->class . ' ' . $this->params->class : $this->params->class;\n\t\t$link = $this->helpers->get('link')->buildLink($attributes, $data);\n\n\t\t$this->replaceOnce($match['0'], $link, $string);\n\t}",
"public function pattern($patterns) {\n\t\tforeach ((array) $patterns as $val) {\n\t\t\t$this->patterns[] = $val;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setPattern(string $type, ?string $pattern): void\n {\n if (!array_key_exists($type, $this->patterns)) {\n throw new \\OutOfBoundsException('The type you are trying to set, does not exists!');\n }\n\n if (null === $pattern) {\n $this->patterns[$type] = '/a^/';\n\n return;\n }\n\n // Check for a capturing group in the pattern.\n if (!preg_match('/^[^()]*\\([^)]*\\)[^()]*$/', $pattern)) {\n throw new GitChangelogException('The pattern must contain exactly one capturing group');\n }\n\n $this->patterns[$type] = \"/$pattern(?![^\\[]*\\])/\";\n }",
"function ca_rewrite_pattern_form($form, &$form_state, $ca_rewrite_pattern, $op = 'edit') {\n $form['description'] = array(\n '#type' => 'textfield',\n '#title' => t('Description'),\n '#default_value' => $ca_rewrite_pattern->description,\n );\n $form['pattern'] = array(\n '#type' => 'textfield',\n '#title' => t('Pattern'),\n '#default_value' => $ca_rewrite_pattern->pattern,\n );\n $form['replacement'] = array(\n '#type' => 'textfield',\n '#title' => t('Replacement'),\n '#default_value' => $ca_rewrite_pattern->replacement,\n );\n $form['actions'] = array('#type' => 'actions');\n $form['actions']['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save Pattern'),\n '#weight' => 40,\n );\n return $form;\n}",
"public function setLinkText(String $text)\n {\n $this->link_text = $text;\n $this->generateTitle();\n return $this;\n }",
"function arialist_set_linkcolor($css, $linkcolor) {\n $tag = '[[setting:linkcolor]]';\n $replacement = $linkcolor;\n if (is_null($replacement)) {\n $replacement = '#f25f0f';\n }\n $css = str_replace($tag, $replacement, $css);\n return $css;\n}",
"function arialist_set_linkcolor($css, $linkcolor) {\n $tag = '[[setting:linkcolor]]';\n $replacement = $linkcolor;\n if (is_null($replacement)) {\n $replacement = '#f25f0f';\n }\n $css = str_replace($tag, $replacement, $css);\n return $css;\n}",
"function link_do_better($link)\n{\n\t$link = preg_replace('#([\\w\\d]+=[\\w\\d]{32})#',null,$link);\n\tprint_r($link);\n\treturn $link;\n}",
"protected function initFlagsByPatternOrReverse ($pattern) {\n\t\t$scheme = static::FLAG_SCHEME_NO;\n\t\tif (mb_strpos($pattern, '//') === 0) {\n\t\t\t$scheme = static::FLAG_SCHEME_ANY;\n\t\t} else if (mb_strpos($pattern, 'http://') === 0) {\n\t\t\t$scheme = static::FLAG_SCHEME_HTTP;\n\t\t} else if (mb_strpos($pattern, 'https://') === 0) {\n\t\t\t$scheme = static::FLAG_SCHEME_HTTPS;\n\t\t}\n\t\t$this->flags |= $scheme;\n\t\t$host = 0;\n\t\tif (($scheme & static::FLAG_SCHEME_ANY) != 0) {\n\t\t\tif (mb_strpos($pattern, static::PLACEHOLDER_HOST) !== FALSE) {\n\t\t\t\t$host = static::FLAG_HOST_HOST;\n\t\t\t} else if (mb_strpos($pattern, static::PLACEHOLDER_DOMAIN) !== FALSE) {\n\t\t\t\t$host = static::FLAG_HOST_DOMAIN;\n\t\t\t} else {\n\t\t\t\tif (mb_strpos($pattern, static::PLACEHOLDER_TLD) !== FALSE)\n\t\t\t\t\t$host += static::FLAG_HOST_TLD;\n\t\t\t\tif (mb_strpos($pattern, static::PLACEHOLDER_SLD) !== FALSE)\n\t\t\t\t\t$host += static::FLAG_HOST_SLD;\n\t\t\t}\n\t\t\tif (mb_strpos($pattern, static::PLACEHOLDER_BASEPATH) !== FALSE)\n\t\t\t\t$host += static::FLAG_HOST_BASEPATH;\n\t\t}\n\t\tif ($host === 0)\n\t\t\t$host = static::FLAG_HOST_NO;\n\t\t$this->flags |= $host;\n\t\t$queryString = mb_strpos($pattern, '?') !== FALSE\n\t\t\t? static::FLAG_QUERY_INCL\n\t\t\t: static::FLAG_QUERY_NO;\n\t\t$this->flags |= $queryString;\n\t}",
"public function pattern($name, $value)\n {\n Route::pattern($name, $value);\n }",
"public function get_example($fieldname='my_field',$fieldtype,$is_repeatable=false) {\n\t\tif ($is_repeatable) {\n\t\t\treturn '<?php \n$hrefs = get_custom_field(\\''.$fieldname.':to_link_href\\',\\'http://yoursite.com/default/page/\\');\nforeach($hrefs as $h) {\n\tprintf(\\'<a href=\"%s\">Click Here</a><br/>\\', $h);\n}\n?>';\n\t\t}\n\t\telse {\n\t\t\treturn '<a href=\"<?php print_custom_field(\\''.$fieldname.':to_link_href\\',\\'http://yoursite.com/default/page/\\');?>\">Click here</a>';\n\t\t}\t\n\t}",
"public function getPatternForUri()\n {\n return '/' . preg_replace('/:[\\d\\w]+/i', '(' . $this->_paramPattern . ')', str_replace('/', '\\\\/', $this->_uri)) . '/i';\n }",
"public function addLinkifierRequest($pattern, $url_format_string)\n {\n // verify the required parameter 'pattern' is set\n if ($pattern === null || (is_array($pattern) && count($pattern) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $pattern when calling addLinkifier'\n );\n }\n // verify the required parameter 'url_format_string' is set\n if ($url_format_string === null || (is_array($url_format_string) && count($url_format_string) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $url_format_string when calling addLinkifier'\n );\n }\n\n $resourcePath = '/realm/filters';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($pattern !== null) {\n if('form' === 'form' && is_array($pattern)) {\n foreach($pattern as $key => $value) {\n $queryParams[$key] = $value;\n }\n }\n else {\n $queryParams['pattern'] = $pattern;\n }\n }\n // query params\n if ($url_format_string !== null) {\n if('form' === 'form' && is_array($url_format_string)) {\n foreach($url_format_string as $key => $value) {\n $queryParams[$key] = $value;\n }\n }\n else {\n $queryParams['url_format_string'] = $url_format_string;\n }\n }\n\n\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"protected function addPattern(array $schema, array $definition) : array\n {\n if (isset($definition['pattern'])) {\n $schema['pattern'] = $definition['pattern'];\n }\n return $schema;\n }",
"public function getPattern() {}",
"public function with($pattern, $callback)\n {\n $this->basepath = $this->prepare($pattern);\n if(is_callable($callback))\n call_user_func($callback);\n $this->basepath = '/';\n }",
"public function get_pattern()\n {\n return $this->pattern;\n }",
"static public function format($pattern, $values=null)\n\t{\n\t\tif (is_array($values))\n\t\t{\n\t\t\t$values = (object) $values;\n\t\t}\n\n\t\t$url = '';\n\t\t$parsed = self::parse($pattern);\n\n\t\tforeach ($parsed[0] as $i => $value)\n\t\t{\n\t\t\t$url .= ($i % 2) ? urlencode($values->$value[0]) : $value;\n\t\t}\n\n\t\treturn $url;\n\t}",
"public function deleteExternalLinkPattern(string $pattern): void\n {\n $uri = 'external-link-patterns';\n $request = [\n 'pattern' => $pattern,\n ];\n\n $this->client->delete($this->buildUrl($uri), $request);\n }"
] | [
"0.63645095",
"0.5949829",
"0.58516496",
"0.5824148",
"0.5730673",
"0.5727742",
"0.56747746",
"0.5599634",
"0.55771893",
"0.55771893",
"0.55607605",
"0.55489045",
"0.55346584",
"0.5311512",
"0.5288819",
"0.5287096",
"0.5266842",
"0.5211332",
"0.5210005",
"0.51585627",
"0.51575255",
"0.5131731",
"0.5088463",
"0.5072314",
"0.5048383",
"0.5016442",
"0.500739",
"0.49984193",
"0.49694848",
"0.49652323",
"0.49147844",
"0.49109206",
"0.48854512",
"0.48854512",
"0.4874266",
"0.48683846",
"0.48683846",
"0.48660555",
"0.4818849",
"0.4818846",
"0.48174623",
"0.48174623",
"0.48166147",
"0.48045355",
"0.47764578",
"0.47751597",
"0.4761467",
"0.47417477",
"0.4740324",
"0.4737546",
"0.47362056",
"0.47239426",
"0.47232893",
"0.4720143",
"0.47182414",
"0.47091717",
"0.47026935",
"0.46986347",
"0.46927235",
"0.4689538",
"0.4688686",
"0.4688078",
"0.46829957",
"0.4674839",
"0.46743837",
"0.46743837",
"0.46604633",
"0.46487734",
"0.46420854",
"0.4633612",
"0.46185666",
"0.46086556",
"0.46079853",
"0.46079853",
"0.46010315",
"0.45970967",
"0.45903155",
"0.45903155",
"0.45725733",
"0.45674616",
"0.4553035",
"0.45432445",
"0.4533495",
"0.4525959",
"0.452438",
"0.4515955",
"0.4512974",
"0.4512974",
"0.45094317",
"0.4504177",
"0.45030102",
"0.449801",
"0.4493453",
"0.44913143",
"0.44845343",
"0.44818676",
"0.44795817",
"0.44791597",
"0.4468576",
"0.44662538"
] | 0.67723024 | 0 |
Convenience method for creating a link replacement pattern by route name. | public function addLinkingPatternByRoute(string $field_name, string $route_name, array $replacement_map = [], $query_string = []): void
{
$Route = Route::getRoutes()->getByName($route_name);
if ($Route == null) {
throw new InvalidRouteException('Invalid route name '.$route_name);
}
$uri = $Route->uri;
foreach ($replacement_map as $key => $new) {
$uri = str_replace($key, $new, $uri);
}
if (is_array($query_string) && count($query_string) > 0) {
$uri .= '?'.implode('&', array_map(function ($key, $val) {
return $key.'='.$val;
}, array_keys($query_string), $query_string));
} elseif (is_string($query_string)) {
$uri .= '?'.$query_string;
}
// If it already has a linking pattern, replace $field_name with that linking pattern
$link_text = (isset($this->field_replacements[$field_name]) ? $this->field_replacements[$field_name] : '{'.$field_name.'}');
// Make and set the linking pattern
$this->field_replacements[$field_name] = '<a href="/'.$uri.'">'.$link_text.'</a>';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function generateI18nPatterns($routeName, Route $route);",
"function route($route_name)\n {\n global $router; \n return $router->generate($route_name);\n }",
"public static function when($pattern, Closure $callback, $name = null)\n {\n $apricot = self::getInstance();\n\n if (null !== $apricot->prefix) {\n $pattern = '/' === $pattern ? $apricot->prefix : $apricot->prefix . $pattern;\n }\n\n $originalPattern = $pattern;\n $pattern = preg_replace('#:([a-zA-Z0-9_]+)#is', '(.+)', $pattern);\n\n // Override an existing route with the exact same pattern\n foreach($apricot->routes as $routeName => $route) {\n if ($route['original_pattern'] == $originalPattern) {\n unset($apricot->routes[$routeName]);\n }\n }\n\n if (null === $name) {\n $name = count($apricot->routes);\n }\n\n $apricot->routes[$name] = array(\n 'pattern' => $pattern,\n 'original_pattern' => $originalPattern,\n 'callback' => $callback\n );\n }",
"public function addLinkingPattern(string $field_name, string $href): void\n {\n // Make and set the linking pattern\n $this->field_replacements[$field_name] = '<a href=\"'.$href.'\">{'.$field_name.'}</a>';\n }",
"public function pattern($name, $pattern)\n {\n $this->routeObject->addPattern($name, $pattern);\n return $this;\n }",
"public function generate ( $routeName, $params = [] ) {\n if ( !isset( $this->namedRoutes[ $routeName ] ) ) {\n throw new \\Exception(\"Route '{$routeName}' does not exist.\");\n }\n // Replace named parameters\n $route = $this->namedRoutes[$routeName];\n // prepend base path to route url again\n $url = $route;\n if ( preg_match_all( self::PARSE_REGEX, $route, $matches, PREG_SET_ORDER)) {\n foreach($matches as $match) {\n list($block, $pre, $type, $param, $optional) = $match;\n if ( $pre ) {\n $block = substr($block, 1);\n }\n if( isset( $params[$param] ) ) {\n $url = str_replace($block, $params[$param], $url);\n } elseif ($optional) {\n $url = str_replace($pre . $block, '', $url);\n }\n }\n }\n return $url;\n }",
"public function generate($routeName, $params = [])\n {\n // Check if named route exists\n if ( !isset($this->namedRoutes[$routeName]) ) {\n throw new RuntimeException(\"Route '{$routeName}' does not exist\");\n }\n // Replace named parameters\n $route = $this->namedRoutes[$routeName];\n // prepend base path to route url again\n $url = $this->basePath . $route;\n if ( $matches = Stringify::matchAll('`(/|\\.|)\\[([^:\\]]*+)(?::([^:\\]]*+))?\\](\\?|)`',$route,-1,PREG_SET_ORDER) ) {\n foreach ($matches as $index => $match) {\n list($block, $pre, $type, $param, $optional) = $match;\n if ( $pre ) {\n $block = substr($block,1);\n }\n if ( isset($params[$param]) ) {\n // Part is found, replace for param value\n $url = Stringify::replace($block, $params[$param],$url);\n } elseif ( $optional && $index !== 0 ) {\n // Only strip preceding slash if it's not at the base\n $url = Stringify::replace(\"{$pre}{$block}\",'',$url);\n } else {\n // Strip match block\n $url = Stringify::replace($block,'',$url);\n }\n }\n }\n return $url;\n }",
"function route($name, $params = [])\n{\n $url = \\Atom\\Routing\\Router::instance()->url($name, $params);\n\n $scheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? $_SERVER['HTTPS'] : 'http://';\n\n return startsWith($url, '/') ?\n $scheme . $_SERVER['HTTP_HOST'] . $url:\n $scheme . $_SERVER['HTTP_HOST'] . '/' . $url;\n}",
"public function getRoute($name){ }",
"function link_to_route($name, $title = null, $parameters = [], $attributes = [])\n {\n return app('html')->linkRoute($name, $title, $parameters, $attributes);\n }",
"function link_to_route($name, $title = null, $parameters = [], $attributes = [])\n {\n return app('html')->linkRoute($name, $title, $parameters, $attributes);\n }",
"function make_link($params = null) {\n $params = func_get_args();\n $name = array_shift($params);\n $url = call_user_func_array('url_for', $params);\n \n return sprintf('<a href=\"%s\">%s</a>', $url, $name);\n}",
"public function pattern($name, $value)\n {\n Route::pattern($name, $value);\n }",
"public function route(string $replace, string $name, array $parameters = [], bool $blank = false): static\n {\n return $this->away($replace, route($name, $parameters), $blank);\n }",
"function link_to_route(string $name, ?string $title = null, array $parameters = [], array $attributes = []): Htmlable\n {\n return \\app('html')->linkRoute($name, $title, $parameters, $attributes);\n }",
"public function generate($routeName, $params = [])\n {\n if (!($route = $this->getRoute($routeName))) {\n throw new RouteInvalidArgumentException(\"Route [$routeName] not registered.\");\n }\n\n if (!$this->hasMatchType($route->getPath())) {\n return $this->getRoutingPath() . $route->getPath();\n }\n\n $subject = $route->getPath();\n $replace = '';\n foreach ($params as $param) {\n $replace = preg_replace('/:(\\w+)/i', $param, $subject, 1);\n $subject = $replace;\n }\n\n return $this->getRoutingPath() . $replace;\n }",
"public function addNamedRoute($name, $url, $controller, $method) {\n $this->pathes[$url] = ['controller' =>$controller, 'method' => $method, 'name' => $name ];\n }",
"public static function toRoute($name)\n {\n return self::to(RouteHandler::getByName($name)[0]);\n }",
"public static function link_to_route($name, $title = null, $parameters = array(), $attributes = array()) {\n\t\treturn static::link(URL::to_route($name, $parameters), $title, $attributes);\n\t}",
"public function addRoute($name, $route, $priority = null);",
"function klein_compile_route( $route ) {\n\tif ( preg_match_all( '`(/|\\.|)\\[([^:\\]]*+)(?::([^:\\]]*+))?\\](\\?|)`', $route, $matches, PREG_SET_ORDER ) ) {\n\t\t$match_types = array(\n\t\t\t'i' => '[0-9]++',\n\t\t\t'a' => '[0-9A-Za-z]++',\n\t\t\t'h' => '[0-9A-Fa-f]++',\n\t\t\t'*' => '.+?',\n\t\t\t'**' => '.++',\n\t\t\t'' => '[^/]+?',\n\t\t);\n\t\tforeach ( $matches as $match ) {\n\t\t\tlist( $block, $pre, $type, $param, $optional ) = $match;\n\n\t\t\tif ( isset( $match_types[ $type ] ) ) {\n\t\t\t\t$type = $match_types[ $type ];\n\t\t\t}\n\t\t\tif ( $pre === '.' ) {\n\t\t\t\t$pre = '\\.';\n\t\t\t}\n\t\t\t// Older versions of PCRE require the 'P' in (?P<named>)\n\t\t\t$pattern = '(?:' . ( $pre !== '' ? $pre : null ) . '(' . ( $param !== '' ? \"?P<$param>\" : null ) . $type . '))' . ( $optional !== '' ? '?' : null );\n\n\t\t\t$route = str_replace( $block, $pattern, $route );\n\t\t}\n\t}\n\n\treturn \"`^$route$`\";\n}",
"public static function set($name, $uri_callback = NULL, $regex = NULL)\n\t{\n\t\tif($uri_callback === TRUE)\n\t\t{\n\t\t\t$uri_callback = ___($name);\n\t\t}\n\t\t\n\t\treturn Route::$_routes[$name] = new Route($uri_callback, $regex);\n\t}",
"public function route($name, array $params = [])\n {\n return $this->setUrl(\n route($name, $params)\n );\n }",
"function route(string $name, $params = [])\n{\n return Route::route($name, $params);\n}",
"protected function addRoute($name)\n {\n $plural = strtolower(Str::pluralStudly($name));\n $file_loc = base_path() . '/routes/web.php';\n $route = \"\\nRoute::resource('$plural', '{$name}Controller');\";\n\n $this->files->append($file_loc, $route);\n $this->info('Model resource route created successfully.');\n }",
"public function testRouteSetsCustomTemplate()\n {\n $route = new \\Slim\\Route('/hello/*', function () {});\n $route->setPattern('/hello/:name');\n $this->assertEquals('/hello/:name', $route->getPattern());\n }",
"public function link(string $name, array $params = [], array $options = []): string;",
"public static function route($routeName,$param = Array(),$withBase = true)\n\t{\n\t\treturn self::createByRoute($routeName,$param,$withBase);\n\t}",
"public function addRoute($name, \\Yaf\\Route_Interface $route){\r\n\t\t$this->_routes[$name]\t= $route;\r\n\t }",
"public function testUrlGenerationNamedRoute(): void\n {\n $routes = Router::createRouteBuilder('/');\n $routes->connect(\n '/users',\n ['controller' => 'Users', 'action' => 'index'],\n ['_name' => 'users-index']\n );\n $routes->connect(\n '/users/{name}',\n ['controller' => 'Users', 'action' => 'view'],\n ['_name' => 'test']\n );\n $routes->connect(\n '/view/*',\n ['action' => 'view'],\n ['_name' => 'Articles::view']\n );\n\n $url = Router::url(['_name' => 'test', 'name' => 'mark']);\n $this->assertSame('/users/mark', $url);\n\n $url = Router::url([\n '_name' => 'test', 'name' => 'mark',\n '?' => ['page' => 1, 'sort' => 'title', 'dir' => 'desc', ],\n ]);\n $this->assertSame('/users/mark?page=1&sort=title&dir=desc', $url);\n\n $url = Router::url(['_name' => 'Articles::view']);\n $this->assertSame('/view/', $url);\n\n $url = Router::url(['_name' => 'Articles::view', '1']);\n $this->assertSame('/view/1', $url);\n\n $url = Router::url(['_name' => 'Articles::view', '_full' => true, '1']);\n $this->assertSame('http://localhost/view/1', $url);\n\n $url = Router::url(['_name' => 'Articles::view', '1', '#' => 'frag']);\n $this->assertSame('/view/1#frag', $url);\n }",
"function smarty_function_route(array $params, URLBuilder $builder)\n{\n $name = $params['route'];\n unset($params['route']);\n\n return $builder->toRoute($name, $params);\n}",
"public function route(string $name, array $arguments = []): string\n {\n $name = \\trim($name);\n if(!isset($this->names[$name])){\n return $name;\n }\n $id = $this->names[$name];\n $path = $this->routes[$id]['path'];\n if(!empty($arguments)){\n $replace = [];\n foreach ($arguments as $key => $value) {\n $key = \\trim($key, ':{} ');\n if(\\is_object($value) && \\method_exists($value, '__toString')){\n $value = $value->__toString();\n }else{\n $value = (string)$value;\n }\n $replace['{'.$key.'}'] = $value;\n $replace[':'.$key] = $value;\n $replace['{'.$key.'}?'] = $value;\n $replace[':'.$key.'?'] = $value;\n }\n $url = \\strtr($path, $replace);\n }else{\n $url = $path;\n }\n if(\\strpos($url, '?') === FALSE){\n return $url;\n }\n $url = \\preg_replace('/({[\\w\\-_]+}\\?|:[\\w\\-_]+\\?)/', '?', $url);\n $url = \\str_replace('?', '', $url);\n if(\\rtrim($url, '/') != $url){\n $url = \\rtrim($url, '/') . '/';\n }\n return $url;\n }",
"protected function replaceBoundUrlGenerator()\n {\n $this->app->bindShared('url', function ($app) {\n $routes = Collection::make($app['router']->getRoutes())->merge($app['router']->getApiGroups()->getRoutes());\n\n return new UrlGenerator($routes, $app->rebinding('request', function ($app, $request) {\n $app['url']->setRequest($request);\n }));\n });\n }",
"function routeUrl($name, $parameters = [], $absolute = true)\n {\n /** @var \\Phanda\\Contracts\\Routing\\Generators\\UrlGenerator $urlGenerator */\n $urlGenerator = phanda()->create(\\Phanda\\Contracts\\Routing\\Generators\\UrlGenerator::class);\n return $urlGenerator->generateFromRoute($name, $parameters, $absolute);\n }",
"private function mergeName(string $name = '') : RouteInterface\n {\n $this->name = trim(implode('.', [$name, $this->name]), '.');\n return $this;\n }",
"function build_url($name, $array = array())\n {\n $i = 0;\n $i = $this->_search_by_key($this->routes, self::NAME, $name);\n \n if($i === FALSE)\n {\n log_message('ERROR', 'Try to create undefined url with name: '.$name);\n return $this->config->site_url();\n }\n\n $rule = $this->routes[$i];\n \n if(is_null($array)){\n return $rule[self::URL];\n }\n\n //v1.5 ������������ ��������\n if(preg_match_all(\"#\\[([\\w_]+)\\]#\", $rule[self::URL], $mas)){\n $l = count($mas[1]);\n \n for($i = 0; $i < $l; $i++){\n $j = $this->_search_by_key($this->routes, self::NAME, $mas[1][$i]);\n if($j !== FALSE){\n $parent_rule = $this->routes[$j];\n $rule[self::URL] = str_replace('[' . $mas[1][$i] . ']', $parent_rule[self::URL], $rule[self::URL]);\n }\n }\n }\n \n\t\t//AG EDIT\n\t\t$rule_array = explode('/', $rule[self::URL]);\n\t\tforeach($rule_array as $key => $ms)\n\t\t{\n\t\t\tif($ms == '') unset($rule_array[$key]);\n\t\t\tif(($pos = strpos($ms, ':')) !== FALSE)\n\t\t\t{\n\t\t\t\t$u_key = substr($ms, $pos+1);\n\t\t\t\tif(isset($array[$u_key]) && $array[$u_key] !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$rule_array[$key] = str_replace(':'.$u_key , $array[$u_key] , $ms);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tunset($rule_array[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$rule[self::URL] = '';\n\t\tif(count($rule_array)>0)\n\t\t{\n\t\t\tforeach($rule_array as $ms)\n\t\t\t{\n\t\t\t\t$rule[self::URL] .= $ms.'/';\n\t\t\t}\n\t\t\t$rule[self::URL] = substr($rule[self::URL], 0, -1);\n\t\t}\n\t\t/*\n foreach($array as $k => $v)\n {\n $rule[self::URL] = str_replace(':'.$k . '/', $v . '/', $rule[self::URL]);\n }\n */\n //����������� ���������� �������, ����� �������� ���������� �� ������������� ������.\n /*if(preg_match(\"@:\\w+$@\", $rule[self::URL])){\n foreach($array as $k => $v){\n $rule[self::URL] = str_replace(':'.$k, $v, $rule[self::URL]);\n }\n }*/\n return $this->config->site_url($rule[self::URL]);\n }",
"public function generateUri(string $routeName, array $parameters = [], int $referenceType = RouteUri::ABSOLUTE_PATH): RouteUri;",
"public static function getUrl($name, $params = [])\n {\n foreach (self::$routes as $route) {\n if (array_key_exists('name', $route) && $route['name'] == $name) {\n $uri = $route['uri'];\n $pattern = self::_parseUri($uri, $params);\n $pattern = implode('/', $pattern);\n break;\n }\n }\n\n return $pattern;\n }",
"function route(string|null $name = null, string|array|null ...$params)\n{\n if (!empty($params[0])) if (is_array($params[0])) $params = $params[0];\n\n if ($name !== null) return Route::name($name, $params);\n\n return new Route;\n}",
"public static function create_url($pattern, $request, $param)\n\t{\n\t\tpreg_match_alL($pattern, $request, $url_replace_array, PREG_PATTERN_ORDER);\n\t\t\n\t\t$url_replace_array = $url_replace_array[0]; // Get rid of first array layer\n\t\t\n\t\tif(in_array('{id}', $url_replace_array))\n\t\t{\n\t\t\tforeach($url_replace_array as $key => $value)\n\t\t\t{\n\t\t\t\tif($value == '{id}')\n\t\t\t\t{\n\t\t\t\t\t// Set/favor first parameter to id\n\t\t\t\t\t$url_replace_array[$key] = $param[0];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Set to 2nd passed parameter\n\t\t\t\t\t$url_replace_array[$key] = $param[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach($url_replace_array as $key => $value)\n\t\t\t{\n\t\t\t\t$i = 0;\n\t\t\t\t$url_replace_array[$key] = $param[$i];\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$url_array = preg_replace(array($pattern), $url_replace_array, $request);\n\t\t\n\t\t// var_dump($pattern_array);\n\t\t\n\t\techo '<br /><br />';\n\t\t\n\t\tvar_dump($url_replace_array);\n\t\t\n\t\techo '<br /><br />';\n\t\t\n\t\techo $url_array;\n\t\t\n\t\t// Start building url\n\t}",
"abstract public function routeName();",
"public function getRoute($name, $default = null)\r\n {\r\n if (!isset($this->routes[$name])) {\r\n return $default;\r\n }\r\n\r\n if (!$this->routes[$name] instanceof RouteInterface)\r\n {\r\n $rawRoute = $this->routes[$name];\r\n\r\n if (!is_array($rawRoute) || !isset($rawRoute['type'])\r\n || !class_exists($rawRoute['type'])\r\n ) {\r\n return $default;\r\n }\r\n\r\n $this->routes[$name] = call_user_func(\r\n array($rawRoute['type'], 'create'), $this->routes[$name]\r\n );\r\n }\r\n\r\n return $this->routes[$name];\r\n }",
"public function setDayRouteName($link_base)\n\t{\n\t\t$this->day_route_name = $link_base;\n\t\treturn $this;\n\t}",
"protected function preparePattern()\n {\n $patterns = [];\n foreach ($this->routes as $route => $config) {\n $this->routeData[$route] = $config;\n $prepared = preg_replace('/\\{([^:]+):([^}]+)\\}/', '{$1}', $config['route']);\n\n $params = [];\n if (preg_match('/\\{([^}]+)\\}/', $prepared, $params)) {\n array_shift($params);\n }\n\n $this->routeData[$route]['params'] = $params;\n $pattern = preg_replace('/\\{([^:]+):([^}]+)\\}/', '($2)', $config['route']);\n $patterns[] = \"(?P<{$route}>{$pattern})\";\n }\n\n $pattern = implode(' | ', $patterns);\n $this->pattern = \"~^(?: {$pattern} )$~x\";\n }",
"public function testRouteSetsPattern()\n {\n $route1 = new \\Slim\\Route('/foo/bar', function () {});\n $this->assertEquals('/foo/bar', $route1->getPattern());\n }",
"function i18n_route($name, $parameters = [], $absolute = true, $route = null)\n {\n return route(locale() . '.' . $name, $parameters, $absolute, $route);\n }",
"public function add($pattern, $paths = null, $httpMethods = null) {\n\n\t\t$route = new Route($pattern, $paths, $httpMethods);\n\n\t\t$this->_routes[] = $route;\n\n\t\treturn $route;\n\t}",
"protected function buildRoutePattern()\r\n\t{\r\n\t\t$path = $this->prefix ? rtrim($this->prefix . '/' . $this->route, '/') : $this->route;\r\n\r\n\t\treturn '~^' . preg_replace_callback(self::VAR_PATTERN, function($matches) {\r\n\t\t\t$this->parameter[] = $key = $matches[1];\r\n\r\n\t\t\t// Shorthand validation only if not set using the validation-method\r\n\t\t\tif (isset($matches[2]) && !isset($this->parameterPattern[$key])) {\r\n\t\t\t\t$this->parameterPattern[$key] = $matches[2];\r\n\t\t\t}\r\n\t\t\treturn $this->buildParameterPattern($key);\r\n\t\t}, $path) . ($this->terminated ? '$' : '') . '~i';\r\n\r\n\t}",
"public function functionPath(string $name, array $parameters = []): string\n {\n return $this->getApp()->getService('routing')->generate($name, $parameters);\n }",
"function polymorphic_route($resource, $route_name)\n{\n return route(str_plural($resource->model()) . '.' . $route_name, $resource);\n}",
"public function buildRoutePattern()\n {\n $path = $this->prefix ? rtrim($this->prefix . '/' . $this->route, '/') : $this->route;\n\n return '~^' . preg_replace_callback(self::VAR_PATTERN, function ($matches) {\n $this->parameter[] = $key = $matches[1];\n\n // Shorthand validation only if not set using the validation-method\n if (isset($matches[2]) && ! isset($this->parameterPattern[$key])) {\n $this->parameterPattern[$key] = $matches[2];\n }\n return $this->buildParameterPattern($key);\n }, $path) . ($this->terminated ? '$' : '') . '~i';\n }",
"public function generate($params)\n {\n // compile the regex if not already done\n if (!$this->compiled) {\n $this->compile();\n }\n\n // create a list of all parameters, merging the default values with given input arguments\n $allParams = array_merge($this->defaults, $params);\n\n // check whether there are some variables required, but not specified or given\n $diff = array_diff_key(array_flip($this->variables), $allParams);\n if ($diff) {\n throw new InvalidArgumentException('The \"' . $this->urlPattern . '\" route has some missing mandatory parameters (' . implode(', ', $diff) . ').');\n }\n\n // start creation of the url\n $url = '';\n // process the pattern by handling each single token (read out during compilation)\n foreach ($this->tokens as $token) {\n switch ($token[0]) {\n case 'variable':\n $url .= urlencode($allParams[$token[1]]);\n break;\n case 'text':\n // exclude star sign for additional parameters\n if ($token[1] != '*') {\n $url .= $token[1];\n }\n break;\n case 'separator':\n $url .= $token[1];\n break;\n }\n }\n\n // check if url ends with a trailing slash\n if (substr($url, -1) == '/') {\n // remove the trailing slash\n $url = substr($url, 0, strlen($url) - 1);\n }\n\n // look for the star sign\n if (false !== strpos($this->regex, '<_star>')) {\n // append additional parameters\n $additionalArgs = array();\n foreach (array_diff_key($allParams, array_flip($this->variables), $this->defaults) as $key => $value) {\n $additionalArgs[] = urlencode($key) . '/' . urlencode($value);\n }\n $url .= '/' . implode('/', $additionalArgs);\n }\n\n // return the result\n return $url;\n }",
"function map_named($name, $pattern, $defaults=false, $requirements=false) {\n\t\t# parse pattern into regex\n\t\t$this->maps[$name] = new UsherMap($pattern, $defaults, $requirements);\n\t}",
"protected function makeRoute()\n {\n new MakeRoute($this, $this->files);\n }",
"public function __call($name, $arguments)\n {\n $this->define_last_module('route');\n $arguments[] = $name;\n $url = $this->rota ;\n call_user_func_array(array($url,'addRoute'), $arguments);\n return $this;\n\n }",
"public function createRoute(\n string $name,\n string $path,\n array $methods,\n RequestHandlerInterface $requestHandler,\n array $middlewares,\n array $attributes\n ) : RouteInterface;",
"public function generateUrl($name, array $params = array())\n {\n return $this->urlGenerator->generate($name, $params);\n }",
"public function getByName($name)\n {\n if (isset($this->attributes[$name])) {\n return $this->newRoute($this->attributes[$name]);\n }\n\n return $this->routes->getByName($name);\n }",
"private function generateURL($name)\n {\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n return md5($name.substr(str_shuffle($characters), 0, 10));\n }",
"public function getBaseRoutePattern(): string;",
"public function url($name, $args = array(), $protocol = 'http') {\n\t\t$url = $this->getNamedUrl($name);\n\t\t//replace any variables in the route definition with supplied args\n\t\tif(preg_match_all('`:([a-zA-Z][a-zA-Z0-9]+)`', $url, $matches)) {\n\t\t\tforeach ($matches[1] as $m) {\n\t\t\t\tif(isset($args[$m])) {\n\t\t\t\t\t$url = str_replace(\":{$m}\", $args[$m], $url);\n\t\t\t\t\tunset($args[$m]);\n\t\t\t\t} else {\n\t\t\t\t\t$url = str_replace(\":{$m}\", null, $url);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$url = str_replace('(', '', $url);\n\t\t\t$url = str_replace(')', '', $url);\n\t\t\t$url = rtrim($url, '/');\n\t\t}\n\t\t//append get variables using any args that are left\n\t\tif(!empty($args)) {\n\t\t\t$url .= '?' . http_build_query($args);\n\t\t}\n\t\treturn Url::to($url, $protocol);\n\t}",
"public function build($callback, $path = null, $method = null, $count_match = true, $name = null)\r\n {\r\n return new Route(\r\n $callback,\r\n $this->preprocessPathString($path),\r\n $method,\r\n $this->shouldPathStringCauseRouteMatch($path) // Ignore the $count_match boolean that they passed\r\n );\r\n }",
"function add_rewrite_endpoint($name, $places, $query_var = \\true)\n {\n }",
"public function addPattern($name, array $data)\n {\n $this->added_data[$name] = $data;\n }",
"public function addRoute($name, $dataSource)\n {\n $this->routes[$name] = $dataSource;\n }",
"function attempt_add_custom_routes($target_url) {\n\n $target_segment = str_replace(BASE_URL, '', $target_url);\n\n\n foreach (CUSTOM_ROUTES as $key => $value) {\n\n if ($key == $target_segment) {\n $target_url = str_replace($key, $value, $target_url);\n }\n }\n\n return $target_url;\n}",
"public function getNamed(string $name): Route|null;",
"public function addReverseRoute($pattern, $replacement, $isLast=false)\n {\n // Store reverse route\n $this->reverseRoutes[] = $this->newRoute($pattern, $replacement, $isLast);\n }",
"public function register($name, $pattern, $strict = false);",
"public function createRouteObject();",
"public function removeRoute($name);",
"public function map($method, $route, $controller, $name = null, $permissions = null)\n {\n $this->routes[] = [$method,$route,$controller,$name,$permissions];\n if ( $name ) {\n if ( isset($this->namedRoutes[$name]) ) {\n throw new RuntimeException(\"Can not redeclare route '{$name}'\");\n }\n $this->namedRoutes[$name] = $route;\n }\n return;\n }",
"public static function route($name, $parameters = [], $absolute = true) {\n $generator = app(UrlGenerator::class);\n $name = config('admin.routes.prefix') . '.' . $name;\n\n return $generator->route($name, $parameters, $absolute);\n }",
"function cc_rewrite_permalink($link) {\n\n\tglobal $cc_pl_rewrites;\n\n\tforeach ( $cc_pl_rewrites as $cc_pl_rewrite ) {\n\t\tif ( preg_match(\"/{$cc_pl_rewrite[0]}/\", $link) ) {\n\t\t\t$rewritten_link = preg_replace(\"/{$cc_pl_rewrite[0]}/\", $cc_pl_rewrite[1], $link);\n\t\t\treturn $rewritten_link;\n\t\t}\n\t}\n\n\t# If nothing was changed, then just return the original link\t\n\treturn $link;\n\n}",
"private static function getRegexUrl($route)\r\n {\r\n $route = self::quoteRegex($route);\r\n\r\n $route = preg_replace('/\\{:num\\}/', self::NUMBER, $route);\r\n $route = preg_replace('/\\{:alpha\\}/', self::ALPHA, $route);\r\n $route = preg_replace('/\\{[a-zA-Z0-9:$]+\\}/', self::ANY, $route);\r\n\r\n return $route;\r\n }",
"public static function name($name, $params = [])\n {\n $routeKey = array_search(end(self::$routes), self::$routes);\n self::$routes[$routeKey]['name'] = $name;\n\n return new self;\n }",
"public function route($context, string $name, array $query = []): string\n {\n $routes = $context['routes'];\n foreach ($routes as $route_name => $route) {\n if ($route_name == $name) {\n return Url::url($context, $route['path'], $query);\n }\n }\n return '#';\n }",
"public function register_route($route_namespace, $route, $route_args, $override = \\false)\n {\n }",
"public function name($name)\n {\n if (!array_key_exists($name, $this->router->namedRoutes))\n $this->router->namedRoutes[$name] = $this;\n\n return $this;\n }",
"function create_link($linkName, $linkTarget='#')\n {\n return $this->createLink($linkName, $linkTarget);\n }",
"public function addRoute($name, $pattern, array $rules, $methods = array('GET'), $controller, $action)\n {\n $this->routes->add($name, new Route($name, $pattern, $rules, $methods, $controller, $action));\n }",
"public function testUrlGenerationWithRegexQualifiedParams(): void\n {\n $routes = Router::createRouteBuilder('/');\n\n $routes->connect(\n '{language}/galleries',\n ['controller' => 'Galleries', 'action' => 'index'],\n ['language' => '[a-z]{3}']\n );\n\n $routes->connect(\n '/{language}/{admin}/{controller}/{action}/*',\n ['admin' => 'admin'],\n ['language' => '[a-z]{3}', 'admin' => 'admin']\n );\n\n $routes->connect(\n '/{language}/{controller}/{action}/*',\n [],\n ['language' => '[a-z]{3}']\n );\n\n $result = Router::url(['admin' => false, 'language' => 'dan', 'action' => 'index', 'controller' => 'Galleries']);\n $expected = '/dan/galleries';\n $this->assertSame($expected, $result);\n\n $result = Router::url(['admin' => false, 'language' => 'eng', 'action' => 'index', 'controller' => 'Galleries']);\n $expected = '/eng/galleries';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect(\n '/{language}/pages',\n ['controller' => 'Pages', 'action' => 'index'],\n ['language' => '[a-z]{3}']\n );\n $routes->connect('/{language}/{controller}/{action}/*', [], ['language' => '[a-z]{3}']);\n\n $result = Router::url(['language' => 'eng', 'action' => 'index', 'controller' => 'Pages']);\n $expected = '/eng/pages';\n $this->assertSame($expected, $result);\n\n $result = Router::url(['language' => 'eng', 'controller' => 'Pages']);\n $this->assertSame($expected, $result);\n\n $result = Router::url(['language' => 'eng', 'controller' => 'Pages', 'action' => 'add']);\n $expected = '/eng/Pages/add';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect(\n '/forestillinger/{month}/{year}/*',\n ['plugin' => 'Shows', 'controller' => 'Shows', 'action' => 'calendar'],\n ['month' => '0[1-9]|1[012]', 'year' => '[12][0-9]{3}']\n );\n\n $result = Router::url([\n 'plugin' => 'Shows',\n 'controller' => 'Shows',\n 'action' => 'calendar',\n 'month' => '10',\n 'year' => '2007',\n 'min-forestilling',\n ]);\n $expected = '/forestillinger/10/2007/min-forestilling';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect(\n '/kalender/{month}/{year}/*',\n ['plugin' => 'Shows', 'controller' => 'Shows', 'action' => 'calendar'],\n ['month' => '0[1-9]|1[012]', 'year' => '[12][0-9]{3}']\n );\n $routes->connect('/kalender/*', ['plugin' => 'Shows', 'controller' => 'Shows', 'action' => 'calendar']);\n\n $result = Router::url(['plugin' => 'Shows', 'controller' => 'Shows', 'action' => 'calendar', 'min-forestilling']);\n $expected = '/kalender/min-forestilling';\n $this->assertSame($expected, $result);\n\n $result = Router::url([\n 'plugin' => 'Shows',\n 'controller' => 'Shows',\n 'action' => 'calendar',\n 'year' => '2007',\n 'month' => '10',\n 'min-forestilling',\n ]);\n $expected = '/kalender/10/2007/min-forestilling';\n $this->assertSame($expected, $result);\n }",
"public function route($name, $parameters = [])\n {\n $routes = Route::$routes;\n $namedRoutes = Route::$namedRoutes;\n\n if (isset($namedRoutes[$name]) === true) {\n $route = $namedRoutes[$name];\n\n $route = preg_replace_callback('/{([a-z]+)\\??}/', function ($matches) use ($parameters) {\n if (isset($parameters[$matches[1]]))\n return $parameters[$matches[1]];\n\n return '';\n }, $route);\n\n } else\n throw new Exception(\"The given route <b>'{$name}'</b> doesn't exist!\");\n\n return $this->host($this->path($route));\n }",
"private function replaceLink(&$string, $match)\n\t{\n\t\t$attributes = $this->helpers->get('link')->getLinkAttributeList($match['0']);\n\n\t\tif (!$this->helpers->get('pass')->passLinkChecks($attributes))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$data = array();\n\t\t$isexternal = $this->helpers->get('file')->isExternal($attributes->href);\n\t\t$ismedia = $this->helpers->get('file')->isMedia($attributes->href);\n\t\t$iframe = $this->helpers->get('file')->isIframe($attributes->href, $data);\n\n\t\t// Force/overrule certain data values\n\t\tif ($iframe || ($isexternal && !$ismedia))\n\t\t{\n\t\t\t// use iframe mode for external urls\n\t\t\t$data['iframe'] = 'true';\n\t\t\t$this->helpers->get('data')->setDataWidthHeight($data, $isexternal);\n\t\t}\n\n\t\t$attributes->class = !empty($attributes->class) ? $attributes->class . ' ' . $this->params->class : $this->params->class;\n\t\t$link = $this->helpers->get('link')->buildLink($attributes, $data);\n\n\t\t$this->replaceOnce($match['0'], $link, $string);\n\t}",
"public function testRouteSetsPatternWithParams()\n {\n $route = new \\Slim\\Route('/hello/:first/:last', function () {});\n $this->assertEquals('/hello/:first/:last', $route->getPattern());\n }",
"public function addRoute($name, array $route)\n {\n $this->_routes[(string) $name] = $route;\n return $this;\n }",
"public function createExternalLinkPattern(array $data): void\n {\n $uri = 'external-link-patterns';\n $required = [\n 'pattern' => self::TYPE_STRING,\n 'linkReplacement' => self::TYPE_STRING,\n ];\n $this->throwIfInvalid($required, $data);\n\n $this->client->post($this->buildUrl($uri), $data);\n }",
"public function createUri($param1=null, $etc=null)\n {\n $params = func_get_args();\n array_unshift($params, $this->regexForReplace);\n return call_user_func_array(\n 'sprintf', $params\n );\n }",
"public function registerLinks( $name, $path = NULL)\n\t{\n\t\tif( is_array($name) )\n\t\t{\n\t\t\tforeach ($name as $key => $value)\n\t\t\t{\n\t\t\t\t$this->registerLinks( $key, $value );\n\t\t\t}\n\n\t\t\treturn ;\n\t\t}\n\n\t\t$this->publicCSS[$name] = $path;\n\t}",
"public function url($name, $parameters = array(), $referenceType = RouterInterface::ABSOLUTE_PATH)\n {\n return $this->router->generate($name, $parameters, $referenceType);\n }",
"public static function bindNamedRoute(Route $route)\n {\n self::$_name_routes[$route->getName()] = $route;\n }",
"public function make($name = null, array $arguments = [])\n {\n $name = $this->resolveName($name);\n\n if (is_scalar($name) && isset($this->routes[$name])) {\n return $this->routes[$name]->make($this->defaults['host'], $arguments);\n }\n\n foreach ($this->routes as $route) {\n if (!$route->check($name, $arguments)) {\n continue;\n }\n\n return $route->make($this->defaults['host'], $arguments);\n }\n\n throw new RouterException('Unable to make url, matching route for \"' . $name . '\" not found');\n }",
"private static function applyGroupUrlPathToRoute(Route $route, string $groupUrlPath): Route {\n $routeClassName = get_class($route);\n /** @var Route $newRoute */\n $newRoute = new $routeClassName($groupUrlPath . $route->getUrlPath(), $route->getAction());\n if ($route->needsAuth()) {\n $newRoute = $newRoute->withAuth($route->getAction()->getRedirectUrl());\n }\n return $newRoute;\n }",
"static public function add($pattern, array $route=array())\n\t{\n\t\tif (is_array($pattern))\n\t\t{\n\t\t\tself::$routes = $pattern + self::$routes;\n\n\t\t\treturn;\n\t\t}\n\n\t\tself::$routes[$pattern] = $route;\n\t}",
"private function resolveName($name)\n {\n if ($name !== null) {\n return $name;\n }\n\n if (!isset($this->defaults['route'])) {\n throw new RouterException('Unable to make \"self\" url - default route was not defined.');\n }\n\n return $this->defaults['route'];\n }",
"public function urlFor($name, $parameters = array())\n\t{\n\t\treturn $this->getRouteMap()->buildUrl($name, $parameters);\n\t}",
"private function getRoutesToReplace()\n {\n return [\n 'contactus_page' => 'web_contactus',\n 'promotion_homepage' => 'deal_homepage',\n 'web_terms' => '/' . $this->container->getParameter('alias_terms_url_divisor'),\n 'web_privacy' => '/' . $this->container->getParameter('alias_privacy_url_divisor'),\n 'web_sitemap' => '/' . $this->container->getParameter('alias_sitemap_url_divisor')\n ];\n }",
"public function newVirtualRouter($name)\n {\n foreach( $this->virtualRouters() as $vr)\n {\n if( $vr->name() == $name )\n derr( \"VirtualRouter: \".$name.\" already available\\n\" );\n }\n\n $virtualRouter = new virtualRouter( $name, $this);\n $xmlElement = DH::importXmlStringOrDie($this->owner->xmlroot->ownerDocument, virtualRouter::$templatexml);\n\n $virtualRouter->load_from_domxml($xmlElement);\n\n $virtualRouter->owner = null;\n $virtualRouter->setName($name);\n\n //20190507 - which add method is best, is addvirtualRouter needed??\n $this->addvirtualRouter( $virtualRouter );\n $this->add( $virtualRouter );\n\n return $virtualRouter;\n }",
"public function generate(string $name, array $context = [])\n {\n foreach ($this->routes as $route) {\n if ($route->getName() === $name) {\n return static::interpolate($route->getPath(), $context);\n }\n }\n\n throw new RuntimeException(sprintf('The route for \"%s\" does not exist.', $name));\n }",
"function __call($name, $arguments)\n {\n $name = strtolower($name);\n if (!isset($this->routes[$name])) {\n $this->routes[$name] = [];\n }\n $uri = substr($arguments[0], 0, 1) !== '/' ? '/' . $arguments[0] : $arguments[0];\n $peaces = explode('/', $uri);\n foreach ($peaces as $key => $value) {\n $peaces[$key] = str_replace('*', '(.*)', $peaces[$key]);\n if (strpos($value, ':') === 0) {\n $peaces[$key] = '(\\w+)';\n }\n }\n $pattern = str_replace('/', '\\/', implode('/', $peaces));\n $route = '/^' . $pattern . '$/';\n $this->routes[$name][$route] = isset($arguments[1]) ? $arguments[1] : null;\n\n return $this;\n }"
] | [
"0.6135151",
"0.59848183",
"0.5944712",
"0.592391",
"0.5907689",
"0.5808504",
"0.57717246",
"0.57711285",
"0.57193106",
"0.5652937",
"0.5652937",
"0.56470156",
"0.5637944",
"0.5607559",
"0.5607001",
"0.55856323",
"0.5584579",
"0.5547021",
"0.5505485",
"0.5472079",
"0.5445687",
"0.5408698",
"0.540817",
"0.54024124",
"0.53996414",
"0.5347093",
"0.5345722",
"0.5328956",
"0.5320482",
"0.53137535",
"0.53111476",
"0.5303151",
"0.5290708",
"0.52416617",
"0.5210523",
"0.52095443",
"0.5198568",
"0.5198225",
"0.5189816",
"0.51871604",
"0.51715136",
"0.5091124",
"0.5089324",
"0.5087041",
"0.50839186",
"0.5075125",
"0.507374",
"0.50717944",
"0.50700295",
"0.5062096",
"0.505001",
"0.5047199",
"0.5044415",
"0.5031303",
"0.50277984",
"0.5023891",
"0.50222015",
"0.50216204",
"0.50195944",
"0.5008477",
"0.49907607",
"0.4988799",
"0.49683556",
"0.49640536",
"0.49620965",
"0.4961886",
"0.49430117",
"0.4926651",
"0.492563",
"0.49245107",
"0.492394",
"0.49174085",
"0.49093908",
"0.49063855",
"0.48976544",
"0.4896886",
"0.4894513",
"0.488823",
"0.48873407",
"0.48822987",
"0.48803452",
"0.48690498",
"0.48686442",
"0.48621237",
"0.4860792",
"0.48544753",
"0.48422876",
"0.4829769",
"0.4819824",
"0.4817923",
"0.4812934",
"0.4812873",
"0.48122653",
"0.4801949",
"0.48015136",
"0.48007706",
"0.47979105",
"0.4795252",
"0.4792292",
"0.47793588"
] | 0.64150184 | 0 |
Make a view and extend $extends in $section, $blade_data is the data array to pass to View::make(). | public function makeView(array $blade_data = [], string $extends = '', string $section = ''): \Illuminate\View\View
{
$blade_data['Table'] = $this;
$blade_data['extends'] = $extends;
$blade_data['section'] = $section;
$this->Theme->prepareTableView($this);
$template = ($extends != '' ? 'table-extend' : 'table');
return $this->getThemeView($template, $blade_data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function makeView($blade_data, $extends='', $section=''){\n\t\t$blade_data['Form'] = $this;\n\t\t$blade_data['extends'] = $extends;\n\t\t$blade_data['section'] = $section;\n\t\t\n\t\treturn View::make('form-maker::form', $blade_data);\n\t}",
"public function make($view, $data = array());",
"private static function build($blade, $data = []) {\n /**\n * Set data\n */\n static::$data = $data;\n\n $child = app(get_called_class());\n\n if(request()->ajax()) {\n if(method_exists($child, 'render')) {\n return $child->render();\n }\n\n throw new LadminException('No method render found in the class ' . get_called_class());\n \n }\n \n if(method_exists($child, 'options')) {\n $options = array_merge($data, $child->options());\n return view($blade, $options);\n }\n\n throw new LadminException('No method options found in the class ' . get_called_class());\n }",
"public static function make($name, $data=array())\r\n\t{\r\n\t\t$view = new BladeView($name);\r\n\t\t$view->with($data);\r\n\t\treturn $view;\r\n\t}",
"function includeView($name, $data = null)\n {\n if (is_array($data)) {\n extract($data);\n }\n include($_SERVER[\"DOCUMENT_ROOT\"] . \"/views/$name.php\");\n }",
"function view($templateChain, $array = null){ \n if($array != null){\n foreach($array as $key=>$value){ \n $$key = $value;\n }\n } \n $template = str_replace('.', '/', $templateChain); \n $partsAndInludes = Response::view($template); \n if(!is_array($partsAndInludes)){\n include($partsAndInludes);\n return;\n }\n \n $parts = $partsAndInludes['parts'];\n $includes = $partsAndInludes['includes'];\n \n $templateName = $template.'.php';\n $maxCount = (count($parts) > count($includes))? count($parts) : count($includes);\n for($x=0; $x<$maxCount; $x++){ \n if(isset($parts[$x])){\n $tmpName = appDir('Views/tmp/part'.$x.'.php');\n $fileHandle = fopen($tmpName, 'w'); \n $content = preg_replace(\"/^(partial\\(['\\\"]|render\\(['\\\"])[a-zA-Z0-9-_.]+(['\\\"]\\))/\", '', $parts[$x]); \n fwrite($fileHandle, $content);\n fclose($fileHandle); \n include_once($tmpName); \n } \n \n if(isset($includes[$x]) && $includes[$x] == 'content'){\n $tmp_name = appDir('Views/tmp/content-part.php');\n $fileContent = file_get_contents(appDir('Views/'.$templateName));\n $fileHandle = fopen($tmp_name, 'w'); \n $mainContent = preg_replace(\"/^(\\@layout\\(['\\\"])[a-zA-Z0-9-_.]+(['\\\"]\\))/\", '', $fileContent); \n fwrite($fileHandle, $mainContent);\n fclose($fileHandle); \n include_once($tmp_name);\n continue;\n }elseif(isset($includes[$x])){\n $file = str_replace('.', '/', $includes[$x]).'.php';\n include_once(appDir('Views/'.$file));\n } \n } \n}",
"function view($name, $data = [])\n{\n extract($data); // reverse of the compact() function\n\n return require \"app/views/{$name}.view.php\";\n}",
"public function partial($key, $view, $data = array())\n\t{\n\t\treturn $this->with($key, $this->factory->make($view, $data));\n\t}",
"public function renderView($view, $data=null){\n\t\tif (request()->ajax()) {\n\t\t\t$format = request()->format ?? \"\";\n\t\t\tif(strtolower($format) == \"json\"){\n\t\t\t\treturn $data;\n\t\t\t}\n\t\t\treturn View::make($view)->with($data)->renderSections()['content'];\n\t\t}\n\t\treturn view($view)->with($data);\n\t}",
"public function set_partial( $name, $view, $data = array() ) {\n $this->_partials[ $name ] = array( 'view' => $view, 'data' => $data );\n return $this;\n }",
"public function partial($view, array $data = array())\n\t{\n\t\treturn View::make('partials.'.$view, $data)->render();\n\t}",
"public function view(string $view, array $data = []): self\n {\n $path = '';\n\n // N'est-il pas namespaced ? on cherche le dossier en fonction du parametre \"view_base\"\n if (strpos($view, '\\\\') === false) {\n $path = $this->config['view_dir'] ?? '';\n if (! empty($path)) {\n $path .= '/';\n }\n }\n\n $view = view($path . $view, $data);\n if (! empty($this->config['template'])) {\n $view->setLayout($this->config['template']);\n }\n\n return $this->html($view->get(false));\n }",
"public function with($data, $view)\n {\n return $data = [\n 'myFields' => $this->fields(),\n 'myFieldGroup' => $this->fields('myFieldGroup'),\n 'myFieldGroupItem' => $this->fields('myFieldGroup')->groupItem,\n 'myFieldGroupSubItem' => $this->fields('myFieldGroup')->groupItem['subItem'],\n ];\n }",
"public function view($view, $data = []): void\n {\n foreach ($data as $name => $value) {\n ${$name} = $value;\n }\n ob_start();\n $dir = __DIR__ . '/../Views/';\n include $dir . 'header.php';\n include $dir . $view . '.php';\n include $dir . 'footer.php';\n ob_flush();\n }",
"public static function make($viewname, array $data = [])\n {\n return static::singleton()->getTemplate()->render($viewname, $data);\n }",
"function generate($content_view, $template_view, $data = null)\n {\n include 'mvcphp/views/'.$template_view;\n }",
"public function view()\n {\n $this->processParametersForView();\n \n if ($this->view === 'main/base') { //Legacy and body\n extract($this->data);\n \n include(__DIR__ . '/../View/' . $this->view . '.php');\n \n return;\n }\n \n //Templates\n $this->latteView();\n }",
"public function partial($view, array $data = array())\r\n {\r\n $layout = $this->layout;\r\n $this->layout = null;\r\n $this->render($view, $data);\r\n $this->layout = $layout;\r\n }",
"public function loadViews($view = null, $data = null)\n\t{\n\t\tif ($data) {\n\t\t\t$data['view'] = $view;\n\t\t\techo view(\"includes/header\", $data);\n\t\t\techo view($view, $data);\n\t\t\techo view(\"includes/footer\", $data);\n\t\t} else {\n\t\t\techo view(\"includes/header\");\n\t\t\techo view($view);\n\t\t\techo view(\"includes/footer\");\n\t\t}\n\t}",
"protected function view($view, $data = [], $mergeData = [])\n {\n return view()->make(\"scaffold::{$view}\", $data, $mergeData);\n }",
"private function _layout($data, $view)\n\t{\n\t\t$this->load->view('siswa/view/' . $view, $data);\n\t}",
"public function partial($view,$data=array(),$name=null)\n\t{\n\t\t/* always return */\n\t\t$partial = $this->view($view,$data,true);\n\n\t\t/*\n\t\tif name is provided then place directly into the view variable $name\n\t\tand return $this (loader) to allow chaining\n\t\t*/\n\t\tif ($name) {\n\t\t\t$this->_ci_cached_vars[$name] = $partial;\n\t\t\treturn $this;\n\t\t}\n\n\t\t/* return the partial */\n\t\treturn $partial;\n\t}",
"public function make($view, $data = [], $mergeData = [])\n {\n return $this->render($view, $data, $mergeData);\n }",
"protected function makeViews()\n {\n new MakeView($this, $this->files);\n }",
"private function _template($data, $view)\n\t{\n\t\t$this->load->view('mahasiswa/views/' . $view, $data);\n\t}",
"private function _template($data, $view)\n\t{\n\t\t$this->load->view('mahasiswa/views/' . $view, $data);\n\t}",
"function viewc($view = null, $data = array(), $mergeData = array()) {\n $router = Route::getCurrentRoute()->getActionName();\n $module = substr($router, strripos($router, 'Controllers\\\\') + 12, (strrpos($router, '\\\\') - (strripos($router, 'Controllers\\\\') + 12)));\n $controller = substr($router, strripos($router, '\\\\') + 1, (strpos($router, 'Controller@')) - (strripos($router, '\\\\') + 1));\n $action = substr($router, strpos($router, '@') + 1);\n $route = ['module' => $module,\n 'controller' => $controller,\n 'action' => $action,\n ];\n $data = array_merge($data, $route);\n $factory = app('Illuminate\\Contracts\\View\\Factory');\n if (func_num_args() === 0) {\n return $factory;\n }\n\n return $factory->make($view, $data, $mergeData);\n }",
"protected function view($view, $data = array()) {\n $path = dirname(__FILE__) . '/../view/';\n $file = $path . $view . '.php';\n\n if(file_exists($file)) {\n extract($data);\n \n require_once $file;\n }\n }",
"private function loadView($view, $data){\n $resolver = new TemplateMapResolver();\n $resolver->setMap(array(\n 'stepTemplate' => ROOT_PATH . '/module/BackOffice/view/back-office/wager/partials/wagerTypes/' . $view . '.phtml'\n ));\n \n //Create a view object and resolve the path base on the template map resolver above.\n $view = new PhpRenderer();\n $view->setResolver($resolver);\n \n //Create a view to use with the established template and add any variables that view will use.\n $viewModel = new ViewModel();\n $viewModel->setTemplate('stepTemplate')->setVariables(array(\n 'data' => $data\n ));\n \n return $view->render($viewModel);\n }",
"public function views($name, $data = array())\n { \n $this->var['output'] .= $this->CI->load->view($name, $data, true); \n return $this; \n }",
"public function view($view, $data) {\r\n require_once __DIR__ . '/../views/' . $view . '.php';\r\n }",
"public function view($partials = '', $data = array())\n\t{\n\t\t$this->template->content = View::factory($partials);\n\n\t\tif(!empty($data)) {\n\t\t\t$this->setData($data, $this->template->content);\n\t\t}\n\t\treturn $this;\n\t}",
"function view($viewName, $data = []) {\n // which can then be used.\n // For example ['name' => 'Ted', 'age' => 32] extracts out to\n // $name = 'Ted';\n // $age = 32;\n extract($data);\n return require \"app/views/{$viewName}.view.php\";\n}",
"function view($name,$data = []){\n extract($data);\n\n return require \"../includes/views/{$name}.view.php\";\n}",
"public function render($view, array $data = array())\r\n {\r\n $original_view = $this->view;\r\n\r\n if (!empty($data)) {\r\n $this->shared_data->merge($data);\r\n }\r\n\r\n $this->view = $view;\r\n\r\n if (null === $this->layout) {\r\n $this->yieldView();\r\n } else {\r\n require $this->layout;\r\n }\r\n\r\n if (false !== $this->response->chunked) {\r\n $this->response->chunk();\r\n }\r\n\r\n // restore state for parent render()\r\n $this->view = $original_view;\r\n }",
"public function addView(View $view)\n {\n $name = $view->getName();\n $path = $view->getPath();\n $type = '';\n\n if ($path && is_string($path)) {\n $path = ltrim(str_replace(base_path(), '', realpath($path)), '/');\n\n if (substr($path, -10) == '.blade.php') {\n $type = 'blade';\n } else {\n $type = pathinfo($path, PATHINFO_EXTENSION);\n }\n } elseif (is_object($path)) {\n $type = get_class($view);\n $path = '';\n }\n\n foreach ($this->exclude_paths as $excludePath) {\n if (strpos($path, $excludePath) !== false) {\n return;\n }\n }\n\n if (!$this->collect_data) {\n $params = array_keys($view->getData());\n } else {\n $data = [];\n foreach ($view->getData() as $key => $value) {\n $data[$key] = $this->getDataFormatter()->formatVar($value);\n }\n $params = $data;\n }\n\n $template = [\n 'name' => $path ? sprintf('%s (%s)', $name, $path) : $name,\n 'param_count' => count($params),\n 'params' => $params,\n 'type' => $type,\n 'editorLink' => $this->getEditorHref($view->getPath(), 0),\n ];\n\n if ($this->getXdebugLink($path)) {\n $template['xdebug_link'] = $this->getXdebugLink(realpath($view->getPath()));\n }\n\n $this->templates[] = $template;\n }",
"public function view($view, $data = []) {\n require_once \"../app/views/\" . $view . \".php\";\n }",
"function view($view = null, $data = [], $mergeData = [])\n {\n if (! is_null($view)) {\n return app('view')->make($view, $data, $mergeData);\n }\n\n return app('view');\n }",
"protected function view($view, $data = [])\n {\n $banners = $this->getBanners();\n\n $view = parent::view($view, $data)\n ->with('showPageBanner', $this->showPageBanner)\n ->with('banners', $banners);\n\n\treturn $this->minifier($view);\n }",
"public function plantilla(){\n\n include \"views/template.php\";#include(): Se utiliza para invocar el archivo que contiene el código html (es decir, incluye el template que está en la carpeta views)\n }",
"private function _template($data, $view)\n\t{\n\t\t$this->load->view('view/' . $view, $data);\n\t}",
"private function includeWithData($path, $data) {\n\t\t$v = new View($path, $data);\n\t\t$v->render();\n\t}",
"public function view($view, $data = [])\n\t{\n\t\trequire_once '../app/views/' . $view . '.php';\n\t}",
"protected function load_my_views($view, $data)\n\t{\n\t\t$this->load->view('Templates/header_v', $data);\n\t\t$this->load->view('Client/nav_client_v', $data);\n\t\t$this->load->view($view, $data);\n\t\t$this->load->view('Templates/footer_v', $data);\n\t}",
"public function partial($key, $view, $data = array(), $path = VIEW_PATH)\n\t{\n\t\treturn $this->with($key, new static($view, $data, $path));\n\t}",
"public function content($key, array $data = [], $name = null)\n {\n // Assign a default content name\n $name = is_null($name) ? 'content' : $name;\n\n // Get the confg line for the view\n $config = 'views.' . $this->ui . '.' . $key;\n $line = $this->config($config);\n if (is_null($line)) {\n throw new InvalidArgumentException('View config line ['.$config.'] not found.');\n }\n\n // Nest the view into the layout\n $view = app('view')->make($line, $data);\n $this->layout->$name = $view;\n return $this->layout;\n }",
"public function build( $view, $data = array(), $return = FALSE ) {\n // Set whatever values are given. These will be available to all view files\n is_array( $data ) OR $data = ( array ) $data;\n\n // Merge in what we already have with the specific data\n $this->_data = array_merge( $this->_data, $data );\n\n // We don't need you any more buddy\n unset( $data );\n\n if ( empty( $this->_title ) ) {\n $this->_title = $this->_guess_title();\n }\n\n // Output template variables to the template\n $template[ 'title' ] = $this->_title;\n $template[ 'breadcrumbs' ] = $this->_breadcrumbs;\n $template[ 'metadata' ] = implode( \"\\n\\t\\t\", $this->_metadata );\n $template[ 'partials' ] = array();\n\n // Assign by reference, as all loaded views will need access to partials\n $this->_data[ 'template' ] = & $template;\n\n foreach ( $this->_partials as $name => $partial ) {\n // We can only work with data arrays\n is_array( $partial[ 'data' ] ) OR $partial[ 'data' ] = ( array ) $partial[ 'data' ];\n\n // If it uses a view, load it\n if ( isset( $partial[ 'view' ] ) ) {\n $template[ 'partials' ][ $name ] = $this->_find_view( $partial[ 'view' ], $partial[ 'data' ] );\n }\n\n // Otherwise the partial must be a string\n else {\n if ( $this->_parser_enabled === TRUE ) {\n $partial[ 'string' ] = $this->_ci->parser->parse_string( $partial[ 'string' ], $this->_data + $partial[ 'data' ], TRUE, TRUE );\n }\n\n $template[ 'partials' ][ $name ] = $partial[ 'string' ];\n }\n }\n\n // Disable sodding IE7's constant cacheing!!\n $this->_ci->output->set_header( 'Expires: Sat, 01 Jan 2000 00:00:01 GMT' );\n $this->_ci->output->set_header( 'Cache-Control: no-store, no-cache, must-revalidate' );\n $this->_ci->output->set_header( 'Cache-Control: post-check=0, pre-check=0, max-age=0' );\n $this->_ci->output->set_header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );\n $this->_ci->output->set_header( 'Pragma: no-cache' );\n\n // Let CI do the caching instead of the browser\n $this->_ci->output->cache( $this->cache_lifetime );\n\n // Test to see if this file\n $this->_body = $this->_find_view( $view, array(), $this->_parser_body_enabled );\n\n // Want this file wrapped with a layout file?\n if ( $this->_layout ) {\n // Added to $this->_data['template'] by refference\n $template[ 'body' ] = $this->_body;\n\n // Find the main body and 3rd param means parse if its a theme view (only if parser is enabled)\n $this->_body = self::_load_view( 'layouts/' . $this->_layout, $this->_data, TRUE, self::_find_view_folder() );\n }\n\n // Want it returned or output to browser?\n if ( !$return ) {\n $this->_ci->output->set_output( $this->_body );\n }\n\n return $this->_body;\n }",
"function stage_render_template($path, $data)\n{\n return view($path, view($path)->getData(), $data)->render();\n}",
"public function view($view, $data = array(), $mergeData = array())\n {\n return $this->views->make($this->getThemeNamespace($view), $data, $mergeData);\n }",
"public function loadView($view, $data = []) {\n extract($data);\n include(\"views/\" . $view . \".php\");\n }",
"public function view($view, $data = []) {\n\t\trequire_once '../app/views/' . $view . '.php';\n\n\t\t// this method will run the required file then pass $data as the parameter\n\n\t}",
"public function create()\n {\n $this->set_datas([]);\n $this->blade->view($this->get_view_page(), $this->get_datas());\n }",
"public function add()\n\t{\n\n\t\t$this->data['_pageview'] = $this->data[\"_directory\"] . \"edit\";\n\t\t$this->data['option'] \t\t= \"add\";\n\n\t\treturn view($this->constants[\"ADMINCMS_TEMPLATE_VIEW\"], $this->data);\n\t}",
"protected function composeView()\n {\n view()->composer('shop::customers.account.partials.sidemenu', function ($view) {\n $menu = current(Event::fire('customer.menu.create'));\n\n $view->with('menu', $menu);\n });\n }",
"protected function render($view, $data = null)\n {\n if( is_null($data) ) $data = [];\n $data['slug'] = $this->slug;\n $data['title'] = $this->title;\n $data['columns'] = $this->obj->getColumns($view); \n\n return view($this->slug.\".\".$view, $data);\n }",
"public function createView()\n\t{\n\t\t$originalFile = base_path('resources/views/reports/SampleReport.blade.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.blade.php';\n\n\t\treturn copy($originalFile, $newFile);\n\t}",
"function generate($content_view, $template_view, $data = null)\n {\n ob_start();\n include($this->pathTpl . $template_view . $this->typeFile);\n $content = ob_get_clean();\n $this->ourInsideTpl($data, $content);\n }",
"protected function _load_view()\r\n {\r\n\r\n if($this->_is_ajax())\r\n {\r\n $this->layout = FALSE; \r\n if($this->_is_json())\r\n { \r\n $this->view = false;\r\n //$this->output->set_content_type('application/json')->set_output($this->response);\r\n }\r\n }\r\n \r\n // If $this->view == FALSE, we don't want to load anything\r\n if ($this->view !== FALSE)\r\n {\r\n // If $this->view isn't empty, load it. If it isn't, try and guess based on the controller and action name\r\n $view = (!empty($this->view)) ? $this->view : $this->router->directory . $this->router->class . '/' . $this->router->method;\r\n \r\n // Load the view into $yield\r\n $data['yield'] = $this->load->view($view, $this->data, TRUE);\r\n \r\n // Do we have any asides? Load them.\r\n if (!empty($this->asides))\r\n {\r\n foreach ($this->asides as $name => $file)\r\n {\r\n $data['yield_'.$name] = $this->load->view($file, $this->data, TRUE);\r\n }\r\n }\r\n \r\n // Load in our existing data with the asides and view\r\n $data = array_merge($this->data, $data);\r\n $layout = FALSE;\r\n\r\n // If we didn't specify the layout, try to guess it\r\n if (!isset($this->layout))\r\n {\r\n if (file_exists(APPPATH . 'views/layouts/' . $this->router->class . '.php'))\r\n {\r\n $layout = 'layouts/' . $this->router->class;\r\n } \r\n else\r\n {\r\n $layout = 'layouts/application';\r\n }\r\n }\r\n\r\n // If we did, use it\r\n else if ($this->layout !== FALSE)\r\n {\r\n $layout = $this->layout;\r\n }\r\n\r\n // If $layout is FALSE, we're not interested in loading a layout, so output the view directly\r\n if ($layout == FALSE)\r\n {\r\n $this->output->set_output($data['yield']);\r\n }\r\n\r\n // Otherwise? Load away :)\r\n else\r\n {\r\n $this->load->view($layout, $data);\r\n }\r\n }\r\n }",
"public function view($view, array $data = [])\n {\n $this->view = $view;\n $this->viewData = array_merge($this->viewData, $data);\n\n return $this;\n }",
"public function render($view, $data) {\n if (file_exists(ROOT . '/app/views/' . $view . '.php')) {\n require_once(ROOT . '/app/views/' . $view . '.php');\n } else {\n die(\"Hum... Cette vue n'existe pas !\");\n }\n }",
"function render($view, $data)\n {\n\n $smarty = new Smarty();\n\n //Indicamos las carpetas a usar por SMARTY\n $smarty->template_dir = \"views\";\n $smarty->compile_dir = \"templates_c\";\n\n //Toda la data que se muestre la mando\n foreach ($data as $key => $value) {\n $smarty->assign($key, $value);\n\n }\n //mando la view a mostrar al layout, y hago que displayee el layout\n $smarty->assign(\"viewFile\", $view . \".tpl\");\n $smarty->display(\"layout.tpl\");\n }",
"public function load_view($view=false, $data = array(), $data_includes = array(), $folder = 'dashboard', $ext = '.html'){\n $ext = ($ext!='.html')? '' : $ext; \n // Header\n $base_url = base_url();\n $parse['base_url'] = $base_url;\n $parse['APPTITLE'] = utf8_decode($this->vars->cfg['site_title']);\n $parse['URLPATH'] = URLPATH;\n $parse['TEMPLATEPATH'] = $base_url.'assets/template/';\n $parse['IMG_PATH'] = $base_url.'assets/img/';\n $parse['anio'] = date('Y');\n\n $includes_header =(isset($data_includes['header']))?$data_includes['header']:$data_includes;\n $includes_footer =(isset($data_includes['footer']))?$data_includes['footer']:false;\n\n // INCLUDES HEADER Y WIDGETS\n // SE CARGAN EL CORE Y LOS PLUGINS DEL SISTEMA ADEMAS DE LOS JS Y CSS EXTRAS\n $dataheader['includes_header'] = $this->load_view_unique($folder.'/includes-header', $parse, true, $includes_header);\n $dataheader['includes_widgets'] = $this->load_view_unique($folder.'/includes-widgets' , $parse, true);\n //FIN HEADER Y WIDGETS\n\n //CONSTRUCCION DEL MENU\n $menu = $this->user_menu($this->session->userdata('user_menu'));\n $parse['MENU_DESKTOP'] = $menu['MENU_DESKTOP'];\n $parse['MENU_MOBILE'] = $menu['MENU_MOBILE'];\n $parse['MENU_MOBILE_SUBMENUS'] = $menu['MENU_MOBILE_SUBMENUS'];\n // debug($parse['MENU_MOBILE_SUBMENUS']);\n $parse['nombre_completo'] = $this->session->userdata('nombre_completo');\n $parse['reset_password'] = ($this->session->userdata('externo'))?'<li><a href=\"'.$base_url.'reset\"> Reset Password </a></li>':'';\n // Estructura de la pagina\n $dataheader['page_header'] = $this->load_view_unique($folder.'/page-header', $parse, true);\n // $dataheader['page_content'] = $this->load_view_unique($folder.'/page-content', $parse, true);\n $dataheader['page_footer'] = $this->load_view_unique($folder.'/page-footer',$parse, true); \n //SE CARGA EL CONTENIDO DE LA PAGINA\n if($view){\n $dataContent['content'] = $this->load_view_unique($view, $data, true);\n $dataContent['title'] = $data['titulo'];\n $dataContent['subtitle'] = isset($data['subtitulo'])? $data['subtitulo'] : '';\n $dataheader['page_content'] = $this->load_view_unique($folder.'/page-content', $dataContent, true);\n // $dataheader['page_content'] = $this->load_view_unique($view, $data, true);\n }else{\n $dataheader['page_content'] = false;\n }\n // FOOTER\n $dataheader['includes_footer'] = $this->load_view_unique($folder.'/includes-footer', $parse, true, $includes_footer);\n // Output\n $this->parser->parse($folder.'/dashboard'.$ext , $dataheader);\n }",
"static public function Make($path, $data=[]) {\n\t\treturn new View($path, $data);\n\t}",
"public function makeView() {\n\t\treturn \n\t\t\t$this->getView()\n\t\t\t\t->with('option', $this);\n\t}",
"public function render( $view, array $data = array() ) {\n\t\t$original_view = $this->_view;\n\n\t\tif ( ! empty( $data ) ) {\n\t\t\t$this->set( $data );\n\t\t}\n\t\t$this->_view = $view;\n\t\tif ( null === $this->_layout ) {\n\t\t\t$this->yieldView();\n\t\t} else {\n\t\t\trequire $this->_layout;\n\t\t}\n\t\tif ( false !== $this->chunked ) {\n\t\t\t$this->chunk();\n\t\t}\n\n\t\t// restore state for parent render()\n\t\t$this->_view = $original_view;\n\t}",
"public function render_view($view, $data=[])\n\t{\n\t\tif(file_exists(\"app/view/\".$view.\".php\"))\n\t\t{\n\t\t\tif(!empty($data))\n\t\t\t{\n\t\t\t\textract($data);\n\t\t\t}\n\t\t\trequire_once(\"app/view/\".$view.\".php\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie(\"Error view '\".$view.\"' does not exist\");\n\t\t}\n\t}",
"public function plantilla(){\n\n include \"views/template.php\";\n \n }",
"public function render($data = [], $layout = 'master')\n {\n require './views/layout/' . $layout . '.php';\n }",
"public function view($view, $data = []) {\n // Check for the view file\n if(file_exists(\"../app/views/{$view}.view.php\")) {\n require_once \"../app/views/{$view}.view.php\";\n \n } else {\n // View does not exist\n die('View does not exist');\n }\n }",
"protected function makeViewLayout()\n {\n new MakeLayout($this, $this->files);\n }",
"protected function writeView()\n {\n $view = $this->getView();\n\n $path = $this->unitPath('Resources/views').'/'.str_replace('.', '/', 'components.'.$view);\n\n if (! $this->files->isDirectory(dirname($path))) {\n $this->files->makeDirectory(dirname($path), 0777, true, true);\n }\n\n file_put_contents(\n $path.'.blade.php',\n '<div>\n <!-- '.Inspiring::quote().' -->\n</div>'\n );\n }",
"protected function render($view, $data = null) {\n \n if (!is_null($data)) {\n extract($data);\n }\n\n include \"../views/$view.phtml\"; //$view: quer dizer o ficheiro que vier com .phtml ele processa.\n }",
"protected function view($view, $data = [])\r\n {\r\n if (file_exists(ROOT_DIR . '/app/views/' . $view . '.php'))\r\n {\r\n require_once ROOT_DIR . '/app/views/' . $view . '.php';\r\n }\r\n }",
"public function render($view, array $data = array())\n {\n @parent::render($view, $data);\n }",
"protected function loadView($view, $data = null)\n {\n $this->load->view('templates/header');\n $this->load->view('templates/beheermenu');\n ($data === null) ? $this->load->view($view) : $this->load->view($view, $data);\n $this->load->view('templates/footer');\n }",
"public function addView($name, $viewData = [], $data = [])\n\t{\n\t\t$this->viewsData[] = [\n\t\t\t'start' => isset($data['time']) ? $data['time'] : null,\n\t\t\t'end' => isset($data['time'], $data['duration']) ? $data['time'] + $data['duration'] / 1000 : null,\n\t\t\t'duration' => isset($data['duration']) ? $data['duration'] : null,\n\t\t\t'description' => 'Rendering a view',\n\t\t\t'data' => [\n\t\t\t\t'name' => $name,\n\t\t\t\t'data' => (new Serializer)->normalize($viewData)\n\t\t\t]\n\t\t];\n\t}",
"public function view($view, $data=[]){\n // verificamos que el archivo de la vista exista dentro de la carpeta vistas\n if(file_exists('../app/views/'. $view. '.php')){\n //requerimos la vista\n require_once '../app/views/'. $view. '.php';\n }else{\n // si la vista no existe\n die('La vista no existe');\n }\n }",
"public function create()\n {\n $departments = (new Department)->getDepartmentsByPluck()->toArray();\n return view('admin.section.add', ['departments' => $departments, 'active' => 'section']);\n }",
"private function doRender($file, $data)\n {\n $this->view_data = array_merge($this->view_data, $data);\n if (is_array($file)) {\n foreach($file as $key => $val) {\n $this->section->set($key, $val);\n }\n }\n elseif(!$this->view_file = $this->getPath($file)) {\n return null;\n }\n else {\n $this->setContent($this->renderViewFile());\n }\n if (!isset($this->layout_file)) {\n return $this->section->get('content');\n }\n $layout = clone($this);\n $layout->layout_file = null;\n return $layout->doRender($this->layout_file, $this->view_data);\n }",
"public function section(string $view, array $context = [], $type = null): string;",
"public function compose(View $view)\n {\n $view_data_arr = [\n 'sidebar_data_arr' => [\n 'username' => session('username'),\n 'permission_arr' => session('permission_arr'),\n 'menu_navigations' => session('menu_navigation_arr'), \n 'menus' => session('menu_arr'),\n ]\n ]; \n $view->with($view_data_arr);\n\n }",
"public function layout($name, array $data = array());",
"public function nest($key, string $view, array $data = []): self;",
"public function yieldView() {\n\t\trequire $this->_view;\n\t}",
"public function create()\n {\n $model = new Section();\n return view('admin.section.create', compact('model'));\n }",
"public function load_view($view, $data = array())\r\n\t{\r\n\t\t$html = $this->ci()->load->view($view, $data, TRUE);\r\n\t\t$this->SetFont('msungstdlight', 'B');\r\n\t\t$this->writeHTML($html, true, false, true, false, '');\r\n\t}",
"function view($view = '', $data = [])\n{\n $views = str_replace(\".\",\"/\", $view);\n require_once dirname(__DIR__,1) . \"/view/\" . $views . \".php\";\n}",
"public function render_section_templates()\n {\n }",
"public function create()\n {\n return view('admin.pages.section.create');\n }",
"public function compose(View $view)\n {\n $view->withAboutApp(Markdown::convertToHtml($this->config->get('setting.app_about')));\n $view->withAppAnalytics($this->config->get('setting.app_analytics'));\n $view->withAppAnalyticsGoSquared($this->config->get('setting.app_analytics_gs'));\n $view->withAppAnalyticsPiwikUrl($this->config->get('setting.app_analytics_piwik_url'));\n $view->withAppAnalyticsPiwikSiteId($this->config->get('setting.app_analytics_piwik_site_id'));\n $view->withAppBanner($this->config->get('setting.app_banner'));\n $view->withAppBannerStyleFullWidth($this->config->get('setting.style_fullwidth_header'));\n $view->withAppBannerType($this->config->get('setting.app_banner_type'));\n $view->withAppDomain($this->config->get('setting.app_domain'));\n $view->withAppGraphs($this->config->get('setting.display_graphs'));\n $view->withAppLocale($this->config->get('setting.app_locale'));\n $view->withAppStylesheet($this->config->get('setting.stylesheet'));\n $view->withAppUrl($this->config->get('app.url'));\n $view->withAppHeader($this->config->get('setting.header'));\n $view->withAppFooter($this->config->get('setting.footer'));\n $view->withAppName($this->config->get('setting.app_name'));\n $view->withShowSupport($this->config->get('setting.show_support'));\n $view->withAutomaticLocalization($this->config->get('setting.automatic_localization'));\n $view->withEnableExternalDependencies($this->config->get('setting.enable_external_dependencies'));\n $view->withShowTimezone($this->config->get('setting.show_timezone'));\n $view->withAppRefreshRate($this->config->get('setting.app_refresh_rate'));\n $view->withTimezone($this->dates->getTimezone());\n $view->withSiteTitle($this->config->get('setting.app_name'));\n $view->withFontSubset($this->config->get('langs.'.$this->config->get('app.locale').'.subset', 'latin'));\n $view->withOnlyDisruptedDays($this->config->get('setting.only_disrupted_days'));\n $view->withDashboardLink($this->config->get('setting.dashboard_login_link'));\n $view->withEnableSubscribers($this->config->get('setting.enable_subscribers'));\n }",
"public function renderView($view, $data = null)\n {\n $data['breadCrumbs'] = $this->breadCrumbs;\n $data['selectRegion'] = $this->selectRegion;\n return view($view, $data);\n }",
"function app_template() {\n\t$template = <<<HTML\n\n\n\nHTML;\n\n $navigation = app_template_navigation();\n $dialogs = app_template_dialogs();\n\t$data['blocks'] = empty($navigation) ? array($dialogs) : array($dialogs, $navigation);\n\t$data['template'] = $template;\n\treturn $data;\n}",
"private function add_sections(&$data)\n\t{\n\t\t$data['header']\t\t\t= $this->load->controller('common/header');\n\t\t$data['column_left']\t= $this->load->controller('common/column_left');\n\t\t$data['footer']\t\t\t= $this->load->controller('common/footer');\n\t}",
"protected function setupLayout() {\n\t\t$this->data['route'] = Route::getCurrentRoute()->getPath();\t\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->data['enrolledCourses'] = NULL;\n\t\t\t\n\t\t\tif (Auth::check() && in_array(Auth::user()->user_type, array(3, 5))) {\n\t\t\t\t$this->data['enrolledCourses'] = EnrolledCourses::getEnrolledCourses();\n\t\t\t\t$this->data['endedCourses'] = EnrolledCourses::getEndedCourses();\n\t\t\t\t$this->data['profiling'] = User::getRegProfile();\t\n\t\t\t\t$this->data['profiling_ctr'] = $this->data['profiling'];\t\t\t\t\n\t\t\t} else if (Auth::check() && Auth::user()->user_type == 2) {\n\t\t\t\t$this->data['assigned_courses'] = Courses::getAssignedCourses();\n\t\t\t}\n\n\t\t\t$this->layout = View::make($this->layout, $this->data);\n\t\t}\n\t}",
"public function yieldView()\r\n {\r\n require $this->view;\r\n }",
"protected function applyPageLayout()\n {\n $this->content = \"\n @extends('generated/layout')\n \";\n }",
"public function nest($key, $view, array $data = [])\n {\n return $this->with($key, $this->factory->make($view, $data));\n }",
"function view($view = null, $data = array())\n {\n $factory = app('view');\n\n if (func_num_args() === 0) {\n return $factory;\n }\n\n return $factory->display($view, $data);\n }",
"protected function loadView($viewName, $data){\n $resolver = new TemplateMapResolver();\n $resolver->setMap(array(\n 'stepTemplate' => ROOT_PATH . '/module/BackOffice/view/back-office/wallet/partials/' . $viewName . '.phtml'\n ));\n \n //Create a view object and resolve the path based on the template map resolver above.\n $view = new PhpRenderer();\n $view->setResolver($resolver);\n \n //Create a view to use with the established template and add any variables that view will use.\n $viewModel = new ViewModel();\n $viewModel->setTemplate('stepTemplate')->setVariables(array(\n 'data' => $data\n ));\n \n $html = $view->render($viewModel);\n return Array('success' => true, 'html' => $html);\n }",
"function homepage(){ \n $view = new View ;\n $view -> main_part = $view -> render2('cms/homepageList');\n $view -> render('cms/layouts/layout');\n}"
] | [
"0.7832069",
"0.5986022",
"0.59177226",
"0.57994395",
"0.5615787",
"0.55639905",
"0.55493045",
"0.55291384",
"0.5512683",
"0.546915",
"0.5448926",
"0.54399824",
"0.5438336",
"0.5435707",
"0.5410121",
"0.5407713",
"0.5380427",
"0.5364797",
"0.5354264",
"0.5347256",
"0.5334332",
"0.53251785",
"0.531005",
"0.53091",
"0.53074396",
"0.53074396",
"0.5299049",
"0.529497",
"0.52667254",
"0.52628136",
"0.5259734",
"0.52482826",
"0.52455366",
"0.5244363",
"0.5243066",
"0.5233644",
"0.5233489",
"0.5227128",
"0.5221165",
"0.52160347",
"0.52155113",
"0.5183932",
"0.51800275",
"0.5171539",
"0.5164769",
"0.51618356",
"0.51526123",
"0.51471925",
"0.5136153",
"0.5134355",
"0.5131151",
"0.5098381",
"0.5089914",
"0.5088513",
"0.50785285",
"0.5073513",
"0.5062076",
"0.50574",
"0.5056708",
"0.5052816",
"0.5044872",
"0.50425315",
"0.50372916",
"0.50314707",
"0.5025071",
"0.501486",
"0.50048274",
"0.49943316",
"0.49869648",
"0.49861383",
"0.49846995",
"0.49840832",
"0.49712566",
"0.49710438",
"0.49700424",
"0.4965728",
"0.49652514",
"0.49611574",
"0.49558997",
"0.49427012",
"0.49254143",
"0.49226052",
"0.49152905",
"0.49027434",
"0.48973203",
"0.48925275",
"0.4891993",
"0.48897904",
"0.4886209",
"0.48850915",
"0.4883641",
"0.48835957",
"0.48819837",
"0.48766184",
"0.48759285",
"0.48709425",
"0.48653984",
"0.48633528",
"0.48601043",
"0.48589653"
] | 0.74060684 | 1 |
Display a listing of the resource. | public function create()
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }",
"public function listing();",
"function index() {\n\t\t$this->show_list();\n\t}",
"public function actionList() {\n $this->_getList();\n }",
"public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }",
"public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }",
"public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }",
"function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}",
"public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }",
"public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }",
"public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}",
"function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}",
"public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }",
"public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}",
"public function actionRestList() {\n\t $this->doRestList();\n\t}",
"public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}",
"public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }",
"public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }",
"public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}",
"public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}",
"public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }",
"public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }",
"public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }",
"public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }",
"public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}",
"public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }",
"public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}",
"public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }",
"public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }",
"public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }",
"public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }",
"public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}",
"public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }",
"public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }",
"public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }",
"public function index()\n {\n return Resources::collection(Checking::paginate());\n }",
"public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }",
"public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }",
"public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }",
"public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }",
"public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }",
"public function view(){\n\t\t$this->buildListing();\n\t}",
"public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }",
"public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }",
"public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }",
"public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }",
"public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }",
"public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }",
"public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }",
"public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }",
"public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}",
"public function listAction() {}",
"public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }",
"public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }",
"public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }",
"public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }",
"public function executeList()\n {\n $this->setTemplate('list');\n }",
"function listing() {\r\n\r\n }",
"public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }",
"public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }",
"public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }",
"public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }",
"public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}",
"public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }",
"public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}",
"public function _index(){\n\t $this->_list();\n\t}",
"function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}",
"public function index()\n {\n $this->booklist();\n }",
"public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }",
"public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }",
"public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }",
"public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }",
"public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }",
"public function indexAction() {\n $this->_forward('list');\n }",
"public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }",
"public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }",
"public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }",
"public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}",
"public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }",
"public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }",
"public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }",
"public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }",
"public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }",
"public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}",
"public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }",
"public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }",
"public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }",
"public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}",
"public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }",
"public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }",
"public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }",
"public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }",
"public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }",
"public function index()\n {\n return view('admin.resources.index');\n }",
"public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}"
] | [
"0.7446377",
"0.7361922",
"0.72984487",
"0.7248631",
"0.7162871",
"0.7148215",
"0.7131838",
"0.71028054",
"0.7102395",
"0.70988023",
"0.7048243",
"0.6993516",
"0.6989079",
"0.69341344",
"0.69001913",
"0.6899167",
"0.68920904",
"0.6887188",
"0.68661547",
"0.6849159",
"0.683002",
"0.6801792",
"0.6796645",
"0.67952746",
"0.678579",
"0.6760132",
"0.6741144",
"0.67304057",
"0.6726034",
"0.6723304",
"0.6723304",
"0.6723304",
"0.67188966",
"0.67061126",
"0.67046595",
"0.67042124",
"0.6664004",
"0.6663109",
"0.66603667",
"0.66595376",
"0.6656908",
"0.66536283",
"0.6648508",
"0.6619696",
"0.66191936",
"0.66145146",
"0.66056865",
"0.6600895",
"0.66007215",
"0.6593214",
"0.6587006",
"0.6585572",
"0.6584028",
"0.65802413",
"0.65751636",
"0.6574276",
"0.6572553",
"0.65703243",
"0.6569474",
"0.6563628",
"0.6563418",
"0.65516967",
"0.655156",
"0.65460885",
"0.65367365",
"0.6533626",
"0.6533064",
"0.6527408",
"0.65251255",
"0.6524834",
"0.65202224",
"0.6517302",
"0.65167385",
"0.6516062",
"0.65148616",
"0.6506742",
"0.65018",
"0.6501768",
"0.6494415",
"0.64921784",
"0.6486631",
"0.6485237",
"0.6484199",
"0.64841217",
"0.6479556",
"0.6478558",
"0.6469807",
"0.646858",
"0.64683306",
"0.6466808",
"0.64637285",
"0.64616066",
"0.6458575",
"0.6457558",
"0.64535207",
"0.64534074",
"0.64524984",
"0.64491946",
"0.6448726",
"0.6447211",
"0.64461327"
] | 0.0 | -1 |
Store a newly created resource in storage. | public function store()
{
$data = Input::all();
$data['start'] = date('Y-m-d H:i:s', strtotime($data['start']));
$data['end'] = date('Y-m-d H:i:s', strtotime($data['end'])+64800);
$lottery = Lotteries::createLottery($data);
return View::make("admin.components.lottories",array("lottery" =>$lottery))->render();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store($data, Resource $resource);",
"public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }",
"public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }",
"public function createStorage();",
"public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }",
"public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }",
"public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }",
"function storeAndNew() {\n $this->store();\n }",
"public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }",
"public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }",
"public function store()\n\t{\n\t\t\n\t\t//\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}"
] | [
"0.72865677",
"0.7145327",
"0.71325725",
"0.6640912",
"0.66209733",
"0.65685713",
"0.652643",
"0.65095705",
"0.64490104",
"0.637569",
"0.63736665",
"0.63657933",
"0.63657933",
"0.63657933",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437"
] | 0.0 | -1 |
Update the specified resource in storage. | public function update($id)
{
Lotteries::updateLottery(Input::all(),$id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }",
"public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }",
"public function update(Request $request, Resource $resource)\n {\n //\n }",
"public function updateStream($resource);",
"public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }",
"protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }",
"public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }",
"public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }",
"public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}",
"public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }",
"public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }",
"protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }",
"public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }",
"public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }",
"public function update($path);",
"public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }",
"public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }",
"public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }",
"public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}",
"public function updateStream($path, $resource, Config $config)\n {\n }",
"public function edit(Resource $resource)\n {\n //\n }",
"public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }",
"public function update($data) {}",
"public function update($data) {}",
"public function putStream($resource);",
"public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }",
"public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }",
"public function update($entity);",
"public function update($entity);",
"public function setResource($resource);",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }",
"public function isUpdateResource();",
"public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }",
"public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }",
"public function store($data, Resource $resource);",
"public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }",
"public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }",
"public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }",
"public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }",
"public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }",
"public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }",
"public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }",
"public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }",
"public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }",
"public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }",
"public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }",
"public function update(Qstore $request, $id)\n {\n //\n }",
"public function update(IEntity $entity);",
"protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }",
"public function update($request, $id);",
"function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}",
"public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }",
"public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }",
"protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }",
"abstract public function put($data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function testUpdateSupplierUsingPUT()\n {\n }",
"public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }",
"public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }",
"public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }",
"public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }",
"public abstract function update($object);",
"public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }",
"public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }",
"public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }",
"public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }",
"public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }",
"public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }",
"public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }",
"public function update($entity)\n {\n \n }",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }",
"public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }",
"public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }",
"public function update($id, $input);",
"public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }",
"public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}",
"public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }",
"public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }",
"public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }",
"public function update($id);",
"public function update($id);",
"private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }",
"public function put($path, $data = null);",
"public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }",
"public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }",
"public function update(Entity $entity);",
"public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }",
"public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}",
"public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }",
"public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }",
"public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }",
"public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }",
"public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }"
] | [
"0.7425105",
"0.70612276",
"0.70558053",
"0.6896673",
"0.6582159",
"0.64491373",
"0.6346954",
"0.62114537",
"0.6145042",
"0.6119944",
"0.61128503",
"0.6099993",
"0.6087866",
"0.6052593",
"0.6018941",
"0.60060275",
"0.59715486",
"0.5946516",
"0.59400934",
"0.59377414",
"0.5890722",
"0.5860816",
"0.5855127",
"0.5855127",
"0.58513457",
"0.5815068",
"0.5806887",
"0.57525045",
"0.57525045",
"0.57337505",
"0.5723295",
"0.5714311",
"0.5694472",
"0.5691319",
"0.56879413",
"0.5669989",
"0.56565005",
"0.56505877",
"0.5646085",
"0.5636683",
"0.5633498",
"0.5633378",
"0.5632906",
"0.5628826",
"0.56196684",
"0.5609126",
"0.5601397",
"0.55944353",
"0.5582592",
"0.5581908",
"0.55813426",
"0.5575312",
"0.55717176",
"0.55661047",
"0.55624634",
"0.55614686",
"0.55608666",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55573726",
"0.5556878",
"0.5554201",
"0.5553069",
"0.55530256",
"0.5543788",
"0.55435944",
"0.55412996",
"0.55393505",
"0.55368495",
"0.5535236",
"0.5534954",
"0.55237365",
"0.5520468",
"0.55163723",
"0.55125296",
"0.5511168",
"0.5508345",
"0.55072427",
"0.5502385",
"0.5502337",
"0.5501029",
"0.54995877",
"0.54979175",
"0.54949397",
"0.54949397",
"0.54946727",
"0.5494196",
"0.54941916",
"0.54925025",
"0.5491807",
"0.5483321",
"0.5479606",
"0.5479408",
"0.5478678",
"0.54667485",
"0.5463411",
"0.5460588",
"0.5458525"
] | 0.0 | -1 |
Remove the specified resource from storage. | public function destroy($id)
{
Lotteries::deleteLottery($id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }",
"public function destroy(Resource $resource)\n {\n //\n }",
"public function removeResource($resourceID)\n\t\t{\n\t\t}",
"public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }",
"public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }",
"public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }",
"public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }",
"protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }",
"public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }",
"public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }",
"public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }",
"public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}",
"public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}",
"public function delete(): void\n {\n unlink($this->getPath());\n }",
"public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }",
"public function remove($path);",
"function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}",
"public function delete(): void\n {\n unlink($this->path);\n }",
"private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }",
"public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }",
"public function remove() {}",
"public function remove() {}",
"public function remove();",
"public function remove();",
"public function remove();",
"public function remove();",
"function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}",
"public function deleteImage(){\n\n\n Storage::delete($this->image);\n }",
"public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }",
"public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}",
"public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }",
"public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }",
"public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}",
"public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }",
"public function deleteImage(){\n \tStorage::delete($this->image);\n }",
"public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }",
"public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }",
"public function destroy($id)\n {\n Myfile::find($id)->delete();\n }",
"public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }",
"public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }",
"public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }",
"public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }",
"public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }",
"public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }",
"public function delete($path);",
"public function delete($path);",
"public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }",
"public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }",
"public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }",
"public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }",
"public function delete($path, $data = null);",
"public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }",
"public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }",
"public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }",
"public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }",
"public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }",
"public function del($path){\n\t\treturn $this->remove($path);\n\t}",
"public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }",
"public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}",
"public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }",
"public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }",
"public function revoke($resource, $permission = null);",
"public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }",
"function delete($path);",
"public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}",
"public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }",
"public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }",
"public function remove($filePath){\n return Storage::delete($filePath);\n }",
"public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }",
"public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }",
"public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }",
"public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }",
"function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }",
"public function remove($id);",
"public function remove($id);",
"public function deleted(Storage $storage)\n {\n //\n }",
"public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }",
"public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }",
"public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }",
"public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }",
"function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}",
"public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }",
"public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}",
"public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }",
"public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }"
] | [
"0.6672584",
"0.6659381",
"0.6635911",
"0.6632799",
"0.6626075",
"0.65424126",
"0.65416265",
"0.64648265",
"0.62882507",
"0.6175931",
"0.6129922",
"0.60893893",
"0.6054415",
"0.60428125",
"0.60064924",
"0.59337646",
"0.5930772",
"0.59199584",
"0.5919811",
"0.5904504",
"0.5897263",
"0.58962846",
"0.58951396",
"0.58951396",
"0.58951396",
"0.58951396",
"0.5880124",
"0.58690923",
"0.5863659",
"0.5809161",
"0.57735413",
"0.5760811",
"0.5753559",
"0.57492644",
"0.5741712",
"0.57334286",
"0.5726379",
"0.57144034",
"0.57096",
"0.5707689",
"0.5705895",
"0.5705634",
"0.5703902",
"0.5696585",
"0.5684331",
"0.5684331",
"0.56780374",
"0.5677111",
"0.5657287",
"0.5648262",
"0.5648085",
"0.5648012",
"0.5640759",
"0.5637738",
"0.5629985",
"0.5619264",
"0.56167465",
"0.5606877",
"0.56021434",
"0.5601949",
"0.55992156",
"0.5598557",
"0.55897516",
"0.5581397",
"0.5566926",
"0.5566796",
"0.55642897",
"0.55641",
"0.5556583",
"0.5556536",
"0.5550097",
"0.5543172",
"0.55422723",
"0.5540013",
"0.5540013",
"0.55371785",
"0.55365825",
"0.55300397",
"0.552969",
"0.55275744",
"0.55272335",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.5525997",
"0.5525624",
"0.5523911",
"0.5521122",
"0.5517412"
] | 0.0 | -1 |
Fields that need to be included for extra select. | public function get_extra_select() {
return [
'choice_id' => $this->usechoiceid,
'response' => $this->useresponse,
'rank' => $this->userank
];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function include_fields()\n {\n }",
"public function getSelectSpecificFields()\n\t{\n\t\treturn $this->_selectSpecificFields;\n\t}",
"public function getSelectDataFields();",
"private function getOldSkuFieldsForSelect()\n {\n return ['type_id', 'attribute_set_id'];\n }",
"public function getExtraFields()\n {\n return isset($this->extraFields) ? $this->extraFields : null;\n }",
"protected function restrict_fields()\n {\n }",
"protected function _addDefaultFields()\n {\n $select = $this->clause('select');\n $this->_hasFields = true;\n\n if (!count($select) || $this->_autoFields === true) {\n $this->_hasFields = false;\n $this->select($this->repository()->getSchema()->columns());\n $select = $this->clause('select');\n }\n\n $aliased = $this->aliasFields($select, $this->repository()->getAlias());\n $this->select($aliased, true);\n }",
"public function getAdditionalFields() {\n\t\t\n\t\t$fields = array();\n\t\t\n\t\tif ($this->installed()) {\n\t\t\t$ro_settings = $this->config->get('related_options');\n\t\t\t$std_fields = array('sku', 'upc', 'ean', 'location');\n\t\t\tforeach ($std_fields as $field) {\n\t\t\t\tif ( isset($ro_settings['spec_'.$field]) && $ro_settings['spec_'.$field] ) {\n\t\t\t\t\t$fields[] = $field;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $fields;\n\t}",
"function _get_select_fields()\r\n\t{\r\n\t\t$sql_exec_fields = array();\r\n\t\tforeach ($this->_params as $key => $val)\r\n\t\t{\r\n\t\t\t$tmp_field = $this->_node_table . '.' . $key . ' AS ' . $val;\r\n\t\t\t$sql_exec_fields[] = $tmp_field;\r\n\t\t} \r\n\r\n\t\t$fields = implode(', ', $sql_exec_fields);\r\n\t\treturn $fields;\r\n\t}",
"protected function getSelectFields()\n {\n return $this->getSettingsValue('select');\n }",
"public function fetch_fields() {}",
"public function getCommonSelectFieldsReturnsCorrectFieldsDataProvider() {}",
"function &getExtraFieldData() {\n\t\tif (!isset($this->extra_field_data)) {\n\t\t\t$this->extra_field_data = array();\n\t\t\t$res = db_query_params ('SELECT * FROM artifact_extra_field_data WHERE artifact_id=$1 ORDER BY extra_field_id',\n\t\t\t\t\t\tarray ($this->getID())) ;\n\t\t\t$ef = $this->ArtifactType->getExtraFields();\n\t\t\twhile ($arr = db_fetch_array($res)) {\n\t\t\t\t$type=$ef[$arr['extra_field_id']]['field_type'];\n\t\t\t\tif (($type == ARTIFACT_EXTRAFIELDTYPE_CHECKBOX) || ($type==ARTIFACT_EXTRAFIELDTYPE_MULTISELECT)) {\n\t\t\t\t\t//accumulate a sub-array of values in cases where you may have multiple rows\n\t\t\t\t\tif (!array_key_exists($arr['extra_field_id'], $this->extra_field_data) || !is_array($this->extra_field_data[$arr['extra_field_id']])) {\n\t\t\t\t\t\t$this->extra_field_data[$arr['extra_field_id']] = array();\n\t\t\t\t\t}\n\t\t\t\t\t$this->extra_field_data[$arr['extra_field_id']][]=$arr['field_data'];\n\t\t\t\t} else {\n\t\t\t\t\t$this->extra_field_data[$arr['extra_field_id']] = $arr['field_data'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $this->extra_field_data;\n\t}",
"public static function selectFields() {\n\t\treturn array_merge( Event::selectFields(), [\n\t\t\t'notification_event',\n\t\t\t'notification_user',\n\t\t\t'notification_timestamp',\n\t\t\t'notification_read_timestamp',\n\t\t\t'notification_bundle_hash',\n\t\t] );\n\t}",
"public function extraFields()\n {\n return [\n 'modals',\n 'modal_windows',\n ];\n }",
"public function fetchFields();",
"protected function getExcludeFields() {}",
"public function getAdditionalFields()\n {\n return $this->additionalFields;\n }",
"public function getAdditionalFields()\n {\n return $this->additionalFields;\n }",
"abstract public function supported_fields();",
"private function getNewSkuFieldsForSelect()\n {\n $fields = ['sku', $this->getProductEntityLinkField()];\n if ($this->getProductEntityLinkField() != $this->getProductIdentifierField()) {\n $fields[] = $this->getProductIdentifierField();\n }\n return $fields;\n }",
"protected function prepare_fields()\n {\n }",
"public function providedFields();",
"function get_all_additional_fields() {\r\n\t\t$sql = \"SELECT * FROM sys_man_additional_fields ORDER BY field_name\";\r\n\t\t$sql = $this->clean_sql($sql);\r\n\t\t$query = $this->db->query($sql);\r\n\t\t$result = $query->result();\r\n\t\treturn ($result);\r\n\t}",
"private function _loadOtherCountryFields()\n {\n $countries = \\App\\Countries::all();\n $countries->each(function ($country, $key) {\n if (!isset($this->_addAccountfields[$country->country_name]))\n $this->_addAccountfields[$country->country_name] = ['account_name', 'bank_name', 'swift_code', 'branch_address', 'account_number'];\n });\n }",
"public function getAdditionalFields()\n {\n return $this->additional_fields;\n }",
"public static function get_fields()\n {\n }",
"abstract public function fields();",
"abstract function fields_options();",
"public function testBuildSelectWithFields()\n {\n $query = $this->getQuery()\n ->fields('id', 'name', 'email')\n ;\n\n $this->assertSame(\n 'id, name, email',\n $query->buildSelectFields()\n );\n }",
"public function getAdditionalFields($include_model=false) {\n\t\t\n\t\t$fields = array();\n\t\t\n\t\tif ($this->installed()) {\n\t\t\t$ro_settings = $this->config->get('related_options');\n\t\t\t$std_fields = array('sku', 'upc', 'ean', 'location');\n\t\t\tif ( $include_model ) {\n\t\t\t\tarray_unshift($std_fields, 'model');\n\t\t\t}\n\t\t\tforeach ($std_fields as $field) {\n\t\t\t\tif ( isset($ro_settings['spec_'.$field]) && $ro_settings['spec_'.$field] ) {\n\t\t\t\t\t$fields[] = $field;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $fields;\n\t}",
"protected function getCompleteFieldInformation() {}",
"abstract protected function getFields();",
"public function getFields() {}",
"public function getFields() {}",
"public function getFields() {}",
"protected function getFieldsFromShowItem() {}",
"public function fields();",
"public function fields();",
"public function fields();",
"public function fields();",
"public function fields();",
"function add_specific_form_fields() {\n\t\treturn false;\n\t}",
"public function getAdditionalFields()\n {\n return $this->postRequest('GetAdditionalFields');\n }",
"public function setSelectFields()\r\n\t{\r\n\t\t$fields = func_get_args();\r\n\t\tif (empty($fields))\r\n\t\t{\r\n\t\t\tthrow new \\Exception('Select fields list is not an array or empty.');\r\n\t\t}\r\n\t\r\n\t\t// Check if fields exist in fields collection\r\n\t\tforeach($fields as &$item)\r\n\t\t{\r\n\t\t\t$found = false;\r\n\t\t\tforeach ($this->fields as &$field)\r\n\t\t\t{\r\n\t\t\t\tif ($item == $field->name)\r\n\t\t\t\t{\r\n\t\t\t\t\t$found = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tif (!$found)\r\n\t\t\t{\r\n\t\t\t\tthrow new \\Exception('There is no field \"' . $item . '\" in table ' . $this->name . '.');\r\n\t\t\t}\r\n\t\r\n\t\t\t// Add to list\r\n\t\t\tif ($this->hasForeignFields())\r\n\t\t\t{\r\n\t\t\t\t$item = 't1.`' . $item . '`';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$item = '`' . $this->name . '`.`' . $item . '`';\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t$this->selectFields = $fields;\r\n\t}",
"abstract public function filterFields();",
"abstract function fields();",
"protected function getPreparedSelectFields()\n {\n $result = [];\n $fields = $this->getSelectFields();\n if (!empty($fields) && is_array($fields)) {\n foreach ($fields as $row) {\n if (empty($row) || !is_array($row) || empty($row['id'])) {\n continue;\n }\n $result[] = $row['id'];\n }\n unset($row);\n }\n return $result;\n }",
"public function buildFields() {\n }",
"public function useAllFields() {\n $this->__onlyFields = array();\n }",
"function GetExtendedFilterValues() {\n\t\tglobal $deals_details;\n\n\t\t// Field dealer\n\t\t$sSelect = \"SELECT DISTINCT rep.dealer FROM \" . $deals_details->SqlFrom();\n\t\t$sOrderBy = \"rep.dealer ASC\";\n\t\t$wrkSql = ewrpt_BuildReportSql($sSelect, $deals_details->SqlWhere(), \"\", \"\", $sOrderBy, $this->UserIDFilter, \"\");\n\t\t$deals_details->dealer->DropDownList = ewrpt_GetDistinctValues(\"\", $wrkSql);\n\n\t\t// Field date_start\n\t\t$sSelect = \"SELECT DISTINCT rep.date_start FROM \" . $deals_details->SqlFrom();\n\t\t$sOrderBy = \"rep.date_start ASC\";\n\t\t$wrkSql = ewrpt_BuildReportSql($sSelect, $deals_details->SqlWhere(), \"\", \"\", $sOrderBy, $this->UserIDFilter, \"\");\n\t\t$deals_details->date_start->DropDownList = ewrpt_GetDistinctValues($deals_details->date_start->DateFilter, $wrkSql);\n\n\t\t// Field status\n\t\t$sSelect = \"SELECT DISTINCT rep.status FROM \" . $deals_details->SqlFrom();\n\t\t$sOrderBy = \"rep.status ASC\";\n\t\t$wrkSql = ewrpt_BuildReportSql($sSelect, $deals_details->SqlWhere(), \"\", \"\", $sOrderBy, $this->UserIDFilter, \"\");\n\t\t$deals_details->status->DropDownList = ewrpt_GetDistinctValues(\"\", $wrkSql);\n\t}",
"abstract protected function fields();",
"abstract protected function fields();",
"public function select($fields);",
"protected function __fields() {\n $Fields = array_keys(get_object_vars($this));\n if (!empty ($this->__onlyFields)) {\n $Fields = $this->__onlyFields;\n }\n $NewFields = array();\n foreach ($Fields as $field) {\n if (in_array ($field, array ('__bound', '__Data', 'cleaned_data', 'label_suffix', 'required_suffix', 'is_editable', 'suppress_errors'))) continue;\n if (!is_object($this->$field)) continue;\n if (!empty ($this->disabled[$field])) continue;\n if (in_array ($field, $this->__Exclude)) continue;\n $NewFields[] = $field;\n }\n return $NewFields;\n }",
"abstract public function getFields();",
"abstract public function getFields();",
"protected function fetch_fields()\n {\n if(empty($this->table_fields))\n {\n $fields = $this->_database->list_fields($this->table);\n foreach ($fields as $field) {\n $this->table_fields[] = $field;\n }\n }\n }",
"function selectOnly($fields) {\n\t $this->result = null;\n \n\t if(is_array($fields)) {\n\t $this->select = $fields;\n\t } else {\n\t $args = func_get_args();\n\t\t array_shift($args);\n\t\t \n\t $this->select = array();\n\t\t\t$this->select[] = $this->escapeArray($fields, $args);\n\t }\n\t return $this; \n\t}",
"function getQueryListProductsExtraFields(){\n $query = \"\";\n $list = JSFactory::getAllProductExtraField();\n $jshopConfig = JSFactory::getConfig();\n $config_list = $jshopConfig->getProductListDisplayExtraFields();\n foreach($list as $v){\n if (in_array($v->id, $config_list)){\n $query .= \", prod.`extra_field_\".$v->id.\"` \";\n }\n }\nreturn $query;\n}",
"protected function additionalFieldsAllowed(): bool\n\t{\n\t\treturn true;\n\t}",
"public function getFrontEndRequiredFields();",
"public static function getExcludeFields() {}",
"public function getRequiredExtraFields(): array\n {\n return [];\n }",
"public function getFields();",
"public function getFields();",
"public function getFields();",
"public function getFields();",
"public function getFields();",
"public function getFields();",
"private function loadFields(){\n\t\t$this->fields = $this->wpdb->get_results($this->wpdb->prepare(\"\n\t\t\tSELECT\n\t\t\t\t`field`.`id` \t\t\t'field_id',\n\t\t\t\t`type`.`name` \t\t\t'type',\n\t\t\t\t`field`.`name`\t\t\t'name',\n\t\t\t\t`field`.`label`\t\t\t'label',\n\t\t\t\t`field`.`default`\t\t'default',\n\t\t\t\t`field`.`required`\t\t'required',\n\t\t\t\t`field`.`depends_id`\t'depends_id',\n\t\t\t\t`field`.`depends_value`\t'depends_value',\n\t\t\t\t`field`.`placeholder`\t'placeholder'\n\t\t\tFROM `mark_reg_fields` `field`\n\t\t\tLEFT JOIN `mark_reg_field_types` `type` ON `type`.`id` = `field`.`type_id`\n\t\t\tWHERE\n\t\t\t\t`field`.`enabled` = 1\n\t\t\t\tAND `field`.`form_id` = %d\n\t\t\t\tAND `field`.`backend_only` = 0\n\t\t\tORDER BY\n\t\t\t\t`field`.`order`\n\t\t\", $this->form_id));\n\t}",
"abstract protected function getMandatoryModelsFields();",
"function getFields();",
"public function selectFields($select='*')\n\t\t{\n\t\t\t$this->reload();\n\t\t\t$this->select = $select;\n\t\t}",
"public function getRequiredFields() {\n return $this->source->getRequiredFields($this->filter);\n }",
"function _get_avail_fields() {\n\t\t$avail_fields = array();\n\t\tif ($this->MODE == \"SIMPLE\") {\n\t\t\t$avail_fields = $this->_get_fields_map_simple();\n\t\t} else {\n\t\t\t$avail_fields = $this->_get_fields_map_dynamic(true);\n\t\t}\n\t\treturn $avail_fields;\n\t}",
"protected function processExtraFields()\n {\n $rows = [];\n foreach ($this->getConfig('extraFields') as $definition) {\n $parts = [];\n foreach ($definition as $key => $val) {\n $parts[] = \"'{$key}': {$val}\";\n }\n $rows[] = implode(',', $parts);\n }\n\n return implode(',', $rows);\n }",
"public function getExtraFields()\n {\n $extraFields = new FieldList();\n\n $token = $this->getSecurityToken();\n if ($token) {\n $tokenField = $token->updateFieldSet($this->fields);\n if ($tokenField) {\n $tokenField->setForm($this);\n }\n }\n $this->securityTokenAdded = true;\n\n // add the \"real\" HTTP method if necessary (for PUT, DELETE and HEAD)\n if (strtoupper($this->FormMethod() ?? '') != $this->FormHttpMethod()) {\n $methodField = new HiddenField('_method', '', $this->FormHttpMethod());\n $methodField->setForm($this);\n $extraFields->push($methodField);\n }\n\n return $extraFields;\n }",
"private function getAdditionalListFields(){\n $cols = '';\n\n foreach($this->main->dataset['data'] as $item){\n if($item['list'] && strlen($item['name']) > 0 &&\n ($item['name'] != 'name' && $item['name'] != 'sort' && $item['name'] != 'id' && $item['name'] != 'publish')\n ){\n $cols .= ', `'.DB::quote($item['name']).'`';\n };\n };\n\n return $cols;\n }",
"public function selectFields($selectFields)\n\t{\n\t\t$this->select = $selectFields ? $selectFields : '*';\n\t}",
"public function extraFields()\n {\n return ['categoria'];\n }",
"function getAdditionalFieldsToSelect($samlresponse, $settings)\n\t{\n\t\tif (isset($settings->saml_settings) && isset($settings->saml_settings['update']) && count($settings->saml_settings['update']) > 0)\n {\n\t\t\treturn ',' . implode(',', $this->getCustomFields($settings, 'update'));\n\t\t}\n\t\treturn '';\n\t}",
"public function getExtraDataFields()\n {\n return [];\n }",
"private function registerUsableFields(): void\n {\n $this->attributeList = $this->filterSystemControlFields(\n \\get_object_vars($this)\n );\n }",
"public function get_fields( $specific_field = \"\" )\n {\n\n $fields = array(\n \n 'ue_id' => array(\n 'table' => $this->_table,\n 'name' => 'ue_id',\n 'label' => 'id #',\n 'type' => 'hidden',\n 'type_dt' => 'text',\n 'attributes' => array(),\n 'dt_attributes' => array(\"width\"=>\"5%\"),\n 'js_rules' => '',\n 'rules' => 'trim'\n ),\n\n 'ue_user_id' => array(\n 'table' => $this->_table,\n 'name' => 'ue_user_id',\n 'label' => 'User ID',\n 'type' => 'text',\n 'type_dt' => 'text',\n 'type_filter_dt' => 'text',\n 'attributes' => array(),\n 'dt_attributes' => array(\"width\"=>\"10%\"),\n 'js_rules' => 'required',\n 'rules' => 'required|trim'\n ),\n\n 'ue_order_item_id' => array(\n 'table' => $this->_table,\n 'name' => 'ue_order_item_id',\n 'label' => 'Order Item ID',\n 'type' => 'text',\n 'attributes' => array(),\n 'js_rules' => 'required',\n 'rules' => 'required|trim|htmlentities'\n ),\n\n 'ue_exam_list_id' => array(\n 'table' => $this->_table,\n 'name' => 'ue_exam_list_id',\n 'label' => 'Exam Item ID',\n 'type' => 'text',\n 'attributes' => array(),\n 'js_rules' => array(),\n 'rules' => 'required|htmlentities'\n ),\n 'ue_exam_id' => array(\n 'table' => $this->_table,\n 'name' => 'ue_exam_id',\n 'label' => 'Exam ID',\n 'type' => 'text',\n 'attributes' => array(),\n 'js_rules' => array(),\n 'rules' => 'required|htmlentities'\n ),\n 'ue_position' => array(\n 'table' => $this->_table,\n 'name' => 'ue_position',\n 'label' => 'Position',\n 'type' => 'text',\n 'attributes' => array(),\n 'js_rules' => array(),\n 'rules' => 'required|htmlentities'\n ),\n 'ue_exam_answer' => array(\n 'table' => $this->_table,\n 'name' => 'ue_exam_answer',\n 'label' => 'Answer',\n 'type' => 'text',\n 'attributes' => array(),\n 'js_rules' => array(),\n 'rules' => 'required|htmlentities'\n ),\n\n 'ue_status' => array(\n 'table' => $this->_table,\n 'name' => 'ue_status',\n 'label' => 'Status?',\n 'type' => 'switch',\n 'type_dt' => 'dropdown',\n 'type_filter_dt' => 'dropdown',\n 'list_data_key' => \"user_exam_status\" ,\n 'list_data' => array(\n 0 => \"<span class=\\\"label label-default\\\">Inactive</span>\" ,\n 1 => \"<span class=\\\"label label-primary\\\">Active</span>\"\n ) ,\n 'default' => '1',\n 'attributes' => array(),\n 'dt_attributes' => array(\"width\"=>\"7%\"),\n 'rules' => 'trim'\n ),\n \n );\n \n if($specific_field)\n return $fields[ $specific_field ];\n else\n return $fields;\n }",
"protected function _fields()\n\t{\n\t\treturn array(\n\t\t\t\t'name',\n\t\t\t 'intro', 'sort_order',\n\t\t\t 'status', 'feature',\n\t\t);\n\t}",
"function extraFields() {\n\t\n\t\t$file_id = JRequest::getVar('id');\n\t\t$filename = JRequest::getVar('filename');\n\t\t\n\t\tif (!$filename) {\n\t\t\texit();\n\t\t}\n\t\t\n\t\t$model = $this->getModel();\n\t\t$form = $model->getFieldForm($file_id, 'bulk');\n\t\t\n\t\tif (!$form) {\n\t\t\techo \"There was an error creating the form\";\n\t\t\texit();\n\t\t}\n\t\t\n\t\techo '<div class=\"fltlft\" style=\"width:250px;\">';\n\t\techo '<fieldset class=\"adminform\">';\n\t\techo '<legend>Edit '.$filename.'</legend>';\n\t\techo '<div class=\"adminformlist\">';\n\n\t\tforeach ($form->getFieldset() as $field) {\n\t\t\tJHtml::_('wbty.renderField', $field);\n\t\t}\n\t\techo \"</div></fieldset></div>\";\n\t\t\n\t\texit();\n\t}",
"function fill_in_additional_list_fields()\r\n\t{\r\n\t}",
"private function _fields() {\n if ($this->_table() && empty($this->fields)) {\n $this->fields = $this->db->list_fields($this->_table());\n }\n return $this->fields;\n }",
"private function exampleFields()\n {\n }",
"public function select(...$fields) {\n\t\t$select = (new Selectable($this->table))->select($fields);\n\t\t\n\t\tif ($this->softDelete) {\n\t\t\t$select->where((new Where)->isNull('`'. $this->table .'`.`deleted_at`'));\n\t\t}\n\n\t\treturn $select;\n\t}",
"public function fields()\n {\n return array_merge(\n parent::fields(),\n [\n 'date', 'origin', 'originName', 'total',\n 'createdAt' => function ($model) {\n return MongodbUtil::MongoDate2String($model->createdAt);\n }\n ]\n );\n }",
"protected function get_registered_fields()\n {\n }",
"public function getSubfields();",
"public static function available_fields()\n {\n return self::$available_fields;\n }",
"public function pubFields()\n {\n $fields = array();\n\n foreach ($this as $column => $value) {\n $fields[$column] = 'column';\n }\n\n // FIXME From Doctrine: prevent mapped Doctrine_Records from being displayed fully\n foreach ($this->_values as $key => $value) {\n $fields[$key] = 'value';\n }\n\n foreach ($this->_table->getRelations() as $key => $relation) {\n if (strpos($key, 'Clip_Model_Relation') !== 0) {\n $fields[$key] = 'relation';\n }\n }\n\n // reorder the fields conveniently\n $reorder = array(\n 'core_title' => 'map',\n 'core_uniqueid' => 'map',\n 'core_tid' => 'map',\n 'core_pid' => 'value',\n 'core_author' => 'value',\n 'core_creator' => 'map',\n 'core_approvalstate' => 'map'\n );\n $fields = array_merge($reorder, $fields);\n\n return $fields;\n }",
"public function set_extra_fields($fields) {\n $this->extrafields = $fields;\n }",
"public static function selectVersioningFields($table, $selectFields) {\n\t\t$additionalFields = self::selectVersioningFieldsArray($table, $selectFields);\n\t\tif (count($additionalFields) > 0) {\n\t\t\tforeach ($additionalFields as $aField) {\n\t\t\t\t$selectFields .= ', ' . $table . '.' . $aField;\n\t\t\t}\n\t\t}\n\t\treturn $selectFields;\n\t}",
"protected function getAvailableFields() \n {\n return array_merge(\n Fields::$spot,\n Fields::$mass,\n Fields::$location\n );\n }",
"public function getAllFields();"
] | [
"0.72514606",
"0.7089712",
"0.6965258",
"0.6861122",
"0.65541947",
"0.6525796",
"0.65192825",
"0.65083545",
"0.64990294",
"0.644088",
"0.6428929",
"0.64003843",
"0.63925904",
"0.63764805",
"0.63699424",
"0.6343833",
"0.63273",
"0.6324544",
"0.6324544",
"0.6316707",
"0.63063973",
"0.6305176",
"0.62957585",
"0.6295733",
"0.6275759",
"0.627331",
"0.6264329",
"0.6218612",
"0.62145793",
"0.61839694",
"0.61757845",
"0.6172308",
"0.6169759",
"0.61681944",
"0.61681944",
"0.61681944",
"0.61622596",
"0.61615855",
"0.61615855",
"0.61615855",
"0.61615855",
"0.61615855",
"0.616118",
"0.61557245",
"0.61498207",
"0.6141079",
"0.6135497",
"0.6114813",
"0.6084697",
"0.60482883",
"0.60416204",
"0.60360473",
"0.60360473",
"0.603529",
"0.6034992",
"0.6028742",
"0.6028742",
"0.60272044",
"0.6024266",
"0.6017368",
"0.5998573",
"0.5995678",
"0.5983456",
"0.59777117",
"0.59775513",
"0.59775513",
"0.59775513",
"0.59775513",
"0.59775513",
"0.59775513",
"0.5975237",
"0.59720427",
"0.5949123",
"0.5945537",
"0.5936175",
"0.5929251",
"0.591479",
"0.5909212",
"0.59076047",
"0.5905507",
"0.5904489",
"0.5899999",
"0.58957934",
"0.5894464",
"0.5893986",
"0.58856153",
"0.58832645",
"0.5882808",
"0.5870635",
"0.58704",
"0.5863475",
"0.58586645",
"0.58500975",
"0.58437884",
"0.5842631",
"0.5838841",
"0.58261156",
"0.5822327",
"0.5818965",
"0.58185697"
] | 0.64058465 | 11 |
Create a new command instance. | public function __construct()
{
parent::__construct();
$this->path = __DIR__.'/../';
$this->Model = '';
$this->model = '';
$this->Models = '';
$this->models = '';
$this->schema = '';
$this->field_names = '';
$this->table_header = '';
$this->table_data = '';
$this->details = '';
$this->seeder_data = '';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }",
"public function createCommand()\r\n\t{\r\n\t\t$obj = new DbCommand($this,$this->dbms);\r\n\t\treturn $obj;\r\n\t}",
"public function createCommand() {\n\t\treturn new UnboxedCommand( $this );\n\t}",
"protected function createCommand($args) {\n $command = new Command();\n $command->id = ifseta($args, 'id');\n $command->name = ifseta($args, 'name');\n $command->url = ifseta($args, 'url');\n $command->description = ifseta($args, 'description');\n $command->uses = ifseta($args, 'uses');\n $command->creationDate = ifseta($args, 'creation_date');\n $command->lastUseDate = ifseta($args, 'last_use_date');\n $command->goldenEggDate = ifseta($args, 'golden_egg_date');\n return $command;\n }",
"static public function create($cmd = null, $args = null)\n {\n return new self($cmd, $args);\n }",
"public function createCommand($kernel, string $commandName = null, string $commandDescription = null): Command;",
"public function makeCommand() \n {\n if($this->CrontabCommandObject === NULL)\n {\n $this->CrontabCommandObject = new \\root\\library\\Crontab\\CrontabCommand\\CrontabCommand();\n }\n \n return $this->CrontabCommandObject;\n }",
"public function testInstantiation()\n {\n $command = new CreateRule('dummy name');\n }",
"public function command(Command $command);",
"public function __construct($command)\n {\n $this->command = $command;\n }",
"public static function create(array $data)\n {\n $command = new static();\n $command->exchangeArray($data);\n return $command;\n }",
"protected function getCreateCommand()\n {\n $command = new IndexCreateCommand();\n $command->setContainer($this->getContainer());\n\n return $command;\n }",
"public function createCommand($string = '')\n {\n return $this->createStringable($string);\n }",
"public function createCommand($type) {\r\n $command = $this->xml->createElement('command');\r\n $command->setAttribute('xsi:type', $type);\r\n $command->setAttribute('xmlns', '');\r\n $this->xmlSchema($command);\r\n return $command;\r\n }",
"public function __construct()\n {\n // We will go ahead and set the name, description, and parameters on console\n // commands just to make things a little easier on the developer. This is\n // so they don't have to all be manually specified in the constructors.\n if (isset($this->signature)) {\n $this->configureUsingFluentDefinition();\n } else {\n parent::__construct($this->name);\n }\n\n // Once we have constructed the command, we'll set the description and other\n // related properties of the command. If a signature wasn't used to build\n // the command we'll set the arguments and the options on this command.\n $this->setDescription((string) $this->description);\n\n $this->setHelp((string) $this->help);\n\n $this->setHidden($this->isHidden());\n\n if (! isset($this->signature)) {\n $this->specifyParameters();\n }\n }",
"public function make(string $name, PreprocessorInterface $preprocessor = null): CommandInterface;",
"private function _getCommandByClassName($className)\n {\n return new $className;\n }",
"public function newCommand($regex, $callable) {\n $cmd = new Command();\n $cmd->regex = $regex;\n $cmd->callable = $callable;\n return $this->addCommand($cmd);\n }",
"public static function create($commandID, ...$args)\n {\n $arguments = func_get_args();\n\n return new static(array_shift($arguments), $arguments);\n }",
"private function __construct($command = null)\n {\n $this->command = $command;\n }",
"public static function factory(string $command, string $before = '', string $after = ''): self\n {\n return new self($command, $before, $after);\n }",
"public function getCommand() {}",
"protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\ESCAPE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('tag', null, null, false))\n ->addArgument(new Argument($this->tag, null, null, true));\n\n return $command;\n }",
"public function testCanBeInstantiated()\n {\n $command = $this->createInstance();\n $this->assertInstanceOf('\\\\Dhii\\\\ShellInterop\\\\CommandInterface', $command, 'Command must be an interoperable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\ConfigurableCommandInterface', $command, 'Command must be a configurable command');\n $this->assertInstanceOf('\\\\Dhii\\\\ShellCommandInterop\\\\MutableCommandInterface', $command, 'Command must be a mutable command');\n }",
"public function getCommand();",
"protected function createCommand($name, array $parameters = [])\n {\n return new Fluent(\n array_merge(\n compact('name'),\n $parameters)\n );\n }",
"public function testCanPassCommandStringToConstructor()\n {\n $command = new Command('/bin/ls -l');\n\n $this->assertEquals('/bin/ls -l', $command->getExecCommand());\n }",
"public function makeCommandInstanceByType(...$args): CommandInterface\n {\n $commandType = array_shift($args);\n\n switch ($commandType) {\n case self::PROGRAM_READ_MODEL_FETCH_ONE_COMMAND:\n return $this->makeFetchOneCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_COMMAND:\n return $this->makeFindCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_FIND_LITE_COMMAND:\n return $this->makeFindLiteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_TASK_COMMAND:\n return $this->makeItemCreateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_CREATE_COMMAND:\n return $this->makeItemCreateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_TASK_COMMAND:\n return $this->makeItemUpdateTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_UPDATE_COMMAND:\n return $this->makeItemUpdateCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_TASK_COMMAND:\n return $this->makeItemDeleteTaskCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_DELETE_COMMAND:\n return $this->makeItemDeleteCommand(...$args);\n\n case self::PROGRAM_READ_MODEL_ADD_ID_COMMAND:\n return $this->makeItemAddIdCommand(...$args);\n\n default:\n throw new FactoryException(sprintf('Command bus for type `%s` not found!', (string) $commandType));\n }\n }",
"public function __construct($cmd)\n {\n $this->cmd = $cmd;\n }",
"public function getCommand()\n {\n }",
"public function command($class)\n {\n $runnable = $this->resolveClass($class);\n\n if ( ! $runnable instanceof Command) {\n throw new InvalidArgumentException(get_class($runnable).' must be an instance of '.Command::class.'.');\n }\n\n $command = $runnable;\n\n if ($runnable instanceof Taggable) {\n $command = new Cached($command, $this);\n }\n\n if ($runnable instanceof Transactional) {\n $command = new Transaction($command, $this, $this->makeFromContainer(ConnectionInterface::class));\n }\n\n if ($runnable instanceof Eventable) {\n $command = new Evented($command, $this);\n }\n\n return $this->newBuilder($command);\n }",
"protected function createCommandFactory(): CommandFactory\n {\n return new CommandFactory([\n 'CLOSE' => Command\\CLOSE::class,\n ]);\n }",
"public static function register() {\n\n if ( !defined( 'WP_CLI' ) || !WP_CLI ) {\n return;\n }\n \n $instance = new static;\n if(empty( $instance->namespace )) {\n throw new \\Exception(\"Command namespace not defined\", 1);\n \n }\n\t\t\\WP_CLI::add_command( $instance->namespace, $instance, $instance->args ?? null );\n\t}",
"public function addCommand($command);",
"public function add(Command $command);",
"abstract protected function getCommand();",
"public function createCommand()\r\n\t{\r\n\t\t//start the string\r\n\t\t$command = '';\r\n\t\t\r\n\t\t//add the java command or the path to java\r\n\t\t$command .= $this->java_path;\r\n\t\t\r\n\t\t//add the class path\r\n\t\t$command .= ' -cp \"'. $this->stanford_path . $this->seperator . '*\" ';\r\n\t\t\r\n\t\t//add options\r\n\t\t$options = implode(' ', $this->java_options);\r\n\t\t$command .= '-'.$options;\r\n\t\t\r\n\t\t//add the call to the pipeline object\r\n\t\t$command .= ' edu.stanford.nlp.pipeline.StanfordCoreNLP ';\r\n\r\n\t\t//add the annotators\r\n\t\t$command .= '-annotators '. $this->listAnnotators();\r\n\t\t\r\n\t\t//add the input and output directors\r\n\t\t$command .= ' -file '. $this->tmp_file . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//this is for testing purposes\r\n\t\t//$command .= ' -file '. $this->tmp_path .'\\\\nlp3F25.tmp' . ' -outputDirectory '. $this->tmp_path;\r\n\t\t\r\n\t\t//if using regexner add this to the command string\r\n\t\tif($this->annotators['regexner'] === true)\r\n\t\t{\r\n\t\t\t$command .=' -regexner.mapping '. $this->regexner_path . $this->seperator . $this->regexner_file;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn $command;\r\n\t}",
"protected function createCommand(string $name, array $parameters = []): Fluent\n {\n return new Fluent(array_merge(compact('name'), $parameters));\n }",
"public function __construct()\n {\n parent::__construct(static::NAME, static::VERSION);\n $this->add(new DefaultCommand());\n }",
"public function __construct()\n {\n parent::__construct();\n\n $this->command_name = config(\"custom-commands.command_name\");\n\n parent::__construct($this->signature = $this->command_name);\n\n $this->commands = (array) config(\"custom-commands.commands\");\n \n $this->table = config(\"custom-commands.table\");\n\n $this->row = config(\"custom-commands.row\");\n\n $this->changeEnv = (boolean) config(\"custom-commands.change_env\");\n\n }",
"protected function createCommandFile()\n {\n $command_file_full_path = $this->command_dir_path . DIRECTORY_SEPARATOR . $this->arg->getCommandFileName();\n\n // Check if the command already exists\n if (file_exists($command_file_full_path)) {\n throw new Exception('Command already exists.');\n }\n\n // Create the file for the new command\n $command_file = fopen($command_file_full_path, 'w');\n\n // TODO: Create Script Generator to generate the PHP scripts for the new command.\n\n fclose($command_file);\n\n $this->console->getOutput()->println('File created at: ' . $command_file_full_path);\n $this->console->getOutput()->success('Command ' . $this->arg->getSignature() . ' created successfully.');\n }",
"public static function create() {}",
"public static function create() {}",
"public static function create() {}",
"public static function create(InteropContainer $container)\n {\n $middleware = $container->get('cmd.middleware');\n return new CommandBusFactory($middleware);\n }",
"private function createCli() {\n $this->cli = new Cli();\n $this->commands = $this->commandParser->getAllCommands();\n\n foreach ($this->commands as $command) {\n if ($command->isDefault()) {\n $this->cli->command(\"*\");\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n if ($command->getName() != \"\") {\n $this->cli->command($command->getName())->description($command->getDescription());\n foreach ($command->getOptions() as $option) {\n $this->cli->opt($option->getName(), $option->getDescription(), $option->isRequired(), $option->getType());\n }\n foreach ($command->getArguments() as $argument) {\n if (!$argument->isVariadic())\n $this->cli->arg($argument->getName(), $argument->getDescription(), $argument->isRequired());\n }\n }\n }\n\n\n }",
"public function testInstantiation()\n {\n $this->assertInstanceOf('Contao\\ManagerBundle\\Command\\InstallWebDirCommand', $this->command);\n }",
"public function command(string $command): self\n {\n $this->addCommands[] = $command;\n\n return $this;\n }",
"public function create() {}",
"protected function createProcess($cmd)\n {\n return new Process(explode(' ', $cmd));\n }",
"public function create(){}",
"protected function getCommandFactory(): Command\\Factory\n {\n return new Command\\RedisFactory();\n }",
"public function __construct()\n {\n parent::__construct();\n\n $this->commandData = new CommandData($this, CommandData::$COMMAND_TYPE_API);\n }",
"public function testNewCommand() : void\n {\n $this->assertFalse($this->command->hasArguments());\n $this->assertEquals(\"\", $this->command->getArguments());\n }",
"protected function createCommandBuilder()\n\t{\n\t\treturn new CSqliteCommandBuilder($this);\n\t}",
"public function __construct($command, $config = [])\n {\n $this->command = $command;\n $this->_output = $this->getDefaultOutput();\n parent::__construct($config);\n }",
"public function __construct(){\n\n global $argv;\n\n if(!isset($argv[1])){\n echo 'You must supply a command!' . PHP_EOL;\n exit;\n }//if\n\n $args = $argv;\n\n $scriptName = array_shift($args);\n $method = array_shift($args);\n\n $method = explode('-',$method);\n foreach($method as $k => $v){\n if($k != 0){\n $method[$k] = ucwords($v);\n }//if\n }//foreach\n\n $method = implode('',$method);\n\n $resolved = false;\n\n if(method_exists($this,$method)){\n call_user_func(Array($this,$method), $args);\n $resolved = true;\n }//if\n else {\n foreach(static::$extendedCommands as $commandClass){\n if(method_exists($commandClass,$method)){\n call_user_func(Array($commandClass,$method), $args);\n $resolved = true;\n break;\n }//if\n }//foreach\n }//el\n\n if(!$resolved){\n echo \"`{$method}` is not a valid CLI command!\";\n }//if\n\n echo PHP_EOL;\n exit;\n\n }",
"public function forCommand($command)\n {\n $this->command = $command;\n $this->pipe = new NullPipe();\n $this->manager = new InteractiveProcessManager($this->userInteraction);\n\n return $this;\n }",
"public function __construct()\n {\n parent::__construct('pwman', '0.1.0');\n\n $getCommand = new Get();\n $this->add($getCommand);\n\n $setCommand = new Set();\n $this->add($setCommand);\n }",
"public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }",
"public function createCommand(?string $sql = null, array $params = []): Command;",
"public function __construct($command = NULL, $name = NULL)\n {\n $args = func_get_args();\n\n switch ($command) {\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n case self::CONSTR_CMD_POP_FROM_ARR:\n case self::CONSTR_CMD_POP_FROM_OBJ:\n case self::CONSTR_CMD_POP_FROM_DB:\n case self::CONSTR_CMD_NEW:\n $this->setup_name = $name;\n\n # shift off known args\n array_shift($args);\n array_shift($args);\n break;\n }\n\n switch ($command) {\n case self::CONSTR_CMD_POP_FROM_ARR:\n $this->applyArray($args[0]);\n break;\n case self::CONSTR_CMD_POP_FROM_OBJ:\n break;\n case self::CONSTR_CMD_POP_FROM_DB:\n break;\n case self::CONSTR_CMD_POPULATE_SYNCED_ARRAY:\n $this->applyArray($args[0]);\n $this->setAllLoaded();\n break;\n default:\n throw new OrmInputException('Guessing not supported, please explicitly specify construction type');\n self::constructGuess($args);\n }\n\n $this->ensureObjectInDb();\n }",
"public function generateCommands();",
"protected function newInstanceCommand($commandClass)\n {\n $class = new ReflectionClass($commandClass);\n\n return $class->newInstanceArgs($this->resolveCommandParameters($class));\n }",
"protected function buildCommand()\n {\n return $this->command;\n }",
"public function makeItemCreateCommand(string $processUuid, array $item): ItemCreateCommand\n {\n $processUuid = ProcessUuid::fromNative($processUuid);\n $uuid = Uuid::fromNative(null);\n $item = Item::fromNative($item);\n\n return new ItemCreateCommand($processUuid, $uuid, $item);\n }",
"public function __construct($commandName, $args = [], $description = '') {\n if (!$this->setName($commandName)) {\n $this->setName('--new-command');\n }\n $this->addArgs($args);\n\n if (!$this->setDescription($description)) {\n $this->setDescription('<NO DESCRIPTION>');\n }\n }",
"public function getCommand($name, array $args = array())\n {\n return parent::getCommand($name, $args)\n ->setRequestSerializer(RequestSerializer::getInstance());\n }",
"protected function buildCommand()\n {\n $command = new Command(\\Tivie\\Command\\DONT_ADD_SPACE_BEFORE_VALUE);\n $command\n ->chdir(realpath($this->repoDir))\n ->setCommand($this->gitDir)\n ->addArgument(new Argument('rev-parse'))\n ->addArgument(new Argument('HEAD'));\n\n return $command;\n }",
"protected function instantiateCommand(Request $request, $args)\n {\n $command = new DeletePackageCustomerCommand($args);\n\n $requestBody = $request->getParsedBody();\n\n $this->setCommandFields($command, $requestBody);\n\n return $command;\n }",
"public function createCommand($sql = null, $params = [])\n {\n $command = new Command([\n 'db' => $this,\n 'sql' => $sql,\n ]);\n\n return $command->bindValues($params);\n }",
"protected function setCommand($value) {\n\t\t$this->_command = trim($value);\n\t\treturn $this;\n\t}",
"public function setCommand($command)\n {\n $this->command = $command;\n\n return $this;\n }",
"public function buildCommand()\n {\n return parent::buildCommand();\n }",
"private function registerMakeModuleCommand()\n {\n $this->app->singleton('command.make.module', function($app) {\n return $app['Caffeinated\\Modules\\Console\\Generators\\MakeModuleCommand'];\n });\n\n $this->commands('command.make.module');\n }",
"public function __construct()\n {\n parent::__construct();\n\n $this->currentDirectory = getcwd();\n $this->baseIndentLevel = 0;\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\HelpCommand\", \"help\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\InitializePlanetCommand\", \"init\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackAndPushUniToolCommand\", \"packpushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PackLightPluginCommand\", \"packlightmap\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushCommand\", \"push\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\PushUniverseSnapshotCommand\", \"pushuni\");\n $this->registerCommand(\"Ling\\LingTalfi\\Kaos\\Command\\UpdateSubscriberDependenciesCommand\", \"updsd\");\n\n }",
"public function getCommand(string $command);",
"protected function registerCommand(){\n\t\t$this->app->singleton('fakeid.command.setup', function ($app){\n\t\t\treturn new SetupCommand();\n\t\t});\n\n\t\t$this->commands('fakeid.command.setup');\n\t}",
"public function addCommand($command, $args = [], $data = [])\n {\n $item = new ScreenCommand();\n $item->screen_id = $this->id;\n $item->command = $command;\n $item->arguments = $args;\n $item->fill($data);\n $item->save();\n\n return $item;\n }",
"public function test_creating_command_from_container()\n {\n $now = new \\DateTime();\n $this->container->add('DateTime', $now);\n $command = 'Spekkionu\\DomainDispatcher\\Test\\Commands\\CommandWithConstructor';\n $result = $this->dispatcher->dispatch($command);\n $this->assertSame($now, $result);\n }",
"protected function createProcess(): Process\n {\n $command = [\n $this->settings['executable']\n ];\n\n $command[] = $this->from;\n $command[] = $this->to;\n\n // Set the margins if needed.\n if ($this->settings['marginsType'] !== self::MARGIN_TYPE_NO_MARGINS) {\n $command[] = '--marginsType=' . $this->settings['marginsType'];\n }\n\n // If we need to proxy with node we just need to prepend the $command with `node`.\n if ($this->settings['proxyWithNode']) {\n array_unshift($command, 'node');\n }\n\n // If there's no graphical environment we need to prepend the $command with `xvfb-run\n // --auto-servernum`.\n if (! $this->settings['graphicalEnvironment']) {\n array_unshift($command, '--auto-servernum');\n array_unshift($command, 'xvfb-run');\n }\n\n return new Process($command);\n }",
"private function registerCommand()\n {\n $this->app->singleton('command.shenma.push', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\Push();\n });\n\n $this->app->singleton('command.shenma.push.retry', function () {\n return new \\Larva\\Shenma\\Push\\Commands\\PushRetry();\n });\n }",
"public function __construct(string $command, string $before = '', string $after = '')\n {\n $this->command = $command;\n $this->before = $before;\n $this->after = $after;\n }",
"public function generateCommand($singleCommandDefinition);",
"public function create() {\n }",
"public function create() {\n }",
"public function create() {\r\n }",
"public function create() {\n\n\t}",
"private function getImportCommand()\n {\n return new IndexImportCommand(self::getContainer());\n }",
"public function __construct($command)\n {\n $this->command = $command;\n\n $this->command->line('Installing Images: <info>✔</info>');\n }",
"public function __construct()\n {\n self::$instance =& $this;\n\n $commanddir = Config::main('directory');\n $excludes = Config::main('exclude');\n\n if(is_null($commanddir))\n die('Could not find commands directory. It should be specified in the main config.');\n\n //The directory where commands reside should be relative\n //to the directory with the clip executable.\n $dir = realpath(__DIR__.\"/{$commanddir}\");\n\n $cmdfiles = scandir($dir);\n //Loop through each file in the commands directory\n foreach($cmdfiles as $file)\n {\n //Assume that each file uses the standard '.php' file extension.\n $command = substr($file, 0, -4);\n\n //Ignore the unnecessary directories as commands and anything that\n //has been marked for exclusion then attempt to include the valid ones.\n if($file !== '.' && $file !== '..' && array_search($command, $excludes) === false && include(\"{$dir}/{$file}\"))\n {\n if(class_exists($command, false))\n {\n $obj = new $command;\n //Only load commands that use the clip command interface\n if($obj instanceof Command)\n $this->commands[strtolower($command)] = $obj;\n }\n }\n }\n }",
"public function __construct($action, $command = null) {\n parent::__construct($action, self::NAME);\n\n $fieldFactory = FieldFactory::getInstance();\n\n $commandField = $fieldFactory->createField(FieldFactory::TYPE_STRING, self::FIELD_COMMAND, $command);\n\n $this->addField($commandField);\n }",
"public function createCommand($db = null, $action = 'get')\n {\n if ($db === null) {\n $db = Yii::$app->get(Connection::getDriverName());\n }\n $this->addAction($action);\n $commandConfig = $db->getQueryBuilder()->build($this);\n\n return $db->createCommand($commandConfig);\n }",
"public function create();",
"public function create();",
"public function create();",
"public function create();",
"public function create();",
"public function create();",
"public function create();",
"public function create();"
] | [
"0.8010746",
"0.7333379",
"0.72606754",
"0.7164165",
"0.716004",
"0.7137585",
"0.6748632",
"0.67234164",
"0.67178184",
"0.6697025",
"0.6677973",
"0.66454077",
"0.65622073",
"0.65437883",
"0.64838654",
"0.64696646",
"0.64292693",
"0.6382209",
"0.6378306",
"0.63773245",
"0.6315901",
"0.6248427",
"0.6241929",
"0.6194334",
"0.6081284",
"0.6075819",
"0.6069913",
"0.60685146",
"0.6055616",
"0.6027874",
"0.60132784",
"0.60118896",
"0.6011778",
"0.5969603",
"0.59618074",
"0.5954538",
"0.59404427",
"0.59388787",
"0.5929363",
"0.5910562",
"0.590651",
"0.589658",
"0.589658",
"0.589658",
"0.58692765",
"0.58665586",
"0.5866528",
"0.58663124",
"0.5852474",
"0.5852405",
"0.58442044",
"0.58391577",
"0.58154446",
"0.58055794",
"0.5795853",
"0.5780188",
"0.57653266",
"0.57640004",
"0.57584697",
"0.575748",
"0.5742612",
"0.5739361",
"0.5732979",
"0.572247",
"0.5701043",
"0.5686879",
"0.5685233",
"0.56819254",
"0.5675983",
"0.56670785",
"0.56606543",
"0.5659307",
"0.56567776",
"0.56534046",
"0.56343585",
"0.56290466",
"0.5626615",
"0.56255764",
"0.5608852",
"0.5608026",
"0.56063116",
"0.56026554",
"0.5599553",
"0.5599351",
"0.55640906",
"0.55640906",
"0.5561977",
"0.5559745",
"0.5555084",
"0.5551485",
"0.5544597",
"0.55397296",
"0.5529626",
"0.552908",
"0.552908",
"0.552908",
"0.552908",
"0.552908",
"0.552908",
"0.552908",
"0.552908"
] | 0.0 | -1 |
Execute the console command. | public function handle()
{
$arguments = $this->argument('attribute:type');
$entity = $this->argument('entity');
$attributes = $this->validateAndSetNames($entity, $arguments);
$this->info("Generating Schema ...");
$this->generateSchema($attributes);
$this->info("Generating Controller ...");
$this->generateController();
$this->info("Generating Model ...");
$this->generateModel($attributes);
$this->info("Generating Views ...");
$this->generateViews($attributes);
$this->info("Updating Route ...");
$route = "\nRoute::resource('".$this->models."', '".$this->Models."Controller');";
file_put_contents('app/Http/routes.php', $route, FILE_APPEND | LOCK_EX);
$this->info("Running Migration ...");
\Artisan::call('migrate');
$this->info("Seeding Data ...");
$this->seedData($attributes);
$this->info("Running Auto load ...");
exec('composer dump-autoload');
$this->info("Running Seeds ...");
exec('php artisan db:seed --class='.$this->Models.'TableSeeder');
$this->info("Scaffolding Complete.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }",
"public function handle()\n {\n //get us the Converter class instance and call the convert() method on it.\n $this->info(\n \\Aregsar\\Converter\\ConverterFacade::convert($this->argument(\"currency\"))\n );\n }",
"public function handle()\n {\n $this->locale = $this->argument('locale');\n\n $this->loadGroupLines();\n\n $this->loadNameSpacedLines();\n\n $this->info('Complete');\n }",
"public function handle()\n {\n $this->importUser($this->argument('username'));\n $this->call('ldap:show-user', $this->arguments());\n }",
"public function handle() {\n $user = User::where('id', $this->argument('userId'))->first();\n $this->info($user->email);\n }",
"public function handle()\n {\n $translations = collect(json_decode(file_get_contents('https://raw.githubusercontent.com/getbible/Bibles/master/translations.json')))->flatten();\n switch($this->argument('action')) {\n case 'fetch':\n $this->fetchBibles($translations);\n break;\n case 'convert':\n $this->convertBibles($translations);\n break;\n }\n }",
"public function handle()\n {\n try {\n $evalstr = $this->evaluater->evaluate($this->argument('evalString'));\n $this->info($evalstr);\n } catch (ForbiddenSymbolsException $exception) {\n $this->error($exception->getMessage());\n } catch (IncorrectSymbolsException $exception) {\n $this->error($exception->getMessage());\n }\n }",
"public function handle()\n {\n\n $settings = Setting::fetch();\n $id = $this->argument('id');\n $this->scrape_game_data($id);\n }",
"public function handle()\n {\n // env('CALENDARINDEX_TOKEN', '6f2bd927201ba4b22bb57df08db0c517e51732de')\n $this->getData($this->argument('country'), $this->argument('region'));\n }",
"public function handle()\n {\n $email = $this->argument('email');\n $name = $this->argument('name');\n\n $this->info(\"starting to generate users details\");\n\n }",
"public function handle()\n {\n\t\t$this->info('Importing translations...');\n\n\t\t$this->manager->importTranslations(true);\n }",
"public function handle()\n {\n $user = null;\n\n if ($email = $this->option(\"email\", false)) {\n $user = $this->findByEmail($email);\n }\n\n if ($id = $this->option(\"id\", false)) {\n $user = $this->findById($id);\n }\n\n if (empty($user)) {\n $this->warn(\"User no found\");\n }\n else {\n $this->setRoleToUser($user);\n }\n }",
"public function handle()\n {\n $name = ucwords($this->argument('name'));\n $this->call('repository:contract', [ 'name' => $name ]);\n $this->call('repository:class', [ 'name' => $name, '--driver' => $this->option('driver') ]);\n }",
"public function handle()\n\t{\n\t\t// Superuser\n\t\tif( ! $this->option('no-superuser'))\n\t\t\t$this->call('setup:superuser');\n\n\t\t// Countries\n\t\tif( ! $this->option('no-countries'))\n\t\t\t$this->call('setup:countries', ['country' => array_filter(explode(',', $this->option('countries')))]);\n\n\t\t// Languages\n\t\tif( ! $this->option('no-languages'))\n\t\t\t$this->call('setup:languages', ['language' => array_filter(explode(',', $this->option('languages')))]);\n\n\t\t// Currencies\n\t\tif( ! $this->option('no-currencies'))\n\t\t\t$this->call('setup:currencies', ['currency' => array_filter(explode(',', $this->option('currencies')))]);\n\n\t\t// Clear cache\n\t\t$this->call('cache:clear');\n\t}",
"public function handle()\n\t{\n\t\t$name = $this->argument('name');\n\t\t\n\t\t$this->info(\"Searching eve api for {$name}\");\n\t\t$result = Corporation::searchEVEAPI($name);\n\n\t\t$this->info(\"results\");\n\t\tforeach($result as $corp)\n\t\t{\n\t\t\tprint $corp->name . \" \" . $corp->id . \"\\r\\n\";\n\t\t}\n\t}",
"public function handle()\n {\n $user = $this->argument('user');\n $this->info('Display this on the screen, user ' . $user);\n return 0;\n }",
"public function handle()\n {\n $this->userVectors->test($this->option('force'));\n }",
"public function handle()\n {\n $mapping = $this->formatMappingName((string)$this->argument('mapping'));\n \n $model = $this->option('model') ? $this->formatModelName($this->option('model')) : null;\n \n $this->filesystem->put(\n $this->buildMappingFilePath($mapping),\n $this->buildMapping(\n $this->getDefaultStub(),\n $mapping,\n $model\n )\n );\n \n $this->composer->dumpAutoloads();\n }",
"public function handle()\n {\n switch ($this->argument('type')) {\n case 'dns':\n $this->dnscheck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n case 'whois':\n $this->whoischeck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n }\n }",
"public function handle()\n {\n $option = $this->argument('option');\n\n if (! in_array($option, ['expired', 'all'])) {\n return $this->error('Invalid option supplied to command...');\n }\n\n $this->comment('Beginning pruning process...');\n\n $this->comment($this->pruneDatabase($option) . ' deleted from database...');\n\n $this->comment($this->pruneFiles($option) . ' deleted from files...');\n\n $this->info('Nonces pruned successfully!');\n }",
"public function handle()\n {\n $subscriptionUpdateService = new SubscriptionUpdateService();\n $subscriptionUpdateService->runUpdates();\n }",
"public function handle()\n\t{\n\t\t\n\t\t$source_directory = $this->argument( 'source_directory' );\n\t\t$target_directory = $this->argument( 'target_directory' );\n\t\t$template = (string) $this->option( 'template' );\n\n\t\t$statik = new \\App\\Statik\\Statik;\n\n\t\t$statik->generateHTMLFiles( $this, $source_directory, $target_directory, $template ) && $this->info( \"\\e[1;32mDONE!\" );\n\n\t}",
"public function handle()\n {\n if (!$this->argument('file')) {\n $this->info('Please specify file to call.');\n }\n\n $file = $this->argument('file');\n\n if (!$this->fileHandler->exists($file)) {\n $this->info('Wrong path or file not exist.');\n }\n\n $this->executeFile($file);\n }",
"public function handle()\n {\n $user = $this->argument('user');\n $this->scanner->setUserName($user);\n $this->scanner->scanUser();\n }",
"public function handle()\n {\n if ($this->argument('user')) {\n $userId = $this->argument('user');\n\n $this->info(\"Liquidate affiliate commission for user \" . $userId);\n\n $user = $this->userService->findById($userId);\n\n if ($user) {\n $this->walletService->liquidateUserBalance($user);\n } else {\n $this->error(\"User not found\");\n }\n\n $this->info(\"Done\");\n } else {\n $this->info(\"Liquidate all commissions\");\n\n $this->walletService->liquidateAllUsersBalance();\n\n $this->info(\"Done\");\n }\n }",
"public function handle()\n {\n $action = $this->choice('what action do you have on mind', [\n 'add-relation', 'remove-columns', 'column-type', 'rename-column'\n ]);\n switch ($action) {\n case 'add-relation':\n $this->addRelation();\n break;\n\n case 'remove-columns':\n $this->removeColumns();\n break;\n case 'column-type':\n $this->columnType();\n break;\n case 'rename-column':\n $this->renameColumn();\n break;\n default:\n $this->error('Unsupported action requested...');\n }\n $this->info('Command executed successfully');\n }",
"public function handle()\n {\n $arguments = $this->arguments();\n $storageDir = $arguments['storageDir'];\n $localStorageDir = $arguments['localStorageDir'];\n $url = $arguments['url'];\n $cmd = sprintf(\"./app/Console/Commands/ShellScripts/screen_shot.sh %s %s %s\", $storageDir, $localStorageDir, $url);\n\n while (true) {\n $result = shell_exec($cmd);\n print_r($result);\n sleep(3);\n }\n }",
"public function handle()\n {\n $city = $this->argument('city');\n\n $weatherService = new CurrentWeatherService();\n try {\n $weather = $weatherService->getByCity($city);\n } catch (WeatherException $e) {\n $this->error($e->getMessage());\n return;\n }\n\n $this->info('Weather for city '.$city);\n dump($weather->toArray());\n }",
"public function handle()\n {\n $this->getModels($this->argument('model'));\n $this->getLanguages($this->argument('locale'));\n $this->createMultiLanguageRecords();\n }",
"public function handle()\n {\n $this->processOptions();\n\n echo json_encode( $this->dateTimeRange ) . \"\\n\";\n\n $this->dispatch( new ProcessNewActionsJob(\n $this->dateTimeRange ,\n str_random( 16 ),\n $this->option('runtime-threshold')\n ) );\n }",
"public function handle()\n {\n $fightId = $this->argument('fight_id');\n $metricId = $this->argument('metric_id');\n //$strategyName = 'App\\\\'.$this->argument('metric_name');\n\n $metric = BossMetric::find($metricId);\n if ($metric === null) {\n $this->error(\"Error: no metric with id: $metricId found!\");\n return;\n }\n\n $fight = Fight::find($fightId);\n\n if ($fight === null) {\n $this->error(\"Error: no fight with id: $fightId found!\");\n return;\n }\n\n $strategy = $metric->getStrategy();\n $strategy->setFight($fight);\n $strategy->run();\n }",
"public function handle()\n {\n\t\t$this->call('vendor:publish');\n\t\t$this->call('migrate');\n\t\t$this->call('db:seed');\n\t\t$this->call('factotum:storage');\n\t\t$this->call('factotum:storage');\n }",
"public function handle()\n {\n $user_id = $this->argument('user') ?? null;\n\n if (is_null($user_id)) {\n $users = User::all();\n\n foreach ($users as $user) {\n $this->showUserBalance($user);\n }\n } else {\n $user = User::find($user_id);\n\n $this->showUserBalance($user);\n }\n }",
"public function handle()\n {\n $this->capsuleService->getAll();\n $this->line('Command Worked');\n }",
"public function handle()\n {\n $platform_wechat_id = $this->argument('id');\n $customer_id = $this->argument('customer_id');\n $this->info(\"Starting at \".date('Y-m-d H:i:s').\". Running initial for 【{$this->signature}】\");\n $this->getUserInfoList($platform_wechat_id,$customer_id);\n $this->info(\"End at \".date('Y-m-d H:i:s').\". over for 【{$this->signature}】\");\n }",
"public function handle()\n {\n $this->publishAssets();\n $this->call('twill:flush-manifest');\n $this->call('view:clear');\n }",
"public function handle()\n {\n \n $argument = $this->argument('data');\n \n $this->prepare( $argument );\n \n $this->make();\n \n $this->info( 'migration has been created : '. $this->fileName );\n \n }",
"public function handle()\n {\n chdir(resource_path('assets/ts'));\n $path = $this->argument(\"path\");\n if(isset($path))\n {\n Logger::info('execute '.$path);\n Command::executeRaw('tsc', [\"-p\", $path]);\n }else\n Logger::info('execute tsc');\n Command::executeRaw('tsc');\n }",
"public function handle()\n {\n $this->info('Starting date change command.');\n\n Word::where('language_id', 1)->update(array('created_at' => '1970-01-01 00:00:01'));\n Word::where('language_id', 2)->update(array('created_at' => '1970-01-01 00:00:01'));\n\n $this->info('Dates have been changed to 1970-01-01 00:00:01');\n }",
"public function handle()\n {\n $this->info($this->slugger->encode($this->argument('id')));\n }",
"public function handle()\n {\n $this->line(static::$logo);\n $this->line('Neat admin current version:' . Neat::version());\n\n $this->comment('');\n $this->comment('Available commands:');\n\n $this->listAvailableCommands();\n }",
"public function handle()\n {\n $this->revisions->updateListFiles();\n }",
"public function handle(): void\n {\n // Set argument\n $this->url = $this->argument(self::URL_ARGUMENT);\n\n // Handler takes care of computation\n (new CommandHandler($this))->compute();\n }",
"public function handle()\n {\n try\n {\n $filename = $this->argument('filename');\n Excel::import(new ObjectsImport, $filename);\n\n $this->info('Data import is now completed');\n }\n catch(Exception $ex)\n {\n $this->error($ex->getMessage());\n }\n }",
"public function handle() {\n $entity = $this->validateEntity($this->argument('entity'));\n $job = new DataProcessingJob($entity, str_random(16));\n $this->dispatch($job);\n }",
"public function handle()\n {\n $isProductionMode = 'prod' == $this->argument('mode');\n\n if ($isProductionMode) {\n if (!$this->confirm('Are you sure to run in production mode? Running this command may cause critical issues?')) {\n exit(1);\n }\n }\n\n $this->_recalculate($isProductionMode);\n }",
"public function handle()\n {\n if(!$this->verify()) {\n $rank = $this->createRankSuperAdmin();\n $user = $this->createUserSuperAdmin();\n $user->Ranks()->attach($rank);\n $this->line('Felicitaciones');\n } else {\n $this->error('No se puede ejecutar');\n }\n }",
"public function handle()\n {\n // Get CLI Input\n $user_id = $this->option(\"uid\");\n\n // User Products\n ( new CommandManager() )->showUserProducts( $user_id );\n }",
"public function handle()\n {\n $force = $this->option('force');\n\n if($this->option('without-bulk')){\n $this->withoutBulk = true;\n }\n\n if ($this->generateClass($force)){\n $this->info('Generating permissions for '.$this->modelBaseName.' finished');\n }\n }",
"public function handle()\n {\n $tournaments = Tournament::all()->toArray();\n foreach ($tournaments as $tournament) {\n $slug = $this->tournamentRepoObj->generateSlug($tournament['name'].Carbon::createFromFormat('d/m/Y', $tournament['start_date'])->year,'');\n DB::table('tournaments')\n ->where('id', $tournament['id'])\n ->update([\n 'slug' => $slug\n ]);\n }\n $this->info('Script executed.');\n }",
"public function handle()\n {\n $userId = $this->argument('user');\n\n /** @var User $user */\n $user = User::findOrFail($userId);\n\n // Get token.\n $info = (new Client())->auth();\n\n // Save to db.\n $user->access_token = $info['access_token'];\n $user->access_secret = $info['access_secret'];\n $user->save();\n\n $this->line(\"Saved access token and secret for user: {$user->email}\");\n }",
"public function handle()\n {\n $m = new MemberFromText;\n $m->train();\n $id = $m->predict($this->argument('text'));\n dump(Miembro::find($id)->toArray());\n }",
"public function handle()\n {\n $this->generator\n ->setConsole($this)\n ->run();\n }",
"public function handle()\n {\n $this->createController();\n $this->createServiceDir();\n\n exit;\n $args = [\n '--provider' => TestProvider::class\n ];\n $className = $this->argument('className');\n if (!$className) {\n $className = 'MethodsList';\n }\n $className = ucwords($className);\n $this->call('vendor:publish', $args);\n $this->info('Display this on the screen ' . $className);\n }",
"public function handle()\n {\n $this->createDirectories();\n\n $this->publishTests();\n\n $this->info('Authentication tests generated successfully.');\n }",
"public function handle()\n {\n $this->setDbConnection(\n $this->input->getOption('database') ?: config('ghost-database.default_connection')\n );\n\n $native = $this->input->getOption('native-import') ?: config('ghost-database.use_native_importer');\n\n $snapshot = $this->import($native);\n\n $this->info(\"Snapshot `{$snapshot->name}` loaded!\");\n }",
"public function handle()\n {\n $exec = $this->argument('exec');\n\n switch ($exec) {\n case 'download' :\n $this->download();\n break;\n\n case 'generate' :\n $this->generate();\n break;\n\n default :\n echo \"Choose 'download' or 'generate' for this command\";\n break;\n }\n }",
"public function handle()\n {\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-admin.js', '--group' => 'admin']);\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-frontend.js', '--group' => 'frontend']);\n $this->call(TranslationsGenerateCommand::class);\n }",
"public function handle()\n {\n $tenantName = $this->argument('tenant');\n\n $tenant = Tenant::where('name', $tenantName)->orWhere('subdomain', $tenantName)->first();\n\n if ($tenant) {\n $tenant->setActive();\n \\Artisan::call('tinker');\n } else {\n $this->error('Error: Tenant not found');\n }\n }",
"public function handle()\n {\n try {\n if (!empty($userId = $this->argument('user'))) {\n $user = User::find($userId);\n } else {\n $user = User::inRandomOrder()->first();\n }\n\n if (empty($user)) {\n throw new \\Exception('User not found');\n }\n\n echo JWTAuth::fromUser($user);\n } catch (\\Exception $e) {\n echo $e->getMessage();\n }\n\n }",
"public function handle()\n {\n $this->fetchAndSetToken();\n $imagesToDownload = $this->peekImages(WatchedApp::pluck('package_name'));\n $this->fetchImages($imagesToDownload);\n\n if ($this->option('dont-optimize')) {\n return;\n }\n\n $this->runOptimizeCommand();\n }",
"public function handle()\n {\n $this->setCryptIVFromUrl($this->argument('url'));\n\n $participant = URLParser::parseByName('santa.index', $this->argument('url'))->participant;\n if($participant) {\n $draw = $participant->draw;\n } else {\n $draw = URLParser::parseByName('organizer.index', $this->argument('url'))->draw;\n }\n\n $this->table(\n ['ID', 'Name', 'Email'],\n $draw->participants()->get(['id', 'name', 'email'])->toArray()\n );\n }",
"public function handle()\n {\n // if you are on the local environment\n if (!(app()->isLocal() || app()->runningUnitTests())) {\n $this->error('This command is only available on the local environment.');\n return;\n }\n\n $fqdn = $this->argument('fqdn');\n if ($tenant = Tenant::retrieveBy($fqdn)){\n $tenant->delete($fqdn);\n $this->info(\"Tenant {$fqdn} successfully deleted.\");\n }else {\n $this->error('This fqdn doesn\\'t exist.');\n }\n\n }",
"public function handle()\n {\n $user_from = $this->option('from');\n $user_to = $this->option('to');\n $sum = $this->option('sum');\n\n CreateTransaction::dispatch($this->usersRepository->getByID($user_from), $this->usersRepository->getByID($user_to), $sum, true);\n $this->transactionsRepository->getAll()->each(function ($transaction){\n \tExecuteTransaction::dispatch($transaction);\n });\n }",
"public function handle()\n {\n $this->warn('Starting Retrieve Data');\n\n PeopleService::retrieveData();\n\n $this->info('Retrieve Data Completed');\n }",
"public function handle()\n {\n \n $period = $this->option('period');\n \n switch ($period) {\n\n case 'half_month':\n $this->info('Grabing Half Month Income...');\n $this->halfMonth();\n break;\n\n case 'monthly':\n $this->info('Grabing Monthly Income...');\n $this->monthly();\n break;\n \n default:\n $this->info('Grabing Daily Income...');\n $this->daily();\n break;\n\n }\n\n \n }",
"public function handle()\n {\n $countryFiles = $this->getFiles();\n\n foreach ($countryFiles as $fileName) {\n $this->seed($fileName);\n }\n\n $this->info('End.');\n }",
"public function fire()\n {\n $entityName = $this->argument('entityName');\n $startEntityId = $this->argument('startEntityId');\n $endEntityId = $this->argument('endEntityId');\n $depth = $this->argument('depth');\n\n $this->fixturePath = $this->option('outputPath');\n\n $this->info(\"Generating fixtures for $entityName in {$this->fixturePath}...\");\n \n $this->generateFixtures($entityName, $startEntityId, $endEntityId, $depth);\n }",
"public function handle()\n {\n $check = PublishTraitsService::publishTraits();\n\n if ($check)\n {\n $this->info('All files have been published');\n }\n\n $this->info('Failed to publish');\n }",
"public function handle()\n {\n $user = User::where('username', $this->argument('user'))\n ->orWhere('email', $this->argument('user'))\n ->first();\n\n if ($user != null) {\n $user->assign('admin');\n $this->line(\"{$user->email} was successfully made an admin.\");\n } else {\n $this->line(\"No user found where username or email is '{$this->argument('user')}'\");\n }\n }",
"public function handle()\n {\n event( 'laraview:compile' );\n $this->checkForSelectedViewGeneration();\n\n app( RegisterBlueprint::class )\n ->console( $this )\n ->generate();\n }",
"public function handle()\n {\n $project = Project::with(['team.admins', 'team.members'])->findOrFail($this->option('project-id'));\n $user = User::findOrFail($this->option('user-id'));\n if ($this->option('admin')) {\n $project->team->admins()->syncWithoutDetaching($user);\n } else {\n $project->team->members()->syncWithoutDetaching($user);\n }\n return Command::SUCCESS;\n }",
"public function handle() {\n try {\n $this->roomService->loadRoomOccupations();\n Log::notice('untis:occupations executed successfully.');\n $this->line('Loaded room occupations from WebUntis.');\n } catch (Exception $e) {\n Log::error('Error loading room occupations.', ['exception' => $e]);\n $this->error('Error loading room occupations: ' . $e->getMessage());\n }\n }",
"public function handle()\n {\n $this->loadIxList();\n $this->loadIxMembersList();\n $this->updateIxInfo();\n $this->updateIxMembersInfo();\n }",
"public function handle()\n {\n $this->call('vendor:publish', [\n '--provider' => \"Qoraiche\\MailEclipse\\MailEclipseServiceProvider\",\n ]);\n }",
"public function handle()\n\t{\n\t\tif ($this->option('dev')) {\n\t\t\tsystem('php '.base_path('.deploy/deploy-dev.php'));\n\t\t} else {\n\t\t\tsystem('php '.base_path('.deploy/deploy.php'));\n\t\t}\n\t}",
"public function handle(Command $command);",
"public function handle(Command $command);",
"public function handle()\n {\n $date_from = $this->argument('date_from');\n\t\t$date_to = $this->argument('date_to');\n\t\tif(!$date_from) {\n\t\t\t$date_from = Carbon::today()->subDays(5);\n\t\t}\n\t\tif(!$date_to) {\n\t\t\t$date_to = Carbon::yesterday();\n\t\t}\n\t\tStats::computeMembers($this->argument('venue_id'), $date_from, $date_to);\n }",
"public function handle()\n {\n switch ($this->argument('type')){\n case 'fih':\n $scrapper = new Scrappers\\FederationScrapper();\n $scrapper->get($this->option('level'));\n print $scrapper->message();\n break;\n }\n }",
"public function handle()\n {\n Log::info(\"seed:dash Command is working fine!\");\n $this->info('Dashboard Database seeding completed successfully.');\n }",
"public function handle()\n {\n $originalId = $this->argument('original_id');\n\n $status = true;\n if ($this->option('status') === 'false') {\n $status = false;\n }\n\n if ($video = Video::where('original_id', $originalId)->first()) {\n $video->dmca_claim = $status;\n $video->save();\n\n $this->info('Video\\'s dmca_claim set to: ' . json_encode($status));\n return ;\n }\n\n $this->error('No video found with original_id of: ' . $originalId);\n return;\n }",
"public function handle()\n {\n $this->call('config:clear');\n\n $this->call('config:update');\n\n $this->info('Configuration cached successfully!');\n }",
"public function handle()\n {\n //\n $modelName = $this->argument('model');\n $column = $this->argument('column');\n $this->generateMutation($modelName, $column);\n\n }",
"public function handle()\n {\n $filePath = 'public/' . $this->argument('fileName');\n $count = $this->argument('count');\n \n $fileData = array_slice(file($filePath), 0, $count);\n $this->info(implode('', $fileData));\n }",
"public function handle()\n {\n $email = $this->argument('email');\n\n Mail::to($email)->send(new SendMailable('Test Mail'));\n\n if (Mail::failures()) {\n $this->info('Email failed to send');\n } else {\n $this->info('Email successfully sent');\n }\n }",
"public function handle()\n {\n $this->call('route:trans:clear');\n\n $this->cacheRoutesPerLocale();\n\n $this->info('Routes cached successfully for all locales!');\n }",
"public function handle()\n {\n $this->info('Welcome to command for Bantenprov\\WilayahIndonesia package');\n }",
"public function handle()\n {\n if($this->hasOption('no_dump') && $this->option('no_dump')){\n $this->composer_dump = false;\n }\n $this->readyDatas();\n $this->datas['startSymbol']='{{';\n $this->datas['endSymbol']='}}';\n $this->create();\n }",
"public function handle()\n {\n $repository = new OglasiCrawlerRepository();\n $ads = $repository->getAds();\n $repository->saveAds($ads);\n\n echo 'Ads were successfully retrieved' . PHP_EOL;\n }",
"public function handle()\n {\n $this->makeDir($this->basePath . $this->kebabPlural());\n\n $this->exportViews();\n\n $this->info('Resource views generated successfully.');\n }",
"public function handle()\n {\n $movies = \\App\\Models\\Movie::whereNull('meta')->take(40)->orderBy('id')->get();\n $movies->each(function($movie){ sleep(1); $movie->getMeta(); });\n return Command::SUCCESS;\n }",
"public function handle()\n {\n $this->packageGenerator->setConsole($this)\n ->setPackage($this->argument('package'))\n ->setType('shipping')\n ->setForce($this->option('force'))\n ->generate();\n }",
"public function handle()\n {\n $test = $this->argument('test');\n\n $dir = config('speed-test.dir');\n\n $className = ucfirst(\\Str::camel($test));\n\n $namespace = config('speed-test.namespace');\n\n $class = class_entity($className)\n ->namespace($namespace);\n\n $class->method('speed1')\n ->line($this->option('line'))->doc(function ($doc) use ($className) {\n /** @var DocumentorEntity $doc */\n $doc->tagCustom('times', $this->option('times'));\n $doc->description($this->option('description') ?: \"{$className} Speed 1\");\n });\n\n if (! is_dir($dir)) {\n mkdir($dir, 0777, 1);\n }\n\n file_put_contents(\n $dir.'/'.$className.'.php',\n $class->wrap('php')\n );\n\n $this->info('Speed created!');\n\n return 0;\n }",
"public function handle()\n {\n $message = $this->GenerateRandomUser($this->argument('count'));\n $this->info($message);\n }",
"public function handle()\n {\n $host = Cache::get('executingHost', null);\n $this->info(\"Host: ${host}\");\n\n if ($host === null) {\n $this->info('実行するホストが選択されていません');\n return;\n }\n\n if (Schema::hasTable('companies') && Company::count() !== 0) {\n $this->info('マイグレーションが既に1回以上実行されています');\n return;\n }\n\n $should_execute = $host === $this->argument('executingHost');\n\n if ($should_execute) {\n Artisan::call('migrate:fresh', ['--seed' => true]);\n $this->info('マイグレーションが完了しました');\n\n Cache::forget('executingHost');\n } else {\n $this->info('別ホストにてマイグレーションが行われます');\n }\n }",
"public function handle()\n {\n // Configuration...\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-config']);\n\n // Migrations\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-migrations']);\n\n $this->info('Model Login resources published.');\n }",
"public function handle()\n {\n if ($this->validation()) {\n $money = $this->argument('money');\n Cache::increment('amount', $money);\n }\n }",
"public function handle()\n {\n $this->info('Publishing stuff..');\n\n $this->publishFiles();\n\n $this->info('Setup complete. Enjoy!');\n }",
"public function handle()\n {\n $this->publishConfig();\n $this->publishClassStub();\n $this->generateAndStoreKey();\n\n $this->info('Use the details below for your \"Lead delivery options\" in Google Ads.');\n $this->info('Webhook URL: ' . route('GoogleAdsLeadExtensionController@index'));\n $this->info('Key: ' . $this->generated_key);\n }",
"public function handle()\n {\n $opts = $this->options();\n $args = $this->arguments();\n #print_r($opts);\n #print_r($args);\n\n # Redundant as argument validation handled by Laravel\n #\n if (!isset($args['destination'])) {\n printf(\"Usage: php artisan %s\\n\", $this->signature);\n exit(1);\n }\n\n # Default to normal message type\n #\n if (!isset($opts['type'])) {\n $opts['type'] = 'normal';\n }\n\n $uac = new UserApiController();\n\n if ($opts['type'] == 'normal') {\n if (!isset($opts['message'])) {\n printf(\"Usage: php artisan %s\\n\\n\", $this->signature);\n printf(\"ERROR: Message must be specified for type 'normal'\\n\");\n exit(1);\n }\n $result = $uac->sendSms(\n $args['destination'],\n $opts['message'],\n $opts['route']\n );\n }\n else if ($opts['type'] == 'otp') {\n $result = $uac->sendVerificationSms(\n $args['destination'],\n '<code>',\n '<name>',\n $opts['route'],\n '<appName>'\n );\n }\n\n if ($result === true) {\n printf(\"INFO: SMS message to %s sent successfully (%s)\\n\",\n $args['destination'], $opts['type']);\n }\n else {\n printf(\"INFO: SMS message to %s failed to send (%s)\\n\", \n $args['destination'], $opts['type']);\n printf(\"ERROR: %s\\n\", $result);\n }\n\n return;\n }"
] | [
"0.6469962",
"0.6463639",
"0.64271367",
"0.635053",
"0.63190264",
"0.62747604",
"0.6261977",
"0.6261908",
"0.6235821",
"0.62248456",
"0.62217945",
"0.6214421",
"0.6193356",
"0.61916095",
"0.6183878",
"0.6177804",
"0.61763877",
"0.6172579",
"0.61497146",
"0.6148907",
"0.61484164",
"0.6146793",
"0.6139144",
"0.61347336",
"0.6131662",
"0.61164206",
"0.61144686",
"0.61109483",
"0.61082935",
"0.6105106",
"0.6103338",
"0.6102162",
"0.61020017",
"0.60962653",
"0.6095482",
"0.6091584",
"0.60885274",
"0.6083864",
"0.6082142",
"0.6077832",
"0.60766655",
"0.607472",
"0.60739267",
"0.607275",
"0.60699606",
"0.6069931",
"0.6068753",
"0.6067665",
"0.6061175",
"0.60599935",
"0.6059836",
"0.605693",
"0.60499364",
"0.60418284",
"0.6039709",
"0.6031963",
"0.6031549",
"0.6027515",
"0.60255647",
"0.60208166",
"0.6018581",
"0.60179937",
"0.6014668",
"0.60145515",
"0.60141796",
"0.6011772",
"0.6008498",
"0.6007883",
"0.60072047",
"0.6006732",
"0.60039204",
"0.6001778",
"0.6000803",
"0.59996396",
"0.5999325",
"0.5992452",
"0.5987503",
"0.5987503",
"0.5987477",
"0.5986996",
"0.59853584",
"0.5983282",
"0.59804505",
"0.5976757",
"0.5976542",
"0.5973796",
"0.5969228",
"0.5968169",
"0.59655035",
"0.59642595",
"0.59635514",
"0.59619296",
"0.5960217",
"0.5955025",
"0.5954439",
"0.59528315",
"0.59513766",
"0.5947869",
"0.59456027",
"0.5945575",
"0.5945031"
] | 0.0 | -1 |
returns an array of objects (records) | public function avaliable_tasks()
{
return DB::table('tasks')
->leftJoin('subjects', 'tasks.subject_id', '=', 'subjects.id')
->leftJoin('usersubjects', 'subjects.id', '=', 'usersubjects.subject_id')
->leftJoin('users', 'usersubjects.user_id', '=', 'users.id')
->where('users.id','=',$this->id)
->where('tasks.isactive','=',true)
->select('subjects.name', 'users.id', 'tasks.*')
->get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function records() : array {\n return $this->records;\n }",
"public function records() { return $this->_m_records; }",
"public function getRecords()\n {\n $result = $this->fetchAll($this->select()->order('id ASC'))->toArray();\n return $result;\n }",
"private function get_recs() {\n\tglobal $_DB;\n\n\t$sql = \"SELECT e00.name, e00.property_id AS name_id,\n\t\t\t\te02.name AS value, e02.prop_value_id AS value_id\n\t\t\tFROM (\n\t\t\t\tSELECT property_id, name FROM \".$_DB->prefix.\"e00_property\n\t\t\t\tWHERE organization_idref = \".$_SESSION[\"organization_id\"].\"\n\t\t\t) AS e00\n\t\t\tJOIN \".$_DB->prefix.\"e02_prop_value AS e02 ON e02.property_idref = e00.property_id\n\t\t\tORDER BY name, value;\";\n\t$stmt = $_DB->query($sql);\n\t$this->records = array();\n\twhile ($row = $stmt->fetchObject()) {\n\t\t$record = array(\n\t\t\t\t\"name\" =>\t\t$row->name,\n\t\t\t\t\"name_id\" =>\t$row->name_id,\n\t\t\t\t\"value\" =>\t\t$row->value,\n\t\t\t\t\"value_id\" =>\t$row->value_id,\n\t\t);\n\t\t$this->records[] = $record;\n\t}\n\t$stmt->closeCursor();\n}",
"#[\\ReturnTypeWillChange]\n function records()\n {\n return $this->getArrayCopy();\n }",
"public function records() {\n if( ! property_exists($this->response(), 'records') ) return [];\n\n return $this->response()->records;\n }",
"public function get_records(){\n\t\t$records = array();\n\t\t$this->do_db();\n\t\t$tmps\t = $this->last_result;\n\t\t$db\t\t = $this->db;\n\t\twhile($record\t = $db->fetch_array($tmps)){\n\t\t\t$records[] = $record;\n\t\t}\n\t\treturn $records;\n\t}",
"public function getAllRecords();",
"public function getRecords()\n {\n return $this->records;\n }",
"public function getRecords()\n {\n return $this->records;\n }",
"function getRecords() {\n\t\treturn $this->records;\n\t}",
"public function all()\n {\n $records = R::findAll( $this->table_name(), \" order by id \");\n\n $object = array_map( function($each_record) {\n return $this->map_reford_to_object( $each_record );\n },\n $records\n );\n\n return array_values( $object );\n }",
"public function getRecords()\n\t{\n\t\treturn $this->records['data'];\n\t}",
"public function getMultipleRecords() {\n $i = 0;\n $output = [];\n $_this = $this;\n while($row = $_this->fetchAssoc()){\n $output[\"data\"][$i] = $row;\n $i++;\n }\n return $output;\n }",
"public function fetchRecords() {\n return self::all();\n }",
"public function getListRecords()\n {\n $result = array();\n $records = $this->records;\n if (count($records)) {\n $columns = $this->columns;\n $customColumns = $this->customColumns;\n $formatterColumns = $this->formatterColumns;\n foreach ($records as $index => $record) {\n $row = array();\n foreach ($columns as $column) {\n if (isset($customColumns[$column])) {\n $params = $customColumns[$column];\n ob_start();\n call_user_func($params['callback'], $record, $this);\n $output = ob_get_contents();\n ob_end_clean();\n $row[$column] = $output;\n } else {\n if (isset($formatterColumns[$column])) {\n $params = $formatterColumns[$column];\n ob_start();\n call_user_func($params['callback'], $record);\n $output = ob_get_contents();\n ob_end_clean();\n $row[$column] = $output;\n } else {\n // Is alias column\n if (array_key_exists($column, $this->aliases)) {\n $columnName = $column;\n } else {\n list($tableName, $columnName) = explode(\".\", $column);\n }\n $columnIdentifier = isset($columnName) ? $columnName : $column;\n $row[$column] = $record[$columnIdentifier];\n }\n }\n }\n $result[$index] = $row;\n }\n }\n return $result;\n }",
"public function getRecords(){\n // Get the sql statement\n $sql = $this->getSql($this->filters);\n // Prepare the query\n $stmt = $this->db->query($sql);\n // Fetch values from PDO array\n return $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n }",
"public function fetchAll()\n\t{\n\t\t$aReturn = Array();\n\t\twhile( $oRecord = $this->next() )\n\t\t\tarray_push( $aReturn, $oRecord );\n\t\t$this->rewind();\n\t\treturn $aReturn;\n\t}",
"public function toArray(){\n\t\treturn json_decode(json_encode($this->rows), true);\n\t}",
"function fetch_object_array($resource) {\n $result = array();\n if ($this->num_rows($resource) > 0) {\n while($row_obj = mysql_fetch_object($resource)) {\n array_push($result, $row_obj);\n }\n }\n\n return $result;\n }",
"public function get_rows()\n\t{\n//\t\t$rows = new object_list($this->connections_from(array(\"type\" => \"RELTYPE_CHILD\", \"to.class_id\" => crm_bill_row_obj::CLID)));\n\t\t$rows = new object_list(array(\n\t\t\t\"class_id\" => crm_bill_row_obj::CLID,\n\t\t\t\"CL_CRM_BILL_ROW.RELTYPE_CHILD(CL_CRM_BILL_ROW_GROUP).oid\" => $this->id(),\n\t\t\tnew obj_predicate_sort(array(\"jrk\" => \"asc\")),\n\t\t));\n\t\treturn $rows;\n\t}",
"public static function toArray() {\n $str = \"\n SELECT id, firstName, lastName, email, password\n FROM indPrj_persons\";\n \n // Obtain an array of persons records.\n $records = Database::query($str);\n \n // Push each row into a new array to be outputted.\n $x = 0;\n $output = array();\n while($row = mysql_fetch_array($records)){\n $output[$x]['id'] = $row['id'];\n $output[$x]['firstName'] = $row['firstName'];\n $output[$x]['lastName'] = $row['lastName'];\n $output[$x]['email'] = $row['email'];\n $output[$x]['password'] = $row['password'];\n $x++;\n }\n \n return $output;\n }",
"public function populate()\n\t{\n\t\tif (!$this->index)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t$records = $this->model->find(array_keys($this->index));\n\n\t\tforeach ($records as $nid => $record)\n\t\t{\n\t\t\t$this->index[$nid]->record = $record;\n\t\t}\n\n\t\treturn $records;\n\t}",
"public function getAll()\n {\n $records = $this->getRecordsModel()->getAll();\n \n return $records;\n }",
"public function asObject() {\n\t\treturn $this->_sth->fetchAll(PDO::FETCH_OBJ);\n\t}",
"function getRecords($pupil_id){\r\n\t\t$data = array('massive'=>array('Data','Dump'));\r\n\treturn $data;\r\n\t}",
"function getAllCars(){\n\t\t\t$query=\"select * from cars\";\n\t\t\t$result = pg_query($query);\n\n\t\t\t$data = [];\n\n\t\t\twhile ($record = pg_fetch_assoc($result)) {\n\t\t\t\t$car = new Car($record['id'],$record['model_name'], $record['model_type'], $record['model_brand'], $record['model_year'], $record['model_date_added'], $record['model_date_modified'] );\n\t\t\t\tarray_push($data, $car);\n\t\t\t}\n\n\t\t\treturn $data;\n\n\t\t}",
"public function toArray() {\n\t\ttry {\n\t\t\t// Setup\n\t\t\t$result = array();\n\t\t\t\n\t\t\tforeach($this->_columns as $column) {\n\t\t\t\t$result[$column->name] = $this->_data[$column->name];\n\t\t\t}\n\t\t\treturn $result;\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('There was a problem converting the Record to an array.');\n\t\t}\n\t}",
"public static function getRecords() {\r\n\t\t$activities\t= self::getAllActivities();\r\n\t\t$reformConfig\t\t= array(\r\n\t\t\t'id'\t=> 'id',\r\n\t\t\t'title'\t=> 'label'\r\n\t\t);\r\n\r\n\t\treturn TodoyuArray::reform($activities, $reformConfig);\r\n\t}",
"public function fetch_all(){\n $data = array();\n while( ($obj = oci_fetch_object($this->result)) != false ){\n $data[] = $obj;\n }\n return $data;\n }",
"public function get_record(string $record_id):array\n{ \n\n // Get record\n $row = array();\n\n // Return\n return $row;\n\n}",
"public static function all()\n\t{\n\t\treturn self::new_instance_records()->all();\n\t}",
"public function read(){\r\n $conn = $this->connDB();\r\n $sql = \"SELECT * FROM car_info ORDER BY car_id\";\r\n $stmt = $conn->prepare($sql);\r\n $stmt->execute();\r\n $cars = [];\r\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\r\n $cars[] = [\r\n 'car_id' => $row['car_id'],\r\n 'car_brand' => $row['car_brand'],\r\n 'car_plate' => $row['car_plate'],\r\n 'car_current_location' => $row['car_current_location'],\r\n 'car_owner' => $row['car_owner'],\r\n 'is_lost' => $row['is_lost'],\r\n 'created_by' => $row['created_by'],\r\n 'created_date' => $row['created_date'],\r\n 'modify_by' => $row['modify_by'],\r\n 'modify_date' => $row['modify_date']\r\n ];\r\n }\r\n return $cars;\r\n }",
"public function results()\n {\n //by default data get as array/stdclasses\n\n // to trunit to arrays of arrays\n // return json_decode(json_encode($this->_results), true);\n return $this->_results;\n // gives array data with column name and itsvalue not index array\n }",
"public function getRows($q){ // get array of rows objects\r\t\t$this->connect();\t//connect if not connected \r\t\t$query=$this->query($q);\r\t\t$result=array();\r\t\twhile ($data=sqlite_fetch_object($query)){\r\t\t\t$result[]=$data;\r\t\t}\r\t\treturn $result;\r\t}",
"protected function _readRecords() {}",
"protected function &getItemsAsArray() {\n\n if ($this->_itemArray !== null) {\n return $this->_itemArray;\n }\n\n $this->_itemArray = array();\n $q = $this->query();\n\n while($row = $q->fetchRow()) {\n\n $item = $this->createModelInstance($row);\n $this->_itemArray[] = $item;\n\n }\n\n if ($this->_comparatorFunction) {\n\n // Error suppression is because of\n // https://bugs.php.net/bug.php?id=50688\n @usort($this->_itemArray, $this->_comparatorFunction);\n\n }\n\n if ($this->_offset && $this->_maxRecords) {\n\n $this->_itemArray = array_slice($this->_itemArray, $this->_offset, $this->_maxRecords);\n\n } else if ($this->_maxRecords) {\n\n $this->_itemArray = array_slice($this->_itemArray, 0, $this->_maxRecords);\n\n } else if ($this->_offset) {\n\n $this->_itemArray = array_slice($this->_itemArray, $this->_offset);\n\n }\n\n return $this->_itemArray;\n\n }",
"public function getQueryRecords()\n {\n return $this->get(self::_QUERY_RECORDS);\n }",
"function getListOfRecords(){\n // the orders will be display and the receipts from there \n \n $element = new Order();\n \n $receipts_filter_orders = cisess(\"receipts_filter_orders\");\n \n if ($receipts_filter_orders===FALSE){\n $receipts_filter_orders = \"Abierta\"; // default to abiertas\n }\n \n if (!empty($receipts_filter_orders))\n {\n $element->where(\"status\",$receipts_filter_orders);\n }\n \n \n $element->order_by(\"id\",\"desc\");\n \n $all = $element->get()->all;\n //echo $element->check_last_query();\n ///die();\n $table = $this->entable($all);\n \n return $table;\n \n \n }",
"public function getAll()\n\t{\n\t\t$args = array('order' => 't.id');\n \t$records = $this->record->findAll($args);\n \treturn $this->model->populateModels($records, 'id');\n\t}",
"public function getAll()\n {\n $sql = \"SELECT * FROM \".$this->table;\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_OBJ);\n \n }",
"function get_all(){\r\n\t\t$rows = array();\r\n\t\twhile($row = $this->get_row()){\r\n\t\t\t$rows[] = $row;\r\n\t\t}\r\n\t\treturn $rows;\r\n\t}",
"protected function getCollectedRecords() {}",
"protected function getCollectedRecords() {}",
"protected function getCollectedRecords() {}",
"function readAll() {\r\n $todo = [];\r\n $sql = 'SELECT id, nombre\r\n FROM deportes\r\n ORDER BY nombre';\r\n $stmt = $this->pdo->prepare($sql);\r\n $stmt->execute();\r\n while ($datos = $stmt->fetch()) {\r\n $todo[] = $this->convertRecord($datos);\r\n }\r\n return $todo;\r\n }",
"public function sourceRecords()\n {\n if (class_exists(\"Subsite\") && Subsite::get()->count() > 0) {\n $origMode = Versioned::get_reading_mode();\n Versioned::set_reading_mode(\"Stage.Stage\");\n $items = array(\n \"Pages\" => Subsite::get_from_all_subsites(\"SiteTree\"),\n \"Files\" => Subsite::get_from_all_subsites(\"File\"),\n );\n Versioned::set_reading_mode($origMode);\n\n return $items;\n } else {\n return array(\n \"Pages\" => Versioned::get_by_stage(\"SiteTree\", \"Stage\"),\n \"Files\" => File::get(),\n );\n }\n }",
"public static function get_all_records() {\n\t\tglobal $wpdb;\n\n\t\t$query = 'select * from ' . self::TABLE_NAME . ' order by email asc;';\n\n\t\t$results = $wpdb->get_results( $query, ARRAY_A );\n\n\t\tif ( ! is_array( $results ) ) {\n\t\t\t$results = array();\n\t\t\treturn $results;\n\t\t}\n\n\t\treturn $results;\n\t}",
"function getResultArray($sql) {\n require_once(\"Y_DB_MySQL.class.php\");\n $db = new My();\n $array = array();\n $db->Query($sql);\n \n while ($db->NextRecord()) {\n array_push($array, $db->Record);\n }\n \n $db->Close();\n return $array;\n }",
"protected function fetchRecords(): array\n {\n // Ascending update date is the ONLY way we can be sure to get all payments.\n\n $order = 'UpdatedDateUTC';\n\n return $this->accountingApi->getAccounts(\n $this->ifModifiedSince,\n $this->where,\n $order\n )->accounts;\n }",
"public function return_results_objects($result){\n\n $objectsArr = [];\n foreach($result as $result){\n $obj = new $this->model();\n $obj->populate_object_data($result);\n $objectsArr[] = $obj;\n }\n\n return $objectsArr;\n\n }",
"protected function get_legacy_records() {\n return array(array('course', 'course', $this->courseid),\n array('cm', 'course_modules', $this->contextinstanceid),\n array('reader', 'reader', $this->objectid));\n }",
"function get ()\n\t{\n\t\t$ ret = array ();\n\t\t\n\t\t// Loop por todos os registros no banco de dados\n\t\tfor ( $ x = 0 ; ( $ x < $ this -> num_records () && count ( $ ret ) < $ this -> _limit ); $ x ++)\n\t\t{\t\t\t\n\t\t\t$ row = $ this -> _px -> retrieve_record ( $ x );\n\t\t\t\n\t\t\tif ( $ this -> _test ( $ row ))\n\t\t\t{\n\t\t\t\tforeach ( $ row as $ key => $ val )\n\t\t\t\t{\n\t\t\t\t\t// Encontre todos os campos que não estão na matriz selecionada\n\t\t\t\t\tif (! in_array ( $ key , $ this -> _select ) &&! empty ( $ this -> _select )) unset ( $ row [ $ key ]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$ ret [] = $ linha ;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $ ret ;\n\t}",
"public function toArray()\n {\n return $this->query->findAll();\n }",
"public function toArray(): array\n {\n $this->initialize();\n return $this->rows;\n }",
"function getRecords( $sql ) {\r\n\t\t\t$result = $this->_connectAndExec( $sql );\r\n\t\t\t$dataset = array();\r\n\t\t\twhile ( ocifetchinto( $result, $line, OCI_ASSOC ) ) {\r\n\t\t\t\tarray_push( $dataset, $this->_lowerKeyNames( $line ) );\r\n\t\t\t}\r\n\t\t\tOCIFreeStatement( $result );\r\n\t\t\treturn $dataset;\r\n\t\t}",
"public function data()\n\t{\n\t\t$query = $this->query;\n\t\t$query['limit'] = $this->per_page;\n\t\t$query['offset'] = ($this->get_cur_page() - 1) * $this->per_page;\n\t\treturn $this->model->all($query);\n\t}",
"public function take() {\n\n $records = self::query();\n\n if ($records) {\n $table_name = $this->_table;\n\n foreach ($records as $record) {\n $object = $table_name::find((int)$record[\"id\"]);\n $object->_fields = $record;\n $objects[] = $object;\n }\n return $objects;\n }\n return null;\n }",
"public function records()\n {\n return $this->hasMany(Record::class);\n }",
"public function readAll(){\n $rq = \"SELECT * FROM Objets\";\n $stmt = $this->pdo->prepare($rq);\n $data = array();\n if(!$stmt->execute($data)){\n throw new Exception($pdo->errorInfo());\n }\n return $result = $stmt->fetchAll();\n }",
"public function findAll(): array {\n $tableName = static::tableName();\n $st = self::prepare(\n \"SELECT * FROM $tableName\"\n );\n $st->execute();\n \n return $st->fetchAll(\\PDO::FETCH_OBJ);\n }",
"public function getRecord();",
"public function getAll() : array;",
"protected function getRecords()\r\n {\r\n $records = null;\r\n $model = $this->controller->reorderGetModel();\r\n $query = $model->newQuery();\r\n\r\n $this->controller->reorderExtendQuery($query);\r\n\r\n if ($this->sortMode == 'simple') {\r\n $query = $query\r\n ->orderBy($model->getSortOrderColumn());\r\n $records = $query->get();\r\n $records = $records->groupBy($model->getGroupColumn());\r\n }\r\n elseif ($this->sortMode == 'nested') {\r\n $records = $query->getNested();\r\n }\r\n\r\n return $records;\r\n }",
"public function getDatas(){\n $r=array();\n $className=get_class($this);\n foreach($this->fields() as $f){\n $r[$f->name]=$f;\n }\n return $r;\n }",
"public function getData() : array{\n $this->collection->rewind();\n $data = [];\n while($this->collection->valid()){\n $data[] = $this->collection->current()->getData();\n $this->collection->next();\n }\n return $data;\n }",
"public function fetchAll()\n {\n $objectArray = [];\n while($fetchedObject = $this->fetch())\n {\n $objectArray[] = $fetchedObject;\n }\n\n return $objectArray;\n }",
"public function toArray() {\n\t\t\t$result = array();\n\t\t\tforeach (array_keys(static::$_fields) as $key) {\n\t\t\t\t$result[$key] = $this->getData($key);\n\t\t\t}\n\t\t\treturn $result;\n\t\t}",
"public function toRecord(): array\n {\n $data = $this->toArray();\n\n unset(\n $data['created_at'], $data['updated_at'], $data['deleted_at'],\n $data['description'], $data['product']\n );\n\n return $data;\n }",
"public function toArray()\n {\n $result = array();\n foreach ($this->lists as $list) {\n foreach ($list as $record) {\n $result[] = $record;\n }\n }\n return $result;\n }",
"function recordObjects2Array($obj) {\n\tif ( is_object($obj) ) {\n\t\t$obj = (array) $obj;\n\t}\n\tif ( is_array($obj) ) {\n\t\t$new = array();\n\t\tforeach($obj as $key => $val) {\n\t\t\t$new[$key] = recordObjects2Array($val);\n\t\t}\n\t}\n\telse { \n\t\t$new = $obj;\n\t}\n\treturn $new;\n}",
"public function getRowsAsArray(){\n $fieldNames=$this->getFieldNames();\n $result=[];\n if (!empty($this->valuesRows)){\n foreach($this->valuesRows as $valuesRow){\n $rowArr=[];\n foreach($fieldNames as $i=>$fieldName){\n if (isset($valuesRow[$i])){\n $rowArr[$fieldName]=$valuesRow[$i];\n }\n }\n $result[]=$rowArr;\n }\n }\n return $result;\n }",
"public function resultSet()\n\t{\n\t\t$this->execute();\n\t\treturn $this->stm->fetchAll(PDO::FETCH_OBJ);\n\t}",
"function fetch_records($dont_get_more = false)\n\t{\n\t\t//echo $this->sql.'<br>';\n\t\t$recs = db_getAll($this->sql, $this->use_db);\n\t\tif ($recs === false) return array();\n\n\t\t$res = array();\n\t\t$single_el = new $this->single_element_class;\n\t\tforeach ($recs as $rec) {\n\t\t\t$single_el->from_raw($rec);\n\t\t\t$res[] = $single_el->to_array($dont_get_more);\n\t\t}\n\t\treturn $res;\n\t}",
"public static function find_all(){\n $result = array();\n static::setConnection();\n $keyColumn = static::$keyColumn;\n $table = static::$table;\n $sql = \"SELECT * FROM \".$table.\" ORDER BY \".$keyColumn.\" DESC\";\n $res = mysqli_query(static::$conn,$sql);\n while($row = mysqli_fetch_object($res,get_called_class())){\n $result[] = $row;\n }\n return $result;\n }",
"public function getData(int $id) {\n $queryBuilder = $GLOBALS['database']->createQueryBuilder();\n $data = $queryBuilder->select('id', 'title', 'date', 'text', 'Userdata_id')\n ->from('dairyitem')\n ->where('id = ' . $queryBuilder->createNamedParameter($id))\n ->execute()\n ->fetch();\n\n $returnData = [];\n foreach ($data as $item) {\n $returnData[] = new RecordModel(\n $item['title'],\n $item['text'],\n $item['date'],\n $item['id'],\n $item['Userdata_id']\n );\n }\n\n return $returnData;\n }",
"protected function data()\n {\n $row = array('id' => 0, 'name' => '', 'age' => 0, 'gender' => '');\n\n $rougin = $angel = $royce = $roilo = $rouine = $row;\n\n $rougin['id'] = 1;\n $rougin['name'] = 'rougin';\n $rougin['age'] = 18;\n $rougin['gender'] = 'male';\n\n $angel['id'] = 2;\n $angel['name'] = 'angel';\n $angel['age'] = 19;\n $angel['gender'] = 'female';\n\n $royce['id'] = 3;\n $royce['name'] = 'royce';\n $royce['age'] = 15;\n $royce['gender'] = 'male';\n\n $roilo['id'] = 4;\n $roilo['name'] = 'roilo';\n $roilo['age'] = 17;\n $roilo['gender'] = 'male';\n\n $rouine['id'] = 5;\n $rouine['name'] = 'rouine';\n $rouine['age'] = 12;\n $rouine['gender'] = 'male';\n\n return array($rougin, $angel, $royce, $roilo, $rouine);\n }",
"public function readAll(){\r\n $query = \"SELECT * FROM docente;\";\r\n $statement = $this->cdb->prepare($query);\r\n $statement->execute();\r\n $rows = $statement->fetchAll(\\PDO::FETCH_OBJ);\r\n return $rows; \r\n }",
"public static function getAll(){\n\t\t$sql = \"select * from \".self::$tablename;\n\t\t$query = Executor::doit($sql);\n\t\treturn Model::many($query[0],new TemparioData());\n\t}",
"public abstract function getObjects();",
"public static function getAll() {\n $entities = [];\n $sqlResult = DatabaseConnection::getResult(\"SELECT * FROM \" . static::$table);\n\n foreach($sqlResult as $row) {\n $object = new static();\n foreach($row as $property => $value) {\n $object -> $property = $value;\n }\n\n $entities[] = $object;\n }\n\n return $entities;\n }",
"public static function getAll(): array;",
"public function toEntityArray()\n {\n $return = [];\n foreach ($this as $row) {\n $return[] = $row;\n }\n return $return;\n }",
"public function get_entries() {\n\t\t$this->db->select('oznaka, lokacija, brm');\n\t\t$query = $this->db->get('sale');\n\t\tif ($query->num_rows() > 0) {\n foreach ($query->result() as $temp) {\n $array[] = $temp;\n }\n\t\t\treturn $array;\n\t\t}\n\t}",
"public abstract function readObjects();",
"public function getObjectArray()\n {\n $this->_cache->load($this->_cache_key, $this->_data_version);\n\n return $this->_cache->objects;\n }",
"public function asArray() {\n\t\treturn $this->_sth->fetchAll(PDO::FETCH_ASSOC);\n\t}",
"public function resultSet(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t}",
"public function toArray()\r\n\t{\r\n\t\treturn $this->m_data;\r\n\t}",
"public function results(): array;",
"function toArray(){\r\n\t\treturn $this->data;\r\n\t}",
"public function getAll(): array;",
"public function getAll(): array;",
"public function getAll(): array;",
"function getRecords($columnParameterArray){\n\t\t\t\n\t\t}",
"public function getData()\n {\n $data = array();\n $limit = intval($this->getProperty('limit'));\n $start = intval($this->getProperty('start'));\n\n $c = $this->modx->newQuery($this->classKey);\n $c = $this->prepareQueryBeforeCount($c);\n $data['total'] = $this->modx->getCount($this->classKey, $c);\n $c = $this->prepareQueryAfterCount($c);\n $c->select($this->modx->getSelectColumns($this->classKey, $this->classKey));\n\n $sortClassKey = $this->getSortClassKey();\n $sortKey = $this->modx->getSelectColumns($sortClassKey, $this->getProperty('sortAlias', $sortClassKey), '',\n array($this->getProperty('sort')));\n if (empty($sortKey)) {\n $sortKey = $this->getProperty('sort');\n }\n $c->sortby($sortKey, $this->getProperty('dir'));\n if ($limit > 0) {\n $c->limit($limit, $start);\n }\n\n $data['results'] = array();\n if ($c->prepare() && $c->stmt->execute()) {\n while ($row = $c->stmt->fetch(PDO::FETCH_ASSOC)) {\n $data['results'][] = $this->prepareArray($row);\n }\n } else {\n $this->modx->log(modX::LOG_LEVEL_ERROR, print_r($c->stmt->errorInfo(), true));\n }\n\n return $data;\n }",
"public function fetchArray();",
"public function fetchArray();",
"final public function getData() {\n $result = [];\n foreach ($this->logs as $log) {\n $result[] = $this->getRow($log);\n }\n return $result;\n }",
"public function all()\n {\n $prepSql = \"SELECT {$this->_columnNames} FROM `{$this->_tableName}`\";\n $pstmt = $this->_prepare($prepSql);\n\n $pstmt->execute();\n\n $resultSet = $pstmt->fetchAll(\\PDO::FETCH_ASSOC);\n $pstmt->closeCursor();\n\n $collection = [];\n foreach ($resultSet as $dbRecord) {\n $entity = $this->_toEntity($dbRecord);\n $collection[] = $entity;\n }\n return $collection;\n }",
"public function getData($limit = -1, $offset = -1){ \n $returnValue = [];\n //TODO: Implement get records.\n return $returnValue;\n }"
] | [
"0.77094513",
"0.73568034",
"0.73532766",
"0.7350226",
"0.7341289",
"0.7300485",
"0.7298752",
"0.72827566",
"0.72788745",
"0.72788745",
"0.7237778",
"0.7236356",
"0.7167276",
"0.6910944",
"0.69095486",
"0.6797121",
"0.67525214",
"0.67311424",
"0.6728215",
"0.66310805",
"0.6611558",
"0.66025025",
"0.6591913",
"0.65871966",
"0.6548204",
"0.65170527",
"0.6516038",
"0.649779",
"0.6497644",
"0.6486303",
"0.64784276",
"0.6456713",
"0.64548635",
"0.6452292",
"0.64456886",
"0.6431179",
"0.64295405",
"0.64255464",
"0.6419009",
"0.6413871",
"0.63996273",
"0.6390927",
"0.6379195",
"0.6379195",
"0.63758206",
"0.63751537",
"0.6363452",
"0.6350479",
"0.63395345",
"0.6338082",
"0.6327137",
"0.62982905",
"0.6293447",
"0.6291728",
"0.62862504",
"0.6275141",
"0.6272489",
"0.62689435",
"0.6266894",
"0.6265249",
"0.62539417",
"0.6252405",
"0.6236582",
"0.62338734",
"0.6230428",
"0.6228318",
"0.62278295",
"0.62216115",
"0.6218873",
"0.621654",
"0.62124246",
"0.62100834",
"0.62093174",
"0.6207159",
"0.62049687",
"0.62031627",
"0.6196167",
"0.6196161",
"0.61941415",
"0.6188804",
"0.618738",
"0.6181731",
"0.6179448",
"0.61770225",
"0.6172984",
"0.6160041",
"0.6155023",
"0.61515117",
"0.61506516",
"0.6141866",
"0.61388737",
"0.6133294",
"0.6133294",
"0.6133294",
"0.61243385",
"0.6113254",
"0.6112989",
"0.6112989",
"0.6112914",
"0.611209",
"0.6105978"
] | 0.0 | -1 |
Function to check that the admin user has access | public function check_admin_access(){
$username = $this->session->userdata('admin_username');
$this->db->where('admin_username', $username);
$this->db->where('access_level >', '2');
$query = $this->db->get($this->table);
if ($query->num_rows() == 1){
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function check_admin() {\n return current_user_can('administrator');\n }",
"public function check_admin()\n {\n return current_user_can('administrator');\n }",
"public function checkAdmin();",
"function is_admin()\n {\n //is a user logged in?\n\n //if so, check admin status\n\n //returns true/false\n\n }",
"function user_can_access_admin_page()\n {\n }",
"public function is_admin() {\n if($this->is_logged_in() && $this->user_level == 'a') {\n return true;\n } else {\n // $session->message(\"Access denied.\");\n }\n }",
"protected function isAdminUser() {}",
"function is_user_admin()\n {\n }",
"protected function isCurrentUserAdmin() {}",
"protected function isCurrentUserAdmin() {}",
"public function checkAdmin()\n {\n // there ..... need\n // END Check\n $auth = false;\n if($auth) {\n return true;\n }\n else{\n return false;\n }\n }",
"public function adminPermissionCheck() {\n \tif(Permission::check('ADMIN')) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }",
"public function isAdmin();",
"public static function currentUserHasAccess() {\n return current_user_can('admin_access');\n }",
"public function adminControl()\n {\n $row = $this->currentUserData();\n if(isset($_SESSION['sess_user_type']) &&\n $_SESSION['sess_user_type'] == 'admin' && $row['user_type'] == 'admin'){\n return true;\n }\n }",
"function isUserAdmin() {\r\n $user = $_SESSION['user'];\r\n return checkAdminStatus($user);\r\n }",
"public function is_admin() {\n return $this->session->get(\"niveau_acces\") >= 2;\n }",
"public function checkIsAdmin()\n {\n return $this->user_admin;\n }",
"function checkAdmin()\n\t {\n\t \tif(!$this->checkLogin())\n\t \t{\n\t \t\treturn FALSE;\n\t \t}\n\t \treturn TRUE;\n\t }",
"public function getIsAdmin();",
"public function getIsAdmin();",
"public function isAdmin(){\n $user = Auth::guard('web') -> user();\n if ($user -> state != 1) {\n return 0;\n }\n else {\n return 1;\n }\n }",
"function admin_check($redirect = \"index.php\")\n\t{\n\t\t// makes sure they are logged in:\n\t\trequire_login($redirect);\n\t\t\n\t\t// makes sure they are admin\n\t\t$sql = sprintf(\"SELECT admin FROM users WHERE uid=%d\", \n\t\t$_SESSION[\"uid\"]);\n\t\t\n\t\t// apologize if they are not.\n\t\t$admin = mysql_fetch_row(mysql_query($sql));\n\t\tif ($admin[0] == 0)\n\t\t\tapologize(\"You do not have administrator priveleges\");\n\t}",
"function isAdmin(){\n $user = $this->loadUser(Yii::app()->user->id);\n return intval($user->role) == 1;\n }",
"function isAdmin(){\n $user = $this->loadUser(Yii::app()->user->id);\n return intval($user->role) == 1;\n }",
"public function isAdmin() {}",
"public function isUserOnAdminArea()\n\t{\n\t\treturn is_admin();\n\t}",
"function checkAdminLogin() \n{\n\tif(checkNotLogin())\n\t{\n\t\treturn false;\n\t}\n\t\n\t$user = $_SESSION['current_user'];\n\t\n\tif($user->isAdmin())\n\t{\n\t\treturn true;\n\t}\n\telse \n\t{\n\t\treturn false;\n\t}\n}",
"public function _isAdmin() {\n\t\t$user_id = $this->Auth->user('id');\n\t\t$aro = array('model' => 'User', 'foreign_key' => $user_id); \n\t\t$aco = 'role/super/admin';\n\t\treturn $this->Acl->check($aro, $aco);\n\t}",
"public static function authAdmin() {\n if (Yii::$app->user->can(\"administrator\") || Yii::$app->user->can(\"adminsite\")) {\n return TRUE; //admin ใหญ่\n }\n }",
"function is_admin()\n{\n global $app;\n if (is_authenticated()) {\n $user = $app->auth->getUserData();\n return ($user['role'] === '1');\n } else {\n return false;\n }\n}",
"public function checkIsAdmin() {\n\t\treturn Mage::getSingleton('admin/session')->isLoggedIn();\n\t}",
"public function isAdmin()\n {\n return $this->hasCredential('admin');\n }",
"public function checkAdmin() {\n if (self::redirectIfNotLoggedIn()) {\n return TRUE;\n }\n\n if (!LoggedInUserDetails::isCrew() && !LoggedInUserDetails::hasFullRights()) {\n if (\\Drupal::moduleHandler()->moduleExists('iish_conference_login_logout')) {\n $link = Link::fromTextAndUrl(\n iish_t('log out and login'),\n Url::fromRoute(\n 'iish_conference_login_logout.login_form',\n array(),\n array('query' => \\Drupal::destination()->getAsArray())\n )\n );\n\n drupal_set_message(new ConferenceHTML(\n iish_t('Access denied.') . '<br>' .\n iish_t('Current user ( @user ) is not a conference crew member.',\n array('@user' => LoggedInUserDetails::getUser())) . '<br>' .\n iish_t('Please @login as a crew member.',\n array('@login' => $link->toString())), TRUE\n ), 'error');\n }\n else {\n drupal_set_message(iish_t('Access denied.') . '<br>' .\n iish_t('Current user ( @user ) is not a conference crew member.',\n array('@user' => LoggedInUserDetails::getUser())), 'error');\n }\n\n return TRUE;\n }\n\n return FALSE;\n }",
"private function isAdmin() {\n\t\tif (Auth::user()->user == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}",
"public function IsAdmin ();",
"function VisibleToAdminUser()\n {\n\tinclude (\"dom.php\");\n return $this->CheckPermission($pavad.' Use');\n }",
"function is_admin(){\r\n if (isset($_SESSION['admin']) && $_SESSION['admin']){\r\n return true;\r\n }\r\n return false;\r\n }",
"function userAdmin(){\r\n if(userConnect() && $_SESSION['user']['privilege']==1) return TRUE; else return FALSE;\r\n }",
"protected function userIsAdmin ()\n {\n $tokenHeader = apache_request_headers();\n $token = $tokenHeader['token'];\n $datosUsers = JWT::decode($token, $this->key, $this->algorithm);\n\n if($datosUsers->nombre==\"admin\")\n {\n return true;\n }\n else\n {\n return false;\n } \n }",
"function isAdmin() {\n //FIXME: This needs to (eventually) evaluate that the user is both logged in *and* has admin credentials.\n //Change to false to see nav and detail buttons auto-magically disappear.\n return true;\n}",
"function is_admin()\n\t{\n\t\treturn strtolower($this->ci->session->userdata('DX_role_name')) == 'admin';\n\t}",
"function isAdmin(){\n\t\treturn ($this->userlevel == ADMIN_LEVEL || $this->username == ADMIN_NAME);\n\t}",
"static function getIsAdmin() {\n\t\t$user = ctrl_users::GetUserDetail();\n\t\tif($user['usergroupid'] == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function hasadmin()\n {\n return $this->hasuser() && $this->user()->isadmin();\n }",
"public function isAdmin()\n {\n return ($this->username === \"admin\");\n }",
"function getIsAdmin(){\n\t\treturn ( $this->user && $this->user->access_level >= User::LEVEL_ADMIN );\n\t}",
"function isAdmin() {\n $user = $this->loadUser(Yii::app()->user->id);\n return intval($user->role) == 1;\n }",
"public function isAdmin() {\n return $this->hasPermission('is_admin');\n }",
"public static function has_admin_access() {\n\t\treturn current_user_can( 'manage_options' );\n\t}",
"public static function isAdmin() {\r\n\r\n return Session::get('admin') == 1;\r\n\r\n }",
"public function getIsAdministrator() {}",
"public function isAdmin(){\n if($this->role==\"admin\"){\n return true;\n }\n return false;\n }",
"protected function isAdmin()\n\t{\n\t\treturn is_admin();\n\t}",
"public function isAdmin()\n {\n return $this->role == 1;\n }",
"function isAdmin()\n\t{\n\t\treturn $this->role == 3;\n\t}",
"function acf_current_user_can_admin()\n{\n}",
"private function checkAdmin()\n {\n $admin = false;\n if (isset($_SESSION['admin'])) {\n F::set('admin', 1);\n $admin = true;\n }\n F::view()->assign(array('admin' => $admin));\n }",
"public function is_admin()\n\t{\n\t\t$user = $this->get_current_user();\n\t\tif($user !== NULL)\n\t\t{\n\t\t\tif($user['auth'] == 255)\n\t\t\t{\n\t\t\t\treturn TRUE;\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\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}",
"public function isAdmin()\n {\n }",
"function adminCheck()\n {\n\n // define all the global variables\n global $user, $message, $settings, $translator;\n\n // check if the user is admin\n if ($user->isAdmin()) {\n return true;\n }\n\n // if not then print a custom error message\n $_SESSION['siteTemplateURL'] = $settings->getTemplatesURL();\n $message->customKill($translator->translateText(\"invalidPrivileges\"), $translator->translateText(\"invalidPrivilegesMSG\"), $settings->getTemplatesPath());\n return false;\n }",
"public function adminAuthentication()\n {\n /* Get logined user informations */\n $user = Auth::user();\n if ($user[\"role\"] === 2)\n {\n /* give a admin session */\n return true;\n } else {\n return abort('404');\n }\n }",
"public function memberIsAdmin()\n {\n return $_SESSION['__COMMENTIA__']['member_role'] === 'admin';\n }",
"function iAmAdmin(){\n $adminIDs = Array( 1, 2 );\n \n return in_array( $_SESSION['userid'], $adminIDs );\n }",
"public function isAdmin()\n\t{\n\t\t$this->reply(true);\n\t}",
"public static function requireAdmin() {\n\t$status = (Yii::$app->user->identity->roles == 'admin') ? true : false;\n return $status\n }",
"private function isAdmin() : bool\n {\n return $this->role('admin');\n }",
"function user_AuthIsAdmin() {\n\tglobal $AUTH;\n\t\n\treturn isset($AUTH['admin']) && ($AUTH['admin'] === 1);\n}",
"public static function check_admin () {\n if (! Person::user_is_admin()) {\n View::make('main/error.html');\n }\n }",
"public static function isAllowed() {\r\n\t\treturn TodoyuAuth::isAdmin();\r\n\t}",
"private function isAdmin() : bool\n {\n return $this->user->hasRole('admin');\n }",
"function _isUserAdmin(){\n\n $output = 0;\n $userId = $this->session->userdata('userId');\n $user = $this->User_model->getUserByUserId($userId);\n $userRoleId = $user->user_roles_id;\n $userRole = $this->Roles_model->getUserRoleById($userRoleId);\n if($userRole->role === 'admin'){\n $output = 1;\n }\n return $output;\n }",
"static public function isAdmin(){\n if ( isset($_SESSION['admin']) && ($_SESSION['admin'] == 1)){\n return true;\n } else {\n return false;\n }\n }",
"function HasAdmin()\n {\n return true;\n }",
"function checkUserIsAdmin()\n {\n $user_db = new SafeMySQL();\n\n $user_id = htmlentities($_SESSION[SES_NAME]['user_id'], ENT_QUOTES, 'UTF-8');\n\n if($user_db->getRow(\"SELECT user_id FROM app_users WHERE user_status = 'Active' AND user_id = ?s\",$user_id)){\n return true;\n } else {\n return false;\n }\n\n }",
"public static function isAdmin()\n {\n return auth()->check() && auth()->user()->panichd_admin;\n }",
"public function adminUserConditionMatchesAdminUser() {}",
"public static function checkIsAdmin()\n\t{\n\t\treturn ( Auth::check() && self::isAdmin() );\n\t}",
"function hasAccess(): bool\n {\n return isLoggedInAndHasRole($this->ci, [Role::ROLE_ADMIN]);\n }",
"public function check_if_admin() {\n if(Auth::check() && Auth::user()->hasRole('admin')) {\n return true;\n }\n return false;\n }",
"public function isAdmin(){\n return $this->role=='admin';\n }",
"public function authorize() {\n\t\treturn $this->user()->is_admin;\n\t}",
"public function isAdmin() {\n return ($this->userlevel == ADMIN_LEVEL ||\n $this->username == ADMIN_NAME);\n }",
"function visible_to_admin_user()\n\t{\n\t\treturn true;\n\t}",
"function is_admin()\n {\n if(isLoggedIn())\n {\n $username = $_SESSION['username'];\n $result = query(\"select user_role from users where username = '{$username}'\");\n $row = fetchRecords($result);\n if($row['user_role'] == \"admin\")\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n return false;\n }",
"function isAdmin(){\r\n\r\n\t\tif($this->user_type == 'Admin'){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"function IsAdmin()\n{\n\treturn false;\n}",
"function is_admin_logged_in()\n{\n global $current_user;\n return ($current_user != NULL && $current_user['un'] == 'admin');\n}",
"public function isAdmin()\n {\n return (\\Auth::user()->role == 'admin');\n }",
"function isAdmin(){\n$user = $this->loadUser(Yii::app()->user->user_id);\nreturn intval($user->user_role_id) == 1;\n}",
"public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}",
"public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}",
"public function hasAdminRights() {\n return in_array($this['user_type_id'], [3, 7]);\n }",
"function is_admin()\r\n{\r\n if(is_auth() && $_SESSION['user']['statut'] == 1)\r\n {\r\n return true;\r\n }\r\n return false;\r\n}",
"public function isAdmin()\n {\n $p = User::getUser();\n if($p)\n {\n if($p->canAccess('Edit products') === TRUE)\n {\n return TRUE;\n }\n }\n return FALSE;\n }",
"public function isAdmin()\n {\n return ($this->role == 1) ? true : false;\n }",
"public function authorize()\n {\n $user = Sentinel::getUser();\n $admin = Sentinel::findRoleByName('Admin');\n if ( $user->inRole( $admin ) ) { //lets make sure its an admin\n return true;\n }\n return false;\n }",
"public function isAdminLoggedIn() {\n\t\t$user = $this->getLoggedInUser();\n\t\treturn $user && $user->isAdmin();\n\t}",
"function is_admin()\n {\n\tif(isset($_SESSION['ISADMIN']))\n\t {\n\t\treturn $this->check_session($_SESSION['ISADMIN']);\n\t }\n\t else\n\t {\n\t\t return false;\n\t }\n }",
"public static function isAdmin()\n\t{\n\t\treturn in_array( Auth::user()->username, Config::get( 'admin.usernames' ) );\n\t}"
] | [
"0.8587322",
"0.8539967",
"0.8492362",
"0.8448276",
"0.8250654",
"0.82308614",
"0.8219612",
"0.81931376",
"0.81678855",
"0.816473",
"0.81620216",
"0.8160235",
"0.8150284",
"0.81126875",
"0.8109421",
"0.80501777",
"0.8048818",
"0.8047551",
"0.8025885",
"0.79887944",
"0.79887944",
"0.79843307",
"0.79695475",
"0.7963653",
"0.7963653",
"0.79501",
"0.7948287",
"0.79369843",
"0.7915197",
"0.7910958",
"0.79107946",
"0.7906969",
"0.7906528",
"0.78886247",
"0.78811",
"0.78803295",
"0.78758186",
"0.7874587",
"0.78715765",
"0.7865699",
"0.7860677",
"0.7860141",
"0.78561366",
"0.78532165",
"0.7840737",
"0.7824843",
"0.7823703",
"0.78079027",
"0.78023463",
"0.7800341",
"0.78000987",
"0.7799711",
"0.77729493",
"0.7772006",
"0.7765717",
"0.7751575",
"0.7747368",
"0.774678",
"0.77343047",
"0.77208555",
"0.77122235",
"0.7702663",
"0.770051",
"0.7697723",
"0.7688669",
"0.7682465",
"0.7681348",
"0.7676887",
"0.76736546",
"0.76701856",
"0.7668904",
"0.76678956",
"0.766751",
"0.76646847",
"0.766335",
"0.7662146",
"0.7657417",
"0.76539004",
"0.76463014",
"0.76452523",
"0.76446706",
"0.7640234",
"0.7636554",
"0.76313376",
"0.7629502",
"0.7629331",
"0.76285154",
"0.7624961",
"0.7621068",
"0.7619592",
"0.7616201",
"0.7616201",
"0.76072496",
"0.7607135",
"0.76062036",
"0.7606011",
"0.7605568",
"0.75975156",
"0.75873876",
"0.758622"
] | 0.80549467 | 15 |
Function to create admin | public function create_admin($data){
$this->db->insert($this->table, $data);
$insert_id = $this->db->insert_id();
if ($insert_id){
return $insert_id;
}else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function createAdmin()\r\n\t{\r\n\t\treturn new Admin();\r\n\t}",
"public function admin_create()\n {\n return View::make('admin_create');\n }",
"public static function createAdmin()\n {\n // Name is required\n if(!isset($_POST['username'])) Status::message(Status::ERROR, \"At least specify a name\");\n if(!isset($_POST['password'])) Status::message(Status::ERROR, \"At least specify a password\");\n\n $add_admin = DatabaseManager::query(\"main\",\n \"INSERT INTO `admin_users` (username, password, created) VALUES (:username, :password, NOW())\",\n [\n \"username\" => $_POST['username'],\n \"password\" => password_hash($_POST['password'], PASSWORD_BCRYPT)\n ]\n );\n if(!$add_admin) Status::message(Status::ERROR, \"Couldn't insert into the DB\");\n\n // Refresh Cache to apply changes\n CacheManager::loadDefaults(true);\n Status::message(Status::SUCCESS, \"Added Successfully! :)\");\n }",
"public function create()\n {\n //\n return view ('theme.admin.create_admin');\n }",
"public function createAdmin() { return view('panel.users.create.admin'); }",
"public function create()\n\t{\n\t\t\n return view('pages.createadmin');\n\t}",
"public function createadmin(){\n if($this->check() == true){\n if(isset($_POST['submit'])){\n $name = $_POST['name'];\n $surname = $_POST['surname'];\n $email = $_POST['email'];\n $pass = $_POST['password'];\n $this->admindb->insert('admin', array(\n 'name' => $name,\n 'surname' => $surname,\n 'email' => $email,\n 'password' => password_hash($pass, PASSWORD_BCRYPT, [12])\n ))->get();\n }else{\n // die(\"There's some problem with creating admin...\");\n }\n $this->view('admin/createadmin');\n// $this->view('admin/createadmin');\n }\n }",
"public function create_admin()\n {\n //get dropdown data\n $functional_units = [];\n $data = [];\n $this->get_data($data, $functional_units);\n\n return view('accounts.create_admin')->with([\n 'functional_units' => $functional_units, \n 'data' => $data\n ]);\n }",
"public function create_admin() {\n\t\t$data['school_id'] = html_escape($this->input->post('school_id'));\n\t\t$data['name'] = html_escape($this->input->post('name'));\n\t\t$data['email'] = html_escape($this->input->post('email'));\n\t\t$data['password'] = sha1($this->input->post('password'));\n\t\t$data['phone'] = html_escape($this->input->post('phone'));\n\t\t$data['gender'] = html_escape($this->input->post('gender'));\n\t\t$data['blood_group'] = html_escape($this->input->post('blood_group'));\n\t\t$data['address'] = html_escape($this->input->post('address'));\n\t\t$data['role'] = 'admin';\n\t\t$data['watch_history'] = '[]';\n\n\t\t// check email duplication\n\t\t$duplication_status = $this->check_duplication('on_create', $data['email']);\n\t\tif($duplication_status){\n\t\t\t$this->db->insert('users', $data);\n\n\t\t\t$response = array(\n\t\t\t\t'status' => true,\n\t\t\t\t'notification' => get_phrase('admin_added_successfully')\n\t\t\t);\n\t\t}else{\n\t\t\t$response = array(\n\t\t\t\t'status' => false,\n\t\t\t\t'notification' => get_phrase('sorry_this_email_has_been_taken')\n\t\t\t);\n\t\t}\n\n\t\treturn json_encode($response);\n\t}",
"public function create()\n {\n //\n // return view('addAdmin');\n }",
"public function crearadmin()\n {\n //busca en la tabla usuarios los campos donde el alias sea igual a admin si no encuentra nada devuelve null\n $usuarios = R::findOne('usuarios', 'alias=?', [\n \"admin\"\n ]);\n \n \n // ok es igual a true siempre y cuando usuarios sea distinto de null\n $ok = ($usuarios == null );\n if ($ok) {\n // crea la tabla usuarios\n $usuarios = R::dispense('usuarios');\n //crea los campos de la tabla usuarios\n $usuarios->nombre=\"admin\";\n $usuarios->primer_apellido=\"admin\";\n $usuarios->segundo_apellido=\"admin\";\n $usuarios-> fecha_nacimiento=\"1998/03/12\";\n $usuarios->fecha_de_registro=date('Y-m-d');\n $usuarios->email=\"[email protected]\";\n $usuarios->telefono=\"6734687\";\n $usuarios->contrasena=password_hash(\"admin\", PASSWORD_DEFAULT);\n $usuarios->confirmar_contrasena=password_hash(\"admin\", PASSWORD_DEFAULT);\n $usuarios->alias=\"admin\";\n $usuarios->foto = null;\n //almacena los datos en la tabla usuarios\n R::store($usuarios);\n \n \n \n \n }\n \n \n \n \n \n \n }",
"public function create()\n {\n //\n return $this->formView( new Admin() );\n }",
"public function create()\n\t{\n\t\treturn $this->renderView('admin.admins.create');\n\t}",
"public function create()\n {\n return view('create_admins');\n }",
"public function createAdmin()\n {\n $users = User::all();\n return view('admin.create',['users'=>$users]);\n }",
"function make_admin($array) {\n return $this->makeAdmin($array);\n }",
"public function create()\n {\n Auth::check();\n return view(\"ControlPanel.admin.create\");\n }",
"public function create()\n {\n return view('admin.admins.create'); \n }",
"public function create()\n {\n return view('admin::frontend.admins.create');\n }",
"function bit_admin_page() {\n\t//Creates admin page\n}",
"public function adminmenu()\n {\n\n $vue = new ViewAdmin(\"Administration\");\n $vue->generer(array());\n }",
"public function create()\n {\n // $this->authorize('create');\n // return view('admin.admins.show');\n }",
"public function create()\n {\n // Admin only\n }",
"function create_admin_menu()\n {\n add_menu_page(\n 'Mattevideo Exercises', //page title\n 'Mattevideo Exercises', //menu title\n 'manage_options', //capabilities\n 'mattevideo_exercise', //menu slug\n array($this, 'mattevideo_exercise') //function\n );\n add_submenu_page('mattevideo_exercise', //parent slug\n 'Create Exercise', //page title\n 'Create Exercise', //menu title\n 'manage_options', //capability\n 'create_exercise', //menu slug\n array($this, 'create_exercise')); //function\n }",
"public function createAdmin()\n {\n if(Auth::user()->role()->first()['id'] != 1 ){\n return redirect('/unauthorised')->with('error', 'Error 403');\n }\n return view('users.admins.new');\n }",
"public function createUser($admin = false);",
"public function admin_init() {}",
"public function create()\n {\n return view('superAdmin.addAdmin');\n }",
"function admin()\n{\n global $app;\n\n $app->render('admin.html', [\n 'page' => mkPage(getMessageString('admin'), 0, 1),\n 'isadmin' => is_admin()]);\n}",
"public function createAdmin() {\n if(User::where('email', '[email protected]')->count() == 0) {\n $admin = new User();\n $admin->name = \"Administrador\";\n $admin->email = \"[email protected]\";\n $admin->password = bcrypt(\"admin\");\n $admin->user_type = User::UserTypeAdmin;\n $admin->save();\n }\n }",
"private function setUpAdmin()\n {\n if ($this->confirm('Do you want to set up a admin?')) {\n $name = (string) $this->ask('What is the name of a admin?');\n $email = (string) $this->ask('What is the email address of a admin?');\n $password = (string) $this->ask('What is the password of a admin?');\n factory(Admin::class)->create(\n [\n 'name' => $name,\n 'email' => $email,\n 'password' => bcrypt($password),\n ]\n );\n }\n }",
"public function create()\n {\n return view('admin.admins.create');\n }",
"public function create()\n {\n return view('admin.admins.create');\n }",
"private function runAdmin()\n {\n $num = (int) $this->ask('How many records do you want to create for the admins table?');\n factory(Admin::class, $num)->create();\n }",
"public function createAdminUser(JacliModelDatabase $db)\n\t{\n\t}",
"function Ephemerids_admin_new()\n{\n // Security check - important to do this as early as possible to avoid\n // potential security holes or just too much wasted processing\n if (!pnSecAuthAction(0, 'Ephemerids::Item', '::', ACCESS_ADD)) {\n return pnVarPrepHTMLDisplay(_MODULENOAUTH);\n }\n\n // Create output object - this object will store all of our output so that\n // we can return it easily when required\n\t$pnRender =& new pnRender('Ephemerids');\n\n\t// As Admin output changes often, we do not want caching.\n\t$pnRender->caching = false;\n\n // Language\n $pnRender->assign('languages', languagelist());\n\n // Return the output that has been generated by this function\n return $pnRender->fetch('ephemerids_admin_new.htm');\n}",
"public function create_admin()\n\t{\n\t\t// Customize this array for your user\n\t\t$user_data = [\n\t\t\t'username' => 'admin',\n\t\t\t'email' => '[email protected]',\n\t\t\t'name'\t\t => 'Super Admin',\n\t\t\t'branch'\t => 1,\n\t\t\t'position'\t => 1,\t\n\t\t\t'passwd' => 'Hello123#',\n\t\t\t'auth_level' => '9', // 9 if you want to login @ auth/index.\n\t\t];\n\n\t\t$this->is_logged_in();\n\n\t\techo $this->load->view('auth/page_header', '', TRUE);\n\n\t\t// Load resources\n\t\t$this->load->helper('auth');\n\t\t$this->load->model('auth/examples_model');\n\t\t$this->load->model('auth/validation_callables');\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_data( $user_data );\n\n\t\t$validation_rules = [\n\t\t\t[\n\t\t\t\t'field' => 'username',\n\t\t\t\t'label' => 'username',\n\t\t\t\t'rules' => 'max_length[12]|is_unique[' . db_table('user_table') . '.username]',\n\t\t\t\t'errors' => [\n\t\t\t\t\t'is_unique' => 'Username already in use.'\n\t\t\t\t]\n\t\t\t],\n\t\t\t[\n\t\t\t\t'field' => 'passwd',\n\t\t\t\t'label' => 'passwd',\n\t\t\t\t'rules' => [\n\t\t\t\t\t'trim',\n\t\t\t\t\t'required',\n\t\t\t\t\t[ \n\t\t\t\t\t\t'_check_password_strength', \n\t\t\t\t\t\t[ $this->validation_callables, '_check_password_strength' ] \n\t\t\t\t\t]\n\t\t\t\t],\n\t\t\t\t'errors' => [\n\t\t\t\t\t'required' => 'The password field is required.'\n\t\t\t\t]\n\t\t\t],\n\t\t\t[\n\t\t\t\t'field' => 'email',\n\t\t\t\t'label' => 'email',\n\t\t\t\t'rules' => 'trim|required|valid_email|is_unique[' . db_table('user_table') . '.email]',\n\t\t\t\t'errors' => [\n\t\t\t\t\t'is_unique' => 'Email address already in use.'\n\t\t\t\t]\n\t\t\t],\n\t\t\t[\n\t\t\t\t'field' => 'auth_level',\n\t\t\t\t'label' => 'auth_level',\n\t\t\t\t'rules' => 'required|integer|in_list[1,6,9]'\n\t\t\t]\n\t\t];\n\n\t\t$this->form_validation->set_rules( $validation_rules );\n\n\t\tif( $this->form_validation->run() )\n\t\t{\n\t\t\t$user_data['passwd'] = $this->authentication->hash_passwd($user_data['passwd']);\n\t\t\t$user_data['user_id'] = $this->examples_model->get_unused_id();\n\t\t\t$user_data['created_at'] = date('Y-m-d H:i:s');\n\n\t\t\t// If username is not used, it must be entered into the record as NULL\n\t\t\tif( empty( $user_data['username'] ) )\n\t\t\t{\n\t\t\t\t$user_data['username'] = NULL;\n\t\t\t}\n\n\t\t\t$this->db->set($user_data)\n\t\t\t\t->insert(db_table('user_table'));\n\n\t\t\tif( $this->db->affected_rows() == 1 )\n\t\t\t\techo '<h1>Congratulations</h1>' . '<p>User ' . $user_data['username'] . ' was created.</p>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo '<h1>User Creation Error(s)</h1>' . validation_errors();\n\t\t}\n\n\t\techo $this->load->view('auth/page_footer', '', TRUE);\n\t}",
"function showAdmins() {\n // permissions...\n if(!Current_User::isDeity()) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Menu.php');\n $error = 'Uh Uh Uh! You didn\\'t say the magic word!';\n Sysinventory_Menu::showMenu($error);\n return;\n }\n // see if we need to do anything to the db\n if(isset($_REQUEST['newadmin'])) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Admin.php');\n $admin = new Sysinventory_Admin;\n $admin->department_id = $_REQUEST['department_id'];\n $admin->username = $_REQUEST['username'];\n $admin->save();\n }else if (isset($_REQUEST['deladmin'])) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Admin.php');\n $admin = new Sysinventory_Admin;\n $admin->id = $_REQUEST['id'];\n $admin->delete();\n }\n\n // set up some stuff for the page template\n $tpl = array();\n $tpl['PAGE_TITLE'] = 'Edit Administrators';\n $tpl['HOME_LINK'] = PHPWS_Text::moduleLink('Back to menu','sysinventory');\n\n // create the list of admins\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Admin.php');\n $adminList = Sysinventory_Admin::generateAdminList();\n // get the list of departments\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Department.php');\n $depts = Sysinventory_Department::getDepartmentsByUsername();\n\n // build the array for the department drop-down box\n $deptIdSelect = array();\n foreach($depts as $dept) {\n $deptIdSelect[$dept['id']] = $dept['description'];\n }\n\n // make the form for adding a new admin\n $form = new PHPWS_Form('add_admin');\n $form->addSelect('department_id',$deptIdSelect);\n $form->setLabel('department_id','Department');\n $form->addText('username');\n $form->setLabel('username','Username');\n $form->addSubmit('submit','Create Admin');\n $form->setAction('index.php?module=sysinventory&action=edit_admins');\n $form->addHidden('newadmin','add');\n\n $tpl['PAGER'] = $adminList;\n\n $form->mergeTemplate($tpl);\n\n $template = PHPWS_Template::process($form->getTemplate(),'sysinventory','edit_admin.tpl');\n\n Layout::addStyle('sysinventory','style.css');\n Layout::add($template);\n\n }",
"function showAdmins() {\n // permissions...\n if(!Current_User::isDeity()) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Menu.php');\n $error = 'Uh Uh Uh! You didn\\'t say the magic word!';\n Sysinventory_Menu::showMenu($error);\n return;\n }\n // see if we need to do anything to the db\n if(isset($_REQUEST['newadmin'])) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Admin.php');\n $admin = new Sysinventory_Admin;\n $admin->department_id = $_REQUEST['department_id'];\n $admin->username = $_REQUEST['username'];\n $admin->save();\n }else if (isset($_REQUEST['deladmin'])) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Admin.php');\n $admin = new Sysinventory_Admin;\n $admin->id = $_REQUEST['id'];\n $admin->delete();\n }\n\n // set up some stuff for the page template\n $tpl = array();\n $tpl['PAGE_TITLE'] = 'Edit Administrators';\n $tpl['HOME_LINK'] = PHPWS_Text::moduleLink('Back to menu','sysinventory');\n\n // create the list of admins\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Admin.php');\n $adminList = Sysinventory_Admin::generateAdminList();\n // get the list of departments\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Department.php');\n $depts = Sysinventory_Department::getDepartmentsByUsername();\n\n // build the array for the department drop-down box\n $deptIdSelect = array();\n foreach($depts as $dept) {\n $deptIdSelect[$dept['id']] = $dept['description'];\n }\n\n // make the form for adding a new admin\n $form = new PHPWS_Form('add_admin');\n $form->addSelect('department_id',$deptIdSelect);\n $form->setLabel('department_id','Department');\n $form->addText('username');\n $form->setLabel('username','Username');\n $form->addSubmit('submit','Create Admin');\n $form->setAction('index.php?module=sysinventory&action=edit_admins');\n $form->addHidden('newadmin','add');\n\n $tpl['PAGER'] = $adminList;\n\n $form->mergeTemplate($tpl);\n\n $template = PHPWS_Template::process($form->getTemplate(),'sysinventory','edit_admin.tpl');\n\n Layout::addStyle('sysinventory','style.css');\n Layout::add($template);\n\n }",
"function showAdmins() {\n // permissions...\n if(!Current_User::isDeity()) {\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Error.php');\n $error = 'Uh Uh Uh! You didn\\'t say the magic word!';\n Sysinventory_Error::error($error);\n return;\n }\n\n // set up some stuff for the page template\n $tpl = array();\n $tpl['PAGE_TITLE'] = 'Edit Administrators';\n $tpl['HOME_LINK'] = PHPWS_Text::moduleLink('Back to menu','sysinventory');\n\n // create the list of admins\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Admin.php');\n $adminList = Sysinventory_Admin::generateAdminList();\n // get the list of departments\n PHPWS_Core::initModClass('sysinventory','Sysinventory_Department.php');\n $depts = Sysinventory_Department::getDepartmentsByUsername();\n\n // build the array for the department drop-down box\n $deptIdSelect = array();\n foreach($depts as $dept) {\n $deptIdSelect[$dept['id']] = $dept['description'];\n }\n\n // make the form for adding a new admin\n $form = new PHPWS_Form('add_admin');\n $form->addSelect('department_id',$deptIdSelect);\n $form->setLabel('department_id','Department');\n $form->addText('username');\n $form->setLabel('username','Username');\n $form->addSubmit('submit','Create Admin');\n $form->setAction('index.php?module=sysinventory&action=edit_admins');\n $form->addHidden('newadmin','add');\n\n $tpl['PAGER'] = $adminList;\n\n $form->mergeTemplate($tpl);\n\n $template = PHPWS_Template::process($form->getTemplate(),'sysinventory','edit_admin.tpl');\n\n Layout::addStyle('sysinventory','style.css');\n Layout::add($template);\n\n }",
"public function create()\n {\n $roleConfig = config('constants.admin.role');\n\n return view('admin.admins.create', compact('roleConfig'));\n }",
"public function create()\n {\n return view('admin.admins.admins.create');\n }",
"public function create() {\n\t\t$groups = PermissionGroup::with(['permissions'])->where('slug', 'branches')->orWhere('slug', 'admins')->orWhere('slug', 'trips')->orWhere('slug', 'customers')->get();\n\t\t$types = AdminType::where('active', 1)->whereIn('id', [2, 3, 4])->latest()->get();\n\t\treturn view('merchants.admins.create', compact('groups', 'types'));\n\t}",
"public function create()\n {\n return view('admin.users.admins.create');\n }",
"public function createByAdmin()\n {\n return view('member.create');\n }",
"private function instantiate_admin_pages() {\n $this->admin_objs[ 'menu' ] = new HRHS_Admin_Menu();\n }",
"public function admin() {\n return new Administration($this->dbTablePrefix, $this->dbSchema);\n }",
"protected function create(){\n $subadmin = new Admin;\n return view('subadmin.create', compact('subadmin'));\n }",
"public function GetAdmin ();",
"public function run()\n {\n $Admin = (new Admin);\n $Admin->setName('Admin');\n $Admin->setEmail('[email protected]');\n $Admin->setPassword('123456');\n $Admin->save();\n $Role = new Role();\n $Role->setName('Admin');\n $Role->save();\n $Role->refresh();\n $Permissions = [\n 'Admins',\n 'Roles',\n 'Permissions',\n 'Settings',\n 'Faq',\n 'Categories',\n 'SubCategories',\n 'Countries',\n 'Cities',\n 'Advertisements',\n 'Orders',\n 'Customers',\n 'Providers',\n 'Tickets',\n ];\n $Settings = [\n 'privacy'=>[\n 'name'=>'Privacy Policy',\n 'name_ar'=>'سياسة الخصوصية',\n 'value'=>'Privacy Policy',\n 'value_ar'=>'سياسة الخصوصية',\n 'key'=>'privacy',\n 'type'=>Constant::SETTING_TYPE['Page'],\n ],\n 'about'=>[\n 'name'=>'About Us',\n 'name_ar'=>'من نحن',\n 'value'=>'About Us',\n 'value_ar'=>'من نحن',\n 'key'=>'about',\n 'type'=>Constant::SETTING_TYPE['Page'],\n ],\n 'terms'=>[\n 'name'=>'Terms And Conditions',\n 'name_ar'=>'الشروط والأحكام',\n 'value'=>'Terms And Conditions',\n 'value_ar'=>'الشروط والأحكام',\n 'key'=>'terms',\n 'type'=>Constant::SETTING_TYPE['Page'],\n ],\n 'facebook'=>[\n 'name'=>'Facebook',\n 'name_ar'=>'حساب الفيسبوك',\n 'value'=>'',\n 'value_ar'=>'',\n 'key'=>'facebook',\n 'type'=>Constant::SETTING_TYPE['Values'],\n ],\n 'instagram'=>[\n 'name'=>'Instagram',\n 'name_ar'=>'حساب الانستقرام',\n 'value'=>'',\n 'value_ar'=>'',\n 'key'=>'instagram',\n 'type'=>Constant::SETTING_TYPE['Values'],\n ],\n 'email'=>[\n 'name'=>'Email',\n 'name_ar'=>'البريد الالكتروني',\n 'value'=>'',\n 'value_ar'=>'',\n 'key'=>'email',\n 'type'=>Constant::SETTING_TYPE['Values'],\n ],\n 'mobile'=>[\n 'name'=>'Mobile',\n 'name_ar'=>'رقم الجوال',\n 'value'=>'',\n 'value_ar'=>'',\n 'key'=>'mobile',\n 'type'=>Constant::SETTING_TYPE['Values'],\n ],\n 'holding_period'=>[\n 'name'=>'Holding Period',\n 'name_ar'=>'فترة الحجز',\n 'value'=>'10',\n 'value_ar'=>'10',\n 'key'=>'holding_period',\n 'type'=>Constant::SETTING_TYPE['Values'],\n ],\n 'commission'=>[\n 'name'=>'Commission',\n 'name_ar'=>'العمولة',\n 'value'=>'2',\n 'value_ar'=>'2',\n 'key'=>'commission',\n 'type'=>Constant::SETTING_TYPE['Values'],\n ],\n ];\n foreach ($Settings as $setting){\n $Setting = new Setting();\n $Setting->setKey($setting['key']);\n $Setting->setName($setting['name']);\n $Setting->setNameAr($setting['name_ar']);\n $Setting->setValue($setting['value']);\n $Setting->setValueAr($setting['value_ar']);\n $Setting->setType($setting['type']);\n $Setting->save();\n }\n foreach ($Permissions as $permission){\n $Permission = new Permission;\n $Permission->setName($permission);\n $Permission->save();\n }\n foreach (Permission::all() as $permission){\n $RolePermission = new RolePermission();\n $RolePermission->setPermissionId($permission->getId());\n $RolePermission->setRoleId($Role->getId());\n $RolePermission->save();\n }\n foreach (Role::all() as $role){\n $ModelRole = new ModelRole();\n $ModelRole->setModelId($Admin->getId());\n $ModelRole->setRoleId($role->getId());\n $ModelRole->save();\n }\n foreach (Permission::all() as $permission){\n $ModelPermission = new ModelPermission();\n $ModelPermission->setModelId($Admin->getId());\n $ModelPermission->setPermissionId($permission->getId());\n $ModelPermission->save();\n }\n Artisan::call('passport:install');\n }",
"public function create()\n {\n if (Gate::denies('admins.create', Auth::user())) {\n return response()->view('errors.403', [], 403);\n }\n $data = [\n 'languages' => array(\n 'english',\n 'arabic'\n ),\n 'nationalities' => array(\n 'Egyptian',\n 'Saudian'\n ),\n 'formRoute' => route('admins.store'),\n 'submitBtn' => trans('admin.update')\n ];\n return view(AD . '.admins.form')->with($data);\n }",
"public function adminCreate()\n {\n $config = $this->getFormData();\n// dd($config);\n $config['pageTitle'] = trans('app.pages');\n $config['route'] = route('app.pages.create');\n\n return view('admin.form', $config);\n }",
"public function create()\n\t{\n\t\t$data = ['user_role_id' => USER_ROLE_ADMINISTRATOR];\n\t\tif ($id = $this->users_model->save($data)) {\n\n\t\t\t//if user has not access to update\n\t\t\t$this->session->set_userdata(['new_item' => ['module' => 'administrators', 'id' => $id]]);\n\n\t\t\tredirect(\"/admin/users/update/$id\");\n\t\t}\n\t\telse {\n\t\t\t$this->pls_alert_lib->set_flash_messages('error', lang('admin_create_failed'));\n\t\t\tredirect(\"/admin/administrators\");\n\t\t}\n\t}",
"public function create()\r\n {\r\n app('antares.asset')->container('antares/installer')->add('validator_min', 'public/packages/core/js/validator.min.js');\r\n set_meta('title', 'Create Administrator');\r\n return $this->processor->create($this);\r\n }",
"public function create()\n {\n return view('admins.create');\n }",
"public function register_admin_page()\n {\n }",
"function newAdministrator($name, $valid=1) {\n\t\treturn new Zenphoto_Administrator($name, $valid);\n\t}",
"public static function add_admin_menus()\n\t{\n\t}",
"public function getPostCreateUserAdmin()\n {\n if (!$this->di->get(\"session\")->has(\"account\")) {\n $this->di->get(\"response\")->redirect(\"user/login\");\n }\n\n $title = \"A create user page\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n\n $user = new User();\n $username = $this->di->get(\"session\")->get(\"account\");\n $user->setDb($this->di->get(\"db\"));\n $user->find(\"username\", $username);\n\n if ($user->admin != 1) {\n $this->di->get(\"response\")->redirect(\"user\");\n }\n\n $form = new CreateUserAdminForm($this->di);\n\n $form->check();\n\n $data = [\n \"content\" => $form->getHTML(),\n ];\n\n $view->add(\"default2/article\", $data);\n\n $pageRender->renderPage([\"title\" => $title]);\n }",
"public function create()\n\t{\n\t\treturn view(\"Olaylar::admin.\".$this->theme.\".create\")\n\t\t->with('headName', $this->headName);\n\t}",
"public function create()\n\t{\n\t\t$data['title'] = \"Level Admin\";\n\t\t// $data['level'] = $this->level->getAll();\n\t\t$data['action'] = \"level/insert\";\n\t\t$this->template->admthemes('level/formCreate',$data);\n\t}",
"public function create() {\n\t\treturn view('laravel-simple-blog::admin.create');\n\t}",
"public function admin_setup()\n\t{\n\t\t\n\t}",
"public function create()\n {\n return view('thuthuy.pages.admin.create');\n }",
"public function create()\n {\n if (is_null($this->user) || !$this->user->can('admin.create')) {\n abort(403, 'You are Unauthorized !');\n }\n $roles = Role::all();\n return view('backend.pages.admins.create', compact('roles'));\n }",
"public function creating(Admin $admin) {\n\n $this->capitalizeName($admin);\n }",
"public function addAdminMenu()\n\t {\n\t add_menu_page('Create Metas', 'Create Metas', 'manage_options', 'create-metas', array( $this, 'optionsPage' ), 'dashicons-admin-tools', 66 );\n\t }",
"public function create()\n {\n return view('admin/administrator/create');\n }",
"function create_AdminPages()\n\t{\t\t\n\t\t$parentSlug = \"edit.php?post_type=imperial_topic\";\n\t\t$page_title=\"Settings\";\n\t\t$menu_title=\"Settings\";\n\t\t$menu_slug=\"topic-settings\";\n\t\t$function= array( $this, 'drawTopicSettings' );\n\t\t$myCapability = \"manage_options\";\n\t\tadd_submenu_page($parentSlug, $page_title, $menu_title, $myCapability, $menu_slug, $function);\n\n\t\t\n\t\t\n\t}",
"public function createAdminToken();",
"public function admin_init(){\n\n\t}",
"public function create()\n {\n return view ('user.actions.administrator.create');\n }",
"public function create()\n {\n //\n\n $admin = Auth::user();\n $roles = Role::select('*')->whereIn('name',['superadmin','admin','admin-editor'])->get();\n // dd($admin);\n return view('admin.create',compact('admin','roles'));\n\n }",
"function admin(): Admin\n {\n return Admin::app();\n }",
"public function create()\n {\n return view('adminlepy/create');\n }",
"public function admin()\n\t{\n\t\tif ( ! $this->admin )\n\t\t{\n\t\t\trequire_once dirname( __FILE__ ) . '/class-bdefinite-admin.php';\n\t\t\t$this->admin = new bDefinite_Admin();\n\t\t\t$this->admin->plugin_url = $this->plugin_url;\n\t\t}\n\n\t\treturn $this->admin;\n\t}",
"public function create()\n {\n //\n return response()->view('admin.create');\n }",
"public function add_admin_menus()\n {\n\n add_menu_page(\n 'Online Exam',\n 'Online Exam',\n 'manage_department',\n 'online_exam',\n function () {\n new \\OE\\includes\\html\\Manage_Department;\n },\n 'dashicons-text-page',\n );\n\n /**\n * adding theme setting menu to admin page\n */\n\n add_menu_page(\n 'OE Theme Setting',\n 'Theme Setting',\n 'manage_options',\n 'oe_theme_setting',\n function () {\n new \\OE\\includes\\html\\Theme_Setting;\n },\n 'dashicons-admin-generic',\n 98\n );\n\n /**\n * adding all the submens to admin page\n * this is teacher's submenu page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Teacher's\",\n // menu title\n \"Manage Teacher's\",\n // capability\n 'manage_teachers',\n // menu slug\n 'manage_teachers',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Teaher;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Questions\",\n // menu title\n \"Manage Questions\",\n // capability\n 'manage_questions',\n // menu slug\n 'manage_questions',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Question;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Exam Routine\",\n // menu title\n \"Exam Routine\",\n // capability\n 'manage_routine',\n // menu slug\n 'manage_routine',\n // callback function\n function () {\n new \\OE\\includes\\html\\Exam_Routine;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Students\",\n // menu title\n \"Manage Students\",\n // capability\n 'manage_students',\n // menu slug\n 'manage_students',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Student;\n },\n );\n\n /**\n * adding create all question page according to question folder\n * this is question creation page\n */\n if (isset($_GET['exam_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Create Qustion\",\n // menu title\n \"Create Qustion\",\n // capability\n 'create_question',\n // menu slug\n 'create_question',\n // callback function\n function () {\n new \\OE\\includes\\html\\Create_Qustion;\n },\n );\n }\n\n /**\n * adding student performence page according to question folder\n * this is question creation page\n */\n if (isset($_GET['current_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Student's Performence\",\n // menu title\n \"Student's Performence\",\n // capability\n 'student_performence',\n // menu slug\n 'student_performence',\n // callback function\n function () {\n new \\OE\\includes\\html\\Student_Performence;\n },\n );\n }\n\n /**\n * adding individual performence page according to question folder\n * this is question creation page\n */\n if (isset($_GET['performence_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"\" . $_GET['student_name'] . \"'s Performence\",\n // menu title\n \"\" . $_GET['student_name'] . \"'s Performence\",\n // capability\n 'individual_performence',\n // menu slug\n 'individual_performence',\n // callback function\n function () {\n new \\OE\\includes\\html\\Individual_Performence;\n },\n );\n }\n\n /**\n * renaming online exam menu\n */\n\n $this->admin_menu_rename();\n }",
"public function executeCreateAdmin() {\n do {\n if (!empty($email_input)) {\n echo \"That is not a valid email.\\n\";\n }\n $email_input = $this->readline('Email: ');\n } while (!$email = Scrub::email($email_input));\n\n do {\n $password = $this->readline('Password: ');\n } while (strlen($password) < 6);\n\n $res = UserModel::create($email, $password);\n if ($res['success']) {\n $user = ClientUser::getInstance(); \n $user->setType(UserModel::TYPE_ADMIN);\n } else {\n echo \"Failed to create user.\\n\";\n }\n }",
"public function createProfile($admin = false);",
"public function AutomaticCreateBasedAdmin(){\n $resp = employees::find(1);\n if(!$resp){\n employees::create([\n 'emp_name'=>'admin',\n 'emp_password'=>'test',\n 'emp_address'=>'abc',\n 'emp_phone'=>'0000000000',\n 'emp_dob'=> new DateTime(),\n 'pos_id'=>1,\n ]);\n }else{\n $resp->pos_id = 1;\n $resp->save();\n }\n }",
"public function addAdmin()\n {\n return view('backend.pages.admin.add-admin');\n }",
"public function admin_create(){\n\n // insert query\n $query = \"INSERT INTO \" . $this->table_name . \"\n SET\n username = :username,\n uid = :uid,\n password = :password\n \";\n\n // prepare the query\n $stmt = $this->conn->prepare($query);\n\n // sanitize\n $this->adminusername=htmlspecialchars(strip_tags($this->adminusername));\n $this->uid=htmlspecialchars(strip_tags($this->uid));\n $this->adminpassword=htmlspecialchars(strip_tags($this->adminpassword));\n\n // bind the values\n $stmt->bindParam(':username', $this->adminusername);\n $stmt->bindParam(':uid', $this->uid);\n\n // hash the password before saving to database\n $password_hash = password_hash($this->adminpassword, PASSWORD_BCRYPT);\n $stmt->bindParam(':password', $password_hash);\n\n // execute the query, also check if query was successful\n if($stmt->execute()){\n return true;\n }\n\n return false;\n }",
"public function isAdmin() {}",
"public function init()\n {\n new Admin(); // Admin class\n }",
"public function create()\n {\n return view('adminup');\n }",
"public function InitializeAdmin()\n\t{\n\t\t//$this->CreateParameter('notification', '', $this->Lang('help_param_notification'));\t\n\t\t//$this->CreateParameter('var_*', '', $this->Lang('help_param_var_'));\t\n\t}",
"public function create()\n\t{\n\t\t$this->load->view('admin/header');\n\t\t$this->load->view('admin/create');\n\t\t\n\t}",
"public function isAdmin();",
"public function admin() {\n // Check the arguments\n $args = func_get_args();\n\n if (count($args) == 1) {\n if ($this->isPHPScript($args[0])) {\n $this->_adminPanel = array('script' => $args[0]);\n } else {\n $this->_adminPanel = $args[0];\n }\n } elseif (count($args) == 2) {\n // @TODO\n }\n // Implemented by extended classes\n }",
"public function makeAdminToLogin()\n {\n return factory(User::class)->create([\n 'role' => User::ROLE_ADMIN\n ]);\n }",
"public function add_admin() {\n $current_pages = array();\n\n $permission = 'manage_options';\n if (defined('SWPM_MANAGEMENT_PERMISSION')){\n $permission = SWPM_MANAGEMENT_PERMISSION;\n }\n \n $current_pages['swpm'] = add_submenu_page('simple_wp_membership', __('Form Builder', 'simple-membership'), __('Form Builder', 'simple-membership'), $permission, 'swpm-form-builder', array(&$this, 'admin'));\n // All plugin page load hooks\n foreach ($current_pages as $key => $page) {\n // Load the jQuery and CSS we need if we're on our plugin page\n add_action(\"load-$page\", array(&$this, 'admin_scripts'));\n\n // Load the Help tab on all pages\n add_action(\"load-$page\", array(&$this, 'help'));\n }\n // Save pages array for filter/action use throughout plugin\n $this->_admin_pages = $current_pages;\n\n // Adds a Screen Options tab to the Entries screen\n add_action('load-' . $current_pages['swpm'], array(&$this, 'screen_options'));\n\n // Add meta boxes to the form builder admin page\n add_action('load-' . $current_pages['swpm'], array(&$this, 'add_meta_boxes'));\n\n add_action('load-' . $current_pages['swpm'], array(&$this, 'include_forms_list'));\n }",
"public function actionCreate()\n {\n $model = new Admin();\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 }",
"public function run()\n {\n $admins = [\n\t\t [\n\t\t\t 'name' \t\t => 'john',\n\t\t\t 'email' \t => '[email protected]',\n\t\t\t 'password' \t => bcrypt('123456789'),\n\t\t\t // 'type' \t \t => 1,\n\t\t\t 'active' \t => 1,\n\t\t\t // 'level' \t => 1,\n\t\t\t 'created_at' => \\Carbon\\Carbon::now(),\n\t\t\t 'updated_at' => \\Carbon\\Carbon::now(),\n\t\t\t],\n\t\t\t[\n\t\t\t 'name' \t\t => 'tAken',\n\t\t\t 'email' \t => '[email protected]',\n\t\t\t 'password' \t => bcrypt('abcd#1234'),\n\t\t\t // 'type' \t \t => 1,\n\t\t\t 'active' \t => 1,\n\t\t\t // 'level' \t => 1,\n\t\t\t 'created_at' => \\Carbon\\Carbon::now(),\n\t\t\t 'updated_at' => \\Carbon\\Carbon::now(),\n\t\t\t],\n\t\t\t[\n\t\t\t 'name' \t\t => 'Admin',\n\t\t\t 'email' \t => '[email protected]',\n\t\t\t 'password' \t => bcrypt('@Admin!23#'),\n\t\t\t // 'type' \t \t => 2,\n\t\t\t 'active' \t => 1,\n\t\t\t // 'level' \t => 2,\n\t\t\t 'created_at' => \\Carbon\\Carbon::now(),\n\t\t\t 'updated_at' => \\Carbon\\Carbon::now(),\n\t\t\t]\n\t\t];\n\n\t\t// factory( Admin::class )\n\t\t// \t->create()\n\t\t// \t->withRole( $this->command->choice(\n\t\t// \t\t'What role is the user?', [\n\t\t// \t\t\t'employee',\n\t\t// \t\t\t'manager',\n\t\t// \t\t\t'admin',\n\t\t// \t\t]));\n\n\t\tDB::table('admins')->truncate();\n\t DB::table('admins')->insert( $admins );\n }",
"public function addAdmin()\n {\n return view('super_admin/addAdmin');\n }",
"public function add_admin() {\n\t\t$current_pages = array();\n\n\t\t$current_pages[ 'vfb-pro' ] = add_menu_page( __( 'Visual Form Builder Pro', 'visual-form-builder-pro' ), __( 'Visual Form Builder Pro', 'visual-form-builder-pro' ), 'vfb_edit_forms', 'visual-form-builder-pro', array( &$this, 'admin' ), plugins_url( 'visual-form-builder-pro/images/vfb_icon.png' ) );\n\n\t\tadd_submenu_page( 'visual-form-builder-pro', __( 'Visual Form Builder Pro', 'visual-form-builder-pro' ), __( 'All Forms', 'visual-form-builder-pro' ), 'vfb_edit_forms', 'visual-form-builder-pro', array( &$this, 'admin' ) );\n\n\t\t$current_pages[ 'vfb-add-new' ] = add_submenu_page( 'visual-form-builder-pro', __( 'Add New Form', 'visual-form-builder-pro' ), __( 'Add New', 'visual-form-builder-pro' ), 'vfb_create_forms', 'vfb-add-new', array( &$this, 'admin_add_new' ) );\n\t\t$current_pages[ 'vfb-entries' ] = add_submenu_page( 'visual-form-builder-pro', __( 'Entries', 'visual-form-builder-pro' ), __( 'Entries', 'visual-form-builder-pro' ), 'vfb_view_entries', 'vfb-entries', array( &$this, 'admin_entries' ) );\n\t\t$current_pages[ 'vfb-email-design' ] = add_submenu_page( 'visual-form-builder-pro', __( 'Email Design', 'visual-form-builder-pro' ), __( 'Email Design', 'visual-form-builder-pro' ), 'vfb_edit_email_design', 'vfb-email-design', array( &$this, 'admin_email_design' ) );\n\t\t$current_pages[ 'vfb-analytics' ] = add_submenu_page( 'visual-form-builder-pro', __( 'Analytics', 'visual-form-builder-pro' ), __( 'Analytics', 'visual-form-builder-pro' ), 'vfb_view_analytics', 'vfb-reports', array( &$this, 'admin_analytics' ) );\n\t\t$current_pages[ 'vfb-import' ] = add_submenu_page( 'visual-form-builder-pro', __( 'Import', 'visual-form-builder-pro' ), __( 'Import', 'visual-form-builder-pro' ), 'vfb_import_forms', 'vfb-import', array( &$this, 'admin_import' ) );\n\t\t$current_pages[ 'vfb-export' ] = add_submenu_page( 'visual-form-builder-pro', __( 'Export', 'visual-form-builder-pro' ), __( 'Export', 'visual-form-builder-pro' ), 'vfb_export_forms', 'vfb-export', array( &$this, 'admin_export' ) );\n\t\t$current_pages[ 'vfb-settings' ] = add_submenu_page( 'visual-form-builder-pro', __( 'Settings', 'visual-form-builder-pro' ), __( 'Settings', 'visual-form-builder-pro' ), 'vfb_edit_settings', 'vfb-settings', array( &$this, 'admin_settings' ) );\n\n\t\t// All plugin page load hooks\n\t\tforeach ( $current_pages as $key => $page ) :\n\t\t\t// Load the jQuery and CSS we need if we're on our plugin page\n\t\t\tadd_action( \"load-$page\", array( &$this, 'admin_scripts' ) );\n\n\t\t\t// Load the Help tab on all pages\n\t\t\tadd_action( \"load-$page\", array( &$this, 'help' ) );\n\t\tendforeach;\n\n\t\t// Save pages array for filter/action use throughout plugin\n\t\t$this->_admin_pages = $current_pages;\n\n\t\t// Adds a Screen Options tab to the Entries screen\n\t\tadd_action( 'load-' . $current_pages['vfb-pro'], array( &$this, 'screen_options' ) );\n\t\tadd_action( 'load-' . $current_pages['vfb-entries'], array( &$this, 'screen_options' ) );\n\n\t\t// Add an Advanced Properties section to the Screen Options tab\n\t\tadd_filter( 'manage_' . $current_pages['vfb-pro'] . '_columns', array( &$this, 'screen_advanced_options' ) );\n\n\t\t// Add meta boxes to the form builder admin page\n\t\tadd_action( 'load-' . $current_pages['vfb-pro'], array( &$this, 'add_meta_boxes' ) );\n\n\t\t// Include Entries and Import files\n\t\tadd_action( 'load-' . $current_pages['vfb-entries'], array( &$this, 'include_entries' ) );\n\t\tadd_action( 'load-' . $current_pages['vfb-import'], array( &$this, 'include_import_export' ) );\n\n\t\tadd_action( 'load-' . $current_pages['vfb-pro'], array( &$this, 'include_forms_list' ) );\n\t}",
"public function create()\n {\n // Si no tiene permisos para ver el listado lo echa.\n if (!auth()->user()->can('admin-alumnos-create')) {\n app()->abort(403);\n }\n\n $page_title = trans('elearning::alumnos/admin_lang.crear');\n\n $user = new User();\n $form_data = array(\n 'route' => array(\n 'admin.alumnos.store'\n ),\n 'method' => 'POST',\n 'id' => 'formData',\n 'class' => 'form-horizontal'\n );\n\n $grupos = $this->getGruposAuthUser();\n\n return view(\"elearning::alumnos.admin_edit\", compact(\n 'user',\n 'page_title',\n 'form_data',\n 'grupos'\n ))\n ->with('page_title_icon', $this->page_title_icon);\n }",
"public function create() {\r\n return View::make('admin.create');\r\n }",
"public function create()\n {\n return view('dashboard.admin.create');\n }",
"public function admin_page_create()\n {\n return view('admin.pages_admin.create');\n\n }",
"public function makeAdministrator()\n {\n $this->setRole('administrator');\n }"
] | [
"0.78549904",
"0.7405493",
"0.7388305",
"0.73112094",
"0.72657555",
"0.724836",
"0.715881",
"0.71535945",
"0.7128706",
"0.71226573",
"0.7118343",
"0.7103507",
"0.7055254",
"0.69761145",
"0.6972664",
"0.6945862",
"0.6945436",
"0.69357914",
"0.6931777",
"0.6929127",
"0.69271994",
"0.69089514",
"0.6892515",
"0.6864071",
"0.6849345",
"0.68474424",
"0.6838704",
"0.683841",
"0.68323326",
"0.68271124",
"0.6827019",
"0.6826312",
"0.6826312",
"0.68234384",
"0.6802505",
"0.6769859",
"0.6763775",
"0.6756941",
"0.6756941",
"0.67556804",
"0.6738472",
"0.67069876",
"0.670601",
"0.6695739",
"0.66926277",
"0.6679144",
"0.6678523",
"0.66704696",
"0.66642994",
"0.6657208",
"0.66500264",
"0.66373163",
"0.66299117",
"0.6623354",
"0.6621946",
"0.6616704",
"0.66147566",
"0.660446",
"0.6604034",
"0.65836346",
"0.6572356",
"0.65586877",
"0.65579844",
"0.6555623",
"0.65534633",
"0.65491337",
"0.652766",
"0.6518112",
"0.6510516",
"0.65022296",
"0.64974797",
"0.6495525",
"0.6484471",
"0.6481635",
"0.6479112",
"0.6476819",
"0.64671814",
"0.6465634",
"0.64652354",
"0.6460368",
"0.6445003",
"0.6442386",
"0.64358985",
"0.64317775",
"0.64271533",
"0.64252037",
"0.64248246",
"0.64216954",
"0.6418901",
"0.641723",
"0.64169693",
"0.64140075",
"0.641187",
"0.64103234",
"0.6409826",
"0.6403971",
"0.6395268",
"0.63939023",
"0.63924694",
"0.63881683",
"0.6387993"
] | 0.0 | -1 |
Function to update admin variable $id | public function update_admin($data, $id=null){
//$username = $this->session->userdata('admin_username');
if($id != '' && $id != null){
$this->db->where('id', $id);
}
$query = $this->db->update($this->table, $data);
if ($query){
return true;
}else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function update($id){\n\t\t//\n\t}",
"public function update($id){\n\t\t//\n\t}",
"public function update($id) {\r\n //\r\n }",
"public function update($id)\r\n {\r\n //\r\n }",
"public function update($id){\n //\n }",
"public function update($id)\n\t{\n\t\t\n\t}",
"public function update($id)\n\t{\n\t\t\n\t}",
"public function update($id) {\n\t\t//\n\t}",
"public function update($id) {\n\t\t//\n\t}",
"public function update($id) {\n\t\t//\n\t}",
"public function update($id) {\n\t\t//\n\t}",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id) {\n //\n }",
"public function update($id)\n\t{\n\t\techo 'update edited gaan';\n\t}",
"public function update($id) {\n \n }",
"public function update($id) {\n \n }",
"public function update($id) {\n //\n }",
"public function update($id) //Ändra befintlig boking\n\t{\n\t\t//\n\t}",
"public function update($id)\n {\n \n }",
"public function update( $id)\n\t{\n\n\t}",
"public function update($id)\n\t {\n\t //\n\t }",
"public function update($id);",
"public function update($id);",
"public function update($id)\n {\n \n }",
"public function update($id) {\n }",
"public function update($id) {\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n\t{\n\n\t}",
"public function update($id)\n\t{\n\n\t}",
"public function update($id)\n\t{\n\n\t}",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }",
"public function update($id)\n {\n //\n }"
] | [
"0.73550826",
"0.73550826",
"0.7258861",
"0.7163682",
"0.7156427",
"0.7153691",
"0.7153691",
"0.71527755",
"0.71527755",
"0.71527755",
"0.71527755",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.7144639",
"0.71410596",
"0.7136802",
"0.7136802",
"0.7120759",
"0.7120253",
"0.71023726",
"0.7096031",
"0.70919675",
"0.70800304",
"0.70800304",
"0.7072954",
"0.7072753",
"0.7072753",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.7072626",
"0.70541507",
"0.70409226",
"0.70409226",
"0.70409226",
"0.7038005",
"0.7038005",
"0.7038005"
] | 0.0 | -1 |
Function to update admin variable $username | public function update_user($data, $username = ''){
//$username = $this->session->userdata('admin_username');
if($username != '' && $username != null){
$this->db->where('admin_username', $username);
}
$query = $this->db->update($this->table, $data);
if ($query){
return true;
}else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function editUsername($uname)\n\t{\n\t\tglobal $username;\n\t\tglobal $user_id;\n\t\n\t\t$uname = addslashes($uname);\n\t\n\t\tif(strlen($uname) <= 32)\n\t\t{\n\t\t\t$qry = 'UPDATE admin_table SET username = \"' . $uname;\n\t\t\t$result = mysql_query($qry, $GLOBALS['connection']);\n\t\t}\n\t\n\t\t$username = $uname;\n\t}",
"public function updateUsername()\n {\n $user = User::find(Database::connection(), $_SESSION['id']);\n\n // Update Username\n return $user->updateUsername(Database::connection(), $_POST['username']);\n }",
"public function updateAdmin($username, $email)\n{\n // 'sudo_username' => $username\n // ));\n\n $sql = \"UPDATE commanders SET commander_accessName = '$username' WHERE commander_email = '$email' \";\n $this->_db->query($sql);\n return true;\n}",
"function change_username(){\n\t\t$result=$this->ObjM->all_user_cng_user();\n\t\t\tfor($i=0;$i<count($result);$i++)\n\t\t\t{\n\t\t\t\t$data['username']=$result[$i]['phone_no'];\n\t\t\t\t$this->ObjM->update($data,'user_master',array('user_type_id'=>'3','status'=>'Active','usercode'=>$result[$i]['usercode']));\n\t\t\t\t//echo $this->db->last_query();\n\t\t\t\t//exit;\n\t\t\t}\n\t\t\n\t}",
"function adminUpdateUserPassword()\n {\n \t# retrieve username passed in from GET Superglobal\n \tif(isset($_GET['userName']))\n\t{\n\t\t$userName=filter_input(INPUT_GET,'userName',FILTER_SANITIZE_STRING);\n\t}\n\t\n\t# submit update and check if was success\n \t$success=updatePassWord($userName);\n\t\n\techo 'Successful='.$success;\n }",
"function updateDataadmin($id_admin, $username, $password) {\n $query = \"UPDATE admin SET username ='$username', password='$password' WHERE id_admin='$id_admin'\";\n mysql_query($query);\n echo \"<p>Data admin sudah di update.</p>\";\n }",
"function setUsername($s)\n\t{\n\t\t$this->Info['Username'] = $s;\n\t\tupdateTableByUser('Developer', 'Username', $s, $this->Username);\n\t}",
"function setUsername($Username);",
"function set_comusername($new_username)\n {\n $this->username = $new_username;\n }",
"public function setUsername($value)\r\n\t{\r\n\t\t$this->username = $value;\r\n\t}",
"public function setUsername($u_username) {\n\n $this->u_username = $u_username;\n\n }",
"function set_admin($modified_username, $admin_status, $caller_username) {\n\tif ($modified_username == $caller_username) {\n\t\thttp_response_code(400);\n\t\techo \"Cannot change own admin status\";\n\t\texit();\n\t}\n\t$db = get_db();\n\t$stmt = $db->prepare(\"CALL set_user_admin(?, ?)\");\n\t$stmt->bind_param(\"ss\", $modified_username, $admin_status);\n\t$stmt->execute() or trigger_error($db->error);\n\t$db->close();\n}",
"public function setUsername($value)\n {\n $this->_username = $value;\n }",
"public function change_username($new_username) {\n $this->user->username = $new_username;\n $this->user->update();\n\n $this->impersonate($this->id);\n }",
"function forum_user_change($new_username) {\n\t global $vbulletin;\n\n\t // LOG USER OUT\n\t $this->forum_logout();\n\n\n\t $vb_username = $new_username;\n\n\t $vbulletin->db->query_write(\"UPDATE \" . TABLE_PREFIX . \"user SET username='$vb_username' WHERE userid='\".$this->forum_user[userid].\"'\");\n\n\t // RESET USER INFO\n\t $this->user_info[user_username] = $new_username;\n\n\t // RETRIEVE INFORMATION\n\t $this->forum_user_check();\n\n\t // LOG USER BACK IN\n\t $this->forum_login(1);\n\n\t}",
"public function setUsername( $username ) \n {\n $this->_username = $username;\n }",
"function user_set_name($user_id, $new_username)\n{\n\tif(strcmp($new_username,user_get_name($user_id)))\n\t{\n\t\t//check that no other user has it\n\t\tif(!user_name_exists($new_username))\n\t\t{\n\t\t\t//set it\n\t\t\t$sql=\"UPDATE \".PREFIX.\"user SET username='\".sql_safe($new_username).\"' WHERE id=\".sql_safe($user_id).\";\";\n\t\t\tif(mysql_query($sql))\n\t\t\t\tadd_message(\"New user name set\");\n\t\t\telse\n\t\t\t\tadd_error(\"User name could not be set: \".mysql_error());\n\t\t}\n\t\telse\n\t\t\tadd_error(\"User name '$new_username' is already in use.\");\n\t}\n}",
"public function testUpdateUser()\n {\n }",
"public function setAdmin($admin) {\n \n if($admin == 1) { $this->username = 1; }\n \n else { $this->username = 0; }\n }",
"public function setUsername($username)\n\t{\n\t\t$this->username = $username;\n\t}",
"public function setUsername($username)\n\t{\n\t\t$this->username = $username;\n\t}",
"public static function setUsername(string $newUsername): void\n {\n self::writeConfiguration(['username' => $newUsername]);\n }",
"public function username($username) {\n $this->username = $username;\n }",
"function setUserAdmin( $value )\n {\n $this->UserAdmin = $value;\n }",
"public function setUsername($l) {\n $this->_username = $l;\n }",
"public function setUserName($value) { $this->setState('__username',$value); }",
"function update_username($args) {\n //check input to make sure everything is set.\n if (!isset($args['uid']) || !$args['uid'])\n throw new Zim_Exception_UIDNotSet();\n if (!isset($args['uname']) || empty($args['uname']) || trim($args['uname']) == '') {\n $args['uname'] = UserUtil::getVar('uname', $args['uid']);\n } \n $args['uname'] = trim($args['uname']);\n $q = Doctrine_Query::create()\n ->update('Zim_Model_User')\n ->set('uname', \"?\", $args['uname'])\n ->where('uid = ?', $args['uid']);\n $result = $q->execute();\n \n $q = Doctrine_Query::create()\n ->from('Zim_Model_User user')\n ->where('user.uid = ?', $args['uid'])\n ->limit(1);\n $contact = $q->fetchOne();\n $contact = $contact->get('uname');\n \n if (!isset($result) || $result == 0) {\n if ($contact != $args['uname']) {\n throw new Zim_Exception_UsernameCouldNotBeUpdated();\n }\n }\n\n //return the users uname\n return $contact;\n }",
"protected function update_username($username,$not_strict = false) : bool\n {\n\n\n if(empty($username))\n\n return $not_strict;\n\n\n $username = constraint::htmlspecialchars($username)[0];\n\n\n $username_exist = $this->isUsernameExist($username);\n\n\n if($username_exist)\n\n return false;\n\n\n $this->update_info([\"user_url\" => $username]);\n\n\n /** @var password , set_session_key() update sessions */\n\n $this->username = $username;\n $this->set_session_key();\n\n\n return true;\n\n\n\n }",
"public static function setUsername(string $username): void {\r\n self::$username = $username;\r\n }",
"public function setUsername($username)\n {\n $this->username = $username;\n }",
"public function setUsername($username)\n {\n $this->username = $username;\n }",
"public function setUsername($username)\n {\n $this->username = $username;\n }",
"public function setUsername($username) {\n $this->username = $username;\n }",
"public function setUsername($username) {\n $this->username = $username;\n }",
"public function updateUserOptions($username) {\r\n\t\t$userOptionsTemplate = file_get_contents ( \"templates/pages/user_options_template.php\", FILE_USE_INCLUDE_PATH );\r\n\t\t$this->userOptions = str_replace ( \"{{ username }}\", $username, $userOptionsTemplate );\r\n\t}",
"function updateUser()\n{\n return 'Updating user';\n}",
"function updateUserField($username, $field, $value){\n\t\t$q = \"UPDATE \".TBL_USERS.\" SET \".$field.\" = '$value' WHERE username = '$username'\";\n\t\treturn mysql_query($q, $this->connection);\n\t}",
"function setUserName($userName);",
"public function setUsername(string $username)\n {\n $this->username = $username;\n }",
"public function setUsername($newUsername) {\n\t\t$this->netxUsername = $newUsername;\n\t}",
"function updateUserField($username, $field, $value){\r\n\t $query = \"UPDATE \".TBL_USERS.\" SET \".$field.\" = :value WHERE username = :username\";\r\n\t $stmt = $this->connection->prepare($query);\r\n\t return $stmt->execute(array(':username' => $username, ':value' => $value));\r\n }",
"public function update_admin($id,$username, $password){\n $sqladmin_u= \"update admin set name='$username',password='$password' where admin_id='$id'\";\n $resultadmin_u= mysqli_query($this->db,$sqladmin_u);\n return $resultadmin_u;\n }",
"public static function setUsername($val) \n { \n emailSettings::$username = $val; \n }",
"function setUserName($newVal)\r\n\t{\r\n\t\t$this->UserName = $newVal;\r\n\t}",
"public function getUsername()\r\n\t{\r\n\t\treturn $this->admin['user'];\r\n\t}",
"function setAPIUsername($username)\n {\n $this->_username = $username;\n }",
"function editusername()\n {\n // Auth::handleLogin() makes sure that only logged in users can use this action/method and see that page\n Auth::handleLogin();\n $this->view->render('login/editusername');\n }",
"public function setUsername($username)\n {\n $this->username = trim($username);\n }",
"function modify_value($username, $key, $value)\n\t{\n\t\t//Admin login\n\t\t$dn=\"cn=\".$this->admin_username.\",\".$this->ldapconfig['basedn'];\n\t\t$bind=ldap_bind($this->ldap_link, $dn, $this->admin_password);\n\n\t\t//User to change\n\t\t$dn=\"cn=\".$username.\",\".$this->ldapconfig['usersdn'].\",\".$this->ldapconfig['basedn'];\n\t\t//Value to change\n\t\t$le = array($key => array($value));\n\t\t//Change the value\n\t\t$result = ldap_modify($this->ldap_link, $dn, $le);\n\t}",
"public function setUsername(TechDivision_Lang_String $username)\n {\n \t$this->_username = $username;\n }",
"public function updateUsername($user){\n\t\tUser::where('id', $this->id)\n\t\t\t->update([\n\t\t\t\t'name' => $user['username'],\n\t\t\t\t'updated_by' => $user['username']\n\t\t]);\n\t}",
"function update_Admin($UserName, $passwd, $Name, $Addr, $Email, $Admin) {\r\n// the database to new details in arguments\r\n\r\n $conn = db_connect();\r\n\r\n $query = \"update Users2\r\n set UserName= '\".$UserName.\"',\r\n Password = sha1('\".$passwd.\"'),\r\n Name = '\".$Name.\"',\r\n Addr = '\".$Addr.\"',\r\n Email = '\".$Email.\"'\r\n IsAdmin = FALSE\r\n where UserName = '\".$UserName.\"'\";\r\n \r\n \r\n \r\n\r\n\r\n $result = @$conn->query($query);\r\n if (!$result) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n}",
"public function update_userdetails_by_admin($data)\n {\n foreach($data as $key=>$val) $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n \n $query = new Query;\n\n $result = $query->createCommand()->update('core_users', ['user_name' => $name,'company_name' => $company_name,'company_address' => $address,'designation' => $designation,'company_email' => $company_email], 'user_id = \"'.$userid.'\"')->execute();\n\n if ($result == 1){\n return \"SUCCESS\";\n }else{\n return \"FAILED\";\n }\n }",
"public function setUsername( $sName ) {\n\t\t$this->sUsername = $sName;\n\t}",
"public function setUsername(?string $username): void;",
"public function setUsername($username)\n {\n $this->_config->set('username', $username);\n }",
"public function update_info()\n\t{\n\t\t$this->load->model('admin_user_model', 'admin_users');\n\t\t$updated = $this->admin_users->update_info($this->mUser->id, $this->input->post());\n\n\t\tif ($updated)\n\t\t{\n\t\t\tset_alert('success', 'Successfully updated account info.');\n\t\t\t$this->mUser->full_name = $this->input->post('full_name');\n\t\t\t$this->session->set_userdata('admin_user', $this->mUser);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tset_alert('danger', 'Failed to update info.');\n\t\t}\n\n\t\tredirect('admin/account');\n\t}",
"function modify_user($username, $password, $team, $level, $status, $msj) {\n\n $Fecha = date(\"Y-m-d\");\n\n\n // If $password is blank, make no changes to the current password\n\n if (trim($password == '')) {\n\n $qUpdate = \"UPDATE authuser SET team='$team', level='$level', status='$status',feclave='$Fecha',msj='$msj' WHERE uname='$username'\";\n } else {\n\n $qUpdate = \"UPDATE authuser SET passwd=MD5('$password'), team='$team', level='$level',\n status='$status',feclave='$Fecha',msj='$msj'\n\t\t\t\t\t WHERE uname='$username'\";\n }\n\n\n\n if (trim($level) == \"\") {\n\n return \"blank level\";\n } elseif (($username == \"sa\" AND $status == \"inactive\")) {\n\n return \"sa cannot be inactivated\";\n } elseif (($username == \"admin\" AND $status == \"inactive\")) {\n\n return \"admin cannot be inactivated\";\n } else {\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\n $SelectedDB = mysql_select_db($this->DBNAME);\n\n $result = mysql_query($qUpdate);\n\n return 1;\n }\n }",
"public function setUsername($value) {\n\t\tif(!check($value)) throw new Exception(lang('error_91'));\n\t\tif(!Validator::AccountUsername($value)) throw new Exception(lang('error_91'));\n\t\t\n\t\t$this->_username = $value;\n\t}",
"public function validate_username_update($errors, $update, $user)\n {\n if (property_exists($user, 'ID')){\n $user_id = $user->ID;\n $old_user_login = $user->user_login;\n $new_user_login = $old_user_login;\n if (isset($_POST['user_login'])) {\n $new_user_login = trim( sanitize_text_field($_POST['user_login']) );\n }\n\n\n\n //we need to validate annother user doesn't exist with the same name\n if ($new_user_login !== $old_user_login) {\n $another_user_has_user_login = username_exists($new_user_login);\n if ($another_user_has_user_login) {\n $errors->add('user_login', '<strong>ERROR</strong>: You can\\'t change your username to ' . $new_user_login . ', another user is using that username.');\n return;\n }\n\n\n\n if (is_plugin_active('appthemes-xero-invoices/appthemes-xero-invoices.php')) {\n $xero_contact_exists = AXI_User_Validation::check_if_xero_contact_exists($new_user_login);\n //check if there is Xero Contact with the desired name\n if ($xero_contact_exists) {\n $message = '<strong>ERROR</strong>: You can\\'t change your username to ' . $new_user_login . ', another user is using that username.';\n if(current_user_can( 'manage_options' )){\n $message = '<strong>ERROR</strong>: You can\\'t change this user\\'s username to <strong>' . $new_user_login . '</strong>, there is an existing Xero Contact using that name.';\n }\n $errors->add('user_login', $message);\n return;\n }\n }\n\n // //now update the username\n global $wpdb;\n $update1 = $wpdb->prepare(\"UPDATE $wpdb->users SET user_login = %s WHERE user_login = %s\", $new_user_login, $old_user_login);\n\n if ($wpdb->query($update1) !== false) {\n // Update user_nicename.\n $update2 = $wpdb->prepare(\"UPDATE $wpdb->users SET user_nicename = %s WHERE user_login = %s AND user_nicename = %s\", $new_user_login, $new_user_login, $old_user_login); // phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables\n $wpdb->query(\n $update2\n );\n\n // Update display_name.\n $update3 = $wpdb->prepare(\"UPDATE $wpdb->users SET display_name = %s WHERE user_login = %s AND display_name = %s\", $new_user_login, $new_user_login, $old_user_login); // phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables\n $wpdb->query(\n $update3\n );\n\n // If the user is a Super Admin, update their permissions.\n if (is_multisite() && is_super_admin($user_id)) {\n grant_super_admin($user_id);\n }\n }\n\n //we may also need to update the contact name in Xero\n if (is_plugin_active('appthemes-xero-invoices/appthemes-xero-invoices.php')) {\n $xero_contact_update = AXI_User_Validation::update_contact_name($user_id, $new_user_login);\n }\n\n }\n }\n }",
"public function edit_profile($username, $data) {\n\t\t$this->db->where('username', $username)\n\t\t\t\t ->update('user', $data);\n\t}",
"function gratis_preprocess_username(&$vars) {\n // Update the username so it's the full name of the user.\n $account = $vars['account'];\n\n // Revise the name trimming done in template_preprocess_username.\n $name = $vars['name_raw'] = format_username($account);\n\n // Trim the altered name as core does, but with a higher character limit.\n if (drupal_strlen($name) > 35) {\n $name = drupal_substr($name, 0, 18) . '...';\n }\n\n // Assign the altered name to $vars['name'].\n $vars['name'] = check_plain($name);\n}",
"public function updateUserName($username, $name) {\n $stmt = $this->db->prepare(\"update user set name = :uname where username = :username and is_active = 1;\");\n $stmt->bindValue(\"uname\", $name, PDO::PARAM_STR);\n $stmt->bindValue(\"username\", $username, PDO::PARAM_STR);\n $stmt->execute();\n }",
"protected function lookupUsername() {\n\t\tif (!isset($_POST['username'])) {\n\t\t\techo \"<p class=\\\"error\\\">Missing username</p>\\n\";\n\t\t\texit;\n\t\t}\n\t\t$this->username = $_POST['username'];\n\t}",
"function addAdmin($username, $raw_password, $email, $phone) {\n // TODO\n }",
"public function update_user($username,$datam)\n\t{\n\t\t$this->db->where('username', $username);\n\t\t$this->db->update('ag_users', $datam);\n\t\n\t}",
"function update_User($UserName, $passwd, $Name, $Addr, $Email, $Admin, $Where) {\r\n// the database to new details in arguments\r\n $conn = db_connect();\r\n $test2 = $_SESSION['UserName'];\r\n\r\n $query = \"update Users2\r\n set UserName= '\".$UserName.\"',\r\n Password = sha1('\".$passwd.\"'),\r\n Name = '\".$Name.\"',\r\n Addr = '\".$Addr.\"',\r\n Email = '\".$Email.\"',\r\n IsAdmin = '$Admin'\r\n where UserName = '\".$Where.\"'\";\r\n\r\n $result = @$conn->query($query);\r\n if (!$result) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n}",
"public function setUsername($value)\n {\n return $this->set(self::_USERNAME, $value);\n }",
"public static function setUser($username) \n {\n $_SESSION['username'] = $username;\n }",
"function getUsername(){\r\n return $this->username;\r\n }",
"public function setUsernameAttribute($username)\n {\n $this->attributes['username'] = encrypt($username);\n }",
"function wp_ajax_save_wporg_username()\n {\n }",
"public function edit($username)\n {\n //\n }",
"public function update($username)\n\t{\n\n\t\t$user = User::where('username', '=', $username)->first();\n\n\t\tif (Auth::user()->getId() == $user->id) {\n\n\t\t\t$rules = array(\n\t\t\t\t'name' => 'required|min:3|regex:/^[a-zA-Z][a-zA-Z ]*$/'\n\t\t\t);\n\n\t\t\t$validator = Validator::make(Request::all(), $rules);\n\n\t\t\tif ($validator->fails()) {\n\n\t\t\t\treturn Redirect::back()\n\t\t\t\t\t->withErrors($validator)\n\t\t\t\t\t->withInput();\n\n\t\t\t} else {\n\n\t\t\t\t$user->name = Request::get('name');\n\n\t\t\t\t$user->save();\n\n\t\t\t\t// Redirect\n\t\t\t\tSession::flash('message', 'Successfully updated!');\n\t\t\t\treturn redirect(route('users.show', [$user->username]));\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSession::flash('info_message', 'You do not have that permission!');\n\t\t\treturn redirect(route('users.show', [$user->username]));\n\t\t}\n\t}",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }",
"public function setUsername($value)\n {\n return $this->set('Username', $value);\n }"
] | [
"0.76369697",
"0.7449481",
"0.73197865",
"0.708582",
"0.7068012",
"0.70519805",
"0.70148283",
"0.7004698",
"0.6977007",
"0.6920837",
"0.69190735",
"0.6892345",
"0.6891143",
"0.6863085",
"0.6830878",
"0.68100154",
"0.675706",
"0.670208",
"0.669079",
"0.6665201",
"0.6665201",
"0.6661426",
"0.6654577",
"0.6650551",
"0.66440386",
"0.66253513",
"0.66231436",
"0.6607561",
"0.6586615",
"0.6586037",
"0.6586037",
"0.6586037",
"0.65800864",
"0.65800864",
"0.65695834",
"0.6564285",
"0.65485907",
"0.6543839",
"0.6484374",
"0.64757234",
"0.6455149",
"0.6449769",
"0.6442208",
"0.6428857",
"0.64273304",
"0.64210784",
"0.6407239",
"0.6400437",
"0.6387652",
"0.63773084",
"0.63755935",
"0.63739765",
"0.63706064",
"0.6367928",
"0.63663703",
"0.6355674",
"0.6332686",
"0.63131726",
"0.63103974",
"0.62875545",
"0.62788755",
"0.62748235",
"0.62697166",
"0.62398475",
"0.6234221",
"0.6234169",
"0.61891115",
"0.6181552",
"0.6166495",
"0.6166152",
"0.61653066",
"0.6152733",
"0.61492616",
"0.61174685",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115653",
"0.6115316",
"0.61153096"
] | 0.6449392 | 42 |
Function to get admin user from the database | function get_user($username = ''){
if($username != '' && $username != null){
$this->db->where('admin_username', $username);
}
$q = $this->db->get($this->table);
if($q->num_rows() > 0){
// we will store the results in the form of class methods by using $q->result()
// if you want to store them as an array you can use $q->result_array()
foreach ($q->result() as $row)
{
$data[] = $row;
}
return $data;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getAdminUser()\n {\n return User::find(1);\n }",
"function getLoggedInAdminId(){\r\n $query = \"SELECT * FROM admins WHERE email='\" . getSessionUsername() . \"';\";\r\n $result = performSingleDbQueryGetRow($query);\r\n return $result['id'];\r\n}",
"public function getAdmin()\n {\n $database = new Database();\n $loggedIn = $database->getAdminByUsername($_SESSION['user']);\n $admin = new Admin($loggedIn['adminId'], $loggedIn['username'], $loggedIn['adminLevel'], $loggedIn['active']);\n if(isset($_SESSION['user']) === true) {\n $this->_f3->set('admin', $admin);\n }\n }",
"public function getAdminUser()\n {\n return $this->registry->registry('current_admin_user');\n }",
"public static function getAdmin(){\n $db = DBInit::getInstance();\n $funkcija = \"administrator\";\n $statement = $db->prepare(\"SELECT email FROM zaposleni WHERE funkcija = :funkcija\");\n $statement->bindParam(\":funkcija\", $funkcija);\n $statement->execute();\n\n return $statement->fetch();\n \n }",
"public function getAdmin() {\n $sql = \"SELECT *\n FROM {$this->tablename} p\n WHERE p.status='admin'\";\n return $this->db->query($sql)->single($this->entity);\n }",
"public function getAdminAttribute()\n {\n return User::whereId($this->accountId)->first();\n }",
"function getAdmin() {\n if (auth()->guard('staff')->check()) {\n // Check if the auth user is a staff => get the admin id\n $project_id = auth()->guard('staff')->user()->project_id;\n $project = App\\Models\\Project::where('id', $project_id)->first();\n // We already have a relationship between the User and the Project models\n $user = $project->user;\n } else {\n $user = auth()->user();\n }\n return $user;\n }",
"protected function getUser()\n {\n return $this->loadUser(array(\n 'user_name' => $this->context['admin'],\n ));\n }",
"function userAdmin( )\n {\n return $this->UserAdmin ;\n }",
"function admin_user_id()\n {\n return Admin::app()->auth()->id();\n }",
"public function adminUser(): ?AdminUser\n {\n return Auth::guard(config('kontour.guard'))->user();\n }",
"public function retreiveUser($adminID)\n {\n $sql = \"SELECT * FROM Admin WHERE adminID = :adminID\";\n\n $query = $this->db->prepare($sql);\n $query->execute(array(':adminID' => $adminID));\n\n if($results = $query->fetch()) {\n require_once 'application/domain_objects/admin.php';\n // die(var_dump(new admin($results)));\n return new admin($results);\n\n }\n // $admin;\n }",
"public static function get_admin_users(){\n \n global $db;\n \n $query = \"SELECT * FROM users \";\n $query .= \"WHERE user_role = 'admin'\";\n \n $result = User::makeQuery($query);\n \n return $result;\n }",
"public function getAdmin($id)\n {\n return $this->user->where('salon_id',$id)->first();\n }",
"protected function loginAsAdminUser(): ?User\n {\n Auth::loginUsingId('7');\n return $this->getPresentUser();\n }",
"function find_admin_by_username($admin_username) {\r\n\t\tglobal $db;\r\n\t\t\r\n\t\t$safe_admin_username = mysqli_real_escape_string($db, $admin_username);\r\n\t\t$query = \"SELECT * FROM admins \";\r\n\t\t$query .= \"WHERE username = '{$safe_admin_username}' \";\r\n\t\t$query .= \"LIMIT 1\";\r\n\t\t\r\n\t\t$admin_set = mysqli_query($db, $query);\r\n\t\tconfirm_query($admin_set);\r\n\t\t\r\n\t\tif($admin = mysqli_fetch_assoc($admin_set)) {\r\n\t\t\treturn $admin;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public function getAdminMember()\n {\n $bdd = $this->bdd;\n $query = \"SELECT * FROM member WHERE rights =:rights\";\n\n $req = $bdd->prepare($query);\n $req->bindValue('rights', \"1\" , PDO::PARAM_INT);\n $req->execute();\n $row= $req->fetch(PDO::FETCH_ASSOC);\n\n $user = new User();\n $user->setId($row['id']);\n $user->setPseudo($row['pseudo']);\n\n $user->setEmail($row['email']);\n $user->setRight($row['rights']);\n\n return $user;\n }",
"public function user()\n {\n return $this->app->auth->guard('admin')->user();\n }",
"public function getUserById($id)\n\t{\n\t\t$sql = 'SELECT * FROM admins WHERE id=:id';\n\t\t$query = $this->db->prepare($sql);\n\t\t$query->execute([':id' => $id]);\n\t\treturn $query->fetch(PDO::FETCH_OBJ);\n\t}",
"public static function getUser() {\n return self::$ADMIN_USER;\n }",
"public static function get_user_logged_in(){\n if(isset($_SESSION['admin'])){\n $admin_id = $_SESSION['admin'];\n // Pyydetään Admin-mallilta käyttäjä session mukaisella id:llä\n $admin = Admin::find($admin_id);\n\n return $admin;\n }\n\n // Käyttäjä ei ole kirjautunut sisään\n return null;\n }",
"function current_admin()\n {\n return admin_auth()->user();\n }",
"function admin_user(): ?Authenticatable\n {\n return Admin::app()->user();\n }",
"function get_admin()\n {\n return DB::table(\"admin_tbl\")->get();\n }",
"function retrieveAdmin($id) {\r\n\r\n\t\treturn ($this->query('SELECT `id`, `created`, `enabled`, `modified`, `username`, `password`, `first_name`, `middle_name`, \r\n\t\t\t\t\t\t\t `last_name`, `email`, `type`, `computer_id` FROM admins WHERE admins.id = '. $id .';'));\r\n\r\n\t}",
"public function getUser()\n {\n if ($this->_user === null) {\n $this->_user = Admin::findByUsernameOrEmail($this->username);\n }\n\n return $this->_user;\n }",
"function getAdminInfo($rso_id, $email, $db){\n\t$temp = $db->query(\"SELECT r.admin AS admin FROM rso_member_list AS r\n\t\tWHERE (r.rid) = '\" . $rso_id . \"'\n\t\t&& (r.email) = '\" . $email . \"'\");\n\t$rso_member = $temp->fetch_assoc();\n\treturn $rso_member;\n}",
"public function getAdministrator() {}",
"function getAdmin() {\n return mysqli_query($this->link, \"SELECT * from account where position = 0\");\n }",
"function find_admin_by_username($username) {\n\tglobal $connection;\n\t\n\t$safe_username = mysqli_real_escape_string($connection, $username);\n\t\n\t$query = \"SELECT * \";\n\t$query .= \"FROM admins \";\n\t$query .= \"WHERE username = '{$safe_username}' \";\n\t$query .= \"LIMIT 1\";\n\t$admin_set = mysqli_query($connection, $query);\n\tconfirm_query($admin_set);\n\tif($admin = mysqli_fetch_assoc($admin_set)) {\n\t\treturn $admin;\n\t} else {\n\t\treturn null;\n\t}\n}",
"public function getAdmin($id = false){\n \n $userId = $id;\n // admin or not\n $admin = 0;\n $user = DB::table('admins')->where('uid', $userId)->first();\n if (!empty($user)) {\n $admin = 1;\n }\n\n return $admin;\n }",
"function get_admin_info($username) {\n $result = db_fetch_row(\"SELECT * FROM `tbl_admin` WHERE `username` = '{$username}'\");\n return $result['fullname'];\n}",
"public static function adminUserId()\n {\n $getUserId = User::where('TenantId', Auth::user()->TenantId)->where('IsAdmin', 1)->first();\n return $getUserId->id;\n }",
"public function getAdminUser()\n {\n $user = array(\n 'username' => $this->getConfiguration()->getValue('testing.magento.admin.user'),\n 'password' => $this->getConfiguration()->getValue('testing.magento.admin.password')\n );\n\n if ($user['username'] == null) {\n $user['username'] = $this->defaultLogin['username'];\n }\n if ($user['password'] == null) {\n $user['password'] = $this->defaultLogin['password'];\n }\n return $user;\n }",
"public function getAdminUser()\n {\n $user = array(\n 'username' => $this->getConfiguration()->getValue('testing.magento.admin.user'),\n 'password' => $this->getConfiguration()->getValue('testing.magento.admin.password')\n );\n\n if ($user['username'] == null) {\n $user['username'] = $this->defaultLogin['username'];\n }\n if ($user['password'] == null) {\n $user['password'] = $this->defaultLogin['password'];\n }\n return $user;\n }",
"public function findById($id){\n $user = Admin::find($id);\n return $user;\n }",
"public function adminInfo($id){\n $info = DB::table('admins')->where('uid', $id)->first();\n return $info;\n }",
"function get_admin_user_id()\n{\n $CI =& get_instance();\n $admin = $CI->session->userdata('admin');\n if ($admin['admin_logged_in'] == false) {\n return false;\n }\n return $admin['id'];\n}",
"function getHouseholdAdmin(){\n\t\t$members = $this->getMembers();\n\t\tforeach ($members as $member) {\n\t\t\t$level = $member->getUserLevel();\n\t\t\tif($level == 'admin'){\n\t\t\t\t$admin = $member;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $admin;\n\t}",
"public function getAdminById($id)\n\t{\n\t\treturn $this->db->get_where($this->admin, ['ID_Admin' => $id])->row();\n\t}",
"public function getAdminId($id=null)\n\t{\n\t\n\t\n\t\n\tif($this->Auth->user()!=null && $this->getUserRole($id)!=null)\n\t{\n\t$roles=$this->getUserRole($id);\n\t\n\t\n\t\n\tforeach($roles as $role)\n\t{\n\tif($role=='admin')\n\t\t{\n\t\t\t\t\t\n\t\treturn $this->Auth->user('username');\n\t\n\t\t}else return false;\n\t\t}\n\t}else{return false;}\n\t\n\t}",
"public function getAdmins() {\n $sql = 'SELECT id, mail, firstname, role FROM user WHERE isAdmin=1 ORDER BY role DESC';\n $sth = $this->db->prepare($sql);\n $sth-> execute(array());\n if ($row = $sth->fetchAll()) {\n return $row;\n }\n }",
"public function get_userdata_admin($id){\n\t\t$query = $this->db->prepare(\"SELECT * FROM `nw_users` WHERE `ID`= ?\");\n\t\t$query->bindValue(1, $id);\n\n\t\ttry{\n\t\t\t$query->execute();\n\t\t\t$data \t\t\t\t= $query->fetch();\n\n\t\t\treturn $data;\n\n\t\t}catch(PDOException $e){\n\t\t\tdie($e ->getMessage());\n\t\t}\n\t}",
"public function adminLogin($user)\n {\n $sql = \"SELECT admin FROM login WHERE username = ?;\";\n $res = $this->db->executeFetch($sql, [$user]);\n return $res;\n }",
"function find_admin_by_id($admin_id) {\r\n\t\tglobal $db;\r\n\t\t\r\n\t\t$safe_admin_id = mysqli_real_escape_string($db, $admin_id);\r\n\t\t$query = \"SELECT * FROM admins \";\r\n\t\t$query .= \"WHERE id = {$safe_admin_id} \";\r\n\t\t$query .= \"LIMIT 1\";\r\n\t\t\r\n\t\t$id_set = mysqli_query($db, $query);\r\n\t\tconfirm_query($id_set);\r\n\t\t\r\n\t\tif($id = mysqli_fetch_assoc($id_set)) {\r\n\t\t\treturn $id;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"private function getAdminKuserId()\r\n\t{\r\n\t\t$partnerId = KalturaGlobalData::getData(\"@TEST_PARTNER_ID@\");\r\n\t\t$puserId = KalturaGlobalData::getData(\"TEST_PARTNER_USER_ID\");\r\n\t\tKuserPeer::getKuserByPartnerAndUid($partnerId, $puserId);\r\n\t}",
"function getAdminName() {\r\n\t\t\t$query = $this->pdo->prepare('select admin_name from admin_account');\r\n\t\t\t$query->execute();\r\n\t\t\treturn $query->fetchAll();\r\n\t\t}",
"public static function getAdminID()\n {\n $AdminUserID = self::getInstance()->getConfig()->Admin->UserID;\n if (!$AdminUserID) {\n $AdminRoleID = self::getAdminRoleID();\n $tableUser = new User_Table();\n $objectUser = $tableUser->findByRole($AdminRoleID);\n $AdminUserID = is_object($objectUser) ? $objectUser->ID : 1;\n }\n return $AdminUserID;\n }",
"public static function getAdmin($id){\n return (new Database('admin'))->select('id = ' . $id)\n ->fetchObject(\\App\\Models\\AdminModel::class);\n }",
"function auth_admin($username,$password){\n\t\t$query=$this->db->query(\"SELECT * FROM admin_table WHERE username='$username' AND admin_password=MD5('$password') LIMIT 1\");\n\t\treturn $query;\n\t}",
"public function GetAdmin ();",
"static function getInfoAdminById($idAdmin)\n {\n\n $con=Database::getConnection();\n $req=$con->prepare('SELECT * FROM admin WHERE _idAdmin=?');\n $req->execute(array($idAdmin));\n return $req->fetch();\n }",
"public function admin() {\n return $this->teachers()->where('role', '=', User::SCHOOL_ADMIN)->first();\n }",
"protected function loginAsSiteAdminUser(): ?User\n {\n Auth::loginUsingId('8');\n return $this->getPresentUser();\n }",
"public function getAdministrator() {\n\n return database::getInstance()->select('staff',\"*\");\n\n\n }",
"public function getAdminProfile() {\n $this->db->select('*');\n $this->db->where('status', 1);\n $query = $this->db->get('tbl_admin');\n if ($query->num_rows() > 0) {\n return $query->row_array();\n }\n }",
"function getLoggedInUser($token)\n\t{\n\t\tglobal $db;\n\t\t$userId = $this->GetUserIdByToken($token);\n\t\tif(isset($userId))\n\t\t{\n\t\t\t$user = $db->smartQuery(array(\n\t\t\t\t\t'sql' => \"SELECT userid, email, isAdmin FROM `user` WHERE `userid`=:userId;\",\n\t\t\t\t\t'par' => array('userId' => $userId),\n\t\t\t\t\t'ret' => 'fetch-assoc'\n\t\t\t));\n\t\t\treturn $user;\n\t\t}\n\t\treturn (object)array(\"error\" => \"user not found\");\n\t}",
"protected function signInAdmin()\n {\n $user = \\Statamic\\Facades\\User::make();\n $user->id(1)->email('[email protected]')->makeSuper();\n $this->be($user);\n return $user;\n }",
"function get_database_user()\n\t{\n\t\treturn ($this -> database_user);\n\t}",
"public function getBackendUser() {}",
"public function admin_email() {\n $this->db->where('user_id_PK', 1);\n $result = $this->db->get(TBL_USERS);\n if ($result->num_rows() > 0) {\n $email = $result->row();\n return $email->email;\n }\n else\n return FALSE;\n }",
"public function get_list_admin()\n {\n $this->db->where('type', 1);\n $query = $this->db->get('user');\n return $query->result();\n }",
"function isAdmin($userId = null) {\ntry {\n\n if (!$conn = connectDB()) {\n return false;\n }\n\n // Default to current user\n if (!isset($userId)) {\n $userId = $_SESSION['userId'];\n }\n\n // Still not set? Error\n if (!isset($userId)) {\n return false;\n }\n\n $args = array($userId);\n $sql = <<<SQL\nSELECT *\nFROM WebUser\nWHERE userID=$1\n AND admin=true;\nSQL;\n\n $result = executeSQL($conn, $sql, $args);\n if (getResultCount($result) == 1) {\n closeDB($conn);\n return true;\n }\n\n closeDB($conn);\n return false;\n\n} catch (Exception $e) {\n error(\"isAdmin: {$e}\");\n closeDB($conn);\n return false;\n}\n}",
"public function getAdminId()\n {\n return $this->admin_id;\n }",
"public function getAdminId()\n {\n return $this->admin_id;\n }",
"public function getAdminId()\n {\n return $this->admin_id;\n }",
"private function getAdminId()\n\t{\n\t\tif ($this->adminId)\n\t\t{\n\t\t\t// Return local cached admin ID.\n\t\t\treturn $this->adminId;\n\t\t}\n\n\t\t$db = $this->db;\n\t\t$query = $db->getQuery(true);\n\n\t\t// Select the admin user ID\n\t\t$query\n\t\t\t->select($db->quoteName('u.id'))\n\t\t\t->from($db->quoteName('#__users', 'u'))\n\t\t\t->join(\n\t\t\t\t'LEFT',\n\t\t\t\t$db->quoteName('#__user_usergroup_map', 'map'),\n\t\t\t\t$db->quoteName('map.user_id') . ' = ' . $db->quoteName('u.id')\n\t\t\t)\n\t\t\t->join(\n\t\t\t\t'LEFT',\n\t\t\t\t$db->quoteName('#__usergroups', 'g'),\n\t\t\t\t$db->quoteName('map.group_id') . ' = ' . $db->quoteName('g.id')\n\t\t\t)\n\t\t\t->where(\n\t\t\t\t$db->quoteName('g.title') . ' = ' . $db->quote('Super Users')\n\t\t\t);\n\n\t\t$db->setQuery($query);\n\t\t$id = $db->loadResult();\n\n\t\tif (!$id || $id instanceof Exception)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $id;\n\t}",
"public function get_admin_email(){\n\t\t\tif(empty($this->session->userdata['logged_in']['name_db']))\n\t\t\t\treturn false;\n\t\t\telse{\n\t\t\t\t$this->db->select('email');\n\t\t\t\t$this->db->from('users');\n\t\t\t\t$this->db->where('name_db', $this->session->userdata['logged_in']['name_db']);\n\t\t\t\t$this->db->where('active', 1);\n\t\t\t\t$this->db->where('role', 2);\n\n\t\t\t\t$query = $this->db->get();\n\t\t\t\t//var_dump($query->result());die;\n\t\t\t\tif($query->num_rows() > 0)\n\t\t\t\t\treturn $query->result();\n\t\t\t\telse \n\t\t\t\t\treturn false;\n\n\t\t\t}\n\t\t}",
"function getUser($id)\n{\n\tif (in_array($_SESSION['user']['role'], ['admin'])) {\n\t\tglobal $conn, $roles;\n\t\t$sql = \"SELECT * FROM users WHERE role = 'seeker' and u_name=$id limit 1\"; //WHERE role IS NOT NULL\n\t\t$result = mysqli_query($conn, $sql);\n\t\t$users = mysqli_fetch_all($result, MYSQLI_ASSOC);\n\n\t\treturn $users;\n\t} else {\n\t\treturn null;\n\t}\n}",
"function get_user () {\n\t\treturn $this->user_id;\n\t}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}",
"protected function getBackendUser() {}"
] | [
"0.8285803",
"0.80034286",
"0.78379595",
"0.7828879",
"0.7693674",
"0.76766795",
"0.7668772",
"0.7632496",
"0.7589828",
"0.75794166",
"0.7577585",
"0.75700504",
"0.74587095",
"0.7450779",
"0.7387208",
"0.73596334",
"0.7357826",
"0.7352411",
"0.7338568",
"0.73299766",
"0.7292792",
"0.72628486",
"0.7258262",
"0.7256984",
"0.72465277",
"0.72421044",
"0.72026604",
"0.7200384",
"0.71959263",
"0.716169",
"0.7122624",
"0.70856017",
"0.70841855",
"0.7072615",
"0.7040659",
"0.7040659",
"0.7020277",
"0.7014529",
"0.70101064",
"0.69952095",
"0.6981055",
"0.6961879",
"0.69467187",
"0.69387716",
"0.6937384",
"0.69368786",
"0.6911047",
"0.68986243",
"0.6894426",
"0.68863446",
"0.6864669",
"0.68470454",
"0.6846251",
"0.68349147",
"0.68339586",
"0.68116534",
"0.68106353",
"0.68068063",
"0.6802402",
"0.6793014",
"0.6789458",
"0.678518",
"0.67740566",
"0.67698747",
"0.6768163",
"0.6768163",
"0.6768163",
"0.67605186",
"0.6756578",
"0.67507946",
"0.67357635",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.673528",
"0.67348033",
"0.67348033",
"0.67348033",
"0.67348033",
"0.67348033",
"0.67348033",
"0.67347413",
"0.67347413",
"0.67347413",
"0.67347413",
"0.67347413"
] | 0.0 | -1 |
Function to get all admin users from the database | function get_all_usernames(){
$this->db->select('admin_username');
$this->db->from($this->table);
$q = $this->db->get();
return $q->result_array();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function get_admin_users(){\n \n global $db;\n \n $query = \"SELECT * FROM users \";\n $query .= \"WHERE user_role = 'admin'\";\n \n $result = User::makeQuery($query);\n \n return $result;\n }",
"public function getUsers()\n\t{\n\t\t$sql = 'SELECT * FROM admins WHERE deleted = 0';\n\t\t$query = $this->db->prepare($sql);\n\t\t$query->execute();\n\t\treturn $query->fetchAll(PDO::FETCH_OBJ);\n\t}",
"public function admins()\n {\n return $this->newQuery('getUsers', ['type' => 'AdminUsers']);\n }",
"function find_all_admins() {\r\n\t\tglobal $db;\r\n\t\t\r\n\t\t$query = \"SELECT * \";\r\n\t\t$query .= \"FROM admins \";\r\n\t\t$query .= \"ORDER BY username ASC\";\r\n\t\t$admins_set = mysqli_query($db, $query);\r\n\t\tconfirm_query($db);\r\n\t\treturn $admins_set;\r\n\t}",
"public static function getAdminsList()\n {\n $data_to_load = [];\n if(DatabaseManager::fetchInto(\"main\", $data_to_load, \"SELECT * FROM `admin_users`\") === false)\n Status::message(Status::ERROR, \"Couldn't retrieve `admin_users` from DB\");\n \n Status::message(Status::SUCCESS, $data_to_load);\n }",
"public function getAllUser()\n\t{\n\t\t$data = $this->db->get('admin');\n\t\treturn $data->result_array();\n\t}",
"function find_all_admins() {\n\t\tglobal $connection;\n\n\t\t$query = \"SELECT * FROM admins ORDER BY username ASC\";\n\t\t$admin_list = mysqli_query($connection, $query);\n\t\tconfirm_query($admin_list);\n\t\treturn $admin_list;\n\t}",
"public static function admins()\n {\n return User::all()->where('idpapel', 1)->where('stusuario', 'ati')->toArray();\n }",
"public function indexAdmin ()\n {\n $listOfUsers = $this->userRequest->usersIndexForAdmin();\n return $listOfUsers;\n }",
"public function getAllUsers() {\n $sql = 'SELECT id, firstname, mail, role, isAdmin FROM user';\n $sth = $this->db->prepare($sql);\n $sth-> execute(array());\n if ($row = $sth->fetchAll()) {\n return $row;\n }\n }",
"function getAllAdmins(){\n $sql = self::$connection->prepare(\"SELECT * FROM `user` WHERE role_id = 1\");\n $sql->execute();//return an object\n $items = array();\n $items = $sql->get_result()->fetch_all(MYSQLI_ASSOC);\n return $items; //return an array\n }",
"function getAdminList() {\n $dbConnect = getDbConnection();\n\n $query = 'SELECT * FROM admins';\n $statement = $dbConnect->prepare($query);\n\n $statement->execute();\n $resultSet = $statement->get_result();\n\n $statement->close();\n $dbConnect->close();\n\n return $resultSet;\n }",
"function adminUserList()\n {\n $arrClms = array(\n 'pkAdminID',\n 'AdminUserName',\n 'AdminCountry',\n 'AdminRegion'\n );\n $varWhr = \"AdminType = 'user-admin'\";\n $varOrderBy = 'AdminUserName ASC ';\n $arrRes = $this->select(TABLE_ADMIN, $arrClms, $varWhr);\n //pre($arrRes);\n return $arrRes;\n }",
"function findAllAdministrators() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM admins;'));\r\n\r\n\t}",
"public function allUsers()\n {\n // $sql = 'SELECT * FROM '.$db_name;\n return $this->queryAll();\n }",
"function allAdmin(){\n \t$con = new mysqli('localhost','heng','@powell135','200ok');\n \tif ($con -> connect_errno){\n \t\treturn CONNECTION_FAIL;\n \t}\n\t$permission = ADMIN;\n \t$query = \"select lastLogin, username, email, suspended, lastUpdate from jnjn_user where permission = '$permission'\";\n \t$result = $con -> query($query);\n \t$users = array();\n \twhile($row = mysqli_fetch_array($result)){\n\t\t$users[] = new User($row['username'],$row['email'],$row['lastLogin'],$row['suspended'],$row['lastUpdate']);\n \t}\n \t$result -> close();\n \treturn $users;\n }",
"public function getAdmins() {\n $sql = 'SELECT id, mail, firstname, role FROM user WHERE isAdmin=1 ORDER BY role DESC';\n $sth = $this->db->prepare($sql);\n $sth-> execute(array());\n if ($row = $sth->fetchAll()) {\n return $row;\n }\n }",
"public function users(){\n\t\t$user = $this->ion_auth->user()->row();\n\n\t\t$query = $this->db->select()\n\t\t\t\t\t\t\t\t\t\t\t ->from('users')\n\t\t\t\t\t\t\t\t\t\t\t ->where('admin_id',$user->id)\n\t\t\t\t\t\t\t\t\t\t\t ->order_by('id', 'asc')\n\t\t\t\t\t\t\t\t\t\t\t ->get();\n\t\t\treturn $query;\n\t}",
"public static function getAllAdmins()\n\t{\n\t\t$admins = self::where('users_role',UserRole::ADMIN_ROLE_ID)->get();\n\t\treturn $admins;\n\t}",
"function getAdminUsers(){\n\tglobal $connection, $roles;\n\t$sql = \"SELECT * FROM Accounts WHERE role IS NOT NULL\";\n\t$result = mysqli_query($connection, $sql);\n\t$users = mysqli_fetch_all($result, MYSQLI_ASSOC);\n\n\treturn $users;\n}",
"public function getAdmins()\n {\n $query = $this->newQuery();\n $query->where('admin', true);\n\n return $this->doQuery($query, false, false);\n }",
"public function readAdmins(){\r\n $results = array();\r\n\r\n if ( null !== $this->getDB() ) {\r\n $dbs = $this->getDB()->prepare('select * from admin');\r\n\r\n if ( $dbs->execute() && $dbs->rowCount() > 0 ) {\r\n $results = $dbs->fetchAll(PDO::FETCH_ASSOC);\r\n }\r\n } \r\n return $results;\r\n }",
"function getAllAdmins(){\n $sql = \"SELECT * FROM admin\";\n return getALl($sql);\n}",
"public static function all() {\n try {\n $db = Database::getInstance();\n $sql = \"SELECT username, is_admin, token, token_expiration FROM `User`\";\n $stmt = $db->prepare($sql);\n $stmt->execute();\n \n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n exitError(500, \"Internal error.\");\n }\n }",
"static function getAllAdmin()\n {\n\n $con=Database::getConnection();\n $req=$con->prepare('SELECT * FROM admin a, partners p WHERE a.idPart=p._idPart');\n $req->execute(array());\n return $req->fetchAll();\n }",
"public function getList()\r\n {\r\n $result = $this->query(\r\n \"SHOW USERS\",\r\n $this->getValueBuilder('Aviogram\\InfluxDB\\Entity\\Admin\\User')\r\n ->addField('user', 'getName', 'setName')\r\n ->addField('admin', 'isAdmin', 'setAdmin')\r\n );\r\n\r\n $return = new Collection\\Admin\\User();\r\n\r\n foreach ($result->getSeries() as $serie) {\r\n foreach($serie->getValues() as $value) {\r\n $return->append($value);\r\n }\r\n }\r\n\r\n return $return;\r\n }",
"function get_users()\n\t{\n\t\tglobal $db;\n\t\t\n\t\t$query = $db->query(\"SELECT * FROM users\");\n\t\t\n\t\treturn $db->results($query);\n\t}",
"public function listUsersAdmin(){\n $sql=\"SELECT id_people,dni,first_name,last_name,adress,email,is_active FROM people WHERE is_user=1\";\n $rs=$this->con->prepare($sql);\n $rs->execute();\n return $rs->fetchAll(PDO::FETCH_OBJ);\n }",
"public function getAllUsers()\n {\n $result = [];\n\n $this->logger->info('All User Data Requested', ['username' => 'admin']);\n\n $query = $this->queries->getAllUsers();\n if ($query) {\n $queryResult = $this->dbWrapper->executeAndFetchAll($query);\n if ($queryResult) {\n $result = $queryResult;\n }\n } else {\n $this->errors['database'] = 'Database connection couldn\\'t be established, please try again later!';\n }\n\n return $result;\n }",
"function findAllUsers() {\r\n\r\n\t\treturn ($this->query('SELECT * FROM users;'));\r\n\r\n\t}",
"public function getAdmins()\n\t{\n\t\t$query = <<<QUERY\nSELECT\n\t*\nFROM\n\tplayer\nWHERE\n\trole LIKE '%admin%'\nQUERY;\n\n\t\treturn $this->database->query( $query, 'Get admins from player table' );\n\t}",
"function getAdministrators() {\n\t\tif (is_null($this->admin_users)) {\n\t\t\t$this->admin_users = array();\n\t\t\t$sql = 'SELECT * FROM '.prefix('administrators').' ORDER BY `rights` DESC, `id`';\n\t\t\t$admins = query_full_array($sql, true);\n\t\t\tif ($admins !== false) {\n\t\t\t\tforeach($admins as $user) {\n\t\t\t\t\tif (array_key_exists('password', $user)) { // transition code!\n\t\t\t\t\t\t$user['pass'] = $user['password'];\n\t\t\t\t\t\tunset($user['password']);\n\t\t\t\t\t}\n\t\t\t\t\tif (!array_key_exists('valid', $user)) { // transition code!\n\t\t\t\t\t\t$user['valid'] = 1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->admin_users[$user['id']] = $user;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $this->admin_users;\n\t}",
"public function findAllAdmin() {\n\t\t\t$result = $this->createQuery()->execute();\n\t\t\treturn $result;\n\t\t}",
"public function getAllUsers()\n {\n $sql = \"SELECT `user_id`, `user_fname`, `user_lname`, `user_password_hash`, `user_email`, `user_role` FROM users\";\n $query = $this->db->prepare($sql);\n $query->execute();\n return $query->fetchAll();\n }",
"public function getAllUsers() {\n $conn = new DBConnect();\n $dbObj = $conn->getDBConnect();\n $this->DAO = new SecurityDAO($dbObj);\n return $this->DAO->getAllUsers();\n }",
"public static function get_admins();",
"public static function retrieveAllUsers() {\n return R::getAll('SELECT * FROM user');\n }",
"public function getAllUsers() {\n //Example of the auth class (you have to change the functionality for yourself)\n AuthHandler::needsAuth(array(\n 'auth' => true\n ));\n\n return ModelLoader::getModel('UserData')->getMultipleUsers(array(\n 1, 2, 3\n ));\n }",
"public function getAdmins()\n {\n $role = Role::where('name', 'admin')->first();\n return $role->users;\n }",
"public function admins() {\n $data = array();\n // verify user has priviledges\n if($this->User->isLoggedIn() && $this->User->isAdmin()) {\n $flash = null;\n \n if (isset($_POST['delete_admin'])) {\n if ($this->User->removeAdminRights($_POST['user_id'])) {\n $flash = \"Admin user removed\";\n }\n }\n \n if (isset($_POST['email'])) {\n $user_id = $this->User->getByEmail($_POST['email']);\n if(isset($user_id['id'])) {\n if($this->User->bestowAdminRights($user_id['id'])) {\n $flash = \"{$_POST['email']} added as an admin.\";\n }\n }\n }\n \n // fetch admin users\n $users = $this->User->getAdmins();\n \n //set the title\n $data = array(\n 'users' => $users,\n 'flash' => $flash,\n 'title' => 'Manage Admin Users'\n );\n \n } else {\n header(\"Location: \".app::site_url(array('users','login')));\n exit(0);\n }\n return $data;\n }",
"public function getAllUsers()\n {\n $result = self::$dbInterface -> query(\"SELECT userID, userName, email FROM user\");\n return $result;\n }",
"public function get_users()\n\t{\n\t\t$sql=\"SELECT * FROM waf_users WHERE 1=1\";\n\t\t$result=$this->db->LIST_Q($sql);\n\t\treturn $result;\n\t}",
"public function getAll()\n {\n $sql = \"SELECT * FROM users WHERE role_id = 2;\";\n $stm = App::$db->prepare($sql);\n $stm->setFetchMode(\\PDO::FETCH_OBJ);\n $stm->execute();\n return $stm->fetchAll();\n }",
"public function GetAllUsers()\n {\n $data = $this->db()->run(\"SELECT * FROM users\")->fetchall(PDO::FETCH_ASSOC);\n return $data;\n }",
"public function selectAllAdmin(){\n return $this->connect->getData(\"SELECT * FROM `tbl_admin`\");\n }",
"function admin_get_users()\n{\n global $app;\n\n $users = $app->bbs->users();\n $app->render('admin_users.html', [\n 'page' => mkPage(getMessageString('admin_users'), 0, 2),\n 'users' => $users,\n 'isadmin' => is_admin()]);\n}",
"public static function allUser()\n {\n $self = new self();\n\n $sql = \"SELECT * FROM user\";\n\n $result = $self->db->query($sql);\n\n $result = $result->fetchAll();\n\n return $result;\n }",
"function wporphanageex_get_all_users() {\n\tglobal $wpdb;\n\n\t$results = $wpdb->get_col( \"SELECT ID FROM $wpdb->users\" );\n\treturn $results;\n}",
"public function getAllUsers()\n\t{\n\t\t$users = $this->fetchAll();\n\t\t\n\t\treturn $users;\n\t}",
"public function retrieveAllUsers () {\n return $this->usersDB;\n }",
"function get_users()\n\t{\n\n\t\trequire_once('modules/Users/User.php');\n\t\t\n\t\t$query = \"SELECT user_id as id FROM roles_users WHERE role_id='$this->id' AND deleted=0\";\n\t\t\n\t\treturn $this->build_related_list($query, new User());\n\t}",
"public function getUsers();",
"public function getUsers();",
"public function getUsers();",
"function get_all_users()\n{\n\t$db = open_database_connection();\n\t$stmt = $db->prepare(\"SELECT userID, name as title, name, roleID FROM user ORDER BY roleID\");\n\t$stmt->execute();\n\t$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t$users = array();\n\tforeach ($rows as $row) {\n\t\t$users[] = $row;\n\t}\n close_database_connection($db);\n return $users;\n}",
"public function get_list_admin()\n {\n $this->db->where('type', 1);\n $query = $this->db->get('user');\n return $query->result();\n }",
"public function &getListaAdmins() {\n $admins = array();\n $query = \"select * from admins\";\n \n $mysqli = Db::getInstance()->connectDb();\n if (!isset($mysqli)) {\n error_log(\"[getListaAdmins] impossibile inizializzare il database\");\n $mysqli->close();\n return $admins;\n }\n $result = $mysqli->query($query);\n if ($mysqli->errno > 0) {\n error_log(\"[getListaAdmins] impossibile eseguire la query\");\n $mysqli->close();\n return $admins;\n }\n\n while ($row = $result->fetch_array()) {\n $admins[] = self::creaAdminDaArray($row);\n }\n\n $mysqli->close();\n return $admins;\n }",
"public function getUsers() {\n\n $users = $this->users_model->getallusers();\n exit;\n }",
"public function getUsers(){\n\t\t\t$users = $this->db->get(\"users\");\n\t\t\treturn $users;\n\t\t}",
"public function getAllUsers()\n {\n // Connect to db\n $user = new User();\n $user->setDb($this->di->get(\"db\"));\n // Get users from db\n $users = $user->findAll();\n return $users;\n }",
"public function getUsers()\n {\n return Security::getUserList();\n }",
"function getUsers() {\n\t$connection = dbConnect();\n\t$sql = \"SELECT * FROM `users`\";\n\t$statement = $connection->query( $sql );\n\n\treturn $statement->fetchAll();\n}",
"function getAdmins($limit = 0)\n {\n\n // define all the global variables\n global $database;\n\n if ($limit == 0) {\n $sql = \"SELECT * FROM \" . TBL_USERS . \" WHERE \" . TBL_USERS_LEVEL . \" <= 0\";\n //die(print($sql));\n } else {\n $sql = \"SELECT * FROM \" . TBL_USERS . \" WHERE \" . TBL_USERS_LEVEL . \" <= 0 LIMIT \" . $limit;\n }\n $admins = array();\n\n // get the sql results\n if (!$results = $database->getQueryResults($sql)) {\n return false;\n }\n\n if ($database->getQueryNumRows($results, true) < 1) {\n return false;\n }\n\n foreach ($database->getQueryEffectedRows($results, true) as $row) {\n $currentUser = new User();\n $currentUser->initInstance($row);\n\n $admins[] = $currentUser;\n }\n return $admins;\n }",
"public function getAllUsers()\n {\n return \"users from mongo\";\n }",
"public function getUsers(){\n $sql=\"SELECT * FROM users\";\n $select=parent::connect_db()->prepare($sql);\n $select->execute();\n if($select->rowCount() > 0):\n return $select->fetchAll(\\PDO::FETCH_ASSOC);\n //return $results;\n else:\n return [];\n endif;\n }",
"public function getAllUsers(){\n\t\n\t\t$db = new Database();\n\t\t$conn= $db->getConn();\n\t\t$rs = $conn->query(\"select * from login\");\n\t\t$num_of_row = $rs->num_rows;\n\t\tif($num_of_row >0){\n\t\t\twhile($row = $rs->fetch_assoc()){\n\t\t\t\t$users[]=array('username'=>$row['username'],'password'=>sha1($row['password']),'email'=>$row['email'],'user_type'=>$row['user_type']);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $users;\n\t}",
"public function getUsers()\n {\n $sql = \"SELECT * FROM users\";\n return $this->get($sql, array());\n }",
"function GetUsers($NotAdmin){\n\t$stringBuilder = \"SELECT u.user_id, u.email, l.name \";\n\t$stringBuilder .= \"FROM `user` u \";\n\t$stringBuilder .= \"INNER JOIN location l ON l.location_id=u.location \";\n\tif($NotAdmin){\n\t\t$stringBuilder .= \"WHERE u.admin=0 \";\n\t}\n\t$stringBuilder .= \"ORDER BY l.name \";\n\t// Preparing query\n\t$query = GetDatabaseConnection()->prepare($stringBuilder);\n\t$query->execute(); //Putting in the parameters\n\t$result = $query->fetchAll(); //Fetching it\n\treturn $result;\n}",
"protected function GetAllUsers()\r\n {\r\n $sql = \"SELECT * FROM `users`\";\r\n $result = $this->connect()->query($sql);\r\n $rows = $result->num_rows;\r\n\r\n if ($rows > 0) {\r\n while ($row = $result->fetch_assoc()) {\r\n $data[] = $row;\r\n }\r\n\r\n return $data;\r\n } else {\r\n echo \"No results found!\";\r\n }\r\n }",
"public function getAllUser(){\n $users = $this->bdd->query('SELECT * FROM users');\n $users->execute();\n\t\treturn $users->fetchALL(\\PDO::FETCH_ASSOC);\n }",
"public static function getAdmin() {\n\t\t$conn = Connection::get ();\n\t\t\n\t\t$select = $conn->query ( \"SELECT id_admin, identifiant_admin, mdp_admin, nom_admin, prenom_admin FROM admin\" );\n\t\t$result = array ();\n\t\t\n\t\twhile ( $row = $select->fetch () ) {\n\t\t\t$result [] = $row;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}",
"protected function getUsers() {\n //Get admin user for testing\n $admin = \\App\\User::whereHas('roles', function($query) {\n $query->where('name', 'admin');\n })->get()[0];\n //Get regular user for testing\n $user = \\App\\User::orderBy('id', 'desc')->first();\n\n return compact('admin', 'user');\n }",
"public function allUsers()\n {\n $users = $this->user->findAll();\n $this->show('admin/allusers', ['users' => $users]);\n }",
"public function users()\n {\n $sql = \"SELECT *\n FROM user\";\n\n $query = $this->db->prepare($sql);\n $query->execute();\n return $query->fetchAll();\n }",
"function getUsersAdmin() {\n $usuarios = [];\n\n $con = crearConexion();\n\n $query = \"SELECT `username` FROM `usuario` WHERE `tipo`='0'\";\n\n $result = mysqli_query($con, $query);\n\n while ($row = mysqli_fetch_array($result)) {\n $usuarios[] = $row['username'];\n }\n\n cerrarConexion($con);\n return $usuarios;\n}",
"public static function getAll() {\n $db = DBInit::getInstance();\n\n $statement = $db->prepare(\"SELECT id, uname, email, pass FROM users\");\n $statement->execute();\n\n return $statement->fetchAll();\n }",
"public function getAllUsers() {\n $sql = \"SELECT `pk_users`, `name_users`, `password_users`, `mail_users`, `symbol_users`, `first_name_users`, `last_name_users` FROM `users`\";\n $query = $this->db->prepare($sql);\n $query->execute();\n return $query->fetchAll();\n }",
"function list_admins ()\n{\n $list = \"\";\n \n $result = db_query (\"SELECT * FROM admin ORDER BY username\");\n if ($result['rows'] > 0)\n {\n $i = 0;\n while ($row = mysql_fetch_array ($result['result']))\n {\n $list[$i] = $row['username'];\n $i++;\n }\n }\n return $list;\n}",
"public function getAllUsers(bool $withAdmin = false): Collection;",
"public function getAllUsers()\n {\n $users = User::all();\n return $users;\n }",
"function get_admin_list()\r\n {\r\n $result = array();\r\n $this->db->select('login');\r\n $this->db->distinct();\r\n $this->db->order_by('login');\r\n $query = $this->db->get(db_prefix.'Admins');\r\n $result[] = 'UNDEFINED';\r\n foreach ($query->result_array() as $row)\r\n {\r\n $result[] = $row['login'];\r\n }\r\n return $result;\r\n }",
"public function adminUsers()\n {\n $adminSettings = DB::table('settings')->get();\n $adminUsers = DB::table('users');\n $adminAdmins = DB::table('admins');\n\n return view('admin.users')->with([\n 'settings' => $adminSettings,\n 'adminUsers' => $adminUsers,\n 'adminAdmins' => $adminAdmins,\n ]);\n }",
"public function adminUsers()\n {\n $usersTables = [];\n $usersReq = [];\n $adminSettings = DB::table('settings')->get();\n $adminUsers = DB::table('users');\n $adminAdmins = DB::table('admins');\n\n foreach ($adminUsers->get() as $key) {\n $usersTables[$key->id] = DB::table('rest_tables_conts')\n ->where('uid', $key->id)\n ->get('table');\n }\n foreach ($adminUsers->get() as $key) {\n $usersReq[$key->id] = DB::table('rest_requests')\n ->where('uid', $key->id)\n ->count();\n }\n\n return view('adminpanel::admin.users')->with([\n 'settings' => $adminSettings,\n 'adminUsers' => $adminUsers,\n 'adminAdmins' => $adminAdmins,\n 'usersTables' => $usersTables,\n 'usersReq' => $usersReq,\n ]);\n }",
"public function getAllUser()\n {\n $this->stmt = $this->db->prepare('SELECT * FROM user');\n $this->stmt->execute();\n $data = $this->stmt->get_result();\n $rows = $data->fetch_all(MYSQLI_ASSOC);\n return $rows;\n }",
"public function getListUser()\n {\n $db = $this->dblocal;\n try\n {\n $stmt = $db->prepare(\"select * from m_user where username<>'admin' order by username desc\");\n $stmt->execute();\n $stat[0] = true;\n $stat[1] = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $stat;\n }\n catch(PDOException $ex)\n {\n $stat[0] = false;\n $stat[1] = $ex->getMessage();\n return $stat;\n }\n }",
"function getUsers() {\n\t\t$dbObject = getDatabase();\n\t\t\n\t\t// now the sql again\n\t\t$sql = \"select users_username from users\";\n\t\t\n\t\t// run the query\n\t\t$result = $dbObject->query($sql);\n\t\t\n\t\t// iterate over the results - we expect a simple array containing\n\t\t// a list of usernames\n\t\t$i = 0;\n\t\t$users = array();\n\t\tforeach($result as $row) {\n\t\t\t$users[$i] = $row[\"username\"];\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\t// now return the list\n\t\treturn $users;\n\t}",
"function get_all_users($conn)\n\t{\n\t\t$query = \"SELECT * FROM user\";\n\t\treturn get_values(mysqli_query($conn,$query));\n\t}",
"public function get_all()\n\t{\n\n\t\t/**\n\t\t * Select all the user query results of the table\n\t\t *\n\t\t * @var array $query Select all the users\n\t\t */\n\t\t$query = $this->db->get(\"users\");\n\t\t\n\t\t/**\n\t\t * Return the query result\n\t\t */\n\t\treturn $query;\n\n\t}",
"function getAllUsers(){\n $sql = self::$connection->prepare(\"SELECT * FROM `user` WHERE role_id = 2\");\n $sql->execute();//return an object\n $items = array();\n $items = $sql->get_result()->fetch_all(MYSQLI_ASSOC);\n return $items; //return an array\n }",
"public static function getAdministrators()\n\t{\n\t\t$users = [];\n\t\tif (Main\\Loader::includeModule('bitrix24'))\n\t\t{\n\t\t\t$users = \\CBitrix24::getAllAdminId();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$res = \\CAllGroup::GetGroupUserEx(1);\n\t\t\twhile ($row = $res->fetch())\n\t\t\t{\n\t\t\t\t$users[] = (int)$row[\"USER_ID\"];\n\t\t\t}\n\t\t}\n\n\t\treturn $users;\n\t}",
"public function getUsers() {\n $userDAO = new UserDAO();\n return $userDAO->retrieveUsers();\n }",
"public static function getAllUsers() {\r\n // Create a User object\r\n $user = new User();\r\n // Return an array of user objects from the database, ordered by firstname\r\n return $user->getCollection([\"ORDER\" => ['firstname' => 'ASC']]);\r\n }",
"public function fetchAllAdmin()\n {\n $stmt = $this->connection->pdo\n ->prepare(Finder::getSql(\"SELECT * FROM app_rooms\"));\n $stmt->execute();\n\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n yield Rooms::arrayToEntity($row, new Rooms());\n }\n }",
"public function getUsers(){\n try{\n $this->openDatabase();\n $query=$this->database->prepare(\"SELECT * FROM users\");\n $query->execute();\n $result=$query->get_result();\n $query->close();\n $this->closeDatabase();\n return $result;\n }\n catch(Exception $exception){\n $this->closeDatabase();\n\t\t\t\tthrow $exception;\n }\n }",
"public static function getAllUser()\n\t{\n\t\treturn array(self::_getDao()->count(), self::_getDao()->getAll());\n\t}",
"public function all(){\n\t\t$sql = \"select * from users\";\n\t\t$stmt= $this->connect->prepare($sql);\n\t\t$stmt->execute();\n\t\t$result = $stmt->fetchAll(PDO::FETCH_CLASS, 'User');\n\t\treturn $result;\n\t}",
"public function all()\n {\n return $this->newQuery('getUsers', ['type' => 'AllUsers']);\n }",
"public static function getUsers(){\n return self::find()->all();\n }",
"public function getUsers(){\n $query = \"SELECT * FROM usuario \";\n return self::getInstance()->consulta($query);\n }",
"public function admins()\n {\n return $this->members()->wherePivot('role', '=', Member::ROLE_ADMIN)->get();\n }"
] | [
"0.86306286",
"0.83819926",
"0.81537914",
"0.81521016",
"0.8135989",
"0.8130557",
"0.81065565",
"0.8040345",
"0.8010428",
"0.797122",
"0.7956859",
"0.79330987",
"0.7916776",
"0.7856736",
"0.78183305",
"0.78135383",
"0.78096837",
"0.7798183",
"0.77622926",
"0.77302504",
"0.77273357",
"0.7717074",
"0.76720953",
"0.7662857",
"0.76076865",
"0.7581699",
"0.75368094",
"0.75366986",
"0.75154054",
"0.75145644",
"0.7510327",
"0.7494805",
"0.74876344",
"0.74704367",
"0.74626946",
"0.7434011",
"0.7424655",
"0.74045426",
"0.7403272",
"0.73934245",
"0.73929197",
"0.73887974",
"0.7371357",
"0.7355578",
"0.73514223",
"0.7345281",
"0.7335174",
"0.7318961",
"0.73118764",
"0.73114854",
"0.73042774",
"0.73033595",
"0.73033595",
"0.73033595",
"0.729984",
"0.72855145",
"0.72830975",
"0.72801304",
"0.7264848",
"0.725869",
"0.7252247",
"0.72499824",
"0.7248978",
"0.72414106",
"0.7239433",
"0.7230488",
"0.722206",
"0.72126186",
"0.72118163",
"0.720858",
"0.7205701",
"0.7201385",
"0.719553",
"0.7194397",
"0.7185046",
"0.7177227",
"0.7174801",
"0.71614814",
"0.7148006",
"0.714004",
"0.71272177",
"0.7126568",
"0.71218973",
"0.7118974",
"0.70991045",
"0.70901406",
"0.70885915",
"0.7087522",
"0.70746213",
"0.70736533",
"0.7067685",
"0.70662814",
"0.70612246",
"0.70379895",
"0.7036792",
"0.7032975",
"0.7027115",
"0.7023851",
"0.7013547",
"0.7013409"
] | 0.7356533 | 43 |
TODO: Implement __invoke() method. | function __invoke($param)
{
//var_dump($param);
return "this is invoke";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function __invoke()\n {\n }",
"public function __invoke()\n {\n\n }",
"abstract public function __invoke(): void;",
"public function __invoke(): void;",
"public function invoke();",
"public function __invoke( ...$args );",
"public function __invoke($param);",
"public function __invoke()\n {\n $callable = $this->callable;\n return $callable(...$this->arguments);\n }",
"public function __invoke($arguments)\n {\n\n }",
"public function __invoke() : array;",
"public function __invoke() : array;",
"public function __invoke(array $args = []);",
"public function invoke()\n\t{\n\t\treturn $this->dispatch([ $this ]);\n\t}",
"public function __invoke() {\n echo 'hello';\n return $this;\n }",
"public function __invoke()\n {\n return null;\n }",
"public function __invoke()\n {\n return null;\n }",
"public function __invoke(): void\n {\n ++$this->counter;\n }",
"abstract protected function _run();",
"abstract protected function _run();",
"public function call();",
"public function call();",
"public function __call($method, $args);",
"public function __invoke()\n {\n return $this->apply(func_get_args());\n }",
"final public function __invoke(): \\Exception\n {\n throw new \\BadFunctionCallException();\n }",
"public function __invoke()\n {\n if (empty($this->arguments)) {\n if (empty($this->methods)) {\n $object = $this->container->build($this->class);\n } else {\n $object = new $this->class;\n }\n } else {\n $reflection = new \\ReflectionClass($this->class);\n\n $arguments = array();\n\n foreach ($this->arguments as $arg) {\n if (is_string($arg) && (class_exists($arg) || $this->container->bound($arg))) {\n $arguments[] = $this->container->resolve($arg);\n continue;\n }\n\n $arguments[] = $arg;\n }\n\n $object = $reflection->newInstanceArgs($arguments);\n }\n\n return $this->callMethods($object);\n }",
"function invoke($method) {\r\n $this->_invoker->invoke($method);\r\n }",
"public function __invoke($controller) {\n }",
"public /*mixed*/ function __invoke(/*...$args*/)\n\t{\n\t\treturn $this;\n\t}",
"function __call($method ,$params)\n {\n return self::handleCall($method ,$params);\n }",
"public function execute(): void\n {\n $cp = $this->getConstantPool();\n /**\n * @var \\PHPJava\\Kernel\\Structures\\_InvokeDynamic $invokeDynamicStructure\n */\n $invokeDynamicStructure = $cp[$this->readUnsignedShort()];\n\n // NOTE: The values of the third and fourth operand bytes must always be zero.\n $thirdByte = $this->read();\n $forthByte = $this->read();\n\n /**\n * @var _NameAndType $nameAndTypeIndex\n */\n $nameAndTypeIndex = $cp[$invokeDynamicStructure->getNameAndTypeIndex()];\n\n $name = $cp[$nameAndTypeIndex->getNameIndex()]->getString();\n $signature = Formatter::parseSignature($cp[$nameAndTypeIndex->getDescriptorIndex()]->getString());\n\n $arguments = [];\n if (($length = $signature['arguments_count'] - 1) >= 0) {\n $arguments = array_fill(0, $length, null);\n for ($i = $length; $i >= 0; $i--) {\n $arguments[$i] = $this->popFromOperandStack();\n }\n\n $arguments = Normalizer::normalizeValues(\n $arguments,\n $signature['arguments']\n );\n }\n\n /**\n * @var BootstrapMethodsAttribute $bootstrapMethodAttribute\n */\n $bootstrapMethodAttribute = AttributionResolver::resolve(\n // NOTE: bootstrapMethods attribution is defined in JavaClass class.\n $this->javaClass->getAttributes(),\n BootstrapMethodsAttribute::class\n );\n\n /**\n * @var _BootstrapMethod $bootstrapMethod\n */\n $bootstrapMethod = $bootstrapMethodAttribute->getBootstrapMethods()[$invokeDynamicStructure->getBootstrapMethodAttrIndex()];\n $bootstrapMethodArguments = $bootstrapMethod->getBootstrapArguments();\n\n /**\n * @var _MethodHandle $methodHandle\n */\n $methodHandle = $cp[$bootstrapMethod->getBootstrapMethodRef()];\n switch ($methodHandle->getReferenceKind()) {\n case MethodHandleKind::REF_getField:\n throw new NotImplementedException($methodHandle->getReferenceKind() . ' is not implemented in ' . __METHOD__);\n case MethodHandleKind::REF_getStatic:\n throw new NotImplementedException($methodHandle->getReferenceKind() . ' is not implemented in ' . __METHOD__);\n case MethodHandleKind::REF_putField:\n throw new NotImplementedException($methodHandle->getReferenceKind() . ' is not implemented in ' . __METHOD__);\n case MethodHandleKind::REF_putStatic:\n throw new NotImplementedException($methodHandle->getReferenceKind() . ' is not implemented in ' . __METHOD__);\n case MethodHandleKind::REF_invokeVirtual:\n throw new NotImplementedException($methodHandle->getReferenceKind() . ' is not implemented in ' . __METHOD__);\n case MethodHandleKind::REF_invokeStatic:\n $factoryClass = Runtime::PHP_PACKAGES_DIRECTORY . '\\\\' . str_replace(\n '/',\n '\\\\',\n $cp[$cp[$cp[$methodHandle->getReferenceIndex()]->getClassIndex()]->getClassIndex()]->getString()\n );\n $methodHandleLookup = new Lookup();\n\n $methodHandleNameAndTypeConstant = $cp[$cp[$methodHandle->getReferenceIndex()]->getNameAndTypeIndex()];\n $methodHandledName = $cp[$methodHandleNameAndTypeConstant->getNameIndex()]->getString();\n $methodHandledDescriptor = $cp[$methodHandleNameAndTypeConstant->getDescriptorIndex()]->getString();\n\n // NOTE: Must be a class name.\n $methodHandleType = MethodType::methodType($signature[0]['class_name']);\n\n $reflectionClass = new \\ReflectionClass($factoryClass);\n $methodAccessor = $reflectionClass->getMethod($methodHandledName);\n\n $arguments = array_merge(\n [\n MethodHandles::lookup(),\n $name,\n $methodHandleType,\n ],\n $bootstrapMethodArguments,\n $arguments\n );\n\n if ($document = $methodAccessor->getDocComment()) {\n $prependInjections = $this->getAnnotateInjections($document);\n if (!empty($prependInjections)) {\n array_unshift(\n $arguments,\n ...$prependInjections\n );\n }\n }\n\n $result = forward_static_call_array(\n [$factoryClass, $methodHandledName],\n $arguments\n );\n\n if ($signature[0]['type'] !== 'void') {\n $this->pushToOperandStack($result);\n }\n break;\n case MethodHandleKind::REF_invokeSpecial:\n throw new NotImplementedException($methodHandle->getReferenceKind() . ' is not implemented in ' . __METHOD__);\n case MethodHandleKind::REF_newInvokeSpecial:\n throw new NotImplementedException($methodHandle->getReferenceKind() . ' is not implemented in ' . __METHOD__);\n case MethodHandleKind::REF_invokeInterface:\n throw new NotImplementedException($methodHandle->getReferenceKind() . ' is not implemented in ' . __METHOD__);\n }\n }",
"public function __call($method, $arguments) {}",
"public function __call($method, $arguments) {}",
"protected abstract function performImpl();",
"public function __invoke()\n {\n $closure = $this->closure;\n return $closure();\n }",
"public function __call($method, array $arguments) {}",
"public function testInvoke()\n {\n $this->instance->{$this->name};\n // Copy the instance to a local variable as we can't invoke it directly.\n $instance = $this->instance;\n $instance = $instance();\n self::assertInstanceOf(\n Chameleon::class,\n $instance,\n 'Instance invocation does not return an instance of Chameleon'\n );\n self::assertTrue(\n array_key_exists($this->name, $instance),\n 'Instance element cannot be tested with array_key_exists'\n );\n }",
"public function perform();",
"public function __invoke()\n {\n $this->execute();\n }",
"function __call($method, $args=[])\n {\n \tcall_user_func_array($this->container[$method], $args);\n }",
"abstract public function run() ;",
"function __call($method, $args)//call adodb methods\n\t{\n\t\treturn call_user_func_array(array(self::$instance, $method),$args);\n\t}",
"function invoke()\n {\n $args = func_get_args();\n return lmbDelegate::invokeChain($this->delegates, $args); \n }",
"public function __invoke() : ConfigInterface;",
"public function apply() {}",
"public function run()\n {\n // $this->call\n }",
"public function __call(string $method, array $args): mixed;",
"public function __invoke($mContext);",
"protected abstract function run();",
"function _invoke($method, $args = array()) {\n\t\t// Get hold of master and execute call\n\t\t$master = $this->_strategy->getMaster();\n\t\t$result = call_user_func_array(array($master, $method), $args);\n\t\t\n\t\t// If call failed, try to switch masters and repeat\n\t\tif (SyndLib::isError($result)) {\n\t\t\tif (!$master->isAlive() && $this->_replayTransaction())\n\t\t\t\treturn $this->_invoke($method, $args);\n\t\t}\n\t\t// Log this call if inside transaction\n\t\telse if ($this->_transactions)\n\t\t\t$this->_log[] = array($method, $args);\n\t\t\n\t\treturn $result;\n\t}",
"public function call()\n {\n // TODO: Implement call() method.\n }",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"public function __invoke()\n {\n return $this->value;\n }",
"protected function _exec()\n {\n }",
"public function __callIntern($methodName);",
"final protected function invoke($object)\n {\n return $object;\n }",
"public function run()\n {\n //leeg private\n\n }",
"abstract function run();",
"public function &__invoke()\r\n\t{\r\n\t\t$result = new stdClass();\r\n\t\tAdhoc::eachTrap('Registry',\r\n\t\t\tfunction ($trap) use (&$result)\r\n\t\t\t{\r\n\t\t\t\t$data =& $trap->GetList();\r\n\t\t\t\tforeach ($data as $k=>$v)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!isset($result->$k) and isset($v))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$result->$k = $v;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t\t\r\n\t\treturn $result;\r\n\t}",
"public function __invoke($id)\n {\n return 'abcd';\n }",
"public function __invoke($id)\n {\n return 'abcd';\n }",
"public function __call($method, $parameters);",
"abstract public function __call($fnc, $args);",
"public function __caller($name, $args){}",
"public function __invoke() {\n $args = func_get_args();\n $numArgs = count($args);\n\n if ($numArgs > 0) {\n\t$callback = function ($applicativeFun, $applicativeArg) {\n\t return $applicativeFun->apply($applicativeArg);\n\t};\n\t$result = array_reduce($args, $callback, $this);\n } else {\n\t$result = $this->apply();\n }\n\n return $result;\n }",
"function __call($fn, $param){\n //if method exists\n \n $run = apply_filters(\"WXP.{$this->handle}.{$fn}.allow\", true, $this, $param);\n \n if($run !== false){\n \n //give an error if the method does not exist, and \n //method call is allowed\n \n if(!method_exists($this->object, $fn)){\n throw new \\BadMethodCallException(\"Call to undefined method {$this->handle}::{$fn}\");\n }\n \n //if method does exist do .before action\n \n do_action(\"WXP.{$this->handle}.{$fn}.before\", $this, $param);\n \n //now call method and apply filters to the result\n \n $result = call_user_func_array(array($this->object, $fn), $param);\n \n $result = apply_filters(\"WXP.{$this->handle}.{$fn}.result\", $result, $this, $param);\n \n //finally do .after action, (passing the result and object)\n \n do_action(\"WXP.{$this->handle}.{$fn}.after\", $result, $this, $param);\n \n //return result\n \n return $result;\n } else {\n //use filter to determine what is returned when \n //run call for this object is disallowed, by default null is\n //returned; but this might cause an error if a different\n //value (like an object) is expected\n \n return apply_filters(\"WXP.{$this->handle}.{$fn}.disallow.return\", null, $this, $param);\n }\n \n }",
"public function __call($method, $arguments);",
"public function __invoke(...$operand)\n\t{\n\t\t// NOP\n\t}",
"abstract public function Execute();",
"public function testInvoke() {\n\t\t$array = array(1, 2, 3);\n\t\t$result = _::invoke($array, function($value, $number) {\n\t\t\treturn ($value + $number);\n\t\t}, 5);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(3, $result);\n\t\t$this->assertEquals(6, $result[0]);\n\t\t$this->assertEquals(7, $result[1]);\n\t\t$this->assertEquals(8, $result[2]);\n\n\t\t// test invoking a method on an array of objects\n\t\t$one = new InvokeClass(4);\n\t\t$two = new InvokeClass(5);\n\t\t$three = new InvokeClass(6);\n\t\t$array = array($one, $two, $three);\n\t\t$result = _::invoke($array, 'callMe', 5);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(3, $result);\n\t\t$this->assertEquals(9, $result[0]);\n\t\t$this->assertEquals(10, $result[1]);\n\t\t$this->assertEquals(11, $result[2]);\n\t}",
"function &invoke($method, $args) {\n $method = strtolower($method);\n $step = $this->getCallCount($method);\n $this->addCall($method, $args);\n $this->checkExpectations($method, $args, $step);\n $was = $this->disableEStrict();\n try {\n $result = &$this->emulateCall($method, $args, $step);\n } catch (Exception $e) {\n $this->restoreEStrict($was);\n throw $e;\n }\n $this->restoreEStrict($was);\n return $result;\n }",
"public function apply();",
"public function apply();",
"public function __invoke()\n {\n $params = array_merge($this->params, func_get_args());\n return $this->factory->newInstance(\n $this->class,\n $params,\n $this->setter\n );\n }",
"abstract public function __invoke(Collection $collection);",
"abstract public function run(): void;",
"public function __invoke() {\n \n return $this->_value;\n }",
"public abstract function run();",
"public abstract function run();",
"public function run();",
"public function run();",
"public function run();",
"public function run();",
"public function run();",
"public function run();",
"public function run();",
"public function run();",
"public function run();",
"public function run();",
"public function run();"
] | [
"0.8911749",
"0.8911749",
"0.8911749",
"0.8911749",
"0.8641286",
"0.85219616",
"0.8412802",
"0.8381188",
"0.8244996",
"0.7719228",
"0.74547035",
"0.73410714",
"0.7144108",
"0.71202254",
"0.71202254",
"0.68856364",
"0.68319845",
"0.6831837",
"0.67588454",
"0.67588454",
"0.6642585",
"0.66236675",
"0.66236675",
"0.6611854",
"0.6611854",
"0.65190434",
"0.65141565",
"0.64662504",
"0.6463129",
"0.6430528",
"0.6404338",
"0.6400526",
"0.63784385",
"0.6341373",
"0.633951",
"0.633951",
"0.6331635",
"0.6276319",
"0.62761545",
"0.6259457",
"0.62344",
"0.6224895",
"0.62225163",
"0.62211776",
"0.61859643",
"0.6182728",
"0.6178491",
"0.6175503",
"0.6158899",
"0.6153471",
"0.6131136",
"0.61190295",
"0.61120987",
"0.60937554",
"0.606855",
"0.606855",
"0.606855",
"0.606855",
"0.606855",
"0.606855",
"0.606855",
"0.606855",
"0.6051732",
"0.6049974",
"0.6047496",
"0.6043067",
"0.6021552",
"0.60156924",
"0.6009498",
"0.6005899",
"0.6005899",
"0.5997152",
"0.59946615",
"0.5986526",
"0.5957938",
"0.5956242",
"0.59471637",
"0.5935713",
"0.59286726",
"0.59263986",
"0.5903238",
"0.58727986",
"0.58727986",
"0.5871812",
"0.587022",
"0.58668345",
"0.5862988",
"0.58590573",
"0.58590573",
"0.5845674",
"0.5845674",
"0.5845674",
"0.5845674",
"0.5845674",
"0.5845674",
"0.5845674",
"0.5845674",
"0.5845674",
"0.5845674",
"0.5845674"
] | 0.73204017 | 12 |
end public beforeFilter() Extension of the Auth>isAuthorized() method | public function isAuthorized($user) {
//Only Field Officers can access these actions
if ($this->Auth->user('user_category_id') == '2' ) {
if (in_array($this->action, array('index', 'toinspect'))) {
return TRUE;
}
}
// General: Only the person who entered a farmer's information can edit and/or delete it (REQUIRES: an eXtra parameter)
// Specific: This checks if the action contains add, view, edit, delete or toInspect and performs check.
if ( in_array($this->action, array('add', 'view', 'edit', 'delete')) ) {
if ($this->action === 'add') {
//Trying to obtain the information from the URL by accessing the 'passed' arguments from the Request Parameters
$farmerId = $this->request->params['pass'][0]; //'pass' stands for 'passed' arguments in URL
if ($this->Production->User->isEnteredBy($farmerId, $user['id'])) { return TRUE; }
}
$productionId = $this->request->params['pass'][0]; //'pass' stands for 'passed' arguments in URL
//Perform a check at Model level, to see if $production[id] was entered by logged-in user
if ($this->Production->isEnteredBy($productionId, $user['id'])) {
return true;
}
}//end if (in_array())
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isAuthorized() {}",
"public function beforeFilter()\n {\n parent::beforeFilter();\n $this->Auth->allow();\n\n }",
"public function beforeFilter() {\n parent::beforeFilter();\n //$this->Auth->allow();\n }",
"public function beforeFilter() {\n if (is_object($this->Auth) && method_exists($this->Auth, 'allow')) {\n $this->Auth->allow();\n }\n }",
"public function isAuthorized() {\n\t\t\n\t}",
"public function beforeFilter()\n {\n parent::beforeFilter();\n\n\n if (!$this->user['role']) {\n $this->Auth->allow('register');\n }\n if ($this->user['role'] == 'user') { //admin\n $this->Auth->allow('logout', 'edit');\n }\n }",
"public function beforeFilter(){ \n\t\t$this->check_session();\n\t\t$this->check_role_access(2);\n\t}",
"public function beforeFilter() {\n parent::beforeFilter();\n\n if ($this->Auth->user('role') == 'admin') {\n \t$this->Auth->allow('index', 'add', 'edit', 'delete', 'logout');\t\n }\n elseif ($this->Auth->user('role') == 'user') {\n \t$this->Auth->allow('add', 'logout');\t\n }\n }",
"function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\n }",
"public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow(array('explore','get_map_init','get_map','get_experiences','search')); //actions that anyone is allowed to call\n }",
"public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('checkthreshold');\n \n\n }",
"public function beforeFilter() {\n parent::beforeFilter();\n // Allow users to register and logout.\n $this->Auth->allow('index');\n }",
"public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow(array('register', 'check_existing_email'));\n }",
"public function beforeFilter()\n {\n parent::beforeFilter();\n $this->Auth->allow('index');\n }",
"public function beforeFilter() {\n\t\tparent::beforeFilter();\n\t\t$this->Auth->allow('index');\n\t}",
"public function beforeFilter(){\n\t\tparent::beforeFilter();\n\t\t$this->Auth->allow('login');\n\t}",
"public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('view');\n $this->Auth->allow('search');\n }",
"public function beforeFilter()\n\t{\n\t\tparent::beforeFilter();\n\n\t\t// Auth component settings\n\n\t\t$this->Auth->allow('admin_dashboard');\n\t}",
"public function beforeFilter() {\n $this->Auth->allow('login');\n }",
"public function beforeFilter() {\n\t\tparent::beforeFilter();\n\t\t$this->Auth->allow('login','index','add','facebookLogin', 'fbcallback', 'logout', 'activate');\n\t}",
"public function beforeFilter()\n {\n parent::beforeFilter();\n $this->Auth->allow('admin_index');\n\n }",
"public function isAuthorized() {\n\t\treturn true;\n\t}",
"public function beforeFilter() {\n\t\t$this->Auth->allow(array('index', 'add', 'view','edit'));\n\t}",
"public function beforeFilter(){\n\t\t$this->check_admin_session();\t\t\n\t}",
"function beforeFilter(){\n parent::beforeFilter();\n $this->Auth->allow('*');\n\t if (!$this->Session->read('Auth.User')) {\n\t \t\t$this->Auth->allow('signup','login','index','index','twitter','getTwitterData','facebook');\n\t }\n }",
"public function beforeFilter() {\n\t\tparent::beforeFilter();\n\n\t\t$allowedActionsArray = array(\n\t\t\t'logout',\n\t\t\t'login',\n\t\t\t'forgotPassword',\n\t\t\t'setupLogin',\n\t\t\t'setupDetails'\n\t\t);\n\n\t\t$memberId = $this->_getLoggedInMemberId();\n\t\t$memberIsMembershipAdmin = $this->Member->GroupsMember->isMemberInGroup( $memberId, Group::MEMBERSHIP_ADMIN );\n\t\t$memberIsOnMembershipTeam = $this->Member->GroupsMember->isMemberInGroup( $memberId, Group::MEMBERSHIP_TEAM );\n\t\t$isLocal = $this->isRequestLocal();\n\n\t\t// We have to put register here, as is isAuthorized()\n\t\t// cannot be used to check access to functions if they can\n\t\t// ever be accessed by a user that is not logged in\n\t\tif ( $isLocal || ( $memberIsMembershipAdmin || $memberIsOnMembershipTeam ) ) {\n\t\t\tarray_push($allowedActionsArray, 'register');\n\t\t}\n\n\t\t$this->Auth->allow($allowedActionsArray);\n\t}",
"public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('record');\n }",
"function isAuthorized($request) {\n return true;\n }",
"function beforeFilter() {\n\t\t// only for snaphappi user login, not rpxnow\n\t\tparent::beforeFilter();\n\t\t/*\n\t\t *\tThese actions are allowed for all users\n\t\t */\n\t\t$this->Auth->allow(\n\t\t/*\n\t\t * main\n\t\t */\n\t\t'home', 'groups', 'discussion', 'trends', 'hiddenShots', 'substitutes', 'neighbors', 'search', \n\t\t/*\n\t\t * all\n\t\t */'index', 'all', 'most_active', 'most_views', 'most_recent', 'top_rated', \n\t\t/*\n\t\t * actions\n\t\t */'get_asset_info', 'shot',\n\t\t/*\n\t\t * experimental\n\t\t */\n\t\t 'stories', // TODO: move to ACL\n\t\t 'test', 'addACL', 'updateExif'\n\t\t);\n\t\tAppController::$writeOk = $this->Asset->hasPermission('write', AppController::$uuid);\n\t}",
"public function beforeFilter() {\n \tparent::beforeFilter();\n\t\t$this->Auth->allow('');\n\t}",
"public function authorize()\n {\n // all who has permission\n return true;\n }",
"public function beforeFilter() {\n\t\t\n\t\tif($this->Auth->user('professor')==true) {\n\t\t\t$this->Ressource->Behaviors->attach('LightAuthFiltered', array('match_field'=>'creator'));\n\t\t} else {\n\t\t\t$this->Ressource->Behaviors->attach('LightAuthFiltered', array('match_field'=>'cours_id', 'auth_field'=>'cours_id'));\n\t\t}\n\t\t\n\t\tparent::beforeFilter();\n\t\t$this->Auth->authorize = 'Controller';\n\n if (isset($this->Security) && in_array($this->action, array('display'))) {\n\t\t$this->Security->validatePost = false;\n\t\t$this->Security->csrfCheck = false;\n\t}\n\n // Controller specific beforeFilter \n }",
"public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('indexOfMember', 'search');\n }",
"public function beforeFilter() {\n //parent::beforeFilter();\n // Call to the function to allow actions to non logged in users. \n if ($this->Auth->user('id')) {\n \t$this->Auth->allow('*');\n\n }\n\n }",
"public function authorize()\n {\n if($this->user()->role == \"admin\" || $this->user()->id == $this->request->get('author_id')) return true;\n else return false;\n }",
"function beforeFilter() {\n\t\t//parent::beforeFilter(); \n\t\t//$this->Auth->allow('*');\n\t\tif( $this->Session->read('Auth.User.status') == 0 ) // status means admin\n\t\t\t$this->redirect( array('controller'=>'pages') );\n\t}",
"public function beforeFilter() {\n\t\t// This is for non-login actions\n\t\t$this->Auth->allow('index', 'view');\n\t\t$this->set('logged_in', $this->Auth->loggedIn());\n\t\t$this->set('current_user', $this->Auth->user());\n\t}",
"public function authorize()\t{\n\t\treturn true;\n\t}",
"public function beforeFilter()\n {\n $this->Auth->allow('index');\n //$this->Auth->allow('ajax_mypage');\n $this->Auth->allow('ajax_index');\n }",
"public function beforeFilter() {\n\t\tparent::beforeFilter();\n\t\t$this-> Auth-> allow('register', 'login', 'view', 'avatar', 'userList');\n\t\t\n\t\tif($this -> Auth -> loggedIn())\n\t\t\t$this -> Auth -> allow('user_setting', 'avatar');\n\t}",
"public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}",
"public function authorize()\n {\n return true; // Auth->User();\n }",
"public function beforeFilter() \n\t{\n\t\tparent::BeforeFilter();\n\t\t$this->Auth->allowedActions = array('index', 'view');\n\t}",
"public function authorize()\n {\n // we will handle this with middleware\n return true;\n }",
"public function authorize()\n {\n return true; // TODO : edit it with roles\n }",
"public function beforeFilter() {\n\t}",
"public function authorize()\n {\n return isSuperAdmin();\n }",
"public function authorize()\n\t{\n\n\t\treturn true;\n\t}",
"public function authorize()\n {\n // Should be route protected.\n return true;\n }",
"public function authorize()\n {\n return true; // Auth middleware already in use\n }",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}",
"public function authorize()\n\t{\n\t\treturn true;\n\t}"
] | [
"0.8143139",
"0.8023562",
"0.80229336",
"0.7967001",
"0.7955822",
"0.785239",
"0.7828615",
"0.77695906",
"0.7684457",
"0.7664324",
"0.7605907",
"0.75988746",
"0.7590916",
"0.75831544",
"0.75809896",
"0.7578585",
"0.7506119",
"0.74981934",
"0.7494534",
"0.74779963",
"0.7466166",
"0.7464832",
"0.74572915",
"0.74213356",
"0.7415171",
"0.7411138",
"0.7379258",
"0.7367702",
"0.735088",
"0.73423076",
"0.733813",
"0.7319081",
"0.73108",
"0.73077583",
"0.72923005",
"0.72846055",
"0.72797847",
"0.72793025",
"0.7262662",
"0.7254261",
"0.724408",
"0.7220032",
"0.721766",
"0.7215049",
"0.7210176",
"0.7209755",
"0.72096634",
"0.7208872",
"0.71991146",
"0.71904117",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232",
"0.7187232"
] | 0.0 | -1 |
end isAuthorized() index method | public function index() {
//return $this->_listAll();
// sets 'productions' to whatever the _listAll() method returns
$this->set('productions', $this->_fetchAll());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isAuthorized() {}",
"public function index()\n {\n //if (\\Gate::allows('isAdmin') || \\Gate::allows('isAuthor')) {\n return Curso::latest()->paginate(5);\n //}\n }",
"public function isAuthorized() {\n\t\t\n\t}",
"public function index()\n {\n // $this->authorize('isAdmin');\n if (\\Gate::allows('isAdmin') || \\Gate::allows('isAuthor')) {\n return User::latest()->paginate(3);\n }\n\n }",
"public function indexAction()\n {\n $this->view->setVar('logged_in', is_array($this->auth->getIdentity()));\n \n }",
"public function index()\n {\n Gate::authorize('haveaccess');\n\n return inertia('Remission/Index');\n }",
"public function indexAction()\n {\n echo 'Forbidden access';\n }",
"public function authorize()\n {\n //TODO IMPLEMENTER LA GESTION DES DROITS\n return true;\n }",
"public function index()\n {\n $this->authorize('viewAny', User::class);\n\n // List the users...\n }",
"public function index()\n {\n\t\t$excluded = [2];\n\t\t$loggedInUser = Api::getAuthenticatedUser();\n\t\t$user = $loggedInUser['user'];\n\t\tif($user->hasRole('Super Admin')){\n\t\t\t$data['data'] = Role::select('id', 'name')->whereNotIn('id',$excluded)->get();\n\t\t}else{\n\t\t\t$roles = $user->roles;\n\t\t\t$accesible_roles = explode(\",\",$roles[0]['access_roles']);\n\t\t\t$data['data'] = Role::select('id', 'name')->whereIn('id',$accesible_roles)->get();\n\t\t}\n return Api::ApiResponse($data);\n }",
"protected function indexAction() {}",
"public function index()\n {\n if (Auth::user()->ability('superadministrator', 'read-permissions')){\n return view('permission.read',[\n 'pageheader'=>'权限',\n 'pagedescription'=>'列表',\n 'permissions'=>Permission::all(),\n 'enableUpdate'=>Auth::user()->hasPermission('update-permissions'),\n 'enableDelete'=>Auth::user()->hasPermission('delete-permissions'),\n ]);\n }\n return abort(403,config('yyxt.permission_deny'));\n }",
"public function index()\n {\n\n $this->authorize('viewAny', User::class);\n\n $users = User::with('roles')->paginate();\n//\n\n return view('users.index', compact('users'));\n }",
"public function index()\n {\n $this->cpAuthorize();\n }",
"public function index()\n {\n //\n if(Gate::allows('role.index')){\n $data['roles'] = Role::where('status',1)->get();\n\n return view('dashboard.roles.index',$data);\n }\n else{\n if(Auth::check()){\n abort(403);\n }\n else{\n return redirect('login');\n }\n\n }\n\n\n }",
"public function index()\n {\n if (\\Gate::allows('isAdmin') || \\Gate::allows('isSKAdmin')) {\n return Role::latest()->paginate(5);\n }\n }",
"public function isAuthorized() {\n\t\treturn true;\n\t}",
"public function index()\n {\n \n return $this->repository->findWithOwnerAndMember(\\Authorizer::getResourceOwnerId());\n }",
"public function index()\n {\n return $this->_index(['user_id','=',$this->user()->id]);\n }",
"public function action_index()\n\t{\n\t\tif ( ! Auth::instance()->logged_in('admin'))\n\t\t\tthrow new HTTP_Exception_403();\n\t\t\n\t\t// show admin page\n\t\t$companies = ORM::factory('company')->find_all();\n\t\t$this->template->content = View::factory('admin/admin')->bind('companies', $companies);\n\t\t\n\t}",
"public function authorizeAction();",
"public function index()\n {\n if( auth()->user()->hasRole(['Administrador','Secretaria'])){\n \n $carreras = Carrera::OrderBy('nombre')\n ->paginate(10);\n \n return view('carrera.index', compact(\"carreras\"));\n }\n \n \n abort(403);\n\n \n }",
"public function index()\n\t{\n/*\t\n\t\t// - CHECK IF USER IS LOGGED IN - // \n\t\t$user = User::getUserInfos(Auth::user()->id); \n\n\t\tif ($user['status'] == 0)\n\t\t{\n\t\t\treturn Redirect::route('AdminSignIn')->with('error_message', Lang::get('messages.not_logged_in'));\n\t\t}\n \n\t\t// - AUTHORITY CHECK STARTS HERE - //\n\t\t$hasAuthority = false;\n\n\t\tswitch ($user['user']->user_group)\n\t\t{ \n\t\t\tcase 'admin':\n\t\t\t// Admins should have authority\n\t\t\t$hasAuthority = true;\n\t\t\tbreak; \n\n\t\t\tdefault:\n\t\t\treturn Redirect::route('AdminSignIn')->with('error_message', Lang::get('core.unauthorized_access'));\n\t\t}\n\n\t\tif ($hasAuthority == false) \n\t\t{\n\t\t\treturn Redirect::route('AdminSignIn')->with('error_message', Lang::get('core.unauthorized_access'));\n\t\t}\n\t\t// - AUTHORITY CHECK ENDS HERE - // \n*/\n\t\t$entries = Users::getEntries(null, null);\n\t \n\t\t$this->layout->title = 'Admin | Prodaja drva';\n\n\t\t$this->layout->css_files = array(\n\t\t\t'css/backend/bootstrap.min.css',\n\t\t\t'css/backend/buttons.dataTables.min.css'\n\t\t);\n\n\t\t$this->layout->js_footer_files = array(\n\t\t\t'js/backend/datatables.js',\n\t\t\t'js/backend/dataTables.buttons.min.js',\n\t\t\t'js/backend/jszip.min.js',\n\t\t\t'js/backend/pdfmake.min.js',\n\t\t\t'js/backend/vfs_fonts.js',\n\t\t\t'js/backend/buttons.html5.min.js'\n\n\t\t);\n\n\t\t$this->layout->content = View::make('backend.users.index', array('entries' => $entries['entries']));\n\t}",
"public function index()\n {\n $query = [];\n if(!$this->user->is_admin){\n array_push($query,['user_id','=',$this->user->id]);\n }\n return $this->helper->get(null,$query);\n }",
"public function authorize()\n {\n\t\t\n\n \n return false;\n }",
"public function indexAction() \n\t\t{\n\t\t\t$this->requireUserType(array(CT_User::Directie));\n\t\t\t$this->lijstAction();\n\t\t}",
"public function index()\n {\n if (Gate::allows('isContractor')) {\n abort(420, 'You Are not Allowed to access this site');\n }\n /*\n if (Gate::allows('isAdmin')) {\n $roles = DB::table('roles')->where('id', '!=', 1)->get();\n $users = DB::table('users')->get();\n return view('users/index', compact('users','roles'));\n }\n\n\n\n $users = DB::table('users')->get();\n $roles = DB::table('roles')->where('id', '!=', 1)->get();\n return view('users/index',compact('users','roles'));\n if (Gate::allows('isAdmin')) {\n $users = DB::table('users')->where('role_id', '!=', 1)->get();\n return view('users/index', compact('users'));\n\n //abort(404, \"Sorry, You cant Access this Page\");\n }\n\n if (Gate::allows('isManager')) {\n $users = DB::table('users')->where('role_id', '=', 3)->get();\n return view('users/index', compact('users'));\n }\n */\n\n }",
"public function index()\n {\n $user = $this->user();\n\n// if ($user == null) {\n// throw new UnauthorizedHttpException(\"Bearer\", \"You are not authorized to see all users.\", null, 0x00C00301);\n// }\n\n if (!policy($user)->canSeeAll($user)) {\n throw new HttpException(403, \"You are not authorized to see all users.\", null, [], 0x00C00302);\n }\n\n $users = $this->repository->all();\n\n return $this->response->collection($users, new UserTransformer, [\"key\" => \"users\"]);\n }",
"public function authorize()\n {\n return true; // TODO : edit it with roles\n }",
"public function authorize()\n {\n //return false;\n\t\treturn true;\n }",
"public function authorize()\n {\n //return false;\n\t\treturn true;\n }",
"public function authorize()\n {\n //return false;\n\t\treturn true;\n }",
"public function beforeFilter()\n {\n parent::beforeFilter();\n $this->Auth->allow('index');\n }",
"public function authorize() {\n\t\treturn false;\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Training_Vendor::main_index_delete');\n }",
"public function index()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$user = Auth::user();\n\t\t\tif($user->role == $this->ROLE_ADMIN)\n\t\t\t{\n\t\t\t\t$data = User::all();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data = Auth::user();\t\t\n\t\t\t}\n\t\t\tif($data)\n\t\t\t{\n\t\t\t\treturn $this->response(array('statusCode'=>100, 'statusDescription'=>'Success', 'data' => $data));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $this->response(array('statusCode'=>400, 'statusDescription'=>\"Bad Request\", \"errors\" => \"No record found.\"));\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\treturn $this->response(array('statusCode'=>401, 'statusDescription'=>\"Bad Request\", \"errors\" => $e->getMessage()));\n\t\t}\n\t}",
"function isAuthorized()\n {\n $authorized = parent::isAuthorized();\n return $authorized;\n }",
"public function authorize()\n {\n return true; //true - todos\n }",
"public function authorize()\n {\n // all who has permission\n return true;\n }",
"public function index()\n {\n if(Auth::user()->can(['hrd-idpdep-view','hrd-idpdep-create','hrd-idpdep-delete','hrd-idpdep-submit'])) {\n return view('hr.idpdep.index');\n } else {\n return view('errors.403');\n }\n }",
"public function index()\n {\n if($result = check_auth_to('QXXX_INDEX')) return $result;\n $site = Config::get('site');\n $data['authList'] = Auth::paginate($site['page_size']);\n return view('admin.auth.index', $data);\n }",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function index(){}",
"public function hasAuthorized() {\n return $this->_has(1);\n }",
"public function indexAction(){}",
"public function beforeFilter() {\n\t\tparent::beforeFilter();\n\t\t$this->Auth->allow('index');\n\t}",
"public function authorize(){\n\t\treturn true;\n\t}",
"public function authorize(){\n\t\treturn true;\n\t}",
"public function actionIndex()\n {\n \techo 'Permission Denied.';\n \texit;\n return $this->render('index');\n }",
"public function testIndexMethodAuthorised()\n {\n $response = $this->actingAs($this->user)\n ->get($this->routeIndex);\n\n $response->assertStatus(200);\n $response->assertViewIs('pages.eventtype.index');\n }",
"public function authorize()\n {\n return isSuperAdmin();\n }",
"public function index()\n {\n //\n \tif(Auth::user()->privileges_name=='ผู้ดูแลระบบ')\n \t{\n \treturn view('admin.index');\n \t}\n\n \treturn redirect('index');\n \n }",
"public function index()\n\t{\n\t\treturn Helpers::indexDoctor();\n\t}",
"public function authorize()\n {\n return true; // I do not know how to create authorisation for the back-end and the time constraints of the project did not allow me to get to this stage either. It is something I would like to learn to do in the future however.\n }",
"public function authorize()\n {\n\t\treturn true;\n }",
"public function authorize()\n {\n // return false;\n return true;\n }",
"public function authorize()\n {\n // return false;\n return true;\n }",
"public function index()\n {\n // Gate::authorize('haveaccess', 'rol.index');\n\n $roles= Role::orderBy('id','Asc')->paginate(5);\n \n return view('Roles.indexr',['roles'=>$roles]);\n }",
"public function index()\n {\n\n if (Auth::user()->administrador) {\n $usuarios = User::all();\n }\n return $this->enviarRespuesta($usuarios, 'usuarios recuperados con exito');\n }",
"public function authorize()\t{\n\t\treturn true;\n\t}",
"public function index()\n {\n //$this->authorize('view',Patient::class);\n return new PatientCollection(Patient::paginate(10));\n }",
"public function indexAction() {\n return $this->getResponse()->setHttpResponseCode(403);\n }",
"public function index()\n {\n // ---для проверки доступа\n //----isRight()\n //dd(Gate::denies('show_manager_main') || Gate::denies('show_admin'));\n\n //проверка прав; этот ресурс можно только с ролью admin и manager_main\n\n if (!($this->isRight())) {\n return redirect()->route('welcome'); //('no_access'); \n }\n\n $news = Newst::with('user')->select('id', 'user_id', 'news_post', 'news_info', 'news_activ', 'created_at', 'updated_at')\n ->orderBy('updated_at', 'DESC')->paginate(10);\n\n if (View::exists('pages.manager.91_list_news_catalogs')) {\n return view('pages.manager.91_list_news_catalogs', ['news' => $news]);\n } else {\n abort('404');\n }\n }",
"public function index()\n {\n if(Auth::guard('admin')->check()) {\n return view('category.index');\n } else {\n return view('category.index_user');\n }\n }",
"public function index()\n {\n $role = Role::firstOrCreate(['id' => Auth::user()->role_id]);\n if (!is_null($role->hasPermissionTo('clearingagent-index')) && $role->hasPermissionTo('clearingagent-index')){\n $permissions = Role::findByName($role->name)->permissions;\n foreach ($permissions as $permission)\n $all_permission[] = $permission->name;\n if(empty($all_permission))\n $all_permission[] = 'dummy text';\n $clearingagents = ClearingAgent::get();\n return view(\"clearingagent.index\",compact('clearingagents','all_permission'));\n }\n else\n return redirect()->back()->with('not_permitted', 'Sorry! You are not allowed to access this module');\n }",
"public function authorize()\n {\n// $assistant=DB::select('select * from course_ta where course_id=? and section=? and student_id=?',array(Input::get('courseId'),Input::get('sectionId'),Input::get('taId')));\n// $count=count($assistant);\n// if($count>0){\n// return false;\n// }\n return true;\n }",
"public function actionIndex() {}",
"public function actionIndex() {}",
"public function authorize()\n {\n // return false;\n return true;\n }",
"public function index()\n\t{\n\t\tif(Auth::guest())\n\t\t\treturn redirect()->route('login');\n\n\t\telse if(in_array(Auth::user()->role, ['administrador','recepcion','supervisor']))\n\t\t\treturn view('filtro/credencial');\n\n\t\telse\n\t\t\treturn view('errors/restringido');\n\t}",
"public function index()\n {\n $header = getallheaders();\n $userParams = JWT::decode($header['Authorization'], $this->key, array('HS256'));\n if ($userParams->rol_id == 1) {\n $allUsers = Users::all();\n return $this->success('Users', $allUsers);\n }\n else\n {\n return response()->json([\n 'message' => 403, 'No tienes suficientes permisos'\n ]);\n }\n \n }",
"public function index()\n {\n //\n\n // $this->authorize('viewAny', Course::class);\n $courses=Course::all();\n return response(['course'=>CourseResource::collection($courses),'message'=>'Retrieved successfully']);\n }",
"public function indexAction() {\n \n }",
"public function index()\n {\n if (Auth::user()->id===1||Auth::user()->hasPermissionTo('conditions_read')){\n return view('condition.index',[\n 'conditions'=>Condition::select('id','name', 'display_name')->paginate(12)\n ]);\n }\n abort(401,'权限不足');\n }",
"public function singleIndexAction() {}",
"function isAuthorized() {\n $roles = $this->Role->calculateCMRoles();\n \n // Construct the permission set for this user, which will also be passed to the view.\n $p = array();\n \n // Add a new Data Scrubber Filter Attribute?\n $p['add'] = $roles['cmadmin'] || $roles['coadmin'];\n \n // Delete an existing Data Scrubber Filter Attribute?\n $p['delete'] = $roles['cmadmin'] || $roles['coadmin'];\n \n // Edit an existing Data Scrubber Filter Attribute?\n $p['edit'] = $roles['cmadmin'] || $roles['coadmin'];\n \n // View all existing Data Scrubber Filter Attribute?\n $p['index'] = $roles['cmadmin'] || $roles['coadmin'];\n \n // Edit an existing Data Scrubber Filter Attribute?\n $p['order'] = ($roles['cmadmin'] || $roles['coadmin']);\n \n // Modify ordering for display via AJAX \n $p['reorder'] = ($roles['cmadmin'] || $roles['coadmin']);\n \n // View an existing Data Scrubber Filter Attribute?\n $p['view'] = $roles['cmadmin'] || $roles['coadmin'];\n \n $this->set('permissions', $p);\n return($p[$this->action]);\n }",
"public function index()\n {\n //\n // The current user can update the post...\n if (\\Gate::allows('canView')){\n return Featured::orderBy(\"order_item\")->get();\n }else{\n return ['result'=>'error', 'message' =>'Unauthorized! Access Denied'];\n }\n }",
"public function authorize()\r\r\n {\r\r\n return true;\r\r\n }",
"public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}",
"protected function indexAction()\n {\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Magestudy_Menu::first_index');\n }",
"public function authorize()\n\t{\n\t\treturn User::isAdmin();\n\t}",
"public function index()\n {\n //renvoie la page indexAmind si l'utilisateur authentifié est un admin ou index sinon \n $user = Auth::user();\n if ($user->can('isadmin')){\n $agrements = Agrement::with(\"user\")->with(\"species\")->paginate(25);\n return view('agrements.indexAdmind')->with([\"agrements\" => $agrements]);\n }else{\n $agrements = Agrement::with(\"user\")->with(\"species\")->paginate(25);\n return view('agrements.index')->with([\"agrements\" => $agrements]);\n }\n }",
"public function index()\n {\n $this->checkPermission('listar_usuarios');\n $users = $this->user->all();\n //$this->authorize('listar_usuarios', $users);\n //auth()->user()->can('listar_usuarios', $users);\n// if(Gate::denies('listar_usuarios', $users))\n// abort(403,'acesso não autorizado');\n \n// if(Gate::denies('listar_usuarios', $users))\n// return redirect()->back();\n \n return view('user.index', compact('users'));\n }",
"public function authorize()\r\n {\r\n return false;\r\n }",
"abstract public function index();",
"abstract public function index();",
"abstract public function index();",
"public function index()\n {\n if(CheckAccess::check(43)){\n $Accessments1 = Gallery::where('status',1)->paginate(20);\n return view('backend.gallery.index',['Accessments1'=>$Accessments1]);\n \n }else{\n return redirect(route('admin.dashboard'))->with('error','Unauthorized Page. Access Denied!!!');\n }\n }",
"public function authorize() {\n\t\tif (Auth::user()->user_type == \"S\" || Auth::user()->user_type == \"O\") {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tabort(404);\n\t\t}\n\t}",
"public function index()\n {\n if(account_information::where('id_number','=',auth()->user()->id_number)->first()->type == 'Super Admin' ) {\n $subjects = Subject::all();\n //return $subjects;\n return view('subjects.index', compact('subjects'));\n }\n }"
] | [
"0.7269385",
"0.7217466",
"0.7209516",
"0.7072783",
"0.7015207",
"0.7007431",
"0.6933426",
"0.6903824",
"0.6872782",
"0.6866512",
"0.6853114",
"0.6768123",
"0.67588544",
"0.67392576",
"0.67268777",
"0.67254484",
"0.6724868",
"0.6724591",
"0.67105603",
"0.67044103",
"0.6698673",
"0.66984",
"0.6690891",
"0.6682943",
"0.6654119",
"0.6653504",
"0.66517",
"0.66461456",
"0.66425914",
"0.6634854",
"0.6634854",
"0.6634854",
"0.66344315",
"0.6634116",
"0.66288257",
"0.6601579",
"0.65979356",
"0.65979105",
"0.6595451",
"0.6583348",
"0.6574794",
"0.65737695",
"0.65737057",
"0.6572873",
"0.6572873",
"0.6572873",
"0.6572873",
"0.6572873",
"0.6572873",
"0.6572873",
"0.6572873",
"0.6572873",
"0.65716696",
"0.657112",
"0.65704775",
"0.6561848",
"0.6556718",
"0.6556718",
"0.6546993",
"0.6541355",
"0.65399677",
"0.65373695",
"0.6536178",
"0.65354234",
"0.6531795",
"0.6528302",
"0.6528302",
"0.6527373",
"0.6526297",
"0.652517",
"0.6523832",
"0.651452",
"0.65061885",
"0.6505458",
"0.6503809",
"0.65036666",
"0.65012515",
"0.65012515",
"0.6499754",
"0.6498285",
"0.64975256",
"0.64954597",
"0.649068",
"0.6490287",
"0.6489606",
"0.6488197",
"0.6487409",
"0.64868444",
"0.6484993",
"0.6483116",
"0.6480428",
"0.6479651",
"0.64674395",
"0.6466876",
"0.6465704",
"0.64655393",
"0.64655393",
"0.64655393",
"0.6462552",
"0.6460482",
"0.64575773"
] | 0.0 | -1 |
end function index() view method | public function view($id = null) {
$this->Production->id = $id;
if (!$this->Production->exists()) {
throw new NotFoundException(__('The selected farm produce is invalid!'));
}
$this->set('production', $this->Production->read(null, $id));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionIndex() {}",
"public function actionIndex() {}",
"public function index(){}",
"public function index(){\r\n $this->display(index);\r\n }",
"public function index()\n {\n\t\t//return $view->fetch();\n }",
"protected function indexAction() {}",
"public function indexAction(){}",
"abstract public function index();",
"abstract public function index();",
"abstract public function index();",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function index(){\n\t \n\t\t\t\t\t}",
"public function actionIndex()\n {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"public function indexAction() {}",
"function index() {\n $this->renderView(\"index\");\n }",
"public function index( )\n {\n\n\n }",
"public abstract function index();",
"public abstract function index();",
"public abstract function index();",
"abstract function index();",
"abstract function index();",
"abstract function index();",
"abstract public function actionIndex();",
"public function indexAction() {\n \n }",
"public function index(){\n return $this->fetch('index');\n\n }",
"public function index(){\n\t\t$this->view->render($this,'index');\n\t}",
"public function indexAction() \n {\n \t\n }",
"public function index();",
"public function index();",
"public function index();",
"public function indexAction() {\r\n }",
"public function index()\r\n\t{\r\n\t\t//\r\n\t}",
"public function indexAction()\n {\n return $this->doIndex();\n }",
"public function indexAction()\n {\n return $this->doIndex();\n }",
"public function indexAction()\n {\n return $this->doIndex();\n }",
"public function indexAction()\n {\n return $this->doIndex();\n }",
"public function index(){\n\t\t//\n\t}",
"public function index()\n\t{\t\n\t}",
"public function _index(){\n\t $this->_list();\n\t}",
"public function index(){\n\t\t\n\t}",
"function index() {\n\t\t$this->show_list();\n\t}",
"protected function indexAction()\n {\n }",
"public function IndexAction() {\r\n $this->ExecuteView();\r\n }",
"public function index()\n {\t\t\n \n }",
"public function index()\n {\t\t\n \n }",
"public function index()\n {\n $this->show();\n }",
"public function index()\n {\n // READ LISTE\n }",
"public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }",
"public function indexAction() {\n\t}",
"public function indexAction() {\n\t}",
"public function indexAction(){\t\t\n\t}",
"public function indexAction() {\n\n\t}",
"public function index() {\n //\n }",
"public function actionIndex()\n {\n $this->view->render('index');\n }",
"public function index() {\r\n \r\n }",
"public function actionIndex()\n {\n\n }",
"public function actionIndex()\r\n {\r\n \treturn $this->render('index');\r\n }",
"public function action_index()\n\t{\n\t\treturn View::make('nike.index');\n\t}",
"public function index()\n {\n \n //\n }",
"public function indexAction()\n {}",
"function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}",
"public function index()\n {\n //\n }",
"public function indexAction() {\n }",
"public function indexAction() {\n }",
"public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }",
"public function index() {\n $this->view->render('index/index', null, null);\n }",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}",
"public function index()\n\t{\n\t\t//\n\t}"
] | [
"0.8459779",
"0.8459779",
"0.8424347",
"0.8404219",
"0.8364458",
"0.82867396",
"0.8277725",
"0.82599974",
"0.82599974",
"0.82599974",
"0.82594407",
"0.82594407",
"0.82594407",
"0.8252723",
"0.82475245",
"0.82082963",
"0.8207227",
"0.8207227",
"0.8207227",
"0.8207227",
"0.8207227",
"0.8207227",
"0.8207227",
"0.8207227",
"0.8207227",
"0.8206964",
"0.81893694",
"0.81712854",
"0.8164002",
"0.8164002",
"0.8164002",
"0.81620425",
"0.81620425",
"0.81620425",
"0.81437266",
"0.81435275",
"0.8095233",
"0.80947644",
"0.80766886",
"0.80649436",
"0.80649436",
"0.80649436",
"0.8048197",
"0.80291593",
"0.8028605",
"0.8028605",
"0.8028605",
"0.8028605",
"0.80257267",
"0.8010232",
"0.8009162",
"0.80053043",
"0.8004992",
"0.8004751",
"0.80031246",
"0.799704",
"0.799704",
"0.7996775",
"0.7992332",
"0.79836214",
"0.79832524",
"0.79832524",
"0.7982392",
"0.7981803",
"0.79776984",
"0.79586214",
"0.7946771",
"0.7942281",
"0.7938961",
"0.79365104",
"0.793437",
"0.7934155",
"0.79301864",
"0.7929818",
"0.7926204",
"0.7926204",
"0.79226774",
"0.79186803",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163",
"0.79180163"
] | 0.0 | -1 |
This method adds a passed farmer's farm produce, it accepts the farmer's ID. No Production ID. | public function add($id = null) {
$this->Production->User->id = $id;
if (!$this->Production->User->exists()) {
throw new NotFoundException(__('This farmer does not exist!'));
}
if ($this->request->is('post')) {
$this->Production->create();
//Trying to obtain the information from the URL by accessing the 'passed' arguments from the Request Parameters
$farmerId = $this->request->params['pass'][0];
//i am setting the the Farmer's Id of this record to the passed Id in the URL.
$this->request->data['Production']['user_id'] = $farmerId;
//i am setting the entry person of this record to the currently logged in user.
$this->request->data['Production']['field_officer_id'] = $this->Auth->user('id');
if ($this->Production->save($this->request->data)) {
$this->Session->setFlash(__('The farmer\'s produce has been saved'));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('This farmer\'s produce could not be saved. Please, try again.'));
}
}//end if ($this->request->is('post'))
$farmer = $this->Production->User->find( 'first', array(
'conditions' => array('User.id' => $id)
) );
$products = $this->Production->Product->find('list');
$this->set(compact('farmer', 'products'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createFarm($square_id, $world_id) {\n\twriteLog(\"createFarm(): Square ID: \" . $square_id);\n\t\n\t$square_type = getSquareType($square_id);\n\twriteLog(\"createFarm(): Square Type: \" . $square_type);\n\t\n\tif ($square_type == \"land\" && canIAffordIt('farm', $world_id) == 1) {\n\t\n\t\t$dml = \"UPDATE oddworld.square SET square_type = 'farm' WHERE square_id = \" . $square_id . \";\";\n\t\t$status = doInsert($dml);\n\t\tif ($status == TRUE) {\n\t\t\twriteLog(\"createFarm(): Farm created!\");\n\t\t} else {\n\t\t\twriteLog(\"createFarm(): ERROR: Farm not created!\");\n\t\t}\n\t\t\n\t\t# Create farm feature\n\t\t$feature_name = generateFeatureName('farm');\n\t\t$dml = \"INSERT INTO oddworld.feature (feature_type, feature_name, square_id, feature_size) VALUES ('farm', '\" . $feature_name . \"', \" . $square_id . \", 0);\";\n\t\t$status = doInsert($dml);\n\t\tif ($status == TRUE) {\n\t\t\twriteLog(\"createFarm(): Farm feature created!\");\n\t\t} else {\n\t\t\twriteLog(\"createFarm(): ERROR: Farm feature not created!\");\n\t\t}\n\t\t\n\t\t# Reduce funds based on number of features of this type already in existence\n\t\tbuyFeature('farm', $world_id);\n\t\t\t\n\t} else {\n\t\twriteLog(\"createFarm(): ERROR: Not a land square, or can't afford it.\");\n\t\twriteEvent(\"Farm not created! You can't afford it :-(\");\n\t}\t\n\t\n}",
"public function view($id = null) {\n\t\t$this->Production->id = $id;\n\t\tif (!$this->Production->exists()) {\n\t\t\tthrow new NotFoundException(__('The selected farm produce is invalid!'));\n\t\t}\n\t\t$this->set('production', $this->Production->read(null, $id));\n\t}",
"function addMerchant($vars){\n\tglobal $db;\n\t//should do some kind of security checks to prevent duplicate entries...(not in scope)\n\t$id = $db->insert('merchants', $vars);\n\tif($id){\n\t\t//return id merchantid\n\t\treturn $id;\n\t}else{\n\t\treturn false;\n\t}\n\t\n}",
"public function addPlant(){\n\t\t$plant = new Plant;\n\t\t$plant->Plant_Name = Input::get('Plant_Name');\n\t\t$plant->Date_Placed = date(\"Y-m-d H:i:s\", strtotime(Input::get('Date_Placed')));\n\t\t$plant->Plant_Stage = Input::get('Plant_Stage');\n\t\t$plant->save();\n\n\t\t$cameraSlot = Input::get('Camera_ID_Side');\n\t\tif($cameraSlot != \"none\"){\n\t\t\t$camera_id = (int)substr($cameraSlot, 0, -1);\n\t\t\t$camera_side = substr($cameraSlot, -1);\n\n\t\t\t$camera = Camera::where('ID', $camera_id)->first();\n\n\t\t\tif($camera_side === 'L'){\n\t\t\t\t$camera->Current_Left_Plant_ID = $plant->ID;\n\t\t\t}else{\n\t\t\t\t$camera->Current_Right_Plant_ID = $plant->ID;\n\t\t\t}\n\t\t\t$camera->save();\n\t\t}\n\n\t\treturn Redirect::to('/');\n\t}",
"public static function addCraft()\n\t\t{\n\t\t\t$stageDBO = DatabaseObjectFactory::build('material');\n\t\t\t$arr = ['material_id','unit_price','name'];\n\t\t\t$stageDBO->SetJoin(['[><]item' => 'item_id']);\n\t\t\t$materials = $stageDBO->getRecords($arr);\n\t\t\tinclude('views/pages/addCraft.php');\n\t\t}",
"public function delete($id = null) {\n\t\tif (!$this->request->is('post')) {\n\t\t\tthrow new MethodNotAllowedException();\n\t\t}\n\t\t$this->Production->id = $id;\n\t\tif (!$this->Production->exists()) {\n\t\t\tthrow new NotFoundException(__('Invalid production'));\n\t\t}\n\t\tif ($this->Production->delete()) {\n\t\t\t$this->Session->setFlash(__('Farm Produce deleted'));\n\t\t\t$this->redirect(array('action' => 'index'));\n\t\t}\n\t\t$this->Session->setFlash(__('Farm Produce was not deleted'));\n\t\t$this->redirect(array('action' => 'index'));\n\t}",
"public function prepare4mixAdd($params) {\n \textract($params);\n \t$ws = new WasteStreams($db);\n \t$storageObj= new Storage($db);\n \t$isDeletedStorageError='false';\n \tif (isset($id)) {\n \t\t$this->resultParams['loadedWaste'] = $ws->getWasteStreamsFromMix($id);\n \t}\n\n \tif ($isForm) {\n \t\t$this->isForm=true;\n\n \t\t$date = $jmix->creationTime;\n \t\t//var_Dump($jmix);\n \t\t\n \t\t$wsCount = count($wastes); \n \t\t\t \t\n \t\t$storageValidation = array();\n \t\t$deletedStorageValidation = array(); \n\n \t\t$unittype = new Unittype($db);\n \t\t\n \t\tfor ($i=0;$i<$wsCount;$i++) {\n \t\t\t$pollutionCount = count($wastes[$i]->pollutions);\n \t\t\t$storage = $wastes[$i]->storageId;\n \t\t\t\n \t\t\t//\tTODO: test properly\n \t\t\t$compareResult = $storageObj->compareDateWasteAndDeletedStorage($storage,$date); \n \t\t\t\t\t\n \t\t\tif ($compareResult==1) {\n \t\t\t\t//\tTODO: not tested\n \t\t\t\t$storageName = $storageObj->getStorageNameByID($storage);\n \t\t\t\t$deletedStorageValidation[$i] =\"Warning: Storage ($storageName) was remote before $date\";\n \t\t\t\t$isDeletedStorageError='true';\n \t\t\t} else {\n \t\t\t\t$deletedStorageValidation[$i] = \"false\";\n \t\t\t}\n\n \t\t\tif ($pollutionCount == 0) {\n\t\t\t\t\t//\tTODO: not tested\n\t \t\t\t$wasteData = array (\n\t \t\t\t\t\"id\"\t\t\t=> $wastes[$i]->wasteStreamId,\t\t\t\t\t\t\n\t\t \t\t\t\"value\"\t\t\t=> $wastes[$i]->quantity,\n\t\t\t\t\t\t\"unittypeClass\"\t=> $unittype->getUnittypeClass($wastes[$i]->unittypeId),\n\t\t\t\t\t\t\"unittypeID\"\t=> $wastes[$i]->unittypeId, //it's no 'false' in any case cause we don't use percent any more in waste streams!\n\t\t\t\t\t\t'storage_id'\t=> $wastes[$i]->storageId\n\t \t\t\t);\t\n\t \t\t\t//validation for storages!!!\twe'll prepare array with storage_id indexes that collected data with values+unittypes witch we'll add to storages\t\n\t \t\t\tif (!isset($storageValidation[$storage][$wasteData['unittypeID']])) {\n\t \t\t\t\t$storageValidation[$storage][$wasteData['unittypeID']] = $wasteData['value'];\n\t \t\t\t} else {\n\t \t\t\t\t$storageValidation[$storage][$wasteData['unittypeID']] += $wasteData['value'];\n\t \t\t\t}\t\t\t\n\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t \t\t\t$this->resultParams['waste'][$i] = $wasteData;\n\t \t\t\t \t\t\t\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\t$this->resultParams['waste'][$i] = array();\n \t\t\t\t$this->resultParams['waste'][$i]['count'] = $pollutionCount;\n \t\t\t\t$this->resultParams['waste'][$i]['storage_id'] = $storage;\n \t\t\t\t$this->resultParams['waste'][$i]['id'] = $wastes[$i]->wasteStreamId;\n \t\t\t\t\n \t\t\t\t\n \t\t\t\t$value = 0;\n\t \t\t\tfor ($j=0;$j<$pollutionCount;$j++) {\n\t\t \t\t\t$wasteData = array (\n\t\t \t\t\t\t\"id\"\t\t\t=> $wastes[$i]->pollutions[$j]->pollutionId,\t\t\t\t\t\t\n\t\t\t \t\t\t\"value\"\t\t\t=> $wastes[$i]->pollutions[$j]->quantity,\n\t\t\t\t\t\t\t\"unittypeID\"\t=> (isset($wastes[$i]->pollutions[$j]->unittypeId)) ? $wastes[$i]->pollutions[$j]->unittypeId : false\n\t\t \t\t\t);\t\n\t\t \t\t\t\n\t\t \t\t\tif ($wasteData['unittypeID']) {\n\t\t \t\t\t\t$wasteData['unittypeClass'] = $unittype->getUnittypeClass($wasteData['unittypeID']);\t\n\t\t \t\t\t}\n\t\t \t\t\t\t\t \t\t\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t \t\t\t$this->resultParams['waste'][$i][$j] = $wasteData;\n\t\t \t\t\t$value += $wasteData['value'];\n\t\t \t\t\t\n\t\t \t\t\t//validation for storages!!! we'll prepare array with storage_id indexes that collected data with values+unittypes witch we'll add to storages\n\t\t \t\t\tif (!isset($storageValidation[$storage][$wasteData['unittypeID']])) {\n\t\t \t\t\t\t$storageValidation[$storage][$wasteData['unittypeID']] = $wasteData['value'];\n\t\t \t\t\t} else {\n\t\t \t\t\t\t$storageValidation[$storage][$wasteData['unittypeID']] += $wasteData['value'];\n\t\t \t\t\t}\t\t \t\t\t\n\t \t\t\t}\n \t\t\t} \t\t\t\t\n \t\t} \t\t \t\t\t\n \t $storage = new Storage($db);\n \t \n \t\t$storageOverflow = $storage->validateOverflow($storageValidation, $date, $id);\t \n \t\t\n \t\t\n \t\tif ($storageOverflow !== false) {\n\t \t\t$result['storageError'] = \"Error! Choosen storages are overflow!\";\n\t \t}\n\t \t$result['storageOverflow'] = json_encode($storageOverflow);\n\t \t \t \n \t} else {\n \t\t//\tTODO: not tested\n \t\t$this->isForm=false;\n \t\tif (isset($id)) {\n \t\t\t$mix = new Mix($db);\n \t\t\t$mixDetails = $mix->getMixDetails($id);\n \t\t\t$date = $mixDetails['creationTime'];\n \t\t} else {\n \t\t\t$date = date('m-d-Y');\n \t\t}\n \t\t$result['storageOverflow'] = json_encode(false);\n \t}\n \t\n \t//echo \"<br/>now we should convert $date from mm-dd-yyyy into yyyy-mm-dd\";\n \t//echo \"$date\";\n \t\n \t//$date = substr($date,-4,4).\"-\".substr($date,0,2).\"-\".substr($date,3,2);\n \t\n \t\n \t\n \t$dateO = DateTime::createFromFormat($jmix->dateFormat,$jmix->creationTime);\n \t\n \t$date = $dateO->format(\"Y-m-d\");\n \t\n \t//echo \"<br/>$date\";\n \t//exit;\n\n \t//\tTODO: I'm not sure that it work correctly\n\t\tif ($deletedStorageValidation == null) {\n\t\t\t$result['deletedStorageValidation'] = 'false';\n\t\t} else {\n\t\t\t$result['deletedStorageValidation'] = json_encode($deletedStorageValidation);\n\t\t}\t\t\n\t\t\n\t\t$result['isDeletedStorageError']=$isDeletedStorageError;\t\t\n \t$result['wasteStreamsList'] = json_encode($ws->getWasteStreamsFullList());\n \t$result['wasteStreamsWithPollutions'] = json_encode($ws->getWasteStreamsToPollutionsList());\n\n \t$storage = new Storage($db);\n \t$result['storages'] = json_encode($storage->getCurrentStoragesGroupedByWaste($facilityID,$date,$id));\n \t\n \treturn $result;\n }",
"public function run()\n {\n factory(Elbow\\Medium::class, 10)->create(['manufacturer_id' => $this->manufacturerId()]);\n }",
"function add_medidor($params)\n {\n $this->db->insert('medidor',$params);\n return $this->db->insert_id();\n }",
"public function run(Faker $faker)\n { \n \t$pack1 = new Pack;\n \t$pack1 -> pname = '手袋单人份';\n \t$pack1 -> save();\n $pack2 = new Pack;\n $pack2 -> pname = '礼盒双人份';\n $pack2 -> save();\n $pack3 = new Pack;\n $pack3 -> pname = '全家福礼包';\n $pack3 -> save();\n }",
"public function show(Farmer $farmer)\n {\n $farmer = Farmer::find($farmer->id);\n return $farmer;\n }",
"function addANewFighter($arg, $playerIdLogin) {\n //TODO: get the fighter to automatically start level 1, with all skills at 1 and health at maximum (10?)\n //TODO: X and Y position must be decided when the fighter joins the arena\n $fighterData = $arg;\n $fighterTable = TableRegistry::get('fighters');\n $fighter = $fighterTable->newEntity();\n $fighter->name = $fighterData['name'];\n $fighter->player_id = $playerIdLogin;\n\n $fighters = $this->find('all');\n $fightersArray = $fighters->toArray();\n\n $restart = 1;\n\n while ($restart == 1) {\n\n $randX = rand(0, 14);\n $randY = rand(0, 9);\n $restart = 0;\n\n for ($i = 0; $i < count($fightersArray); $i++) {\n if (($fightersArray[$i]['coordinate_x'] == $randX) && ($fightersArray[$i]['coordinate_y'] == $randY)) {\n $restart = 1;\n }\n }\n }\n\n $fighter->coordinate_x = $randX;\n $fighter->coordinate_y = $randY;\n $fighter->level = '1';\n $fighter->xp = '0';\n\n if ($fighterData['Class'] == 0) {\n $fighter->skill_sight = '2';\n $fighter->skill_strength = '1';\n $fighter->skill_health = '5';\n $fighter->current_health = '5';\n }\n\n if ($fighterData['Class'] == 1) {\n $fighter->skill_sight = '3';\n $fighter->skill_strength = '1';\n $fighter->skill_health = '5';\n $fighter->current_health = '5';\n }\n\n if ($fighterData['Class'] == 2) {\n $fighter->skill_sight = '2';\n $fighter->skill_strength = '1';\n $fighter->skill_health = '8';\n $fighter->current_health = '8';\n }\n\n if ($fighterData['Class'] == 3) {\n $fighter->skill_sight = '2';\n $fighter->skill_strength = '2';\n $fighter->skill_health = '5';\n $fighter->current_health = '5';\n }\n\n\n $fighterTable->save($fighter);\n $imgId= rand(1, 24);\n if( $fighterData[\"imgNum\"] != \"\"){\n $imgId= $fighterData[\"imgNum\"];\n }\n\n $file = new File('img/A'. $imgId .'.PNG'); // change here\n\n $file->copy('img/'.$fighter->id.'.PNG', true);\n }",
"public function pushToFareye()\r\n {\r\n $collection = Mage::getModel('marketplace/fareyedataqueue')->getCollection();\r\n $collection->addFieldToFilter('processed', 'queued');\r\n foreach ($collection as $queued) {\r\n $fareye = Mage::getModel('marketplace/fareyedataqueue')->load($queued->getId());\r\n $processData = $fareye->getData();\r\n if (empty($processData['merchant_code']) || empty($processData['product_name'])) {\r\n //$fareye->setProcessed(\"paused\");\r\n $fareye->setProcessed(\"queued\");//queued so that in case the seller information is filled, their orders can be placed to fareye\r\n $fareye->setPausedReason(\"One of the necessary field is missing (merchant_code, product_name).\");\r\n $fareye->save();\r\n continue;\r\n } else {\r\n $fareye->setProcessed(\"processing\");\r\n $fareye->save();\r\n //check if seller is pushed if not push it first.\r\n $sellerInfo = Mage::getModel('marketplace/sellerprofile')->load($processData['merchant_code'],\r\n 'seller_id');\r\n if ($sellerInfo->getPushedToFareye() !== 1) {\r\n $this->pushSellerToFareye($sellerInfo->getSellerId());\r\n }\r\n }\r\n /*echo \"<pre>\";\r\n print_r($processData);\r\n echo \"</pre>\";*/\r\n $processData['merchant_id'] = $processData['merchant_code'];\r\n $merchantCode = $processData['merchant_code'];//remove merchant_code from processData after this\r\n unset($processData['merchant_code']);\r\n unset($processData['id']);\r\n unset($processData['created_at']);\r\n unset($processData['processed_at']);\r\n unset($processData['processed']);\r\n //merchant_name, amount_to_be_collected got removed from fareye process so unset it here too\r\n unset($processData['merchant_name']);\r\n unset($processData['amount_to_be_collected']);\r\n unset($processData['paused_reason']);\r\n\r\n //echo \"<pre>\";\r\n //print_r($processData);\r\n $processData = array_filter($processData);\r\n\r\n //format phone numbers as per fareye\r\n $processData['customer_contact_number'] = $this->getFareyeFormatPhoneNumber($processData['customer_contact_number']);\r\n $processData['merchant_contact_number'] = $this->getFareyeFormatPhoneNumber($processData['merchant_contact_number']);\r\n\r\n //fill other required fields by the fareye, if they are empty\r\n $processData['address_line2'] = (empty($processData['address_line2'])) ? \"Nill\" : $processData['address_line2'];\r\n $processData['other_product_options'] = (empty($processData['other_product_options'])) ? \"Not included\" : $processData['other_product_options'];\r\n\r\n //print_r($processData);\r\n $data = [\r\n [\r\n 'merchantCode' => $merchantCode,//remove merchant_code from processData after this\r\n 'referenceNumber' => $processData['product_unique_id'],\r\n 'processDefinitionCode' => 'main_process',\r\n 'processData' => $processData,\r\n 'processUserMappings' => []\r\n ]\r\n ];\r\n $jsonData = json_encode($data);\r\n /*echo \"<pre>\";\r\n echo $jsonData;\r\n echo \"</pre>\";*/\r\n try {\r\n $url = Mage::helper('marketplace/Url')->getFareyeNewProcessUrl(false);\r\n //echo $url;\r\n $httpClient = new Varien_Http_Client($url);\r\n $response = $httpClient->setRawData($jsonData, 'application/json')->request('POST');\r\n //print_r($response);\r\n if ($response->isSuccessful()) {\r\n $jsonRespnse = $response->getBody();\r\n $responseStdObj = json_decode($jsonRespnse);\r\n //print_r($responseStdObj);\r\n if ($responseStdObj->failCount > 0) {\r\n //print_r($responseStdObj->failureList[0]->failReason);\r\n if (strpos($responseStdObj->failureList[0]->failReason, \"already exist\") !== false) {\r\n //if record already exist error is there mark it as processed\r\n $fareye->setProcessed(\"processed\");\r\n //log it too and mention that it has changed to processed\r\n $referenceNumber = $responseStdObj->failureList[0]->referenceNumber;\r\n Mage::log(\"FAREYE Due to Already Exist Error it was changed to Processed: ReferenceNumber # $referenceNumber\");\r\n } else {\r\n //if there is something else log it\r\n $fareye->setProcessed(\"queued\");\r\n Mage::log(\"FAREYE: \" . $responseStdObj->failureList[0]->failReason);\r\n }\r\n } else {\r\n //successfully pushed\r\n $fareye->setProcessed(\"processed\");\r\n }\r\n } else {\r\n Mage::log(\"FAREYE: \" . print_r($response, true));\r\n $fareye->setProcessed(\"queued\");\r\n }\r\n } catch (Exception $e) {\r\n Mage::logException($e);\r\n $fareye->setProcessed(\"queued\");\r\n } finally {\r\n $fareye->save();\r\n }\r\n }\r\n }",
"public function add_department_officer()\n {\n if (validate('save_department_officer') == FALSE) {\n $return_data = array(\n 'status' => false,\n 'message' => 'Some fields have errors.',\n 'fields' => validation_error_array()\n );\n } else {\n $locID = get_post('DepartmentLocationID');\n $DepartmentID = get_post('DepartmentID');\n $SubDepartmentID = (int) get_post('SubDepartmentID');\n $accountID = get_post('SelectedAccountID');\n $functionTypeID = (int) get_post('FunctionTypeID');\n $position = get_post('Position');\n\n // find by data\n $officerWhere = array(\n 'DepartmentID' => $DepartmentID,\n 'SubDepartmentID' => $SubDepartmentID, \n 'DepartmentLocationID' => $locID,\n 'AccountID' => $accountID,\n 'FunctionTypeID' => $functionTypeID\n );\n $officer = $this->mgovdb->getRecords('Dept_Officers', $officerWhere, 'id', array(1));\n if (count($officer)) {\n $officer = (object) $officer[0];\n }\n\n if ($officer == false) {\n // new record\n $insertData = array(\n 'DepartmentID' => $DepartmentID,\n 'SubDepartmentID' => $SubDepartmentID,\n 'DepartmentLocationID' => $locID,\n 'AccountID' => $accountID,\n 'FunctionTypeID' => $functionTypeID,\n 'Position' => $position,\n 'LastUpdate' => date('Y-m-d H:i:s')\n );\n\n if (($ID = $this->mgovdb->saveData('Dept_Officers', $insertData))) {\n usleep(100);//minor delay fetch after add\n $return_data = array(\n 'status' => true,\n 'message' => 'Department officer has been assigned successfully.',\n 'id' => $ID,\n 'data' => $this->departmentdb->getDepartmentOfficer($ID, 'id')\n );\n\n } else {\n $return_data = array(\n 'status' => false,\n 'message' => 'Assigning department officer failed. Please try again.'\n );\n }\n } else {\n $return_data = array(\n 'status' => false,\n 'message' => 'Officer already assigned on this deparment with the same function.',\n );\n }\n\n }\n\n response_json($return_data);\n }",
"public function produce(int $partition, int $msgflags, string $payload, string $key = NULL): void { }",
"public function AddFFPMByID(AddFFPMByID $parameters)\n {\n return $this->__soapCall('AddFFPMByID', array($parameters));\n }",
"public function add() {\n\n\t\t//Initializing variables\n\t\t$titles = ''; $farmerGroups = '';\n\n\t\tif ($this->request->is('post')) {\n\n\t\t\t//i am manually setting the 'users.user_category_id' field to a value equivalent to farmers in the 'user_category' table\n\t\t\t$this->request->data['User']['user_category_id'] = 3;\n\n\t\t\t//i am setting the entry person of this record to the currently logged in user.\n\t\t\t$this->request->data['User']['entered_by'] = $this->Auth->user('id');\n\n\t\t\t//i am setting the buying station of the farmer to that of the currently logged in Field-Officer\n\t\t\t$this->request->data['User']['buying_station_id'] = $this->Auth->user('buying_station_id');\n\n\t\t\t$this->User->create();\n\t\t\tif ($this->User->save($this->request->data)) {\n\t\t\t\t$this->Session->setFlash(__('Information has been saved'));\n\t\t\t\t$this->redirect(array('action' => 'index'));\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('The info about the farmer could not be saved. Please, review your entry & try again!'));\n\t\t\t}\n\t\t}\n\n\t\t$titles = $this->User->Title->find('list');\n\t\t$farmerGroups = $this->User->FarmerGroup->find('list', array(\n\t\t\t'conditions' => array('FarmerGroup.buying_station_id' => $this->Auth->user('buying_station_id')),\n\t\t));\n\t\t$this->set(compact('titles', 'genders', 'farmerGroups'));\n\n\t}",
"public function mf_create_makers( $args, $assoc_args ) {\n\n\t\t$args = array(\n\t\t\t'posts_per_page' => 2000,\n\t\t\t'post_type' => 'mf_form',\n\t\t\t'post_status' => 'accepted',\n\n\t\t\t// Prevent new posts from affecting the order\n\t\t\t'orderby' => 'ID',\n\t\t\t'order' => 'ASC',\n\n\t\t\t// Speed this up\n\t\t\t'no_found_rows' => true,\n\t\t\t'update_post_meta_cache' => false,\n\t\t\t'update_post_term_cache' => false,\n\t\t);\n\n\t\t// Get the first set of posts\n\t\t$query = new WP_Query( $args );\n\n\t\twhile ( $query->have_posts() ) : $query->the_post();\n\t\t\n\t\tglobal $post;\n\t\t\t\n\t\tsetup_postdata( $post );\n\n\t\t$application = json_decode( html_entity_decode( str_replace( array( \"\\'\", \"u03a9\" ), array( \"'\", 'Ω' ), $post->post_content ), ENT_COMPAT, 'utf-8' ) );\n\t\t$type = ( isset( $application->form_type ) ) ? $application->form_type : 'null';\n\n\t\tif ( $type == 'exhibit' ) {\n\t\t\tWP_CLI::line( 'Exhibit' );\n\n\t\t\tif ( $application->maker == 'A group or association' ) {\n\t\t\t\tWP_CLI::line( 'A group or association | ID: ' . get_the_ID() );\n\n\t\t\t\t$the_title = $application->group_name ? $application->group_name : $application->name;\n\t\t\t\t$title = htmlspecialchars( $the_title );\n\t\t\t\t$maker = get_page_by_title( $title, OBJECT, 'maker' );\n\n\t\t\t\techo ( isset( $maker->post_title ) ) ? WP_CLI::success( 'Found: ' . $maker->post_title ) : WP_CLI::warning( 'no title...' ) ;\n\n\t\t\t\tif ( ! $maker ) {\n\t\t\t\t\t// Setup post object...\n\t\t\t\t\t$content = ( $application->group_bio ? htmlspecialchars_decode( $application->group_bio ) : null );\n\t\t\t\t\t$my_post = array(\n\t\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t\t'post_content' => $content,\n\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t'post_type'\t\t=> 'maker'\n\t\t\t\t\t); \n\n\t\t\t\t\t$pid = wp_insert_post( $my_post );\n\t\t\t\t\tif ( is_wp_error( $pid ) ) {\n\t\t\t\t\t\tWP_CLI::warning( $title );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::success( $title );\n\t\t\t\t\t}\n\n\t\t\t\t\t$website = ( $application->project_website ) ? $application->project_website : null;\n\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'website = ' . $website );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'website = ' . $website );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$video = ( $application->project_video ) ? $application->project_video : null;\n\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$photo_url = ( $application->group_photo ) ? $application->group_photo : null;\n\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$pid = $maker->ID;\n\n\t\t\t\t\t$website = ( $application->project_website ) ? $application->project_website : null;\n\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$video = ( $application->project_video ) ? $application->project_video : null;\n\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$photo_url = ( $application->group_photo ) ? $application->group_photo : null;\n\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t// Some users didn't select an maker type... so loop them here.\n\t\t\t} elseif ( $application->maker == 'One maker' || $application->maker == '' ) {\n\t\t\t\tWP_CLI::line( 'One Maker | ID: ' . get_the_ID() );\n\n\t\t\t\t$the_title = $application->maker_name ? $application->maker_name : $application->name;\n\t\t\t\t$title = htmlspecialchars( $the_title );\n\t\t\t\t$maker = get_page_by_title( $title, OBJECT, 'maker' );\n\n\t\t\t\techo ( isset( $maker->post_title ) ) ? WP_CLI::success( 'Found: ' . $maker->post_title ) : WP_CLI::warning( 'no title...' );\n\n\t\t\t\tif ( ! $maker ) {\n\t\t\t\t\t// Setup post object...\n\t\t\t\t\t$content = ( $application->maker_bio ? htmlspecialchars_decode( $application->maker_bio ) : null );\n\t\t\t\t\t$my_post = array(\n\t\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t\t'post_content' => $content,\n\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t'post_type'\t\t=> 'maker'\n\t\t\t\t\t);\n\n\t\t\t\t\t$pid = wp_insert_post( $my_post );\n\t\t\t\t\tif ( is_wp_error( $pid ) ) {\n\t\t\t\t\t\tWP_CLI::warning( $title );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::success( $title );\n\t\t\t\t\t}\n\n\t\t\t\t\t$website = ( $application->project_website ) ? $application->project_website : null;\n\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$video = ( $application->project_video ) ? $application->project_video : null;\n\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$photo_url = ( $application->m_maker_photo_thumb ) ? $application->m_maker_photo_thumb : null;\n\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\tif ( !empty( $mf ) ) {\n\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\tif ( !empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$pid = $maker->ID;\n\n\t\t\t\t\t$website = ( $application->project_website ) ? $application->project_website : null;\n\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$video = ( $application->project_video ) ? $application->project_video : null;\n\t\t\t\t\tif ( !empty( $video ) ) {\n\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\tif ( !empty( $vid ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\tif ( !empty( $post_id ) ) {\n\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\tif ( !empty( $mfei_record ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$photo_url = ( $application->m_maker_photo_thumb ) ? $application->m_maker_photo_thumb : null;\n\t\t\t\t\tif ( !empty( $photo_url ) ) {\n\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\tif ( !empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\tif ( !empty( $mf ) ) {\n\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\tif ( !empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} elseif ( $application->maker == 'A list of makers' ) {\n\t\t\t\tWP_CLI::line('A List of Makers | ID: ' . get_the_ID() );\n\t\t\t\t\n\t\t\t\t$maker_list = ( isset( $application->m_maker_name ) ) ? $application->m_maker_name : $application->project_name;\n\t\t\t\t$i = 0;\n\n\t\t\t\tif ( is_array( $maker_list ) ) {\n\t\t\t\t\tforeach ( $maker_list as $maker_name ) {\n\t\t\t\t\t\t$the_title = $application->m_maker_name[ $i ] ? $application->m_maker_name[ $i ] : $application->project_name;\n\t\t\t\t\t\t$title = htmlspecialchars( $the_title );\n\t\t\t\t\t\t$maker = get_page_by_title( $title, OBJECT, 'maker' );\n\n\t\t\t\t\t\techo ( isset( $maker->post_title ) ) ? WP_CLI::success( 'Found: ' . $maker->post_title ) : WP_CLI::warning( 'no title...' ) ;\n\n\t\t\t\t\t\tif ( ! $maker ) {\n\t\t\t\t\t\t\t// Setup post object...\n\t\t\t\t\t\t\t$content = ( isset( $application->m_maker_bio[ $i ] ) ? htmlspecialchars_decode( $application->m_maker_bio[ $i ] ) : null);\n\t\t\t\t\t\t\t$my_post = array(\n\t\t\t\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t\t\t\t'post_content' => $content,\n\t\t\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t\t\t'post_type'\t\t=> 'maker'\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$pid = wp_insert_post( $my_post );\n\t\t\t\t\t\t\tif ( is_wp_error( $pid ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Name: ' . $title );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Name: ' . $title );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$website = ( $application->project_website ) ? $application->project_website : null;\n\t\t\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$video = ( $application->project_video ) ? $application->project_video : null;\n\t\t\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$photo_url = ( $application->m_maker_photo[ $i ] ) ? $application->m_maker_photo[ $i ] : null;\n\t\t\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::line( 'Updating Meta...' );\n\t\t\t\t\t\t\t$pid = $maker->ID;\n\n\t\t\t\t\t\t\t$website = ( $application->project_website ) ? $application->project_website : null;\n\t\t\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$video = ( $application->project_video ) ? $application->project_video : null;\n\t\t\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$photo_url = ( isset( $application->m_maker_photo[ $i ] ) ) ? $application->m_maker_photo[ $i ] : null;\n\t\t\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\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\t$i++;\n\t\t\t\t\t}\n\t\t\t\t// Some users failed to fill in their name... so we need to provide something?\n\t\t\t\t} else {\n\t\t\t\t\t$the_title = $application->name ? $application->name : $application->project_name;\n\t\t\t\t\t$title = htmlspecialchars( $the_title );\n\t\t\t\t\t$maker = get_page_by_title( $title, OBJECT, 'maker' );\n\n\t\t\t\t\techo ( isset( $maker->post_title ) ) ? WP_CLI::success( 'Found: ' . $maker->post_title ) : WP_CLI::warning( 'no title...' ) ;\n\n\t\t\t\t\tif ( ! $maker ) {\n\t\t\t\t\t\t// Setup post object...\n\t\t\t\t\t\t$content = ( isset( $application->m_maker_bio[0] ) ? htmlspecialchars_decode( $application->m_maker_bio[0] ) : null);\n\t\t\t\t\t\t$my_post = array(\n\t\t\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t\t\t'post_content' => $content,\n\t\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t\t'post_type'\t\t=> 'maker'\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t$pid = wp_insert_post( $my_post );\n\t\t\t\t\t\tif ( is_wp_error( $pid ) ) {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Name: ' . $title );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::success( 'Maker Name: ' . $title );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$website = ( $application->project_website ) ? $application->project_website : null;\n\t\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$video = ( $application->project_video ) ? $application->project_video : null;\n\t\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$photo_url = ( $application->m_maker_photo[0] ) ? $application->m_maker_photo[0] : null;\n\t\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::line( 'Updating Meta...' );\n\t\t\t\t\t\t$pid = $maker->ID;\n\n\t\t\t\t\t\t$website = ( $application->project_website ) ? $application->project_website : null;\n\t\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$video = ( $application->project_video ) ? $application->project_video : null;\n\t\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$photo_url = ( isset( $application->m_maker_photo[0] ) ) ? $application->m_maker_photo[0] : null;\n\t\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif ( $type == 'presenter' ) {\n\t\t\tWP_CLI::line( 'Presenter' );\n\n\t\t\tif ( $application->presentation_type == 'Presentation' ) {\n\t\t\t\tWP_CLI::line( 'Presentation | ID: ' . get_the_ID() );\n\n\t\t\t\t$the_title = $application->presenter_name[0] ? $application->presenter_name[0] : $application->name;\n\t\t\t\t$title = htmlspecialchars( $the_title );\n\t\t\t\t$presentation = get_page_by_title( $title, OBJECT, 'maker' );\n\n\t\t\t\techo ( isset( $presentation->post_title ) ) ? WP_CLI::success( 'Found: ' . $presentation->post_title ) : WP_CLI::warning( 'no title...' );\n\n\t\t\t\tif ( ! $presentation ) {\n\t\t\t\t\t// Setup post object...\n\t\t\t\t\t$content = ( $application->presenter_bio[0] ? htmlspecialchars_decode( $application->presenter_bio[0] ) : null );\n\t\t\t\t\t$my_post = array(\n\t\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t\t'post_content' => $content,\n\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t'post_type'\t\t=> 'maker'\n\t\t\t\t\t);\n\n\t\t\t\t\t$pid = wp_insert_post( $my_post );\n\t\t\t\t\tif ( is_wp_error( $pid ) ) {\n\t\t\t\t\t\tWP_CLI::warning( $title );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::success( $title );\n\t\t\t\t\t}\n\n\t\t\t\t\t$website = ( $application->presentation_website ) ? $application->presentation_website : null;\n\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t$web = update_post_meta( $pid, 'presentation_website', $website );\n\n\t\t\t\t\t\tif ( !empty( $web ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$video = ( $application->video ) ? $application->video : null;\n\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$photo_url = ( $application->presenter_photo[0] ) ? $application->presenter_photo[0] : null;\n\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t$photo = add_post_meta( $pid, 'presenter_photo', $photo_url, true );\n\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get the Maker Faire year\n\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tWP_CLI::line( 'Updating Meta...' );\n\t\t\t\t\t$pid = $presentation->ID;\n\n\t\t\t\t\t$website = ( $application->presentation_website ) ? $application->presentation_website : null;\n\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t$web = update_post_meta( $pid, 'presentation_website', $website );\n\n\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $website );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $website );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$video = ( $application->video ) ? $application->video : null;\n\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record updated = ' . $post_id );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record updated = ' . $post_id );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$photo_url = ( $application->presenter_photo[0] ) ? $application->presenter_photo[0] : null;\n\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} elseif ( $application->presentation_type == 'Panel Presentation' ) {\n\t\t\t\tWP_CLI::line( 'Panel Presentation | ID: ' . get_the_ID() );\n\n\t\t\t\t$presentation_list = ( isset( $application->presenter_name ) ) ? $application->presenter_name : $application->name;\n\t\t\t\t$i = 0;\n\n\t\t\t\tif ( is_array( $presentation_list ) ) {\n\t\t\t\t\tforeach ( $presentation_list as $presenter_name ) {\n\t\t\t\t\t\t// We may need to revise this? If $application->m_maker_name[ $i ] return false, we may end up generating multiple\n\t\t\t\t\t\t// makers with the same title. If there are two empty maker name fields, that will generate dups.\n\t\t\t\t\t\t// Any other good idea around this? - CG\n\t\t\t\t\t\t$the_title = $application->presenter_name[ $i ] ? $application->presenter_name[ $i ] : $application->name;\n\t\t\t\t\t\t$title = htmlspecialchars( $the_title );\n\t\t\t\t\t\t$maker = get_page_by_title( $title, OBJECT, 'maker' );\n\n\t\t\t\t\t\techo ( isset( $maker->post_title ) ) ? WP_CLI::success( 'Found: ' . $maker->post_title ) : WP_CLI::warning( 'no title...' ) ;\n\n\t\t\t\t\t\tif ( ! $maker ) {\n\t\t\t\t\t\t\t// Setup post object...\n\t\t\t\t\t\t\t$content = ( isset( $application->presenter_bio[ $i ] ) ? htmlspecialchars_decode( $application->presenter_bio[ $i ] ) : null);\n\t\t\t\t\t\t\t$my_post = array(\n\t\t\t\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t\t\t\t'post_content' => $content,\n\t\t\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t\t\t'post_type'\t\t=> 'maker'\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t$pid = wp_insert_post( $my_post );\n\t\t\t\t\t\t\tif ( is_wp_error( $pid ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Presenter Name: ' . $title );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Presenter Name: ' . $title );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$website = ( $application->presentation_website ) ? $application->presentation_website : null;\n\t\t\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\t\t\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'website = ' . $website );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'website = ' . $website );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$video = ( $application->video ) ? $application->video : null;\n\t\t\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\t\t\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$photo_url = ( $application->presenter_photo[ $i ] ) ? $application->presenter_photo[ $i ] : null;\n\t\t\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::line( 'Updating Meta...' );\n\t\t\t\t\t\t\t$pid = $maker->ID;\n\n\t\t\t\t\t\t\t$website = ( $application->presentation_website ) ? $application->presentation_website : null;\n\t\t\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'website = ' . $website );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'website = ' . $website );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$video = ( $application->video ) ? $application->video : null;\n\t\t\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$photo_url = ( isset( $application->presenter_photo[ $i ] ) ) ? $application->presenter_photo[ $i ] : null;\n\t\t\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\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\t$i++;\n\t\t\t\t\t}\n\t\t\t\t// There are inconsistencies with the form names... We need to handle an instance that is a panel but \n\t\t\t\t// doesn't contain an array of panelists. That makes me a sad panda.\n\t\t\t\t} else {\n\t\t\t\t\t$the_title = $application->name ? $application->name : null;\n\t\t\t\t\t$title = htmlspecialchars( $the_title );\n\t\t\t\t\t$maker = get_page_by_title( $title, OBJECT, 'maker' );\n\n\t\t\t\t\techo ( isset( $maker->post_title ) ) ? WP_CLI::success( 'Found: ' . $maker->post_title ) : WP_CLI::warning( 'no title...' ) ;\n\n\t\t\t\t\tif ( ! $maker ) {\n\t\t\t\t\t\t// Setup post object...\n\t\t\t\t\t\t$content = ( isset( $application->presenter_bio[0] ) ? htmlspecialchars_decode( $application->presenter_bio[0] ) : null);\n\t\t\t\t\t\t$my_post = array(\n\t\t\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t\t\t'post_content' => $content,\n\t\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t\t'post_type'\t\t=> 'maker'\n\t\t\t\t\t\t); \n\n\t\t\t\t\t\t$pid = wp_insert_post( $my_post );\n\t\t\t\t\t\tif ( is_wp_error( $pid ) ) {\n\t\t\t\t\t\t\tWP_CLI::warning( 'Presenter Name: ' . $title );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWP_CLI::success( 'Presenter Name: ' . $title );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$website = ( $application->presentation_website ) ? $application->presentation_website : null;\n\t\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'website = ' . $website );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'website = ' . $website );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$video = ( $application->video ) ? $application->video : null;\n\t\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record created = ' . $post_id );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record created = ' . $post_id );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$photo_url = ( $application->presenter_photo[0] ) ? $application->presenter_photo[0] : null;\n\t\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo_url );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::line( 'Updating Meta...' );\n\t\t\t\t\t\t$pid = $maker->ID;\n\n\t\t\t\t\t\t$website = ( $application->presentation_website ) ? $application->presentation_website : null;\n\t\t\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t\t\t$web = update_post_meta( $pid, 'website', $website );\n\n\t\t\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'website = ' . $website );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'website = ' . $website );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$video = ( $application->video ) ? $application->video : null;\n\t\t\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$post_id = get_the_ID();\n\t\t\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'mfei_record updated = ' . $post_id );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'mfei_record updated = ' . $post_id );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$photo_url = ( isset( $application->presenter_photo[0] ) ) ? $application->presenter_photo[0] : null;\n\t\t\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif ( $type == 'performer' ) {\n\t\t\tWP_CLI::line( 'Performer | ID: ' . get_the_ID() );\n\n\t\t\t$the_title = $application->performer_name ? $application->performer_name : $application->name;\n\t\t\t$title = htmlspecialchars( $the_title );\n\t\t\t$performer = get_page_by_title( $title, OBJECT, 'maker' );\n\n\t\t\techo ( isset( $performer->post_title ) ) ? WP_CLI::success( 'Found: ' . $performer->post_title ) : WP_CLI::warning( 'no title...' );\n\n\t\t\tif ( ! $performer ) {\n\t\t\t\t// Setup post object...\n\t\t\t\t$content = ($application->public_description ? htmlspecialchars_decode( $application->public_description ) : null);\n\t\t\t\t$my_post = array(\n\t\t\t\t\t'post_title' => $title,\n\t\t\t\t\t'post_content' => $content,\n\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t'post_type'\t\t=> 'maker'\n\t\t\t\t);\n\n\t\t\t\t$pid = wp_insert_post( $my_post );\n\t\t\t\tif ( is_wp_error( $pid ) ) {\n\t\t\t\t\tWP_CLI::warning( $title );\n\t\t\t\t} else {\n\t\t\t\t\tWP_CLI::success( $title );\n\t\t\t\t}\n\n\t\t\t\t// Get Website URL\n\t\t\t\t$website = ( $application->performer_website ) ? $application->performer_website : null;\n\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t$web = update_post_meta( $pid, 'performer_website', $website );\n\n\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Get Video URL\n\t\t\t\t$video = ( $application->performer_video ) ? $application->performer_video : null;\n\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Get Post ID\n\t\t\t\t$post_id = get_the_ID();\n\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Get Photo URL\n\t\t\t\t$photo_url = ( $application->performer_photo ) ? $application->performer_photo : null;\n\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t$photo = add_post_meta( $pid, 'presenter_photo', $photo_url, true );\n\n\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo_url );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo_url );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Get the Maker Faire year\n\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tWP_CLI::line( 'Updating Meta...' );\n\t\t\t\t$pid = $performer->ID;\n\n\t\t\t\t$website = ( $application->performer_website ) ? $application->performer_website : null;\n\t\t\t\tif ( ! empty( $website ) ) {\n\t\t\t\t\t$web = update_post_meta( $pid, 'performer_website', $website );\n\n\t\t\t\t\tif ( ! empty( $web ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'Website = ' . $website );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'Website = ' . $website );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$video = ( $application->performer_video ) ? $application->performer_video : null;\n\t\t\t\tif ( ! empty( $video ) ) {\n\t\t\t\t\t$vid = update_post_meta( $pid, 'video', $video );\n\n\t\t\t\t\tif ( ! empty( $vid ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'Video = ' . $video );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'Video = ' . $video );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$post_id = get_the_ID();\n\t\t\t\tif ( ! empty( $post_id ) ) {\n\t\t\t\t\t$mfei_record = add_post_meta( $pid, 'mfei_record', $post_id );\n\n\t\t\t\t\tif ( ! empty( $mfei_record ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'mfei_record = ' . $post_id );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'mfei_record = ' . $post_id );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$photo_url = ( $application->performer_photo ) ? $application->performer_photo : null;\n\t\t\t\tif ( ! empty( $photo_url ) ) {\n\t\t\t\t\t$photo = add_post_meta( $pid, 'photo_url', $photo_url, true );\n\n\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'Photo = ' . $photo );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'Photo = ' . $photo );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$mf = ( $application->maker_faire ) ? $application->maker_faire : null;\n\t\t\t\tif ( ! empty( $mf ) ) {\n\t\t\t\t\t$faire = add_post_meta( $pid, 'maker_faire', $mf, true );\n\n\t\t\t\t\tif ( ! empty( $photo ) ) {\n\t\t\t\t\t\tWP_CLI::success( 'Maker Faire = ' . $mf );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( 'Maker Faire = ' . $mf );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tWP_CLI::line( '' );\n\t\tendwhile;\n\t\tWP_CLI::success( \"Boom!\" );\n\t}",
"function stInterDogmaEffect() { $current_effect_type = self::getGameStateValue('current_effect_type');\n \n // Indicate the potential new (non-demand) dogma to come\n if ($current_effect_type == 0) { // I demand dogma : there is only one for this version of this game\n $current_effect_number = 1; // Switch on the first non-demand dogma, if exists\n }\n else {\n $current_effect_number = self::getGameStateValue('current_effect_number') + 1; // Next non-demand dogma, if exists\n }\n \n $card_id = self::getGameStateValue('dogma_card_id');\n $card = self::getCardInfo($card_id);\n \n // Check whether this new dogma exists actually or not\n if ($current_effect_number > 3 || $card['non_demand_effect_'.$current_effect_number] === null) {\n // No card has more than 3 non-demand dogma => there is no more effect\n // or the next non-demand-dogma effect is not defined\n \n $sharing_bonus = self::getGameStateValue('sharing_bonus');\n $launcher_id = self::getGameStateValue('active_player');\n \n // Stats\n $i_demand_effects = false;\n $executing_players = self::getExecutingPlayers();\n foreach($executing_players as $player_id => $stronger_or_equal) {\n if ($player_id == $launcher_id) {\n continue;\n }\n if ($stronger_or_equal) { // This player had effectively shared some dogma effects of the card\n self::incStat(1, 'sharing_effects_number', $player_id);\n }\n else { // The card had an I demand effect, and at least one player executed it with effects\n self::incStat(1, 'i_demand_effects_number', $player_id);\n $i_demand_effects = true;\n }\n\n }\n if ($i_demand_effects) {\n self::incStat(1, 'dogma_actions_number_with_i_demand', $launcher_id);\n }\n if ($sharing_bonus == 1) {\n self::incStat(1, 'dogma_actions_number_with_sharing', $launcher_id);\n }\n \n // Award the sharing bonus if needed\n if ($sharing_bonus == 1) {\n self::notifyGeneralInfo('<span class=\"minor_information\">${text}</span>', array('i18n'=>array('text'), 'text'=>clienttranslate('Sharing bonus.')));\n $player_who_launched_the_dogma = self::getGameStateValue('active_player');\n try {\n self::executeDraw($player_who_launched_the_dogma); // Draw a card with age consistent with player board\n }\n catch (EndOfGame $e) {\n // End of the game: the exception has reached the highest level of code\n self::trace('EOG bubbled from self::stInterDogmaEffect');\n self::trace('interDogmaEffect->justBeforeGameEnd');\n $this->gamestate->nextState('justBeforeGameEnd');\n return;\n }\n }\n \n // The active player may have changed during the dogma. Reset it on the player whose turn was\n $this->gamestate->changeActivePlayer($launcher_id);\n \n // Reset player table\n self::resetPlayerTable();\n \n // [R] Disable the flags used when in dogma \n self::setGameStateValue('dogma_card_id', -1);\n self::setGameStateValue('current_effect_type', -1);\n self::setGameStateValue('current_effect_number', -1);\n self::setGameStateValue('sharing_bonus', -1);\n self::setGameStateValue('current_player_under_dogma_effect', -1);\n self::setGameStateValue('step', -1);\n self::setGameStateValue('step_max', -1);\n self::setGameStateValue('special_type_of_choice', -1);\n self::setGameStateValue('choice', -1);\n self::setGameStateValue('splay_direction', -1);\n self::setGameStateValue('n_min', -1);\n self::setGameStateValue('n_max', -1);\n self::setGameStateValue('solid_constraint', -1);\n self::setGameStateValue('owner_from', -1);\n self::setGameStateValue('location_from', -1);\n self::setGameStateValue('owner_to', -1);\n self::setGameStateValue('location_to', -1);\n self::setGameStateValue('bottom_to', -1);\n self::setGameStateValue('age_min', -1);\n self::setGameStateValue('age_max', -1);\n self::setGameStateValue('color_array', -1);\n self::setGameStateValue('with_icon', -1);\n self::setGameStateValue('without_icon', -1);\n self::setGameStateValue('not_id', -1);\n self::setGameStateValue('can_pass', -1);\n self::setGameStateValue('n', -1);\n self::setGameStateValue('id_last_selected', -1);\n self::setGameStateValue('age_last_selected', -1);\n self::setGameStateValue('color_last_selected', -1);\n self::setGameStateValue('score_keyword', -1);\n self::setGameStateValue('auxiliary_value', -1);\n for($i=1; $i<=9; $i++) {\n self::setGameStateInitialValue('nested_id_'.$i, -1);\n self::setGameStateInitialValue('nested_current_effect_number_'.$i, -1);\n }\n \n // End of this player action\n self::trace('interDogmaEffect->interPlayerTurn');\n $this->gamestate->nextState('interPlayerTurn');\n return;\n }\n \n // There is another (non-demand) effect to perform\n self::setGameStateValue('current_effect_type', 1);\n self::setGameStateValue('current_effect_number', $current_effect_number);\n \n // Jump to this effect\n self::trace('interDogmaEffect->dogmaEffect');\n $this->gamestate->nextState('dogmaEffect');\n }",
"function addBrand($name, $supplier_id)\n {\n// if ($supplierFind)\n// $supplier = $supplierFind['supplier_id'];\n// else {\n// $newSupplier = $this->insert(\"INSERT INTO `suppliers`(`name`)\n// VALUES ('$supplier')\");\n// $supplier = $newSupplier;\n// }\n\n return $this->insert(\"\n INSERT INTO `brands`(`name`, `supplier_id`)\n VALUES ('$name', $supplier_id)\");\n }",
"private function writePerformers () {\n\t\t$GLOBALS[\"logger\"]->debug(\"writePerformers\");\n\t\tif ($this->performers != NULL) {\n\t\t\tforeach ($this->performers as $performer) {\n\t\t\t\t$GLOBALS[\"logger\"]->debug(\"Got a performer {$performer->id}\");\n\t\t\t\t// $performer is an Actor\n\t\t\t\t$newRec = ORM::for_table(self::REPTS_PERFS_TABLE)->create();\n\t\t\t\t$newRec->report_id = $this->id;\n\t\t\t\t$newRec->actor_id = $performer->id;\n\t\t\t\t$newRec->save();\n//\t\t\t\t$insstmt = \"INSERT INTO REPORTS_PERFORMERS (REPORT_ID, ACTOR_ID) \" .\n//\t\t\t\t\t\"VALUES ($rptid, $actid)\";\n\t\t\t}\n\t\t}\n\t}",
"function vistaportal_form_premed_add($form, &$form_state) {\n $form_state['p_num_schools']++;\n $form_state['rebuild'] = TRUE;\n }",
"public function produceFreshSoda($productionOrder)\n {\n $option = $this->rules()->getProductionRule();\n $inventory = $this->inventory;\n $report = \"\";\n\n if ($option == 'optimized')\n {\n foreach ($productionOrder as $order)\n {\n $key = $order->number;\n $report .= \"Depósito $key :\";\n if ($inventory->tanks->$key->contains =='water') // temos água\n {\n $qttToProduce = self::rd0($inventory->tanks->$key->quantity / $this->rules()->getMaterialConsumption('water'));\n $neededSugar = self::rd0($qttToProduce * $this->rules()->getMaterialConsumption('sugar'));\n $neededCoffee = self::rd0($qttToProduce * $this->rules()->getMaterialConsumption('coffee'));\n if ($inventory->sugar >= $neededSugar && $inventory->coffee >= $neededCoffee) // temos café e açucar\n {\n // Vamos produzir\n $report .= \"Produzidos $qttToProduce unidades\";\n $inventory->tanks->$key->contains = 'freshSoda';\n $inventory->tanks->$key->quantity = $qttToProduce;\n $inventory->sugar -= $neededSugar;\n $inventory->coffee -= $neededCoffee;\n }\n else\n {\n $report .= \"Falta matéria prima\";\n }\n }\n else\n {\n $report .= \"Não contém água\";\n }\n }\n }\n\n\n if ($option == 'strictPlayerOrder')\n {\n foreach ($productionOrder as $order)\n {\n $key = $order->number;\n $report .= \"Depósito $key :\";\n\n // Verificar se foram especificadas as MP\n if ($order->sugar == 0 && $order->coffee == 0)\n {\n //Não foi especificado a quantidade de materias primas a usar. Relatamos e saltamos para próxima ordem\n $report .= \"Falta especificar matéria prima; \";\n continue;\n }\n\n // Verificar existência de MP\n if ($order->sugar > $inventory->sugar || $order->coffee > $inventory->coffee)\n {\n //Não temos MP suficientes para produzir. Relatamos e saltamos para próxima ordem\n $report .= \"Falta matéria prima; \";\n continue;\n }\n \n // Calcular os valores de fórmula\n $qttToProduce = self::rd0($inventory->tanks->$key->quantity / $this->rules()->getMaterialConsumption('water'));\n $formulaSugar = self::rd0($qttToProduce * $this->rules()->getMaterialConsumption('sugar'));\n $formulaCoffee = self::rd0($qttToProduce * $this->rules()->getMaterialConsumption('coffee'));\n\n // Verificamos formulação e conteúdo do depósito\n if($inventory->tanks->$key->contains != 'water' || $order->sugar != $formulaSugar || $order->coffee != $formulaCoffee)\n {\n // Ordem não obedece a formulação ou depósito não contém água\n // Produzimos refresco defeituoso, relatamos e saltamos para próxima ordem\n if ($inventory->tanks->$key->contains == 'water') $inventory->tanks->$key->quantity = $qttToProduce;\n $inventory->sugar -= $order->sugar;\n $inventory->coffee -= $order->coffee;\n $inventory->tanks->$key->contains = 'damagedSoda';\n $report .= \"Formulação errada; \";\n continue;\n }\n\n // Produzimos refresco em conformidade com a formulação e relatamos\n $inventory->tanks->$key->quantity = $qttToProduce;\n $inventory->sugar -= $order->sugar;\n $inventory->coffee -= $order->coffee;\n $inventory->tanks->$key->contains = 'freshSoda';\n $report .= \"Produção OK; \";\n }\n\n }\n $this->inventory = $inventory;\n return $report;\n }",
"public function store(Request $request)\n { \n $id= Auth::id();\n \n $poc= DB::table('pocs')\n ->select('city')\n ->where('city','=',$request->city)\n ->first();\n if ($poc==NULL) {\n return view('farmers.poc')->withPoc($poc);\n }\n\n $user= User::find($id);\n $user->profile=1;\n $user->save();\n\n $farmer = new Farmer;\n \n $farmer->user_id=$id;\n $farmer->fname=$request->fname;\n $farmer->lname=$request->lname;\n $farmer->age=$request->age;\n $farmer->address=$request->address;\n $farmer->state=$request->state;\n $farmer->city=$request->city;\n $farmer->pincode=$request->pincode;\n $farmer->vegetable=$request->vegetable;\n $farmer->rating=0;\n $farmer->loan=0;\n\n $farmer->save();\n \n \n //redirect to another base\n \n return redirect()->route('farmers.show',$request->city);\n\n }",
"public function run()\n {\n factory(Spare::class, 20)->create();\n }",
"public function create($id, $id_part, $id_match)\n {\n //\n }",
"public function recruit($perso) {\n\t\t\t$this->fighters[] = $perso;\n\t}",
"public function farm()\n {\n return $this->belongsTo('App\\Farm', 'farm_id');\n }",
"public function addProductLine( $product_id, $combination_id = null, $quantity = 1.0, $params = [] )\n {\n // Do the Mambo!\n $line_type = 'product';\n\n // Customer\n $customer = $this->customer;\n $salesrep = array_key_exists('sales_rep_id', $params) \n ? SalesRep::find( (int) $params['sales_rep_id'] ) \n : $customer->salesrep;\n \n // Currency\n $currency = $this->document_currency;\n\n // Product\n if ($combination_id>0) {\n $combination = Combination::with('product')->with('product.tax')->findOrFail(intval($combination_id));\n $product = $combination->product;\n $product->reference = $combination->reference;\n $product->name = $product->name.' | '.$combination->name;\n } else {\n $product = Product::with('tax')->findOrFail(intval($product_id));\n }\n\n $reference = $product->reference;\n $name = array_key_exists('name', $params) \n ? $params['name'] \n : $product->name;\n\n $measure_unit_id = $product->measure_unit_id;\n\n $package_measure_unit_id = array_key_exists('package_measure_unit_id', $params) \n ? $params['package_measure_unit_id'] \n : $product->measure_unit_id;\n\n $pmu_conversion_rate = 1.0; // Temporarily default\n\n $pmu_label = ''; // Temporarily default\n\n // Measure unit stuff...\n if ( $package_measure_unit_id != $measure_unit_id )\n {\n $mu = $product->measureunits->where('id', $measure_unit_id )->first();\n $pmu = $product->measureunits->where('id', $package_measure_unit_id)->first();\n\n $pmu_conversion_rate = $pmu->conversion_rate;\n\n $quantity = $quantity * $pmu_conversion_rate;\n\n $pmu_label = array_key_exists('pmu_label', $params) && $params['pmu_label']\n ? $params['pmu_label'] \n : $pmu->name.' : '.(int) $pmu_conversion_rate.'x'.$mu->name;\n \n }\n\n // $cost_price = $product->cost_price;\n // Do this ( because of getCostPriceAttribute($value) ):\n $cost_price = $product->getOriginal('cost_price');\n $cost_average = $product->cost_average;\n\n // Tax\n $tax = $product->tax;\n $taxing_address = $this->taxingaddress;\n $tax_percent = $tax->getTaxPercent( $taxing_address );\n $sales_equalization = array_key_exists('sales_equalization', $params) \n ? $params['sales_equalization'] \n : $customer->sales_equalization;\n\n // Product Price\n $price = $product->getPrice();\n// if ( $price->currency->id != $currency->id ) {\n// $price = $price->convert( $currency );\n// }\n $unit_price = $price->getPrice();\n\n // Calculate price per $customer_id now!\n // $customer_price = $product->getPriceByCustomer( $customer, $quantity, $currency );\n $customer_price = $product->getPriceByCustomerPriceList( $customer, $quantity, $currency );\n\n // Is there a Price for this Customer?\n if (!$customer_price) return null; // Product not allowed for this Customer\n\n $customer_price->applyTaxPercent( $tax_percent );\n $unit_customer_price = $customer_price->getPrice();\n\n // Still with me? \n if ( $package_measure_unit_id != $measure_unit_id &&\n \n // Is there any package rule?\n $pack_rule = $customer->getPackageRule( $product, $package_measure_unit_id, $currency ) )\n {\n // Calculate quantity conversion\n $pmu_conversion_rate = $pack_rule->conversion_rate;\n $pmu_label = $pack_rule->name;\n\n // Assumes $pack_rule is not null\n // $package_price = $pack_rule->price;\n $customer_final_price = new Price( $pack_rule->getUnitPrice() );\n $customer_final_price->applyTaxPercent( $tax_percent );\n\n // Still one thing left: rule_type = 'promo' (avoid)\n $promo_rule = null;\n \n\n } else {\n //\n $customer_final_price = $product->getPriceByCustomerPriceRules( $customer, $quantity, $currency );\n\n // Still one thing left: rule_type = 'promo'\n $promo_rule = $customer->getExtraQuantityRule( $product, $currency );\n }\n\n\n\n \n if ( !$customer_final_price )\n $customer_final_price = clone $customer_price; // No price Rules available\n \n // Better price?\n if ( $customer_final_price->getPrice() > $unit_customer_price )\n {\n $customer_final_price = clone $customer_price;\n }\n $unit_customer_final_price = $customer_final_price->getPrice();\n\n\n // Still one thing left: rule_type = 'promo'\n $extra_quantity = 0.0;\n $extra_quantity_label = '';\n\n if ($promo_rule)\n {\n // First: Does it apply?\n if ( $unit_customer_final_price == $unit_customer_price ) // No price rule has been applied\n {\n $extra_quantity = floor( $quantity / $promo_rule->from_quantity ) * $promo_rule->extra_quantity;\n $extra_quantity_label = $extra_quantity > 0 ? $promo_rule->name : '';\n }\n }\n\n\n\n // Price Policy\n $pricetaxPolicy = array_key_exists('prices_entered_with_tax', $params) \n ? $params['prices_entered_with_tax'] \n : $customer_price->price_is_tax_inc;\n/*\n // Customer Final Price\n if ( array_key_exists('prices_entered_with_tax', $params) && array_key_exists('unit_customer_final_price', $params) )\n {\n $unit_customer_final_price = new Price( $params['unit_customer_final_price'], $pricetaxPolicy, $currency );\n\n $unit_customer_final_price->applyTaxPercent( $tax_percent );\n\n } else {\n\n $unit_customer_final_price = clone $customer_price;\n }\n*/\n // Discount\n $discount_percent = array_key_exists('discount_percent', $params) \n ? $params['discount_percent'] \n : 0.0;\n\n // Final Price\n $final_price = clone $customer_final_price;\n// if ( $discount_percent ) \n// $unit_final_price->applyDiscountPercent( $discount_percent );\n\n // Sales Rep\n $sales_rep_id = array_key_exists('sales_rep_id', $params) \n ? $params['sales_rep_id'] \n : optional($salesrep)->id;\n \n $commission_percent = array_key_exists('sales_rep_id', $params) && array_key_exists('commission_percent', $params) \n ? $params['commission_percent'] \n : optional($salesrep)->getCommission( $product, $customer ) ?? 0.0;\n\n\n\n // Misc\n $line_sort_order = array_key_exists('line_sort_order', $params) \n ? $params['line_sort_order'] \n : $this->getNextLineSortOrder();\n/*\n $extra_quantity = array_key_exists('extra_quantity', $params) \n ? $params['extra_quantity'] \n : 0.0;\n\n $extra_quantity_label = array_key_exists('extra_quantity_label', $params) \n ? $params['extra_quantity_label'] \n : '';\n*/\n $notes = array_key_exists('notes', $params) \n ? $params['notes'] \n : '';\n\n\n // Build OrderLine Object\n $data = [\n 'line_sort_order' => $line_sort_order,\n 'line_type' => $line_type,\n 'product_id' => $product_id,\n 'combination_id' => $combination_id,\n 'reference' => $reference,\n 'name' => $name,\n 'quantity' => $quantity,\n 'measure_unit_id' => $measure_unit_id,\n 'extra_quantity' => $extra_quantity,\n 'extra_quantity_label' => $extra_quantity_label,\n\n 'package_measure_unit_id' => $package_measure_unit_id,\n 'pmu_conversion_rate' => $pmu_conversion_rate,\n 'pmu_label' => $pmu_label,\n\n 'prices_entered_with_tax' => $pricetaxPolicy,\n \n 'cost_price' => $cost_price,\n 'cost_average' => $cost_average,\n 'unit_price' => $unit_price,\n 'unit_customer_price' => $unit_customer_price,\n 'unit_customer_final_price' => $customer_final_price->getPrice(),\n 'unit_customer_final_price_tax_inc' => $customer_final_price->getPriceWithTax(),\n 'unit_final_price' => $final_price->getPrice(),\n 'unit_final_price_tax_inc' => $final_price->getPriceWithTax(), \n 'sales_equalization' => $sales_equalization,\n 'discount_percent' => $discount_percent,\n 'discount_amount_tax_incl' => 0.0, // floatval( $request->input('discount_amount_tax_incl', 0.0) ),\n 'discount_amount_tax_excl' => 0.0, // floatval( $request->input('discount_amount_tax_excl', 0.0) ),\n\n 'total_tax_incl' => $quantity * $final_price->getPriceWithTax(),\n 'total_tax_excl' => $quantity * $final_price->getPrice(),\n\n 'tax_percent' => $tax_percent,\n 'commission_percent' => $commission_percent,\n 'notes' => $notes,\n 'locked' => 0,\n \n // 'customer_order_id',\n 'tax_id' => $tax->id,\n 'sales_rep_id' => $sales_rep_id,\n ];\n\n $extra_data = [];\n\n // Ecotaxes stuff\n if ( Configuration::isTrue('ENABLE_ECOTAXES') && ($product->ecotax_id>0) )\n {\n //\n $extra_data = [\n 'ecotax_id' => $product->ecotax_id,\n 'ecotax_amount' => $product->ecotax->amount,\n 'ecotax_total_amount' => $quantity * $product->ecotax->amount,\n ];\n }\n\n $data += $extra_data;\n\n\n // Finishing touches\n $lineClass = $this->getClassName().'Line';\n $document_line = ( new $lineClass() )->create( $data );\n\n $this->lines()->save($document_line);\n\n\n // Let's deal with taxes\n $product->sales_equalization = $sales_equalization;\n $rules = $product->getTaxRules( $this->taxingaddress, $this->customer );\n\n $document_line->applyTaxRules( $rules );\n\n // Hummm! What about extra units (quantity at no cost)?\n if ( $extra_quantity > 0.0 )\n {\n // Re-Build OrderLine Object\n $data['line_sort_order'] = $line_sort_order + 1; // Stay close to previous line, because this line \"is a child of\" previous line\n $data['quantity'] = $extra_quantity;\n\n $data['extra_quantity'] = 0.0;\n $data['extra_quantity_label'] = '';\n\n $data['unit_customer_final_price'] = 0.0;\n $data['unit_customer_final_price_tax_inc'] = 0.0;\n\n $data['unit_final_price'] = 0.0;\n $data['unit_final_price_tax_inc'] = 0.0;\n\n $data['total_tax_incl'] = 0.0;\n $data['total_tax_excl'] = 0.0;\n\n $data['notes'] = $extra_quantity_label;\n\n // Add extra line\n $document_extra_line = ( new $lineClass() )->create( $data );\n\n $this->lines()->save($document_extra_line);\n\n\n // Let's deal with taxes\n $document_extra_line->applyTaxRules( $rules );\n }\n\n\n // Now, update Document Totals\n $this->makeTotals();\n\n\n // Good boy, bye then\n return $document_line;\n\n }",
"public function store($id)\n {\n $requisitionForm = RequisitionForm::create(array(\n \"vendor\" => Input::get(\"vendor\"),\n \"vendor_no\" => Input::get(\"vendor_no\"),\n \"address\" => Input::get(\"address\"),\n \"particular_id\" => Input::get(\"particular_id\"),\n ));\n\n return \"<h3 class='text-success'> RequisitionForm Registered Successful </h3>\";\n\n }",
"public function insert_db(){\n\n\t\t//function no longer needed see FarmersMarketLocations\n\t\tif(is_null($this->farmsAll)){\n\t\t\t$this->farmsAll = $this->getFarms();\n\t\t}\t\t\n\t\tif(is_null($this->farmsVegetables)){\n\t\t\t$this->farmsVegetables = $this->getFarmsVegetables();\n\t\t}\n\t\tif(is_null($this->farmsFruits)){\n\t\t\t$this->farmsFruits = $this->getFarmsFruits();\n\t\t}\n\t\tif(is_null($this->farmsEggs)){\n\t\t\t$this->farmsEggs = $this->getFarmsEggs();\n\t\t}\n\t\tif(is_null($this->farmsDairy)){\n\t\t\t$this->farmsDairy = $this->getFarmsDairy();\n\t\t}\n\t\tif(is_null($this->farmsMeat)){\n\t\t\t$this->farmsMeat = $this->getFarmsMeat();\n\t\t}\n\t\tif(is_null($this->farmsPickYourOwn)){\n\t\t\t$this->farmsPickYourOwn = $this->getFarmsPickYourOwn();\n\t\t}\n\n\t\t$i=0;\n\t\tforeach ($this->farmsAll as $farm) {\n\t\t\t$name = $farm['name'];\n\t\t\t$this->farmsAll[$i]['vegetables']= false;\n\t\t\t$this->farmsAll[$i]['fruits']= false;\n\t\t\t$this->farmsAll[$i]['meat']= false;\n\t\t\t$this->farmsAll[$i]['dairy']= false;\n\t\t\t$this->farmsAll[$i]['eggs']= false;\n\t\t\t$this->farmsAll[$i]['pickYourOwn']= false;\n\t\t\tforeach($this->farmsVegetables as $vege){\n\t\t\t\tif(in_array($name, $vege)){\n\t\t\t\t\t$this->farmsAll[$i]['vegetables'] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach($this->farmsFruits as $fruit){\n\t\t\t\tif(in_array($name, $fruit)){\n\t\t\t\t\t$this->farmsAll[$i]['fruits'] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach($this->farmsMeat as $meat){\n\t\t\t\tif(in_array($name, $meat)){\n\t\t\t\t\t$this->farmsAll[$i]['meat'] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach($this->farmsDairy as $dairy){\n\t\t\t\tif(in_array($name, $dairy)){\n\t\t\t\t\t$this->farmsAll[$i]['dairy'] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach($this->farmsEggs as $egg){\n\t\t\t\tif(in_array($name, $egg)){\n\t\t\t\t\t$this->farmsAll[$i]['eggs'] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach($this->farmsPickYourOwn as $pick){\n\t\t\t\tif(in_array($name, $pick)){\n\t\t\t\t\t$this->farmsAll[$i]['pickYourOwn'] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t$i=$i+1;\n\t\t}\n\t\t$this->dsn = \"mysql:dbname=\".$this->dbName.\";host=\".$this->host;\n\t\t$this->dbConnect();\n\t\tforeach($this->farmsAll as $farm){\n\t\t\tif(!$this->farmExists($farm['name'])){\n\t\t\t\t$data = array(\n\t\t\t\t\t$farm['name'],\n\t\t\t\t\t$farm['address'],\n\t\t\t\t\t$farm['latitude'],\n\t\t\t\t\t$farm['longitude'],\n\t\t\t\t\t$farm['vegetables'],\n\t\t\t\t\t$farm['fruits'],\n\t\t\t\t\t$farm['meat'],\n\t\t\t\t\t$farm['dairy'],\n\t\t\t\t\t$farm['eggs'],\n\t\t\t\t\t$farm['pickYourOwn']);\n\t\t\t\t$db_query = 'INSERT INTO '.$this->tableName.' (name, address, latitude, longitude, vegetables, fruits, meat, dairy, eggs, pickYourOwn) VALUES (?,?,?,?,?,?,?,?,?,?)';\n\t\t\t\t$insertStmt = $this->con->prepare($db_query);\n\t\t\t\t$insertStmt->execute($data);\n\t\t\t\tif($insertStmt == false){\n\t\t\t\t\techo 'Error inserting into table';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"function run_ammonite_medpax() {\n\t$plugin = new Ammonite_Medpax();\n\t$plugin->run();\n}",
"function drush_sandwich_make_me_a_sandwich($filling = 'ascii') {\n $str_spreads = '';\n // Read options with drush_get_option. Note that the options _must_\n // be documented in the $items structure for this command in the 'command' hook.\n // See `drush topic docs-commands` for more information.\n if ($spreads = drush_get_option('spreads')) {\n $list = implode(' and ', explode(',', $spreads));\n $str_spreads = ' with just a dash of ' . $list;\n }\n $msg = dt('Okay. Enjoy this !filling sandwich!str_spreads.',\n array('!filling' => $filling, '!str_spreads' => $str_spreads)\n );\n drush_print(\"\\n\" . $msg . \"\\n\");\n\n if (drush_get_context('DRUSH_NOCOLOR')) {\n $filename = dirname(__FILE__) . '/sandwich-nocolor.txt';\n }\n else {\n $filename = dirname(__FILE__) . '/sandwich.txt';\n }\n drush_print(file_get_contents($filename));\n // Find out how many sandwiches have been served, and set\n // the cached value to one greater.\n $served = drush_sandwich_sandwiches_served();\n drush_cache_set(drush_get_cid('sandwiches-served'), $served + 1);\n}",
"public function __construct($prducerId) \n {\n $this->id = $prducerId;\n }",
"public function addBedOffer($item, $id){\n\n $storedItem = ['qty' => 0, 'productPrice' => $item->productPrice, 'item' => $item];\n if($this->items){\n if(array_key_exists($id, $this->items)){\n $storedItem = $this->items[$id];\n }\n }\n\n $storedItem['qty']++;\n $storedItem['productPrice'] = $item->productPrice * $storedItem['qty'];\n $this->items[$id] = $storedItem;\n $this->totalQty++;\n $this->totalPrice += $item->productPrice;\n }",
"function vistaportal_form_med_add($form, &$form_state) {\n $form_state['m_num_schools']++;\n $form_state['rebuild'] = TRUE;\n }",
"private function setMerchantD()\n {\n $this->mid = config('gladepay.mid');\n }",
"public function create()\n {\n return view('farmers.create');\n }",
"function getArgForDogmaEffect() {\n $nested_id_1 = self::getGameStateValue('nested_id_1');\n $card_id = $nested_id_1 == -1 ? self::getGameStateValue('dogma_card_id') : $nested_id_1;\n $card = self::getCardInfo($card_id);\n \n $current_effect_type = $nested_id_1 == -1 ? self::getGameStateValue('current_effect_type') : 1 /* Non-demand effects only*/;\n $current_effect_number = $nested_id_1 == -1 ? self::getGameStateValue('current_effect_number') : self::getGameStateValue('nested_current_effect_number_1');\n \n $card_names = self::getDogmaCardNames();\n \n $args = array_merge(array(\n 'qualified_effect' => self::qualifyEffect($current_effect_type, $current_effect_number, $card),\n 'card_name' => 'card_name',\n 'JSCardEffectQuery' => self::getJSCardEffectQuery($card_id, $card['age'], $current_effect_type, $current_effect_number)\n ), $card_names);\n \n $args['i18n'][] = 'qualified_effect';\n $args['i18n'][] = 'card_name';\n \n return $args;\n }",
"function hook_uuid_entities_post_rebuild($plan_name) {\n\n}",
"function hook_uuid_entities_post_rebuild($plan_name) {\n\n}",
"public function run()\n {\n factory(App\\Producer::class, 20)->create()->each(function ($producer) {\n $producer->products()->save(factory(App\\Product::class)->make());\n });\n /**\n * create factory with funded status\n */\n factory(App\\Producer::class, 2)->create()->each(function ($producer) {\n $producer->products()->save(factory(App\\Product::class)->make([\n 'value' => '250000000',\n 'fund' => '250000000']));\n });\n }",
"public function add($id_plate){\n\n $product = array_key_exists($id_plate,$this->cart) ? $this->cart[$id_plate] : new product([\n\n 'plate' => Plate::where('id', $id_plate)->get(),\n 'count' => 0,\n ]);\n $product->put('count',$product->get('count') + 1);\n //dd(json_decode($product['plate'],true));\n $this->cart['sum'] += json_decode($product['plate'],true)[0]['price'];\n $this->cart[$id_plate] = $product;\n return $this;\n }",
"public function store(Request $request, Farmer $farmer)\n {\n $farmer = Farmer::create($request->all());\n return response()->json($farmer, 201);\n }",
"public function create()\n {\n //\n return view('forms.farmers');\n }",
"public function actionAddapplicant($id) {\n $data['training'] = Trainings::model()->findByPk($id);\n $this->render('training_applicants', $data);\n }",
"public function pen_house_stocking($farm_id)\n {\n // $farm_id = Auth::User()->farm_id;\n $has_pen_house_stocking = PenHouseStocking::where('farm_id', $farm_id)\n ->first();\n if ($has_pen_house_stocking) {\n return true;\n } else {\n return false;\n }\n }",
"public function add_planting_site($project_id) \r\n\t{\r\n\t\t//form validation rules\r\n\t\t$this->form_validation->set_rules('site_name', 'Site Name', 'required|xss_clean');\r\n\t\t\r\n\t\t//if form has been submitted\r\n\t\tif ($this->form_validation->run())\r\n\t\t{\r\n\t\t\tif($this->planting_sites_model->add_planting_site($project_id))\r\n\t\t\t{\r\n\t\t\t\t$this->session->set_userdata('success_message', 'Target Area Location added successfully');\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->session->set_userdata('error_message', 'Could not add project_area. Please try again');\r\n\t\t\t}\r\n\t\t}\r\n\t\tredirect('tree-planting/planting-sites/'.$project_id);\r\n\t}",
"public static function AddOffer(){\n\n\t\t\t\n\n\t\t}",
"public function run()\n {\n factory(\\App\\Entities\\Arma::class)->create([\n 'arma' => 'Inf.'\n ]);\n factory(\\App\\Entities\\Arma::class)->create([\n 'arma' => 'Cab.'\n ]);\n\n factory(\\App\\Entities\\Arma::class)->create([\n 'arma' => 'Art.'\n ]);\n\n factory(\\App\\Entities\\Arma::class)->create([\n 'arma' => 'Com.'\n ]);\n\n factory(\\App\\Entities\\Arma::class)->create([\n 'arma' => 'Ing.'\n ]);\n }",
"public function add_factory() {\n $this->factorycount++;\n }",
"public function createPackDemmarrage($id_offre = 12)\n\t{\n\t\t\t$boolTest = false;\n\t\n\t\t\t$gestionOffre = new GestionOffre();\n\t\t\t$gestionOffre->setIdOffre($id_offre);\n\t\t\t$gestionOffre->setIdUser($this->_id_client);\n\t\t\t$gestionOffre->setNomOffre(\"plan de support essentiel\");\n\t\t\t$gestionOffre->setDatePriseOffre($this->_date_add);\n\n\t\t\tif($gestionOffre->save())\n\t\t\t\t $boolTest = true;\n\t\t\t\n\t\t\tif($boolTest == true)\n\t\t\t\t$boolTest = $this->save();\n\t\t\t\t\n\t\t\tif($boolTest == true)\n\t\t\t\treturn 'Pack de demarrage enregistre';\n\t\t\telse return 'Pack de demarrage non enregistre';\n\t\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t}",
"public function createWorkerCurrentDepartment($id){\n $department = Department::findOrFail($id);\n return view('panel.register.encargadoRegisterCurrentD')->with([\n 'department' => $department,\n ]);\n }",
"function add()\r\n\t{\r\n\t\t$sid = $_SESSION['userid'];\r\n\t\tif (!isset($sid)) {\r\n\t\t\t$sid = 1; //admin\r\n\t\t}\r\n\t\t$this->getUser($sid);\r\n\t\t\r\n // truncate the content\r\n \t$content = strip_tags($this->description);\r\n \t$content = truncat($content, 100);\r\n \t\r\n \t$db = GLOBALDB();\r\n \t$this->description = mysqli_real_escape_string ($db, $content);\r\n \t\r\n // insert publish statement\r\n\t\t$sql = sprintf(\r\n\t\t \"INSERT INTO publish (\".\r\n\t\t \"uid, brand, series, module, title, description,\". \r\n\t\t \"company, address, telephone, mobile, fax,\". \r\n\t\t \"price, picture, level, star, url, link, date)\" .\r\n\t\t \"VALUES (\".\r\n\t\t\t\"%d,'%s','%s','%s','%s','%s',\".\r\n\t\t \t\"'%s','%s','%s','%s','%s',\".\r\n\t\t \t\"'%s','%s',%d, %d,'%s','%s','%s')\",\t\t\r\n\t\t $this->uid,\r\n\t\t $this->brand,\r\n\t\t $this->series,\r\n\t\t $this->module,\r\n\t\t $this->title,\r\n\t\t $this->description,\r\n\t\t $this->company,\r\n\t\t $this->address,\r\n\t\t $this->telephone,\r\n\t\t $this->mobile,\r\n\t\t $this->fax,\r\n\t\t $this->price,\r\n\t\t $this->picture,\r\n\t\t $this->level,\r\n\t\t $this->star,\r\n\t\t $this->url,\r\n\t\t $this->link,\r\n\t\t $this->date); \t \t\t\r\n\r\n\t\t// insert produce to database\r\n $result = $db->query($sql);\r\n if (!$result)\r\n return false;\r\n\r\n // save content to file\r\n $this->id = mysql_insert_id();\r\n $this->url = $this->gen_produce_page();\r\n\t\t$sql = sprintf(\"UPDATE publish SET url = '%s' where id = %d\", \r\n\t\t\t$this->url, $this->id);\r\n\r\n\t\t// update the prduce url\r\n\t\t$result = $db->query($sql);\r\n if (!$result)\r\n return false;\r\n\t\t\t\r\n \t// update user produce links\r\n\t\t$user = new User();\r\n \tif($user->get($sid)) {\r\n \t\t$user->create_parts();\r\n \t}\r\n \t\r\n\t\t// reload page or send them to index \r\n\t\t//$page = $this->url;\r\n\t\t$page = 'http://www.wanet.cn/parts.php';\r\n\t\theader('Location: '. $page);\r\n return true;\r\n\t}",
"public function farm()\n {\n return $this->belongsTo('App\\Farm');\n }",
"public function run()\n {\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 1;\n $programme->amount = 15;\n $programme->programme_id = 1;\n $programme->programme_submission_id = 1;\n $programme->name = 'A tree species';\n $programme->saveOrFail();\n\n\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 2;\n $programme->amount = 25;\n $programme->programme_id = 1;\n $programme->programme_submission_id = 1;\n $programme->csv_import_id = 1;\n $programme->name = 'A tree species';\n $programme->saveOrFail();\n\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 3;\n $programme->amount = 35;\n $programme->programme_id = 1;\n $programme->programme_submission_id = 1;\n $programme->csv_import_id = 2;\n $programme->name = 'A tree species';\n $programme->saveOrFail();\n\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 4;\n $programme->amount = 45;\n $programme->programme_id = 1;\n $programme->programme_submission_id = 1;\n $programme->csv_import_id = 2;\n $programme->name = 'Another species';\n $programme->saveOrFail();\n\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 5;\n $programme->amount = 55;\n $programme->programme_id = 1;\n $programme->programme_submission_id = 1;\n $programme->csv_import_id = 2;\n $programme->name = 'A tree species';\n $programme->saveOrFail();\n\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 6;\n $programme->amount = 65;\n $programme->programme_id = 1;\n $programme->programme_submission_id = 1;\n $programme->csv_import_id = 3;\n $programme->name = 'A tree species';\n $programme->saveOrFail();\n\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 7;\n $programme->amount = 75;\n $programme->programme_id = 1;\n $programme->programme_submission_id = 1;\n $programme->csv_import_id = 3;\n $programme->name = 'A tree species';\n $programme->saveOrFail();\n\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 8;\n $programme->amount = 85;\n $programme->programme_id = 1;\n $programme->programme_submission_id = 1;\n $programme->csv_import_id = 3;\n $programme->name = 'A tree species';\n $programme->saveOrFail();\n\n $programme = new ProgrammeTreeSpecies();\n $programme->id = 9;\n $programme->amount = 15;\n $programme->programme_id = 1;\n $programme->programme_submission_id = null;\n $programme->name = 'A tree species';\n $programme->saveOrFail();\n }",
"public function setEnfermedad($cie_id_enfermedad){\n\t\t$this->_enfermedad = $cie_id_enfermedad;\n\t}",
"public function run()\n {\n Floors::create(array('number' => 1, 'name' => 'First Floor'));\n }",
"public function run(Faker $faker)\n {\n for ($i = 0; $i < 10; $i++) {\n $newProducer = new Producer;\n $newProducer->name = $faker->firstName;\n $newProducer->lastname = $faker->lastName;\n if(rand(0,1) == 1) {\n $newProducer->date_of_birth = $faker->date('Y-m-d', 'now');\n }\n if(rand(0,2) == 1) {\n $newProducer->biography = $faker->paragraph(4, true);\n }\n $newProducer->save();\n }\n }",
"function addTeamToPartition() {\n global $connection_production;\n if (isset($_POST['add_team_partition'])) {\n $post_partition_id_set = $_POST['partition_id_set'];\n $team_id = $_POST['team_id'];\n\n if ($team_id == \"\" || empty($team_id) || !$team_id) {\n echo \"<h3 style='color:red;'>a team id needs to be entered</h3>\";\n } else {\n $stmt_team_franshise_search = \"SELECT DISTINCT franchise.id AS franchise_id, franchise_team_sm.teamId AS team_id FROM franchise\n LEFT JOIN franchise_team_sm ON franchise_team_sm.franchiseId=franchise.id\n WHERE franchise_team_sm.teamId=?\";\n $prepared_team_franshise_search = $connection_production->prepare($stmt_team_franshise_search);\n $prepared_team_franshise_search->bind_param('i', $team_id);\n $prepared_team_franshise_search->execute();\n $result_team_franshise_search = $prepared_team_franshise_search->get_result();\n $prepared_team_franshise_search->close();\n\n if ($result_team_franshise_search->num_rows > 0) {\n $row_team_franshise_search = $result_team_franshise_search->fetch_assoc();\n if ($result_team_franshise_search->num_rows == 1) {\n if (!!$row_team_franshise_search['franchise_id']) {\n $franchise_id = $row_team_franshise_search['franchise_id'];\n\n $sql_partition_franchise = \"INSERT INTO partition_franchise_sm(partitionId, franchiseId) VALUES (?,?)\";\n\n $stmt_partition_franchise = $connection_production->prepare($sql_partition_franchise);\n $stmt_partition_franchise->bind_param(\"ii\", $post_partition_id_set, $franchise_id);\n $stmt_partition_franchise->execute();\n $last_partition_franchise_id = $connection_production->insert_id;\n $stmt_partition_franchise->close();\n\n $update_string = 'partition: '.$post_partition_id_set.' added team partition association id: '.$last_partition_franchise_id.', added team id: '.$team_id;\n insertChange($_SESSION['account_id'], 'partition', 'add team to partition', $post_partition_id_set, $update_string);\n header(\"location: categories.php?source=update_partition&partition_id=\".$post_partition_id_set.\"#add_partition_team\");\n }\n } else if ($result_team_franshise_search->num_rows > 1) {\n echo \"<h3 style='color:red;'>more than one franchise associated with team</h3>\";\n }\n } else {\n echo \"<h3 style='color:red;'>team not found or doesn't have franchise association</h3>\";\n }\n }\n }\n }",
"function add_feed_plans_animals($params){\n $this->db->insert('feed_plans_animals',$params);\n $id = $this->db->insert_id();\n\t\t$db_error = $this->db->error();\n\t\tif (!empty($db_error['code'])){\n\t\t\techo 'Database error! Error Code [' . $db_error['code'] . '] Error: ' . $db_error['message'];\n\t\t\texit;\n\t\t}\n\t\treturn $id;\n }",
"private function addReglamentToRemains():void {\n\t\t$this->remains->push([\n\t\t\t'technick_id' => $this->technickId,\n\t\t\t'object_id' => $this->object->id,\n\t\t\t'tbl_name' => $this->device->tbl_name,\n\t\t\t'reglament_id' => $this->reglament->id,\n\t\t\t'reglament' => $this->reglament,\n\t\t\t'object_device_id' => $this->device->id,\n\t\t]);\n\t}",
"public function savePlant($plant){\n if ($plant->getPlantID()) {\n $returnVal = $this->updatePlant($plant);\n } else {\n $returnVal = $this->addPlant($plant);\n }\n\n //print (\"<br><br> Saved plant <br><br><br>\");\n return ($returnVal);\n }",
"function createNewPreset($preset_id){\r\n \r\n $callback = [];\r\n $obj = $this ->loadPreset($preset_id);\r\n $callback['values'] = $obj -> getDefaultValues();\r\n \r\n \r\n $callback['options'] = $obj -> getOptions();\r\n $callback['options']['category'] = $obj ->getCategory(); \r\n $callback['options']['status'] = 0; \r\n $callback['options']['image_presets'] = $this->getImagePresets(); \r\n $callback['options']['action'] = 'load-preset';\r\n $callback['options']['title'] = $obj ->getTitle();\r\n $callback['options']['id'] = 0;\r\n\r\n if(!isset($callback['options']['page_title'])){\r\n $callback['options']['page_title'] = $obj ->getTitle();\r\n }\r\n \r\n $callback['inputs'] = $obj -> getManagedInputs();\r\n $callback['values'] -> preset = $preset_id; \r\n \r\n $html = array();\r\n $layouts = $obj -> getAvailableLayouts();\r\n \r\n foreach ($layouts as $layout){\r\n $layout = $this->getLayout($layout);\r\n $html[] = (string)$layout;\r\n }\r\n\r\n $callback['image_presets'] = $this -> getImagePresetsParsed();\r\n $callback['layouts'] = implode('', $html);\r\n $this ->sendJson($callback);\r\n }",
"function add_modelo_medidor($params)\n {\n $this->db->insert('modelo_medidor',$params);\n return $this->db->insert_id();\n }",
"function flashcard_add_instance($flashcard) {\n global $DB;\n\n $flashcard->timemodified = time();\n\n if (!isset($flashcard->starttimeenable)) {\n $flashcard->starttime = 0;\n }\n\n if (!isset($flashcard->endtimeenable)) {\n $flashcard->endtime = 0;\n }\n\n // Saves draft customization image files into definitive filearea.\n $customimages = array('custombackfileid',\n 'customfrontfileid',\n 'customemptyfileid',\n 'customreviewfileid',\n 'customreviewedfileid',\n 'customreviewemptyfileid');\n foreach ($customimages as $ci) {\n flashcard_save_draft_customimage($flashcard, $ci);\n }\n\n // weird hack\n // Quickform fails getting thios value in $data.\n $flashcard->completionallviewed = clean_param(@$_POST['completionallviewed'], PARAM_INT);\n\n $newid = $DB->insert_record('flashcard', $flashcard);\n\n // Import all information from question.\n if (isset($flashcard->forcereload) && $flashcard->forcereload) {\n flashcard_import($flashcard);\n }\n\n return $newid;\n}",
"protected function insertFlightsScaffoldData()\n {\n $fare_svc = app(FareService::class);\n\n $al = [\n 'icao' => 'VMS',\n 'name' => 'phpVMS Airlines',\n ];\n\n $airline = factory(Airline::class)->create($al);\n $subfleet = factory(Subfleet::class)->create(['type' => 'A32X']);\n\n // Add the economy class\n $fare_economy = factory(Fare::class)->create(['code' => 'Y', 'capacity' => 150]);\n $fare_svc->setForSubfleet($subfleet, $fare_economy);\n\n $fare_business = factory(Fare::class)->create(['code' => 'B', 'capacity' => 20]);\n $fare_svc->setForSubfleet($subfleet, $fare_business);\n\n // Add first class\n $fare_first = factory(Fare::class)->create(['code' => 'F', 'capacity' => 10]);\n $fare_svc->setForSubfleet($subfleet, $fare_first);\n\n return [$airline, $subfleet];\n }",
"public function addDps(){\n \n // Vérifier que les informations envoyées par le formulaire sont correctes\n $validationAttributes = $this->validate();\n\n\n DemandeDps::create($validationAttributes[\"newDps\"]);\n\n $this->newDps=[];\n $this->dispatchBrowserEvent(\"showSuccessMessage\",[\"message\"=>\"Dps cree avec succés!\"]);\n }",
"public function feadAction()\n {\n // TODO handle articles without timestamp\n\n if ($this->getParam('secret') !== md5('keepOnFeading'))\n {\n $this->redirect('cron/noaccess?from=' . urlencode($_SERVER['REQUEST_URI']));\n }\n\n $id = $this->getParam('id');\n if (is_null($id))\n {\n return;\n }\n\n $output = $id . ' - ';\n\n $debug = $this->getParam('debug');\n\n $this->updateFead($id, $debug);\n }",
"function hook_uuid_entities_pre_rebuild($plan_name) {\n\n}",
"function hook_uuid_entities_pre_rebuild($plan_name) {\n\n}",
"public function actionAddDeed() \r\n {\r\n\r\n $formData = CJSON::decode(stripslashes($_POST['formData']));\r\n extract($formData);\r\n $res=0;\r\n $DeedMaster = new DeedMaster;\r\n $DeedMaster->LandID = $LandID ; \r\n $DeedMaster->Remarks = $Type ; \r\n $DeedMaster->DateCreated = $DateCreated ; \r\n if($DeedMaster->save()) $res=1;\r\n \r\n print CJSON::encode(array(\"DeedID\"=>$DeedMaster->DeedID,\"result\"=>$res ));\r\n }",
"final private function insertNewEnfermedades($id) {\n # Si hay proveedores\n if(null != $this->enfermedades) {\n # Insertar de nuevo esas relaciones\n $enfermedad = $this->db->prepare(\"INSERT INTO nino_enfermedad_2 (id_nino,id_enfermedad,fechacontagio)\n VALUES ('$id',?,'23/02/2017');\");\n foreach($this->enfermedades as $id_enfermedad){\n $enfermedad->execute(array($id_enfermedad));\n }\n $enfermedad->closeCursor();\n } \n }",
"function affwp_save_affiliate_program( $affiliate_id, $status, $args ) {\n\n\t$program = sanitize_text_field( $_POST['affwp_program'] );\n\n\tif ( ! empty( $program ) ) {\n\t\taffwp_add_affiliate_meta( $affiliate_id, 'program', $program );\n\t}\n\n}",
"function erp_hr_create_department( $args = array() ) {\n\n $defaults = array(\n 'id' => 0,\n 'title' => '',\n 'description' => '',\n 'lead' => 0,\n 'parent' => 0,\n 'status' => 1\n );\n\n $fields = wp_parse_args( $args, $defaults );\n\n // validation\n if ( empty( $fields['title'] ) ) {\n return new WP_Error( 'no-name', __( 'No department name provided.', 'wp-erp' ) );\n }\n\n // unset the department id\n $dept_id = $fields['id'];\n unset( $fields['id'] );\n\n $department = new \\WeDevs\\ERP\\HRM\\Models\\Department();\n\n if ( ! $dept_id ) {\n $dept = $department->create( $fields );\n\n do_action( 'erp_hr_dept_new', $dept->id, $fields );\n\n return $dept->id;\n\n } else {\n\n $department->find( $dept_id )->update( $fields );\n\n do_action( 'erp_hr_dept_updated', $dept_id, $fields );\n\n return $dept_id;\n }\n\n return false;\n}",
"public function run()\n {\n $id = 1;\n foreach ($this::$baccDepts as $department) {\n foreach ($department as $major) {\n Major::create([\n 'name' => $major['name'],\n 'hours' => $major['hours'],\n 'department_id' => $id,\n\n ]);\n }\n\n $id++;\n }\n \n foreach ($this::$diplomDepts as $department) {\n foreach ($department as $major) {\n Major::create([\n 'name' => $major['name'],\n 'hours' => $major['hours'],\n 'department_id' => $id,\n\n ]);\n }\n\n $id++;\n }\n }",
"function add ($other) {\n $this->getTool();\n return ($this->tool->add(&$this, $other));\n }",
"public function setId_Dessert($Id_Dessert)\n{\n$this->Id_Dessert = $Id_Dessert;\n\nreturn $this;\n}",
"public function rep_partida($aper_id){\n $html = $this->partidas_ptto($aper_id);\n\n $dompdf = new DOMPDF();\n $dompdf->load_html($html);\n $dompdf->set_paper('letter', 'portrait');\n ini_set('memory_limit','700M');\n ini_set('max_execution_time', 9000000000);\n $dompdf->render();\n $dompdf->stream(\"REPORTE_PARTIDAS.pdf\", array(\"Attachment\" => false));\n }",
"public function pushToFareye() {\r\n Mage::getModel('marketplace/fareyedataqueue')->pushToFareye();\r\n }",
"public function addFeeds($fid, $fdate, $ftime, $pig, $proddate,$qty,$user)\r\n\t\t{\r\n\t\t\t/* \r\n\t\t\t\tThis function inserts new feed intake details of a specific pig.\r\n\t\t\t\tIt also inserts the transaction done by the user in user_transaction table.\r\n\t\t\t*/\r\n\t\t\t\t$link = $this->connect();\r\n\t\t\t\t$q = \"SELECT max(ft_id)\r\n\t\t\t\t\tFROM feed_transaction\";\r\n\t\t\t\t$r = mysqli_query($link, $q);\r\n\t\t\t\t$ro = mysqli_fetch_row($r);\r\n\t\t\t\t$max = $ro[0] + 1;\r\n\t\t\t\t$query = \"INSERT INTO feed_transaction(ft_id,quantity,unit,date_given,time_given,pig_id,feed_id,prod_date) \r\n\t\t\t\t\t\tVALUES('\" . $max . \"','\" . $qty . \"','kg','\" . $fdate . \"','\" . $ftime . \"','\" . $pig . \"','\" . $fid . \"','\" . $proddate . \"');\";\r\n\t\t\t\t$this->userTransactionEdit($user,$max,\"feeds\",0,$fid,1,$pig);\r\n\t\t\t\tif ($result = mysqli_query( $link, $query )) {\r\n\t\t \t$data = array(\"success\"=>\"true\",\r\n\t\t \"newId\"=> $link->insert_id);\r\n\t\t\t }else {\r\n\t\t\t $data = array(\"success\"=>\"false\",\r\n\t\t\t \"error\"=>mysqli_error($link));\r\n\t\t\t }\r\n\t\t\t return $data;\r\n\t\t}",
"public function actionSetdeliver($id)\n {\n //SET DELIVERED\n $statusSet = Status::find()->where(['type'=>3])->orderBy(\"id_status DESC\")->one();\n $obj = $this->findModel($id);\n $obj->status_id = $statusSet->id_status;\n $obj->date_close = date('Y-m-d H:i:s');\n $obj->save();\n\n //GET DELIVERY ID\n $obj = Delivery::find()->where(['repair_id'=>$id])->one();\n\n if ($obj) $obj->delete();\n\n $delivery = new Delivery();\n $delivery->repair_id = $id;\n $delivery->save();\n\n return $this->redirect(['index','sd'=>$id,'a'=>'c']);\n \n }",
"private function addPerformers () {\n//\t\t$selstmt = \"SELECT ACTOR_ID FROM REPORTS_PERFORMERS WHERE REPORT_ID = $rptid\";\n\t\t$resultSet = ORM::for_table (self::REPTS_PERFS_TABLE)->\n\t\t\tselect('actor_id')->\n\t\t\twhere_equal('report_id', $this->id)->\n\t\t\tfind_many();\n\t\t$this->performers = array();\n\t\tforeach ($resultSet as $result) {\n\t\t\t$actorId = $result->actor_id;\n\t\t\t$performer = Actor::findById($actorId);\n\t\t\tif ($performer != NULL) {\n\t\t\t\t$this->performers[] = $performer;\n\t\t\t}\n\t\t}\n\t}",
"public function run()\n {\n App\\FerryLine::create([\n 'departure_port_id' => 1,\n 'destination_port_id' => 2 \n ]);\n\n App\\FerryLine::create([\n 'departure_port_id' => 2,\n 'destination_port_id' => 1 \n ]);\n }",
"public function addMeds($mid, $mdate, $mtime, $pig,$qty,$unit,$user)\r\n\t\t{\r\n\t\t\t/* \r\n\t\t\t\tThis function inserts new medication intake of a specific pig.\r\n\t\t\t\tIt also inserts the transaction done by the user in user_transaction table.\r\n\t\t\t*/\r\n\t\t\t\t$link = $this->connect();\r\n\t\t\t\t$q = \"SELECT max(mr_id)\r\n\t\t\t\t\tFROM med_record\";\r\n\t\t\t\t$r = mysqli_query($link, $q);\r\n\t\t\t\t$ro = mysqli_fetch_row($r);\r\n\t\t\t\t$max = $ro[0] + 1;\r\n\t\t\t\t$query = \"INSERT INTO med_record(mr_id,date_given,time_given,quantity,unit,pig_id,med_id) \r\n\t\t\t\t\t\t\tVALUES('\" . $max . \"','\" . $mdate . \"','\" . $mtime . \"','\" . $qty . \"','\" . $unit . \"','\" . $pig . \"','\" . $mid . \"');\";\r\n\t\t\t\t$this->userTransactionEdit($user,$max,\"medication\",0,$mid,1,$pig);\r\n\t\t\t\tif ($result = mysqli_query( $link, $query )) {\r\n\t\t \t$data = array(\"success\"=>\"true\",\r\n\t\t\t \"newId\"=> $link->insert_id);\r\n\t\t\t }else {\r\n\t\t\t $data = array(\"success\"=>\"false\",\r\n \t\"error\"=>mysqli_error($link));\r\n\t\t\t }\r\n\t\t\t return $data;\r\n\t\t}",
"public function addPlant() {\n $postdata = file_get_contents(\"php://input\");\n $request = json_decode($postdata, TRUE);\n //print_r($request['plant_location']);\n // call to model function to add skills from db\n $result = $this->dash_model->addPlant($request['plant_location']);\n //echo json_encode($result);\n\n if ($result) {\n echo '200';\n } else {\n echo '500';\n// echo '<div class=\"alert alert-warning alert-dismissible fade in alert-fixed w3-round\">\n// <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">×</a>\n// <strong>Failure!</strong> Plant addition failed.\n// </div>\n// <script>\n// window.setTimeout(function() {\n// $(\".alert\").fadeTo(500, 0).slideUp(500, function(){\n// $(this).remove(); \n// });\n// }, 5000);\n// </script>';\n }\n }",
"public function output($pgen,$brotherid) {\n\tglobal $qq,$qqs,$qqi,$qqu;\n\n\t$pm=new mod_prodmain;\n\t$pi=new mod_prodinfo;\n\t\n\techo \"<div{$qqi->idcstr($this->longname)}>\";\n\t$form=$this->makeselectform();\n\n\t$level=-1;\n\tif ($qqs->sessionDataExists($this->longname)) {\n\t\t$sdata=$qqs->getSessionData($this->longname);\n\t\t$aisle=$form->getControl('aisle');\n\t\t$form->getControl('aisle')->setValue((int)$sdata['aisle']);\n\t\t$form->getControl('auto')->setValue($sdata['autosubmit']);\n\t\t$sdata=$qqs->getSessionData($this->longname);\n\t\tif (False !== ($prodid=$pm->idFromBarcode($sdata['upc']))) {\n\t\t\t$info=$pi->getProdInfo($prodid);\n\t\t\t$main=$pm->getProductInfo($prodid);\n\t\t\tif ($main['prodhold']) {\n\t\t\t\t$level=2;\n\t\t\t} else {\n\t\t\t\t$locations=$pi->getOwningGroups($prodid,1);\n\t\t\t\tif (false === array_search($sdata['aisle'],$locations) || $info['shape'] == 'none' || $info['weight'] == 0) {\n\t\t\t\t\t$level=1;\n\t\t\t\t} else\n\t\t\t\t\t$level=0;\n\t\t\t}\t\t\n\t\t}\n\t} else {\n\t\t$autosubmit=$form->getControl('auto');\n\t\t$autosubmit->setValue(True);\n\t}\n\t\n\techo \"<table><tr>\";\n\techo \"<td>{$form->getOutputFormStart()}{$form->getDumpstyleFieldsetOutput('s')}{$form->getOutputFormEnd()}</td>\";\n\t\n\tif ($level > -1) {\n\t\t$color=($level == 0) ? '#8f8' : (($level == 1) ? '#ff8' : '#f88' );\n\t\techo \"<td style=\\\"background-color:$color; min-width:450px;\\\">\";\n\t\t$link=$qqi->hrefprep(\"prodedit/$prodid\");\n\t\techo \"<h2 style=\\\"font-size:15px; font-weight:bold;\\\">{$sdata['upc']} (<a href=\\\"{$link}\\\">{$prodid}</a>)</h2>\";\n\t\techo '<h3 style=\"font-size:17px; font-weight:bold; padding-top:6px\">'.addslashes($qqu->creolelite2html($info['title'])).'</h3>';\n\t\tif ($info['imageid'] != 0) {\n\t\t\t$image=new image($info['imageid']);\n\t\t\t$image->setMaximumSize(150,250);\n\t\t\techo '<p style=\"margin:6px; padding:8px; border:2px solid black; background-color:#fff;text-align:center\">'.$image->getOutput().'</p>';\n\t\t}\n\t\tif ($level == 1) {\n\t\t\t$iform=$this->makeform();\n\t\t\t\n\t\t\t$lbg=$iform->getControl('groups');\n\t\t\t$groups=$pi->getAllGroups();\n\t\t\t$lbg->addOptions($groups);\n\t\t\t$selgroups=$pi->getOwningGroups($prodid);\n\t\t\tif (is_array($sdata['last'])) {\n\t\t\t\t$sd=$sdata['last'];\n\t\t\t\tforeach ($sd['groups'] as $gid=>$true) {\n\t\t\t\t\tif (false === array_search($gid,$selgroups))\n\t\t\t\t\t\t$selgroups[]=$gid;\n\t\t\t\t}\n\t\t\t\tif (!isset($info['shape']) || $info['shape']=='') {\n\t\t\t\t\t$info['shape']=$sd['shape'];\n\t\t\t\t\t$info['dim1']=$sd['dim1'];\n\t\t\t\t\t$info['dim2']=$sd['dim2'];\n\t\t\t\t\t$info['dim3']=$sd['dim3'];\n\t\t\t\t}\n\t\t\t\tif (!isset($info['weight']) || $info['weight']=='' || $info['weight']==0) {\n\t\t\t\t\t$info['weight']=$sd['weight'];\n\t\t\t\t\tif ($sd['glass'])\n\t\t\t\t\t\t$info['flags'] |= mod_prodinfo::FLAG_FRAGILE; \n\t\t\t\t\tif ($sd['cold'])\n\t\t\t\t\t\t$info['flags'] |= mod_prodinfo::FLAG_COLD; \n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$lbg->setValue($selgroups);\n\t\t\tif ($info['shape'] == 'cylinder') {\n\t\t\t\t$iform->setValue('cylinder',True);\n\t\t\t\t$iform->setValue('cheight',$info['dim1']);\n\t\t\t\t$iform->setValue('circ',$info['dim2']);\n\t\t\t} else if ($info['shape'] == 'rect') {\n\t\t\t\t$iform->setValue('rect',True);\n\t\t\t\t$iform->setValue('height',$info['dim1']);\n\t\t\t\t$iform->setValue('width',$info['dim2']);\n\t\t\t\t$iform->setValue('depth',$info['dim3']);\n\t\t\t} else if ($info['shape'] == 'huge')\n\t\t\t\t$iform->setValue('huge',True);\n\t\t\t$iform->setValue('weight',$info['weight']);\n\t\t\t$iform->setValue('glass',($info['flags'] & mod_prodinfo::FLAG_FRAGILE) ? True : False);\t\n\t\t\t$iform->setValue('cold',($info['flags'] & mod_prodinfo::FLAG_COLD) ? True : False);\t\n\t\t\t\n\t\t\techo \"{$iform->getOutputFormStart()}\";\n\t\t\techo '</tr><tr><td colspan=\"2\" style=\"background-color:'.$color.'\"><table><tr>';\n\t\t\techo \"<td rowspan=\\\"2\\\" style=\\\"background-color:transparent\\\">{$iform->getDumpstyleFieldsetOutput('u')}</td><td colspan=\\\"4\\\">{$iform->getDumpstyleFieldsetOutput('x')}</td></tr><tr>\";\n\t\t\techo \"<td style=\\\"background-color:transparent\\\">{$iform->getDumpstyleFieldsetOutput('a')}</td>\";\n\t\t\techo \"<td style=\\\"background-color:transparent\\\">{$iform->getDumpstyleFieldsetOutput('b')}</td>\";\n\t\t\techo \"<td style=\\\"background-color:transparent\\\">{$iform->getDumpstyleFieldsetOutput('c')}</td>\";\n\t\t\techo \"<td style=\\\"background-color:transparent\\\">{$iform->getDumpstyleFieldsetOutput('d')}</td>\";\n\t\t\techo \"{$iform->getOutputFormEnd()}\";\n\t\t\techo \"</tr></table>\";\n\t\t} else if ($level == 2) {\n\t\t\techo \"<p><b>Product is on Hold</b><br>Note: {$main['notes']}</p>\";\n\t\t}\n\t\techo \"</td>\";\n\t} else\n\t\techo '<td>UPC Code Not found</td>';\n\t\n\techo \"</tr></table>\";\t\n\techo \"</div>\";\n}",
"public static function StoreEvent($farmid, Event $event)\r\n\t\t{\r\n\t\t\tif ($event->SkipDeferredOperations)\r\n\t\t\t\treturn true;\r\n\t\t\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t$DB = Core::GetDBInstance();\r\n\t\t\t\t\t\r\n\t\t\t\t// Get Smarty object\r\n\t\t\t\t$Smarty = Core::GetSmartyInstance();\r\n\t\t\t\t\r\n\t\t\t\t// Assign vars\r\n\t\t\t\t$Smarty->assign(array(\"event\" => $event));\r\n\t\t\t\t\r\n\t\t\t\t// Generate event message \r\n\t\t\t\tif (file_exists(CF_TEMPLATES_PATH.\"/event_messages/{$event->GetName()}.tpl\")) {\r\n\t\t\t\t\t$message = $Smarty->fetch(\"event_messages/{$event->GetName()}.tpl\");\r\n\t\t\t\t\t$short_message = $Smarty->fetch(\"event_messages/{$event->GetName()}.short.tpl\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t// Store event in database\r\n\t\t\t\t\t$DB->Execute(\"INSERT INTO events SET \r\n\t\t\t\t\t\tfarmid\t= ?, \r\n\t\t\t\t\t\ttype\t= ?, \r\n\t\t\t\t\t\tdtadded\t= NOW(),\r\n\t\t\t\t\t\tmessage\t= ?,\r\n\t\t\t\t\t\tshort_message = ?, \r\n\t\t\t\t\t\tevent_object = ?,\r\n\t\t\t\t\t\tevent_id\t = ?\r\n\t\t\t\t\t\t\",\r\n\t\t\t\t\t\tarray($farmid, $event->GetName(), $message, $short_message, serialize($event), $event->GetEventID())\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t$eventid = $DB->Insert_ID();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add task for fire deferred event\r\n\t\t\t\t\tTaskQueue::Attach(QUEUE_NAME::DEFERRED_EVENTS)->AppendTask(new FireDeferredEventTask($eventid));\r\n\t\t\t\t} else\r\n\t\t\t\t\tLogger::getLogger(__CLASS__)->warn(sprintf(_(\"Cannot store event in database: '{$event->GetName()}' message template not found\")));\r\n\t\t\t}\r\n\t\t\tcatch(Exception $e)\r\n\t\t\t{\r\n\t\t\t\tLogger::getLogger(__CLASS__)->fatal(sprintf(_(\"Cannot store event in database: %s\"), $e->getMessage()));\r\n\t\t\t}\r\n\t\t}",
"public function create($id,$supp,$project)\n\t{\n\t\t$rfpshow = Po::with('si.invoiceitem','dr.drinv','ci.ciitem','so.soitem','item')->where('payment','=',$id)->get();\n\t\treturn View::make('users.purchasing.viewrfp')->withPo($rfpshow);\n\t}",
"function getFarmersMSCID($id){\n\t$crud = new CRUD();\n\t$crud->connect();\n\n\t$crud -> sql(\"SELECT * FROM pigs_tbl WHERE pig_id='{$id}' \");\n\t$r = $crud->getResult();\n\tforeach($r as $rs){\n\t\treturn $rs['farmer_id_fk'];\n\t}\n\t$crud->disconnect();\n}",
"function create_new_campaign_product($prod_info){\n\t\t\n\t$post = array(\n\t\t'post_author' => $prod_info['uid'],\n\t\t'post_content' => $prod_info['body'],\n\t\t'post_status' => \"publish\",\n\t\t'post_title' => $prod_info['title'],\n\t\t'post_parent' => '',\n\t\t'post_type' => \"product\",\n\t\t\n );\n\t\n\t/* Create post */\n $post_id = wp_insert_post( $post, TRUE );\n if($post_id){\n\t\t/* \n\t\t$attach_id = get_post_meta($product->parent_id, \"_thumbnail_id\", true);\n\t\tadd_post_meta($post_id, '_thumbnail_id', $attach_id);\n\t\t*/\n\t\t\n\t\t$upload_dir = wp_upload_dir();\t\t\n\t\t$filename = $upload_dir['url'].'/'.$prod_info['full_image_name'];\n\t\t\n\t\tif(!empty($prod_info['full_image_name'])){\n\t\t\tadd_post_meta($post_id, 'full_image_name', $filename, TRUE); \n\t\t}\n\t\t\n\t\t$parent_post_id = $post_id;\t\t\n\t\t$filename = $upload_dir['url'].'/'.$prod_info['image_name'];\n\t\t\t\t\n\t\t$filetype = @wp_check_filetype( basename( $filename ), null );\n\t\t$wp_upload_dir = wp_upload_dir();\n\t\t$attachment = array(\n\t\t\t'guid' => $wp_upload_dir['url'] . '/' . basename( $filename ), \n\t\t\t'post_mime_type' => $filetype['type'],\n\t\t\t'post_title' => preg_replace( '/\\.[^.]+$/', '', basename( $filename ) ),\n\t\t\t'post_content' => '',\n\t\t\t'post_status' => 'inherit'\n\t\t);\n\t\t$attach_id = @wp_insert_attachment( $attachment, $filename, $parent_post_id );\n\t\t@set_post_thumbnail( $parent_post_id, $attach_id ); \n\t\t\n\t\tadd_post_meta($post_id, '_thumbnail_id', $attach_id);\n\t\t\n\t\t/* \n\t\twp_set_post_categories( $post_ID, $post_categories, $append );\n\t\twp_set_post_terms( $post_id, $terms, $taxonomy, $append ); \n\t\t*/\n\t\t\n\t\twp_set_object_terms( $post_id, 'campaign-product', 'TCampaign' ); \n\t\twp_set_object_terms( $post_id, $prod_info['tags'], 'product_tag' ); \n\t\t\n }\n\t\n \n update_post_meta( $post_id, '_visibility', 'visible' );\n update_post_meta( $post_id, '_stock_status', 'instock');\n update_post_meta( $post_id, 'total_sales', '0');\n update_post_meta( $post_id, '_downloadable', 'no');\n update_post_meta( $post_id, '_virtual', 'yes');\n update_post_meta( $post_id, '_regular_price', $prod_info['unit_price'] );\n update_post_meta( $post_id, '_sale_price', $prod_info['unit_price'] );\n update_post_meta( $post_id, '_purchase_note', \"\" );\n update_post_meta( $post_id, '_featured', \"no\" );\n update_post_meta( $post_id, '_weight', \"\" );\n update_post_meta( $post_id, '_length', \"\" );\n update_post_meta( $post_id, '_width', \"\" );\n update_post_meta( $post_id, '_height', \"\" );\n update_post_meta( $post_id, '_sku', $prod_info['sku']);\n update_post_meta( $post_id, '_product_attributes', array());\n update_post_meta( $post_id, '_sale_price_dates_from', \"\" );\n update_post_meta( $post_id, '_sale_price_dates_to', \"\" );\n update_post_meta( $post_id, '_price', $prod_info['unit_price'] );\n update_post_meta( $post_id, '_sold_individually', \"\" );\n update_post_meta( $post_id, '_manage_stock', \"no\" );\n update_post_meta( $post_id, '_backorders', \"no\" );\n update_post_meta( $post_id, '_stock', \"\" );\n update_post_meta( $post_id, 'campaign_until', date(\"d M Y\",time() + ($prod_info['camp_length'] * 60*60*24)));\n\t\t\n update_post_meta( $post_id, 'unit_price', $prod_info['unit_price']);\n update_post_meta( $post_id, 'unit_profit', $prod_info['unit_profit']);\n update_post_meta( $post_id, 'total_profit', $prod_info['total_profit']);\n update_post_meta( $post_id, 'sales_goal', $prod_info['sales_goal']);\n\n /* file paths will be stored in an array keyed off md5(file path) */\n /* $downdloadArray =array('name'=>\"Test\", 'file' => $uploadDIR['baseurl'].\"/video/\".$video); */\n\t\n /* $file_path =md5($uploadDIR['baseurl'].\"/video/\".$video); */\n\n /* $_file_paths[ $file_path ] = $downdloadArray; \n update_post_meta( $post_id, '_downloadable_files ', $_file_paths);\n update_post_meta( $post_id, '_download_limit', '');\n update_post_meta( $post_id, '_download_expiry', '');\n update_post_meta( $post_id, '_download_type', '');\n update_post_meta( $post_id, '_product_image_gallery', '');\n\t\n\t*/\n\t\n\treturn $post_id;\n}",
"public function run()\n {\n //\n $internship = factory(Program::class, 1)->create([\n 'name' => 'Internship',\n 'value' => 'internship',\n 'fee_type_id' => DB::table('fee_types')->where('value', 'entry_fee')->first()->id,\n ]);\n\n $inter_relocat = factory(Program::class, 1)->create([\n 'name' => 'Internship + Relocation',\n 'value' => 'inter_relocat',\n 'fee_type_id' => DB::table('fee_types')->where('value', 'entry_fee')->first()->id,\n ]);\n\n $university = factory(Program::class, 1)->create([\n 'name' => 'University',\n 'value' => 'university',\n 'fee_type_id' => DB::table('fee_types')->where('value', 'entry_fee')->first()->id,\n ]);\n\n $study = factory(Program::class, 1)->create([\n 'name' => 'Study',\n 'value' => 'study',\n 'fee_type_id' => DB::table('fee_types')->where('value', 'unit_rate')->first()->id,\n ]);\n }",
"public function run()\n {\n Db::transaction(function() {\n $this->call(RedSeeder::class);\n factory(\\App\\Farmacia::class, 2)->create()->each(function($farm){\n $farm->redes()->attach([1,2]);\n });\n\n\n });\n }",
"public static function adder() {\n\t\t$proposalId = \"23\";\n\t?>\n<!DOCTYPE html>\n<html>\n<head>\n\t<title>Add Proposal | Baskets</title>\n\t<script type=\"text/javascript\" src=\"../bower_components/platform/platform.js\"></script>\n\t<link rel=\"import\" href=\"../elements/proposal-element.html\">\n</head>\n<body>\n\t<proposal-element propid=\"<?=$proposalId?>\" dialog=\"prop-info\" newprop></proposal-element>\n</body>\n</html>\n\t<?\n\t}",
"private function set_firmid($_firmid)\n {\n if (!$_firmid) {\n throw new MonAeException('Le firm id est obligatoire.');\n }\n $this->_firmid = $_firmid;\n }",
"public function setFirmDelivery($firmDelivery)\n {\n $this->firmDelivery = $firmDelivery;\n\n return $this;\n }",
"function addToRetreatHexagonList($id, $retreatHexagon)\n {\n // note: addToRetreatHexagonList() is invoked before retreat move, so\n // the moveCount is 0 for 1st step and 1 for 2nd step\n\n $retreatStep = new RetreatStep();\n $retreatStep->set($this->units[$id]->moveCount, $retreatHexagon);\n\n $this->retreatHexagonList[] = $retreatStep;\n }",
"public function addLandPreprationAction(){\n\n\t\t\t\t$params = $this->getRequest()->getParams(); \n\t\t\t\t$db = $this->db;\n\t\t\t\t$secretkey = $this->secretkey; \n\t\t\t\t$appkey\t= isset($params['appkey'])?$params['appkey']:\"\";\n\t\t\t\t$LoginID\t= isset($params['LoginID'])?$params['LoginID']:\"\";\n\t\t\t\t$device_id\t= isset($params['device_id'])?$params['device_id']:\"\";\n\t\t\t\t$farmer_code\t= isset($params['farmer_code'])?$params['farmer_code']:\"\";\n\t\t\t\t$land_id\t= isset($params['land_id'])?$params['land_id']:\"\";\n\t\t\t\t$harrow_no\t= isset($params['harrow_no'])?$params['harrow_no']:\"\";\n\t\t\t\t$cultivator_no\t= isset($params['cultivator_no'])?$params['cultivator_no']:\"\";\n\t\t\t\t$plowing\t= isset($params['plowing'])?$params['plowing']:\"\";\n\t\t\t\t$rotorator_no\t= isset($params['rotorator_no'])?$params['rotorator_no']:\"\";\n\t\t\t\t$niveling_no\t= isset($params['niveling_no'])?$params['niveling_no']:\"\";\n\t\t\t\t$date_of_preshowing_irrigation\t= isset($params['date_of_preshowing_irrigation'])?$params['date_of_preshowing_irrigation']:\"\";\n\t\t\t\t$quality_of_land_prepration_id\t= isset($params['quality_of_land_prepration_id'])?$params['quality_of_land_prepration_id']:\"\";\n\t\t\t\t$sink_date_time\t= isset($params['sink_date_time'])?$params['sink_date_time']:\"\"; \n\n\n\n\t\t\t\t$error_code = 1;\n\t\t\t\t$succes = FALSE;\n\t\t\t\ttry{\n\t\t\t\t\t$db->beginTransaction();\n\t\t\t\t\tif($secretkey != $appkey){\n\t\t\t\t\t\tthrow new Exception(\"Invalid request.\");\n\t\t\t\t\t}\t\n\t\t\t\t\tif(!$LoginID || !$device_id){\n\t\t\t\t\t\tthrow new Exception(\"Required parameter missing.\");\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t$user = new Application_Model_Users();\n\t\t\t\t\t$alldata = $user->getUserDataByLoginId($LoginID);\n\t\t\t\t\tif(!empty($alldata['LoginID']) != $LoginID){\n\t\t\t\t\t\tthrow new Exception('Invalid login id.');\n\t\t\t\t\t} \n\t\t\t\t\tif(!empty($alldata['DeviceID'])){\t\t\t\n\t\t\t\t\t\tif($alldata['DeviceID'] != $device_id){\n\t\t\t\t\t\t\t$error_code = 3;\n\t\t\t\t\t\t\tthrow new Exception('You are not athorized for this device.');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tif(strtolower($alldata['StaffStatus']) != 'ac'){\n\t\t\t\t\t\t$error_code = 3;\n\t\t\t\t\t\tthrow new Exception('Your account is not active.');\n\t\t\t\t\t}\t\n\n\t\t\t\t\tif($alldata['App_Access_Status'] == 2){\n\t\t\t\t\t\t$error_code = 2;\n\t\t\t\t\t\tthrow new Exception('This account deactivated by admin.');\n\t\t\t\t\t}\n\n\t\t\t\t\t$farmerMaster = new Application_Model_Farmermasters();\n\t\t\t\t\t$allFarmerData = $farmerMaster->getFarmerDetailsByFarmerCode($farmer_code); \t\n\t\t\t\t\t$farmerID = $allFarmerData['id'];\n\t\t\t\t\t$farmerCode = $allFarmerData['FarmerCode'];\n\n\n\t\t\t\t\t$land_pre = array(); \n\t\t\t\t\t$land_pre['land_id'] = $land_id;\n\t\t\t\t\t$land_pre['harrow_no'] = $harrow_no;\n\t\t\t\t\t$land_pre['cultivator_no'] = $cultivator_no;\n\t\t\t\t\t$land_pre['plowing'] = $plowing;\n\t\t\t\t\t$land_pre['rotorator_no'] = $rotorator_no;\n\t\t\t\t\t$land_pre['niveling_no'] = $niveling_no;\n\t\t\t\t\t$land_pre['date_of_preshowing_irrigation'] = $date_of_preshowing_irrigation;\n\t\t\t\t\t$land_pre['quality_of_land_prepration_id'] = $quality_of_land_prepration_id; \n\t\t\t\t\t$land_pre['farmer_code'] = $farmer_code;\n\t\t\t\t\t$land_pre['farmer_id'] = $farmerID;\n\t\t\t\t\t$land_pre['fe_code'] = $LoginID;\n\t\t\t\t\t$land_pre['sink_date_time'] = $sink_date_time;\n\t\t\t\t\t$land_pre['created'] = $this->currdate; \n\t\t\t\t\t$db->insert('logi_land_prepration', $land_pre);\n\n\t\t\t\t\t$landdetailId = $db->lastInsertId();\n\n\t\t\t\t\t$db->commit();\n\t\t\t\t\t$succes = TRUE;\t \n\t\t\t\t}\n\n\t\t\t\tcatch(Exception $e){\n //Rollback transaction\n\t\t\t\t\t$db->rollBack();\n\t\t\t\t\t$error= $e->getMessage();\n\t\t\t\t}\n\n\t\t\t\tif($succes == TRUE ){\n\t\t\t\t\techo json_encode(array(\"error_code\"=>'0', 'response_string'=>'Land Prepration Detail Inserted successfully.', 'land_prepration_id'=>$landdetailId));\n\t\t\t\t\texit;\n\n\t\t\t\t}\n\n\t\t\t\telse{\n\t\t\t\t\techo json_encode(array(\"error_code\"=>$error_code, 'response_string'=>$error));\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t}",
"public function store(Request $request)\n {\n $request->validate([\n 'no' => 'required|min:1|max:6|unique:farmers',\n 'name' => 'required|min:3',\n 'nid' => 'required|min:8|max:10|unique:farmers',\n 'phone' => 'required|min:9|max:10|unique:farmers',\n 'email' => 'required|unique:users',\n 'locality' => 'required',\n 'acno' => 'required|min:8|max:12|unique:farmers',\n ]);\n\n $password = bcrypt($request->nid);\n $name = $request->name;\n $user = User::create(['name' => $name, 'email' => $request->email, 'password' => $password]);\n DB::transaction(function () use ($request, $user) {\n $farmer = new Farmer;\n $farmer->no = $request->no;\n $farmer->nid = $request->nid;\n $farmer->name = $request->name;\n $farmer->acno = $request->acno;\n $farmer->locality = $request->locality;\n $farmer->phone = $request->phone;\n $farmer->email = $request->email;\n $farmer->user_id = $user->id;\n $farmer->save();\n });\n return redirect()->route('farmers')->with('success', 'Farmer was created successfully!');\n }",
"public function createpoAction() {\n $filter = $this->getRequest()->getParam('top_filter');\n $helperClass = Mage::helper('inventorysupplyneeds');\n if ($helperClass->getDraftPO()->getId()) {\n Mage::getSingleton('vendorsinventory/session')->addNotice(\n $helperClass->__('There was an existed draft purchase order. Please process it before creating new one'));\n return $this->_redirect('*/*/index', array('top_filter' => $filter));\n }\n $helperClass->setTopFilter($filter);\n $data = $helperClass->prepareDataForDraftPO();\n try {\n if (!isset($data['product_data']) || !count($data['product_data'])) {\n throw new Exception($helperClass->__('There is no product needed to purchase.'));\n }\n //var_dump($data); die();\n $model = Mage::getModel('inventorypurchasing/purchaseorder_draftpo')\n ->addData($data);\n $model->setCreatedAt(now())\n ->setCreatedBy($this->_getUser()->getVendorId());\n $model->setType(Magestore_Inventorypurchasing_Model_Purchaseorder_Draftpo::SUPPLYNEED_TYPE);\n $model->create();\n Mage::getSingleton('vendorsinventory/session')\n ->addSuccess($helperClass->__('The supply needs have been saved successfully as draft purchase order(s).'));\n return $this->_redirect('*/inventory_draftpo/view', array('id' => $model->getId()));\n } catch (Exception $ex) {\n Mage::getSingleton('vendorsinventory/session')\n ->addError($helperClass->__('There is error while creating new draft purchase order.'));\n Mage::getSingleton('vendors/session')->addError($ex->getMessage());\n return $this->_redirect('*/*/index', array('top_filter' => $filter));\n }\n }"
] | [
"0.5544999",
"0.5222093",
"0.46992844",
"0.4687974",
"0.45313016",
"0.45190394",
"0.45171067",
"0.44795826",
"0.4437303",
"0.44330385",
"0.43853965",
"0.43791267",
"0.437684",
"0.43543538",
"0.43433112",
"0.43394727",
"0.43392795",
"0.43353906",
"0.43281603",
"0.43229273",
"0.43051368",
"0.42933118",
"0.4286879",
"0.42786714",
"0.427513",
"0.42669156",
"0.42550015",
"0.42503607",
"0.42488846",
"0.42435196",
"0.4237077",
"0.42327288",
"0.42213917",
"0.42094675",
"0.4206032",
"0.4194691",
"0.41563293",
"0.41375905",
"0.4128345",
"0.41251743",
"0.41251743",
"0.41238236",
"0.41235632",
"0.41205207",
"0.41202834",
"0.41154838",
"0.4114924",
"0.4113522",
"0.41096783",
"0.41078204",
"0.40984935",
"0.40947354",
"0.40941584",
"0.40880686",
"0.408754",
"0.4086778",
"0.40839562",
"0.4080387",
"0.40777016",
"0.40748012",
"0.40702835",
"0.40612835",
"0.40600196",
"0.4055099",
"0.4048401",
"0.40448993",
"0.40419263",
"0.4038614",
"0.40377852",
"0.40328097",
"0.40328097",
"0.40284497",
"0.4027558",
"0.40180317",
"0.40163228",
"0.4015078",
"0.40143874",
"0.40093648",
"0.40069366",
"0.4006102",
"0.40042293",
"0.39992005",
"0.39963093",
"0.3995915",
"0.39942846",
"0.39920512",
"0.39866945",
"0.39858484",
"0.39819515",
"0.3981291",
"0.39809847",
"0.39804533",
"0.39800206",
"0.39790913",
"0.3979018",
"0.39785305",
"0.39779633",
"0.3976439",
"0.397553",
"0.39742997"
] | 0.6734126 | 0 |
end function edit() delete method | public function delete($id = null) {
if (!$this->request->is('post')) {
throw new MethodNotAllowedException();
}
$this->Production->id = $id;
if (!$this->Production->exists()) {
throw new NotFoundException(__('Invalid production'));
}
if ($this->Production->delete()) {
$this->Session->setFlash(__('Farm Produce deleted'));
$this->redirect(array('action' => 'index'));
}
$this->Session->setFlash(__('Farm Produce was not deleted'));
$this->redirect(array('action' => 'index'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function deleted(Edit $edit)\n {\n //\n }",
"public function actionDelete() {}",
"public function actionDelete() {}",
"public function deleting()\n {\n # code...\n }",
"public function deleteAction() {\n \n }",
"protected function _postDelete() {}",
"protected function _postDelete() {}",
"public function deleteAction()\n {\n \n }",
"protected function delete() {\n\t}",
"protected function deleteAction()\n {\n }",
"public function delete(){\n $record = actualite::find($this->selectedId);\n $record->delete();\n\n /* update image file */\n Storage::delete('public/_actualite/'.$this->selectedId.'.png');\n /* $this->photo->storePubliclyAs('public/_actualite/'.$this->selectedId.'.png'); */\n\n session()->flash('message', 'actualite modifié avec succès');\n $this->emit('Deleted');\n $this->dispatchBrowserEvent('Deleted');\n $this->resetFields();\n }",
"function delete()\n {\n }",
"public function delete(){\n\t $this->model->clear()->filter(array('preview_master_id' => WaxUrl::get(\"id\")))->delete();\n\t parent::delete();\n\t}",
"protected function _postDelete()\n\t{\n\t}",
"protected function _delete()\n\t{\n\t}",
"public function deleteAction()\n {\n }",
"public function index_delete(){\n\t\t\n\t\t}",
"public function delete()\r\n\t{\r\n\t}",
"public function DELETE() {\n #\n }",
"public function undeleteAction(){\n\t}",
"public function delete()\n\t{\n\t}",
"function delete()\r\n {\r\n\r\n }",
"public function edit() {\n\t\t\t\n\t\t}",
"public function edit( )\r\n {\r\n //\r\n }",
"public function delete()\n {\n //\n }",
"public function forceDeleted(Edit $edit)\n {\n //\n }",
"public function delete() {\r\n }",
"public function edit()\n\t{\n\t\t//\n\t}",
"public function deleteAction()\n {\n $request = $this->getRequest();\n if($request->isPost()){\n $id = $this->params()->fromPost('id');\n $combo = $this->modelCombo->findOneBy(array('id'=>$id));\n $combo->setIsdelete(1);\n $this->modelCombo->edit($combo);\n //$this->model->delete(array('id'=>$id));\n echo 1;\n }\n die;\n\n }",
"function delete() {\n\t\t\n\t\t$this->autoRender = false;\n\t\t$this->layout = \"\";\n\t\t\n\t\tConfigure::write('debug', 0);\n\t\t\n\t\t$id = $this->Session->read('Member.memberid');\n\t\t\n\t\t// id 4 means trash\n\t\t\n\t\t$activeid = 4;\n\t\t\t$this->Member->updateAll(array(\n\t\t\t\t'Member.active' => \"'\" . $activeid . \"'\"\n\t\t\t), array(\n\t\t\t\t'Member.id' => $id\n\t\t\t));\n\t\t\n\t\techo \"deleted\";\n\t\t\t\n\t\n\t/*\tif ($id) {\n\t\t\t\n\t\t\t$delete = $this->Member->delete($id);\n\t\t\t\n\t\t \tif ($delete) {\n\t\t\t\t$meta = $this->userMeta->deleteAll(array(\n\t\t\t\t\t'userMeta.member_id' => $id\n\t\t\t\t));\n\t\t\t\t$course = $this->TutCourse->deleteAll(array(\n\t\t\t\t\t'TutCourse.member_id' => $id\n\t\t\t\t));\n\t\t\t\t$event = $this->TutEvent->deleteAll(array(\n\t\t\t\t\t'TutEvent.tutor_id' => $id\n\t\t\t\t));\n\t\t\t\t$image = $this->UserImage->deleteAll(array(\n\t\t\t\t\t'UserImage.user_id' => $id\n\t\t\t\t));\n\t\t\t\t\n\t\t\t}\n\t\t\tif ($meta) {\n\t\t\t\techo \"deleted\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} */\n\t\t\n\t\t\n\t\n\t\n\t}",
"public function delete()\n {\n \n }",
"public function delete()\n {\n $textvalues = $this->gettextvalues();\n $this->deleteValues($textvalues);\n \n $componentvalues = $this->getcomponentvalues();\n $this->deleteValues($componentvalues);\n \n $filevalues = $this->getfilevalues();\n $this->deleteValues($filevalues);\n \n $contributorvalues = $this->getcontributorvalues();\n $this->deleteValues($contributorvalues);\n \n parent::delete();\n }",
"function delete() \n {\n \n }",
"function delete(){\n if(isset($_GET[\"id\"]))\n $id=$_GET[\"id\"];\n\n //execute the delete command on the model\n $c=comment_model::delete($id);\n //return a simple view of confirming the deletion\n require_once(\"view/delete.php\");\n }",
"public function edit()\n\t{\n\t\t\n\t}",
"public function action_delete()\n {\n\t $this->template = View::forge('template-admin');\n\n $post = Input::post();\n $entry = Model_Event::find_by_pk($post[\"id\"]);\n\t\tif ($entry){\n\t\t\tif(!$entry->delete()){\n\t\t\t\t$data[\"events\"] = Model_Event::find_all();\n\t\t\t\t$this->template->title = \"イベント一覧\";\n\t\t\t\t$this->template->content = View::forge('event/index', $data);\n\t\t\t}\n\t\t}\n\t\t$data[\"events\"] = Model_Event::find_all();\n\t\t$this->template->title = \"イベント一覧\";\n\t\t$this->template->content = View::forge('event/index', $data);\n }",
"public function Do_delete_Example1(){\n\n\t}",
"function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}",
"public function del()\n {\n }",
"public function delete(){\n }",
"public function delete() {\n $this->isdeleted = 1;\n $this->deleteduser = \\Yii::$app->user->getId();\n $this->deletedtime = date(\"Y-m-d H:i:s\");\n \n return parent::update(FALSE, ['isdeleted', 'deletedtime', 'deleteduser']);\n }",
"public function deleteAction() {\n parent::deleteAction();\n }",
"public function edit()\r\n {\r\n //\r\n }",
"public function edit()\r\n {\r\n //\r\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"abstract function allowDeleteAction();",
"public function delete()\n {\n try {\n parent::delete(null, $this->data['id']);\n } catch (Exception $e) {\n die('ERROR');\n }\n }",
"public function delete()\n {\n\n }",
"public function edit()\n {\n \n }",
"protected function confirmDelete() {\n\t}",
"function delete()\r\n\t{\r\n\t\t// Check for request forgeries\r\n\t\tJRequest::checkToken() or die( 'Invalid Token' );\r\n\t\tglobal $mainframe;\r\n\t\t$model\t= &$this->getModel( 'table' );\r\n\t\t$ids = JRequest::getVar('ids', array(), 'request', 'array');\r\n\t\t$model->deleteRows( $ids );\r\n\t\tif ( JRequest::getVar('format') == 'raw') {\r\n\t\t\tJRequest::setVar( 'view', 'table' );\r\n\t\t\t$this->display();\r\n\t\t} else {\r\n\t\t\t//@TODO: test this\r\n\t\t\t$ref = JRequest::getVar( 'fabrik_referrer', \"index.php\", 'post' );\r\n\t\t\t$mainframe->redirect( $ref, count($ids) . \" \" . JText::_( 'RECORDS DELETED' ) );\r\n\t\t}\r\n\t}",
"public function annimalDelAction()\n {\n }",
"public function editAction() {}",
"public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }",
"public function delete()\n {\n \n }",
"public function delete(){\n \t\ttry{\n \t\t\t$db = DB::get();\n \t\t\t$sql = \"UPDATE t_\" . self::$Table . \" \n \t\t\t\t\tSET \" . self::$Table . \"_supprime='1' \n \t\t\t\t\tWHERE \" . self::$Table . \"_id = '\".$this->Id.\"' \";\n \t\t\n \t\t\t$result = $db->query($sql);\n \t\t}\n \t\tcatch(Exception $e){\n \t\t\tvar_dump($e->getMessage());\n \t\t}\n }",
"function delete()\n {\n }",
"public function preDelete() { }",
"function delete() {\n\n }",
"public static function delete() {\r\n\t\t\r\n\t}",
"function delete_post()\n {\n $this->Admin_model->procedure = 'POST_DELETE';\n\n echo $this->p_post_id_delete;\n\n\n $rs = $this->Admin_model->delete($this->p_post_id_delete);\n\n //redirect('admin/Posts/display_cat');\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function edit()\n {\n //\n }",
"public function deleteAction() {\n\t\t$this->_notImplemented();\n\t}",
"public static function delete() {\n\n\n\t\t}",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function edit()\n {\n }",
"public function edit()\n {\n }",
"public function edit()\n {\n }",
"function deleteRecord()\t{\n\t\tif ($this->conf['delete'])\t{\t// If deleting is enabled\n\t\n\t\t\t$origArr = $GLOBALS['TSFE']->sys_page->getRawRecord($this->theTable, $this->recUid);\n\t\t\tif (($GLOBALS['TSFE']->loginUser && $this->conf['requireLogin']) || ( $this->aCAuth($origArr)&& $this->conf['requireLogin'])||!$this->conf['requireLogin'])\t{\t// Must be logged in OR be authenticated by the aC code in order to delete\n\t\t\t\t\t// If the recUid selects a record.... (no check here)\n\t\t\t\tif (is_array($origArr))\t{\n\t\t\t\t\tif ($this->aCAuth($origArr) || $this->metafeeditlib->DBmayFEUserEdit($this->theTable,$origArr, $GLOBALS['TSFE']->fe_user->user,$this->conf['allowedGroups'],$this->conf['fe_userEditSelf'],$this->conf))\t{\t// Display the form, if access granted.\n\t\t\t\t\t\tif (!$GLOBALS['TCA'][$this->theTable]['ctrl']['delete'])\t{\t// If the record is fully deleted... then remove the image (or any file) attached.\n\t\t\t\t\t\t\t$this->deleteFilesFromRecord($this->recUid);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->cObj->DBgetDelete($this->theTable, $this->recUid, TRUE);\n\t\t\t\t\t\t$this->currentArr = $origArr;\n\t\t\t\t\t\t$this->saved = 1;\n\t\t\t\t\t\t$this->userProcess_alt($conf['edit.']['userFunc_afterDelete'],$conf['edit.']['userFunc_afterDelete.'],array('rec'=>$this->currentArr, 'origRec'=>$origArr));\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->error = '###TEMPLATE_NO_PERMISSIONS###';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\t\t$this->error = '###TEMPLATE_NO_PERMISSIONS###';\n\t\t }\n\t\t}\n\t}",
"public function edit()\n { \n }",
"public function delete() {\n $this->remove_content();\n\n parent::delete();\n }",
"public function edit() {\n }",
"function delete() {\n\n validate_submitted_data(array(\n \"id\" => \"required|numeric\"\n ));\n\n $id = $this->input->post('id');\n if ($this->input->post('undo')) {\n if ($this->Sales_Invoices_model->delete($id, true)) {\n echo json_encode(array(\"success\" => true, \"data\" => $this->_row_data($id), \"message\" => lang('record_undone')));\n } else {\n echo json_encode(array(\"success\" => false, lang('error_occurred')));\n }\n } else {\n if ($this->Sales_Invoices_model->delete($id)) {\n echo json_encode(array(\"success\" => true, 'message' => lang('record_deleted')));\n } else {\n echo json_encode(array(\"success\" => false, 'message' => lang('record_cannot_be_deleted')));\n }\n }\n }",
"final public function delete() {\n global $config; \n # Borrar el elemento de la base de datos\n $this->db->query(\"DELETE FROM guarderia_2 WHERE id_guarderia = $this->id\");\n # Redireccionar a la página principal del controlador\n $this->functions->redir($config['site']['url'] . 'sedes/&success=true');\n }",
"public function delete() {\n\n }",
"public function edit()\n {\n //\n }",
"public function delete(){\n $id = $_POST['id'];\n Cita::destroy($id);\n }",
"private function delete(){\n\t\t$id = $this->objAccessCrud->getId();\n\t\tif (empty ( $id )) return;\n\t\t// Check if there are permission to execute delete command.\n\t\t$result = $this->clsAccessPermission->toDelete();\n\t\tif(!$result){\n\t\t\t$this->msg->setWarn(\"You don't have permission to delete!\");\n\t\t\treturn;\n\t\t}\n\t\tif(!$this->objAccessCrud->delete($id)){\n\t\t\t$this->msg->setError (\"There was an issue to delete, because this register has some relation with another one!\");\n\t\t\treturn;\n\t\t}\n\t\t// Cleaner all class values.\n\t\t$this->objAccessCrud->setAccessCrud(null);\n\t\t// Cleaner session primary key.\n\t\t$_SESSION['PK']['ACCESSCRUD'] = null;\n\n\t\t$this->msg->setSuccess (\"Delete the record with success!\");\n\t\treturn;\n\t}"
] | [
"0.8011963",
"0.7578682",
"0.7578682",
"0.75335807",
"0.7453761",
"0.73604685",
"0.73593676",
"0.73425233",
"0.73099446",
"0.73031986",
"0.7232382",
"0.72108686",
"0.71675545",
"0.7161344",
"0.7156966",
"0.7145846",
"0.71352214",
"0.71244186",
"0.71181554",
"0.71014404",
"0.7092581",
"0.7078306",
"0.7012153",
"0.70100397",
"0.7006009",
"0.7002265",
"0.7001278",
"0.69858706",
"0.6981603",
"0.6976578",
"0.69756216",
"0.6975524",
"0.6974705",
"0.6974294",
"0.69711506",
"0.6966797",
"0.6962287",
"0.6957543",
"0.6956798",
"0.6946077",
"0.69420564",
"0.6935482",
"0.6907301",
"0.6907301",
"0.68926823",
"0.68926823",
"0.68926823",
"0.68926823",
"0.68926823",
"0.68926823",
"0.68926823",
"0.68926823",
"0.68926823",
"0.68926823",
"0.6882293",
"0.6881074",
"0.68622375",
"0.68610144",
"0.68598425",
"0.68542045",
"0.6853247",
"0.6844346",
"0.6831476",
"0.68276477",
"0.6826712",
"0.6814909",
"0.6811782",
"0.68090045",
"0.68067384",
"0.67993265",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.67919123",
"0.6789255",
"0.67833555",
"0.6775951",
"0.6775951",
"0.6775951",
"0.6775951",
"0.6771276",
"0.6771276",
"0.6771276",
"0.67711794",
"0.67709905",
"0.677056",
"0.67704916",
"0.67687905",
"0.6760259",
"0.67596817",
"0.6755581",
"0.67546284",
"0.6745155"
] | 0.0 | -1 |
the private _fetchAll() method | private function _fetchAll() {
$this->Production->recursive = 0;
// if user is not an administrator, then execute below:
if ($this->Auth->user('user_category_id') != '1') {
//set $myId to currently logged in user's ID
$myId = '';$myId = $this->Auth->user('id');
//$this->set('productions', $this->paginate(array('production.field_officer_id' => $myId)));
return $this->paginate(array('Production.field_officer_id' => $myId));
}
//This line is only executed if the logged in user is an Administrator
//$this->set('productions', $this->paginate());
return $this->paginate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function doFetchAll();",
"public abstract function fetchAll();",
"public function fetchAll()\r\n {\r\n $this->query();\r\n return $this->sth->fetchAll();\r\n }",
"public function fetchAll();",
"public function fetchAll();",
"public function fetchAll();",
"public function fetchAll();",
"public function fetchAll(){\n\t\treturn $this->instance->fetchAll();\n\t}",
"public function fetchAll() {\n $this->execute();\n return $this->stmt->fetchAll(PDO::FETCH_OBJ);\n }",
"public function fetchAll()\n {\n }",
"public function fetchAll(){\r\n$table=$this->getTable();\r\nreturn $this->fetch_array($this->query(\"SELECT * FROM {$table}\"));\r\n}",
"function fetchAll()\n {\n //select all data\n $query = \"SELECT\n id, tag\n FROM\n \" . $this->table_name . \"\";\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n $result = $stmt->fetchAll(PDO::FETCH_OBJ);\n\n\n return $result;\n }",
"public function fetchAll()\n {\n $this->execute();\n return $this->dbStmt->fetchAll(PDO::FETCH_ASSOC);\n }",
"public function fetchAll() {\r\n\t\treturn $this->getMapper()->fetchAll();\r\n\t\t\r\n\t}",
"public abstract function fetchAllObjects();",
"abstract public function fetchAll($fetchType = \\PDO::FETCH_ASSOC);",
"public function fetchAll(){\n try{\n $this->array = $this->resultado->fetchAll();\n } catch (PDOException $e){\n $this->errors[] = 'error: function fetchAll<br/>'.$e->getMessage();\n $this->array = NULL;\n }\n return $this->array;\n }",
"public function _fetchAll()\n\t\t{\t\t\t\n\t\t\t$data = '';\n\t\t\twhile (($chunk = $this->_fetch(4096)) !== false)\n\t\t\t\t$data .= $chunk;\n\t\t\treturn $data;\n\t\t}",
"public function fetchAll(){\n $adapter = $this->adapter;\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from('flota');\n $selectString = $sql->getSqlStringForSqlObject($select);\n $data = $adapter->query($selectString, $adapter::QUERY_MODE_EXECUTE);\n \n return $data;\n }",
"public function fetchAll ($fetch_all_method = PDO::FETCH_ASSOC) {\n return $this->query->fetchAll($fetch_all_method); \n }",
"public function fetchAll() {\r\n\t\t$result = array();\r\n\r\n\t\twhile ($data = $this->fetch()) {\r\n\t\t\t$result[] = $data;\r\n\t\t}\r\n\r\n\t\t$this->freeResult();\r\n\r\n\t\treturn $result;\r\n\t}",
"public function fetchAll(){\n $sql = \"SELECT * FROM reservation \";\n $result = $this->connection()->query($sql);\n if ($result->rowCount()>0){\n while($rows = $result->fetch()){\n $data [] = $rows;\n }return $data;\n }\n }",
"public function fetchAll($fetchMode = \\PDO::FETCH_BOTH);",
"public abstract function fetchAll($table);",
"public function fetchAll()\r\n {\r\n $sql = new Sql($this->dbAdapter);\r\n $select = $sql->select();\r\n $select\r\n ->from(array('a_s' => $this->table))\r\n ->order('a_s.sector_order ASC');\r\n \r\n $selectString = $sql->getSqlStringForSqlObject($select);\r\n $execute = $this->dbAdapter->query($selectString, Adapter::QUERY_MODE_EXECUTE);\r\n $result = $execute->toArray();\r\n return $result;\r\n }",
"public function resultset(){\n\t\t$this->execute() ;\n\t\treturn $this->statement->fetchAll(PDO::FETCH_ASSOC) ;\n\t}",
"public static function fetch_all($params) {}",
"function fetchAll($res = null, $fmt = 'a')\n{\n\t$rows = array();\n\twhile ($row = $this->drv->fetch($res, $fmt)) {\n\t\t$rows[] = $row;\n\t}\n\treturn $rows;\n}",
"public function readAll(){\n $rq = \"SELECT * FROM Objets\";\n $stmt = $this->pdo->prepare($rq);\n $data = array();\n if(!$stmt->execute($data)){\n throw new Exception($pdo->errorInfo());\n }\n return $result = $stmt->fetchAll();\n }",
"public function fetch()\n\t{\n\t\treturn $this->data = $this->df->fetchAll();\n\t}",
"public function resultSet(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t}",
"protected function hydrateAllData()\n {\n return $this->_stmt->fetchAll(PDO::FETCH_KEY_PAIR);\n }",
"function fetch_all() {\n $query = \"SELECT * FROM ReadingList\";\n $statement = $this->connect->prepare($query);\n if($statement->execute()) {\n while($row = $statement->fetch(PDO::FETCH_ASSOC))\n {\n $data[] = $row;\n }\n return $data;\n } else {\n return \"error\";\n }\n }",
"protected function getAll()\n {\n $statement = $this->connection->query($this->sqlToString());\n return $this->fetchAll($statement);\n }",
"public function getAll() {\n $prepareStatement = $this->pdo->prepare($this->sql);\n $prepareStatement->execute($this->param);\n\n # close connection\n Connection::disconnect();\n\n return $prepareStatement->fetchAll($this->fetch);\n }",
"public function fetchAll($sql);",
"public function fetchAll($sql);",
"public function fetchAll()\n {\n //*** your code goes here\n //*** if there is an error, return an array which includes an error code of 2 and message == ERROR_UNABLE\n $listing = $this->table->select();\n if ($listing) {\n $data = [];\n $hydrator = $this->table->getResultSetPrototype()->getHydrator();\n foreach ($listing as $entity) $data[] = $hydrator->extract($entity);\n $result = ['success' => 1, 'data' => $data];\n } else {\n $result = ['success' => 0, 'error' => 1, 'message' => self::ERROR_UNABLE];\n }\n return $result;\n }",
"public function get()\n {\n return self::fetchAll();\n }",
"function fetchAll() {\r\n if($this->getNumRows() <= 0)\r\n throw new Exception(\"No Recored Found\");\r\n \r\n while ($row = mysql_fetch_array($this->m_Result)) {\r\n $a_rs[] = $row;\r\n }\r\n mysql_free_result($this->m_Result);\r\n return $a_rs;\r\n \r\n }",
"public function findAll() {\r\n$sql = \"SELECT * FROM $this->tabela\";\r\n$stm = DB::prepare($sql);\r\n$stm->execute();\r\nreturn $stm->fetchAll();\r\n}",
"protected function dbFetchAll() {\r\n\r\n //@@TODO RESOURCE CHECK IS_A ?\r\n\r\n $return_array = array();\r\n\r\n while ($row = $this->query_result->fetch_array(MYSQLI_ASSOC)) {\r\n $return_array[] = $this->dbOutArray($row);\r\n }\r\n return $return_array;\r\n }",
"public function fetchArray();",
"public function fetchArray();",
"public function fetchRowset()\n\t{\n\t\t$this->_query();\n\n\t\treturn $this->stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}",
"public function resultSet(){\n $this->execute();\n return $this->statement->fetchAll(PDO::FETCH_OBJ);\n }",
"abstract public function fetchData();",
"abstract public function fetchData();",
"public function fetchAll(): array {\n\n if($this->database === null) {\n throw new \\Exception('Database connection has not been set.');\n }\n\n $this->queryProperty->setFetchType($this->queryProperty::FETCH_ALL);\n\n $cachedResult = $this->checkQueriesCache($this->queryProperty);\n if ($cachedResult !== null) {\n $this->cacheAndResetQueryProperties();\n return $cachedResult;\n }\n\n $task = $this->createTask();\n $result = $task->fetchAll(\\PDO::FETCH_ASSOC);\n $this->cacheAndResetQueryProperties($result);\n return $result;\n }",
"public function fetchList();",
"public function queryAll() {\r\n $sql = \"SELECT * FROM $this->table\";\r\n $stmt = ConnectionFactory::prepare($sql);\r\n $stmt->execute();\r\n return $stmt->fetchAll();\r\n }",
"public function fetchAll()\n\t{\n\t\t$aReturn = Array();\n\t\twhile( $oRecord = $this->next() )\n\t\t\tarray_push( $aReturn, $oRecord );\n\t\t$this->rewind();\n\t\treturn $aReturn;\n\t}",
"public function fetch(){\n\n $rows = [];\n\n while($row = $this->result->fetch(PDO::FETCH_ASSOC)) {\n $rows[]=$row;\n }\n\n $this->result=null;\n\n return $rows;\n\n }",
"public function fetchAll(): array\n {\n if (!$this->wasExecuted()) {\n $this->exec();\n }\n\n return $this->getAdapter()->getStatement()->fetchAll(\\PDO::FETCH_ASSOC);\n }",
"public function fetchAll($fetch_style = \\PDO::FETCH_ASSOC)\n\t{\n\t\treturn $this->getStatement()\n\t\t\t\t\t->fetchAll($fetch_style);\n\t}",
"public function getallproducts(){\r\n \r\n $this->connect();\r\n $q=$this->connection->prepare(\"SELECT * FROM products\");\r\n $q->execute();\r\n\r\n $res = $q->fetchAll();\r\n\r\n $this->disconnect();\r\n\r\n return $res;\r\n}",
"function pdo_fetch_all(PDOStatement $pdo_statement, $fetch_style = PDO::FETCH_ASSOC)\n {\n return $pdo_statement->fetchAll($fetch_style);\n }",
"public function fetchAll() {\n\t\t$rows = array();//Default\n\t\t//SQL\n\t\t$sql = \"SELECT * FROM `$this->table` WHERE 1 ORDER BY sort_order, uuid ASC\";\n\t\t// excecute SQL statement\n\t\t$result = mysqli_query ( $this->adapter, $sql );\n\t\tif (mysqli_num_rows($result) > 0) {\n\t\t\t// output data of each row\n\t\t\twhile($row = mysqli_fetch_assoc($result)){\n\t\t\t\t$row['done'] = $row['done'] == 0 ? false : true;\n\t\t\t\t$rows[] = $row;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $rows;\t\t\n\t}",
"function fetchAll($sql, $array, $objectName = null);",
"public function select_all(string $query)\n{\n $this->strquery = $query;\n $result = $this->conexion->prepare($this->strquery);\n $result->execute();\n $data = $result->fetchall(PDO::FETCH_ASSOC);\n return $data; \n}",
"public function fetchAll()\n\t{\n\t\t$sql = new Sql($this->dbAdapter);\n\t\t$select = $sql->select();\n\t\t$select\n\t\t\t->columns(array('id_inventories', 'types_id_types', 'id_acl_users', 'id_department', 'article', 'amount', 'brand', 'serialnumber', 'material', 'model', 'description', 'id_product', 'chilled_dry'))\n\t\t\t->from(array('i' => $this->table))\n\t\t\t->join(array('u' => 'iof_users'), 'i.id_acl_users = u.user_id', array('name', 'surname', 'lastname'), 'Left')\n\t\t\t->join(array('d' => 'department'), 'i.id_department = d.id_department', array('d_name'), 'LEFT')\n\t\t\t->join(array('t' => 'types'), 'i.types_id_types = t.id_types', array('name_type' => 'description'), 'LEFT')\n\t\t\t//->join(array('d' => 'department'), 'u.id_department = d.id_department', array('d_name'), 'LEFT')\n\t\t;\n\t\n\t\t$selectString = $sql->getSqlStringForSqlObject($select);\n\t\t$execute = $this->dbAdapter->query($selectString, Adapter::QUERY_MODE_EXECUTE);\n\t\t$result = $execute->toArray();\n\t\treturn $result;\n\t}",
"function dbGetAll(){\r\n global $db_query;\r\n return $db_query->fetchAll(PDO::FETCH_ASSOC); \r\n}",
"public static function fetchAll($result=null) {\n\treturn self::$instance->fetchAll($result);\n\t\n }",
"public function fetchAll() {\n\t\t$queryBuilder = $this->db->createQueryBuilder();\n\t\t$queryBuilder\n\t\t\t->select('*')\n\t\t\t->from($this->table_name, 't1')\n\t\t;\n\t\t$result = $queryBuilder->execute()->fetchAll();\n\n\t\treturn $result;\n\t}",
"public static function fetchAll() {\n // Initialize fetch-all cache, if necessary\n if (!isset(self::$fetchAllRecordsPreparedStatementCache)) {\n self::$fetchAllRecordsPreparedStatementCache = array();\n }\n\n // Cache calling subclass name \n $table_name = static::getTableName();\n \n // Begin implicit transaction if explicit one doesn't exist\n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n \n // Fail because 'databaseHandle' wasn't initialized by 'beginTx()'\n assert(isset(self::$databaseHandle));\n\n try {\n // Create prepared statement if nonextant \n if (!isset(self::$fetchAllRecordsPreparedStatementCache[$table_name])) {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $query_str = \"SELECT * FROM {$fully_qualified_table_name}\";\n self::$fetchAllRecordsPreparedStatementCache[$table_name] =\n self::$databaseHandle->prepare($query_str); \n } \n\n // Fetch all records\n $fetch_all_stmt = self::$fetchAllRecordsPreparedStatementCache[$table_name]; \n $fetch_all_stmt->execute();\n $raw_record_set = $fetch_all_stmt->fetchAllRows();\n \n // Conclude implicit tx\n if ($is_implicit_tx) {\n self::endTx();\n }\n\n // Extrude raw records to objects\n $record_objects = array();\n foreach ($raw_record_set as $raw_record) {\n $record_objects[] = new static($raw_record); \n }\n\n return $record_objects;\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n }",
"public function fetchAll($where=\"\"){\n\n\t\t$select=$this->getDbTable()->select();//\n\n\t\tif(!empty($where))$select->where($where);\n\t\t$result= $this->getDbTable()->getAdapter()->fetchAll($select);\n\t\treturn $result;\n\n\t}",
"public function fetchAll()\n {\n // LEFT JOIN patient ON patient.patientId = doc_calendar.patientId\n $select = new \\Zend\\Db\\Sql\\Select ;\n $select->from('doc_calendar');\n $user_session = new Container('user');\n\n $select->where(\" doc_calendar.doctorId = '{$user_session['user']->getId()}'\");\n $select->join(array(\"p\" => \"patient\"), \"doc_calendar.patientId = p.patientId\");\n\n $dbAdapter = $this->tableGateway->getAdapter();\n $statement = $dbAdapter->createStatement();\n\n $select->prepareStatement($dbAdapter, $statement);\n $driverResult = $statement->execute(); // execute statement to get result\n\n $resultSet = new ResultSet();\n $resultSet->initialize($driverResult);\n $rows = array();\n foreach($resultSet as $row) {\n $rows[] = $row->getArrayCopy();\n }\n\n return $rows;\n }",
"public function fetchAll() : array\n {\n $sql = \"SELECT * FROM content;\";\n $resultset = $this->db->executeFetchAll($sql);\n\n return $resultset;\n }",
"public function resultaSet(){\n $this->execute();\n return $this->statemet->fetchAll(PDO::FETCH_OBJ);\n }",
"public function modelFetchAll(){\n\t\t\t//lay bien ket noi de thao tac csdl\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//thuc hien truy van, tra ket qua ve mot object\n\t\t\t$query = $conn->query(\"select * from phongban\");\n\t\t\t//tra ve tat ca cac ban ghi\n\t\t\treturn $query->fetchAll();\n\t\t}",
"function readAll(){\n\n\t\t$query = \"SELECT * FROM \" . $this->table_name .\"\";\n\t\t$stmt = $this->conn->prepare($query);\n\t\t$stmt->execute();\n\t\treturn $stmt;\n\t}",
"abstract public function get_rows();",
"public function fetchAll()\n { \n $resultSet = $this->tableGateway->select();\n return $resultSet;\n }",
"public function fetch_all(){\n $data = array();\n while( ($obj = oci_fetch_object($this->result)) != false ){\n $data[] = $obj;\n }\n return $data;\n }",
"function all() {\n\t\t$results = array();\n\t\twhile ($result = $this->fetch())\n\t\t\t$results[] = $result;\n\t\treturn $results;\n\t}",
"public function fetchAll()\n {\n $result = $this->select();\n return $result;\n }",
"public function fetchAll($sql, $params = array());",
"public function fetchAllForBase3();",
"public function fetchAll($sql, $bind = [], $mode = PDO::FETCH_ASSOC, $useMaster = false);",
"public function findAll() : array {\r\n\r\n // méthode query car pas besoin de préparation ( liée à une variable) \r\n\r\n $resultat = $this->pdo->query(\"SELECT * FROM {$this->table}\");\r\n \r\n // fetchAll pour fouiller le résultat et en extraire les données réelles\r\n\r\n $items = $resultat->fetchAll();\r\n\r\n return $items;\r\n}",
"public function fetchAll()\n {\n return mysqli_fetch_all($this->lastResults);\n }",
"protected function fetchData()\n\t{\n\t\t$this->addScopes();\n\t\t$criteria=$this->getCriteria();\n\t\tif(($pagination=$this->getPagination())!==false)\n\t\t{\n\t\t\t$pagination->setItemCount($this->getTotalItemCount());\n\t\t\t$pagination->applyLimit($criteria);\n\t\t}\n\t\tif(($sort=$this->getSort())!==false)\n\t\t\t$sort->applyOrder($criteria);\n\t\treturn CActiveRecord::model($this->modelClass)->findAll($criteria);\n\t}",
"public function fetchAll($fetch_style = NULL, $fetch_argument = NULL, $ctor_args = array())\n {\n }",
"public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t$stmt = $db->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\t\n\t\treturn $results; \n }",
"public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t$stmt = $db->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\t\n\t\treturn $results; \n }",
"public function readAll(){\r\n $query = \"SELECT * FROM docente;\";\r\n $statement = $this->cdb->prepare($query);\r\n $statement->execute();\r\n $rows = $statement->fetchAll(\\PDO::FETCH_OBJ);\r\n return $rows; \r\n }",
"public function fetchAll() {\n\n if (!$this->results) {\n\n $this->results = [];\n while ($row = $this->nextRow()) {\n $this->results[] = $row;\n }\n\n }\n\n return $this->results;\n }",
"function database_load_all()\n {\n if( !is_resource($this->_last_resource) )\n {\n return FALSE;\n }\n \n $resource = $this->_last_resource;\n $return_data = array();\n while( $data = $this->database_fetch_assoc($resource) )\n {\n $return_data[] = $data;\n }\n \n return $return_data;\n\t}",
"public function getAll()\n {\n $sql = \"SELECT * FROM \".$this->table;\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_OBJ);\n \n }",
"public function fetchData()\n\t{\n\t\tif (isset($this->rows))\n\t\t{\n\t\t\treturn $this->rows;\n\t\t}\n\t\t$this->rows = parent::fetchData();\n\t\tif ($this->force_count)\n\t\t{\n\t\t\treturn $this->rows;\n\t\t}\n\n\t\tif (count($this->rows) > $this->pagination->pageSize)\n\t\t{\n\t\t\t$this->hasMore = true;\n\t\t\tarray_pop($this->rows);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->hasMore = false;\n\t\t}\n\t\t$this->totalItemCount = $this->pagination->offset + count($this->rows);\n\t\t$this->pagination->itemCount = $this->totalItemCount + ($this->hasMore ? 1 : 0);\n\t\treturn $this->rows;\n\t}",
"public function fetchAll($statement, array $params = array());",
"public function result_set() {\n $this -> execute();\n return $this -> stmt -> fetchAll();\n }",
"function readAll() {\n $query = \"SELECT \n id, name, description\n FROM\n \" . $this->table_name . \" \n ORDER BY\n name\";\n\n $stmt = $this->conn->prepare($query);\n\n //execute query\n $stmt->execute();\n\n return $stmt;\n }",
"public function getAll()\n {\n $sql = \"SELECT * FROM \" . self::table . \";\";\n\n $conn = $this->dbc->Get();\n $statement = $conn->prepare($sql);\n $statement->execute();\n $data = $statement->fetchAll();\n $conn = null;\n\n return $data;\n }",
"public function consultarDatos($consultaSQL){\n $conexionBD=$this->conectarBD();\n\n //2.Preparar la consulta que se va a realizar\n $consultaBuscarDatos= $conexionBD->prepare($consultaSQL);\n\n //3. Definir la forma en la que vmos a traer los datos\n // setFetchMode\n $consultaBuscarDatos->setFetchMode(PDO::FETCH_ASSOC);\n\n //4.Ejecutar la consulta\n $consultaBuscarDatos->execute();\n\n //5. Retornar los datos consultados\n return($consultaBuscarDatos->fetchAll());\n\n\n\n}",
"function fetchAll()\n {\n $rows=array();\n if ($this->consulta)\n {\n //la funcion oci_fetch_array devuelve cada fila de la consulta en forma de array\n while($row = oci_fetch_array($this->consulta, OCI_BOTH))\n { //luego cada fila (como un array) se agrega a otro array... creando un array de 2 dimsnesiones\n $rows[]=$row;\n }\n }\n return $rows;\n }",
"function fetchAll($pdo, $resultado)\n{\n try {\n $sql_query = 'SELECT * FROM names_app';\n $gsent = $pdo->prepare($sql_query);\n $gsent->execute();\n $resultado = $gsent->fetchAll();\n } catch (PDOException $e) {\n print \"¡Error!: \" . $e->getMessage() . \"<br/>\";\n die();\n }\n}",
"function FetchAllData($bdd){\n $sth = $bdd->prepare(\"SELECT * FROM article\");\n $sth->execute();\n $result = $sth->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n}",
"public function fetchAll($all = 1)\n {\n if (!empty($this->prepare)) {\n if (1 == $all) {\n return $this->prepare->fetchAll();\n } elseif (2 == $all) {\n return $this->prepare->fetchAll(PDO::FETCH_ASSOC);\n }\n }\n return array();\n }",
"public function get_all() {\n $where = func_get_args();\n $this->_set_where($where);\n\n $this->_callbacks('before_get', array($where));\n\n if ($this->result_mode == 'object') {\n $result = $this->db->get($this->_table())->result();\n } else {\n $result = $this->db->get($this->_table())->result_array();\n }\n\n foreach ($result as &$row) {\n $row = $this->_callbacks('after_get', array($row));\n }\n\n return $result;\n }",
"public function fetchAll(){\n $resultSet = $this->tableGateway->select();\n return $resultSet;\n }"
] | [
"0.8341072",
"0.7991754",
"0.77481943",
"0.7717565",
"0.7717565",
"0.7717565",
"0.7717565",
"0.76926136",
"0.7675236",
"0.75774884",
"0.7504776",
"0.7454816",
"0.7451582",
"0.7440125",
"0.7365229",
"0.73398274",
"0.7320153",
"0.73139733",
"0.72762644",
"0.7244903",
"0.7180154",
"0.71790045",
"0.71713215",
"0.7160548",
"0.71535885",
"0.7149696",
"0.7149058",
"0.7135454",
"0.7076234",
"0.70748836",
"0.7063032",
"0.7062585",
"0.70559096",
"0.70541674",
"0.7045558",
"0.7041226",
"0.7041226",
"0.7034823",
"0.70239335",
"0.7015165",
"0.6984396",
"0.69805336",
"0.69704777",
"0.69704777",
"0.6948746",
"0.6945776",
"0.6940603",
"0.6940603",
"0.6939594",
"0.6931525",
"0.69193715",
"0.69061714",
"0.6901196",
"0.69009364",
"0.6877868",
"0.68769974",
"0.6875424",
"0.6872325",
"0.68720526",
"0.68670005",
"0.68526953",
"0.6845197",
"0.68430173",
"0.6835363",
"0.6822885",
"0.6816218",
"0.681223",
"0.68087465",
"0.6794155",
"0.67934185",
"0.6791073",
"0.67909974",
"0.67771",
"0.6777047",
"0.67662245",
"0.6761293",
"0.6755234",
"0.675165",
"0.6738658",
"0.6734299",
"0.6728348",
"0.6727293",
"0.67237836",
"0.6720855",
"0.6720855",
"0.6719495",
"0.67162883",
"0.67086935",
"0.6680656",
"0.66802037",
"0.6677241",
"0.667267",
"0.66710883",
"0.66664135",
"0.66576713",
"0.6656332",
"0.6654605",
"0.6651235",
"0.66509473",
"0.6650131",
"0.663916"
] | 0.0 | -1 |
end function _fetchAll() the public toInspect() method | public function toInspect() {
$this->set('productions', $this->_fetchAll());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function fetchAll()\n {\n }",
"public abstract function fetchAll();",
"public function fetchAll();",
"public function fetchAll();",
"public function fetchAll();",
"public function fetchAll();",
"abstract protected function doFetchAll();",
"public function fetchAll(){\n\t\treturn $this->instance->fetchAll();\n\t}",
"public function fetchAll() {\r\n\t\treturn $this->getMapper()->fetchAll();\r\n\t\t\r\n\t}",
"public function fetchAll() {\n $this->execute();\n return $this->stmt->fetchAll(PDO::FETCH_OBJ);\n }",
"public function fetchAll(){\r\n$table=$this->getTable();\r\nreturn $this->fetch_array($this->query(\"SELECT * FROM {$table}\"));\r\n}",
"function fetchAll()\n {\n //select all data\n $query = \"SELECT\n id, tag\n FROM\n \" . $this->table_name . \"\";\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n $result = $stmt->fetchAll(PDO::FETCH_OBJ);\n\n\n return $result;\n }",
"public function fetchAll(){\n $adapter = $this->adapter;\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from('flota');\n $selectString = $sql->getSqlStringForSqlObject($select);\n $data = $adapter->query($selectString, $adapter::QUERY_MODE_EXECUTE);\n \n return $data;\n }",
"public function fetchAll()\r\n {\r\n $this->query();\r\n return $this->sth->fetchAll();\r\n }",
"public function fetchList();",
"public function fetchAll(){\n try{\n $this->array = $this->resultado->fetchAll();\n } catch (PDOException $e){\n $this->errors[] = 'error: function fetchAll<br/>'.$e->getMessage();\n $this->array = NULL;\n }\n return $this->array;\n }",
"public function fetchAll()\n\t{\n\t\t$sql = new Sql($this->dbAdapter);\n\t\t$select = $sql->select();\n\t\t$select\n\t\t\t->columns(array('id_inventories', 'types_id_types', 'id_acl_users', 'id_department', 'article', 'amount', 'brand', 'serialnumber', 'material', 'model', 'description', 'id_product', 'chilled_dry'))\n\t\t\t->from(array('i' => $this->table))\n\t\t\t->join(array('u' => 'iof_users'), 'i.id_acl_users = u.user_id', array('name', 'surname', 'lastname'), 'Left')\n\t\t\t->join(array('d' => 'department'), 'i.id_department = d.id_department', array('d_name'), 'LEFT')\n\t\t\t->join(array('t' => 'types'), 'i.types_id_types = t.id_types', array('name_type' => 'description'), 'LEFT')\n\t\t\t//->join(array('d' => 'department'), 'u.id_department = d.id_department', array('d_name'), 'LEFT')\n\t\t;\n\t\n\t\t$selectString = $sql->getSqlStringForSqlObject($select);\n\t\t$execute = $this->dbAdapter->query($selectString, Adapter::QUERY_MODE_EXECUTE);\n\t\t$result = $execute->toArray();\n\t\treturn $result;\n\t}",
"public abstract function fetchAllObjects();",
"public function fetchAll ($fetch_all_method = PDO::FETCH_ASSOC) {\n return $this->query->fetchAll($fetch_all_method); \n }",
"abstract public function fetchAll($fetchType = \\PDO::FETCH_ASSOC);",
"public function fetchAll()\n {\n $this->execute();\n return $this->dbStmt->fetchAll(PDO::FETCH_ASSOC);\n }",
"protected function getAll()\n {\n $statement = $this->connection->query($this->sqlToString());\n return $this->fetchAll($statement);\n }",
"public function fetchArray();",
"public function fetchArray();",
"public function modelFetchAll(){\n\t\t\t//lay bien ket noi de thao tac csdl\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//thuc hien truy van, tra ket qua ve mot object\n\t\t\t$query = $conn->query(\"select * from phongban\");\n\t\t\t//tra ve tat ca cac ban ghi\n\t\t\treturn $query->fetchAll();\n\t\t}",
"public static function fetch_all($params) {}",
"public function fetchAll(){\n $sql = \"SELECT * FROM reservation \";\n $result = $this->connection()->query($sql);\n if ($result->rowCount()>0){\n while($rows = $result->fetch()){\n $data [] = $rows;\n }return $data;\n }\n }",
"public function getAll()\n {\n $sql = \"SELECT * FROM \".$this->table;\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_OBJ);\n \n }",
"public function selectdata(){\n$this->autoRender=false;\n$data=$this->connection->execute(\"select * from users\")->fetchAll();\nprint_r($data);\n}",
"public function fetchAll()\r\n {\r\n $sql = new Sql($this->dbAdapter);\r\n $select = $sql->select();\r\n $select\r\n ->from(array('a_s' => $this->table))\r\n ->order('a_s.sector_order ASC');\r\n \r\n $selectString = $sql->getSqlStringForSqlObject($select);\r\n $execute = $this->dbAdapter->query($selectString, Adapter::QUERY_MODE_EXECUTE);\r\n $result = $execute->toArray();\r\n return $result;\r\n }",
"public function get()\n {\n return self::fetchAll();\n }",
"public function get_all ();",
"public function readAll(){\n $rq = \"SELECT * FROM Objets\";\n $stmt = $this->pdo->prepare($rq);\n $data = array();\n if(!$stmt->execute($data)){\n throw new Exception($pdo->errorInfo());\n }\n return $result = $stmt->fetchAll();\n }",
"public function fetchAll()\n {\n //*** your code goes here\n //*** if there is an error, return an array which includes an error code of 2 and message == ERROR_UNABLE\n $listing = $this->table->select();\n if ($listing) {\n $data = [];\n $hydrator = $this->table->getResultSetPrototype()->getHydrator();\n foreach ($listing as $entity) $data[] = $hydrator->extract($entity);\n $result = ['success' => 1, 'data' => $data];\n } else {\n $result = ['success' => 0, 'error' => 1, 'message' => self::ERROR_UNABLE];\n }\n return $result;\n }",
"public function all()\n {\n try {\n if($this->visible) {\n $visibleStatement = implode(\",\", $this->visible);\n $this->sqlStatement = str_replace(\"*\", $visibleStatement, $this->sqlStatement);\n }\n $statement = $this->db->prepare($this->sqlStatement);\n\n $statement->execute();\n $statement->setFetchMode(PDO::FETCH_ASSOC);\n\n $results = $statement->fetchAll();\n\n return $results;\n\n } catch(PDOException $e) {\n return $e;\n }\n }",
"public final function get_all()\n {\n }",
"protected function getAll() {}",
"public function getAll() {\n $prepareStatement = $this->pdo->prepare($this->sql);\n $prepareStatement->execute($this->param);\n\n # close connection\n Connection::disconnect();\n\n return $prepareStatement->fetchAll($this->fetch);\n }",
"public function fetch_all(){\n $data = array();\n while( ($obj = oci_fetch_object($this->result)) != false ){\n $data[] = $obj;\n }\n return $data;\n }",
"public function _fetchAll()\n\t\t{\t\t\t\n\t\t\t$data = '';\n\t\t\twhile (($chunk = $this->_fetch(4096)) !== false)\n\t\t\t\t$data .= $chunk;\n\t\t\treturn $data;\n\t\t}",
"public abstract function fetchAll($table);",
"function fetch_all() {\n $query = \"SELECT * FROM ReadingList\";\n $statement = $this->connect->prepare($query);\n if($statement->execute()) {\n while($row = $statement->fetch(PDO::FETCH_ASSOC))\n {\n $data[] = $row;\n }\n return $data;\n } else {\n return \"error\";\n }\n }",
"public function getAll(){\n $adapter = $this->createAdapter();\n $results = $adapter->query($this->getSelectStatement());\n return $results;\n $adapter = null;\n }",
"function all() {\n\t\t$results = array();\n\t\twhile ($result = $this->fetch())\n\t\t\t$results[] = $result;\n\t\treturn $results;\n\t}",
"public function resultset(){\n\t\t$this->execute() ;\n\t\treturn $this->statement->fetchAll(PDO::FETCH_ASSOC) ;\n\t}",
"public function resultSet(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t}",
"public function resultaSet(){\n $this->execute();\n return $this->statemet->fetchAll(PDO::FETCH_OBJ);\n }",
"public function all(){\n\n $a= parent::bdd()->query(\"SELECT * FROM auteur\");\n $b= $a->fetchall(\\PDO::FETCH_OBJ);\n\n return $b;\n\n }",
"public function findAll() {\r\n$sql = \"SELECT * FROM $this->tabela\";\r\n$stm = DB::prepare($sql);\r\n$stm->execute();\r\nreturn $stm->fetchAll();\r\n}",
"public function all(): ResultSetContract;",
"public function fetchAllForBase3();",
"public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t$stmt = $db->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\t\n\t\treturn $results; \n }",
"public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t$stmt = $db->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\t\n\t\treturn $results; \n }",
"public function fetch()\n\t{\n\t\treturn $this->data = $this->df->fetchAll();\n\t}",
"public function showAll(){\n //global $db;\n $query = $this->db->prepare(\"SELECT * FROM `products`\");\n try{\n $query->execute();\n }catch(PDOException $e){\n die($e->getMessage());\n } \n return $query->fetchAll(PDO::FETCH_ASSOC);\n }",
"public function fetchAll() {\r\n\t\t$result = array();\r\n\r\n\t\twhile ($data = $this->fetch()) {\r\n\t\t\t$result[] = $data;\r\n\t\t}\r\n\r\n\t\t$this->freeResult();\r\n\r\n\t\treturn $result;\r\n\t}",
"public function fetchAll()\n { \n $resultSet = $this->tableGateway->select();\n return $resultSet;\n }",
"protected function getAll(){\n\t\t\n\t\t$connection = DB::connect();\n\t\t\n\t\t$sql = \"SELECT * FROM $this->_tableName\";\n\t\t$result = '';\n\t\t\n\t\ttry {\n\t\t\t$stmt = $connection->query($sql);\n\t\t\t$result = $stmt->fetchAll();\n\t\t\n\t\t\treturn $result;\n\t\t\n\t\t} catch (PDOException $e){\n\t\t\tdie('Error: '.$e->getMessage().'<br/>');\n\t\t}\n\t}",
"public function readAll(){\r\n $query = \"SELECT * FROM docente;\";\r\n $statement = $this->cdb->prepare($query);\r\n $statement->execute();\r\n $rows = $statement->fetchAll(\\PDO::FETCH_OBJ);\r\n return $rows; \r\n }",
"public function fetchAll()\n {\n $result = $this->select();\n return $result;\n }",
"public function selectAllContracteData(){\n $sql = \"SELECT * FROM contract ORDER BY id DESC\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }",
"public function resultSet(){\n $this->execute();\n return $this->statement->fetchAll(PDO::FETCH_OBJ);\n }",
"function fetchAll($res = null, $fmt = 'a')\n{\n\t$rows = array();\n\twhile ($row = $this->drv->fetch($res, $fmt)) {\n\t\t$rows[] = $row;\n\t}\n\treturn $rows;\n}",
"public function getAll()\r\n {\r\n $stmt = $this->conn->prepare(\"SELECT * FROM $this->table ORDER BY id DESC\");\r\n $stmt->execute();\r\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n }",
"abstract public function getAll();",
"abstract public function getAll();",
"abstract public function getAll();",
"public function getAll()\n {\n $sql = \"SELECT * FROM $this->table\";\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll();\n }",
"public function fetchAll($fetchMode = \\PDO::FETCH_BOTH);",
"function dbGetAll(){\r\n global $db_query;\r\n return $db_query->fetchAll(PDO::FETCH_ASSOC); \r\n}",
"public function getAll()\r\n {\r\n $data = $this->select()\r\n ->from($this->_name);\r\n return $this->fetchAll($data);\r\n }",
"public abstract function getAll();",
"public function fetchAll($fetchStyle= null);",
"protected function dbFetchAll() {\r\n\r\n //@@TODO RESOURCE CHECK IS_A ?\r\n\r\n $return_array = array();\r\n\r\n while ($row = $this->query_result->fetch_array(MYSQLI_ASSOC)) {\r\n $return_array[] = $this->dbOutArray($row);\r\n }\r\n return $return_array;\r\n }",
"public static function fetchAll($result=null) {\n\treturn self::$instance->fetchAll($result);\n\t\n }",
"public function fALL()\n {\n $fetch_all_data = $this->query->fetchAll(PDO::FETCH_OBJ);\n if($fetch_all_data)\n {\n return $fetch_all_data;\n }else{\n return false;\n }\n \n }",
"public function fetchAll()\n {\n return mysqli_fetch_all($this->lastResults);\n }",
"public function fetchAll()\n\t{\n\t\t$aReturn = Array();\n\t\twhile( $oRecord = $this->next() )\n\t\t\tarray_push( $aReturn, $oRecord );\n\t\t$this->rewind();\n\t\treturn $aReturn;\n\t}",
"public function getAllReturnInfo() {\n $this->selStmt->execute(); // execute SQL statement\n return $this->selStmt->fetchAll(PDO::FETCH_ASSOC); // return fetched result\n }",
"public function fetchAll() {\n\t\t$queryBuilder = $this->db->createQueryBuilder();\n\t\t$queryBuilder\n\t\t\t->select('*')\n\t\t\t->from($this->table_name, 't1')\n\t\t;\n\t\t$result = $queryBuilder->execute()->fetchAll();\n\n\t\treturn $result;\n\t}",
"function all($offset = 0, $rowcount = 0, $sort = NULL, $includeContactIDs = FALSE, $justIDs = FALSE) {\n//echo ($this->sql($this->select(), $offset, $rowcount, $sort, $includeContactIDs, NULL));\n return $this->sql($this->select(), $offset, $rowcount, $sort, $includeContactIDs, NULL);\n\n }",
"public function fetchAll()\n {\n // LEFT JOIN patient ON patient.patientId = doc_calendar.patientId\n $select = new \\Zend\\Db\\Sql\\Select ;\n $select->from('doc_calendar');\n $user_session = new Container('user');\n\n $select->where(\" doc_calendar.doctorId = '{$user_session['user']->getId()}'\");\n $select->join(array(\"p\" => \"patient\"), \"doc_calendar.patientId = p.patientId\");\n\n $dbAdapter = $this->tableGateway->getAdapter();\n $statement = $dbAdapter->createStatement();\n\n $select->prepareStatement($dbAdapter, $statement);\n $driverResult = $statement->execute(); // execute statement to get result\n\n $resultSet = new ResultSet();\n $resultSet->initialize($driverResult);\n $rows = array();\n foreach($resultSet as $row) {\n $rows[] = $row->getArrayCopy();\n }\n\n return $rows;\n }",
"public function selectAll();",
"function fetchAll($sql, $array, $objectName = null);",
"public function queryAll() {\r\n $sql = \"SELECT * FROM $this->table\";\r\n $stmt = ConnectionFactory::prepare($sql);\r\n $stmt->execute();\r\n return $stmt->fetchAll();\r\n }",
"public function fetchAll($sql);",
"public function fetchAll($sql);",
"public function getAll(){\n try{\n $sql = \"SELECT * FROM {$this->tabela}\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute();\n $dados = $stm->fetchAll(PDO::FETCH_OBJ);\n return $dados;\n }catch(PDOException $erro){\n echo \"<script>alert('Erro na linha: {$erro->getLine()}')</script>\";\n }\n }",
"protected static function getAll()\n {\n }",
"public function fetchAll(){\n $resultSet = $this->tableGateway->select();\n return $resultSet;\n }",
"public function getAll()\n {\n $sql = \"SELECT * FROM \" . self::table . \";\";\n\n $conn = $this->dbc->Get();\n $statement = $conn->prepare($sql);\n $statement->execute();\n $data = $statement->fetchAll();\n $conn = null;\n\n return $data;\n }",
"public function getallproducts(){\r\n \r\n $this->connect();\r\n $q=$this->connection->prepare(\"SELECT * FROM products\");\r\n $q->execute();\r\n\r\n $res = $q->fetchAll();\r\n\r\n $this->disconnect();\r\n\r\n return $res;\r\n}",
"public function resultSet(){\r\n $this->execute();\r\n return $this->stmt->fetchAll(PDO::FETCH_OBJ);\r\n /*PDO::FETCH_OBJ\r\n assim podemos imprimir como objeto exemplo\r\n foreach($users as user){\r\n echo $user->name . '<br>';\r\n ao invés de echo $user['name];\r\n */\r\n }",
"public function all()\n {\n $sql = \"SELECT * FROM {$this->table()}\";\n return $this->db->query($sql)->fetchAll();\n }",
"public function listAll();",
"public function listAll();",
"protected function hydrateAllData()\n {\n return $this->_stmt->fetchAll(PDO::FETCH_KEY_PAIR);\n }",
"public function fetchAll()\n {\n return Accessory::paginate(25);\n }",
"public static function all()\n {\n self::select(self::tableName());\n return self::fetchAll();\n }",
"public function findAll() : array {\r\n\r\n // méthode query car pas besoin de préparation ( liée à une variable) \r\n\r\n $resultat = $this->pdo->query(\"SELECT * FROM {$this->table}\");\r\n \r\n // fetchAll pour fouiller le résultat et en extraire les données réelles\r\n\r\n $items = $resultat->fetchAll();\r\n\r\n return $items;\r\n}",
"function displayAll() {\n try {\n /** Instantiate the Database model. **/\n $db = Database::getInstance();\n\n /** Connect to the database. **/\n $dbh = $db->getConnection();\n\n /** Prepare the sql query to be used. **/\n $stmt = $dbh->prepare(\"SELECT * FROM employees WHERE position = :position AND isDeleted = 'N'\");\n\n /** Bind the parameters to the sql query. **/\n $position = \"dataAnalyst\";\n $stmt->bindParam(':position', $position);\n\n /** Execute the query. **/\n $stmt->execute();\n\n /** Store the query result to a variable. **/\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n }\n catch(PDOException $e) {\n echo $e->getMessage();\n }\n }"
] | [
"0.7688975",
"0.7646413",
"0.7639365",
"0.7639365",
"0.7639365",
"0.7639365",
"0.7607137",
"0.7582458",
"0.735695",
"0.73043674",
"0.7244086",
"0.7223974",
"0.7145335",
"0.71301657",
"0.7102933",
"0.7093279",
"0.7090406",
"0.7068744",
"0.70408523",
"0.7021289",
"0.7010086",
"0.6985002",
"0.6966881",
"0.6966881",
"0.69661087",
"0.6944862",
"0.6915906",
"0.69102824",
"0.69003457",
"0.6897258",
"0.6891734",
"0.68810445",
"0.6872395",
"0.68483853",
"0.6821443",
"0.6817037",
"0.6817027",
"0.67992276",
"0.6797425",
"0.67966884",
"0.6794434",
"0.6793699",
"0.6784924",
"0.67826056",
"0.6776498",
"0.67579174",
"0.67471707",
"0.6745442",
"0.67240715",
"0.6721182",
"0.67146915",
"0.6714678",
"0.6714678",
"0.6706655",
"0.66985214",
"0.6693139",
"0.6692842",
"0.66805136",
"0.6680026",
"0.66781753",
"0.66749",
"0.66735905",
"0.6670089",
"0.6666522",
"0.6665242",
"0.6665242",
"0.6665242",
"0.6662121",
"0.6659083",
"0.66557723",
"0.6646429",
"0.6642231",
"0.663707",
"0.66364676",
"0.66229844",
"0.66218996",
"0.66149545",
"0.66043264",
"0.6597871",
"0.6594281",
"0.6593717",
"0.65904874",
"0.65879613",
"0.6586728",
"0.6585723",
"0.65845996",
"0.65845996",
"0.65840507",
"0.6569501",
"0.6551136",
"0.6549908",
"0.65305007",
"0.65213454",
"0.6512222",
"0.65101254",
"0.65101254",
"0.650819",
"0.6502506",
"0.65015244",
"0.6501456",
"0.65003604"
] | 0.0 | -1 |
Instantiates a new directorySetting and sets the default values. | public function __construct() {
parent::__construct();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function createFromDiscriminatorValue(ParseNode $parseNode): DirectorySetting {\n return new DirectorySetting();\n }",
"public function initDefaultDirectories()\n {\n $this->setParam(DirectoryKeys::TMP, ParamNode::TYPE_STRING, '/tmp');\n $this->setParam(DirectoryKeys::DEPLOY, ParamNode::TYPE_STRING, '/deploy');\n $this->setParam(DirectoryKeys::WEBAPPS, ParamNode::TYPE_STRING, '/webapps');\n $this->setParam(DirectoryKeys::VAR_LOG, ParamNode::TYPE_STRING, '/var/log');\n $this->setParam(DirectoryKeys::VAR_RUN, ParamNode::TYPE_STRING, '/var/run');\n $this->setParam(DirectoryKeys::VAR_TMP, ParamNode::TYPE_STRING, '/var/tmp');\n $this->setParam(DirectoryKeys::ETC_APPSERVER, ParamNode::TYPE_STRING, '/etc/appserver');\n $this->setParam(DirectoryKeys::ETC_APPSERVER_CONFD, ParamNode::TYPE_STRING, '/etc/appserver/conf.d');\n }",
"public function initialize() {\n $loadjquery = $this->modx->getOption('sekusergalleries.load_jquery');\n $this->setDefaultProperties(array(\n 'tplDirContainer' => 'directory.container',\n 'tplDirGraph' => 'directory.bargraph',\n 'graphcss' => '',\n 'customcss' => '',\n 'loadjquery' => $loadjquery,\n ));\n\n $this->directory_name = $this->modx->user->get('id');\n }",
"protected function init()\n {\n $dir = $this->getDir();\n\n if (!file_exists($dir)) {\n mkdir($dir, 0755, true);\n }\n }",
"public function defaults()\n\t{\n\t\t$this->set('name', basename($this->get('localPath')));\n\n\t\t// Directory path within repo\n\t\tif (dirname($this->get('localPath')) !== '.')\n\t\t{\n\t\t\t$this->set('dirname', dirname($this->get('localPath')));\n\t\t}\n\n\t\tif ($this->exists() && is_dir($this->get('fullPath')))\n\t\t{\n\t\t\t$this->set('type', 'folder');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->set('type', 'file');\n\t\t\t$this->set('ext', Helpers\\Html::getFileExtension($this->get('localPath')));\n\t\t}\n\n\t\tif ($this->exists())\n\t\t{\n\t\t\t$this->set('date', Date::of(filemtime($this->get('fullPath'))));\n\t\t}\n\t}",
"public function set_defaults()\n {\n $this->dir = null;\n $this->out = 'a';\n $this->mod = false;\n $this->err = false;\n $this->nort = false;\n $this->nostd = false;\n $this->quiet = false;\n $this->werror = false;\n $this->run = false;\n $this->format = false;\n $this->check = false;\n $this->version = false;\n $this->lib_paths = [ realpath(__DIR__ . '/../lib') ]; // install dir\n $this->log_dest = null; // stderr\n $this->log_time = false;\n $this->log_width = 80;\n $this->log_level = LOG_LEVEL_WARNING;\n $this->pack = null; // defaults to \"zip\"\n $this->stub = null; // defaults to \"none\"\n }",
"function setDirectory( $dir=null , $protect = true ) \r\n {\r\n $success = false;\r\n\r\n // checks to confirm existence of directory\r\n // then confirms directory is writeable \r\n if ($dir === null)\r\n {\r\n $dir = $this->getDirectory(); \r\n } \r\n \r\n $helper = new DSCHelper();\r\n $helper->checkDirectory($dir);\r\n $this->_directory = $dir;\r\n return $this->_directory;\r\n }",
"public function setDirectory($directory)\n {\n $this->_path['dirname'] = (string) rtrim($directory, DIRECTORY_SEPARATOR);\n\n return $this;\n }",
"public function getDefaultFolder() {}",
"public function getDefaultFolder() {}",
"public function set_directory( $directory ) {\n\t\t$this->directory = rtrim( $directory, '/' ) . '/';\n\t\treturn $this;\n\t}",
"public function getDefaultSettings();",
"public function __construct( $directory = '' ) {\n\t\tparent::__construct( $directory );\n\t}",
"public function setDirectory($directory)\n {\n $this->directory = $directory;\n return $this;\n }",
"public function __construct($directory) {\n $this->setDir($directory);\n }",
"public function __construct(){ \n \t\n// Clean data\t\t\n\t\tunset( $this->data ); \n\t\t\n\t\t$this->data = array(); \n\t\t\n// Valid Directory \t\t\n\t\tif( !is_dir( $this->directory ) ){ echo '<h1>Does don\\'t exist that directory: '.$this->directory.'</h1>'; exit; }\n\t\t\n\t\t$this->conection = new Settings();\t\n\t\t\n\t\t$this->image = null;\n \t\n }",
"function getDefaultFolder() ;",
"public function set_defaults() {\n if (!empty($this->default_settings)) {\n $this->add($this->default_settings);\n }\n return $this;\n }",
"public function __construct() {\r\n $directoryInfo = new DirectoryInfo(getcwd());\r\n $this->directoryRoot = $directoryInfo->root();\r\n }",
"public function __construct()\n {\n $this->setting = new Setting();\n }",
"public function __construct(){\r\n\t\t$dir = $this->dir;\r\n\t}",
"private function set_directory(){\n if(!is_dir($this->img_dir)) mkdir($this->img_dir);\n if(!is_dir($this->thumb_dir)) mkdir($this->thumb_dir);\n }",
"public function setDirectoryScope($val)\n {\n $this->_propDict[\"directoryScope\"] = $val;\n return $this;\n }",
"protected function checkDirectory()\n {\n $directoryPath = $this\n ->directory\n ->getDirectoryPath();\n\n if (!is_dir($directoryPath)) {\n\n mkdir($directoryPath);\n }\n\n return $this;\n }",
"function _setDefaults() {}",
"public function createSetting(): Setting\n {\n return Setting::create('cache://double-backup');\n }",
"public static function newDefaultConfig(): self\n {\n return new static(self::_getDefaultConfig());\n }",
"private function initializeSettings() {\r\n global $config;\r\n $this->settings = $config;\r\n $this->fileUploadPath = $this->settings[\"uploadFolder\"];\r\n $this->fileSavePath = $this->settings[\"downloadFolder\"];\r\n $this->currentLang = $this->settings[\"lang\"];\r\n $this->currentpage = 1;\r\n }",
"public function __construct($directory)\n {\n $this->directory = $directory;\n }",
"public function setDir($directory) {\n if(!file_exists($directory) || !is_dir($directory)) {\n mkdir($directory);\n }\n\n $this->dir = $directory;\n }",
"public function setDir($dir);",
"private function init() {\n $options = $this->options;\n if ($options === false) $options = array();\n if (isset($options['defaultFolder'])) {\n $this->defaultIconsFolder = $options['defaultFolder'];\n }\n }",
"protected function createDirectory() {}",
"public function __construct( $dir_path = null )\n\t{\n\t\tif ( is_string($dir_path) ) {\n\t\t\t$this->set_working_dir($dir_path);\n\t\t}\n\t}",
"function mdl_set_component_directory(array $definition, string $directory)\n{\n if (!isset($definition['directory'])) {\n $definition['directory'] = $directory;\n }\n return $definition;\n}",
"public function setDirectory(string $path) : ConfigLoader;",
"public function getDefaultFolderAttribute()\n\t{\n\t\treturn self::firstOrCreate([\n\t\t\t'posttype_id' => $this->posttype_id,\n\t\t\t'locale' => $this->locale,\n\t\t\t'slug' => \"no\",\n\t\t]);\n\n\t}",
"function set_dir_metadatos($dir=null)\n\t{\n\t\t$test = realpath($this->get_dir(). '/' .$dir);\n\t\tif (! is_null($dir) && $test !== false && is_dir($test)) {\n\t\t\t$this->prefijo_dir_metadatos = $dir;\n\t\t}\n\t}",
"function __construct($dir = null, $make_dir_if_not_exists = false)\n {\n $this->dirInit();\n $this->zipInit();\n $this->setDir($dir,$make_dir_if_not_exists);\n }",
"public function __construct ($uploadFolder = null,$chunkFolder = null,$deleteChunkSetting = true)\n\t{\n\t\t$this->uploadFolder = $uploadFolder ? $uploadFolder : Config::UPLOAD_FOLDER;\n\t\t$this->chunkFolder = $chunkFolder ? $chunkFolder : Config::UPLOAD_TEMP;\n $this->apiDataFolder = Config::APIINFO_FOLDER;\n\t\t$this->setting_deleteChunks = $deleteChunkSetting;\n $this->apiInfoFile = Config::APIINFO_FILE;\n\n\t\t$this->validateFolder($this->uploadFolder);\n\t $this->validateFolder($this->chunkFolder);\n $this->validateFolder($this->apiDataFolder);\n $this->serverInfo = Util::getServerDetails();\n\t}",
"function __construct($settings = array()) {\n\t\tif (!is_array(current($settings))) { // for BC\n\t\t\t$this->_paths = array_merge($this->_paths, (array) $settings);\n\t\t}\n\t\t$this->__compatConstruct($settings);\n\t}",
"public function setDirectory(string $directory): self\n {\n $directory = \\trim($directory, './\\/\\\\');\n $this->directory = $this->rootDir . $directory;\n\n return $this;\n }",
"public function __construct( $dir=null )\n {\n if( $dir ) $this->dir = $dir;\n if( substr( $this->dir, -1 ) !== '/' ) {\n $this->dir .= '/';\n }\n }",
"final public function setStorageDirectoryMode($storageDirectoryMode)\n\t{\n\t\t$this->_storageDirectoryMode = $storageDirectoryMode;\n\n\t\treturn $this;\n\t}",
"public function __construct($dir) {\n\t\t$this->_dir = $dir;\n\t}",
"public function __construct() {\n\t\t@mkdir($this->storage, 0777, true);\n\t}",
"public function __construct()\n {\n $this->rootDir = '/tmp';\n }",
"public static function set_directory( string $directory ) {\r\n\t\tself::$directory = $directory;\r\n\t}",
"public function createDir()\n\t{\n\t\tif (!Core_File::isDir($this->_dir))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tCore_File::mkdir($this->_dir, CHMOD, TRUE);\n\t\t\t} catch (Exception $e) {}\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function __construct( $directory = 'cache' ) {\n\t\t$this->set_cache_directory( $this->prefix . $directory );\n\t}",
"public function initSettings()\n {\n register_setting('flickr_group_gallery_settings', 'flickr_group_gallery_api_key');\n register_setting('flickr_group_gallery_settings', 'flickr_group_gallery_api_secret');\n register_setting('flickr_group_gallery_settings', 'flickr_group_gallery_cache_path');\n register_setting('flickr_group_gallery_settings', 'flickr_group_gallery_cache_expires');\n }",
"function __construct(array $settings)\n {\n // Add more stuff to fluff out the configuration here\n $this->stdSettings = array(\n \"dr\" => $_SERVER['DOCUMENT_ROOT'],\n \"ds\" => DIRECTORY_SEPARATOR\n );\n \n $this->settings = array_merge($this->stdSettings, $settings);\n }",
"function create_object_settings() {\n if (!isset($this->settings)) {\n require_once($this->addon->dir . 'include/class.widget.settings.php');\n $this->settings = new SLPWidget_Legacy_Settings( array( 'addon' => $this->addon ) );\n }\n }",
"private function setDirectory($directory)\n {\n if ($directory === null) {\n $this->directory = __DIR__ . '/../../language';\n } else {\n $this->directory = $directory;\n }\n }",
"public function init() {\r\n\t\tregister_setting( $this->key, $this->key );\r\n\t}",
"public static function setTempDir($tempDir) {}",
"public function setDirectory($directory) {\n $this->directory = $directory;\n }",
"private static function initialize_defaults() {\r\n\t\t\tself::$default_settings['credentials'] = array();\r\n\r\n\t\t\tself::$default_settings['has_first_question'] = 'no';\r\n\r\n\t\t\t// We want the Urtaks to appear by default, so let's append them\r\n\t\t\tself::$default_settings['placement'] = 'append';\r\n\r\n\t\t\t// We want to default post types to 'post' and 'page'\r\n\t\t\tself::$default_settings['post-types'] = array('page', 'post');\r\n\r\n\t\t\t// We want users to be able to start Urtaks by default\r\n\t\t\tself::$default_settings['user-start'] = 'yes';\r\n\r\n\t\t\t// We want Urtaks to support community moderation by default so that we get more questions and responses\r\n\t\t\tself::$default_settings['moderation'] = 'community';\r\n\r\n\t\t\t// Auto height and width\r\n\t\t\tself::$default_settings['height'] = '';\r\n\t\t\tself::$default_settings['width'] = '';\r\n\r\n\t\t\t// Counter settings\r\n\t\t\tself::$default_settings['counter-icon'] = 'yes';\r\n\t\t\tself::$default_settings['counter-responses'] = 'yes';\r\n\r\n\t\t\t// Profanity\r\n\t\t\tself::$default_settings['blacklisting'] = 'no';\r\n\t\t\tself::$default_settings['blacklist_override'] = 'no';\r\n\t\t\tself::$default_settings['blacklist_words'] = '';\r\n\t\t}",
"public function init() {\n\t\tregister_setting( $this->key, $this->key );\n\t}",
"public function init() {\n\t\tregister_setting( $this->key, $this->key );\n\t}",
"public function init() {\n\t\tregister_setting( $this->key, $this->key );\n\t}",
"public function getDefaultDirectory(): string|null;",
"public function __construct()\n {\n $this->folderCreator = new FolderCreator();\n }",
"protected function initial_set_default() {\n\t\tif ( isset( $this->field[ 'config' ][ 'default' ] ) ) {\n\t\t\t$this->default = $this->field[ 'config' ][ 'default' ];\n\t\t} else {\n\t\t\t$this->default = '';\n\t\t}\n\t}",
"public function testInitWithDefaultConfiguration()\n {\n ConfigurationRegistry::classConstructor();\n $configuration = ConfigurationRegistry::getConfiguration();\n\n $this->assertInstanceOf(\"malkusch\\bav\\DefaultConfiguration\", $configuration);\n $this->assertNotEquals(\"test\", $configuration->getTempDirectory());\n }",
"private static function defaultDirectory($dir){\n $dirs = array(\"controller\", \"model\");\n\n foreach ($dirs as $d){\n if(!file_exists($dir . \"/\" . $d)) {\n if (@!mkdir($dir . \"/\" . $d, 0777))//criar arquivo de log caso não crie o path\n print \"<< [create_path_\" . self::$pathName . \"] Error ao criar o diretorio << \" . self::$pathName .\"/\".$d. \" >>\\n\";\n\n }\n }\n }",
"public function setDir($dir)\n {\n $this->dir = $dir;\n\n return $this;\n }",
"public function setDir($dir)\n {\n $this->dir = $dir;\n\n return $this;\n }",
"private function setDefaultValues()\n {\n return LengowConfiguration::resetAll();\n }",
"public function defaultPaths()\n {\n $root = $this->rootPath;\n\n if(!$this->registry()->isKey('path', 'root')) {\n $this->registry()->set('path', 'root', $root);\n }\n\n $root = $this->registry()->get('path', 'root');\n\n $paths = array(\n 'settings',\n 'upload',\n 'vendor',\n\n //PHP folders\n 'Action',\n 'Event',\n 'Job',\n 'Model',\n\n //Other Folders\n 'template',\n 'public');\n\n foreach($paths as $path) {\n if(!$this->registry()->isKey('path', strtolower($path))) {\n $this->registry()->set('path', strtolower($path), $root . '/' . $path);\n }\n }\n\n return $this;\n }",
"public function initialize_settings() {\n\n\t\t$default_settings = array();\n\n\t\tforeach ($this->settings as $id => $setting) {\n\t\t\tif ($setting['type'] != 'heading')\n\t\t\t\t$default_settings['$id'] = $setting['std'];\n\t\t}\n\n\t\tupdate_option('eaboot_options', $default_settings);\n\t}",
"static function register_default_settings() {\n\t\tself::register_setting( 'builder_access', array(\n\t\t\t'default' => 'all',\n\t\t\t'group' => __( 'Frontend', 'fl-builder' ),\n\t\t\t'label' => __( 'Builder Access', 'fl-builder' ),\n\t\t\t'description' => __( 'The selected roles will have access to the builder for editing posts, pages, and CPTs.', 'fl-builder' ),\n\t\t\t'order' => '1',\n\t\t) );\n\n\t\tself::register_setting( 'unrestricted_editing', array(\n\t\t\t'default' => 'all',\n\t\t\t'group' => __( 'Frontend', 'fl-builder' ),\n\t\t\t'label' => __( 'Unrestricted Editing', 'fl-builder' ),\n\t\t\t'description' => __( 'The selected roles will have unrestricted access to all editing features within the builder.', 'fl-builder' ),\n\t\t\t'order' => '2',\n\t\t) );\n\t}",
"public function __construct(qio\\Directory $directory) {\n $this->directory = $directory;\n }",
"public function __construct( $strDir, $bEnsureExists = false )\n {\n $pathinfo = pathinfo( $strDir );\n $this->_strDirectory = $pathinfo['dirname']. '/' .$pathinfo['basename'];\n\n if ( $bEnsureExists ) {\n if ( !$this->exists() ) {\n $this->create(0777, true);\n }\n }\n if ( is_dir( $this->_strDirectory )) {\n $this->_strDirectory = realpath( $this->_strDirectory );\n }\n }",
"public function init() {\n register_setting( $this->key, $this->key );\n }",
"protected function initialize() {\n\t\t$this->databasesDir = $this->projectDir . '/var/data/databases';\n\t\t$this->simulatorsDir = $this->projectDir . '/var/data/simulators';\n\t\t$this->publicDir = $this->projectDir . '/' . ($this->getParameter('public_dir') ?? 'public');\n\t\t$this->viewsDir = $this->projectDir . '/templates';\n\t\t$this->pdfFormsDir = $this->projectDir . '/var/data/pdfforms';\n\t}",
"public function __construct()\n\t{\n\t\t$this->defaultPath = __DIR__.'/config';\n\t}",
"public function __construct($name, $attribute = null)\n {\n parent::__construct($name, $attribute);\n\n $directory = [\n 'year' => Carbon::now()->format('Y'),\n 'month' => Carbon::now()->format('m'),\n 'day' => Carbon::now()->format('d')\n ];\n\n $this->directory = (object)$directory;\n }",
"public function __construct() {\n\t\t$this->autoSetConfigurationFolder();\n\t}",
"private function __construct($configDir) {\r\n \r\n /*Built in settings file*/\r\n $this->settings = new \\ArrayObject(autoconf($configDir), \\ArrayObject::ARRAY_AS_PROPS);\r\n\r\n return $this->prepare();\r\n }",
"public function setDir($dir)\n\t{\n\t\tif (substr($dir, -1) !== '/') $dir .= '/';\n\n\t\t$this->dir = $dir;\n\n\t\treturn $this;\n\t}",
"public static function SetDefaults()\r\n {\r\n $defaults = self::GetAllDefaults();\r\n self::$Data = apply_filters('duplicator_defaults_settings', $defaults);\r\n return self::Save();\r\n }",
"public function setDirectory($directory) {\n\n\t \t $this->directory = $directory;\n\n if(!file_exists($directory))\n if(!mkdir($directory, true))\n throw new UploadException('Upload directory does not exist and an attempt to create it failed.');\n\t }",
"public function setDir($dir)\n {\n $this->dir = (string) $dir;\n\n return $this;\n }",
"public function testDir_SaveUseConfDirObj()\n {\n $config = Config::with('yaml:'.sys_get_temp_dir().'/abc');\n $config->def = new Config_Dir();\n $config->save();\n\n $this->assertType('Q\\Config_Dir', $config);\n $this->assertEquals(sys_get_temp_dir().\"/abc\", (string)$config->getPath());\n $this->assertTrue(is_dir((string)$config->getPath()));\n \n $this->assertType('Q\\Config_Dir', $config->def);\n $this->assertTrue(is_dir((string)$config->def->getPath()));\n }",
"public function __construct()\n {\n $this->settings = new Settings();\n }",
"public function __construct()\n {\n $this->settings = new Settings();\n }",
"public function __construct()\n {\n $this->settings = new Settings();\n }",
"public function test_constructor_sets_search_dir_from_param()\n {\n $reader = new Bootphp_Config_File_Reader('gafloog');\n\n $this->assertAttributeSame('gafloog', '_directory', $reader);\n }",
"public function __construct(Setting $setting)\n {\n $this->setting = $setting;\n }",
"public function setDir($dir)\n {\n if(!is_dir($dir)) {\n mkdir($dir);\n }\n\n\t $this->dir = $dir;\n }",
"public function setDirectoryName($dir)\n {\n // Define a hard theme path for the theme\n $this->path = PUBLIC_THEME_DIR . '/' . $dir;\n $this->directory = $dir;\n }",
"public function __construct ($settings)\n {\n $this->folder = $settings['folder'];\n\n if (!$this->folder) {\n if ($settings['exception']) {\n throw new \\InvalidArgumentException('You must define base folder to store cache files');\n } else {\n return false;\n }\n }\n\n $this->folder = preg_replace('#[/\\\\\\]+#', '/', $this->folder.'/');\n\n if (!is_dir($this->folder)) {\n $base = dirname($this->folder);\n\n if (!is_writable($base)) {\n if ($settings['exception']) {\n throw new \\UnexpectedValueException('Defined cache folder not exists and can not be created');\n } else {\n return false;\n }\n }\n\n mkdir($this->folder, 0700);\n } else if (!is_writable($this->folder)) {\n if ($settings['exception']) {\n throw new \\UnexpectedValueException('Defined cache folder is not writable');\n } else {\n return false;\n }\n }\n\n $this->loaded = true;\n\n $this->setSettings($settings);\n }",
"protected function setDefaults(): self\n {\n // Get bulk support and index Exporters by the extension(s) they support\n $bulks = [];\n $exporters = [];\n\n foreach (ExporterFactory::findAll() as $handler) {\n $attributes = $handler::attributes();\n\n if ($attributes['bulk']) {\n $bulks[] = $handler;\n }\n\n foreach ($attributes['extensions'] as $extension) {\n $exporters[$extension][] = $attributes;\n }\n }\n\n $this->setData([\n 'source' => 'index',\n 'layout' => 'files',\n 'model' => $this->model,\n 'files' => null,\n 'selected' => explode(',', $this->request->getVar('selected') ?? ''),\n 'userId' => null,\n 'userName' => '',\n 'ajax' => $this->request->isAJAX(),\n 'search' => $this->request->getVar('search'),\n 'page' => $this->request->getVar('page'),\n 'pager' => null,\n 'access' => $this->model->mayAdmin() ? 'manage' : 'display',\n 'exports' => $exporters,\n 'bulks' => $bulks,\n ]);\n\n // Add preferences\n $this->setPreferences();\n\n foreach (['Files.sort', 'Files.order', 'Files.format', 'Pager.perPage'] as $preference) {\n [,$field] = explode('.', $preference);\n $this->setData([$field => preference($preference)]);\n }\n\n return $this;\n }",
"public function __construct()\n\t{\n\t\t// Set the prefix.\n\t\t$this->setting_prefix = Config::getInstance()->getFrameworkConfig('setting_prefix');\n\t}",
"function __construct()\n {\n define('FILE_READ_MODE', 0644);\n define('FILE_WRITE_MODE', 0666);\n define('DIR_READ_MODE', 0755);\n define('DIR_WRITE_MODE', 0777);\n }",
"public function setTempDirectory($temp_directory=null)\n {\n if($temp_directory === null)\n {\n $temp_directory = sys_get_temp_dir();\n }\n if(is_dir($temp_directory) === false)\n {\n throw new \\InvalidArgumentException('The temp directory does not exist or is not a directory.');\n }\n else if(is_readable($temp_directory) === false)\n {\n throw new \\InvalidArgumentException('The temp directory is not readable.');\n }\n else if(is_writable($temp_directory) === false)\n {\n throw new \\InvalidArgumentException('The temp directory is not writeable.');\n }\n $this->_temp_directory = $temp_directory;\n \n return $this;\n }",
"public function init()\n {\n register_setting($this->key, $this->key);\n }",
"public function setDirectory(string $directory)\n {\n $this->directory = $directory;\n }",
"public function setDir($dir) {\n $this->dir = $dir;\n }",
"protected function ensureDir(string $dir, int $permissions = 0777): self\n {\n if (!is_dir($dir)) {\n mkdir($dir, $permissions, true);\n }\n return $this;\n }"
] | [
"0.6907903",
"0.6251983",
"0.5636675",
"0.5529768",
"0.53719723",
"0.5356757",
"0.5330133",
"0.53216994",
"0.5296155",
"0.52959716",
"0.52900124",
"0.5266649",
"0.5251541",
"0.52365345",
"0.5235016",
"0.5220969",
"0.52054113",
"0.52010894",
"0.5178901",
"0.51761127",
"0.5174879",
"0.51682657",
"0.5162017",
"0.5156536",
"0.51506823",
"0.51369137",
"0.51249844",
"0.51232356",
"0.511816",
"0.51172423",
"0.5112799",
"0.5104251",
"0.50760716",
"0.5075448",
"0.5069166",
"0.5057183",
"0.5050787",
"0.50117415",
"0.5006953",
"0.50056976",
"0.4982925",
"0.49809614",
"0.49782407",
"0.4958563",
"0.49523333",
"0.49428797",
"0.49383563",
"0.4938011",
"0.4934257",
"0.49256122",
"0.4921936",
"0.49135196",
"0.49118477",
"0.49092615",
"0.48819742",
"0.48625714",
"0.4860596",
"0.48599538",
"0.48581257",
"0.48581257",
"0.48581257",
"0.48553044",
"0.48517108",
"0.48477367",
"0.48467126",
"0.4844777",
"0.4843961",
"0.4843961",
"0.4841226",
"0.48363897",
"0.48265788",
"0.48240697",
"0.4823419",
"0.48219952",
"0.48105493",
"0.48084474",
"0.4805515",
"0.47976953",
"0.4797685",
"0.47922775",
"0.4791008",
"0.47745624",
"0.47744858",
"0.47731358",
"0.47650972",
"0.4765081",
"0.4765081",
"0.4765081",
"0.4762883",
"0.47626615",
"0.47610354",
"0.47592443",
"0.47590283",
"0.47469047",
"0.4746723",
"0.47303036",
"0.47237724",
"0.47233522",
"0.47222134",
"0.47136635",
"0.47120053"
] | 0.0 | -1 |
Creates a new instance of the appropriate class based on discriminator value | public static function createFromDiscriminatorValue(ParseNode $parseNode): DirectorySetting {
return new DirectorySetting();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function createFromDiscriminatorValue(ParseNode $parseNode): DeviceManagementConfigurationSettingInstance {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.deviceManagementConfigurationChoiceSettingCollectionInstance': return new DeviceManagementConfigurationChoiceSettingCollectionInstance();\n case '#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance': return new DeviceManagementConfigurationChoiceSettingInstance();\n case '#microsoft.graph.deviceManagementConfigurationGroupSettingCollectionInstance': return new DeviceManagementConfigurationGroupSettingCollectionInstance();\n case '#microsoft.graph.deviceManagementConfigurationGroupSettingInstance': return new DeviceManagementConfigurationGroupSettingInstance();\n case '#microsoft.graph.deviceManagementConfigurationSettingGroupCollectionInstance': return new DeviceManagementConfigurationSettingGroupCollectionInstance();\n case '#microsoft.graph.deviceManagementConfigurationSettingGroupInstance': return new DeviceManagementConfigurationSettingGroupInstance();\n case '#microsoft.graph.deviceManagementConfigurationSimpleSettingCollectionInstance': return new DeviceManagementConfigurationSimpleSettingCollectionInstance();\n case '#microsoft.graph.deviceManagementConfigurationSimpleSettingInstance': return new DeviceManagementConfigurationSimpleSettingInstance();\n }\n }\n return new DeviceManagementConfigurationSettingInstance();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): ThreatSubmission {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.security.emailContentThreatSubmission': return new EmailContentThreatSubmission();\n case '#microsoft.graph.security.emailThreatSubmission': return new EmailThreatSubmission();\n case '#microsoft.graph.security.emailUrlThreatSubmission': return new EmailUrlThreatSubmission();\n case '#microsoft.graph.security.fileContentThreatSubmission': return new FileContentThreatSubmission();\n case '#microsoft.graph.security.fileThreatSubmission': return new FileThreatSubmission();\n case '#microsoft.graph.security.fileUrlThreatSubmission': return new FileUrlThreatSubmission();\n case '#microsoft.graph.security.urlThreatSubmission': return new UrlThreatSubmission();\n }\n }\n return new ThreatSubmission();\n }",
"public function setDiscriminator($discriminator)\n {\n $this->discriminator = $discriminator;\n return $this;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): BusinessScenario {\n return new BusinessScenario();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): Artifact {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.security.host': return new Host();\n case '#microsoft.graph.security.hostComponent': return new HostComponent();\n case '#microsoft.graph.security.hostCookie': return new HostCookie();\n case '#microsoft.graph.security.hostname': return new Hostname();\n case '#microsoft.graph.security.hostSslCertificate': return new HostSslCertificate();\n case '#microsoft.graph.security.hostTracker': return new HostTracker();\n case '#microsoft.graph.security.ipAddress': return new IpAddress();\n case '#microsoft.graph.security.passiveDnsRecord': return new PassiveDnsRecord();\n case '#microsoft.graph.security.sslCertificate': return new SslCertificate();\n case '#microsoft.graph.security.unclassifiedArtifact': return new UnclassifiedArtifact();\n }\n }\n return new Artifact();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): ExactMatchJobBase {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.exactMatchLookupJob': return new ExactMatchLookupJob();\n case '#microsoft.graph.exactMatchSession': return new ExactMatchSession();\n case '#microsoft.graph.exactMatchSessionBase': return new ExactMatchSessionBase();\n }\n }\n return new ExactMatchJobBase();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): AndroidWorkProfileCertificateProfileBase {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.androidWorkProfilePkcsCertificateProfile': return new AndroidWorkProfilePkcsCertificateProfile();\n case '#microsoft.graph.androidWorkProfileScepCertificateProfile': return new AndroidWorkProfileScepCertificateProfile();\n }\n }\n return new AndroidWorkProfileCertificateProfileBase();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): AuthenticationMethodTarget {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.microsoftAuthenticatorAuthenticationMethodTarget': return new MicrosoftAuthenticatorAuthenticationMethodTarget();\n case '#microsoft.graph.smsAuthenticationMethodTarget': return new SmsAuthenticationMethodTarget();\n case '#microsoft.graph.voiceAuthenticationMethodTarget': return new VoiceAuthenticationMethodTarget();\n }\n }\n return new AuthenticationMethodTarget();\n }",
"public function create(string $class);",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): DelegatedPermissionClassification {\n return new DelegatedPermissionClassification();\n }",
"public static final function of($class) {\n return self::typeOf($class)->newInstance();\n }",
"public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): ObjectMapping {\n return new ObjectMapping();\n }",
"function get_new($class, $params=NULL)\r\n\t{\r\n\t\t$obj = $this->singularize(ucwords($class));\r\n\t\treturn new $obj($params);\r\n\t}",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): StsPolicy {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.activityBasedTimeoutPolicy': return new ActivityBasedTimeoutPolicy();\n case '#microsoft.graph.claimsMappingPolicy': return new ClaimsMappingPolicy();\n case '#microsoft.graph.homeRealmDiscoveryPolicy': return new HomeRealmDiscoveryPolicy();\n case '#microsoft.graph.tokenIssuancePolicy': return new TokenIssuancePolicy();\n case '#microsoft.graph.tokenLifetimePolicy': return new TokenLifetimePolicy();\n }\n }\n return new StsPolicy();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): PayloadByFilter {\n return new PayloadByFilter();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): CloudPcGalleryImage {\n return new CloudPcGalleryImage();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): CommsOperation {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.addLargeGalleryViewOperation': return new AddLargeGalleryViewOperation();\n case '#microsoft.graph.cancelMediaProcessingOperation': return new CancelMediaProcessingOperation();\n case '#microsoft.graph.inviteParticipantsOperation': return new InviteParticipantsOperation();\n case '#microsoft.graph.muteParticipantOperation': return new MuteParticipantOperation();\n case '#microsoft.graph.muteParticipantsOperation': return new MuteParticipantsOperation();\n case '#microsoft.graph.playPromptOperation': return new PlayPromptOperation();\n case '#microsoft.graph.recordOperation': return new RecordOperation();\n case '#microsoft.graph.startHoldMusicOperation': return new StartHoldMusicOperation();\n case '#microsoft.graph.stopHoldMusicOperation': return new StopHoldMusicOperation();\n case '#microsoft.graph.subscribeToToneOperation': return new SubscribeToToneOperation();\n case '#microsoft.graph.unmuteParticipantOperation': return new UnmuteParticipantOperation();\n case '#microsoft.graph.updateRecordingStatusOperation': return new UpdateRecordingStatusOperation();\n }\n }\n return new CommsOperation();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): GroupPolicyUploadedPresentation {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.groupPolicyPresentationCheckBox': return new GroupPolicyPresentationCheckBox();\n case '#microsoft.graph.groupPolicyPresentationComboBox': return new GroupPolicyPresentationComboBox();\n case '#microsoft.graph.groupPolicyPresentationDecimalTextBox': return new GroupPolicyPresentationDecimalTextBox();\n case '#microsoft.graph.groupPolicyPresentationDropdownList': return new GroupPolicyPresentationDropdownList();\n case '#microsoft.graph.groupPolicyPresentationListBox': return new GroupPolicyPresentationListBox();\n case '#microsoft.graph.groupPolicyPresentationLongDecimalTextBox': return new GroupPolicyPresentationLongDecimalTextBox();\n case '#microsoft.graph.groupPolicyPresentationMultiTextBox': return new GroupPolicyPresentationMultiTextBox();\n case '#microsoft.graph.groupPolicyPresentationText': return new GroupPolicyPresentationText();\n case '#microsoft.graph.groupPolicyPresentationTextBox': return new GroupPolicyPresentationTextBox();\n }\n }\n return new GroupPolicyUploadedPresentation();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): Teamwork {\n return new Teamwork();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): Photo {\n return new Photo();\n }",
"function _new($classe)\n{\n return new $classe($bdd, $ObjetBDDParam);\n}",
"public function getDiscriminator()\n {\n return $this->discriminator;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): DeviceManagementConfigurationCategory {\n return new DeviceManagementConfigurationCategory();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): PrivilegedAccessScheduleInstance {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.privilegedAccessGroupAssignmentScheduleInstance': return new PrivilegedAccessGroupAssignmentScheduleInstance();\n case '#microsoft.graph.privilegedAccessGroupEligibilityScheduleInstance': return new PrivilegedAccessGroupEligibilityScheduleInstance();\n }\n }\n return new PrivilegedAccessScheduleInstance();\n }",
"public function setDiscriminatorValue($discriminatorValue)\n {\n $this->discriminatorValue = $discriminatorValue;\n return $this;\n }",
"public function make($type);",
"public static function create($type = NULL) {\n if ($type) {\n $cname = \"BMAttack\" . ucfirst(strtolower($type));\n if (class_exists($cname)) {\n return $cname::create();\n } else {\n return NULL;\n }\n }\n\n $class = get_called_class();\n return new $class;\n }",
"public function func($choice) \n {\n if($choice == \"bs\")\n {\n return (new blood_sugar);\n }\n \n elseif ($choice == \"bp\")\n {\n return (new blood_pressure);\n }\n \n elseif ($choice == \"wt\")\n {\n return (new weight);\n }\n }",
"protected function instantiate()\n\t{\n\t\t$class = get_class($this);\n\t\t$model = new $class(null);\n\t\treturn $model;\n\t}",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): ProcessEvidence {\n return new ProcessEvidence();\n }",
"public static function factory()\n {\n $class = get_called_class();\n $object = new $class();\n foreach (static::getDefaults() as $field => $value) {\n $object->{$field} = $value;\n }\n return $object;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): IosVpnConfiguration {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.iosikEv2VpnConfiguration': return new IosikEv2VpnConfiguration();\n }\n }\n return new IosVpnConfiguration();\n }",
"public static function factory($flags = null, $class_name = null) {}",
"public static function factory($flags = null, $class_name = null) {}",
"public static function get_new($type) {\n // Get type name\n if (!$type) {\n $type = 'general';\n }\n if (!preg_match('~^[a-z][a-z0-9_]*$~', $type)) {\n throw new coding_exception(\"Invalid forum type name: $type\");\n }\n $classname = 'forumngtype_' . $type;\n\n // Require library\n global $CFG;\n require_once(dirname(__FILE__) . \"/$type/$classname.php\");\n\n // Create and return type object\n return new $classname;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): UserExperienceAnalyticsDeviceStartupProcessPerformance {\n return new UserExperienceAnalyticsDeviceStartupProcessPerformance();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): DeviceHealthScript {\n return new DeviceHealthScript();\n }",
"public static function create($config) {\n if(isset($config['type']) && class_exists($config['type'])) {\n $item = new $config['type'];\n $item->config = $config;\n return $item;\n }\n return null;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): AccessPackageQuestion {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.accessPackageMultipleChoiceQuestion': return new AccessPackageMultipleChoiceQuestion();\n case '#microsoft.graph.accessPackageTextInputQuestion': return new AccessPackageTextInputQuestion();\n }\n }\n return new AccessPackageQuestion();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): ZebraFotaDeployment {\n return new ZebraFotaDeployment();\n }",
"function new_instance($class)\n {\n }",
"public function getTargetType($type) {\n $retObj = array();\n switch ($type) {\n case 'Brand':\n $retObj[] = new ProductBrand($this->targetData);\n $retObj[] = new ProductBrand();\n \n return $retObj;\n break;\n case 'Condition':\n $retObj[] = new ProductCanonicalCondition($this->targetData);\n $retObj[] = new ProductCanonicalCondition();\n \n return $retObj;\n break;\n case 'Category':\n $retObj[] = new ProductBiddingCategory('BIDDING_CATEGORY_L1', $this->targetData);\n $retObj[] = new ProductBiddingCategory('BIDDING_CATEGORY_L1');\n \n return $retObj;\n break;\n case 'Channel':\n $retObj[] = new ProductChannel($this->targetData);\n $retObj[] = new ProductChannel();\n \n return $retObj;\n break;\n case 'Item ID':\n $retObj[] = new ProductOfferId($this->targetData);\n $retObj[] = new ProductOfferId();\n \n return $retObj;\n break;\n case 'Product type':\n $retObj[] = new ProductType('PRODUCT_TYPE_L1', $this->targetData);\n $retObj[] = new ProductType('PRODUCT_TYPE_L1');\n \n return $retObj;\n break;\n case 'Channel exclusivity':\n $retObj[] = new ProductChannelExclusivity($this->targetData);\n $retObj[] = new ProductChannelExclusivity();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_0':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_1':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_2':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_3':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n case 'CUSTOM_ATTRIBUTE_4':\n $retObj[] = new ProductCustomAttribute($type, $this->targetData);\n $retObj[] = new ProductCustomAttribute($type);\n $retObj[] = new ProductCustomAttribute();\n \n return $retObj;\n break;\n \n default:\n break;\n }\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): EducationOneRosterApiDataProvider {\n return new EducationOneRosterApiDataProvider();\n }",
"static private function createInstance($className, ECash_Config $baseConfig = null)\r\n\t{\r\n\t\t//if (is_null($className))\r\n\t\t//{\r\n\t\t//\tthrow new Exception(\"NULL configuration class name passed\");\r\n\t\t//}\r\n\r\n\t\tif (!class_exists($className))\r\n\t\t{\r\n\t\t\tthrow new Exception(\"$className class does not exist\");\r\n\t\t}\r\n\r\n\t\t$classRefl = new ReflectionClass($className);\r\n\t\tif (!$classRefl->isSubclassOf(__CLASS__))\r\n\t\t{\r\n\t\t\tthrow new Exception(\"$className is not a child of \". __CLASS__);\r\n\t\t}\r\n\r\n\t\treturn new $className($baseConfig);\r\n\t}",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): MacOSCustomConfiguration {\n return new MacOSCustomConfiguration();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): ItemPhone {\n return new ItemPhone();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): ManagedMobileApp {\n return new ManagedMobileApp();\n }",
"static function make($type)\n {\n $scraper = null;\n\n switch ($type) {\n case 'ElAderezo':\n $scraper = new ScraperElAderezo;\n break; \n case 'GastronomiaYCia':\n $scraper = new ScraperGastronomiaYCia;\n break;\n case 'UtensiliosDeCocina':\n $scraper = new ScraperUtensiliosDeCocina;\n break;\n } \n return $scraper;\n }",
"protected static function newFactory()\n {\n return TypeFactory::new();\n }",
"public function create(){\r\n\treturn new $this->class();\r\n }",
"public static function factory($type)\n {\n if (include_once 'Drivers/' . $type . '.php') {\n $classname = 'Driver_' . $type;\n return new $classname;\n } else {\n throw new Exception('Driver not found');\n }\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): Filter {\n return new Filter();\n }",
"public static function createModel($type)\n {\n $className = 'app'.d_S.'models'.d_S.ucfirst($type).\"Model\";\n if($className!=NULL)\n {\n return new $className($type);\n }\n else\n {\n echo \"$className Not Found!\";\n }\n }",
"public function getDiscriminatorValue()\n {\n return $this->discriminatorValue;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): Win32LobAppFileSystemDetection {\n return new Win32LobAppFileSystemDetection();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): IosWebContentFilterSpecificWebsitesAccess {\n return new IosWebContentFilterSpecificWebsitesAccess();\n }",
"public function createInstance($identifier)\r\n \t{\r\n \t\t$className = $this->getClassMapper($identifier);\r\n\r\n \t\t$params = array_slice(func_get_args(), 1);\r\n\r\n \t\t// We must use reflection in PHP < 5.6 See http://stackoverflow.com/questions/8734522/dynamically-call-class-with-variable-number-of-parameters-in-the-constructor\r\n \t\t$reflection = new \\ReflectionClass($className);\r\n\r\n return $reflection->newInstanceArgs($params);\r\n \t}",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): GroupPolicyDefinitionFile {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.groupPolicyUploadedDefinitionFile': return new GroupPolicyUploadedDefinitionFile();\n }\n }\n return new GroupPolicyDefinitionFile();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): IpSecurityProfile {\n return new IpSecurityProfile();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): FileClassificationRequest {\n return new FileClassificationRequest();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): Win32LobAppPowerShellScriptRule {\n return new Win32LobAppPowerShellScriptRule();\n }",
"public function find(string $class): Instantiator;",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): AggregatedInboundStatistics {\n return new AggregatedInboundStatistics();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): UnifiedRoleManagementPolicy {\n return new UnifiedRoleManagementPolicy();\n }",
"public function createClass()\n {\n return $this->addExcludesNameEntry($this->classes);\n }",
"public static function create($kingdom, $species) {\n switch ($kingdom) {\n case 'Animal':\n $organism = new Animal($species);\n break;\n case 'Plant':\n $organism = new Plant($species);\n default:\n // Probably throw an error here.\n }\n return $organism;\n }",
"public function getDiscriminator(): string\n {\n return $this->discriminator;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): MeetingParticipantInfo {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.virtualEventPresenterInfo': return new VirtualEventPresenterInfo();\n }\n }\n return new MeetingParticipantInfo();\n }",
"public static function instantiate($row)\n {\n switch ($row['type']){\n case Page::TYPE:\n return new Page();\n case Slide::TYPE:\n return new Slide();\n case TopMenu::TYPE:\n return new TopMenu();\n case News::TYPE:\n return new News();\n default:\n return new self;\n }\n }",
"public function getNew()\n {\n $class = get_class($this);\n\n return new $class;\n }",
"public function create()\n {\n return new $this->class;\n }",
"public static function build($type) {\n $product = $type;\n if (class_exists($product)) {\n return new $product();\n }\n else {\n throw new Exception(\"Invalid product type given.\");\n }\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): AccessReviewDecision {\n return new AccessReviewDecision();\n }",
"protected static function GetClassForType($sType)\n {\n $oInstance = null;\n $sClassName = null;\n\n // old format (Class, Subtype, Type) lookup\n if (strstr($sType, ',')) {\n $aParts = explode(',', $sType);\n if (3 == count($aParts)) {\n $sClassName = trim($aParts[0]);\n }\n } else {\n $sClassName = $sType;\n }\n\n if (is_null($sClassName)) {\n trigger_error('ERROR: sType has invalid format (must be of the form CLASSNAME,SUBTYPE,TYPE)', E_USER_ERROR);\n } else {\n $oInstance = new $sClassName();\n }\n\n return $oInstance;\n }",
"public static function factory($className = __CLASS__)\n {\n return parent::factory($className);\n }",
"public function factoryMethod(): Product\n {\n return new ConcreteProduct1;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): ManagedDeviceMobileAppConfigurationState {\n return new ManagedDeviceMobileAppConfigurationState();\n }",
"public function instantiate($className);",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): TrainingReminderNotification {\n return new TrainingReminderNotification();\n }",
"private function defaultCast(string $type, $value)\n {\n return class_exists($type) ? new $type($value) : $value;\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): MacOSDmgApp {\n return new MacOSDmgApp();\n }",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): Qna {\n return new Qna();\n }",
"public function getMorphClass();",
"public function getMorphClass();",
"public function getMorphClass();",
"private static function getRaceInstance(string $race): Race\n {\n switch ($race) {\n case \"0\":\n case \"Elf\":\n return new Elf();\n case \"1\":\n case \"Human\":\n return new Human();\n case \"2\":\n case \"Dwarf\":\n return new Dwarf();\n default:\n echo \"invalid race\";\n die;\n }\n }",
"static function newobj($type /* ... */){\n if(is_null($type)) return;\n\n $ar = func_get_args();\n $type = array_shift($ar); // remove type/object\n \n try{\n // get the asked class\n if(is_string($type)) $cls = defnz(self::$decode_table,$type,'opc_item_' . $type);\n else if (is_object($type)) $cls = get_class($type);\n else throw new Exception('invalid type: ' . strval($type));\n \n // check this class 8exists, implements opi_item\n if(!class_exists($cls)) \n\tthrow new Exception('unknown class: ' . $cls);\n else if(!in_array('opi_item',class_implements($cls)))\n\tthrow new Exception('not able to handle: ' . $cls);\n \n } catch (Exception $ex) {\n trigger_error('error creating a opc_item: ' . $ex->getMessage(),E_USER_WARNING);\n return NULL;\n }\n \n // crate and call init with the other arguments\n $res = new $cls();\n call_user_func_array(array(&$res,'init'),$ar);\n return $res;\n }",
"public function createInstance($processor);",
"public static function factory()\r\n {\r\n return parent::factory(__CLASS__);\r\n }",
"public function newInstance();",
"public function newInstance();",
"public static function createFromDiscriminatorValue(ParseNode $parseNode): OnPremisesPublishingSingleSignOn {\n return new OnPremisesPublishingSingleSignOn();\n }",
"public static abstract function createInstance();",
"function case_default()\n{\n return new CaseDefault();\n}",
"function createInstance(ClassDefinition $classDefinition);",
"public function getNewEntityClass()\n {\n return new $this->entityClassName();\n }",
"public static function factory($className)\n {\n return new $className;\n }",
"public function create() {\n\t\t$implementationClassName = 'Imagine\\\\' . $this->settings['driver'] . '\\Imagine';\n\t\treturn new $implementationClassName();\n\t}",
"public function createType()\n {\n $o = new TypeSelector();\n $this->appendSelector($o);\n\n return $o;\n }"
] | [
"0.5663202",
"0.56524795",
"0.55938476",
"0.5582519",
"0.55732256",
"0.5502307",
"0.54198116",
"0.5367442",
"0.5345139",
"0.5340543",
"0.5317889",
"0.53125316",
"0.5274097",
"0.52523774",
"0.52451587",
"0.5238258",
"0.5223514",
"0.52152604",
"0.5212037",
"0.51939124",
"0.5174952",
"0.515281",
"0.5145421",
"0.51320994",
"0.5126641",
"0.51244414",
"0.51131696",
"0.51095724",
"0.5106034",
"0.5076475",
"0.50683355",
"0.5059517",
"0.5054157",
"0.5041357",
"0.5041357",
"0.5029067",
"0.49990818",
"0.49943754",
"0.4992221",
"0.49901217",
"0.497755",
"0.49764502",
"0.49659026",
"0.49652568",
"0.49549586",
"0.49476686",
"0.49223715",
"0.4917166",
"0.48937762",
"0.48900846",
"0.4877465",
"0.4874357",
"0.48657772",
"0.48465893",
"0.48452786",
"0.4841382",
"0.48322994",
"0.48264185",
"0.48192546",
"0.48134297",
"0.48112124",
"0.48106822",
"0.48010898",
"0.47939616",
"0.47873792",
"0.4781471",
"0.47799864",
"0.47753745",
"0.4774995",
"0.4766917",
"0.47521192",
"0.47505757",
"0.47382355",
"0.4737392",
"0.47304296",
"0.4729597",
"0.4712104",
"0.4709488",
"0.47094297",
"0.4701303",
"0.46802947",
"0.46749547",
"0.4673087",
"0.46685794",
"0.46685794",
"0.46685794",
"0.4666915",
"0.4664548",
"0.4656222",
"0.46535435",
"0.4652453",
"0.4652453",
"0.4650804",
"0.4648183",
"0.4646791",
"0.46157163",
"0.46077174",
"0.46037248",
"0.4602221",
"0.46016708"
] | 0.466203 | 88 |
Gets the displayName property value. Display name of this group of settings, which comes from the associated template. Readonly. | public function getDisplayName(): ?string {
$val = $this->getBackingStore()->get('displayName');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSettingDisplayName()\n {\n if (array_key_exists(\"settingDisplayName\", $this->_propDict)) {\n return $this->_propDict[\"settingDisplayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n return $this->getProperty(\"DisplayName\");\n }",
"public function getDisplayName()\n {\n return $this['display_name'];\n }",
"public function getDisplayName()\n {\n return $this->DisplayName;\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n if (array_key_exists(\"displayName\", $this->_propDict)) {\n return $this->_propDict[\"displayName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayName()\n {\n return isset($this->DisplayName) ? $this->DisplayName : null;\n }",
"public function getDisplayName(): string\n {\n return $this->displayName;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n\t{\n\t\treturn $this->display_name;\n\t}",
"public function getDisplayName()\n\t{\n\t\treturn $this->display_name;\n\t}",
"public function getDisplayName() {\n return $this->display_names[$this->access_level];\n }",
"public function displayName()\n {\n if (isset($this->data['name']) && config('gzero.use_users_nicks')) {\n return $this->data['name'];\n }\n\n if (isset($this->data['first_name']) || isset($this->data['last_name'])) {\n return $this->data['first_name'] . ' ' . $this->data['last_name'];\n }\n\n return trans('gzero-core::common.anonymous');\n }",
"function getDisplayName(){\n\t\treturn $this->display_name;\n\t}",
"public static function displayName(): string;",
"public function getDisplayName()\n\t{\n\t\treturn $this->m_oUser->DisplayName;\n\t}",
"public function getDisplayName(): ?string\n {\n return $this->displayName;\n }",
"public function getDisplayName(): ?string\n {\n return $this->displayName;\n }",
"public function getSettingName()\n {\n if (array_key_exists(\"settingName\", $this->_propDict)) {\n return $this->_propDict[\"settingName\"];\n } else {\n return null;\n }\n }",
"public function getDisplayname()\n\t{\n\t\treturn $this->displayname;\n\t}",
"function getDisplayName() {\r\n\t\treturn __('plugins.generic.markup.displayName');\r\n\t}",
"public function getDisplayName() {\n\t\tif ($this->displayName == '') {\n\t\t\treturn ucfirst($this->codeName);\n\t\t}\n\t\treturn ucfirst($this->displayName);\n\t}",
"public function getGroupSetDisplayName($format = 'html')\n {\n $value = tc('GroupSetName', $this->getGroupSetName());\n switch ($format) {\n case 'html':\n return h($value);\n case 'text':\n default:\n return $value;\n }\n }",
"public function getDisplayName();",
"public function getDisplayName() {}",
"function getDisplayName() {\n\t\treturn __('plugins.block.user.displayName');\n\t}",
"public function getStrDisplayName() {\n return $this->getStrName();\n }",
"public function getStrDisplayName() {\n return $this->getStrName();\n }",
"public function getDisplayNameAttribute()\n {\n $display_name = $this->profile->display_name;\n \n if (! $display_name) {\n $display_name = explode('@', $this->email)[0];\n }\n\n return $display_name;\n }",
"public function getGroupName()\n {\n return isset($this->GroupName) ? $this->GroupName : null;\n }",
"public function name(): string\n {\n return $this->groupName;\n }",
"public function getName()\n {\n return $this->getConfig ( 'name' );\n }",
"public function getName()\n {\n return $this->getConfig('name');\n }",
"public function getDisplayName()\n {\n return $this->email;\n }",
"public function setSettingDisplayName($val)\n {\n $this->_propDict[\"settingDisplayName\"] = $val;\n return $this;\n }",
"public function getName()\n {\n return 'group_change_settings';\n }",
"function getDisplayName() {\n\t\treturn __('plugins.generic.thesisfeed.displayName');\n\t}",
"public function getDisplayName(): string;",
"public function DisplayName() {\n\t\t\n\t\tif (!empty($this->profil)) {\n\t\t\t\n\t\t\treturn $this->profil['user']['displayName'];\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public static function getDisplayName()\n {\n return null;\n }",
"function getDisplayName() {\n\t\treturn __('plugins.themes.default.name');\n\t}",
"public function getName() {\n\t\treturn $this->config->get('name');\n\t}",
"function getDisplayName() {\n return lang('Module Name Display Name');\n }",
"public function getSettingDisplayValue()\n {\n if (array_key_exists(\"settingDisplayValue\", $this->_propDict)) {\n return $this->_propDict[\"settingDisplayValue\"];\n } else {\n return null;\n }\n }",
"public function getGroupName()\n {\n return $this->__get(self::FIELD_GROUP_NAME);\n }",
"public function getDisplayNameAttribute()\n {\n $displayName = '';\n\n if ($this->surname) {\n $displayName .= $this->surname . ' ';\n }\n\n if ($this->name) {\n $displayName .= $this->name . ' ';\n }\n\n if ($this->middle_name) {\n $displayName .= $this->middle_name . ' ';\n }\n\n return $displayName;\n }",
"public function getGroupName() : string\n {\n return $this->groupName;\n }",
"public function getDisplayName() { $n = $this->data->get(\"displayName\", null);\n if (!empty($n)) {\n return $n;\n }\n \n // I have google's name?\n if (($g = $this->getGoogleInfo())) {\n if (isset($g->givenName) && !empty($g->givenName)) {\n return $g->givenName;\n }\n if (isset($g->name) && !empty($g->name)) {\n return $g->name;\n }\n }\n \n // user is current user?? load his name if he is\n $currentUser = JFactory::getUser();\n if ((int)($currentUser->id) == (int)$this->userid) {\n return ucwords(strtolower($currentUser->name));\n }\n \n // load user and get his name\n $user = F_User::getUserById((int)$this->$userid);\n if ($user) {\n return ucwords(strtolower($user->name));\n }\n \n // wtf\n return \"???\";\n }",
"function getDisplayName() {\n\t\treturn __('plugins.themes.ufrn-theme1.name');\n\t}",
"public function getTenantDisplayName()\n {\n if (array_key_exists(\"tenantDisplayName\", $this->_propDict)) {\n return $this->_propDict[\"tenantDisplayName\"];\n } else {\n return null;\n }\n }",
"public function displayName()\n {\n return Settings::get(\n 'octoshop_products_label',\n trans('offline.sitesearch::lang.settings.octoshop_itemurl_badge')\n );\n }",
"function getDisplayName() {\n\t\treturn __('plugins.generic.announcementfeed.displayName');\n\t}",
"public function getName()\n {\n return $this->getValue('name');\n }",
"public function name() {\n return isset($this->_adaptee->user_info['user_displayname']) ? $this->_adaptee->user_info['user_displayname'] : null;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }"
] | [
"0.77066594",
"0.72908777",
"0.7148875",
"0.71156234",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7109006",
"0.7084628",
"0.7037946",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6991567",
"0.6926656",
"0.6926656",
"0.684636",
"0.6823165",
"0.6751048",
"0.6568483",
"0.65235674",
"0.64841235",
"0.64841235",
"0.6473016",
"0.6439914",
"0.6437744",
"0.64176524",
"0.63969076",
"0.63891554",
"0.6383581",
"0.6378684",
"0.63709015",
"0.63709015",
"0.6344508",
"0.63343906",
"0.63291144",
"0.6322112",
"0.62938917",
"0.626872",
"0.62537044",
"0.62313664",
"0.6227561",
"0.6201206",
"0.6200199",
"0.6199379",
"0.6173042",
"0.61670935",
"0.61522573",
"0.6150362",
"0.6122113",
"0.60979795",
"0.60697675",
"0.6063131",
"0.6059171",
"0.603947",
"0.6035375",
"0.6020234",
"0.60196584",
"0.6012901",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635",
"0.5996635"
] | 0.0 | -1 |
The deserialization information for the current model | public function getFieldDeserializers(): array {
$o = $this;
return array_merge(parent::getFieldDeserializers(), [
'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),
'templateId' => fn(ParseNode $n) => $o->setTemplateId($n->getStringValue()),
'values' => fn(ParseNode $n) => $o->setValues($n->getCollectionOfObjectValues([SettingValue::class, 'createFromDiscriminatorValue'])),
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOriginalModelInfo()\n {\n return $this->original_model_info;\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'detectionStatus' => fn(ParseNode $n) => $o->setDetectionStatus($n->getEnumValue(DetectionStatus::class)),\n 'imageFile' => fn(ParseNode $n) => $o->setImageFile($n->getObjectValue([FileDetails::class, 'createFromDiscriminatorValue'])),\n 'mdeDeviceId' => fn(ParseNode $n) => $o->setMdeDeviceId($n->getStringValue()),\n 'parentProcessCreationDateTime' => fn(ParseNode $n) => $o->setParentProcessCreationDateTime($n->getDateTimeValue()),\n 'parentProcessId' => fn(ParseNode $n) => $o->setParentProcessId($n->getIntegerValue()),\n 'parentProcessImageFile' => fn(ParseNode $n) => $o->setParentProcessImageFile($n->getObjectValue([FileDetails::class, 'createFromDiscriminatorValue'])),\n 'processCommandLine' => fn(ParseNode $n) => $o->setProcessCommandLine($n->getStringValue()),\n 'processCreationDateTime' => fn(ParseNode $n) => $o->setProcessCreationDateTime($n->getDateTimeValue()),\n 'processId' => fn(ParseNode $n) => $o->setProcessId($n->getIntegerValue()),\n 'userAccount' => fn(ParseNode $n) => $o->setUserAccount($n->getObjectValue([UserAccount::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"public function getSerializableData()\n {\n return [\n 'id' => $this->getId(),\n 'name' => $this->getName(),\n 'description' => $this->getDescription(),\n 'profile' => $this->getProfile(),\n 'salt' => $this->getSalt(),\n 'type' => $this->getType(),\n 'value' => $this->getValue(),\n ];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'cameraMake' => fn(ParseNode $n) => $o->setCameraMake($n->getStringValue()),\n 'cameraModel' => fn(ParseNode $n) => $o->setCameraModel($n->getStringValue()),\n 'exposureDenominator' => fn(ParseNode $n) => $o->setExposureDenominator($n->getFloatValue()),\n 'exposureNumerator' => fn(ParseNode $n) => $o->setExposureNumerator($n->getFloatValue()),\n 'fNumber' => fn(ParseNode $n) => $o->setFNumber($n->getFloatValue()),\n 'focalLength' => fn(ParseNode $n) => $o->setFocalLength($n->getFloatValue()),\n 'iso' => fn(ParseNode $n) => $o->setIso($n->getIntegerValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'orientation' => fn(ParseNode $n) => $o->setOrientation($n->getIntegerValue()),\n 'takenDateTime' => fn(ParseNode $n) => $o->setTakenDateTime($n->getDateTimeValue()),\n ];\n }",
"public function getReflectionData()\n {\n return $this->_reflectionData;\n }",
"public function deserialize($data)\n {\n }",
"public function getSerializer();",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'mobileAppIdentifier' => fn(ParseNode $n) => $o->setMobileAppIdentifier($n->getObjectValue([MobileAppIdentifier::class, 'createFromDiscriminatorValue'])),\n 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()),\n ]);\n }",
"public function serializer() {\n }",
"public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"FileId\",$param) and $param[\"FileId\"] !== null) {\n $this->FileId = $param[\"FileId\"];\n }\n\n if (array_key_exists(\"SubAppId\",$param) and $param[\"SubAppId\"] !== null) {\n $this->SubAppId = $param[\"SubAppId\"];\n }\n\n if (array_key_exists(\"StartTimeOffset\",$param) and $param[\"StartTimeOffset\"] !== null) {\n $this->StartTimeOffset = $param[\"StartTimeOffset\"];\n }\n\n if (array_key_exists(\"EndTimeOffset\",$param) and $param[\"EndTimeOffset\"] !== null) {\n $this->EndTimeOffset = $param[\"EndTimeOffset\"];\n }\n\n if (array_key_exists(\"RepairInfo\",$param) and $param[\"RepairInfo\"] !== null) {\n $this->RepairInfo = new RepairInfo();\n $this->RepairInfo->deserialize($param[\"RepairInfo\"]);\n }\n\n if (array_key_exists(\"VideoFrameInterpolationInfo\",$param) and $param[\"VideoFrameInterpolationInfo\"] !== null) {\n $this->VideoFrameInterpolationInfo = new VideoFrameInterpolationInfo();\n $this->VideoFrameInterpolationInfo->deserialize($param[\"VideoFrameInterpolationInfo\"]);\n }\n\n if (array_key_exists(\"SuperResolutionInfo\",$param) and $param[\"SuperResolutionInfo\"] !== null) {\n $this->SuperResolutionInfo = new SuperResolutionInfo();\n $this->SuperResolutionInfo->deserialize($param[\"SuperResolutionInfo\"]);\n }\n\n if (array_key_exists(\"HDRInfo\",$param) and $param[\"HDRInfo\"] !== null) {\n $this->HDRInfo = new HDRInfo();\n $this->HDRInfo->deserialize($param[\"HDRInfo\"]);\n }\n\n if (array_key_exists(\"VideoDenoiseInfo\",$param) and $param[\"VideoDenoiseInfo\"] !== null) {\n $this->VideoDenoiseInfo = new VideoDenoiseInfo();\n $this->VideoDenoiseInfo->deserialize($param[\"VideoDenoiseInfo\"]);\n }\n\n if (array_key_exists(\"AudioDenoiseInfo\",$param) and $param[\"AudioDenoiseInfo\"] !== null) {\n $this->AudioDenoiseInfo = new AudioDenoiseInfo();\n $this->AudioDenoiseInfo->deserialize($param[\"AudioDenoiseInfo\"]);\n }\n\n if (array_key_exists(\"ColorInfo\",$param) and $param[\"ColorInfo\"] !== null) {\n $this->ColorInfo = new ColorEnhanceInfo();\n $this->ColorInfo->deserialize($param[\"ColorInfo\"]);\n }\n\n if (array_key_exists(\"SharpInfo\",$param) and $param[\"SharpInfo\"] !== null) {\n $this->SharpInfo = new SharpEnhanceInfo();\n $this->SharpInfo->deserialize($param[\"SharpInfo\"]);\n }\n\n if (array_key_exists(\"FaceInfo\",$param) and $param[\"FaceInfo\"] !== null) {\n $this->FaceInfo = new FaceEnhanceInfo();\n $this->FaceInfo->deserialize($param[\"FaceInfo\"]);\n }\n\n if (array_key_exists(\"LowLightInfo\",$param) and $param[\"LowLightInfo\"] !== null) {\n $this->LowLightInfo = new LowLightEnhanceInfo();\n $this->LowLightInfo->deserialize($param[\"LowLightInfo\"]);\n }\n\n if (array_key_exists(\"ScratchRepairInfo\",$param) and $param[\"ScratchRepairInfo\"] !== null) {\n $this->ScratchRepairInfo = new ScratchRepairInfo();\n $this->ScratchRepairInfo->deserialize($param[\"ScratchRepairInfo\"]);\n }\n\n if (array_key_exists(\"ArtifactRepairInfo\",$param) and $param[\"ArtifactRepairInfo\"] !== null) {\n $this->ArtifactRepairInfo = new ArtifactRepairInfo();\n $this->ArtifactRepairInfo->deserialize($param[\"ArtifactRepairInfo\"]);\n }\n\n if (array_key_exists(\"TargetInfo\",$param) and $param[\"TargetInfo\"] !== null) {\n $this->TargetInfo = new RebuildMediaTargetInfo();\n $this->TargetInfo->deserialize($param[\"TargetInfo\"]);\n }\n\n if (array_key_exists(\"SessionId\",$param) and $param[\"SessionId\"] !== null) {\n $this->SessionId = $param[\"SessionId\"];\n }\n\n if (array_key_exists(\"SessionContext\",$param) and $param[\"SessionContext\"] !== null) {\n $this->SessionContext = $param[\"SessionContext\"];\n }\n\n if (array_key_exists(\"TasksPriority\",$param) and $param[\"TasksPriority\"] !== null) {\n $this->TasksPriority = $param[\"TasksPriority\"];\n }\n\n if (array_key_exists(\"ExtInfo\",$param) and $param[\"ExtInfo\"] !== null) {\n $this->ExtInfo = $param[\"ExtInfo\"];\n }\n }",
"public function toObject(){\r\n return json_decode($this->toJson());\r\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'app' => fn(ParseNode $n) => $o->setApp($n->getObjectValue([MobileApp::class, 'createFromDiscriminatorValue'])),\n 'deviceId' => fn(ParseNode $n) => $o->setDeviceId($n->getStringValue()),\n 'deviceName' => fn(ParseNode $n) => $o->setDeviceName($n->getStringValue()),\n 'displayVersion' => fn(ParseNode $n) => $o->setDisplayVersion($n->getStringValue()),\n 'errorCode' => fn(ParseNode $n) => $o->setErrorCode($n->getIntegerValue()),\n 'installState' => fn(ParseNode $n) => $o->setInstallState($n->getEnumValue(ResultantAppState::class)),\n 'installStateDetail' => fn(ParseNode $n) => $o->setInstallStateDetail($n->getEnumValue(ResultantAppStateDetail::class)),\n 'lastSyncDateTime' => fn(ParseNode $n) => $o->setLastSyncDateTime($n->getDateTimeValue()),\n 'mobileAppInstallStatusValue' => fn(ParseNode $n) => $o->setMobileAppInstallStatusValue($n->getEnumValue(ResultantAppState::class)),\n 'osDescription' => fn(ParseNode $n) => $o->setOsDescription($n->getStringValue()),\n 'osVersion' => fn(ParseNode $n) => $o->setOsVersion($n->getStringValue()),\n 'userName' => fn(ParseNode $n) => $o->setUserName($n->getStringValue()),\n 'userPrincipalName' => fn(ParseNode $n) => $o->setUserPrincipalName($n->getStringValue()),\n ]);\n }",
"public function onDeserialization($sender) \r\n {\r\n // TODO: Implement onDeserialization() method.\r\n }",
"protected function get_decoded_data() {\n return json_decode($this->get_data());\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(WindowsQualityUpdateClassification::class)),\n 'isExpeditable' => fn(ParseNode $n) => $o->setIsExpeditable($n->getBooleanValue()),\n 'kbArticleId' => fn(ParseNode $n) => $o->setKbArticleId($n->getStringValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'bold' => fn(ParseNode $n) => $o->setBold($n->getBooleanValue()),\n 'color' => fn(ParseNode $n) => $o->setColor($n->getStringValue()),\n 'italic' => fn(ParseNode $n) => $o->setItalic($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'size' => fn(ParseNode $n) => $o->setSize($n->getFloatValue()),\n 'underline' => fn(ParseNode $n) => $o->setUnderline($n->getStringValue()),\n ]);\n }",
"public function getInfo()\n {\n return self::jsonDecode($this->fields['info']->getValue());\n }",
"public function getModelsMetaData() {}",
"public function jsonSerialize()\n {\n return $this->externalFields;\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'currentLabel' => fn(ParseNode $n) => $o->setCurrentLabel($n->getObjectValue([CurrentLabel::class, 'createFromDiscriminatorValue'])),\n 'discoveredSensitiveTypes' => fn(ParseNode $n) => $o->setDiscoveredSensitiveTypes($n->getCollectionOfObjectValues([DiscoveredSensitiveType::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'clientContext' => fn(ParseNode $n) => $o->setClientContext($n->getStringValue()),\n 'resultInfo' => fn(ParseNode $n) => $o->setResultInfo($n->getObjectValue([ResultInfo::class, 'createFromDiscriminatorValue'])),\n 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(OperationStatus::class)),\n ]);\n }",
"function jsonSerialize()\n\t{\n\t\treturn [\n\t\t\t'id' => $this->getId(),\n\t\t\t'metadata' => $this->getMetadata()\n\t\t];\n\t}",
"public function deserialize($data);",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'ignoreVersionDetection' => fn(ParseNode $n) => $o->setIgnoreVersionDetection($n->getBooleanValue()),\n 'includedApps' => fn(ParseNode $n) => $o->setIncludedApps($n->getCollectionOfObjectValues([MacOSIncludedApp::class, 'createFromDiscriminatorValue'])),\n 'minimumSupportedOperatingSystem' => fn(ParseNode $n) => $o->setMinimumSupportedOperatingSystem($n->getObjectValue([MacOSMinimumOperatingSystem::class, 'createFromDiscriminatorValue'])),\n 'primaryBundleId' => fn(ParseNode $n) => $o->setPrimaryBundleId($n->getStringValue()),\n 'primaryBundleVersion' => fn(ParseNode $n) => $o->setPrimaryBundleVersion($n->getStringValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'applicationId' => fn(ParseNode $n) => $o->setApplicationId($n->getStringValue()),\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'discoverable' => fn(ParseNode $n) => $o->setDiscoverable($n->getBooleanValue()),\n 'default' => fn(ParseNode $n) => $o->setEscapedDefault($n->getBooleanValue()),\n 'factoryTag' => fn(ParseNode $n) => $o->setFactoryTag($n->getStringValue()),\n 'metadata' => fn(ParseNode $n) => $o->setMetadata($n->getCollectionOfObjectValues([SynchronizationMetadataEntry::class, 'createFromDiscriminatorValue'])),\n 'schema' => fn(ParseNode $n) => $o->setSchema($n->getObjectValue([SynchronizationSchema::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'check32BitOn64System' => fn(ParseNode $n) => $o->setCheck32BitOn64System($n->getBooleanValue()),\n 'detectionType' => fn(ParseNode $n) => $o->setDetectionType($n->getEnumValue(Win32LobAppFileSystemDetectionType::class)),\n 'detectionValue' => fn(ParseNode $n) => $o->setDetectionValue($n->getStringValue()),\n 'fileOrFolderName' => fn(ParseNode $n) => $o->setFileOrFolderName($n->getStringValue()),\n 'operator' => fn(ParseNode $n) => $o->setOperator($n->getEnumValue(Win32LobAppDetectionOperator::class)),\n 'path' => fn(ParseNode $n) => $o->setPath($n->getStringValue()),\n ]);\n }",
"public function modelData()\n {\n return [\n 'title' => $this->title,\n 'description' => $this->description,\n 'image' => $this->image->store('images', 'public'),\n 'featured_image' => $this->featured_image->store('images', 'public'),\n ];\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'attributeMappings' => fn(ParseNode $n) => $o->setAttributeMappings($n->getCollectionOfObjectValues([AttributeMapping::class, 'createFromDiscriminatorValue'])),\n 'enabled' => fn(ParseNode $n) => $o->setEnabled($n->getBooleanValue()),\n 'flowTypes' => fn(ParseNode $n) => $o->setFlowTypes($n->getEnumValue(ObjectFlowTypes::class)),\n 'metadata' => fn(ParseNode $n) => $o->setMetadata($n->getCollectionOfObjectValues([ObjectMappingMetadataEntry::class, 'createFromDiscriminatorValue'])),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'scope' => fn(ParseNode $n) => $o->setScope($n->getObjectValue([Filter::class, 'createFromDiscriminatorValue'])),\n 'sourceObjectName' => fn(ParseNode $n) => $o->setSourceObjectName($n->getStringValue()),\n 'targetObjectName' => fn(ParseNode $n) => $o->setTargetObjectName($n->getStringValue()),\n ];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'assignmentState' => fn(ParseNode $n) => $o->setAssignmentState($n->getStringValue()),\n 'duration' => fn(ParseNode $n) => $o->setDuration($n->getStringValue()),\n 'reason' => fn(ParseNode $n) => $o->setReason($n->getStringValue()),\n 'requestedDateTime' => fn(ParseNode $n) => $o->setRequestedDateTime($n->getDateTimeValue()),\n 'roleId' => fn(ParseNode $n) => $o->setRoleId($n->getStringValue()),\n 'roleInfo' => fn(ParseNode $n) => $o->setRoleInfo($n->getObjectValue([PrivilegedRole::class, 'createFromDiscriminatorValue'])),\n 'schedule' => fn(ParseNode $n) => $o->setSchedule($n->getObjectValue([GovernanceSchedule::class, 'createFromDiscriminatorValue'])),\n 'status' => fn(ParseNode $n) => $o->setStatus($n->getStringValue()),\n 'ticketNumber' => fn(ParseNode $n) => $o->setTicketNumber($n->getStringValue()),\n 'ticketSystem' => fn(ParseNode $n) => $o->setTicketSystem($n->getStringValue()),\n 'type' => fn(ParseNode $n) => $o->setType($n->getStringValue()),\n 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),\n ]);\n }",
"public function getPreSerializerData()\n {\n $data = array(\n 'orderID' => $this->getOrderID(),\n 'paymentMethod' => $this->getPaymentMethod(),\n );\n\n if (!empty($this->paymentInstrumentID)) {\n $data['paymentInstrumentID'] = $this->getPaymentInstrumentID();\n }\n\n if (!empty($this->amount)) {\n $data['amount'] = $this->getAmount();\n }\n\n if (!empty($this->additionalInformation)) {\n $data['additionalInformation'] = $this->getAdditionalInformation();\n }\n\n if (!empty($this->cvv)) {\n $data['cvv'] = $this->getCcv();\n }\n\n return $data;\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deviceCount' => fn(ParseNode $n) => $o->setDeviceCount($n->getIntegerValue()),\n 'medianImpactInMs' => fn(ParseNode $n) => $o->setMedianImpactInMs($n->getIntegerValue()),\n 'processName' => fn(ParseNode $n) => $o->setProcessName($n->getStringValue()),\n 'productName' => fn(ParseNode $n) => $o->setProductName($n->getStringValue()),\n 'publisher' => fn(ParseNode $n) => $o->setPublisher($n->getStringValue()),\n 'totalImpactInMs' => fn(ParseNode $n) => $o->setTotalImpactInMs($n->getIntegerValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'attributeDestination' => fn(ParseNode $n) => $o->setAttributeDestination($n->getObjectValue([AccessPackageResourceAttributeDestination::class, 'createFromDiscriminatorValue'])),\n 'attributeName' => fn(ParseNode $n) => $o->setAttributeName($n->getStringValue()),\n 'attributeSource' => fn(ParseNode $n) => $o->setAttributeSource($n->getObjectValue([AccessPackageResourceAttributeSource::class, 'createFromDiscriminatorValue'])),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n 'isEditable' => fn(ParseNode $n) => $o->setIsEditable($n->getBooleanValue()),\n 'isPersistedOnAssignmentRemoval' => fn(ParseNode $n) => $o->setIsPersistedOnAssignmentRemoval($n->getBooleanValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n ];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'additionalInformation' => fn(ParseNode $n) => $o->setAdditionalInformation($n->getStringValue()),\n 'creationDateTime' => fn(ParseNode $n) => $o->setCreationDateTime($n->getDateTimeValue()),\n 'expirationDateTime' => fn(ParseNode $n) => $o->setExpirationDateTime($n->getDateTimeValue()),\n 'referenceKey' => fn(ParseNode $n) => $o->setReferenceKey($n->getStringValue()),\n 'referenceSystem' => fn(ParseNode $n) => $o->setReferenceSystem($n->getStringValue()),\n 'requestorId' => fn(ParseNode $n) => $o->setRequestorId($n->getStringValue()),\n 'requestorName' => fn(ParseNode $n) => $o->setRequestorName($n->getStringValue()),\n 'requestType' => fn(ParseNode $n) => $o->setRequestType($n->getStringValue()),\n 'roleId' => fn(ParseNode $n) => $o->setRoleId($n->getStringValue()),\n 'roleName' => fn(ParseNode $n) => $o->setRoleName($n->getStringValue()),\n 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()),\n 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),\n 'userMail' => fn(ParseNode $n) => $o->setUserMail($n->getStringValue()),\n 'userName' => fn(ParseNode $n) => $o->setUserName($n->getStringValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'clickAction' => fn(ParseNode $n) => $o->setClickAction($n->getStringValue()),\n 'clickDateTime' => fn(ParseNode $n) => $o->setClickDateTime($n->getDateTimeValue()),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'sourceId' => fn(ParseNode $n) => $o->setSourceId($n->getStringValue()),\n 'uriDomain' => fn(ParseNode $n) => $o->setUriDomain($n->getStringValue()),\n 'verdict' => fn(ParseNode $n) => $o->setVerdict($n->getStringValue()),\n ];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(PermissionClassificationType::class)),\n 'permissionId' => fn(ParseNode $n) => $o->setPermissionId($n->getStringValue()),\n 'permissionName' => fn(ParseNode $n) => $o->setPermissionName($n->getStringValue()),\n ]);\n }",
"public function toArray()\n {\n return $this->info;\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'activeDevices' => fn(ParseNode $n) => $o->setActiveDevices($n->getIntegerValue()),\n 'batteryCapacityFair' => fn(ParseNode $n) => $o->setBatteryCapacityFair($n->getIntegerValue()),\n 'batteryCapacityGood' => fn(ParseNode $n) => $o->setBatteryCapacityGood($n->getIntegerValue()),\n 'batteryCapacityPoor' => fn(ParseNode $n) => $o->setBatteryCapacityPoor($n->getIntegerValue()),\n 'lastRefreshedDateTime' => fn(ParseNode $n) => $o->setLastRefreshedDateTime($n->getDateTimeValue()),\n ]);\n }",
"public function deserialize ($data, $metaModel) {\n\t\t$result = array();\n\t\t\t$this->systemLogger->log(\"Data: \" . print_r($data, TRUE), LOG_INFO); // TODO remove\n\n\t\tif (array_key_exists('id', $data)) {\n\t\t\t$result['__identity'] = $data['id'];\n\t\t}\n\t\t\n\t\t// Add properties\n\t\tforeach ((array) $metaModel->getProperties() as $property) {\n\t\t\t$propertyPayloadName = $this->getPayloadName($property->getName());\n\n\t\t\tif (array_key_exists($propertyPayloadName, $data)) {\n\t\t\t\t$convertTo = $property->getConverter()->getTo();\n\t\t\t\t$result[$property->getName()] = $convertTo($data[$propertyPayloadName]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Add associations\n\t\tforeach ((array) $metaModel->getAssociations() as $association) {\n\t\t\t$associationPayloadName = $this->getPayloadName($association->getEmberName(), $association->getEmberType());\n\t\t\t$this->systemLogger->log(\"Association: \" . $association->getEmberName() . \"; PayloadName: \" . $associationPayloadName . \"; Type: \" . $association->getEmberType(), LOG_INFO);\n\t\t\t$this->systemLogger->log(\"Payload name: \" . $associationPayloadName, LOG_INFO); // TODO remove\n\t\t\t\n\t\t\tif(isset($data[$associationPayloadName]) && $data[$associationPayloadName] !== NULL) {\n\t\t\t\t$result[$association->getFlowName()] = $data[$associationPayloadName];\n\t\t\t}\n\t\t}\n\n\t\t// TODO remove Logging\n\t\tob_start();\n\t\tvar_dump($result);\n\t\t$x = ob_get_clean();\n\t\t$this->systemLogger->log(\"Result: \" .$x, LOG_INFO);\n\n\t\t\n\t\treturn $result;\n\t}",
"public static function getSerializer();",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'platformType' => fn(ParseNode $n) => $o->setPlatformType($n->getEnumValue(PolicyPlatformType::class)),\n 'settingCount' => fn(ParseNode $n) => $o->setSettingCount($n->getIntegerValue()),\n 'settingStates' => fn(ParseNode $n) => $o->setSettingStates($n->getCollectionOfObjectValues([ManagedDeviceMobileAppConfigurationSettingState::class, 'createFromDiscriminatorValue'])),\n 'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(ComplianceStatus::class)),\n 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),\n 'userPrincipalName' => fn(ParseNode $n) => $o->setUserPrincipalName($n->getStringValue()),\n 'version' => fn(ParseNode $n) => $o->setVersion($n->getIntegerValue()),\n ]);\n }",
"protected final function parse_model_request() {\n\t \n\t /* get the model from the request */\n\t $modeldata = (is_array($this->request['model'])) ? $this->request['model'] : array();\n\t /*\n\t *\tlooks something like this now:\n\t\t *\t$modeldata = array(\n\t\t * \t'title'\t\t\t\t=> 'my title',\n\t\t * \t'content'\t\t\t=> 'some content',\n\t\t * 'any backbone key'\t=> 'any backbone value'\n\t\t * );\n\t\t */\n\t \t \n\t \t/* the formatting of the parsed output */\n \t$parsed = array();\n \t\n \t/* get all data packages, also the core packages and parse them */\n\t \t$data_packages = array_merge($this->core_data_packages, $this->properties->custom_data_packages ); \n\t \tforeach ($data_packages as $data_package) {\n\t\t \t$parsed[$data_package] = array();\n\t \t} \t\n \t/*\n\t *\tlooks something like this now:\n\t\t *\t$parsed = array(\n\t\t * \t'post'\t\t\t\t\t\t\t=> array(),\n\t\t * \t'postmeta'\t\t\t\t\t\t=> array(),\n\t\t * \t'comment'\t\t\t\t\t\t=> array(),\n\t\t *\t\t'any registered data package' \t=> array()\n\t\t * );\n\t\t */\n \n \t/* get default values if some are set in the extended handler class */\n \t$parsed = $this->filter_pre_parse_model_request($parsed, $this->request_method);\n \t\n \t/* start parsing */\n\t\tforeach ($modeldata as $id_backbone => $value) {\n\t\t\t\n\t\t\t/* check if the data package field is registered */\n\t\t\t/* only data_package_fields registered in backbone pass this gate */\n\t\t\tif ( ! array_key_exists($id_backbone, $this->properties->data_package_fields) )\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t// shorthand for data package fields\n\t\t\t$field = $this->properties->data_package_fields[$id_backbone]; // any backbone key\n\t\t\t$data_package = $field['data_package']; // the name of the package, e.g. 'post' or 'author'\n\t\t\t$wp_id = $field['id']; // the wp key name, e.g. post_title, post_parent\t\t\n\n\t\t\t/* some preprocessing */\n\t\t\tif( isset($field['options']) ) {\n\t\t\t\n\t\t\t\t/* this field is read only, so throw it away, we ignore this value */\n\t\t\t\tif( array_key_exists('readonly', $field['options']) && $field['options']['readonly'] )\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t/* validate the data */\n\t\t\t\tif( array_key_exists('validate', $field['options']) ) { \t\t\t\t\t\n\t\t\t\t\t$validate_callback = $field['options']['validate'];\n\t\t\t\t\t\n\t\t\t\t\t/* execute the validation callback e.g. esc_attr(), esc_url(), .. */\n\t\t\t\t\tif(function_exists($validate_callback))\n\t\t\t\t\t\t$value = call_user_func ($validate_callback, $value);\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t/* sort all data in a nice way */\n\t\t\t$parsed[$data_package][$wp_id] = $value;\n\t\t\t/*\n\t\t *\tlooks something like this now:\n\t\t\t *\t$parsed = array(\n\t\t\t * \t'post'\t\t=> array( 'post_title' \t=> 'my title',\n\t\t\t * \t\t\t\t\t\t\t 'post_content'=> 'my content',\n\t\t\t *\t\t\t\t\t\t\t 'any wp key'\t=> 'value from backbone'\n\t\t\t *\t\t\t\t\t\t\t),\n\t\t\t * \t'postmeta'\t=> array(...),\n\t\t\t * \t'comment'\t=> array(...)\n\t\t\t * );\n\t\t\t */\n\t\t\t\n\t\t}\t\t\t\t\t\n\t\t\n\t\t/* override some key, values with filter in the child class */\n \t$parsed = $this->filter_post_parse_model_request($parsed, $this->request_method);\n \t\n \t/* there might be an error \t */\n \tif( ! $parsed ) {\n\t \t$this->set_error( 500, 'request could nt be parsed' );\n\t \t$parsed = array();\n \t}\n \t\n \t// successfully set our data\n \t$this->parsed_model_request = $parsed;\t \t\t\n\t}",
"public function getInfo()\n {\n return $this->info;\n }",
"public function getInfo()\n {\n return $this->info;\n }",
"public function getInfo()\n {\n return $this->info;\n }",
"public function getInfo()\n {\n return $this->info;\n }",
"public function getInfo()\n {\n return $this->info;\n }",
"public function getInfo()\n {\n return $this->info;\n }",
"public function getInfo()\n {\n return $this->info;\n }",
"public function jsonSerialize() {\n return get_object_vars($this);\n }",
"public function jsonSerialize() {\n return get_object_vars($this);\n }",
"public function jsonSerialize()\r\n {\r\n return get_object_vars($this);\r\n }",
"function jsonSerialize()\n {\n return (object) get_object_vars($this);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()),\n 'identity' => fn(ParseNode $n) => $o->setIdentity($n->getObjectValue([CommunicationsUserIdentity::class, 'createFromDiscriminatorValue'])),\n 'presenterDetails' => fn(ParseNode $n) => $o->setPresenterDetails($n->getObjectValue([VirtualEventPresenterDetails::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function jsonSerialize()\n {\n return (object) get_object_vars($this);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n 'isAnswerEditable' => fn(ParseNode $n) => $o->setIsAnswerEditable($n->getBooleanValue()),\n 'isRequired' => fn(ParseNode $n) => $o->setIsRequired($n->getBooleanValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'sequence' => fn(ParseNode $n) => $o->setSequence($n->getIntegerValue()),\n 'text' => fn(ParseNode $n) => $o->setText($n->getObjectValue([AccessPackageLocalizedContent::class, 'createFromDiscriminatorValue'])),\n ];\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function serialize () {\n return (object) array(\n 'id' => $this->getId(),\n 'data' => (object) $this->getData(),\n 'definitionId' => $this->getDefinitionId(),\n 'createdAt' => $this->getCreatedAt()\n );\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function jsonSerialize()\n {\n return get_object_vars($this);\n }",
"public function getInfo() \n {\n return $this->requestInfo;\n }",
"public function getInfo()\r\n {\r\n return $this->info;\r\n }",
"public function getInfo ()\n {\n return $this->info;\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'allowPrinting' => fn(ParseNode $n) => $o->setAllowPrinting($n->getBooleanValue()),\n 'allowScreenCapture' => fn(ParseNode $n) => $o->setAllowScreenCapture($n->getBooleanValue()),\n 'allowTextSuggestion' => fn(ParseNode $n) => $o->setAllowTextSuggestion($n->getBooleanValue()),\n 'assessmentAppUserModelId' => fn(ParseNode $n) => $o->setAssessmentAppUserModelId($n->getStringValue()),\n 'configurationAccount' => fn(ParseNode $n) => $o->setConfigurationAccount($n->getStringValue()),\n 'configurationAccountType' => fn(ParseNode $n) => $o->setConfigurationAccountType($n->getEnumValue(SecureAssessmentAccountType::class)),\n 'launchUri' => fn(ParseNode $n) => $o->setLaunchUri($n->getStringValue()),\n 'localGuestAccountName' => fn(ParseNode $n) => $o->setLocalGuestAccountName($n->getStringValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'number' => fn(ParseNode $n) => $o->setNumber($n->getStringValue()),\n 'type' => fn(ParseNode $n) => $o->setType($n->getEnumValue(PhoneType::class)),\n ]);\n }",
"public function readObject();",
"public function getInfo()\n\t{\n\t\treturn $this->resource->get($this->name)->getContent();\n\t}",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'members' => fn(ParseNode $n) => $o->setMembers($n->getCollectionOfObjectValues([Identity::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'appRoleId' => fn(ParseNode $n) => $o->setAppRoleId($n->getStringValue()),\n 'creationTimestamp' => fn(ParseNode $n) => $o->setCreationTimestamp($n->getDateTimeValue()),\n 'principalDisplayName' => fn(ParseNode $n) => $o->setPrincipalDisplayName($n->getStringValue()),\n 'principalId' => fn(ParseNode $n) => $o->setPrincipalId($n->getStringValue()),\n 'principalType' => fn(ParseNode $n) => $o->setPrincipalType($n->getStringValue()),\n 'resourceDisplayName' => fn(ParseNode $n) => $o->setResourceDisplayName($n->getStringValue()),\n 'resourceId' => fn(ParseNode $n) => $o->setResourceId($n->getStringValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'completionDateTime' => fn(ParseNode $n) => $o->setCompletionDateTime($n->getDateTimeValue()),\n 'creationDateTime' => fn(ParseNode $n) => $o->setCreationDateTime($n->getDateTimeValue()),\n 'error' => fn(ParseNode $n) => $o->setError($n->getObjectValue([ClassificationError::class, 'createFromDiscriminatorValue'])),\n 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()),\n 'startDateTime' => fn(ParseNode $n) => $o->setStartDateTime($n->getDateTimeValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'content' => fn(ParseNode $n) => $o->setContent($n->getBinaryContent()),\n 'dateTime' => fn(ParseNode $n) => $o->setDateTime($n->getDateTimeValue()),\n 'extension' => fn(ParseNode $n) => $o->setExtension($n->getStringValue()),\n 'extractedTextContent' => fn(ParseNode $n) => $o->setExtractedTextContent($n->getBinaryContent()),\n 'mediaType' => fn(ParseNode $n) => $o->setMediaType($n->getStringValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'otherProperties' => fn(ParseNode $n) => $o->setOtherProperties($n->getObjectValue([StringValueDictionary::class, 'createFromDiscriminatorValue'])),\n 'processingStatus' => fn(ParseNode $n) => $o->setProcessingStatus($n->getEnumValue(FileProcessingStatus::class)),\n 'senderOrAuthors' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setSenderOrAuthors($val);\n },\n 'size' => fn(ParseNode $n) => $o->setSize($n->getIntegerValue()),\n 'sourceType' => fn(ParseNode $n) => $o->setSourceType($n->getEnumValue(SourceType::class)),\n 'subjectTitle' => fn(ParseNode $n) => $o->setSubjectTitle($n->getStringValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'deviceRestartBehavior' => fn(ParseNode $n) => $o->setDeviceRestartBehavior($n->getEnumValue(Win32LobAppRestartBehavior::class)),\n 'maxRunTimeInMinutes' => fn(ParseNode $n) => $o->setMaxRunTimeInMinutes($n->getIntegerValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'runAsAccount' => fn(ParseNode $n) => $o->setRunAsAccount($n->getEnumValue(RunAsAccountType::class)),\n ];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'identity' => fn(ParseNode $n) => $o->setIdentity($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'role' => fn(ParseNode $n) => $o->setRole($n->getEnumValue(OnlineMeetingRole::class)),\n 'upn' => fn(ParseNode $n) => $o->setUpn($n->getStringValue()),\n ];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'appDisplayName' => fn(ParseNode $n) => $o->setAppDisplayName($n->getStringValue()),\n 'dataType' => fn(ParseNode $n) => $o->setDataType($n->getStringValue()),\n 'isMultiValued' => fn(ParseNode $n) => $o->setIsMultiValued($n->getBooleanValue()),\n 'isSyncedFromOnPremises' => fn(ParseNode $n) => $o->setIsSyncedFromOnPremises($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'targetObjects' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setTargetObjects($val);\n },\n ]);\n }",
"public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"Format\",$param) and $param[\"Format\"] !== null) {\n $this->Format = $param[\"Format\"];\n }\n\n if (array_key_exists(\"Csv\",$param) and $param[\"Csv\"] !== null) {\n $this->Csv = new CsvInfo();\n $this->Csv->deserialize($param[\"Csv\"]);\n }\n\n if (array_key_exists(\"Json\",$param) and $param[\"Json\"] !== null) {\n $this->Json = new JsonInfo();\n $this->Json->deserialize($param[\"Json\"]);\n }\n\n if (array_key_exists(\"Parquet\",$param) and $param[\"Parquet\"] !== null) {\n $this->Parquet = new ParquetInfo();\n $this->Parquet->deserialize($param[\"Parquet\"]);\n }\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'distributeForStudentWork' => fn(ParseNode $n) => $o->setDistributeForStudentWork($n->getBooleanValue()),\n 'resource' => fn(ParseNode $n) => $o->setResource($n->getObjectValue([EducationResource::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'accessRecommendation' => fn(ParseNode $n) => $o->setAccessRecommendation($n->getStringValue()),\n 'accessReviewId' => fn(ParseNode $n) => $o->setAccessReviewId($n->getStringValue()),\n 'appliedBy' => fn(ParseNode $n) => $o->setAppliedBy($n->getObjectValue([UserIdentity::class, 'createFromDiscriminatorValue'])),\n 'appliedDateTime' => fn(ParseNode $n) => $o->setAppliedDateTime($n->getDateTimeValue()),\n 'applyResult' => fn(ParseNode $n) => $o->setApplyResult($n->getStringValue()),\n 'justification' => fn(ParseNode $n) => $o->setJustification($n->getStringValue()),\n 'reviewedBy' => fn(ParseNode $n) => $o->setReviewedBy($n->getObjectValue([UserIdentity::class, 'createFromDiscriminatorValue'])),\n 'reviewedDateTime' => fn(ParseNode $n) => $o->setReviewedDateTime($n->getDateTimeValue()),\n 'reviewResult' => fn(ParseNode $n) => $o->setReviewResult($n->getStringValue()),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'calculateDiscountOnCreditMemos' => fn(ParseNode $n) => $o->setCalculateDiscountOnCreditMemos($n->getBooleanValue()),\n 'code' => fn(ParseNode $n) => $o->setCode($n->getStringValue()),\n 'discountDateCalculation' => fn(ParseNode $n) => $o->setDiscountDateCalculation($n->getStringValue()),\n 'discountPercent' => fn(ParseNode $n) => $o->setDiscountPercent($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'dueDateCalculation' => fn(ParseNode $n) => $o->setDueDateCalculation($n->getStringValue()),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n 'lastModifiedDateTime' => fn(ParseNode $n) => $o->setLastModifiedDateTime($n->getDateTimeValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n ];\n }",
"public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"BizType\",$param) and $param[\"BizType\"] !== null) {\n $this->BizType = $param[\"BizType\"];\n }\n\n if (array_key_exists(\"EvilFlag\",$param) and $param[\"EvilFlag\"] !== null) {\n $this->EvilFlag = $param[\"EvilFlag\"];\n }\n\n if (array_key_exists(\"Label\",$param) and $param[\"Label\"] !== null) {\n $this->Label = $param[\"Label\"];\n }\n\n if (array_key_exists(\"Suggestion\",$param) and $param[\"Suggestion\"] !== null) {\n $this->Suggestion = $param[\"Suggestion\"];\n }\n\n if (array_key_exists(\"Keywords\",$param) and $param[\"Keywords\"] !== null) {\n $this->Keywords = $param[\"Keywords\"];\n }\n\n if (array_key_exists(\"Score\",$param) and $param[\"Score\"] !== null) {\n $this->Score = $param[\"Score\"];\n }\n\n if (array_key_exists(\"DetailResults\",$param) and $param[\"DetailResults\"] !== null) {\n $this->DetailResults = [];\n foreach ($param[\"DetailResults\"] as $key => $value){\n $obj = new DetailResults();\n $obj->deserialize($value);\n array_push($this->DetailResults, $obj);\n }\n }\n\n if (array_key_exists(\"RiskDetails\",$param) and $param[\"RiskDetails\"] !== null) {\n $this->RiskDetails = [];\n foreach ($param[\"RiskDetails\"] as $key => $value){\n $obj = new RiskDetails();\n $obj->deserialize($value);\n array_push($this->RiskDetails, $obj);\n }\n }\n\n if (array_key_exists(\"Extra\",$param) and $param[\"Extra\"] !== null) {\n $this->Extra = $param[\"Extra\"];\n }\n\n if (array_key_exists(\"RequestId\",$param) and $param[\"RequestId\"] !== null) {\n $this->RequestId = $param[\"RequestId\"];\n }\n }",
"protected function getObjectData() {\n return $this->data;\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'filter' => fn(ParseNode $n) => $o->setFilter($n->getObjectValue([WorkbookFilter::class, 'createFromDiscriminatorValue'])),\n 'index' => fn(ParseNode $n) => $o->setIndex($n->getIntegerValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'values' => fn(ParseNode $n) => $o->setValues($n->getObjectValue([Json::class, 'createFromDiscriminatorValue'])),\n ]);\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'addedDateTime' => fn(ParseNode $n) => $o->setAddedDateTime($n->getDateTimeValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'verifiedPublisherId' => fn(ParseNode $n) => $o->setVerifiedPublisherId($n->getStringValue()),\n ];\n }",
"public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deletedChats' => fn(ParseNode $n) => $o->setDeletedChats($n->getCollectionOfObjectValues([DeletedChat::class, 'createFromDiscriminatorValue'])),\n 'deletedTeams' => fn(ParseNode $n) => $o->setDeletedTeams($n->getCollectionOfObjectValues([DeletedTeam::class, 'createFromDiscriminatorValue'])),\n 'devices' => fn(ParseNode $n) => $o->setDevices($n->getCollectionOfObjectValues([TeamworkDevice::class, 'createFromDiscriminatorValue'])),\n 'teamsAppSettings' => fn(ParseNode $n) => $o->setTeamsAppSettings($n->getObjectValue([TeamsAppSettings::class, 'createFromDiscriminatorValue'])),\n 'teamTemplates' => fn(ParseNode $n) => $o->setTeamTemplates($n->getCollectionOfObjectValues([TeamTemplate::class, 'createFromDiscriminatorValue'])),\n 'workforceIntegrations' => fn(ParseNode $n) => $o->setWorkforceIntegrations($n->getCollectionOfObjectValues([WorkforceIntegration::class, 'createFromDiscriminatorValue'])),\n ]);\n }"
] | [
"0.6067922",
"0.57719976",
"0.57719976",
"0.5759543",
"0.5708227",
"0.5663973",
"0.5626403",
"0.5607489",
"0.5597127",
"0.5582992",
"0.55805206",
"0.55749476",
"0.55737877",
"0.5545505",
"0.5529162",
"0.5523548",
"0.5518858",
"0.55104053",
"0.5507383",
"0.5482898",
"0.54758966",
"0.5475867",
"0.54485196",
"0.54406196",
"0.5435983",
"0.5423808",
"0.54216844",
"0.54160607",
"0.5414494",
"0.5397282",
"0.5390837",
"0.53901935",
"0.5381852",
"0.53797996",
"0.53693736",
"0.53686494",
"0.5364876",
"0.5350122",
"0.5345665",
"0.53442115",
"0.5327602",
"0.53254575",
"0.5323211",
"0.5316442",
"0.53109545",
"0.53109545",
"0.53109545",
"0.53109545",
"0.53109545",
"0.53109545",
"0.53109545",
"0.53086495",
"0.53086495",
"0.53083086",
"0.53058827",
"0.5300915",
"0.52969193",
"0.52969193",
"0.52969193",
"0.52966297",
"0.52966297",
"0.5295935",
"0.5295935",
"0.5295935",
"0.5295935",
"0.5295935",
"0.5295935",
"0.5294224",
"0.52935994",
"0.5291741",
"0.5291741",
"0.5291741",
"0.5291741",
"0.5291741",
"0.5291741",
"0.52906066",
"0.52883685",
"0.52883685",
"0.52876395",
"0.5280892",
"0.5280467",
"0.5278872",
"0.52716607",
"0.52693534",
"0.52653086",
"0.52623343",
"0.5258704",
"0.525561",
"0.52554286",
"0.52469206",
"0.52458364",
"0.52451915",
"0.5242895",
"0.5242707",
"0.5237819",
"0.52339834",
"0.52234733",
"0.52230334",
"0.52096957",
"0.5204796",
"0.5202764"
] | 0.0 | -1 |
Gets the templateId property value. Unique identifier for the template used to create this group of settings. Readonly. | public function getTemplateId(): ?string {
$val = $this->getBackingStore()->get('templateId');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'templateId'");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_template_id() \n {\n return $this->template_id;\n }",
"public function getTemplateId() : string {\n return $this->templateId;\n }",
"public function getId()\n\t{\n\t\treturn $this->get('templateid');\n\t}",
"public function getTemplateId()\n\t{\n\t\treturn $this->template_id;\n\t}",
"public function getTemplateentityid()\n {\n return $this->templateentityid;\n }",
"public function get_template_registration_id()\n {\n return $this->get_default_property(self::PROPERTY_TEMPLATE_REGISTRATION_ID);\n }",
"public function templateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('template', $value);\n }",
"public function templateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('template', $value);\n }",
"public function getSettingInstanceTemplateId()\n {\n if (array_key_exists(\"settingInstanceTemplateId\", $this->_propDict)) {\n return $this->_propDict[\"settingInstanceTemplateId\"];\n } else {\n return null;\n }\n }",
"public function getControlTemplateUID()\n {\n return $this->name.'_TPL_UID';\n }",
"public static function getTemplate() {\n $settings = self::getSettings();\n \n return $settings->template;\n }",
"public function getGuestTemplateId()\n {\n return $this->getTemplateId();\n }",
"public function groupNameTemplateId($value) {\n $value = new Template($value);\n\n return $this->setProperty('groupNameTemplate', $value);\n }",
"function getTemplateType() {\n\t\t\t\t\treturn $this->templateType;\n\t\t\t\t}",
"public function getTemplate() {\n return $this->template;\n }",
"private function getTemplateKey()\n {\n $statusId = $this->busReg->getStatus()->getId();\n\n // for variation\n if (\n $statusId === BusReg::STATUS_REGISTERED\n && $this->busReg->isVariation()\n ) {\n return BusReg::STATUS_VAR;\n }\n\n return $statusId;\n }",
"public function getTemplate() {\r\n return $this->_template;\r\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getTemplate()\n {\n return $this->template;\n }",
"public function getSourceInstanceTemplateId()\n {\n return isset($this->source_instance_template_id) ? $this->source_instance_template_id : '';\n }",
"public function getTemplate () {\r\n\t\treturn $this->_template;\r\n\t}",
"public function getTemplate() {\n\t\t\treturn $this->template;\n\t\t}",
"public function setTemplateId(string $templateId) : self {\n $this->templateId = $templateId;\n return $this;\n }",
"public function getSchoolTemplateId(): int\n {\n return 1;\n }",
"public function ARIATemplateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('ARIATemplate', $value);\n }",
"public function getTemplate() {\n return 'controlTemplate';\n }",
"public function getTemplate()\n\t{\n\t\treturn $this->template;\n\t}",
"public function getTemplate()\n\t{\n\t\treturn $this->template;\n\t}",
"public function getLayoutTemplate()\n {\n return $this->layoutTemplate;\n }",
"public function getTemplate()\n\t{\n\t\treturn $this->_template;\n\t}",
"public function get_template() {\n return $this->_template;\n }",
"public function getTemplate(){\n\t\treturn $this->template;\n\t}",
"public function getTemplate()\r\n {\r\n return $this->_customTemplate;\r\n }",
"public function getAvatarTemplateId()\n {\n return $this->avatar_template_id;\n }",
"public function getUniqueId() {\n return $this->id;\n }",
"function jet_woo_builder_modify_template_id( $template_id ) {\n\t\t\treturn apply_filters( 'wpml_object_id', $template_id, jet_woo_builder_post_type()->slug(), true );\n\t\t}",
"public function getApplicationTemplateId()\n {\n if (array_key_exists(\"applicationTemplateId\", $this->_propDict)) {\n return $this->_propDict[\"applicationTemplateId\"];\n } else {\n return null;\n }\n }",
"public function template() {\n\t\tif( !$this->template ) {\n\t\t\t$this->template = new Template( $this->template_id );\n\t\t}//end if\n\t\treturn $this->template;\n\t}",
"public function setTemplateId($value);",
"public function getTemplateName()\n {\n return $this->templateName;\n }",
"public function getSubjectTemplateID() {\n\n\t\t\t$sql = new DB_Sql();\n\t\t\t$sql->connect();\n\t\t\t$query = \"SELECT template_id FROM webmatrix_page_template WHERE basename = '\".$this->subject_tpl.\"'\"; // Get template ID\n\t\t\t$sql->query($query, $this->debug);\n\t\t\tif ($sql->num_rows() > 0) {\n\t\t\t\twhile($sql->next_record()) {\n\t\t\t\t\t$this->subject_tpl_id = $sql->Record['template_id'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"function getTemplateName() {\n\t\treturn $this->templateName;\n\t}",
"public function getTemplate()\n {\n if ($this->getConfigData('mobile_optimized')) {\n return self::MOBILE_LAYOUT_TEMPLATE;\n } else {\n return self::LAYOUT_TEMPLATE;\n }\n }",
"public function getItemTemplate()\r\n {\r\n return $this->templateConfiguration['itemTemplate'];\r\n }",
"public function getId()\n {\n return $this->systemProperties->getId();\n }",
"public function template()\n {\n if ($this->template === null) {\n return 'charcoal/app/handler/layout';\n }\n\n return $this->template;\n }",
"public function getUniqueId()\n {\n return $this->uniqueId;\n }",
"public function getUniqueId()\n {\n return $this->_uniqueId;\n }",
"public function setTemplateId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->template_id !== $v) {\n\t\t\t$this->template_id = $v;\n\t\t\t$this->modifiedColumns[] = CampaignPeer::TEMPLATE_ID;\n\t\t}\n\n\t\tif ($this->aCampaignTemplate !== null && $this->aCampaignTemplate->getId() !== $v) {\n\t\t\t$this->aCampaignTemplate = null;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function getTemplateName()\n {\n return $this->_sThisTemplate;\n }",
"public static function getTemplateId($template) : int\n\t{\n\t\ttry\n\t\t{\n\t\t\t$db \t= Factory::getDbo();\n\t\t\t$query \t= $db->getQuery(true);\n\n\t\t\t$query->select('id')\n\t\t\t\t->from($db->quoteName('#__template_styles'))\n\t\t\t\t->where($db->quoteName('template') . ' = ' . $db->quote($template));\n\n\t\t\tif (Multilanguage::isEnabled())\n\t\t\t{\n\t\t\t\t$query->where($db->quoteName('home') . ' IN(' . $db->quote(Factory::getLanguage()->getTag()) . ', ' . $db->quote('1', false));\n\t\t\t}\n\n\t\t\t$db->setQuery($query);\n\n\t\t\treturn (int) $db->loadResult();\n\t\t}\n\t\tcatch (\\Exception $e)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t}",
"public function setSettingInstanceTemplateId($val)\n {\n $this->_propDict[\"settingInstanceTemplateId\"] = $val;\n return $this;\n }",
"public function getTemplateSet(){\n\t\treturn $this->templateSet;\n\t}",
"public function getTemplate(){\n\t\treturn $this->CustomTemplate ? $this->CustomTemplate : $this->config()->get('default_template');\n\t}",
"public function getTemplate()\n {\n return $this->repeatParent;\n }",
"public function getTemplateAttribute(): string\n {\n return $this->meta->_wp_page_template ?: '';\n ;\n }",
"public function getGathercontentTemplateId();",
"public function template() {\n\n // check for a cached template name\n if(isset($this->cache['template'])) return $this->cache['template'];\n\n // get the template name\n $templateName = $this->intendedTemplate();\n\n if($this->kirby->registry->get('template', $templateName)) {\n return $this->cache['template'] = $templateName; \n } else {\n return $this->cache['template'] = 'default';\n }\n\n }",
"public function getTemplateUrl() {\n\t\t\t\n\t\t\treturn DMURL::getCurrentBaseUrl() . 'templates/' . $this->_template;\n\t\t\t\n\t\t}",
"public function getUniqueId()\n {\n return $this->unique_id;\n }",
"public static function getTemplateLayout()\n {\n return self::$templateLayout;\n }",
"public function getTemplate()\n {\n return $this->hasOne(Template::className(), ['id' => 'template_id']);\n }",
"static public function getMailServerTemplate($templateKey)\r\n {\r\n return $templateKey;\r\n }",
"public function getTemplatePath()\r\n {\r\n return $this->_templatePath;\r\n }",
"public function getTemplatePath()\n {\n return $this->getSettingArray()[\"template_path\"];\n }",
"public function getTemplate()\n {\n\n if ( ! $this->template) {\n $this->setDefaultTemplate();\n }\n\n if (is_string($this->template)) {\n $this->template = $this->createTemplate($this->template);\n }\n\n return $this->template;\n }",
"final public function getTemplate() {\n\t\treturn '';\n\t}",
"public function getId(){\n return $this->__get('setting_id');\n }",
"public static function getTemplatePage()\n {\n return self::$templatePage;\n }",
"public function getCdTemplate()\n {\n return $this->cd_template;\n }",
"public function getId()\n {\n // TODO: Implement getId() method.\n return $this->tch_id;\n }",
"public function getPtkId()\n {\n return $this->ptk_id;\n }",
"function get_id()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_ID);\r\n }",
"public function urlTemplateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('urlTemplate', $value);\n }",
"public function getTemplatePath()\r\n\t{\r\n\t\treturn $this->templatePath;\r\n\t}",
"function get_id()\n {\n return $this->get_default_property(self :: PROPERTY_ID);\n }",
"public function id()\n {\n return $this->resource->getKey();\n }",
"public function getTemplateRoot()\n {\n return TEMPLATE_ROOT;\n }",
"public function getProfileTemplate (){\n $db = new db();\n $db->connect();\n $row = $db->selectOne('settings', 'id', 1);\n return $row['template'];\n }",
"public function getTemplatefile()\n\t{\n\t\treturn $this->templatefile;\n\t}",
"public function getSettingDefinitionId()\n {\n if (array_key_exists(\"settingDefinitionId\", $this->_propDict)) {\n return $this->_propDict[\"settingDefinitionId\"];\n } else {\n return null;\n }\n }",
"private static function getTemplateId(Smarty_Internal_Template $template)\n {\n reset($template->properties['file_dependency']);\n return '___' . sha1(key($template->properties['file_dependency'])) . '___';\n }",
"public function template() {\n return labelTemplate::where([\n ['CUSTOMER',$this->CUSTOMER],\n ['TMPCODE',$this->TEMPLATE],\n ])->first();\n }",
"public function getTId()\n {\n return $this->t_id;\n }",
"public function get_chosen_template_name($template) {\n\t\treturn self::$template = $template;\n\t}",
"public function uniqueId()\n {\n return $this->contact->id;\n }",
"public function groupNameTemplate($value) {\n return $this->setProperty('groupNameTemplate', $value);\n }",
"public function post_id_to_template_id($post_id)\n\t{\n\t\t$template_id = get_post_meta($post_id, '_fl_builder_template_id', TRUE);\nSyncDebug::log(__METHOD__.'():' . __LINE__ . ' post id=' . $post_id . ' refers to template id ' . $template_id);\n\t\treturn $template_id;\n\t}",
"public function getTaggableId()\n {\n return $this->getId();\n }"
] | [
"0.75858647",
"0.74875396",
"0.744494",
"0.7412313",
"0.6879593",
"0.68282396",
"0.66919166",
"0.66919166",
"0.6633054",
"0.65226686",
"0.6209348",
"0.6196744",
"0.6126126",
"0.6098429",
"0.6038187",
"0.6028008",
"0.6005439",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.59681576",
"0.5954809",
"0.59464544",
"0.593653",
"0.59217554",
"0.591372",
"0.59121144",
"0.5866633",
"0.58279896",
"0.58279896",
"0.5823998",
"0.5815731",
"0.5805394",
"0.5789649",
"0.5787184",
"0.57864463",
"0.5771157",
"0.5764101",
"0.5755131",
"0.5744684",
"0.5738048",
"0.57259315",
"0.5716906",
"0.57050276",
"0.57022965",
"0.5698663",
"0.56186366",
"0.56168604",
"0.5615404",
"0.5596153",
"0.5580612",
"0.5574998",
"0.55644333",
"0.55614847",
"0.55568355",
"0.5543632",
"0.5538597",
"0.5534493",
"0.55307084",
"0.55246556",
"0.5504915",
"0.5498639",
"0.5497863",
"0.54914296",
"0.54883796",
"0.5477367",
"0.5475696",
"0.5454312",
"0.5451821",
"0.5450212",
"0.54445726",
"0.5440675",
"0.54340535",
"0.5421383",
"0.54122543",
"0.5405492",
"0.5392216",
"0.5390663",
"0.53616685",
"0.5354056",
"0.53426725",
"0.534163",
"0.5340743",
"0.53229004",
"0.5295201",
"0.5235932",
"0.52352136",
"0.5234746",
"0.52338636",
"0.5224953",
"0.522098"
] | 0.54137427 | 83 |
Gets the values property value. Collection of namevalue pairs corresponding to the name and defaultValue properties in the referenced directorySettingTemplates object. | public function getValues(): ?array {
$val = $this->getBackingStore()->get('values');
if (is_array($val) || is_null($val)) {
TypeUtils::validateCollectionValues($val, SettingValue::class);
/** @var array<SettingValue>|null $val */
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'values'");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getValues()\n {\n return $this->getVal('value', []);\n }",
"public function getValues()\n\t{\n\t\tif ($this->use_defaults) {\n\t\t\tforeach ($this->form_def['field_groups'] as $gi => $g) {\n\t\t\t\t// Read-only values are input-only\n\t\t\t\tif ($this->readonly || !empty($g['readonly'])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// $this->field_defaults should contain all defaults by now, but maybe some of values are missing.\n\t\t\t\tif (!isset($this->field_defaults[$gi])) {\n\t\t\t\t\t$this->field_defaults[$gi] = array();\n\t\t\t\t\tif (empty($g['collection_dimensions'])) {\n\t\t\t\t\t\t// Values for the group are missing, use defaults from the form definition.\n\t\t\t\t\t\tforeach ($g['fields'] as $fi => $f) {\n\t\t\t\t\t\t\tif (isset($f['default'])) {\n\t\t\t\t\t\t\t\t$this->field_defaults[$gi][$fi] = $f['default'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Empty collection by default.\n\t\t\t\t\t\t$this->field_defaults[$gi] = array();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $this->field_defaults;\n\t\t} else {\n\t\t\tif ($this->field_values === null) {\n\t\t\t\t$this->field_values = array();\n\t\t\t\t//$this->field_values = $this->raw_input;\n\n\t\t\t\tforeach ($this->form_def['field_groups'] as $gi => $g) {\n\t\t\t\t\tif ($this->readonly || !empty($g['readonly'])) {\n\t\t\t\t\t\t// Read-only values are input-only\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (empty($g['collection_dimensions'])) {\n\t\t\t\t\t\t// Simple group\n\t\t\t\t\t\tif (isset($this->raw_input[$gi])) {\n\t\t\t\t\t\t\t$this->getValues_processCollection($this->raw_input[$gi], 0, $gi, $g['fields'],\n\t\t\t\t\t\t\t\t$this->field_values[$gi]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// No data, use empty \"object\"\n\t\t\t\t\t\t\t$this->field_values[$gi] = array();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if ($g['collection_dimensions'] >= 1) {\n\t\t\t\t\t\t// Validate fields for each item in collection.\n\t\t\t\t\t\tif (isset($this->raw_input[$gi])) {\n\t\t\t\t\t\t\t// Non-empty collection, walk it recursively.\n\t\t\t\t\t\t\t$this->getValues_processCollection($this->raw_input[$gi], $g['collection_dimensions'], $gi, $g['fields'],\n\t\t\t\t\t\t\t\t$this->field_values[$gi]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Missing data, it should not happen, but whatever ... use empty collection instead.\n\t\t\t\t\t\t\t$this->field_values[$gi] = array();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->http_method == 'get') {\n\t\t\t\t\t// FIXME: This does not work with collections\n\t\t\t\t\t$this->field_values = array_replace_recursive($this->field_defaults, $this->field_values);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this->field_values;\n\t\t}\n\t}",
"public function getValues(){\n\t\treturn $this->_settings;\n\t}",
"function get_value_list()\n\t{\n\t\treturn $this->value;\n\t}",
"public function getValues() {\n return $this->values;\n }",
"public function getValues() {\n return $this->values;\n }",
"public function getValues()\n {\n return $this->values;\n }",
"public function getValues()\n {\n return $this->values;\n }",
"public function getValues()\n {\n return $this->values;\n }",
"public function getValues()\n {\n return $this->values;\n }",
"public static function getValues()\n {\n return Hash::extract(self::getConstants(), '{s}.value');\n }",
"public function getValues()\n\t\t{\n\t\t\treturn $this->values;\n\t\t}",
"public function getValues(): Collection\n {\n return $this->values;\n }",
"public function getValues()\n\t{\n\t\treturn $this->_values;\n\t}",
"public static function values()\n {\n return self::$values;\n }",
"public function getDefaultValues()\n {\n return $this->defaultValues;\n }",
"public function getDefaultValues()\n {\n return $this->defaultValues;\n }",
"public function getValues()\n {\n return $this->_values;\n }",
"public function getAll(){\n\t\treturn $this->configValues;\n\t}",
"public function getDefaultValues() {\n\t\treturn $this->defaultValues;\n\t}",
"public function getAllValues() {\n\t\t$keys = array_keys($this->defaults);\n\t\t$values = array_map(array($this, 'getAppValue'), $keys);\n\t\t$preparedKeys = array_map(array($this, 'camelCase'), $keys);\n\t\treturn array_combine($preparedKeys, $values);\n\t}",
"public function values()\n {\n return $this->values;\n }",
"public function values()\n {\n return $this->values;\n }",
"public function values()\n {\n return $this->values;\n }",
"public function values()\n {\n return $this->values;\n }",
"public function getValues(): array\n {\n return $this->values;\n }",
"public function getValues()\n {\n $values = array();\n \n foreach ($this->_fields as $name => $info) {\n $values[$name] = (isset($info['value'])) ? $info['value'] : null;\n }\n \n return $values;\n }",
"final public function getValues()\n {\n return $this->values;\n }",
"public function getValues()\n {\n $values = array();\n\n foreach ($this->items as $item) {\n $values[] = $item['value'];\n }\n\n return $values;\n }",
"public function Values()\n {\n return $this->values;\n }",
"public function getValuesList() {\n return $this->_get(3);\n }",
"public static function get_values()\n {\n }",
"public static function get_values()\n {\n }",
"public static function get_values()\n {\n }",
"public function getOptionValuesForRender()\n\t{\n\t\treturn $this->_elementValues;\n\t}",
"public function getValuesList() {\n return $this->_get(2);\n }",
"public static function getValues() \n\t{\n\n\t\t$categories = Category::all();\n\n\t\t$categoryValues = [];\n\n\t\tforeach ($categories as $category) \n\t\t{\n\t\t\t\n\t\t\t$categoryValue = static::getValue( Auth::user()->id, $category->id );\n\n\t\t\t$categoryValues[strtolower( $category->name ) . 'Value'] = $categoryValue;\n\n\t\t}\n\n\t\treturn $categoryValues;\n\n\t}",
"protected function getConfigFormValues()\n {\n $formValues = array(\n 'WI_SPENT_AMOUNT' => Configuration::get('WI_SPENT_AMOUNT', ''),\n 'WI_SPENT_COUPON' => Configuration::get('WI_SPENT_COUPON', ''),\n 'WI_SPENT_ENABLED' => Configuration::get('WI_SPENT_ENABLED', ''),\n 'WI_SPENT_DAYS' => Configuration::get('WI_SPENT_DAYS', ''),\n );\n return $formValues;\n }",
"public function getValues() : array\n {\n return $this->values;\n }",
"public function get_values(){ return $this->values; }",
"public function getRestrictedSetValues()\n {\n if ($this->_fields['RestrictedSetValues']['FieldValue'] == null)\n {\n $this->_fields['RestrictedSetValues']['FieldValue'] = array();\n }\n return $this->_fields['RestrictedSetValues']['FieldValue'];\n }",
"public function getValues()\n {\n // Load the config data\n $output = [];\n $configData = $this->getConfigFieldsList();\n\n // Update the array with database values\n foreach ($configData as $group => $fields) {\n $output[$group] = [];\n foreach ($fields as $key => $value) {\n $v = $this->value($group . '/' . $key);\n $output[$group][$key] = $this->toBooleanFilter($v);\n }\n }\n\n return $output;\n }",
"protected function getConfigFormValues()\n {\n $formValues = array(\n 'WI_WEATHER_ENABLED' => Configuration::get('WI_WEATHER_ENABLED', ''),\n 'WI_WEATHER_PROVIDER' => Configuration::get('WI_WEATHER_PROVIDER', ''),\n 'WI_WEATHER_KEY' => Configuration::get('WI_WEATHER_KEY', ''),\n 'WI_WEATHER_CITY' => Configuration::get('WI_WEATHER_CITY', ''),\n );\n return $formValues;\n }",
"public function get_values() {\n\t\t$values = [];\n\n\t\tforeach ( $this->fields as $field ) {\n\t\t\t$values[$field->name] = $field->get_value();\n\t\t}\n\n\t\treturn $values;\n\t}",
"public static function getConfigValuesName() {\n return self::$configValuesName;\n }",
"public function getConfigurationValues() {}",
"public function getConfigurationValues() {}",
"public function getConfigurationValues() {}",
"public function getConfigurationValues() {}",
"public function getAllValue() {\n\t\t$template = $this->get('field')->getFieldParams();\n\t\t$adb = PearDatabase::getInstance();\n\t\t$values = array();\n\t\t$result = $adb->pquery('SELECT * FROM vtiger_trees_templates_data WHERE templateid = ?', array($template));\n\t\tfor($i = 0; $i < $adb->num_rows($result); $i++){\n\t\t\t$tree = $adb->query_result_raw($result, $i, 'tree');\n\t\t\t$parent = '';\n\t\t\t$parentName = '';\n\t\t\tif($adb->query_result_raw($result, $i, 'depth') > 0){\n\t\t\t\t$parenttrre = $adb->query_result_raw($result, $i, 'parenttrre');\n\t\t\t\t$cut = strlen('::'.$tree);\n\t\t\t\t$parenttrre = substr($parenttrre, 0, - $cut);\n\t\t\t\t$pieces = explode('::', $parenttrre);\n\t\t\t\t$parent = end($pieces);\n\t\t\t\t$result3 = $adb->pquery(\"SELECT name FROM vtiger_trees_templates_data WHERE templateid = ? AND tree = ?\", array($template, $parent));\n\t\t\t\t$parentName = $adb->query_result_raw($result3, 0, 'name');\n\t\t\t\t$parentName = '(' . vtranslate($parentName, $module) . ') ';\n\t\t\t}\n\t\t\t$values[$adb->query_result_raw($result, $i, 'tree')] = array($parentName.vtranslate($adb->query_result_raw($result, $i, 'name'), $this->get('field')->getModuleName()),$parent);\n\t\t}\n\t\treturn $values;\n\t}",
"public function values(): array\n {\n return $this->values;\n }",
"public function getConfigFieldsValues()\n {\n $id_shop = Shop::getContextShopID(true);\n $id_shop_group = Shop::getContextShopGroupID(true);\n\n $fields_values = array();\n foreach ($this->fields_form as $k => $f) {\n foreach ($f['form']['input'] as $i => $input) {\n if (isset($input['ignore']) && $input['ignore'] == true) {\n continue;\n }\n\n if (isset($input['lang']) && $input['lang'] == true) {\n foreach (Language::getLanguages(false) as $lang) {\n $values = Tools::getValue($input['name'].'_'.$lang['id_lang'], (Configuration::hasKey($input['name'], $lang['id_lang']) ? Configuration::get($input['name'], $lang['id_lang'], (int)$id_shop_group, (int)$id_shop) : $input['default']));\n $fields_values[$input['name']][$lang['id_lang']] = $values;\n }\n } else {\n if ($input['type'] == 'checkbox' && isset($input['values'])) {\n $input['name'] = str_replace(array('[]'), array(''), $input['name']);\n\n $values = (Configuration::hasKey($input['name'], null, (int)$id_shop_group, (int)$id_shop) ? Tools::jsonDecode(Configuration::get($input['name']), true) : $input['default']);\n\n if (is_array($values)) {\n foreach ($input['values']['query'] as $id_cms => $val) {\n if (in_array($id_cms, $values)) {\n $fields_values[$input['name'].'[]_'.$id_cms] = $id_cms;\n }\n }\n }\n } else {\n $values = Tools::getValue($input['name'], (Configuration::hasKey($input['name'], null, (int)$id_shop_group, (int)$id_shop) ? Configuration::get($input['name']) : $input['default']));\n $fields_values[$input['name']] = $values;\n }\n }\n }\n }\n\n $this->assignCustomConfigs($fields_values);\n\n return $fields_values;\n }",
"static function getGeneralSettingsValues(){\r\n\t\t\r\n\t\t$arrValues = get_option('revslider-global-settings', '');\r\n\t\t\r\n\t\t$arrValues = maybe_unserialize($arrValues);\r\n\r\n\t\treturn($arrValues);\r\n\t}",
"public function getValues () {\n\n return array_values($this->values);\n\n }",
"public function getValuesList(){\n return $this->_get(1);\n }",
"public function getAll()\n {\n return $this->values;\n }",
"public function getAll()\n {\n return $this->values;\n }",
"public function getSetValues()\n {\n return $this->set_values;\n }",
"protected function _getDefaultValues()\n {\n return array(\n );\n }",
"public function getPushoverTemplateDropdownValues()\n\t{\n\t\t$templates = [];\n\n\t\t$finder = new FileFinder();\n\t\t$finder->setOption('name_regex', '/^.*\\.ss$/');\n\n $parent = $this->getFormParent();\n\t\t\n if (!$parent) {\n return [];\n }\n\n $pushoverTemplateDirectory = $parent->config()->get('pushover_template_directory');\n $templateDirectory = ModuleResourceLoader::resourcePath($pushoverTemplateDirectory);\n\n if (!$templateDirectory) {\n\t\t\treturn [];\n }\n\t\t\n $found = $finder->find(BASE_PATH . DIRECTORY_SEPARATOR . $templateDirectory);\n\n\t\tforeach ($found as $key => $value) {\n\t\t\t$template = pathinfo($value);\n $absoluteFilename = $template['dirname'] . DIRECTORY_SEPARATOR . $template['filename'];\n\n // Optionally remove vendor/ path prefixes\n $resource = ModuleResourceLoader::singleton()->resolveResource($templateDirectory);\n if ($resource instanceof ModuleResource && $resource->getModule()) {\n $prefixToStrip = $resource->getModule()->getPath();\n } else {\n $prefixToStrip = BASE_PATH;\n }\n $templatePath = substr($absoluteFilename, strlen($prefixToStrip) + 1);\n\n // Optionally remove \"templates/\" prefixes\n if (preg_match('/(?<=templates\\/).*$/', $templatePath, $matches)) {\n $templatePath = $matches[0];\n }\n\n $templates[$templatePath] = $template['filename'];\n }\n return $templates;\n\t}",
"public function getValues() {}",
"public function getValues() {}",
"public function getOptionValues()\n {\n\n $values = $this->getData('option_values');\n if (is_null($values)) {\n\n $option_data = Mage::getResourceModel('joy_optionimage/attribute_option_image_collection')\n ->setAttributeFilter(Mage::registry('attribute_id'));\n $values = array();\n $option_data = Mage::getResourceModel('eav/entity_attribute_option_collection')\n ->setAttributeFilter(Mage::registry('attribute_id'))\n ->setPositionOrder('desc', true)\n ->toOptionArray();\n\n // restructure option_data\n $data = array();\n foreach($option_data as $v) {\n $data[] = $v['value'];\n }\n unset($option_data);\n $this->prepareAttributeOptionImageData($data);\n $helper = Mage::helper('core');\n foreach ($data as $v) {\n $value = array();\n $value['id'] = $v;\n $value['data'] = array();\n foreach ($this->getStores() as $store) {\n $optionImageData = $this->getOptionImageData($v,$store->getId());\n $storeValues = $this->getStoreOptionValues($store->getId());\n $value['data'][$store->getId()]['storecode'] = $store->getCode();\n $value['data'][$store->getId()]['image'] = isset($optionImageData['image']) ? $optionImageData['image'] : '' ;\n $value['data'][$store->getId()]['label'] = isset($storeValues[$v])\n ? $helper->escapeHtml($storeValues[$v]) : '';\n }\n $value['fieldset_id'] = $store->getId().\"-\".$v;\n\n $values[]= new Varien_Object($value);\n }\n $this->setData('option_values', $values);\n }\n return $values;\n }",
"public function values(): array\n\t{\n\t\treturn $this->fields()->values()->all();\n\t}",
"public static function getValuesName() {\n return self::$valuesName;\n }",
"public function _getAllowedValueList()\n {\n return self::$valueList;\n }",
"public function getValueSet()\n {\n return $this->valueSet;\n }",
"function getValues()\n {\n return $this->type->getValues();\n }",
"public function valueOf() {\n return $this->_values;\n }",
"protected function getSettingArray()\n {\n return $this->container->get($this->getSettingKey());\n }",
"protected function getConfigFormValues()\n {\n return array(\n 'MF_TITLE' => Configuration::get('MF_TITLE', 'Our Favourite Brands'),\n 'MF_DESCRIPTION' => Configuration::get('MF_DESCRIPTION', 'Browse our favourite brands'),\n 'MF_MAN_NUMBER' => Configuration::get('MF_MAN_NUMBER', 0),\n 'MF_PER_ROW_DESKTOP' => Configuration::get('MF_PER_ROW_DESKTOP', 0),\n 'MF_PER_ROW_TABLET' => Configuration::get('MF_PER_ROW_TABLET', 0),\n 'MF_PER_ROW_MOBILE' => Configuration::get('MF_PER_ROW_MOBILE', 0),\n 'MF_MAN_ORDER' => Configuration::get('MF_MAN_ORDER', 'name_asc'),\n 'MF_SHOW_MAN_NAME' => Configuration::get('MF_SHOW_MAN_NAME', 0),\n );\n }",
"public function values() {\n\t\treturn array_values($this->_value);\n\t}",
"public function getValues(): array\n {\n return array_map(function ($model) {\n return $model->value;\n }, $this->values);\n }",
"public function getValues()\n {\n if (array_key_exists(\"values\", $this->_propDict)) {\n if (is_a($this->_propDict[\"values\"], \"\\Beta\\Microsoft\\Graph\\Model\\UserExperienceAnalyticsInsightValue\") || is_null($this->_propDict[\"values\"])) {\n return $this->_propDict[\"values\"];\n } else {\n $this->_propDict[\"values\"] = new UserExperienceAnalyticsInsightValue($this->_propDict[\"values\"]);\n return $this->_propDict[\"values\"];\n }\n }\n return null;\n }",
"public function all_property_values()\n {\n return $this->property_values();\n }",
"public function getValueSelectOptions()\n {\n if (!$this->hasData('value_select_options')) {\n switch ($this->getAttribute()) {\n case 'country_id':\n $options = $this->_directoryCountry->toOptionArray(true);\n break;\n\n case 'region_id':\n $options = $this->_directoryAllregion->toOptionArray(true);\n break;\n\n default:\n $options = [];\n }\n $this->setData('value_select_options', $options);\n }\n\n return $this->getData('value_select_options');\n }",
"function getConfigurationValues() ;",
"static public function getAll()\r\n {\r\n return self::$values;\r\n }",
"public function values($skeleton = null)\n {\n $skeleton = $skeleton ?? $this->structure();\n foreach ($skeleton as $k => $v) {\n if (isset($v['children'])) {\n $skeleton[$k] = $this->values($v['children']);\n } else {\n $skeleton[$k] = $v['value'] ?? null;\n }\n }\n return $skeleton;\n }",
"public function getParameterValues()\n {\n $values = array();\n\n foreach ($this->parameters as $name => $parameter) {\n if (!$parameter->isRequired()) {\n $values[$name] = $parameter->getDefaultValue();\n }\n }\n\n return $values;\n }",
"public function getValuesForForm()\n {\n $collection = $this->getCollection();\n $options = [];\n if ($collection->getSize() > 0) {\n foreach ($collection as $role) {\n $options[] = ['value' => $role->getId(), 'label' => $role->getData('display_name')];\n }\n }\n return $options;\n }",
"protected function getConfigFormValuesDataFeed()\n {\n return [\n 'DF_GS_DISPLAY_PRICES' => Configuration::get('DF_GS_DISPLAY_PRICES'),\n 'DF_GS_PRICES_USE_TAX' => Configuration::get('DF_GS_PRICES_USE_TAX'),\n 'DF_FEED_FULL_PATH' => Configuration::get('DF_FEED_FULL_PATH'),\n 'DF_SHOW_PRODUCT_VARIATIONS' => Configuration::get('DF_SHOW_PRODUCT_VARIATIONS'),\n 'DF_GROUP_ATTRIBUTES_SHOWN[]' => explode(',', Configuration::get('DF_GROUP_ATTRIBUTES_SHOWN')),\n 'DF_SHOW_PRODUCT_FEATURES' => Configuration::get('DF_SHOW_PRODUCT_FEATURES'),\n 'DF_FEATURES_SHOWN[]' => explode(',', Configuration::get('DF_FEATURES_SHOWN')),\n 'DF_GS_IMAGE_SIZE' => Configuration::get('DF_GS_IMAGE_SIZE'),\n 'DF_UPDATE_ON_SAVE_DELAY' => Configuration::get('DF_UPDATE_ON_SAVE_DELAY'),\n ];\n }",
"public function getValues()\r\n {\r\n $values = $this->getValue();\r\n\r\n if (!is_array($values)) {\r\n $values = explode(',', $values);\r\n }\r\n\r\n if (!sizeof($values)) {\r\n return [];\r\n }\r\n\r\n $collection = $this->collectionFactory->create()\r\n ->addIdFilter($values);\r\n\r\n $options = [];\r\n foreach ($collection as $tag) {\r\n $options[] = $tag->getId();\r\n }\r\n\r\n return $options;\r\n }",
"public function getValues(): ?array {\n $val = $this->getBackingStore()->get('values');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n /** @var array<string>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'values'\");\n }",
"public function getValues();",
"protected function getConfigFormValues()\n {\n return array(\n 'APISFACT_PRESTASHOP_TOKEN' => Configuration::get('APISFACT_PRESTASHOP_TOKEN', true),\n 'APISFACT_PRESTASHOP_SERIEF' => Configuration::get('APISFACT_PRESTASHOP_SERIEF', true),\n 'APISFACT_PRESTASHOP_NUMEROF' => Configuration::get('APISFACT_PRESTASHOP_NUMEROF', true),\n 'APISFACT_PRESTASHOP_SERIEB' => Configuration::get('APISFACT_PRESTASHOP_SERIEB', true),\n 'APISFACT_PRESTASHOP_NUMEROB' => Configuration::get('APISFACT_PRESTASHOP_NUMEROB', true)\n );\n }",
"public function values($value);",
"public function getResourceSettingsValues(array $settings);",
"public function getValues()\n {\n $values = [];\n foreach ($this->findScenario() as $name) {\n $values[$name] = $this->$name;\n }\n return $values;\n }",
"public function getVal()\n {\n return $this->val_arr;\n }",
"public function providerFieldValues()\n {\n return [\n ['non_existent_field', []],\n ['empty_field', []],\n ['empty_field_2', []],\n [\n 'acf_value_field',\n [\n ['test-1' => 'test 1'],\n ['test-1' => 'test 2'],\n ['test-1' => 'test 3'],\n ],\n ],\n [\n 'acf_option_field',\n [\n [\n 'label' => 'test 1',\n 'slug' => 'test-1',\n ],\n [\n 'label' => 'test 2',\n 'slug' => 'test-2',\n ],\n ],\n ],\n ];\n }",
"public function GetValues() {\n\n $this->Values= array();\n // buffer is cleared to detect \"successfull\" controls.\n foreach($this->Controls as $Control) {\n if ($Control->IsValidScenario()) {\n $Control->ExportValue();\n }\n }\n return $this->Values;\n }",
"public function getDefaultValues()\n {\n $values = [];\n\n return $values;\n }",
"protected function convertSettingsValuesCollectionToArray(SettingValuesCollection $valuesCollection, string $prefix): array\n {\n $flattenArray = [];\n $prefix = rtrim($prefix, '.').'.';\n $prefixLen = strlen($prefix);\n foreach ($valuesCollection as $value) {\n if (substr($value->getId(), 0, $prefixLen) === $prefix) {\n $flattenArray[$value->getId()] = $value->getValue();\n }\n }\n\n return $this->expandSettingsArray($flattenArray, $prefix);\n }",
"public function all()\n {\n return $this->values;\n }",
"public function getValues()\n {\n $values = [];\n\n foreach ($this->options['groups'] as $fieldset) {\n foreach ($fieldset['elements'] as $element_id => $element_info) {\n if (!empty($element_info[1]['belongsTo'])) {\n $group = $element_info[1]['belongsTo'];\n $value = $this->getValue($group . '_' . $element_id);\n\n if ($value !== null) {\n $values[$group][$element_id] = $value;\n }\n } else {\n $value = $this->getValue($element_id);\n\n if ($value !== null) {\n $values[$element_id] = $value;\n }\n }\n }\n }\n\n return $values;\n }",
"function getOptionValues() {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookuptypevalue as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY optiontext \";\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}",
"public function getTagsValues() {}",
"public function getTagsValues() {}",
"public function getTagsValues() {}"
] | [
"0.6290181",
"0.6186065",
"0.60677016",
"0.6057228",
"0.590492",
"0.590492",
"0.5885257",
"0.5885257",
"0.5885257",
"0.5885257",
"0.58371663",
"0.5820532",
"0.5780576",
"0.57716745",
"0.5770234",
"0.57598674",
"0.57598674",
"0.5749913",
"0.57398796",
"0.5722545",
"0.5697095",
"0.5669889",
"0.5669889",
"0.5669889",
"0.5669889",
"0.5637438",
"0.56359345",
"0.5625267",
"0.562307",
"0.56228346",
"0.5588022",
"0.5580436",
"0.5580436",
"0.5580436",
"0.5570996",
"0.5567651",
"0.55539036",
"0.5546344",
"0.55411637",
"0.5524067",
"0.5517022",
"0.5501464",
"0.5457495",
"0.5434876",
"0.5424839",
"0.54162496",
"0.54162496",
"0.54162496",
"0.5415998",
"0.5414515",
"0.54131097",
"0.53612983",
"0.5330055",
"0.53162104",
"0.52985746",
"0.527623",
"0.527623",
"0.5274442",
"0.5263602",
"0.5245343",
"0.5243113",
"0.5243113",
"0.5239007",
"0.5227316",
"0.52268",
"0.5225493",
"0.52075434",
"0.519097",
"0.51870966",
"0.5180037",
"0.51738137",
"0.5153771",
"0.51450574",
"0.514346",
"0.51292694",
"0.5114939",
"0.51097393",
"0.5107881",
"0.5101003",
"0.51004493",
"0.5098054",
"0.5081448",
"0.50646615",
"0.5057138",
"0.50349814",
"0.5028",
"0.502473",
"0.5023332",
"0.5015669",
"0.50149465",
"0.50145036",
"0.5010638",
"0.49989572",
"0.49955156",
"0.49873656",
"0.49761418",
"0.4973813",
"0.4959073",
"0.4959073",
"0.4959073"
] | 0.58919424 | 6 |
Serializes information the current object | public function serialize(SerializationWriter $writer): void {
parent::serialize($writer);
$writer->writeStringValue('displayName', $this->getDisplayName());
$writer->writeStringValue('templateId', $this->getTemplateId());
$writer->writeCollectionOfObjectValues('values', $this->getValues());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function SerializeObject () {\n return serialize ($this);\n }",
"public function serialize()\n {\n // TODO: Implement serialize() method.\n }",
"public function serialize()\n {\n return serialize(get_object_vars($this));\n }",
"public function serialize()\n {\n return serialize(get_object_vars($this));\n }",
"public function serialize()\n {\n return serialize(get_object_vars($this));\n }",
"public function serializar() {\n\t return json_encode(get_object_vars($this), JSON_FORCE_OBJECT);\n\t\t}",
"public function serializar() {\n\t return json_encode(get_object_vars($this), JSON_FORCE_OBJECT);\n\t\t}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function serialize() {}",
"public function toString() : void\n {\n $out = serialize($this);\n \n }",
"public function __toString()\n\t{\n\t\treturn $this->serialize();\n\t}",
"public function serialize()\n {\n }",
"public function serialize()\n {\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Service\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Service\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Finance\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Finance\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Finance\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Finance\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\MuhimbiPDFOnline\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\MuhimbiPDFOnline\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\ChrisHemmings\\Electio\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\ChrisHemmings\\Electio\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString() {\n\t\tif (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n\t\t\treturn json_encode(\\Wallee\\Sdk\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n\t\t}\n\n\t\treturn json_encode(\\Wallee\\Sdk\\ObjectSerializer::sanitizeForSerialization($this));\n\t}",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Sales\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Sales\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Voximplant\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Voximplant\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Voximplant\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Voximplant\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function serialize()\n {\n return serialize(array(\n \"id\"=>$this->getId()\n ));\n }",
"public function serialize();",
"public function serialize();",
"public function serialize();",
"public function serialize() {\r\n return json_encode($this);\r\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Autodesk\\Forge\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Autodesk\\Forge\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Marketing\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Spinen\\ConnectWise\\Clients\\Marketing\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function serialize()\n {\n return json_encode($this);\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Tweak\\Api\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Tweak\\Api\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Tweak\\Api\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Tweak\\Api\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Ory\\Hydra\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Ory\\Hydra\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n // return json_encode(\n // ObjectSerializer::sanitizeForSerialization($this),\n // JSON_PRETTY_PRINT\n // );\n //}\n\n return json_encode(ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\SquareConnect\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\SquareConnect\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) {\n return json_encode(\\Infoplus\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n } else {\n return json_encode(\\Infoplus\\ObjectSerializer::sanitizeForSerialization($this));\n }\n }",
"public abstract function serialize();",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Secuconnect\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Secuconnect\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Secuconnect\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Secuconnect\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Yext\\Client\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Yext\\Client\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n\t{\n\t\treturn $this->dump();\n\t}",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\UniversityOfAdelaide\\OpenShift\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\UniversityOfAdelaide\\OpenShift\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\UniversityOfAdelaide\\OpenShift\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\UniversityOfAdelaide\\OpenShift\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\BumbalClient\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\BumbalClient\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function serialize() {\n\t\t$aInformation = array();\n\t\tforeach (self::$s_aInfoKeys as $sKey) {\n\t\t\t$aInformation[$sKey] = $this[$sKey];\n\t\t}\n\n\t\treturn serialize($aInformation);\n\t}",
"public function __toString()\n {\n if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print\n return json_encode(\\Abulia\\TflUnified\\Swagger\\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);\n }\n\n return json_encode(\\Abulia\\TflUnified\\Swagger\\ObjectSerializer::sanitizeForSerialization($this));\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }",
"public function __toString()\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }"
] | [
"0.775681",
"0.7567243",
"0.7461478",
"0.7461478",
"0.7461478",
"0.74493605",
"0.74493605",
"0.73959774",
"0.73959774",
"0.73959774",
"0.73959774",
"0.73959774",
"0.73959774",
"0.7395834",
"0.7395834",
"0.7388387",
"0.73002976",
"0.7277384",
"0.7277384",
"0.7209889",
"0.71924263",
"0.71924263",
"0.71901965",
"0.7180773",
"0.7174875",
"0.71349573",
"0.71287656",
"0.71287656",
"0.7124778",
"0.7123552",
"0.7123552",
"0.7123552",
"0.712044",
"0.71108997",
"0.7110675",
"0.7106015",
"0.7100532",
"0.7100532",
"0.70994776",
"0.7088156",
"0.7085282",
"0.70804965",
"0.7076783",
"0.7074131",
"0.7074131",
"0.7071547",
"0.70693123",
"0.70638466",
"0.70638466",
"0.70635086",
"0.7060023",
"0.70561355",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974",
"0.7052974"
] | 0.0 | -1 |
Sets the displayName property value. Display name of this group of settings, which comes from the associated template. Readonly. | public function setDisplayName(?string $value): void {
$this->getBackingStore()->set('displayName', $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setSettingDisplayName($val)\n {\n $this->_propDict[\"settingDisplayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($val)\n {\n $this->_propDict[\"displayName\"] = $val;\n return $this;\n }",
"public function setDisplayName($value)\n {\n return $this->setProperty(\"DisplayName\", $value, true);\n }",
"public function setDisplayName(?string $displayName): self\n {\n $this->initialized['displayName'] = true;\n $this->displayName = $displayName;\n\n return $this;\n }",
"public function setDisplayNameAttribute($value){\n $this->attributes['display_name']=$value?:$this->name();\n }",
"public function setDisplayName($name)\n {\n $this->_displayName = $name;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->DisplayName = $var;\n\n return $this;\n }",
"function setDisplayName($name){\n\t\t$this->display_name =$name;\n\t}",
"public function setDisplayName($value)\n {\n return $this->set('DisplayName', $value);\n }",
"public function setDisplayName($value)\n {\n return $this->set('DisplayName', $value);\n }",
"public function setDisplayName($value)\n {\n return $this->set('DisplayName', $value);\n }",
"public function setDisplayName($value)\n {\n if ($value === true) {\n $value = static::DISPLAY_NAME_YES;\n } elseif ($value === false) {\n $value = static::DISPLAY_NAME_NO;\n }\n\n $this->setParameter('displayName', $value);\n }",
"public function setDisplayNameAttribute($value)\n {\n $this->attributes['display_name'] = is_null($value) ? $this->attributes['name'] : '';\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($var)\n {\n GPBUtil::checkString($var, True);\n $this->display_name = $var;\n\n return $this;\n }",
"public function setDisplayName($displayName = null)\n {\n // validation for constraint: string\n if (!is_null($displayName) && !is_string($displayName)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value, please provide a string, \"%s\" given', gettype($displayName)), __LINE__);\n }\n if (is_null($displayName) || (is_array($displayName) && empty($displayName))) {\n unset($this->DisplayName);\n } else {\n $this->DisplayName = $displayName;\n }\n return $this;\n }",
"public function setDisplayName(?string $displayName): self\n {\n $this->displayName = $displayName;\n\n return $this;\n }",
"public function setDisplayName($displayName)\n {\n $this->displayName = $displayName;\n return $this;\n }",
"public function setDisplayName($displayName)\n {\n $this->displayName = $displayName;\n return $this;\n }",
"public function canSetDisplayName();",
"public function setManagementTemplateCollectionDisplayName(?string $value): void {\n $this->getBackingStore()->set('managementTemplateCollectionDisplayName', $value);\n }",
"public function setDeviceDisplayName($val)\n {\n $this->_propDict[\"deviceDisplayName\"] = $val;\n return $this;\n }",
"public function setResourceDisplayName(?string $value): void {\n $this->getBackingStore()->set('resourceDisplayName', $value);\n }",
"public function setDisplayName($username, $displayName) {\n\t\t$currentUser = $this->userSession->getUser();\n\n\t\tif ($username === null) {\n\t\t\t$username = $currentUser->getUID();\n\t\t}\n\n\t\t$user = $this->userManager->get($username);\n\t\t'@phan-var \\OC\\Group\\Manager $this->groupManager';\n\n\t\tif ($user === null ||\n\t\t\t!$user->canChangeDisplayName() ||\n\t\t\t(\n\t\t\t\t!$this->groupManager->isAdmin($currentUser->getUID()) &&\n\t\t\t\t!$this->groupManager->getSubAdmin()->isUserAccessible($currentUser, $user) &&\n\t\t\t\t$currentUser->getUID() !== $user->getUID())\n\t\t\t) {\n\t\t\treturn new DataResponse([\n\t\t\t\t'status' => 'error',\n\t\t\t\t'data' => [\n\t\t\t\t\t'message' => $this->l10n->t('Authentication error'),\n\t\t\t\t],\n\t\t\t]);\n\t\t}\n\n\t\tif ($user->setDisplayName($displayName)) {\n\t\t\treturn new DataResponse([\n\t\t\t\t'status' => 'success',\n\t\t\t\t'data' => [\n\t\t\t\t\t'message' => $this->l10n->t('Your full name has been changed.'),\n\t\t\t\t\t'username' => $username,\n\t\t\t\t\t'displayName' => $displayName,\n\t\t\t\t],\n\t\t\t]);\n\t\t} else {\n\t\t\treturn new DataResponse([\n\t\t\t\t'status' => 'error',\n\t\t\t\t'data' => [\n\t\t\t\t\t'message' => $this->l10n->t('Unable to change full name'),\n\t\t\t\t\t'displayName' => $user->getDisplayName(),\n\t\t\t\t],\n\t\t\t]);\n\t\t}\n\t}",
"public function setDisplayname($displayname)\n\t{\n\t\t$this->displayname = $displayname;\n\t}",
"public function canSetDisplayName()\n {\n return $this->canSetDisplayName;\n }",
"public function setOfferDisplayName(?string $value): void {\n $this->getBackingStore()->set('offerDisplayName', $value);\n }",
"public function getSettingDisplayName()\n {\n if (array_key_exists(\"settingDisplayName\", $this->_propDict)) {\n return $this->_propDict[\"settingDisplayName\"];\n } else {\n return null;\n }\n }",
"public function setSkuDisplayName(?string $value): void {\n $this->getBackingStore()->set('skuDisplayName', $value);\n }",
"public function setTargetDisplayName($val)\n {\n $this->_propDict[\"targetDisplayName\"] = $val;\n return $this;\n }",
"public function setUserDisplayName(?string $value): void {\n $this->getBackingStore()->set('userDisplayName', $value);\n }",
"public function setUserDisplayName(?string $value): void {\n $this->getBackingStore()->set('userDisplayName', $value);\n }",
"public function setDeviceDisplayName(?string $value): void {\n $this->getBackingStore()->set('deviceDisplayName', $value);\n }",
"public function getDisplayName(): string\n {\n return $this->displayName;\n }",
"public function setDisplayName($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->display_name !== $v) {\n\t\t\t$this->display_name = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::DISPLAY_NAME;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setPrincipalDisplayName(?string $value): void {\n $this->getBackingStore()->set('principalDisplayName', $value);\n }",
"public function getDisplayName()\n {\n return $this['display_name'];\n }",
"public function RefreshDisplayName() {\n\t\t\tif ($this->blnDisplayRealNameFlag)\n\t\t\t\t$this->strDisplayName = $this->strFirstName . ' ' . $this->strLastName;\n\t\t\telse\n\t\t\t\t$this->strDisplayName = $this->strUsername;\n\t\t\t$this->Save();\n\t\t}",
"public function getDisplayName()\n {\n return $this->DisplayName;\n }",
"public function setAssignmentFilterDisplayName(?string $value): void {\n $this->getBackingStore()->set('assignmentFilterDisplayName', $value);\n }",
"public function setTenantDisplayName($val)\n {\n $this->_propDict[\"tenantDisplayName\"] = $val;\n return $this;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }",
"public function getDisplayName()\n {\n return $this->display_name;\n }"
] | [
"0.68555117",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.683709",
"0.6738285",
"0.67348856",
"0.6733557",
"0.6722358",
"0.6696637",
"0.66764396",
"0.6670678",
"0.667033",
"0.667033",
"0.6668478",
"0.6598839",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.65623677",
"0.6488548",
"0.6376481",
"0.63465923",
"0.63465923",
"0.6225167",
"0.61936",
"0.5944948",
"0.5938307",
"0.58673066",
"0.5842006",
"0.57975084",
"0.5790913",
"0.57829463",
"0.5766608",
"0.57367575",
"0.57354003",
"0.57354003",
"0.5699082",
"0.5648688",
"0.5646982",
"0.56063724",
"0.55838084",
"0.5578961",
"0.5520642",
"0.5519337",
"0.5488154",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465",
"0.5480465"
] | 0.6617504 | 41 |
Sets the templateId property value. Unique identifier for the template used to create this group of settings. Readonly. | public function setTemplateId(?string $value): void {
$this->getBackingStore()->set('templateId', $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setTemplateId(string $templateId) : self {\n $this->templateId = $templateId;\n return $this;\n }",
"public function setTemplateId($value);",
"public function templateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('template', $value);\n }",
"public function templateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('template', $value);\n }",
"public function setTemplateId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->template_id !== $v) {\n\t\t\t$this->template_id = $v;\n\t\t\t$this->modifiedColumns[] = CampaignPeer::TEMPLATE_ID;\n\t\t}\n\n\t\tif ($this->aCampaignTemplate !== null && $this->aCampaignTemplate->getId() !== $v) {\n\t\t\t$this->aCampaignTemplate = null;\n\t\t}\n\n\t\treturn $this;\n\t}",
"function jet_woo_builder_modify_template_id( $template_id ) {\n\t\t\treturn apply_filters( 'wpml_object_id', $template_id, jet_woo_builder_post_type()->slug(), true );\n\t\t}",
"public function setTemplate(string $template_name);",
"function set_template_by_Id($template_id)\n {\n $parameter_array = array();\n \n array_push($parameter_array, array(\n 'and',\n 'id',\n '=',\n $template_id\n ));\n \n $output = $this->result('i', $parameter_array);\n $row = mysqli_fetch_assoc($output);\n \n $this->id = $row['id'];\n $this->name = $row['name'];\n $this->description = $row['description'];\n $this->source = $row['source'];\n $this->phases = $row['phases'];\n $this->output_source = $row['output_source'];\n }",
"public function setSettingInstanceTemplateId($val)\n {\n $this->_propDict[\"settingInstanceTemplateId\"] = $val;\n return $this;\n }",
"function setTemplate($value) {\n $this->template = $value;\n }",
"public function setTemplate(string $template);",
"public function groupNameTemplateId($value) {\n $value = new Template($value);\n\n return $this->setProperty('groupNameTemplate', $value);\n }",
"public function setTemplate($id, $template){\n $block = $this->layout->getOrCreate($id);\n if ($block) {\n $block->setTemplate($template);\n }\n return $this;\n }",
"public function setSettingsId($value)\n {\n $this->_settingsId = $value;\n }",
"public function ARIATemplateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('ARIATemplate', $value);\n }",
"function set_template($template_name) {\n\t\t$this->template = $template_name;\n\t}",
"public function get_template_id() \n {\n return $this->template_id;\n }",
"public function setTemplate($value);",
"private function set_utemplateid($utemplateid) {\n $this->utemplateid = $utemplateid;\n }",
"public function setTemplate($template);",
"public function setTemplate($template);",
"function set_template($group) {\n if (isset($this->config[$group])) {\n $this->template = $this->config[$group];\n } else {\n show_error('The \"' . $group . '\" template group does not exist. Provide a valid group name or add the group first.');\n }\n $this->initialize($this->template);\n }",
"public function setTemplate($template)\n {\n $this->template = $template;\n }",
"public function setTemplate($template)\n {\n $this->template = $template;\n }",
"function setTemplate($template) {\n $this->template = $template;\n }",
"public static function setTemplate($name) {\n $settings = self::getSettings();\n \n $settings->template = $name;\n $settings->save();\n }",
"public function set_template_registration_id($template_registration_id)\n {\n $this->set_default_property(self::PROPERTY_TEMPLATE_REGISTRATION_ID, $template_registration_id);\n }",
"public function setTemplate($template)\n {\n if (!($template instanceof KTemplateAbstract)) {\n if (is_string($template) && strpos($template, '.') === false) {\n $identifier = clone $this->getIdentifier();\n $identifier->path = array('template');\n $identifier->name = $template;\n } else {\n $identifier = $this->getIdentifier($template);\n }\n\n if ($identifier->path[0] != 'template') {\n throw new KViewException('Identifier: '.$identifier.' is not a template identifier');\n }\n\n register_default(array('identifier' => $identifier, 'prefix' => $this, 'name' => array('Template'.ucfirst($this->getName()), 'TemplateDefault')));\n\n $template = $identifier;\n }\n\n $this->_template = $template;\n\n return $this;\n }",
"public function setTemplateName($templateName = null)\n {\n // validation for constraint: string\n if (!is_null($templateName) && !is_string($templateName)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($templateName, true), gettype($templateName)), __LINE__);\n }\n if (is_null($templateName) || (is_array($templateName) && empty($templateName))) {\n unset($this->TemplateName);\n } else {\n $this->TemplateName = $templateName;\n }\n return $this;\n }",
"public function setTemplate($templateName)\n {\n \n $template = APPLICATION_PATH . \"/layouts/$templateName.phtml\";\n if ( !file_exists($template) ) {\n throw new InvalidArgumentException(\"Couldn't find template '$template'\");\n }\n $this->_template = $template;\n }",
"public static function setTemplate($template)\n {\n self::$template = $template;\n }",
"public function setTemplateName($sTemplate)\n {\n $this->_sThisTemplate = $sTemplate;\n }",
"public function getTemplateId() : string {\n return $this->templateId;\n }",
"public function setApplicationTemplateId($val)\n {\n $this->_propDict[\"applicationTemplateId\"] = $val;\n return $this;\n }",
"public function getTemplateId()\n\t{\n\t\treturn $this->template_id;\n\t}",
"public function setTemplate($val){ return $this->setField('template',$val); }",
"public function setTemplateType($value);",
"protected function setLayoutTemplate($template)\r\n {\r\n $this->layoutTemplate = $template;\r\n }",
"public function setTemplateFile($templateFile)\r\n {\r\n $this->templateFile = $templateFile;\r\n }",
"public function setManagementTemplateCollectionId(?string $value): void {\n $this->getBackingStore()->set('managementTemplateCollectionId', $value);\n }",
"function setTemplate($template);",
"public function setTemplateVariable(string $key, $value) : self {\n $data = $this->getVariable('template_data', []);\n $data[$key] = $value;\n\n return $this->setVariable('template_data', $data);\n }",
"public function setTemplate($template_string){\n\t\t$this->template = $template_string;\n\t}",
"public function getId()\n\t{\n\t\treturn $this->get('templateid');\n\t}",
"public function setTemplate($template)\n {\n // store instance of template\n\t\t$this->_template = $template;\n }",
"public function setTemplate($template = '')\n {\n $this->template = ROOT . DS . $this->configuration->get('app.name') . DS . 'view' . DS . $this->action . DS . $template . '.phtml';\n }",
"public function groupNameTemplate($value) {\n return $this->setProperty('groupNameTemplate', $value);\n }",
"public function setTemplate(Template $template = null)\n {\n $this->template = $template;\n\n return $this;\n }",
"function delete_template($template_id)\n {\n $parameter_array = array();\n \n array_push($parameter_array, array(\n 'and',\n 'id',\n '=',\n $template_id\n ));\n \n parent::delete('i', $parameter_array);\n }",
"public function setTemplateSet($templateSet){\n\t\t$this->templateSet = $templateSet;\n\t}",
"public function setTemplate($template)\n {\n if(is_array($template)){\n $this->current_template = $this->igt_template;\n $this->setValue($template);\n }\n\n }",
"public function setCampaignTemplate(CampaignTemplate $v = null)\n\t{\n\t\tif ($v === null) {\n\t\t\t$this->setTemplateId(NULL);\n\t\t} else {\n\t\t\t$this->setTemplateId($v->getId());\n\t\t}\n\n\t\t$this->aCampaignTemplate = $v;\n\n\t\t// Add binding for other direction of this n:n relationship.\n\t\t// If this object has already been added to the CampaignTemplate object, it will not be re-added.\n\t\tif ($v !== null) {\n\t\t\t$v->addCampaign($this);\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setTemplate($template)\n {\n $this->template = $template;\n return $this;\n }",
"public function setTemplate($template)\n {\n $this->template = $template;\n return $this;\n }",
"public function urlTemplateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('urlTemplate', $value);\n }",
"function _setTemplate($template = null) {\n if (empty($template)) {\n $backtrace = debug_backtrace();\n if (empty($backtrace[1]['function'])) {\n return $this->template = null;\n }\n $parent = $backtrace[1]['function'];\n $method = '';\n if ($parent == '__call') {\n $method = str_replace('send', '', $backtrace[2]['function']);\n } else {\n $method = $backtrace[1]['function'];\n }\n $template = Inflector::underscore($method);\n }\n $this->template = sprintf('%s%s%s',\n $this->_templateFolder(),\n DS,\n $template\n );\n }",
"public function setConfig(ilSettingsTemplateConfig $config) {\r\n $this->config = $config;\r\n }",
"function set_template( $template_file = 'template.php' )\n {\n // make sure that $template_file has .php extension\n $template_file = substr( $template_file, -4 ) == '.php' ? $template_file : ( $template_file . \".php\" );\n\n $this->template = \"../../{$this->settings->root_folder}/themes/{$this->settings->theme}/{$template_file}\";\n }",
"public function setTemplate( $template )\n\t{\n\t\t// Search for the template layout.\n\t\tif ( 'MAIN' == $this->context_name )\n\t\t{\n\t\t\t$found\t= false;\n\t\t\t$path\t= dirname( $template );\n\n\n\t\t\tfor ( $i = 0; !$found && $i < 3; $i++ )\n\t\t\t{\n\t\t\t\tif ( file_exists( TEMPLATE_PATH . $path . '/layout' . TEMPLATE_EXTENSION ) )\n\t\t\t\t{\n\t\t\t\t\t$found = true;\n\t\t\t\t\t$path = $path . '/layout' . TEMPLATE_EXTENSION;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$path\t= dirname( $path );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $found )\n\t\t\t{\n\t\t\t\t$this->layout\t= $this->twig->loadTemplate( $path );\n\t\t\t}\n\t\t}\n\t\t$this->current_context['template'] = $this->twig->loadTemplate( $template );\n\t}",
"public function setTemplate($template)\n {\n $this->template = $template;\n\n return $this;\n }",
"public function set_template($p_template)\n {\n global $g_dirs;\n $this->m_template_file = $g_dirs[\"class\"] . DS . \"modules\" . DS . \"jdisc\" . DS . \"templates\" . DS . \"content\" . DS . \"bottom\" . DS . \"content\" . DS . $p_template;\n\n return $this;\n }",
"public function template($value) {\n return $this->setProperty('template', $value);\n }",
"public function template($value) {\n return $this->setProperty('template', $value);\n }",
"public function setTemplate($template)\n\t{\n\t\t$this->template = $template;\n\t\t$this->pageInitialized = false;\n\t}",
"public function setTemplate($template)\n {\n if (empty($template)) {\n $this->template = null;\n return $this;\n }\n\n if (!is_string($template)) {\n throw new InvalidArgumentException(\n 'Handler view template must be a string identifier.'\n );\n }\n\n $this->template = $template;\n return $this;\n }",
"public function setTemplateName($name)\n {\n $this->templateName = (string)$name;\n return $this;\n }",
"public function getTemplateentityid()\n {\n return $this->templateentityid;\n }",
"protected function setPageTemplate($template)\r\n {\r\n $this->pageTemplate = $template;\r\n }",
"public function setProfileTemplate ($template = null){\n $db = new db();\n $db->connect();\n if (isset($template)){\n $this->profileTemplate = $template;\n }\n\n $ini_file = conf::pathHtdocs() . \"/templates/$this->profileTemplate/$this->profileTemplate.ini\";\n $ini_file_dist = $ini_file . \"-dist\";\n\n if (conf::isCli()) {\n if (file_exists($ini_file_dist)){\n copy($ini_file_dist, $ini_file);\n }\n }\n $values = array('template' => $this->profileTemplate);\n return $db->update('settings', $values, 1); \n }",
"public function setTemplate(CsviHelperTemplate $template)\n\t{\n\t\t$this->template = $template;\n\t}",
"public function setTemplate($templateName)\n {\n if ($this->templateRootPaths === null) {\n throw new InvalidTemplateResourceException('No template root path has been specified. Use setTemplateRootPaths().', 1430635895);\n }\n $format = $this->getRequest()->getFormat();\n $templatePathAndFilename = null;\n $possibleTemplatePaths = $this->buildListOfTemplateCandidates($templateName, $this->templateRootPaths, $format);\n foreach ($possibleTemplatePaths as $possibleTemplatePath) {\n if ($this->testFileExistence($possibleTemplatePath)) {\n $templatePathAndFilename = $possibleTemplatePath;\n break;\n }\n }\n if ($templatePathAndFilename !== null) {\n $this->setTemplatePathAndFilename($templatePathAndFilename);\n } else {\n throw new InvalidTemplateResourceException('Could not load template file. Tried following paths: \"' . implode('\", \"', $possibleTemplatePaths) . '\".', 1430635896);\n }\n }",
"public function setTemplate($p);",
"public function template(string $template): self\n {\n $this->template = $template;\n\n return $this;\n }",
"public function actionCreateFromTemplate($templateId = null)\n {\n $model = new WidgetContent();\n\n try {\n if ($model->load($_POST) && $model->save()) {\n return $this->redirect(Url::previous());\n } elseif (!\\Yii::$app->request->isPost) {\n $model->load($_GET);\n }\n } catch (\\Exception $e) {\n $msg = (isset($e->errorInfo[2])) ? $e->errorInfo[2] : $e->getMessage();\n $model->addError('_exception', $msg);\n }\n\n return $this->render('create', ['model' => $model]);\n }",
"public function template($template = NULL)\r\n\t{\r\n\t\t// No template name provided\r\n\t\tif ($template === NULL)\r\n\t\t\treturn $this;\r\n\r\n\t\t// We are a bit flexible in the names we accept\r\n\t\t$this->template = str_replace(array('-', ' '), '_', strtolower(trim($template)));\r\n\r\n\t\t// Chainable method\r\n\t\treturn $this;\r\n\t}",
"public function setTemplate($template)\n\t{\n\t\t$this->template = $template;\n\n\t\treturn $this;\n\t}",
"public function AddTemplate($template, $name=NULL){\n if(!isset($name)){\n $name = 'Tid'.(sizeof($this->template)+1);\n }\n $this->template[$name] = $template; // $this->envir->loadTemplate($template);\n if(sizeof($this->template)==1){\n $this->mystart_template = $name;\n }\n return $name;\n }",
"function setTemplateType($templateType) {\n\t\t\t\t\t$templateType = preg_replace('/^_[A-Z0-9\\/]+/i','',$templateType);\n\t\t\t\t\tif ($this->templateTypeExists($templateType)) {\n\t\t\t\t\t\t$this->templateType = $templateType;\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public function setTemplateFile($file)\n {\n $this->file_template = $file;\n }",
"public static function setTemplatePage(templatesInterface $templatePage)\n {\n if(isset($templatePage) && !empty($templatePage)){\n self::$templatePage = $templatePage;\n }\n }",
"public function getControlTemplateUID()\n {\n return $this->name.'_TPL_UID';\n }",
"protected function _setTemplateMeta(){\n $this->template->project_name = $this->config['project']['name'] ;\n $this->template->title = $this->config['view']['title'] ;\n $this->template->keywords = $this->config['view']['keywords'];\n $this->template->description = $this->config['view']['description'];\n }",
"public function getSettingInstanceTemplateId()\n {\n if (array_key_exists(\"settingInstanceTemplateId\", $this->_propDict)) {\n return $this->_propDict[\"settingInstanceTemplateId\"];\n } else {\n return null;\n }\n }",
"protected function setDefaultTemplate()\n {\n $defaultTemplate = $this->config->getKey('default_template');\n $this->setTemplate($defaultTemplate);\n }",
"public function setLayoutTemplate($layoutTemplate)\n {\n $this->layoutTemplate = (string) $layoutTemplate;\n return $this;\n }",
"private function setTemplate(){\n if (isset($this->data['template']) && !empty($this->data['template'])){\n $template = APP_ROOT.'/app/templates/'.trim($this->data['template']).'.tpl';\n if (file_exists($template)){\n $this->template = $template;\n return;\n }\n }\n //default\n $this->template = APP_ROOT.'/app/templates/default.tpl';\n }",
"public function setTagTemplate($tagTemplate)\n {\n $this->tagTemplate = $tagTemplate;\n }",
"function SetId($value) { $this->id=$value; }",
"public function setTemplate($tpl_name){\n \tif($this->isAllowedToChangeTemplate()){\n \t\t$this->template = $tpl_name;\n \t\t$this->baseReplaces['tpl_folder'] = $this->getTemplateDir();\n \t\t$GLOBALS['tpl']['activeTemplate'] = $tpl_name;\n \t}\n }",
"public function setSettingInstanceTemplateReference(?DeviceManagementConfigurationSettingInstanceTemplateReference $value): void {\n $this->getBackingStore()->set('settingInstanceTemplateReference', $value);\n }",
"public function setDataLayerTemplate($dataLayerTemplate)\n {\n $this->dataLayerTemplate = $dataLayerTemplate;\n }",
"public function template($template)\n {\n $this->template = $template;\n\n return $this;\n }",
"public function get_template_registration_id()\n {\n return $this->get_default_property(self::PROPERTY_TEMPLATE_REGISTRATION_ID);\n }",
"public function getSchoolTemplateId(): int\n {\n return 1;\n }",
"public function changeTemplate(int $id)\n {\n $def_temp = Template::where('is_active', 1)->first();\n $def_temp->is_active = 0;\n $def_temp->save();\n $new_def = Template::find($id);\n $new_def->is_active = 1;\n $new_def->save();\n return $this->dashboard();\n }",
"public function setTemplateFilePath($templateFilePath) {\n $this->templateFilePath = $templateFilePath;\n }",
"public static function setTemplate(PageTemplate $template) {\n\t\tself::getInstance()->setPageTemplate($template);\n\t}",
"public function setTemplate($file);",
"public function setMessageTemplate($messageTemplate) {\n\n\t\tif ($messageTemplate instanceof MessageTemplate) {\n\t\t\t$this->messageTemplate = $messageTemplate;\n\t\t} else {\n\n\t\t\t// try to convert message template to a possible uid.\n\t\t\tif ((int) $messageTemplate > 0) {\n\t\t\t\t$messageTemplate = (int) $messageTemplate;\n\t\t\t}\n\t\t\t$methodName = is_int($messageTemplate) ? 'findByUid' : 'findByQualifier';\n\n\t\t\t/** @var \\Fab\\Messenger\\Domain\\Model\\MessageTemplate $messageTemplate */\n\t\t\t$messageTemplate = $this->messageTemplateRepository->$methodName($messageTemplate);\n\t\t\tif (is_object($this->getMessageLayout())) {\n\t\t\t\t$messageTemplate->setMessageLayout($this->getMessageLayout());\n\t\t\t}\n\n\t\t\tif (is_null($messageTemplate)) {\n\t\t\t\t$message = sprintf('I could not find message template \"%s\"', $messageTemplate);\n\t\t\t\tthrow new RecordNotFoundException($message, 1350124207);\n\t\t\t}\n\n\t\t\t$this->messageTemplate = $messageTemplate;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function __construct(string $templateId) {\n $this->templateId = $templateId;\n $this->variables = new ParameterBag([]);\n }"
] | [
"0.7138557",
"0.65513337",
"0.6475275",
"0.6475275",
"0.6368247",
"0.61795175",
"0.61334",
"0.60369724",
"0.59974796",
"0.58822757",
"0.5869362",
"0.5860467",
"0.5800805",
"0.5799797",
"0.5725299",
"0.5674958",
"0.5659334",
"0.56183195",
"0.5605395",
"0.5530384",
"0.5530384",
"0.55169505",
"0.5514509",
"0.5514509",
"0.5508005",
"0.55032486",
"0.5471857",
"0.53801894",
"0.537273",
"0.5352164",
"0.53504264",
"0.53214395",
"0.5317281",
"0.53121275",
"0.5302464",
"0.53021765",
"0.52931905",
"0.5288069",
"0.5281197",
"0.5267842",
"0.5247147",
"0.5229988",
"0.5214046",
"0.51954526",
"0.5176345",
"0.5144748",
"0.5141666",
"0.5119892",
"0.50783604",
"0.5057111",
"0.50527644",
"0.50339866",
"0.5025593",
"0.5025593",
"0.5024587",
"0.50162154",
"0.50000185",
"0.4996584",
"0.4987544",
"0.49868476",
"0.49611875",
"0.49591705",
"0.49591705",
"0.49475804",
"0.49368972",
"0.49257967",
"0.49145254",
"0.49012953",
"0.48995537",
"0.48840955",
"0.4883051",
"0.48828942",
"0.48819283",
"0.48632738",
"0.48631012",
"0.4858446",
"0.48499042",
"0.48473236",
"0.4835515",
"0.48296833",
"0.4828571",
"0.48181167",
"0.48177633",
"0.48155665",
"0.4814516",
"0.48095056",
"0.47964028",
"0.47814626",
"0.47656056",
"0.47653267",
"0.4763512",
"0.4748711",
"0.47485435",
"0.47477585",
"0.473219",
"0.47168288",
"0.47094157",
"0.47063002",
"0.47057846",
"0.47020948"
] | 0.60190845 | 8 |
Sets the values property value. Collection of namevalue pairs corresponding to the name and defaultValue properties in the referenced directorySettingTemplates object. | public function setValues(?array $value): void {
$this->getBackingStore()->set('values', $value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setValues($val)\n {\n $this->_propDict[\"values\"] = $val;\n return $this;\n }",
"public function setValuesOption($values)\n {\n $this->values = $values;\n }",
"public function set_values( $values = array() ) {\n\t\t\n\t\t$this->values = $values;\n\t\t\n\t}",
"public function setValues($values){\n\t\tif(!is_array($values)) return;\n\t\t\n\t\tforeach($values as $field_name => $value){\n\t\t\tif(isset($this->Fields[$field_name])){\n\t\t\t\t$this->Fields[$field_name]->value = $value;\n\t\t\t}\n\t\t}\n\t}",
"function setConfigValues( $values )\n\t{\n\t\tif( !is_array( $values ) )\n\t\t\treturn\tfalse;\n\t\tforeach( $values as $path => $value )\n\t\t\t$this->setConfigValue( $path, $value );\n\t}",
"protected function _setFieldValues($values) {\n foreach ($this->getElements() as $key => $element) {\n if (count(explode('_', $key)) == 3) {\n list($parent_id, $option_id, $field_id) = explode('_', $key);\n if (isset($values[$field_id])) {\n $element->setValue($values[$field_id]);\n }\n }\n }\n }",
"public function setValues($values = []);",
"public function setValues($values) {\n $this->values = $values;\n }",
"public function setValues($values)\n {\n $this->values = $values;\n }",
"public function setValues(array $_values=array()){\n foreach(($getElements=self::getElements()) as $key=>$items){\n $this->{$key}=(\n (isset($_values[self::getFormName()][$key]))\n ?$_values[self::getFormName()][$key]\n :NULL\n );\n $getElementsv[$key]->setValue($this->{$key});\n }\n }",
"public function setValue($values = array())\n\t{\n\t\treturn $this->setTags($values);\n\t}",
"public function setValues($values)\n {\n foreach ($this->entities as $entity) \n {\n $entity->setValues($values);\n }\n }",
"public function setValues(array $values);",
"public function setValues($values) {\n\t\t$this->attributes['values'] = $values;\n\t\t$this->values = $values;\n\t\treturn $this;\n\t}",
"public function setValue( array $values ) {\n\t\t\t$this->value = $values;\n\t\t}",
"public function setValues($values);",
"public function setValues($valueCollection) {\n\n foreach ($valueCollection as $key => $value) {\n if (isset($this[$key])) {\n $this[$key]->setValue($value);\n } //if\n } //foreach\n \n }",
"private function assignValues() {\n $this->setIndicators('value');\n\n $leftIndicator = $this->sugarTemplateIndicators['valueLeft'] . $this->sugarTemplateIndicators['valueSeparator'];\n $rightIndicator = $this->sugarTemplateIndicators['valueSeparator'] . $this->sugarTemplateIndicators['valueRight'];\n\n foreach ($this->assignedValues as $tag => $value) {\n $this->rootContent = str_replace($leftIndicator . $tag . $rightIndicator, $value, $this->rootContent);\n }\n }",
"public function setValues($values)\n {\n foreach ($values as $field => $value)\n {\n if (isset($this->properties[$field])) {\n /** @var Property $this->$field */\n $this->$field->set($value);\n }\n }\n }",
"public function setValues($item,$values) {\n\t\tif (array_key_exists($item,$this->_properties)) {\n\t\t\t$this->_properties[$item]['values']=$val;\n\t\t}\n\t}",
"public function setValues(array $values): void\n {\n $this->values = $values;\n }",
"public function SetInitValues($Values) {\n\n $this->Values= $Values;\n $this->BuildControls();\n foreach($this->Controls as $Control) {\n if ($Control->IsValidScenario()) {\n $Control->ImportInitValue();\n }\n }\n }",
"public function SetValues($Values) {\n\n $this->Values= $Values;\n $this->BuildControls();\n foreach($this->Controls as $Control) {\n if ($Control->IsValidScenario()) {\n $Control->ImportValueFromData();\n }\n }\n }",
"public function setValue($entries) {}",
"public function setValues(array $values) {\n $this->_values = $values;\n $allowedValues = array();\n foreach ($values as $index => $group) {\n $groupValues = array_keys(isset($group['options']) ? $group['options'] : $group);\n $allowedValues = array_merge($allowedValues, $groupValues);\n }\n $this->setFilter(new PapayaFilterList($allowedValues));\n }",
"public function setValue($values) {\n $this->setHydrated(collect([]));\n // Add the passed values\n $this->value = is_array($values) ? $values : [];\n // Loop through each of the provided value groups\n foreach ($values as $position => $valueGroup) {\n // Create a new sub field group\n $fieldGroup = collect([]);\n // Loop through each of the fields\n foreach ($this->getBlueprints() as $_k => $blueprint) {\n // Retrieve the blueprint machine code\n $fieldMachine = $blueprint->getMachine();\n // Retrieve the field value from the passed values\n $fieldValue = isset($valueGroup[$fieldMachine]) ? $valueGroup[$fieldMachine] : null;\n // Hydrate and return a new field instance\n $clonedField = $blueprint->hydrate($fieldValue);\n // Set the hydrated field's parent field\n $clonedField->setParent($this);\n // Set the field group's position\n // This will be used to group fields within the toPath index\n $clonedField->setPosition($position);\n // Add the field into the hydrated field group\n $fieldGroup->push($clonedField);\n }\n // Push the field into this fields hydrated groups\n $this->getHydrated()->push($fieldGroup);\n }\n // Return for chaining\n return $this;\n }",
"public function setValues(array $values): void\n {\n $this->values = array_map(function ($value) {\n return ChunkRecommendationsValue::constructFromArray(['value' => $value]);\n }, $values);\n }",
"public function setValues($values)\n {\n foreach ($this->findScenario() as $name) {\n if (array_key_exists($name, $values)) {\n $this->$name = $values[$name];\n }\n }\n return $this;\n }",
"public function setValues(array $values) {\n $this->data = $values;\n }",
"public function setValues(array $values): void\n {\n foreach ($this->getInputNames() as $name) {\n if (array_key_exists($name, $values)) {\n $this->$name = $values[$name];\n }\n }\n }",
"public function setValues(array $values): FaviconatorConfig\n\t{\n\t\t$this->configData = $values;\n\n\t\treturn $this;\n\t}",
"public function forceValue($values = array())\n\t{\n\t\treturn $this->setTags($values);\n\t}",
"public function assignValues($values=[]) {\n }",
"public function values(array $values)\n {\n foreach ($values as $key => $val) {\n $this->SetValue($key, $val);\n }\n return $this; \n }",
"function setDefaultValues($valueList)\n\t{\n\t\tif (!$valueList) {\n\t\t\treturn;\n\t\t}\t\t\n\t\t\t\t\n\t\t// Iterate through form fields checking if there's a default value to\n\t\t// use, because we don't have an associative list of elements\n\t\tforeach ($this->elementList as $element)\n\t\t{\t\t\t\t\t\t\n\t\t\t// Do we have a default value for this field?\n\t\t\tif (isset($valueList[$element->name])) {\n\t\t\t\t$element->setValue($valueList[$element->name]);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t} //end foreach\n\t}",
"public function setTeamTemplates(?array $value): void {\n $this->getBackingStore()->set('teamTemplates', $value);\n }",
"public function setValue($values)\n {\n if (! is_array($values)) {\n $values = [$values];\n }\n\n if (count($values) === 0 || is_null(reset($values))) {\n return;\n }\n\n $this->type = Xml::attributeType(reset($values));\n $this->value = [];\n\n foreach ($values as $value) {\n if ('DATE' === $this->type && ! Date::isEmpty($value)) {\n $value = Date::format($value);\n }\n\n $this->value[] = $value;\n }\n }",
"public function setData(array $values): self\n\t{\n\t\t$this->valueMap = $values;\n\t\treturn $this;\n\t}",
"public function setValues($var)\n {\n $arr = GPBUtil::checkMapField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->values = $arr;\n\n return $this;\n }",
"function setValueByArray($a_values)\n\t{\n\t\t$this->setValue($a_values[$this->getPostVar()]);\n\t\tforeach($this->getOptions() as $option)\n\t\t{\n\t\t\tforeach($option->getSubItems() as $item)\n\t\t\t{\n\t\t\t\t$item->setValueByArray($a_values);\n\t\t\t}\n\t\t}\n\t}",
"public function setValues(?Json $value): void {\n $this->getBackingStore()->set('values', $value);\n }",
"public function setValues(array $configs) {\n\t\t$this->config->setValues($configs);\n\t}",
"private function setValues($values)\n {\n //echo \"<pre>\";\n //print_r($values);\n //echo \"</pre>\";\n foreach ($values as $field => $value) {\n $this->$field = $value;\n }\n\n //echo \"<pre>\";\n //print_r($this);\n //echo \"</pre>\";\n //die();\n\n }",
"public function setDefaultValues($default_values){\n\t\tif(!is_array($default_values)) return;\n\t\t\n\t\tforeach($default_values as $field_name => $default_value){\n\t\t\tif(isset($this->Fields[$field_name])){\n\t\t\t\t$this->Fields[$field_name]->default_value = $default_value;\n\t\t\t}\n\t\t}\n\t}",
"public function SetCustomValidationValues($Values) {\n\n $this->CustomValidationValues= (array)$Values;\n }",
"public function setSettingValueType($val)\n {\n $this->_propDict[\"settingValueType\"] = $val;\n return $this;\n }",
"function setDefaultValues() {}",
"public function setValues(array $values, bool $forceQuote = false): self\n {\n foreach ($values as $key => $value) {\n $this->set($key, $value, $forceQuote);\n }\n\n return $this;\n }",
"protected function initializeValues(): void\n {\n foreach ($this->params as $name => $infos) {\n if (!$this->is_sub_object && isset($infos['subobject']) && $infos['subobject']) {\n if (isset($infos['multivalues']) && $infos['multivalues']) {\n $this->values[$name] = [];\n } else {\n $tmp = get_class($this);\n $parts = explode('\\\\', $tmp);\n array_pop($parts);\n $class_name = implode('\\\\', $parts) . '\\\\' . $infos['type'];\n $class_name = str_replace('Entity', 'Datatype', $class_name);\n if (!class_exists($class_name)) {\n $class_name = str_replace(['\\\\EU\\\\', '\\\\AP\\\\', '\\\\EA\\\\'], '\\\\AM\\\\', $class_name);\n }\n $this->values[$name] = new $class_name();\n }\n } else {\n $this->values[$name] = null;\n }\n }\n }",
"public static function setSettings($id, array $values)\n\t{\n\t\t// go over settings\n\t\tforeach($values as $key => $value) self::setSetting($id, $key, $value);\n\t}",
"public function setValue($name, $value)\n {\n foreach ($this->entities as $entity) \n {\n $entity->setValues(array($name => $value));\n }\n }",
"public function fill($values = []) {\n foreach ($values as $key => $value) {\n $key = explode('_', $key);\n if (count($key) > 1 && end($key) === 'id') {\n array_pop($key);\n }\n $key = array_values($key);\n for ($i = 0; $i < count($key); $i++) {\n $key[$i] = ucfirst($key[$i]);\n }\n $key = implode('', $key);\n $func = 'set' . $key;\n if (method_exists($this, $func)) {\n $this->$func($value);\n }\n }\n $this->afterFill();\n }",
"public function configureWithValues(array $values = null, array $files = null)\n {\n $this->removeEmbeddedForms();\n \n $formClass = $this->getChildFormClass();\n foreach ($values as $formName => $formValues)\n {\n if (strpos($formName, self::PERSISTENT_PREFIX) === 0)\n {\n $pk = substr($formName, strlen(self::PERSISTENT_PREFIX));\n $childObject = $this->getPersistentChildByPK($pk);\n if ($childObject === null)\n throw new RuntimeException('The child object for the embedded form '\n .'\"'.$formName.'\" does not exist.');\n \n $form = new $formClass($childObject);\n $this->embedForm($formName, $form);\n }\n else\n {\n $childObject = $this->getParentObject()->{$this->getRelationAlias()}\n ->get(null);\n $form = new $formClass($childObject);\n $this->embedForm($formName, $form);\n }\n }\n }",
"public function storeDefaultValues($default_values_request, Organization $organization)\n {\n try {\n $settings = $organization->settings;\n\n $default_collaboration_type = $this->checkAndGetDefaultValues($default_values_request, $settings, 'default_collaboration_type');\n $default_flow_type = $this->checkAndGetDefaultValues($default_values_request, $settings, 'default_flow_type');\n $default_finance_type = $this->checkAndGetDefaultValues($default_values_request, $settings, 'default_finance_type');\n $default_aid_type = $this->checkAndGetDefaultValues($default_values_request, $settings, 'default_aid_type');\n $default_tied_status = $this->checkAndGetDefaultValues($default_values_request, $settings, 'default_tied_status');\n $humanitarian = $this->checkAndGetDefaultValues($default_values_request, $settings, 'humanitarian');\n\n $default_values = [\n 0 => [\n 'default_currency' => $default_values_request->get('default_currency'),\n 'default_language' => $default_values_request->get('default_language'),\n 'default_hierarchy' => $default_values_request->get('default_hierarchy'),\n 'linked_data_uri' => $default_values_request->get('linked_data_uri'),\n 'default_collaboration_type' => $default_collaboration_type,\n 'default_flow_type' => $default_flow_type,\n 'default_finance_type' => $default_finance_type,\n 'default_aid_type' => $default_aid_type,\n 'default_tied_status' => $default_tied_status,\n 'humanitarian' => $humanitarian\n ]\n ];\n\n if (is_null($organization->settings)) {\n $organization->settings()->create(['default_field_values' => $default_values]);\n } else {\n\n $settings->default_field_values = $default_values;\n $settings->save();\n }\n\n $this->storeCompletedSettingsSteps(5);\n\n $this->logger->info('Default Values updated successfully.');\n $this->dbLogger->activity(\n \"activity.settings_updated\",\n [\n 'organization' => Auth::user()->organization->name,\n 'organization_id' => Auth::user()->organization->id\n ]\n );\n\n return true;\n } catch (Exception $exception) {\n $this->logger->error($exception, ['organization' => $organization]);\n\n return false;\n }\n }",
"function setInputValues( array $values );",
"public function setValues(array $values, $caseSensitive = false)\n\t{\n\t\tif (!is_bool($caseSensitive))\n\t\t{\n\t\t\tthrow new InvalidArgumentException('Argument 2 passed to ' . __METHOD__ . ' must be a boolean');\n\t\t}\n\n\t\t// Create a regexp based on the list of allowed values\n\t\t$regexp = RegexpBuilder::fromList($values, ['delimiter' => '/']);\n\t\t$regexp = '/^' . $regexp . '$/D';\n\n\t\t// Add the case-insensitive flag if applicable\n\t\tif (!$caseSensitive)\n\t\t{\n\t\t\t$regexp .= 'i';\n\t\t}\n\n\t\t// Add the Unicode flag if the regexp isn't purely ASCII\n\t\tif (!preg_match('#^[[:ascii:]]*$#D', $regexp))\n\t\t{\n\t\t\t$regexp .= 'u';\n\t\t}\n\n\t\t// Set the regexp associated with this list of values\n\t\t$this->setRegexp($regexp);\n\t}",
"public function processConfigForm($values) {\n foreach($values as $k=>$v) {\n if(strpos($k, $this->_configprefix) !== 0) continue;\n $this->_options[ereg_replace('^'.$this->_configprefix,'',$k)] = $v;\n }\n }",
"public function setValueByArray($a_values)\n\t{\t\t\n\t\t$incoming = $a_values[$this->getPostVar()];\t\t\t\t\n\t\tif(is_array($incoming))\n\t\t{\n\t\t\t$format = $this->getDatePickerTimeFormat();\n\t\t\t$this->setStart(ilCalendarUtil::parseIncomingDate($incoming[\"start\"], $format));\n\t\t\t$this->setEnd(ilCalendarUtil::parseIncomingDate($incoming[\"end\"], $format));\n\t\t}\n\t\t\n\t\tforeach($this->getSubItems() as $item)\n\t\t{\n\t\t\t$item->setValueByArray($a_values);\n\t\t}\n\t}",
"public function setAttributes($values)\n {\n if (is_array($values)) {\n foreach ($values as $name => $value) {\n $setter = 'set' . ucfirst($name);\n if (method_exists($this, $setter)) {\n // set property\n $this->$setter($value);\n }\n }\n }\n }",
"public function setRestrictedSetValues($value)\n {\n if (!$this->_isNumericArray($value)) {\n $value = array ($value);\n }\n $this->_fields['RestrictedSetValues']['FieldValue'] = $value;\n return $this;\n }",
"public function save_values_for_step_parameters($values) {\n $report = $this->get_report_instance();\n $report->require_dependencies();\n $report->init_filter($report->id);\n $filters = $report->get_filters();\n //Check for report filter\n if (isset($report->filter)) {\n $report_filter = $report->filter;\n } else {\n $report_filter = null;\n }\n $form = new scheduling_form_step_parameters(null, array('workflow' => $this, 'filterobject' => $report_filter));\n\n $form->set_data($values);\n $form->definition_after_data();\n $form->_form->validate();\n $errors = $form->validation($values, array());\n if ((is_array($errors) && !empty($errors)) || !empty($form->_form->_errors)) {\n if (!is_array($errors)) {\n $errors = array();\n }\n $errors = $errors + $form->_form->_errors;\n return $errors;\n }\n\n // data is validated, so we can save it\n $data = $this->unserialize_data(array());\n $data['parameters'] = $values;\n $this->data = serialize($data);\n $this->save();\n }",
"public function set($key, $value)\n {\n if (is_array($value)) {\n $settings = array_replace($this->defaults, $value);\n } else {\n $settings = array_replace($this->defaults, ['value' => $value]);\n }\n\n parent::set($key, $settings);\n }",
"public function set(array $values)\n\t{\n\t\tforeach ($values as $field_name => $value)\n\t\t{\n\t\t\tif ($value === NULL)\n\t\t\t{\n\t\t\t\t// All fields can simply be set to NULL\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ($field = $this->_meta->field($field_name))\n\t\t\t{\n\t\t\t\t$values[$field_name] = $field->set($value);\n\t\t\t}\n\t\t}\n\n\t\t// Remove values that are not actually changing\n\t\tforeach ($values as $field_name => $value)\n\t\t{\n\t\t\tif ($value !== Arr::get($this->_values, $field_name))\n\t\t\t{\n\t\t\t\t// Equality problems with MongoId objects ... maybe we should\n\t\t\t\t// store keys as strings?\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tunset($values[$field_name]);\n\t\t}\n\n\t\t// Save the change history\n\t\tforeach ($values as $field_name => $value)\n\t\t{\n\t\t\t$this->_changed[$field_name] = TRUE;\n\t\t\t$this->_changes[$field_name][] = $value;\n\t\t}\n\n\t\t// Set the values!\n\t\t$this->_values = $values + $this->_values;\n\n\t\treturn $this;\n\t}",
"public function assign($values = array())\n {\n // Add each value\n foreach($values as $key => $value)\n {\n $this->values[$key] = $value;\n }\n \n return true;\n }",
"private function insertSettings()\r\n\t{\r\n\t\tglobal $ilDB;\r\n\r\n\t\tforeach ($this->getSettings() as $s => $set)\r\n\t\t{\r\n\t\t\t$ilDB->manipulate(\"INSERT INTO adm_set_templ_value \".\r\n\t\t\t\t\"(template_id, setting, value, hide) VALUES (\".\r\n\t\t\t\t$ilDB->quote($this->getId(), \"integer\").\",\".\r\n\t\t\t\t$ilDB->quote($s, \"text\").\",\".\r\n\t\t\t\t$ilDB->quote($set[\"value\"], \"text\").\",\".\r\n\t\t\t\t$ilDB->quote($set[\"hide\"], \"integer\").\r\n\t\t\t\t\")\");\r\n\t\t}\r\n\t}",
"public function setValues(array $values)\n {\n $this->_setValues($values);\n\n return $this;\n }",
"public function setDefaultValues()\r\n {\r\n foreach ($this->defaultValues as $property => $value) {\r\n if (is_null($this->$property)) {\r\n $this->$property = $value;\r\n }\r\n }\r\n }",
"public function __set($name, $value)\n {\n if ($name == 'values' && $value !== null) {\n return $this->set_value($value);\n }\n return parent::__set($name, $value);\n }",
"public function set($config){\n\t\t$this->configValues = $config;\n\t}",
"public function setOptions($values)\n {\n $this->options = $values;\n }",
"public function set($config, $value = null) {\n if (!is_array($config)) {\n $config = array($config => $value);\n }\n\n foreach ($config as $names => $value) {\n $name = $this->__configVarNames($names);\n\n // Make sure to expand nested array keys too!\n // @todo: Refactor\n if (is_array($value)) {\n foreach ($value AS $k => $v) {\n $key = $name;\n $key[] = $k;\n $this->set(join('.', $key), $v);\n }\n continue;\n }\n\n switch (count($name)) {\n case 7:\n $this->data[$name[0]][$name[1]][$name[2]][$name[3]][$name[4]][$name[5]][$name[6]] = $value;\n break;\n case 6:\n $this->data[$name[0]][$name[1]][$name[2]][$name[3]][$name[4]][$name[5]] = $value;\n break;\n case 5:\n $this->data[$name[0]][$name[1]][$name[2]][$name[3]][$name[4]] = $value;\n break;\n case 4:\n $this->data[$name[0]][$name[1]][$name[2]][$name[3]] = $value;\n break;\n case 3:\n $this->data[$name[0]][$name[1]][$name[2]] = $value;\n break;\n case 2:\n $this->data[$name[0]][$name[1]] = $value;\n break;\n case 1:\n $this->data[$name[0]] = $value;\n break;\n default:\n $this->data = MOC_Array::insert($this->data, join('.', $name), $value);\n break;\n //throw new MOC_Configuration_Exception(sprintf('Unable to set the value. Depth is invalid (\"%s\")', count($name)));\n }\n }\n }",
"protected function fillValues($valuesArray) {\n\t\t\n\t\tforeach ($this->_properties as $row) {\n\t\t\t//printf(\"<pre>%s</pre>\",print_r($row,1));\n\t\t\tif (!isset($valuesArray[$row['Field']])) continue;\n\t\t\tif (empty ($row['values'])) $this->_properties[$row['Field']]['values'] = htmlspecialchars(str_replace('<br />','',stripslashes ($valuesArray[$row['Field']])), ENT_QUOTES);\n\t\t\t\n\t\t\telse if ($row['ElementType'] == 'select' || $row['ElementType'] == 'checkbox') {\n\t\t\t\t\n\t\t\t\tif (!is_array ($valuesArray[$row['Field']])) $valuesArray[$row['Field']] = explode(',',$valuesArray[$row['Field']]);\n\t\t\t\tforeach ($valuesArray[$row['Field']] as $candidate) {\n\t\t\t\t\t\n\t\t\t\t\t$tmp = explode(',',$this->_properties[$row['Field']]['values']);\n\t\t\t\t\t$tmpkey = array_search($candidate,$tmp);\n\t\t\t\t\t$tmp[$tmpkey] = $candidate.\"=ON\";\n\t\t\t\t\t$this->_properties[$row['Field']]['values'] = implode(',',$tmp);\n\t\t\t\t\t\n\t\t\t\t\t// $this->_properties[$row['Field']]['values'] = str_replace($candidate, $candidate.\"=ON\", $this->_properties[$row['Field']]['values']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"function defaultValues(&$conf)\t{\n\t\t// Addition of default values\n\t\tif (is_array($conf[$conf['cmdKey'].'.']['defaultValues.']))\t{\n\t\t\treset($conf[$conf['cmdKey'].'.']['defaultValues.']);\n\t\t\twhile(list($theField,$theValue)=each($conf[$conf['cmdKey'].'.']['defaultValues.']))\t{\n\t\t\t\tif (strpos($theValue,\":\")) {\n\t\t\t\t\t$data=tx_metafeedit_lib::getData($theValue,0,$this->cObj);\n\t\t\t\t\tif (!$data) $data=$this->dataArr[$theField];\n\t\t\t\t} else {\n\t\t\t\t\t$data=$theValue;\n\t\t\t\t}\n\t\t\t\t$this->dataArr[$theField] = $data;\n\t\t\t}\n\t\t}\n\t}",
"function setValueList($valueList) {\n if ($valueList !== ($oldValueList = $this->valueList)) {\n $this->valueList = $valueList;\n }\n }",
"public function assignVars($values) {\n\t\tforeach ($this->_vars as $key => $var) {\n\t\t\t$value = (!isset($values[$key]))?null:$values[$key];\n\t\t\t$this->_vars[$key]->set($value);\n\t\t}\n\t}",
"public function set(array $values)\n\t{\n\t\tforeach ($values as $f => $val)\n\t\t{\n\t\t\tif (in_array($f, $this->_fields))\n\t\t\t{\n\t\t\t\t$this->_data[$f] = $val;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this;\n\t}",
"private function setFeatureValues($feature_values, $BkpFeatureId)\r\n {\r\n if (!isset($feature_values['valuekey'])) {\r\n\r\n foreach ($feature_values as $value) {\r\n\r\n $ObjectValue = $this->createFeatureValue($BkpFeatureId, $value);\r\n }\r\n\r\n } else {\r\n\r\n $ObjectValue = $this->createFeatureValue($BkpFeatureId, $feature_values);\r\n }\r\n\r\n }",
"public function set(string $name, $values, bool $shouldReplace = true)\n {\n $name = $this->normalizeName($name);\n $values = (array)$values;\n\n if ($shouldReplace || !$this->has($name)) {\n parent::set($name, $values);\n } else {\n parent::set($name, array_merge($this->values[$name], $values));\n }\n }",
"public function setAll($values)\r\n {\r\n foreach ($values as $key => $value)\r\n $this->$key = $value;\r\n }",
"public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}",
"public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}",
"public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}",
"public function setValues($values)\n {\n // check if the model has a mass assignment whitelist\n $permitted = (property_exists($this, 'permitted')) ? static::$permitted : false;\n\n // if no whitelist, then check for a blacklist\n $protected = (!is_array($permitted) && property_exists($this, 'protected')) ? static::$protected : false;\n\n foreach ($values as $k => $value) {\n // check for mass assignment violations\n if (($permitted && !in_array($k, $permitted)) ||\n ($protected && in_array($k, $protected))) {\n throw new MassAssignmentException(\"Mass assignment of $k on \".static::modelName().' is not allowed');\n }\n\n $this->$k = $value;\n }\n\n return $this;\n }",
"public function setFormValues($id, array $values, $searchRecursively = true)\n {\n $id = $id ?: $this->UID;\n $vs = $this->getActualVS($id) ?: $this->getActualVS($this->get($id));\n if (!isset($vs['controls'])) return false;\n foreach ($vs['controls'] as $uniqueID)\n {\n $cvs = $this->getActualVS($uniqueID);\n if (array_key_exists('value', $cvs['properties']) && isset($values[$cvs['properties']['id']]))\n {\n $cvs['properties']['value'] = $values[$cvs['properties']['id']];\n $this->get($uniqueID)->setVS($cvs);\n }\n if ($searchRecursively && isset($cvs['controls'])) $this->setFormValues($uniqueID, $values, true);\n }\n return $this;\n }",
"public function load_settings_values() {\n\t\t\tparent::load_settings_values();\n\n\t\t\t// If the settings set as a whole is empty then we set a default.\n\t\t\tif ( empty( $this->setting_option_values ) ) {\n\t\t\t\t// If the settings set as a whole is empty then we set a default.\n\t\t\t\tif ( false === $this->setting_option_values ) {\n\t\t\t\t\t$this->transition_deprecated_settings();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( ! isset( $this->setting_option_values['admin_mail_from_name'] ) ) {\n\t\t\t\t$this->setting_option_values['admin_mail_from_name'] = '';\n\t\t\t}\n\n\t\t\tif ( ! isset( $this->setting_option_values['admin_mail_from_email'] ) ) {\n\t\t\t\t$this->setting_option_values['admin_mail_from_email'] = '';\n\t\t\t}\n\n\t\t\tif ( ! isset( $this->setting_option_values['admin_mail_to'] ) ) {\n\t\t\t\t$this->setting_option_values['admin_mail_to'] = '';\n\t\t\t}\n\n\t\t\tif ( ! isset( $this->setting_option_values['admin_mail_subject'] ) ) {\n\t\t\t\t$this->setting_option_values['admin_mail_subject'] = '';\n\t\t\t}\n\n\t\t\tif ( ! isset( $this->setting_option_values['admin_mail_message'] ) ) {\n\t\t\t\t$this->setting_option_values['admin_mail_message'] = '';\n\t\t\t}\n\n\t\t\tif ( ! isset( $this->setting_option_values['admin_mail_html'] ) ) {\n\t\t\t\t$this->setting_option_values['admin_mail_html'] = '';\n\t\t\t}\n\t\t}",
"public function setValues($values = array(), $append = false) {\n\t\tif ($append) {\n\t\t\tforeach ($values as $key => $value) {\n\t\t\t\tif (isset($this->values[$key]) && is_string($this->values[$key])) {\n\t\t\t\t\t$this->values[$key] .= $value;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$this->values[$key] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->values = array_merge($this->values, $values);\n\t\t}\n\t\treturn $this;\n\t}",
"public function setParamsValuesFromRegex(array $values) : self\n {\n\n foreach ($values as $order => $valueInDeep) {\n $this->params[$order]['value'] = $valueInDeep[0];\n }\n\n return $this;\n }",
"public function values(array $values, $flag = self::VALUES_SET)\n {\n if ($values == null) {\n throw new \\InvalidArgumentException('values() expects an array of values');\n }\n\n // determine if this is assoc or a set of values\n $keys = array_keys($values);\n $firstKey = current($keys);\n\n if ($flag == self::VALUES_SET) {\n $this->columns = array();\n $this->values = array();\n }\n\n if (is_string($firstKey)) {\n foreach ($keys as $key) {\n if (($index = array_search($key, $this->columns)) !== false) {\n $this->values[$index] = $values[$key];\n } else {\n $this->columns[] = $key;\n $this->values[] = $values[$key];\n }\n }\n } elseif (is_int($firstKey)) {\n // determine if count of columns should match count of values\n $this->values = array_merge($this->values, array_values($values));\n }\n\n return $this;\n }",
"public function setDefaultValues(array $defaultValues)\n {\n $this->defaultValues = $defaultValues;\n }",
"public function setValues(array $values): static\n {\n $this->what = $values;\n return $this;\n }",
"public function setAllowedValues($values);",
"public function setPropertyValues($values)\n\t{\n\t\tif ($values != null && is_array($values))\n\t\t{//print_r($values);\n\t\t\t$rf = new ReflectionClass($this);\n\t\t\t$props = $rf->getProperties();\n\t\t\tforeach($props as $prop)\n\t\t\t{\n\t\t\t\t$column = AttributeReader::PropertyAttributes($this,$prop->getName())->Column;\n\t\t\t\t$datatype = AttributeReader::PropertyAttributes($this,$prop->getName())->DataType;\n\t\t\t\t$required = AttributeReader::PropertyAttributes($this,$prop->getName())->Required;\n\n\t\t\t\tif ($column != null && $column != \"\" && array_key_exists($column,$values))//isset($values[$column])\n\t\t\t\t{\n\t\t\t\t\t//if($prop->getName()=='salvage_date')var_dump(__FILE__,__LINE__,$values[$column],$datatype,$required,isset($values[$column]),\"<br>\");\n\t\t\t\t\t\n\t\t\t\t\tif ($datatype == \"datetime\")\n\t\t\t\t\t{//echo $values[$column].\", \";\n\t\t\t\t\t\t//$trace=debug_backtrace();if(count($trace)>0)print_r($trace);//,$t['file'],$trace['line']);\n\t\t\t\t\t\t//if (date(\"Y-m-d\", strtotime($values[$column])) != \"1969-12-31\")\n\t\t\t\t\t\tif (trim($values[$column]) != \"\")\n\t\t\t\t\t\t\t$prop->setValue($this, date(\"Y-m-d G:i:s\", strtotime(preg_replace(\"/:[0-9]{3}/\",\" \",$values[$column])))); // remove :000 at the end of dates\n\t\t\t\t\t\t\t//$prop->setValue($this, date(\"Y-m-d\", strtotime($values[$column])));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$prop->setValue($this, \"\"); // set to empty (and eventually to NULL) if no date is provided\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//if($prop->getName()=='salvage_date')echo(var_dump($values[$column],$datatype,$required));\n\t\t\t\t\t\t$prop->setValue($this,trim($values[$column]));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//if($prop->getName()=='salvage_date')var_dump($prop->getValue($obj),$datatype,$required,\"<br>\");\n\t\t\t\t\t//$prop->setValue($this,trim($values[$column]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//throw new Exception(\"Values passed are not valid in array format\");\n\t\t}\n\t}",
"public function set_data($defaultvalues) {\n $this->tool->form_set_data($defaultvalues);\n parent::set_data($defaultvalues);\n }",
"public function defaultValues($items = array()){\n //Merge the default vales entered with any existing ones\n $this->defaultValues = array_merge($this->defaultValues, $items);\n }",
"public function wufooDefaultFormValues($array, $defaultValues) {\r\n // look for keys to set default values\r\n foreach($defaultValues as $key => $item) {\r\n // loop through each input to see if value exist\r\n foreach( $array as $formvalue ) {\r\n if ( $key == $formvalue->ID ) {\r\n $formvalue->DefaultVal = $item;\r\n }\r\n }\r\n }\r\n\r\n return $array;\r\n }",
"protected function parseValues($_values)\n\t{\n\t\t$use_ingroup = $this->field->parameters->get('use_ingroup', 0);\n\t\t$multiple = $use_ingroup || (int) $this->field->parameters->get('allow_multiple', 0);\n\n\t\t// Make sure we have an array of values\n\t\tif (!$_values)\n\t\t{\n\t\t\t$vals = array(array());\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$vals = !is_array($_values)\n\t\t\t\t? array($_values)\n\t\t\t\t: $_values;\n\t\t}\n\n\t\t// Compatibility with legacy storage, we no longer serialize all values to one, this way the field can be reversed and filtered\n\t\tif (count($vals) === 1 && is_string(reset($vals)))\n\t\t{\n\t\t\t$array = $this->unserialize_array(reset($vals), $force_array = false, $force_value = false);\n\t\t\t$vals = $array ?: $vals;\n\t\t}\n\n\t\t// Force multiple value format (array of arrays)\n\t\tif (!$multiple)\n\t\t{\n\t\t\tif (is_string(reset($vals)))\n\t\t\t{\n\t\t\t\t$vals = array($vals);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach ($vals as & $v)\n\t\t\t{\n\t\t\t\tif (!is_array($v))\n\t\t\t\t{\n\t\t\t\t\t$v = strlen($v) ? array($v) : array();\n\t\t\t\t}\n\t\t\t}\n\t\t\tunset($v);\n\t\t}\n\n\t\t//echo '<div class=\"alert alert-info\"><h2>parseValues(): ' . $this->field->label . '</h2><pre>'; print_r($vals); echo '</pre></div>';\n\t\treturn $vals;\n\t}",
"function set($path, $value)\n\t\t{\n\t\t\t$this->Init();\n\t\t\t$path = explode(\"/\", $path);\n\t\t\t$pointer = end($path);\n\t\t\t$tmp = $value;\n\t\t\twhile($pointer){\n\t\t\t\tif (!empty($pointer)){\n\t\t\t\t\t$tmp = array($pointer=>$tmp);\n\t\t\t\t\t$pointer = prev($path);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->settings = array_merge_recursive_overwrite($this->settings, $tmp);\n\t\t\t$this->saveSettings();\n\t\t}",
"public function saveDefaultValues() {\n\n\t\tforeach ( $this->getOptionsList() as $option_page ) {\n\t\t\t$option_page->setDefaultValue();\n\t\t}\n\t}",
"public function __construct(array $values = array()) {\n $this->_values = $values;\n }"
] | [
"0.6315024",
"0.6216697",
"0.6208911",
"0.60262454",
"0.5981795",
"0.5939034",
"0.5931491",
"0.5919261",
"0.5902999",
"0.5858788",
"0.5853157",
"0.57744265",
"0.5753836",
"0.5740272",
"0.57352257",
"0.57113206",
"0.5657763",
"0.5607999",
"0.5604113",
"0.55944324",
"0.55479604",
"0.55389667",
"0.55311143",
"0.55239546",
"0.5519047",
"0.5510629",
"0.5460759",
"0.5444326",
"0.5399867",
"0.5376233",
"0.5330098",
"0.52782375",
"0.527429",
"0.52664924",
"0.52575827",
"0.524458",
"0.5229834",
"0.52064687",
"0.5198638",
"0.516283",
"0.51611084",
"0.51106024",
"0.5107503",
"0.5088086",
"0.50198984",
"0.5012193",
"0.5003571",
"0.4964108",
"0.49394074",
"0.49362686",
"0.4935854",
"0.49348497",
"0.49284655",
"0.49254403",
"0.49226895",
"0.48909816",
"0.48848018",
"0.48794416",
"0.4871291",
"0.48684826",
"0.4866828",
"0.48646477",
"0.48580945",
"0.4849748",
"0.48277873",
"0.48265725",
"0.48157725",
"0.48133343",
"0.48113272",
"0.48071378",
"0.4806124",
"0.47931013",
"0.47852927",
"0.47839743",
"0.47819695",
"0.4775863",
"0.47633627",
"0.4756802",
"0.4752194",
"0.475051",
"0.475051",
"0.475051",
"0.4749644",
"0.4744899",
"0.4737561",
"0.4732456",
"0.47299898",
"0.47221804",
"0.4715335",
"0.47085598",
"0.46952453",
"0.46926388",
"0.46773016",
"0.4670962",
"0.46704945",
"0.46686083",
"0.4667216",
"0.46632704",
"0.46605763"
] | 0.5262375 | 35 |
Teste les colonnes de la table | public function testChallengeTableHasExpectedColumns()
{
$this->assertTrue(
Schema::hasColumns('challenges',
[
"id", "title", "description", "value", "session_id",
"created_at", "updated_at"
]
), 1
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function test_table()\n {\n $this->CT->execute('utility:table');\n\n $this->assertContains('Header1', $this->CT->getOutput());\n $this->assertContains('Header2', $this->CT->getOutput());\n }",
"function verifyCreateTableWithBorders(){\n $WIKI_TABLE_ROW = \"4\";\n $WIKI_TABLE_COL = \"6\";\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_ADDTABLE);\n $this->click(CHK_HEADER);\n $this->type(TEXT_ROW,$WIKI_TABLE_ROW);\n $this->type(TEXT_COL,$WIKI_TABLE_COL);\n $this->click(BUTTON_INSERTABLE);\n $this->click(CHK_HEADER);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $this->assertTrue($this->isElementPresent(TEXT_TABLEID_OTHER . \n TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .\n TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .\n TEXT_VALIDATE_TABLE_PART3));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }",
"function verifyCreateTableWithAllSpecialEffects(){\n $WIKI_TABLE_ROW = 6;\n $WIKI_TABLE_COL = \"2\";\n parent::doExpandAdvanceSection();\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_ADDTABLE);\n $this->click(CHK_SORT);\n $this->type(TEXT_ROW, $WIKI_TABLE_ROW);\n $this->type(TEXT_COL, $WIKI_TABLE_COL);\n $this->click(BUTTON_INSERTABLE);\n $this->click(CHK_SORT);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $WIKI_TABLE_ROW = $WIKI_TABLE_ROW+1;\n $this->assertTrue($this->isElementPresent(TEXT_TABLEID_WITHALLFEATURES . \n TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .\n TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .\n TEXT_VALIDATE_TABLE_PART3));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }",
"function verifyCreateTable(){\n $WIKI_TABLE_ROW = 2;\n $WIKI_TABLE_COL = \"5\";\n parent::doExpandAdvanceSection();\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_ADDTABLE);\n $this->click(CHK_SORT);\n $this->type(TEXT_ROW, $WIKI_TABLE_ROW);\n $this->type(TEXT_COL, $WIKI_TABLE_COL);\n $this->click(BUTTON_INSERTABLE);\n $this->click(CHK_SORT);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $WIKI_TABLE_ROW = $WIKI_TABLE_ROW+1;\n $this->assertTrue($this->isElementPresent(TEXT_TABLEID_OTHER .\n TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .\n TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .\n TEXT_VALIDATE_TABLE_PART3 ));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }",
"function generateColonneByTypeEnTab($table, $columnName, $recherche=false, $attribut=null, $disabled=false) {\n $columnName = strtolower($columnName);\n $retour = '';\n $disabled = $disabled ? 'disabled' : '';\n $recherche = $recherche ? 'rechercheTableStatique' : '';\n $type = $table->getTypeOfColumn($columnName);\n switch ($type) {\n case 'string':\n $retour .= '<td class=\"'.$recherche.'\" columnName='.$columnName.'>'.$attribut.'</td>';\n break;\n case 'float' :\n case 'integer' :\n if (preg_match('#^id[a-zA-Z]+#', $columnName)) {\n $columnNameId = $columnName;\n $columnName = substr($columnName, 2);\n if ($attribut != 0) {\n $cleEtrangere = Doctrine_Core::getTable($columnName)->findOneBy(\"id\", $attribut);\n $retour .= '<td columnName='.$columnNameId.' idCleEtrangere='.$cleEtrangere->id.'>'.$cleEtrangere->libelle.'</td>';\n } else {\n $retour .= '<td columnName='.$columnNameId.'></td>';\n }\n } else {\n $retour .= '<td columnName='.$columnName.'>'.$attribut.'</td>';\n }\n break;\n case 'boolean' :\n $retour .= '<td>';\n if($attribut != null && $attribut == 1) {\n $retour .= '<span class=\"checkbox checkbox_active\" value=\"1\" columnName='.$columnName.' '.$disabled.'></span></div>';\n } else {\n $retour .= '<span class=\"checkbox\" value=\"0\" columnName='.$columnName.' '.$disabled.'></span></td>';\n };\n break;\n }\n return $retour;\n}",
"function verifyCreateTableWithNoSpecialEffects(){\n $WIKI_TABLE_ROW = \"6\";\n $WIKI_TABLE_COL = \"2\";\n parent::doExpandAdvanceSection();\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_ADDTABLE);\n $this->click(CHK_BOARDER);\n $this->click(CHK_HEADER);\n $this->type(TEXT_ROW, $WIKI_TABLE_ROW);\n $this->type(TEXT_COL, $WIKI_TABLE_COL);\n $this->click(BUTTON_INSERTABLE);\n $this->click(CHK_BOARDER);\n $this->click(CHK_HEADER);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $this->assertTrue($this->isElementPresent(TEXT_TABLEID_OTHER . \n TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .\n TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .\n TEXT_VALIDATE_TABLE_PART3));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }",
"protected abstract function createTestTable();",
"public function testTableBasics()\n {\n $this->assertEquals('pgtable1', $this->table->getName());\n $this->assertEquals('public', $this->table->getSchema());\n $this->assertEquals('public.pgtable1', $this->table->getFQN());\n $this->assertEquals('public.pgtable1 alia', $this->table->getFQN('alia'));\n $this->assertEquals('\"public\".\"pgtable1\"', $this->table->getFQNQuoted());\n $this->assertEquals('\"public\".\"pgtable1\" \"alia\"',\n $this->table->getFQNQuoted('alia'));\n }",
"function ispis_tablice($ucenici)\n {\n echo '<table border=1>';\n foreach ($ucenici as $key => $ime) {\n echo '<tr><td>'\n .$key.'</td>;\n <td>'.$ime.'</td>;\n </tr>';\n }\n echo '</table>';\n }",
"function verifyCreateTableWithHeadRow(){\n $WIKI_TABLE_ROW = 3;\n $WIKI_TABLE_COL = \"4\";\n parent::doExpandAdvanceSection();\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_ADDTABLE);\n $this->click(CHK_BOARDER);\n $this->type(TEXT_ROW, $WIKI_TABLE_ROW);\n $this->type(TEXT_COL, $WIKI_TABLE_COL);\n $this->click(BUTTON_INSERTABLE);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $WIKI_TABLE_ROW = $WIKI_TABLE_ROW+1;\n $this->assertTrue($this->isElementPresent(TEXT_TABLEID_OTHER .\n TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .\n TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .\n TEXT_VALIDATE_TABLE_PART3));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }",
"public function testTableNames()\n\t{\n\t\t$container = $this->containerFactory();\n\n\t\t//Select entry\n\t\t$this->assertEquals(\n\t\t\t$this->entryTableName(),\n\t\t\t$container\n\t\t\t\t->getQueries()\n\t\t\t\t->entrySelect()\n\t\t\t\t->getTableName()\n\t\t);\n\n\t\t//Select entry value\n\t\t$this->assertEquals(\n\t\t\t$this->entryValueTableName(),\n\t\t\t$container\n\t\t\t\t->getQueries()\n\t\t\t\t->entryValuesSelect()\n\t\t\t\t->getTableName()\n\t\t);\n\n\t\t//Delete entry\n\t\t$this->assertEquals(\n\t\t\t$this->entryTableName(),\n\t\t\t$container\n\t\t\t\t->getQueries()\n\t\t\t\t->entryDelete()\n\t\t\t\t->getTableName()\n\t\t);\n\n\t\t//Delete entry values\n\t\t$this->assertEquals(\n\t\t\t$this->entryValueTableName(),\n\t\t\t$container\n\t\t\t\t->getQueries()\n\t\t\t\t->entryValueDelete()\n\t\t\t\t->getTableName()\n\t\t);\n\t}",
"public function testDisplaySet() {\n\t\t$table = new Table([\n\t\t\t'table' => 'users',\n\t\t\t'schema' => [\n\t\t\t\t'id' => ['type' => 'string'],\n\t\t\t\t'foo' => ['type' => 'string'],\n\t\t\t\t'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]\n\t\t\t]\n\t\t]);\n\t\t$this->assertEquals('id', $table->displayField());\n\t\t$table->displayField('foo');\n\t\t$this->assertEquals('foo', $table->displayField());\n\t}",
"function verifyCreateTableWithSortRow(){\n $WIKI_TABLE_ROW = \"2\";\n $WIKI_TABLE_COL = \"5\";\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_ADDTABLE);\n $this->click(CHK_HEADER);\n $this->click(CHK_BOARDER);\n $this->click(CHK_SORT);\n $this->type(TEXT_ROW, $WIKI_TABLE_ROW);\n $this->type(TEXT_COL, $WIKI_TABLE_COL);\n $this->click(BUTTON_INSERTABLE);\n $this->click(CHK_HEADER);\n $this->click(CHK_BOARDER);\n $this->click(CHK_SORT);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $this->assertTrue($this->isElementPresent(TEXT_TABLEID_WITHALLFEATURES . \n TEXT_VALIDATE_TABLE_PART1 . $WIKI_TABLE_ROW .\n TEXT_VALIDATE_TABLE_PART2 . $WIKI_TABLE_COL .\n TEXT_VALIDATE_TABLE_PART3));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }",
"abstract public function tableColumns();",
"public function testGetFromTableWithAllFields()\n {\n $db = 'PMA_db';\n $table = 'PMA_table';\n\n $GLOBALS['dbi']->expects($this->once())\n ->method('fetchResult')\n ->with(\n \"SELECT * FROM `pma_central_columns` \"\n . \"WHERE db_name = 'PMA_db' AND col_name IN ('id','col1','col2');\",\n null, null, DatabaseInterface::CONNECT_CONTROL\n )\n ->will(\n $this->returnValue(array_slice($this->columnData, 0, 2))\n );\n $this->assertEquals(\n array_slice($this->modifiedColumnData, 0, 2),\n $this->centralColumns->getFromTable(\n $db,\n $table,\n true\n )\n );\n }",
"function getColumnas($conn, $exitosa) {\n\t\tif ($exitosa){\t\t\t\n\t\t\t$sql = 'SELECT c1_int, c2_int FROM #php_test_table';\n\t\t\t\n\t\t\techo '<table border=1 >';\t\t\n\t\t\tprint \"<tr>\";\n\t\t\tprint \"<td><b> c1_int </b></td>\";\n\t\t\tprint \"<td><b> c2_int </b></td>\";\n\t\t\tprint \"</tr>\";\n\t\t\tforeach ($conn->query($sql) as $row) {\n\t\t\t\tprint \"<tr>\";\n\t\t\t\tprint \"<td>\" . $row['c1_int'] . \"</td>\";\n\t\t\t\tprint \"<td>\" . $row['c2_int'] . \"</td>\";\n\t\t\t\tprint \"</tr>\";\n\t\t\t}\n\t\t\techo '</table>';\n\t\t}\n\t}",
"public function print_table_description()\n {\n }",
"public function tableColumns($table,$column);",
"public function testHasValidTableName()\n {\n $this->assertSame('tbl_fields_types', $this->stub->getTable());\n }",
"public function getTableColumns()\n\t{\n\t}",
"public function testTableName() {\n $this->assertEquals('camelCases', Inflector::tableName('camel Case'));\n $this->assertEquals('studlyCases', Inflector::tableName('StuDly CaSe'));\n $this->assertEquals('titleCases', Inflector::tableName('Title Case'));\n $this->assertEquals('normalCases', Inflector::tableName('Normal case'));\n $this->assertEquals('lowercases', Inflector::tableName('lowercase'));\n $this->assertEquals('uppercases', Inflector::tableName('UPPERCASE'));\n $this->assertEquals('underScores', Inflector::tableName('under_score'));\n $this->assertEquals('dashEs', Inflector::tableName('dash-es'));\n $this->assertEquals('123Numbers', Inflector::tableName('123 numbers'));\n $this->assertEquals('withExtxmls', Inflector::tableName('with EXT.xml'));\n $this->assertEquals('lotsOfWhiteSpaces', Inflector::tableName('lots of white space'));\n }",
"function generateColonneByType($table, $columnName, $recherche=false, $attribut=null, $disabled=false) {\n $columnName = strtolower($columnName);\n $retour = '';\n $disabled = $disabled ? 'disabled' : '';\n $recherche = $recherche ? 'rechercheTableStatique' : '';\n $type = $table->getTypeOfColumn($columnName);\n switch ($type) {\n case 'string':\n $cantBeNull = $table->getColumnDefinition($columnName);\n $cantBeNull['notnull'] == 1 ? $class = 'requis' : $class = '';\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' : </span>\n <span><input class=\"contour_field input_char '.$recherche.' '.$class.'\" type=\"text\" columnName='.$columnName.' value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>';\n break;\n case 'float' :\n case 'integer' :\n if (preg_match('#^id[a-zA-Z]+#', $columnName)) {\n $columnName = substr($columnName, 2);\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' :</span>\n <span><input type=\"text\" class=\"contour_field input_char autoComplete\" id=\"'.$columnName.'\" table=\"'.$columnName.'\" champ=\"libelle\" value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>'; \n } else {\n $cantBeNull = $table->getColumnDefinition($columnName);\n $cantBeNull['notnull'] == 1 ? $class = 'requis' : $class = '';\n $retour .= '\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' :</span>\n <span><input type=\"text\" class=\"contour_field input_num '.$class.'\" columnName='.$columnName.' value=\"'.$attribut.'\"'.$disabled.'/></span>\n </div>';\n }\n \n break;\n case 'boolean' :\n $retour .='\n <div class=\"colonne\">\n <span class=\"attribut\">'.$columnName.' : </span>';\n if($attribut != null && $attribut == 1) {\n $retour .= '<span class=\"checkbox checkbox_active\" value=\"1\" columnName='.$columnName.' '.$disabled.'></span></div>';\n } else {\n $retour .= '<span class=\"checkbox\" value=\"0\" columnName='.$columnName.' '.$disabled.'></span></div>';\n };\n break;\n }\n return $retour;\n}",
"public function getTableDescription();",
"private function createDummyTable() {}",
"public function testTable()\n {\n $statement = (new CreateTable($this->mockConnection));\n $return = $statement->table('name');\n $array = $statement->toArray();\n\n $this->assertInstanceOf(CreateTable::class, $return);\n $this->assertEquals([\n 'table' => 'name',\n ], $array);\n }",
"public function testSetAutoriseSaisieTpsColonnes() {\n\n $obj = new Collaborateurs();\n\n $obj->setAutoriseSaisieTpsColonnes(true);\n $this->assertEquals(true, $obj->getAutoriseSaisieTpsColonnes());\n }",
"public function testDisplayFieldName() {\n\t\t$table = new Table([\n\t\t\t'table' => 'users',\n\t\t\t'schema' => [\n\t\t\t\t'foo' => ['type' => 'string'],\n\t\t\t\t'name' => ['type' => 'string']\n\t\t\t]\n\t\t]);\n\t\t$this->assertEquals('name', $table->displayField());\n\t}",
"public function isTableOverlay();",
"function it_should_make_the_example_table()\n {\n \t$table = '| Tables | Are | Cool |' . PHP_EOL . \n\t\t\t\t '|----------|:-------------:|------:|' . PHP_EOL .\n\t\t\t\t '| col 1 is | left-aligned | $1600 |' . PHP_EOL .\n\t\t\t\t '| col 2 is | centered | $12 |' . PHP_EOL .\n\t\t\t\t '| col 3 is | right-aligned | $1 |' . PHP_EOL;\n\n \t$this->headers(['Tables','Are','Cool']) //headers\n\t\t\t->align(['L','C','R']) // set column alignment\n\t\t\t->rows([ // add multiple rows at once\n\t\t\t\t['col 1 is', 'left-aligned', '$1600'],\n\t\t\t\t['col 2 is', 'centered', '$12'],\n\t\t\t])\n\t\t\t->row(['col 3 is', 'right-aligned', '$1'])\n\t\t\t->render()\n\t\t\t->shouldReturn($table);\n }",
"public function testTableName()\n {\n $assoc = Mad_Model_Association_Base::factory('hasMany', 'Articles', array(), new User);\n $this->assertEquals('users', $assoc->tableName());\n }",
"public function testGetTableDescription()\n {\n $database = oxDb::getInstance();\n $database->flushTableDescriptionCache();\n\n $resultSet = oxDb::getDb()->select(\"SHOW TABLES\");\n $count = 3;\n if ($resultSet != false && $resultSet->count() > 0) {\n while (!$resultSet->EOF && $count--) {\n $tableName = $resultSet->fields[0];\n\n $metaColumns = oxDb::getDb()->metaColumns($tableName);\n $metaColumnOne = oxDb::getInstance()->getTableDescription($tableName);\n $metaColumnOneCached = oxDb::getInstance()->getTableDescription($tableName);\n\n $this->assertEquals($metaColumns, $metaColumnOne, \"not cached return is bad [shouldn't be] of $tableName.\");\n $this->assertEquals($metaColumns, $metaColumnOneCached, \"cached [simple] return is bad of $tableName.\");\n\n $resultSet->fetchRow();\n }\n } else {\n $this->fail(\"No tables found with 'SHOW TABLES'!\");\n }\n }",
"public function testResultGetTableNames()\n {\n $this->assertEquals(array('test'), $this->conn->query('SELECT * FROM test')->getTableNames());\n \t$this->assertEquals(array('test', 'child'), $this->conn->query('SELECT * FROM test INNER JOIN child ON test.id = child.idTest')->getTableNames(), \"test, child\");\n }",
"public function getTableHeaders()\n {\n return ['#', 'Fatura','Ordem Servico'];\n }",
"public function tableWizard() {}",
"function showTestTable(&$dbh,$d)\n {\n $shown = 0;\n $dbh->QueryResult('SELECT ID,VAL FROM OCI8_CLASS_TEST_TABLE ORDER BY ID');\n while($data = $dbh->FetchResult())\n {\n printf(\"%5d. %s%s\",$data['ID'],$data['VAL'],$d['LF']);\n $shown++;\n }\n $dbh->FreeResult();\n if(!$shown)\n {\n printf(\"No data in table.%s\",$d['LF']);\n }\n }",
"public function testSetInitTable() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setInitTable(\"initTable\");\n $this->assertEquals(\"initTable\", $obj->getInitTable());\n }",
"public function test_table_setDisplayFields_sets_display_fields()\n {\n $this->Table->setDisplayFields(['name', 'birthday', 'email']);\n\n $this->assertEquals($this->display_fields, $this->Table->getDisplayFields());\n }",
"function describe($table){\n\t\treturn(array());\n\t}",
"public function testColumnaCompleta(CartonInterface $carton) {\n\t$flag = true;\t\n\tforeach( $carton->columnas() as $col ){\t\n\t\t$cant = 0;\t\n\t\tforeach( $col as $num ){\n\t\t\tif($num != 0){\n\t\t\t$cant++;\t\t\t\n\t\t\t}\n\t\t}\n\t\tif($cant == 3){\n\t\t$flag = false;\n\t\t}\n\t}\n $this->assertTrue($flag);\n }",
"public function testCanReturnListOfTableFields()\n\t {\n\t\t$this->assertEquals(false, $this->object->fields(\"nonexistenttable\"));\n\t\t$this->assertEquals(array(\"id\", \"string\", \"testblob\"), $this->object->fields(\"MySQLdatabase\"));\n\t }",
"public function testCheckTableExist() {\n\n\t}",
"public function describe(string $table): array;",
"public function testTableMethod() {\n\t\t$table = new Table(['table' => 'users']);\n\t\t$this->assertEquals('users', $table->table());\n\n\t\t$table = new UsersTable;\n\t\t$this->assertEquals('users', $table->table());\n\n\t\t$table = $this->getMockBuilder('Table')\n\t\t\t\t->setMethods(['find'])\n\t\t\t\t->setMockClassName('SpecialThingsTable')\n\t\t\t\t->getMock();\n\t\t$this->assertEquals('special_things', $table->table());\n\n\t\t$table = new Table(['alias' => 'LoveBoats']);\n\t\t$this->assertEquals('love_boats', $table->table());\n\n\t\t$table->table('other');\n\t\t$this->assertEquals('other', $table->table());\n\t}",
"public function checkThatColumnsWorkToo(): void\n {\n $name = 'fluent-field';\n $label = 'Fun stuff:';\n Column::make($name)->testAttribute($label);\n\n $columns = $this->crudPanel->column($name);\n $this->assertCount(1, $columns);\n $this->assertArrayHasKey($name, $columns);\n $columnToTest = $columns[$name];\n $this->assertEquals('text', $columnToTest['type']);\n $this->assertEquals($label, $columnToTest['testAttribute']);\n }",
"private function populateDummyTable() {}",
"public function checkForTable( $table );",
"public function test_table_getDisplayFields_retrieves_display_fields()\n {\n $this->Table->setDisplayFields(['name', 'birthday', 'email']);\n\n $this->assertEquals($this->display_fields, $this->Table->getDisplayFields());\n }",
"public abstract function get_columns($table);",
"protected function cleanTableNames() {}",
"protected function startTable() {}",
"public function testGetColumn() {\n\n $obj = new DataTablesRequest();\n\n $this->assertNull($obj->getColumn(\"data\"));\n\n $obj->setColumns([$this->dtColumn]);\n $this->assertSame($this->dtColumn, $obj->getColumn(\"data\"));\n }",
"function createTableString($tablas){\n\t\tglobal $formatedTables;\n\n\t\tforeach ($tablas as $key => $value) {\n\t\t\tif(!@in_array($value, $formatedTables)){\n\t\t\t\t$formatedTables[] = $value;\n\t\t\t}\n\t\t}\n\t}",
"function createTableString($tablas){\n\t\tglobal $formatedTables;\n\n\t\tforeach ($tablas as $key => $value) {\n\t\t\tif(!@in_array($value, $formatedTables)){\n\t\t\t\t$formatedTables[] = $value;\n\t\t\t}\n\t\t}\n\t}",
"abstract public function tableName();",
"abstract public function tableName();",
"function testTabular()\r\n\t{\r\n\t\t$olap = new Olap($this->dbh);\r\n\t\t$cube = $olap->getCube(\"tests/testcube\");\r\n\r\n\t\t// Now record that '/index.php' has received 100 hits in the us\r\n\t\t$data = array(\r\n\t\t\t'page' => \"/index.php\",\r\n\t\t\t'country' => \"us\",\r\n\t\t);\r\n\t\t$measures = array(\"hits\" => 100);\r\n\t\t$cube->writeData($measures, $data);\r\n\t\t$data = array(\r\n\t\t\t'page' => \"/about.php\",\r\n\t\t\t'country' => \"us\",\r\n\t\t);\r\n\t\t$measures = array(\"hits\" => 50);\r\n\t\t$cube->writeData($measures, $data);\r\n\r\n\t\t// Extract the data in a single dimension\r\n\t\t$query = new Olap_Cube_Query();\r\n\t\t$query->addDimension(\"page\");\r\n\t\t$query->addFilter(\"and\", \"country\", \"is_equal\", \"us\");\r\n\t\t$data = $cube->getTabularData($query);\r\n\t\t$this->assertEquals($data[0]['page'], \"/index.php\");\r\n\t\t$this->assertEquals($data[1]['page'], \"/about.php\");\r\n\r\n\t\t// Cleanup\r\n\t\t$cube->remove();\r\n\t}",
"private function prepareTables() {}",
"protected function createTestTables()\n {\n $db = $this->getDb();\n\n $table = 'EmailTemplateAr';\n $columns = [\n 'id' => 'pk',\n 'name' => 'string',\n 'subject' => 'string',\n 'bodyHtml' => 'text',\n ];\n $db->createCommand()->createTable($table, $columns)->execute();\n\n $columns = [\n 'name' => 'TestActiveMessage',\n 'subject' => 'test subject',\n 'bodyHtml' => 'test body HTML',\n ];\n $db->createCommand()->insert($table, $columns)->execute();\n }",
"public function testDisplayFallback() {\n\t\t$table = new Table([\n\t\t\t'table' => 'users',\n\t\t\t'schema' => [\n\t\t\t\t'id' => ['type' => 'string'],\n\t\t\t\t'foo' => ['type' => 'string'],\n\t\t\t\t'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]\n\t\t\t]\n\t\t]);\n\t\t$this->assertEquals('id', $table->displayField());\n\t}",
"public function columns($table_name);",
"public function createTable($prenotazioni) {\r\n echo \"<table id='tblPrenotazioni' summary='Tabella che riporta le prenotazioni delle aule di interesse per gli studenti di Matematica e Informatica.' >\";\r\n echo \"<thead>\";\r\n echo \"<tr> <th> ORARIO: </th>\";\r\n // NUMERO DI AULE:\r\n $numAule = 0;\r\n foreach (self::$array_aule as $aula) {\r\n echo \"<th> $aula </th>\";\r\n $numAule++;\r\n }\r\n echo \"</tr>\";\r\n echo \"</thead>\";\r\n echo \"<tbody>\";\r\n for ($i = 0; $i <= 22; $i++) {\r\n echo \"<tr> <td class='indice_ora'> \".$this->convertiInOra($i).\" </td>\";\r\n if (isset($prenotazioni[$i])) {\r\n foreach (self::$array_aule as $aula) {\r\n if (isset($prenotazioni[$i][$aula])) {\r\n if ($prenotazioni[$i][$aula]==\"\\\"\")\r\n echo \"<td class='apici'> <span > \\\" </span> </td>\";\r\n else\r\n echo \"<td class='corso'> <span>\" . $prenotazioni[$i][$aula][4] . \"</span> </td>\";\r\n } else {\r\n echo \"<td> </td>\";\r\n $this->arrayAuleLibere[$i][$aula]=\"libera\";\r\n }\r\n }\r\n } else {\r\n for ($j = 0; $j < $numAule; $j++)\r\n echo \"<td> </td>\";\r\n $this->arrayAuleLibere[$i]=\"tutto libero\";\r\n }\r\n echo \"</tr>\";\r\n } \r\n echo \"</tbody>\";\r\n echo \"</table>\";\r\n //var_dump($this->arrayAuleLibere);\r\n }",
"function listColumns($tablename);",
"function table()\n {\n return array('pattern' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,\n 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);\n }",
"function describe($table) {\r\n \treturn $this->column_definitions($table);\r\n\r\n }",
"function testGetTable1()\n {\n print \"\\n\" . \">testGetTable1\";\n $db =& $this->db;\n $table = $db->getTable();\n if (PEAR::isError($table)) {\n $success = false;\n print $table->getMessage();\n } else {\n $success = is_array($table);\n if (!$success) {\n print \"Table is not an array in testGetTable1\";\n }\n }\n $this->assertTrue($success);\n }",
"private function _createTables()\r\n {\r\n return true;\r\n }",
"public abstract function getColumns($table);",
"public function getTableData()\n\t{\n\t}",
"abstract function tableName();",
"public function ShowInTable()\n {\n if ($this->Name) {\n return true;\n }\n }",
"public function getTableNames();",
"abstract public static function tableName() : string;",
"public function initTable(){\n\t\t\t\n\t\t}",
"public function setTableDefinition()\n {\n foreach ($this->_columns as $column) {\n $this->hasColumn($column['name'], $column['type'], $column['length'], $column['options']);\n }\n }",
"function tabla02($array01){\n\t$i = '0';\n\t$array02[$i++] = \"<table border=\\\"1\\\">\";\n\tforeach( $array01 as $key => $value){\n\t\tif ( $key == 'id' or $key == 'ID' or $key == 'Id'){\n\t\t\t$array02[$i++] = \"<tr><td>\".$key.\"</td><td>\".$value.\"</td><td> - </td></tr>\\n\";\n\t\t} else{\n\t\t\t$array02[$i++] = \"<tr><td>\".$key.\"</td><td>\".$value.\"</td><td>\".$value.\"</td></tr>\\n\";\n\t\t}\n\t}\n\t$array02[$i++] = \"</table>\";\n\treturn $array02;\n}",
"public static function table($table)\n {\n }",
"public function getTableHeaders()\n {\n return ['ID', 'Ponto', 'Endereço', 'Cidade'];\n }",
"public function show_table_sturcture()\n\t{\n\t\t$str_input_html = \"\";\n\t\t$table = \"default_module_test\";\n\t\t$table = $this->db->escape_str($table);\n\t\t//$sql = \"DESCRIBE `$table`\";\n\t\t//$desc = $this->db->where('Field','sorts')->query($sql)->row();\n\t\t$desc = Easy_Database_Manage::get_table_desc($table);\n\t\techo \"<pre>\";\n\t\techo print_r($desc);\n\t\techo \"</pre>\";\n\t\n\t}",
"public function getTableHeaders()\n {\n return ['#', 'Autor', 'Título', 'Subtítulo', 'Preço', 'Categorias'];\n }",
"public function ListTable()\n {\n echo $this->ListTableText();\n }",
"public function testGetDataTableRowAndColumnOrder() {\r\n\t\t// Create values via SQL\r\n $records = [\r\n ['UUID' => 'uuid1tRMR1', 'bool' => false, 'int' => 10, 'string' => 'testGetDataTable 1'],\r\n ['UUID' => 'uuid1tRMR2', 'bool' => true, 'int' => 20, 'string' => 'testGetDataTable 2'],\r\n ['UUID' => 'uuid1tRMR3', 'bool' => false, 'int' => 30, 'string' => 'testGetDataTable 3']\r\n ];\r\n // Write data to the database\r\n foreach ($records as $record) {\r\n $this->executeQuery('insert into POTEST (UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE) values (\\''.$record['UUID'].'\\','.($record['bool'] ? 1:0).','.$record['int'].', \\''.$record['string'].'\\')');\r\n }\r\n\t\t// Get value data table with columns in different order\r\n\t\t$datatablecolumnsordered = $this->getPersistenceAdapter()->getDataTable('select STRING_VALUE, BOOLEAN_VALUE, UUID, INT_VALUE from POTEST');\r\n\t\t$headerscolumnsordered = $datatablecolumnsordered->getHeaders();\r\n\t\t$this->assertEquals(4, count($headerscolumnsordered), 'Wrong header names count');\r\n\t\t$this->assertEquals('STRING_VALUE', $headerscolumnsordered[0], 'Column 0 has wrong header name');\r\n\t\t$this->assertEquals('BOOLEAN_VALUE', $headerscolumnsordered[1], 'Column 1 has wrong header name');\r\n\t\t$this->assertEquals('UUID', $headerscolumnsordered[2], 'Column 2 has wrong header name');\r\n\t\t$this->assertEquals('INT_VALUE', $headerscolumnsordered[3], 'Column 3 has wrong header name');\r\n\t\t$datamatrixcolumnsordered = $datatablecolumnsordered->getDataMatrix();\r\n\t\t$this->assertEquals(3, count($datamatrixcolumnsordered), 'Wrong row count');\r\n\t\tfor ($i = 0; $i < 3; $i++) {\r\n\t\t\t$this->assertEquals(4, count($datamatrixcolumnsordered[$i]), 'Wrong column count in row '.$i);\r\n\t\t\t// The cell values are all strings\r\n\t\t\t$this->assertEquals(''.$records[$i]['string'], $datamatrixcolumnsordered[$i][0], 'Cell content does not match in row '.$i.' in column 0');\r\n\t\t\t$this->assertEquals(''.($records[$i]['bool']?1:0), $datamatrixcolumnsordered[$i][1], 'Cell content does not match in row '.$i.' in column 1');\r\n\t\t\t$this->assertEquals(''.$records[$i]['UUID'], $datamatrixcolumnsordered[$i][2], 'Cell content does not match in row '.$i.' in column 2');\r\n\t\t\t$this->assertEquals(''.$records[$i]['int'], $datamatrixcolumnsordered[$i][3], 'Cell content does not match in row '.$i.' in column 3');\r\n\t\t}\r\n\t\t// Get value data table with rows in different order\r\n\t\t$datatablerowsordered = $this->getPersistenceAdapter()->getDataTable('select UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE from POTEST order by INT_VALUE desc');\r\n\t\t$headersrowsordered = $datatablerowsordered->getHeaders();\r\n\t\t$this->assertEquals(4, count($headersrowsordered), 'Wrong header names count');\r\n\t\t$this->assertEquals('UUID', $headersrowsordered[0], 'Column 0 has wrong header name');\r\n\t\t$this->assertEquals('BOOLEAN_VALUE', $headersrowsordered[1], 'Column 1 has wrong header name');\r\n\t\t$this->assertEquals('INT_VALUE', $headersrowsordered[2], 'Column 2 has wrong header name');\r\n\t\t$this->assertEquals('STRING_VALUE', $headersrowsordered[3], 'Column 3 has wrong header name');\r\n\t\t$datamatrixrowsordered = $datatablerowsordered->getDataMatrix();\r\n\t\t$this->assertEquals(3, count($datamatrixrowsordered), 'Wrong row count');\r\n\t\t// Row 0\r\n\t\t$this->assertEquals(''.$records[2]['UUID'], $datamatrixrowsordered[0][0], 'Cell content does not match in row 0 in column 0');\r\n\t\t$this->assertEquals(''.($records[2]['bool']?1:0), $datamatrixrowsordered[0][1], 'Cell content does not match in row 0 in column 1');\r\n\t\t$this->assertEquals(''.$records[2]['int'], $datamatrixrowsordered[0][2], 'Cell content does not match in row 0 in column 2');\r\n\t\t$this->assertEquals(''.$records[2]['string'], $datamatrixrowsordered[0][3], 'Cell content does not match in row 0 in column 3');\r\n\t\t// Row 1\r\n\t\t$this->assertEquals(''.$records[1]['UUID'], $datamatrixrowsordered[1][0], 'Cell content does not match in row 0 in column 0');\r\n\t\t$this->assertEquals(''.($records[1]['bool']?1:0), $datamatrixrowsordered[1][1], 'Cell content does not match in row 0 in column 1');\r\n\t\t$this->assertEquals(''.$records[1]['int'], $datamatrixrowsordered[1][2], 'Cell content does not match in row 0 in column 2');\r\n\t\t$this->assertEquals(''.$records[1]['string'], $datamatrixrowsordered[1][3], 'Cell content does not match in row 0 in column 3');\r\n\t\t// Row 2\r\n\t\t$this->assertEquals(''.$records[0]['UUID'], $datamatrixrowsordered[2][0], 'Cell content does not match in row 0 in column 0');\r\n\t\t$this->assertEquals(''.($records[0]['bool']?1:0), $datamatrixrowsordered[2][1], 'Cell content does not match in row 0 in column 1');\r\n\t\t$this->assertEquals(''.$records[0]['int'], $datamatrixrowsordered[2][2], 'Cell content does not match in row 0 in column 2');\r\n\t\t$this->assertEquals(''.$records[0]['string'], $datamatrixrowsordered[2][3], 'Cell content does not match in row 0 in column 3');\r\n\t}",
"function testGetCol1() \n {\n print \"\\n\" . \">testGetCol1\";\n $db =& $this->db;\n $col = $db->getCol();\n /*\n foreach ($col as $column => $tables) {\n print \"\\n\" . \"$column\" . implode(', ', $tables);\n }\n */\n $this->assertEquals($col, $this->col);\n }",
"public function getTableRowNames()\n \t{\n \t\treturn array('title', 'author', 'date', 'email', 'website', 'comment', 'relevantSection', 'relevantItemId', 'isApproved', 'isPrivate', 'isAdminComment');\n \t}",
"public function testCorrectTabSpacing() {\n\t\t$code = <<<EOD\narray(\n\t'foobar' => 'bar',\n\t'foo'\t => 'bar',\n);\nEOD;\n\t\t$this->assertRulePass($code, $this->rule);\n\t}",
"abstract protected function columns();",
"public function testSongDatabase1()\n {\n $this->assertTrue(\n Schema::hasColumns('songs', [\n 'id', 'title', 'detail'\n ]),\n // 1\n );\n }",
"public function test_get_row() {\n }",
"protected function tableModel()\n {\n }",
"public static function tableName(): string;",
"function testRow ($row, $rowSchema = null) {}",
"public function testSaveDataTableColumnNameEmpty() {\r\n\t\t$datatable = new avorium_core_data_DataTable(1, 1);\r\n\t\t$datatable->setHeader(0, '');\r\n\t\t$datatable->setCellValue(0, 0, '0');\r\n $this->setExpectedException('Exception', 'The header name is empty but must not be.');\r\n\t\t$this->getPersistenceAdapter()->saveDataTable('POTEST', $datatable);\r\n\t}",
"protected function _initsTable() {}",
"function prikazi_sqltabelu($sql_tabela) {\n\n\tglobal $db;\n\n\techo \"<table class='dt-table'>\";\n\techo \"<h2>\" . $sql_tabela . \"</h2>\";\n\n\t// generisanje headera tabele (prikaz podataka)\n\n\t$komanda_head = \"SELECT * FROM $sql_tabela LIMIT 1\";\n\t$result_head = mysql_query($komanda_head, $db);\t\n\n\twhile ( $red = mysql_fetch_assoc($result_head) ) :\n\n\t\t$m = 0;\n\n\t\techo \"<tr class='dt-table'>\";\n\n\t\tforeach ($red as $item) {\n\t\n\t\t\t$kolona = mysql_field_name($result_head, $m);\n \t\t\techo \"<td class='dt-table'>\" . $kolona . \"</td>\";\n \t\t\t//echo \"<td>\" . $item . \"</td>\";\n \t\t$m++;\n\n\t\t}\n\n\t\techo \"</tr>\";\n\n\tendwhile;\n\n\t// generisanje tela tabele (prikaz podataka)\n\n\t$komanda_body = \"SELECT * FROM $sql_tabela\";\n\t$result_body = mysql_query($komanda_body, $db);\n\n\n\twhile ( $red = mysql_fetch_assoc($result_body) ) :\n\n\t\t$n = 0;\n\n\t\techo \"<tr class='dt-table'>\";\n\n\t\tforeach ($red as $item) {\n\t\n\t\t\t$kolona = mysql_field_name($result_body, $n);\n \t\t\techo \"<td class='dt-table'>\" . $item . \"</td>\";\n \t\t$n++;\n\n\t\t}\n\n\t\techo \"</tr>\";\n\n\tendwhile;\n\n\techo \"</table>\";\n\n}",
"public function create_columns()\n {\n $this->assertTrue(\n Schema::hasColumns('logs', [\n 'id',\n 'user_id',\n 'log',\n 'day',\n 'created_at',\n 'updated_at',\n ])\n );\n }",
"function titulopersonal(){\n print (\"\\n<tr>\");\n if($this->titulo !=\"\")\n foreach ($this->titulo as $titulo){\n print (\"\\n<th>$titulo</th>\");\n }\n print (\"\\n<tr>\"); \n }",
"public function getTableInformation() {}",
"function getColumnasFomTable($tabla)\n{\n $query = \"SELECT cols.ordinal_position as posicion,cols.column_name as nombre,cols.data_type\"\n .\" FROM information_schema.columns cols\"\n .\" WHERE\"\n .\" cols.table_name=?\"\n .\" and cols.column_name not in ('created_at', 'updated_at')\"\n .\" order by posicion\";\n\n $lista = \\DB::select($query, [$tabla]);\n $columnas = array();\n foreach($lista as $item){\n $columnas[$item->nombre] = str_oracion($item->nombre);\n }\n\n return $columnas;\n}",
"public function canGetTableName() {\n\t\t$provider = $this->getConfigurationProviderInstance();\n\t\t$record = $this->getBasicRecord();\n\t\t$tableName = $provider->getTableName($record);\n\t\t$this->assertNull($tableName);\n\t}",
"protected function _getTableOptions(){ }",
"protected function resultLines(Table $table): void\n {\n //\n }"
] | [
"0.6934664",
"0.6620553",
"0.6577331",
"0.6511415",
"0.65077174",
"0.6484909",
"0.6388969",
"0.63177115",
"0.6301745",
"0.62907684",
"0.6247316",
"0.6209604",
"0.61929166",
"0.6175343",
"0.6169093",
"0.61686283",
"0.60941327",
"0.6089316",
"0.60888046",
"0.60689485",
"0.60418916",
"0.60127956",
"0.59984803",
"0.59696263",
"0.5961225",
"0.59531045",
"0.5938618",
"0.5929952",
"0.5921525",
"0.588262",
"0.5870893",
"0.58703524",
"0.586054",
"0.58547425",
"0.58140516",
"0.57958287",
"0.57937944",
"0.57739174",
"0.5759585",
"0.5753371",
"0.57174945",
"0.57045937",
"0.56947905",
"0.5683994",
"0.56700224",
"0.56274813",
"0.5626645",
"0.5614582",
"0.5602073",
"0.559981",
"0.5597343",
"0.55917543",
"0.55917543",
"0.5587876",
"0.5587876",
"0.558077",
"0.5574861",
"0.55731446",
"0.55702096",
"0.5546885",
"0.55459577",
"0.5542362",
"0.5512978",
"0.5509646",
"0.5505757",
"0.549257",
"0.54726034",
"0.5467385",
"0.54592097",
"0.5453846",
"0.54507923",
"0.545037",
"0.54466003",
"0.544572",
"0.5445478",
"0.5434174",
"0.5426006",
"0.54242015",
"0.5422182",
"0.5421508",
"0.5417832",
"0.54130733",
"0.5403527",
"0.5394856",
"0.53942955",
"0.5383679",
"0.5381794",
"0.538177",
"0.5380555",
"0.5380263",
"0.53770155",
"0.53763",
"0.53746444",
"0.5363881",
"0.5362486",
"0.53604686",
"0.53596944",
"0.5348292",
"0.5347574",
"0.53343844"
] | 0.5915921 | 29 |
Display a listing of the resource. | public function indexPublic(Company $company)
{
return $this->jobPostRepository->indexPubic($company);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }",
"public function listing();",
"function index() {\n\t\t$this->show_list();\n\t}",
"public function actionList() {\n $this->_getList();\n }",
"public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }",
"public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }",
"public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }",
"function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}",
"public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }",
"public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }",
"public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}",
"function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}",
"public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }",
"public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}",
"public function actionRestList() {\n\t $this->doRestList();\n\t}",
"public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}",
"public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }",
"public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }",
"public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}",
"public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}",
"public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }",
"public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }",
"public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }",
"public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }",
"public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}",
"public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }",
"public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}",
"public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }",
"public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }",
"public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }",
"public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}",
"public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }",
"public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }",
"public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }",
"public function index()\n {\n return Resources::collection(Checking::paginate());\n }",
"public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }",
"public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }",
"public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }",
"public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }",
"public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }",
"public function view(){\n\t\t$this->buildListing();\n\t}",
"public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }",
"public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }",
"public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }",
"public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }",
"public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }",
"public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }",
"public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }",
"public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }",
"public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }",
"public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}",
"public function listAction() {}",
"public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }",
"public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }",
"public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }",
"public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }",
"public function executeList()\n {\n $this->setTemplate('list');\n }",
"public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }",
"function listing() {\r\n\r\n }",
"public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }",
"public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }",
"public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}",
"public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }",
"public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }",
"public function _index(){\n\t $this->_list();\n\t}",
"public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}",
"function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}",
"public function index()\n {\n $this->booklist();\n }",
"public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }",
"public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }",
"public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }",
"public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }",
"public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }",
"public function indexAction() {\n $this->_forward('list');\n }",
"public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }",
"public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }",
"public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}",
"public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }",
"public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }",
"public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }",
"public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }",
"public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }",
"public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }",
"public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}",
"public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }",
"public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }",
"public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }",
"public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}",
"public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }",
"public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }",
"public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }",
"public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }",
"public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }",
"public function index()\n {\n return view('admin.resources.index');\n }",
"public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}"
] | [
"0.7446777",
"0.736227",
"0.73005503",
"0.72478926",
"0.71631265",
"0.71489686",
"0.7131636",
"0.7105969",
"0.71029514",
"0.7101372",
"0.70508176",
"0.6995128",
"0.69890636",
"0.6934895",
"0.6900203",
"0.6899281",
"0.6891734",
"0.6887235",
"0.68670005",
"0.6849741",
"0.6830523",
"0.6802689",
"0.6797",
"0.67957735",
"0.67871135",
"0.6760129",
"0.67427456",
"0.6730486",
"0.67272323",
"0.67255723",
"0.67255723",
"0.67255723",
"0.67177945",
"0.6707866",
"0.6706713",
"0.6704375",
"0.6664782",
"0.6662871",
"0.6660302",
"0.6659404",
"0.6656656",
"0.6653517",
"0.6647965",
"0.6620322",
"0.66185474",
"0.6618499",
"0.6606105",
"0.6600617",
"0.65996987",
"0.6594775",
"0.6587389",
"0.6585109",
"0.6581641",
"0.6581017",
"0.6577157",
"0.65747666",
"0.6572513",
"0.65721947",
"0.6570553",
"0.65646994",
"0.6563556",
"0.6554194",
"0.65529937",
"0.65460825",
"0.65368485",
"0.653429",
"0.65328294",
"0.6526759",
"0.6526695",
"0.6526284",
"0.65191334",
"0.65183175",
"0.65174305",
"0.651703",
"0.65141153",
"0.6507088",
"0.65061647",
"0.6504046",
"0.64942145",
"0.6491893",
"0.64883405",
"0.6486392",
"0.6485077",
"0.64846045",
"0.6478858",
"0.64756656",
"0.64726377",
"0.6471126",
"0.64701074",
"0.6467418",
"0.6462195",
"0.64618355",
"0.6459199",
"0.6457831",
"0.6454631",
"0.64533997",
"0.6451915",
"0.6450861",
"0.6449301",
"0.64492667",
"0.64469045"
] | 0.0 | -1 |
Display a listing of the resource. | public function indexUser(Company $company)
{
$this->authorizeApi('indexUser', JobPost::class, $company);
return $this->jobPostRepository->indexUser($company);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }",
"public function listing();",
"function index() {\n\t\t$this->show_list();\n\t}",
"public function actionList() {\n $this->_getList();\n }",
"public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }",
"public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }",
"public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }",
"function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}",
"public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }",
"public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }",
"public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}",
"function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}",
"public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }",
"public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}",
"public function actionRestList() {\n\t $this->doRestList();\n\t}",
"public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}",
"public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }",
"public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }",
"public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}",
"public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}",
"public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }",
"public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }",
"public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }",
"public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }",
"public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}",
"public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }",
"public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}",
"public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }",
"public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function index()\n {\n $this->list_view();\n }",
"public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }",
"public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }",
"public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}",
"public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }",
"public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }",
"public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }",
"public function index()\n {\n return Resources::collection(Checking::paginate());\n }",
"public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }",
"public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }",
"public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }",
"public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }",
"public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }",
"public function view(){\n\t\t$this->buildListing();\n\t}",
"public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }",
"public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }",
"public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }",
"public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }",
"public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }",
"public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }",
"public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }",
"public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }",
"public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }",
"public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}",
"public function listAction() {}",
"public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }",
"public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }",
"public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }",
"public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }",
"public function executeList()\n {\n $this->setTemplate('list');\n }",
"public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }",
"function listing() {\r\n\r\n }",
"public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }",
"public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }",
"public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}",
"public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }",
"public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }",
"public function _index(){\n\t $this->_list();\n\t}",
"public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}",
"function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}",
"public function index()\n {\n $this->booklist();\n }",
"public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }",
"public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }",
"public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }",
"public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }",
"public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }",
"public function indexAction() {\n $this->_forward('list');\n }",
"public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }",
"public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }",
"public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}",
"public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }",
"public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }",
"public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }",
"public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }",
"public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }",
"public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }",
"public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}",
"public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }",
"public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }",
"public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }",
"public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}",
"public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }",
"public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }",
"public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }",
"public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }",
"public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }",
"public function index()\n {\n return view('admin.resources.index');\n }",
"public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}"
] | [
"0.7446777",
"0.736227",
"0.73005503",
"0.72478926",
"0.71631265",
"0.71489686",
"0.7131636",
"0.7105969",
"0.71029514",
"0.7101372",
"0.70508176",
"0.6995128",
"0.69890636",
"0.6934895",
"0.6900203",
"0.6899281",
"0.6891734",
"0.6887235",
"0.68670005",
"0.6849741",
"0.6830523",
"0.6802689",
"0.6797",
"0.67957735",
"0.67871135",
"0.6760129",
"0.67427456",
"0.6730486",
"0.67272323",
"0.67255723",
"0.67255723",
"0.67255723",
"0.67177945",
"0.6707866",
"0.6706713",
"0.6704375",
"0.6664782",
"0.6662871",
"0.6660302",
"0.6659404",
"0.6656656",
"0.6653517",
"0.6647965",
"0.6620322",
"0.66185474",
"0.6618499",
"0.6606105",
"0.6600617",
"0.65996987",
"0.6594775",
"0.6587389",
"0.6585109",
"0.6581641",
"0.6581017",
"0.6577157",
"0.65747666",
"0.6572513",
"0.65721947",
"0.6570553",
"0.65646994",
"0.6563556",
"0.6554194",
"0.65529937",
"0.65460825",
"0.65368485",
"0.653429",
"0.65328294",
"0.6526759",
"0.6526695",
"0.6526284",
"0.65191334",
"0.65183175",
"0.65174305",
"0.651703",
"0.65141153",
"0.6507088",
"0.65061647",
"0.6504046",
"0.64942145",
"0.6491893",
"0.64883405",
"0.6486392",
"0.6485077",
"0.64846045",
"0.6478858",
"0.64756656",
"0.64726377",
"0.6471126",
"0.64701074",
"0.6467418",
"0.6462195",
"0.64618355",
"0.6459199",
"0.6457831",
"0.6454631",
"0.64533997",
"0.6451915",
"0.6450861",
"0.6449301",
"0.64492667",
"0.64469045"
] | 0.0 | -1 |
Store a newly created resource in storage. | public function store(JobPostRequest $request)
{
return $this->jobPostRepository->store($request);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function store($data, Resource $resource);",
"public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }",
"public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }",
"public function createStorage();",
"public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }",
"public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }",
"public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }",
"function storeAndNew() {\n $this->store();\n }",
"public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }",
"public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }",
"public function store()\n\t{\n\t\t\n\t\t//\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\r\n\t{\r\n\t\t//\r\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}",
"public function store()\n\t{\n\t\t//\n\t}"
] | [
"0.72865677",
"0.7145327",
"0.71325725",
"0.6640912",
"0.66209733",
"0.65685713",
"0.652643",
"0.65095705",
"0.64490104",
"0.637569",
"0.63736665",
"0.63657933",
"0.63657933",
"0.63657933",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437",
"0.6342437"
] | 0.0 | -1 |
Display the specified resource. | public function show(JobPost $jobPost)
{
if ($jobPost->is_active == 1) {
return new JobPostResource($jobPost);
} else {
return 'not active';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Resource $resource)\n {\n // not available for now\n }",
"public function show(Resource $resource)\n {\n //\n }",
"function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }",
"private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }",
"function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}",
"public function show(ResourceSubject $resourceSubject)\n {\n //\n }",
"public function show(ResourceManagement $resourcesManagement)\n {\n //\n }",
"public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }",
"public function retrieve(Resource $resource);",
"public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }",
"public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }",
"public function show(Dispenser $dispenser)\n {\n //\n }",
"public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }",
"public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}",
"public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }",
"public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }",
"function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}",
"public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }",
"public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }",
"public function get(Resource $resource);",
"public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }",
"public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }",
"function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}",
"public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }",
"function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}",
"public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }",
"public function edit(Resource $resource)\n {\n //\n }",
"public function show(rc $rc)\n {\n //\n }",
"public function show(Resolucion $resolucion)\n {\n //\n }",
"public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }",
"public function show()\n\t{\n\t\t//\n\t}",
"public function show()\n\t{\n\t\t//\n\t}",
"public function show()\n\t{\n\t\t//\n\t}",
"public function show(Resena $resena)\n {\n }",
"public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }",
"public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }",
"public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}",
"public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }",
"public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }",
"public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }",
"public function display()\n\t{\n\t\tparent::display();\n\t}",
"public function get_resource();",
"public function show()\n\t{\n\t\t\n\t}",
"function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}",
"public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }",
"public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }",
"public function display($title = null)\n {\n echo $this->fetch($title);\n }",
"public function display(){}",
"public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}",
"public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}",
"public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }",
"#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}",
"public function display() {\n echo $this->render();\n }",
"public function show($id)\n\t{\n\t//\n\t}",
"public function show($id)\n\t{\n\t//\n\t}",
"function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }",
"public function show($id)\n {\n //\n $this->_show($id);\n }",
"public function show()\n\t{\n\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {\n\t\t//\n\t}",
"public function show($id) {}",
"static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}",
"public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}",
"public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }",
"public abstract function display();",
"abstract public function resource($resource);",
"public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}",
"public function show( $id ) {\n\t\t//\n\t}",
"public function show( $id ) {\n\t\t//\n\t}",
"public function show(Response $response)\n {\n //\n }",
"public function show()\n {\n return auth()->user()->getResource();\n }",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}",
"public function show($id)\n\t{\n\t\t//\n\t}"
] | [
"0.8233718",
"0.8190437",
"0.6828712",
"0.64986944",
"0.6495974",
"0.6469629",
"0.6462615",
"0.6363665",
"0.6311607",
"0.62817234",
"0.6218966",
"0.6189695",
"0.61804265",
"0.6171014",
"0.61371076",
"0.61207956",
"0.61067593",
"0.6105954",
"0.6094066",
"0.6082806",
"0.6045245",
"0.60389996",
"0.6016584",
"0.598783",
"0.5961788",
"0.59606946",
"0.5954321",
"0.59295714",
"0.59182066",
"0.5904556",
"0.59036547",
"0.59036547",
"0.59036547",
"0.5891874",
"0.58688277",
"0.5868107",
"0.58676815",
"0.5851883",
"0.58144855",
"0.58124036",
"0.58112013",
"0.5803467",
"0.58012545",
"0.5791527",
"0.57901084",
"0.5781528",
"0.5779676",
"0.5757105",
"0.5756208",
"0.57561266",
"0.57453394",
"0.57435393",
"0.57422745",
"0.5736634",
"0.5736634",
"0.5730559",
"0.57259274",
"0.5724891",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5722562",
"0.5718969",
"0.5713412",
"0.57091093",
"0.5706405",
"0.57057405",
"0.5704541",
"0.5704152",
"0.57026845",
"0.57026845",
"0.56981397",
"0.5693083",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962",
"0.5684962"
] | 0.0 | -1 |
Update the specified resource in storage. | public function update(JobPostRequest $request, JobPost $jobPost)
{
$this->authorizeApi('update', $jobPost);
return $this->jobPostRepository->update($request->all(), $jobPost);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }",
"public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }",
"public function update(Request $request, Resource $resource)\n {\n //\n }",
"public function updateStream($resource);",
"public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }",
"protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }",
"public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }",
"public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }",
"public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}",
"public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }",
"public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }",
"protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }",
"public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }",
"public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }",
"public function update($path);",
"public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }",
"public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }",
"public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }",
"public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}",
"public function updateStream($path, $resource, Config $config)\n {\n }",
"public function edit(Resource $resource)\n {\n //\n }",
"public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }",
"public function update($data) {}",
"public function update($data) {}",
"public function putStream($resource);",
"public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }",
"public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }",
"public function update($entity);",
"public function update($entity);",
"public function setResource($resource);",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }",
"public function isUpdateResource();",
"public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }",
"public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }",
"public function store($data, Resource $resource);",
"public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }",
"public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }",
"public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }",
"public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }",
"public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }",
"public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }",
"public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }",
"public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }",
"public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }",
"public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }",
"public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }",
"public function update(Qstore $request, $id)\n {\n //\n }",
"public function update(IEntity $entity);",
"protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }",
"public function update($request, $id);",
"function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}",
"public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }",
"public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }",
"protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }",
"abstract public function put($data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function update($id, $data);",
"public function testUpdateSupplierUsingPUT()\n {\n }",
"public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }",
"public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }",
"public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }",
"public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }",
"public abstract function update($object);",
"public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }",
"public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }",
"public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }",
"public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }",
"public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }",
"public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }",
"public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }",
"public function update($entity)\n {\n \n }",
"public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }",
"public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }",
"public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }",
"public function update($id, $input);",
"public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }",
"public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}",
"public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }",
"public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }",
"public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }",
"public function update($id);",
"public function update($id);",
"private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }",
"public function put($path, $data = null);",
"public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }",
"public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }",
"public function update(Entity $entity);",
"public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }",
"public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}",
"public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }",
"public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }",
"public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }",
"public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }",
"public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }",
"public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }"
] | [
"0.7425105",
"0.70612276",
"0.70558053",
"0.6896673",
"0.6582159",
"0.64491373",
"0.6346954",
"0.62114537",
"0.6145042",
"0.6119944",
"0.61128503",
"0.6099993",
"0.6087866",
"0.6052593",
"0.6018941",
"0.60060275",
"0.59715486",
"0.5946516",
"0.59400934",
"0.59377414",
"0.5890722",
"0.5860816",
"0.5855127",
"0.5855127",
"0.58513457",
"0.5815068",
"0.5806887",
"0.57525045",
"0.57525045",
"0.57337505",
"0.5723295",
"0.5714311",
"0.5694472",
"0.5691319",
"0.56879413",
"0.5669989",
"0.56565005",
"0.56505877",
"0.5646085",
"0.5636683",
"0.5633498",
"0.5633378",
"0.5632906",
"0.5628826",
"0.56196684",
"0.5609126",
"0.5601397",
"0.55944353",
"0.5582592",
"0.5581908",
"0.55813426",
"0.5575312",
"0.55717176",
"0.55661047",
"0.55624634",
"0.55614686",
"0.55608666",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55599797",
"0.55573726",
"0.5556878",
"0.5554201",
"0.5553069",
"0.55530256",
"0.5543788",
"0.55435944",
"0.55412996",
"0.55393505",
"0.55368495",
"0.5535236",
"0.5534954",
"0.55237365",
"0.5520468",
"0.55163723",
"0.55125296",
"0.5511168",
"0.5508345",
"0.55072427",
"0.5502385",
"0.5502337",
"0.5501029",
"0.54995877",
"0.54979175",
"0.54949397",
"0.54949397",
"0.54946727",
"0.5494196",
"0.54941916",
"0.54925025",
"0.5491807",
"0.5483321",
"0.5479606",
"0.5479408",
"0.5478678",
"0.54667485",
"0.5463411",
"0.5460588",
"0.5458525"
] | 0.0 | -1 |
Remove the specified resource from storage. | public function destroy(JobPost $jobPost)
{
$this->authorizeApi('delete', $jobPost);
return $this->jobPostRepository->delete($jobPost);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }",
"public function destroy(Resource $resource)\n {\n //\n }",
"public function removeResource($resourceID)\n\t\t{\n\t\t}",
"public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }",
"public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }",
"public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }",
"public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }",
"protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }",
"public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }",
"public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }",
"public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }",
"public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}",
"public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}",
"public function delete(): void\n {\n unlink($this->getPath());\n }",
"public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }",
"public function remove($path);",
"function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}",
"public function delete(): void\n {\n unlink($this->path);\n }",
"private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }",
"public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }",
"public function remove() {}",
"public function remove() {}",
"public function remove();",
"public function remove();",
"public function remove();",
"public function remove();",
"function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}",
"public function deleteImage(){\n\n\n Storage::delete($this->image);\n }",
"public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }",
"public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}",
"public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }",
"public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }",
"public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}",
"public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }",
"public function deleteImage(){\n \tStorage::delete($this->image);\n }",
"public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }",
"public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }",
"public function destroy($id)\n {\n Myfile::find($id)->delete();\n }",
"public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }",
"public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }",
"public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }",
"public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }",
"public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }",
"public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }",
"public function delete($path);",
"public function delete($path);",
"public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }",
"public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }",
"public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }",
"public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }",
"public function delete($path, $data = null);",
"public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }",
"public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }",
"public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }",
"public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }",
"public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }",
"public function del($path){\n\t\treturn $this->remove($path);\n\t}",
"public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }",
"public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}",
"public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }",
"public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }",
"public function revoke($resource, $permission = null);",
"public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }",
"function delete($path);",
"public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}",
"public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }",
"public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }",
"public function remove($filePath){\n return Storage::delete($filePath);\n }",
"public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }",
"public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }",
"public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }",
"public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }",
"function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }",
"public function remove($id);",
"public function remove($id);",
"public function deleted(Storage $storage)\n {\n //\n }",
"public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }",
"public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }",
"public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }",
"public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }",
"function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}",
"public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }",
"public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}",
"public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }",
"public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }"
] | [
"0.6672584",
"0.6659381",
"0.6635911",
"0.6632799",
"0.6626075",
"0.65424126",
"0.65416265",
"0.64648265",
"0.62882507",
"0.6175931",
"0.6129922",
"0.60893893",
"0.6054415",
"0.60428125",
"0.60064924",
"0.59337646",
"0.5930772",
"0.59199584",
"0.5919811",
"0.5904504",
"0.5897263",
"0.58962846",
"0.58951396",
"0.58951396",
"0.58951396",
"0.58951396",
"0.5880124",
"0.58690923",
"0.5863659",
"0.5809161",
"0.57735413",
"0.5760811",
"0.5753559",
"0.57492644",
"0.5741712",
"0.57334286",
"0.5726379",
"0.57144034",
"0.57096",
"0.5707689",
"0.5705895",
"0.5705634",
"0.5703902",
"0.5696585",
"0.5684331",
"0.5684331",
"0.56780374",
"0.5677111",
"0.5657287",
"0.5648262",
"0.5648085",
"0.5648012",
"0.5640759",
"0.5637738",
"0.5629985",
"0.5619264",
"0.56167465",
"0.5606877",
"0.56021434",
"0.5601949",
"0.55992156",
"0.5598557",
"0.55897516",
"0.5581397",
"0.5566926",
"0.5566796",
"0.55642897",
"0.55641",
"0.5556583",
"0.5556536",
"0.5550097",
"0.5543172",
"0.55422723",
"0.5540013",
"0.5540013",
"0.55371785",
"0.55365825",
"0.55300397",
"0.552969",
"0.55275744",
"0.55272335",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.55271083",
"0.5525997",
"0.5525624",
"0.5523911",
"0.5521122",
"0.5517412"
] | 0.0 | -1 |
Constructor method for ItemAttachmentType | public function __construct(\Ews\StructType\EwsItemType $item = null, \Ews\StructType\EwsMessageType $message = null, \Ews\StructType\EwsCalendarItemType $calendarItem = null, \Ews\StructType\EwsContactItemType $contact = null, \Ews\StructType\EwsMeetingMessageType $meetingMessage = null, \Ews\StructType\EwsMeetingRequestMessageType $meetingRequest = null, \Ews\StructType\EwsMeetingResponseMessageType $meetingResponse = null, \Ews\StructType\EwsMeetingCancellationMessageType $meetingCancellation = null, \Ews\StructType\EwsTaskType $task = null, \Ews\StructType\EwsPostItemType $postItem = null, \Ews\StructType\EwsRoleMemberItemType $roleMember = null, \Ews\StructType\EwsNetworkItemType $network = null, \Ews\StructType\EwsAbchPersonItemType $person = null, \Ews\StructType\EwsBookingItemType $booking = null)
{
$this
->setItem($item)
->setMessage($message)
->setCalendarItem($calendarItem)
->setContact($contact)
->setMeetingMessage($meetingMessage)
->setMeetingRequest($meetingRequest)
->setMeetingResponse($meetingResponse)
->setMeetingCancellation($meetingCancellation)
->setTask($task)
->setPostItem($postItem)
->setRoleMember($roleMember)
->setNetwork($network)
->setPerson($person)
->setBooking($booking);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __construct(AttachmentModel $item) {\n //\n $this->id = $item->id;\n }",
"protected function _construct()\n {\n $this->_init(\n 'Sintra\\POEmailAttachment\\Model\\PoAttachment',\n 'Sintra\\POEmailAttachment\\Model\\ResourceModel\\PoAttachment'\n );\n }",
"public function ITEM($itemid) { $this->__construct($itemid); }",
"public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.attachmentContentProperties');\n }",
"public static function invalidAttachmentType()\n {\n return new static('Attachment Type provided is invalid.');\n }",
"public static function attachmentTypeNotProvided()\n {\n return new static('You have not provided a type for an attachment');\n }",
"public function __construct()\n {\n $this->attachments = new ArrayCollection();\n }",
"public function __construct($item) {\n\t\t$this->item = $item;\n\t}",
"public function __construct($attachmentKey, array $data = [])\n {\n if (!$attachmentKey && !$data) {\n throw new InvalidArgumentException(\"both \\\"attachmentKey\\\" and \\\"data\\\" must not be missing\");\n }\n\n if ($attachmentKey instanceof AttachmentKey) {\n $this->attachmentKey = $attachmentKey;\n } elseif (is_array($attachmentKey)) {\n $data = $attachmentKey;\n }\n\n\n $missing = \"\";\n if (!isset($data[\"content\"])) {\n $missing = \"content\";\n } elseif (!isset($data[\"encoding\"])) {\n $missing = \"encoding\";\n }\n\n if ($missing) {\n throw new InvalidArgumentException(\n \"value for property \\\"\" . $missing . \"\\\" missing\"\n );\n }\n\n parent::__construct(is_array($attachmentKey) ? null : $attachmentKey, $data);\n }",
"public function initialize()\n {\n // attributes\n $this->setName('item');\n $this->setPhpName('Item');\n $this->setIdentifierQuoting(false);\n $this->setClassName('\\\\Slims\\\\Models\\\\Bibliography\\\\Item\\\\Item');\n $this->setPackage('Slims.Models.Bibliography.Item');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('item_id', 'ItemId', 'INTEGER', true, null, null);\n $this->addColumn('item_code', 'Item_code', 'VARCHAR', true, 20, null);\n $this->addForeignKey('biblio_id', 'BiblioId', 'INTEGER', 'biblio', 'biblio_id', true, null, null);\n $this->addColumn('call_number', 'Call_number', 'VARCHAR', false, 50, null);\n $this->addForeignKey('coll_type_id', 'Coll_type_id', 'INTEGER', 'mst_coll_type', 'coll_type_id', false, 3, null);\n $this->addColumn('inventory_code', 'Inventory_code', 'VARCHAR', false, 200, null);\n $this->addColumn('received_date', 'Received_date', 'DATE', false, null, null);\n $this->addColumn('supplier_id', 'SupplierId', 'INTEGER', false, null, null);\n $this->addColumn('order_no', 'Order_no', 'VARCHAR', false, 20, null);\n $this->addColumn('location_id', 'LocationId', 'VARCHAR', false, 3, null);\n $this->addColumn('order_date', 'Order_date', 'DATE', false, null, null);\n $this->addColumn('item_status_id', 'ItemStatusId', 'CHAR', false, 3, null);\n $this->addColumn('site', 'Site', 'VARCHAR', false, 50, null);\n $this->addColumn('source', 'Source', 'INTEGER', false, 1, null);\n $this->addColumn('invoice', 'Invoice', 'VARCHAR', false, 20, null);\n $this->addColumn('price', 'Price', 'INTEGER', false, null, null);\n $this->addColumn('price_currency', 'Price_currency', 'VARCHAR', false, 10, null);\n $this->addColumn('invoice_date', 'Invoice_date', 'DATE', false, null, null);\n $this->addColumn('input_date', 'Input_date', 'TIMESTAMP', false, null, null);\n $this->addColumn('last_update', 'Last_update', 'TIMESTAMP', false, null, null);\n $this->addForeignKey('uid', 'Uid', 'INTEGER', 'user', 'user_id', false, null, null);\n }",
"public function __construct($data, $attachment = '') {\n //\n $this->data = $data;\n $this->attachment = $attachment;\n }",
"public function __construct($item)\n {\n $this->item = $item;\n }",
"public function __construct()\n {\n $this->types = array(self::TYPE_EMISSION, self::TYPE_TRANSFER);\n }",
"public function testCreateAttachment()\n {\n }",
"public function __construct($item)\n\t{\n\t\tif (Valid::digit($item))\n\t\t{\n\t\t\t$id = $item;\n\t\t\t$item = ORM::factory('Item', $id);\n\n\t\t\tif ($item->loaded())\n\t\t\t{\n\t\t\t\t$this->_item = $item;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Item_Exception('Item \":id\" could not be loaded', array(':id' => $id));\n\t\t\t}\n\t\t}\n\t\telseif ($item->loaded())\n\t\t{\n\t\t\tif (is_a($item, 'Model_Item'))\n\t\t\t{\n\t\t\t\t$this->_item = $item;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Item_Exception('The supplied item\\'s resource does not come from a model.');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Item_Exception('Item \":name\" could not be loaded', array(':name' => $item->name));\n\t\t}\n\t}",
"public function __construct($options)\n {\n $this->item = $options['item'];\n $this->name = (string) $this->item->name;\n $this->object = $options['object'];\n $this->values = isset($options['values']) ? $options['values'] : [];\n $this->errors = isset($options['errors']) ? $options['errors'] : [];\n $this->options = [];\n $nameMultiple = (isset($options['nameMultiple']) && isset($options['idMultiple']) && $options['nameMultiple'] != '' && $options['idMultiple']);\n $this->options['nameSimple'] = $this->name;\n $this->options['name'] = ($nameMultiple) ? $options['nameMultiple'] . '-' . $options['idMultiple'] . '-' . $this->name : $this->name;\n $this->options['value'] = $this->values[$this->name];\n $this->options['error'] = $this->errors[$this->name];\n $this->options['label'] = (string) $this->item->label;\n $this->options['placeholder'] = (string) $this->item->placeholder;\n $this->options['lang'] = (string) $this->item->language;\n $this->options['mode'] = (string) $this->item->mode;\n $this->options['layout'] = (string) $this->item->layout;\n $this->options['className'] = $this->object->className;\n $this->options['idObject'] = $this->object->id();\n $this->options['required'] = ((string) $this->item->required != '') ? true : false;\n $this->options['multiple'] = ((string) $this->item->multiple != '') ? true : false;\n $this->options['typeField'] = (isset($options['typeField'])) ? $options['typeField'] : 'file';\n }",
"public function __construct()\n {\n parent::__construct();\n\n // Set data types\n $this->data_types = array(\n 'title' => 'string',\n 'url' => 'url',\n 'url_key' => 'md5',\n 'embed' => 'string',\n 'created_on' => 'datetime'\n );\n\n }",
"function __construct($TableName = 'item_type') {\r\n $this->idItem_Type = new DB_Field('idItem_Type', 0, new DbIntSanitizer(), TRUE, TRUE);\r\n $this->Category_Type = new DB_Field('Category_Type', 0, new DbIntSanitizer(), TRUE, TRUE);\r\n $this->Type_Description = new DB_Field('Type_Description', '', new DbStrSanitizer(100), TRUE, TRUE);\r\n $this->Order_Line_Type_Id = new DB_Field('Order_Line_Type_Id', 0, new DbIntSanitizer(), TRUE, TRUE);\r\n\r\n parent::__construct($TableName);\r\n }",
"public function __construct($email_list_arr, $subject, $body, $attachmentData, $emailtype)\n {\n $this->email_list_arr = $email_list_arr;\n $this->subject = $subject;\n $this->body = $body;\n $this->attachmentData = $attachmentData;\n $this->emailtype = $emailtype;\n }",
"public function __construct($id) {\n global $post;\n parent::__construct($id, '', true);\n $this->attachments = get_posts(array(\n 'post_type' => 'attachment',\n 'posts_per_page' => -1,\n 'post_status' => null,\n 'post_parent' => $post->ID,\n 'post_mime_type' => 'image/jpeg'\n ));\n }",
"public function __construct ($media_id, $type, $content, $duration = 20)\r\n\t{\r\n\t\t$this->media_id = (int) $media_id;\r\n\t\tif (1 <= $type && $type <= 5) {\r\n\t\t\t$this->type = (int) $type;\r\n\t\t} else\r\n\t\t\t// throw new Exception('Bad type for Api_Playlist_Item', 100);\r\n\t\t\tdie('Bad type for Api_Playlist_Item.');\r\n\t\t$this->duration = $duration;\r\n\t\tif ($this->type == self::IMAGE_TYPE || $this->type == self::VIDEO_TYPE ||\r\n\t\t $this->type == self::POWERPOINT_TYPE || $this->type == self::TEXT_TYPE ||\r\n\t\t $this->type == self::IMAGESHOW_TYPE) {\r\n\t\t\t$this->filename = $content['filename'];\r\n\t\t}\r\n\t}",
"public function __construct($product_item)\n {\n $this->product_item = $product_item;\n }",
"public function __construct()\n {\n $this->setColumnsMeta(array(\n ));\n\n $this->setMultiLangColumnsList(array(\n ));\n\n $this->setAvailableLangs(array('eu'));\n\n $this->setParentList(array(\n ));\n\n $this->setDependentList(array(\n 'NewsletterHashNewsletterId' => array(\n 'property' => 'NewsletterHash',\n 'table_name' => 'NewsletterHash',\n ),\n ));\n\n\n\n\n $this->_defaultValues = array(\n 'active' => '0',\n 'send' => '0',\n 'sent' => '0',\n 'readBy' => '0',\n 'dateToSend' => 'CURRENT_TIMESTAMP',\n 'shippingDate' => '0000-00-00 00:00:00',\n 'isEdukia' => '0',\n 'isIkastegia' => '0',\n );\n\n $this->_initFileObjects();\n parent::__construct();\n }",
"public function __construct(Database $database, Collection $collection, Container $container, User $user) {\n\n parent::__construct($database, $collection, $container, $user);\n\n $this->collection = $collection;\n $this->container = $container;\n $this->input = $container->input;\n\n //\"label\"=>\"\",\"datatype\"=>\"\",\"charsize\"=>\"\" , \"default\"=>\"\", \"index\"=>TRUE, \"allowempty\"=>FALSE\n $this->extendPropertyModel(\n array(\n \"attachment_name\" => array(\"Attachment Name\", \"mediumtext\", 50),\n \"attachment_title\" => array(\"Attachment Title\", \"mediumtext\", 100),\n \"attachment_size\" => array(\"Attachment Size (bytes)\", \"mediumint\", 50),\n \"attachment_src\" => array(\"Attachment Source\", \"mediumtext\", 100),\n \"attachment_ext\" => array(\"Attachment Extension\", \"mediumtext\", 10),\n \"attachment_owner\" => array(\"Attachment Owner user_name_id\", \"mediumtext\", 100),\n \"attachment_type\" => array(\"Attachment Content Type\", \"mediumtext\", 100)\n ), \"attachment\"\n );\n //$this->definePropertyModel( $dataModel ); use this to set a new data models or use extendPropertyModel to extend existing models\n $this->defineValueGroup(\"attachment\"); //Tell the system we are using a proxy table\n }",
"public function __construct($itemData) {\n if(self::$itemSchema == null) {\n self::updateSchema();\n }\n\n $this->defindex = $itemData->defindex;\n\n $this->backpackPosition = $itemData->inventory & 0xffff;\n $this->class = self::$itemSchema[$this->defindex]->item_class;\n $this->count = $itemData->quantity;\n $this->id = $itemData->id;\n $this->level = $itemData->level;\n $this->name = self::$itemSchema[$this->defindex]->item_name;\n $this->quality = self::$qualities[$itemData->quality];\n $this->slot = self::$itemSchema[$this->defindex]->item_slot;\n $this->type = self::$itemSchema[$this->defindex]->item_type_name;\n\n $this->equipped = array();\n foreach(self::$CLASSES as $classId => $className) {\n $this->equipped[$className] = ($itemData->inventory & (1 << 16 + $classId) != 0);\n }\n\n if(self::$itemSchema[$this->defindex]->attributes != null) {\n $this->attributes = self::$itemSchema[$this->defindex]->attributes->attribute;\n }\n }",
"public function __construct($_shipmentItem = NULL)\n {\n parent::__construct(array('ShipmentItem' => $_shipmentItem), false);\n }",
"public function __construct( $item ) {\n\t\t$this->set_item( $item );\n\n\t\t$this->setup_actions();\n\t}",
"public function __construct() {\n parent::__construct();\n //setting attribute types.\n settype($this->id, \"integer\");\n settype($this->name, \"string\");\n settype($this->question_type_id, \"integer\");\n }",
"function __toString()\n {\n return \"MyAttachment\";\n }",
"public function __construct($message, $attachment)\n {\n $this->messageData = $message;\n $this->attachment = $attachment;\n }",
"public function __construct(array $items = array(), array $attributes = array()) {\n parent::__construct(\n array(\n 'items' => $items\n ),\n $attributes\n );\n }",
"public function __construct()\n {\n $this->addMimeType('application/xml');\n $this->addMimeType('text/xml');\n $this->addMimeType('application/x-xml');\n }",
"function __construct($title,$message,$image,$data,$type = type::HDT) {\n $this->title = $title;\n $this->message = $message;\n $this->image = $image;\n $this->data = $data;\n $this->type = $type;\n }",
"public function __construct($type)\n {\n }",
"public function setAttachmentKey(AttachmentKey $attachmentKey): FileAttachment\n {\n return new self(\n $attachmentKey,\n ArrayUtil::only($this->toJson(), [\"content\", \"encoding\", \"text\", \"size\", \"type\"])\n );\n }",
"public function __construct()\n {\n $this->data['messagetype'] = get_class($this);\n }",
"public function __construct(ipsRegistry $registry, array &$item)\r\n\t{\r\n\t\tparent::__construct($registry, $item);\r\n\t\t\r\n\t\tif($item['item_config'] || $item['item_id'] != 0)\r\n\t\t{\r\n\t\t\t$this->itemSettings = unserialize($item['item_config']);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->itemSettings['linked_id'] = 0;\r\n\t\t}\r\n\t}",
"public function __construct($type, $message = null)\n\t{\n\t\tparent::__construct($message);\n\t\t$this->setType($type);\n\t}",
"function __construct($type) {\n\t$this->type = $type;\n\t}",
"public function __construct($id, $item);",
"public function __construct(BundleItemTable $bundleItemTable)\r\n {\r\n $this->bundleItemTable = $bundleItemTable;\r\n }",
"function __construct($file) {\n\n $this->boxType = \"Unknown\";\n parent::__construct($file);\n }",
"public function __construct(SinglefileFieldType $fieldType)\n {\n $this->fieldType = $fieldType;\n }",
"function __construct($edi_file, $type='file')\n\t{\n\t\tif($type == 'file')\n\t\t{\n\t\t\tif( !file_exists($edi_file) )\n\t\t\t{\n\t\t\t\tthrow new EDI_Exception( 'File ' . $edi_file . ' not found' );\n\t\t\t}\n\t\t\t$edi_string = file_get_contents($edi_file);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$edi_string = $edi_file;\n\t\t}\n\t\tif( strlen($edi_string) == 0 )\n\t\t{\n\t\t\tthrow new EDI_Exception( 'File ' . $edi_file . ' appear not valid EDI document' );\n\t\t}\n\t\t// Check where format of document are passed (xml or edi), get a standard and message type\n\t\t$this->available_edi_standard\t= $this->getAvailableEdiStandardAndMessageType();\n\t\t$this->edi_file\t\t\t\t\t= $edi_file;\n\t\t$this->edi_string\t\t\t\t= $edi_string;\n\t\t$edi_message_properties\t\t\t= $this->validateEdiMessage( $this->edi_string );\n\t\t$this->edi_standard\t\t\t\t= $edi_message_properties['edi_standard'];\n\t\t$this->edi_standard_type\t\t= $edi_message_properties['edi_standard_type'];\n\t\t$this->edi_message_type\t\t\t= $edi_message_properties['edi_message_type'];\n\t\t$this->edi_message_xml\t\t\t= $edi_message_properties['edi_message_xml'];\n\t}",
"public function __construct(\\Ews\\StructType\\EwsItemIdType $updatedItemId = null)\n {\n $this\n ->setUpdatedItemId($updatedItemId);\n }",
"public function __construct($data = '', $contentType = 'application/octet-stream', $filename = 'attachment')\n {\n $this->data = $data;\n $this->contentType = $contentType;\n $this->filename = $filename;\n }",
"public function __construct()\n {\n $this->uuid = Uuid::uuid4()->toString();\n $this->createdDate = new \\DateTime();\n $this->items = new ArrayCollection();\n }",
"public function __construct($type = null){\n if(is_array($type)){\n $this->type = null;\n $this->items = $type;\n }elseif(class_exists($type)){\n $this->type = $type;\n }else{\n throw new Exception($type . ' is not a valid class');\n }\n }",
"public function __construct($userid, $itemid) {\r\n $this->userid = $userid;\r\n $this->itemid = $itemid;\r\n $this->extra = array();\r\n }",
"public function __construct(){\n parent::__construct(new ExporterItemInfo());\n }",
"public function __construct($_name = NULL,$_number = NULL,$_quantity = NULL,$_tax = NULL,$_amount = NULL,$_ebayItemPaymentDetailsItem = NULL,$_promoCode = NULL,$_productCategory = NULL,$_description = NULL,$_itemWeight = NULL,$_itemLength = NULL,$_itemWidth = NULL,$_itemHeight = NULL,$_itemURL = NULL,$_enhancedItemData = NULL,$_itemCategory = NULL)\r\n\t{\r\n\t\tparent::__construct(array('Name'=>$_name,'Number'=>$_number,'Quantity'=>$_quantity,'Tax'=>$_tax,'Amount'=>$_amount,'EbayItemPaymentDetailsItem'=>$_ebayItemPaymentDetailsItem,'PromoCode'=>$_promoCode,'ProductCategory'=>$_productCategory,'Description'=>$_description,'ItemWeight'=>$_itemWeight,'ItemLength'=>$_itemLength,'ItemWidth'=>$_itemWidth,'ItemHeight'=>$_itemHeight,'ItemURL'=>$_itemURL,'EnhancedItemData'=>$_enhancedItemData,'ItemCategory'=>$_itemCategory));\r\n\t}",
"public function __construct($type) {\n $this->type = $type;\n }",
"public function __construct()\n {\n $this->content = array();\n $this->attachments = array();\n $this->contact = new ContactReference();\n /**\n $this->import = new com_maileon_api_transactions_ImportReference();\n $this->import->contact = new com_maileon_api_transactions_ImportContactReference();\n $this->import->contact->permission = com_maileon_api_contacts_Permission::$NONE;\n **/\n }",
"public function __construct()\n {\n // runs the CConfig\n $com = new CConfig( LAttachment::getPrefix( ), dirname(__FILE__) );\n\n // runs the LAttachment\n if ( $com->used( ) ) return;\n $conf = $com->loadConfig( );\n\n // initialize slim\n $this->app = new \\Slim\\Slim();\n $this->app->response->setStatus( 409 );\n $this->app->response->headers->set('Content-Type', 'application/json');\n\n // initialize component\n $this->_conf = $conf;\n $this->query = CConfig::getLink($conf->getLinks(),\"controller\");\n $this->_postFile = CConfig::getLinks($conf->getLinks(),\"postFile\");\n $this->_postAttachment = CConfig::getLinks($conf->getLinks(),\"postAttachment\");\n\n // initialize lURL\n $this->lURL = $this->query->getAddress();\n\n //POST AddAttachment\n $this->app->post('/'.$this->getPrefix().'(/)',\n array($this, 'addAttachment'));\n\n //GET GetAttachment\n $this->app->get('/'.$this->getPrefix().'/attachment/:attachmentid(/)',\n array ($this, 'getAttachment'));\n\n //DELETE DeleteAttachment\n $this->app->delete('/'.$this->getPrefix().'/attachment/:attachmentid(/)',\n array($this, 'deleteAttachment'));\n\n //PUT EditAttachment\n $this->app->put('/'.$this->getPrefix().'/attachment/:attachmentid(/)',\n array($this, 'editAttachment'));\n //run Slim\n $this->app->run();\n }",
"function __construct($order_item, $order_id, $ticket_item_meta=''){\r\n\t\t$this->order_item = $order_item;\r\n\t\t$this->order_id = $order_id;\r\n\t\t$this->ticket_item_meta = $ticket_item_meta;\r\n\r\n\t\t$this->the_ticket_item_id = $this->ticket_item_id();\r\n\t}",
"public function __construct()\n {\n $this->attachments = new ArrayCollection();\n $this->history = new ArrayCollection();\n }",
"public function __construct(\\StructType\\EwsItemIdType $id, ?\\StructType\\EwsPreviewItemMailboxType $mailbox = null, ?\\StructType\\EwsItemIdType $parentId = null, ?string $itemClass = null, ?string $uniqueHash = null, ?string $sortValue = null, ?string $owaLink = null, ?string $sender = null, ?\\ArrayType\\EwsArrayOfSmtpAddressType $toRecipients = null, ?\\ArrayType\\EwsArrayOfSmtpAddressType $ccRecipients = null, ?\\ArrayType\\EwsArrayOfSmtpAddressType $bccRecipients = null, ?string $createdTime = null, ?string $receivedTime = null, ?string $sentTime = null, ?string $subject = null, ?int $size = null, ?string $preview = null, ?string $importance = null, ?bool $read = null, ?bool $hasAttachment = null, ?\\ArrayType\\EwsNonEmptyArrayOfExtendedPropertyType $extendedProperties = null)\n {\n $this\n ->setId($id)\n ->setMailbox($mailbox)\n ->setParentId($parentId)\n ->setItemClass($itemClass)\n ->setUniqueHash($uniqueHash)\n ->setSortValue($sortValue)\n ->setOwaLink($owaLink)\n ->setSender($sender)\n ->setToRecipients($toRecipients)\n ->setCcRecipients($ccRecipients)\n ->setBccRecipients($bccRecipients)\n ->setCreatedTime($createdTime)\n ->setReceivedTime($receivedTime)\n ->setSentTime($sentTime)\n ->setSubject($subject)\n ->setSize($size)\n ->setPreview($preview)\n ->setImportance($importance)\n ->setRead($read)\n ->setHasAttachment($hasAttachment)\n ->setExtendedProperties($extendedProperties);\n }",
"function __construct($tagType, $tagAttributes, $tagContent) {\n//if (! empty($tagType) || !empty($tagAttributes) || !empty($tagContent))\n//{\n $this->type = $tagType;\n $this->attributes = $tagAttributes;\n $this->content = $tagContent;\n\n $this->set_tag($tagType, $tagAttributes, $tagContent);\n//}\n }",
"function __construct() {\n $this->feedback_item_base();\n }",
"public function __construct($type)\n {\n $this->type = $type;\n }",
"protected function __construct() {\r\n $this->items = $this->initItems();\r\n }",
"public function __construct($type, array $items = [])\n {\n $type = $this->determineType($type);\n $this->type = $type;\n\n if ($items) {\n $this->validateItems($items, $this->type);\n }\n\n $this->items = $items;\n }",
"public static function initializeNewItem($item_type) {\n\n return id(new NuanceItem())\n ->setItemType($item_type)\n ->setStatus(self::STATUS_OPEN);\n }",
"function __construct($item_id, $item_name, $quantity, $price) {\n $this->item_id = $item_id;\n $this->item_name = $item_name;\n $this->quantity = $quantity;\n $this->price = $price;\n }",
"public function __construct($bidAmount, $itemId)\n {\n $this->bidAmount = $bidAmount;\n $this->itemId = $itemId;\n }",
"public function __construct()\n {\n $this->setColumnsList(array(\n 'tipoId'=>'tipoId',\n 'tipo'=>'tipo',\n 'tipo_eu'=>'tipoEu',\n 'tipo_es'=>'tipoEs',\n 'createdOn'=>'createdOn',\n 'updateOn'=>'updateOn',\n ));\n\n $this->setColumnsMeta(array(\n 'tipo'=> array('ml'),\n ));\n\n $this->setMultiLangColumnsList(array(\n 'tipo'=>'Tipo',\n ));\n\n $this->setAvailableLangs(array('es', 'eu'));\n\n $this->setParentList(array(\n ));\n\n $this->setDependentList(array(\n 'IncidenciasIbfk2' => array(\n 'property' => 'Incidencias',\n 'table_name' => 'Incidencias',\n ),\n ));\n\n\n $this->setOnDeleteSetNullRelationships(array(\n 'incidencias_ibfk_2'\n ));\n\n $this->_defaultValues = array(\n 'tipo' => '',\n 'tipoEu' => '',\n 'tipoEs' => '',\n 'createdOn' => '0000-00-00 00:00:00',\n 'updateOn' => 'CURRENT_TIMESTAMP',\n );\n\n $this->_initFileObjects();\n parent::__construct();\n }",
"function __construct($type='simple')\n {\n $this->type = $type;\n }",
"protected function _construct()\n {\n $this->_init('cminds_multiwishlist/item', 'wishlist_item_id');\n }",
"public function __construct( string$type='' )\n\t{\n\t\t$this->type= $type;\n\t}",
"public function __construct($type, $message, $from_id)\n {\n $this->type = $type;\n $this->message = $message;\n $this->fromId = $from_id;\n }",
"public function __construct($modelType, Storage $storage);",
"public function __construct($type, $message)\n {\n $this->type = $type;\n $this->message = $message;\n }",
"public function __construct($message, $type)\n\t{\n\t\t$this->message = $message;\n\t\t$this->type = $type;\n\t}",
"public function __construct($type, $template, $email_params = array())\n {\n $this->type = $type;\n $this->template = $template;\n $this->email_params = $email_params;\n }",
"public function __construct(){\n\t\t$this->addType('year', 'int');\n\t\t$this->addType('coverFileId', 'int');\n\t}",
"public function __construct($type)\n {\n $this->type=$type;\n }",
"public function __construct(\n $attachments = null,\n $body = null,\n $busy_status = null,\n $end_date_time = null,\n $has_attachment = null,\n $location = null,\n $meeting_type = null,\n $original_start_date = null,\n $override_flags = null,\n $reminder_delta = null,\n $reminder_set = null,\n $start_date_time = null,\n $subject = null,\n $sub_type = null\n ) {\n $this->container['attachments'] = null;\n $this->container['body'] = null;\n $this->container['busy_status'] = null;\n $this->container['end_date_time'] = null;\n $this->container['has_attachment'] = null;\n $this->container['location'] = null;\n $this->container['meeting_type'] = null;\n $this->container['original_start_date'] = null;\n $this->container['override_flags'] = null;\n $this->container['reminder_delta'] = null;\n $this->container['reminder_set'] = null;\n $this->container['start_date_time'] = null;\n $this->container['subject'] = null;\n $this->container['sub_type'] = null;\n\n if ($attachments != null) $this->setAttachments($attachments);\n if ($body != null) $this->setBody($body);\n if ($busy_status != null) $this->setBusyStatus($busy_status);\n if ($end_date_time != null) $this->setEndDateTime($end_date_time);\n if ($has_attachment != null) $this->setHasAttachment($has_attachment);\n if ($location != null) $this->setLocation($location);\n if ($meeting_type != null) $this->setMeetingType($meeting_type);\n if ($original_start_date != null) $this->setOriginalStartDate($original_start_date);\n if ($override_flags != null) $this->setOverrideFlags($override_flags);\n if ($reminder_delta != null) $this->setReminderDelta($reminder_delta);\n if ($reminder_set != null) $this->setReminderSet($reminder_set);\n if ($start_date_time != null) $this->setStartDateTime($start_date_time);\n if ($subject != null) $this->setSubject($subject);\n if ($sub_type != null) $this->setSubType($sub_type);\n }",
"public function __construct(string $agent_ref = '', string $address_1 = '', string $address_2 = '', string $town = '', string $postcode = '', string $description = '', string $bedrooms = '6', string $price = '', string $image = '', string $type = '', string $status = '')\n {\n $this->agent_ref = $agent_ref;\n $this->address_1 = $address_1;\n $this->address_2 = $address_2;\n $this->town = $town;\n $this->postcode = $postcode;\n $this->description = $description;\n $this->bedrooms = $bedrooms;\n $this->price = $price;\n $this->image = $image;\n $this->type = $type;\n $this->status = $status;\n }",
"function __construct() {\n parent::__construct();\n\n $this->_converter = new \\System\\Data\\Converter();\n }",
"public function __construct(ItemTable $table)\n {\n $this->table = $table;\n }",
"public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.windowsQualityUpdateCatalogItem');\n }",
"public function __construct( $type = 'inline', $filename = null,\n DateTime $creationDate = null, DateTime $modificationDate = null,\n DateTime $readDate = null,\n $size = null )\n {\n $this->type = $type;\n $this->filename = $filename;\n $this->creationDate = $creationDate;\n $this->modificationDate = $modificationDate;\n $this->readDate = $readDate;\n $this->size = $size;\n }",
"public function __construct(ElementType $type, $properties = false) {\n\n }",
"function __construct() {\n $this->contact = new QuadernoContact(array(\n 'first_name' => 'Joseph',\n 'last_name' => 'Tribbiani',\n 'contact_name' => 'Friends Staff'));\n $this->contact->save();\n\n $this->item = new QuadernoDocumentItem(array(\n 'description' => 'concepto 1',\n 'price' => 100.0,\n 'quantity' => 20\n ));\n }",
"public function __construct() {\r\n\t\tglobal $wp_list_table;\r\n\r\n\t\t// For Admin Columns Pro 4.2.3+ export compatibility, because views can alter the query\r\n\t\t$wp_list_table = $this;\r\n\r\n\t\t$this->detached = isset( $_REQUEST['detached'] ) && ( '1' == $_REQUEST['detached'] );\r\n\t\t$this->attached = isset( $_REQUEST['detached'] ) && ( '0' == $_REQUEST['detached'] );\r\n\t\t$this->is_trash = isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'trash';\r\n\r\n\t\t// MLA does not use this\r\n\t\t$this->modes = array(\r\n\t\t\t'list' => __( 'List View' ),\r\n\t\t);\r\n\r\n\t\t//Set parent defaults\r\n\t\tparent::__construct( array(\r\n\t\t\t'singular' => 'attachment', //singular name of the listed records\r\n\t\t\t'plural' => 'attachments', //plural name of the listed records\r\n\t\t\t'ajax' => true, //does this table support ajax?\r\n\t\t\t'screen' => 'media_page_' . MLACore::ADMIN_PAGE_SLUG\r\n\t\t), self::$default_columns );\r\n\r\n\t\t$this->currently_hidden = self::get_hidden_columns();\r\n\r\n\t\t/*\r\n\t\t * NOTE: There is one add_action call at the end of this source file.\r\n\t\t * NOTE: There are two add_filter calls at the end of this source file.\r\n\t\t *\r\n\t\t * They are added when the source file is loaded because the MLA_List_Table\r\n\t\t * object is created too late to be useful.\r\n\t\t */\r\n\t}",
"function __construct( $odataEntity ) {\r\n\t\tparent::__construct( $odataEntity );\r\n\t\tforeach ($odataEntity->getProperties() as $property) {\r\n\t\t\tif ($property->getName() == 'TypeId') {\r\n\t\t\t\t$this->type_id = $property->getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function __construct($_items = NULL,$_bucketId = NULL,$_sellerId = NULL,$_externalSellerId = NULL,$_bucketSubtotalAmt = NULL,$_bucketShippingAmt = NULL,$_bucketInsuranceAmt = NULL,$_bucketSalesTaxAmt = NULL,$_bucketTotalAmt = NULL)\r\n\t{\r\n\t\tparent::__construct(array('Items'=>$_items,'BucketId'=>$_bucketId,'SellerId'=>$_sellerId,'ExternalSellerId'=>$_externalSellerId,'BucketSubtotalAmt'=>$_bucketSubtotalAmt,'BucketShippingAmt'=>$_bucketShippingAmt,'BucketInsuranceAmt'=>$_bucketInsuranceAmt,'BucketSalesTaxAmt'=>$_bucketSalesTaxAmt,'BucketTotalAmt'=>$_bucketTotalAmt));\r\n\t}",
"public function __construct($items) {\n $this->items = $items;\n }",
"public function _construct()\n {\n $this->_init('customfield/block', 'id');\n }",
"public function __construct()\n {\n $this->item = [];\n }",
"public function __construct(){\n parent::__construct(new ImportItemInfo());\n }",
"public function __construct(array $batchTypeIdentity = array())\n {\n $this\n ->setBatchTypeIdentity($batchTypeIdentity);\n }",
"public function __construct($line_item_id = NULL) {\n $args = func_get_args();\n array_shift($args);\n $order_id = array_shift($args);\n if (is_null($order_id)) {\n $order_id = 0;\n }\n\n\n if (!is_null($line_item_id) && is_numeric($line_item_id)) {\n $line_item = commerce_line_item_load($line_item_id);\n if (!$line_item) {\n $this->setErrors(\"Line item with id $line_item_id does not exist.\");\n $this->setInitialized(FALSE);\n return;\n }\n }\n else {\n $class = new \\ReflectionClass(get_called_class());\n $type = Utils::makeSnakeCase($class->getShortName());\n $line_item = commerce_line_item_new($type, $order_id);\n }\n\n parent::__construct($line_item);\n }",
"public function __construct() {\n parent::__construct(array(\n 'Id' => array(\n \t \t\t'name' => 'id', 'type' => 'integer', 'readonly' => true),\n 'Alias' => array('name' => 'alias', 'type' => 'string'),\n 'Language' => array('name' => 'language', 'type' => 'string'),\n 'Name' => array('name' => 'name', 'type' => 'string'),\n 'Description' => array('name' => 'description', 'type' => 'string'),\n 'Groupables' => array(\n 'name' => 'groupables', 'type' => 'ArrayAccess'),\n ));\n \n $this->groupables = new ArrayObject();\n }",
"public function __construct(FeedItem $feedItem)\n {\n $this->feedItem = $feedItem;\n }",
"public function __construct($_content = NULL,$_mime = NULL,$_name = NULL)\r\n\t{\r\n\t\tparent::__construct(array('content'=>$_content,'mime'=>$_mime,'name'=>$_name));\r\n\t}",
"public function __construct($report_name, $frequency, $content, $attachment)\n {\n $this->content = $content;\n $this->attachment = $attachment;\n $this->frequency = $frequency;\n $this->report_name = $report_name;\n }",
"public function __construct() {\n\t\t$this->boundary = $this->createBoundary();\n\t\t$this->partboundary = $this->createBoundary();\n\t\t$this->partboundary2 = $this->createBoundary();\n\t}",
"public function addAttachment() {\n try {\n if (!($this->attachment instanceof Base_Model_ObtorLib_App_Core_Qualification_Entity_Attachment)) {\n throw new Base_Model_ObtorLib_App_Core_Qualification_Exception(\" Attachment Entity not initialized\");\n } else {\n $objAttachment = new Base_Model_ObtorLib_App_Core_Qualification_Dao_Attachment();\n $objAttachment->attachment = $this->attachment;\n return $objAttachment->addAttachment();\n }\n } catch (Exception $ex) {\n throw new Base_Model_ObtorLib_App_Core_Qualification_Exception($ex);\n }\n }",
"function construct( ) {\n\n\t\t$name = \"image\";\n\t\t$this->name = $name;\n\t\t$sitepath = fieldsattachHelper::getabsoluteURL();\n\t\t$this->path1 = $sitepath .'images'.DS.'documents' ;\n\t\t$documentpath = fieldsattachHelper::getabsolutePATH();\n\n\t\tif ((JRequest::getVar('option')=='com_categories' && JRequest::getVar('layout')==\"edit\" )) {\n\t\t\t$this->documentpath = $documentpath.DS.'images'.DS.'documentscategories' ;\n\t\t}\n\n\n\t\t//LOAD LANGUAGE --------------------------------------------------------------\n\t\tparent::getLanguage($name);\n\t\t//-----------------------------------------------------------------------------\n\n\t}"
] | [
"0.7317518",
"0.65762347",
"0.63173705",
"0.6301429",
"0.62677014",
"0.6201779",
"0.60668784",
"0.60623807",
"0.60418",
"0.60414886",
"0.60114247",
"0.60030764",
"0.58215904",
"0.57710797",
"0.5745026",
"0.56743324",
"0.5672164",
"0.56350225",
"0.56281203",
"0.5625975",
"0.5609568",
"0.5605798",
"0.5601848",
"0.55916154",
"0.55866206",
"0.5585482",
"0.55659354",
"0.55264014",
"0.55232555",
"0.54966944",
"0.54783696",
"0.5464058",
"0.54592735",
"0.5449594",
"0.5447804",
"0.543777",
"0.5432426",
"0.5426764",
"0.542626",
"0.54253197",
"0.5423041",
"0.54218644",
"0.5417384",
"0.5390924",
"0.53905696",
"0.5378248",
"0.5365941",
"0.5362521",
"0.53537494",
"0.53489214",
"0.5341223",
"0.5330265",
"0.53209263",
"0.5318662",
"0.5318381",
"0.53177965",
"0.5310516",
"0.5302808",
"0.5294729",
"0.5277556",
"0.52646595",
"0.5261984",
"0.52587557",
"0.52545863",
"0.5249529",
"0.52447397",
"0.52345663",
"0.5232126",
"0.5232111",
"0.52295214",
"0.5222284",
"0.5219775",
"0.5210883",
"0.52042377",
"0.51957977",
"0.5188562",
"0.5170761",
"0.51654905",
"0.5160584",
"0.5157836",
"0.5154814",
"0.51538825",
"0.51502293",
"0.5140196",
"0.5140015",
"0.51381826",
"0.51207787",
"0.5119667",
"0.511518",
"0.51126957",
"0.51121324",
"0.5108171",
"0.5101275",
"0.5096689",
"0.50949496",
"0.5088488",
"0.50863856",
"0.5084762",
"0.5080618",
"0.5079203"
] | 0.6023739 | 10 |
Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values | public static function __set_state(array $array)
{
return parent::__set_state($array);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function ExportObject() {\n // Init object\n $plugin = new stdClass();\n // Set values\n $plugin->Name = $this->Name;\n $plugin->Version = $this->Version;\n $plugin->Author = $this->Author;\n $plugin->About = $this->About;\n $plugin->Root = $this->Root;\n $plugin->Identifier = $this->Identifier;\n \n // Return result\n return $plugin;\n }",
"protected function constructExportObject()\n\t{\n\t\t//default export is \"all public fields\"\n\t\treturn (object) Arrays::getPublicPropertiesOfObject($this);\n\t}",
"function from_export($value) {\n return $value;\n }",
"public function export(): mixed;",
"public function ExportObject() {\n // Init object\n $col = new stdClass();\n \n // Set values\n $col->id = $this->Id;\n $col->type = $this->Type;\n $col->label = $this->Label;\n $col->p = $this->P;\n \n // Return values\n return $col;\n }",
"public function exportData() {\n\t\treturn $this->constructExportObject();\n\t}",
"public function toObject();",
"function ctools_export_new_object($table, $set_defaults = TRUE) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n $object = new $export['object'];\r\n foreach ($schema['fields'] as $field => $info) {\r\n if (isset($info['object default'])) {\r\n $object->$field = $info['object default'];\r\n }\r\n else if (isset($info['default'])) {\r\n $object->$field = $info['default'];\r\n }\r\n else {\r\n $object->$field = NULL;\r\n }\r\n }\r\n\r\n if ($set_defaults) {\r\n // Set some defaults so this data always exists.\r\n // We don't set the export_type property here, as this object is not saved\r\n // yet. We do give it NULL so we don't generate notices trying to read it.\r\n $object->export_type = NULL;\r\n $object->{$export['export type string']} = t('Local');\r\n }\r\n return $object;\r\n}",
"public function export();",
"public function export();",
"public function export();",
"public function export();",
"public function export();",
"public function createExport();",
"public function newInstance(): object;",
"public static function createFromGlobals();",
"public function export (){\n\n }",
"function &object(object $value, string $namespace = 'default'): object\n{\n $var = new Variable\\ObjectVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}",
"public function getObj();",
"public static function toObject(){\r\n $args = func_get_args();\r\n \r\n if(count($args) >=2){\r\n $className = '\\\\'.str_replace('.', '\\\\', $args[0]);\r\n $refClass = new \\ReflectionClass($className);\r\n $toObjInstance = $refClass->newInstance();\r\n\r\n unset($args[0]);\r\n \r\n foreach($args as $arg){\r\n \r\n if(is_object($arg)){\r\n $arg = Obj::getProperties($arg);\r\n }\r\n \r\n if(is_array($arg)){\r\n foreach($arg as $propertyName=>$propertyValue){\r\n if($refClass->hasProperty($propertyName)){\r\n $property = $refClass->getProperty($propertyName);\r\n $property->setAccessible(true);\r\n $property->setValue($toObjInstance, $propertyValue);\r\n }\r\n }\r\n }\r\n }\r\n return $toObjInstance;\r\n }\r\n }",
"public function export()\n {\n }",
"function &stdClass(stdClass $value, string $namespace = 'default'): stdClass\n{\n $var = new Variable\\StdClassVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}",
"public function getExportableValues() {\n\t\telgg_deprecated_notice(__METHOD__ . ' has been deprecated by toObject()', 1.9);\n\t\treturn array(\n\t\t\t'id',\n\t\t\t'entity_guid',\n\t\t\t'name',\n\t\t\t'value',\n\t\t\t'value_type',\n\t\t\t'owner_guid',\n\t\t\t'type',\n\t\t);\n\t}",
"public function ExportObject() {\n // Init object\n $overviewChart = new stdClass();\n \n // Set values\n $overviewChart->Types = $this->Types;\n $overviewChart->Chart = $this->Chart->ExportObject();\n \n //return result\n return $overviewChart;\n }",
"public function export()\n {\n \n }",
"public function newInstance(): object\n {\n return $this->instantiator->instantiate($this->name);\n }",
"public function getter () {\n return (object)[\n get_plugin_name => $this->plugin_name,\n get_plugin_version => $this->plugin_version,\n get_translation_slug => $this->translation_slug,\n get_admin_page_slug => $this->admin_page_slug,\n get_api_namespace => $this->api_namespace,\n get_options_name => $this->options_name\n ];\n }",
"public function getObject() {}",
"public function getObject() {}",
"public function export()\n {\n //\n }",
"function _instantiateExportDeployment($context) {\n\t\t$exportDeploymentClassName = $this->getExportDeploymentClassName();\n\t\t$this->import($exportDeploymentClassName);\n\t\t$exportDeployment = new $exportDeploymentClassName($context, $this);\n\t\treturn $exportDeployment;\n\t}",
"function get_obj()\n {\n $object = new ApiRest;\n return $object;\n }",
"public function newInstance();",
"public function newInstance();",
"public function __CONSTRUCT(){\n\t}",
"public function getInstance(): object;",
"public function exportedVars(): iterable;",
"public static function fromGlobals() {}",
"public function ExportObject() {\n // Init object\n $submission = new stdClass();\n \n // Set values\n $submission->Id = $this->Id;\n $submission->DateTime = $this->DateTime;\n $submission->GitHash = $this->GitHash;\n $submission->Categories = array();\n \n // Export each category\n foreach ($this->Categories as $category) {\n $submission->Categories[] = $category->ExportObject();\n }\n \n // return result\n return $submission;\n }",
"public function getInstance(): object\n {\n }",
"function ctools_get_default_object($table, $name) {\r\n $schema = ctools_export_get_schema($table);\r\n $export = $schema['export'];\r\n\r\n if (!$export['default hook']) {\r\n return;\r\n }\r\n\r\n // Try to load individually from cache if this cache is enabled.\r\n if (!empty($export['cache defaults'])) {\r\n $defaults = _ctools_export_get_some_defaults($table, $export, array($name));\r\n }\r\n else {\r\n $defaults = _ctools_export_get_defaults($table, $export);\r\n }\r\n\r\n $status = variable_get($export['status'], array());\r\n\r\n if (!isset($defaults[$name])) {\r\n return;\r\n }\r\n\r\n $object = $defaults[$name];\r\n\r\n // Determine if default object is enabled or disabled.\r\n if (isset($status[$object->{$export['key']}])) {\r\n $object->disabled = $status[$object->{$export['key']}];\r\n }\r\n\r\n $object->{$export['export type string']} = t('Default');\r\n $object->export_type = EXPORT_IN_CODE;\r\n $object->in_code_only = TRUE;\r\n\r\n return $object;\r\n}",
"public function toStdClass() {\n $stdClass = new stdClass();\n $stdClass->number = $this->_number;\n $stdClass->internal = $this->_internal;\n return $stdClass;\n }",
"public function getObject(): object;",
"public function get_export_data()\n {\n\n $l_sql = \"SELECT isys_obj_type__id, isys_obj_type__title, isys_verinice_types__title, isys_verinice_types__const \" . \"FROM isys_obj_type \" . \"INNER JOIN isys_verinice_types ON isys_obj_type__isys_verinice_types__id = isys_verinice_types__id \";\n\n return $this->retrieve($l_sql);\n\n }",
"public function dataProviderExport()\n {\n // Regular :\n $data = [\n [\n 'test string',\n var_export('test string', true),\n ],\n [\n 75,\n var_export(75, true),\n ],\n [\n 7.5,\n var_export(7.5, true),\n ],\n [\n null,\n 'null',\n ],\n [\n true,\n 'true',\n ],\n [\n false,\n 'false',\n ],\n [\n [],\n '[]',\n ],\n ];\n // Arrays :\n $var = [\n 'key1' => 'value1',\n 'key2' => 'value2',\n ];\n $expectedResult = <<<'RESULT'\n[\n 'key1' => 'value1',\n 'key2' => 'value2',\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n $var = [\n 'value1',\n 'value2',\n ];\n $expectedResult = <<<'RESULT'\n[\n 'value1',\n 'value2',\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n $var = [\n 'key1' => [\n 'subkey1' => 'value2',\n ],\n 'key2' => [\n 'subkey2' => 'value3',\n ],\n ];\n $expectedResult = <<<'RESULT'\n[\n 'key1' => [\n 'subkey1' => 'value2',\n ],\n 'key2' => [\n 'subkey2' => 'value3',\n ],\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n // Objects :\n $var = new \\StdClass();\n $var->testField = 'Test Value';\n $expectedResult = \"unserialize('\" . serialize($var) . \"')\";\n $data[] = [$var, $expectedResult];\n $var = function () {return 2;};\n $expectedResult = 'function () {return 2;}';\n $data[] = [$var, $expectedResult];\n return $data;\n }",
"public static function export()\n {\n return null;\n }",
"function create()\n\t{\n\t\t$names = $this->_fields;\n\t\t$object = new StdClass;\n\t\tforeach ($names as $name)\n\t\t\t$object->$name = \"\";\n\t\treturn $object;\n\t}",
"public function construct()\n {\n return $this->object;\n }",
"public function metaExport($object = false);",
"public function vars()\n {\n \n return new ArrayWrapper(get_object_vars($this->object));\n \n }",
"public function getValuesObject()\n {\n $obj = new \\stdClass;\n\n foreach ( $this->keyValues as $key => $value )\n {\n $obj->$key = $value;\n }\n\n return $obj;\n }",
"public function getObject();",
"public function getObject();",
"function newDataObject() {\n\t\t$ofrPlugin =& PluginRegistry::getPlugin('generic', $this->parentPluginName);\n\t\t$ofrPlugin->import('classes.ObjectForReviewPerson');\n\t\treturn new ObjectForReviewPerson();\n\t}",
"public function __construct(VariableExportInterface $variableExport)\n {\n $this->serialized = $variableExport->toSerialize();\n }",
"public function as_object($class = TRUE, $arguments = array());",
"function var_export($expression, $return = false)\n{\n}",
"function getObject();",
"function getObject();",
"abstract public function object();",
"public function __construct()\r\n {\r\n $this->_internalObject = new stdClass();\r\n\t\t$a=serialize($this->_internalObject);\r\n\t\t\"echo $a<br>\";\r\n }",
"abstract protected function createObject();",
"function &getInstance($module_srl)\n\t{\n\t\treturn new ExtraVar($module_srl);\n\t}",
"abstract function exportData();",
"function createProduct($name,$price,$qty,$id):stdClass\n{\n$product=new stdClass();\n$product->name=$name;\n$product->price=$price;\n$product->quantity= $qty;\n$product->id=$id;\n\nreturn $product;\n}",
"abstract protected function exportFunctions();",
"public static function factory()\n {\n $class = get_called_class();\n $object = new $class();\n foreach (static::getDefaults() as $field => $value) {\n $object->{$field} = $value;\n }\n return $object;\n }",
"public function &__invoke()\r\n\t{\r\n\t\t$result = new stdClass();\r\n\t\tAdhoc::eachTrap('Registry',\r\n\t\t\tfunction ($trap) use (&$result)\r\n\t\t\t{\r\n\t\t\t\t$data =& $trap->GetList();\r\n\t\t\t\tforeach ($data as $k=>$v)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!isset($result->$k) and isset($v))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$result->$k = $v;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t\t\r\n\t\treturn $result;\r\n\t}",
"public static function instantation($the_record){\n\n // can be used to retrieve a string with the name of the called class and static:: introduces its scope.\n $calling_class = get_called_class();\n\n $the_object = new $calling_class;\n\n\n // doing a loop to get all of the values in the object ]\n foreach($the_record as $key => $value) {\n\n if($the_object->has_the_key($key)){\n $the_object->$key = $value;\n \n }\n }\n\n return $the_object;\n }",
"public static function get_object() {\n\t\treturn self::$object;\n\t}",
"function adminer_object() {\r\n include_once \"./plugins/plugin.php\";\r\n \r\n // autoloader\r\n foreach (glob(\"plugins/*.php\") as $filename) {\r\n include_once \"./$filename\";\r\n }\r\n \r\n $plugins = array(\r\n // specify enabled plugins here\r\n // new AdminerDumpXml,\r\n // new AdminerTinymce,\r\n // new AdminerFileUpload(\"data/\"),\r\n // new AdminerSlugify,\r\n // new AdminerTranslation,\r\n // new AdminerForeignSystem,\r\n // new AdminerLoginPasswordLess(password_hash(\"\", PASSWORD_DEFAULT)),\r\n );\r\n \r\n /* It is possible to combine customization and plugins:\r\n class AdminerCustomization extends AdminerPlugin {\r\n }\r\n return new AdminerCustomization($plugins);\r\n */\r\n class AdminerCustomization extends AdminerPlugin {\r\n function login($login, $password) {\r\n // validate user submitted credentials\r\n return true;\r\n }\r\n }\r\n return new AdminerCustomization($plugins);\r\n \r\n // return new AdminerPlugin($plugins);\r\n}",
"public function ExportItem() {\n // Init object\n $submission = new stdClass();\n \n // Set values\n $submission->Id = $this->Id;\n $submission->DateTime = $this->DateTime;\n $submission->ImportDateTime = $this->ImportDateTime;\n $submission->User = $this->User;\n $submission->Good = $this->Good;\n $submission->Bad = $this->Bad;\n $submission->Strange = $this->Strange;\n $submission->GitHash = $this->GitHash;\n $submission->SequenceNumber = $this->SequenceNumber;\n \n // Return result\n return $submission;\n }",
"private static function _instantiateThisObject() {\r\n $className = get_called_class();\r\n return new $className();\r\n }",
"function instance($obj) {\n\tif (is_string($obj)) {\n\t\t$obj = new $obj;\n\t}\n\treturn $obj;\n}",
"public function getOutputObject()\n {\n $baseObject = parent::getOutputObject();\n $baseObject->name = $this->getName();\n\n return $baseObject;\n }",
"function ctools_var_export($var, $prefix = '') {\r\n if (is_array($var)) {\r\n if (empty($var)) {\r\n $output = 'array()';\r\n }\r\n else {\r\n $output = \"array(\\n\";\r\n foreach ($var as $key => $value) {\r\n $output .= $prefix . \" \" . ctools_var_export($key) . \" => \" . ctools_var_export($value, $prefix . ' ') . \",\\n\";\r\n }\r\n $output .= $prefix . ')';\r\n }\r\n }\r\n else if (is_object($var) && get_class($var) === 'stdClass') {\r\n // var_export() will export stdClass objects using an undefined\r\n // magic method __set_state() leaving the export broken. This\r\n // workaround avoids this by casting the object as an array for\r\n // export and casting it back to an object when evaluated.\r\n $output = '(object) ' . ctools_var_export((array) $var, $prefix);\r\n }\r\n else if (is_bool($var)) {\r\n $output = $var ? 'TRUE' : 'FALSE';\r\n }\r\n else {\r\n $output = var_export($var, TRUE);\r\n }\r\n\r\n return $output;\r\n}",
"public function init_objects() {\n $this->controller_oai = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Expose();\n $this->list_sets = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Sets();\n $this->list_metadata_formats = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Metadata_Formats();\n $this->list_records = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Records();\n $this->get_record = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Get_Record();\n $this->identify = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Identify();\n $this->identifiers = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Identifiers();\n }",
"public function _construct(){\n\t\treturn $this->data;\n\t}",
"public function _construct(){\n\t\treturn $this->data;\n\t}",
"public function regularNew() {}",
"public function newInstance()\n {\n return $this->newInstanceArgs(func_get_args());\n }",
"function data2Object($data) { \n\t\t\t$class_object = new getData($data); \n\t\t\treturn $class_object; \n\t\t}",
"function _construct(){ }",
"function ctools_export_object($table, $object, $indent = '', $identifier = NULL, $additions = array(), $additions2 = array()) {\r\n $schema = ctools_export_get_schema($table);\r\n if (!isset($identifier)) {\r\n $identifier = $schema['export']['identifier'];\r\n }\r\n\r\n $output = $indent . '$' . $identifier . ' = new ' . get_class($object) . \"();\\n\";\r\n\r\n if ($schema['export']['can disable']) {\r\n $output .= $indent . '$' . $identifier . '->disabled = FALSE; /* Edit this to true to make a default ' . $identifier . ' disabled initially */' . \"\\n\";\r\n }\r\n if (!empty($schema['export']['api']['current_version'])) {\r\n $output .= $indent . '$' . $identifier . '->api_version = ' . $schema['export']['api']['current_version'] . \";\\n\";\r\n }\r\n\r\n // Put top additions here:\r\n foreach ($additions as $field => $value) {\r\n $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . ctools_var_export($value, $indent) . \";\\n\";\r\n }\r\n\r\n $fields = $schema['fields'];\r\n if (!empty($schema['join'])) {\r\n foreach ($schema['join'] as $join) {\r\n if (!empty($join['load'])) {\r\n foreach ($join['load'] as $join_field) {\r\n $fields[$join_field] = $join['fields'][$join_field];\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Go through our schema and joined tables and build correlations.\r\n foreach ($fields as $field => $info) {\r\n if (!empty($info['no export'])) {\r\n continue;\r\n }\r\n if (!isset($object->$field)) {\r\n if (isset($info['default'])) {\r\n $object->$field = $info['default'];\r\n }\r\n else {\r\n $object->$field = '';\r\n }\r\n }\r\n\r\n // Note: This is the *field* export callback, not the table one!\r\n if (!empty($info['export callback']) && function_exists($info['export callback'])) {\r\n $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . $info['export callback']($object, $field, $object->$field, $indent) . \";\\n\";\r\n }\r\n else {\r\n $value = $object->$field;\r\n if ($info['type'] == 'int') {\r\n if (isset($info['size']) && $info['size'] == 'tiny') {\r\n $info['boolean'] = (!isset($info['boolean'])) ? $schema['export']['boolean'] : $info['boolean'];\r\n $value = ($info['boolean']) ? (bool) $value : (int) $value;\r\n }\r\n else {\r\n $value = (int) $value;\r\n }\r\n }\r\n\r\n $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . ctools_var_export($value, $indent) . \";\\n\";\r\n }\r\n }\r\n\r\n // And bottom additions here\r\n foreach ($additions2 as $field => $value) {\r\n $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . ctools_var_export($value, $indent) . \";\\n\";\r\n }\r\n\r\n return $output;\r\n}",
"public function createValidObject() : object {\n\t\treturn (object) [\"tweetContent\" => bin2hex(random_bytes(12))];\n\t}",
"public function _init_obj()\n {\n // dummy\n }",
"protected function make_object( \\stdClass $data ) {\n\t\treturn new Purchase( $data );\n\t}",
"public function as_object()\n {\n $this->return_as = 'object';\n return $this;\n }",
"static public function fromObj($anObj) {\n\t\t$theClassName = get_called_class();\n\t\t$o = new $theClassName();\n\t\treturn $o->setDataFrom($anObj);\n\t}",
"function adminer_object() {\n\t\tinclude_once \"plugins/plugin.php\";\n\t\t// autoloader\n\t\tforeach (glob(\"plugins/*.php\") as $filename) {\n\t\t\tinclude_once $filename;\n\t\t}\n\t\t$plugins = array(\n\t\t\t// specify enabled plugins here\n\t\t\tnew AdminerDatabaseHide(array('information_schema', 'mysql', 'performance_schema')),\n\t\t\t//new AdminerDumpJson,\n\t\t\t//new AdminerDumpBz2,\n\t\t\t//new AdminerDumpZip,\n\t\t\t//new AdminerDumpXml,\n\t\t\t//new AdminerDumpAlter,\n\t\t\t//~ new AdminerSqlLog(\"past-\" . rtrim(`git describe --tags --abbrev=0`) . \".sql\"),\n\t\t\t//new AdminerFileUpload(\"\"),\n\t\t\t//new AdminerJsonColumn,\n\t\t\t//new AdminerSlugify,\n\t\t\t//new AdminerTranslation,\n\t\t\t//new AdminerForeignSystem,\n\t\t\t//new AdminerEnumOption,\n\t\t\t//new AdminerTablesFilter,\n\t\t\t//new AdminerEditForeign,\n\t\t);\n\n\t\treturn new AdminerPlugin($plugins);\n\t}",
"public function newCObj() {}",
"private function PREPARE_OBJECT_VARIABLE_METHOD()\r\r {\r\r if($this->_type === 'POST')\r\r {\r\r foreach($this->_fields as $key=>$field)\r\r {\r\r $this->_object[$key]['VALUE'] = isset($_POST[$key])?$_POST[$key]:false;\r\r } \r\r } \r\r else if($this->_type === 'GET')\r\r {\r\r foreach($this->_fields as $key=>$field)\r\r {\r\r $this->_object[$key]['VALUE'] = isset($_GET[$key])?$_GET[$key]:false;\r\r } \r\r } \r\r }",
"public function toStdClass() {\n $stdClass = new stdClass();\n $stdClass->amountInsuranceBase = $this->_amountInsuranceBase;\n $stdClass->fragile = $this->_fragile;\n $stdClass->parcelsCount = $this->_parcelsCount;\n $stdClass->serviceTypeId = $this->_serviceTypeId;\n return $stdClass;\n }",
"public function toStdClass() {\n $stdClass = new stdClass();\n $stdClass->billOfLading = $this->_billOfLading;\n $stdClass->secondaryPickingType = $this->_secondaryPickingType;\n return $stdClass;\n }",
"abstract public function prepare_new_object(array $args);",
"protected function getRealScriptUserObj() {}",
"public function export(bool $private = FALSE, bool $meta = FALSE) {\n\t\t$keys = [];\n\t\t$ret = [];\n\n\t\tif ($private) {\n\t\t\t$keys = static::$PRIVATE;\n\t\t} else {\n\t\t\t$keys = static::$PUBLIC;\n\t\t}\n\n\t\tif (!empty(array_intersect(EXP_RESERVED, $keys))) {\n\t\t\tthrow new ExportableException(\n\t\t\t\t\"Reserved key '\".EXP_CLASSNAME.\"' used in object.\"\n\t\t\t);\n\t\t}\n\n\t\tif ($meta) { // Add metadata.\n\t\t\t$ret[EXP_CLASSNAME] = get_class($this);\n\t\t\t$ret[EXP_VISIBILITY] = $private ? 'private' : 'public';\n\t\t}\n\n\t\tforeach ($keys as $k) {\n\t\t\t$current = $this->__exportable_get($k);\n\t\t\tswitch (gettype($current)) {\n\t\t\t\tcase 'object':\n\t\t\t\t\t$ret[$k] = $this->exp_obj(\n\t\t\t\t\t\t$current, $private, $meta\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'array':\n\t\t\t\t\t$ret[$k] = $this->exp_array(\n\t\t\t\t\t\t$current, $private, $meta\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$ret[$k] = $current;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}",
"public function getInstance(): mixed;",
"public static function & GetInstance ();",
"function FetchObj() {}",
"public function convertToUserIntObject() {}"
] | [
"0.6952081",
"0.6923705",
"0.6575992",
"0.63776064",
"0.6144621",
"0.6124311",
"0.6056106",
"0.60384965",
"0.5922347",
"0.5922347",
"0.5922347",
"0.5922347",
"0.5922347",
"0.5858053",
"0.5838443",
"0.581231",
"0.58007634",
"0.5717352",
"0.57170045",
"0.5713048",
"0.5688804",
"0.565972",
"0.56409496",
"0.56030077",
"0.55251604",
"0.5513128",
"0.54636145",
"0.54076666",
"0.54076666",
"0.540271",
"0.5376259",
"0.5372638",
"0.5370912",
"0.5370912",
"0.53707594",
"0.5343733",
"0.53368115",
"0.53162676",
"0.5309405",
"0.5298841",
"0.526365",
"0.52603227",
"0.5249553",
"0.5244776",
"0.52263486",
"0.5188281",
"0.5179207",
"0.5152583",
"0.51420385",
"0.51352054",
"0.5133654",
"0.51186675",
"0.51186675",
"0.5118288",
"0.5111837",
"0.5107848",
"0.50981027",
"0.50946766",
"0.50946766",
"0.5079589",
"0.503962",
"0.50393796",
"0.50339717",
"0.5008032",
"0.5005665",
"0.50020033",
"0.49990055",
"0.49884254",
"0.49853823",
"0.4980644",
"0.49748427",
"0.4968742",
"0.49580845",
"0.49563855",
"0.49520525",
"0.4950201",
"0.49413323",
"0.49283484",
"0.49283484",
"0.4918644",
"0.4918257",
"0.4916176",
"0.49076205",
"0.49075207",
"0.48957402",
"0.48934105",
"0.48888746",
"0.4884058",
"0.48817477",
"0.48765224",
"0.48752543",
"0.48635548",
"0.48623723",
"0.4862294",
"0.4848054",
"0.4847276",
"0.48409247",
"0.48400858",
"0.4840015",
"0.4835099",
"0.4834946"
] | 0.0 | -1 |
Method returning the class name | public function __toString()
{
return __CLASS__;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getClassName();",
"public function getClassName();",
"public function getClassName() ;",
"public function getClassName() {}",
"public function getClassName() {}",
"public function getClassName() {}",
"public function getClassName() {}",
"public function getClassName()\n {\n return __CLASS__;;\n }",
"private function get_class_name() {\n\t\t\treturn !is_null($this->class_name) ? $this->class_name : get_class($this);\n\t\t}",
"public function getClassName() {\r\n\t\treturn($this->class_name);\r\n\t}",
"public static function get_class_name() {\r\n\t\treturn __CLASS__;\r\n\t}",
"public function getClassName() { return __CLASS__; }",
"public static function getClassName() {\n\t\treturn get_called_class();\n\t}",
"public function getClassName(): string\n {\n return $this->get(self::CLASS_NAME);\n }",
"public static function getClassName()\n\t{\n\t\treturn get_called_class();\n\t}",
"public static function getClassName()\n {\n return get_called_class();\n }",
"public function getClassName()\n {\n return $this->class;\n }",
"public function getClassName()\n {\n return $this->class;\n }",
"public static function className() : string {\n return get_called_class();\n }",
"public function getName()\n {\n return __CLASS__;\n }",
"public function getName()\n\t{\n\t\treturn str_replace('\\\\', '_', __CLASS__);\n\t}",
"public function getClassName()\n {\n return $this->class_name;\n }",
"public function class_name() {\n\t\treturn strtolower(get_class($this));\n\t}",
"public function getName(): string\n {\n return __CLASS__;\n }",
"public static function getClassName() {\n return get_called_class();\n }",
"public function getClassname(){\n\t\treturn $this->classname;\n\t}",
"public function getClassname()\n\t{\n\t\treturn $this->classname;\n\t}",
"public function getClassName()\n {\n return $this->_sClass;\n }",
"public function get_just_class_name() {\n\n\t\t$full_path = $this->get_called_class();\n\n\t\treturn substr( strrchr( $full_path, '\\\\' ), 1 );\n\n\t}",
"protected function getClassName(): string\n {\n return $this->className;\n }",
"public static function getClassName() {\n return self::$className;\n }",
"public function getClassName(): string;",
"public function getClassName() : string;",
"public function getName() {\r\n $parsed = Parser::parseClassName(get_class());\r\n return $parsed['className'];\r\n }",
"public function getClassName() : string\n {\n return $this->className;\n }",
"public function getClassName()\n {\n $fullClass = get_called_class();\n $exploded = explode('\\\\', $fullClass);\n\n return end($exploded);\n }",
"public static function getClassName()\n {\n $classNameArray = explode('\\\\', get_called_class());\n\n return array_pop($classNameArray);\n }",
"public function getClassName(): string\n {\n return $this->className;\n }",
"public function getClassName(): string\n {\n return $this->className;\n }",
"public function getClassName() {\t\t\n\t\treturn MemberHelper::getClassName($this->classNumber);\n\t}",
"public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}",
"public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}",
"public function getClassName() {\r\n\t\treturn $this->strClassName;\r\n\t}",
"public function getClassName() : string\n {\n\n return $this->className;\n }",
"public function getClassName()\n {\n return $this->className;\n }",
"public function getClassName()\n {\n return $this->className;\n }",
"public function getClassName()\n {\n return $this->className;\n }",
"public function getClassName()\n {\n return $this->className;\n }",
"public function getClassName()\n {\n return $this->className;\n }",
"public function getClassName()\n {\n return $this->className;\n }",
"public function getClassName()\n {\n return $this->className;\n }",
"public function getClassName()\n {\n return $this->className;\n }",
"public static function staticGetClassName()\n {\n return __CLASS__;\n }",
"public function getClassName() {\n return $this->className;\n }",
"public function getClassName() {\n\t\treturn $this->className;\n\t}",
"public function getClassName(): string\n {\n return $this->makeClassFromFilename($this->filename);\n }",
"public function getClassName() {\n\t\treturn $this->_className;\n\t}",
"public function getClassName() {\n return $this->className;\n }",
"public function getClassName() {\n return $this->className;\n }",
"public function getClassName ()\n {\n $className = explode('\\\\', get_class($this));\n\n return array_pop($className);\n }",
"function getClassName()\n {\n // TODO: Implement getClassName() method.\n }",
"public static function getClassName(){\n $parts = explode('\\\\', static::class);\n return end($parts);\n }",
"function getClassName(){\n echo __CLASS__ . \"<br><br>\"; \n }",
"public function name()\n {\n $name = get_class($this);\n\n return substr($name, strrpos($name, '\\\\') + 1);\n }",
"public function class()\n {\n // @codingStandardsIgnoreLine\n return $this->class ?? \"\";\n }",
"public function getClass()\n {\n return $this->_className;\n }",
"private function getClassName() {\n return (new \\ReflectionClass(static::class))->getShortName();\n }",
"public function getName() {\n\t\t\n\t\t// cut last part of class name\n\t\treturn substr( get_class( $this ), 0, -11 );\n\t\t\n\t}",
"public function getClassNm()\r\n {\r\n\t\t$tabInfo = $this->getPathInfo();\r\n\t\treturn $tabInfo[1];\r\n }",
"public function className()\n {\n $full_path = explode('\\\\', get_called_class());\n return end($full_path);\n }",
"private function className () {\n $namespacedClass = explode(\"\\\\\", get_class($this));\n\n return end($namespacedClass);\n }",
"public function getClass(): string\n {\n return $this->class;\n }",
"public static function getFullyQualifiedClassName() {\n $reflector = new \\ReflectionClass(get_called_class());\n return $reflector->getName();\n }",
"public function getClassName()\n\t{\n\t\tif (null === $this->_className) {\n\t\t\t$this->setClassName(get_class($this));\n\t\t}\n\t\t\n\t\treturn $this->_className;\n\t}",
"public function getClassName() : string {\n if ($this->getType() != Router::CLOSURE_ROUTE) {\n $path = $this->getRouteTo();\n $pathExplode = explode(DS, $path);\n\n if (count($pathExplode) >= 1) {\n $fileNameExplode = explode('.', $pathExplode[count($pathExplode) - 1]);\n\n if (count($fileNameExplode) == 2 && $fileNameExplode[1] == 'php') {\n return $fileNameExplode[0];\n }\n }\n }\n\n return '';\n }",
"public function getName(){\n\t\treturn get_class($this);\n\t}",
"public function getClassName() {\r\n return $this->myCRUD()->getClassName();\r\n }",
"public static function className()\n\t{\n\t\treturn static::class;\n\t}",
"public function toClassName(): string\n {\n return ClassName::full($this->name);\n }",
"public function getName()\n {\n return static::CLASS;\n }",
"public function getClass(): string;",
"public function getClass(): string;",
"public function getClass(): string;",
"public function getClass(): string;",
"public function getClass(): string;",
"public function getClass(): string;",
"function getName()\n {\n return get_class($this);\n }",
"public function className(): string\n {\n return $this->taskClass->name();\n }",
"public static function getClassName($class)\n {\n return static::splitClassName($class)[1];\n }",
"function getName()\r\n\t{\r\n\t\treturn get_class($this);\r\n\t}",
"public function getName() {\n return get_class($this);\n }",
"public function getName() {\n return get_class($this);\n }",
"public function toString()\n {\n return __CLASS__;\n }",
"public function getName()\n\t{\n\t\treturn $this->name ?: class_basename($this);\n\t}",
"public function getNamespacedName()\n {\n return get_class();\n }",
"protected function name() {\n\t\treturn strtolower(str_replace('\\\\', '_', get_class($this)));\n\t}",
"protected function getClassName()\n {\n return ucwords(camel_case($this->getNameInput())) . 'TableSeeder';\n }",
"function getClassName($name)\n{\n return str_replace('_', ' ', snake_case(class_basename($name)));\n}",
"public function getClassName(): ?string {\n\t\treturn Hash::get($this->_config, 'className');\n\t}",
"public function __toString() {\n\t\treturn $this->className();\n\t}",
"public static function name()\n {\n return lcfirst(self::getClassShortName());\n }"
] | [
"0.87522393",
"0.87522393",
"0.8751158",
"0.87397957",
"0.87397957",
"0.87397957",
"0.87397957",
"0.8731564",
"0.8696754",
"0.8673495",
"0.8638432",
"0.8615335",
"0.8603119",
"0.8566906",
"0.8562364",
"0.8555002",
"0.85503733",
"0.85503733",
"0.85425884",
"0.8533183",
"0.8529981",
"0.85237026",
"0.8502733",
"0.8493115",
"0.8491238",
"0.8488943",
"0.8484194",
"0.847459",
"0.8441478",
"0.8418852",
"0.8399611",
"0.83950585",
"0.83949184",
"0.83853173",
"0.8378261",
"0.837777",
"0.8372544",
"0.8355432",
"0.8355432",
"0.83479965",
"0.8325877",
"0.8325877",
"0.8312873",
"0.83027107",
"0.8272631",
"0.8272631",
"0.8272631",
"0.8272631",
"0.8272631",
"0.8272631",
"0.8272631",
"0.8272631",
"0.82474744",
"0.8242934",
"0.8202995",
"0.8185409",
"0.8184752",
"0.81829107",
"0.81829107",
"0.8176191",
"0.81761754",
"0.8162896",
"0.8142928",
"0.81323636",
"0.8062757",
"0.80528253",
"0.8045769",
"0.8033823",
"0.8026215",
"0.8001116",
"0.79949147",
"0.79779136",
"0.79672754",
"0.7957633",
"0.790449",
"0.78617185",
"0.7860126",
"0.7847096",
"0.78195953",
"0.7817044",
"0.780094",
"0.780094",
"0.780094",
"0.780094",
"0.780094",
"0.780094",
"0.77821547",
"0.7761565",
"0.77588034",
"0.7747239",
"0.77409905",
"0.77409905",
"0.7710985",
"0.76808393",
"0.7670475",
"0.76640886",
"0.76514393",
"0.76499707",
"0.76323646",
"0.76005036",
"0.75937456"
] | 0.0 | -1 |
protected section execute methods | protected function execute_watch($vk_tools, $text) {
Logger::log(LOG_DEBUG, "executing watch, text = $text");
if (isset($text) && $text != '') {
try {
$user = $vk_tools->get_user($text, array());
Logger::log(LOG_DEBUG, 'got user with id '. $user->{'id'});
if ($this->watch_action($user->{'id'})) {
$this->send_formatted_message('['. $vk_tools->get_user_name($user). '](https://vk.com/id'. $user->{'id'}. ') добавлен в список наблюдения.');
} else {
$this->send_formatted_message('['. $vk_tools->get_user_name($user). '](https://vk.com/id'. $user->{'id'}. ') уже есть в списке наблюдения.');
}
} catch (Exception $e) {
if ($e->getCode() == 404) {
$this->sendMessage('Не могу найти такого пользователя :(');
} else {
$this->send_fail_message();
Logger::log(LOG_ERR, $e->getMessage());
}
}
} else {
$message = $this->send_formatted_message("Хорошо, давай добавим человека в список наблюдения. Для этого пришли мне его или её _id_, _поддомен_ или _ссылку_ на его или её страницу.\n\n".
"Например, если хочешь добавить в список Павла Дурова, прошли мне *1*, *durov* или *https://vk.com/durov*.\n\nЕсли ты передумал и не хочешь никого добавлять, пришли мне в ответ /0.", new ForceReply());
$message_id = $message->getMessageId();
Logger::log(LOG_DEBUG, 'message id: '. $message_id);
$this->register_session($message_id, 'watch');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function _run();",
"abstract protected function _run();",
"protected function _exec()\n {\n }",
"protected abstract function run();",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"public function execute() {}",
"protected abstract function performImpl();",
"abstract public function Execute();",
"public function execute()\n {\n }",
"public function execute() {\n\t}",
"protected function doExecute()\n\t{\n\t\t// Your application routines go here.\n\t}",
"public function execute() { }",
"public abstract function execute();",
"public abstract function execute();",
"public abstract function execute();",
"protected function _process() {}",
"protected function _process() {}",
"protected function _process() {}",
"protected function _process() {}",
"abstract public function execute();",
"abstract public function execute();",
"abstract public function execute();",
"abstract public function execute();",
"protected abstract function onExecute();",
"abstract public function execute() ;",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"abstract public function run();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute();",
"public function execute() {\n }",
"public function execute()\n {\n }",
"public function execute()\n {\n }",
"protected function executeAction() {}",
"protected function executeAction() {}",
"protected function executeAction() {}",
"protected function executeAction() {}",
"abstract public function run() ;",
"protected function _postExec()\n {\n }",
"abstract function execute ();",
"public function __invoke()\n {\n $this->execute();\n }",
"protected function process()\n {}",
"abstract function run();",
"abstract function execute();",
"abstract function execute();",
"abstract protected function _process();",
"abstract protected function _process();",
"public abstract function run();",
"public abstract function run();",
"public abstract function exec();",
"private function before_execute()\n {\n }",
"public function execute()\n {\n\n }",
"protected function executeSpecificStep() {}",
"function execute()\n {\n }",
"public function run(){}",
"protected function executeAction() {\n \n }",
"function execute()\r\n\t{\r\n\t\t\r\n\t}",
"abstract protected function executeCommand();",
"public function execute(): void\n {\n }",
"public function perform();",
"public function execute(): void;",
"public function execute()\n\t{\n\t\t$this->run();\n\t}",
"protected abstract function _exec($params = array());",
"public function run()\n\t{\n\t\t//\n\t}"
] | [
"0.7775583",
"0.7775583",
"0.76560295",
"0.7584582",
"0.7462016",
"0.7462016",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74616194",
"0.74608785",
"0.74608785",
"0.74608785",
"0.74608785",
"0.74608785",
"0.74608785",
"0.7452069",
"0.73912776",
"0.73671186",
"0.73144346",
"0.7304019",
"0.7289546",
"0.72635955",
"0.72635955",
"0.72635955",
"0.7261409",
"0.7261409",
"0.7261409",
"0.7261409",
"0.725666",
"0.725666",
"0.725666",
"0.725666",
"0.7249403",
"0.72024906",
"0.7189264",
"0.7189264",
"0.7189264",
"0.7189264",
"0.7189264",
"0.7189264",
"0.7189264",
"0.7189264",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7180133",
"0.7178868",
"0.71732503",
"0.71732503",
"0.7135987",
"0.7134139",
"0.7134139",
"0.7134139",
"0.71308774",
"0.7105413",
"0.7092217",
"0.7091637",
"0.7085919",
"0.7063162",
"0.7039097",
"0.7039097",
"0.70208323",
"0.70208323",
"0.7013164",
"0.7013164",
"0.69962335",
"0.6969567",
"0.696016",
"0.6950593",
"0.69484895",
"0.69418436",
"0.6937889",
"0.69312394",
"0.6908443",
"0.68512374",
"0.68278605",
"0.6825327",
"0.68185306",
"0.6785347",
"0.6778915"
] | 0.0 | -1 |
/ |========================================================== | get corrupted match proposal | public function getCorruptedMatchProposal($matchId,$teamId)
{
$queryString="SELECT *
FROM corruption_match
WHERE match_id=$matchId
AND receiver=$teamId
AND response=0";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getExhaustionExplanation ();",
"public function match() {\r\n\t\treturn false;\r\n\t}",
"public function testFailingOnMismatchedExpectation() {\n\t\t$test = new IncorrectOutputSingleExpectationTestCase( 'test' );\n\t\t$result = $test->run();\n\n\t\t$this->assertSame( 1, $result->failureCount() );\n\t\t$this->assertSame( 1, \\count( $result ) );\n\n\t\t$failures = $result->failures();\n\t\t$this->assertStringContainsString(\n\t\t\t\"Failed asserting that 'The quick brown fox jumps over the lazy dog' matches PCRE pattern \\\"#\",\n\t\t\t$failures[0]->exceptionMessage()\n\t\t);\n\t}",
"public function getMatch();",
"function yy_r143(){$this->_retvalue = '<='; }",
"function yy_r139(){$this->_retvalue = '!='; }",
"public function tellInvalidCard()\n {\n }",
"public function corruptionAccepted($matchId)\n {\n /*$queryString=\"SELECT *\n FROM corruption_match\n WHERE match_id=$matchId\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;*/\n $queryString=\"UPDATE corruption_match\n SET response=1\n WHERE match_id=$matchId\";\n $query = $this->db->query($queryString);\n }",
"function compare_results(&$matcher, &$expected, &$obtained, &$ismatchpassed, &$fullpassed, &$indexfirstpassed, &$indexlastpassed, &$nextpassed, &$leftpassed) {\n $ismatchpassed = ($expected['is_match'] == $obtained['is_match']);\n $fullpassed = ($expected['full'] == $obtained['full']);\n $result = $ismatchpassed && $fullpassed;\n if ($obtained['is_match'] && $expected['is_match']) { // TODO - what if we need a character with no match?\n // checking indexes\n if ($matcher->is_supporting(preg_matcher::SUBPATTERN_CAPTURING)) {\n $indexfirstpassed = ($expected['index_first'] == $obtained['index_first']);\n $indexlastpassed = ($expected['index_last'] == $obtained['index_last']);\n } else {\n $indexfirstpassed = ($expected['index_first'][0] == $obtained['index_first'][0]);\n $indexlastpassed = ($expected['index_last'][0] == $obtained['index_last'][0]);\n }\n // checking next possible character\n if ($matcher->is_supporting(preg_matcher::NEXT_CHARACTER)) {\n $nextpassed = (($expected['next'] === '' && $obtained['next'] === '') || // both results are empty\n ($expected['next'] !== '' && $obtained['next'] !== '' && strstr($expected['next'], $obtained['next']) != false)); // expected 'next' contains obtained 'next'\n } else {\n $nextpassed = true;\n }\n // checking number of characters left\n if ($matcher->is_supporting(preg_matcher::CHARACTERS_LEFT)) {\n $leftpassed = in_array($obtained['left'], $expected['left']);\n } else {\n $leftpassed = true;\n }\n $result = $result && $indexfirstpassed && $indexlastpassed && $nextpassed && $leftpassed;\n } else {\n $indexfirstpassed = true;\n $indexlastpassed = true;\n $nextpassed = true;\n $leftpassed = true;\n }\n return $result;\n }",
"function process_nonmatches(&$output, &$text_old, &$text_new)\n\t{\n\t\t$s1 = sizeof($text_old);\n\t\t$s2 = sizeof($text_new);\n\n\t\tif ($s1 > 0 AND $s2 == 0)\n\t\t{\n\t\t\t// lines deleted\n\t\t\tarray_unshift($output, new vB_Text_Diff_Entry(implode(\"\\n\", $text_old), ''));\n\t\t}\n\t\telse if ($s2 > 0 AND $s1 == 0)\n\t\t{\n\t\t\t// lines added\n\t\t\tarray_unshift($output, new vB_Text_Diff_Entry('', implode(\"\\n\", $text_new)));\n\t\t}\n\t\telse if ($s1 > 0 AND $s2 > 0)\n\t\t{\n\t\t\t// substitution\n\t\t\tarray_unshift($output, new vB_Text_Diff_Entry(implode(\"\\n\", $text_old), implode(\"\\n\", $text_new)));\n\t\t}\n\n\t\t$text_old = array();\n\t\t$text_new = array();\n\t}",
"function clean_pre($matches)\n {\n }",
"protected function _refine() {\n\n\t}",
"public function amazing()\n\t{\n\t\tif (preg_match('/^\\(\\?+\\) \\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Ass Backwards (2013) WEBrip XviD AC3 (english subs)) [18/35] - \"Ass Backwards (2013) WEBrip XviD AC3 (english subs).part17.rar\" yEnc\n\t\tif (preg_match('/^\\([\\w!.,&_ ()\\[\\]\\'\\`-]{8,}\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Angels4Always) [1/1] - \"Vermeulen, John - De tweelingparadox.rar\" yEnc\n\t\tif (preg_match('/^\\(Angels4Always\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Heaven_en_Fayth Presenteren Diana Gabaldon - Reiziger Cyclus 01 - De Reiziger[0/3] - \"Diana Gabaldon - Reiziger Cyclus 01 - De Reiziger.nzb\" yEnc\n\t\tif (preg_match('/^[\\w!.,&_ ()\\[\\]\\'\\`-]{8,}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //www.wolfsteamers.info [1/6] - \"Wohnen Bauen Leben - Sommer 2014.par2\" - 16,46 MB yEnc\n\t\tif (preg_match('/^www\\.wolfsteamers\\.info[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //096XZFUPQ0PxH4441H14fU8V - [34/99] - \"096XZFUPQ0PxH4441H14fU8V.part033.rar\" yEnc\n\t\tif (preg_match('/^\\w+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //05VANmA80DckBho \"05VANmA80DckBho.part07.rar\"08/94 yEnc\n\t\tif (preg_match('/^\\w+[-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t '\\d+(\\/\\d+)[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Slaapkop post voor http://the-ultimate-force.org.ua/) [0/7] - \"Wham - I'm Your Man (1985).nzb\" yEnc\n\t\tif (preg_match('/^\\(.+the-ultimate-force\\.org\\.ua\\/\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(001/101) - P2H - \"L62WD8P4U539A7.par2\" - 4,66 GB - Z9F6KN7SXRCY845 yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - P2H - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '[-_\\s]{0,3}\\d+([.,]\\d+)? [kKmMgG][bB][-_\\s]{0,3}\\w+[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(001/101) \"654258ItB1418pBRDNS264159.par2\" - 9,74 GB - yEnc\n\t\t//(001/105) - Description - \"oH291TB0bPxf3lqm1P7QQ.par2\" - 4,56 GB - yEnc\n\t\t//(03/43) - FTTEAM.INFO - \"JDSJ2J4ENASJCKR-FTTEAM.INFO.part02.rar\" - 2,04 GB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\)([-_ ]{0,4}(Description|FTTEAM\\.INFO))?[-_ ]{0,4}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[3];\n\t\t} //- - [001/242] - \"C65JuogI92CwfMo2TiX59.par2\" yEnc\n\t\tif (preg_match('/^[-_ .]{0,4}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //- \"5nivJ7V6Q2jqAR34bZ8m.part46.rar\" yEnc\n\t\tif (preg_match('/^[-_ .]{0,4}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //- \"7UAF6LE2PDM38NB.par2\" - 8,53 GB - yEnc\n\t\tif (preg_match('/^[-_ .]{0,4}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //- [01/10] - \"file.xyz\" yEnc - [001/107] - \"86u1Qr8mm56jGiW7nUPTM.par2\" yEnc\n\t\tif (preg_match('/^[-_ ]{0,4}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+\" yEnc[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"function yy_r145(){$this->_retvalue = '!=='; }",
"function preg_match_all(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): ?int\n{\n error_clear_last();\n $safeResult = \\preg_match_all($pattern, $subject, $matches, $flags, $offset);\n if ($safeResult === false) {\n throw PcreException::createFromPhpError();\n }\n return $safeResult;\n}",
"function yy_r119(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }",
"public function bloaf()\n\t{\n\t\tif (preg_match('/^([a-f0-9]{32}) - \\(\\d+\\/\\d+\\) - \"[a-f0-9]{32}.+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[10/17] - \"EGk13kQ1c8.part09.rar\" - 372.48 MB <-> usenet-space-cowboys.info <-> powered by secretusenet.com <-> yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' - \\d+[,.]\\d+ [mMkKgG][bB] .+? usenet-space.+?yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Neu bei Bitfighter vom 23-07-2013) - \"01 - Sido - Bilder Im Kopf.mp3\" yEnc\n\t\tif (preg_match('/^\\((.+?)\\) - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(2/8) \"Mike.und.Molly.S01E22.Maennergespraeche.GERMAN.DL.DUBBED.720p.BluRay.x264-TVP.part1.rar\" - 1023,92 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' - \\d+[,.]\\d+ [mMkKgG][bB] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //4y (PW) [@ usenet-4all.info - powered by ssl.news -] [27,35 GB] [001/118] \"1f8867bb6f89491793d3.part001.rar\" yEnc\n\t\tif (preg_match('/^.+? (-|\\(PW\\))\\s+\\[.+? -\\] \\[\\d+[,.]\\d+ [mMkKgG][bB]\\] \\[\\d+\\/\\d+\\] \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Bennos Special Tools DVD - Die Letzte <> DRM <><> PW <> - (002/183) \"Bennos Special Tools DVD - Die Letzte.nfo\" - 8,28 GB - yEnc\n\t\tif (preg_match('/^(\\[[A-Za-z]+\\]\\.)?([a-zA-Z0-9].+?)([\\^<> ]+give-me-all\\.org[\\^<> ]+|[\\^<> ]+)DRM[\\^<> ]+.+? - \\(\\d+\\/\\d+\\)\\s+\".+?\" - .+? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//(1/9) - CyberLink.PhotoDirector.4.Ultra.4.0.3306.Multilingual - \"CyberLink.PhotoDirector.4.Ultra.4.0.3306.Multilingual.par2\" - 154,07 MB - yEnc\n\t\t//(1/5) - Mac.DVDRipper.Pro.4.0.8.Mac.OS.X- \"Mac.DVDRipper.Pro.4.0.8.Mac.OS.X.rar\" - 24,12 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - (.+?) ?- \".+?\" - \\d+[,.]\\d+ [mMkKgG][bB] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[3/3 Helene Fischer - Die Biene Maja 2013 MP3 Helene Fischer - Die Biene Maja 2013 MP3.mp3.vol0+1.PAR2\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+ (.+?)\\..+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-Mutter.und.Sohn.German.2013.DVDRiP.x264-XFi[01/27]\"xf-mutterusohn.nfo\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-(.+)[\\(\\[]\\d+\\/\\d+[\\)\\]]\".+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"public function GetMatch ();",
"public function moovee()\n\t{\n\t\tif (preg_match('/\\[ENJOY\\]-\\[FULL\\]-\\[.+\\]-\\[ (.+) \\]-\\[\\d+\\/\\d+\\]-\".+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} ///PROUT Movie (2010) NTSC DVD [157/15768] - \"PROUTmovie_NTSC.part155.rar\" yEnc\n\t\tif (preg_match('/^(.+DVD.*) \\[\\d+\\/\\d+\\] - \".+\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//[ Hammer.of.the.Gods.2013.720p.WEB-DL.DD5.1.H.264-ELiTE ]-[01/44] - \"Hammer.of.the.Gods.2013.720p.WEB-DL.DD5.1.H.264-ELiTE.par2\" yEnc\n\t\t//[134863]-[ Rihanna.No.Regrets.2013.720p.WEB-DL.DD5.1.H.264-PZK ]-[52/52] - \"Rihanna.No.Regrets.2013.720p.WEB-DL.DD5.1.H.264-PZK.vol127+76.par2\" yEnc\n\t\t//[Hard.Target.1993.UNRATED.720p.BluRay.x264-88keyz] - [001/101] - \"Hard.Target.1993.UNRATED.720p.BluRay.x264-88keyz.nfo\"\n\t\t//[ Fast.And.Furious.6.2013.720p.WEB-DL.AAC2.0.H.264-HDCLUB ]-[REAL]-[01/54] - \"Fast.And.Furious.6.2013.720p.WEB-DL.AAC2.0.H.264-HDCLUB.nfo\" yEnc\n\t\tif (preg_match('/^(\\[\\d+\\]-)?\\[ ?([a-zA-Z0-9.-]{6,}) ?\\](-\\[REAL\\])? ?- ?\\[\\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //\"Nights.of.Cabiria.1957.NTSC.DVD.x264-Tree\"(23/57) \"Nights.of.Cabiria.1957.NTSC.DVD.x264-Tree.part22.rar\" - 2.40 GB yEnc\n\t\tif (preg_match('/^\"(.+(DVD|BluRay|BRRip).+)\"\\(\\d+\\/\\d+\\) \".+\".+[GMK]B yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(????) [0/1] - \"A.Good.Day.to.Die.Hard.2013.nzb\" yEnc\n\t\tif (preg_match('/^\\(\\?{4}\\) \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[xxxxx]-[#a.b.moovee@EFNet]-[ xxxxx ]-[02/66] - \"tulob88.part01.rar\" yEnc\n\t\tif (preg_match('/^\\[x+\\]-\\[.+?\\]-\\[ x+ \\]-\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//Groove.2000.iNTERNAL.DVDRip.XviD-UBiK - [001/111] - \"ubik-groove-cd1.par2\" yEnc\n\t\t//Antony.and.Cleopatra.1972.720p.WEB-DL.H264-brento -[35/57] - \"Antony.and.Cleopatra.1972.720p.WEB-DL.AAC2.0.H.264-brento.part34.rar\" yEnc\n\t\tif (preg_match('/^([a-zA-Z0-9._-]+) - ?\\[\\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Iron.Man.3.2013.R5.DVDRip.XviD-AsA) (01/26) - \"Iron.Man.3.2013.R5.DVDRip.XviD-AsA.part01.part.sfv\" yEnc\n\t\tif (preg_match('/^\\(([a-zA-Z0-9.-]+)\\) \\(\\d+\\/\\d+\\) - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Classic Surf) Morning.Of.The.Earth.1971 [03/29] - \"Morning.Of.The.Earth.1971.part02.rar\" yEnc\n\t\tif (preg_match('/^\\([a-zA-Z0-9].+?\\) ([a-zA-Z0-9.-]+) \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[51/62] Morrissey.25.Live.Concert.2013.BDRip.x264-N0TSC3N3 - \"n0tsc3n3-morrissey.25.live.2013.bdrip.x264.rar\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\] (.+) - \".+\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //[AD120512-00006]-[UnOFFSc3n4iT]-[0131105] Chloe.Tra.Seduzione.E.Inganno.2009.iTALiAN.DVDRip.XviD-TRL [19/41] - \"trl-chltsdzn.part18.rar\" yEnc\n\t\tif (preg_match('/^\\[\\w+-\\w+\\]-\\[\\w+\\]-\\[\\d+\\] (.+) \\[\\d+\\/\\d+\\] - \".+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Breathe.In.2013.BRRip.x264-4UN [01/39] - \"Breathe.In.2013.BRRip.x264-4UN.nfo\" yEnc\n\t\tif (preg_match('/^(.+x264.+) \\[\\d+\\/\\d+\\] - \".+\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //The.CyB3rMaFiA.PimPs.YouR.RiDE.WiTH [REPACK] [40/42] - \"d2p5uypp7yn3drpk1080417.vol255+064.par2\" yEnc\n\t\tif (preg_match('/^(.+) \\[REPACK\\] \\[\\d+\\/\\d+\\] - \".+\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //[ Oklahoma\\!.1955.720p.WEB-DL.AAC2.0.H.264-CtrlHD ]-[32/55] - \"Oklahoma.1955.720p.WEB-DL.AAC2.0.H.264-CtrlHD.part31.rar\" yEnc\n\t\tif (preg_match('/\\[ (.+WEB-DL.+) \\]-\\[\\d+\\/\\d+\\] - \"(.+)\\.(mp4|mkv|ts|rar|par.+)\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //REQ: working copy of \"That Darn Cat 1997 Xvid-Any grp\" Plz Ty (47/60) \"geckos-ghr2011-xvid.r44\" - 744,19 MB - Gun.Hill.Road.2011.LIMITED.DVDRip.XviD-GECKOS yEnc\n\t\tif (preg_match('/^REQ:.+\".+\".+\\(\\d+\\/\\d+\\) \".+\" - \\d+[,.]\\d+ [MGK]B - (.+) yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(T.U.F The real thing I Frankenstein 2014 NL Subs T.U.F) [01/52] - \"I Frankenstein 2014 NL Subs.par2\" yEnc\n\t\tif (preg_match('/^\\(T\\.U\\.F The real thing (.+?) T\\.U\\.F\\)/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(Ringside.The.Best.of.Mike.Tyson.DVDRip.x264.AC3-FCZ)[01/68] - \"Ringside.The.Best.of.Mike.Tyson.DVDRip.1.of.2.x264.AC3-FCZ.nfo\" yEnc\n\t\tif (preg_match('/^\\(([\\w.-]+)\\)\\[\\d+\\/(\\d+\\])[-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"public function cd_lossless()\n\t{\n\t\t////Flac Flood Modern Talking - America - \"1 - Modern Talking - Win The Race.flac\" (01/18) (29,12 MB) 549,35 MB yEnc\n\t\tif (preg_match('/^Flac Flood( -)? (.+?) - \".+?\" \\(\\d+\\/\\d+\\) .+? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//Cannonball Adderley - Nippon Soul [01/17] \"00 - Cannonball Adderley - Nippon Soul.nfo\" yEnc\n\t\t//Black Tie White Noise [01/24] - \"00 - David Bowie - Black Tie White Noise.nfo\" yEnc\n\t\tif (preg_match('/^([a-zA-Z0-9].+?) \\[\\d+\\/\\d+\\]( -)? \"\\d{2,} - .+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//The Allman Brothers Band - Statesboro Blues [Swingin' Pig - Bootleg] [1970 April 4] - File 09 of 19: Statesboro Blues.cue yEnc\n\t\t//[1977] Joan Armatrading - Show Some Emotion - File 15 of 20: 06 Joan Armatrading - Opportunity.flac yEnc\n\t\tif (preg_match('/^((\\[\\d{4}\\] )?[a-zA-Z0-9].+?) - File \\d+ of \\d+: .+? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //The Allman Brothers Band - The Fillmore Concerts [1971] - 06 The Allman Brothers Band - Done Somebody Wrong.flac yEnc\n\t\tif (preg_match('/^([A-Z0-9].+? - [A-Z0-9].+? \\[\\d{4}\\]) - \\d{2,} .+? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //The Velvet Underground - Peel Slow And See (Box Set) Disc 5 of 5 - 13 The Velvet Underground - Oh Gin.flac yEnc\n\t\tif (preg_match('/^([A-Z0-9].+? - [A-Z0-9].+? Disc \\d+ of \\d+) - [A-Z0-9].+?\\..+? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(28/55) \"Ivan Neville - If My Ancestors Could See Me Now.par2\" - 624,44 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' - \\d+[,.]\\d+ [mMkKgG][bB] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"public function etc()\n\t{\n\t\tif (preg_match('/^\\[scnzbefnet\\] (.+?) \\[\\d+\\/(\\d+\\]) - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //..:[DoAsYouLike]:.. 116,12 MB \"Graphite v8.9.17 SP4R4.nfo\" 3,00 kB yEnc\n\t\tif (preg_match('/^.+\\[DoAsYouLike\\].+\\d+[.,]\\d+ [kKmMgG][bB].+\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . ' (\\d+[.,])?\\d+ ([kKmMgG])?[bB][-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(047/550) \"Enf.S02E02.G.D.D.W.7.H.x2-e.vol105+99.PAR2\" - 36,13 GB -Enf.S02.G.D.D.W.7.H.x2-e yEnc\n\t\t//[3/3] - \"Mayle Peter - Der Coup von Marseille.epub.vol0+1.par2\" - 956,83 kB {UR} yEnc\n\t\tif (preg_match('/^[\\(\\[]\\d+\\/\\d+[\\)\\]][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '.+yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<Old but Sold>>> <<< >< >< \"German Top 50 ODC - 12.08.2013.nfo\" >< 02/33 (541,61 MB) >< 10,93 kB > yEnc\n\t\tif (preg_match('/^.+Old but Sold.+>< \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . ' >< \\d+\\/\\d+ \\(\\d+[.,]\\d+ [kKmMgG][bB]\\).+ yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<THOR for Usenet-Space-Cowboys>>> - 1Password V1.0.9.236 Setup Key.PAR2 yEnc\n\t\tif (preg_match('/^.+Usenet-Space-Cowboys.+> - ([A-Z0-9][a-zA-Z0-9\\. ]{6,})([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+ yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //704900999555666777123978 - [398/415] - \"Jormungand Complete [720p] mHD.part31.rar\" yEnc\n\t\tif (preg_match('/^\\d+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<< old but sold >>>> < USC> <\"K11 - Kommissare im Einsatz (DE) NDS.part3.rar\">[04/11] 74,54 MB yEnc\n\t\tif (preg_match('/^.+old but sold.+([\\w. ()-]{8,}?\\b)' . $this->e0 .\n\t\t\t\t\t '>\\[\\d+\\/\\d+\\][-_\\s]{0,3}\\d+[.,]\\d+ [kKmMgG][bB][-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-ACDC.Let.There.Be.Rock.1980.720p.BluRay.DD5.1.x264-DON(00/47]\"rock.ac3.720p.nzb\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-([\\w. ()-]{8,}?\\b)[\\(\\[]\\d+\\/\\d+\\]\".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Bitsum.Technologies.Process.Lasso.Pro.v6.5.00.Cracked-EAT - [3/4] - \"eat.vol0+1.par2\" yEnc\n\t\tif (preg_match('/^([\\w.()-]{8,})[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<usenet-space-cowboys.info>>> USC <<<Powered by https://secretusenet.com><Medieval Wii Pal>< \"Medieval Wii Pal.vol108+29.par2\" >< 60/60 (4,82 GB) >< 95,77 MB > yEnc\n\t\tif (preg_match('/^.+?usenet-space.+?Powered by.+? \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '.+? \\d+\\/(\\d+.+?)$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-ACDC.Let.There.Be.Rock.1980.720p.BluRay.DD5.1.x264-DON(00/47]\"rock.ac3.720p.nzb\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-([\\w. ()-]{8,}?\\b)[\\(\\[]\\d+\\/\\d+\\]\".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Bitsum.Technologies.Process.Lasso.Pro.v6.5.00.Cracked-EAT - [3/4] - \"eat.vol0+1.par2\" yEnc\n\t\tif (preg_match('/^([\\w.()-]{8,})[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<usenet-space-cowboys.info>>> USC <<<Powered by https://secretusenet.com><Medieval Wii Pal>< \"Medieval Wii Pal.vol108+29.par2\" >< 60/60 (4,82 GB) >< 95,77 MB > yEnc\n\t\tif (preg_match('/^.+?usenet-space.+?Powered by.+? ([\\w. ()-]{8,}?\\b)' . $this->e0 .\n\t\t\t\t\t '.+? \\d+\\/(\\d+.+?)$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //W33d5.S01.720p.BluRay.x264 - \"W33d5.S01.720p.BluRay.x264.part63.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>GOU<< XUS Clock Plus v1.5.0 with Key [TorDigger].PAR2 >>www.SSL-News.info< yEnc\n\t\tif (preg_match('/^>GOU<< ([\\w.\\[\\]() -]{8,}?\\b)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rarr|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+www\\.SSL-News\\.info<[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>GOU<< XUS Clock Plus v1.5.0 with Key [TorDigger].PAR2 >>www.SSL-News.info< yEnc\n\t\tif (preg_match('/^>GOU<< ([\\w.\\[\\]() -]{8,}?\\b)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rarr|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+www\\.SSL-News\\.info<[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"Drains_READNFO-VACE.nfo\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"public function e_book_flood()\n\t{\n\t\tif (preg_match('/^New eBooks.+[ _-]{0,3}(\"|#34;)(.+?.+)\\.(par|vol|rar|nfo).*?(\"|#34;)/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//World War II History - \"Spies of the Balkans - Alan Furst.mobi\" yEnc\n\t\t//True Crime \"T. J. English - Havana Nocturne (v5.0).mobi\" yEnc\n\t\t//E C Tubb Flood - \"E C Tubb - Dumarest 31 The Temple of Truth.epub\" - yEnc\n\t\tif (preg_match('/^[A-Za-z ]+[-_\\s]{0,3}\"(.+?)\\.(txt|pdf|mobi|epub|azw)\"[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //SFF Dump - \"Thomas M. Disch - Camp Concentration.epub\" (1033/1217) - 226.47 kB - yEnc\n\t\tif (preg_match('/^SFF Dump - \"(.+?)\\.(txt|pdf|mobi|epub|azw)\" \\(\\d+\\/\\d+\\) - \\d+[.,]\\d+ [kKmMgG][bB] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(American Curves - Summer 2012) [01/10] - \"AMECURSUM12.par2\" yEnc\n\t\tif (preg_match('/^\\(([a-zA-Z0-9 -]+)\\) \\[\\d+\\/(\\d+\\]) - \".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Patterson flood - Mobi - 15/45 \"James Patterson - AC 13 - Double Cross.mobi\"\n\t\tif (preg_match('/(.+?)[-_\\s]{0,3}\\d+\\/(\\d+[-_\\s]{0,3}\".+?)\\.(txt|pdf|mobi|epub|azw)\"( \\(\\d+\\/\\d+\\))?( )?$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//Re: REQ: Jay Lake's Mainspring series/trilogy (see titles inside) - \"Lake, Jay - Clockwork Earth 03 - Pinion [epub].rar\" 405.6 kBytes yEnc\n\t\t//Attn: Brownian - \"del Rey, Maria - Paradise Bay (FBS).rar\" yEnc\n\t\t//New Scan \"Herbert, James - Sepulchre (html).rar\" yEnc\n\t\tif (preg_match('/^(Attn:|Re: REQ:|New Scan).+?[-_\\s]{0,3}\"(.+)(\\.part\\d*|\\.rar)?(\\.vol.+ \\(\\d+\\/\\d+\\) \"|\\.[A-Za-z0-9]{2,4}\")[-_\\s]{0,3}(\\d+[.,]\\d+ [kKmMgG][bB](ytes)?)? yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//\"Gabaldon, Diana - Outlander [5] The Fiery Cross.epub\" yEnc\n\t\t//Kiny Friedman \"Friedman, Kinky - Prisoner of Vandam Street_ A Novel, The.epub\" yEnc\n\t\tif (preg_match('/.*\"(.+?)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\").+?yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[001/125] (NL Epub Wierook Set 49) - \"Abulhawa, Susan - Litteken van David_Ochtend in Jenin.epub\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\] .+? - \"(.+)(\\.part\\d*|\\.rar)?(\\.vol.+ \\(\\d+\\/\\d+\\) \"|\\.[A-Za-z0-9]{2,4}\") yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(1/1) \"Radiological Imaging of the Kidney - E. Quaia (Springer, 2011) WW.pdf\" - 162,82 MB - (Radiological Imaging of the Kidney - E. Quaia (Springer, 2011) WW) yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) \"(.+)(\\.part\\d*|\\.rar)?(\\.vol.+ \\(\\d+\\/\\d+\\) \"|\\.[A-Za-z0-9]{2,4}\").+?yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(1/7) \"0865779767.epub\" - 88,93 MB - \"Anatomic Basis of Neurologic Diagnosis - epub\" yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) \".+(\\.part\\d*|\\.rar)?(\\.vol.+ \\(\\d+\\/\\d+\\) \"|\\.[A-Za-z0-9]{2,4}\")([-_\\s]{0,3}\\d+[.,]\\d+ [kKmMgG][bB])?[-_\\s]{0,3}\"(.+?)\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[4];\n\t\t}\n\t\t//Re: REQ: Jay Lake's Mainspring series/trilogy (see titles inside) - \"Lake, Jay - Clockwork Earth 03 - Pinion [epub].rar\" 405.6 kBytes yEnc\n\t\t//Attn: Brownian - \"del Rey, Maria - Paradise Bay (FBS).rar\" yEnc\n\t\t//New Scan \"Herbert, James - Sepulchre (html).rar\" yEnc\n\t\tif (preg_match('/^(Attn:|Re: REQ:|New Scan).+?[-_\\s]{0,3}\"(.+)(\\.part\\d*|\\.rar)?(\\.vol.+ \\(\\d+\\/\\d+\\) \"|\\.[A-Za-z0-9]{2,4}\")[-_\\s]{0,3}(\\d+[.,]\\d+ [kKmMgG][bB](ytes)?)? yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//*FULL REPOST* New eBooks 26 Nov 2012 & 20% PAR2 Set - \"Elisabeth Kyle - The Captain's House (siPDF).rar\"\n\t\t//*REPOST* New eBooks 23 Nov 2012 - \"Charles Culver - [The 11th Floor 02] - Awakening (mobi).rar\"\n\t\tif (preg_match('/^\\*(FULL )?REPOST\\* New eBooks.+[-_\\s]{0,3}\"(.+)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\")$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//1 - 5 July 2013 - Search for number at end of title - Bevin Alexander - How Hitler Could Have Won World War II- The Fatal Errors That Lead to Nazi Defeat (epub).rar - 14418-25255-6053.rar.txt yEnc\n\t\t//10 July 2013 - Search 4 Numeric String at End of Subject - Andew Hodges - Alan Turing- The Enigma (Centenary Edition) (kf8 mobi).rar = 21317-25234-21710.rar.txt yEnc\n\t\tif (preg_match('/^.+?Search (for|4) (number|Numeric String) at end of (title|Subject)[-_\\s]{0,3}(.+)(\\.part\\d*|\\.rar)?(\\.vol.+ \\(\\d+\\/\\d+\\) \"|\\.[A-Za-z0-9]{2,4})[-\\=_ ]{0,3}\\d+[-_\\s]{0,3}.+?yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[4];\n\t\t} //\"Back to Pakistan_ A Fifty-Year Journey - Leslie Noyes Mass.pdf\" 2778K\n\t\tif (preg_match('/^\"(.+)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\")[-_\\s]{0,3}\\d+[kKmMgG]$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//[002/182] A. E. Van Vogt - The Anarchistic Colossus.mobi mobi flood\n\t\t//[002/115] Alan Dean Foster - Alien.mobi sf single author flood\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\][-_\\s]{0,3}(.+)\\.(txt|pdf|mobi|epub|azw)[-_\\s]{0,3}.+flood( )?$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[2/4] Graham Masterton - Descendant.mobi\n\t\tif (preg_match('/^\\[\\d+\\/(\\d+\\]) (.+?)\\.(txt|pdf|mobi|epub|azw)/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//14. Alexander Kent - [Bolitho 12] - Signal Close Action (v2.0) (epub).epubAs Req Alexander Kent yEnc\n\t\t//22.The Darkening Sea - Alexander Kent.epubAs Req Alexander Kent yEnc\n\t\tif (preg_match('/^\\d+\\. {0,1}(.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})As Req.+yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //reposting 2012-10-31 new ebooks with 35.74 pars - AD&D - [Tomes] - The Rod of Seven Parts - Douglas Niles (mobi).rar yEnc\n\t\tif (preg_match('/^reposting \\d+-\\d+-\\d+ new ebooks.+ pars[-_\\s]{0,3}(.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //15 - Men at Arms.pdf yEnc\n\t\tif (preg_match('/^\\d+ - (.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//Filling Req for Delderfield- To Serve Them All My Days - R F Delderfield.mobi [6/6] - yEnc\n\t\t//Filling Request - Armistead Maupin - 1 - Tales of the City.mobi [1/8] - yEnc\n\t\tif (preg_match('/^Filling Req(uest)?( for \\w+)?[-_\\s]{0,3}(.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) \\[\\d+\\/\\d+\\] - yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[3];\n\t\t} //ATTN:Fozz E Bear Rogue - Danielle Steel.epub yEnc\n\t\tif (preg_match('/^ATTN:Fozz E Bear (.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //As Requested - Silent Spring - Rachel Carson.epub [1/2] - yEnc\n\t\tif (preg_match('/^As Requested - (.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) \\[\\d+\\/\\d+\\] - yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Attn: fastpiety - your requests - Countess of Carnarvon - Lady Almina and the Real Downton Abbey- The Lost Legacy of Highclere Castle (epub).epub [1/1] - yEnc\n\t\tif (preg_match('/^Attn: fastpiety - your requests[-_\\s]{0,3}(.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) \\[\\d+\\/\\d+\\] - yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Amanda Ashley - [Night 02] - Night's Touch (v5.0) (epub).epub yEnc\n\t\tif (preg_match('/^(.+?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}) yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //A Game of Thrones 01- George R. R. Martin.mobi_as found yEnc\n\t\tif (preg_match('/^([^.]{8,})\\.[A-Za-z0-9]{2,4}_as found[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Ben Carson - America the Beautiful- Rediscovering What Made This Nation Great (epub).epub - File 1 of 1 - yEnc\n\t\tif (preg_match('/^([^.]{8,})\\.[A-Za-z0-9]{2,4}[-_\\s]{0,3}File \\d+ of \\d+[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Re: Attn Reg143- (Morse 7) The Secret of Annexe 3 - Colin Dexter.mobi [11/14] - yEnc\n\t\tif (preg_match('/^Re: Attn Reg143- ([^.]{8,})\\.[A-Za-z0-9]{2,4}[-_\\s]{0,3}\\[\\d+\\/\\d+\\][- ]{0,4}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //New eBooks 20 Aug 2012 - File 001 of 409 - yEnc\n\t\tif (preg_match('/^([\\w.,& ()\\[\\]\\'\\`-]{8,}?)[-_\\s]{0,3}File \\d+ of \\d+[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Re: Request - 05 L. E. Modesitt - Princeps.mobi [5/7] - yEnc\n\t\tif (preg_match('/^Re: Request[- ]{0,4}\\d+[-_\\s]{0,3}([^.]{8,})([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}\\[\\d+\\/\\d+\\][- ]{0,4}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Bighathi) [4/4] - \"Letters to Penthouse XXiLetters to Penthouse XXI - The Editors of Penthouse Magazine.epub\" yEnc\n\t\tif (preg_match('/^\\(.+\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(HUMAN BIO & MED 207) [02/39] - \"Organic Chemistry 6th ed - L. Wade {SOLUTIONS MANUAL - J. Simek] (Pearson, 2006) WW.pdf\" *REPOST* yEnc\n\t\tif (preg_match('/^\\(.+\\)[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 . '.+REPOST.+[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //01 - The Colour of Magic.pdf yEnc\n\t\tif (preg_match('/^\\d+[-_\\s]{0,3}([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}-]{8,}?\\b.?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(Esperanto novel) - H.A. Luyken - Pro ICtar.epub yEnc\n\t\tif (preg_match('/^\\(.+\\)[-_\\s]{0,3}([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}-]{8,}?\\b.?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //All I have - not checked John D MacDonald - April Evil.epub yEnc\n\t\tif (preg_match('/^All I have - not checked[-_\\s]{0,3}([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}-]{8,}?\\b.?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //As req \"Aftermath - Peter Robinson.mobi\" yEnc Peter Robinson - Inspector Banks 12\n\t\tif (preg_match('/^As req[-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 . '[-_\\s]{0,3}yEnc.+$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //As req \"Aftermath - Peter Robinson.mobi\" yEnc Peter Robinson - Inspector Banks 12\n\t\tif (preg_match('/^Attn.+\\[\\d+-\\d+\\][-_\\s]{0,3}([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}-]{8,}?\\b.?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //ATTN: Robert A. Ely - Wilde, Lori - Zero Control [html].rar yEnc\n\t\tif (preg_match('/^Attn:[-_\\s]{0,3}([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}-]{8,}?\\b.?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //ATTN: Drake@Darkest air.com - Kurtz, Katherine - Heirs of Saint Camber 03 - The Bastard Prince [txt].zip yEnc\n\t\tif (preg_match('/^Attn:.+\\.com[-_\\s]{0,3}([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}-]{8,}?\\b.?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //reposting 2012-10-27 new ebooks with 35.74 pars - M William Phelps - Sleep In Heavenly Peace (mobi).rar yEnc\n\t\tif (preg_match('/^reposting.+pars[-_\\s]{0,3}([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}-]{8,}?\\b.?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];} //A Tradition of Victory - Alexander Kent.epub yEnc\n\t\tif (preg_match('/^([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}-]{8,}?\\b.?)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[-_\\s]{0,3}yEnc$/ui', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//\"Gabaldon, Diana - Outlander [5] The Fiery Cross.epub\" yEnc\n\t\t//Kiny Friedman \"Friedman, Kinky - Prisoner of Vandam Street_ A Novel, The.epub\" yEnc\n\t\tif (preg_match('/.*\"(.+?)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\").+?yEnc$/',\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"public function disabled_test_parse_grade_replace_message() {\n $message = '\n <imsx_POXEnvelopeRequest xmlns = \"http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0\">\n <imsx_POXHeader>\n <imsx_POXRequestHeaderInfo>\n <imsx_version>V1.0</imsx_version>\n <imsx_messageIdentifier>999998123</imsx_messageIdentifier>\n </imsx_POXRequestHeaderInfo>\n </imsx_POXHeader>\n <imsx_POXBody>\n <replaceResultRequest>\n <resultRecord>\n <sourcedGUID>\n <sourcedId>' .\n '{"data":{"instanceid":"2","userid":"2"},"hash":' .\n '"0b5078feab59b9938c333ceaae21d8e003a7b295e43cdf55338445254421076b"}' .\n '</sourcedId>\n </sourcedGUID>\n <result>\n <resultScore>\n <language>en-us</language>\n <textString>0.92</textString>\n </resultScore>\n </result>\n </resultRecord>\n </replaceResultRequest>\n </imsx_POXBody>\n </imsx_POXEnvelopeRequest>\n';\n\n $parsed = lti_parse_grade_replace_message(new SimpleXMLElement($message));\n\n $this->assertEquals($parsed->userid, '2');\n $this->assertEquals($parsed->instanceid, '2');\n $this->assertEquals($parsed->sourcedidhash, '0b5078feab59b9938c333ceaae21d8e003a7b295e43cdf55338445254421076b');\n\n $ltiinstance = (object)array('servicesalt' => '4e5fcc06de1d58.44963230');\n\n lti_verify_sourcedid($ltiinstance, $parsed);\n }",
"function yy_r4(){ $this->_retvalue = ''; }",
"function yy_r74(){ $this->_retvalue = 'OUTER'; }",
"function verifyRegEx(){\n parent::doExpandAdvanceSection();\n $this->type(TEXT_EDITOR, \"\");\n $this->click(LINK_SEARCH);\n $this->type(TEXT_EDITOR, (TEXT_SAMPLE_REGEX));\n $this->type(INPUT_SEARCH, (TEXT_SEARCH_REGEX));\n $this->type(INPUT_REPLACE, (TEXT_REPLACE_REGEX));\n $this->click(CHK_REGEX);\n $this->click(BUTTON_REPLACEALL);\n $this->click(BUTTON_CANCEL);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $this->assertEquals((TEXT_REGEX_PREVIEW), $this->getText(TEXT_PREVIEW_TEXT1));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n try {\n $this->assertEquals((TEXT_REGEX_PREVIEW), $this->getText(TEXT_PREVIEW_TEXT2));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n try {\n $this->assertEquals((TEXT_REGEX_PREVIEW), $this->getText(TEXT_PREVIEW_TEXT3));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }",
"public function getRawMatches()\n {\n return $this->rawMatches;\n }",
"function do_assertions($matchername, $regex, $str, $obtained, $ismatchpassed, $fullpassed, $indexfirstpassed, $indexlastpassed, $nextpassed, $leftpassed, $assertionstrue = false) {\n $this->assertTrue($assertionstrue || $ismatchpassed, \"$matchername failed 'is_match' check on regex '$regex' and string '$str'\");\n if (!$ismatchpassed) {\n echo 'obtained result ' . $obtained['is_match'] . ' for \\'is_match\\' is incorrect<br/>';\n }\n $this->assertTrue($assertionstrue || $fullpassed, \"$matchername failed 'full' check on regex '$regex' and string '$str'\");\n if (!$fullpassed) {\n echo 'obtained result ' . $obtained['full'] . ' for \\'full\\' is incorrect<br/>';\n }\n if (array_key_exists('index_first', $obtained)) {\n $this->assertTrue($assertionstrue || $indexfirstpassed, \"$matchername failed 'index_first' check on regex '$regex' and string '$str'\");\n if (!$indexfirstpassed) {\n echo 'obtained result '; print_r($obtained['index_first']); echo ' for \\'index_first\\' is incorrect<br/>';\n }\n }\n if (array_key_exists('index_last', $obtained)) {\n $this->assertTrue($assertionstrue || $indexlastpassed, \"$matchername failed 'index_last' check on regex '$regex' and string '$str'\");\n if (!$indexlastpassed) {\n echo 'obtained result '; print_r($obtained['index_last']); echo ' for \\'index_last\\' is incorrect<br/>';\n }\n }\n if (array_key_exists('next', $obtained)) {\n $this->assertTrue($assertionstrue || $nextpassed, \"$matchername failed 'next' check on regex '$regex' and string '$str'\");\n if (!$nextpassed) {\n echo 'obtained result \\'' . $obtained['next'] . '\\' for \\'next\\' is incorrect<br/>';\n }\n }\n if (array_key_exists('left', $obtained)) {\n $this->assertTrue($assertionstrue || $leftpassed, \"$matchername failed 'left' check on regex '$regex' and string '$str'\");\n if (!$leftpassed) {\n echo 'obtained result \\'' . $obtained['left'] . '\\' for \\'left\\' is incorrect<br/>';\n }\n }\n }",
"protected function remove_iunreserved_percent_encoded($match)\n {\n }",
"public function testParseWithTwoTokensWithLookaheadRemoval(): void\n {\n $this->expectException(ParserException::class);\n $this->expectExceptionMessage('Invalid Roman');\n $this->expectExceptionCode(ParserException::INVALID_ROMAN);\n\n $this->parser->parse([Grammar::T_I, Grammar::T_X, Grammar::T_I, Grammar::T_X]);\n }",
"function yy_r94(){$this->_retvalue = ''; }",
"public function testFixUtf8()\n {\n // http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt\n $tests = [\n '1 Some correct UTF-8 text' => [\n \"\\u{3BA}\\u{1F79}\\u{3C3}\\u{3BC}\\u{3B5}\",\n \"\\u{3BA}\\u{1F79}\\u{3C3}\\u{3BC}\\u{3B5}\",\n ],\n '2 Boundary condition test cases' => [\n '2.1 First possible sequence of a certain length' => [\n '2.1.1 1 byte (U-00000000)' => [\n \"\\x00\",\n \"\\x00\",\n ],\n '2.1.2 2 bytes (U-00000080)' => [\n \"\\u{80}\",\n \"\\u{80}\",\n ],\n '2.1.3 3 bytes (U-00000800)' => [\n \"\\u{800}\",\n \"\\u{800}\",\n ],\n '2.1.4 4 bytes (U-00010000)' => [\n \"\\u{10000}\",\n \"\\u{10000}\",\n ],\n '2.1.5 5 bytes (U-00200000)' => [\n \"\\xF8\\x88\\x80\\x80\\x80\",\n '',\n ],\n '2.1.6 6 bytes (U-04000000)' => [\n \"\\xFC\\x84\\x80\\x80\\x80\\x80\",\n '',\n ],\n ],\n '2.2 Last possible sequence of a certain length' => [\n '2.2.1 1 byte (U-0000007F)' => [\n \"\\x7F\",\n \"\\x7F\",\n ],\n '2.2.2 2 bytes (U-000007FF)' => [\n \"\\u{7FF}\",\n \"\\u{7FF}\",\n ],\n '2.2.3 3 bytes (U-0000FFFF)' => [\n \"\\u{FFFF}\",\n \"\\u{FFFF}\",\n ],\n '2.2.4 4 bytes (U-001FFFFF)' => [\n \"\\xF7\\xBF\\xBF\\xBF\",\n '',\n ],\n '2.2.5 5 bytes (U-03FFFFFF)' => [\n \"\\xFB\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n '2.2.6 6 bytes (U-7FFFFFFF)' => [\n \"\\xFD\\xBF\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n ],\n '2.3 Other boundary conditions' => [\n '2.3.1 U-0000D7FF' => [\n \"\\u{D7FF}\",\n \"\\u{D7FF}\",\n ],\n '2.3.2 U-0000E000' => [\n \"\\u{E000}\",\n \"\\u{E000}\",\n ],\n '2.3.3 U-0000FFFD' => [\n \"\\u{FFFD}\",\n \"\\u{FFFD}\",\n ],\n '2.3.4 U-0010FFFF' => [\n \"\\u{10FFFF}\",\n \"\\u{10FFFF}\",\n ],\n '2.3.5 U-00110000' => [\n \"\\xF4\\x90\\x80\\x80\",\n '',\n ],\n ],\n ],\n '3 Malformed sequences' => [\n '3.1 Unexpected continuation bytes' => [\n '3.1.1 First continuation byte 0x80' => [\n \"\\x80\",\n '',\n ],\n '3.1.2 Last continuation byte 0xbf' => [\n \"\\xBF\",\n '',\n ],\n '3.1.3 2 continuation bytes' => [\n \"\\x80\\xBF\",\n '',\n ],\n '3.1.4 3 continuation bytes' => [\n \"\\x80\\xBF\\x80\",\n '',\n ],\n '3.1.5 4 continuation bytes' => [\n \"\\x80\\xBF\\x80\\xBF\",\n '',\n ],\n '3.1.6 5 continuation bytes' => [\n \"\\x80\\xBF\\x80\\xBF\\x80\",\n '',\n ],\n '3.1.7 6 continuation bytes' => [\n \"\\x80\\xBF\\x80\\xBF\\x80\\xBF\",\n '',\n ],\n '3.1.8 7 continuation bytes' => [\n \"\\x80\\xBF\\x80\\xBF\\x80\\xBF\\x80\",\n '',\n ],\n '3.1.9 Sequence of all 64 possible continuation bytes (0x80-0xbf)' => [\n implode('', range(\"\\x80\", \"\\xBF\")),\n '',\n ],\n ],\n '3.2 Lonely start characters' => [\n '3.2.1 All 32 first bytes of 2-byte sequences (0xc0-0xdf), each followed by a space character' => [\n implode(' ', range(\"\\xC0\", \"\\xDF\")) . ' ',\n str_repeat(' ', 32),\n ],\n '3.2.2 All 16 first bytes of 3-byte sequences (0xe0-0xef), each followed by a space character' => [\n implode(' ', range(\"\\xE0\", \"\\xEF\")) . ' ',\n str_repeat(' ', 16),\n ],\n '3.2.3 All 8 first bytes of 4-byte sequences (0xf0-0xf7), each followed by a space character' => [\n implode(' ', range(\"\\xF0\", \"\\xF7\")) . ' ',\n str_repeat(' ', 8),\n ],\n '3.2.4 All 4 first bytes of 5-byte sequences (0xf8-0xfb), each followed by a space character' => [\n implode(' ', range(\"\\xF8\", \"\\xFB\")) . ' ',\n str_repeat(' ', 4),\n ],\n '3.2.5 All 2 first bytes of 6-byte sequences (0xfc-0xfd), each followed by a space character' => [\n implode(' ', range(\"\\xFC\", \"\\xFD\")) . ' ',\n str_repeat(' ', 2),\n ],\n ],\n '3.3 Sequences with last continuation byte missing' => [\n '3.3.1 2-byte sequence with last byte missing (U+0000)' => [\n \"\\xC0\",\n '',\n ],\n '3.3.2 3-byte sequence with last byte missing (U+0000)' => [\n \"\\xE0\\x80\",\n '',\n ],\n '3.3.3 4-byte sequence with last byte missing (U+0000)' => [\n \"\\xF0\\x80\\x80\",\n '',\n ],\n '3.3.4 5-byte sequence with last byte missing (U+0000)' => [\n \"\\xF8\\x80\\x80\\x80\",\n '',\n ],\n '3.3.5 6-byte sequence with last byte missing (U+0000)' => [\n \"\\xFC\\x80\\x80\\x80\\x80\",\n '',\n ],\n '3.3.6 2-byte sequence with last byte missing (U-000007FF)' => [\n \"\\xDF\",\n '',\n ],\n '3.3.7 3-byte sequence with last byte missing (U-0000FFFF)' => [\n \"\\xEF\\xBF\",\n '',\n ],\n '3.3.8 4-byte sequence with last byte missing (U-001FFFFF)' => [\n \"\\xF7\\xBF\\xBF\",\n '',\n ],\n '3.3.9 5-byte sequence with last byte missing (U-03FFFFFF)' => [\n \"\\xFB\\xBF\\xBF\\xBF\",\n '',\n ],\n '3.3.10 6-byte sequence with last byte missing (U-7FFFFFFF)' => [\n \"\\xFD\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n ],\n '3.4 Concatenation of incomplete sequences' => [\n \"\\xC0\\xE0\\x80\\xF0\\x80\\x80\\xF8\\x80\\x80\\x80\\xFC\\x80\\x80\\x80\\x80\\xDF\\xEF\\xBF\\xF7\\xBF\\xBF\\xFB\\xBF\\xBF\\xBF\\xFD\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n '3.5 Impossible bytes' => [\n '3.5.1 fe' => [\n \"\\xFE\",\n '',\n ],\n '3.5.2 ff' => [\n \"\\xFF\",\n '',\n ],\n '3.5.3 fe fe ff ff' => [\n \"\\xFE\\xFE\\xFF\\xFF\",\n '',\n ],\n ],\n ],\n '4 Overlong sequences' => [\n '4.1 Examples of an overlong ASCII character' => [\n '4.1.1 U+002F = c0 af' => [\n \"\\xC0\\xAF\",\n '',\n ],\n '4.1.2 U+002F = e0 80 af' => [\n \"\\xE0\\x80\\xAF\",\n '',\n ],\n '4.1.3 U+002F = f0 80 80 af' => [\n \"\\xF0\\x80\\x80\\xAF\",\n '',\n ],\n '4.1.4 U+002F = f8 80 80 80 af' => [\n \"\\xF8\\x80\\x80\\x80\\xAF\",\n '',\n ],\n '4.1.5 U+002F = fc 80 80 80 80 af' => [\n \"\\xFC\\x80\\x80\\x80\\x80\\xAF\",\n '',\n ],\n ],\n '4.2 Maximum overlong sequences' => [\n '4.2.1 U-0000007F = c1 bf' => [\n \"\\xC1\\xBF\",\n '',\n ],\n '4.2.2 U-000007FF = e0 9f bf' => [\n \"\\xE0\\x9F\\xBF\",\n '',\n ],\n '4.2.3 U-0000FFFF = f0 8f bf bf' => [\n \"\\xF0\\x8F\\xBF\\xBF\",\n '',\n ],\n '4.2.4 U-001FFFFF = f8 87 bf bf bf' => [\n \"\\xF8\\x87\\xBF\\xBF\\xBF\",\n '',\n ],\n '4.2.5 U-03FFFFFF = fc 83 bf bf bf bf' => [\n \"\\xFC\\x83\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n ],\n '4.3 Overlong representation of the NUL character' => [\n '4.3.1 U+0000 = c0 80' => [\n \"\\xC0\\x80\",\n '',\n ],\n '4.3.2 U+0000 = e0 80 80' => [\n \"\\xE0\\x80\\x80\",\n '',\n ],\n '4.3.3 U+0000 = f0 80 80 80' => [\n \"\\xF0\\x80\\x80\\x80\",\n '',\n ],\n '4.3.4 U+0000 = f8 80 80 80 80' => [\n \"\\xF8\\x80\\x80\\x80\\x80\",\n '',\n ],\n '4.3.5 U+0000 = fc 80 80 80 80 80' => [\n \"\\xFC\\x80\\x80\\x80\\x80\\x80\",\n '',\n ],\n ],\n ],\n '5 Illegal code positions' => [\n '5.1 Single UTF-16 surrogates' => [\n '5.1.1 U+D800 = ed a0 80' => [\n \"\\xED\\xA0\\x80\",\n '',\n ],\n '5.1.2 U+DB7F = ed ad bf' => [\n \"\\xED\\xAD\\xBF\",\n '',\n ],\n '5.1.3 U+DB80 = ed ae 80' => [\n \"\\xED\\xAE\\x80\",\n '',\n ],\n '5.1.4 U+DBFF = ed af bf' => [\n \"\\xED\\xAF\\xBF\",\n '',\n ],\n '5.1.5 U+DC00 = ed b0 80' => [\n \"\\xED\\xB0\\x80\",\n '',\n ],\n '5.1.6 U+DF80 = ed be 80' => [\n \"\\xED\\xBE\\x80\",\n '',\n ],\n '5.1.7 U+DFFF = ed bf bf' => [\n \"\\xED\\xBF\\xBF\",\n '',\n ],\n ],\n '5.2 Paired UTF-16 surrogates' => [\n '5.2.1 U+D800 U+DC00 = ed a0 80 ed b0 80' => [\n \"\\xED\\xA0\\x80\\xED\\xB0\\x80\",\n '',\n ],\n '5.2.2 U+D800 U+DFFF = ed a0 80 ed bf bf' => [\n \"\\xED\\xA0\\x80\\xED\\xBF\\xBF\",\n '',\n ],\n '5.2.3 U+DB7F U+DC00 = ed ad bf ed b0 80' => [\n \"\\xED\\xAD\\xBF\\xED\\xB0\\x80\",\n '',\n ],\n '5.2.4 U+DB7F U+DFFF = ed ad bf ed bf bf' => [\n \"\\xED\\xAD\\xBF\\xED\\xBF\\xBF\",\n '',\n ],\n '5.2.5 U+DB80 U+DC00 = ed ae 80 ed b0 80' => [\n \"\\xED\\xAE\\x80\\xED\\xB0\\x80\",\n '',\n ],\n '5.2.6 U+DB80 U+DFFF = ed ae 80 ed bf bf' => [\n \"\\xED\\xAE\\x80\\xED\\xBF\\xBF\",\n '',\n ],\n '5.2.7 U+DBFF U+DC00 = ed af bf ed b0 80' => [\n \"\\xED\\xAF\\xBF\\xED\\xB0\\x80\",\n '',\n ],\n '5.2.8 U+DBFF U+DFFF = ed af bf ed bf bf' => [\n \"\\xED\\xAF\\xBF\\xED\\xBF\\xBF\",\n '',\n ],\n ],\n // noncharacters are allowed according to http://www.unicode.org/versions/corrigendum9.html\n '5.3 Other illegal code positions' => [\n '5.3.1 U+FFFE = ef bf be' => [\n \"\\u{FFFE}\",\n \"\\u{FFFE}\",\n ],\n '5.3.2 U+FFFF = ef bf bf' => [\n \"\\u{FFFF}\",\n \"\\u{FFFF}\",\n ],\n ],\n ],\n ];\n\n $stack = [$tests];\n while ($item = array_pop($stack)) {\n if (isset($item[0])) {\n [$in, $out, $label] = $item;\n $this->assertSame('a' . $out . 'b', Strings::fixUtf8('a' . $in . 'b'), $label);\n } else {\n foreach (array_reverse($item) as $label => $tests) {\n $stack[] = $tests + (isset($tests[0]) ? [2 => $label] : []);\n }\n }\n }\n }",
"function yy_r54(){ $this->_retvalue = array(); }",
"public function testGetInvalidStrainReviewByStrainReviewTxt() {\n\t\t// grab a strain review by searching for content that does not exist\n\t\t$strainReview = StrainReview::getStrainReviewByStrainReviewTxt($this->getPDO(), \"Dee Dee Dee, No Such Thing\");\n\t\t$this->assertCount(0, $strainReview);\n\t}",
"function testIfmatchWithModifiers(){\n\t\t#mdx:ifmatch2\n\t\tParam::get('phone')\n\t\t\t->filters()\n\t\t\t->ifmatch('/[a-z]/i', 'Phone cannot contain letters');\n\n\t\t$error = Param::get('phone')->process(['phone'=>'9829574K'])->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Phone cannot contain letters\", $error);\n\n\t}",
"public function mom()\n\t{\n\t\tif (preg_match('/^\\[usenet4ever\\.info\\] und \\[SecretUsenet\\.com\\] - (.+?)-u4e - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //brothers-of-usenet.info/.net <<<Partner von SSL-News.info>>> - [01/26] - \"Be.Cool.German.AC3.HDRip.x264-FuN.par2\" yEnc\n\t\tif (preg_match('/^\\[Art-of-Usenet\\] ([a-fA-F0-9]+) \\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //(????) [03/20] - \"Weblinger - The.Haunted.House.Mysteries.v1.0-ZEKE.part01.rar\" yEnc\n\t\tif (preg_match('/^\\(\\?+\\) \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '.+?[-_\\s]{0,3}yEnc$/ui',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //ShesGonnaSquirt.12.12.13.Sindy.Lange.My.Knight.In.Squirting.Armor.XXX.1080p.x264 - [1/1] - \"ShesGonnaSquirt.12.12.13.Sindy.Lange.My.Knight.In.Squirting.Armor.XXX.1080p.x264.rar\" yEnc\n\t\tif (preg_match('/[\\w.-]{8,}[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[Art-of-Usenet] dea75eb65e65c56197d749d57919806d [01/19] - \"dea75eb65e65c56197d749d57919806d.par2\" yEnc\n\t\tif (preg_match('/^\\[Art-of-Usenet\\] .+? \\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<ghost-of-usenet.org>XCOM.Enemy.Unknown.Deutsch.Patch.TokZic [0/9] - \"XCOM Deutsch.nzb\" ein CrazyUpp yEnc\n\t\tif (preg_match('/^<ghost-of-usenet\\.org>(.+?) \\[\\d+\\/\\d+\\] - \".+?\" .+? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //.oO \"20.Years.After.German.2008.AC3.BDRip.XviD.INTERNAL-ARC__www.realmom.info__.nfo\" Oo. [02/39] 1,43 GB yEnc\n\t\tif (preg_match('/^\\.oO \"(.+)__www.realmom.info__.+\" Oo. \\[\\d+\\/\\d+\\] \\d+[.,]\\d+ [kKmMgG][bB] yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<kere.ws> - 0DAY - 1331086126 - Robokill.Rescue.Titan.Prime.v1.1.MacOSX.Cracked-CORE - [1/9] - \"Robokill.Rescue.Titan.Prime.v1.1.MacOSX.Cracked-CORE.par2\" yEnc\n\t\tif (preg_match('/^<kere\\.ws>[ _-]{0,3}\\w+(-\\w+)?[ _-]{0,3}\\d+[ _-]{0,3}(.+) - \\[\\d+\\/\\d+\\][ _-]{0,3}(\"|#34;).+?(\"|#34;) yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //[A_New_Found_Glory-Its_All_About_The_Girls-Reissue-CDEP-FLAC-2003-JLM] [www.usenet4ever.info by Secretusenet] - \"00-a_new_found_glory-its_all_about_the_girls-reissue-cdep-flac-2003.jpg\" yEnc\n\t\tif (preg_match('/^\\[(.+?)\\][ _-]{0,3}\\[www\\.usenet4ever\\.info by Secretusenet][ _-]{0,3} \".+?' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//MoM100060 - \"Florian_Arndt-Trix-(BBM36)-WEB-2012-UKHx__www.realmom.info__.nfo\" [2/7] 29,04 MB yEnc\n\t\t//\"Alan.Wake.v1.02.16.4261.Update-SKIDROW__www.realmom.info__.nfo\" (02/17) 138,07 MB yEnc\n\t\tif (preg_match('/^(Mom\\d+[ _-]{0,3})?\"(.+?)__www\\.realmom\\.info__' . $this->e0 .\n\t\t\t\t\t '[ _-]{0,3}[\\(\\[]\\d+\\/(\\d+[\\)\\]]) \\d+[.,]\\d+ [kKmMgG][bB] yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //\"The.Draughtsmans.Contract.1982.576p.BluRay.DD2.0.x264-EA\"(15/56) \"The.Draughtsmans.Contract.1982.576p.BluRay.DD2.0.x264-EA.part13.rar\" - 2.37 GB yEnc\n\t\tif (preg_match('/^\"(.+?)\"\\(\\d+\\/(\\d+\\))[ _-]{0,3}\".+?' . $this->e0 .\n\t\t\t\t\t '[ _-]{0,3}\\d+[.,]\\d+ [kKmMgG][bB] yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(01/29) - Description - \"Revolution.2012.S01E06.HDTV.x264-LOL.nfo\" - 317.24 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/(\\d+\\))[ _-]{0,3}Description[ _-]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '[ _-]{0,3}\\d+[.,]\\d+ [kKmMgG][bB][ _-]{0,3}yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //(02/17) - [Lords-of-Usenet] <<Partner of SSL-News.info>> i8dewFjzft94BW71EI0s -\"19913.r00\" - 928,75 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/(\\d+\\))[ _-]{0,3}\\[Lords-of-Usenet\\][ _-]{0,3}<<Partner of SSL-News\\.info>>[ _-]{0,3}(.+?)[ _-]{0,3}\".+?' .\n\t\t\t\t\t $this->e0 . '[ _-]{0,3}\\d+[.,]\\d+ [kKmMgG][bB][ _-]{0,3}yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //[002/161] - \"Rayman_Legends_USA_PS3-CLANDESTiNE.nfo\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\][ _-]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//NetVideoGirls.13.08.05.Julia.XXX.MP4-KTR - [1/1] - \"NetVideoGirls.13.08.05.Julia.XXX.MP4-KTR.rar\" yEnc\n\t\t//FemaleAgent.E136.Rollie.XXX.1080p.MOV-KTR - [1/1] - \"FemaleAgent.E136.Rollie.XXX.1080p.MOV-KTR.rar\" yEnc\n\t\t//Penthouse.13.07.13.Natalia.Starr.Pet.Of.Month.July.2013.XXX.3D.WMV-TBP - [1/1] - \"Penthouse.13.07.13.Natalia.Starr.Pet.Of.Month.July.2013.XXX.3D.WMV-TBP.rar\" yEnc\n\t\tif (preg_match('/^([a-z0-9].+?\\.XXX.*?\\.[a-z0-9]{3,4}-[a-z0-9]+) - \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //happy birthday brothers - brothers-of-usenet.info&net-empfehlen-ssl-news - 2brokegirls-s03e12-Die.franzoesische.Versuchung.48 - [01/12] - \"2brokegirls-s03e12-Die.franzoesische.Versuchung.480p.par2\" yEnc\n\t\tif (preg_match('/brothers-of-usenet\\.info&net-empfehlen-ssl-news.+\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Eragon postet Pfeil S01E18 german [01/19] - \"Pfeil S01E18.par2\" yEnc\n\t\tif (preg_match('/^Eragon postet.+\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"[Fansub-Resistance] Naruto Shippuuden 345 xvid (848x480).vol25+15.PAR2\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"Die.Sopranos.S05E02.German.AVC-TVS.vol063+60.par2\" (repack180414) yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 . '.+yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //LOL.3E05.720p.WEB.DL.nHD.x264-NhaNc3 [64/71] - \"LOL.3E05.720p.WEB.DL.nHD.x264-NhaNc3.sfv\" yEnc\n\t\tif (preg_match('/^([\\w.-]{8,})[-_\\s]{0,3}\\[\\d+\\/(\\d+\\])[-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t\t&& !preg_match('/^(\\d{4,6})-\\d{1}\\[/', $this->subject)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-LaLa.2014.Englisch.R6.HDCAM.x264.AC3-SmY(06/56]\"SmY-I,F.2014.part05.rar\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-(.+)[\\[\\(]\\d+\\/\\d+[\\]\\)]\".+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(21/27) - Description Lava.Land.2013.3D.1080p.Bluray.HOU.X264.DL-zman - \"Lava.Land.2013.3D.1080.HOU.DL-zman.part20.rar\" - 8,85 GB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\)[-_\\s]{0,3}Description ([\\w.,& ()\\[\\]\\'\\`-]{8,}?)[-_\\s]{0,3}\".+?' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //- \"z7QxDdQ5Qs63v8B8.01\" - 374,56 MB - yEnc\n\t\t//- Description - \"le gars et son arc 2x21.vol06+05.PAR2\" - 273,04 MB - yEnc\n\t\tif (preg_match('/^- (Description - )?\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //::: Usejunkies.tk ::: - [11/15] - \"Saitenfeuer - Kein Zurueck 2013.vol00+1.par2\" - 116,42 MB yEnc\n\t\tif (preg_match('/^.+Usejunkies\\.tk.+\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //:.Usejunkies.tk.:---- - [4/8] - \"MKTO - MKTO.vol00+5.par2\" yEnc\n\t\tif (preg_match('/^.+Usejunkies\\.tk.+\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"8ÃÂ
dTbOMaÃÂ¥RuieuD4gÃÂ¥jÃÂ
wOÃÂ¥bmS72ADÃÂ
M1b2æefz9q4yW4O7exV.vol037+6.par2\" yEnc\n\t\tif (preg_match('/^\"(.{8,}?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(08/12) [ArtofUsenet] >>> www.art-of-use.net <<< \"Alles Atze - S01E05 - Die Anatolische Fliege.vol01+02.par2\" - 245,19 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) \\[ArtofUsenet\\].+www\\.art-of-use\\.net.+\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(01/10) - [Lords-of-Usenet] <<Sponsored by SSL-News.info>> presents AoA.Audio.Extractor.Platinum.v2.0.Portable.WiNALL.APPZ-NOTRADE -\"notrade-aoaextractorplati_portable.par2\" - 8,14 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - \\[Lords-of-Usenet\\].+ presents (.+?)[-_\\s]{0,3}\".+?' .\n\t\t\t$this->e2,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(02/66) - [Lords-of-Usenet] <<Partner of SSL-News.info>> presents The_Swapper-FANiSO - \"fan-swap.rar\" - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - \\[Lords-of-Usenet\\].+ presents (.+?)[-_\\s]{0,3}\".+?' .\n\t\t\t$this->e1,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(1/3) - \"Readers Digest Magazin Deutschland Oktober 10-2014.rar\" - 10,92 MB - >>brothers-of-usenet.info/net<< empfehlen SSL-News.info yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '[-_\\s]{0,3}\\d+([.,]\\d+)? [kKmMgG][bB][-_\\s].+yEnc$/ui',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(1/3) \"Die drei Fragezeichen - Folge 162 - Der schreiende Nebel.rar\" - 121,56 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\)[-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t$this->e2,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //brothers-of-usenet.ino/.net<<<Partner von SSL-News.info>>> - [05/33] - \"oiu78_67O77OuiI_ztRe014.part04.rar\" yEnc\n\t\tif (preg_match('/^brothers-of-usenet.+SSL-News\\.info.+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖܤ߶!.,&_()\\[\\]\\'\\`-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //\"Fabulous MP3.v1.10.rar\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"public function worms()\n\t{\n\t\tif (preg_match('/^(\\[U4A]) (.+?)\\[\\d+(\\/\\d+\\]) - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//(38/57) \"Fright.Night.2.New.Blood.2013.UNRATED.BluRay.810p.DTS.x264-PRoDJi.part26.rar\" - 4,81 GB - yEnc\n\t\t//(14/20) \"Jack.the.Giant.Slayer.2013.AC3.192Kbps.23fps.2ch.TR.Audio.BluRay-Demuxed.by.par2\" - 173,15 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/(\\d+\\)) (\"|#34;)(.+)(\\.[vol|part].+)?\\.(par2|nfo|rar|nzb)(\"|#34;) - \\d+[.,]\\d+ [kKmMgG][bB] - yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[3];\n\t\t} //(01/40) - Description - \"Cloudy.with.a.Chance.of.Meatballs.2009.AC3.23Fps.640Kbps.6Ch.TR.Audio.BD-Demuxed.by.DWA.nfo\" - 454,60 MB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - Description - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(151/161) \"Troy.2004.Directors.Cut.1080p.BluRay.x264.DTS.vol064+21.PAR2.bad\" - 18,64 GB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e2,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//[Macguffin Proudly Presents] (33/75) -Reservoir Dogs 1992 720p BDRip AC3 x264 MacGuffin - \"macguffin-redog720p.r30\" - 3.06 GB - yEnc\n\t\t//[Request][MacGuffin Proudly Presents](056/229) - LOTR The Trilogy EXTENDED REPOST 720p BRRip AC3 x264 MacGuffin - \"macguffin-tfotr720p.r53\" - 18.54 GB - yEnc\n\t\t//[REPOST][MacGuffin Proudly Presents](44/54) - Flight 2012 720p BRRip REPOST AC3 x264 MacGuffin - \"macguffin-flit720p.rar\" - 4.09 GB - yEnc\n\t\tif (preg_match('/^(\\[(Request|Repost)\\])?\\[Macguffin Proudly Presents\\][-_\\s]{0,3}\\(\\d+\\/\\d+\\)[-_\\s]{0,3}(.+?) MacGuffin[-_\\s]{0,3}\".+' .\n\t\t\t\t\t $this->e0 . '[- ]{0,4}\\d+[.,]\\d+ [kKmMgG][bB][-_\\s]{0,3}yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[3];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"function phorum_api_diff_match($a, $b, $level=\"line\")\n{\n // set_time_limit(0); No, we don't like it.\n $answer = \"\";\n if ($level == \"line\" || $level == \"word\")\n {\n if ($level == \"line\") {\n $as = explode(\"\\n\", $a);\n $bs = explode(\"\\n\", $b);\n } else {\n $as = explode(\" \", $a);\n $bs = explode(\" \", $b);\n }\n\n $last = array();\n $next = array();\n $start = -1;\n $len = 0;\n $answer = \"\";\n for ($i = 0; $i < sizeof($as); $i++) {\n $start+= strlen($as[$i])+1;\n for ($j = 0; $j < sizeof($bs); $j++) {\n if ($as[$i] != $bs[$j]) {\n if (isset($next[$j])) unset($next[$j]);\n } else {\n if (!isset($last[$j-1]))\n $next[$j] = strlen($bs[$j]) + 1;\n else\n $next[$j] = strlen($bs[$j]) + $last[$j-1] + 1;\n if ($next[$j] > $len) {\n $len = $next[$j];\n $answer = substr($a, $start-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n else\n {\n $m = strlen($a);\n $n = strlen($b);\n $last = array();\n $next = array();\n $len = 0;\n $answer = \"\";\n for ($i = 0; $i < $m; $i++) {\n for ($j = 0; $j < $n; $j++) {\n if ($a[$i] != $b[$j]) {\n if (isset($next[$j])) unset($next[$j]);\n } else {\n if (!isset($last[$j-1]))\n $next[$j] = 1;\n else\n $next[$j] = 1 + $last[$j-1];\n if ($next[$j] > $len) {\n $len = $next[$j];\n $answer = substr($a, $i-$len+1, $len);\n }\n }\n }\n // If PHP ever copies pointers here instead of copying data,\n // this will fail. They better add array_copy() if that happens.\n $last = $next;\n }\n }\n\n if ($level == \"line\" && $answer == \"\") {\n return phorum_api_diff_match($a, $b, \"word\");\n } elseif ($level == \"word\" && $answer == \"\") {\n return phorum_api_diff_match($a, $b, \"letter\");\n } else {\n return $answer;\n }\n}",
"public function recover();",
"function yy_r43(){ $this->_retvalue = ''; }",
"public function testSendingOutputWithMismatchedLineEndingAmount() {\n\t\t$test = new IncorrectOutputMismatchedLineEndingAmountTestCase( 'test' );\n\t\t$result = $test->run();\n\n\t\t$this->assertSame( 1, $result->failureCount() );\n\t\t$this->assertSame( 1, \\count( $result ) );\n\n\t\t$failures = $result->failures();\n\t\t$this->assertMatchesRegularExpression(\n\t\t\t\"`^Failed asserting that '[^']+' matches PCRE pattern \\\"#`\",\n\t\t\t$failures[0]->exceptionMessage()\n\t\t);\n\t}",
"function yy_r138(){$this->_retvalue = '=='; }",
"public static function segmentParserInconsistentTargetKindState()\n {\n return 'Parsing of segments failed for inconsistent target kind state, contact provider';\n }",
"protected function getAgainst()\n {\n ob_start();\n $result = shell_exec('git rev-parse --verify --quiet HEAD');\n ob_clean();\n // Check if we're on a semi-secret empty tree\n if ($result) {\n return 'HEAD';\n } else {\n // Initial commit: diff against an empty tree object\n return '4b825dc642cb6eb9a060e54bf8d69288fbee4904';\n }\n }",
"public function testIsInvalidIncorrectlyFormattedMatchDate() {\n\t\t$this->assertFalse($this->match->validate(array('match_date' => 'qwerty')), 'Expected invalid match date to cause validation failure');\n\t\t$this->assertTrue($this->match->errors()->has('match_date'));\n\t\t$failures = $this->match->failures();\n\t\t$this->assertArrayHasKey('Date', $failures['match_date']);\n\n\t\t$this->assertFalse($this->match->validate(array('match_date' => '30 February 2014')), 'Expected 30 February date in match_dte to cause validation failure');\n\t\t$this->assertTrue($this->match->errors()->has('match_date'));\n\t\t$failures = $this->match->failures();\n\t\t$this->assertArrayHasKey('Date', $failures['match_date']);\n\t}",
"function mb_preg_match($ps_pattern, $ps_subject, &$pa_matches, $pn_flags = 0, $pn_offset = 0, $ps_encoding = NULL) {\n //(code is independent of PREG_PATTER_ORDER / PREG_SET_ORDER)\n\n if (is_null($ps_encoding))\n $ps_encoding = mb_internal_encoding();\n\n $pn_offset = strlen(mb_substr($ps_subject, 0, $pn_offset, $ps_encoding));\n $ret = preg_match($ps_pattern, $ps_subject, $pa_matches, $pn_flags, $pn_offset);\n\n if ($ret && ($pn_flags & PREG_OFFSET_CAPTURE))\n foreach ($pa_matches as &$ha_match) {\n $ha_match[1] = mb_strlen(substr($ps_subject, 0, $ha_match[1]), $ps_encoding);\n }\n\n return $ret;\n}",
"public function testMaskCreditCardStackTraceErrors()\n {\n $eanResponse1 = <<<'EOD'\n CREDIT CARD INFORMATION IS NOT VALID\n\n\nComplete Trace:\n\n\n0H1|7/GVI0123456789012345EXP 01 16-TEST/NM-1.1/SI-67532127\nREPLIED\n 1 HHL BW SS1 RZE IN21SEP-OUT24SEP 3NT 111712 BEST WESTERN F\nERDYN 1B1KSENC-2/RR63.00EUR/AGT26512673/GVI0123456789012345EXP\n01 16-TEST/NM-TEST TEST/C24H/SI-67532127-CF- / ADDRESS REQUIRED\n ** PLEASE ADVISE CLIENT OF EUR RATE **\nDIRECT CONNECT REQUEST PENDINGDIRECT CONNECT RESPONSE RECEIVED\n 1 HHL BW NN1 RZE IN21SEP W-OUT24SEP 3NT 111712 BEST WESTER\nN FERDYN 1B1KSENC-2/RR63.00EUR/AGT26512673/GVIXXXXXXXXXXXX0019E\nXP 01 16-TEST/NM-TEST TEST/C24H/SI-67532127-CF-\nCREDIT CARD INFORMATION IS NOT VALID\nCLEAN UP TA Command\nREPLIED\n\nSendReceiveHostMessage :IR: =\nIGD\nEOD;\n\n $eanResponse2 = <<<'EOD'\nÂ|INVLDÂ| CREDIT CARD TYPE NOT ACCEPTED BY PROP\n\n\nComplete Trace:\n\n\n0H1|1/GDPSTDC12345678901234EXP 01 16-TEST/NM-1.1/SI-75437063\nREPLIED\nÂ|INVLDÂ| CREDIT CARD TYPE NOT ACCEPTED BY PROP\nSendReceiveHostMessage :IR: =\nIGD\nEOD;\n $this->assertEquals('XXXX...', StringFilter::maskCreditCard($eanResponse1));\n $this->assertEquals('XXXX...', StringFilter::maskCreditCard($eanResponse2));\n }",
"public function testMatch()\n {\n $password = 'pass';\n $matches = LeetMatch::match($password);\n $this->assertEmpty($matches);\n\n $password = 'p4ss';\n $matches = LeetMatch::match($password);\n $this->assertCount(5, $matches);\n\n $password = 'p4ssw0rd';\n $matches = LeetMatch::match($password);\n $this->assertCount(11, $matches);\n\n // Test translated characters that are not a dictionary word.\n $password = '76+(';\n $matches = LeetMatch::match($password);\n $this->assertEmpty($matches);\n }",
"public function games_dox()\n\t{\n\t\tif (preg_match('/(\\[[\\d#]+\\]-\\[.+?\\]-\\[.+?\\]-)\\[ (.+?) \\][- ]\\[\\d+\\/\\d+\\] - \"(.+?)\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\t//[NEW DOX] The.King.of.Fighters.XIII.Update.v1.1c-RELOADED [1/6] - \"The.King.of.Fighters.XIII.Update.v1.1c-RELOADED.par2\" yEnc\n\t\t//[NEW DOX] Crysis.3.Crackfix.3.INTERNAL-RELOADED [00/12] \".nzb\" yEnc\n\t\tif (preg_match('/^\\[NEW DOX\\][ _-]{0,3}(.+?)[ _-]{0,3}\\[\\d+\\/\\d+\\][ _-]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[NEW DOX] Minecraft.1.6.2.Installer.Updated.Server.List - \"Minecraft 1 6 2 Cracked Installer Updater Serverlist.nfo\" - yEnc\n\t\tif (preg_match('/^\\[NEW DOX\\][ _-]{0,3}(.+?)[ _-]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[ Assassins.Creed.3.UPDATE 1.01.CRACK.READNFO-P2P 00/17 ] \"Assassins.Creed.3.UPDATE 1.01.nzb\" yEnc\n\t\tif (preg_match('/^\\[ ([a-zA-Z0-9-\\._ ]+) \\d+\\/(\\d+ \\]) \".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//[01/16] - GRID.2.Update.v1.0.83.1050.Incl.DLC-RELOADED - \"reloaded.nfo\" - yEnc\n\t\t//[12/17] - Call.of.Juarez.Gunslinger.Update.v1.03-FTS - \"fts-cojgsu103.vol00+01.PAR2\" - PC - yEnc\n\t\tif (preg_match('/^\\[\\d+\\/(\\d+\\]) - ([a-zA-Z0-9-\\.\\&_ ]+) - \".+?' . $this->e0 .\n\t\t\t\t\t '( - PC)? - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //[36/48] NASCAR.The.Game.2013.Update.2-SKIDROW - \"sr-nascarthegame2013u2.r33\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/(\\d+\\]) ([a-zA-Z0-9-\\._ ]+) \".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //[Grand_Theft_Auto_Vice_City_1.1_Blood_NoCD_Patch-gimpsRus]- \"grugtavc11bcd.nfo\" yEnc\n\t\tif (preg_match('/^\\[([a-zA-Z0-9-\\._ ]+)\\]- \".+?' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //[OLD DOX] (0001/2018) - \"18.Wheels.of.Steel.American.Long.Haul.CHEAT.CODES-RETARDS.7z\" - 1,44 GB - yEnc\n\t\tif (preg_match('/^\\[OLD DOX\\][ _-]{0,3}\\(\\d+\\/\\d+\\)[ _-]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '[-_\\s]{0,3}\\d+[,.]\\d+ [mMkKgG][bB][-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Endless.Space.Disharmony.v1.1.1.Update-SKIDROW - [1/6] - \"Endless.Space.Disharmony.v1.1.1.Update-SKIDROW.nfo\" - yEnc\n\t\tif (preg_match('/^([a-zA-Z0-9-\\._ ]+) - \\[\\d+\\/(\\d+\\]) - \".+?' . $this->e0 . '{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(F.E.A.R.3.Update.1-SKIDROW) [01/12] - \"F.E.A.R.3.Update.1-SKIDROW.par2\" yEnc\n\t\tif (preg_match('/^\\(([a-zA-Z0-9-\\._ ]+)\\) \\[\\d+\\/(\\d+\\]) - \".+?' . $this->e0 .\n\t\t\t\t\t '{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(Company.of.Heroes.2.Update.v3.0.0.9704.Incl.DLC.GERMAN-0x0007) - \"0x0007.nfo\" yEnc\n\t\tif (preg_match('/^\\(([a-zA-Z0-9-\\._ ]+)\\) - \".+?' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"public function fullmatch()\n {\n return $this->fullmatch;\n }",
"private function _processPDFXref($matches)\r\n {\r\n //echo \"\\nPDF Xref\\n\";\r\n }",
"public function frogs()\n\t{\n\t\tif (preg_match('/\\[\\.in\\][-_\\s]{0,3}.*[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Beachbody.ShaunT.Focus.T25 [01/39] - \"Beachbody.ShaunT.Focus.T25.DVD3.Ab.Intervals.par2\" yEnc\n\t\t\tif (preg_match('/\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1, $this->subject, $match)) {\n\t\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"function yy_r23(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }",
"public function testAssertResponseRegExpVerbose(): void\n {\n $this->expectException(AssertionFailedError::class);\n $this->expectExceptionMessage('Possibly related to `Cake\\Routing\\Exception\\MissingRouteException`: \"A route matching `/notfound` could not be found.\"');\n $this->get('/notfound');\n $this->_response = $this->_response->withStringBody('body');\n $this->assertResponseRegExp('/patternNotFound/');\n }",
"function yy_r112(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }",
"function yy_r19(){\n $this->_retvalue = '';\n }",
"protected function assertMissingDelimitation()\n {\n }",
"function &fetch_diff()\n\t{\n\t\t$table =& $this->fetch_table();\n\t\t$output = array();\n\n\t\t$match = array();\n\t\t$nonmatch1 = array();\n\t\t$nonmatch2 = array();\n\n\t\t$data_old_key = $this->data_old_len - 1;\n\t\t$data_new_key = $this->data_new_len - 1;\n\n\t\t$this_row = $this->decompress_row($table[$data_old_key]);\n\t\t$above_row = $this->decompress_row($table[$data_old_key - 1]);\n\n\t\twhile ($data_old_key >= 0 AND $data_new_key >= 0)\n\t\t{\n\t\t\tif ($this_row[$data_new_key] != $above_row[$data_new_key - 1] AND $this->data_old[$data_old_key] == $this->data_new[$data_new_key])\n\t\t\t{\n\t\t\t\t// this is a non changed entry\n\t\t\t\t$this->process_nonmatches($output, $nonmatch1, $nonmatch2);\n\t\t\t\tarray_unshift($match, $this->data_old[$data_old_key]);\n\n\t\t\t\t$data_old_key--;\n\t\t\t\t$data_new_key--;\n\n\t\t\t\t$this_row = $above_row;\n\t\t\t\t$above_row = $this->decompress_row($table[$data_old_key - 1]);\n\t\t\t}\n\t\t\telse if ($above_row[$data_new_key] > $this_row[$data_new_key - 1])\n\t\t\t{\n\t\t\t\t$this->process_matches($output, $match);\n\t\t\t\tarray_unshift($nonmatch1, $this->data_old[$data_old_key]);\n\n\t\t\t\t$data_old_key--;\n\n\t\t\t\t$this_row = $above_row;\n\t\t\t\t$above_row = $this->decompress_row($table[$data_old_key - 1]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->process_matches($output, $match);\n\t\t\t\tarray_unshift($nonmatch2, $this->data_new[$data_new_key]);\n\n\t\t\t\t$data_new_key--;\n\t\t\t}\n\t\t}\n\n\t\t$this->process_matches($output, $match);\n\t\tif ($data_old_key > -1 OR $data_new_key > -1)\n\t\t{\n\t\t\tfor (; $data_old_key > -1; $data_old_key--)\n\t\t\t{\n\t\t\t\tarray_unshift($nonmatch1, $this->data_old[$data_old_key]);\n\t\t\t}\n\t\t\tfor (; $data_new_key > -1; $data_new_key--)\n\t\t\t{\n\t\t\t\tarray_unshift($nonmatch2, $this->data_new[$data_new_key]);\n\t\t\t}\n\t\t\t$this->process_nonmatches($output, $nonmatch1, $nonmatch2);\n\t\t}\n\n\t\treturn $output;\n\t}",
"protected function getUnconsidered()\n {\n $tempStr = $this->excelRow->model_description;\n\n foreach($this->capRangeWordmapping as $pattern => $replacement)\n {\n $tempStr = preg_replace(\"/{$pattern}/i\", $replacement, $tempStr);\n }\n\n $words = explode(' ', $tempStr);\n\n if(isset($words[2]) && in_array($words[2], $this->secoundWordOfCapRange))\n {\n $words[0] = $words[1] = $words[2] = null;\n }\n else\n {\n $words[0] = $words[1] = null;\n }\n\n $tempStr = implode(' ', $words);\n\n $tempStr = preg_replace(\"/\".(join('|', $this->cmodNameWords)). \"/i\", '', $tempStr );\n $tempStr = preg_replace(\"/\".(join('|', $this->considerEngineSizeWords)). \"/i\", '', $tempStr );\n $tempStr = preg_replace(\"/\\d+.ps|\\d+.PS/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/[0-9]*\\.[0-9]+/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/\\d-speed/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/cylinder on demand/i\", '' ,$tempStr );\n\n foreach($this->manualWordCheckingList as $word)\n {\n $tempStr = preg_replace(\"/{$word}/i\", '' ,$tempStr );\n }\n\n return preg_replace(\"/ * /\", \" \", trim($tempStr));\n }",
"public function ath()\n\t{\n\t\tif (preg_match('/^\\[\\d+\\/\\d+ ([a-zA-Z0-9]+ .+?)\\..+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //8b33bf5960714efbe6cfcf13dd0f618f - (01/55) - \"8b33bf5960714efbe6cfcf13dd0f618f.par2\" yEnc\n\t\tif (preg_match('/^([a-f0-9]{32}) - \\(\\d+\\/\\d+\\) - \"[a-f0-9]{32}\\..+\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //::: Usejunkies.tk ::: - [01/11] - \"DJ Shog - DNA - HD 720p.par2\" - 47,76 MB yEnc\n\t\tif (preg_match('/^.+Usejunkies.tk.+ \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t$this->e2,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-Mutter.und.Sohn.German.2013.DVDRiP.x264-XFi[01/27]\"xf-mutterusohn.nfo\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-(.+)[\\(\\[]\\d+\\/\\d+[\\)\\]]\".+\" yEnc$/',\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<->http://you-need-all.tk<-> - [28/32] - \"Dirty Minded Wife Advent Vol 40 JAV Uncensored DVDRip x264-APX.vol007+08.par2\" yEnc\n\t\tif (preg_match('/^.+http:\\/\\/you-need-all\\.tk.+\\[\\d+\\/\\d+\\][\\s-_]{0,3}\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[02/21] - \"Staendig Feucht.part01.rar\" - 493.38 MB ....::::UR-powered by SecretUsenet.com::::.... yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 . ' - \\d+[.,]\\d+ [kKmMgG][bB] .+? yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //>>> usenet4ever.info <<<+>>> secretusenet.com <<< \"Weltnaturerbe USA Grand Canyon Nationalpark 2012 3D Blu-ray untouched - DarKneSS.part039.rar\" - DarKneSS yEnc\n\t\tif (preg_match('/^>+ .+?\\.info [<>+]+ .+?\\.com <+ \"(.+?)\\s+- .*?' . $this->e0 .\n\t\t\t' - .+? yEnc$/',\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //nmlsrgnb - [04/37] - \"htwlngmrstdsntdnh.part03.rar\" yEnc\n\t\tif (preg_match('/^([a-z]+) - \\[\\d+\\/\\d+\\] - \"[a-z]+\\..+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>>>>>Hell-of-Usenet>>>>> - [01/33] - \"Cassadaga Hier lebt der Teufel 2011 German AC3 DVDRip XViD iNTERNAL-VhV.par2\" yEnc\n\t\tif (preg_match('/^>+Hell-of-Usenet(\\.org)?>+( -)? \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '( - \\d+[.,]\\d+ [kKmMgG][bB])? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[3];\n\t\t} //1dbo1u5ce6182436yb2eo (001/105) \"1dbo1u5ce6182436yb2eo.par2\" yEnc\n\t\tif (preg_match('/^([a-z0-9]{10,}) \\(\\d+\\/\\d+\\) \"[a-z0-9]{10,}\\..+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<>>>kosova-shqip.eu<<< Deep SWG - 90s Club Megamix 2011 >>>kosova-shqip.eu<<<<<< - (2/4) - \"Deep SWG - 90s Club Megamix 2011.rar\" yEnc\n\t\tif (preg_match('/^<<<>>>kosova-shqip\\.eu<<< (.+?) >>>kosova-shqip.eu<<<<<< - \\(\\d+\\/\\d+\\) - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<Have Fun> \"Invader.German.2012.PAL.DVDR-MORTAL.nfo\" SpongeBoZZ yEnc\n\t\tif (preg_match('/^<Have Fun> \"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' SpongeBoZZ yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1] . $match[2];\n\t\t} //Old Dad uppt Taffe Mädels XivD LD HDTV Rip oben Kleine Einblendug German 01/43] - \"Taffe Mädels.par2\" yEnc\n\t\tif (preg_match('/^([a-zA-Z0-9].+?\\s{2,}|Old Dad uppt\\s+)(.+?) \\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //(????) Rom.S02E09.Deus.Impeditio.Esuritori.Nullus Rom.S02E09.Deus.Impeditio.Esuritori.Nullus.avi.vol007+08.PAR2\" yEnc\n\t\tif (preg_match('/^\\(\\?+\\) (.+) .+?([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})\" yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"27MZ4CXQ3AN86D95KVHB.part06.rar\" - 21,61 GB - yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e2,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"2EACM94X65NHZ37.par2\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //A7Soft ExamXML v4.37.rar yEnc\n\t\tif (preg_match('/^([^.]{8,})([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4})[- ]{0,3}yEnc$/u',\n\t\t\t$this->subject,\n\t\t\t$match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"function yy_r66(){ $this->_retvalue = []; }",
"function yy_r79(){ $this->_retvalue = NULL; }",
"protected function get_error( ) {\n// i store only the latest word with 3 letters\n\n if (strlen($this->current_group_text) != 4) {\n if (strlen($this->current_group_text) == 3) {\n if ($this->current_group_text!='TAF') {\n $this->wxInfo['CODE_ERROR'] =$this->current_group_text;\n }\n $this->current_ptr++;\n }\n else {\n $this->current_ptr++;\n }\n } else {\n $this->current_group++;\n }\n }",
"function yy_r16(){ $this->_retvalue = null; }",
"public function wrong() {\n\n }",
"function yy_r158(){ $this->_retvalue = 'nin'; }",
"function yy_r137(){ $this->_retvalue = @$this->yystack[$this->yyidx + 0]->minor; }",
"public function warez()\n\t{\n\t\tif (preg_match('/^([a-zA-Z].+) - \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //ATKExotics.13.01.06.Janea.Toys.XXX.1080p.x264-SEXORS - [1/7] - #34;ATKExotics.13.01.06.Janea.Toys.XXX.1080p.x264-SEXORS.rar#34; yEnc\n\t\tif (preg_match('/^([a-z].+) - \\[\\d+\\/\\d+\\][ _-]{0,3}(\"|#34;).+(\"|#34;) yEnc$/i',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//-Panzer.Command.Kharkov-SKIDROW - [1/7] - \"-Panzer.Command.Kharkov-SKIDROW.rar\" yEnc\n\t\t//-AssMasterpiece.12.07.09.Alexis.Monroe.XXX.1080p.x264-SEXORS - [1/7] - #34;-AssMasterpiece.12.07.09.Alexis.Monroe.XXX.1080p.x264-SEXORS.rar#34; yEnc\n\t\tif (preg_match('/.*[\\(\\[]\\d+\\/\\d+[\\)\\]][-_\\s]{0,3}(\"|#34;)(.+?)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4})(\"|#34;)(.+?)yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //- \"JH2U0H5FIK8TO7YK3Q.part12.rar\" yEnc\n\t\tif (preg_match('/.*\"(.+?)(\\.part\\d*|\\.rar)?(\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\")(.+?)yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //( XS Video Converter Ultimate 7.7.0 Build 20121226 ) - yEnc\n\t\tif (preg_match('/^\\( (.+?) \\) - yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}",
"public function testRetrieveUnsuccessfulReason()\n {\n }",
"function yy_r89(){ $this->_retvalue = [$this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -2]->minor]; }",
"function yy_r113()\n {\n return;\n }",
"public function testVerifyToNotWin()\n {\n\n $match = $this->createMatch();\n foreach([0, 1, 2, 3, 4, 5, 6, 7, 8] as $position) {\n $this->createMove($position, $match->id);\n }\n\n $winner = new Winner();\n $winner->verify($match, 0, 1);\n\n $matchFound = Match::find($match->id);\n\n $this->assertEquals(0, $matchFound->winner);\n\n }",
"public function testFailuresOnFetchPossibleMatches() {\n $guzzle_mock = new MockHandler([\n new Response(200, ['content-type' => 'text/plain; charset=utf-8'], \"6F273C1493539AC19103C4FD0B9521FE95A:1\\r\\n\"),\n new Response(404),\n// TODO: new Response(400, ['content-type' => 'text/plain; charset=utf-8'], \"The hash prefix was not in a valid format\"),\n new Response(429, ['Retry-After:' => '2'], \"Rate limit exceeded, refer to acceptable use of the API: https://haveibeenpwned.com/API/v2#AcceptableUse\"),\n new Response(500),\n ]);\n $guzzle_stack = HandlerStack::create($guzzle_mock);\n $mock_client = new Client(['handler' => $guzzle_stack]);\n\n $pwnageValidator = new PwnageValidator();\n $pwnageValidator->withHttpClient($mock_client);\n $fetchPossibleMatchesMethod = $this->getAccessibleMethod('fetchPossibleMatches');\n\n // 1st call: everything should be fine\n $returned_matches = $fetchPossibleMatchesMethod->invoke($pwnageValidator, '8843D');\n $this->assertEquals(['6F273C1493539AC19103C4FD0B9521FE95A:1'], $returned_matches);\n\n // 2nd call: 404 = empty\n $returned_matches = $fetchPossibleMatchesMethod->invoke($pwnageValidator, '8843D');\n $this->assertEmpty($returned_matches);\n\n // 3rd call: Should fail as it's an invalid hash prefix (too long)\n// $invalid_prefix = '8843DAA';\n// $this->setExpectedException(\\InvalidArgumentException::class, \"Server denoted an invalid hash prefix: {$invalid_prefix}\");\n// $returned_matches = $fetchPossibleMatchesMethod->invoke($pwnageValidator, $invalid_prefix);\n\n // 4th call: Http error 429: rate limited\n $this->setExpectedException(ClientException::class, \"Rate limit exceeded, refer to acceptable use of the API: https://haveibeenpwned.com/API/v2#AcceptableUse\", 429);\n $returned_matches = $fetchPossibleMatchesMethod->invoke($pwnageValidator, '8843D');\n\n // 5th call: 500, ServerError is thrown\n $this->setExpectedException(ServerException::class);\n $returned_matches = $fetchPossibleMatchesMethod->invoke($pwnageValidator, '8843D');\n $this->assertEmpty($returned_matches);\n }",
"private function fix1($desc) {\n\t\t$result = array();\n\t\t$lines = explode(\"\\n\", $desc);\n\t\t$skip = array('Quantity:','Physical Description:','Inscriptions:','Reference Number:','Photographer:', 'Reference number:', 'Provenance:',\n\t\t\t'Reference No.');\n\n\t\t//Ditch a line if it contains this text\n\t\t$ditchIfLineContains = array('Find out more about this image');\n\n\t\t//Ditch the line if it's an exact match\n\t\t$ditchIfExactMatch = array('Original negative','Glass negative','Photographic Archive, Alexander Turnbull Library','Silver gelatin print',\n\t\t\t'Film negative','Original negative','Single photograph','Gelatin dry plate negative','Dry plate glass negative',\n\t\t\t'Photographic Archive, Alexander Turnbull Library, National Library of New Zealand','Original print','Unidentified photographer',\n\t\t\t'Stereoscopic glass 1/2 plate negative','Photographer William Williams.',\n\t\t\t'Panoramic negative','Price Collection, Photographic Archive, Alexander Turnbull Library','Stereographic dry plate glass negative',\n\t\t\t'Photographer William Archer Price','Price Collection, Alexander Turnbull Library, National Library of New Zealand',\n\t\t\t\"Royal New Zealand Returned and Services' Association Collection, Alexander Turnbull Library, National Library of New Zealand\",\n\t\t\t'Printed Ephemera Collection, Alexander Turnbull Library','Photolithographs','Panoramic nitrate negative','Toned silver gelatin print',\n\t\t\t'Albumen print','Gelatin silver print','Silver gelatin print,'\n\t\t);\n\n\t\tforeach ($lines as $line) {\n\t\t\t$line = str_replace('Description: ', '', $line);\n\t\t\t//Skip find out more URL links\n\t\t\tif (strpos($line, 'Find out more about this image') > 0) {\n\t\t\t\tcontinue ;\n\t\t\t}\n\n\t\t\t//If a line contains a negative phrase skip it and jog on to the next one\n\t\t\tforeach ($ditchIfLineContains as $potentialMatch) {\n\t\t\t\tif (strpos($line, $potentialMatch) > 0) {\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Skip exact matches\n\t\t\tforeach ($ditchIfExactMatch as $potentialMatch) {\n\t\t\t\tif ($potentialMatch == trim($line)) {\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ($ditchIfLineContains as $potentialMatch) {\n\t\t\t\tif (strpos($line, $potentialMatch) > 0) {\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$foundPrefixToDelete = false;\n\t\t\tforeach ($skip as $prefix) {\n\t\t\t\t$len = strlen($prefix);\n\t\t\t\tif (strpos(trim($line), $prefix) === 0) {\n\t\t\t\t\t$foundPrefixToDelete = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$splits = explode(':', $line);\n\n\n\t\t\t$refpos = strpos($line, 'Ref:');\n\t\t\tif ($refpos > 0) {\n\t\t\t\t$line = substr($line, 0,$refpos);\n\t\t\t}\n\n\t\t\t//echo \"SAVING LINE:*$line*\\n\";\n\n\t\t\tif (!$foundPrefixToDelete) {\n\t\t\t\tarray_push($result,$line);\n\t\t\t}\n\n\n\t\t}\n\t\treturn implode(\"\\n\", $result);\n\t}",
"function yy_r61(){ $this->_retvalue = [$this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor]; }",
"public function getMatcher();",
"protected function remove_iunreserved_percent_encoded($regex_match)\n {\n }",
"function clean_indesign() {\r\n\t\t$array_rxp = array(\r\n\t\t\r\n\t\t// page number references in the table of contents\r\n\t\t'<span class=\"toc-leader-dots[^\"]*?\">\\s*<\\/span>\\s*[0-9ivxlcdmIVXLCDM]{1,}\\s*<\\/p>' => '</p>',\r\n\t\t\r\n\t\t'<p([^>]*?) class=\"h1\"([^>]*?)>(.*?)<\\/p>' => '<h1\\1\\2>\\3</h1>',\r\n\t\t'<p([^>]*?) class=\"h2\"([^>]*?)>(.*?)<\\/p>' => '<h2\\1\\2>\\3</h2>',\r\n\t\t'<p([^>]*?) class=\"h3\"([^>]*?)>(.*?)<\\/p>' => '<h3\\1\\2>\\3</h3>',\r\n\t\t'<p([^>]*?) class=\"h4\"([^>]*?)>(.*?)<\\/p>' => '<h4\\1\\2>\\3</h4>',\r\n\t\t'<p([^>]*?) class=\"h5\"([^>]*?)>(.*?)<\\/p>' => '<h5\\1\\2>\\3</h5>',\r\n\t\t'<p([^>]*?) class=\"h6\"([^>]*?)>(.*?)<\\/p>' => '<h6\\1\\2>\\3</h6>',\r\n\t\t\r\n\t\t'<p([^>]*?) class=\"head-1\"([^>]*?)>(.*?)<\\/p>' => '<h1\\1\\2>\\3</h1>',\r\n\t\t'<p([^>]*?) class=\"head-2\"([^>]*?)>(.*?)<\\/p>' => '<h2\\1\\2>\\3</h2>',\r\n\t\t'<p([^>]*?) class=\"head-3\"([^>]*?)>(.*?)<\\/p>' => '<h3\\1\\2>\\3</h3>',\r\n\t\t'<p([^>]*?) class=\"head-4\"([^>]*?)>(.*?)<\\/p>' => '<h4\\1\\2>\\3</h4>',\r\n\t\t'<p([^>]*?) class=\"head-5\"([^>]*?)>(.*?)<\\/p>' => '<h5\\1\\2>\\3</h5>',\r\n\t\t'<p([^>]*?) class=\"head-6\"([^>]*?)>(.*?)<\\/p>' => '<h6\\1\\2>\\3</h6>',\r\n\t\t\r\n\t\t//'<p([^>]*?) class=\"h1\"([^>]*?)>(.*?)<\\/p>' => '<h1\\1\\2>\\3</h1>',\r\n\t\t'<p([^>]*?) class=\"section-heading\"([^>]*?)>(.*?)<\\/p>' => '<h2\\1\\2>\\3</h2>',\r\n\t\t'<p([^>]*?) class=\"heading\"([^>]*?)>(.*?)<\\/p>' => '<h3\\1\\2>\\3</h3>',\r\n\t\t'<p([^>]*?) class=\"subheading\"([^>]*?)>(.*?)<\\/p>' => '<h4\\1\\2>\\3</h4>',\r\n\t\t//'<p([^>]*?) class=\"h5\"([^>]*?)>(.*?)<\\/p>' => '<h5\\1\\2>\\3</h5>',\r\n\t\t//'<p([^>]*?) class=\"h6\"([^>]*?)>(.*?)<\\/p>' => '<h6\\1\\2>\\3</h6>',\r\n\t\t\r\n\t\t'<p([^>]*?) class=\"toc-toc-main-section[^\"]{0,}\"([^>]*?)>(.*?)<\\/p>' => '<li\\1\\2>\\3</li>',\r\n\t\t'<p([^>]*?) class=\"toc-toc-heading[^\"]{0,}\"([^>]*?)>(.*?)<\\/p>' => '<li\\1\\2>\\3</li>',\r\n\t\t'<p([^>]*?) class=\"toc-toc-subsection[^\"]{0,}\"([^>]*?)>(.*?)<\\/p>' => '<li\\1\\2>\\3</li>',\r\n\t\t\r\n\t\t'<span([^>]*?) class=\"em\"([^>]*?)>(.*?)<\\/span>' => '<em\\1\\2>\\3</em>',\r\n\t\t'<span([^>]*?) class=\"strong\"([^>]*?)>(.*?)<\\/span>' => '<strong\\1\\2>\\3</strong>',\r\n\t\t'<span([^>]*?) class=\"em-strong\"([^>]*?)>(.*?)<\\/span>' => '<strong\\1\\2><em>\\3</em></strong>',\r\n\t\t\r\n\t\t'<span([^>]*?) class=\"italic\"([^>]*?)>(.*?)<\\/span>' => '<em\\1\\2>\\3</em>',\r\n\t\t'<span([^>]*?) class=\"bold\"([^>]*?)>(.*?)<\\/span>' => '<strong\\1\\2>\\3</strong>',\r\n\t\t'<span([^>]*?) class=\"italic-bold\"([^>]*?)>(.*?)<\\/span>' => '<strong\\1\\2><em>\\3</em></strong>',\r\n\t\t\r\n\t\t'<span([^>]*?) class=\"italic-body\"([^>]*?)>(.*?)<\\/span>' => '<em\\1\\2>\\3</em>',\r\n\t\t'<span([^>]*?) class=\"bold-bocy\"([^>]*?)>(.*?)<\\/span>' => '<strong\\1\\2>\\3</strong>',\r\n\t\t'<span([^>]*?) class=\"bold-body\"([^>]*?)>(.*?)<\\/span>' => '<strong\\1\\2>\\3</strong>',\t\t\r\n\t\t'<span([^>]*?) class=\"bold-italic\"([^>]*?)>(.*?)<\\/span>' => '<strong\\1\\2><em>\\3</em></strong>',\r\n\t\t\r\n\t\t'<p([^>]*?) class=\"callout-heads\"([^>]*?)>(.*?)<\\/p>' => '<p><strong\\1\\2>\\3</strong></p>',\r\n\t\t'<p([^>]*?) class=\"figure-head\"([^>]*?)>(.*?)<\\/p>' => '<p><strong\\1\\2>\\3</strong></p>',\r\n\t\t\r\n\t\t//'<body>(.*?)<div id=\"([^\"]*?)\">' => '<body>\\1<div stripme=\"y\">',\r\n\t\t);\r\n\t\t\r\n\t\t$count = 0;\r\n\t\tforeach($array_rxp as $search => $replace) {\r\n\t\t\t//print('here385489960940<br>');\r\n\t\t\t$this->code = preg_replace('/' . $search . '/is', $replace, $this->code, -1, $c);\r\n\t\t\t$count += $c;\r\n\t\t}\r\n\t\t\r\n\t\t$array_rep = array(\r\n\t\t//' class=\"story\"' => ' stripme=\"y\"',\r\n\t\t' class=\"toc-leader-dots\"' => ' deleteme=\"y\"',\r\n\t\t' class=\"toc-page-numbers\"' => ' deleteme=\"y\"',\r\n\t\t);\r\n\t\t\r\n\t\tforeach($array_rep as $search => $replace) {\r\n\t\t\t//print('here385489960941<br>');\r\n\t\t\t$this->code = str_replace($search, $replace, $this->code, $c);\r\n\t\t\t$count += $c;\r\n\t\t}\r\n\t\t\r\n\t\tReTidy::non_DOM_stripme('<\\w+(.*?) class=\"story\"(.*?)>');\r\n\t\tReTidy::non_DOM_stripme('<div id=\"([^\"]*?)\">');\r\n\t\t\r\n\t\t// Delete any classes in <li> tags?\r\n\t\t//var_dump($count);\r\n\t\t$this->logMsgIf('clean_indesign', $count);\r\n\t}",
"function yy_r154(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }",
"final public static function unableToParseApgResponse()\n {\n return self::get(2061);\n }",
"function yy_r141(){ $this->_retvalue = ['collate', $this->yystack[$this->yyidx + 0]->minor]; }",
"function yy_r68(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }",
"function mREDUCED(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$REDUCED;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:126:3: ( 'reduced' ) \n // Tokenizer11.g:127:3: 'reduced' \n {\n $this->matchString(\"reduced\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"public function violations(): array;",
"function tideways_last_detected_exception()\n{\n}",
"public function testParseWithLookaheadRemovalTokens(): void\n {\n $this->assertSame(9, $this->parser->parse([Grammar::T_I, Grammar::T_X]));\n $this->assertSame(99, $this->parser->parse([Grammar::T_X, Grammar::T_C, Grammar::T_I, Grammar::T_X]));\n }",
"function yy_r149(){$this->_retvalue = ' XOR '; }",
"abstract public function GetProblems();",
"function yy_r141(){$this->_retvalue = '<'; }",
"function yy_r74()\n {\n $this->_retvalue = '!(1 & ' . $this->yystack[$this->yyidx + - 1]->minor . ')';\n }",
"function yy_r81(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }",
"function recover() {\n\t}",
"function yy_r144(){$this->_retvalue = '==='; }",
"function clean_for_aiml_match($text)\n{\n\t$otext = $text;\n\t$text= remove_allpuncutation($text); //was not all before\n\t$text= whitespace_clean($text);\n\t$text= captialise($text);\n\t\n\trunDebug( __FILE__, __FUNCTION__, __LINE__, \"In: $otext Out:$text\",3);\n\t\t\n\treturn $text;\n}",
"function yy_r106(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }",
"function mLANGMATCHES(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$LANGMATCHES;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:236:3: ( 'langmatches' ) \n // Tokenizer11.g:237:3: 'langmatches' \n {\n $this->matchString(\"langmatches\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"public function testRecursing () {\n try{\n $p = PHPFIT_Parse::create('leader\t<table>\n <TR>\n <Td>body</tD>\n </TR>\n </table>\n trailer');\n $this->assertEqual(null, $p->body);\n $this->assertEqual(null, $p->parts->body);\n $this->assertEqual(\"body\",$p->parts->parts->body);\n }\n catch( Exception $e ) {\n die( $e->getMessage() );\n }\n }",
"function dprv_verifyContentFiles(&$error_message, $dprv_post_id, $content_file_table, &$match_results)\r\n\t{\r\n\t\tglobal $wpdb;\r\n\t\t$log = new DPLog(); \r\n\t\t$log->lwrite(\"verifyContentFiles begins\");\r\n\t\t//$log->lwrite(dprv_eval($content_file_table));\r\n\r\n\t\t$success=true;\t\t\t\t// default value \r\n\r\n\t\t$sql=\"SELECT * FROM \" . get_option('dprv_prefix') . \"dprv_post_content_files WHERE post_id = %d\";\r\n\t\t$dprv_post_files = dprv_wpdb(\"get_results\", $sql, $dprv_post_id);\r\n\t\t$match_results = array();\r\n\t\tif (!is_null($dprv_post_files))\r\n\t\t{\r\n\t\t\tfor ($i=0; $i<count($dprv_post_files); $i++)\r\n\t\t\t{\r\n\t\t\t\t$file = $dprv_post_files[$i];\r\n\t\t\t\t$filename=$file['filename'];\r\n\t\t\t\t$fingerprint = $file['digital_fingerprint'];\r\n\t\t\t\t$log->lwrite(\"i=$i, filename=$filename, fingerprint=$fingerprint\");\r\n\t\t\t\tif (isset($content_file_table[$filename]))\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($content_file_table[$filename] == $fingerprint)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$match_results[$filename] = __(\"Matched\", \"dprv_cp\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($content_file_table[$filename] == \"Processed\")\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Must be a duplicate filename, ignore\r\n\t\t\t\t\t\t}\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$match_results[$filename] = __(\"File contents changed\", \"dprv_cp\");\r\n\t\t\t\t\t\t\t$success=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$content_file_table[$filename] = \"Processed\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$match_results[$filename] = __(\"No longer there\", \"dprv_cp\");\r\n\t\t\t\t\t$success=false;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tforeach ($content_file_table as $filename => $fingerprint)\r\n\t\t{\r\n\t\t\tif ($fingerprint != \"Processed\")\r\n\t\t\t{\r\n\t\t\t\t$match_results[$filename] = __(\"Was not there before\", \"dprv_cp\");\r\n\t\t\t\t$success=false;\r\n\t\t\t}\r\n\t\t}\r\n \t\treturn $success;\r\n\t}",
"public function getInvalidChallengeResponse()\n {\n $result['responseCode'] = self::RESPONSE_INVALID_CHALLENGE;\n return $result;\n }",
"function editRegex($old){\n /*if (!checkForB($old))\n error(\"Chyba v regularnom vyraze\", 4);\n */\n $old = checkForB($old);\n $pars = 0;//pocet zatvoriek\n $state = 0;\n $result = \"\";\n $parsInNeg = 0;\n $wasC = false;\n $old = str_split($old);\n foreach ($old as $token){\n switch($state){\n case 0://uvodny stav + nie unarny\n if ($token === \"%\"){\n $state = 1;\n $wasC = false;\n } else if ($token === \"!\"){\n $state = 2;\n $wasC = false;\n } else if (in_array($token, array(\".\",\"+\",\"*\",\"|\"))){\n $state = 4;\n } else if ($token === \"(\"){\n $result = $result.$token;\n $state = 0;\n $pars++;\n $wasC = true;\n } else if ($token === \")\"){\n $result = $result.$token;\n $state = 3;\n $pars--;\n if ($pars < 0 || $wasC)\n $state = 4;\n } else if (in_array($token, str_split(\"/\\\\?\\\"[^]\\${}=<>:-\"))){\n $result = $result.\"\\\\\".$token;\n $state = 3;\n $wasC = false;\n } else {\n $result = $result.$token;\n $state = 3;\n $wasC = false;\n break;\n }\n break;\n case 1://%\n $wasC = false;\n if (in_array($token, str_split(\"sdtn.|!*+)(\"))){\n $result = $result.\"\\\\\".$token;\n $state = 3;\n } else if ($token === \"a\"){\n $result = $result.\"[\\s\\S]\";//nie .?\n $state = 3;\n } else if ($token === \"l\"){\n $result = $result.\"[a-z]\";\n $state = 3;\n } else if ($token === \"L\"){\n $result = $result.\"[A-Z]\";\n $state = 3;\n } else if ($token === \"w\"){\n $result = $result.\"[a-zA-Z]\";\n $state = 3;\n } else if ($token === \"W\"){\n $result = $result.\"[a-zA-Z0-9]\";\n $state = 3;\n } else if ($token === \"%\"){\n $result = $result.\"%\";\n $state = 3;\n } else\n $state = 4;\n break;\n case 2://! 1)single character or %character\n $wasC = false;\n if ($token === \"!\"){\n $state = 3;//not sure here\n } else if ($token === \"%\"){\n $state = 5;\n } else if (in_array($token, str_split(\").+*|\"))){\n $state = 4;\n } else if (in_array($token, str_split(\"/\\\\?[^]\\${}=<>:-\\\"\"))){\n $state = 3;\n $result = $result.\"[^\\\\\".$token.\"]\";\n } else if ($token === \"(\"){//let the fun begin !(\n $parsInNeg += 1;\n $result = $result.\"[^(\";\n $wasC = true;\n $state = 7;\n } else{\n $state = 3;\n $result = $result.\"[^\".$token.\"]\";\n }\n break;\n case 3://moze ist binarny\n if ($token === \"%\"){\n $state = 1;\n $wasC = false;\n } else if ($token === \"!\"){\n $state = 2;\n $wasC = false;\n } else if ($token === \".\"){\n $state = 6;\n $wasC = false;\n } else if ($token === \"|\"){\n $state = 6;\n $result = $result.$token;\n $wasC = false;\n } else if ($token === \"(\"){\n $result = $result.$token;\n $state = 0;\n $pars++;\n $wasC = true;\n } else if ($token === \")\"){\n $result = $result.$token;\n $state = 3;\n $pars--;\n if ($pars < 0 || $wasC)\n $state = 4;\n } else if (in_array($token, str_split(\"/\\\\?[^]\\${}=<>:-\\\"\"))){\n $result = $result.\"\\\\\".$token;\n $state = 3;\n $wasC = false;\n } else {\n $result = $result.$token;\n $state = 3;\n $wasC = false;\n break;\n }\n break;\n case 4://Propadliste\n error(\"Chyba v regularnom vyraze\", 4);//TODO error code\n $state = 4;\n break;\n case 5://% v negacii\n $wasC = false;\n if (in_array($token, str_split(\"sdtn.|!*+)(\"))){\n $result = $result.\"[^\\\\\".$token.\"]\";\n $state = 3;\n } else if ($token === \"a\"){\n $result = $result.\"[^\\s\\S]\";\n $state = 3;\n } else if ($token === \"l\"){\n $result = $result.\"[^a-z]\";\n $state = 3;\n } else if ($token === \"L\"){\n $result = $result.\"[^A-Z]\";\n $state = 3;\n } else if ($token === \"w\"){\n $result = $result.\"[^a-zA-Z]\";\n $state = 3;\n } else if ($token === \"W\"){\n $result = $result.\"[^a-zA-Z0-9]\";\n $state = 3;\n } else if ($token === \"%\"){\n $result = $result.\"[^%]\";\n $state = 3;\n } else\n $state = 4;\n break;\n case 6://musi ist nieco normalne, bolo . |\n if ($token === \"%\"){\n $state = 1;\n $wasC = false;\n } else if ($token === \"!\"){\n $state = 2;\n $wasC = false;\n } else if (in_array($token, str_split(\".|+*\"))){\n $state = 4;\n $wasC = false;\n } else if ($token === \"(\"){\n $result = $result.$token;\n $state = 0;\n $pars++;\n $wasC = true;\n } else if ($token === \")\"){\n $result = $result.$token;\n $state = 4;\n $pars--;\n if ($pars < 0 || $wasC)\n $state = 4;\n } else if (in_array($token, str_split(\"/\\\\?[^]\\${}=<>:-\\\"\"))){\n $result = $result.\"\\\\\".$token;\n $state = 3;\n $wasC = false;\n } else {\n $result = $result.$token;\n $state = 3;\n $wasC = false;\n break;\n }\n break;\n case 7://!(\n //kontrola jedneho!\n if (in_array($token, str_split(\".|+*!\"))){\n $state = 4;\n } else if ($token === \"(\"){\n $parsInNeg += 1;\n $result = $result.$token;\n $state = 7;\n $wasC = true;\n } else if ($token === \")\"){\n $parsInNeg -= 1;\n if ($parsInNew < 0 || $wasC)\n $state = 4;\n else if ($parsInNeg === 0){//koniec utrpenia\n $result = $result.\")]\";\n $state = 3;\n } else {\n $result = $result.$token;\n $state = 8;\n }\n $wasC = false;\n } else if (in_array($token, str_split(\"/\\\\?[^]\\${}=<>:-\\\"\"))){\n $result = $result.\"\\\\\".$token;\n $state = 8;\n $wasC = false;\n } else if ($token === \"%\"){\n $state = 9;\n $wasC = false;\n } else {\n $result = $result.$token;\n $state = 8;\n $wasC = false;\n }\n break;\n case 8: //bol jeden znak alebo ), maximalne tak | alebo snad )\n if ($token === \"|\"){\n $result = $result.$token;\n $state = 7;\n $wasC = false;\n } else if ($token === \")\"){\n $parsInNeg -= 1;\n if ($parsInNeg < 0 || $wasC)\n $state = 4;\n else if ($parsInNeg === 0){//koniec utrpenia\n $result = $result.\")]\";\n $state = 3;\n } else {\n $result = $result.$token;\n $state = 8;\n }\n $wasC = false;\n } else {\n $state = 4;\n }\n break;\n case 9://% v !(\n $wasC = false;\n if (in_array($token, str_split(\"sdtn.|!*+)(\"))){\n $result = $result.\"\\\\\".$token;\n $state = 8;\n } else if ($token === \"a\"){\n $result = $result.\"\\s\\S\";\n $state = 8;\n } else if ($token === \"l\"){\n $result = $result.\"a-z\";\n $state = 8;\n } else if ($token === \"L\"){\n $result = $result.\"A-Z\";\n $state = 8;\n } else if ($token === \"w\"){\n $result = $result.\"a-zA-Z\";\n $state = 8;\n } else if ($token === \"W\"){\n $result = $result.\"a-zA-Z0-9\";\n $state = 8;\n } else if ($token === \"%\"){\n $result = $result.\"%\";\n $state = 8;\n } else\n $state = 4;\n break;\n\n //moze byt jeden znak, %znak, specialny_znak\n //nemoze byt binarny, unarny, !\n ///zavorky++\n\n }\n\n }\n if ($pars != 0 || $state != 3)\n error(\"Chyba v regularnom vyraze\", 4);//TODO error code\n return $result;\n }"
] | [
"0.5711836",
"0.5265807",
"0.5207734",
"0.50305563",
"0.50183773",
"0.50049865",
"0.49946687",
"0.49930918",
"0.49823987",
"0.49759617",
"0.49592847",
"0.49541044",
"0.493959",
"0.49275696",
"0.49258554",
"0.49193656",
"0.49104398",
"0.48937345",
"0.48811996",
"0.4877627",
"0.48752758",
"0.47967952",
"0.47784337",
"0.47725028",
"0.4762282",
"0.47537264",
"0.4753138",
"0.47487932",
"0.4743024",
"0.47204885",
"0.47200713",
"0.4712543",
"0.4709086",
"0.469363",
"0.4691972",
"0.46891382",
"0.4687965",
"0.46787196",
"0.46602324",
"0.4646358",
"0.46448833",
"0.46423322",
"0.46415925",
"0.4639",
"0.4635318",
"0.46256503",
"0.4618288",
"0.4615986",
"0.46145594",
"0.46144423",
"0.46112448",
"0.4606897",
"0.46040672",
"0.460389",
"0.4588768",
"0.4587781",
"0.45729604",
"0.45719075",
"0.45704243",
"0.45698693",
"0.45648146",
"0.45637113",
"0.45595735",
"0.45526406",
"0.45462963",
"0.45446706",
"0.45367247",
"0.45335767",
"0.45311922",
"0.4531167",
"0.45307457",
"0.45299554",
"0.45290515",
"0.4527901",
"0.45240846",
"0.45228505",
"0.45068216",
"0.4505545",
"0.45049706",
"0.45030028",
"0.45000926",
"0.4496431",
"0.44902593",
"0.448838",
"0.44859326",
"0.44828174",
"0.4482524",
"0.44768628",
"0.44759086",
"0.44747227",
"0.4474285",
"0.44725332",
"0.44707975",
"0.44694477",
"0.44670492",
"0.4461944",
"0.44618994",
"0.44618654",
"0.44615147",
"0.44614685"
] | 0.6100062 | 0 |
/ |========================================================== | get corruption infos | public function getCorruptionInfos($matchId)
{
$queryString="SELECT *
FROM corruption_match
WHERE match_id=$matchId";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function errorInfo() {\n\t\treturn array(\n\t\t\t0,\n\t\t\t0,\n\t\t\tmssql_get_last_message()\n\t\t);\n\t}",
"public function errorInfo()\n {\n $e = oci_error($this->_dbh);\n\n if (is_array($e)) {\n return array(\n 'HY000',\n $e['code'],\n $e['message']\n );\n }\n\n return array('00000', null, null);\n }",
"public function getInfo()\n {\n return \\CB::analyzeException($this);\n }",
"public static function errorInfo(): array {\r\n return self::getConnection()->errorInfo();\r\n }",
"public function errorInfo()\n {\n if ($this->error !== false) {\n return ['HY000', $this->error['code'], $this->error['message']];\n }\n\n return ['00000', null, null];\n }",
"function getErrors() {\n\t\treturn $this->_arc2_RemoteStore->getErrors();\n\t}",
"public function errorInfo()\n {\n return $this->conn->errorInfo();\n }",
"public function errorInfo()\n {\n return $this->tarArchive->error_object->getMessage();\n }",
"public function errorInfo();",
"public function errorInfo();",
"protected function getBackTrace(){\n\t\treturn array('Inicio', 'Facturación');\n\t}",
"public function errorInfo()\r\n\t{\r\n\t\treturn $this->errorInfo;\r\n\t}",
"public function getErrorList() : array {\n\t\t$file = func_get_arg( 0 );\n\t\tswitch ( $file ) {\n\t\t\tcase 'SlowMetaQueryUnitTest.success.inc':\n\t\t\t\treturn [];\n\n\t\t\tcase 'SlowMetaQueryUnitTest.fail.inc':\n\t\t\t\treturn [\n\t\t\t\t\t7 => 1,\n\t\t\t\t\t14 => 1,\n\t\t\t\t\t27 => 1,\n\t\t\t\t\t37 => 1,\n\t\t\t\t\t47 => 1,\n\t\t\t\t\t59 => 1,\n\t\t\t\t\t78 => 1,\n\t\t\t\t\t94 => 1,\n\t\t\t\t\t98 => 1,\n\t\t\t\t\t105 => 1,\n\t\t\t\t];\n\t\t}\n\t\treturn [];\n\t}",
"public function getFault()\n {\n if ($this->fault) {\n $org = $this->fault->getTrace()[1];\n return [\n 'fault' => [\n 'message' => $this->fault->getMessage(),\n 'caller' => $org['file'] .':' .$org['line'],\n ],\n ];\n }\n }",
"private function readErrors()\n {\n $fh = fopen($this->logdir.\"hermes.log\", \"r\");\n if($fh == FALSE)\n return;\n if(flock($fh, LOCK_EX))\n {\n $line = fgets($fh);\n while($line != FALSE)\n {\n $pair = split(' ', $line);\n $this->errors[$pair[0]] = $pair[1]; //undefined offset whatever lol\n $line = fgets($fh);\n }\n flock($fh, LOCK_UN);\n }\n fclose($fh);\n }",
"public function errorInfo() {}",
"public function get_errors() {\n $res = array();\n foreach($this->errors as $error) {\n $res[] = $error->errormsg;\n }\n return $res;\n }",
"abstract public function getErrorMetadata(): array;",
"public function info() : array\n { try\n {\n $url = $this->getHostUrlString();\n $request = new \\GuzzleHttp\\Psr7\\Request('GET', $url);\n $response = $this->sendWithCredentials($request);\n\n $httpcode = $response->getStatusCode();\n $result = (string)$response->getBody();\n if ($httpcode < 200 || $httpcode > 299)\n throw new \\Flexio\\Base\\Exception(\\Flexio\\Base\\Error::NO_DATABASE);\n\n $result = json_decode($result,true);\n\n if (!is_array($result))\n throw new \\Flexio\\Base\\Exception(\\Flexio\\Base\\Error::NO_DATABASE);\n if (!isset($result['version']))\n throw new \\Flexio\\Base\\Exception(\\Flexio\\Base\\Error::NO_DATABASE);\n\n $version = $result['version'];\n if (!isset($version['number']))\n throw new \\Flexio\\Base\\Exception(\\Flexio\\Base\\Error::NO_DATABASE);\n\n return $version;\n }\n catch (\\Exception $e)\n {\n return array();\n }\n }",
"public function errorInfo() {\n return self::$PDOInstance->errorInfo();\n }",
"public function getErr() {}",
"public function errorInfo()\n {\n return $this->error;\n }",
"private function error(): array\n {\n $error = [];\n $pdoError = $this->statement->errorInfo();\n if (empty($pdoError[0]) || $pdoError[0] == '00000')\n return $error;\n\n $error['code'] = isset($pdoError[1]) ? $pdoError[0] . '/' . $pdoError[1] : $pdoError[0];\n if (isset($pdoError[2]))\n $error['message'] = $pdoError[2];\n\n return $error;\n }",
"public function getLastError(): array\n {\n return $this->LastError;\n }",
"public static function backtrace() \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::backtrace();\n\t}",
"public function getDependencyErrors() {}",
"public function getDependencyErrors() {}",
"protected function get_errors_description() {\n $errors = array();\n if ($this->options->is_check_errors == true) {\n\n $i = 0;\n $rules_names = $this->get_error_hints_names();\n\n foreach($rules_names as $rule_name) {\n $rule = new $rule_name($this->get_dst_root());\n $rhr = $rule->check_hint();\n\n if (count($rhr->problem_ids) > 0) {\n $errors[$i] = array();\n\n $errors[$i][\"problem\"] = $rhr->problem;\n $errors[$i][\"solve\"] = $rhr->solve;\n $errors[$i][\"problem_ids\"] = $rhr->problem_ids;\n $errors[$i][\"problem_type\"] = $rhr->problem_type;\n $errors[$i][\"problem_indfirst\"] = $rhr->problem_indfirst;\n $errors[$i][\"problem_indlast\"] = $rhr->problem_indlast;\n\n ++$i;\n }\n }\n }\n return $errors;\n }",
"public function getErrorData() {\n\t\treturn $this->excuteHandle->getErrorData();\n\t}",
"public function getError() {\n\t\t$error = array();\n\t\t$error['message'] = $this->err_message;\n\t\t$error['code'] = $this->err_code;\n\t\treturn $error;\n\t}",
"public function get_errors() { return $this->errortext; }",
"public function diagnostics()\n {\n $diagnostics = array();\n $utilityObj = new Utility;\n $domains = array('', 'Action', 'Credential', 'Group', 'User', 'Tag', 'Webhook');\n $queue = $this->getBatchRequest();\n foreach($domains as $domain)\n $this->db->batch($queue)->domain_metadata(\"{$this->domainPhoto}{$domain}\");\n $responses = $this->db->batch($queue)->send();\n if($responses->areOK())\n {\n $diagnostics[] = $utilityObj->diagnosticLine(true, 'All SimpleDb domains are accessible.');\n }\n else\n {\n foreach($responses as $key => $res)\n {\n if((int)$res->status !== 200)\n $diagnostics[] = $utilityObj->diagnosticLine(false, sprintf('The SimpleDb domains \"%s\" is NOT accessible.', $domains[$key]));\n }\n }\n return $diagnostics;\n }",
"function msgsrv_last_error () {}",
"function get_error_info() {\n return $this->error_info;\n }",
"public function getLastError(): iterable;",
"function errorInfo($p_full=false)\n {\n if (PCLZIP_ERROR_EXTERNAL == 1) {\n return(PclErrorString());\n }\n else {\n if ($p_full) {\n return($this->errorName(true).\" : \".$this->error_string);\n }\n else {\n return($this->error_string.\" [code \".$this->error_code.\"]\");\n }\n }\n }",
"public function getmastererror(){\n\t\ttry{\t$where_filter =1;\n\t\t\t\t$where = '';\n\t\t\t if(isset($this->getData['token']) && $this->getData['token'] != \"\"){\n\t\t\t\t\t $where_filter = \"SM.master_id ='\".Zend_Encript_Encription:: decode($this->getData['token']).\"'\";\n\t\t\t\t}\n\t\t\t if(isset($this->getData['error_code'])){\n\t\t\t\t\tif($this->getData['error_code'] == \"1\"){ \n\t\t\t\t\t $where.= \" AND SM.status ='1'\";\n\t\t\t\t\t}elseif($this->getData['error_code'] == \"0\"){\n\t\t\t\t\t $where.= \" AND SM.status ='0'\";\n\t\t\t\t\t}elseif($this->getData['error_code'] == \"2\"){\n\t\t\t\t\t $where.= \" AND SM.delete_status ='1'\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$where.= ' AND SM.delete_status=\"0\"';\n\t\t\t\t}\n\t\t\t\tif(isset($this->getData['error_type']) && $this->getData['error_type'] != \"all\" && $this->getData['error_type'] != \"\"){\n\t\t\t\t\t $where.= \" AND SM.error_type ='\".$this->getData['error_type'].\"'\";\n\t\t\t\t}\n\t\t\t$select = $this->_db->select()\n\t\t\t\t\t\t\t->from(array('SM'=>STATUS_MASTER),array('SM.*'))\n\t\t\t\t\t\t\t->joinleft(array('MNT' =>MAIL_NOTIFY_TYPES),'MNT.notification_id=SM.notification_id AND MNT.templatecategory_id =3',array('MNT.notification_name'))\n\t\t\t\t\t\t\t->where($where_filter.$where)\n\t\t\t\t\t\t\t->order('SM.status_name ASC');\t\t\t\n\t\t\t//echo $select->__tostring(); die;\t\t\t\t\n\t\t\t$result = $this->getAdapter()->fetchAll($select);\n\t\t\treturn $result;}catch (Exception $e) {\n\t\t\t\t\t $this->_logger->info('Class-'.__CLASS__.',Function-'.__FUNCTION__.',Line-'.__LINE__.',Error-'.$e->getMessage());\n\t\t\t}\n\t \n\t }",
"public function providerRefreshException(): array\n {\n return static::getKeyedArray([\n [\n '4.root.json',\n ['signed', 'newkey'],\n 'new value',\n new SignatureThresholdExpception('Signature threshold not met on root'),\n [\n 'root' => 3,\n 'timestamp' => 3,\n 'snapshot' => 3,\n 'targets' => 3,\n ],\n ],\n [\n '5.root.json',\n ['signed', 'newkey'],\n 'new value',\n new SignatureThresholdExpception('Signature threshold not met on root'),\n [\n 'root' => 4,\n 'timestamp' => 3,\n 'snapshot' => 3,\n 'targets' => 3,\n ],\n ],\n [\n 'timestamp.json',\n ['signed', 'newkey'],\n 'new value',\n new SignatureThresholdExpception('Signature threshold not met on timestamp'),\n [\n 'root' => 5,\n 'timestamp' => null,\n 'snapshot' => 3,\n 'targets' => 3,\n ],\n ],\n [\n '5.snapshot.json',\n ['signed', 'newkey'],\n 'new value',\n new MetadataException(\"The 'snapshot' contents does not match hash 'sha256' specified in the 'timestamp' metadata.\"),\n [\n 'root' => 5,\n 'timestamp' => 5,\n 'snapshot' => null,\n 'targets' => 3,\n ],\n ],\n [\n '5.snapshot.json',\n ['signed', 'version'],\n 6,\n new MetadataException(\"Expected snapshot version 5 does not match actual version 6.\"),\n [\n 'root' => 5,\n 'timestamp' => 5,\n 'snapshot' => null,\n 'targets' => 3,\n ],\n ],\n [\n '5.targets.json',\n ['signed', 'version'],\n 6,\n new MetadataException(\"Expected targets version 5 does not match actual version 6.\"),\n [\n 'root' => 5,\n 'timestamp' => 5,\n 'snapshot' => 5,\n 'targets' => 3,\n ],\n ],\n ]);\n }",
"public function getError()\n {\n if (empty($this->error) != true){\n end($this->error); //Pointer to the end\n $key = key($this->error); //Get the key of last element\n $ret = array( \"code\" => $key, \"description\" => $this->error[$key] );\n reset($this->error);\n }else{\n $ret = array( \"code\" => \"get_error\", \"description\" => \"No are errors to show\" );\n }\n \n return $ret;\n }",
"public static function getAbortedSummary() \n\t{\n\t\t$summary = '';\n\t\tforeach (MHTTPD::$aborted as $num=>$ab) {\n\t\t\t$summary .= \"({$num}) C: {$ab['client']}, F: {$ab['fcgi_client']}, \"\n\t\t\t\t. \"P: {$ab['process']} ({$ab['pid']}), T: {$ab['time']}\\n\";\n\t\t}\n\t\t$summary = $summary != '' ? $summary : 'None';\n\t\treturn $summary;\n\t}",
"function getErrors()\n {\n ksort($this->errors);\n $e = array();\n foreach ($this->errors as $v) foreach ($v as $e[]) {}\n return $e;\n }",
"public function getLastError();",
"function get_errors(){\r\n\t\t$errors = array();\r\n\r\n\t\tforeach($this->feeds as $feed){\r\n\t\t\tif($feed->error()) $errors[] = $feed->get_feed_id();\r\n\t\t}\r\n\r\n\t\treturn $errors;\r\n\t}",
"private function err_to_array() {\n return array(\n 'code' => $this->code,\n 'reason' => $this->http_status_code_string($this->code),\n 'message' => $this->message,\n );\n }",
"public function getMessages() {\n return libxml_get_last_error();\n }",
"public function get_error();",
"public function get_error();",
"public function getErrorCorrectionBytes()\n {\n return $this->errorCorrectionBytes;\n }",
"private function getDetails()\n {\n $details = array();\n $num_fields_added = 0;\n $num_fields_deleted = 0;\n $num_fields_modified = 0;\n $total_fields_before = sizeof($this->furthest_metadata);\n $total_fields_after = sizeof($this->latest_metadata);\n\n foreach($this->metadata_changes as $field => $metadata)\n {\n $new_metadata = $this->latest_metadata[$field];\n $old_metadata = $this->furthest_metadata[$field];\n\n // Check for fields added.\n if (!$old_metadata)\n {\n $num_fields_added++;\n }\n // Check for deleted fields.\n else if (!$new_metadata)\n {\n $num_fields_deleted++;\n }\n // Check for fields modified.\n else\n {\n $differences = array_diff_assoc($new_metadata, $old_metadata);\n if (!empty($differences))\n {\n $num_fields_modified++;\n }\n }\n }\n \n return array(\n \"num_fields_added\" => $num_fields_added,\n \"num_fields_deleted\" => $num_fields_deleted,\n \"num_fields_modified\" => $num_fields_modified,\n \"total_fields_before\" => $total_fields_before,\n \"total_fields_after\" => $total_fields_after\n );\n }",
"function getErrors();",
"public function errors() {\n\t\treturn $this->errs;\n\t}",
"function getErro(){\n\t\t$erro;\n\t\tswitch ($this->intBanco){\n\t\t\tcase INT_SQLSERVER:\n\t\t\t\t$erro = mssql_get_last_message();\n\t\t\t\tbreak;\n\t\t\tcase INT_ORACLE:\n\t\t\t\t$erro1 = oci_error($this->cursor);\n\t\t\t\t$erro = $erro1[\"message\"];\n\t\t\t\tbreak;\n\t\t\tcase INT_POSTGRE:\n\t\t\t\t$erro = pg_last_error($this->conexao);\n\t\t\t\tbreak;\n\t\t\tcase INT_MYSQL:\n\t\t\t\t$erro = mysql_error();\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $erro;\n\t}",
"function getInfo()\n {\n return 'Probably the XML was not sent as file, but as an input content of an HTML.';\n }",
"public function __debugInfo(): array\n {\n try {\n $count = $this->count();\n } catch (Exception $e) {\n $count = 'An exception occurred while getting count';\n }\n\n return [\n 'count' => $count,\n ];\n }",
"public function violations(): array;",
"public function getErrorList()\n {\n return [\n 13 => 1,\n 33 => 1,\n 83 => 1,\n 88 => 1,\n 92 => 1,\n ];\n\n }",
"public function get_errors()\n\t{\n\t\t$profile_start = microtime(true);\n\t\t$this->display->errors();\n\t\t$profile_start = profiler($profile_start,__CLASS__,__FUNCTION__,'openapi');\n\t}",
"public function error(): array\n\t{\n\t\tif (! empty($this->connID->connect_errno))\n\t\t{\n\t\t\treturn [\n\t\t\t\t'code' => $this->connID->connect_errno,\n\t\t\t\t'message' => $this->connID->connect_error,\n\t\t\t];\n\t\t}\n\n\t\treturn [\n\t\t\t'code' => $this->connID->errno,\n\t\t\t'message' => $this->connID->error,\n\t\t];\n\t}",
"public function getErrosArray(){\n\t\treturn $this->erros;\n\t}",
"public function getTransactionErrors()\n {\n $errors = [];\n\n $transaction = $this->order_transactions->first();\n if (!$transaction->success) {\n /** @var \\Braintree_Error_ErrorCollection $result */\n $result = unserialize($transaction->response);\n\n if ($result->errors->deepSize() > 0) {\n foreach ($result->errors->deepAll() as $error) {\n $errors[] = \"{$error->message} (Code: {$error->code})\";\n }\n } else {\n $errors[] = $result->message;\n }\n }\n\n return $errors;\n }",
"public function getErrorList() {\n\t\treturn array();\n\n\t}",
"function status() { return $this->err->status;}",
"public function get_error_messages();",
"function warnings() {\n\t\t$Warnings = array();\n\t\tif (mysqli_warning_count($this->LinkID)) {\n\t\t\t$e = mysqli_get_warnings($this->LinkID);\n\t\t\tdo {\n\t\t\t\tif ($e->errno == 1592) {\n\t\t\t\t\t// 1592: Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$Warnings[] = 'Code ' . $e->errno . ': ' . display_str($e->message);\n\t\t\t} while ($e->next());\n\t\t}\n\t\t$this->Queries[count($this->Queries) - 1][2] = $Warnings;\n\t}",
"public function getBriefInfoMessages()\n {\n $array = imap_headers($this->imap);\n $newArray = [];\n foreach ($array as $key => $string) {\n $newArray[] = ['id'=>$key+1, 'info' => $string];\n };\n return $newArray;\n }",
"public function getErrors(): array\n {\n return $this->errorBucket;\n }",
"public function getOldFileOffenders()\n\t{\n\t $this->load->model('cleanup','',FALSE);\n\t $this->load->model('configuration');\n\t $dbList = $this->configuration->getDBList();\n\t foreach($dbList->result() as $db) {\n\t \t//if($db == \"som\") {\n\t \techo \"Starting Old File Detection For: \".$db->friendlyName;\n\t \techo \"<br />\";\n\t \t$this->cleanup->getOldFiles($db->dbGroup,$db->fullpath,$db->fsInodeNumber,$db->friendlyName);\n\t \techo \"<hr /><br />\";\n\t //}\n\t }\n\t //$this->cleanup->sendNotices(\"oldfile\");\n\t}",
"protected function getDebugBacktrace() {}",
"public function renvoi_infos() {\n\t\t$info = @stream_get_meta_data ( $this->connexion );\n\t\t\n\t\treturn $info;\n\t}",
"public function getLastError()\n {\n return 0;\n }",
"public function getErrorList()\n {\n return [\n 8 => 1,\n 13 => 1,\n ];\n }",
"public function getThrowableInformation() : mixed\n {\n return $this->throwableInfo;\n \n }",
"function errors_list() \n {\n $errors = array();\n foreach(get_object_vars($this) as $name => $obj) \n {\n if ($obj != NULL) \n {\n if (!$obj->errors->not_errors())\n {\n $list = array();\n foreach ($obj->errors as $error) \n {\n $list[] = $error;\n }\n $errors[$obj->name] = $list;\n } \n }\n }\n return $errors;\n }",
"public function getLastError() {}",
"public function getErrorLines()\n {\n return array('Something went wrong... ಠ_ಠ');\n }",
"function GetError() \r\n{ \r\n$theerror = $this->LastError; \r\n$this->ClearError(); \r\nreturn $theerror; \r\n}",
"protected function getLastError() {}",
"public function getErrors()\n {\n $sErrMsg = '';\n if (count($this->aErrors) > 1) {\n foreach ($this->aErrors as $sError) {\n $sErrMsg .= $sError . \"\\r\\n\";\n }\n }\n\n return $sErrMsg;\n }",
"public function get_error_objects() {\n return $this->errors;\n }",
"function err(){\r\n return $this->ixd->error;\r\n }",
"public function getErrorList() {\n\t\treturn array(\n\t\t\t11 => 2,\n\t\t\t12 => 2,\n\t\t\t13 => 2,\n\t\t\t16 => 2,\n\t\t\t19 => 2,\n\t\t\t22 => 2,\n\t\t\t26 => 2,\n\t\t\t36 => 2,\n\t\t\t37 => 2,\n\t\t\t38 => 2,\n\t\t\t47 => 2,\n\t\t\t51 => 2,\n\t\t);\n\t}",
"public function get_errors($Light = false) {\n if ($Light) {\n foreach (self::$Errors as $Key => $Value) {\n self::$Errors[$Key][3] = '';\n }\n }\n return self::$Errors;\n }",
"public function getErrors();",
"public function getErrors();",
"public function getErrors();",
"public function getErrors();",
"public function get_bom_warning_text() {\n\t\t$files_to_check = array(\n\t\t\tABSPATH.'wp-config.php',\n\t\t\tget_template_directory().DIRECTORY_SEPARATOR.'functions.php',\n\t\t);\n\t\tif (is_child_theme()) {\n\t\t\t$files_to_check[] = get_stylesheet_directory().DIRECTORY_SEPARATOR.'functions.php';\n\t\t}\n\t\t$corrupted_files = array();\n\t\tforeach ($files_to_check as $file) {\n\t\t\tif (!file_exists($file)) continue;\n\t\t\tif (false === ($fp = fopen($file, 'r'))) continue;\n\t\t\tif (false === ($file_data = fread($fp, 8192)));\n\t\t\tfclose($fp);\n\t\t\t$substr_file_data = array();\n\t\t\tfor ($substr_length = 2; $substr_length <= 5; $substr_length++) {\n\t\t\t\t$substr_file_data[$substr_length] = substr($file_data, 0, $substr_length);\n\t\t\t}\n\t\t\t// Detect UTF-7, UTF-8, UTF-16 (BE), UTF-16 (LE), UTF-32 (BE) & UTF-32 (LE) Byte order marks (BOM)\n\t\t\t$bom_decimal_representations = array(\n\t\t\t\tarray(43, 47, 118, 56), // UTF-7 (Hexadecimal: 2B 2F 76 38)\n\t\t\t\tarray(43, 47, 118, 57), // UTF-7 (Hexadecimal: 2B 2F 76 39)\n\t\t\t\tarray(43, 47, 118, 43), // UTF-7 (Hexadecimal: 2B 2F 76 2B)\n\t\t\t\tarray(43, 47, 118, 47), // UTF-7 (Hexadecimal: 2B 2F 76 2F)\n\t\t\t\tarray(43, 47, 118, 56, 45), // UTF-7 (Hexadecimal: 2B 2F 76 38 2D)\n\t\t\t\tarray(239, 187, 191), // UTF-8 (Hexadecimal: 2B 2F 76 38 2D)\n\t\t\t\tarray(254, 255), // UTF-16 (BE) (Hexadecimal: FE FF)\n\t\t\t\tarray(255, 254), // UTF-16 (LE) (Hexadecimal: FF FE)\n\t\t\t\tarray(0, 0, 254, 255), // UTF-32 (BE) (Hexadecimal: 00 00 FE FF)\n\t\t\t\tarray(255, 254, 0, 0), // UTF-32 (LE) (Hexadecimal: FF FE 00 00)\n\t\t\t);\n\t\t\tforeach ($bom_decimal_representations as $bom_decimal_representation) {\n\t\t\t\t$no_of_chars = count($bom_decimal_representation);\n\t\t\t\tarray_unshift($bom_decimal_representation, 'C*');\n\t\t\t\t$binary = call_user_func_array('pack', $bom_decimal_representation);\n\t\t\t\tif ($binary == $substr_file_data[$no_of_chars]) {\n\t\t\t\t\t$corrupted_files[] = $file;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (empty($corrupted_files)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\t$corrupted_files_count = count($corrupted_files);\n\t\t\treturn '<strong>'.__('Warning', 'updraftplus').':</strong> '.sprintf(_n('The file %s has a \"byte order mark\" (BOM) at its beginning.', 'The files %s have a \"byte order mark\" (BOM) at their beginning.', $corrupted_files_count, 'updraftplus'), '<strong>'.implode('</strong>, <strong>', $corrupted_files).'</strong>').' <a href=\"'.apply_filters('updraftplus_com_link', \"https://updraftplus.com/problems-with-extra-white-space/\").'\" target=\"_blank\">'.__('Follow this link for more information', 'updraftplus').'</a>';\n\t\t}\n\t}",
"public function get_errors() {\n\t\treturn $this->errors->get_error_messages();\n\t}",
"public function getErrors()\n {\n if(curl_errno($this->ch))\n return curl_error($this->ch);\n return null;\n }",
"function get_mdlmodule_infos($moduleid){\n\n $DB=$GLOBALS['GLBMDL_DB'];\n $module_infos=new stdClass();\n try {\n\n $module_infos= $DB->get_record('course_modules', array('id' =>$moduleid));\n $resource_course_infos=new stdClass();\n $resource_course_infos=get_course_infos($module_infos->course, $DB);\n\n $module_infos=$resource_course_infos->course_modules[$moduleid];\n $module_infos->course_gen_infos = $resource_course_infos->course_gen_infos ;\n $module_infos->course_cat_infos = $resource_course_infos->course_cat_infos ;\n\n\n } catch (\\Exception $e) {\n //$module_infos->course_gen_infos = 'Resource not existant. Verify your request or contact Univ-Nantes Admin.';\n return $e;\n echo \"Exception occurred\";\n }\n\n //Clean function to 'mustRenderedX5gonInfos' must be applied here.\n return cleanresponse_resource_infos($module_infos);\n\n }",
"public function get_error() {\n \t$error = oci_error($this->resource);\n \treturn $error[ 'code' ] . ': ' . $error[ 'message' ];\n }",
"public function getErrorList()\n {\n return [\n 9 => 1,\n 14 => 1,\n 20 => 1,\n 22 => 1,\n 32 => 1,\n 36 => 1,\n 44 => 1,\n 48 => 1,\n 56 => 1,\n 60 => 1,\n 68 => 1,\n 72 => 1,\n 84 => 1,\n 88 => 2,\n 100 => 1,\n 104 => 2,\n 122 => 2,\n 128 => 1,\n 132 => 3,\n 133 => 2,\n 147 => 1,\n 157 => 1,\n 165 => 1,\n ];\n\n }",
"public function getInfo() {\n $file_info = $this->handler->fetch($this->update_info);\n if (isset($file_info['body'])) {\n return unserialize($file_info['body']);\n } else {\n return unserialize($file_info);\n }\n }",
"abstract public function getLastError();",
"abstract public function getLastError();",
"public function getMysqliErrors() : array\n {\n return self::$mysqli->error_list;\n }",
"public function get_clear_error_msgs()\n {\n $msgs = array();\n foreach ($this->errors as $e) {\n $msgs[$e['field']][$e['rule']] = $this->get_validation_error_msg($e['field'], $e['rule'], $e['value']);\n\n }\n return $msgs;\n }",
"function get_error() {\r\n $error = array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_ERROR,\r\n 'error' => stripslashes(urldecode($_GET['error'])));\r\n return $error;\r\n }",
"public function errorInfo()\n {\n }",
"public function allInfo() {\n return $this->infoMsg;\n }"
] | [
"0.6437854",
"0.62154084",
"0.60835767",
"0.60513717",
"0.5981879",
"0.57942045",
"0.57923347",
"0.57923007",
"0.5608492",
"0.5608492",
"0.5600638",
"0.5549973",
"0.54803646",
"0.544739",
"0.5442041",
"0.5441122",
"0.5396901",
"0.53714675",
"0.536586",
"0.53345317",
"0.5314267",
"0.5314052",
"0.5296725",
"0.5275244",
"0.525458",
"0.52487415",
"0.52487415",
"0.52443475",
"0.5238442",
"0.5220326",
"0.52136844",
"0.5204551",
"0.5203149",
"0.5187352",
"0.5170938",
"0.5162631",
"0.5131152",
"0.51294357",
"0.5127209",
"0.51182425",
"0.5113653",
"0.5112887",
"0.5109357",
"0.5073742",
"0.5067537",
"0.50561035",
"0.50561035",
"0.50497955",
"0.504653",
"0.50309885",
"0.5026419",
"0.502594",
"0.5024567",
"0.5020684",
"0.50137156",
"0.5010806",
"0.49971688",
"0.49880332",
"0.49758562",
"0.4970938",
"0.49689558",
"0.49688616",
"0.49628478",
"0.4961455",
"0.4958785",
"0.49579635",
"0.49563417",
"0.49561352",
"0.4953874",
"0.49509218",
"0.49487025",
"0.4948539",
"0.49457985",
"0.49451876",
"0.49423733",
"0.49341583",
"0.4918154",
"0.49170527",
"0.491673",
"0.49157983",
"0.49116227",
"0.49115217",
"0.4906019",
"0.4906019",
"0.4906019",
"0.4906019",
"0.49020946",
"0.490208",
"0.49015403",
"0.48995858",
"0.4895898",
"0.48937225",
"0.48841378",
"0.4881246",
"0.4881246",
"0.4878168",
"0.48772404",
"0.4871836",
"0.48664021",
"0.48592347"
] | 0.6005897 | 4 |
/ |========================================================== | accept corruption update statut | public function corruptionAccepted($matchId)
{
/*$queryString="SELECT *
FROM corruption_match
WHERE match_id=$matchId";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;*/
$queryString="UPDATE corruption_match
SET response=1
WHERE match_id=$matchId";
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateFailed();",
"public function testUpdateUnsuccessfulReason()\n {\n }",
"public function testUpdateValuesTooShort(): void { }",
"public function test_if_failed_update()\n {\n }",
"public function testUpdateValuesTooLong(): void { }",
"protected function _update()\n\t{\n\t}",
"private function validateUpdate() {\n\t\t$this->context->checkPermission(\\Scrivo\\AccessController::WRITE_ACCESS);\n\t}",
"public function httpUpdate(): array\n {\n throw new FinBlocksException('Impossible to update the Withdrawal');\n }",
"protected function _update()\n {\n \n }",
"protected function _update()\n {\n \n }",
"protected function prepareUpdateData(){\n\t\tthrow new Exception('Unknown Error!', REST_ER_PAGE_NOTFOUND);\n\t}",
"function do_undismiss_core_update()\n {\n }",
"protected function _preupdate() {\n }",
"protected function error() {\n trigger_error(\"All properties of previous datastream versions are read only. Please modify parent datastream object.\", E_USER_WARNING);\n }",
"function v1_update($undo_file_pointer, $update_table, $field_name, $field_value, $where_field_name, $where_field_value, $upload_to_db, &$error) {\n\t\n\t// DB functions\n\trequire_once \"php/funcs/db_funcs.php\";\n\t\n\t// Store old values in \"undowovoml\" before updating them (if not a simulation)\n\tif ($upload_to_db) {\n\t\t// Send \"SELECT\" query to database\n\t\t$select_field_value=array();\n\t\t$local_error=\"\";\n\t\tif (!db_select($update_table, $field_name, $where_field_name, $where_field_value, $select_field_value, $local_error)) {\n\t\t\tswitch ($local_error) {\n\t\t\t\tcase \"Error in the parameters given\":\n\t\t\t\t\t$error=array();\n\t\t\t\t\t$error['code']=1024;\n\t\t\t\t\t$error['message']=$local_error.\" to db_select()\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$error=array();\n\t\t\t\t\t$error['code']=4009;\n\t\t\t\t\t$error['message']=$local_error;\n\t\t\t}\n\t\t\treturn FALSE;\n\t\t}\n\t\t$l_field_value=count($select_field_value);\n\t\tif ($l_field_value>1) {\n\t\t\t// Only 1 result should be found\n\t\t\t$error=array();\n\t\t\t$error['code']=1881;\n\t\t\t$error['message']=\"Multiple rows in the '\".$update_table.\"' table correspond to \";\n\t\t\t// Loop on values\n\t\t\t$l_where_field_name=count($where_field_name);\n\t\t\tfor ($i=0; $i<$l_where_field_name; $i++) {\n\t\t\t\tif ($i==0) {\n\t\t\t\t\t$error['message'].=$where_field_name[$i].\"='\".$where_field_value[$i].\"'\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$error['message'].=\", \".$where_field_name[$i].\"='\".$where_field_value[$i].\"'\";\n\t\t\t}\n\t\t}\n\t\t// Store old values\n\t\t$undo_instruction=\n\t\t\"\\n\\t<update>\".\n\t\t\"\\n\\t\\t<table>\".$update_table.\"</table>\";\n\t\t// Fields\n\t\t$cnt_fields=count($field_name);\n\t\tfor ($i=0; $i<$cnt_fields; $i++) {\n\t\t\t$undo_instruction.=\n\t\t\t\"\\n\\t\\t<field>\".$field_name[$i].\"</field>\".\n\t\t\t\"\\n\\t\\t<value>\".$select_field_value[0][$i].\"</value>\";\n\t\t}\n\t\t// Where conditions\n\t\t$l_where_field_name=count($where_field_name);\n\t\t$undo_instruction.=\n\t\t\"\\n\\t\\t<where>\";\n\t\tfor ($i=0; $i<$l_where_field_name; $i++) {\n\t\t\t$undo_instruction.=\n\t\t\t\"\\n\\t\\t\\t<field>\".$where_field_name[$i].\"</field>\".\n\t\t\t\"\\n\\t\\t\\t<value>\".$where_field_value[$i].\"</value>\";\n\t\t}\n\t\t$undo_instruction.=\n\t\t\"\\n\\t\\t</where>\".\n\t\t\"\\n\\t</update>\";\n\t\tif (!fwrite($undo_file_pointer, $undo_instruction)) {\n\t\t\t// Error\n\t\t\t$error=array();\n\t\t\t$error['code']=2022;\n\t\t\t$error['message']=\"An error occurred when trying to write undo file\";\n\t\t\treturn FALSE;\n\t\t}\n\t}\n\t\n\t// Send query to database\n\t$local_error=\"\";\n\tif (!db_update($update_table, $field_name, $field_value, $where_field_name, $where_field_value, !$upload_to_db, $local_error)) {\n\t\tswitch ($local_error) {\n\t\t\tcase \"Error in the parameters given\":\n\t\t\t\t$error=array();\n\t\t\t\t$error['code']=1028;\n\t\t\t\t$error['message']=$local_error.\" to db_update()\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$error=array();\n\t\t\t\t$error['code']=4010;\n\t\t\t\t$error['message']=$local_error;\n\t\t}\n\t\treturn FALSE;\n\t}\n\t\n\treturn TRUE;\n}",
"function phpgwapi_upgrade0_9_14_503()\n\t{\n\t\tif ($GLOBALS['phpgw_setup']->oProc->sType == 'pgsql')\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_addressbook','last_mod',array(\n\t\t\t\t'type' => 'int',\n\t\t\t\t'precision' => '4',\n\t\t\t));\n\t\t\t$GLOBALS['phpgw_setup']->oProc->query(\"UPDATE phpgw_addressbook SET last_mod=0\",__LINE__,__FILE__);\n\t\t\t$GLOBALS['phpgw_setup']->oProc->query(\"ALTER TABLE phpgw_addressbook ALTER COLUMN last_mod SET NOT NULL\",__LINE__,__FILE__);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_addressbook','last_mod',array(\n\t\t\t\t'type' => 'int',\n\t\t\t\t'precision' => '4',\n\t\t\t\t'nullable' => false,\n\t\t\t));\n\t\t}\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.504';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}",
"private function checkFileUpdates() {\n\n if ($this->request->params['controller'] != 'acos' || ($this->request->params['action'] != 'admin_synchronize' && $this->request->params['action'] != 'admin_prune_acos' && $this->request->params['action'] != 'admin_build_acl')) {\n if ($this->AclManager->isControllerHashFileOutOfSync()) {\n $missingAcoNodes = $this->AclManager->getMissingAcos();\n $nodesToPrune = $this->AclManager->getAcosToPrune();\n\n $hasUpdates = false;\n\n if (count($missingAcoNodes) > 0) {\n $hasUpdates = true;\n }\n\n if (count($nodesToPrune) > 0) {\n $hasUpdates = true;\n }\n\n $this->set('nodesToPrune', $nodesToPrune);\n $this->set('missingAcoNodes', $missingAcoNodes);\n\n if ($hasUpdates) {\n $this->render('Acl.Acos/admin_has_updates');\n $this->response->send();\n $this->AclManager->updateControllerHashFile();\n exit();\n } else {\n $this->AclManager->updateControllerHashFile();\n }\n \t\t\n \t\t$this->AclManager->update_controllers_hash_file();\n }\n }\n }",
"public function isOutdated() {}",
"protected function update() {}",
"protected function beforeUpdating()\n {\n }",
"function upgrade_400()\n {\n }",
"function ifi_CIM_checkforupdates()\n{\n//ifi_pmpro_CIM_db_version\nglobal $ifi_pmpro_CIM_db_version;\nif($ifi_pmpro_CIM_db_version < 2.0)\nifi_pmpro_CIM_setDBTables();\n}",
"public function testUpdateMalformedData()\n {\n $lpa = FixturesData::getHwLpa();\n $lpa->setUser(3);\n\n $user = FixturesData::getUser();\n\n $serviceBuilder = new ServiceBuilder();\n $service = $serviceBuilder\n ->withApplicationRepository($this->getApplicationRepository($lpa, $user))\n ->build();\n\n //So we expect an exception and for no document to be updated\n $this->expectException(\\RuntimeException::class);\n $this->expectExceptionMessage('A malformed LPA object');\n\n $service->update($lpa->getId(), []);\n\n $serviceBuilder->verify();\n }",
"public function isUpdateSecurityRelevant() {}",
"public function testUpdateSuperfund()\n {\n }",
"public function testUpdateConflict() {\n\t\tself::$sag->put(\"foo\", self::$temp);\n\t}",
"function validate_on_update() {}",
"public function testUpdateInvalidAccess() {\n\t\t//create an access with a non null access id and watch it fail\n\t\t$access = new Access(null, $this->VALID_ACCESSNAME);\n\t\t$access->update($this->getPDO());\n\t}",
"function resubmitFailures() {\n\tglobal $gStatusTable, $gErrBase;\n\t$cmd = \"update $gStatusTable set status=0, wptid='', wptRetCode='', medianRun=0 where status >= $gErrBase;\";\n\tdoSimpleCommand($cmd);\n}",
"function phpgwapi_upgrade0_9_13_015()\n\t{\n\t\tif(phpversion() >= '4.0.5' && @$GLOBALS['phpgw_setup']->db->Type == 'mysql')\n\t\t{\n\t\t\t$_ver_str = @mysql_get_server_info();\n\t\t\t$_ver_arr = explode(\".\",$_ver_str);\n\t\t\t$_ver = $_ver_arr[1];\n\t\t\tif((int)$_ver < 23)\n\t\t\t{\n\t\t\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.016';\n\t\t\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['phpgw_setup']->oProc->AlterColumn(\n\t\t\t'lang',\n\t\t\t'message_id',\n\t\t\tarray(\n\t\t\t\t'type' => 'varchar',\n\t\t\t\t'precision' => 255,\n\t\t\t\t'nullable' => false,\n\t\t\t\t'default' => ''\n\t\t\t)\n\t\t);\n\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.016';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}",
"protected function afterUpdating()\n {\n }",
"public static function check_for_updates()\n {\n }",
"public function testUpdateFieldsWrongType(): void { }",
"public function update() {\n\t\treturn;\n\t}",
"public function action_update_check()\n\t{\n\t\tUpdate::add('Ohloh Badge', '42aaa113-4285-42ef-a811-3eb4281cee7c', $this->info->version);\n\t}",
"private function update() {\n\t\t\n\t\t// get database handle\n\t\tglobal $dbh;\n\t\t\n\t\t\n\t\treturn false;\n\t}",
"function validateupdate(){\n\t\tglobal $_REQUEST;\t\t\n\t\t\n\t\tif(!empty($this->errors)){\n\t\t\t$result = false;\n\t\t}else{\n\t\t\t$result = true;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}",
"public function refresh_nonces()\n {\n }",
"public function unknown() {\n\t\t$this->location = -1;\n\t\t$this->beer = -1;\n\t\t$this->status = -1;\n\t\t$this->update();\n\t}",
"function virtual_hosting_db_fixintegrity()\n{\n $PHORUM = $GLOBALS[\"PHORUM\"];\n\n $stale = phorum_db_interact(\n DB_RETURN_ROWS,\n \"SELECT hostname,v.vroot\n FROM {$PHORUM[\"virtual_hosts_table\"]} AS v\n LEFT JOIN {$PHORUM[\"forums_table\"]}\n ON v.vroot = forum_id\n WHERE forum_id IS NULL\"\n );\n\n foreach ($stale as $rec) {\n virtual_hosting_db_unlinkhostname($rec[0], $rec[1]);\n }\n}",
"public function testUpdateInvalidTag() {\n\t\t// create a Tag with a non null tag id and watch it fail\n\t\t$tag = new Tag(null, $this->VALID_TAGCONTENT);\n\t\t$tag->update($this->getPDO());\n\t}",
"protected function _postUpdate()\n\t{\n\t}",
"protected function updateInDB(){\n $result = $this->getChannelsWithMatchingUniqueParams();\n foreach ($result as $row){\n $otherchannel = new channel($row);\n if ($row[\"x_timestamp_added\"] == $this->metaData->getTimestamp() || $row[\"x_last_confirmed\"] == $this->metaData->getTimestamp()){\n $this->config->addToDebugLog(\n \"ERROR: Trying to update channel \".$this->params[\"name\"].\" that was added or updated earlier! Double channel entry!\\n\".\n \"To update: \" . $this->getChannelString() .\"\\n\".\n \"Existing : \" . $otherchannel->getChannelString() .\"\\n\".\n \"---\\n\"\n );\n if ( $this->metaData !== null)\n $this->metaData->increaseIgnoredChannelCount();\n }\n else{\n $changes = array();\n $update_data = array();\n $importance = 0;\n foreach ($this->params as $key => $value){\n if ($value != $row[$key] && substr($key,0,2) !== \"x_\" ){\n if ($key != \"apid\" && $key != \"vpid\" && $key != \"caid\")\n $importance = 1;\n $changes[] = \"$key: '\".$row[$key]. \"' to '\". $value.\"'\";\n $update_data[] = \"$key = \".$this->db->quote( $value);\n }\n }\n $update_data[] = \"x_last_changed = \" . $this->metaData->getTimestamp();\n $update_data[] = \"x_last_confirmed = \" . $this->metaData->getTimestamp();\n\n if (count ($changes) != 0){\n $this->config->addToDebugLog( \"Changed: \".$this->getUniqueID() . \"-\" . $this->params[\"name\"] . \": \" . implode(\", \",$changes).\"\\n\");\n $query = $this->db->exec2(\n \"UPDATE channels SET \".implode(\", \" , $update_data),\n $this->getWhereArray( \"source, nid, tid, sid\" )\n );\n $query = $this->db->insert( \"channel_update_log\",\n array(\n \"combined_id\" => $this->getUniqueID(),\n \"name\" => $this->params[\"name\"],\n \"update_description\" => implode(\"\\n\",$changes),\n \"timestamp\" => $this->metaData->getTimestamp(),\n \"importance\" => $importance\n )\n );\n if ( $this->metaData !== null)\n $this->metaData->increaseChangedChannelCount();\n }\n else{\n //$this->config->addToDebugLog( \"channel unchanged, but update x_last_confirmed\\n\");\n //channel unchanged, but update x_last_confirmed\n $query = $this->db->exec2(\n \"UPDATE channels SET x_last_confirmed = \" . $this->metaData->getTimestamp(),\n $this->getWhereArray( \"source, nid, tid, sid\" )\n );\n }\n }\n }\n }",
"public function testUpdateInvalidReading() : void {\n // create a Reading with a non null reading id and watch it fail\n $reading = new Reading(null, $this->sensor->getSensorId(), $this->VALID_SENSORVALUE, $this->VALID_SENSORDATETIME);\n $reading->update($this->getPDO());\n }",
"public function updateInternals(): int\n {\n $this->logManager->logMessage(lang('Revision.updateInternals'));\n\n try {\n return $this->upgrader->upgrade($this->config->rootPath);\n } catch (RevisionException $e) {\n $this->logManager->logMessage($e->getMessage(), 'error');\n\n return EXIT_ERROR;\n }\n }",
"function upgrade_590()\n {\n }",
"function phpgwapi_upgrade0_9_99_013()\n\t{\n\t\t// it was caused be 0 acl_rights values in groups (inserted by setup::add_acl which is fixed too)\n\t\t$GLOBALS['phpgw_setup']->oProc->query(\"DELETE FROM phpgw_acl WHERE acl_appname='preferences' AND acl_location='changepassword' AND acl_rights=0\");\n\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.014';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}",
"public function commitUpdate();",
"public function fixedUpdate($data)\n {\n if (!$this->settings) {\n $this->settings = $this->initDefaultSettings();\n }\n $lastCheckedBlock = $this->settings['lastCheckedBlock'];\n $filters = $this->settings['filters'];\n if ($filters) {\n // Luckily we had filter active. It should have all new transactions\n $pending = $filters['pending'];\n if ($pending) {\n $this->checkPending($pending);\n }\n } else {\n // No filters found. Need to install one and manually check everything from last update\n // Let's hope we will end here only once after first start or long downtime of system\n // Still, better to send notification that something can be wrong here\n }\n $this->checkFilter();\n return 0;\n }",
"function updateChecks($post,$deviceType,$appVersion,$OSVersion,$browserVersion){\n\n $con=connectToDB(); //connect to the DB\n mysql_query('SET NAMES UTF8');\t\t\n $Checks=$post['Checks'];\n\t$Description=$post['Description'];\n\t$ModifyDateTime=date('Y-m-d H:i:s');\n\t$ChecksID=$post['ChecksID'];\n\t$sql2=\"UPDATE `SCP_Checks` SET `Checks` = '\".$Checks.\"',`Description` = '\".$Description.\"',`ModifyDateTime` = '\".$ModifyDateTime.\"' WHERE `ChecksID` = '\".$ChecksID.\"'\";\t \n $result = mysql_query($sql2) or die(mysql_error());\n\t\n\t\n //CHECK FOR ERROR\n if (!$result) die('Invalid query: ' . mysql_error());\n\t\t\n if($result) {\n $data['responseData'] = '';\n $data['message'] = \"Updated successfully\";\n $data['responseCode'] = \"200\";\n $data['status'] = \"1\";\n } else {\n $data['responseData'] = '';\n $data['message'] = \"Error in Updation\";\n $data['responseCode'] = \"200\";\n $data['status'] = \"0\";\n }\n print json_encode($data);\n mysql_close($con); //close the connection\n}",
"function phpgwapi_upgrade0_9_14_508()\n\t{\n\t\t// (0.9.14.508 < currentversion < 0.9.99) and running only baseline-deltas\n\t\tif ($GLOBALS['phpgw_setup']->oProc->m_bDeltaOnly)\n\t\t{\n\t\t\t$currentver = explode('.',$GLOBALS['phpgw_setup']->process->currentversion);\n\t\t\tif ($currentver[0] == 0 && $currentver[1] == 9 && \n\t\t\t\t($currentver[2] == 14 && $currentver[3] > 508 || \n\t\t\t\t($currentver[2] > 14 && $currentver[2] < 99)))\n\t\t\t{\n\t\t\t\t// this is a phpGW update from a version after the fork\n\t\t\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.509';\n\t\t\t\t//echo \"currentver=\".print_r($currentver,true).\" ==> following the phpGW update path ==> \".$GLOBALS['setup_info']['phpgwapi']['currentver'].\"<br>\\n\";\n\t\t\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t\t\t}\n\t\t}\t\t\t\t\t\n\t\t// update to 0.9.10pre3 droped the columns account_permissions and account_groups\n\t\t// unfortunally they are still in the tables_current of 0.9.14.508\n\t\t// so it depends on having a new or an updated install, if one have them or not\n\t\t// we now check if they are there and drop them if thats the case\n\n\t\t$GLOBALS['phpgw_setup']->oProc->m_oTranslator->_GetColumns($GLOBALS['phpgw_setup']->oProc,'phpgw_accounts',$columns);\n\t\t$columns = explode(',',$columns);\n\t\tif (in_array('account_permissions',$columns))\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_accounts',array(\n\t\t\t\t'fd' => array(\n\t\t\t\t\t'account_id' => array('type' => 'auto','nullable' => False),\n\t\t\t\t\t'account_lid' => array('type' => 'varchar','precision' => '25','nullable' => False),\n\t\t\t\t\t'account_pwd' => array('type' => 'varchar','precision' => '32','nullable' => False),\n\t\t\t\t\t'account_firstname' => array('type' => 'varchar','precision' => '50'),\n\t\t\t\t\t'account_lastname' => array('type' => 'varchar','precision' => '50'),\n\t\t\t\t\t'account_groups' => array('type' => 'varchar','precision' => '30'),\n\t\t\t\t\t'account_lastlogin' => array('type' => 'int','precision' => '4'),\n\t\t\t\t\t'account_lastloginfrom' => array('type' => 'varchar','precision' => '255'),\n\t\t\t\t\t'account_lastpwd_change' => array('type' => 'int','precision' => '4'),\n\t\t\t\t\t'account_status' => array('type' => 'char','precision' => '1','nullable' => False,'default' => 'A'),\n\t\t\t\t\t'account_expires' => array('type' => 'int','precision' => '4'),\n\t\t\t\t\t'account_type' => array('type' => 'char','precision' => '1','nullable' => True)\n\t\t\t\t),\n\t\t\t\t'pk' => array('account_id'),\n\t\t\t\t'fk' => array(),\n\t\t\t\t'ix' => array(),\n\t\t\t\t'uc' => array('account_lid')\n\t\t\t),'account_permissions');\n\t\t}\n\t\tif (in_array('account_groups',$columns))\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_accounts',array(\n\t\t\t\t'fd' => array(\n\t\t\t\t\t'account_id' => array('type' => 'auto','nullable' => False),\n\t\t\t\t\t'account_lid' => array('type' => 'varchar','precision' => '25','nullable' => False),\n\t\t\t\t\t'account_pwd' => array('type' => 'varchar','precision' => '32','nullable' => False),\n\t\t\t\t\t'account_firstname' => array('type' => 'varchar','precision' => '50'),\n\t\t\t\t\t'account_lastname' => array('type' => 'varchar','precision' => '50'),\n\t\t\t\t\t'account_lastlogin' => array('type' => 'int','precision' => '4'),\n\t\t\t\t\t'account_lastloginfrom' => array('type' => 'varchar','precision' => '255'),\n\t\t\t\t\t'account_lastpwd_change' => array('type' => 'int','precision' => '4'),\n\t\t\t\t\t'account_status' => array('type' => 'char','precision' => '1','nullable' => False,'default' => 'A'),\n\t\t\t\t\t'account_expires' => array('type' => 'int','precision' => '4'),\n\t\t\t\t\t'account_type' => array('type' => 'char','precision' => '1','nullable' => True)\n\t\t\t\t),\n\t\t\t\t'pk' => array('account_id'),\n\t\t\t\t'fk' => array(),\n\t\t\t\t'ix' => array(),\n\t\t\t\t'uc' => array('account_lid')\n\t\t\t),'account_groups');\n\t\t}\n\n\t\t// we add the person_id from the .16RC1, if its not already there\n\t\tif (!in_array('person_id',$columns))\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_accounts','person_id',array(\n\t\t\t\t'type' => 'int',\n\t\t\t\t'precision' => '4',\n\t\t\t\t'nullable' => True\n\t\t\t));\n\t\t}\n\t\t$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_accounts','account_primary_group',array(\n\t\t\t'type' => 'int',\n\t\t\t'precision' => '4',\n\t\t\t'nullable' => False,\n\t\t\t'default' => '0'\n\t\t));\n\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.002';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}",
"public function update()\n {\n return false;\n }",
"public function checkIsValidForUpdate() {\n $errors = array();\n\n try{\n $this->checkIsValidForCreate();\n }catch(ValidationException $ex) {\n foreach ($ex->getErrors() as $key=>$error) {\n $errors[$key] = $error;\n }\n }\n if (sizeof($errors) > 0) {\n throw new ValidationException($errors, \"Notification is not valid\");\n }\n }",
"static function run_database_update()\n {\n // get the code version\n $prot = (isset($_SERVER['HTTPS'])) ? 'https://' : 'http://';\n $url = $prot.$_SERVER['HTTP_HOST'].'/api/config/init.sql';\n $codeVersion = config::get_init_sql_version($url);\n\n if (config::get_db_version() < '0.2.0') {\n return 'ERROR: Version '.$codeVersion.\n ' is not backwards compatible with version '.\n config::get_db_version().'.';\n }\n \n // loop through until we are up to date\n while (config::get_db_version() < $codeVersion) {\n // build the static function name\n $function = 'update::update_'.config::get_db_version();\n $function = str_replace('.', '_', $function);\n if ($error = call_user_func($function)) {\n return $error;\n }\n }\n \n // no errors\n return null;\n }",
"public function testMalformedData(){\n $array_test = ['email' => '[email protected]', 'pubid' => 4];\n\n $api = new ApiConnection();\n $dataCheck = [\n 'status' => 402,\n 'message' => \"data is malformed. email only content text and number.\",\n 'data' => []\n ];\n $this->assertEquals($dataCheck, $api->updateAccount($array_test));\n }",
"protected function updateBrokenLinks() {}",
"public function db_update() {}",
"public function updateSyncStamp()\n {\n throw new Horde_ActiveSync_Exception('Not supported in this state driver.');\n }",
"public function updateBooking($param) { \n if (!$this->aaa->has_right('openruth', 500))\n $res->bookingError->_value = 'authentication_error';\n else {\n $agencyId = self::strip_agency($param->agencyId->_value);\n $targets = $this->config->get_value('ruth', 'ztargets');\n if ($tgt = $targets[$agencyId]) {\n $book = &$booking->BookingUpdate->_value;\n $book->LibraryNo->_value = $agencyId;\n $book->DisposalID->_value = $param->bookingId->_value;\n $book->BookingNote->_value = $param->bookingNote->_value;\n $book->StartDate->_value = self::to_zruth_date($param->bookingStartDate->_value);\n $book->EndDate->_value = self::to_zruth_date($param->bookingEndDate->_value);\n $book->NumberOrdered->_value = $param->bookingTotalCount->_value;\n $book->ServiceCounter->_value = $param->agencyCounter->_value;\n $xml = '<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?'.'>' . utf8_decode($this->objconvert->obj2xml($booking));\n $z = new z3950();\n $z->set_target($tgt['host']);\n $z->set_database($tgt['database'].'-ophelia');\n $z->set_authentication($tgt['authentication']);\n if ($tgt['proxy']) {\n $z->set_proxy($tgt['proxy']);\n }\n $xml_ret = $z->z3950_xml_update($xml, $tgt['timeout']);\n//echo 'error: ' . $z->get_errno();\n//print_r($xml);\n//print_r($xml_ret);\n if ($z->get_errno() == 0 && $xml_ret['xmlUpdateDoc']) {\n $dom = new DomDocument();\n $dom->preserveWhiteSpace = false;\n if ($dom->loadXML($xml_ret['xmlUpdateDoc'])) {\n if ($err = $dom->getElementsByTagName('ErrorResponse')->item(0)) {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') errno: ' . $err->getAttribute('Err'));\n if (!($res->updateOrderError->_value = $this->errs[$err->getAttribute('Err')])) \n $res->updateOrderError->_value = 'unspecified error (' . $err->getAttribute('Err') . '), order not possible';\n } elseif ($err = $dom->getElementsByTagName('Error')->item(0)->nodeValue) {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') errno: ' . $err);\n if (!($res->bookingError->_value = $this->errs[$err])) \n $res->bookingError->_value = 'unspecified error (' . $err . '), order not possible';\n } else {\n $res->bookingOk->_value->bookingId->_value = $param->bookingId->_value;\n if ($sd = self::from_zruth_date($dom->getElementsByTagName('StartDate')->item(0)->nodeValue))\n $res->bookingOk->_value->bookingStartDate->_value = $sd;\n elseif ($sd = $param->bookingStartDate->_value)\n $res->bookingOk->_value->bookingStartDate->_value = $sd;\n if ($ed = self::from_zruth_date($dom->getElementsByTagName('EndDate')->item(0)->nodeValue))\n $res->bookingOk->_value->bookingEndDate->_value = $ed;\n elseif ($ed = $param->bookingEndDate->_value)\n $res->bookingOk->_value->bookingEndDate->_value = $ed;\n }\n } else {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') loadXML error of: ' . $xml_ret['xmlUpdateDoc']);\n $res->bookingError->_value = 'system error';\n }\n } else {\n self::log_z_error(__FUNCTION__, __LINE__, $agencyId, $z->get_errno(), $z->get_error_string());\n $res->bookingError->_value = 'system error';\n }\n } else\n $res->bookingError->_value = 'unknown agencyId';\n }\n\n $ret->updateBookingResponse->_value = $res;\n //var_dump($param); print_r($res); die();\n return $ret;\n }",
"public function validateUpdate()\n\t{\n\t\tBlocks::log('Validating MD5 for '.$this->_downloadFilePath, \\CLogger::LEVEL_INFO);\n\t\t$sourceMD5 = IOHelper::getFileName($this->_downloadFilePath, false);\n\n\t\t$localMD5 = IOHelper::getFileMD5($this->_downloadFilePath);\n\n\t\tif ($localMD5 === $sourceMD5)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"function warnings() {\n\t\t$Warnings = array();\n\t\tif (mysqli_warning_count($this->LinkID)) {\n\t\t\t$e = mysqli_get_warnings($this->LinkID);\n\t\t\tdo {\n\t\t\t\tif ($e->errno == 1592) {\n\t\t\t\t\t// 1592: Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$Warnings[] = 'Code ' . $e->errno . ': ' . display_str($e->message);\n\t\t\t} while ($e->next());\n\t\t}\n\t\t$this->Queries[count($this->Queries) - 1][2] = $Warnings;\n\t}",
"function broken() { return TRUE; }",
"public function updateData()\n {\n try {\n// echo \"<pre>\";\n// print_r($this->where);\n// print_r($this->insertUpdateArray);\n// exit;\n DB::table($this->dbTable)\n ->where($this->where)\n ->update($this->insertUpdateArray);\n } catch (Exception $ex) {\n throw new Exception($ex->getMessage(), 10024, $ex);\n }\n }",
"function process_one()\r\n{\r\n global $debug;\r\n $update_id = 0;\r\n echo \"-\";\r\n \r\n if (file_exists(\"last_update_id\")) \r\n $update_id = (int)file_get_contents(\"last_update_id\");\r\n \r\n $updates = get_updates($update_id);\r\n\r\n // jika debug=0 atau debug=false, pesan ini tidak akan dimunculkan\r\n if ((!empty($updates)) and ($debug) ) {\r\n echo \"\\r\\n===== isi diterima \\r\\n\";\r\n print_r($updates);\r\n }\r\n \r\n foreach ($updates as $message)\r\n {\r\n echo '+';\r\n $update_id = process_message($message);\r\n\t}\r\n \r\n\t// @TODO nanti ganti agar update_id disimpan ke database\r\n // update file id, biar pesan yang diterima tidak berulang\r\n file_put_contents(\"last_update_id\", $update_id + 1);\r\n}",
"function esiUpdateApicorps() {\n $table = db_asocquery(\"DESCRIBE `apicorps`;\");\n $found = FALSE;\n foreach ($table as $column) {\n if ($column['Field']=='tokenID' && $column['Type']=='int(11)') {\n $found = TRUE;\n }\n } \n if ($found === FALSE) {\n return db_uquery(\"ALTER TABLE `apicorps` ADD COLUMN `tokenID` int(11) NULL DEFAULT NULL;\") &&\n db_uquery(\"ALTER TABLE `apicorps` CHANGE COLUMN `keyID` `keyID` VARCHAR(255) NULL DEFAULT NULL;\");\n }\n return TRUE;\n}",
"function fix_db_on_update()\n\t{\n\t\t$db = JFactory::getDBO();\n\t\t$config = JFactory::getConfig();\n\t\tif(JVERSION>=3.0)\n\t\t$dbprefix=$config->get( 'dbprefix' );\n\t\telse\n\t\t$dbprefix=$config->getValue( 'config.dbprefix' );\n\n\t\t$xml=JFactory::getXML(JPATH_ADMINISTRATOR.'/components/com_broadcast/broadcast.xml');\n\t\t$version=(string)$xml->version;\n\t\t$this->version=(float)$version;\n\n\n\t\tif((float)$this->version<1.5)\n\t\t{\n\t\t\tif(file_exists(JPATH_SITE.'/components/com_broadcast/helper.php'))\n\t\t\t{\n\t\t\t\trequire_once JPATH_SITE.'/components/com_broadcast/helper.php';\n\t\t\t\t$combroadcastHelper=new combroadcastHelper();\n\t\t\t\t$params = array();\n\t\t\t\t$params['Facebook'] = 1;\n\n\t\t\t\t$qry = \"SELECT user_id FROM #__broadcast_config\";\n\t\t\t\t$db->setQuery($qry);\n\t\t\t\t$userids = $db->loadObjectList();\n\n\t\t\t\tif(!empty($userids))\n\t\t\t\t{\n\t\t\t\t\tforeach($userids AS $userid)\n\t\t\t\t\t{\n\t\t\t\t\t\t$combroadcastHelper->saveParams($userid->user_id,$params);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t//since version 1.5\n\t\t//check if column - paypal_email exists\n\t\t$query=\"SHOW COLUMNS FROM #__broadcast_config WHERE `Field` = 'params'\";\n\t\t$db->setQuery($query);\n\t\t$check=$db->loadResult();\n\t\tif(!$check)\n\t\t{\n\t\t\t$query=\"ALTER TABLE `#__broadcast_config` ADD `params` text NOT NULL AFTER `broadcast_rss`\";\n\t\t\t$db->setQuery($query);\n\t\t\tif ( !$db->execute() ) {\n\t\t\t\tJError::raiseError( 500, $db->stderr() );\n\t\t\t}\n\t\t}\n\n\t}",
"function yy_r101(){\n $this->_retvalue = new SQL\\Update($this->yystack[$this->yyidx + -5]->minor, $this->yystack[$this->yyidx + -3]->minor);\n if ($this->yystack[$this->yyidx + -4]->minor) $this->_retvalue->joins($this->yystack[$this->yyidx + -4]->minor);\n if ($this->yystack[$this->yyidx + -2]->minor) $this->_retvalue->where($this->yystack[$this->yyidx + -2]->minor);\n if ($this->yystack[$this->yyidx + -1]->minor) $this->_retvalue->orderBy($this->yystack[$this->yyidx + -1]->minor);\n if ($this->yystack[$this->yyidx + 0]->minor) $this->_retvalue->limit($this->yystack[$this->yyidx + 0]->minor[0], $this->yystack[$this->yyidx + 0]->minor[1]);\n }",
"function permissions_upgrade($oldversion)\n{\n // Update successful\n return true;\n}",
"public static function validateUpdateRequest() {\n $errors = array();\n $data = array();\n self::checkID($errors, $data);\n self::checkName($errors, $data);\n if (count($errors) > 0 && count($data) > 0) {\n redirect(url(['_page' => 'home']));\n } else if (count($errors) == 0){\n return $data;\n }\n return null;\n }",
"function upgrade_290()\n {\n }",
"function phpgwapi_upgrade0_9_14_002()\n\t{\n\t\t// as 0.9.15.xxx are already used in HEAD\n\t\t\n\t\t// this is the 0.9.15.003 update, needed for the new filemanager and vfs-classes in the api\n\t\t$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_vfs','content', array ('type' => 'text', 'nullable' => True));\n\n\t\t// this is the 0.9.15.004 update, needed for the polish translations\n\t\t$GLOBALS['phpgw_setup']->oProc->query(\"UPDATE languages set available='Yes' WHERE lang_id='pl'\");\n\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.500';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}",
"public function testUpdateExternalShipment()\n {\n }",
"function validate_app_version($link, $data, $app_version_id) // Colorize: green\n { // Colorize: green\n // Ignore PhpAlignmentVerifier [BEGIN] // Colorize: green\n $sql = \"SELECT\" // Colorize: green\n . \" completed\" // Colorize: green\n . \" FROM \" . DB_TABLE_APP_VERSIONS // Colorize: green\n . \" WHERE id = '\" . $link->real_escape_string($app_version_id) . \"'\"; // Colorize: green\n // Ignore PhpAlignmentVerifier [END] // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n $result = $link->query($sql); // Colorize: green\n die_if_sql_failed($result, $link, $data, $sql); // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n if ($result->num_rows == 1) // Colorize: green\n { // Colorize: green\n $completed = $result->fetch_row()[0]; // Colorize: green\n $result->close(); // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n if ($completed != 0) // Colorize: green\n { // Colorize: green\n $error_details = \"Invalid version state\"; // Colorize: green\n error_log($error_details); // Colorize: green\n // Colorize: green\n db_disconnect($link); // Colorize: green\n // Colorize: green\n $data[\"message\"] = \"Internal error\"; // Colorize: green\n $data[\"details\"] = $error_details; // Colorize: green\n // Colorize: green\n die(json_encode($data)); // Colorize: green\n } // Colorize: green\n } // Colorize: green\n else // Colorize: green\n { // Colorize: green\n $result->close(); // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n $error_details = \"Invalid server state\"; // Colorize: green\n error_log($error_details); // Colorize: green\n // Colorize: green\n db_disconnect($link); // Colorize: green\n // Colorize: green\n $data[\"message\"] = \"Internal error\"; // Colorize: green\n $data[\"details\"] = $error_details; // Colorize: green\n // Colorize: green\n die(json_encode($data)); // Colorize: green\n } // Colorize: green\n }",
"protected function performUpdate() {}",
"public function UpdateAssociateForwarderCode(){\n\t\ttry{\n\t\t\t$wheredata = $this->getData['error_id'];\n\t\t\t$this->getData['master_id'] = Zend_Encript_Encription:: decode($this->getData['token']);\n\t\t\t$this->getData['modify_by'] = $this->Useconfig['user_id'];\n\t\t\t$this->getData['modify_ip'] = commonfunction::loggedinIP();\n\t\t\t$this->getData['modify_date'] = '';\n\t\t\t//echo \"<pre>\"; print_r($this->getData); die;\n\t\t\tunset($this->getData['error_id']);\n\t\t\tforeach($wheredata as $where){\n\t\t\t\t$update = $this->UpdateInToTable(STATUS_LIST,array($this->getData),'error_id=\"'.$where.'\"');\n\t\t\t}\n\t\t\treturn ($update)?true : false;\n\t\t}catch(Exception $e) {\n\t\t\t\t $this->_logger->info('Class-'.__CLASS__.',Function-'.__FUNCTION__.',Line-'.__LINE__.',Error-'.$e->getMessage());\n\t\t}\n\t}",
"function RSS_upgrade($oldversion)\n{\n // Update successful\n return true;\n}",
"protected function check_update() {\n\n\t\t$response = $this->remote_query();\n\n\t\tif ( ! $response ) {\n\t\t\treturn array( 'version' => false );\n\t\t}\n\n\t\tif ( version_compare( $this->api['version'], $response->version, '<' ) ) {\n\t\t\treturn array(\n\t\t\t\t'version' => $response->version,\n\t\t\t\t'package' => $response->package,\n\t\t\t);\n\t\t}\n\n\t\treturn array( 'version' => false );\n\n\t}",
"function before_update() {}",
"function files_upgrade($oldversion)\n{\n /* Upgrade dependent on old version number */\n $dbconn = xarDBGetConn();\n $xartable = xarDBGetTables();\n switch ($oldversion) {\n case '0.6.0':\n xarRegisterMask('SubmitFiles', 'All', 'Files', 'Item', '', 'ACCESS_COMMENT');\n xarRegisterMask('ModerateFiles', 'All', 'Files', 'Item', '', 'ACCESS_MODERATE');\n case '0.6.1':\n xarModSetVar('files','max_upload',3);\n xarModSetVar('files','allow_multiple',true);\n xarModSetVar('files','filetypes','jpg,jpeg,png,gif,pdf,txt,zip,gz');\n case '0.6.2':\n break;\n }\n /* Update successful */\n return true;\n}",
"protected function _updatefields() {}",
"function affecte_db() {\n\t\t$tmp = mysql_affected_rows();\n\t\treturn ($tmp);\n\t}",
"public function test_accepts_dev_updates()\n {\n }",
"function myplugin_update_db_check()\n\t{\n\n\n\t\t// Get the Current DB and check against this verion\n\t\t$currentDBversion = get_option('agreedMarkingDB_version');\n\t\t$thisDBversion = $this->DBversion;\n\n\t\tif($thisDBversion>$currentDBversion)\n\t\t{\n\n\t\t\t$this->createTables();\n\t\t\tupdate_option('agreedMarkingDB_version', $thisDBversion);\n\t\t}\n\t\t//$this->createTables(); // Testing\n\n\t}",
"function check_update( $_, $assoc_args ) {\n\t\tself::run( 'core check-update', $_, $assoc_args );\n\t}",
"function upgrade_372()\n {\n }",
"abstract protected function update ();",
"public function check_sync()\n {\n }",
"function check_upgrade_stuff() {\n\n\t\tglobal $wpdb;\n\n\t\t$db_version = get_option(\"simple_history_db_version\");\n\t\t$table_name = $wpdb->prefix . \"simple_history\";\n\t\t// $db_version = FALSE;\n\t\t\n\t\tif ( false === $db_version ) {\n\n\t\t\t// db fix has never been run\n\t\t\t// user is on version 0.4 or earlier\n\t\t\t// = database is not using utf-8\n\t\t\t// so fix that\n\t\t\t\n\t\t\trequire_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n\t\t\t#echo \"begin upgrading database\";\n\t\t\t\n\t\t\t// We change the varchar size to add one num just to force update of encoding. dbdelta didn't see it otherwise.\n\t\t\t$sql = \"CREATE TABLE \" . $table_name . \" (\n\t\t\t id int(10) NOT NULL AUTO_INCREMENT,\n\t\t\t date datetime NOT NULL,\n\t\t\t action VARCHAR(256) NOT NULL COLLATE utf8_general_ci,\n\t\t\t object_type VARCHAR(256) NOT NULL COLLATE utf8_general_ci,\n\t\t\t object_subtype VARCHAR(256) NOT NULL COLLATE utf8_general_ci,\n\t\t\t user_id int(10) NOT NULL,\n\t\t\t object_id int(10) NOT NULL,\n\t\t\t object_name VARCHAR(256) NOT NULL COLLATE utf8_general_ci,\n\t\t\t action_description longtext,\n\t\t\t PRIMARY KEY (id)\n\t\t\t) CHARACTER SET=utf8;\";\n\n\t\t\t// Upgrade db / fix utf for varchars\n\t\t\tdbDelta($sql);\n\t\t\t\n\t\t\t// Fix UTF-8 for table\n\t\t\t$sql = sprintf('alter table %1$s charset=utf8;', $table_name);\n\t\t\t$wpdb->query($sql);\n\t\t\t\n\t\t\t// Store this upgrade in ourself :)\n\t\t\tsimple_history_add(\"action=\" . 'upgraded it\\'s database' . \"&object_type=plugin&object_name=\" . SIMPLE_HISTORY_NAME);\n\n\t\t\t#echo \"done upgrading database\";\n\t\t\t\n\t\t\tupdate_option(\"simple_history_db_version\", 1);\n\n\t\t} // done pre db ver 1 things\n\n\t\t// DB version is 1, upgrade to 2\n\t\tif ( 1 == intval($db_version) ) {\n\n\t\t\t// Add column for action description in non-translateable free text\n\t\t\t$sql = \"ALTER TABLE {$table_name} ADD COLUMN action_description longtext\";\n\t\t\tmysql_query($sql);\n\n\t\t\tsimple_history_add(\"action=\" . 'upgraded it\\'s database' . \"&object_type=plugin&object_name=\" . SIMPLE_HISTORY_NAME . \"&description=Database version is now version 2\");\n\t\t\tupdate_option(\"simple_history_db_version\", 2);\n\n\t\t}\n\n\t\t// Check that all options we use are set to their defaults, if they miss value\n\t\t// Each option that is missing a value will make a sql cal otherwise = unnecessary\n\t\t$arr_options = array(\n\t\t\tarray(\n\t\t\t\t\"name\" => \"sh_extender_modules\",\n\t\t\t\t\"default_value\" => \"\"\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t\"name\" => \"simple_history_show_as_page\",\n\t\t\t\t\"default_value\" => 1\t\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t\"name\" => \"simple_history_show_on_dashboard\",\n\t\t\t\t\"default_value\" => 0\n\t\t\t)\n\t\t);\n\n\t\tforeach ($arr_options as $one_option) {\n\t\t\t\n\t\t\tif ( false === ($option_value = get_option( $one_option[\"name\"] ) ) ) {\n\n\t\t\t\t// Value is not set in db, so set it to a default\n\t\t\t\tupdate_option( $one_option[\"name\"], $one_option[\"default_value\"] );\n\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"function rss_client_upgrade($oldversion) {\n/// This function does anything necessary to upgrade \n/// older versions to match current functionality \n\n global $CFG;\n\n if ($oldversion < 2003111500) {\n # Do something ...\n }\n\n if ($oldversion < 2004112001) {\n // title and description should be TEXT as we don't have control over their length.\n table_column('block_rss_client','title','title','text',10,'unsigned','');\n table_column('block_rss_client','description','description','text',10,'unsigned','');\n }\n\n return true;\n}",
"public function test_accepts_minor_updates()\n {\n }",
"function update_processed_video($file_array,$status='Successful',$ingore_file_status=false,$failed_status='')\r\n{\r\n global $db;\r\n $file = $file_array['cqueue_name'];\r\n $array = explode('-',$file);\r\n\r\n if(!empty($array[0]))\r\n $file_name = $array[0];\r\n $file_name = $file;\r\n\r\n $file_path = VIDEOS_DIR.'/'.$file_array['cqueue_name'].'.flv';\r\n $file_size = @filesize($file_path);\r\n\r\n if(file_exists($file_path) && $file_size>0 && !$ingore_file_status)\r\n {\r\n $stats = get_file_details($file_name);\r\n\r\n //$duration = $stats['output_duration'];\r\n //if(!$duration)\r\n // $duration = $stats['duration'];\r\n\r\n $duration = parse_duration(LOGS_DIR.'/'.$file_array['cqueue_name'].'.log');\r\n\r\n $db->update(tbl(\"video\"),array(\"status\",\"duration\",\"failed_reason\"),\r\n array($status,$duration,$failed_status),\" file_name='\".$file_name.\"'\");\r\n }else\r\n {\r\n //$duration = $stats['output_duration'];\r\n //if(!$duration)\r\n // $duration = $stats['duration'];\r\n $result = db_select(\"SELECT * FROM \".tbl(\"video\").\" WHERE file_name = '$file_name'\");\r\n if($result)\r\n {\r\n foreach($result as $result1)\r\n {\r\n $str = '/'.$result1['file_directory'].'/';\r\n $duration = parse_duration(LOGS_DIR.$str.$file_array['cqueue_name'].'.log');\r\n }\r\n }\r\n \r\n\r\n $db->update(tbl(\"video\"),array(\"status\",\"duration\",\"failed_reason\"),\r\n array($status,$duration,$failed_status),\" file_name='\".$file_name.\"'\");\r\n\r\n \r\n }\r\n}",
"public function action_update_check()\n\t{\n\t\tUpdate::add( $this->info->name, '9bfb17aa-f8f0-4638-a549-af4f86a9d412', $this->info->version );\n\t}",
"public function action_update_check()\n\t{\n\t\tUpdate::add( 'StatusNet', '8676A858-E4B1-11DD-9968-131C56D89593', $this->info->version );\n\t}",
"function update_r1110() {\n\t$r = q(\"ALTER TABLE `app` ADD `app_addr` CHAR( 255 ) NOT NULL DEFAULT '',\nADD `app_price` CHAR( 255 ) NOT NULL DEFAULT '',\nADD `app_page` CHAR( 255 ) NOT NULL DEFAULT '',\nADD INDEX ( `app_price` )\");\n\n\treturn UPDATE_SUCCESS;\n\n}",
"protected function updated()\n {\n $this->response = $this->response->withStatus(303);\n $this->jsonBody($this->payload->getOutput());\n }",
"public function testUpdateInvalidScheduleItem() {\n // create a ScheduleItem, try to update it without actually inserting it and watch it fail\n $scheduleItem = new ScheduleItem(null,$this->VALID_SCHEDULE_ITEM_DESCRIPTION, $this->VALID_SCHEDULE_ITEM_NAME,$this->VALID_SCHEDULE_START_TIME, $this->VALID_SCHEDULE_END_TIME, $this->VALID_USER_ID);\n $scheduleItem->update($this->getPDO());\n }",
"public function testQuarantineUpdateAll()\n {\n\n }",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}"
] | [
"0.6597972",
"0.6476475",
"0.64239156",
"0.62423855",
"0.62000924",
"0.6118032",
"0.6079624",
"0.6037565",
"0.59906965",
"0.59906965",
"0.5857823",
"0.5825634",
"0.58073604",
"0.5785914",
"0.5776283",
"0.576722",
"0.5733534",
"0.56705976",
"0.56434923",
"0.56396025",
"0.5624586",
"0.5617108",
"0.5591248",
"0.55788445",
"0.5570857",
"0.5567662",
"0.55515945",
"0.5549059",
"0.55219865",
"0.5519291",
"0.551886",
"0.55175674",
"0.55174536",
"0.55158997",
"0.5490204",
"0.54753894",
"0.5457518",
"0.5439346",
"0.54086626",
"0.53950036",
"0.5384564",
"0.53805053",
"0.53650784",
"0.53627455",
"0.5354827",
"0.53537136",
"0.53438395",
"0.5340941",
"0.5327848",
"0.5326258",
"0.53254896",
"0.5303573",
"0.53007597",
"0.5289794",
"0.52887315",
"0.5288394",
"0.5284244",
"0.52809554",
"0.5273349",
"0.5256762",
"0.52435017",
"0.5240584",
"0.5236892",
"0.52363425",
"0.523446",
"0.52337074",
"0.5233702",
"0.5227458",
"0.5219209",
"0.5213354",
"0.52069086",
"0.5202215",
"0.5199998",
"0.5198972",
"0.5191681",
"0.518978",
"0.5189344",
"0.51877254",
"0.51870245",
"0.5185509",
"0.51833576",
"0.5177894",
"0.51672393",
"0.51669055",
"0.5159337",
"0.5154579",
"0.51505744",
"0.514526",
"0.51446444",
"0.5143637",
"0.5142307",
"0.51363415",
"0.5134577",
"0.51319784",
"0.51310676",
"0.51291496",
"0.51276565",
"0.51204365",
"0.51204365",
"0.51204365",
"0.51204365"
] | 0.0 | -1 |
/ |========================================================== | check if Corruption is Accepted | public function checkCorruptionAccepted($matchId)
{
$queryString="SELECT COUNT(corruption_match_id) as nb
FROM corruption_match
WHERE match_id=$matchId
AND response=1";
$query = $this->db->query($queryString);
$result=$query->result_array();
if($result[0]["nb"]!=0)
return TRUE;
else
return FALSE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getIsRequestToCorrectCvvOrAvsError();",
"public function getIsAccepted(): bool;",
"public function getAccepted();",
"public function isAccepted()\n {\n return !empty($this->acceptee_id);\n }",
"public function cancellationRequested() : bool;",
"public function has_avs_rejection() {\n\n\t\treturn isset( $this->response->creditCardVerification ) && 'avs' === $this->response->creditCardVerification->gatewayRejectionReason;\n\t}",
"public function rejected()\n {\n $this->setStatus(self::STATUS_REJECTED);\n }",
"public function isRejected() {\n\t\treturn $this->approved == -1;\n\t}",
"public function harSending() {\n try {\n $this->getSending();\n return true;\n } catch( Exception $e ) {\n if( $e->getCode() == 144001 ) {\n return false;\n }\n throw $e;\n }\n }",
"public function tellInvalidCard()\n {\n }",
"public function canBeAccepted()\n {\n return $this->isReadyForIssuing();\n }",
"public function isNotError() : bool\n {\n return in_array($this->getCode(), [self::CANCELLED, self::FAILED]);\n }",
"function check_response()\n {\n\n $sp_recepcion = new seguripagoRecepcionDiferido($this->sp_idSocio, $this->sp_key, $this->sp_modo);\n $data = $sp_recepcion->recibir();\n if(!is_array($data)) {\n switch($data) {\n case '01': echo \"Error al recepcionar datos.\"; break;\n case '02': echo \"Error en número de pedido.\"; break;\n case '03': echo \"Error en validación de hash.\"; break;\n }\n exit();\n }\n\n /**\n * ---------------------- PROCESANDO PAGO APROBADO ---------------------------\n */\n if($data[\"resultado\"] == \"1\") {\n /**\n * Informar al usuario, por correo, informando de la aprobación de su pago,\n * indicar información adicional para que acceda al producto o servicio.\n */\n\n $id_order = ltrim($data['num_pedido'], '0');\n\n $id_order = (int) $id_order;\n\n $order = new WC_Order( $id_order );\n\n // Mark order complete\n //$order->payment_complete();\n // Mark order processing\n $order->update_status( 'processing' );\n }\n\n /**\n * Enviando confirmación de recibo de datos\n */\n $sp_recepcion->confirmar();\n\n }",
"public function isRejected(): bool {\n return $this->_state === self::STATE_REJECTED;\n }",
"public function isCancelled(): bool\n {\n return $this->data['VK_SERVICE'] == '1911';\n }",
"public function isRespond()\n {\n return null !== $this->accepted;\n }",
"public function alt_connection_aborted() {\n $ip = str_replace(\".\", \"\\\\.\", getenv(\"REMOTE_ADDR\"));\n $port = getenv(\"REMOTE_PORT\");\n \n return (preg_match(\"/^tcp +[0-9]+ +[0-9]+ +[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}:[0-9]+ +$ip:$port +.*?$/m\", `netstat -n --tcp`))?false:true;\n }",
"private function isRejectedInFlow($status){\r\n return $status == 3;\r\n }",
"public function reject()\n {\n return $this->setStatus(self::STATUS_REJECTED);\n }",
"public function isOk()\n {\n $codes = [\n static::STATUS_OK,\n static::STATUS_CREATED,\n static::STATUS_ACCEPTED,\n static::STATUS_NON_AUTHORITATIVE_INFORMATION,\n static::STATUS_NO_CONTENT\n ];\n\n return in_array($this->code, $codes);\n }",
"public function isOperational();",
"public function isBlocked()\n {\n if ($this->status == 2) {\n return true;\n } else {\n return false;\n }\n }",
"function isAborted() {\n return $this->aborted;\n }",
"static public function IsRequestTimeoutReached() {\n return (time() - $_SERVER[\"REQUEST_TIME\"]) >= self::GetExpectedConnectionTimeout();\n }",
"public function getRejected();",
"public function isFailed()\r\n {\r\n return $this->status < 0;\r\n }",
"public function isFinishSend(): bool;",
"public function isCanceled(): bool\n {\n return $this->status == 'canceled';\n }",
"public function isOk();",
"function rejectServRequest(){\n $serv_ID=$this->uri->segment(3);\n echo $this->router->fetch_method();\n if ($this->deliveryAndPickupModel->rejectRequest($serv_ID)) {\n echo \"<script>alert('Successfully rejected');window.location.href='\".site_url('page/rider').\"';</script>\";\n }\n else\n {\n echo \"<script>alert('Something when wrong');window.location.href='\".site_url('page/rider').\"';</script>\";\n }\n\n\t}",
"public function isInTimeout();",
"function check_failures($parameters) \n\t{ \n\t\tif($this->has_type($parameters, 'cancel_principal')\n\t\t || $this->has_type($parameters, 'card_cancel_principal')\n\t\t)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}",
"public function getCanceled(): int;",
"public function isOk()\n {\n return $this->status == 'success' || $this->status == 'incomplete';\n }",
"public function getIsOk()\n {\n return substr($this->_status, 0, 1) == '2';\n }",
"public function has_cvv_rejection() {\n\n\t\treturn isset( $this->response->creditCardVerification ) && 'cvv' === $this->response->creditCardVerification->gatewayRejectionReason;\n\t}",
"public function check_cointopay_response() {\n\t\t\tglobal $woocommerce;\n\t\t\t$woocommerce->cart->empty_cart();\n\t\t\t$orderid = ( !empty(intval($_REQUEST['CustomerReferenceNr'])) ) ? intval($_REQUEST['CustomerReferenceNr']) : 0;\n\t\t\t$ordstatus = ( !empty(sanitize_text_field($_REQUEST['status'])) ) ? sanitize_text_field($_REQUEST['status']) : '';\n\t\t\t$ordtransactionid = ( !empty(sanitize_text_field($_REQUEST['TransactionID'])) ) ? sanitize_text_field($_REQUEST['TransactionID']) : '';\n\t\t\t$ordconfirmcode = ( !empty(sanitize_text_field($_REQUEST['ConfirmCode'])) ) ? sanitize_text_field($_REQUEST['ConfirmCode']) : '';\n\t\t\t$notenough = ( isset($_REQUEST['notenough']) ) ? intval($_REQUEST['notenough']) : '';\n\n\t\t\t$order = new WC_Order($orderid);\n\t\t\t$data = array(\n\t\t\t\t'mid' => $this->merchantid,\n\t\t\t\t'TransactionID' => $ordtransactionid,\n\t\t\t\t'ConfirmCode' => $ordconfirmcode,\n\t\t\t);\n\t\t\t$transactionData = $this->validate_order($data);\n\t\t\tif(200 !== $transactionData['status_code']){\n\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">'.$transactionData['message'] .'</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\t get_footer();\n\t\t\t\t\texit;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif($transactionData['data']['Security'] != $ordconfirmcode){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! ConfirmCode doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['CustomerReferenceNr'] != $orderid){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! CustomerReferenceNr doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['TransactionID'] != $ordtransactionid){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! TransactionID doesn\\'t match</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telseif($transactionData['data']['Status'] != $ordstatus){\n\t\t\t\t\tget_header();\n\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">Data mismatch! status doesn\\'t match. Your order status is '. $transactionData['data']['Status'].'</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br></div></div></div>';\n\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (( 'paid' === $ordstatus ) && ( 0 === $notenough )) {\n\t\t\t\t\t// Do your magic here, and return 200 OK to Cointopay.\n\t\t\t\t\tif ('processing' === $order->status) {\n\t\t\t\t\t\t$order->update_status('processing', sprintf(__('IPN: Payment completed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$order->payment_complete();\n\t\t\t\t\t\t$order->update_status('processing', sprintf(__('IPN: Payment completed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$order->save();\n\t\t\t\t\t\n\t\t\t\t\t$order->add_order_note( __( 'IPN: Update status event for Cointopay to status COMPLETED:', 'woocommerce' ) . ' ' . $orderid);\n\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#0fad00\">Success!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/check.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been received and confirmed successfully.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #0fad00;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t} elseif ('failed' === $ordstatus && 1 === $notenough) {\n\t\t\t\t\t$order->update_status('on-hold', sprintf(__('IPN: Payment failed notification from Cointopay because notenough', 'woocommerce')));\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been failed.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color: #ff0000;border: none;color: white; padding: 15px 32px; text-align: center;text-decoration: none;display: inline-block; font-size: 16px;\" >Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t} else {\n\t\t\t\t\t$order->update_status('failed', sprintf(__('IPN: Payment failed notification from Cointopay', 'woocommerce')));\n\t\t\t\t\tget_header();\n\t\t\t\t\techo '<div class=\"container\" style=\"text-align: center;\"><div><div><br><br><h2 style=\"color:#ff0000\">Failure!</h2><img style=\"margin:auto;\" src=\"' . esc_url(plugins_url('images/fail.png', __FILE__)) . '\"><p style=\"font-size:20px;color:#5C5C5C;\">The payment has been failed.</p><a href=\"' . esc_url(site_url()) . '\" style=\"background-color:#ff0000;border:none;color: white;padding:15px 32px;text-align: center;text-decoration:none;display:inline-block;font-size:16px;\">Back</a><br><br><br><br></div></div></div>';\n\t\t\t\t\tget_footer();\n\t\t\t\t\texit;\n\t\t\t\t}//end if\n\t\t\t\n\n\t\t}",
"public function canBeDeclined()\n {\n return $this->isAwaitingFee();\n }",
"public function isPending(): bool;",
"public function hasFailed();",
"public function check_response() {\n\n\t\t// To test in live mode ($_post)\n\t\t$post = ( file_get_contents( 'php://input' ) );\n\n\t\tif ( ! empty( $post ) ) {\n\t\t\tdo_action( 'valid-oyst-one-click-request', $post );\n\t\t\texit;\n\t\t}\n\t\tWC_Oyst_One_Click::log( 'Retour One Click vide', 'error' );\n\t\twp_die( 'Erreur de requête One Click', '1-Click', array( 'response' => 500 ) );\n\n\t}",
"public function recoverFromCorruption()\n {\n }",
"public function checkPaymentCancellation()\n {\n $response = $this->client->request($this->methods['post'], 'pay' , [\n 'json' => [\n 'AGR_TRANS_ID' => $this->agr_trans_id,\n 'VENDOR_TRANS_ID' => $this->vendor_trans_id,\n 'SIGN_TIME' => $this->generateSignTime(),\n 'SIGN_STRING' => md5($this->SECRET_KEY. $this->agr_trans_id. $this->vendor_trans_id. $this->sign_time)\n ]\n ]);\n\n return json_decode($response->getBody());\n }",
"function check_ipn_response() {\n\t\t@ob_clean();\n \t\tif ( ! empty( $_POST ) && $responce = $this->check_ipn_request_is_valid() ) {\n\n\t \t\theader( 'HTTP/1.1 200 OK' );\n\t \tdo_action( \"valid-payu-standard-ipn-request\", $_POST );\n\n\t\t\tif ($responce) {\n\t\t\t\techo $responce;\n\t\t\t\t@ob_flush();\n\t\t\t}\n\n\t\t} else {\n\n\t\t\twp_die( \"PayU IPN Request Failure\" );\n\n \t\t}\n\n\t}",
"public function isStillPending()\n {\n //\n return $this->result == self::RESULT_STILL_PENDING;\n }",
"abstract protected function checkExistingResponse();",
"function checkPendingInvitation(){\n $checkarray=array(\n \"medical_group_id\"=>$this->medical_group_id,\n \"active\"=>$this->active,\n \"type\"=>$this->type\n );\n if($this->user_id!=null){\n $checkarray[\"user_id\"]=$this->user_id;\n }\n else{\n $checkarray[\"user_id\"]=NULL;\n $checkarray[\"email\"]=$this->email;\n }\n if($this->getCount($checkarray)==true){\n return false;\n }\n return true;\n }",
"function awaiting_trigger_check() {\n\t\tif(intval(get_query_var('lepress-teacher-awaiting')) == 1) {\n\t\t\t//WP default header is 404, have to override it\n\t\t\theader(\"HTTP/1.0 200 OK\");\n\t\t\tif(isSet($_GET['w'])) {\n\t\t\t\techo $this->getAwaitingBubble($_GET['w']);\n\t\t\t}\n\t\t\texit;\n\t\t}\n \t}",
"function awaiting_trigger_check() {\n\t\tif(intval(get_query_var('lepress-student-awaiting')) == 1) {\n\t\t\t//WP default header is 404, have to override it\n\t\t\theader(\"HTTP/1.0 200 OK\");\n\t\t\tif(isSet($_GET['w'])) {\n\t\t\t\techo $this->getAwaitingBubble($_GET['w']);\n\t\t\t}\n\t\t\texit;\n\t\t}\n \t}",
"public function isRedelivered();",
"public function getHasBeenRejectedBefore(): bool;",
"private function checkFailure() : void\n {\n $failure = (int) $this->session->get('failure', 0);\n $time = (int) $this->session->get('failure_time', time());\n if ($failure >= static::FAILURE) {\n if ($time >= time()) {\n throw new \\DomainException($this->i18n->t(\n 'setrun/user',\n 'Form is blocked for {min} minutes',\n ['min' => static::FAILURE_TIME / 60])\n );\n }\n $this->removeFailure();\n }\n }",
"function HasFailedTrans() {}",
"private function isCancelledInFlow($status){\r\n return $status == 4;\r\n }",
"public function isOK()\n {\n if($this -> status == \"OK\")\n return true;\n else\n return false;\n }",
"public function isValid() {\n return $this->isAccepted();\n }",
"public function request_succeeded()\n {\n return curl_errno($this->ch) === 0;\n }",
"public function abort() {\n return UPS_SUCCESS;\n }",
"function isOk(){\n\n\t\treturn $this->status == $this::COD_STATUS_OK;\n\t\n\t}",
"public function isAccepted()\n {\n return $this->accepted;\n }",
"function failed()\n\t{\n\t\treturn $this->isReady() && !$this->isSuccess();\n\t}",
"public function isSuccessful(){\r\n return $this->code>=200&& $this->code <300;\r\n }",
"protected function isStatusDenied()\n {\n return $this->getStatus() === self::STATUS_DENIED;\n }",
"public function accepting_input()\n {\n $accepting_statuses = ['init', 'running', 'waiting'];\n return in_array($this->status, $accepting_statuses);\n }",
"public function decline() {\n header('Content-type: application/json');\n $requestId = input(\"requestid\");\n Database::table(\"requests\")->where(\"id\", $requestId)->update(array(\"status\" => \"Declined\"));\n $request = Database::table(\"requests\")->where(\"id\", $requestId)->first();\n $sender = Database::table(\"users\")->where(\"id\", $request->sender)->first();\n $documentLink = env(\"APP_URL\").\"/document/\".$request->document;\n $send = Mail::send(\n $sender->email, \"Signing invitation declined by \".$request->email,\n array(\n \"title\" => \"Signing invitation declined.\",\n \"subtitle\" => \"Click the link below to view document.\",\n \"buttonText\" => \"View Document\",\n \"buttonLink\" => $documentLink,\n \"message\" => $request->email.\" has declined the signing invitation you had sent. Click the link above to view the document.<br><br>Thank you<br>\".env(\"APP_NAME\").\" Team\"\n ),\n \"withbutton\"\n );\n $actionTakenBy = escape($request->email);\n /*\n * Check, whether IP address register is allowed in .env\n * If yes, then capture the user's IP address\n */\n if (env('REGISTER_IP_ADDRESS_IN_HISTORY') == 'Enabled') {\n $actionTakenBy .= ' ['.getUserIpAddr().']';\n }\n $activity = '<span class=\"text-primary\">'.$actionTakenBy.'</span> declined a signing invitation of this document.';\n Signer::keephistory($request->document, $activity, \"default\");\n $notification = '<span class=\"text-primary\">'.escape($request->email).'</span> declined a signing invitation of this <a href=\"'.url(\"Document@open\").$request->document.'\">document</a>.';\n Signer::notification($sender->id, $notification, \"decline\");\n if (!$send) { exit(json_encode(responder(\"error\", \"Oops!\", $send->ErrorInfo))); }\n exit(json_encode(responder(\"success\", \"Declined!\", \"Request declined and sender notified.\",\"reload()\")));\n }",
"public function validateCanceledURL() {\r\n return $this->validateResultURL(self::CANCELED_STATUS);\r\n }",
"public function submit_reason_missed()\n\t{\n\t\t$this->load->library('form_validation');\n\t\t$this->load->helper('form');\n\t\t$this->form_validation->set_rules('reason', 'Reason', 'required');\n\n\t\tif ($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t$this->output->set_status_header(422, form_error('reason'));\n\t\t\treturn;\n\t\t}\n\n\t\t$this->load->library('cfpslack_library');\n\t\t$this->load->model('user_model', '', TRUE);\n\t\t$name = $this->user_model->get_name($this->session->tc_user_id);\n\n\t\t$message = $name . ' did not submit a timecard yesterday because: ' . $this->input->post('reason');\n\n\t\t// @todo Ask if user should retry if this fails\n\t\t$this->cfpslack_library->post('/cfpslack/notify', [\n\t\t \t'message' => $message\n\t\t]);\n\t}",
"public function isRejected() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn InputValidator::isEmpty($this->rejectionDate) ? false: true;\r\n\t}",
"public static function checkRequest()\n {\n $conn = Db::getConnection();\n $statement = $conn->prepare(\"SELECT * from buddie_request WHERE receiver= '\" . $_SESSION['user_id'] . \"'\");\n $statement->execute();\n if ($statement->rowCount() > 0) {\n return true;\n } else {\n return false;\n }\n }",
"public function isCanceled()\n {\n return static::STATUS_CANCELED == $this->getStatus();\n }",
"function testResendVerification() {\n $this->assertFalse($this->oObject->resendVerification());\n }",
"public function isPending()\r\n {\r\n return $this->status >= 0 && $this->status < 100;\r\n }",
"protected function accepted()\n {\n $this->response = $this->response->withStatus(202);\n $this->jsonBody($this->payload->getOutput());\n }",
"public function isRejected()\n {\n return ($this->slug == \"afgekeurd\");\n }",
"public function reject_invoice()\n\t{\n\t\tif ($_SERVER['REQUEST_METHOD'] === 'POST') {\n\t\t\tif (isset($_POST)) {\n\t\t\t\t$id = base64_decode($_POST['id']);\n\t\t\t\t$remark = validateInput($_POST['reason']);\n\t\t\t\tif ($remark != '' && $remark != null) {\n\t\t\t\t\t$tableName = 'master_invoice';\n\t\t\t\t\t$condition = array('send_status' => SENT, 'id' => $id);\n\t\t\t\t\t$result = $this->CustomModel->selectAllFromWhere($tableName, $condition);\n\t\t\t\t\tif ($result > 0) {\n\t\t\t\t\t\t$data = array('send_status' => REJECTED, 'reject_reason' => $remark);\n\t\t\t\t\t\t$res = $this->CustomModel->update_table($tableName, $condition, $data);\n\t\t\t\t\t\tif ($res > 0) {\n\t\t\t\t\t\t\techo $response = json_encode(array('message' => 'Success! Invoices rejected', 'type' => 'success'), true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\techo $response = json_encode(array('message' => 'Error! Opps... Contact IT', 'type' => 'error'), true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\techo $response = json_encode(array('message' => 'Error! Reject reason is required..', 'type' => 'danger'), true);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\techo $response = json_encode(array('message' => 'Error! Opps... Something went wrong, contact IT', 'type' => 'danger'), true);\n\t\t\t}\n\t\t}\n\t}",
"public function isAwaitingConfirmation() {\n if(isset($this->data['charge']))\n return $this->data['charge']['status'] === 'successful' ? false : true;\n else\n return true;\n }",
"protected function cancelAppointmentRequest($args) {\n\n $returned = $this->_validate_token($args['ent_sess_token'], $args['ent_dev_id'], '2');\n\n if (is_array($returned))\n return $returned;\n\n $checkBookingsQry = \"select appointment_id from appointment where slave_id = '\" . $this->User['entityId'] . \"' and status IN (6,7,8)\";\n $checkBookingsRes = mysql_query($checkBookingsQry, $this->db->conn);\n\n if (mysql_num_rows($checkBookingsRes) > 0)\n return $this->_getStatusMessage(93, 93);\n\n if ($this->_updateSlvApptStatus($this->User['entityId'], '3') == 0)\n return $this->_getStatusMessage(74, 74);\n else\n return $this->_getStatusMessage(3, 1);\n }",
"function check_esewa_response() {\n\n\t\t\t@ob_clean();\n\n\t\t\tif ( ! empty( $_REQUEST ) && $this->check_esewa_response_is_valid() ) {\n\n\t\t\t\tdo_action( 'valid-esewa-standard-response' );\n\n\t\t\t} else {\n\n\t\t\t\twp_die( 'eSewa Response Validation Failure' );\n\n\t\t\t}\n\n\t\t}",
"public function isSent() {\n\treturn $this->status != self::$WAITING;\n }",
"public function clientErrorOccurred(): bool\n {\n return $this->getStatusCode() >= 400 && $this->getStatusCode() < 500;\n }",
"public function canBeCancelled()\n {\n return $this->isNotYetSubmitted();\n }",
"public function IsOkay(){\r\n return [$this->result,$this->msg];\r\n }",
"public function IsOk(){\n\t\treturn $this->_isok;\n\t}",
"public function serverDownShouldModerate(){\r\n\t\t$args = array (\r\n\t\t\t'k' => $this->accountID,\r\n\t\t\t'pwd' => $this->privateKey,\r\n\t\t\t'lofi' => $this->languageOrFrameworkID,\r\n\t\t\t'lofv' => $this->languageOrFrameworkVersion\r\n\t\t);\r\n\t\t$xmlresponse = $this->postData($this->baseURL,\"/checkStatus\",$this->useSSL,$args);\r\n\t\t$retVal = false;\r\n\t\tif ($xmlresponse){\r\n\t\t\t$doc = DOMDocument::loadXML($xmlresponse);\r\n\t\t\tif ($doc){\r\n\t\t\t\t$isRunningResponse = $doc->getElementsByTagName('isRunning');\r\n\t\t\t\tif (!($isRunningResponse && $isRunningResponse->item(0))){\r\n\t\t\t\t\t$retVal = true;\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$retVal = !($this->strToBoolean($isRunningResponse->item(0)->nodeValue));\r\n\t\t\t\t\tif (!$retVal){\r\n\t\t\t\t\t\t$secondsSinceLastDowntime = $doc->getElementsByTagName('SecondsSinceLastDowntime')->item(0)->nodeValue;\r\n\t\t\t\t\t\t$secondsSinceLastRestart = $doc->getElementsByTagName('SecondsSinceLastRestart')->item(0)->nodeValue;\r\n\t\t\t\t\t\tif ($this->timeToCompleteForm > $secondsSinceLastRestart && $this->timeToCompleteForm < $secondsSinceLastDowntime){\r\n\t\t\t\t\t\t\t$retVal = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t$retVal = true;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t$retVal = true;\r\n\t\t}\r\n\t\treturn $retVal;\r\n\t}",
"public function cancel_request() {\n\n $pending_request_exists = $this->micro_relation_exists($this->from, $this->to, \"P\");\n\n if($pending_request_exists) {\n $this->delete_relation(\"P\");\n }\n }",
"private function checkStatus()\n {\n $res = $this->parseBoolean(\n json_encode($this->getStatus()[\"timed_out\"])\n );\n\n if ($this->getStatus() == null)\n $this->setOnline(false);\n else if ($res)\n $this->setOnline(false);\n else\n $this->setOnline(true);\n }",
"public function isCancelable()\n {\n\t\treturn !in_array($this->status, [self::STATUS_COMPLETED, self::STATUS_CANCELED]);\n }",
"public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }\n\n // If the webhook was called without any auth header, throw another error\n if (!isset($_SERVER['HTTP_AUTHORIZATION']) || empty($_SERVER['HTTP_AUTHORIZATION'])) {\n die(json_encode([\n 'success' => false,\n 'error' => 'no_auth_header',\n ]));\n }\n\n if($_SERVER['HTTP_AUTHORIZATION'] != Config::i()->getSXApiKey()){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_auth',\n ]));\n }\n }",
"public function rejectInvitation()\n\t{\n\t\t$id = $this->request->data['id'];\n\t\t$invite['MeetingUser']['id'] = $id;\n\t\t//set status 1 as accepted\n\t\t$invite['MeetingUser']['is_accept'] = 2;\n\t\t$invite['MeetingUser']['is_read'] = 1;\n\t\t$invite['MeetingUser']['is_attend'] = 0;\n\t\t//set notification\n\t\t$oldCount1 = $this->Session->read('oldMeetingCount');\n\t\tif ($oldCount1>0) {\n\t\t\t$newCount1 = $oldCount1-1;\n\t\t\t$this->Session->write('oldMeetingCount',$newCount1);\n\t\t}\n\t\tif($this->MeetingUser->save($invite))\n\t\t\techo \"1\";\n\t\telse\n\t\t\techo \"0\";\n\t\texit;\n\t}",
"public static function shouldReceive()\n {\n }",
"public static function shouldReceive()\n {\n }",
"public static function shouldReceive()\n {\n }",
"public static function shouldReceive()\n {\n }",
"public function isCancelable(): bool;",
"protected function hasSystemCallBeenInterrupted()\n {\n $lastError = error_get_last();\n\n // stream_select returns false when the `select` system call is interrupted by an incoming signal\n return isset($lastError['message']) && false !== stripos($lastError['message'], 'interrupted system call');\n }",
"function _checkAnswer($goodCode){\n $reply = $this->_getReply();\n if($reply['code'] != $goodCode) \n\t{ \n\t $this->_fixError($reply['msg']);\t\n\t return false;\n\t}\n return true;\t\n}",
"public function isSuccessful() {}",
"public function isOk() : bool\n {\n return $this->m_responseCode === 200;\n }",
"function getReject(){\n //check for the requested invitation available or not\n // $get_invite_id=$this->validateInvitationSecret();\n $invitation=MedicalGroupInvitation::find('all',array('conditions' => array('(user_id=? or email=?) and secret=? and active=1',$this->user_id,$this->email,$this->secret)));\n \n if(!empty($invitation)){\n foreach($invitation as $inv){\n $inv->status=\"REJECTED\";\n $inv->active=0;\n $inv->updated_on=time();\n $inv->save();\n }\n return TRUE;\n }\n else{\n return FALSE;\n }\n }",
"function canHandleRequest() ;"
] | [
"0.6210793",
"0.61894107",
"0.6131388",
"0.6018743",
"0.5978715",
"0.5907136",
"0.58956754",
"0.58808833",
"0.5877966",
"0.5862892",
"0.5811694",
"0.58042365",
"0.57796586",
"0.57771856",
"0.57619053",
"0.574996",
"0.57361144",
"0.5734393",
"0.57135797",
"0.56950533",
"0.5692225",
"0.5686715",
"0.56839395",
"0.56758046",
"0.56677365",
"0.56654197",
"0.5651588",
"0.56479996",
"0.56443614",
"0.56427115",
"0.5637349",
"0.56269085",
"0.5620233",
"0.56040436",
"0.5602719",
"0.5599698",
"0.5598591",
"0.55903023",
"0.5590256",
"0.5564193",
"0.5564075",
"0.55551296",
"0.5553412",
"0.5551617",
"0.55464375",
"0.5546382",
"0.55443466",
"0.5541862",
"0.5532054",
"0.5527265",
"0.55250233",
"0.552393",
"0.5518111",
"0.55009675",
"0.5485453",
"0.5479531",
"0.5470994",
"0.54623765",
"0.54616064",
"0.545982",
"0.54431534",
"0.54411936",
"0.54382193",
"0.54260474",
"0.5406153",
"0.5401158",
"0.53957516",
"0.53950703",
"0.53938",
"0.5390118",
"0.5382297",
"0.53816104",
"0.53648394",
"0.53633684",
"0.53609174",
"0.5359789",
"0.53595793",
"0.5358814",
"0.5353497",
"0.53479016",
"0.53471357",
"0.5344401",
"0.53441656",
"0.5335563",
"0.5330793",
"0.53265196",
"0.5321827",
"0.53147256",
"0.53139997",
"0.52935386",
"0.52935386",
"0.52935386",
"0.52935386",
"0.5291062",
"0.5288341",
"0.52842635",
"0.5273244",
"0.52726364",
"0.5270176",
"0.5264401"
] | 0.5932779 | 5 |
/ |========================================================== | Return offensive methods |========================================================== | | public function getOffensiveMethods()
{
$queryString="SELECT *
FROM corruption_offensive_methods
ORDER BY value ASC";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getdefensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"function method_no_specs() {}",
"public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}",
"public function methods();",
"#[Pure]\n public function getMethod() {}",
"public function getActiveMethods();",
"private function private_method() {}",
"public function getMethods();",
"public function getMethods();",
"public function getMethods();",
"public function getMethods(): array;",
"public function getMethods(): array;",
"public function testCoverAllMethods();",
"#[Pure]\n public function getMethod(): string {}",
"abstract public function provideFunctors();",
"#[Pure]\n public function getRequestMethod() {}",
"private function method1()\n\t{\n\t}",
"public function getMethods($class);",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"static function getmethods() {\n $a_methods = call_user_func(array('PluginFusioninventoryStaticmisc', 'task_methods'));\n $a_modules = PluginFusioninventoryModule::getAll();\n foreach ($a_modules as $data) {\n if (is_callable(array('Plugin'.ucfirst($data['directory']).'Staticmisc', 'task_methods'))) {\n $a_methods = array_merge($a_methods, \n call_user_func(array('Plugin'.ucfirst($data['directory']).'Staticmisc', 'task_methods')));\n }\n }\n return $a_methods;\n }",
"protected static function __getTypeHintAbleMethods()\n {\n return [];\n }",
"abstract protected function getDirectGetters();",
"public function none(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }",
"abstract public function __invoke(): void;",
"public function getMethods()\n {\n // it returns all methods from all parent objects, and I only want\n // this to return the methods from this object only.\n return array(\n 'shouldBeCalled',\n 'getMIMEType',\n 'getTitle',\n 'getSize',\n 'getDescription',\n 'getLastModified',\n 'getCreated',\n 'hasChildren',\n 'getDirectories',\n 'getFiles',\n 'rename',\n 'delete',\n 'getAllChildren',\n 'move',\n 'newDirectory'\n );\n }",
"abstract protected function doEvil();",
"public static function getDisabledMethods()\n {\n return array();\n }",
"public function methods()\r\n {\r\n static $s_methods = array();\r\n if ( isset( $s_methods[$this->class->name] ) )\r\n {\r\n return $s_methods[$this->class->name];\r\n }\r\n $methods = $this->class->getMethods();\r\n \r\n usort( $methods, array( $this, '_method_sort' ) );\r\n \r\n $tmpArr = array();\r\n #当implements一些接口后,会导致出现重复的方法\n $out_methods = array();\r\n foreach ( $methods as $key => $method )\r\n {\r\n if ( isset( $tmpArr[$this->class->name][$method->name] ) ) continue;\r\n $tmpArr[$this->class->name][$method->name] = true;\r\n $out_methods[] = new Docs_Method( $this->class->name, $method->name );\r\n }\r\n $s_methods[$this->class->name] = $out_methods;\r\n return $out_methods;\r\n }",
"public function GetMethod ();",
"private function method2()\n\t{\n\t}",
"public function __callIntern($methodName);",
"public function getInjectMethods() {}",
"public function __invoke()\n {\n }",
"abstract protected function requiredOperations1(): void;",
"public function __getMethods() {\n\t\t\t$methods = array_unique(array_merge(parent::__getMethods(), $this->methods));\n\t\t\treturn $methods;\n\t\t}",
"public function __invoke()\n {\n\n }",
"protected function _getMethods()\n {\n $reflect = new ReflectionClass($this);\n $list = array();\n $methods = $reflect->getMethods();\n foreach ($methods as $method) {\n $name = $method->getName();\n if (substr($name, 0, 5) == 'bench') {\n $list[] = $name;\n }\n }\n return $list;\n }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"function getTestableMethods($className) {\n\t\t$classMethods = get_class_methods($className);\n\t\t$parentMethods = get_class_methods(get_parent_class($className));\n\t\t$thisMethods = array_diff($classMethods, $parentMethods);\n\t\t$out = array();\n\t\tforeach ($thisMethods as $method) {\n\t\t\tif (substr($method, 0, 1) != '_' && $method != strtolower($className)) {\n\t\t\t\t$out[] = $method;\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}",
"public function getDynamicMethods()\n {\n return [];\n }",
"protected function getWarningWhenMethodUnavailable() {}",
"private function _callToDefault()\n {\n foreach (get_class_methods($this) as $method) {\n try {\n $that = new ReflectionMethod($this, $method);\n } catch (ReflectionException $exception) {\n break;\n }\n if (\n $that->isProtected()\n && !array_key_exists($method, $this->query())\n ) {\n $this->{$method}($this->builder);\n }\n }\n }",
"function getMethodsHead()\n {\n\n }",
"public static function getAvailableMethods(): Collection\n {\n $class = (new \\ReflectionClass(static::class))\n ->getMethods(\\ReflectionMethod::IS_PUBLIC);\n\n return collect($class)\n ->mapWithKeys(function (\\ReflectionMethod $method) {\n return [$method->name => $method];\n })\n ->except(get_class_methods(Screen::class))\n ->except(['query'])\n ->whenEmpty(function () {\n /*\n * Route filtering requires at least one element to be present.\n * We set __invoke by default, since it must be public.\n */\n return collect('__invoke');\n })\n ->keys();\n }",
"public function getSelfMethods()\n\t{\n\t\t$myName = $this->getName();\n\t\t$myFilename = $this->getFileName();\n\t\t$hasTrait = $this->usesTraits();\n\t\t$methods = $this->getMethods();\n\n\t\t/** @var ReflectionMethod $method */\n\t\tforeach ( $methods as $key => $method )\n\t\t{\n\t\t\t$thatName = $method->getDeclaringClass()->getName();\n\t\t\t$thatFilename = $method->getFileName();\n\n\t\t\tif ( $myName != $thatName )\n\t\t\t{\n\t\t\t\tunset($methods[$key]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ( $hasTrait === true and $myFilename != $thatFilename )\n\t\t\t\t{\n\t\t\t\t\tunset($methods[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $methods;\n\t}",
"public function nonApiDoSomethingElse()\n {\n // empty\n }",
"public function any(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }",
"public function get_method();",
"public function __invoke(): void;",
"public function get_method()\n {\n }",
"public function method();",
"public function method();",
"public function method();",
"public function method();",
"public function isMethods() {}",
"abstract public function getFunctions();",
"public function getMethodDescriptors(): array;",
"public function avoidMethod(string $method): bool {}",
"public function classAMethod() {\n }",
"public function getMethod() {}",
"public function getMethod() {}",
"public function getMethod() {}",
"public function getMethod() {}",
"public function oops () {\n }",
"public function methodsWithoutMagic($classOrObject, $filters = array('public'))\n\t{\n\t\treturn $this->methods($classOrObject, $filters, $this->magicMethods);\n\t}",
"public function filter() {\n\t\t$args = func_get_args();\n\t\t$methods = array();\n\t\t\n\t\tif( !empty($args) ) {\n\t\t\tif( is_string($args) && !empty(trim($args)) ) {\n\t\t\t\t$methods[] = $args;\n\t\t\t} elseif( is_array($args) ) {\n\t\t\t\t$methods = array_merge($this->methods, $args);\n\t\t\t\t$methods = array_unique(array_filter($methods));\n\t\t\t}\n\t\t\t\n\t\t\t$this->methods = $methods;\n\t\t}\n\t\t\n\t\treturn $this;\n\t}",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"public static function getDocumentMagicMethods() {}",
"public static function __callStatic($method, $args){ return null; }",
"private function aFunc()\n {\n }",
"function getApiMethod()\n {\n }",
"public function getMethods() {\n $list = array();\n $functions = $this->get('function');\n if (null != $functions) {\n foreach ($functions as $function) {\n $name = $function->getName();\n if ('__construct' != $name && $this->getName() != $name) {\n if ($function->accept()) {\n $list[] = $function;\n }\n }\n }\n }\n return $list;\n }",
"function sourceArray($srcClassName) {\n // Returns an array which contains method source and args.\n\n $ref = new ReflectionClass($srcClassName);\n\n $refMethods = $ref->getMethods();\n // Possible replacement: get_class_methods()?\n\n $objectArray = array();\n foreach ($refMethods as $refMethod) {\n $method = $refMethod->name;\n\n // Get a string of a method's source, in a single line.\n // XXX: Y u no cache file\n $filename = $refMethod->getFileName();\n if (!empty($filename)) {\n $source = getSource($srcClassName, $method, $filename);\n } else {\n // We presume that if no filename is found, the method is\n // built-in and we are unconcerned with it\n debugMsg(\"Skipping builtin method $method\");\n continue;\n }\n \n // Check to determine whether the method being inspected is static\n $isStatic = $refMethod->isStatic();\n\n // Get a comma-seperated string of parameters, wrap them in\n // a method definition. Note that all your methods\n // just became public.\n $params = prepareParametersString($refMethod, false); \n $paramsDefault = prepareParametersString($refMethod); \n if ($isStatic) {\n // unconfirmed as of yet\n $methodHeader = \"public static function $method({$paramsDefault})\";\n } else {\n $methodHeader = \"public function $method({$paramsDefault})\";\n }\n\n // Return the two components mentioned above, indexed by method name\n // XXX: Only send one of the params vars, processing on other end\n $objectArray[$method] = array(\"params\" => $params, \"paramsDefault\" => $paramsDefault, 'methodHeader' => $methodHeader, 'src' => $source, 'isStatic' => $isStatic);\n }\n return $objectArray;\n}",
"public function mt_supportedMethods()\n {\n }",
"public function testBasicMethodInspection() {\n\t\t$class = 'lithium\\analysis\\Debugger';\n\t\t$parent = 'lithium\\core\\StaticObjectDeprecated';\n\n\t\t$expected = array_diff(get_class_methods($class), get_class_methods($parent));\n\t\t$result = array_keys(Inspector::methods($class, 'extents'));\n\t\t$this->assertEqual(array_intersect($result, $expected), $result);\n\n\t\t$result = array_keys(Inspector::methods($class, 'extents', [\n\t\t\t'self' => true, 'public' => true\n\t\t]));\n\t\t$this->assertEqual($expected, $result);\n\n\t\t$this->assertNull(Inspector::methods('lithium\\core\\Foo'));\n\n\t\t$result = Inspector::methods('stdClass', 'extents');\n\t\t$this->assertEqual([], $result);\n\t}",
"function getMethod()\r\n {\r\n }",
"public static function getAvailableMethods(): array\n {\n return array_diff(\n get_class_methods(static::class), // Custom methods\n get_class_methods(self::class), // Basic methods\n ['query'] // Except methods\n );\n }",
"public function testGetMethodsForType()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }",
"protected function protected_method() {}",
"protected function checkDisableFunctions() {}",
"public function getMethod()\n {\n }",
"public function getMethod();",
"public function getMethod();",
"public function getMethod();",
"public function getMethod();",
"public function getMethod();",
"public function getMethod();",
"public function getMethod();",
"public function __invoke() : array;",
"public function __invoke() : array;",
"abstract protected function yieldWhitelistAccess(): Generator;",
"public function validMethods()\n {\n return $this->valid_method;\n }",
"function populate_method_info() {\n\n $method_info = array();\n\n // get functions\n $all_functions = get_defined_functions();\n $internal_functions = $all_functions[\"internal\"];\n\n foreach ($internal_functions as $function) {\n // populate new method record\n $function_record = array();\n $function_record[CLASS_NAME] = \"Function\";\n $function_record[METHOD_NAME] = $function;\n $function_record[IS_TESTED] = \"no\";\n $function_record[TESTS] = \"\";\n $function_record[IS_DUPLICATE] = false;\n\n // record the extension that the function belongs to\n $reflectionFunction = new ReflectionFunction($function);\n $extension = $reflectionFunction->getExtension();\n if ($extension != null) {\n $function_record[EXTENSION_NAME] = $extension->getName();\n } else {\n $function_record[EXTENSION_NAME] = \"\";\n }\n // insert new method record into info array\n $method_info[] = $function_record;\n }\n\n // get methods\n $all_classes = get_declared_classes();\n foreach ($all_classes as $class) {\n $reflectionClass = new ReflectionClass($class);\n $methods = $reflectionClass->getMethods();\n foreach ($methods as $method) {\n // populate new method record\n $new_method_record = array();\n $new_method_record[CLASS_NAME] = $reflectionClass->getName();\n $new_method_record[METHOD_NAME] = $method->getName();\n $new_method_record[IS_TESTED] = \"no\";\n $new_method_record[TESTS] = \"\";\n\n $extension = $reflectionClass->getExtension();\n if ($extension != null) {\n $new_method_record[EXTENSION_NAME] = $extension->getName();\n } else {\n $new_method_record[EXTENSION_NAME] = \"\";\n }\n\n // check for duplicate method names\n $new_method_record[IS_DUPLICATE] = false;\n foreach ($method_info as &$current_record) {\n if (strcmp($current_record[METHOD_NAME], $new_method_record[METHOD_NAME]) == 0) {\n $new_method_record[IS_DUPLICATE] = true;\n $current_record[IS_DUPLICATE] = true;\n }\n }\n // insert new method record into info array\n $method_info[] = $new_method_record;\n }\n }\n\n return $method_info;\n}",
"public function hasInjectMethods() {}",
"protected function instanceMethods()\n\t{\n\t\treturn collect($this->stack)->reverse()\n\t\t\t->map(fn($call) => $this->instanceMethodAst(...$call))\n\t\t\t->toArray();\n\t}"
] | [
"0.6478334",
"0.6436764",
"0.638438",
"0.62645423",
"0.6147758",
"0.6054092",
"0.5827823",
"0.58267117",
"0.58267117",
"0.58267117",
"0.5728935",
"0.5728935",
"0.57219756",
"0.5689669",
"0.56495726",
"0.5642633",
"0.5625845",
"0.5614534",
"0.56105614",
"0.56105614",
"0.56105614",
"0.56105614",
"0.5574586",
"0.5571325",
"0.5550139",
"0.55485207",
"0.55453",
"0.55452853",
"0.5532894",
"0.55222553",
"0.5507256",
"0.5503111",
"0.54902786",
"0.5486728",
"0.54864",
"0.54606026",
"0.5453647",
"0.5408707",
"0.540566",
"0.5395524",
"0.5392734",
"0.53701997",
"0.5368781",
"0.5355406",
"0.5339773",
"0.5336286",
"0.5331908",
"0.53291345",
"0.5323115",
"0.52786857",
"0.52762866",
"0.5275937",
"0.52677846",
"0.5261916",
"0.5261916",
"0.5261916",
"0.5261916",
"0.52467215",
"0.52425057",
"0.5233929",
"0.5233482",
"0.5231334",
"0.52252793",
"0.52252793",
"0.52252793",
"0.52252793",
"0.5210825",
"0.52075994",
"0.5192499",
"0.51699597",
"0.51699597",
"0.51699597",
"0.51642615",
"0.5149701",
"0.5147576",
"0.5126273",
"0.5125084",
"0.5114699",
"0.5110079",
"0.5109831",
"0.5107786",
"0.50996906",
"0.5098114",
"0.5077785",
"0.507378",
"0.50736773",
"0.50611407",
"0.50611407",
"0.50611407",
"0.50611407",
"0.50611407",
"0.50611407",
"0.50611407",
"0.5058167",
"0.5058167",
"0.50556844",
"0.5054377",
"0.50441945",
"0.5041815",
"0.50384283"
] | 0.6766701 | 0 |
/ |========================================================== | Return defensive methods |========================================================== | | public function getdefensiveMethods()
{
$queryString="SELECT *
FROM corruption_defensive_methods
ORDER BY value ASC";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function method_no_specs() {}",
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}",
"public function none(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }",
"public function methods();",
"public static function getDisabledMethods()\n {\n return array();\n }",
"abstract protected function doEvil();",
"#[Pure]\n public function getMethod() {}",
"private function private_method() {}",
"protected function checkDisableFunctions() {}",
"protected static function __getTypeHintAbleMethods()\n {\n return [];\n }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"public function getActiveMethods();",
"public function avoidMethod(string $method): bool {}",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"protected function getWarningWhenMethodUnavailable() {}",
"public function testCoverAllMethods();",
"public function methodsWithoutMagic($classOrObject, $filters = array('public'))\n\t{\n\t\treturn $this->methods($classOrObject, $filters, $this->magicMethods);\n\t}",
"abstract public function provideFunctors();",
"public function getMethods();",
"public function getMethods();",
"public function getMethods();",
"private function _callToDefault()\n {\n foreach (get_class_methods($this) as $method) {\n try {\n $that = new ReflectionMethod($this, $method);\n } catch (ReflectionException $exception) {\n break;\n }\n if (\n $that->isProtected()\n && !array_key_exists($method, $this->query())\n ) {\n $this->{$method}($this->builder);\n }\n }\n }",
"static function getmethods() {\n $a_methods = call_user_func(array('PluginFusioninventoryStaticmisc', 'task_methods'));\n $a_modules = PluginFusioninventoryModule::getAll();\n foreach ($a_modules as $data) {\n if (is_callable(array('Plugin'.ucfirst($data['directory']).'Staticmisc', 'task_methods'))) {\n $a_methods = array_merge($a_methods, \n call_user_func(array('Plugin'.ucfirst($data['directory']).'Staticmisc', 'task_methods')));\n }\n }\n return $a_methods;\n }",
"private function method1()\n\t{\n\t}",
"public function getDynamicMethods()\n {\n return [];\n }",
"public function nonApiDoSomethingElse()\n {\n // empty\n }",
"public function getMethods(): array;",
"public function getMethods(): array;",
"#[Pure]\n public function getMethod(): string {}",
"abstract protected function requiredOperations1(): void;",
"public function getDefaultMethodNotMain()\n {\n return 2;\n }",
"private function __construct()\n {\n // disabled method\n }",
"function getTestableMethods($className) {\n\t\t$classMethods = get_class_methods($className);\n\t\t$parentMethods = get_class_methods(get_parent_class($className));\n\t\t$thisMethods = array_diff($classMethods, $parentMethods);\n\t\t$out = array();\n\t\tforeach ($thisMethods as $method) {\n\t\t\tif (substr($method, 0, 1) != '_' && $method != strtolower($className)) {\n\t\t\t\t$out[] = $method;\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}",
"public static function right_public(){return false;}",
"private function privateMethodWithNoArguments()\n {\n return 'private:no-arguments';\n }",
"public function oops () {\n }",
"protected function _getMethods()\n {\n $reflect = new ReflectionClass($this);\n $list = array();\n $methods = $reflect->getMethods();\n foreach ($methods as $method) {\n $name = $method->getName();\n if (substr($name, 0, 5) == 'bench') {\n $list[] = $name;\n }\n }\n return $list;\n }",
"public function getMethods($class);",
"public function getMethods()\n {\n // it returns all methods from all parent objects, and I only want\n // this to return the methods from this object only.\n return array(\n 'shouldBeCalled',\n 'getMIMEType',\n 'getTitle',\n 'getSize',\n 'getDescription',\n 'getLastModified',\n 'getCreated',\n 'hasChildren',\n 'getDirectories',\n 'getFiles',\n 'rename',\n 'delete',\n 'getAllChildren',\n 'move',\n 'newDirectory'\n );\n }",
"public static function dummy() {}",
"public function lazy();",
"public static function anything()\n {\n /** @var string[] $methods The methods in this class that we will pick from. */\n $methods = ['integers', 'accidents', 'garbage', 'evilStrings'];\n\n /** @var Generator[] $existing_generators They need to be stored after we first generate them, so we can keep\n * track of their state. */\n $existing_generators = [];\n\n while (true)\n {\n // Pick a random generator.\n $chosen_method = $methods[rand(0, count($methods) - 1)];\n\n // Init the generator and store it.\n if (!array_key_exists($chosen_method, $existing_generators))\n {\n $existing_generators[$chosen_method] = self::$chosen_method();\n }\n\n // Yield its value.\n yield $existing_generators[$chosen_method]->current();\n\n // Iterate the generator for next time.\n $existing_generators[$chosen_method]->next();\n }\n }",
"public function getOwnDefensiveMethods($teamId)\n {\n $queryString=\"SELECT *\n FROM team_defensive_methods,corruption_defensive_methods\n WHERE team_defensive_methods.defensive_method_id=corruption_defensive_methods.corruption_defensive_id\n AND team_defensive_methods.team_id=$teamId\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function implementation_pending()\n {\n }",
"public static function getAvailableMethods(): Collection\n {\n $class = (new \\ReflectionClass(static::class))\n ->getMethods(\\ReflectionMethod::IS_PUBLIC);\n\n return collect($class)\n ->mapWithKeys(function (\\ReflectionMethod $method) {\n return [$method->name => $method];\n })\n ->except(get_class_methods(Screen::class))\n ->except(['query'])\n ->whenEmpty(function () {\n /*\n * Route filtering requires at least one element to be present.\n * We set __invoke by default, since it must be public.\n */\n return collect('__invoke');\n })\n ->keys();\n }",
"private function aFunc()\n {\n }",
"abstract protected function yieldWhitelistAccess(): Generator;",
"public function getUsedDefensiveMethods($teamId/*,$matchId*/)\n {\n /*$queryString=\"SELECT *\n FROM team_used_corruption,corruption_defensive_methods\n WHERE team_used_corruption.corruption_id=corruption_defensive_methods.corruption_defensive_id\n AND team_used_corruption.team_id=$teamId\n AND team_used_corruption.match_id=$matchId\n AND team_used_corruption.method_type=1\";*/\n $queryString=\"SELECT *\n FROM team_used_corruption,corruption_defensive_methods\n WHERE team_used_corruption.corruption_id=corruption_defensive_methods.corruption_defensive_id\n AND team_used_corruption.team_id=$teamId\n AND team_used_corruption.method_type=1\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function getInjectMethods() {}",
"private function privateDummy()\n {\n }",
"abstract protected function safetyCheck() : self;",
"public function GetMethod ();",
"public function disabled();",
"public function disabled();",
"#[Pure]\n public function getRequestMethod() {}",
"public function getSelfMethods()\n\t{\n\t\t$myName = $this->getName();\n\t\t$myFilename = $this->getFileName();\n\t\t$hasTrait = $this->usesTraits();\n\t\t$methods = $this->getMethods();\n\n\t\t/** @var ReflectionMethod $method */\n\t\tforeach ( $methods as $key => $method )\n\t\t{\n\t\t\t$thatName = $method->getDeclaringClass()->getName();\n\t\t\t$thatFilename = $method->getFileName();\n\n\t\t\tif ( $myName != $thatName )\n\t\t\t{\n\t\t\t\tunset($methods[$key]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ( $hasTrait === true and $myFilename != $thatFilename )\n\t\t\t\t{\n\t\t\t\t\tunset($methods[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $methods;\n\t}",
"function noop() {\n}",
"public function mt_supportedMethods()\n {\n }",
"public function getMethods() {\n $list = array();\n $functions = $this->get('function');\n if (null != $functions) {\n foreach ($functions as $function) {\n $name = $function->getName();\n if ('__construct' != $name && $this->getName() != $name) {\n if ($function->accept()) {\n $list[] = $function;\n }\n }\n }\n }\n return $list;\n }",
"static function ignore_missing_methods($set = null) {\n\t\tif (is_null($set)) {\n\t\t\treturn self::$ignore_missing_methods;\n\t\t} else {\n\t\t\tself::$ignore_missing_methods = ($set ? true : false);\n\t\t}\n\t}",
"public function implementation_pending(): void\n {\n }",
"function methods()\n\t{\n\t\t$methods = array();\n\t\t$disabled_functions = explode(',', @ini_get('disable_functions'));\n\n\t\tif (@extension_loaded('ftp'))\n\t\t{\n\t\t\t$methods[] = 'ftp';\n\t\t}\n\n\t\tif (!in_array('fsockopen', $disabled_functions))\n\t\t{\n\t\t\t$methods[] = 'ftp_fsock';\n\t\t}\n\n\t\treturn $methods;\n\t}",
"private function method2()\n\t{\n\t}",
"public function method();",
"public function method();",
"public function method();",
"public function method();",
"function __call($fn, $param){\n //if method exists\n \n $run = apply_filters(\"WXP.{$this->handle}.{$fn}.allow\", true, $this, $param);\n \n if($run !== false){\n \n //give an error if the method does not exist, and \n //method call is allowed\n \n if(!method_exists($this->object, $fn)){\n throw new \\BadMethodCallException(\"Call to undefined method {$this->handle}::{$fn}\");\n }\n \n //if method does exist do .before action\n \n do_action(\"WXP.{$this->handle}.{$fn}.before\", $this, $param);\n \n //now call method and apply filters to the result\n \n $result = call_user_func_array(array($this->object, $fn), $param);\n \n $result = apply_filters(\"WXP.{$this->handle}.{$fn}.result\", $result, $this, $param);\n \n //finally do .after action, (passing the result and object)\n \n do_action(\"WXP.{$this->handle}.{$fn}.after\", $result, $this, $param);\n \n //return result\n \n return $result;\n } else {\n //use filter to determine what is returned when \n //run call for this object is disallowed, by default null is\n //returned; but this might cause an error if a different\n //value (like an object) is expected\n \n return apply_filters(\"WXP.{$this->handle}.{$fn}.disallow.return\", null, $this, $param);\n }\n \n }",
"public function any(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function isMethods() {}",
"abstract public function __invoke(): void;",
"public function methods()\r\n {\r\n static $s_methods = array();\r\n if ( isset( $s_methods[$this->class->name] ) )\r\n {\r\n return $s_methods[$this->class->name];\r\n }\r\n $methods = $this->class->getMethods();\r\n \r\n usort( $methods, array( $this, '_method_sort' ) );\r\n \r\n $tmpArr = array();\r\n #当implements一些接口后,会导致出现重复的方法\n $out_methods = array();\r\n foreach ( $methods as $key => $method )\r\n {\r\n if ( isset( $tmpArr[$this->class->name][$method->name] ) ) continue;\r\n $tmpArr[$this->class->name][$method->name] = true;\r\n $out_methods[] = new Docs_Method( $this->class->name, $method->name );\r\n }\r\n $s_methods[$this->class->name] = $out_methods;\r\n return $out_methods;\r\n }",
"public function __getMethods() {\n\t\t\t$methods = array_unique(array_merge(parent::__getMethods(), $this->methods));\n\t\t\treturn $methods;\n\t\t}",
"private function allowedOptimizers()\n {\n yield new Pngquant();\n }",
"protected function protected_method() {}",
"public function testBasicMethodInspection() {\n\t\t$class = 'lithium\\analysis\\Debugger';\n\t\t$parent = 'lithium\\core\\StaticObjectDeprecated';\n\n\t\t$expected = array_diff(get_class_methods($class), get_class_methods($parent));\n\t\t$result = array_keys(Inspector::methods($class, 'extents'));\n\t\t$this->assertEqual(array_intersect($result, $expected), $result);\n\n\t\t$result = array_keys(Inspector::methods($class, 'extents', [\n\t\t\t'self' => true, 'public' => true\n\t\t]));\n\t\t$this->assertEqual($expected, $result);\n\n\t\t$this->assertNull(Inspector::methods('lithium\\core\\Foo'));\n\n\t\t$result = Inspector::methods('stdClass', 'extents');\n\t\t$this->assertEqual([], $result);\n\t}",
"public function dummyMethod($arg)\n {\n }",
"public function testDaughterCanNotCallMotherPrivate(): void\n {\n $this->expectException(\\Teknoo\\States\\Proxy\\Exception\\MethodNotImplemented::class);\n\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateTwo::class)\n ->enableState(StateThree::class);\n\n $daughterInstance->methodRecallMotherPrivate();\n }",
"function getMethodsHead()\n {\n\n }",
"private static function is_good_method( $method ) {\n\t\treturn $method->isPublic() && ! $method->isStatic() && 0 !== strpos( $method->getName(), '__' );\n\t}",
"public function __sleep()\n\t{\n\t\treturn array('_cleanData', '_readOnly');\n\t}",
"public static function __callStatic($method, $args){ return null; }",
"protected function getExposedMethods(): ?array {\n $ctx = CompilerContext::getCurrentCompiler();\n if($ctx) {\n $symbols = $ctx->getValueCache()->fetchValue( FindExposedSymbolsCompiler::CACHE_EXPOSED_SYMBOLS );\n return array_keys($symbols[\"methods\"]);\n }\n return NULL;\n }",
"abstract public function getFunctions();",
"abstract protected function getDirectGetters();",
"public function getMethodDescriptors(): array;",
"public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}",
"final public function finalPublicMethod()\n {\n }",
"public function publicMethodWithNoArguments()\n {\n return 'public:no-arguments';\n }",
"public function isNotUsing();",
"protected abstract function applyNoArg();"
] | [
"0.6971257",
"0.66801876",
"0.6151427",
"0.59392697",
"0.59383243",
"0.58445126",
"0.57827723",
"0.5713528",
"0.5693863",
"0.56596094",
"0.5632309",
"0.5613476",
"0.55612034",
"0.5524399",
"0.5521699",
"0.5521699",
"0.5521699",
"0.5495727",
"0.5495727",
"0.5479577",
"0.547834",
"0.54505336",
"0.54213357",
"0.5416156",
"0.5416156",
"0.5416156",
"0.540812",
"0.5402539",
"0.5356702",
"0.5346902",
"0.5346491",
"0.5339536",
"0.5339536",
"0.5331167",
"0.5298672",
"0.52961326",
"0.5266357",
"0.5265876",
"0.52519846",
"0.52462894",
"0.52393705",
"0.52356154",
"0.5232406",
"0.520949",
"0.52036345",
"0.51987547",
"0.5196288",
"0.5191228",
"0.51606345",
"0.51561844",
"0.5155095",
"0.51376426",
"0.5133298",
"0.51311815",
"0.5130967",
"0.51300275",
"0.5114757",
"0.5114454",
"0.5114454",
"0.5111841",
"0.5111703",
"0.51075923",
"0.5093485",
"0.5091875",
"0.50839674",
"0.5076005",
"0.5074597",
"0.50740725",
"0.5068575",
"0.5068575",
"0.5068575",
"0.5068575",
"0.5063287",
"0.50592434",
"0.5056649",
"0.5056649",
"0.5056649",
"0.5056649",
"0.5052663",
"0.50485",
"0.504633",
"0.50349957",
"0.5034894",
"0.50312006",
"0.5027037",
"0.50168216",
"0.50144583",
"0.5011449",
"0.5006769",
"0.5004192",
"0.50036806",
"0.50023097",
"0.50016874",
"0.49874425",
"0.49870616",
"0.4974935",
"0.49743375",
"0.4966531",
"0.49605",
"0.49584705"
] | 0.7193832 | 0 |
/ |========================================================== | refuse corruption | public function corruptionRefused($matchId)
{
$queryString="DELETE FROM corruption_match
WHERE match_id=$matchId";
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function recover() {\n\t}",
"public function recoverFromCorruption()\n {\n }",
"public function recover();",
"function broken() { return TRUE; }",
"protected function error() {\n trigger_error(\"All properties of previous datastream versions are read only. Please modify parent datastream object.\", E_USER_WARNING);\n }",
"public function fix() {}",
"public function fix() {}",
"function broken() { }",
"protected function fixSelf() {}",
"protected function fixSelf() {}",
"function fix() ;",
"function _remove_v1() {\n if ($this->debug) print($this->debugbeg . \"_remove_v1()<HR>\\n\");\n\n $file = $this->file;\n\n if (! ($f = fopen($file, 'r+b')) ) {\n return PEAR::raiseError( \"Unable to open \" . $file, PEAR_MP3_ID_FNO);\n }\n\n if (fseek($f, -128, SEEK_END) == -1) {\n return PEAR::raiseError( 'Unable to see to end - 128 of ' . $file, PEAR_MP3_ID_RE);\n }\n\n $r = fread($f, 128);\n\n $success = false;\n if ( !PEAR::isError( $this->_decode_v1($r))) {\n $size = filesize($this->file) - 128;\n if ($this->debug) print('size: old: ' . filesize($this->file));\n $success = ftruncate($f, $size);\n clearstatcache();\n if ($this->debug) print(' new: ' . filesize($this->file));\n }\n fclose($f);\n\n if ($this->debug) print($this->debugend);\n return $success;\n }",
"function virtual_hosting_db_fixintegrity()\n{\n $PHORUM = $GLOBALS[\"PHORUM\"];\n\n $stale = phorum_db_interact(\n DB_RETURN_ROWS,\n \"SELECT hostname,v.vroot\n FROM {$PHORUM[\"virtual_hosts_table\"]} AS v\n LEFT JOIN {$PHORUM[\"forums_table\"]}\n ON v.vroot = forum_id\n WHERE forum_id IS NULL\"\n );\n\n foreach ($stale as $rec) {\n virtual_hosting_db_unlinkhostname($rec[0], $rec[1]);\n }\n}",
"public function recoverFromCorruption() // [\\SplHeap]\n\t{\n\t\tif(null !== array_shift($this->btree))\n\t\t{\n\t\t\tthrow new RecoverException('Unable to recover heap');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Re-heapify & re-tag\n\t\t\t$this->size = 0;\n\t\t\t$this->hasht = array();\n\t\t\t$this->last_tag = 0;\n\t\t\t$first = true;\n\t\t\t\n\t\t\tarray_unshift($this->btree, null);\n\t\t\t\n\t\t\tforeach($this->btree as $i => $e)\n\t\t\t{\n\t\t\t\tif($first)\n\t\t\t\t{\n\t\t\t\t\t$first = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$v = $this->hashtIndex($e->data);\n\t\t\t\t\t$t = ++$this->last_tag;\n\t\t\t\t\t$this->hasht[$v][$t] = $i;\n\t\t\t\t\t$this->btree[$i]->tag = $t;\n\t\t\t\t\t\n\t\t\t\t\t$this->siftUp(++$this->size);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// SplHeap documentation claims that this function returns void but this\n\t\t// does not seem to be the case!\n\t\treturn true;\n\t}",
"protected function checkLibXmlBug() {}",
"public function refresh_nonces()\n {\n }",
"function triggerUAF(&$r, $newAddr) {\n exif_read_data($r); // trigger an early-free on $r's value by providing an invalid handle (from line 24)\n\n/*\nThis is where the early-free happens: \nsnippet from: ext/exif/exif.c\n------------------------------------------------------------\n// 4310 static int exif_read_from_impl(image_info_type *ImageInfo, php_stream *stream, int read_thumbnail, int read_all)\n// 4311 {\n// .... more code .....\n// 4325 if ((st.st_mode & S_IFMT) != S_IFREG) {\n// 4326 exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_WARNING, \"Not a file\");\n// 4327 php_stream_close(ImageInfo->infile); // <----- this is where the memory pointed by $r is free'd\n// 4328 return FALSE;\n// 4329 }\n------------------------------------------------------------\n\n\nAt this point, $r->value->res points to a free'd memory chunk(or, in UAF terms: it's a \"dangling pointer\")\nThe next thing we will do is to \"catch\" this free memory chunk with a \ndifferent/new allocation:\n*/\n $s = str_repeat($newAddr, 1); // allocating a new zend_string on the heap, this will\n // make the address of $s to be the same as where $r points to\n // Q: \"Why did you choose zend_string?\" \n // A: Because we're trying to implement a first-fit technique and \n // those structures have a very similar size, hence, they will land\n // on the same bin:\n // gdb-peda$ call sizeof(zend_resource)\n // 20\n // gdb-peda$ call sizeof(zend_string)\n // 20\n\n\n/*\nBecause those two structures have a similar layout in memory, and the \"ptr\" property(from zend_resource)\nshare the same offset as \"val\" property (from zend_string) containing our malicious string, it means that\nthe string inside $s lands exactly on the \"ptr\" property! \n\nThis is how the two variables look like now (internally):\n\ngdb-peda$ print (zend_string)*0xb5a01408 \n$4 = {\n gc = {\n refcount = 1, \n u = {\n v = {\n type = 6 '\\006', \n flags = 0 '\\000',\n gc_info = 0\n },\n type_info = 6\n }\n },\n h = 0,\n len = 3, \n val = \"AAA\" <---- our allocated string\n}\n```\n\nAnd this is how PHP sees ``$r``:\n```\ngdb-peda$ print (zend_resource)*0xb5a01408 <---- same address, different struct representation\n$5 = {\n gc = {\n refcount = 1,\n u = {\n v = {\n type = 6 '\\006',\n flags = 0 '\\000',\n gc_info = 0\n },\n type_info = 6\n }\n },\n handle = 0,\n type = 3,\n ptr = 0x414141 <------ what??\n}\n\n*/\n}",
"public function cleanRepair() {}",
"protected function validateChecksum() {\n\t}",
"function mbstring_binary_safe_encoding($reset = \\false)\n {\n }",
"public function System_ArithmeticException___cstor0() {\r\n parent::__construct('Overflow or underflow in the arithmetic operation.');\r\n }",
"protected function _prepareFlush() {\r\n\r\n }",
"protected function _syncTrapped() {}",
"function upgrade_590()\n {\n }",
"private function throwException()\n {\n throw new CacheException(\\odbc_errormsg(), (int) \\odbc_error());\n }",
"function upgrade_372()\n {\n }",
"function writeDB($dump_file, $aSystem, $aSecurity)\n {\n if (!$link = @mysql_connect($aSystem['db_host'] .':'. $aSystem['db_port'], $aSystem['db_user'], $aSystem['db_pass']))\n return 'e_mysql_connect'; // Error: MySQL connect\n\n if (!mysql_select_db($aSystem['db_name'], $link)) return 'e_mysql_no_db'; // Error: specified DB not exist\n\n if (!$r = @fopen($dump_file, 'r')) return 'e_mysql_file'; // Error: Cannot open file for reading\n\n $sql_query = '';\n $q = 0;\n $aTemp = array();\n\n\n\n$sql_statements = file_get_contents($dump_file);\n$arr_sql = preg_split('/;[\\n|\\n\\r]+/',$sql_statements);\n \n mysql_query(\"SET NAMES 'utf8' COLLATE 'utf8_general_ci'\");\n foreach ($arr_sql as $query)\n {\n $q++;\n $sql_query = str_replace('db_prefix_', $aSystem['db_prefix'], $query);\n\n if ( ! empty($sql_query))\n {\n $sql_rez = mysql_query($sql_query);\n\n if ( ! $sql_rez) return mysql_error() .\"<p>Query #\". $q .\"<hr />\". $sql_query .\"<hr /></p>\";\n }\n\n }\n\n/*\n while(($str = fgets($r, 4096)) !== false)\n {\n \tif (empty($str) || preg_match(\"/^(#|--|COMMIT)/\", $str))\n {\n $sql_query.= $str;\n if (!empty($sql_query))\n {\n $q++;\n $sql_query = str_replace('db_prefix_', $aSystem['db_prefix'], $sql_query);\n $sql_rez = mysql_query($sql_query);\n\n if (!$sql_rez) return mysql_error() .\"<p>Query #\". $q .\"<hr />\". $sql_query .\"<hr /></p>\";\n $aTemp[] = $sql_query;\n $sql_query = '';\n }\n }else{\n $sql_query .= trim($str);\n }\n }\n print_r($aTemp);\n*/\n// Add Super Admin\n $s = $aSecurity;\n $sql_query = sprintf(\"UPDATE %sAdmins SET `login`='%s', `pwd`=md5('%s'), `last_online`=NOW(), `email`='%s' WHERE `id`='1'\",\n $aSystem['db_prefix'], $s['admin_name'], $s['admin_pass'], $s['admin_mail']);\n $sql_rez = mysql_query($sql_query);\n\n if (!$sql_rez) return 'e_mysql_admin_add';\n\n// If no error - return TRUE\n return TRUE;\n fclose($r);\n mysql_close($link);\n }",
"public function testInvalidSerializedData()\n {\n $someData = 12;\n\n $serializer = ArrayObject::DEFAULT_SERIALIZER;\n $serializer = new $serializer;\n\n $data = new ArrayObject;\n $data->unserialize($serializer->serialize($someData));\n }",
"public function testExceptionOnPrematureDataRetrieval() // What a name\n\t{\n\t\t// no call to FACTFinder_Http_ParallelDataProvider::loadAllData();\n\t\t$result = $this->tagCloudAdapter->getTagCloud();\n\t}",
"public function testUpdateValuesTooShort(): void { }",
"function upgrade_400()\n {\n }",
"function upgrade_270()\n {\n }",
"function\tunbuche() {\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr.php::AbKorrPosten::unbuche(): begin\") ;\n\t\t$this->_buche( -1) ;\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr.php::AbKorrPosten::unbuche(): end\") ;\n\t}",
"function tideways_last_detected_exception()\n{\n}",
"protected function _writeCrossReferenceTable() {}",
"function __flip(&$tmp) {\r\r\n\t\tasido::trigger_abstract_error(\r\r\n\t\t\t__CLASS__,\r\r\n\t\t\t__FUNCTION__\r\r\n\t\t\t);\r\r\n\t\t}",
"private function reset_mbstring_encoding() {\n\t\t$this->mbstring_binary_safe_encoding( true );\n\t}",
"function yy_r18(){ $this->_retvalue = new SQL\\BeginTransaction($this->yystack[$this->yyidx + 0]->minor); }",
"private function readErrors()\n {\n $fh = fopen($this->logdir.\"hermes.log\", \"r\");\n if($fh == FALSE)\n return;\n if(flock($fh, LOCK_EX))\n {\n $line = fgets($fh);\n while($line != FALSE)\n {\n $pair = split(' ', $line);\n $this->errors[$pair[0]] = $pair[1]; //undefined offset whatever lol\n $line = fgets($fh);\n }\n flock($fh, LOCK_UN);\n }\n fclose($fh);\n }",
"public function testFailsToWakeUpIfCannotRestoreSettings()\n\t {\n\t\tdefine(\"EXCEPTION_CANNOT_SET_CONNECTION_SETTINGS\", 1);\n\n\t\t$serialized = serialize($this->object);\n\t\t$serialized = str_replace(\"s:20:\\\"character_set_client\\\";\", \"s:11:\\\"unknown_var\\\";\", $serialized);\n\t\t$this->object = unserialize($serialized);\n\t }",
"public function error498()\n {\n }",
"public function testUpdateValuesTooLong(): void { }",
"function iconvErrorHandler($no, $msg, $file, $line){\n if ($no === E_NOTICE) {\n $this->hasError = true;\n }\n //return true;\n }",
"public function free()\t\t{ return false; }",
"function upgrade_420()\n {\n }",
"function yy_r20(){ $this->_retvalue = new SQL\\CommitTransaction($this->yystack[$this->yyidx + 0]->minor); }",
"function repairTables(){\n\tglobal $vc;\n\treturn mysqli_query($vc,\"REPAIR TABLE checkin,volunteer,volunteerlog,volunteertask;\")!=false;\n}",
"function clear_raw_ref ( ) {\n\t\t$this->raw_ref = array ( \n\t\t\t'type' => '', \n\t\t\t'citeid' => '', \n\t\t\t'values'=>array() \n\t\t);\n\t}",
"function tideways_last_fatal_error()\n{\n}",
"function upgrade_630()\n {\n }",
"function phpgwapi_upgrade0_9_14_503()\n\t{\n\t\tif ($GLOBALS['phpgw_setup']->oProc->sType == 'pgsql')\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_addressbook','last_mod',array(\n\t\t\t\t'type' => 'int',\n\t\t\t\t'precision' => '4',\n\t\t\t));\n\t\t\t$GLOBALS['phpgw_setup']->oProc->query(\"UPDATE phpgw_addressbook SET last_mod=0\",__LINE__,__FILE__);\n\t\t\t$GLOBALS['phpgw_setup']->oProc->query(\"ALTER TABLE phpgw_addressbook ALTER COLUMN last_mod SET NOT NULL\",__LINE__,__FILE__);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_addressbook','last_mod',array(\n\t\t\t\t'type' => 'int',\n\t\t\t\t'precision' => '4',\n\t\t\t\t'nullable' => false,\n\t\t\t));\n\t\t}\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.504';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}",
"private function _loadDataToTemporaryTable(){\n\n }",
"public function testSendSyncReturningResponseLargeDataException()\n {\n $memoryLimit = ini_set('memory_limit', -1);\n try {\n $comment = fopen('php://temp', 'r+b');\n $fillerString = str_repeat('t', 0xFFFFFF);\n //fwrite($comment, $fillerString);\n for ($i = 0; $i < 256; $i++) {\n fwrite($comment, $fillerString);\n }\n unset($fillerString);\n fwrite(\n $comment,\n str_repeat('t', 0xFE/* - strlen('=comment=') */)\n );\n $argL = (double) sprintf('%u', ftell($comment));\n rewind($comment);\n\n $maxArgL = 0xFFFFFFFF - strlen('?comment=');\n $this->assertGreaterThan(\n $maxArgL,\n $argL,\n '$comment is not long enough.'\n );\n rewind($comment);\n $printRequest = new Request('/ip/arp/print');\n $printRequest->setQuery(Query::where('comment', $comment));\n $this->object->sendSync($printRequest);\n fclose($comment);\n //Clearing out for other tests.\n ini_set('memory_limit', $memoryLimit);\n $this->fail('Lengths above 0xFFFFFFFF should not be supported.');\n } catch (LengthException $e) {\n fclose($comment);\n //Clearing out for other tests.\n ini_set('memory_limit', $memoryLimit);\n $this->assertEquals(\n LengthException::CODE_UNSUPPORTED,\n $e->getCode(),\n 'Improper exception thrown.'\n );\n }\n }",
"public function removeNullBytes() {\r\n $this->contents = str_replace(\"\\0\", \"\", $this->contents);\r\n }",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function ensureConsistency()\n\t{\n\n\t}",
"public function prev(): void {\n // current position and then store its location\n if (fseek($this->fileHandle,\n ($this->position - $this->blockSize)) === 0) {\n // Set new location\n $this->updatePosition();\n $this->readBlock();\n } else {\n // Otherwise mark the position invalid and throw an exception\n $this->isValid = false;\n throw new OutOfBoundsException();\n }\n }",
"function avoid_duplicate_version($link, $data, $app_id, $app_version_id, $hash) // Colorize: green\n { // Colorize: green\n // Ignore PhpAlignmentVerifier [BEGIN] // Colorize: green\n $sql = \"SELECT\" // Colorize: green\n . \" hash\" // Colorize: green\n . \" FROM \" . DB_TABLE_APP_VERSIONS // Colorize: green\n . \" WHERE app_id = '\" . $link->real_escape_string($app_id) . \"'\" // Colorize: green\n . \" AND completed = '1'\" // Colorize: green\n . \" ORDER BY version DESC\" // Colorize: green\n . \" LIMIT 1\"; // Colorize: green\n // Ignore PhpAlignmentVerifier [END] // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n $result = $link->query($sql); // Colorize: green\n die_if_sql_failed($result, $link, $data, $sql); // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n if ($result->num_rows == 1) // Colorize: green\n { // Colorize: green\n $version_hash = $result->fetch_row()[0]; // Colorize: green\n $result->close(); // Colorize: green\n // Colorize: green\n if ($version_hash == $hash) // Colorize: green\n { // Colorize: green\n // Ignore PhpAlignmentVerifier [BEGIN] // Colorize: green\n $sql = \"DELETE FROM \" . DB_TABLE_APP_FILES // Colorize: green\n . \" WHERE app_version_id = '\" . $link->real_escape_string($app_version_id) . \"'\"; // Colorize: green\n // Ignore PhpAlignmentVerifier [END] // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n $result = $link->query($sql); // Colorize: green\n die_if_sql_failed($result, $link, $data, $sql); // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n // Ignore PhpAlignmentVerifier [BEGIN] // Colorize: green\n $sql = \"DELETE FROM \" . DB_TABLE_APP_VERSIONS // Colorize: green\n . \" WHERE id = '\" . $link->real_escape_string($app_version_id) . \"'\"; // Colorize: green\n // Ignore PhpAlignmentVerifier [END] // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n $result = $link->query($sql); // Colorize: green\n die_if_sql_failed($result, $link, $data, $sql); // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n return false; // Colorize: green\n } // Colorize: green\n } // Colorize: green\n // Colorize: green\n // Colorize: green\n // Colorize: green\n return true; // Colorize: green\n }",
"function upgrade_340()\n {\n }",
"public function stream_write($data) {\n $stop_data = explode(\"\\n\", $data); //creates array of stop data from stream\n \n // $buff contains the incomplete last line of data that was present when\n // the last batch of data was written to the database (or nothing if there\n // were no incomplete lines). This is therefore prefixed to the first item\n // in the $stop_data array\n $stop_data[0] = $this->buff.$stop_data[0];\n \n // Save the last line of this batch of data to the buffer (in case it is\n // incomplete. Will be prefixed to first item in next batch\n $stop_data_count = count($stop_data);\n $this->buff = $stop_data[$stop_data_count - 1];\n unset($stop_data[$stop_data_count - 1]); //delete last item in $stop_data\n\n $insert = \"INSERT INTO \".$this->temporary_database.\" \".$this->stop_reference_schema;\n\n // For each stop_data item in turn:\n for ($i=0; $i < count($stop_data); $i++) {\n //remove characters from front and back ('[',']' and newline character)\n $trimmed = trim($stop_data[$i], \"[]\\n\\r\"); \n\n $entry = str_getcsv($trimmed); //parses the CSV string into an array\n\n // To be of interest, the line must have 12 pieces of data, and should \n // exclude the URA Version array (must start with a '0')\n if(count($entry) == 12 && $entry[0] == 0) {\n //place quotes around strings / escape special characters\n\t $entry[1] = $this->DBH->quote($entry[1]); //stoppointname\n\t $entry[2] = $this->DBH->quote($entry[2]); //stopid\n\t $entry[3] = $this->DBH->quote($entry[3]); //stopcode1\n\t $entry[4] = $this->DBH->quote($entry[4]); //stopcode2\n\t $entry[5] = $this->DBH->quote($entry[5]); //stopointtype\n\t $entry[6] = $this->DBH->quote($entry[6]); //towards\n\t $entry[8] = $this->DBH->quote($entry[8]); //stoppointindicator\n\n\t // Set up string to insert values\n $insert_entry = $insert.\"values ($entry[1],$entry[2],$entry[3],\"\n\t \t\t \t .\"$entry[4],$entry[5],$entry[6],$entry[7],\"\n\t\t\t\t .\"$entry[8],$entry[9],$entry[10],$entry[11])\";\n\n\t $this->database->execute_sql($insert_entry);\n }\n }\n return strlen($data);\n }",
"function dead_db()\n {\n }",
"function PGReserveData()\r\n\t{\r\n\t}",
"function repair($tables)\n\t{\n\t\t$result = $this->db->query( 'VACUUM FULL ' . $tables );\n\n\t\treturn $result;\n\t}",
"function upgrade_290()\n {\n }",
"function reset_mbstring_encoding() {\r\n\t\tmbstring_binary_safe_encoding( true );\r\n\t}",
"protected function _write() {}",
"private function resetfile_pointer()\n {\n $this->file_pointer = 0;\n }",
"function yy_r22(){ $this->_retvalue = new SQL\\RollbackTransaction($this->yystack[$this->yyidx + 0]->minor); }",
"protected function cleanData(&$lines) {\n\n if (empty($lines)) return;\n\n // Currently, we only need to strip a BOM if it exists.\n // Thanks to Derik Badman (http://madinkbeard.com/) for finding the\n // bug and suggesting this fix:\n // http://blog.philipp-michels.de/?p=32\n $first = $lines[0];\n if (substr($first, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {\n $lines[0] = substr($first, 3);\n }\n }",
"private function _preLoadReset() {\n\t\t$this->_amountProcessedLines = $this->_amountReadLines = 0;\n\t\t$this->_linesInvalidSize = $this->_lines = [];\n\t}",
"function resetErrorData()\n {\n $this->errorData = array();\n }",
"function ClearError() \r\n{ \r\n$this->LastError = null; \r\n}",
"protected function prepareUpdateData(){\n\t\tthrow new Exception('Unknown Error!', REST_ER_PAGE_NOTFOUND);\n\t}",
"function upgrade_370()\n {\n }",
"public function checkRefDuplication() {\n $refArray = array();\n foreach ($this->elementData as $data) {\n $value = trim($data['ref']);\n if ($value) {\n array_push($refArray, $value);\n }\n }\n\n $refError = array_diff_assoc($refArray, array_unique($refArray));\n foreach ($refError as $key => $value) {\n $this->error[$key+1][]['message'] = 'Internal Reference duplication. Please check your CSV file.';\n }\n }",
"function sqlite_udf_decode_binary($data)\n{\n}",
"function composr_error_handler($errno, $errstr, $errfile, $errline)\n{\n if (((error_reporting() & $errno) !== 0) && (strpos($errstr, 'Illegal length modifier specified')/*Weird random error in dev PHP version*/ === false) || ($GLOBALS['DYING_BADLY'])) {\n // Strip down path for security\n if (substr(str_replace(DIRECTORY_SEPARATOR, '/', $errfile), 0, strlen(get_file_base() . '/')) == str_replace(DIRECTORY_SEPARATOR, '/', get_file_base() . '/')) {\n $errfile = substr($errfile, strlen(get_file_base() . '/'));\n }\n\n // Work out the error type\n if (!defined('E_RECOVERABLE_ERROR')) {\n define('E_RECOVERABLE_ERROR', 4096);\n }\n switch ($errno) {\n case E_RECOVERABLE_ERROR: // constant not defined in all php versions but we defined it\n case E_USER_ERROR:\n case E_PARSE:\n case E_CORE_ERROR:\n case E_COMPILE_ERROR:\n case E_ERROR:\n $type = 'error';\n $syslog_type = LOG_ERR;\n break;\n case -123: // Hacked in for the memtrack extension, which was buggy\n case E_CORE_WARNING:\n case E_COMPILE_WARNING:\n case E_USER_WARNING:\n case E_WARNING:\n $type = 'warning';\n $syslog_type = LOG_WARNING;\n break;\n case E_USER_NOTICE:\n case E_NOTICE:\n $type = 'notice';\n $syslog_type = LOG_NOTICE;\n break;\n //case E_STRICT: (constant not defined in all php versions)\n //case E_DEPRECATED: (constant not defined in all php versions)\n //case E_USER_DEPRECATED: (constant not defined in all php versions)\n default: // We don't know the error type, or we know it's incredibly minor, so it's probably best to continue - PHP will output it for staff or if display_php_errors is on\n return false;\n }\n\n $GLOBALS['DYING_BADLY'] = false; // So error suppress works again\n if (strpos($errstr, 'Allowed memory') !== false) {\n global $REQUIRED_CODE;\n if (!array_key_exists('failure', $REQUIRED_CODE)) {\n $php_error_label = $errstr . ' in ' . $errfile . ' on line ' . strval($errline) . ' @ ' . get_self_url_easy(true); // We really want to know the URL where this is happening (normal PHP error logging does not include it)!\n if ((function_exists('syslog')) && (GOOGLE_APPENGINE)) {\n syslog($syslog_type, $php_error_label);\n }\n if (php_function_allowed('error_log')) {\n @error_log('PHP ' . ucwords($type) . ': ' . $php_error_label, 0);\n }\n critical_error('EMERGENCY', $errstr . escape_html(' [' . $errfile . ' at ' . strval($errline) . ']'));\n }\n }\n require_code('failure');\n _composr_error_handler($type, $errno, $errstr, $errfile, $errline, $syslog_type);\n }\n\n return false;\n}",
"function msgsrv_last_error () {}",
"public function reset()\n {\n $this->cbuff = [];\n }",
"private function cObjData_reset()\n {\n $this->pObj->cObj->data = $this->cObjDataBak;\n\n // DRS\n if ( $this->pObj->b_drs_cObjData )\n {\n $prompt = implode( ', ', array_keys( $this->pObj->cObj->data ) );\n $prompt = 'Reset - cObj-data became this elements: ' . $prompt;\n t3lib_div::devlog( '[INFO/COBJ] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS\n }",
"private function check_DB() {\n $this->record_progress(\n \"Step 4: Identifying which mutations are already in database\");\n\n $path_valid = $this->path_valid;\n $path_new_input = $this->path_new_input;\n\n $table = \"NewSpliceman\";\n\n $this->record_progress(\"1\");\n\n $read_valid = fopen($path_valid, \"r\") or \n die (\"Unable to open file!\");\n $write_new_input = fopen($path_new_input, \"a\") or \n die (\"Unable to open file!\");\n\n $this->record_progress(\"2\");\n\n $valid_mutations = false;\n\n while (! feof($read_valid)) {\n $this->record_progress(\"3\");\n $mutation = fgets($read_valid);\n if (ctype_space($mutation)) {\n break;\n }\n $mutation_data = explode(\"\\t\", $mutation);\n $this->record_progress(\"4\");\n if ($this->is_valid($mutation_data)) {\n $this->record_progress(\"5\");\n $db_key = \n $mutation_data[0].\"_\".$mutation_data[5].\"_\".\n $mutation_data[6].\"_\".$mutation_data[7].\"_\".\n $mutation_data[11].\"_\".$mutation_data[12];\n // Removes newline characters, if they are present\n $db_key = str_replace(\"\\n\", \"\", $db_key);\n $this->record_progress(\"6\");\n $result = DB::table($table)->\n where('chr_loc_wild_mut_transcript_exon', $db_key)->\n first();\n $valid_mutations = true;\n $this->record_progress(\"8\");\n if (count($result) == 0) {\n fwrite($write_new_input, $mutation);\n }\n $this->record_progress(\"9\");\n } \n } \n\n $this->record_progress(\"10\");\n fclose($read_valid);\n fclose($write_new_input);\n\n $this->record_progress(\"11\");\n }",
"public function testNoExceptionOnBadRaceResultDriverIndex()\n {\n // The path to the data source\n $file_path = realpath(\n __DIR__.'/logs/assettocorsa/'\n .'qualify.and.race.modified.with.-1.result.position.json');\n\n $session = Data_Reader::factory($file_path)->getSession();\n }",
"public function largeDataIsStored() {}",
"public function largeDataIsStored() {}",
"public function largeDataIsStored() {}",
"public function largeDataIsStored() {}",
"protected static function restore() {}",
"public function clean() {\n $this->data = \"\";\n $this->currentRow = 1;\n $this->curPosition = 0;\n }",
"protected function _refine() {\n\n\t}",
"private function clearDataBuffer( )\n {\n $this->data_buffer = array( );\n $this->err_message = '';\n }",
"public function fixObject(){\n\t\t//Ex : cadre et texte d'entete\n\t}",
"abstract protected function safetyCheck() : self;",
"private function reset() {\n\t\tif ($this->is_open()) @fclose($this->FILE);\n\t\tunset($this->FILE, $this->HEADERS, $this->DATA);\n\t\t$this->HEADERS = array();\n\t\t$this->DATA = array();\n\t\t$this->ISOPEN = false;\n\t\t$this->ROW_COUNT=0;\n\t\t$this->STATE=CSVReader::STATE_OK;\n\t\t$this->default_value = null;\n\t\t$this->cache_rows = true;\n\t}",
"public function rewind() {}",
"public function rewind() {}",
"public function rewind() {}",
"public function rewind() {}",
"public function rewind() {}",
"public function rewind() {}"
] | [
"0.5804817",
"0.57458824",
"0.57048184",
"0.5462207",
"0.5459515",
"0.54338557",
"0.5433023",
"0.5414945",
"0.52605575",
"0.52605575",
"0.514539",
"0.5081045",
"0.50773424",
"0.5064024",
"0.5041485",
"0.5029742",
"0.5029216",
"0.5015172",
"0.49497107",
"0.49293575",
"0.48862234",
"0.48706874",
"0.48655936",
"0.48577207",
"0.484423",
"0.48368698",
"0.483221",
"0.4825737",
"0.4814142",
"0.4803757",
"0.48004776",
"0.4798813",
"0.4788504",
"0.47884858",
"0.47871494",
"0.47805056",
"0.4776064",
"0.476474",
"0.47538817",
"0.47358444",
"0.47239035",
"0.47223493",
"0.4718647",
"0.47138512",
"0.47055042",
"0.47044152",
"0.4704195",
"0.47028178",
"0.47016898",
"0.46984237",
"0.4697386",
"0.46972835",
"0.46952063",
"0.4689653",
"0.4687845",
"0.4687845",
"0.4687845",
"0.4687845",
"0.46836078",
"0.46813816",
"0.46766943",
"0.4674242",
"0.46628407",
"0.46602252",
"0.46582362",
"0.46581358",
"0.46511298",
"0.4649939",
"0.46379247",
"0.46332365",
"0.4631397",
"0.46161222",
"0.4608085",
"0.46015728",
"0.45930183",
"0.45709318",
"0.4566368",
"0.45663378",
"0.4565215",
"0.45431152",
"0.45395437",
"0.45395184",
"0.45393258",
"0.4537412",
"0.4537142",
"0.4537142",
"0.4536792",
"0.4536792",
"0.4535997",
"0.4535274",
"0.45348918",
"0.45341468",
"0.45311707",
"0.45311087",
"0.4528237",
"0.45223096",
"0.45223096",
"0.45208225",
"0.45208225",
"0.45208225",
"0.45208225"
] | 0.0 | -1 |
/ |========================================================== | Return laboratory level | public function getOwnLaboratoryLevel($teamId)
{
$queryString="SELECT *
FROM team_laboratory,infrastructure_laboratory
WHERE team_laboratory.laboratory_id=infrastructure_laboratory.laboratory_id
AND team_id=$teamId";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function level() {\n\n\t\t$this->count_attempts( 300 );\n\n\t\tswitch ( TRUE ) {\n\t\t\tcase ( $this->attempts > 2 && $this->attempts <= 100 ) :\n\t\t\t\treturn Logger::NOTICE;\n\t\t\tcase ( $this->attempts > 100 && $this->attempts <= 590 ) :\n\t\t\t\treturn Logger::WARNING;\n\t\t\tcase ( $this->attempts > 590 && $this->attempts <= 990 ) :\n\t\t\t\treturn Logger::ERROR;\n\t\t\tcase ( $this->attempts > 990 ) :\n\t\t\t\treturn Logger::CRITICAL;\n\t\t}\n\n\t\treturn 0;\n\t}",
"public function getLevel() {}",
"function getLevel();",
"public function getLevel();",
"public function getLevel();",
"public function getLevel()\n {\n $value = $this->get(self::LEVEL);\n return $value === null ? (integer)$value : $value;\n }",
"public function level()\n {\n // Define variables for use\n $counter = 0;\n $total_checklist_points = $this->checklist->sections->sum('total_points');\n $unwanted = array(Question::idById('providersenrolled'), Question::idById('correctiveactionproviders')); // do not contribute to total score\n $notapplicable = Question::idById('dbsapply'); // dbsapply will reduce total points to 65 if corresponding answer = 0\n // Begin processing\n $reductions = 0;\n $calculated_points = 0.00;\n $percentage = 0.00;\n $sqtns = $this->sqs()->whereNotIn('question_id', $unwanted) // remove non-contributive questions\n ->join('survey_data', 'survey_questions.id', '=', 'survey_data.survey_question_id')\n ->whereIn('survey_data.answer', Answer::lists('score'));\n $calculated_points = $sqtns->whereIn('question_id', array_unique(DB::table('question_responses')->lists('question_id')))->sum('answer'); \n if($sq = SurveyQuestion::where('survey_id', $this->id)->where('question_id', $notapplicable)->first())\n {\n if($sq->sd->answer == '0')\n $reductions++;\n }\n \n if($reductions>0)\n $percentage = round(($calculated_points*100)/($total_checklist_points-5), 2);\n else\n $percentage = round(($calculated_points*100)/$total_checklist_points, 2);\n return $percentage;\n }",
"public function getLevel() {\n\t\treturn isset($this->level) ? (int) $this->level : 1;\n\t}",
"public function getLevel(): int {\n return $this->level;\n\n }",
"public function getLevel()\n {\n return$this->level;\n }",
"public function getLevel(): int\n {\n return $this->level;\n }",
"public function getLevel(): int\n {\n return $this->level;\n }",
"public function loadLevel() {\n\t\tswitch(true){\n\t\t\tcase ($this->data['level_pts'] >= 5000):\n\t\t\t\t$level = floor($this->data['level_pts'] / 1000) + 7;\n\t\t\t\tbreak;\n\t\t\tcase ($this->data['level_pts'] >= 1000):\n\t\t\t\t$level = floor($this->data['level_pts'] / 500) + 2;\n\t\t\t\tbreak;\n\t\t\tcase ($this->data['level_pts'] >= 600):\n\t\t\t\t$level = 3;\n\t\t\t\tbreak;\n\t\t\tcase ($this->data['level_pts'] >= 300):\n\t\t\t\t$level = 2;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$level = 1;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn $level;\n\t}",
"public function getLevel() : int\n\t{\n\t\treturn $this->level;\n\t}",
"public function getLevel()\n {\n return $this->level;\n }",
"public function getLevel()\n {\n return $this->level;\n }",
"public function getLevel()\n {\n return $this->level;\n }",
"public function getLevel()\n {\n return $this->level;\n }",
"public function getLevel()\n {\n return $this->level;\n }",
"public function getLevel()\n {\n return $this->level;\n }",
"public function getLevel()\n {\n return $this->level;\n }",
"public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }",
"public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }",
"public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }",
"public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }",
"public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }",
"public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }",
"public function GetLevel()\n {\n return $this->level;\n }",
"public static function currentLevel()\n\t{\n\t\tif (!auth()->check()) return 0;\n\t\t$member = \\PanicHDMember::find(auth()->user()->id);\n\t\tif ($member->isAdmin()){\n\t\t\treturn 3;\n\t\t}elseif($member->isAgent()){\n\t\t\tif (session()->exists('panichd_filter_currentLevel') and session('panichd_filter_currentLevel')==1){\n\t\t\t\treturn 1;\n\t\t\t}else{\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t}else\n\t\t\treturn 1;\n\t}",
"public function getLevel() {\n return intval($this->level);\n }",
"public function getLevel() {\n return $this->level;\n }",
"public function getCompetencyLevel() \n {\n $this->db->select(\"tcl_competency_code, tcl_competency_code ||' - '|| tcl_competency_desc as tcl_competency_code_desc, tcl_service_year_from, tcl_service_year_to,tcl_ordering\");\n $this->db->from('ims_hris.training_competency_level');\n\t\t$this->db->where(\"tcl_status = 'Y'\");\n $this->db->order_by('tcl_ordering');\n $q = $this->db->get();\n \n return $q->result_case('UPPER');\n }",
"protected function get_level()\n {\n return $this->m_voxy_connect->_get_list_voxy_level();\n }",
"public function getLevel()\n {\n return isset($this->level) ? $this->level : null;\n }",
"function getLevel() {\n\t\treturn $this->_level;\n\t}",
"public function getLevel()\n {\n return PMA_Message::$level[$this->getNumber()];\n }",
"public function getRiskLevel() {\r\n \tswitch ($this->riskLevel) {\r\n \t\tcase 1 :\r\n \t\t\treturn 'Low risk';\r\n \t\tcase 2 :\r\n \t\t\treturn 'Medium risk';\r\n \t\tcase 3 :\r\n \t\t\treturn 'High risk';\r\n \t}\r\n \treturn 'Unknown Risk Level';\r\n }",
"private function getActualLevel(): int\n {\n return (int)array_key_last($this->levels);\n }",
"public function getLevel()\n\t{\n $criteria = new CDbCriteria;\n $criteria->condition = \" idUser = $this->idUser \";\n $criteria->order = ' t.level DESC ';\n \n $userCoins = VerifIdentity::model()->find($criteria);\n \n return $userCoins === null ? 1 : $userCoins['level']; \n }",
"function getQualificationLevel($game_id, $round_number, $company_id){\r\n\t\t\t$qualification=new Model_DbTable_Outcomes_Rd_HrData();\r\n\t\t\t$results=$qualification->getHrDataCompanyCualification($game_id, $round_number, $company_id);\r\n\t\t\tif($results['value']<0.87){\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn (1+(3*exp($results['value'])-3*exp(1)))*100;\r\n\t\t\t}\r\n\t\t}",
"private static function getLevel() {\n if (empty(static::$level)) {\n static::$level = Conf::getIniVal(Conf::LOG_LEVEL, 3);\n }\n return static::$level;\n }",
"public function totalLevel()\n {\n if ($this->noTotalLevelFound) {\n $sum = 0;\n foreach($this instanceof OSRSPlayer ? OSRSHiscores::SKILL_MAP : RS3Hiscores::SKILL_MAP as $skill) {\n if ($skill === 'Overall') {\n // 'Overall' is a cumulative so we skip it for the sum.\n continue;\n }\n $sum += $this->get($skill)->level ?: 1;\n }\n return $sum;\n }\n return $this->get('overall')->level;\n }",
"public function getLevel() : Level {\r\n\r\n return $this->level;\r\n\r\n }",
"function get_complevel() {\n\t$uname = posix_uname();\n\tswitch ($uname['sysname']) {\n\t case 'Linux':\n\t\t$cl = (1 - $this->linux_loadavg()) * 10;\n\t\t$level = (int)max(min(9, $cl), 0);\n\t\tbreak;\n\t case 'FreeBSD':\n\t\t$cl = (1 - $this->freebsd_loadavg()) * 10;\n\t\t$level = (int)max(min(9, $cl), 0);\n\t\tbreak;\n\t default:\n\t\t$level = 3;\n\t\tbreak;\n\t}\n\treturn $level;\n }",
"public function getPercentLevel()\n { \n $experience_level = $this->getExperienceShortMax();\n\n $experience_current_level = $this->getExperienceShort();\n\n $percent = ($experience_current_level * 100)/$experience_level;\n\n return $percent;\n }",
"public function level($skills)\n {\n return $this->getStat('level', $skills);\n }",
"public function get_level_name() { \n\n\t\tif ($this->level >= '75') { \n\t\t\treturn _('All');\n\t\t}\n\t\tif ($this->level == '5') { \n\t\t\treturn _('View'); \n\t\t}\n\t\tif ($this->level == '25') { \n\t\t\treturn _('Read');\n\t\t}\n\t\tif ($this->level == '50') { \n\t\t\treturn _('Read/Write');\n\t\t}\n\n\t}",
"public function levelName() {\n if (isset($this->level)) return self::$levels[$this->level];\n }",
"public function getLevelLabelAttribute()\n {\n switch ($this->level){\n case self::LEVEL_ADMIN:\n return 'Amministratore';\n break;\n case self::LEVEL_USER:\n default:\n return 'Utente';\n break;\n }\n }",
"function checkStatePoints($level)\n {\n $pontosStatus = 0;\n for($i=2;$i<=$level;$i++)\n {\n if($i <= 70) {\n $pontosStatus = $pontosStatus + 5;\n } else if(($i > 70) and ($i <= 90)) {\n $pontosStatus = $pontosStatus + 7;\n } else {\n $pontosStatus = $pontosStatus + 10;\n }\n\n }\n return $pontosStatus;\n }",
"function level($Pts){\n $grid = array(\n 1 => 50,\n 2 => 200,\n 3 => 600,\n 4 => 1000,\n 5 => 2500\n );\n $lvl = 0;\n foreach($grid as $k=>$v):\n if($Pts >= $v){\n $lvl = $k;\n }\n endforeach;\n return 'lvl '.$lvl;\n }",
"public function getLevel()\n {\n $level = 0;\n if (!is_null($this->boss)) {\n $memberTmp = $this;\n while (!is_null($memberTmp = $memberTmp->getBoss())) {\n $level++;\n } ;\n }\n\n return $level;\n }",
"public function getHitLevel();",
"function getLevel()\n {\n return $this->errorLevel;\n }",
"public function getPlayerLevel()\n {\n return $this->get(self::_PLAYER_LEVEL);\n }",
"public function getLevel()\n\t{\n\t\treturn $this->token->level;\n\t}",
"public function getOppoLevel()\n {\n return $this->get(self::_OPPO_LEVEL);\n }",
"public function getLevelString() {\n\n switch ($this->getLevel()) {\n\n case self::LEVEL_REGISTERED:\n return 'Registered';\n case self::LEVEL_USER:\n return 'User';\n case self::LEVEL_ADMINISTRATOR:\n return 'Administrator';\n default:\n return 'Unknown';\n }\n\n }",
"function getLevel($gid)\n {\n return 0;\n }",
"public function getReadableLevel()\n {\n // we need to keep LEVEL array in this inverted format because of Symfony form elements\n return array_search($this->level, self::LEVELS);\n }",
"public static function maxLevel()\n\t{\n\t\tif (!auth()->check()) return 0;\n\t\t$member = \\PanicHDMember::find(auth()->user()->id);\n\t\tif ($member->isAdmin()){\n\t\t\treturn 3;\n\t\t}elseif($member->isAgent()){\n\t\t\treturn 2;\n\t\t}else\n\t\t\treturn 1;\n\t}",
"private function getSkillPercent($level){\t\n\t\t//echo sprintf('Level %s: %s | ', $level, $value);\t\n\t\treturn 1 + ((5 * $level) / 100);\t\n\t}",
"public function getDefaultLevel()\n {\n return 5; # level binh thuong\n }",
"function SCn_eco_cra($level)\n{\n\treturn $level*100;\n}",
"public function level(): array {\n return [\n 'confirmation',\n 'information',\n 'warning',\n 'error',\n ];\n }",
"public static function getLevels()\n {\n return [\n Bug::ERROR,\n Bug::SUGGEST,\n Bug::EMERGENCY,\n Bug::DANGER,\n Bug::WARNING,\n Bug::INVALID,\n ];\n }",
"public function luxScore();",
"function verify_level($level) // Colorize: green\n { // Colorize: green\n return isset($level) // Colorize: green\n && // Colorize: green\n is_int($level) // Colorize: green\n && // Colorize: green\n $level >= 0 // Colorize: green\n && // Colorize: green\n $level <= 1; // Colorize: green\n }",
"public function getOrganizerLevel() \n {\n $this->db->select(\"tol_code, tol_code ||' - '|| tol_desc as tol_code_desc\");\n $this->db->from('ims_hris.training_organizer_level');\n $this->db->order_by('tol_code');\n $q = $this->db->get();\n \n return $q->result_case('UPPER');\n }",
"function user_level () {\r\n\t$info = user_info();\r\n\treturn (isset($info[3]) ? $info[3] : 0);\r\n}",
"public function getSuccessLevel()\n {\n $permitsAwarded = $this->getPermitsAwarded();\n\n $successLevel = self::SUCCESS_LEVEL_PARTIAL;\n if ($permitsAwarded == 0) {\n $successLevel = self::SUCCESS_LEVEL_NONE;\n } elseif ($this->permitsRequired == $permitsAwarded) {\n $successLevel = self::SUCCESS_LEVEL_FULL;\n }\n\n return $successLevel;\n }",
"public function hasLaboratory(){\n return $this->_has(24);\n }",
"public function level($n) {\n\t\treturn $this->sets[':default']->level($n);\n\t}",
"public function getPowerLevel(){\n\t\t$request = $this->_sendPacketToController(self::GET_POWER_LEVEL);\n\t\tif ($request->getState() == self::STATE_OK) // If the packet is send sucefully\n\t\t\treturn $this->_getResponse();\n\t\telse\n\t\t\treturn $request;\n\t}",
"function getUserLevel() {\n\t\tif(!$this->user_level_id) {\n\t\t\t$this->sql(\"SELECT access_level_id FROM \".UT_USE.\" WHERE id = \".$this->user_id);\n\t\t\t$this->user_level_id = $this->getQueryResult(0, \"access_level_id\");\n \t\t}\n\t\treturn $this->user_level_id;\n\t}",
"public function getVipLevel()\n {\n return $this->VipLevel;\n }",
"public function getCourseLevels()\n {\n $studentModel = new StudentModel();\n return $studentModel->getCourseLevels();\n }",
"public function getLevel() {\n\t\tif (empty($this->_level) && $this->_hasCategory) {\n\t\t\t$this->_level = $this->_getCategory()->getLevel();\n\t\t}\n\t\t//Remove 1 level, Home is considered L1.\n\t\treturn $this->_level -1;\n\t}",
"public function get_luminosity(): int\n {\n // $res is a int;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::LUMINOSITY_INVALID;\n }\n }\n $res = $this->_luminosity;\n return $res;\n }",
"public function getCurrentStatus(){\n\t\t/* $status = \"Unknown\";\t\n\t\tif($this->reliever_approve === NULL)\n\t\t\treturn \"Waiting on Reliever\";\n\t\tif($this->sup_approve === NULL)\n\t\t\treturn \"Waiting on Supervisor\";\n\t\tif($this->hr_approve === NULL)\n\t\t\treturn \"Waiting on HR\";\n\t\treturn $status; */\n\t\tswitch($this->next_lvl_id){\n\t\t\tcase HrisAccessLvl::$ULTIMATELY_APPROVED:\n\t\t\t\t$status = \"Approved\";\n\t\t\tbreak;\n\t\t\tcase HrisAccessLvl::$ULTIMATELY_DENIED:\n\t\t\t\t$status = \"Denied\";\n\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:$status=\"\".$this->nextLvl->status;\n\t\t}\n\t\treturn $status;\t\t\n\t}",
"public function level() {\n\t\t//assign public class values to function variable\n\t\t$data = $this->data;\n\t\t$data['common_data'] = $this->common_data;\n\t\t$data['page'] = 'tutor_level';\n\t\t$data['pageName'] = 'My Tutor Level';\n\t\tif($data['common_data']['user_data']['role'] == INACTIVE_STATUS_ID){\n\t\t\theader(\"Location: \".ROUTE_PROFILE);\n\t\t\tdie();\n\t\t}\n\t\t$data['tutor_details'] = $this->profile_model->getTutorDetailsById($data['common_data']['user_id']);\n\t\t$data['avg_rating'] = $this->reviews_model->getAvgRatingByTutorId($data['common_data']['user_id']);\n\t\tif(empty($data['tutor_details'])){\n\t\t\t$level_type = ($data['common_data']['user_data']['role'] == STUDENT)? OPEN_STAR:TIER;\n\t\t\t// get level\n\t\t\t$data['tutor_level'] = $this->profile_model->getTutorFirstLevel($level_type);\n\t\t} else {\n\t\t\t// get level\n\t\t\t$data['tutor_level'] = $this->profile_model->getLevelById($data['tutor_details']['level_id']);\n\t\t}\n\t\t$template['body_content'] = $this->load->view('frontend/profile/level', $data, true);\t\n\t\t$this->load->view('frontend/layouts/template', $template, false);\n\t}",
"abstract public function getMinimumLevel()\n\t{\n\t\treturn 0.5;\n\t}",
"function sci_building_level($userid,$id)\n {\n $db3 = new cl_extended_database;\n $db3->query(\"SELECT level FROM user_sci WHERE userid=$userid AND sciid=$id\"); $this->err();\n if($db3->numrows() <= 0)\n {\n unset($db3);\n //echo \"level 0<br>\";\n return 0;\n }\n else\n {\n $row = $db3->fetch();\n unset($db3);\n // echo \"level is \".$row['level'].\"<br>\";\n return $row['level'];\n }\n return -1;\n }",
"public function getLogLevel()\r\n {\r\n return $this->level;\r\n }",
"public function getColorRisk(){\t\n\t\tswitch ($this->severity) {\n\t\t\tcase self::SEVERITY_EXTREME:\n\t\t\t\treturn self::SEVERITY_EXTREME_COLOR_RGB;\n\t\t\t\tbreak;\n\t\t\tcase self::SEVERITY_SEVERE:\n\t\t\t\treturn self::SEVERITY_SEVERE_COLOR_RGB;\n\t\t\t\tbreak;\n\t\t\tcase self::SEVERITY_MODERATE:\n\t\t\t\treturn self::SEVERITY_MODERATE_COLOR_RGB;\n\t\t\t\tbreak;\n\t\t\tcase self::SEVERITY_MINOR:\n\t\t\t\treturn self::SEVERITY_MINOR_COLOR_RGB;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new \\Exception('Color Risk doesnt exist');\n\t\t}\n\t}",
"public function getBibliographicLevel()\n {\n $leader = $this->marcRecord->getLeader();\n $biblioLevel = strtoupper($leader[7]);\n\n switch ($biblioLevel) {\n case 'M': // Monograph\n return \"Monograph\";\n case 'S': // Serial\n return \"Serial\";\n case 'A': // Monograph Part\n return \"MonographPart\";\n case 'B': // Serial Part\n return \"SerialPart\";\n case 'C': // Collection\n return \"Collection\";\n case 'D': // Collection Part\n return \"CollectionPart\";\n default:\n return \"Unknown\";\n }\n }",
"public function initializeSecurityLevel() {\n\t\t// Standart level (GREEN).\n\t\t$this->securityLevel = self::SECURITYLEVEL_GREEN;\n\n\n\t\tif($this->XSSReport !== false) {\n\t\t\t$xssSecurityLevel = $this->XSSReport->getSecurityLevel();\n\t\t\tif($xssSecurityLevel < $this->securityLevel)\n\t\t\t\t$this->securityLevel = $xssSecurityLevel;\n\t\t}\n\t\t\t\n\t\tif($this->SQLInjectionReport !== false) {\n\t\t\t$sqlinjSecurityLevel = $this->SQLInjectionReport->getSecurityLevel();\n\t\t\tif($sqlinjSecurityLevel < $this->securityLevel)\n\t\t\t\t$this->securityLevel = $sqlinjSecurityLevel;\n\t\t}\n\t\t\t\n\t}",
"public function level($uid = 0)\r\n {\r\n global $db, $_SMALLURL;\r\n if ($uid === 0) {\r\n if (isset($_SMALLURL['UID'])) {\r\n $uid = $_SMALLURL['UID'];\r\n }\r\n }\r\n $udat = db::get_array(\"users\", array(\"id\" => $uid), \"role\");\r\n if (count($udat) > 0) {\r\n $role = $udat[0]['role'];\r\n $rdat = db::get_array(\"roles\", array(\"id\" => $role));\r\n if (count($rdat) > 0) {\r\n return (int)$rdat[0]['level'];\r\n } else {\r\n return 0;\r\n }\r\n } else {\r\n return 0;\r\n }\r\n }",
"public function getAdminLevel(){\n \n $userId = Auth::user()->id;\n // admin or not\n $level = 99;\n $user = DB::table('admins')->where('uid', $userId)->first();\n if ($user !== null) {\n $level = $user->level;\n }\n\n return $level;\n }",
"public static function getUserLevel(){\n if (self::isSuper()){\n return \"super\";\n }\n if (self::isAdmin()){\n return \"admin\";\n }\n if (self::isUser()){\n return \"user\";\n }\n return null;\n }",
"public function groupAccessLevel(){\n\t\n\t global $db;\n\t \n\t #see if user is guest, if so, they have zero-level access.\n\t\tif($this->user == \"guest\"){\n\t\t $getAccessLevel = 0;\n\t\t return($getAccessLevel);\n\t\t}else{\n\t \t$db->SQL = \"SELECT Level FROM ebb_groups where id='\".$this->gid.\"' LIMIT 1\";\n\t\t\t$getAccessLevel = $db->fetchResults();\n\n\t\t\treturn($getAccessLevel['Level']);\n\t\t}\n\t}",
"function get_status_lima($nilai) {\r\n\t\t\r\n\t\tif ($nilai < 0.6)\r\n\t\t\t$hasil = \"LoS A\";\r\n\t\telse if ($nilai >= 0.6 && $nilai < 0.7)\r\n\t\t\t$hasil = \"LoS B\";\r\n\t\telse if ($nilai >= 0.7 && $nilai < 0.8)\r\n\t\t\t$hasil = \"LoS C\";\r\n\t\telse if ($nilai >= 0.8 && $nilai < 0.9)\r\n\t\t\t$hasil = \"LoS D\";\r\n\t\telse if ($nilai >= 0.9 && $nilai < 1.0)\r\n\t\t\t$hasil = \"LoS E\";\r\n\t\telse if ($nilai >= 1.0)\r\n\t\t\t$hasil = \"LoS F\";\r\n\r\n\t\treturn $hasil;\r\n\t}",
"public function getVarGrade();",
"public function getSkillLevelsCount()\n {\n return $this->count(self::_SKILL_LEVELS);\n }",
"public function _get_list_voxy_level()\n {\n return Array(\n 1 => 'Super Basic', // super basic\n 2 => 'Basic', // basic\n 3 => 'Pre Inter', // pre inter\n 4 => 'Inter', // inter\n 5 => 'Advan', // advan\n );\n }",
"public function howAreYouDoing() \r\n {\r\n $health = $this->healthLevel;\r\n $status = '';\r\n switch (true) {\r\n case ($health >= 70):\r\n $status = \"Awesome\";\r\n break;\r\n case($health < 70 && $health >= 20):\r\n $status = \"Meh\";\r\n break;\r\n case ($health < 20 && $health > 0):\r\n $status = \"Bad\";\r\n break;\r\n case ($health <= 0):\r\n $status = \"El Muerto\";\r\n break;\r\n default:\r\n $status = \"Error\"; // In theory we should never get here\r\n break;\r\n }\r\n return $status;\r\n }",
"public function getDefaultLevel()\n {\n\n return 2.2;\n }",
"public function getAdminLevel()\n {\n $userId = Auth::user()->id;\n // admin or not\n $level = 99;\n $user = DB::table('admins')->where('uid', $userId)->first();\n if ($user !== null) {\n $level = $user->level;\n }\n\n return $level;\n }",
"public function getLogLevel()\n {\n return $this->level;\n }",
"public function toInt()\n {\n return $this->level;\n }"
] | [
"0.7146074",
"0.69510674",
"0.6885092",
"0.682707",
"0.682707",
"0.67244226",
"0.6715041",
"0.66873753",
"0.6685244",
"0.6644711",
"0.66187036",
"0.66187036",
"0.6597357",
"0.65961635",
"0.65717703",
"0.65717703",
"0.65717703",
"0.65717703",
"0.65717703",
"0.65717703",
"0.65717703",
"0.6569547",
"0.6569547",
"0.6569547",
"0.6569547",
"0.6569547",
"0.6569547",
"0.6543202",
"0.65146494",
"0.6508822",
"0.64894205",
"0.64561164",
"0.6379346",
"0.6377937",
"0.6360866",
"0.63457626",
"0.63433814",
"0.6328634",
"0.6294648",
"0.6280898",
"0.6259945",
"0.6226865",
"0.62228066",
"0.62056625",
"0.619166",
"0.6189835",
"0.6184272",
"0.6156896",
"0.6123144",
"0.6121485",
"0.61189574",
"0.60550845",
"0.6032408",
"0.598087",
"0.59773993",
"0.59568083",
"0.59358567",
"0.5920438",
"0.5877095",
"0.5873394",
"0.5872541",
"0.5863638",
"0.58609915",
"0.5860359",
"0.58545405",
"0.5847503",
"0.5838356",
"0.58174765",
"0.5808782",
"0.5802754",
"0.57772434",
"0.57761383",
"0.5773469",
"0.5762971",
"0.57554173",
"0.5741779",
"0.57335997",
"0.5727639",
"0.5721249",
"0.5719384",
"0.5716194",
"0.5708662",
"0.5706447",
"0.570204",
"0.5686064",
"0.5685205",
"0.5684325",
"0.56697595",
"0.5668811",
"0.56645006",
"0.5663455",
"0.5662739",
"0.56540924",
"0.5652323",
"0.5649622",
"0.56385034",
"0.56344575",
"0.56330943",
"0.5632437",
"0.5631238"
] | 0.59945446 | 53 |
/ |========================================================== | Get defensive method infos | public function getDefensiveMethodInfos($defensiveMethodId)
{
$queryString="SELECT *
FROM corruption_defensive_methods
WHERE corruption_defensive_id=$defensiveMethodId";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getdefensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}",
"public function getInfo() {}",
"public function getInfo() {}",
"abstract public function infoAll();",
"function getInfo();",
"public function getInfo();",
"protected function collectInformation() {}",
"abstract public function information();",
"public function getMoreInfo( $method )\n\t{\n\t\treturn NULL;\n\t}",
"protected function info()\n\t\t{\n\t\t}",
"public function getInformation();",
"public function getOffensiveMethodInfos($offensiveMethodId)\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n WHERE corruption_offensive_id=$offensiveMethodId\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function getInfo()\r\n {\r\n return $this->setNuki(\r\n __FUNCTION__\r\n );\r\n }",
"public function getMethodDescriptors(): array;",
"function InfoTips()\n\t{\n\t\treturn $this->infotips;\n\t}",
"function method_no_specs() {}",
"public function info();",
"public function info();",
"public function getUsage() {\n\t\t// this function is not yet used.\n\t}",
"public function getInfo()\n\t{\n\t\treturn array();\n\t}",
"public function getInfo()\n {\n return $this->addAction(Flag::getInfo());\n }",
"function getMethodsHead()\n {\n\n }",
"public function info()\n {\n $info = [\n 'id' => $this->id,\n 'action' => $this->action,\n 'condition' => $this->condition,\n 'expressions' => $this->expressions,\n 'logMessageFormat' => $this->logMessageFormat,\n 'logLevel' => $this->logLevel,\n 'isFinalState' => $this->isFinalState,\n 'createTime' => $this->createTime,\n 'finalTime' => $this->finalTime,\n 'stackFrames' => array_map(function ($sf) {\n return $sf->info();\n }, $this->stackFrames),\n 'evaluatedExpressions' => array_map(function ($exp) {\n return $exp->info();\n }, $this->evaluatedExpressions),\n ];\n if ($this->labels) {\n $info['labels'] = $this->labels;\n }\n if ($this->userEmail) {\n $info['userEmail'] = $this->userEmail;\n }\n if ($this->location) {\n $info['location'] = $this->location->info();\n }\n if ($this->status) {\n $info['status'] = $this->status->info();\n }\n if ($this->variableTable) {\n $info['variableTable'] = $this->variableTable->info();\n }\n return $info;\n }",
"function info()\n\t{\n\t\treturn array();\n\t}",
"public function info()\n\t{\n\t\treturn false;\n\t}",
"protected function getWarningWhenMethodUnavailable() {}",
"function populate_method_info() {\n\n $method_info = array();\n\n // get functions\n $all_functions = get_defined_functions();\n $internal_functions = $all_functions[\"internal\"];\n\n foreach ($internal_functions as $function) {\n // populate new method record\n $function_record = array();\n $function_record[CLASS_NAME] = \"Function\";\n $function_record[METHOD_NAME] = $function;\n $function_record[IS_TESTED] = \"no\";\n $function_record[TESTS] = \"\";\n $function_record[IS_DUPLICATE] = false;\n\n // record the extension that the function belongs to\n $reflectionFunction = new ReflectionFunction($function);\n $extension = $reflectionFunction->getExtension();\n if ($extension != null) {\n $function_record[EXTENSION_NAME] = $extension->getName();\n } else {\n $function_record[EXTENSION_NAME] = \"\";\n }\n // insert new method record into info array\n $method_info[] = $function_record;\n }\n\n // get methods\n $all_classes = get_declared_classes();\n foreach ($all_classes as $class) {\n $reflectionClass = new ReflectionClass($class);\n $methods = $reflectionClass->getMethods();\n foreach ($methods as $method) {\n // populate new method record\n $new_method_record = array();\n $new_method_record[CLASS_NAME] = $reflectionClass->getName();\n $new_method_record[METHOD_NAME] = $method->getName();\n $new_method_record[IS_TESTED] = \"no\";\n $new_method_record[TESTS] = \"\";\n\n $extension = $reflectionClass->getExtension();\n if ($extension != null) {\n $new_method_record[EXTENSION_NAME] = $extension->getName();\n } else {\n $new_method_record[EXTENSION_NAME] = \"\";\n }\n\n // check for duplicate method names\n $new_method_record[IS_DUPLICATE] = false;\n foreach ($method_info as &$current_record) {\n if (strcmp($current_record[METHOD_NAME], $new_method_record[METHOD_NAME]) == 0) {\n $new_method_record[IS_DUPLICATE] = true;\n $current_record[IS_DUPLICATE] = true;\n }\n }\n // insert new method record into info array\n $method_info[] = $new_method_record;\n }\n }\n\n return $method_info;\n}",
"public static function returnInfo() {\n ##\n }",
"public static function returnInfo() {\n ##\n }",
"public function __debugInfo(): array\n\t{\n\t\t$help = Help::forMethods($this->object, $this->allowedMethods());\n\n\t\treturn [\n\t\t\t'type' => $this::CLASS_ALIAS,\n\t\t\t'methods' => $help,\n\t\t\t'value' => $this->toArray()\n\t\t];\n\t}",
"public function getInfo(): array;",
"function info() {\n\t \treturn $this->description;\n\t }",
"public function getActiveMethods();",
"public abstract function getInfo () : string;",
"public static function returnInfo() {\n }",
"public function __debugInfo() {\n\t\t$info = parent::__debugInfo();\n\t\t$info['get'] = $this->getVars ? $this->getVars->getArray() : null;\n\t\t$info['post'] = $this->postVars ? $this->postVars->getArray() : null;\n\t\t$info['cookie'] = $this->cookieVars ? $this->cookieVars->getArray() : null;\n\t\t$info['whitelist'] = $this->whitelist ? $this->whitelist->getArray() : null;\n\t\t$info['urlSegments'] = $this->urlSegments;\n\t\t$info['pageNum'] = $this->pageNum;\n\t\treturn $info;\n\t}",
"public function info()\n {\n }",
"public function debugInfo() {\r\n saprfc_function_debug_info($this->fce);\r\n }",
"public function methods();",
"abstract public function GetProblems();",
"final public static function requestedInformationSupplied()\n {\n return self::get(2060);\n }",
"public function describe()\n\t{\n\t\tif($this->_info === null) $this->loadInfo();\n\t\treturn $this->_info;\n\t}",
"public function getInformation(): array;",
"public function getMethods();",
"public function getMethods();",
"public function getMethods();",
"public function extraInfo();",
"static function Describe() { return \"\"; }",
"function getDescription() ;",
"public function getPairsInfo() {\n\t\treturn $this->makePublicMethod( self::PUBLIC_METHOD_INFO);\n\t}",
"public function testBasicMethodInspection() {\n\t\t$class = 'lithium\\analysis\\Debugger';\n\t\t$parent = 'lithium\\core\\StaticObjectDeprecated';\n\n\t\t$expected = array_diff(get_class_methods($class), get_class_methods($parent));\n\t\t$result = array_keys(Inspector::methods($class, 'extents'));\n\t\t$this->assertEqual(array_intersect($result, $expected), $result);\n\n\t\t$result = array_keys(Inspector::methods($class, 'extents', [\n\t\t\t'self' => true, 'public' => true\n\t\t]));\n\t\t$this->assertEqual($expected, $result);\n\n\t\t$this->assertNull(Inspector::methods('lithium\\core\\Foo'));\n\n\t\t$result = Inspector::methods('stdClass', 'extents');\n\t\t$this->assertEqual([], $result);\n\t}",
"protected function getInfoModule() {}",
"public function __debugInfo()\n {\n return $this->all();\n }",
"public function getInfos() {\n\t\tif (!$this->isBound()) {\n\t\t\treturn NULL;\n\t\t}\n\t\treturn $this->info;\n\t}",
"abstract public function getDetails();",
"public function getUnresolved();",
"protected function printCachedInfo() {}",
"public function getHints(): array;",
"public function info()\n {\n $info = array();\n $info['supports_advanced_import'] = false;\n $info['product'] = 'SMF 1.1.x';\n $info['prefix'] = 'smf_';\n $info['import'] = array(\n 'config',\n 'cns_groups',\n 'cns_members',\n 'cns_member_files',\n 'ip_bans',\n 'cns_forum_groupings',\n 'cns_forums',\n 'cns_topics',\n 'cns_private_topics',\n 'cns_posts',\n 'cns_post_files',\n 'cns_polls_and_votes',\n 'notifications',\n 'wordfilter',\n 'calendar'\n );\n\n $info['dependencies'] = array( // This dependency tree is overdefined, but I wanted to make it clear what depends on what, rather than having a simplified version\n 'cns_members' => array('cns_groups'),\n 'cns_member_files' => array('cns_members'),\n 'cns_forums' => array('cns_forum_groupings', 'cns_members', 'cns_groups'),\n 'cns_topics' => array('cns_forums', 'cns_members'),\n 'cns_polls_and_votes' => array('cns_topics', 'cns_members'),\n 'cns_posts' => array('cns_topics', 'cns_members'),\n 'cns_post_files' => array('cns_posts', 'cns_private_topics'),\n 'notifications' => array('cns_topics', 'cns_members', 'cns_polls_and_votes'),\n 'cns_private_topics' => array('cns_members')\n );\n $_cleanup_url = build_url(array('page' => 'admin_cleanup'), get_module_zone('admin_cleanup'));\n $cleanup_url = $_cleanup_url->evaluate();\n $info['message'] = (get_param_string('type', 'browse') != 'import' && get_param_string('type', 'browse') != 'hook') ? new Tempcode() : do_lang_tempcode('FORUM_CACHE_CLEAR', escape_html($cleanup_url));\n\n return $info;\n }",
"public static function getFwStats()\n {\n die( __METHOD__ . ' method must be overloaded in the CMS-based Helper class' );\n }",
"function profile_info() {\n $parameters = array(\n 'method' => __FUNCTION__\n );\n return $this->get_data($parameters);\n }",
"function getInfo()\n {\n return array(\n 'releasetypes' => array('php', 'extsrc', 'extbin', 'bundle'),\n 'installable' => true,\n 'locationconfig' => false,\n 'honorsbaseinstall' => true,\n 'unusualbaseinstall' => false,\n 'phpfile' => false,\n 'executable' => false,\n 'phpextension' => false,\n );\n }",
"public function __debugInfo() {\n\t\t$info = parent::__debugInfo();\n\t\tif(count($this->data)) $info['data'] = $this->data; \n\t\treturn $info; \n\t}",
"public function __debugInfo()\n {}",
"public function __debugInfo()\n {\n return [\n '(help)' => 'This is a Query object, to get the results execute or iterate it.',\n 'action' => $this->clause('action'),\n 'formatters' => $this->_formatters,\n 'offset' => $this->clause('offset'),\n 'page' => $this->clause('page'),\n 'limit' => $this->clause('limit'),\n 'set' => $this->set(),\n 'sort' => $this->clause('order'),\n 'extraOptions' => $this->getOptions(),\n 'conditions' => $this->where(),\n 'repository' => $this->getEndpoint(),\n 'webservice' => $this->getWebservice(),\n ];\n }",
"public function allInfo() {\n return $this->infoMsg;\n }",
"public function info(){\n }",
"public function getInfo()\n {\n return \\CB::analyzeException($this);\n }",
"protected static function __getTypeHintAbleMethods()\n {\n return [];\n }",
"private function get_info() {\n\t\treturn array(\n\t\t\t'Versions:' => $this->version_info(),\n\t\t\t'Active Features' => $this->get_active_features(),\n\t\t\t'Active Plugins' => $this->get_active_plugins(),\n\t\t\t'Indexable Post Types' => ( function_exists( 'ep_get_indexable_post_types' ) ) ? ep_get_indexable_post_types() : 'N/A',\n\t\t\t'Indexable Post Status' => ( function_exists( 'ep_get_indexable_post_status' ) ) ? ep_get_indexable_post_status() : 'N/A',\n\t\t\t'Searchable Post Types' => ( function_exists( 'ep_get_searchable_post_types' ) ) ? ep_get_searchable_post_types() : 'N/A',\n\t\t\t'Cluster Status' => ( class_exists( 'EP_API' ) ) ? EP_API::factory()->get_cluster_status() : 'N/A',\n\t\t);\n\t}",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"function getUsageInfo(){\r\n\t\t$usage_array = array ('name' => $this->getName(), \r\n\t\t\t\t\t\t\t 'last_click' => $this->getLastClick(), \r\n\t\t\t\t\t\t\t 'email' => $this->getEmail(), \r\n\t\t\t\t\t\t\t 'total_clicks' => $this->getTotalClicks(), \r\n\t\t\t\t\t\t\t 'last_month_clicks' => $this->getLastMonthClicks());\r\n\t\treturn $usage_array;\r\n\t}",
"function getInfo()\n\t{\n\t\treturn array_merge($this->getDeveloperInfo(), $this->getContact()->getInfo());\n\t}",
"protected function getCompleteFieldInformation() {}",
"public function getGeneralInformation() {\n\t\tif (!$this->hasDetails) {\n\t\t\t$this->injectDetails();\n\t\t}\n\t\treturn $this->generalInformation;\n\t}",
"function getDetailedStatus() ;",
"public function get_method()\n {\n }",
"public function getExhaustionExplanation ();",
"public function get_info()\n {\n return $this->_request('getinfo');\n }",
"public function getInfo()\n\t{\n\t\treturn $this->info;\n\t}",
"public function getInfo()\n\t{\n\t\treturn $this->info;\n\t}",
"abstract public function getCurrentUsage();",
"public function getDetailedDocumentation();",
"protected function _getFullRateInfo()\n {\n $rates = Mage::getModel('tax/sales_order_tax')->getCollection()->loadByOrder($this->getOrder())->toArray();\n $fullInfo = Mage::getSingleton('tax/calculation')->reproduceProcess($rates['items']);\n return $fullInfo;\n }",
"private function showInfo()\n {\n $this->results = array('error' => '');\n $this->countMulticolumnElements();\n $this->findDifferentMCElementConfigs();\n $this->isGridelementsInstalled();\n return $this->returnResults();\n }",
"function summary() {\n return NULL;\n }",
"public function affiche_infos()\n {\n $returnValue = null;\n\n // section -64--88-56-1-530ab1a6:1720ae78e2d:-8000:0000000000000AF0 begin\n // section -64--88-56-1-530ab1a6:1720ae78e2d:-8000:0000000000000AF0 end\n\n return $returnValue;\n }",
"public function getInfoPrivate()\n {\n return $this->selectAllInfo($this->privateType())->get();\n }",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}"
] | [
"0.6968975",
"0.6227429",
"0.6033932",
"0.5984762",
"0.5984762",
"0.59702384",
"0.59007984",
"0.58990455",
"0.5833039",
"0.5829695",
"0.5817807",
"0.5805676",
"0.5788936",
"0.5757169",
"0.57430214",
"0.57430214",
"0.57304573",
"0.57050633",
"0.56663346",
"0.5654523",
"0.5620288",
"0.5620288",
"0.5618546",
"0.5609704",
"0.56026256",
"0.55891013",
"0.55720335",
"0.55652344",
"0.55307025",
"0.5514744",
"0.55116963",
"0.5497508",
"0.5497508",
"0.54885",
"0.54791576",
"0.54327255",
"0.54258466",
"0.54067534",
"0.5390839",
"0.53764707",
"0.5374103",
"0.5373278",
"0.5370123",
"0.5353815",
"0.53510237",
"0.53492296",
"0.5347038",
"0.5322827",
"0.5322827",
"0.5322827",
"0.53223556",
"0.53155875",
"0.5306153",
"0.52872264",
"0.52791405",
"0.5268518",
"0.526456",
"0.5264146",
"0.5256079",
"0.52527565",
"0.5249717",
"0.5249273",
"0.52320755",
"0.5229297",
"0.5228152",
"0.5226722",
"0.52241975",
"0.5221404",
"0.52200484",
"0.52170825",
"0.5216928",
"0.52112746",
"0.5197118",
"0.51831156",
"0.5172118",
"0.5172118",
"0.5172118",
"0.5172118",
"0.5172118",
"0.51717615",
"0.516669",
"0.51590294",
"0.515121",
"0.51469845",
"0.5139893",
"0.51276577",
"0.51266676",
"0.5116",
"0.5116",
"0.511318",
"0.51122284",
"0.5112119",
"0.5098633",
"0.5094507",
"0.50795764",
"0.5079351",
"0.5077391",
"0.5077391",
"0.5077391",
"0.5077391"
] | 0.6665586 | 1 |
/ |========================================================== | Get offensive method infos | public function getOffensiveMethodInfos($offensiveMethodId)
{
$queryString="SELECT *
FROM corruption_offensive_methods
WHERE corruption_offensive_id=$offensiveMethodId";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function getInfo() {}",
"public function getInfo() {}",
"public function getInfo();",
"abstract public function infoAll();",
"function getInfo();",
"public function getMoreInfo( $method )\n\t{\n\t\treturn NULL;\n\t}",
"public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}",
"public function getdefensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function getInformation();",
"public function getInfo()\r\n {\r\n return $this->setNuki(\r\n __FUNCTION__\r\n );\r\n }",
"public function getActiveMethods();",
"public function extraInfo();",
"public function getInfo(): array;",
"abstract public function information();",
"protected function info()\n\t\t{\n\t\t}",
"protected function collectInformation() {}",
"function getOperationInfo() {\n return userpoints_get_info($this->getOperation());\n }",
"public function getMethodDescriptors(): array;",
"abstract public function getDetails();",
"public function info();",
"public function info();",
"public function getInfo()\n\t{\n\t\treturn array();\n\t}",
"public function getUsage() {\n\t\t// this function is not yet used.\n\t}",
"function InfoTips()\n\t{\n\t\treturn $this->infotips;\n\t}",
"public function getInfo()\n {\n return $this->addAction(Flag::getInfo());\n }",
"public function getDefensiveMethodInfos($defensiveMethodId)\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n WHERE corruption_defensive_id=$defensiveMethodId\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"function getMethodsHead()\n {\n\n }",
"function profile_info() {\n $parameters = array(\n 'method' => __FUNCTION__\n );\n return $this->get_data($parameters);\n }",
"public function getMethods();",
"public function getMethods();",
"public function getMethods();",
"function info()\n\t{\n\t\treturn array();\n\t}",
"public function getInformation(): array;",
"public abstract function getInfo () : string;",
"public function get_info()\n {\n return $this->_request('getinfo');\n }",
"public function getPairsInfo() {\n\t\treturn $this->makePublicMethod( self::PUBLIC_METHOD_INFO);\n\t}",
"public function getInfo ()\n {\n return $this->epcQuery->getInfo ();\n }",
"public function getServiceInfo() {}",
"function getInfo()\n\t{\n\t\treturn array_merge($this->getDeveloperInfo(), $this->getContact()->getInfo());\n\t}",
"public function getInfo($criteria)\n {\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public function getInfo()\n {\n return $this->get(self::_INFO);\n }",
"public static function returnInfo() {\n ##\n }",
"public static function returnInfo() {\n ##\n }",
"protected function getWarningWhenMethodUnavailable() {}",
"public function info()\n {\n }",
"public function getIndexInfo()\n {\n return $this->__call(__FUNCTION__, func_get_args());\n }",
"final public static function requestedInformationSupplied()\n {\n return self::get(2060);\n }",
"public function methodusage($id=NULL) {\n\n\t\t$authManager = new ApiUsageManager();\n\t\t$usageMetrics = $authManager->methodUsage();\n\t\t\n\t\tif (sizeof($usageMetrics)>0)\n\t\t{\n\t\t\tforeach ($usageMetrics as &$i){ #assign reference instead of copying the value.\n\t\t\t\tif (array_key_exists('last_accessed', $i)){\n\t\t\t\t\t$i['prettytime']=ApiUsageManager::bb_since($i['last_accessed']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t#TODO: would be nice to write a shit hot SQL query to do this at getuser time instead\n\t\t$this->display(API_VIEWS_BASE.'/backend/apicalls/overview', array('id' => $id, 'usageMetrics' => $usageMetrics));\n }",
"public function info()\n {\n $info = [\n 'id' => $this->id,\n 'action' => $this->action,\n 'condition' => $this->condition,\n 'expressions' => $this->expressions,\n 'logMessageFormat' => $this->logMessageFormat,\n 'logLevel' => $this->logLevel,\n 'isFinalState' => $this->isFinalState,\n 'createTime' => $this->createTime,\n 'finalTime' => $this->finalTime,\n 'stackFrames' => array_map(function ($sf) {\n return $sf->info();\n }, $this->stackFrames),\n 'evaluatedExpressions' => array_map(function ($exp) {\n return $exp->info();\n }, $this->evaluatedExpressions),\n ];\n if ($this->labels) {\n $info['labels'] = $this->labels;\n }\n if ($this->userEmail) {\n $info['userEmail'] = $this->userEmail;\n }\n if ($this->location) {\n $info['location'] = $this->location->info();\n }\n if ($this->status) {\n $info['status'] = $this->status->info();\n }\n if ($this->variableTable) {\n $info['variableTable'] = $this->variableTable->info();\n }\n return $info;\n }",
"public function methods();",
"public function __debugInfo(): array\n\t{\n\t\t$help = Help::forMethods($this->object, $this->allowedMethods());\n\n\t\treturn [\n\t\t\t'type' => $this::CLASS_ALIAS,\n\t\t\t'methods' => $help,\n\t\t\t'value' => $this->toArray()\n\t\t];\n\t}",
"function info() {\n\t \treturn $this->description;\n\t }",
"public static function returnInfo() {\n }",
"function populate_method_info() {\n\n $method_info = array();\n\n // get functions\n $all_functions = get_defined_functions();\n $internal_functions = $all_functions[\"internal\"];\n\n foreach ($internal_functions as $function) {\n // populate new method record\n $function_record = array();\n $function_record[CLASS_NAME] = \"Function\";\n $function_record[METHOD_NAME] = $function;\n $function_record[IS_TESTED] = \"no\";\n $function_record[TESTS] = \"\";\n $function_record[IS_DUPLICATE] = false;\n\n // record the extension that the function belongs to\n $reflectionFunction = new ReflectionFunction($function);\n $extension = $reflectionFunction->getExtension();\n if ($extension != null) {\n $function_record[EXTENSION_NAME] = $extension->getName();\n } else {\n $function_record[EXTENSION_NAME] = \"\";\n }\n // insert new method record into info array\n $method_info[] = $function_record;\n }\n\n // get methods\n $all_classes = get_declared_classes();\n foreach ($all_classes as $class) {\n $reflectionClass = new ReflectionClass($class);\n $methods = $reflectionClass->getMethods();\n foreach ($methods as $method) {\n // populate new method record\n $new_method_record = array();\n $new_method_record[CLASS_NAME] = $reflectionClass->getName();\n $new_method_record[METHOD_NAME] = $method->getName();\n $new_method_record[IS_TESTED] = \"no\";\n $new_method_record[TESTS] = \"\";\n\n $extension = $reflectionClass->getExtension();\n if ($extension != null) {\n $new_method_record[EXTENSION_NAME] = $extension->getName();\n } else {\n $new_method_record[EXTENSION_NAME] = \"\";\n }\n\n // check for duplicate method names\n $new_method_record[IS_DUPLICATE] = false;\n foreach ($method_info as &$current_record) {\n if (strcmp($current_record[METHOD_NAME], $new_method_record[METHOD_NAME]) == 0) {\n $new_method_record[IS_DUPLICATE] = true;\n $current_record[IS_DUPLICATE] = true;\n }\n }\n // insert new method record into info array\n $method_info[] = $new_method_record;\n }\n }\n\n return $method_info;\n}",
"function getDetailedStatus() ;",
"function getApiMethod()\n {\n }",
"public function __debugInfo()\n {\n return [\n '(help)' => 'This is a Query object, to get the results execute or iterate it.',\n 'action' => $this->clause('action'),\n 'formatters' => $this->_formatters,\n 'offset' => $this->clause('offset'),\n 'page' => $this->clause('page'),\n 'limit' => $this->clause('limit'),\n 'set' => $this->set(),\n 'sort' => $this->clause('order'),\n 'extraOptions' => $this->getOptions(),\n 'conditions' => $this->where(),\n 'repository' => $this->getEndpoint(),\n 'webservice' => $this->getWebservice(),\n ];\n }",
"public function get_method()\n {\n }",
"public function getInfo():array;",
"function xmlrpc_server_method_help($method) {\n $xmlrpc_server = xmlrpc_server_get();\n return $xmlrpc_server->help[$method];\n}",
"function getUsageInfo(){\r\n\t\t$usage_array = array ('name' => $this->getName(), \r\n\t\t\t\t\t\t\t 'last_click' => $this->getLastClick(), \r\n\t\t\t\t\t\t\t 'email' => $this->getEmail(), \r\n\t\t\t\t\t\t\t 'total_clicks' => $this->getTotalClicks(), \r\n\t\t\t\t\t\t\t 'last_month_clicks' => $this->getLastMonthClicks());\r\n\t\treturn $usage_array;\r\n\t}",
"public function getInfos(){\n\t\treturn array(\n\t\t\t\"serviceDescription\" => \"This is the Comunic API Server.\",\n\t\t\t\"clientURL\" => \"https://communiquons.org/\",\n\t\t);\n\t}",
"public function getAllInfoActivity()\n {\n return QcOverTimeRequest::where('action', $this->getDefaultHasAction())->get();\n }",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function getInfo($name) {}",
"public function ShowMethods() {\n $res = $this->ServiceClient->__getFunctions();\n var_dump($res);\n }",
"public function ShowMethods() {\n $res = $this->ServiceClient->__getFunctions();\n var_dump($res);\n }",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function getAdditionalInformation() {}",
"public function info(){\n }",
"public function getInfo()\n\t{\n\t\treturn $this->info;\n\t}",
"public function getInfo()\n\t{\n\t\treturn $this->info;\n\t}",
"public function getInfo ()\n {\n return $this->info;\n }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function getMethods(): array;",
"public function getMethods(): array;",
"public function getInfo()\n\t{\n\t\treturn $this->resource->get($this->name)->getContent();\n\t}",
"public function get_additional_info()\n {\n return array();\n }",
"protected function _getFullRateInfo()\n {\n $rates = Mage::getModel('tax/sales_order_tax')->getCollection()->loadByOrder($this->getOrder())->toArray();\n $fullInfo = Mage::getSingleton('tax/calculation')->reproduceProcess($rates['items']);\n return $fullInfo;\n }",
"protected function printCachedInfo() {}",
"public function getInfo()\n\t{\n\t\treturn $this->clientSoap->__soapCall(\"getInfo\", $this->params);\n\t}",
"public function getInfo(): array\n {\n return $this->info;\n }",
"private function get_info($method, $multicall, $update)\n\t{\n\t\tif($update || !isset($this->data[$method]))\n\t\t{\n\t\t\t$message = new xmlrpcmsg($method, array(new xmlrpcval($this->hash, 'string')));\n\t\t}\n\t\t\n\t\tif(isset($message))\n\t\t{\n\t\t\tif($multicall === true)\n\t\t\t{\n\t\t\t\t$return = $this->multicall->add($message, $this->hash);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$result = $this->client->send($message);\n\t\t\t\t$return = $this->checkError($result);\n\t\t\t\tif($return)\n\t\t\t\t{\n\t\t\t\t\t$this->data[$method] = $result->val;\n\t\t\t\t\t$return = $result->val;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$return = $this->data[$method];\n\t\t}\n\t\treturn $return;\n\t}",
"function getMethod()\r\n {\r\n }",
"public function getInfos()\n {\n return $this->getService('infos');\n }",
"public function getInfoPrivate()\n {\n return $this->selectAllInfo($this->privateType())->get();\n }",
"public function getInfo(): array\n {\n return $this->_info;\n }",
"public function __debugInfo()\n {\n return $this->all();\n }"
] | [
"0.66365665",
"0.6460969",
"0.6460969",
"0.63481134",
"0.63379806",
"0.62052923",
"0.62032497",
"0.61800367",
"0.6147005",
"0.6098589",
"0.60807633",
"0.5952421",
"0.59314895",
"0.59259593",
"0.5879605",
"0.5878868",
"0.5861027",
"0.5858087",
"0.58515054",
"0.58407176",
"0.5829331",
"0.5829331",
"0.5828858",
"0.57961625",
"0.5790624",
"0.57737035",
"0.57733005",
"0.57220376",
"0.5708744",
"0.57029074",
"0.57029074",
"0.57029074",
"0.56862026",
"0.5669123",
"0.5663441",
"0.56618506",
"0.56609076",
"0.56470484",
"0.56239694",
"0.5582102",
"0.5580673",
"0.5568657",
"0.5568657",
"0.5568657",
"0.5568657",
"0.5568657",
"0.5559964",
"0.5559964",
"0.5550707",
"0.5542718",
"0.5537401",
"0.5535133",
"0.5530602",
"0.5527653",
"0.55094135",
"0.5507766",
"0.54878867",
"0.5479902",
"0.54674",
"0.54665375",
"0.54537",
"0.54475373",
"0.54471135",
"0.5445464",
"0.54353315",
"0.54347295",
"0.5432826",
"0.5415857",
"0.5415208",
"0.5415208",
"0.5415208",
"0.5415208",
"0.5413524",
"0.5413524",
"0.54129326",
"0.5412622",
"0.5412622",
"0.5412231",
"0.5412231",
"0.5412231",
"0.53988117",
"0.53933036",
"0.53933036",
"0.53882736",
"0.5377245",
"0.5377245",
"0.5368429",
"0.5368429",
"0.53673977",
"0.53661644",
"0.5359432",
"0.53564924",
"0.53494585",
"0.53488046",
"0.534872",
"0.53457355",
"0.5336741",
"0.5334685",
"0.5328896",
"0.5327176"
] | 0.6364111 | 3 |
/ |========================================================== | check defensive method | public function checkDefensiveMethod($defensiveMethodId,$teamId)
{
$queryString="SELECT *
FROM team_defensive_methods
WHERE defensive_method_id=$defensiveMethodId
AND team_id=$teamId";
$query = $this->db->query($queryString);
$result=$query->result_array();
if(empty($result))
{
return FALSE;
}else{
return TRUE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function safetyCheck() : self;",
"function isExpensive() {\n\t\treturn true;\n\t}",
"public function _check()\n {\n }",
"public function performChecks(){\n\t\t\n\t}",
"abstract protected function doEvil();",
"protected function checkDisableFunctions() {}",
"abstract public function check();",
"public function checkOperationality()\n {\n }",
"public function check() {}",
"public function isRisky(): bool;",
"abstract function check();",
"public function hasDefense(){\r\n return $this->_has(9);\r\n }",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"public function hasIgnoredefense(){\r\n return $this->_has(31);\r\n }",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"public function check(): void;",
"public function check(): void;",
"abstract public function check_hint();",
"public static function check();",
"public function check()\n {\n }",
"public function check()\n {\n }",
"public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }",
"public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}",
"public function getIsLossless();",
"function force() { \n if (is_array($this->force_this)) { \n for($i=0 ; $i< count($this->force_this) ; $i++) { \n if ($this->force_this[$i][1] == \"SIMPLE\" && !$this->passed($this->force_this[$i][0])) {\n die(\"\\n\\nMissing \" . $this->force_this[$i][0] . \"\\n\\n\"); \n }\n\n if ($this->force_this[$i][1] == \"FULL\" && !$this->full_passed($this->force_this[$i][0])) {\n die(\"\\n\\nMissing \" . $this->force_this[$i][0] .\" <arg>\\n\\n\"); \n } \n } \n } \n }",
"public function hasCriticalEffectdf(){\r\n return $this->_has(15);\r\n }",
"public function isUsed()\n {\n }",
"public function checkSecurity() {\n }",
"public function hasCriticalEffectdf(){\r\n return $this->_has(12);\r\n }",
"public function hasSilencedf(){\r\n return $this->_has(30);\r\n }",
"public function hasDefhpper(){\r\n return $this->_has(29);\r\n }",
"public function hasCriticalEffect(){\r\n return $this->_has(14);\r\n }",
"public function hasPoisonDefense(){\r\n return $this->_has(16);\r\n }",
"public function tellNotEnoughMoneyInAccount()\n {\n }",
"public function hasDefhpper(){\r\n return $this->_has(32);\r\n }",
"function broken() { }",
"public function isEvaled()\n {\n return false;\n }",
"public function check()\r\n\t{\r\n\t\treturn true;\r\n\t}",
"public function hasFireDefense(){\r\n return $this->_has(21);\r\n }",
"public static function check()\n {\n parent::check();\n }",
"function bibdk_voxb_offensive_error() {\n return array(\n '#markup' => t('bibdk_voxb_no_access', array(), array('context'=>'bibdk_voxb')),\n );\n}",
"public function no_op() {\n\t\t\texit( 'Not permitted' );\n\t\t}",
"public function hasPoisonDefense(){\r\n return $this->_has(19);\r\n }",
"public function isDoNotSpellCheckSet() {}",
"public function checkRequirements()\n {\n }",
"function isFrozen() ;",
"public function hasFireDefense(){\r\n return $this->_has(18);\r\n }",
"function needsExecution() ;",
"public function is_user_over_quota()\n {\n }",
"public function checkOptimizeNeeded() {\n\t\t$this->isOptimizeNeeded = true;\n\t}",
"public function getdefensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function hasCriticalEffect(){\r\n return $this->_has(11);\r\n }",
"private function checkExpirated() {\n\n }",
"static function allowed()\n {\n\n }",
"public function hasCritical(){\r\n return $this->_has(9);\r\n }",
"public function isDeclined(): bool;",
"public function hasForce(){\n return $this->_has(2);\n }",
"abstract public function GetProblems();",
"public function implementation_pending()\n {\n }",
"static function denied()\n {\n\n }",
"public function isNotUsing();",
"function scheckAusdruck()\r\n {\r\n foreach ($this->belegschaft as $schluessel=>$wert)\r\n $this->belegschaft[$schluessel]->scheckAusdruck();\r\n }",
"protected function _get_ready() {\n $this->report_warning(\"This is the default (empty) implementation of _get_ready() method, seems that this object lacks specific implementation\");\n }",
"function check_defect ($conn, $data) {\n\n\t\t$defect = $data[\"defect_type\"];\n\t\tif (isset($defect)) {\n\t\t\tif ($defect != \"NONE\"){\n\t\t return \"Defected\";\n\t\t \n\t\t} else {\n\t\t return \"Not Defected\";\n\t\t}\n\t}\n\t}",
"private static function lowPass()\n {\n }",
"public function checkAccess()\n {\n // need to be modified for security\n }",
"public static function defaultChecks()\n {\n //checks if default checks has already ran.\n if (self::$_default_notified) {\n return true;\n }\n\n if (defined('DEMO_MODE')) {\n Notifications::add(\"<span style='color: red'><strong>NOTICE:</strong> The forms in this demo will not submit.</span>\");\n }\n\n Notifications::add(Admin_site::securityCheck());\n\n if (geoMaster::is('auctions')) {\n Notifications::addCheck(array('Ad_configuration', 'incrementExists'));\n }\n\n if (file_exists(GEO_BASE_DIR . 'xss_filter_inputs.php')) {\n Notifications::add('<strong>xss_filter_inputs.php</strong> still exists in your root directory. This file is no longer needed, so it is safe to remove.');\n }\n\n if (is_dir(GEO_BASE_DIR . 'scopbin')) {\n Notifications::add('The <strong>scopbin</strong> directory still exists in your root directory. This is no longer needed, so it is safe to remove.');\n }\n\n self::$_default_notified = true;\n }",
"public function hasCritical(){\r\n return $this->_has(12);\r\n }",
"public function executeDisabled()\n {\n }",
"abstract protected function checkInitialization();",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function hasCriticalDf(){\r\n return $this->_has(10);\r\n }",
"protected abstract function doHealthcheck();",
"public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}",
"public function I_can_not_create_more_than_hundred_of_percents()\n {\n }",
"public function hasWarnings() {}",
"public function onOutOfBand (): void;",
"public function failNoisily() :bool{\n\t\treturn !$this->failSilently;\n\t}",
"function broken() { return TRUE; }",
"public function isRisky()\r\n {\r\n $this->caseClosedOrFail();\r\n\r\n return true;\r\n }",
"protected function localValidation()\n\t\t{\n\t\t}",
"public function do_not_blame_cdi() {\r\n $this->IDIOT = TRUE;\r\n $this->error( \"No sanity checking on files\", 0 );\r\n return;\r\n }",
"public static function right_public(){return false;}",
"public function call() {\n\t\treturn false;\n\t}",
"protected function performValidation()\n {\n // no required arguments\n }",
"public function getExhaustionExplanation ();",
"public function disabled();",
"public function disabled();",
"public function hasFireAttack(){\r\n return $this->_has(20);\r\n }",
"function check_access() {\n trigger_error('Admin class does not implement method <strong>check_access()</strong>', E_USER_WARNING);\n return;\n }",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function refresh_nonces()\n {\n }",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}"
] | [
"0.7265394",
"0.681683",
"0.6626197",
"0.6547475",
"0.6513481",
"0.64297634",
"0.6408415",
"0.64077175",
"0.6310457",
"0.6299925",
"0.6296022",
"0.627172",
"0.62649983",
"0.62649983",
"0.62649983",
"0.62649983",
"0.62649983",
"0.6212154",
"0.62116027",
"0.61916935",
"0.61916935",
"0.6190111",
"0.61611944",
"0.61540556",
"0.61540556",
"0.6103445",
"0.60968035",
"0.60539496",
"0.60528356",
"0.59621537",
"0.5957482",
"0.5953407",
"0.594185",
"0.5920306",
"0.5904957",
"0.58996624",
"0.589508",
"0.5881886",
"0.58709836",
"0.5864324",
"0.5862172",
"0.5858295",
"0.5851855",
"0.58516145",
"0.58516014",
"0.5851107",
"0.584643",
"0.5836951",
"0.5803546",
"0.5803407",
"0.5802068",
"0.57983696",
"0.578742",
"0.5785464",
"0.57741946",
"0.57736593",
"0.5764945",
"0.5762651",
"0.5756413",
"0.5752391",
"0.5752305",
"0.5750897",
"0.5732579",
"0.57296884",
"0.57247686",
"0.57064307",
"0.56981844",
"0.5695027",
"0.56904346",
"0.5685916",
"0.5682573",
"0.56638217",
"0.5660308",
"0.56591856",
"0.56522465",
"0.5639851",
"0.56275064",
"0.56241286",
"0.5621492",
"0.56176406",
"0.56058663",
"0.5600589",
"0.5591404",
"0.5582751",
"0.5573308",
"0.55719626",
"0.55713105",
"0.55671436",
"0.5566991",
"0.55667615",
"0.5565194",
"0.5565194",
"0.5559643",
"0.55579036",
"0.55572724",
"0.55572724",
"0.55572724",
"0.5555582",
"0.5555488",
"0.5555488",
"0.5554522"
] | 0.0 | -1 |
/ |========================================================== | count defensive method | public function checkCountDefensiveMethod($defensiveMethodId,$teamId)
{
$queryString="SELECT *
FROM team_defensive_methods
WHERE defensive_method_id=$defensiveMethodId
AND team_id=$teamId";
$query = $this->db->query($queryString);
$result=$query->result_array();
if($result[0]["qt"]==0)
{
return FALSE;
}else{
return TRUE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function countUsed()\n {\n }",
"function count(){}",
"function count() ;",
"public function _count();",
"public static function count();",
"function count()\n {\n }",
"abstract public function count();",
"abstract public function count();",
"abstract public function count();",
"abstract public function count();",
"function count();",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public abstract function count();",
"public abstract function count();",
"public /*int*/ function count()\n\t{\n\t\treturn 0;\n\t}",
"function countAll() ;",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public abstract function count(): int;",
"function calculateMissed(){\n\t\treturn count(self::$groundTruth) - count(self::$rating);\n\t}",
"function isExpensive() {\n\t\treturn true;\n\t}",
"public function countAll() {}",
"public function countAll() {}",
"public function countAll() {}",
"public function countStored(): int;",
"function fetchCount();",
"function count() {\n # The return value of this function is intended to indicate the total\n # number of results of the operation the Iter represents.\n return NULL;\n }",
"public static function counter() {}",
"public function count() { }",
"public function countAll(): int;",
"public function getCounter();",
"public function count()\n {\n }",
"public function count()\n {\n }",
"protected function get_request_counts()\n {\n }",
"public function testProfilePrototypeCountQuarantines()\n {\n\n }",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(){\n \n }",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"public function getUnapprovedCount();",
"function countHit() {\n\n $this->saveField('hits', $this->data['Ringsite']['hits']+1, false);\n }",
"public function testQuarantineCount()\n {\n\n }",
"public abstract function get_counts();",
"public function hasDefense(){\r\n return $this->_has(9);\r\n }",
"public function count()\n {\n return 0;\n }",
"public function count()\n {\n return 0;\n }",
"static function count_available()//$active=true)\n {\n global $objDatabase;\n\n $query = \"\n SELECT COUNT(*) AS `numof_records`\n FROM `\".DBPREFIX.\"module_shop\".MODULE_INDEX.\"_discount_coupon`\";\n $objResult = $objDatabase->Execute($query);\n if (!$objResult) return self::errorHandler();\n if ($objResult->EOF) return 0;\n return $objResult->fields['numof_records'];\n }",
"function count_perf($uid, $kid, $stat) {\n return count(testSetings($uid, $stat, $kid));\n}",
"public function filled()\n\t{\n\t\treturn Core_Cache::instance($this->cacheType)->getCount($this->id);\n\t}",
"public function count()\n {\n return 0;\n }",
"public function count()\n {\n return 0;\n }",
"public function count()\n {\n return 0;\n }",
"public function getCount() {}",
"public function getCount() {}",
"public function getCount() {}",
"public function getCant() {\n\t\treturn $this->db->count_all ( self::TABLE_NAME );\n\t}",
"function woocommerce_result_count() {\n\t\t\treturn;\n\t}",
"public function usersAllowedCount()\n {\n $sql = \"SELECT global_value FROM lgt_license_global_table where global_key = 'concurrent_users'\";\n $allowd_count = Yii::app()->db->createCommand($sql)->queryScalar();\n return $allowd_count;\n }",
"public function countDataProvider() {}",
"abstract public function getCount();",
"public function distributeMisses()\n {\n return $this->distribute_misses;\n }"
] | [
"0.7359005",
"0.693621",
"0.68420833",
"0.6667137",
"0.6530698",
"0.65045786",
"0.6499105",
"0.6499105",
"0.6499105",
"0.6499105",
"0.64932376",
"0.6477458",
"0.6477458",
"0.6477267",
"0.6477267",
"0.6477267",
"0.6477267",
"0.6477267",
"0.6477267",
"0.6477267",
"0.6477267",
"0.6477267",
"0.6477267",
"0.6477267",
"0.64698696",
"0.64698696",
"0.64584917",
"0.6451328",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6324302",
"0.6182346",
"0.6174588",
"0.6161742",
"0.6138259",
"0.6138259",
"0.6138259",
"0.6110537",
"0.610957",
"0.6105884",
"0.60148734",
"0.5993263",
"0.5983242",
"0.59770393",
"0.59506625",
"0.59506625",
"0.59340847",
"0.5907733",
"0.5904967",
"0.5904967",
"0.5904967",
"0.5904967",
"0.5904967",
"0.5904967",
"0.5904967",
"0.5904967",
"0.5904967",
"0.5904967",
"0.58868164",
"0.58785313",
"0.5862672",
"0.5851616",
"0.5825551",
"0.58151585",
"0.58119494",
"0.5790676",
"0.5790676",
"0.57777584",
"0.5774322",
"0.5760213",
"0.5735708",
"0.5735708",
"0.5735708",
"0.5706108",
"0.5706108",
"0.57029724",
"0.56873685",
"0.56674296",
"0.56660885",
"0.56625605",
"0.566147",
"0.5655428"
] | 0.0 | -1 |
/ |========================================================== | check offensive method | public function checkOffensiveMethod($offensiveMethodId,$teamId)
{
$queryString="SELECT *
FROM team_offensive_methods
WHERE offensive_method_id=$offensiveMethodId
AND team_id=$teamId";
$query = $this->db->query($queryString);
$result=$query->result_array();
if(empty($result))
{
return FALSE;
}else{
return TRUE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isExpensive() {\n\t\treturn true;\n\t}",
"abstract protected function safetyCheck() : self;",
"public function checkOperationality()\n {\n }",
"abstract protected function doEvil();",
"public function _check()\n {\n }",
"public function performChecks(){\n\t\t\n\t}",
"abstract public function check();",
"public function isRisky(): bool;",
"public function check() {}",
"abstract function check();",
"protected function checkDisableFunctions() {}",
"function bibdk_voxb_offensive_error() {\n return array(\n '#markup' => t('bibdk_voxb_no_access', array(), array('context'=>'bibdk_voxb')),\n );\n}",
"public function getIsLossless();",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"public function isUsed()\n {\n }",
"public function isNotUsing();",
"public function tellNotEnoughMoneyInAccount()\n {\n }",
"abstract public function check_hint();",
"public function isOperational();",
"public static function check();",
"private function checkExpirated() {\n\n }",
"public function check()\n {\n }",
"public function check()\n {\n }",
"protected function getWarningWhenMethodUnavailable() {}",
"public function is_user_over_quota()\n {\n }",
"public function hasCriticalEffect(){\r\n return $this->_has(14);\r\n }",
"public function check(): void;",
"public function check(): void;",
"public function onOutOfBand (): void;",
"public function hasCritical(){\r\n return $this->_has(12);\r\n }",
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function checkSecurity() {\n }",
"public function hasCritical(){\r\n return $this->_has(9);\r\n }",
"public function hasCriticalEffect(){\r\n return $this->_has(11);\r\n }",
"public function checkAccess()\n {\n // need to be modified for security\n }",
"public function hasCriticalEffectdf(){\r\n return $this->_has(12);\r\n }",
"public static function is_in_use()\n {\n }",
"public function isEvaled()\n {\n return false;\n }",
"public function hasCriticalEffectdf(){\r\n return $this->_has(15);\r\n }",
"public function isOutdated() {}",
"public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}",
"public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}",
"public function benchThisWillBeSkipped()\n {\n }",
"public function hasIgnoredefense(){\r\n return $this->_has(31);\r\n }",
"protected abstract function doHealthcheck();",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function hasSilencedf(){\r\n return $this->_has(30);\r\n }",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"function isPowerOverloaded($extra_consumption = 0)\n{\n global $game;\n\n // Calculate buildings energy consumption\n $buildings = $game->planet['building_1'] +\n $game->planet['building_2'] + \n $game->planet['building_3'] + \n $game->planet['building_4'] + \n $game->planet['building_10'] + \n $game->planet['building_6'] + \n $game->planet['building_7'] + \n $game->planet['building_8'] +\n $game->planet['building_9'] + \n $game->planet['building_11'] + \n $game->planet['building_12'] +\n $game->planet['building_13'];\n\n // Consider extra consumption from queued buildings\n $buildings += $extra_consumption;\n\n // Check if the active planet is the user's capital\n if ($game->player['user_capital']==$game->planet['planet_id'])\n $available_power = $game->planet['building_5']*11+14;\n else\n $available_power = $game->planet['building_5']*15+3;\n\n return ($buildings >= $available_power);\n}",
"public function needsReprocessing() {}",
"protected function checkDownloadsPossible() {}",
"function isFrozen() ;",
"public function oops () {\n }",
"public function hasWarnings() {}",
"abstract public function GetProblems();",
"public function check()\r\n\t{\r\n\t\treturn true;\r\n\t}",
"public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }",
"public function isDeclined(): bool;",
"public static function check_for_updates()\n {\n }",
"function isAccessibleWithoutCode()\n\t{\n\t\treturn ($this->getAnonymize() == self::ANONYMIZE_OFF || \n\t\t\t$this->getAnonymize() == self::ANONYMIZE_FREEACCESS);\t\t\n\t}",
"public function checkOptimizeNeeded() {\n\t\t$this->isOptimizeNeeded = true;\n\t}",
"public function isInternal() {}",
"public function refresh_nonces()\n {\n }",
"function broken() { }",
"public function isDoNotSpellCheckSet() {}",
"public function isApplicable();",
"protected function localValidation()\n\t\t{\n\t\t}",
"public function checkRequirements()\n {\n }",
"public function hasCriticalDf(){\r\n return $this->_has(10);\r\n }",
"private function checkIfGOCDBIsReadOnlyAndRequestisNotGET(){\n if ($this->requestMethod != 'GET' && $this->portalIsReadOnly()){\n $this->exceptionWithResponseCode(503,\"GOCDB is currently in read only mode\");\n }\n }",
"public function nonApiDoSomethingElse()\n {\n // empty\n }",
"public function testProfilePrototypeGetQuarantines()\n {\n\n }",
"public static function isApplicable(): bool;",
"public function hasUsageRights() {}",
"abstract protected function requiredOperations1(): void;",
"public function checkCreditLimit() {\n \n Mage::getModel('storesms/apiClient')->checkCreditLimit(); \n \n }",
"function checkWarnings(){ \n $this->warnings = array();\n if ($this->feedwater->massFlow>0){\n if ($this->outletSteam->phase<>'Gas' and $this->outletSteam->quality<>1){\n $this->warnings[] = \"Outlet Steam Contains Condensate\";\n }\n if ($this->fuelEnergy<0){\n $this->warnings[] = \"Boiler Using Negative Energy\";\n }\n }\n if ($this->feedwater->massFlow<0){\n $this->warnings[] = \"Steam Flow Negative\";\n }\n return count($this->warnings);\n }",
"abstract public function testInactiveExpression();",
"public function checkExtObj() {}",
"public function getExhaustionExplanation ();",
"public function checkExtObj() {}",
"public function isUpdateSecurityRelevant() {}",
"function scheckAusdruck()\r\n {\r\n foreach ($this->belegschaft as $schluessel=>$wert)\r\n $this->belegschaft[$schluessel]->scheckAusdruck();\r\n }",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"function checkAccess() ;",
"function __return_false()\n {\n }",
"public function hasRetreatdf(){\r\n return $this->_has(29);\r\n }",
"abstract public function isAvailable() ;",
"public function hasPoisonAttack(){\r\n return $this->_has(18);\r\n }",
"function TaxExclusivePrice(){\n\t\tuser_error(\"to be completed\");\n\t}"
] | [
"0.69360614",
"0.67417717",
"0.660252",
"0.648589",
"0.642721",
"0.6299758",
"0.6229265",
"0.61370975",
"0.6136118",
"0.61277634",
"0.6105244",
"0.6089317",
"0.60652745",
"0.6047375",
"0.6047375",
"0.6047375",
"0.6047375",
"0.6047375",
"0.60472494",
"0.5990075",
"0.5987488",
"0.59830517",
"0.5980362",
"0.5917838",
"0.588634",
"0.5860074",
"0.5860074",
"0.5850656",
"0.58323675",
"0.58191067",
"0.5811935",
"0.5811935",
"0.5797727",
"0.57781214",
"0.5773977",
"0.57664716",
"0.57502735",
"0.5748275",
"0.5745438",
"0.5742587",
"0.5730371",
"0.5692907",
"0.56827116",
"0.567622",
"0.5672246",
"0.56670123",
"0.5664417",
"0.56612533",
"0.56310487",
"0.5617287",
"0.5608307",
"0.5608307",
"0.5608307",
"0.56066984",
"0.56066984",
"0.5606507",
"0.56064034",
"0.56064034",
"0.56064034",
"0.5597345",
"0.55709904",
"0.5560647",
"0.55396605",
"0.55393106",
"0.5533856",
"0.55300236",
"0.5523237",
"0.55226177",
"0.5489082",
"0.5479048",
"0.54762965",
"0.5475661",
"0.5464683",
"0.5459903",
"0.5452705",
"0.5451716",
"0.54509854",
"0.5450696",
"0.54287356",
"0.5426426",
"0.54216003",
"0.5410633",
"0.5407929",
"0.54010254",
"0.5397525",
"0.53912526",
"0.53853977",
"0.53813994",
"0.5379363",
"0.5357705",
"0.53571874",
"0.53566134",
"0.5351892",
"0.5350484",
"0.53494364",
"0.5349131",
"0.53485966",
"0.5348404",
"0.53471124",
"0.5345291",
"0.5344083"
] | 0.0 | -1 |
/ |========================================================== | count offensive method | public function checkCountOffensiveMethod($offensiveMethodId,$teamId)
{
$queryString="SELECT *
FROM team_offensive_methods
WHERE offensive_method_id=$offensiveMethodId
AND team_id=$teamId";
$query = $this->db->query($queryString);
$result=$query->result_array();
if($result[0]["qt"]==0)
{
return FALSE;
}else{
return TRUE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function countUsed()\n {\n }",
"function count(){}",
"public function _count();",
"function count() ;",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public static function count();",
"abstract public function count();",
"abstract public function count();",
"abstract public function count();",
"abstract public function count();",
"public abstract function count();",
"public abstract function count();",
"function count()\n {\n }",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"function count();",
"public static function counter() {}",
"function fetchCount();",
"function countAll() ;",
"public function getCounter();",
"function count() {\n # The return value of this function is intended to indicate the total\n # number of results of the operation the Iter represents.\n return NULL;\n }",
"public abstract function count(): int;",
"public function getTotalOfflineRefunded();",
"public /*int*/ function count()\n\t{\n\t\treturn 0;\n\t}",
"public function count() { }",
"public function count(){\n \n }",
"public function countAll() {}",
"public function countAll() {}",
"public function countAll() {}",
"public function testQuarantineCount()\n {\n\n }",
"abstract public function getCount();",
"public function countStored(): int;",
"public function getCount() {}",
"public function getCount() {}",
"public function getCount() {}",
"public function count()\n {\n }",
"public function count()\n {\n }",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"public function count(): int;",
"protected function get_request_counts()\n {\n }",
"public function getTotalOnlineRefunded();",
"function countHit() {\n\n $this->saveField('hits', $this->data['Ringsite']['hits']+1, false);\n }",
"public function countAll(): int;",
"public function getUnapprovedCount();",
"function calculateMissed(){\n\t\treturn count(self::$groundTruth) - count(self::$rating);\n\t}",
"public function computeCount() {\n if ($str = elis_consumer_http_request($this->url_pattern . '&rows=0', array('Accept' => 'application/json'))) {\n if ($json = json_decode($str)) {\n $this->totalCount = $json->response->numFound;\n }\n }\n return $this->totalCount;\n }",
"public abstract function get_counts();",
"public function getTotalCount();",
"public function getTotalCount();",
"public function getTotalCount();",
"public function incActualCalls() {\n $this->actualCalls+= 1;\n }",
"public function countDataProvider() {}",
"public function totalCount();",
"public function totalCount();",
"abstract public function getHitCount() : string;",
"public function receivedCount();",
"function count_perf($uid, $kid, $stat) {\n return count(testSetings($uid, $stat, $kid));\n}",
"public function count()\n {\n return 0;\n }",
"public function count()\n {\n return 0;\n }",
"abstract public function countTotal();",
"function apc_cache_click_updates_count() {\n\t$count = 0;\n\tif(apc_exists(APC_CACHE_CLICK_INDEX)) {\n\t\t$clickindex = apc_fetch(APC_CACHE_CLICK_INDEX);\n\t\t$count = count($clickindex);\n\t}\n\treturn $count;\n}"
] | [
"0.7349844",
"0.716194",
"0.7008492",
"0.6971389",
"0.68148637",
"0.68148637",
"0.68145233",
"0.68145233",
"0.68145233",
"0.68145233",
"0.68145233",
"0.68145233",
"0.68145233",
"0.68145233",
"0.68145233",
"0.68145233",
"0.68145233",
"0.678549",
"0.6739439",
"0.6739439",
"0.6739439",
"0.6739439",
"0.6688647",
"0.6688647",
"0.6650331",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6631205",
"0.6608804",
"0.6483661",
"0.6460685",
"0.64552253",
"0.63714355",
"0.63699543",
"0.6296273",
"0.6284149",
"0.6273922",
"0.62506545",
"0.6229259",
"0.6222565",
"0.6222565",
"0.6222565",
"0.62109005",
"0.61725897",
"0.616978",
"0.6158651",
"0.6158651",
"0.6155463",
"0.6144883",
"0.6144883",
"0.60978746",
"0.60978746",
"0.60978746",
"0.60978746",
"0.60978746",
"0.60978746",
"0.60978746",
"0.60978746",
"0.60978746",
"0.60978746",
"0.60190076",
"0.6014868",
"0.6010788",
"0.5994716",
"0.59767413",
"0.59620225",
"0.5919525",
"0.5910648",
"0.59031636",
"0.59031636",
"0.59031636",
"0.5890271",
"0.58804554",
"0.58696526",
"0.58696526",
"0.58664936",
"0.58503115",
"0.58363307",
"0.582156",
"0.582156",
"0.58187497",
"0.58095646"
] | 0.0 | -1 |
/ |========================================================== | insert offensive method | public function addOffensiveMethod($offensiveMethodId,$teamId)
{
$queryString="INSERT INTO team_offensive_methods (team_id,offensive_method_id,qt)
VALUES($teamId,$offensiveMethodId,1)";
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function doEvil();",
"private function _optimize() {}",
"public function extra();",
"protected function _refine() {\n\n\t}",
"function isExpensive() {\n\t\treturn true;\n\t}",
"protected function beforeUpdating()\n {\n }",
"public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}",
"public function refresh_nonces()\n {\n }",
"public function oops () {\n }",
"public function needsReprocessing() {}",
"protected function _insert()\n {\n \n }",
"protected function _insert()\n {\n \n }",
"protected function _preupdate() {\n }",
"abstract protected function requiredOperations1(): void;",
"public function optimize() {}",
"protected function Reserve()\n {\n }",
"protected function _insert()\n\t{\n\t}",
"public function onOutOfBand (): void;",
"protected function afterInsertAccepting()\n {\n }",
"abstract protected function _preProcess();",
"protected function preProcess() {}",
"public function implementation_pending()\n {\n }",
"public function preRetrieve();",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"protected function beforeInserting()\n {\n }",
"public function extra_voor_verp()\n\t{\n\t}",
"protected function collectInformation() {}",
"abstract protected function before();",
"private function method2()\n\t{\n\t}",
"function specialop() {\n\n\n\t}",
"public function implementation_pending(): void\n {\n }",
"abstract protected function needRefresh();",
"public function inOriginal();",
"abstract protected function safetyCheck() : self;",
"protected abstract function before();",
"protected function add() {\n\t}",
"public function _insert()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }",
"function tideways_prepend_overwritten()\n{\n}",
"function beManaged()\n {\n }",
"public function accelerate()\n {\n }",
"protected function _ensureObservation() {}",
"protected function afterAdd() {\n\t}",
"function forceInsert() {\n\t\t\n\t\t\t$this->_isUpdate = false;\n\t\t\t\n\t\t}",
"protected function afterInserting()\n {\n }",
"protected function _update()\n\t{\n\t}",
"abstract protected function update ();",
"function before_update() {}",
"function _pre() {\n\n\t}",
"abstract function before();",
"public function add_or_ignore()\n {\n $this->insert_ignore('table', array('foo' => 'bar'));\n\n // you can also do\n $this->ignore();\n $this->insert('table', array('foo' => 'bar'));\n }",
"function onBeforeAdd() {\n\t\treturn true;\n\t}",
"function on_add_extra()\r\n\t{\r\n\t}",
"private function __constrcut() { }",
"public function mass_add()\n {\n }",
"protected function fixSelf() {}",
"protected function fixSelf() {}",
"protected function beforeUpdate()\n {\n }",
"protected function before(){}",
"protected function _update()\n {\n \n }",
"protected function _update()\n {\n \n }",
"protected function preprocessInternal()\n\t{\n\t\t// void\n\t}",
"private function __() {\n }",
"public function prepareEventBeforeMerge()\n {\n // если голова не знает о пенальти, то счет по пенальти попадет в счет матча и будет задвоение\n if (isset($this->item['statP']['is_penalty']) && ! isset($this->item['headP']['is_penalty']) && isset($this->item['headP']['score_home']) && isset($this->item['headP']['score_away']))\n {\n $this->item['headP']['penalty_home'] = $this->item['headP']['score_home'];\n $this->item['headP']['penalty_away'] = $this->item['headP']['score_away'];\n unset($this->item['headP']['score_home']);\n unset($this->item['headP']['score_away']);\n }\n }",
"public function __before($capacity) {\n\t\t\t// do nothing\n\t\t}",
"protected function performUpdate() {}",
"public function nonApiDoSomethingElse()\n {\n // empty\n }",
"protected function afterUpdating()\n {\n }",
"public function after_insert() {}",
"protected function _postInsert()\n\t{\n\t}",
"final function velcom(){\n }",
"public function benchThisWillBeSkipped()\n {\n }",
"public function apply() {}",
"private function method1()\n\t{\n\t}",
"public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}",
"public function optimize();",
"public function optimize();",
"public function magicMethod(){\n $cart = $this->_getCart();\n $quoteArrayFreeProducts = array();\n $quoteArrayNonFreeProducts = array();\n $AddThisInCart = array();\n $finalAdd = array();\n\n // finding both free and non free products and saving them in array\n $quote = Mage::getSingleton('checkout/session')->getQuote();\n foreach($quote->getAllVisibleItems() as $item) {\n if($item->getData('price') == 0){\n $quoteArrayFreeProducts['item_id'][] = $item->getData('product_id');\n $quoteArrayFreeProducts['qty'][] = $item->getData('qty');\n }else{\n $quoteArrayNonFreeProducts['item_id'][] = $item->getData('product_id');\n $quoteArrayNonFreeProducts['qty'][] = $item->getData('qty');\n }\n }\n \n // print_r($quoteArrayFreeProducts);die;\n // finding free associatied produts and adding them in another array\n for($i = 0; $i < count($quoteArrayNonFreeProducts['item_id']) ;$i++){\n $product = Mage::getModel('catalog/product')->load($quoteArrayNonFreeProducts['item_id'][$i]);\n // print_r($product->getAttributeText('buyxgety'));die;\n if($product->getAttributeText('buyxgety') == 'Enable'){\n $Buyxgety_xqty = $product->getBuyxgety_xqty();\n $Buyxgety_ysku = $product->getBuyxgety_ysku();\n $Buyxgety_yqty = $product->getBuyxgety_yqty();\n\n // $Buyxgety_ydiscount = $product->getBuyxgety_ydiscount();\n if(!empty($Buyxgety_xqty) && !empty($Buyxgety_ysku) && !empty($Buyxgety_yqty) ){\n // die($Buyxgety_ysku);\n $AddThisInCart['item_id'][] = Mage::getModel('catalog/product')->getIdBySku($Buyxgety_ysku);\n $AddThisInCart['qty'][] = (int)($quoteArrayNonFreeProducts['qty'][$i]/$Buyxgety_xqty)*$Buyxgety_yqty;\n }\n }\n }\n for($i = 0; $i < count($AddThisInCart['item_id']) ;$i++){\n if(isset($quoteArrayFreeProducts['item_id'])){\n for($j = 0; $j < count($quoteArrayFreeProducts['item_id']) ;$j++){\n if($AddThisInCart['item_id'][$i] == $quoteArrayFreeProducts['item_id'][$j]){\n $finalAdd['item_id'][] = $AddThisInCart['item_id'][$i];\n $finalAdd['qty'][] = $AddThisInCart['qty'][$i] - $quoteArrayFreeProducts['qty'][$j];\n }else{\n $finalAdd['item_id'][] = $AddThisInCart['item_id'][$i];\n $finalAdd['qty'][] = $AddThisInCart['qty'][$i];\n }\n }\n }else{\n $finalAdd['item_id'][] = $AddThisInCart['item_id'][$i];\n $finalAdd['qty'][] = $AddThisInCart['qty'][$i];\n }\n }\n\n for($i = 0; $i < count($finalAdd['item_id']) ;$i++){\n for($j = 0; $j < count($quoteArrayNonFreeProducts['item_id']); $j++){\n if($finalAdd['item_id'][$i] == $quoteArrayNonFreeProducts['item_id'][$j]){\n foreach ($quoteArrayFreeProducts['item_id'] as $value) {\n if($value == $finalAdd['item_id'][$i]){\n $flag = 1;\n }else{\n $flag = 0;\n }\n }\n if($flag == 1){\n $finalAdd['new_row'][] = 0;\n }else{\n $finalAdd['new_row'][] = 1;\n }\n }\n }\n if(!empty($quoteArrayFreeProducts['item_id'])){\n for($j = 0; $j < count($quoteArrayFreeProducts['item_id']); $j++){\n if($finalAdd['item_id'][$i] == $quoteArrayFreeProducts['item_id'][$j]){\n $finalAdd['new_row'][] = 0;\n }else{\n $finalAdd['new_row'][] = 1;\n }\n }\n }else{\n $finalAdd['new_row'][] = 1;\n } \n }\n\n // print_r($finalAdd);die;\n\n if(isset($finalAdd['item_id'])){\n for($i = 0; $i < count($finalAdd['item_id']) ;$i++){\n if($finalAdd['qty'][$i] > 0){\n Mage::getSingleton('core/session')->setMultilineAddingObserver($finalAdd['new_row'][$i]);\n Mage::getSingleton('core/session')->setZeroSettingObserver(1);\n if($finalAdd['new_row'][$i] == 0){\n $cartHelper = Mage::helper('checkout/cart');\n $items = $cartHelper->getCart()->getItems(); \n foreach ($items as $item) \n {\n $itemId = $item->getItemId();\n if($item->getProductId() == $finalAdd['item_id'][$i] && $item->getPrice() == 0){\n $cartHelper->getCart()->removeItem($itemId)->save();\n $this->magicMethod();\n }\n }\n }else{\n $productToAdd = $product->load($finalAdd['item_id'][$i]);\n $params['qty'] = $finalAdd['qty'][$i];\n $params['product'] = $finalAdd['item_id'][$i];\n $cart->addProduct($productToAdd, $params);\n $cart->save();\n }\n }else if($finalAdd['qty'][$i] < 0){\n $cartHelper = Mage::helper('checkout/cart');\n $items = $cartHelper->getCart()->getItems(); \n foreach ($items as $item) \n {\n $itemId = $item->getItemId();\n if($item->getProductId() == $finalAdd['item_id'][$i] && $item->getPrice() == 0){\n $cartHelper->getCart()->removeItem($itemId)->save();\n $this->_updateShoppingCart();\n }\n } \n }\n }\n }\n }",
"private function static_things()\n\t{\n\n\t\t# code...\n\t}",
"public function keepItemsInArrayCanUseClosure() {}",
"protected function beforeInsert()\n {\n }",
"public function mutate();",
"public function mutate();",
"public function addOffensive(Offensive $l)\n\t{\n\t\tif ($this->collOffensives === null) {\n\t\t\t$this->initOffensives();\n\t\t}\n\t\tif (!in_array($l, $this->collOffensives, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collOffensives, $l);\n\t\t\t$l->setUser($this);\n\t\t}\n\t}",
"abstract function allowAddAction();",
"public function initOffensives()\n\t{\n\t\t$this->collOffensives = array();\n\t}",
"private function before_execute()\n {\n }",
"protected abstract function performImpl();",
"public function take_action()\n {\n }",
"public function take_action()\n {\n }",
"protected function getElementEntityProcessor() {}",
"protected function getElementEntityProcessor() {}",
"function PGReserveData()\r\n\t{\r\n\t}",
"public function fetchUpdates()\n\t{\n\t}",
"static function alter() {\n }",
"private function public_hooks()\n\t{\n\t}",
"protected function _postUpdate()\n\t{\n\t}",
"public function modify();",
"public function testFetchNew()\n {\n $this->skip('abstract method');\n }",
"public abstract function preTrip();",
"protected abstract function applyNoArg();",
"abstract protected function _unimplemented() : Exception;"
] | [
"0.61511034",
"0.5956059",
"0.58562005",
"0.585285",
"0.56172687",
"0.5606232",
"0.5588687",
"0.55199385",
"0.5514278",
"0.5513642",
"0.55102456",
"0.55102456",
"0.5508324",
"0.5501185",
"0.5493254",
"0.5478064",
"0.54770607",
"0.54257214",
"0.54249936",
"0.5413553",
"0.5413257",
"0.5384706",
"0.5367584",
"0.53654915",
"0.53523093",
"0.5295687",
"0.5294436",
"0.5271126",
"0.5248191",
"0.52479243",
"0.52447605",
"0.52409786",
"0.522395",
"0.5218538",
"0.5217887",
"0.52160835",
"0.52144396",
"0.5209506",
"0.5191253",
"0.5184026",
"0.51835185",
"0.51784724",
"0.5177462",
"0.51752084",
"0.51640165",
"0.512921",
"0.5128955",
"0.5124638",
"0.5124145",
"0.5103166",
"0.5098088",
"0.50911975",
"0.50871474",
"0.50780267",
"0.50758433",
"0.50758433",
"0.50663394",
"0.5061219",
"0.50554955",
"0.50554955",
"0.50402087",
"0.50369745",
"0.5036852",
"0.50302494",
"0.50248593",
"0.502089",
"0.5020291",
"0.4988271",
"0.4986734",
"0.49820808",
"0.498151",
"0.49704117",
"0.49560702",
"0.49547628",
"0.49497277",
"0.49497277",
"0.4941867",
"0.49338147",
"0.4929216",
"0.49283287",
"0.4926638",
"0.4926638",
"0.49257648",
"0.49225575",
"0.49218744",
"0.49138778",
"0.49117488",
"0.49077654",
"0.49077654",
"0.49064496",
"0.4905273",
"0.4901521",
"0.4898806",
"0.48963755",
"0.4888672",
"0.48845497",
"0.48825565",
"0.488156",
"0.48815304",
"0.48813328",
"0.48800817"
] | 0.0 | -1 |
/ |========================================================== | update offensive method | public function updateOffensiveMethod($offensiveMethodId,$teamId,$action)
{
if($action==corruption_rules::ADD_ACTION)
{
$queryString="UPDATE team_offensive_methods
SET qt=qt+1
WHERE team_id=$teamId
AND offensive_method_id=$offensiveMethodId";
}else{
$queryString="UPDATE team_offensive_methods
SET qt=qt-1
WHERE team_id=$teamId
AND offensive_method_id=$offensiveMethodId";
}
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _update()\n {\n \n }",
"protected function _update()\n {\n \n }",
"protected function performUpdate() {}",
"protected function beforeUpdating()\n {\n }",
"protected function _update()\n\t{\n\t}",
"protected function update() {}",
"protected function _preupdate() {\n }",
"abstract protected function update ();",
"protected function afterUpdating()\n {\n }",
"public function fetchUpdates()\n\t{\n\t}",
"function do_undismiss_core_update()\n {\n }",
"public function update() {\n\t\treturn;\n\t}",
"function before_update() {}",
"public function updateAnalysis() {\n return;\n }",
"public function _update()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }",
"public function updating()\n {\n # code...\n }",
"protected function beforeUpdate()\n {\n }",
"abstract public function update();",
"abstract public function update();",
"abstract function update();",
"abstract protected function needRefresh();",
"abstract public function mass_update();",
"public abstract function update();",
"function isExpensive() {\n\t\treturn true;\n\t}",
"public function update() {\r\n\r\n\t}",
"public function update() {\r\n }",
"public function update()\n\t{\n\n\t}",
"public function update()\r\n {\r\n \r\n }",
"function update() {\n\n\t\t\t}",
"public function update()\r\n {\r\n //\r\n }",
"public static function update(){\r\n }",
"protected function _postUpdate()\n\t{\n\t}",
"public static function update(){\n }",
"public function update()\n {\n \n }",
"public function update()\n {\n \n }",
"public function for_update(){\n\t\t$this->for_update = true;\n\t\treturn $this;\n\t}",
"public function update() {\n \n }",
"function after_update() {}",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"protected function afterUpdate() {\n\t}",
"protected function afterUpdate()\n {\n }",
"protected function afterUpdate()\n {\n }",
"abstract public function updateData();",
"public function preUpdate()\n {\n }",
"public function update()\n {\n //\n }",
"public function update()\n {\n //\n }",
"public function update () {\n\n }",
"public function refresh_nonces()\n {\n }",
"public function update();",
"public function update();",
"public function update();",
"public function update();",
"public function isUpdateSecurityRelevant() {}",
"public function testUpdateSuperfund()\n {\n }",
"public function after_update() {}",
"public function update()\n {\n\n }",
"public function update()\n {\n\n }",
"public function accelerate()\n {\n }",
"public static function updateAll()\r\n\t{\r\n\t}",
"public function update()\n {\n # code...\n }",
"public function update()\n {\n }",
"protected function _update()\n\t{\n\t\t$this->date_modified = \\Core\\Date::getInstance(null,\\Core\\Date::SQL_FULL, true)->toString();\n\t\t$this->last_online = $this->date_modified;\n\t}",
"public function needsReprocessing() {}",
"protected function updateAction()\n {\n }",
"public function testUpdatePayslip()\n {\n }",
"public function updating()\n {\n return false;\n }",
"public function testUpdateServiceData()\n {\n\n }",
"public function update()\n {\n return false;\n }",
"public function initOffensives()\n\t{\n\t\t$this->collOffensives = array();\n\t}",
"public function shouldUpdateAll()\n {\n return false;\n }",
"public function _cache_refresh_all()\n {\n }",
"public function Do_update_Example1(){\n\n\t}",
"public function update(): void\n {\n }",
"public function update(): void\n {\n $this->updateQuality();\n $this->updateSellIn();\n $this->expiresAfterSale();\n }",
"public function testUpdateValuesTooShort(): void { }",
"function updateLimitEnabled()\r\n\t{\r\n\t\treturn true;\r\n\t}",
"function Likee_upd(){\n\t\t// Make a local reference to the ExpressionEngine super object\n\t\t$this->EE =& get_instance();\n\t}",
"public static function check_for_updates()\n {\n }",
"function _maybe_update_core()\n {\n }",
"private function updateOperation() {\n sleep(1);\n }",
"public function testUpdateValuesTooLong(): void { }",
"public function _postUpdate()\n\t{\n\t\t$this->notifyObservers(__FUNCTION__);\n\t}",
"function refine_existing_data() {\n /* get all the data from the master table */\n $datas = RefineData::getMasterData();\n foreach ($datas as $data) {\n /* refine data from Google API and get the details */\n $add = geo2address($data->lat, $data->lang);\n /* update the address, district , state */\n if (!RefineData::updateDetails($data->id, json_encode($add))) {\n ScreenMessage::setMessage(\"Error Occured\", ScreenMessage::MESSAGE_TYPE_ERROR);\n }\n }\n ScreenMessage::setMessage(\"All is Well\", ScreenMessage::MESSAGE_TYPE_SUCCESS);\n}",
"public function testUpdateExtraFields(): void { }",
"protected function getRemainingUpdatesStatus() {}",
"protected function getUpdateAfterFunction()\n {\n \n }",
"public function implementation_pending()\n {\n }",
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function updateMultiple_data()\n {\n \n }"
] | [
"0.6669808",
"0.6669808",
"0.66264933",
"0.6582248",
"0.6562085",
"0.6472138",
"0.63336205",
"0.6330132",
"0.6309959",
"0.6296106",
"0.62958944",
"0.61260515",
"0.6000127",
"0.5960108",
"0.5958793",
"0.5921169",
"0.5908084",
"0.590345",
"0.590345",
"0.5892827",
"0.5888965",
"0.58750325",
"0.5873245",
"0.58719426",
"0.5832435",
"0.5767315",
"0.576521",
"0.5731005",
"0.57256883",
"0.572141",
"0.57158583",
"0.5704398",
"0.56810325",
"0.5678864",
"0.5678864",
"0.56773394",
"0.56612605",
"0.56518716",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56416464",
"0.56279576",
"0.5626735",
"0.5626735",
"0.56179476",
"0.5616623",
"0.5611507",
"0.5611507",
"0.5606629",
"0.56060797",
"0.5589587",
"0.5589587",
"0.5589587",
"0.5589587",
"0.5581728",
"0.55480033",
"0.554708",
"0.55369973",
"0.55369973",
"0.5533939",
"0.5529615",
"0.55283684",
"0.55263627",
"0.55151176",
"0.5509694",
"0.5494698",
"0.5462706",
"0.545917",
"0.54574895",
"0.54502004",
"0.54467636",
"0.543878",
"0.5430192",
"0.54236716",
"0.5410966",
"0.5406313",
"0.54041135",
"0.53896654",
"0.538882",
"0.5377878",
"0.53734523",
"0.5368106",
"0.53580576",
"0.53246814",
"0.5310086",
"0.5309308",
"0.5291661",
"0.5284653",
"0.5256293",
"0.52560455",
"0.5253287"
] | 0.54582226 | 77 |
/ |========================================================== | insert defensive method | public function addDefensiveMethod($defensiveMethodId,$teamId)
{
$queryString="INSERT INTO team_defensive_methods (team_id,defensive_method_id,qt)
VALUES($teamId,$defensiveMethodId,1)";
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function doEvil();",
"private function _optimize() {}",
"public function implementation_pending()\n {\n }",
"abstract protected function safetyCheck() : self;",
"public function implementation_pending(): void\n {\n }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"protected function _refine() {\n\n\t}",
"public function optimize() {}",
"function forceInsert() {\n\t\t\n\t\t\t$this->_isUpdate = false;\n\t\t\t\n\t\t}",
"private function __constrcut() { }",
"public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}",
"protected function _insert()\n\t{\n\t}",
"protected function afterInsertAccepting()\n {\n }",
"public function refresh_nonces()\n {\n }",
"private static function lowPass()\n {\n }",
"protected function Reserve()\n {\n }",
"abstract protected function requiredOperations1(): void;",
"public function __before($capacity) {\n\t\t\t// do nothing\n\t\t}",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function onOutOfBand (): void;",
"public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}",
"protected function _insert()\n {\n \n }",
"protected function _insert()\n {\n \n }",
"function fix() ;",
"protected abstract function applyNoArg();",
"protected function fixSelf() {}",
"protected function fixSelf() {}",
"public function oops () {\n }",
"protected function beforeInserting()\n {\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"function broken() { }",
"public function needsReprocessing() {}",
"abstract protected function _preProcess();",
"abstract function allowAddAction();",
"function freeze() ;",
"function beManaged()\n {\n }",
"public function _insert()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }",
"protected function preprocessInternal()\n\t{\n\t\t// void\n\t}",
"public function before_optimize() {\n\t\t$this->processed_trash_count = 0;\n\t\t$this->processed_akismet_count = 0;\n\t}",
"protected function func_default() {}",
"protected function preApply(): void {\n\t\t// this could take a bit\n\t\tset_time_limit(0);\n\t\t\n\t\t// unregister some events\n\t\telgg_unregister_event_handler('create', 'metadata', '\\ColdTrick\\TagTools\\Rules::applyRules');\n\t\telgg_unregister_event_handler('create', 'metadata', '\\ColdTrick\\TagTools\\Enqueue::createMetadata');\n\t}",
"public function nop()\n {\n }",
"public function I_can_not_create_more_than_hundred_of_percents()\n {\n }",
"public static function dummy() {}",
"public function optimize();",
"public function optimize();",
"abstract protected function before();",
"protected function _preupdate() {\n }",
"function specialop() {\n\n\n\t}",
"private function __() {\n }",
"protected function preProcess() {}",
"function noop()\n {\n }",
"protected abstract function performImpl();",
"public function hasDefense(){\r\n return $this->_has(9);\r\n }",
"public function lazy();",
"abstract function before();",
"protected function setPriority() {}",
"function onBeforeAdd() {\n\t\treturn true;\n\t}",
"public function extra();",
"public function accelerate()\n {\n }",
"private function __construct()\n {\n // disabled method\n }",
"protected abstract function before();",
"public function executeBefore()\r\n {\r\n $this->please->setStorage([\r\n '___ACFCollection' => [ 'content' => function(){ return $this->bloggyRepo->findBy(['type' => 'acf']); } ],\r\n '___PagesCollection' => [ 'content' => function(){ return $this->bloggyRepo->findBy(['type' => 'page']); } ],\r\n '___ACFChildrenCollection' => [ 'content' => function(){\r\n return $this->please->findLike($this->bloggyRepo, $this->bloggiesTable, [\r\n 'info[acf]' => null // null means we dont have the exact value\r\n ])['get']('rows');\r\n } ],\r\n '___ACFChildren2Collection' => [ 'content' => function(){\r\n return $this->please->findLike($this->bloggyRepo, $this->bloggiesTable, [\r\n 'info[_acf]' => null // null means we dont have the exact value\r\n ])['get']('rows');\r\n } ],\r\n '___UsersCollection' => [ 'content' => function(){ return $this->userRepo->findBy([], ['lastname' => 'asc']); } ],\r\n ], true);\r\n\r\n $this->setVisitsCount();\r\n }",
"function noop() {\n}",
"public function hasIgnoredefense(){\r\n return $this->_has(31);\r\n }",
"protected function afterInserting()\n {\n }",
"public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }",
"public function add_or_ignore()\n {\n $this->insert_ignore('table', array('foo' => 'bar'));\n\n // you can also do\n $this->ignore();\n $this->insert('table', array('foo' => 'bar'));\n }",
"protected function setWarningsExist() {}",
"protected function _postInsert()\n\t{\n\t}",
"private function aFunc()\n {\n }",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"function force() { \n if (is_array($this->force_this)) { \n for($i=0 ; $i< count($this->force_this) ; $i++) { \n if ($this->force_this[$i][1] == \"SIMPLE\" && !$this->passed($this->force_this[$i][0])) {\n die(\"\\n\\nMissing \" . $this->force_this[$i][0] . \"\\n\\n\"); \n }\n\n if ($this->force_this[$i][1] == \"FULL\" && !$this->full_passed($this->force_this[$i][0])) {\n die(\"\\n\\nMissing \" . $this->force_this[$i][0] .\" <arg>\\n\\n\"); \n } \n } \n } \n }",
"protected function hook1(): void { }",
"public function fix() {}",
"public function fix() {}",
"public function mass_add()\n {\n }",
"function restrictify()\n{\n\tglobal $_CREATED_FILES,$_MODIFIED_FILES;\n\n\t// Reset functions\n\tif (isset($_CREATED_FILES)) $_CREATED_FILES=array();\n\tif (isset($_MODIFIED_FILES)) $_MODIFIED_FILES=array();\n\n\t// Put back strictness\n\terror_reporting(E_ALL & ~(defined('E_DEPRECATED')?E_DEPRECATED:0));\n\tif (function_exists('set_time_limit')) @set_time_limit(25);\n\tif (get_forum_type()=='ocf') $GLOBALS['SITE_DB']->query('SET sql_mode=STRICT_ALL_TABLES',NULL,NULL,true);\n\tif ($GLOBALS['DEBUG_MODE'])\n\t{\n\t\t//@ini_set('ocproducts.type_strictness','1');\n\t\tglobal $PREVIOUS_XSS_STATE;\n\t\t//safe_ini_set('ocproducts.xss_detect',array_pop($PREVIOUS_XSS_STATE));\t\tWe don't maintain this in v8, since we increased checking strength but are not fixing all the new false-positives. Real issues are found in v9 and back-ported.\n\t}\n\t@ini_set('include_path','');\n\t@ini_set('allow_url_fopen','0');\n\t@ini_set('suhosin.executor.disable_emodifier','1');\n\t@ini_set('suhosin.executor.multiheader','1');\n\t$GLOBALS['NO_DB_SCOPE_CHECK']=false;\n\t//$GLOBALS['NO_QUERY_LIMIT']=false;\tLeave off, may have been set elsewhere than destrictify();\n}",
"public function apply() {}",
"public function benchThisWillBeSkipped()\n {\n }",
"function before_enable() { }",
"function avoidgather( )\n{\n global $rsdb;\n global $webdb;\n global $IS_BIZPhp168;\n if ( !$IS_BIZPhp168 )\n {\n return;\n }\n if ( $webdb[AvoidCopy] )\n {\n $rsdb[content] = \"<body oncopy='return false' oncut='return false'>{$rsdb['content']}\";\n }\n if ( $webdb[AvoidSave] )\n {\n $rsdb[content] = \"{$rsdb['content']}<noscript><iframe scr='*.htm'></iframe></noscript>\";\n }\n if ( !$webdb[AvoidGather] )\n {\n return;\n }\n $AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );\n $rsdb[content] = \"<div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}</div>{$rsdb['content']}<div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}</div>\";\n $AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );\n $rsdb[content] = str_replace( \"<br>\", \"<br><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>\", $rsdb[content] );\n $rsdb[content] = str_replace( \"<BR>\", \"<BR><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>\", $rsdb[content] );\n $AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );\n $rsdb[content] = str_replace( \"<p>\", \"<p><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>\", $rsdb[content] );\n}",
"function _pre() {\n\n\t}",
"public function seDeplacer() {\n $this->race->seDeplacer(2);\n }",
"abstract protected function yieldWhitelistAccess(): Generator;",
"function maintenance_nag()\n {\n }",
"abstract public function check_hint();",
"function PGReserveData()\r\n\t{\r\n\t}",
"private function static_things()\n\t{\n\n\t\t# code...\n\t}",
"static function allowed()\n {\n\n }",
"protected function beforeUpdating()\n {\n }",
"public function applyDefaultValues()\n\t{\n\t}",
"public function applyDefaultValues()\n\t{\n\t}",
"public function applyDefaultValues()\n\t{\n\t}",
"function __call($func, $args) {\r\n pdo_trigger_error(\"pdo_dummy::{$func}() {$this->msg}\", E_USER_WARNING);\r\n }",
"protected function _saveBefore()\n {\n // nothing here\n }",
"function bibdk_voxb_offensive_error() {\n return array(\n '#markup' => t('bibdk_voxb_no_access', array(), array('context'=>'bibdk_voxb')),\n );\n}",
"function DiscountConstructFunctions()\n\t{\t\n\t}",
"function do_undismiss_core_update()\n {\n }"
] | [
"0.61847204",
"0.61604035",
"0.5887526",
"0.58242786",
"0.58044577",
"0.5792964",
"0.5785342",
"0.5689117",
"0.5680579",
"0.5676825",
"0.5661432",
"0.55297625",
"0.5528939",
"0.55233496",
"0.54912955",
"0.54889226",
"0.54847646",
"0.5475246",
"0.5457286",
"0.54414594",
"0.54402816",
"0.54307115",
"0.54307115",
"0.5429547",
"0.5424417",
"0.5420728",
"0.5420728",
"0.5393127",
"0.5389792",
"0.5382109",
"0.5382109",
"0.5382109",
"0.5362214",
"0.53541976",
"0.5354114",
"0.5339326",
"0.5337455",
"0.5314102",
"0.5306958",
"0.5291746",
"0.52377844",
"0.52355254",
"0.5224723",
"0.5208926",
"0.5206573",
"0.5203808",
"0.5188518",
"0.5188518",
"0.518667",
"0.5184306",
"0.51842105",
"0.5181152",
"0.5164302",
"0.51587576",
"0.51454455",
"0.5145445",
"0.51406974",
"0.5138692",
"0.51373607",
"0.51251656",
"0.5124099",
"0.5123518",
"0.51222605",
"0.51217043",
"0.5111523",
"0.5107305",
"0.5104018",
"0.5103092",
"0.5096957",
"0.50758576",
"0.5075683",
"0.5065097",
"0.50619876",
"0.50574887",
"0.50542885",
"0.50542104",
"0.50495934",
"0.5049537",
"0.5043744",
"0.5037051",
"0.5036131",
"0.5034611",
"0.50340456",
"0.5031999",
"0.5029445",
"0.5027537",
"0.5026741",
"0.5020454",
"0.5015704",
"0.50152504",
"0.50086635",
"0.50067425",
"0.49881747",
"0.49830878",
"0.49830878",
"0.49830878",
"0.49817073",
"0.49747667",
"0.49716157",
"0.4970782",
"0.49706823"
] | 0.0 | -1 |
/ |========================================================== | update defensive method | public function updateDefensiveMethod($defensiveMethodId,$teamId,$action)
{
if($action==corruption_rules::ADD_ACTION)
{
$queryString="UPDATE team_defensive_methods
SET qt=qt+1
WHERE team_id=$teamId
AND defensive_method_id=$defensiveMethodId";
}else{
$queryString="UPDATE team_defensive_methods
SET qt=qt-1
WHERE team_id=$teamId
AND defensive_method_id=$defensiveMethodId";
}
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function do_undismiss_core_update()\n {\n }",
"protected function _update()\n\t{\n\t}",
"protected function _update()\n {\n \n }",
"protected function _update()\n {\n \n }",
"protected function _preupdate() {\n }",
"protected function performUpdate() {}",
"protected function beforeUpdating()\n {\n }",
"abstract protected function update ();",
"protected function update() {}",
"abstract public function mass_update();",
"public function update() {\n\t\treturn;\n\t}",
"protected function afterUpdating()\n {\n }",
"function before_update() {}",
"function updateLimitEnabled()\r\n\t{\r\n\t\treturn true;\r\n\t}",
"public function testUpdateValuesTooShort(): void { }",
"abstract public function update();",
"abstract public function update();",
"abstract function update();",
"protected function beforeUpdate()\n {\n }",
"public abstract function update();",
"public function refresh_nonces()\n {\n }",
"protected function _postUpdate()\n\t{\n\t}",
"public function _update()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }",
"public function updateAnalysis() {\n return;\n }",
"function _maybe_update_core()\n {\n }",
"public function update()\n\t{\n\n\t}",
"abstract protected function needRefresh();",
"public function preUpdate()\n {\n }",
"public function update()\r\n {\r\n \r\n }",
"public function update()\n {\n return false;\n }",
"public static function update(){\r\n }",
"public function update() {\r\n\r\n\t}",
"public function testUpdateValuesTooLong(): void { }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"function update() {\n\n\t\t\t}",
"public function testUpdateSuperfund()\n {\n }",
"public function update() {\r\n }",
"public function update()\r\n {\r\n //\r\n }",
"public function runDefaultUpdates()\n {\n }",
"public static function update(){\n }",
"public function update()\n {\n \n }",
"public function update()\n {\n \n }",
"function after_update() {}",
"function allowUpdate($allow){\n\t\t$this->canUpdate=$allow;\n\t}",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function update()\n {\n }",
"public function shouldUpdateAll()\n {\n return false;\n }",
"public function fetchUpdates()\n\t{\n\t}",
"public static function updateAll()\r\n\t{\r\n\t}",
"protected function afterUpdate() {\n\t}",
"private function _refresh_cache(){\n\t\t\tclear_cache_for_special_values_directory( array(\n\t\t\t\t\"permanent\" => true,\n\t\t\t\t\"directory_name\" => $this->table_name,\n\t\t\t) );\n\t\t\t\n\t\t\tunset( $this->class_settings['user_id'] );\n\t\t\t$this->class_settings[ 'do_not_check_cache' ] = 1;\n\t\t\t$this->class_settings[ 'current_record_id' ] = 'pass_condition';\n\t\t\t$this->_get_discount();\n\t\t}",
"public function updating()\n {\n # code...\n }",
"private function _optimize() {}",
"public function update();",
"public function update();",
"public function update();",
"public function update();",
"protected function afterUpdate()\n {\n }",
"protected function afterUpdate()\n {\n }",
"public function implementation_pending()\n {\n }",
"public function update()\n {\n }",
"public function update() {\n \n }",
"public function disable() {\n\t\t$this->update(TRUE);\n\t}",
"public function update()\n {\n //\n }",
"public function update()\n {\n //\n }",
"public function updating()\n {\n return false;\n }",
"function freeze() ;",
"public function update(): void\n {\n }",
"public function needsReprocessing() {}",
"public function update()\n {\n\n }",
"public function update()\n {\n\n }",
"public function update () {\n\n }",
"public function after_update() {}",
"public function isUpdateSecurityRelevant() {}",
"protected function _updatefields() {}",
"public function freeze()\n {\n\t$this->freeze= true;\n }",
"private function validateUpdate() {\n\t\t$this->context->checkPermission(\\Scrivo\\AccessController::WRITE_ACCESS);\n\t}",
"function validate_on_update() {}",
"public function for_update(){\n\t\t$this->for_update = true;\n\t\treturn $this;\n\t}",
"public function accelerate()\n {\n }",
"protected function _update()\n\t{\n\t\t$this->date_modified = \\Core\\Date::getInstance(null,\\Core\\Date::SQL_FULL, true)->toString();\n\t\t$this->last_online = $this->date_modified;\n\t}",
"public function implementation_pending(): void\n {\n }",
"abstract public function updateData();",
"protected function _refine() {\n\n\t}",
"public function _cache_refresh_all()\n {\n }",
"function mgd_cache_invalidate()\n{\n}",
"private function walledGardenData()\n {\n $this->rowsUpdated += $this->DBF->setChilliConfigSingle('nousergardendata', true);\n }",
"public function update()\n {\n # code...\n }",
"abstract protected function doEvil();",
"public function Do_update_Example1(){\n\n\t}"
] | [
"0.69744307",
"0.67966855",
"0.6743991",
"0.6743991",
"0.6634163",
"0.6617548",
"0.65307873",
"0.65268904",
"0.6422318",
"0.6355437",
"0.6352221",
"0.62732565",
"0.6244155",
"0.6116011",
"0.6105813",
"0.6087296",
"0.6087296",
"0.6087085",
"0.6026403",
"0.6017257",
"0.6003521",
"0.59853923",
"0.5982254",
"0.59700894",
"0.59432983",
"0.5942582",
"0.5920133",
"0.58802724",
"0.5877135",
"0.5871838",
"0.5867312",
"0.58658886",
"0.5865627",
"0.58536905",
"0.5846946",
"0.5845936",
"0.5801336",
"0.57928467",
"0.57753086",
"0.57707334",
"0.5762192",
"0.5762192",
"0.57474893",
"0.5736419",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.5729264",
"0.57264787",
"0.57203245",
"0.57188094",
"0.5716256",
"0.5715716",
"0.57079446",
"0.5697974",
"0.56932455",
"0.56932455",
"0.56932455",
"0.56932455",
"0.56854856",
"0.56854856",
"0.56851876",
"0.56609285",
"0.5660116",
"0.5656142",
"0.5654131",
"0.5654131",
"0.56450564",
"0.5628756",
"0.5613865",
"0.5592318",
"0.55881166",
"0.55881166",
"0.55826676",
"0.5563315",
"0.55546606",
"0.5544067",
"0.5527315",
"0.5526796",
"0.550069",
"0.54988813",
"0.54987776",
"0.54923224",
"0.5475734",
"0.5464643",
"0.54575866",
"0.5455281",
"0.5448002",
"0.5439559",
"0.5429306",
"0.54290473",
"0.5428049"
] | 0.5470413 | 92 |
/ |========================================================== | Get own offensive methods | public function getOwnOffensiveMethods($teamId)
{
$queryString="SELECT *
FROM team_offensive_methods,corruption_offensive_methods
WHERE team_offensive_methods.offensive_method_id=corruption_offensive_methods.corruption_offensive_id
AND team_offensive_methods.team_id=$teamId";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"abstract protected function doEvil();",
"abstract protected function getDirectGetters();",
"private function private_method() {}",
"public function oops () {\n }",
"public function extra();",
"function method_no_specs() {}",
"public function getdefensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function methods();",
"public function getActiveMethods();",
"private function __() {\n }",
"public function getEnhanced();",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"public function deprecatedMethod () {}",
"private function __construct()\n {\n // disabled method\n }",
"function beManaged()\n {\n }",
"public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}",
"public static function right_public(){return false;}",
"protected function protected_method() {}",
"public static function getDisabledMethods()\n {\n return array();\n }",
"abstract protected function requiredOperations1(): void;",
"#[Pure]\n public function getMethod() {}",
"private function method1()\n\t{\n\t}",
"private function method2()\n\t{\n\t}",
"public function nonApiDoSomethingElse()\n {\n // empty\n }",
"public function isNotUsing();",
"protected function getWarningWhenMethodUnavailable() {}",
"abstract protected function loadExposedObjects();",
"public static function getDocumentMagicMethods() {}",
"private function static_things()\n\t{\n\n\t\t# code...\n\t}",
"private function public_hooks()\n\t{\n\t}",
"private function _i() {\n }",
"function isAccessibleWithoutCode()\n\t{\n\t\treturn ($this->getAnonymize() == self::ANONYMIZE_OFF || \n\t\t\t$this->getAnonymize() == self::ANONYMIZE_FREEACCESS);\t\t\n\t}",
"public function isInternal() {}",
"public function testQuarantinePrototypeGetQuarantined()\n {\n\n }",
"public function __invoke()\n {\n }",
"#[Pure]\n public function getRequestMethod() {}",
"public function isUsed()\n {\n }",
"private static function internals()\n {\n // Plural Shortcut references (readability)\n $pp = &self::$plural;\n $pm = &self::$plural['merged'];\n $pd = &self::$data['plural'];\n\n // Prepare the plural internals\n $pm['irregular'] = $pp['irregular'];\n $pm['uninflected'] = array_merge($pp['uninflected'], self::$uninflected);\n $pp['cacheUninflected'] = '(?:'.implode('|', $pm['uninflected']).')';\n $pp['cacheIrregular'] = '(?:'.implode('|', array_keys($pm['irregular'])).')';\n\n // Singular Shortcut references (readability)\n $sp = &self::$singular;\n $sm = &$sp['merged'];\n $sd = &self::$data['singular'];\n\n // Prepare the singular internals\n $sm['uninflected'] = array_merge($sp['uninflected'], self::$uninflected);\n $sm['irregular'] = array_merge($sp['irregular'], array_flip($pp['irregular']));\n $sp['cacheUninflected'] = '(?:'.implode('|', $sm['uninflected']).')';\n $sp['cacheIrregular'] = '(?:'.implode('|', array_keys($sm['irregular'])).')';\n }",
"public function custom()\n\t{\n\t}",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function __invoke();",
"public function testProfilePrototypeGetQuarantines()\n {\n\n }",
"abstract protected function external();",
"private function getPrivate(){\n return \"I am a private function\";\n }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"public function getMethods()\n {\n // it returns all methods from all parent objects, and I only want\n // this to return the methods from this object only.\n return array(\n 'shouldBeCalled',\n 'getMIMEType',\n 'getTitle',\n 'getSize',\n 'getDescription',\n 'getLastModified',\n 'getCreated',\n 'hasChildren',\n 'getDirectories',\n 'getFiles',\n 'rename',\n 'delete',\n 'getAllChildren',\n 'move',\n 'newDirectory'\n );\n }",
"public function getReservedForFutureUse1Attribute(){}",
"public function someStuff()\n {\n \n }",
"public function __toString(){\n\t\tthrow new Exception(\"Method \".__CLASS__.\"::\".__METHOD__.\" not implemented yet!\");\n\t}",
"public function truycapvao_private_cha(){\n }",
"protected static function __getTypeHintAbleMethods()\n {\n return [];\n }",
"public function getUsage() {\n\t\t// this function is not yet used.\n\t}",
"public function __invoke()\n {\n\n }",
"abstract public function __invoke(): void;",
"function specialop() {\n\n\n\t}",
"public function getMethods(): array;",
"public function getMethods(): array;",
"function getObjectives() {\n return Engine::send('getObjectives');\n}",
"public function getPicoDeprecated();",
"private function privateDummy()\n {\n }",
"private function __clone()\n {\n // @codeCoverageIgnoreStart\n throw new BadMethodCallException();\n // @codeCoverageIgnoreEnd\n }",
"private function __clone()\n {\n // @codeCoverageIgnoreStart\n throw new BadMethodCallException();\n // @codeCoverageIgnoreEnd\n }",
"public function core();",
"abstract protected function attributes();",
"function getMethodsHead()\n {\n\n }",
"abstract protected function safetyCheck() : self;",
"private function aFunc()\n {\n }",
"public function getMethods();",
"public function getMethods();",
"public function getMethods();",
"public function method() {\n\t}",
"public function mt_supportedMethods()\n {\n }",
"public function provides();",
"abstract public function otherfoo();",
"public function get_method()\n {\n }",
"public function getDeprecated();",
"abstract protected function yieldWhitelistAccess(): Generator;",
"final private function finalPrivateMethod()\n {\n }",
"public function method();",
"public function method();",
"public function method();",
"public function method();",
"public function getMyReserved();",
"public function none(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }",
"public function get_nonces()\n {\n }",
"public function testCoverAllMethods();",
"protected function checkDisableFunctions() {}",
"public function __getMethods() {\n\t\t\t$methods = array_unique(array_merge(parent::__getMethods(), $this->methods));\n\t\t\treturn $methods;\n\t\t}",
"#[Pure]\n public function getMethod(): string {}",
"protected function collectInformation() {}",
"public function get_lookup(/* ... */)\n {\n throw new \\RuntimeException('Method not implemented');\n }",
"abstract public function getCurrentUsage();",
"public function isInternal() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->isInternal();\n } else {\n return parent::isInternal();\n }\n }",
"protected function getOldXclassUsageStatus() {}",
"public function checkOperationality()\n {\n }",
"function __prototype() {\n return 'foo';\n }"
] | [
"0.6515218",
"0.6136331",
"0.6135124",
"0.6132499",
"0.6079993",
"0.6060145",
"0.60444033",
"0.5968786",
"0.59131795",
"0.590473",
"0.5880408",
"0.58644515",
"0.57663924",
"0.57663924",
"0.57663924",
"0.57159466",
"0.57050884",
"0.56853473",
"0.56388575",
"0.56337494",
"0.56302977",
"0.56278706",
"0.5622819",
"0.5619354",
"0.561026",
"0.5609298",
"0.55837744",
"0.5568301",
"0.5561447",
"0.55425704",
"0.55415124",
"0.5520699",
"0.5520696",
"0.55129486",
"0.55076796",
"0.5498209",
"0.5498042",
"0.54965925",
"0.5488219",
"0.5485143",
"0.54765373",
"0.5474199",
"0.5469949",
"0.5469949",
"0.5469949",
"0.5469949",
"0.5469123",
"0.54608357",
"0.5460745",
"0.5446481",
"0.54420906",
"0.54402524",
"0.5439023",
"0.54377675",
"0.54214346",
"0.5418541",
"0.5409348",
"0.54045093",
"0.537141",
"0.5370818",
"0.5368443",
"0.5368443",
"0.5362555",
"0.5361307",
"0.5356999",
"0.5351499",
"0.5351499",
"0.5346296",
"0.5335352",
"0.53249437",
"0.53234017",
"0.53218275",
"0.53140545",
"0.53140545",
"0.53140545",
"0.52975655",
"0.5288447",
"0.5287785",
"0.52802557",
"0.52777475",
"0.5273752",
"0.52628744",
"0.52566713",
"0.52560055",
"0.52560055",
"0.52560055",
"0.52560055",
"0.52512234",
"0.5249597",
"0.5241099",
"0.52084297",
"0.52076536",
"0.5207507",
"0.519896",
"0.51914096",
"0.51868445",
"0.518673",
"0.5180948",
"0.51683843",
"0.5168382",
"0.51626647"
] | 0.0 | -1 |
/ |========================================================== | Get own defensive methods | public function getOwnDefensiveMethods($teamId)
{
$queryString="SELECT *
FROM team_defensive_methods,corruption_defensive_methods
WHERE team_defensive_methods.defensive_method_id=corruption_defensive_methods.corruption_defensive_id
AND team_defensive_methods.team_id=$teamId";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getdefensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"function method_no_specs() {}",
"abstract protected function doEvil();",
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function safetyCheck() : self;",
"public static function right_public(){return false;}",
"protected function checkDisableFunctions() {}",
"private function private_method() {}",
"public function oops () {\n }",
"private function __construct()\n {\n // disabled method\n }",
"private function privateDummy()\n {\n }",
"private function __() {\n }",
"public static function dummy() {}",
"static function denied()\n {\n\n }",
"function broken() { }",
"public function disabled();",
"public function disabled();",
"public static function getDisabledMethods()\n {\n return array();\n }",
"protected function protectedDummy()\n {\n }",
"static function allowed()\n {\n\n }",
"function noop() {\n}",
"public function isNotUsing();",
"public function none(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }",
"function isAccessibleWithoutCode()\n\t{\n\t\treturn ($this->getAnonymize() == self::ANONYMIZE_OFF || \n\t\t\t$this->getAnonymize() == self::ANONYMIZE_FREEACCESS);\t\t\n\t}",
"abstract protected function yieldWhitelistAccess(): Generator;",
"public function nonApiDoSomethingElse()\n {\n // empty\n }",
"protected function getWarningWhenMethodUnavailable() {}",
"function noop()\n {\n }",
"protected function protected_method() {}",
"function isExpensive() {\n\t\treturn true;\n\t}",
"public function deprecatedMethod () {}",
"public function get_nonces()\n {\n }",
"function beManaged()\n {\n }",
"abstract public function GetProblems();",
"abstract protected function getDirectGetters();",
"private function aFunc()\n {\n }",
"public function getDeprecated();",
"public function testQuarantinePrototypeGetQuarantined()\n {\n\n }",
"protected static function __getTypeHintAbleMethods()\n {\n return [];\n }",
"public function getDefaultMethodNotMain()\n {\n return 2;\n }",
"private function static_things()\n\t{\n\n\t\t# code...\n\t}",
"abstract protected function requiredOperations1(): void;",
"protected function _get_ready() {\n $this->report_warning(\"This is the default (empty) implementation of _get_ready() method, seems that this object lacks specific implementation\");\n }",
"public static function prevent_forumngfeature_discussion() {\n return array();\n }",
"public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}",
"public function implementation_pending()\n {\n }",
"function om_warnings_get_restrictions($allow_none = false)\n{\n\tglobal $lang_om_warnings;\n\n\t$restrictions = array();\n\n\tif ($allow_none)\n\t\t$restrictions['none'] = $lang_om_warnings['No restriction'];\n\n\t$restrictions['om_post'] = $lang_om_warnings['Disallow to write posts'];\n\t$restrictions['om_edit'] = $lang_om_warnings['Disallow to edit posts'];\n\t$restrictions['om_topic'] = $lang_om_warnings['Disallow to create topics'];\n\t$restrictions['om_banned'] = $lang_om_warnings['Ban user'];\n\t$restrictions['om_signature'] = $lang_om_warnings['Block signature'];\n\t$restrictions['om_avatar'] = $lang_om_warnings['Block avatar'];\n\n\t($hook = get_hook('om_warnings_fn_get_restrictions_pre_return')) ? eval($hook) : null;\n\treturn $restrictions;\n}",
"public function methods();",
"public function refresh_nonces()\n {\n }",
"function freeze() ;",
"public function getPicoDeprecated();",
"function isFrozen() ;",
"private function getPrivate(){\n return \"I am a private function\";\n }",
"public function getUnresolved();",
"protected function getProtected(){\n return \"I am a protected function\";\n }",
"public function hasIgnoredefense(){\r\n return $this->_has(31);\r\n }",
"public function isUsed()\n {\n }",
"private function public_hooks()\n\t{\n\t}",
"public function implementation_pending(): void\n {\n }",
"public function getGuarded();",
"public function notImportant()\n {\n return $this->setImportance(self::IMPORTANCE_NOT);\n }",
"public function lazy();",
"private function _protectionFunctions()\n\t{\n\t\tglobal $MySmartBB;\n\t\t\n\t\t// ... //\n\t\t\n\t\t// Preventing XSS and SQL Injection's keywords from the GET request\n \tforeach ( $MySmartBB->_GET as $get )\n \t{\n \t\t\tif ( (preg_match(\"/\\<[^\\>]*script*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*object*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*iframe*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*applet*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*meta*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*style*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*form*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*img*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/select/\", $get)) or\n \t\t\t(preg_match(\"/union/\", $get)) or\n \t\t\t(preg_match(\"/--/\", $get)) )\n {\n \t\t\tdie( 'Forbidden Action' );\n \t\t\t}\n \t\t}\n \t\t \t\t\n \t\t// ... //\n \t\t\n \t\t// Stop any external post request.\n \t\t// At least prevent novice crackers.\n \t\tif ( $MySmartBB->_SERVER['REQUEST_METHOD'] == 'POST' )\n \t{\n \t\t// ... //\n \t\t\n \t\t\t$from = explode( '/', $MySmartBB->_SERVER[ 'HTTP_REFERER' ] );\n \t\t\t$host = explode( '/', $MySmartBB->_SERVER[ 'HTTP_HOST' ] );\n\n \t\t\t// ... //\n \t\t\t\n \t\t\tif ( $from[ 2 ] != $host[ 0 ] )\n \t\t\t\tdie( 'Forbidden Action' );\n \t\t\t\n \t\t\t// ... //\n \t\t}\n \t\t\n \t\t// ... //\n\t}",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }",
"public function getMyReserved();",
"public function isInternal() {}",
"function bibdk_voxb_offensive_error() {\n return array(\n '#markup' => t('bibdk_voxb_no_access', array(), array('context'=>'bibdk_voxb')),\n );\n}",
"private function method1()\n\t{\n\t}",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"private function privateMethodWithNoArguments()\n {\n return 'private:no-arguments';\n }",
"public function extra();",
"private function __constrcut() { }",
"protected function func_default() {}",
"public function testRule(): void\n\t{\n\t\t$this->analyse([__DIR__ . '/../src/disallowed/functionCalls.php'], [\n\t\t\t[\n\t\t\t\t// expect this error message:\n\t\t\t\t'Calling var_dump() is forbidden, use logger instead',\n\t\t\t\t// on this line:\n\t\t\t\t7,\n\t\t\t\t'See docs',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling print_R() is forbidden, nope [print_R() matches print_r()]',\n\t\t\t\t8,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling printf() is forbidden, because reasons',\n\t\t\t\t9,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling Foo\\Bar\\waldo() is forbidden, whoa, a namespace',\n\t\t\t\t10,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling Foo\\Bar\\waldo() (as waldo()) is forbidden, whoa, a namespace',\n\t\t\t\t11,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling shell_exec() is forbidden, because reasons [shell_exec() matches shell_*()]',\n\t\t\t\t12,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling exec() is forbidden, because reasons [exec() matches exe*()]',\n\t\t\t\t13,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling print_r() is forbidden, nope',\n\t\t\t\t25,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling hash() is forbidden, MD4 very bad',\n\t\t\t\t49,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling hash() is forbidden, MD5 bad',\n\t\t\t\t50,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling hash() is forbidden, MD5 bad',\n\t\t\t\t51,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling hash() is forbidden, SHA-1 bad soon™',\n\t\t\t\t52,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling hash() is forbidden, SHA-1 bad SOON™',\n\t\t\t\t53,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling setcookie() is forbidden, because reasons',\n\t\t\t\t59,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling header() is forbidden, because reasons',\n\t\t\t\t64,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling htmlspecialchars() is forbidden, because reasons',\n\t\t\t\t69,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling htmlspecialchars() is forbidden, because reasons',\n\t\t\t\t70,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling htmlspecialchars() is forbidden, because reasons',\n\t\t\t\t71,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling htmlspecialchars() is forbidden, because reasons',\n\t\t\t\t72,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling htmlspecialchars() is forbidden, because reasons',\n\t\t\t\t73,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling array_filter() is forbidden, callback parameter must be given.',\n\t\t\t\t76,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling Foo\\Bar\\Waldo\\mocky() is forbidden, mocking Blade is not allowed.',\n\t\t\t\t83,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling Foo\\Bar\\Waldo\\config() is forbidden, because reasons',\n\t\t\t\t91,\n\t\t\t],\n\t\t]);\n\t\t// Based on the configuration above, no errors in this file:\n\t\t$this->analyse([__DIR__ . '/../src/disallowed-allow/functionCalls.php'], [\n\t\t\t[\n\t\t\t\t'Calling Foo\\Bar\\waldo() (as waldo()) is forbidden, whoa, a namespace',\n\t\t\t\t11,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling setcookie() is forbidden, because reasons',\n\t\t\t\t59,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling setcookie() is forbidden, because reasons',\n\t\t\t\t60,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling header() is forbidden, because reasons',\n\t\t\t\t64,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling header() is forbidden, because reasons',\n\t\t\t\t65,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling htmlspecialchars() is forbidden, because reasons',\n\t\t\t\t69,\n\t\t\t],\n\t\t\t[\n\t\t\t\t'Calling htmlspecialchars() is forbidden, because reasons',\n\t\t\t\t70,\n\t\t\t],\n\t\t]);\n\t}",
"protected abstract function applyNoArg();",
"public function testProfilePrototypeGetQuarantines()\n {\n\n }",
"public function hasDefense(){\r\n return $this->_has(9);\r\n }",
"public function disable();",
"final private function finalPrivateMethod()\n {\n }",
"abstract public function require_access();",
"public function getExplicitlyAllowAndDeny() {}",
"public function someStuff()\n {\n \n }",
"public function freeze() {}",
"abstract public function getAttack();",
"public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}",
"public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"final public function finalPublicMethod()\n {\n }",
"public function hasSilencedf(){\r\n return $this->_has(30);\r\n }",
"function __onload($params){\n\t\t$this->disable_methods();\n\t}",
"function disable_function() {\r\n die('Disabled');\r\n}",
"public function nothing(): void;",
"public static function getDocumentMagicMethods() {}",
"function disable_caching() {\n\t/**\n\t * Stub to simulate cache misses, so that the tests always get fresh results\n\t *\n\t * @return false\n\t */\n\tfunction wp_cache_get( $key, $group = '', $force = false, &$found = null ) {\n\t\treturn false;\n\t}\n\n\t/**\n\t * Stub to avoid setting production object cache values while testing.\n\t */\n\tfunction wp_cache_set( $key, $data, $group = '', $expire = 0 ) {\n\t\t// Intentionally empty\n\t}\n}",
"public function nullberry(): void\n\t{\n\t}",
"function disable_function()\n{\n die('Disabled');\n}"
] | [
"0.68003297",
"0.6517954",
"0.64487356",
"0.620623",
"0.6204379",
"0.6204379",
"0.6204379",
"0.60087365",
"0.60034806",
"0.5929655",
"0.5913004",
"0.58383614",
"0.5832825",
"0.58323425",
"0.58265305",
"0.5824152",
"0.5798964",
"0.5736003",
"0.5722869",
"0.5722869",
"0.5689255",
"0.56891954",
"0.5666819",
"0.5645585",
"0.5645407",
"0.5642308",
"0.5641066",
"0.56400317",
"0.56156427",
"0.5608414",
"0.5605774",
"0.5585885",
"0.5574212",
"0.5570162",
"0.55546063",
"0.5538988",
"0.55147207",
"0.5512488",
"0.5504088",
"0.5503601",
"0.5501261",
"0.5500334",
"0.5480362",
"0.5474096",
"0.5460993",
"0.5443293",
"0.54424405",
"0.5438732",
"0.5431488",
"0.54077536",
"0.54050404",
"0.53984725",
"0.53924316",
"0.5364829",
"0.5363249",
"0.53548837",
"0.5348972",
"0.5333403",
"0.53285676",
"0.5328173",
"0.5327924",
"0.532744",
"0.5324716",
"0.53215927",
"0.53143114",
"0.53007865",
"0.52932984",
"0.52932984",
"0.52928877",
"0.52818763",
"0.5275602",
"0.52643573",
"0.5259681",
"0.52464837",
"0.5239783",
"0.52397114",
"0.5236013",
"0.5232714",
"0.5231347",
"0.5226184",
"0.52259487",
"0.5225849",
"0.52167344",
"0.52139205",
"0.5207587",
"0.5204247",
"0.51978576",
"0.51948696",
"0.51947176",
"0.51922023",
"0.51909655",
"0.519036",
"0.51853395",
"0.5184573",
"0.518281",
"0.5181636",
"0.51804495",
"0.51726687",
"0.51711416",
"0.51677054",
"0.5166116"
] | 0.0 | -1 |
/ |========================================================== | Get used Defensive methods | public function getUsedDefensiveMethods($teamId/*,$matchId*/)
{
/*$queryString="SELECT *
FROM team_used_corruption,corruption_defensive_methods
WHERE team_used_corruption.corruption_id=corruption_defensive_methods.corruption_defensive_id
AND team_used_corruption.team_id=$teamId
AND team_used_corruption.match_id=$matchId
AND team_used_corruption.method_type=1";*/
$queryString="SELECT *
FROM team_used_corruption,corruption_defensive_methods
WHERE team_used_corruption.corruption_id=corruption_defensive_methods.corruption_defensive_id
AND team_used_corruption.team_id=$teamId
AND team_used_corruption.method_type=1";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getdefensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function getUsage() {\n\t\t// this function is not yet used.\n\t}",
"public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}",
"public function provides();",
"public function isUsed()\n {\n }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"function method_no_specs() {}",
"abstract public function getCurrentUsage();",
"public function getDeprecated();",
"public function methods();",
"public function available();",
"public function available();",
"abstract protected function safetyCheck() : self;",
"public function getActiveMethods();",
"public function usage() {}",
"public function getTheSupports();",
"protected static function __getTypeHintAbleMethods()\n {\n return [];\n }",
"public function mt_supportedMethods()\n {\n }",
"public function getRequiredFeatures();",
"public function core();",
"protected function checkDisableFunctions() {}",
"function beManaged()\n {\n }",
"static function Describe() { return \"\"; }",
"private function static_things()\n\t{\n\n\t\t# code...\n\t}",
"abstract public function GetProblems();",
"abstract protected function requiredOperations1(): void;",
"function getMethodsHead()\n {\n\n }",
"public function deprecatedMethod () {}",
"public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}",
"public function checkFeatureImplemented();",
"function get_tools()\n {\n }",
"public function getPicoDeprecated();",
"public function getRestrictedToInstruments();",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"public function hasDefense(){\r\n return $this->_has(9);\r\n }",
"abstract public function getRequirements();",
"public function helper()\n\t{\n\t\n\t}",
"private static function support()\n {\n require_once static::$root.'Support'.'/'.'FunctionArgs.php';\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"public static function getFwStats()\n {\n die( __METHOD__ . ' method must be overloaded in the CMS-based Helper class' );\n }",
"protected function getWarningWhenMethodUnavailable() {}",
"public function isNotUsing();",
"public function getMethods();",
"public function getMethods();",
"public function getMethods();",
"public function isApplicable();",
"protected function getAllAvailableMethods()\n {\n /* TODO get all available payment methods from toolbox */\n }",
"protected function _getMethods()\n {\n $reflect = new ReflectionClass($this);\n $list = array();\n $methods = $reflect->getMethods();\n foreach ($methods as $method) {\n $name = $method->getName();\n if (substr($name, 0, 5) == 'bench') {\n $list[] = $name;\n }\n }\n return $list;\n }",
"private function analyzeUnused()\n {\n foreach ($this->functionCallsArray as $functionCall)\n {\n $targetFunctionName = $functionCall->getTargetFunctionName();\n if (!isset($this->functionDeclarationsMap[$targetFunctionName]))\n throw new Exception(\"Call of undefined function $targetFunctionName\");\n\n $targetFunctionIndex = $this->functionDeclarationsMap[$targetFunctionName];\n\n $this->functionDeclarationsUseFlagArray[$targetFunctionIndex] = true;\n\n if ($this->parseConfiguration->verbose)\n {\n $functionDeclaration = $this->functionDeclarationsArray[$targetFunctionIndex];\n print(\"Used from scope function decl. no. $targetFunctionIndex: {$functionDeclaration->getFunctionName()}\\n\");\n }\n }\n\n /**\n * Step 2. Iterate over all function declarations, build call map (functionCallIndexes)\n */\n foreach ($this->functionDeclarationsUseFlagArray as $index => $isCalled)\n {\n $functionDeclaration = $this->functionDeclarationsArray[$index];\n $functionCallsIndexes = [];\n\n foreach ($functionDeclaration->getAllInnerFunctionCalls() as $functionCall)\n {\n $targetFunctionName = $functionCall->getTargetFunctionName();\n if (!isset($this->functionDeclarationsMap[$targetFunctionName]))\n throw new Exception(\"Call of undefined function $targetFunctionName in {$functionDeclaration->getFunctionName()}\");\n\n $targetFunctionIndex = $this->functionDeclarationsMap[$targetFunctionName];\n\n $functionCallsIndexes[] = $targetFunctionIndex;\n }\n\n $this->functionCallIndexes[] = $functionCallsIndexes;\n }\n\n /**\n * Step 3. Recursive mark used functions (start from functions from step 1)\n */\n\n for ($i = 0; $i < count($this->functionDeclarationsUseFlagArray); $i++)\n {\n if ($this->functionDeclarationsUseFlagArray[$i])\n $this->markFunctionCallsAsUsed($i);\n }\n\n /**\n * Step 4. Build list of unusedFunctions\n */\n for ($i = 0; $i < count($this->functionDeclarationsUseFlagArray); $i++)\n {\n if (!$this->functionDeclarationsUseFlagArray[$i]){\n $functionInfo = $this->functionDeclarationsArray[$i];\n\n if (!$this->parseConfiguration->multiFile){\n $startFileAbsolutePath = realpath($this->startFile);\n $currentFileAbsolutePath = realpath($this->projectDirectory . DIRECTORY_SEPARATOR . $functionInfo->getFilePath());\n\n if (realpath($startFileAbsolutePath) != realpath($currentFileAbsolutePath))\n continue;\n }\n\n\n $this->unusedFunctions[] = $functionInfo;\n\n if ($this->parseConfiguration->verbose) {\n print(\"Unused function {$functionInfo->getFunctionName()} on line {$functionInfo->getLineNo()}\\n\");\n }\n }\n }\n\n }",
"public function getGeneralDocumentation();",
"abstract protected function getDirectGetters();",
"public function provides()\n\t{\n\t\treturn array('dandb');\n\t}",
"public function oops () {\n }",
"abstract public function getFunctions();",
"function spellcheck()\r\n\t{\r\n\t\t$this->output->enable_profiler(FALSE);\r\n\r\n\t\tif ( ! class_exists('EE_Spellcheck'))\r\n\t\t{\r\n\t\t\trequire APPPATH.'libraries/Spellcheck.php'; \r\n\t\t}\r\n\r\n\t\treturn EE_Spellcheck::check();\r\n\t}",
"protected function collectInformation() {}",
"abstract protected function doEvil();",
"public function availableClasses()\n {\n }",
"public function checkOperationality()\n {\n }",
"public function getRequiresEHLO();",
"function spellcheck()\n\t{\n\t\t$this->output->enable_profiler(FALSE);\n\n\t\tif ( ! class_exists('EE_Spellcheck'))\n\t\t{\n\t\t\trequire APPPATH.'libraries/Spellcheck.php';\n\t\t}\n\n\t\treturn EE_Spellcheck::check();\n\t}",
"public function getFunctions()\n {\n return $this->__getFunctions();\n }",
"public static function getSupportedMethods(): array {}",
"public function getUnresolved();",
"abstract protected function getFeatures();",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"function getObjectives() {\n return Engine::send('getObjectives');\n}",
"private function private_method() {}",
"protected function _get_ready() {\n $this->report_warning(\"This is the default (empty) implementation of _get_ready() method, seems that this object lacks specific implementation\");\n }",
"private static function internals()\n {\n // Plural Shortcut references (readability)\n $pp = &self::$plural;\n $pm = &self::$plural['merged'];\n $pd = &self::$data['plural'];\n\n // Prepare the plural internals\n $pm['irregular'] = $pp['irregular'];\n $pm['uninflected'] = array_merge($pp['uninflected'], self::$uninflected);\n $pp['cacheUninflected'] = '(?:'.implode('|', $pm['uninflected']).')';\n $pp['cacheIrregular'] = '(?:'.implode('|', array_keys($pm['irregular'])).')';\n\n // Singular Shortcut references (readability)\n $sp = &self::$singular;\n $sm = &$sp['merged'];\n $sd = &self::$data['singular'];\n\n // Prepare the singular internals\n $sm['uninflected'] = array_merge($sp['uninflected'], self::$uninflected);\n $sm['irregular'] = array_merge($sp['irregular'], array_flip($pp['irregular']));\n $sp['cacheUninflected'] = '(?:'.implode('|', $sm['uninflected']).')';\n $sp['cacheIrregular'] = '(?:'.implode('|', array_keys($sm['irregular'])).')';\n }",
"public function getUsages(): array\n {\n return $this->usages;\n }",
"public function getFunctions();",
"public function getExhaustionExplanation ();",
"private function __() {\n }",
"abstract function is_developer();",
"function isAccessibleWithoutCode()\n\t{\n\t\treturn ($this->getAnonymize() == self::ANONYMIZE_OFF || \n\t\t\t$this->getAnonymize() == self::ANONYMIZE_FREEACCESS);\t\t\n\t}",
"public function tools()\n {\n return [\n new Viewcache,\n new PriceTracker(),\n new UpdateOrder(),\n ];\n }",
"public function testGetFeaturedMods()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }",
"function getDescription() ;",
"public function getMethods(): array;",
"public function getMethods(): array;",
"function get_alloptions_110()\n {\n }",
"public function getDescent() {}",
"public function getDescent() {}",
"public function getDescent() {}",
"public function getDescent() {}",
"public function getDescent() {}",
"public function testBasicFeatures()\n {\n return $this->doTheRealTest(false);\n }",
"private function aFunc()\n {\n }",
"public function recommendation()\n {\n }",
"public function providerBasicFunctionality(): array\n {\n $exceptions = [\n InvalidArgumentException::class,\n IOException::class,\n LogicException::class,\n RuntimeException::class,\n ];\n\n $data = [];\n\n // Give data sets a key of the class short names, rather than FQNs, for readability in test results.\n foreach ($exceptions as $class) {\n $reflection = new ReflectionClass($class);\n\n $data[$reflection->getShortName()] = [$class];\n }\n\n return $data;\n }",
"public static function right_public(){return false;}",
"public static function getDisabledMethods()\n {\n return array();\n }",
"public function getDefensiveMethodInfos($defensiveMethodId)\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n WHERE corruption_defensive_id=$defensiveMethodId\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function provides()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}",
"#[Pure]\nfunction http_support($feature = null) {}",
"public function provides()\n\t{\n\t\treturn array('ranger');\n\t}"
] | [
"0.70511925",
"0.65604186",
"0.6357855",
"0.61497474",
"0.6110509",
"0.6102015",
"0.6074376",
"0.5987049",
"0.5978087",
"0.58620924",
"0.57947063",
"0.57700866",
"0.57700866",
"0.5693536",
"0.5664447",
"0.56500465",
"0.5637398",
"0.5629652",
"0.5595982",
"0.5592767",
"0.558218",
"0.557495",
"0.55696636",
"0.5558965",
"0.55398375",
"0.5539656",
"0.5512721",
"0.55060506",
"0.550061",
"0.54998106",
"0.549637",
"0.5495161",
"0.54882014",
"0.548589",
"0.5481387",
"0.54704547",
"0.5466072",
"0.5457414",
"0.54562324",
"0.5444663",
"0.5444663",
"0.5444663",
"0.54427826",
"0.54202443",
"0.5403178",
"0.5390263",
"0.5390263",
"0.5390263",
"0.5383708",
"0.53780365",
"0.537298",
"0.537053",
"0.5369664",
"0.53696287",
"0.536936",
"0.5368103",
"0.53660154",
"0.53636366",
"0.5332795",
"0.53294265",
"0.532574",
"0.5321091",
"0.5316824",
"0.53120935",
"0.5311067",
"0.530852",
"0.5306028",
"0.5305046",
"0.53035575",
"0.53035575",
"0.5289092",
"0.5286757",
"0.52765405",
"0.52684516",
"0.5267806",
"0.5265896",
"0.52639216",
"0.52608365",
"0.52545065",
"0.5254394",
"0.5238964",
"0.52361286",
"0.52316505",
"0.5214168",
"0.5214168",
"0.5214063",
"0.52109617",
"0.52109617",
"0.52109617",
"0.5207832",
"0.5207832",
"0.52009517",
"0.52004796",
"0.5200197",
"0.51909375",
"0.51903903",
"0.5187811",
"0.51805794",
"0.51805604",
"0.51737076",
"0.5169198"
] | 0.0 | -1 |
/ |========================================================== | Get used offensive methods | public function getUsedOffensiveMethods($teamId/*,$matchId*/)
{
/*$queryString="SELECT *
FROM team_used_corruption,corruption_offensive_methods
WHERE team_used_corruption.corruption_id=corruption_offensive_methods.corruption_offensive_id
AND team_used_corruption.team_id=$teamId
AND team_used_corruption.match_id=$matchId
AND team_used_corruption.method_type=2";*/
$queryString="SELECT *
FROM team_used_corruption,corruption_offensive_methods
WHERE team_used_corruption.corruption_id=corruption_offensive_methods.corruption_offensive_id
AND team_used_corruption.team_id=$teamId
AND team_used_corruption.method_type=2";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function getdefensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_defensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n return $result;\n }",
"public function action_methods()\n\t{\n\t\t$this->runTest('gcc', 100000, 'get_called_class every time');\n\t\t$this->runTest('gcc_cached', 100000, 'caching get_called_class');\n\t}",
"public function getActiveMethods();",
"public static function getDisabledMethods()\n {\n return array();\n }",
"function method_no_specs() {}",
"protected static function __getTypeHintAbleMethods()\n {\n return [];\n }",
"public function getUsage() {\n\t\t// this function is not yet used.\n\t}",
"public function getMethods();",
"public function getMethods();",
"public function getMethods();",
"public function methods();",
"function isExpensive() {\n\t\treturn true;\n\t}",
"public function isUsed()\n {\n }",
"public function getMethods(): array;",
"public function getMethods(): array;",
"protected function checkDisableFunctions() {}",
"public function getInjectMethods() {}",
"protected function getExposedMethods(): ?array {\n $ctx = CompilerContext::getCurrentCompiler();\n if($ctx) {\n $symbols = $ctx->getValueCache()->fetchValue( FindExposedSymbolsCompiler::CACHE_EXPOSED_SYMBOLS );\n return array_keys($symbols[\"methods\"]);\n }\n return NULL;\n }",
"protected function _getMethods()\n {\n $reflect = new ReflectionClass($this);\n $list = array();\n $methods = $reflect->getMethods();\n foreach ($methods as $method) {\n $name = $method->getName();\n if (substr($name, 0, 5) == 'bench') {\n $list[] = $name;\n }\n }\n return $list;\n }",
"protected function getWarningWhenMethodUnavailable() {}",
"public function getFunctions()\n {\n return $this->__getFunctions();\n }",
"abstract protected function getDirectGetters();",
"public static function getAvailableMethods(): array\n {\n return array_diff(\n get_class_methods(static::class), // Custom methods\n get_class_methods(self::class), // Basic methods\n ['query'] // Except methods\n );\n }",
"protected function getAllAvailableMethods()\n {\n /* TODO get all available payment methods from toolbox */\n }",
"function getObjectives() {\n return Engine::send('getObjectives');\n}",
"function getMethodsHead()\n {\n\n }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"public function optionsUnusedMethods($id = null, $data) { return \"\"; }",
"static function getmethods() {\n $a_methods = call_user_func(array('PluginFusioninventoryStaticmisc', 'task_methods'));\n $a_modules = PluginFusioninventoryModule::getAll();\n foreach ($a_modules as $data) {\n if (is_callable(array('Plugin'.ucfirst($data['directory']).'Staticmisc', 'task_methods'))) {\n $a_methods = array_merge($a_methods, \n call_user_func(array('Plugin'.ucfirst($data['directory']).'Staticmisc', 'task_methods')));\n }\n }\n return $a_methods;\n }",
"public static function getDocumentMagicMethods() {}",
"function methods()\n\t{\n\t\t$methods = array();\n\t\t$disabled_functions = explode(',', @ini_get('disable_functions'));\n\n\t\tif (@extension_loaded('ftp'))\n\t\t{\n\t\t\t$methods[] = 'ftp';\n\t\t}\n\n\t\tif (!in_array('fsockopen', $disabled_functions))\n\t\t{\n\t\t\t$methods[] = 'ftp_fsock';\n\t\t}\n\n\t\treturn $methods;\n\t}",
"public function getOperations() {\n return $this->__getFunctions();\n }",
"public static function getSupportedMethods(): array {}",
"public function getMethodDescriptors(): array;",
"public function oops () {\n }",
"public function methods()\r\n {\r\n static $s_methods = array();\r\n if ( isset( $s_methods[$this->class->name] ) )\r\n {\r\n return $s_methods[$this->class->name];\r\n }\r\n $methods = $this->class->getMethods();\r\n \r\n usort( $methods, array( $this, '_method_sort' ) );\r\n \r\n $tmpArr = array();\r\n #当implements一些接口后,会导致出现重复的方法\n $out_methods = array();\r\n foreach ( $methods as $key => $method )\r\n {\r\n if ( isset( $tmpArr[$this->class->name][$method->name] ) ) continue;\r\n $tmpArr[$this->class->name][$method->name] = true;\r\n $out_methods[] = new Docs_Method( $this->class->name, $method->name );\r\n }\r\n $s_methods[$this->class->name] = $out_methods;\r\n return $out_methods;\r\n }",
"abstract public function getCurrentUsage();",
"public function __getMethods() {\n\t\t\t$methods = array_unique(array_merge(parent::__getMethods(), $this->methods));\n\t\t\treturn $methods;\n\t\t}",
"public function isNotUsing();",
"public function getMethods()\n {\n // it returns all methods from all parent objects, and I only want\n // this to return the methods from this object only.\n return array(\n 'shouldBeCalled',\n 'getMIMEType',\n 'getTitle',\n 'getSize',\n 'getDescription',\n 'getLastModified',\n 'getCreated',\n 'hasChildren',\n 'getDirectories',\n 'getFiles',\n 'rename',\n 'delete',\n 'getAllChildren',\n 'move',\n 'newDirectory'\n );\n }",
"public function provides();",
"#[Pure]\n public function getMethod() {}",
"public static function getAvailableMethods(): Collection\n {\n $class = (new \\ReflectionClass(static::class))\n ->getMethods(\\ReflectionMethod::IS_PUBLIC);\n\n return collect($class)\n ->mapWithKeys(function (\\ReflectionMethod $method) {\n return [$method->name => $method];\n })\n ->except(get_class_methods(Screen::class))\n ->except(['query'])\n ->whenEmpty(function () {\n /*\n * Route filtering requires at least one element to be present.\n * We set __invoke by default, since it must be public.\n */\n return collect('__invoke');\n })\n ->keys();\n }",
"abstract public function getFunctions();",
"public function getHookedMethods(){\n \n return $this->methods;\n \n }",
"private function private_method() {}",
"public function getDynamicMethods()\n {\n return [];\n }",
"public function mt_supportedMethods()\n {\n }",
"public function testBasicMethodInspection() {\n\t\t$class = 'lithium\\analysis\\Debugger';\n\t\t$parent = 'lithium\\core\\StaticObjectDeprecated';\n\n\t\t$expected = array_diff(get_class_methods($class), get_class_methods($parent));\n\t\t$result = array_keys(Inspector::methods($class, 'extents'));\n\t\t$this->assertEqual(array_intersect($result, $expected), $result);\n\n\t\t$result = array_keys(Inspector::methods($class, 'extents', [\n\t\t\t'self' => true, 'public' => true\n\t\t]));\n\t\t$this->assertEqual($expected, $result);\n\n\t\t$this->assertNull(Inspector::methods('lithium\\core\\Foo'));\n\n\t\t$result = Inspector::methods('stdClass', 'extents');\n\t\t$this->assertEqual([], $result);\n\t}",
"public function getMethods($class);",
"public function getFunctions();",
"public function getFunctions()\n\t{\n\t\treturn $this->__getFunctions();\n\t}",
"function isAccessibleWithoutCode()\n\t{\n\t\treturn ($this->getAnonymize() == self::ANONYMIZE_OFF || \n\t\t\t$this->getAnonymize() == self::ANONYMIZE_FREEACCESS);\t\t\n\t}",
"abstract protected function doEvil();",
"abstract protected function requiredOperations1(): void;",
"public function getUsages(): array\n {\n return $this->usages;\n }",
"public function getFunctions()\n {\n return array();\n }",
"public function getDeprecated();",
"private function getAlreadyProposedMethods($contextClass)\n {\n return self::$proposedMethods[$contextClass] ?? array();\n }",
"function beManaged()\n {\n }",
"function getTestableMethods($className) {\n\t\t$classMethods = get_class_methods($className);\n\t\t$parentMethods = get_class_methods(get_parent_class($className));\n\t\t$thisMethods = array_diff($classMethods, $parentMethods);\n\t\t$out = array();\n\t\tforeach ($thisMethods as $method) {\n\t\t\tif (substr($method, 0, 1) != '_' && $method != strtolower($className)) {\n\t\t\t\t$out[] = $method;\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}",
"public function getMethods()\r\n\t{\r\n\t\treturn $this->methods;\r\n\t}",
"public function tools()\n {\n return [\n new Viewcache,\n new PriceTracker(),\n new UpdateOrder(),\n ];\n }",
"public function deprecatedMethod () {}",
"public function GetMethod ();",
"public function available();",
"public function available();",
"private static function getAllMethods(): array\n {\n global $db;\n\n if (!isset(self::$methods)) {\n //====================================================================//\n // Include Object Dolibarr Class\n require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';\n $form = new \\Form($db);\n $form->load_cache_types_paiements();\n //====================================================================//\n // Safety Check\n if (empty($form->cache_types_paiements)) {\n return self::$methods = array();\n }\n\n return self::$methods = $form->cache_types_paiements;\n }\n\n return self::$methods;\n }",
"public static function get_supported_methods() {\n\t\treturn self::$supported_methods;\n\t}",
"private function analyzeUnused()\n {\n foreach ($this->functionCallsArray as $functionCall)\n {\n $targetFunctionName = $functionCall->getTargetFunctionName();\n if (!isset($this->functionDeclarationsMap[$targetFunctionName]))\n throw new Exception(\"Call of undefined function $targetFunctionName\");\n\n $targetFunctionIndex = $this->functionDeclarationsMap[$targetFunctionName];\n\n $this->functionDeclarationsUseFlagArray[$targetFunctionIndex] = true;\n\n if ($this->parseConfiguration->verbose)\n {\n $functionDeclaration = $this->functionDeclarationsArray[$targetFunctionIndex];\n print(\"Used from scope function decl. no. $targetFunctionIndex: {$functionDeclaration->getFunctionName()}\\n\");\n }\n }\n\n /**\n * Step 2. Iterate over all function declarations, build call map (functionCallIndexes)\n */\n foreach ($this->functionDeclarationsUseFlagArray as $index => $isCalled)\n {\n $functionDeclaration = $this->functionDeclarationsArray[$index];\n $functionCallsIndexes = [];\n\n foreach ($functionDeclaration->getAllInnerFunctionCalls() as $functionCall)\n {\n $targetFunctionName = $functionCall->getTargetFunctionName();\n if (!isset($this->functionDeclarationsMap[$targetFunctionName]))\n throw new Exception(\"Call of undefined function $targetFunctionName in {$functionDeclaration->getFunctionName()}\");\n\n $targetFunctionIndex = $this->functionDeclarationsMap[$targetFunctionName];\n\n $functionCallsIndexes[] = $targetFunctionIndex;\n }\n\n $this->functionCallIndexes[] = $functionCallsIndexes;\n }\n\n /**\n * Step 3. Recursive mark used functions (start from functions from step 1)\n */\n\n for ($i = 0; $i < count($this->functionDeclarationsUseFlagArray); $i++)\n {\n if ($this->functionDeclarationsUseFlagArray[$i])\n $this->markFunctionCallsAsUsed($i);\n }\n\n /**\n * Step 4. Build list of unusedFunctions\n */\n for ($i = 0; $i < count($this->functionDeclarationsUseFlagArray); $i++)\n {\n if (!$this->functionDeclarationsUseFlagArray[$i]){\n $functionInfo = $this->functionDeclarationsArray[$i];\n\n if (!$this->parseConfiguration->multiFile){\n $startFileAbsolutePath = realpath($this->startFile);\n $currentFileAbsolutePath = realpath($this->projectDirectory . DIRECTORY_SEPARATOR . $functionInfo->getFilePath());\n\n if (realpath($startFileAbsolutePath) != realpath($currentFileAbsolutePath))\n continue;\n }\n\n\n $this->unusedFunctions[] = $functionInfo;\n\n if ($this->parseConfiguration->verbose) {\n print(\"Unused function {$functionInfo->getFunctionName()} on line {$functionInfo->getLineNo()}\\n\");\n }\n }\n }\n\n }",
"abstract public function provideFunctors();",
"function getApiMethod()\n {\n }",
"#[Pure]\n public function getRequestMethod() {}",
"private static function internals()\n {\n // Plural Shortcut references (readability)\n $pp = &self::$plural;\n $pm = &self::$plural['merged'];\n $pd = &self::$data['plural'];\n\n // Prepare the plural internals\n $pm['irregular'] = $pp['irregular'];\n $pm['uninflected'] = array_merge($pp['uninflected'], self::$uninflected);\n $pp['cacheUninflected'] = '(?:'.implode('|', $pm['uninflected']).')';\n $pp['cacheIrregular'] = '(?:'.implode('|', array_keys($pm['irregular'])).')';\n\n // Singular Shortcut references (readability)\n $sp = &self::$singular;\n $sm = &$sp['merged'];\n $sd = &self::$data['singular'];\n\n // Prepare the singular internals\n $sm['uninflected'] = array_merge($sp['uninflected'], self::$uninflected);\n $sm['irregular'] = array_merge($sp['irregular'], array_flip($pp['irregular']));\n $sp['cacheUninflected'] = '(?:'.implode('|', $sm['uninflected']).')';\n $sp['cacheIrregular'] = '(?:'.implode('|', array_keys($sm['irregular'])).')';\n }",
"public function none(){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }",
"public function get_method()\n {\n }",
"public function getUncallables(): array\n {\n return $this->uncallables;\n }",
"public function getRestrictedToInstruments();",
"private function static_things()\n\t{\n\n\t\t# code...\n\t}",
"private function getPrivate(){\n return \"I am a private function\";\n }",
"public function nonApiDoSomethingElse()\n {\n // empty\n }",
"function get_tools()\n {\n }",
"public function methods()\n {\n return $this->methods;\n }",
"#[Pure]\n public function getMethod(): string {}",
"protected function getDisableActions() {}",
"public function testCoverAllMethods();",
"public function getPicoDeprecated();",
"public function getAllowedMethods()\n {\n return ['loomisrate' => __('Loomis')];\n }",
"public function getMethods()\n {\n return $this->methods;\n }",
"public function getMethods()\n {\n return $this->methods;\n }",
"public function getMethods()\n {\n return $this->methods;\n }",
"public function getMethods()\n {\n return $this->methods;\n }",
"protected function getMethods()\n {\n return (new ReflectionClass(get_class($this)))->getMethods();\n }",
"public function getSelfMethods()\n\t{\n\t\t$myName = $this->getName();\n\t\t$myFilename = $this->getFileName();\n\t\t$hasTrait = $this->usesTraits();\n\t\t$methods = $this->getMethods();\n\n\t\t/** @var ReflectionMethod $method */\n\t\tforeach ( $methods as $key => $method )\n\t\t{\n\t\t\t$thatName = $method->getDeclaringClass()->getName();\n\t\t\t$thatFilename = $method->getFileName();\n\n\t\t\tif ( $myName != $thatName )\n\t\t\t{\n\t\t\t\tunset($methods[$key]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ( $hasTrait === true and $myFilename != $thatFilename )\n\t\t\t\t{\n\t\t\t\t\tunset($methods[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $methods;\n\t}",
"public function getEnhanced();",
"public function getMyReserved();",
"public function get_method();",
"protected function getOldXclassUsageStatus() {}",
"abstract protected function loadExposedObjects();"
] | [
"0.7163836",
"0.6703611",
"0.65077585",
"0.6381944",
"0.6012435",
"0.5987211",
"0.59359854",
"0.58839804",
"0.5866309",
"0.5866309",
"0.5866309",
"0.5837968",
"0.5827305",
"0.5720276",
"0.57103795",
"0.57103795",
"0.57005084",
"0.56819844",
"0.565937",
"0.5624273",
"0.56172526",
"0.56097203",
"0.55480456",
"0.554407",
"0.554145",
"0.55285805",
"0.5511544",
"0.5504668",
"0.5504668",
"0.54955006",
"0.5489292",
"0.54876864",
"0.5472914",
"0.5472779",
"0.5455713",
"0.5444465",
"0.5432751",
"0.54208374",
"0.54202056",
"0.5414211",
"0.5412979",
"0.5401506",
"0.5376792",
"0.5369632",
"0.5355335",
"0.53477204",
"0.5344479",
"0.5329473",
"0.53139687",
"0.53077185",
"0.5300897",
"0.5289284",
"0.5285949",
"0.5280054",
"0.5264312",
"0.52587354",
"0.52565914",
"0.5255681",
"0.5240572",
"0.524006",
"0.52271897",
"0.5222292",
"0.52008265",
"0.51895356",
"0.5189512",
"0.51831454",
"0.5176259",
"0.5176259",
"0.51751554",
"0.51679605",
"0.5161045",
"0.5159391",
"0.5156133",
"0.51285654",
"0.5124333",
"0.51187617",
"0.51180977",
"0.5111896",
"0.5101264",
"0.510062",
"0.50982875",
"0.50981325",
"0.50902593",
"0.5088282",
"0.5082596",
"0.5076488",
"0.50725293",
"0.5058044",
"0.505053",
"0.50441056",
"0.50441056",
"0.50441056",
"0.50441056",
"0.50435394",
"0.5035608",
"0.5032807",
"0.50192165",
"0.5015579",
"0.5015476",
"0.501156"
] | 0.5044563 | 89 |
/ |========================================================== | insert defensive method | public function insertUsedMethod($methodId,$teamId,$matchId,$methodType)
{
$queryString="INSERT INTO team_used_corruption (team_id,corruption_id,match_id,method_type)
VALUES($teamId,$methodId,$matchId,$methodType)";
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function doEvil();",
"private function _optimize() {}",
"public function implementation_pending()\n {\n }",
"abstract protected function safetyCheck() : self;",
"public function implementation_pending(): void\n {\n }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"protected function _refine() {\n\n\t}",
"public function optimize() {}",
"function forceInsert() {\n\t\t\n\t\t\t$this->_isUpdate = false;\n\t\t\t\n\t\t}",
"private function __constrcut() { }",
"public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}",
"protected function _insert()\n\t{\n\t}",
"protected function afterInsertAccepting()\n {\n }",
"public function refresh_nonces()\n {\n }",
"private static function lowPass()\n {\n }",
"protected function Reserve()\n {\n }",
"abstract protected function requiredOperations1(): void;",
"public function __before($capacity) {\n\t\t\t// do nothing\n\t\t}",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function onOutOfBand (): void;",
"public static function doMaintenance() {\n\t\t\n\t\t// Do tasks here\n\t\tthrow new Exception(\"Unimplemented\");\n\t}",
"protected function _insert()\n {\n \n }",
"protected function _insert()\n {\n \n }",
"function fix() ;",
"protected abstract function applyNoArg();",
"protected function fixSelf() {}",
"protected function fixSelf() {}",
"public function oops () {\n }",
"protected function beforeInserting()\n {\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"function broken() { }",
"public function needsReprocessing() {}",
"abstract protected function _preProcess();",
"abstract function allowAddAction();",
"function freeze() ;",
"function beManaged()\n {\n }",
"public function _insert()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }",
"protected function preprocessInternal()\n\t{\n\t\t// void\n\t}",
"public function before_optimize() {\n\t\t$this->processed_trash_count = 0;\n\t\t$this->processed_akismet_count = 0;\n\t}",
"protected function func_default() {}",
"protected function preApply(): void {\n\t\t// this could take a bit\n\t\tset_time_limit(0);\n\t\t\n\t\t// unregister some events\n\t\telgg_unregister_event_handler('create', 'metadata', '\\ColdTrick\\TagTools\\Rules::applyRules');\n\t\telgg_unregister_event_handler('create', 'metadata', '\\ColdTrick\\TagTools\\Enqueue::createMetadata');\n\t}",
"public function nop()\n {\n }",
"public function I_can_not_create_more_than_hundred_of_percents()\n {\n }",
"public static function dummy() {}",
"public function optimize();",
"public function optimize();",
"abstract protected function before();",
"protected function _preupdate() {\n }",
"function specialop() {\n\n\n\t}",
"private function __() {\n }",
"protected function preProcess() {}",
"function noop()\n {\n }",
"protected abstract function performImpl();",
"public function hasDefense(){\r\n return $this->_has(9);\r\n }",
"public function lazy();",
"abstract function before();",
"protected function setPriority() {}",
"function onBeforeAdd() {\n\t\treturn true;\n\t}",
"public function extra();",
"public function accelerate()\n {\n }",
"private function __construct()\n {\n // disabled method\n }",
"protected abstract function before();",
"public function executeBefore()\r\n {\r\n $this->please->setStorage([\r\n '___ACFCollection' => [ 'content' => function(){ return $this->bloggyRepo->findBy(['type' => 'acf']); } ],\r\n '___PagesCollection' => [ 'content' => function(){ return $this->bloggyRepo->findBy(['type' => 'page']); } ],\r\n '___ACFChildrenCollection' => [ 'content' => function(){\r\n return $this->please->findLike($this->bloggyRepo, $this->bloggiesTable, [\r\n 'info[acf]' => null // null means we dont have the exact value\r\n ])['get']('rows');\r\n } ],\r\n '___ACFChildren2Collection' => [ 'content' => function(){\r\n return $this->please->findLike($this->bloggyRepo, $this->bloggiesTable, [\r\n 'info[_acf]' => null // null means we dont have the exact value\r\n ])['get']('rows');\r\n } ],\r\n '___UsersCollection' => [ 'content' => function(){ return $this->userRepo->findBy([], ['lastname' => 'asc']); } ],\r\n ], true);\r\n\r\n $this->setVisitsCount();\r\n }",
"function noop() {\n}",
"public function hasIgnoredefense(){\r\n return $this->_has(31);\r\n }",
"protected function afterInserting()\n {\n }",
"public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }",
"public function add_or_ignore()\n {\n $this->insert_ignore('table', array('foo' => 'bar'));\n\n // you can also do\n $this->ignore();\n $this->insert('table', array('foo' => 'bar'));\n }",
"protected function setWarningsExist() {}",
"protected function _postInsert()\n\t{\n\t}",
"private function aFunc()\n {\n }",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"function force() { \n if (is_array($this->force_this)) { \n for($i=0 ; $i< count($this->force_this) ; $i++) { \n if ($this->force_this[$i][1] == \"SIMPLE\" && !$this->passed($this->force_this[$i][0])) {\n die(\"\\n\\nMissing \" . $this->force_this[$i][0] . \"\\n\\n\"); \n }\n\n if ($this->force_this[$i][1] == \"FULL\" && !$this->full_passed($this->force_this[$i][0])) {\n die(\"\\n\\nMissing \" . $this->force_this[$i][0] .\" <arg>\\n\\n\"); \n } \n } \n } \n }",
"protected function hook1(): void { }",
"public function fix() {}",
"public function fix() {}",
"public function mass_add()\n {\n }",
"function restrictify()\n{\n\tglobal $_CREATED_FILES,$_MODIFIED_FILES;\n\n\t// Reset functions\n\tif (isset($_CREATED_FILES)) $_CREATED_FILES=array();\n\tif (isset($_MODIFIED_FILES)) $_MODIFIED_FILES=array();\n\n\t// Put back strictness\n\terror_reporting(E_ALL & ~(defined('E_DEPRECATED')?E_DEPRECATED:0));\n\tif (function_exists('set_time_limit')) @set_time_limit(25);\n\tif (get_forum_type()=='ocf') $GLOBALS['SITE_DB']->query('SET sql_mode=STRICT_ALL_TABLES',NULL,NULL,true);\n\tif ($GLOBALS['DEBUG_MODE'])\n\t{\n\t\t//@ini_set('ocproducts.type_strictness','1');\n\t\tglobal $PREVIOUS_XSS_STATE;\n\t\t//safe_ini_set('ocproducts.xss_detect',array_pop($PREVIOUS_XSS_STATE));\t\tWe don't maintain this in v8, since we increased checking strength but are not fixing all the new false-positives. Real issues are found in v9 and back-ported.\n\t}\n\t@ini_set('include_path','');\n\t@ini_set('allow_url_fopen','0');\n\t@ini_set('suhosin.executor.disable_emodifier','1');\n\t@ini_set('suhosin.executor.multiheader','1');\n\t$GLOBALS['NO_DB_SCOPE_CHECK']=false;\n\t//$GLOBALS['NO_QUERY_LIMIT']=false;\tLeave off, may have been set elsewhere than destrictify();\n}",
"public function apply() {}",
"public function benchThisWillBeSkipped()\n {\n }",
"function before_enable() { }",
"function avoidgather( )\n{\n global $rsdb;\n global $webdb;\n global $IS_BIZPhp168;\n if ( !$IS_BIZPhp168 )\n {\n return;\n }\n if ( $webdb[AvoidCopy] )\n {\n $rsdb[content] = \"<body oncopy='return false' oncut='return false'>{$rsdb['content']}\";\n }\n if ( $webdb[AvoidSave] )\n {\n $rsdb[content] = \"{$rsdb['content']}<noscript><iframe scr='*.htm'></iframe></noscript>\";\n }\n if ( !$webdb[AvoidGather] )\n {\n return;\n }\n $AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );\n $rsdb[content] = \"<div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}</div>{$rsdb['content']}<div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}</div>\";\n $AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );\n $rsdb[content] = str_replace( \"<br>\", \"<br><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>\", $rsdb[content] );\n $rsdb[content] = str_replace( \"<BR>\", \"<BR><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>\", $rsdb[content] );\n $AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );\n $rsdb[content] = str_replace( \"<p>\", \"<p><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>\", $rsdb[content] );\n}",
"function _pre() {\n\n\t}",
"public function seDeplacer() {\n $this->race->seDeplacer(2);\n }",
"abstract protected function yieldWhitelistAccess(): Generator;",
"function maintenance_nag()\n {\n }",
"abstract public function check_hint();",
"function PGReserveData()\r\n\t{\r\n\t}",
"private function static_things()\n\t{\n\n\t\t# code...\n\t}",
"static function allowed()\n {\n\n }",
"protected function beforeUpdating()\n {\n }",
"public function applyDefaultValues()\n\t{\n\t}",
"public function applyDefaultValues()\n\t{\n\t}",
"public function applyDefaultValues()\n\t{\n\t}",
"function __call($func, $args) {\r\n pdo_trigger_error(\"pdo_dummy::{$func}() {$this->msg}\", E_USER_WARNING);\r\n }",
"protected function _saveBefore()\n {\n // nothing here\n }",
"function bibdk_voxb_offensive_error() {\n return array(\n '#markup' => t('bibdk_voxb_no_access', array(), array('context'=>'bibdk_voxb')),\n );\n}",
"function DiscountConstructFunctions()\n\t{\t\n\t}",
"function do_undismiss_core_update()\n {\n }"
] | [
"0.61847204",
"0.61604035",
"0.5887526",
"0.58242786",
"0.58044577",
"0.5792964",
"0.5785342",
"0.5689117",
"0.5680579",
"0.5676825",
"0.5661432",
"0.55297625",
"0.5528939",
"0.55233496",
"0.54912955",
"0.54889226",
"0.54847646",
"0.5475246",
"0.5457286",
"0.54414594",
"0.54402816",
"0.54307115",
"0.54307115",
"0.5429547",
"0.5424417",
"0.5420728",
"0.5420728",
"0.5393127",
"0.5389792",
"0.5382109",
"0.5382109",
"0.5382109",
"0.5362214",
"0.53541976",
"0.5354114",
"0.5339326",
"0.5337455",
"0.5314102",
"0.5306958",
"0.5291746",
"0.52377844",
"0.52355254",
"0.5224723",
"0.5208926",
"0.5206573",
"0.5203808",
"0.5188518",
"0.5188518",
"0.518667",
"0.5184306",
"0.51842105",
"0.5181152",
"0.5164302",
"0.51587576",
"0.51454455",
"0.5145445",
"0.51406974",
"0.5138692",
"0.51373607",
"0.51251656",
"0.5124099",
"0.5123518",
"0.51222605",
"0.51217043",
"0.5111523",
"0.5107305",
"0.5104018",
"0.5103092",
"0.5096957",
"0.50758576",
"0.5075683",
"0.5065097",
"0.50619876",
"0.50574887",
"0.50542885",
"0.50542104",
"0.50495934",
"0.5049537",
"0.5043744",
"0.5037051",
"0.5036131",
"0.5034611",
"0.50340456",
"0.5031999",
"0.5029445",
"0.5027537",
"0.5026741",
"0.5020454",
"0.5015704",
"0.50152504",
"0.50086635",
"0.50067425",
"0.49881747",
"0.49830878",
"0.49830878",
"0.49830878",
"0.49817073",
"0.49747667",
"0.49716157",
"0.4970782",
"0.49706823"
] | 0.0 | -1 |
/ |========================================================== | delete used method | public function deleteUsedMethod($usedId)
{
$queryString="DELETE FROM team_used_corruption
WHERE used_id=$usedId";
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function delete() {\n\n\n\t\t}",
"public static function delete() {\r\n\t\t\r\n\t}",
"function delete() ;",
"function delete() ;",
"protected function _delete()\n\t{\n\t}",
"function delete()\n {\n }",
"protected function delete() {\n\t}",
"public static function delete(){\r\n }",
"public function del()\n {\n }",
"function delete()\r\n {\r\n\r\n }",
"function delete() {\n }",
"public function delete()\r\n\t{\r\n\t}",
"public function delete()\n\t{\n\t}",
"function delete() \n {\n \n }",
"function delete()\n {\n }",
"abstract protected function delete ();",
"public function deleting()\n {\n # code...\n }",
"public function delete() {\r\n }",
"public function delete() {}",
"public function delete() {}",
"public function delete() {}",
"public function delete() {}",
"function delete() {\n\n }",
"abstract public function delete();",
"abstract public function delete();",
"abstract public function delete();",
"abstract public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public final function delete() {\n }",
"public static function Delete(){\r\n }",
"abstract function delete();",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"protected function _preDelete() {}",
"public function delete()\n {\n //\n }",
"public function delete(): void;",
"public abstract function delete();",
"protected function __del__() { }",
"public function preDelete() { }",
"public function DELETE() {\n #\n }",
"public function delete()\n {\n\n }",
"public function delete()\n {\n \n }",
"protected function _delete()\r\n {\r\n parent::_delete();\r\n }",
"public function delete(): void\n {\n }",
"public function delete()\n {\n \n }",
"public function delete(){\n }",
"public function delete()\n {\n return;\n }",
"public function delete() {\n\n }",
"public function remove()\n {\n\n }",
"protected function _postDelete() {}",
"protected function _postDelete() {}",
"public function remove()\n {\n }",
"public function deleted() {\n // TODO Implement this\n }",
"public function remove() {}",
"public function remove() {}",
"protected function _predelete() {\n }",
"public function delall()\n {\n }",
"function call_delete() {\n parent::call_delete();\n }",
"public function remove() {\n }",
"public function delete()\n {\n // TODO: Implement delete() method.\n }",
"public function _delete()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }",
"function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }",
"public function after_delete() {}",
"public function index_delete(){\n\t\t\n\t\t}",
"protected function beforeRemoving()\n {\n }",
"function Delete();",
"protected function afterRemoving()\n {\n }",
"protected function afterDelete()\r\n {\r\n }",
"public function Do_delete_Example1(){\n\n\t}",
"protected function _postDelete()\n\t{\n\t}",
"public function forceDelete()\n {\n //\n }",
"function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}",
"static function remove() {\n }",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function remove();",
"public function remove();"
] | [
"0.815631",
"0.80394137",
"0.8032499",
"0.8032499",
"0.7959722",
"0.7941809",
"0.78862804",
"0.78093785",
"0.77969897",
"0.7711245",
"0.77046144",
"0.76943266",
"0.76785433",
"0.7600022",
"0.7599609",
"0.75891805",
"0.7578694",
"0.7571397",
"0.75565183",
"0.75557834",
"0.75557834",
"0.7555273",
"0.7543805",
"0.7543094",
"0.7543094",
"0.7543094",
"0.7543094",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7423975",
"0.7420911",
"0.7388652",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7355557",
"0.732465",
"0.72958416",
"0.72744036",
"0.7271228",
"0.72606945",
"0.7255186",
"0.72433746",
"0.7242322",
"0.722362",
"0.72153914",
"0.7182511",
"0.7151226",
"0.71157527",
"0.71152043",
"0.70949304",
"0.7079757",
"0.707887",
"0.7072093",
"0.70615286",
"0.7061162",
"0.70594645",
"0.7058265",
"0.7036814",
"0.70285404",
"0.70275253",
"0.70218766",
"0.7021135",
"0.70140845",
"0.701168",
"0.69979733",
"0.699146",
"0.6978264",
"0.697191",
"0.696293",
"0.6959146",
"0.69544905",
"0.69187087",
"0.69041926",
"0.6897009",
"0.6892477",
"0.6892477",
"0.6892477",
"0.6892477",
"0.6882107",
"0.6882107"
] | 0.0 | -1 |
/ |========================================================== | delete used method | public function deleteMethodEndMatch($teamId)
{
$queryString="DELETE FROM team_used_corruption
WHERE team_id=$teamId";
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function delete() {\n\n\n\t\t}",
"public static function delete() {\r\n\t\t\r\n\t}",
"function delete() ;",
"function delete() ;",
"protected function _delete()\n\t{\n\t}",
"function delete()\n {\n }",
"protected function delete() {\n\t}",
"public static function delete(){\r\n }",
"public function del()\n {\n }",
"function delete()\r\n {\r\n\r\n }",
"function delete() {\n }",
"public function delete()\r\n\t{\r\n\t}",
"public function delete()\n\t{\n\t}",
"function delete() \n {\n \n }",
"function delete()\n {\n }",
"abstract protected function delete ();",
"public function deleting()\n {\n # code...\n }",
"public function delete() {\r\n }",
"public function delete() {}",
"public function delete() {}",
"public function delete() {}",
"public function delete() {}",
"function delete() {\n\n }",
"abstract public function delete();",
"abstract public function delete();",
"abstract public function delete();",
"abstract public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public function delete();",
"public final function delete() {\n }",
"public static function Delete(){\r\n }",
"abstract function delete();",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"public function delete()\n {\n }",
"protected function _preDelete() {}",
"public function delete()\n {\n //\n }",
"public function delete(): void;",
"public abstract function delete();",
"protected function __del__() { }",
"public function preDelete() { }",
"public function DELETE() {\n #\n }",
"public function delete()\n {\n\n }",
"public function delete()\n {\n \n }",
"protected function _delete()\r\n {\r\n parent::_delete();\r\n }",
"public function delete(): void\n {\n }",
"public function delete()\n {\n \n }",
"public function delete(){\n }",
"public function delete()\n {\n return;\n }",
"public function delete() {\n\n }",
"public function remove()\n {\n\n }",
"protected function _postDelete() {}",
"protected function _postDelete() {}",
"public function remove()\n {\n }",
"public function deleted() {\n // TODO Implement this\n }",
"public function remove() {}",
"public function remove() {}",
"protected function _predelete() {\n }",
"public function delall()\n {\n }",
"function call_delete() {\n parent::call_delete();\n }",
"public function remove() {\n }",
"public function delete()\n {\n // TODO: Implement delete() method.\n }",
"public function _delete()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }",
"function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }",
"public function after_delete() {}",
"public function index_delete(){\n\t\t\n\t\t}",
"protected function beforeRemoving()\n {\n }",
"function Delete();",
"protected function afterRemoving()\n {\n }",
"protected function afterDelete()\r\n {\r\n }",
"public function Do_delete_Example1(){\n\n\t}",
"protected function _postDelete()\n\t{\n\t}",
"public function forceDelete()\n {\n //\n }",
"function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}",
"static function remove() {\n }",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function delete(){ return false; }",
"public function remove();",
"public function remove();"
] | [
"0.815631",
"0.80394137",
"0.8032499",
"0.8032499",
"0.7959722",
"0.7941809",
"0.78862804",
"0.78093785",
"0.77969897",
"0.7711245",
"0.77046144",
"0.76943266",
"0.76785433",
"0.7600022",
"0.7599609",
"0.75891805",
"0.7578694",
"0.7571397",
"0.75565183",
"0.75557834",
"0.75557834",
"0.7555273",
"0.7543805",
"0.7543094",
"0.7543094",
"0.7543094",
"0.7543094",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7455896",
"0.7423975",
"0.7420911",
"0.7388652",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7383716",
"0.7355557",
"0.732465",
"0.72958416",
"0.72744036",
"0.7271228",
"0.72606945",
"0.7255186",
"0.72433746",
"0.7242322",
"0.722362",
"0.72153914",
"0.7182511",
"0.7151226",
"0.71157527",
"0.71152043",
"0.70949304",
"0.7079757",
"0.707887",
"0.7072093",
"0.70615286",
"0.7061162",
"0.70594645",
"0.7058265",
"0.7036814",
"0.70285404",
"0.70275253",
"0.70218766",
"0.7021135",
"0.70140845",
"0.701168",
"0.69979733",
"0.699146",
"0.6978264",
"0.697191",
"0.696293",
"0.6959146",
"0.69544905",
"0.69187087",
"0.69041926",
"0.6897009",
"0.6892477",
"0.6892477",
"0.6892477",
"0.6892477",
"0.6882107",
"0.6882107"
] | 0.0 | -1 |
/ |========================================================== | check used method | public function checkUsedMethod($teamId,$usedId,$type)
{
$queryString="SELECT *
FROM team_used_corruption
WHERE used_id=$usedId
AND team_id=$teamId
AND method_type=$type";
$query = $this->db->query($queryString);
$result=$query->result_array();
if(empty($result))
{
return FALSE;
}else{
return TRUE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isUsed()\n {\n }",
"public function _check()\n {\n }",
"public function checkOperationality()\n {\n }",
"public function check()\n {\n }",
"public function check()\n {\n }",
"public function helper()\n\t{\n\t\n\t}",
"abstract protected function safetyCheck() : self;",
"public function check() {}",
"abstract public function check();",
"private function method1()\n\t{\n\t}",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"private function method2()\n\t{\n\t}",
"public function wrong() {\n\n }",
"public function checkAccess()\n {\n // need to be modified for security\n }",
"private function __() {\n }",
"public function performChecks(){\n\t\t\n\t}",
"abstract function check();",
"public function usage() {}",
"public function method() {\n\t}",
"public static function is_in_use()\n {\n }",
"public function oops () {\n }",
"protected function _validate() {\n\t}",
"public function checkRequirements()\n {\n }",
"public static function check()\n {\n parent::check();\n }",
"public static function check();",
"abstract public function check_hint();",
"protected function localValidation()\n\t\t{\n\t\t}",
"public function checkSecurity() {\n }",
"public function ex4()\n {\n }",
"abstract public function getCurrentUsage();",
"protected function test9() {\n\n }",
"abstract public function is_have();",
"public function method()\n {\n\n }",
"public function check(): void;",
"public function check(): void;",
"abstract protected function requiredOperations1(): void;",
"public function available();",
"public function available();",
"protected function status()\n {\n }",
"public function method();",
"public function method();",
"public function method();",
"public function method();",
"private function checkValid()\n\t{\n\t\tif(!$this->isValid()) {\n\t\t\tthrow new \\RuntimeException(\"TypeStruct Error: '\".get_called_class().\"' not validated to perform further operations\");\t\n\t\t}\n\t}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function isNotUsing();",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"protected function has_data()\n {\n }",
"public function valid()\n {\n }",
"public function valid()\n {\n }",
"public function valid()\n {\n }",
"public function valid()\n {\n }",
"public function getUsage() {\n\t\t// this function is not yet used.\n\t}",
"public function check()\r\n\t{\r\n\t\treturn true;\r\n\t}",
"public function custom()\n\t{\n\t}",
"public function countUsed()\n {\n }",
"public function test_method()\n\t{\n\n\t}",
"protected function validate()\n {\n }",
"public function someStuff()\n {\n \n }",
"protected function isTargetCorrect() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"function is_compatible() {\r\r\n\t\tasido::trigger_abstract_error(\r\r\n\t\t\t__CLASS__,\r\r\n\t\t\t__FUNCTION__\r\r\n\t\t\t);\r\r\n\t\t}",
"abstract protected function checkInitialization();",
"public function valid(){ }",
"protected function info()\n\t\t{\n\t\t}",
"public function take_action()\n {\n }",
"public function take_action()\n {\n }",
"function check_access() {\n trigger_error('Admin class does not implement method <strong>check_access()</strong>', E_USER_WARNING);\n return;\n }",
"abstract public function valid();",
"public function check_duplicate()\n {\n }",
"protected function beforeMethod()\n {\n }",
"static function allowed()\n {\n\n }",
"public static function right_public(){return false;}",
"public function access();",
"private function aFunc()\n {\n }",
"public function nadar()\n {\n }",
"public function checkExtObj() {}",
"public function checkExtObj() {}",
"function checkAccess() ;",
"private function public_hooks()\n\t{\n\t}",
"public function valid();",
"public function valid();",
"public function valid();",
"public function valid();"
] | [
"0.73369354",
"0.7311658",
"0.6943409",
"0.6874017",
"0.6874017",
"0.6688126",
"0.6656189",
"0.6618331",
"0.6551795",
"0.6485135",
"0.6444626",
"0.6444626",
"0.6444626",
"0.6444626",
"0.6444626",
"0.64014626",
"0.64003015",
"0.6323863",
"0.6309966",
"0.6305822",
"0.6288005",
"0.62813884",
"0.62782604",
"0.6224857",
"0.62154907",
"0.6190226",
"0.61802036",
"0.61392397",
"0.6102421",
"0.6089917",
"0.60799956",
"0.60757077",
"0.602057",
"0.60173404",
"0.60045654",
"0.60004693",
"0.59915805",
"0.5980569",
"0.5980569",
"0.59675485",
"0.59541243",
"0.59541243",
"0.5928152",
"0.59191096",
"0.59191096",
"0.59191096",
"0.59191096",
"0.5915001",
"0.59138405",
"0.59138405",
"0.59138405",
"0.5912707",
"0.591171",
"0.591171",
"0.5910306",
"0.5910306",
"0.5910306",
"0.5904723",
"0.59021175",
"0.59021175",
"0.59021175",
"0.59021175",
"0.5880563",
"0.5876181",
"0.5872823",
"0.58718807",
"0.5865002",
"0.58566874",
"0.5827254",
"0.58236885",
"0.5815116",
"0.5815116",
"0.5815116",
"0.5815116",
"0.5815116",
"0.5815116",
"0.5815116",
"0.5815116",
"0.57918006",
"0.57853365",
"0.5782946",
"0.5778798",
"0.5732741",
"0.5732741",
"0.5731511",
"0.57296485",
"0.5723822",
"0.5715354",
"0.57130253",
"0.5712971",
"0.5711976",
"0.57105774",
"0.57031196",
"0.569876",
"0.5698349",
"0.5696222",
"0.56957215",
"0.56826866",
"0.56826866",
"0.56826866",
"0.56826866"
] | 0.0 | -1 |
/ |========================================================== | get offensive bonus used | public function getOffensiveBonusUsed($teamId)
{
$queryString="SELECT *
FROM team_used_corruption,corruption_offensive_methods
WHERE team_used_corruption.corruption_id=corruption_offensive_methods.corruption_offensive_id
AND team_id=$teamId
AND method_type=2";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_bonus() {\n\t\treturn $this->_bonus;\n\t}",
"public function getOilBonus() // 1% expa = 0.3% bonusu\n\t{\n\t\treturn $this->getExperience() * 0.2;\n\t}",
"public function getBonus()\n {\n return $this->bonus;\n }",
"public function getBonus()\n {\n return $this->bonus;\n }",
"public function getBonus()\n {\n return $this->bonus;\n }",
"private function getVentureBonus(){\n\t\treturn $this->ventureBonus ? 2 : 1;\n\t}",
"public function getDefense()\n {\n return $this->_bonusDefense;\n }",
"public function getBonus() {\n return strval($this->bonus);\n }",
"public static function sumTargetHealBonus(stdClass $data){\n\t\t//limit max earrings to 2\n\t\tself::limit($data, array('oldEarrings', 'newEarrings'), 2);\n\n\t\tif(!$data->includeTargetBonus){\n\t\t\treturn 0;\n\t\t}\n\n\t\t$bonus = 0;\n\t\t$isMw = ($data->chestEnchant==ENCHANT_MW_NINE OR $data->chestEnchant==ENCHANT_MW_TWELVE);\n\n\t\t//earrings\n\t\t$bonus += $data->oldEarrings * BONUS_EARRING_OLD;\n\t\t$bonus += $data->newEarrings * BONUS_EARRING_NEW;\n\n\t\t//earring bonus stats\n\t\tif($data->earringBonusLeft){\n\t\t\t$bonus += MISC::getEarringBonusValue($data->earringBonusLeft);\n\t\t}\n\t\tif($data->earringBonusRight){\n\t\t\t$bonus += MISC::getEarringBonusValue($data->earringBonusRight);\n\t\t}\n\n\t\t//heart potion\n\t\tif($data->heartPotion){\n\t\t\t$bonus += BONUS_HEART_POTION;\n\t\t}\n\n\t\t//if chest is disabled, stop here\n\t\tif($data->chestType==TYPE_NONE){\n\t\t\treturn $bonus;\n\t\t}\n\n\t\t//base (current only)\n\t\tif($data->chestType==TYPE_CURRENT AND $data->chestBonusBase){\n\t\t\t$bonus += ($isMw ? BONUS_CHEST_OLD_BASE : BONUS_CHEST_OLD_PLAIN);\n\t\t}\n\n\t\t//+0 (current only)\n\t\tif($data->chestType==TYPE_CURRENT AND $data->chestBonusZero){\n\t\t\t$bonus += ($isMw ? BONUS_CHEST_OLD_BASE : BONUS_CHEST_OLD_PLAIN);\n\t\t}\n\n\t\t//plus\n\t\tif($data->chestType==TYPE_CURRENT AND $data->chestBonusPlus AND $data->chestEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_CHEST_OLD : BONUS_CHEST_OLD_PLAIN);\n\t\t}\n\t\telseif($data->chestBonusPlus AND $data->chestEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_CHEST_NEW : BONUS_CHEST_NEW_PLAIN);\n\t\t}\n\n\t\treturn $bonus;\n\t}",
"public function getMisccost()\n {\n return $this->misccost;\n }",
"function ItemBonus($type='all') {\n\t\t// All bonus.\n\t\tif($type == 'all') {\n\t\t\treturn array(\n\t\t\t'agility' => $this->bonus['agility'],\n\t\t\t'stamina' => $this->bonus['stamina'],\n\t\t\t'intellect' => $this->bonus['intellect'],\n\t\t\t'spirit' => $this->bonus['spirit'],\n\t\t\t'strength' => $this->bonus['strength']\n\t\t);\n\t\t// Agility bonus.\n\t\t} else if($type == 'agility') {\n\t\t\tif(is_int($this->bonus['agility'])) {\n\t\t\t\treturn $this->bonus['agility'];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// Stamina bonus.\n\t\t} else if($type == 'stamina') {\n\t\t\tif(is_int($this->bonus['stamina'])) {\n\t\t\t\treturn $this->bonus['stamina'];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// Intellect bonus.\n\t\t} else if($type == 'intellect') {\n\t\t\tif(is_int($this->bonus['intellect'])) {\n\t\t\t\treturn $this->bonus['intellect'];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// Spirit bonus.\n\t\t} else if($type == 'spirit') {\n\t\t\tif(is_int($this->bonus['agility'])) {\n\t\t\t\treturn $this->bonus['agility'];\n\t\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t// Strength bonus.\n\t\t} else if($type == 'strength') {\n\t\t\tif(is_int($this->bonus['strength'])) {\n\t\t\t\treturn $this->bonus['strength'];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// Else it's an unknow bonus, return false.\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function getLoyaltyPref()\n {\n return $this->loyaltyPref;\n }",
"public function get_bonus_string() {\n\t\tswitch ($this->_bonus) {\n\t\t\tcase static::CELL_BONUS_ST:\n\t\t\treturn \"ST\";\n\n\t\t\tcase static::CELL_BONUS_2W:\n\t\t\treturn \"2W\";\n\n\t\t\tcase static::CELL_BONUS_3W:\n\t\t\treturn \"3W\";\n\n\t\t\tcase static::CELL_BONUS_2L:\n\t\t\treturn \"2L\";\n\n\t\t\tcase static::CELL_BONUS_3L:\n\t\t\treturn \"3L\";\n\t\t}\n\n\t\treturn \"\";\n\t}",
"function spectra_money_supply ()\n\t{\n\t\tif (system_flag_get (\"balance_rebuild\") > 0)\n\t\t{\n\t\t\treturn \"Re-Balancing\";\n\t\t}\n\t\t\n\t\t$response = $GLOBALS[\"db\"][\"obj\"]->query (\"SELECT SUM(`balance`) AS `supply` FROM `\".$GLOBALS[\"tables\"][\"ledger\"].\"`\");\n\t\t$result = $response->fetch_assoc ();\n\t\t\n\t\tif (!isset ($result[\"supply\"]))\n\t\t{\n\t\t\treturn \"Unavailable\";\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\treturn $result[\"supply\"];\n\t\t}\n\t}",
"public function getCost();",
"public function getOffenseEffectiveness()\n {\n return $this->attacker->getStats()->getStrength();\n }",
"public function cost(){\n\t\t\n\t\treturn 200;\n\t}",
"public function getBonusrec()\n {\n return $this->bonusrec;\n }",
"function get_penalty_types() {\n\t$array = array(\n\t\t\t\"Abuse of officials\" \t=> 2,\n\t\t\t\"Aggressor penalty\"\t\t=> 2,\n\t\t\t\"Attempt to injure\"\t\t=> 2,\n\t\t\t\"Biting\"\t\t\t\t=> 2,\n\t\t\t\"Boarding\"\t\t\t\t=> 2,\n\t\t\t\"Butt-ending\"\t\t\t=> 2,\n\t\t\t\"Broken stick\"\t\t\t=> 2,\n\t\t\t\"Charging\"\t\t\t\t=> 2,\n\t\t\t\"Checking from behind\"\t=> 2,\n\t\t\t\"Illegal check to the head\" => 2,\n\t\t\t\"Clipping\" \t\t\t\t=> 2,\n\t\t\t\"Cross-checking\" \t\t=> 2,\n\t\t\t\"Delay of game\" \t\t=> 2,\n\t\t\t\"Diving\"\t\t\t\t=> 2,\n\t\t\t\"Elbowing\"\t\t\t\t=> 2,\n\t\t\t\"Eye-gouging\"\t\t\t=> 2,\n\t\t\t\"Fighting\"\t\t\t\t=> 5,\n\t\t\t\"Goaltender Interference\" => 2,\n\t\t\t\"Goaltender Leaving Crease\" => 2,\n\t\t\t\"Head-butting\" => 2,\n\t\t\t\"High-sticking (2 min)\" => 2,\n\t\t\t\"High-sticking (4 min)\" => 2,\n\t\t\t\"Holding\" => 2,\n\t\t\t\"Holding the stick\" => 2,\n\t\t\t\"Illegal Equipment\" => 2,\n\t\t\t\"Instigator penalty\" => 2,\n\t\t\t\"Interference\" => 2,\n\t\t\t\"Joining a fight\" => 10,\n\t\t\t\"Kicking\" => 5,\n\t\t\t\"Kneeing\" => 2,\n\t\t\t\"Leaving the Penalty Bench\" => 2,\n\t\t\t\"Playing with Too Many Sticks\" => 2,\n\t\t\t\"Roughing\" => 2,\n\t\t\t\"Secondary Altercation\" => 2,\n\t\t\t\"Slashing\" => 2,\n\t\t\t\"Slew Footing\" => 2,\n\t\t\t\"Spearing\" => 2,\n\t\t\t\"Starting the wrong lineup\" => 2,\n\t\t\t\"Substitution infraction (Illegal Substitution)\" => 2,\n\t\t\t\"Throwing Equipment\" => 2,\n\t\t\t\"Too many men on the ice\" => 2,\n\t\t\t\"Tripping\" => 2, \n\t\t\t\"Unsportsmanlike conduct\" => 2\n\t\t);\n\n\treturn $array;\n}",
"public function get_penalty()\n {\n return $this->penalty;\n }",
"public static function sumHealBonusWeapon(stdClass $data){\n\t\tif($data->weaponType==TYPE_NONE){\n\t\t\treturn 0;\n\t\t}\n\n\t\t$bonus = 0;\n\t\t$isMw = ($data->weaponEnchant==ENCHANT_MW_NINE OR $data->weaponEnchant==ENCHANT_MW_TWELVE);\n\n\t\t//base\n\t\tif($data->weaponType!=TYPE_NEW AND $data->weaponBonusBase){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_OLD_BASE : BONUS_WEAPON_OLD_PLAIN);\n\t\t}\n\t\telseif($data->weaponBonusBase){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_NEW : BONUS_WEAPON_NEW_PLAIN);\n\t\t}\n\n\t\t//+0 (old and current only)\n\t\tif($data->weaponType!=TYPE_NEW AND $data->weaponBonusZero){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_OLD_BASE : BONUS_WEAPON_OLD_PLAIN);\n\t\t}\n\n\t\t//plus\n\t\tif($data->weaponType!=TYPE_NEW AND $data->weaponBonusPlus AND $data->weaponEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_OLD : BONUS_WEAPON_OLD_PLAIN);\n\t\t}\n\t\telseif($data->weaponBonusPlus AND $data->weaponEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_NEW : BONUS_WEAPON_NEW_PLAIN);\n\t\t}\n\n\t\t//fix (current and new only)\n\t\tif($data->weaponType!=TYPE_OLD AND $data->weaponBonusFix AND $data->weaponEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += BONUS_WEAPON_FIX;\n\t\t}\n\n\t\t//mw (current only)\n\t\tif($data->weaponType==TYPE_CURRENT AND $data->weaponBonusMw AND $data->weaponEnchant==ENCHANT_MW_TWELVE){\n\t\t\t$bonus += BONUS_WEAPON_OLD_MW;\n\t\t}\n\n\t\treturn $bonus;\n\t}",
"public function getTotalSupply()\n {\n //XXX mutable supply\n return 290888;\n }",
"function calculateEnergyUse(){\n $this->boilerEnergy = $this->outletSteam->energyFlow + $this->blowdown->energyFlow - $this->feedwater->energyFlow;\n $this->fuelEnergy = $this->boilerEnergy / $this->boilerEff; \n $this->checkWarnings();\n }",
"public function getFeralBonus($extraDPS = 0) {\n if($this->class == ITEM_CLASS_WEAPON && (1 << $this->subclass) & 0x02A5F3) {\n $bonus = ($extraDPS + $this->getDPS()*14.0) - 767;\n if($bonus < 0) {\n $bonus = 0;\n }\n return $bonus;\n }\n return 0;\n }",
"public function getBonusCode()\n {\n return $this->bonusCode;\n }",
"function profit()\n\t{\n\t\t$total = 0;\n\t\t$ante = $this->properties->get('ante');\n\t\tforeach ($this->all() as $record)\n\t\t\tif (!empty($record->making))\n\t\t\t\t$total += $record->balance - $ante;\n\n\t\treturn $total;\n\t}",
"function getBonusClass($total_points){\n\t//30%,25%, 20%, 15%, 10%\n\t$bonus_class = [$total_points * 0.299, $total_points * 0.249, $total_points * 0.199, $total_points * 0.149, $total_points * 0.099];\n\n\treturn $bonus_class;\n}",
"private function score_alcohol_use() {\t\t\t\t\t\t//&&& no alcohol use section in scoring\r\n\t\t$data = $this->data['alcohol_use'];\r\n\t\tif($this->demographics['gender']==\"M\"){\r\n\t\t\t$q39=$this->scoreValue(array(5,4,3,2,1),$data['q39']);\r\n\t\t}else{\r\n\t\t\t$q39=$this->scoreValue(array(5,3,1,1,1),$data['q39']);\r\n\t\t}\r\n\t\t$q40=$this->scoreValue(array(1,5),$data['q40']);\r\n\t\t$ob=new stdClass();\r\n\t\t$ob->total=0;\r\n\t\t$ob->data=array('q39'=>array($q39,.6),\r\n\t\t\t\t\t\t'q40'=>array($q40,.4));\r\n\r\n\t\tforeach($ob->data as &$rec){\r\n\t\t\t$rec[2] = $rec[0] * $rec[1];\r\n\t\t\t$ob->total += $rec[2];\r\n\t\t}\r\n\t\treturn $ob;\r\n\t}",
"public function getDiscretionaryBonus($discretionaryBonus);",
"public static function sumHealBonusCrystals(stdClass $data){\n\t\t//limit max crystals to 4\n\t\tself::limit($data, array('zyrks', 'pristineZyrks', 'pristineZyrks2'), 4);\n\n\t\t$bonus = 0;\n\n\t\t$bonus += $data->zyrks * BONUS_ZYRK;\n\t\t$bonus += $data->pristineZyrks * BONUS_ZYRK_PRISTINE;\n\t\t$bonus += $data->pristineZyrks2 * BONUS_ZYRK_PRISTINE_2;\n\n\t\treturn $bonus;\n\t}",
"public function getTonicDiscount()\n {\n }",
"public function getUsedAttribute()\n {\n return $this->requisitionLines()\n ->whereDoesntHave('requisition', function ($query) {\n $query->whereIn('state', ['Draft', 'Pending Approval']);\n })->get()\n ->sum('amount');\n }",
"function get_cost() {\n\t\t$this->_event->log(\"get_costs\", $_SERVER['REQUEST_TIME'], 5, \"cloudprofile.class.php\", \"Calulating bill for cr $this->id\", \"\", \"\", 0, 0, 0);\n\t\t$cr_appliance_id = $this->appliance_id;\n\t\t$app_id_arr = explode(\",\", $cr_appliance_id);\n\t\t$cr_costs_final = 0;\n\t\tforeach ($app_id_arr as $app_id) {\n\t\t\t$cloud_app = new cloudappliance();\n\t\t\t$cloud_app->get_instance_by_appliance_id($app_id);\n\t\t\t// check state, only bill if active\n\t\t\tif ($cloud_app->state == 1) {\n\t\t\t\t// basic cost\n\t\t\t\t$cr_costs = 0;\n\t\t\t\t// + per cpu\n\t\t\t\t$cr_costs = $cr_costs + $this->cpu_req;\n\t\t\t\t// + per nic\n\t\t\t\t$cr_costs = $cr_costs + $this->network_req;\n\t\t\t\t// ha cost double\n\t\t\t\tif (!strcmp($this->ha_req, '1')) {\n\t\t\t\t\t$cr_costs = $cr_costs * 2;\n\t\t\t\t}\n\t\t\t\t// TODO : disk costs\n\t\t\t\t// TODO : network-traffic costs\n\n\t\t\t\t// sum\n\t\t\t\t$cr_costs_final = $cr_costs_final + $cr_costs;\n\t\t\t\t$this->_event->log(\"get_costs\", $_SERVER['REQUEST_TIME'], 5, \"cloudprofile.class.php\", \"-> Billing active appliance $app_id (cr $this->id) = $cr_costs CC-units\", \"\", \"\", 0, 0, 0);\n\t\t\t} else {\n\t\t\t\t$this->_event->log(\"get_costs\", $_SERVER['REQUEST_TIME'], 5, \"cloudprofile.class.php\", \"-> Not billing paused appliance $app_id (cr $this->id)\", \"\", \"\", 0, 0, 0);\n\t\t\t}\n\t\t}\n\t\t$this->_event->log(\"get_costs\", $_SERVER['REQUEST_TIME'], 5, \"cloudprofile.class.php\", \"-> Final bill for cr $this->id = $cr_costs_final CC-units\", \"\", \"\", 0, 0, 0);\n\t\treturn $cr_costs_final;\n\t}",
"public function getUsage() {\n\t\t// this function is not yet used.\n\t}",
"protected function getUsedCoupon()\n {\n return $this->booking->usedCoupon;\n }",
"function apply_condition_bonus(){\r\n\t$Bonus_Rand = mt_rand(75,150) * 1000;\r\n\r\n\tif($this->Eq['A']['exp'] < 0){\r\n\t\t$i = (10000+$this->Eq['A']['exp'])/10000;\r\n\t\t$this->Eq['A']['atk'] = floor($this->Eq['A']['atk'] * $i);\r\n\t\t$i = 1 + abs($this->Eq['A']['exp'])/10000;\r\n\t}else\t$i = 1 - $this->Eq['A']['exp']/$Bonus_Rand;\r\n\t$this->Eq['A']['enc'] = floor($this->Eq['A']['enc'] * $i);\r\n\r\n\tif($this->Eq['D']['exp'] < 0)\t$i = ($this->Eq['D']['exp'])/-5000;\r\n\telse\t\t\t\t$i = 1 - $this->Eq['D']['exp']/$Bonus_Rand;\r\n\t$this->Eq['D']['enc'] = floor($this->Eq['D']['enc'] * $i);\r\n\r\n\tif($this->Eq['E']['exp'] < 0)\t$i = ($this->Eq['E']['exp'])/-5000;\r\n\telse\t\t\t\t$i = 1 - $this->Eq['E']['exp']/$Bonus_Rand;\r\n\t$this->Eq['E']['enc'] = floor($this->Eq['E']['enc'] * $i);\r\n\r\n}",
"public function getCost()\n {\n return $this->get(self::_COST);\n }",
"function getUtilisation(){\n\n $total = $this-> getTotalWeight() ;\n \n return round(($total / $this->capacity) * 100, 2);\n\n }",
"public function getDefensiveBonusUsed($teamId)\n {\n $queryString=\"SELECT *\n FROM team_used_corruption,corruption_defensive_methods\n WHERE team_used_corruption.corruption_id=corruption_defensive_methods.corruption_defensive_id\n AND team_id=$teamId\n AND method_type=1\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n return $result;\n }",
"public function penaltyProvider()\n {\n return [\n [10, Penalty::COMPARISON_BIGGER, 15, 0.5, Penalty::OPERATION_MULTIPLY, true],\n [20, Penalty::COMPARISON_BIGGER, 15, 0.5, Penalty::OPERATION_MULTIPLY, false],\n [10, Penalty::COMPARISON_BIGGER, 20, 100, Penalty::OPERATION_PLUS, true],\n [20, Penalty::COMPARISON_BIGGER, 20, 100, Penalty::OPERATION_PLUS, false],\n [10, Penalty::COMPARISON_BIGGER, 20, -10000, Penalty::OPERATION_PLUS, true],\n [20, Penalty::COMPARISON_SMALLER, 15, 0.5, Penalty::OPERATION_MULTIPLY, true],\n [10, Penalty::COMPARISON_SMALLER, 20, 0.5, Penalty::OPERATION_MULTIPLY, false],\n [10, Penalty::COMPARISON_SMALLER, 20, 100, Penalty::OPERATION_PLUS, false],\n [10, Penalty::COMPARISON_SMALLER, 5, 100, Penalty::OPERATION_PLUS, true],\n [10, Penalty::COMPARISON_SMALLER, 5, -10000, Penalty::OPERATION_PLUS, true],\n ];\n }",
"public function hasPrecost(){\n return $this->_has(25);\n }",
"public function getWarranty()\n {\n return $this->warranty;\n }",
"public function getHiddenPoints() {\n return $this->hidden_non_extra_credit + $this->hidden_extra_credit;\n }",
"function getUVFloodCost (&$rawCost, $totalSheets) {\n\tif ($_POST[\"uvFlood\"] == \"uvFlood\") {\n\t\t$itemUVFlood = 1;\n\t\t$uvFloodCost = UVFLOODSETUP;\n\t\t$uvFloodCost += ($totalSheets * UVFLOODCOST);\n\t}\nelse {\n\t$uvFloodCost = 0;\n\t}\n\n$rawCost += $uvFloodCost;\n}",
"public function getBaseTotalInvoicedCost();",
"public function getDiscountInvoiced();",
"public function getPenaltycharges()\n {\n return $this->penaltycharges;\n }",
"function get_discount($total = 0)\n{\n global $config, $db_prefix, $sql_today, $current_user_id;\n\n $discount = array('self_gift_code' => '', 'gift_code' => '', 'gift_flat' => 0, 'gift_pct' => 0);\n $gift_discount = false;\n\n // get gift\n $gift = sql_qquery(\"SELECT * FROM \".$db_prefix.\"gift WHERE redeem_user_id='$current_user_id' AND redeem_order_id='' AND valid_date >= '$sql_today' LIMIT 1\");\n if (!empty($gift) && ($total >= $gift['min_purchase'])) {\n $gift_discount = true;\n $g = explode('.', $gift['gift_code']);\n $discount['self_gift_code'] = $gift['gift_code'];\n $discount['gift_code'] = $gift['gift_code'] = $g[0];\n if ($gift['gift_pct']) {\n $discount['gift_pct'] = $gift['gift_value'];\n } else {\n $discount['gift_flat'] = $gift['gift_value'];\n }\n }\n\n return $discount;\n}",
"public function getDiscountCanceled();",
"public function totalCost(): float;",
"public function get_amount_requested()\n {\n }",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"public static function sumHealBonusGloves(stdClass $data){\n\t\tif($data->glovesType==TYPE_NONE){\n\t\t\treturn 0;\n\t\t}\n\n\t\t$bonus = 0;\n\t\t$isMw = ($data->glovesEnchant==ENCHANT_MW_NINE OR $data->glovesEnchant==ENCHANT_MW_TWELVE);\n\n\t\t//base (new only)\n\t\tif($data->glovesType==TYPE_NEW AND $data->glovesBonusBase){\n\t\t\t$bonus += ($isMw ? BONUS_GLOVES_NEW : BONUS_GLOVES_NEW_PLAIN);\n\t\t}\n\n\t\t//+0 (old and current only)\n\t\tif($data->glovesType!=TYPE_NEW AND $data->glovesBonusZero){\n\t\t\t$bonus += ($isMw ? BONUS_GLOVES_OLD_BASE : BONUS_GLOVES_OLD_PLAIN);\n\t\t}\n\n\t\t//plus\n\t\tif($data->glovesType==TYPE_NEW AND $data->glovesBonusPlus AND $data->glovesEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_GLOVES_NEW : BONUS_GLOVES_NEW_PLAIN);\n\t\t}\n\t\telseif($data->glovesBonusPlus AND $data->glovesEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_GLOVES_OLD : BONUS_GLOVES_OLD_PLAIN);\n\t\t}\n\n\t\t//mw (current and new only)\n\t\tif($data->glovesType==TYPE_CURRENT AND $data->glovesBonusMw > 0 AND $data->glovesEnchant==ENCHANT_MW_TWELVE){\n\t\t\t$bonus += BONUS_GLOVES_OLD_MW / 3 * $data->glovesBonusMw;\n\t\t}\n\t\telseif($data->glovesType==TYPE_NEW AND $data->glovesBonusMw AND $data->glovesEnchant==ENCHANT_MW_TWELVE){\n\t\t\t$bonus += BONUS_GLOVES_NEW_MW;\n\t\t}\n\n\t\treturn $bonus;\n\t}",
"public function getUsedPower() {\r\n return $this->cached_claimed_plots_count * $this->factionsLevel->getSettings()->powerPerPlot;\r\n }",
"public function getAttributes_discounted() {\n\t\treturn $this->attributes_discounted;\n\t}",
"public function getMinSpellBonusDamage(){\r\n\t $result = min($this->getSpellBonusDamageArcane(),\r\n \t\t\t\t\t$this->getSpellBonusDamageFire(),\r\n \t\t\t\t\t$this->getSpellBonusDamageFrost(),\r\n\t\t\t\t\t$this->getSpellBonusDamageHoly(),\r\n \t\t\t\t\t$this->getSpellBonusDamageNature(),\r\n \t\t\t\t\t$this->getSpellBonusDamageShadow());\r\n\t return $result;\r\n\t}",
"public function getLoyaltyAllowedInd()\n {\n return $this->loyaltyAllowedInd;\n }",
"public function getEffectivePrice()\n {\n return $this->effective_price;\n }",
"public function getBoost() {}",
"public function profit() : void {\n\t\techo ($this->price - $this->cost);\n\t}",
"public function cost()\n {\n return $this->beverage->cost() + $this->cost;\n }",
"private function getAllAplicableBonus($id_user,$type)\n\t{\n\t\t$suma = array();\n\t\t$data = array(\n\t\t\t\t\"id_employee\" => $id_user,\n\t\t\t\t\"type\" => $type\n\t\t);\n\t\t\n\t\t$aplicableBonus = $this->getPayrollModel()->getAllBonusByUser($data);\n\t\t\n\t\tforeach ($aplicableBonus as $row){\n\t\t\t$suma[] = $row['amount'];\n\t\t}\n\t\treturn array_sum($suma);\n\t}",
"function deck_calculate_stats_value(array $base, array $bond, int $user_leader_skill, int $guest_leader_skill = 0): array\r\n{\r\n\t$lsk = [$user_leader_skill, $guest_leader_skill];\r\n\t$add = [0.0, 0.0, 0.0];\r\n\t\r\n\tforeach($lsk as $skill)\r\n\t{\r\n\t\tif($skill == 0)\r\n\t\t\tcontinue;\r\n\t\t\r\n\t\tif($skill >= 1 && $skill <= 9)\r\n\t\t{\r\n\t\t\t/* Non-cross attribute */\r\n\t\t\t$i = intdiv($skill - 1, 3);\r\n\t\t\t$add[$i] += (float)$base[$i] * 0.03 * ((($skill - 1) % 3) + 1);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tswitch($skill)\r\n\t\t\t{\r\n\t\t\t\tcase 31:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Smile Angel */\r\n\t\t\t\t\t$add[0] += (float)$base[1] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 32:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Smile Empress */\r\n\t\t\t\t\t$add[0] += (float)$base[2] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 33:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Pure Princess */\r\n\t\t\t\t\t$add[1] += (float)$base[0] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 34:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Pure Empress */\r\n\t\t\t\t\t$add[1] += (float)$base[2] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 35:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Cool Princess */\r\n\t\t\t\t\t$add[2] += (float)$base[0] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 36:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Cool Angel */\r\n\t\t\t\t\t$add[2] += (float)$base[1] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdefault:\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t$out = [];\r\n\t\r\n\tfor($i = 0; $i < 3; $i++)\r\n\t\t$out[$i] = $base[$i] + $bond[$i] + (int)round($add[$i]);\r\n\t\r\n\treturn $out;\r\n}",
"function customerDiscount()\r\n\t{\r\n\t\t$sql = $GLOBALS['db']->Query(\"SELECT Wert FROM \" . PREFIX . \"_modul_shop_kundenrabatte WHERE GruppenId = '\".UGROUP.\"' LIMIT 1\");\r\n\t\t$row = $sql->fetchrow();\r\n\t\t$sql->close();\r\n\t\tif(is_object($row))\r\n\t\t\treturn $row->Wert;\r\n\t}",
"public function getDamage();",
"public function getPermitIntensityOfUse()\n {\n return $this->permitsRequired > 0 ? $this->trips / $this->permitsRequired : 0;\n }",
"public function showPenaltyCalculator()\n {\n return view('developers.installment_account_ledgers.penalty_calculator', compact('ledger_properties','buyer'));\n }",
"function get_prof_rating($professorid){\r\n\r\n}",
"function calc_extra_sp_cost($Discount = 1){\r\n\t$list = array('D','E','A');\r\n\tforeach($list as $v){\r\n\t\tif(preg_match('/CostSP<([0-9]+)>/',$this->Eq[$v]['spec'],$array)){\r\n\t\t\t$a = intval($array[1]);\r\n\t\t\t$this->SP_Cost += ceil($a * $Discount);\r\n\t\t}\r\n\t}\r\n}",
"function getCost(){\n return $this->cost;\n }",
"function bonus_devident() {\n hitungDevident();\n}",
"function getScoreCost (&$labor, $quantity) {\n\tif ($_POST[\"score\"] == \"score\") {\n\t\t$scoreLabor = (HOUR * .16);\n\t\t$scoreLabor += (($quantity * .000833) * HOUR);\n\t}\nelse {\n\t$scoreLabor = 0;\n\t}\n$labor += $scoreLabor;\n}",
"public static function sumHealBonusEtching(stdClass $data){\n\t\treturn MISC::getEtchingValue($data->weaponEtching) + MISC::getEtchingValue($data->glovesEtching);\n\t}",
"public function getTotalInvoiced();",
"public function getDailyBonusCoins()\n {\n return $this->daily_bonus_coins;\n }",
"public function cost()\n {\n return $this->getPrice();\n }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"function getTotal($userSelection) {\n$cookie = 3.00; //This the cost of cookies\n$chips = 10.00; //Cost of Chips\n$soda = 1.00;// Cosst of Soda\n\t//Checks if user wants the combo meal of 0\n\tif($userSelection == 0) {\n\t\t//Calculate Total\n\t\t$userSelection = $cookie + $chips;\n\t\techo $userSelection; //Prints out the total amount\n\t}\n}",
"private function countConsumedMoneyByKilowatt()\n {\n if( $this -> charging_powers === null )\n {\n return 0;\n }\n\n $chargingPricesSum = $this \n -> charging_powers\n -> reduce(function($carry, $chargingPower) {\n return $carry + $chargingPower -> getIntervalPrice();\n });\n\n return $chargingPricesSum;\n }",
"function killpointsFromDueling() {\n\tglobal $target_level,$attacker_level,$starting_target_health,$killpoints,$duel;\n\n\t$levelDifference = ($target_level-$attacker_level);\n\n\tif ($levelDifference > 10) {\n\t\t$levelDifferenceMultiplier = 5;\n\t} else if ($levelDifference > 0) {\n\t\t$levelDifferenceMultiplier = ceil($levelDifference/2); //killpoint return of half the level difference.\n\t} else {\n\t\t$levelDifferenceMultiplier = 0;\n\t}\n\n\t$killpoints = 1+$levelDifferenceMultiplier;\n}",
"public function getCost() {\n return 15 + $this->carService->getCost();\n }",
"function calc_value_potion ($level, $alch_perk, $phys_perk, $bene_perk, $pois_perk, $pure_perk) {\n\t\tdb_CRUD::select('ingredient_effect', 'eid, iid, magnitude_modifier, gold_modifier', \"iid in (select iid from effect where specials = 'y')\", 'eid');\n\t\t$nonStandard_data = db_CRUD::get_result();\n\t\t$cost_arr = array();\n\t\tforeach($this->temp_potion as $potion) {\n\t\t\t$cost_arr = array();\n\t\t\t//for each effect in potion: calculate price of effect\n\t\t\tforeach($potion->effect as $eff) {\n\t\t\t\t$select = \"eid, base_cost, base_magnitude, base_duration, poison, specials\";\n\t\t\t\t$where = \"eid = $eff\";\n\t\t\t\tdb_CRUD::select('effect', $select, $where);\n\t\t\t\t$result = db_CRUD::get_result();\n\t\t\t\t$mag_mod = 0;\n\t\t\t\t$gold_mod = 0;\n\t\t\t\t//if ingredient includes special variants: check if ingredient used is non-standard\n\t\t\t\tif($result[5] == 'y') {\n\t\t\t\t\tforeach($nonStandard_data as $nsd) {\n\t\t\t\t\t\tif($potion->ingredient1 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if($potion->ingredient2 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if($potion->ingredient_cnt == 3 && $potion->ingredient3 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$mag_mod = 1;\n\t\t\t\t\t$gold_mod = 1;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//specialized effect magnitude formulas\n\t\t\t\tif($eff != 30 && $eff != 34 && $eff != 50 && $eff != 49) {\n\t\t\t\t\t$mag = $result[2] * $mag_mod * 4 * pow(1.5, $level/100) * (1 + $alch_perk/100);\n\t\t\t\t\tif($eff == 46 || $eff == 47 || $eff || 48)\n\t\t\t\t\t\t$mag *= (1 + $phys_perk/100);\n\t\t\t\t\tif($result[5] == 'y')\n\t\t\t\t\t\t$mag *= (1 + $pois_perk/100);\n\t\t\t\t\telse\n\t\t\t\t\t\t$mag *= (1 + $bene_perk/100);\n\t\t\t\t\t$dur = $result[3];\n\t\t\t\t}\n\t\t\t\t//common effect duration formulas\n\t\t\t\telse {\n\t\t\t\t\t$dur = $result[3] * 4 * pow(1.5, $level/100) * (1 + $alch_perk/100);\n\t\t\t\t\tif($result[5] == 'y')\n\t\t\t\t\t\t$dur *= (1 + $pois_perk/100);\n\t\t\t\t\telse\n\t\t\t\t\t\t$mag *= (1 + $bene_perk/100);\n\t\t\t\t\t$mag = $result[2];\n\t\t\t\t}\n\t\t\t\tif($mag != 0 && $dur != 0) \n\t\t\t\t\t$eff_cost = floor($result[1] * $gold_mod * pow($mag, 1.1) * 0.0794328 * pow($dur, 1.1));\n\t\t\t\telse if($mag == 0)\n\t\t\t\t\t$eff_cost = floor($result[1] * $gold_mod * 0.0794328 * pow($dur, 1.1));\n\t\t\t\telse\n\t\t\t\t\t$eff_cost = floor($result[1] * pow($mag, 1.1));\n\t\t\t\t$cost_arr[] = array($eff_cost, $result[4]);\n\t\t\t} //end foreach $eff\n\t\t\t//if purity perk is active: find most valuable effect to decide potion/poison\n\t\t\tif($pure_perk == 'y') {\n\t\t\t\t$max = 0;\n\t\t\t\t$x = 0;\n\t\t\t\tforeach($cost_arr as $i => $cost) {\n\t\t\t\t\tif($cost[0] > $max) {\n\t\t\t\t\t\t$max = $cost[0];\n\t\t\t\t\t\t$x = $i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$potion->poison = $cost_arr[$x][1];\n\t\t\t\t$total = 0;\n\t\t\t\tforeach($cost_arr as $cost) {\n\t\t\t\t\tif($cost[1] == $cost_arr[$x][1]) {\n\t\t\t\t\t\t$total += $cost[0];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if no purity perk, sum all effect values\n\t\t\telse {\n\t\t\t\t$total = 0;\n\t\t\t\tforeach($cost_arr as $cost) {\n\t\t\t\t\t$total += $cost[0];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$potion->value = $total;\n\t\t} //end foreach $potion\n\t}",
"public function getBonusTime()\n {\n return $this->bonus_time;\n }",
"function thief_op_growth($userid)\n{\n include_once(\"inc/functions/get.php\");\n $kingdom = get_kingdom_nonarray($userid);\n\n //SCIENCE\n $alliance_size = (get_alliance_size($kingdom)) * 80;\n $res = mysql_query(\"SELECT offence_bonus FROM kingdom WHERE id = $kingdom\");\n $line = mysql_fetch_assoc($res);\n\n $sci = round((1.98*$line[\"offence_bonus\"])/($alliance_size+$line[\"offence_bonus\"]),3);\n $sci = min($sci,1);\n\n $build = mysql_query (\"SELECT homes, hideouts, land FROM build WHERE id = $userid\");\n $build = mysql_fetch_assoc($build);\n //Base-growth\n $growth = $build[\"hideouts\"]*0.2+1;\n\n //Specialization-bonus\n $growth = $growth * (1 + 2 * $build[\"hideouts\"] / ($build[\"land\"]));\n\n //Race-bonus\n $grab = mysql_query(\"SELECT race FROM stats WHERE id = $userid\");\n $grab = mysql_fetch_array($grab);\n if ($grab['race'] == \"Wood Elf\")\n {\n $growth = $growth*1.3;\n }\n if ($grab['race'] == \"Mori Hai\")\n {\n $growth = (($build[\"homes\"]/2.5)+$build[\"hideouts\"])*0.2+1;\n $growth = $growth * (1 + 2 * (($build[\"homes\"]/2.5)+$build[\"hideouts\"]) / ($build[\"land\"]));\n }\n $growth = round($growth * ( ($sci/2)+1 ));\n return $growth;\n}",
"abstract public function getCurrentUsage();",
"public function getGold()\n {\n return $this->get(self::_GOLD);\n }",
"public function getGold()\n {\n return $this->get(self::_GOLD);\n }",
"public function damage() {\n return $this->damageMultiplier * $this->weapon->damage();\n }",
"public function hasActdiscount(){\n return $this->_has(34);\n }",
"public function getRemainingAttribute()\n {\n return $this->basePrice*(100-$this->discount)/100.0 - $this->deposit;\n }",
"function get_alloptions_110()\n {\n }",
"public function getDefense()\n {\n return $this->defense;\n }",
"public function getNonHiddenPoints() {\n return $this->non_hidden_non_extra_credit + $this->non_hidden_extra_credit;\n }",
"public function getAditionalPrice()\n {\n return @$this->attributes[\"preco_adicional\"];\n }",
"public function releaseRefPointsOnEveryShoping()\n {\n \t//More you pay less you release.\n \t//Get the points for other shops.\n }",
"public function getUsage()\n {\n return isset($this->usage) ? $this->usage : 0.0;\n }",
"public function getDamage($fireOrder){ return 10; }",
"public function getFrightCostHint()\n\t{\n\t\treturn $this->getAurednikOrder()->getData('aurednik_order_fright_information');\n\t}",
"public function getItemCost()\n {\n return $this->itemCost;\n }",
"function get_discount_info($product) {\r\n $response_arr = array(); \r\n if ($this->total_level_1 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_1, $this->total_level_1); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n if ($this->total_level_2 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_2, $this->total_level_2); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n if ($this->total_level_3 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_3, $this->total_level_3); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n if ($this->total_level_4 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_4, $this->total_level_4); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n if ($this->total_level_5 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_5, $this->total_level_5); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n for ($i = 0, $n=sizeof($this->extra_levels); $i < $n; $i++) {\r\n $h_exp = $this->get_level_policy( $this->extra_discounts[$i], $this->extra_levels[$i]);\r\n $response_arr[] = $h_exp; \r\n }\r\n return $response_arr; \r\n }"
] | [
"0.7012047",
"0.6906563",
"0.69040984",
"0.69040984",
"0.69040984",
"0.67029685",
"0.6613826",
"0.6564496",
"0.65158755",
"0.64186126",
"0.61815196",
"0.6144828",
"0.61240375",
"0.6123987",
"0.61138433",
"0.6111032",
"0.59872484",
"0.5985976",
"0.59686923",
"0.59495676",
"0.59045947",
"0.59026384",
"0.5889778",
"0.5883329",
"0.5867315",
"0.5860769",
"0.58543503",
"0.5847714",
"0.5839108",
"0.5833096",
"0.57993114",
"0.5780617",
"0.5776909",
"0.57484984",
"0.57451934",
"0.5727467",
"0.57128567",
"0.5700064",
"0.5696944",
"0.56777877",
"0.56763226",
"0.56675184",
"0.5665918",
"0.5662627",
"0.56461614",
"0.56299955",
"0.56248015",
"0.56215614",
"0.5606737",
"0.56064713",
"0.5587812",
"0.55787385",
"0.55759984",
"0.5564224",
"0.5557299",
"0.5553573",
"0.55533713",
"0.5551037",
"0.5547943",
"0.5547387",
"0.5546037",
"0.5544618",
"0.5532794",
"0.5527094",
"0.5524112",
"0.5523257",
"0.5521634",
"0.55139744",
"0.55099815",
"0.54867387",
"0.5484953",
"0.54767627",
"0.54764736",
"0.5473778",
"0.54617405",
"0.5460346",
"0.54587364",
"0.54576045",
"0.54553336",
"0.54521465",
"0.5443527",
"0.5442429",
"0.5439178",
"0.54377204",
"0.5436851",
"0.5431502",
"0.5431502",
"0.5431202",
"0.54287827",
"0.5422953",
"0.5414638",
"0.5413809",
"0.54026115",
"0.5395678",
"0.53931904",
"0.538964",
"0.5389446",
"0.53890467",
"0.538884",
"0.5383165"
] | 0.6195437 | 10 |
/ |========================================================== | get offensive bonus used | public function getDefensiveBonusUsed($teamId)
{
$queryString="SELECT *
FROM team_used_corruption,corruption_defensive_methods
WHERE team_used_corruption.corruption_id=corruption_defensive_methods.corruption_defensive_id
AND team_id=$teamId
AND method_type=1";
$query = $this->db->query($queryString);
$result=$query->result_array();
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_bonus() {\n\t\treturn $this->_bonus;\n\t}",
"public function getOilBonus() // 1% expa = 0.3% bonusu\n\t{\n\t\treturn $this->getExperience() * 0.2;\n\t}",
"public function getBonus()\n {\n return $this->bonus;\n }",
"public function getBonus()\n {\n return $this->bonus;\n }",
"public function getBonus()\n {\n return $this->bonus;\n }",
"private function getVentureBonus(){\n\t\treturn $this->ventureBonus ? 2 : 1;\n\t}",
"public function getDefense()\n {\n return $this->_bonusDefense;\n }",
"public function getBonus() {\n return strval($this->bonus);\n }",
"public static function sumTargetHealBonus(stdClass $data){\n\t\t//limit max earrings to 2\n\t\tself::limit($data, array('oldEarrings', 'newEarrings'), 2);\n\n\t\tif(!$data->includeTargetBonus){\n\t\t\treturn 0;\n\t\t}\n\n\t\t$bonus = 0;\n\t\t$isMw = ($data->chestEnchant==ENCHANT_MW_NINE OR $data->chestEnchant==ENCHANT_MW_TWELVE);\n\n\t\t//earrings\n\t\t$bonus += $data->oldEarrings * BONUS_EARRING_OLD;\n\t\t$bonus += $data->newEarrings * BONUS_EARRING_NEW;\n\n\t\t//earring bonus stats\n\t\tif($data->earringBonusLeft){\n\t\t\t$bonus += MISC::getEarringBonusValue($data->earringBonusLeft);\n\t\t}\n\t\tif($data->earringBonusRight){\n\t\t\t$bonus += MISC::getEarringBonusValue($data->earringBonusRight);\n\t\t}\n\n\t\t//heart potion\n\t\tif($data->heartPotion){\n\t\t\t$bonus += BONUS_HEART_POTION;\n\t\t}\n\n\t\t//if chest is disabled, stop here\n\t\tif($data->chestType==TYPE_NONE){\n\t\t\treturn $bonus;\n\t\t}\n\n\t\t//base (current only)\n\t\tif($data->chestType==TYPE_CURRENT AND $data->chestBonusBase){\n\t\t\t$bonus += ($isMw ? BONUS_CHEST_OLD_BASE : BONUS_CHEST_OLD_PLAIN);\n\t\t}\n\n\t\t//+0 (current only)\n\t\tif($data->chestType==TYPE_CURRENT AND $data->chestBonusZero){\n\t\t\t$bonus += ($isMw ? BONUS_CHEST_OLD_BASE : BONUS_CHEST_OLD_PLAIN);\n\t\t}\n\n\t\t//plus\n\t\tif($data->chestType==TYPE_CURRENT AND $data->chestBonusPlus AND $data->chestEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_CHEST_OLD : BONUS_CHEST_OLD_PLAIN);\n\t\t}\n\t\telseif($data->chestBonusPlus AND $data->chestEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_CHEST_NEW : BONUS_CHEST_NEW_PLAIN);\n\t\t}\n\n\t\treturn $bonus;\n\t}",
"public function getMisccost()\n {\n return $this->misccost;\n }",
"public function getOffensiveBonusUsed($teamId)\n {\n $queryString=\"SELECT *\n FROM team_used_corruption,corruption_offensive_methods\n WHERE team_used_corruption.corruption_id=corruption_offensive_methods.corruption_offensive_id\n AND team_id=$teamId\n AND method_type=2\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n return $result;\n\n }",
"function ItemBonus($type='all') {\n\t\t// All bonus.\n\t\tif($type == 'all') {\n\t\t\treturn array(\n\t\t\t'agility' => $this->bonus['agility'],\n\t\t\t'stamina' => $this->bonus['stamina'],\n\t\t\t'intellect' => $this->bonus['intellect'],\n\t\t\t'spirit' => $this->bonus['spirit'],\n\t\t\t'strength' => $this->bonus['strength']\n\t\t);\n\t\t// Agility bonus.\n\t\t} else if($type == 'agility') {\n\t\t\tif(is_int($this->bonus['agility'])) {\n\t\t\t\treturn $this->bonus['agility'];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// Stamina bonus.\n\t\t} else if($type == 'stamina') {\n\t\t\tif(is_int($this->bonus['stamina'])) {\n\t\t\t\treturn $this->bonus['stamina'];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// Intellect bonus.\n\t\t} else if($type == 'intellect') {\n\t\t\tif(is_int($this->bonus['intellect'])) {\n\t\t\t\treturn $this->bonus['intellect'];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// Spirit bonus.\n\t\t} else if($type == 'spirit') {\n\t\t\tif(is_int($this->bonus['agility'])) {\n\t\t\t\treturn $this->bonus['agility'];\n\t\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t// Strength bonus.\n\t\t} else if($type == 'strength') {\n\t\t\tif(is_int($this->bonus['strength'])) {\n\t\t\t\treturn $this->bonus['strength'];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t// Else it's an unknow bonus, return false.\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function getLoyaltyPref()\n {\n return $this->loyaltyPref;\n }",
"public function get_bonus_string() {\n\t\tswitch ($this->_bonus) {\n\t\t\tcase static::CELL_BONUS_ST:\n\t\t\treturn \"ST\";\n\n\t\t\tcase static::CELL_BONUS_2W:\n\t\t\treturn \"2W\";\n\n\t\t\tcase static::CELL_BONUS_3W:\n\t\t\treturn \"3W\";\n\n\t\t\tcase static::CELL_BONUS_2L:\n\t\t\treturn \"2L\";\n\n\t\t\tcase static::CELL_BONUS_3L:\n\t\t\treturn \"3L\";\n\t\t}\n\n\t\treturn \"\";\n\t}",
"function spectra_money_supply ()\n\t{\n\t\tif (system_flag_get (\"balance_rebuild\") > 0)\n\t\t{\n\t\t\treturn \"Re-Balancing\";\n\t\t}\n\t\t\n\t\t$response = $GLOBALS[\"db\"][\"obj\"]->query (\"SELECT SUM(`balance`) AS `supply` FROM `\".$GLOBALS[\"tables\"][\"ledger\"].\"`\");\n\t\t$result = $response->fetch_assoc ();\n\t\t\n\t\tif (!isset ($result[\"supply\"]))\n\t\t{\n\t\t\treturn \"Unavailable\";\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\treturn $result[\"supply\"];\n\t\t}\n\t}",
"public function getCost();",
"public function getOffenseEffectiveness()\n {\n return $this->attacker->getStats()->getStrength();\n }",
"public function cost(){\n\t\t\n\t\treturn 200;\n\t}",
"public function getBonusrec()\n {\n return $this->bonusrec;\n }",
"function get_penalty_types() {\n\t$array = array(\n\t\t\t\"Abuse of officials\" \t=> 2,\n\t\t\t\"Aggressor penalty\"\t\t=> 2,\n\t\t\t\"Attempt to injure\"\t\t=> 2,\n\t\t\t\"Biting\"\t\t\t\t=> 2,\n\t\t\t\"Boarding\"\t\t\t\t=> 2,\n\t\t\t\"Butt-ending\"\t\t\t=> 2,\n\t\t\t\"Broken stick\"\t\t\t=> 2,\n\t\t\t\"Charging\"\t\t\t\t=> 2,\n\t\t\t\"Checking from behind\"\t=> 2,\n\t\t\t\"Illegal check to the head\" => 2,\n\t\t\t\"Clipping\" \t\t\t\t=> 2,\n\t\t\t\"Cross-checking\" \t\t=> 2,\n\t\t\t\"Delay of game\" \t\t=> 2,\n\t\t\t\"Diving\"\t\t\t\t=> 2,\n\t\t\t\"Elbowing\"\t\t\t\t=> 2,\n\t\t\t\"Eye-gouging\"\t\t\t=> 2,\n\t\t\t\"Fighting\"\t\t\t\t=> 5,\n\t\t\t\"Goaltender Interference\" => 2,\n\t\t\t\"Goaltender Leaving Crease\" => 2,\n\t\t\t\"Head-butting\" => 2,\n\t\t\t\"High-sticking (2 min)\" => 2,\n\t\t\t\"High-sticking (4 min)\" => 2,\n\t\t\t\"Holding\" => 2,\n\t\t\t\"Holding the stick\" => 2,\n\t\t\t\"Illegal Equipment\" => 2,\n\t\t\t\"Instigator penalty\" => 2,\n\t\t\t\"Interference\" => 2,\n\t\t\t\"Joining a fight\" => 10,\n\t\t\t\"Kicking\" => 5,\n\t\t\t\"Kneeing\" => 2,\n\t\t\t\"Leaving the Penalty Bench\" => 2,\n\t\t\t\"Playing with Too Many Sticks\" => 2,\n\t\t\t\"Roughing\" => 2,\n\t\t\t\"Secondary Altercation\" => 2,\n\t\t\t\"Slashing\" => 2,\n\t\t\t\"Slew Footing\" => 2,\n\t\t\t\"Spearing\" => 2,\n\t\t\t\"Starting the wrong lineup\" => 2,\n\t\t\t\"Substitution infraction (Illegal Substitution)\" => 2,\n\t\t\t\"Throwing Equipment\" => 2,\n\t\t\t\"Too many men on the ice\" => 2,\n\t\t\t\"Tripping\" => 2, \n\t\t\t\"Unsportsmanlike conduct\" => 2\n\t\t);\n\n\treturn $array;\n}",
"public function get_penalty()\n {\n return $this->penalty;\n }",
"public static function sumHealBonusWeapon(stdClass $data){\n\t\tif($data->weaponType==TYPE_NONE){\n\t\t\treturn 0;\n\t\t}\n\n\t\t$bonus = 0;\n\t\t$isMw = ($data->weaponEnchant==ENCHANT_MW_NINE OR $data->weaponEnchant==ENCHANT_MW_TWELVE);\n\n\t\t//base\n\t\tif($data->weaponType!=TYPE_NEW AND $data->weaponBonusBase){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_OLD_BASE : BONUS_WEAPON_OLD_PLAIN);\n\t\t}\n\t\telseif($data->weaponBonusBase){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_NEW : BONUS_WEAPON_NEW_PLAIN);\n\t\t}\n\n\t\t//+0 (old and current only)\n\t\tif($data->weaponType!=TYPE_NEW AND $data->weaponBonusZero){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_OLD_BASE : BONUS_WEAPON_OLD_PLAIN);\n\t\t}\n\n\t\t//plus\n\t\tif($data->weaponType!=TYPE_NEW AND $data->weaponBonusPlus AND $data->weaponEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_OLD : BONUS_WEAPON_OLD_PLAIN);\n\t\t}\n\t\telseif($data->weaponBonusPlus AND $data->weaponEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_WEAPON_NEW : BONUS_WEAPON_NEW_PLAIN);\n\t\t}\n\n\t\t//fix (current and new only)\n\t\tif($data->weaponType!=TYPE_OLD AND $data->weaponBonusFix AND $data->weaponEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += BONUS_WEAPON_FIX;\n\t\t}\n\n\t\t//mw (current only)\n\t\tif($data->weaponType==TYPE_CURRENT AND $data->weaponBonusMw AND $data->weaponEnchant==ENCHANT_MW_TWELVE){\n\t\t\t$bonus += BONUS_WEAPON_OLD_MW;\n\t\t}\n\n\t\treturn $bonus;\n\t}",
"public function getTotalSupply()\n {\n //XXX mutable supply\n return 290888;\n }",
"function calculateEnergyUse(){\n $this->boilerEnergy = $this->outletSteam->energyFlow + $this->blowdown->energyFlow - $this->feedwater->energyFlow;\n $this->fuelEnergy = $this->boilerEnergy / $this->boilerEff; \n $this->checkWarnings();\n }",
"public function getFeralBonus($extraDPS = 0) {\n if($this->class == ITEM_CLASS_WEAPON && (1 << $this->subclass) & 0x02A5F3) {\n $bonus = ($extraDPS + $this->getDPS()*14.0) - 767;\n if($bonus < 0) {\n $bonus = 0;\n }\n return $bonus;\n }\n return 0;\n }",
"public function getBonusCode()\n {\n return $this->bonusCode;\n }",
"function profit()\n\t{\n\t\t$total = 0;\n\t\t$ante = $this->properties->get('ante');\n\t\tforeach ($this->all() as $record)\n\t\t\tif (!empty($record->making))\n\t\t\t\t$total += $record->balance - $ante;\n\n\t\treturn $total;\n\t}",
"function getBonusClass($total_points){\n\t//30%,25%, 20%, 15%, 10%\n\t$bonus_class = [$total_points * 0.299, $total_points * 0.249, $total_points * 0.199, $total_points * 0.149, $total_points * 0.099];\n\n\treturn $bonus_class;\n}",
"private function score_alcohol_use() {\t\t\t\t\t\t//&&& no alcohol use section in scoring\r\n\t\t$data = $this->data['alcohol_use'];\r\n\t\tif($this->demographics['gender']==\"M\"){\r\n\t\t\t$q39=$this->scoreValue(array(5,4,3,2,1),$data['q39']);\r\n\t\t}else{\r\n\t\t\t$q39=$this->scoreValue(array(5,3,1,1,1),$data['q39']);\r\n\t\t}\r\n\t\t$q40=$this->scoreValue(array(1,5),$data['q40']);\r\n\t\t$ob=new stdClass();\r\n\t\t$ob->total=0;\r\n\t\t$ob->data=array('q39'=>array($q39,.6),\r\n\t\t\t\t\t\t'q40'=>array($q40,.4));\r\n\r\n\t\tforeach($ob->data as &$rec){\r\n\t\t\t$rec[2] = $rec[0] * $rec[1];\r\n\t\t\t$ob->total += $rec[2];\r\n\t\t}\r\n\t\treturn $ob;\r\n\t}",
"public function getDiscretionaryBonus($discretionaryBonus);",
"public static function sumHealBonusCrystals(stdClass $data){\n\t\t//limit max crystals to 4\n\t\tself::limit($data, array('zyrks', 'pristineZyrks', 'pristineZyrks2'), 4);\n\n\t\t$bonus = 0;\n\n\t\t$bonus += $data->zyrks * BONUS_ZYRK;\n\t\t$bonus += $data->pristineZyrks * BONUS_ZYRK_PRISTINE;\n\t\t$bonus += $data->pristineZyrks2 * BONUS_ZYRK_PRISTINE_2;\n\n\t\treturn $bonus;\n\t}",
"public function getTonicDiscount()\n {\n }",
"public function getUsedAttribute()\n {\n return $this->requisitionLines()\n ->whereDoesntHave('requisition', function ($query) {\n $query->whereIn('state', ['Draft', 'Pending Approval']);\n })->get()\n ->sum('amount');\n }",
"function get_cost() {\n\t\t$this->_event->log(\"get_costs\", $_SERVER['REQUEST_TIME'], 5, \"cloudprofile.class.php\", \"Calulating bill for cr $this->id\", \"\", \"\", 0, 0, 0);\n\t\t$cr_appliance_id = $this->appliance_id;\n\t\t$app_id_arr = explode(\",\", $cr_appliance_id);\n\t\t$cr_costs_final = 0;\n\t\tforeach ($app_id_arr as $app_id) {\n\t\t\t$cloud_app = new cloudappliance();\n\t\t\t$cloud_app->get_instance_by_appliance_id($app_id);\n\t\t\t// check state, only bill if active\n\t\t\tif ($cloud_app->state == 1) {\n\t\t\t\t// basic cost\n\t\t\t\t$cr_costs = 0;\n\t\t\t\t// + per cpu\n\t\t\t\t$cr_costs = $cr_costs + $this->cpu_req;\n\t\t\t\t// + per nic\n\t\t\t\t$cr_costs = $cr_costs + $this->network_req;\n\t\t\t\t// ha cost double\n\t\t\t\tif (!strcmp($this->ha_req, '1')) {\n\t\t\t\t\t$cr_costs = $cr_costs * 2;\n\t\t\t\t}\n\t\t\t\t// TODO : disk costs\n\t\t\t\t// TODO : network-traffic costs\n\n\t\t\t\t// sum\n\t\t\t\t$cr_costs_final = $cr_costs_final + $cr_costs;\n\t\t\t\t$this->_event->log(\"get_costs\", $_SERVER['REQUEST_TIME'], 5, \"cloudprofile.class.php\", \"-> Billing active appliance $app_id (cr $this->id) = $cr_costs CC-units\", \"\", \"\", 0, 0, 0);\n\t\t\t} else {\n\t\t\t\t$this->_event->log(\"get_costs\", $_SERVER['REQUEST_TIME'], 5, \"cloudprofile.class.php\", \"-> Not billing paused appliance $app_id (cr $this->id)\", \"\", \"\", 0, 0, 0);\n\t\t\t}\n\t\t}\n\t\t$this->_event->log(\"get_costs\", $_SERVER['REQUEST_TIME'], 5, \"cloudprofile.class.php\", \"-> Final bill for cr $this->id = $cr_costs_final CC-units\", \"\", \"\", 0, 0, 0);\n\t\treturn $cr_costs_final;\n\t}",
"public function getUsage() {\n\t\t// this function is not yet used.\n\t}",
"protected function getUsedCoupon()\n {\n return $this->booking->usedCoupon;\n }",
"function apply_condition_bonus(){\r\n\t$Bonus_Rand = mt_rand(75,150) * 1000;\r\n\r\n\tif($this->Eq['A']['exp'] < 0){\r\n\t\t$i = (10000+$this->Eq['A']['exp'])/10000;\r\n\t\t$this->Eq['A']['atk'] = floor($this->Eq['A']['atk'] * $i);\r\n\t\t$i = 1 + abs($this->Eq['A']['exp'])/10000;\r\n\t}else\t$i = 1 - $this->Eq['A']['exp']/$Bonus_Rand;\r\n\t$this->Eq['A']['enc'] = floor($this->Eq['A']['enc'] * $i);\r\n\r\n\tif($this->Eq['D']['exp'] < 0)\t$i = ($this->Eq['D']['exp'])/-5000;\r\n\telse\t\t\t\t$i = 1 - $this->Eq['D']['exp']/$Bonus_Rand;\r\n\t$this->Eq['D']['enc'] = floor($this->Eq['D']['enc'] * $i);\r\n\r\n\tif($this->Eq['E']['exp'] < 0)\t$i = ($this->Eq['E']['exp'])/-5000;\r\n\telse\t\t\t\t$i = 1 - $this->Eq['E']['exp']/$Bonus_Rand;\r\n\t$this->Eq['E']['enc'] = floor($this->Eq['E']['enc'] * $i);\r\n\r\n}",
"public function getCost()\n {\n return $this->get(self::_COST);\n }",
"function getUtilisation(){\n\n $total = $this-> getTotalWeight() ;\n \n return round(($total / $this->capacity) * 100, 2);\n\n }",
"public function penaltyProvider()\n {\n return [\n [10, Penalty::COMPARISON_BIGGER, 15, 0.5, Penalty::OPERATION_MULTIPLY, true],\n [20, Penalty::COMPARISON_BIGGER, 15, 0.5, Penalty::OPERATION_MULTIPLY, false],\n [10, Penalty::COMPARISON_BIGGER, 20, 100, Penalty::OPERATION_PLUS, true],\n [20, Penalty::COMPARISON_BIGGER, 20, 100, Penalty::OPERATION_PLUS, false],\n [10, Penalty::COMPARISON_BIGGER, 20, -10000, Penalty::OPERATION_PLUS, true],\n [20, Penalty::COMPARISON_SMALLER, 15, 0.5, Penalty::OPERATION_MULTIPLY, true],\n [10, Penalty::COMPARISON_SMALLER, 20, 0.5, Penalty::OPERATION_MULTIPLY, false],\n [10, Penalty::COMPARISON_SMALLER, 20, 100, Penalty::OPERATION_PLUS, false],\n [10, Penalty::COMPARISON_SMALLER, 5, 100, Penalty::OPERATION_PLUS, true],\n [10, Penalty::COMPARISON_SMALLER, 5, -10000, Penalty::OPERATION_PLUS, true],\n ];\n }",
"public function hasPrecost(){\n return $this->_has(25);\n }",
"public function getWarranty()\n {\n return $this->warranty;\n }",
"public function getHiddenPoints() {\n return $this->hidden_non_extra_credit + $this->hidden_extra_credit;\n }",
"function getUVFloodCost (&$rawCost, $totalSheets) {\n\tif ($_POST[\"uvFlood\"] == \"uvFlood\") {\n\t\t$itemUVFlood = 1;\n\t\t$uvFloodCost = UVFLOODSETUP;\n\t\t$uvFloodCost += ($totalSheets * UVFLOODCOST);\n\t}\nelse {\n\t$uvFloodCost = 0;\n\t}\n\n$rawCost += $uvFloodCost;\n}",
"public function getBaseTotalInvoicedCost();",
"public function getDiscountInvoiced();",
"public function getPenaltycharges()\n {\n return $this->penaltycharges;\n }",
"function get_discount($total = 0)\n{\n global $config, $db_prefix, $sql_today, $current_user_id;\n\n $discount = array('self_gift_code' => '', 'gift_code' => '', 'gift_flat' => 0, 'gift_pct' => 0);\n $gift_discount = false;\n\n // get gift\n $gift = sql_qquery(\"SELECT * FROM \".$db_prefix.\"gift WHERE redeem_user_id='$current_user_id' AND redeem_order_id='' AND valid_date >= '$sql_today' LIMIT 1\");\n if (!empty($gift) && ($total >= $gift['min_purchase'])) {\n $gift_discount = true;\n $g = explode('.', $gift['gift_code']);\n $discount['self_gift_code'] = $gift['gift_code'];\n $discount['gift_code'] = $gift['gift_code'] = $g[0];\n if ($gift['gift_pct']) {\n $discount['gift_pct'] = $gift['gift_value'];\n } else {\n $discount['gift_flat'] = $gift['gift_value'];\n }\n }\n\n return $discount;\n}",
"public function getDiscountCanceled();",
"public function totalCost(): float;",
"public function get_amount_requested()\n {\n }",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"public static function sumHealBonusGloves(stdClass $data){\n\t\tif($data->glovesType==TYPE_NONE){\n\t\t\treturn 0;\n\t\t}\n\n\t\t$bonus = 0;\n\t\t$isMw = ($data->glovesEnchant==ENCHANT_MW_NINE OR $data->glovesEnchant==ENCHANT_MW_TWELVE);\n\n\t\t//base (new only)\n\t\tif($data->glovesType==TYPE_NEW AND $data->glovesBonusBase){\n\t\t\t$bonus += ($isMw ? BONUS_GLOVES_NEW : BONUS_GLOVES_NEW_PLAIN);\n\t\t}\n\n\t\t//+0 (old and current only)\n\t\tif($data->glovesType!=TYPE_NEW AND $data->glovesBonusZero){\n\t\t\t$bonus += ($isMw ? BONUS_GLOVES_OLD_BASE : BONUS_GLOVES_OLD_PLAIN);\n\t\t}\n\n\t\t//plus\n\t\tif($data->glovesType==TYPE_NEW AND $data->glovesBonusPlus AND $data->glovesEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_GLOVES_NEW : BONUS_GLOVES_NEW_PLAIN);\n\t\t}\n\t\telseif($data->glovesBonusPlus AND $data->glovesEnchant!=ENCHANT_NONE){\n\t\t\t$bonus += ($isMw ? BONUS_GLOVES_OLD : BONUS_GLOVES_OLD_PLAIN);\n\t\t}\n\n\t\t//mw (current and new only)\n\t\tif($data->glovesType==TYPE_CURRENT AND $data->glovesBonusMw > 0 AND $data->glovesEnchant==ENCHANT_MW_TWELVE){\n\t\t\t$bonus += BONUS_GLOVES_OLD_MW / 3 * $data->glovesBonusMw;\n\t\t}\n\t\telseif($data->glovesType==TYPE_NEW AND $data->glovesBonusMw AND $data->glovesEnchant==ENCHANT_MW_TWELVE){\n\t\t\t$bonus += BONUS_GLOVES_NEW_MW;\n\t\t}\n\n\t\treturn $bonus;\n\t}",
"public function getUsedPower() {\r\n return $this->cached_claimed_plots_count * $this->factionsLevel->getSettings()->powerPerPlot;\r\n }",
"public function getAttributes_discounted() {\n\t\treturn $this->attributes_discounted;\n\t}",
"public function getMinSpellBonusDamage(){\r\n\t $result = min($this->getSpellBonusDamageArcane(),\r\n \t\t\t\t\t$this->getSpellBonusDamageFire(),\r\n \t\t\t\t\t$this->getSpellBonusDamageFrost(),\r\n\t\t\t\t\t$this->getSpellBonusDamageHoly(),\r\n \t\t\t\t\t$this->getSpellBonusDamageNature(),\r\n \t\t\t\t\t$this->getSpellBonusDamageShadow());\r\n\t return $result;\r\n\t}",
"public function getLoyaltyAllowedInd()\n {\n return $this->loyaltyAllowedInd;\n }",
"public function getEffectivePrice()\n {\n return $this->effective_price;\n }",
"public function getBoost() {}",
"public function profit() : void {\n\t\techo ($this->price - $this->cost);\n\t}",
"public function cost()\n {\n return $this->beverage->cost() + $this->cost;\n }",
"private function getAllAplicableBonus($id_user,$type)\n\t{\n\t\t$suma = array();\n\t\t$data = array(\n\t\t\t\t\"id_employee\" => $id_user,\n\t\t\t\t\"type\" => $type\n\t\t);\n\t\t\n\t\t$aplicableBonus = $this->getPayrollModel()->getAllBonusByUser($data);\n\t\t\n\t\tforeach ($aplicableBonus as $row){\n\t\t\t$suma[] = $row['amount'];\n\t\t}\n\t\treturn array_sum($suma);\n\t}",
"function deck_calculate_stats_value(array $base, array $bond, int $user_leader_skill, int $guest_leader_skill = 0): array\r\n{\r\n\t$lsk = [$user_leader_skill, $guest_leader_skill];\r\n\t$add = [0.0, 0.0, 0.0];\r\n\t\r\n\tforeach($lsk as $skill)\r\n\t{\r\n\t\tif($skill == 0)\r\n\t\t\tcontinue;\r\n\t\t\r\n\t\tif($skill >= 1 && $skill <= 9)\r\n\t\t{\r\n\t\t\t/* Non-cross attribute */\r\n\t\t\t$i = intdiv($skill - 1, 3);\r\n\t\t\t$add[$i] += (float)$base[$i] * 0.03 * ((($skill - 1) % 3) + 1);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tswitch($skill)\r\n\t\t\t{\r\n\t\t\t\tcase 31:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Smile Angel */\r\n\t\t\t\t\t$add[0] += (float)$base[1] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 32:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Smile Empress */\r\n\t\t\t\t\t$add[0] += (float)$base[2] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 33:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Pure Princess */\r\n\t\t\t\t\t$add[1] += (float)$base[0] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 34:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Pure Empress */\r\n\t\t\t\t\t$add[1] += (float)$base[2] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 35:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Cool Princess */\r\n\t\t\t\t\t$add[2] += (float)$base[0] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 36:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Cool Angel */\r\n\t\t\t\t\t$add[2] += (float)$base[1] * 0.12;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tdefault:\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t$out = [];\r\n\t\r\n\tfor($i = 0; $i < 3; $i++)\r\n\t\t$out[$i] = $base[$i] + $bond[$i] + (int)round($add[$i]);\r\n\t\r\n\treturn $out;\r\n}",
"function customerDiscount()\r\n\t{\r\n\t\t$sql = $GLOBALS['db']->Query(\"SELECT Wert FROM \" . PREFIX . \"_modul_shop_kundenrabatte WHERE GruppenId = '\".UGROUP.\"' LIMIT 1\");\r\n\t\t$row = $sql->fetchrow();\r\n\t\t$sql->close();\r\n\t\tif(is_object($row))\r\n\t\t\treturn $row->Wert;\r\n\t}",
"public function getDamage();",
"public function getPermitIntensityOfUse()\n {\n return $this->permitsRequired > 0 ? $this->trips / $this->permitsRequired : 0;\n }",
"public function showPenaltyCalculator()\n {\n return view('developers.installment_account_ledgers.penalty_calculator', compact('ledger_properties','buyer'));\n }",
"function get_prof_rating($professorid){\r\n\r\n}",
"function calc_extra_sp_cost($Discount = 1){\r\n\t$list = array('D','E','A');\r\n\tforeach($list as $v){\r\n\t\tif(preg_match('/CostSP<([0-9]+)>/',$this->Eq[$v]['spec'],$array)){\r\n\t\t\t$a = intval($array[1]);\r\n\t\t\t$this->SP_Cost += ceil($a * $Discount);\r\n\t\t}\r\n\t}\r\n}",
"function getCost(){\n return $this->cost;\n }",
"function bonus_devident() {\n hitungDevident();\n}",
"function getScoreCost (&$labor, $quantity) {\n\tif ($_POST[\"score\"] == \"score\") {\n\t\t$scoreLabor = (HOUR * .16);\n\t\t$scoreLabor += (($quantity * .000833) * HOUR);\n\t}\nelse {\n\t$scoreLabor = 0;\n\t}\n$labor += $scoreLabor;\n}",
"public static function sumHealBonusEtching(stdClass $data){\n\t\treturn MISC::getEtchingValue($data->weaponEtching) + MISC::getEtchingValue($data->glovesEtching);\n\t}",
"public function getTotalInvoiced();",
"public function getDailyBonusCoins()\n {\n return $this->daily_bonus_coins;\n }",
"public function cost()\n {\n return $this->getPrice();\n }",
"function isExpensive() {\n\t\treturn true;\n\t}",
"function getTotal($userSelection) {\n$cookie = 3.00; //This the cost of cookies\n$chips = 10.00; //Cost of Chips\n$soda = 1.00;// Cosst of Soda\n\t//Checks if user wants the combo meal of 0\n\tif($userSelection == 0) {\n\t\t//Calculate Total\n\t\t$userSelection = $cookie + $chips;\n\t\techo $userSelection; //Prints out the total amount\n\t}\n}",
"private function countConsumedMoneyByKilowatt()\n {\n if( $this -> charging_powers === null )\n {\n return 0;\n }\n\n $chargingPricesSum = $this \n -> charging_powers\n -> reduce(function($carry, $chargingPower) {\n return $carry + $chargingPower -> getIntervalPrice();\n });\n\n return $chargingPricesSum;\n }",
"function killpointsFromDueling() {\n\tglobal $target_level,$attacker_level,$starting_target_health,$killpoints,$duel;\n\n\t$levelDifference = ($target_level-$attacker_level);\n\n\tif ($levelDifference > 10) {\n\t\t$levelDifferenceMultiplier = 5;\n\t} else if ($levelDifference > 0) {\n\t\t$levelDifferenceMultiplier = ceil($levelDifference/2); //killpoint return of half the level difference.\n\t} else {\n\t\t$levelDifferenceMultiplier = 0;\n\t}\n\n\t$killpoints = 1+$levelDifferenceMultiplier;\n}",
"public function getCost() {\n return 15 + $this->carService->getCost();\n }",
"function calc_value_potion ($level, $alch_perk, $phys_perk, $bene_perk, $pois_perk, $pure_perk) {\n\t\tdb_CRUD::select('ingredient_effect', 'eid, iid, magnitude_modifier, gold_modifier', \"iid in (select iid from effect where specials = 'y')\", 'eid');\n\t\t$nonStandard_data = db_CRUD::get_result();\n\t\t$cost_arr = array();\n\t\tforeach($this->temp_potion as $potion) {\n\t\t\t$cost_arr = array();\n\t\t\t//for each effect in potion: calculate price of effect\n\t\t\tforeach($potion->effect as $eff) {\n\t\t\t\t$select = \"eid, base_cost, base_magnitude, base_duration, poison, specials\";\n\t\t\t\t$where = \"eid = $eff\";\n\t\t\t\tdb_CRUD::select('effect', $select, $where);\n\t\t\t\t$result = db_CRUD::get_result();\n\t\t\t\t$mag_mod = 0;\n\t\t\t\t$gold_mod = 0;\n\t\t\t\t//if ingredient includes special variants: check if ingredient used is non-standard\n\t\t\t\tif($result[5] == 'y') {\n\t\t\t\t\tforeach($nonStandard_data as $nsd) {\n\t\t\t\t\t\tif($potion->ingredient1 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if($potion->ingredient2 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if($potion->ingredient_cnt == 3 && $potion->ingredient3 == $nsd[1] && $eff == $nsd[0]) {\n\t\t\t\t\t\t\tif(($nsd[2] * $nsd[3]) > ($mag_mod * $gold_mod)) {\n\t\t\t\t\t\t\t\t$mag_mod = $nsd[2];\n\t\t\t\t\t\t\t\t$gold_mod = $nsd[3];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$mag_mod = 1;\n\t\t\t\t\t$gold_mod = 1;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//specialized effect magnitude formulas\n\t\t\t\tif($eff != 30 && $eff != 34 && $eff != 50 && $eff != 49) {\n\t\t\t\t\t$mag = $result[2] * $mag_mod * 4 * pow(1.5, $level/100) * (1 + $alch_perk/100);\n\t\t\t\t\tif($eff == 46 || $eff == 47 || $eff || 48)\n\t\t\t\t\t\t$mag *= (1 + $phys_perk/100);\n\t\t\t\t\tif($result[5] == 'y')\n\t\t\t\t\t\t$mag *= (1 + $pois_perk/100);\n\t\t\t\t\telse\n\t\t\t\t\t\t$mag *= (1 + $bene_perk/100);\n\t\t\t\t\t$dur = $result[3];\n\t\t\t\t}\n\t\t\t\t//common effect duration formulas\n\t\t\t\telse {\n\t\t\t\t\t$dur = $result[3] * 4 * pow(1.5, $level/100) * (1 + $alch_perk/100);\n\t\t\t\t\tif($result[5] == 'y')\n\t\t\t\t\t\t$dur *= (1 + $pois_perk/100);\n\t\t\t\t\telse\n\t\t\t\t\t\t$mag *= (1 + $bene_perk/100);\n\t\t\t\t\t$mag = $result[2];\n\t\t\t\t}\n\t\t\t\tif($mag != 0 && $dur != 0) \n\t\t\t\t\t$eff_cost = floor($result[1] * $gold_mod * pow($mag, 1.1) * 0.0794328 * pow($dur, 1.1));\n\t\t\t\telse if($mag == 0)\n\t\t\t\t\t$eff_cost = floor($result[1] * $gold_mod * 0.0794328 * pow($dur, 1.1));\n\t\t\t\telse\n\t\t\t\t\t$eff_cost = floor($result[1] * pow($mag, 1.1));\n\t\t\t\t$cost_arr[] = array($eff_cost, $result[4]);\n\t\t\t} //end foreach $eff\n\t\t\t//if purity perk is active: find most valuable effect to decide potion/poison\n\t\t\tif($pure_perk == 'y') {\n\t\t\t\t$max = 0;\n\t\t\t\t$x = 0;\n\t\t\t\tforeach($cost_arr as $i => $cost) {\n\t\t\t\t\tif($cost[0] > $max) {\n\t\t\t\t\t\t$max = $cost[0];\n\t\t\t\t\t\t$x = $i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$potion->poison = $cost_arr[$x][1];\n\t\t\t\t$total = 0;\n\t\t\t\tforeach($cost_arr as $cost) {\n\t\t\t\t\tif($cost[1] == $cost_arr[$x][1]) {\n\t\t\t\t\t\t$total += $cost[0];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if no purity perk, sum all effect values\n\t\t\telse {\n\t\t\t\t$total = 0;\n\t\t\t\tforeach($cost_arr as $cost) {\n\t\t\t\t\t$total += $cost[0];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$potion->value = $total;\n\t\t} //end foreach $potion\n\t}",
"public function getBonusTime()\n {\n return $this->bonus_time;\n }",
"function thief_op_growth($userid)\n{\n include_once(\"inc/functions/get.php\");\n $kingdom = get_kingdom_nonarray($userid);\n\n //SCIENCE\n $alliance_size = (get_alliance_size($kingdom)) * 80;\n $res = mysql_query(\"SELECT offence_bonus FROM kingdom WHERE id = $kingdom\");\n $line = mysql_fetch_assoc($res);\n\n $sci = round((1.98*$line[\"offence_bonus\"])/($alliance_size+$line[\"offence_bonus\"]),3);\n $sci = min($sci,1);\n\n $build = mysql_query (\"SELECT homes, hideouts, land FROM build WHERE id = $userid\");\n $build = mysql_fetch_assoc($build);\n //Base-growth\n $growth = $build[\"hideouts\"]*0.2+1;\n\n //Specialization-bonus\n $growth = $growth * (1 + 2 * $build[\"hideouts\"] / ($build[\"land\"]));\n\n //Race-bonus\n $grab = mysql_query(\"SELECT race FROM stats WHERE id = $userid\");\n $grab = mysql_fetch_array($grab);\n if ($grab['race'] == \"Wood Elf\")\n {\n $growth = $growth*1.3;\n }\n if ($grab['race'] == \"Mori Hai\")\n {\n $growth = (($build[\"homes\"]/2.5)+$build[\"hideouts\"])*0.2+1;\n $growth = $growth * (1 + 2 * (($build[\"homes\"]/2.5)+$build[\"hideouts\"]) / ($build[\"land\"]));\n }\n $growth = round($growth * ( ($sci/2)+1 ));\n return $growth;\n}",
"abstract public function getCurrentUsage();",
"public function getGold()\n {\n return $this->get(self::_GOLD);\n }",
"public function getGold()\n {\n return $this->get(self::_GOLD);\n }",
"public function damage() {\n return $this->damageMultiplier * $this->weapon->damage();\n }",
"public function hasActdiscount(){\n return $this->_has(34);\n }",
"public function getRemainingAttribute()\n {\n return $this->basePrice*(100-$this->discount)/100.0 - $this->deposit;\n }",
"function get_alloptions_110()\n {\n }",
"public function getDefense()\n {\n return $this->defense;\n }",
"public function getNonHiddenPoints() {\n return $this->non_hidden_non_extra_credit + $this->non_hidden_extra_credit;\n }",
"public function getAditionalPrice()\n {\n return @$this->attributes[\"preco_adicional\"];\n }",
"public function releaseRefPointsOnEveryShoping()\n {\n \t//More you pay less you release.\n \t//Get the points for other shops.\n }",
"public function getUsage()\n {\n return isset($this->usage) ? $this->usage : 0.0;\n }",
"public function getDamage($fireOrder){ return 10; }",
"public function getFrightCostHint()\n\t{\n\t\treturn $this->getAurednikOrder()->getData('aurednik_order_fright_information');\n\t}",
"public function getItemCost()\n {\n return $this->itemCost;\n }",
"function get_discount_info($product) {\r\n $response_arr = array(); \r\n if ($this->total_level_1 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_1, $this->total_level_1); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n if ($this->total_level_2 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_2, $this->total_level_2); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n if ($this->total_level_3 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_3, $this->total_level_3); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n if ($this->total_level_4 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_4, $this->total_level_4); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n if ($this->total_level_5 > 0) {\r\n $h_exp = $this->get_level_policy($this->total_discount_5, $this->total_level_5); \r\n $response_arr[] = $h_exp; \r\n }\r\n\r\n for ($i = 0, $n=sizeof($this->extra_levels); $i < $n; $i++) {\r\n $h_exp = $this->get_level_policy( $this->extra_discounts[$i], $this->extra_levels[$i]);\r\n $response_arr[] = $h_exp; \r\n }\r\n return $response_arr; \r\n }"
] | [
"0.7012047",
"0.6906563",
"0.69040984",
"0.69040984",
"0.69040984",
"0.67029685",
"0.6613826",
"0.6564496",
"0.65158755",
"0.64186126",
"0.6195437",
"0.61815196",
"0.6144828",
"0.61240375",
"0.6123987",
"0.61138433",
"0.6111032",
"0.59872484",
"0.5985976",
"0.59686923",
"0.59495676",
"0.59045947",
"0.59026384",
"0.5889778",
"0.5883329",
"0.5867315",
"0.5860769",
"0.58543503",
"0.5847714",
"0.5839108",
"0.5833096",
"0.57993114",
"0.5780617",
"0.5776909",
"0.57484984",
"0.57451934",
"0.5727467",
"0.57128567",
"0.5700064",
"0.56777877",
"0.56763226",
"0.56675184",
"0.5665918",
"0.5662627",
"0.56461614",
"0.56299955",
"0.56248015",
"0.56215614",
"0.5606737",
"0.56064713",
"0.5587812",
"0.55787385",
"0.55759984",
"0.5564224",
"0.5557299",
"0.5553573",
"0.55533713",
"0.5551037",
"0.5547943",
"0.5547387",
"0.5546037",
"0.5544618",
"0.5532794",
"0.5527094",
"0.5524112",
"0.5523257",
"0.5521634",
"0.55139744",
"0.55099815",
"0.54867387",
"0.5484953",
"0.54767627",
"0.54764736",
"0.5473778",
"0.54617405",
"0.5460346",
"0.54587364",
"0.54576045",
"0.54553336",
"0.54521465",
"0.5443527",
"0.5442429",
"0.5439178",
"0.54377204",
"0.5436851",
"0.5431502",
"0.5431502",
"0.5431202",
"0.54287827",
"0.5422953",
"0.5414638",
"0.5413809",
"0.54026115",
"0.5395678",
"0.53931904",
"0.538964",
"0.5389446",
"0.53890467",
"0.538884",
"0.5383165"
] | 0.5696944 | 39 |
/ |========================================================== | update team primary potential |========================================================== | | public function increaseTeamPrimaryPotential($potential,$teamId,$action)
{
switch($action){
case "ATT";
$queryString="UPDATE teams
SET experience_att=experience_att+$potential
WHERE team_id=$teamId";
break;
case "MIL";
$queryString="UPDATE teams
SET experience_mil=experience_mil+$potential
WHERE team_id=$teamId";
break;
case "DEF";
$queryString="UPDATE teams
SET experience_def=experience_def+$potential
WHERE team_id=$teamId";
break;
case "GB";
$queryString="UPDATE teams
SET experience_gb=experience_gb+$potential
WHERE team_id=$teamId";
break;
}
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateTeam($team)\n\t{\n\t}",
"public function updateTeamToCertification($team);",
"function modify_team($teamname, $teamlead, $status) {\n\n $qUpdate = \"UPDATE authteam SET teamlead='$teamlead', status='$status'\n\n\t\t\t\t\t WHERE teamname='$teamname'\";\n\n $qUserStatus = \"UPDATE authuser SET status='$status' WHERE team='$teamname'\";\n\n\n\n if ($teamname == \"Admin\" AND $status == \"inactive\") {\n\n return \"Admin team cannot be inactivated.\";\n } elseif ($teamname == \"Ungrouped\" AND $status == \"inactive\") {\n\n return \"Ungrouped team cannot be inactivated.\";\n } else {\n\n $link = new mysqli($this->HOST, $this->USERNAME, $this->PASSWORD, $this->DBNAME);\n if ($link->connect_error) {\n die(\"Error al conectarse a la BD $dbname: \" . $mysqli->connect_error);\n }\n\n\n\n // UPDATE STATUS IF STATUS OF TEAM IS INACTIVATED\n // OLD CODE - DO NOT REMOVE\n //$userresult = mysql_db_query($this->DBNAME, $qUserStatus);\n // REVISED CODE\n\n $userresult = $link - query($qUserStatus);\n\n\n\n // OLD CODE - DO NOT REMOVE\n // $result = mysql_db_query($this->DBNAME, $qUpdate);\n // REVISED CODE\n\n $result = $link->query($qUpdate);\n\n\n\n return 1;\n }\n }",
"public function updateTeamToPendingCertification($team);",
"public function update_team_score(){\n\t\tif($this->authenticate_api()){\n\t\t\t\n\t\t\t$response = array( \"status\" => \"error\" );\n\t\t\t$response['message'] = \"Somthing Wrong\";\n $required_fields = array(\"match_id\");\n $status = $this->verifyRequiredParams($required_fields);\n\t\t\t$match_id= $this->request->getVar(\"match_id\");\n\t\t\t\n\t\t\tif($this->ifempty($match_id, \"match id\")!== true){\n $response['message'] = $this->ifempty($match_id, \"match id\");\n $this->sendResponse($response);\n }\n if($this->ifexists('tbl_tournament_match', $match_id, 'id') != true){\n $response['message'] = \"Please enter valid match id\";\n $this->sendResponse($response);\n }\t\t\t\n\t\t\tif($match_id){\t\t\t\t\n\t\t\t\t$match_tournament_team = $this->db->table('tbl_tournament_match')->where('id', $match_id)->get()->getRowArray();\n\t\t\t\tif($match_tournament_team){\n\t\t\t\t\t$team_id = $match_tournament_team['team_id'];\n\t\t\t\t\t$opponent_team_id = $match_tournament_team['opponent_team_id'];\n\t\t\t\t\t$match_end_status = $match_tournament_team['match_end_status'];\n\t\t\t\t\t$match_end_status_for_opponent_team = $match_tournament_team['match_end_status_for_opponent_team'];\n\t\t\t\t\tif($match_end_status == 1 && $match_end_status_for_opponent_team == 1){\n\t\t\t\t\t\t$where_match_team['match_id'] = $team_id;\n\t\t\t\t\t\t$where_match_opponent_team['match_id'] = $opponent_team_id;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team = $this->db->table('tbl_match_team')->where($where_match_team);\n\t\t\t\t\t\t$match_opponent_team = $this->db->table('tbl_match_team')->where($where_match_opponent_team);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team_goal = $this->db->query(\"SELECT SUM(g) as Total_g FROM tbl_match_team where match_id = \".$team_id)->getRowArray();\n\t\t\t\t\t\t$match_opponent_team_goal = $this->db->query(\"SELECT SUM(g) as Total_g FROM tbl_match_team where match_id = \".$opponent_team_id)->getRowArray();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team_goal['Total_g'] = $match_team_goal['Total_g'] ? $match_team_goal['Total_g'] : 0;\n\t\t\t\t\t\t$match_team_goal['Total_g'] = $match_opponent_team_goal['Total_g'] ? $match_opponent_team_goal['Total_g'] : 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($match_team_goal['Total_g'] > $match_opponent_team_goal['Total_g']){\n\t\t\t\t\t\t\t$winner_team_id = $team_id;\n\t\t\t\t\t\t}else if($match_team_goal['Total_g'] < $match_opponent_team_goal['Total_g']){\n\t\t\t\t\t\t\t$winner_team_id = $opponent_team_id;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$winner_team_id = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tbl_tournament_match_result_data['match_id'] = $match_id; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['team_id_score'] = $match_team_goal['Total_g']; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['opponent_team_id_score'] = $match_opponent_team_goal['Total_g']; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['winner_team_id'] = $winner_team_id;\n\t\t\t\t\t\t$response['status'] = \"success\";\n\t\t\t\t\t\t$table_name = 'tbl_tournament_match_result';\n\t\t\t\t\t\t$id = $match_id;\n\t\t\t\t\t\t$fild_to_check = 'match_id';\n\t\t\t\t\t\tif($this->ifexists($table_name,$id,$fild_to_check)){\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$response['message'] = \"Team score already Added\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$tbl_tournament_match_result = $this->db->table($table_name)->insert($tbl_tournament_match_result_data);\n\t\t\t\t\t\t\tif($tbl_tournament_match_result)\n\t\t\t\t\t\t\t\t$response['message'] = \"Team score Added Successfully\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t$this->sendResponse($response);\t\t\t\n\t\t\t\n\t\t}\n\t}",
"public function increaseTeamSecondaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET secondary_experience_att=secondary_experience_att+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET secondary_experience_mil=secondary_experience_mil+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET secondary_experience_def=secondary_experience_def+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET secondary_experience_gb=secondary_experience_gb+$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"public function short_update($roster_player_data, $team_id = false){\n if(isset($roster_player_data[\"playerId\"]) && $roster_player_data[\"playerId\"] > 0){\n $data = $GLOBALS[\"db_fi\"]->fetch_array($GLOBALS[\"db_fi\"]->query(\"SELECT * FROM esports_player WHERE player_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"playerId\"]).\"'\"));\n \n if(isset($data[\"id\"]) && $data[\"id\"] > 0){\n $sql = \"UPDATE esports_player SET \";\n $sql_type = \"update\";\n } else {\n $sql = \"INSERT INTO esports_player SET player_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"playerId\"]).\"', \";\n $sql_type = \"insert\";\n }\n \n $sql .= \"name = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"name\"]).\"'\";\n $sql .= \", role = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"role\"]).\"'\";\n $sql .= \", is_starter = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"isStarter\"]).\"'\";\n \n if($team_id != false){\n $sql .= \", team_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($team_id).\"'\";\n }\n \n if($sql_type == \"update\"){\n $sql .= \" WHERE id = '\".$data[\"id\"].\"'\";\n }\n $GLOBALS[\"db_fi\"]->query($sql);\n return true;\n }\n return false;\n }",
"public function updateTeamToUnCertification($team);",
"public function testUpdateValidTeam() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"team\");\n\n\t\t// Create a new team and insert into mySQL\n\t\t$team = new Team(null, $this->sport->getSportId(), $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);\n\t\t$team->insert($this->getPDO());\n\n\t\t// edit the Team and update it in mySQL\n\t\t$team->setTEAMAPIID($this->VALID_TEAMAPIID2);\n\t\t$team->setTEAMCITY($this->VALID_TEAMCITY2);\n\t\t$team->setTEAMNAME($this->VALID_TEAMNAME2);\n\t\t$team->update($this->getPDO());\n\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$pdoTeam = Team::getTeamByTeamId($this->getPDO(), $team->getTeamId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"team\"));\n\t\t$this->assertEquals($pdoTeam->getTeamSportId(), $this->sport->getSportId());\n\t\t$this->assertEquals($pdoTeam->getTeamApiId(), $this->VALID_TEAMAPIID2);\n\t\t$this->assertEquals($pdoTeam->getTeamCity(), $this->VALID_TEAMCITY2);\n\t\t$this->assertEquals($pdoTeam->getTeamName(), $this->VALID_TEAMNAME2);\n\t\t//$this->assertEquals($pdoTeam->getTeamSportId(), $this->VALID_TEAMSPORTID);\n\t}",
"public function testUpdateInvalidTeam() {\n\t\t// create a Team with a non null team id and watch it fail\n\t\t$team = new Team($this->sport->getSportId(), SprotsTest::INVALID_KEY, $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);\n\t\t$team->insert($this->getPDO());\n\t\t$team->update($this->getPDO());\n\t}",
"public function decreaseTeamPrimaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET experience_att=experience_att-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET experience_mil=experience_mil-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET experience_def=experience_def-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET experience_gb=experience_gb-$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"public function actionUpdate_team(){ // anoop 21-11-18\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('assign_team')) {\n return $this->redirect(['site/index']);\n } \n $model = new DvUsersRole(); \n if (Yii::$app->request->post()){\n $user_of_manager = array();\n if (isset($_POST['user_of_manager'])) {\n $user_of_manager = $_POST['user_of_manager'];\n }\n $manager_id = $_POST['manager'];\n $new_manager_id = $_POST['new_manager'];\n // get manager email\n $manager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$manager_id' AND status = 1 \")->queryAll();\n $manageremail = $manager_email[0]['email'];\n\n if (empty($new_manager_id) || $new_manager_id == 0) {\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '' WHERE meta_key = 'team' AND meta_value = '$manager_id' \")->execute();\n Yii::$app->session->setFlash('success', 'The Team for Manager with Email Address <u>' . $manageremail . '</u> is Successfully Removed.');\n } else {\n // get new manager email\n $Nmanager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$new_manager_id' AND status = 1 \")->queryAll();\n $Nmanageremail = $Nmanager_email[0]['email'];\n if (!empty($user_of_manager)) {\n $user_of_manager_str = implode(\",\", $user_of_manager);\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$new_manager_id' WHERE meta_key = 'team' AND meta_value = '$manager_id' AND uid IN($user_of_manager_str)\")->execute();\n Yii::$app->session->setFlash('success', 'The selected Managers are Successfully assigned to Manger with Email Address <u>' . $Nmanageremail . '</u>');\n } else {\n\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$new_manager_id' WHERE meta_key = 'team' AND meta_value = '$manager_id' \")->execute();\n Yii::$app->session->setFlash('success', 'The Team for Manager with Email Address <u>' . $manageremail . '</u> is Successfully assigned to Manger with Email Address <u>' . $Nmanageremail . '</u>');\n }\n }\n return $this->redirect(['dv-users/assign_team']);\n } else {\n\n return $this->render('assign_team', [ 'model' => $model]);\n }\n }",
"function ChangeRiderTeam($oDB, $riderID, $newRacingTeamID, $newCommutingTeamID)\n{\n $oldTeamInfo = GetRiderTeamInfo($oDB, $riderID);\n // build SQL to set new rider teams\n $updateCmds = \"SET CommutingTeamID=$newCommutingTeamID, RacingTeamID=$newRacingTeamID\";\n // remove admin rights when rider changes teams\n if($newRacingTeamID!=$oldTeamInfo['RacingTeamID'])\n {\n $updateCmds .= \", sRacingTeamAdmin=0\";\n }\n if($newCommutingTeamID!=$oldTeamInfo['CommutingTeamID'])\n {\n $updateCmds .= \", sCommutingTeamAdmin=0\";\n }\n // execute the commands to change teams\n $oDB->query(\"UPDATE rider $updateCmds WHERE RiderID=$riderID\");\n if($oDB->errno==0)\n {\n // Copy rider photo to new team if rider does not already have a photo for that team\n $existingPhoto = $oDB->DBCount(\"rider_photos\", \"RiderID=$riderID AND TeamID=$newRacingTeamID\");\n if($newRacingTeamID!=$oldTeamInfo['RacingTeamID'] && $existingPhoto==0)\n {\n $oDB->query(\"INSERT rider_photos (RiderID, TeamID, Picture, ActionPicture, LastModified)\n SELECT $riderID, $newRacingTeamID, Picture, ActionPicture, LastModified\n FROM rider_photos\n WHERE RiderID=$riderID AND TeamID={$oldTeamInfo['RacingTeamID']}\");\n }\n }\n // Build response array\n if($oDB->errno!=0)\n {\n $result['success'] = false;\n $result['message'] = \"[\" . $oDB->errno . \"] SQL Error\";// . $oDB->error;\n // --- needed so Ext returns failureType of 'server' (FYI: could also be used to do server-side field validation)\n $result['errors'][] = array('id' => 'CtrlID', 'msg' => 'Error Msg' );\n }\n else\n {\n $result['success'] = true;\n }\n return($result);\n}",
"public function assignUpdateTeam($input,$id){\n\t\t$getAssignTeam = $this->getAssignTeam($id);\n\t\tif(!empty($getAssignTeam)){\n\t\t\t$updateId = DB::table('assign_team')->where('member_id', $id)->update(['team_id' => $input, 'member_id' => $id]);\n\t\t}else{\n\t\t\t$updateId = DB::table('assign_team')->insert(['team_id' => $input, 'member_id' => $id]);\n\t\t}\n\t\treturn true;\n\t\n\t}",
"function wieting_change_one_volunteer_action( $object, $context ) {\n global $user;\n if ( !array_key_exists( 3, $user->roles )) {\n drupal_set_message( t( 'Only a mangaer can change a volunteer assignment!' ));\n return;\n }\n\n static $objects = array( ); // array must be static to persist between rows (calls)\n\n array_push( $objects, $object );\n $count = count( $objects );\n\n /*\n print '<pre>';\n print 'The $object is: ';\n McFate_Dump( $object );\n print 'The $context is: ';\n McFate_Dump( $context );\n print 'Count of $objects is now ' . $count = count( $objects );\n print '</pre>';\n */\n\n // If exactly one performance was selected...proceed.\n\n if ( $count === 1 ) {\n $args = $objects[0]->field_performance_manager[0]['uid'].'/';\n $args .= $objects[0]->field_performance_ticket_seller[0]['uid'].'/';\n for ( $i=0; $i<4; $i++ ) {\n if ( $m = $objects[0]->field_performance_monitors[$i]['uid'] ) { $args .= $m.'/'; }\n if ( $c = $objects[0]->field_performance_concessions[$i]['uid'] ) { $args .= $c.'/'; }\n }\n $path = 'performance_team_vbo/'.$args;\n unset( $objects );\n drupal_goto( $path ); // Invoke the form.\n }\n\n return;\n}",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange(0));\n }",
"public function test_squad_server_admin_force_team_change()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange('Test'));\n }",
"public function decreaseTeamSecondaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET secondary_experience_att=secondary_experience_att-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET secondary_experience_mil=secondary_experience_mil-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET secondary_experience_def=secondary_experience_def-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET secondary_experience_gb=secondary_experience_gb-$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"function update_tournament_player($params,$team_id)\n {\n $this->db->where('tournament_players_id',$tournament_players_id);\n return $this->db->update('tournament_players',$params);\n }",
"public function updateVolunteer()\n {\n \t// database connection and sql query to update volunteer\n \t$core = Core::dbOpen();\n\t\t\t\t\n\t\tif( $this->volunteerID == 0 ) { // add volunteer\n\t\t\t$sql = \"INSERT INTO volunteer ( programID, firstName, lastName, phone, email, active )\n\t\t\t\t\t\t\tVALUES (:programID, :firstName, :lastName, :phone, :email, :active)\";\n\t\t\n\t\t} else { // update volunteer\n\t\t\t$sql = \"UPDATE volunteer SET firstName = :firstName, lastName = :lastName, phone = :phone, email = :email, active = :active\n\t\t\t\t\t\t\tWHERE volunteerID = :id\";\n\t\t}\n\t\t\n \t$stmt = $core->dbh->prepare($sql);\n \t\n\t\tif( $this->volunteerID == 0 ) { \n\t\t\t$stmt->bindParam(':programID', $this->programID); \n\t\t} else { \n\t\t\t$stmt->bindParam(':id', $this->volunteerID); \n\t\t}\n\t\t\n\t\t$stmt->bindParam(':firstName', $this->firstName);\n \t$stmt->bindParam(':lastName', $this->lastName);\n \t$stmt->bindParam(':phone', $this->phone);\n \t$stmt->bindParam(':email', $this->email);\n \t$stmt->bindParam(':active', $this->active);\n \tCore::dbClose();\n \t\n \t// execute stmt\n \ttry\n \t{\n \t\tif( $stmt->execute() )\n\t\t\t{\n\t\t\t\tif( $this->volunteerID == 0 )\n\t\t\t\t\t $this->volunteerID = $core->dbh->lastInsertId(); \n\t\t\t}\n \t}\n \tcatch (PDOException $e )\n \t{\n \t\techo \"Update volunteer failed\";\n \t}\n\t\t\n\t\t// clear previous volunteer positions\n\t\t$this->clearPositions();\n \t\n \t// add positions\n \tif($this->positions != null)\n {\n \t\t$core = Core::dbOpen();\n \t\t$sql = \"INSERT INTO volunteer_position (volunteerID, positionID) VALUES (:volunteerID, :positionID)\";\n \t\t$stmt = $core->dbh->prepare($sql);\n \t\t\n \tforeach ( $this->positions as $value )\n \t{\n \t\t$stmt->bindParam(':volunteerID', $this->volunteerID);\n \t\t$stmt->bindParam(':positionID', $value);\n \t\t\n \t\t\ttry {\n \t\t\t\t$stmt->execute();\n \t\t\t} catch( PDOException $e ) {\n \t\t\techo \"Add volunteer positons Failed!\";\n \t\t\t}\n \t\t}\n \t\t\n \t\tCore::dbClose();\n }\n\n \treturn false;\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"protected function updateTeamStats()\n {\n $conditions = array('stats.needs_update' => true);\n $fields = array('league_id');\n $teams_needing_update = Teams::all(compact('conditions', 'fields'));\n\n $team_id_list = array();\n $team_stats = array();\n foreach ($teams_needing_update as $team) {\n $team_id_list[] = $team->_id;\n $team_stats[(string)$team->_id] = array(\n 'wins' => 0,\n 'losses' => 0,\n 'point_differential' => 0\n );\n }\n\n // Grab all of the games that apply to these teams, standings should be re-calced from the ground up.\n $conditions = array('teams' => array('$in' => $team_id_list), 'scores' => array('$exists' => true), 'winner' => array('$ne' => null));\n $fields = array('scores', 'winner', 'teams', 'league_id');\n $relevant_games_list = Games::all(compact('conditions', 'fields'));\n\n $league_list = array();\n foreach ($relevant_games_list as $game) {\n // Calculate stats for each team\n foreach ($game->getTeams() as $t) {\n $team_id = (string)$t->_id;\n if (!isset($team_stats[$team_id])) {\n // If we didn't pull all of this team's games, do not update their stats. \n continue;\n }\n\n if ($t->_id == $game->winner) {\n $team_stats[$team_id]['wins']++;\n $team_stats[$team_id]['point_differential'] += $game->getScoreDiff();\n } else {\n $team_stats[$team_id]['losses']++;\n $team_stats[$team_id]['point_differential'] -= $game->getScoreDiff();\n }\n }\n\n // Make sure we have a list of all of the leagues being updated\n $league_list[] = $game->league_id;\n }\n\n // Do the team stats updates:\n foreach ($team_stats as $team_id => $stats) {\n $conditions = array('_id' => new \\MongoId($team_id));\n $query = array('$set' => array('stats' => $stats));\n Teams::update($query, $conditions);\n }\n\n // Mark leagues as needing an update\n $league_list = array_unique($league_list);\n $conditions = array('_id' => array('$in' => $league_list));\n $query = array('$set' => array('needs_standings_update' => true));\n Leagues::update($query, $conditions); \n }",
"function updateLeagueUser(\n $league_id,\n $user_id,\n $player_name,\n $paid,\n $join_date,\n $active_status,\n &$ref_status_text = '' // notunique, emailnotvalid, \n){\n\n writeDataToFile(\"\n 'league_id, ' $league_id,\n 'user_id, ' $user_id,\n 'player_name, ' $player_name,\n 'paid, ' $paid,\n 'join_date, ' $join_date,\n 'active_status' $active_status,\", __FILE__, __LINE__);\n\n $mysql_update = \"\n UPDATE nspx_leagueplayer \n SET playername = ?,\n active = ?,\n paid = ?,\n joindate = ?\n WHERE userid = ?\n AND leagueid = ?\n LIMIT 1\";\n \n $status = 0;\n $ref_status_text = '';\n $update_count = '';\n while (1) {\n \n if (!($paid == 1 || $paid == 2)) {\n $ref_status_text = 'paidoneortwo';\n break;\n }\n if (!($active_status == 1 || $active_status == 2)) {\n $ref_status_text = 'activeoneortwo';\n break;\n }\n writeDataToFile(\"11 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n \n $driver = new mysqli_driver();\n $driver->report_mode = MYSQLI_REPORT_OFF;\n \n try {\n $conn = db_connect();\n $sth = $conn->prepare($mysql_update);\n $sth->bind_param(\"siisii\",\n $player_name,\n $active_status,\n $paid,\n $join_date,\n $user_id,\n $league_id); \n \n writeDataToFile(\"22 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n if (!$sth->execute()) {\n $ref_status_text = 'updatefail';\n break;\n }\n $sth->store_result();\n $update_count = $sth->affected_rows;\n writeDataToFile(\" the return count is $update_count\", __FILE__, __LINE__);\n if ($update_count === 0) {\n $ref_status_text = 'updatenorows';\n $status = 1;\n break;\n }\n } catch (mysqli_sql_exception $e) {\n $ermsg = \"updateUser() \\n\" .\n 'sql: ' . $mysql_update . \"\\n\\n\" .\n '$league_id = ' . $league_id . \", \\n\" .\n '$player_name = ' . $player_name . \", \\n\" .\n '$user_id = ' . $user_id . \", \\n\" .\n '$active_status = ' . $active_status . \", \\n\" .\n 'MYSQL ERROR TO STRING: ' . $e->__toString();\n writeDataToFile($ermsg, __FILE__, __LINE__);\n $ref_status_text = 'dberror';\n break;\n }\n $status = 1;\n break;\n }\n writeDataToFile(\"33 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n @ $sth->close();\n return $status;\n}",
"function update()\n {\n\n $query = \"UPDATE Proposal set \";\n $query = $query . \"LastEditDate=NOW()\";\n if(isset($this->BidderID))\n {\n $query = $query . \", OpportunityID = '\" . $this->OpportunityID . \"'\"; \n }\n\n if(isset($this->BidderID))\n {\n $query = $query . \", BidderID = '\" . $this->BidderID . \"'\"; \n }\n\n if(isset($this->Status))\n {\n $query = $query . \", Status = \" . $this->Status . \"\"; \n }\n\n if(isset($this->TechnicalScore))\n {\n $query = $query . \", TechnicalScore = \" . $this->TechnicalScore . \" \"; \n }\n\n if(isset($this->FeeScore))\n {\n $query = $query . \", FeeScore = \" . $this->FeeScore . \" \"; \n }\n\n if(isset($this->FinalTotalScore))\n {\n $query = $query . \", FinalTotalScore = \" . $this->FinalTotalScore . \" \"; \n }\n\n if(isset($this->ContractAwarded))\n {\n $query = $query . \", ContractAwarded = \" . $this->ContractAwarded . \" \"; \n }\n\n $query = $query . \" WHERE ProposalID = '\" . $this->ProposalID . \"';\";\n\n $stmt = $this->conn->prepare( $query );\n\n // bind parameters\n //$stmt->bindParam(':ProposalID', $this->ProposalID);\n //$stmt->bindParam(':OpportunityID', $this->OpportunityID);\n //$stmt->bindParam(':BidderID', $this->BidderID);\n //$stmt->bindParam(':Status', $this->Status);\n //$stmt->bindParam(':TechnicalScore', $this->TechnicalScore);\n // $stmt->bindParam(':FeeScore', $this->FeeScore);\n //$stmt->bindParam(':FinalTotalScore', $this->FinalTotalScore);\n\n if($stmt->execute())\n return true;\n else\n return false;\n }",
"function updateTeamDetails($TeamID, $Input = array())\n {\n $UpdateArray = array_filter(array(\n 'TeamFlag' => @$Input['TeamFlag'],\n 'TeamName' => @$Input['TeamName'],\n 'TeamNameShort' => @$Input['TeamNameShort']\n ));\n if (!empty($UpdateArray)) {\n $this->db->where('TeamID', $TeamID);\n $this->db->limit(1);\n $this->db->update('sports_teams', $UpdateArray);\n\n /* Edit Into MongoDB */\n mongoDBConnection();\n $this->fantasydb->sports_teams->updateOne(\n ['_id' => $Input['TeamGUID']],\n ['$set' => array_filter(array('TeamID' => (int) $TeamID,'TeamFlag' => @$UpdateArray['TeamFlag'],'TeamName' => @$UpdateArray['TeamName'],'TeamNameShort' => @$UpdateArray['TeamNameShort']))],\n ['upsert' => true]\n );\n }\n return TRUE;\n }",
"function guidoleen_post_team($postid, $postval)\n{\n\tif( $postval->post_type == 'post_team' )\n\t{\n // Functie member\n\t\tif( isset($_POST['team_function']))\n\t\t{\n\t\t\tupdate_post_meta($postid, 'team_function', $_POST['team_function'] );\n }\n \n // Email member\n\t\tif( isset($_POST['team_email']))\n\t\t{\n\t\t\tupdate_post_meta($postid, 'team_email', $_POST['team_email'] );\n\t\t}\n\t}\n}",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->btwServer->adminForceTeamChange(0));\n }",
"public function update($data)\n {\n $this->db->where('id',$data['id']);\n return $this->db->update('team',$data);\n }",
"public function testUpdateChallenge()\n {\n }",
"public function testUpdateVendorComplianceSurvey()\n {\n }",
"public function test_squad_server_admin_force_team_change()\n {\n $this->assertTrue($this->btwServer->adminForceTeamChange('Test'));\n }",
"public function quickEdit() {\n if ($this->request->is('post')) {\n $rq_data = $this->request->data;\n $type = $rq_data['type'];\n\n if ($type == 2) {\n $ids = $rq_data['id'];\n $input = $rq_data['input'];\n $now = date('Y-m-d H:i:s');\n if ($this->Team->updateAll(array('name' => \"'$input'\", 'cdate' => \"'$now'\"), array('Team.id' => $ids))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 3) {\n $id = $rq_data['id'];\n $input = $rq_data['input'];\n $cr_data = $rq_data['cr_data'];\n $cr_date = date('Y-m-d H:i:s');\n// $this->Management->query(\"UPDATE management SET team_id = {$id}, update_date = '{$cr_date}' WHERE id = {$input}\");\n\n if ($this->Management->updateAll(array('team_id' => $id, 'update_date' => \"'{$cr_date}'\"), array('id' => $input))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 5) {\n $id = $rq_data['id'];\n $input = $rq_data['input'];\n if ($this->Team->save(array('id' => $id, 'code' => $input))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 6) {\n $ids = $rq_data['ids'];\n foreach ($ids as $v_id) {\n $visible = $this->Team->find('first', array(\n 'conditions' => array('id' => $v_id),\n 'fields' => array('valid')\n ));\n $status = ($visible['Team']['valid'] == 1) ? 0 : 1;\n\n if ($this->Team->save(array('id' => $v_id, 'valid' => $status))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n }\n }\n\n echo json_encode(1);\n exit;\n }\n }",
"function editTeamScore($teamId, $points, $cause){\r\n //$GLOBALS['GLOBALS['link']'] = connect();\r\n mysqli_query($GLOBALS['link'], 'update teams set `score`=`score` + '. $points .' where `id`='. $teamId .';');\r\n\r\n return mysqli_affected_rows($GLOBALS['link']);\r\n}",
"public function testUpdateChallengeActivity()\n {\n }",
"public function update(Request $request,Project $project, ScrumTeam $scrumTeam)\n {\n //\n }",
"function updateUsersTeam($teamIds, $user)\n{\n global $db;\n try {\n $teams = \"DELETE FROM team_users \n WHERE user_id = '\". $user .\"'\";\n \n $statement = $db->prepare($teams);\n $statement->execute(); \n addUsersTeams($teamIds,$user);\n } catch (Exception $exception) {\n throw new Exception($exception->getMessage());\n } \n}",
"function updateGameDetails( $dbData, $tournamentID ) {\n\n/* ... write the update back to the DB */\n $this->db->where( 'TournamentID', $tournamentID );\n $this->db->update( 'Tournament', $dbData );\n\n/* ... time to go */\n return;\n }",
"function updateTeams($players, $json) {\n\n\tunset($teams);\n\t$teams = array( 'won' => array(), 'lost' => array() );\n\tforeach ($players as $player) {\n\t\tif ($player['state'] == 'Won') {\n\t\t\tarray_push($teams['won'], $player['id']);\n\t\t} else {\n\t\t\tarray_push($teams['lost'], $player['id']);\n\t\t}\n\t}\n\t\n\t//updateWinnerTeam($teams['won']);\n\tunset($jsonteam);\n\tforeach ($json['teams'] as &$jsonteam) {\n\t\t$foundteam = 0;\n\t\t\n\t\tforeach ($jsonteam['players'] as $jsonplayer) {\n\t\t\tforeach ($teams['won'] as $thisplayer) {\n\t\t\t\tif ($jsonplayer['token'] == $thisplayer) $foundteam++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($foundteam == 3) {\n\t\t\techo 'updating team with win<br>';\n\t\t\t$jsonteam['wins']++;\n\t\t\t$jsonteam['rating']++;\n\t\t\t//$jsonteam['pendinggames']--;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t//updateLosingTeam($teams['lost']);\n\tunset($jsonteam);\n\tforeach ($json['teams'] as &$jsonteam) {\n\t\t$foundteam = 0;\n\t\t\n\t\tforeach ($jsonteam['players'] as $jsonplayer) {\n\t\t\tforeach ($teams['lost'] as $thisplayer) {\n\t\t\t\tif ($jsonplayer['token'] == $thisplayer) $foundteam++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($foundteam == 3) {\n\t\t\techo 'updating team with win<br>';\n\t\t\t$jsonteam['losses']++;\n\t\t\t$jsonteam['rating']--;\n\t\t\t//$jsonteam['pendinggames']--;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn true;\n}",
"public function testUpdateSiteMembership()\n {\n }",
"public function testUpdateSurvey0()\n {\n }",
"public function testUpdateSurvey0()\n {\n }",
"public function update(Request $request, Teamrequest $teamrequest)\n {\n //\n }",
"public function testUpdateSuperfund()\n {\n }",
"function update_teammember($TeamMemberId,$params)\n {\n $this->db->where('TeamMemberId',$TeamMemberId);\n return $this->db->update('TeamMember',$params);\n }",
"public function update() {\n\t\tTournamentDBClient::update($this);\n\t}",
"public function update(Request $request)\n {\n $match = Match::where('id', $request->match_id)->first();\n $match->host_team_result = $request->host_goals;\n $match->guest_team_result = $request->guest_goals;\n\n\n// //update host team standings\n $host_team_standings = Standing::where('team_id', $match->host_team_id)->first();\n $host_team_standings->gp += 1;\n//\n// //update guest team standings\n $guest_team_standings = Standing::where('team_id', $match->guest_team_id)->first();\n $guest_team_standings->gp += 1;\n\n// //update win results\n if ($request->host_goals > $request->guest_goals) {\n $host_team_standings->w += 1;\n $host_team_standings->pts += 3;\n $guest_team_standings->l += 1;\n $guest_team_standings->pts += 1;\n } else if ($request->host_goals < $request->guest_goals)\n {\n\n $host_team_standings->l += 1;\n $host_team_standings->pts += 1;\n $guest_team_standings->w += 1;\n $guest_team_standings->pts += 3;\n } else if ($request->host_goals == $request->guest_goals)\n {\n $host_team_standings->d += 1;\n $guest_team_standings->d += 1;\n }\n $host_team_standings->save();\n $guest_team_standings->save();\n $match->save();\n\n return response()->json(['success'=> \"Results updated\"]);\n }",
"public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }",
"public function testUpdateChallengeTemplate()\n {\n }",
"function myPear_update26(){\n \n if (myPear_db()->tableExists('zzz_organizations')){\n if (myPear_db()->columnExists('org_nickname','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` CHANGE `org_nickname` `org_code` VARCHAR(32) NULL\",1);\n myPear_db()->reset_cache();\n }\n \n if (!myPear_db()->columnExists('org_name_short','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` ADD `org_name_short` VARCHAR(32) NOT NULL AFTER `org_name`\",1);\n myPear_db()->reset_cache();\n foreach(array('an' => 'AlbaNova',\n\t\t 'nordita'=> 'Nordita',\n\t\t 'fysikum'=> 'Fysikum',\n\t\t 'kth' => 'KTH',\n\t\t 'okc' => 'OKC',\n\t\t 'vh' => 'Vetenskapenshus',\n\t\t 'gu' => 'GU',\n\t\t ) as $org_code=>$org_name_short){\n\tmyPear_db()->qquery(\"UPDATE `zzz_organizations` SET org_name_short='$org_name_short' WHERE org_code='$org_code'\",1);\n\t\n }\n }\n }\n}",
"function renameteam() {\n $this->auth(COMP_ADM_LEVEL);\n $team_id = $this->uri->segment(3);\n $new_name = urldecode($this->uri->segment(4));\n $data['team'] = $this->m_team->updateName($team_id, $new_name);\n $this->teamedit();\n }",
"public function testUpdatePayrun()\n {\n }",
"function update_player_league($playerID, $leagueID, $player) {\r\n\tforeach($player as $key => $value){\r\n\t\t$values[] = array(\"col\" => $key, \"value\" => $value);\r\n\t}\r\n\t$cond[]= array(\"col\" => \"playerID\", \"value\" => $playerID);\r\n\t$cond[]= array(\"col\" => \"leagueID\", \"value\" => $leagueID);\r\n\r\n\t//print_r($cond);\r\n\t$ID = uli_update_record('player_league', $cond, $values);\r\n\tif ($ID){return TRUE;}\r\n\telse {return FALSE;}\r\n}",
"function addBonusMalusToTeam($teamId, $cause){\r\n //log or other action before editing player's score\r\n //$GLOBALS['link'] = connect();\r\n\t\r\n\tmysqli_query($GLOBALS['link'], 'insert into specialteamlog(causeId, teamId, scoreImpact) VALUES ('.$cause['id'].', '.$teamId.', '.$cause['value'].');') or die(mysqli_error($GLOBALS['link']));\r\n return mysqli_affected_rows($GLOBALS['link']);\r\n}",
"public function testUpdateSiteMembershipRequestForPerson()\n {\n }",
"public function edit_team($team_id) \n {\n $tm = $this->CreateTeamModel->view_team_details($team_id);\n \n //validate form input\n \n $this->form_validation->set_rules('name', 'Team Name', 'trim|required|alpha_numeric');\n $this->form_validation->set_rules('scrum', 'scrum', 'required|callback_check_if_scrum_master_selected');\n\t if (isset($_POST) && !empty($_POST)) {\t\n \n\t\t$data = array(\n 'name' => $this->input->post('name'),\n 'scrum_master' => $this->input->post('scrum'),\n \n );\n \n if ($this->form_validation->run() == false) {\n } else {\n if ($this->CreateTeamModel->update_team($team_id, $data)) {\n// if($this->input->post('project')!= 0){\n if($this->CreateTeamModel->insert_team($team_id)) {\n } \n// }\n echo '<script>alert(\"Team has been updated successfully!\");</script>';\n }else{\n echo '<script>alert(\"Team updation failed!\");</script>';\n }\n }\n \n $this->data['tm'] = $tm;\n\n $name = array(\n\t\t'name' \t=> 'name',\n\t\t'id' \t=> 'name',\n\t\t'type' \t=> 'text',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('name', $tm['name'])\n );\n $this->data['scrum_master'] = array(\n 'name' \t=> 'scrum',\n\t\t'id' \t=> 'scrum',\n\t\t'type' \t=> 'select',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('scrum', $tm['scrum_master'])\n );\n $project_id = $this->CreateTeamModel->get_project($team_id);\n $this->data['project'] = array(\n 'name' \t=> 'project',\n\t\t'id' \t=> 'project',\n\t\t'type' \t=> 'select',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('project', $project_id['project_id'])\n );\n \n $member = $this->CreateTeamModel->view_team_details($team_id);\n $team_member = $this->CreateTeamModel->view_team_members($team_id);\n $team= $this->CreateTeamModel->load_team_members($team_id);\n $developer= $this->CreateTeamModel->get_developers();\n $project = $this->CreateTeamModel->load_projects($team_id);\n $this->load->view('add_members_view',compact(\"member\",\"team_member\",\"team\",\"developer\",\"project\",\"project_id\",\"name\"));\n \n }\n \n }",
"public function testUpdateChallengeActivityTemplate()\n {\n }",
"public function update(Request $request, $teamId, $gameId)\n {\n \n }",
"public function updateUrgencyStatuses() {\n\n\n $deadlineOverdue = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.OVERDUE_DAYS') . ' days'));\n $overdueTickets = $this->getPendingTicketsByAge($deadlineOverdue);\n\n foreach ($overdueTickets as $i => $overdueTicket) {\n\n $this->id = $overdueTicket['Ticket']['ticket_id'];\n $overdueTicket['Ticket']['status'] = 'Overdue';\n $this->save($overdueTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n\n $deadlineUrgend = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.URGEND_DAYS') . ' days'));\n $urgendTickets = $this->getPendingTicketsByAge($deadlineUrgend, array('New', 'Requested'));\n\n foreach ($urgendTickets as $i => $urgendTicket) {\n\n $this->id = $urgendTicket['Ticket']['ticket_id'];\n $urgendTicket['Ticket']['status'] = 'Urgend';\n $this->save($urgendTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n }",
"public function actionAssign_team() { // update by anoop 21-11-18\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('assign_team')) {\n return $this->redirect(['site/index']);\n }\n $model = new DvUsersRole(); \n if (Yii::$app->request->post()) {\n $dep_id = $_POST['DvUsersTeam']['dep_id'];\n $team_manager = $_POST['team_manager'];\n $useremail = $_POST['DvUsersTeam']['user_email'];\n $user_email = trim($useremail);\n // get user id\n $userid = Yii::$app->db->createCommand(\"SELECT assist_users.id as id FROM assist_users \n JOIN assist_user_meta on assist_user_meta.uid = assist_users.id WHERE email = '$user_email' AND department = '$dep_id' \n AND assist_user_meta.meta_key= 'role' AND assist_user_meta.meta_value <> 7 AND assist_users.status = 1 \")->queryAll();\n if (!empty($userid)) {\n $user_id = $userid[0]['id'];\n // get manager email\n $manager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$team_manager' AND status = 1 \")->queryAll();\n $manageremail = $manager_email[0]['email']; //var_dump($user_id); die();\n\n $result = Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$team_manager' WHERE meta_key = 'team' AND uid = '$user_id' AND meta_value = ''\")->execute();\n }\n\n\n if (isset($result) && $result == 1) {\n Yii::$app->session->setFlash('success', 'User with Email Address <u>' . $useremail . '</u> Successfully Assigned to Manger with Email Address <u>' . $manageremail . '</u>');\n } else {\n Yii::$app->session->setFlash('danger', 'User with Email Address <u>' . $useremail . '</u> is already assiged to other Manger.</u>');\n }\n return $this->redirect(['dv-users/assign_team']);\n } else {\n return $this->render('assign_team', [ 'model' => $model]);\n }\n }",
"public function assignTeam($input,$id){\n\t\t\n\t\t$updateId = DB::table('assign_team')->insert(['team_id' => $input, 'member_id' => $id]);\n\t\treturn true;\n\t\n\t}",
"public function editTeam($id)\n {\n $sql6=\"SELECT * FROM Team WHERE tid=$id\";\n $result=mysqli_query($this->db,$sql6);\n while($row=mysqli_fetch_array($result))\n {\n $tid=$row['tid'];\n $tname=$row['tname'];\n $tdescription=$row['tdescription'];\n $tcompetition=$row['tcompetition'];\n $tstatus=$row['tstatus'];\n echo \"\n <kbd style='font-size:20px;'>Team Update</kbd><br>\n <div class='col-md-10'>\n <table class='table table-condensed'>\n <form action='editdelete.php?q=team&id=$tid&ac=edit' method='POST'>\n <tr><td colspan='2' >TEAM UPDATE</td></tr>\n <input type='hidden' name='tid' value=$tid>\n <tr><td>Team name :</td><td><input type='text' placeholder='Team name' name='tname' value='$tname'></td></tr>\n <tr><td>Team description :</td><td><textarea placeholder='Description' name='tdescription' style='width:100%;' rows='8' >\".$row['tdescription'].\"</textarea></td></tr>\n <tr><td>Competition :</td><td><textarea placeholder='Competition' style='width:100%;' rows='10' name='tcompetition' >\".$row['tcompetition'].\"</textarea></td></tr>\n <tr><td>Status :</td><td><input type='text' placeholder='Status' name='tstatus' value=$tstatus></td></tr>\n <tr><td colspan='2'><input type='submit' value='Update' class='btn btn-primary '></td></tr>\n </form>\n </table></div>\";\n }\n }",
"public function testUpdateExternalShipment()\n {\n }",
"public function update(Request $request, team $team)\n {\n\n $team->update([\n 'name' => request('name'),\n 'race' => request('race'),\n 'userid' => \\Auth::user()->id,\n 'reroll' => request('reroll'),\n 'rerollValue' => request('rerollValue'),\n 'fanfactor' => request('fanfactor'),\n 'assistantCoach' => request('assistantCoach'),\n 'cheerleader' => request('cheerleader'),\n 'apothecary' => request('apothecary'),\n 'teamValue'=> request('teamValue'),\n 'treasury' => request('treasury')\n ]);\n\n return redirect('/team');\n }",
"public function editUserTeam_post() {\n /* Validation section */\n $this->form_validation->set_rules('SessionKey', 'SessionKey', 'trim|required|callback_validateSession');\n $this->form_validation->set_rules('SeriesGUID', 'SeriesGUID', 'trim|required|callback_validateEntityGUID[Series,SeriesID]');\n $this->form_validation->set_rules('MatchGUID', 'MatchGUID', 'trim|required|callback_validateEntityGUID[Matches,MatchID]');\n $this->form_validation->set_rules('UserTeamGUID', 'UserTeamGUID', 'trim|required|callback_validateEntityGUID[User Teams,UserTeamID]');\n $this->form_validation->set_rules('UserTeamType', 'UserTeamType', 'trim|required|in_list[Draft]');\n $this->form_validation->set_rules('UserTeamName', 'UserTeamName', 'trim');\n $this->form_validation->set_rules('UserTeamPlayers', 'UserTeamPlayers', 'trim');\n\n $this->form_validation->validation($this); /* Run validation */\n /* Validation - ends */\n\n if (!$this->SnakeDrafts_model->editUserTeam(array_merge($this->Post, array('SeriesID' => $this->SeriesID)), $this->UserTeamID, $this->MatchID)) {\n $this->Return['ResponseCode'] = 500;\n $this->Return['Message'] = \"An error occurred, please try again later.\";\n } else {\n $this->Return['Message'] = \"Team updated successfully.\";\n }\n }",
"function setTeam($s)\n\t{\n\t\t$this->Info['Team'] = $s;\n\t\tupdateTableByUser('Developer', 'Team', $s, $this->Username);\n\t}",
"public function update_opportunity() {\n\t\tif($this->session->userdata('uid')){\n\t\t\ttry {\n\t\t\t\t$given_data = array(\n\t\t\t\t\t'files' \t\t=> $_FILES,\n\t\t\t\t\t'stage_closed_date' => $this->input->post('stage_closed_date'),\n\t\t\t\t\t'stage_value' \t=> $this->input->post('stage_value'),\n\t\t\t\t\t'stage_numbers' => $this->input->post('stage_numbers'),\n\t\t\t\t\t'stage_rate'\t=> $this->input->post('stage_rate'),\n\t\t\t\t\t'stage_score'\t=> $this->input->post('stage_score'),\n\t\t\t\t\t'stage_customer_code'=>$this->input->post('stage_customer_code'),\n\t\t\t\t\t'stage_priority'=> $this->input->post('stage_priority'),\n\t\t\t\t\t'stage_remarks' => $this->input->post('stage_remarks'),\n\t\t\t\t\t'opportunity_id'=> $this->input->post('opportunity_id'),\n\t\t\t\t\t'lead_cust_id' \t=> $this->input->post('lead_cust_id'),\n\t\t\t\t\t'stage_id' \t\t=> $this->input->post('stage_id'),\n\t\t\t\t\t'cycle_id' \t\t=> $this->input->post('cycle_id'),\n\t\t\t\t\t'sell_type' \t=> $this->input->post('sell_type'),\n\t\t\t\t\t'mapping_id'\t=> uniqid(rand()),\n\t\t\t\t\t'user_id'\t\t=> $this->session->userdata('uid'),\n\t\t\t\t\t'contact_list'\t=> $this->input->post('contact_list')\n\t\t\t\t);\n\t\t\t\tif (($given_data['stage_closed_date'] == '0000-00-00') || ($given_data['stage_closed_date'] == '')) {\n\t\t\t\t\t$given_data['stage_closed_date'] = null;\n\t\t\t\t}\n\t\t\t\t$upload = $this->upload_file($given_data);\n\t\t\t\tif ($upload == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n $opp_data= $this->opp_sales->stage_owner($given_data['opportunity_id']); // gets all data from opportunity details\n $stage_manager_owner_id=$opp_data[0]->stage_manager_owner_id;\n\t\t\t\t$log_attr_data = array(\n\t\t\t\t\t'mapping_id' => $given_data['mapping_id'],\n\t\t\t\t\t'opportunity_id'=> $given_data['opportunity_id'],\n\t\t\t\t\t'stage_id'=> $given_data['stage_id'],\n\t\t\t\t\t'user_id'=> $given_data['user_id'],\n 'opp_numbers'=>$stage_manager_owner_id,\n\t\t\t\t\t'opp_close_date'=> $given_data['stage_closed_date'],\n\t\t\t\t\t'oppo_rate' => $given_data['stage_rate'],\n\t\t\t\t\t'oppo_score' => $given_data['stage_score'],\n\t\t\t\t\t'oppo_customer_code' => $given_data['stage_customer_code'],\n\t\t\t\t\t'oppo_priority' => $given_data['stage_priority'],\n\t\t\t\t\t'timestamp'=> date('Y-m-d H:i:s'),\n\t\t\t\t\t'remarks'=> $given_data['stage_remarks']\n\t\t\t\t);\n\t\t\t\t$this->opp_common->log_attr($log_attr_data);\n\n\n\t\t\t\t$oppo_attr = $this->opp_common->fetch_oppoAttr($given_data['opportunity_id']);\n\t\t\t\tif ($oppo_attr == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t$changed_attr = array();\n\t\t\t\t/*if ($oppo_attr[0]->numbers != $given_data['stage_numbers']) {\n\t\t\t\t\t$changed_attr['opportunity_numbers'] = $given_data['stage_numbers'];\n\t\t\t\t}*/\n\t\t\t\tif ($oppo_attr[0]->close_date != $given_data['stage_closed_date']) {\n\t\t\t\t\t$changed_attr['opportunity_date'] = $given_data['stage_closed_date'];\n\t\t\t\t}\n\t\t\t /*\tif ($oppo_attr[0]->value != $given_data['stage_value']) {\n\t\t\t\t\t$changed_attr['opportunity_value'] = $given_data['stage_value'];\n\t\t\t\t}*/\n\t\t\t\tif ($oppo_attr[0]->rate != $given_data['stage_rate']) {\n\t\t\t\t\t$changed_attr['opportunity_rate'] = $given_data['stage_rate'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->score != $given_data['stage_score']) {\n\t\t\t\t\t$changed_attr['opportunity_score'] = $given_data['stage_score'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->customer_code != $given_data['stage_customer_code']) {\n\t\t\t\t\t$changed_attr['opportunity_customer_code'] = $given_data['stage_customer_code'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->priority != $given_data['stage_priority']) {\n\t\t\t\t\t$changed_attr['opportunity_priority'] = $given_data['stage_priority'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->stage != $given_data['stage_id']) {\n\t\t\t\t\t$changed_attr['opportunity_stage'] = $given_data['stage_id'];\n\t\t\t\t}\n\t\t\t\t$this->opp_common->updateOpportunity($changed_attr, $given_data['opportunity_id']);\n\n\t\t\t\t$log_trans_data = array(\n\t\t\t\t\t'mapping_id' => $given_data['mapping_id'],\n\t\t\t\t\t'opportunity_id'=> $given_data['opportunity_id'],\n\t\t\t\t\t'lead_cust_id' => $given_data['lead_cust_id'],\n\t\t\t\t\t'from_user_id'=> $given_data['user_id'],\n\t\t\t\t\t'to_user_id'=> $given_data['user_id'],\n\t\t\t\t\t'cycle_id' => $given_data['cycle_id'],\n\t\t\t\t\t'stage_id' => $given_data['stage_id'],\n\t\t\t\t\t'module' => 'sales',\n\t\t\t\t\t'action' => 'updated',\n\t\t\t\t\t'timestamp'=> date('Y-m-d H:i:s'),\n\t\t\t\t\t'sell_type' => $given_data['sell_type'],\n\t\t\t\t\t'remarks' => $given_data['stage_remarks'],\n\t\t\t\t);\n\t\t\t\t$updateStatus=$this->opp_common->map_opportunity(array(0 => $log_trans_data));\n\t\t\t\t$finalArray = array('errors' => array(), 'status' => $updateStatus);\n\t\t\t\techo(json_encode($finalArray));\n\t\t\t} catch (LConnectApplicationException $e) {\n\t\t\t\techo $this->exceptionThrower($e);\n\t\t\t}\n\t\t}else{\n\t\t\tredirect('indexController');\n\t\t}\n\t}",
"function update_general_info($usernameDB, $passwordDB, $email, $first_name_update, $last_name_update, $birthday, $member_address, $member_apartment, $member_city, $member_state, $member_zip, $member_home_phone, $member_cell_phone, $season, $yearGraduate, $pledgeClass) {\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t//Update any general information that has been changed.\n\t$update = array();\n\t\n\tif(trim($first_name_update) !== \"\") {\n\t $update[] = \"first_name = :first_name\";\n\t}\n\t\n\tif(trim($last_name_update) !==\"\") {\n\t\t$update[] = \"last_name = :last_name\";\n\t}\n\t\n\tif(trim($season) !== \"\") {\n\t $update[] = \"graduation_season = :season\";\n\t}\n\t\n\tif(trim($yearGraduate) !==\"\") {\n\t\t$update[] = \"graduation_year = :year\";\n\t}\n\t\n\tif(trim($pledgeClass) !==\"\") {\n\t\t$update[] = \"pledge_class = :pledge_class\";\n\t}\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($first_name_update) !== \"\") {\n\t $stmt->bindParam(\":first_name\", $first_name_update);\n\t }\n\t \n\t if(trim($last_name_update) !== \"\") {\n\t $stmt->bindParam(\":last_name\", $last_name_update);\n\t }\n\t \n\t if(trim($season) !== \"\") {\n\t $stmt->bindParam(\":season\", $season);\n\t }\n\t \n\t if(trim($yearGraduate) !== \"\") {\n\t $stmt->bindParam(\":year\", $yearGraduate);\n\t }\n\t \t \n\t if(trim($pledgeClass) !== \"\") {\n\t $stmt->bindParam(\":pledge_class\", $pledgeClass);\n\t }\n\n\t $stmt->execute();\n\t}\t\n\t\n\t//Connect to the members_contact\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t$update = array();\n\t\n\tif(trim($birthday) !== \"\") {\n\t $update[] = \"date_of_birth = :birthday\";\n\t}\n\t\n\tif(trim($member_address) !== \"\") {\n\t\t$update[] = \"school_address = :member_address\";\n\t}\n\t\n\tif(trim($member_apartment) !== \"\") {\n\t\t$update[] = \"apt = :member_apartment\";\n\t}\n\t\n\tif(trim($member_city) !== \"\") {\n\t\t$update[] = \"city = :member_city\";\n\t}\n\t\n\tif(trim($member_state) !== \"\") {\n\t\t$update[] = \"state = :member_state\";\n\t}\n\t\n\tif(trim($member_zip) !== \"\") {\n\t\t$update[] = \"zip_code = :member_zip_code\";\n\t}\n\t\n\tif(trim($member_home_phone) !== \"\") {\n\t\t$update[] = \"home_phone = :member_home_phone\";\n\t}\n\t\n\tif(trim($member_cell_phone) !== \"\") {\n\t\t$update[] = \"cell_phone = :member_cell_phone\";\n\t}\n\t\n\t\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members_contact SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($birthday) !== \"\") {\n\t $stmt->bindParam(\":birthday\", $birthday);\n\t }\n\t \n\t if(trim($member_address) !== \"\") {\n\t\t $stmt->bindParam(\":member_address\", $member_address);\n\t }\n\t \n\t if(trim($member_apartment) !== \"\") {\n\t\t $stmt->bindParam(\":member_apartment\", $member_apartment);\n\t }\n\t \n\t if(trim($member_city) !== \"\") {\n\t\t $stmt->bindParam(\":member_city\", $member_city);\n\t }\n\t \n\t if(trim($member_state) !== \"\") {\n\t\t $stmt->bindParam(\":member_state\", $member_state);\n\t }\n\t \n\t if(trim($member_zip) !== \"\") {\n\t\t $stmt->bindParam(\":member_zip_code\", $member_zip);\n\t }\n\t \n\t if(trim($member_home_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_home_phone\", $member_home_phone);\n\t }\n\t \n\t if(trim($member_cell_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_cell_phone\", $member_cell_phone);\n\t }\n\n\t $stmt->execute();\n\t}\t\n}",
"public function userUpdate(Event $event){\n $em = $this->getServiceLocator()->get('Omeka\\EntityManager');\n $entity = $event->getParam('entity');\n $request = $event->getParam('request');\n $operation = $request->getOperation();\n $error_store = $event->getParam('errorStore');\n\n if ($operation == 'update' ){\n $user_id = $request->getId();\n\n //stop if teams aren't part of the update\n if (array_key_exists('o-module-teams:Team', $request->getContent())){\n //array of team ids\n\n if ($user_role = $this->getUser()->getRole() == 'global_admin') {//remove the user's teams\n $user = $em->getRepository('Omeka\\Entity\\User')->findOneBy(['id' => $user_id]);\n\n $pre_teams = $em->getRepository('Teams\\Entity\\TeamUser')->findBy(['user' => $user_id]);\n\n foreach ($pre_teams as $pre_team):\n if ($pre_team->getCurrent()){\n $current_team_id = $pre_team->getTeam()->getId();\n }\n $em->remove($pre_team);\n endforeach;\n $em->flush();\n $current_team_id = isset($current_team_id )? $current_team_id : 0;\n\n //add the teams from the form\n $teams = $em->getRepository('Teams\\Entity\\Team');\n foreach ($request->getContent()['o-module-teams:Team'] as $team_id):\n $team_id = (int) $team_id;\n\n //adding new team from the user form, indicated by an id of 0\n if ($team_id === 0){\n $u_name = $request->getContent()['o:name'];\n $team_name = sprintf(\"%s's team\", $u_name);\n $team_exists = $em->getRepository('Teams\\Entity\\Team')->findOneBy(['name'=>$team_name]);\n if ($team_exists){\n $messanger = new Messenger();\n $messanger->addWarning(\"The team you tried to add already exists. Added user to the team.\");\n $team = $team_exists;\n\n\n } else{\n $team = new Team();\n $team->setName($team_name);\n $team->setDescription(sprintf('A team automatically generated for new user %s', $u_name));\n $em->persist($team);\n $em->flush();\n }\n\n } else {\n $team = $teams->findOneBy(['id'=> $team_id]);\n }\n\n //get it this way because the roles are added dynamically as js and not part of pre-baked form\n $role_id = $request->getContent()['o-module-teams:TeamRole'][$team_id];\n $role = $em->getRepository('Teams\\Entity\\TeamRole')\n ->findOneBy(['id'=>$role_id]);\n\n $team_user_exists = $em->getRepository('Teams\\Entity\\TeamUser')\n ->findOneBy(['team'=>$team->getId(), 'user'=>$user_id]);\n\n if ($team_user_exists){\n echo $team_user_exists->getId();\n } else {\n $team_user = new TeamUser($team,$user,$role);\n $em->persist($team_user);\n if ($team_id == $current_team_id){\n $team_user->setCurrent(true);\n }\n $em->persist($team_user);\n\n //this is not ideal to flush each iteration, but it is how to check to make sure they didn't\n //TODO: catch this in chosen-trigger.js instead\n $em->flush();\n }\n\n endforeach;\n\n $em->flush();\n\n //if their current team was removed, just give them a current team from the top of the list\n if (array_key_exists('o-module-teams:Team', $request->getContent())){\n if (! in_array($current_team_id, $request->getContent()['o-module-teams:Team'])){\n $em->getRepository('Teams\\Entity\\TeamUser')->findOneBy(['user' => $user_id])\n ->setCurrent(true);\n $em->flush();\n\n }\n }\n\n }\n\n }\n\n }\n return;\n\n }",
"public function update(Request $request, team_members $team_members)\n {\n //\n }",
"public function testUpdateMember()\n {\n }",
"public function testUpdateMyContact()\n {\n\n }",
"public function updateSportive()\r\n\t{\r\n\t\t// Donnees\r\n\t\t$eventId = Bn::getValue('event_id');\r\n\t\t$oEvent = new Oevent($eventId);\r\n\t\t// Controle de l'autorisation\r\n\t\tif ( $oEvent->getVal('ownerid') != Bn::getValue('user_id') && !Oaccount::isLoginAdmin() ) return false;\r\n\r\n\t\t// Donnees du tournoi\r\n\t\t$oEvent->setVal('scoringsystem', Bn::getValue('scoringsystem'));\r\n\t\t$oEvent->setVal('ranksystem', Bn::getValue('ranksystem'));\r\n\t\t$oEvent->setVal('catage', Bn::getValue('catage'));\r\n\t\t$oEvent->setVal('nature', Bn::getValue('nature'));\r\n\t\t$oEvent->setVal('level', Bn::getValue('level'));\r\n\t\t$type = $oEvent->getVal('type');\r\n\t\tif (!$oEvent->isIc())\r\n\t\t{\r\n\t\t\t$oEvent->setVal('nbdrawmax', Bn::getValue('nbdrawmax'));\r\n\t\t\t$oEvent->save();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$weight = Bn::getValue('teamweight');\r\n\t\t\tif ($weight != $oEvent->getVal('teamweight'))\r\n\t\t\t{\r\n\t\t\t\t$oEvent->setVal('teamweight', Bn::getValue('teamweight'));\r\n\t\t\t\t$oEvent->save();\r\n\t\t\t\t$teamIds = $oEvent->getTeams();\r\n\t\t\t\tforeach($teamIds as $teamId)\r\n\t\t\t\t{\r\n\t\t\t\t\t$oTeam = new Oteam($teamId);\r\n\t\t\t\t\t$points = $oTeam->weight();\r\n\t\t\t\t\tunset($oTeam);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t// Message de fin\r\n\t\t$body = new Body();\r\n\t\t$body->addWarning(LOC_LABEL_PREF_REGISTERED);\r\n\t\t$d = $body->addDiv('', 'bn-div-btn');\r\n\t\t$d->addButtonCancel('btnCancel', LOC_BTN_CLOSE);\r\n\r\n\t\t// Envoi au navigateur\r\n\t\t$res = array('content' => $body->toHtml(),\r\n\t\t\t\t\t'title' => LOC_ITEM_SPORTIVE);\r\n\t\techo Bn::toJson($res);\r\n\t}",
"public function testUpdatePerson()\n {\n }",
"function recruitTeam($cxn,$player,$request)\r\n {\r\n \r\n }",
"public function testUpdateNotOwnCreated()\r\n {\r\n //create teacher user\r\n $teacher = $this->CreateTeacher();\r\n $lisUser = $this->CreateTeacherUser($teacher);\r\n\r\n //now we have created teacheruser set to current controller\r\n $this->controller->setLisUser($lisUser);\r\n $this->controller->setLisPerson($teacher);\r\n\r\n //create other teacher user\r\n $otherTeacher = $this->CreateTeacher();\r\n $otherLisUser = $this->CreateTeacherUser($otherTeacher);\r\n\r\n //$name = uniqid() . 'Name';\r\n $subjectRound = $this->CreateSubjectRound();\r\n $student = $this->CreateStudent();\r\n //$anotherTeacher = $this->CreateTeacher();\r\n \r\n\r\n $independentWork = $this->CreateIndependentWork([\r\n 'name' => uniqid() . 'Name',\r\n 'duedate' => new \\DateTime,\r\n 'description' => uniqid() . ' Description for independentwork',\r\n 'durationAK' => (int) uniqid(),\r\n 'subjectRound' => $subjectRound->getId(),\r\n 'teacher' => $teacher->getId(),\r\n 'student' => $student->getId(),\r\n 'createdBy' => $otherLisUser->getId()\r\n ]);\r\n\r\n //$subjectRoundIdOld = $independentWork->getSubjectRound()->getId();\r\n //$studentIdOld = $independentWork->getStudent()->getId();\r\n //$teacherIdOld = $independentWork->getTeacher()->getId();\r\n\r\n $this->request->setMethod('put');\r\n $this->routeMatch->setParam('id', $independentWork->getId());\r\n\r\n $this->request->setContent(http_build_query([\r\n 'student' => $this->CreateStudent()->getId(),\r\n 'subjectRound' => $this->CreateSubjectRound()->getId(),\r\n 'teacher' => $teacher->getId(),\r\n ]));\r\n\r\n //fire request\r\n $result = $this->controller->dispatch($this->request);\r\n $response = $this->controller->getResponse();\r\n\r\n $this->PrintOut($result, false);\r\n\r\n $this->assertEquals(200, $response->getStatusCode());\r\n $this->assertEquals(false, $result->success);\r\n $this->assertEquals('SELF_CREATED_RESTRICTION', $result->message);\r\n }",
"public function update() {\n if(!$this->request->is('restful')) {\n $targetCoPersonId = $this->request->data['CoGroupMember']['co_person_id'];\n $userCoPersonId = $this->Session->read('Auth.User.co_person_id');\n $requesterIsAdmin = $this->Role->isCoAdmin($userCoPersonId, $this->cur_co['Co']['id'])\n || $this->Role->identifierIsCmpAdmin($this->Session->read('Auth.User.username'));\n \n try {\n $this->CoGroupMember->updateMemberships($targetCoPersonId,\n $this->request->data['CoGroupMember']['rows'],\n $userCoPersonId,\n $requesterIsAdmin);\n \n $this->Flash->set(_txt('rs.saved'), array('key' => 'success'));\n }\n catch(Exception $e) {\n $this->Flash->set($e->getMessage(), array('key' => 'error'));\n }\n \n // Issue redirect\n $redir = array();\n $redir['controller'] = 'co_groups';\n $redir['action'] = 'select';\n $redir['co'] = $this->cur_co['Co']['id'];\n\n // If the current user is not the same as the target CO Person for whom\n // memberships are being managed then include the copersonid parameter.\n if($targetCoPersonId != $userCoPersonId) {\n $redir['copersonid'] = $targetCoPersonId;\n }\n\n $this->redirect($redir);\n }\n }",
"function save_team_info( $post_id ) {\n\n // Check if our nonce is set.\n if ( ! isset( $_POST['team_nonce'] ) )\n return $post_id;\n\n $nonce = $_POST['team_nonce'];\n\n // Verify that the nonce is valid.\n if ( ! wp_verify_nonce( $nonce, 'team_info' ) )\n return $post_id;\n\n // If this is an autosave, our form has not been submitted, so we don't want to do anything.\n if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) \n return $post_id;\n\n // Check the user's permissions.\n if ( 'team' == $_POST['post_type'] ) {\n\n if ( ! current_user_can( 'edit_page', $post_id ) )\n return $post_id;\n \n } else {\n\n if ( ! current_user_can( 'edit_post', $post_id ) )\n return $post_id;\n }\n\n /* OK, its safe for us to save the data now. */\n\n // Sanitize user input.\n $mydata = $_POST['_team_announcements'];\n\n // Update the meta field in the database.\n update_post_meta( $post_id, '_team_announcements', $mydata );\n}",
"function action_edit_team()\n\t{\n\t\t// Loading form validation helper and the Markdown parser.\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_rules('id', 'ID', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('name', 'Name', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('homeid', 'Field', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('city', 'City', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('region', 'Region', 'trim|required|xss_clean');\n\n\t\t$tid = $this->input->post('id');\n\t\t$name = $this->input->post('name');\n\t\t$homeid = $this->input->post('homeid');\n\t\t$city = $this->input->post('city');\n\t\t$region = $this->input->post('region');\n\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\tif ($this->teams->update($tid, $name, $homeid, $city, $region))\n\t\t\t{\n\t\t\t\techo json_encode(array(\n\t\t\t\t\t'status' => 'success',\n\t\t\t\t\t'message' => 'Team updated successfully!'\n\t\t\t\t));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\techo json_encode(array(\n\t\t\t'status' => 'danger',\n\t\t\t'message' => 'One or more of the fields are invalid.'\n\t\t));\n\t}",
"function delete_team($teamname) {\n\n $qDelete = \"DELETE FROM authteam WHERE teamname='$teamname'\";\n\n $qUpdateUser = \"UPDATE authuser SET team='Ungrouped' WHERE team='$teamname'\";\n\n if ($teamname == \"Admin\") {\n\n return \"Admin team cannot be deleted.\";\n } elseif ($teamname == \"Ungrouped\") {\n\n return \"Ungrouped team cannot be deleted.\";\n } elseif ($teamname == \"Temporary\") {\n\n return \"Temporary team cannot be deleted.\";\n }\n\n\n\n $link = new mysqli($this->HOST, $this->USERNAME, $this->PASSWORD, $this->DBNAME);\n if ($link->connect_error) {\n die(\"Error al conectarse a la BD $dbname: \" . $mysqli->connect_error);\n }\n\n // OLD CODE - DO NOTE REMOVE\n // $result = mysql_db_query($this->DBNAME, $qUpdateUser);\n // REVISED CODE\n\n $result = $link->query($qUpdateUser);\n\n\n\n // OLD CODE - DO NOT REMOVE\n // $result = mysql_db_query($this->DBNAME, $qDelete);\n // REVISED CODE\n\n $result = $link->query($qDelete);\n\n\n\n return $link->error;\n }",
"protected function _updatefields() {}",
"function oncall_member_edit_form_submit($form, &$form_state) {\n $ocid = $form_state['values']['ocid'];\n $phone = preg_replace('/\\D/', '', $form_state['values']['oncall_phone']);\n $name = $form_state['values']['oncall_name'];\n $active = $form_state['values']['oncall_active'];\n\n // find if this user is already in our table\n $exists = db_query(\"SELECT COUNT(*) as num FROM {oncall_team} WHERE ocid = :uid\", array(\":uid\" => $ocid))->fetchField();\n\n if ($exists) {\n db_update('oncall_team') \n ->fields(array(\n 'name' => $name,\n 'phone' => $phone,\n 'available' => $active,\n ))\n ->condition('ocid', $ocid, '=')\n ->execute();\n }\n else {\n db_insert('oncall_team')\n ->fields(array(\n 'ocid' => $ocid,\n 'name' => $name,\n 'phone' => $phone,\n 'available' => $active,\n ))\n ->execute();\n }\n \n $form_state['redirect'] = 'admin/config/services/oncall'; \n}",
"protected function _update()\n\t{\n\t}",
"function updateLeagueForWeek($league, $week, $db) {\n\t$query = \"SELECT * FROM {$league[\"name\"]}_schedule WHERE week={$week}\";\n\n\t$result = mysqli_query($db, $query);\n\tif (!$result) {\n\t\tdie(\"Database query failed with errer: \" . mysqli_error($db));\n\t}\n\n\twhile ($match = mysqli_fetch_assoc($result)) {\n\t\t$user0 = $match[\"user_id_0\"];\n\t\t$user1 = $match[\"user_id_1\"];\n\n\t\t$score0 = getScoreForUser($user0, $league, $week);\n\t\t$score1 = getScoreForUser($user1, $league, $week);\n\n\t\t// tell the databse to update the scores\n\t\t$query = \"UPDATE {$league[\"name\"]}_schedule\";\n\t\t$query .= \" SET score_0={$score0}, score_1={$score1}, completed=1\";\n\t\t$query .= \" WHERE id={$match[\"id\"]}\";\n\n\t\t$tmp = mysqli_query($db, $query);\n\t\tif (!$tmp) {\n\t\t\tdie(\"Database query failed with errer: \" . mysqli_error($db));\n\t\t}\n\t}\n}",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function updateTeamTraining($teamId,$type)\n {\n $queryString=\"UPDATE training\";\n\n switch($type){\n\n case \"att\":\n $queryString.=\" SET att=att+1,att_estate=1,date_training='\".date('Y-m-d').\"' \";\n break;\n\n case \"mil\";\n $queryString.=\" SET mil=mil+1,mil_estate=1,date_training='\".date('Y-m-d').\"' \";\n break;\n\n case \"def\":\n $queryString.=\" SET def=def+1,def_estate=1,date_training='\".date('Y-m-d').\"' \";\n break;\n\n case \"gb\":\n $queryString.=\" SET gb=gb+1,gb_estate=1,date_training='\".date('Y-m-d').\"' \";\n break;\n }\n\n $queryString.=\"WHERE team_id=$teamId\";\n $query = $this->db->query($queryString);\n\n }",
"public function updateOffensiveMethod($offensiveMethodId,$teamId,$action)\n {\n if($action==corruption_rules::ADD_ACTION)\n {\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt+1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }else{\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt-1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }\n\n $query = $this->db->query($queryString);\n }",
"public function testUpdateSurveyQuestionChoice0()\n {\n }",
"public function testUpdateSurveyQuestionChoice0()\n {\n }",
"public function testUpdatePackingPlanCustomFields()\n {\n }"
] | [
"0.6863709",
"0.66335034",
"0.6520814",
"0.6468499",
"0.64641297",
"0.646041",
"0.6268243",
"0.62601763",
"0.6201292",
"0.6186413",
"0.6139287",
"0.6118677",
"0.60509914",
"0.6042131",
"0.60365725",
"0.60363",
"0.59978485",
"0.5996376",
"0.59619796",
"0.5955357",
"0.59518564",
"0.59518564",
"0.59518564",
"0.59518564",
"0.59518564",
"0.59518564",
"0.5916769",
"0.59102756",
"0.5907871",
"0.59058195",
"0.59010684",
"0.5892313",
"0.589026",
"0.5865925",
"0.585966",
"0.5851387",
"0.58503556",
"0.583598",
"0.5827561",
"0.5793588",
"0.5768562",
"0.576097",
"0.57592666",
"0.5754051",
"0.57483995",
"0.57483995",
"0.574325",
"0.57400227",
"0.57033676",
"0.5703138",
"0.5690504",
"0.5679929",
"0.5679283",
"0.56718755",
"0.56570286",
"0.56518406",
"0.5646993",
"0.56450814",
"0.5639916",
"0.5635041",
"0.5616716",
"0.5594891",
"0.55922115",
"0.5586166",
"0.55818695",
"0.55606157",
"0.555969",
"0.5556662",
"0.55363923",
"0.5533606",
"0.55220103",
"0.5520566",
"0.55204576",
"0.5514382",
"0.5513039",
"0.55018616",
"0.549929",
"0.549776",
"0.5496012",
"0.54934686",
"0.5478892",
"0.5478241",
"0.54780364",
"0.5476714",
"0.5471136",
"0.5469344",
"0.5468169",
"0.54674435",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5458071",
"0.54547876",
"0.5447566",
"0.5447566",
"0.54444474"
] | 0.638454 | 6 |
/ |========================================================== | update team secondary potential |========================================================== | | public function increaseTeamSecondaryPotential($potential,$teamId,$action)
{
switch($action){
case "ATT";
$queryString="UPDATE teams
SET secondary_experience_att=secondary_experience_att+$potential
WHERE team_id=$teamId";
break;
case "MIL";
$queryString="UPDATE teams
SET secondary_experience_mil=secondary_experience_mil+$potential
WHERE team_id=$teamId";
break;
case "DEF";
$queryString="UPDATE teams
SET secondary_experience_def=secondary_experience_def+$potential
WHERE team_id=$teamId";
break;
case "GB";
$queryString="UPDATE teams
SET secondary_experience_gb=secondary_experience_gb+$potential
WHERE team_id=$teamId";
break;
}
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateTeam($team)\n\t{\n\t}",
"public function updateTeamToCertification($team);",
"function modify_team($teamname, $teamlead, $status) {\n\n $qUpdate = \"UPDATE authteam SET teamlead='$teamlead', status='$status'\n\n\t\t\t\t\t WHERE teamname='$teamname'\";\n\n $qUserStatus = \"UPDATE authuser SET status='$status' WHERE team='$teamname'\";\n\n\n\n if ($teamname == \"Admin\" AND $status == \"inactive\") {\n\n return \"Admin team cannot be inactivated.\";\n } elseif ($teamname == \"Ungrouped\" AND $status == \"inactive\") {\n\n return \"Ungrouped team cannot be inactivated.\";\n } else {\n\n $link = new mysqli($this->HOST, $this->USERNAME, $this->PASSWORD, $this->DBNAME);\n if ($link->connect_error) {\n die(\"Error al conectarse a la BD $dbname: \" . $mysqli->connect_error);\n }\n\n\n\n // UPDATE STATUS IF STATUS OF TEAM IS INACTIVATED\n // OLD CODE - DO NOT REMOVE\n //$userresult = mysql_db_query($this->DBNAME, $qUserStatus);\n // REVISED CODE\n\n $userresult = $link - query($qUserStatus);\n\n\n\n // OLD CODE - DO NOT REMOVE\n // $result = mysql_db_query($this->DBNAME, $qUpdate);\n // REVISED CODE\n\n $result = $link->query($qUpdate);\n\n\n\n return 1;\n }\n }",
"public function update_team_score(){\n\t\tif($this->authenticate_api()){\n\t\t\t\n\t\t\t$response = array( \"status\" => \"error\" );\n\t\t\t$response['message'] = \"Somthing Wrong\";\n $required_fields = array(\"match_id\");\n $status = $this->verifyRequiredParams($required_fields);\n\t\t\t$match_id= $this->request->getVar(\"match_id\");\n\t\t\t\n\t\t\tif($this->ifempty($match_id, \"match id\")!== true){\n $response['message'] = $this->ifempty($match_id, \"match id\");\n $this->sendResponse($response);\n }\n if($this->ifexists('tbl_tournament_match', $match_id, 'id') != true){\n $response['message'] = \"Please enter valid match id\";\n $this->sendResponse($response);\n }\t\t\t\n\t\t\tif($match_id){\t\t\t\t\n\t\t\t\t$match_tournament_team = $this->db->table('tbl_tournament_match')->where('id', $match_id)->get()->getRowArray();\n\t\t\t\tif($match_tournament_team){\n\t\t\t\t\t$team_id = $match_tournament_team['team_id'];\n\t\t\t\t\t$opponent_team_id = $match_tournament_team['opponent_team_id'];\n\t\t\t\t\t$match_end_status = $match_tournament_team['match_end_status'];\n\t\t\t\t\t$match_end_status_for_opponent_team = $match_tournament_team['match_end_status_for_opponent_team'];\n\t\t\t\t\tif($match_end_status == 1 && $match_end_status_for_opponent_team == 1){\n\t\t\t\t\t\t$where_match_team['match_id'] = $team_id;\n\t\t\t\t\t\t$where_match_opponent_team['match_id'] = $opponent_team_id;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team = $this->db->table('tbl_match_team')->where($where_match_team);\n\t\t\t\t\t\t$match_opponent_team = $this->db->table('tbl_match_team')->where($where_match_opponent_team);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team_goal = $this->db->query(\"SELECT SUM(g) as Total_g FROM tbl_match_team where match_id = \".$team_id)->getRowArray();\n\t\t\t\t\t\t$match_opponent_team_goal = $this->db->query(\"SELECT SUM(g) as Total_g FROM tbl_match_team where match_id = \".$opponent_team_id)->getRowArray();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team_goal['Total_g'] = $match_team_goal['Total_g'] ? $match_team_goal['Total_g'] : 0;\n\t\t\t\t\t\t$match_team_goal['Total_g'] = $match_opponent_team_goal['Total_g'] ? $match_opponent_team_goal['Total_g'] : 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($match_team_goal['Total_g'] > $match_opponent_team_goal['Total_g']){\n\t\t\t\t\t\t\t$winner_team_id = $team_id;\n\t\t\t\t\t\t}else if($match_team_goal['Total_g'] < $match_opponent_team_goal['Total_g']){\n\t\t\t\t\t\t\t$winner_team_id = $opponent_team_id;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$winner_team_id = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tbl_tournament_match_result_data['match_id'] = $match_id; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['team_id_score'] = $match_team_goal['Total_g']; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['opponent_team_id_score'] = $match_opponent_team_goal['Total_g']; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['winner_team_id'] = $winner_team_id;\n\t\t\t\t\t\t$response['status'] = \"success\";\n\t\t\t\t\t\t$table_name = 'tbl_tournament_match_result';\n\t\t\t\t\t\t$id = $match_id;\n\t\t\t\t\t\t$fild_to_check = 'match_id';\n\t\t\t\t\t\tif($this->ifexists($table_name,$id,$fild_to_check)){\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$response['message'] = \"Team score already Added\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$tbl_tournament_match_result = $this->db->table($table_name)->insert($tbl_tournament_match_result_data);\n\t\t\t\t\t\t\tif($tbl_tournament_match_result)\n\t\t\t\t\t\t\t\t$response['message'] = \"Team score Added Successfully\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t$this->sendResponse($response);\t\t\t\n\t\t\t\n\t\t}\n\t}",
"public function decreaseTeamSecondaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET secondary_experience_att=secondary_experience_att-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET secondary_experience_mil=secondary_experience_mil-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET secondary_experience_def=secondary_experience_def-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET secondary_experience_gb=secondary_experience_gb-$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"public function updateTeamToPendingCertification($team);",
"public function updateTeamToUnCertification($team);",
"public function actionUpdate_team(){ // anoop 21-11-18\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('assign_team')) {\n return $this->redirect(['site/index']);\n } \n $model = new DvUsersRole(); \n if (Yii::$app->request->post()){\n $user_of_manager = array();\n if (isset($_POST['user_of_manager'])) {\n $user_of_manager = $_POST['user_of_manager'];\n }\n $manager_id = $_POST['manager'];\n $new_manager_id = $_POST['new_manager'];\n // get manager email\n $manager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$manager_id' AND status = 1 \")->queryAll();\n $manageremail = $manager_email[0]['email'];\n\n if (empty($new_manager_id) || $new_manager_id == 0) {\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '' WHERE meta_key = 'team' AND meta_value = '$manager_id' \")->execute();\n Yii::$app->session->setFlash('success', 'The Team for Manager with Email Address <u>' . $manageremail . '</u> is Successfully Removed.');\n } else {\n // get new manager email\n $Nmanager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$new_manager_id' AND status = 1 \")->queryAll();\n $Nmanageremail = $Nmanager_email[0]['email'];\n if (!empty($user_of_manager)) {\n $user_of_manager_str = implode(\",\", $user_of_manager);\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$new_manager_id' WHERE meta_key = 'team' AND meta_value = '$manager_id' AND uid IN($user_of_manager_str)\")->execute();\n Yii::$app->session->setFlash('success', 'The selected Managers are Successfully assigned to Manger with Email Address <u>' . $Nmanageremail . '</u>');\n } else {\n\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$new_manager_id' WHERE meta_key = 'team' AND meta_value = '$manager_id' \")->execute();\n Yii::$app->session->setFlash('success', 'The Team for Manager with Email Address <u>' . $manageremail . '</u> is Successfully assigned to Manger with Email Address <u>' . $Nmanageremail . '</u>');\n }\n }\n return $this->redirect(['dv-users/assign_team']);\n } else {\n\n return $this->render('assign_team', [ 'model' => $model]);\n }\n }",
"function ChangeRiderTeam($oDB, $riderID, $newRacingTeamID, $newCommutingTeamID)\n{\n $oldTeamInfo = GetRiderTeamInfo($oDB, $riderID);\n // build SQL to set new rider teams\n $updateCmds = \"SET CommutingTeamID=$newCommutingTeamID, RacingTeamID=$newRacingTeamID\";\n // remove admin rights when rider changes teams\n if($newRacingTeamID!=$oldTeamInfo['RacingTeamID'])\n {\n $updateCmds .= \", sRacingTeamAdmin=0\";\n }\n if($newCommutingTeamID!=$oldTeamInfo['CommutingTeamID'])\n {\n $updateCmds .= \", sCommutingTeamAdmin=0\";\n }\n // execute the commands to change teams\n $oDB->query(\"UPDATE rider $updateCmds WHERE RiderID=$riderID\");\n if($oDB->errno==0)\n {\n // Copy rider photo to new team if rider does not already have a photo for that team\n $existingPhoto = $oDB->DBCount(\"rider_photos\", \"RiderID=$riderID AND TeamID=$newRacingTeamID\");\n if($newRacingTeamID!=$oldTeamInfo['RacingTeamID'] && $existingPhoto==0)\n {\n $oDB->query(\"INSERT rider_photos (RiderID, TeamID, Picture, ActionPicture, LastModified)\n SELECT $riderID, $newRacingTeamID, Picture, ActionPicture, LastModified\n FROM rider_photos\n WHERE RiderID=$riderID AND TeamID={$oldTeamInfo['RacingTeamID']}\");\n }\n }\n // Build response array\n if($oDB->errno!=0)\n {\n $result['success'] = false;\n $result['message'] = \"[\" . $oDB->errno . \"] SQL Error\";// . $oDB->error;\n // --- needed so Ext returns failureType of 'server' (FYI: could also be used to do server-side field validation)\n $result['errors'][] = array('id' => 'CtrlID', 'msg' => 'Error Msg' );\n }\n else\n {\n $result['success'] = true;\n }\n return($result);\n}",
"function wieting_change_one_volunteer_action( $object, $context ) {\n global $user;\n if ( !array_key_exists( 3, $user->roles )) {\n drupal_set_message( t( 'Only a mangaer can change a volunteer assignment!' ));\n return;\n }\n\n static $objects = array( ); // array must be static to persist between rows (calls)\n\n array_push( $objects, $object );\n $count = count( $objects );\n\n /*\n print '<pre>';\n print 'The $object is: ';\n McFate_Dump( $object );\n print 'The $context is: ';\n McFate_Dump( $context );\n print 'Count of $objects is now ' . $count = count( $objects );\n print '</pre>';\n */\n\n // If exactly one performance was selected...proceed.\n\n if ( $count === 1 ) {\n $args = $objects[0]->field_performance_manager[0]['uid'].'/';\n $args .= $objects[0]->field_performance_ticket_seller[0]['uid'].'/';\n for ( $i=0; $i<4; $i++ ) {\n if ( $m = $objects[0]->field_performance_monitors[$i]['uid'] ) { $args .= $m.'/'; }\n if ( $c = $objects[0]->field_performance_concessions[$i]['uid'] ) { $args .= $c.'/'; }\n }\n $path = 'performance_team_vbo/'.$args;\n unset( $objects );\n drupal_goto( $path ); // Invoke the form.\n }\n\n return;\n}",
"protected function updateTeamStats()\n {\n $conditions = array('stats.needs_update' => true);\n $fields = array('league_id');\n $teams_needing_update = Teams::all(compact('conditions', 'fields'));\n\n $team_id_list = array();\n $team_stats = array();\n foreach ($teams_needing_update as $team) {\n $team_id_list[] = $team->_id;\n $team_stats[(string)$team->_id] = array(\n 'wins' => 0,\n 'losses' => 0,\n 'point_differential' => 0\n );\n }\n\n // Grab all of the games that apply to these teams, standings should be re-calced from the ground up.\n $conditions = array('teams' => array('$in' => $team_id_list), 'scores' => array('$exists' => true), 'winner' => array('$ne' => null));\n $fields = array('scores', 'winner', 'teams', 'league_id');\n $relevant_games_list = Games::all(compact('conditions', 'fields'));\n\n $league_list = array();\n foreach ($relevant_games_list as $game) {\n // Calculate stats for each team\n foreach ($game->getTeams() as $t) {\n $team_id = (string)$t->_id;\n if (!isset($team_stats[$team_id])) {\n // If we didn't pull all of this team's games, do not update their stats. \n continue;\n }\n\n if ($t->_id == $game->winner) {\n $team_stats[$team_id]['wins']++;\n $team_stats[$team_id]['point_differential'] += $game->getScoreDiff();\n } else {\n $team_stats[$team_id]['losses']++;\n $team_stats[$team_id]['point_differential'] -= $game->getScoreDiff();\n }\n }\n\n // Make sure we have a list of all of the leagues being updated\n $league_list[] = $game->league_id;\n }\n\n // Do the team stats updates:\n foreach ($team_stats as $team_id => $stats) {\n $conditions = array('_id' => new \\MongoId($team_id));\n $query = array('$set' => array('stats' => $stats));\n Teams::update($query, $conditions);\n }\n\n // Mark leagues as needing an update\n $league_list = array_unique($league_list);\n $conditions = array('_id' => array('$in' => $league_list));\n $query = array('$set' => array('needs_standings_update' => true));\n Leagues::update($query, $conditions); \n }",
"public function testUpdateInvalidTeam() {\n\t\t// create a Team with a non null team id and watch it fail\n\t\t$team = new Team($this->sport->getSportId(), SprotsTest::INVALID_KEY, $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);\n\t\t$team->insert($this->getPDO());\n\t\t$team->update($this->getPDO());\n\t}",
"public function increaseTeamPrimaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET experience_att=experience_att+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET experience_mil=experience_mil+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET experience_def=experience_def+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET experience_gb=experience_gb+$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"function guidoleen_post_team($postid, $postval)\n{\n\tif( $postval->post_type == 'post_team' )\n\t{\n // Functie member\n\t\tif( isset($_POST['team_function']))\n\t\t{\n\t\t\tupdate_post_meta($postid, 'team_function', $_POST['team_function'] );\n }\n \n // Email member\n\t\tif( isset($_POST['team_email']))\n\t\t{\n\t\t\tupdate_post_meta($postid, 'team_email', $_POST['team_email'] );\n\t\t}\n\t}\n}",
"public function decreaseTeamPrimaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET experience_att=experience_att-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET experience_mil=experience_mil-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET experience_def=experience_def-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET experience_gb=experience_gb-$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"public function short_update($roster_player_data, $team_id = false){\n if(isset($roster_player_data[\"playerId\"]) && $roster_player_data[\"playerId\"] > 0){\n $data = $GLOBALS[\"db_fi\"]->fetch_array($GLOBALS[\"db_fi\"]->query(\"SELECT * FROM esports_player WHERE player_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"playerId\"]).\"'\"));\n \n if(isset($data[\"id\"]) && $data[\"id\"] > 0){\n $sql = \"UPDATE esports_player SET \";\n $sql_type = \"update\";\n } else {\n $sql = \"INSERT INTO esports_player SET player_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"playerId\"]).\"', \";\n $sql_type = \"insert\";\n }\n \n $sql .= \"name = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"name\"]).\"'\";\n $sql .= \", role = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"role\"]).\"'\";\n $sql .= \", is_starter = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"isStarter\"]).\"'\";\n \n if($team_id != false){\n $sql .= \", team_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($team_id).\"'\";\n }\n \n if($sql_type == \"update\"){\n $sql .= \" WHERE id = '\".$data[\"id\"].\"'\";\n }\n $GLOBALS[\"db_fi\"]->query($sql);\n return true;\n }\n return false;\n }",
"public function testUpdateValidTeam() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"team\");\n\n\t\t// Create a new team and insert into mySQL\n\t\t$team = new Team(null, $this->sport->getSportId(), $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);\n\t\t$team->insert($this->getPDO());\n\n\t\t// edit the Team and update it in mySQL\n\t\t$team->setTEAMAPIID($this->VALID_TEAMAPIID2);\n\t\t$team->setTEAMCITY($this->VALID_TEAMCITY2);\n\t\t$team->setTEAMNAME($this->VALID_TEAMNAME2);\n\t\t$team->update($this->getPDO());\n\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$pdoTeam = Team::getTeamByTeamId($this->getPDO(), $team->getTeamId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"team\"));\n\t\t$this->assertEquals($pdoTeam->getTeamSportId(), $this->sport->getSportId());\n\t\t$this->assertEquals($pdoTeam->getTeamApiId(), $this->VALID_TEAMAPIID2);\n\t\t$this->assertEquals($pdoTeam->getTeamCity(), $this->VALID_TEAMCITY2);\n\t\t$this->assertEquals($pdoTeam->getTeamName(), $this->VALID_TEAMNAME2);\n\t\t//$this->assertEquals($pdoTeam->getTeamSportId(), $this->VALID_TEAMSPORTID);\n\t}",
"public function testUpdateSiteMembership()\n {\n }",
"public function testUpdateVendorComplianceSurvey()\n {\n }",
"public function test_squad_server_admin_force_team_change()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange('Test'));\n }",
"function updateLeagueUser(\n $league_id,\n $user_id,\n $player_name,\n $paid,\n $join_date,\n $active_status,\n &$ref_status_text = '' // notunique, emailnotvalid, \n){\n\n writeDataToFile(\"\n 'league_id, ' $league_id,\n 'user_id, ' $user_id,\n 'player_name, ' $player_name,\n 'paid, ' $paid,\n 'join_date, ' $join_date,\n 'active_status' $active_status,\", __FILE__, __LINE__);\n\n $mysql_update = \"\n UPDATE nspx_leagueplayer \n SET playername = ?,\n active = ?,\n paid = ?,\n joindate = ?\n WHERE userid = ?\n AND leagueid = ?\n LIMIT 1\";\n \n $status = 0;\n $ref_status_text = '';\n $update_count = '';\n while (1) {\n \n if (!($paid == 1 || $paid == 2)) {\n $ref_status_text = 'paidoneortwo';\n break;\n }\n if (!($active_status == 1 || $active_status == 2)) {\n $ref_status_text = 'activeoneortwo';\n break;\n }\n writeDataToFile(\"11 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n \n $driver = new mysqli_driver();\n $driver->report_mode = MYSQLI_REPORT_OFF;\n \n try {\n $conn = db_connect();\n $sth = $conn->prepare($mysql_update);\n $sth->bind_param(\"siisii\",\n $player_name,\n $active_status,\n $paid,\n $join_date,\n $user_id,\n $league_id); \n \n writeDataToFile(\"22 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n if (!$sth->execute()) {\n $ref_status_text = 'updatefail';\n break;\n }\n $sth->store_result();\n $update_count = $sth->affected_rows;\n writeDataToFile(\" the return count is $update_count\", __FILE__, __LINE__);\n if ($update_count === 0) {\n $ref_status_text = 'updatenorows';\n $status = 1;\n break;\n }\n } catch (mysqli_sql_exception $e) {\n $ermsg = \"updateUser() \\n\" .\n 'sql: ' . $mysql_update . \"\\n\\n\" .\n '$league_id = ' . $league_id . \", \\n\" .\n '$player_name = ' . $player_name . \", \\n\" .\n '$user_id = ' . $user_id . \", \\n\" .\n '$active_status = ' . $active_status . \", \\n\" .\n 'MYSQL ERROR TO STRING: ' . $e->__toString();\n writeDataToFile($ermsg, __FILE__, __LINE__);\n $ref_status_text = 'dberror';\n break;\n }\n $status = 1;\n break;\n }\n writeDataToFile(\"33 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n @ $sth->close();\n return $status;\n}",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function updateUrgencyStatuses() {\n\n\n $deadlineOverdue = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.OVERDUE_DAYS') . ' days'));\n $overdueTickets = $this->getPendingTicketsByAge($deadlineOverdue);\n\n foreach ($overdueTickets as $i => $overdueTicket) {\n\n $this->id = $overdueTicket['Ticket']['ticket_id'];\n $overdueTicket['Ticket']['status'] = 'Overdue';\n $this->save($overdueTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n\n $deadlineUrgend = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.URGEND_DAYS') . ' days'));\n $urgendTickets = $this->getPendingTicketsByAge($deadlineUrgend, array('New', 'Requested'));\n\n foreach ($urgendTickets as $i => $urgendTicket) {\n\n $this->id = $urgendTicket['Ticket']['ticket_id'];\n $urgendTicket['Ticket']['status'] = 'Urgend';\n $this->save($urgendTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n }",
"public function updateVolunteer()\n {\n \t// database connection and sql query to update volunteer\n \t$core = Core::dbOpen();\n\t\t\t\t\n\t\tif( $this->volunteerID == 0 ) { // add volunteer\n\t\t\t$sql = \"INSERT INTO volunteer ( programID, firstName, lastName, phone, email, active )\n\t\t\t\t\t\t\tVALUES (:programID, :firstName, :lastName, :phone, :email, :active)\";\n\t\t\n\t\t} else { // update volunteer\n\t\t\t$sql = \"UPDATE volunteer SET firstName = :firstName, lastName = :lastName, phone = :phone, email = :email, active = :active\n\t\t\t\t\t\t\tWHERE volunteerID = :id\";\n\t\t}\n\t\t\n \t$stmt = $core->dbh->prepare($sql);\n \t\n\t\tif( $this->volunteerID == 0 ) { \n\t\t\t$stmt->bindParam(':programID', $this->programID); \n\t\t} else { \n\t\t\t$stmt->bindParam(':id', $this->volunteerID); \n\t\t}\n\t\t\n\t\t$stmt->bindParam(':firstName', $this->firstName);\n \t$stmt->bindParam(':lastName', $this->lastName);\n \t$stmt->bindParam(':phone', $this->phone);\n \t$stmt->bindParam(':email', $this->email);\n \t$stmt->bindParam(':active', $this->active);\n \tCore::dbClose();\n \t\n \t// execute stmt\n \ttry\n \t{\n \t\tif( $stmt->execute() )\n\t\t\t{\n\t\t\t\tif( $this->volunteerID == 0 )\n\t\t\t\t\t $this->volunteerID = $core->dbh->lastInsertId(); \n\t\t\t}\n \t}\n \tcatch (PDOException $e )\n \t{\n \t\techo \"Update volunteer failed\";\n \t}\n\t\t\n\t\t// clear previous volunteer positions\n\t\t$this->clearPositions();\n \t\n \t// add positions\n \tif($this->positions != null)\n {\n \t\t$core = Core::dbOpen();\n \t\t$sql = \"INSERT INTO volunteer_position (volunteerID, positionID) VALUES (:volunteerID, :positionID)\";\n \t\t$stmt = $core->dbh->prepare($sql);\n \t\t\n \tforeach ( $this->positions as $value )\n \t{\n \t\t$stmt->bindParam(':volunteerID', $this->volunteerID);\n \t\t$stmt->bindParam(':positionID', $value);\n \t\t\n \t\t\ttry {\n \t\t\t\t$stmt->execute();\n \t\t\t} catch( PDOException $e ) {\n \t\t\techo \"Add volunteer positons Failed!\";\n \t\t\t}\n \t\t}\n \t\t\n \t\tCore::dbClose();\n }\n\n \treturn false;\n }",
"function updateTeamDetails($TeamID, $Input = array())\n {\n $UpdateArray = array_filter(array(\n 'TeamFlag' => @$Input['TeamFlag'],\n 'TeamName' => @$Input['TeamName'],\n 'TeamNameShort' => @$Input['TeamNameShort']\n ));\n if (!empty($UpdateArray)) {\n $this->db->where('TeamID', $TeamID);\n $this->db->limit(1);\n $this->db->update('sports_teams', $UpdateArray);\n\n /* Edit Into MongoDB */\n mongoDBConnection();\n $this->fantasydb->sports_teams->updateOne(\n ['_id' => $Input['TeamGUID']],\n ['$set' => array_filter(array('TeamID' => (int) $TeamID,'TeamFlag' => @$UpdateArray['TeamFlag'],'TeamName' => @$UpdateArray['TeamName'],'TeamNameShort' => @$UpdateArray['TeamNameShort']))],\n ['upsert' => true]\n );\n }\n return TRUE;\n }",
"public function test_squad_server_admin_force_team_change()\n {\n $this->assertTrue($this->btwServer->adminForceTeamChange('Test'));\n }",
"function update()\n {\n\n $query = \"UPDATE Proposal set \";\n $query = $query . \"LastEditDate=NOW()\";\n if(isset($this->BidderID))\n {\n $query = $query . \", OpportunityID = '\" . $this->OpportunityID . \"'\"; \n }\n\n if(isset($this->BidderID))\n {\n $query = $query . \", BidderID = '\" . $this->BidderID . \"'\"; \n }\n\n if(isset($this->Status))\n {\n $query = $query . \", Status = \" . $this->Status . \"\"; \n }\n\n if(isset($this->TechnicalScore))\n {\n $query = $query . \", TechnicalScore = \" . $this->TechnicalScore . \" \"; \n }\n\n if(isset($this->FeeScore))\n {\n $query = $query . \", FeeScore = \" . $this->FeeScore . \" \"; \n }\n\n if(isset($this->FinalTotalScore))\n {\n $query = $query . \", FinalTotalScore = \" . $this->FinalTotalScore . \" \"; \n }\n\n if(isset($this->ContractAwarded))\n {\n $query = $query . \", ContractAwarded = \" . $this->ContractAwarded . \" \"; \n }\n\n $query = $query . \" WHERE ProposalID = '\" . $this->ProposalID . \"';\";\n\n $stmt = $this->conn->prepare( $query );\n\n // bind parameters\n //$stmt->bindParam(':ProposalID', $this->ProposalID);\n //$stmt->bindParam(':OpportunityID', $this->OpportunityID);\n //$stmt->bindParam(':BidderID', $this->BidderID);\n //$stmt->bindParam(':Status', $this->Status);\n //$stmt->bindParam(':TechnicalScore', $this->TechnicalScore);\n // $stmt->bindParam(':FeeScore', $this->FeeScore);\n //$stmt->bindParam(':FinalTotalScore', $this->FinalTotalScore);\n\n if($stmt->execute())\n return true;\n else\n return false;\n }",
"public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }",
"function updateTeams($players, $json) {\n\n\tunset($teams);\n\t$teams = array( 'won' => array(), 'lost' => array() );\n\tforeach ($players as $player) {\n\t\tif ($player['state'] == 'Won') {\n\t\t\tarray_push($teams['won'], $player['id']);\n\t\t} else {\n\t\t\tarray_push($teams['lost'], $player['id']);\n\t\t}\n\t}\n\t\n\t//updateWinnerTeam($teams['won']);\n\tunset($jsonteam);\n\tforeach ($json['teams'] as &$jsonteam) {\n\t\t$foundteam = 0;\n\t\t\n\t\tforeach ($jsonteam['players'] as $jsonplayer) {\n\t\t\tforeach ($teams['won'] as $thisplayer) {\n\t\t\t\tif ($jsonplayer['token'] == $thisplayer) $foundteam++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($foundteam == 3) {\n\t\t\techo 'updating team with win<br>';\n\t\t\t$jsonteam['wins']++;\n\t\t\t$jsonteam['rating']++;\n\t\t\t//$jsonteam['pendinggames']--;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t//updateLosingTeam($teams['lost']);\n\tunset($jsonteam);\n\tforeach ($json['teams'] as &$jsonteam) {\n\t\t$foundteam = 0;\n\t\t\n\t\tforeach ($jsonteam['players'] as $jsonplayer) {\n\t\t\tforeach ($teams['lost'] as $thisplayer) {\n\t\t\t\tif ($jsonplayer['token'] == $thisplayer) $foundteam++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($foundteam == 3) {\n\t\t\techo 'updating team with win<br>';\n\t\t\t$jsonteam['losses']++;\n\t\t\t$jsonteam['rating']--;\n\t\t\t//$jsonteam['pendinggames']--;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn true;\n}",
"public function assignUpdateTeam($input,$id){\n\t\t$getAssignTeam = $this->getAssignTeam($id);\n\t\tif(!empty($getAssignTeam)){\n\t\t\t$updateId = DB::table('assign_team')->where('member_id', $id)->update(['team_id' => $input, 'member_id' => $id]);\n\t\t}else{\n\t\t\t$updateId = DB::table('assign_team')->insert(['team_id' => $input, 'member_id' => $id]);\n\t\t}\n\t\treturn true;\n\t\n\t}",
"function editTeamScore($teamId, $points, $cause){\r\n //$GLOBALS['GLOBALS['link']'] = connect();\r\n mysqli_query($GLOBALS['link'], 'update teams set `score`=`score` + '. $points .' where `id`='. $teamId .';');\r\n\r\n return mysqli_affected_rows($GLOBALS['link']);\r\n}",
"public function testUpdateChallengeActivity()\n {\n }",
"function myPear_update26(){\n \n if (myPear_db()->tableExists('zzz_organizations')){\n if (myPear_db()->columnExists('org_nickname','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` CHANGE `org_nickname` `org_code` VARCHAR(32) NULL\",1);\n myPear_db()->reset_cache();\n }\n \n if (!myPear_db()->columnExists('org_name_short','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` ADD `org_name_short` VARCHAR(32) NOT NULL AFTER `org_name`\",1);\n myPear_db()->reset_cache();\n foreach(array('an' => 'AlbaNova',\n\t\t 'nordita'=> 'Nordita',\n\t\t 'fysikum'=> 'Fysikum',\n\t\t 'kth' => 'KTH',\n\t\t 'okc' => 'OKC',\n\t\t 'vh' => 'Vetenskapenshus',\n\t\t 'gu' => 'GU',\n\t\t ) as $org_code=>$org_name_short){\n\tmyPear_db()->qquery(\"UPDATE `zzz_organizations` SET org_name_short='$org_name_short' WHERE org_code='$org_code'\",1);\n\t\n }\n }\n }\n}",
"public function actionAssign_team() { // update by anoop 21-11-18\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('assign_team')) {\n return $this->redirect(['site/index']);\n }\n $model = new DvUsersRole(); \n if (Yii::$app->request->post()) {\n $dep_id = $_POST['DvUsersTeam']['dep_id'];\n $team_manager = $_POST['team_manager'];\n $useremail = $_POST['DvUsersTeam']['user_email'];\n $user_email = trim($useremail);\n // get user id\n $userid = Yii::$app->db->createCommand(\"SELECT assist_users.id as id FROM assist_users \n JOIN assist_user_meta on assist_user_meta.uid = assist_users.id WHERE email = '$user_email' AND department = '$dep_id' \n AND assist_user_meta.meta_key= 'role' AND assist_user_meta.meta_value <> 7 AND assist_users.status = 1 \")->queryAll();\n if (!empty($userid)) {\n $user_id = $userid[0]['id'];\n // get manager email\n $manager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$team_manager' AND status = 1 \")->queryAll();\n $manageremail = $manager_email[0]['email']; //var_dump($user_id); die();\n\n $result = Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$team_manager' WHERE meta_key = 'team' AND uid = '$user_id' AND meta_value = ''\")->execute();\n }\n\n\n if (isset($result) && $result == 1) {\n Yii::$app->session->setFlash('success', 'User with Email Address <u>' . $useremail . '</u> Successfully Assigned to Manger with Email Address <u>' . $manageremail . '</u>');\n } else {\n Yii::$app->session->setFlash('danger', 'User with Email Address <u>' . $useremail . '</u> is already assiged to other Manger.</u>');\n }\n return $this->redirect(['dv-users/assign_team']);\n } else {\n return $this->render('assign_team', [ 'model' => $model]);\n }\n }",
"public function testUpdateChallenge()\n {\n }",
"public function testUpdateSiteMembershipRequestForPerson()\n {\n }",
"public function update(Request $request, Teamrequest $teamrequest)\n {\n //\n }",
"public function updateOffensiveMethod($offensiveMethodId,$teamId,$action)\n {\n if($action==corruption_rules::ADD_ACTION)\n {\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt+1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }else{\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt-1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }\n\n $query = $this->db->query($queryString);\n }",
"public function quickEdit() {\n if ($this->request->is('post')) {\n $rq_data = $this->request->data;\n $type = $rq_data['type'];\n\n if ($type == 2) {\n $ids = $rq_data['id'];\n $input = $rq_data['input'];\n $now = date('Y-m-d H:i:s');\n if ($this->Team->updateAll(array('name' => \"'$input'\", 'cdate' => \"'$now'\"), array('Team.id' => $ids))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 3) {\n $id = $rq_data['id'];\n $input = $rq_data['input'];\n $cr_data = $rq_data['cr_data'];\n $cr_date = date('Y-m-d H:i:s');\n// $this->Management->query(\"UPDATE management SET team_id = {$id}, update_date = '{$cr_date}' WHERE id = {$input}\");\n\n if ($this->Management->updateAll(array('team_id' => $id, 'update_date' => \"'{$cr_date}'\"), array('id' => $input))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 5) {\n $id = $rq_data['id'];\n $input = $rq_data['input'];\n if ($this->Team->save(array('id' => $id, 'code' => $input))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 6) {\n $ids = $rq_data['ids'];\n foreach ($ids as $v_id) {\n $visible = $this->Team->find('first', array(\n 'conditions' => array('id' => $v_id),\n 'fields' => array('valid')\n ));\n $status = ($visible['Team']['valid'] == 1) ? 0 : 1;\n\n if ($this->Team->save(array('id' => $v_id, 'valid' => $status))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n }\n }\n\n echo json_encode(1);\n exit;\n }\n }",
"public function testUpdateExternalShipment()\n {\n }",
"function addBonusMalusToTeam($teamId, $cause){\r\n //log or other action before editing player's score\r\n //$GLOBALS['link'] = connect();\r\n\t\r\n\tmysqli_query($GLOBALS['link'], 'insert into specialteamlog(causeId, teamId, scoreImpact) VALUES ('.$cause['id'].', '.$teamId.', '.$cause['value'].');') or die(mysqli_error($GLOBALS['link']));\r\n return mysqli_affected_rows($GLOBALS['link']);\r\n}",
"public function testUpdateSuperfund()\n {\n }",
"public function testUpdateSurvey0()\n {\n }",
"public function testUpdateSurvey0()\n {\n }",
"public function userUpdate(Event $event){\n $em = $this->getServiceLocator()->get('Omeka\\EntityManager');\n $entity = $event->getParam('entity');\n $request = $event->getParam('request');\n $operation = $request->getOperation();\n $error_store = $event->getParam('errorStore');\n\n if ($operation == 'update' ){\n $user_id = $request->getId();\n\n //stop if teams aren't part of the update\n if (array_key_exists('o-module-teams:Team', $request->getContent())){\n //array of team ids\n\n if ($user_role = $this->getUser()->getRole() == 'global_admin') {//remove the user's teams\n $user = $em->getRepository('Omeka\\Entity\\User')->findOneBy(['id' => $user_id]);\n\n $pre_teams = $em->getRepository('Teams\\Entity\\TeamUser')->findBy(['user' => $user_id]);\n\n foreach ($pre_teams as $pre_team):\n if ($pre_team->getCurrent()){\n $current_team_id = $pre_team->getTeam()->getId();\n }\n $em->remove($pre_team);\n endforeach;\n $em->flush();\n $current_team_id = isset($current_team_id )? $current_team_id : 0;\n\n //add the teams from the form\n $teams = $em->getRepository('Teams\\Entity\\Team');\n foreach ($request->getContent()['o-module-teams:Team'] as $team_id):\n $team_id = (int) $team_id;\n\n //adding new team from the user form, indicated by an id of 0\n if ($team_id === 0){\n $u_name = $request->getContent()['o:name'];\n $team_name = sprintf(\"%s's team\", $u_name);\n $team_exists = $em->getRepository('Teams\\Entity\\Team')->findOneBy(['name'=>$team_name]);\n if ($team_exists){\n $messanger = new Messenger();\n $messanger->addWarning(\"The team you tried to add already exists. Added user to the team.\");\n $team = $team_exists;\n\n\n } else{\n $team = new Team();\n $team->setName($team_name);\n $team->setDescription(sprintf('A team automatically generated for new user %s', $u_name));\n $em->persist($team);\n $em->flush();\n }\n\n } else {\n $team = $teams->findOneBy(['id'=> $team_id]);\n }\n\n //get it this way because the roles are added dynamically as js and not part of pre-baked form\n $role_id = $request->getContent()['o-module-teams:TeamRole'][$team_id];\n $role = $em->getRepository('Teams\\Entity\\TeamRole')\n ->findOneBy(['id'=>$role_id]);\n\n $team_user_exists = $em->getRepository('Teams\\Entity\\TeamUser')\n ->findOneBy(['team'=>$team->getId(), 'user'=>$user_id]);\n\n if ($team_user_exists){\n echo $team_user_exists->getId();\n } else {\n $team_user = new TeamUser($team,$user,$role);\n $em->persist($team_user);\n if ($team_id == $current_team_id){\n $team_user->setCurrent(true);\n }\n $em->persist($team_user);\n\n //this is not ideal to flush each iteration, but it is how to check to make sure they didn't\n //TODO: catch this in chosen-trigger.js instead\n $em->flush();\n }\n\n endforeach;\n\n $em->flush();\n\n //if their current team was removed, just give them a current team from the top of the list\n if (array_key_exists('o-module-teams:Team', $request->getContent())){\n if (! in_array($current_team_id, $request->getContent()['o-module-teams:Team'])){\n $em->getRepository('Teams\\Entity\\TeamUser')->findOneBy(['user' => $user_id])\n ->setCurrent(true);\n $em->flush();\n\n }\n }\n\n }\n\n }\n\n }\n return;\n\n }",
"function renameteam() {\n $this->auth(COMP_ADM_LEVEL);\n $team_id = $this->uri->segment(3);\n $new_name = urldecode($this->uri->segment(4));\n $data['team'] = $this->m_team->updateName($team_id, $new_name);\n $this->teamedit();\n }",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange(0));\n }",
"function updateGameDetails( $dbData, $tournamentID ) {\n\n/* ... write the update back to the DB */\n $this->db->where( 'TournamentID', $tournamentID );\n $this->db->update( 'Tournament', $dbData );\n\n/* ... time to go */\n return;\n }",
"public function update($data)\n {\n $this->db->where('id',$data['id']);\n return $this->db->update('team',$data);\n }",
"function updateUsersTeam($teamIds, $user)\n{\n global $db;\n try {\n $teams = \"DELETE FROM team_users \n WHERE user_id = '\". $user .\"'\";\n \n $statement = $db->prepare($teams);\n $statement->execute(); \n addUsersTeams($teamIds,$user);\n } catch (Exception $exception) {\n throw new Exception($exception->getMessage());\n } \n}",
"function update_match_stats_entered($team_id1, $team_id2, $team1_points, $team2_points, $site, $connection)\n\t{\n\t\t$query = 'UPDATE `teams_profile` SET `num_matches_total`=`num_matches_total`+1';\n\t\t$query .= ' WHERE (`teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2) . ')';\n\t\tif (!($result = $site->execute_query('teams_overview', $query, $connection)))\n\t\t{\n\t\t\tunlock_tables($site, $connection);\n\t\t\t$site->dieAndEndPage('The match count for the teams with id'\n\t\t\t\t\t\t\t\t . sqlSafeString($team_id1) . ' and ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t}\n\t\t\n\t\t// mark both participating teams as active\n\t\t$query = ('UPDATE `teams_overview` SET `deleted`=' . sqlSafeStringQuotes('1')\n\t\t\t\t . ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2)\n\t\t\t\t . ' LIMIT 2');\n\t\tif (!($result = @$site->execute_query('teams_overview', $query, $connection)))\n\t\t{\n\t\t\t$site->dieAndEndPage('Could not mark team with id ' . sqlSafeString($teamid) . ' as active!');\n\t\t}\n\t\t\n\t\t\n\t\t// increase match win count for teams that participated\n\t\tif ($team1_points > $team2_points)\n\t\t{\n\t\t\t// team 1 won\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_won`=`num_matches_won`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match win count for team ' . sqlSafeString($team_id1) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t\t// team 2 lost\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_lost`=`num_matches_lost`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id2);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match lose count for team ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($team1_points < $team2_points)\n\t\t{\n\t\t\t// team 2 won\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_won`=`num_matches_won`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id2);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match win count for team ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t\t// team 1 lost\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_lost`=`num_matches_lost`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match lose count for team ' . sqlSafeString($team_id1) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t}\n\t\t\n\t\t// match entered ended in a draw\n\t\tif (((int) $team1_points) === ((int) $team2_points))\n\t\t{\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_draw`=`num_matches_draw`+1';\n\t\t\t$query .= ' WHERE (`teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2) . ')';\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match draw count for the teams with id'\n\t\t\t\t\t\t\t\t\t . sqlSafeString($team_id1) . ' and ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"function update_player_league($playerID, $leagueID, $player) {\r\n\tforeach($player as $key => $value){\r\n\t\t$values[] = array(\"col\" => $key, \"value\" => $value);\r\n\t}\r\n\t$cond[]= array(\"col\" => \"playerID\", \"value\" => $playerID);\r\n\t$cond[]= array(\"col\" => \"leagueID\", \"value\" => $leagueID);\r\n\r\n\t//print_r($cond);\r\n\t$ID = uli_update_record('player_league', $cond, $values);\r\n\tif ($ID){return TRUE;}\r\n\telse {return FALSE;}\r\n}",
"function update_tournament_player($params,$team_id)\n {\n $this->db->where('tournament_players_id',$tournament_players_id);\n return $this->db->update('tournament_players',$params);\n }",
"public function testUpdateExternalShipmentCustomFields()\n {\n }",
"public function update_opportunity() {\n\t\tif($this->session->userdata('uid')){\n\t\t\ttry {\n\t\t\t\t$given_data = array(\n\t\t\t\t\t'files' \t\t=> $_FILES,\n\t\t\t\t\t'stage_closed_date' => $this->input->post('stage_closed_date'),\n\t\t\t\t\t'stage_value' \t=> $this->input->post('stage_value'),\n\t\t\t\t\t'stage_numbers' => $this->input->post('stage_numbers'),\n\t\t\t\t\t'stage_rate'\t=> $this->input->post('stage_rate'),\n\t\t\t\t\t'stage_score'\t=> $this->input->post('stage_score'),\n\t\t\t\t\t'stage_customer_code'=>$this->input->post('stage_customer_code'),\n\t\t\t\t\t'stage_priority'=> $this->input->post('stage_priority'),\n\t\t\t\t\t'stage_remarks' => $this->input->post('stage_remarks'),\n\t\t\t\t\t'opportunity_id'=> $this->input->post('opportunity_id'),\n\t\t\t\t\t'lead_cust_id' \t=> $this->input->post('lead_cust_id'),\n\t\t\t\t\t'stage_id' \t\t=> $this->input->post('stage_id'),\n\t\t\t\t\t'cycle_id' \t\t=> $this->input->post('cycle_id'),\n\t\t\t\t\t'sell_type' \t=> $this->input->post('sell_type'),\n\t\t\t\t\t'mapping_id'\t=> uniqid(rand()),\n\t\t\t\t\t'user_id'\t\t=> $this->session->userdata('uid'),\n\t\t\t\t\t'contact_list'\t=> $this->input->post('contact_list')\n\t\t\t\t);\n\t\t\t\tif (($given_data['stage_closed_date'] == '0000-00-00') || ($given_data['stage_closed_date'] == '')) {\n\t\t\t\t\t$given_data['stage_closed_date'] = null;\n\t\t\t\t}\n\t\t\t\t$upload = $this->upload_file($given_data);\n\t\t\t\tif ($upload == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n $opp_data= $this->opp_sales->stage_owner($given_data['opportunity_id']); // gets all data from opportunity details\n $stage_manager_owner_id=$opp_data[0]->stage_manager_owner_id;\n\t\t\t\t$log_attr_data = array(\n\t\t\t\t\t'mapping_id' => $given_data['mapping_id'],\n\t\t\t\t\t'opportunity_id'=> $given_data['opportunity_id'],\n\t\t\t\t\t'stage_id'=> $given_data['stage_id'],\n\t\t\t\t\t'user_id'=> $given_data['user_id'],\n 'opp_numbers'=>$stage_manager_owner_id,\n\t\t\t\t\t'opp_close_date'=> $given_data['stage_closed_date'],\n\t\t\t\t\t'oppo_rate' => $given_data['stage_rate'],\n\t\t\t\t\t'oppo_score' => $given_data['stage_score'],\n\t\t\t\t\t'oppo_customer_code' => $given_data['stage_customer_code'],\n\t\t\t\t\t'oppo_priority' => $given_data['stage_priority'],\n\t\t\t\t\t'timestamp'=> date('Y-m-d H:i:s'),\n\t\t\t\t\t'remarks'=> $given_data['stage_remarks']\n\t\t\t\t);\n\t\t\t\t$this->opp_common->log_attr($log_attr_data);\n\n\n\t\t\t\t$oppo_attr = $this->opp_common->fetch_oppoAttr($given_data['opportunity_id']);\n\t\t\t\tif ($oppo_attr == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t$changed_attr = array();\n\t\t\t\t/*if ($oppo_attr[0]->numbers != $given_data['stage_numbers']) {\n\t\t\t\t\t$changed_attr['opportunity_numbers'] = $given_data['stage_numbers'];\n\t\t\t\t}*/\n\t\t\t\tif ($oppo_attr[0]->close_date != $given_data['stage_closed_date']) {\n\t\t\t\t\t$changed_attr['opportunity_date'] = $given_data['stage_closed_date'];\n\t\t\t\t}\n\t\t\t /*\tif ($oppo_attr[0]->value != $given_data['stage_value']) {\n\t\t\t\t\t$changed_attr['opportunity_value'] = $given_data['stage_value'];\n\t\t\t\t}*/\n\t\t\t\tif ($oppo_attr[0]->rate != $given_data['stage_rate']) {\n\t\t\t\t\t$changed_attr['opportunity_rate'] = $given_data['stage_rate'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->score != $given_data['stage_score']) {\n\t\t\t\t\t$changed_attr['opportunity_score'] = $given_data['stage_score'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->customer_code != $given_data['stage_customer_code']) {\n\t\t\t\t\t$changed_attr['opportunity_customer_code'] = $given_data['stage_customer_code'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->priority != $given_data['stage_priority']) {\n\t\t\t\t\t$changed_attr['opportunity_priority'] = $given_data['stage_priority'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->stage != $given_data['stage_id']) {\n\t\t\t\t\t$changed_attr['opportunity_stage'] = $given_data['stage_id'];\n\t\t\t\t}\n\t\t\t\t$this->opp_common->updateOpportunity($changed_attr, $given_data['opportunity_id']);\n\n\t\t\t\t$log_trans_data = array(\n\t\t\t\t\t'mapping_id' => $given_data['mapping_id'],\n\t\t\t\t\t'opportunity_id'=> $given_data['opportunity_id'],\n\t\t\t\t\t'lead_cust_id' => $given_data['lead_cust_id'],\n\t\t\t\t\t'from_user_id'=> $given_data['user_id'],\n\t\t\t\t\t'to_user_id'=> $given_data['user_id'],\n\t\t\t\t\t'cycle_id' => $given_data['cycle_id'],\n\t\t\t\t\t'stage_id' => $given_data['stage_id'],\n\t\t\t\t\t'module' => 'sales',\n\t\t\t\t\t'action' => 'updated',\n\t\t\t\t\t'timestamp'=> date('Y-m-d H:i:s'),\n\t\t\t\t\t'sell_type' => $given_data['sell_type'],\n\t\t\t\t\t'remarks' => $given_data['stage_remarks'],\n\t\t\t\t);\n\t\t\t\t$updateStatus=$this->opp_common->map_opportunity(array(0 => $log_trans_data));\n\t\t\t\t$finalArray = array('errors' => array(), 'status' => $updateStatus);\n\t\t\t\techo(json_encode($finalArray));\n\t\t\t} catch (LConnectApplicationException $e) {\n\t\t\t\techo $this->exceptionThrower($e);\n\t\t\t}\n\t\t}else{\n\t\t\tredirect('indexController');\n\t\t}\n\t}",
"public function testUpdateNotOwnCreated()\r\n {\r\n //create teacher user\r\n $teacher = $this->CreateTeacher();\r\n $lisUser = $this->CreateTeacherUser($teacher);\r\n\r\n //now we have created teacheruser set to current controller\r\n $this->controller->setLisUser($lisUser);\r\n $this->controller->setLisPerson($teacher);\r\n\r\n //create other teacher user\r\n $otherTeacher = $this->CreateTeacher();\r\n $otherLisUser = $this->CreateTeacherUser($otherTeacher);\r\n\r\n //$name = uniqid() . 'Name';\r\n $subjectRound = $this->CreateSubjectRound();\r\n $student = $this->CreateStudent();\r\n //$anotherTeacher = $this->CreateTeacher();\r\n \r\n\r\n $independentWork = $this->CreateIndependentWork([\r\n 'name' => uniqid() . 'Name',\r\n 'duedate' => new \\DateTime,\r\n 'description' => uniqid() . ' Description for independentwork',\r\n 'durationAK' => (int) uniqid(),\r\n 'subjectRound' => $subjectRound->getId(),\r\n 'teacher' => $teacher->getId(),\r\n 'student' => $student->getId(),\r\n 'createdBy' => $otherLisUser->getId()\r\n ]);\r\n\r\n //$subjectRoundIdOld = $independentWork->getSubjectRound()->getId();\r\n //$studentIdOld = $independentWork->getStudent()->getId();\r\n //$teacherIdOld = $independentWork->getTeacher()->getId();\r\n\r\n $this->request->setMethod('put');\r\n $this->routeMatch->setParam('id', $independentWork->getId());\r\n\r\n $this->request->setContent(http_build_query([\r\n 'student' => $this->CreateStudent()->getId(),\r\n 'subjectRound' => $this->CreateSubjectRound()->getId(),\r\n 'teacher' => $teacher->getId(),\r\n ]));\r\n\r\n //fire request\r\n $result = $this->controller->dispatch($this->request);\r\n $response = $this->controller->getResponse();\r\n\r\n $this->PrintOut($result, false);\r\n\r\n $this->assertEquals(200, $response->getStatusCode());\r\n $this->assertEquals(false, $result->success);\r\n $this->assertEquals('SELF_CREATED_RESTRICTION', $result->message);\r\n }",
"function update_teammember($TeamMemberId,$params)\n {\n $this->db->where('TeamMemberId',$TeamMemberId);\n return $this->db->update('TeamMember',$params);\n }",
"function update_general_info($usernameDB, $passwordDB, $email, $first_name_update, $last_name_update, $birthday, $member_address, $member_apartment, $member_city, $member_state, $member_zip, $member_home_phone, $member_cell_phone, $season, $yearGraduate, $pledgeClass) {\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t//Update any general information that has been changed.\n\t$update = array();\n\t\n\tif(trim($first_name_update) !== \"\") {\n\t $update[] = \"first_name = :first_name\";\n\t}\n\t\n\tif(trim($last_name_update) !==\"\") {\n\t\t$update[] = \"last_name = :last_name\";\n\t}\n\t\n\tif(trim($season) !== \"\") {\n\t $update[] = \"graduation_season = :season\";\n\t}\n\t\n\tif(trim($yearGraduate) !==\"\") {\n\t\t$update[] = \"graduation_year = :year\";\n\t}\n\t\n\tif(trim($pledgeClass) !==\"\") {\n\t\t$update[] = \"pledge_class = :pledge_class\";\n\t}\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($first_name_update) !== \"\") {\n\t $stmt->bindParam(\":first_name\", $first_name_update);\n\t }\n\t \n\t if(trim($last_name_update) !== \"\") {\n\t $stmt->bindParam(\":last_name\", $last_name_update);\n\t }\n\t \n\t if(trim($season) !== \"\") {\n\t $stmt->bindParam(\":season\", $season);\n\t }\n\t \n\t if(trim($yearGraduate) !== \"\") {\n\t $stmt->bindParam(\":year\", $yearGraduate);\n\t }\n\t \t \n\t if(trim($pledgeClass) !== \"\") {\n\t $stmt->bindParam(\":pledge_class\", $pledgeClass);\n\t }\n\n\t $stmt->execute();\n\t}\t\n\t\n\t//Connect to the members_contact\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t$update = array();\n\t\n\tif(trim($birthday) !== \"\") {\n\t $update[] = \"date_of_birth = :birthday\";\n\t}\n\t\n\tif(trim($member_address) !== \"\") {\n\t\t$update[] = \"school_address = :member_address\";\n\t}\n\t\n\tif(trim($member_apartment) !== \"\") {\n\t\t$update[] = \"apt = :member_apartment\";\n\t}\n\t\n\tif(trim($member_city) !== \"\") {\n\t\t$update[] = \"city = :member_city\";\n\t}\n\t\n\tif(trim($member_state) !== \"\") {\n\t\t$update[] = \"state = :member_state\";\n\t}\n\t\n\tif(trim($member_zip) !== \"\") {\n\t\t$update[] = \"zip_code = :member_zip_code\";\n\t}\n\t\n\tif(trim($member_home_phone) !== \"\") {\n\t\t$update[] = \"home_phone = :member_home_phone\";\n\t}\n\t\n\tif(trim($member_cell_phone) !== \"\") {\n\t\t$update[] = \"cell_phone = :member_cell_phone\";\n\t}\n\t\n\t\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members_contact SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($birthday) !== \"\") {\n\t $stmt->bindParam(\":birthday\", $birthday);\n\t }\n\t \n\t if(trim($member_address) !== \"\") {\n\t\t $stmt->bindParam(\":member_address\", $member_address);\n\t }\n\t \n\t if(trim($member_apartment) !== \"\") {\n\t\t $stmt->bindParam(\":member_apartment\", $member_apartment);\n\t }\n\t \n\t if(trim($member_city) !== \"\") {\n\t\t $stmt->bindParam(\":member_city\", $member_city);\n\t }\n\t \n\t if(trim($member_state) !== \"\") {\n\t\t $stmt->bindParam(\":member_state\", $member_state);\n\t }\n\t \n\t if(trim($member_zip) !== \"\") {\n\t\t $stmt->bindParam(\":member_zip_code\", $member_zip);\n\t }\n\t \n\t if(trim($member_home_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_home_phone\", $member_home_phone);\n\t }\n\t \n\t if(trim($member_cell_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_cell_phone\", $member_cell_phone);\n\t }\n\n\t $stmt->execute();\n\t}\t\n}",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->btwServer->adminForceTeamChange(0));\n }",
"public function testUpdatePayrun()\n {\n }",
"public function update() {\n if(!$this->request->is('restful')) {\n $targetCoPersonId = $this->request->data['CoGroupMember']['co_person_id'];\n $userCoPersonId = $this->Session->read('Auth.User.co_person_id');\n $requesterIsAdmin = $this->Role->isCoAdmin($userCoPersonId, $this->cur_co['Co']['id'])\n || $this->Role->identifierIsCmpAdmin($this->Session->read('Auth.User.username'));\n \n try {\n $this->CoGroupMember->updateMemberships($targetCoPersonId,\n $this->request->data['CoGroupMember']['rows'],\n $userCoPersonId,\n $requesterIsAdmin);\n \n $this->Flash->set(_txt('rs.saved'), array('key' => 'success'));\n }\n catch(Exception $e) {\n $this->Flash->set($e->getMessage(), array('key' => 'error'));\n }\n \n // Issue redirect\n $redir = array();\n $redir['controller'] = 'co_groups';\n $redir['action'] = 'select';\n $redir['co'] = $this->cur_co['Co']['id'];\n\n // If the current user is not the same as the target CO Person for whom\n // memberships are being managed then include the copersonid parameter.\n if($targetCoPersonId != $userCoPersonId) {\n $redir['copersonid'] = $targetCoPersonId;\n }\n\n $this->redirect($redir);\n }\n }",
"public function update(Request $request)\n {\n $match = Match::where('id', $request->match_id)->first();\n $match->host_team_result = $request->host_goals;\n $match->guest_team_result = $request->guest_goals;\n\n\n// //update host team standings\n $host_team_standings = Standing::where('team_id', $match->host_team_id)->first();\n $host_team_standings->gp += 1;\n//\n// //update guest team standings\n $guest_team_standings = Standing::where('team_id', $match->guest_team_id)->first();\n $guest_team_standings->gp += 1;\n\n// //update win results\n if ($request->host_goals > $request->guest_goals) {\n $host_team_standings->w += 1;\n $host_team_standings->pts += 3;\n $guest_team_standings->l += 1;\n $guest_team_standings->pts += 1;\n } else if ($request->host_goals < $request->guest_goals)\n {\n\n $host_team_standings->l += 1;\n $host_team_standings->pts += 1;\n $guest_team_standings->w += 1;\n $guest_team_standings->pts += 3;\n } else if ($request->host_goals == $request->guest_goals)\n {\n $host_team_standings->d += 1;\n $guest_team_standings->d += 1;\n }\n $host_team_standings->save();\n $guest_team_standings->save();\n $match->save();\n\n return response()->json(['success'=> \"Results updated\"]);\n }",
"public function update(Request $request,Project $project, ScrumTeam $scrumTeam)\n {\n //\n }",
"public function massCriteriaTwoAction()\n {\n $ifeedbackIds = $this->getRequest()->getParam('ifeedback');\n if (!is_array($ifeedbackIds)) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_kst')->__('Please select instructor feedbacks.')\n );\n } else {\n try {\n foreach ($ifeedbackIds as $ifeedbackId) {\n $ifeedback = Mage::getSingleton('bs_kst/ifeedback')->load($ifeedbackId)\n ->setCriteriaTwo($this->getRequest()->getParam('flag_criteria_two'))\n ->setIsMassupdate(true)\n ->save();\n }\n $this->_getSession()->addSuccess(\n $this->__('Total of %d instructor feedbacks were successfully updated.', count($ifeedbackIds))\n );\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_kst')->__('There was an error updating instructor feedbacks.')\n );\n Mage::logException($e);\n }\n }\n $this->_redirect('*/*/index');\n }",
"public function updateSportive()\r\n\t{\r\n\t\t// Donnees\r\n\t\t$eventId = Bn::getValue('event_id');\r\n\t\t$oEvent = new Oevent($eventId);\r\n\t\t// Controle de l'autorisation\r\n\t\tif ( $oEvent->getVal('ownerid') != Bn::getValue('user_id') && !Oaccount::isLoginAdmin() ) return false;\r\n\r\n\t\t// Donnees du tournoi\r\n\t\t$oEvent->setVal('scoringsystem', Bn::getValue('scoringsystem'));\r\n\t\t$oEvent->setVal('ranksystem', Bn::getValue('ranksystem'));\r\n\t\t$oEvent->setVal('catage', Bn::getValue('catage'));\r\n\t\t$oEvent->setVal('nature', Bn::getValue('nature'));\r\n\t\t$oEvent->setVal('level', Bn::getValue('level'));\r\n\t\t$type = $oEvent->getVal('type');\r\n\t\tif (!$oEvent->isIc())\r\n\t\t{\r\n\t\t\t$oEvent->setVal('nbdrawmax', Bn::getValue('nbdrawmax'));\r\n\t\t\t$oEvent->save();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$weight = Bn::getValue('teamweight');\r\n\t\t\tif ($weight != $oEvent->getVal('teamweight'))\r\n\t\t\t{\r\n\t\t\t\t$oEvent->setVal('teamweight', Bn::getValue('teamweight'));\r\n\t\t\t\t$oEvent->save();\r\n\t\t\t\t$teamIds = $oEvent->getTeams();\r\n\t\t\t\tforeach($teamIds as $teamId)\r\n\t\t\t\t{\r\n\t\t\t\t\t$oTeam = new Oteam($teamId);\r\n\t\t\t\t\t$points = $oTeam->weight();\r\n\t\t\t\t\tunset($oTeam);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t// Message de fin\r\n\t\t$body = new Body();\r\n\t\t$body->addWarning(LOC_LABEL_PREF_REGISTERED);\r\n\t\t$d = $body->addDiv('', 'bn-div-btn');\r\n\t\t$d->addButtonCancel('btnCancel', LOC_BTN_CLOSE);\r\n\r\n\t\t// Envoi au navigateur\r\n\t\t$res = array('content' => $body->toHtml(),\r\n\t\t\t\t\t'title' => LOC_ITEM_SPORTIVE);\r\n\t\techo Bn::toJson($res);\r\n\t}",
"public function editUserTeam_post() {\n /* Validation section */\n $this->form_validation->set_rules('SessionKey', 'SessionKey', 'trim|required|callback_validateSession');\n $this->form_validation->set_rules('SeriesGUID', 'SeriesGUID', 'trim|required|callback_validateEntityGUID[Series,SeriesID]');\n $this->form_validation->set_rules('MatchGUID', 'MatchGUID', 'trim|required|callback_validateEntityGUID[Matches,MatchID]');\n $this->form_validation->set_rules('UserTeamGUID', 'UserTeamGUID', 'trim|required|callback_validateEntityGUID[User Teams,UserTeamID]');\n $this->form_validation->set_rules('UserTeamType', 'UserTeamType', 'trim|required|in_list[Draft]');\n $this->form_validation->set_rules('UserTeamName', 'UserTeamName', 'trim');\n $this->form_validation->set_rules('UserTeamPlayers', 'UserTeamPlayers', 'trim');\n\n $this->form_validation->validation($this); /* Run validation */\n /* Validation - ends */\n\n if (!$this->SnakeDrafts_model->editUserTeam(array_merge($this->Post, array('SeriesID' => $this->SeriesID)), $this->UserTeamID, $this->MatchID)) {\n $this->Return['ResponseCode'] = 500;\n $this->Return['Message'] = \"An error occurred, please try again later.\";\n } else {\n $this->Return['Message'] = \"Team updated successfully.\";\n }\n }",
"function setTeam($s)\n\t{\n\t\t$this->Info['Team'] = $s;\n\t\tupdateTableByUser('Developer', 'Team', $s, $this->Username);\n\t}",
"public function update_about_us_team_info($data){\r\n if($_FILES['member_image']['name']) {\r\n $this->imageUnlink($data);/*this code for image delete(unlink) from the folder*/\r\n $img_url = $this->save_image_info(); /*this code for calling a image function*/\r\n\r\n $query = \"UPDATE tbl_aboutus_team SET member_name='$data[member_name]', member_designation='$data[member_designation]', member_sort_desc='$data[member_sort_desc]',\r\n facebook_link='$data[facebook_link]', twitter_link='$data[twitter_link]', linkedin_link='$data[linkedin_link]', googleplus_link='$data[googleplus_link]', member_image='$img_url', publication_status='$data[publication_status]' WHERE team_member_id='$data[team_member_id]'\";\r\n if (mysqli_query($this->db_connect, $query)) {\r\n session_start();\r\n $_SESSION['message'] = \"About us Team member Information Updated Successfully!\";\r\n header('Location: manage_team.php');\r\n } else {\r\n die(\"Query Problem! \" . mysqli_error($this->db_connect));\r\n }\r\n }else{\r\n $query = \"UPDATE tbl_aboutus_team SET member_name='$data[member_name]', member_designation='$data[member_designation]', member_sort_desc='$data[member_sort_desc]',\r\n facebook_link='$data[facebook_link]', twitter_link='$data[twitter_link]', linkedin_link='$data[linkedin_link]', googleplus_link='$data[googleplus_link]', publication_status='$data[publication_status]' WHERE team_member_id='$data[team_member_id]'\";\r\n if (mysqli_query($this->db_connect, $query)) {\r\n session_start();\r\n $_SESSION['message'] = \"About us Team member Information Updated Successfully!\";\r\n header('Location: manage_team.php');\r\n } else {\r\n die(\"Query Problem! \" . mysqli_error($this->db_connect));\r\n }\r\n }\r\n }",
"public function update(Request $request, team_members $team_members)\n {\n //\n }",
"function myPear_update21(){\n\n // Clean up\n $q=myPear_db()->qquery(\"SELECT * FROM zzz_units WHERE u_rank = 'RO'\",1);\n while($r=myPear_db()->next_record($q)) b_debug::print_r($r,'record');\n \n myPear_db()->qquery(\"DELETE FROM zzz_units WHERE u_rank = 'RO'\",1);\n myPear_db()->qquery(\"SELECT * FROM zzz_list_members WHERE lm_key='' AND lm_value=''\",1); \n myPear_db()->qquery(\"DELETE FROM zzz_list_members WHERE lm_key='' AND lm_value=''\",1); \n $q = myPear_db()->qquery(\"SELECT l_id FROM zzz_lists WHERE l_member_title='department'\",1);\n while($r = myPear_db()->next_record($q)){\n myPear_db()->qquery(\"DELETE FROM zzz_lists WHERE l_id=$r[l_id]\",1);\n myPear_db()->qquery(\"DELETE FROM zzz_list_members WHERE lm_lid=$r[l_id]\",1);\n }\n myPear_db()->qquery(\"UPDATE zzz_organizations SET org_name='SU/Fysikum' WHERE org_name='Stockholm U/Fysikum'\",1);\n\n\n // NO. Write module name to the database for the bLists\n foreach(array('zzz_units'=> 'u',\n\t\t'zzz_lists'=> 'l',\n\t\t) as $t=>$prefix){\n\n if (myPear_db()->columnExists(\"${prefix}_module\",$t)){\n myPear_db()->query(\"ALTER TABLE `$t` DROP `${prefix}_module`\");\n myPear_db()->reset_cache();\n }\n }\n \n // Upgrade Organozation\n if (!myPear_db()->columnExists('org_roles','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` ADD `org_roles` VARCHAR(240) NOT NULL AFTER `org_theme`\",1); \n myPear_db()->reset_cache();\n }\n\n // Keep u_name\n $type = myPear_db()->getColumnType('zzz_units','u_rank');\n if (strToLower($type) != 'int'){\n myPear_db()->qquery(\"ALTER TABLE `zzz_units` CHANGE `u_rank` `u_rank` INT NOT NULL\"); \n }\n\n myPear_db()->qquery(\"UPDATE zzz_lists SET l_class = 'bList_eaEmpRecords' WHERE l_class = 'bList_ea'\",1);\n foreach(array('zzz_units'=>array(//'u_name',\n\t\t\t\t //'u_member_title',\n\t\t\t\t ),\n\t\t'zzz_lists'=>array('l_rank',\n\t\t\t\t //'l_name',\n\t\t\t\t //'l_member_title',\n\t\t\t\t )) as $t=>$ff){\n foreach($ff as $f)\n if (myPear_db()->columnExists($f,$t)) myPear_db()->query(\"ALTER TABLE `$t` DROP `$f`\");\n }\n myPear_db()->reset_cache();\n}",
"public function testUpdateExtraFields(): void { }",
"public function testUpdateMyContact()\n {\n\n }",
"function save_team_info( $post_id ) {\n\n // Check if our nonce is set.\n if ( ! isset( $_POST['team_nonce'] ) )\n return $post_id;\n\n $nonce = $_POST['team_nonce'];\n\n // Verify that the nonce is valid.\n if ( ! wp_verify_nonce( $nonce, 'team_info' ) )\n return $post_id;\n\n // If this is an autosave, our form has not been submitted, so we don't want to do anything.\n if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) \n return $post_id;\n\n // Check the user's permissions.\n if ( 'team' == $_POST['post_type'] ) {\n\n if ( ! current_user_can( 'edit_page', $post_id ) )\n return $post_id;\n \n } else {\n\n if ( ! current_user_can( 'edit_post', $post_id ) )\n return $post_id;\n }\n\n /* OK, its safe for us to save the data now. */\n\n // Sanitize user input.\n $mydata = $_POST['_team_announcements'];\n\n // Update the meta field in the database.\n update_post_meta( $post_id, '_team_announcements', $mydata );\n}",
"public function testUpdateChallengeActivityTemplate()\n {\n }",
"public function edit_team($team_id) \n {\n $tm = $this->CreateTeamModel->view_team_details($team_id);\n \n //validate form input\n \n $this->form_validation->set_rules('name', 'Team Name', 'trim|required|alpha_numeric');\n $this->form_validation->set_rules('scrum', 'scrum', 'required|callback_check_if_scrum_master_selected');\n\t if (isset($_POST) && !empty($_POST)) {\t\n \n\t\t$data = array(\n 'name' => $this->input->post('name'),\n 'scrum_master' => $this->input->post('scrum'),\n \n );\n \n if ($this->form_validation->run() == false) {\n } else {\n if ($this->CreateTeamModel->update_team($team_id, $data)) {\n// if($this->input->post('project')!= 0){\n if($this->CreateTeamModel->insert_team($team_id)) {\n } \n// }\n echo '<script>alert(\"Team has been updated successfully!\");</script>';\n }else{\n echo '<script>alert(\"Team updation failed!\");</script>';\n }\n }\n \n $this->data['tm'] = $tm;\n\n $name = array(\n\t\t'name' \t=> 'name',\n\t\t'id' \t=> 'name',\n\t\t'type' \t=> 'text',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('name', $tm['name'])\n );\n $this->data['scrum_master'] = array(\n 'name' \t=> 'scrum',\n\t\t'id' \t=> 'scrum',\n\t\t'type' \t=> 'select',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('scrum', $tm['scrum_master'])\n );\n $project_id = $this->CreateTeamModel->get_project($team_id);\n $this->data['project'] = array(\n 'name' \t=> 'project',\n\t\t'id' \t=> 'project',\n\t\t'type' \t=> 'select',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('project', $project_id['project_id'])\n );\n \n $member = $this->CreateTeamModel->view_team_details($team_id);\n $team_member = $this->CreateTeamModel->view_team_members($team_id);\n $team= $this->CreateTeamModel->load_team_members($team_id);\n $developer= $this->CreateTeamModel->get_developers();\n $project = $this->CreateTeamModel->load_projects($team_id);\n $this->load->view('add_members_view',compact(\"member\",\"team_member\",\"team\",\"developer\",\"project\",\"project_id\",\"name\"));\n \n }\n \n }",
"function amo_update($entity, $data, $search_similiar = false, $need_prepare = true)\n{\n if (substr($entity, -1) == 's') {\n $link = $entity;\n $many_items = true;\n } else {\n if ($entity == 'company') {\n $link = 'companies';\n } else {\n $link = $entity . 's';\n }\n }\n\n if (isset($data['search']) && !empty($data['search'])) {\n $search_similiar = true;\n }\n\n if ($need_prepare) {\n $item = prepare_data($entity, $data, $search_similiar);\n } else {\n $item = $data;\n }\n\n if ($item) {\n if (!$many_items) {\n $items = [$item];\n } else {\n $items = $item;\n }\n\n foreach ($items as $key => $item) {\n if (isset($item['id'])) {\n\n // no_update ставится в случае когда данные контакта совпадают с данными в амо.\n if ($item['no_update']) {\n return $item['id'];\n }\n\n $action_msg = 'Обновлён ';\n $ids_to_update[] = $item['id'];\n $item['updated_at'] = time(); // + 1000\n $sorted_data['update'][] = $item;\n\n } else {\n $ids_to_add[] = $item['id'];\n $action_msg = 'Добавлен ';\n $sorted_data['add'][] = $item;\n }\n }\n\n/* if (!empty($ids_to_update)) {\nlogw('Обновляем ' . $entity . ' id ' . implode(', ', $ids_to_update));\n}\n\nif (!empty($ids_to_add)) {\nlogw('Добавляем ' . $entity);\n}*/\n\n $output = run_curl($link, $sorted_data);\n\n if (!empty($output['_embedded']['items'])) {\n foreach ($output['_embedded']['items'] as $key => $value) {\n $updated_id[] = $value['id'];\n }\n } else {\n logw('Ошибка обновления');\n logw($output);\n return false;\n }\n\n if (!empty($updated_id)) {\n $updated_id_msg = implode(', ', $updated_id);\n } else {\n logw('Ошибка обновления ' . $entity);\n logw($output);\n return false;\n }\n\n if ($many_items) {\n logw('Обновлены ' . $entity . ' id ' . $updated_id_msg);\n return $updated_id;\n } else {\n logw($action_msg . $entity . ' id ' . $updated_id_msg);\n return $updated_id[0];\n }\n\n } else {\n logw('Ошибка: не получены данные от prepare_data');\n return false;\n }\n}",
"function update_other_info($usernameDB, $passwordDB, $email, $other_first_name, $other_last_name, $other_address, $other_apt, $other_city, $other_state, $other_zip, $other_home, $other_cell, $car_make, $car_model, $car_license, $relation) {\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t//Update any general information that has been changed.\n\t$update = array();\n\t\n\tif(trim($car_make) !== \"\") {\n\t $update[] = \"car_make = :car_make\";\n\t $hasCar = \"hasCar\";\n\t}\n\n\tif(trim($car_model) !== \"\") {\n\t $update[] = \"car_model = :car_model\";\n\t}\n\t\n\tif(trim($car_license) !== \"\") {\n\t $update[] = \"car_license = :car_license\";\n\t}\n\t\n\tif(trim($other_first_name) !== \"\") {\n\t $update[] = \"other_first = :other_first\";\n\t}\n\t\n\tif(trim($other_last_name) !== \"\") {\n\t $update[] = \"other_last = :other_last\";\n\t}\n\t\n\tif(trim($other_address) !== \"\") {\n\t $update[] = \"other_address = :other_address\";\n\t}\n\t\n\tif(trim($other_apt) !== \"\") {\n\t $update[] = \"other_apt = :other_apt\";\n\t}\n\t\n\tif(trim($other_city) !== \"\") {\n\t $update[] = \"other_city = :other_city\";\n\t}\n\t\n\tif(trim($other_state) !== \"\") {\n\t $update[] = \"other_state = :other_state\";\n\t}\n\t\n\tif(trim($other_zip) !== \"\") {\n\t $update[] = \"other_zip = :other_zip\";\n\t}\n\t\n\tif(trim($other_cell) !== \"\") {\n\t $update[] = \"phone_no = :other_phone\";\n\t}\n\t\n\tif(trim($relation) !== \"\") {\n\t $update[] = \"relation = :relation\";\n\t}\n\t\n\tif(trim($car_make) !== \"\") {\n\t $update[] = \"has_car = :hasCar\";\n\t}\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members_contact SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($car_make) !== \"\") {\n\t $stmt->bindParam(\":car_make\", $car_make);\n\t }\n\t \n\t if(trim($car_model) !== \"\") {\n\t $stmt->bindParam(\":car_model\", $car_model);\n\t }\n\t \n\t if(trim($car_license) !== \"\") {\n\t $stmt->bindParam(\":car_license\", $car_license);\n\t }\n\t \n\t if(trim($other_first_name) !== \"\") {\n\t $stmt->bindParam(\":other_first\", $other_first_name);\n\t }\n\t \n\t if(trim($other_last_name) !== \"\") {\n\t $stmt->bindParam(\":other_last\", $other_last_name);\n\t }\n\t \n\t if(trim($other_address) !== \"\") {\n\t $stmt->bindParam(\":other_address\", $other_address);\n\t }\n\t \n\t if(trim($other_apt) !== \"\") {\n\t $stmt->bindParam(\":other_apt\", $other_apt);\n\t }\n\t \n\t if(trim($other_city) !== \"\") {\n\t $stmt->bindParam(\":other_city\", $other_city);\n\t }\n\t \n\t if(trim($other_state) !== \"\") {\n\t $stmt->bindParam(\":other_state\", $other_state);\n\t }\n\t \n\t if(trim($other_zip) !== \"\") {\n\t $stmt->bindParam(\":other_zip\", $other_zip);\n\t }\n\t \n\t if(trim($other_cell) !== \"\") {\n\t $stmt->bindParam(\":other_phone\", $other_cell);\n\t }\n\t \n\t if(trim($relation) !== \"\") {\n\t $stmt->bindParam(\":relation\", $relation);\n\t }\n\t \n\t if(trim($car_make) !== \"\") {\n\t\t $stmt->bindParam(\":hasCar\", $hasCar);\n\t\t}\n\n\t $stmt->execute();\n\t}\n}",
"function action_update() {\n global $CURMAN;\n\n $stuid = $this->required_param('association_id', PARAM_INT);\n $clsid = $this->required_param('id', PARAM_INT);\n $users = $this->required_param('users');\n\n $uid = key($users);\n $user = current($users);\n\n $sturecord = array();\n $sturecord['id'] = $stuid;\n $sturecord['classid'] = $clsid;\n $sturecord['userid'] = $uid;\n\n $startyear = $user['startyear'];\n $startmonth = $user['startmonth'];\n $startday = $user['startday'];\n $sturecord['enrolmenttime'] = mktime(0, 0, 0, $startmonth, $startday, $startyear);\n\n $endyear = $user['endyear'];\n $endmonth = $user['endmonth'];\n $endday = $user['endday'];\n $sturecord['completetime'] = mktime(0, 0, 0, $endmonth, $endday, $endyear);\n\n $sturecord['completestatusid'] = $user['completestatusid'];\n $sturecord['grade'] = $user['grade'];\n $sturecord['credits'] = $user['credits'];\n $sturecord['locked'] = !empty($user['locked']) ? 1 : 0;\n $stu = new student($sturecord);\n\n if ($stu->completestatusid == STUSTATUS_PASSED &&\n $CURMAN->db->get_field(STUTABLE, 'completestatusid', 'id', $stuid) != STUSTATUS_PASSED) {\n\n $stu->complete();\n } else {\n if (($status = $stu->update()) !== true) {\n echo cm_error('Record not updated. Reason: ' . $status->message);\n }\n }\n\n /// Check for grade records...\n $element = cm_get_param('element', array());\n $newelement = cm_get_param('newelement', array());\n $timegraded = cm_get_param('timegraded', array());\n $newtimegraded = cm_get_param('newtimegraded', array());\n $completionid = cm_get_param('completionid', array());\n $newcompletionid = cm_get_param('newcompletionid', array());\n $grade = cm_get_param('grade', array());\n $newgrade = cm_get_param('newgrade', array());\n $locked = cm_get_param('locked', array());\n $newlocked = cm_get_param('newlocked', array());\n\n foreach ($element as $gradeid => $element) {\n $graderec = array();\n $graderec['id'] = $gradeid;\n $graderec['userid'] = $uid;\n $graderec['classid'] = $clsid;\n $graderec['completionid'] = $element;\n $graderec['timegraded'] = mktime(0, 0, 0, $timegraded[$gradeid]['startmonth'],\n $timegraded[$gradeid]['startday'], $timegraded[$gradeid]['startyear']);\n $graderec['grade'] = $grade[$gradeid];\n $graderec['locked'] = isset($locked[$gradeid]) ? $locked[$gradeid] : '0';\n\n $sgrade = new student_grade($graderec);\n $sgrade->update();\n }\n\n foreach ($newelement as $elementid => $element) {\n $graderec = array();\n $graderec['userid'] = $uid;\n $graderec['classid'] = $clsid;\n $graderec['completionid'] = $element;\n $graderec['timegraded'] = mktime(0, 0, 0, $newtimegraded[$elementid]['startmonth'],\n $newtimegraded[$elementid]['startday'], $newtimegraded[$elementid]['startyear']);\n $graderec['grade'] = $newgrade[$elementid];\n $graderec['locked'] = isset($newlocked[$elementid]) ? $newlocked[$elementid] : '0';\n\n $sgrade = new student_grade($graderec);\n $sgrade->add();\n }\n\n $this->action_default();\n }",
"function action_update()\n {\n $record = $this->m_node->updateRecord();\n\n if ($this->m_postvars['atkcancel']==\"\")\n { \n\n // just before we validate the record we call the preUpdate() to check if the record needs to be modified\n $this->m_node->preUpdate($record);\n\n $this->m_node->validate($record, \"update\");\n\n $error = count($record['atkerror']) > 0;\n foreach (array_keys($record) as $key)\n $error = $error || (is_array($record[$key]) && count($record[$key]['atkerror']) > 0);\n\n if ($error)\n {\n $this->m_node->m_action=\"edit\";\n $page = &$this->getPage();\n $edithandler = $this->m_node->getHandler(\"edit\");\n $page->addContent($edithandler->invoke(\"editPage\", $record));\n }\n else\n {\n if(!$this->m_node->updateDb($record))\n {\n $this->m_node->m_db->rollback();\n if($this->m_node->m_db->getErrorType()==\"user\")\n {\n triggerError($record, 'Error', $this->m_node->m_db->getErrorMsg(), '', '');\n $this->m_node->m_action=\"edit\";\n $page = &$this->getPage();\n $edithandler = $this->m_node->getHandler(\"edit\");\n $page->addContent($edithandler->invoke(\"editPage\", $record));\n }\n else\n {\n $location = $this->m_node->feedbackUrl(\"update\",ACTION_FAILED, $record, $this->m_node->m_db->getErrorMsg());\n $this->m_node->redirect($location);\n }\n }\n else\n {\n $this->m_node->m_db->commit(); \n \n if ($this->m_postvars['atknoclose']==\"\")\n {\n // 'save and close' was clicked\n $location = $this->m_node->feedbackUrl(\"update\", ACTION_SUCCESS, $record, \"\");\n $this->m_node->redirect($location);\n }\n else\n {\n // 'save' was clicked\n $page = &$this->getPage();\n // $this->m_action=\"edit\";\n //update succesful, pk value might be changed so update m_orgkey\n $record[\"atkprimkey\"] = $this->m_node->primaryKey($record);\n \n if ($this->m_node->hasFlag(NF_LOCK))\n { \n $locked = true;\n }\n \n //$this->setOrgKeyValue($record);\n $this->m_node->m_action = \"edit\"; \n $edithandler = $this->m_node->getHandler(\"edit\");\n $editpage = $edithandler->invoke(\"editPage\", $record, $locked);\n $screen = $this->m_node->renderActionPage(\"edit\", $editpage);\n $page->addContent($screen);\n }\n\n }\n }\n }\n else\n {\n // Cancel was pressed\n $location = $this->m_node->feedbackUrl(\"update\", ACTION_CANCELLED, $record);\n $this->m_node->redirect($location);\n }\n }",
"public function testUpdateChallengeTemplate()\n {\n }",
"public function update(Request $request, team $team)\n {\n\n $team->update([\n 'name' => request('name'),\n 'race' => request('race'),\n 'userid' => \\Auth::user()->id,\n 'reroll' => request('reroll'),\n 'rerollValue' => request('rerollValue'),\n 'fanfactor' => request('fanfactor'),\n 'assistantCoach' => request('assistantCoach'),\n 'cheerleader' => request('cheerleader'),\n 'apothecary' => request('apothecary'),\n 'teamValue'=> request('teamValue'),\n 'treasury' => request('treasury')\n ]);\n\n return redirect('/team');\n }",
"public function update() {\n\t\tTournamentDBClient::update($this);\n\t}",
"function myPear_update20(){\n if (cnf_CLI) return;\n if (myPear_db()->columnExists('org_nickname','zzz_organizations')){\n $q = myPear_db()->query(\"SELECT org_id,org_theme,org_nickname FROM zzz_organizations\");\n while ($r = myPear_db()->next_record($q)){\n $update = '';\n if (!empty($r['org_theme']) && !b_cms::themeExists($r['org_theme'])){\n\t$update = \"''\";\n\t$r['org_theme'] = '';\n }\n if ( empty($r['org_theme']) && b_cms::themeExists($r['org_nickname'])){\n\t$update = \"'$r[org_nickname]'\";\n }\n if (!empty($update)){\n\tmyPear_db()->qquery(\"UPDATE zzz_organizations SET org_theme = $update WHERE org_id = $r[org_id]\",1);\n }\n }\n }\n}",
"public function testUpdateSurveyQuestionChoice0()\n {\n }",
"public function testUpdateSurveyQuestionChoice0()\n {\n }",
"public function wpcd_team_save_post( $post_id ) {\n\t\tif ( isset( $_POST['post_type'] ) && 'wpcd_team' == $_POST['post_type'] ) {\n\t\t\t$wpcd_permission_rules = wpcd_filter_input_numeric_array( $_POST['wpcd_permission_rule'] );\n\n\t\t\t$team_id = filter_input( INPUT_POST, 'post_ID', FILTER_SANITIZE_NUMBER_INT );\n\n\t\t\tforeach ( $wpcd_permission_rules as $rule ) {\n\n\t\t\t\t$user_id = (int) sanitize_text_field( $rule['wpcd_team_member'] );\n\t\t\t\t$server_permissions = ! empty( $rule['wpcd_server_permissions'] ) ? $rule['wpcd_server_permissions'] : array();\n\t\t\t\t$server_tab_permissions = ! empty( $rule['wpcd_server_tab_permissions'] ) ? $rule['wpcd_server_tab_permissions'] : array();\n\t\t\t\t$app_permissions = ! empty( $rule['wpcd_app_permissions'] ) ? $rule['wpcd_app_permissions'] : array();\n\t\t\t\t$app_tab_permissions = ! empty( $rule['wpcd_app_tab_permissions'] ) ? $rule['wpcd_app_tab_permissions'] : array();\n\n\t\t\t\t// Combine server_permissions group and server_tab_permissions group into one array.\n\t\t\t\t$server_permissions = array_merge( $server_permissions, $server_tab_permissions );\n\n\t\t\t\t// Combine app_permissions group and app_tab_permissions group into one array.\n\t\t\t\t// Note that as of V 4.6.1 there are no entries for the app_tab_permissions group.\n\t\t\t\t$app_permissions = array_merge( $app_permissions, $app_tab_permissions );\n\n\t\t\t\t$all_passed_permissions = array();\n\t\t\t\t$all_passed_permissions = array_merge( $server_permissions, $app_permissions );\n\n\t\t\t\t$this->wpcd_update_excluded_permissions( $team_id, $user_id, $all_passed_permissions );\n\n\t\t\t\tforeach ( $server_permissions as $server_permission ) {\n\t\t\t\t\t$permission_type_id = (int) sanitize_text_field( $server_permission );\n\t\t\t\t\t$this->wpcd_assign_permissions( $team_id, $user_id, $permission_type_id ); // save to custom table.\n\t\t\t\t}\n\n\t\t\t\tforeach ( $app_permissions as $app_permission ) {\n\t\t\t\t\t$permission_type_id = (int) sanitize_text_field( $app_permission );\n\t\t\t\t\t$this->wpcd_assign_permissions( $team_id, $user_id, $permission_type_id ); // save to custom table.\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected function afterUpdating()\n {\n }",
"public function updateCurrentBestTimes() {\n\t\tforeach ($this->playerBestTimes as $key => $curBest) {\n\t\t\tif (array_key_exists($key, $this->matchScore->blueTeamPlayers)) {\n\t\t\t\t$this->matchScore->blueTeamPlayers[$key]->currentBestTime = $curBest;\n\t\t\t} else if (array_key_exists($key, $this->matchScore->redTeamPlayers)) {\n\t\t\t\t$this->matchScore->redTeamPlayers[$key]->currentBestTime = $curBest;\n\t\t\t}\n\t\t}\n\t}",
"function recruitTeam($cxn,$player,$request)\r\n {\r\n \r\n }",
"function delete_team($teamname) {\n\n $qDelete = \"DELETE FROM authteam WHERE teamname='$teamname'\";\n\n $qUpdateUser = \"UPDATE authuser SET team='Ungrouped' WHERE team='$teamname'\";\n\n if ($teamname == \"Admin\") {\n\n return \"Admin team cannot be deleted.\";\n } elseif ($teamname == \"Ungrouped\") {\n\n return \"Ungrouped team cannot be deleted.\";\n } elseif ($teamname == \"Temporary\") {\n\n return \"Temporary team cannot be deleted.\";\n }\n\n\n\n $link = new mysqli($this->HOST, $this->USERNAME, $this->PASSWORD, $this->DBNAME);\n if ($link->connect_error) {\n die(\"Error al conectarse a la BD $dbname: \" . $mysqli->connect_error);\n }\n\n // OLD CODE - DO NOTE REMOVE\n // $result = mysql_db_query($this->DBNAME, $qUpdateUser);\n // REVISED CODE\n\n $result = $link->query($qUpdateUser);\n\n\n\n // OLD CODE - DO NOT REMOVE\n // $result = mysql_db_query($this->DBNAME, $qDelete);\n // REVISED CODE\n\n $result = $link->query($qDelete);\n\n\n\n return $link->error;\n }",
"public function testUpdateMember()\n {\n }",
"function vitero_update_instance(stdClass $vitero, mod_vitero_mod_form $mform = null) {\n global $DB;\n\n $vitero->timemodified = time();\n $vitero->id = $vitero->instance;\n\n // Get old details.\n if (!$old = $DB->get_record('vitero', array('id' => $vitero->id))) {\n return false;\n }\n $vitero->meetingid = $old->meetingid;\n\n // Update team name if needed.\n if ($vitero->teamname != $old->teamname) {\n if (!vitero_update_team($old->teamid, $vitero->teamname)) {\n return false;\n }\n }\n\n // Update calendar.\n $param = array(\n 'courseid' => $vitero->course,\n 'instance' => $vitero->id,\n 'groupid' => 0,\n 'modulename' => 'vitero'\n );\n $eventid = $DB->get_field('event', 'id', $param);\n if (!empty($eventid)) {\n $event = new stdClass();\n $event->id = $eventid;\n $event->name = $vitero->name;\n $event->description = format_module_intro('vitero', $vitero, $vitero->coursemodule);\n $event->courseid = $vitero->course;\n $event->groupid = 0;\n $event->userid = 0;\n $event->instance = $vitero->id;\n $event->eventtype = 'vitero';\n $event->timestart = $vitero->starttime;\n $event->timeduration = $vitero->endtime - $vitero->starttime;\n $event->visible = 1;\n $event->modulename = 'vitero';\n $calendarevent = calendar_event::load($eventid);\n $calendarevent->update($event);\n }\n\n // Update meeting.\n if (!vitero_update_meeting($vitero)) {\n return false;\n }\n\n return $DB->update_record('vitero', $vitero);\n}",
"public function updateEventData($data, $event_id, $main_organizers, $impl_partners) {\r\n$this->db->where('event_id', $event_id);\r\n$success = $this->db->update('events', $data);\r\nif ($success == 1) {\r\nif (count($main_organizers) > 0) {\r\n$this->saveMainOrganizer($event_id, $main_organizers);\r\n}\r\nif (count($impl_partners) > 0) {\r\n$this->saveImplPartners($event_id, $impl_partners);\r\n}\r\n}\r\nreturn $success;\r\n}",
"public function update_deal_team_members_adjusted_value($deal_id,$deal_partner_id){\n require_once(\"classes/class.transaction_member.php\");\n\t\t$trans_mem = new transaction_member();\n\t\treturn $trans_mem->update_deal_team_members_adjusted_value($deal_id,$deal_partner_id);\n }",
"function action_edit_team()\n\t{\n\t\t// Loading form validation helper and the Markdown parser.\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_rules('id', 'ID', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('name', 'Name', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('homeid', 'Field', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('city', 'City', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('region', 'Region', 'trim|required|xss_clean');\n\n\t\t$tid = $this->input->post('id');\n\t\t$name = $this->input->post('name');\n\t\t$homeid = $this->input->post('homeid');\n\t\t$city = $this->input->post('city');\n\t\t$region = $this->input->post('region');\n\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\tif ($this->teams->update($tid, $name, $homeid, $city, $region))\n\t\t\t{\n\t\t\t\techo json_encode(array(\n\t\t\t\t\t'status' => 'success',\n\t\t\t\t\t'message' => 'Team updated successfully!'\n\t\t\t\t));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\techo json_encode(array(\n\t\t\t'status' => 'danger',\n\t\t\t'message' => 'One or more of the fields are invalid.'\n\t\t));\n\t}"
] | [
"0.6717696",
"0.6569541",
"0.65178734",
"0.6450432",
"0.6449285",
"0.64154524",
"0.62756664",
"0.62279546",
"0.6091837",
"0.6050576",
"0.603368",
"0.59439063",
"0.5940974",
"0.5919817",
"0.59158516",
"0.5913516",
"0.5870438",
"0.583997",
"0.5832746",
"0.5831232",
"0.577445",
"0.5752232",
"0.5752232",
"0.5752232",
"0.5752232",
"0.5752232",
"0.5752232",
"0.5751644",
"0.57378614",
"0.57317835",
"0.5721088",
"0.57173765",
"0.5703276",
"0.5677617",
"0.5674809",
"0.56671107",
"0.5661162",
"0.5611998",
"0.5611692",
"0.55920565",
"0.55886984",
"0.5569924",
"0.55647075",
"0.5563676",
"0.5563616",
"0.5562674",
"0.5561947",
"0.5561862",
"0.5561862",
"0.5557037",
"0.55434006",
"0.55383116",
"0.5521425",
"0.5520684",
"0.55075496",
"0.54873437",
"0.548066",
"0.54700935",
"0.54670066",
"0.54648393",
"0.54546684",
"0.54446167",
"0.5443205",
"0.54411983",
"0.54361653",
"0.5435153",
"0.5433805",
"0.54308206",
"0.54301834",
"0.54272634",
"0.54152924",
"0.5415054",
"0.541124",
"0.5410093",
"0.5405014",
"0.54040897",
"0.5399463",
"0.5386751",
"0.5385808",
"0.53550154",
"0.5354764",
"0.53515893",
"0.53508705",
"0.53505903",
"0.5347528",
"0.5342538",
"0.5332491",
"0.5328114",
"0.5308281",
"0.5308281",
"0.53026074",
"0.5301556",
"0.5289709",
"0.52851933",
"0.5282962",
"0.5276569",
"0.52725834",
"0.52721554",
"0.5272023",
"0.5270699"
] | 0.67095804 | 1 |
/ |========================================================== | update team primary potential |========================================================== | | public function decreaseTeamPrimaryPotential($potential,$teamId,$action)
{
switch($action){
case "ATT";
$queryString="UPDATE teams
SET experience_att=experience_att-$potential
WHERE team_id=$teamId";
break;
case "MIL";
$queryString="UPDATE teams
SET experience_mil=experience_mil-$potential
WHERE team_id=$teamId";
break;
case "DEF";
$queryString="UPDATE teams
SET experience_def=experience_def-$potential
WHERE team_id=$teamId";
break;
case "GB";
$queryString="UPDATE teams
SET experience_gb=experience_gb-$potential
WHERE team_id=$teamId";
break;
}
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateTeam($team)\n\t{\n\t}",
"public function updateTeamToCertification($team);",
"function modify_team($teamname, $teamlead, $status) {\n\n $qUpdate = \"UPDATE authteam SET teamlead='$teamlead', status='$status'\n\n\t\t\t\t\t WHERE teamname='$teamname'\";\n\n $qUserStatus = \"UPDATE authuser SET status='$status' WHERE team='$teamname'\";\n\n\n\n if ($teamname == \"Admin\" AND $status == \"inactive\") {\n\n return \"Admin team cannot be inactivated.\";\n } elseif ($teamname == \"Ungrouped\" AND $status == \"inactive\") {\n\n return \"Ungrouped team cannot be inactivated.\";\n } else {\n\n $link = new mysqli($this->HOST, $this->USERNAME, $this->PASSWORD, $this->DBNAME);\n if ($link->connect_error) {\n die(\"Error al conectarse a la BD $dbname: \" . $mysqli->connect_error);\n }\n\n\n\n // UPDATE STATUS IF STATUS OF TEAM IS INACTIVATED\n // OLD CODE - DO NOT REMOVE\n //$userresult = mysql_db_query($this->DBNAME, $qUserStatus);\n // REVISED CODE\n\n $userresult = $link - query($qUserStatus);\n\n\n\n // OLD CODE - DO NOT REMOVE\n // $result = mysql_db_query($this->DBNAME, $qUpdate);\n // REVISED CODE\n\n $result = $link->query($qUpdate);\n\n\n\n return 1;\n }\n }",
"public function updateTeamToPendingCertification($team);",
"public function update_team_score(){\n\t\tif($this->authenticate_api()){\n\t\t\t\n\t\t\t$response = array( \"status\" => \"error\" );\n\t\t\t$response['message'] = \"Somthing Wrong\";\n $required_fields = array(\"match_id\");\n $status = $this->verifyRequiredParams($required_fields);\n\t\t\t$match_id= $this->request->getVar(\"match_id\");\n\t\t\t\n\t\t\tif($this->ifempty($match_id, \"match id\")!== true){\n $response['message'] = $this->ifempty($match_id, \"match id\");\n $this->sendResponse($response);\n }\n if($this->ifexists('tbl_tournament_match', $match_id, 'id') != true){\n $response['message'] = \"Please enter valid match id\";\n $this->sendResponse($response);\n }\t\t\t\n\t\t\tif($match_id){\t\t\t\t\n\t\t\t\t$match_tournament_team = $this->db->table('tbl_tournament_match')->where('id', $match_id)->get()->getRowArray();\n\t\t\t\tif($match_tournament_team){\n\t\t\t\t\t$team_id = $match_tournament_team['team_id'];\n\t\t\t\t\t$opponent_team_id = $match_tournament_team['opponent_team_id'];\n\t\t\t\t\t$match_end_status = $match_tournament_team['match_end_status'];\n\t\t\t\t\t$match_end_status_for_opponent_team = $match_tournament_team['match_end_status_for_opponent_team'];\n\t\t\t\t\tif($match_end_status == 1 && $match_end_status_for_opponent_team == 1){\n\t\t\t\t\t\t$where_match_team['match_id'] = $team_id;\n\t\t\t\t\t\t$where_match_opponent_team['match_id'] = $opponent_team_id;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team = $this->db->table('tbl_match_team')->where($where_match_team);\n\t\t\t\t\t\t$match_opponent_team = $this->db->table('tbl_match_team')->where($where_match_opponent_team);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team_goal = $this->db->query(\"SELECT SUM(g) as Total_g FROM tbl_match_team where match_id = \".$team_id)->getRowArray();\n\t\t\t\t\t\t$match_opponent_team_goal = $this->db->query(\"SELECT SUM(g) as Total_g FROM tbl_match_team where match_id = \".$opponent_team_id)->getRowArray();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team_goal['Total_g'] = $match_team_goal['Total_g'] ? $match_team_goal['Total_g'] : 0;\n\t\t\t\t\t\t$match_team_goal['Total_g'] = $match_opponent_team_goal['Total_g'] ? $match_opponent_team_goal['Total_g'] : 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($match_team_goal['Total_g'] > $match_opponent_team_goal['Total_g']){\n\t\t\t\t\t\t\t$winner_team_id = $team_id;\n\t\t\t\t\t\t}else if($match_team_goal['Total_g'] < $match_opponent_team_goal['Total_g']){\n\t\t\t\t\t\t\t$winner_team_id = $opponent_team_id;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$winner_team_id = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tbl_tournament_match_result_data['match_id'] = $match_id; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['team_id_score'] = $match_team_goal['Total_g']; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['opponent_team_id_score'] = $match_opponent_team_goal['Total_g']; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['winner_team_id'] = $winner_team_id;\n\t\t\t\t\t\t$response['status'] = \"success\";\n\t\t\t\t\t\t$table_name = 'tbl_tournament_match_result';\n\t\t\t\t\t\t$id = $match_id;\n\t\t\t\t\t\t$fild_to_check = 'match_id';\n\t\t\t\t\t\tif($this->ifexists($table_name,$id,$fild_to_check)){\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$response['message'] = \"Team score already Added\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$tbl_tournament_match_result = $this->db->table($table_name)->insert($tbl_tournament_match_result_data);\n\t\t\t\t\t\t\tif($tbl_tournament_match_result)\n\t\t\t\t\t\t\t\t$response['message'] = \"Team score Added Successfully\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t$this->sendResponse($response);\t\t\t\n\t\t\t\n\t\t}\n\t}",
"public function increaseTeamSecondaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET secondary_experience_att=secondary_experience_att+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET secondary_experience_mil=secondary_experience_mil+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET secondary_experience_def=secondary_experience_def+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET secondary_experience_gb=secondary_experience_gb+$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"public function increaseTeamPrimaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET experience_att=experience_att+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET experience_mil=experience_mil+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET experience_def=experience_def+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET experience_gb=experience_gb+$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"public function short_update($roster_player_data, $team_id = false){\n if(isset($roster_player_data[\"playerId\"]) && $roster_player_data[\"playerId\"] > 0){\n $data = $GLOBALS[\"db_fi\"]->fetch_array($GLOBALS[\"db_fi\"]->query(\"SELECT * FROM esports_player WHERE player_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"playerId\"]).\"'\"));\n \n if(isset($data[\"id\"]) && $data[\"id\"] > 0){\n $sql = \"UPDATE esports_player SET \";\n $sql_type = \"update\";\n } else {\n $sql = \"INSERT INTO esports_player SET player_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"playerId\"]).\"', \";\n $sql_type = \"insert\";\n }\n \n $sql .= \"name = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"name\"]).\"'\";\n $sql .= \", role = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"role\"]).\"'\";\n $sql .= \", is_starter = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"isStarter\"]).\"'\";\n \n if($team_id != false){\n $sql .= \", team_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($team_id).\"'\";\n }\n \n if($sql_type == \"update\"){\n $sql .= \" WHERE id = '\".$data[\"id\"].\"'\";\n }\n $GLOBALS[\"db_fi\"]->query($sql);\n return true;\n }\n return false;\n }",
"public function updateTeamToUnCertification($team);",
"public function testUpdateValidTeam() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"team\");\n\n\t\t// Create a new team and insert into mySQL\n\t\t$team = new Team(null, $this->sport->getSportId(), $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);\n\t\t$team->insert($this->getPDO());\n\n\t\t// edit the Team and update it in mySQL\n\t\t$team->setTEAMAPIID($this->VALID_TEAMAPIID2);\n\t\t$team->setTEAMCITY($this->VALID_TEAMCITY2);\n\t\t$team->setTEAMNAME($this->VALID_TEAMNAME2);\n\t\t$team->update($this->getPDO());\n\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$pdoTeam = Team::getTeamByTeamId($this->getPDO(), $team->getTeamId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"team\"));\n\t\t$this->assertEquals($pdoTeam->getTeamSportId(), $this->sport->getSportId());\n\t\t$this->assertEquals($pdoTeam->getTeamApiId(), $this->VALID_TEAMAPIID2);\n\t\t$this->assertEquals($pdoTeam->getTeamCity(), $this->VALID_TEAMCITY2);\n\t\t$this->assertEquals($pdoTeam->getTeamName(), $this->VALID_TEAMNAME2);\n\t\t//$this->assertEquals($pdoTeam->getTeamSportId(), $this->VALID_TEAMSPORTID);\n\t}",
"public function testUpdateInvalidTeam() {\n\t\t// create a Team with a non null team id and watch it fail\n\t\t$team = new Team($this->sport->getSportId(), SprotsTest::INVALID_KEY, $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);\n\t\t$team->insert($this->getPDO());\n\t\t$team->update($this->getPDO());\n\t}",
"public function actionUpdate_team(){ // anoop 21-11-18\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('assign_team')) {\n return $this->redirect(['site/index']);\n } \n $model = new DvUsersRole(); \n if (Yii::$app->request->post()){\n $user_of_manager = array();\n if (isset($_POST['user_of_manager'])) {\n $user_of_manager = $_POST['user_of_manager'];\n }\n $manager_id = $_POST['manager'];\n $new_manager_id = $_POST['new_manager'];\n // get manager email\n $manager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$manager_id' AND status = 1 \")->queryAll();\n $manageremail = $manager_email[0]['email'];\n\n if (empty($new_manager_id) || $new_manager_id == 0) {\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '' WHERE meta_key = 'team' AND meta_value = '$manager_id' \")->execute();\n Yii::$app->session->setFlash('success', 'The Team for Manager with Email Address <u>' . $manageremail . '</u> is Successfully Removed.');\n } else {\n // get new manager email\n $Nmanager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$new_manager_id' AND status = 1 \")->queryAll();\n $Nmanageremail = $Nmanager_email[0]['email'];\n if (!empty($user_of_manager)) {\n $user_of_manager_str = implode(\",\", $user_of_manager);\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$new_manager_id' WHERE meta_key = 'team' AND meta_value = '$manager_id' AND uid IN($user_of_manager_str)\")->execute();\n Yii::$app->session->setFlash('success', 'The selected Managers are Successfully assigned to Manger with Email Address <u>' . $Nmanageremail . '</u>');\n } else {\n\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$new_manager_id' WHERE meta_key = 'team' AND meta_value = '$manager_id' \")->execute();\n Yii::$app->session->setFlash('success', 'The Team for Manager with Email Address <u>' . $manageremail . '</u> is Successfully assigned to Manger with Email Address <u>' . $Nmanageremail . '</u>');\n }\n }\n return $this->redirect(['dv-users/assign_team']);\n } else {\n\n return $this->render('assign_team', [ 'model' => $model]);\n }\n }",
"function ChangeRiderTeam($oDB, $riderID, $newRacingTeamID, $newCommutingTeamID)\n{\n $oldTeamInfo = GetRiderTeamInfo($oDB, $riderID);\n // build SQL to set new rider teams\n $updateCmds = \"SET CommutingTeamID=$newCommutingTeamID, RacingTeamID=$newRacingTeamID\";\n // remove admin rights when rider changes teams\n if($newRacingTeamID!=$oldTeamInfo['RacingTeamID'])\n {\n $updateCmds .= \", sRacingTeamAdmin=0\";\n }\n if($newCommutingTeamID!=$oldTeamInfo['CommutingTeamID'])\n {\n $updateCmds .= \", sCommutingTeamAdmin=0\";\n }\n // execute the commands to change teams\n $oDB->query(\"UPDATE rider $updateCmds WHERE RiderID=$riderID\");\n if($oDB->errno==0)\n {\n // Copy rider photo to new team if rider does not already have a photo for that team\n $existingPhoto = $oDB->DBCount(\"rider_photos\", \"RiderID=$riderID AND TeamID=$newRacingTeamID\");\n if($newRacingTeamID!=$oldTeamInfo['RacingTeamID'] && $existingPhoto==0)\n {\n $oDB->query(\"INSERT rider_photos (RiderID, TeamID, Picture, ActionPicture, LastModified)\n SELECT $riderID, $newRacingTeamID, Picture, ActionPicture, LastModified\n FROM rider_photos\n WHERE RiderID=$riderID AND TeamID={$oldTeamInfo['RacingTeamID']}\");\n }\n }\n // Build response array\n if($oDB->errno!=0)\n {\n $result['success'] = false;\n $result['message'] = \"[\" . $oDB->errno . \"] SQL Error\";// . $oDB->error;\n // --- needed so Ext returns failureType of 'server' (FYI: could also be used to do server-side field validation)\n $result['errors'][] = array('id' => 'CtrlID', 'msg' => 'Error Msg' );\n }\n else\n {\n $result['success'] = true;\n }\n return($result);\n}",
"public function assignUpdateTeam($input,$id){\n\t\t$getAssignTeam = $this->getAssignTeam($id);\n\t\tif(!empty($getAssignTeam)){\n\t\t\t$updateId = DB::table('assign_team')->where('member_id', $id)->update(['team_id' => $input, 'member_id' => $id]);\n\t\t}else{\n\t\t\t$updateId = DB::table('assign_team')->insert(['team_id' => $input, 'member_id' => $id]);\n\t\t}\n\t\treturn true;\n\t\n\t}",
"function wieting_change_one_volunteer_action( $object, $context ) {\n global $user;\n if ( !array_key_exists( 3, $user->roles )) {\n drupal_set_message( t( 'Only a mangaer can change a volunteer assignment!' ));\n return;\n }\n\n static $objects = array( ); // array must be static to persist between rows (calls)\n\n array_push( $objects, $object );\n $count = count( $objects );\n\n /*\n print '<pre>';\n print 'The $object is: ';\n McFate_Dump( $object );\n print 'The $context is: ';\n McFate_Dump( $context );\n print 'Count of $objects is now ' . $count = count( $objects );\n print '</pre>';\n */\n\n // If exactly one performance was selected...proceed.\n\n if ( $count === 1 ) {\n $args = $objects[0]->field_performance_manager[0]['uid'].'/';\n $args .= $objects[0]->field_performance_ticket_seller[0]['uid'].'/';\n for ( $i=0; $i<4; $i++ ) {\n if ( $m = $objects[0]->field_performance_monitors[$i]['uid'] ) { $args .= $m.'/'; }\n if ( $c = $objects[0]->field_performance_concessions[$i]['uid'] ) { $args .= $c.'/'; }\n }\n $path = 'performance_team_vbo/'.$args;\n unset( $objects );\n drupal_goto( $path ); // Invoke the form.\n }\n\n return;\n}",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange(0));\n }",
"public function test_squad_server_admin_force_team_change()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange('Test'));\n }",
"public function decreaseTeamSecondaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET secondary_experience_att=secondary_experience_att-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET secondary_experience_mil=secondary_experience_mil-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET secondary_experience_def=secondary_experience_def-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET secondary_experience_gb=secondary_experience_gb-$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"function update_tournament_player($params,$team_id)\n {\n $this->db->where('tournament_players_id',$tournament_players_id);\n return $this->db->update('tournament_players',$params);\n }",
"public function updateVolunteer()\n {\n \t// database connection and sql query to update volunteer\n \t$core = Core::dbOpen();\n\t\t\t\t\n\t\tif( $this->volunteerID == 0 ) { // add volunteer\n\t\t\t$sql = \"INSERT INTO volunteer ( programID, firstName, lastName, phone, email, active )\n\t\t\t\t\t\t\tVALUES (:programID, :firstName, :lastName, :phone, :email, :active)\";\n\t\t\n\t\t} else { // update volunteer\n\t\t\t$sql = \"UPDATE volunteer SET firstName = :firstName, lastName = :lastName, phone = :phone, email = :email, active = :active\n\t\t\t\t\t\t\tWHERE volunteerID = :id\";\n\t\t}\n\t\t\n \t$stmt = $core->dbh->prepare($sql);\n \t\n\t\tif( $this->volunteerID == 0 ) { \n\t\t\t$stmt->bindParam(':programID', $this->programID); \n\t\t} else { \n\t\t\t$stmt->bindParam(':id', $this->volunteerID); \n\t\t}\n\t\t\n\t\t$stmt->bindParam(':firstName', $this->firstName);\n \t$stmt->bindParam(':lastName', $this->lastName);\n \t$stmt->bindParam(':phone', $this->phone);\n \t$stmt->bindParam(':email', $this->email);\n \t$stmt->bindParam(':active', $this->active);\n \tCore::dbClose();\n \t\n \t// execute stmt\n \ttry\n \t{\n \t\tif( $stmt->execute() )\n\t\t\t{\n\t\t\t\tif( $this->volunteerID == 0 )\n\t\t\t\t\t $this->volunteerID = $core->dbh->lastInsertId(); \n\t\t\t}\n \t}\n \tcatch (PDOException $e )\n \t{\n \t\techo \"Update volunteer failed\";\n \t}\n\t\t\n\t\t// clear previous volunteer positions\n\t\t$this->clearPositions();\n \t\n \t// add positions\n \tif($this->positions != null)\n {\n \t\t$core = Core::dbOpen();\n \t\t$sql = \"INSERT INTO volunteer_position (volunteerID, positionID) VALUES (:volunteerID, :positionID)\";\n \t\t$stmt = $core->dbh->prepare($sql);\n \t\t\n \tforeach ( $this->positions as $value )\n \t{\n \t\t$stmt->bindParam(':volunteerID', $this->volunteerID);\n \t\t$stmt->bindParam(':positionID', $value);\n \t\t\n \t\t\ttry {\n \t\t\t\t$stmt->execute();\n \t\t\t} catch( PDOException $e ) {\n \t\t\techo \"Add volunteer positons Failed!\";\n \t\t\t}\n \t\t}\n \t\t\n \t\tCore::dbClose();\n }\n\n \treturn false;\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"protected function updateTeamStats()\n {\n $conditions = array('stats.needs_update' => true);\n $fields = array('league_id');\n $teams_needing_update = Teams::all(compact('conditions', 'fields'));\n\n $team_id_list = array();\n $team_stats = array();\n foreach ($teams_needing_update as $team) {\n $team_id_list[] = $team->_id;\n $team_stats[(string)$team->_id] = array(\n 'wins' => 0,\n 'losses' => 0,\n 'point_differential' => 0\n );\n }\n\n // Grab all of the games that apply to these teams, standings should be re-calced from the ground up.\n $conditions = array('teams' => array('$in' => $team_id_list), 'scores' => array('$exists' => true), 'winner' => array('$ne' => null));\n $fields = array('scores', 'winner', 'teams', 'league_id');\n $relevant_games_list = Games::all(compact('conditions', 'fields'));\n\n $league_list = array();\n foreach ($relevant_games_list as $game) {\n // Calculate stats for each team\n foreach ($game->getTeams() as $t) {\n $team_id = (string)$t->_id;\n if (!isset($team_stats[$team_id])) {\n // If we didn't pull all of this team's games, do not update their stats. \n continue;\n }\n\n if ($t->_id == $game->winner) {\n $team_stats[$team_id]['wins']++;\n $team_stats[$team_id]['point_differential'] += $game->getScoreDiff();\n } else {\n $team_stats[$team_id]['losses']++;\n $team_stats[$team_id]['point_differential'] -= $game->getScoreDiff();\n }\n }\n\n // Make sure we have a list of all of the leagues being updated\n $league_list[] = $game->league_id;\n }\n\n // Do the team stats updates:\n foreach ($team_stats as $team_id => $stats) {\n $conditions = array('_id' => new \\MongoId($team_id));\n $query = array('$set' => array('stats' => $stats));\n Teams::update($query, $conditions);\n }\n\n // Mark leagues as needing an update\n $league_list = array_unique($league_list);\n $conditions = array('_id' => array('$in' => $league_list));\n $query = array('$set' => array('needs_standings_update' => true));\n Leagues::update($query, $conditions); \n }",
"function updateLeagueUser(\n $league_id,\n $user_id,\n $player_name,\n $paid,\n $join_date,\n $active_status,\n &$ref_status_text = '' // notunique, emailnotvalid, \n){\n\n writeDataToFile(\"\n 'league_id, ' $league_id,\n 'user_id, ' $user_id,\n 'player_name, ' $player_name,\n 'paid, ' $paid,\n 'join_date, ' $join_date,\n 'active_status' $active_status,\", __FILE__, __LINE__);\n\n $mysql_update = \"\n UPDATE nspx_leagueplayer \n SET playername = ?,\n active = ?,\n paid = ?,\n joindate = ?\n WHERE userid = ?\n AND leagueid = ?\n LIMIT 1\";\n \n $status = 0;\n $ref_status_text = '';\n $update_count = '';\n while (1) {\n \n if (!($paid == 1 || $paid == 2)) {\n $ref_status_text = 'paidoneortwo';\n break;\n }\n if (!($active_status == 1 || $active_status == 2)) {\n $ref_status_text = 'activeoneortwo';\n break;\n }\n writeDataToFile(\"11 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n \n $driver = new mysqli_driver();\n $driver->report_mode = MYSQLI_REPORT_OFF;\n \n try {\n $conn = db_connect();\n $sth = $conn->prepare($mysql_update);\n $sth->bind_param(\"siisii\",\n $player_name,\n $active_status,\n $paid,\n $join_date,\n $user_id,\n $league_id); \n \n writeDataToFile(\"22 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n if (!$sth->execute()) {\n $ref_status_text = 'updatefail';\n break;\n }\n $sth->store_result();\n $update_count = $sth->affected_rows;\n writeDataToFile(\" the return count is $update_count\", __FILE__, __LINE__);\n if ($update_count === 0) {\n $ref_status_text = 'updatenorows';\n $status = 1;\n break;\n }\n } catch (mysqli_sql_exception $e) {\n $ermsg = \"updateUser() \\n\" .\n 'sql: ' . $mysql_update . \"\\n\\n\" .\n '$league_id = ' . $league_id . \", \\n\" .\n '$player_name = ' . $player_name . \", \\n\" .\n '$user_id = ' . $user_id . \", \\n\" .\n '$active_status = ' . $active_status . \", \\n\" .\n 'MYSQL ERROR TO STRING: ' . $e->__toString();\n writeDataToFile($ermsg, __FILE__, __LINE__);\n $ref_status_text = 'dberror';\n break;\n }\n $status = 1;\n break;\n }\n writeDataToFile(\"33 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n @ $sth->close();\n return $status;\n}",
"function update()\n {\n\n $query = \"UPDATE Proposal set \";\n $query = $query . \"LastEditDate=NOW()\";\n if(isset($this->BidderID))\n {\n $query = $query . \", OpportunityID = '\" . $this->OpportunityID . \"'\"; \n }\n\n if(isset($this->BidderID))\n {\n $query = $query . \", BidderID = '\" . $this->BidderID . \"'\"; \n }\n\n if(isset($this->Status))\n {\n $query = $query . \", Status = \" . $this->Status . \"\"; \n }\n\n if(isset($this->TechnicalScore))\n {\n $query = $query . \", TechnicalScore = \" . $this->TechnicalScore . \" \"; \n }\n\n if(isset($this->FeeScore))\n {\n $query = $query . \", FeeScore = \" . $this->FeeScore . \" \"; \n }\n\n if(isset($this->FinalTotalScore))\n {\n $query = $query . \", FinalTotalScore = \" . $this->FinalTotalScore . \" \"; \n }\n\n if(isset($this->ContractAwarded))\n {\n $query = $query . \", ContractAwarded = \" . $this->ContractAwarded . \" \"; \n }\n\n $query = $query . \" WHERE ProposalID = '\" . $this->ProposalID . \"';\";\n\n $stmt = $this->conn->prepare( $query );\n\n // bind parameters\n //$stmt->bindParam(':ProposalID', $this->ProposalID);\n //$stmt->bindParam(':OpportunityID', $this->OpportunityID);\n //$stmt->bindParam(':BidderID', $this->BidderID);\n //$stmt->bindParam(':Status', $this->Status);\n //$stmt->bindParam(':TechnicalScore', $this->TechnicalScore);\n // $stmt->bindParam(':FeeScore', $this->FeeScore);\n //$stmt->bindParam(':FinalTotalScore', $this->FinalTotalScore);\n\n if($stmt->execute())\n return true;\n else\n return false;\n }",
"function updateTeamDetails($TeamID, $Input = array())\n {\n $UpdateArray = array_filter(array(\n 'TeamFlag' => @$Input['TeamFlag'],\n 'TeamName' => @$Input['TeamName'],\n 'TeamNameShort' => @$Input['TeamNameShort']\n ));\n if (!empty($UpdateArray)) {\n $this->db->where('TeamID', $TeamID);\n $this->db->limit(1);\n $this->db->update('sports_teams', $UpdateArray);\n\n /* Edit Into MongoDB */\n mongoDBConnection();\n $this->fantasydb->sports_teams->updateOne(\n ['_id' => $Input['TeamGUID']],\n ['$set' => array_filter(array('TeamID' => (int) $TeamID,'TeamFlag' => @$UpdateArray['TeamFlag'],'TeamName' => @$UpdateArray['TeamName'],'TeamNameShort' => @$UpdateArray['TeamNameShort']))],\n ['upsert' => true]\n );\n }\n return TRUE;\n }",
"function guidoleen_post_team($postid, $postval)\n{\n\tif( $postval->post_type == 'post_team' )\n\t{\n // Functie member\n\t\tif( isset($_POST['team_function']))\n\t\t{\n\t\t\tupdate_post_meta($postid, 'team_function', $_POST['team_function'] );\n }\n \n // Email member\n\t\tif( isset($_POST['team_email']))\n\t\t{\n\t\t\tupdate_post_meta($postid, 'team_email', $_POST['team_email'] );\n\t\t}\n\t}\n}",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->btwServer->adminForceTeamChange(0));\n }",
"public function update($data)\n {\n $this->db->where('id',$data['id']);\n return $this->db->update('team',$data);\n }",
"public function testUpdateChallenge()\n {\n }",
"public function testUpdateVendorComplianceSurvey()\n {\n }",
"public function test_squad_server_admin_force_team_change()\n {\n $this->assertTrue($this->btwServer->adminForceTeamChange('Test'));\n }",
"public function quickEdit() {\n if ($this->request->is('post')) {\n $rq_data = $this->request->data;\n $type = $rq_data['type'];\n\n if ($type == 2) {\n $ids = $rq_data['id'];\n $input = $rq_data['input'];\n $now = date('Y-m-d H:i:s');\n if ($this->Team->updateAll(array('name' => \"'$input'\", 'cdate' => \"'$now'\"), array('Team.id' => $ids))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 3) {\n $id = $rq_data['id'];\n $input = $rq_data['input'];\n $cr_data = $rq_data['cr_data'];\n $cr_date = date('Y-m-d H:i:s');\n// $this->Management->query(\"UPDATE management SET team_id = {$id}, update_date = '{$cr_date}' WHERE id = {$input}\");\n\n if ($this->Management->updateAll(array('team_id' => $id, 'update_date' => \"'{$cr_date}'\"), array('id' => $input))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 5) {\n $id = $rq_data['id'];\n $input = $rq_data['input'];\n if ($this->Team->save(array('id' => $id, 'code' => $input))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 6) {\n $ids = $rq_data['ids'];\n foreach ($ids as $v_id) {\n $visible = $this->Team->find('first', array(\n 'conditions' => array('id' => $v_id),\n 'fields' => array('valid')\n ));\n $status = ($visible['Team']['valid'] == 1) ? 0 : 1;\n\n if ($this->Team->save(array('id' => $v_id, 'valid' => $status))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n }\n }\n\n echo json_encode(1);\n exit;\n }\n }",
"function editTeamScore($teamId, $points, $cause){\r\n //$GLOBALS['GLOBALS['link']'] = connect();\r\n mysqli_query($GLOBALS['link'], 'update teams set `score`=`score` + '. $points .' where `id`='. $teamId .';');\r\n\r\n return mysqli_affected_rows($GLOBALS['link']);\r\n}",
"public function testUpdateChallengeActivity()\n {\n }",
"public function update(Request $request,Project $project, ScrumTeam $scrumTeam)\n {\n //\n }",
"function updateUsersTeam($teamIds, $user)\n{\n global $db;\n try {\n $teams = \"DELETE FROM team_users \n WHERE user_id = '\". $user .\"'\";\n \n $statement = $db->prepare($teams);\n $statement->execute(); \n addUsersTeams($teamIds,$user);\n } catch (Exception $exception) {\n throw new Exception($exception->getMessage());\n } \n}",
"function updateGameDetails( $dbData, $tournamentID ) {\n\n/* ... write the update back to the DB */\n $this->db->where( 'TournamentID', $tournamentID );\n $this->db->update( 'Tournament', $dbData );\n\n/* ... time to go */\n return;\n }",
"function updateTeams($players, $json) {\n\n\tunset($teams);\n\t$teams = array( 'won' => array(), 'lost' => array() );\n\tforeach ($players as $player) {\n\t\tif ($player['state'] == 'Won') {\n\t\t\tarray_push($teams['won'], $player['id']);\n\t\t} else {\n\t\t\tarray_push($teams['lost'], $player['id']);\n\t\t}\n\t}\n\t\n\t//updateWinnerTeam($teams['won']);\n\tunset($jsonteam);\n\tforeach ($json['teams'] as &$jsonteam) {\n\t\t$foundteam = 0;\n\t\t\n\t\tforeach ($jsonteam['players'] as $jsonplayer) {\n\t\t\tforeach ($teams['won'] as $thisplayer) {\n\t\t\t\tif ($jsonplayer['token'] == $thisplayer) $foundteam++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($foundteam == 3) {\n\t\t\techo 'updating team with win<br>';\n\t\t\t$jsonteam['wins']++;\n\t\t\t$jsonteam['rating']++;\n\t\t\t//$jsonteam['pendinggames']--;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t//updateLosingTeam($teams['lost']);\n\tunset($jsonteam);\n\tforeach ($json['teams'] as &$jsonteam) {\n\t\t$foundteam = 0;\n\t\t\n\t\tforeach ($jsonteam['players'] as $jsonplayer) {\n\t\t\tforeach ($teams['lost'] as $thisplayer) {\n\t\t\t\tif ($jsonplayer['token'] == $thisplayer) $foundteam++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($foundteam == 3) {\n\t\t\techo 'updating team with win<br>';\n\t\t\t$jsonteam['losses']++;\n\t\t\t$jsonteam['rating']--;\n\t\t\t//$jsonteam['pendinggames']--;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn true;\n}",
"public function testUpdateSiteMembership()\n {\n }",
"public function testUpdateSurvey0()\n {\n }",
"public function testUpdateSurvey0()\n {\n }",
"public function update(Request $request, Teamrequest $teamrequest)\n {\n //\n }",
"public function testUpdateSuperfund()\n {\n }",
"function update_teammember($TeamMemberId,$params)\n {\n $this->db->where('TeamMemberId',$TeamMemberId);\n return $this->db->update('TeamMember',$params);\n }",
"public function update() {\n\t\tTournamentDBClient::update($this);\n\t}",
"public function update(Request $request)\n {\n $match = Match::where('id', $request->match_id)->first();\n $match->host_team_result = $request->host_goals;\n $match->guest_team_result = $request->guest_goals;\n\n\n// //update host team standings\n $host_team_standings = Standing::where('team_id', $match->host_team_id)->first();\n $host_team_standings->gp += 1;\n//\n// //update guest team standings\n $guest_team_standings = Standing::where('team_id', $match->guest_team_id)->first();\n $guest_team_standings->gp += 1;\n\n// //update win results\n if ($request->host_goals > $request->guest_goals) {\n $host_team_standings->w += 1;\n $host_team_standings->pts += 3;\n $guest_team_standings->l += 1;\n $guest_team_standings->pts += 1;\n } else if ($request->host_goals < $request->guest_goals)\n {\n\n $host_team_standings->l += 1;\n $host_team_standings->pts += 1;\n $guest_team_standings->w += 1;\n $guest_team_standings->pts += 3;\n } else if ($request->host_goals == $request->guest_goals)\n {\n $host_team_standings->d += 1;\n $guest_team_standings->d += 1;\n }\n $host_team_standings->save();\n $guest_team_standings->save();\n $match->save();\n\n return response()->json(['success'=> \"Results updated\"]);\n }",
"public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }",
"public function testUpdateChallengeTemplate()\n {\n }",
"function myPear_update26(){\n \n if (myPear_db()->tableExists('zzz_organizations')){\n if (myPear_db()->columnExists('org_nickname','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` CHANGE `org_nickname` `org_code` VARCHAR(32) NULL\",1);\n myPear_db()->reset_cache();\n }\n \n if (!myPear_db()->columnExists('org_name_short','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` ADD `org_name_short` VARCHAR(32) NOT NULL AFTER `org_name`\",1);\n myPear_db()->reset_cache();\n foreach(array('an' => 'AlbaNova',\n\t\t 'nordita'=> 'Nordita',\n\t\t 'fysikum'=> 'Fysikum',\n\t\t 'kth' => 'KTH',\n\t\t 'okc' => 'OKC',\n\t\t 'vh' => 'Vetenskapenshus',\n\t\t 'gu' => 'GU',\n\t\t ) as $org_code=>$org_name_short){\n\tmyPear_db()->qquery(\"UPDATE `zzz_organizations` SET org_name_short='$org_name_short' WHERE org_code='$org_code'\",1);\n\t\n }\n }\n }\n}",
"function renameteam() {\n $this->auth(COMP_ADM_LEVEL);\n $team_id = $this->uri->segment(3);\n $new_name = urldecode($this->uri->segment(4));\n $data['team'] = $this->m_team->updateName($team_id, $new_name);\n $this->teamedit();\n }",
"public function testUpdatePayrun()\n {\n }",
"function update_player_league($playerID, $leagueID, $player) {\r\n\tforeach($player as $key => $value){\r\n\t\t$values[] = array(\"col\" => $key, \"value\" => $value);\r\n\t}\r\n\t$cond[]= array(\"col\" => \"playerID\", \"value\" => $playerID);\r\n\t$cond[]= array(\"col\" => \"leagueID\", \"value\" => $leagueID);\r\n\r\n\t//print_r($cond);\r\n\t$ID = uli_update_record('player_league', $cond, $values);\r\n\tif ($ID){return TRUE;}\r\n\telse {return FALSE;}\r\n}",
"function addBonusMalusToTeam($teamId, $cause){\r\n //log or other action before editing player's score\r\n //$GLOBALS['link'] = connect();\r\n\t\r\n\tmysqli_query($GLOBALS['link'], 'insert into specialteamlog(causeId, teamId, scoreImpact) VALUES ('.$cause['id'].', '.$teamId.', '.$cause['value'].');') or die(mysqli_error($GLOBALS['link']));\r\n return mysqli_affected_rows($GLOBALS['link']);\r\n}",
"public function testUpdateSiteMembershipRequestForPerson()\n {\n }",
"public function edit_team($team_id) \n {\n $tm = $this->CreateTeamModel->view_team_details($team_id);\n \n //validate form input\n \n $this->form_validation->set_rules('name', 'Team Name', 'trim|required|alpha_numeric');\n $this->form_validation->set_rules('scrum', 'scrum', 'required|callback_check_if_scrum_master_selected');\n\t if (isset($_POST) && !empty($_POST)) {\t\n \n\t\t$data = array(\n 'name' => $this->input->post('name'),\n 'scrum_master' => $this->input->post('scrum'),\n \n );\n \n if ($this->form_validation->run() == false) {\n } else {\n if ($this->CreateTeamModel->update_team($team_id, $data)) {\n// if($this->input->post('project')!= 0){\n if($this->CreateTeamModel->insert_team($team_id)) {\n } \n// }\n echo '<script>alert(\"Team has been updated successfully!\");</script>';\n }else{\n echo '<script>alert(\"Team updation failed!\");</script>';\n }\n }\n \n $this->data['tm'] = $tm;\n\n $name = array(\n\t\t'name' \t=> 'name',\n\t\t'id' \t=> 'name',\n\t\t'type' \t=> 'text',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('name', $tm['name'])\n );\n $this->data['scrum_master'] = array(\n 'name' \t=> 'scrum',\n\t\t'id' \t=> 'scrum',\n\t\t'type' \t=> 'select',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('scrum', $tm['scrum_master'])\n );\n $project_id = $this->CreateTeamModel->get_project($team_id);\n $this->data['project'] = array(\n 'name' \t=> 'project',\n\t\t'id' \t=> 'project',\n\t\t'type' \t=> 'select',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('project', $project_id['project_id'])\n );\n \n $member = $this->CreateTeamModel->view_team_details($team_id);\n $team_member = $this->CreateTeamModel->view_team_members($team_id);\n $team= $this->CreateTeamModel->load_team_members($team_id);\n $developer= $this->CreateTeamModel->get_developers();\n $project = $this->CreateTeamModel->load_projects($team_id);\n $this->load->view('add_members_view',compact(\"member\",\"team_member\",\"team\",\"developer\",\"project\",\"project_id\",\"name\"));\n \n }\n \n }",
"public function testUpdateChallengeActivityTemplate()\n {\n }",
"public function update(Request $request, $teamId, $gameId)\n {\n \n }",
"public function updateUrgencyStatuses() {\n\n\n $deadlineOverdue = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.OVERDUE_DAYS') . ' days'));\n $overdueTickets = $this->getPendingTicketsByAge($deadlineOverdue);\n\n foreach ($overdueTickets as $i => $overdueTicket) {\n\n $this->id = $overdueTicket['Ticket']['ticket_id'];\n $overdueTicket['Ticket']['status'] = 'Overdue';\n $this->save($overdueTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n\n $deadlineUrgend = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.URGEND_DAYS') . ' days'));\n $urgendTickets = $this->getPendingTicketsByAge($deadlineUrgend, array('New', 'Requested'));\n\n foreach ($urgendTickets as $i => $urgendTicket) {\n\n $this->id = $urgendTicket['Ticket']['ticket_id'];\n $urgendTicket['Ticket']['status'] = 'Urgend';\n $this->save($urgendTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n }",
"public function actionAssign_team() { // update by anoop 21-11-18\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('assign_team')) {\n return $this->redirect(['site/index']);\n }\n $model = new DvUsersRole(); \n if (Yii::$app->request->post()) {\n $dep_id = $_POST['DvUsersTeam']['dep_id'];\n $team_manager = $_POST['team_manager'];\n $useremail = $_POST['DvUsersTeam']['user_email'];\n $user_email = trim($useremail);\n // get user id\n $userid = Yii::$app->db->createCommand(\"SELECT assist_users.id as id FROM assist_users \n JOIN assist_user_meta on assist_user_meta.uid = assist_users.id WHERE email = '$user_email' AND department = '$dep_id' \n AND assist_user_meta.meta_key= 'role' AND assist_user_meta.meta_value <> 7 AND assist_users.status = 1 \")->queryAll();\n if (!empty($userid)) {\n $user_id = $userid[0]['id'];\n // get manager email\n $manager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$team_manager' AND status = 1 \")->queryAll();\n $manageremail = $manager_email[0]['email']; //var_dump($user_id); die();\n\n $result = Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$team_manager' WHERE meta_key = 'team' AND uid = '$user_id' AND meta_value = ''\")->execute();\n }\n\n\n if (isset($result) && $result == 1) {\n Yii::$app->session->setFlash('success', 'User with Email Address <u>' . $useremail . '</u> Successfully Assigned to Manger with Email Address <u>' . $manageremail . '</u>');\n } else {\n Yii::$app->session->setFlash('danger', 'User with Email Address <u>' . $useremail . '</u> is already assiged to other Manger.</u>');\n }\n return $this->redirect(['dv-users/assign_team']);\n } else {\n return $this->render('assign_team', [ 'model' => $model]);\n }\n }",
"public function assignTeam($input,$id){\n\t\t\n\t\t$updateId = DB::table('assign_team')->insert(['team_id' => $input, 'member_id' => $id]);\n\t\treturn true;\n\t\n\t}",
"public function editTeam($id)\n {\n $sql6=\"SELECT * FROM Team WHERE tid=$id\";\n $result=mysqli_query($this->db,$sql6);\n while($row=mysqli_fetch_array($result))\n {\n $tid=$row['tid'];\n $tname=$row['tname'];\n $tdescription=$row['tdescription'];\n $tcompetition=$row['tcompetition'];\n $tstatus=$row['tstatus'];\n echo \"\n <kbd style='font-size:20px;'>Team Update</kbd><br>\n <div class='col-md-10'>\n <table class='table table-condensed'>\n <form action='editdelete.php?q=team&id=$tid&ac=edit' method='POST'>\n <tr><td colspan='2' >TEAM UPDATE</td></tr>\n <input type='hidden' name='tid' value=$tid>\n <tr><td>Team name :</td><td><input type='text' placeholder='Team name' name='tname' value='$tname'></td></tr>\n <tr><td>Team description :</td><td><textarea placeholder='Description' name='tdescription' style='width:100%;' rows='8' >\".$row['tdescription'].\"</textarea></td></tr>\n <tr><td>Competition :</td><td><textarea placeholder='Competition' style='width:100%;' rows='10' name='tcompetition' >\".$row['tcompetition'].\"</textarea></td></tr>\n <tr><td>Status :</td><td><input type='text' placeholder='Status' name='tstatus' value=$tstatus></td></tr>\n <tr><td colspan='2'><input type='submit' value='Update' class='btn btn-primary '></td></tr>\n </form>\n </table></div>\";\n }\n }",
"public function testUpdateExternalShipment()\n {\n }",
"public function update(Request $request, team $team)\n {\n\n $team->update([\n 'name' => request('name'),\n 'race' => request('race'),\n 'userid' => \\Auth::user()->id,\n 'reroll' => request('reroll'),\n 'rerollValue' => request('rerollValue'),\n 'fanfactor' => request('fanfactor'),\n 'assistantCoach' => request('assistantCoach'),\n 'cheerleader' => request('cheerleader'),\n 'apothecary' => request('apothecary'),\n 'teamValue'=> request('teamValue'),\n 'treasury' => request('treasury')\n ]);\n\n return redirect('/team');\n }",
"public function editUserTeam_post() {\n /* Validation section */\n $this->form_validation->set_rules('SessionKey', 'SessionKey', 'trim|required|callback_validateSession');\n $this->form_validation->set_rules('SeriesGUID', 'SeriesGUID', 'trim|required|callback_validateEntityGUID[Series,SeriesID]');\n $this->form_validation->set_rules('MatchGUID', 'MatchGUID', 'trim|required|callback_validateEntityGUID[Matches,MatchID]');\n $this->form_validation->set_rules('UserTeamGUID', 'UserTeamGUID', 'trim|required|callback_validateEntityGUID[User Teams,UserTeamID]');\n $this->form_validation->set_rules('UserTeamType', 'UserTeamType', 'trim|required|in_list[Draft]');\n $this->form_validation->set_rules('UserTeamName', 'UserTeamName', 'trim');\n $this->form_validation->set_rules('UserTeamPlayers', 'UserTeamPlayers', 'trim');\n\n $this->form_validation->validation($this); /* Run validation */\n /* Validation - ends */\n\n if (!$this->SnakeDrafts_model->editUserTeam(array_merge($this->Post, array('SeriesID' => $this->SeriesID)), $this->UserTeamID, $this->MatchID)) {\n $this->Return['ResponseCode'] = 500;\n $this->Return['Message'] = \"An error occurred, please try again later.\";\n } else {\n $this->Return['Message'] = \"Team updated successfully.\";\n }\n }",
"function setTeam($s)\n\t{\n\t\t$this->Info['Team'] = $s;\n\t\tupdateTableByUser('Developer', 'Team', $s, $this->Username);\n\t}",
"public function update_opportunity() {\n\t\tif($this->session->userdata('uid')){\n\t\t\ttry {\n\t\t\t\t$given_data = array(\n\t\t\t\t\t'files' \t\t=> $_FILES,\n\t\t\t\t\t'stage_closed_date' => $this->input->post('stage_closed_date'),\n\t\t\t\t\t'stage_value' \t=> $this->input->post('stage_value'),\n\t\t\t\t\t'stage_numbers' => $this->input->post('stage_numbers'),\n\t\t\t\t\t'stage_rate'\t=> $this->input->post('stage_rate'),\n\t\t\t\t\t'stage_score'\t=> $this->input->post('stage_score'),\n\t\t\t\t\t'stage_customer_code'=>$this->input->post('stage_customer_code'),\n\t\t\t\t\t'stage_priority'=> $this->input->post('stage_priority'),\n\t\t\t\t\t'stage_remarks' => $this->input->post('stage_remarks'),\n\t\t\t\t\t'opportunity_id'=> $this->input->post('opportunity_id'),\n\t\t\t\t\t'lead_cust_id' \t=> $this->input->post('lead_cust_id'),\n\t\t\t\t\t'stage_id' \t\t=> $this->input->post('stage_id'),\n\t\t\t\t\t'cycle_id' \t\t=> $this->input->post('cycle_id'),\n\t\t\t\t\t'sell_type' \t=> $this->input->post('sell_type'),\n\t\t\t\t\t'mapping_id'\t=> uniqid(rand()),\n\t\t\t\t\t'user_id'\t\t=> $this->session->userdata('uid'),\n\t\t\t\t\t'contact_list'\t=> $this->input->post('contact_list')\n\t\t\t\t);\n\t\t\t\tif (($given_data['stage_closed_date'] == '0000-00-00') || ($given_data['stage_closed_date'] == '')) {\n\t\t\t\t\t$given_data['stage_closed_date'] = null;\n\t\t\t\t}\n\t\t\t\t$upload = $this->upload_file($given_data);\n\t\t\t\tif ($upload == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n $opp_data= $this->opp_sales->stage_owner($given_data['opportunity_id']); // gets all data from opportunity details\n $stage_manager_owner_id=$opp_data[0]->stage_manager_owner_id;\n\t\t\t\t$log_attr_data = array(\n\t\t\t\t\t'mapping_id' => $given_data['mapping_id'],\n\t\t\t\t\t'opportunity_id'=> $given_data['opportunity_id'],\n\t\t\t\t\t'stage_id'=> $given_data['stage_id'],\n\t\t\t\t\t'user_id'=> $given_data['user_id'],\n 'opp_numbers'=>$stage_manager_owner_id,\n\t\t\t\t\t'opp_close_date'=> $given_data['stage_closed_date'],\n\t\t\t\t\t'oppo_rate' => $given_data['stage_rate'],\n\t\t\t\t\t'oppo_score' => $given_data['stage_score'],\n\t\t\t\t\t'oppo_customer_code' => $given_data['stage_customer_code'],\n\t\t\t\t\t'oppo_priority' => $given_data['stage_priority'],\n\t\t\t\t\t'timestamp'=> date('Y-m-d H:i:s'),\n\t\t\t\t\t'remarks'=> $given_data['stage_remarks']\n\t\t\t\t);\n\t\t\t\t$this->opp_common->log_attr($log_attr_data);\n\n\n\t\t\t\t$oppo_attr = $this->opp_common->fetch_oppoAttr($given_data['opportunity_id']);\n\t\t\t\tif ($oppo_attr == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t$changed_attr = array();\n\t\t\t\t/*if ($oppo_attr[0]->numbers != $given_data['stage_numbers']) {\n\t\t\t\t\t$changed_attr['opportunity_numbers'] = $given_data['stage_numbers'];\n\t\t\t\t}*/\n\t\t\t\tif ($oppo_attr[0]->close_date != $given_data['stage_closed_date']) {\n\t\t\t\t\t$changed_attr['opportunity_date'] = $given_data['stage_closed_date'];\n\t\t\t\t}\n\t\t\t /*\tif ($oppo_attr[0]->value != $given_data['stage_value']) {\n\t\t\t\t\t$changed_attr['opportunity_value'] = $given_data['stage_value'];\n\t\t\t\t}*/\n\t\t\t\tif ($oppo_attr[0]->rate != $given_data['stage_rate']) {\n\t\t\t\t\t$changed_attr['opportunity_rate'] = $given_data['stage_rate'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->score != $given_data['stage_score']) {\n\t\t\t\t\t$changed_attr['opportunity_score'] = $given_data['stage_score'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->customer_code != $given_data['stage_customer_code']) {\n\t\t\t\t\t$changed_attr['opportunity_customer_code'] = $given_data['stage_customer_code'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->priority != $given_data['stage_priority']) {\n\t\t\t\t\t$changed_attr['opportunity_priority'] = $given_data['stage_priority'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->stage != $given_data['stage_id']) {\n\t\t\t\t\t$changed_attr['opportunity_stage'] = $given_data['stage_id'];\n\t\t\t\t}\n\t\t\t\t$this->opp_common->updateOpportunity($changed_attr, $given_data['opportunity_id']);\n\n\t\t\t\t$log_trans_data = array(\n\t\t\t\t\t'mapping_id' => $given_data['mapping_id'],\n\t\t\t\t\t'opportunity_id'=> $given_data['opportunity_id'],\n\t\t\t\t\t'lead_cust_id' => $given_data['lead_cust_id'],\n\t\t\t\t\t'from_user_id'=> $given_data['user_id'],\n\t\t\t\t\t'to_user_id'=> $given_data['user_id'],\n\t\t\t\t\t'cycle_id' => $given_data['cycle_id'],\n\t\t\t\t\t'stage_id' => $given_data['stage_id'],\n\t\t\t\t\t'module' => 'sales',\n\t\t\t\t\t'action' => 'updated',\n\t\t\t\t\t'timestamp'=> date('Y-m-d H:i:s'),\n\t\t\t\t\t'sell_type' => $given_data['sell_type'],\n\t\t\t\t\t'remarks' => $given_data['stage_remarks'],\n\t\t\t\t);\n\t\t\t\t$updateStatus=$this->opp_common->map_opportunity(array(0 => $log_trans_data));\n\t\t\t\t$finalArray = array('errors' => array(), 'status' => $updateStatus);\n\t\t\t\techo(json_encode($finalArray));\n\t\t\t} catch (LConnectApplicationException $e) {\n\t\t\t\techo $this->exceptionThrower($e);\n\t\t\t}\n\t\t}else{\n\t\t\tredirect('indexController');\n\t\t}\n\t}",
"function update_general_info($usernameDB, $passwordDB, $email, $first_name_update, $last_name_update, $birthday, $member_address, $member_apartment, $member_city, $member_state, $member_zip, $member_home_phone, $member_cell_phone, $season, $yearGraduate, $pledgeClass) {\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t//Update any general information that has been changed.\n\t$update = array();\n\t\n\tif(trim($first_name_update) !== \"\") {\n\t $update[] = \"first_name = :first_name\";\n\t}\n\t\n\tif(trim($last_name_update) !==\"\") {\n\t\t$update[] = \"last_name = :last_name\";\n\t}\n\t\n\tif(trim($season) !== \"\") {\n\t $update[] = \"graduation_season = :season\";\n\t}\n\t\n\tif(trim($yearGraduate) !==\"\") {\n\t\t$update[] = \"graduation_year = :year\";\n\t}\n\t\n\tif(trim($pledgeClass) !==\"\") {\n\t\t$update[] = \"pledge_class = :pledge_class\";\n\t}\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($first_name_update) !== \"\") {\n\t $stmt->bindParam(\":first_name\", $first_name_update);\n\t }\n\t \n\t if(trim($last_name_update) !== \"\") {\n\t $stmt->bindParam(\":last_name\", $last_name_update);\n\t }\n\t \n\t if(trim($season) !== \"\") {\n\t $stmt->bindParam(\":season\", $season);\n\t }\n\t \n\t if(trim($yearGraduate) !== \"\") {\n\t $stmt->bindParam(\":year\", $yearGraduate);\n\t }\n\t \t \n\t if(trim($pledgeClass) !== \"\") {\n\t $stmt->bindParam(\":pledge_class\", $pledgeClass);\n\t }\n\n\t $stmt->execute();\n\t}\t\n\t\n\t//Connect to the members_contact\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t$update = array();\n\t\n\tif(trim($birthday) !== \"\") {\n\t $update[] = \"date_of_birth = :birthday\";\n\t}\n\t\n\tif(trim($member_address) !== \"\") {\n\t\t$update[] = \"school_address = :member_address\";\n\t}\n\t\n\tif(trim($member_apartment) !== \"\") {\n\t\t$update[] = \"apt = :member_apartment\";\n\t}\n\t\n\tif(trim($member_city) !== \"\") {\n\t\t$update[] = \"city = :member_city\";\n\t}\n\t\n\tif(trim($member_state) !== \"\") {\n\t\t$update[] = \"state = :member_state\";\n\t}\n\t\n\tif(trim($member_zip) !== \"\") {\n\t\t$update[] = \"zip_code = :member_zip_code\";\n\t}\n\t\n\tif(trim($member_home_phone) !== \"\") {\n\t\t$update[] = \"home_phone = :member_home_phone\";\n\t}\n\t\n\tif(trim($member_cell_phone) !== \"\") {\n\t\t$update[] = \"cell_phone = :member_cell_phone\";\n\t}\n\t\n\t\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members_contact SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($birthday) !== \"\") {\n\t $stmt->bindParam(\":birthday\", $birthday);\n\t }\n\t \n\t if(trim($member_address) !== \"\") {\n\t\t $stmt->bindParam(\":member_address\", $member_address);\n\t }\n\t \n\t if(trim($member_apartment) !== \"\") {\n\t\t $stmt->bindParam(\":member_apartment\", $member_apartment);\n\t }\n\t \n\t if(trim($member_city) !== \"\") {\n\t\t $stmt->bindParam(\":member_city\", $member_city);\n\t }\n\t \n\t if(trim($member_state) !== \"\") {\n\t\t $stmt->bindParam(\":member_state\", $member_state);\n\t }\n\t \n\t if(trim($member_zip) !== \"\") {\n\t\t $stmt->bindParam(\":member_zip_code\", $member_zip);\n\t }\n\t \n\t if(trim($member_home_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_home_phone\", $member_home_phone);\n\t }\n\t \n\t if(trim($member_cell_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_cell_phone\", $member_cell_phone);\n\t }\n\n\t $stmt->execute();\n\t}\t\n}",
"public function userUpdate(Event $event){\n $em = $this->getServiceLocator()->get('Omeka\\EntityManager');\n $entity = $event->getParam('entity');\n $request = $event->getParam('request');\n $operation = $request->getOperation();\n $error_store = $event->getParam('errorStore');\n\n if ($operation == 'update' ){\n $user_id = $request->getId();\n\n //stop if teams aren't part of the update\n if (array_key_exists('o-module-teams:Team', $request->getContent())){\n //array of team ids\n\n if ($user_role = $this->getUser()->getRole() == 'global_admin') {//remove the user's teams\n $user = $em->getRepository('Omeka\\Entity\\User')->findOneBy(['id' => $user_id]);\n\n $pre_teams = $em->getRepository('Teams\\Entity\\TeamUser')->findBy(['user' => $user_id]);\n\n foreach ($pre_teams as $pre_team):\n if ($pre_team->getCurrent()){\n $current_team_id = $pre_team->getTeam()->getId();\n }\n $em->remove($pre_team);\n endforeach;\n $em->flush();\n $current_team_id = isset($current_team_id )? $current_team_id : 0;\n\n //add the teams from the form\n $teams = $em->getRepository('Teams\\Entity\\Team');\n foreach ($request->getContent()['o-module-teams:Team'] as $team_id):\n $team_id = (int) $team_id;\n\n //adding new team from the user form, indicated by an id of 0\n if ($team_id === 0){\n $u_name = $request->getContent()['o:name'];\n $team_name = sprintf(\"%s's team\", $u_name);\n $team_exists = $em->getRepository('Teams\\Entity\\Team')->findOneBy(['name'=>$team_name]);\n if ($team_exists){\n $messanger = new Messenger();\n $messanger->addWarning(\"The team you tried to add already exists. Added user to the team.\");\n $team = $team_exists;\n\n\n } else{\n $team = new Team();\n $team->setName($team_name);\n $team->setDescription(sprintf('A team automatically generated for new user %s', $u_name));\n $em->persist($team);\n $em->flush();\n }\n\n } else {\n $team = $teams->findOneBy(['id'=> $team_id]);\n }\n\n //get it this way because the roles are added dynamically as js and not part of pre-baked form\n $role_id = $request->getContent()['o-module-teams:TeamRole'][$team_id];\n $role = $em->getRepository('Teams\\Entity\\TeamRole')\n ->findOneBy(['id'=>$role_id]);\n\n $team_user_exists = $em->getRepository('Teams\\Entity\\TeamUser')\n ->findOneBy(['team'=>$team->getId(), 'user'=>$user_id]);\n\n if ($team_user_exists){\n echo $team_user_exists->getId();\n } else {\n $team_user = new TeamUser($team,$user,$role);\n $em->persist($team_user);\n if ($team_id == $current_team_id){\n $team_user->setCurrent(true);\n }\n $em->persist($team_user);\n\n //this is not ideal to flush each iteration, but it is how to check to make sure they didn't\n //TODO: catch this in chosen-trigger.js instead\n $em->flush();\n }\n\n endforeach;\n\n $em->flush();\n\n //if their current team was removed, just give them a current team from the top of the list\n if (array_key_exists('o-module-teams:Team', $request->getContent())){\n if (! in_array($current_team_id, $request->getContent()['o-module-teams:Team'])){\n $em->getRepository('Teams\\Entity\\TeamUser')->findOneBy(['user' => $user_id])\n ->setCurrent(true);\n $em->flush();\n\n }\n }\n\n }\n\n }\n\n }\n return;\n\n }",
"public function update(Request $request, team_members $team_members)\n {\n //\n }",
"public function testUpdateMember()\n {\n }",
"public function testUpdateMyContact()\n {\n\n }",
"public function updateSportive()\r\n\t{\r\n\t\t// Donnees\r\n\t\t$eventId = Bn::getValue('event_id');\r\n\t\t$oEvent = new Oevent($eventId);\r\n\t\t// Controle de l'autorisation\r\n\t\tif ( $oEvent->getVal('ownerid') != Bn::getValue('user_id') && !Oaccount::isLoginAdmin() ) return false;\r\n\r\n\t\t// Donnees du tournoi\r\n\t\t$oEvent->setVal('scoringsystem', Bn::getValue('scoringsystem'));\r\n\t\t$oEvent->setVal('ranksystem', Bn::getValue('ranksystem'));\r\n\t\t$oEvent->setVal('catage', Bn::getValue('catage'));\r\n\t\t$oEvent->setVal('nature', Bn::getValue('nature'));\r\n\t\t$oEvent->setVal('level', Bn::getValue('level'));\r\n\t\t$type = $oEvent->getVal('type');\r\n\t\tif (!$oEvent->isIc())\r\n\t\t{\r\n\t\t\t$oEvent->setVal('nbdrawmax', Bn::getValue('nbdrawmax'));\r\n\t\t\t$oEvent->save();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$weight = Bn::getValue('teamweight');\r\n\t\t\tif ($weight != $oEvent->getVal('teamweight'))\r\n\t\t\t{\r\n\t\t\t\t$oEvent->setVal('teamweight', Bn::getValue('teamweight'));\r\n\t\t\t\t$oEvent->save();\r\n\t\t\t\t$teamIds = $oEvent->getTeams();\r\n\t\t\t\tforeach($teamIds as $teamId)\r\n\t\t\t\t{\r\n\t\t\t\t\t$oTeam = new Oteam($teamId);\r\n\t\t\t\t\t$points = $oTeam->weight();\r\n\t\t\t\t\tunset($oTeam);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t// Message de fin\r\n\t\t$body = new Body();\r\n\t\t$body->addWarning(LOC_LABEL_PREF_REGISTERED);\r\n\t\t$d = $body->addDiv('', 'bn-div-btn');\r\n\t\t$d->addButtonCancel('btnCancel', LOC_BTN_CLOSE);\r\n\r\n\t\t// Envoi au navigateur\r\n\t\t$res = array('content' => $body->toHtml(),\r\n\t\t\t\t\t'title' => LOC_ITEM_SPORTIVE);\r\n\t\techo Bn::toJson($res);\r\n\t}",
"public function testUpdatePerson()\n {\n }",
"function recruitTeam($cxn,$player,$request)\r\n {\r\n \r\n }",
"public function testUpdateNotOwnCreated()\r\n {\r\n //create teacher user\r\n $teacher = $this->CreateTeacher();\r\n $lisUser = $this->CreateTeacherUser($teacher);\r\n\r\n //now we have created teacheruser set to current controller\r\n $this->controller->setLisUser($lisUser);\r\n $this->controller->setLisPerson($teacher);\r\n\r\n //create other teacher user\r\n $otherTeacher = $this->CreateTeacher();\r\n $otherLisUser = $this->CreateTeacherUser($otherTeacher);\r\n\r\n //$name = uniqid() . 'Name';\r\n $subjectRound = $this->CreateSubjectRound();\r\n $student = $this->CreateStudent();\r\n //$anotherTeacher = $this->CreateTeacher();\r\n \r\n\r\n $independentWork = $this->CreateIndependentWork([\r\n 'name' => uniqid() . 'Name',\r\n 'duedate' => new \\DateTime,\r\n 'description' => uniqid() . ' Description for independentwork',\r\n 'durationAK' => (int) uniqid(),\r\n 'subjectRound' => $subjectRound->getId(),\r\n 'teacher' => $teacher->getId(),\r\n 'student' => $student->getId(),\r\n 'createdBy' => $otherLisUser->getId()\r\n ]);\r\n\r\n //$subjectRoundIdOld = $independentWork->getSubjectRound()->getId();\r\n //$studentIdOld = $independentWork->getStudent()->getId();\r\n //$teacherIdOld = $independentWork->getTeacher()->getId();\r\n\r\n $this->request->setMethod('put');\r\n $this->routeMatch->setParam('id', $independentWork->getId());\r\n\r\n $this->request->setContent(http_build_query([\r\n 'student' => $this->CreateStudent()->getId(),\r\n 'subjectRound' => $this->CreateSubjectRound()->getId(),\r\n 'teacher' => $teacher->getId(),\r\n ]));\r\n\r\n //fire request\r\n $result = $this->controller->dispatch($this->request);\r\n $response = $this->controller->getResponse();\r\n\r\n $this->PrintOut($result, false);\r\n\r\n $this->assertEquals(200, $response->getStatusCode());\r\n $this->assertEquals(false, $result->success);\r\n $this->assertEquals('SELF_CREATED_RESTRICTION', $result->message);\r\n }",
"public function update() {\n if(!$this->request->is('restful')) {\n $targetCoPersonId = $this->request->data['CoGroupMember']['co_person_id'];\n $userCoPersonId = $this->Session->read('Auth.User.co_person_id');\n $requesterIsAdmin = $this->Role->isCoAdmin($userCoPersonId, $this->cur_co['Co']['id'])\n || $this->Role->identifierIsCmpAdmin($this->Session->read('Auth.User.username'));\n \n try {\n $this->CoGroupMember->updateMemberships($targetCoPersonId,\n $this->request->data['CoGroupMember']['rows'],\n $userCoPersonId,\n $requesterIsAdmin);\n \n $this->Flash->set(_txt('rs.saved'), array('key' => 'success'));\n }\n catch(Exception $e) {\n $this->Flash->set($e->getMessage(), array('key' => 'error'));\n }\n \n // Issue redirect\n $redir = array();\n $redir['controller'] = 'co_groups';\n $redir['action'] = 'select';\n $redir['co'] = $this->cur_co['Co']['id'];\n\n // If the current user is not the same as the target CO Person for whom\n // memberships are being managed then include the copersonid parameter.\n if($targetCoPersonId != $userCoPersonId) {\n $redir['copersonid'] = $targetCoPersonId;\n }\n\n $this->redirect($redir);\n }\n }",
"function save_team_info( $post_id ) {\n\n // Check if our nonce is set.\n if ( ! isset( $_POST['team_nonce'] ) )\n return $post_id;\n\n $nonce = $_POST['team_nonce'];\n\n // Verify that the nonce is valid.\n if ( ! wp_verify_nonce( $nonce, 'team_info' ) )\n return $post_id;\n\n // If this is an autosave, our form has not been submitted, so we don't want to do anything.\n if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) \n return $post_id;\n\n // Check the user's permissions.\n if ( 'team' == $_POST['post_type'] ) {\n\n if ( ! current_user_can( 'edit_page', $post_id ) )\n return $post_id;\n \n } else {\n\n if ( ! current_user_can( 'edit_post', $post_id ) )\n return $post_id;\n }\n\n /* OK, its safe for us to save the data now. */\n\n // Sanitize user input.\n $mydata = $_POST['_team_announcements'];\n\n // Update the meta field in the database.\n update_post_meta( $post_id, '_team_announcements', $mydata );\n}",
"function action_edit_team()\n\t{\n\t\t// Loading form validation helper and the Markdown parser.\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_rules('id', 'ID', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('name', 'Name', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('homeid', 'Field', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('city', 'City', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('region', 'Region', 'trim|required|xss_clean');\n\n\t\t$tid = $this->input->post('id');\n\t\t$name = $this->input->post('name');\n\t\t$homeid = $this->input->post('homeid');\n\t\t$city = $this->input->post('city');\n\t\t$region = $this->input->post('region');\n\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\tif ($this->teams->update($tid, $name, $homeid, $city, $region))\n\t\t\t{\n\t\t\t\techo json_encode(array(\n\t\t\t\t\t'status' => 'success',\n\t\t\t\t\t'message' => 'Team updated successfully!'\n\t\t\t\t));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\techo json_encode(array(\n\t\t\t'status' => 'danger',\n\t\t\t'message' => 'One or more of the fields are invalid.'\n\t\t));\n\t}",
"function delete_team($teamname) {\n\n $qDelete = \"DELETE FROM authteam WHERE teamname='$teamname'\";\n\n $qUpdateUser = \"UPDATE authuser SET team='Ungrouped' WHERE team='$teamname'\";\n\n if ($teamname == \"Admin\") {\n\n return \"Admin team cannot be deleted.\";\n } elseif ($teamname == \"Ungrouped\") {\n\n return \"Ungrouped team cannot be deleted.\";\n } elseif ($teamname == \"Temporary\") {\n\n return \"Temporary team cannot be deleted.\";\n }\n\n\n\n $link = new mysqli($this->HOST, $this->USERNAME, $this->PASSWORD, $this->DBNAME);\n if ($link->connect_error) {\n die(\"Error al conectarse a la BD $dbname: \" . $mysqli->connect_error);\n }\n\n // OLD CODE - DO NOTE REMOVE\n // $result = mysql_db_query($this->DBNAME, $qUpdateUser);\n // REVISED CODE\n\n $result = $link->query($qUpdateUser);\n\n\n\n // OLD CODE - DO NOT REMOVE\n // $result = mysql_db_query($this->DBNAME, $qDelete);\n // REVISED CODE\n\n $result = $link->query($qDelete);\n\n\n\n return $link->error;\n }",
"protected function _updatefields() {}",
"function oncall_member_edit_form_submit($form, &$form_state) {\n $ocid = $form_state['values']['ocid'];\n $phone = preg_replace('/\\D/', '', $form_state['values']['oncall_phone']);\n $name = $form_state['values']['oncall_name'];\n $active = $form_state['values']['oncall_active'];\n\n // find if this user is already in our table\n $exists = db_query(\"SELECT COUNT(*) as num FROM {oncall_team} WHERE ocid = :uid\", array(\":uid\" => $ocid))->fetchField();\n\n if ($exists) {\n db_update('oncall_team') \n ->fields(array(\n 'name' => $name,\n 'phone' => $phone,\n 'available' => $active,\n ))\n ->condition('ocid', $ocid, '=')\n ->execute();\n }\n else {\n db_insert('oncall_team')\n ->fields(array(\n 'ocid' => $ocid,\n 'name' => $name,\n 'phone' => $phone,\n 'available' => $active,\n ))\n ->execute();\n }\n \n $form_state['redirect'] = 'admin/config/services/oncall'; \n}",
"protected function _update()\n\t{\n\t}",
"function updateLeagueForWeek($league, $week, $db) {\n\t$query = \"SELECT * FROM {$league[\"name\"]}_schedule WHERE week={$week}\";\n\n\t$result = mysqli_query($db, $query);\n\tif (!$result) {\n\t\tdie(\"Database query failed with errer: \" . mysqli_error($db));\n\t}\n\n\twhile ($match = mysqli_fetch_assoc($result)) {\n\t\t$user0 = $match[\"user_id_0\"];\n\t\t$user1 = $match[\"user_id_1\"];\n\n\t\t$score0 = getScoreForUser($user0, $league, $week);\n\t\t$score1 = getScoreForUser($user1, $league, $week);\n\n\t\t// tell the databse to update the scores\n\t\t$query = \"UPDATE {$league[\"name\"]}_schedule\";\n\t\t$query .= \" SET score_0={$score0}, score_1={$score1}, completed=1\";\n\t\t$query .= \" WHERE id={$match[\"id\"]}\";\n\n\t\t$tmp = mysqli_query($db, $query);\n\t\tif (!$tmp) {\n\t\t\tdie(\"Database query failed with errer: \" . mysqli_error($db));\n\t\t}\n\t}\n}",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function edit(Team $team)\n {\n //\n }",
"public function updateTeamTraining($teamId,$type)\n {\n $queryString=\"UPDATE training\";\n\n switch($type){\n\n case \"att\":\n $queryString.=\" SET att=att+1,att_estate=1,date_training='\".date('Y-m-d').\"' \";\n break;\n\n case \"mil\";\n $queryString.=\" SET mil=mil+1,mil_estate=1,date_training='\".date('Y-m-d').\"' \";\n break;\n\n case \"def\":\n $queryString.=\" SET def=def+1,def_estate=1,date_training='\".date('Y-m-d').\"' \";\n break;\n\n case \"gb\":\n $queryString.=\" SET gb=gb+1,gb_estate=1,date_training='\".date('Y-m-d').\"' \";\n break;\n }\n\n $queryString.=\"WHERE team_id=$teamId\";\n $query = $this->db->query($queryString);\n\n }",
"public function updateOffensiveMethod($offensiveMethodId,$teamId,$action)\n {\n if($action==corruption_rules::ADD_ACTION)\n {\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt+1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }else{\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt-1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }\n\n $query = $this->db->query($queryString);\n }",
"public function testUpdateSurveyQuestionChoice0()\n {\n }",
"public function testUpdateSurveyQuestionChoice0()\n {\n }",
"public function testUpdatePackingPlanCustomFields()\n {\n }"
] | [
"0.6863709",
"0.66335034",
"0.6520814",
"0.6468499",
"0.64641297",
"0.646041",
"0.638454",
"0.6268243",
"0.62601763",
"0.6201292",
"0.6186413",
"0.6118677",
"0.60509914",
"0.6042131",
"0.60365725",
"0.60363",
"0.59978485",
"0.5996376",
"0.59619796",
"0.5955357",
"0.59518564",
"0.59518564",
"0.59518564",
"0.59518564",
"0.59518564",
"0.59518564",
"0.5916769",
"0.59102756",
"0.5907871",
"0.59058195",
"0.59010684",
"0.5892313",
"0.589026",
"0.5865925",
"0.585966",
"0.5851387",
"0.58503556",
"0.583598",
"0.5827561",
"0.5793588",
"0.5768562",
"0.576097",
"0.57592666",
"0.5754051",
"0.57483995",
"0.57483995",
"0.574325",
"0.57400227",
"0.57033676",
"0.5703138",
"0.5690504",
"0.5679929",
"0.5679283",
"0.56718755",
"0.56570286",
"0.56518406",
"0.5646993",
"0.56450814",
"0.5639916",
"0.5635041",
"0.5616716",
"0.5594891",
"0.55922115",
"0.5586166",
"0.55818695",
"0.55606157",
"0.555969",
"0.5556662",
"0.55363923",
"0.5533606",
"0.55220103",
"0.5520566",
"0.55204576",
"0.5514382",
"0.5513039",
"0.55018616",
"0.549929",
"0.549776",
"0.5496012",
"0.54934686",
"0.5478892",
"0.5478241",
"0.54780364",
"0.5476714",
"0.5471136",
"0.5469344",
"0.5468169",
"0.54674435",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5459008",
"0.5458071",
"0.54547876",
"0.5447566",
"0.5447566",
"0.54444474"
] | 0.6139287 | 11 |
/ |========================================================== | update team secondary potential |========================================================== | | public function decreaseTeamSecondaryPotential($potential,$teamId,$action)
{
switch($action){
case "ATT";
$queryString="UPDATE teams
SET secondary_experience_att=secondary_experience_att-$potential
WHERE team_id=$teamId";
break;
case "MIL";
$queryString="UPDATE teams
SET secondary_experience_mil=secondary_experience_mil-$potential
WHERE team_id=$teamId";
break;
case "DEF";
$queryString="UPDATE teams
SET secondary_experience_def=secondary_experience_def-$potential
WHERE team_id=$teamId";
break;
case "GB";
$queryString="UPDATE teams
SET secondary_experience_gb=secondary_experience_gb-$potential
WHERE team_id=$teamId";
break;
}
$query = $this->db->query($queryString);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateTeam($team)\n\t{\n\t}",
"public function increaseTeamSecondaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET secondary_experience_att=secondary_experience_att+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET secondary_experience_mil=secondary_experience_mil+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET secondary_experience_def=secondary_experience_def+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET secondary_experience_gb=secondary_experience_gb+$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"public function updateTeamToCertification($team);",
"function modify_team($teamname, $teamlead, $status) {\n\n $qUpdate = \"UPDATE authteam SET teamlead='$teamlead', status='$status'\n\n\t\t\t\t\t WHERE teamname='$teamname'\";\n\n $qUserStatus = \"UPDATE authuser SET status='$status' WHERE team='$teamname'\";\n\n\n\n if ($teamname == \"Admin\" AND $status == \"inactive\") {\n\n return \"Admin team cannot be inactivated.\";\n } elseif ($teamname == \"Ungrouped\" AND $status == \"inactive\") {\n\n return \"Ungrouped team cannot be inactivated.\";\n } else {\n\n $link = new mysqli($this->HOST, $this->USERNAME, $this->PASSWORD, $this->DBNAME);\n if ($link->connect_error) {\n die(\"Error al conectarse a la BD $dbname: \" . $mysqli->connect_error);\n }\n\n\n\n // UPDATE STATUS IF STATUS OF TEAM IS INACTIVATED\n // OLD CODE - DO NOT REMOVE\n //$userresult = mysql_db_query($this->DBNAME, $qUserStatus);\n // REVISED CODE\n\n $userresult = $link - query($qUserStatus);\n\n\n\n // OLD CODE - DO NOT REMOVE\n // $result = mysql_db_query($this->DBNAME, $qUpdate);\n // REVISED CODE\n\n $result = $link->query($qUpdate);\n\n\n\n return 1;\n }\n }",
"public function update_team_score(){\n\t\tif($this->authenticate_api()){\n\t\t\t\n\t\t\t$response = array( \"status\" => \"error\" );\n\t\t\t$response['message'] = \"Somthing Wrong\";\n $required_fields = array(\"match_id\");\n $status = $this->verifyRequiredParams($required_fields);\n\t\t\t$match_id= $this->request->getVar(\"match_id\");\n\t\t\t\n\t\t\tif($this->ifempty($match_id, \"match id\")!== true){\n $response['message'] = $this->ifempty($match_id, \"match id\");\n $this->sendResponse($response);\n }\n if($this->ifexists('tbl_tournament_match', $match_id, 'id') != true){\n $response['message'] = \"Please enter valid match id\";\n $this->sendResponse($response);\n }\t\t\t\n\t\t\tif($match_id){\t\t\t\t\n\t\t\t\t$match_tournament_team = $this->db->table('tbl_tournament_match')->where('id', $match_id)->get()->getRowArray();\n\t\t\t\tif($match_tournament_team){\n\t\t\t\t\t$team_id = $match_tournament_team['team_id'];\n\t\t\t\t\t$opponent_team_id = $match_tournament_team['opponent_team_id'];\n\t\t\t\t\t$match_end_status = $match_tournament_team['match_end_status'];\n\t\t\t\t\t$match_end_status_for_opponent_team = $match_tournament_team['match_end_status_for_opponent_team'];\n\t\t\t\t\tif($match_end_status == 1 && $match_end_status_for_opponent_team == 1){\n\t\t\t\t\t\t$where_match_team['match_id'] = $team_id;\n\t\t\t\t\t\t$where_match_opponent_team['match_id'] = $opponent_team_id;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team = $this->db->table('tbl_match_team')->where($where_match_team);\n\t\t\t\t\t\t$match_opponent_team = $this->db->table('tbl_match_team')->where($where_match_opponent_team);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team_goal = $this->db->query(\"SELECT SUM(g) as Total_g FROM tbl_match_team where match_id = \".$team_id)->getRowArray();\n\t\t\t\t\t\t$match_opponent_team_goal = $this->db->query(\"SELECT SUM(g) as Total_g FROM tbl_match_team where match_id = \".$opponent_team_id)->getRowArray();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$match_team_goal['Total_g'] = $match_team_goal['Total_g'] ? $match_team_goal['Total_g'] : 0;\n\t\t\t\t\t\t$match_team_goal['Total_g'] = $match_opponent_team_goal['Total_g'] ? $match_opponent_team_goal['Total_g'] : 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($match_team_goal['Total_g'] > $match_opponent_team_goal['Total_g']){\n\t\t\t\t\t\t\t$winner_team_id = $team_id;\n\t\t\t\t\t\t}else if($match_team_goal['Total_g'] < $match_opponent_team_goal['Total_g']){\n\t\t\t\t\t\t\t$winner_team_id = $opponent_team_id;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$winner_team_id = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tbl_tournament_match_result_data['match_id'] = $match_id; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['team_id_score'] = $match_team_goal['Total_g']; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['opponent_team_id_score'] = $match_opponent_team_goal['Total_g']; \n\t\t\t\t\t\t$tbl_tournament_match_result_data['winner_team_id'] = $winner_team_id;\n\t\t\t\t\t\t$response['status'] = \"success\";\n\t\t\t\t\t\t$table_name = 'tbl_tournament_match_result';\n\t\t\t\t\t\t$id = $match_id;\n\t\t\t\t\t\t$fild_to_check = 'match_id';\n\t\t\t\t\t\tif($this->ifexists($table_name,$id,$fild_to_check)){\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$response['message'] = \"Team score already Added\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$tbl_tournament_match_result = $this->db->table($table_name)->insert($tbl_tournament_match_result_data);\n\t\t\t\t\t\t\tif($tbl_tournament_match_result)\n\t\t\t\t\t\t\t\t$response['message'] = \"Team score Added Successfully\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t$this->sendResponse($response);\t\t\t\n\t\t\t\n\t\t}\n\t}",
"public function updateTeamToPendingCertification($team);",
"public function updateTeamToUnCertification($team);",
"public function actionUpdate_team(){ // anoop 21-11-18\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('assign_team')) {\n return $this->redirect(['site/index']);\n } \n $model = new DvUsersRole(); \n if (Yii::$app->request->post()){\n $user_of_manager = array();\n if (isset($_POST['user_of_manager'])) {\n $user_of_manager = $_POST['user_of_manager'];\n }\n $manager_id = $_POST['manager'];\n $new_manager_id = $_POST['new_manager'];\n // get manager email\n $manager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$manager_id' AND status = 1 \")->queryAll();\n $manageremail = $manager_email[0]['email'];\n\n if (empty($new_manager_id) || $new_manager_id == 0) {\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '' WHERE meta_key = 'team' AND meta_value = '$manager_id' \")->execute();\n Yii::$app->session->setFlash('success', 'The Team for Manager with Email Address <u>' . $manageremail . '</u> is Successfully Removed.');\n } else {\n // get new manager email\n $Nmanager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$new_manager_id' AND status = 1 \")->queryAll();\n $Nmanageremail = $Nmanager_email[0]['email'];\n if (!empty($user_of_manager)) {\n $user_of_manager_str = implode(\",\", $user_of_manager);\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$new_manager_id' WHERE meta_key = 'team' AND meta_value = '$manager_id' AND uid IN($user_of_manager_str)\")->execute();\n Yii::$app->session->setFlash('success', 'The selected Managers are Successfully assigned to Manger with Email Address <u>' . $Nmanageremail . '</u>');\n } else {\n\n Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$new_manager_id' WHERE meta_key = 'team' AND meta_value = '$manager_id' \")->execute();\n Yii::$app->session->setFlash('success', 'The Team for Manager with Email Address <u>' . $manageremail . '</u> is Successfully assigned to Manger with Email Address <u>' . $Nmanageremail . '</u>');\n }\n }\n return $this->redirect(['dv-users/assign_team']);\n } else {\n\n return $this->render('assign_team', [ 'model' => $model]);\n }\n }",
"function ChangeRiderTeam($oDB, $riderID, $newRacingTeamID, $newCommutingTeamID)\n{\n $oldTeamInfo = GetRiderTeamInfo($oDB, $riderID);\n // build SQL to set new rider teams\n $updateCmds = \"SET CommutingTeamID=$newCommutingTeamID, RacingTeamID=$newRacingTeamID\";\n // remove admin rights when rider changes teams\n if($newRacingTeamID!=$oldTeamInfo['RacingTeamID'])\n {\n $updateCmds .= \", sRacingTeamAdmin=0\";\n }\n if($newCommutingTeamID!=$oldTeamInfo['CommutingTeamID'])\n {\n $updateCmds .= \", sCommutingTeamAdmin=0\";\n }\n // execute the commands to change teams\n $oDB->query(\"UPDATE rider $updateCmds WHERE RiderID=$riderID\");\n if($oDB->errno==0)\n {\n // Copy rider photo to new team if rider does not already have a photo for that team\n $existingPhoto = $oDB->DBCount(\"rider_photos\", \"RiderID=$riderID AND TeamID=$newRacingTeamID\");\n if($newRacingTeamID!=$oldTeamInfo['RacingTeamID'] && $existingPhoto==0)\n {\n $oDB->query(\"INSERT rider_photos (RiderID, TeamID, Picture, ActionPicture, LastModified)\n SELECT $riderID, $newRacingTeamID, Picture, ActionPicture, LastModified\n FROM rider_photos\n WHERE RiderID=$riderID AND TeamID={$oldTeamInfo['RacingTeamID']}\");\n }\n }\n // Build response array\n if($oDB->errno!=0)\n {\n $result['success'] = false;\n $result['message'] = \"[\" . $oDB->errno . \"] SQL Error\";// . $oDB->error;\n // --- needed so Ext returns failureType of 'server' (FYI: could also be used to do server-side field validation)\n $result['errors'][] = array('id' => 'CtrlID', 'msg' => 'Error Msg' );\n }\n else\n {\n $result['success'] = true;\n }\n return($result);\n}",
"function wieting_change_one_volunteer_action( $object, $context ) {\n global $user;\n if ( !array_key_exists( 3, $user->roles )) {\n drupal_set_message( t( 'Only a mangaer can change a volunteer assignment!' ));\n return;\n }\n\n static $objects = array( ); // array must be static to persist between rows (calls)\n\n array_push( $objects, $object );\n $count = count( $objects );\n\n /*\n print '<pre>';\n print 'The $object is: ';\n McFate_Dump( $object );\n print 'The $context is: ';\n McFate_Dump( $context );\n print 'Count of $objects is now ' . $count = count( $objects );\n print '</pre>';\n */\n\n // If exactly one performance was selected...proceed.\n\n if ( $count === 1 ) {\n $args = $objects[0]->field_performance_manager[0]['uid'].'/';\n $args .= $objects[0]->field_performance_ticket_seller[0]['uid'].'/';\n for ( $i=0; $i<4; $i++ ) {\n if ( $m = $objects[0]->field_performance_monitors[$i]['uid'] ) { $args .= $m.'/'; }\n if ( $c = $objects[0]->field_performance_concessions[$i]['uid'] ) { $args .= $c.'/'; }\n }\n $path = 'performance_team_vbo/'.$args;\n unset( $objects );\n drupal_goto( $path ); // Invoke the form.\n }\n\n return;\n}",
"protected function updateTeamStats()\n {\n $conditions = array('stats.needs_update' => true);\n $fields = array('league_id');\n $teams_needing_update = Teams::all(compact('conditions', 'fields'));\n\n $team_id_list = array();\n $team_stats = array();\n foreach ($teams_needing_update as $team) {\n $team_id_list[] = $team->_id;\n $team_stats[(string)$team->_id] = array(\n 'wins' => 0,\n 'losses' => 0,\n 'point_differential' => 0\n );\n }\n\n // Grab all of the games that apply to these teams, standings should be re-calced from the ground up.\n $conditions = array('teams' => array('$in' => $team_id_list), 'scores' => array('$exists' => true), 'winner' => array('$ne' => null));\n $fields = array('scores', 'winner', 'teams', 'league_id');\n $relevant_games_list = Games::all(compact('conditions', 'fields'));\n\n $league_list = array();\n foreach ($relevant_games_list as $game) {\n // Calculate stats for each team\n foreach ($game->getTeams() as $t) {\n $team_id = (string)$t->_id;\n if (!isset($team_stats[$team_id])) {\n // If we didn't pull all of this team's games, do not update their stats. \n continue;\n }\n\n if ($t->_id == $game->winner) {\n $team_stats[$team_id]['wins']++;\n $team_stats[$team_id]['point_differential'] += $game->getScoreDiff();\n } else {\n $team_stats[$team_id]['losses']++;\n $team_stats[$team_id]['point_differential'] -= $game->getScoreDiff();\n }\n }\n\n // Make sure we have a list of all of the leagues being updated\n $league_list[] = $game->league_id;\n }\n\n // Do the team stats updates:\n foreach ($team_stats as $team_id => $stats) {\n $conditions = array('_id' => new \\MongoId($team_id));\n $query = array('$set' => array('stats' => $stats));\n Teams::update($query, $conditions);\n }\n\n // Mark leagues as needing an update\n $league_list = array_unique($league_list);\n $conditions = array('_id' => array('$in' => $league_list));\n $query = array('$set' => array('needs_standings_update' => true));\n Leagues::update($query, $conditions); \n }",
"public function testUpdateInvalidTeam() {\n\t\t// create a Team with a non null team id and watch it fail\n\t\t$team = new Team($this->sport->getSportId(), SprotsTest::INVALID_KEY, $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);\n\t\t$team->insert($this->getPDO());\n\t\t$team->update($this->getPDO());\n\t}",
"public function increaseTeamPrimaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET experience_att=experience_att+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET experience_mil=experience_mil+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET experience_def=experience_def+$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET experience_gb=experience_gb+$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"function guidoleen_post_team($postid, $postval)\n{\n\tif( $postval->post_type == 'post_team' )\n\t{\n // Functie member\n\t\tif( isset($_POST['team_function']))\n\t\t{\n\t\t\tupdate_post_meta($postid, 'team_function', $_POST['team_function'] );\n }\n \n // Email member\n\t\tif( isset($_POST['team_email']))\n\t\t{\n\t\t\tupdate_post_meta($postid, 'team_email', $_POST['team_email'] );\n\t\t}\n\t}\n}",
"public function decreaseTeamPrimaryPotential($potential,$teamId,$action)\n {\n switch($action){\n\n case \"ATT\";\n $queryString=\"UPDATE teams\n SET experience_att=experience_att-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"MIL\";\n $queryString=\"UPDATE teams\n SET experience_mil=experience_mil-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"DEF\";\n $queryString=\"UPDATE teams\n SET experience_def=experience_def-$potential\n WHERE team_id=$teamId\";\n break;\n\n case \"GB\";\n $queryString=\"UPDATE teams\n SET experience_gb=experience_gb-$potential\n WHERE team_id=$teamId\";\n break;\n\n }\n\n $query = $this->db->query($queryString);\n }",
"public function short_update($roster_player_data, $team_id = false){\n if(isset($roster_player_data[\"playerId\"]) && $roster_player_data[\"playerId\"] > 0){\n $data = $GLOBALS[\"db_fi\"]->fetch_array($GLOBALS[\"db_fi\"]->query(\"SELECT * FROM esports_player WHERE player_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"playerId\"]).\"'\"));\n \n if(isset($data[\"id\"]) && $data[\"id\"] > 0){\n $sql = \"UPDATE esports_player SET \";\n $sql_type = \"update\";\n } else {\n $sql = \"INSERT INTO esports_player SET player_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"playerId\"]).\"', \";\n $sql_type = \"insert\";\n }\n \n $sql .= \"name = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"name\"]).\"'\";\n $sql .= \", role = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"role\"]).\"'\";\n $sql .= \", is_starter = '\".$GLOBALS[\"db_fi\"]->real_escape_string($roster_player_data[\"isStarter\"]).\"'\";\n \n if($team_id != false){\n $sql .= \", team_id = '\".$GLOBALS[\"db_fi\"]->real_escape_string($team_id).\"'\";\n }\n \n if($sql_type == \"update\"){\n $sql .= \" WHERE id = '\".$data[\"id\"].\"'\";\n }\n $GLOBALS[\"db_fi\"]->query($sql);\n return true;\n }\n return false;\n }",
"public function testUpdateValidTeam() {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"team\");\n\n\t\t// Create a new team and insert into mySQL\n\t\t$team = new Team(null, $this->sport->getSportId(), $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);\n\t\t$team->insert($this->getPDO());\n\n\t\t// edit the Team and update it in mySQL\n\t\t$team->setTEAMAPIID($this->VALID_TEAMAPIID2);\n\t\t$team->setTEAMCITY($this->VALID_TEAMCITY2);\n\t\t$team->setTEAMNAME($this->VALID_TEAMNAME2);\n\t\t$team->update($this->getPDO());\n\n\n\t\t// grab the data from mySQL and enforce the fields match our expectations\n\t\t$pdoTeam = Team::getTeamByTeamId($this->getPDO(), $team->getTeamId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"team\"));\n\t\t$this->assertEquals($pdoTeam->getTeamSportId(), $this->sport->getSportId());\n\t\t$this->assertEquals($pdoTeam->getTeamApiId(), $this->VALID_TEAMAPIID2);\n\t\t$this->assertEquals($pdoTeam->getTeamCity(), $this->VALID_TEAMCITY2);\n\t\t$this->assertEquals($pdoTeam->getTeamName(), $this->VALID_TEAMNAME2);\n\t\t//$this->assertEquals($pdoTeam->getTeamSportId(), $this->VALID_TEAMSPORTID);\n\t}",
"public function testUpdateSiteMembership()\n {\n }",
"public function testUpdateVendorComplianceSurvey()\n {\n }",
"public function test_squad_server_admin_force_team_change()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange('Test'));\n }",
"function updateLeagueUser(\n $league_id,\n $user_id,\n $player_name,\n $paid,\n $join_date,\n $active_status,\n &$ref_status_text = '' // notunique, emailnotvalid, \n){\n\n writeDataToFile(\"\n 'league_id, ' $league_id,\n 'user_id, ' $user_id,\n 'player_name, ' $player_name,\n 'paid, ' $paid,\n 'join_date, ' $join_date,\n 'active_status' $active_status,\", __FILE__, __LINE__);\n\n $mysql_update = \"\n UPDATE nspx_leagueplayer \n SET playername = ?,\n active = ?,\n paid = ?,\n joindate = ?\n WHERE userid = ?\n AND leagueid = ?\n LIMIT 1\";\n \n $status = 0;\n $ref_status_text = '';\n $update_count = '';\n while (1) {\n \n if (!($paid == 1 || $paid == 2)) {\n $ref_status_text = 'paidoneortwo';\n break;\n }\n if (!($active_status == 1 || $active_status == 2)) {\n $ref_status_text = 'activeoneortwo';\n break;\n }\n writeDataToFile(\"11 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n \n $driver = new mysqli_driver();\n $driver->report_mode = MYSQLI_REPORT_OFF;\n \n try {\n $conn = db_connect();\n $sth = $conn->prepare($mysql_update);\n $sth->bind_param(\"siisii\",\n $player_name,\n $active_status,\n $paid,\n $join_date,\n $user_id,\n $league_id); \n \n writeDataToFile(\"22 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n if (!$sth->execute()) {\n $ref_status_text = 'updatefail';\n break;\n }\n $sth->store_result();\n $update_count = $sth->affected_rows;\n writeDataToFile(\" the return count is $update_count\", __FILE__, __LINE__);\n if ($update_count === 0) {\n $ref_status_text = 'updatenorows';\n $status = 1;\n break;\n }\n } catch (mysqli_sql_exception $e) {\n $ermsg = \"updateUser() \\n\" .\n 'sql: ' . $mysql_update . \"\\n\\n\" .\n '$league_id = ' . $league_id . \", \\n\" .\n '$player_name = ' . $player_name . \", \\n\" .\n '$user_id = ' . $user_id . \", \\n\" .\n '$active_status = ' . $active_status . \", \\n\" .\n 'MYSQL ERROR TO STRING: ' . $e->__toString();\n writeDataToFile($ermsg, __FILE__, __LINE__);\n $ref_status_text = 'dberror';\n break;\n }\n $status = 1;\n break;\n }\n writeDataToFile(\"33 updateLeagueUser() '$ref_status_text', '$status', '$update_count'\", __FILE__, __LINE__);\n @ $sth->close();\n return $status;\n}",
"public function updateUrgencyStatuses() {\n\n\n $deadlineOverdue = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.OVERDUE_DAYS') . ' days'));\n $overdueTickets = $this->getPendingTicketsByAge($deadlineOverdue);\n\n foreach ($overdueTickets as $i => $overdueTicket) {\n\n $this->id = $overdueTicket['Ticket']['ticket_id'];\n $overdueTicket['Ticket']['status'] = 'Overdue';\n $this->save($overdueTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n\n $deadlineUrgend = date('Y-m-d H:i:s', strtotime('-' . Configure::read('TICKET.URGEND_DAYS') . ' days'));\n $urgendTickets = $this->getPendingTicketsByAge($deadlineUrgend, array('New', 'Requested'));\n\n foreach ($urgendTickets as $i => $urgendTicket) {\n\n $this->id = $urgendTicket['Ticket']['ticket_id'];\n $urgendTicket['Ticket']['status'] = 'Urgend';\n $this->save($urgendTicket, array('validate' => false, 'modified' => false, 'callbacks' => false));\n }\n\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function update(Request $request, Team $team)\n {\n //\n }",
"public function updateVolunteer()\n {\n \t// database connection and sql query to update volunteer\n \t$core = Core::dbOpen();\n\t\t\t\t\n\t\tif( $this->volunteerID == 0 ) { // add volunteer\n\t\t\t$sql = \"INSERT INTO volunteer ( programID, firstName, lastName, phone, email, active )\n\t\t\t\t\t\t\tVALUES (:programID, :firstName, :lastName, :phone, :email, :active)\";\n\t\t\n\t\t} else { // update volunteer\n\t\t\t$sql = \"UPDATE volunteer SET firstName = :firstName, lastName = :lastName, phone = :phone, email = :email, active = :active\n\t\t\t\t\t\t\tWHERE volunteerID = :id\";\n\t\t}\n\t\t\n \t$stmt = $core->dbh->prepare($sql);\n \t\n\t\tif( $this->volunteerID == 0 ) { \n\t\t\t$stmt->bindParam(':programID', $this->programID); \n\t\t} else { \n\t\t\t$stmt->bindParam(':id', $this->volunteerID); \n\t\t}\n\t\t\n\t\t$stmt->bindParam(':firstName', $this->firstName);\n \t$stmt->bindParam(':lastName', $this->lastName);\n \t$stmt->bindParam(':phone', $this->phone);\n \t$stmt->bindParam(':email', $this->email);\n \t$stmt->bindParam(':active', $this->active);\n \tCore::dbClose();\n \t\n \t// execute stmt\n \ttry\n \t{\n \t\tif( $stmt->execute() )\n\t\t\t{\n\t\t\t\tif( $this->volunteerID == 0 )\n\t\t\t\t\t $this->volunteerID = $core->dbh->lastInsertId(); \n\t\t\t}\n \t}\n \tcatch (PDOException $e )\n \t{\n \t\techo \"Update volunteer failed\";\n \t}\n\t\t\n\t\t// clear previous volunteer positions\n\t\t$this->clearPositions();\n \t\n \t// add positions\n \tif($this->positions != null)\n {\n \t\t$core = Core::dbOpen();\n \t\t$sql = \"INSERT INTO volunteer_position (volunteerID, positionID) VALUES (:volunteerID, :positionID)\";\n \t\t$stmt = $core->dbh->prepare($sql);\n \t\t\n \tforeach ( $this->positions as $value )\n \t{\n \t\t$stmt->bindParam(':volunteerID', $this->volunteerID);\n \t\t$stmt->bindParam(':positionID', $value);\n \t\t\n \t\t\ttry {\n \t\t\t\t$stmt->execute();\n \t\t\t} catch( PDOException $e ) {\n \t\t\techo \"Add volunteer positons Failed!\";\n \t\t\t}\n \t\t}\n \t\t\n \t\tCore::dbClose();\n }\n\n \treturn false;\n }",
"function updateTeamDetails($TeamID, $Input = array())\n {\n $UpdateArray = array_filter(array(\n 'TeamFlag' => @$Input['TeamFlag'],\n 'TeamName' => @$Input['TeamName'],\n 'TeamNameShort' => @$Input['TeamNameShort']\n ));\n if (!empty($UpdateArray)) {\n $this->db->where('TeamID', $TeamID);\n $this->db->limit(1);\n $this->db->update('sports_teams', $UpdateArray);\n\n /* Edit Into MongoDB */\n mongoDBConnection();\n $this->fantasydb->sports_teams->updateOne(\n ['_id' => $Input['TeamGUID']],\n ['$set' => array_filter(array('TeamID' => (int) $TeamID,'TeamFlag' => @$UpdateArray['TeamFlag'],'TeamName' => @$UpdateArray['TeamName'],'TeamNameShort' => @$UpdateArray['TeamNameShort']))],\n ['upsert' => true]\n );\n }\n return TRUE;\n }",
"public function test_squad_server_admin_force_team_change()\n {\n $this->assertTrue($this->btwServer->adminForceTeamChange('Test'));\n }",
"function update()\n {\n\n $query = \"UPDATE Proposal set \";\n $query = $query . \"LastEditDate=NOW()\";\n if(isset($this->BidderID))\n {\n $query = $query . \", OpportunityID = '\" . $this->OpportunityID . \"'\"; \n }\n\n if(isset($this->BidderID))\n {\n $query = $query . \", BidderID = '\" . $this->BidderID . \"'\"; \n }\n\n if(isset($this->Status))\n {\n $query = $query . \", Status = \" . $this->Status . \"\"; \n }\n\n if(isset($this->TechnicalScore))\n {\n $query = $query . \", TechnicalScore = \" . $this->TechnicalScore . \" \"; \n }\n\n if(isset($this->FeeScore))\n {\n $query = $query . \", FeeScore = \" . $this->FeeScore . \" \"; \n }\n\n if(isset($this->FinalTotalScore))\n {\n $query = $query . \", FinalTotalScore = \" . $this->FinalTotalScore . \" \"; \n }\n\n if(isset($this->ContractAwarded))\n {\n $query = $query . \", ContractAwarded = \" . $this->ContractAwarded . \" \"; \n }\n\n $query = $query . \" WHERE ProposalID = '\" . $this->ProposalID . \"';\";\n\n $stmt = $this->conn->prepare( $query );\n\n // bind parameters\n //$stmt->bindParam(':ProposalID', $this->ProposalID);\n //$stmt->bindParam(':OpportunityID', $this->OpportunityID);\n //$stmt->bindParam(':BidderID', $this->BidderID);\n //$stmt->bindParam(':Status', $this->Status);\n //$stmt->bindParam(':TechnicalScore', $this->TechnicalScore);\n // $stmt->bindParam(':FeeScore', $this->FeeScore);\n //$stmt->bindParam(':FinalTotalScore', $this->FinalTotalScore);\n\n if($stmt->execute())\n return true;\n else\n return false;\n }",
"public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }",
"function updateTeams($players, $json) {\n\n\tunset($teams);\n\t$teams = array( 'won' => array(), 'lost' => array() );\n\tforeach ($players as $player) {\n\t\tif ($player['state'] == 'Won') {\n\t\t\tarray_push($teams['won'], $player['id']);\n\t\t} else {\n\t\t\tarray_push($teams['lost'], $player['id']);\n\t\t}\n\t}\n\t\n\t//updateWinnerTeam($teams['won']);\n\tunset($jsonteam);\n\tforeach ($json['teams'] as &$jsonteam) {\n\t\t$foundteam = 0;\n\t\t\n\t\tforeach ($jsonteam['players'] as $jsonplayer) {\n\t\t\tforeach ($teams['won'] as $thisplayer) {\n\t\t\t\tif ($jsonplayer['token'] == $thisplayer) $foundteam++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($foundteam == 3) {\n\t\t\techo 'updating team with win<br>';\n\t\t\t$jsonteam['wins']++;\n\t\t\t$jsonteam['rating']++;\n\t\t\t//$jsonteam['pendinggames']--;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t//updateLosingTeam($teams['lost']);\n\tunset($jsonteam);\n\tforeach ($json['teams'] as &$jsonteam) {\n\t\t$foundteam = 0;\n\t\t\n\t\tforeach ($jsonteam['players'] as $jsonplayer) {\n\t\t\tforeach ($teams['lost'] as $thisplayer) {\n\t\t\t\tif ($jsonplayer['token'] == $thisplayer) $foundteam++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($foundteam == 3) {\n\t\t\techo 'updating team with win<br>';\n\t\t\t$jsonteam['losses']++;\n\t\t\t$jsonteam['rating']--;\n\t\t\t//$jsonteam['pendinggames']--;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn true;\n}",
"public function assignUpdateTeam($input,$id){\n\t\t$getAssignTeam = $this->getAssignTeam($id);\n\t\tif(!empty($getAssignTeam)){\n\t\t\t$updateId = DB::table('assign_team')->where('member_id', $id)->update(['team_id' => $input, 'member_id' => $id]);\n\t\t}else{\n\t\t\t$updateId = DB::table('assign_team')->insert(['team_id' => $input, 'member_id' => $id]);\n\t\t}\n\t\treturn true;\n\t\n\t}",
"function editTeamScore($teamId, $points, $cause){\r\n //$GLOBALS['GLOBALS['link']'] = connect();\r\n mysqli_query($GLOBALS['link'], 'update teams set `score`=`score` + '. $points .' where `id`='. $teamId .';');\r\n\r\n return mysqli_affected_rows($GLOBALS['link']);\r\n}",
"public function testUpdateChallengeActivity()\n {\n }",
"function myPear_update26(){\n \n if (myPear_db()->tableExists('zzz_organizations')){\n if (myPear_db()->columnExists('org_nickname','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` CHANGE `org_nickname` `org_code` VARCHAR(32) NULL\",1);\n myPear_db()->reset_cache();\n }\n \n if (!myPear_db()->columnExists('org_name_short','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` ADD `org_name_short` VARCHAR(32) NOT NULL AFTER `org_name`\",1);\n myPear_db()->reset_cache();\n foreach(array('an' => 'AlbaNova',\n\t\t 'nordita'=> 'Nordita',\n\t\t 'fysikum'=> 'Fysikum',\n\t\t 'kth' => 'KTH',\n\t\t 'okc' => 'OKC',\n\t\t 'vh' => 'Vetenskapenshus',\n\t\t 'gu' => 'GU',\n\t\t ) as $org_code=>$org_name_short){\n\tmyPear_db()->qquery(\"UPDATE `zzz_organizations` SET org_name_short='$org_name_short' WHERE org_code='$org_code'\",1);\n\t\n }\n }\n }\n}",
"public function actionAssign_team() { // update by anoop 21-11-18\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('assign_team')) {\n return $this->redirect(['site/index']);\n }\n $model = new DvUsersRole(); \n if (Yii::$app->request->post()) {\n $dep_id = $_POST['DvUsersTeam']['dep_id'];\n $team_manager = $_POST['team_manager'];\n $useremail = $_POST['DvUsersTeam']['user_email'];\n $user_email = trim($useremail);\n // get user id\n $userid = Yii::$app->db->createCommand(\"SELECT assist_users.id as id FROM assist_users \n JOIN assist_user_meta on assist_user_meta.uid = assist_users.id WHERE email = '$user_email' AND department = '$dep_id' \n AND assist_user_meta.meta_key= 'role' AND assist_user_meta.meta_value <> 7 AND assist_users.status = 1 \")->queryAll();\n if (!empty($userid)) {\n $user_id = $userid[0]['id'];\n // get manager email\n $manager_email = Yii::$app->db->createCommand(\"SELECT email FROM assist_users WHERE id = '$team_manager' AND status = 1 \")->queryAll();\n $manageremail = $manager_email[0]['email']; //var_dump($user_id); die();\n\n $result = Yii::$app->db->createCommand(\"UPDATE assist_user_meta SET meta_value = '$team_manager' WHERE meta_key = 'team' AND uid = '$user_id' AND meta_value = ''\")->execute();\n }\n\n\n if (isset($result) && $result == 1) {\n Yii::$app->session->setFlash('success', 'User with Email Address <u>' . $useremail . '</u> Successfully Assigned to Manger with Email Address <u>' . $manageremail . '</u>');\n } else {\n Yii::$app->session->setFlash('danger', 'User with Email Address <u>' . $useremail . '</u> is already assiged to other Manger.</u>');\n }\n return $this->redirect(['dv-users/assign_team']);\n } else {\n return $this->render('assign_team', [ 'model' => $model]);\n }\n }",
"public function testUpdateChallenge()\n {\n }",
"public function testUpdateSiteMembershipRequestForPerson()\n {\n }",
"public function update(Request $request, Teamrequest $teamrequest)\n {\n //\n }",
"public function testUpdateExternalShipment()\n {\n }",
"public function updateOffensiveMethod($offensiveMethodId,$teamId,$action)\n {\n if($action==corruption_rules::ADD_ACTION)\n {\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt+1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }else{\n $queryString=\"UPDATE team_offensive_methods\n SET qt=qt-1\n WHERE team_id=$teamId\n AND offensive_method_id=$offensiveMethodId\";\n }\n\n $query = $this->db->query($queryString);\n }",
"public function testUpdateSurvey0()\n {\n }",
"public function testUpdateSurvey0()\n {\n }",
"public function testUpdateSuperfund()\n {\n }",
"public function quickEdit() {\n if ($this->request->is('post')) {\n $rq_data = $this->request->data;\n $type = $rq_data['type'];\n\n if ($type == 2) {\n $ids = $rq_data['id'];\n $input = $rq_data['input'];\n $now = date('Y-m-d H:i:s');\n if ($this->Team->updateAll(array('name' => \"'$input'\", 'cdate' => \"'$now'\"), array('Team.id' => $ids))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 3) {\n $id = $rq_data['id'];\n $input = $rq_data['input'];\n $cr_data = $rq_data['cr_data'];\n $cr_date = date('Y-m-d H:i:s');\n// $this->Management->query(\"UPDATE management SET team_id = {$id}, update_date = '{$cr_date}' WHERE id = {$input}\");\n\n if ($this->Management->updateAll(array('team_id' => $id, 'update_date' => \"'{$cr_date}'\"), array('id' => $input))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 5) {\n $id = $rq_data['id'];\n $input = $rq_data['input'];\n if ($this->Team->save(array('id' => $id, 'code' => $input))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n } elseif ($type == 6) {\n $ids = $rq_data['ids'];\n foreach ($ids as $v_id) {\n $visible = $this->Team->find('first', array(\n 'conditions' => array('id' => $v_id),\n 'fields' => array('valid')\n ));\n $status = ($visible['Team']['valid'] == 1) ? 0 : 1;\n\n if ($this->Team->save(array('id' => $v_id, 'valid' => $status))) {\n $this->Session->setFlash(__('プロジェクトのアップデートに成功しました。'), 'alert-box', array('class' => 'alert-success'));\n } else {\n $this->Session->setFlash(__('プロジェクトをアップデートすることはできません。'), 'alert-box', array('class' => 'alert-danger'));\n }\n }\n }\n\n echo json_encode(1);\n exit;\n }\n }",
"function addBonusMalusToTeam($teamId, $cause){\r\n //log or other action before editing player's score\r\n //$GLOBALS['link'] = connect();\r\n\t\r\n\tmysqli_query($GLOBALS['link'], 'insert into specialteamlog(causeId, teamId, scoreImpact) VALUES ('.$cause['id'].', '.$teamId.', '.$cause['value'].');') or die(mysqli_error($GLOBALS['link']));\r\n return mysqli_affected_rows($GLOBALS['link']);\r\n}",
"public function userUpdate(Event $event){\n $em = $this->getServiceLocator()->get('Omeka\\EntityManager');\n $entity = $event->getParam('entity');\n $request = $event->getParam('request');\n $operation = $request->getOperation();\n $error_store = $event->getParam('errorStore');\n\n if ($operation == 'update' ){\n $user_id = $request->getId();\n\n //stop if teams aren't part of the update\n if (array_key_exists('o-module-teams:Team', $request->getContent())){\n //array of team ids\n\n if ($user_role = $this->getUser()->getRole() == 'global_admin') {//remove the user's teams\n $user = $em->getRepository('Omeka\\Entity\\User')->findOneBy(['id' => $user_id]);\n\n $pre_teams = $em->getRepository('Teams\\Entity\\TeamUser')->findBy(['user' => $user_id]);\n\n foreach ($pre_teams as $pre_team):\n if ($pre_team->getCurrent()){\n $current_team_id = $pre_team->getTeam()->getId();\n }\n $em->remove($pre_team);\n endforeach;\n $em->flush();\n $current_team_id = isset($current_team_id )? $current_team_id : 0;\n\n //add the teams from the form\n $teams = $em->getRepository('Teams\\Entity\\Team');\n foreach ($request->getContent()['o-module-teams:Team'] as $team_id):\n $team_id = (int) $team_id;\n\n //adding new team from the user form, indicated by an id of 0\n if ($team_id === 0){\n $u_name = $request->getContent()['o:name'];\n $team_name = sprintf(\"%s's team\", $u_name);\n $team_exists = $em->getRepository('Teams\\Entity\\Team')->findOneBy(['name'=>$team_name]);\n if ($team_exists){\n $messanger = new Messenger();\n $messanger->addWarning(\"The team you tried to add already exists. Added user to the team.\");\n $team = $team_exists;\n\n\n } else{\n $team = new Team();\n $team->setName($team_name);\n $team->setDescription(sprintf('A team automatically generated for new user %s', $u_name));\n $em->persist($team);\n $em->flush();\n }\n\n } else {\n $team = $teams->findOneBy(['id'=> $team_id]);\n }\n\n //get it this way because the roles are added dynamically as js and not part of pre-baked form\n $role_id = $request->getContent()['o-module-teams:TeamRole'][$team_id];\n $role = $em->getRepository('Teams\\Entity\\TeamRole')\n ->findOneBy(['id'=>$role_id]);\n\n $team_user_exists = $em->getRepository('Teams\\Entity\\TeamUser')\n ->findOneBy(['team'=>$team->getId(), 'user'=>$user_id]);\n\n if ($team_user_exists){\n echo $team_user_exists->getId();\n } else {\n $team_user = new TeamUser($team,$user,$role);\n $em->persist($team_user);\n if ($team_id == $current_team_id){\n $team_user->setCurrent(true);\n }\n $em->persist($team_user);\n\n //this is not ideal to flush each iteration, but it is how to check to make sure they didn't\n //TODO: catch this in chosen-trigger.js instead\n $em->flush();\n }\n\n endforeach;\n\n $em->flush();\n\n //if their current team was removed, just give them a current team from the top of the list\n if (array_key_exists('o-module-teams:Team', $request->getContent())){\n if (! in_array($current_team_id, $request->getContent()['o-module-teams:Team'])){\n $em->getRepository('Teams\\Entity\\TeamUser')->findOneBy(['user' => $user_id])\n ->setCurrent(true);\n $em->flush();\n\n }\n }\n\n }\n\n }\n\n }\n return;\n\n }",
"function renameteam() {\n $this->auth(COMP_ADM_LEVEL);\n $team_id = $this->uri->segment(3);\n $new_name = urldecode($this->uri->segment(4));\n $data['team'] = $this->m_team->updateName($team_id, $new_name);\n $this->teamedit();\n }",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->postScriptumServer->adminForceTeamChange(0));\n }",
"public function update($data)\n {\n $this->db->where('id',$data['id']);\n return $this->db->update('team',$data);\n }",
"function updateGameDetails( $dbData, $tournamentID ) {\n\n/* ... write the update back to the DB */\n $this->db->where( 'TournamentID', $tournamentID );\n $this->db->update( 'Tournament', $dbData );\n\n/* ... time to go */\n return;\n }",
"function updateUsersTeam($teamIds, $user)\n{\n global $db;\n try {\n $teams = \"DELETE FROM team_users \n WHERE user_id = '\". $user .\"'\";\n \n $statement = $db->prepare($teams);\n $statement->execute(); \n addUsersTeams($teamIds,$user);\n } catch (Exception $exception) {\n throw new Exception($exception->getMessage());\n } \n}",
"function update_match_stats_entered($team_id1, $team_id2, $team1_points, $team2_points, $site, $connection)\n\t{\n\t\t$query = 'UPDATE `teams_profile` SET `num_matches_total`=`num_matches_total`+1';\n\t\t$query .= ' WHERE (`teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2) . ')';\n\t\tif (!($result = $site->execute_query('teams_overview', $query, $connection)))\n\t\t{\n\t\t\tunlock_tables($site, $connection);\n\t\t\t$site->dieAndEndPage('The match count for the teams with id'\n\t\t\t\t\t\t\t\t . sqlSafeString($team_id1) . ' and ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t}\n\t\t\n\t\t// mark both participating teams as active\n\t\t$query = ('UPDATE `teams_overview` SET `deleted`=' . sqlSafeStringQuotes('1')\n\t\t\t\t . ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2)\n\t\t\t\t . ' LIMIT 2');\n\t\tif (!($result = @$site->execute_query('teams_overview', $query, $connection)))\n\t\t{\n\t\t\t$site->dieAndEndPage('Could not mark team with id ' . sqlSafeString($teamid) . ' as active!');\n\t\t}\n\t\t\n\t\t\n\t\t// increase match win count for teams that participated\n\t\tif ($team1_points > $team2_points)\n\t\t{\n\t\t\t// team 1 won\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_won`=`num_matches_won`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match win count for team ' . sqlSafeString($team_id1) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t\t// team 2 lost\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_lost`=`num_matches_lost`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id2);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match lose count for team ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($team1_points < $team2_points)\n\t\t{\n\t\t\t// team 2 won\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_won`=`num_matches_won`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id2);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match win count for team ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t\t// team 1 lost\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_lost`=`num_matches_lost`+1';\n\t\t\t$query .= ' WHERE `teamid`=' . sqlSafeStringQuotes($team_id1);\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match lose count for team ' . sqlSafeString($team_id1) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t}\n\t\t\n\t\t// match entered ended in a draw\n\t\tif (((int) $team1_points) === ((int) $team2_points))\n\t\t{\n\t\t\t$query = 'UPDATE `teams_profile` SET `num_matches_draw`=`num_matches_draw`+1';\n\t\t\t$query .= ' WHERE (`teamid`=' . sqlSafeStringQuotes($team_id1) . ' OR `teamid`=' . sqlSafeStringQuotes($team_id2) . ')';\n\t\t\tif (!($result = $site->execute_query('teams_profile', $query, $connection)))\n\t\t\t{\n\t\t\t\tunlock_tables($site, $connection);\n\t\t\t\t$site->dieAndEndPage('The match draw count for the teams with id'\n\t\t\t\t\t\t\t\t\t . sqlSafeString($team_id1) . ' and ' . sqlSafeString($team_id2) . ' could not be updated due to a sql problem!');\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"function update_player_league($playerID, $leagueID, $player) {\r\n\tforeach($player as $key => $value){\r\n\t\t$values[] = array(\"col\" => $key, \"value\" => $value);\r\n\t}\r\n\t$cond[]= array(\"col\" => \"playerID\", \"value\" => $playerID);\r\n\t$cond[]= array(\"col\" => \"leagueID\", \"value\" => $leagueID);\r\n\r\n\t//print_r($cond);\r\n\t$ID = uli_update_record('player_league', $cond, $values);\r\n\tif ($ID){return TRUE;}\r\n\telse {return FALSE;}\r\n}",
"function update_tournament_player($params,$team_id)\n {\n $this->db->where('tournament_players_id',$tournament_players_id);\n return $this->db->update('tournament_players',$params);\n }",
"public function testUpdateExternalShipmentCustomFields()\n {\n }",
"public function update_opportunity() {\n\t\tif($this->session->userdata('uid')){\n\t\t\ttry {\n\t\t\t\t$given_data = array(\n\t\t\t\t\t'files' \t\t=> $_FILES,\n\t\t\t\t\t'stage_closed_date' => $this->input->post('stage_closed_date'),\n\t\t\t\t\t'stage_value' \t=> $this->input->post('stage_value'),\n\t\t\t\t\t'stage_numbers' => $this->input->post('stage_numbers'),\n\t\t\t\t\t'stage_rate'\t=> $this->input->post('stage_rate'),\n\t\t\t\t\t'stage_score'\t=> $this->input->post('stage_score'),\n\t\t\t\t\t'stage_customer_code'=>$this->input->post('stage_customer_code'),\n\t\t\t\t\t'stage_priority'=> $this->input->post('stage_priority'),\n\t\t\t\t\t'stage_remarks' => $this->input->post('stage_remarks'),\n\t\t\t\t\t'opportunity_id'=> $this->input->post('opportunity_id'),\n\t\t\t\t\t'lead_cust_id' \t=> $this->input->post('lead_cust_id'),\n\t\t\t\t\t'stage_id' \t\t=> $this->input->post('stage_id'),\n\t\t\t\t\t'cycle_id' \t\t=> $this->input->post('cycle_id'),\n\t\t\t\t\t'sell_type' \t=> $this->input->post('sell_type'),\n\t\t\t\t\t'mapping_id'\t=> uniqid(rand()),\n\t\t\t\t\t'user_id'\t\t=> $this->session->userdata('uid'),\n\t\t\t\t\t'contact_list'\t=> $this->input->post('contact_list')\n\t\t\t\t);\n\t\t\t\tif (($given_data['stage_closed_date'] == '0000-00-00') || ($given_data['stage_closed_date'] == '')) {\n\t\t\t\t\t$given_data['stage_closed_date'] = null;\n\t\t\t\t}\n\t\t\t\t$upload = $this->upload_file($given_data);\n\t\t\t\tif ($upload == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n $opp_data= $this->opp_sales->stage_owner($given_data['opportunity_id']); // gets all data from opportunity details\n $stage_manager_owner_id=$opp_data[0]->stage_manager_owner_id;\n\t\t\t\t$log_attr_data = array(\n\t\t\t\t\t'mapping_id' => $given_data['mapping_id'],\n\t\t\t\t\t'opportunity_id'=> $given_data['opportunity_id'],\n\t\t\t\t\t'stage_id'=> $given_data['stage_id'],\n\t\t\t\t\t'user_id'=> $given_data['user_id'],\n 'opp_numbers'=>$stage_manager_owner_id,\n\t\t\t\t\t'opp_close_date'=> $given_data['stage_closed_date'],\n\t\t\t\t\t'oppo_rate' => $given_data['stage_rate'],\n\t\t\t\t\t'oppo_score' => $given_data['stage_score'],\n\t\t\t\t\t'oppo_customer_code' => $given_data['stage_customer_code'],\n\t\t\t\t\t'oppo_priority' => $given_data['stage_priority'],\n\t\t\t\t\t'timestamp'=> date('Y-m-d H:i:s'),\n\t\t\t\t\t'remarks'=> $given_data['stage_remarks']\n\t\t\t\t);\n\t\t\t\t$this->opp_common->log_attr($log_attr_data);\n\n\n\t\t\t\t$oppo_attr = $this->opp_common->fetch_oppoAttr($given_data['opportunity_id']);\n\t\t\t\tif ($oppo_attr == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t$changed_attr = array();\n\t\t\t\t/*if ($oppo_attr[0]->numbers != $given_data['stage_numbers']) {\n\t\t\t\t\t$changed_attr['opportunity_numbers'] = $given_data['stage_numbers'];\n\t\t\t\t}*/\n\t\t\t\tif ($oppo_attr[0]->close_date != $given_data['stage_closed_date']) {\n\t\t\t\t\t$changed_attr['opportunity_date'] = $given_data['stage_closed_date'];\n\t\t\t\t}\n\t\t\t /*\tif ($oppo_attr[0]->value != $given_data['stage_value']) {\n\t\t\t\t\t$changed_attr['opportunity_value'] = $given_data['stage_value'];\n\t\t\t\t}*/\n\t\t\t\tif ($oppo_attr[0]->rate != $given_data['stage_rate']) {\n\t\t\t\t\t$changed_attr['opportunity_rate'] = $given_data['stage_rate'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->score != $given_data['stage_score']) {\n\t\t\t\t\t$changed_attr['opportunity_score'] = $given_data['stage_score'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->customer_code != $given_data['stage_customer_code']) {\n\t\t\t\t\t$changed_attr['opportunity_customer_code'] = $given_data['stage_customer_code'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->priority != $given_data['stage_priority']) {\n\t\t\t\t\t$changed_attr['opportunity_priority'] = $given_data['stage_priority'];\n\t\t\t\t}\n\t\t\t\tif ($oppo_attr[0]->stage != $given_data['stage_id']) {\n\t\t\t\t\t$changed_attr['opportunity_stage'] = $given_data['stage_id'];\n\t\t\t\t}\n\t\t\t\t$this->opp_common->updateOpportunity($changed_attr, $given_data['opportunity_id']);\n\n\t\t\t\t$log_trans_data = array(\n\t\t\t\t\t'mapping_id' => $given_data['mapping_id'],\n\t\t\t\t\t'opportunity_id'=> $given_data['opportunity_id'],\n\t\t\t\t\t'lead_cust_id' => $given_data['lead_cust_id'],\n\t\t\t\t\t'from_user_id'=> $given_data['user_id'],\n\t\t\t\t\t'to_user_id'=> $given_data['user_id'],\n\t\t\t\t\t'cycle_id' => $given_data['cycle_id'],\n\t\t\t\t\t'stage_id' => $given_data['stage_id'],\n\t\t\t\t\t'module' => 'sales',\n\t\t\t\t\t'action' => 'updated',\n\t\t\t\t\t'timestamp'=> date('Y-m-d H:i:s'),\n\t\t\t\t\t'sell_type' => $given_data['sell_type'],\n\t\t\t\t\t'remarks' => $given_data['stage_remarks'],\n\t\t\t\t);\n\t\t\t\t$updateStatus=$this->opp_common->map_opportunity(array(0 => $log_trans_data));\n\t\t\t\t$finalArray = array('errors' => array(), 'status' => $updateStatus);\n\t\t\t\techo(json_encode($finalArray));\n\t\t\t} catch (LConnectApplicationException $e) {\n\t\t\t\techo $this->exceptionThrower($e);\n\t\t\t}\n\t\t}else{\n\t\t\tredirect('indexController');\n\t\t}\n\t}",
"public function testUpdateNotOwnCreated()\r\n {\r\n //create teacher user\r\n $teacher = $this->CreateTeacher();\r\n $lisUser = $this->CreateTeacherUser($teacher);\r\n\r\n //now we have created teacheruser set to current controller\r\n $this->controller->setLisUser($lisUser);\r\n $this->controller->setLisPerson($teacher);\r\n\r\n //create other teacher user\r\n $otherTeacher = $this->CreateTeacher();\r\n $otherLisUser = $this->CreateTeacherUser($otherTeacher);\r\n\r\n //$name = uniqid() . 'Name';\r\n $subjectRound = $this->CreateSubjectRound();\r\n $student = $this->CreateStudent();\r\n //$anotherTeacher = $this->CreateTeacher();\r\n \r\n\r\n $independentWork = $this->CreateIndependentWork([\r\n 'name' => uniqid() . 'Name',\r\n 'duedate' => new \\DateTime,\r\n 'description' => uniqid() . ' Description for independentwork',\r\n 'durationAK' => (int) uniqid(),\r\n 'subjectRound' => $subjectRound->getId(),\r\n 'teacher' => $teacher->getId(),\r\n 'student' => $student->getId(),\r\n 'createdBy' => $otherLisUser->getId()\r\n ]);\r\n\r\n //$subjectRoundIdOld = $independentWork->getSubjectRound()->getId();\r\n //$studentIdOld = $independentWork->getStudent()->getId();\r\n //$teacherIdOld = $independentWork->getTeacher()->getId();\r\n\r\n $this->request->setMethod('put');\r\n $this->routeMatch->setParam('id', $independentWork->getId());\r\n\r\n $this->request->setContent(http_build_query([\r\n 'student' => $this->CreateStudent()->getId(),\r\n 'subjectRound' => $this->CreateSubjectRound()->getId(),\r\n 'teacher' => $teacher->getId(),\r\n ]));\r\n\r\n //fire request\r\n $result = $this->controller->dispatch($this->request);\r\n $response = $this->controller->getResponse();\r\n\r\n $this->PrintOut($result, false);\r\n\r\n $this->assertEquals(200, $response->getStatusCode());\r\n $this->assertEquals(false, $result->success);\r\n $this->assertEquals('SELF_CREATED_RESTRICTION', $result->message);\r\n }",
"function update_teammember($TeamMemberId,$params)\n {\n $this->db->where('TeamMemberId',$TeamMemberId);\n return $this->db->update('TeamMember',$params);\n }",
"function update_general_info($usernameDB, $passwordDB, $email, $first_name_update, $last_name_update, $birthday, $member_address, $member_apartment, $member_city, $member_state, $member_zip, $member_home_phone, $member_cell_phone, $season, $yearGraduate, $pledgeClass) {\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t//Update any general information that has been changed.\n\t$update = array();\n\t\n\tif(trim($first_name_update) !== \"\") {\n\t $update[] = \"first_name = :first_name\";\n\t}\n\t\n\tif(trim($last_name_update) !==\"\") {\n\t\t$update[] = \"last_name = :last_name\";\n\t}\n\t\n\tif(trim($season) !== \"\") {\n\t $update[] = \"graduation_season = :season\";\n\t}\n\t\n\tif(trim($yearGraduate) !==\"\") {\n\t\t$update[] = \"graduation_year = :year\";\n\t}\n\t\n\tif(trim($pledgeClass) !==\"\") {\n\t\t$update[] = \"pledge_class = :pledge_class\";\n\t}\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($first_name_update) !== \"\") {\n\t $stmt->bindParam(\":first_name\", $first_name_update);\n\t }\n\t \n\t if(trim($last_name_update) !== \"\") {\n\t $stmt->bindParam(\":last_name\", $last_name_update);\n\t }\n\t \n\t if(trim($season) !== \"\") {\n\t $stmt->bindParam(\":season\", $season);\n\t }\n\t \n\t if(trim($yearGraduate) !== \"\") {\n\t $stmt->bindParam(\":year\", $yearGraduate);\n\t }\n\t \t \n\t if(trim($pledgeClass) !== \"\") {\n\t $stmt->bindParam(\":pledge_class\", $pledgeClass);\n\t }\n\n\t $stmt->execute();\n\t}\t\n\t\n\t//Connect to the members_contact\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t$update = array();\n\t\n\tif(trim($birthday) !== \"\") {\n\t $update[] = \"date_of_birth = :birthday\";\n\t}\n\t\n\tif(trim($member_address) !== \"\") {\n\t\t$update[] = \"school_address = :member_address\";\n\t}\n\t\n\tif(trim($member_apartment) !== \"\") {\n\t\t$update[] = \"apt = :member_apartment\";\n\t}\n\t\n\tif(trim($member_city) !== \"\") {\n\t\t$update[] = \"city = :member_city\";\n\t}\n\t\n\tif(trim($member_state) !== \"\") {\n\t\t$update[] = \"state = :member_state\";\n\t}\n\t\n\tif(trim($member_zip) !== \"\") {\n\t\t$update[] = \"zip_code = :member_zip_code\";\n\t}\n\t\n\tif(trim($member_home_phone) !== \"\") {\n\t\t$update[] = \"home_phone = :member_home_phone\";\n\t}\n\t\n\tif(trim($member_cell_phone) !== \"\") {\n\t\t$update[] = \"cell_phone = :member_cell_phone\";\n\t}\n\t\n\t\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members_contact SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($birthday) !== \"\") {\n\t $stmt->bindParam(\":birthday\", $birthday);\n\t }\n\t \n\t if(trim($member_address) !== \"\") {\n\t\t $stmt->bindParam(\":member_address\", $member_address);\n\t }\n\t \n\t if(trim($member_apartment) !== \"\") {\n\t\t $stmt->bindParam(\":member_apartment\", $member_apartment);\n\t }\n\t \n\t if(trim($member_city) !== \"\") {\n\t\t $stmt->bindParam(\":member_city\", $member_city);\n\t }\n\t \n\t if(trim($member_state) !== \"\") {\n\t\t $stmt->bindParam(\":member_state\", $member_state);\n\t }\n\t \n\t if(trim($member_zip) !== \"\") {\n\t\t $stmt->bindParam(\":member_zip_code\", $member_zip);\n\t }\n\t \n\t if(trim($member_home_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_home_phone\", $member_home_phone);\n\t }\n\t \n\t if(trim($member_cell_phone) !== \"\") {\n\t\t $stmt->bindParam(\":member_cell_phone\", $member_cell_phone);\n\t }\n\n\t $stmt->execute();\n\t}\t\n}",
"public function test_squad_server_admin_force_team_change_by_id()\n {\n $this->assertTrue($this->btwServer->adminForceTeamChange(0));\n }",
"public function testUpdatePayrun()\n {\n }",
"public function update() {\n if(!$this->request->is('restful')) {\n $targetCoPersonId = $this->request->data['CoGroupMember']['co_person_id'];\n $userCoPersonId = $this->Session->read('Auth.User.co_person_id');\n $requesterIsAdmin = $this->Role->isCoAdmin($userCoPersonId, $this->cur_co['Co']['id'])\n || $this->Role->identifierIsCmpAdmin($this->Session->read('Auth.User.username'));\n \n try {\n $this->CoGroupMember->updateMemberships($targetCoPersonId,\n $this->request->data['CoGroupMember']['rows'],\n $userCoPersonId,\n $requesterIsAdmin);\n \n $this->Flash->set(_txt('rs.saved'), array('key' => 'success'));\n }\n catch(Exception $e) {\n $this->Flash->set($e->getMessage(), array('key' => 'error'));\n }\n \n // Issue redirect\n $redir = array();\n $redir['controller'] = 'co_groups';\n $redir['action'] = 'select';\n $redir['co'] = $this->cur_co['Co']['id'];\n\n // If the current user is not the same as the target CO Person for whom\n // memberships are being managed then include the copersonid parameter.\n if($targetCoPersonId != $userCoPersonId) {\n $redir['copersonid'] = $targetCoPersonId;\n }\n\n $this->redirect($redir);\n }\n }",
"public function update(Request $request)\n {\n $match = Match::where('id', $request->match_id)->first();\n $match->host_team_result = $request->host_goals;\n $match->guest_team_result = $request->guest_goals;\n\n\n// //update host team standings\n $host_team_standings = Standing::where('team_id', $match->host_team_id)->first();\n $host_team_standings->gp += 1;\n//\n// //update guest team standings\n $guest_team_standings = Standing::where('team_id', $match->guest_team_id)->first();\n $guest_team_standings->gp += 1;\n\n// //update win results\n if ($request->host_goals > $request->guest_goals) {\n $host_team_standings->w += 1;\n $host_team_standings->pts += 3;\n $guest_team_standings->l += 1;\n $guest_team_standings->pts += 1;\n } else if ($request->host_goals < $request->guest_goals)\n {\n\n $host_team_standings->l += 1;\n $host_team_standings->pts += 1;\n $guest_team_standings->w += 1;\n $guest_team_standings->pts += 3;\n } else if ($request->host_goals == $request->guest_goals)\n {\n $host_team_standings->d += 1;\n $guest_team_standings->d += 1;\n }\n $host_team_standings->save();\n $guest_team_standings->save();\n $match->save();\n\n return response()->json(['success'=> \"Results updated\"]);\n }",
"public function update(Request $request,Project $project, ScrumTeam $scrumTeam)\n {\n //\n }",
"public function massCriteriaTwoAction()\n {\n $ifeedbackIds = $this->getRequest()->getParam('ifeedback');\n if (!is_array($ifeedbackIds)) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_kst')->__('Please select instructor feedbacks.')\n );\n } else {\n try {\n foreach ($ifeedbackIds as $ifeedbackId) {\n $ifeedback = Mage::getSingleton('bs_kst/ifeedback')->load($ifeedbackId)\n ->setCriteriaTwo($this->getRequest()->getParam('flag_criteria_two'))\n ->setIsMassupdate(true)\n ->save();\n }\n $this->_getSession()->addSuccess(\n $this->__('Total of %d instructor feedbacks were successfully updated.', count($ifeedbackIds))\n );\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_kst')->__('There was an error updating instructor feedbacks.')\n );\n Mage::logException($e);\n }\n }\n $this->_redirect('*/*/index');\n }",
"public function updateSportive()\r\n\t{\r\n\t\t// Donnees\r\n\t\t$eventId = Bn::getValue('event_id');\r\n\t\t$oEvent = new Oevent($eventId);\r\n\t\t// Controle de l'autorisation\r\n\t\tif ( $oEvent->getVal('ownerid') != Bn::getValue('user_id') && !Oaccount::isLoginAdmin() ) return false;\r\n\r\n\t\t// Donnees du tournoi\r\n\t\t$oEvent->setVal('scoringsystem', Bn::getValue('scoringsystem'));\r\n\t\t$oEvent->setVal('ranksystem', Bn::getValue('ranksystem'));\r\n\t\t$oEvent->setVal('catage', Bn::getValue('catage'));\r\n\t\t$oEvent->setVal('nature', Bn::getValue('nature'));\r\n\t\t$oEvent->setVal('level', Bn::getValue('level'));\r\n\t\t$type = $oEvent->getVal('type');\r\n\t\tif (!$oEvent->isIc())\r\n\t\t{\r\n\t\t\t$oEvent->setVal('nbdrawmax', Bn::getValue('nbdrawmax'));\r\n\t\t\t$oEvent->save();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$weight = Bn::getValue('teamweight');\r\n\t\t\tif ($weight != $oEvent->getVal('teamweight'))\r\n\t\t\t{\r\n\t\t\t\t$oEvent->setVal('teamweight', Bn::getValue('teamweight'));\r\n\t\t\t\t$oEvent->save();\r\n\t\t\t\t$teamIds = $oEvent->getTeams();\r\n\t\t\t\tforeach($teamIds as $teamId)\r\n\t\t\t\t{\r\n\t\t\t\t\t$oTeam = new Oteam($teamId);\r\n\t\t\t\t\t$points = $oTeam->weight();\r\n\t\t\t\t\tunset($oTeam);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t// Message de fin\r\n\t\t$body = new Body();\r\n\t\t$body->addWarning(LOC_LABEL_PREF_REGISTERED);\r\n\t\t$d = $body->addDiv('', 'bn-div-btn');\r\n\t\t$d->addButtonCancel('btnCancel', LOC_BTN_CLOSE);\r\n\r\n\t\t// Envoi au navigateur\r\n\t\t$res = array('content' => $body->toHtml(),\r\n\t\t\t\t\t'title' => LOC_ITEM_SPORTIVE);\r\n\t\techo Bn::toJson($res);\r\n\t}",
"function setTeam($s)\n\t{\n\t\t$this->Info['Team'] = $s;\n\t\tupdateTableByUser('Developer', 'Team', $s, $this->Username);\n\t}",
"public function editUserTeam_post() {\n /* Validation section */\n $this->form_validation->set_rules('SessionKey', 'SessionKey', 'trim|required|callback_validateSession');\n $this->form_validation->set_rules('SeriesGUID', 'SeriesGUID', 'trim|required|callback_validateEntityGUID[Series,SeriesID]');\n $this->form_validation->set_rules('MatchGUID', 'MatchGUID', 'trim|required|callback_validateEntityGUID[Matches,MatchID]');\n $this->form_validation->set_rules('UserTeamGUID', 'UserTeamGUID', 'trim|required|callback_validateEntityGUID[User Teams,UserTeamID]');\n $this->form_validation->set_rules('UserTeamType', 'UserTeamType', 'trim|required|in_list[Draft]');\n $this->form_validation->set_rules('UserTeamName', 'UserTeamName', 'trim');\n $this->form_validation->set_rules('UserTeamPlayers', 'UserTeamPlayers', 'trim');\n\n $this->form_validation->validation($this); /* Run validation */\n /* Validation - ends */\n\n if (!$this->SnakeDrafts_model->editUserTeam(array_merge($this->Post, array('SeriesID' => $this->SeriesID)), $this->UserTeamID, $this->MatchID)) {\n $this->Return['ResponseCode'] = 500;\n $this->Return['Message'] = \"An error occurred, please try again later.\";\n } else {\n $this->Return['Message'] = \"Team updated successfully.\";\n }\n }",
"public function update_about_us_team_info($data){\r\n if($_FILES['member_image']['name']) {\r\n $this->imageUnlink($data);/*this code for image delete(unlink) from the folder*/\r\n $img_url = $this->save_image_info(); /*this code for calling a image function*/\r\n\r\n $query = \"UPDATE tbl_aboutus_team SET member_name='$data[member_name]', member_designation='$data[member_designation]', member_sort_desc='$data[member_sort_desc]',\r\n facebook_link='$data[facebook_link]', twitter_link='$data[twitter_link]', linkedin_link='$data[linkedin_link]', googleplus_link='$data[googleplus_link]', member_image='$img_url', publication_status='$data[publication_status]' WHERE team_member_id='$data[team_member_id]'\";\r\n if (mysqli_query($this->db_connect, $query)) {\r\n session_start();\r\n $_SESSION['message'] = \"About us Team member Information Updated Successfully!\";\r\n header('Location: manage_team.php');\r\n } else {\r\n die(\"Query Problem! \" . mysqli_error($this->db_connect));\r\n }\r\n }else{\r\n $query = \"UPDATE tbl_aboutus_team SET member_name='$data[member_name]', member_designation='$data[member_designation]', member_sort_desc='$data[member_sort_desc]',\r\n facebook_link='$data[facebook_link]', twitter_link='$data[twitter_link]', linkedin_link='$data[linkedin_link]', googleplus_link='$data[googleplus_link]', publication_status='$data[publication_status]' WHERE team_member_id='$data[team_member_id]'\";\r\n if (mysqli_query($this->db_connect, $query)) {\r\n session_start();\r\n $_SESSION['message'] = \"About us Team member Information Updated Successfully!\";\r\n header('Location: manage_team.php');\r\n } else {\r\n die(\"Query Problem! \" . mysqli_error($this->db_connect));\r\n }\r\n }\r\n }",
"public function update(Request $request, team_members $team_members)\n {\n //\n }",
"function myPear_update21(){\n\n // Clean up\n $q=myPear_db()->qquery(\"SELECT * FROM zzz_units WHERE u_rank = 'RO'\",1);\n while($r=myPear_db()->next_record($q)) b_debug::print_r($r,'record');\n \n myPear_db()->qquery(\"DELETE FROM zzz_units WHERE u_rank = 'RO'\",1);\n myPear_db()->qquery(\"SELECT * FROM zzz_list_members WHERE lm_key='' AND lm_value=''\",1); \n myPear_db()->qquery(\"DELETE FROM zzz_list_members WHERE lm_key='' AND lm_value=''\",1); \n $q = myPear_db()->qquery(\"SELECT l_id FROM zzz_lists WHERE l_member_title='department'\",1);\n while($r = myPear_db()->next_record($q)){\n myPear_db()->qquery(\"DELETE FROM zzz_lists WHERE l_id=$r[l_id]\",1);\n myPear_db()->qquery(\"DELETE FROM zzz_list_members WHERE lm_lid=$r[l_id]\",1);\n }\n myPear_db()->qquery(\"UPDATE zzz_organizations SET org_name='SU/Fysikum' WHERE org_name='Stockholm U/Fysikum'\",1);\n\n\n // NO. Write module name to the database for the bLists\n foreach(array('zzz_units'=> 'u',\n\t\t'zzz_lists'=> 'l',\n\t\t) as $t=>$prefix){\n\n if (myPear_db()->columnExists(\"${prefix}_module\",$t)){\n myPear_db()->query(\"ALTER TABLE `$t` DROP `${prefix}_module`\");\n myPear_db()->reset_cache();\n }\n }\n \n // Upgrade Organozation\n if (!myPear_db()->columnExists('org_roles','zzz_organizations')){\n myPear_db()->qquery(\"ALTER TABLE `zzz_organizations` ADD `org_roles` VARCHAR(240) NOT NULL AFTER `org_theme`\",1); \n myPear_db()->reset_cache();\n }\n\n // Keep u_name\n $type = myPear_db()->getColumnType('zzz_units','u_rank');\n if (strToLower($type) != 'int'){\n myPear_db()->qquery(\"ALTER TABLE `zzz_units` CHANGE `u_rank` `u_rank` INT NOT NULL\"); \n }\n\n myPear_db()->qquery(\"UPDATE zzz_lists SET l_class = 'bList_eaEmpRecords' WHERE l_class = 'bList_ea'\",1);\n foreach(array('zzz_units'=>array(//'u_name',\n\t\t\t\t //'u_member_title',\n\t\t\t\t ),\n\t\t'zzz_lists'=>array('l_rank',\n\t\t\t\t //'l_name',\n\t\t\t\t //'l_member_title',\n\t\t\t\t )) as $t=>$ff){\n foreach($ff as $f)\n if (myPear_db()->columnExists($f,$t)) myPear_db()->query(\"ALTER TABLE `$t` DROP `$f`\");\n }\n myPear_db()->reset_cache();\n}",
"public function testUpdateExtraFields(): void { }",
"public function testUpdateMyContact()\n {\n\n }",
"public function testUpdateChallengeActivityTemplate()\n {\n }",
"function save_team_info( $post_id ) {\n\n // Check if our nonce is set.\n if ( ! isset( $_POST['team_nonce'] ) )\n return $post_id;\n\n $nonce = $_POST['team_nonce'];\n\n // Verify that the nonce is valid.\n if ( ! wp_verify_nonce( $nonce, 'team_info' ) )\n return $post_id;\n\n // If this is an autosave, our form has not been submitted, so we don't want to do anything.\n if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) \n return $post_id;\n\n // Check the user's permissions.\n if ( 'team' == $_POST['post_type'] ) {\n\n if ( ! current_user_can( 'edit_page', $post_id ) )\n return $post_id;\n \n } else {\n\n if ( ! current_user_can( 'edit_post', $post_id ) )\n return $post_id;\n }\n\n /* OK, its safe for us to save the data now. */\n\n // Sanitize user input.\n $mydata = $_POST['_team_announcements'];\n\n // Update the meta field in the database.\n update_post_meta( $post_id, '_team_announcements', $mydata );\n}",
"function amo_update($entity, $data, $search_similiar = false, $need_prepare = true)\n{\n if (substr($entity, -1) == 's') {\n $link = $entity;\n $many_items = true;\n } else {\n if ($entity == 'company') {\n $link = 'companies';\n } else {\n $link = $entity . 's';\n }\n }\n\n if (isset($data['search']) && !empty($data['search'])) {\n $search_similiar = true;\n }\n\n if ($need_prepare) {\n $item = prepare_data($entity, $data, $search_similiar);\n } else {\n $item = $data;\n }\n\n if ($item) {\n if (!$many_items) {\n $items = [$item];\n } else {\n $items = $item;\n }\n\n foreach ($items as $key => $item) {\n if (isset($item['id'])) {\n\n // no_update ставится в случае когда данные контакта совпадают с данными в амо.\n if ($item['no_update']) {\n return $item['id'];\n }\n\n $action_msg = 'Обновлён ';\n $ids_to_update[] = $item['id'];\n $item['updated_at'] = time(); // + 1000\n $sorted_data['update'][] = $item;\n\n } else {\n $ids_to_add[] = $item['id'];\n $action_msg = 'Добавлен ';\n $sorted_data['add'][] = $item;\n }\n }\n\n/* if (!empty($ids_to_update)) {\nlogw('Обновляем ' . $entity . ' id ' . implode(', ', $ids_to_update));\n}\n\nif (!empty($ids_to_add)) {\nlogw('Добавляем ' . $entity);\n}*/\n\n $output = run_curl($link, $sorted_data);\n\n if (!empty($output['_embedded']['items'])) {\n foreach ($output['_embedded']['items'] as $key => $value) {\n $updated_id[] = $value['id'];\n }\n } else {\n logw('Ошибка обновления');\n logw($output);\n return false;\n }\n\n if (!empty($updated_id)) {\n $updated_id_msg = implode(', ', $updated_id);\n } else {\n logw('Ошибка обновления ' . $entity);\n logw($output);\n return false;\n }\n\n if ($many_items) {\n logw('Обновлены ' . $entity . ' id ' . $updated_id_msg);\n return $updated_id;\n } else {\n logw($action_msg . $entity . ' id ' . $updated_id_msg);\n return $updated_id[0];\n }\n\n } else {\n logw('Ошибка: не получены данные от prepare_data');\n return false;\n }\n}",
"public function edit_team($team_id) \n {\n $tm = $this->CreateTeamModel->view_team_details($team_id);\n \n //validate form input\n \n $this->form_validation->set_rules('name', 'Team Name', 'trim|required|alpha_numeric');\n $this->form_validation->set_rules('scrum', 'scrum', 'required|callback_check_if_scrum_master_selected');\n\t if (isset($_POST) && !empty($_POST)) {\t\n \n\t\t$data = array(\n 'name' => $this->input->post('name'),\n 'scrum_master' => $this->input->post('scrum'),\n \n );\n \n if ($this->form_validation->run() == false) {\n } else {\n if ($this->CreateTeamModel->update_team($team_id, $data)) {\n// if($this->input->post('project')!= 0){\n if($this->CreateTeamModel->insert_team($team_id)) {\n } \n// }\n echo '<script>alert(\"Team has been updated successfully!\");</script>';\n }else{\n echo '<script>alert(\"Team updation failed!\");</script>';\n }\n }\n \n $this->data['tm'] = $tm;\n\n $name = array(\n\t\t'name' \t=> 'name',\n\t\t'id' \t=> 'name',\n\t\t'type' \t=> 'text',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('name', $tm['name'])\n );\n $this->data['scrum_master'] = array(\n 'name' \t=> 'scrum',\n\t\t'id' \t=> 'scrum',\n\t\t'type' \t=> 'select',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('scrum', $tm['scrum_master'])\n );\n $project_id = $this->CreateTeamModel->get_project($team_id);\n $this->data['project'] = array(\n 'name' \t=> 'project',\n\t\t'id' \t=> 'project',\n\t\t'type' \t=> 'select',\n\t\t'style'\t\t=> 'width:300px;',\n\t\t'value' \t=> $this->form_validation->set_value('project', $project_id['project_id'])\n );\n \n $member = $this->CreateTeamModel->view_team_details($team_id);\n $team_member = $this->CreateTeamModel->view_team_members($team_id);\n $team= $this->CreateTeamModel->load_team_members($team_id);\n $developer= $this->CreateTeamModel->get_developers();\n $project = $this->CreateTeamModel->load_projects($team_id);\n $this->load->view('add_members_view',compact(\"member\",\"team_member\",\"team\",\"developer\",\"project\",\"project_id\",\"name\"));\n \n }\n \n }",
"function action_update()\n {\n $record = $this->m_node->updateRecord();\n\n if ($this->m_postvars['atkcancel']==\"\")\n { \n\n // just before we validate the record we call the preUpdate() to check if the record needs to be modified\n $this->m_node->preUpdate($record);\n\n $this->m_node->validate($record, \"update\");\n\n $error = count($record['atkerror']) > 0;\n foreach (array_keys($record) as $key)\n $error = $error || (is_array($record[$key]) && count($record[$key]['atkerror']) > 0);\n\n if ($error)\n {\n $this->m_node->m_action=\"edit\";\n $page = &$this->getPage();\n $edithandler = $this->m_node->getHandler(\"edit\");\n $page->addContent($edithandler->invoke(\"editPage\", $record));\n }\n else\n {\n if(!$this->m_node->updateDb($record))\n {\n $this->m_node->m_db->rollback();\n if($this->m_node->m_db->getErrorType()==\"user\")\n {\n triggerError($record, 'Error', $this->m_node->m_db->getErrorMsg(), '', '');\n $this->m_node->m_action=\"edit\";\n $page = &$this->getPage();\n $edithandler = $this->m_node->getHandler(\"edit\");\n $page->addContent($edithandler->invoke(\"editPage\", $record));\n }\n else\n {\n $location = $this->m_node->feedbackUrl(\"update\",ACTION_FAILED, $record, $this->m_node->m_db->getErrorMsg());\n $this->m_node->redirect($location);\n }\n }\n else\n {\n $this->m_node->m_db->commit(); \n \n if ($this->m_postvars['atknoclose']==\"\")\n {\n // 'save and close' was clicked\n $location = $this->m_node->feedbackUrl(\"update\", ACTION_SUCCESS, $record, \"\");\n $this->m_node->redirect($location);\n }\n else\n {\n // 'save' was clicked\n $page = &$this->getPage();\n // $this->m_action=\"edit\";\n //update succesful, pk value might be changed so update m_orgkey\n $record[\"atkprimkey\"] = $this->m_node->primaryKey($record);\n \n if ($this->m_node->hasFlag(NF_LOCK))\n { \n $locked = true;\n }\n \n //$this->setOrgKeyValue($record);\n $this->m_node->m_action = \"edit\"; \n $edithandler = $this->m_node->getHandler(\"edit\");\n $editpage = $edithandler->invoke(\"editPage\", $record, $locked);\n $screen = $this->m_node->renderActionPage(\"edit\", $editpage);\n $page->addContent($screen);\n }\n\n }\n }\n }\n else\n {\n // Cancel was pressed\n $location = $this->m_node->feedbackUrl(\"update\", ACTION_CANCELLED, $record);\n $this->m_node->redirect($location);\n }\n }",
"function update_other_info($usernameDB, $passwordDB, $email, $other_first_name, $other_last_name, $other_address, $other_apt, $other_city, $other_state, $other_zip, $other_home, $other_cell, $car_make, $car_model, $car_license, $relation) {\n\t$dbh = new PDO('mysql:host=thetaDB.db.9489000.hostedresource.com;dbname=thetaDB',$usernameDB,$passwordDB);\n\n\t//Update any general information that has been changed.\n\t$update = array();\n\t\n\tif(trim($car_make) !== \"\") {\n\t $update[] = \"car_make = :car_make\";\n\t $hasCar = \"hasCar\";\n\t}\n\n\tif(trim($car_model) !== \"\") {\n\t $update[] = \"car_model = :car_model\";\n\t}\n\t\n\tif(trim($car_license) !== \"\") {\n\t $update[] = \"car_license = :car_license\";\n\t}\n\t\n\tif(trim($other_first_name) !== \"\") {\n\t $update[] = \"other_first = :other_first\";\n\t}\n\t\n\tif(trim($other_last_name) !== \"\") {\n\t $update[] = \"other_last = :other_last\";\n\t}\n\t\n\tif(trim($other_address) !== \"\") {\n\t $update[] = \"other_address = :other_address\";\n\t}\n\t\n\tif(trim($other_apt) !== \"\") {\n\t $update[] = \"other_apt = :other_apt\";\n\t}\n\t\n\tif(trim($other_city) !== \"\") {\n\t $update[] = \"other_city = :other_city\";\n\t}\n\t\n\tif(trim($other_state) !== \"\") {\n\t $update[] = \"other_state = :other_state\";\n\t}\n\t\n\tif(trim($other_zip) !== \"\") {\n\t $update[] = \"other_zip = :other_zip\";\n\t}\n\t\n\tif(trim($other_cell) !== \"\") {\n\t $update[] = \"phone_no = :other_phone\";\n\t}\n\t\n\tif(trim($relation) !== \"\") {\n\t $update[] = \"relation = :relation\";\n\t}\n\t\n\tif(trim($car_make) !== \"\") {\n\t $update[] = \"has_car = :hasCar\";\n\t}\n\n\tif(sizeof($update) > 0) {//check if we have any updates otherwise don't execute\n\t $query = \"UPDATE members_contact SET \" . implode(\", \", $update) . \" WHERE email = :email\";\n\t //Prepare statement\n\t $stmt = $dbh->prepare($query);\n\t //Generic comparison variable.\n\t $stmt->bindParam(\":email\", $email);\n\t \n\t if(trim($car_make) !== \"\") {\n\t $stmt->bindParam(\":car_make\", $car_make);\n\t }\n\t \n\t if(trim($car_model) !== \"\") {\n\t $stmt->bindParam(\":car_model\", $car_model);\n\t }\n\t \n\t if(trim($car_license) !== \"\") {\n\t $stmt->bindParam(\":car_license\", $car_license);\n\t }\n\t \n\t if(trim($other_first_name) !== \"\") {\n\t $stmt->bindParam(\":other_first\", $other_first_name);\n\t }\n\t \n\t if(trim($other_last_name) !== \"\") {\n\t $stmt->bindParam(\":other_last\", $other_last_name);\n\t }\n\t \n\t if(trim($other_address) !== \"\") {\n\t $stmt->bindParam(\":other_address\", $other_address);\n\t }\n\t \n\t if(trim($other_apt) !== \"\") {\n\t $stmt->bindParam(\":other_apt\", $other_apt);\n\t }\n\t \n\t if(trim($other_city) !== \"\") {\n\t $stmt->bindParam(\":other_city\", $other_city);\n\t }\n\t \n\t if(trim($other_state) !== \"\") {\n\t $stmt->bindParam(\":other_state\", $other_state);\n\t }\n\t \n\t if(trim($other_zip) !== \"\") {\n\t $stmt->bindParam(\":other_zip\", $other_zip);\n\t }\n\t \n\t if(trim($other_cell) !== \"\") {\n\t $stmt->bindParam(\":other_phone\", $other_cell);\n\t }\n\t \n\t if(trim($relation) !== \"\") {\n\t $stmt->bindParam(\":relation\", $relation);\n\t }\n\t \n\t if(trim($car_make) !== \"\") {\n\t\t $stmt->bindParam(\":hasCar\", $hasCar);\n\t\t}\n\n\t $stmt->execute();\n\t}\n}",
"function action_update() {\n global $CURMAN;\n\n $stuid = $this->required_param('association_id', PARAM_INT);\n $clsid = $this->required_param('id', PARAM_INT);\n $users = $this->required_param('users');\n\n $uid = key($users);\n $user = current($users);\n\n $sturecord = array();\n $sturecord['id'] = $stuid;\n $sturecord['classid'] = $clsid;\n $sturecord['userid'] = $uid;\n\n $startyear = $user['startyear'];\n $startmonth = $user['startmonth'];\n $startday = $user['startday'];\n $sturecord['enrolmenttime'] = mktime(0, 0, 0, $startmonth, $startday, $startyear);\n\n $endyear = $user['endyear'];\n $endmonth = $user['endmonth'];\n $endday = $user['endday'];\n $sturecord['completetime'] = mktime(0, 0, 0, $endmonth, $endday, $endyear);\n\n $sturecord['completestatusid'] = $user['completestatusid'];\n $sturecord['grade'] = $user['grade'];\n $sturecord['credits'] = $user['credits'];\n $sturecord['locked'] = !empty($user['locked']) ? 1 : 0;\n $stu = new student($sturecord);\n\n if ($stu->completestatusid == STUSTATUS_PASSED &&\n $CURMAN->db->get_field(STUTABLE, 'completestatusid', 'id', $stuid) != STUSTATUS_PASSED) {\n\n $stu->complete();\n } else {\n if (($status = $stu->update()) !== true) {\n echo cm_error('Record not updated. Reason: ' . $status->message);\n }\n }\n\n /// Check for grade records...\n $element = cm_get_param('element', array());\n $newelement = cm_get_param('newelement', array());\n $timegraded = cm_get_param('timegraded', array());\n $newtimegraded = cm_get_param('newtimegraded', array());\n $completionid = cm_get_param('completionid', array());\n $newcompletionid = cm_get_param('newcompletionid', array());\n $grade = cm_get_param('grade', array());\n $newgrade = cm_get_param('newgrade', array());\n $locked = cm_get_param('locked', array());\n $newlocked = cm_get_param('newlocked', array());\n\n foreach ($element as $gradeid => $element) {\n $graderec = array();\n $graderec['id'] = $gradeid;\n $graderec['userid'] = $uid;\n $graderec['classid'] = $clsid;\n $graderec['completionid'] = $element;\n $graderec['timegraded'] = mktime(0, 0, 0, $timegraded[$gradeid]['startmonth'],\n $timegraded[$gradeid]['startday'], $timegraded[$gradeid]['startyear']);\n $graderec['grade'] = $grade[$gradeid];\n $graderec['locked'] = isset($locked[$gradeid]) ? $locked[$gradeid] : '0';\n\n $sgrade = new student_grade($graderec);\n $sgrade->update();\n }\n\n foreach ($newelement as $elementid => $element) {\n $graderec = array();\n $graderec['userid'] = $uid;\n $graderec['classid'] = $clsid;\n $graderec['completionid'] = $element;\n $graderec['timegraded'] = mktime(0, 0, 0, $newtimegraded[$elementid]['startmonth'],\n $newtimegraded[$elementid]['startday'], $newtimegraded[$elementid]['startyear']);\n $graderec['grade'] = $newgrade[$elementid];\n $graderec['locked'] = isset($newlocked[$elementid]) ? $newlocked[$elementid] : '0';\n\n $sgrade = new student_grade($graderec);\n $sgrade->add();\n }\n\n $this->action_default();\n }",
"public function testUpdateChallengeTemplate()\n {\n }",
"public function update(Request $request, team $team)\n {\n\n $team->update([\n 'name' => request('name'),\n 'race' => request('race'),\n 'userid' => \\Auth::user()->id,\n 'reroll' => request('reroll'),\n 'rerollValue' => request('rerollValue'),\n 'fanfactor' => request('fanfactor'),\n 'assistantCoach' => request('assistantCoach'),\n 'cheerleader' => request('cheerleader'),\n 'apothecary' => request('apothecary'),\n 'teamValue'=> request('teamValue'),\n 'treasury' => request('treasury')\n ]);\n\n return redirect('/team');\n }",
"public function update() {\n\t\tTournamentDBClient::update($this);\n\t}",
"function myPear_update20(){\n if (cnf_CLI) return;\n if (myPear_db()->columnExists('org_nickname','zzz_organizations')){\n $q = myPear_db()->query(\"SELECT org_id,org_theme,org_nickname FROM zzz_organizations\");\n while ($r = myPear_db()->next_record($q)){\n $update = '';\n if (!empty($r['org_theme']) && !b_cms::themeExists($r['org_theme'])){\n\t$update = \"''\";\n\t$r['org_theme'] = '';\n }\n if ( empty($r['org_theme']) && b_cms::themeExists($r['org_nickname'])){\n\t$update = \"'$r[org_nickname]'\";\n }\n if (!empty($update)){\n\tmyPear_db()->qquery(\"UPDATE zzz_organizations SET org_theme = $update WHERE org_id = $r[org_id]\",1);\n }\n }\n }\n}",
"public function testUpdateSurveyQuestionChoice0()\n {\n }",
"public function testUpdateSurveyQuestionChoice0()\n {\n }",
"public function wpcd_team_save_post( $post_id ) {\n\t\tif ( isset( $_POST['post_type'] ) && 'wpcd_team' == $_POST['post_type'] ) {\n\t\t\t$wpcd_permission_rules = wpcd_filter_input_numeric_array( $_POST['wpcd_permission_rule'] );\n\n\t\t\t$team_id = filter_input( INPUT_POST, 'post_ID', FILTER_SANITIZE_NUMBER_INT );\n\n\t\t\tforeach ( $wpcd_permission_rules as $rule ) {\n\n\t\t\t\t$user_id = (int) sanitize_text_field( $rule['wpcd_team_member'] );\n\t\t\t\t$server_permissions = ! empty( $rule['wpcd_server_permissions'] ) ? $rule['wpcd_server_permissions'] : array();\n\t\t\t\t$server_tab_permissions = ! empty( $rule['wpcd_server_tab_permissions'] ) ? $rule['wpcd_server_tab_permissions'] : array();\n\t\t\t\t$app_permissions = ! empty( $rule['wpcd_app_permissions'] ) ? $rule['wpcd_app_permissions'] : array();\n\t\t\t\t$app_tab_permissions = ! empty( $rule['wpcd_app_tab_permissions'] ) ? $rule['wpcd_app_tab_permissions'] : array();\n\n\t\t\t\t// Combine server_permissions group and server_tab_permissions group into one array.\n\t\t\t\t$server_permissions = array_merge( $server_permissions, $server_tab_permissions );\n\n\t\t\t\t// Combine app_permissions group and app_tab_permissions group into one array.\n\t\t\t\t// Note that as of V 4.6.1 there are no entries for the app_tab_permissions group.\n\t\t\t\t$app_permissions = array_merge( $app_permissions, $app_tab_permissions );\n\n\t\t\t\t$all_passed_permissions = array();\n\t\t\t\t$all_passed_permissions = array_merge( $server_permissions, $app_permissions );\n\n\t\t\t\t$this->wpcd_update_excluded_permissions( $team_id, $user_id, $all_passed_permissions );\n\n\t\t\t\tforeach ( $server_permissions as $server_permission ) {\n\t\t\t\t\t$permission_type_id = (int) sanitize_text_field( $server_permission );\n\t\t\t\t\t$this->wpcd_assign_permissions( $team_id, $user_id, $permission_type_id ); // save to custom table.\n\t\t\t\t}\n\n\t\t\t\tforeach ( $app_permissions as $app_permission ) {\n\t\t\t\t\t$permission_type_id = (int) sanitize_text_field( $app_permission );\n\t\t\t\t\t$this->wpcd_assign_permissions( $team_id, $user_id, $permission_type_id ); // save to custom table.\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected function afterUpdating()\n {\n }",
"public function updateCurrentBestTimes() {\n\t\tforeach ($this->playerBestTimes as $key => $curBest) {\n\t\t\tif (array_key_exists($key, $this->matchScore->blueTeamPlayers)) {\n\t\t\t\t$this->matchScore->blueTeamPlayers[$key]->currentBestTime = $curBest;\n\t\t\t} else if (array_key_exists($key, $this->matchScore->redTeamPlayers)) {\n\t\t\t\t$this->matchScore->redTeamPlayers[$key]->currentBestTime = $curBest;\n\t\t\t}\n\t\t}\n\t}",
"function delete_team($teamname) {\n\n $qDelete = \"DELETE FROM authteam WHERE teamname='$teamname'\";\n\n $qUpdateUser = \"UPDATE authuser SET team='Ungrouped' WHERE team='$teamname'\";\n\n if ($teamname == \"Admin\") {\n\n return \"Admin team cannot be deleted.\";\n } elseif ($teamname == \"Ungrouped\") {\n\n return \"Ungrouped team cannot be deleted.\";\n } elseif ($teamname == \"Temporary\") {\n\n return \"Temporary team cannot be deleted.\";\n }\n\n\n\n $link = new mysqli($this->HOST, $this->USERNAME, $this->PASSWORD, $this->DBNAME);\n if ($link->connect_error) {\n die(\"Error al conectarse a la BD $dbname: \" . $mysqli->connect_error);\n }\n\n // OLD CODE - DO NOTE REMOVE\n // $result = mysql_db_query($this->DBNAME, $qUpdateUser);\n // REVISED CODE\n\n $result = $link->query($qUpdateUser);\n\n\n\n // OLD CODE - DO NOT REMOVE\n // $result = mysql_db_query($this->DBNAME, $qDelete);\n // REVISED CODE\n\n $result = $link->query($qDelete);\n\n\n\n return $link->error;\n }",
"function recruitTeam($cxn,$player,$request)\r\n {\r\n \r\n }",
"public function testUpdateMember()\n {\n }",
"public function update_deal_team_members_adjusted_value($deal_id,$deal_partner_id){\n require_once(\"classes/class.transaction_member.php\");\n\t\t$trans_mem = new transaction_member();\n\t\treturn $trans_mem->update_deal_team_members_adjusted_value($deal_id,$deal_partner_id);\n }",
"public function updateEventData($data, $event_id, $main_organizers, $impl_partners) {\r\n$this->db->where('event_id', $event_id);\r\n$success = $this->db->update('events', $data);\r\nif ($success == 1) {\r\nif (count($main_organizers) > 0) {\r\n$this->saveMainOrganizer($event_id, $main_organizers);\r\n}\r\nif (count($impl_partners) > 0) {\r\n$this->saveImplPartners($event_id, $impl_partners);\r\n}\r\n}\r\nreturn $success;\r\n}",
"function vitero_update_instance(stdClass $vitero, mod_vitero_mod_form $mform = null) {\n global $DB;\n\n $vitero->timemodified = time();\n $vitero->id = $vitero->instance;\n\n // Get old details.\n if (!$old = $DB->get_record('vitero', array('id' => $vitero->id))) {\n return false;\n }\n $vitero->meetingid = $old->meetingid;\n\n // Update team name if needed.\n if ($vitero->teamname != $old->teamname) {\n if (!vitero_update_team($old->teamid, $vitero->teamname)) {\n return false;\n }\n }\n\n // Update calendar.\n $param = array(\n 'courseid' => $vitero->course,\n 'instance' => $vitero->id,\n 'groupid' => 0,\n 'modulename' => 'vitero'\n );\n $eventid = $DB->get_field('event', 'id', $param);\n if (!empty($eventid)) {\n $event = new stdClass();\n $event->id = $eventid;\n $event->name = $vitero->name;\n $event->description = format_module_intro('vitero', $vitero, $vitero->coursemodule);\n $event->courseid = $vitero->course;\n $event->groupid = 0;\n $event->userid = 0;\n $event->instance = $vitero->id;\n $event->eventtype = 'vitero';\n $event->timestart = $vitero->starttime;\n $event->timeduration = $vitero->endtime - $vitero->starttime;\n $event->visible = 1;\n $event->modulename = 'vitero';\n $calendarevent = calendar_event::load($eventid);\n $calendarevent->update($event);\n }\n\n // Update meeting.\n if (!vitero_update_meeting($vitero)) {\n return false;\n }\n\n return $DB->update_record('vitero', $vitero);\n}",
"function action_edit_team()\n\t{\n\t\t// Loading form validation helper and the Markdown parser.\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_rules('id', 'ID', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('name', 'Name', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('homeid', 'Field', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('city', 'City', 'trim|required|xss_clean');\n\t\t$this->form_validation->set_rules('region', 'Region', 'trim|required|xss_clean');\n\n\t\t$tid = $this->input->post('id');\n\t\t$name = $this->input->post('name');\n\t\t$homeid = $this->input->post('homeid');\n\t\t$city = $this->input->post('city');\n\t\t$region = $this->input->post('region');\n\n\t\tif ($this->form_validation->run())\n\t\t{\n\t\t\tif ($this->teams->update($tid, $name, $homeid, $city, $region))\n\t\t\t{\n\t\t\t\techo json_encode(array(\n\t\t\t\t\t'status' => 'success',\n\t\t\t\t\t'message' => 'Team updated successfully!'\n\t\t\t\t));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\techo json_encode(array(\n\t\t\t'status' => 'danger',\n\t\t\t'message' => 'One or more of the fields are invalid.'\n\t\t));\n\t}"
] | [
"0.6718803",
"0.67108357",
"0.6570071",
"0.6519144",
"0.6449374",
"0.6415125",
"0.6275781",
"0.62264246",
"0.6090544",
"0.6050741",
"0.6033518",
"0.59433514",
"0.59432113",
"0.5919627",
"0.5918033",
"0.59154266",
"0.58692235",
"0.5842331",
"0.58349824",
"0.58315474",
"0.57754177",
"0.5752647",
"0.57518435",
"0.57518435",
"0.57518435",
"0.57518435",
"0.57518435",
"0.57518435",
"0.57386357",
"0.57320297",
"0.57213306",
"0.57185584",
"0.5705432",
"0.5679171",
"0.5674944",
"0.56683755",
"0.5663956",
"0.5616046",
"0.56093615",
"0.5595006",
"0.5589972",
"0.5569693",
"0.5565781",
"0.55657464",
"0.5565028",
"0.5565028",
"0.5564905",
"0.55645627",
"0.5562835",
"0.55559945",
"0.55446786",
"0.5538372",
"0.552261",
"0.5520958",
"0.55079645",
"0.54875106",
"0.54827666",
"0.54710704",
"0.54694176",
"0.5465632",
"0.54539233",
"0.54455096",
"0.5444623",
"0.5441111",
"0.5438825",
"0.54354817",
"0.5434063",
"0.5431305",
"0.54285926",
"0.5428429",
"0.54158235",
"0.54132706",
"0.54122835",
"0.5410501",
"0.5408552",
"0.5407081",
"0.5402514",
"0.53886867",
"0.53863937",
"0.53589326",
"0.5353854",
"0.5352562",
"0.5352557",
"0.53519726",
"0.5350584",
"0.5342702",
"0.53323877",
"0.5332306",
"0.5310846",
"0.5310846",
"0.53026766",
"0.53022903",
"0.52897346",
"0.528419",
"0.5284114",
"0.52803385",
"0.5273112",
"0.5272934",
"0.5272626",
"0.52710426"
] | 0.64503425 | 4 |
/ |========================================================== | check method in use | public function checkMethodInUse($teamId)
{
$queryString="SELECT *
FROM team_used_corruption
WHERE team_id=$teamId";
$query = $this->db->query($queryString);
$result=$query->result_array();
if(empty($result))
{
return FALSE;
}else{
return TRUE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function _check()\n {\n }",
"abstract public function check();",
"public function check() {}",
"public function check()\n {\n }",
"public function check()\n {\n }",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"abstract function check();",
"public static function check();",
"abstract protected function safetyCheck() : self;",
"public function checkOperationality()\n {\n }",
"public function check(): void;",
"public function check(): void;",
"public static function check()\n {\n parent::check();\n }",
"protected function _validate() {\n\t}",
"public function performChecks(){\n\t\t\n\t}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function valid() {}",
"public function check()\r\n\t{\r\n\t\treturn true;\r\n\t}",
"public function valid();",
"public function valid();",
"public function valid();",
"public function valid();",
"public function valid(){ }",
"abstract public function valid();",
"public function checkRequirements()\n {\n }",
"public function valid()\n {\n }",
"public function valid()\n {\n }",
"public function valid()\n {\n }",
"public function valid()\n {\n }",
"public function checkSecurity() {\n }",
"public function checkAccess()\n {\n // need to be modified for security\n }",
"public function checkValidity()\n { \t\n \treturn true;\n }",
"protected function validate()\n {\n }",
"public function Valid();",
"private function validate() {\n\t\n\t\t\treturn false;\n\t}",
"function isValid() ;",
"private function checkValid()\n\t{\n\t\tif(!$this->isValid()) {\n\t\t\tthrow new \\RuntimeException(\"TypeStruct Error: '\".get_called_class().\"' not validated to perform further operations\");\t\n\t\t}\n\t}",
"public function check()\n {\n return true;\n }",
"private function checkError() : void\n {\n $this->isNotPost();\n $this->notExist();\n $this->notAdmin();\n }",
"protected function localValidation()\n\t\t{\n\t\t}",
"abstract public function check_hint();",
"public function wrong() {\n\n }",
"protected function validateOrThrow() {}",
"public /*bool*/ function valid()\n\t{\n\t\treturn false;\n\t}",
"public function is_valid()\n {\n }",
"public function is_valid()\n {\n }",
"public function checkIntegrity();",
"public function checkExtObj() {}",
"public function checkExtObj() {}",
"function valid();",
"public static function validate() {}",
"public function check_duplicate()\n {\n }",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function checkAccess() {}",
"public function isValid() {}",
"public function isValid() {}",
"public function isValid() {}",
"public function isValid() {}",
"public function isValid() {}",
"public function isValid() {}",
"public function isValid() {}",
"public function isValid() {}",
"public function validate()\n {\n }",
"public function validate()\n {\n }",
"public function api_chk(){\n\t \n\t \n\t var_dump('ss');\n\t die();\n\t}",
"public function validate()\n {\n // TODO implement this\n }",
"function check() {\n\n // TODO check for valid strings\n return true;\n }",
"function isValid()\r\n\t{\t\t\r\n\t\treturn false;\r\n\t}",
"abstract public function is_have();",
"public function Validate() {return true;}",
"function validate()\n\t{\n\t}",
"public function makeCheck_In()\n {}",
"public function isUsed()\n {\n }",
"public function looksValid()\r\n\t{\r\n return true;\r\n\t}",
"abstract public function isValid();",
"abstract public function isValid();",
"function check_access() {\n trigger_error('Admin class does not implement method <strong>check_access()</strong>', E_USER_WARNING);\n return;\n }",
"private function getStatus(){\n\t\t$this->valid=$this->checkDatesValidity();\n\t\tif($this->usage==\"once\" && $this->usageCount) $this->valid = false;\n\t\tif($this->usage==\"count\" && $this->usageCount>=$this->maxUsage) $this->valid = false;\n\t\tif($this->type==\"fixed\" && $this->value<=0) $this->valid = false;\n\t\tif($this->type==\"grid\" && !count($this->grid)) $this->valid = false;\n\t}",
"public function checkConvertability()\n {\n }",
"function checkAccess() ;",
"public function validation();",
"abstract public function validate();",
"abstract public function validate();",
"public function has_errors()\n {\n }",
"public function validate() {\n }"
] | [
"0.8396448",
"0.7969359",
"0.79141164",
"0.79062927",
"0.79062927",
"0.79060227",
"0.79060227",
"0.79060227",
"0.79060227",
"0.79060227",
"0.76982135",
"0.76162505",
"0.7437659",
"0.7250684",
"0.7231539",
"0.7231539",
"0.72106427",
"0.71280396",
"0.700348",
"0.69870985",
"0.69870985",
"0.69870985",
"0.69870985",
"0.69870985",
"0.69870985",
"0.69870985",
"0.69870985",
"0.6983148",
"0.6898313",
"0.6898313",
"0.6898313",
"0.6898313",
"0.68838924",
"0.6879979",
"0.6861383",
"0.6839266",
"0.6839266",
"0.6839266",
"0.6839266",
"0.68296295",
"0.6758764",
"0.6734759",
"0.67163366",
"0.66565233",
"0.66391045",
"0.6603504",
"0.65956265",
"0.65033233",
"0.6497076",
"0.64960384",
"0.64926416",
"0.64879996",
"0.6475748",
"0.64604473",
"0.6458183",
"0.64542246",
"0.64481837",
"0.6424725",
"0.6424011",
"0.6413943",
"0.64116764",
"0.640692",
"0.6401869",
"0.6401869",
"0.6401869",
"0.639906",
"0.639906",
"0.63984114",
"0.63984114",
"0.63984114",
"0.63940233",
"0.6393086",
"0.6393086",
"0.639244",
"0.639244",
"0.639244",
"0.639244",
"0.639244",
"0.6354678",
"0.6354678",
"0.6352802",
"0.6345763",
"0.6339035",
"0.6330371",
"0.6328734",
"0.6297375",
"0.626269",
"0.62595546",
"0.62551725",
"0.62452304",
"0.62447006",
"0.62447006",
"0.62422156",
"0.623425",
"0.622497",
"0.62137926",
"0.6205843",
"0.61933583",
"0.61933583",
"0.6190973",
"0.61858934"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.