query
stringlengths
9
43.3k
document
stringlengths
17
1.17M
metadata
dict
negatives
sequencelengths
0
30
negative_scores
sequencelengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Gets the onlineMeetings property value. Information about a meeting, including the URL used to join a meeting, the attendees' list, and the description.
public function getOnlineMeetings(): ?array { $val = $this->getBackingStore()->get('onlineMeetings'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, OnlineMeeting::class); /** @var array<OnlineMeeting>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'onlineMeetings'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMeetings()\n {\n if (array_key_exists(\"meetings\", $this->_propDict)) {\n return $this->_propDict[\"meetings\"];\n } else {\n return null;\n }\n }", "public function getMeetings()\n {\n return $this->hasMany(Meeting::className(), ['house_id' => 'id']);\n }", "public function meetings()\n\t{\n\t\treturn $this->belongsToMany(\n\t\t\tconfig('core.acl.meeting_model'),\n\t\t\tconfig('core.acl.meeting_members')\n\t\t);\n\t}", "function tsml_get_meetings($arguments=array(), $from_cache=true) {\n\tglobal $tsml_cache;\n\n\t//start by grabbing all meetings\n\tif (false && $from_cache && file_exists(WP_CONTENT_DIR . $tsml_cache) && $meetings = file_get_contents(WP_CONTENT_DIR . $tsml_cache)) {\n\t\t$meetings = json_decode($meetings, true);\n\t} else {\n\t\t//from database\n\t\t$meetings = array();\n\n\t\t//can specify post_status (for PR #33)\n\t\tif (empty($arguments['post_status'])) {\n\t\t\t$arguments['post_status'] = 'publish';\n\t\t} elseif (is_array($arguments['post_status'])) {\n\t\t\t$arguments['post_status'] = array_map('sanitize_title', $arguments['post_status']);\n\t\t} else {\n\t\t\t$arguments['post_status'] = sanitize_title($arguments['post_status']);\n\t\t}\n\n\t\t$posts = get_posts(array(\n\t\t\t'post_type'\t\t\t=> 'tsml_meeting',\n\t\t\t'numberposts'\t\t=> -1,\n\t\t\t'post_status'\t\t=> $arguments['post_status'],\n\t\t));\n\n\t\t$meeting_meta = tsml_get_meta('tsml_meeting');\n\t\t$groups = tsml_get_groups();\n\t\t$locations = tsml_get_locations();\n\t\t$users = tsml_get_users();\n\n\t\t//make an array of the meetings\n\t\tforeach ($posts as $post) {\n\t\t\t//shouldn't ever happen, but just in case\n\t\t\tif (empty($locations[$post->post_parent])) continue;\n\n\t\t\t//append to array\n\t\t\t$meeting = array_merge(array(\n\t\t\t\t'id'\t\t\t\t=> $post->ID,\n\t\t\t\t'name'\t\t\t\t=> $post->post_title,\n\t\t\t\t'slug'\t\t\t\t=> $post->post_name,\n\t\t\t\t'notes'\t\t\t\t=> $post->post_content,\n\t\t\t\t'updated'\t\t\t=> $post->post_modified_gmt,\n\t\t\t\t'location_id'\t\t=> $post->post_parent,\n\t\t\t\t'url'\t\t\t\t=> get_permalink($post->ID),\n\t\t\t\t'day'\t\t\t\t=> @$meeting_meta[$post->ID]['day'],\n\t\t\t\t'time'\t\t\t\t=> @$meeting_meta[$post->ID]['time'],\n\t\t\t\t'end_time'\t\t\t=> @$meeting_meta[$post->ID]['end_time'],\n\t\t\t\t'time_formatted'\t=> tsml_format_time(@$meeting_meta[$post->ID]['time']),\n\t\t\t\t'email'\t\t\t\t=> @$meeting_meta[$post->ID]['email'],\n\t\t\t\t'website'\t\t\t=> @$meeting_meta[$post->ID]['website'],\n\t\t\t\t'website_2'\t\t\t=> @$meeting_meta[$post->ID]['website_2'],\n\t\t\t\t'phone'\t\t\t\t=> @$meeting_meta[$post->ID]['phone'],\n\t\t\t\t'conference_url'\t=> @$meeting_meta[$post->ID]['conference_url'],\n\t\t\t\t'conference_phone'\t=> @$meeting_meta[$post->ID]['conference_phone'],\n\t\t\t\t'types'\t\t\t\t=> empty($meeting_meta[$post->ID]['types']) ? array() : array_values(unserialize($meeting_meta[$post->ID]['types'])),\n\t\t\t), $locations[$post->post_parent]);\n\n\t\t\t//append group info to meeting\n\t\t\tif (!empty($meeting_meta[$post->ID]['group_id']) && array_key_exists($meeting_meta[$post->ID]['group_id'], $groups)) {\n\t\t\t\t$meeting = array_merge($meeting, $groups[$meeting_meta[$post->ID]['group_id']]);\n\t\t\t}\n\n\t\t\t$meetings[] = $meeting;\n\t\t}\n\t}\n\n\t//check if we are filtering\n\t$allowed = array('mode', 'day', 'time', 'region', 'district', 'type', 'query', 'group_id', 'location_id', 'latitude', 'longitude', 'distance_units', 'distance');\n\tif ($arguments = array_intersect_key($arguments, array_flip($allowed))) {\n\t\t$filter = new tsml_filter_meetings($arguments);\n\t\t$meetings = $filter->apply($meetings);\n\t}\n\n\tusort($meetings, 'tsml_sort_meetings');\n\n\t//dd($meetings);\n\treturn $meetings;\n\n}", "public function meetups() {\n return MeetUp::where('date_time', \n '>=', Carbon::now())->get();\n }", "public function getOnlineOffers()\n {\n return $this->onlineOffers;\n }", "public function setMeetings($val)\n {\n $this->_propDict[\"meetings\"] = intval($val);\n return $this;\n }", "public function show(Meeting $meeting)\n {\n return response()->json($meeting->load('candidate', 'manager'));\n }", "function tsml_get_all_meetings($status='any') {\n\treturn get_posts('post_type=tsml_meeting&post_status=' . $status . '&numberposts=-1&orderby=name&order=asc');\n}", "function tsml_count_meetings() {\n\treturn count(tsml_get_all_meetings('publish'));\n}", "public function getAllOnline()\n {\n return $this->query()->online()->get();\n }", "public function getMeeting()\n {\n return $this->hasOne(Meeting::className(), ['id' => 'meeting_id']);\n }", "public static function online()\n {\n // TODO Order by user preference (followed, starred)\n\n return static::where('ended_at', null)->with('user')->get();\n }", "function meetingList() {\r\n\tglobal $clsMeeting;\r\n\t$response = array();\r\n\r\n\ttry {\r\n\t\t$responseData = $clsMeeting->getMeetingList();\r\n\t\tLogger::log('Meeting List complete');\r\n\t\t$response['success'] = 1;\r\n\t\t$response['data'] = $responseData;\r\n\t} catch (DBException $e) {\r\n\t\t$response['error'] = 1;\r\n\t\t$response['message'] = $e->getMessage();\r\n\t}\r\n\treturn $response;\r\n}", "public function index()\n {\n return response()->json(Meeting::where('manager_id', Auth::id())\n ->load('candidate', 'manager'));\n }", "public function list(Request $request)\n {\n $meetings = $this->list();\n\n \n }", "public function online()\n {\n return $this->httpGet('cgi-bin/customservice/getonlinekflist');\n }", "public function getMeetingData(): string\n {\n $data = array();\n $xml = $this->convertXmlToArray(XMLData::xmlDataSource());\n foreach($xml['Meeting'] as $value) {\n $data[] = $value ;\n }\n return $data ? json_encode($data) : \"no data found\";\n }", "public static function getTotalHoursOnline() {\n $userData = AppSession::getLoginData();\n if (!$userData || $userData->role != UserModel::ROLE_STUDIO) {\n return;\n }\n $online = ChatthreadModel::select(DB::raw(\"SUM(streamingTime) as totalHours\"))\n ->join('users as u', 'u.id', '=', 'chatthreads.ownerId')\n ->where('u.parentId', $userData->id)\n ->first();\n if ($online) {\n return self::convertToHoursMins($online->totalHours);\n }\n return;\n }", "public function getMeetingsData(){\n\n\t\t$type_reg = RNType::get()->filter(array('Title' => 'Regional'))->First();\n\t\tif($type_reg != null){\n\t\t\t$reg_id = $type_reg->ID;\n\t\t} else {\n\t\t\t$reg_id = 0;\n\t\t}\n\t\t$type_nat = RNType::get()->filter(array('Title' => 'National'))->First();\n\t\tif($type_nat != null){\n\t\t\t$nat_id = $type_nat->ID;\n\t\t} else {\n\t\t\t$nat_id = 0;\n\t\t}\n\t\t$other_meetings = RNMeeting::get()->exclude('TypeID', array(1, 2))->Sort('Title', 'ASC');\n\n\t\tif(array_key_exists('id', $_POST)){\n\t\t\tif(isset($_POST['id']) && $_POST['id'] != null){\n\n\t\t\t\t$region = RNRegion::get()->byID($_POST['id']);\n\t\t\t\t\n\t\t\t\t$meetings = $region->Meetings()->Sort('Title', 'ASC');\n\t\t\t\t\n\t\t\t\t$reg_count = $meetings->filter(array('TypeID' => $reg_id))->Count();\n\t\t\t\t$nat_count = $meetings->filter(array('TypeID' => $nat_id))->Count();\n\n\t\t\t\t$r_n_meetings = $meetings->filter('TypeID', array($reg_id, $nat_id));\n\n\t\t\t\t$data = array(\n\t\t\t\t'Region' => $region->Title,\n\t\t\t\t'RegCount' => $reg_count,\n\t\t\t\t'NatCount' => $nat_count,\n\t\t\t\t'Meetings' =>$r_n_meetings,\n\t\t\t\t'OtherMeetings' => $other_meetings\n\t\t\t\t);\n\n\t\t\t\t$meetingData = new ArrayData($data);\n\n\t\t\t\treturn $meetingData->renderWith('RegionalMeetings');\n\t\t\t}\n\t\t} else {\n\t\t\t$meetings = RNMeeting::get()->Sort('Title', 'ASC');\n\t\t\t\n\t\t\t$reg_count = $meetings->filter(array('TypeID' => $reg_id))->Count();\n\t\t\t\n\t\t\t$nat_count = $meetings->filter(array('TypeID' => $nat_id))->Count();\n\n\t\t\t$r_n_meetings = $meetings->filter('TypeID', array($reg_id, $nat_id));\n\n\t\t\t$data = array(\n\t\t\t\t'Region' => 'all over the world',\n\t\t\t\t'RegCount' => $reg_count,\n\t\t\t\t'NatCount' => $nat_count,\n\t\t\t\t'Meetings' => $r_n_meetings,\n\t\t\t\t'OtherMeetings' => $other_meetings\n\t\t\t\t);\n\n\t\t\treturn new ArrayData($data);\n\t\t}\n\t\t\n\t}", "public function dashboardMeetings($from, $to, $type = 'live', $page_size = '30', $next_page_token = null)\n {\n list($response) = $this->dashboardMeetingsWithHttpInfo($from, $to, $type, $page_size, $next_page_token);\n return $response;\n }", "public static function getUsersOnlineMarkings() {\n\t\t$usersOnlineMarkings = $showOnTeamPage = $teamPagePosition = array();\n\t\t\n\t\t// get groups\n\t\tWCF::getCache()->addResource('groups', WCF_DIR.'cache/cache.groups.php', WCF_DIR.'lib/system/cache/CacheBuilderGroups.class.php');\n\t\t$groups = WCF::getCache()->get('groups', 'groups');\n\t\tforeach ($groups as $group) {\n\t\t\tif ($group['userOnlineMarking'] != '%s') {\n\t\t\t\tif (isset($group['showOnTeamPage']) && isset($group['teamPagePosition'])) {\n\t\t\t\t\t$showOnTeamPage[] = $group['showOnTeamPage'];\n\t\t\t\t\t$teamPagePosition[] = $group['teamPagePosition'];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$usersOnlineMarkings[] = sprintf($group['userOnlineMarking'], StringUtil::encodeHTML(WCF::getLanguage()->get($group['groupName'])));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// sort list\n\t\tif (count($showOnTeamPage)) {\n\t\t\tarray_multisort($showOnTeamPage, SORT_DESC, $teamPagePosition, $usersOnlineMarkings);\n\t\t}\n\t\t\n\t\tif (WCF::getUser()->userID && WCF::getUser()->buddies) {\n\t\t\t$usersOnlineMarkings[] = '<span class=\"buddy\">'.WCF::getLanguage()->get('wcf.usersOnline.marking.friends').'</span>';\n\t\t}\n\t\n\t\treturn $usersOnlineMarkings;\n\t}", "public function get_all_online()\n {\n print_r(json_encode($this->Karyawan_model->get_all_online()));\n }", "public function index()\n {\n $meetings = Meeting::where('user_id', auth()->id())->orderByDesc('meeting_start')->get();\n\n return Inertia::render('Meeting/Index', compact('meetings'));\n }", "public function setOnlineMeetings(?array $value): void {\n $this->getBackingStore()->set('onlineMeetings', $value);\n }", "function tsml_get_meeting($meeting_id=false) {\n\tglobal $tsml_program, $tsml_programs;\n\t\n\t$meeting \t\t= get_post($meeting_id);\n\t$custom \t\t= get_post_meta($meeting->ID);\n\n\t//add optional location information\n\tif ($meeting->post_parent) {\n\t\t$location = get_post($meeting->post_parent);\n\t\t$meeting->location_id = $location->ID;\n\t\t$custom = array_merge($custom, get_post_meta($location->ID));\n\t\t$meeting->location = htmlentities($location->post_title, ENT_QUOTES);\n\t\t$meeting->location_notes = esc_html($location->post_content);\n\t\tif ($region = get_the_terms($location, 'tsml_region')) {\n\t\t\t$meeting->region_id = $region[0]->term_id;\n\t\t\t$meeting->region = $region[0]->name;\n\t\t}\n\t\t\n\t\t//get other meetings at this location\n\t\t$meeting->location_meetings = tsml_get_meetings(array('location_id' => $location->ID));\n\t\n\t\t//directions link (obsolete 4/15/2018, keeping for compatibility)\n\t\t$meeting->directions = 'https://maps.google.com/?' . http_build_query(array(\n\t\t\t'daddr' => $location->latitude . ',' . $location->longitude,\n\t\t\t'saddr' => 'Current Location',\n\t\t\t'q' => $meeting->location,\n\t\t));\n\t}\n\t\n\t//escape meeting values\n\tforeach ($custom as $key=>$value) {\n\t\t$meeting->{$key} = ($key == 'types') ? $value[0] : htmlentities($value[0], ENT_QUOTES);\n\t}\n\tif (empty($meeting->types)) $meeting->types = array();\n\tif (!is_array($meeting->types)) $meeting->types = unserialize($meeting->types);\n\t$meeting->post_title\t\t\t= htmlentities($meeting->post_title, ENT_QUOTES);\n\t$meeting->notes \t\t\t\t= esc_html($meeting->post_content);\n\t\n\t//type description? (todo support multiple)\n\tif (!empty($tsml_programs[$tsml_program]['type_descriptions'])) {\n\t\t$types_with_descriptions = array_intersect($meeting->types, array_keys($tsml_programs[$tsml_program]['type_descriptions']));\n\t\tforeach ($types_with_descriptions as $type) {\n\t\t\t$meeting->type_description = $tsml_programs[$tsml_program]['type_descriptions'][$type];\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\t//if meeting is part of a group, include group info\n\tif ($meeting->group_id) {\n\t\t$group = get_post($meeting->group_id);\n\t\t$meeting->group = htmlentities($group->post_title, ENT_QUOTES);\n\t\t$meeting->group_notes = esc_html($group->post_content);\n\t\t$group_custom = tsml_get_meta('tsml_group', $meeting->group_id);\n\t\tforeach ($group_custom as $key=>$value) {\n\t\t\t$meeting->{$key} = $value;\n\t\t}\n\t\t\n\t\tif ($district = get_the_terms($group, 'tsml_district')) {\n\t\t\t$meeting->district_id = $district[0]->term_id;\n\t\t\t$meeting->district = $district[0]->name;\n\t\t}\n\t} else {\n\t\t$meeting->group_id = null;\n\t\t$meeting->group = null;\n\t}\n\t\n\t//expand and alphabetize types\n\tarray_map('trim', $meeting->types);\n\t$meeting->types_expanded = array();\n\tforeach ($meeting->types as $type) {\n\t\tif (!empty($tsml_programs[$tsml_program]['types'][$type])) {\n\t\t\t$meeting->types_expanded[] = $tsml_programs[$tsml_program]['types'][$type];\n\t\t}\n\t}\n\tsort($meeting->types_expanded);\n\t\n\treturn $meeting;\n}", "public function index() {\n // Get Meetups\n $meetups = Meetups::paginate(30);\n // Return collection of Meetups as a resource\n return $meetups;\n }", "public function ajax_get_all_meetings()\n\t{\n\t\tif(isset($_POST['action']) && $_POST['action'] == \"get_meetings\")\n\t\t{\n\t\t\t$array = array(\n\t\t\t\t\"count\" => 0, \n\t\t\t\t\"meetings\" => array()\n\t\t\t);\n\t\t\t$meetings = $this->Meeting_model->get_all_meetings($this->user_id, $this->organ_id);\n\t\t\t\n\t\t\tif($meetings){\n\t\t\t\t$array['count'] = count($meetings);\n\t\t\t\t$array['meetings'] = $meetings;\n\t\t\t}\n\t\t\t\n\t\t\tdie(json_encode($array));\n\t\t}\n\t\t/* show error page if no POST */\n\t\tshow_404_page(\"404_page\" );\n\t}", "public function getOfflineOffers()\n {\n return $this->offlineOffers;\n }", "function who_is_online( $args = array() ) {\n\n\t //Get users active in last 24 hours\n $args = wp_parse_args( $args, array(\n 'meta_key' => 'whoisonline_last_active',\n 'meta_value' => time() - 24*60*60, \n 'meta_compare' => '>',\n 'count_total' => false,\n ));\n $users = get_users( $args );\n \n //Initiate array\n $online_users = array();\n \n foreach( $users as $user ) {\n if( ! get_user_meta( $user->ID, 'whoisonline_is_online', true ) )\n continue;\n \n $online_users[$user->ID] = $user->user_login;\n\t}\n\n\treturn $online_users;\n}" ]
[ "0.750165", "0.6650991", "0.6236101", "0.609767", "0.6035823", "0.59572804", "0.5756755", "0.57381696", "0.5724982", "0.57241035", "0.57238406", "0.5696416", "0.56007135", "0.5565899", "0.555908", "0.54964936", "0.5448134", "0.5423199", "0.5356197", "0.5296504", "0.5257085", "0.5256835", "0.5179836", "0.5144823", "0.5140954", "0.5133093", "0.51151335", "0.50740653", "0.5070592", "0.5059386" ]
0.70324343
1
Gets the onPremisesDistinguishedName property value. Contains the onpremises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their onpremises directory to Azure Active Directory via Azure AD Connect. Readonly.
public function getOnPremisesDistinguishedName(): ?string { $val = $this->getBackingStore()->get('onPremisesDistinguishedName'); if (is_null($val) || is_string($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremisesDistinguishedName'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOnPremisesDomainName(): ?string {\n $val = $this->getBackingStore()->get('onPremisesDomainName');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'onPremisesDomainName'\");\n }", "public function getDomainName(): string\n {\n return $this->domainName;\n }", "public function getDomainName()\n {\n return $this->domainName;\n }", "public function getDomainName()\n {\n return $this->domainName;\n }", "public function getFullyQualifiedDomainName();", "public function getDomainName()\n {\n return $this->_domainName;\n }", "public function setOnPremisesDistinguishedName(?string $value): void {\n $this->getBackingStore()->set('onPremisesDistinguishedName', $value);\n }", "public function getDomainName()\n {\n return $this->domain;\n }", "public function getDistrictManagerNameAttribute()\n {\n return data_get($this->field, 'manager.preferred_name');\n }", "public function getDn()\n {\n return $this->properties['dn'];\n }", "public function getOnPremisesUserPrincipalName(): ?string {\n $val = $this->getBackingStore()->get('onPremisesUserPrincipalName');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'onPremisesUserPrincipalName'\");\n }", "public function domain() {\n\t\treturn $this->get(Constants::DN);\n\t}", "public function getDomainName(): string;", "public function getDomainName(): string;", "public function get_master_dn()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n return \"cn=Master,ou=Servers,\" . $this->get_base_dn();\n }", "public function getDc()\n {\n return $this->dc;\n }", "public function getDn()\n {\n return $this->dn;\n }", "public function getDomainName(){\r\n return uri::getDomainName();\r\n }", "public function getDomain()\n\t{\n\t\tif (is_null($this->domain))\n\t\t{\n\t\t\t// Lets pull the domain from the SHLdap object\n\t\t\t$this->getId(false);\n\t\t\t$this->domain = $this->client->domain;\n\t\t}\n\n\t\treturn parent::getDomain();\n\t}", "public function get_domain()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! $this->is_loaded)\n $this->_load_config();\n\n if (empty($this->config['push']['dhcp-option']['DOMAIN']))\n return \"\";\n else\n return $this->config['push']['dhcp-option']['DOMAIN'];\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getDomain() : string\n {\n return $this->domain;\n }", "public function getBaseDN()\n {\n return (string)$this->baseDN;\n }", "public function getFull_name_doctor()\n {\n return $this->full_name_doctor;\n }", "public function getDomain(): string\n {\n return $this->domain;\n }" ]
[ "0.5986289", "0.59266955", "0.5877928", "0.5877928", "0.58712536", "0.58611596", "0.56953496", "0.5672896", "0.5533858", "0.548759", "0.526903", "0.5242025", "0.5205525", "0.5205525", "0.51397824", "0.5117049", "0.51151234", "0.5063058", "0.5054948", "0.50248176", "0.50219965", "0.50219965", "0.50219965", "0.50219965", "0.50219965", "0.50219965", "0.50063646", "0.49735975", "0.4959201", "0.4942238" ]
0.660284
0
Gets the onPremisesExtensionAttributes property value. Contains extensionAttributes115 for the user. These extension attributes are also known as Exchange custom attributes 115. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the onpremises and is readonly. For a cloudonly user (where onPremisesSyncEnabled is false), these properties can be set during creation or update of a user object. For a cloudonly user previously synced from onpremises Active Directory, these properties are readonly in Microsoft Graph but can be fully managed through the Exchange Admin Center or the Exchange Online V2 module in PowerShell. Supports $filter (eq, ne, not, in).
public function getOnPremisesExtensionAttributes(): ?OnPremisesExtensionAttributes { $val = $this->getBackingStore()->get('onPremisesExtensionAttributes'); if (is_null($val) || $val instanceof OnPremisesExtensionAttributes) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremisesExtensionAttributes'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes();", "public function getExtensionAttributes()\n {\n return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);\n }", "public function getExtensionAttributes()\n {\n return $this->_getExtensionAttributes();\n }", "public function getExtensionAttributes()\n {\n return $this->_getExtensionAttributes();\n }", "public function getExtensionAttributes()\n {\n return $this->_getExtensionAttributes();\n }", "public function getExtensionAttributes()\n {\n return $this->_getExtensionAttributes();\n }", "public function getExtensionAttributes()\n {\n return $this->_getExtensionAttributes();\n }", "public function getExtensionAttributes()\n {\n return $this->_getExtensionAttributes();\n }", "public function getExtensionAttributes()\n {\n return $this->_getExtensionAttributes();\n }", "public function setOnPremisesExtensionAttributes(?OnPremisesExtensionAttributes $value): void {\n $this->getBackingStore()->set('onPremisesExtensionAttributes', $value);\n }", "public function getExtensionAttributes() : array;", "public function getExtensionAttributes(): ?\\Magento\\InventoryApi\\Api\\Data\\SourceExtensionInterface;", "protected function _getFilterableAttributes()\n {\n \t$res = Mage::registry('ea_result');\n \tif ($res != null){\n\t $attributes = $this->getData('_filterable_attributes');\n\t if (is_null($attributes)) {\n\t $attributes = $this->getLayer()->getFilterableAttributes();\n\t $this->setData('_filterable_attributes', $attributes);\n\t }\n\t\n\t return $attributes;\n \t} else {\n \t\treturn parent::_getFilterableAttributes();\n \t}\n }", "public function getFilteredAttributes()\n {\n return $this->filtered_attributes;\n }", "protected function getUserAttributes() {\n return array_map('trim', explode(\"\\r\\n\", $this->userSettings->get('user_mapping.attributes')));\n }", "public function getExtensionsAllowed()\n {\n return $this->extensions_allowed;\n }", "public static function getFilterableAttributes(): array;", "public function getNormalizedExtensions() {\n return $this->normalizedExtensions;\n }", "public static function getUserProfileAttributes() {\n return [\n Profile::ATTR_SELFIE => 'Selfie',\n Profile::ATTR_FULL_NAME => 'Full Name',\n Profile::ATTR_GIVEN_NAMES => 'Given Name(s)',\n Profile::ATTR_FAMILY_NAME => 'Family Name',\n Profile::ATTR_PHONE_NUMBER => 'Mobile Number',\n Profile::ATTR_EMAIL_ADDRESS => 'Email Address',\n Profile::ATTR_DATE_OF_BIRTH => 'Date Of Birth',\n self::AGE_VERIFICATION_ATTR => 'Age Verified',\n Profile::ATTR_POSTAL_ADDRESS => 'Postal Address',\n Profile::ATTR_GENDER => 'Gender',\n Profile::ATTR_NATIONALITY => 'Nationality',\n ];\n }" ]
[ "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.6200436", "0.5959119", "0.56749463", "0.56749463", "0.56749463", "0.56749463", "0.56749463", "0.56749463", "0.56749463", "0.5658284", "0.5507738", "0.5202264", "0.4987543", "0.49608332", "0.4871845", "0.48394564", "0.48236272", "0.48108044", "0.47795635" ]
0.6469672
0
Gets the onPremisesImmutableId property value. This property is used to associate an onpremises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property. Note: The $ and _ characters cannot be used when specifying this property. Supports $filter (eq, ne, not, ge, le, in).
public function getOnPremisesImmutableId(): ?string { $val = $this->getBackingStore()->get('onPremisesImmutableId'); if (is_null($val) || is_string($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremisesImmutableId'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getIdProperty(): string\n {\n return 'accountId';\n }", "public function getOwnerUserId();", "public function setOnPremisesImmutableId(?string $value): void {\n $this->getBackingStore()->set('onPremisesImmutableId', $value);\n }", "public function getId()\n\t{\n\t\tif( $this->idColumn===null )\n\t\t\t$this->idColumn = Rights::module()->userIdColumn;\n\n\t\treturn $this->owner->{$this->idColumn};\n\t}", "public function getIdentityId()\n {\n return $this->identity_id;\n }", "public function getIdentity() {\n return variable_get('salesforce_identity', FALSE);\n }", "public function getOwnerId() \n {\n return $this->_fields['OwnerId']['FieldValue'];\n }", "public function getIdentityOne() {\n return $this->identityOne;\n }", "public function getIdentity();", "public function getIdentity();", "public function getIdentity();", "public function getIdentity();", "public function getIdentity() {\n $result = $this->getRealIdentity();\n\n if ($result < 0) {\n $result = 0;\n }\n\n return $result;\n }", "public function getIdOnly()\n {\n return $this->getProperty('idOnly');\n }", "public function getOwnerId() {\n return $this->ownerId;\n }", "public function getIdentity()\n {\n return $this->identity;\n }", "public function getIdentity()\n {\n return $this->identity;\n }", "public function getIdentity()\n {\n return $this->identity;\n }", "public function accountId()\r\n {\r\n return $this->userIdentifier;\r\n }", "public function getIdentity(): string;", "public function getIdentityResult() {\n return $this->identityResult;\n }", "function id()\n {\n if ( $this->IsCoherent == 0 )\n $this->get();\n return $this->id();\n }", "public static function getIdProperty(): string;", "public function getMetadataSetId() : string\n {\n return $this->getProperty()->metadataSetId;\n }", "private function id()\n {\n return $this->user->id ?? null;\n }", "public function ownerId()\n {\n return $this->ownerid;\n }", "public function getUserIdentifier() {\n return $this->accessToken['user_identifier'];\n }", "public function getAnonymousId();", "public static function userId()\n {\n return self::payloadUser('id');\n }", "public function userId(){\r\n if(Yii::app()->user->isGuest)\r\n YiiRestler::error(403,Yii::t('api','Can\\'t get id'));\r\n return Yii::app()->user->getId();\r\n }" ]
[ "0.52036977", "0.516284", "0.50638866", "0.50570184", "0.50545627", "0.50277597", "0.5017147", "0.49722093", "0.48853928", "0.48853928", "0.48853928", "0.48853928", "0.4861912", "0.48538578", "0.48330936", "0.48317266", "0.48317266", "0.48317266", "0.48171562", "0.4804105", "0.47988814", "0.47891146", "0.47878549", "0.4751252", "0.4723697", "0.46981975", "0.46689188", "0.46624228", "0.46504977", "0.4630518" ]
0.6138303
0
Gets the onPremisesSamAccountName property value. Contains the onpremises sAMAccountName synchronized from the onpremises directory. The property is only populated for customers who are synchronizing their onpremises directory to Azure Active Directory via Azure AD Connect. Readonly. Supports $filter (eq, ne, not, ge, le, in, startsWith).
public function getOnPremisesSamAccountName(): ?string { $val = $this->getBackingStore()->get('onPremisesSamAccountName'); if (is_null($val) || is_string($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremisesSamAccountName'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAccountName()\n {\n return $this->getProperty(self::ACCOUNT_NAME);\n }", "public function getAccountName() {\n return $this->accountName;\n }", "public function getAccountName()\n {\n return $this->name;\n }", "public function getAccountName()\n {\n return $this->_accountName;\n }", "public function getAccountName()\n {\n return $this->account_name;\n }", "public function getOnPremisesUserPrincipalName(): ?string {\n $val = $this->getBackingStore()->get('onPremisesUserPrincipalName');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'onPremisesUserPrincipalName'\");\n }", "public function setOnPremisesSamAccountName(?string $value): void {\n $this->getBackingStore()->set('onPremisesSamAccountName', $value);\n }", "public function getNameAccount()\n {\n return $this->NameAccount;\n }", "public function username()\n {\n return 'samaccountname';\n }", "protected function authenticatedUserName( $accessToken )\n\t{\n\t\tif ( isset( $this->settings['real_name'] ) and $this->settings['real_name'] )\n\t\t{\n\t\t\treturn $this->_userData( $accessToken )['name'];\n\t\t}\n\t\treturn NULL;\n\t}", "public function currentUserFromImpersonation()\n {\n return $this->impersonate;\n }", "private function getAccountName()\r\n {\r\n global $_SERVER, $_GET, $_POST, $_SERVER;\r\n\r\n $ret = null;\r\n\r\n // Check url - 3rd level domain is the account name\r\n if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] != $this->getConfig()->localhost_root\r\n && strpos($_SERVER['HTTP_HOST'], \".\" . $this->getConfig()->localhost_root))\r\n {\r\n $left = str_replace(\".\" . $this->getConfig()->localhost_root, '', $_SERVER['HTTP_HOST']);\r\n if ($left)\r\n return $left;\r\n }\r\n\r\n // Check get - less common\r\n if (isset($_GET['account']) && $_GET['account'])\r\n {\r\n return $_GET['account'];\r\n }\r\n\r\n // Check post - less common\r\n if (isset($_POST['account']) && $_POST['account'])\r\n {\r\n return $_POST['account'];\r\n }\r\n\r\n // Check for any third level domain (not sure if this is safe)\r\n if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] && substr_count($_SERVER['HTTP_HOST'], '.')>=2)\r\n {\r\n $left = substr($_SERVER['HTTP_HOST'], 0, strpos($_SERVER['HTTP_HOST'], '.'));\r\n if ($left)\r\n return $left;\r\n }\r\n\r\n // Get default account from the system settings\r\n return $this->getConfig()->default_account;\r\n }", "public function Username()\n {\n if( $this->Addresses() ) {\n return $this->Addresses()->username;\n }\n\n return null;\n }", "public function getExternalAccountName()\n\t{\n\t\treturn $this->migration_account;\n\t}", "public function setAccountName($value)\n {\n return $this->set('AccountName', $value);\n }", "public function setAccountName($value)\n {\n return $this->set('AccountName', $value);\n }", "public function setAccountName($value)\n {\n return $this->set('AccountName', $value);\n }", "public function setAccountName($value)\n {\n return $this->set('AccountName', $value);\n }", "public function accountId()\r\n {\r\n return $this->userIdentifier;\r\n }", "public abstract function getActiveAccountId();", "public function getFirstName()\n {\n Yii::trace('getFirstName()', 'application.components.RinkfinderWebUser');\n\treturn $this->getState('__firstName');\n }", "public function getAccountNameAttribute(): ?string;", "public function getClientAccount()\n {\n return $this->systemClientAccount ? $this->systemClientAccount->getClientAccount() : null;\n }", "public function getAccountId()\n {\n return (string)$this->accountId;\n }", "public function getUserAccount()\n {\n return $this->userAccount;\n }", "public function getShowActiveUser() {\n return $this->showActiveUser;\n }", "public function getCurrentUsername()\n {\n return $this->getCurrentUserProperty('username');\n }", "public function getFirstName() \r\n {\r\n return $this->ldapData['givenname'][0];\r\n }", "public function getUsername()\n {\n return $this->customername;\n }", "public function getActiveLogin()\n {\n if (!empty($this->_userLogin) AND !empty($this->_userKey)) {\n return $this->_userLogin;\n }\n \n return $this->_applicationLogin;\n }" ]
[ "0.60632414", "0.59112936", "0.5902849", "0.58970344", "0.58784753", "0.55431384", "0.5411328", "0.5213629", "0.5123438", "0.5045712", "0.5024125", "0.502318", "0.50110793", "0.500479", "0.5000283", "0.5000283", "0.5000283", "0.5000283", "0.49430785", "0.4915575", "0.4913772", "0.49105734", "0.48262742", "0.48243812", "0.48025638", "0.4794701", "0.47886708", "0.47731686", "0.47351617", "0.473373" ]
0.6342497
0
Gets the onPremisesSecurityIdentifier property value. Contains the onpremises security identifier (SID) for the user that was synchronized from onpremises to the cloud. Readonly. Supports $filter (eq including on null values).
public function getOnPremisesSecurityIdentifier(): ?string { $val = $this->getBackingStore()->get('onPremisesSecurityIdentifier'); if (is_null($val) || is_string($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremisesSecurityIdentifier'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSecurityId()\n\t{\n\t\treturn $this->securityId;\n\t}", "public function setOnPremisesSecurityIdentifier(?string $value): void {\n $this->getBackingStore()->set('onPremisesSecurityIdentifier', $value);\n }", "public function getIdentity() {\n return variable_get('salesforce_identity', FALSE);\n }", "public function get_security_code() {\n\t\treturn $this->security_code;\n\t}", "public function getIdentityId()\n {\n return $this->identity_id;\n }", "public function getSecurityEntity()\n {\n return $this->hasOne(SecurityEntities::className(),['IdSecurityEntity' => 'IdSecurityEntity']);\n }", "public function getSecurityCode()\n {\n return $this->_securityCode;\n }", "public function getOwnerNsid();", "public function getOnPremisesUserPrincipalName(): ?string {\n $val = $this->getBackingStore()->get('onPremisesUserPrincipalName');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'onPremisesUserPrincipalName'\");\n }", "public function getIdentity()\n {\n return $this->identity;\n }", "public function getIdentity()\n {\n return $this->identity;\n }", "public function getIdentity()\n {\n return $this->identity;\n }", "public function currentUserFromImpersonation()\n {\n return $this->impersonate;\n }", "public function getIdentity()\n {\n return $this->hasOne(SocialUser::class, ['uuid' => 'identity_id']);\n }", "public function getUserId(){\n return $this->nUserId_SR;\n }", "public function getSid($identity);", "static public function getIdentity()\r\n\t{\r\n\t\tif (!self::isLogged())\r\n\t\t\treturn null;\r\n\t\treturn self::getUser()->identity;\r\n\t}", "static public function getIdentity()\r\n\t{\r\n\t\tif (!self::isLogged())\r\n\t\t\treturn null;\r\n\t\treturn self::getUser()->identity;\r\n\t}", "public function getSecurityInformation();", "public function getCsUserId() : string\n {\n return $this->csUserId;\n }", "public function getIdentity()\n {\n $auth = new AuthenticationService();\n\n if ($auth->hasIdentity()) {\n return $auth->getIdentity();\n }\n\n return false;\n }", "public function getIdentityOne() {\n return $this->identityOne;\n }", "public function getVCredICMSSN()\n {\n return $this->vCredICMSSN;\n }", "public function getIdentity();", "public function getIdentity();", "public function getIdentity();", "public function getIdentity();", "public function getInsuredPeople()\n {\n return isset($this->insuredPeople) ? $this->insuredPeople : null;\n }", "public function getIdentityCard()\n {\n return $this->identity_card;\n }", "public function getIdentityName(): ?string;" ]
[ "0.6027629", "0.5696146", "0.55082303", "0.53242755", "0.5198397", "0.5118699", "0.51018274", "0.506208", "0.5001305", "0.49806803", "0.49806803", "0.49806803", "0.4963425", "0.49548814", "0.49518073", "0.4936601", "0.49206758", "0.49206758", "0.4917459", "0.4893081", "0.48923036", "0.48893198", "0.48853973", "0.48751172", "0.48751172", "0.48751172", "0.48751172", "0.48348618", "0.48270643", "0.48039117" ]
0.6370401
0
Gets the onPremisesSipInfo property value. Contains all onpremises Session Initiation Protocol (SIP) information related to the user. Readonly.
public function getOnPremisesSipInfo(): ?OnPremisesSipInfo { $val = $this->getBackingStore()->get('onPremisesSipInfo'); if (is_null($val) || $val instanceof OnPremisesSipInfo) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremisesSipInfo'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setOnPremisesSipInfo(?OnPremisesSipInfo $value): void {\n $this->getBackingStore()->set('onPremisesSipInfo', $value);\n }", "public function getUserInfo()\r\n {\r\n return $this->userInfo;\r\n }", "protected function userInfo()\n {\n if (PHP_SAPI === 'cli') {\n return array();\n }\n\n return array(\n 'hostname' => $_SERVER['SERVER_NAME'],\n 'user_agent' => array_key_exists('HTTP_USER_AGENT', $_SERVER) ? $_SERVER['HTTP_USER_AGENT'] : '',\n 'referrer' => array_key_exists('HTTP_REFERER', $_SERVER) ? $_SERVER['HTTP_REFERER'] : '',\n 'user_ip' => array_key_exists('REMOTE_ADDR', $_SERVER) ? $_SERVER['REMOTE_ADDR'] : '',\n 'language' => array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '',\n 'document_path' => array_key_exists('PATH_INFO', $_SERVER) ? $_SERVER['PATH_INFO'] : '',\n );\n }", "public function getSiteInfo($siprop = 'general')\n {\n $params = array('meta' => 'siteinfo', \n 'siprop' => $siprop);\n return $this->query($params);\n }", "public function getClientIpinfo(): array;", "public function get_user_info_array()\n\t{\n\t\treturn $this->USER_INFO;\n\t}", "public function getUserInformation()\n {\n return PrivateSession::getData(ApplicationConst::USER_INFO);\n }", "public function getMsisdnInfo() { return $this->msisdnInfo; }", "public function getNipSuamiIstri()\n {\n return $this->nip_suami_istri;\n }", "public function getPropertyInsurancePolicyInfo()\n {\n return isset($this->PropertyInsurancePolicyInfo) ? $this->PropertyInsurancePolicyInfo : null;\n }", "protected function get_current_user_info(): ?array {\n\t\t$current_user = wp_get_current_user();\n\n\t\tif ( $current_user === null ) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// Determine whether the user is logged in assign their details.\n\t\t$user_context = $current_user instanceof WP_User && $current_user->exists() ? [\n\t\t\t'id' => $current_user->ID,\n\t\t\t'name' => $current_user->display_name,\n\t\t\t'email' => $current_user->user_email,\n\t\t\t'username' => $current_user->user_login,\n\t\t] : [\n\t\t\t'id' => 0,\n\t\t\t'name' => 'anonymous',\n\t\t];\n\n\t\t// Filter the user context so that plugins that manage users on their own\n\t\t// can provide alternate user context. ie. members plugin\n\t\tif ( has_filter( 'wp_sentry_user_context' ) ) {\n\t\t\treturn (array) apply_filters( 'wp_sentry_user_context', $user_context );\n\t\t}\n\n\t\treturn $user_context;\n\t}", "public function getUserInfo(): ?string\n\t{\n\t\treturn $this->uri->getUserInfo();\n\t}", "private function _getUserInfo()\n {\n return \\User::find($this->_me['id'])->userInfo()->first();\n }", "public function user() {\n \t$userInfo = $this->bitcasaClientApi->getBitcasaAccountDataApi()->requestUserInfo();\n \treturn $userInfo;\n }", "public static function ip_details() \n\t\t{\n\t\t\tif (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n\t\t\t\t$ip_address = $_SERVER['HTTP_CLIENT_IP'];\n\t\t\t} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t\t\t$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t} else {\n\t\t\t\t$ip_address = $_SERVER['REMOTE_ADDR'];\n\t\t\t}\n\t\t\t\n\t\t\tif( $ip_address == '127.0.0.1')\n\t\t\t{\n\t\t\t\t$ip_address = '49.148.66.42'; // Default to the Philippines if localhost\n\t\t\t}\n\t\t\t\n\t\t\t$json \t\t = file_get_contents(\"http://ipinfo.io/\".$ip_address);\n\t\t\t$details \t = json_decode($json);\t\t\t\n\t\t\treturn $details;\n\t\t}", "public function getInfo() {\n return $this->info;\n }", "public function getCountryInfos() {\n return $this->countryInfos;\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 getInfo()\n {\n return $this->info;\n }", "public function getInfo()\n {\n return $this->info;\n }", "public function getUserInfo()\n\t{\n\t\treturn $this->getAuthService()->getStorage()->read();\n\t}", "public function getUserInfo()\n\t{\n\t\treturn $this->getAuthService()->getStorage()->read();\n\t}", "function get_isp()\n {\n return ($this->isp);\n }", "public function getInfo()\n {\n return $this->__call('getinfo');\n }", "public function getInfo() {\n return $this->info;\n }" ]
[ "0.6469484", "0.5174592", "0.49699628", "0.48795733", "0.47832727", "0.47719154", "0.47667176", "0.4760764", "0.4750121", "0.46872127", "0.46425354", "0.46088436", "0.4584171", "0.45649678", "0.45332044", "0.45160347", "0.450107", "0.44958657", "0.44958657", "0.44958657", "0.44958657", "0.44958657", "0.44958657", "0.44958657", "0.44958657", "0.44940948", "0.44940948", "0.4493519", "0.44862002", "0.44787142" ]
0.716049
0
Gets the onPremisesUserPrincipalName property value. Contains the onpremises userPrincipalName synchronized from the onpremises directory. The property is only populated for customers who are synchronizing their onpremises directory to Azure Active Directory via Azure AD Connect. Readonly. Supports $filter (eq, ne, not, ge, le, in, startsWith).
public function getOnPremisesUserPrincipalName(): ?string { $val = $this->getBackingStore()->get('onPremisesUserPrincipalName'); if (is_null($val) || is_string($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'onPremisesUserPrincipalName'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserPrincipalName()\n {\n if (array_key_exists(\"userPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"userPrincipalName\"];\n } else {\n return null;\n }\n }", "public function setOnPremisesUserPrincipalName(?string $value): void {\n $this->getBackingStore()->set('onPremisesUserPrincipalName', $value);\n }", "public function Username()\n {\n if( $this->Addresses() ) {\n return $this->Addresses()->username;\n }\n\n return null;\n }", "public function getCurrentUsername()\n {\n return $this->getCurrentUserProperty('username');\n }", "public function getVersionApproverUserName()\n {\n if ($this->cvApproverUID > 0) {\n $app = Facade::getFacadeApplication();\n $db = $app->make('database')->connection();\n\n return $db->fetchColumn('select uName from Users where uID = ?', array(\n $this->cvApproverUID,\n ));\n }\n }", "public function getInitiatedByUserPrincipalName()\n {\n if (array_key_exists(\"initiatedByUserPrincipalName\", $this->_propDict)) {\n return $this->_propDict[\"initiatedByUserPrincipalName\"];\n } else {\n return null;\n }\n }", "public function getUserName() {\n\t\treturn $this->get( 'user_name' );\n\t}", "public function getUserName()\n {\n if (array_key_exists(\"userName\", $this->_propDict)) {\n return $this->_propDict[\"userName\"];\n } else {\n return null;\n }\n }", "public function getUserName()\n {\n if (array_key_exists(\"userName\", $this->_propDict)) {\n return $this->_propDict[\"userName\"];\n } else {\n return null;\n }\n }", "public function getUserName()\n {\n $value = $this->get(self::USERNAME);\n return $value === null ? (string)$value : $value;\n }", "protected function authenticatedUserName( $accessToken )\n\t{\n\t\tif ( isset( $this->settings['real_name'] ) and $this->settings['real_name'] )\n\t\t{\n\t\t\treturn $this->_userData( $accessToken )['name'];\n\t\t}\n\t\treturn NULL;\n\t}", "public function getInvitedUserDisplayName()\n {\n return $this->getProperty(\"InvitedUserDisplayName\");\n }", "public function getUsername() {\r\n\t\treturn $this->getProperty(\"username\");\r\n\t}", "public function getOppoUsername()\r\n {\r\n return $this->get(self::_OPPO_USERNAME);\r\n }", "function getUsername() {\n $user = $this->loadUser(Yii::app()->user->id);\n return $user->staff_username;\n }", "function getDisplayName() {\n\n if (isset($this->principalProperties['{DAV:}displayname'])) {\n return $this->principalProperties['{DAV:}displayname'];\n } else {\n return $this->getName();\n }\n\n }", "function username() {\n\t\treturn ($this->profil['username'] != '') ? $this->profil['username'] : false;\n\t}", "public function getFirstName()\n {\n Yii::trace('getFirstName()', 'application.components.RinkfinderWebUser');\n\treturn $this->getState('__firstName');\n }", "public function username()\n {\n return filter_var($this->loginCredential, FILTER_VALIDATE_EMAIL) ? 'email': 'username';\n }", "public function getUsername()\n {\n return $this->customername;\n }", "public function getUserName() {\n return $this ->userName;\n }", "public function getUserName()\n {\n $user = self::findOne(['id' => $this->id]);\n return $user->name;\n }", "public function getProfileUserName(): string {\n\t\treturn ($this->profileUserName);\n\t}", "public function getUserName() {\r\n\t\treturn $this->user_name;\r\n\t}", "public function getUsername()\n {\n $sql = $this->getDb()->prepare(\"SELECT username FROM user_list WHERE id =?\");\n $sql->setFetchMode(PDO::FETCH_ASSOC);\n $sql->execute(array($this->user_id));\n $this->username = $sql->fetchColumn();\n return $this->username;\n }" ]
[ "0.6407891", "0.6407891", "0.6407891", "0.6407891", "0.6407891", "0.6407891", "0.59556633", "0.57471836", "0.5716324", "0.5645535", "0.5612721", "0.5513919", "0.55119896", "0.55119896", "0.5486968", "0.54549944", "0.53955865", "0.5382313", "0.537409", "0.5334414", "0.5332551", "0.5314402", "0.5297862", "0.5294223", "0.5293444", "0.52920234", "0.5290202", "0.52894807", "0.52886117", "0.52757454" ]
0.6545324
0
Gets the outlook property value. Selective Outlook services available to the user. Readonly. Nullable.
public function getOutlook(): ?OutlookUser { $val = $this->getBackingStore()->get('outlook'); if (is_null($val) || $val instanceof OutlookUser) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'outlook'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPropertyValue()\n {\n return $this->propertyValue;\n }", "function get_value()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_VALUE);\r\n }", "function get_value()\n {\n return $this->get_default_property(self :: PROPERTY_VALUE);\n }", "public function getValue()\n {\n return $this->_email;\n \n }", "protected function get_value() {\n\t\treturn $this->user_options->get( Active_Consumers::OPTION );\n\t}", "public function getValue()\n\t{\n\t\treturn (null !== $this->_value) ? $this->_value : false;\n\t}", "public function get_value(): mixed {\n\t\treturn $this->value;\n\t}", "public function getValue() {\n if($this->value!=null){\n return $this->value;\n } else {\n return null;\n }\n }", "public function getUserDefinedValue()\n {\n return $this->userDefinedValue;\n }", "public function getOptOutOfCustomerEmail()\n {\n if (array_key_exists(\"optOutOfCustomerEmail\", $this->_propDict)) {\n return $this->_propDict[\"optOutOfCustomerEmail\"];\n } else {\n return null;\n }\n }", "function getOptInOptOutEmailAddress()\n {\n return ($this->__opt_in_opt_out_email_address) ;\n }", "public function getValue($value = null) {\n return $this->getValue;\n }", "public function getValue(): ?string {\n return $this->value;\n }", "public function getVal() {\n\t\t\tif ($this->getSimple()) return $this->value;\n\t\t\telse return null;\n\t\t}", "public function getValue(): ?string\n {\n return $this->value;\n }", "public function getValue(): ?string\n {\n return $this->value;\n }", "public function getValue() {\n\t\treturn $this->get('value');\n\t}", "public function get()\n {\n return $this->value;\n }", "public function get()\n {\n return $this->value;\n }", "public function get()\n {\n return $this->value;\n }", "public function getValue(): mixed\n {\n if (null == $this->isValid && null != $this->userValue) {\n $this->validate();\n }\n if (null !== $this->userValue && $this->isValid) {\n if ('' === $this->userValue && true === $this->nullOnEmpty) {\n return null;\n }\n return $this->userValue;\n } else {\n if ('' === $this->defaultValue && true === $this->nullOnEmpty) {\n return null;\n }\n return $this->defaultValue;\n }\n }", "public function get_value() {\n\t\treturn papi_is_empty( $this->value ) ? $this->default : $this->value;\n\t}", "public function get()\n\t{\n\t\treturn $this->value;\n\t}", "public function getUserValue(): mixed\n {\n if (null == $this->isValid) {\n $this->validate();\n }\n if (null !== $this->userValue && $this->isValid) {\n if ('' === $this->userValue && true === $this->nullOnEmpty) {\n return null;\n }\n return $this->userValue;\n } else {\n return '';\n }\n }", "public function get_value() {\n return $this->value;\n }", "public function getValue(): mixed\n {\n return $this->value;\n }", "public function getValue(): mixed\n {\n return $this->value;\n }", "public function getValue(): mixed\n {\n return $this->value;\n }", "public function getOutOfOfficeSettings()\n {\n if (array_key_exists(\"outOfOfficeSettings\", $this->_propDict)) {\n if (is_a($this->_propDict[\"outOfOfficeSettings\"], \"\\Beta\\Microsoft\\Graph\\Model\\OutOfOfficeSettings\") || is_null($this->_propDict[\"outOfOfficeSettings\"])) {\n return $this->_propDict[\"outOfOfficeSettings\"];\n } else {\n $this->_propDict[\"outOfOfficeSettings\"] = new OutOfOfficeSettings($this->_propDict[\"outOfOfficeSettings\"]);\n return $this->_propDict[\"outOfOfficeSettings\"];\n }\n }\n return null;\n }", "public function getMonetaryValue()\n {\n return isset($this->monetaryValue) ? $this->monetaryValue : null;\n }" ]
[ "0.60137147", "0.5975602", "0.5970641", "0.59200513", "0.5718308", "0.56860465", "0.55999607", "0.5581251", "0.5537501", "0.5519034", "0.5494628", "0.5468446", "0.5455413", "0.5433099", "0.5409637", "0.5409637", "0.54093677", "0.54008675", "0.54008675", "0.54008675", "0.539438", "0.5391237", "0.53788966", "0.5378889", "0.5365439", "0.5358829", "0.5358829", "0.5358829", "0.5354521", "0.53467786" ]
0.6181344
0
Gets the ownedDevices property value. Devices that are owned by the user. Readonly. Nullable. Supports $expand.
public function getOwnedDevices(): ?array { $val = $this->getBackingStore()->get('ownedDevices'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, DirectoryObject::class); /** @var array<DirectoryObject>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'ownedDevices'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getManagedDevices()\n {\n if (array_key_exists(\"managedDevices\", $this->_propDict)) {\n return $this->_propDict[\"managedDevices\"];\n } else {\n return null;\n }\n }", "public function getUserDevices()\n {\n $user = auth::user();\n $devices = Device::where([\n ['organization_id', '=', $user['organization_id']],\n ])->whereNull(\n 'left_pixel'\n )->get();\n \n return $devices;\n }", "public function getManagedDevices(): ?array {\n $val = $this->getBackingStore()->get('managedDevices');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ManagedDevice::class);\n /** @var array<ManagedDevice>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'managedDevices'\");\n }", "public function getManagedDevices(): ?array {\n $val = $this->getBackingStore()->get('managedDevices');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ManagedDevice::class);\n /** @var array<ManagedDevice>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'managedDevices'\");\n }", "public function getDevices()\n {\n return $this->devices;\n }", "public function getDevices(): ?array {\n $val = $this->getBackingStore()->get('devices');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Device::class);\n /** @var array<Device>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'devices'\");\n }", "public function getOwnedObjects(): ?array {\n $val = $this->getBackingStore()->get('ownedObjects');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'ownedObjects'\");\n }", "public function getDevices() {\n $devices = isset($this->options['device_detection']) ? $this->options['device_detection'] : NULL;\n\n if ($devices && isset($devices['devices'])) {\n $devices = array_filter($devices['devices'], function ($var) {\n return($var != FALSE);\n });\n }\n return $devices;\n }", "public function getUserDBDevices()\n {\n $user = auth::user();\n $devices = Device::where([\n ['organization_id', '=', $user['organization_id']],\n ])->whereNotNull(\n 'left_pixel'\n )->get();\n \n return $devices;\n }", "public function setOwnedDevices(?array $value): void {\n $this->getBackingStore()->set('ownedDevices', $value);\n }", "public function getRegisteredDevices(): ?array {\n $val = $this->getBackingStore()->get('registeredDevices');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'registeredDevices'\");\n }", "public function getDevices(): array\n {\n return $this->devices;\n }", "public function devices()\n {\n return $this->hasMany(UserDevice::class);\n }", "public function devices() {\n return $this->hasMany(\"App\\Laravel\\Models\\UserDevice\", \"user_id\");\n }", "public function setManagedDevices($val)\n {\n $this->_propDict[\"managedDevices\"] = $val;\n return $this;\n }", "public function devices()\n {\n return $this->hasMany('App\\Models\\Devices','user_id','id');\n }", "public function getOwners(): ?array {\n $val = $this->getBackingStore()->get('owners');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, User::class);\n /** @var array<User>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'owners'\");\n }", "public function getDeviceStatuses()\n {\n if (array_key_exists(\"deviceStatuses\", $this->_propDict)) {\n return $this->_propDict[\"deviceStatuses\"];\n } else {\n return null;\n }\n }", "public function retrieveUserDevices()\n {\n /** @var User $user */\n $user = Auth::user();\n $data = $this->userRepository->getUserDevices(\n $user\n );\n\n $markedIndices = $this->deviceRepository->getFurthestDevicesFromPool(\n $data->toArray()\n );\n\n foreach($data as $key => $value)\n $value->marked = in_array($key, $markedIndices);\n\n return response()->json(\n $data\n );\n }", "public function getAll()\n {\n return $this->devices;\n }", "public function listDevices() {\n $response = $this->api->get('/device');\n\n return $response->success ? $response->data : array();\n }", "public function allDevices() {\n return new Device([\n \"iden\" => \"\",\n \"pushable\" => true,\n \"has_sms\" => false\n ], $this->apiKey);\n }", "public function devices () {\n return $this->hasMany('App\\Device');\n }", "public function getRegisteredDevices()\n {\n return response()->json(\n Device::select(['id', 'app_id', 'uid', 'created_at', 'token'])->limit(10)->orderBy('id', 'desc')->get()\n );\n }", "public function getConnectedUsers()\n {\n return [];\n }", "public function getUserDevice($data)\n {\n return UserDevice::whereUserId($data['user_id'])\n ->whereDeviceType($data['device_type'])\n ->first();\n }", "public function listOwnerProperties(string $username, bool $includeNLA = true): ?array\n {\n return $this->listOwnerProp($username, $includeNLA);\n }", "public function getDevice()\n\t{\n\t\t$client = $this->getClient();\n\n\t\treturn $this->getObject('device', $client->devices);\n\t}", "public function getInsuredPeople()\n {\n return isset($this->insuredPeople) ? $this->insuredPeople : null;\n }", "public function getAUsers()\n {\n return isset($this->aUsers) ? $this->aUsers : null;\n }" ]
[ "0.6615449", "0.60045964", "0.5874288", "0.5874288", "0.5756301", "0.5608689", "0.55567056", "0.5540154", "0.55399543", "0.54628986", "0.54259807", "0.5383994", "0.521927", "0.5157953", "0.51200557", "0.5077562", "0.5066958", "0.4979481", "0.49696308", "0.49147844", "0.48755446", "0.4809021", "0.47183242", "0.47066575", "0.470496", "0.46601564", "0.46517286", "0.46359986", "0.463376", "0.45706108" ]
0.6996122
0
Gets the ownedObjects property value. Directory objects that are owned by the user. Readonly. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
public function getOwnedObjects(): ?array { $val = $this->getBackingStore()->get('ownedObjects'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, DirectoryObject::class); /** @var array<DirectoryObject>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'ownedObjects'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOwnedDevices(): ?array {\n $val = $this->getBackingStore()->get('ownedDevices');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'ownedDevices'\");\n }", "public function ownedBy() {\n\t\tif ($this->getUserobjecttype() != \"\") {\n\t\t\t$objectQueryName = $this->getUserobjecttype() . 'Query';\n\t\t\tif (class_exists($objectQueryName)) {\n\t\t\t\t$query = BaseQuery::create($this->getUserobjecttype());\n\t\t\t\treturn $query->findPK($this->getUserobjectid());\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public function listOwnerProperties(string $username, bool $includeNLA = true): ?array\n {\n return $this->listOwnerProp($username, $includeNLA);\n }", "public function getOwners(): ?array {\n $val = $this->getBackingStore()->get('owners');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, User::class);\n /** @var array<User>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'owners'\");\n }", "public function getAllOwnedGroups(){\n return $this->securityDAO->getAllOwnedGroupsDAO();\n }", "private function retrieveRealtyObjectUids() {\n\t\t$uids = tx_oelib_db::selectColumnForMultiple(\n\t\t\t'uid', REALTY_TABLE_OBJECTS,\n\t\t\t'1=1' . tx_oelib_db::enableFields('tx_realty_objects', 1) .\n\t\t\t\t$this->additionalWhereClause\n\t\t);\n\n\t\treturn implode(',', $uids);\n\t}", "public function list_owner()\n {\n $query = User::select(DB::raw(\"CONCAT(name,' ',lastname) AS owner\"), 'id')->whereHas(\n 'roles', function($q){\n $q->where('name','=', 'owner');\n }\n )->pluck('owner', 'id')->all();\n\n return ['' => trans('app.select_owner')] + $query;\n }", "protected function getOwner(): \\Countable {\n return $this->_owner;\n }", "public function getOwns();", "public function ownedBy($owner, string $name);", "public function setOwnedObjects(?array $value): void {\n $this->getBackingStore()->set('ownedObjects', $value);\n }", "public function getOwnersList(){\n return $this->_get(6);\n }", "public function listOwnerProp(string $username, bool $includeNLA = true): ?array\n {\n $body = '<Pull_ListOwnerProp_RQ>';\n $body .= $this->getAuthenticationXml();\n $body .= '<Username>' . $username . '</Username>';\n $body .= '<IncludeNLA>' . ($includeNLA ? 1 : 0) . '</IncludeNLA>';\n $body .= '</Pull_ListOwnerProp_RQ>';\n\n $response = $this->sendRequest($body);\n $result = array();\n if ($response->successful() && $this->isRuSuccessful()) {\n $XMLObject = new \\SimpleXMLElement($response->body());\n $collection = $XMLObject->Properties->Property;\n foreach ($collection as $item) {\n $result[] = $this->xmlToArray($item, false);\n }\n }\n\n $this->result = $result;\n return $result;\n }", "function listObjects()\n {\n return $this->_storage->listObjects();\n }", "public function objects()\n\t{\n\t\treturn $this->morphedByMany('App\\Models\\Object', 'contained', 'contains');\n\t}", "public static function getObjects() {\n return self::$myObjects;\n }", "abstract function getOwned();", "public function getOwners()\n {\n return $this->makeRequest('leads/list/owners');\n }", "public function getObjects(): ?array\n {\n return $this->objects;\n }", "public function isUserOwned()\n {\n return $this->isBasicLevelOwned();\n }", "function listUsers($perm_level = null)\n {\n $perm = &$this->getPermission();\n // Always return the share's owner!!\n $results = array_keys($perm->getUserPermissions($perm_level));\n array_push($results, $this->get('owner'));\n return $results;\n }", "public function getOwner()\n {\n if (!$this->hasOwner()) {\n return false;\n }\n return $this->_getController()->getUser($this->getOwnerId());\n }", "public function getOwner()\n {\n if (array_key_exists(\"owner\", $this->_propDict)) {\n return $this->_propDict[\"owner\"];\n } else {\n return null;\n }\n }", "public function getCreatedObjects(): ?array {\n $val = $this->getBackingStore()->get('createdObjects');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'createdObjects'\");\n }", "public function get_hubspot_owners() {\r\n\t\tif ( ! $this->initialize_api() || rgget( 'subview' ) !== $this->_slug || rgget( 'fid' ) === '' ) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tglobal $_owner_choices;\r\n\r\n\t\tif ( ! $_owner_choices ) {\r\n\r\n\t\t\t$owners = $this->api->get_owners();\r\n\r\n\t\t\tif ( is_wp_error( $owners ) ) {\r\n\t\t\t\treturn array(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'label' => esc_html__( 'Error retrieving HubSpot owners', 'gravityformshubspot' ),\r\n\t\t\t\t\t\t'value' => '',\r\n\t\t\t\t\t),\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\t$_owner_choices = array();\r\n\t\t\tforeach ( $owners as $owner ) {\r\n\t\t\t\tif ( ! empty( $owner['firstName'] ) && ! empty( $owner['lastName'] ) ) {\r\n\t\t\t\t\t$owner_label = \"{$owner['firstName']} {$owner['lastName']}\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$owner_label = $owner['email'];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$_owner_choices[] = array(\r\n\t\t\t\t\t'label' => $owner_label,\r\n\t\t\t\t\t'value' => $owner['ownerId'],\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $_owner_choices;\r\n\t}", "function getObjects()\n {\n return $this->_storage->getObjects();\n }", "public function ownedFrom($ownedFrom)\n {\n return $this->setProperty('ownedFrom', $ownedFrom);\n }", "public function testFindOwned()\n {\n /** @var VersionedOwnershipTest\\Subclass $subclass1 */\n $subclass1 = $this->objFromFixture(VersionedOwnershipTest\\Subclass::class, 'subclass1_published');\n $this->assertListEquals(\n [\n ['Title' => 'Related 1'],\n ['Title' => 'Attachment 1'],\n ['Title' => 'Attachment 2'],\n ['Title' => 'Attachment 5'],\n ['Title' => 'Related Many 1'],\n ['Title' => 'Related Many 2'],\n ['Title' => 'Related Many 3'],\n ],\n $subclass1->findOwned()\n );\n\n // Non-recursive search\n $this->assertListEquals(\n [\n ['Title' => 'Related 1'],\n ['Title' => 'Related Many 1'],\n ['Title' => 'Related Many 2'],\n ['Title' => 'Related Many 3'],\n ],\n $subclass1->findOwned(false)\n );\n\n // Search for unversioned parent\n /** @var VersionedOwnershipTest\\UnversionedOwner $unversioned */\n $unversioned = $this->objFromFixture(VersionedOwnershipTest\\UnversionedOwner::class, 'unversioned1');\n $this->assertListEquals(\n [\n ['Title' => 'Book 1'],\n ['Title' => 'Book 2'],\n ['Title' => 'Book 3'],\n ],\n $unversioned->findOwned()\n );\n\n /** @var VersionedOwnershipTest\\Subclass $subclass2 */\n $subclass2 = $this->objFromFixture(VersionedOwnershipTest\\Subclass::class, 'subclass2_published');\n $this->assertListEquals(\n [\n ['Title' => 'Related 2'],\n ['Title' => 'Attachment 3'],\n ['Title' => 'Attachment 4'],\n ['Title' => 'Attachment 5'],\n ['Title' => 'Related Many 4'],\n ],\n $subclass2->findOwned()\n );\n\n // Non-recursive search\n $this->assertListEquals(\n [\n ['Title' => 'Related 2'],\n ['Title' => 'Related Many 4'],\n ],\n $subclass2->findOwned(false)\n );\n\n /** @var VersionedOwnershipTest\\Related $related1 */\n $related1 = $this->objFromFixture(VersionedOwnershipTest\\Related::class, 'related1');\n $this->assertListEquals(\n [\n ['Title' => 'Attachment 1'],\n ['Title' => 'Attachment 2'],\n ['Title' => 'Attachment 5'],\n ],\n $related1->findOwned()\n );\n\n /** @var VersionedOwnershipTest\\Related $related2 */\n $related2 = $this->objFromFixture(VersionedOwnershipTest\\Related::class, 'related2_published');\n $this->assertListEquals(\n [\n ['Title' => 'Attachment 3'],\n ['Title' => 'Attachment 4'],\n ['Title' => 'Attachment 5'],\n ],\n $related2->findOwned()\n );\n }", "function bbp_get_user_object_ids($args = array())\n{\n}", "public function findResourcesOwnedByAccount($filters = array())\n {\n return $this->listResources($filters, 'owned_by');\n }" ]
[ "0.5761486", "0.5745838", "0.5296318", "0.52690923", "0.51926863", "0.51647806", "0.51114976", "0.50825477", "0.50399643", "0.49847546", "0.49338394", "0.4931638", "0.48814595", "0.48488873", "0.4848462", "0.48354688", "0.48213398", "0.4820664", "0.47535115", "0.4716866", "0.46976808", "0.46797433", "0.46541455", "0.4644883", "0.46413532", "0.46344873", "0.46284312", "0.4585289", "0.45712304", "0.45694223" ]
0.6852371
0
Gets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two may be specified together; for example: DisablePasswordExpiration, DisableStrongPassword. For more information on the default password policies, see Azure AD pasword policies. Supports $filter (ne, not, and eq on null values).
public function getPasswordPolicies(): ?string { $val = $this->getBackingStore()->get('passwordPolicies'); if (is_null($val) || is_string($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'passwordPolicies'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPolicies()\n {\n return $this->policies;\n }", "public function policies()\n {\n return $this->policies;\n }", "public function policies()\n {\n return $this->policies;\n }", "public function getPolicies()\r\n {\r\n return $this->policies;\r\n }", "public function getPolicies()\n {\n return $this->helper->getPolicies();\n }", "public static function policies()\n {\n /** @var \\Illuminate\\Auth\\Access\\Gate $instance */\n return $instance->policies();\n }", "public function getEndpointPolicies()\n {\n return $this->endpoint_policies;\n }", "public function getCustomPolicies()\n {\n return $this->customPolicies;\n }", "public function rules(UserPasswordPolicy $userPasswordPolicy)\n {\n return [\n 'password' => ['required', 'min:6', 'confirmed'],\n 'password_confirmation' => ['required', 'min:6'],\n 'current_password' => ['required', function($attribute, $value, $fail) use ($userPasswordPolicy) {\n if (! $userPasswordPolicy->isValid($this->user(), $this->get('current_password'))) {\n $fail('The current password is invalid');\n }\n }]\n ];\n }", "public function getDisabledPlans()\n {\n if (array_key_exists(\"disabledPlans\", $this->_propDict)) {\n return $this->_propDict[\"disabledPlans\"];\n } else {\n return null;\n }\n }", "public function getPolicies();", "protected function _getPasswordRules() {\n return [\n 'password' => 'required',\n 'new_password' => 'required|min:6|max:60',\n ];\n }", "public function setPermissionsManagePasswordPolicies($permissionsManagePasswordPolicies)\n {\n $this->permissionsManagePasswordPolicies = $permissionsManagePasswordPolicies;\n return $this;\n }", "public function getPasswordRotationEnabled()\n {\n if (array_key_exists(\"passwordRotationEnabled\", $this->_propDict)) {\n return $this->_propDict[\"passwordRotationEnabled\"];\n } else {\n return null;\n }\n }", "public function getPasswordConfirmacion()\n {\n return $this->passwordConfirmacion;\n }", "public function passwordsDataProvider() {\n return [\n // Passing conditions.\n [\n 2,\n 'PasSword',\n TRUE,\n ],\n [\n 3,\n 'Password',\n TRUE,\n ],\n [\n 4,\n 'PasSword',\n TRUE,\n ],\n [\n 5,\n 'PasSsSworD',\n TRUE,\n ],\n // Failing conditions.\n [\n 2,\n 'Password',\n FALSE,\n ],\n [\n 3,\n 'Passsword',\n FALSE,\n ],\n [\n 4,\n 'paSSWOOOORD',\n FALSE,\n ],\n [\n 5,\n 'Password1233333',\n FALSE,\n ],\n ];\n }", "public function getAllPolicies();", "public function policies(): array\n {\n return [];\n }", "protected function getSecurity_Validator_UserPasswordService()\n {\n return $this->services['security.validator.user_password'] = new \\Symfony\\Component\\Security\\Core\\Validator\\Constraints\\UserPasswordValidator(${($_ = isset($this->services['security.token_storage']) ? $this->services['security.token_storage'] : $this->get('security.token_storage')) && false ?: '_'}, ${($_ = isset($this->services['security.encoder_factory']) ? $this->services['security.encoder_factory'] : $this->get('security.encoder_factory')) && false ?: '_'});\n }", "public static function getPolicyRules ()\n\t{\n\t\treturn Registry::get ('MVC_POLICY');\n\t}", "private function getPasswordSecret()\n {\n if (empty($this->_secret) === true) {\n $this->_secret = env('USER_PASSWORD_SECRET');\n }\n\n return $this->_secret;\n }", "public function rules()\n {\n return config('autopulse.password_validation_logic');\n }", "public function getPassword()\n {\n $authData = $this->getAuthData();\n return isset($authData['password']) ? $authData['password'] : null;\n }", "public function getEgressPolicies()\n {\n return $this->egress_policies;\n }", "public function getPasswordLifetimeAttribute()\n {\n return $this->roles->filter(function ($role) {\n return $role->hasPasswordLifetime();\n })->pluck('password_lifetime')\n ->min();\n }", "public function getPassword()\n {\n if (!isset($this->_password)) {\n throw new \\LogicException('Missing property _password');\n }\n return $this->_password;\n }", "public function policies($policies=true)\n {\n $clone = $this->makeClone(true);\n if ($policies === true) {\n $clone->useRoles = true;\n } elseif ($policies === false) {\n $clone->useRoles = false;\n } elseif (is_array($policies)) {\n $clone->policies = $policies;\n $clone->useRoles = false;\n }\n return $clone;\n }", "public function getFeatureRolloutPolicies(): ?array {\n $val = $this->getBackingStore()->get('featureRolloutPolicies');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, FeatureRolloutPolicy::class);\n /** @var array<FeatureRolloutPolicy>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'featureRolloutPolicies'\");\n }", "public function getPassword()\n\t{\n\t\tif (!$this->hasValidated || !$this->isValid) {\n\t\t\treturn NULL;\n\t\t}\n\t\treturn $this->data[self::ELEMENT_NAME_PASSWORD];\n\t}", "public function getPassword()\n {\n return $this->get('password');\n }" ]
[ "0.57313293", "0.57003105", "0.57003105", "0.56840444", "0.5496802", "0.5322481", "0.52812153", "0.52745926", "0.5176543", "0.5049752", "0.50018096", "0.49719876", "0.4953359", "0.49318853", "0.49187112", "0.4907664", "0.4882972", "0.48296532", "0.48180336", "0.477896", "0.47544238", "0.47329086", "0.471463", "0.47094372", "0.4691613", "0.46682084", "0.46497667", "0.46325257", "0.45881262", "0.45667255" ]
0.58032143
0
Gets the passwordProfile property value. Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. Supports $filter (eq, ne, not, in, and eq on null values).
public function getPasswordProfile(): ?PasswordProfile { $val = $this->getBackingStore()->get('passwordProfile'); if (is_null($val) || $val instanceof PasswordProfile) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'passwordProfile'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPassword()\n {\n return $this->get('password');\n }", "public function getPassword()\n {\n $authData = $this->getAuthData();\n return isset($authData['password']) ? $authData['password'] : null;\n }", "public function getAuthPassword()\n {\n return $this->passwordUser;\n }", "function getPassword()\r\n {\r\n // TODO: implement the function Symfony\\Component\\Security\\Core\\User\\UserInterface::getPassword\r\n return $this->password;\r\n }", "public function getUserProfile() {\r\n\t\treturn $this->userProfile;\r\n\t}", "public function getUserPassword() {\n return($this->userPassword);\n }", "public function getPassword() {\n\t\treturn $this -> data['password'];\n\t}", "public function getPassword()\n {\n $query = \"SELECT password FROM users WHERE id = {$this->id}\";\n $res = mysql_query($query)or die(Helper::SQLErrorFormat(mysql_error(), $query, __METHOD__, __FILE__, __LINE__));\n $row = mysql_fetch_assoc($res); \n\n return $row['password'];\n }", "public function getUserProfile()\n {\n $user = $this->security->getUser();\n return $user;\n }", "public function getPassword() {\n\t\t\n\t\treturn $this->password;\n\t}", "public function getUserPassword(){\n\t\treturn $this->userPassword;\n\t}", "public function getUserPassword()\n\t{\n\t\treturn $this->user_password;\n\t}", "public function getPassword() {\n return $this->password;\n }", "public function getPassword() {\n return $this->password;\n }", "public function getPassword() {\n return $this->password;\n }", "public function getPassword() {\n return $this->password;\n }", "public function getAuthPassword()\n {\n $getPassword = 'get' . $this->getPasswordField();\n return $this->$getPassword();\n }", "public function getPassword() {\n\t\treturn $this->password;\n\t}", "public function getPassword() {\n\t\treturn $this->password;\n\t}", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }", "public function getPassword()\n {\n return $this->password;\n }" ]
[ "0.6215507", "0.6214896", "0.61712515", "0.60576487", "0.6039443", "0.60075814", "0.6003897", "0.5958799", "0.5934312", "0.58936703", "0.58931017", "0.5891965", "0.5874918", "0.5874918", "0.5874918", "0.5874918", "0.5871892", "0.584808", "0.584808", "0.584773", "0.584773", "0.584773", "0.584773", "0.584773", "0.584773", "0.584773", "0.584773", "0.584773", "0.584773", "0.584773" ]
0.6405808
0
Gets the pastProjects property value. A list for the user to enumerate their past projects. Returned only on $select.
public function getPastProjects(): ?array { $val = $this->getBackingStore()->get('pastProjects'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, 'string'); /** @var array<string>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'pastProjects'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function projectEventsPast($projectId)\n {\n $data = $this->get('/projects/' . $projectId . '/calendar_events/past.json');\n\n return $data;\n }", "public function showPastProjectsAction(Request $request, Application $app)\n {\n $projectStatus = 'projectStatus';\n $fieldName = 'past';\n\n $projects = Project::searchByColumn($projectStatus, $fieldName);\n\n $argsArray = [\n 'projects' => $projects,\n 'status' => $fieldName\n ];\n\n $templateName = 'projects';\n return $app['twig']->render($templateName . '.html.twig', $argsArray);\n }", "function getMilestones($past=false) {\n\t\treturn $this->_basecamp->getMilestones('projects',$this->id,$past);\n\t}", "public function get_expired_projects(){\n\t\t\n\t\t// Get projects\n\t\treturn $this->db->query(\"SELECT p.*, u.email\n\t\t\t\t\t\t\t\tFROM projects AS p\n\t\t\t\t\t\t\t\tINNER JOIN users AS u ON p.iduser = u.iduser\n\t\t\t\t\t\t\t\tWHERE DATE_ADD(p.date_created, INTERVAL p.period DAY) <= NOW()\n\t\t\t\t\t\t\t\tAND p.status = 'open'\n\t\t\t\t\t\t\t\t\")->result(); // \n\t}", "function getRecentProjectsIds($selectedprojectid=0)\n {\n /* @var $securityManager atkSecurityManager */\n $securityManager = &atkGetSecurityManager();\n\n /* @var $query atkQuery */\n /* @var $db atkDb */\n $db = &atkGetDb();\n \n $subquery = $db->createQuery();\n $subquery->addTable(\"hoursbase\");\n $subquery->addField(\"phaseid\");\n $subquery->addCondition(\"hoursbase.userid='\".$this->m_userid.\"'\");\n $subquery->addOrderBy(\"id DESC\");\n \n $query = $db->createQuery();\n\n $query->addTable(\"phase\");\n\n $query->addField(\"project.id\");\n $query->addField(\"project.name\");\n $query->addField(\"project.abbreviation\");\n \n $query->addJoin(\"project\",\"\",\"phase.projectid=project.id\",false);\n $query->addJoin(\"(\".$subquery->buildSelect().\")\",\"hours\",\"phase.id=hours.phaseid\",false);\n $query->addCondition(\"project.status='active'\");\n\n if (!$securityManager->allowed(\"timereg.hours\", \"any_project\"))\n {\n $query->addJoin(\"project_person\",\"\",\"project_person.projectid = project.id\",true);\n $query->addCondition(\"(project_person.personid = \".$this->m_userid.\" OR project.timereg_limit = \".PRJ_TIMEREG_ALL_USERS.\")\");\n }\n \n $query->setLimit(0,atkconfig::get(\"project\",\"numberofrecentprojects\"));\n $arr = $db->getrows($query->buildSelect(true));\n\n //we add the selected project id on top.\n if(!is_numeric($selectedprojectid))\n {\n $values = decodeKeyValuePair($selectedprojectid);\n $value = $values[$this->m_destInstance->m_table.\".\".$this->m_destInstance->m_primaryKey[0]];\n if(is_numeric($value) && $value!=0)\n $selectedprojectid = $value;\n }\n $this->_addProject($selectedprojectid,$arr);\n return $arr;\n }", "public function projects()\n {\n return $this->unorderedProjects()->orderBy('open_date')->get();\n }", "public function getProjectsForDropdown() {\n $projects = Project::forCompany()->get();\n return $projects;\n }", "public function setPastProjects(?array $value): void {\n $this->getBackingStore()->set('pastProjects', $value);\n }", "function CPT_get_pending_project_list() {\n\t$t_project_ids = current_user_get_accessible_projects();\n\tproject_cache_array_rows( $t_project_ids );\n\t$s = '';\n\tforeach( $t_project_ids as $t_id ){\n\t\tif( CPT_access_has_level('manage_project', $t_id)\n\t\t\t&& ( null === @plugin_config_get( 'project', null, null, ALL_USERS, $t_id ) ) )\n\t\t{\n\t\t\t$s.= '<option value=\"' . $t_id . '\"';\n\t\t\t$s.= '>' . string_attribute( project_get_field( $t_id, 'name' ) ) . '</option>' . \"\\n\";\n\t\t}\n\t\t$s.= CPT_get_subproject_option_list( $t_id, Array() );\n\t}\n\treturn $s;\n}", "public function getProjects() {\n $accountId = DrupalGatherContentClient::getAccountId();\n /** @var \\Cheppers\\GatherContent\\DataTypes\\Project[] $projects */\n $projects = [];\n if ($accountId) {\n $projects = $this->client->getActiveProjects($accountId);\n }\n\n $formattedProjects = [];\n foreach ($projects['data'] as $project) {\n $formattedProjects[$project->id] = $project->name;\n }\n\n return $formattedProjects;\n }", "public function getProjects() {\n\t\treturn $this->callMantis('mc_projects_get_user_accessible');\n\t}", "private function _getProjectsForMovingToBackoffice() {\n return DB::connection('mysql-ui')->table((new UIProject)->getTable().' AS t1')\n ->select([\n 't1.*',\n ])\n /* ->where('t1.current_budget', '=', 0)\n ->orWhere('t1.current_daily_budget', '=', 0) */\n ->get();\n }", "public function getCountProjects(){\n\n return $this->_projectsCount;\n }", "public function setPastOccurrences($pastOccurrences)\n {\n $this->pastOccurrences = $pastOccurrences;\n return $this;\n }", "public function getInvolvedProjects()\n {\n return array();\n }", "public function getProjects()\n {\n if (null === $this->projects) {\n $this->projects = [];\n foreach ($this->json->projects as $projectJson) {\n $this->projects[] = new Project($projectJson);\n }\n }\n return $this->projects;\n }", "public function getProjects() {\n $projects = $this->apiGet($this->endpoints[\"projects\"]);\n return $projects;\n }", "public function getProjects() {\n\n\t\t\t// Request the projects\n\t\t\t$cmd = \"curl -H \\\"X-TrackerToken: {$this->token}\\\" \"\n\t\t\t\t . \"-X GET \"\n\t\t\t\t . \"https://www.pivotaltracker.com/services/v3/projects\";\n\t\t\t$xml = shell_exec($cmd);\n\t\t\t\n\t\t\t// Return an object\n\t\t\t$projects = new SimpleXMLElement($xml);\n\t\t\treturn $projects;\n\t\n\t\t}", "function GetProjects(){\n\t\tglobal $trans;\n\t\t$sql = \"\n\t\t\t\tSELECT DISTINCT\n\t\t\t\t P.Id,\n\t\t\t\t P.Name AS Description\n\t\t\t\tFROM\n\t\t\t\t Project P INNER JOIN ProjectParticipantsGroup PPG ON P.Id = PPG.Project_Id\n\t\t\t\tWHERE \n\t\t\t\t\tPPG.User_Id = \".$_SESSION['User']['Id'].\" \n\t\t\t\tORDER BY\n\t\t\t\t Description ASC\t\n\t\t\t \";\n\t\t$result = mysql_query($sql);\n\t\t$list_html = \"<li style=\\\"cursor:pointer;\\\" id=\\\"divProject-1\\\" value=\\\"All Conversations\\\" onclick=\\\"displaySelectedItem('div_project', 'spn_project', '\".$trans[\"message_center_select_project\"].\"');filterByProject(this)\\\">All Projects</li>\\n\";\n\t\twhile($row = mysql_fetch_assoc($result)){\n\t\t\t$list_html .= \"<li style=\\\"cursor:pointer;\\\" id=\\\"divProject_\".$row[\"Id\"].\"\\\" value=\\\"\".$row[\"Description\"].\"\\\" onclick=\\\"displaySelectedItem('div_project', 'spn_project', '\".$row[\"Description\"].\"');filterByProject(this)\\\">\".$row[\"Description\"].\"</li>\\n\";\n\t\t}\n\t\tmysql_free_result( $result );\n\t\treturn $list_html;\n\t}", "public function getFullProjectList(){\n\t\t$str = \"SELECT * FROM Projects ORDER BY year DESC\";\n\n\t\t$query = $this->db->query($str);\n\t\t\n\t\tif(!$query){\n\t\t\treturn array();\n\t\t}\n\t\telse{\n\t\t\tif($query->num_rows() > 0){\n\t\t\t//print_r($query->result());\n\t\t\t\tforeach($query->result() as $row){\n\t\t\t\t\t$projectList[] = $row;\n\t\t\t\t}\n\t\t\t} else {return array();}\n\t\t}\n\t\t\n\t\tif(!$projectList) {\n\t\t\t// Create a Default Project\n\t\t\t$defaultProject = new stdClass();\n\t\t\t$defaultProject->project_id = \"No Projects Found\";\n\t\t\t$defaultProject->user_id = \"Default Project User\";\n\t\t\t// And return it\n\t\t\treturn array($defaultProject);\n\t\t}\n\t\treturn $projectList;\n\t}", "public function fetchProjects()\r\n\t{\r\n\t\t$select = $this->select()\r\n\t\t\t->from(\r\n\t\t\t\tarray(\"projects\" => $this->_name),\r\n\t\t\t\tarray(\"id\", \"project_title\", \"project_slug\", \"project_thumb\")\r\n\t\t\t)\r\n\t\t\t->where('is_trashed = ?', 0)\r\n\t\t\t->where('is_hidden = ?', 0)\r\n\t\t\t->order('priority ASC');\r\n\r\n\t\t// request!\r\n\t\treturn $this->fetchAll($select);\r\n\t}", "public function past_events()\n {\n return Event::getPastEvents();\n }", "public function ListProjects()\n {\n return $this->callMethod(__FUNCTION__);\n }", "public function getProjects() : array\r\n {\r\n return $this->mapProjects($this->executeQuery(\"SELECT * FROM projects\"));\r\n }", "public function listProjects(){\n\t\t$project = new Application_Model_DbTable_Project();\n\n\t\t$select = $project->select()->setIntegrityCheck(false);\n\t\t$select\t->from(array('p' => 'project'),array('id','name'));\n\t\treturn $project->fetchAll($select);\n\t}", "public function get_system_projects() {\r\n\t\t$list = array(\r\n\t\t\t// Upfront parent is hidden.\r\n\t\t\tWPMUDEV_Dashboard::$site->id_upfront,\r\n\t\t);\r\n\r\n\t\treturn $list;\r\n\t}", "public static function getUpcomingProjects($orgName){\n\n\t\t$orgID = DB::table('organizations')\n\t\t\t->where('organizations.OrgName', '=', $orgName)\n\t\t\t->only('OrganizationID');\n\n\t\t$query = DB::table('projects')\n\t\t ->left_join('orgproject', 'projects.ProjectID', '=', 'orgproject.ProjectID')\n\t\t ->left_join('organizations', 'orgproject.OrganizationID', '=', 'organizations.OrganizationID')\n\t\t\t->where('organizations.OrganizationID', '=', $orgID)\n\t\t ->get(array('projects.EndTime', 'projects.ProjectID', 'orgproject.OrganizationID', 'projects.ProjectName as ProjectName', 'projects.StartTime','projects.Spots', 'organizations.OrgName as OrgName', 'projects.Address', 'projects.Requirements', 'projects.Headline', 'projects.Details'));\n\t\treturn $query;\n\t}", "public static function get_latest_projects(){\n\t\t$db = new \\PDO(MY_DSN, MY_USER, MY_PASS);\n\t\t$db->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\n\t\t$statement = $db->prepare(\"\n\t\t\tSELECT * \n\t\t\tFROM projects\n\t\t\tWHERE proj_id > \n\t\t\t((SELECT COUNT(*) FROM projects)-5)\n\t\t\tORDER BY `proj_id` DESC;\n\t\t\t\");\n\t\t\n\t\ttry {\n\t\t\tif($statement->execute()){\t\t\n\t\t\t\t$rows = $statement->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\treturn $rows;\n\t\t\t}\n\t\t}\n\t\tcatch(\\PDOException $e){\n\t\techo '<div class=\"alert alert-error\"><p>Something is wrong. We have dispatched a pack of trained monkeys to fix the problem. If you see them, show them this: '.$e->getMessage().'</div>';\n\t\t$msg = $db_error.$e->getMessage();\n\t\tLog::general($msg);\n\t}\n\n\n\t}", "public function listProjects() {\n $url = self::URL . \"/\" . self::VERSION . \"/projects.xml\";\n $method = \"GET\";\n $xml = $this->_sendRequest($url, $method);\n $projects = array();\n foreach ($xml->project as $project) {\n $projects[] = BugHerd_Project::fromXml($project);\n }\n return $projects;\n }", "public function active($maximum = null)\n {\n $services = $this->getServiceLocator();\n\n $config = $services->get('config');\n if ($maximum === null) {\n $maximum = isset($config['frontpage']['projects']['maximum'])\n ? $config['frontpage']['projects']['maximum']\n : 5;\n }\n\n $minimum = isset($config['frontpage']['projects']['minimum'])\n ? $config['frontpage']['projects']['minimum']\n : 1;\n\n $wait = isset($config['frontpage']['projects']['wait'])\n ? $config['frontpage']['projects']['wait']\n : 10;\n\n $pad = ($config['frontpage']['projects']['pad']) ?: false;\n\n // if the project count is less than the requested count, return all ids\n // this value may be an empty array\n $p4Admin = $services->get('p4_admin');\n $allProjects = Project::fetchAll(array(), $p4Admin);\n\n $totalProjects = $allProjects->count();\n if ($totalProjects <= $minimum) {\n return $allProjects->keys();\n }\n\n // build fetch query.\n $options = array(\n Activity::FETCH_MAXIMUM => $maximum,\n Activity::FETCH_AFTER => null,\n Activity::FETCH_BY_TYPE => 'change'\n );\n\n // fetch activity and prepare data for output\n $projectIdList = array();\n $records = Activity::fetchAll($options, $p4Admin);\n\n if ($records->count() == 0) {\n return $allProjects->keys();\n }\n\n // for removing projects we don't have access to\n $ipProtects = $services->get('ip_protects');\n\n // scenarios at this point\n // many recently active projects -- best case\n // few recently active projects\n // a few recently active projects, but more projects that are not active; worst case scenario\n\n // count the amount of times we loop with no additional projects found; compare to wait value to decide when\n // to give up.\n $idleLoopCount = 0;\n while (count($projectIdList) < $maximum && $records->count() > 0) {\n\n foreach ($records as $event) {\n // filter out events related to files user doesn't have access to\n $depotFile = $event->get('depotFile');\n if ($depotFile && !$ipProtects->filterPaths($depotFile, Protections::MODE_READ)) {\n continue;\n }\n $projects = array_keys($event->get('projects'));\n foreach ($projects as $project) {\n if (!in_array($project, $projectIdList)) {\n $idleLoopCount = 0;\n $projectIdList[] = $project;\n }\n }\n }\n\n // if we've hit our limit, stop searching\n $idleLoopCount++;\n if (count($projectIdList) >= $minimum && $idleLoopCount >= $wait) {\n break;\n }\n\n $options[Activity::FETCH_AFTER] = $event->get('id');\n $records = Activity::fetchAll($options, $p4Admin);\n\n // remove activity related to restricted/forbidden changes\n $records = $services->get('changes_filter')->filter($records, 'change');\n }\n\n // if there are less projects than the minimum requested, merge in the project list to pad it out\n if ($pad && count($projectIdList) < $maximum && $totalProjects > count($projectIdList)) {\n $projectIds = array_merge($projectIdList, $allProjects->keys());\n $projectIds = array_unique($projectIds);\n $projectIds = array_slice($projectIds, 0, $maximum);\n\n return $projectIds;\n }\n\n return array_slice($projectIdList, 0, $maximum);\n }" ]
[ "0.6320408", "0.62311375", "0.59432054", "0.5898114", "0.5896258", "0.58876634", "0.5880016", "0.5875936", "0.56906134", "0.56204265", "0.5523821", "0.5441789", "0.5431833", "0.54025954", "0.5391796", "0.53758246", "0.5324333", "0.5304108", "0.52927697", "0.5288736", "0.52586776", "0.52573204", "0.52470285", "0.52461696", "0.5237672", "0.522895", "0.5210565", "0.5192286", "0.5180912", "0.5163402" ]
0.65775734
0
Gets the pendingAccessReviewInstances property value. Navigation property to get list of access reviews pending approval by reviewer.
public function getPendingAccessReviewInstances(): ?array { $val = $this->getBackingStore()->get('pendingAccessReviewInstances'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, AccessReviewInstance::class); /** @var array<AccessReviewInstance>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'pendingAccessReviewInstances'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function countPendingApprovals()\n {\n $searchModel = new MembershipSearch();\n $searchModel->space_id = $this->space->id;\n $searchModel->status = Membership::STATUS_APPLICANT;\n return $searchModel->search([])->getCount();\n }", "public static function pending()\n\t{\n\t\treturn Approval::where('approved', '=', 'PENDING')\n\t\t\t\t\t\t->where('approver_id', '=', Auth::user()->id)\n\t\t\t\t\t\t->get();\n\n\t}", "public function approvalStatus()\n {\n $approval_statuses = ApprovelStatus::get();\n\n return ApprovelStatusResource::collection($approval_statuses);\n }", "public function getApprovalStatusAllowableValues()\n {\n return [\n self::APPROVAL_STATUS__NEW,\n self::APPROVAL_STATUS_CANCELED,\n self::APPROVAL_STATUS_SENT_TO_APPROVAL,\n self::APPROVAL_STATUS_RECEIVED_BY_APPROVAL,\n self::APPROVAL_STATUS_IN_PROGRESS_APPROVAL,\n self::APPROVAL_STATUS_REJECTED_IN_APPROVAL,\n self::APPROVAL_STATUS_APPROVED_IN_APPROVAL,\n self::APPROVAL_STATUS_ACTIVE_WORKFLOW_APPROVAL,\n ];\n }", "public function getApproved()\n {\n return $this->approved;\n }", "public function getApproved()\n {\n return $this->approved;\n }", "public function getApproved()\n {\n return $this->approved;\n }", "public function setPendingAccessReviewInstances(?array $value): void {\n $this->getBackingStore()->set('pendingAccessReviewInstances', $value);\n }", "public function getAllowAccessIdentity()\n {\n if (null === $this->allowAccessIdentity) {\n return [];\n }\n return $this->allowAccessIdentity;\n }", "public function getAccess()\n {\n return $this->_access;\n }", "public function getAccesses()\n {\n return $this->accesses;\n }", "public function getApprovedApprovals(){\n return 0;\n $service = Yii::$app->params['ServiceName']['RequeststoApprove'];\n $filter = [\n 'Sender_ID' => Yii::$app->user->identity->getId(),\n 'Status' => 'Approved'\n ];\n $result = Yii::$app->navhelper->getData($service,$filter);\n\n //Yii::$app->recruitment->printrr($result);\n if(is_object($result) || is_string($result)){//RETURNS AN EMPTY object if the filter result to false\n return 0;\n }\n return count($result);\n }", "function getTotalApproved() {\n\t\treturn $this->getOption(self::STAT_TOTAL_APPROVED, 0);\n\t}", "public function getUserApprovalRequests()\n {\n return Leave::where('approval_id', auth()->id())->orderBy('id', 'desc')->paginate(20);\n }", "public function getRemainigVacancies() {\r\n return $this->remainigVacancies;\r\n }", "public function getInitiallyApproved();", "function GetPossibleAccess()\n\t{\t$access = array();\n\t\tforeach ($this->user->accessAreas as $area=>$flag)\n\t\t{\t$access[$area] = $area;\n\t\t}\n\t\treturn $access;\n\t}", "public function getAcceptedPayments()\n {\n return $this->acceptedPayments;\n }", "public function getViewApprovalRequests()\n {\n return Leave::where(['approval_id' => auth()->id(), 'status' => 1])->orderBy('id', 'desc')->paginate(20);\n }", "public function getScopesApproved()\n {\n $scopesApproved = [];\n\n foreach ($this->getModuleResults()->toArray() as $moduleResult) {\n $scopesApproved += $moduleResult->scopesApproved ?? [];\n }\n \n return $scopesApproved + $this->defaultScopes;\n }", "public function getApproval() {\n return $this->_getField(\"approval\", 0, 2);\n }", "public function getAttemptsAllowed()\n\t\t{\n\t\t\treturn $this->attemptsAllowed;\n\t\t}", "public function getActiveAccessReq() {\n if( !$this->isGranted('ROLE_VACREQ_ADMIN') ) {\n return null;\n }\n $userSecUtil = $this->container->get('user_security_utility');\n $accessreqs = $userSecUtil->getUserAccessRequestsByStatus($this->getParameter('vacreq.sitename'),AccessRequest::STATUS_ACTIVE);\n return $accessreqs;\n }", "public function getArsprestrictaccess()\n {\n return $this->arsprestrictaccess;\n }", "public function isApproved() {\n return $this->_is_approved;\n \n }", "public function getAccessDiff()\n {\n return $this->access_diff;\n }", "public function getReviews() {\n if (!$this->reviews) {\n $this->reviews =\n CRUDApiMisc::getAllWherePropertyEquals(new PaperReviewApi(), 'paper_id', $this->getId())\n ->getResults();\n }\n\n return $this->reviews;\n }", "public function isApproved()\n {\n return $this->cvIsApproved;\n }", "public function getApprovalStatusAttribute()\n\t{\n\t\tif ( $this->isPendingApproval() )\n\t\t\treturn 'pending';\n\n\t\treturn $this->isApproved() ? 'approved' : 'rejected';\n\t}", "public function getAccessRestrictions()\n\t{\n\t\treturn $this->access_rules;\n\t}" ]
[ "0.5925769", "0.58246", "0.57843447", "0.55385566", "0.5511141", "0.5511141", "0.5511141", "0.53812224", "0.53160423", "0.52822345", "0.520009", "0.51739734", "0.51701814", "0.51595235", "0.5156773", "0.5110695", "0.5082088", "0.5067767", "0.50560904", "0.5040306", "0.50241405", "0.49903372", "0.49636632", "0.4947333", "0.4927583", "0.49260768", "0.48987213", "0.48888418", "0.48653084", "0.48645163" ]
0.6634605
0
Gets the preferredDataLocation property value. The preferred data location for the user. For more information, see OneDrive Online MultiGeo.
public function getPreferredDataLocation(): ?string { $val = $this->getBackingStore()->get('preferredDataLocation'); if (is_null($val) || is_string($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'preferredDataLocation'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_location()\n {\n return $this->get_default_property(self::PROPERTY_LOCATION);\n }", "public function getLocationData()\n {\n return $this->locationData;\n }", "public function getCurrentLocation() {\n\t\tif ($this->currentLocation === null) {\n\t\t\t$this->currentLocation = '';\n\t\t\t$this->currentLocation = UserOnlineLocationHandler::getInstance()->getLocation(new UserOnline(new User(null, array(\n\t\t\t\t'controller' => $this->controller,\n\t\t\t\t'objectID' => $this->locationObjectID\n\t\t\t))));\n\t\t}\n\t\t\n\t\treturn $this->currentLocation;\n\t}", "public function getLocation()\n {\n return $this->getProperty(\"Location\");\n }", "public function getGeolocation()\n {\n return $this->geolocation;\n }", "public function getLocation()\n {\n return isset($this->location) ? $this->location : null;\n }", "static function getPreferredUserCountry()\n {\n return eZPreferences::value( 'user_preferred_country' );\n }", "public function get_location()\n {\n return $this->location;\n }", "public function setPreferredDataLocation(?string $value): void {\n $this->getBackingStore()->set('preferredDataLocation', $value);\n }", "public function getAllowedDataStorageLocations()\n {\n if (array_key_exists(\"allowedDataStorageLocations\", $this->_propDict)) {\n return $this->_propDict[\"allowedDataStorageLocations\"];\n } else {\n return null;\n }\n }", "public function getOfficeLocation(): ?string {\n $val = $this->getBackingStore()->get('officeLocation');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'officeLocation'\");\n }", "public function getPreferred() {\n return $this->preferred;\n }", "public function getUsageLocation()\n {\n if (array_key_exists(\"usageLocation\", $this->_propDict)) {\n return $this->_propDict[\"usageLocation\"];\n } else {\n return null;\n }\n }", "public function getLocationHint()\n {\n return isset($this->location_hint) ? $this->location_hint : '';\n }", "public function getPreferredLanguage() {\n return $this->response['preferredLanguage'];\n }", "public function getUseLocation()\n\t{\n\t\treturn $this->use_location;\n\t}", "public function getLocation() {\n\t\treturn $this->location;\n\t}", "public function getLocation() {\n\t\treturn $this->location;\n\t}", "public function getLocation() {\n\t\treturn $this->location;\n\t}", "public function getLocation() {\n\t\treturn $this->location;\n\t}", "public function getLocation() {\n return $this->location;\n }", "public function getLocation() {\n return $this->location;\n }", "public function getLocationDefaulted()\n {\n return $this->locationDefaulted;\n }", "public function getUserGEO() {\n $geolocation_instance = new WC_Geolocation();\n // Get user IP\n $user_ip_address = $geolocation_instance->get_ip_address();\n if( $user_ip_address === '127.0.0.1'){\n return 'MA';\n }\n // Get geolocated user IP country code.\n $user_geolocation = $geolocation_instance->geolocate_ip( $user_ip_address );\n \n return $user_geolocation['country'];\n }", "public function getLocation()\n {\n return $this->location;\n }", "public function getLocation()\n {\n return $this->location;\n }", "public function getLocation()\n {\n return $this->location;\n }", "public function getLocation()\n {\n return $this->location;\n }", "public function getLocation()\n {\n return $this->location;\n }", "public function getLocation()\n {\n return $this->location;\n }" ]
[ "0.61674994", "0.60796714", "0.60043997", "0.5850553", "0.5834501", "0.58074546", "0.5756921", "0.56917727", "0.56854624", "0.5666973", "0.5648631", "0.56319046", "0.5584417", "0.55783194", "0.55724186", "0.5545696", "0.55318666", "0.55318666", "0.55318666", "0.55318666", "0.5530291", "0.5530291", "0.5528857", "0.55159026", "0.5503786", "0.5503786", "0.5503786", "0.5503786", "0.5503786", "0.5503786" ]
0.72343427
0
Gets the presence property value. The presence property
public function getPresence(): ?Presence { $val = $this->getBackingStore()->get('presence'); if (is_null($val) || $val instanceof Presence) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'presence'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPresenceMessage()\n {\n return $this->get(self::PRESENCEMESSAGE);\n }", "public function getValue()\n\t{\n\t\treturn (null !== $this->_value) ? $this->_value : false;\n\t}", "public function getPresenceMin() {\n return $this->presenceMin;\n }", "public function getStatusMessage()\n {\n if (array_key_exists(\"statusMessage\", $this->_propDict)) {\n if (is_a($this->_propDict[\"statusMessage\"], \"\\Beta\\Microsoft\\Graph\\Model\\PresenceStatusMessage\") || is_null($this->_propDict[\"statusMessage\"])) {\n return $this->_propDict[\"statusMessage\"];\n } else {\n $this->_propDict[\"statusMessage\"] = new PresenceStatusMessage($this->_propDict[\"statusMessage\"]);\n return $this->_propDict[\"statusMessage\"];\n }\n }\n return null;\n }", "public function getUserPresent() {\n return $this->_flags->userPresent;\n }", "public function getPresentable()\r\n {\r\n return $this->presentable;\r\n }", "public function hasProperty(){\n return $this->_has(1);\n }", "public function booleanValue() {\n return $this->value;\n }", "public function getStatus()\n {\n if (array_key_exists(\"status\", $this->_propDict)) {\n return $this->_propDict[\"status\"];\n } else {\n return null;\n }\n }", "public function isPresent()\n\t{\n\t\treturn $this->present;\n\t}", "public function getVisibility()\n {\n if (array_key_exists(\"visibility\", $this->_propDict)) {\n return $this->_propDict[\"visibility\"];\n } else {\n return null;\n }\n }", "public function getExplicitValue()\n {\n if (array_key_exists(\"explicitValue\", $this->_propDict)) {\n return $this->_propDict[\"explicitValue\"];\n } else {\n return null;\n }\n }", "public function getValue()\n {\n return ($this->value) ? 'true' : 'false';\n }", "public function getValue()\n {\n return $this->status;\n }", "public function get_value()\n {\n return $this->checked;\n }", "public function isActive() {\n\t\treturn in_array($this->get('presence'), array(0,2));\n\t}", "function get_status()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_STATUS);\r\n }", "public function getPropertyValue()\n {\n return $this->propertyValue;\n }", "public function getProperty(){\n\t\treturn $this->_mProperty;\n\t}", "function get_value()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_VALUE);\r\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "function get_value()\n {\n return $this->get_default_property(self :: PROPERTY_VALUE);\n }", "public function getOrNull()\n\t{\n\t\tif ($this->present) {\n\t\t\treturn $this->value;\n\t\t}\n\t\treturn null;\n\t}", "public function get()\n\t{\n\t\treturn $this->value;\n\t}", "public function getProperty()\n {\n return $this->readOneof(2);\n }", "public function value()\n {\n return $this['checked'];\n }", "public function getValue()\n {\n return !empty($this->getTagProperty('checked'));\n }", "public function getBoolValue() {}", "public function getFull()\n {\n $value = $this->get(self::FULL);\n return $value === null ? (boolean)$value : $value;\n }" ]
[ "0.6447358", "0.6357056", "0.62396324", "0.6147889", "0.6069158", "0.59889793", "0.59803855", "0.5951303", "0.59013593", "0.5844523", "0.58335334", "0.5809879", "0.5802279", "0.5801844", "0.57501864", "0.5744359", "0.5730609", "0.57284975", "0.5719847", "0.5698126", "0.56865996", "0.56865996", "0.56729144", "0.5662213", "0.56605834", "0.56466454", "0.5644426", "0.56267595", "0.5620702", "0.562035" ]
0.66873264
0
Gets the refreshTokensValidFromDateTime property value. Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Readonly. Use invalidateAllRefreshTokens to reset.
public function getRefreshTokensValidFromDateTime(): ?DateTime { $val = $this->getBackingStore()->get('refreshTokensValidFromDateTime'); if (is_null($val) || $val instanceof DateTime) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'refreshTokensValidFromDateTime'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function isRefreshTokenValid(Request $request): ?array;", "public function setRefreshTokensValidFromDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('refreshTokensValidFromDateTime', $value);\n }", "public function refresh_access_token($refresh_token, $user_id) {\n global $wpdb;\n $token = $this->create_access_token($user_id);\n if ($wpdb->query($wpdb->prepare(\"UPDATE \" . $wpdb->base_prefix . \"user_tokens\n SET access_token = %s,\n access_token_valid = %s\", $token['token'], $token['expires_datetime'])))\n {\n return [\n 'access_token' => $token['token'],\n 'expires_in' => $token['expires_in']\n ];\n }\n return false;\n }", "public function isRefreshTokenExpired(?int $now = null): bool\n {\n $now = $now ?? time();\n return $this->refresh_token_expire_time < $now;\n }", "public function getRefreshTokenExpiration()\n\t{\n\t\treturn $this->accessTokenExpiration;\n\t}", "protected function refreshToken() {\n\t\t$now = round(microtime(true) * 1000);\n\t\t$notExpired = $this->tokenKeyExpires != null && $this->tokenKeyExpires > $now;\n\t\t$canRefresh = $this->tokenKeyNextRefresh != null &&\n\t\t\t\t($this->tokenKeyNextRefresh < $now || $this->tokenKeyNextRefresh > $this->tokenKeyExpires);\n\t\t// token present and NOT expired\n\t\tif ($this->tokenKey != null && $notExpired && $canRefresh) {\n\t\t\t$result = $this->getEntity($this->invokeGet(self::JWT_PATH));\n\t\t\tif ($result != null && array_key_exists(\"user\", $result) && array_key_exists(\"jwt\", $result)) {\n\t\t\t\t$jwtData = $result[\"jwt\"];\n\t\t\t\t$this->tokenKey = $jwtData[\"access_token\"];\n\t\t\t\t$this->tokenKeyExpires = $jwtData[\"expires\"];\n\t\t\t\t$this->tokenKeyNextRefresh = $jwtData[\"refresh\"];\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\t$this->clearAccessToken();\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static function getClientRefreshToken()\n {\n return static::$clientRefreshToken;\n }", "public function getRefreshToken()\n {\n return $this->refresh_token;\n }", "public function getRefreshToken()\n {\n return $this->refreshToken;\n }", "public function getRefreshToken()\n {\n return $this->refreshToken;\n }", "public function getRefreshToken()\n {\n return $this->refreshToken;\n }", "public function getRefreshToken()\n {\n return $this->refreshToken;\n }", "private function refreshTokenIfNeeded()\n {\n if ($this->isAccessTokenExpired()) {\n $this->fetchAccessTokenWithRefreshToken($this->getRefreshToken());\n $token = $this->getAccessToken();\n $this->setBothAccessToken($token);\n\n return $token;\n }\n\n return $this->token;\n }", "public function getRefreshToken()\n {\n return $this->_refreshToken;\n }", "public function validateRefreshToken($rToken) {\n\t\tif($this->checkTokenConfigs()) {\n\t\t\t$token = $this->decodeToken($rToken);\n\t\t\t$sig = sha1($this->prefix.':'.$this->secret.':'.$token['auth']['t']);\n\n\t\t\tif($sig === $token['auth']['s']) {\n\t\t\t\t$today = date('Y:m:d H:i:s');\n\n\t\t\t\tif($today < $token['auth']['t']) {\n\t\t\t\t try {\n\t\t\t\t \tif(self::$db->find('id', array('token'=>$rToken, 'revoked'=>0), TOKENS, 'Token', false)) {\n\t\t\t\t \t\treturn true;\n\t\t\t\t \t}\n\t\t\t\t \tthrow new Exception('Token not found', 401);\n\t\t\t\t } catch (Exception $e) {\n\t\t\t\t \tthrow $e;\n\t\t\t\t } \n\t\t\t\t} \n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\tthrow new Exception('Check token secret and or prefix in configs', 401);\n\t\t}\n\t}", "public function refresh_user_token() {\n $params = array(\n 'grant_type' => 'refresh_token',\n 'client_id' => $this->app_id,\n 'client_secret' => $this->app_secret,\n );\n $this->_update_token($params);\n return $this->access_token != null;\n }", "public function refreshToken(){\n $creds = $this->getAuth()->getCredentials();\n if (isset($creds['client_id']) &&\n isset($creds['client_secret'])){\n return $this->getAuth()->refresh();\n }\n return FALSE;\n }", "private function getTokenRefresh() {\n if (!array_key_exists('refresh_token',$this->token)\n || empty($this->token['refresh_token']))\n {\n throw new Exception(__METHOD__.\": access refresh token was not specified\");\n }\n\n // Get HTTP request parameters for fetching access token.\n $data = array(\n 'refresh_token' => $this->token['refresh_token'],\n );\n $httpParams = $this->prepareTokenRequest(\n 'refresh_token',\n isset($this->token['scope']) ? $this->token['scope'] : null,\n $data);\n\n // Make the http request.\n try {\n $request = new HTTPRequest($this->params['token_endpoint'],$httpParams);\n $response = $request->makeRequest();\n } catch (Exception $e) {\n throw new OAuth2Exception(\n $e->getMessage(),\n OAuth2Exception::OAUTH_EXCEPTION_BAD_REQUEST);\n }\n\n // Throw exception if response was not 200.\n if ($response->statusCode != 200) {\n $message = __METHOD__ . ': remote server did not refresh access token: '\n . \"got $response->statusCode\";\n $ex = new OAuth2Exception($message,OAuth2Exception::OAUTH_EXCEPTION_FAILED_REQUEST);\n $ex->errorData = json_decode($response->data);\n throw $ex;\n }\n\n // Decode the response payload as a PHP array.\n $tok = json_decode($response->data,true);\n\n // Calculate the token's expiration time.\n $tok['expiration_time'] = $_SERVER['REQUEST_TIME'] + $tok['expires_in'];\n\n return $tok;\n }", "public function isValid()\n {\n $local_time_zone = date_default_timezone_get();\n \n ini_set(\"date.timezone\", \"UTC\"); // force timezone to UTC for token validity to be timezone independent\n $isValid = (bool) (time() < $this->getValidity());\n ini_set(\"date.timezone\", $local_time_zone);\n \n return $isValid;\n }", "public function hasValidToken()\n {\n $properties = array('accessToken', 'refreshToken', 'tokenExpires');\n\n foreach ($properties as $property) {\n if (empty($this->{$property})) {\n return false;\n }\n }\n\n if (time() > $this->tokenExpires) {\n return false;\n }\n\n return true;\n }", "public function getRefreshToken()\n {\n // TODO: Implement getRefreshToken() method.\n }", "public function is_refresh_token_valid($user_id, $refresh_token)\n {\n // this checking should be compared with the record (user_id, refresh token) which stored in the database\n $result = $this->_refresh_token_inside_database($user_id, $refresh_token);\n\n return $result;\n }", "public function getRefreshToken($refresh_token)\n {\n $results = $this->getEventManager()->trigger(\n __FUNCTION__,\n $this,\n [\n 'refresh_token' => $refresh_token,\n ]\n );\n if ($results->stopped()) {\n return $results->last();\n }\n\n $doctrineRefreshTokenField =\n $this->getConfig()->mapping->RefreshToken->mapping->refresh_token->name;\n $doctrineExpiresField =\n $this->getConfig()->mapping->RefreshToken->mapping->expires->name;\n\n $queryBuilder = $this->getObjectManager()->createQueryBuilder();\n $queryBuilder->select('refreshToken')\n ->from($this->getConfig()->mapping->RefreshToken->entity, 'refreshToken')\n ->andwhere(\"refreshToken.$doctrineRefreshTokenField = :token\")\n ->andwhere(\"refreshToken.$doctrineExpiresField > :now\")\n ->setParameter('token', $refresh_token)\n ->setParameter('now', new DateTime());\n\n try {\n $refreshToken = $queryBuilder->getQuery()->getSingleResult();\n\n $mapper = $this->getMapperManager()->get('RefreshToken');\n $mapper->exchangeDoctrineArray($refreshToken->getArrayCopy());\n\n return $mapper->getOAuth2ArrayCopy();\n } catch (Exception $e) {\n // no result ok\n }\n\n return false;\n }", "public function getRefreshToken()\n {\n return $this->get('RefreshToken');\n }", "public function getRefreshToken()\n {\n return $this->get('RefreshToken');\n }", "protected function _refreshTokens($refreshToken)\n {\n ApiDebug::p('refreshing the existing access token');\n\n return $this->_requestTokens('refresh_token', array('refresh_token' => $refreshToken));\n }", "public function getRefreshToken() : ?auth\\Token\n {\n return $this->refreshToken;\n }", "function refreshGoogle()\n{\n $expiresIn = session('google_user_expires_in');\n\n // Time\n $current = \\Carbon\\Carbon::now();\n $expired = Auth::user()->updated_at->addSeconds($expiresIn);\n $refresh_token = Auth::user()->refresh_token;\n\n // dd($current,$expired);\n // If current date exceeds expired date request new access token\n if($current > $expired) {\n// dd($current);\n // Set Client\n $client = new \\Google_Client();\n $client->setClientId(env('GOOGLE_CLIENT_ID'));\n $client->setClientSecret(env('GOOGLE_APP_SECRET'));\n $client->refreshToken($refresh_token);\n $client->setAccessType('offline');\n\n $google_client_token = [\n 'access_token' => $client->getAccessToken(),\n 'refresh_token' => $refresh_token,\n 'expires_in' => $expiresIn\n ];\n $client->setAccessToken(json_encode($google_client_token));\n session(['google_client' => $client]);\n return $client->getAccessToken();\n }\n\n return false;\n}", "public function getNewRefreshToken()\n {\n return $this->get('NewRefreshToken');\n }", "public function getNewRefreshToken()\n {\n return $this->get('NewRefreshToken');\n }" ]
[ "0.5944849", "0.58906883", "0.57393855", "0.5725076", "0.5705549", "0.5672031", "0.5592188", "0.55814934", "0.5578573", "0.5578573", "0.5578573", "0.5578573", "0.5538957", "0.55217564", "0.54998416", "0.5469772", "0.54623795", "0.540617", "0.5364023", "0.5355763", "0.534677", "0.53454214", "0.531406", "0.53028667", "0.53028667", "0.5269792", "0.5266659", "0.51555157", "0.51191735", "0.51191735" ]
0.6101093
0
Gets the scopedRoleMemberOf property value. The scopedrole administrative unit memberships for this user. Readonly. Nullable.
public function getScopedRoleMemberOf(): ?array { $val = $this->getBackingStore()->get('scopedRoleMemberOf'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, ScopedRoleMembership::class); /** @var array<ScopedRoleMembership>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'scopedRoleMemberOf'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMemberOf()\n {\n return $this->memberof;\n }", "public function getMembersRole()\r\n {\r\n if ( $this->_membersRole === null ) $this->_membersRole = array(Warecorp_Group_Enum_MemberRole::MEMBER_ROLE_MEMBER, Warecorp_Group_Enum_MemberRole::MEMBER_ROLE_HOST, Warecorp_Group_Enum_MemberRole::MEMBER_ROLE_COHOST);\r\n return $this->_membersRole;\r\n }", "public function getMemberOf ()\n {\n return $this->memberOf;\n }", "public function getUserRole()\n {\n return $this->_userRole;\n }", "public function getUserRole()\n {\n return $this->userRole;\n }", "public function getMember()\r\n\t{\r\n\t\treturn $this->member;\r\n\t}", "public function getMember()\n {\n return $this->member;\n }", "public function getMember()\n {\n return $this->member;\n }", "public function getMember()\n\t{\n\t\treturn $this->member;\n\t}", "protected function getOwnerMemberAttribute(): ?Member\n {\n if ($this->guild) {\n return $this->guild->members->get('id', $this->owner_id);\n }\n\n return null;\n }", "public function getUserRole()\n {\n return $this->request->getAttribute('user_role');\n }", "public function getAdminRole(){\n return $this->_adminRole;\n }", "public function getMember() {\n\t\treturn $this->__api->getMember($this->__payload['member']);\n\t}", "public function getUserRole() {\n\t\treturn $this->getSessionuserRole();\n\t}", "public function memberRole()\n {\n return $this->belongsTo('MemberRole');\n }", "public function getRole()\n {\n return $this->_role;\n }", "public function familyMember()\n {\n if ($this->is_admin && !Member::where('user_id', $this->id)->get()->count()) {\n $tempMember = new Member();\n\n $tempMember->is_administrator = true;\n\n return $tempMember;\n }\n\n return $this->member;\n }", "public function getTokenMember()\n {\n $alias = new Alias();\n $alias->setType(Alias\\Type::DOMAIN)\n ->setValue('token.io')\n ->setRealm('token');\n\n $memberId = $this->getMemberId($alias);\n if ($memberId == null) {\n return null;\n }\n\n return $this->getMember($memberId);\n }", "public function isMember() {\n\t\treturn $this->member;\n\t}", "public function role()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }" ]
[ "0.6146281", "0.60424304", "0.57929355", "0.57096493", "0.56898594", "0.56744474", "0.5654467", "0.5654467", "0.56522", "0.55218524", "0.5518223", "0.5517554", "0.5495515", "0.544466", "0.5438098", "0.5417787", "0.5390327", "0.53780955", "0.5374403", "0.536815", "0.53603905", "0.53603905", "0.53603905", "0.53603905", "0.53603905", "0.53603905", "0.53603905", "0.53603905", "0.53603905", "0.53603905" ]
0.6915351
0
Gets the showInAddressList property value. Do not use in Microsoft Graph. Manage this property through the Microsoft 365 admin center instead. Represents whether the user should be included in the Outlook global address list. See Known issue.
public function getShowInAddressList(): ?bool { $val = $this->getBackingStore()->get('showInAddressList'); if (is_null($val) || is_bool($val)) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'showInAddressList'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdministrativeAreasList()\n {\n if (! $this->administrativeAreasList) {\n $this->administrativeAreasList = $this->addressing->getAdministrativeAreaRepository()->getList($this->getCountryCode(),\n 0, $this->getLocale());\n }\n\n return $this->administrativeAreasList;\n }", "public function getIsInAddressFolderAttribute()\n {\n return in_array($this->folder_id, self::ADDRESS_FOLDER_IDS);\n }", "public function setShowInAddressList(?bool $value): void {\n $this->getBackingStore()->set('showInAddressList', $value);\n }", "public function showInListing()\n {\n return $this->hasOption('show_in_listing') ? $this->getOption('show_in_listing') : false;\n }", "public function showAddressAutocomplete()\n {\n if ($this->addressAutocompleteHelperData->getAddressAutocompleteStatus()) {\n return true;\n }\n return false;\n }", "public function revealAddress(){\n \tif(!$this->AddressLine1 && !$this->AddressLine2)\n \t\treturn true;\n \tif(!$this->AddressLine1Visible && !$this->AddressLine2Visible)\n \t\treturn true;\n \t$member = Member::currentUser();\n \tif(!$member)\n \t\treturn false;\n \tif($this->ClientID == $member->ID)\n \t\treturn true;\n \t$reveal = Reveal::get()->filter(array(\n \t\t\t'ContractorID' => $member->ID,\n \t\t\t'TenderID' => $this->ID\n \t))->first();\n \tif($reveal && $reveal->RevealAddress)\n \t\treturn true;\n \treturn false;\n }", "public function z_listAddresses(bool $includeWatchOnly = false)\n {\n return $this->__call('z_listaddresses', [$includeWatchOnly]);\n }", "public function getAddressList()\n {\n if (!is_null($this->addressList)) {\n return $this->addressList;\n }\n\n $this->addressList = array();\n\n foreach ($this->getCustomer()->getAddresses() as $address) {\n\n $item = array(\n $address->getData('firstname') . ' ' . $address->getData('lastname'),\n $address->getData('postcode') . ' '. $address->getData('street') . ' ' . $address->getData('city'),\n $address->getData('region'),\n Mage::getModel('directory/country')->load($address->getData('country_id'))->getName()\n );\n\n $this->addressList[$address->getEntityId()] = implode(', ', $item);\n }\n\n return $this->addressList;\n }", "public function getAddress()\n {\n if($this->getId()) {\n\n // Grab the address from the stores data\n $addressData = $this->getData('address');\n\n // Build up an array of address elements\n $addressElements = array();\n\n // Implode the street address\n if(isset($addressData['streetAddress']) && is_array($addressData['streetAddress'])) {\n $addressElements = array_filter($addressData['streetAddress']);\n }\n\n // Include the town\n if(isset($addressData['town']) && !empty($addressData['town'])) {\n $addressElements[] = $addressData['town'];\n }\n\n return implode(', ', $addressElements);\n }\n return false;\n }", "private function address()\n {\n return $this->user->profile->profile_address ?? null;\n }", "public function getAddresses() {\n return $this->addresses;\n }", "public function getAddresses()\n {\n return $this->addresses;\n }", "public function getAddresses()\n {\n return $this->addresses;\n }", "public function getAddresses()\n\t{\n\t\treturn $this->addresses;\n\t}", "public function getAddresses() {\n\t\treturn $this->addresses;\n\t}", "public function getInboxAddress();", "public function isEmptyAddressList()\n {\n return empty($this->getAddressList());\n }", "public function getAddressbook()\r\n {\r\n $numArgs = func_num_args();\r\n if ($numArgs > 0) throw new Warecorp_Exception(\"ERROR USING METHOD getAddressbook. NO params.\");\r\n if ( $this->Addressbook === null ) {\r\n $this->Addressbook = new Warecorp_User_Addressbook_ContactList(false, 'owner_id', $this->id);\r\n }\r\n return $this->Addressbook;\r\n }", "public function getBillingAddressConfigArray()\n {\n return json_decode(\n $this->scopeConfig->getValue(\n self::BILLING_ADDRESS_GRID,\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n ),\n true\n );\n }", "public function getAdminAddress();", "public function getAddress()\n {\n return $this->Address;\n }", "public function getAddress()\n {\n return $this->Address;\n }", "public function getAddresses()\n {\n $endpoint = '/addresses';\n $data = ['access_token' => $this->config['access_token']];\n\n // Make API Call\n $result = samsara::callAPI(null, $this->config['base_url'] . $endpoint, $data);\n\n return $result;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }", "public function getAddress()\n {\n return $this->address;\n }" ]
[ "0.60442644", "0.6032662", "0.58070576", "0.57585675", "0.57011026", "0.56816846", "0.5637667", "0.5411054", "0.5337696", "0.52223915", "0.5206885", "0.5205594", "0.5205594", "0.52044874", "0.51923", "0.5180132", "0.5151543", "0.5134749", "0.5095562", "0.50476086", "0.50311494", "0.50311494", "0.5031057", "0.50256324", "0.50256324", "0.50256324", "0.50256324", "0.50256324", "0.50256324", "0.50256324" ]
0.6144701
0
Gets the signInActivity property value. Get the last signedin date and request ID of the signin for a given user. Readonly.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.This property is not returned for a user who has never signed in or last signed in before April 2020.
public function getSignInActivity(): ?SignInActivity { $val = $this->getBackingStore()->get('signInActivity'); if (is_null($val) || $val instanceof SignInActivity) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'signInActivity'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activity_user()\n\t{\n\t\treturn $this->_get_activity();\n\n\t}", "public function activity()\n {\n return $this->session['last_activity'];\n }", "function login_activity()\n {\n return LoginActivity::whereUserId(auth()->user()->id)->latest()->first();\n }", "function profileLastSignIn()\n\t{\n\t\tglobal $db,$db_table_prefix,$user_id;\n\t\t\n\t\t$sql = \"SELECT\n\t\t\t\tLastSignIn\n\t\t\t\tFROM\n\t\t\t\t\".$db_table_prefix.\"Users\n\t\t\t\tWHERE\n\t\t\t\tUser_ID = '\".$db->sql_escape($user_id).\"'\";\n\t\t\n\t\t$result = $db->sql_query($sql);\n\t\t\n\t\t$row = $db->sql_fetchrow($result);\n\t\t\n\t\treturn ($row['LastSignIn']);\n\t}", "public function signedInUserId(): int\n {\n return $this->sessionHelper->get(self::SESSION_LOGINUSERID, -1);\n }", "public function getIn()\n {\n return $this->get('in');\n }", "public function getLastActivityTime()\n {\n return $this->last_activity_time;\n }", "public function getLastActivity()\n {\n return $this->lastActivity;\n }", "public function lastActivity()\n\t{\n\t\t$last = Post::all()\n\t\t\t->whereEquals('scope', $this->get('scope'))\n\t\t\t->whereEquals('scope_id', $this->get('scope_id'))\n\t\t\t->whereEquals('state', Post::STATE_PUBLISHED)\n\t\t\t->whereIn('access', User::getAuthorisedViewLevels());\n\n\t\treturn $last->order('id', 'desc')\n\t\t\t->limit(1)\n\t\t\t->row();\n\t}", "public function get()\n {\n return $this->in;\n }", "public static function signedIn()\n {\n return self::loggedIn();\n }", "public function getUserId()\n {\n return (int)$this->request->getAttribute('user_id');\n }", "public function getUserOptin()\n\t{\n\t\treturn $this->user_optin;\n\t}", "public function getUserId()\r\r\n {\r\r\n return $this->get('user_id');\r\r\n }", "public function loggedIn()\n {\n return $this->loggedIn;\n }", "public function user(){\n //return $this->user ?: $this->signInWithPin();\n \n }", "public function getUserAttribute()\n {\n if (array_key_exists(\"userAttribute\", $this->_propDict)) {\n if (is_a($this->_propDict[\"userAttribute\"], \"\\Microsoft\\Graph\\Model\\IdentityUserFlowAttribute\") || is_null($this->_propDict[\"userAttribute\"])) {\n return $this->_propDict[\"userAttribute\"];\n } else {\n $this->_propDict[\"userAttribute\"] = new IdentityUserFlowAttribute($this->_propDict[\"userAttribute\"]);\n return $this->_propDict[\"userAttribute\"];\n }\n }\n return null;\n }", "public function getCurrentActivityId(): ?string;", "public function getDateIn()\n {\n return $this->DateIn;\n }", "public function getIn()\n {\n return $this->in;\n }", "public function getCurrentUserCheckIn()\n {\n $userTTLog = $this->repo->getCheckInLogByUserId(\\Auth::id());\n if (!$userTTLog) {\n throw new CheckInNotFoundException(trans('response.error.check_in_not_found'));\n }\n\n return $userTTLog;\n }", "public function getIdentity() {\n return $this->session->get('auth-identity');\n }", "public function getIdentity()\n {\n\n return $this->session->get('auth-identity');\n }", "public function getCurrentUser()\n {\n $id = $this->auth->getUser()->id;\n return $this->get($id);\n }", "protected function getLastActivity()\n {\n return Activity::query()->get()->last();\n }", "public function isSignedIn();", "public function getIdentity()\n {\n return $this->session->get('auth-identity');\n }", "public function getUserIdsIn()\r\n {\r\n \treturn $this->_userIdsIn;\r\n }", "public function getLoggedAt()\n {\n return $this->loggedAt;\n }", "public static function logged_in()\n\t{\n\t\treturn Auth::instance()->logged_in();\n\t}" ]
[ "0.54907596", "0.5127302", "0.50961053", "0.5073669", "0.48644832", "0.4753709", "0.47354642", "0.47098425", "0.47086692", "0.46839523", "0.46421677", "0.46409836", "0.46339598", "0.4631003", "0.46021384", "0.4585013", "0.4562571", "0.45590195", "0.4555649", "0.45521954", "0.4546321", "0.45461267", "0.45419577", "0.45373935", "0.45369852", "0.45237952", "0.45228422", "0.4521482", "0.45171016", "0.4499223" ]
0.54240006
1
Gets the signInSessionsValidFromDateTime property value. Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Readonly. Use revokeSignInSessions to reset.
public function getSignInSessionsValidFromDateTime(): ?DateTime { $val = $this->getBackingStore()->get('signInSessionsValidFromDateTime'); if (is_null($val) || $val instanceof DateTime) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'signInSessionsValidFromDateTime'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSignInSessionsValidFromDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('signInSessionsValidFromDateTime', $value);\n }", "public function getSessionExpirationDate()\n {\n $epoch = $this->getSamlResponse()->getSessionNotOnOrAfter();\n\n // keep consistent interface\n if ($epoch === null) {\n return null;\n }\n\n $dateTime = new \\DateTime();\n return $dateTime->setTimestamp($epoch);\n }", "private static function checkInactivity(){\r\n\t\tif(isset($_SESSION[Constants::$KEY_LAST_TIME_SESSION])){\r\n\t\t\t//tenemos un tiempo registrado para nuestra ultima accion en el sitio\r\n\t\t\t//vemos si no nos excedimos de nuestra maxima inactividad configurada\r\n\t\t\t$time0 = $_SESSION[Constants::$KEY_LAST_TIME_SESSION];\r\n\t\t\t$userDTO = $_SESSION[Constants::$KEY_USUARIO_DTO];\r\n\t\t\t//el tiempo esta almacenado en minutos, lo llevamos a segundos\r\n\t\t\t$maxTime = $userDTO->getTiempoSesion() * 60;\r\n\t\t\t\t\r\n\t\t\tif((time() - $time0) > $maxTime) {\r\n\t\t\t\t//tengo inactivo mas tiempo del permitido, limpio la sesion\r\n\t\t\t\tsession_unset();\r\n\t\t\t\t$_SESSION[Constants::$KEY_MESSAGE_ERROR] = Constants::$TEXT_SESSION_EXPIRED;\r\n\t\t\t\theader(\"Location: index.php\");\r\n\t\t\t\texit();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function isSignedOn()\n {\n return ! empty($this->sessionToken) && ((time() - $this->sessionTokenTime) <= CwsConstants::SESSION_TOKEN_TIME);\n }", "public function getRefreshTokensValidFromDateTime(): ?DateTime {\n $val = $this->getBackingStore()->get('refreshTokensValidFromDateTime');\n if (is_null($val) || $val instanceof DateTime) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'refreshTokensValidFromDateTime'\");\n }", "public function getSessionTokenTime() \n {\n return $this->sessionTokenTime;\n }", "public function isValidSessionToken(){\n\n if ($this->getSession()->AuthToken === null) {\n return false;\n }\n if ($this->currentUserID !== null) {\n return true;\n }\n $sessionToken = $this->getSession()->AuthToken;\n $result = $this ->prepare(\"SELECT id,session_token_expire FROM users WHERE session_token=?\",[$sessionToken])->execute();\n //if there is no such token in the user table .. session is not valid.. so return false\n if ($result === false) {\n return false;\n }\n\n $result = $result->fetchRllAssoc(); // getting the result\n\n // if expiration time is bigger then current time.. session expired .. soo return false\n if ($result['session_token_expire'] < time()) {\n return false;\n }\n\n // if we are here in code that means that everything is ok and we can save the user and update the time\n $this->setCurrentUserId($result['id']);\n\n // and we extend the lifetime of the users token\n if ($this->renewSessionLifeTime($sessionToken)) {\n return false;\n }\n\n return true;\n }", "function validate()\n{\n\tif (time() - $_SESSION['CREATED'] > 1800) \n {\n \t\t// session started more than 30 minutes ago\n \t//session_regenerate_id(true); // change session ID for the current session and invalidate old session ID\n \t//$_SESSION['CREATED'] = time(); // update creation time\n\t\theader(\"location:sign-in\");\n\t\texit();\n\t}\n}", "public function checkActiveSessions()\n {\n if ($this->openingDate) {\n $test = true;\n $today = new \\DateTime();\n if (($today->getTimestamp() > $this->openingDate->getTimestamp())\n &&\n ($today->getTimestamp() < $this->closingDate->getTimestamp())\n ) {\n $test = false;\n }\n } else {\n $test = true;\n }\n\n return $test;\n }", "public function getValidatedAt()\n {\n return $this->validatedAt;\n }", "protected function validate()\n {\n // Regenerate session if gone too long and reset timers\n if ((time() - $this->get('timer.start', null, 'session') > self::EXPIRE)) {\n session_regenerate_id(true);\n $this->setTimers(true);\n }\n\n // Destroy session if expired and start a new one\n if ((time() - $this->get('timer.last', null, 'session') > self::EXPIRE)) {\n $this->destroy();\n $this->start();\n }\n }", "public function getSessionExpirationTime(): int\n {\n $sessionStart = $this->session->getUpdatedAt();\n $sessionDuration = $this->securityConfig->getAdminSessionLifetime();\n\n return $sessionStart + $sessionDuration;\n }", "public function in_session() {\n\t\treturn strtotime($this->begin) < time() &&\n\t\t\tstrtotime($this->end) > time();\n\t}", "public function getCurrentAccessTokenLifetime();", "public function getValidBeforeTime()\n {\n return $this->valid_before_time;\n }", "public function isSignedIn(): bool\n {\n return $this->sessionHelper->get(self::SESSION_LOGINFLAG, false);\n }", "public function getSessionExpiryTime() {\n return $this->session_expiry_time;\n }", "public function getSessionTokenExpiry()\n {\n return $this->session->getData(self::DATA_KEY_SESSION_TOKEN_EXPIRY);\n }", "protected static function validateSession() {\n if(isset($_SESSION['OBSOLETE']) && !isset($_SESSION['EXPIRES'])) return false;\n if(isset($_SESSION['EXPIRES']) && $_SESSION['EXPIRES'] < time()) return false;\n return true;\n }", "public function isSignedIn();", "public function isValid()\n {\n $local_time_zone = date_default_timezone_get();\n \n ini_set(\"date.timezone\", \"UTC\"); // force timezone to UTC for token validity to be timezone independent\n $isValid = (bool) (time() < $this->getValidity());\n ini_set(\"date.timezone\", $local_time_zone);\n \n return $isValid;\n }", "private function isSessionTokenExpired()\n {\n $sessionTokenExpiry = strtotime($this->getSessionTokenExpiry());\n $currentTime = $this->datetime->timestamp();\n $threshold = 1200; //20min in s\n\n return (($sessionTokenExpiry - $threshold ) < $currentTime);\n }", "public static function createdTime() \n {\n if (!isset($_SESSION['Created'])) {\n $_SESSION['Created'] = time();\n } else if (time() - $_SESSION['Created'] > 1800) {\n\n // Session was started more than 30 minutes ago\n session_regenerate_id(true);\n $_SESSION['Created'] = time();\n }\n }", "protected function getSession()\n {\n $time = time();\n\n if (empty($this->sessionId) || $time - 240 > $this->sessionTime) {\n $token = $this->getToken();\n $this->sessionId = $this->login($token);\n $this->sessionTime = $time;\n }\n\n return $this->sessionId;\n }", "function session_is_valid() {\n if(!last_login_is_recent()) { return false; }\n if(!user_agent_matches_session()) { return false; }\n return true;\n }", "function session_is_valid() {\n if(!last_login_is_recent()) { return false; }\n if(!user_agent_matches_session()) { return false; }\n return true;\n }", "public function checkPreviouslyLoggedIn()\n {\n $credentials = $this->getClientGoogleCalendarCredentials();\n\n $allowJsonEncrypt = $this->_config['allow_json_encrypt'];\n\n if ($credentials) {\n if ($allowJsonEncrypt) {\n $savedConfigToken = json_decode(decrypt($credentials->config), true);\n } else {\n $savedConfigToken = json_decode($credentials->config, true);\n }\n\n return !empty($savedConfigToken['access_token']);\n\n }\n\n return false;\n }", "public static function getSessionToken()\n {\n $time = time();\n $session = Yii::$app->getSession();\n\n if ($session->get(static::SESSION_TIMESTAMP_NAME, 0) < $time - 300 || !$session->get(static::SESSION_TOKEN_NAME)) {\n $session->set(static::SESSION_TOKEN_NAME, Yii::$app->getSecurity()->generateRandomString(20));\n $session->set(static::SESSION_TIMESTAMP_NAME, $time);\n }\n\n return $session->get(static::SESSION_TOKEN_NAME, false);\n }", "public function getLifeTime()\n {\n if (is_null($this->_lifeTime)) {\n $configNode = Mage::app()->getStore()->isAdmin() ?\n 'admin/security/session_cookie_lifetime' : 'web/cookie/cookie_lifetime';\n $this->_lifeTime = (int) Mage::getStoreConfig($configNode);\n\n if ($this->_lifeTime < 60) {\n $this->_lifeTime = ini_get('session.gc_maxlifetime');\n }\n\n if ($this->_lifeTime < 60) {\n $this->_lifeTime = 3600; //one hour\n }\n\n if ($this->_lifeTime > self::SEESION_MAX_COOKIE_LIFETIME) {\n $this->_lifeTime = self::SEESION_MAX_COOKIE_LIFETIME; // 100 years\n }\n }\n return $this->_lifeTime;\n }", "public function getTtl() : int\n {\n return Carbon::now()->addMinutes(app()->config['auth']['expire']['session_token'])->diffInSeconds();\n }" ]
[ "0.61430866", "0.56702805", "0.54942983", "0.54347366", "0.5326738", "0.52141094", "0.52129805", "0.5169042", "0.5150488", "0.5025942", "0.5009289", "0.4962487", "0.4940581", "0.49400422", "0.49097496", "0.49019584", "0.4888947", "0.485556", "0.48407662", "0.48397756", "0.48383883", "0.4836336", "0.4802866", "0.47866073", "0.4751941", "0.4751941", "0.47369576", "0.47180733", "0.47014454", "0.47003013" ]
0.6698313
0
Gets the teamwork property value. A container for Microsoft Teams features available for the user. Readonly. Nullable.
public function getTeamwork(): ?UserTeamwork { $val = $this->getBackingStore()->get('teamwork'); if (is_null($val) || $val instanceof UserTeamwork) { return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'teamwork'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTeam()\n {\n return $this->team;\n }", "public function getProjectTeam()\n {\n return isset($this->project_team) ? $this->project_team : null;\n }", "public function getTeam() {\n return $this->teamId;\n }", "public function get_STE_Team() {\n return $this->ste_team;\n }", "public function getHasTeam ()\r\n {\r\n return $this->hasTeam;\r\n }", "public function getTravelTeam(){\n\t\t\treturn $this->travelteam;\n\t\t}", "public function getCurrentTeamAttribute()\n {\n return $this->currentTeam();\n }", "public function team()\n {\n $team = request()->user()->team;\n\n if($team) {\n return $team->team_name;\n }\n else {\n return \"no_team\";\n }\n }", "protected function getTeamDetails()\n {\n return self::$arrTeamDetails;\n }", "public function getTeamName ()\r\n {\r\n return $this->teamName;\r\n }", "public function getTeam()\n {\n return Wrapper\\Team\\Senior::team($this->getTeamId());\n }", "public function getTeamID()\n {\n return $this->teamID;\n }", "public function get_team_id()\n {\n return $this->team_id;\n }", "public function getTeamId()\n {\n return $this->team_id;\n }", "public function getTeamId()\n {\n return $this->teamId;\n }", "public function getTeamName() {\n\t\treturn ($this->teamName);\n\t}", "public function getTeamA()\n {\n return $this->teamA;\n }", "public function getTeamMemberDescription()\n {\n return $this->teamMemberDescription;\n }", "public function getPlayerStatisticTeamId() {\n\t\treturn ($this->playerStatisticTeamId);\n\t}", "public function getTeam()\n {\n if ($this->type == Config\\Config::SENIOR) {\n $url = Network\\Request::buildUrl(array('file' => 'teamdetails', 'teamID' => $this->getId(), 'version' => Config\\Version::TEAMDETAILS));\n return new Xml\\Team\\Senior(Network\\Request::fetchUrl($url), $this->getId());\n } elseif ($this->type == Config\\Config::YOUTH) {\n $url = Network\\Request::buildUrl(array('file' => 'youthteamdetails', 'youthTeamId' => $this->getId(), 'version' => Config\\Version::YOUTHTEAMDETAILS));\n return new Xml\\Team\\Youth(Network\\Request::fetchUrl($url));\n }\n return null;\n }", "public function getFeature()\n {\n return $this->feature;\n }", "public function getTeamMembers()\n {\n return $this->team_members;\n }", "function team()\n {\n $teams = Auth::user()->teams();\n return $teams[0];\n }", "public static function teamModel()\n {\n return static::$teamModel;\n }", "function getSwimTeamOption($option)\n {\n return (array_key_exists($option, $this->__swim_team_option)) ?\n ($this->__swim_team_option[$option]) : WPST_NULL_STRING ;\n }", "public function getTeamB()\n {\n return $this->teamB;\n }", "public function currentTeam()\n {\n if (is_null($this->current_team_id) && $this->hasTeams()) {\n $this->switchToTeam($this->teams->first());\n\n return $this->currentTeam();\n } elseif (! is_null($this->current_team_id)) {\n $currentTeam = $this->teams->find($this->current_team_id);\n\n return $currentTeam ?: $this->refreshCurrentTeam();\n }\n }", "public function getProjectTeam();", "public function getWorks()\n {\n return $this->data['works'];\n }", "public static function get_current_streamer_team(){\n if (is_user_logged_in()):\n $teams = get_posts(array(\n 'post_type' => 'teams',\n 'post_status' => 'any',\n 'author' => get_current_user_id()\n ));\n if (!empty($teams)):\n return $teams;\n else:\n return;\n endif;\n else: \n return;\n endif; \n }" ]
[ "0.6615556", "0.64392036", "0.6301277", "0.62793726", "0.625113", "0.6217659", "0.61566246", "0.6152299", "0.6145668", "0.61076087", "0.60571605", "0.59763044", "0.5976196", "0.59061885", "0.5884132", "0.5861282", "0.5812103", "0.57896525", "0.57443076", "0.5704309", "0.5684283", "0.56381464", "0.56112653", "0.5595993", "0.55712503", "0.5499917", "0.54274976", "0.5411986", "0.5394293", "0.53555804" ]
0.64925146
1
Gets the transitiveMemberOf property value. The groups, including nested groups, and directory roles that a user is a member of. Nullable.
public function getTransitiveMemberOf(): ?array { $val = $this->getBackingStore()->get('transitiveMemberOf'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, DirectoryObject::class); /** @var array<DirectoryObject>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'transitiveMemberOf'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMemberOf ()\n {\n return $this->memberOf;\n }", "function getGroupMembership() {\n\n return $this->principalBackend->getGroupMemberShip($this->principalProperties['uri']);\n\n }", "public function getMemberOf()\n {\n return $this->memberof;\n }", "public function getMember(): ?GroupMemberInterface\n {\n return $this->member;\n }", "public function getLocalUsersOrGroups()\n {\n if (array_key_exists(\"localUsersOrGroups\", $this->_propDict)) {\n if (is_a($this->_propDict[\"localUsersOrGroups\"], \"\\Beta\\Microsoft\\Graph\\Model\\DeviceManagementUserRightsLocalUserOrGroup\") || is_null($this->_propDict[\"localUsersOrGroups\"])) {\n return $this->_propDict[\"localUsersOrGroups\"];\n } else {\n $this->_propDict[\"localUsersOrGroups\"] = new DeviceManagementUserRightsLocalUserOrGroup($this->_propDict[\"localUsersOrGroups\"]);\n return $this->_propDict[\"localUsersOrGroups\"];\n }\n }\n return null;\n }", "public function getCustomerGroupsProperty()\n {\n return CustomerGroup::get();\n }", "public function getCustomerGroupsProperty()\n {\n return CustomerGroup::get();\n }", "public function getMembersRole()\r\n {\r\n if ( $this->_membersRole === null ) $this->_membersRole = array(Warecorp_Group_Enum_MemberRole::MEMBER_ROLE_MEMBER, Warecorp_Group_Enum_MemberRole::MEMBER_ROLE_HOST, Warecorp_Group_Enum_MemberRole::MEMBER_ROLE_COHOST);\r\n return $this->_membersRole;\r\n }", "public function getMemberOf(): ?array {\n $val = $this->getBackingStore()->get('memberOf');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'memberOf'\");\n }", "function resolve_member($userid, $folder_id, &$folder_owner_id)\n{\n $inherits = CAN_ANNOTATE | CAN_SUBFOLDER | CAN_DOCUMENT | VETTER | MANAGER | CAN_OWN | INHERITS_MEMBERS;\n for (;$folder_id != 1; $folder_id = $row['parent_folder_id']) {\n $query = \n'select * from groups\n where user_id = ' . DBstring($userid) . '\n and folder_id = ' . DBnumber($folder_id);\n $ret = DBquery($query);\n if (!$ret) {\n return null;\n }\n $member = DBfetch($ret);\n if ($member) {\n $member['folder_permissions'] &= $inherits;\n if (!($inherits & INHERITS_MEMBERS) && !($member['folder_permissions'] & inherits)) {\n return false;\n }\n if (isset($folder_owner_id)) {\n return $member;\n } }\n $query =\n'select parent_folder_id, inherits, creator_user_id\n from folders\n where folder_id = ' . DBnumber($folder_id);\n $ret = DBquery($query);\n if (!$ret) {\n return null;\n }\n $folder = DBfetch($ret);\n if (!$folder) {\n echo '\n<br>Unable to read folder \"', htmlspecialchars($folder_id), '\"';\n return null;\n }\n if (!isset($folder_owner_id)) {\n $folder_owner_id = $folder['creator_user_id'];\n if (isset($member)) {\n return $member;\n } }\n $inherits_flag = $folder['inherits'];\n $inherits &= $inherits_flag;\n if (!$inherits) {\n break;\n } }\n return false;\n}", "public function getUserGroup() \n {\n return $this->_fields['UserGroup']['FieldValue'];\n }", "public function getMembersAccess($gid, $cuid, $uid, $role){\n // current user is team member, owner can access products\n $query = \\Drupal::database()->select('group_content_field_data', 'gm');\n $query->fields('gm', ['gid', 'uid', 'entity_id']);\n $query->innerJoin('group_content__group_roles', 'gmr', \"gmr.entity_id = gm.id AND gmr.bundle = gm.type\");\n $query->condition('gm.type', 'team-group_membership', '=');\n $query->condition('gm.gid', $gid, '=');\n $query->condition('gm.entity_id', $cuid, '=');\n $query->condition('gm.uid', $uid, '=');\n $query->condition('gmr.group_roles_target_id', $role, '=');\n $member = $query->execute()->fetchObject();\n if(empty($member)){\n return false;\n }\n return true;\n }", "public function getGroupUserMembershipAttribute(): ?string;", "function getGroupMemberSet() {\n\n return $this->principalBackend->getGroupMemberSet($this->principalProperties['uri']);\n\n }", "public function get_group_of_curruser()\r\n\t{\r\n\t\treturn $curr_g_arr;\r\n\t}", "function get_member()\n {\n $member = array('all' => array(), 'mail' => array());\n $ldap = $this->config->get_ldap_link();\n $ldap->cd($this->config->current['BASE']);\n if(isset($this->parent->by_object['group'])){\n foreach($this->parent->by_object['group']->memberUid as $uid){\n if(!isset($this->parent->by_object['group']->dnMapping[$uid])) continue;\n $dn = $this->parent->by_object['group']->dnMapping[$uid];\n $member['all'][$uid] = $uid;\n if($ldap->object_match_filter($dn,\"(&(objectClass=gosaMailAccount)(\".$this->mailMethod->getUAttrib().\"=*))\")){\n $ldap->cat($dn);\n $attrs = $ldap->fetch();\n $member['mail'][$uid] = $attrs[$this->mailMethod->getUAttrib()][0]; \n }\n }\n }else{\n if(!isset($this->attrs['memberUid'])) return($member);\n $uattrib = $this->mailMethod->getUAttrib();\n $users = get_list(\"(&(objectClass=person)(objectClass=gosaAccount)(uid=*))\",\n \"users\",$this->config->current['BASE'],\n array(\"uid\",\"objectClass\",$uattrib),GL_SUBSEARCH | GL_NO_ACL_CHECK);\n foreach($users as $user){\n $member['all'][$user['uid'][0]] = $user['dn'];\n if(isset($user[$uattrib]) \n && in_array_strict(\"gosaMailAccount\",$user['objectClass']) \n && (in_array_strict($user['uid'][0], $this->attrs['memberUid']))){\n $member['mail'][$user['uid'][0]] = $user[$uattrib][0];\n }\n }\n }\n return($member);\n }", "public function getMember()\n {\n return $this->member;\n }", "public function getMember()\n {\n return $this->member;\n }", "public function getPeerGroup()\n\t{\n\t\treturn $this->peer_group;\n\t}", "function getGroup() { return $this->_repo->getGroup($this->_groupid); }", "public function group() {\n\t\treturn ( $role = $this->getRoles()->sortBy( 'group' )->first() ) ? $role->group : 'default';\n\t}", "public function getMember()\r\n\t{\r\n\t\treturn $this->member;\r\n\t}", "public function getGroupeUtilisateur()\n {\n return $this->m_groupeUtilisateur;\n }", "public function usersManageTheirMembership () {\n\t\tif (Yii::$app->user->isGuest) {\n\t\t\treturn false;\n\t\t}\n\t\t\n $permission = Yii::$app->user->permissionManager->getById('users_manage_their_membership', 'group-membership');\n return Yii::$app->user->permissionManager->getGroupState($this->id, $permission);\n\t}", "public function getMember()\n\t{\n\t\treturn $this->member;\n\t}", "public function getParentRole ();", "public function getCustomerGroup()\n {\n if (is_null($this->customerGroup)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_CUSTOMER_GROUP);\n if (is_null($data)) {\n return null;\n }\n\n $this->customerGroup = CustomerGroupReferenceModel::of($data);\n }\n\n return $this->customerGroup;\n }", "public function getScopedRoleMemberOf(): ?array {\n $val = $this->getBackingStore()->get('scopedRoleMemberOf');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ScopedRoleMembership::class);\n /** @var array<ScopedRoleMembership>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'scopedRoleMemberOf'\");\n }", "public function owner() {\n \treturn $this->hasOne('\\App\\User', 'id', 'group_owner_id');\n }", "public function getMember() {\n\t\treturn $this->__api->getMember($this->__payload['member']);\n\t}" ]
[ "0.58732533", "0.549804", "0.5440999", "0.5279061", "0.5226562", "0.5133697", "0.5133697", "0.5103072", "0.50497913", "0.50072074", "0.48740512", "0.4836378", "0.4772718", "0.47707492", "0.4755322", "0.47451332", "0.47268847", "0.47268847", "0.47152194", "0.46526355", "0.4641162", "0.4637382", "0.4623569", "0.46159318", "0.459107", "0.4579336", "0.45699352", "0.45688778", "0.45668676", "0.45508212" ]
0.5646268
1
Gets the transitiveReports property value. The transitive reports for a user. Readonly.
public function getTransitiveReports(): ?array { $val = $this->getBackingStore()->get('transitiveReports'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, DirectoryObject::class); /** @var array<DirectoryObject>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'transitiveReports'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reports()\n {\n return $this->hasMany(Report::class, 'user_id');\n }", "public function getReports()\n {\n return $this->reportRepo->getReport();\n }", "public function getChangeReports()\n {\n return $this->change_reports;\n }", "function GetReportsTo() {\n GetCILibrary()->load->library(\"session\");\n $GetSessionData = GetCILibrary()->session->all_userdata();\n $ReportsTo = isset($GetSessionData[GetCILibrary()->session->userdata(\"User_Code\")][0]['ReportsTo']) ? $GetSessionData[GetCILibrary()->session->userdata(\"User_Code\")][0]['ReportsTo'] : NULL;\n return $ReportsTo;\n}", "public function getTransitiveDependenciesIncluded()\n {\n return $this->transitive_dependencies_included;\n }", "public function getTransitiveDependentsIncluded()\n {\n return $this->transitive_dependents_included;\n }", "public function getReports()\n {\n return $this->hasMany(Report::className(), ['doctor_id' => 'doctor_id']);\n }", "public function downloadReport()\n {\n return $this->userRepository->makeReport();\n }", "public function getReconciliationReport()\n {\n $report = !empty($this->data['reconciliationReport']) ? $this->data['reconciliationReport'] : false;\n return $report;\n }", "public function getIncidentReportsFiled()\r\n {\r\n return $this->_incidentReportsFiled;\r\n }", "public function getRelatedReports()\n {\n return array();\n }", "public function ScriptReports()\n\t{\n\t\treturn $this->hasOne('App\\Models\\ScriptReport','user_id','id');\n\t}", "public function getReport()\n {\n return $this->report;\n }", "public function getReport()\n {\n return $this->report;\n }", "public function getAllReports()\n {\n return $this->console['reports'];\n }", "public function view_reports(User $user){\n $is_report_owner = is_null(WorkshopReport::where('owner_user_id',$user->id)->select('id')->first())?false:true;\n// $has_report_perm = is_null(ModulePermission::where('user_id',$user->id)->where('permission','report')->select('id')->first())?false:true;\n $has_permission = is_null(WorkshopReport::whereJsonContains('permissions',$user->id)->select('id')->first())?false:true;\n if(in_array('run_workshop_reports',$user->user_permissions)\n || in_array('manage_workshop_reports',$user->user_permissions)\n || $is_report_owner\n || $has_permission\n// || $has_report_perm\n ){\n return true;\n }\n }", "public function getReport()\n {\n return $this->getProcessReport()->toArray();\n }", "public function reports()\n\t{\n\t\treturn $this->hasMany('App\\Report');\n\t}", "public function referral_reports()\n {\n return $this->hasMany(config('inventory.aircon'));\n }", "function get_myreports($userid = 0)\n{\n $myreports_s = get_user_meta($userid, 'myreports');\n\n if ($myreports_s == null) {\n $myreports = array();\n } else {\n $myreports = unserialize($myreports_s);\n }\n\n return $myreports;\n}", "public function report():Array {\n\n\t\treturn $this->report;\n\n\t}", "public function reports()\n {\n return $this->hasMany('App\\Report');\n }", "public function getUserReport($report_id, $user_id){\n\t\t$sql = \"SELECT t1.*, t2.firstname, t2.surname, t2.email\n\t\t\t\tFROM user_reports t1\n\t\t\t\t\tLEFT JOIN users t2 ON t1.user_id = t2.id\n\t\t\t\tWHERE t1.report_id = :report_id AND t1.user_id = :user_id\n\t\t\t\tGROUP BY t1.user_id\n\t\t\t\t\";\n\t\treturn $this->_db->select($sql, array(':report_id' => $report_id, ':user_id' => $user_id));\n\t}", "public function getReport()\n {\n return $this->hasOne(Report::className(), ['reportId' => 'reportId']);\n }", "public function getAllReports()\n {\n return $this->getEntityManager()->createQuery('SELECT r FROM addventure\\Report r')->getResult();\n }", "public function getReports();", "public function reports()\n {\n return $this->morphMany(Report::class, 'reported');\n }", "public function setTransitiveReports(?array $value): void {\n $this->getBackingStore()->set('transitiveReports', $value);\n }", "public function getUserChannels()\n {\n return $this->hasOne(UserChannelResource::class, ['channel_id' => 'id'])\n ->andWhere(['user_id' => Yii::$app->user->id]);\n }", "private function getReporters() {\n $reporters = $this->callSoapClient('mc_project_get_users', array('project_id' => (int) $this->getProjectId(), 'access' => 25));\n foreach($reporters as $key => $reporter) {\n if($reporter->name === 'SoapUser') {\n unset($reporters[$key]);\n }\n }\n return $reporters;\n }" ]
[ "0.5800587", "0.5466042", "0.5454816", "0.5357585", "0.52895", "0.5286441", "0.5282695", "0.52790046", "0.52279687", "0.5179482", "0.5144608", "0.51379406", "0.5111312", "0.5111312", "0.50101554", "0.49971846", "0.49861625", "0.49487773", "0.49196732", "0.48660892", "0.47956315", "0.47683167", "0.4763038", "0.47568023", "0.47265363", "0.4723554", "0.47152868", "0.47019815", "0.46970734", "0.4682973" ]
0.56785244
1
Gets the windowsInformationProtectionDeviceRegistrations property value. Zero or more WIP device registrations that belong to the user.
public function getWindowsInformationProtectionDeviceRegistrations(): ?array { $val = $this->getBackingStore()->get('windowsInformationProtectionDeviceRegistrations'); if (is_array($val) || is_null($val)) { TypeUtils::validateCollectionValues($val, WindowsInformationProtectionDeviceRegistration::class); /** @var array<WindowsInformationProtectionDeviceRegistration>|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'windowsInformationProtectionDeviceRegistrations'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getManagedAppRegistrations(): ?array {\n $val = $this->getBackingStore()->get('managedAppRegistrations');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ManagedAppRegistration::class);\n /** @var array<ManagedAppRegistration>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'managedAppRegistrations'\");\n }", "public function getManagedAppRegistrations(): ?array {\n $val = $this->getBackingStore()->get('managedAppRegistrations');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ManagedAppRegistration::class);\n /** @var array<ManagedAppRegistration>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'managedAppRegistrations'\");\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function getRegisteredPixels() {\r\n\t\treturn $this->registeredPixels;\r\n\t}", "public function getRegisteredDevices(): ?array {\n $val = $this->getBackingStore()->get('registeredDevices');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'registeredDevices'\");\n }", "public function getWindowsInformationProtectionPolicies(): ?array {\n $val = $this->getBackingStore()->get('windowsInformationProtectionPolicies');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, WindowsInformationProtectionPolicy::class);\n /** @var array<WindowsInformationProtectionPolicy>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'windowsInformationProtectionPolicies'\");\n }", "public function getMdmWindowsInformationProtectionPolicies(): ?array {\n $val = $this->getBackingStore()->get('mdmWindowsInformationProtectionPolicies');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, MdmWindowsInformationProtectionPolicy::class);\n /** @var array<MdmWindowsInformationProtectionPolicy>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mdmWindowsInformationProtectionPolicies'\");\n }", "public function getWindowsManagedAppProtections(): ?array {\n $val = $this->getBackingStore()->get('windowsManagedAppProtections');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, WindowsManagedAppProtection::class);\n /** @var array<WindowsManagedAppProtection>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'windowsManagedAppProtections'\");\n }", "public function getServiceDirectoryRegistrations()\n {\n return $this->service_directory_registrations;\n }", "public function getManagedDevices()\n {\n if (array_key_exists(\"managedDevices\", $this->_propDict)) {\n return $this->_propDict[\"managedDevices\"];\n } else {\n return null;\n }\n }", "public function getRegisters()\n {\n return $this->registers;\n }", "public function getWdacSupplementalPolicies(): ?array {\n $val = $this->getBackingStore()->get('wdacSupplementalPolicies');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, WindowsDefenderApplicationControlSupplementalPolicy::class);\n /** @var array<WindowsDefenderApplicationControlSupplementalPolicy>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'wdacSupplementalPolicies'\");\n }", "public function registrationIdJson() {\n return json_encode($this->registrationIds);\n }", "function procapi_registration_get_fields() {\n $fields = procapi_get_fields('registration');\n return $fields;\n}", "public function getDevices() {\n $devices = isset($this->options['device_detection']) ? $this->options['device_detection'] : NULL;\n\n if ($devices && isset($devices['devices'])) {\n $devices = array_filter($devices['devices'], function ($var) {\n return($var != FALSE);\n });\n }\n return $devices;\n }", "public function getIosManagedAppProtections(): ?array {\n $val = $this->getBackingStore()->get('iosManagedAppProtections');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, IosManagedAppProtection::class);\n /** @var array<IosManagedAppProtection>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'iosManagedAppProtections'\");\n }", "private function registerUsers()\n {\n $reg_users = User::all()->pluck('id');\n return $reg_users;\n }", "public function getRegistration()\n {\n return $this->registration;\n }", "public function getDefaultRegistries(): array\n {\n return self::$defaultRegistries;\n }", "public function findNotificationRegistrationsDataProvider() {\n\t\treturn array(\n\t\t\t'withEmptyConstraints' => array(\n\t\t\t\tarray(),\n\t\t\t\t3\n\t\t\t),\n\t\t\t'allPaidEquals1' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'paid' => array('equals' => '1')\n\t\t\t\t),\n\t\t\t\t2\n\t\t\t),\n\t\t\t'confirmationUntilLessThan' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'confirmationUntil' => array('lessThan' => '1402743600')\n\t\t\t\t),\n\t\t\t\t2\n\t\t\t),\n\t\t\t'confirmationUntilLessThanOrEqual' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'confirmationUntil' => array('lessThanOrEqual' => '1402743600')\n\t\t\t\t),\n\t\t\t\t3\n\t\t\t),\n\t\t\t'confirmationUntilGreaterThan' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'confirmationUntil' => array('greaterThan' => '1402740000')\n\t\t\t\t),\n\t\t\t\t1\n\t\t\t),\n\t\t\t'confirmationUntilGreaterThanOrEqual' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'confirmationUntil' => array('greaterThanOrEqual' => '1402740000')\n\t\t\t\t),\n\t\t\t\t3\n\t\t\t),\n\t\t\t'multipleContraints' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'confirmationUntil' => array('lessThan' => '1402743600'),\n\t\t\t\t\t'paid' => array('equals' => '0')\n\t\t\t\t),\n\t\t\t\t1\n\t\t\t),\n\t\t);\n\t}", "public function getRegisterElements() {\n return $this->registerElements;\n }", "function procapi_registration_get_forms() {\n $list = procapi_get_forms('registration');\n return $list['registration'];\n}", "public function get_registered_elements() {\n\t\treturn apply_filters( 'themeblvd_registered_elements', $this->registered_elements );\n\t}", "function getRegistrationSystem()\n {\n return ($this->__registration_system) ;\n }", "public function getRegistration() { return $this->registration; }", "public function getRegistryKeys()\n {\n return $this->keys;\n }", "public function getOwnedDevices(): ?array {\n $val = $this->getBackingStore()->get('ownedDevices');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'ownedDevices'\");\n }", "public function getNewRegistrationIds()\n {\n if ($this->getNewRegistrationIdsCount() == 0) {\n return array();\n }\n $filteredResults = array_filter($this->results, function($result) {\n return isset($result['registration_id']);\n });\n\n $data = array_map(function($result) {\n return $result['registration_id'];\n }, $filteredResults);\n\n return $data;\n }", "public function getNewRegistrationIds()\n {\n if ($this->getNewRegistrationIdsCount() == 0) {\n return array();\n }\n $filteredResults = array_filter(\n $this->results,\n function ($result) {\n return isset($result['registration_id']);\n }\n );\n\n $data = array_map(\n function ($result) {\n return $result['registration_id'];\n },\n $filteredResults\n );\n\n return $data;\n }" ]
[ "0.59296125", "0.59296125", "0.5823944", "0.5823944", "0.5814707", "0.5753892", "0.5661191", "0.5598682", "0.55963224", "0.54593176", "0.54180276", "0.5324964", "0.5316183", "0.5299275", "0.5286833", "0.5286407", "0.5266852", "0.5264387", "0.52312165", "0.52197325", "0.5203205", "0.5193742", "0.5173355", "0.5141693", "0.5138907", "0.51299936", "0.51255214", "0.5120852", "0.5104955", "0.50886047" ]
0.7357229
1
Sets the aboutMe property value. A freeform text entry field for the user to describe themselves. Returned only on $select.
public function setAboutMe(?string $value): void { $this->getBackingStore()->set('aboutMe', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function about($value)\n {\n $this->setProperty('about', $value);\n return $this;\n }", "abstract public function setAbout( $about );", "public function getAbout()\n {\n return $this->_scopeConfig->getValue('idme/settings/about');\n }", "public function setAbout($about)\n {\n $this->about = $about;\n }", "public function setAbout($about) {\n $this->about = $about;\n }", "function about() {\r\n\t\t$this->form_validation->set_rules('name', \t\t'Full Name', \t\t'');\r\n\t\t$this->form_validation->set_rules('gender', \t'Gender', \t\t\t'');\r\n\t\t$this->form_validation->set_rules('day', \t\t'Day', \t\t\t\t'required');\r\n\t\t$this->form_validation->set_rules('month', \t\t'Month', \t\t\t'required');\r\n\t\t$this->form_validation->set_rules('year', \t\t'Year', \t\t\t'required|callback_valid_date');\r\n\t\t$this->form_validation->set_rules('location',\t'Location', \t\t'');\r\n\t\t\r\n\t\t// Set error delimiters\r\n\t\t$this->form_validation->set_error_delimiters('<div class=\"error\">', '</div>');\r\n\t\t\r\n\t\t// Get user info\r\n\t\t$user = $this->user->info_from_column('id', $this->user_id);\r\n\t\t\r\n\t\t// Set data\r\n\t\t$data = array(\r\n\t\t\t'user_info'\t=> $user\r\n\t\t);\r\n\t\t\r\n\t\t// Run validation rules.\r\n\t\tif($this->form_validation->run() == false){\r\n\t\t\r\n\t\t\t// Validation failed OR form not submitted, show form.\r\n\t\t\t$this->load->view('settings/about', $data);\r\n\t\t} else {\r\n\t\t\t// Validation passed.\r\n\t\t\t\r\n\t\t\t// Update User Info.\r\n\t\t\t$this->user->save_info($this->user_id);\r\n\t\t\t\r\n\t\t\t// Set message for user.\r\n\t\t\t$this->messages->add('Your information has been saved.');\r\n\t\t\t\r\n\t\t\t// Redirect to profile will message.\r\n\t\t\tredirect('settings/about');\r\n\t\t}\r\n\t}", "public function getAbout() {\n return $this->about;\n }", "function foucs_admin_about_callback() {\n\t$aboutus_desc = esc_attr( get_option('about_us') );\n echo '<input type=\"text\" name=\"about_us\" value=\"'.$aboutus_desc .'\" placeholder=\"About Us\">\n <p class=\"description\">Write something smart. will Show About Us Description in <strong> Footer </strong></p>';\n}", "public function getAbout()\n {\n return $this->about;\n }", "public function getAbout()\n {\n return $this->about;\n }", "public function setAbout($about)\n {\n $this->about = $about;\n\n return $this;\n }", "public function me() {\n\t\t// Load profile from the current_user object. \n\t\t$data['user'] = $this->accounts_model->get(array('user_hash' => $this->current_user->user_hash), array('own' => TRUE));\n\n\t\t$data['page'] = 'accounts/me';\n\t\t$data['title'] = $data['user']['user_name'];\n\t\t$this->load->library('Layout', $data);\n\t}", "public function getProfileAbout(): string {\n\t\treturn($this->profileAbout);\n\t}", "public function getAboutMe(): ?string {\n $val = $this->getBackingStore()->get('aboutMe');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'aboutMe'\");\n }", "public function edit(AboutMe $profile)\n {\n $this->title = __('admin.edit_profile_page');\n\n //Page content definition\n $this->content = $this->getViewContent('profile.about_me_form',\n [\n 'title' => $this->title,\n 'profileData' => $profile,\n ]\n );\n\n return $this->renderCurrentView();\n }", "function getAbout(){\n\t\tif($this->validUser){\n\t\t\t$position = strpos($this->urlCont, ABOUT_POSITION);\n\t\t\t$subStr = substr($this->urlCont, $position, MAX_STRING_LENGTH); // get just a part of the urls HTML\n\t\t\t$subStr = preg_replace( \"/\\r|\\n/\", \"\", $subStr); // remove new line chars (for preg_match)\n\t\t\tpreg_match(ABOUT_REGEX, $subStr , $match);\n\t\t\t$this->about = trim($match[1]); // remove spaces from the end and the beginning\n\t\t\treturn $this->about;\n\t\t}\n\t\telse\n\t\t\treturn ERROR_INVALID_USER; // the user is not valid\n\t}", "public function getAboutAttribute($value)\n {\n return $this->timeline->about ? $this->timeline->about : null;\n }", "public function setAboutMe(\n User $user\n )\n {\n $response = $this->client()->put( $this->apiBaseUri . '/v1/users/' . $this->getUserId(), [\n 'body' => $user->toJson(),\n 'headers' => ['Content-Type' => 'application/json']\n ]);\n\n if ($response->getStatusCode() != 200) {\n return $this->log($response, false);\n }\n \n return true;\n }", "protected function dlgAbout() {\n $notes = file_get_contents(LEPTON_PATH . '/modules/' . basename(dirname(__FILE__)) . '/CHANGELOG');\n $use_markdown = 0;\n if (file_exists(LEPTON_PATH.'/modules/lib_markdown/standard/markdown.php')) {\n require_once LEPTON_PATH.'/modules/lib_markdown/standard/markdown.php';\n $notes = Markdown($notes);\n $use_markdown = 1;\n }\n $data = array(\n 'version' => sprintf('%01.2f', $this->getVersion()),\n //'img_url' => $this->img_url . '/kit_form_logo_400_267.jpg',\n 'release' => array(\n 'number' => $this->getVersion(),\n 'notes' => $notes,\n 'use_markdown' => $use_markdown\n )\n );\n return $this->getTemplate('backend.about.htt', $data);\n }", "public function aboutUs()\n\t{\n\t\t# grab the data for the page\n\t\treturn $this->getContent(\"about\", \"About Us\");\t\n\t}", "public function aboutAction()\r\n {\r\n $this->initHtml();\r\n\r\n $this->html->h3()->sprintf($this->_('About %s'), $this->project->getName());\r\n $this->html->pInfo(\\MUtil_Html_Raw::raw($this->project->getLongDescription($this->locale->getLanguage())));\r\n $this->html->append($this->_getOrganizationsList());\r\n }", "public function about_us(){\n $data['usercount'] = $this->getUsersOnline();\n\t\t$page = 'about-us';\n\t $this->index($page, $data);\n\t}", "function COXYMallAbout() {\r\n\t}", "abstract public function about();", "public function setUserDisplayName($val)\n {\n $this->_propDict[\"userDisplayName\"] = $val;\n return $this;\n }", "public function setUserDisplayName($val)\n {\n $this->_propDict[\"userDisplayName\"] = $val;\n return $this;\n }", "public function setUserDisplayName($val)\n {\n $this->_propDict[\"userDisplayName\"] = $val;\n return $this;\n }", "public function setUserDisplayName($val)\n {\n $this->_propDict[\"userDisplayName\"] = $val;\n return $this;\n }", "public function modifyAboutMe($Num, $newContent)\n\t\t{\n\t\t\t$db = db::instance();\n\t\t\t$db->modifyUserAboutMeByNum('users', $Num, $newContent);\n\t\t}", "function setChannelAbout($a_ab)\n\t{\n\t\t$this->ch_about = $a_ab;\n\t}" ]
[ "0.6464823", "0.60827893", "0.6006518", "0.595859", "0.5944818", "0.5842518", "0.5529713", "0.55074143", "0.54965365", "0.54965365", "0.54721737", "0.54184353", "0.5392276", "0.5369017", "0.53551686", "0.51277184", "0.50989974", "0.5047658", "0.504327", "0.5004788", "0.49875802", "0.4962721", "0.4919283", "0.4901679", "0.48841575", "0.48841575", "0.48841575", "0.48841575", "0.48319018", "0.4826831" ]
0.6966643
0
Sets the accountEnabled property value. true if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter (eq, ne, not, and in).
public function setAccountEnabled(?bool $value): void { $this->getBackingStore()->set('accountEnabled', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enabled($enabled)\n\t{\n\t\t$this->_userEnabled = (bool) $enabled;\n\t}", "public function setEnabled($enabled);", "public function setEnabled($enabled);", "public function setEnabled($enabled)\n {\n $this->enabled = $enabled;\n }", "public function setEnabled($enabled)\n {\n $this->enabled = $enabled;\n }", "public function setEnabled($enabled)\n {\n $this->enabled = $enabled;\n }", "public function setEnabled(bool $enabled);", "public function set_enabled($enabled){\n\t\t$this->filter->set_enabled($enabled);\n\t}", "public function setEnabled(bool $enabled): void\n {\n $this->enabled = $enabled;\n }", "public function setEnabled(?bool $enabled): void;", "public final function setEnabled($enabled) {\n\t\t$this->_disabled = empty($enabled);\n\t}", "function setEnabled($enabled) {\n\t\t$journal =& Request::getJournal();\n\t\tif ($journal) {\n\t\t\t$this->updateSetting($journal->getJournalId(), 'enabled', $enabled ? true : false);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function setEnabled($id, $enabled = 1)\n {\n $user = $this->getUser($id);\n\n if (empty($user)) {\n return false;\n }\n\n $user['enabled'] = $enabled;\n\n return $this->saveUser($user);\n }", "public static function setEnabled($userId, $enabled)\n {\n return DM\\Users::update(\n array(\n 'id' => $userId\n ,'enabled' => intval($enabled)\n )\n );\n }", "public function setEnabled(bool $enable);", "public function setEnabled($var)\n {\n GPBUtil::checkBool($var);\n $this->enabled = $var;\n\n return $this;\n }", "public function setEnabled($var)\n {\n GPBUtil::checkBool($var);\n $this->enabled = $var;\n\n return $this;\n }", "public function setAccount($var)\n {\n GPBUtil::checkUint32($var);\n $this->account = $var;\n\n return $this;\n }", "public function enable($enabled)\n {\n $this->enabled = $enabled;\n\n }", "public function setAccountStatus($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->account_status !== $v || $this->isNew()) {\n\t\t\t$this->account_status = $v;\n\t\t\t$this->modifiedColumns[] = TigUsersPeer::ACCOUNT_STATUS;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setScanEnabled($enabled){\n $this->scanEnabled = $enabled;\n }", "public function setAccount($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Analytics\\Admin\\V1beta\\Account::class);\n $this->writeOneof(1, $var);\n\n return $this;\n }", "protected function setAccountVerificationEnabled($isEnabled)\n {\n Config::set('auth.verification.enabled', $isEnabled);\n $this->assertEquals(config('auth.verification.enabled'), $isEnabled);\n }", "public function synchronizeAccountStatus(NextADInt_Adi_User $adiUser, $synchronizeDisabledAccounts)\n\t{\n\t\t$uac = $this->userAccountControl($adiUser->getLdapAttributes()->getRaw());\n\n\t\tif (!$this->isAccountDisabled($uac)) {\n\t\t\t$this->logger->info(\"Enabling user '{$adiUser->getUserLogin()}'.\");\n\t\t\t$this->userManager->enable($adiUser->getId());\n\n\t\t\treturn true;\n\t\t}\n\n\t\t$this->logger->info(\"The user '{$adiUser->getUserLogin()}' is disabled in Active Directory.\");\n\n\t\tif (!$synchronizeDisabledAccounts) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->logger->warn(\"Disabling user '{$adiUser->getUserLogin()}'.\");\n\t\t$message = sprintf(__('User \"%s\" is disabled in Active Directory.', 'next-active-directory-integration'), $adiUser->getUserLogin());\n\t\t$this->userManager->disable($adiUser->getId(), $message);\n\n\t\treturn false;\n\t}", "public function enable($accountKey, $groupKey)\n {\n $key = sprintf('%s.%s', $accountKey, $groupKey);\n $this->enabled[$key] = true;\n }", "public function updateEnabled(&$enabled)\n {\n if (Member::currentUserID()) {\n $enabled = false;\n }\n\n // Disable caching for this request if in dev mode\n elseif (Director::isDev()) {\n $enabled = false;\n }\n\n // Disable caching if the request is in dev mode\n else {\n $session = Session::get_all();\n if ($session && count($session)) {\n $enabled = false;\n }\n }\n }", "public function setEnabled(bool $enabled)\r\n {\r\n $this->enabled = $enabled;\r\n\r\n return $this;\r\n }", "public function setScanEnabled($enabled);", "public function setEnabled($enabled) {\n\t\t$this->enabled = $enabled;\n\t\treturn $this;\n\t}", "public function setEnabledValue($var)\n {\n $this->writeWrapperValue(\"enabled\", $var);\n return $this;}" ]
[ "0.6145061", "0.5894151", "0.5894151", "0.58068436", "0.58068436", "0.58068436", "0.5794329", "0.5731888", "0.5529046", "0.55042136", "0.5481098", "0.5438288", "0.54334396", "0.5410008", "0.538964", "0.53705484", "0.53705484", "0.5353092", "0.5298357", "0.5227244", "0.5220461", "0.51883435", "0.5164581", "0.5119951", "0.501463", "0.5009608", "0.5009029", "0.50003403", "0.4992317", "0.4966793" ]
0.64476615
0
Sets the activities property value. The user's activities across devices. Readonly. Nullable.
public function setActivities(?array $value): void { $this->getBackingStore()->set('activities', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setActivity($val)\n {\n $this->_propDict[\"activity\"] = $val;\n return $this;\n }", "public function setSignInActivity(?SignInActivity $value): void {\n $this->getBackingStore()->set('signInActivity', $value);\n }", "public function setActivity(?string $activity) : void\n {\n $this->set('activity', $activity, 'companies');\n }", "public function setActivity($activity) : self\n {\n $this->initialized['activity'] = true;\n $this->activity = $activity;\n return $this;\n }", "static public function update_activity($hotel, $activities=array())\n {\n if (!(int)$hotel)\n return !self::$error = '1214';\n\n $data = array();\n foreach ($activities as $v)\n {\n if (!trim($v['name'])) continue;\n\n $_intro = array('pic'=>$v['pic'] ? $v['pic'] : null, 'text'=>$v['text']);\n\n $data[] = array(\n 'hotel' => (int)$hotel,\n 'name' => trim($v['name']),\n 'type' => 'activity',\n 'intro' => json_encode($_intro, JSON_UNESCAPED_UNICODE),\n 'opentime' => trim($v['opentime']),\n );\n }\n\n $db = db(config('db'));\n\n $db -> beginTrans();\n\n $rs = $db -> prepare(\"DELETE FROM `ptc_hotel_amenity` WHERE `hotel`=:hotel AND `type`='activity'\") -> execute(array(':hotel'=>$hotel));\n if (false === $rs)\n {\n $db -> rollback();\n return !self::$error = '501';\n }\n\n if ($data)\n {\n list($column, $sql, $value) = array_values(insert_array($data));\n $rs = $db -> prepare(\"INSERT INTO `ptc_hotel_amenity` {$column} VALUES {$sql};\") -> execute($value);\n if (false === $rs)\n {\n $db -> rollback();\n return !self::$error = '502';\n }\n }\n\n if (!$db -> commit())\n {\n $db -> rollback();\n return !self::$error = '599';\n }\n\n return true;\n }", "protected function activity($activity) {\n static $activityModel = null;\n if (is_null($activityModel)) {\n $activityModel = new ActivityModel();\n }\n\n $activity = array_merge(array(\n 'ActivityType' => 'HotPotato',\n 'Force' => true,\n 'Notified' => ActivityModel::SENT_PENDING\n ), $activity);\n $activityModel->save($activity);\n }", "public function setActivityDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('activityDateTime', $value);\n }", "public function activities()\n {\n return $this->morphMany(UserActivity::class, 'observable');\n }", "public function activity_get_activities() {\n $oReturn = new stdClass();\n $this->init('activity', 'see_activity');\n\n if (!bp_has_activities())\n return $this->error('activity');\n if ($this->pages !== 1) {\n $aParams ['max'] = true;\n $aParams ['per_page'] = $this->offset;\n $iPages = $this->pages;\n }\n\n $aParams ['display_comments'] = $this->comments;\n $aParams ['sort'] = $this->sort;\n\n $aParams ['filter'] ['user_id'] = $this->userid;\n $aParams ['filter'] ['object'] = $this->component;\n $aParams ['filter'] ['action'] = $this->type;\n $aParams ['filter'] ['primary_id'] = $this->itemid;\n $aParams ['filter'] ['secondary_id'] = $this->secondaryitemid;\n $iLimit = $this->limit;\n\n if ($this->pages === 1) {\n $aParams ['page'] = 1;\n if ($iLimit != 0)\n $aParams['per_page'] = $iLimit;\n $aTempActivities = bp_activity_get($aParams);\n\n\n if (!empty($aTempActivities['activities'])) {\n foreach ($aTempActivities['activities'] as $oActivity) {\n $oReturn->activities[(int) $oActivity->id]->component = $oActivity->component;\n $oReturn->activities[(int) $oActivity->id]->user[(int) $oActivity->user_id]->username = $oActivity->user_login;\n $oReturn->activities[(int) $oActivity->id]->user[(int) $oActivity->user_id]->mail = $oActivity->user_email;\n $oReturn->activities[(int) $oActivity->id]->user[(int) $oActivity->user_id]->display_name = $oActivity->display_name;\n $oReturn->activities[(int) $oActivity->id]->type = $oActivity->type;\n $oReturn->activities[(int) $oActivity->id]->time = $oActivity->date_recorded;\n $oReturn->activities[(int) $oActivity->id]->is_hidden = $oActivity->hide_sitewide === \"0\" ? false : true;\n $oReturn->activities[(int) $oActivity->id]->is_spam = $oActivity->is_spam === \"0\" ? false : true;\n }\n $oReturn->count = count($aTempActivities['activities']);\n } else {\n return $this->error('activity');\n }\n return $oReturn;\n }\n\n for ($i = 1; $i <= $iPages; $i++) {\n if ($iLimit != 0 && ($i * $aParams['per_page']) > $iLimit) {\n $aParams['per_page'] = $aParams['per_page'] - (($i * $aParams['per_page']) - $iLimit);\n $bLastRun = true;\n }\n $aParams ['page'] = $i;\n $aTempActivities = bp_activity_get($aParams);\n if (empty($aTempActivities['activities'])) {\n if ($i == 1)\n return $this->error('activity');\n else\n break;\n }\n else {\n foreach ($aTempActivities['activities'] as $oActivity) {\n $oReturn->activities[(int) $oActivity->id]->component = $oActivity->component;\n $oReturn->activities[(int) $oActivity->id]->user[(int) $oActivity->user_id]->username = $oActivity->user_login;\n $oReturn->activities[(int) $oActivity->id]->user[(int) $oActivity->user_id]->mail = $oActivity->user_email;\n $oReturn->activities[(int) $oActivity->id]->user[(int) $oActivity->user_id]->display_name = $oActivity->display_name;\n $oReturn->activities[(int) $oActivity->id]->type = $oActivity->type;\n $oReturn->activities[(int) $oActivity->id]->time = $oActivity->date_recorded;\n $oReturn->activities[(int) $oActivity->id]->is_hidden = $oActivity->hide_sitewide === \"0\" ? false : true;\n $oReturn->activities[(int) $oActivity->id]->is_spam = $oActivity->is_spam === \"0\" ? false : true;\n }\n $oReturn->count = count($aTempActivities['activities']);\n if ($bLastRun)\n break;\n }\n }\n\n return $oReturn;\n }", "public function setActivity($activity)\n {\n $this->activity = $activity;\n\n return $this;\n }", "public function getActivities(): ?array {\n $val = $this->getBackingStore()->get('activities');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, UserActivity::class);\n /** @var array<UserActivity>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'activities'\");\n }", "public function setVehicleActivity(array $vehicleActivity)\n {\n $this->vehicleActivity = $vehicleActivity;\n return $this;\n }", "public function set_intent($value)\n {\n $this->intent = self::id_or_entity_helper($value, 'Intent');\n }", "protected function SetDefaultActivityId() {\n\t\tglobal $oBrand;\n\t\t$aSelected = array();\n\t\tforeach($oBrand->GetDefaultActivityId() as $id) {\n\t\t\t$aSelected[] = $id;\n\t\t}\n\t\t\n\t\treturn array_merge($aSelected, $this->SetDefaultActivityByProfileType());\n\t}", "public function activities() {\n return $this->hasMany(Activity::class, 'causer_id', 'id');\n }", "protected function createUserActivities()\n\t{\n\t\t$userActivities = [];\n\n\t\tforeach (range(1, 20) as $key => $index)\n\t\t{\n\t\t\t$userActivities[] = [\n\t\t\t\t'user_id' => 1,\n\t\t\t\t'activity_id' => $this->faker->numberBetween(1, 8),\n\t\t\t\t'length' => $this->faker->numberBetween(0, 60),\n\t\t\t\t'time' => time(),\n\t\t\t\t'date' => $this->faker->dateTimeBetween($startDate = '-2 weeks', $endDate = 'now'),\n\t\t\t\t'comment' => 'Getting Fit, Everyone should try Vigor!'\n\t\t\t];\n\t\t}\n\n\t\tUserActivity::insert($userActivities);\n\t}", "private function setup_activities() {\r\n require(dirname(__DIR__) . '/db/activities.php');\r\n\r\n // prepare queries\r\n $this->db->exec('BEGIN');\r\n\r\n // loop default activities and add to db\r\n foreach ($activities as $type => $array) {\r\n\r\n foreach ($array as $value) {\r\n\r\n $statement = $this->db->prepare('INSERT INTO \"activities\" (\r\n \"type\", \"name_et\", \"name_en\", \"created_at\", \"slug\"\r\n ) VALUES (:type, :name_et, :name_en, :created_at, :slug)');\r\n\r\n $statement->bindValue(':type', $type);\r\n $statement->bindValue(':slug', $value['slug']);\r\n $statement->bindValue(':name_et', $value['et']);\r\n $statement->bindValue(':name_en', $value['en']);\r\n $statement->bindValue(':created_at', dateUTC('Y-m-d H:i:s'));\r\n $statement->execute();\r\n }\r\n\r\n }\r\n\r\n // commit queries\r\n $this->db->exec('COMMIT');\r\n\r\n }", "public function userActivity()\n\t{\n\t\treturn $this->hasMany(config('core.acl.user_activity'));\n\t}", "public function setActionsAttribute($value)\n {\n $this->attributes['actions'] = json_encode($value);\n }", "public function activities()\n {\n return $this->morphMany('BT\\Modules\\Activity\\Models\\Activity', 'audit');\n }", "public function mapActivitiesForView(LengthAwarePaginator &$activities)\n\t{\n\t\treturn $activities->map(function ($activity) {\n\t\t\t$activity->causerObject = $this->getVoyagerLinkOrLabelForCauser($activity);\n\t\t\t$activity->subjectClass = collect(explode('\\\\', $activity->subject_type))->last();\n\t\t\t$activity->subjectObject = $this->getSubjectObject($activity);\n\t\t\t$activity->properties = json_encode($activity->properties, JSON_PRETTY_PRINT);\n\n\t\t\treturn $activity;\n\t\t});\n\t}", "public function addActivity($activity) {\n\t\t\\OCP\\Util::writeLog('user_notification', 'Notification: '.serialize($activity), \\OCP\\Util::DEBUG);\n\t\tif($activity['priority']>\\OCA\\UserNotification\\Data::PRIORITY_SEEN){\n\t\t\tparent::addActivity($activity);\n\t\t}\n\t}", "public function setMobileAppIntentAndStates(?array $value): void {\n $this->getBackingStore()->set('mobileAppIntentAndStates', $value);\n }", "public function setOperateType($activityType){\n\t\t$this->data['activityType'] = $activityType;\n\t}", "public function setActivitesPotentiellesValues($responsibilitiesArray, $activitiesString) {\n $activitiesString = trim($activitiesString, '}');\n if ($activitiesString != '{') {\n $activitiesString = $activitiesString . ',';\n }\n if (($key = array_search('(admin_region)', $responsibilitiesArray)) !== false) {\n unset($responsibilitiesArray[$key]);\n }\n if (($key = array_search('(admin_comite)', $responsibilitiesArray)) !== false) {\n unset($responsibilitiesArray[$key]);\n }\n if (empty($responsibilitiesArray)) {\n $activitiesString = trim($activitiesString, ',');\n }\n foreach ($responsibilitiesArray as $value) {\n $activitiesString = $activitiesString . $value;\n if ($value !== end($responsibilitiesArray)) {\n $activitiesString = $activitiesString . ',';\n }\n }\n return $activitiesString . '}';\n }", "function setAttachUsers ($value) {\n\t\t$this->attach_users = $value ? true : false;\n\t}", "public function activities()\n {\n return $this->hasMany('App\\Activity');\n }", "function setActivity()\n {\n $this->validateCTIAccess();\n\n if( !( $activity = $this->input->post('activity') ) )\n {\n return false;\n }\n else\n {\n $name = $this->getWorkerName();\n \\TwilioHelper::setWorkerActivity( $name, $activity );\n }\n }", "public function edit(userActivity $userActivity)\n {\n //\n }", "public function setAct($value) {\n return $this->set(self::ACT, $value);\n }" ]
[ "0.6151735", "0.59528124", "0.57072777", "0.5605311", "0.5503062", "0.54291564", "0.53892446", "0.5280258", "0.5194217", "0.5164403", "0.51348406", "0.5127065", "0.50208056", "0.49996212", "0.496724", "0.49541223", "0.49049482", "0.48946095", "0.4867562", "0.48634374", "0.48408368", "0.48370594", "0.48170203", "0.480222", "0.47744048", "0.47717056", "0.47704515", "0.475154", "0.47504398", "0.4731561" ]
0.67316747
0
Sets the ageGroup property value. Sets the age group of the user. Allowed values: null, Minor, NotAdult and Adult. Refer to the legal age group property definitions for further information. Supports $filter (eq, ne, not, and in).
public function setAgeGroup(?string $value): void { $this->getBackingStore()->set('ageGroup', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAge($ageNow)\n {\n $this->ageGroup = $ageNow;\n }", "function setAge($a_iAge)\n {\n $this->_iAge = is_null($a_iAge) ? NULL : (int) $a_iAge;\n $this->setSearchParameter('age', (int) $this->_iAge, is_null($this->_iAge) ? self::CONDITION_IS_NULL : self::CONDITION_EQUALS);\n }", "public function setAge($age) {\n $this->age = $age;\n }", "function setAge($age){\r\n if(is_numeric($age) && $age>0){\r\n $this->age = $age;\r\n } else {\r\n $this->age=0;\r\n }\r\n }", "private function groupUserAges() {\n $users = User::find()\n ->where([ 'group_id' => $this->id])\n ->asArray()\n ->all();\n $age_info = User::age($users);\n $this->youngest_user = $age_info['youngest_user'];\n $this->oldest_user = $age_info['oldest_user'];\n $this->avg_age = $age_info['avg_age'];\n }", "public function setAge(int $age): void\n {\n $this->_age = $age;\n }", "public function setAge(?FHIRRange $age = null): object\n\t{\n\t\t$this->_trackValueSet($this->age, $age);\n\t\t$this->age = $age;\n\t\treturn $this;\n\t}", "public function getAge()\n {\n return $this->ageGroup;\n }", "public function setAgeRange($age_range)\n {\n $this->age_range = $age_range;\n return $this;\n }", "public function setAge($age) {\n\t\t$this->age = $age;\n\t\treturn $this;\n\t}", "public function setAge($age)\n {\n $this->age = $age;\n\n return $this;\n }", "public function setAge($age)\n {\n $this->age = $age;\n\n return $this;\n }", "abstract public function setAge($age);", "protected function setGroup($group)\n {\n $this->group = (array) $group;\n }", "function isAgeGroup($user, $ageGroup, $isDefault = false)\n{\n\t# if there is a profile, the age group has been set by the user and the ageGroup ID is the one passed through\n\tif(isset($user['profile']) && isset($user['profile']['ageGroup']) and $user['profile']['ageGroup'] == $ageGroup)\n\t{\n\t\t# set the radio button to checked\n\t\treturn 'checked=\"checked\"';\n\t}\n\t# if there is a profile but the age group hasn't been set by the user AND this is the default option\n\telse if(isset($user['profile']) && ! isset($user['profile']['ageGroup']) && $isDefault())\n\t{\n\t\t# set the radio button to checked\n\t\treturn 'checked=\"checked\"';\n\t}\n\t# anything else, return an empty string\n\telse\n\t{\n\t\treturn '';\n\t}\n}", "public function setGestationalAge(?FHIRRange $gestationalAge = null): object\n\t{\n\t\t$this->_trackValueSet($this->gestationalAge, $gestationalAge);\n\t\t$this->gestationalAge = $gestationalAge;\n\t\treturn $this;\n\t}", "public function setAge($age = null)\n {\n if (is_null($age)) {\n trigger_error('No age has been set', E_USER_WARNING);\n // accepted default\n } elseif (!is_int($age)) {\n throw new \\Exception('The animal\\'s age must be an integer');\n } elseif ($age < 0) {\n throw new \\Exception('The animal\\'s age must be a positive value');\n }\n\n $this->age = (int)$age;\n\n return $this;\n }", "public function setAge($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->age !== $v) {\n\t\t\t$this->age = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPassengerPeer::AGE;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function filterGroupflag($groupflag = null)\n {\n $this->_group_filter = $groupflag;\n }", "function setMinAge($minAge)\n {\n $this->__minAge = $minAge ;\n }", "public function setAge($age): self\n {\n $this->age = $age;\n\n return $this;\n }", "public function setUserGroup($userGroup) \n {\n if (!$this->_isNumericArray($userGroup)) {\n $userGroup = array ($userGroup); \n }\n $this->_fields['UserGroup']['FieldValue'] = $userGroup;\n return $this;\n }", "public function agefilter($maxAge){\n\n $persons = Person::selectRaw('*, DATEDIFF(CURRENT_DATE, birthdate)/365 as age')->whereRaw('DATEDIFF(CURRENT_DATE, birthdate)/365 < ?', array($maxAge))\n ->orderBy('id','desc')\n ->paginate($this->per_page);\n\n return PersonResource::collection($persons);\n\n }", "public function setEffectiveGroup( Group $group ) {\n posix_setegid( $group->ID );\n }", "public function setAgeAttribute($value)\n {\n $this->attributes['age'] = $value[0] * 12 + $value[1];\n }", "public function setAgeRange($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Ads\\GoogleAds\\V14\\Common\\AgeRangeInfo::class);\n $this->writeOneof(1, $var);\n\n return $this;\n }", "public function setAge($age):self\n {\n $this->age = $age;\n\n return $this;\n }", "public function setAgeRange($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Ads\\GoogleAds\\V13\\Common\\AgeRangeInfo::class);\n $this->writeOneof(1, $var);\n\n return $this;\n }", "public function group($group = []) {\n\t\t$this->_queryOptions['group'] = array_merge($this->_queryOptions['group'], $group);\n\t}", "public function setGroup($value) {}" ]
[ "0.6598227", "0.58544", "0.5830433", "0.5801382", "0.5573651", "0.5571911", "0.5301484", "0.529498", "0.52846336", "0.52543324", "0.522784", "0.522784", "0.51733196", "0.5167839", "0.5058142", "0.5030272", "0.5029295", "0.5000099", "0.49840537", "0.49794537", "0.4937982", "0.4885957", "0.48762307", "0.48736724", "0.48723975", "0.4816451", "0.4794015", "0.47906205", "0.4790445", "0.47888717" ]
0.61623013
1
Sets the agreementAcceptances property value. The user's terms of use acceptance statuses. Readonly. Nullable.
public function setAgreementAcceptances(?array $value): void { $this->getBackingStore()->set('agreementAcceptances', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAgreementAcceptances(): ?array {\n $val = $this->getBackingStore()->get('agreementAcceptances');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, AgreementAcceptance::class);\n /** @var array<AgreementAcceptance>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'agreementAcceptances'\");\n }", "public function markTermsAsAccepted()\n {\n return $this->forceFill([\n 'terms_accepted_at' => $this->freshTimestamp(),\n ])->save();\n }", "public function setAppConsentRequestsForApproval(?array $value): void {\n $this->getBackingStore()->set('appConsentRequestsForApproval', $value);\n }", "public function setChoicesAttribute($choices)\n {\n if (isset($choices[0])) {\n foreach ($choices as $key => $value) {\n unset($choices[$key]);\n $choices[$value] = $value;\n }\n }\n $this->setContentAttribute('choices', $choices);\n }", "protected function setChoices(array $choices): void\n {\n $this->choices = $choices;\n }", "public function approve(): void\n {\n $this->approved = true;\n }", "function acceptTerms() {\r\n global $USER;\r\n if($USER->ID == $this->ID) {\r\n $this->AcceptedTerms = time();\r\n }\r\n }", "public function getApprovalStatusAllowableValues()\n {\n return [\n self::APPROVAL_STATUS__NEW,\n self::APPROVAL_STATUS_CANCELED,\n self::APPROVAL_STATUS_SENT_TO_APPROVAL,\n self::APPROVAL_STATUS_RECEIVED_BY_APPROVAL,\n self::APPROVAL_STATUS_IN_PROGRESS_APPROVAL,\n self::APPROVAL_STATUS_REJECTED_IN_APPROVAL,\n self::APPROVAL_STATUS_APPROVED_IN_APPROVAL,\n self::APPROVAL_STATUS_ACTIVE_WORKFLOW_APPROVAL,\n ];\n }", "public function setChoices($choices)\n {\n if (func_num_args() > 1) {\n $choices = func_get_args();\n }\n\n $this->choices = [];\n return $this->addChoices($choices);\n }", "public function acceptReferenceAction()\n {\n \t$accepted = Extended\\reference_request::updateAcceptedStatus( Auth_UserAdapter::getIdentity ()->getId (), $this->getRequest()->getparam('reference_req_id'), \\Extended\\reference_request::IS_ACCEPTED_YES, \\Extended\\reference_request::VISIBILITY_CRITERIA_DISPLAYED );\n \tif($accepted):\n\t\t\techo Zend_Json::encode( 1 );\n\t\telse:\n\t\t\techo Zend_Json::encode( 0 );\n\t\tendif;\n\t\tdie;\n }", "public function setAcceptanceDate($value)\n {\n return $this->set(self::ACCEPTANCEDATE, $value);\n }", "public function approve()\n {\n $now = Carbon::now();\n\n Observation::whereIn('id', $this->getObservationIds())->update([\n 'approved_at' => $now,\n 'updated_at' => $now,\n ]);\n\n FieldObservation::whereIn('id', $this->getIds())->update([\n 'unidentifiable' => false,\n 'updated_at' => $now,\n ]);\n }", "public function hasConsent()\r\n {\r\n return $this->value() == 'accept';\r\n }", "public function setTracksAccepted($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->tracks_accepted !== $v || $this->isNew()) {\n\t\t\t$this->tracks_accepted = $v;\n\t\t\t$this->modifiedColumns[] = TracksPeer::TRACKS_ACCEPTED;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function approve()\n {\n return $this->setAttribute('approved', !$this->approved)->save();\n }", "public function setAcceptedPayments(array $acceptedPayments)\n {\n $this->acceptedPayments = $acceptedPayments;\n return $this;\n }", "public function acceptConsentRequest($consent_challenge, $body = null)\n {\n list($response) = $this->acceptConsentRequestWithHttpInfo($consent_challenge, $body);\n return $response;\n }", "public function hasAcceptedTerms()\n {\n return ! is_null($this->terms_accepted_at);\n }", "public function forUpLinesApproval()\n {\n if(auth()->user()->hasRole(['Finance Admin']))\n {\n return CommissionRequest::where('status','for review')->get();\n }\n\n return collect($this->getCommissionRequests())->filter(function($value, $key){\n\n if(collect($value->approval)->where('id',auth()->user()->id)->whereNull('approval')->count() > 0)\n return $value->approval;\n });\n }", "protected function storeUserAgreementStatus($agreement_type, $agreed)\n {\n Tygh::$app['session']['gdpr'][$agreement_type] = $agreed;\n return $this;\n }", "public function reply_accept(Request $request)\n {\n $request->validate([\n 'mission_id' => 'required|exists:missions,id',\n 'user_id' => 'required|exists:user,id',\n 'reply' => 'required|in:1,2'\n ]);\n $assignment = MissionAssignment::where('mission_id', $request->mission_id)->where('user_id', $request->user_id)->first();\n $assignment->status = $request->reply;\n $assignment->save();\n alert()->success('Mission Accepted Successfully', 'Success');\n }", "public function setGuaranteeClaimEventList($value)\n {\n if (!$this->_isNumericArray($value)) {\n $value = array ($value);\n }\n $this->_fields['GuaranteeClaimEventList']['FieldValue'] = $value;\n return $this;\n }", "public function setAccepted($var)\n\t{\n\t\tGPBUtil::checkUint32($var);\n\t\t$this->accepted = $var;\n\n\t\treturn $this;\n\t}", "public function setApprovals(?array $value): void {\n $this->getBackingStore()->set('approvals', $value);\n }", "public function setChoices($choices)\n {\n $this->choices = $choices;\n\n return $this;\n }", "public function setChoices(?array $value): void {\n $this->getBackingStore()->set('choices', $value);\n }", "public function setOrganizerAvailability(?FreeBusyStatus $value): void {\n $this->getBackingStore()->set('organizerAvailability', $value);\n }", "public function addAvsProofing($allow) {\n\n $this->avsAllowed = $allow;\n }", "public function setEligibleCategoryIds(?array $eligibleCategoryIds): void\n {\n $this->eligibleCategoryIds['value'] = $eligibleCategoryIds;\n }", "public function consentAction()\n {\n $resultArray = array(self::CONSENT_PARAMETER_KEY => false);\n\n if ($this->getConfig()->getDeviceFingerPrinting()) {\n $resultArray[self::CONSENT_PARAMETER_KEY] =\n (bool)Mage::getSingleton('customer/session')\n ->getData(Netresearch_OPS_Model_Payment_Abstract::FINGERPRINT_CONSENT_SESSION_KEY);\n }\n\n $this->getResponse()->setHeader('Content-type', 'application/json');\n $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($resultArray));\n }" ]
[ "0.59045714", "0.54278153", "0.50309175", "0.48371387", "0.46542153", "0.46426734", "0.45440245", "0.45297894", "0.4492242", "0.448202", "0.43920276", "0.43729767", "0.43525535", "0.43359286", "0.42989308", "0.4291874", "0.42717856", "0.42556143", "0.42374277", "0.42338347", "0.422712", "0.42253807", "0.42078787", "0.42011434", "0.41990897", "0.41818383", "0.41798416", "0.41644904", "0.41607732", "0.41525683" ]
0.709415
0
Sets the analytics property value. The analytics property
public function setAnalytics(?UserAnalytics $value): void { $this->getBackingStore()->set('analytics', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setGoogleAnalytics($googleAnalytics)\n {\n $this->options['google-analytics'] = (string) $googleAnalytics;\n }", "public function add_analytics_settings() {\n add_settings_section(\n 'laterpay_analytics',\n sprintf( esc_html__( '%s Analytics %s', 'laterpay' ), '<a href=\"#lpanalytics\" class=\"lp_options_a\"><div id=\"lpanalytics\">', '</div></a>' ),\n array( $this, 'get_analytics_section_description' ),\n 'laterpay'\n );\n\n $user_tracking = $this->get_ga_tracking_value();\n\n // Get Value of Auto Detected Text if set.\n if ( ! empty( $user_tracking['auto_detected'] ) && 1 === (int) $user_tracking['auto_detected'] ) {\n $show_notice = 1;\n } else {\n $show_notice = 0;\n }\n\n // Add Personal GA Section.\n add_settings_field(\n 'laterpay_user_tracking_data',\n esc_html__( 'Your Google Analytics:', 'laterpay' ),\n array( $this, 'get_ga_field_markup' ),\n 'laterpay',\n 'laterpay_analytics',\n array(\n array(\n 'name' => 'laterpay_ga_personal_enabled_status',\n 'value' => 1,\n 'type' => 'checkbox',\n 'parent_name' => 'laterpay_user_tracking_data',\n ),\n array(\n 'name' => 'laterpay_ga_personal_ua_id',\n 'type' => 'text',\n 'classes' => [ 'lp_ga-input' ],\n 'parent_name' => 'laterpay_user_tracking_data',\n 'show_notice' => $show_notice,\n )\n )\n );\n\n register_setting( 'laterpay', 'laterpay_user_tracking_data' );\n\n }", "public function setInsights(?string $value): void {\n $this->getBackingStore()->set('insights', $value);\n }", "public function setAnalyticsPercentage()\n {\n if ($this->isPrompt()) {\n foreach($this['answers'] as $answer) {\n $answer->responseAnalytics->calculatePercentage();\n }\n }\n }", "function monsterinsights_amp_add_analytics( $analytics ) {\n\tif ( isset( $analytics['yst-googleanalytics'] ) ) {\n\t\treturn $analytics;\n\t}\n\n\t$track = function_exists( 'monsterinsights_track_user' ) ? monsterinsights_track_user() : ! monsterinsights_disabled_user_group();\n\tif ( ! $track ) {\n\t\treturn $analytics;\n\t}\n\n\t// if there's no UA code set\n\t$ua = monsterinsights_get_ua_to_output( array( 'amp' => true ) );\n\tif ( empty( $ua ) ) {\n\t\treturn $analytics;\n\t}\n\t$site_url = str_replace( array( 'http:', 'https:'), '', site_url() );\n\t$analytics['monsterinsights-googleanalytics'] = array(\n\t\t'type' => 'googleanalytics',\n\t\t'attributes' => array(),\n\t\t'config_data' => array(\n\t\t\t'vars' => array( \n\t\t\t\t'account' => $ua,\n\t\t\t),\n\t\t\t'triggers' => array(\n\t\t\t\t'trackPageview' => array(\n\t\t\t\t\t'on' => 'visible',\n\t\t\t\t\t'request' => 'pageview',\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t);\n\n\t// Dimensions Addon Integration\n\t// First, let's get dimensions by pulling them out of the normal frontend output\n\t$options = apply_filters( 'monsterinsights_frontend_tracking_options_analytics_before_pageview', array() );\n\t$has_dim = false;\n\tforeach ( $options as $optionname => $optionvalue ) {\n\t\tif ( monsterinsights_string_starts_with( $optionname, 'dimension' ) ) {\n\t\t\t$has_dim = true;\n\t\t\t$num = str_replace( 'dimension', '', $optionname );\n\t\t\t$dimensionname = str_replace( 'dimension', 'cd', $optionname );\n\t\t\t$optionvalue = str_replace(\"'set', 'dimension\" . absint( $num ) . \"', '\", '', $optionvalue );\n\t\t\t$optionvalue = rtrim( $optionvalue,\"'\" );\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['trackPageview']['vars'][$dimensionname] = $optionvalue;\n\t\t\tif ( isset( $analytics['monsterinsights-googleanalytics']['config_data']['requests'] ) ) {\n\t\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['requests']['pageviewWithCDs'] = $analytics['monsterinsights-googleanalytics']['config_data']['requests']['pageviewWithCDs'] . '&cd' . $num . '=${cd' . $num . '}';\n\t\t\t} else {\n\t\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['requests']['pageviewWithCDs'] = '${pageview}' . '&cd' . $num . '=${cd' . $num . '}';\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( $has_dim ){\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['trackPageview']['request'] = 'pageviewWithCDs';\n\t}\n\n\t$tracking = monsterinsights_get_option( 'tracking_mode', false );\n\t$events = monsterinsights_get_option( 'events_mode', false );\n\tif ( $events === 'js' && $tracking === 'analytics' ) {\n\t\t// Track Downloads\n\t\t$track_as = monsterinsights_get_option( 'track_download_as', '' );\n\t\tif ( $track_as === 'pageview' ) {\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['downloadLinks']['on'] = 'click';\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['downloadLinks']['selector'] = 'a, .monsterinsights-download';\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['downloadLinks']['request'] = 'pageview';\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['downloadLinks']['vars'] = array( \n\t\t\t\t'page' => '${page}',\n\t\t\t);\n\t\t} else {\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['downloadLinks']['on'] = 'click';\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['downloadLinks']['selector'] = 'a, .monsterinsights-download';\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['downloadLinks']['request'] = 'event';\n\t\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['downloadLinks']['vars'] = array( \n\t\t\t\t'eventCategory' => '${category}',\n\t\t\t\t'eventAction' => '${action}',\n\t\t\t\t'eventLabel' => '${label}',\n\t\t\t);\n\t\t}\n\n\t\t// Track Internal as Outbound\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['internalAsOutboundLinks']['on'] = 'click';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['internalAsOutboundLinks']['selector'] = 'a, .monsterinsights-internal-as-outbound';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['internalAsOutboundLinks']['request'] = 'event';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['internalAsOutboundLinks']['vars'] = array( \n\t\t\t'eventCategory' => '${category}',\n\t\t\t'eventAction' => '${action}',\n\t\t\t'eventLabel' => '${label}',\n\t\t);\n\n\t\t// Track External\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['outboundLinks']['on'] = 'click';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['outboundLinks']['selector'] = 'a, .monsterinsights-outbound-link';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['outboundLinks']['request'] = 'event';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['outboundLinks']['vars'] = array( \n\t\t\t'eventCategory' => '${category}',\n\t\t\t'eventAction' => '${action}',\n\t\t\t'eventLabel' => '${label}',\n\t\t);\n\n\t\t// Track Tel\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['telLinks']['on'] = 'click';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['telLinks']['selector'] = 'a, .monsterinsights-tel';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['telLinks']['request'] = 'event';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['telLinks']['vars'] = array( \n\t\t\t'eventCategory' => '${category}',\n\t\t\t'eventAction' => '${action}',\n\t\t\t'eventLabel' => '${label}',\n\t\t);\n\n\t\t// Track Mailto\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['mailtoLinks']['on'] = 'click';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['mailtoLinks']['selector'] = 'a, .monsterinsights-mailto';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['mailtoLinks']['request'] = 'event';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['mailtoLinks']['vars'] = array( \n\t\t\t'eventCategory' => '${category}',\n\t\t\t'eventAction' => '${action}',\n\t\t\t'eventLabel' => '${label}',\n\t\t);\n\t}\n\n\t$samplerate = monsterinsights_get_option( 'samplerate', 100 );\n\t// If performance addon turned on sample our event\n\tif ( (int ) $samplerate > 0 && (int) $samplerate < 100 ) {\n\t\t// Set ours to sample\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['trackPageview']['sampleSpec']['sampleOn'] = '${clientId}';\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['trackPageview']['sampleSpec']['threshold'] = (int) $samplerate;\n\t}\n\n\t$samplerate = monsterinsights_get_option( 'speedsamplerate', 1 );\n\t// If performance addon turned on sample Google's pagespeed event\n\tif ( (int) $samplerate > 0 && (int) $samplerate < 100 && (int) $samplerate !== 1 ) {\n\t\t// Set Google's to sample\n\t\t$analytics['monsterinsights-googleanalytics']['config_data']['triggers']['performanceTiming']['sampleSpec']['threshold'] = (int) $samplerate;\n\t}\n\n\t// Todo: Future: Optin: https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md or\n\t// https://www.ampproject.org/docs/reference/components/amp-analytics 'data-consent-notification-id'\n\t// Todo: Clarification on tracking of internal links\n\t$analytics = apply_filters( 'monsterinsights_amp_add_analytics', $analytics );\n\treturn $analytics;\n}", "private function set_sent_pageview() {\n\t\t$this->js[] = \"ga('send', 'pageview');\";\n\t}", "public function UpdateAnalyticsModuleVars()\n\t{\n\t\treturn $this->UpdateModuleVars('Analytics');\n\t}", "function zaxu_set_pageview($post_id) {\n $count_key = 'zaxu_pageview_count';\n $count = get_post_meta($post_id, $count_key, true);\n if ($count == '') {\n $count = 1;\n delete_post_meta($post_id, $count_key);\n add_post_meta($post_id, $count_key, '1');\n } else {\n $count++;\n update_post_meta($post_id, $count_key, $count);\n }\n }", "public function __set($property, $value) {\n\t\tswitch($property) {\n\t\t\tcase 'count':\n\t\t\t\t$this->count = +$value;\n\t\t\t\tbreak;\n\n\t\t\tcase 'count2':\n\t\t\t\t$this->count2 = +$value;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tparent::__set($property, $value);\n\t\t\t\tbreak;\n\t\t}\n\t}", "public static function update_googleanalytics() {\r\n\r\n\t\t$version\t\t\t = get_option( self::GA_VERSION_OPTION_NAME );\r\n\t\t$installed_version\t = get_option( self::GA_VERSION_OPTION_NAME, '1.0.7' );\r\n\t\t$old_property_value\t = Ga_Helper::get_option( 'web_property_id' );\r\n\t\tif ( version_compare( $installed_version, GOOGLEANALYTICS_VERSION, 'eq' ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif ( empty( $old_property_value ) && empty( $version ) ) {\r\n\t\t\tupdate_option( self::GA_SHARETHIS_TERMS_OPTION_NAME, true );\r\n\t\t}\r\n\r\n\t\tif ( version_compare( $installed_version, GOOGLEANALYTICS_VERSION, 'lt' ) ) {\r\n\r\n\t\t\tif ( !empty( $old_property_value ) ) {\r\n\t\t\t\tGa_Helper::update_option( self::GA_WEB_PROPERTY_ID_MANUALLY_VALUE_OPTION_NAME, $old_property_value );\r\n\t\t\t\tGa_Helper::update_option( self::GA_WEB_PROPERTY_ID_MANUALLY_OPTION_NAME, 1 );\r\n\t\t\t\tdelete_option( 'web_property_id' );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tupdate_option( self::GA_VERSION_OPTION_NAME, GOOGLEANALYTICS_VERSION );\r\n\t}", "public function setProperty($key,$value) {\n $this->scriptProperties[$key] = $value;\n }", "public function manual_analytics_code() {\n\n\t\t// If Yoast's plugin is activated, then we'll use that instead\n\t\tif ( class_exists( 'Yoast_GA_Admin' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( '' != get_post_meta( get_the_ID(), self::META_KEY, true ) ) {\n\t\t\t$note_id_addition = \"\\n_gaq.push(['_setCustomVar',1, 'note_id', '\" . absint( get_post_meta( get_the_ID(), self::META_KEY, true ) ) . \"']);\";\n\t\t} else {\n\t\t\t$note_id_addition = '';\n\t\t}\n\n\t\techo \"\\n<script>\nvar _gaq = _gaq || [];\n_gaq.push(['_setAccount', '\" . self::MEDIA_UA_CODE . \"']);\" . $note_id_addition . \"\n_gaq.push(['_trackPageview']);\n(function() {\nvar ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\nga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\nvar s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n})();\n</script>\\n\";\n\t}", "public function setHealthStatus(?UserExperienceAnalyticsHealthState $value): void {\n $this->getBackingStore()->set('healthStatus', $value);\n }", "public function amp_add_analytics_script( $data ) {\n\t\t\tif ( ! isset( $data['amp_component_scripts'] ) ) {\n\t\t\t\t$data['amp_component_scripts'] = array();\n\t\t\t}\n\n\t\t\t$data['amp_component_scripts']['amp-analytics'] = 'https://cdn.ampproject.org/v0/amp-analytics-0.1.js';\n\n\t\t\treturn $data;\n\t\t}", "public function setDeviceReporting(?int $value): void {\n $this->getBackingStore()->set('deviceReporting', $value);\n }", "private function addAnalyticsFromSettings() {\n $analytics_embed_code = variable_get('fb_instant_articles_analytics_embed_code');\n if ($analytics_embed_code) {\n $document = new \\DOMDocument();\n $fragment = $document->createDocumentFragment();\n $valid_html = @$fragment->appendXML($analytics_embed_code);\n if ($valid_html) {\n $this->instantArticle\n ->addChild(\n Analytics::create()\n ->withHTML(\n $fragment\n )\n );\n }\n }\n }", "function setOptionMetaValue($value)\n {\n $this->__ometa_value = $value ;\n }", "function analytics_settings(){\n add_settings_field(\n 'inter-ga-id', // Field ID\n __( 'Google Analytics (UA):', 'inter' ), // Field title \n array( $this, 'ga_input_markup' ), // Field callback function\n 'edit-inter-theme', // Settings page slug\n 'inter-analytics', // Section ID\n array( 'label_for' => 'inter-ga-id' ) // Display field title as label\n );\n add_settings_field(\n 'inter-gtm-id', // Field ID\n __( 'Google Tag Manager (GTM):', 'inter' ), // Field title \n array( $this, 'gtm_input_markup' ), // Field callback function\n 'edit-inter-theme', // Settings page slug\n 'inter-analytics', // Section ID\n array( 'label_for' => 'inter-gtm-id' ) // Display field title as label\n );\n\n //Register Analytics Section Settings\n register_setting(\n 'edit-inter-theme', // Options group\n 'inter-ga-id', // Option name/database\n array(\n 'sanitize_callback' => 'sanitize_text_field' // Sanitize input value\n )\n );\n register_setting(\n 'edit-inter-theme',\n 'inter-gtm-id',\n array(\n 'sanitize_callback' => 'sanitize_text_field'\n )\n );\n }", "private function set_ua_code() {\n\t\t$this->js[] = \"ga('create', '\" . $this->ga_object->get_ua_code() . \"', '\" . $this->siteinfo->get_siteurl() . \"');\";\n\t}", "public static function activate_googleanalytics() {\r\n\t\tadd_option( self::GA_WEB_PROPERTY_ID_OPTION_NAME, Ga_Helper::GA_DEFAULT_WEB_ID );\r\n\t\tadd_option( self::GA_EXCLUDE_ROLES_OPTION_NAME, wp_json_encode( array() ) );\r\n\t\tadd_option( self::GA_SHARETHIS_TERMS_OPTION_NAME, false );\r\n\t\tadd_option( self::GA_HIDE_TERMS_OPTION_NAME, false );\r\n\t\tadd_option( self::GA_VERSION_OPTION_NAME );\r\n\t\tadd_option( self::GA_OAUTH_AUTH_CODE_OPTION_NAME );\r\n\t\tadd_option( self::GA_OAUTH_AUTH_TOKEN_OPTION_NAME );\r\n\t\tadd_option( self::GA_ACCOUNT_DATA_OPTION_NAME );\r\n\t\tadd_option( self::GA_SELECTED_ACCOUNT );\r\n\t\tadd_option( self::GA_WEB_PROPERTY_ID_MANUALLY_OPTION_NAME );\r\n\t\tadd_option( self::GA_WEB_PROPERTY_ID_MANUALLY_VALUE_OPTION_NAME );\r\n\t\tadd_option( self::GA_DISABLE_ALL_FEATURES );\r\n\t\tGa_Cache::add_cache_options();\r\n\t}", "public function __set($property, $value)\r\n\t{\r\n\t\t$this->option($property, $value);\r\n\t}", "private function set_google_code() {\n\t\t$this->js[] = \"(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n\t(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n\tm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\";\n\t}", "public function __set($property, $value)\n\t{\n\t\t$this->option($property, $value);\n\t}", "private static function set_ganalytics_v3(\n SendGridV3\\Mail $email_v3,\n SendGrid\\Email $email_v2\n ) {\n $filter_key = 'ganalytics';\n $filter_settings = array( 'enable', 'utm_source', 'utm_medium', 'utm_term', 'utm_content', 'utm_campaign' );\n\n $settings = self::get_smtp_filter_settings( $email_v2, $filter_key, $filter_settings );\n\n if ( isset( $settings[ 'enable' ] ) ) {\n $ganalytics_tracking_settings = new SendGridV3\\Ganalytics();\n\n if ( $settings[ 'enable' ] ) {\n $ganalytics_tracking_settings->setEnable( true );\n }\n \n if( isset( $settings[ 'utm_source' ] ) ) {\n $ganalytics_tracking_settings->setCampaignSource( $settings[ 'utm_source' ] );\n }\n\n if( isset( $settings[ 'utm_medium' ] ) ) {\n $ganalytics_tracking_settings->setCampaignMedium( $settings[ 'utm_medium' ] );\n }\n\n if( isset( $settings[ 'utm_term' ] ) ) {\n $ganalytics_tracking_settings->setCampaignTerm( $settings[ 'utm_term' ] );\n }\n\n if( isset( $settings[ 'utm_content' ] ) ) {\n $ganalytics_tracking_settings->setCampaignContent( $settings[ 'utm_content' ] );\n }\n\n if( isset( $settings[ 'utm_campaign' ] ) ) {\n $ganalytics_tracking_settings->setCampaignName( $settings[ 'utm_campaign' ] );\n }\n\n if ( ! isset( $email_v3->tracking_settings ) ) {\n $tracking_setings = new SendGridV3\\TrackingSettings();\n $email_v3->setTrackingSettings( $tracking_setings );\n }\n\n $email_v3->getTrackingSettings()->setGanalytics( $ganalytics_tracking_settings );\n }\n }", "private function set_tracking_code() {\n\t\t$this->js[] = '<!-- Awesome Google Analytics by CodeBrothers, version ' . AGA_VERSION . ' - https://wordpress.org/plugins/awesome-google-analytics/ -->';\n\t\t$this->js[] = '<script type=\"text/javascript\">';\n\t\t$this->add_js_values();\n\t\t$this->js[] = '</script>';\n\t\t$this->js[] = '<!-- / Awesome Google Analytics by CodeBrothers - https://wordpress.org/plugins/awesome-google-analytics/ -->';\n\t}", "public function __set($property, $value)\n {\n }", "public function setProperty($property,$value)\n\n\n {\n\n\n $this->properties[$property] = $value;\n\n\n }", "public function setProperty($property, $value);", "public function yoast_analytics_code( $gaq_push ) {\n\n\t\t// If Yoast's plugin isn't activated, then don't run this\n\t\tif ( ! class_exists( 'Yoast_GA_Admin' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$tracker_name = 'MediaHubTracker';\n\t\t$gaq_push[] = \"'create', '\" . self::MEDIA_UA_CODE . \"', 'auto', {'name': '$tracker_name'}\";\n\t\t$gaq_push[] = \"'set', 'forceSSL', true, {'name': '$tracker_name'}\";\n\t\t$gaq_push[] = \"'$tracker_name.send', 'pageview'\";\n\n\n\t\tif ( '' != get_post_meta( get_the_ID(), self::META_KEY, true ) ) {\n\t\t\t$gaq_push[] = \"'set', 'CustomVar', 1, {'note_id': '\" . get_post_meta( get_the_ID(), self::META_KEY, true ) . \"'}\";\n\t\t}\n\n\t\treturn $gaq_push;\n\t}", "function echotheme_analytics()\n{\n\tif (function_exists('of_get_option') && $analytics = of_get_option('site-analytics')) {\n?>\n<script type=\"text/javascript\"><?php echo $analytics ?></script>\n<?php\n\t}\n}" ]
[ "0.648222", "0.5941181", "0.57982874", "0.57248056", "0.57119614", "0.5605353", "0.5453813", "0.5448876", "0.5428115", "0.54067963", "0.5403403", "0.5284742", "0.5276031", "0.52365917", "0.52278656", "0.5213783", "0.52072483", "0.5201762", "0.5184999", "0.5162635", "0.51373994", "0.51345", "0.51318306", "0.51150835", "0.5113846", "0.5099205", "0.5071564", "0.506281", "0.5062265", "0.5059896" ]
0.7461919
0
Sets the appConsentRequestsForApproval property value. The appConsentRequestsForApproval property
public function setAppConsentRequestsForApproval(?array $value): void { $this->getBackingStore()->set('appConsentRequestsForApproval', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAppConsentRequestsForApproval(): ?array {\n $val = $this->getBackingStore()->get('appConsentRequestsForApproval');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, AppConsentRequest::class);\n /** @var array<AppConsentRequest>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'appConsentRequestsForApproval'\");\n }", "public function setApproval(ObjectStorage $backendUsers);", "public function setRoleAssignmentRequests(?array $value): void {\n $this->getBackingStore()->set('roleAssignmentRequests', $value);\n }", "function setApps_req($sapps_req = '')\n {\n $this->sapps_req = $sapps_req;\n }", "public function forUpLinesApproval()\n {\n if(auth()->user()->hasRole(['Finance Admin']))\n {\n return CommissionRequest::where('status','for review')->get();\n }\n\n return collect($this->getCommissionRequests())->filter(function($value, $key){\n\n if(collect($value->approval)->where('id',auth()->user()->id)->whereNull('approval')->count() > 0)\n return $value->approval;\n });\n }", "public function updateCommissionRequest($requestId, $approvals)\n {\n $commissionRequest = $this->getSpecifiedRequest($requestId);\n $commissionRequest->approval = $approvals;\n\n if($commissionRequest->save())\n if($this->check_if_all_upLine_permission_was_approved($requestId))\n {\n $commissionRequest->status = 'for review';\n $commissionRequest->save();\n }\n }", "public function setApprovalId(?string $value): void {\n $this->getBackingStore()->set('approvalId', $value);\n }", "public function setApproval(Kontrak $kontrak, $approval);", "function reapprove() {\n $comment = \"Set to In Progress status for re-approval.\";\n foreach ($this->approvals_required() as $ap_type_id => $ap_type_desc) {\n $this->approve($ap_type_id, \"\", $comment);\n } // foreach\n }", "private function sendApprovalEmails()\n\t\t{\n\t\t\tforeach ($this->approvals as $approval)\n\t\t\t{\n\t\t\t\t$approval->Load();\n\t\t\t\t$approval->Save($this->id);\n\t\t\t\t$msgSuccess = $this->sendApprovalEmail($approval);\n\t\t\t}\n\t\t}", "public function setApproved($request, $response, $args) \n {\n $commentIds = $request->getParam('commentIds') ?? [];\n \n if (empty($args['postId'])) {\n return $response->withStatus(400)->write(\n json_encode(['error' => 'Не указан идентификатор поста.'])\n );\n }\n \n $comments = \\Models\\PostComment::fetchAll([\n 'postId' => $args['postId'],\n 'isDeleted' => [\n '$ne' => true \n ]\n ]);\n \n foreach ($comments as $comment) {\n $comment->isApproved = in_array($comment->id, $commentIds);\n $comment->save();\n }\n \n return $response->write(\n json_encode(['success' => true])\n );\n }", "public function getUserApprovalRequests()\n {\n return Leave::where('approval_id', auth()->id())->orderBy('id', 'desc')->paginate(20);\n }", "public function setAgreementAcceptances(?array $value): void {\n $this->getBackingStore()->set('agreementAcceptances', $value);\n }", "public function setApprovals(?array $value): void {\n $this->getBackingStore()->set('approvals', $value);\n }", "public function setRequestedScopes(array $requestedScopes)\n {\n $this->requestedScopes = $requestedScopes;\n\n return $this;\n }", "public function setRoleAssignmentScheduleRequests($val)\n {\n $this->_propDict[\"roleAssignmentScheduleRequests\"] = $val;\n return $this;\n }", "public function sendApproval(Request $request)\n {\n DB::connection('tenant')->beginTransaction();\n $transferItems = TransferItem::whereIn('id', $request->ids)->get();\n\n foreach ($transferItems as $transferItem) { \n $datas[$transferItem->form->request_approval_to][] = $transferItem;\n }\n\n foreach ($datas as $data) {\n $no = 1;\n $ids = '';\n foreach ($data as $transferItem) {\n $transferItem['no'] = $no;\n $transferItem['created_by'] = User::findOrFail($transferItem->form->created_by)->getFullNameAttribute();\n if ($transferItem->form->cancellation_status === 0) {\n $transferItem['action'] = 'delete';\n } else if ($transferItem->form->cancellation_status === null and $transferItem->form->approval_status === 0) {\n $userActivity = UserActivity::where('number', $transferItem->form->number);\n $userActivity = $userActivity->where('activity', 'like', '%' . 'Update' . '%');\n $updateCount = $userActivity->count();\n if ($updateCount > 0) {\n $transferItem['action'] = 'update';\n } else {\n $transferItem['action'] = 'create';\n }\n }\n $no++;\n $ids .= $transferItem->id . ',';\n }\n $ids = substr($ids, 0, -1);\n $approver = User::findOrFail($data[0]->form->request_approval_to);\n\n // create token based on request_approval_to\n $token = Token::where('user_id', $approver->id)->first();\n\n if (!$token) {\n $token = new Token([\n 'user_id' => $approver->id,\n 'token' => md5($approver->email.''.now()),\n ]);\n $token->save();\n }\n\n if (count($data) > 1) {\n $form['number'] = $data[0]->form->number . ' - ' . end($data)->form->number;\n $form['date'] = date('d F Y', strtotime($data[0]->form->date)) . ' - ' . date('d F Y', strtotime(end($data)->form->date));\n $form['created'] = date('d F Y H:i:s', strtotime($data[0]->form->created_at)) . ' - ' . date('d F Y H:i:s', strtotime(end($data)->form->created_at));\n } else {\n $form['number'] = $data[0]->form->number;\n $form['date'] = $data[0]->form->date;\n $form['created'] = $data[0]->form->created_at;\n };\n\n DB::connection('tenant')->commit();\n\n Mail::to([\n $approver->email,\n ])->queue(new TransferItemApprovalRequestSent(\n $data,\n $approver,\n $form,\n $_SERVER['HTTP_REFERER'],\n $ids,\n $token->token\n ));\n }\n\n return [\n 'input' => $request->all(),\n ];\n }", "public function getViewApprovalRequests()\n {\n return Leave::where(['approval_id' => auth()->id(), 'status' => 1])->orderBy('id', 'desc')->paginate(20);\n }", "private function send_email_approve($data) {\r\n if (!empty($this->settings['approve'])) {\r\n $users = get_list_user(''.DB_PREFIX.'users.id in(' . generate_where_in($this->settings['approve']) . ')', $this->settings['approve'], 'user_email,user_name');\r\n if (empty($users)) {\r\n return;\r\n }\r\n $config = array();\r\n $subject = Pf::email_template()->get_element_subject('pf_comment_mail_template', 'approve_comment');\r\n $config['subject'] = str_replace('{sitename}', $this->settings['site_name'], $subject);\r\n $message = Pf::email_template()->get_element_body('pf_comment_mail_template', 'approve_comment');\r\n foreach ($users as $item) {\r\n $config['to'][$item['user_email']] = $item['user_name'];\r\n }\r\n $data['sitename'] = $this->settings['site_name'];\r\n foreach ($data as $key => $item) {\r\n $message = str_replace('{' . $key . '}', $item, $message);\r\n }\r\n $config['from'] = $this->settings['email'];\r\n $this->mail->send($config, $message);\r\n }\r\n }", "public function requireApproval()\n {\n $this->transporter->setParam('isApproval', 'true');\n\n return $this;\n }", "public function sendApprovalNotification(){\n\t\t$approver = $this->approver;\n\t\t$leave = $this->leave;\n\t\t$user = $leave->user;\n\t\t$setSendMail = false;\n\t\t$approvalStatus = \"APPROVED\";\n\t\t// checking if approver is admin\n\t\tif($approver->employeeType === \"ADMIN\"){\n\t\t\t// set google calendar event\n\t\t\tif($leave->approvalStatus(Leave::APPROVED_BY_ADMIN)){\n\t\t\t\t$setSendMail = true;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t// check if all approvers of $leave have approved the leave\n\t\t\tif($leave->approvalStatus(Leave::APPROVED_BY_ALL)){\n\t\t\t\t$setSendMail = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// check if any of the approvers of $leave has rejected the leave\n\t\t\t\tif($leave->approvalStatus(Leave::REJECTED_BY_SOME)){\n\t\t\t\t\t$setSendMail = true;\n\t\t\t\t\t$approvalStatus = \"REJECTED\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($setSendMail){\n\t\t\t$subject = \"Request For \" . TemplateFunction::getFullLeaveTypeName($leave->leave_type) . \" Approved\";\n\t\t\t$requesting_user = $leave->user->toArray();\n\t\t\t$approvals = Approval::where('leave_id', '=', $leave->id)->get();\n\t\t\t$approver_users = array();\n\t\t\tif( $approvals->count()>0) {\n\t\t\t\tforeach ($approvals as $approval) {\n\t\t\t\t $approver = $approval->approver->toArray();\n\t\t\t\t $approver_users[$approver[\"id\"]] = ['name' => $approver['name'], 'status' => $approval->approved];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data['requesting_user'] = $requesting_user;\n\t\t\t$data['approver_users'] = $approver_users;\n\n\t\t\tif ( \"CSR\" == $approval->leave->leave_type ) {\n\t\t\t\t$csr = $approval->leave->csrs->toArray();\n\t\t\t\t$data['csr'] = $csr;\n\t\t\t}\n\t\t\t$data['leave'] = $leave->toArray();\n\t\t\t$data['approved_status'] = $approvalStatus;\n\n\t \t//Send email notification to approver\n\t\t Mail::queue('emails.leave_approval', $data, function($message) use($requesting_user, $subject)\n\t\t {\n\t\t $message->from(Config::get('mail.username', 'Admin'))->to($requesting_user['email'], $requesting_user['name'])->subject($subject);\n\t\t });\n\t\t}\n\t}", "public function setRoleEligibilityScheduleRequests($val)\n {\n $this->_propDict[\"roleEligibilityScheduleRequests\"] = $val;\n return $this;\n }", "public function actionBulkApprove()\n\t{\n\t\tif ( Yii::$app->request->post('selection') )\n\t\t{\n\t\t\t$modelClass = $this->modelClass;\n\n\t\t\t$modelClass::updateAll(\n\t\t\t\t['status'=>Feedback::STATUS_APPROVED],\n\t\t\t\t['id'=>Yii::$app->request->post('selection', [])]\n\t\t\t);\n\t\t}\n\t}", "public static function bootApprovalTrait()\n\t{\n\t\tstatic::addGlobalScope( static::makeApprovalScope() );\n\t}", "public function getApprovalStatusAllowableValues()\n {\n return [\n self::APPROVAL_STATUS__NEW,\n self::APPROVAL_STATUS_CANCELED,\n self::APPROVAL_STATUS_SENT_TO_APPROVAL,\n self::APPROVAL_STATUS_RECEIVED_BY_APPROVAL,\n self::APPROVAL_STATUS_IN_PROGRESS_APPROVAL,\n self::APPROVAL_STATUS_REJECTED_IN_APPROVAL,\n self::APPROVAL_STATUS_APPROVED_IN_APPROVAL,\n self::APPROVAL_STATUS_ACTIVE_WORKFLOW_APPROVAL,\n ];\n }", "public function setSettings($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\AccessApproval\\V1\\AccessApprovalSettings::class);\n $this->settings = $var;\n\n return $this;\n }", "public function setAutomaticUserConsentSettings(?InboundOutboundPolicyConfiguration $value): void {\n $this->getBackingStore()->set('automaticUserConsentSettings', $value);\n }", "public function setPendingAccessReviewInstances(?array $value): void {\n $this->getBackingStore()->set('pendingAccessReviewInstances', $value);\n }", "public function setManagedAppPolicies(?array $value): void {\n $this->getBackingStore()->set('managedAppPolicies', $value);\n }", "function application_approved($approved) {\n global $DB, $CFG;\n include_once($CFG->dirroot.'/course/externallib.php');\n include_once($CFG->dirroot.'/lib/enrollib.php');\n\n // Remove any dangling cohorts (classroom cohorts that are no longer associated with a course)\n delete_dangling_cohorts();\n\n // Get a list of all user emails\n $existing_emails = [];\n $users_list = $DB->get_records('user');\n foreach($users_list as $a_user) {\n array_push($existing_emails, $a_user->email);\n }\n\n // Process each approval - 1) change progress level, 2) send email notification to applicant, 3) create classroom courses requested, 4) enrol applicant in classroom courses with a role of ukfnteacher, 5)enrol applicant in resource_courses and support_courses with a student role, 6) create DSL user if necessary and enrol DSL in classroom courses and resource_courses \n foreach($approved as $userid) {\n $applicant_user = $DB->get_record('user', array('id' => $userid, 'auth' => 'manual'));\n $resource_courses_cohort = $DB->get_record('cohort', array('idnumber'=>get_string('resource_courses_idnumber', 'enrol_ukfilmnet')));\n $support_courses_cohort = $DB->get_record('cohort', array('idnumber'=>get_string('support_courses_idnumber', 'enrol_ukfilmnet')));\n\n if($applicant_user !== null) {\n profile_load_data($applicant_user);\n if(convert_progressstring_to_progressnum($applicant_user->profile_field_applicationprogress) == '6') {\n $applicant_user->profile_field_applicationapproved = '1';\n $applicant_user->profile_field_applicationprogress = convert_progressnum_to_progressstring('7');\n profile_save_data($applicant_user); \n email_user_accept_reject($applicant_user, \"approved\");\n \n // Create teacher's classroom courses and enrol the teacher\n for($count = 0; $count<$applicant_user->profile_field_courses_requested; $count++) {\n $newcourse = create_classroom_course_from_teacherid($userid, \n get_string('template_course_shortname', 'enrol_ukfilmnet'), \n get_string('classrooms_category_idnumber', 'enrol_ukfilmnet'));\n $systemcontext = context_system::instance();\n $usercontext = context_user::instance($applicant_user->id);\n enrol_user_this($newcourse, $applicant_user, get_role_id(get_string('ukfnteacher_role_name', 'enrol_ukfilmnet')), 'manual');\n }\n\n // Add teacher to resource_courses and support_courses\n cohort_add_member($resource_courses_cohort->id, $applicant_user->id);\n cohort_add_member($support_courses_cohort->id, $applicant_user->id);\n \n // Create a DSL officer account if it doesn't already exist\n \n $sgo_user = null;\n $sgo_username = $applicant_user->profile_field_safeguarding_contact_email;\n $user_names = [];\n $all_users = $DB->get_records('user');\n foreach($all_users as $a_user) {\n array_push($user_names, $a_user->username);\n }\n if(in_array($sgo_username, $user_names)) { \n $sgo_user = $DB->get_record('user', array('email'=>$sgo_username));\n if($sgo_user->firstname === 'Safeguarding') {\n delete_user($sgo_user);\n $sgo_user = create_sgo_user($applicant_user);\n } else {\n email_sgo_existinguser_info($applicant_user, $sgo_user);\n }\n } else {\n $sgo_user = create_sgo_user($applicant_user);\n }\n\n // Add DSL officer to classroom courses\n add_sgo_to_cohorts($applicant_user, $sgo_user, $resource_courses_cohort, $support_courses_cohort);\n }\n }\n }\n}" ]
[ "0.5885874", "0.54438454", "0.536066", "0.53096026", "0.5165638", "0.50807226", "0.50484645", "0.5042734", "0.4997376", "0.49852705", "0.49849114", "0.4914148", "0.4871106", "0.48360395", "0.48016444", "0.47695124", "0.47529006", "0.4743694", "0.46714672", "0.46544915", "0.4599547", "0.459163", "0.45229688", "0.44979426", "0.44776425", "0.4445343", "0.44385234", "0.44181612", "0.44091278", "0.43885067" ]
0.8033126
0
Sets the appRoleAssignedResources property value. The appRoleAssignedResources property
public function setAppRoleAssignedResources(?array $value): void { $this->getBackingStore()->set('appRoleAssignedResources', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setResourceIds($role, array $resources = null)\n {\n $roleName = $role->getRoleName();\n\n if ($resources !== null) {\n $this->log->logInfo(\n sprintf('Admin Role \"%s\" resources updating', $roleName)\n );\n\n $this->rulesFactory->create()->setRoleId($role->getId())->setResources($resources)->saveRel();\n return;\n }\n\n $this->log->logError(\n sprintf('Admin Role \"%s\" Resources are empty, please check your yaml file', $roleName)\n );\n }", "public function getAppRoleAssignedResources(): ?array {\n $val = $this->getBackingStore()->get('appRoleAssignedResources');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ServicePrincipal::class);\n /** @var array<ServicePrincipal>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'appRoleAssignedResources'\");\n }", "public function setRoleAssignments($val)\n {\n $this->_propDict[\"roleAssignments\"] = $val;\n return $this;\n }", "public function setAppRoleAssignments(?array $value): void {\n $this->getBackingStore()->set('appRoleAssignments', $value);\n }", "public function setResources($resources)\n\t{\n\t $this->resources = $resources;\n\t}", "public function getRoleAssignments()\n {\n if (array_key_exists(\"roleAssignments\", $this->_propDict)) {\n return $this->_propDict[\"roleAssignments\"];\n } else {\n return null;\n }\n }", "public function setResources($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->resources = $arr;\n\n return $this;\n }", "public function role_resource_ids(array $role_ids = null) {\n // Collect all resources these roles have access to\n if (! isset($this->_vars['role_resource_ids'])) {\n\n if ($role_ids === null) {\n $role_ids = $this->role_ids();\n }\n\n $role_resource_ids = [];\n foreach (entity::dao('acl\\role\\resource')->by_acl_role_multi($role_ids) as $ids) {\n if ($ids) {\n foreach ($ids as $role_resource_id) {\n $role_resource_ids[] = (int) $role_resource_id;\n }\n }\n }\n\n $this->_vars['role_resource_ids'] = array_unique($role_resource_ids);\n }\n\n return $this->_vars['role_resource_ids'];\n }", "public function setAccessPackageResourceRole(?AccessPackageResourceRole $value): void {\n $this->getBackingStore()->set('accessPackageResourceRole', $value);\n }", "abstract protected function _getRoleResources($role);", "public static function transcripts_role_assigned(\\core\\event\\role_assigned $event) {\n global $DB;\n\n if (!get_config('local_intelliboard', 'enable_transcripts')) {\n return;\n }\n\n $context = \\context::instance_by_id($event->contextid, MUST_EXIST);\n\n if ($context->contextlevel != CONTEXT_COURSE) {\n return;\n }\n\n $course = $DB->get_record('course', array('id' => $context->instanceid));\n $user = $DB->get_record('user', array('id' => $event->relateduserid));\n\n $rolessql = DBHelper::get_group_concat('roleid', ',');\n $roles = $DB->get_record_sql(\n \"SELECT $rolessql as rolesids\n FROM {role_assignments}\n WHERE contextid = :contextid\n AND userid = :userid\",\n ['contextid' => $context->id, 'userid' => $user->id]\n );\n\n // Update course transcript.\n $transcriptscourses = new transcripts_courses();\n $transcriptscourses->update_transcripts([\n 'user' => $user,\n 'course' => $course,\n 'rolesids' => (!empty($roles->rolesids)) ? $roles->rolesids : ''\n ]);\n\n }", "public function assignToRoles(){ \n $roleIds = DB::table('group_role')->select('role_id')->lists('role_id');\n $roles = Role::whereNotIn('id', $roleIds)->get()->toArray(); \n \n return view('admin.acl.permission.role-permissions', compact('roles','permissions'));\n }", "function setResources(array $mapResources)\n {\n # previous registered keys not replaced\n $this->_t_loader_map_resource_MapRes = array_merge($mapResources, $this->_t_loader_map_resource_MapRes);\n return $this;\n }", "private function SetResourcesAvailable($capacity) {\n\n\t\t/* DATABASE CONNECTION */\n\t\t$db=$GLOBALS['db'];\n\n\t\t$sql=\"SELECT *\n\t\t\t\t\tFROM \".$GLOBALS['database_prefix'].\"resource_master rm\n\t\t\t\t\tWHERE rm.capacity >= \".$capacity.\"\n\t\t\t\t\tORDER BY capacity\n\t\t\t\t\t\";\n\t\techo $sql.\"<br>\";\n\t\t$result = $db->Query($sql);\n\t\tif ($db->NumRows($result) > 0) {\n\t\t\t$this->debug(\"More than 1 possible venue based on size is available\",$this->arr_subject_details[\"user_id\"],\"RESOURCES\");\n\t\t\t$this->arr_venue_capacity=$db->FetchArray($result);\n\t\t\techo \"<br />Show Venues:<br />\";\n\t\t\tprint_r($this->arr_venue_capacity);\n\t\t\t//echo \"<br />\";echo \"<br />\";echo \"<br />\";\n\t\t\t/* ---------------------TO DO - INCORPORATE THE AVAILABLE VENUES ---------------------------*/\n\t\t\t/* CHECK WHAT THE CURRENT SUBJECT NEEDS TO UPDATE ACCORDINGLY */\n\t\t\t$arr_matching_resources=$this->CheckSubjectItemReqs();\n\t\t\techo \"Displaying matching resources<br />\";\n\t\t\tprint_r($arr_matching_resources);\n\t\t\treturn True;\n\t\t}\n\t\telse {\n\t\t\t$this->debug(\"No venue is available for $capacity people\",$this->arr_subject_details[\"user_id\"],\"ERROR\");\n\t\t\treturn false;\n\t\t}\n\t}", "public function setLinkedEligibleRoleAssignment($val)\n {\n $this->_propDict[\"linkedEligibleRoleAssignment\"] = $val;\n return $this;\n }", "public function setRoleAssignments(?array $value): void {\n $this->getBackingStore()->set('roleAssignments', $value);\n }", "public function setAclResources($aclResources)\n {\n $this->aclResources = $aclResources;\n return $this;\n }", "public function setLinkedEligibleRoleAssignmentId($val)\n {\n $this->_propDict[\"linkedEligibleRoleAssignmentId\"] = $val;\n return $this;\n }", "public function setResources(TemplateResources $resources): void\n {\n $this->resources = $resources;\n }", "public function setResources(array $resources)\n\t{\n\t\t$this->resources = $resources;\n\n\t\treturn $this;\n\t}", "public function setResources($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\Asset\\V1\\IamPolicyAnalysisResult\\Resource::class);\n $this->resources = $arr;\n\n return $this;\n }", "public function AssignedRoleRelate()\n {\n return $this->hasMany('App\\Models\\AssignedRoles','user_id','userid');\n }", "protected function setRules($role, $resources)\n {\n $userModel = new \\User\\Model\\Roles();\n if(empty($resources))\n return $this;\n \n $rules = $userModel->getRulesByRoleAndResources($role, $resources);\n\n if(!empty($rules)) {\n foreach($rules as $rule) {\n $this->_acl->{$rule->getRule()}($role, $rule->getResourceId());\n }\n\n }\n return $this;\n }", "public function getResourceSets();", "public function getLinkedEligibleRoleAssignmentId()\n {\n if (array_key_exists(\"linkedEligibleRoleAssignmentId\", $this->_propDict)) {\n return $this->_propDict[\"linkedEligibleRoleAssignmentId\"];\n } else {\n return null;\n }\n }", "public function assigned() {\n return $this->belongsToMany('App\\Models\\User', 'tasks_assigned', 'tasksassigned_taskid', 'tasksassigned_userid');\n }", "protected function initializeRoles()\n {\n if ($this->roles !== null) {\n return;\n }\n $this->roles = array();\n foreach ($this->roleIdentifiers as $key => $roleIdentifier) {\n // check for and clean up roles no longer available\n if ($this->policyService->hasRole($roleIdentifier)) {\n $this->roles[$roleIdentifier] = $this->policyService->getRole($roleIdentifier);\n } else {\n unset($this->roleIdentifiers[$key]);\n }\n }\n }", "public function setResources($resources)\n\t{\n\t\t$this->removeAll();\n\t\t$this->addResources($resources);\n\t\t\n\t\treturn $this;\n\t}", "public function setResourceNames(&$var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->resource_names = $arr;\n }", "public function setResourcePermissions($resource, array $permissionsList)\n\t{\n\t\tforeach ($permissionsList as $permissionType => $permissions)\n\t\t{\n\t\t\tif (Default_Model_Array_Utils::isAssoc($permissions))\n\t\t\t\t$permissions = array($permissions);\n\t\t\t\t\n\t\t\tforeach ($permissions as $permission)\n\t\t\t{\n\t\t\t\t$role = null;\n\t\t\t\tif (key_exists(self::ROLES_CONFIG_ROLE_IDENTIFIER, $permission))\n\t\t\t\t{\n\t\t\t\t\t$role = $permission[self::ROLES_CONFIG_ROLE_IDENTIFIER];\n\t\t\t\t\tunset($permission[self::ROLES_CONFIG_ROLE_IDENTIFIER]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tswitch ($permissionType)\n\t\t\t\t{\n\t\t\t\t\tcase self::PERMISSIONS_CONFIG_TYPE_ALLOWALL:\n\t\t\t\t\t\t$this->allow(null, $resource, array_keys($permission));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase self::PERMISSIONS_CONFIG_TYPE_DENYALL:\n\t\t\t\t\t\t$this->deny(null, $resource, array_keys($permission));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase self::PERMISSIONS_CONFIG_TYPE_ALLOW:\n\t\t\t\t\t\tif (empty($role))\n\t\t\t\t\t\t\tthrow new Zend_Acl_Exception(\"No role was specified for an \\\"allow\\\" rule node.\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (empty($permission))\n\t\t\t\t\t\t\tthrow new Zend_Acl_Exception(\"No permissions were specified for an \\\"allow\\\" rule node.\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$this->allow($role, $resource, array_keys($permission));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase self::PERMISSIONS_CONFIG_TYPE_DENY:\n\t\t\t\t\t\tif (empty($role))\n\t\t\t\t\t\t\tthrow new Zend_Acl_Exception(\"No role was specified for a \\\"deny\\\" rule node.\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (empty($permission))\n\t\t\t\t\t\t\tthrow new Zend_Acl_Exception(\"No permissions were specified for a \\\"deny\\\" rule node.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->deny($role, $resource, array_keys($permission));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase self::PERMISSIONS_CONFIG_TYPE_DISABLEALL:\n\t\t\t\t\t\tif (empty($role))\n\t\t\t\t\t\t\tthrow new Zend_Acl_Exception(\"No role was specified for a \\\"block\\\" rule node.\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$this->deny($role, $resource);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tcase self::PERMISSIONS_CONFIG_TYPE_ENABLEALL:\n\t\t\t\t\t\tif (empty($role))\n\t\t\t\t\t\t\tthrow new Zend_Acl_Exception(\"No role was specified for an \\\"unblock\\\" rule node.\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$this->allow($role, $resource);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new Zend_Acl_Exception(\"An unknown permission setter was discovered.\");\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this;\n\t}" ]
[ "0.58096313", "0.54850554", "0.54239976", "0.5275427", "0.5221283", "0.50522614", "0.5019971", "0.49983504", "0.4953518", "0.48950818", "0.4859693", "0.48151198", "0.4803315", "0.47927475", "0.47684523", "0.47374877", "0.47266302", "0.45895618", "0.45712516", "0.4552436", "0.45389792", "0.45077264", "0.45000145", "0.4493205", "0.44894665", "0.4470636", "0.4462238", "0.44556907", "0.44483408", "0.44379663" ]
0.70746577
0
Sets the appRoleAssignments property value. Represents the app roles a user has been granted for an application. Supports $expand.
public function setAppRoleAssignments(?array $value): void { $this->getBackingStore()->set('appRoleAssignments', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRoleAssignments($val)\n {\n $this->_propDict[\"roleAssignments\"] = $val;\n return $this;\n }", "public function setRoleAssignments(?array $value): void {\n $this->getBackingStore()->set('roleAssignments', $value);\n }", "public function getRoleAssignments()\n {\n if (array_key_exists(\"roleAssignments\", $this->_propDict)) {\n return $this->_propDict[\"roleAssignments\"];\n } else {\n return null;\n }\n }", "public function setAppRoleAssignedResources(?array $value): void {\n $this->getBackingStore()->set('appRoleAssignedResources', $value);\n }", "public function getAssignments()\n\t{\n\t\tif( $this->_assignments!==null )\n\t\t{\n\t\t\treturn $this->_assignments;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$authorizer = Rights::getAuthorizer();\n\t\t\t$authAssignments = $authorizer->authManager->getAuthAssignments($this->getId());\n\t\t\t$nestedItems = $authorizer->authManager->getAuthItemsByNames(array_keys($authAssignments), true);\n\n\t\t\t$assignments = array();\n\t\t\tforeach( $nestedItems as $type=>$items )\n\t\t\t{\n\t\t\t\t$items = $authorizer->attachAuthItemBehavior($items);\n\t\t\t\t$assignments[ $type ] = array();\n\t\t\t\tforeach( $items as $itemName=>$item ){\n $assignments[ $type ][ $itemName ] = $item;\n \n \n }\n\t\t\t}\n \n \n \n\t\t\treturn $this->_assignments = $assignments;\n\t\t}\n\t}", "public function getAppRoleAssignments(): ?array {\n $val = $this->getBackingStore()->get('appRoleAssignments');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, AppRoleAssignment::class);\n /** @var array<AppRoleAssignment>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'appRoleAssignments'\");\n }", "public function getAgentAssignments()\n {\n return $this->hasMany(AgentAssignment::className(), ['user_id' => 'user_id']);\n }", "public function getRelatedRoles()\n {\n return $this->hasMany(AuthAssignment::className(), ['user_id' => 'id']);\n }", "public function roleAssignments(): RoleAssignmentsRequestBuilder {\n return new RoleAssignmentsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function setRoleAssignmentRequests(?array $value): void {\n $this->getBackingStore()->set('roleAssignmentRequests', $value);\n }", "public function setAssignments($val)\n {\n $this->_propDict[\"assignments\"] = $val;\n return $this;\n }", "public function getAssignments() {\n return $this->assignments;\n }", "public function setRoleAssignmentSchedules($val)\n {\n $this->_propDict[\"roleAssignmentSchedules\"] = $val;\n return $this;\n }", "public function setLinkedEligibleRoleAssignment($val)\n {\n $this->_propDict[\"linkedEligibleRoleAssignment\"] = $val;\n return $this;\n }", "protected function assignRoleToUsers(): void\n {\n foreach (User::all() as $user) {\n $role = Role::firstOrCreate(['name' => Role::USER]);\n $user->assignRole($role);\n }\n }", "public function listRoleAssignments(\n $options\n ) {\n //check or get oauth token\n OAuthManager::getInstance()->checkAuthorization();\n\n //prepare query string for API call\n $_queryBuilder = '/users/{id}/roleAssignments';\n\n //process optional query parameters\n $_queryBuilder = APIHelper::appendUrlWithTemplateParameters($_queryBuilder, array (\n 'id' => $this->val($options, 'id'),\n ));\n\n //process optional query parameters\n APIHelper::appendUrlWithQueryParameters($_queryBuilder, array (\n 'start' => $this->val($options, 'start', 0),\n 'limit' => $this->val($options, 'limit'),\n ));\n\n //validate and preprocess url\n $_queryUrl = APIHelper::cleanUrl(Configuration::getBaseUri() . $_queryBuilder);\n\n //prepare headers\n $_headers = array (\n 'user-agent' => BaseController::USER_AGENT,\n 'Authorization' => sprintf('Bearer %1$s', Configuration::$oAuthToken->accessToken)\n );\n\n //call on-before Http callback\n $_httpRequest = new HttpRequest(HttpMethod::GET, $_headers, $_queryUrl);\n if ($this->getHttpCallBack() != null) {\n $this->getHttpCallBack()->callOnBeforeRequest($_httpRequest);\n }\n\n //and invoke the API call request to fetch the response\n $response = Request::get($_queryUrl, $_headers);\n\n $_httpResponse = new HttpResponse($response->code, $response->headers, $response->raw_body);\n $_httpContext = new HttpContext($_httpRequest, $_httpResponse);\n\n //call on-after Http callback\n if ($this->getHttpCallBack() != null) {\n $this->getHttpCallBack()->callOnAfterRequest($_httpContext);\n }\n\n //handle errors defined at the API level\n $this->validateResponse($_httpResponse, $_httpContext);\n\n return CamelCaseHelper::keysToCamelCase($response->body);\n }", "public function setRolesCollection(\\Doctrine\\Common\\Collections\\Collection $collection)\n {\n $this->user_roles = $collection;\n }", "public function restoreAssignments()\n {\n foreach ($this->authAssignments as $authAssignment) {\n $ass = new AuthAssignment($authAssignment);\n $ass->save();\n }\n }", "public function setRoles(&$var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Iam\\Admin\\V1\\Role::class);\n $this->roles = $arr;\n }", "public function getAssignments()\n {\n if (array_key_exists(\"assignments\", $this->_propDict)) {\n return $this->_propDict[\"assignments\"];\n } else {\n return null;\n }\n }", "public function actionAssigment()\n {\n $auth = Yii::$app->authManager;\n \n $author = $auth->createRole('author');\n $admin = $auth->createRole('admin');\n\n\n // Assign roles to users. 1 and 2 are IDs returned by IdentityInterface::getId()\n // usually implemented in your User model.\n $auth->assign($author, 2);\n $auth->assign($admin, 1);\n }", "public function assignToRoles(){ \n $roleIds = DB::table('group_role')->select('role_id')->lists('role_id');\n $roles = Role::whereNotIn('id', $roleIds)->get()->toArray(); \n \n return view('admin.acl.permission.role-permissions', compact('roles','permissions'));\n }", "public function getRoleAssignments(): ?array {\n $val = $this->getBackingStore()->get('roleAssignments');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, GovernanceRoleAssignment::class);\n /** @var array<GovernanceRoleAssignment>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'roleAssignments'\");\n }", "public function setAssignments(?array $value): void {\n $this->getBackingStore()->set('assignments', $value);\n }", "public function setAssignments(?array $value): void {\n $this->getBackingStore()->set('assignments', $value);\n }", "public function assignment(Request $request) {\n $user = User::find($request->user_id);\n $role = Role::find($request->role_id);\n if($user->assignRole($role))\n {\n $message = __('general.role.ASSIGNMENT_SUCCESS');\n }\n else\n {\n $message = __('general.role.ASSIGNMENT_FAILURE');\n }\n return response()->json([\n \"message\" => $message\n ], 200);\n }", "public function setRole($userId, $roles)\n { \n foreach ($roles as $key => $value) {\n $this->model->find($userId)->roles()->attach($value); \n } \n }", "public function setLinkedEligibleRoleAssignmentId($val)\n {\n $this->_propDict[\"linkedEligibleRoleAssignmentId\"] = $val;\n return $this;\n }", "public function setAssignments(\\GoetasWebservices\\Client\\SalesforceEnterprise\\Types\\QueryResultType $assignments)\n {\n $this->assignments = $assignments;\n return $this;\n }", "public function setRoles(array $roles);" ]
[ "0.6960255", "0.61690795", "0.5943001", "0.5759772", "0.53009987", "0.5294889", "0.52729553", "0.52275574", "0.51698303", "0.50415194", "0.50314057", "0.4940959", "0.4923194", "0.49030858", "0.48118415", "0.48072597", "0.47831914", "0.4776996", "0.47193497", "0.46870133", "0.46723235", "0.46262038", "0.46049488", "0.46048406", "0.46048406", "0.4599775", "0.4577546", "0.4573759", "0.45577526", "0.45494613" ]
0.6811662
1
Sets the approvals property value. The approvals property
public function setApprovals(?array $value): void { $this->getBackingStore()->set('approvals', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setApprovalsRequired($approvalsRequired)\n {\n $this->approvalsRequired = $approvalsRequired;\n return $this;\n }", "public function updateCommissionRequest($requestId, $approvals)\n {\n $commissionRequest = $this->getSpecifiedRequest($requestId);\n $commissionRequest->approval = $approvals;\n\n if($commissionRequest->save())\n if($this->check_if_all_upLine_permission_was_approved($requestId))\n {\n $commissionRequest->status = 'for review';\n $commissionRequest->save();\n }\n }", "function approvals() {\n $res = array();\n if (isset($this->approvals)) {\n $res = $this->approvals;\n }\n elseif (isset($this->qa_step_id)) {\n $this->get_approvals();\n $res = $this->approvals;\n }\n return $res;\n }", "public function approve(): void\n {\n $this->approved = true;\n }", "function reapprove() {\n $comment = \"Set to In Progress status for re-approval.\";\n foreach ($this->approvals_required() as $ap_type_id => $ap_type_desc) {\n $this->approve($ap_type_id, \"\", $comment);\n } // foreach\n }", "public function setAppConsentRequestsForApproval(?array $value): void {\n $this->getBackingStore()->set('appConsentRequestsForApproval', $value);\n }", "public function setApproval(ObjectStorage $backendUsers);", "public function getApprovalsRequired()\n {\n return $this->approvalsRequired;\n }", "public function setApproval(Kontrak $kontrak, $approval);", "public function approvePayment(): void\n {\n $this->paidOn = new \\DateTime();\n $this->status = self::PAID_STATUS;\n }", "public function setApprovalId(?string $value): void {\n $this->getBackingStore()->set('approvalId', $value);\n }", "public function setAgreementAcceptances(?array $value): void {\n $this->getBackingStore()->set('agreementAcceptances', $value);\n }", "public function approve()\n {\n $this->setApprovedFlag()->save();\n\n // :TODO: Fire an event here\n }", "public function approve()\n {\n $now = Carbon::now();\n\n Observation::whereIn('id', $this->getObservationIds())->update([\n 'approved_at' => $now,\n 'updated_at' => $now,\n ]);\n\n FieldObservation::whereIn('id', $this->getIds())->update([\n 'unidentifiable' => false,\n 'updated_at' => $now,\n ]);\n }", "public function edit(Approval $approval)\n {\n //\n }", "function approvals_required() {\n $res = array();\n if (isset($this->approvals_required)) {\n $res = $this->approvals_required;\n }\n elseif (isset($this->qa_step_id)) {\n $this->get_approvals_required();\n $res = $this->approvals_required;\n }\n return $res;\n }", "function approvals_default() {\n $res = array();\n if (isset($this->approvals_default)) {\n $res = $this->approvals_default;\n }\n elseif (isset($this->qa_step_id)) {\n $this->get_approvals_default();\n $res = $this->approvals_default;\n }\n return $res;\n }", "public function approve()\n {\n return $this->setAttribute('approved', !$this->approved)->save();\n }", "public function markAsPaid(){\n $this->status = \"APPROVED\";\n $this->save();\n }", "public function setBadges($badges)\n {\n $this->_badges = $badges;\n }", "protected function setProfit()\n {\n $this->liveData->profit = $this->liveData->value - $this->investment->totalCost();\n }", "public function set_experience(){\t\n\t\t\n\t\t$year['0.3'] = '3 Months';\n\t\t$year['0.6'] = '6 Months';\n\t\t$year['0.9'] = '9 Months';\n\t\t$year['1'] = '1 Year';\n\t\tfor($i = 2; $i <= 25; $i++){\n\t\t\t$year[$i] =$i.' Years';\n\t\t\t\n\t\t}\t\t\n\t\t$this->set('yearExp', $year);\n\t}", "public function setExperienceRequirements($value)\n {\n $this->experienceRequirements = $value;\n }", "function setPaid($paid)\n {\n $this->paid = $paid;\n }", "public function setApprovalType(?DriverUpdateProfileApprovalType $value): void {\n $this->getBackingStore()->set('approvalType', $value);\n }", "public function approve($doReindexImmediately = true, $cvPublishDate = null, $cvPublishEndDate = null)\n {\n $app = Facade::getFacadeApplication();\n $db = $app->make('database')->connection();\n $u = new User();\n $uID = $u->getUserID();\n $cvID = $this->cvID;\n $cID = $this->cID;\n $c = Page::getByID($cID, $this->cvID);\n\n // Current active\n $ov = Page::getByID($cID, 'ACTIVE');\n\n $oldHandle = $ov->getCollectionHandle();\n $newHandle = $this->cvHandle;\n\n // update a collection updated record\n $dh = $app->make('helper/date');\n $db->executeQuery('update Collections set cDateModified = ? where cID = ?', array(\n $dh->getOverridableNow(),\n $cID,\n ));\n\n // Remove all publish dates before setting the new ones, if any\n $this->clearPublishStartDate();\n\n if ($this->getPublishEndDate()) {\n $now = $dh->date('Y-m-d G:i:s');\n if (strtotime($now) >= strtotime($this->getPublishEndDate())) {\n $this->clearPublishEndDate();\n }\n }\n\n if ($cvPublishDate || $cvPublishEndDate) {\n // remove approval for all versions except the current one because a scheduled version is being processed\n $oldVersion = $ov->getVersionObject();\n $v = array($cID, $oldVersion->cvID);\n $q = \"update CollectionVersions set cvIsApproved = 0 where cID = ? and cvID != ?\";\n $this->setPublishDate($cvPublishDate);\n $this->setPublishEndDate($cvPublishEndDate);\n } else {\n // remove approval for the other version of this collection\n $v = array($cID);\n $q = \"update CollectionVersions set cvIsApproved = 0 where cID = ?\";\n }\n\n $r = $db->executeQuery($q, $v);\n $ov->refreshCache();\n\n // now we approve our version\n $v2 = array(\n $uID,\n $dh->getOverridableNow(),\n $cID,\n $cvID,\n );\n $q2 = \"update CollectionVersions set cvIsNew = 0, cvIsApproved = 1, cvApproverUID = ?, cvDateApproved = ? where cID = ? and cvID = ?\";\n $db->executeQuery($q2, $v2);\n\n // next, we rescan our collection paths for the particular collection, but only if this isn't a generated collection\n $shouldRescanCollectionPath = true;\n if ($c->isGeneratedCollection()) {\n $shouldRescanCollectionPath = false;\n } elseif ($oldHandle == $newHandle) {\n $shouldRescanCollectionPath = false;\n }\n if ($shouldRescanCollectionPath) {\n\n $c->rescanCollectionPath();\n\n }\n\n // check for related version edits. This only gets applied when we edit global areas.\n $r = $db->executeQuery('select cRelationID, cvRelationID from CollectionVersionRelatedEdits where cID = ? and cvID = ?', array(\n $cID,\n $cvID,\n ));\n while ($row = $r->fetch()) {\n $cn = Page::getByID($row['cRelationID'], $row['cvRelationID']);\n $cnp = new Permissions($cn);\n if ($cnp->canApprovePageVersions()) {\n $v = $cn->getVersionObject();\n $v->approve();\n $db->executeQuery('delete from CollectionVersionRelatedEdits where cID = ? and cvID = ? and cRelationID = ? and cvRelationID = ?', array(\n $cID,\n $cvID,\n $row['cRelationID'],\n $row['cvRelationID'],\n ));\n }\n }\n\n if ($c->getCollectionInheritance() == 'TEMPLATE') {\n // we make sure to update the cInheritPermissionsFromCID value\n $pType = PageType::getByID($c->getPageTypeID());\n $masterC = $pType->getPageTypePageTemplateDefaultPageObject();\n $db->executeQuery('update Pages set cInheritPermissionsFromCID = ? where cID = ?', array(\n (int) $masterC->getCollectionID(),\n $c->getCollectioniD(),\n ));\n }\n\n $ev = new Event($c);\n $ev->setCollectionVersionObject($this);\n $app->make('director')->dispatch('on_page_version_approve', $ev);\n\n $c->reindex(false, $doReindexImmediately);\n $c->writePageThemeCustomizations();\n $this->refreshCache();\n }", "function onEnableApprovalStage(Stage $stage, $objApproval)\n\t{\n\t\t$objApproval->status = 1;\n\t\t$objApproval->comment = request('comment');\n\t\t$objApproval->approver_id = Auth::user()->id;\n\t\t$objApproval->save();\n\t\t//tr_user_offline_training_id\n\t}", "public function getApprovers() {\r\n $approverList = array();\r\n $approvers = $this->_output->getApproverListResponse->approvers;\r\n if (is_null($approvers))\r\n return $approverList;\r\n $approver = $approvers->Approver;\r\n if (is_array($approver))\r\n foreach ($approver as $a)\r\n $approverList[$a->FQDN] = $a;\r\n else\r\n $approverList[$approver->FQDN] = $approver;\r\n return $approverList;\r\n }", "public function approve()\n {\n $this->approved = true;\n return $this;\n }", "public function updateApprovalStatus($approvals, $remarks, $status, $isByPassed)\n {\n $data = [];\n\n foreach ($approvals as $key => $value)\n {\n if($value['id'] === auth()->user()->id)\n {\n $value['remarks'] = $remarks;\n $value['approval'] = $status;\n $value['byPass'] = now();\n $value['is_by_passed'] = $isByPassed;\n }\n $data[$key] = $value;\n\n }\n return $data;\n }" ]
[ "0.62729496", "0.6181202", "0.6059617", "0.5951486", "0.58319664", "0.57549244", "0.5699165", "0.5697027", "0.5674653", "0.56668156", "0.5422369", "0.5418436", "0.5291251", "0.5291045", "0.5227889", "0.52230096", "0.51597637", "0.5127745", "0.51180506", "0.5106081", "0.509126", "0.5053327", "0.5005455", "0.4954253", "0.49533543", "0.49350882", "0.4915317", "0.49142832", "0.49130824", "0.49048093" ]
0.6732191
0
Sets the assignedLicenses property value. The licenses that are assigned to the user, including inherited (groupbased) licenses. This property doesn't differentiate directlyassigned and inherited licenses. Use the licenseAssignmentStates property to identify the directlyassigned and inherited licenses. Not nullable. Supports $filter (eq, not, /$count eq 0, /$count ne 0).
public function setAssignedLicenses(?array $value): void { $this->getBackingStore()->set('assignedLicenses', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllowedLicenses($allowedLicenses)\n {\n $this->allowedLicenses = $allowedLicenses;\n return $this;\n }", "public function setUsedLicenses($usedLicenses)\n {\n $this->usedLicenses = $usedLicenses;\n return $this;\n }", "public function setLicenses($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->licenses = $arr;\n\n return $this;\n }", "public function getAssignedLicenses(): ?array {\n $val = $this->getBackingStore()->get('assignedLicenses');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, AssignedLicense::class);\n /** @var array<AssignedLicense>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'assignedLicenses'\");\n }", "public function assignFreeLicenses()\n {\n //Se selecciona cualquier licencia activa del producto\n $licenses = License::select('*')\n ->where('licenses.state', 'Active')\n ->where('licenses.duration', -1)\n ->get();\n\n foreach ($licenses as $license) {\n //De acuerdo al producto se restablece el max_amount en la configiración del producto\n if($license->product->name == 'TrSoft/Copy Binary'){\n $product_setting = $this->getProductSetting($license->product_id);\n\n if(!$product_setting){\n $product_setting = new ProductSetting();\n $product_setting->amount = 1;//$license->max_amount;\n $product_setting->user_id = $this->id;\n $product_setting->product_id = $license->product_id;\n }\n\n $product_setting->max_amount = $license->max_amount;\n $product_setting->save();\n }\n\n $this->save();\n\n //Ultimos datos de comisión registrados\n $commission = $license->lastCommission();\n //Ultimos datos de precios registrados\n $price = $license->lastPrice();\n\n if($commission && $price && $price->price == 0){\n $user_license = new UserLicense();\n $user_license->user_id = $this->id;\n $user_license->commission_id = $commission->id;\n $user_license->license_price_id = $price->id;\n $user_license->state = 'Active';\n $user_license->activation_date = date('Y-m-d H:i:s');\n $user_license->save();\n }\n }\n }", "public function setAdditionalLicenses($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->additional_licenses = $arr;\n\n return $this;\n }", "public function getLicenses()\n {\n return $this->licenses;\n }", "public function setLicenseAssignmentStates(?array $value): void {\n $this->getBackingStore()->set('licenseAssignmentStates', $value);\n }", "public function getLicenses()\n {\n $return = array();\n $licenses = $this->getRelationship('licenses', $this);\n\n switch(count($licenses)) {\n case 0:\n return null;\n case 1:\n return new License($licenses[0]);\n default:\n foreach($licenses as $license) {\n $return[] = new License($license);\n }\n return $return;\n }\n }", "public function setLicenseCodes($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::INT64);\n $this->license_codes = $arr;\n\n return $this;\n }", "protected function selectLicenseFromList($licenses)\n {\n }", "public function setAppliedLicense($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\VMMigration\\V1\\AppliedLicense::class);\n $this->applied_license = $var;\n\n return $this;\n }", "public function filterByLicenseId($licenseId = null, $comparison = null)\n {\n if (is_array($licenseId)) {\n $useMinMax = false;\n if (isset($licenseId['min'])) {\n $this->addUsingAlias(UserLicensePeer::LICENSE_ID, $licenseId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($licenseId['max'])) {\n $this->addUsingAlias(UserLicensePeer::LICENSE_ID, $licenseId['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(UserLicensePeer::LICENSE_ID, $licenseId, $comparison);\n }", "static function countForLicense($softwarelicenses_id) {\n global $DB;\n\n $query = \"SELECT COUNT(`glpi_users_softwarelicenses`.`id`)\n FROM `glpi_users_softwarelicenses`\n INNER JOIN `glpi_users`\n ON (`glpi_users_softwarelicenses`.`users_id` = `glpi_users`.`id`)\n WHERE `glpi_users_softwarelicenses`.`softwarelicenses_id` = '$softwarelicenses_id'\";\n\n $result = $DB->query($query);\n\n if ($DB->numrows($result) != 0) {\n return $DB->result($result, 0, 0);\n }\n return 0;\n }", "public function setLinkedEligibleRoleAssignment($val)\n {\n $this->_propDict[\"linkedEligibleRoleAssignment\"] = $val;\n return $this;\n }", "public function getAppliedLicense()\n {\n return $this->applied_license;\n }", "public function getAdditionalLicenses()\n {\n return $this->additional_licenses;\n }", "public function filterByLicense($license, $comparison = null)\n {\n if ($license instanceof License) {\n return $this\n ->addUsingAlias(UserLicensePeer::LICENSE_ID, $license->getId(), $comparison);\n } elseif ($license instanceof PropelObjectCollection) {\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n\n return $this\n ->addUsingAlias(UserLicensePeer::LICENSE_ID, $license->toKeyValue('PrimaryKey', 'Id'), $comparison);\n } else {\n throw new PropelException('filterByLicense() only accepts arguments of type License or PropelCollection');\n }\n }", "public function actionGetLicenses(): Response\n {\n $user = Craft::$app->getUser()->getIdentity();\n\n try {\n $licenses = Module::getInstance()->getCmsLicenseManager()->getLicensesArrayByOwner($user);\n\n return $this->asJson($licenses);\n } catch (Throwable $e) {\n return $this->asErrorJson($e->getMessage());\n }\n }", "protected function activate_licenses() {\n\n\t\t// listen for our activate button to be clicked\n\t\tif( isset( $_POST['pmxi_license_activate'] ) ) {\t\t\t\n\n\t\t\t// retrieve the license from the database\n\t\t\t$options = PMXI_Plugin::getInstance()->getOption();\n\t\t\t\n\t\t\tforeach ($_POST['pmxi_license_activate'] as $class => $val) {\t\t\t\t\t\t\t\n\n\t\t\t\tif (!empty($options['licenses'][$class])){\n\n\t\t\t\t\t$product_name = (method_exists($class, 'getEddName')) ? call_user_func(array($class, 'getEddName')) : false;\n\n\t\t\t\t\tif ( $product_name !== false ){\n\t\t\t\t\t\t// data to send in our API request\n\t\t\t\t\t\t$api_params = array( \n\t\t\t\t\t\t\t'edd_action'=> 'activate_license', \n\t\t\t\t\t\t\t'license' \t=> $options['licenses'][$class], \n\t\t\t\t\t\t\t'item_name' => urlencode( $product_name ) // the name of our product in EDD\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Call the custom API.\n\t\t\t\t\t\t$response = wp_remote_get( add_query_arg( $api_params, $options['info_api_url'] ), array( 'timeout' => 15, 'sslverify' => false ) );\n\n\t\t\t\t\t\t// make sure the response came back okay\n\t\t\t\t\t\tif ( is_wp_error( $response ) )\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t// decode the license data\n\t\t\t\t\t\t$license_data = json_decode( wp_remote_retrieve_body( $response ) );\n\t\t\t\t\t\t\n\t\t\t\t\t\t// $license_data->license will be either \"active\" or \"inactive\"\n\n\t\t\t\t\t\t$options['statuses'][$class] = $license_data->license;\n\t\t\t\t\t\t\n\t\t\t\t\t\tPMXI_Plugin::getInstance()->updateOption($options);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\t\t\t\t\n\n\t\t}\n\t}", "public function licenseStatus()\n {\n return $this->belongsTo('CityBoard\\Entities\\LicenseStatus');\n }", "public function filterByisAssigned($isAssigned = null, $comparison = null)\n {\n if (is_string($isAssigned)) {\n $isAssigned = in_array(strtolower($isAssigned), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n }\n\n return $this->addUsingAlias(ActionPropertyPeer::ISASSIGNED, $isAssigned, $comparison);\n }", "public function setLinkedEligibleRoleAssignmentId($val)\n {\n $this->_propDict[\"linkedEligibleRoleAssignmentId\"] = $val;\n return $this;\n }", "public function setAssignedId($assignedId)\n {\n if ($this->assignedId !== $assignedId) {\n $this->assignedId = isset($assignedId) ? $assignedId : '';\n }\n }", "public function getLicenses($email, $active_only = true)\n {\n return $this->apiRequest(\n 'customer/listlicencebyemail',\n ['email' => $email, 'activeLicenseOnly' => ($active_only ? 'true' : 'false')],\n 'GET'\n );\n }", "public function approve($employee, $employeeLicenses)\n {\n try {\n\n $employeeLicense = EmployeeLicense::findOrFail($employeeLicenses);\n $employeeLicense->status = 3;\n $employeeLicense->approved_by = Auth::Id();\n $employeeLicense->approved_at = now();\n $employeeLicense->save();\n\n return redirect()->route('employee_licenses.employee_license.index', $employee)\n ->with('success_message', 'Employee License was successfully approved.');\n } catch (Exception $exception) {\n $systemException = new SystemException();\n $systemException->function = Route::currentRouteAction();\n $systemException->path = Route::getCurrentRoute()->uri();\n $systemException->message = json_encode([$exception->getMessage()]);\n $systemException->status = 1;\n $systemException->save();\n return back()\n ->withErrors(['unexpected_error' => 'Unexpected error occurred while trying to process your request.']);\n }\n }", "public function setOrganisations(?array $organisations): self;", "function showUserLicenses()\n\t{\n\t\tJLoader::register('PayPerDownloadUserLicenses', \n\t\t\tJPATH_ADMINISTRATOR . DS . \"components\" . DS . \"com_payperdownloadplus\" . DS . \"classes\" . DS . \"userlic.php\");\n\t\t$app = JFactory::getApplication();\n\t\tif($app->isAdmin())\n\t\t\treturn;\n\t\t$setBody = false;\n\t\t$body = JResponse::getBody();\n\t\t$userlic = null;\n\t\tif(strpos($body, \"{PPD_USER_LICENSES}\") !== false)\n\t\t{\n\t\t\t$userlic = new PayPerDownloadUserLicenses();\n\t\t\t$html = $userlic->getUserLicensesHtml();\n\t\t\t$body = str_replace(\"{PPD_USER_LICENSES}\", $html, $body);\n\t\t\t$setBody = true;\n\t\t}\n\t\t$option = JRequest::getVar('option');\n\t\tif($option == 'com_kunena')\n\t\t{\n\t\t\t$func = JRequest::getVar('func');\n\t\t\t$view = JRequest::getVar('view');\n\t\t\tif($func == 'view' || $view == 'topic')\n\t\t\t{\n\t\t\t\tif($this->isShowLicenseOnKunenaSet())\n\t\t\t\t{\n\t\t\t\t\tif(!$userlic)\n\t\t\t\t\t\t$userlic = new PayPerDownloadUserLicenses();\n\t\t\t\t\t$regExp = \"/<li class=\\\"kpost-username\\\">\\s*<a class=\\\"[^\\\"]*\\\"\\s+href=\\\"([^\\\"]*)\\\"[^>]*>[^<]*<\\/a>\\s*<\\/li>/\";\n\t\t\t\t\t$body = preg_replace_callback($regExp, array($userlic, \"getUserHighestLicenseHtml\"), $body);\n\t\t\t\t\t$setBody = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif($setBody)\n\t\t\tJResponse::setBody($body);\n\t}", "function updateLicense()\n {\n if (!$this->di->config->get('license'))\n return; // empty license. trial?\n if ($this->di->store->get('app-update-license-checked'))\n return;\n try {\n $req = new Am_HttpRequest('https://update.amember.com/license.php');\n $req->setConfig('connect_timeout', 2);\n $req->setMethod(Am_HttpRequest::METHOD_POST);\n $req->addPostParameter('license', $this->di->config->get('license'));\n $req->addPostParameter('root_url', $this->di->config->get('root_url'));\n $req->addPostParameter('root_surl', $this->di->config->get('root_surl'));\n $req->addPostParameter('version', AM_VERSION);\n $this->di->store->set('app-update-license-checked', 1, '+12 hours');\n $response = $req->send();\n if ($response->getStatus() == '200') {\n $newLicense = $response->getBody();\n if ($newLicense)\n if (preg_match('/^L[A-Za-z0-9\\/=+\\n]+X$/', $newLicense))\n Am_Config::saveValue('license', $newLicense);\n else\n throw new Exception(\"Wrong License Key Received: [\" . $newLicense . \"]\");\n }\n } catch (Exception $e) {\n if (AM_APPLICATION_ENV != 'production')\n throw $e;\n }\n }", "public function setLicense(string $license)\n {\n $this->license = $license;\n }" ]
[ "0.6992363", "0.65547204", "0.62224406", "0.5890461", "0.55824035", "0.52778214", "0.5219408", "0.5128469", "0.49218044", "0.4914022", "0.48509607", "0.48163977", "0.47851565", "0.47175413", "0.46963936", "0.4688013", "0.4657013", "0.46041697", "0.45849603", "0.45618942", "0.4543367", "0.4493985", "0.4483825", "0.44676527", "0.44548434", "0.44513443", "0.4441918", "0.4440507", "0.44075388", "0.4407115" ]
0.66596484
1
Sets the assignedPlans property value. The plans that are assigned to the user. Readonly. Not nullable.Supports $filter (eq and not).
public function setAssignedPlans(?array $value): void { $this->getBackingStore()->set('assignedPlans', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDisabledPlans($val)\n {\n $this->_propDict[\"disabledPlans\"] = $val;\n return $this;\n }", "public function setProvisionedPlans(?array $value): void {\n $this->getBackingStore()->set('provisionedPlans', $value);\n }", "public function setProvisionedPlans(?array $value): void {\n $this->getBackingStore()->set('provisionedPlans', $value);\n }", "public function getAssignedPlans(): ?array {\n $val = $this->getBackingStore()->get('assignedPlans');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, AssignedPlan::class);\n /** @var array<AssignedPlan>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'assignedPlans'\");\n }", "public function getAssignedPlans(): ?array {\n $val = $this->getBackingStore()->get('assignedPlans');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, AssignedPlan::class);\n /** @var array<AssignedPlan>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'assignedPlans'\");\n }", "public function getPlans(): Collection\n {\n return $this->plans;\n }", "public function plan()\n {\n \n $planList = $this->Plan->find()->toArray();\n $this->set('planList',$planList);\n }", "private function _getSubscriptionPlans() {\n $subscriptionDetailsModel = new SubscriptionDetailsModel();\n $this->_subscriptionPlans = $subscriptionDetailsModel->getSubscriptionPlans();\n }", "public function getDisabledPlans()\n {\n if (array_key_exists(\"disabledPlans\", $this->_propDict)) {\n return $this->_propDict[\"disabledPlans\"];\n } else {\n return null;\n }\n }", "public function create_update_subsciption_plans($plans){\n\t\tif($plans)\n\t\t{\n\t\t\tforeach ($plans as $key => $value) {\n\t\t\t\t$plan_exist = getvalfromtbl(\"plan_id\",\"membership_plan\",\"plan_id = '\".$value->id.\"'\",\"single\");\n\t\t\t\tif($plan_exist != \"\")\n\t\t\t\t{\n\t\t\t\t\t/*update details*/\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'plan_id'=> $value->id,\n\t\t\t\t\t\t'name' => $value->name,\n\t\t\t\t\t\t'description' => $value->description,\n\t\t\t\t\t\t'amount' => $value->price\n\t\t\t\t\t);\n\t\t\t\t\t$this->db->where('plan_id', $value->id);\n\t\t\t\t\t$this->db->update('membership_plan', $data);\n\t\t\t\t\t/*update details ends*/\n\n\t\t\t\t}else{ \n\t\t\t\t\t/*insert new plan*/\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'plan_id'=> $value->id,\n\t\t\t\t\t\t'name' => $value->name,\n\t\t\t\t\t\t'description' => $value->description,\n\t\t\t\t\t\t'amount' => $value->price,\n\t\t\t\t\t\t'createdDate' => date('Y-m-d H:i:s')\n\t\t\t\t\t);\n\t\t\t\t\t$this->db->insert('membership_plan', $data);\n\t\t\t\t\t/*insert new plan ends*/\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\telse{\n\t\t}\n\t}", "public function setSubscriptionPlanVariations(?array $subscriptionPlanVariations): void\n {\n $this->subscriptionPlanVariations['value'] = $subscriptionPlanVariations;\n }", "public function setPlan(&$data)\n {\n $data['Business']['plan_id'] = 1;\n\n }", "public function updatePlan(Request $request)\n {\n if(ClientExercisePlans::where('userID', $request->clientID)->where('active', '=', '1')\n ->where('exercisePlanID','=', $request->plansList)->exists()){\n return redirect()->back()->with('error', 'This client is already currently assigned this plan.');\n\n }else{\n //The user is not already assigned this plan so we can proceed and assign them a new plan.\n ClientExercisePlans::where('userID', $request->clientID)->where('active', '=', '1')->update(['active' => 0]);\n $details = new ClientExercisePlans();\n $details->userID = $request->clientID;\n $details->exercisePlanID = $request->plansList;\n $details->active = '1'; \n $details->save();\n \n return redirect()->back()->with('success', 'Successfully assigned this plan to your client.');\n }\n\n }", "public function plans()\n {\n return $this->morphedByMany('App\\Models\\Plan', 'cartable');\n }", "public function getBillingPlans()\n {\n # GET /billing_plans\n }", "public function set_plan( $plan )\n\t{\n\t\t$this->_plan = $plan;\n\t}", "public function membershipPlansAction() {\n \n $PlansModel = Admin_Model_Plans::getInstance();\n $subResult = $PlansModel->getPlanDetails();\n $this->view->subResult = $subResult;\n }", "private function validate(&$plans)\n {\n $normalExercises = Exercises::getNormalExercises();\n $normalValue = $normalExercises[array_rand($normalExercises)];\n $cardioExercises = Exercises::getCardioExercises();\n $rings = Exercises::getRings();\n $pullups = Exercises::getPullups();\n $usingLimitedExercises = true;\n foreach ($plans as $key => $plan) {\n if (isset($plans[$key + 1]) && in_array($plans[$key], $cardioExercises)\n && in_array($plans[$key + 1], $cardioExercises)) {\n $plans[$key] = $normalValue;\n }\n if (!$usingLimitedExercises) {\n if ($plans[$key] == $rings || $plans[$key] == $pullups) {\n $plans[$key] = $normalValue;\n }\n } else {\n if ($plans[$key] == $rings) {\n if (!$this->limitedSpacesFlags['rings']) {\n $plans[$key] = $normalValue;\n } else {\n $this->limitedSpacesFlags['rings'] = 0;\n $usingLimitedExercises = false;\n }\n }\n if ($plans[$key] == $pullups) {\n if (!$this->limitedSpacesFlags['pullups']) {\n $plans[$key] = $normalValue;\n } else {\n $this->limitedSpacesFlags['pullups'] = 0;\n $usingLimitedExercises = false;\n }\n }\n }\n }\n }", "public static function plans(): Collection\n {\n return collect(static::$plans);\n }", "public function listPlans($planID = null)\n {\n return $this->api->request('POST', '/2.0/subscription/plans', [\n 'plan' => (is_null($planID)) ? $planID : (int) $planID\n ]);\n }", "function has_paid_plan( $plans ) {\n\t\t\tif ( ! is_array( $plans ) || 0 === count( $plans ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * @var FS_Plugin_Plan[] $plans\n\t\t\t */\n\t\t\tfor ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {\n\t\t\t\tif ( ! $plans[ $i ]->is_free() ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "public function setPlanYear($plan_year) {\n $this->PLAN_YEAR = $plan_year;\n }", "public function test_update_free_access_plan() {\n\t\t// Create free access plan.\n\t\twp_set_current_user( $this->user_allowed );\n\n\t\t$course = $this->factory->course->create_and_get();\n\t\t$sample_args = array_merge(\n\t\t\t$this->sample_access_plan_args,\n\t\t\tarray(\n\t\t\t\t'post_id' => $course->get( 'id' ),\n\t\t\t\t'price' => 0,\n\t\t\t)\n\t\t);\n\n\t\t$response = $this->perform_mock_request(\n\t\t\t'POST',\n\t\t\t$this->route,\n\t\t\t$sample_args\n\t\t);\n\n\t\t$access_plan_id = $response->get_data()['id'];\n\n\t\t// Update the title.\n\t\t$response = $this->perform_mock_request(\n\t\t\t'POST',\n\t\t\t$this->route . '/' . $access_plan_id,\n\t\t\tarray(\n\t\t\t\t'title' => 'Updated Title',\n\t\t\t)\n\t\t);\n\n\t\t// Update is allowed.\n\t\t$this->assertResponseStatusEquals( 200, $response );\n\t\t$ap = new LLMS_Access_Plan( $access_plan_id );\n\t\t$this->assertEquals( $ap->get('title'), 'Updated Title' );\n\n\t}", "public function setPlan($planName)\n {\n return $this->setParam(self::PLAN, $planName);\n }", "public function setPlanId($value)\n {\n return $this->setParameter('planId', $value);\n }", "public function applyMembershipPlan($userId, $membershipPlanId)\r\n\t{\r\n\t\t$user = User::findOrFail($userId);\r\n\t\t$membershipPlan = $this->getById($membershipPlanId);\r\n\r\n\t\t//archives all user listings if membership plan is changed\r\n\t\tif (! $membershipPlan->isCurrent($user))\r\n\t\t{\r\n\t\t\t$user->listings()->update(['st_archived' => true]);\r\n\t\t}\r\n\r\n\t\t//expiration date\r\n\t\tif ($membershipPlan->duration)\r\n\t\t{\r\n\t\t\t//if membership plan is not free, if user has the same plan and plan is not expired yet, then plan is extended\r\n\t\t\tif ($membershipPlan->price //saves from manipulation by adding and adding days\r\n\t\t\t\tAND $membershipPlan->isCurrent($user)\r\n\t\t\t\tAND ! $user->isExpired())\r\n\t\t\t{\r\n\t\t\t\t$data['expires_on'] = $user->expires_on->addDays($membershipPlan->duration);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$data['expires_on'] = Carbon::now()->addDays($membershipPlan->duration);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$data['expires_on'] = null;\r\n\t\t}\r\n\r\n\t\t//membership plan id\r\n\t\t$data['membership_plan_id'] = $membershipPlanId;\r\n\r\n\r\n\t\t//updates user\r\n\t\t$user->update($data);\r\n\t}", "public function getProvisionedPlans(): ?array {\n $val = $this->getBackingStore()->get('provisionedPlans');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ProvisionedPlan::class);\n /** @var array<ProvisionedPlan>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'provisionedPlans'\");\n }", "public function getProvisionedPlans(): ?array {\n $val = $this->getBackingStore()->get('provisionedPlans');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ProvisionedPlan::class);\n /** @var array<ProvisionedPlan>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'provisionedPlans'\");\n }", "private static function _canManagePlans()\n {\n $license = new \\pm_License();\n $properties = $license->getProperties();\n\n $hasHostingPlans = $properties['can-manage-customers'];\n $hasResellerPlans = $properties['can-manage-resellers'];\n\n if (!$hasHostingPlans || !$hasResellerPlans) {\n return false;\n } else {\n return true;\n }\n }", "public function setPlanName($plan_name) {\n $this->PLAN_NAME = $plan_name;\n }" ]
[ "0.61274445", "0.6047829", "0.6047829", "0.60161126", "0.60161126", "0.57903", "0.5472109", "0.54133725", "0.5397879", "0.52753764", "0.5203222", "0.51859784", "0.51833254", "0.5002249", "0.50005794", "0.4997859", "0.49926516", "0.4976147", "0.49597603", "0.49140686", "0.4907934", "0.4891236", "0.48726666", "0.4851089", "0.48400143", "0.48033372", "0.48014057", "0.48014057", "0.47802734", "0.47758454" ]
0.71302664
1
Sets the authentication property value. The authentication methods that are supported for the user.
public function setAuthentication(?Authentication $value): void { $this->getBackingStore()->set('authentication', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAuthMode()\n {\n $this->authMode = true;\n }", "public function getAuthenticationMethod()\n {\n return \"PasswordAuthenticationModule\";\n }", "public function getAuthenticationMode()\n {\n return $this->authenticationMode;\n }", "public function getAuthenticationType()\n {\n // Just use none for now and I'll build in \"basic\" later\n return 'none';\n }", "public function getAuthenticationType()\n {\n return 'none';\n }", "public function setAuthentication($username = null, $password = null);", "public function setAuthType($auth)\n\t{\n\t\tif(defined($auth))\n\t\t{\n\t\t\t$this->authType = $auth;\n\t\t}else\n\t\t{\n\t\t\t$this->authType = self::HTTP_BASIC;\n\t\t}\n\t}", "public function allowedAuthMethods(): array\n {\n return [AuthMethodEnum::BEARER];\n }", "public function get_auth_methods();", "public function setAuthentication($username, $password)\n {\n $this->useAuthentication = true;\n $this->authUsername = $username;\n $this->authPassword = $password;\n }", "public function requireAuthentication(bool $value) {\n $this->props['auth'] = $value;\n }", "public function __set($property, $value) {\n\t\tswitch($property) {\n\t\t\tcase 'auth':\n\t\t\t\t$this->auth = $value;\n\t\t\t\tbreak;\n\n\t\t\tcase 'user':\n\t\t\t\t$this->user = $value;\n\t\t\t\t$GLOBALS['user'] = $value;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tparent::__set($property, $value);\n\t\t\t\tbreak;\n\t\t}\n\t}", "function __set($property, $value){\r\n global $DB, $USER;\r\n $ipn = '_'.$property;\r\n switch($property) {\r\n case 'password':\r\n if($this->password == 'LDAP') break;\r\n if(empty($value)) return false;\r\n $value = pwdEncode($value);\r\n //NOTE: No break here\r\n case 'username':\r\n if(empty($value)) return false;\r\n Base::__set('Name', $value);\r\n case 'passwordhash': // passwordhash bypasses pwdEncode and sets the raw password hash.\r\n if(empty($value)) return false;\r\n if ($property == 'passwordhash') {\r\n $ipn = '_password';\r\n $property = 'password';\r\n }\r\n if($this->$ipn === $value) break;\r\n $this->$ipn = $value;\r\n $DB->users->{$this->ID} = array($property => $value);\r\n break;\r\n case 'userinfo':\r\n if(!is_array($value)) return false;\r\n foreach($value as $prop => $val) {\r\n $DB->userinfo->update(array('val' => $val), array('prop' => $prop, 'id' => $this->ID), true);\r\n }\r\n $this->_userinfo = array_merge($this->_userinfo, $value);\r\n break;\r\n default:\r\n parent::__set($property, $value);\r\n }\r\n }", "function set_authentication($tokens) {\n $this->access_token = $tokens->access_token;\n }", "public function setAuthenticated($isAuthenticated)\n {\n // TODO: Implement setAuthenticated() method.\n }", "public function getAuthType() {\n return $this->authType;\n }", "public function setLoginMethod($loginMethod) {\n\t\t$this->loginMethod = $loginMethod;\n\t}", "public function setAuthentication($user, $password)\n {\n $this->auth['user'] = $user;\n $this->auth['password'] = $password;\n\n }", "function setAuthenticated($isAuthenticated)\n {\n $this->sf1Token->setAuthenticated($isAuthenticated);\n }", "protected function setAuth()\n\t{\n\t\tif ($this->username !== null && $this->password !== null) {\n\t\t\tcurl_setopt($this->curlHandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);\n\t\t\tcurl_setopt($this->curlHandle, CURLOPT_USERPWD, $this->username . ':' . $this->password);\n\t\t}\n\t}", "public function useAuth($use){\n $this->authentication = 0;\n if($use == true) $this->authentication = 1;\n }", "public function setAuthentication(Authentication $authentication)\n {\n $firstAuthentication = null === $this->authentication;\n\n $this->authentication = $authentication;\n\n if ($firstAuthentication && is_resource($this->resource)) {\n $this->authenticate();\n }\n }", "public function getAuthType() : int {\n return $this->authType;\n }", "public function getAuthType()\n\t{\n\t\treturn $this->authType;\n\t}", "public function getAuthMode()\n {\n return $this->authMode;\n }", "public function setAuth($auth)\n {\n $this->_auth = $auth;\n }", "public function selectAuth($method)\n {\n // verify selected database\n $method = ucfirst(strtolower($method));\n\n if (!isset($method)) {\n $this->errors[] = self::PMF_ERROR_USER_NO_AUTHTYPE;\n\n return $this;\n }\n\n $authClass = 'PMF_Auth_'.$method;\n if (!class_exists($authClass)) {\n $this->errors[] = self::PMF_ERROR_USER_NO_AUTHTYPE;\n\n return $this;\n }\n\n return new $authClass($this->_config);\n }", "private function get_auth_method_type () {\n # for older versions - only local is available!\n if($this->settings->version==\"1.1\") {\n $this->authmethodtype = \"auth_local\";\n }\n else {\n try { $method = $this->Database->getObject(\"usersAuthMethod\", $this->authmethodid); }\n catch (Exception $e) {\n $this->Result->show(\"danger\", _(\"Error: \").$e->getMessage(), true);\n }\n # save method name if existing\n if($method!==false) {\n $this->authmethodtype = \"auth_\".$method->type;\n $this->authmethodparams = $method->params;\n }\n }\n }", "static function changeAuthMethod(array $IDs = [], $authtype = 1, $server = -1) {\n global $DB;\n\n if (!Session::haveRight(self::$rightname, self::UPDATEAUTHENT)) {\n return false;\n }\n\n if (!empty($IDs)\n && in_array($authtype, [Auth::DB_GLPI, Auth::LDAP, Auth::MAIL, Auth::EXTERNAL])) {\n\n $result = $DB->update(\n self::getTable(), [\n 'authtype' => $authtype,\n 'auths_id' => $server,\n 'password' => '',\n 'is_deleted_ldap' => 0\n ], [\n 'id' => $IDs\n ]\n );\n if ($result) {\n foreach ($IDs as $ID) {\n $changes = [\n 0,\n '',\n addslashes(\n sprintf(\n __('%1$s: %2$s'),\n __('Update authentification method to'),\n Auth::getMethodName($authtype, $server)\n )\n )\n ];\n Log::history($ID, __CLASS__, $changes, '', Log::HISTORY_LOG_SIMPLE_MESSAGE);\n }\n\n return true;\n }\n }\n return false;\n }", "public function isAuthenticationEnabled();" ]
[ "0.5778644", "0.56151414", "0.5579926", "0.5400939", "0.5367056", "0.53442055", "0.53258705", "0.5299104", "0.51959", "0.51553696", "0.51335984", "0.5109799", "0.50597686", "0.50583535", "0.5049161", "0.5024236", "0.5019623", "0.498938", "0.4986691", "0.49785423", "0.49599382", "0.49591374", "0.49584278", "0.49520218", "0.4938885", "0.49231955", "0.4892675", "0.4890545", "0.48816106", "0.48776338" ]
0.6302627
0
Sets the authorizationInfo property value. Identifiers that can be used to identify and authenticate a user in nonAzure AD environments. This property can be used to store identifiers for smartcardbased certificates that a user uses for access to onpremises Active Directory deployments or for federated access. It can also be used to store the Subject Alternate Name (SAN) that's associated with a Common Access Card (CAC). Nullable.Supports $filter (eq and startsWith).
public function setAuthorizationInfo(?AuthorizationInfo $value): void { $this->getBackingStore()->set('authorizationInfo', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function populate($authorizationInfo)\n {\n foreach ($authorizationInfo as $key => $value)\n {\n $this->{$key} = $value;\n }\n\n $this->domain = ($this->wildcard ? '*.' : '').$this->identifier['value'];\n }", "public function setSoapHeaderUserAuthInfo(\\mdlutz24\\realpagepanda\\PickList\\StructType\\UserAuthInfo $userAuthInfo, $nameSpace = 'http://realpage.com/webservices', $mustUnderstand = false, $actor = null)\n {\n return $this->setSoapHeader($nameSpace, 'UserAuthInfo', $userAuthInfo, $mustUnderstand, $actor);\n }", "public function getAuthorizationInfo(): ?AuthorizationInfo {\n $val = $this->getBackingStore()->get('authorizationInfo');\n if (is_null($val) || $val instanceof AuthorizationInfo) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'authorizationInfo'\");\n }", "public function setAuthorizationCode($value)\n {\n return $this->setParameter('authorizationCode', $value);\n }", "public function setMemberInfo($infoAuth){\n\t\t$tblUser = new WDS_Model_Users_User();\n\t\t$result = $tblUser->getItemById($infoAuth->user_id);\t\n\t\t\n\t\t$ns = new Zend_Session_Namespace('info');\n\t\t$ns->member = $result;\n\t}", "public function setMemberInfo($infoAuth) {\n\t\t$db = Zend_Registry::get('connectDb');\n\t\t$select = $db->select()\n\t\t\t\t\t->from('users')\n\t\t\t\t\t->where('id = ?',$infoAuth->id);\n\t\t$result = $db->fetchRow($select);\n\t\t//----- luu thong tin user vua lay duoc vao session\n\t\t$ns = new Zend_Session_Namespace('info');\n\t\t$ns->member = $result;\n\t}", "public function setAuthorization($val)\n {\n $this->_propDict[\"authorization\"] = $val;\n return $this;\n }", "public function setUserInfo($userinfo)\n {\n $this->userinfo = $userinfo;\n }", "public function setUserInfo($info)\r\n {\r\n $this->userInfo = $info;\r\n $this->message .= \" [User Info: \" .$this->userInfo . \"]\";\r\n }", "public static function saveAuthInfo($info) {\n\t\t$info = serialize($info);\n\t\t$res = Settings::set(\"credentials\", $info);\n\t\treturn $res;\n\t}", "public function setAcl($infoAuth){\n//\t\t$result = new \\Backend\\Model\\Functions();\n $result = new \\Backend\\Model\\Permission();\n//\t\t$id = $infoAuth['role'];\n//\t\t$result = $result->acl(array('id' => $id));\n $resultRole = $result->acl($infoAuth);\n\t\tif(count($resultRole) > 0){\n\t\t\t$arrayPrivilege = array();\n\t\t\tforeach ($resultRole as $val){\n\t\t\t\t$arrayPrivilege[] = $val['module'].'_'. $val['controller']. '_'. $val['name'];\n\t\t\t}\n\t\t\t$this->_session->privilege = $arrayPrivilege;\n\t\t}\n\t}", "public function setMemberInfo($infoAuth)\n\t{\n\t\t$this->_session->member = $infoAuth;\n\t}", "public function setUserInfo($userinfo)\n {\n if (is_array($userinfo)) {\n // we've got array\n $this->info = $userinfo;\n } else if (is_object($userinfo)) {\n // we've got object\n foreach ($this->select_columns as $column) {\n if (isset($userinfo->{$column})) {\n $this->info[$column] = $userinfo->{$column};\n }\n }\n }\n }", "public function setGroupInfo($infoAuth){ \n\t\t$id['id'] = $infoAuth['role'];\n\t\t$result = new \\Backend\\Model\\Role();\n\t\t$result = $result->auth($id);\n\t\t$this->_session->role = $result;\n\t}", "public function setProviderUserDetailsAttribute($value)\n {\n $this->attributes['provider_user_details'] = json_encode($value);\n }", "public function putInfo($property, $value) {\n if($name == \"id\" || $name == \"password\") {\n return false;\n }\n $this->info[$name] = $value;\n return true;\n }", "public function updateAuthorization(Request $request)\n {\n $request->validate([\n 'authorization' => 'required',\n 'id' => 'required',\n ]);\n $user = User::find($request->get('id'));\n $user->authorized = $request->get('authorization');\n $user->save();\n return Response()->json('updated');\n }", "public function setBaseAuthReqInfo(\\BaseAuthReqInfo $value=null)\n {\n return $this->set(self::BASEAUTHREQINFO, $value);\n }", "public function setAuthorIdAttribute($value){\n $this->attributes['author_id'] = Auth::user()->id;\n }", "public function setInfo($info) {\n $this->_info = $info;\n }", "public function setAuthorityAttribute($value)\n {\n // be set to 'text' or 'code'\n if ( ($value !== 'iso639-2b')\n\t &&\n\t ($value !== 'rfc3066')\n\t &&\n\t ($value !== 'iso639-3')\n\t &&\n\t ($value !== 'rfc4646') )\n {\n\t$this->_reportAttributeError('authority',\"Invalid value: $value\");\n\treturn null;\n }\n\n $this->setAttribute('authority',$value);\n return $value;\n }", "public function setAuthorizationHearerName(string $bearer = 'Authorization');", "public function setInfo(){\n \tif(array_key_exists(APIConstants::INFO,$this->getResponseJSON()))\n \t{\n \t\t$this->info = new ResponseInfo($this->getResponseJSON()[APIConstants::INFO]);\n \t}\n }", "public function getAuthorization(){\n\t\treturn $this->authorization;\n\t}", "protected function updateAuthorisationParams()\n {\n $this->authorisationParams['scope'] = 'user:email';\n }", "public function setAccessToken() {\n\t\tif(!isset($_SERVER[\"HTTP_AUTHORIZATION\"]) || stripos($_SERVER[\"HTTP_AUTHORIZATION\"],\"Bearer \")!==0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$this->accessToken = trim(substr($_SERVER[\"HTTP_AUTHORIZATION\"],7));\n\t}", "public function set_authorized_for ($type, $value) {\n\t\t$auth_data = $this->get_auth_data();\n\t\tif (!isset($auth_data[$type]))\n\t\t\tthrow new Exception(\n\t\t\t\t\"Unknown authorization type $type: are you sure everything was spelled correctly?\");\n\t\t$auth_data[$type] = $value;\n\t\t$this->set_auth_data($auth_data);\n\t}", "public function setAuthorizationChecker($authorizationChecker)\n\t{\n\t\tif($this->_authorizationChecker === null)\n\t\t{\n\t\t\t$this->_authorizationChecker = $authorizationChecker;\n\t\t}\n\t}", "public function getUserInfo($bearer) {return $this->getInfo($bearer, \"v2/my/info\");}", "public function setInfo($value) {\r\n\t\tif (is_array($value)) {\r\n\t\t\t$this->_info = new CAttributeCollection($value,true);\r\n\t\t}\r\n\t\telseif ($value instanceof CAttributeCollection) {\r\n\t\t\t$this->_info = $value;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new CException(\"ACurl::setInfo() - \\$value must be an array or a CAttributeCollection\");\r\n\t\t}\r\n\t}" ]
[ "0.56707686", "0.49375647", "0.48393625", "0.47505468", "0.46534908", "0.46144852", "0.46035972", "0.45181477", "0.44946134", "0.4483751", "0.44818947", "0.4475241", "0.4470569", "0.44435784", "0.44223797", "0.43806472", "0.4372046", "0.43636125", "0.43568048", "0.435659", "0.42894104", "0.4256866", "0.42529833", "0.42453188", "0.42129", "0.42079404", "0.42070475", "0.42023286", "0.42011437", "0.41793382" ]
0.66715217
0
Sets the birthday property value. The birthday of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 20140101T00:00:00Z Returned only on $select.
public function setBirthday(?DateTime $value): void { $this->getBackingStore()->set('birthday', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProfileBirthdateAttribute($value)\n {\n $this->attributes[\"profile_birthdate\"] = $this->setDate($value);\n }", "public function setUseBirthday($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->use_birthday !== $v) {\n\t\t\t$this->use_birthday = $v;\n\t\t\t$this->modifiedColumns[] = UsersPeer::USE_BIRTHDAY;\n\t\t}\n\n\t\treturn $this;\n\t}", "protected function setBirthday($birthday) {\r\n $this->birthday = $birthday;\r\n }", "public function setBirthDateAttribute($value)\n {\n $this->attributes['birth_date'] = en2bn($value);\n }", "public function setUserBirthdayDate($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t// some string/numeric value passed; we normalize that so that we can\n\t\t\t// validate it.\n\t\t\ttry {\n\t\t\t\tif (is_numeric($v)) { // if it's a unix timestamp\n\t\t\t\t\t$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));\n\t\t\t\t\t// We have to explicitly specify and then change the time zone because of a\n\t\t\t\t\t// DateTime bug: http://bugs.php.net/bug.php?id=43003\n\t\t\t\t\t$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));\n\t\t\t\t} else {\n\t\t\t\t\t$dt = new DateTime($v);\n\t\t\t\t}\n\t\t\t} catch (Exception $x) {\n\t\t\t\tthrow new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->user_birthday_date !== null || $dt !== null ) {\n\t\t\t// (nested ifs are a little easier to read in this case)\n\n\t\t\t$currNorm = ($this->user_birthday_date !== null && $tmpDt = new DateTime($this->user_birthday_date)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newNorm = ($dt !== null) ? $dt->format('Y-m-d') : null;\n\n\t\t\tif ( ($currNorm !== $newNorm) // normalized values don't match \n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\t$this->user_birthday_date = ($dt ? $dt->format('Y-m-d') : null);\n\t\t\t\t$this->modifiedColumns[] = UserPeer::USER_BIRTHDAY_DATE;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function getUserBirthday(){\n return $this->userBirthday;\n\t}", "public function getBirthday() {\r\n return $this->birthday;\r\n }", "public function getBirthDate()\n\t{ return $this->BirthDate; }", "public function getBirthday()\n {\n return $this->birthday;\n }", "public function setDateOfBirth($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t// some string/numeric value passed; we normalize that so that we can\n\t\t\t// validate it.\n\t\t\ttry {\n\t\t\t\tif (is_numeric($v)) { // if it's a unix timestamp\n\t\t\t\t\t$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));\n\t\t\t\t\t// We have to explicitly specify and then change the time zone because of a\n\t\t\t\t\t// DateTime bug: http://bugs.php.net/bug.php?id=43003\n\t\t\t\t\t$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));\n\t\t\t\t} else {\n\t\t\t\t\t$dt = new DateTime($v);\n\t\t\t\t}\n\t\t\t} catch (Exception $x) {\n\t\t\t\tthrow new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->date_of_birth !== null || $dt !== null ) {\n\t\t\t// (nested ifs are a little easier to read in this case)\n\n\t\t\t$currNorm = ($this->date_of_birth !== null && $tmpDt = new DateTime($this->date_of_birth)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newNorm = ($dt !== null) ? $dt->format('Y-m-d') : null;\n\n\t\t\tif ( ($currNorm !== $newNorm) // normalized values don't match \n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\t$this->date_of_birth = ($dt ? $dt->format('Y-m-d') : null);\n\t\t\t\t$this->modifiedColumns[] = VpoRequestPassengerPeer::DATE_OF_BIRTH;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function getBirthday() {\n\t\t\treturn $this->birthday; \n\t\t}", "public function getBirthdayAttribute($value)\n {\n return Carbon::createFromFormat('Y-m-d H:i:s', $value)->format('Y-m-d');\n }", "public function getBirthDate() {\n return $this->birthDate;\n }", "public function getBirthDate()\n {\n return $this->birth_date;\n }", "public function getBirthDate()\n {\n return $this->birthDate;\n }", "public function getBirthDate()\n {\n return $this->birthDate;\n }", "private function set_user_birthday ($birthday)\n {\n if (!empty($birthday) && check_and_valid_date ($birthday, true)){\n $this->_user_birthday = $birthday;\n return True;\n }\n else {\n echo 'The input parameters must be a date <br/>';\n return FALSE;\n }\n }", "public function formBirthDateAttribute( $value ) {\n\t\treturn \\Carbon\\Carbon::parse( $value )->format( 'Y-m-d' );\n\t}", "public function getBirthdate()\n {\n return $this->birthdate;\n }", "public function getBirthdate()\n {\n return $this->birthdate;\n }", "public function getBirthdate()\n {\n return $this->birthdate;\n }", "public function getBirthdate()\n {\n return $this->birthdate;\n }", "public function setBirthDate($birthDate) {\n $this->birthDate = $birthDate;\n }", "public function getBirthdate(): \\Datetime\n {\n return $this->birthdate; \n }", "public function setBirthday($birthday)\n {\n $this -> _birthday = $birthday;\n return $this;\n }", "public function setDateOfBirth($value) : Contact\n {\n $this->validateDate('DateOfBirth', $value);\n\n if ($this->data['date_of_birth'] !== $value) {\n $this->data['date_of_birth'] = $value;\n $this->setModified('date_of_birth');\n }\n\n return $this;\n }", "public function getBirthDate()\n {\n return $this->_birthDate;\n }", "public function getBirthdayDate():\\DateTime\n {\n return new \\DateTime($this->birthday_date);\n }", "public function getDateOfBirth()\n {\n return $this->dateOfBirth;\n }", "public function getDateOfBirthAttribute($value)\n {\n return Carbon::parse($value)->format('m/d/Y');\n }" ]
[ "0.74788517", "0.7199976", "0.7165459", "0.716075", "0.71342427", "0.7019549", "0.69338465", "0.6822702", "0.6809615", "0.67865324", "0.676978", "0.67003036", "0.66910946", "0.66520137", "0.6631071", "0.6631071", "0.6627377", "0.66204596", "0.65701854", "0.65701854", "0.65701854", "0.65701854", "0.65681154", "0.65497035", "0.65494937", "0.6534023", "0.65018946", "0.6487235", "0.6458518", "0.6446683" ]
0.7591133
0
Sets the businessPhones property value. The telephone numbers for the user. Only one number can be set for this property. Readonly for users synced from onpremises directory. Supports $filter (eq, not, ge, le, startsWith).
public function setBusinessPhones(?array $value): void { $this->getBackingStore()->set('businessPhones', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBusinessPhone(?string $businessPhone): self\n {\n $this->businessPhone = $businessPhone;\n\n return $this;\n }", "public function setCustomerPhones(array $phones)\n {\n $mobile_phone = preg_replace(\"/[^0-9]/\", \"\", $phones[0]);\n $home_phone = (! isset($phones[1]) || $phones[1] == \"\") ? $mobile_phone : preg_replace(\"/[^0-9]/\", \"\", $phones[1]);\n\n $this->payload['customer']['phones'] = [\n 'mobile_phone' => [\n 'country_code' => '55',\n 'number' => substr($mobile_phone, 2),\n 'area_code' => $mobile_phone[0] . $mobile_phone[1]\n ],\n 'home_phone' => [\n 'country_code' => '55',\n 'number' => substr($home_phone, 2),\n 'area_code' => $home_phone[0] . $home_phone[1]\n ]\n ];\n\n return $this;\n }", "public function setPhones(?array $value): void {\n $this->getBackingStore()->set('phones', $value);\n }", "public function setPhones($phones) {\n $this->phones = $phones;\n }", "public function setPhones($val)\n {\n $this->_propDict[\"phones\"] = $val;\n return $this;\n }", "public function setPhone($value)\n {\n Yii::trace('setPhone()', 'application.components.RinkfinderWebUser');\n\t$this->setState('__phone', $value);\n }", "public function setPhone(){\n\t\t$CPhone = ClientPhone::model() -> findByAttributes(array('mangoTalker' => $this -> mangoTalker), array('with' => 'phone'));\n\t\tif ($CPhone) {\n\t\t\t$this -> phone = $CPhone -> phone;\n\t\t\t$this -> i = $this -> phone -> i;\n\t\t}\n\t}", "public function setPhoneNumber(?string $value): void {\n $this->getBackingStore()->set('phoneNumber', $value);\n }", "public function getBusinessPhones(): ?array {\n $val = $this->getBackingStore()->get('businessPhones');\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 'businessPhones'\");\n }", "public function getBusinessPhones(): ?array {\n $val = $this->getBackingStore()->get('businessPhones');\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 'businessPhones'\");\n }", "public function testGetSetPhones()\n {\n $customer = new Customer();\n $phone = new Phone();\n $this->assertNull($customer->getPhones());\n $customer->setPhones($phone);\n $this->assertEquals($phone, $customer->getPhones());\n }", "public function setMobilePhone(?string $value): void {\n $this->getBackingStore()->set('mobilePhone', $value);\n }", "public function setPhoneNumber($value)\n {\n $this->_fields['PhoneNumber']['FieldValue'] = $value;\n return $this;\n }", "protected function setPhones( $phones = null ) {\n\t\tif( $phones ){\n\t\t\t$this->phones = $phones;\n\t\t\t$this->phones_change = true;\n\t\t}else{\n\t\t\t$this->phones = Moondee_Entity_Phone_Helper::getObjectPhones( $this->id );\n\t\t}\n\t\treturn $this;\n\t}", "public function setPhoneNumber($customerPhone){\n $this->customerPhone = $customerPhone;\n return $this;\n }", "function setPhone($value);", "public function setTelephone($telephone)\n {\n $this->telephone = $telephone;\n\n \n }", "public function setPhonenumber(string $phonenumber = null) {\n $this->phonenumber = $phonenumber;\n return $this;\n }", "public function setTelephone($telephone) {\n $this->telephone = $telephone;\n }", "public function setTelephone($telephone) {\n $this->telephone = $telephone;\n }", "public function getPhonenumber() {\n return $this->phonenumber;\n }", "public function getPhones()\n {\n if (array_key_exists(\"phones\", $this->_propDict)) {\n if (is_a($this->_propDict[\"phones\"], \"\\Beta\\Microsoft\\Graph\\Model\\Phone\") || is_null($this->_propDict[\"phones\"])) {\n return $this->_propDict[\"phones\"];\n } else {\n $this->_propDict[\"phones\"] = new Phone($this->_propDict[\"phones\"]);\n return $this->_propDict[\"phones\"];\n }\n }\n return null;\n }", "public function setBillingPhone($phone)\n {\n $this->data['billing']['x_phone'] = $phone;\n }", "public function setTelephone($telephone)\n {\n $this->telephone = (string)$telephone;\n }", "public function getPhones() {\n return $this->phones;\n }", "function setPhone($new_phone)\n {\n $this->phone = $new_phone;\n }", "public function withPhoneNumber($value)\n {\n $this->setPhoneNumber($value);\n return $this;\n }", "public function setPhoneNumber(\\PhoneNumber $value=null)\n {\n return $this->set(self::PHONE_NUMBER, $value);\n }", "public function getBusinessPhone(): ?string\n {\n return $this->businessPhone;\n }", "public function set_phone($phone){\n\t \t$this->phone = $phone;\t\n\t }" ]
[ "0.6431445", "0.620521", "0.6043793", "0.60014963", "0.59581673", "0.5914485", "0.58184105", "0.5715327", "0.56880116", "0.56880116", "0.56824726", "0.56776696", "0.56220347", "0.55986995", "0.55518496", "0.5475964", "0.54751754", "0.54474527", "0.5428692", "0.5428692", "0.54205984", "0.53935474", "0.53851634", "0.53703284", "0.5364036", "0.5350219", "0.53152823", "0.5311643", "0.5304651", "0.5277707" ]
0.7256843
1
Sets the calendar property value. The user's primary calendar. Readonly.
public function setCalendar(?Calendar $value): void { $this->getBackingStore()->set('calendar', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCalendar(int $calendar) : void;", "public function setSyncCalendar(?bool $value): void {\n $this->getBackingStore()->set('syncCalendar', $value);\n }", "public function setCalendar($calendar)\n{\n$this->calendar = $calendar;\n\nreturn $this;\n}", "function update_and_return_calendarID($value)\n\t{\n\t\t$this->options['id'] = $value;\n\t\tupdate_option('sp_ScoutnetCalendar_options', $this->options);\n\t\treturn $value;\n\t}", "public function set_calendar_name($value)\n {\n $this->calendar_name = $value;\n return $this;\n }", "public function getCalendarId() {\n\t\treturn $this->calendarId; \n\t}", "public function setCalendar($calendar) {\n\t\tif(strpos($calendar, '://') !== false) {\n\t\t\t$this->setCalendarUrl($calendar);\n\t\t} else {\n\t\t\t$this->setCalendarId($calendar);\n\t\t}\n\t\treturn $this;\n\t}", "public function setCalendar($method, $value)\n {\n $this->calendar->{'set'.$method}($value);\n\n return $this;\n }", "public function setCalendarUid ($v)\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->calendar_uid !== $v || $v === '' )\n {\n $this->calendar_uid = $v;\n }\n }", "public function setCalendarView(?array $value): void {\n $this->getBackingStore()->set('calendarView', $value);\n }", "public function setCalendars(?array $value): void {\n $this->getBackingStore()->set('calendars', $value);\n }", "public function getCalendar()\n{\nreturn $this->calendar;\n}", "public function set_enter_date($value)\n {\n $this->set_default_property(self::PROPERTY_ENTER_DATE, $value);\n }", "public function getCalendarUid ()\n {\n\n return $this->calendar_uid;\n }", "public function setCalendarStatus ($v)\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->calendar_status !== $v || $v === 'ACTIVE' )\n {\n $this->calendar_status = $v;\n }\n }", "public function calendar()\n\t{\n\t\treturn $this->belongsToOne(__NAMESPACE__ . '\\Calendar', 'calendar_id');\n\t}", "public function getCalendarId() {\n \tif (!$this->hasCalendar())\n \t\tthrow new osid_IllegalStateException('hasCalendar() is false.');\n \t\n \t$val = $this->cacheGetObj('schedule_info');\n \tif (is_null($val))\n \t\treturn $this->cacheSetObj('schedule_info', $this->getOffering()->getScheduleInfo());\n \telse\n \t\treturn $val;\n\t}", "public function setCalendarName ($v)\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->calendar_name !== $v || $v === '' )\n {\n $this->calendar_name = $v;\n }\n }", "public function setCalendarUrl($calendarUrl) {\n\t\t$calendarUrl = str_replace('%40', '@', $calendarUrl);\n\t\tif(preg_match('![\\?&;/](cid=|src=|ical/)([-_.@a-zA-Z0-9]+)!', $calendarUrl, $matches)) {\n\t\t\t$this->calendarId = $matches[2];\n\t\t} else {\n\t\t\tthrow new WireException(\n\t\t\t\t\"Unrecognized calendar URL format. \" . \n\t\t\t\t\"Please use shareable calendar URL that contains a calendar ID (cid) in the query string\"\n\t\t\t); \n\t\t}\n\t\treturn $this;\n\t}", "function set_cal_language($value = \"\"){\n\t\t$this->cal_language = $value;\n\t}", "public function setDate($date)\n {\n CultureFeed_Cdb_Data_Calendar::validateDate($date);\n $this->date = $date;\n }", "public function setCalendarSyncEnabled($val)\n {\n $this->_propDict[\"calendarSyncEnabled\"] = $val;\n return $this;\n }", "protected function setCalendarTodayData() {\n\t\t$now = new \\Screwfix\\CalendarDateTime();\n\t\t\n\t\t$this->calendarTodayData = array(\n\t\t\t'year' => (int) $now->format('Y'),\n\t\t\t'month' => (int) $now->format('n'),\n\t\t\t'monthName' => $now->format('F'),\n\t\t\t'day' => (int) $now->format('j'),\n\t\t);\n\t}", "public function setCalendarId($calendarId) {\n\t\t$this->calendarId = $calendarId; \n\t\treturn $this;\n\t}", "function setValue($value)\n {\n $value = ($value?:false);\n if( $this->type == 'text' )\n $this->value = $value;\n else\n $this->Options['defaultDate'] = $value;\n }", "public function setContractDocumentDate($value)\n {\n return $this->set(self::CONTRACTDOCUMENTDATE, $value);\n }", "public function __set($name, $value){\n\t\t$found = false;\n\t\t//first, determine if client code is requesting a \"formatted\" attribute\n\t\tif(strlen($name) > 9 && substr($name, 0, 9) === 'formatted'){\n\t\t\t$name = substr($name, 9); //9 is length of \"formatted\"\n\t\t\t$first = substr($name, 0, 1); //get first character\n\t\t\t$first = strtolower($first);\n\t\t\t$name = substr_replace($name, $first, 0, 1);\n\t\t}\n\t\t\n\t\t//if the attribute is an event attribute, set it's date\n\t\tforeach($this->eventAttributes() as $eventAttrName => $eventID){\n\t\t\tif(strcmp($name, $eventAttrName) == 0){\n\t\t\t\t$event = $this->getEventModel($eventID);\n\t\t\t\t$event->DATE = $value;\n\t\t\t\t$found = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If property not found, let the parent have a go\n\t\tif(!$found){\n\t\t\tparent::__set($name, $value);\n\t\t}\n\t}", "public function setSelfServiceAppointmentId($val)\n {\n $this->_propDict[\"selfServiceAppointmentId\"] = $val;\n return $this;\n }", "private function getCalendar() {\n\t\t$this->service = new Google_Service_Calendar($this->client);\n\t}", "public function getCalendar(): ?Calendar {\n $val = $this->getBackingStore()->get('calendar');\n if (is_null($val) || $val instanceof Calendar) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'calendar'\");\n }" ]
[ "0.6763182", "0.6565258", "0.6361644", "0.6222544", "0.60760635", "0.60102105", "0.59555656", "0.59204984", "0.59020036", "0.58724046", "0.58336365", "0.5726086", "0.57131857", "0.5693842", "0.56289923", "0.5516033", "0.53561234", "0.5347895", "0.53175294", "0.5296477", "0.5273589", "0.5240253", "0.51195496", "0.50914586", "0.508625", "0.5084183", "0.5071787", "0.5052467", "0.5050241", "0.5032593" ]
0.7567431
0
Sets the calendarGroups property value. The user's calendar groups. Readonly. Nullable.
public function setCalendarGroups(?array $value): void { $this->getBackingStore()->set('calendarGroups', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setGroups(array $groups = null): self;", "public function getCalendarGroups(): ?array {\n $val = $this->getBackingStore()->get('calendarGroups');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, CalendarGroup::class);\n /** @var array<CalendarGroup>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'calendarGroups'\");\n }", "public function setGroups($groups)\n {\n $this->options['groups'] = (string) $groups;\n }", "protected function setGroups() {\n $this->groups = Moondee_Entity_Group_Helper::getObjectGroups( $this->id );\n }", "function setGroups(array $groups);", "protected function set_authViewGroups($authViewGroups) {\n \n $this->authViewGroups = (string)$authViewGroups;\n \n }", "public function setGroups($groups)\n {\n foreach ($groups as $group) {\n $this->addGroup($group);\n }\n }", "public function setGroups($groups)\n {\n foreach ($groups as $group) {\n $this->addGroup($group);\n }\n }", "public function setGroupsList($value)\n {\n $this->setProperty(\"GroupsList\", $value, true);\n }", "public function setGroups(array $groups)\n {\n $this->data[self::GROUPS] = $groups;\n return $this;\n }", "public function setFormGroups(array $formGroups);", "protected function set_authUseGroups($authUseGroups) {\n \n $this->authUseGroups = (string)$authUseGroups;\n \n }", "public function setCalendars(?array $value): void {\n $this->getBackingStore()->set('calendars', $value);\n }", "public function SetGroups ($uname, $groups) {\n if ($this->ExistsUser($uname)) {\n $params = array ('userName' => array ('content' => $uname, 'type' => 'string'),\n 'groupNames' => array ('content'=> $this->CreateGroupRequest($groups), 'type' => 'ArrayOf_xsd_string'));\n $this->PerformRequest ('setGroups', $params, 'no');\n return true;\n } else {\n return false;\n }//else\n }", "public function setJoinedGroups(?array $value): void {\n $this->getBackingStore()->set('joinedGroups', $value);\n }", "public function setMemberOf(array $dnGroups)\n {\n $this->memberof = $dnGroups;\n }", "public function setAnnotationGroups($annotationGroups)\n {\n $this->options['annotation-groups'] = (string) $annotationGroups;\n }", "public function setUserGroup($userGroup) \n {\n if (!$this->_isNumericArray($userGroup)) {\n $userGroup = array ($userGroup); \n }\n $this->_fields['UserGroup']['FieldValue'] = $userGroup;\n return $this;\n }", "public function setCalendar(int $calendar) : void;", "public function setGroupIds( $groupIds );", "public function setCalendar(?Calendar $value): void {\n $this->getBackingStore()->set('calendar', $value);\n }", "public function groups($value)\n {\n return $this->setProperty('groups', $value);\n }", "public function updateGroups(array $groups = array())\n {\n $data = array(\n 'groups' => $groups\n );\n\n # PUT /accounts/{accountId}/groups\n }", "public function setGroups($values)\n {\n if (is_array($values)) {\n $values = new Carerix_Api_Rest_Collection($values, 'Carerix_Api_Rest_Entity_CRDataNode');\n }\n $this->groups = $values;\n return $this;\n }", "private function set_groups()\n {\n\n foreach ($this->tabs_json['acf']['tab_group'] as $group) {\n $this->groups[] = $group['group'];\n }\n\n }", "public function groups($groups)\n {\n if ( ! is_array($groups))\n {\n $groups = (array) $groups;\n }\n\n $this->groups = $groups;\n\n return $this;\n }", "public function setResourceGroups() {\r\n $resourceGroups = $this->getProperty('resource_groups');\r\n $access = array();\r\n if (!empty($resourceGroups)) {\r\n $resourceGroups = is_array($resourceGroups) ? $resourceGroups : $this->modx->fromJSON($resourceGroups);\r\n foreach ($resourceGroups as $resourceGroup) {\r\n /** @var modAccessResourceGroup $acl */\r\n $acl = $this->modx->newObject('modAccessResourceGroup');\r\n $acl->fromArray($resourceGroup);\r\n $acl->set('principal',$this->object->get('id'));\r\n $acl->set('principal_class','modUserGroup');\r\n if ($acl->save()) {\r\n $access[] = $acl;\r\n }\r\n }\r\n }\r\n return $access;\r\n }", "public function setColGroups(array $colGroups = [])\n {\n $this->colGroups = $colGroups;\n\n return $this;\n }", "protected function sortOutProtectedCalendars($arrCalendars)\n\t{\n\t\tif (BE_USER_LOGGED_IN || !is_array($arrCalendars) || empty($arrCalendars))\n\t\t{\n\t\t\treturn $arrCalendars;\n\t\t}\n\n\t\t$this->import('FrontendUser', 'User');\n\t\t$objCalendar = \\CalendarModel::findMultipleByIds($arrCalendars);\n\t\t$arrCalendars = array();\n\n\t\tif ($objCalendar !== null)\n\t\t{\n\t\t\twhile ($objCalendar->next())\n\t\t\t{\n\t\t\t\tif (!$objCalendar->protected || $this->checkProtectedArchiveVisible($objCalendar->groups, $this->User))\n\t\t\t\t{\n\t\t\t\t\t$arrCalendars[] = $objCalendar->id;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $arrCalendars;\n\t}", "public function assignGroup(...$groups)\n {\n $groups = $this->getCorrectParameter($groups);\n $groups = $this->convertToGroupIds($groups);\n if ($groups->count() == 0) {\n return false;\n }\n $this->groups()->syncWithoutDetaching($groups);\n\n return $this;\n }" ]
[ "0.56902695", "0.5634198", "0.5520599", "0.5451848", "0.5272715", "0.51094246", "0.5108488", "0.5108488", "0.50695556", "0.4972578", "0.49677768", "0.49641922", "0.49630463", "0.49210298", "0.48487467", "0.48049492", "0.4761964", "0.47562513", "0.47233555", "0.47040546", "0.4678792", "0.46615553", "0.46479362", "0.4598916", "0.45956904", "0.4572012", "0.45432132", "0.45422903", "0.45294815", "0.4520237" ]
0.65767425
0
Sets the calendars property value. The user's calendars. Readonly. Nullable.
public function setCalendars(?array $value): void { $this->getBackingStore()->set('calendars', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCalendars(): ?array {\n $val = $this->getBackingStore()->get('calendars');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Calendar::class);\n /** @var array<Calendar>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'calendars'\");\n }", "public function setCalendar(?Calendar $value): void {\n $this->getBackingStore()->set('calendar', $value);\n }", "public function listCalendars()\n {\n return $this->getCalendarService()->calendarList->listCalendarList();\n }", "public function setCalendar(int $calendar) : void;", "public function setSyncCalendar(?bool $value): void {\n $this->getBackingStore()->set('syncCalendar', $value);\n }", "public function setCalendar($calendar)\n{\n$this->calendar = $calendar;\n\nreturn $this;\n}", "public function setCalendarGroups(?array $value): void {\n $this->getBackingStore()->set('calendarGroups', $value);\n }", "public function store($updateNulls = true)\n\t{\t\t\n\t\t\n\t\t$jinput\t\t\t= JFactory::getApplication()->input;\n\t\t$calendarIds \t= $jinput->get('calendarids', array(), 'post', 'array');\n\t\n\t\t$this->calendar_linked = json_encode($calendarIds);\n\t\t\n\t\tif ($this->date_startdate_range) {\n\t\t\t$this->date_range = '1';\n\t\t}\n\t\t\n\t\treturn parent::store($updateNulls);\n\t}", "public function getCalendars()\n\t{\n\t\tif (!$this->User->isAdmin && !is_array($this->User->calendars))\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t$arrForms = array();\n\t\t$objForms = $this->Database->execute(\"SELECT id, title FROM tl_calendar ORDER BY title\");\n\n\t\twhile ($objForms->next())\n\t\t{\n\t\t\tif ($this->User->isAdmin || in_array($objForms->id, $this->User->calendars))\n\t\t\t{\n\t\t\t\t$arrForms[$objForms->id] = $objForms->title;\n\t\t\t}\n\t\t}\n\t\treturn $arrForms;\n\t}", "public function setCalendarWorkDays ($v)\n {\n if ( is_array ($v) )\n {\n $this->calendar_work_days = $v;\n }\n else\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->calendar_work_days !== $v || $v === '' )\n {\n $this->calendar_work_days = $v;\n }\n }\n }", "public function setCalendarView(?array $value): void {\n $this->getBackingStore()->set('calendarView', $value);\n }", "public function calendars()\n {\n return $this->hasMany('Calendar','school_id','id');\n }", "protected function sortOutProtectedCalendars($arrCalendars)\n\t{\n\t\tif (BE_USER_LOGGED_IN || !is_array($arrCalendars) || empty($arrCalendars))\n\t\t{\n\t\t\treturn $arrCalendars;\n\t\t}\n\n\t\t$this->import('FrontendUser', 'User');\n\t\t$objCalendar = \\CalendarModel::findMultipleByIds($arrCalendars);\n\t\t$arrCalendars = array();\n\n\t\tif ($objCalendar !== null)\n\t\t{\n\t\t\twhile ($objCalendar->next())\n\t\t\t{\n\t\t\t\tif (!$objCalendar->protected || $this->checkProtectedArchiveVisible($objCalendar->groups, $this->User))\n\t\t\t\t{\n\t\t\t\t\t$arrCalendars[] = $objCalendar->id;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $arrCalendars;\n\t}", "public function listCalendars($options = array(), $maxpages = 1)\n\t{\n\t\tif ($this->isAuthenticated())\n\t\t{\n\t\t\t$next = array_key_exists('nextPageToken', $options) ? $options['nextPage'] : null;\n\t\t\tunset($options['nextPageToken']);\n\t\t\t$url = 'https://www.googleapis.com/calendar/v3/users/me/calendarList?' . http_build_query($options);\n\n\t\t\treturn $this->listGetData($url, $maxpages, $next);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "function list_cals()\n\t{\n\t\treturn self::list_calendars($GLOBALS['egw_info']['user']['account_id'], $this->grants);\n\t}", "public function getCalendar()\n{\nreturn $this->calendar;\n}", "public static function list() {\n $calendars = [];\n\n try {\n $service = CalendarService::instance();\n $results = $service->calendarList->listCalendarList();\n foreach ($results->getItems() as $item) {\n $calendars[base64_encode($item->getId())] = $item->getSummary();\n }\n }\n catch (\\Exception $e) {\n \\Drupal::messenger()->addWarning($e->getMessage());\n return FALSE;\n }\n\n return $calendars;\n }", "public function store(StoreCalendarsRequest $request)\n {\n if (! Gate::allows('calendar_create')) {\n return abort(401);\n }\n $calendar = Calendar::create($request->all());\n $calendar->projects()->sync(array_filter((array)$request->input('projects')));\n\n\n\n return redirect()->route('admin.calendars.index');\n }", "public function setCalendarUrl($calendarUrl) {\n\t\t$calendarUrl = str_replace('%40', '@', $calendarUrl);\n\t\tif(preg_match('![\\?&;/](cid=|src=|ical/)([-_.@a-zA-Z0-9]+)!', $calendarUrl, $matches)) {\n\t\t\t$this->calendarId = $matches[2];\n\t\t} else {\n\t\t\tthrow new WireException(\n\t\t\t\t\"Unrecognized calendar URL format. \" . \n\t\t\t\t\"Please use shareable calendar URL that contains a calendar ID (cid) in the query string\"\n\t\t\t); \n\t\t}\n\t\treturn $this;\n\t}", "public function setRoleAssignmentSchedules($val)\n {\n $this->_propDict[\"roleAssignmentSchedules\"] = $val;\n return $this;\n }", "public function initCalReminders() {\n $userId = SPC_USERID;\n\n $calDefaultReminders = array();\n $calPopupMessages = array();\n\n $calModel = new Calendar_Model_Calendar();\n $userCals = $calModel->getUserCals($userId, true);\n\n foreach ($userCals as $calId => $cal) {\n $calPopupMessages[$calId] = $cal['reminder_message_popup'];\n //create calendar default reminders arrays, see below\n $calDefaultReminders[$calId] = array();\n\n $select = $this->select(array('cal_id', 'type', 'time', 'time_type'),\n 'spc_calendar_default_reminders')\n\n ->where(\"cal_id = $calId\");\n\n foreach ($this->fetchAll($select) as $reminder) {\n $calDefaultReminders[$calId][] = $reminder;\n }\n }\n\n echo Spc::jsonEncode(array('defaultReminders' => $calDefaultReminders,\n 'defaultPopupReminderMessages' => $calPopupMessages));\n }", "public static function listSynced() {\n $config = \\Drupal::config(CalendarSettings::CONFIGNAME);\n\n $calendars = [];\n foreach ($config->get('synced_calendars') as $id => $data) {\n // Only use \"checked\" items.\n if ($id === $data) {\n $calendars[] = base64_decode($id);\n }\n }\n\n return $calendars;\n }", "public function calendarList($calendarName, $count = -1, $optArgs = array(), $useDefaults = true ) {\n if (!is_array($optArgs)) {\n $optArgs = array();\n }\n\n // use nicer default values\n if ($useDefaults) {\n // show no more than 10 events by default\n // error_log($optArgs['maxResults']);\n // $this->default_value($optArgs['maxResults'], 10);\n // error_log($optArgs['maxResults']);\n \n // sort by start time ascending\n $this->default_value($optArgs['orderBy'], 'startTime');\n\n // expand recurring events into single event instances\n $this->default_value($optArgs['singleEvents'], true);\n\n // default to not show any events before today\n $t = new \\DateTime(NULL);\n error_log(\"Datetime is: \" . $t->format(\\DateTime::RFC3339));\n $this->default_value($optArgs['timeMin'], $t->format(\\DateTime::RFC3339) );\n }\n\n\n // read from config file\n $calendarUser = $this->config['api_information']['application_user'];\n $appName = $this->config['api_information']['application_name'];\n $appEmail = $this->config['api_information']['application_email'];\n $appKeyFile = $this->config['api_information']['keyfile'];\n $calendars = $this->config['calendars'];\n\n error_log($calendarUser);\n error_log($appName);\n error_log($appEmail);\n error_log($appKeyFile);\n error_log($calendarName);\n error_log(\"calendars are:\");\n error_log($this->config['test1']['item1']);\n error_log($this->config['test1']['item2']);\n error_log($this->config['calendars']['frontpage']['id']);\n error_log($this->config['calendars']['frontpage']['id']);\n error_log($this->config['calendars']['other']['id']);\n error_log(\"calendars are:....\");\n error_log(var_export($this->config,true));\n error_log(var_export($calendars[$calendarName],true));\n error_log(\"done...\");\n // error or exception\n if (!array_key_exists($calendarName, $calendars)) {\n return new \\Twig_Markup(\"ERROR: calendar [$calendarName] not found in settings\", 'UTF-8');\n } else {\n $calendar = $calendars[$calendarName]['id'];\n }\n \n // add jQuery to the page (doesn't really belong here...)\n $this->addJquery();\n\n // Following the example here: \n // https://github.com/google/google-api-php-client/blob/master/examples/service-account.php\n // See also: https://developers.google.com/accounts/docs/OAuth2ServiceAccount?hl=ja\n\n // Get a new client object\n error_log(\"Calendar: new client\");\n $client = new \\Google_Client();\n $client->setApplicationName($appName);\n $svc = new \\Google_Service_Calendar($client);\n\n // read in the key\n $key = file_get_contents(dirname(__FILE__) . '/' . $appKeyFile );\n\n if (isset($_SESSION['service_token'])) {\n $client->setAccessToken($_SESSION['service_token']);\n }\n\n // should read from a cached location\n // $client->setAccessToken('{\"access_token\":\"...\",\"expires_in\":...,\"created\":...}');\n // set up credentials used to access calendar\n\n \n error_log(\"Calendar: potentially refresh credentials\");\n if($client->getAuth()->isAccessTokenExpired()) {\n\n $cred = new \\Google_Auth_AssertionCredentials(\n $appEmail,\n array('https://www.googleapis.com/auth/calendar'),\n $key\n );\n\n $cred->sub = $calendarUser;\n $cred->prn = $calendarUser;\n $client->setAssertionCredentials($cred);\n\n error_log(\"Refreshing token!!!\");\n $client->getAuth()->refreshTokenWithAssertion($cred);\n error_log(\"Token refreshed!!!\");\n }\n error_log(\"DONE refreshing credentials!\");\n\terror_log($client->getAccessToken());\n\n // error_log(\"getting token\");\n // $_SESSION['service_token'] = $client->getAccessToken();\n\n // error_log(\"printing token\");\n // error_log(var_export($_SESSION[''], true));\n // error_log($client->getAccessToken());\n // return new \\Twig_Markup('...', 'UTF-8');\n\n // example use of listAcl API\n // error_log(\"Calendar: get acls\");\n // $acl = $svc->acl->listAcl($calendarUser);\n // error_log(\"Calendar: get acls done\");\n // foreach ($acl->getItems() as $rule) {\n // error_log( $rule->getId() . ': ' . $rule->getRole());\n // }\n\n // example of how to list a calendar\n // error_log(\"Listing calendars...\");\n // $calendarList = $svc->calendarList;\n // $res = $calendarList->listCalendarList();\n // error_log(\"ERROR LOG: \");\n // error_log ($res);\n // error_log (var_export($res, true));\n // error_log(\"ERROR LOG DONE\");\n // error_log(\"Done listing calendars\");\n\n\n // $events = $svc->events->listEvents($calendarUser);\n\n error_log(\"Listing events...\");\n // $events = $svc->events->listEvents($calendarToList);\n $events = $svc->events->listEvents($calendar, $optArgs);\n error_log(\"GOT EVENTS\");\n error_log(var_export($events, true));\n error_log(\"DONE EVENTS\");\n\n $ret = array();\n\n // get alllll the events for the calendar\n while(true) {\n foreach ($events->getItems() as $event) {\n $ret[] = $event;\n if ($count > 0 && $count == count($ret)) {\n return $ret;\n }\n error_log( \"Got event: \" . $event->getSummary());\n }\n // break; \n\n // FIXME: re-enable this?\n $pageToken = $events->getNextPageToken();\n if ($pageToken) {\n $optArgs['pageToken'] = $pageToken;\n // $optParams = array('pageToken' => $pageToken);\n error_log(\"getting more events...\");\n $events = $svc->events->listEvents($calendar, $optArgs);\n } else {\n break;\n }\n }\n\n return $ret;\n\n $html = var_export($ret, true);\n return new \\Twig_Markup($html, 'UTF-8');\n }", "public function getCalendar(): ?Calendar {\n $val = $this->getBackingStore()->get('calendar');\n if (is_null($val) || $val instanceof Calendar) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'calendar'\");\n }", "public function getCalendar() {\n $userID = Auth::id();\n $calendars = Calendar::where('userID', $userID)->get();\n\n $events = array();\n foreach ($calendars as $key => $calendar) {\n $eventID = $calendar->eventID;\n $event = Event::find($eventID);\n if(!empty($event)) {\n array_push($events, $event);\n }\n }\n if (count($events) == 0) {\n return Response::json([ 'error' => 'No events scheduled' ]);\n }\n return Response::json([ 'success' => $events ]);\n }", "public function setCalendar($calendar) {\n\t\tif(strpos($calendar, '://') !== false) {\n\t\t\t$this->setCalendarUrl($calendar);\n\t\t} else {\n\t\t\t$this->setCalendarId($calendar);\n\t\t}\n\t\treturn $this;\n\t}", "public function setRoleEligibilitySchedules($val)\n {\n $this->_propDict[\"roleEligibilitySchedules\"] = $val;\n return $this;\n }", "public function set_calendar_name($value)\n {\n $this->calendar_name = $value;\n return $this;\n }", "public function setJoinedTeams(?array $value): void {\n $this->getBackingStore()->set('joinedTeams', $value);\n }", "public function getCalendarEvents(){\n $events = [];\n foreach($this->events as $event){\n $events[] = $event->getCalendarData();\n }\n return $events;\n }" ]
[ "0.62351525", "0.6179741", "0.57355225", "0.57185096", "0.5714605", "0.55556107", "0.55386263", "0.5450611", "0.5439559", "0.5364134", "0.5325204", "0.5278065", "0.5214194", "0.51995933", "0.5104658", "0.5046747", "0.49966237", "0.49773642", "0.49495405", "0.48865983", "0.48557726", "0.48492435", "0.4817998", "0.47952998", "0.47475833", "0.47457662", "0.47264084", "0.47104797", "0.4707538", "0.47035906" ]
0.7245921
0
Sets the calendarView property value. The calendar view for the calendar. Readonly. Nullable.
public function setCalendarView(?array $value): void { $this->getBackingStore()->set('calendarView', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setCalendarDefaultView($view)\n {\n $allowed = ['day','week', 'month'];\n\n if(!in_array($view, $allowed)){\n $this->errors = ['tipo' => $this->typeError[6], 'bad' => $view, 'permitidos' => $allowed];\n }\n\n $this->defaultCalendarView = $view;\n }", "public function setView(View $view = null) {\n $this->view = $view;\n }", "protected function setView($view, $options = [])\n {\n $allowed = ['table', 'calendar'];\n\n if(!in_array($view, $allowed)){\n $this->errors = ['tipo' => $this->typeError[5], 'bad' => $view, 'permitidos' => $allowed];\n }\n\n if ($view == 'calendar' && !empty($options)) {\n $allowedOptions = ['public'];\n $this->allowed($options, $allowedOptions, $this->typeError[3]);\n $this->viewOptions = $options;\n }\n\n $this->view = $view;\n }", "public function setCalendar(?Calendar $value): void {\n $this->getBackingStore()->set('calendar', $value);\n }", "public function setView(View $view)\n {\n $this->_view = $view;\n }", "protected function setView ($view)\n {\n $this->_view = $view;\n }", "function set_view($v, $time=NULL)\r\n\t{\r\n\t\tif($time == NULL)\r\n\t\t\t\t$time = $this->time ;\r\n\t\t\t\t\r\n\t\tswitch($this->view[$v])\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t\t$this->calendar = new DayCalendar($time) ;\r\n\t\t\t\tbreak ;\r\n\t\t\tcase 1:\r\n\t\t\t\t$this->calendar = new WeekCalendar($time) ;\r\n\t\t\t\tbreak ;\r\n\t\t\tcase 3:\r\n\t\t\t\t$this->calendar = new TermCalendar($time) ;\r\n\t\t\t\tbreak ;\r\n\t\t\tcase 4:\r\n\t\t\t\t$this->calendar = new UpcomingCalendar($time) ;\r\n\t\t\t\tbreak ;\r\n\t\t\tdefault:\r\n\t\t\t\t$this->calendar = new MonthCalendar($time) ;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public function setCalendar(int $calendar) : void;", "public function setView(View $view = null)\n {\n if (!$view instanceof View) {\n $bootstrap = Front::getInstance()->getBootstrap();\n if ($bootstrap->hasResource('view')) {\n $view = $bootstrap->getResource('view');\n } else {\n $view = new View();\n }\n }\n\n $this->_view = $view;\n\n return $this;\n }", "public function setView($view)\n {\n $this->view = $view;\n }", "public function setView($sheetViewType)\n {\n // MS Excel 2007 allows setting the view to 'normal', 'pageLayout' or 'pageBreakPreview' via the user interface\n if ($sheetViewType === null) {\n $sheetViewType = self::SHEETVIEW_NORMAL;\n }\n if (in_array($sheetViewType, self::SHEET_VIEW_TYPES)) {\n $this->sheetviewType = $sheetViewType;\n } else {\n throw new PhpSpreadsheetException('Invalid sheetview layout type.');\n }\n\n return $this;\n }", "function hook_date_ical_feed_ical_vcalendar_render_alter(&$vcalendar, $view) {\n\n}", "public function setCalendar($calendar)\n{\n$this->calendar = $calendar;\n\nreturn $this;\n}", "public function setCalendarName ($v)\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->calendar_name !== $v || $v === '' )\n {\n $this->calendar_name = $v;\n }\n }", "public function setView(\\App\\View $view)\r\n {\r\n $this->view = $view;\r\n return $this;\r\n }", "abstract public function setView($view);", "final public function setView(AbstractView $view) {\r\n $this->_view = $view;\r\n\r\n return $this;\r\n }", "public function setCalendarUid ($v)\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->calendar_uid !== $v || $v === '' )\n {\n $this->calendar_uid = $v;\n }\n }", "public static function setDefaultView(View $view)\n {\n self::$defaultView = $view;\n }", "public function setView(Zend_View_Interface $view = null)\n {\n $this->_view = $view;\n return $this;\n }", "public function setView(string $view)\n {\n $this->view = $view;\n }", "public function setView(string $view)\n {\n $this->view = $view;\n }", "public function setSyncCalendar(?bool $value): void {\n $this->getBackingStore()->set('syncCalendar', $value);\n }", "public function setView ( Zend_View_Interface $view = null )\n {\n $this->_view = $view;\n\n return $this;\n }", "public static function setViewFile($viewFile)\n {\n self::$_viewFile = $viewFile;\n }", "public function setView(Renderer $view)\n {\n $this->view = $view;\n }", "public static function setView(ViewFactory $view)\n {\n self::$view = $view;\n }", "public function setView($view, $controllerName = 'email', $applicationFolder = 'dashboard') {\n $this->view = LegacyAssetModel::viewLocation($view, $controllerName, $applicationFolder);\n return $this;\n }", "public function set_view($view)\n {\n return $this->set_views($view);\n }", "public function setView(Yaf\\View_Interface $view) {}" ]
[ "0.67755675", "0.6055813", "0.60511655", "0.579535", "0.5706837", "0.5656146", "0.5645537", "0.56430584", "0.5530443", "0.55185443", "0.5487932", "0.54018486", "0.5368824", "0.5203308", "0.51860684", "0.51819265", "0.5153541", "0.51422966", "0.5136364", "0.5125438", "0.5113693", "0.5113693", "0.5108273", "0.5093875", "0.5069244", "0.50593245", "0.50527763", "0.5052512", "0.5049162", "0.5020584" ]
0.66702735
1
Sets the chats property value. The chats property
public function setChats(?array $value): void { $this->getBackingStore()->set('chats', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setThreats($value)\n {\n $this->setProperty(\"Threats\", $value, true);\n }", "public function chats()\n {\n return $this->hasMany(Chat::class);\n }", "public function setChat()\r\n {\r\n $query = \"SELECT EMISOR_ID, RECEPTOR_ID, MENSAJE FROM CHATS WHERE CHAT_ID = :chat_id\";\r\n $stmt = DBConnection::getStatement($query);\r\n $stmt->execute(['CHAT_ID' => $this->chat_id]);\r\n if ($datos = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\r\n $this->emisor_id = $datos['EMISOR_ID'];\r\n $this->receptor_id = $datos['RECEPTOR_ID'];\r\n $this->leido = $datos['LEIDO'];\r\n $this->mensaje = $datos['MENSAJE'];\r\n };\r\n }", "public function setChatId(?string $value): void {\n $this->getBackingStore()->set('chatId', $value);\n }", "public static function getChats() {\n $em = dbconnection::getInstance()->getEntityManager() ;\n $chatRepository = $em->getRepository('chat');\n $chats = $chatRepository->findAll();\n\n return $chats;\n\n }", "function chats_of_account()\n\n {\n\n $data['expenses'] = $this->Home_model->expenses('expenses');\n\n $this->loadViews(\"admin/admin_views/chats_of_account\", $this->global, $data, NULL);\n\n }", "public function chats(): object\n {\n $params = array(\n 'request' => '/chat',\n 'payload' => '',\n 'method' => 'GET'\n );\n\n return $this->request($params);\n }", "protected function setChatRoomCnt() {\n $chatroomcnt = ' '; // stores chat room content\n\n // if file for current chat room exists, gets its content, else, display 'no chat', and current user\n if(file_exists($this->fileroom)) {\n $chatroomcnt = file_get_contents($this->fileroom);\n $chatusers = $this->getChatUsers($chatroomcnt); // get the list with online users\n\n // if access to add new chat text\n if(isset($_POST['adchat'])) {\n $adchat = trim(htmlentities($_POST['adchat'], ENT_NOQUOTES, 'utf-8')); // Transform HTML characters, and delete external whitespace\n if(get_magic_quotes_gpc()) $adchat = stripslashes($adchat); // Removes slashes added by get_magic_quotes_gpc\n\n // gets chat text rows\n preg_match_all('#(\\<p\\>(.*?)\\</p\\>)#is', $chatroomcnt, $found);\n $chatrows = $found[1];\n\n // if text added, sets the new row at the end, and keep the last $maxrows rows\n if(strlen($adchat)<1 || strlen($adchat)<201) {\n $chatrows[] = '<p><span class=\"chatusr\">&bull; '.$this->chatuser.' - </span><em>'.date('j F H:i').'</em><span class=\"chat\">- '. $this->formatBbcode($adchat). '</span></p>';\n $chatrows = array_slice($chatrows, -($this->maxrows));\n }\n\n // sets chat room content\n $chatroomcnt = '<div id=\"chats\"><q>'.time().'</q>'. implode('', $chatrows). '</div>' .$chatusers;\n }\n else {\n // replace users list with new one (\"/is\" pattern case-insensitive, include newlines)\n $chatroomcnt = preg_replace('#\\<div id=\"chatusers\"\\>\\<h4 id=\"onl\"\\>Online\\</h4\\>(.*?)\\</div\\>#is', $chatusers, $chatroomcnt);\n }\n }\n else $chatroomcnt = '<div id=\"chats\">'.$this->lsite['notchat'].'</div>'. $this->getChatUsers('');\n\n if(strlen($chatroomcnt) > 10) {\n // write the chat content in TXT file, returns $chatroomcnt, or message error\n if(file_put_contents($this->fileroom, $chatroomcnt)) return $chatroomcnt;\n else return sprintf($this->lsite['err_savechat'], $this->fileroom);\n }\n }", "public function getChats(): ?array {\n $val = $this->getBackingStore()->get('chats');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Chat::class);\n /** @var array<Chat>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'chats'\");\n }", "public function getChat()\n {\n return $this->chat;\n }", "function chat_on() {\n \n }", "public static function setChatLines($chattext, $usrname, $chatroomID) {\n require_once(\"../dbconfig.php\");\n $date = date('Y-m-d H:i:s'); # get current datetime\n $db->query(\"SET NAMES 'UTF8'\");\n $statement = $db->prepare(\n \"INSERT INTO chat VALUES (?, ?, ?, ?, null)\");\n $statement->bind_param('issi', $usrname, $chattext, $date, $chatroomID);\n $statement->execute();\n $statement->close();\n\n // update last_active time\n $statement = $db->prepare(\n \"UPDATE chatlist SET last_active=? where chatroomID=?\");\n $statement->bind_param('si', $date, $chatroomID);\n $statement->execute();\n $statement->close();\n\n $db->close();\n }", "public function setTeamChatMessages($val)\n {\n $this->_propDict[\"teamChatMessages\"] = intval($val);\n return $this;\n }", "public function setMessage(?ChatMessage $value): void {\n $this->getBackingStore()->set('message', $value);\n }", "public function setChannels(?array $value): void {\n $this->getBackingStore()->set('channels', $value);\n }", "public function __construct(Chat $chat)\n {\n $this->chat = $chat;\n }", "public function setSpeakers(?array $value): void {\n $this->getBackingStore()->set('speakers', $value);\n }", "public function setWins($value){\n $this->wins=$value;\n }", "public function setPrivateChatMessages($val)\n {\n $this->_propDict[\"privateChatMessages\"] = intval($val);\n return $this;\n }", "public static function setChannelType($type)\n {\n self::$_channelType = $type;\n\n }", "public function index()\n {\n return view('admin.users.chats');\n }", "public function setChannelId($value)\n {\n $this->_channelId = $value;\n }", "public static function getChatsWith()\n\t{\n return SQL::exec('SELECT sender_id,receiver_id FROM chat WHERE sender_id=? OR receiver_id=? ORDER BY id DESC', [session::isAuthorized(),session::isAuthorized()], SQL::FETCHALL);\n\t}", "public function setChannel($value)\n {\n return $this->set(self::CHANNEL, $value);\n }", "function setChannelAbout($a_ab)\n\t{\n\t\t$this->ch_about = $a_ab;\n\t}", "public function setMessageType(?ChatMessageType $value): void {\n $this->getBackingStore()->set('messageType', $value);\n }", "public function set_anschid($anschid) {\n $this->anschid = intval($anschid);\n }", "public function setWins()\n {\n $this->wins++;\n }", "public function chatUsers()\n\t{\n\t\treturn $this->hasMany('\\App\\Models\\Chat\\User', 'user_id');\n\t}", "public function list() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['token'] = $token;\n \n $chats = Chats::findCurrentChats();\n // For each chat of the current user, we add a message property containing the last message of the chat\n foreach($chats as $key=>$contact) {\n $chats[$key]['message']=Messages::getLast($chats[$key]['chat_id']);\n }\n // We only display chats that have messages\n $activeChats = array_filter($chats, function($chat){\n return $chat['message'] == true;\n });\n //And we sort them by last message date\n usort($activeChats, function($a, $b) {\n return strcmp($b[\"message\"]->created_at, $a[\"message\"]->created_at);\n }); \n $this->show('chat/list', ['activeChats'=>$activeChats, 'token'=>$token]);\n }" ]
[ "0.6283714", "0.6065279", "0.5576891", "0.55040777", "0.5321674", "0.51607955", "0.5143039", "0.514274", "0.50950634", "0.48469797", "0.4792431", "0.4774184", "0.47525954", "0.4749644", "0.47400337", "0.4642178", "0.46251962", "0.4607006", "0.459173", "0.45801434", "0.45712855", "0.4568264", "0.4559071", "0.45288944", "0.45236126", "0.451936", "0.4518383", "0.45152593", "0.45127496", "0.4507171" ]
0.7391723
0
Sets the cloudPCs property value. The cloudPCs property
public function setCloudPCs(?array $value): void { $this->getBackingStore()->set('cloudPCs', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCloudPCs(): ?array {\n $val = $this->getBackingStore()->get('cloudPCs');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, CloudPC::class);\n /** @var array<CloudPC>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'cloudPCs'\");\n }", "public function set_cpts(){\n\t\t\t\n\t\t\t$cpts = new CPT();\n\t\t\t$cpts->setup();\n\t\t\t\n\t\t}", "public function setCloudProvisioningScore($val)\n {\n $this->_propDict[\"cloudProvisioningScore\"] = floatval($val);\n return $this;\n }", "public function setConnectionSettings(?CloudPcConnectionSettings $value): void {\n $this->getBackingStore()->set('connectionSettings', $value);\n }", "public function getSkCpns()\n {\n return $this->sk_cpns;\n }", "public function setCertificates(array $certificates): void\n {\n $this->certificates = $certificates;\n }", "public function setCloudPcNamingTemplate($val)\n {\n $this->_propDict[\"cloudPcNamingTemplate\"] = $val;\n return $this;\n }", "public function setEnterpriseCodeSigningCertificates(?array $value): void {\n $this->getBackingStore()->set('enterpriseCodeSigningCertificates', $value);\n }", "public function setSkCpns($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->sk_cpns !== $v) {\n $this->sk_cpns = $v;\n $this->modifiedColumns[] = PtkPeer::SK_CPNS;\n }\n\n\n return $this;\n }", "public function setCloudManagementScore($val)\n {\n $this->_propDict[\"cloudManagementScore\"] = floatval($val);\n return $this;\n }", "public function setOnPremisesConnectionName(?string $value): void {\n $this->getBackingStore()->set('onPremisesConnectionName', $value);\n }", "public function setPCStorage($pcStorage)\n {\n if (!($pcStorage instanceof PCStorage)) {\n throw new Klarna_InvalidTypeException('pcStorage', 'PCStorage');\n }\n $this->pcStorage = $pcStorage->getName();\n $this->pclasses = $pcStorage;\n }", "public function setCpf(string $cpf) : void\n {\n $this->cpf = $cpf;\n }", "public static function createFromDiscriminatorValue(ParseNode $parseNode): CloudPC {\n return new CloudPC();\n }", "public function setCloudPcGroupDisplayName($val)\n {\n $this->_propDict[\"cloudPcGroupDisplayName\"] = $val;\n return $this;\n }", "public function setScepServerUrls(?array $value): void {\n $this->getBackingStore()->set('scepServerUrls', $value);\n }", "public function setCloudEndpoints($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\Monitoring\\V3\\Service\\CloudEndpoints::class);\n $this->writeOneof(8, $var);\n\n return $this;\n }", "public function setServices($values) {\r\n $this->Services = $values;\r\n }", "public function setCtps($ctps)\n {\n $this->ctps = $ctps;\n\n return $this;\n }", "public function setProvisioningType(?CloudPcProvisioningType $value): void {\n $this->getBackingStore()->set('provisioningType', $value);\n }", "public function setCloudiness($cloudiness)\n {\n $this->cloudiness = $cloudiness;\n\n return $this;\n }", "public function setStatus(?CloudPcStatus $value): void {\n $this->getBackingStore()->set('status', $value);\n }", "public function setPowerState(?CloudPcPowerState $value): void {\n $this->getBackingStore()->set('powerState', $value);\n }", "public function __construct(PC $pc)\n {\n $this->pc = $pc;\n }", "public function setCNPJ($sCNPJ) {\n $this->sCNPJ = $sCNPJ;\n }", "public function setProvisionedPlans(?array $value): void {\n $this->getBackingStore()->set('provisionedPlans', $value);\n }", "public function setProvisionedPlans(?array $value): void {\n $this->getBackingStore()->set('provisionedPlans', $value);\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setCloudPcRoundTripTime(?float $value): void {\n $this->getBackingStore()->set('cloudPcRoundTripTime', $value);\n }" ]
[ "0.5809558", "0.52672267", "0.512375", "0.50180936", "0.50005484", "0.49461803", "0.49407452", "0.49294522", "0.48921284", "0.48586473", "0.4850275", "0.48452097", "0.48035336", "0.47677392", "0.47647008", "0.47634017", "0.4740058", "0.4729492", "0.4717743", "0.47011974", "0.46812147", "0.4652751", "0.46495187", "0.4645031", "0.4628021", "0.46236324", "0.46236324", "0.4622477", "0.4622477", "0.46030504" ]
0.7814682
0
Sets the cloudRealtimeCommunicationInfo property value. Microsoft realtime communication information related to the user. Supports $filter (eq, ne,not).
public function setCloudRealtimeCommunicationInfo(?CloudRealtimeCommunicationInfo $value): void { $this->getBackingStore()->set('cloudRealtimeCommunicationInfo', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCloudRealtimeCommunicationInfo(): ?CloudRealtimeCommunicationInfo {\n $val = $this->getBackingStore()->get('cloudRealtimeCommunicationInfo');\n if (is_null($val) || $val instanceof CloudRealtimeCommunicationInfo) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'cloudRealtimeCommunicationInfo'\");\n }", "public function communications()\n {\n return $this->hasMany(UserCommunication::class);\n }", "public function setUserInfo($userinfo)\n {\n if (is_array($userinfo)) {\n // we've got array\n $this->info = $userinfo;\n } else if (is_object($userinfo)) {\n // we've got object\n foreach ($this->select_columns as $column) {\n if (isset($userinfo->{$column})) {\n $this->info[$column] = $userinfo->{$column};\n }\n }\n }\n }", "public function setInvitedUserMessageInfo($value)\n {\n $this->setProperty(\"InvitedUserMessageInfo\", $value, true);\n }", "public function setUserInfo($userinfo)\n {\n $this->userinfo = $userinfo;\n }", "public function setUserInfo($info)\r\n {\r\n $this->userInfo = $info;\r\n $this->message .= \" [User Info: \" .$this->userInfo . \"]\";\r\n }", "public function setContact($value){\n return $this->setParameter('contact', $value);\n }", "public function setContact($value){\n return $this->setParameter('contact', $value);\n }", "public function setIncomingChannels(?array $value): void {\n $this->getBackingStore()->set('incomingChannels', $value);\n }", "public function setSyncCat($value = true){\n $this->sync_cat = $value;\n }", "public function updateConnectionFields($uid, $data = []);", "public function trackUserData(){\n\t\t$userObj = $this->getUserObj();\n\t\tif($userObj){\n\t\t\tnc_analytic::send(array(\n\t\t\t\t\"appname\"=>STATUS == \"live\" ? APP_NAMESPACE : APP_NAMESPACE.\"_staging\",\n\t\t\t\t\"method\"=>\"userData\",\n\t\t\t\t\"param\"=>array(\n\t\t\t\t\t\"name\"=>$userObj[\"name\"],\n\t\t\t\t\t\"email\"=>$userObj[\"email\"],\n\t\t\t\t\t\"fbid\"=>$userObj[\"fbid\"],\n\t\t\t\t\t\"phone\"=>$userObj[\"phone\"],\n\t\t\t\t\t\"ic\"=>$userObj[\"ic\"],\n\t\t\t\t\t\"gender\"=>$userObj[\"sex\"],\n\t\t\t\t\t\"age\"=>$userObj[\"age\"],\n\t\t\t\t\t\"country\"=>$userObj[\"country\"],\n\t\t\t\t\t\"pdpa\"=>$userObj[\"pdpa\"] == 1 ? \"accept\":\"deny\",\n\t\t\t\t\t\"ip\"=>$userObj[\"ip\"]\n\t\t\t\t)\n\t\t\t));\n\t\t}\n\t}", "public function setOnPremisesSipInfo(?OnPremisesSipInfo $value): void {\n $this->getBackingStore()->set('onPremisesSipInfo', $value);\n }", "public function setNotificationChannels(?array $value): void {\n $this->getBackingStore()->set('notificationChannels', $value);\n }", "static function setConnectionInfo(array $info) {\n self::$connection_info = $info;\n }", "public function parseUserContacts ($contactInfo) {\r\n \r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n\t$user_id = $viewer->getIdentity();\r\n\t$table_user = Engine_Api::_()->getitemtable('user');\r\n\t$tableName_user = $table_user->info('name');\r\n\t\r\n\t$inviteTable = Engine_Api::_()->getDbtable('invites', 'invite');\r\n $inviteTableName = $inviteTable->info('name');\r\n \r\n\t$table_user_memberships = Engine_Api::_()->getDbtable('membership' , 'user');\r\n\t$tableName_user_memberships = $table_user_memberships->info('name');\r\n\t$SiteNonSiteFriends[] = '';\r\n $i = 0;\r\n\tforeach ($contactInfo as $values) { \r\n if (empty($values['id'])) continue;\r\n\t\t//FIRST WE WILL FIND IF THIS USER IS SITE MEMBER\r\n\t\t$select = $table_user->select()\r\n\t\t->setIntegrityCheck(false)\r\n\t\t->from($tableName_user, array('user_id', 'displayname', 'photo_id'))\r\n\t\t->join($inviteTableName, \"$inviteTableName.new_user_id = $tableName_user.user_id\", null)\r\n\t\t->where($inviteTableName . '.new_user_id <>?', 0)\r\n\t\t->limit(1)\r\n\t\t->where($inviteTableName . '.social_profileid = ?', $values['id']);\r\n\r\n\t\t$is_site_members = $table_user->fetchRow($select);\r\n if (empty($user_id)) {\r\n\t\t\tif ($is_site_members && !empty($is_site_members->user_id)) {\r\n\t\t\t\tcontinue;\r\n }\r\n\r\n }\r\n\t\t//NOW IF THIS USER IS SITE MEMBER THEN WE WILL FIND IF HE IS FRINED OF THE OWNER.\r\n\t\tif ($is_site_members && !empty($is_site_members->user_id) && $is_site_members->user_id != $user_id) { \r\n\t\t \r\n\t\t\t$contact = Engine_Api::_()->user()->getUser($is_site_members->user_id);\r\n \r\n\t\t\t// Get data\r\n $direction = (int) Engine_Api::_()->getApi('settings', 'core')->getSetting('user.friends.direction', 1);\r\n if (!$direction) {\r\n //one way\r\n $friendship_status = $viewer->membership()->getRow($contact);\r\n }\r\n else\r\n $friendship_status = $contact->membership()->getRow($viewer);\r\n \r\n if (!$friendship_status || $friendship_status->active == 0) {\r\n $SiteNonSiteFriends[0][] = $is_site_members->toArray();;\r\n }\r\n \r\n\t\t}\r\n\t\t//IF USER IS NOT SITE MEMBER .\r\n\t\telse if (!$is_site_members) {\r\n\t\t \r\n\t\t\t$SiteNonSiteFriends[1][] = $values;\r\n\t\t}\r\n \r\n\t}\r\n\r\n\t$result[0] = '';\r\n\t$result[1] = '';\r\n\tif (!empty($SiteNonSiteFriends[1]))\r\n\t $result[1] = array_map(\"unserialize\", array_unique(array_map(\"serialize\", $SiteNonSiteFriends[1])));\r\n\r\n\tif (!empty($SiteNonSiteFriends[0])) \r\n\t $result[0] = array_map(\"unserialize\", array_unique(array_map(\"serialize\", $SiteNonSiteFriends[0])));\r\n return $result;\r\n \r\n \r\n}", "public function setContactOtherInfo($subscriber)\n {\n if (!$subscriber->updated_flag) {\n $social_data = $this->getSocialContacts($subscriber->email);\n\n if (!is_null($social_data)) {\n if (isset($social_data->avatar) && !is_null($social_data->avatar)) {\n $subscriber->photo_url = $social_data->avatar;\n }\n\n if (is_null($subscriber->twitter_link) || empty($subscriber->twitter_link)) {\n if (isset($social_data->twitter) && !is_null($social_data->twitter)) {\n $subscriber->twitter_link = $social_data->twitter;\n// $subscriber->twitter_name = $this->getSocialUserName($social_data->twitter);\n }\n }\n\n if (is_null($subscriber->facebook_link) || empty($subscriber->facebook_link)) {\n if (isset($social_data->facebook) && !is_null($social_data->facebook)) {\n $subscriber->facebook_link = $social_data->facebook;\n// $subscriber->facebook_name = $this->getSocialUserName($social_data->facebook);\n }\n }\n\n if (is_null($subscriber->linked_in_link) || empty($subscriber->linked_in_link)) {\n if (isset($social_data->linkedin) && !is_null($social_data->linkedin)) {\n $subscriber->linked_in_link = $social_data->linkedin;\n// $subscriber->linked_in_name = $this->getSocialUserName($social_data->linkedin);\n }\n }\n\n if (is_null($subscriber->firstname) || is_null($subscriber->lastname) || empty($subscriber->firstname) || empty($subscriber->lastname)) {\n if (isset($social_data->fullName) && !is_null($social_data->fullName)) {\n $f_n_array = explode(' ', $social_data->fullName);\n if (isset($f_n_array[1])) {\n $subscriber->firstname = $f_n_array[0];\n $subscriber->lastname = $f_n_array[1];\n } else {\n $subscriber->firstname = $social_data->fullName;\n }\n }\n }\n\n if (is_null($subscriber->job_title) || empty($subscriber->job_title)) {\n if (isset($social_data->title) && !is_null($social_data->title)) {\n $subscriber->job_title = $social_data->title;\n }\n }\n\n if (is_null($subscriber->organization) || empty($subscriber->organization)) {\n if (isset($social_data->organization) && !is_null($social_data->organization)) {\n $subscriber->organization = $social_data->organization;\n }\n }\n\n if (is_null($subscriber->website) || empty($subscriber->website)) {\n if (isset($social_data->website) && !is_null($social_data->website)) {\n $subscriber->website = $social_data->website;\n }\n }\n\n if (is_null($subscriber->location) || empty($subscriber->location)) {\n if (isset($social_data->location) && !is_null($social_data->location)) {\n $subscriber->location = $social_data->location;\n }\n }\n\n if (is_null($subscriber->interests) || empty($subscriber->interests)) {\n if (isset($social_data->details->interests) && !is_null($social_data->details->interests)) {\n $subscriber->interests = json_encode($social_data->details->interests);\n }\n }\n\n if (is_null($subscriber->details) || empty($subscriber->details)) {\n if (isset($social_data->details) && !is_null($social_data->details)) {\n $subscriber->details = json_encode($social_data->details);\n }\n }\n\n if (isset($social_data->details) && !is_null($social_data->details)) {\n if (isset($social_data->details->gender) && !is_null($social_data->details->gender)) {\n $subscriber->gender = $social_data->details->gender;\n }\n }\n }\n }\n\n $subscriber->updated_flag = 1;\n\n $subscriber->save();\n\n return $subscriber;\n }", "public function setCommunication( \\Aimeos\\MW\\Communication\\Iface $communication )\n\t{\n\t\t$this->communication = $communication;\n\t}", "public function broadcastWhen()\n {\n // $contacts = DB::table('networks')\n // ->where('user_one_id','=',Auth::user()->id)\n // ->orWhere('user_two_id','=',Auth::user()->id)\n // ->get();\n // $var = false;\n //buscar si el usuario autenticado tiene de contacto al que inicio sesión\n // foreach ($contacts as $key => $item) {\n // if(($item->user_one_id == $this->user->id && $item->user_two_id == Auth::user()->id ) || ($item->user_two_id == $this->user->id && $item->user_one_id == Auth::user()->id)){\n // $var = true;\n // }\n // }\n // $contacts_one = Auth::user()->contacts_one;\n // $contacts_two = Auth::user()->contacts_two;\n // dd($var,$contacts);\n return true;\n }", "public function getOtherChannelsVisible();", "public function setPhone(){\n\t\t$CPhone = ClientPhone::model() -> findByAttributes(array('mangoTalker' => $this -> mangoTalker), array('with' => 'phone'));\n\t\tif ($CPhone) {\n\t\t\t$this -> phone = $CPhone -> phone;\n\t\t\t$this -> i = $this -> phone -> i;\n\t\t}\n\t}", "public function setChannelId($value)\n {\n $this->_channelId = $value;\n }", "public function setConNotification($_conNotification = NULL) {\n\t\tif ($_conNotification == NULL) {\n\t\t\t$this->_conNotification = new Contenido_Notification();\n\t\t} else {\n\t\t\t$this->_conNotification = $_conNotification;\n\t\t}\n\t\treturn ($this);\n\t}", "function send_fcm_message_vender($user_id,$msg,$title='',$to_id='',$fname='')\n {\n // get user id\n $check = $this->CI->custom_model->my_where('admin_users','id,fcm_no,source',array('id'=>$user_id));\n \n // echo \"<pre>\";\n \n // print_r($check); die;\n \n if(!empty($check[0]['fcm_no']))\n {\n $fcmno = $check[0]['fcm_no'];\n $firebase = new Firebase();\n $push = new Push();\n $push->setTitle($title);\n $push->setMessage($msg);\n $push->setoid($to_id);\n $push->setfname($fname);\n $push->setUser($user_id);\n $json = $push->getPush();\n \n \n // $query = mysqli_query($conn,\"SELECT iosToken FROM user_notify WHERE fcm_no = '$fcmno' AND iosToken !='' \");\n \n if( $check[0]['source'] == 'ios' || $check[0]['source'] == 'iOS' )\n {\n $response = $firebase->sendToios($fcmno, $json);\n return $response;\n }\n else\n {\n //$json = json_encode($json); \n $response = $firebase->send($fcmno, $json);\n return $response;\n }\n \n }\n else{\n return $check;\n }\n }", "public function setContactDetail()\n\t{\n\t\t// DIRECT CALL \n\t\tif($this->directCall)\n\t\t{\n\t\t\t//invalid phone condition: \n\t\t\tif(!JsCommon::isPhoneValid($this->profileObj))\n\t\t\t{\n\t\t\t$PHONE_MOB = \"I\";\n\t\t\t$PHONE_RES = \"I\";\n\t\t\t$ALT_NUM=\"I\";\n\t\t\t$chk_landlStatus=\"I\";\n\t\t\t$chk_mobStatus=\"I\";\n\t\t\t}\n\t\t\telse // verified status\n\t\t\t{\n\t\t\tif($this->profileObj->getPHONE_MOB()!='')\n\t\t\t\t$chk_mobStatus=$this->profileObj->getMOB_STATUS();\n\t\t\tif($this->profileObj->getPHONE_RES()!='')\n\t\t\t\t$chk_landlStatus=$this->profileObj->getLANDL_STATUS();\n\t\t\t}\n\t\t\t\n\t\t\tif($chk_landlStatus ==Messages::YES)\n\t\t\t\t$this->setVERIFIED_LANDLINE(Messages::YES);\n\t\t\telse\n\t\t\t\t$this->setVERIFIED_LANDLINE(Messages::NO);\t\n\t\t\t\t\t\n\t\t\tif($chk_mobStatus ==Messages::YES)\n\t\t\t\t\t$this->setVERIFIED_MOB(Messages::YES);\n\t\t\telse\n\t\t\t\t$this->setVERIFIED_MOB(Messages::NO);\n\t\t\t\n\t\t}\n\t\t\n\t\t/*********DIRECT CALL Ends here******************/\n\t\t\n\t\t//Residence phone number and Owner details\n\t\t\n if(($this->profileObj->getSHOWPHONE_RES()==Messages::YES || $this->profileObj->getSHOWPHONE_RES()==\"\"|| ($this->profileObj->getSHOWPHONE_RES()==\"C\" && ($this->contactHandlerObj->getContactType() == ContactHandler::ACCEPT ||($this->contactHandlerObj->getContactType() == ContactHandler::INITIATED && $this->contactHandlerObj->getContactInitiator() == ContactHandler::RECEIVER))))&& $PHONE_RES!=\"I\" && $this->profileObj->getPHONE_RES()!=\"\") \n\t\t{\n\t\t\t$this->setRES_PHONE_OWNER_NUMBER($this->profileObj->getDecoratedLandlineNumberOwner());\n\t\t\t$this->setRES_PHONE_OWNER_NAME($this->profileObj->getPHONE_OWNER_NAME());\n\t\t\t$res_phone=$this->profileObj->getSTD().\"-\".$this->profileObj->getPHONE_RES();\n\t\t\tif($this->profileObj->getISD())\n\t\t\t$this->setRES_PHONE_NO($this->profileObj->getISD().\"-\".$res_phone);\n }\n \n /*********Ends here******************/\n\t\t\n\t\t//Mobile phone number and Owner details\n\t\t\n if(($this->profileObj->getSHOWPHONE_MOB()==Messages::YES || $this->profileObj->getSHOWPHONE_MOB()==\"\"|| ($this->profileObj->getSHOWPHONE_MOB()==\"C\" && ($this->contactHandlerObj->getContactType() == ContactHandler::ACCEPT ||($this->contactHandlerObj->getContactType() == ContactHandler::INITIATED && $this->contactHandlerObj->getContactInitiator() == ContactHandler::RECEIVER))))&& $PHONE_MOB!=\"I\" && $this->profileObj->getPHONE_MOB()!=\"\") \n {\n\t\t\t$this->setMOB_PHONE_OWNER_NUMBER($this->profileObj->getDecoratedMobileNumberOwner());\n\t\t\t$this->setMOB_PHONE_OWNER_NAME($this->profileObj->getMOBILE_OWNER_NAME());\n\t\t\t$mob_phone=$this->profileObj->getPHONE_MOB(); \n\t\t\tif($this->profileObj->getISD())\n\t\t\t$this->setMOB_PHONE_NO($this->profileObj->getISD().\"-\".$mob_phone);\n }\n \n\t\t/*********Ends here******************/\n\t\t\n\t\t//Email Detail\n\t\t\n\t\tif($this->profileObj->getVERIFY_EMAIL()==Messages::YES)\n {\n\t\t\t\n\t\t}\n\t\t$this->setEMAIL_ID($this->profileObj->getEMAIL());\n\t\t/*******Ends Here********************/\n\t\t\n\t\t//calculating left allotted count\n\t\t\t\n\t\t\t$jsadmin_CONTACTS_ALLOTED_OBJ =new jsadmin_CONTACTS_ALLOTED();\n\t\t\t\n\t\t\t$this->setLEFT_ALLOTED($jsadmin_CONTACTS_ALLOTED_OBJ->getViewedContacts($this->contactHandlerObj->getViewer()->getPROFILEID()));\n\t\t\t/************Ends here********/\n\t\t\n\t\t//show viewer address\n\t\t\n if($this->profileObj->getCONTACT()!=\"\" && $this->profileObj->getSHOWADDRESS()==Messages::YES)\n\t\t\t{\n\t\t\t\t$address=$this->profileObj->getCONTACT();\n\t\t\t\tif($this->profileObj->getPINCODE())\n\t\t\t\t\t$address=$address.\"\\n Pincode:\".$this->profileObj->getPINCODE();\n\t\t\t\t$this->setSHOW_ADDRESS(nl2br($address));\n\t\t\t}\n\t\t\t\n\t\t/*********Ends here******************/\n\t\t\t\n\t\t//show parent Address\t\n\t\t\n if($this->profileObj->getSHOW_PARENTS_CONTACT()==Messages::YES && $this->profileObj->getPARENTS_CONTACT()!=\"\")\n {\n\t\t\t$address=$this->profileObj->getPARENTS_CONTACT();\n\t\t\t\tif($this->profileObj->getPARENT_PINCODE())\n\t\t\t\t\t$address=$address.\"\\n Pincode:\".$this->profileObj->getPARENT_PINCODE();\n\t\t\t$this->setSHOW_PARENTS_ADDRESS(nl2br($address));\n\t\t}\n\t\t\t\n\t\t/*********Ends here******************/\n\t\t\n\t\t //Time to call details\n\t\t\tif($this->profileObj->getTIME_TO_CALL_START() && $this->profileObj->getTIME_TO_CALL_END())\n {\n\t\t\t\t\t$this->setTIME_TO_CALL_START($this->profileObj->getTIME_TO_CALL_START());\n\t\t\t\t\t$this->setTIME_TO_CALL_END($this->profileObj->getTIME_TO_CALL_END());\n }\n /*********Ends here******************/\n \n //Relation details \n \n if( $this->profileObj->getRELATION())\n\t\t\t$this->setRELATION_NAME($this->profileObj->getDecoratedRelation());\n\t\t\t\n\t\t/*********Ends here******************/\n\t\t\t\n\t\t//messenger details\t\n\t\t\n\t\tif($this->profileObj->getSHOWMESSENGER()==Messages::YES && $this->profileObj->getMESSENGER_CHANNEL() && $this->profileObj->getMESSENGER_ID())\n\t\t\t{\n $messenger=$this->profileObj->getMESSENGER_ID();\n if(!strstr($messenger,\"@\"))\n\t\t\t\t\t$messenger=$messenger.\"@\".FieldMap::getFieldLabel(\"messenger_channel\",$this->profileObj->getMESSENGER_CHANNEL());\n\t\t\t\t$this->setSHOW_MESSENGER($messenger);\n\t\t\t}\n\t\t\t\n\t\t/*********Ends here******************/\n\t\t\n\t\t/*********Alternative number********/\n\t\t$altMob = \"\";\n\t\t$altMobDetail = \"\";\n\t\t$jProfileContactObj= new ProfileContact();\n\t\t$altArr=$jProfileContactObj->getProfileContacts($this->profileObj->getPROFILEID()); \n\t\tif($altArr[\"ALT_MOB_STATUS\"]==Messages::YES || $altArr[\"SHOWALT_MOBILE\"] == \"C\")\n\t\t\t$this->setVERIFIED_ALT_MOB(Messages::YES);\n\t\telse\n\t\t\t$this->setVERIFIED_ALT_MOB(Messages::NO);\n\t\t\t\n\t\tif(($altArr[\"SHOWALT_MOBILE\"]==Messages::YES || !$altArr[\"SHOWALT_MOBILE\"] || ($altArr[\"SHOWALT_MOBILE\"]==\"C\" && ($this->contactHandlerObj->getContactType() == ContactHandler::ACCEPT ||($this->contactHandlerObj->getContactType() == ContactHandler::INITIATED && $this->contactHandlerObj->getContactInitiator() == ContactHandler::RECEIVER))))&& $altArr[\"ALT_MOBILE\"] && $ALT_NUM!=\"I\") \n\t\t{\n\t\t\t\tif($altArr[\"ALT_MOBILE_ISD\"])\n\t\t\t\t\t$altIsd = $altArr[\"ALT_MOBILE_ISD\"].\"-\";\n\t\t\t\telse\n\t\t\t\t\t$altIsd =$this->profileObj->getISD().\"-\";\n\t\t\t\t\t$altMob = $altIsd.$altArr[\"ALT_MOBILE\"];\n\t\t\t\tif($altArr[\"ALT_MOBILE_OWNER_NAME\"])\n\t\t\t\t{ \n\t\t\t\t\t$altMobDetail.=\" of \".$altArr[\"ALT_MOBILE_OWNER_NAME\"];\n\t\t\t\tif($altArr[\"ALT_MOBILE_NUMBER_OWNER\"])\n\t\t\t\t\t$altMobDetail.=\" (\".FieldMap::getFieldLabel(\"number_owner\",$altArr[\"ALT_MOBILE_NUMBER_OWNER\"]).\")\";\n\t\t\t\t}\n\t\t\t\tif($altArr[\"SHOW_ALT_MESSENGER\"]==Messages::YES && $altArr[\"ALT_MESSENGER_ID\"] && $altArr[\"ALT_MESSENGER_CHANNEL\"])\n\t\t\t\t{\n\t\t\t\t\t$altMessenger=$altArr[\"ALT_MESSENGER_ID\"];\n if(!strstr($altMessenger,\"@\"))\n\t\t\t\t\t$altMessenger=$altMessenger.\"@\".FieldMap::getFieldLabel(\"messenger_channel\",$altArr[\"ALT_MESSENGER_CHANNEL\"]);\n\t\t\t\t$this->setSHOW_MESSENGER2($altMessenger);\n\t\t\t\t}\n\t\t}\n\t\tif($altMob)\n\t\t{\n\t\t\t$this->setALT_MOBILE_LABEL($altMobDetail);\n\t\t\t$this->setALT_MOBILE($altMob);\n\t\t}\n // block for setting hidden contacts messages \n \n if(!($this->contactHandlerObj->getContactType() == ContactHandler::ACCEPT) && !($this->contactHandlerObj->getContactType() == ContactHandler::INITIATED && $this->contactHandlerObj->getContactInitiator() == ContactHandler::RECEIVER))\n $contactedFlag=0;\n else \n $contactedFlag=1;\n \n \n if($altArr['ALT_MOBILE'] && $altArr[\"ALT_MOB_STATUS\"]=='Y')\n {\n if($altArr[\"SHOWALT_MOBILE\"]==\"C\" && !$contactedFlag)\n $this->setAltMobileHiddenMessage(Messages::PHONE_VISIBLE_ON_ACCEPT);\n elseif($altArr[\"SHOWALT_MOBILE\"]=='N')\n $this->setAltMobileHiddenMessage(Messages::PHONE_HIDDEN);\n } \n\n if($this->profileObj->getPHONE_RES() && $this->profileObj->getLANDL_STATUS()=='Y' )\n {\n $showPhoneRes = $this->profileObj->getSHOWPHONE_RES();\n if($showPhoneRes==\"C\" && !$contactedFlag)\n $this->setLandlMobileHiddenMessage(Messages::PHONE_VISIBLE_ON_ACCEPT);\n elseif($showPhoneRes=='N')\n $this->setLandlMobileHiddenMessage(Messages::PHONE_HIDDEN);\n } \n\n if($this->profileObj->getPHONE_MOB() && $this->profileObj->getMOB_STATUS()=='Y' )\n {\n $showPhoneMob = $this->profileObj->getSHOWPHONE_MOB();\n if($showPhoneMob==\"C\" && !$contactedFlag)\n $this->setPrimaryMobileHiddenMessage(Messages::PHONE_VISIBLE_ON_ACCEPT);\n elseif($showPhoneMob=='N')\n $this->setPrimaryMobileHiddenMessage(Messages::PHONE_HIDDEN);\n } \n // block for setting hidden contacts messages ends here\n \n \n\t\tif($altArr[\"SHOWBLACKBERRY\"] == Messages::YES && $altArr[\"BLACKBERRY\"])\n\t\t{\n\t\t\t$this->setBlackberry($altArr[\"BLACKBERRY\"]);\n\t\t}\n\t\tif($altArr[\"SHOWLINKEDIN\"] == Messages::YES && $altArr[\"LINKEDIN_URL\"])\n\t\t{\n\t\t\t$this->setLinkedIn($altArr[\"LINKEDIN_URL\"]);\n\t\t}\n\t\tif($altArr[\"SHOWFACEBOOK\"] == Messages::YES && $altArr[\"FB_URL\"])\n\t\t{\n\t\t\t$this->setFacebook($altArr[\"FB_URL\"]);\n\t\t}\n\t\t\n\t\t\n\t\t/*********Ends here******************/\n\t\t\n\t\t\t//call directly from mobile\n\t\tif($this->fromMobile)\n\t\t{\n\t\t\t//Mobile/lanline number formatting to make it work for adding to phonebook\n\t\t\tif($this->getMOB_PHONE_NO())\n\t\t\t$this->setMOB_PHONE_NO(\"+\".str_replace(\"-\",\"\",$this->getMOB_PHONE_NO()));\n\t\t\t\n\t\t\tif($this->getRES_PHONE_NO())\n\t\t\t$this->setRES_PHONE_NO(\"+\".str_replace(\"-\",\"\",$this->getRES_PHONE_NO()));\n\t\t\tif(substr($this->getRES_PHONE_NO(),3,1) ==='0')\n\t\t\t\t$this->setRES_PHONE_NO(substr($this->getRES_PHONE_NO(),0,3).substr($this->getRES_PHONE_NO(),4));\n\t\t\t\n\t\t\tif($this->getALT_MOBILE())\n\t\t\t$this->setALT_MOBILE(\"+\".str_replace(\"-\",\"\",$this->getALT_MOBILE()));\n\t\t\tif(substr($this->getALT_MOBILE(),3,1) ==='0')\n\t\t\t\t$this->setALT_MOBILE(substr($this->getALT_MOBILE(),0,3).substr($this->getALT_MOBILE(),4));\t\t\n\t\t\t\t\n\t\t\t$this->setPROFILENAME($this->profileObj->getUSERNAME());\n\t\t\t\t\n\t\t}\n\t\t/************Ends here********/\n\t\t$this->setContactDetailArr( $this->displayContactDetailsArray());\n\t\t//print_r($this->displayContactDetailsArray());die;\n\t\t\n\n\t\t\n\t}", "public function setSyncContacts(?bool $value): void {\n $this->getBackingStore()->set('syncContacts', $value);\n }", "function setCfi_con($icfi_con = '')\n {\n $this->icfi_con = $icfi_con;\n }", "public function setContactAttribute($value) {\n $this->setDefaultContactAttribute($value);\n }", "function notifyUsersInCloudmunch($serverurl,$message,$contextarray,$domain){\r\n\t// global $curl_verbose;\r\n\t$curl_verbose = 0;\r\n\t//var_dump($serverArray);\r\n\t\r\n\t\r\n\t$dataarray=json_encode($contextarray);\r\n\t$dataarray=urlencode($dataarray);\r\n\t$message=urlencode($message);\r\n\t//cbdata.php?action=NOTIFY&to=*&message=whatever message&usercontext={�project�:project name,�job�:jobname,�context�:�servers�,�id�:server name�}\r\n\t//$data = \"data=\" . json_encode($serverArray);\r\n\t$usercontext = \"usercontext=\" . $dataarray;\r\n//\t$url = $serverurl . \"/cbdata.php?action=NOTIFY&to=*&message=\".$message.\"&usercontext=\".$dataarray.\"&domain=\" . $domain.\"&username=CI\";\r\n\t$url = $serverurl . \"/cbdata.php?action=NOTIFY&to=*&message=\".$message.\"&domain=\" . $domain.\"&username=CI\";\r\n\t//$url=urlencode($url);\r\n\t//echo \"\\nurl is:\" . $url.PHP_EOL;\r\n\r\n\t$options = array (\r\n\t\tCURLOPT_HEADER => 0,\r\n\t\tCURLOPT_HTTPHEADER => array (\r\n\t\t\t'Content-Type: application/x-www-form-urlencoded'\r\n\t\t),\r\n\t\tCURLOPT_URL => $url,\r\n\t\tCURLOPT_FOLLOWLOCATION => true,\r\n\t\tCURLOPT_FRESH_CONNECT => 1,\r\n\t\tCURLOPT_RETURNTRANSFER => 1,\r\n\t\tCURLOPT_FORBID_REUSE => 1,\r\n\t\tCURLOPT_TIMEOUT => 20,\r\n\t\tCURLOPT_FAILONERROR => 1,\r\n\t\t\tCURLOPT_POSTFIELDS => $usercontext,\r\n\t\tCURLOPT_POST => 1,\r\n\t\tCURLOPT_VERBOSE => $curl_verbose,\r\n\t\tCURLOPT_SSL_VERIFYPEER => false,\r\n\t\tCURLOPT_SSL_VERIFYHOST => false\r\n\t);\r\n\r\n\t$post = curl_init();\r\n\tcurl_setopt_array($post, $options);\r\n\t$result = curl_exec($post);\r\n\t$response_code = curl_getinfo($post, CURLINFO_HTTP_CODE);\r\n\tif($result === FALSE) {\r\n\t\ttrigger_error ( \"Error in notifying to cloudmunch\", E_USER_ERROR );\r\n\t}else{\r\n\t\t//$this->logHelper->log(INFO,\"result:\" . $result);\r\n\t\t//$this->logHelper->log(INFO, \"Notification send\");\r\n\t\t//echo \"\\nresult:\" . $result.PHP_EOL;\r\n\t}\r\n}", "function activeClinicSubscriber()\n\t\t{\n\t\t\t\n\t\t\t/*\n\t\t\t\tUse to activate the subscriber\n\t\t\t\n\t\t\t*/\n\t\t\t\n\t\t\t$userInfo = $this->userInfo();\n\t\t\tif (!$userInfo)\n\t\t\t{\n\t\t\t\theader(\"location:index.php\");\n\t\t\t}\n\t\t\telse \n\t\t\t{\t\n\t\t\t\t$user_id = (int) $this->value('id');\n\t\t\t\t$clinic_id = (int) $this->value('clinic_id');\t\t\t\t\n\t\t\t\t//extra precaution check if user has access \t\t\t\n\t\t\t\t\n\t\t\t\t$userType = ($userInfo['usertype_id'] == 4) ? \"SysAdmin\" : \"\";\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (\"SysAdmin\" == $userType) \n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// only sys admin has access to delete \t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$queryUpdate = \"UPDATE user SET status = 1 WHERE user_id = \". $user_id;\n\t\t\t\t\t\n\t\t\t\t\t$this->execute_query($queryUpdate);\t\n\t\t\t\t\theader(\"location:index.php?action=viewClinicDetails&clinic_id=$clinic_id\");\n\t\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tunset($_GET['id']);\t\n\t\t\t\t\theader(\"location:index.php\");\n\t\t\t\t}\t\n\t\t\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t}" ]
[ "0.5290291", "0.42656586", "0.4145039", "0.41243356", "0.41118267", "0.41017807", "0.4059529", "0.4059529", "0.40338057", "0.3990668", "0.3972016", "0.39687115", "0.39095438", "0.38995305", "0.38895023", "0.38731125", "0.38572827", "0.38328004", "0.379346", "0.3769214", "0.37654752", "0.37509564", "0.37445697", "0.3701646", "0.36896765", "0.36866528", "0.3684073", "0.36832878", "0.3668177", "0.36681455" ]
0.73558867
0
Sets the consentProvidedForMinor property value. Sets whether consent has been obtained for minors. Allowed values: null, Granted, Denied and NotRequired. Refer to the legal age group property definitions for further information. Supports $filter (eq, ne, not, and in).
public function setConsentProvidedForMinor(?string $value): void { $this->getBackingStore()->set('consentProvidedForMinor', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConsentProvidedForMinor(): ?string {\n $val = $this->getBackingStore()->get('consentProvidedForMinor');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'consentProvidedForMinor'\");\n }", "public function setShouldCaptureMinorVersion($val)\n {\n $this->_propDict[\"shouldCaptureMinorVersion\"] = boolval($val);\n return $this;\n }", "public function getShouldCaptureMinorVersion()\n {\n if (array_key_exists(\"shouldCaptureMinorVersion\", $this->_propDict)) {\n return $this->_propDict[\"shouldCaptureMinorVersion\"];\n } else {\n return null;\n }\n }", "public function setMinor($value)\n {\n return $this->set(self::MINOR, $value);\n }", "public function setQualifications($value)\n {\n $this->qualifications = $value;\n }", "function setAgeCutoffMonth($ageCutoffMonth)\n {\n $this->__ageCutoffMonth = $ageCutoffMonth ;\n }", "public function setProvided($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->provided = $arr;\n\n return $this;\n }", "protected function setProvidedValue($providedValue)\n {\n $this->providedValue = (is_string($providedValue) ? $providedValue : json_encode($providedValue));\n }", "public function setEducationRequirements($value)\n {\n $this->educationRequirements = $value;\n }", "public function setEndorsementPremium($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->endorsement_premium !== $v) {\n\t\t\t$this->endorsement_premium = $v;\n\t\t\t$this->modifiedColumns[] = SubmissionHistoryPeer::ENDORSEMENT_PREMIUM;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setNewEndorsementPremium($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->new_endorsement_premium !== $v) {\n\t\t\t$this->new_endorsement_premium = $v;\n\t\t\t$this->modifiedColumns[] = SubmissionHistoryPeer::NEW_ENDORSEMENT_PREMIUM;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setWdacSupplementalPolicies(?array $value): void {\n $this->getBackingStore()->set('wdacSupplementalPolicies', $value);\n }", "public function setAppConsentRequestsForApproval(?array $value): void {\n $this->getBackingStore()->set('appConsentRequestsForApproval', $value);\n }", "public function setExperienceRequirements($value)\n {\n $this->experienceRequirements = $value;\n }", "public function setAgreementAcceptances(?array $value): void {\n $this->getBackingStore()->set('agreementAcceptances', $value);\n }", "public function setCompleteness($completeness) {\n $this->completeness = $completeness;\n }", "public function majorFilter($majors)\n {\n if(!empty($majors)){\n return $this->joinWith('majors')\n ->andWhere(['in', 'major.major_id', $majors]);\n }else return $this;\n }", "function SetPenalty($penalty) {\n\t\tif (mysql_query('UPDATE kags SET penalty=' . ((int) $penalty) . ' WHERE id=' . $this->id, $this->db)) {\n\t\t\t$this->UpdateCache();\n\t\t\t$this->UpdatePoints(4);\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public function setMarried($married = 0)\n\t{\n\t $this->married = $married;\n\t}", "public function setDisableBuyerRequirements($disableBuyerRequirements)\n {\n $this->disableBuyerRequirements = $disableBuyerRequirements;\n return $this;\n }", "public function update_qualification()\n {\n global $DB;\n\t\t$dataobj = new stdClass();\n\t\t$dataobj->id = $this->id;\n\t\t$dataobj->name = $this->name;\n $dataobj->additionalname = $this->additionalName;\n\t\t$dataobj->code = $this->code;\n $dataobj->noyears = $this->noYears;\n\t\t$dataobj->credits = 0;\n\t\t$DB->update_record(\"block_bcgt_qualification\", $dataobj);\n logAction(LOG_MODULE_GRADETRACKER, LOG_ELEMENT_GRADETRACKER_QUALIFICATION, LOG_VALUE_GRADETRACKER_UPDATED_QUAL, null, $this->id, null, null, null);\n \n\t\t//lets updae the unit information\n// $this->get_unit_details(true);\n// $this->update_units();\n// if($useFAs = get_config('bcgt', 'usefa') && \n// !$manageCentrally = get_config('bcgt', 'alevelManageFACentrally'))\n// {\n// $this->get_assessment_details(true);\n// $this->update_assessments();\n// }\n $qualWeighting = new QualWeighting();\n $familyWeighted = $qualWeighting->is_family_using_weigtings(str_replace(' ','',AlevelQualification::NAME)); \n $useWeightings = get_config('bcgt', 'allowalpsweighting');\n if($useWeightings && $familyWeighted)\n {\n $this->get_weighting_details(true);\n $this->update_weightings();\n }\n \n }", "public function setCompanyRestriction($companyId, $excl) {\n if (is_null($companyId)) {\n return null;\n }\n\n if (Yourdelivery_Model_DbTable_Restaurant_Company::findByAssoc($this->getId(), $companyId)) {\n return null;\n }\n\n return Yourdelivery_Model_DbTable_Restaurant_Company::add($this->getId(), $excl, $companyId);\n }", "public function respondRequest($request_id, $approver_response, $approver_level, $remarks='')\n {\n //Update rfc_line table to reflect the user's specific response\n DB::table('rfc_line')->where(['rfc_code' => $request_id, 'rfcline_level' => $approver_level])->update(['rfcline_stat' => $approver_response, 'rfcline_remarks' => $remarks]);\n \n //Initialization of needed variables in order to update rfc table\n $max_level = DB::table('rfc_line')->where(['rfc_code' => $request_id])->max('rfcline_level');\n\n if($approver_response == 'Signed' && $max_level == $approver_level)\n {\n $this->where([ 'rfc_code' => $request_id] )\n ->update([ 'rfc_stat' => 'Approved',\n 'rfc_aprvdate' => date('Y-m-d h:i:s')]);\n }\n else if($approver_response != 'Signed')\n {\n $this->where(['rfc_code' => $request_id])->update(['rfc_stat' => $approver_response]); \n }\n }", "public function setExtendedProducerResponsibility(\\Nogrod\\eBaySDK\\MerchantData\\ExtendedProducerResponsibilityType $extendedProducerResponsibility)\n {\n $this->extendedProducerResponsibility = $extendedProducerResponsibility;\n return $this;\n }", "public function setApplyBuyerProtection(\\Nogrod\\eBaySDK\\MerchantData\\BuyerProtectionDetailsType $applyBuyerProtection)\n {\n $this->applyBuyerProtection = $applyBuyerProtection;\n return $this;\n }", "public function setMStZoneGMForbidenToRoleRequest(PbZoneGMForbidenToRoleRequest $value)\n {\n return $this->set(self::M_STZONE_GMFORBIDENTOROLE_REQUEST, $value);\n }", "public function testSetCodeResponsable() {\n\n $obj = new Intervenants();\n\n $obj->setCodeResponsable(\"codeResponsable\");\n $this->assertEquals(\"codeResponsable\", $obj->getCodeResponsable());\n }", "public function setLegalAgeGroupClassification(?string $value): void {\n $this->getBackingStore()->set('legalAgeGroupClassification', $value);\n }", "function woorcp_set_level_group_seats_allowed( $level_id, $seats_allowed ) {\n\n\tglobal $rcp_levels_db;\n\n\t$woorcp_default_member_number = get_option(\"woorcp_default_member_number\", 9);\n\n\t$rcp_levels_db->update_meta( $level_id, 'group_seats_allowed', absint( $woorcp_default_member_number ) );\n}", "function setAgeCutoffDay($ageCutoffDay)\n {\n $this->__ageCutoffDay = $ageCutoffDay ;\n }" ]
[ "0.49042004", "0.4870889", "0.46406025", "0.44936702", "0.44560006", "0.4400837", "0.43976387", "0.43722618", "0.42418015", "0.41579005", "0.4110512", "0.40984732", "0.40860367", "0.40310532", "0.40014738", "0.39986858", "0.3949216", "0.39467585", "0.3905439", "0.3904853", "0.39032668", "0.38782528", "0.38772207", "0.38530317", "0.3839001", "0.38349545", "0.38267717", "0.3817226", "0.3813272", "0.38063556" ]
0.69774777
0
Sets the contactFolders property value. The user's contacts folders. Readonly. Nullable.
public function setContactFolders(?array $value): void { $this->getBackingStore()->set('contactFolders', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContactFolders(): ?array {\n $val = $this->getBackingStore()->get('contactFolders');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ContactFolder::class);\n /** @var array<ContactFolder>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'contactFolders'\");\n }", "public function setMailFolders(?array $value): void {\n $this->getBackingStore()->set('mailFolders', $value);\n }", "public function setFoldersFirst($value)\n {\n $this->foldersFirst = (bool) $value;\n }", "public function setContacts(?array $value): void {\n $this->getBackingStore()->set('contacts', $value);\n }", "public function setContacts($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->contacts = $arr;\n\n return $this;\n }", "public function setFolder($sFolder) {\n $this->sFolder = strtolower($sFolder);\n return $this;\n }", "public function checkIfFoldersPathSet()\n {\n $folder = (is_string($this->params['folder']))\n ? $this->params['folder']\n : $this->params['folder']->path;\n\n if ($folder == '/' || !$folder) {\n $this->errors[] = 'Folders Path was not set.';\n }\n\n $this->folders_path = $folder;\n }", "public function setSyncContacts(?bool $value): void {\n $this->getBackingStore()->set('syncContacts', $value);\n }", "public function setContacts(?Model\\Contact $contacts): self\n {\n $this->contacts = $contacts;\n\n return $this;\n }", "public function setFolderObject($value)\n {\n return $this->set('FolderObject', $value);\n }", "public function setContactAttribute($value) {\n $this->setDefaultContactAttribute($value);\n }", "public function setContacts(array $contacts)\n {\n $this->vkarg_contacts = $contacts;\n\n return $this;\n }", "public function getMailFolders(): ?array {\n $val = $this->getBackingStore()->get('mailFolders');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, MailFolder::class);\n /** @var array<MailFolder>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mailFolders'\");\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function setFolderID($value)\n {\n return $this->set('FolderID', $value);\n }", "public function folders()\n {\n return $this->belongsToMany('App\\Models\\Folder', 'user_folder');\n }", "function set_default_mailboxes($arr)\n {\n if (is_array($arr)) {\n $this->default_folders = $arr;\n\n // add inbox if not included\n if (!in_array('INBOX', $this->default_folders))\n array_unshift($this->default_folders, 'INBOX');\n }\n }", "public function setIsFolder($isFolder): void\n {\n $this->attributes['isFolder'] = VT::toBool($isFolder);\n }", "public function set_folder($value)\n {\n $this->folder = $value;\n return $this;\n }", "public function setCanShareFolder($value)\n {\n $this->setProperty(\"CanShareFolder\", $value, true);\n }", "function contributionpageoptions_civicrm_alterEntitySettingsFolders(&$folders) {\n static $configured = FALSE;\n if ($configured) return;\n $configured = TRUE;\n\n $extRoot = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;\n $extDir = $extRoot . 'settings';\n if(!in_array($extDir, $folders)){\n $folders[] = $extDir;\n }\n}", "function setFeedFolder($accountId, $feedFolderValues){\n // Set Operand\n $operand = array();\n foreach($feedFolderValues as $feedFolderValue){\n\n $operand = array(\n array(\n 'accountId' => $accountId,\n 'feedFolderId' => $feedFolderValue->feedFolder->feedFolderId,\n 'feedAttribute' => array(\n // Set AdCustomizerInteger\n array(\n 'feedAttributeName' => 'SampleInteger2_' . SoapUtils::getCurrentTimestamp(),\n 'placeholderField' => 'AD_CUSTOMIZER_INTEGER'\n ),\n // Set AdCustomizerPrice\n array(\n 'feedAttributeName' => 'SamplePrice2_' . SoapUtils::getCurrentTimestamp(),\n 'placeholderField' => 'AD_CUSTOMIZER_PRICE'\n ),\n // Set AdCustomizerDate\n array(\n 'feedAttributeName' => 'SampleDate2_' . SoapUtils::getCurrentTimestamp(),\n 'placeholderField' => 'AD_CUSTOMIZER_DATE'\n ),\n // Set AdCustomizerString\n array(\n 'feedAttributeName' => 'SampleString2_' . SoapUtils::getCurrentTimestamp(),\n 'placeholderField' => 'AD_CUSTOMIZER_STRING'\n )\n ),\n 'placeholderType' => 'AD_CUSTOMIZER'\n )\n );\n }\n\n // Set Request\n $feedFolderRequest = array(\n 'operations' => array(\n 'operator' => 'SET',\n 'accountId' => $accountId,\n 'operand' => $operand\n )\n );\n\n // Call API\n $feedFolderService = SoapUtils::getService('FeedFolderService');\n $feedFolderResponse = $feedFolderService->invoke('mutate', $feedFolderRequest);\n\n // Response\n if(isset($feedFolderResponse->rval->values)){\n if(is_array($feedFolderResponse->rval->values)){\n $feedFolderReturnValues = $feedFolderResponse->rval->values;\n }else{\n $feedFolderReturnValues = array(\n $feedFolderResponse->rval->values\n );\n }\n }else{\n throw new Exception(\"No response of set FeedFolderService.\");\n }\n\n // Error\n foreach($feedFolderReturnValues as $feedFolderReturnValue){\n if(!isset($feedFolderReturnValue->feedFolder)){\n throw new Exception(\"Fail to set FeedFolderService.\");\n }\n }\n\n return $feedFolderReturnValues;\n }" ]
[ "0.58634245", "0.57221764", "0.50672674", "0.50145686", "0.49005654", "0.48024312", "0.4778887", "0.47690135", "0.47295874", "0.46788642", "0.46410653", "0.462339", "0.45187858", "0.440385", "0.440385", "0.440385", "0.440385", "0.440385", "0.440385", "0.440385", "0.440385", "0.440385", "0.440385", "0.43912297", "0.43717062", "0.4322951", "0.42910057", "0.4267999", "0.4169201", "0.41610417" ]
0.6987197
0
Sets the contacts property value. The user's contacts. Readonly. Nullable.
public function setContacts(?array $value): void { $this->getBackingStore()->set('contacts', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setContactAttribute($value) {\n $this->setDefaultContactAttribute($value);\n }", "public function setContacts($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->contacts = $arr;\n\n return $this;\n }", "public function setContacts(?Model\\Contact $contacts): self\n {\n $this->contacts = $contacts;\n\n return $this;\n }", "public function setContact($value){\n return $this->setParameter('contact', $value);\n }", "public function setContact($value){\n return $this->setParameter('contact', $value);\n }", "public function setContacts(array $contacts)\n {\n $this->vkarg_contacts = $contacts;\n\n return $this;\n }", "public function getContacts(): ?Model\\Contact\n {\n return $this->contacts;\n }", "public function setSyncContacts(?bool $value): void {\n $this->getBackingStore()->set('syncContacts', $value);\n }", "public function getUserContacts();", "public function getContacts() {\n return $this->contacts;\n }", "public function getContacts() \n {\n return $this->contacts;\n }", "public function setContact($contact) {\n foreach (array('idcontact', 'phone', 'peer', 'name', 'uid') as $field) {\n if (isset($contact->$field)) {\n $this->$field = $contact->$field;\n }\n }\n return $this;\n }", "public function getContacts()\n {\n return $this->contacts;\n }", "public function setContact(Contact $contact) {\n $this->contact = $contact;\n }", "public function contacts() {\n\t\t$this->out(__('Getting contacts'), 1, Shell::VERBOSE);\n\n\t\ttry {\n\t\t\t$conditions = $this->_conditions(array(\n\t\t\t\t'id' => $this->params['contact'],\n\t\t\t\t'modified_after' => $this->params['since'],\n\t\t\t\t'includeArchived' => $this->params['include_archived']\n\t\t\t));\n\t\t\t$this->out(__('Contacts conditions: %s', json_encode($conditions)), 1, Shell::VERBOSE);\n\n\t\t\t$contacts = $this->XeroContact->update($this->_getOrganisation(), $conditions);\n\n\t\t\t$this->out(__('%s contacts updated', count($contacts)), 1, Shell::VERBOSE);\n\n\t\t\tif ($this->params['fetch_invoices']) {\n\t\t\t\t$this->out(__('Updating contact\\'s invoices'), 1, Shell::VERBOSE);\n\n\t\t\t\t$this->invoices();\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t$this->_updateError($e->getMessage(), $e->getTraceAsString());\n\t\t}\n\t}", "public function getContacts() {\n\t\treturn $this->contacts;\n\t}", "private function UpdateContacts() {\r\n $ABApplicationHeaderArray = array(\r\n 'ABApplicationHeader' => array(\r\n ':' => array('xmlns' => 'http://www.msn.com/webservices/AddressBook'),\r\n 'ApplicationId' => 'CFE80F9D-180F-4399-82AB-413F33A1FA11',\r\n 'IsMigration' => false,\r\n 'PartnerScenario' => 'ContactSave'\r\n )\r\n );\r\n\r\n $ABApplicationHeader = new SoapHeader('http://www.msn.com/webservices/AddressBook', 'ABApplicationHeader', $this->Array2SoapVar($ABApplicationHeaderArray));\r\n $ABFindAllArray = array(\r\n 'ABFindAll' => array(\r\n ':' => array('xmlns'=>'http://www.msn.com/webservices/AddressBook'),\r\n 'abId' => '00000000-0000-0000-0000-000000000000',\r\n 'abView' => 'Full',\r\n 'lastChange' => '0001-01-01T00:00:00.0000000-08:00',\r\n )\r\n );\r\n $ABFindAll = new SoapParam($this->Array2SoapVar($ABFindAllArray), 'ABFindAll');\r\n $this->ABService->__setSoapHeaders(array($ABApplicationHeader, $this->ABAuthHeader));\r\n $this->Contacts = array();\r\n try {\r\n $this->debug_message('*** Updating Contacts...');\r\n $Result = $this->ABService->ABFindAll($ABFindAll);\r\n $this->debug_message(\"*** Result:\\n\".print_r($Result, true).\"\\n\".$this->ABService->__getLastResponse());\r\n foreach($Result->ABFindAllResult->contacts->Contact as $Contact)\r\n $this->Contacts[$Contact->contactInfo->passportName] = $Contact;\r\n } catch(Exception $e) {\r\n $this->debug_message(\"*** Update Contacts Error \\nRequest:\".$this->ABService->__getLastRequest().\"\\nError:\".$e->getMessage());\r\n return false;\r\n }\r\n return true;\r\n }", "function getUserContacts()\n\t{ \n\t\t// refresh tokens if needed \n\t\t$this->refreshToken(); \n\n\t\tif( ! isset( $this->config['contacts_param'] ) ){\n\t\t\t$this->config['contacts_param'] = array( \"max-results\" => 500 );\n\t\t}\n\n\t\t$response = $this->api->api( \"https://www.google.com/m8/feeds/contacts/default/full?\" \n\t\t\t\t\t\t\t. http_build_query( array_merge( array('alt' => 'json'), $this->config['contacts_param'] ) ) ); \n\n\t\tif( ! $response ){\n\t\t\treturn ARRAY();\n\t\t}\n \n\t\t$contacts = ARRAY(); \n\n\t\tforeach( $response->feed->entry as $idx => $entry ){\n\t\t\t$uc = new Hybrid_User_Contact();\n\n\t\t\t$uc->email = isset($entry->{'gd$email'}[0]->address) ? (string) $entry->{'gd$email'}[0]->address : ''; \n\t\t\t$uc->displayName = isset($entry->title->{'$t'}) ? (string) $entry->title->{'$t'} : ''; \n\t\t\t$uc->identifier = $uc->email;\n\n\t\t\t$contacts[] = $uc;\n\t\t} \n\n\t\treturn $contacts;\n \t}", "public function setPhone(?string $value) : Contact\n {\n\n if ($this->data['phone'] !== $value) {\n $this->data['phone'] = $value;\n $this->setModified('phone');\n }\n\n return $this;\n }", "public static function contacts( $user )\n\t{\n\t}", "public function getUserContacts()\n {\n return [];\n }", "public function clearContacts()\n {\n return $this->clearCollection($this->contacts);\n }", "private function mapCustomerContactsInput()\n {\n foreach ($this->input['customer_contacts'] as $key => $contact) {\n $this->customerContacts[$key] = $this->mapInputs($this->customerContactFields, $contact);\n }\n }", "public function setAddress($value) : Contact\n {\n $this->validateJson($value);\n\n if ($this->data['address'] !== $value) {\n $this->data['address'] = $value;\n $this->setModified('address');\n }\n\n return $this;\n }", "function getUserContacts()\n\t{\n\t\t$response = $this->api->get('statuses/friends.json');\n\t\t\n\t\tif ( $this->api->http_code != 200 )\n\t\t{\n\t\t\tthrow new Exception( 'User contacts request failed! ' . $this->providerId . ' returned an error: ' . $this->errorMessageByStatus( $this->api->http_code ) );\n\t\t}\n\n\t\tif ( !$response ) {\n\t\t\treturn array();\n\t\t}\n\t\t\n\t\t$contacts = array();\n\t\t\n\t\tforeach( $response as $item ) {\n\t\t\t$uc = new Hybrid_User_Contact();\n\n\t\t\t$uc->identifier = @ $item->id;\n\t\t\t$uc->displayName = @ $item->name;\n\t\t\t$uc->profileURL = 'http://murmur.tw/' . $response->screen_name;\n\t\t\t$uc->photoURL = @ $item->profile_image_url;\n\n\t\t\t$contacts[] = $uc;\n\t\t}\n\t\t\n\t\treturn $contacts;\n\t}", "public function getContacts(): ?array {\n $val = $this->getBackingStore()->get('contacts');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Contact::class);\n /** @var array<Contact>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'contacts'\");\n }", "public function setContactCount($value)\n {\n return $this->set(self::CONTACTCOUNT, $value);\n }", "public function setContactFolders(?array $value): void {\n $this->getBackingStore()->set('contactFolders', $value);\n }", "public function setCompany(?string $value) : Contact\n {\n\n if ($this->data['company'] !== $value) {\n $this->data['company'] = $value;\n $this->setModified('company');\n }\n\n return $this;\n }", "public function contacts()\n {\n return $this->hasMany(Contact::class);\n }" ]
[ "0.67779565", "0.6711073", "0.6647638", "0.6574256", "0.6574256", "0.65610576", "0.60943705", "0.5953264", "0.59425944", "0.5819747", "0.5752923", "0.56738436", "0.5668066", "0.55537224", "0.5550811", "0.554882", "0.54668176", "0.5398688", "0.53792715", "0.53203356", "0.53190976", "0.531879", "0.5305279", "0.5288859", "0.5288364", "0.5264794", "0.5263293", "0.5218572", "0.5154707", "0.5153475" ]
0.7019773
0
Sets the createdObjects property value. Directory objects that were created by the user. Readonly. Nullable.
public function setCreatedObjects(?array $value): void { $this->getBackingStore()->set('createdObjects', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setObjects(?array $objects): void\n {\n $this->objects = $objects;\n }", "public function getCreatedObjects(): ?array {\n $val = $this->getBackingStore()->get('createdObjects');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'createdObjects'\");\n }", "public function setRelatedObjects(?array $relatedObjects): void\n {\n $this->relatedObjects = $relatedObjects;\n }", "public function setOwnedObjects(?array $value): void {\n $this->getBackingStore()->set('ownedObjects', $value);\n }", "function setUserCreated($created)\r\n\t{\r\n\t\t$this->created = $created;\r\n\t}", "public function setObjects(Collection $objects)\n {\n $this->objects = $objects;\n }", "public function setCreated($created) {\n $this->created = $created;\n }", "public function setCreated($created)\n {\n $this->created = $created;\n }", "public function set_created($created) {\n $this->created = $created;\n }", "public function setCreated($Created)\n {\n $this->__set(\"created\", $Created);\n }", "public function setCreated($Created)\n {\n $this->__set(\"created\", $Created);\n }", "public function getOwnedObjects(): ?array {\n $val = $this->getBackingStore()->get('ownedObjects');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'ownedObjects'\");\n }", "function setAttachUsers ($value) {\n\t\t$this->attach_users = $value ? true : false;\n\t}", "public function setCreatedUserId($createdUserId)\n {\n $this->createdUserId = $createdUserId;\n }", "public function setOwnedDevices(?array $value): void {\n $this->getBackingStore()->set('ownedDevices', $value);\n }", "public function setTimestampedObjects($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\VideoIntelligence\\V1\\TimestampedObject::class);\n $this->timestamped_objects = $arr;\n\n return $this;\n }", "public function setUpdateManagedObjects(MArray $updateManagedObjects = null) {\n\t\t\t$this->updateManagedObjects = $updateManagedObjects;\n\t\t}", "public function setCreated($created);", "public function getRelatedObjectsToPersist(&$objects = []) \n {\n return [];\n }", "public function getRelatedObjectsToPersist(&$objects = []) \n {\n return [];\n }", "public function setLdapObjects(LdapRecordCollection $objects): static\n {\n $this->objects = $objects;\n\n return $this;\n }", "public function setCreated($created)\n {\n \t$this->created - $created;\n \treturn $created;\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setOwners(?array $value): void {\n $this->getBackingStore()->set('owners', $value);\n }", "function setDirectories($directories){\n $this->directories = $directories;\n }", "protected function getFileObjects() {\n\t\t$fileResource = GeneralUtility::makeInstance(\n\t\t\t'TYPO3\\CMS\\Frontend\\ContentObject\\Utility\\FileResource',\n\t\t\t$this->contentObject,\n\t\t\t$this->typoScriptConfiguration\n\t\t);\n\t\t$this->fileObjects = $fileResource->getFileObjects();\n\t\t$this->fileCount = count($this->fileObjects);\n\t}", "public function setDateCreated($date_created)\n {\n $this->date_created = $date_created;\n }", "function setObjects(array $inArray = array()) {\n\t\treturn $this->_setItem($inArray);\n\t}", "public function setCreated(\\DateTime $created) {\n\n $this->created = $created->format('Y-m-d H:i:s');\n\n }" ]
[ "0.5873037", "0.5871626", "0.5259377", "0.5205702", "0.4930405", "0.49097747", "0.48754808", "0.48539555", "0.48011905", "0.46856445", "0.46856445", "0.4674976", "0.4637379", "0.4632831", "0.46233857", "0.45804456", "0.45572644", "0.45359936", "0.45255408", "0.45255408", "0.45042878", "0.44615078", "0.44226173", "0.44226173", "0.4412369", "0.44110942", "0.43990728", "0.43787423", "0.436456", "0.43559337" ]
0.6325841
0
Sets the customSecurityAttributes property value. An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). Filter value is case sensitive.
public function setCustomSecurityAttributes(?CustomSecurityAttributeValue $value): void { $this->getBackingStore()->set('customSecurityAttributes', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomSecurityAttributes(): ?CustomSecurityAttributeValue {\n $val = $this->getBackingStore()->get('customSecurityAttributes');\n if (is_null($val) || $val instanceof CustomSecurityAttributeValue) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'customSecurityAttributes'\");\n }", "public function setCustomAttributes($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Sugarcrm\\Apis\\Iam\\User\\V1alpha\\CustomAttribute::class);\n $this->custom_attributes = $arr;\n\n return $this;\n }", "function getSecurityAttributes() {\n\t\treturn $this->_attributes;\n\t}", "public function setCustomSecurityAttributeDefinitions(?array $value): void {\n $this->getBackingStore()->set('customSecurityAttributeDefinitions', $value);\n }", "public function getCustomAttributes()\n {\n return $this->custom_attributes;\n }", "public function customAttribute(?CustomAttribute $value): self\n {\n $this->instance->setCustomAttribute($value);\n return $this;\n }", "public function setCustomData($value)\n {\n return $this->setParameter('customData', $value);\n }", "public function setCustom($custom = '') {\n $this->_custom = $custom;\n }", "public function getCustomCustomerAttributes()\n {\n $attributes['prefered_language'] = array(\n 'label' => 'Prefered Language',\n 'type' => 'varchar',\n 'input' => 'select',\n 'source' => 'clever_language/customer_attribute_source_stores',\n 'required' => 0,\n 'used_in_forms' => array(\n 'customer_account_edit',\n 'adminhtml_customer'\n ),\n );\n\n return $attributes;\n }", "public function setCustom($custom)\n {\n $this->custom = $custom;\n return $this;\n }", "public function setCustom($custom)\n {\n $this->custom = $custom;\n return $this;\n }", "public function setCustom($custom)\n {\n $this->custom = $custom;\n return $this;\n }", "public function setCustom($custom)\n {\n $this->custom = $custom;\n return $this;\n }", "public function setCustom($custom)\n {\n $this->custom = $custom;\n return $this;\n }", "public static function allowedAttributes()\r\n\t{\r\n\t\tif (!is_array(self::$attributes))\r\n\t\t{\r\n\t\t\t$attributes = array_merge(Config::get('attributes.event.standard', []), Config::get('attributes.standard', []));\r\n\r\n\t\t\tif (isset(self::$localAttributes))\r\n\t\t\t{\r\n\t\t\t\tforeach (self::$localAttributes as $attr)\r\n\t\t\t\t{\r\n\t\t\t\t\t$attributes = array_merge($attributes, Config::get(\"attributes.$attr\", []));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tself::$attributes = $attributes;\r\n\t\t}\r\n\r\n\t\treturn self::$attributes;\t\t\r\n\t}", "public function getAllCustomAttributes()\n {\n return $this->customAttributes;\n }", "public function setSecurityCode($securityCode)\n {\n $this->_securityCode = $securityCode;\n return $this;\n }", "public function getJWTCustomClaims()\n {\n $this->claims['series'] = $this->series;\n return $this->claims;\n }", "public function setIsCustom($isCustom)\n {\n $this->isCustom = $isCustom;\n return $this;\n }", "public function getCustomSecurityAttributeDefinitions(): ?array {\n $val = $this->getBackingStore()->get('customSecurityAttributeDefinitions');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, CustomSecurityAttributeDefinition::class);\n /** @var array<CustomSecurityAttributeDefinition>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'customSecurityAttributeDefinitions'\");\n }", "public function setCustomResource(array $customResource = array())\n {\n foreach ($customResource as $arrayOfCustomResourceCustomResourceItem) {\n // validation for constraint: itemType\n if (!$arrayOfCustomResourceCustomResourceItem instanceof \\Confirmit\\Authoring\\StructType\\CustomResource) {\n throw new \\InvalidArgumentException(sprintf('The CustomResource property can only contain items of \\Confirmit\\Authoring\\StructType\\CustomResource, \"%s\" given', is_object($arrayOfCustomResourceCustomResourceItem) ? get_class($arrayOfCustomResourceCustomResourceItem) : gettype($arrayOfCustomResourceCustomResourceItem)), __LINE__);\n }\n }\n if (is_null($customResource) || (is_array($customResource) && empty($customResource))) {\n unset($this->CustomResource);\n } else {\n $this->CustomResource = $customResource;\n }\n return $this;\n }", "public function setCustom($value = true)\n {\n $this->custom = (bool) $value;\n }", "static public function setIgnoredCustomAttributes(array $attributes)\n {\n self::$ignored_custom_attributes = $attributes;\n }", "public function customData(array $customData)\n {\n $this->customData = $customData;\n\n return $this;\n }", "public function setExtraAttribute($value){\n $this->attributes['extra'] = @serialize($value);\n }", "public function getCustomAttributesValueAttribute()\n {\n $typeValue = ucfirst($this->type_value);\n $methodAttribute = \"productValue{$typeValue}Attribute\";\n switch ($this->type_value) {\n case CustomAttributeConfig::REFERENCE_CUSTOM_ATTRIBUTE_TYPE_VALUE_STRING:\n return (!empty($this->$methodAttribute()) ? $this->$methodAttribute() : null);\n break;\n case CustomAttributeConfig::REFERENCE_CUSTOM_ATTRIBUTE_TYPE_VALUE_NUMBER:\n return null;\n break;\n case CustomAttributeConfig::REFERENCE_CUSTOM_ATTRIBUTE_TYPE_VALUE_DATE:\n return null;\n break;\n case CustomAttributeConfig::REFERENCE_CUSTOM_ATTRIBUTE_TYPE_VALUE_OPTION:\n return null;\n break;\n }\n }", "public function unserialiseCustom()\n {\n if ($this->getCustomValues()) {\n $customValues = $this->serializer->unserialize($this->getCustomValues());\n $this->setCustom($customValues);\n }\n return $this;\n }", "public function addCustomProductAttrs($attrs)\n {\n self::$_customProductAttrs = $attrs;\n }", "public function filterByCustomFieldSec($customFieldSec = null, $comparison = null)\n {\n if (is_array($customFieldSec)) {\n $useMinMax = false;\n if (isset($customFieldSec['min'])) {\n $this->addUsingAlias(PersonCustomMasterTableMap::COL_CUSTOM_FIELDSEC, $customFieldSec['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($customFieldSec['max'])) {\n $this->addUsingAlias(PersonCustomMasterTableMap::COL_CUSTOM_FIELDSEC, $customFieldSec['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PersonCustomMasterTableMap::COL_CUSTOM_FIELDSEC, $customFieldSec, $comparison);\n }", "function saml_hook_attribute_filter(&$saml_attributes) {\n\n // Nos quedamos sólamente con el DNI dentro del schacPersonalUniqueID\n if(isset($saml_attributes['schacPersonalUniqueID'])) {\n foreach($saml_attributes['schacPersonalUniqueID'] as $key => $value) {\n $data = array();\n if(preg_match('/urn:mace:terena.org:schac:personalUniqueID:es:(.*):(.*)/', $value, $data)) {\n $saml_attributes['schacPersonalUniqueID'][$key] = $data[2];\n //DNI sin letra\n //$saml_attributes['schacPersonalUniqueID'][$key] = substr($value[2], 0, 8);\n }\n else {\n unset($saml_attributes['schacPersonalUniqueID'][$key]);\n }\n }\n }\n\n // Pasamos el irisMailMainAddress como mail si no existe\n if(!isset($saml_attributes['mail'])) {\n if(isset($saml_attributes['irisMailMainAddress'])) {\n $saml_attributes['mail'] = $saml_attributes['irisMailMainAddress'];\n }\n }\n\n\n // Pasamos el uid como eduPersonPrincipalName o como eduPersonTargetedID\n if(!isset($saml_attributes['eduPersonPrincipalName'])) {\n if(isset($saml_attributes['uid'])) {\n $saml_attributes['eduPersonPrincipalName'] = $saml_attributes['uid'];\n }\n else if (isset($saml_attributes['eduPersonTargetedID'])) {\n $saml_attributes['eduPersonPrincipalName'] = $saml_attributes['eduPersonTargetedID'];\n }\n else if (isset($saml_attributes['mail'])) {\n $saml_attributes['eduPersonPrincipalName'] = $saml_attributes['mail'];\n }\n }\n\n\n // Pasamos el uid como eduPersonPrincipalName\n\n if(!isset($saml_attributes['eduPersonPrincipalName'])) {\n if(isset($saml_attributes['uid'])) {\n $saml_attributes['eduPersonPrincipalName'] = $saml_attributes['uid'];\n }\n else if (isset($saml_attributes['mail'])) {\n $saml_attributes['eduPersonPrincipalName'] = $saml_attributes['mail'];\n }\n }\n\n // Generamos un schacUserStatus vacio si no existe\n\n if(!isset($saml_attributes['schacUserStatus']))\n $saml_attributes['schacUserStatus'] = array();\n\n // Añadimos los cursos en los que se matricula todos los usuarioss\n\n $current_year = saml_uhu_currentCursoAca();\n $saml_attributes['schacUserStatus'][] = 'urn:mace:terena.org:schac:userStatus:es:uhu.es:SEV-ALU:'.$current_year.':student:active';\n\n // Los alumnos los matriculamos en el caruh\n if (isset($saml_attributes['eduPersonAffiliation']) && $saml_attributes['eduPersonAffiliation'][0] == \"student\")\n {\n $saml_attributes['schacUserStatus'][] = 'urn:mace:terena.org:schac:userStatus:es:uhu.es:CARUH:'.$current_year.':student:active'; \n }\n elseif (isset($saml_attributes['eduPersonAffiliation']) && $saml_attributes['eduPersonAffiliation'][0] == \"member\")\n {\n // Al resto en el manual para profesores\n $saml_attributes['schacUserStatus'][] = 'urn:mace:terena.org:schac:userStatus:es:uhu.es:SEV-PRO:'.$current_year.':student:active';\n }\n}" ]
[ "0.601381", "0.54629844", "0.5197726", "0.5005779", "0.47589108", "0.46691322", "0.46170112", "0.45689216", "0.451433", "0.4485543", "0.4485543", "0.4485543", "0.4485543", "0.4485543", "0.443953", "0.44267452", "0.43896568", "0.4350975", "0.4341334", "0.43119818", "0.42934704", "0.42873198", "0.42489457", "0.42419332", "0.42266557", "0.42175865", "0.42101917", "0.42011836", "0.41917682", "0.41846088" ]
0.70274407
0
Sets the department property value. The name for the department in which the user works. Maximum length is 64 characters.Supports $filter (eq, ne, not , ge, le, in, and eq on null values).
public function setDepartment(?string $value): void { $this->getBackingStore()->set('department', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDepartment($var)\n {\n GPBUtil::checkString($var, True);\n $this->department = $var;\n\n return $this;\n }", "public function setDepartment($department)\n {\n $this->department = $this->cleanup($department);\n }", "public function _settings_field_department()\n\t{\n\t\tif (!empty($this->settings) && array_key_exists('department', $this->settings) && !empty($this->settings['department']) && $this->settings['department'] <> '0') {\n\t\t\t$department = $this->settings['department'];\n\t\t} else {\n\t\t\t$department = $this->default['department'];\n\t\t}\n\t\t?>\n\t\t<input type=\"text\" size=\"40\" name=\"kayako-settings[department]\" value=\"<?php echo $department; ?>\" placeholder=\"Select Department\"/>\n\t<?php\n\t}", "public function testGetSetDepartment()\n {\n $customer = new Customer();\n $this->assertNull($customer->getDepartment());\n $customer->setDepartment('neuer Department');\n $this->assertEquals('neuer Department', $customer->getDepartment());\n }", "public function update(StoreDepartmentRequest $request, Department $department)\n {\n if ($department->user_id !== auth()->user()->id) return response()->json([\n 'message'=>'no'\n ],401);\n\n if(!is_null($request->name) && $request->name != $department->name){\n $this->repodepart->update($request,$department);\n }\n\n return response()->json([\n 'data'=>$department\n ],200);\n \n \n }", "public function getDepartment()\n {\n return $this->department;\n }", "public function getDepartment()\n {\n return $this->department;\n }", "public function update(Request $request, Department $department)\n {\n if(!is_null($request->user_id) && $request->user_id != $department->user_id){ \n // user tro lai thang department nay\n User::where('id',$request->user_id)\n ->update(['department_id'=>$department->id]);\n //xu ly cho thang hien tai cua no tro den phong null\n User::where('id',$department->user_id)\n ->update(['department_id'=>null]);\n }\n return $department->update(request()->only(['user_id','name']));\n \n \n }", "public function update(Request $request, Api\\Department $department)\n {\n $no = $request->dept_no;\n Department::where('dept_no', $no)->update([\n 'dept_no' => $request->dept_no,\n 'dept_name' => $request->dept_name,\n ]);\n return $department;\n }", "public function get_department_name($id){\n\t\t$data = $this->HrEmployee->HrDepartment->findById($id, array('fields' => 'dept_name'));\t\t\n\t\t$this->set('dept_data', $data);\n\t}", "public function testUpdateDepartment()\n {\n $response = $this->loginAsRole(Role::ADMIN)\n ->put($this->url('departments/1'), [\n 'name' => 'Computer Science and Mathematics'\n ]);\n\n $response->assertStatus(200);\n\n $response->assertJsonStructure([\n 'id',\n 'name',\n 'hod_id',\n 'faculty_id'\n ]);\n\n $response->assertJson([\n 'name' => 'Computer Science and Mathematics'\n ]);\n }", "public function getDepartment();", "public function getDepartment()\n {\n return $this->hasOne(Department::class, ['id' => 'department_id'])\n ->via('userProfile');\n }", "public function edit(Department $department)\n {\n //\n }", "public function edit(Department $department)\n {\n //\n }", "public function edit(Department $department)\n {\n //\n }", "public function edit(Department $department)\n {\n //\n }", "public function edit(Department $department)\n {\n //\n\n }", "public function update(Request $request, Department $department)\n {\n //\n }", "public function update(Request $request, Department $department)\n {\n //\n }", "public function update(Request $request, Department $department)\n {\n //\n }", "abstract function setDept($orgCode);", "public function update(Request $request, Department $department)\n {\n if ($request->ajax()) {\n $haspermision = auth()->user()->can('department-create');\n if ($haspermision) {\n\n Department::findOrFail($department->id);\n $rules = [\n 'dept_name' => 'required|unique:departments,dept_name,' . $department->id\n ];\n\n $validator = Validator::make($request->all(), $rules);\n if ($validator->fails()) {\n return response()->json([\n 'type' => 'error',\n 'errors' => $validator->getMessageBag()->toArray()\n ]);\n } else {\n $department->dept_name = $request->input('dept_name');\n $department->description = $request->input('description');\n $department->uploaded_by = auth()->user()->id;\n $department->status = $request->input('status');\n $department->save(); //\n return response()->json(['type' => 'success', 'message' => \"Successfully Updated\"]);\n\n }\n } else {\n abort(403, 'Sorry, you are not authorized to access the page');\n }\n } else {\n return response()->json(['status' => 'false', 'message' => \"Access only ajax request\"]);\n }\n }", "public function getDepartment()\n {\n return $this->hasOne(Department::class, ['id' => 'department_id']);\n }", "public function update($department) {\n\n $this->db->set(\n array(\n 'idUserKf'=>$department['idUserKf']\n //'idDepartment'=>$department['idDepartment']\n )\n )->where(\"idDepartment\", $department['idDepartment'])->update(\"tb_department\");\n\n \n if ($this->db->affected_rows() === 1) {\n return true;\n } else {\n return false;\n }\n }", "public function findByDepartment($dept, $options) { \n $options['facets'] = array(\"clear\" => true, // clear all default filters \n \"mincount\" => 1, // display even single facets\n // add the relevant facets-- status, advisor, subfield\n \"add\" => array(\"status\",\n \"advisor_facet\",\n \"subfield_facet\",\n \"year\"));\n $options['AND']['program'] = 'program:\"' . $dept . '\"';\n return $this->find($options);\n }", "public function update(Request $request, Department $department)\n {\n $request->validate([\n 'name' => ['required', 'string'],\n 'is_academic' => ['required', 'boolean']\n ]);\n\n $department->update([\n 'name' => $request['name'],\n 'is_academic' =>$request['is_academic'],\n 'organization_id' => Organization::first()->id,\n 'type' => 'department'\n ]);\n\n return Redirect::route('departments')->with(['success' => 'Department Updated Successful']);\n }", "public function show(Api\\Department $department)\n {\n return $department;\n }", "public function setIdDept($id_dept)\n {\n $this->id_dept = $id_dept;\n\n return $this;\n }", "public function department()\n {\n return $this->belongsTo('App\\Models\\Department');\n }" ]
[ "0.6821442", "0.6495082", "0.6484503", "0.62403613", "0.60327315", "0.5798275", "0.5798275", "0.5760912", "0.5596888", "0.5588348", "0.556187", "0.54965067", "0.5479672", "0.5476437", "0.5476437", "0.5476437", "0.5476437", "0.5466505", "0.54398596", "0.54398596", "0.54398596", "0.54388785", "0.54122835", "0.5410979", "0.53612745", "0.53541476", "0.53425574", "0.531659", "0.5277855", "0.5274014" ]
0.6676049
1
Sets the deviceEnrollmentConfigurations property value. Get enrollment configurations targeted to the user
public function setDeviceEnrollmentConfigurations(?array $value): void { $this->getBackingStore()->set('deviceEnrollmentConfigurations', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deviceEnrollmentConfigurations(): DeviceEnrollmentConfigurationsRequestBuilder {\n return new DeviceEnrollmentConfigurationsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function getDeviceEnrollmentConfigurations(): ?array {\n $val = $this->getBackingStore()->get('deviceEnrollmentConfigurations');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DeviceEnrollmentConfiguration::class);\n /** @var array<DeviceEnrollmentConfiguration>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'deviceEnrollmentConfigurations'\");\n }", "public function deviceConfigurations(): DeviceConfigurationsRequestBuilder {\n return new DeviceConfigurationsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function getConfigurations()\n {\n return $this->configurations;\n }", "public function listManagedconfigurationsforuser($enterpriseId, $userId, $optParams = [])\n {\n $params = ['enterpriseId' => $enterpriseId, 'userId' => $userId];\n $params = array_merge($params, $optParams);\n return $this->call('list', [$params], ManagedConfigurationsForUserListResponse::class);\n }", "public function appleUserInitiatedEnrollmentProfiles(): AppleUserInitiatedEnrollmentProfilesRequestBuilder {\n return new AppleUserInitiatedEnrollmentProfilesRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function getMobileAppConfigurations(): ?array {\n $val = $this->getBackingStore()->get('mobileAppConfigurations');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ManagedDeviceMobileAppConfiguration::class);\n /** @var array<ManagedDeviceMobileAppConfiguration>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mobileAppConfigurations'\");\n }", "public function setManagedDevices($val)\n {\n $this->_propDict[\"managedDevices\"] = $val;\n return $this;\n }", "public function getConfigurations()\n {\n return $this->searchConfigurations;\n }", "public function getTargetedManagedAppConfigurations(): ?array {\n $val = $this->getBackingStore()->get('targetedManagedAppConfigurations');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, TargetedManagedAppConfiguration::class);\n /** @var array<TargetedManagedAppConfiguration>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'targetedManagedAppConfigurations'\");\n }", "public function setMobileAppConfigurations(?array $value): void {\n $this->getBackingStore()->set('mobileAppConfigurations', $value);\n }", "function get_DeviceConfiguration () {\n\t\treturn array (\n\t // -------------------------------------------------------------------------------------------------------\n\t\t\tc_Device_YamahaMain \t=> array(\n\t\t\t\tc_Control_DevicePower \t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Power',\n\t\t\t\t\tc_Property_PowerDelay\t\t=> 150,\n\t\t\t\t\tc_Property_CommPower\t\t=> array(c_Comm_Yamaha, 'PWR', '?'),\n\t\t\t\t\tc_Property_CommPowerOff\t\t=> array(c_Comm_Yamaha, 'PWR', 'OFF'),\n\t\t\t\t\tc_Property_CommPowerOn\t\t=> array(c_Comm_Yamaha, 'PWR', 'ON'),\n\t\t\t\t),\n\t\t\t\tc_Control_Volume\t\t=> array(\n\t\t\t\t\tc_Property_Name\t\t\t\t=> 'Volume',\n\t\t\t\t\tc_Property_CommVol\t\t\t=> array(c_Comm_Yamaha, 'VOL', c_Template_Value),\n\t\t\t\t\tc_Property_MinValue\t\t\t=> -60,\n\t\t\t\t\tc_Property_MaxValue\t\t\t=> -15,\n\t\t\t\t),\n\t\t\t\tc_Control_RemoteVolume \t=> array(\n\t\t\t\t\tc_Property_Name \t\t=> 'Volume Control',\n\t\t\t\t\tc_Property_Names \t=> array('src=\"../user/Entertainment/Remote_YamahaVolume.php\" height=38px'),\n\t\t\t\t),\n\t\t\t\tc_Control_RemoteSource\t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Source Control',\n\t\t\t\t\tc_Property_Names \t\t=> array('src=\"../user/Entertainment/Remote_YamahaEmpty.php\" height=10px'),\n\t\t\t\t),\n\t\t\t\tc_Control_Muting \t\t\t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Mute',\n\t\t\t\t\tc_Property_CommMuteOn \t\t=> array(c_Comm_Yamaha, 'MUTE', 'ON'),\n\t\t\t\t\tc_Property_CommMuteOff \t\t=> array(c_Comm_Yamaha, 'MUTE', 'OFF'),\n\t\t\t\t),\n\t\t\t),\n\t\t\t// -------------------------------------------------------------------------------------------------------\n\t\t\tc_Device_YamahaZone2 \t=> array(\n\t\t\t\tc_Control_DevicePower \t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Power',\n\t\t\t\t\tc_Property_PowerDelay\t\t=> 150,\n\t\t\t\t\tc_Property_CommPowerOff\t=> array(c_Comm_Yamaha, 'PWR', 'OFF', 'ZONE2'),\n\t\t\t\t\tc_Property_CommPowerOn\t=> array(c_Comm_Yamaha, 'PWR', 'ON', 'ZONE2'),\n\t\t\t\t),\n\t\t\t\tc_Control_Volume\t\t=> array(\n\t\t\t\t\tc_Property_Name\t\t\t\t=> 'Volume',\n\t\t\t\t\tc_Property_CommVol\t\t\t=> array(c_Comm_Yamaha, 'VOL', c_Template_Value, 'ZONE2'),\n\t\t\t\t\tc_Property_MinValue\t\t\t=> -20,\n\t\t\t\t\tc_Property_MaxValue\t\t\t=> 10,\n\t\t\t\t),\n\t\t\t\tc_Control_Muting \t\t\t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Mute',\n\t\t\t\t\tc_Property_CommMuteOn \t\t=> array(c_Comm_Yamaha, 'MUTE', 'ON', 'ZONE2'),\n\t\t\t\t\tc_Property_CommMuteOff \t\t=> array(c_Comm_Yamaha, 'MUTE', 'OFF', 'ZONE2'),\n\t\t\t\t),\n\t\t\t),\n\t // -------------------------------------------------------------------------------------------------------\n\t\t\tc_Device_Yamaha_NetRadio \t=> array(\n\t\t\t\tc_Property_PowerDelay\t=> c_Device_YamahaMain,\n\t\t\t\tc_Control_RemoteSource\t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Source Control',\n\t\t\t\t\tc_Property_Names \t\t=> array('src=\"../user/Entertainment/Remote_YamahaNetRadio.php\" height=150px'),\n\t\t\t\t),\n\t\t\t\tc_Control_iRemoteSource \t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'iPhone Source Control',\n\t\t\t\t\tc_Property_Names \t\t=> array('src=\"../user/Entertainment/iRemote_YamahaNetRadio.php\"'),\n\t\t\t\t),\n\t\t\t\tc_Control_Program \t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Program',\n\t\t\t\t\tc_Property_CommPrg\t\t\t=> array(c_Comm_Yamaha, 'CHAN', c_Template_Code),\n\t\t\t\t\tc_Property_CommPrgPrev\t\t=> array(c_Comm_Yamaha, 'CHAN', 'prev'),\n\t\t\t\t\tc_Property_CommPrgNext\t\t=> array(c_Comm_Yamaha, 'CHAN', 'next'),\n\t\t\t\t\tc_Property_Codes\t\t\t=> array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13'),\n\t\t\t\t\tc_Property_Names\t\t\t=> array('NDR2', 'Technobase FM', '104.6 RTL', 'The End 107.9FM', 'NRJ Berlin', 'Fritz','1.fm Top 40','KISS FM 102.7','Ambient Meditation Music','Calm Radio - Sleep','Nirvana Radio Relaxation','Chroma Radio Nature','Healing Music Radio'),\n\t\t\t\t),\n\t\t\t),\n\t\t\t// -------------------------------------------------------------------------------------------------------\n\t\t\tc_Device_SubwooferBack \t=> array(\n\t\t\t\tc_Control_DevicePower \t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Power',\n\t\t\t\t\tc_Property_PowerDelay\t\t=> 150,\n\t\t\t\t\tc_Property_CommPowerOff\t\t=> array(c_Comm_HomeMaticSwitch, c_Device_SubwooferBack_ID, 'PWR', 'OFF'),\n\t\t\t\t\tc_Property_CommPowerOn\t\t=> array(c_Comm_HomeMaticSwitch, c_Device_SubwooferBack_ID, 'PWR', 'ON'),\n\t\t\t\t),\n\t\t\t),\n\t\t\t// -------------------------------------------------------------------------------------------------------\n\t\t\tc_Device_SamsungTV \t\t=> array(\n\t\t\t\tc_Control_DevicePower \t=> array(\n\t\t\t\t\tc_Property_Name \t\t\t=> 'Power',\n\t\t\t\t\tc_Property_PowerDelay\t\t=>150,\n\t\t\t\t\tc_Property_CommPowerOn\t\t=> array(c_Comm_NetIO230, c_Device_SamsungTV_ID, 'PWR', 'ON'),\n\t\t\t\t\tc_Property_CommPowerOff\t\t=> array(c_Comm_NetIO230, c_Device_SamsungTV_ID, 'PWR', 'OFF'),\n\t\t\t\t),\n\t\t\t),\n\t // -------------------------------------------------------------------------------------------------------\n\t\t);\n\t}", "public function deviceConfigurationsAllManagedDeviceCertificateStates(): DeviceConfigurationsAllManagedDeviceCertificateStatesRequestBuilder {\n return new DeviceConfigurationsAllManagedDeviceCertificateStatesRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "protected function getConfigurationValues()\n {\n $configurationValues = array(\n array(\n 'Checkout Title',\n $this->getSettingKey('CHECKOUT_PAGE_TITLE'),\n 'Pay safely with emerchantpay Checkout',\n 'This name will be displayed on the checkout page',\n '6',\n '10',\n 'emp_zfg_draw_input(null, ',\n null\n ),\n array(\n 'Transaction Types',\n $this->getSettingKey('TRANSACTION_TYPES'),\n Types::SALE,\n 'What transaction type should we use upon purchase?',\n '6',\n '60',\n \"emp_zfg_select_drop_down_multiple_from_object({$this->requiredOptionsAttributes}, \\\"{$this->code}\\\", \\\"getConfigTransactionTypesOptions\\\", \",\n null\n ),\n array(\n 'Bank code(s) for Online banking',\n $this->getSettingKey('BANK_CODES'),\n '',\n 'If Online banking is chosen as transaction type, here you can select Bank code(s).',\n '6',\n '62',\n \"emp_zfg_select_drop_down_multiple_from_object(null, \\\"{$this->code}\\\", \\\"getConfigBankCodes\\\", \",\n null\n ),\n array(\n 'Checkout Page Language',\n $this->getSettingKey('LANGUAGE'),\n 'en',\n 'What language (localization) should we have on the Checkout?.',\n '6',\n '65',\n \"emp_zfg_select_drop_down_single_from_object(\\\"{$this->code}\\\", \\\"getConfigLanguageOptions\\\",\",\n null\n ),\n array(\n \"WPF Tokenization\",\n $this->getSettingKey('WPF_TOKENIZATION'),\n \"false\",\n \"Enable WPF Tokenization\",\n \"6\",\n \"50\",\n \"emp_zfg_draw_toggle(\",\n \"emp_zfg_get_toggle_value\"\n ),\n array(\n \"Enable 3DSv2\",\n $this->getSettingKey('THREEDS_ALLOWED'),\n \"true\",\n \"Enable 3DSv2 optional parameters\",\n \"6\",\n \"50\",\n \"emp_zfg_draw_toggle(\",\n \"emp_zfg_get_toggle_value\"\n ),\n array(\n '3DSv2 Challenge',\n $this->getSettingKey('THREEDS_CHALLENGE_INDICATOR'),\n ChallengeIndicators::NO_PREFERENCE,\n 'The value has weight and might impact the decision whether a challenge will be required' .\n ' for the transaction or not.',\n '6',\n '65',\n \"emp_zfg_select_drop_down_single_from_object(\\\"{$this->code}\\\", \\\"getConfigChallengeIndicators\\\",\",\n null\n ),\n array(\n 'SCA Exemption',\n $this->getSettingKey('SCA_EXEMPTION'),\n ScaExemptions::EXEMPTION_LOW_RISK,\n 'Exemption for the Strong Customer Authentication.',\n '6',\n '65',\n \"emp_zfg_select_drop_down_single_from_object(\\\"{$this->code}\\\", \\\"getConfigScaExemption\\\",\",\n null\n ),\n array(\n 'Exemption Amount',\n $this->getSettingKey('SCA_EXEMPTION_AMOUNT'),\n '100',\n 'Exemption Amount determinate if the SCA Exemption should be included in the request to the Gateway.',\n '6',\n '10',\n 'emp_zfg_draw_input(null, ',\n null\n ),\n );\n\n return array_merge(\n parent::getConfigurationValues(),\n $configurationValues\n );\n }", "public function getCustomerSettings($idDevice)\r\n\t{\r\n\t\ttry {\r\n\t\t\t\t\r\n\t\t\t$modelRel = CustomerDevice::model()->findByAttributes(array('Id_device'=>$idDevice, 'need_update'=>1));\r\n\t\t\t\t\r\n\t\t\tif(isset($modelRel))\r\n\t\t\t{\t\r\n\t\t\t\t$modelResponse = new CustomerSettingsResponse();\r\n\t\t\t\t$modelResponse->Id_device = $idDevice;\r\n\t\t\t\t$modelResponse->Id_customer = $modelRel->Id_customer;\r\n\t\t\t\t$modelResponse->setAttributes($modelRel->customer);\r\n\t\t\t\t\r\n\t\t\t\t$configSOAP = new ConfigurationSOAP();\r\n\t\t\t\t$configSOAP->setAttributes($modelRel->device);\r\n\t\t\t\t\r\n\t\t\t\t//agrego las cuentas de sabnzbd\r\n\t\t\t\t$sabnzbdAccounts = SabnzbdConfig::model()->findAllByAttributes(array('Id_device'=>$idDevice));\r\n\t\t\t\t\r\n\t\t\t\tforeach($sabnzbdAccounts as $account)\r\n\t\t\t\t{\r\n\t\t\t\t\t$modelAccount = new SabnzbdAccountSOAP();\r\n\t\t\t\t\t$modelAccount->setAttributes($account);\r\n\t\t\t\t\t$configSOAP->SabnzbdAccounts[] = $modelAccount;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//agrego los players\r\n\t\t\t\t$devicePlayers = DevicePlayer::model()->findAllByAttributes(array('Id_device'=>$idDevice));\r\n\t\t\t\t\r\n\t\t\t\tforeach($devicePlayers as $player)\r\n\t\t\t\t{\r\n\t\t\t\t\t$modelPlayer = new PlayerSOAP();\r\n\t\t\t\t\t$modelPlayer->setAttributes($player);\r\n\t\t\t\t\t$configSOAP->Players[] = $modelPlayer;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//agrego market categorys\r\n\t\t\t\t$marketCategorys = MarketCategory::model()->findAll();\r\n\t\t\t\tforeach($marketCategorys as $marketCat)\r\n\t\t\t\t{\r\n\t\t\t\t\t$modelMarketCategory = new MarketCategorySOAP();\r\n\t\t\t\t\t$modelMarketCategory->setAttributes($marketCat);\t\t\t\t\t\r\n\t\t\t\t\t$configSOAP->MarketCategories[] = $modelMarketCategory;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$modelResponse->Configuration = $configSOAP;\r\n\r\n\t\t\t\t$users = CustomerUsers::model()->findAllByAttributes(array('Id_customer'=>$modelRel->Id_customer));\r\n\t\t\t\t\r\n\t\t\t\tforeach($users as $user)\r\n\t\t\t\t{\r\n\t\t\t\t\t$modelUser = new UserSOAP();\r\n\t\t\t\t\t$modelUser->setAttributes($user);\r\n\t\t\t\t\t$modelResponse->Users[] = $modelUser;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn $modelResponse;\r\n\t\t\t}\r\n\t\t} catch (Exception $e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "function SIMPL_LOG__SetConfigurations( $aaConfigurations )\n{\n}", "public function getManagedDevices()\n {\n if (array_key_exists(\"managedDevices\", $this->_propDict)) {\n return $this->_propDict[\"managedDevices\"];\n } else {\n return null;\n }\n }", "public function appConfigurationAction()\n {\n // try to get logged in user\n $communityUser = $this->communityUserService->getCommunityUser();\n $appConfiguration = array();\n $appConfiguration['results']['PushChannels'] = array();\n foreach ($this->settings['pushChannels'] as $key => $pushChannel) {\n $appConfiguration['results']['PushChannels']['Channel' . $key] = $pushChannel;\n }\n if ($communityUser instanceof CommunityUser) {\n $appConfiguration['results']['token'] = $communityUser->getAuthToken();\n $appConfiguration['results']['PushChannels']['Channel0'] = 'userid_' . $communityUser->getUid();\n }\n return json_encode($appConfiguration);\n }", "public function getIosLobAppProvisioningConfigurations(): ?array {\n $val = $this->getBackingStore()->get('iosLobAppProvisioningConfigurations');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, IosLobAppProvisioningConfiguration::class);\n /** @var array<IosLobAppProvisioningConfiguration>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'iosLobAppProvisioningConfigurations'\");\n }", "function getConfigs()\n {\n // Let's load the data if it doesn't already exist\n if(empty($this->_configs))\n {\n // Get the data of the categories which will actually be displayed\n $query = $this->_buildQuery();\n $this->_db->setQuery($query, $this->getState('list.start'), $this->getState('list.limit'));\n $configs = $this->_db->loadObjectList('group_id');\n\n $this->_configs = array();\n foreach($configs as $key => $config)\n {\n // If there is at least one config row with a higher ordering value which belongs\n // to a parent user group the current config row can/will never be applied to a user\n if($this->getActiveParentConfigs($config->group_id, $config->ordering))\n {\n $config->usergroups = false;\n\n continue;\n }\n\n // With the following code we want to get all user groups\n // for which the current config row applies.\n $subgroups = $this->getTree($config->group_id);\n $config->usergroups = array();\n $removing = false;\n foreach($subgroups as $key => $subgroup)\n {\n // If the removing flag is set we won't store user groups\n // which are children of the group stored in $removing\n if($removing)\n {\n if($subgroup->rgt > $removing)\n {\n // If rgt of current group is greater than the\n // stored one the complete sub-tree was parsed\n $removing = false;\n }\n else\n {\n continue;\n }\n }\n\n // If there is a config row for the current user group with a higher ordering value\n // that one will be used for the current user group and all of its sub-groups\n if(isset($configs[$subgroup->id]) && $configs[$subgroup->id]->ordering > $config->ordering)\n {\n $removing = $subgroup->rgt;\n\n continue;\n }\n\n // If we reach this point the current config row will\n // be applied to the current user group, so store it\n $config->usergroups[] = $subgroup->title;\n }\n\n // Prepend the user group the config row belongs to\n array_unshift($config->usergroups, $config->title);\n }\n\n $this->_configs = $configs;\n }\n\n return $this->_configs;\n }", "public function setIosLobAppProvisioningConfigurations(?array $value): void {\n $this->getBackingStore()->set('iosLobAppProvisioningConfigurations', $value);\n }", "public function androidDeviceOwnerEnrollmentProfiles(): AndroidDeviceOwnerEnrollmentProfilesRequestBuilder {\n return new AndroidDeviceOwnerEnrollmentProfilesRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function register_configuration( $configurations, $wp_customize ) {\r\n\r\n\t\t\t$_configs = array(\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Option: Shop Columns\r\n\t\t\t\t */\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'name' => ASTRA_THEME_SETTINGS . '[shop-grids]',\r\n\t\t\t\t\t'type' => 'control',\r\n\t\t\t\t\t'control' => 'ast-responsive-slider',\r\n\t\t\t\t\t'section' => 'woocommerce_product_catalog',\r\n\t\t\t\t\t'default' => array(\r\n\t\t\t\t\t\t'desktop' => 4,\r\n\t\t\t\t\t\t'tablet' => 3,\r\n\t\t\t\t\t\t'mobile' => 2,\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'priority' => 11,\r\n\t\t\t\t\t'title' => __( 'Shop Columns', 'astra' ),\r\n\t\t\t\t\t'input_attrs' => array(\r\n\t\t\t\t\t\t'step' => 1,\r\n\t\t\t\t\t\t'min' => 1,\r\n\t\t\t\t\t\t'max' => 6,\r\n\t\t\t\t\t),\r\n\t\t\t\t),\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Option: Products Per Page\r\n\t\t\t\t */\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'name' => ASTRA_THEME_SETTINGS . '[shop-no-of-products]',\r\n\t\t\t\t\t'type' => 'control',\r\n\t\t\t\t\t'section' => 'woocommerce_product_catalog',\r\n\t\t\t\t\t'title' => __( 'Products Per Page', 'astra' ),\r\n\t\t\t\t\t'default' => astra_get_option( 'shop-no-of-products' ),\r\n\t\t\t\t\t'control' => 'number',\r\n\t\t\t\t\t'priority' => 15,\r\n\t\t\t\t\t'input_attrs' => array(\r\n\t\t\t\t\t\t'min' => 1,\r\n\t\t\t\t\t\t'step' => 1,\r\n\t\t\t\t\t\t'max' => 100,\r\n\t\t\t\t\t),\r\n\t\t\t\t),\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Option: Single Post Meta\r\n\t\t\t\t */\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'name' => ASTRA_THEME_SETTINGS . '[shop-product-structure]',\r\n\t\t\t\t\t'type' => 'control',\r\n\t\t\t\t\t'control' => 'ast-sortable',\r\n\t\t\t\t\t'section' => 'woocommerce_product_catalog',\r\n\t\t\t\t\t'default' => astra_get_option( 'shop-product-structure' ),\r\n\t\t\t\t\t'priority' => 15,\r\n\t\t\t\t\t'title' => __( 'Shop Product Structure', 'astra' ),\r\n\t\t\t\t\t'choices' => array(\r\n\t\t\t\t\t\t'title' => __( 'Title', 'astra' ),\r\n\t\t\t\t\t\t'price' => __( 'Price', 'astra' ),\r\n\t\t\t\t\t\t'ratings' => __( 'Ratings', 'astra' ),\r\n\t\t\t\t\t\t'short_desc' => __( 'Short Description', 'astra' ),\r\n\t\t\t\t\t\t'add_cart' => __( 'Add To Cart', 'astra' ),\r\n\t\t\t\t\t\t'category' => __( 'Category', 'astra' ),\r\n\t\t\t\t\t),\r\n\t\t\t\t),\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Option: Shop Archive Content Width\r\n\t\t\t\t */\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'name' => ASTRA_THEME_SETTINGS . '[shop-archive-width]',\r\n\t\t\t\t\t'type' => 'control',\r\n\t\t\t\t\t'control' => 'select',\r\n\t\t\t\t\t'section' => 'woocommerce_product_catalog',\r\n\t\t\t\t\t'default' => astra_get_option( 'shop-archive-width' ),\r\n\t\t\t\t\t'priority' => 10,\r\n\t\t\t\t\t'title' => __( 'Shop Archive Content Width', 'astra' ),\r\n\t\t\t\t\t'choices' => array(\r\n\t\t\t\t\t\t'default' => __( 'Default', 'astra' ),\r\n\t\t\t\t\t\t'custom' => __( 'Custom', 'astra' ),\r\n\t\t\t\t\t),\r\n\t\t\t\t),\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * Option: Enter Width\r\n\t\t\t\t */\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'name' => ASTRA_THEME_SETTINGS . '[shop-archive-max-width]',\r\n\t\t\t\t\t'type' => 'control',\r\n\t\t\t\t\t'control' => 'ast-slider',\r\n\t\t\t\t\t'section' => 'woocommerce_product_catalog',\r\n\t\t\t\t\t'default' => 1200,\r\n\t\t\t\t\t'priority' => 10,\r\n\t\t\t\t\t'required' => array( ASTRA_THEME_SETTINGS . '[shop-archive-width]', '===', 'custom' ),\r\n\t\t\t\t\t'title' => __( 'Custom Width', 'astra' ),\r\n\t\t\t\t\t'transport' => 'postMessage',\r\n\t\t\t\t\t'suffix' => '',\r\n\t\t\t\t\t'input_attrs' => array(\r\n\t\t\t\t\t\t'min' => 768,\r\n\t\t\t\t\t\t'step' => 1,\r\n\t\t\t\t\t\t'max' => 1920,\r\n\t\t\t\t\t),\r\n\t\t\t\t),\r\n\t\t\t);\r\n\r\n\t\t\t$configurations = array_merge( $configurations, $_configs );\r\n\r\n\t\t\treturn $configurations;\r\n\r\n\t\t}", "public function setTargetedManagedAppConfigurations(?array $value): void {\n $this->getBackingStore()->set('targetedManagedAppConfigurations', $value);\n }", "public function microsoftTunnelConfigurations(): MicrosoftTunnelConfigurationsRequestBuilder {\n return new MicrosoftTunnelConfigurationsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function deviceCompliancePolicies(): DeviceCompliancePoliciesRequestBuilder {\n return new DeviceCompliancePoliciesRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "private function _init_configurations() {\n\n $config = Configuration::getMultiple(array(\n 'AFTERPAY_ENABLED',\n 'AFTERPAY_MERCHANT_ID',\n 'AFTERPAY_MERCHANT_KEY',\n 'AFTERPAY_API_ENVIRONMENT',\n 'AFTERPAY_PAYMENT_MIN',\n 'AFTERPAY_PAYMENT_MAX',\n 'AFTERPAY_RESTRICTED_CATEGORIES',\n 'AFTERPAY_USER_AGENT',\n ));\n\n $this->afterpay_enabled = false;\n if (!empty($config['AFTERPAY_ENABLED'])) {\n $this->afterpay_enabled = (bool)$config['AFTERPAY_ENABLED'];\n }\n if (!empty($config['AFTERPAY_MERCHANT_ID'])) {\n $this->afterpay_merchant_id = $config['AFTERPAY_MERCHANT_ID'];\n }\n if (!empty($config['AFTERPAY_MERCHANT_KEY'])) {\n $this->afterpay_merchant_key = $config['AFTERPAY_MERCHANT_KEY'];\n }\n if (!empty($config['AFTERPAY_API_ENVIRONMENT'])) {\n $this->afterpay_api_environment = $config['AFTERPAY_API_ENVIRONMENT'];\n }\n if (!empty($config['AFTERPAY_PAYMENT_MIN'])) {\n $this->afterpay_payment_min = (float)$config['AFTERPAY_PAYMENT_MIN'];\n }\n if (!empty($config['AFTERPAY_PAYMENT_MAX'])) {\n $this->afterpay_payment_max = (float)$config['AFTERPAY_PAYMENT_MAX'];\n }\n $this->afterpay_restricted_categories = array();\n if (!empty($config['AFTERPAY_RESTRICTED_CATEGORIES'])) {\n $this->afterpay_restricted_categories = json_decode($config['AFTERPAY_RESTRICTED_CATEGORIES']);\n }\n if (!empty($config['AFTERPAY_USER_AGENT'])) {\n $this->afterpay_user_agent = $config['AFTERPAY_USER_AGENT'];\n }\n }", "protected function load_configuration()\n {\n $l_data = [];\n\n $l_result = end($this->m_dao->get_configuration(null, ['id' => $this->m_entity]));\n if ($l_result === false)\n {\n return null;\n } //if\n\n $l_data[isys_jdisc_dao::C__CONFIGURATION] = $l_result;\n\n return $l_data;\n }", "public function devices()\n {\n return $this->hasMany(UserDevice::class);\n }", "public function getConfigArray()\n\t{\n\t\t\n\t\tif ( $this->isSuperUser() )\n\t\t\treturn $this->configuration->getConfig();\n\t\tthrow new DBWRAPPERINIT(\"Only administrator are allowed to do this operation\", 152);\n\t\t\n\t}" ]
[ "0.6493204", "0.6142902", "0.51946735", "0.5040637", "0.49444574", "0.47909394", "0.47103465", "0.46174762", "0.4479753", "0.4392014", "0.43242115", "0.42739707", "0.42452082", "0.41905907", "0.4176891", "0.41708907", "0.41681045", "0.41538385", "0.41518176", "0.41510007", "0.41169882", "0.41003954", "0.4086479", "0.408288", "0.40741166", "0.4073217", "0.40678176", "0.40499264", "0.40154198", "0.4011711" ]
0.6312913
1
Sets the deviceEnrollmentLimit property value. The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.
public function setDeviceEnrollmentLimit(?int $value): void { $this->getBackingStore()->set('deviceEnrollmentLimit', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDeviceEnrollmentConfigurations(?array $value): void {\n $this->getBackingStore()->set('deviceEnrollmentConfigurations', $value);\n }", "public function setUsageLimit($usage_limit);", "public function setAccountLimit($accountLimit)\n {\n $this->accountLimit = $accountLimit;\n }", "public function setCompliantDeviceCount($val)\n {\n $this->_propDict[\"compliantDeviceCount\"] = intval($val);\n return $this;\n }", "public function setEducationRequirements($value)\n {\n $this->educationRequirements = $value;\n }", "public function setCustomerUsageLimit($usage_limit_customer);", "public function setUpgradeEligibleDeviceCount(?int $value): void {\n $this->getBackingStore()->set('upgradeEligibleDeviceCount', $value);\n }", "public function getDeviceEnrollmentLimit(): ?int {\n $val = $this->getBackingStore()->get('deviceEnrollmentLimit');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'deviceEnrollmentLimit'\");\n }", "function setLimit(int $limit);", "public function setLimit($limit);", "public function setMaximumAllowedDeviceThreatLevel($val)\n {\n $this->_propDict[\"maximumAllowedDeviceThreatLevel\"] = $val;\n return $this;\n }", "public function setMaxRoomCount($maxRoomCount)\n {\n $this->maxRoomCount = $maxRoomCount;\n }", "public function setLimit($limit)\n {\n $this->limit = (int) $limit;\n }", "public function setLimit(int $limit): void\n {\n $this->limit = $limit;\n }", "public function setLimit(int $limit): void\n {\n $this->limit = $limit;\n }", "public function setItemLimit($limit)\n {\n $this->_customItemLimit = (int)$limit;\n }", "public function setLimit($limit)\n {\n $this->limit = $limit;\n }", "public function setLimit($limit)\n {\n $this->limit = $limit;\n }", "public function setAadDeviceId(?string $value): void {\n $this->getBackingStore()->set('aadDeviceId', $value);\n }", "public function setLimit( $limit ) {\n\t\twfDebugLog( 'PeriodicRelatedChanges', __METHOD__ );\n\t\t$this->limit = $limit;\n\t}", "public function deviceEnrollmentConfigurations(): DeviceEnrollmentConfigurationsRequestBuilder {\n return new DeviceEnrollmentConfigurationsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function setLimit($limit) {\n\t\t$this->limit = $limit;\n\t}", "public function setLimit($numLimit);", "public function _setLimit($limit)\r\n {\r\n $this->limit = $limit;\r\n }", "public function setEvalueLimitUser($evalueLimitUser){ $this->evalueLimitUser=$evalueLimitUser; }", "public function setLimit($limit) {\n $this->limit = $this->checkVal($limit);\n }", "public function setMaximumAttendeesCount($val)\n {\n $this->_propDict[\"maximumAttendeesCount\"] = intval($val);\n return $this;\n }", "public function setLimit($value)\n {\n return $this->set('Limit', $value);\n }", "public function setLimit($value)\n {\n return $this->set('Limit', $value);\n }", "public function setMaxItems($maxItems){\r\n $this->maxItems = $maxItems;\r\n }" ]
[ "0.56125426", "0.5292349", "0.5152171", "0.5135956", "0.50143707", "0.500323", "0.49567604", "0.49148083", "0.48879868", "0.4886186", "0.4872535", "0.47436413", "0.47409418", "0.47407225", "0.47407225", "0.47380504", "0.4736307", "0.4736307", "0.47250772", "0.47101754", "0.47013485", "0.4698968", "0.46950412", "0.46893057", "0.4677998", "0.46261823", "0.4611106", "0.46022335", "0.46022335", "0.45711368" ]
0.800118
0
Sets the deviceKeys property value. The deviceKeys property
public function setDeviceKeys(?array $value): void { $this->getBackingStore()->set('deviceKeys', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_keys( $keys )\n {\n $this->keys = $keys;\n }", "public function setApiKeys($value);", "public function setDevices(?array $value): void {\n $this->getBackingStore()->set('devices', $value);\n }", "public function setAppKeys($keys) {\n\t\t$this->appKey = $keys->app;\n\t\t$this->appSecret = $keys->secret;\n\t}", "public function setRegisteredDevices(?array $value): void {\n $this->getBackingStore()->set('registeredDevices', $value);\n }", "public static function setKey($keys){\n\t\tforeach($keys as $key => $value){\n\t\t\t$_SESSION[$key] = $value;\n\t\t}\n\t}", "public function setOwnedDevices(?array $value): void {\n $this->getBackingStore()->set('ownedDevices', $value);\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setMediaKeys(array $mediaKeys) : self\n {\n $this->initialized['mediaKeys'] = true;\n $this->mediaKeys = $mediaKeys;\n return $this;\n }", "public function setSecretKeys(array $secretKeys)\n {\n $this->MAC = $secretKeys['MAC'];\n $this->IV = $secretKeys['IV'];\n $this->Key = $secretKeys['Key'];\n }", "protected function writeUidsToKeys() {\r\n\t\t$this->writePropertyToKey('uid');\r\n\t}", "public abstract function changeKeys(array $keys);", "protected function setKeys()\n {\n $this->publicKey = openssl_pkey_get_public('file://'.$this->config->get('saderat.public-key'));\n $this->privateKey = openssl_pkey_get_private('file://'.$this->config->get('saderat.private-key'));\n }", "public function setManagedDevices($val)\n {\n $this->_propDict[\"managedDevices\"] = $val;\n return $this;\n }", "function setPublicKeys($publicKeys) {\n\t\t$this->m_publicKeys = $publicKeys;\n\t}", "public function setDevkey($key='')\n {\n $this->devkey = $key;\n $this->client->setDeveloperKey($key);\n }", "public function keysSet();", "public function putKeys($keys){\n $this->keys = null;\n $this->put($keys);\n $this->keys = $keys;\n }", "public function setDeviceEnrollmentConfigurations(?array $value): void {\n $this->getBackingStore()->set('deviceEnrollmentConfigurations', $value);\n }", "public function setKeys(string $client_key,string $secret_key): void {\n $this->client_key = $client_key;\n $this->secret_key = $secret_key;\n }", "public function setMultiple($key);", "public function setDeviceAppManagementTasks(?array $value): void {\n $this->getBackingStore()->set('deviceAppManagementTasks', $value);\n }", "public function setDevice($device){\n\t\t$this->device = $device;\n\t}", "public function setPrimaryKey($keys)\n {\n $this->setArcucustid($keys[0]);\n $this->setArstshipid($keys[1]);\n }", "public function setPrimaryKey($keys)\n {\n $this->setReapCActividad($keys[0]);\n $this->setReapNumeroDictacion($keys[1]);\n $this->setReapCEvaluacion($keys[2]);\n $this->setReapNumeroEvaluacion($keys[3]);\n $this->setReapCTrabajador($keys[4]);\n $this->setReapCPregunta($keys[5]);\n }", "protected function updateKeys()\n {\n $this->positionKeys = array_keys($this->data);\n }", "public function setDrives(?array $value): void {\n $this->getBackingStore()->set('drives', $value);\n }" ]
[ "0.6206685", "0.5819974", "0.5725823", "0.56265134", "0.5533098", "0.5373294", "0.53316116", "0.5299415", "0.5299415", "0.52744144", "0.52744144", "0.5253133", "0.5178856", "0.5131081", "0.5129729", "0.51246643", "0.5117175", "0.5041338", "0.5009873", "0.5008296", "0.5001028", "0.49962446", "0.48840183", "0.48489457", "0.48431852", "0.48405352", "0.48237944", "0.4819433", "0.48089015", "0.4797544" ]
0.72797406
0
Sets the deviceManagementTroubleshootingEvents property value. The list of troubleshooting events for this user.
public function setDeviceManagementTroubleshootingEvents(?array $value): void { $this->getBackingStore()->set('deviceManagementTroubleshootingEvents', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMobileAppTroubleshootingEvents(?array $value): void {\n $this->getBackingStore()->set('mobileAppTroubleshootingEvents', $value);\n }", "public function getDeviceManagementTroubleshootingEvents(): ?array {\n $val = $this->getBackingStore()->get('deviceManagementTroubleshootingEvents');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DeviceManagementTroubleshootingEvent::class);\n /** @var array<DeviceManagementTroubleshootingEvent>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'deviceManagementTroubleshootingEvents'\");\n }", "public function getMobileAppTroubleshootingEvents(): ?array {\n $val = $this->getBackingStore()->get('mobileAppTroubleshootingEvents');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, MobileAppTroubleshootingEvent::class);\n /** @var array<MobileAppTroubleshootingEvent>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mobileAppTroubleshootingEvents'\");\n }", "public function setEvents($events) {\n $this->events = $events;\n }", "public function mobileAppTroubleshootingEvents(): MobileAppTroubleshootingEventsRequestBuilder {\n return new MobileAppTroubleshootingEventsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function setDebtRecoveryEventList($value)\n {\n if (!$this->_isNumericArray($value)) {\n $value = array ($value);\n }\n $this->_fields['DebtRecoveryEventList']['FieldValue'] = $value;\n return $this;\n }", "public function setDeviceAppManagementTasks(?array $value): void {\n $this->getBackingStore()->set('deviceAppManagementTasks', $value);\n }", "public function setEvents(?array $value): void {\n $this->getBackingStore()->set('events', $value);\n }", "public function setEvents(?array $value): void {\n $this->getBackingStore()->set('events', $value);\n }", "public function setEventType($value)\n {\n $this->setProperty(\"EventType\", $value, true);\n }", "public function setDeviceEnrollmentConfigurations(?array $value): void {\n $this->getBackingStore()->set('deviceEnrollmentConfigurations', $value);\n }", "public function setEvents($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\AIPlatform\\V1\\Event::class);\n $this->events = $arr;\n\n return $this;\n }", "public function setTechnicalNotificationMails(?array $value): void {\n $this->getBackingStore()->set('technicalNotificationMails', $value);\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setEventsManager($eventsManager){ }", "public function setEventData(array $data);", "public function setSecurityComplianceNotificationMails(?array $value): void {\n $this->getBackingStore()->set('securityComplianceNotificationMails', $value);\n }", "protected function resetEventErrors()\n {\n $this->eventErrors = [];\n }", "public function set_event_type($value)\n {\n\n // Sanitize and validate value\n $value = $this->sanitize_event_type($value);\n\n // Set property\n $this->set_property('event_type', $value);\n }", "public function setNotifications(?array $value): void {\n $this->getBackingStore()->set('notifications', $value);\n }", "public function checkSystemEventDescriptions(){\n /* don't know where the hell these are (if anywhere)\n There's no hover help for them in the Manager */\n }", "public function setEvent($value);", "function SetEvent(&$event)\n\t{\n\t\t$this->eventId = $event->eventId;\n\t}", "public function __set($property, $value)\r\n\t\t{\r\n\t\t\t$prop = \\substr($lprop = \\strtolower($property), 2);\r\n\r\n\t\t\tif(\\substr($lprop, 0, 2) == 'on')\r\n\t\t\t{\r\n\t\t\t\tif(\\is_callable($value))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->eh_ptr->register($prop, $value);\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$this->eh_ptr->unregister($prop);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public function set_error_details($value)\n {\n\n // Sanitize and validate value\n $value = $this->sanitize_error_details($value);\n\n // Set property\n $this->set_property('error_details', $value);\n }", "public function troubleshootingEvents(): TroubleshootingEventsRequestBuilder {\n return new TroubleshootingEventsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function setAllowTestDevices($value)\n {\n $this->_allowTestDevices = $value;\n }", "public function setRegisteredDevices(?array $value): void {\n $this->getBackingStore()->set('registeredDevices', $value);\n }", "public function setEventId($value)\n {\n return $this->set(self::EVENT_ID, $value);\n }" ]
[ "0.6575085", "0.5508503", "0.50953084", "0.47661662", "0.45461723", "0.44418162", "0.4418399", "0.4385036", "0.4385036", "0.42503992", "0.42401975", "0.41918027", "0.4169429", "0.41511664", "0.41511664", "0.41488984", "0.4127644", "0.41258907", "0.4124195", "0.39952043", "0.39785305", "0.39473283", "0.3928354", "0.3924618", "0.39177263", "0.39142135", "0.38820997", "0.38737482", "0.38468206", "0.38445768" ]
0.72107667
0
Sets the devices property value. The devices property
public function setDevices(?array $value): void { $this->getBackingStore()->set('devices', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setManagedDevices($val)\n {\n $this->_propDict[\"managedDevices\"] = $val;\n return $this;\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setDevice($value)\n {\n return $this->set(self::DEVICE, $value);\n }", "public function setRegisteredDevices(?array $value): void {\n $this->getBackingStore()->set('registeredDevices', $value);\n }", "public function setDevice($device){\n\t\t$this->device = $device;\n\t}", "public function setOwnedDevices(?array $value): void {\n $this->getBackingStore()->set('ownedDevices', $value);\n }", "public function setDeviceName(?string $value): void {\n $this->getBackingStore()->set('deviceName', $value);\n }", "public function setDeviceName(?string $value): void {\n $this->getBackingStore()->set('deviceName', $value);\n }", "public function setAllowTestDevices($value)\n {\n $this->_allowTestDevices = $value;\n }", "public function setDeviceId(?string $value): void {\n $this->getBackingStore()->set('deviceId', $value);\n }", "public function getDevices()\n {\n return $this->devices;\n }", "public function setDeviceId($val)\n {\n $this->_propDict[\"deviceId\"] = $val;\n return $this;\n }", "public function setDeviceId($val)\n {\n $this->_propDict[\"deviceId\"] = $val;\n return $this;\n }", "public function setDeviceId($value)\n {\n return $this->set(self::DEVICEID, $value);\n }", "public function setPlatform(?DeviceManagementConfigurationPlatforms $value): void {\n $this->getBackingStore()->set('platform', $value);\n }", "public function setDeviceKeys(?array $value): void {\n $this->getBackingStore()->set('deviceKeys', $value);\n }", "public function setDeviceManufacturer(?string $value): void {\n $this->getBackingStore()->set('deviceManufacturer', $value);\n }", "public function setDevice(Mobads_Apiv5_Device $value)\n {\n return $this->set(self::DEVICE, $value);\n }", "public function devices () {\n return $this->hasMany('App\\Device');\n }", "public function setAllowedIosDeviceModels(?string $value): void {\n $this->getBackingStore()->set('allowedIosDeviceModels', $value);\n }", "public function setDeviceCount($val)\n {\n $this->_propDict[\"deviceCount\"] = intval($val);\n return $this;\n }", "public function setDeviceCount($val)\n {\n $this->_propDict[\"deviceCount\"] = $val;\n return $this;\n }", "public function setDeviceType(?DeviceType $value): void {\n $this->getBackingStore()->set('deviceType', $value);\n }", "public function getDevices(): array\n {\n return $this->devices;\n }", "public function setDeviceName($value)\n {\n return $this->set(self::DEVICENAME, $value);\n }", "public function setDeviceId($deviceId);", "public function setDeviceModel(?string $value): void {\n $this->getBackingStore()->set('deviceModel', $value);\n }", "public function setDeviceModel(?string $value): void {\n $this->getBackingStore()->set('deviceModel', $value);\n }", "public function setDeviceCount(?int $value): void {\n $this->getBackingStore()->set('deviceCount', $value);\n }" ]
[ "0.68109465", "0.6770058", "0.6770058", "0.6689214", "0.66289353", "0.65799516", "0.64262444", "0.62919426", "0.62919426", "0.62504274", "0.62103397", "0.6186855", "0.61192155", "0.61192155", "0.58967656", "0.5887428", "0.5878811", "0.58774346", "0.58604723", "0.5849492", "0.58111936", "0.58062404", "0.58040327", "0.5790417", "0.5789527", "0.5784068", "0.57594305", "0.5754333", "0.5754333", "0.5724276" ]
0.7635063
0
Sets the directReports property value. The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Readonly. Nullable. Supports $expand.
public function setDirectReports(?array $value): void { $this->getBackingStore()->set('directReports', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirectReports(): ?array {\n $val = $this->getBackingStore()->get('directReports');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DirectoryObject::class);\n /** @var array<DirectoryObject>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'directReports'\");\n }", "public function reports() {\n \t$user = $this->Users->get($this->Auth->user('id'), ['contain' => ['DiscussionReports', 'ProjectReports', 'UserReports', 'TicketReports']]);\n \t$this->set('user', $user);\n \t$this->set('_serialize', ['user']);\n }", "function admin_userReports()\n\t{\n\t\t$this->User->recursive = 0;\n\t\t$rol = $this->data['User']['role_id'];\t\n\t\tforeach($this->data['User'] as $indice =>$valor)\n\t\t{\n\t\t\tif($valor==1)\n\t\t\t{\n\t\t\t\t$array[] = $indice;\n\t\t\t}\n\t\t}\n\t\t$reporte = $this->User->find('all', array('fields'=>$array,'conditions'=>array('User.role_id'=>$rol)));\n\t\t$this->set(compact('reporte'));\n\t}", "public function reports()\n {\n return $this->hasMany(Report::class, 'user_id');\n }", "public function getReports()\n {\n return $this->hasMany(Report::className(), ['doctor_id' => 'doctor_id']);\n }", "public function getIncidentReportsFiled()\r\n {\r\n return $this->_incidentReportsFiled;\r\n }", "public function superadmin_reports_permission() {\n $loginuser = $this->Session->read('UserAuth.User.id');\n /* task 2145 */\n if ($loginuser != 2 && $loginuser != 1266) {\n echo \"Your are not eligible to open this.\";\n die;\n }\n\n // get report names #2244\n $this->Reportlist->recursive = 0;\n $reportlist = $this->Reportlist->find('list',array('fields'=>array('id','report_name')));\n $reportlists = $reportlist;\n $reportlists['all'] = \"All Report Permission\"; \n $this->set('reportlist',$reportlists);\n \n // get group names\n $userGroups = $this->UserGroup->find('list');\n $this->set('role', $userGroups);\n \n // get user list\n $userlist = $this->User->find('list', array('fields' => array('id','user_Name'),'order'=>array('user_Name ASC')));\n $this->set('userlist', $userlist); \n \n \n if ($this->request->is('post')) {\n if (is_array($this->request->data['UserReport']['id'])) {\n \t$report = $this->request->data['UserReport']['reportlist_id'];\n \t$this->ReportPermission->deleteAll(array('ReportPermission.reportlist_id'=>$report),false);\n // now assign permission to again\n foreach ($this->request->data['UserReport']['id'] as $userid) {\n \t// insert if permission not have \t\n \tif($report=='all'){ \t\t\n \t\tforeach ($reportlist as $report_id => $report_name){\n \t\t\t$this->ReportPermission->deleteAll(array('ReportPermission.user_id'=>$userid,'ReportPermission.reportlist_id'=>$report_id),false);\n \t\t\t$this->ReportPermission->create();\n \t\t\t$setReportPermission['ReportPermission']['user_id'] = $userid;\n \t\t\t$setReportPermission['ReportPermission']['reportlist_id'] = $report_id;\n \t\t\t$this->ReportPermission->save($setReportPermission);\n \t\t}\n \t}else{\n\t \t$this->ReportPermission->create();\n\t $setReportPermission['ReportPermission']['user_id'] = $userid;\n\t $setReportPermission['ReportPermission']['reportlist_id'] = $report;\n\t $this->ReportPermission->save($setReportPermission); \n \t} \n }\n $this->Session->write('popup', 'Permission assigned successfully.');\n $this->redirect(array('controller' => 'users', 'action' => \"reports_permission/message:success\"));\n } else {\n $this->Session->write('popup', 'Please select users to assign permission.');\n $this->redirect(array('controller' => 'users', 'action' => \"reports_permission/message:failure\"));\n }\n } \n }", "public function reports()\n {\n $reports = Reports::join('users', 'users.id', '=', 'reports.assigned_doctor_id')->orderBy('reports.id', 'DESC')->paginate(5);\n\n $data =\n [\n 'reports' => $reports\n ];\n\n return view('frontend.management.all-reports', $data);\n }", "public function setIncidentReportsFiled($incidentReportsFiled): void\r\n {\r\n $this->_incidentReportsFiled = $incidentReportsFiled;\r\n }", "public function view_reports(User $user){\n $is_report_owner = is_null(WorkshopReport::where('owner_user_id',$user->id)->select('id')->first())?false:true;\n// $has_report_perm = is_null(ModulePermission::where('user_id',$user->id)->where('permission','report')->select('id')->first())?false:true;\n $has_permission = is_null(WorkshopReport::whereJsonContains('permissions',$user->id)->select('id')->first())?false:true;\n if(in_array('run_workshop_reports',$user->user_permissions)\n || in_array('manage_workshop_reports',$user->user_permissions)\n || $is_report_owner\n || $has_permission\n// || $has_report_perm\n ){\n return true;\n }\n }", "public function index(Request $request) {\n // Report::whereIn('project_user_id', ProjectUser::whereIn('project_id',\n // User::find(Auth::user()->id)\n // ->projects()\n // ->get()\n // ->pluck('id'))\n // ->get()->pluck('id'))\n // ->get();\n // dd(Report::whereIn('project_user_id', ProjectUser::whereIn('project_id',\n // User::find(Auth::user()->id)\n // ->projects()\n // ->get()\n // ->pluck('id'))\n // ->get()->pluck('id'))\n // ->get());\n // dd(Report::whereIn('id', User::find(Auth::user()->id)\n // ));\n if(isset($request->project_id)) {\n $reports = Project::find($request->project_id)\n ->reports()\n ->get();\n }\n else if (isset($request->user_id)) {\n $reports = User::find($request->user_id)\n ->reports()\n ->get();\n }\n else {\n $reports = Report::whereIn('project_user_id',\n ProjectUser::whereIn('project_id',\n User::find(Auth::user()->id)\n ->manage()\n ->get()\n ->pluck('id'))\n ->get()->pluck('id'))\n ->where('state', Report::getReportWaitting())\n ->get();\n // dd(Project::find($request->project_id)->reports()->get());\n\n // dd($reports->first()->project_user->user);\n }\n\n\n $projects = Project::where('managed', Auth::user()->id)->get();\n return response()->json([\n 'reports' => $reports,\n 'projects' => $projects,\n ], 200);\n // return view(\"role/manager/report/index\");\n }", "public function reports()\n\t{\n\t\treturn $this->hasMany('App\\Report');\n\t}", "public function reports()\n {\n return $this->morphMany(Report::class, 'reported');\n }", "public function getReports();", "public function setPermissionsRunReports($permissionsRunReports)\n {\n $this->permissionsRunReports = $permissionsRunReports;\n return $this;\n }", "public function getVisibleReportsForUser(array $reports, array $viewingUser)\n\t{\n\t\t/* @var $commentModel XenGallery_Model_Comment */\n\t\t$commentModel = XenForo_Model::create('XenGallery_Model_Comment');\n\n\t\tforeach ($reports AS $reportId => $report)\n\t\t{\n\t\t\t$content = unserialize($report['content_info']);\n\n\t\t\tif (!$commentModel->canManageReportedComment($content))\n\t\t\t{\n\t\t\t\tunset($reports[$reportId]);\n\t\t\t}\n\t\t}\n\n\t\treturn $reports;\n\t}", "public function ScriptReports()\n\t{\n\t\treturn $this->hasOne('App\\Models\\ScriptReport','user_id','id');\n\t}", "public function getReports()\n {\n return $this->reportRepo->getReport();\n }", "function Reports($reportid=\"\")\n\t{\n\t\tglobal $adb,$current_user,$theme,$mod_strings;\n\t\t$this->initListOfModules();\n\t\tif($reportid != \"\")\n\t\t{\n\t\t\t// Lookup information in cache first\n\t\t\t$cachedInfo = VTCacheUtils::lookupReport_Info($current_user->id, $reportid);\n\t\t\t$subordinate_users = VTCacheUtils::lookupReport_SubordinateUsers($reportid);\n\t\t\t\n\t\t\t$reportModel = Reports_Record_Model::getCleanInstance($reportid);\n\t\t\t$sharingType = $reportModel->get('sharingtype');\n\t\t\t\n\t\t\tif($cachedInfo === false) {\n\t\t\t\t$ssql = \"select vtiger_reportmodules.*,vtiger_report.* from vtiger_report inner join vtiger_reportmodules on vtiger_report.reportid = vtiger_reportmodules.reportmodulesid\";\n\t\t\t\t$ssql .= \" where vtiger_report.reportid = ?\";\n\t\t\t\t$params = array($reportid);\n\n\t\t\t\trequire_once('include/utils/GetUserGroups.php');\n\t\t\t\trequire('user_privileges/user_privileges_'.$current_user->id.'.php');\n\t\t\t\t$userGroups = new GetUserGroups();\n\t\t\t\t$userGroups->getAllUserGroups($current_user->id);\n\t\t\t\t$user_groups = $userGroups->user_groups;\n\t\t\t\tif(!empty($user_groups) && $sharingType == 'Private'){\n\t\t\t\t\t$user_group_query = \" (shareid IN (\".generateQuestionMarks($user_groups).\") AND setype='groups') OR\";\n\t\t\t\t\tarray_push($params, $user_groups);\n\t\t\t\t}\n\n\t\t\t\t$non_admin_query = \" vtiger_report.reportid IN (SELECT reportid from vtiger_reportsharing WHERE $user_group_query (shareid=? AND setype='users'))\";\n\t\t\t\tif($sharingType == 'Private'){\n\t\t\t\t\t$ssql .= \" and (( (\".$non_admin_query.\") or vtiger_report.sharingtype='Public' or vtiger_report.owner = ? or vtiger_report.owner in(select vtiger_user2role.userid from vtiger_user2role inner join vtiger_users on vtiger_users.id=vtiger_user2role.userid inner join vtiger_role on vtiger_role.roleid=vtiger_user2role.roleid where vtiger_role.parentrole like '\".$current_user_parent_role_seq.\"::%'))\";\n\t\t\t\t\tarray_push($params, $current_user->id);\n\t\t\t\t\tarray_push($params, $current_user->id);\n\t\t\t\t}\n\n\t\t\t\t$query = $adb->pquery(\"select userid from vtiger_user2role inner join vtiger_users on vtiger_users.id=vtiger_user2role.userid inner join vtiger_role on vtiger_role.roleid=vtiger_user2role.roleid where vtiger_role.parentrole like '\".$current_user_parent_role_seq.\"::%'\",array());\n\t\t\t\t$subordinate_users = Array();\n\t\t\t\tfor($i=0;$i<$adb->num_rows($query);$i++){\n\t\t\t\t\t$subordinate_users[] = $adb->query_result($query,$i,'userid');\n\t\t\t\t}\n\n\t\t\t\t// Update subordinate user information for re-use\n\t\t\t\tVTCacheUtils::updateReport_SubordinateUsers($reportid, $subordinate_users);\n\t\t\t\t\n\t\t\t\t//Report sharing for vtiger7\n\t\t\t\t$queryObj = new stdClass();\n\t\t\t\t$queryObj->query = $ssql;\n\t\t\t\t$queryObj->queryParams = $params;\n\t\t\t\t$queryObj = self::getReportSharingQuery($queryObj, $sharingType);\n\t\t\t\t\n\t\t\t\t$result = $adb->pquery($queryObj->query, $queryObj->queryParams);\n\t\t\t\tif($result && $adb->num_rows($result)) {\n\t\t\t\t\t$reportmodulesrow = $adb->fetch_array($result);\n\n\t\t\t\t\t// Update information in cache now\n\t\t\t\t\tVTCacheUtils::updateReport_Info(\n\t\t\t\t\t\t$current_user->id, $reportid, $reportmodulesrow[\"primarymodule\"],\n\t\t\t\t\t\t$reportmodulesrow[\"secondarymodules\"], $reportmodulesrow[\"reporttype\"],\n\t\t\t\t\t\t$reportmodulesrow[\"reportname\"], $reportmodulesrow[\"description\"],\n\t\t\t\t\t\t$reportmodulesrow[\"folderid\"], $reportmodulesrow[\"owner\"]\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Re-look at cache to maintain code-consistency below\n\t\t\t\t$cachedInfo = VTCacheUtils::lookupReport_Info($current_user->id, $reportid);\n\t\t\t}\n\n\t\t\tif($cachedInfo) {\n\t\t\t\t$this->primodule = $cachedInfo[\"primarymodule\"];\n\t\t\t\t$this->secmodule = $cachedInfo[\"secondarymodules\"];\n\t\t\t\t$this->reporttype = $cachedInfo[\"reporttype\"];\n\t\t\t\t$this->reportname = decode_html($cachedInfo[\"reportname\"]);\n\t\t\t\t$this->reportdescription = decode_html($cachedInfo[\"description\"]);\n\t\t\t\t$this->folderid = $cachedInfo[\"folderid\"];\n\t\t\t\tif($is_admin==true || in_array($cachedInfo[\"owner\"],$subordinate_users) || $cachedInfo[\"owner\"]==$current_user->id)\n\t\t\t\t\t$this->is_editable = 'true';\n\t\t\t\telse\n\t\t\t\t\t$this->is_editable = 'false';\n\t\t\t} \n\t\t\t}\n\t}", "public function setPermissionsEditMyReports($permissionsEditMyReports)\n {\n $this->permissionsEditMyReports = $permissionsEditMyReports;\n return $this;\n }", "public function reports()\n {\n return $this->hasMany('App\\Report');\n }", "public static function get_all_accessible_reports()\n\t{\n\t\t$user = Auth::instance()->get_user();\n $role = ORM::factory('Roles', $user['role_id']);\n if($role->master_group || in_array($role->id, ['1', '2'])){\n $reports = DB::select(DB::expr('DISTINCT ' . self::MAIN_TABLE.'.id'),self::MAIN_TABLE.'.name',self::MAIN_TABLE.'.category',self::MAIN_TABLE.'.dashboard',self::MAIN_TABLE.'.date_created',self::MAIN_TABLE.'.date_modified',array(self::CATEGORIES_TABLE.'.name','category_name'),array(self::FAVORITES_TABLE.'.user_id','is_favorite'))\n ->from(self::MAIN_TABLE)\n ->join(self::CATEGORIES_TABLE,'LEFT')->on(self::CATEGORIES_TABLE.'.id','=',self::MAIN_TABLE.'.category')\n ->join(self::FAVORITES_TABLE,'LEFT')->on(self::FAVORITES_TABLE.'.report_id', '=', self::MAIN_TABLE.'.id')->on(self::FAVORITES_TABLE.'.user_id', '=', DB::expr($user['id']))\n ->join(self::SHARING_TABLE,'LEFT')->on(self::SHARING_TABLE.'.report_id', '=', self::MAIN_TABLE.'.id')\n ->where(self::MAIN_TABLE.'.delete','=',0)\n ->order_by(self::MAIN_TABLE.'.date_modified','DESC')\n ->execute()->as_array();\n } else {\n $reports = DB::select(DB::expr('DISTINCT ' . self::MAIN_TABLE.'.id'),self::MAIN_TABLE.'.name',self::MAIN_TABLE.'.category',self::MAIN_TABLE.'.dashboard',self::MAIN_TABLE.'.date_created',self::MAIN_TABLE.'.date_modified',array(self::CATEGORIES_TABLE.'.name','category_name'),array(self::FAVORITES_TABLE.'.user_id','is_favorite'))\n ->from(self::MAIN_TABLE)\n ->join(self::CATEGORIES_TABLE,'LEFT')->on(self::CATEGORIES_TABLE.'.id','=',self::MAIN_TABLE.'.category')\n ->join(self::FAVORITES_TABLE,'LEFT')->on(self::FAVORITES_TABLE.'.report_id', '=', self::MAIN_TABLE.'.id')->on(self::FAVORITES_TABLE.'.user_id', '=', DB::expr($user['id']))\n ->join(self::SHARING_TABLE,'INNER')->on(self::SHARING_TABLE.'.report_id', '=', self::MAIN_TABLE.'.id')\n ->where(self::MAIN_TABLE.'.delete','=',0)\n ->where_open()\n ->where(self::SHARING_TABLE.'.group_id', '=', null)\n ->or_where(self::SHARING_TABLE.'.group_id', '=', $user['role_id'])\n ->where_close()\n ->order_by(self::MAIN_TABLE.'.date_modified','DESC')\n ->execute()->as_array();\n }\n\n return $reports;\n\t}", "public function admin_export_direct_sales() {\r\n\t\t$this->autoRender = false;\r\n\t\t$Searchdata = json_decode($this->data['Report']['data']);\r\n\t\t$searchVal = $Searchdata->oSearch->sSearch;\r\n\t\t$sortFields = array(\r\n\t\t\t'User.name',\r\n\t\t\t'Operator.name',\r\n\t\t\t'Recharge.phone_number',\r\n\t\t\t'Recharge.amount',\r\n\t\t\t'Recharge.tax_amount',\r\n\t\t\t'Recharge.total_amount',\r\n\t\t\t'Recharge.recharge_date'\r\n\t\t);\r\n\t\t$sortBy = $sortFields[$Searchdata->aaSorting[0][0]];\r\n\t\t$Sort = $Searchdata->aaSorting[0][1];\r\n\t\t\r\n\t\tif ($sortBy != '' && $Sort != '') {\r\n\t\t\t$orderBY = $sortBy . ' ' . $Sort;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$orderBY = 'Recharge.recharge_date asc';\r\n\t\t}\r\n\r\n\t\t// Set conditions\r\n\t\t$condition = array(\r\n\t\t\t'Recharge.status' => 1,\r\n\t\t\t'Recharge.payment_method' => array(1, 2)\r\n\t\t);\r\n\r\n\t\t// Set to and from date\r\n\t\t$fromDate = @$_REQUEST['from_date'];\r\n\t\t$fromDateArr = explode('-', $fromDate);\r\n\t\t$toDate = @$_REQUEST['to_date'];\r\n\t\t$toDateArr = explode('-', $toDate);\r\n\r\n\t\t// Set ´mobile operator\r\n\t\t$operator = @$_REQUEST['operator'];\r\n\t\t\r\n\t\tif ($fromDate != '' &&\r\n\t\t\t$toDate != '' &&\r\n\t\t\tcheckdate($fromDateArr[1], $fromDateArr[2], $fromDateArr[0]) &&\r\n\t\t\tcheckdate($toDateArr[1], $toDateArr[2], $toDateArr[0])) {\r\n\t\t\t\t$condition = array(\r\n\t\t\t\t\t'Recharge.status' => 1,\r\n\t\t\t\t\t'Recharge.payment_method' => array(1, 2),\r\n\t\t\t\t\t\"DATE(recharge_date) BETWEEN \\\"\" . $fromDate . \"\\\" AND \\\"\" . $toDate . \"\\\"\");\r\n\t\t}\r\n\t\t\r\n\t\tif ($operator != '') {\r\n\t\t\t$condition['Operator.id'] = $operator;\r\n\t\t}\r\n\t\t\r\n\t\tif (@$_REQUEST['payment_method'] != '') {\r\n\t\t\t$condition['Recharge.payment_method'] = $_REQUEST['payment_method'];\r\n\t\t}\r\n\t\t\r\n\t\tif (@$searchVal != '') {\r\n\t\t\t$condition[] = \r\n\t\t\t\t\"(User.name LIKE (\\\"%\" .\r\n\t\t\t\t\t$searchVal .\r\n\t\t\t\t\t\"%\\\") OR Operator.name LIKE (\\\"%\" .\r\n\t\t\t\t\t$searchVal . \"%\\\") OR Recharge.mobile_no LIKE (\\\"%\" .\r\n\t\t\t\t\t$searchVal . \"%\\\") OR Recharge.amount LIKE (\\\"%\" .\r\n\t\t\t\t\t$searchVal . \"%\\\") OR Recharge.tax_amount LIKE (\\\"%\" .\r\n\t\t\t\t\t$searchVal . \"%\\\") OR Recharge.total_amount LIKE (\\\"%\" .\r\n\t\t\t\t\t$searchVal . \"%\\\") OR DATE_FORMAT(recharge_date,\\\"%d %b, %Y\\\") LIKE (\\\"%\" .\r\n\t\t\t\t\t$searchVal . \"%\\\"))\";\r\n\t\t}\r\n\r\n\t\t// Set user type\r\n\t\t$condition['Recharge.user_type'] = 1;\r\n\r\n\t\t// Find data in recharges table\r\n\t\t$data = $this->Recharge->find(\r\n\t\t\t'all',\r\n\t\t\tarray(\r\n\t\t\t\t'conditions' => $condition,\r\n\t\t\t\t'fields' => array(\r\n\t\t\t\t\t'User.name',\r\n\t\t\t\t\t'User.id',\r\n\t\t\t\t\t'User.delete_status',\r\n\t\t\t\t\t'Operator.name',\r\n\t\t\t\t\t'Recharge.*'\r\n\t\t\t\t),\r\n\t\t\t\t'order' => $orderBY,\r\n\t\t\t\t'joins' => array(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'table' => 'operators',\r\n\t\t\t\t\t\t'alias' => 'Operator',\r\n\t\t\t\t\t\t'type' => 'INNER',\r\n\t\t\t\t\t\t'conditions' => array('Recharge.operator=Operator.id')\r\n\t\t\t\t\t),\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'table' => 'users',\r\n\t\t\t\t\t\t'alias' => 'User',\r\n\t\t\t\t\t\t'type' => 'INNER',\r\n\t\t\t\t\t\t'conditions' => array('Recharge.user_id=User.id')\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$content = '';\r\n\t\t\r\n\t\t// Generate column headers\r\n\t\tif (!empty($data)) {\r\n\t\t\t$content .=\r\n\t\t\t\t__(\"User,Mobile Operator,Phone Number,Payment Method,Recharge Amount,\") .\r\n\t\t\t\t__(\"Taxes,Total Amount,Points Awarded,Date & Time,X,Y\") .\r\n\t\t\t\t\"\\n\";\r\n\r\n\t\t\t// Fill rows with data\r\n\t\t\tforeach($data as $sale) {\r\n\r\n\t\t\t\t// Translate Payment method\r\n\t\t\t\tif ($sale['Recharge']['payment_method'] == 1) {\r\n\t\t\t\t\t$paymentMethod = __('Prepaid Balance');\r\n\t\t\t\t} else if ($sale['Recharge']['payment_method'] == 2) {\r\n\t\t\t\t\t$paymentMethod = __('Credit Card');\r\n\t\t\t\t} else if ($sale['Recharge']['payment_method'] == 3) {\r\n\t\t\t\t\t$paymentMethod = __('Points');\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$content .=\r\n\t\t\t\t\t$sale['User']['name'] . \",\" .\r\n\t\t\t\t\t$sale['Operator']['name'] . \",\" .\r\n\t\t\t\t\t$sale['Recharge']['phone_number'] . \",\" .\r\n\t\t\t\t\t$paymentMethod . \",\" .\r\n\t\t\t\t\t$sale['Recharge']['amount'] . \",\" .\r\n\t\t\t\t\t$sale['Recharge']['tax_amount'] . \",\" .\r\n\t\t\t\t\t$sale['Recharge']['total_amount'] . \",\" .\r\n\t\t\t\t\t$sale['Recharge']['points'] . \",\" .\r\n\t\t\t\t\t$sale['Recharge']['recharge_date'] . \",\" .\r\n\t\t\t\t\t$sale['Recharge']['x'] . \",\" .\r\n\t\t\t\t\t$sale['Recharge']['y'] .\r\n\t\t\t\t\t\"\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Generate new file\r\n\t\t$path = realpath('../../app/webroot/uploads/') . '/';\r\n\t\t$FileName = 'DirectSales.csv';\r\n\t\t$NewFile = $path . $FileName;\r\n\t\tfile_put_contents($NewFile, $content);\r\n\t\theader('Content-Type: application/csv'); \r\n\t\theader('Content-Disposition: attachment; filename=\"' . $FileName . '\"'); \r\n\t\treadfile($NewFile);\r\n\t\texit();\t\r\n\t}", "public function filterReports()\n {\n if (isset($_GET[\"reports\"]) && !empty($_GET[\"reports\"])) {\n $reports = $_GET[\"reports\"];\n // jika jenis laporan yang dipilih penjualan\n if ($reports == '1') {\n\n // cek apakah user sudah memfilter laporan\n if (isset($_GET[\"filter\"]) && !empty($_GET[\"filter\"])) {\n $filter = $_GET[\"filter\"];\n // jika user memfilter dari bulan\n if ($filter == \"1\") {\n $this->_printTransaksiReportByMonth();\n } else {\n $this->_printTransaksiReportByYear();\n }\n }\n } else {\n // cek apakah user sudah memfilter laporan\n if (isset($_GET[\"filter\"]) && !empty($_GET[\"filter\"])) {\n $filter = $_GET[\"filter\"];\n // jika user memfilter dari bulan\n if ($filter == \"1\") {\n $this->_printGroomingReportsByMonth();\n } else {\n $this->_printGroomingReportsByYear();\n }\n }\n }\n }\n }", "public function getRelatedReports()\n {\n return array();\n }", "public function hasCurrentUserReportsPermission() {\t\t$arr_orgus_perm_empl = ilObjOrgUnitTree::_getInstance()->getOrgusWhereUserHasPermissionForOperation('view_learning_progress');\n\t\tif (count($arr_orgus_perm_empl) > 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\t//Reporting Access Rec?\n\t\t$arr_orgus_perm_sup = ilObjOrgUnitTree::_getInstance()->getOrgusWhereUserHasPermissionForOperation('view_learning_progress_rec');\n\t\tif (count($arr_orgus_perm_sup) > 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$global_roles = $this->rbacreview->assignedGlobalRoles($this->usr->getId());\n\t\t//Administrator\n\t\tif (in_array(2, $global_roles)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function canShowReports() {\n\t\treturn isInRequest(\"show_reports\");\n\t}", "public function getUserReport($report_id, $user_id){\n\t\t$sql = \"SELECT t1.*, t2.firstname, t2.surname, t2.email\n\t\t\t\tFROM user_reports t1\n\t\t\t\t\tLEFT JOIN users t2 ON t1.user_id = t2.id\n\t\t\t\tWHERE t1.report_id = :report_id AND t1.user_id = :user_id\n\t\t\t\tGROUP BY t1.user_id\n\t\t\t\t\";\n\t\treturn $this->_db->select($sql, array(':report_id' => $report_id, ':user_id' => $user_id));\n\t}", "public function __invoke(Report $report)\n {\n if ($id = $this->resolver->resolve()->getUserId()) {\n $report->setUser(['id' => $id]);\n }\n }", "public function getReport(): ActiveQuery {\n\t\treturn $this->hasOne(LeadReport::class, ['id' => 'report_id']);\n\t}" ]
[ "0.56997484", "0.5546161", "0.54270804", "0.5397263", "0.5208351", "0.50151014", "0.50043947", "0.4983304", "0.4877013", "0.4835939", "0.48085064", "0.479527", "0.473243", "0.4717371", "0.46987262", "0.46950632", "0.4682248", "0.4673628", "0.4665597", "0.4659698", "0.46573505", "0.4647339", "0.46389735", "0.46174076", "0.4574465", "0.454379", "0.45398816", "0.45288634", "0.45206577", "0.45181108" ]
0.62874913
0
Sets the drive property value. The user's OneDrive. Readonly.
public function setDrive(?Drive $value): void { $this->getBackingStore()->set('drive', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDrives(?array $value): void {\n $this->getBackingStore()->set('drives', $value);\n }", "protected function setRobot($value=true) { $this->_is_robot = $value; }", "protected function setRobot($value = true)\n {\n $this->_is_robot = $value;\n }", "public function setDeviceName(?string $value): void {\n $this->getBackingStore()->set('deviceName', $value);\n }", "public function setDeviceName(?string $value): void {\n $this->getBackingStore()->set('deviceName', $value);\n }", "public function setManagedDeviceName(?string $value): void {\n $this->getBackingStore()->set('managedDeviceName', $value);\n }", "public function setManagedDeviceName(?string $value): void {\n $this->getBackingStore()->set('managedDeviceName', $value);\n }", "private function startDriveService() {\n $this->driveService = new Google_DriveService($this->driveClient);\n }", "public function setDrive($params, $context)\n {\n $this->validateMethodContext($context, [\"role\" => OMV_ROLE_ADMINISTRATOR]);\n // Validate the parameters of the RPC service method.\n $this->validateMethodParams($params, \"rpc.snapraid.setdrive\");\n // Prepare the configuration object.\n $object = new \\OMV\\Config\\ConfigObject(\"conf.service.snapraid.drive\");\n // Remove spaces from name\n $params['name'] = str_replace(\" \", \"_\", $params['name']);\n // Check that data drive is not also a parity drive\n if ( TRUE === $params['data'] && (TRUE === $params['parity'] || TRUE === $params['paritysplit'] )) {\n throw new \\OMV\\Exception(\n gettext(\"A data drive cannot be a parity drive.\")\n );\n }\n if ( TRUE === $params['data'] ) {\n $params['parity'] = false;\n $params['paritynum'] = 1;\n $params['paritysplit'] = false;\n } elseif ( TRUE === $params['parity'] ) {\n $params['data'] = false;\n }\n\n $db = \\OMV\\Config\\Database::getInstance();\n if ($db->exists(\"conf.system.filesystem.mountpoint\", [\n \"operator\" => \"stringEquals\",\n \"arg0\" => \"uuid\",\n \"arg1\" => $params[\"mntentref\"]\n ])) {\n $meObject = $db->get(\"conf.system.filesystem.mountpoint\", $params[\"mntentref\"]);\n // Get the filesystem backend.\n $fsbMngr = \\OMV\\System\\Filesystem\\Backend\\Manager::getInstance();\n $fsbMngr->assertBackendExistsByType($meObject->get(\"type\"));\n $fsb = $fsbMngr->getBackendByType($meObject->get(\"type\"));\n // Add some mount point information:\n $params['path'] = $meObject->get(\"dir\");\n // Get the filesystem implementation.\n $fs = $fsb->getImpl($meObject->get(\"fsname\"));\n if (!is_null($fs) && $fs->exists()) {\n $params['label'] = $fs->getLabel();\n }\n }\n $object->setAssoc($params);\n // Set the configuration object.\n $isNew = $object->isNew();\n $db = \\OMV\\Config\\Database::getInstance();\n if (TRUE === $isNew) {\n // Check uniqueness - Shared folder\n $db->assertIsUnique($object, \"mntentref\");\n $db->assertIsUnique($object, \"name\");\n }\n $db->set($object);\n // Return the configuration object.\n return $object->getAssoc();\n }", "protected function set($alt = false)\n {\n\n if(!$alt)\n {\n $gid = Helper::getDriveId($this->obj['main_link']);\n }\n else\n {\n $gid = Helper::getDriveId($this->obj['alt_link']);\n }\n\n \n\n if(!empty($gid))\n {\n $gdrive = new GDrive($this->db, $this->config);\n $gdrive->setKey($this->obj['slug']);\n $result = $gdrive->get($gid);\n\n if($result !== false)\n {\n if(is_array($result))\n {\n if(empty($this->obj['title']))\n {\n $this->obj['title'] = $result['title'];\n }\n $this->obj['data'] = json_encode($result['data']);\n }\n else\n {\n $this->obj['data'] = '';\n }\n if($this->isEdit() && $this->obj['status'] == 2 && !$alt)\n {\n $this->broken(false);\n }\n \n $this->obj['is_alt'] = $alt ? 1 : 0;\n }\n else\n {\n if($gdrive->hasError())\n {\n $this->error = $gdrive->getError();\n if($this->isEdit() && !$this->isBroken())\n {\n $this->broken();\n }\n\n }\n }\n }\n\n }", "public function set($value)// : void\n {\n $this->value = $value;\n }", "public function getDrive(): ?Drive {\n $val = $this->getBackingStore()->get('drive');\n if (is_null($val) || $val instanceof Drive) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'drive'\");\n }", "function setPath($value) {\n $this->path = trim($value);\n }", "public function setAadDeviceId(?string $value): void {\n $this->getBackingStore()->set('aadDeviceId', $value);\n }", "public function setPlatform(?Platform $value): void {\n $this->getBackingStore()->set('platform', $value);\n }", "public function setOfficeLocation(?string $value): void {\n $this->getBackingStore()->set('officeLocation', $value);\n }", "public function setDeviceType(?DeviceType $value): void {\n $this->getBackingStore()->set('deviceType', $value);\n }", "function setValue($value)\n {\n $this->_value = $value;\n }", "public function setDeviceId(?string $value): void {\n $this->getBackingStore()->set('deviceId', $value);\n }", "public function setPreferredDataLocation(?string $value): void {\n $this->getBackingStore()->set('preferredDataLocation', $value);\n }", "public function setPlatform(?DetectedAppPlatformType $value): void {\n $this->getBackingStore()->set('platform', $value);\n }", "public function setDiscoverySettings(?TeamDiscoverySettings $value): void {\n $this->getBackingStore()->set('discoverySettings', $value);\n }", "function setValue($value) {\r\n $this->value = $value;\r\n }", "public function setManagedDeviceId(?string $value): void {\n $this->getBackingStore()->set('managedDeviceId', $value);\n }", "public function setManagedDeviceId(?string $value): void {\n $this->getBackingStore()->set('managedDeviceId', $value);\n }", "public function setAudioDeviceName(?string $value): void {\n $this->getBackingStore()->set('audioDeviceName', $value);\n }", "function setValue($value) {\r\r\n\t\t$this->value = $value;\r\r\n\t}", "public function setPresence(?Presence $value): void {\n $this->getBackingStore()->set('presence', $value);\n }", "function enable($dev,$drive)\n {\n $this->load->library('smart_monitor/Smart_Monitor');\n \n $path = \"/$dev/$drive\";\n\n try{\n $this->smart_monitor->enable_smart($path);\n\n // Return to summary page with status message\n $this->page->set_status_added();\n $this->page->set_message(lang('smart_enabled').' '.$path, 'info');\n redirect('/smart_monitor');\n } catch (Exception $e) {\n $this->page->view_exception($e);\n }\n\n }", "function setValue($value)\n\t{\n\t\t$this->value=$value;\n\t}" ]
[ "0.6074195", "0.55379534", "0.5521192", "0.5460474", "0.5460474", "0.54296094", "0.54296094", "0.5412262", "0.539259", "0.52550757", "0.5242267", "0.5217686", "0.52068394", "0.5194676", "0.5178844", "0.5135053", "0.51344776", "0.513329", "0.5130348", "0.5117177", "0.51123387", "0.5107758", "0.5095196", "0.5077009", "0.5077009", "0.5069696", "0.50459343", "0.5032712", "0.5032517", "0.5030062" ]
0.7889126
0
Sets the drives property value. A collection of drives available for this user. Readonly.
public function setDrives(?array $value): void { $this->getBackingStore()->set('drives', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDrive(?Drive $value): void {\n $this->getBackingStore()->set('drive', $value);\n }", "public function getDrives(): ?array {\n $val = $this->getBackingStore()->get('drives');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Drive::class);\n /** @var array<Drive>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'drives'\");\n }", "public function setOwnedDevices(?array $value): void {\n $this->getBackingStore()->set('ownedDevices', $value);\n }", "public function setDevices(?array $value): void {\n $this->getBackingStore()->set('devices', $value);\n }", "public function setDrive($params, $context)\n {\n $this->validateMethodContext($context, [\"role\" => OMV_ROLE_ADMINISTRATOR]);\n // Validate the parameters of the RPC service method.\n $this->validateMethodParams($params, \"rpc.snapraid.setdrive\");\n // Prepare the configuration object.\n $object = new \\OMV\\Config\\ConfigObject(\"conf.service.snapraid.drive\");\n // Remove spaces from name\n $params['name'] = str_replace(\" \", \"_\", $params['name']);\n // Check that data drive is not also a parity drive\n if ( TRUE === $params['data'] && (TRUE === $params['parity'] || TRUE === $params['paritysplit'] )) {\n throw new \\OMV\\Exception(\n gettext(\"A data drive cannot be a parity drive.\")\n );\n }\n if ( TRUE === $params['data'] ) {\n $params['parity'] = false;\n $params['paritynum'] = 1;\n $params['paritysplit'] = false;\n } elseif ( TRUE === $params['parity'] ) {\n $params['data'] = false;\n }\n\n $db = \\OMV\\Config\\Database::getInstance();\n if ($db->exists(\"conf.system.filesystem.mountpoint\", [\n \"operator\" => \"stringEquals\",\n \"arg0\" => \"uuid\",\n \"arg1\" => $params[\"mntentref\"]\n ])) {\n $meObject = $db->get(\"conf.system.filesystem.mountpoint\", $params[\"mntentref\"]);\n // Get the filesystem backend.\n $fsbMngr = \\OMV\\System\\Filesystem\\Backend\\Manager::getInstance();\n $fsbMngr->assertBackendExistsByType($meObject->get(\"type\"));\n $fsb = $fsbMngr->getBackendByType($meObject->get(\"type\"));\n // Add some mount point information:\n $params['path'] = $meObject->get(\"dir\");\n // Get the filesystem implementation.\n $fs = $fsb->getImpl($meObject->get(\"fsname\"));\n if (!is_null($fs) && $fs->exists()) {\n $params['label'] = $fs->getLabel();\n }\n }\n $object->setAssoc($params);\n // Set the configuration object.\n $isNew = $object->isNew();\n $db = \\OMV\\Config\\Database::getInstance();\n if (TRUE === $isNew) {\n // Check uniqueness - Shared folder\n $db->assertIsUnique($object, \"mntentref\");\n $db->assertIsUnique($object, \"name\");\n }\n $db->set($object);\n // Return the configuration object.\n return $object->getAssoc();\n }", "public function setDeviceKeys(?array $value): void {\n $this->getBackingStore()->set('deviceKeys', $value);\n }", "public function setAllowedDataStorageLocations($val)\n {\n $this->_propDict[\"allowedDataStorageLocations\"] = $val;\n return $this;\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setDisks($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\Compute\\V1\\SavedAttachedDisk::class);\n $this->disks = $arr;\n\n return $this;\n }", "public function setAllowedIosDeviceModels(?string $value): void {\n $this->getBackingStore()->set('allowedIosDeviceModels', $value);\n }", "public function getDisks()\n {\n return $this->disks;\n }", "public function setSpeakers(?array $value): void {\n $this->getBackingStore()->set('speakers', $value);\n }", "function setDirectories($directories){\n $this->directories = $directories;\n }", "public function setContactFolders(?array $value): void {\n $this->getBackingStore()->set('contactFolders', $value);\n }", "public function listVolumesUseruploaded($optParams = array())\n {\n $params = array();\n $params = array_merge($params, $optParams);\n return $this->call('list', array($params), \"Books_Volumes\");\n }", "public function setRegisteredDevices(?array $value): void {\n $this->getBackingStore()->set('registeredDevices', $value);\n }", "public function setOwners(?array $value): void {\n $this->getBackingStore()->set('owners', $value);\n }", "private function startDriveService() {\n $this->driveService = new Google_DriveService($this->driveClient);\n }", "public function setManagedDevices($val)\n {\n $this->_propDict[\"managedDevices\"] = $val;\n return $this;\n }", "public function setDiskQuotaEnabled($newValue)\n\t{\n\t\t$this->diskQuotaEnabled = $newValue;\n\t}", "public function setOwnedObjects(?array $value): void {\n $this->getBackingStore()->set('ownedObjects', $value);\n }", "public function getVolumes()\n {\n return $this->volumes;\n }", "public function setDirectories(array $directories)\n {\n $this->dirs = $directories;\n }", "public function setPaths($var) {}", "public function setCloudPCs(?array $value): void {\n $this->getBackingStore()->set('cloudPCs', $value);\n }", "public function setDirectories($dirs)\n\t{\n\t\t$this->directories = $dirs;\n\t\treturn $this;\n\t}", "public function setMailFolders(?array $value): void {\n $this->getBackingStore()->set('mailFolders', $value);\n }", "function system_drives()\n{\n\t$drives = array();\n\tfor ($ii = 66; $ii < 92; $ii++) \n\t{\n\t\t$char = chr($ii);\n\t\tif (is_dir($char.\":/\"))\n\t\t\t$drives[] = strtolower($char) .':';\n\t}\n\t\n\treturn $drives;\n}", "function setAttachUsers ($value) {\n\t\t$this->attach_users = $value ? true : false;\n\t}" ]
[ "0.6790666", "0.59506696", "0.54407114", "0.52186036", "0.50988287", "0.5064629", "0.4995996", "0.4994798", "0.4994798", "0.49934176", "0.4989556", "0.4957377", "0.49390984", "0.49213374", "0.49042717", "0.49017164", "0.4751648", "0.47436416", "0.4741011", "0.47264546", "0.47027233", "0.47005558", "0.4662889", "0.46557882", "0.46457165", "0.46451548", "0.46276045", "0.46107355", "0.45876178", "0.45772702" ]
0.7459273
0
Sets the employeeExperience property value. The employeeExperience property
public function setEmployeeExperience(?EmployeeExperienceUser $value): void { $this->getBackingStore()->set('employeeExperience', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_experience(){\t\n\t\t\n\t\t$year['0.3'] = '3 Months';\n\t\t$year['0.6'] = '6 Months';\n\t\t$year['0.9'] = '9 Months';\n\t\t$year['1'] = '1 Year';\n\t\tfor($i = 2; $i <= 25; $i++){\n\t\t\t$year[$i] =$i.' Years';\n\t\t\t\n\t\t}\t\t\n\t\t$this->set('yearExp', $year);\n\t}", "public function setExperience($experience)\n {\n $this->experience = $experience;\n\n return $this;\n }", "public function setExperienceRequirements($value)\n {\n $this->experienceRequirements = $value;\n }", "public function setEmployee($value)\n {\n $this->employee = $value;\n }", "public function getExperience()\n {\n return $this->experience;\n }", "public function __construct(Experience $experience)\n {\n $this->experience = $experience;\n }", "public function setExperience($tableau)\n\t{\n\t}", "public function setExperience($tableau)\n\t{\n\t}", "public function edit(Experience $experience)\n {\n //\n }", "public function edit(Experience $experience)\n {\n //\n }", "protected function setChiefEmployee(Employee $employee) {\n\t\t\t$this->_ChiefEmployee = $employee;\n\t\t}", "public function experience(): Experience;", "public function experience()\n\t{\n\t\treturn $this->hasOne(Experience::class);\n\t}", "public function setEmployee(\\Diadoc\\Api\\Proto\\Invoicing\\Employee $value=null)\n {\n return $this->set(self::EMPLOYEE, $value);\n }", "private function updateExperience()\n {\n\n $this->options['headers'] = [\n 'Content-type' => 'application/json',\n 'Authorization' => $this->http->headers->get('JWT_TOKEN')\n ];\n\n $this->options = array_merge($this->options, [\n 'body' => $this->http->headers->get('data')\n ]);\n\n $request = $this->client->request($this->http->headers->get('request_method'), $this->http->headers->get('request_url'), $this->options);\n\n if ($request->getStatusCode() === 200) {\n $request = \\GuzzleHttp\\json_decode($request->getBody());\n $this->output($request);\n }\n }", "public function setLossExperience($loss_experience)\n {\n $this->data['loss_experience'] = (int) $loss_experience;\n }", "public function setEmployeeName($name) { $this->employeeName = $name; }", "public function _setExpDate($expDate) {\n\t\t$this->_expDate = $expDate;\n\t}", "function setExpYear($expYear);", "public function show(Experience $experience)\n {\n return $experience;\n }", "public function experience(): HasMany\n {\n return $this->hasMany(Experience::class);\n }", "public function AddExperience($data)\n\t\t{\n\t\t\t$this->db->insert('pl.pl_experience', $data);\n\t\t}", "public function setEmployeeEducationIdAttribute($input)\n {\n $this->attributes['employee_education_id'] = $input ? $input : null;\n }", "public function addExp($experience) {\n\t\tif($this->hasBoost(3)) {\n\t\t\t$experience = $boosted_experience = $experience + ($experience / 2);\n\n\t\t\t$this->experience += $experience;\n\t\t} else {\n\t\t\t$this->experience += $experience;\n\t\t}\n\n\t\treturn $experience;\n\t}", "public function setEmployeeEmail($email) { $this->employeeEmail = $email; }", "public function addExperience_post()\n {\n $data=$this->post('data');\n $experience_id=$data['experience_id'];\n if($experience_id){\n $ret=$this->admin_model->update_emp_experience($data);\n if($ret) { $response['msg']='updated successfully';}\n else{ $response['msg']='Something went Wrong';}\n }else{\n $data['employee_key']=$this->post('employee_key');\n $ret=$this->admin_model->add_emp_experience($data);\n if($ret) { $response['msg']='added successfully';}\n else{ $response['msg']='Something went Wrong';}\n }\n $this->response( $response,200);\n }", "public function setAge($age) {\n $this->age = $age;\n }", "public function getEmployeeExperience(): ?EmployeeExperienceUser {\n $val = $this->getBackingStore()->get('employeeExperience');\n if (is_null($val) || $val instanceof EmployeeExperienceUser) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'employeeExperience'\");\n }", "public function actionAddexperience()\n {\n $model = new EmployeeSalaryDetails();\n $employeemodel = new EmployeeDetails();\n\n // $employeemodel->scenario = 'add_experience';\n if ($model->load(Yii::$app->request->post())) {\n // echo \"<pre>\";print_r($_POST['EmployeeSalaryDetails']);exit;\n $salaryDetails = $_POST['EmployeeSalaryDetails'];\n $employee_id = $_POST['EmployeeDetails']['employe_id'];\n $employee_experience = $_POST['EmployeeDetails']['experience'];\n\n $updateEmployee = EmployeeDetails::find()->where(['empId' => $employee_id])->one();\n $updateEmployee->experience = $employee_experience;\n $updateEmployee->save(false);\n\n $i = 0;\n $employeeDetails = EmployeeSalaryDetails::find()->where(['year'=>$_POST['EmployeeSalaryDetails']['year'], 'empId' => $employee_id])->one();\n if(empty($employeeDetails)){\n foreach ($_POST['EmployeeSalaryDetails']['year'] as $value) {\n $model = new EmployeeSalaryDetails();\n $year = $salaryDetails['year'][$i];\n $salary = $salaryDetails['salary'][$i];\n \n $model->empId = $employee_id;\n $model->year = $year;\n $model->salary = $salary;\n $model->save();\n\n $i = $i + 1;\n }\n }\n return $this->redirect(['index']);\n }\n return $this->renderAjax('_add_experience', [\n 'model' => $model,\n 'employeemodel' => $employeemodel\n ]);\n }", "public function saveMyExperienceAction()\n {\n\t\t$params = $this->getRequest()->getParams();\n\t\t$zend_filter_obj = Zend_Registry::get('Zend_Filter_StripTags');\n\t\t$comp_id = \\Extended\\company_ref::checkCompany( $params[\"company\"] );\n\t\tif( !$comp_id )\n\t\t{\n\t\t\t$comp_id = \\Extended\\company_ref::addCompany($params[\"company\"], Auth_UserAdapter::getIdentity()->getId() );\n\t\t}\n\t\t\n\t\t$curt_wrk_yes = \\Extended\\experience::CURRENTLY_WORK_YES;\n\t\t$curt_wrk_no = \\Extended\\experience::CURRENTLY_WORK_NO;\n\t\t$temp = array();\n\t\t\n\t\t// get data where user is currently working previous\n\t\t$get_previous_currently_working = \\Extended\\experience::getCurrentlyWorkingUserData(Auth_UserAdapter::getIdentity()->getId());\n\t\t\n\t\t$temp[\"emp_company_id\"] = $comp_id;\n\t\t$temp[\"company_name\"] = $params[\"company\"];\n\t\t$temp[\"emp_job_title\"] = $zend_filter_obj->filter($params[\"title\"]);\n\t\t$temp[\"user_id\"] = Auth_UserAdapter::getIdentity()->getId();\n\t\t$temp[\"description\"] = $zend_filter_obj->filter($params[\"additional_notes\"]);\n\t\t$temp[\"currently_work\"] = @$params[\"currunt_company\"]?$curt_wrk_yes:$curt_wrk_no;\n\t\t$temp[\"experience_from\"] = @$params[\"from_date\"];\n\t\t$temp[\"experience_to\"] = @$params[\"to_date\"];\n\t\t\n\t\t$diff = \"\";\n\t\tif( @$params[\"from_date\"] && @$params[\"to_date\"] )\n\t\t{\n\t\t\t$days = intVal( DateTime::createFromFormat( \"d-m-Y H:i:s\", $params ['from_date'].\" 00:00:00\" )->diff( DateTime::createFromFormat(\"d-m-Y H:i:s\", $params['to_date'].\" 00:00:00\" ) )->d );\n\t\t\t$months = intVal( DateTime::createFromFormat( \"d-m-Y H:i:s\", $params['from_date'].\" 00:00:00\" )->diff( DateTime::createFromFormat(\"d-m-Y H:i:s\", $params['to_date'].\" 00:00:00\" ) )->m );\n\t\t\t$years = intVal( DateTime::createFromFormat( \"d-m-Y H:i:s\", $params['from_date'].\" 00:00:00\" )->diff( DateTime::createFromFormat(\"d-m-Y H:i:s\", $params['to_date'].\" 00:00:00\" ) )->y );\n\t\t\t// for years, months and days\n\t\t\tif($months == 0 && $years == 0 && $days >= 1) \n\t\t\t\t$diff = $days. ' day(s)';\n\t\t\telseif($months == 0 && $years >= 1 && $days == 0) \n\t\t\t\t$diff = $years.' year(s)';\n\t\t\telseif($months == 0 && $years >= 1 && $days >= 1)\n\t\t\t\t$diff = $years.' year(s) '. $days.' day(s)';\n\t\t\telseif($months >= 1 && $years == 0 && $days == 0)\n\t\t\t\t$diff = $months.' month(s)';\n\t\t\telseif($months >= 1 && $years == 0 && $days >= 1)\n\t\t\t\t$diff = $months.' month(s) '.$days.' day(s)';\n\t\t\telseif($months >= 1 && $years >= 1 && $days == 0)\n\t\t\t\t$diff = $years. ' year(s) '.$months.' month(s) ';\n\t\t\telseif($months >= 1 && $years >= 1 && $days >= 1)\n\t\t\t\t$diff = $years.' year(s) '.$months.' month(s) '.$days.' day(s)';\n\t\t\telse\n\t\t\t{\t\n\t\t\t\t$diff = $years.' year(s) '.$months.' month(s) ';\n\t\t\t}\n\t\t}\n\t\t$temp[\"date_diff\"] = $diff;\n\t\t\n\t\t$temp[\"location\"] = $zend_filter_obj->filter($params[\"location\"]);\n\t\t\n\t\t$id = 0;\n\t\tif( !$params['identity'] )\n\t\t{\n\t\t\t$temp[\"new_record\"] = 1;\n\t\t\t$id = Extended\\experience::addOrEditExperience($temp);\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\t$temp[\"new_record\"] = 0;\n\t\t\t$id = Extended\\experience::addOrEditExperience($temp, $params['identity']);\n\t\t}\n\n\t\t$exp_arr = array();\n\t\t$exp_arr['current_exp_id'] \t\t\t\t\t= $id;\n\t\t$exp_arr['previous_current_exp_id']\t\t\t= isset($get_previous_currently_working[0]['id'])?$get_previous_currently_working[0]['id']:0;\n\t\t$exp_arr['previous_current_exp_job_endate'] = isset($get_previous_currently_working[0]['job_enddate'])?$get_previous_currently_working[0]['job_enddate']->format('d-m-Y'):NULL;\n\t\t$exp_arr['current_exp_data'] \t\t\t\t= $temp;\n\t\t\n\t\tif( $exp_arr )\n\t\t{\n\t\t\techo Zend_Json::encode( $exp_arr );\t\t\n\t\t}\n\t\telse\n\t\t{\t\t\t\n\t\t\techo Zend_Json::encode( 0 );\t\t\n\t\t}\t\n\t\tdie;\n }" ]
[ "0.7211879", "0.68935186", "0.6704888", "0.65159", "0.63529587", "0.63204646", "0.62973875", "0.62973875", "0.6030955", "0.6030955", "0.5913218", "0.5846434", "0.5819113", "0.58189493", "0.57656443", "0.56824315", "0.5652443", "0.55969894", "0.548578", "0.5453342", "0.5449193", "0.54247695", "0.54090875", "0.53397095", "0.530533", "0.53005964", "0.5293194", "0.5285268", "0.527279", "0.5261706" ]
0.8190455
0
Sets the employeeHireDate property value. The date and time when the user was hired or will start work in case of a future hire. Supports $filter (eq, ne, not , ge, le, in).
public function setEmployeeHireDate(?DateTime $value): void { $this->getBackingStore()->set('employeeHireDate', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHireDate(?DateTime $value): void {\n $this->getBackingStore()->set('hireDate', $value);\n }", "public function setEmployee($value)\n {\n $this->employee = $value;\n }", "public function setEmployeeName($name) { $this->employeeName = $name; }", "public function setWorkDate($work_date)\n\t{\n\t\t$this->work_date = is_numeric($work_date) ? $work_date : strtotime($work_date);\n\t\treturn $this;\n\t}", "protected function setChiefEmployee(Employee $employee) {\n\t\t\t$this->_ChiefEmployee = $employee;\n\t\t}", "public function setStartDate(?DateTime $startDate): Employee {\n $this->startDate = $startDate;\n return $this;\n }", "function setDateUploaded($dateUploaded) {\n\t\treturn $this->SetData('dateUploaded', $dateUploaded);\n\t}", "public function setDateVisiteReprise(?DateTime $dateVisiteReprise): ListeEmployes {\n $this->dateVisiteReprise = $dateVisiteReprise;\n return $this;\n }", "public function getEmployeeHireDate(): ?DateTime {\n $val = $this->getBackingStore()->get('employeeHireDate');\n if (is_null($val) || $val instanceof DateTime) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'employeeHireDate'\");\n }", "public function setRentalDateAttribute($date)\n { \t\n \t$myDate = Carbon::createFromFormat('Y-m-d', $date);\n \tif($myDate > Carbon::now()){\n \t\t$this->attributes['rental_date'] = Carbon::parse($date);\n \t}else{\n \t\t$this->attributes['rental_date'] = Carbon::createFromFormat('Y-m-d', $date);\t\n \t}\n }", "public function setEmployer(ECashCra_Data_Employer $employer)\n\t{\n\t\t$this->employer = $employer;\n\t}", "public function setEmployees(Collection $employees)\n {\n /* todo: Throw exception or at least log incidents, where employees are added to \"hiring orgs\" */\n if (!$this->isHiringOrganization()) {\n $this->employees = $employees;\n }\n\n return $this;\n }", "abstract protected function filterEmployment($data);", "public function setDateAffectation(?DateTime $dateAffectation): AffectationEmployeChantier {\n $this->dateAffectation = $dateAffectation;\n return $this;\n }", "private function updateEmployee() {\n\t\tif ($this->ltype->data[0]['isAnnual'] == 1){\n\t\t\t$sql = \"UPDATE annual_leave a, business_years b SET a.leave_left = a.leave_left - 0.5 \";\n\t\t\t$sql .= \" WHERE a.emp_id =\".$this->page->ctrl['subrecord'].\" AND a.year_id = b.business_year_id AND b.year_start<='\".$this->data[0]['half_date'].\"'\";\n\t\t\t$sql .= \" AND b.year_end >= '\".$this->data[0]['half_date'].\"'\";\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "public function setEmployee(\\Diadoc\\Api\\Proto\\Invoicing\\Employee $value=null)\n {\n return $this->set(self::EMPLOYEE, $value);\n }", "public function _setExpDate($expDate) {\n\t\t$this->_expDate = $expDate;\n\t}", "public function setDateEntree(?DateTime $dateEntree): ListeEmployes {\n $this->dateEntree = $dateEntree;\n return $this;\n }", "function setDateModified($dateModified) {\n\t\treturn $this->SetData('dateModified', $dateModified);\n\t}", "public function setDateExpire( $date ) {\n\t\t$this->params[ \"expiration_date\" ] = $date;\n\t\treturn $this;\n\t}", "function setAgeCutoffDay($ageCutoffDay)\n {\n $this->__ageCutoffDay = $ageCutoffDay ;\n }", "public function setCarteSejourExpireLe(?DateTime $carteSejourExpireLe): ListeEmployes {\n $this->carteSejourExpireLe = $carteSejourExpireLe;\n return $this;\n }", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n\t{\n\t\tif ($this->isNewRecord)\n\t\t\t$this->create_time = $this->update_time = time();\n\t\telse\n\t\t\t$this->update_time = time();\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($date) {\n $this->date = $date;\n }", "function setDate($date){\n $this->date=$date;\n }", "public function setDate($date)\n {\n if (isset($date)) {\n $this->date = $date;\n }\n }" ]
[ "0.6546543", "0.5244189", "0.5179333", "0.51645064", "0.5128295", "0.5080658", "0.5058616", "0.49529994", "0.49423188", "0.49057338", "0.48833883", "0.48692942", "0.48501745", "0.48479065", "0.48427176", "0.4839174", "0.48228016", "0.47907406", "0.47588104", "0.47509646", "0.47459063", "0.47431794", "0.47411007", "0.47359467", "0.47188133", "0.46951035", "0.46951035", "0.46951035", "0.46791014", "0.46643254" ]
0.6992464
0
Sets the employeeId property value. The employee identifier assigned to the user by the organization. The maximum length is 16 characters.Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
public function setEmployeeId(?string $value): void { $this->getBackingStore()->set('employeeId', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function employeeId(?string $value): self\n {\n $this->instance->setEmployeeId($value);\n return $this;\n }", "public function setEmployeeIdAttribute($input)\r\n {\r\n $this->attributes['employees_id'] = $input ? $input : null;\r\n }", "public function setId($id){\n$this->employeeid=$id;\n}", "public function setEmployee($value)\n {\n $this->employee = $value;\n }", "public function setEmployeeUsernameIdAttribute($input)\n {\n $this->attributes['employee_username_id'] = $input ? $input : null;\n }", "public function getEmployeeID() { return $this->employeeID; }", "public static function findIdentity($idEmployee){\n return static::findOne($idEmployee);\n }", "public function setEmployee(\\Diadoc\\Api\\Proto\\Invoicing\\Employee $value=null)\n {\n return $this->set(self::EMPLOYEE, $value);\n }", "public function filterByIdEmployee($idEmployee = null, $comparison = null)\n\t{\n\t\tif (is_array($idEmployee) && null === $comparison) {\n\t\t\t$comparison = Criteria::IN;\n\t\t}\n\t\treturn $this->addUsingAlias(Oops_Db_EmployeePeer::ID_EMPLOYEE, $idEmployee, $comparison);\n\t}", "public function getId(){\nreturn $this->employeeId;\n}", "public function setDeleteEmployee($id_employee)\n\t{\n\t\t$result = $this->myPdoObj\n\t\t\t->update()\n\t\t\t->table('employee')\n\t\t\t->set(array('status'=> 0, 'mail_employee' => ''))\n\t\t\t->where(array('id_employee' => $id_employee), array('='))\n\t\t\t->query()\n\t\t\t->commit();\n\n\t\treturn $result;\n\t}", "public function setId($idEmpresa){\n $this->id = $idEmpresa;\n }", "public function findOneByIdEmployee($idEmployee);", "public static function employee($id_employee, $deal){\n //$deal = ruc del negocio\n return UserDeal::query()\n ->join('deals', 'user_deal.deal_ruc','=', 'deals.ruc_deal')\n ->join('users', 'user_deal.user_id','=', 'users.id')\n ->join('role_user','role_user.user_id','=', 'users.id')\n ->join('roles','roles.id','=', 'role_user.role_id')\n ->join('people','id_card_person', '=', 'users.person_id_card')\n ->select(\n 'people.id_card_person',\n 'people.name_person',\n 'people.last_name_person',\n 'people.birthdate_person',\n 'people.province_person',\n 'people.canton_person',\n 'people.parish_person',\n 'people.address_person',\n 'people.phone_person',\n 'people.genre_person',\n 'people.created_at',\n 'users.email',\n 'users.password',\n 'users.state_user',\n 'roles.id',\n 'roles.name')\n ->where('deals.ruc_deal','=',$deal)\n ->where('people.id_card_person', '=', $id_employee)\n ->get();\n\n // dd($employees);\n }", "public function setEmployeeEducationIdAttribute($input)\n {\n $this->attributes['employee_education_id'] = $input ? $input : null;\n }", "function setIdEmpresa($idEmpresa = NULL) {\n $this -> idEmpresa = $idEmpresa;\n }", "public function setEmployeeSalaryIdAttribute($input)\n {\n $this->attributes['employee_salary_id'] = $input ? $input : null;\n }", "public function setEmployeeTitleIdAttribute($input)\n {\n $this->attributes['employee_title_id'] = $input ? $input : null;\n }", "public function setEmployeeEmail($email) { $this->employeeEmail = $email; }", "public function setEid($eid)\n {\n $this->eid = intval($eid);\n }", "public function setEmployeeName($name) { $this->employeeName = $name; }", "public function setEasyId($val)\n {\n $this->_propDict[\"easyId\"] = $val;\n return $this;\n }", "public function update(UpdateEmployee $request, $id)\n {\n $request->saveEmployee($id); \n }", "public function setEntityId($data)\r\n {\r\n $this->_EntityId=$data;\r\n return $this;\r\n }", "public function __construct($employee_id = FALSE) {\n parent::__construct();\n $this->employee_id = $employee_id;\n }", "public function setEntityId($value) \r\n\t{\r\n\t $this->entityId = $value;\r\n\t return $this;\r\n\t}", "public function update(EmployeeRequest $request, $id)\n {\n Employee::where('id',$id)->update($request->except('_token','id'));\n return response()->json(['message'=>'Saved'],200);\n }", "public function editEmployeeData($data, $employeeId) {\n if (!empty($data) && !empty($employeeId)) {\n $update = $this->db->update('employee_details', $data,\n array('employeeId' => $employeeId));\n return $update ? true : false;\n } else {\n return false;\n }\n }", "public function update(Request $request, $id)\n {\n $employee = $this->_employee->with('user')->has('user')->find($id);\n if($employee == null){\n return response()->json(['message' => HttpStatusCode::$statusTexts[HttpStatusCode::NOT_FOUND]], HttpStatusCode::NOT_FOUND);\n }\n \n $filtered = Arr::except($this->_validationRule, [\n 'email', 'username', 'ph', 'cnic', 'password'\n ]);\n \n $filtered += ([\n /**\n * user validation rule\n */\n 'ph'=> 'string|min:9|max:15|regex:/[0-9]{9}/|unique:users,ph,'.$employee->user->id,\n 'username' => 'min:5|regex:/^\\S*$/u|unique:users,username,'.$employee->user->id,\n 'cnic' => 'min:9|max:13|regex:/[0-9]{9}/|unique:users,cnic,'.$employee->user->id,\n 'email' => 'email|unique:users,email,'.$employee->user->id,\n 'password' => 'min:8|max:64'.$employee->user->id,\n ]);\n \n /**\n * validate incoming data\n */\n if(Auth::user()->can('update', $employee)){\n $this->validate($request, $filtered, $this->_customMessages);\n } else {\n return response()->json(['message' => HttpStatusCode::$statusTexts[HttpStatusCode::FORBIDDEN]], HttpStatusCode::FORBIDDEN);\n }\n \n try {\n $employee=$this->_employee->updateEmployee($request,$id);\n return response()->json(['entity' => $employee, 'message' => HttpStatusCode::$statusTexts[HttpStatusCode::OK]], HttpStatusCode::OK);\n } catch (\\Exception $e) {\n //Log::error('EmployeeController -> update: ',$e);\n return response()->json(['message' => HttpStatusCode::$statusTexts[HttpStatusCode::INTERNAL_SERVER_ERROR]], HttpStatusCode::INTERNAL_SERVER_ERROR);\n }\n }", "public function getEmpid($empIdIdentity)\r\n {\r\n if ($this->_empid === false) {\r\n $this->_empid = Employe::find()->where(['EMP_ID' => $empIdIdentity])->one();\r\n }\r\n return $this->_empid;\r\n }" ]
[ "0.6807276", "0.6631474", "0.6156986", "0.60356104", "0.5943449", "0.58917886", "0.58245456", "0.57608974", "0.5733661", "0.5541847", "0.5477207", "0.54731727", "0.5470224", "0.5407931", "0.5401088", "0.53955066", "0.53879887", "0.5376529", "0.53524584", "0.53362286", "0.5333016", "0.5331981", "0.52139944", "0.51783675", "0.5178338", "0.5151846", "0.51265806", "0.512235", "0.5115748", "0.5083183" ]
0.66807
1
Sets the employeeLeaveDateTime property value. The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the UserLifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and UserLifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Azure AD roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user.
public function setEmployeeLeaveDateTime(?DateTime $value): void { $this->getBackingStore()->set('employeeLeaveDateTime', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLeaveDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('leaveDateTime', $value);\n }", "public function set_leave_date($value)\n {\n $this->set_default_property(self::PROPERTY_LEAVE_DATE, $value);\n }", "public function get_leave_date()\n {\n return $this->get_default_property(self::PROPERTY_LEAVE_DATE);\n }", "private function updateEmployee() {\n\t\tif ($this->ltype->data[0]['isAnnual'] == 1){\n\t\t\t$sql = \"UPDATE annual_leave a, business_years b SET a.leave_left = a.leave_left - 0.5 \";\n\t\t\t$sql .= \" WHERE a.emp_id =\".$this->page->ctrl['subrecord'].\" AND a.year_id = b.business_year_id AND b.year_start<='\".$this->data[0]['half_date'].\"'\";\n\t\t\t$sql .= \" AND b.year_end >= '\".$this->data[0]['half_date'].\"'\";\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "public function leaveDetails(Request $request)\n {\n\n $validator = $request->validate([\n 'title' => 'required|max:30',\n 'start_end_date' => 'required',\n 'reason' => 'required',\n \n ]);\n\n $date = explode('-', $request->start_end_date);\n $leaveDetails = new EmployeeLeave;\n /*// if(Auth::user()->hasRole(['Admin'])){\n \n // }\n else{\n $leaveDetails->employee_id = Auth::user()->id;\n }*/\n $leaveDetails->employee_id = Auth::user()->id; \n $leaveDetails->title = $request->title;\n $leaveDetails->from = date('Y-m-d',strtotime($date[0]));\n $leaveDetails->to = date('Y-m-d',strtotime($date[1]));\n $leaveDetails->type = $request->type;\n $leaveDetails->slot = $request->slot;\n $date1 = date_create($date[0]);\n $date2 = date_create($date[1]);\n $diff = date_diff($date1,$date2);\n $total_days = $diff->format(\"%a\");\n\n if($request->type == \"1\" && $total_days == 0){\n $leaveDetails->total_days = 1;\n }\n else if($request->type == \"0\" && $total_days == 0){\n $leaveDetails->total_days = 0.5;\n }\n else if($request->type == \"0\" && $total_days > 0){\n $count = ($total_days*0.5);\n $leaveDetails->total_days = $count+0.5;\n }\n else{\n $leaveDetails->total_days = $total_days+1;\n }\n\n $leaveDetails->reason = $request->reason;\n $leaveDetails->status = 2;\n $leaveDetails->save();\n\n $employee = User::where('id',$request->employee_id)->first();\n $admin = User::role('Admin')->get();\n $employee = User::where('id',Auth::user()->id)->first();\n $data = array();\n $data['title'] = $request->title;\n $data['from'] = date('Y-m-d',strtotime($date[0]));\n $data['to'] = date('Y-m-d',strtotime($date[1]));\n $data['total_days'] = $leaveDetails->total_days;\n $data['reason'] = $request->reason;\n $data['email'] = $employee->email;\n $data['name'] = $employee->name;\n $data['id'] = $this->encrypt($leaveDetails->id);\n foreach($admin as $val){\n\n $data['adminName'] = $val->name;\n $receiver = $val->email;\n Mail::to($receiver)->send(new ApplyLeave($data));\n }\n \n // Mail::send('emails.sendLeave', array('data'=>$data), function ($message) use ($data) {\n // $message->to($data['email'])->subject('Leave Details');\n // });\n\n return Redirect::to('admin/employee/leaves')\n ->with('success', 'Employee Leave has been Added Successfully.');\n }", "public function getEmployeeLeaveDateTime(): ?DateTime {\n $val = $this->getBackingStore()->get('employeeLeaveDateTime');\n if (is_null($val) || $val instanceof DateTime) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'employeeLeaveDateTime'\");\n }", "public static function setOnLeave($staff_id, $date, $remark){\n $act = GwdActivity::where('user_id', $staff_id)\n ->whereDate('activity_date', $date)\n ->where('isleave', true)\n ->first();\n\n if($act){\n\n } else {\n $act = new GwdActivity;\n $act->user_id = $staff_id;\n $act->isleave = true;\n $act->activity_date = $date;\n $act->activity_type_id = 0;\n $act->title = 'cuti';\n $act->hours_spent = 0;\n\n $user = $act->User;\n\n if($user->isvendor == 1){\n $act->partner_id = $user->partner_id;\n } else {\n $act->unit_id = $user->unit_id;\n }\n\n }\n\n $act->leave_remark = $remark;\n $act->save();\n\n return $act;\n\n }", "public function update(Request $request)\n {\n\n $validator = $request->validate([\n 'title' => 'required|max:30',\n 'start_end_date' => 'required',\n 'reason' => 'required',\n 'employee_id' => 'required',\n ]);\n\n $date = explode('-',$request->start_end_date);\n $updateEmployeeLeave = EmployeeLeave::find($request->id);\n $updateEmployeeLeave->employee_id = $request->employee_id;\n $updateEmployeeLeave->title = $request->title;\n $updateEmployeeLeave->from = date('Y-m-d',strtotime($date[0]));\n $updateEmployeeLeave->to = date('Y-m-d',strtotime($date[1]));\n $updateEmployeeLeave->type = $request->type;\n \n $date1=date_create($date[0]);\n $date2=date_create($date[1]);\n $diff=date_diff($date1,$date2);\n $total_days = $diff->format(\"%a\");\n if($request->type == \"1\" && $total_days == 0){\n $updateEmployeeLeave->total_days = 1;\n } \n else if ($request->type == \"0\" && $total_days = 0) {\n $updateEmployeeLeave->total_days = 0.5;\n }else if ($request->type == \"0\" && $total_days > 0 ) {\n $count = ($total_days * 0.5);\n $updateEmployeeLeave->total_days = $count;\n } else{\n $updateEmployeeLeave->total_days = $total_days;\n }\n\n $updateEmployeeLeave->reason = $request->reason;\n $updateEmployeeLeave->status = 2;\n $updateEmployeeLeave->save();\n return Redirect::to('admin/employee/leaves')\n ->with('success', 'Employee Leave has been Updated Successfully.');\n }", "public function applyForLeave()\n {\n $employee = User::role('Employee')->get();\n \n return view('admin.employeeLeave.applyForLeave',compact('employee'));\n }", "public function edit(Leave $leave)\n {\n $leave_branch_id = $leave->branch_id;\n if(!auth()->user()->hasRole('superadmin')){\n $branch_id = auth()->user()->getBranchIdsAttribute();\n $branches = Branch::whereIn('id',$branch_id)->get();\n $approvers = User::whereHas(\"roles\", function($q){ $q->where(\"name\", \"superadmin\")->orWhere(\"name\", \"admin\"); })->get();\n $users = User::select('id', 'name')->whereHas('branches', function($q) use ($leave_branch_id) { $q->where('branch_id', $leave_branch_id); })->get();\n }else{\n $branches = Branch::all();\n $approvers = User::whereHas(\"roles\", function($q){ $q->where(\"name\", \"superadmin\")->orWhere(\"name\", \"admin\"); })->get();\n $users = User::select('id', 'name')->whereHas('branches', function($q) use ($leave_branch_id) { $q->where('branch_id', $leave_branch_id); })->get();\n }\n\n $leave_types = ['Annual', 'Sick', 'Hospitalisation', 'Maternity', 'Paternity', 'LOP'];\n $half_day = ['Full Day', 'Half Day'];\n $status = ['New', 'Approved', 'Declined'];\n return view('admin.leave.edit', compact(\"leave\", \"branches\", \"approvers\", \"users\", \"leave_types\", \"half_day\", \"status\"));\n }", "public function addLeaveDay() {\n try {\n if (!($this->leaveDay instanceof Base_Model_ObtorLib_App_Core_Employee_Entity_LeaveDay)) {\n throw new Base_Model_ObtorLib_App_Core_Employee_Exception(\" LeaveDay Entity not initialized\");\n } else {\n $objLeaveDay = new Base_Model_ObtorLib_App_Core_Employee_Dao_LeaveDay();\n $objLeaveDay->leaveDay = $this->leaveDay;\n return $objLeaveDay->addLeaveDay();\n }\n } catch (Exception $ex) {\n throw new Base_Model_ObtorLib_App_Core_Employee_Exception($ex);\n }\n }", "public function submitLeave(LeaveRequest $request)\n {\n $fromDate = new Carbon($request->from_date);\n $toDate = new Carbon($request->to_date);\n $value = $toDate->diffInDays($fromDate);\n\n /*\n * Leave request save to request table.\n */\n $leave = new \\App\\Request;\n $userId = Auth::user()->id;\n\n $leave->user_id = $userId;\n $leave->leave_type = $request->leave_type;\n $leave->txn_type = 'DEBIT';\n $leave->from_date = $request->from_date;\n $leave->to_date = $request->to_date;\n $leave->value = $value;\n $leave->status = 'REQUESTED';\n $leave->user_comments = $request->user_comments;\n\n $leave->save();\n\n return redirect('home');\n }", "public function update(LeaveUpdateRequest $request, Leave $leave)\n {\n try {\n\n if (empty($leave)) {\n //Session::flash('failed', 'branch Update Denied');\n //return redirect()->back();\n return response()->json([\n 'error' => 'leave update denied.' // for status 200\n ]); \n }\n\n $old_status = $leave->status;\n $leave_date = explode(' - ', $request->leave_date);\n $leave->employee_id = $request->employee_id;\n $leave->approved_by = $request->approved_by;\n $leave->branch_id = $request->branch_id;\n $leave->start_at = Carbon::parse($leave_date[0]);\n $leave->end_at = Carbon::parse($leave_date[1]);\n $leave->leave_days = $request->days;\n $leave->leave_type = $request->leave_type;\n $leave->reason = $request->reason;\n $leave->description = $request->description;\n $leave->half_day = $request->half_day;\n $leave->status = $request->status;\n $leave->save();\n\n /*NOTIFICATION CREATE [START]*/\n if($old_status != $leave->status){\n \n $sender = User::find($leave->approved_by);\n $receiver = User::find($leave->employee_id);\n if($leave->status=='New'){$leave->status='on hold';}\n $leaveData = [\n 'name' => Str::lower($leave->status),\n 'subject' => 'Leave Notification' ,\n 'body' => 'your leave has been '.Str::lower($leave->status),\n 'thanks' => 'Thank you',\n 'leaveUrl' => url('admin/leave'),\n 'leave_id' => $leave->id,\n 'employee_id' => $sender->id,\n 'employee_name' => $sender->name,\n 'receiver_name' => $receiver->name,\n 'text' => 'your leave has been'\n ];\n\n Notification::send($receiver, new leavesNotification($leaveData));\n Mail::to($receiver->email)->send(new LeavesNotificationMail($leaveData));\n \n }\n /*NOTIFICATION CREATE [END]*/\n\n \n\n //Session::flash('success', 'A branch updated successfully.');\n //return redirect('admin/branch');\n\n return response()->json([\n 'success' => 'leave update successfully.' // for status 200\n ]);\n\n } catch (\\Exception $exception) {\n\n DB::rollBack();\n\n //Session::flash('failed', $exception->getMessage() . ' ' . $exception->getLine());\n /*return redirect()->back()->withInput($request->all());*/\n\n return response()->json([\n 'error' => $exception->getMessage() . ' ' . $exception->getLine() // for status 200\n ]);\n }\n }", "public function actionLeave() {\n $model = new StaffLeave();\n $searchModel = new StaffLeaveSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n if (Yii::$app->session['post']['id'] != 1) {\n $dataProvider->query->andWhere(['employee_id' => Yii::$app->user->identity->id]);\n }\n $dataProvider->query->orderBy(['id' => SORT_DESC]);\n $dataProvider->pagination = ['pagesize' => 10];\n\n\n if ($model->load(Yii::$app->request->post()) && Yii::$app->SetValues->Attributes($model)) {\n\n\n //$model->info_table_id = Yii::$app->user->identity->staff_info_id;\n $model->commencing_date = date('Y-m-d', strtotime(Yii::$app->request->post()['StaffLeave']['commencing_date']));\n $model->ending_date = date('Y-m-d', strtotime(Yii::$app->request->post()['StaffLeave']['ending_date']));\n $model->no_of_days = (date(\"j\", strtotime($model->ending_date)) - date(\"j\", strtotime($model->commencing_date))) + 1;\n $check = StaffLeave::findOne(['employee_id' => Yii::$app->user->identity->id, 'commencing_date' => $model->commencing_date]);\nif (!isset($model->status)) {\n $model->status = 1;\n }\n if (empty($check)) {\n if ($model->validate() && $model->save()) {\n return $this->redirect('index');\n }\n } else {\n Yii::$app->getSession()->setFlash('error', \"<strong>Error! </strong>Leave alreday applied in this date range\");\n }\n }\n return $this->render('create', [\n 'model' => $model,\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "protected function getLeaveAssignDateLimit() {\n // If no leave period, don't allow apply/assign beyond next calender year\n $todayNextYear = new DateTime();\n $todayNextYear->add(new DateInterval('P1Y'));\n \n if ($this->getConfigService()->isLeavePeriodDefined()) {\n $period = $this->getLeavePeriodService()->getCurrentLeavePeriodByDate($todayNextYear->format('Y-m-d'));\n $maxDate = $period[1];\n } else {\n $nextYear = $todayNextYear->format('Y');\n $maxDate = $nextYear . '-12-31';\n } \n \n return $maxDate;\n }", "public function update()\n\t\t{\n\t\t\t$post \t\t\t\t\t\t= $this->input->post();\n\t\t\t$this->id \t\t\t\t\t= $post['id'];\n\t\t\t$this->employee_code\t\t= $post['employee_code'];\n\t\t\t$this->employee_entry_date\t= $post['employee_entry_date'];\n\t\t\t$this->leave_period \t\t= $post['leave_period'];\n\t\t\t$this->effective_date \t\t= $post['effective_date'];\n\t\t\t$this->valid_until \t\t\t= $post['valid_until'];\n\t\t\t$this->total \t\t\t\t= $post['total'];\n\t\t\t// $this->leave_taken \t\t\t= $post['leave_taken'];\n\t\t\t// $this->mass_leave \t\t\t= $post['mass_leave'];\n\t\t\t// $this->remaining_days_off \t= $post['remaining_days_off'];\n\n\t\t\t$this->db->update('ms_leave_rights', $this, array('id'=>$post['id']));\n\t\t}", "public function edit(Leave $leave)\n {\n //\n }", "public function sendLeaveApprovelEmail($leave)\n {\n $email_template = EmailTemplate::where('type', 'approve_leave')->first();\n\n if (!empty($email_template)) {\n\n $user = Auth::user();\n $req_user = User::find($leave->user_id);\n $req_user_name = $req_user->firstname.\" \".$req_user->lastname;\n\n $message = $email_template->template_body;\n $name = str_replace(\"{NAME}\", $req_user_name, $message);\n $leave_type = str_replace(\"{LEAVE_TYPE}\", $leave->leaveType->leave_type, $name);\n $leave_date = str_replace(\"{DATE}\", $leave->leave_date, $leave_type);\n $message = str_replace(\"{APPROVED_BY}\", $user->firstname.\" \".$user->lastname, $leave_date);\n\n $this->_sendEmailsInQueue(\n $req_user->email,\n $req_user_name, \n $email_template->template_subject, \n $message\n );\n }\n }", "public function saving(Leave $leave)\n {\n // Cannot put in creating, because saving is fired before creating. And we need company id for check bellow\n if (company()) {\n $leave->company_id = company()->id;\n $leaveTypes = LeaveType::where('id', $leave->leave_type_id)->first();\n $leave->paid = $leaveTypes->paid;\n }\n }", "public function markCalendarEvent(){\n\t\t$approver = $this->approver;\n\t\t$leave = $this->leave;\n\t\t$user = $leave->user;\n\t\t$setGoogleCalendarEvent = false;\n\t\tif($approver->employeeType === \"ADMIN\"){\n\t\t\t// set google calendar event\n\t\t\tif($leave->approvalStatus(Leave::APPROVED_BY_ADMIN)){\n\t\t\t\t$setGoogleCalendarEvent = true;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t// check if all approvers of $leave have approved the leave\n\t\t\t// if yes than set google calendar event\n\t\t\tif($leave->approvalStatus(Leave::APPROVED_BY_ALL)){\n\t\t\t\t$setGoogleCalendarEvent = true;\n\t\t\t}\n\t\t}\n\t\tif($setGoogleCalendarEvent){\n\t\t\tTemplateFunction::requireGoogleCalendarApi();\n\t\t\t$googleCreds = TemplateFunction::getGoogleCalendarCreds();\n\t\t\t// Check if google configurations are set properly\n\t \t \tif ( $googleCreds['clientId'] == '' || !strlen( $googleCreds['serviceAccountName'] ) || !strlen( $googleCreds['keyFileLocation'] )) {\n\t \techo 'Missing google configurations';\n\t \t}\n\t\t\t$client = new Google_Client();\n\t\t\t$client->setApplicationName(\"Leave Management System\");\n\t\t\t$service = new Google_Service_Calendar($client);\n\t\t\tif ( Session::has('service_token') ) {\n\t\t\t\t$client->setAccessToken( Session::get('service_token') );\n\t\t\t}\n\t\t\t$key = file_get_contents( $googleCreds['keyFileLocation'] );\n\t\t\t$cred = new Google_Auth_AssertionCredentials(\n\t\t\t\t$googleCreds['serviceAccountName'],\n\t\t\t\tarray('https://www.googleapis.com/auth/calendar'),\n\t\t\t\t$key\n\t\t\t);\n\t\t\t$client->setAssertionCredentials($cred);\n\t\t\tif($client->getAuth()->isAccessTokenExpired()) {\n\t\t\t\t$client->getAuth()->refreshTokenWithAssertion($cred);\n\t\t\t}\n\t\t\tSession::put('service_token', $client->getAccessToken());\n\t\t\t$cal = new Google_Service_Calendar($client);\n\t\t\t$start = new Google_Service_Calendar_EventDateTime();\n\t\t\t$end = new Google_service_Calendar_EventDateTime();\n\n\t\t\t$event = new Google_Service_Calendar_Event();\n\n\t\t\t$summary = $user->name . \" \" . TemplateFunction::getLeaveTypeSummary($leave->leave_type);\n\n\t\t\tswitch($leave->leave_type){\n\t\t\t\tcase \"LEAVE\":\n\t\t\t\t\t$startDate = $endDate = $this->leave->leave_date;\n\t\t\t\t\t$start->setDate($startDate);\n\t\t\t\t\t$end->setDate($endDate);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"FH\":\n\t\t\t\t\t$startTime = $this->leave->leave_date. 'T'. $user->inTime. '.000'. Config::get('google.timezone');\n\t\t\t\t\t$inTime = strtotime($user->inTime);\n\t\t\t\t\t$outTime = strtotime($user->outTime);\n\t\t\t\t\t$diffTime = ($outTime - $inTime) /2;\n\t\t\t\t\t$outTime = date('H:i:s', ($inTime + $diffTime));\n\t\t\t\t\t$endTime = $this->leave->leave_date. 'T'. $outTime. '.000'. Config::get('google.timezone');\n\t\t\t\t\t$start->setDateTime($startTime);\n\t \t\t$end->setDateTime($endTime);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"SH\":\n\t\t\t\t\t$inTime = strtotime($user->inTime);\n\t\t\t\t\t$outTime = strtotime($user->outTime);\n\t\t\t\t\t$diffTime = ($outTime - $inTime) / 2;\n\t\t\t\t\t$inTime = date('H:i:s',($outTime - $diffTime));\n\t\t\t\t\t$startTime = $this->leave->leave_date. 'T'. $inTime. '.000'. Config::get('google.timezone');\n\t\t\t\t\t$endTime = $this->leave->leave_date. 'T'. $user->outTime. '.000'. Config::get('google.timezone');\n\t\t\t\t\t$start->setDateTime($startTime);\n\t\t\t\t\t$end->setDateTime($endTime);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"LONG\":\n\t\t\t\t\t$startDate = $this->leave->leave_date;\n\t\t\t\t\t$endDate = $this->leave->leave_to;\n\t\t\t\t\t$start->setDate($startDate);\n\t\t\t\t\t// Add one day to end date since google doesn't mark event for a day when any time is not provided after midnight\n\t\t\t\t\t$tempDate = new DateTime($endDate);\n\t\t\t\t\t$tempDate->add(new DateInterval('P1D')); // P1D means a period of 1 day\n\t\t\t\t\t$endDate = $tempDate->format('Y-m-d');\n\t\t\t\t\t$end->setDate($endDate);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$arrEventTime = array();\n\t\t\tif($leave->leave_type != \"CSR\"){\n\t\t\t\t$arrEventTime[0][\"start\"] = $start;\n\t\t\t\t$arrEventTime[0][\"end\"] = $end;\n\t\t\t\t// $event->setStart($start);\n\t\t\t\t// $event->setEnd($end);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$csrs = Csr::where('leave_id', '=', $leave->id)->get();\n\t\t\t\tforeach($csrs as $key => $csr){\n\t\t\t\t\t$startTime = $this->leave->leave_date. 'T'. $csr->from_time. '.000'. Config::get('google.timezone');\n\t\t $endTime = $this->leave->leave_date. 'T'. $csr->to_time. '.000'. Config::get('google.timezone');\n\t\t $start->setDateTime($startTime);\n\t\t $end->setDateTime($endTime);\n\t\t $arrEventTime[$key][\"start\"] = $start;\n\t\t $arrEventTime[$key][\"end\"] = $end;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tforeach($arrEventTime as $etime){\n\t\t\t\t\t$start = $etime[\"start\"];\n\t\t\t\t\t$end = $etime[\"end\"];\n\t\t\t\t\t$event->setStart($start);\n\t\t\t\t\t$event->setEnd($end);\n\t\t\t\t \t$event->setSummary($summary);\n\t\t\t\t\t$createdEvent = $cal->events->insert(Config::get('google.calendar_id'), $event);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception $ex){\n\t\t\t\tdie($ex->getMessage());\n\t\t\t}\n\t\t}\n\t}", "public function actionLeaveStatus() {\n if (Yii::$app->request->isAjax) {\n $leave_id = $_POST['leave_id'];\n $leave_model = StaffLeave::find()->where(['id' => $leave_id])->one();\n $leave_model->status = 2;\n $leave_model->approved_by = Yii::$app->user->identity->id;\n $leave_model->update();\n }\n }", "public function leave() {\n\t\t\n\t\n\t\t$data['employee'] = $this->leave->exeGetEmpToEdit($_SESSION['userId']);\t\n\t\t\t$this->mainCont = $this->load->view('pages/requests/leave', '', TRUE);\t\n\t\t\n\t}", "public function getLeaveDateTime(): ?DateTime {\n $val = $this->getBackingStore()->get('leaveDateTime');\n if (is_null($val) || $val instanceof DateTime) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'leaveDateTime'\");\n }", "public function setEndDate(DrupalDateTime $end_date = NULL);", "public function setEndDate(DrupalDateTime $end_date = NULL);", "public function store(Request $request)\n {\n \n $validator = $request->validate([\n 'title' => 'required|max:30',\n 'start_end_date' => 'required',\n 'reason' => 'required',\n 'employee_id' => 'required',\n ]);\n\n $date = explode('-',$request->start_end_date);\n $storeEmployeeLeave = new EmployeeLeave;\n $storeEmployeeLeave->employee_id = $request->employee_id; \n $storeEmployeeLeave->title = $request->title;\n $storeEmployeeLeave->from = date('Y-m-d',strtotime($date[0]));\n $storeEmployeeLeave->to = date('Y-m-d',strtotime($date[1]));\n $storeEmployeeLeave->type = $request->type;\n $date1=date_create($date[0]);\n $date2=date_create($date[1]);\n $diff=date_diff($date1,$date2);\n $total_days = $diff->format(\"%a\"); \n \n if ($request->type == \"1\" && $total_days == 0) {\n $storeEmployeeLeave->total_days = 1;\n } else if ($request->type == \"0\" && $total_days == 0) {\n $storeEmployeeLeave->total_days = 0.5;\n } else if ($request->type == \"0\" && $total_days > 0) {\n $count = ($total_days * 0.5);\n $storeEmployeeLeave->total_days = $count;\n } else {\n $storeEmployeeLeave->total_days = $total_days;\n }\n\n $storeEmployeeLeave->reason = $request->reason;\n $storeEmployeeLeave->status = 2;\n\n // echo '<pre>';\n // print_r($storeEmployeeLeave->total_days);\n // exit();\n \n $storeEmployeeLeave->save();\n // $admin = User::role('Admin')->get();\n // $employee = User::where('id',Auth::user()->id)->first();\n // $data = array();\n // $data['title'] = $request->title;\n // $data['from'] = date('Y-m-d',strtotime($date[0]));\n // $data['to'] = date('Y-m-d',strtotime($date[1]));\n // $data['total_days'] = $storeEmployeeLeave->total_days;\n // $data['reason'] = $request->reason;\n // $data['name'] = $employee->name;\n // $data['id'] = $employee->id;\n\n // $email = $employee->email;\n\n // foreach($admin as $val){\n // $data['adminName'] = $val->name;\n // $receiver = $val->email;\n // /*Mail::to($receiver)->send(new ApplyLeave($data));*/\n // // Mail::send(['html' => 'emails.sendLeaveToAdmin'], array('data'=>$data), function ($message) use ($email,$val) {\n // // $message->to($val->email);\n // // $message->setBody('', 'text/html');\n // // $message->from($email,'Test');\n // // $message->subject('Leave Details');\n // // });\n // }\n\n return Redirect::to('admin/employee/leaves')\n ->with('success', 'Employee Leave has been Added Successfully.'); \n }", "public function setEndDate($timestamp){\n\t\t$this->endDate = $timestamp;\n\t}", "public function approveLeaveStatus() {\n if ($this->session->userdata('user_login_access') != False) {\n $employeeId = $this->input->post('employeeId');\n $id = $this->input->post('lid');\n $value = $this->input->post('lvalue');\n $duration = $this->input->post('duration');\n $type = $this->input->post('type');\n $this->load->library('form_validation');\n $this->form_validation->set_error_delimiters();\n \n $data = array();\n $data = array(\n 'leave_status' => $value\n );\n $success = $this->leave_model->updateAplicationAsResolved($id, $data);\n if ($value == 'Approve') {\n $determineIfNew = $this->leave_model->determineIfNewLeaveAssign($employeeId, $type);\n\t\t\t\t// echo var_dump($determineIfNew);\n //How much taken\n $totalHour = $this->leave_model->getLeaveTypeTotal($employeeId, $type);\n\t\t\t\t// echo var_dump($totalHour);\n //If already taken some\n if($determineIfNew > 0) {\n $total = $totalHour[0]->totalTaken + $duration;\n $data = array();\n $data = array(\n 'hour' => $total\n );\n\t\t\t\t\t// echo var_dump($data);\n\n\t\t\t\t\t$success = $this->leave_model->updateLeaveAssignedInfo($employeeId, $type, $data);\n\t\t\t\t\t$earnval = $this->leave_model->emEarnselectByLeave($employeeId);\n\t\t\t\t\tif(!$earnval){\n\t\t\t\t\t\techo \"Employee already has a Leave record\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$data = array();\n\t\t\t\t\t\t$data = array(\n\t\t\t\t\t\t\t'present_date' => $earnval->present_date - ($duration/8),\n\t\t\t\t\t\t\t'hour' => $earnval->hour - $duration\n\t\t\t\t\t\t);\n\t\t\t\t\t\t// echo var_dump($data);exit;\n\t\t\t\t\t\t$success = $this->leave_model->UpdteEarnValue($employeeId,$data); \n\t\t\t\t\t\techo \"Updated successfully\";\n\t\t\t\t\t}\n } else {\n //If not taken yet\n $data = array();\n $data = array(\n 'emp_id' => $employeeId,\n 'type_id' => $type,\n 'hour' => $duration,\n 'dateyear' => date('Y')\n );\n $this->leave_model->insertLeaveAssignedInfo($data);\n echo \"Updated successfully\";\n }\n } else {\n echo \"Updated successfully\";\n\t\t\t\theader(\"Refresh: 2\");\n }\n }\n }", "public function setEmployee($value)\n {\n $this->employee = $value;\n }", "public function approve_leave($ecNm, $id) {\n\t\t$username=$this->Session->read('Auth.User.username');\n\t\t$date_approved = date('y-m-d');\n\t\t$time_out = date('H:i:s');\n\t\t$ip_add = $_SERVER['REMOTE_ADDR'];\n\t\t//find days left and validate with days applied\n\t\t$this->loadModel('LeaveDaysStat');\n\t\t$leaveAcrualsStats = $this->LeaveDaysStat->find('first',\n\t\t\t\t\t\t\tarray('conditions'=>array('LeaveDaysStat.ec_number'=>$ecNm)));\n\t\t$daysLeft = $leaveAcrualsStats['LeaveDaysStat']['days_left'];\n\t\t\n\t\t$this->loadModel('LeaveApplication');\n\t\t$approved = $this->LeaveApplication->find('list',\n\t\t\t\t\t\t\tarray('conditions'=>array('LeaveApplication.ec_number'=>$ecNm,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'LeaveApplication.approved'=>1)));\n\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t//find days applied\n\t\t$daysApld = $this->LeaveApplication->find('all',\n\t\t\t\t\t\t\tarray('conditions'=>array('LeaveApplication.ec_number'=>$ecNm,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'LeaveApplication.approved'=>1,'LeaveApplication.id'=>$id)));\n\t\t$daysApld = $daysApld[0]['LeaveApplication']['days_applied'];\n\t\t\t\t\t\t\t //debug($daysApld);die();\n\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\tif($daysApld > $daysLeft){\n\t\t\t$this->Session->setFlash(__('Staff Has fewer days left than days applied hence it cannot be approved'));\n\t\t\t$this->redirect(array('controller'=> 'staff_details', 'action' => 'user_search'));\n\t\t}\n\t\tif(!empty($approved)){\t\t\n\t\t//debug($id);die();\n\t\t\t$this->LeaveApplication->updateAll(\n\t\t\t\tarray('LeaveApplication.approved' =>3,\n\t\t\t\t\t 'LeaveApplication.approved_by'=>\"'$username'\",\n\t\t\t\t\t 'LeaveApplication.date_approved'=>\"'$date_approved'\",\n\t\t\t\t\t 'LeaveApplication.approve_ip_address'=>\"'$ip_add'\"\t\t\t\t\t \n\t\t\t\t\t ),\n\t\t\t\tarray('LeaveApplication.ec_number'=>$ecNm,\n\t\t\t\t\t 'LeaveApplication.id'=>$id,\n\t\t\t\t\t 'LeaveApplication.approved'=>1)\n\t\t\t\t );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t// deduct days if and only if the leave has been approved with HR\n\t\t\t\t\n\t\t\t\t/************************\n\t\t\t\t1. find days accruals ($ad) in (leave_days_stats) per staff\n\t\t\t\t2. find days taken ($dt) i.e those approved by HR(approved = 3) in (leave_applications) per staff\n\t\t\t\t3. update days left(balance) ($dL) i.e $ad - $dt and update in leave_days_stats i.e accruals_days($ad)\n\t\t\t\t4. acrruals days ($ad) in (accruals_days) = leave days due ($Ldd)\n\t\t\t\t5. adds 2.5 days for each staff in leave_days_stats for each run, NB one run per month for each staff\n\t\t\t\t\n\t\t\t\t******************************************************/\n\t\t\t\t//1. find days accruals ($ad) in (leave_days_stats) per staff\n\t\t\t\t\t\t\t\t\n\t\t\t\t$leaveAcrualsStats = $this->LeaveDaysStat->find('first',\n\t\t\t\t\t\t\tarray('conditions'=>array('LeaveDaysStat.ec_number'=>$ecNm)));\n\t\t\t\t$ad = $leaveAcrualsStats['LeaveDaysStat']['days_left'];\t\n\t\t\t\t// all days taken\n\t\t\t\t$dd = $leaveAcrualsStats['LeaveDaysStat']['days_taken'];\n\t\t\t\t$accrual_days = $leaveAcrualsStats['LeaveDaysStat']['accruals_days'];\n\t\t\t\t\n\t\t\t\t//2. find days taken ($dt) i.e those approved by HR(approved = 3) in (leave_applications) per staff\n\t\t\t\t//find leave applications for each staff in leave-application\n\t\t\t\t$leaveStats = $this->LeaveApplication->find('first',\n\t\t\t\t\t\t\tarray('conditions'=>array('LeaveApplication.ec_number'=>$ecNm,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'LeaveApplication.approved'=>3)));\n\t\t\t\t\t\t\t//array('group'=> 'ec_number'));\n\t\t\t\t$dt = $leaveStats['LeaveApplication']['days_applied'];\n\t\t\t\t//3. update days left(balance) ($dL) i.e $da - $dt and update in leave_days_stats \n\t\t\t\t$dL = $ad - $dt;\n\t\t\t\t\n\t\t\t\t// update LeaveDaysStat table with current days taken $dt + all days taken $dd = total days taken $tdt\n\t\t\t\t$tdt = $dt + $dd;\n\t\t\t\t$this->LeaveDaysStat->updateAll(\n\t\t\t\tarray('LeaveDaysStat.days_left'=>\"'$dL'\",\n\t\t\t\t\t //'LeaveDaysStat.accruals_days'=>\"'$dL'\",\n\t\t\t\t\t 'LeaveDaysStat.days_taken'=>\"'$tdt'\"\n\t\t\t\t\t ),\n\t\t\t\tarray('LeaveDaysStat.ec_number'=>$ecNm)\n\t\t\t\t);\n\t\t\t\t//update LeaveApplication table\n\t\t\t\t/*$this->LeaveApplication->updateAll(\n\t\t\t\tarray('LeaveApplication.days_accruals'=>\"'$accrual_days'\"),\n\t\t\t\tarray('LeaveApplication.ec_number'=>$ecNm,\n\t\t\t\t\t 'LeaveApplication.approved'=>3,\n\t\t\t\t\t 'LeaveApplication.id'=>$id)\n\t\t\t\t);*/\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//insert approved applications in approved_leave_applications table\n\t\t\t\t\n\t\t\t\t//========================save to Approved Leave Application Table=======================//\n\t\t\t\t$this->loadModel('ApprovedLeaveApplication');\n\t\t\t\t$approvedData = $this->LeaveApplication->find('first',\n\t\t\t\t\t\t\tarray('conditions'=>array('LeaveApplication.ec_number'=>$ecNm,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'LeaveApplication.id'=>$id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'LeaveApplication.approved'=>3)));\n\t\t\t\t\t\t\t\t\t\t\t\t\t //debug($approvedData);die();\n\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t//$appDate = $approvedData['LeaveApplication']['application_date'];\n\t\t\t\t$ecnumber = $approvedData['LeaveApplication']['ec_number'];\n\t\t\t\t$daysApplied = $approvedData['LeaveApplication']['days_applied'];\n\t\t\t\t$leave_address = $approvedData['LeaveApplication']['leave_address'];\n\t\t\t\t$type_leave = $approvedData['LeaveApplication']['type_leave'];\n\t\t\t\t$attach_cert = $approvedData['LeaveApplication']['attach_cert'];\n\t\t\t\t$salary_paid = $approvedData['LeaveApplication']['salary_paid'];\n\t\t\t\t$dL = $approvedData['LeaveApplication']['days_left'];\n\t\t\t\t//$accrual_days = $approvedData['LeaveApplication']['days_accruals'];\n\t\t\t\t$application_date = $approvedData['LeaveApplication']['application_date'];\n\t\t\t\t$startZuva = $approvedData['LeaveApplication']['leave_start_date'];\n\t\t\t\t$endZuva = $approvedData['LeaveApplication']['leave_end_date'];\n\t\t\t\t$aprv = $approvedData['LeaveApplication']['approved'];\n\t\t\t\t//debug($approvedData);die();\n\t\t\t\t$approved_by = $approvedData['LeaveApplication']['approved_by'];\n\t\t\t\t$date_approved = $approvedData['LeaveApplication']['date_approved'];\n\t\t\t\t$approve_ip_address = $approvedData['LeaveApplication']['approve_ip_address'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t //debug($approvedData);die();\n\t\t\t\t\t $this->ApprovedLeaveApplication->create();\n\t\t\t\t\t\t$this->ApprovedLeaveApplication->set(array(\n\t\t\t\t\t\t\t\t\t'application_date' => $application_date,\n\t\t\t\t\t\t\t\t\t'ec_number' => $ecNm,\n\t\t\t\t\t\t\t\t\t'days_applied' => $daysApplied,\n\t\t\t\t\t\t\t\t\t'leave_address' => $leave_address,\n\t\t\t\t\t\t\t\t\t'type_leave' => $type_leave,\n\t\t\t\t\t\t\t\t\t'attach_cert' => $attach_cert,\n\t\t\t\t\t\t\t\t\t'salary_paid' => $salary_paid,\n\t\t\t\t\t\t\t\t\t'days_left' => $dL,\n\t\t\t\t\t\t\t\t\t//'days_accruals' => $accrual_days,\n\t\t\t\t\t\t\t\t\t'leave_start_date'=> $startZuva,\n\t\t\t\t\t\t\t\t\t'approved_by'=> $approved_by,\n\t\t\t\t\t\t\t\t\t'date_approved'=> $date_approved,\n\t\t\t\t\t\t\t\t\t'approve_ip_address'=> $approve_ip_address,\n\t\t\t\t\t\t\t\t\t'leave_end_date'=> $endZuva,\n\t\t\t\t\t\t\t\t\t'approved'=>$aprv,\n\t\t\t\t\t\t\t\t\t\t\t\t));\n\t\t\t\t\t\t $this->ApprovedLeaveApplication->save();\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t //insert in monthly_taken_days table\n\t\t\t\t//get month as number\n\t\t\t\t$thisMonth = date(\"n\");\n\t\t\t\t$this->loadModel('MonthlyTakenDay');\n\t\t\t\t$monthDaysTaken = $this->MonthlyTakenDay->find('first',\n\t\t\t\t\t\t\tarray('conditions'=>array('MonthlyTakenDay.ec_number'=>$ecNm,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'MonthlyTakenDay.month'=>$thisMonth)));\n\t\t\t\tif($monthDaysTaken == false){\t\n\n $dddd = $this->LeaveDaysStat->find('first',\n\t\t\t\t\t\t\tarray('conditions'=>array('LeaveDaysStat.ec_number'=>$ecNm)));\n\t\t $ddL = $dddd['LeaveDaysStat']['days_left'];\t\t\t\t\n\t\t\t\t\t\t$this->MonthlyTakenDay->create();\n\t\t\t\t\t\t$this->MonthlyTakenDay->set(array(\n\t\t\t\t\t\t\t\t\t'ec_number' => $ecNm,\n\t\t\t\t\t\t\t\t\t'days_taken' => $daysApplied,\n\t\t\t\t\t\t\t\t\t'balance_days' => $ddL,\n\t\t\t\t\t\t\t\t\t'month' => $thisMonth,\n\t\t\t\t\t\t\t\t\t));\n\t\t\t\t\t\t $this->MonthlyTakenDay->save();\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t//find days applied for the current month so far and add with days applied\n\t\t\t\t\t$myDaysThisMnth = $monthDaysTaken['MonthlyTakenDay']['days_taken'];\n\t\t\t\t\t$balance_days = $monthDaysTaken['MonthlyTakenDay']['balance_days'];\n\t\t\t\t\t$totalDays = $myDaysThisMnth + $daysApplied;\n\t\t\t\t\t$totalBalanceDays = $balance_days - $daysApplied;\n\t\t\t\t\t//update table\n\t\t\t\t$this->MonthlyTakenDay->updateAll(\n\t\t\t\tarray('MonthlyTakenDay.days_taken'=>\"'$totalDays'\",\n\t\t\t\t\t 'MonthlyTakenDay.balance_days'=>\"'$totalBalanceDays'\"),\n\t\t\t\tarray('MonthlyTakenDay.ec_number'=>$ecNm,\n\t\t\t\t\t 'MonthlyTakenDay.month'=>$thisMonth)\n\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t \n\t\t\t\t\t\t //delete entry in leave application when approved is successfully\n\t\t\t $this->LeaveApplication->deleteAll(array('LeaveApplication.ec_number'=>$ecnumber,\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'LeaveApplication.id'=>$id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'LeaveApplication.approved'=>3));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->Session->setFlash('The leave application has been approved successfully','default',array('class' => 'success'));\n\t\t\t\t$this->redirect(array('controller'=> 'staff_details', 'action' => 'user_search'));\t\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t$this->Session->setFlash(__('The leave application has not been approved, because either supervisor did not approve it yet, or you have already approved it'));\n\t\t\t\t\t$this->redirect(array('controller'=> 'staff_details', 'action' => 'user_search'));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t}" ]
[ "0.6685177", "0.6675276", "0.5825368", "0.576074", "0.57272965", "0.55508584", "0.5528377", "0.5408202", "0.5393842", "0.53571874", "0.52270144", "0.5223678", "0.5208811", "0.52005684", "0.5171881", "0.5131437", "0.51173466", "0.5088624", "0.50838435", "0.5079707", "0.5070688", "0.5023349", "0.49943617", "0.4981109", "0.4981109", "0.4977127", "0.49675366", "0.49628034", "0.49323598", "0.4927935" ]
0.74131733
0
Sets the employeeOrgData property value. Represents organization data (e.g. division and costCenter) associated with a user. Supports $filter (eq, ne, not , ge, le, in).
public function setEmployeeOrgData(?EmployeeOrgData $value): void { $this->getBackingStore()->set('employeeOrgData', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmployeeOrgData(): ?EmployeeOrgData {\n $val = $this->getBackingStore()->get('employeeOrgData');\n if (is_null($val) || $val instanceof EmployeeOrgData) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'employeeOrgData'\");\n }", "function addOrganization($orgId, $orgData,$group='')\n {\n $_userOrganizations = $this->getVar(\"userOrganizations\");\n if (empty($_userOrganizations))\n $_userOrganizations = array();\n\n\n // Default Organization\n if(count($_userOrganizations)==0)\n $_userOrganizations['__org__'] = $orgId;\n\n $_userOrganizations['__orgs__'][$orgId]= $orgData;\n if(!strlen($group)) $group = '__OTHER__';\n $_userOrganizations['__groups__'][$group][$orgId]= true;\n\n $this->setVar(\"userOrganizations\", $_userOrganizations);\n }", "public function setExchangeOrganization($val)\n {\n $this->_propDict[\"exchangeOrganization\"] = $val;\n return $this;\n }", "public function Organization( $aOrg )\n\t{\n\t\tif( trim( $aOrg != \"\" ) )\n\t\t{\n\t\t\t$this->_xtra_headers['Organization'] = $aOrg;\n\t\t}\n\t}", "abstract protected function filterEmployment($data);", "public function saveOrganization($data) {\n $organizationData = $this->newEntity($data);\n return $save_data = $this->save($organizationData);\n }", "public function organization($sOrg)\n {\n $this->sData .= 'ORG:'.$sOrg.\"\\n\";\n return $this;\n }", "public function setOrgDeviceAccess($data) {\t\n\t\t$collection = $this->db->orgMaster;\n\t\t//print_r($data['serverData']);\n\t\t$oname = $data['serverData']['oname'];\t\t\n\t\t$access = $data['serverData']['dAccess'];\n\t\t\n\t\t$response =$collection->update(\n\t\t array('name' => $oname),\n\t\t array(\n\t\t '$set' => array(\"device\" => $access),\n\t\t ),\n\t\t array(\"upsert\" => false)\n\t\t);\n\t\t\n\t\tif($response['n'] == 0){\n\t\t\t// if no record updated\n\t\t\thttp_response_code(202);\n\t\t}\t\t\n\t\theader('Content-Type: application/json');\n\t\techo json_encode( $response, JSON_PRETTY_PRINT);\n\t\t\n\t}", "public function setOrganization($var)\n {\n GPBUtil::checkString($var, True);\n $this->organization = $var;\n\n return $this;\n }", "public function getorg($data) {\t\n\t\n\t\t$collection = $this->db->orgMaster;\n\t\tif($data == 'addUser'){\n\t\t\t//get or name only\n\t\t\t$readings = $collection->find();\n\t\t\t$result = Array();\t\t\n\t\t\tforeach ( $readings as $id => $value )\n\t\t\t{\n\t\t\t\tunset($value[_id]);\n\t\t\t\tunset($value[device]);\n\t\t\t\tunset($value[cperson]);\n\t\t\t\tunset($value[email]);\n\n\n\n\t\t\t\tarray_push($result, $value);\t\t\t\n\n\t\t\t}\t\n\t\t}\n\t\telse{\n\t\t\t//getting all properties of org\n\t\t\t$readings = $collection->find();\n\t\t\t$result = Array();\t\t\n\t\t\tforeach ( $readings as $id => $value )\n\t\t\t{\n\t\t\t\tunset($value[_id]);\n\t\t\t\tarray_push($result, $value);\t\t\t\n\t\n\t\t\t}\t\n\t\t\t}\t\t\t\n\t\n\theader('Content-Type: application/json');\n\techo json_encode($result,JSON_PRETTY_PRINT);\n\t}", "public function setEmployees(Collection $employees)\n {\n /* todo: Throw exception or at least log incidents, where employees are added to \"hiring orgs\" */\n if (!$this->isHiringOrganization()) {\n $this->employees = $employees;\n }\n\n return $this;\n }", "public function SetDefaultOrgId()\n\t{\n\t\t// First check that the organization CAN be fetched from the target class\n\t\t//\n\t\t$sClass = $this->Get('item_class');\n\t\t$aCallSpec = array($sClass, 'MapContextParam');\n\t\tif (is_callable($aCallSpec))\n\t\t{\n\t\t\t$sAttCode = call_user_func($aCallSpec, 'org_id'); // Returns null when there is no mapping for this parameter\t\t\t\t\t\n\t\t\tif (MetaModel::IsValidAttCode($sClass, $sAttCode))\n\t\t\t{\n\t\t\t\t// Second: check that the organization CAN be fetched from the current user\n\t\t\t\t//\n\t\t\t\tif (MetaModel::IsValidClass('Person'))\n\t\t\t\t{\n\t\t\t\t\t$aCallSpec = array($sClass, 'MapContextParam');\n\t\t\t\t\tif (is_callable($aCallSpec))\n\t\t\t\t\t{\n\t\t\t\t\t\t$sAttCode = call_user_func($aCallSpec, 'org_id'); // Returns null when there is no mapping for this parameter\t\t\t\t\t\n\t\t\t\t\t\tif (MetaModel::IsValidAttCode($sClass, $sAttCode))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// OK - try it\n\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t$oCurrentPerson = MetaModel::GetObject('Person', UserRights::GetContactId(), false);\n\t\t\t\t\t\t\tif ($oCurrentPerson)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t \t\t$this->Set('item_org_id', $oCurrentPerson->Get($sAttCode));\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function setOrganization($organization)\n {\n $this->organization = $organization;\n }", "public function setOrganisation(\\Digitaliseringskataloget\\SF1500\\Organisation6\\Organisation\\Organisation $organisation)\n {\n $this->organisation = $organisation;\n return $this;\n }", "function Organization( $org )\n {\n \tif( trim( $org != \"\" ) )\n \t\t$this->xheaders['Organization'] = $org;\n }", "public function setCodOrg($codOrg) {\n $this->codOrg = $codOrg;\n }", "public function setEmployee($value)\n {\n $this->employee = $value;\n }", "public function getorg($data){\n\t\t$reqBearer = $this->bearer;\t\n\t\t$this->model->getorg($reqBearer,$data);\n\t\t\n\t}", "public function setOrganization(array $organization)\n {\n $this->organization = $organization;\n return $this;\n }", "public function setEmployer(ECashCra_Data_Employer $employer)\n\t{\n\t\t$this->employer = $employer;\n\t}", "public function setUserId($data)\n {\n\n if ($this->_userId != $data) {\n $this->_logChange('userId');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_userId = $data;\n\n } else if (!is_null($data)) {\n $this->_userId = (int) $data;\n\n } else {\n $this->_userId = $data;\n }\n return $this;\n }", "public function setHiringOrganization($value)\n {\n $this->hiringOrganization = $value;\n }", "public function setEmployeeEmail($email) { $this->employeeEmail = $email; }", "public function setEmail($data)\n {\n\n if (is_null($data)) {\n throw new \\InvalidArgumentException(_('Required values cannot be null'));\n }\n if ($this->_email != $data) {\n $this->_logChange('email');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_email = $data;\n\n } else if (!is_null($data)) {\n $this->_email = (string) $data;\n\n } else {\n $this->_email = $data;\n }\n return $this;\n }", "private function updateEmployee() {\n\t\tif ($this->ltype->data[0]['isAnnual'] == 1){\n\t\t\t$sql = \"UPDATE annual_leave a, business_years b SET a.leave_left = a.leave_left - 0.5 \";\n\t\t\t$sql .= \" WHERE a.emp_id =\".$this->page->ctrl['subrecord'].\" AND a.year_id = b.business_year_id AND b.year_start<='\".$this->data[0]['half_date'].\"'\";\n\t\t\t$sql .= \" AND b.year_end >= '\".$this->data[0]['half_date'].\"'\";\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "abstract function setDept($orgCode);", "public function getOrganization()\n {\n return $this->organization;\n }", "public function getOrganization()\n {\n return $this->organization;\n }", "public function getOrganization()\n {\n return $this->organization;\n }", "public function getOrganization()\n {\n return $this->organization;\n }" ]
[ "0.56061053", "0.5357163", "0.5197642", "0.5158535", "0.49814302", "0.49397355", "0.49178174", "0.4897411", "0.48910284", "0.48769054", "0.4789799", "0.47793815", "0.47727993", "0.47569263", "0.47381335", "0.47097707", "0.4673346", "0.46709484", "0.46482828", "0.46447527", "0.4644674", "0.46335286", "0.46303093", "0.46115175", "0.4576417", "0.455892", "0.45085838", "0.45085838", "0.45085838", "0.45085838" ]
0.75642455
0
Sets the employeeType property value. Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor. Supports $filter (eq, ne, not , ge, le, in, startsWith).
public function setEmployeeType(?string $value): void { $this->getBackingStore()->set('employeeType', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEmploymentType($value)\n {\n $this->employmentType = $value;\n }", "public function getEmployeeType()\n\t{\n\t\t$__aEmployeeType = array('Management','Staff','Worker');\n\t\treturn $__aEmployeeType;\n\t}", "public function setEmployee($value)\n {\n $this->employee = $value;\n }", "public function set_type ($type)\n {\n if ($type)\n {\n $this->restrict (\"entry_type = '$type'\");\n }\n }", "public function getEntityType(){\n\t\tif (empty($this->_type)){\n\t\t\t$this->setType(\\Foggyline\\Office\\Model \\Employee::ENTITY);\n\t\t}\n\t\treturn parent::getEntityType();:\n\t}", "public function addToEmployer(\\Devlabs91\\TravelgateNotify\\Models\\Ota\\EmployerType $employer)\n {\n $this->employer[] = $employer;\n return $this;\n }", "public function setExpressionType($expressionType)\n {\n $this->expressionType = $expressionType;\n return $this;\n }", "public function setExpressionType(O\\Expression $expression, IType $type);", "public function getEntityType()\n {\n if (empty($this->_type)) {\n $this->setType(\\Hans\\Office\\Model\\Employee::ENTITY);\n }\n return parent::getEntityType();\n }", "public function setTypeFilter(?LoyaltyEventTypeFilter $typeFilter): void\n {\n $this->typeFilter = $typeFilter;\n }", "public function getEmploymentType()\n {\n return $this->employmentType;\n }", "public function setRoomOfferType($roomOfferType)\n {\n $this->roomOfferType = $roomOfferType;\n }", "public function setEnrolmentType($enrolmentType)\n\t{\n\t $this->enrolmentType = $enrolmentType;\n\t}", "public function setEmployee(\\Diadoc\\Api\\Proto\\Invoicing\\Employee $value=null)\n {\n return $this->set(self::EMPLOYEE, $value);\n }", "public function set_type ($type) {}", "public function set_type($type) {\n\n $this->type = $type;\n\n }", "public function set_filter_type($value){\n\t\t\t\t$this->set_mapped_property('filter_type', ( is_object( $value ) ) ? get_class( $value ) : $value );\n }", "public function setEntityType($entity_type) {\n $this->entity_type = $entity_type;\n\n return $this;\n }", "public function setType( $type ){\r\n if( empty( $type ) ) return $this->setDefaultType();\r\n $type = strtolower( (string)$type );\r\n foreach( $this->object_type_lists as $key => $name )\r\n {\r\n if( $type == $name )\r\n {\r\n $this->type = $key;\r\n return $this;\r\n }\r\n }\r\n $this->type = strtoupper( $type[0] );\r\n return $this;\r\n }", "public function setEcrType($ecrType) {\n $this->ecrType = $ecrType;\n return $this;\n }", "public function set_type(string $type);", "public function set_type($type)\r\n {\r\n $this->type = $type;\r\n }", "public function setObjectType($type);", "public function setType($type) {\n // Make sure the type is correct\n if ($type == \"alone\" or $type == \"slurm\" or $type == \"pbs\" or $type == \"ge\") {\n $this->type = $type;\n }\n // TODO: how to setters return errors.\n }", "public function set_type($type)\n {\n $this->type = $type;\n }", "public function set_type($type)\n {\n $this->type = $type;\n }", "public function getEmployeeType(): ?string {\n $val = $this->getBackingStore()->get('employeeType');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'employeeType'\");\n }", "protected function setBeeType($type)\n {\n $this->type = $type;\n }", "public function setEmployeeName($name) { $this->employeeName = $name; }", "public function set_input_type($input_type)\n {\n $this->input_type = $input_type;\n }" ]
[ "0.6547973", "0.6005568", "0.5584978", "0.5404578", "0.5375776", "0.5372275", "0.5355384", "0.53339964", "0.5310478", "0.5254794", "0.5198535", "0.5155247", "0.5057669", "0.49818146", "0.49383295", "0.4924103", "0.49176595", "0.4912162", "0.49120435", "0.4888458", "0.48797908", "0.48770386", "0.48721084", "0.48596215", "0.4854948", "0.4854948", "0.48374096", "0.48344988", "0.48285183", "0.48281845" ]
0.6597117
0
Sets the print property value. The print property
public function setEscapedPrint(?UserPrint $value): void { $this->getBackingStore()->set('escapedPrint', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPrint($flag = true)\n {\n $this->print = $flag;\n\n return $this;\n }", "public function mode_print (){\n extract( $this->kernel->params );\n\n $this->mode_view();\n $this->template = MODE_PRINT;\n\n }", "public function setPrintIDs($bValue) {\n\t\t$bValue = ($bValue ? true : false);\n\t\t$this->PrintIDs = $bValue;\n\t}", "function toPrint($printPath=false) {\n echo \"[$this->code] $this->name \";\n if ($printPath) {\n echo $this->getAbsolutePath();\n }\n echo \"\\n\";\n }", "function AutoPrint($printer='')\n {\n if($printer)\n {\n $printer = str_replace('\\\\', '\\\\\\\\', $printer);\n $script = \"var pp = getPrintParams();\";\n $script .= \"pp.interactive = pp.constants.interactionLevel.full;\";\n $script .= \"pp.printerName = '$printer'\";\n $script .= \"print(pp);\";\n }\n else\n $script = 'print(true);';\n $this->IncludeJS($script);\n }", "function AutoPrint($printer='')\n {\n if($printer)\n {\n $printer = str_replace('\\\\', '\\\\\\\\', $printer);\n $script = \"var pp = getPrintParams();\";\n $script .= \"pp.interactive = pp.constants.interactionLevel.full;\";\n $script .= \"pp.printerName = '$printer'\";\n $script .= \"print(pp);\";\n }\n else\n $script = 'print(true);';\n $this->IncludeJS($script);\n }", "public function tprint_print();", "public function self_print();", "public function setPrintedSheet(PrintedSheet $printedSheet)\n {\n $this->printedSheet = $printedSheet;\n }", "function customize_print()\n {\n echo \"<p style=font-size:\".$this->font_size.\";color:\".$this->font_color.\";>\".$this->string_value.\"</p>\";\n }", "public function printPage($value)\n {\n $this->setProperty('printPage', $value);\n return $this;\n }", "function printprop(){\n echo \"this is printprop method\";\n }", "public function print(string $value);", "public function printValue($name) {\n\t\tdebug($this->$name);die();\n\t}", "public function printEdition($value)\n {\n $this->setProperty('printEdition', $value);\n return $this;\n }", "public function printObject()\n\t{\n\t\t/**\n\t\t * @var $ilToolbar ilToolbarGUI\n\t\t */\n\t\tglobal $ilToolbar;\n\n\t\t$ilToolbar->setFormAction($this->ctrl->getFormAction($this, 'print'));\n\t\trequire_once 'Services/Form/classes/class.ilSelectInputGUI.php';\n\t\t$mode = new ilSelectInputGUI($this->lng->txt('output_mode'), 'output');\n\t\t$mode->setOptions(array(\n\t\t\t'overview' => $this->lng->txt('overview'),\n\t\t\t'detailed' => $this->lng->txt('detailed_output_solutions'),\n\t\t\t'detailed_printview' => $this->lng->txt('detailed_output_printview')\n\t\t));\n\t\t$mode->setValue(ilUtil::stripSlashes($_POST['output']));\n\t\t\n\t\t$ilToolbar->setFormName('printviewOptions');\n\t\t$ilToolbar->addInputItem($mode, true);\n\t\t$ilToolbar->addFormButton($this->lng->txt('submit'), 'print');\n\n\t\tinclude_once \"./Modules/TestQuestionPool/classes/tables/class.ilQuestionPoolPrintViewTableGUI.php\";\n\t\t$table_gui = new ilQuestionPoolPrintViewTableGUI($this, 'print', $_POST['output']);\n\t\t$data = $this->object->getPrintviewQuestions();\n\t\t$totalPoints = 0;\n\t\tforeach($data as $d)\n\t\t{\n\t\t\t$totalPoints += $d['points'];\n\t\t}\n\t\t$table_gui->setTotalPoints($totalPoints);\n\t\t$table_gui->initColumns();\n\t\t$table_gui->setData($data);\n\t\t$this->tpl->setContent($table_gui->getHTML());\n\t}", "public function _print(){\n }", "public function getEnforcePrint()\n {\n return (bool)$this->enforcePrint;\n }", "public function getIsPrinted() {\n return $this->isPrinted;\n }", "public function print($content)\n {\n\n $this->printer->sendPrintJob($content);\n }", "public function setPrintBlocked($val)\n {\n $this->_propDict[\"printBlocked\"] = boolval($val);\n return $this;\n }", "public function printDialog() { }", "public function printAction()\n {\n $this->_initInvoice();\n parent::printAction();\n }", "function set_display($disp_value){\n\t\t$this->display = $disp_value;\n\t}", "public function emulatePrintMediaType(): self\n {\n $this->formValue('emulatedMediaType', 'print');\n\n return $this;\n }", "public function setIsPrinted($isPrinted) {\n $this->isPrinted = $isPrinted;\n return $this;\n }", "public static function dump($toPrint)\n\t{\n\t\techo '<pre>';\n\t\t\tprint_r($toPrint);\n\t\techo '</pre>';\n\t}", "public function testPrintFormWorks() {\n $this->drupalLogin($this->user);\n $this->drupalGet('admin/config/user-interface/printable/print');\n $this->assertResponse(200);\n\n $config = $this->config('printable.settings');\n $this->assertFieldByName('print_html_sendtoprinter', $config->get('printable.send_to_printer'), 'The field was found with the correct value.');\n\n $this->drupalPostForm(NULL, array(\n 'print_html_sendtoprinter' => 1,\n ), t('Submit'));\n $this->drupalGet('admin/config/user-interface/printable/print');\n $this->assertResponse(200);\n $this->assertFieldByName('print_html_sendtoprinter', 1, 'The field was found with the correct value.');\n }", "public function printSection($value)\n {\n $this->setProperty('printSection', $value);\n return $this;\n }", "function AutoPrintToPrinter($server, $printer, $dialog=false)\n{\n\t$script = \"var pp = getPrintParams();\";\n\tif($dialog)\n\t\t$script .= \"pp.interactive = pp.constants.interactionLevel.full;\";\n\telse\n\t\t$script .= \"pp.interactive = pp.constants.interactionLevel.automatic;\";\n\t$script .= \"pp.printerName = '\\\\\\\\\\\\\\\\\".$server.\"\\\\\\\\\".$printer.\"';\";\n\t$script .= \"print(pp);\";\n\t$this->IncludeJS($script);\n}" ]
[ "0.6667639", "0.6058066", "0.5906801", "0.58520687", "0.5766289", "0.5766289", "0.57533735", "0.5673905", "0.56400037", "0.5619464", "0.55739415", "0.55540323", "0.55384266", "0.5527381", "0.55217755", "0.549429", "0.5435151", "0.54174674", "0.53841776", "0.53838086", "0.53642106", "0.5300437", "0.52826184", "0.5277816", "0.5206804", "0.5176239", "0.5126565", "0.512592", "0.51234335", "0.512189" ]
0.65067196
1
Sets the externalUserState property value. For an external user invited to the tenant using the invitation API, this property represents the invited user's invitation status. For invited users, the state can be PendingAcceptance or Accepted, or null for all other users. Supports $filter (eq, ne, not , in).
public function setExternalUserState(?string $value): void { $this->getBackingStore()->set('externalUserState', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setExternal( $bExternal ) {\n\t\t$this->bExternal = $bExternal;\n\t\treturn $this;\n\t}", "public function setExternalUserData($externalUserData)\n {\n $this->externalUserData = $externalUserData;\n return $this;\n }", "public function setIsExternal($external);", "public function onExternalUserUpdate(ExternalUserWasUpdated $event) {\n\n logger('user updated');\n \n if($event->user->profile[0]->notifica_spedita == 0 && $event->user->active == 1 ){\n $this->mailer->sendMailForAccountActivation($event->user);\n $event->user->profile[0]->update(['notifica_spedita' => 1]);\n }\n\n }", "function setExternalPartnerId($a_iExternalPartnerId)\n {\n $this->_iExternalPartnerId = is_null($a_iExternalPartnerId) ? NULL : (int) $a_iExternalPartnerId;\n $this->setSearchParameter('external_partner_id', (int) $this->_iExternalPartnerId, is_null($this->_iExternalPartnerId) ? self::CONDITION_IS_NULL : self::CONDITION_EQUALS);\n }", "public function setExternalId($externalId)\n {\n $this->externalId = $externalId;\n return $this;\n }", "public function setExternalId($externalId)\n {\n $this->externalId = $externalId;\n\n return $this;\n }", "public function onUserStateChange(UserStateChanged $event): void\n {\n if (!$this->mailerActive()) {\n return;\n }\n\n if ($event->old_state === UserState::PENDING) {\n if ($event->user->state === UserState::ACTIVE) {\n $email = new \\App\\Mail\\UserRegistered($event->user,\n 'Your registration has been accepted!');\n } elseif ($event->user->state === UserState::REJECTED) {\n $email = new \\App\\Mail\\UserRejected($event->user);\n }\n $this->sendEmail($event->user->email, $email);\n } // TODO: Other state transitions\n elseif ($event->old_state === UserState::ACTIVE) {\n Log::info('User state change from active to ??');\n }\n }", "public function setExternalUserStateChangeDateTime(?string $value): void {\n $this->getBackingStore()->set('externalUserStateChangeDateTime', $value);\n }", "public function setInvited($isInvited)\n {\n $this->isInvited = $isInvited;\n }", "public function setActiveState($bState){\n if(!empty($this->id)){\n $oQuery =\n DB_Query::getUpdateQuery(\n 'cms_members',\n array(\n 'active' => (int)$bState,\n 'status' => DB_Query::getSnippet('`status` | 2')\n ),\n DB_Query::getSnippet('WHERE `id` = %s')->q($this->id)\n );\n AMI::getSingleton('db')->query($oQuery);\n }else{\n throw new AMI_ModTableItemException('Member activate failed');\n }\n return $this;\n }", "public static function setStateUser(User $user)\n {\n static::$stateUser = $user;\n }", "function update_loggedin_user_status($fbId,$email) {\n\t// marking the status as active and updating his email address if the user in presend in database \n\t$check_for_user_existence = Zzuser::model()->findByAttributes(array('user_fbid'=>$fbId,'zzuser_status'=>'invited'));\n\tif(isset($check_for_user_existence)) {\n\t\t$check_for_user_existence->user_email = $email;\n\t\t$check_for_user_existence->user_handle = $email;\n\t\t$check_for_user_existence->zzuser_status = 'active';\n\t\t$check_for_user_existence->save();\n\t}\n}", "function setExternalReference($inExternalReference) {\n\t\t$this->getParamSet()->setParam(self::PARAM_EXTERNAL_REF, $inExternalReference);\n\t\treturn $this;\n\t}", "function setOnState($state) {\n if(is_bool($state)) {\n $conn = new ApiConnection();\n $URL = \"lights/\" . $this->lightID . \"/state\";\n $state = $state ? 'true' : 'false';\n $data = '{\"on\": ' . $state .'}';\n $result = $conn->sendPutCmd($URL, $data);\n return $result;\n } else {\n return null;\n }\n }", "public function setObfuscatedExternalUserId($var)\n {\n GPBUtil::checkString($var, True);\n $this->obfuscated_external_user_id = $var;\n\n return $this;\n }", "public function setUser_email_status($user_email_status){\n $this->user_email_status = $user_email_status;\n }", "function UpdateUserFromExternal( &$usr ) {\n global $c;\n /**\n * When we're doing the create we will usually need to generate a user number\n */\n if ( !isset($usr->user_no) || intval($usr->user_no) == 0 ) {\n $qry = new AwlQuery( \"SELECT nextval('usr_user_no_seq');\" );\n $qry->Exec('Login',__LINE__,__FILE__);\n $sequence_value = $qry->Fetch(true); // Fetch as an array\n $usr->user_no = $sequence_value[0];\n }\n\n $qry = new AwlQuery('SELECT * FROM usr WHERE user_no = :user_no', array(':user_no' => $usr->user_no) );\n if ( $qry->Exec('Login',__LINE__,__FILE__) && $qry->rows() == 1 ) {\n $type = \"UPDATE\";\n if ( $old = $qry->Fetch() ) {\n $changes = false;\n foreach( $usr AS $k => $v ) {\n if ( $old->{$k} != $v ) {\n $changes = true;\n dbg_error_log(\"Login\",\"User '%s' field '%s' changed from '%s' to '%s'\", $usr->username, $k, $old->{$k}, $v );\n break;\n }\n }\n if ( !$changes ) {\n dbg_error_log(\"Login\",\"No changes to user record for '%s' - leaving as-is.\", $usr->username );\n if ( isset($usr->active) && $usr->active == 'f' ) return false;\n return; // Normal case, if there are no changes\n }\n else {\n dbg_error_log(\"Login\",\"Changes to user record for '%s' - updating.\", $usr->username );\n }\n }\n }\n else\n $type = \"INSERT\";\n \n $params = array();\n if ( $type != 'INSERT' ) $params[':user_no'] = $usr->user_no;\n $qry = new AwlQuery( sql_from_object( $usr, $type, 'usr', 'WHERE user_no= :user_no' ), $params );\n $qry->Exec('Login',__LINE__,__FILE__);\n\n /**\n * We disallow login by inactive users _after_ we have updated the local copy\n */\n if ( isset($usr->active) && ($usr->active === 'f' || $usr->active === false) ) return false;\n\n if ( $type == 'INSERT' ) {\n $qry = new AwlQuery( 'INSERT INTO principal( type_id, user_no, displayname, default_privileges) SELECT 1, user_no, fullname, :privs::INT::BIT(24) FROM usr WHERE username=:username',\n array( ':privs' => privilege_to_bits($c->default_privileges), ':username' => $usr->username) );\n $qry->Exec('Login',__LINE__,__FILE__);\n CreateHomeCalendar($usr->username);\n }\n else if ( $usr->fullname != $old->{'fullname'} ) {\n // Also update the displayname if the fullname has been updated.\n $qry->QDo( 'UPDATE principal SET displayname=:new_display WHERE user_no=:user_no',\n array(':new_display' => $usr->fullname, ':user_no' => $usr->user_no)\n );\n }\n}", "protected function setHasExternalAccount(bool $hasExternalAccount) {\r\n $this->hasExternalAccount = $hasExternalAccount;\r\n return $this;\r\n }", "public function __construct($user)\n {\n $this->im_invited = $user->invited;\n }", "public function setExternal($v) {\n $this->external = $v;\n return $this;\n }", "public function setExternal($v) {\n $this->external = $v;\n return $this;\n }", "public function updateExternalAccount($user, $acct)\n\t{\n\t\t//TODO: Implement this service call.\n\t\treturn false;\t\t\t\n\t}", "public function addStateFilter()\n {\n $this->addFieldToFilter('main_table.state',\n array(\n 'in' => array(\n PostFinanceCheckout_Payment_Model_Entity_PaymentMethodConfiguration::STATE_ACTIVE,\n PostFinanceCheckout_Payment_Model_Entity_PaymentMethodConfiguration::STATE_INACTIVE\n )\n ));\n return $this;\n }", "public function changeReservationState($state, $idActivity, $idUser)\n {\n $sql = \"UPDATE reservation SET state = :state WHERE idActivity = :idActivity AND idUser =:idUser\";\n // create array of fields for the change state of the reservation\n $fields = array(\n 'state' => $state,\n 'idActivity' => $idActivity,\n 'idUser' => $idUser);\n\n //var_dump($fields);\n\n // put the fields and the sql query + execute query\n $this->query($sql, $fields);\n }", "public function activateState($state)\n {\n $this->state = $state;\n }", "public function setUserStatus($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->user_status !== $v) {\n\t\t\t$this->user_status = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::USER_STATUS;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setIsGuestUser($value)\n {\n $this->setProperty(\"IsGuestUser\", $value, true);\n }", "public function changeState() {\n $user = User::findorFail(request()->input(\"id\"));\n self::checkView($user);\n $user->state = ((integer)request()->input(\"state\") == UserState::DISABLE)\n ? UserState::DISABLE\n : UserState::UNTRUSTED;\n $user->save();\n\n if (!$user)\n return redirect()\n ->back()\n ->with([\n \"message\" => __(\"dashboard-admin/user.change-state.failed-$user->state\"),\n \"type\" => \"warning\"\n ]);\n\n return redirect()\n ->back()\n ->with([\n \"message\" => __(\"dashboard-admin/user.change-state.success-$user->state\"),\n \"type\" => \"success\"\n ]);\n }", "public function onExternalUserCreation(ExternalUserWasCreated $event) {\n\n logger('user created');\n\n $this->mailer->sendMailForExternalUserCreation($event->user);\n\n }" ]
[ "0.5278245", "0.5107888", "0.50622314", "0.49375805", "0.47121814", "0.46886927", "0.46089947", "0.46028894", "0.45900482", "0.45885155", "0.45746362", "0.45689774", "0.44975448", "0.44887447", "0.44795746", "0.44631264", "0.442553", "0.44246167", "0.44113967", "0.44051978", "0.43970817", "0.43970817", "0.4396263", "0.43961075", "0.43913776", "0.43903333", "0.4382082", "0.4348339", "0.4341469", "0.4334714" ]
0.5918413
0
Sets the externalUserStateChangeDateTime property value. Shows the timestamp for the latest change to the externalUserState property. Supports $filter (eq, ne, not , in).
public function setExternalUserStateChangeDateTime(?string $value): void { $this->getBackingStore()->set('externalUserStateChangeDateTime', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setExternalUserState(?string $value): void {\n $this->getBackingStore()->set('externalUserState', $value);\n }", "public function getExternalUserStateChangeDateTime(): ?string {\n $val = $this->getBackingStore()->get('externalUserStateChangeDateTime');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'externalUserStateChangeDateTime'\");\n }", "public function setLastStateChangeDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastStateChangeDateTime', $value);\n }", "public function onExternalUserUpdate(ExternalUserWasUpdated $event) {\n\n logger('user updated');\n \n if($event->user->profile[0]->notifica_spedita == 0 && $event->user->active == 1 ){\n $this->mailer->sendMailForAccountActivation($event->user);\n $event->user->profile[0]->update(['notifica_spedita' => 1]);\n }\n\n }", "public function onUserStateChange(UserStateChanged $event): void\n {\n if (!$this->mailerActive()) {\n return;\n }\n\n if ($event->old_state === UserState::PENDING) {\n if ($event->user->state === UserState::ACTIVE) {\n $email = new \\App\\Mail\\UserRegistered($event->user,\n 'Your registration has been accepted!');\n } elseif ($event->user->state === UserState::REJECTED) {\n $email = new \\App\\Mail\\UserRejected($event->user);\n }\n $this->sendEmail($event->user->email, $email);\n } // TODO: Other state transitions\n elseif ($event->old_state === UserState::ACTIVE) {\n Log::info('User state change from active to ??');\n }\n }", "protected function applyUserChangedStatusEvent(UserChangedStatusEvent $userChangedStatus)\n {\n $this->status = $this->status->changeStatus($userChangedStatus->status());\n }", "public function setDateTimeFilter(?LoyaltyEventDateTimeFilter $dateTimeFilter): void\n {\n $this->dateTimeFilter = $dateTimeFilter;\n }", "public function checkStatusChange($userId) {\n $newStatus = $this->determineStatus();\n if ($this->status != $newStatus) {\n switch ($newStatus) {\n case TrackItem::STATUS_ORDERED:\n $this->clearSchedInfo();\n $this->clearClosedInfo();\n break;\n case TrackItem::STATUS_SCHED:\n $this->schedBy = $userId;\n $this->clearClosedInfo();\n break;\n case TrackItem::STATUS_CLOSED:\n $this->closedBy = $userId;\n break;\n }\n $this->status = $newStatus;\n }\n }", "public function changeReservationState($state, $idActivity, $idUser)\n {\n $sql = \"UPDATE reservation SET state = :state WHERE idActivity = :idActivity AND idUser =:idUser\";\n // create array of fields for the change state of the reservation\n $fields = array(\n 'state' => $state,\n 'idActivity' => $idActivity,\n 'idUser' => $idUser);\n\n //var_dump($fields);\n\n // put the fields and the sql query + execute query\n $this->query($sql, $fields);\n }", "public function setUpdateDate($user) {\n\t\t$this->update_date = new CDbExpression('NOW()');\n\t\t$this->id_user_updated = $user->getId();\n\t\t$this->saveCheck();\n\t}", "public function filterInactive()\n {\n $this->_filter = $this->flags[\"INACTIVE\"];\n }", "function setChangedDate($saved_entity, $time_str) {\n if (! ($saved_entity->type() == 'node')) {\n throw new Exception(\"Specifying the 'changed' date is only supported for nodes currently.\");\n }\n if (!$nid = $saved_entity->getIdentifier()) {\n throw new Exception(\"Node ID could not be found. A node must be saved first before the changed date can be updated.\");\n }\n // Use REQUEST_TIME, because that will remain consistent across all tests.\n if (!$timestamp = strtotime($time_str, REQUEST_TIME)) {\n throw new Exception(\"Could not create a timestamp from $time_str.\");\n }\n else {\n db_update('node')\n ->fields(array('changed' => $timestamp))\n ->condition('nid', $nid, '=')\n ->execute();\n\n db_update('node_revision')\n ->fields(array('timestamp' => $timestamp))\n ->condition('nid', $nid, '=')\n ->execute();\n }\n }", "protected function set_pw_changed_time($user_ID) {\n\t\treturn update_user_meta($user_ID, $this->umk_changed, time());\n\t}", "function setUserStatus($user, $status, $backdate=false) {\n $userRepository = $this->container->get('doctrine')->getRepository('E2wGetStarsBundle:User');\n $statuses = $user->getStatuses();\n $statusKeys = array_flip($statuses);\n $statusId = $statusKeys[$status];\n $em = $this->container->get('doctrine')->getEntityManager();\n if ($user->getStatus() != $status) {\n $log = new ActivityLog();\n $log->setUserId($user->getId());\n $log->setOtherId($statusId);\n $log->setAdded(new \\DateTime(\"now\"));\n if ($backdate) {\n if (gettype($backdate) == \"string\") {\n $backdate = new \\DateTime($backdate);\n }\n $log->setAdded($backdate);\n }\n $log->setType(20);\n $log->setDescription(\"User Status Changed\");\n $log->setJson(json_encode(array(\n 'preStatus' => $user->getStatus(),\n 'preStatusId' => $statusKeys[$user->getStatus()],\n 'postStatus' => $status,\n 'postStatusId' => $statusId\n )));\n $em->persist($log);\n }\n $user->setStatus($status);\n $subUsers = $userRepository->findBy(array('agentId' => $user->getId()));\n foreach ($subUsers as &$subUser) {\n $subUser->setStatus($status);\n }\n $em->persist($user);\n $em->flush();\n }", "public static function updateLastActivityTime($userID, $timestamp = TIME_NOW)\n\t{\n\t\t// update lastActivity in wcf user table\n\t\t$sql = \"UPDATE\twcf\".WCF_N.\"_user\n\t\t\tSET\tlastActivityTime = \".$timestamp.\"\n\t\t\tWHERE\tuserID = \".$userID;\n\t\tWCF::getDB()->registerShutdownUpdate($sql);\n\t}", "public function update_activity_time () {\n # update\n try { $this->Database->updateObject(\"users\", array(\"lastActivity\"=>date(\"Y-m-d H:i:s\"), \"id\"=>$this->user->id)); }\n catch (Exception $e) { }\n }", "public function makeUnActive()\n {\n \n $command = Yii::app()->db->createCommand('\n UPDATE user_login \n SET last_action_time= :oldTime\n WHERE (user_id= :userId)\n ');\n return $command->execute(array(\n 'userId' => $this->id,\n 'oldTime' => 1,\n ));\n }", "public function updatedAtTo(string $date): ExternalTransferFilterBuilder\n {\n if(!DateUtils::assertISO8601Date($date)) throw new \\Exception(\"The date must be formated in ISO8601 format !\");\n\n array_push($this->filters, [\n \"updated_at_to\" => $date\n ]);\n\n return $this;\n }", "function UpdateUserFromExternal( &$usr ) {\n global $c;\n /**\n * When we're doing the create we will usually need to generate a user number\n */\n if ( !isset($usr->user_no) || intval($usr->user_no) == 0 ) {\n $qry = new AwlQuery( \"SELECT nextval('usr_user_no_seq');\" );\n $qry->Exec('Login',__LINE__,__FILE__);\n $sequence_value = $qry->Fetch(true); // Fetch as an array\n $usr->user_no = $sequence_value[0];\n }\n\n $qry = new AwlQuery('SELECT * FROM usr WHERE user_no = :user_no', array(':user_no' => $usr->user_no) );\n if ( $qry->Exec('Login',__LINE__,__FILE__) && $qry->rows() == 1 ) {\n $type = \"UPDATE\";\n if ( $old = $qry->Fetch() ) {\n $changes = false;\n foreach( $usr AS $k => $v ) {\n if ( $old->{$k} != $v ) {\n $changes = true;\n dbg_error_log(\"Login\",\"User '%s' field '%s' changed from '%s' to '%s'\", $usr->username, $k, $old->{$k}, $v );\n break;\n }\n }\n if ( !$changes ) {\n dbg_error_log(\"Login\",\"No changes to user record for '%s' - leaving as-is.\", $usr->username );\n if ( isset($usr->active) && $usr->active == 'f' ) return false;\n return; // Normal case, if there are no changes\n }\n else {\n dbg_error_log(\"Login\",\"Changes to user record for '%s' - updating.\", $usr->username );\n }\n }\n }\n else\n $type = \"INSERT\";\n \n $params = array();\n if ( $type != 'INSERT' ) $params[':user_no'] = $usr->user_no;\n $qry = new AwlQuery( sql_from_object( $usr, $type, 'usr', 'WHERE user_no= :user_no' ), $params );\n $qry->Exec('Login',__LINE__,__FILE__);\n\n /**\n * We disallow login by inactive users _after_ we have updated the local copy\n */\n if ( isset($usr->active) && ($usr->active === 'f' || $usr->active === false) ) return false;\n\n if ( $type == 'INSERT' ) {\n $qry = new AwlQuery( 'INSERT INTO principal( type_id, user_no, displayname, default_privileges) SELECT 1, user_no, fullname, :privs::INT::BIT(24) FROM usr WHERE username=:username',\n array( ':privs' => privilege_to_bits($c->default_privileges), ':username' => $usr->username) );\n $qry->Exec('Login',__LINE__,__FILE__);\n CreateHomeCalendar($usr->username);\n }\n else if ( $usr->fullname != $old->{'fullname'} ) {\n // Also update the displayname if the fullname has been updated.\n $qry->QDo( 'UPDATE principal SET displayname=:new_display WHERE user_no=:user_no',\n array(':new_display' => $usr->fullname, ':user_no' => $usr->user_no)\n );\n }\n}", "public static function setStateUser(User $user)\n {\n static::$stateUser = $user;\n }", "function update_loggedin_user_status($fbId,$email) {\n\t// marking the status as active and updating his email address if the user in presend in database \n\t$check_for_user_existence = Zzuser::model()->findByAttributes(array('user_fbid'=>$fbId,'zzuser_status'=>'invited'));\n\tif(isset($check_for_user_existence)) {\n\t\t$check_for_user_existence->user_email = $email;\n\t\t$check_for_user_existence->user_handle = $email;\n\t\t$check_for_user_existence->zzuser_status = 'active';\n\t\t$check_for_user_existence->save();\n\t}\n}", "public function scopeJobStageChangedDate($query, $startDate, $endDate = null)\n {\n if ($startDate) {\n $query->whereRaw(\"DATE_FORMAT(\" . buildTimeZoneConvertQuery('jw.stage_last_modified') . \", '%Y-%m-%d') >= '$startDate'\");\n }\n\n if ($endDate) {\n $query->whereRaw(\"DATE_FORMAT(\" . buildTimeZoneConvertQuery('jw.stage_last_modified') . \", '%Y-%m-%d') <= '$endDate'\");\n }\n }", "public function setChangedTime($timestamp) {\n $this->set('changed', $timestamp);\n return $this;\n }", "public function setExternal( $bExternal ) {\n\t\t$this->bExternal = $bExternal;\n\t\treturn $this;\n\t}", "public function setExternalUserData($externalUserData)\n {\n $this->externalUserData = $externalUserData;\n return $this;\n }", "public function setUserViewedDate($user_viewed_date) {\n if ($user_viewed_date === null) {\n $this->user_viewed_date = null;\n } else {\n $this->user_viewed_date = DateUtils::parseDateTime($user_viewed_date, $this->core->getConfig()->getTimezone());\n }\n $this->modified = true;\n }", "function userActiveSet($conn,$user_id,$act_val){\n\t\tif($act_val == 0){\n\t\t\t$newact_val = 1;\n\t\t}else{\n\t\t\t$newact_val = 0;\n\t\t}\n\t\t$query = \"UPDATE ktuser set user_is_act='$newact_val' where user_id='$user_id' \";\n\t\t$result = mysqli_query($conn, $query);\n\t\tif(!$result){\n\t\t echo \"Update Failed\" . mysqli_error($conn);\n\t\t exit;\n\t\t}\n\t}", "function isIPandUALogRefreshRequired (&$user, $params) {\n $lastUserActionTimestamp = $user['onlinetime'];\n $timestamp = $params['timestamp'];\n\n return (\n $lastUserActionTimestamp > 0 &&\n $lastUserActionTimestamp < ($timestamp - TIME_ONLINE)\n );\n}", "public function getChanges() {\n $bis = $this->gameday - 1;\n if($bis > 0) $bisSql = \"|| bis =\".$bis;\n else $bisSql = '';\n \n $sql = \"SELECT\tuser_ID, ab, bis\n FROM events_user\n WHERE event_id=\".$this->eventID.\"\n AND (ab=\".$this->gameday.$bisSql.\")\";\n\t\t$result = WCF::getDB()->sendQuery($sql);\n\t\twhile ($row = WCF::getDB()->fetchArray($result)) {\n $row['username'] = self::getUserOnlineMarking($row['user_ID']);\n \n if(!empty($row['ab'])) {\n $this->changeNew[] = $row;\n }\n if(!empty($row['bis'])) {\n $this->changeOld[] = $row;\n }\n\t\t}\n }", "public function onUserChange()\n {\n App::option()->set(self::REFRESH_TOKEN, time(), true);\n }" ]
[ "0.5247774", "0.5230462", "0.52099615", "0.4991245", "0.49664125", "0.48098078", "0.47600982", "0.45157582", "0.4497255", "0.4428692", "0.4415136", "0.43359843", "0.43285567", "0.4318937", "0.43030438", "0.42857313", "0.42657703", "0.42439055", "0.42394912", "0.41884482", "0.41595128", "0.41474083", "0.41365427", "0.41321322", "0.4131582", "0.4120328", "0.41148144", "0.4090983", "0.4083757", "0.4068755" ]
0.6995362
0
Sets the faxNumber property value. The fax number of the user. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
public function setFaxNumber(?string $value): void { $this->getBackingStore()->set('faxNumber', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setFaxNumber($faxNumber = null)\n {\n $this->faxNumber = $faxNumber;\n\n return $this;\n }", "public function getFaxNumber()\n {\n return $this->faxNumber;\n }", "public function setFaxNumber($faxNumber)\n {\n $this->faxNumber = $faxNumber;\n\n return $this;\n }", "public function setFax(string $fax)\n\t{\n\t\t$this->addKeyValue('fax', $fax); \n\n\t}", "public function getFaxNumber();", "public function setNomorFax($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->nomor_fax !== $v) {\n $this->nomor_fax = $v;\n $this->modifiedColumns[] = YayasanPeer::NOMOR_FAX;\n }\n\n\n return $this;\n }", "public function setFax($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->fax !== $v) {\n\t\t\t$this->fax = $v;\n\t\t\t$this->modifiedColumns[] = ExpositorPeer::FAX;\n\t\t}\n\n\t\treturn $this;\n\t}", "public static function faxNumber()\n {\n return static::numerify(static::randomElement(static::$faxFormats));\n }", "public function setFax($fax)\n {\n $this->_setField(self::$FAX, $fax);\n return $this;\n }", "public function setFaxPhone($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->fax_phone !== $v) {\n\t\t\t$this->fax_phone = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPassengerPeer::FAX_PHONE;\n\t\t}\n\n\t\treturn $this;\n\t}", "function setNumber($value) {\n return $this->setFieldValue('number', $value);\n }", "public function filterByFaxnbr($faxnbr = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($faxnbr)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(OrdrhedTableMap::COL_FAXNBR, $faxnbr, $comparison);\n }", "public function __construct($fax_id)\n {\n $this->fax_id = $fax_id;\n }", "public function testSetFax() {\n\n $obj = new Intervenants();\n\n $obj->setFax(\"fax\");\n $this->assertEquals(\"fax\", $obj->getFax());\n }", "public function getFaxPhone()\n\t{\n\t\treturn $this->fax_phone;\n\t}", "public function setNumberAttribute($value)\n {\n $this->attributes['number'] = $value;\n $this->raw_number = $value;\n }", "public function setNumber($number) {\r\n\t\t$this->number = $number;\r\n\t}", "public function setFaxPages( Array $faxPages )\n {\n $this->_faxPages = $faxPages;\n }", "public function setFirstNumber($var)\n {\n GPBUtil::checkFloat($var);\n $this->first_number = $var;\n\n return $this;\n }", "public function set_number( $number ) {\n\t\t$this->number = $number;\n\t}", "public function setNumber($number){\n\t\t$this->number = $number;\n\t}", "public function setNumeroFaltas($iNumFaltas) {\n $this->iNumFaltas = $iNumFaltas;\n }", "public function getFax()\n\t{\n\t\treturn $this->fax;\n\t}", "public function setNumber(?string $number): self\n {\n $this->initialized['number'] = true;\n $this->number = $number;\n\n return $this;\n }", "public function setNumber(?string $number): self\n {\n $this->initialized['number'] = true;\n $this->number = $number;\n\n return $this;\n }", "public function fax() {\n return $this->belongsTo('App\\Fax');\n }", "public function setCount(int $number): FibonacciInterface\n {\n $this->number = $number;\n\n return $this;\n }", "function modificarNumFilhos($numFilhos)\n\t{\n\t\t$this->numFilhos = $numFilhos;\n\t}", "public function setTaxRegistrationNumber(?string $value): void {\n $this->getBackingStore()->set('taxRegistrationNumber', $value);\n }", "public function setNumber($var) {}" ]
[ "0.64512604", "0.6326518", "0.6318506", "0.62197965", "0.6065136", "0.5882784", "0.5879926", "0.58754784", "0.57195026", "0.5542631", "0.5445262", "0.54283315", "0.5333769", "0.53038514", "0.529276", "0.5216462", "0.5184467", "0.5182893", "0.5153799", "0.51214445", "0.5114397", "0.5062298", "0.5032568", "0.50093615", "0.50093615", "0.49994707", "0.49883136", "0.4976392", "0.49392673", "0.49353436" ]
0.67615426
0
Sets the followedSites property value. The followedSites property
public function setFollowedSites(?array $value): void { $this->getBackingStore()->set('followedSites', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function user_followedSites(\n\t\t\t$params = array ()) {\n\t\t\t\t$this->onDebug ( __METHOD__, 1 );\n\t\t\t\treturn $this->getObjetO365Wsclient ()\n\t\t\t\t->getMethod ( $this->user_id_uri () . '/followedSites', $params );\n\t}", "public function setFollowRedirects($followRedirects)\n\t{\n\t\t$this->followRedirects = $followRedirects;\n\t}", "public function setSite(Site $site) {\n\t\t$this->site = $site;\n\t}", "public function setSponsors(?array $value): void {\n $this->getBackingStore()->set('sponsors', $value);\n }", "public function setFollowLocation(bool $follow): void\n {\n $this->followLocation = $follow;\n }", "public function setAllowedUrls(?array $value): void {\n $this->getBackingStore()->set('allowedUrls', $value);\n }", "function set_web_follow_symlinks($name, $follow_symlinks)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $this->_set_parameter($name, 'WebFollowSymLinks', $follow_symlinks);\n }", "public function setSiteUrl(string $siteUrl): void {\n\n\t\tif (mb_substr($siteUrl, -1) == '/')\n\t\t\t$siteUrl = mb_substr($siteUrl, 0, -1);\n\n\t\t$this->m_siteUrl = $siteUrl;\n\t}", "public function setFollowRedirects(bool $followRedirects): void {\r\n $this->followRedirects = $followRedirects;\r\n }", "public function setSameSite($sameSite)\n {\n $this->offsetSet('sameSite', $sameSite);\n }", "public function setScepServerUrls(?array $value): void {\n $this->getBackingStore()->set('scepServerUrls', $value);\n }", "public function updateUrls($urls) {\n if (!is_array($urls)) {\n $urls = [$urls];\n }\n $this->urls = $urls;\n }", "public function setSite(array $site)\n {\n $this->site = $site;\n return $this;\n }", "public function setNodesVisited($val) {\n $this->_nodes_visited = $val;\n }", "public function setMySite(?string $value): void {\n $this->getBackingStore()->set('mySite', $value);\n }", "public function getFollowedSites(): ?array {\n $val = $this->getBackingStore()->get('followedSites');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Site::class);\n /** @var array<Site>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'followedSites'\");\n }", "public function setSchools(?array $value): void {\n $this->getBackingStore()->set('schools', $value);\n }", "public function setJoinedTeams(?array $value): void {\n $this->getBackingStore()->set('joinedTeams', $value);\n }", "public function setWebsite(?string $value): void {\n $this->getBackingStore()->set('website', $value);\n }", "public function setExemptedUniversalLinks(?array $value): void {\n $this->getBackingStore()->set('exemptedUniversalLinks', $value);\n }", "function setLinks($links) \n {\n $this->linkValues = $links;\n }", "public function setSiteName($sitename);", "public function setVerifiedDomains(?array $value): void {\n $this->getBackingStore()->set('verifiedDomains', $value);\n }", "public function setSeen(bool $seen) {\n $this->seen = (int)$seen;\n\n }", "public function followLocation($followLocation)\n {\n $this->followLocation = (bool) $followLocation;\n }", "public function setManagedUniversalLinks(?array $value): void {\n $this->getBackingStore()->set('managedUniversalLinks', $value);\n }", "function setReferer($referrer){$this->referrer = $referrer;}", "public function change_site( $site )\n\t{\n\t\t$this->site = $site;\n\t}", "public function setFollowRedirect($followRedirect, $maxRedirect = null) {\n $this -> settings[self::SETTINGS_KEY_FOLLOW_REDIRECT] = (bool) $followRedirect;\n if (isset($maxRedirect)) {\n $this -> settings[self::SETTINGS_KEY_FOLLOW_MAX_REDIRECT] = intval($maxRedirect);\n }\n return $this;\n }", "public function setFollows(Person $follows)\n {\n $this->_follows = $follows;\n return $this;\n }" ]
[ "0.5863613", "0.5642528", "0.54283845", "0.54130924", "0.5286741", "0.528655", "0.5247784", "0.522682", "0.52092403", "0.51613945", "0.513964", "0.5139086", "0.5132028", "0.50868094", "0.5085451", "0.5032357", "0.49983102", "0.49907252", "0.49806046", "0.49803212", "0.49787137", "0.49760562", "0.49654195", "0.4940412", "0.49303284", "0.49099243", "0.4866009", "0.48586667", "0.48321238", "0.482615" ]
0.78214616
0
Sets the hireDate property value. The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 20140101T00:00:00Z. Returned only on $select. Note: This property is specific to SharePoint Online. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs.
public function setHireDate(?DateTime $value): void { $this->getBackingStore()->set('hireDate', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEmployeeHireDate(?DateTime $value): void {\n $this->getBackingStore()->set('employeeHireDate', $value);\n }", "public function setDate()\n\t{\n\t\tif ($this->isNewRecord)\n\t\t\t$this->create_time = $this->update_time = time();\n\t\telse\n\t\t\t$this->update_time = time();\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n {\n if ($this->isNewRecord)\n $this->create_time = $this->update_time = time();\n else\n $this->update_time = time();\n }", "public function setDate()\n\t{\n\t\t$this->update_time = time();\n\t}", "public function setDate()\n\t{\n\t\t$this->update_time=time();\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n }", "function setDateUploaded($dateUploaded) {\n\t\treturn $this->SetData('dateUploaded', $dateUploaded);\n\t}", "public function setEmployeeExperience(?EmployeeExperienceUser $value): void {\n $this->getBackingStore()->set('employeeExperience', $value);\n }", "function setDate($date_timestamp) {\n $this->date = $date_timestamp;\n }", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($date) {\n $this->date = $date;\n }", "public function getEmployeeHireDate(): ?DateTime {\n $val = $this->getBackingStore()->get('employeeHireDate');\n if (is_null($val) || $val instanceof DateTime) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'employeeHireDate'\");\n }", "public function setDate( $date ) {\n $this->date = $date;\n }", "public function setDate($date)\n {\n if (isset($date)) {\n $this->date = $date;\n }\n }", "public function setBirthDate($birthDate) {\n $this->birthDate = $birthDate;\n }", "public function _setExpDate($expDate) {\n\t\t$this->_expDate = $expDate;\n\t}", "function setDate($date){\n $this->date=$date;\n }", "public function setDate()\n {\n if ($this->isNewRecord)\n $this->create_time = time();\t\t\n }", "public function setdate($date)\n {\n $this->date = $date;\n }", "public function setDate($date): void\r\n {\r\n $this->_date = $date;\r\n }", "function setDate($username){\n $this->username = $username;\n }", "function setDate($date)\r\n {\r\n $this->_date = $date;\r\n }", "public function setUpdateDateValue()\n {\n }", "public function setProfileBirthdateAttribute($value)\n {\n $this->attributes[\"profile_birthdate\"] = $this->setDate($value);\n }", "public function getHireDate(): ?DateTime {\n $val = $this->getBackingStore()->get('hireDate');\n if (is_null($val) || $val instanceof DateTime) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'hireDate'\");\n }", "public function setDate($date)\n {\n # Check if the passed value is empty.\n if (!empty($date) && ($date !== '0000-00-00') && ($date !== '1970-02-31')) {\n # Clean it up,\n $date = trim($date);\n # Set the data member.\n $this->date = $date;\n } else {\n # Explicitly set the data member to the default.\n $this->date = '0000-00-00';\n }\n }", "protected function setChiefEmployee(Employee $employee) {\n\t\t\t$this->_ChiefEmployee = $employee;\n\t\t}", "public function setDate($date)\n {\n \t$this->date = $date;\n \treturn $date;\n }" ]
[ "0.7556178", "0.56932366", "0.5652911", "0.55425006", "0.541017", "0.5406799", "0.53957194", "0.5389214", "0.5378033", "0.53713083", "0.5359613", "0.5359613", "0.5359613", "0.5336012", "0.5289911", "0.52864355", "0.5273509", "0.526056", "0.52496874", "0.52266675", "0.522329", "0.5217115", "0.5212433", "0.5200161", "0.51974213", "0.51738775", "0.5172212", "0.51184446", "0.51130354", "0.50803" ]
0.7498855
1
Sets the identities property value. Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same signInType value. Supports $filter (eq) including on null values, only where the signInType is not userPrincipalName.
public function setIdentities(?array $value): void { $this->getBackingStore()->set('identities', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIdentity($identifier)\n {\n $this->souls->identity = $identifier;\n }", "public function setAuthIdentityFields($authIdentityFields);", "public function setIdentity($data);", "public function setIdentity($identity);", "public function getIdentities(): ?array {\n $val = $this->getBackingStore()->get('identities');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ObjectIdentity::class);\n /** @var array<ObjectIdentity>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'identities'\");\n }", "private function setIdentity(){\n\t\t$config = $this->config->item('ion_auth');\n\t\t$this->_identity = $config['identity'];\n\n\t\t$this->_user = $this->ion_auth->user()->row();\n\t}", "public function setIdentity($value)\n {\n $canonicalName = $this->getCanonicalAccountName($value);\n \n $this->_identity = $canonicalName;\n return $this;\n }", "public function setIdentityId($var)\n {\n GPBUtil::checkString($var, True);\n $this->identity_id = $var;\n\n return $this;\n }", "function setIdentity(?IIdentity $identity);", "public function setUserIdsIn($newVal)\r\n {\r\n \tif ( !is_array($newVal) ) $newVal = array($newVal);\r\n \t$this->_userIdsIn = $newVal;\r\n \treturn $this;\r\n }", "public function setIdentity($identity = null)\n {\n $this->_identity = $identity;\n }", "public function setCityIdsIn($newVal)\r\n {\r\n if ( !is_array($newVal) ) $newVal = array($newVal);\r\n $this->_cityIdsIn = $newVal;\r\n return $this;\r\n }", "public function setIdentity($value)\n {\n $this->_identity = $value;\n return $this;\n }", "public function setIdentity($value)\n {\n $this->_identity = $value;\n return $this;\n }", "public function setIdentity($value)\n {\n $this->_identity = $value;\n return $this;\n }", "protected function setIdentity(Identity $identity)\n {\n $this->identity = true;\n }", "public function setInsuredPeople(\\Mu4ddi3\\Compensa\\Webservice\\ArrayType\\ArrayOfAccidentInsuredPerson $insuredPeople = null)\n {\n if (is_null($insuredPeople) || (is_array($insuredPeople) && empty($insuredPeople))) {\n unset($this->insuredPeople);\n } else {\n $this->insuredPeople = $insuredPeople;\n }\n return $this;\n }", "public function setIdentifiers($identifiers) {\n $this->identifiers = $identifiers;\n }", "public function setIdentifiers($identifiers) {\n $this->identifiers = $identifiers;\n }", "public function setIdentifiers($identifiers) {\n $this->identifiers = $identifiers;\n }", "private function _setIdentityInSession($identity) {\n $this->CI->session->set_userdata(array(\n 'user' => $identity\n ));\n }", "public function setIdentity(?IdentitySet $value): void {\n $this->getBackingStore()->set('identity', $value);\n }", "public function setIdentifiers($identifiers)\n {\n $this->identifiers = $identifiers;\n }", "public function list(IdentityListRequest $request = null): OxxaResult\n {\n $xml = $this\n ->client\n ->request(array_merge(\n ['command' => 'identity_list'],\n $request?->toArray() ?? []\n ));\n\n $statusDescription = $this->getStatusDescription($xml);\n if ($this->getStatusCode($xml) !== StatusCode::STATUS_IDENTITIES_RETRIEVED) {\n return new OxxaResult(\n success: false,\n message: $statusDescription\n );\n }\n\n $identities = [];\n $xml\n ->filter('channel > order > details > identity')\n ->each(function (Crawler $identityNode) use (&$identities) {\n $identities[] = new Identity(\n handle: $identityNode->filter('handle')->text(),\n alias: $identityNode->filter('alias')->text(),\n companyName: $identityNode->filter('company_name')->text(),\n name: $identityNode->filter('name')->text(),\n );\n });\n\n return new OxxaResult(\n success: true,\n message: $statusDescription,\n data: [\n 'identities' => $identities,\n ]\n );\n }", "function setIdentity($user);", "public function setIdentity(IIdentity $identity = null)\n {\n if ($identity !== null) {\n $identity = new FakeIdentity($identity->getId());\n }\n\n return parent::setIdentity($identity);\n }", "public function setIdentity($identityValue)\n {\n $this->_identityValue = $identityValue;\n return $this;\n }", "public function setIndoorInterests($indoorInterests)\r\n {\r\n $this->_indoorInterests = $indoorInterests;\r\n }", "function setIndoor($indoorInterests)\n {\n $this->_inDoorInterests = $indoorInterests;\n }", "public function incidents()\n\t{\n\t\treturn $this->belongsToMany(\n\t\t\tconfig('core.acl.incidents_model'),\n\t\t\tconfig('core.acl.incident_user_table'),\n\t\t\t'user_id',\n\t\t\t'incident_id'\n\t\t);\n\t}" ]
[ "0.5186733", "0.5160124", "0.5132877", "0.51312333", "0.5034701", "0.50305825", "0.4932148", "0.49203998", "0.48673105", "0.4865393", "0.48410296", "0.48159045", "0.47526342", "0.47526342", "0.47526342", "0.47496212", "0.4704824", "0.46854636", "0.46854636", "0.46854636", "0.46629888", "0.4658045", "0.46059632", "0.45440203", "0.44831783", "0.43967807", "0.436925", "0.4364178", "0.43455163", "0.4328742" ]
0.53483593
0
Sets the imAddresses property value. The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Readonly. Supports $filter (eq, not, ge, le, startsWith).
public function setImAddresses(?array $value): void { $this->getBackingStore()->set('imAddresses', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIpAddresses($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->ip_addresses = $arr;\n\n return $this;\n }", "public function setAddresses($addresses) {\n $this->addresses = $addresses;\n }", "function setIPRanges($ipRanges) {\n\t\treturn $this->setData(implode(SUBSCRIPTION_IP_RANGE_SEPERATOR, $ipRanges));\n\t}", "public function setAddresses(AddressInterface $addresses);", "public function setServerAddressForIM($var)\n {\n GPBUtil::checkString($var, True);\n $this->serverAddressForIM = $var;\n\n return $this;\n }", "public static function setAllowedReverseProxyAddresses($addresses)\n\t{\n\t\t// store allowed ip-addresses\n\t\tself::$allowedReverseProxyAddresses = (array) $addresses;\n\n\t\t// set reverse proxy\n\t\tself::$reverseProxy = (!empty($addresses)) ? true : false;\n\t}", "public function setRemoteAddressRanges($val)\n {\n $this->_propDict[\"remoteAddressRanges\"] = $val;\n return $this;\n }", "private function setRemoteAddr()\n {\n if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] && (!isset($_SERVER['REMOTE_ADDR']) || preg_match('/^127\\..*/i', trim($_SERVER['REMOTE_ADDR'])) || preg_match('/^172\\.16.*/i', trim($_SERVER['REMOTE_ADDR'])) || preg_match('/^192\\.168\\.*/i', trim($_SERVER['REMOTE_ADDR'])) || preg_match('/^10\\..*/i', trim($_SERVER['REMOTE_ADDR']))))\n {\n if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ','))\n {\n $ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\n $this->ip = $ips[0];\n } else {\n $this->ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n }\n $this->ip = $_SERVER['REMOTE_ADDR'];\n }", "public function setAddresses(Address ...$addresses)\n {\n $this->addresses = $addresses;\n }", "public function setAddresses(ContextInterface $ctx, SetAddressesRequest $request): void;", "public function privateUseIpAddresses()\n {\n return array(\n array('9.255.255.255', false),\n array('10.0.0.0', true),\n array('10.255.255.255', true),\n array('11.0.0.0', false),\n array('172.15.255.255', false),\n array('172.16.0.0', true),\n array('172.31.255.255', true),\n array('172.32.0.0', false),\n array('192.167.255.255', false),\n array('192.168.0.0', true),\n array('192.168.255.255', true),\n array('192.169.0.0', false),\n array('fcff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', false),\n array('fd00::', true),\n array('fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', true),\n array('fe00::', false),\n );\n }", "public function getImAddresses(): ?array {\n $val = $this->getBackingStore()->get('imAddresses');\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 'imAddresses'\");\n }", "public function setInvitations($invitations)\n {\n $this->setValue('invitations', $invitations);\n }", "public function setAddresses(?array $value): void {\n $this->getBackingStore()->set('addresses', $value);\n }", "function setIPRange($ipRange) {\n\t\treturn $this->setData('ipRange', $ipRange);\n\t}", "protected function fixUserAddresses()\n {\n\n $orm = $this->getOrm();\n\n $itemType = $orm->getByKey('BuizAddressItemType', 'message');\n $itemId = $itemType->getId();\n\n foreach ($this->sysUsers as $sysUser) {\n\n if (!$item = $orm->get('BuizAddressItem', 'id_user='.$sysUser.' and id_type='.$itemId)) {\n // Private Channel für den User erstellen\n $item = $orm->newEntity('BuizAddressItem');\n $item->address_value = $sysUser;\n $item->id_user = $sysUser;\n $item->id_type = $itemId;\n $item->use_for_contact = true;\n $orm->save($item);\n\n }\n\n }\n\n }", "public function multiCastIpAddresses()\n {\n return array(\n array('223.255.255.255', false),\n array('224.0.0.0', true),\n array('239.255.255.255', true),\n array('240.0.0.0', false),\n array('feff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', false),\n array('ff00::', true),\n array('ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', true),\n );\n }", "public function setPermissionsManageIpAddresses($permissionsManageIpAddresses)\n {\n $this->permissionsManageIpAddresses = $permissionsManageIpAddresses;\n return $this;\n }", "public function unspecifiedIpAddresses()\n {\n return array(\n array('0.0.0.0'),\n array('::0'),\n );\n }", "public function inRangeIPs()\n {\n return array(\n array('12.34.56.78', '12.34.56.78', 32),\n array('0.0.0.1', '255.255.255.254', 0),\n array('12.34.143.96', '12.34.201.26', 16),\n array('12.34.255.252', '12.34.255.255', 30),\n array('::cff:103', '12.255.255.255', 5),\n );\n }", "public function setReviewersEmailAddresses(?array $value): void {\n $this->getBackingStore()->set('reviewersEmailAddresses', $value);\n }", "private function setTrustedProxyIpAddressesToSpecificIps(Request $request, $trustedIps)\n {\n $request->setTrustedProxies((array) $trustedIps, $this->getTrustedHeaderNames());\n }", "public function setEmailAddresses($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->email_addresses = $arr;\n\n return $this;\n }", "public function getIpAddresses()\n {\n return $this->ip_addresses;\n }", "private function createAddressesCollection()\n {\n $this->addresses = new Addresses($this->connection);\n }", "public function setIpAddress($ip);", "private function getServiceBindIps(): array\n {\n return [\n // You can customize the serviceable IPs\n ];\n }", "public function matchIps(string|array|null $ips)\n {\n $ips = null !== $ips ? (array) $ips : [];\n\n $this->ips = array_reduce($ips, static fn (array $ips, string $ip) => array_merge($ips, preg_split('/\\s*,\\s*/', $ip)), []);\n }", "function setIp()\n\t{\n\t\t$this->customer['ipaddress'] = $_SERVER['REMOTE_ADDR'];\n\t\n\t\tif(!isset($this->customer['user_agent']))\n\t\t{\n\t\t\t$this->customer['user_agent']\t= $_SERVER['HTTP_USER_AGENT'];\n\t\t}\n\t\n\t\tif (isset($_SERVER['HTTP_X_FORWARDED_FOR']))\n\t\t{\n\t\t\t$this->customer['forwardedip'] \t= $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t}\n\t}", "public function get_ips() {\n\t\tif ( ! defined( 'DOING_AJAX' ) || ! current_user_can( $this->plugin->admin->settings_cap ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tcheck_ajax_referer( 'stream_get_ips', 'nonce' );\n\n\t\t$ips = $this->plugin->db->existing_records( 'ip' );\n\t\t$find = wp_stream_filter_input( INPUT_POST, 'find' );\n\n\t\tif ( isset( $find['term'] ) && '' !== $find['term'] ) {\n\t\t\t$ips = array_filter(\n\t\t\t\t$ips,\n\t\t\t\tfunction ( $ip ) use ( $find ) {\n\t\t\t\t\treturn 0 === strpos( $ip, $find['term'] );\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\n\t\tif ( $ips ) {\n\t\t\twp_send_json_success( $ips );\n\t\t} else {\n\t\t\twp_send_json_error();\n\t\t}\n\t}" ]
[ "0.6281566", "0.5614307", "0.5499611", "0.5496404", "0.5266201", "0.5247521", "0.4940057", "0.49113247", "0.49012375", "0.4894139", "0.47431254", "0.4679573", "0.46585944", "0.46442336", "0.46387118", "0.46155933", "0.46078038", "0.45666695", "0.45641494", "0.45598736", "0.4553346", "0.45495656", "0.45394462", "0.45377368", "0.45364586", "0.45348454", "0.44648322", "0.44513157", "0.44511855", "0.44476667" ]
0.6319053
0
Sets the inferenceClassification property value. Relevance classification of the user's messages based on explicit designations which override inferred relevance or importance.
public function setInferenceClassification(?InferenceClassification $value): void { $this->getBackingStore()->set('inferenceClassification', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setClassification(?string $value): void {\n $this->getBackingStore()->set('classification', $value);\n }", "public function getInferenceClassification(): ?InferenceClassification {\n $val = $this->getBackingStore()->get('inferenceClassification');\n if (is_null($val) || $val instanceof InferenceClassification) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'inferenceClassification'\");\n }", "public function setClassificationEvaluationMetrics($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\AutoMl\\V1beta1\\ClassificationEvaluationMetrics::class);\n $this->writeOneof(8, $var);\n\n return $this;\n }", "public function setDetectionConfidence($var)\n {\n GPBUtil::checkFloat($var);\n $this->detection_confidence = $var;\n\n return $this;\n }", "public function setConfidence($confidence) {\n $this->confidence = $confidence;\n }", "public function setConfidence($confidence) {\n $this->confidence = $confidence;\n }", "public function setConfidence($confidence)\r\n {\r\n $this->confidence = $confidence;\r\n }", "public function setClassification($query, array $kwargs) {\n\t\t\tif (!array_key_exists('classification', $kwargs)) {\n\t\t\t\tthrow new Exception('Classification field is required');\n\t\t\t}\n\t\t\tif (!in_array($kwargs['classification'], $this->valid_classifications)) {\n\t\t\t\tthrow new exception('Classification type is not valid');\n\t\t\t}\n\t\t\treturn $this->router('POST', 'classification', $query, $kwargs);\n\t\t}", "protected function set_inferred_class_name(): void\n {\n $singularize = ($this instanceof HasMany ? true : false);\n $this->set_class_name(classify($this->attribute_name, $singularize));\n }", "public function setIntentDetectionConfidence($var)\n {\n GPBUtil::checkFloat($var);\n $this->intent_detection_confidence = $var;\n\n return $this;\n }", "public function setConfidence(?float $value): void {\n $this->getBackingStore()->set('confidence', $value);\n }", "public function setTrainingMethod($var)\n {\n GPBUtil::checkEnum($var, \\Google\\Cloud\\DocumentAI\\V1\\TrainProcessorVersionRequest\\CustomDocumentExtractionOptions\\TrainingMethod::class);\n $this->training_method = $var;\n\n return $this;\n }", "public function getClassification()\n {\n return $this->classification;\n }", "protected function renderClassifications() {\n\t\trequire_once(SLS_DIR.\"lib/data/classification/ClassificationList.class.php\");\n\t\t$objClassificationList = new ClassificationList();\n\t\t$objClassificationList->readClassifications();\n\t\t$this->classifications = $objClassificationList->classification;\n\t}", "public function setClassifica() {\r\n\r\n if ($this->voto > 3){\r\n $this->classifica = 'Visione Consigliata';\r\n } else {\r\n $this->classifica = 'Visione Consigliata, ma c\\'è di meglio';\r\n }\r\n\r\n }", "public function getClassification()\n{\nreturn $this->classification;\n}", "public function setMimeType($mimeType) {\n $this->mimetype = $mimeType;\n }", "public function setConfidence($var)\n {\n GPBUtil::checkFloat($var);\n $this->confidence = $var;\n\n return $this;\n }", "public function setConfidence($var)\n {\n GPBUtil::checkFloat($var);\n $this->confidence = $var;\n\n return $this;\n }", "function set_decision($decision)\n {\n $this->set_default_property(self::PROPERTY_DECISION, $decision);\n }", "public final function setMimeType($mimeType) {\n\t\t\t$this->mimeType = (string)$mimeType;\n\t\t}", "public function setClasses(ArrayCollection $classes)\n {\n $this->classes = $classes;\n }", "public function setAlternateNotificationEmails(?string $value): void {\n $this->getBackingStore()->set('alternateNotificationEmails', $value);\n }", "public function update(InfringementClassificationRequest $request, InfringementClassification $infringementClassification)\n {\n $this->authorize('update', [InfringementClassification::class, $infringementClassification]);\n\n $infringementClassification->name = $request->get('name');\n $infringementClassification->save();\n return response()->json([\n 'status' => 200,\n 'success'=>true,\n 'message'=>'Clasificación de la infracción actualizada exitosamente'\n ]);\n }", "public function setMimeType($mimeType)\n {\n $this->mimeType = $mimeType;\n }", "public function setSpeechRecognitionConfidence($var)\n {\n GPBUtil::checkFloat($var);\n $this->speech_recognition_confidence = $var;\n\n return $this;\n }", "public function setCategory(?RecommendationCategory $value): void {\n $this->getBackingStore()->set('category', $value);\n }", "public function setRecommendationType(?RecommendationType $value): void {\n $this->getBackingStore()->set('recommendationType', $value);\n }", "public function setDecision(string $decision): void\n {\n $this->_decision = $decision;\n }", "public function setRemediationImpact($value)\n {\n $this->setProperty(\"RemediationImpact\", $value, true);\n }" ]
[ "0.5401492", "0.51400936", "0.507212", "0.49832904", "0.48750165", "0.48750165", "0.48345274", "0.4708168", "0.46155146", "0.451045", "0.43881777", "0.431859", "0.42951593", "0.42606974", "0.4227067", "0.4189244", "0.41872594", "0.40794584", "0.40794584", "0.40472245", "0.40137312", "0.39586306", "0.39417866", "0.39324728", "0.39211142", "0.3920124", "0.3875828", "0.3865296", "0.3852373", "0.38305017" ]
0.73719686
0
Sets the infoCatalogs property value. Identifies the info segments assigned to the user. Supports $filter (eq, not, ge, le, startsWith).
public function setInfoCatalogs(?array $value): void { $this->getBackingStore()->set('infoCatalogs', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCatalogs(): array\n {\n return [\n ['current'],\n ['staged', true],\n ];\n }", "public function getCatalogs() {\n return parent::_requestData('get','catalogs');\n }", "public function catalogObjectIds(?array $value): self\n {\n $this->instance->setCatalogObjectIds($value);\n return $this;\n }", "public function setCollections($collections) {\n $this->collections = $collections;\n }", "public function catalog($value)\n {\n $this->setProperty('catalog', $value);\n return $this;\n }", "public function setInformations($infos){\n\t\t\t$this->options=$infos;\n\t\t}", "function isCatalogInformationVisible() {\n\t\t\treturn (( $this->isInformationVisible( ) && Mage::getStoreConfigFlag( XML_PATH_CATALOG_DISPLAY_INFORMATION ) ) ? true : false);\n\t\t}", "protected function setCatalog_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->catalog_id = $value; }\n\t}", "public function includedDataCatalog($value)\n {\n $this->setProperty('includedDataCatalog', $value);\n return $this;\n }", "public function getCatalogDetailsData(\\Magento\\Framework\\Api\\Search\\DocumentInterface $catalog)\n {\n return [\n 'name' => $catalog->getName(),\n 'description' => $catalog->getDescription(),\n 'customer_group_id' => $catalog->getCustomerGroupId(),\n 'type' => $catalog->getType(),\n 'tax_class_id' => $catalog->getTaxClassId(),\n 'created_at' => $catalog->getCreatedAt(),\n 'created_by' => $catalog->getCreatedBy(),\n ];\n }", "public function setInfo($value) {\r\n\t\tif (is_array($value)) {\r\n\t\t\t$this->_info = new CAttributeCollection($value,true);\r\n\t\t}\r\n\t\telseif ($value instanceof CAttributeCollection) {\r\n\t\t\t$this->_info = $value;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new CException(\"ACurl::setInfo() - \\$value must be an array or a CAttributeCollection\");\r\n\t\t}\r\n\t}", "public function catalog(Request $request)\n {\n $productCategories = SubCategory::inRandomOrder()->take(20)->get();\n\n $products = QueryBuilder::for(Product::class)\n ->allowedFilters([\n 'title',\n 'subCategory',\n AllowedFilter::scope('min_price'),\n AllowedFilter::scope('max_price'),\n ])\n ->with('productImage')\n ->paginate(20);\n\n return view('shop.catalog')->with([\n 'productCategories' => $productCategories,\n 'products' => $products\n ]);\n }", "public function getInfoCatalogs(): ?array {\n $val = $this->getBackingStore()->get('infoCatalogs');\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 'infoCatalogs'\");\n }", "private function setAmavisServerCollection() : void {\n $this->amavisServerCollection = new AmavisServerCollection();\n }", "public function catalogList(array $options, $currency = 'EUR', $grid = 'A')\n {\n return $this->gandi->setup()->catalog->list($options, $currency, $grid);\n }", "public function getCatalog() {\n\t\treturn $this->_catalog;\n\t}", "public function getCatalog(Request $request)\n {\n $catalog = Catalog::select('name', 'sku', 'id', 'brand', 'model')->where('id', '=', $request->catalog_id)->get();\n\n return json_encode($catalog);\n }", "public function shouldDisplayInCatalog() {\n if ($this -> course['show_catalog']) {\n return $this -> course['id'];\n } else {\n $instances = $this -> getInstances();\n if (!empty($instances)) {\n foreach ($instances as $instance) {\n if ($instance -> course['show_catalog']) {\n return $instance -> course['id'];\n }\n }\n } else {\n return false;\n }\n }\n\n }", "public function setDocuments($documents) {\n $this->documents = $documents;\n }", "protected function isCatalog($data) {\n\t\t$indicator = strtoupper($data[0]);\n\t\tif (!empty($this->items()) && ($indicator == 'CATALOG')) {\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "public function getCompanies($sharedCatalogId);", "public function setObjects(Collection $objects)\n {\n $this->objects = $objects;\n }", "public function initSolicitacaos($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collSolicitacaos && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collSolicitacaos = new PropelObjectCollection();\n\t\t$this->collSolicitacaos->setModel('Solicitacao');\n\t}", "public function initSolicitacaos($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collSolicitacaos && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collSolicitacaos = new PropelObjectCollection();\n\t\t$this->collSolicitacaos->setModel('Solicitacao');\n\t}", "public function customerList($info=array('c_cname')) {\n\t\t$fields = array(self::db()->quoteIdentifier('c_id'));\n\t\tforeach($info as $field) {\n\t\t\t$fields[] = self::db()->quoteIdentifier($field);\n\t\t}\n\n\t\tif($this->get('c_type') != 0) {\n\t\t\t$c_id = $this->get('c_id');\n\n\t\t\t// Stupid ass mysql. Faster to make multiple fetches,\n\t\t\t// and join in PHP than having one query, which joins subquerys\n\t\t\t$sql = '(SELECT se_c_id FROM {Serial_nr} INNER JOIN {Invoice} ON {Invoice}.in_id = {Serial_nr}.in_id WHERE {Invoice}.c_id=%d GROUP BY se_c_id) UNION (SELECT se_c_id FROM {Agreement} WHERE ag_dealer_c_id=%d GROUP BY se_c_id)';\n\n\t\t\t$sql = $this->rewriteSql($sql, $c_id, $c_id);\n\t\t\t$res = self::db()->query($sql);\n\n\t\t\t$c_ids = array();\n\t\t\twhile($id = $res->fetchRow($sql)) {\n\t\t\t\t$c_ids[] = $id[0];\n\t\t\t}\n\n\t\t\t$sql = 'SELECT '.implode(',', $fields).' FROM {table} WHERE c_id IN ('.implode(',', $c_ids).') AND `visible` = 1';\n\t\t\t$sql = $this->rewriteSql($sql);\n\n\t\t} else {\n\t\t\t$sql = 'SELECT '.implode(',', $fields).' FROM {table} WHERE `visible` = 1';\n\t\t\t$sql = $this->rewriteSql($sql);\n\t\t}\n\n\t\t$res = self::db()->query($sql);\n\t\twhile($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {\n\t\t\t$dblist[$row['c_id']] = $row;\n\t\t}\n\n\t\treturn $dblist;\n\n\t}", "public function getCatalogues(): array;", "public function setDottedInfo($info)\n {\n $this->info = $info;\n \n return true;\n }", "public function ResourceInfoSet() {\n $this->resourceInfoSet = array();\n }", "static function setConnectionInfo(array $info) {\n self::$connection_info = $info;\n }", "public function setServices($services);" ]
[ "0.51764655", "0.49134102", "0.4745902", "0.46329665", "0.4578581", "0.4473114", "0.42343712", "0.4224063", "0.420997", "0.4199487", "0.4194288", "0.41660368", "0.41196728", "0.41138333", "0.40973943", "0.40942982", "0.40876353", "0.40480804", "0.4012048", "0.4011812", "0.40019342", "0.39631283", "0.3949936", "0.3949936", "0.3944182", "0.39217153", "0.39134273", "0.38956138", "0.38912377", "0.3889788" ]
0.63944316
0
Sets the informationProtection property value. The informationProtection property
public function setInformationProtection(?InformationProtection $value): void { $this->getBackingStore()->set('informationProtection', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProtection($val)\n {\n $this->_propDict[\"protection\"] = $val;\n return $this;\n }", "public function setMdmWindowsInformationProtectionPolicies(?array $value): void {\n $this->getBackingStore()->set('mdmWindowsInformationProtectionPolicies', $value);\n }", "public function setWindowsInformationProtectionPolicies(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionPolicies', $value);\n }", "public function setInfo($info) {\n $this->_info = $info;\n }", "public function setIosManagedAppProtections(?array $value): void {\n $this->getBackingStore()->set('iosManagedAppProtections', $value);\n }", "public function setProtectionCode($value)\n {\n return $this->setParameter('protectionCode', $value);\n }", "public function setProtected($protected);", "public function setPartnerInformation(?PartnerInformation $value): void {\n $this->getBackingStore()->set('partnerInformation', $value);\n }", "public function getInformationProtection(): ?InformationProtection {\n $val = $this->getBackingStore()->get('informationProtection');\n if (is_null($val) || $val instanceof InformationProtection) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'informationProtection'\");\n }", "function setSofortueberweisungCustomerprotection($customerProtection = true) {\n\t\t$this->paymentMethods[] = 'su';\n\t\tif(!array_key_exists('su', $this->parameters) || !is_array($this->parameters['su'])) {\n\t\t\t$this->parameters['su'] = array();\n\t\t}\n\t\t\n\t\t$this->parameters['su']['customer_protection'] = $customerProtection ? 1 : 0;\n\t\treturn $this;\n\t}", "public function setPrivacyPasswordAttribute($value)\n {\n $this->attributes['privacy_password'] = Crypt::encryptString($value);\n }", "public function SetDeletionProtection($data, string $requestId, \\boolean $deletionProtection)\n\t{\n\t\t$args = [];\n\t\t$args[] = \"{project}\";\n\t\t$args[] = \"{zone}\";\n\t\t$args[] = \"{resourceId}\";\n\t\t$url = $this->replaceUri('https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setDeletionProtection', $args);\n\t\t$queryArgs = [];\n\t\t$queryArgs[] = $requestId;\n\t\t$queryArgs[] = $deletionProtection;\n\t\t$url = $this->parseArgs($url, $queryArgs);\n\t\t$url = $this->prepareUrl($url);\n\t\treturn $this->post($url, $data->getJson());\n\t}", "public function setProtection($value) {\n if (!is_numeric($value))\n throw new Exception('Weight must be numeric');\n if ($value > 100)\n throw new Exception('A fruit cannot weigh more than 1kg');\n $this->protection = $value;\n return $this;\n }", "function setSofortvorkasseCustomerprotection($customerProtection = true) {\n\t\t$this->paymentMethods[] = 'sv';\n\t\tif(!array_key_exists('sv', $this->parameters) || !is_array($this->parameters['sv'])) {\n\t\t\t$this->parameters['sv'] = array();\n\t\t}\n\t\t$this->parameters['sv']['customer_protection'] = $customerProtection ? 1 : 0;\n\t\treturn $this;\n\t}", "public function set_genital_problem_information($genital_problem_information) {\n\t\t$this->_genital_problem_information = $genital_problem_information;\n\t}", "public function setWindowsManagedAppProtections(?array $value): void {\n $this->getBackingStore()->set('windowsManagedAppProtections', $value);\n }", "public function setDefaultManagedAppProtections(?array $value): void {\n $this->getBackingStore()->set('defaultManagedAppProtections', $value);\n }", "public function setAuthorizationInfo(?AuthorizationInfo $value): void {\n $this->getBackingStore()->set('authorizationInfo', $value);\n }", "public function setInformations($infos){\n\t\t\t$this->options=$infos;\n\t\t}", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setAndroidManagedAppProtections(?array $value): void {\n $this->getBackingStore()->set('androidManagedAppProtections', $value);\n }", "function setInfo($info);", "public function setDisableProtectionOfManagedOutboundOpenInData(?bool $value): void {\n $this->getBackingStore()->set('disableProtectionOfManagedOutboundOpenInData', $value);\n }", "public function testSetProteinAccession() {\n\t\techo (\"\\n********************Test SetProteinAccession()**********************************************\\n\");\n\t\n\t\t$this->protein->setProteinAccession( 'setProteinAccession' );\n\t\t$this->assertEquals ( 'setProteinAccession', $this->protein->getProteinAccession() );\n\t}", "public function setInformationUsage(array $informationUsage)\n {\n $this->informationUsage = $informationUsage;\n return $this;\n }", "public function setVendorInformation($value)\n {\n $this->setProperty(\"VendorInformation\", $value, true);\n }", "public function set(array $encapsulate_info = null);", "function setPrivacyPolicy($privacyPolicy)\n {\n $this->privacyPolicy = $privacyPolicy;\n }", "public function informationProtection(): InformationProtectionRequestBuilder {\n return new InformationProtectionRequestBuilder($this->pathParameters, $this->requestAdapter);\n }" ]
[ "0.64066666", "0.6121708", "0.5911197", "0.54818875", "0.5411453", "0.5377826", "0.53563446", "0.53123045", "0.52928823", "0.5289135", "0.52074844", "0.513354", "0.51154506", "0.50938094", "0.50386316", "0.5028711", "0.50273687", "0.5004534", "0.4877648", "0.4873894", "0.4873894", "0.48704436", "0.4835695", "0.4831734", "0.48272857", "0.47637627", "0.4751479", "0.4739439", "0.47068527", "0.46931514" ]
0.83249265
0
Sets the insights property value. The insights property
public function setInsights(?ItemInsights $value): void { $this->getBackingStore()->set('insights', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setInsights(?string $value): void {\n $this->getBackingStore()->set('insights', $value);\n }", "public function __construct(Insights $insights)\n {\n $this->insights = $insights;\n }", "public function setWins($value){\n $this->wins=$value;\n }", "public function setHealthStatus(?UserExperienceAnalyticsHealthState $value): void {\n $this->getBackingStore()->set('healthStatus', $value);\n }", "public function set($settings) {}", "public function set_msa_alertness($value)\n {\n $this->msa_alertness = self::id_or_entity_helper($value, 'MentalAlertness');\n }", "public function setSettings($pixel_id, $pixel_enabled);", "public function setSettingsAttribute($value)\n {\n $this->attributes['settings'] = json_encode($value);\n }", "public function setMetaValueAttribute($value)\n {\n if (! is_null($value)) {\n $value = $value ? 1 : 0;\n }\n parent::setMetaValueAttribute($value);\n }", "public function setValueIn($value)\n\t{\n\t\t$this->value = $value;\n\t}", "function setHealth(int $health)\n {\n }", "public function setStats($flag) {}", "public function setWins()\n {\n $this->wins++;\n }", "public function setInboundTrust(?CrossTenantAccessPolicyInboundTrust $value): void {\n $this->getBackingStore()->set('inboundTrust', $value);\n }", "public function __set($stat, $value) {\n\n\t\t\tif (array_key_exists($stat, $this->stats)) {\n\t\t\t\t$this->stats[$stat] = $value;\n\t\t\t}\n\t\t}", "public function setValue($int) {\r\n\t\t$this->value = $int;\r\n\t}", "public function setInterests(?array $value): void {\n $this->getBackingStore()->set('interests', $value);\n }", "public function setUserImpact($value)\n {\n $this->setProperty(\"UserImpact\", $value, true);\n }", "public function setEntity($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Ads\\GoogleAds\\V13\\Services\\AudienceInsightsEntity::class);\n $this->writeOneof(5, $var);\n\n return $this;\n }", "public function setEntity($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Ads\\GoogleAds\\V14\\Services\\AudienceInsightsEntity::class);\n $this->writeOneof(5, $var);\n\n return $this;\n }", "public function setAnalytics(?UserAnalytics $value): void {\n $this->getBackingStore()->set('analytics', $value);\n }", "public function setWeight(?float $value): void {\n $this->getBackingStore()->set('weight', $value);\n }", "public function set_secondary_impression($value)\n {\n $this->secondary_impression = self::id_or_entity_helper($value, 'Impression');\n }", "public function setWorkFromAnywhereMetrics($val)\n {\n $this->_propDict[\"workFromAnywhereMetrics\"] = $val;\n return $this;\n }", "public function setCoverWrapDimensionsAttribute($value)\n {\n $this->attributes['cover_wrap_dimensions'] = serialize($value);\n }", "public function instanceWrite($property, $value);", "public function setDeviceReporting(?int $value): void {\n $this->getBackingStore()->set('deviceReporting', $value);\n }", "public function setInsightlyService(\\Insightly $insightlyService)\n {\n $this->insightlyService = $insightlyService;\n\n return $this;\n }", "public function setRemediationImpact(?string $value): void {\n $this->getBackingStore()->set('remediationImpact', $value);\n }", "public function __set($key, $value) {\n if (!array_key_exists($key, $this->settings)) {\n return;\n }\n $this->settings[$key]['target'] = $value['target'];\n $this->settings[$key]['source'] = $value['source'];\n }" ]
[ "0.75078124", "0.56546146", "0.5064302", "0.49213254", "0.48972538", "0.48925376", "0.48649108", "0.47940588", "0.47638837", "0.47342178", "0.4711634", "0.46940213", "0.46476543", "0.46461928", "0.46320948", "0.4593565", "0.45779467", "0.45749867", "0.45711145", "0.45710263", "0.45569724", "0.45526648", "0.45353583", "0.4525728", "0.45180145", "0.44941926", "0.44819552", "0.44763947", "0.44634035", "0.44630295" ]
0.6957852
1
Sets the interests property value. A list for the user to describe their interests. Returned only on $select.
public function setInterests(?array $value): void { $this->getBackingStore()->set('interests', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function interests()\n {\n return $this->hasMany(Interest::class);\n }", "public function setIndoorInterests($indoorInterests)\r\n {\r\n $this->_indoorInterests = $indoorInterests;\r\n }", "public function setUserInterestId($var)\n {\n GPBUtil::checkInt64($var);\n $this->user_interest_id = $var;\n\n return $this;\n }", "public function initInterests()\n\t{\n\t\t$this->collInterests = array();\n\t}", "public function setInDoorInterests($inDoorInterests)\r\n {\r\n $this->_inDoorInterests = $inDoorInterests;\r\n }", "public function notification_list_interests()\n {\n return [];\n }", "function setIndoor($indoorInterests)\n {\n $this->_inDoorInterests = $indoorInterests;\n }", "public function setInterestRate($interestRate)\n {\n $this->interestRate = floatval($interestRate);\n }", "public function setUserInterest($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Ads\\GoogleAds\\V13\\Common\\UserInterestInfo::class);\n $this->writeOneof(4, $var);\n\n return $this;\n }", "public function setUserInterest($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Ads\\GoogleAds\\V14\\Common\\UserInterestInfo::class);\n $this->writeOneof(4, $var);\n\n return $this;\n }", "public function user_interests(Request $request)\n {\n $lang_id = $request->input('lang_id');\n Helpers::Set_locale($lang_id);\n \n $user = User::where(\"api_token\", '=', $request->header('access-token'))->first();\n return Helpers::Get_Response(200, 'success', '', [], $user->interests);\n\n\n }", "public function getIndoorInterests()\r\n {\r\n return $this->_indoorInterests;\r\n }", "public function interestRates()\n {\n return $this->hasMany('App\\Debt\\InterestRate');\n }", "public function get_all_interest()\n {\n $q = $this->db->get('interested');\n if ($q->num_rows() > 0){\n return $q->result();\n }return array();\n }", "public function setOutdoorInterests($outdoorInterests)\r\n {\r\n $this->_outdoorInterests = $outdoorInterests;\r\n }", "public function insertAllInterests($interests) {\n\t\n\t\tif(empty($this->_bankInterestModel)) {\n\t\t\t\n\t\t\t$this->_bankInterestModel = new Datasource_Insurance_LegacyBankInterest ();\n\t\t}\n\t\t\n\t\t$this->_bankInterestModel->insertAllInterests($interests);\n\t}", "public function getInterestRate()\n {\n return $this->interestRate;\n }", "public function getInterest($interestId) {\n\t\n\t\tif(empty($this->_bankInterestModel)) {\n\t\t\t\n\t\t\t$this->_bankInterestModel = new Datasource_Insurance_LegacyBankInterest ();\n\t\t}\n\t\t\n\t\treturn $this->_bankInterestModel->getInterest($interestId);\n\t}", "public function get_interest()\n {\n return (int)$this->interest;\n }", "public function getInterests(): ?array {\n $val = $this->getBackingStore()->get('interests');\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 'interests'\");\n }", "public function setIncentives($value)\n {\n $this->incentives = $value;\n }", "function interests()\r\n {\r\n $user = $_SESSION['user'];\r\n\r\n // if the form has been submitted, add data to session and send user to the summary\r\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\r\n $user->setInDoorInterests($_POST['indoorInterests']);\r\n $user->setOutDoorInterests($_POST['outdoorInterests']);\r\n\r\n // validate interests in case of spoofs, is okay if empty though\r\n // in door interests\r\n if(!empty($_POST['indoorInterests'])) {\r\n if(!Validation::validIndoor($_POST['indoorInterests'])){\r\n $this->_f3->set('errors[\"spoof\"]', 'Cheater!');\r\n }\r\n }\r\n\r\n // out door interests\r\n if(!empty($_POST['outdoorInterests'])) {\r\n if(!Validation::validOutdoor($_POST['outdoorInterests'])){\r\n $this->_f3->set('errors[\"spoof\"]', 'Cheater!');\r\n }\r\n }\r\n\r\n // if the error array is empty, redirect to next page\r\n if(empty($this->_f3->get('errors'))) {\r\n header('location: summary');\r\n }\r\n }\r\n\r\n // Add indoorBoxes and outdoorBoxes to the hive\r\n $this->_f3->set(\"indoorBoxes\", DataLayer::getIndoorBoxes());\r\n $this->_f3->set(\"outdoorBoxes\", DataLayer::getOutdoorBoxes());\r\n\r\n // display the form part 3 \"Interests\"\r\n $view = new Template();\r\n echo $view->render('views/interests.html');\r\n }", "public function getUserInterest()\n {\n return $this->readOneof(4);\n }", "public function getUserInterest()\n {\n return $this->readOneof(4);\n }", "public function getInDoorInterests()\r\n {\r\n return $this->_inDoorInterests;\r\n }", "public static function recommendedInterests($cid, $limit=NULL) {\n $interestsSQL = NULL;\n $interests = array();\n\n $schemaInterests = CRM_ComposeQL_APIUtil::getCustomFieldSchema('volunteer_information', 'Interests');\n\n $interests = civicrm_api3('Contact', 'getValue', array(\n 'return' => 'custom_'.$schemaInterests['id'],\n 'contact_id' => $cid,\n ));\n\n $interestsSQL = self::getAppealsByImpactAreaSQL($interests);\n\n if (isset($limit)) {\n $interestsSQL['APPEND'] = \"LIMIT $limit\";\n }\n\n // var_dump(CRM_ComposeQL_SQLUtil::debugComposeQLQuery($interestsSQL));\n return CRM_ComposeQL_DAO::fetchSelectQuery($interestsSQL);\n }", "public function update(Request $request, CustomerInterests $interest)\n {\n try {\n $interest->update($request->validate([\n \"interest\" => \"required\",\n \"customer_id\" => \"required\"\n ]));\n\n return response()->json($interest);\n } catch (\\Exception $e) {\n return response()->json($e);\n }\n }", "public function updateInterestWith($volunteerInterests) {\n $counter = 0;\n //Generic array of database field names.\n $fieldNames = array(\n '',\n 'volunteer_id',\n 'interest_id',\n 'comments',\n );\n\n //Array to have the keys/values to update the row.\n $fieldUpdateValues = array();\n //For every value passed from the form entry.\n foreach ($volunteerInterests as $fieldValue) {\n //Add the key ($fieldNames[$counter]) and the value ($fieldValue)\n //To an array ($fieldUpdateValues) to be updated lower.\n if ($counter > 0) {\n $fieldUpdateValues = array_add($fieldUpdateValues, $fieldNames[$counter], $fieldValue);\n }\n $counter++;\n }\n //Update the field/values in $fieldUpdateValues!!!\n $affectedRows = \\VolunteerInterest::where('id', '=', $volunteerInterests['id'])->update($fieldUpdateValues);\n }", "public function userInterests()\n {\n return $this->hasMany('App\\Models\\Userinterest', 'topic_id');\n }", "public function getXsiTypeName() {\n return \"CriterionUserInterest\";\n }" ]
[ "0.6304575", "0.6250578", "0.608862", "0.59181726", "0.5915284", "0.5813736", "0.58097947", "0.57744133", "0.5715474", "0.5708445", "0.5517655", "0.54480624", "0.5443895", "0.53686094", "0.53317016", "0.53283495", "0.5281079", "0.52742904", "0.52642727", "0.5220472", "0.5206321", "0.5190801", "0.51835877", "0.51835877", "0.5164419", "0.51428217", "0.5134621", "0.51272184", "0.51147074", "0.50842047" ]
0.7070145
0
Sets the isLicenseReconciliationNeeded property value. Indicates whether the user is pending an exchange mailbox license assignment. Readonly. Supports $filter (eq where true only).
public function setIsLicenseReconciliationNeeded(?bool $value): void { $this->getBackingStore()->set('isLicenseReconciliationNeeded', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkLicense()\n {\n $result = true;\n if (\\XLite::isFreeLicense()\n && 'license_restriction' == \\XLite\\Core\\Request::getInstance()->page\n ) {\n $result = false;\n }\n\n return $result;\n }", "public function setAllowedLicenses($allowedLicenses)\n {\n $this->allowedLicenses = $allowedLicenses;\n return $this;\n }", "public function setRepriceRequired($repriceRequired)\n {\n $this->repriceRequired = $repriceRequired;\n return $this;\n }", "public function setRepriceRequired($repriceRequired)\n {\n $this->repriceRequired = $repriceRequired;\n return $this;\n }", "public function assignFreeLicenses()\n {\n //Se selecciona cualquier licencia activa del producto\n $licenses = License::select('*')\n ->where('licenses.state', 'Active')\n ->where('licenses.duration', -1)\n ->get();\n\n foreach ($licenses as $license) {\n //De acuerdo al producto se restablece el max_amount en la configiración del producto\n if($license->product->name == 'TrSoft/Copy Binary'){\n $product_setting = $this->getProductSetting($license->product_id);\n\n if(!$product_setting){\n $product_setting = new ProductSetting();\n $product_setting->amount = 1;//$license->max_amount;\n $product_setting->user_id = $this->id;\n $product_setting->product_id = $license->product_id;\n }\n\n $product_setting->max_amount = $license->max_amount;\n $product_setting->save();\n }\n\n $this->save();\n\n //Ultimos datos de comisión registrados\n $commission = $license->lastCommission();\n //Ultimos datos de precios registrados\n $price = $license->lastPrice();\n\n if($commission && $price && $price->price == 0){\n $user_license = new UserLicense();\n $user_license->user_id = $this->id;\n $user_license->commission_id = $commission->id;\n $user_license->license_price_id = $price->id;\n $user_license->state = 'Active';\n $user_license->activation_date = date('Y-m-d H:i:s');\n $user_license->save();\n }\n }\n }", "public static function activate_license() {\n\t\t$license_data = self::api( 'activate_license' );\n\n\t\tif ( is_object( $license_data ) ) {\n\t\t\t// $license_data->license will be either \"deactivated\" or \"failed\"\n\t\t\tif ( $license_data->license == 'valid' ) {\n\t\t\t\tupdate_option( self::LICENSE_STATUS, $license_data->license );\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public function getIsLicenseReconciliationNeeded(): ?bool {\n $val = $this->getBackingStore()->get('isLicenseReconciliationNeeded');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'isLicenseReconciliationNeeded'\");\n }", "public function checkLicenseAgreement(RequestEvent $event) {\n // Only for authenticated users.\n if ($this->currentUser->isAuthenticated()) {\n $user = User::load($this->currentUser->id());\n $license_agreement = $this->userData->get('covid', $user->id(), 'license_agreement');\n\n // Don't allow access to license agreement page if user already agreed.\n if ($this->routeMatch->getRouteName() === 'covid.license_agreement' && !empty($license_agreement)) {\n $url = new Url('<front>');\n $event->setResponse(new RedirectResponse($url->toString()));\n $this->messenger->addStatus(\"Souhlas s licenčním ujednáním byl již udělen.\");\n }\n }\n }", "function activate_license() {\n\t\tglobal $wp_version;\n\t\t$ss_settings = get_option( 'shoestrap' );\n\n\t\t// Only continue if the status transient is not set to 'valid'.\n\t\tif ( get_transient( $this->field_name . '_status' ) == 'valid' ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// data to send in our API request\n\t\t$api_params = array(\n\t\t\t'edd_action'=> 'activate_license',\n\t\t\t'license' \t=> $this->license,\n\t\t\t'item_name' => urlencode( $this->item_name )\n\t\t);\n\n\t\t// Call the custom API.\n\t\t$response = wp_remote_get(\n\t\t\tadd_query_arg( $api_params, $this->remote_api_url ),\n\t\t\tarray( 'timeout' => 15, 'sslverify' => false )\n\t\t);\n\n\t\t// make sure the response came back okay\n\t\tif ( is_wp_error( $response ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// decode the license data\n\t\t$license_data = json_decode( wp_remote_retrieve_body( $response ) );\n\n\t\t// Set the transient for 6 hours.\n\t\tset_transient( $this->field_name . '_status', $license_data->license, 6 * 60 * 60 );\n\t}", "public function needSubscription()\n {\n return $this->need_subscription;\n }", "public function isLicenseValid()\n {\n return array_get($this->response, 'license_valid');\n }", "function updateLicense()\n {\n if (!$this->di->config->get('license'))\n return; // empty license. trial?\n if ($this->di->store->get('app-update-license-checked'))\n return;\n try {\n $req = new Am_HttpRequest('https://update.amember.com/license.php');\n $req->setConfig('connect_timeout', 2);\n $req->setMethod(Am_HttpRequest::METHOD_POST);\n $req->addPostParameter('license', $this->di->config->get('license'));\n $req->addPostParameter('root_url', $this->di->config->get('root_url'));\n $req->addPostParameter('root_surl', $this->di->config->get('root_surl'));\n $req->addPostParameter('version', AM_VERSION);\n $this->di->store->set('app-update-license-checked', 1, '+12 hours');\n $response = $req->send();\n if ($response->getStatus() == '200') {\n $newLicense = $response->getBody();\n if ($newLicense)\n if (preg_match('/^L[A-Za-z0-9\\/=+\\n]+X$/', $newLicense))\n Am_Config::saveValue('license', $newLicense);\n else\n throw new Exception(\"Wrong License Key Received: [\" . $newLicense . \"]\");\n }\n } catch (Exception $e) {\n if (AM_APPLICATION_ENV != 'production')\n throw $e;\n }\n }", "public function forceLicenseAgreement(RequestEvent $event) {\n // Only for authenticated users.\n if ($this->currentUser->isAuthenticated()) {\n $user = User::load($this->currentUser->id());\n $license_agreement = $this->userData->get('covid', $user->id(), 'license_agreement');\n\n // Check if TFA is disabled.\n if (empty($license_agreement)) {\n // Only if current route is not ignored.\n if (!in_array($this->routeMatch->getRouteName(), [\n 'entity.user.edit_form',\n 'one_time_password.setup_form',\n 'user.logout',\n 'covid.license_agreement',\n ])) {\n // Redirect to TFA setup form and show message.\n $url = new Url('covid.license_agreement');\n $event->setResponse(new RedirectResponse($url->toString()));\n $this->messenger->addError(\"Prosíme o udělení souhlasu s licenčním ujednáním.\");\n }\n }\n }\n }", "function mcs_recheck_license( $key ) {\n\t$transient = get_transient( 'mcs_last_check' );\n\tif ( $transient ) {\n\t\treturn;\n\t} else {\n\t\t$api_params = array(\n\t\t\t'edd_action'=> 'check_license', \n\t\t\t'license' \t=> $key, \n\t\t\t'item_name' => urlencode( EDD_MCP_ITEM_NAME ), // the name of our product in EDD,\n\t\t\t'url' => home_url()\n\t\t);\n\t\t\n\t\t// Call the custom API.\n\t\t$response = wp_remote_post( EDD_MCP_STORE_URL, array(\n\t\t\t'timeout' => 15,\n\t\t\t'sslverify' => false,\n\t\t\t'body' => $api_params\n\t\t) );\n\t\t// make sure the response came back okay\n\t\tif ( is_wp_error( $response ) ) {\n\t\t\treturn false;\n\t\t}\n\t\t// decode the license data\n\t\t$license_data = json_decode( wp_remote_retrieve_body( $response ) );\n\t\tupdate_option( 'mcs_license_status', array( current_time( 'timestamp' ) => $license_data ) );\n\t\tset_transient( 'mcs_last_check', true, DAY_IN_SECONDS );\n\t}\n}", "function is_reserved(){\n\t $result = false;\n\t if( $this->booking_status == 0 && get_option('dbem_bookings_approval_reserved') ){\n\t $result = true;\n\t }elseif( $this->booking_status == 0 && !get_option('dbem_bookings_approval') ){\n\t $result = true;\n\t }elseif( $this->booking_status == 1 ){\n\t $result = true;\n\t }\n\t return apply_filters('em_booking_is_reserved', $result, $this);\n\t}", "public function needsReconciliationFlag($reconciliation_row) {\n\t\tif ($reconciliation_row['timestamp'] < strtotime('10/01/2015')) {\n\t\t\treturn false;\n\t\t}\n\t\tif (in_array($reconciliation_row['offer_id'], array('45001', '45002'))) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (!isset($this->OfferRedemption)) {\n\t\t\tApp::import('Model', 'OfferRedemption');\n\t\t\tApp::import('Model', 'Offer');\n\t\t\t$this->OfferRedemption = new OfferRedemption;\n\t\t\t$this->Offer = new Offer;\n\t\t}\n\t\t\n\t\t$offer = $this->Offer->find('first', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'Offer.partner' => OFFER_ADWALL,\n\t\t\t\t'Offer.offer_partner_id' => $reconciliation_row['offer_id'],\n\t\t\t)\n\t\t));\n\t\tif (!$offer) {\n\t\t\t$this->Offer->create();\n\t\t\t$this->Offer->save(array('Offer' => array(\n\t\t\t\t'partner' => OFFER_ADWALL,\n\t\t\t\t'offer_partner_id' => $reconciliation_row['offer_id'],\n\t\t\t\t'offer_title' => $reconciliation_row['offer_title'],\n\t\t\t\t'award' => $reconciliation_row['amount']\n\t\t\t)));\n\t\t}\n\t\telse {\n\t\t\t$count = $this->OfferRedemption->find('count', array(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'OfferRedemption.partner' => OFFER_ADWALL,\n\t\t\t\t\t'OfferRedemption.offer_id' => $offer['Offer']['id'], \n\t\t\t\t\t'OfferRedemption.user_id' => $reconciliation_row['user_id']\n\t\t\t\t)\n\t\t\t));\n\t\t\tif ($count) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function requireApproval()\n {\n $this->transporter->setParam('isApproval', 'true');\n\n return $this;\n }", "public function restrict( $is_restricted = false, $post_id = 0, $download_id = 0, $user_id = 0, $price_id = null ) {\n\n\t\tif( ! edd_cr_is_restricted( $post_id ) ) {\n\t\t\treturn $is_restricted;\n\t\t}\n\n\t\tif( ! get_post_meta( $post_id, '_edd_cr_active_only', true ) ) {\n\t\t\treturn $is_restricted; // Leave untouched\n\t\t}\n\n\n\t\t$subscriber = new EDD_Recurring_Subscriber( $user_id, true );\n\n\t\tif( ! $subscriber->has_active_product_subscription( $post_id ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn $is_restricted;\n\t}", "function edd_wordimpress_activate_license( $force_check = false ) {\r\n\r\n\t\t// listen for our activate button to be clicked\r\n\t\tif ( isset( $_POST['edd_license_activate'] ) || $force_check == true ) {\r\n\r\n\t\t\t//run a quick security check\r\n\t\t\tif ( ! check_admin_referer( 'edd_wordimpress_nonce', 'edd_wordimpress_nonce' ) ) {\r\n\t\t\t\treturn false;\r\n\t\t\t} // get out if we didn't click the Activate button\r\n\r\n\t\t\t// retrieve the license from the database\r\n\t\t\t$license = $this->get_license();\r\n\r\n\t\t\t// data to send in our API request\r\n\t\t\t$api_params = array(\r\n\t\t\t\t'edd_action' => 'activate_license',\r\n\t\t\t\t'license' => $license,\r\n\t\t\t\t'item_name' => urlencode( $this->item_name ) // the name of our product in EDD\r\n\t\t\t);\r\n\r\n\t\t\t// Call the WordImpress EDD API.\r\n\t\t\t$response = wp_remote_post( $this->store_url, array(\r\n\t\t\t\t'timeout' => 120,\r\n\t\t\t\t'sslverify' => false,\r\n\t\t\t\t'body' => $api_params\r\n\t\t\t) );\r\n\r\n\t\t\t// make sure the response came back okay\r\n\t\t\tif ( is_wp_error( $response ) ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// decode the license data\r\n\t\t\t$license_data = json_decode( wp_remote_retrieve_body( $response ) );\r\n\r\n\t\t\t// $license_data->license will be either \"active\" or \"inactive\"\r\n\t\t\tupdate_option( $this->licence_key_option,\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'license_key' => $license,\r\n\t\t\t\t\t'license_item_name' => $license_data->item_name,\r\n\t\t\t\t\t'license_expiration' => $license_data->expires,\r\n\t\t\t\t\t'license_status' => $license_data->license,\r\n\t\t\t\t\t'license_limit' => $license_data->license_limit,\r\n\t\t\t\t\t'activations_left' => $license_data->activations_left,\r\n\t\t\t\t\t'license_name' => $license_data->customer_name,\r\n\t\t\t\t\t'license_email' => $license_data->customer_email,\r\n\t\t\t\t\t'license_payment_id' => $license_data->payment_id,\r\n\t\t\t\t\t'license_error' => isset( $license_data->error ) ? $license_data->error : '',\r\n\t\t\t\t)\r\n\t\t\t);\r\n\r\n\t\t}\r\n\t}", "public function requiresValidLicense()\n {\n if (is_null(static::$requiresLicense)) {\n if ($countMemberWithCPAccess = ee()->cache->get('cp_member_count')) {\n static::$requiresLicense = ($countMemberWithCPAccess > 1);\n\n return static::$requiresLicense;\n }\n\n $cpRoleIds = ee('db')->distinct()->select('role_id')->from('permissions')->where('permission', 'can_access_cp')->get();\n $cpRoles = [1];\n foreach ($cpRoleIds->result_array() as $row) {\n $cpRoles[] = $row['role_id'];\n }\n $cpRolesList = implode(', ', array_unique($cpRoles));\n $countMemberWithCPAccessQuery = \"SELECT COUNT(DISTINCT(exp_members.member_id)) AS count\n FROM exp_members\n LEFT JOIN exp_members_roles ON (exp_members.member_id = exp_members_roles.member_id)\n LEFT JOIN exp_members_role_groups ON (exp_members.member_id = exp_members_role_groups.member_id)\n LEFT JOIN exp_roles_role_groups ON (exp_members_role_groups.group_id = exp_roles_role_groups.group_id)\n WHERE exp_members.role_id IN ({$cpRolesList})\n OR exp_members_roles.role_id IN ({$cpRolesList})\n OR exp_roles_role_groups.role_id IN ({$cpRolesList})\";\n $countMemberWithCPAccess = ee()->db->query($countMemberWithCPAccessQuery)->row('count');\n ee()->cache->save('cp_member_count', $countMemberWithCPAccess, 60);\n\n static::$requiresLicense = ($countMemberWithCPAccess > 1);\n }\n\n return static::$requiresLicense;\n }", "public function isRenewSubscriptionInvoice()\n {\n return $this->type == self::TYPE_RENEW_SUBSCRIPTION;\n }", "function edd_check_license() {\r\n\r\n\t\tglobal $wp_version;\r\n\r\n\t\t// retrieve the license from the database\r\n\t\t$license = $this->get_license();\r\n\r\n\t\t$api_params = array(\r\n\t\t\t'edd_action' => 'check_license',\r\n\t\t\t'license' => $license,\r\n\t\t\t'item_name' => urlencode( $this->item_name )\r\n\t\t);\r\n\r\n\t\t// Call the custom API.\r\n\t\t$response = wp_remote_get( add_query_arg( $api_params, $this->store_url ), array(\r\n\t\t\t'timeout' => 15,\r\n\t\t\t'sslverify' => false\r\n\t\t) );\r\n\r\n\r\n\t\tif ( is_wp_error( $response ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$license_data = json_decode( wp_remote_retrieve_body( $response ) );\r\n\r\n\t\tif ( $license_data->license == 'valid' ) {\r\n\t\t\treturn 'valid';\r\n\t\t\t// this license is still valid\r\n\t\t} else {\r\n\t\t\t// this license is no longer valid\r\n\t\t\t$_POST['option_page'] = $this->licence_key_setting;\r\n\t\t\t$this->edd_wordimpress_deactivate_license( $plugin_deactivate = true );\r\n\r\n\t\t\treturn 'invalid';\r\n\t\t}\r\n\t}", "public function setUsedLicenses($usedLicenses)\n {\n $this->usedLicenses = $usedLicenses;\n return $this;\n }", "protected function isCheckRequiredOnlyChanged(): bool\n\t{\n\t\treturn false;\n\t}", "function rp4wp_filter_legacy_renewal_emails( $licenses, $email_data, $date ) {\n\n\t$sub_launch_date = lwp_get_subscription_launch_date();\n\n\t/**\n\t * @var int $lk\n\t * @var \\Never5\\LicenseWP\\License\\License $license\n\t */\n\tforeach ( $licenses as $lk => $license ) {\n\t\tif ( $license->get_date_created() > $sub_launch_date ) {\n\t\t\tunset( $licenses[ $lk ] );\n\t\t}\n\t}\n\n\treturn $licenses;\n}", "public static function maybe_activate_license() {\n\t\tif ( ! isset( $_REQUEST['security'] ) ) {\n\t\t\tself::ajax_fail( 'Forget something?' ); }\n\n\t\t$nonce = $_REQUEST['security'];\n\t\tif ( ! wp_verify_nonce( $nonce, self::NONCE ) ) {\n\t\t\tself::ajax_fail( 'Not going to fall for it!' ); }\n\n\t\tif ( ! current_user_can( 'activate_plugins' ) ) {\n\t\t\treturn; }\n\n\t\tif ( ! isset( $_REQUEST['license'] ) ) {\n\t\t\tself::ajax_fail( 'No license key submitted' );\n\t\t}\n\n\t\tupdate_option( self::LICENSE_KEY_OPTION, $_REQUEST['license'] );\n\t\tself::$license_key = $_REQUEST['license'];\n\n\t\t$activated = self::activate_license();\n\t\t$message = ( $activated ) ? __( 'Thank you for supporting the future of Sprout Clients and Sprout Apps.' , 'sprout-invoices' ) : __( 'License is not active.' , 'sprout-invoices' );\n\t\t$response = array(\n\t\t\t\t'activated' => $activated,\n\t\t\t\t'response' => $message,\n\t\t\t\t'error' => ! $activated,\n\t\t\t);\n\n\t\theader( 'Content-type: application/json' );\n\t\techo json_encode( $response );\n\t\texit();\n\t}", "function licenseActivate() {\n if( isset( $_POST['edd_license_activate'] ) ) {\n\t\t\t\n // run a quick security check \n if( ! check_admin_referer( 'edd_sample_nonce', 'edd_sample_nonce' ) ) \n return; // get out if we didn't click the Activate button\n\n // retrieve the license from the database\n $license = trim( $_POST['sg90_license_key'] );\n\n // data to send in our API request\n $api_params = array( \n 'edd_action'=> 'activate_license', \n 'license' => $license, \n 'item_name' => urlencode( EDD_SAMPLE_ITEM_NAME )\n );\n \n // Call the custom API.\n $response = wp_remote_get( add_query_arg( $api_params, EDD_SAMPLE_STORE_URL ), array( 'timeout' => 15, 'sslverify' => false ) );\n\n // make sure the response came back okay\n if ( is_wp_error( $response ) )\n return false;\n\n // decode the license data\n $license_data = json_decode( wp_remote_retrieve_body( $response ) );\n \n // $license_data->license will be either \"active\" or \"inactive\"\n\n update_option( 'sg90_license_status', $license_data->license );\n update_option( 'sg90_license', $_POST['sg90_license_key'] );\n\n }\n }", "public function setAdditionalLicenses($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->additional_licenses = $arr;\n\n return $this;\n }", "function setJobCreditsRequired($required)\n {\n $this->__job_credits_required = $required ;\n }", "function ssp_plugin_updater_activate_license() {\n\tif ( 'valid' == get_transient( 'ssp_license_status' ) ) {\n\t\treturn;\n\t}\n\n\t// data to send in our API request\n\t$api_params = array( \n\t\t'edd_action' => 'activate_license', \n\t\t'license' => '33d741209efc16e45237d3840800f958', \n\t\t'item_name' => urlencode( 'Shoestrap Extras Pack' )\n\t);\n\t\t\n\t// Call the custom API.\n\t$response = wp_remote_get( add_query_arg( $api_params, 'http://shoestrap.org' ), array( 'timeout' => 15, 'sslverify' => false ) );\n\n\t// make sure the response came back okay\n\tif ( is_wp_error( $response ) ) {\n\t\treturn false;\n\t}\n\n\t// decode the license data\n\t$license_data = json_decode( wp_remote_retrieve_body( $response ) );\n\n\tif ( 'valid' == $license_data->license ) {\n\t\t// If the license is valid, cache th response for 3 days\n\t\tset_transient( 'ssp_license_status', $license_data->license, 72 * 60 * 60 );\n\t} else {\n\t\t// If the license is NOT valid, cache the response for 3 hours.\n\t\tset_transient( 'ssp_license_status', $license_data->license, 3 * 60 * 60 );\n\t}\n}" ]
[ "0.5425698", "0.53702146", "0.51396275", "0.51396275", "0.5086492", "0.5056261", "0.50463575", "0.49541104", "0.49364963", "0.4922018", "0.49117142", "0.49072307", "0.49067298", "0.4902704", "0.4872749", "0.48724037", "0.4871617", "0.481418", "0.47844708", "0.4779552", "0.4751798", "0.47471312", "0.47296816", "0.4720342", "0.47021952", "0.47019425", "0.47014457", "0.4685067", "0.466832", "0.4667812" ]
0.6550528
0
Sets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. Default value is false. Readonly. To manage a user who is a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope.
public function setIsManagementRestricted(?bool $value): void { $this->getBackingStore()->set('isManagementRestricted', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMembersManagement($value) {\n if (is_bool($value)) { $this->MembersManagement = $value; }\n }", "public function canManagement(User $user)\n {\n if ($user->getUserRole() == $this->getAdminRole()) {\n return true;\n }\n\n return false;\n }", "public function isIsManagement()\n {\n return $this->isManagement;\n }", "public function setAdminRights($admin_rights) {\n $this->admin_rights = $admin_rights;\n }", "public function setSuperAdmin($boolean);", "public function setSuperAdmin($boolean);", "public function update(User $user, Management $management)\n {\n $positions = ['ketua', 'wakil ketua'];\n return $user->isAdmin() || $user->member->managementPermission($positions);\n }", "public function setAdmin($bool = true) {\n\t\t$this->admin = $bool;\n\t}", "public function isAdmin()\n {\n return $this->permission == 2 ? true : false;\n }", "public function setModeration($bool)\n {\n $this->_moderation = $bool;\n }", "public function set_is_admin($is_in_admin)\n\t{\n\t\t$this->is_in_admin = (bool) $is_in_admin;\n\t}", "public function setAdmin($isAdmin) {\n $this->isAdmin = $isAdmin;\n }", "public function set_permission(){\n if ( ! current_user_can( 'edit_users' ) ) {\n return new WP_Error( 'rest_forbidden', esc_html__( 'You do not have permissions to perform this action.', 'my-text-domain' ), array( 'status' => 401 ) );\n }\n \n // This approach blocks the endpoint operation. You could alternatively do this by an un-blocking approach, by returning false here and changing the permissions check.\n return true;\n }", "public function getIsManagementRestricted(): ?bool {\n $val = $this->getBackingStore()->get('isManagementRestricted');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'isManagementRestricted'\");\n }", "public static function SetAdmin($value = false) {\n\t\tself::$_admin = $value ? true : false;\n\t\t\n\t\treturn true;\n\t}", "public function isAdmin(){\n return $this->user_level >= 1;\n }", "public function setIsAdmin(?bool $isAdmin) : self\n {\n $this->isAdmin = $isAdmin;\n return $this;\n }", "public function setIsAdmin($is_admin)\n\t{\n\t\t$this->is_admin = ky_assure_bool($is_admin);\n\t\treturn $this;\n\t}", "public function restrict_admin(){\n if ( ! current_user_can( 'manage_options' ) ) {\n wp_die( __('You are not allowed to access this part of the site') );\n }\n }", "public function isAdmin()\n {\n return $this->permission >= static::ADMIN;\n }", "private function checkAdmin()\n\t{\t\n\t\t$adminOnly = property_exists($this, 'adminOnly') ? $this->adminOnly : false;\n\t\tif ($adminOnly) \n\t\t{\n\t\t\t$this->checkLogin(true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->checkPermission();\n\t\t}\n\t}", "function isAdmin(){\r\n return intval($this->is_admin)==1;\r\n }", "public function setisAdmin($isAdmin) {\r\n $this->isAdmin = $prenom;\r\n }", "public function getIsAdminAttribute()\n {\n return $this->role == 0;\n }", "public function setAdmin($userId = \"\")\n {\n\n if ($userId == 0)\n $userId = Yii::app()->user->id;\n\n $membership = $this->getMembership($userId);\n if ($membership != null) {\n $membership->admin_role = 1;\n $membership->save();\n return true;\n }\n return false;\n }", "public function setAdmin($userId = \"\")\n {\n\n if ($userId == 0)\n $userId = Yii::app()->user->id;\n\n $membership = $this->getMembership($userId);\n if ($membership != null) {\n $membership->admin_role = 1;\n $membership->save();\n return true;\n }\n return false;\n }", "public function isAdmin(){\n return ($this->role->id >= 4);\n }", "public function isAdmin()\n {\n return $this->role === 1;\n }", "public function isAdmin(){\r\n\t\treturn $this->admin;\r\n\t}", "public function setRights($value)\n {\n $this->setProperty(\"Rights\", $value, true);\n }" ]
[ "0.6156216", "0.58762395", "0.5725483", "0.5516028", "0.5418611", "0.5418611", "0.52727455", "0.52571505", "0.5167145", "0.5151448", "0.50995344", "0.5060201", "0.5058942", "0.5010168", "0.5006194", "0.4985396", "0.49775574", "0.49520728", "0.49502546", "0.49472123", "0.49413475", "0.49364045", "0.4928089", "0.49210814", "0.49180362", "0.49180362", "0.49088383", "0.4902999", "0.48872876", "0.48831856" ]
0.6876674
0
Sets the jobTitle property value. The user's job title. Maximum length is 128 characters. Supports $filter (eq, ne, not , ge, le, in, startsWith, and eq on null values).
public function setJobTitle(?string $value): void { $this->getBackingStore()->set('jobTitle', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setJobTitle($jobTitle)\n {\n $this->_jobTitle = $jobTitle;\n return $this;\n }", "public function title($filter = null)\n {\n return $this->title;\n }", "function getJobTitle() {\n\t}", "public function set_title( $title ) {\n if( empty( $this->post_name ) ) {\n $this->post_name = sanitize_title( $name );\n }\n }", "public function setTitle($title) {\n $title = (($title !== NULL) && strlen(trim($title)) > 0) ? trim($title) : NULL;\n\n $this->title = $title;\n $this->toSave['title'] = $title;\n }", "function setTitle($inTitle) {\n\t\t$this->getParamSet()->setParam(self::PARAM_TITLE, $inTitle);\n\t\treturn $this;\n\t}", "public function setSearchTextTitle($title)\n {\n $this->_title = $title;\n }", "public function setTitle($var)\n {\n GPBUtil::checkString($var, True);\n $this->title = $var;\n\n return $this;\n }", "public function setTitle($var)\n {\n GPBUtil::checkString($var, True);\n $this->title = $var;\n\n return $this;\n }", "public function enterpriseJobTitle()\n {\n $function = $this->generator->randomElement(['ofTitle', 'simpleTitle', 'fullTitle']);\n return $this->$function();\n }", "public function title($title)\n {\n $this->title = trim($title);\n\n return $this;\n }", "public function set_title($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle(string $title): self\n {\n $this->title = filter_var($title, FILTER_SANITIZE_STRING);\n\n return $this;\n }", "public function jobTitle()\n {\n return $this->getRandomKey('jobTitle');\n }", "public function set_title( $title ) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($_title)\n {\n $this->_title = $_title;\n\n return $this;\n }", "public function setTitle($title) {\n $this->property->title = $title;\n }", "public function title($title)\n {\n $this->params[\"title\"] = urlencode($title);\n \n return($this);\n }", "public function setTitle(string $title) {\n $title = trim($title);\n $length = mb_strlen($title);\n if ($length > USER_TITLE_LENGTH) {\n return false;\n }\n return $this->setUpdate('Title', $title);\n }", "public function title($title = null){\n if($title){\n $this->title = $title;\n } else {\n return $this->title;\n }\n }", "public function setFieldTitle($fieldTitle)\n {\n $this->fieldTitle = (string) $fieldTitle;\n }", "public function setFieldTitle($fieldTitle = null) {\n $this->_fieldTitle = $fieldTitle ? $fieldTitle : $this->_fieldName;\n return $this;\n }", "public function SetTitle($title) {\n $this->_title = htmlspecialchars($title);\n }", "function title($title=null){\n\t if(func_num_args()>0){\n\t\t\t$this->property(\"title\",$title);\n\t\t return $this;\n\t\t}else{\n\t\t\treturn $this->property(\"title\");\n\t\t}\n\t}", "public function setFieldTitle($fieldTitle = null) {\r\n $this->_fieldTitle = $fieldTitle ? $fieldTitle : $this->_fieldName;\r\n return $this;\r\n }", "public function testGetJobTitle()\n {\n $expected = $actual = 'job title';\n\n self::assertEquals($this->person, $this->person->setJobTitle($actual));\n self::assertEquals($expected, $this->person->getJobTitle());\n }", "public function setSearchPageTitle(string $title): self\n {\n $title = trim($title);\n if ($title === '') {\n return $this;\n }\n\n add_filter('document_title_parts', function (array $parts) use ($title) {\n if (! is_admin() && is_search()) {\n $parts['title'] = $title;\n }\n\n return $parts;\n }, 10);\n\n return $this;\n }", "public function setTitle($title) {\n $this->_setModelProperty('title', $title, 'string');\n }", "function title ($title, $replace = false) {\n\t\t$title = htmlentities($title, ENT_COMPAT, 'utf-8');\n\t\tif ($replace) {\n\t\t\t$this->Title = [$title];\n\t\t} else {\n\t\t\t$this->Title[] = $title;\n\t\t}\n\t\treturn $this;\n\t}", "public function title($title)\n {\n return $this->setTitle($title);\n }" ]
[ "0.7129205", "0.62576437", "0.6097569", "0.6097497", "0.60725933", "0.5995852", "0.5990338", "0.59282386", "0.59282386", "0.5907264", "0.5891659", "0.5891611", "0.58881295", "0.5885886", "0.58833843", "0.58797604", "0.58788985", "0.58667225", "0.58642054", "0.5863744", "0.58557487", "0.5840813", "0.5839059", "0.5821431", "0.58208865", "0.580454", "0.5800964", "0.5786534", "0.5783565", "0.5757529" ]
0.66485083
1
Sets the joinedGroups property value. The joinedGroups property
public function setJoinedGroups(?array $value): void { $this->getBackingStore()->set('joinedGroups', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setGroups() {\n $this->groups = Moondee_Entity_Group_Helper::getObjectGroups( $this->id );\n }", "public function setGroupIds( $groupIds );", "function setGroups(array $groups);", "public function setGroups(array $groups = null): self;", "public function setGroups($groups)\n {\n foreach ($groups as $group) {\n $this->addGroup($group);\n }\n }", "public function setGroups($groups)\n {\n foreach ($groups as $group) {\n $this->addGroup($group);\n }\n }", "public function setMemberOf(array $dnGroups)\n {\n $this->memberof = $dnGroups;\n }", "public function setJoined($joined){\n \t$this->joined = trim($joined);\n }", "public function setGroups($groups)\n {\n $this->options['groups'] = (string) $groups;\n }", "protected function loadGroups()\n {\n $groups = self::getSubObjectIDs(\n 'GroupAssociation',\n array('hostID' => $this->get('id')),\n 'groupID'\n );\n $groups = self::getSubObjectIDs(\n 'Group',\n array('id' => $groups)\n );\n $this->set('groups', $groups);\n }", "public function setGroupNGroups($value) {}", "private function set_groups()\n {\n\n foreach ($this->tabs_json['acf']['tab_group'] as $group) {\n $this->groups[] = $group['group'];\n }\n\n }", "public function setjoinGroup()\n {\n $users = User::select(['id', 'name'])->get();\n $groups = Group::select(['id', 'name'])->get();\n return view('admin.permission.join-group', compact('users', 'groups'));\n }", "public function setGroupsList($value)\n {\n $this->setProperty(\"GroupsList\", $value, true);\n }", "public function groups() {\n return $this->belongsToMany(Group::class, 'group_groups', 'group_id', 'linked_group_id')\n ->withTimestamps();\n }", "function setup_groups() {\n global $CFG;\n\n /// find out current groups mode\n $course = get_record('course', 'id', $this->courseid);\n $groupmode = $course->groupmode;\n ob_start();\n $this->currentgroup = setup_and_print_groups($course, $groupmode, $this->pbarurl);\n $this->group_selector = ob_get_clean();\n\n // update paging after group\n $this->baseurl .= 'group='.$this->currentgroup.'&amp;';\n $this->pbarurl .= 'group='.$this->currentgroup.'&amp;';\n\n if ($this->currentgroup) {\n $this->groupsql = \" LEFT JOIN {$CFG->prefix}groups_members gm ON gm.userid = u.id \";\n $this->groupwheresql = \" AND gm.groupid = $this->currentgroup \";\n }\n }", "function fillGroups()\n\t{\n\t\t$this->groups[] = array(-1, \"<\".\"Admin\".\">\");\n\t\t$this->groupFullChecked[] = true;\n\n\t\t$groupIdField = \"GroupID\";\n\t\t$groupLabelField = \"Label\";\n\t\t$groupProviderField = \"Provider\";\n\t\t\n\t\t$dataSource = Security::getUgGroupsDatasource();\n\t\t$dc = new DsCommand();\n\t\tif( storageGet( \"groups_provider_field\" ) ) {\n\t\t\t$dc->order[] = array( \"column\" => $groupProviderField, \"dir\" => \"ASC\" );\n\t\t}\n\t\t$dc->order[] = array( \"column\" => $groupLabelField, \"dir\" => \"ASC\" );\n\t\t$qResult = $dataSource->getList($dc );\n\t\tstorageSet( \"groups_provider_field\", $qResult->fieldExists( $providerField ) );\n\t\twhile( $data = $qResult->fetchAssoc() )\n\t\t{\n\t\t\t// only database groups are shown here\n\t\t\tif( !!$data[ $groupProviderField ] ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$this->groups[] = array( $data[ $groupIdField ], $data[ $groupLabelField ], $data[ $groupProviderField ] );\n\t\t\t$this->groupFullChecked[] = true;\n\t\t}\n\t}", "public function setGroup($value) {}", "public function setGroups(array $groups)\n {\n $this->data[self::GROUPS] = $groups;\n return $this;\n }", "public function setJoins(iterable $joins): self\n {\n $joins = is_array($joins) ? $joins : iterator_to_array($joins, false);\n $this->joins = new ArrayCollection($joins);\n\n return $this;\n }", "private function _setCurrentFieldGroups()\n {\n $fieldGroups = craft()->fields->getAllGroups();\n foreach ($fieldGroups as $fieldGroup) {\n $this->_currentFieldGroups[$fieldGroup->id] = $fieldGroup->name;\n }\n }", "function joinGroup() {\n $group = $this->loadGroup();\n if(!$group) {\n return false;\n }\n\n $user =& JFactory::getUser();\n $db = & JFactory::getDBO();\n\n if(!GroupVPNModelGroupVPN::isGroupMember($group->group_id, $user->id)) {\n JError::raiseWarning(500, JText::_('You must be a member of the following'.\n 'GroupVPN: '.' before joining this GroupAppliance.'));\n return false;\n }\n $group_id = $this->group_id;\n $group_id = $group->$group_id;\n\n $reason = JRequest::getVar(\"reason\");\n $query = \"INSERT INTO \".$this->users_db. \"(user_id, \".$this->group_id.\n \", request, reason) VALUES (\".$user->id.\", \"\n .$group_id.\", 1, \\\"\".$reason.\"\\\")\";\n if($db->Execute($query)) {\n GroupVPNModelGroupVPN::sendAdminNotification($user->email, $user->name,\n $user->username, $group->group_name, $group_id, $post[\"reason\"],\n $this->getAdminEmail($group_id));\n return true;\n }\n\n exit;\n JError::raiseWarning(500, JText::_('Unable to join group...'));\n return false;\n }", "public function assignGroup(...$groups)\n {\n $groups = $this->getCorrectParameter($groups);\n $groups = $this->convertToGroupIds($groups);\n if ($groups->count() == 0) {\n return false;\n }\n $this->groups()->syncWithoutDetaching($groups);\n\n return $this;\n }", "public function setGroupId($newVal)\r\n {\r\n $this->_groupId = $newVal;\r\n return $this;\r\n }", "public static function autoJoinGroupsLogin(\\Elgg\\Event $event): void {\n\t\t$user = $event->getObject();\n\t\tif (!$user instanceof \\ElggUser) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (!isset($user->group_tools_check_auto_joins)) {\n\t\t\t// user is already processed\n\t\t\treturn;\n\t\t}\n\t\t\n\t\telgg_call(ELGG_IGNORE_ACCESS, function () use ($user) {\n\t\t\t// prep helper class\n\t\t\t$auto_join = new AutoJoin($user);\n\t\t\t\n\t\t\t// remove user flag\n\t\t\tunset($user->group_tools_check_auto_joins);\n\t\t\t\n\t\t\t// get groups\n\t\t\t$group_guids = $auto_join->getGroupGUIDs();\n\t\t\tif (empty($group_guids)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$groups = elgg_get_entities([\n\t\t\t\t'type' => 'group',\n\t\t\t\t'guids' => $group_guids,\n\t\t\t\t'limit' => false,\n\t\t\t\t'batch' => true,\n\t\t\t]);\n\t\t\t\n\t\t\t/* @var $group \\ElggGroup */\n\t\t\tforeach ($groups as $group) {\n\t\t\t\t$group->join($user);\n\t\t\t}\n\t\t});\n\t}", "public function setGroupId(&$data)\n {\n $data['User']['group_id'] = 2;\n\n }", "protected function set_authUseGroups($authUseGroups) {\n \n $this->authUseGroups = (string)$authUseGroups;\n \n }", "public function joins($joins = []) {\n\t\t$this->_queryOptions['joins'] = array_merge($this->_queryOptions['joins'], $joins);\n\t}", "public function setGroups(array $groups)\n {\n $this->groups = [];\n\n foreach ($groups as $groupIdent => $group) {\n $this->addGroup($groupIdent, $group);\n }\n\n uasort($this->groups, [ $this, 'sortGroupsByPriority' ]);\n\n return $this;\n }", "public function setGroup($group) {\n chgrp($this->__full_path, $group);\n }" ]
[ "0.6388549", "0.58247894", "0.578872", "0.5706338", "0.5698666", "0.5698666", "0.5668783", "0.5615436", "0.55892676", "0.55229723", "0.5478557", "0.54272276", "0.53638893", "0.53306735", "0.5314292", "0.529232", "0.52871126", "0.5261887", "0.5226505", "0.5189314", "0.51853126", "0.50599325", "0.5039587", "0.5037876", "0.5027094", "0.501585", "0.5009783", "0.5008787", "0.5001853", "0.49870303" ]
0.6732391
0
Sets the joinedTeams property value. The Microsoft Teams teams that the user is a member of. Readonly. Nullable.
public function setJoinedTeams(?array $value): void { $this->getBackingStore()->set('joinedTeams', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setTeams($teamsArr) {\r\n $this->teams = is_array($teamsArr) ? $teamsArr : NULL;\r\n }", "public function getJoinedTeams(): ?array {\n $val = $this->getBackingStore()->get('joinedTeams');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Team::class);\n /** @var array<Team>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'joinedTeams'\");\n }", "public function setJoined($joined){\n \t$this->joined = trim($joined);\n }", "public static function usesTeams()\n {\n return in_array(CanJoinTeams::class, class_uses_recursive(static::userModel()));\n }", "public function setTeamMembers($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->team_members = $arr;\n\n return $this;\n }", "public function setTeams(array $teams) : self\n {\n $this->initialized['teams'] = true;\n $this->teams = $teams;\n return $this;\n }", "public function setTeams(array $teams) : self\n {\n $this->initialized['teams'] = true;\n $this->teams = $teams;\n return $this;\n }", "public function setPublicTeamsAndUsers($teams_and_users)\n {\n $this->enforceAdmin();\n\n $return = false;\n\n if (!empty($teams_and_users)) {\n $teams = array();\n if (!empty($teams_and_users['users_private_teams'])) {\n foreach ($teams_and_users['users_private_teams'] as $user_id) {\n $private_team_id = $this->getUserPrivateTeam($user_id);\n if (!empty($private_team_id)) {\n $teams[$private_team_id] = $private_team_id;\n // to make sure we return this, if there are only private teams\n $return = $private_team_id;\n } else {\n // could not find, stop import\n return false;\n }\n }\n }\n\n // up to now we know the teams exist\n\n if (!empty($teams_and_users['teams'])) {\n if ($this->checkTeamsExistence($teams_and_users['teams'])) {\n return $this->createTeamSet(array_merge($teams, $teams_and_users['teams']));\n } else {\n // missing team\n return false;\n }\n }\n }\n\n return $return;\n }", "public function set_team_owner($team_id = false, $user_id = false, $league_id = false)\n\t{\n\t\tif ($team_id === false)\n\t\t{\n\t\t\t$this->error = \"No team ID was specified.\";\n\t\t\treturn false;\n\t\t}\n\t\tif ($user_id === false)\n\t\t{\n\t\t\t$this->error = \"No team owner ID was specified.\";\n\t\t\treturn false;\n\t\t}\n\t\tif ($league_id === false)\n\t\t{\n\t\t\t$league_id = $this->league_id;\n\t\t}\n $prev = $this->db->where('team_id',$team_id)->where('league_id',$league_id)->count_all_results($this->table);\n if ($prev == 0)\n {\n\t\t\t$this->db->insert($this->table, array('league_id'=>$league_id, 'team_id'=>$team_id, 'user_id'=>$user_id));\n\t\t}\n else\n {\n $this->db->where('league_id',$league_id)->where('team_id',$team_id);\n\t\t\t$this->db->update($this->table,array('user_id'=>$user_id));\n }\n\t\treturn true;\n\t}", "function teams_user_can_join(&$config, $team) {\n global $USER, $COURSE, $DB;\n\n $coursecontext = context_course::instance($COURSE->id);\n\n if (!$team->openteam || !has_capability('block/teams:apply', $coursecontext) || empty($config->allowrequests)) {\n return false;\n }\n\n // If already has a request here go out.\n if ($DB->get_record('block_teams_requests', array('userid' => $USER->id, 'groupid' => $team->groupid))) {\n return false;\n }\n\n if ($config->allowmultipleteams) {\n return true;\n }\n\n // Fetch any course membership in groups associated to teams.\n $sql = \"\n SELECT\n COUNT(*)\n FROM\n {groups_members} gm,\n {groups} g,\n {block_teams} t\n WHERE\n g.id = gm.groupid AND\n gm.userid = ? AND\n t.groupid = g.groupid AND\n t.courseid = ?\n \";\n\n if (!$DB->count_records_sql($sql, array($USER->id, $COURSE->id))) {\n return true;\n }\n\n return false;\n}", "public function setJoinedGroups(?array $value): void {\n $this->getBackingStore()->set('joinedGroups', $value);\n }", "public function setTeamMemberIds(?array $teamMemberIds): void\n {\n $this->teamMemberIds['value'] = $teamMemberIds;\n }", "public function teams_count($teams=null){\n\t\tif($teams==null) $teams=$this->teams;\n\t\treturn count($teams);\n\t}", "public function setUsersIn() {\r\n $users = $this->getProperty('users');\r\n $memberships = array();\r\n if (!empty($users)) {\r\n $users = is_array($users) ? $users : $this->modx->fromJSON($users);\r\n $memberships = array();\r\n foreach ($users as $userArray) {\r\n if (empty($userArray['id']) || empty($userArray['role'])) continue;\r\n \r\n /** @var modUserGroupMember $membership */\r\n $membership = $this->modx->newObject('modUserGroupMember');\r\n $membership->set('user_group',$this->object->get('id'));\r\n $membership->set('member',$userArray['id']);\r\n $membership->set('role',$userArray['role']);\r\n $memberships[] = $membership;\r\n }\r\n $this->object->addMany($memberships);\r\n }\r\n return $memberships;\r\n }", "public function setUsersIn() {\n $users = $this->getProperty('users');\n $memberships = array();\n if (!empty($users)) {\n $users = is_array($users) ? $users : $this->modx->fromJSON($users);\n $memberships = array();\n foreach ($users as $userArray) {\n if (empty($userArray['id']) || empty($userArray['role'])) continue;\n \n /** @var modUserGroupMember $membership */\n $membership = $this->modx->newObject('modUserGroupMember');\n $membership->set('user_group',$this->object->get('id'));\n $membership->set('member',$userArray['id']);\n $membership->set('role',$userArray['role']);\n $memberships[] = $membership;\n }\n $this->object->addMany($memberships);\n }\n return $memberships;\n }", "public function join_team($teamName,$username)\r\n {\r\n $team = $this->getTeamInfoByName($teamName);\r\n $users = array_column($team, 'name');\r\n if(!in_array($username, $users)){\r\n $payload = [\r\n 'team_id' => $team['id'],\r\n 'users' => [$username],\r\n ];\r\n return $this->addUsersToTeam($payload);\r\n }\r\n return true;\r\n }", "public function setLocalUsersOrGroups($val)\n {\n $this->_propDict[\"localUsersOrGroups\"] = $val;\n return $this;\n }", "public function setTeamsAppId($val)\n {\n $this->_propDict[\"teamsAppId\"] = $val;\n return $this;\n }", "public function hasTeams()\n {\n return count($this->teams) > 0;\n }", "protected function ensureCurrentTeamIsSet()\n {\n $teams = $this->vapor->ownedTeams();\n\n Config::set('team', collect($teams)->first(function ($team) {\n return $team['personal_team'] ?? false;\n })['id']);\n }", "function teams() {\n\t\tglobal $db;\n\n\t\t$sql = \"\n\t\tSELECT\n\t\t\tuser.username as username,\n\t\t\tuser.id as user_id,\n\t\t\tstl_players.team_id as team_id,\n\t\t\tstl_positions.*\n\t\tFROM stl_players\n\t\t\tLEFT JOIN user\n\t\t\t\tON\n\t\t\t\tuser.id = stl_players.user_id\n\t\t\tINNER JOIN stl_positions\n\t\t\t\tON\n\t\t\t\tstl_players.user_id = stl_positions.ship_user_id\n\t\tWHERE\n\t\t\tstl_players.game_id = '$_GET[game_id]'\n\t\t\tAND\n\t\t\tstl_positions.game_id = '$_GET[game_id]'\n\n\n\t\t\";\n\t\t$result = $db->query($sql,__FILE__,__LINE__);\n\t\t$add1 = \"<b>\";\n\t\twhile($rs = $db->fetch($result)) {\n\t\t\t$add1 = ($rs['hit_user_id']) ? \"<b style='text-decoration: line-through'>\" : \"<b>\";\n\t\t\tif($rs['team_id'] == 0) {\n\t\t\t\t$this->data['team_gelb'] .= $add1.$rs['username'].\"</b><br>\";\n\t\t\t} else {\n\t\t\t\t$this->data['team_gruen'] .= $add1.$rs['username'].\"</b><br>\";\n\t\t\t}\n\t\t}\n\n\t}", "public function setStaffMemberIds($val)\n {\n $this->_propDict[\"staffMemberIds\"] = $val;\n return $this;\n }", "public function team_members()\n\t{\n\t\treturn $this->hasMany('App\\User', 'team_id', 'team_id');\n\t}", "protected function cmd_joinReviewTeam() {\n\t\t$reviewRecord = $this->db_getReviewRecord($this->piVars['extensionkey'], $this->piVars['version']);\n\t\tif ($reviewRecord === FALSE) return $this->renderSub_errorWrap($this->pi_getLL('error_reviewrecordnotfound','',1));\n\n\t\tif (t3lib_div::inList($reviewRecord['reviewers'], $this->reviewer['username'])) return $this->renderSub_errorWrap($this->pi_getLL('error_cantjoinalreadymember','',1));\n\n\t\t$reviewRecord['reviewers'] .= ','.$this->reviewer['username'];\n\t\t$this->db_updateReviewRecord($this->piVars['extensionkey'], $this->piVars['version'], array('reviewers' => $reviewRecord['reviewers']));\n\t\t$this->db_addReviewNote($this->piVars['extensionkey'], $this->piVars['version'], $this->reviewer['username'].' joins the review team.');\n\n\t\treturn '';\n\t}", "public function setTeamChatMessages($val)\n {\n $this->_propDict[\"teamChatMessages\"] = intval($val);\n return $this;\n }", "public function loadJoinedDate($date=NULL)\n {\n if (!isset($date)) {\n if ($this->user_id == Current_User::getId())\n $this->joined_date = Current_User::getCreatedDate();\n else { // otherwise, load the user's data\n $user = new PHPWS_User($this->user_id);\n $this->joined_date = $user->created;\n }\n } else {\n $this->joined_date = $date;\n }\n }", "public function setMemberOf ($memberOf)\n {\n if (is_array($memberOf))\n $this->memberOf = $memberOf;\n else\n $this->memberOf = array($memberOf);\n }", "public function setMemberOf(array $dnGroups)\n {\n $this->memberof = $dnGroups;\n }", "public function approvedTeams()\n {\n return $this->hasMany('App\\Team')->where('status', 'approved');\n }", "public function getLeagueTeams($leagueId);" ]
[ "0.5938567", "0.53470665", "0.5328891", "0.5310068", "0.52463377", "0.50448996", "0.50448996", "0.502935", "0.48153758", "0.4732987", "0.46898013", "0.46523714", "0.45633698", "0.45598376", "0.45486665", "0.4544179", "0.45330226", "0.44958776", "0.44611505", "0.4447562", "0.43843603", "0.4381715", "0.43579596", "0.43357697", "0.43178573", "0.4293357", "0.42682815", "0.42569795", "0.42256638", "0.42197406" ]
0.66681355
0
Sets the lastPasswordChangeDateTime property value. The time when this Azure AD user last changed their password or when their password was created, , whichever date the latest action was performed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 20140101T00:00:00Z. Readonly. Returned only on $select.
public function setLastPasswordChangeDateTime(?DateTime $value): void { $this->getBackingStore()->set('lastPasswordChangeDateTime', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPasswordLastChanged($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\Timestamp::class);\n $this->password_last_changed = $var;\n\n return $this;\n }", "public function getLastPasswordChangeDate(){\n return $this->lastPasswordChangeDate;\n }", "public function setLastPasswordChangeDate($last_passwordchange_date){\n $this->lastPasswordChangeDate = $last_passwordchange_date;\n return $this;\n }", "public function setRecentPasswordUpdateAt(\\DateTime $recentPasswordUpdateAt = null);", "public function getRecentPasswordUpdateAt(): ?\\DateTime;", "public function getPasswordLastChanged()\n {\n return $this->password_last_changed;\n }", "public function getLastPasswordChangeDateTime(): ?DateTime {\n $val = $this->getBackingStore()->get('lastPasswordChangeDateTime');\n if (is_null($val) || $val instanceof DateTime) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'lastPasswordChangeDateTime'\");\n }", "protected function setLastUpdated()\n {\n $this->setFieldValue(self::FIELD_LAST_UPDATED, time);\n }", "public function setLastLogin(\\DateTime $time = null);", "public function setLastUpdateDateTime($val)\n {\n $this->_propDict[\"lastUpdateDateTime\"] = $val;\n return $this;\n }", "public function setLastLogin(DateTime $date = null);", "public function setLastUpdatedDateTime($val)\n {\n $this->_propDict[\"lastUpdatedDateTime\"] = $val;\n return $this;\n }", "public function setOnPremisesLastPasswordSyncDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('onPremisesLastPasswordSyncDateTime', $value);\n }", "public function setLastUpdateDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastUpdateDateTime', $value);\n }", "public function setLastUpdateDateTime($val)\n {\n $this->_propDict[\"lastUpdateDateTime\"] = $val;\n return $this;\n }", "public function touch($forcePasswordChange = false)\n {\n $sql = 'UPDATE `user` SET lastAccessed = :time ';\n\n if ($forcePasswordChange) {\n $sql .= ' , isPasswordChangeRequired = 1 ';\n }\n\n $sql .= ' WHERE userId = :userId';\n\n // This needs to happen on a separate connection\n $this->getStore()->update($sql, [\n 'userId' => $this->userId,\n 'time' => date(\"Y-m-d H:i:s\")\n ]);\n }", "public function setPassword($_userId, $_password, $_encrypt = TRUE, $_mustChange = null)\n {\n if ($this->_isReadOnlyBackend) {\n return;\n }\n \n $user = $_userId instanceof Tinebase_Model_FullUser ? $_userId : $this->getFullUserById($_userId);\n \n $this->checkPasswordPolicy($_password, $user);\n \n $metaData = $this->_getMetaData($user);\n\n $ldapData = array(\n 'unicodePwd' => $this->_encodePassword($_password),\n );\n \n if ($this->_options['useRfc2307']) {\n $ldapData = array_merge($ldapData, array(\n 'shadowlastchange' => floor(Tinebase_DateTime::now()->getTimestamp() / 86400)\n ));\n }\n \n if (Core::isLogLevel(LogLevel::DEBUG)) \n Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' $dn: ' . $metaData['dn']);\n if (Core::isLogLevel(LogLevel::TRACE)) \n Core::getLogger()->trace(__METHOD__ . '::' . __LINE__ . ' $ldapData: ' . print_r($ldapData, true));\n\n $this->_ldap->updateProperty($metaData['dn'], $ldapData);\n \n // update last modify timestamp in sql backend too\n $values = array(\n 'last_password_change' => Tinebase_DateTime::now()->get(Tinebase_Record_Abstract::ISO8601LONG),\n );\n \n $where = array(\n $this->_db->quoteInto($this->_db->quoteIdentifier('id') . ' = ?', $user->getId())\n );\n \n $this->_db->update(SQL_TABLE_PREFIX . 'accounts', $values, $where);\n \n $this->_setPluginsPassword($user->getId(), $_password, $_encrypt);\n }", "protected function set_pw_changed_time($user_ID) {\n\t\treturn update_user_meta($user_ID, $this->umk_changed, time());\n\t}", "public function updateLastUpdated()\n {\n if(isset($this->columnList['LastUpdated'])) {\n $Date = new \\DateTime(\"now\",new \\DateTimeZone(self::DB_TIMEZONE));\n $this->LastUpdated = $Date->format(self::ISO_DATETIME);\n }\n }", "public function setChangedTime($timestamp) {\n $this->set('changed', $timestamp);\n return $this;\n }", "public function getLastUpdated(): \\DateTime\n {\n return $this->lastUpdated;\n }", "public function updateUserLastAccess()\n {\n $user = Doctrine::getTable('User')->find($this->getUserId());\n if ($user)\n {\n // not using the date formatter because this method can be called before the formatter exists\n $user->setLastAccessAt(date('Y-m-d H:i:s'));\n $user->save();\n }\n }", "public function getLastUpdatedDateTime()\n {\n if (array_key_exists(\"lastUpdatedDateTime\", $this->_propDict)) {\n if (is_a($this->_propDict[\"lastUpdatedDateTime\"], \"\\DateTime\") || is_null($this->_propDict[\"lastUpdatedDateTime\"])) {\n return $this->_propDict[\"lastUpdatedDateTime\"];\n } else {\n $this->_propDict[\"lastUpdatedDateTime\"] = new \\DateTime($this->_propDict[\"lastUpdatedDateTime\"]);\n return $this->_propDict[\"lastUpdatedDateTime\"];\n }\n }\n return null;\n }", "public function setLastUpdate(\\DateTime $last_update)\n {\n $this->last_update = $last_update;\n\n return $this;\n }", "public function setLastUpdate(\\DateTime $last_update)\n {\n $this->last_update = $last_update;\n\n return $this;\n }", "public function getLastUpdateDateTime()\n {\n if (array_key_exists(\"lastUpdateDateTime\", $this->_propDict)) {\n if (is_a($this->_propDict[\"lastUpdateDateTime\"], \"\\DateTime\") || is_null($this->_propDict[\"lastUpdateDateTime\"])) {\n return $this->_propDict[\"lastUpdateDateTime\"];\n } else {\n $this->_propDict[\"lastUpdateDateTime\"] = new \\DateTime($this->_propDict[\"lastUpdateDateTime\"]);\n return $this->_propDict[\"lastUpdateDateTime\"];\n }\n }\n return null;\n }", "public function getLastUpdateDateTime()\n {\n if (array_key_exists(\"lastUpdateDateTime\", $this->_propDict)) {\n return $this->_propDict[\"lastUpdateDateTime\"];\n } else {\n return null;\n }\n }", "public function setLastUpdated(\\DateTime $lastUpdated)\n {\n $this->lastUpdated = $lastUpdated;\n return $this;\n }", "public function lastUpdateTime() : DateTime\n {\n return $this->updateDate;\n }", "public function setLastLoginTime($username) {\n\t\t$sql = \"UPDATE mitarbeiter\n\t\t\t\t\tSET letzter_login = NOW()\n\t\t\t\t\tWHERE username = ?\";\n\t\tif(!$preStmt = $this->dbConnect->prepare($sql)){\n\t\t\techo \"Fehler bei SQL-Vorbereitung (\" . $this->dbConnect->errno . \")\" . $this->dbConnect->error .\"<br>\";\n\t\t} else {\n\t\t\tif(!$preStmt->bind_param(\"s\", $username)){\n\t\t\t\techo \"Fehler beim Binding (\" . $this->dbConnect->errno . \")\" . $this->dbConnect->error .\"<br>\";\n\t\t\t} else {\n\t\t\t\tif(!$preStmt->execute()){\n\t\t\t\t\techo \"Fehler beim Ausführen (\" . $this->dbConnect->errno . \")\" . $this->dbConnect->error .\"<br>\";\n }\n\t\t\t}\n\t\t\t$preStmt->close();\n\t\t}\n\t}" ]
[ "0.71888494", "0.6684762", "0.646641", "0.6199131", "0.6158514", "0.60179293", "0.5834458", "0.5721868", "0.5659692", "0.56543887", "0.5622437", "0.55897903", "0.5583152", "0.55583876", "0.5549277", "0.5502739", "0.5464387", "0.54515374", "0.54342794", "0.5422385", "0.5365766", "0.5336938", "0.5328159", "0.53122884", "0.53122884", "0.528967", "0.52879876", "0.52879643", "0.527701", "0.5250134" ]
0.7142151
1
Sets the legalAgeGroupClassification property value. Used by enterprise applications to determine the legal age group of the user. This property is readonly and calculated based on ageGroup and consentProvidedForMinor properties. Allowed values: null, MinorWithOutParentalConsent, MinorWithParentalConsent, MinorNoParentalConsentRequired, NotAdult and Adult. Refer to the legal age group property definitions for further information. Returned only on $select.
public function setLegalAgeGroupClassification(?string $value): void { $this->getBackingStore()->set('legalAgeGroupClassification', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLegalAgeGroupClassification(): ?string {\n $val = $this->getBackingStore()->get('legalAgeGroupClassification');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'legalAgeGroupClassification'\");\n }", "public function setGroupID($newGroupID){\n //allow null if this is a new object\n if($newGroupID === null){\n $this->groupID = null;\n return;\n }\n \n //first, trim excess whitespace\n $newGroupID = trim($newGroupID);\n \n //check if ID is an Integer\n if((filter_var($newGroupID, FILTER_VALIDATE_INT)) === false){\n throw(new UnexpectedValueException(\"$newGroupID is not an integer!\"));\n }\n \n //convert ID to integer an check if integer is positive\n $newGroupID = intval($newGroupID);\n if($newGroupID <= 0) {\n throw(new RangeException(\"$newGroupID is not positive\"));\n }\n \n //set value of ID\n $this->groupID = $newGroupID;\n }", "public function setAge($ageNow)\n {\n $this->ageGroup = $ageNow;\n }", "public function setEffectiveGroup( Group $group ) {\n posix_setegid( $group->ID );\n }", "public function setGroupSkill($newGroupSkill){\n //allows null\n if($newGroupSkill === null){\n $this->groupSkill = null;\n return;\n }\n \n //validates input is an integer\n if(filter_var($newGroupSkill, FILTER_VALIDATE_INT) === false){\n throw(new UnexpectedValueException(\"Skill level is invalid\"));\n }\n \n //checks if input is within range\n if($newGroupSkill > 5 || $newGroupSkill < 1){\n throw(new RangeException(\"The maximum skill level is 5. The Minumum is 1 $newGroupSkill is out of range\"));\n }\n \n //set value\n $this->groupSkill = $newGroupSkill;\n }", "public function setPrivacyLevel($newPrivacyLevel){\n //sets default privacy level of new group\n if($newPrivacyLevel === null){\n $this->privacyLevel = 3;\n return;\n }\n \n //validates value is Integer\n if(filter_var($newPrivacyLevel, FILTER_VALIDATE_INT) === false){\n throw(new UnexpectedValueException(\"The privacy level was invalid\"));\n }\n \n //checks if value is within range\n if($newPrivacyLevel > 3 || $newPrivacyLevel < 1){\n echo($newPrivacyLevel);\n throw(new UnexpectedValueException(\"The privacy level set is out of range\"));\n }\n \n //sets value\n $this->privacyLevel = $newPrivacyLevel;\n }", "public function setAgeGroup(?string $value): void {\n $this->getBackingStore()->set('ageGroup', $value);\n }", "public function setGestationalAge(?FHIRRange $gestationalAge = null): object\n\t{\n\t\t$this->_trackValueSet($this->gestationalAge, $gestationalAge);\n\t\t$this->gestationalAge = $gestationalAge;\n\t\treturn $this;\n\t}", "function setGroupPrivilege()\n {\n $groupPriv = RowManager_AccountAdminAccessManager::PRIVILEDGE_GROUP;\n $this->setValueByFieldName( 'accountadminaccess_privilege', $groupPriv);\n }", "public function setGroupLimit($value) {}", "public function supports_group_restriction() {\n return true;\n }", "public function supports_group_restriction() {\n return true;\n }", "function woorcp_set_level_group_seats_allowed( $level_id, $seats_allowed ) {\n\n\tglobal $rcp_levels_db;\n\n\t$woorcp_default_member_number = get_option(\"woorcp_default_member_number\", 9);\n\n\t$rcp_levels_db->update_meta( $level_id, 'group_seats_allowed', absint( $woorcp_default_member_number ) );\n}", "public function setAgeRange($age_range)\n {\n $this->age_range = $age_range;\n return $this;\n }", "public function setCloudProvisioningScore($val)\n {\n $this->_propDict[\"cloudProvisioningScore\"] = floatval($val);\n return $this;\n }", "public function setGroupName($newGroupName){\n //allow null\n if($newGroupName === null){\n $this->groupName = null;\n return;\n }\n \n //sanitizes input for special characters\n $newGroupName = filter_var($newGroupName, FILTER_SANITIZE_STRING);\n \n //checks if value is string\n if(gettype($newGroupName) !== \"string\"){\n throw(new UnexpectedValueException(\"Group Name is Invalid\"));\n }\n \n //checks length of string\n if(count($newGroupName) > 31){\n throw(new RangeException(\"Group name must be under 30 characters\"));\n }\n \n //sets value of group name\n $this->groupName = $newGroupName;\n }", "public function getAge()\n {\n return $this->ageGroup;\n }", "protected function setGroup($group)\n {\n $this->group = (array) $group;\n }", "public function getMedicalAllergyGroup()\n {\n return $this->hasOne(MedicalAllergyGroup::className(), ['allergyCategoryId' => 'id']);\n }", "public function setAgility($agility){\n if (isset($this->agility, $this->firstCarac)) {\n if ($this->agility === $this->firstCarac) {\n $this->agility = $agility;\n $this->def = $agility / 6;\n $this->firstCarac = $this->agility;\n } else {\n $this->agility = $agility;\n $this->def = $agility / 6;\n }\n } else {\n $this->agility = $agility;\n $this->def = $agility / 6;\n }\n\n return $this;\n }", "public function setAgility($agility) {\n $this->agility = $agility;\n }", "public function suggestedAge($suggestedAge)\n {\n return $this->setProperty('suggestedAge', $suggestedAge);\n }", "function setAgeCutoffMonth($ageCutoffMonth)\n {\n $this->__ageCutoffMonth = $ageCutoffMonth ;\n }", "private function groupUserAges() {\n $users = User::find()\n ->where([ 'group_id' => $this->id])\n ->asArray()\n ->all();\n $age_info = User::age($users);\n $this->youngest_user = $age_info['youngest_user'];\n $this->oldest_user = $age_info['oldest_user'];\n $this->avg_age = $age_info['avg_age'];\n }", "public function setGroupMulticategory(\n $group\n ) {\n $this->group_multicategory = $group;\n }", "public function setGroupState($newGroupState){\n //allow null\n if($newGroupState === null){\n $this->groupState = null;\n return;\n }\n \n //check if group state\n $newGroupState = filter_var($newGroupState, FILTER_SANITIZE_STRING);\n \n //clear out white space\n $newGroupState = trim($newGroupState);\n \n //set value of state\n $this->groupState = $newGroupState;\n }", "public function setGroup( Group $group ) {\n posix_setgid( $group->id );\n }", "function setAge($age){\r\n if(is_numeric($age) && $age>0){\r\n $this->age = $age;\r\n } else {\r\n $this->age=0;\r\n }\r\n }", "public function filterByCategorieAgeMax($categorieAgeMax = null, $comparison = null)\n\t{\n\t\tif (is_array($categorieAgeMax)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($categorieAgeMax['min'])) {\n\t\t\t\t$this->addUsingAlias(RefCategorieAgePeer::CATEGORIE_AGE_MAX, $categorieAgeMax['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($categorieAgeMax['max'])) {\n\t\t\t\t$this->addUsingAlias(RefCategorieAgePeer::CATEGORIE_AGE_MAX, $categorieAgeMax['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(RefCategorieAgePeer::CATEGORIE_AGE_MAX, $categorieAgeMax, $comparison);\n\t}", "function setAgeCutoffDay($ageCutoffDay)\n {\n $this->__ageCutoffDay = $ageCutoffDay ;\n }" ]
[ "0.51674384", "0.4913982", "0.49113086", "0.4836069", "0.48247588", "0.46846306", "0.45479673", "0.4434954", "0.4358863", "0.43474802", "0.43259364", "0.43259364", "0.4285696", "0.42741507", "0.4261936", "0.42460415", "0.4235763", "0.42301032", "0.42061794", "0.41992113", "0.41632423", "0.4154197", "0.40933654", "0.40915316", "0.40726024", "0.40626484", "0.4059709", "0.40573874", "0.40573198", "0.4004344" ]
0.6911047
0
Sets the licenseAssignmentStates property value. State of license assignments for this user. Also indicates licenses that are directlyassigned and those that the user has inherited through group memberships. Readonly. Returned only on $select.
public function setLicenseAssignmentStates(?array $value): void { $this->getBackingStore()->set('licenseAssignmentStates', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setStatesMapping(array $statesMapping)\n {\n $this->statesMapping = $statesMapping;\n }", "public function setAssignedLicenses(?array $value): void {\n $this->getBackingStore()->set('assignedLicenses', $value);\n }", "public function setStates($states) {\r\n\t\t$this->states = $states;\r\n\t}", "public function setAllowedLicenses($allowedLicenses)\n {\n $this->allowedLicenses = $allowedLicenses;\n return $this;\n }", "public function setLicenses($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->licenses = $arr;\n\n return $this;\n }", "public function setLicenseCodes($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::INT64);\n $this->license_codes = $arr;\n\n return $this;\n }", "public function setAssignmentState($val)\n {\n $this->_propDict[\"assignmentState\"] = $val;\n return $this;\n }", "protected function activate_licenses() {\n\n\t\t// listen for our activate button to be clicked\n\t\tif( isset( $_POST['pmxi_license_activate'] ) ) {\t\t\t\n\n\t\t\t// retrieve the license from the database\n\t\t\t$options = PMXI_Plugin::getInstance()->getOption();\n\t\t\t\n\t\t\tforeach ($_POST['pmxi_license_activate'] as $class => $val) {\t\t\t\t\t\t\t\n\n\t\t\t\tif (!empty($options['licenses'][$class])){\n\n\t\t\t\t\t$product_name = (method_exists($class, 'getEddName')) ? call_user_func(array($class, 'getEddName')) : false;\n\n\t\t\t\t\tif ( $product_name !== false ){\n\t\t\t\t\t\t// data to send in our API request\n\t\t\t\t\t\t$api_params = array( \n\t\t\t\t\t\t\t'edd_action'=> 'activate_license', \n\t\t\t\t\t\t\t'license' \t=> $options['licenses'][$class], \n\t\t\t\t\t\t\t'item_name' => urlencode( $product_name ) // the name of our product in EDD\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Call the custom API.\n\t\t\t\t\t\t$response = wp_remote_get( add_query_arg( $api_params, $options['info_api_url'] ), array( 'timeout' => 15, 'sslverify' => false ) );\n\n\t\t\t\t\t\t// make sure the response came back okay\n\t\t\t\t\t\tif ( is_wp_error( $response ) )\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t// decode the license data\n\t\t\t\t\t\t$license_data = json_decode( wp_remote_retrieve_body( $response ) );\n\t\t\t\t\t\t\n\t\t\t\t\t\t// $license_data->license will be either \"active\" or \"inactive\"\n\n\t\t\t\t\t\t$options['statuses'][$class] = $license_data->license;\n\t\t\t\t\t\t\n\t\t\t\t\t\tPMXI_Plugin::getInstance()->updateOption($options);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\t\t\t\t\n\n\t\t}\n\t}", "public function assignFreeLicenses()\n {\n //Se selecciona cualquier licencia activa del producto\n $licenses = License::select('*')\n ->where('licenses.state', 'Active')\n ->where('licenses.duration', -1)\n ->get();\n\n foreach ($licenses as $license) {\n //De acuerdo al producto se restablece el max_amount en la configiración del producto\n if($license->product->name == 'TrSoft/Copy Binary'){\n $product_setting = $this->getProductSetting($license->product_id);\n\n if(!$product_setting){\n $product_setting = new ProductSetting();\n $product_setting->amount = 1;//$license->max_amount;\n $product_setting->user_id = $this->id;\n $product_setting->product_id = $license->product_id;\n }\n\n $product_setting->max_amount = $license->max_amount;\n $product_setting->save();\n }\n\n $this->save();\n\n //Ultimos datos de comisión registrados\n $commission = $license->lastCommission();\n //Ultimos datos de precios registrados\n $price = $license->lastPrice();\n\n if($commission && $price && $price->price == 0){\n $user_license = new UserLicense();\n $user_license->user_id = $this->id;\n $user_license->commission_id = $commission->id;\n $user_license->license_price_id = $price->id;\n $user_license->state = 'Active';\n $user_license->activation_date = date('Y-m-d H:i:s');\n $user_license->save();\n }\n }\n }", "public function setAccessLevels($accessLevels)\n {\n $this->options['access-levels'] = (string) $accessLevels;\n }", "function setAccessLevel($accessLevel)\r\n {\r\n $this->_accessLevel = $accessLevel;\r\n }", "public function setLicense(string $license)\n {\n $this->license = $license;\n }", "public function __construct(array $organization_Assignment_Restrictions = array())\n {\n $this\n ->setOrganization_Assignment_Restrictions($organization_Assignment_Restrictions);\n }", "public function setRoleAssignments($val)\n {\n $this->_propDict[\"roleAssignments\"] = $val;\n return $this;\n }", "public function licenseCurrentStages()\n {\n return $this->hasMany('CityBoard\\Entities\\LicenseCurrentStage');\n }", "public function setLinkedEligibleRoleAssignment($val)\n {\n $this->_propDict[\"linkedEligibleRoleAssignment\"] = $val;\n return $this;\n }", "public function setUsedLicenses($usedLicenses)\n {\n $this->usedLicenses = $usedLicenses;\n return $this;\n }", "public function getLicenseAssignmentStates(): ?array {\n $val = $this->getBackingStore()->get('licenseAssignmentStates');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, LicenseAssignmentState::class);\n /** @var array<LicenseAssignmentState>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'licenseAssignmentStates'\");\n }", "public function licenseStatus()\n {\n return $this->belongsTo('CityBoard\\Entities\\LicenseStatus');\n }", "protected function selectLicenseFromList($licenses)\n {\n }", "function allowedAssignStateIDList(eZUser $user = null)\n {\n if (!$user instanceof eZUser) {\n $user = eZUser::currentUser();\n }\n\n $access = $user->hasAccessTo('state', 'assign');\n\n $db = eZDB::instance();\n $sql = 'SELECT ezcobj_state.id\n FROM ezcobj_state, ezcobj_state_group\n WHERE ezcobj_state.group_id = ezcobj_state_group.id\n AND ezcobj_state_group.identifier NOT LIKE \\'ez%\\'';\n if ($access['accessWord'] == 'yes') {\n $allowedStateIDList = $db->arrayQuery($sql, array('column' => 'id'));\n } else {\n if ($access['accessWord'] == 'limited') {\n $userID = $user->attribute('contentobject_id');\n $classID = $this->attribute('contentclass_id');\n $ownerID = $this->attribute('owner_id');\n $sectionID = $this->attribute('section_id');\n $stateIDArray = $this->attribute('state_id_array');\n\n $allowedStateIDList = array();\n foreach ($access['policies'] as $policy) {\n foreach ($policy as $ident => $values) {\n $allowed = true;\n\n switch ($ident) {\n case 'Class': {\n $allowed = in_array($classID, $values);\n }\n break;\n\n case 'Owner': {\n $allowed = in_array(1, $values) and $userID != $ownerID;\n }\n break;\n\n case 'Group': {\n $allowed = $this->checkGroupLimitationAccess($values, $userID) === 'allowed';\n }\n break;\n\n case 'Section':\n case 'User_Section': {\n $allowed = in_array($sectionID, $values);\n }\n break;\n\n default: {\n if (strncmp($ident, 'StateGroup_', 11) === 0) {\n $allowed = count(array_intersect($values, $stateIDArray)) > 0;\n }\n }\n }\n\n if (!$allowed) {\n continue 2;\n }\n }\n\n if (isset($policy['NewState']) and count($policy['NewState']) > 0) {\n $allowedStateIDList = array_merge($allowedStateIDList, $policy['NewState']);\n } else {\n $allowedStateIDList = $db->arrayQuery($sql, array('column' => 'id'));\n break;\n }\n }\n\n $allowedStateIDList = array_merge($allowedStateIDList, $stateIDArray);\n } else {\n $stateIDArray = $this->attribute('state_id_array');\n $allowedStateIDList = $stateIDArray;\n }\n }\n\n $allowedStateIDList = array_unique($allowedStateIDList);\n\n return $allowedStateIDList;\n }", "function licenseActivate() {\n if( isset( $_POST['edd_license_activate'] ) ) {\n\t\t\t\n // run a quick security check \n if( ! check_admin_referer( 'edd_sample_nonce', 'edd_sample_nonce' ) ) \n return; // get out if we didn't click the Activate button\n\n // retrieve the license from the database\n $license = trim( $_POST['sg90_license_key'] );\n\n // data to send in our API request\n $api_params = array( \n 'edd_action'=> 'activate_license', \n 'license' => $license, \n 'item_name' => urlencode( EDD_SAMPLE_ITEM_NAME )\n );\n \n // Call the custom API.\n $response = wp_remote_get( add_query_arg( $api_params, EDD_SAMPLE_STORE_URL ), array( 'timeout' => 15, 'sslverify' => false ) );\n\n // make sure the response came back okay\n if ( is_wp_error( $response ) )\n return false;\n\n // decode the license data\n $license_data = json_decode( wp_remote_retrieve_body( $response ) );\n \n // $license_data->license will be either \"active\" or \"inactive\"\n\n update_option( 'sg90_license_status', $license_data->license );\n update_option( 'sg90_license', $_POST['sg90_license_key'] );\n\n }\n }", "public function setSelectedRepositoryIds(array $selectedRepositoryIds) : self\n {\n $this->initialized['selectedRepositoryIds'] = true;\n $this->selectedRepositoryIds = $selectedRepositoryIds;\n return $this;\n }", "public function setGradeInquiries(array $grade_inquiries) {\n $this->grade_inquiries = $grade_inquiries;\n }", "function set_locked($lockedstate) {\n $this->load_grade_item();\n\n if (!empty($this->grade_item)) {\n return $this->grade_item->set_locked($lockedstate);\n\n } else {\n return false;\n }\n }", "public function setAvailableDates($availableDates)\n {\n $this->availableDates = $availableDates;\n\n return $this;\n }", "public function testAssignmentFunctions()\n {\n $this->assignmentsAreEmptyAtFirst();\n\n $this->userCannotCreateAssignment();\n $this->courseAdminCanCreateAssignment();\n $this->adminCanCreateAssignment();\n\n $this->userCanViewAssignmentsOfEnrolledCourses();\n $this->userCanViewSpecificAssignment();\n\n $this->userCannotUpdateAssignment();\n $this->courseAdminCanUpdateAssignment();\n\n $this->userCannotDeleteAssignment();\n $this->courseAdminCanDeleteAssignment();\n\n $this->userCannotFinishAssignmentIfNotEnrolledInCourse();\n $this->userCanFinishAssignmentIfEnrolledInCourse();\n $this->finishedAssignmentsAreHiddenIfRequired();\n $this->userCannotResetAssignmentIfNotEnrolledInCourse();\n $this->userCanResetAssignmentIfEnrolledInCourse();\n }", "public function setState( array $state )\n {\n foreach ( $state as $attribute => $value )\n {\n $this->$attribute = $value;\n }\n }", "public function __construct(LicenseVerification $licenseVerification, LicenseStateService $licenseStateService)\n {\n $this->licenseVerification = $licenseVerification;\n $this->licenseStateService = $licenseStateService;\n }", "public function setRoleAssignments(?array $value): void {\n $this->getBackingStore()->set('roleAssignments', $value);\n }" ]
[ "0.54551834", "0.53998965", "0.5351228", "0.52810055", "0.5139899", "0.48781744", "0.48556373", "0.4716765", "0.47095695", "0.46598318", "0.46090335", "0.46031374", "0.45659348", "0.4560786", "0.44129923", "0.44057605", "0.4397293", "0.4371538", "0.43402353", "0.43288574", "0.4327293", "0.42640236", "0.42565164", "0.42552832", "0.42423084", "0.42388618", "0.42188454", "0.42123833", "0.42098242", "0.41902217" ]
0.6278193
0
Sets the licenseDetails property value. The licenseDetails property
public function setLicenseDetails(?array $value): void { $this->getBackingStore()->set('licenseDetails', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLicense(string $license)\n {\n $this->license = $license;\n }", "public function setDetails() : void\n {\n $this->transaction->setDetails(substr($this->transaction->getDetails(), 0, 20));\n }", "private function set_license_information() {\n\t\t\t$this->license\t\t = trim( get_option( $this->optionLicenseKey, '' ) );\n\t\t\t$this->licenseStatus = trim( get_option( $this->optionLicenseStatus, '' ) );\n\t\t\t$this->licenseData\t = get_option( $this->optionLicenseData );\n\n\t\t\t$this->baseParams = array(\n\t\t\t\t'item_name'\t => urlencode( $this->itemName ),\n\t\t\t\t'url'\t\t => $this->url,\n\t\t\t\t'license'\t => $this->license,\n\t\t\t\t'slug'\t\t => $this->slug,\n\t\t\t);\n\t\t}", "public function removeLicenseDetails();", "public function setDetails($details) {\n $this->details = $details;\n }", "public function setDetails($details) {\n $this->details = $details;\n }", "public function setDetails($details)\n {\n $this->details = $details;\n }", "public function setPaymentDetails (mPaymentDetails $PaymentDetails);", "public function setAdditionalDetails($val)\n {\n $this->_propDict[\"additionalDetails\"] = $val;\n return $this;\n }", "public function setDetails($details)\n {\n $this->details = (object)$details;\n }", "public function setDetails ($newDetails)\n {\t// prevent scripting attacks\n $newDetails = htmlspecialchars($newDetails);\n \n $this->details = $newDetails;\n }", "public function setLicenseCapability($val)\n {\n $this->_propDict[\"licenseCapability\"] = $val;\n return $this;\n }", "public function removeLicenseDetails()\n {\n $this->filesystem()->delete($this->licensePath());\n }", "function setCopyrightOwnerContactDetails($contactDetails) {\n\t\t$this->setData('copyrightOwnerContact', $contactDetails);\n\t}", "public function setDetails($var)\n {\n GPBUtil::checkString($var, True);\n $this->details = $var;\n\n return $this;\n }", "public function __construct($license)\n {\n $this->license = $license;\n }", "private function init_license_var() {\n\t\t$license = get_option( 'kalium_license' );\n\n\t\tif ( is_object( $license ) && ! empty( $license->license_key ) && isset( $license->purchase_date ) && isset( $license->save_backups ) ) {\n\t\t\t$license->support_available = ! empty( $license->supported_until );\n\n\t\t\t// Support availability\n\t\t\tif ( $license->support_available ) {\n\t\t\t\t$supported_until_time = strtotime( $license->supported_until );\n\t\t\t\t$support_expired = $supported_until_time < time();\n\n\t\t\t\t$license->support_expired = $support_expired;\n\t\t\t}\n\n\t\t\tself::$license = $license;\n\t\t}\n\t}", "public function setBillingDetails (mBillingDetails $BillingDetails);", "public function setDetails($details) : self\n {\n $this->initialized['details'] = true;\n $this->details = $details;\n return $this;\n }", "public function setLicense($license)\n {\n $this->license = $license;\n\n return $this;\n }", "public function register_license_option() {\n\t\t\tregister_setting( $this->optionGroup, $this->optionLicenseKey, array( $this, 'sanitize_license' ) );\n\t\t}", "function addlicense( $holder_id ){\n App::import(\"Model\", \"ContactLicense\");\n $this->ContactLicense = & new ContactLicense();\n\n if(!empty($this->data)) {\n $this->ContactLicense->Save($this->data['ContactLicense']);\n $this->Session->setFlash('Contact License added successfully.','default', array('class' => 'successmsg'));\n $this->redirect('/contact_license/license_list/' . $this->data['ContactLicense']['holder_id']);\n }\n\n $license_status = array('NA' => 'NA', 'Pending' => 'Pending', 'Registered' => 'Registered', 'Licensed' => 'Licensed');\n $license_types = array('National Exempt' => 'National Exempt', 'Multi-State-Exempt' => 'Multi-State-Exempt', 'Multi-State-Tested' => 'Multi-State-Tested', 'State-Tested' => 'State-Tested');\n $testing_types = array('Multi-State-Test' => 'Multi-State-Test', 'State-Specific-Test' => 'State-Specific-Test');\n $paid_by = array('User A' => 'User A', 'User B' => 'User B');\n $this->statedroupdown();\n\n $this->set('license_status', $license_status);\n $this->set('license_types', $license_types);\n $this->set('holder_id', $holder_id);\n $this->set('testing_types', $testing_types);\n $this->set('paid_by', $paid_by);\n }", "public function setLicense_plate($license_plate)\n {\n if(strlen($license_plate) <= 12) {\n $this->license_plate = $license_plate;\n }\n }", "public function setAdditionalDetails(?string $value): void {\n $this->getBackingStore()->set('additionalDetails', $value);\n }", "public function setLicensePath($value)\n {\n $this->ionOptions['with-license'] = $value;\n }", "public function setDetails($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\Struct::class);\n $this->details = $var;\n\n return $this;\n }", "private static function setPaymentDetails($payment_details) {\n $request = \\Drupal::request();\n $session = $request->getSession();\n $session->set('payment_details', $payment_details);\n }", "function updateLicense()\n {\n if (!$this->di->config->get('license'))\n return; // empty license. trial?\n if ($this->di->store->get('app-update-license-checked'))\n return;\n try {\n $req = new Am_HttpRequest('https://update.amember.com/license.php');\n $req->setConfig('connect_timeout', 2);\n $req->setMethod(Am_HttpRequest::METHOD_POST);\n $req->addPostParameter('license', $this->di->config->get('license'));\n $req->addPostParameter('root_url', $this->di->config->get('root_url'));\n $req->addPostParameter('root_surl', $this->di->config->get('root_surl'));\n $req->addPostParameter('version', AM_VERSION);\n $this->di->store->set('app-update-license-checked', 1, '+12 hours');\n $response = $req->send();\n if ($response->getStatus() == '200') {\n $newLicense = $response->getBody();\n if ($newLicense)\n if (preg_match('/^L[A-Za-z0-9\\/=+\\n]+X$/', $newLicense))\n Am_Config::saveValue('license', $newLicense);\n else\n throw new Exception(\"Wrong License Key Received: [\" . $newLicense . \"]\");\n }\n } catch (Exception $e) {\n if (AM_APPLICATION_ENV != 'production')\n throw $e;\n }\n }", "public function setLicenseId(string $licenseId): self\n {\n $this->setParam(self::LICENSE_ID, $licenseId);\n return $this;\n }", "public function setDetails($var)\n {\n GPBUtil::checkMessage($var, Any::class);\n $this->details = $var;\n\n return $this;\n }" ]
[ "0.62350976", "0.61753285", "0.6151166", "0.60577965", "0.60171473", "0.60171473", "0.6000098", "0.58977705", "0.57166505", "0.5689016", "0.56797516", "0.5666361", "0.550067", "0.5498973", "0.54883987", "0.547714", "0.5476453", "0.5458994", "0.5439263", "0.53694814", "0.53236175", "0.53034675", "0.5268402", "0.52322316", "0.5230071", "0.5187499", "0.51358825", "0.51337063", "0.5105244", "0.50965875" ]
0.7053181
0
Sets the mailboxSettings property value. Settings for the primary mailbox of the signedin user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Returned only on $select.
public function setMailboxSettings(?MailboxSettings $value): void { $this->getBackingStore()->set('mailboxSettings', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMessagingSettings(?TeamMessagingSettings $value): void {\n $this->getBackingStore()->set('messagingSettings', $value);\n }", "public function setSettings() {\n //get a new instance of the call\n $getSettingsCall = new GetSettingsCall();\n\n //generate the body\n $body = ['takeawayID' => $this->takeaway->getId(),\n 'domain' => $this->request->host(),\n 'subDomain' => '',\n ];\n\n //make the request\n $response = $getSettingsCall->makeRequest(\n '/api/Takeaway/GetSettings', $getSettingsCall->createRequestMessage($body)\n );\n\n //handle the response\n $getSettingsCall->handleResult($response);\n }", "public function setSettings(?UserSettings $value): void {\n $this->getBackingStore()->set('settings', $value);\n }", "public function setSettings(?OrganizationSettings $value): void {\n $this->getBackingStore()->set('settings', $value);\n }", "public function setMemberSettings(?TeamMemberSettings $value): void {\n $this->getBackingStore()->set('memberSettings', $value);\n }", "public function setSettings() {\n \n $args = [\n\t\t\t[\n\t\t\t\t'option_group' => 'woocapp_options_group',\n\t\t\t\t'option_name' => 'wc_client',\n\t\t\t\t'callback' => [ $this->callbacks, 'woocappOptionsGroup' ]\n ],\n\t\t\t[\n\t\t\t\t'option_group' => 'woocapp_options_group',\n\t\t\t\t'option_name' => 'wc_secret'\n ]\n ];\n\n\t\t$this->settings->setSettings( $args );\n }", "public function set($settings)\n\t{\n\t\t$this->_settings = array_merge($this->_default_settings, $settings);\n\t}", "public function getMailboxSettings(): ?MailboxSettings {\n $val = $this->getBackingStore()->get('mailboxSettings');\n if (is_null($val) || $val instanceof MailboxSettings) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mailboxSettings'\");\n }", "private function get_setting() {\r\n $approve_flag = $this->clean_setting('approve_flag');\r\n $approve = $this->setting->get_element_value('pf_comment','approve');\r\n if (is_array($approve) && in_array(current_user('user-id'), $approve)) {\r\n $approve_flag = 0;\r\n }\r\n $this->settings = array(\r\n 'approve_flag' => $approve_flag,\r\n 'ordering' => $this->clean_setting('ordering'),\r\n 'maximum_characters' => $this->clean_setting('maximum_characters', 255),\r\n 'maximum_level' => $this->clean_setting('maximum_level', 5),\r\n 'approve' => $approve,\r\n 'site_name' => $this->setting->get_element_value('general', 'site_name'),\r\n 'email' => noreply_email(),\r\n );\r\n }", "public function getUserSettings($optParams = array())\n {\n $params = array();\n $params = array_merge($params, $optParams);\n return $this->call('getUserSettings', array($params), \"Books_Usersettings\");\n }", "public function setSettings($settings) {\n // TODO: sanitize the data in $settings: make sure that all path finish in '/'...\n foreach (array('senape-basepath', 'senape-basepath-data') as $item) {\n if (array_key_exists($item, $settings)) {\n $settings[$item] = rtrim($settings[$item], '/').'/';\n }\n }\n $this->settings = $settings + $this->settings;\n }", "public function setSettings($settings)\n {\n if (is_array($settings)) {\n $this->settings = $settings;\n }\n return $this->settings;\n }", "public function setMailBox($mailBox)\n {\n $this->connect($this->account, $mailBox);\n }", "protected function setSettings() {\n\t\t$this->settings = array(\n\t\t\t'combine_pdf_labels'\t=> Mage::getStoreConfig('carriers/smartsend/combinepdf'),\n\t\t\t'change_order_status'\t=> Mage::getStoreConfig('carriers/smartsend/status'),\n\t\t\t'send_shipment_mail'\t=> Mage::getStoreConfig('sales_email/shipment/enabled')\n\t\t\t);\n\t}", "public function setOutboundSettings()\n {\n foreach ($this->settingsToLoad as $keyName)\n {\n if ($keyName == 'outboundPassword')\n {\n $password = ZurmoPasswordSecurityUtil::encrypt($this->$keyName);\n ZurmoConfigurationUtil::setByModuleName('EmailMessagesModule', $keyName, $password);\n }\n else\n {\n ZurmoConfigurationUtil::setByModuleName('EmailMessagesModule', $keyName, $this->$keyName);\n }\n }\n }", "public function setAppSettings($settings) {\n\t\tif ($settings != null) {\n\t\t\t$this->invokePut(\"_settings\", $settings);\n\t\t}\n\t}", "function getMailSettings()\n {\n $query = ExecQuery('SELECT_MAIL_SETTINGS', array());\n foreach ($query as $piece) {\n $settings[$piece[\"name\"]] = $piece[\"value\"];\n }\n return $settings;\n }", "public function setSettings($settings) {\n return AlgoliaUtils_request($this->curlHandle, $this->hostsArray, \"PUT\", \"/1/indexes/\" . $this->urlIndexName . \"/settings\", array(), $settings);\n }", "private function setRequestMailboxConfig() : void {\n $this->requestMailboxConfig = new MailboxConfig(env(\"REQUEST_MAILBOX_IMAP_INBOX\"),\n env(\"REQUEST_MAILBOX_IMAP_ARCHIVE\"));\n }", "public function setSettings($settings = array())\n {\n $this->settings = $settings;\n return $this;\n }", "public function settings_get_settings() {\n $this->init('settings');\n $oReturn = new stdClass();\n\n if ($this->username === false || !username_exists($this->username)) {\n return $this->error('settings', 0);\n }\n\n $oUser = get_user_by('login', $this->username);\n\n if (!is_user_logged_in() || get_current_user_id() != $oUser->data->ID)\n return $this->error('base', 0);\n\n $oReturn->user->mail = $oUser->data->user_email;\n\n $sNewMention = bp_get_user_meta($oUser->data->ID, 'notification_activity_new_mention', true);\n $sNewReply = bp_get_user_meta($oUser->data->ID, 'notification_activity_new_reply', true);\n $sSendRequests = bp_get_user_meta($oUser->data->ID, 'notification_friends_friendship_request', true);\n $sAcceptRequests = bp_get_user_meta($oUser->data->ID, 'notification_friends_friendship_accepted', true);\n $sGroupInvite = bp_get_user_meta($oUser->data->ID, 'notification_groups_invite', true);\n $sGroupUpdate = bp_get_user_meta($oUser->data->ID, 'notification_groups_group_updated', true);\n $sGroupPromo = bp_get_user_meta($oUser->data->ID, 'notification_groups_admin_promotion', true);\n $sGroupRequest = bp_get_user_meta($oUser->data->ID, 'notification_groups_membership_request', true);\n $sNewMessages = bp_get_user_meta($oUser->data->ID, 'notification_messages_new_message', true);\n $sNewNotices = bp_get_user_meta($oUser->data->ID, 'notification_messages_new_notice', true);\n\n $oReturn->settings->new_mention = $sNewMention == 'yes' ? true : false;\n $oReturn->settings->new_reply = $sNewReply == 'yes' ? true : false;\n $oReturn->settings->send_requests = $sSendRequests == 'yes' ? true : false;\n $oReturn->settings->accept_requests = $sAcceptRequests == 'yes' ? true : false;\n $oReturn->settings->group_invite = $sGroupInvite == 'yes' ? true : false;\n $oReturn->settings->group_update = $sGroupUpdate == 'yes' ? true : false;\n $oReturn->settings->group_promo = $sGroupPromo == 'yes' ? true : false;\n $oReturn->settings->group_request = $sGroupRequest == 'yes' ? true : false;\n $oReturn->settings->new_message = $sNewMessages == 'yes' ? true : false;\n $oReturn->settings->new_notice = $sNewNotices == 'yes' ? true : false;\n\n return $oReturn;\n }", "public function setMailboxOpt($name, $value)\n {\n $this->_mailboxOpts[$name] = $value;\n }", "function setSettings($Settings)\n {\n global $application;\n $this->clearSettingsInDB();\n $tables = $this->getTables();\n $columns = $tables['sm_dsr_settings']['columns'];\n\n foreach($Settings as $key => $value)\n {\n $query = new DB_Insert('sm_dsr_settings');\n $query->addInsertValue($key, $columns['key']);\n $query->addInsertValue(serialize($value), $columns['value']);\n $application->db->getDB_Result($query);\n\n $inserted_id = $application->db->DB_Insert_Id();\n }\n }", "public function businessAppointmentSettings(?BusinessAppointmentSettings $value): self\n {\n $this->instance->setBusinessAppointmentSettings($value);\n return $this;\n }", "public function setPluginSettings($pluginSettings) {\n\n if (NULL != $pluginSettings) {\n // override default with user preferences\n }\n }", "function siteorigin_settings_set( $setting, $value ){\n\tSiteOrigin_Settings::single()->set( $setting, $value );\n}", "public function setSettings($settings)\n {\n $this->settings = $settings;\n return $this;\n }", "public function setSettings($settings)\n {\n $this->settings = $settings;\n return $this;\n }", "function setMailSettings($values)\n {\n foreach ($values as $name => $value)\n {\n $params = array(\"name\" => $name, \"value\" => $value);\n ExecQuery(\"UPDATE_MAIL_SETTINGS\", $params);\n }\n }", "public function setPluginSettings($pluginSettings) {\n\n if (NULL != $pluginSettings) {\n // override default with user preferences\n if (array_key_exists(self::OPTION_DISPLAYED_TEAM, $pluginSettings)) {\n $this->displayedTeam = $pluginSettings[self::OPTION_DISPLAYED_TEAM];\n }\n }\n }" ]
[ "0.6161947", "0.58264905", "0.554966", "0.5362937", "0.53525805", "0.5342152", "0.5337324", "0.53289443", "0.52541804", "0.5227815", "0.51719314", "0.51624376", "0.5107013", "0.5097513", "0.50542724", "0.50279844", "0.5016611", "0.50125355", "0.50079644", "0.5005561", "0.49908757", "0.49838457", "0.49497807", "0.49388474", "0.49274734", "0.49272138", "0.49115065", "0.49115065", "0.49071586", "0.49058855" ]
0.7132744
0
Sets the mailFolders property value. The user's mail folders. Readonly. Nullable.
public function setMailFolders(?array $value): void { $this->getBackingStore()->set('mailFolders', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_default_mailboxes($arr)\n {\n if (is_array($arr)) {\n $this->default_folders = $arr;\n\n // add inbox if not included\n if (!in_array('INBOX', $this->default_folders))\n array_unshift($this->default_folders, 'INBOX');\n }\n }", "public function getMailFolders(): ?array {\n $val = $this->getBackingStore()->get('mailFolders');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, MailFolder::class);\n /** @var array<MailFolder>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mailFolders'\");\n }", "public function setContactFolders(?array $value): void {\n $this->getBackingStore()->set('contactFolders', $value);\n }", "public function checkIfFoldersPathSet()\n {\n $folder = (is_string($this->params['folder']))\n ? $this->params['folder']\n : $this->params['folder']->path;\n\n if ($folder == '/' || !$folder) {\n $this->errors[] = 'Folders Path was not set.';\n }\n\n $this->folders_path = $folder;\n }", "public static function setBaseFolders(array $folders)\n {\n self::$baseFolders = $folders;\n }", "public function setPageFolders($folders)\n {\n $this->page_folders = $folders;\n }", "public function folders()\n {\n return $this->belongsToMany('App\\Models\\Folder', 'user_folder');\n }", "public function setFolder(\\Nogrod\\eBaySDK\\MerchantData\\MyMessagesFolderType $folder)\n {\n $this->folder = $folder;\n return $this;\n }", "public function setEmails($emails) {\n $this->emails = $emails;\n }", "protected function saveEmails(array $emails, ImapEmailFolder $imapFolder)\n {\n $this->emailEntityBuilder->removeEmails();\n\n $folder = $imapFolder->getFolder();\n $existingUids = $this->getExistingUids($folder, $emails);\n $messageIds = $this->getMessageIds($emails);\n $existingImapEmails = $this->getExistingImapEmails($folder->getOrigin(), $messageIds);\n $existingEmailUsers = $this->getExistingEmailUsers($folder, $messageIds);\n /** @var ImapEmail[] $newImapEmails */\n $newImapEmails = [];\n foreach ($emails as $email) {\n if (!$this->checkOnOldEmailForMailbox($folder, $email, $folder->getOrigin()->getMailbox())) {\n continue;\n }\n\n if ($this->checkToSkipSyncEmail($email, $existingUids)) {\n continue;\n }\n\n /** @var ImapEmail[] $relatedExistingImapEmails */\n $relatedExistingImapEmails = array_filter(\n $existingImapEmails,\n function (ImapEmail $imapEmail) use ($email) {\n return $imapEmail->getEmail()->getMessageId() === $email->getMessageId();\n }\n );\n\n try {\n if (!isset($existingEmailUsers[$email->getMessageId()])) {\n $emailUser = $this->addEmailUser(\n $email,\n $folder,\n $email->hasFlag(\"\\\\Seen\"),\n $this->currentUser,\n $this->currentOrganization\n );\n } else {\n $emailUser = $existingEmailUsers[$email->getMessageId()];\n if (!$emailUser->getFolders()->contains($folder)) {\n $emailUser->addFolder($folder);\n }\n }\n\n if (false === $this->getSettings()->isForceMode()\n || (true === $this->getSettings()->isForceMode() && count($relatedExistingImapEmails) === 0)\n ) {\n $imapEmail = $this->createImapEmail($email->getId()->getUid(), $emailUser->getEmail(), $imapFolder);\n $newImapEmails[] = $imapEmail;\n $this->em->persist($imapEmail);\n $this->logger->notice(\n sprintf(\n 'The \"%s\" (UID: %d) email was persisted.',\n $email->getSubject(),\n $email->getId()->getUid()\n )\n );\n }\n } catch (EmailAddressParseException $e) {\n $errorContext = [];\n $headers = $email->getMessage()->getHeaders();\n foreach ($headers as $header) {\n $errorContext[$header->getFieldName()] = $header->getFieldValue();\n }\n $this->emailErrorsLogger->error($e->getMessage(), ['headers' => json_encode($errorContext)]);\n } catch (\\Exception $e) {\n $this->logger->warning(\n sprintf(\n 'Failed to persist \"%s\" (UID: %d) email. Error: %s',\n $email->getSubject(),\n $email->getId()->getUid(),\n $e->getMessage()\n )\n );\n }\n\n $this->removeManager->removeEmailFromOutdatedFolders($relatedExistingImapEmails);\n }\n\n $this->emailEntityBuilder->getBatch()->persist($this->em);\n\n // update references if needed\n $changes = $this->emailEntityBuilder->getBatch()->getChanges();\n foreach ($newImapEmails as $imapEmail) {\n foreach ($changes as $change) {\n if ($change['old'] instanceof EmailEntity && $imapEmail->getEmail() === $change['old']) {\n $imapEmail->setEmail($change['new']);\n }\n }\n }\n $this->em->flush();\n\n $this->cleanUp();\n }", "private function setSubfolders($subfolders) {\n\t\t$this->subfolders=$subfolders;\n\t}", "static public function setMails($pMail) {\r\n if(is_array($pMail)) {\r\n foreach ($pMail as $key => $value) {\r\n if(filter_var($value, FILTER_VALIDATE_EMAIL)) {\r\n if(!in_array($value, self::$_mails)) {\r\n self::$_mails[] = $pMail;\r\n }\r\n }\r\n }\r\n }\r\n \r\n if(filter_var($pMail, FILTER_VALIDATE_EMAIL)) {\r\n if(!in_array($pMail, self::$_mails)) {\r\n self::$_mails[] = $pMail;\r\n }\r\n }\r\n }", "public function setMailBox($mailBox)\n {\n $this->connect($this->account, $mailBox);\n }", "public function setMail($_mail)\n\t{\n\t\t$this->_mail = $_mail;\n\t}", "protected function setUnsubscribers()\r\n\t{\r\n\t\tif ( !$this->paths_exist )\r\n\r\n\t\t\treturn false;\r\n\r\n\t\t$dont_email = [];\r\n\r\n\t\t$unsubscribers = [];\r\n\r\n\t\tforeach ( scandir( $this->data_paths['u_path'] ) as $file )\r\n\t\t{\r\n\t\t\tif( '..' == $file || '.' == $file ) continue;\r\n\r\n\t\t\t$user = $this->buildUserArray( $this->data_paths['u_path'] . \"/$file\" );\r\n\r\n\t\t\t$dont_email[] = $user['email']; // For easier array searching later\r\n\r\n\t\t\t$unsubscribers[] = $user;\r\n\t\t}\r\n\r\n\t\t$this->dont_email = $dont_email;\r\n\r\n\t\t$this->unsubscribers = $unsubscribers;\r\n\t}", "function contributionpageoptions_civicrm_alterEntitySettingsFolders(&$folders) {\n static $configured = FALSE;\n if ($configured) return;\n $configured = TRUE;\n\n $extRoot = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;\n $extDir = $extRoot . 'settings';\n if(!in_array($extDir, $folders)){\n $folders[] = $extDir;\n }\n}", "public function setMail( \\Aimeos\\MW\\Mail\\Iface $mail );", "public function testValueWithFolderSentInFolderInbox()\n {\n $this->context->expects($this->never())\n ->method('addViolation');\n $this->translator->expects($this->never())\n ->method('trans');\n\n $folderSent = new EmailFolder();\n $folderSent->setType('sent');\n\n $folderInbox = new EmailFolder();\n $folderInbox->setType('inbox');\n $folderInbox->addSubFolder($folderSent);\n\n $value = new UserEmailOrigin();\n $value->addFolder($folderInbox);\n\n $this->validator->validate($value, $this->constraint);\n }", "public function set_imap_prop()\n {\n $this->imap->set_charset($this->config->get('default_charset', cmail_CHARSET));\n\n if ($default_folders = $this->config->get('default_imap_folders')) {\n $this->imap->set_default_mailboxes($default_folders);\n }\n if (!empty($_SESSION['mbox'])) {\n $this->imap->set_mailbox($_SESSION['mbox']);\n }\n if (isset($_SESSION['page'])) {\n $this->imap->set_page($_SESSION['page']);\n }\n \n // cache IMAP root and delimiter in session for performance reasons\n $_SESSION['imap_root'] = $this->imap->root_dir;\n $_SESSION['imap_delimiter'] = $this->imap->delimiter;\n }", "public function getMailboxes()\r\n {\r\n return array(\"Inbox\");\r\n }", "public function getContactFolders(): ?array {\n $val = $this->getBackingStore()->get('contactFolders');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ContactFolder::class);\n /** @var array<ContactFolder>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'contactFolders'\");\n }", "function setEmail($emails) {\n try {\n //var_dump($emails);\n return $this->SMTP_Valid->validate($emails);\n } catch (Exception $ex) {\n echo 'unable to set emails' . $ex->getMessage();\n }\n }", "public static function getFolders() {\n\t\t$folders = self::getDefaultFolders();\n\t\t$folders += self::getUserFolders();\n\t\t\n\t\treturn $folders;\n\t}", "public function setMail($mail){\n $this->_mail = $mail;\n }", "public static function getUserFolders() {\n\t\t$folders = array();\n\t\t\n\t\t// user folders\n\t\t$sql = \"SELECT\t\t*\n\t\t\tFROM \t\twcf\".WCF_N.\"_pm_folder\n\t\t\tWHERE \t\tuserID = \".WCF::getUser()->userID.\"\n\t\t\tORDER BY \tfolderName\";\n\t\t$result = WCF::getDB()->sendQuery($sql);\n\t\twhile ($row = WCF::getDB()->fetchArray($result)) {\n\t\t\t$row['icon'] = 'pmFolder'.ucfirst($row['color']).'M.png';\n\t\t\t$row['iconLarge'] = 'pmFolder'.ucfirst($row['color']).'L.png';\n\t\t\t$row['messages'] = 0;\n\t\t\t$row['unreadMessages'] = 0;\n\t\t\t\n\t\t\t$folders[$row['folderID']] = $row;\n\t\t}\n\t\t\n\t\treturn $folders;\n\t}", "public function setMailBody ($mailBody)\n {\n $this->mailBody = $mailBody;\n }", "public function setIsFolder($isFolder): void\n {\n $this->attributes['isFolder'] = VT::toBool($isFolder);\n }", "public function setMailContent($mail_content);", "protected function initialMailboxSync(EmailFolder $folder)\n {\n // build search query for emails sync\n $sqb = $this->manager->getSearchQueryBuilder();\n if ($folder->getType() === FolderType::SENT) {\n $sqb->sent($folder->getSyncStartDate());\n } else {\n $sqb->received($folder->getSyncStartDate());\n }\n $searchQuery = $sqb->get();\n $this->logger->info(sprintf('Loading emails from \"%s\" folder ...', $folder->getFullName()));\n $this->logger->info(sprintf('Query: \"%s\".', $searchQuery->convertToSearchString()));\n $emails = $this->manager->getEmails($searchQuery);\n\n return $emails;\n }", "public static function getDefaultFolders() {\n\t\t$folders = array();\n\t\t\n\t\t// default folders\n\t\t$folders[self::FOLDER_INBOX] = array('folderID' => self::FOLDER_INBOX, 'folderName' => WCF::getLanguage()->get('wcf.pm.inbox'), 'icon' => 'pmInboxM.png', 'iconLarge' => 'pmInboxL.png', 'messages' => 0, 'unreadMessages' => 0);\n\t\t$folders[self::FOLDER_OUTBOX] = array('folderID' => self::FOLDER_OUTBOX, 'folderName' => WCF::getLanguage()->get('wcf.pm.outbox'), 'icon' => 'pmOutboxM.png', 'iconLarge' => 'pmOutboxL.png', 'messages' => 0, 'unreadMessages' => 0);\n\t\t$folders[self::FOLDER_DRAFTS] = array('folderID' => self::FOLDER_DRAFTS, 'folderName' => WCF::getLanguage()->get('wcf.pm.drafts'), 'icon' => 'pmDraftsM.png', 'iconLarge' => 'pmDraftsL.png', 'messages' => 0, 'unreadMessages' => 0);\n\t\t$folders[self::FOLDER_TRASH] = array('folderID' => self::FOLDER_TRASH, 'folderName' => WCF::getLanguage()->get('wcf.pm.trash'), 'icon' => 'pmTrashM.png', 'iconLarge' => 'pmTrashL.png', 'messages' => 0, 'unreadMessages' => 0);\n\n\t\treturn $folders;\n\t}" ]
[ "0.6103156", "0.6022022", "0.53239405", "0.52811086", "0.5169097", "0.50721925", "0.4970447", "0.49618086", "0.49467933", "0.49016383", "0.49001765", "0.48505852", "0.48301893", "0.48233613", "0.48170993", "0.47912088", "0.47261202", "0.4719719", "0.470785", "0.469083", "0.46764928", "0.4673716", "0.46699637", "0.46602318", "0.46517354", "0.4614", "0.45958397", "0.45888722", "0.45787266", "0.45775273" ]
0.69114095
0
Sets the mailNickname property value. The mail alias for the user. This property must be specified when a user is created. Maximum length is 64 characters. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).
public function setMailNickname(?string $value): void { $this->getBackingStore()->set('mailNickname', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNickname($var)\n {\n GPBUtil::checkString($var, True);\n $this->nickname = $var;\n\n return $this;\n }", "public function setNickname($val)\n {\n $this->_propDict[\"nickname\"] = $val;\n return $this;\n }", "function setNickname($value) {\n\t\treturn $this->setColumnValue('nickname', $value, Model::COLUMN_TYPE_VARCHAR);\n\t}", "public function setNickname($nickname)\n {\n $this->nickname = (string)$nickname;\n return $this;\n }", "public function getNickname() {\n\t\tif($this->fullName) {\n\t\t\treturn $this->fullName;\n\t\t}\n\t\treturn $this->userModel->email;\n\t}", "public function setNickname($nickname)\n {\n $this->setName($nickname);\n }", "public function setNickname(?string $nickname): self\n {\n $this->nickname = $nickname;\n\n return $this;\n }", "public function setNickname($nickname)\n {\n $this -> _nickname = $nickname;\n return $this;\n }", "public function setNickname(?string $value): void {\n $this->getBackingStore()->set('nickname', $value);\n }", "public function setNickname($nickname, $com, $id){\r\n\t\t\t$sid = $this->auth()[\"sid\"];\r\n\t\t\treturn $this->request(\"x${com}/s/user-profile/${id}?sid=\".$sid, [\"nickname\"=>$nickname,\"timestamp\"=>(time()*100)]);\r\n\t\t}", "public function getMailNickname(): ?string {\n $val = $this->getBackingStore()->get('mailNickname');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mailNickname'\");\n }", "public function setMail(?string $mail): User {\n $this->mail = $mail;\n return $this;\n }", "public function setNickname($sNickname)\n\t{\n\t\t$this->aConfig['nickname'] = $sNickname;\n\t\t$this->Output(\"NICK {$sNickname}\");\n\t}", "public function setEmail($value)\n {\n Yii::trace('setEmail()', 'application.components.RinkfinderWebUser');\n\t$this->setState('__email', $value);\n }", "function setEmail($value){\r\n $this->setColumnValue('user_email', $value);\r\n }", "public function setEmail($email){\n //strpos = php function = checks the position of a certain character in a string\n //if it's not in the string it will return a -1 so we check if its bigger than -1\n if (strpos($email, '@') > -1){\n $this->email = $email;\n }\n }", "public function setNick($nick)\n {\n $this->nick = (string) $nick;\n }", "public function getNickname()\n {\n return Arr::get($this->user, 'preferred_username');\n }", "public function getNickname()\n {\n return $this->nickname;\n }", "public function setUserEmail($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->user_email !== $v) {\n\t\t\t$this->user_email = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::USER_EMAIL;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setInvitedUserDisplayName($value)\n {\n $this->setProperty(\"InvitedUserDisplayName\", $value, true);\n }", "public function setDeviceAccountEmail($val)\n {\n $this->_propDict[\"deviceAccountEmail\"] = $val;\n return $this;\n }", "function setEmail($value);", "public function changeRepositoryMailPrefix($repository);", "function setEmail($a_sEmail)\n {\n $this->_sEmail = (string) $a_sEmail;\n $this->setSearchParameter('email', $this->_sEmail);\n }", "function setEmail($a_sEmail)\n {\n $this->_sEmail = (string) $a_sEmail;\n $this->setSearchParameter('email', $this->_sEmail);\n }", "public function setEmail($value)\n {\n $this->setProperty(\"Email\", $value, true);\n }", "function getNickname() {\n\t\treturn $this->nickname;\n\t}", "public function getNickname()\n {\n // TODO: Implement getNickname() method.\n }", "public function getNickname(): ?string\n {\n return $this->nickname;\n }" ]
[ "0.64872515", "0.6271696", "0.6043154", "0.58862084", "0.5839684", "0.57923305", "0.57741445", "0.5735677", "0.56661767", "0.56283706", "0.542647", "0.5408096", "0.5350088", "0.5226261", "0.522509", "0.52197254", "0.520451", "0.5198952", "0.5182396", "0.51383424", "0.51306325", "0.51114905", "0.5088046", "0.5055833", "0.5049112", "0.5049112", "0.5042288", "0.5035627", "0.50292045", "0.5010901" ]
0.6789462
0
Sets the managedAppRegistrations property value. Zero or more managed app registrations that belong to the user.
public function setManagedAppRegistrations(?array $value): void { $this->getBackingStore()->set('managedAppRegistrations', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getManagedAppRegistrations(): ?array {\n $val = $this->getBackingStore()->get('managedAppRegistrations');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ManagedAppRegistration::class);\n /** @var array<ManagedAppRegistration>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'managedAppRegistrations'\");\n }", "public function getManagedAppRegistrations(): ?array {\n $val = $this->getBackingStore()->get('managedAppRegistrations');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ManagedAppRegistration::class);\n /** @var array<ManagedAppRegistration>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'managedAppRegistrations'\");\n }", "public function setManagedApps($val)\n {\n $this->_propDict[\"managedApps\"] = $val;\n return $this;\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setWindowsInformationProtectionDeviceRegistrations(?array $value): void {\n $this->getBackingStore()->set('windowsInformationProtectionDeviceRegistrations', $value);\n }", "public function setManagedAppPolicies(?array $value): void {\n $this->getBackingStore()->set('managedAppPolicies', $value);\n }", "public function setManagedDevices($val)\n {\n $this->_propDict[\"managedDevices\"] = $val;\n return $this;\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setManagedDevices(?array $value): void {\n $this->getBackingStore()->set('managedDevices', $value);\n }", "public function setTargetedManagedAppConfigurations(?array $value): void {\n $this->getBackingStore()->set('targetedManagedAppConfigurations', $value);\n }", "public function setIosManagedAppProtections(?array $value): void {\n $this->getBackingStore()->set('iosManagedAppProtections', $value);\n }", "public function setDefaultManagedAppProtections(?array $value): void {\n $this->getBackingStore()->set('defaultManagedAppProtections', $value);\n }", "public function setRegisteredDevices(?array $value): void {\n $this->getBackingStore()->set('registeredDevices', $value);\n }", "public function setManagedAppStatuses(?array $value): void {\n $this->getBackingStore()->set('managedAppStatuses', $value);\n }", "public function setSynchronizeUpnForManagedUsersEnabled(?bool $value): void {\n $this->getBackingStore()->set('synchronizeUpnForManagedUsersEnabled', $value);\n }", "public function setWindowsManagedAppProtections(?array $value): void {\n $this->getBackingStore()->set('windowsManagedAppProtections', $value);\n }", "public function setMobileAppConfigurations(?array $value): void {\n $this->getBackingStore()->set('mobileAppConfigurations', $value);\n }", "public function setIosLobAppProvisioningConfigurations(?array $value): void {\n $this->getBackingStore()->set('iosLobAppProvisioningConfigurations', $value);\n }", "public function getManagedApps()\n {\n if (array_key_exists(\"managedApps\", $this->_propDict)) {\n if (is_a($this->_propDict[\"managedApps\"], \"\\Microsoft\\Graph\\Model\\AppListItem\") || is_null($this->_propDict[\"managedApps\"])) {\n return $this->_propDict[\"managedApps\"];\n } else {\n $this->_propDict[\"managedApps\"] = new AppListItem($this->_propDict[\"managedApps\"]);\n return $this->_propDict[\"managedApps\"];\n }\n }\n return null;\n }", "public function setMarketingNotificationEmails(?array $value): void {\n $this->getBackingStore()->set('marketingNotificationEmails', $value);\n }", "public function setDeviceAppManagementTasks(?array $value): void {\n $this->getBackingStore()->set('deviceAppManagementTasks', $value);\n }", "public function setAppRoleAssignments(?array $value): void {\n $this->getBackingStore()->set('appRoleAssignments', $value);\n }", "public function setManagedUniversalLinks(?array $value): void {\n $this->getBackingStore()->set('managedUniversalLinks', $value);\n }", "public function setApproval(ObjectStorage $backendUsers);", "public function registrationIds($registrationIds = null) {\n return $this->getterSetter('registrationIds', $registrationIds);\n }", "public function setWindowsManagementApp(?WindowsManagementApp $value): void {\n $this->getBackingStore()->set('windowsManagementApp', $value);\n }", "public function setAppRoleAssignedResources(?array $value): void {\n $this->getBackingStore()->set('appRoleAssignedResources', $value);\n }", "public function setManagedGroupTypes(?string $value): void {\n $this->getBackingStore()->set('managedGroupTypes', $value);\n }", "public function setAndroidManagedAppProtections(?array $value): void {\n $this->getBackingStore()->set('androidManagedAppProtections', $value);\n }", "public function setOwners(?array $value): void {\n $this->getBackingStore()->set('owners', $value);\n }" ]
[ "0.5975864", "0.5975864", "0.5974792", "0.57857424", "0.57857424", "0.55453235", "0.5352431", "0.5324489", "0.5324489", "0.52975583", "0.5292008", "0.52153593", "0.51266515", "0.50556743", "0.4994518", "0.49871358", "0.48526475", "0.476978", "0.4670461", "0.4640701", "0.46352077", "0.46052593", "0.45951954", "0.45816314", "0.454386", "0.4515867", "0.45124605", "0.45108438", "0.45042518", "0.44918147" ]
0.7684524
1
Sets the manager property value. The user or contact that is this user's manager. Readonly. (HTTP Methods: GET, PUT, DELETE.). Supports $expand.
public function setManager(?DirectoryObject $value): void { $this->getBackingStore()->set('manager', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setManager( $manager ) { // most likely User $manager = null\n\t\t$this->manager = $manager;\n\t}", "public function setManager($manager)\n {\n $this->manager = $manager;\n\n return $this;\n }", "public function setUserManager(UserManager $um)\n {\n $this->userManager = $um;\n }", "private function setManagerAccess()\r\n\t\t{\r\n\t\t\tif ($this->tokenModel->getTokenAccess($this->token) === 'Manager') {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new \\Exception('user does not have access!');\r\n\t\t\t}\r\n\t\t}", "public function setManager(?ObjectManager $manager): void\n {\n if (empty($this->em) && $manager !== null) {\n $this->em = $manager;\n }\n }", "public function setTransactionManager($manager){\n\t\t$this->_manager = $manager;\n\t}", "public function setUserManager(UserInterface $userManager)\n {\n $this->userManager = $userManager;\n }", "public function isManager()\n {\n return ($this->get('user_type') == 'manager');\n }", "public function setManagers(?int $managers) : self\n {\n $this->initialized['managers'] = true;\n $this->managers = $managers;\n return $this;\n }", "public function edit(Manager $manager)\n {\n //\n }", "function getManager() \n {\n return $this->manager;\n }", "public function isManager()\n {\n return $this->manager;\n }", "public function manager()\n {\n return $this->manager;\n }", "public function setObjectManager($objectManager)\n {\n if ($this->objectManager != $objectManager) {\n $this->objectManager = $objectManager;\n }\n }", "public function getManager() {\n\t\treturn $this->manager;\n\t}", "public function setManagerName($managerName) {\n $this->container['ManagerName'] = $managerName;\n return $this;\n\t}", "private function setManager($manager) \n {\n $this->manager = $manager;\n $this->manager->getConnection()->getConfiguration()->setSQLLogger(null);\n }", "public function setManager($providers)\n {\n $this->manager = $providers;\n }", "public function getManager()\n {\n return $this->manager;\n }", "public function getManager()\n {\n return $this->manager;\n }", "public function getManager()\n {\n return $this->manager;\n }", "public function getManager()\n {\n return $this->manager;\n }", "public function getManager()\n {\n return $this->manager;\n }", "public function setTransactionManager($manager){ }", "public function update(ManagerRequest $request, Manager $manager) {\n //\n $data['name'] = $request->get('name');\n $data['email'] = $request->get('email');\n if ($request->get('password')) {\n $data['password'] = bcrypt($request->get('password'));\n }\n $this->repository->update($data, $manager->id);\n flash()->success('用户编辑成功');\n return redirect(route('admin.manager.index'));\n }", "public function setObjectManager(ObjectManager $objectManager)\r\n {\r\n $this->objectManager = $objectManager;\r\n }", "public function docManager($manager = ''){$this->docManager = $manager;}", "public function setManager(QueueManager $manager)\n {\n $this->manager = $manager;\n }", "public function isManager()\n {\n return $this->role_id == Role::whereSlug('manager')->first()->id;\n }", "public function update_business_manager_id( $value ) {\n\n\t\tupdate_option( self::OPTION_BUSINESS_MANAGER_ID, $value );\n\t}" ]
[ "0.7769384", "0.6618992", "0.653512", "0.64237124", "0.6384686", "0.60824645", "0.6045904", "0.6020704", "0.59613013", "0.59215635", "0.5861247", "0.5793089", "0.57883507", "0.5747251", "0.57343066", "0.5689302", "0.5683958", "0.5675599", "0.56715065", "0.56715065", "0.56715065", "0.56715065", "0.56715065", "0.5662011", "0.5610846", "0.5592761", "0.5565444", "0.5564895", "0.5559374", "0.5542449" ]
0.6675866
1
Sets the mobileAppIntentAndStates property value. The list of troubleshooting events for this user.
public function setMobileAppIntentAndStates(?array $value): void { $this->getBackingStore()->set('mobileAppIntentAndStates', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMobileAppTroubleshootingEvents(?array $value): void {\n $this->getBackingStore()->set('mobileAppTroubleshootingEvents', $value);\n }", "public function setDeviceManagementTroubleshootingEvents(?array $value): void {\n $this->getBackingStore()->set('deviceManagementTroubleshootingEvents', $value);\n }", "public function mobileAppTroubleshootingEvents(): MobileAppTroubleshootingEventsRequestBuilder {\n return new MobileAppTroubleshootingEventsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function getMobileAppIntentAndStates(): ?array {\n $val = $this->getBackingStore()->get('mobileAppIntentAndStates');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, MobileAppIntentAndState::class);\n /** @var array<MobileAppIntentAndState>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mobileAppIntentAndStates'\");\n }", "public function getMobileAppTroubleshootingEvents(): ?array {\n $val = $this->getBackingStore()->get('mobileAppTroubleshootingEvents');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, MobileAppTroubleshootingEvent::class);\n /** @var array<MobileAppTroubleshootingEvent>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mobileAppTroubleshootingEvents'\");\n }", "public function setMobileApps(?array $value): void {\n $this->getBackingStore()->set('mobileApps', $value);\n }", "public function setMobileAppConfigurations(?array $value): void {\n $this->getBackingStore()->set('mobileAppConfigurations', $value);\n }", "public function update_signups($event, $event_users){\n\n\t\tforeach($event_users as $user){\n\t\t\tif($user['status'] === 'in'){\n\t\t\t\t$current_user = $event->users()->wherePivot('user_id', '=', $user['user_id'])->first();\n\t\t\t\tif($current_user->pivot->confirmed == 0){\n\t\t\t\t\tdispatch(new SendReplacementUser($event, $current_user));\n\t\t\t\t}\n\t\t\t\t$event->users()->updateExistingPivot($user['user_id'], array(\n\t\t\t\t\t'confirmed' => 1,\n\t\t\t\t\t'waitlisted' => 0,\n\t\t\t\t\t'substitute' => 0,\n\t\t\t\t\t'unavailable' => 0,\n\t\t\t\t\t'preferred_start_time' => !empty($user['preferred_start_time']) ? $user['preferred_start_time'] : null\n\t\t\t\t));\n\t\t\t}\n\t\t\telse if($user['status'] === 'waitlisted'){\n\t\t\t\t$event->users()->updateExistingPivot($user['user_id'], array(\n\t\t\t\t\t'confirmed' => 0,\n\t\t\t\t\t'waitlisted' => 1,\n\t\t\t\t\t'substitute' => 1,\n\t\t\t\t\t'unavailable' => 0,\n\t\t\t\t\t'preferred_start_time' => !empty($user['preferred_start_time']) ? $user['preferred_start_time'] : null\n\t\t\t\t));\n\t\t\t}\n\t\t\telse if($user['status'] === 'unavailable'){\n\t\t\t\t$event->users()->updateExistingPivot($user['user_id'], array(\n\t\t\t\t\t'confirmed' => 0,\n\t\t\t\t\t'waitlisted' => 0,\n\t\t\t\t\t'substitute' => 0,\n\t\t\t\t\t'unavailable' => 1,\n\t\t\t\t\t'preferred_start_time' => !empty($user['preferred_start_time']) ? $user['preferred_start_time'] : null\n\t\t\t\t));\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$event->users()->updateExistingPivot($user['user_id'], array(\n\t\t\t\t\t'confirmed' => 0,\n\t\t\t\t\t'waitlisted' => 0,\n\t\t\t\t\t'substitute' => 0,\n\t\t\t\t\t'unavailable' => 0,\n\t\t\t\t\t'preferred_start_time' => !empty($user['preferred_start_time']) ? $user['preferred_start_time'] : null\n\t\t\t\t));\n\t\t\t}\n\t\t\tif($event->event_type === 'league' && in_array($user['status'], array('waitlisted', 'unavailable'))){\n\t\t\t\t$this->remove_user_from_league($event, $user);\n\t\t\t}\n\t\t}\n\n\t}", "public function setEvents($events) {\n $this->events = $events;\n }", "public function setEventActivityList($newEventActivityList) {\n // filter the city as a generic string\n $newEventActivityList = trim($newEventActivityList);\n $newEventActivityList = filter_var($newEventActivityList, FILTER_SANITIZE_STRING);\n\n // then just take the city out of quarantine\n $this->eventActivityList = $newEventActivityList;\n }", "function setSwitchActuatorState($logicalDeviceId, $on)\n\t{\n\t\t$setActuatorStatesRequest = new SetActuatorStatesRequest($this);\n\t\t$setActuatorStatesRequest->addSwitchActuatorState($logicalDeviceId, $on);\n\t\treturn $setActuatorStatesRequest->send();\n\t}", "public function setStates($states) {\r\n\t\t$this->states = $states;\r\n\t}", "public function setManagedAppStatuses(?array $value): void {\n $this->getBackingStore()->set('managedAppStatuses', $value);\n }", "public function appointmentWasSet(){\n\t\t$viewDataController = new ViewDataController();\n\t\t$data = $viewDataController->buildData(true);\n\n\t\t$org = OrganizationBranch::find($data['org_branch_id']);\n\t\t$org->set_goal_reminder = 1;\n\t\t$org->appointment_set = 1;\n\t\t$org->save();\n\n\t\tSession::put('userinfo.session_reset', 1);\n\n\t\treturn 'success';\n\t}", "public function setExternalUserStateChangeDateTime(?string $value): void {\n $this->getBackingStore()->set('externalUserStateChangeDateTime', $value);\n }", "public function setSecurityComplianceNotificationPhones(?array $value): void {\n $this->getBackingStore()->set('securityComplianceNotificationPhones', $value);\n }", "private static function _set_mobile() {\n\t\tif (is_array(self::$mobiles) AND count(self::$mobiles) > 0)\n\t\t{\n\t\t\tforeach (self::$mobiles as $key => $val)\n\t\t\t{\n\t\t\t\tif (FALSE !== (strpos(strtolower(self::$agent), $key)))\n\t\t\t\t{\n\t\t\t\t\tself::$is_mobile = TRUE;\n\t\t\t\t\tself::$mobile = $val;\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn FALSE;\n\t}", "function get_notification_states(){\n\t\treturn array(\n\t\t\t'read' => 'Read',\n\t\t\t'unread' => 'Unread',\n\t\t);\n\t}", "public function setEvents(?array $value): void {\n $this->getBackingStore()->set('events', $value);\n }", "public function setEvents(?array $value): void {\n $this->getBackingStore()->set('events', $value);\n }", "public function setThreatState(?WindowsMalwareThreatState $value): void {\n $this->getBackingStore()->set('threatState', $value);\n }", "public function set_intent($value)\n {\n $this->intent = self::id_or_entity_helper($value, 'Intent');\n }", "public function setHumanThrows()\n {\n $this->humanThrows = [4, 5];\n }", "protected function storeStepsInOnBoarding($step)\n {\n if ($this->auth->user()->userOnBoarding) {\n if (is_array($step)) {\n foreach ($step as $index => $value) {\n $this->userOnBoardingService->storeCompletedSettingsSteps($value);\n }\n } else {\n $this->userOnBoardingService->storeCompletedSettingsSteps($step);\n }\n }\n }", "public function set_msa_alertness($value)\n {\n $this->msa_alertness = self::id_or_entity_helper($value, 'MentalAlertness');\n }", "function hook_nice_user_menu_mobile_menus_alter(&$mobile_menu_menus) {\n\t// ...\n}", "public function setNotifications(?array $value): void {\n $this->getBackingStore()->set('notifications', $value);\n }", "public function get_mobile_user_agents() {\n\t\t// Default list compiled from the user agents listed in `wp_is_mobile()`.\n\t\t$default_user_agents = [\n\t\t\t'Mobile',\n\t\t\t'Android',\n\t\t\t'Silk/',\n\t\t\t'Kindle',\n\t\t\t'BlackBerry',\n\t\t\t'Opera Mini',\n\t\t\t'Opera Mobi',\n\t\t];\n\n\t\t/**\n\t\t * Filters the list of user agents used to determine if the user agent from the current request is a mobile one.\n\t\t *\n\t\t * @since 2.0\n\t\t *\n\t\t * @param string[] $user_agents List of mobile user agent search strings (and regex patterns).\n\t\t */\n\t\treturn apply_filters( 'amp_mobile_user_agents', $default_user_agents );\n\t}", "private function _processTimeclockStateAlerts($emp)\n {\n // always happens if clocked in, regardless of micro-state, 135\n $this->_processShiftDurationAlert($emp);\n extract($emp);\n\n if ($activity_id == 3) {\n echo 'processing break alerts for ' . $emp['employee_id'];\n $this->_processBreakAlerts($emp);\n } else if ($activity_id == 5) {\n echo 'processing lunch alerts for ' . $emp['employee_id'];\n $this->_processLunchAlerts($emp);\n }\n }", "function eventclass_testmail()\n\t{\n\t\t$this->events[\"BeforeMoveNextList\"]=true;\n\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\n//\tonscreen events\n\n\t}" ]
[ "0.60823935", "0.5216937", "0.46156785", "0.4387302", "0.4309823", "0.40196782", "0.39832053", "0.39749652", "0.3940959", "0.3936541", "0.38929108", "0.38902795", "0.3855093", "0.38282946", "0.38140097", "0.37874246", "0.37663922", "0.37358588", "0.3732448", "0.3732448", "0.37117648", "0.3710776", "0.37082368", "0.36879602", "0.3687364", "0.3672044", "0.36633953", "0.3659682", "0.3655392", "0.3633076" ]
0.5944544
1
Sets the mobileAppTroubleshootingEvents property value. The list of mobile app troubleshooting events for this user.
public function setMobileAppTroubleshootingEvents(?array $value): void { $this->getBackingStore()->set('mobileAppTroubleshootingEvents', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDeviceManagementTroubleshootingEvents(?array $value): void {\n $this->getBackingStore()->set('deviceManagementTroubleshootingEvents', $value);\n }", "public function getMobileAppTroubleshootingEvents(): ?array {\n $val = $this->getBackingStore()->get('mobileAppTroubleshootingEvents');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, MobileAppTroubleshootingEvent::class);\n /** @var array<MobileAppTroubleshootingEvent>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'mobileAppTroubleshootingEvents'\");\n }", "public function mobileAppTroubleshootingEvents(): MobileAppTroubleshootingEventsRequestBuilder {\n return new MobileAppTroubleshootingEventsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public function getDeviceManagementTroubleshootingEvents(): ?array {\n $val = $this->getBackingStore()->get('deviceManagementTroubleshootingEvents');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, DeviceManagementTroubleshootingEvent::class);\n /** @var array<DeviceManagementTroubleshootingEvent>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'deviceManagementTroubleshootingEvents'\");\n }", "public function setEvents($events) {\n $this->events = $events;\n }", "public function setEvents($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Google\\Cloud\\AIPlatform\\V1\\Event::class);\n $this->events = $arr;\n\n return $this;\n }", "public function setEvents(?array $value): void {\n $this->getBackingStore()->set('events', $value);\n }", "public function setEvents(?array $value): void {\n $this->getBackingStore()->set('events', $value);\n }", "public function setDebtRecoveryEventList($value)\n {\n if (!$this->_isNumericArray($value)) {\n $value = array ($value);\n }\n $this->_fields['DebtRecoveryEventList']['FieldValue'] = $value;\n return $this;\n }", "public function setEventData(array $data);", "public function setEventsManager($eventsManager){ }", "public function setTechnicalNotificationMails(?array $value): void {\n $this->getBackingStore()->set('technicalNotificationMails', $value);\n }", "public function setEventType($value)\n {\n $this->setProperty(\"EventType\", $value, true);\n }", "protected function resetEventErrors()\n {\n $this->eventErrors = [];\n }", "function setEvent($value)\n {\n return $this->setFieldValue('event', $value);\n }", "public function setSecurityComplianceNotificationMails(?array $value): void {\n $this->getBackingStore()->set('securityComplianceNotificationMails', $value);\n }", "public function set_event_type($value)\n {\n\n // Sanitize and validate value\n $value = $this->sanitize_event_type($value);\n\n // Set property\n $this->set_property('event_type', $value);\n }", "public function setDeviceAppManagementTasks(?array $value): void {\n $this->getBackingStore()->set('deviceAppManagementTasks', $value);\n }", "public function addWalksArray($arrayofwalks) {\n foreach ($arrayofwalks as $walk) {\n $this->arrayofevents[] = $walk;\n }\n }", "public function setRentalTransactionEventList($value)\n {\n if (!$this->_isNumericArray($value)) {\n $value = array ($value);\n }\n $this->_fields['RentalTransactionEventList']['FieldValue'] = $value;\n return $this;\n }", "public function setEvent($value);", "public function setFBALiquidationEventList($value)\n {\n if (!$this->_isNumericArray($value)) {\n $value = array ($value);\n }\n $this->_fields['FBALiquidationEventList']['FieldValue'] = $value;\n return $this;\n }", "public function setGuaranteeClaimEventList($value)\n {\n if (!$this->_isNumericArray($value)) {\n $value = array ($value);\n }\n $this->_fields['GuaranteeClaimEventList']['FieldValue'] = $value;\n return $this;\n }", "public function updateEvents()\n\t{\t\t\n\t\t$this->updateObject(\n\t\t\tarray(\n\t\t\t\t\"table_name\" => \"facebook_events\",\n\t\t\t\t\"likes\" => false,\n\t\t\t\t\"date_field\" => \"start_time\",\n\t\t\t\t\"keys\" => array(\n\t\t\t\t\t\"name\" => \"name\",\n\t\t\t\t\t\"venue\" => \"venue\",\n\t\t\t\t\t\"description\" => \"description\"\n\t\t\t\t)\n\t\t\t),\n\t\t\t\"/me/events\"\n\t\t);\n\t}", "public function setMarketingNotificationEmails(?array $value): void {\n $this->getBackingStore()->set('marketingNotificationEmails', $value);\n }", "public function troubleshootingEvents(): TroubleshootingEventsRequestBuilder {\n return new TroubleshootingEventsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "function SetEvent(&$event)\n\t{\n\t\t$this->eventId = $event->eventId;\n\t}", "public function setNotifications(?array $value): void {\n $this->getBackingStore()->set('notifications', $value);\n }", "public function setSecurityComplianceNotificationPhones(?array $value): void {\n $this->getBackingStore()->set('securityComplianceNotificationPhones', $value);\n }", "public function setSAFETReimbursementEventList($value)\n {\n if (!$this->_isNumericArray($value)) {\n $value = array ($value);\n }\n $this->_fields['SAFETReimbursementEventList']['FieldValue'] = $value;\n return $this;\n }" ]
[ "0.6658737", "0.6007291", "0.5736461", "0.53631115", "0.49010676", "0.48401624", "0.46054423", "0.46054423", "0.45331368", "0.4531263", "0.43386015", "0.42416322", "0.42352313", "0.4191873", "0.41676596", "0.41635114", "0.41200113", "0.40964738", "0.40766364", "0.40615997", "0.40497297", "0.40263194", "0.40251014", "0.4011697", "0.39988348", "0.39827982", "0.39784294", "0.39641118", "0.3946637", "0.39439687" ]
0.7276445
0
Sets the mySite property value. The URL for the user's personal site. Returned only on $select.
public function setMySite(?string $value): void { $this->getBackingStore()->set('mySite', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_Site() {\n return $this->site;\n }", "public function setSite($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\StringValue::class);\n $this->site = $var;\n\n return $this;\n }", "public function setSite(Site $site) {\n\t\t$this->site = $site;\n\t}", "public function getSite(): string {\n return $this->site;\n }", "public function getSite()\n {\n return $this->site;\n }", "public function getSite()\n {\n return $this->site;\n }", "public function getSite()\n {\n return $this->site;\n }", "public function setSiteUrl(string $siteUrl): void {\n\n\t\tif (mb_substr($siteUrl, -1) == '/')\n\t\t\t$siteUrl = mb_substr($siteUrl, 0, -1);\n\n\t\t$this->m_siteUrl = $siteUrl;\n\t}", "public function change_site( $site )\n\t{\n\t\t$this->site = $site;\n\t}", "public function getSite() {\n\t\treturn $this->site;\n\t}", "public function setUserWebsiteUrl($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->user_website_url !== $v) {\n\t\t\t$this->user_website_url = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::USER_WEBSITE_URL;\n\t\t}\n\n\t\treturn $this;\n\t}", "private function assignWebsiteURL() {\n if(isset($_SERVER['HTTPS'])){\n $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != \"off\") ? \"https\" : \"http\";\n }else{\n $protocol = 'http';\n }\n $this->websiteURL = $protocol . \"://\" . $_SERVER['HTTP_HOST'];\n }", "public function public_get_site() {\n return $this->get_site();\n }", "public function setUseWebsite($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->use_website !== $v) {\n\t\t\t$this->use_website = $v;\n\t\t\t$this->modifiedColumns[] = UsersPeer::USE_WEBSITE;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function siteUrl()\n {\n return $this->entry->site_url;\n }", "public function setSite($site)\n {\n $this->site = $site;\n return $this;\n }", "function getSiteUrl() \n {\n $filterData = array();\n $cnt = 0;\n $filterData[$cnt] = \"SiteURL\";\n \n $getSiteUrl = $this->db->fetchSQL(\"SELECT VariableValue FROM tbl_UserVars WHERE VariableName = :filter0\", $filterData, \"1\");\n \n return $getSiteUrl;\n }", "public function getUserWebsiteUrl()\n\t{\n\t\treturn $this->user_website_url;\n\t}", "public function getSiteUrl();", "public function setSite(string $site): Sync {\n $this->site = $site;\n return $this;\n }", "public function setWebsite($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->website !== $v) {\n $this->website = $v;\n $this->modifiedColumns[] = YayasanPeer::WEBSITE;\n }\n\n\n return $this;\n }", "public function getSite()\n {\n return isset($this->site) ? $this->site : null;\n }", "Public function setSite()\n {\n if(file_exists(REP_RACINE))\n {\n $this->var_site = NOM_SITE;\n self::$site;\n /** on va charger les noveau fichier de configuration**/\n $this->charger_config();\n }\n else\n {\n Erreur::declarer_dev(1300,\"objet : Entrer , function ; setSite , arguments : \".NOM_SITE);\n }\n \n \n\n }", "public function setSiteName($sitename);", "public function getSite()\n {\n return $this->getSection()->getSite();\n }", "function get_site_url() {\n $API = new PerchAPI(1.0, 'pipit_sharing');\n $Settings = $API->get('Settings');\n\n if(PERCH_SSL) {\n $protocol = 'https://';\n } else {\n $protocol = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://';\n }\n \n $site_url = $protocol . $_SERVER['HTTP_HOST'];\n\n switch($Settings->get('pipit_sharing_domain')->val()) {\n case '1':\n $site_url = $Settings->get('siteURL')->val();\n if(substr($site_url, 0, 4) !== \"http\") {\n $site_url = $protocol . $site_url;\n }\n break;\n\n case '3':\n if(defined('SITE_URL')) {\n $site_url = SITE_URL;\n } else {\n PerchUtil::debug('Pipit Sharing: SITE_URL is not defined. Using $_SERVER[\\'HTTP_HOST\\'] instead.', 'notice');\n }\n break;\n }\n \n \n\n\n return $site_url;\n }", "public function setPortalUrl($val)\n {\n $this->_propDict[\"portalUrl\"] = $val;\n return $this;\n }", "public function getStoreSite()\n {\n return $this->storeSite;\n }", "public function setSiteUserId($var)\n {\n GPBUtil::checkString($var, True);\n $this->siteUserId = $var;\n\n return $this;\n }", "public function getWebsite() {\r\n return $this->website;\r\n }" ]
[ "0.62374043", "0.6229644", "0.61544496", "0.61264515", "0.6119394", "0.6119394", "0.6119394", "0.6086791", "0.60482013", "0.6045322", "0.6010548", "0.59971434", "0.59964657", "0.59528077", "0.59520143", "0.59064656", "0.587006", "0.5856549", "0.5753887", "0.5710856", "0.5637229", "0.56227124", "0.5607912", "0.5599467", "0.5505348", "0.5483335", "0.54833126", "0.54820514", "0.5473822", "0.5466368" ]
0.63705415
0
Sets the notifications property value. The notifications property
public function setNotifications(?array $value): void { $this->getBackingStore()->set('notifications', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_notifications($notlist){\n $this->notifications=$notlist;\n }", "public function setNotify($notify) {\n $this->notify = $notify;\n }", "public function setNotify($value)\n {\n return $this->set('Notify', $value);\n }", "public function setNotifications($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Io\\Token\\Proto\\Common\\Notification\\Notification::class);\n $this->notifications = $arr;\n\n return $this;\n }", "public function setNotification(array $options) : OneSignalNotification\n {\n $this->options = $options;\n return $this;\n }", "public function register_notifications() {\n\t}", "public function setSetting($send_notifications) {\n $data['direct'] = $send_notifications;\n $response = $this->podio->request('/notification/settings', $data, HTTP_Request2::METHOD_PUT);\n }", "public function storeNotifications(array $notifications = []);", "public static function setCheckNotification($val) \n\t{ \n\t\tself::setB('check_notification', (boolean)$val, 'Enable notification');\n\t}", "public function set_guest_notification($notification = array())\n {\n $data_insert = [];\n $data_update = [];\n\n foreach($notification as $key => $value)\n {\n $result = GuestNotification::select('*')\n ->where($value)\n ->first();\n\n if(empty($result))\n {\n $data_insert[] = $value;\n }\n else\n {\n $data_update[] = $value;\n }\n } \n \n // insert\n if(!empty($data_insert))\n {\n GuestNotification::insert($data_insert);\n }\n \n //update\n if(!empty($data_update)) \n {\n foreach($data_update as $key => $value)\n {\n GuestNotification::where($value)\n ->increment('messages_count', 1);\n \n }\n }\n\n return true;\n }", "public function setNotification($notification) : self\n {\n $this->initialized['notification'] = true;\n $this->notification = $notification;\n return $this;\n }", "public function getNotifications()\n {\n return $this->notifications;\n }", "public function testSetUserNotificationStatus()\n {\n }", "public static function resetNewNotifications() {\n\t\taioseo()->db\n\t\t\t->update( 'aioseo_notifications' )\n\t\t\t->where( 'new', 1 )\n\t\t\t->set( 'new', 0 )\n\t\t\t->run();\n\t}", "public function setNotifiers(array $notifier_ids);", "public function displayNotifications(array $notifications = []);", "public function notify(Notification $notification): void;", "public function setNotificationRestriction($val)\n {\n $this->_propDict[\"notificationRestriction\"] = $val;\n return $this;\n }", "public function register_notification( $notifications ) {\n\t\t$notifications['lockout'] = array(\n\t\t\t'subject_editable' => true,\n\t\t\t'recipient' => ITSEC_Notification_Center::R_USER_LIST_ADMIN_UPGRADE,\n\t\t\t'schedule' => ITSEC_Notification_Center::S_NONE,\n\t\t\t'optional' => true,\n\t\t);\n\n\t\treturn $notifications;\n\t}", "public function setNotificationType($val)\n {\n $this->_propDict[\"notificationType\"] = $val;\n return $this;\n }", "public function setAlternateNotificationEmails(?string $value): void {\n $this->getBackingStore()->set('alternateNotificationEmails', $value);\n }", "public function notifications() {\n \n // Check if the session exists and if the login user is admin\n $this->check_session($this->user_role, 1);\n \n // Get templates\n $templates = $this->notifications->get_templates(1);\n \n // Get all notifications\n $notifications = $this->notifications->get_templates(0);\n \n $this->content = [\n 'templates' => $templates,\n 'notifications' => $notifications\n ];\n \n // Get notifications template\n $this->body = 'admin/notifications';\n \n $this->admin_layout();\n \n }", "public function setNotificationRecipients($val)\n {\n $this->_propDict[\"notificationRecipients\"] = $val;\n return $this;\n }", "function setAsNotification( $is_notification )\r\n\t{\r\n\t\t$this->_is_notification = (bool)$is_notification;\r\n\t\tif( $is_notification )\r\n\t\t{\r\n\t\t\t$this->_id = NULL;\r\n\t\t}\r\n\t\t\r\n\t\treturn $this;\r\n\t}", "public function setNoCookieNotifications($value)\n\t{\n\t\t$this->noCookieNotifications = $value;\n\t}", "public function register_notification( $notifications ) {\n\t\t$notifications['malware-scheduling'] = array(\n\t\t\t'recipient' => ITSEC_Notification_Center::R_USER_LIST,\n\t\t\t'optional' => true,\n\t\t\t'module' => 'malware-scheduling',\n\t\t);\n\n\t\treturn $notifications;\n\t}", "protected function getNotifications() {\n if (!$this->_notifications) {\n $this->_notifications = new Notifications($this);\n }\n return $this->_notifications;\n }", "public function notifyUsers(Notification $notification, NotifiableUser ...$users): void;", "public function fetchNotifications(array $notifications = []);", "public function setMarketingNotificationEmails(?array $value): void {\n $this->getBackingStore()->set('marketingNotificationEmails', $value);\n }" ]
[ "0.65921617", "0.6581359", "0.64913833", "0.6097574", "0.6079113", "0.60614765", "0.6053295", "0.60306215", "0.6025796", "0.5981167", "0.5927386", "0.5897256", "0.5872959", "0.58404034", "0.57906204", "0.57357687", "0.5731606", "0.57157505", "0.5706942", "0.5695859", "0.5664298", "0.56381106", "0.56291705", "0.56211936", "0.5620387", "0.56194913", "0.561362", "0.55983275", "0.5577766", "0.556145" ]
0.7161943
0