id int32 0 241k | repo stringlengths 6 63 | path stringlengths 5 140 | func_name stringlengths 3 151 | original_string stringlengths 84 13k | language stringclasses 1
value | code stringlengths 84 13k | code_tokens list | docstring stringlengths 3 47.2k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 91 247 |
|---|---|---|---|---|---|---|---|---|---|---|---|
189,600 | joomla/joomla-framework | src/Joomla/Cache/Apc.php | Apc.getMultiple | public function getMultiple($keys)
{
$items = array();
$success = false;
$values = apc_fetch($keys, $success);
if ($success && is_array($values))
{
foreach ($values as $key => $value)
{
// @todo - identify the value when a cache item is not found.
$items[$key] = new Item($key);
$items[$key... | php | public function getMultiple($keys)
{
$items = array();
$success = false;
$values = apc_fetch($keys, $success);
if ($success && is_array($values))
{
foreach ($values as $key => $value)
{
// @todo - identify the value when a cache item is not found.
$items[$key] = new Item($key);
$items[$key... | [
"public",
"function",
"getMultiple",
"(",
"$",
"keys",
")",
"{",
"$",
"items",
"=",
"array",
"(",
")",
";",
"$",
"success",
"=",
"false",
";",
"$",
"values",
"=",
"apc_fetch",
"(",
"$",
"keys",
",",
"$",
"success",
")",
";",
"if",
"(",
"$",
"succ... | Obtain multiple CacheItems by their unique keys.
@param array $keys A list of keys that can obtained in a single operation.
@return array An associative array of CacheItem objects keyed on the cache key.
@since 1.0 | [
"Obtain",
"multiple",
"CacheItems",
"by",
"their",
"unique",
"keys",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Cache/Apc.php#L83-L100 |
189,601 | joomla/joomla-framework | src/Joomla/Google/Data/Calendar.php | Calendar.getCalendar | public function getCalendar($calendarID)
{
if ($this->isAuthenticated())
{
$jdata = $this->query('https://www.googleapis.com/calendar/v3/users/me/calendarList/' . urlencode($calendarID));
if ($data = json_decode($jdata->body, true))
{
return $data;
}
else
{
throw new UnexpectedValueExcep... | php | public function getCalendar($calendarID)
{
if ($this->isAuthenticated())
{
$jdata = $this->query('https://www.googleapis.com/calendar/v3/users/me/calendarList/' . urlencode($calendarID));
if ($data = json_decode($jdata->body, true))
{
return $data;
}
else
{
throw new UnexpectedValueExcep... | [
"public",
"function",
"getCalendar",
"(",
"$",
"calendarID",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isAuthenticated",
"(",
")",
")",
"{",
"$",
"jdata",
"=",
"$",
"this",
"->",
"query",
"(",
"'https://www.googleapis.com/calendar/v3/users/me/calendarList/'",
"."... | Method to get a calendar's settings from Google
@param string $calendarID ID of calendar to get.
@return mixed Data from Google
@since 1.0
@throws UnexpectedValueException | [
"Method",
"to",
"get",
"a",
"calendar",
"s",
"settings",
"from",
"Google"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Data/Calendar.php#L82-L101 |
189,602 | joomla/joomla-framework | src/Joomla/Google/Data/Calendar.php | Calendar.addCalendar | public function addCalendar($calendarID, $options = array())
{
if ($this->isAuthenticated())
{
$options['id'] = $calendarID;
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendarList';
$jdata = $this->query($url, json_encode($options), array('Content-type' => 'application/json'), 'post');
i... | php | public function addCalendar($calendarID, $options = array())
{
if ($this->isAuthenticated())
{
$options['id'] = $calendarID;
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendarList';
$jdata = $this->query($url, json_encode($options), array('Content-type' => 'application/json'), 'post');
i... | [
"public",
"function",
"addCalendar",
"(",
"$",
"calendarID",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isAuthenticated",
"(",
")",
")",
"{",
"$",
"options",
"[",
"'id'",
"]",
"=",
"$",
"calendarID",
";",
... | Method to add a calendar to a user's Google Calendar list
@param string $calendarID New calendar ID
@param array $options New calendar settings
@return mixed Data from Google
@since 1.0
@throws UnexpectedValueException | [
"Method",
"to",
"add",
"a",
"calendar",
"to",
"a",
"user",
"s",
"Google",
"Calendar",
"list"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Data/Calendar.php#L114-L135 |
189,603 | joomla/joomla-framework | src/Joomla/Google/Data/Calendar.php | Calendar.clearCalendar | public function clearCalendar($calendarID)
{
if ($this->isAuthenticated())
{
$data = $this->query('https://www.googleapis.com/calendar/v3/users/me/calendars/' . urlencode($calendarID) . '/clear', null, null, 'post');
if ($data->body != '')
{
throw new UnexpectedValueException("Unexpected data receive... | php | public function clearCalendar($calendarID)
{
if ($this->isAuthenticated())
{
$data = $this->query('https://www.googleapis.com/calendar/v3/users/me/calendars/' . urlencode($calendarID) . '/clear', null, null, 'post');
if ($data->body != '')
{
throw new UnexpectedValueException("Unexpected data receive... | [
"public",
"function",
"clearCalendar",
"(",
"$",
"calendarID",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isAuthenticated",
"(",
")",
")",
"{",
"$",
"data",
"=",
"$",
"this",
"->",
"query",
"(",
"'https://www.googleapis.com/calendar/v3/users/me/calendars/'",
".",
... | Method to clear a Google Calendar
@param string $calendarID ID of calendar to clear
@return boolean Success or failure
@since 1.0
@throws UnexpectedValueException | [
"Method",
"to",
"clear",
"a",
"Google",
"Calendar"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Data/Calendar.php#L207-L224 |
189,604 | joomla/joomla-framework | src/Joomla/Google/Data/Calendar.php | Calendar.deleteEvent | public function deleteEvent($calendarID, $eventID)
{
if ($this->isAuthenticated())
{
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendars/' . urlencode($calendarID) . '/events/' . urlencode($eventID);
$data = $this->query($url, null, null, 'delete');
if ($data->body != '')
{
throw new... | php | public function deleteEvent($calendarID, $eventID)
{
if ($this->isAuthenticated())
{
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendars/' . urlencode($calendarID) . '/events/' . urlencode($eventID);
$data = $this->query($url, null, null, 'delete');
if ($data->body != '')
{
throw new... | [
"public",
"function",
"deleteEvent",
"(",
"$",
"calendarID",
",",
"$",
"eventID",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isAuthenticated",
"(",
")",
")",
"{",
"$",
"url",
"=",
"'https://www.googleapis.com/calendar/v3/users/me/calendars/'",
".",
"urlencode",
"(... | Method to delete an event from a Google Calendar
@param string $calendarID ID of calendar to delete from
@param string $eventID ID of event to delete.
@return boolean Success or failure.
@since 1.0
@throws UnexpectedValueException | [
"Method",
"to",
"delete",
"an",
"event",
"from",
"a",
"Google",
"Calendar"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Data/Calendar.php#L334-L352 |
189,605 | joomla/joomla-framework | src/Joomla/Google/Data/Calendar.php | Calendar.getEvent | public function getEvent($calendarID, $eventID, $options = array())
{
if ($this->isAuthenticated())
{
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendarList/';
$url .= urlencode($calendarID) . '/events/' . urlencode($eventID) . '?' . http_build_query($options);
$jdata = $this->query($url);
... | php | public function getEvent($calendarID, $eventID, $options = array())
{
if ($this->isAuthenticated())
{
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendarList/';
$url .= urlencode($calendarID) . '/events/' . urlencode($eventID) . '?' . http_build_query($options);
$jdata = $this->query($url);
... | [
"public",
"function",
"getEvent",
"(",
"$",
"calendarID",
",",
"$",
"eventID",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isAuthenticated",
"(",
")",
")",
"{",
"$",
"url",
"=",
"'https://www.googleapis.com/calen... | Method to get an event from a Google Calendar
@param string $calendarID ID of calendar
@param string $eventID ID of event to get
@param array $options Options to send to Google
@return mixed Data from Google.
@since 1.0
@throws UnexpectedValueException | [
"Method",
"to",
"get",
"an",
"event",
"from",
"a",
"Google",
"Calendar"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Data/Calendar.php#L366-L387 |
189,606 | joomla/joomla-framework | src/Joomla/Google/Data/Calendar.php | Calendar.listRecurrences | public function listRecurrences($calendarID, $eventID, $options = array(), $maxpages = 1)
{
if ($this->isAuthenticated())
{
$next = array_key_exists('nextPageToken', $options) ? $options['nextPage'] : null;
unset($options['nextPageToken']);
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendars... | php | public function listRecurrences($calendarID, $eventID, $options = array(), $maxpages = 1)
{
if ($this->isAuthenticated())
{
$next = array_key_exists('nextPageToken', $options) ? $options['nextPage'] : null;
unset($options['nextPageToken']);
$url = 'https://www.googleapis.com/calendar/v3/users/me/calendars... | [
"public",
"function",
"listRecurrences",
"(",
"$",
"calendarID",
",",
"$",
"eventID",
",",
"$",
"options",
"=",
"array",
"(",
")",
",",
"$",
"maxpages",
"=",
"1",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isAuthenticated",
"(",
")",
")",
"{",
"$",
"... | Method to retrieve a list of events on a Google calendar
@param string $calendarID Calendar ID
@param string $eventID ID of the event to change
@param array $options Search settings
@param integer $maxpages Minimum number of events to retrieve (more may be retrieved depending on page size)
... | [
"Method",
"to",
"retrieve",
"a",
"list",
"of",
"events",
"on",
"a",
"Google",
"calendar"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Data/Calendar.php#L512-L527 |
189,607 | joomla/joomla-framework | src/Joomla/Google/Data/Calendar.php | Calendar.moveEvent | public function moveEvent($calendarID, $eventID, $destID, $notify = false)
{
if ($this->isAuthenticated())
{
$url = 'https://www.googleapis.com/calendar/v3/calendars/' . urlencode($calendarID) . '/events/' . urlencode($eventID) . '/move';
$url .= '?destination=' . $destID . ($notify ? '&sendNotifications=tru... | php | public function moveEvent($calendarID, $eventID, $destID, $notify = false)
{
if ($this->isAuthenticated())
{
$url = 'https://www.googleapis.com/calendar/v3/calendars/' . urlencode($calendarID) . '/events/' . urlencode($eventID) . '/move';
$url .= '?destination=' . $destID . ($notify ? '&sendNotifications=tru... | [
"public",
"function",
"moveEvent",
"(",
"$",
"calendarID",
",",
"$",
"eventID",
",",
"$",
"destID",
",",
"$",
"notify",
"=",
"false",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"isAuthenticated",
"(",
")",
")",
"{",
"$",
"url",
"=",
"'https://www.googleap... | Method to move an event from one calendar to another
@param string $calendarID Calendar ID
@param string $eventID ID of the event to change
@param string $destID Calendar ID
@param boolean $notify Notify participants of changes
@return mixed Data from Google.
@since 1.0
@throws Une... | [
"Method",
"to",
"move",
"an",
"event",
"from",
"one",
"calendar",
"to",
"another"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Data/Calendar.php#L570-L591 |
189,608 | joomla/joomla-framework | src/Joomla/Twitter/Trends.php | Trends.getTrends | public function getTrends($id, $exclude = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('trends', 'place');
// Set the API path
$path = '/trends/place.json';
$data['id'] = $id;
// Check if exclude is specified
if ($exclude)
{
$data['exclude'] = $exclude;
}
// Send ... | php | public function getTrends($id, $exclude = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('trends', 'place');
// Set the API path
$path = '/trends/place.json';
$data['id'] = $id;
// Check if exclude is specified
if ($exclude)
{
$data['exclude'] = $exclude;
}
// Send ... | [
"public",
"function",
"getTrends",
"(",
"$",
"id",
",",
"$",
"exclude",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'trends'",
",",
"'place'",
")",
";",
"// Set the API path",
"$",
"path",
"=",
... | Method to get the top 10 trending topics for a specific WOEID, if trending information is available for it.
@param integer $id The Yahoo! Where On Earth ID of the location to return trending information for.
Global information is available by using 1 as the WOEID.
@param string $exclude Setting this equa... | [
"Method",
"to",
"get",
"the",
"top",
"10",
"trending",
"topics",
"for",
"a",
"specific",
"WOEID",
"if",
"trending",
"information",
"is",
"available",
"for",
"it",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Trends.php#L29-L47 |
189,609 | joomla/joomla-framework | src/Joomla/Twitter/Trends.php | Trends.getClosest | public function getClosest($lat = null, $long = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('trends', 'closest');
// Set the API path
$path = '/trends/closest.json';
$data = array();
// Check if lat is specified
if ($lat)
{
$data['lat'] = $lat;
}
// Check if long... | php | public function getClosest($lat = null, $long = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('trends', 'closest');
// Set the API path
$path = '/trends/closest.json';
$data = array();
// Check if lat is specified
if ($lat)
{
$data['lat'] = $lat;
}
// Check if long... | [
"public",
"function",
"getClosest",
"(",
"$",
"lat",
"=",
"null",
",",
"$",
"long",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'trends'",
",",
"'closest'",
")",
";",
"// Set the API path",
"$",... | Method to get the locations that Twitter has trending topic information for, closest to a specified location.
@param float $lat The latitude to search around.
@param float $long The longitude to search around.
@return array The decoded JSON response
@since 1.0 | [
"Method",
"to",
"get",
"the",
"locations",
"that",
"Twitter",
"has",
"trending",
"topic",
"information",
"for",
"closest",
"to",
"a",
"specified",
"location",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Trends.php#L78-L102 |
189,610 | joomla/joomla-framework | src/Joomla/Github/Package/Orgs/Teams.php | Teams.isMember | public function isMember($id, $user)
{
// Build the request path.
$path = '/teams/' . $id . '/members/' . $user;
$response = $this->client->get($this->fetchUrl($path));
switch ($response->code)
{
case 204 :
// Response if user is a member
return true;
break;
case 404 :
// Response if... | php | public function isMember($id, $user)
{
// Build the request path.
$path = '/teams/' . $id . '/members/' . $user;
$response = $this->client->get($this->fetchUrl($path));
switch ($response->code)
{
case 204 :
// Response if user is a member
return true;
break;
case 404 :
// Response if... | [
"public",
"function",
"isMember",
"(",
"$",
"id",
",",
"$",
"user",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/teams/'",
".",
"$",
"id",
".",
"'/members/'",
".",
"$",
"user",
";",
"$",
"response",
"=",
"$",
"this",
"->",
"client",
"->... | Get team member.
In order to get if a user is a member of a team, the authenticated user must be a member of the team.
@param integer $id The team id.
@param string $user The name of the user.
@throws \UnexpectedValueException
@since 1.0
@return object | [
"Get",
"team",
"member",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Orgs/Teams.php#L209-L232 |
189,611 | joomla/joomla-framework | src/Joomla/Github/Package/Orgs/Teams.php | Teams.addMember | public function addMember($id, $user)
{
// Build the request path.
$path = '/teams/' . $id . '/members/' . $user;
return $this->processResponse(
$this->client->put($this->fetchUrl($path), ''),
204
);
} | php | public function addMember($id, $user)
{
// Build the request path.
$path = '/teams/' . $id . '/members/' . $user;
return $this->processResponse(
$this->client->put($this->fetchUrl($path), ''),
204
);
} | [
"public",
"function",
"addMember",
"(",
"$",
"id",
",",
"$",
"user",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/teams/'",
".",
"$",
"id",
".",
"'/members/'",
".",
"$",
"user",
";",
"return",
"$",
"this",
"->",
"processResponse",
"(",
"$... | Add team member.
In order to add a user to a team, the authenticated user must have ‘admin’ permissions
to the team or be an owner of the org that the team is associated with.
@param integer $id The team id.
@param string $user The name of the user.
@since 1.0
@return object | [
"Add",
"team",
"member",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Orgs/Teams.php#L247-L256 |
189,612 | joomla/joomla-framework | src/Joomla/Github/Package/Orgs/Teams.php | Teams.addRepo | public function addRepo($id, $org, $repo)
{
// Build the request path.
$path = '/teams/' . $id . '/repos/' . $org . '/' . $repo;
return $this->processResponse(
$this->client->put($this->fetchUrl($path), ''),
204
);
} | php | public function addRepo($id, $org, $repo)
{
// Build the request path.
$path = '/teams/' . $id . '/repos/' . $org . '/' . $repo;
return $this->processResponse(
$this->client->put($this->fetchUrl($path), ''),
204
);
} | [
"public",
"function",
"addRepo",
"(",
"$",
"id",
",",
"$",
"org",
",",
"$",
"repo",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/teams/'",
".",
"$",
"id",
".",
"'/repos/'",
".",
"$",
"org",
".",
"'/'",
".",
"$",
"repo",
";",
"return",... | Add team repo.
In order to add a repo to a team, the authenticated user must be an owner of the
org that the team is associated with. Also, the repo must be owned by the organization,
or a direct form of a repo owned by the organization.
If you attempt to add a repo to a team that is not owned by the organization, yo... | [
"Add",
"team",
"repo",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Orgs/Teams.php#L357-L366 |
189,613 | joomla/joomla-framework | src/Joomla/Form/Field.php | Field.getId | protected function getId($fieldId, $fieldName)
{
$id = '';
// If there is a form control set for the attached form add it first.
if ($this->formControl)
{
$id .= $this->formControl;
}
// If the field is in a group add the group control to the field id.
if ($this->group)
{
// If we already have ... | php | protected function getId($fieldId, $fieldName)
{
$id = '';
// If there is a form control set for the attached form add it first.
if ($this->formControl)
{
$id .= $this->formControl;
}
// If the field is in a group add the group control to the field id.
if ($this->group)
{
// If we already have ... | [
"protected",
"function",
"getId",
"(",
"$",
"fieldId",
",",
"$",
"fieldName",
")",
"{",
"$",
"id",
"=",
"''",
";",
"// If there is a form control set for the attached form add it first.",
"if",
"(",
"$",
"this",
"->",
"formControl",
")",
"{",
"$",
"id",
".=",
... | Method to get the id used for the field input tag.
@param string $fieldId The field element id.
@param string $fieldName The field element name.
@return string The id to be used for the field input tag.
@since 1.0 | [
"Method",
"to",
"get",
"the",
"id",
"used",
"for",
"the",
"field",
"input",
"tag",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Form/Field.php#L423-L461 |
189,614 | joomla/joomla-framework | src/Joomla/Form/Field.php | Field.getName | protected function getName($fieldName)
{
$name = '';
// If there is a form control set for the attached form add it first.
if ($this->formControl)
{
$name .= $this->formControl;
}
// If the field is in a group add the group control to the field name.
if ($this->group)
{
// If we already have a ... | php | protected function getName($fieldName)
{
$name = '';
// If there is a form control set for the attached form add it first.
if ($this->formControl)
{
$name .= $this->formControl;
}
// If the field is in a group add the group control to the field name.
if ($this->group)
{
// If we already have a ... | [
"protected",
"function",
"getName",
"(",
"$",
"fieldName",
")",
"{",
"$",
"name",
"=",
"''",
";",
"// If there is a form control set for the attached form add it first.",
"if",
"(",
"$",
"this",
"->",
"formControl",
")",
"{",
"$",
"name",
".=",
"$",
"this",
"->"... | Method to get the name used for the field input tag.
@param string $fieldName The field element name.
@return string The name to be used for the field input tag.
@since 1.0 | [
"Method",
"to",
"get",
"the",
"name",
"used",
"for",
"the",
"field",
"input",
"tag",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Form/Field.php#L555-L606 |
189,615 | joomla/joomla-framework | src/Joomla/Form/Field.php | Field.getFieldName | protected function getFieldName($fieldName)
{
if ($fieldName)
{
return $fieldName;
}
else
{
self::$count = self::$count + 1;
return self::$generated_fieldname . self::$count;
}
} | php | protected function getFieldName($fieldName)
{
if ($fieldName)
{
return $fieldName;
}
else
{
self::$count = self::$count + 1;
return self::$generated_fieldname . self::$count;
}
} | [
"protected",
"function",
"getFieldName",
"(",
"$",
"fieldName",
")",
"{",
"if",
"(",
"$",
"fieldName",
")",
"{",
"return",
"$",
"fieldName",
";",
"}",
"else",
"{",
"self",
"::",
"$",
"count",
"=",
"self",
"::",
"$",
"count",
"+",
"1",
";",
"return",
... | Method to get the field name used.
@param string $fieldName The field element name.
@return string The field name
@since 1.0 | [
"Method",
"to",
"get",
"the",
"field",
"name",
"used",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Form/Field.php#L617-L629 |
189,616 | joomla/joomla-framework | src/Joomla/Twitter/Profile.php | Profile.updateProfile | public function updateProfile($name = null, $url = null, $location = null, $description = null, $entities = null, $skip_status = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('account', 'update_profile');
$data = array();
// Check if name is specified.
if ($name)
{
$data['na... | php | public function updateProfile($name = null, $url = null, $location = null, $description = null, $entities = null, $skip_status = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('account', 'update_profile');
$data = array();
// Check if name is specified.
if ($name)
{
$data['na... | [
"public",
"function",
"updateProfile",
"(",
"$",
"name",
"=",
"null",
",",
"$",
"url",
"=",
"null",
",",
"$",
"location",
"=",
"null",
",",
"$",
"description",
"=",
"null",
",",
"$",
"entities",
"=",
"null",
",",
"$",
"skip_status",
"=",
"null",
")",... | Method to et values that users are able to set under the "Account" tab of their settings page.
@param string $name Full name associated with the profile. Maximum of 20 characters.
@param string $url URL associated with the profile. Will be prepended with "http://" if not present. Maximum of 10... | [
"Method",
"to",
"et",
"values",
"that",
"users",
"are",
"able",
"to",
"set",
"under",
"the",
"Account",
"tab",
"of",
"their",
"settings",
"page",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Profile.php#L34-L82 |
189,617 | joomla/joomla-framework | src/Joomla/Google/Embed/Maps.php | Maps.deleteMarker | public function deleteMarker($index = null)
{
$markers = $this->listMarkers();
if ($index === null)
{
$index = count($markers) - 1;
}
if ($index >= count($markers) || $index < 0)
{
throw new OutOfBoundsException('Marker index out of bounds.');
}
$marker = $markers[$index];
unset($markers[$in... | php | public function deleteMarker($index = null)
{
$markers = $this->listMarkers();
if ($index === null)
{
$index = count($markers) - 1;
}
if ($index >= count($markers) || $index < 0)
{
throw new OutOfBoundsException('Marker index out of bounds.');
}
$marker = $markers[$index];
unset($markers[$in... | [
"public",
"function",
"deleteMarker",
"(",
"$",
"index",
"=",
"null",
")",
"{",
"$",
"markers",
"=",
"$",
"this",
"->",
"listMarkers",
"(",
")",
";",
"if",
"(",
"$",
"index",
"===",
"null",
")",
"{",
"$",
"index",
"=",
"count",
"(",
"$",
"markers",... | Delete a marker from the map
@param integer $index Index of marker to delete (defaults to last added marker)
@return array The latitude/longitude of the deleted marker
@since 1.0
@throws OutOfBoundsException | [
"Delete",
"a",
"marker",
"from",
"the",
"map"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Maps.php#L391-L411 |
189,618 | joomla/joomla-framework | src/Joomla/Google/Embed/Maps.php | Maps.getHeader | public function getHeader()
{
if (!$this->getOption('key'))
{
throw new UnexpectedValueException('A Google Maps API key is required.');
}
$zoom = $this->getZoom();
$center = $this->getCenter();
$maptype = $this->getMapType();
$id = $this->getMapID();
$scheme = $this->isSecure() ? 'https' : 'http';
... | php | public function getHeader()
{
if (!$this->getOption('key'))
{
throw new UnexpectedValueException('A Google Maps API key is required.');
}
$zoom = $this->getZoom();
$center = $this->getCenter();
$maptype = $this->getMapType();
$id = $this->getMapID();
$scheme = $this->isSecure() ? 'https' : 'http';
... | [
"public",
"function",
"getHeader",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"getOption",
"(",
"'key'",
")",
")",
"{",
"throw",
"new",
"UnexpectedValueException",
"(",
"'A Google Maps API key is required.'",
")",
";",
"}",
"$",
"zoom",
"=",
"$",
"t... | Get code to load Google Maps javascript
@return string Javascript code
@since 1.0
@throws UnexpectedValueException | [
"Get",
"code",
"to",
"load",
"Google",
"Maps",
"javascript"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Maps.php#L557-L641 |
189,619 | joomla/joomla-framework | src/Joomla/Google/Embed/Maps.php | Maps.getBody | public function getBody()
{
$id = $this->getMapID();
$class = $this->getMapClass();
$style = $this->getMapStyle();
$output = "<div id='{$id}'";
if (!empty($class))
{
$output .= " class='{$class}'";
}
if (!empty($style))
{
$output .= " style='{$style}'";
}
$output .= '></div>';
return... | php | public function getBody()
{
$id = $this->getMapID();
$class = $this->getMapClass();
$style = $this->getMapStyle();
$output = "<div id='{$id}'";
if (!empty($class))
{
$output .= " class='{$class}'";
}
if (!empty($style))
{
$output .= " style='{$style}'";
}
$output .= '></div>';
return... | [
"public",
"function",
"getBody",
"(",
")",
"{",
"$",
"id",
"=",
"$",
"this",
"->",
"getMapID",
"(",
")",
";",
"$",
"class",
"=",
"$",
"this",
"->",
"getMapClass",
"(",
")",
";",
"$",
"style",
"=",
"$",
"this",
"->",
"getMapStyle",
"(",
")",
";",
... | Method to retrieve the div that the map is loaded into
@return string The body
@since 1.0 | [
"Method",
"to",
"retrieve",
"the",
"div",
"that",
"the",
"map",
"is",
"loaded",
"into"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Maps.php#L650-L671 |
189,620 | dudapiotr/ZfTable | src/ZfTable/Cell.php | Cell.render | public function render($type = 'html')
{
$row = $this->getTable()->getRow()->getActualRow();
$value = '';
if (is_array($row) || $row instanceof \ArrayAccess) {
$value = (isset($row[$this->getHeader()->getName()])) ? $row[$this->getHeader()->getName()] : '';
} elseif (is... | php | public function render($type = 'html')
{
$row = $this->getTable()->getRow()->getActualRow();
$value = '';
if (is_array($row) || $row instanceof \ArrayAccess) {
$value = (isset($row[$this->getHeader()->getName()])) ? $row[$this->getHeader()->getName()] : '';
} elseif (is... | [
"public",
"function",
"render",
"(",
"$",
"type",
"=",
"'html'",
")",
"{",
"$",
"row",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getRow",
"(",
")",
"->",
"getActualRow",
"(",
")",
";",
"$",
"value",
"=",
"''",
";",
"if",
"(",
"is_array... | Rendering single cell
@return string | [
"Rendering",
"single",
"cell"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Cell.php#L82-L114 |
189,621 | joomla/joomla-framework | src/Joomla/String/String.php | String.increment | public static function increment($string, $style = 'default', $n = 0)
{
$styleSpec = isset(self::$incrementStyles[$style]) ? self::$incrementStyles[$style] : self::$incrementStyles['default'];
// Regular expression search and replace patterns.
if (is_array($styleSpec[0]))
{
$rxSearch = $styleSpec[0][0];
... | php | public static function increment($string, $style = 'default', $n = 0)
{
$styleSpec = isset(self::$incrementStyles[$style]) ? self::$incrementStyles[$style] : self::$incrementStyles['default'];
// Regular expression search and replace patterns.
if (is_array($styleSpec[0]))
{
$rxSearch = $styleSpec[0][0];
... | [
"public",
"static",
"function",
"increment",
"(",
"$",
"string",
",",
"$",
"style",
"=",
"'default'",
",",
"$",
"n",
"=",
"0",
")",
"{",
"$",
"styleSpec",
"=",
"isset",
"(",
"self",
"::",
"$",
"incrementStyles",
"[",
"$",
"style",
"]",
")",
"?",
"s... | Increments a trailing number in a string.
Used to easily create distinct labels when copying objects. The method has the following styles:
default: "Label" becomes "Label (2)"
dash: "Label" becomes "Label-2"
@param string $string The source string.
@param string $style The the style (default|dash).
@pa... | [
"Increments",
"a",
"trailing",
"number",
"in",
"a",
"string",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/String/String.php#L86-L125 |
189,622 | joomla/joomla-framework | src/Joomla/String/String.php | String.strpos | public static function strpos($str, $search, $offset = false)
{
if ($offset === false)
{
return utf8_strpos($str, $search);
}
else
{
return utf8_strpos($str, $search, $offset);
}
} | php | public static function strpos($str, $search, $offset = false)
{
if ($offset === false)
{
return utf8_strpos($str, $search);
}
else
{
return utf8_strpos($str, $search, $offset);
}
} | [
"public",
"static",
"function",
"strpos",
"(",
"$",
"str",
",",
"$",
"search",
",",
"$",
"offset",
"=",
"false",
")",
"{",
"if",
"(",
"$",
"offset",
"===",
"false",
")",
"{",
"return",
"utf8_strpos",
"(",
"$",
"str",
",",
"$",
"search",
")",
";",
... | UTF-8 aware alternative to strpos.
Find position of first occurrence of a string.
@param string $str String being examined
@param string $search String being searched for
@param integer $offset Optional, specifies the position from which the search should be performed
@return mixed Number of chara... | [
"UTF",
"-",
"8",
"aware",
"alternative",
"to",
"strpos",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/String/String.php#L171-L181 |
189,623 | dudapiotr/ZfTable | src/ZfTable/Render.php | Render.renderDataTableJson | public function renderDataTableJson()
{
$res = array();
$render = $this->getTable()->getRow()->renderRows('array');
$res['sEcho'] = $render;
$res['iTotalDisplayRecords'] = $this->getTable()->getSource()->getPaginator()->getTotalItemCount();
$res['aaData'] = $render;
... | php | public function renderDataTableJson()
{
$res = array();
$render = $this->getTable()->getRow()->renderRows('array');
$res['sEcho'] = $render;
$res['iTotalDisplayRecords'] = $this->getTable()->getSource()->getPaginator()->getTotalItemCount();
$res['aaData'] = $render;
... | [
"public",
"function",
"renderDataTableJson",
"(",
")",
"{",
"$",
"res",
"=",
"array",
"(",
")",
";",
"$",
"render",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getRow",
"(",
")",
"->",
"renderRows",
"(",
"'array'",
")",
";",
"$",
"res",
"[... | Rendering json for dataTable
@return string | [
"Rendering",
"json",
"for",
"dataTable"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Render.php#L57-L66 |
189,624 | dudapiotr/ZfTable | src/ZfTable/Render.php | Render.renderDataTableAjaxInit | public function renderDataTableAjaxInit()
{
$renderedHeads = $this->renderHead();
$view = new \Zend\View\Model\ViewModel();
$view->setTemplate('data-table-init');
$view->setVariable('headers', $renderedHeads);
$view->setVariable('attributes', $this->getTable()->getAttributes... | php | public function renderDataTableAjaxInit()
{
$renderedHeads = $this->renderHead();
$view = new \Zend\View\Model\ViewModel();
$view->setTemplate('data-table-init');
$view->setVariable('headers', $renderedHeads);
$view->setVariable('attributes', $this->getTable()->getAttributes... | [
"public",
"function",
"renderDataTableAjaxInit",
"(",
")",
"{",
"$",
"renderedHeads",
"=",
"$",
"this",
"->",
"renderHead",
"(",
")",
";",
"$",
"view",
"=",
"new",
"\\",
"Zend",
"\\",
"View",
"\\",
"Model",
"\\",
"ViewModel",
"(",
")",
";",
"$",
"view"... | Rendering init view for dataTable
@return string | [
"Rendering",
"init",
"view",
"for",
"dataTable"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Render.php#L88-L99 |
189,625 | dudapiotr/ZfTable | src/ZfTable/Render.php | Render.renderParamsWrap | public function renderParamsWrap()
{
$view = new \Zend\View\Model\ViewModel();
$view->setTemplate('default-params');
$view->setVariable('column', $this->getTable()->getParamAdapter()->getColumn());
$view->setVariable('itemCountPerPage', $this->getTable()->getParamAdapter()->getItemC... | php | public function renderParamsWrap()
{
$view = new \Zend\View\Model\ViewModel();
$view->setTemplate('default-params');
$view->setVariable('column', $this->getTable()->getParamAdapter()->getColumn());
$view->setVariable('itemCountPerPage', $this->getTable()->getParamAdapter()->getItemC... | [
"public",
"function",
"renderParamsWrap",
"(",
")",
"{",
"$",
"view",
"=",
"new",
"\\",
"Zend",
"\\",
"View",
"\\",
"Model",
"\\",
"ViewModel",
"(",
")",
";",
"$",
"view",
"->",
"setTemplate",
"(",
"'default-params'",
")",
";",
"$",
"view",
"->",
"setV... | Rendering params wrap to ajax communication
@return string | [
"Rendering",
"params",
"wrap",
"to",
"ajax",
"communication"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Render.php#L222-L235 |
189,626 | dudapiotr/ZfTable | src/ZfTable/Render.php | Render.initRenderer | protected function initRenderer()
{
$renderer = new PhpRenderer();
$plugins = $renderer->getHelperPluginManager();
$config = new \Zend\Form\View\HelperConfig;
$config->configureServiceManager($plugins);
$resolver = new Resolver\AggregateResolver();
$map = new Resol... | php | protected function initRenderer()
{
$renderer = new PhpRenderer();
$plugins = $renderer->getHelperPluginManager();
$config = new \Zend\Form\View\HelperConfig;
$config->configureServiceManager($plugins);
$resolver = new Resolver\AggregateResolver();
$map = new Resol... | [
"protected",
"function",
"initRenderer",
"(",
")",
"{",
"$",
"renderer",
"=",
"new",
"PhpRenderer",
"(",
")",
";",
"$",
"plugins",
"=",
"$",
"renderer",
"->",
"getHelperPluginManager",
"(",
")",
";",
"$",
"config",
"=",
"new",
"\\",
"Zend",
"\\",
"Form",... | Init renderer object | [
"Init",
"renderer",
"object"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Render.php#L240-L254 |
189,627 | joomla/joomla-framework | src/Joomla/Github/Package/Repositories/Forks.php | Forks.create | public function create($owner, $repo, $org = '')
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/forks';
if (strlen($org) > 0)
{
$data = json_encode(
array('org' => $org)
);
}
else
{
$data = json_encode(array());
}
// Send the request.
return $this->processR... | php | public function create($owner, $repo, $org = '')
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/forks';
if (strlen($org) > 0)
{
$data = json_encode(
array('org' => $org)
);
}
else
{
$data = json_encode(array());
}
// Send the request.
return $this->processR... | [
"public",
"function",
"create",
"(",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"org",
"=",
"''",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"owner",
".",
"'/'",
".",
"$",
"repo",
".",
"'/forks'",
";",
"if",
"(",
... | Method to fork a repository.
@param string $owner The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $org The organization to fork the repo into. By default it is forked to the current user.
@return object
@since 1.0
@throws \Domain... | [
"Method",
"to",
"fork",
"a",
"repository",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Repositories/Forks.php#L34-L52 |
189,628 | dudapiotr/ZfTable | src/ZfTable/Decorator/AbstractDecorator.php | AbstractDecorator.addCondition | public function addCondition($name, $options)
{
if ($this instanceof DataAccessInterface) {
$condition = ConditionFactory::factory($name, $options);
$condition->setDecorator($this);
$this->attachCondition($condition);
return $this;
}
} | php | public function addCondition($name, $options)
{
if ($this instanceof DataAccessInterface) {
$condition = ConditionFactory::factory($name, $options);
$condition->setDecorator($this);
$this->attachCondition($condition);
return $this;
}
} | [
"public",
"function",
"addCondition",
"(",
"$",
"name",
",",
"$",
"options",
")",
"{",
"if",
"(",
"$",
"this",
"instanceof",
"DataAccessInterface",
")",
"{",
"$",
"condition",
"=",
"ConditionFactory",
"::",
"factory",
"(",
"$",
"name",
",",
"$",
"options",... | Add new condition to decorator
@param string $name
@param array $options
@return $this|null | [
"Add",
"new",
"condition",
"to",
"decorator"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Decorator/AbstractDecorator.php#L47-L55 |
189,629 | dudapiotr/ZfTable | src/ZfTable/Decorator/AbstractDecorator.php | AbstractDecorator.validConditions | public function validConditions()
{
if (!count($this->conditions)) {
return true;
}
foreach ($this->conditions as $condition) {
if (!$condition->isValid()) {
return false;
}
}
return true;
} | php | public function validConditions()
{
if (!count($this->conditions)) {
return true;
}
foreach ($this->conditions as $condition) {
if (!$condition->isValid()) {
return false;
}
}
return true;
} | [
"public",
"function",
"validConditions",
"(",
")",
"{",
"if",
"(",
"!",
"count",
"(",
"$",
"this",
"->",
"conditions",
")",
")",
"{",
"return",
"true",
";",
"}",
"foreach",
"(",
"$",
"this",
"->",
"conditions",
"as",
"$",
"condition",
")",
"{",
"if",... | Check if all conditions are valid
@return boolean | [
"Check",
"if",
"all",
"conditions",
"are",
"valid"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Decorator/AbstractDecorator.php#L72-L85 |
189,630 | joomla/joomla-framework | src/Joomla/Http/Http.php | Http.post | public function post($url, $data, array $headers = null, $timeout = null)
{
return $this->makeTransportRequest('POST', $url, $data, $headers, $timeout);
} | php | public function post($url, $data, array $headers = null, $timeout = null)
{
return $this->makeTransportRequest('POST', $url, $data, $headers, $timeout);
} | [
"public",
"function",
"post",
"(",
"$",
"url",
",",
"$",
"data",
",",
"array",
"$",
"headers",
"=",
"null",
",",
"$",
"timeout",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"makeTransportRequest",
"(",
"'POST'",
",",
"$",
"url",
",",
"$",
"... | Method to send the POST command to the server.
@param string $url Path to the resource.
@param mixed $data Either an associative array or a string to be sent with the request.
@param array $headers An array of name-value pairs to include in the header of the request
@param integer $timeout ... | [
"Method",
"to",
"send",
"the",
"POST",
"command",
"to",
"the",
"server",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Http/Http.php#L138-L141 |
189,631 | joomla/joomla-framework | src/Joomla/Http/Http.php | Http.put | public function put($url, $data, array $headers = null, $timeout = null)
{
return $this->makeTransportRequest('PUT', $url, $data, $headers, $timeout);
} | php | public function put($url, $data, array $headers = null, $timeout = null)
{
return $this->makeTransportRequest('PUT', $url, $data, $headers, $timeout);
} | [
"public",
"function",
"put",
"(",
"$",
"url",
",",
"$",
"data",
",",
"array",
"$",
"headers",
"=",
"null",
",",
"$",
"timeout",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"makeTransportRequest",
"(",
"'PUT'",
",",
"$",
"url",
",",
"$",
"da... | Method to send the PUT command to the server.
@param string $url Path to the resource.
@param mixed $data Either an associative array or a string to be sent with the request.
@param array $headers An array of name-value pairs to include in the header of the request.
@param integer $timeout ... | [
"Method",
"to",
"send",
"the",
"PUT",
"command",
"to",
"the",
"server",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Http/Http.php#L155-L158 |
189,632 | joomla/joomla-framework | src/Joomla/Google/Embed/Analytics.php | Analytics.addCall | public function addCall($method, $params = array())
{
$call = array('name' => $method, 'params' => $params);
$calls = $this->listCalls();
$calls[] = $call;
$this->setOption('calls', $calls);
return $call;
} | php | public function addCall($method, $params = array())
{
$call = array('name' => $method, 'params' => $params);
$calls = $this->listCalls();
$calls[] = $call;
$this->setOption('calls', $calls);
return $call;
} | [
"public",
"function",
"addCall",
"(",
"$",
"method",
",",
"$",
"params",
"=",
"array",
"(",
")",
")",
"{",
"$",
"call",
"=",
"array",
"(",
"'name'",
"=>",
"$",
"method",
",",
"'params'",
"=>",
"$",
"params",
")",
";",
"$",
"calls",
"=",
"$",
"thi... | Add an analytics call
@param string $method The name of the function
@param array $params The parameters for the call
@return array The added call
@since 1.0 | [
"Add",
"an",
"analytics",
"call"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Analytics.php#L99-L108 |
189,633 | joomla/joomla-framework | src/Joomla/Google/Embed/Analytics.php | Analytics.createCall | public function createCall($method, $params = array())
{
$params = array_values($params);
if ($this->isAsync())
{
$output = "_gaq.push(['{$method}',";
$output .= substr(json_encode($params), 1, -1);
$output .= ']);';
}
else
{
$output = "pageTracker.{$method}(";
$output .= substr(json_encode... | php | public function createCall($method, $params = array())
{
$params = array_values($params);
if ($this->isAsync())
{
$output = "_gaq.push(['{$method}',";
$output .= substr(json_encode($params), 1, -1);
$output .= ']);';
}
else
{
$output = "pageTracker.{$method}(";
$output .= substr(json_encode... | [
"public",
"function",
"createCall",
"(",
"$",
"method",
",",
"$",
"params",
"=",
"array",
"(",
")",
")",
"{",
"$",
"params",
"=",
"array_values",
"(",
"$",
"params",
")",
";",
"if",
"(",
"$",
"this",
"->",
"isAsync",
"(",
")",
")",
"{",
"$",
"out... | Create a javascript function from the call parameters
@param string $method The name of the function
@param array $params The parameters for the call
@return string The created call
@since 1.0 | [
"Create",
"a",
"javascript",
"function",
"from",
"the",
"call",
"parameters"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Analytics.php#L158-L176 |
189,634 | joomla/joomla-framework | src/Joomla/Google/Embed/Analytics.php | Analytics.addCustomVar | public function addCustomVar($slot, $name, $value, $scope = 3)
{
return $this->addCall('_setCustomVar', array($slot, $name, $value, $scope));
} | php | public function addCustomVar($slot, $name, $value, $scope = 3)
{
return $this->addCall('_setCustomVar', array($slot, $name, $value, $scope));
} | [
"public",
"function",
"addCustomVar",
"(",
"$",
"slot",
",",
"$",
"name",
",",
"$",
"value",
",",
"$",
"scope",
"=",
"3",
")",
"{",
"return",
"$",
"this",
"->",
"addCall",
"(",
"'_setCustomVar'",
",",
"array",
"(",
"$",
"slot",
",",
"$",
"name",
",... | Add a custom variable to the analytics
@param integer $slot The slot to store the variable in (1-5)
@param string $name The variable name
@param string $value The variable value
@param integer $scope The scope of the variable (1: visitor level, 2: session level, 3: page level)
@return array The ... | [
"Add",
"a",
"custom",
"variable",
"to",
"the",
"analytics"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Analytics.php#L190-L193 |
189,635 | joomla/joomla-framework | src/Joomla/Google/Embed/Analytics.php | Analytics.createCustomVar | public function createCustomVar($slot, $name, $value, $scope = 3)
{
return $this->createCall('_setCustomVar', array($slot, $name, $value, $scope));
} | php | public function createCustomVar($slot, $name, $value, $scope = 3)
{
return $this->createCall('_setCustomVar', array($slot, $name, $value, $scope));
} | [
"public",
"function",
"createCustomVar",
"(",
"$",
"slot",
",",
"$",
"name",
",",
"$",
"value",
",",
"$",
"scope",
"=",
"3",
")",
"{",
"return",
"$",
"this",
"->",
"createCall",
"(",
"'_setCustomVar'",
",",
"array",
"(",
"$",
"slot",
",",
"$",
"name"... | Get the code to create a custom analytics variable
@param integer $slot The slot to store the variable in (1-5)
@param string $name The variable name
@param string $value The variable value
@param integer $scope The scope of the variable (1: visitor level, 2: session level, 3: page level)
@return ... | [
"Get",
"the",
"code",
"to",
"create",
"a",
"custom",
"analytics",
"variable"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Analytics.php#L207-L210 |
189,636 | joomla/joomla-framework | src/Joomla/Google/Embed/Analytics.php | Analytics.addEvent | public function addEvent($category, $action, $label = null, $value = null, $noninteract = false)
{
return $this->addCall('_trackEvent', array($category, $action, $label, $value, $noninteract));
} | php | public function addEvent($category, $action, $label = null, $value = null, $noninteract = false)
{
return $this->addCall('_trackEvent', array($category, $action, $label, $value, $noninteract));
} | [
"public",
"function",
"addEvent",
"(",
"$",
"category",
",",
"$",
"action",
",",
"$",
"label",
"=",
"null",
",",
"$",
"value",
"=",
"null",
",",
"$",
"noninteract",
"=",
"false",
")",
"{",
"return",
"$",
"this",
"->",
"addCall",
"(",
"'_trackEvent'",
... | Track an analytics event
@param string $category The general event category
@param string $action The event action
@param string $label The event description
@param string $value The value of the event
@param boolean $noninteract Don't allow this event to impact bounce stati... | [
"Track",
"an",
"analytics",
"event"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Analytics.php#L225-L228 |
189,637 | joomla/joomla-framework | src/Joomla/Google/Embed/Analytics.php | Analytics.createEvent | public function createEvent($category, $action, $label = null, $value = null, $noninteract = false)
{
return $this->createCall('_trackEvent', array($category, $action, $label, $value, $noninteract));
} | php | public function createEvent($category, $action, $label = null, $value = null, $noninteract = false)
{
return $this->createCall('_trackEvent', array($category, $action, $label, $value, $noninteract));
} | [
"public",
"function",
"createEvent",
"(",
"$",
"category",
",",
"$",
"action",
",",
"$",
"label",
"=",
"null",
",",
"$",
"value",
"=",
"null",
",",
"$",
"noninteract",
"=",
"false",
")",
"{",
"return",
"$",
"this",
"->",
"createCall",
"(",
"'_trackEven... | Get the code to track an analytics event
@param string $category The general event category
@param string $action The event action
@param string $label The event description
@param string $value The value of the event
@param boolean $noninteract Don't allow this event to imp... | [
"Get",
"the",
"code",
"to",
"track",
"an",
"analytics",
"event"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Analytics.php#L243-L246 |
189,638 | joomla/joomla-framework | src/Joomla/Google/Embed/Analytics.php | Analytics.getHeader | public function getHeader()
{
if (!$this->isAsync())
{
// Synchronous code is included only in the body
return '';
}
if (!$this->getOption('code'))
{
throw new UnexpectedValueException('A Google Analytics tracking code is required.');
}
$code = $this->getOption('code');
$output = '<script t... | php | public function getHeader()
{
if (!$this->isAsync())
{
// Synchronous code is included only in the body
return '';
}
if (!$this->getOption('code'))
{
throw new UnexpectedValueException('A Google Analytics tracking code is required.');
}
$code = $this->getOption('code');
$output = '<script t... | [
"public",
"function",
"getHeader",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"isAsync",
"(",
")",
")",
"{",
"// Synchronous code is included only in the body",
"return",
"''",
";",
"}",
"if",
"(",
"!",
"$",
"this",
"->",
"getOption",
"(",
"'code'",... | Get code to load Google Analytics javascript
@return string Javascript code
@since 1.0
@throws UnexpectedValueException | [
"Get",
"code",
"to",
"load",
"Google",
"Analytics",
"javascript"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Analytics.php#L256-L284 |
189,639 | joomla/joomla-framework | src/Joomla/Google/Embed/Analytics.php | Analytics.getBody | public function getBody()
{
if (!$this->getOption('code'))
{
throw new UnexpectedValueException('A Google Analytics tracking code is required.');
}
$prefix = $this->isSecure() ? 'https://ssl' : 'http://www';
$code = $this->getOption('code');
if ($this->isAsync())
{
$output = '<script type="text/j... | php | public function getBody()
{
if (!$this->getOption('code'))
{
throw new UnexpectedValueException('A Google Analytics tracking code is required.');
}
$prefix = $this->isSecure() ? 'https://ssl' : 'http://www';
$code = $this->getOption('code');
if ($this->isAsync())
{
$output = '<script type="text/j... | [
"public",
"function",
"getBody",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"getOption",
"(",
"'code'",
")",
")",
"{",
"throw",
"new",
"UnexpectedValueException",
"(",
"'A Google Analytics tracking code is required.'",
")",
";",
"}",
"$",
"prefix",
"=",... | Google Analytics only needs to be included in the header
@return null
@since 1.0
@throws UnexpectedValueException | [
"Google",
"Analytics",
"only",
"needs",
"to",
"be",
"included",
"in",
"the",
"header"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Embed/Analytics.php#L294-L333 |
189,640 | dudapiotr/ZfTable | src/ZfTable/Example/TableExample/Doctrine.php | Doctrine.initFilters | protected function initFilters($query)
{
if ($value = $this->getParamAdapter()->getValueOfFilter('name')) {
$query->where($query->expr()->like('q.name', '?1'))->setParameter('1', '%' . $value . '%');
}
if ($value = $this->getParamAdapter()->getValueOfFilter('surname')) {
... | php | protected function initFilters($query)
{
if ($value = $this->getParamAdapter()->getValueOfFilter('name')) {
$query->where($query->expr()->like('q.name', '?1'))->setParameter('1', '%' . $value . '%');
}
if ($value = $this->getParamAdapter()->getValueOfFilter('surname')) {
... | [
"protected",
"function",
"initFilters",
"(",
"$",
"query",
")",
"{",
"if",
"(",
"$",
"value",
"=",
"$",
"this",
"->",
"getParamAdapter",
"(",
")",
"->",
"getValueOfFilter",
"(",
"'name'",
")",
")",
"{",
"$",
"query",
"->",
"where",
"(",
"$",
"query",
... | The filters could also be done with a parametrised query | [
"The",
"filters",
"could",
"also",
"be",
"done",
"with",
"a",
"parametrised",
"query"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Example/TableExample/Doctrine.php#L65-L94 |
189,641 | joomla/joomla-framework | src/Joomla/Github/Package/Authorization.php | Authorization.getRateLimit | public function getRateLimit()
{
// Build the request path.
$path = '/rate_limit';
// Send the request.
$response = $this->client->get($this->fetchUrl($path));
// Validate the response code.
if ($response->code != 200)
{
if ($response->code == 404)
{
// Unlimited rate for Github Enterprise si... | php | public function getRateLimit()
{
// Build the request path.
$path = '/rate_limit';
// Send the request.
$response = $this->client->get($this->fetchUrl($path));
// Validate the response code.
if ($response->code != 200)
{
if ($response->code == 404)
{
// Unlimited rate for Github Enterprise si... | [
"public",
"function",
"getRateLimit",
"(",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/rate_limit'",
";",
"// Send the request.",
"$",
"response",
"=",
"$",
"this",
"->",
"client",
"->",
"get",
"(",
"$",
"this",
"->",
"fetchUrl",
"(",
"$",
"... | Method to get the rate limit for the authenticated user.
@return object Returns an object with the properties of `limit` and `remaining`. If there is no limit, the
`limit` property will be false.
@since 1.0
@throws \DomainException | [
"Method",
"to",
"get",
"the",
"rate",
"limit",
"for",
"the",
"authenticated",
"user",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Authorization.php#L229-L252 |
189,642 | joomla/joomla-framework | src/Joomla/Google/Data/Plus/Comments.php | Comments.listComments | public function listComments($activityId, $fields = null, $max = 20, $order = null, $token = null, $alt = null)
{
if ($this->isAuthenticated())
{
$url = $this->getOption('api.url') . 'activities/' . $activityId . '/comments';
// Check if fields is specified.
if ($fields)
{
$url .= '?fields=' . $fi... | php | public function listComments($activityId, $fields = null, $max = 20, $order = null, $token = null, $alt = null)
{
if ($this->isAuthenticated())
{
$url = $this->getOption('api.url') . 'activities/' . $activityId . '/comments';
// Check if fields is specified.
if ($fields)
{
$url .= '?fields=' . $fi... | [
"public",
"function",
"listComments",
"(",
"$",
"activityId",
",",
"$",
"fields",
"=",
"null",
",",
"$",
"max",
"=",
"20",
",",
"$",
"order",
"=",
"null",
",",
"$",
"token",
"=",
"null",
",",
"$",
"alt",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"... | List all of the comments for an activity.
@param string $activityId The ID of the activity to get comments for.
@param string $fields Used to specify the fields you want returned.
@param integer $max The maximum number of people to include in the response, used for paging.
@param string $o... | [
"List",
"all",
"of",
"the",
"comments",
"for",
"an",
"activity",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Google/Data/Plus/Comments.php#L56-L104 |
189,643 | joomla/joomla-framework | src/Joomla/Filesystem/Helper.php | Helper.ftpChmod | public static function ftpChmod($url, $mode)
{
$sch = parse_url($url, PHP_URL_SCHEME);
if (($sch != 'ftp') && ($sch != 'ftps'))
{
return false;
}
$server = parse_url($url, PHP_URL_HOST);
$port = parse_url($url, PHP_URL_PORT);
$path = parse_url($url, PHP_URL_PATH);
$user = parse_url($url, PHP_URL_U... | php | public static function ftpChmod($url, $mode)
{
$sch = parse_url($url, PHP_URL_SCHEME);
if (($sch != 'ftp') && ($sch != 'ftps'))
{
return false;
}
$server = parse_url($url, PHP_URL_HOST);
$port = parse_url($url, PHP_URL_PORT);
$path = parse_url($url, PHP_URL_PATH);
$user = parse_url($url, PHP_URL_U... | [
"public",
"static",
"function",
"ftpChmod",
"(",
"$",
"url",
",",
"$",
"mode",
")",
"{",
"$",
"sch",
"=",
"parse_url",
"(",
"$",
"url",
",",
"PHP_URL_SCHEME",
")",
";",
"if",
"(",
"(",
"$",
"sch",
"!=",
"'ftp'",
")",
"&&",
"(",
"$",
"sch",
"!=",
... | Quick FTP chmod
@param string $url Link identifier
@param integer $mode The new permissions, given as an octal value.
@return mixed
@see http://www.php.net/manual/en/function.ftp-chmod.php
@since 1.0 | [
"Quick",
"FTP",
"chmod"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Filesystem/Helper.php#L125-L187 |
189,644 | joomla/joomla-framework | src/Joomla/Filesystem/Helper.php | Helper.getJStreams | public static function getJStreams()
{
static $streams = array();
if (!$streams)
{
$files = new \DirectoryIterator(__DIR__ . '/Stream');
/* @var $file \DirectoryIterator */
foreach ($files as $file)
{
// Only load for php files.
if (!$file->isFile() || $file->getExtension() != 'php')
... | php | public static function getJStreams()
{
static $streams = array();
if (!$streams)
{
$files = new \DirectoryIterator(__DIR__ . '/Stream');
/* @var $file \DirectoryIterator */
foreach ($files as $file)
{
// Only load for php files.
if (!$file->isFile() || $file->getExtension() != 'php')
... | [
"public",
"static",
"function",
"getJStreams",
"(",
")",
"{",
"static",
"$",
"streams",
"=",
"array",
"(",
")",
";",
"if",
"(",
"!",
"$",
"streams",
")",
"{",
"$",
"files",
"=",
"new",
"\\",
"DirectoryIterator",
"(",
"__DIR__",
".",
"'/Stream'",
")",
... | Returns a list of J! streams
@return array
@since 1.0 | [
"Returns",
"a",
"list",
"of",
"J!",
"streams"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Filesystem/Helper.php#L258-L280 |
189,645 | joomla/joomla-framework | src/Joomla/Twitter/Search.php | Search.createSavedSearch | public function createSavedSearch($query)
{
// Set the API path
$path = '/saved_searches/create.json';
// Set POST request data
$data['query'] = rawurlencode($query);
// Send the request.
return $this->sendRequest($path, 'POST', $data);
} | php | public function createSavedSearch($query)
{
// Set the API path
$path = '/saved_searches/create.json';
// Set POST request data
$data['query'] = rawurlencode($query);
// Send the request.
return $this->sendRequest($path, 'POST', $data);
} | [
"public",
"function",
"createSavedSearch",
"(",
"$",
"query",
")",
"{",
"// Set the API path",
"$",
"path",
"=",
"'/saved_searches/create.json'",
";",
"// Set POST request data",
"$",
"data",
"[",
"'query'",
"]",
"=",
"rawurlencode",
"(",
"$",
"query",
")",
";",
... | Method to create a new saved search for the authenticated user.
@param string $query The query of the search the user would like to save.
@return array The decoded JSON response
@since 1.0 | [
"Method",
"to",
"create",
"a",
"new",
"saved",
"search",
"for",
"the",
"authenticated",
"user",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Search.php#L165-L175 |
189,646 | joomla/joomla-framework | src/Joomla/Github/Package/Zen.php | Zen.get | public function get()
{
$response = $this->client->get($this->fetchUrl('/zen'));
if (200 != $response->code)
{
throw new \RuntimeException('Can\'t get a Zen');
}
return $response->body;
} | php | public function get()
{
$response = $this->client->get($this->fetchUrl('/zen'));
if (200 != $response->code)
{
throw new \RuntimeException('Can\'t get a Zen');
}
return $response->body;
} | [
"public",
"function",
"get",
"(",
")",
"{",
"$",
"response",
"=",
"$",
"this",
"->",
"client",
"->",
"get",
"(",
"$",
"this",
"->",
"fetchUrl",
"(",
"'/zen'",
")",
")",
";",
"if",
"(",
"200",
"!=",
"$",
"response",
"->",
"code",
")",
"{",
"throw"... | Get a random response about one of our design philosophies.
@throws \RuntimeException
@return string | [
"Get",
"a",
"random",
"response",
"about",
"one",
"of",
"our",
"design",
"philosophies",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Zen.php#L29-L39 |
189,647 | joomla/joomla-framework | src/Joomla/Registry/Registry.php | Registry.asArray | protected function asArray($data)
{
$array = array();
if (is_object($data))
{
$data = get_object_vars($data);
}
foreach ($data as $k => $v)
{
if (is_object($v) || is_array($v))
{
$array[$k] = $this->asArray($v);
}
else
{
$array[$k] = $v;
}
}
return $array;
} | php | protected function asArray($data)
{
$array = array();
if (is_object($data))
{
$data = get_object_vars($data);
}
foreach ($data as $k => $v)
{
if (is_object($v) || is_array($v))
{
$array[$k] = $this->asArray($v);
}
else
{
$array[$k] = $v;
}
}
return $array;
} | [
"protected",
"function",
"asArray",
"(",
"$",
"data",
")",
"{",
"$",
"array",
"=",
"array",
"(",
")",
";",
"if",
"(",
"is_object",
"(",
"$",
"data",
")",
")",
"{",
"$",
"data",
"=",
"get_object_vars",
"(",
"$",
"data",
")",
";",
"}",
"foreach",
"... | Method to recursively convert an object of data to an array.
@param object $data An object of data to return as an array.
@return array Array representation of the input object.
@since 1.0 | [
"Method",
"to",
"recursively",
"convert",
"an",
"object",
"of",
"data",
"to",
"an",
"array",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Registry/Registry.php#L515-L537 |
189,648 | joomla/joomla-framework | src/Joomla/Linkedin/Companies.php | Companies.search | public function search($fields = null, $keywords = null, $hq = false, $facets = null, $facet = null, $start = 0, $count = 0, $sort = null)
{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/company-search';
... | php | public function search($fields = null, $keywords = null, $hq = false, $facets = null, $facet = null, $start = 0, $count = 0, $sort = null)
{
$token = $this->oauth->getToken();
// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
);
// Set the API base
$base = '/v1/company-search';
... | [
"public",
"function",
"search",
"(",
"$",
"fields",
"=",
"null",
",",
"$",
"keywords",
"=",
"null",
",",
"$",
"hq",
"=",
"false",
",",
"$",
"facets",
"=",
"null",
",",
"$",
"facet",
"=",
"null",
",",
"$",
"start",
"=",
"0",
",",
"$",
"count",
"... | Method to search across company pages.
@param string $fields Request fields beyond the default ones.
@param string $keywords Members who have all the keywords anywhere in their profile.
@param boolean $hq Matching companies by the headquarters location. When this is set to "true" and a location f... | [
"Method",
"to",
"search",
"across",
"company",
"pages",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Linkedin/Companies.php#L159-L264 |
189,649 | joomla/joomla-framework | src/Joomla/Github/Package/Issues/Labels.php | Labels.get | public function get($user, $repo, $name)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/labels/' . $name;
// Send the request.
return $this->processResponse(
$response = $this->client->get($this->fetchUrl($path))
);
} | php | public function get($user, $repo, $name)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/labels/' . $name;
// Send the request.
return $this->processResponse(
$response = $this->client->get($this->fetchUrl($path))
);
} | [
"public",
"function",
"get",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"name",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"user",
".",
"'/'",
".",
"$",
"repo",
".",
"'/labels/'",
".",
"$",
"name",
";",
"// Se... | Method to get a specific label on a repo.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $name The label name to get.
@return object
@since 1.0 | [
"Method",
"to",
"get",
"a",
"specific",
"label",
"on",
"a",
"repo",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues/Labels.php#L54-L63 |
189,650 | joomla/joomla-framework | src/Joomla/Github/Package/Issues/Labels.php | Labels.create | public function create($owner, $repo, $name, $color)
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/labels';
// Build the request data.
$data = json_encode(
array(
'name' => $name,
'color' => $color
)
);
// Send the request.
$response = $this->client->post($thi... | php | public function create($owner, $repo, $name, $color)
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/labels';
// Build the request data.
$data = json_encode(
array(
'name' => $name,
'color' => $color
)
);
// Send the request.
$response = $this->client->post($thi... | [
"public",
"function",
"create",
"(",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"name",
",",
"$",
"color",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"owner",
".",
"'/'",
".",
"$",
"repo",
".",
"'/labels'",
";",
"... | Method to create a label on a repo.
@param string $owner The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $name The label name.
@param string $color The label color.
@return object
@since 1.0
@throws \DomainException | [
"Method",
"to",
"create",
"a",
"label",
"on",
"a",
"repo",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues/Labels.php#L78-L103 |
189,651 | joomla/joomla-framework | src/Joomla/Github/Package/Issues/Labels.php | Labels.add | public function add($owner, $repo, $number, array $labels)
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';
// Send the request.
return $this->processResponse(
$this->client->post($this->fetchUrl($path), json_encode($labels))
);
} | php | public function add($owner, $repo, $number, array $labels)
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';
// Send the request.
return $this->processResponse(
$this->client->post($this->fetchUrl($path), json_encode($labels))
);
} | [
"public",
"function",
"add",
"(",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"number",
",",
"array",
"$",
"labels",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"owner",
".",
"'/'",
".",
"$",
"repo",
".",
"'/issues/'"... | Add labels to an issue.
@param string $owner The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $number The issue number.
@param array $labels An array of labels to add.
@return object
@since 1.0 | [
"Add",
"labels",
"to",
"an",
"issue",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues/Labels.php#L194-L203 |
189,652 | joomla/joomla-framework | src/Joomla/Github/Package/Issues/Labels.php | Labels.replace | public function replace($owner, $repo, $number, array $labels)
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';
// Send the request.
return $this->processResponse(
$this->client->put($this->fetchUrl($path), json_encode($labels))
);
} | php | public function replace($owner, $repo, $number, array $labels)
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/issues/' . $number . '/labels';
// Send the request.
return $this->processResponse(
$this->client->put($this->fetchUrl($path), json_encode($labels))
);
} | [
"public",
"function",
"replace",
"(",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"number",
",",
"array",
"$",
"labels",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"owner",
".",
"'/'",
".",
"$",
"repo",
".",
"'/issue... | Replace all labels for an issue.
Sending an empty array ([]) will remove all Labels from the Issue.
@param string $owner The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $number The issue number.
@param array $labels New labels
@... | [
"Replace",
"all",
"labels",
"for",
"an",
"issue",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues/Labels.php#L242-L251 |
189,653 | joomla/joomla-framework | src/Joomla/Github/Package/Users/Followers.php | Followers.check | public function check($user)
{
// Build the request path.
$path = '/user/following/' . $user;
$response = $this->client->get($this->fetchUrl($path));
switch ($response->code)
{
case '204' :
// You are following this user
return true;
break;
case '404' :
// You are not following this ... | php | public function check($user)
{
// Build the request path.
$path = '/user/following/' . $user;
$response = $this->client->get($this->fetchUrl($path));
switch ($response->code)
{
case '204' :
// You are following this user
return true;
break;
case '404' :
// You are not following this ... | [
"public",
"function",
"check",
"(",
"$",
"user",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/user/following/'",
".",
"$",
"user",
";",
"$",
"response",
"=",
"$",
"this",
"->",
"client",
"->",
"get",
"(",
"$",
"this",
"->",
"fetchUrl",
"(... | Check if you are following a user.
@param string $user The name of the user.
@throws \UnexpectedValueException
@since 1.0
@return boolean | [
"Check",
"if",
"you",
"are",
"following",
"a",
"user",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Users/Followers.php#L74-L97 |
189,654 | joomla/joomla-framework | src/Joomla/Github/Package/Users/Followers.php | Followers.follow | public function follow($user)
{
// Build the request path.
$path = '/user/following/' . $user;
return $this->processResponse(
$this->client->put($this->fetchUrl($path), ''),
204
);
} | php | public function follow($user)
{
// Build the request path.
$path = '/user/following/' . $user;
return $this->processResponse(
$this->client->put($this->fetchUrl($path), ''),
204
);
} | [
"public",
"function",
"follow",
"(",
"$",
"user",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/user/following/'",
".",
"$",
"user",
";",
"return",
"$",
"this",
"->",
"processResponse",
"(",
"$",
"this",
"->",
"client",
"->",
"put",
"(",
"$"... | Follow a user.
Following a user requires the user to be logged in and authenticated with
basic auth or OAuth with the user:follow scope.
@param string $user The name of the user.
@since 1.0
@return object | [
"Follow",
"a",
"user",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Users/Followers.php#L111-L120 |
189,655 | joomla/joomla-framework | src/Joomla/Github/Package/Users/Followers.php | Followers.unfollow | public function unfollow($user)
{
// Build the request path.
$path = '/user/following/' . $user;
return $this->processResponse(
$this->client->delete($this->fetchUrl($path)),
204
);
} | php | public function unfollow($user)
{
// Build the request path.
$path = '/user/following/' . $user;
return $this->processResponse(
$this->client->delete($this->fetchUrl($path)),
204
);
} | [
"public",
"function",
"unfollow",
"(",
"$",
"user",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/user/following/'",
".",
"$",
"user",
";",
"return",
"$",
"this",
"->",
"processResponse",
"(",
"$",
"this",
"->",
"client",
"->",
"delete",
"(",
... | Unfollow a user.
Unfollowing a user requires the user to be logged in and authenticated with
basic auth or OAuth with the user:follow scope.
@param string $user The name of the user.
@since 1.0
@return object | [
"Unfollow",
"a",
"user",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Users/Followers.php#L134-L143 |
189,656 | joomla/joomla-framework | src/Joomla/Github/Package/Pulls/Comments.php | Comments.create | public function create($user, $repo, $pullId, $body, $commitId, $filePath, $position)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/pulls/' . (int) $pullId . '/comments';
// Build the request data.
$data = json_encode(
array(
'body' => $body,
'commit_id' => $commitId,
... | php | public function create($user, $repo, $pullId, $body, $commitId, $filePath, $position)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/pulls/' . (int) $pullId . '/comments';
// Build the request data.
$data = json_encode(
array(
'body' => $body,
'commit_id' => $commitId,
... | [
"public",
"function",
"create",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"pullId",
",",
"$",
"body",
",",
"$",
"commitId",
",",
"$",
"filePath",
",",
"$",
"position",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",... | Method to create a comment on a pull request.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param integer $pullId The pull request number.
@param string $body The comment body text.
@param string $commitI... | [
"Method",
"to",
"create",
"a",
"comment",
"on",
"a",
"pull",
"request",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Pulls/Comments.php#L37-L57 |
189,657 | joomla/joomla-framework | src/Joomla/Github/Package/Pulls/Comments.php | Comments.createReply | public function createReply($user, $repo, $pullId, $body, $inReplyTo)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/pulls/' . (int) $pullId . '/comments';
// Build the request data.
$data = json_encode(
array(
'body' => $body,
'in_reply_to' => (int) $inReplyTo
)
);
... | php | public function createReply($user, $repo, $pullId, $body, $inReplyTo)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/pulls/' . (int) $pullId . '/comments';
// Build the request data.
$data = json_encode(
array(
'body' => $body,
'in_reply_to' => (int) $inReplyTo
)
);
... | [
"public",
"function",
"createReply",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"pullId",
",",
"$",
"body",
",",
"$",
"inReplyTo",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"user",
".",
"'/'",
".",
"$",
"repo",... | Method to create a comment in reply to another comment.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param integer $pullId The pull request number.
@param string $body The comment body text.
@param int... | [
"Method",
"to",
"create",
"a",
"comment",
"in",
"reply",
"to",
"another",
"comment",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Pulls/Comments.php#L72-L90 |
189,658 | joomla/joomla-framework | src/Joomla/Facebook/Object.php | Object.get | public function get($object)
{
if ($this->oauth != null)
{
if ($this->oauth->isAuthenticated())
{
$response = $this->oauth->query($this->fetchUrl($object));
return json_decode($response->body);
}
else
{
return false;
}
}
// Send the request.
return $this->sendRequest($object);... | php | public function get($object)
{
if ($this->oauth != null)
{
if ($this->oauth->isAuthenticated())
{
$response = $this->oauth->query($this->fetchUrl($object));
return json_decode($response->body);
}
else
{
return false;
}
}
// Send the request.
return $this->sendRequest($object);... | [
"public",
"function",
"get",
"(",
"$",
"object",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"oauth",
"!=",
"null",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"oauth",
"->",
"isAuthenticated",
"(",
")",
")",
"{",
"$",
"response",
"=",
"$",
"this",
"->",... | Method to get an object.
@param string $object The object id.
@return mixed The decoded JSON response or false if the client is not authenticated.
@since 1.0 | [
"Method",
"to",
"get",
"an",
"object",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Facebook/Object.php#L140-L158 |
189,659 | joomla/joomla-framework | src/Joomla/Facebook/Object.php | Object.getConnection | public function getConnection($object, $connection = null, $extra_fields = '', $limit = 0, $offset = 0, $until = null, $since = null)
{
$path = $object . '/' . $connection . $extra_fields;
if ($this->oauth != null)
{
if ($this->oauth->isAuthenticated())
{
$response = $this->oauth->query($this->fetchUr... | php | public function getConnection($object, $connection = null, $extra_fields = '', $limit = 0, $offset = 0, $until = null, $since = null)
{
$path = $object . '/' . $connection . $extra_fields;
if ($this->oauth != null)
{
if ($this->oauth->isAuthenticated())
{
$response = $this->oauth->query($this->fetchUr... | [
"public",
"function",
"getConnection",
"(",
"$",
"object",
",",
"$",
"connection",
"=",
"null",
",",
"$",
"extra_fields",
"=",
"''",
",",
"$",
"limit",
"=",
"0",
",",
"$",
"offset",
"=",
"0",
",",
"$",
"until",
"=",
"null",
",",
"$",
"since",
"=",
... | Method to get object's connection.
@param string $object The object id.
@param string $connection The object's connection name.
@param string $extra_fields URL fields.
@param integer $limit The number of objects per page.
@param integer $offset The object's number on the pag... | [
"Method",
"to",
"get",
"object",
"s",
"connection",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Facebook/Object.php#L175-L202 |
189,660 | joomla/joomla-framework | src/Joomla/Facebook/Object.php | Object.createConnection | public function createConnection($object, $connection = null, $parameters = null, array $headers = null)
{
if ($this->oauth->isAuthenticated())
{
// Build the request path.
if ($connection != null)
{
$path = $object . '/' . $connection;
}
else
{
$path = $object;
}
// Send the post ... | php | public function createConnection($object, $connection = null, $parameters = null, array $headers = null)
{
if ($this->oauth->isAuthenticated())
{
// Build the request path.
if ($connection != null)
{
$path = $object . '/' . $connection;
}
else
{
$path = $object;
}
// Send the post ... | [
"public",
"function",
"createConnection",
"(",
"$",
"object",
",",
"$",
"connection",
"=",
"null",
",",
"$",
"parameters",
"=",
"null",
",",
"array",
"$",
"headers",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"oauth",
"->",
"isAuthenticated",
... | Method to create a connection.
@param string $object The object id.
@param string $connection The object's connection name.
@param array $parameters The POST request parameters.
@param array $headers An array of name-value pairs to include in the header of the request
@return mixed The dec... | [
"Method",
"to",
"create",
"a",
"connection",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Facebook/Object.php#L216-L239 |
189,661 | joomla/joomla-framework | src/Joomla/Filesystem/Path.php | Path.isOwner | public static function isOwner($path)
{
$tmp = md5(mt_rand());
$ssp = ini_get('session.save_path');
$jtp = JPATH_ROOT . '/tmp';
// Try to find a writable directory
$dir = is_writable('/tmp') ? '/tmp' : false;
$dir = (!$dir && is_writable($ssp)) ? $ssp : false;
$dir = (!$dir && is_writable($jtp)) ? $jtp ... | php | public static function isOwner($path)
{
$tmp = md5(mt_rand());
$ssp = ini_get('session.save_path');
$jtp = JPATH_ROOT . '/tmp';
// Try to find a writable directory
$dir = is_writable('/tmp') ? '/tmp' : false;
$dir = (!$dir && is_writable($ssp)) ? $ssp : false;
$dir = (!$dir && is_writable($jtp)) ? $jtp ... | [
"public",
"static",
"function",
"isOwner",
"(",
"$",
"path",
")",
"{",
"$",
"tmp",
"=",
"md5",
"(",
"mt_rand",
"(",
")",
")",
";",
"$",
"ssp",
"=",
"ini_get",
"(",
"'session.save_path'",
")",
";",
"$",
"jtp",
"=",
"JPATH_ROOT",
".",
"'/tmp'",
";",
... | Method to determine if script owns the path.
@param string $path Path to check ownership.
@return boolean True if the php script owns the path passed.
@since 1.0 | [
"Method",
"to",
"determine",
"if",
"script",
"owns",
"the",
"path",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Filesystem/Path.php#L226-L255 |
189,662 | joomla/joomla-framework | src/Joomla/Twitter/Lists.php | Lists.getLists | public function getLists($user, $reverse = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('lists', 'list');
// Determine which type of data was passed for $user
if (is_numeric($user))
{
$data['user_id'] = $user;
}
elseif (is_string($user))
{
$data['screen_name'] = $user... | php | public function getLists($user, $reverse = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('lists', 'list');
// Determine which type of data was passed for $user
if (is_numeric($user))
{
$data['user_id'] = $user;
}
elseif (is_string($user))
{
$data['screen_name'] = $user... | [
"public",
"function",
"getLists",
"(",
"$",
"user",
",",
"$",
"reverse",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'lists'",
",",
"'list'",
")",
";",
"// Determine which type of data was passed for ... | Method to get all lists the authenticating or specified user subscribes to, including their own.
@param mixed $user Either an integer containing the user ID or a string containing the screen name.
@param boolean $reverse Set this to true if you would like owned lists to be returned first. See description
... | [
"Method",
"to",
"get",
"all",
"lists",
"the",
"authenticating",
"or",
"specified",
"user",
"subscribes",
"to",
"including",
"their",
"own",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Lists.php#L30-L61 |
189,663 | joomla/joomla-framework | src/Joomla/Twitter/Lists.php | Lists.create | public function create($name, $mode = null, $description = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('lists', 'create');
$data = array();
// Check if name is specified.
if ($name)
{
$data['name'] = $name;
}
// Check if mode is specified.
if ($mode)
{
$data['m... | php | public function create($name, $mode = null, $description = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('lists', 'create');
$data = array();
// Check if name is specified.
if ($name)
{
$data['name'] = $name;
}
// Check if mode is specified.
if ($mode)
{
$data['m... | [
"public",
"function",
"create",
"(",
"$",
"name",
",",
"$",
"mode",
"=",
"null",
",",
"$",
"description",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'lists'",
",",
"'create'",
")",
";",
"$"... | Method to create a new list for the authenticated user.
@param string $name The name of the list.
@param string $mode Whether your list is public or private. Values can be public or private. If no mode is
specified the list will be public.
@param string $description The description to give th... | [
"Method",
"to",
"create",
"a",
"new",
"list",
"for",
"the",
"authenticated",
"user",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Lists.php#L898-L928 |
189,664 | joomla/joomla-framework | src/Joomla/Form/Field/File.php | Field_File.getInput | protected function getInput()
{
// Initialize some field attributes.
$accept = $this->element['accept'] ? ' accept="' . (string) $this->element['accept'] . '"' : '';
$size = $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
$class = $this->element['class'] ? ' class="' . (string) $t... | php | protected function getInput()
{
// Initialize some field attributes.
$accept = $this->element['accept'] ? ' accept="' . (string) $this->element['accept'] . '"' : '';
$size = $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
$class = $this->element['class'] ? ' class="' . (string) $t... | [
"protected",
"function",
"getInput",
"(",
")",
"{",
"// Initialize some field attributes.",
"$",
"accept",
"=",
"$",
"this",
"->",
"element",
"[",
"'accept'",
"]",
"?",
"' accept=\"'",
".",
"(",
"string",
")",
"$",
"this",
"->",
"element",
"[",
"'accept'",
"... | Method to get the field input markup for the file field.
Field attributes allow specification of a maximum file size and a string
of accepted file extensions.
@return string The field input markup.
@since 1.0
@note The field does not include an upload mechanism.
@see JFormFieldMedia | [
"Method",
"to",
"get",
"the",
"field",
"input",
"markup",
"for",
"the",
"file",
"field",
".",
"Field",
"attributes",
"allow",
"specification",
"of",
"a",
"maximum",
"file",
"size",
"and",
"a",
"string",
"of",
"accepted",
"file",
"extensions",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Form/Field/File.php#L40-L53 |
189,665 | joomla/joomla-framework | src/Joomla/Filesystem/Buffer.php | Buffer.stream_open | public function stream_open($path, $mode, $options, &$opened_path)
{
$url = parse_url($path);
$this->name = $url['host'];
$this->buffers[$this->name] = null;
$this->position = 0;
return true;
} | php | public function stream_open($path, $mode, $options, &$opened_path)
{
$url = parse_url($path);
$this->name = $url['host'];
$this->buffers[$this->name] = null;
$this->position = 0;
return true;
} | [
"public",
"function",
"stream_open",
"(",
"$",
"path",
",",
"$",
"mode",
",",
"$",
"options",
",",
"&",
"$",
"opened_path",
")",
"{",
"$",
"url",
"=",
"parse_url",
"(",
"$",
"path",
")",
";",
"$",
"this",
"->",
"name",
"=",
"$",
"url",
"[",
"'hos... | Function to open file or url
@param string $path The URL that was passed
@param string $mode Mode used to open the file @see fopen
@param integer $options Flags used by the API, may be STREAM_USE_PATH and STREAM_REPORT_ERRORS
@param string &$opened_path Full path of the resource... | [
"Function",
"to",
"open",
"file",
"or",
"url"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Filesystem/Buffer.php#L58-L66 |
189,666 | joomla/joomla-framework | src/Joomla/Github/Package/Issues.php | Issues.create | public function create($user, $repo, $title, $body = null, $assignee = null, $milestone = null, array $labels = null)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/issues';
// Ensure that we have a non-associative array.
if (isset($labels))
{
$labels = array_values($labels);
... | php | public function create($user, $repo, $title, $body = null, $assignee = null, $milestone = null, array $labels = null)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/issues';
// Ensure that we have a non-associative array.
if (isset($labels))
{
$labels = array_values($labels);
... | [
"public",
"function",
"create",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"title",
",",
"$",
"body",
"=",
"null",
",",
"$",
"assignee",
"=",
"null",
",",
"$",
"milestone",
"=",
"null",
",",
"array",
"$",
"labels",
"=",
"null",
")",
"{",
"// B... | Method to create an issue.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $title The title of the new issue.
@param string $body The body text for the new issue.
@param string $assignee ... | [
"Method",
"to",
"create",
"an",
"issue",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues.php#L46-L80 |
189,667 | joomla/joomla-framework | src/Joomla/Github/Package/Issues.php | Issues.edit | public function edit($user, $repo, $issueId, $state = null, $title = null, $body = null, $assignee = null, $milestone = null, array $labels = null)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/issues/' . (int) $issueId;
// Craete the data object.
$data = new \stdClass;
// If a t... | php | public function edit($user, $repo, $issueId, $state = null, $title = null, $body = null, $assignee = null, $milestone = null, array $labels = null)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/issues/' . (int) $issueId;
// Craete the data object.
$data = new \stdClass;
// If a t... | [
"public",
"function",
"edit",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"issueId",
",",
"$",
"state",
"=",
"null",
",",
"$",
"title",
"=",
"null",
",",
"$",
"body",
"=",
"null",
",",
"$",
"assignee",
"=",
"null",
",",
"$",
"milestone",
"=",
... | Method to update an issue.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param integer $issueId The issue number.
@param string $state The optional new state for the issue. [open, closed]
@param string ... | [
"Method",
"to",
"update",
"an",
"issue",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues.php#L100-L165 |
189,668 | joomla/joomla-framework | src/Joomla/Github/Package/Issues.php | Issues.getList | public function getList($filter = null, $state = null, $labels = null, $sort = null,
$direction = null, Date $since = null, $page = 0, $limit = 0)
{
// Build the request path.
$path = '/issues';
// TODO Implement the filtering options.
// Send the request.
$response = $this->client->get($this->fetchUrl($... | php | public function getList($filter = null, $state = null, $labels = null, $sort = null,
$direction = null, Date $since = null, $page = 0, $limit = 0)
{
// Build the request path.
$path = '/issues';
// TODO Implement the filtering options.
// Send the request.
$response = $this->client->get($this->fetchUrl($... | [
"public",
"function",
"getList",
"(",
"$",
"filter",
"=",
"null",
",",
"$",
"state",
"=",
"null",
",",
"$",
"labels",
"=",
"null",
",",
"$",
"sort",
"=",
"null",
",",
"$",
"direction",
"=",
"null",
",",
"Date",
"$",
"since",
"=",
"null",
",",
"$"... | Method to list an authenticated user's issues.
@param string $filter The filter type: assigned, created, mentioned, subscribed.
@param string $state The optional state to filter requests by. [open, closed]
@param string $labels The list of comma separated Label names. Example: bug,ui,@high.
@p... | [
"Method",
"to",
"list",
"an",
"authenticated",
"user",
"s",
"issues",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues.php#L215-L235 |
189,669 | joomla/joomla-framework | src/Joomla/Github/Package/Issues.php | Issues.getListByRepository | public function getListByRepository($user, $repo, $milestone = null, $state = null, $assignee = null, $mentioned = null, $labels = null,
$sort = null, $direction = null, Date $since = null, $page = 0, $limit = 0)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/issues';
$uri = new Uri(... | php | public function getListByRepository($user, $repo, $milestone = null, $state = null, $assignee = null, $mentioned = null, $labels = null,
$sort = null, $direction = null, Date $since = null, $page = 0, $limit = 0)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/issues';
$uri = new Uri(... | [
"public",
"function",
"getListByRepository",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"milestone",
"=",
"null",
",",
"$",
"state",
"=",
"null",
",",
"$",
"assignee",
"=",
"null",
",",
"$",
"mentioned",
"=",
"null",
",",
"$",
"labels",
"=",
"null... | Method to list issues.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $milestone The milestone number, 'none', or *.
@param string $state The optional state to filter requests by. [open, closed]
... | [
"Method",
"to",
"list",
"issues",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues.php#L258-L318 |
189,670 | joomla/joomla-framework | src/Joomla/Github/Package/Issues/Comments.php | Comments.getRepositoryList | public function getRepositoryList($owner, $repo, $sort = 'created', $direction = 'asc', Date $since = null)
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/issues/comments';
if (false == in_array($sort, array('created', 'updated')))
{
throw new \UnexpectedValueException(
sprin... | php | public function getRepositoryList($owner, $repo, $sort = 'created', $direction = 'asc', Date $since = null)
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/issues/comments';
if (false == in_array($sort, array('created', 'updated')))
{
throw new \UnexpectedValueException(
sprin... | [
"public",
"function",
"getRepositoryList",
"(",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"sort",
"=",
"'created'",
",",
"$",
"direction",
"=",
"'asc'",
",",
"Date",
"$",
"since",
"=",
"null",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/... | Method to get the list of comments in a repository.
@param string $owner The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $sort The sort field - created or updated.
@param string $direction The sort order- asc or desc. Ig... | [
"Method",
"to",
"get",
"the",
"list",
"of",
"comments",
"in",
"a",
"repository",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues/Comments.php#L66-L99 |
189,671 | joomla/joomla-framework | src/Joomla/Github/Package/Issues/Comments.php | Comments.create | public function create($user, $repo, $issueId, $body)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/issues/' . (int) $issueId . '/comments';
// Build the request data.
$data = json_encode(
array(
'body' => $body,
)
);
// Send the request.
return $this->processRespon... | php | public function create($user, $repo, $issueId, $body)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/issues/' . (int) $issueId . '/comments';
// Build the request data.
$data = json_encode(
array(
'body' => $body,
)
);
// Send the request.
return $this->processRespon... | [
"public",
"function",
"create",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"issueId",
",",
"$",
"body",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"user",
".",
"'/'",
".",
"$",
"repo",
".",
"'/issues/'",
".",
... | Method to create a comment on an issue.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param integer $issueId The issue number.
@param string $body The comment body text.
@throws \DomainException
@since 1.0
@ret... | [
"Method",
"to",
"create",
"a",
"comment",
"on",
"an",
"issue",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Issues/Comments.php#L165-L182 |
189,672 | joomla/joomla-framework | src/Joomla/Facebook/Album.php | Album.createComment | public function createComment($album, $message)
{
// Set POST request parameters.
$data = array();
$data['message'] = $message;
return $this->createConnection($album, 'comments', $data);
} | php | public function createComment($album, $message)
{
// Set POST request parameters.
$data = array();
$data['message'] = $message;
return $this->createConnection($album, 'comments', $data);
} | [
"public",
"function",
"createComment",
"(",
"$",
"album",
",",
"$",
"message",
")",
"{",
"// Set POST request parameters.",
"$",
"data",
"=",
"array",
"(",
")",
";",
"$",
"data",
"[",
"'message'",
"]",
"=",
"$",
"message",
";",
"return",
"$",
"this",
"->... | Method to comment on an album. Requires authentication and publish_stream permission.
@param string $album The album id.
@param string $message The comment's text.
@return mixed The decoded JSON response or false if the client is not authenticated.
@since 1.0 | [
"Method",
"to",
"comment",
"on",
"an",
"album",
".",
"Requires",
"authentication",
"and",
"publish_stream",
"permission",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Facebook/Album.php#L104-L111 |
189,673 | joomla/joomla-framework | src/Joomla/Twitter/Favorites.php | Favorites.createFavorites | public function createFavorites($id, $entities = null)
{
// Set the API path.
$path = '/favorites/create.json';
$data['id'] = $id;
// Check if entities is specified.
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
// Send the request.
return $this->sendRequest($path, 'POST',... | php | public function createFavorites($id, $entities = null)
{
// Set the API path.
$path = '/favorites/create.json';
$data['id'] = $id;
// Check if entities is specified.
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
// Send the request.
return $this->sendRequest($path, 'POST',... | [
"public",
"function",
"createFavorites",
"(",
"$",
"id",
",",
"$",
"entities",
"=",
"null",
")",
"{",
"// Set the API path.",
"$",
"path",
"=",
"'/favorites/create.json'",
";",
"$",
"data",
"[",
"'id'",
"]",
"=",
"$",
"id",
";",
"// Check if entities is specif... | Method to favorite the status specified in the ID parameter as the authenticating user
@param integer $id The numerical ID of the desired status.
@param boolean $entities When set to true, each tweet will include a node called "entities,". This node offers a variety
of metadata about the tweet in a disc... | [
"Method",
"to",
"favorite",
"the",
"status",
"specified",
"in",
"the",
"ID",
"parameter",
"as",
"the",
"authenticating",
"user"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Favorites.php#L87-L102 |
189,674 | joomla/joomla-framework | src/Joomla/Twitter/Friends.php | Friends.getFriendshipsOutgoing | public function getFriendshipsOutgoing($cursor = null, $string_ids = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('friendships', 'outgoing');
$data = array();
// Check if cursor is specified
if (!is_null($cursor))
{
$data['cursor'] = $cursor;
}
// Check if string_ids i... | php | public function getFriendshipsOutgoing($cursor = null, $string_ids = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('friendships', 'outgoing');
$data = array();
// Check if cursor is specified
if (!is_null($cursor))
{
$data['cursor'] = $cursor;
}
// Check if string_ids i... | [
"public",
"function",
"getFriendshipsOutgoing",
"(",
"$",
"cursor",
"=",
"null",
",",
"$",
"string_ids",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'friendships'",
",",
"'outgoing'",
")",
";",
"$... | Method to determine every protected user for whom the authenticating user has a pending follow request.
@param integer $cursor Causes the list of IDs to be broken into pages of no more than 5000 IDs at a time. The number of IDs returned
is not guaranteed to be 5000 as suspended users are filtered out after con... | [
"Method",
"to",
"determine",
"every",
"protected",
"user",
"for",
"whom",
"the",
"authenticating",
"user",
"has",
"a",
"pending",
"follow",
"request",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Friends.php#L241-L265 |
189,675 | joomla/joomla-framework | src/Joomla/Twitter/Friends.php | Friends.unfollow | public function unfollow($user)
{
// Determine which type of data was passed for $user
if (is_numeric($user))
{
$data['user_id'] = $user;
}
elseif (is_string($user))
{
$data['screen_name'] = $user;
}
else
{
// We don't have a valid entry
throw new \RuntimeException('The specified username... | php | public function unfollow($user)
{
// Determine which type of data was passed for $user
if (is_numeric($user))
{
$data['user_id'] = $user;
}
elseif (is_string($user))
{
$data['screen_name'] = $user;
}
else
{
// We don't have a valid entry
throw new \RuntimeException('The specified username... | [
"public",
"function",
"unfollow",
"(",
"$",
"user",
")",
"{",
"// Determine which type of data was passed for $user",
"if",
"(",
"is_numeric",
"(",
"$",
"user",
")",
")",
"{",
"$",
"data",
"[",
"'user_id'",
"]",
"=",
"$",
"user",
";",
"}",
"elseif",
"(",
"... | Allows the authenticating users to unfollow the user specified in the ID parameter.
@param mixed $user Either an integer containing the user ID or a string containing the screen name.
@return array The decoded JSON response
@since 1.0
@throws \RuntimeException | [
"Allows",
"the",
"authenticating",
"users",
"to",
"unfollow",
"the",
"user",
"specified",
"in",
"the",
"ID",
"parameter",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Friends.php#L318-L340 |
189,676 | joomla/joomla-framework | src/Joomla/Twitter/Friends.php | Friends.getFriendshipsLookup | public function getFriendshipsLookup($screen_name = null, $id = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('friendships', 'lookup');
$data = array();
// Set user IDs and screen names.
if ($id)
{
$data['user_id'] = $id;
}
if ($screen_name)
{
$data['screen_name'] ... | php | public function getFriendshipsLookup($screen_name = null, $id = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('friendships', 'lookup');
$data = array();
// Set user IDs and screen names.
if ($id)
{
$data['user_id'] = $id;
}
if ($screen_name)
{
$data['screen_name'] ... | [
"public",
"function",
"getFriendshipsLookup",
"(",
"$",
"screen_name",
"=",
"null",
",",
"$",
"id",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'friendships'",
",",
"'lookup'",
")",
";",
"$",
"d... | Method to get the relationship of the authenticating user to the comma separated list of up to 100 screen_names or user_ids provided.
@param string $screen_name A comma separated list of screen names, up to 100 are allowed in a single request.
@param string $id A comma separated list of user IDs, up t... | [
"Method",
"to",
"get",
"the",
"relationship",
"of",
"the",
"authenticating",
"user",
"to",
"the",
"comma",
"separated",
"list",
"of",
"up",
"to",
"100",
"screen_names",
"or",
"user_ids",
"provided",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Friends.php#L353-L382 |
189,677 | joomla/joomla-framework | src/Joomla/Twitter/Users.php | Users.searchUsers | public function searchUsers($query, $page = 0, $count = 0, $entities = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('users', 'search');
$data['q'] = rawurlencode($query);
// Check if page is specified.
if ($page > 0 )
{
$data['page'] = $page;
}
// Check if per_page is ... | php | public function searchUsers($query, $page = 0, $count = 0, $entities = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('users', 'search');
$data['q'] = rawurlencode($query);
// Check if page is specified.
if ($page > 0 )
{
$data['page'] = $page;
}
// Check if per_page is ... | [
"public",
"function",
"searchUsers",
"(",
"$",
"query",
",",
"$",
"page",
"=",
"0",
",",
"$",
"count",
"=",
"0",
",",
"$",
"entities",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'users'",
... | Method used to search for users
@param string $query The search query to run against people search.
@param integer $page Specifies the page of results to retrieve.
@param integer $count The number of people to retrieve. Maximum of 20 allowed per page.
@param boolean $entities When set to eit... | [
"Method",
"used",
"to",
"search",
"for",
"users"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Users.php#L119-L149 |
189,678 | joomla/joomla-framework | src/Joomla/Twitter/Users.php | Users.getSuggestions | public function getSuggestions($lang = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('users', 'suggestions');
// Set the API path
$path = '/users/suggestions.json';
$data = array();
// Check if entities is true
if ($lang)
{
$data['lang'] = $lang;
}
// Send the requ... | php | public function getSuggestions($lang = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('users', 'suggestions');
// Set the API path
$path = '/users/suggestions.json';
$data = array();
// Check if entities is true
if ($lang)
{
$data['lang'] = $lang;
}
// Send the requ... | [
"public",
"function",
"getSuggestions",
"(",
"$",
"lang",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'users'",
",",
"'suggestions'",
")",
";",
"// Set the API path",
"$",
"path",
"=",
"'/users/sugg... | Method access to Twitter's suggested user list.
@param boolean $lang Restricts the suggested categories to the requested language.
@return array The decoded JSON response
@since 1.0 | [
"Method",
"access",
"to",
"Twitter",
"s",
"suggested",
"user",
"list",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Users.php#L306-L324 |
189,679 | joomla/joomla-framework | src/Joomla/Twitter/Users.php | Users.getSuggestionsSlug | public function getSuggestionsSlug($slug, $lang = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('users', 'suggestions/:slug');
// Set the API path
$path = '/users/suggestions/' . $slug . '.json';
$data = array();
// Check if entities is true
if ($lang)
{
$data['lang'] =... | php | public function getSuggestionsSlug($slug, $lang = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('users', 'suggestions/:slug');
// Set the API path
$path = '/users/suggestions/' . $slug . '.json';
$data = array();
// Check if entities is true
if ($lang)
{
$data['lang'] =... | [
"public",
"function",
"getSuggestionsSlug",
"(",
"$",
"slug",
",",
"$",
"lang",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'users'",
",",
"'suggestions/:slug'",
")",
";",
"// Set the API path",
"$"... | method to access the users in a given category of the Twitter suggested user list.
@param string $slug The short name of list or a category.
@param boolean $lang Restricts the suggested categories to the requested language.
@return array The decoded JSON response
@since 1.0 | [
"method",
"to",
"access",
"the",
"users",
"in",
"a",
"given",
"category",
"of",
"the",
"Twitter",
"suggested",
"user",
"list",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Users.php#L336-L354 |
189,680 | dudapiotr/ZfTable | src/ZfTable/Row.php | Row.renderRows | public function renderRows($type = 'html')
{
if ($type == 'html') {
return $this->renderRowHtml();
} elseif ($type == 'array') {
return $this->renderRowArray();
} elseif ($type == 'array_assc') {
return $this->renderRowArray('assc');
} else {
... | php | public function renderRows($type = 'html')
{
if ($type == 'html') {
return $this->renderRowHtml();
} elseif ($type == 'array') {
return $this->renderRowArray();
} elseif ($type == 'array_assc') {
return $this->renderRowArray('assc');
} else {
... | [
"public",
"function",
"renderRows",
"(",
"$",
"type",
"=",
"'html'",
")",
"{",
"if",
"(",
"$",
"type",
"==",
"'html'",
")",
"{",
"return",
"$",
"this",
"->",
"renderRowHtml",
"(",
")",
";",
"}",
"elseif",
"(",
"$",
"type",
"==",
"'array'",
")",
"{"... | Rendering all rows for table
@param string $type html, json, array
@return string | array | [
"Rendering",
"all",
"rows",
"for",
"table"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Row.php#L75-L87 |
189,681 | dudapiotr/ZfTable | src/ZfTable/Row.php | Row.renderRowArray | private function renderRowArray($type = 'normal')
{
$data = $this->getTable()->getData();
$headers = $this->getTable()->getHeaders();
$render = array();
foreach ($data as $rowData) {
$this->setActualRow($rowData);
$temp = array();
foreach ($header... | php | private function renderRowArray($type = 'normal')
{
$data = $this->getTable()->getData();
$headers = $this->getTable()->getHeaders();
$render = array();
foreach ($data as $rowData) {
$this->setActualRow($rowData);
$temp = array();
foreach ($header... | [
"private",
"function",
"renderRowArray",
"(",
"$",
"type",
"=",
"'normal'",
")",
"{",
"$",
"data",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getData",
"(",
")",
";",
"$",
"headers",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"ge... | Rendering rows as array
@param string $type
@return array | [
"Rendering",
"rows",
"as",
"array"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Row.php#L95-L114 |
189,682 | dudapiotr/ZfTable | src/ZfTable/Row.php | Row.renderRowHtml | private function renderRowHtml()
{
$data = $this->getTable()->getData();
$headers = $this->getTable()->getHeaders();
$render = '';
foreach ($data as $rowData) {
$this->setActualRow($rowData);
$rowRender = '';
foreach ($headers as $name => $option... | php | private function renderRowHtml()
{
$data = $this->getTable()->getData();
$headers = $this->getTable()->getHeaders();
$render = '';
foreach ($data as $rowData) {
$this->setActualRow($rowData);
$rowRender = '';
foreach ($headers as $name => $option... | [
"private",
"function",
"renderRowHtml",
"(",
")",
"{",
"$",
"data",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getData",
"(",
")",
";",
"$",
"headers",
"=",
"$",
"this",
"->",
"getTable",
"(",
")",
"->",
"getHeaders",
"(",
")",
";",
"$",
... | rendering row as a html
@return string | [
"rendering",
"row",
"as",
"a",
"html"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/Row.php#L121-L143 |
189,683 | joomla/joomla-framework | src/Joomla/Github/Package/Repositories/Releases.php | Releases.create | public function create($user, $repo, $tagName, $targetCommitish = '', $name = '', $body = '', $draft = false, $preRelease = false)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/releases';
// Build the request data.
$data = json_encode(
array(
'tag_name' => $tagName,
'targ... | php | public function create($user, $repo, $tagName, $targetCommitish = '', $name = '', $body = '', $draft = false, $preRelease = false)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/releases';
// Build the request data.
$data = json_encode(
array(
'tag_name' => $tagName,
'targ... | [
"public",
"function",
"create",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"tagName",
",",
"$",
"targetCommitish",
"=",
"''",
",",
"$",
"name",
"=",
"''",
",",
"$",
"body",
"=",
"''",
",",
"$",
"draft",
"=",
"false",
",",
"$",
"preRelease",
"=... | Method to create a release.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param string $tagName The name of the tag.
@param string $targetCommitish The commitish value that determines where t... | [
"Method",
"to",
"create",
"a",
"release",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Repositories/Releases.php#L42-L61 |
189,684 | joomla/joomla-framework | src/Joomla/Github/Package/Repositories/Releases.php | Releases.edit | public function edit($user, $repo, $releaseId, $tagName,
$targetCommitish = null, $name = null, $body = null, $draft = null, $preRelease = null)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/releases/' . (int) $releaseId;
// Create the data object.
$data = new \stdClass;
$data->... | php | public function edit($user, $repo, $releaseId, $tagName,
$targetCommitish = null, $name = null, $body = null, $draft = null, $preRelease = null)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/releases/' . (int) $releaseId;
// Create the data object.
$data = new \stdClass;
$data->... | [
"public",
"function",
"edit",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"releaseId",
",",
"$",
"tagName",
",",
"$",
"targetCommitish",
"=",
"null",
",",
"$",
"name",
"=",
"null",
",",
"$",
"body",
"=",
"null",
",",
"$",
"draft",
"=",
"null",
... | Method to update a release.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param integer $releaseId The release id.
@param string $tagName The name of the tag.
@param string $targetCo... | [
"Method",
"to",
"update",
"a",
"release",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Repositories/Releases.php#L85-L126 |
189,685 | joomla/joomla-framework | src/Joomla/Github/Package/Repositories/Releases.php | Releases.getList | public function getList($user, $repo, $page = 0, $limit = 0)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/releases';
// Send the request.
$response = $this->processResponse($this->client->get($this->fetchUrl($path, $page, $limit)));
$releases = array();
if (is_array($response... | php | public function getList($user, $repo, $page = 0, $limit = 0)
{
// Build the request path.
$path = '/repos/' . $user . '/' . $repo . '/releases';
// Send the request.
$response = $this->processResponse($this->client->get($this->fetchUrl($path, $page, $limit)));
$releases = array();
if (is_array($response... | [
"public",
"function",
"getList",
"(",
"$",
"user",
",",
"$",
"repo",
",",
"$",
"page",
"=",
"0",
",",
"$",
"limit",
"=",
"0",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"user",
".",
"'/'",
".",
"$",
"repo",
"."... | Method to list all releases.
@param string $user The name of the owner of the GitHub repository.
@param string $repo The name of the GitHub repository.
@param integer $page The page number from which to get items.
@param integer $limit The number of items on a page.
@return array... | [
"Method",
"to",
"list",
"all",
"releases",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Repositories/Releases.php#L162-L181 |
189,686 | joomla/joomla-framework | src/Joomla/Github/Package/Data/Trees.php | Trees.create | public function create($owner, $repo, $tree, $base_tree = '')
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/git/trees';
$data = array();
$data['tree'] = $tree;
if ($base_tree)
{
$data['base_tree'] = $base_tree;
}
return $this->processResponse(
$this->client->post($... | php | public function create($owner, $repo, $tree, $base_tree = '')
{
// Build the request path.
$path = '/repos/' . $owner . '/' . $repo . '/git/trees';
$data = array();
$data['tree'] = $tree;
if ($base_tree)
{
$data['base_tree'] = $base_tree;
}
return $this->processResponse(
$this->client->post($... | [
"public",
"function",
"create",
"(",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"tree",
",",
"$",
"base_tree",
"=",
"''",
")",
"{",
"// Build the request path.",
"$",
"path",
"=",
"'/repos/'",
".",
"$",
"owner",
".",
"'/'",
".",
"$",
"repo",
".",
"'/g... | Create a Tree.
The tree creation API will take nested entries as well. If both a tree and a nested path
modifying that tree are specified, it will overwrite the contents of that tree with the
new path contents and write a new tree out.
Parameters fir the tree:
tree.path
String of the file referenced in the tree
tree... | [
"Create",
"a",
"Tree",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Github/Package/Data/Trees.php#L97-L115 |
189,687 | joomla/joomla-framework | src/Joomla/Facebook/Comment.php | Comment.createComment | public function createComment($comment, $message)
{
// Set POST request parameters.
$data = array();
$data['message'] = $message;
return $this->createConnection($comment, 'comments', $data);
} | php | public function createComment($comment, $message)
{
// Set POST request parameters.
$data = array();
$data['message'] = $message;
return $this->createConnection($comment, 'comments', $data);
} | [
"public",
"function",
"createComment",
"(",
"$",
"comment",
",",
"$",
"message",
")",
"{",
"// Set POST request parameters.",
"$",
"data",
"=",
"array",
"(",
")",
";",
"$",
"data",
"[",
"'message'",
"]",
"=",
"$",
"message",
";",
"return",
"$",
"this",
"... | Method to comment on a comment. Requires authentication with publish_stream permission.
@param string $comment The comment id.
@param string $message The comment's text.
@return mixed The decoded JSON response or false if the client is not authenticated.
@since 1.0 | [
"Method",
"to",
"comment",
"on",
"a",
"comment",
".",
"Requires",
"authentication",
"with",
"publish_stream",
"permission",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Facebook/Comment.php#L75-L82 |
189,688 | joomla/joomla-framework | src/Joomla/Http/HttpFactory.php | HttpFactory.getHttp | public static function getHttp($options = array(), $adapters = null)
{
if (!$driver = self::getAvailableDriver($options, $adapters))
{
throw new \RuntimeException('No transport driver available.');
}
return new Http($options, $driver);
} | php | public static function getHttp($options = array(), $adapters = null)
{
if (!$driver = self::getAvailableDriver($options, $adapters))
{
throw new \RuntimeException('No transport driver available.');
}
return new Http($options, $driver);
} | [
"public",
"static",
"function",
"getHttp",
"(",
"$",
"options",
"=",
"array",
"(",
")",
",",
"$",
"adapters",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"$",
"driver",
"=",
"self",
"::",
"getAvailableDriver",
"(",
"$",
"options",
",",
"$",
"adapters",
")... | Method to receive Http instance.
@param array $options Client options array.
@param mixed $adapters Adapter (string) or queue of adapters (array) to use for communication.
@return Http Joomla Http class
@throws \RuntimeException
@since 1.0 | [
"Method",
"to",
"receive",
"Http",
"instance",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Http/HttpFactory.php#L30-L38 |
189,689 | joomla/joomla-framework | src/Joomla/Http/HttpFactory.php | HttpFactory.getAvailableDriver | public static function getAvailableDriver($options, $default = null)
{
if (is_null($default))
{
$availableAdapters = self::getHttpTransports();
}
else
{
settype($default, 'array');
$availableAdapters = $default;
}
// Check if there is at least one available http transport adapter
if (!count($... | php | public static function getAvailableDriver($options, $default = null)
{
if (is_null($default))
{
$availableAdapters = self::getHttpTransports();
}
else
{
settype($default, 'array');
$availableAdapters = $default;
}
// Check if there is at least one available http transport adapter
if (!count($... | [
"public",
"static",
"function",
"getAvailableDriver",
"(",
"$",
"options",
",",
"$",
"default",
"=",
"null",
")",
"{",
"if",
"(",
"is_null",
"(",
"$",
"default",
")",
")",
"{",
"$",
"availableAdapters",
"=",
"self",
"::",
"getHttpTransports",
"(",
")",
"... | Finds an available http transport object for communication
@param array $options Option for creating http transport object
@param mixed $default Adapter (string) or queue of adapters (array) to use
@return TransportInterface Interface sub-class
@since 1.0 | [
"Finds",
"an",
"available",
"http",
"transport",
"object",
"for",
"communication"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Http/HttpFactory.php#L50-L83 |
189,690 | joomla/joomla-framework | src/Joomla/Http/HttpFactory.php | HttpFactory.getHttpTransports | public static function getHttpTransports()
{
$names = array();
$iterator = new \DirectoryIterator(__DIR__ . '/Transport');
/* @var $file \DirectoryIterator */
foreach ($iterator as $file)
{
$fileName = $file->getFilename();
// Only load for php files.
if ($file->isFile() && $file->getExtension(... | php | public static function getHttpTransports()
{
$names = array();
$iterator = new \DirectoryIterator(__DIR__ . '/Transport');
/* @var $file \DirectoryIterator */
foreach ($iterator as $file)
{
$fileName = $file->getFilename();
// Only load for php files.
if ($file->isFile() && $file->getExtension(... | [
"public",
"static",
"function",
"getHttpTransports",
"(",
")",
"{",
"$",
"names",
"=",
"array",
"(",
")",
";",
"$",
"iterator",
"=",
"new",
"\\",
"DirectoryIterator",
"(",
"__DIR__",
".",
"'/Transport'",
")",
";",
"/* @var $file \\DirectoryIterator */",
"fore... | Get the http transport handlers
@return array An array of available transport handlers
@since 1.0 | [
"Get",
"the",
"http",
"transport",
"handlers"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Http/HttpFactory.php#L92-L110 |
189,691 | joomla/joomla-framework | src/Joomla/Utilities/ArrayHelper.php | ArrayHelper.toInteger | public static function toInteger($array, $default = null)
{
if (is_array($array))
{
$array = array_map('intval', $array);
}
else
{
if ($default === null)
{
$array = array();
}
elseif (is_array($default))
{
$array = self::toInteger($default, null);
}
else
{
$array = arra... | php | public static function toInteger($array, $default = null)
{
if (is_array($array))
{
$array = array_map('intval', $array);
}
else
{
if ($default === null)
{
$array = array();
}
elseif (is_array($default))
{
$array = self::toInteger($default, null);
}
else
{
$array = arra... | [
"public",
"static",
"function",
"toInteger",
"(",
"$",
"array",
",",
"$",
"default",
"=",
"null",
")",
"{",
"if",
"(",
"is_array",
"(",
"$",
"array",
")",
")",
"{",
"$",
"array",
"=",
"array_map",
"(",
"'intval'",
",",
"$",
"array",
")",
";",
"}",
... | Function to convert array to integer values
@param array $array The source array to convert
@param mixed $default A default value (int|array) to assign if $array is not an array
@return array The converted array
@since 1.0 | [
"Function",
"to",
"convert",
"array",
"to",
"integer",
"values"
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Utilities/ArrayHelper.php#L37-L60 |
189,692 | joomla/joomla-framework | src/Joomla/Language/Language.php | Language.setDebug | public function setDebug($debug)
{
$previous = $this->debug;
$this->debug = (boolean) $debug;
return $previous;
} | php | public function setDebug($debug)
{
$previous = $this->debug;
$this->debug = (boolean) $debug;
return $previous;
} | [
"public",
"function",
"setDebug",
"(",
"$",
"debug",
")",
"{",
"$",
"previous",
"=",
"$",
"this",
"->",
"debug",
";",
"$",
"this",
"->",
"debug",
"=",
"(",
"boolean",
")",
"$",
"debug",
";",
"return",
"$",
"previous",
";",
"}"
] | Set the Debug property.
@param boolean $debug The debug setting.
@return boolean Previous value.
@since 1.0 | [
"Set",
"the",
"Debug",
"property",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Language/Language.php#L1050-L1056 |
189,693 | joomla/joomla-framework | src/Joomla/Language/Text.php | Text.sprintf | public static function sprintf($string)
{
$lang = static::getLanguage();
$args = func_get_args();
$count = count($args);
if ($count > 0)
{
if (is_array($args[$count - 1]))
{
$args[0] = $lang->_(
$string, array_key_exists('jsSafe', $args[$count - 1]) ? $args[$count - 1]['jsSafe'] : false,
... | php | public static function sprintf($string)
{
$lang = static::getLanguage();
$args = func_get_args();
$count = count($args);
if ($count > 0)
{
if (is_array($args[$count - 1]))
{
$args[0] = $lang->_(
$string, array_key_exists('jsSafe', $args[$count - 1]) ? $args[$count - 1]['jsSafe'] : false,
... | [
"public",
"static",
"function",
"sprintf",
"(",
"$",
"string",
")",
"{",
"$",
"lang",
"=",
"static",
"::",
"getLanguage",
"(",
")",
";",
"$",
"args",
"=",
"func_get_args",
"(",
")",
";",
"$",
"count",
"=",
"count",
"(",
"$",
"args",
")",
";",
"if",... | Passes a string thru a sprintf.
Note that this method can take a mixed number of arguments as for the sprintf function.
The last argument can take an array of options:
array('jsSafe'=>boolean, 'interpretBackSlashes'=>boolean, 'script'=>boolean)
where:
jsSafe is a boolean to generate a javascript safe strings.
inte... | [
"Passes",
"a",
"string",
"thru",
"a",
"sprintf",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Language/Text.php#L259-L290 |
189,694 | joomla/joomla-framework | src/Joomla/Language/Text.php | Text.printf | public static function printf($string)
{
$lang = static::getLanguage();
$args = func_get_args();
$count = count($args);
if ($count > 0)
{
if (is_array($args[$count - 1]))
{
$args[0] = $lang->_(
$string, array_key_exists('jsSafe', $args[$count - 1]) ? $args[$count - 1]['jsSafe'] : false,
... | php | public static function printf($string)
{
$lang = static::getLanguage();
$args = func_get_args();
$count = count($args);
if ($count > 0)
{
if (is_array($args[$count - 1]))
{
$args[0] = $lang->_(
$string, array_key_exists('jsSafe', $args[$count - 1]) ? $args[$count - 1]['jsSafe'] : false,
... | [
"public",
"static",
"function",
"printf",
"(",
"$",
"string",
")",
"{",
"$",
"lang",
"=",
"static",
"::",
"getLanguage",
"(",
")",
";",
"$",
"args",
"=",
"func_get_args",
"(",
")",
";",
"$",
"count",
"=",
"count",
"(",
"$",
"args",
")",
";",
"if",
... | Passes a string thru an printf.
Note that this method can take a mixed number of arguments as for the sprintf function.
@param string $string The format string.
@return mixed
@since 1.0 | [
"Passes",
"a",
"string",
"thru",
"an",
"printf",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Language/Text.php#L303-L327 |
189,695 | joomla/joomla-framework | src/Joomla/Twitter/Block.php | Block.blockUser | public function blockUser($user, $entities = null, $skip_status = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('blocks', 'create');
// Determine which type of data was passed for $user
if (is_numeric($user))
{
$data['user_id'] = $user;
}
elseif (is_string($user))
{
$d... | php | public function blockUser($user, $entities = null, $skip_status = null)
{
// Check the rate limit for remaining hits
$this->checkRateLimit('blocks', 'create');
// Determine which type of data was passed for $user
if (is_numeric($user))
{
$data['user_id'] = $user;
}
elseif (is_string($user))
{
$d... | [
"public",
"function",
"blockUser",
"(",
"$",
"user",
",",
"$",
"entities",
"=",
"null",
",",
"$",
"skip_status",
"=",
"null",
")",
"{",
"// Check the rate limit for remaining hits",
"$",
"this",
"->",
"checkRateLimit",
"(",
"'blocks'",
",",
"'create'",
")",
";... | Method to block the specified user from following the authenticating user.
@param mixed $user Either an integer containing the user ID or a string containing the screen name.
@param boolean $entities When set to either true, t or 1, each tweet will include a node called "entities,". This node offer... | [
"Method",
"to",
"block",
"the",
"specified",
"user",
"from",
"following",
"the",
"authenticating",
"user",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Twitter/Block.php#L69-L106 |
189,696 | joomla/joomla-framework | src/Joomla/Filesystem/Folder.php | Folder.files | public static function files($path, $filter = '.', $recurse = false, $full = false, $exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX'),
$excludefilter = array('^\..*', '.*~'))
{
// Check to make sure the path valid and clean
$path = Path::clean($path);
// Is the path a folder?
if (!is_dir($path))
{
... | php | public static function files($path, $filter = '.', $recurse = false, $full = false, $exclude = array('.svn', 'CVS', '.DS_Store', '__MACOSX'),
$excludefilter = array('^\..*', '.*~'))
{
// Check to make sure the path valid and clean
$path = Path::clean($path);
// Is the path a folder?
if (!is_dir($path))
{
... | [
"public",
"static",
"function",
"files",
"(",
"$",
"path",
",",
"$",
"filter",
"=",
"'.'",
",",
"$",
"recurse",
"=",
"false",
",",
"$",
"full",
"=",
"false",
",",
"$",
"exclude",
"=",
"array",
"(",
"'.svn'",
",",
"'CVS'",
",",
"'.DS_Store'",
",",
"... | Utility function to read the files in a folder.
@param string $path The path of the folder to read.
@param string $filter A filter for file names.
@param mixed $recurse True to recursively search into sub-folders, or an integer to specify the maximum depth.
@param boolean $full... | [
"Utility",
"function",
"to",
"read",
"the",
"files",
"in",
"a",
"folder",
"."
] | 7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7 | https://github.com/joomla/joomla-framework/blob/7f2f8e43c44a93f908aef8abd5ff5d9cfdf0f9d7/src/Joomla/Filesystem/Folder.php#L377-L408 |
189,697 | dudapiotr/ZfTable | src/ZfTable/AbstractTable.php | AbstractTable.setOptions | public function setOptions($options)
{
if (!$options instanceof ModuleOptions) {
$options = new ModuleOptions($options);
}
$this->options = $options;
return $this;
} | php | public function setOptions($options)
{
if (!$options instanceof ModuleOptions) {
$options = new ModuleOptions($options);
}
$this->options = $options;
return $this;
} | [
"public",
"function",
"setOptions",
"(",
"$",
"options",
")",
"{",
"if",
"(",
"!",
"$",
"options",
"instanceof",
"ModuleOptions",
")",
"{",
"$",
"options",
"=",
"new",
"ModuleOptions",
"(",
"$",
"options",
")",
";",
"}",
"$",
"this",
"->",
"options",
"... | Set module options
@param array|\Traversable|ModuleOptions $options
@return AbstractTable | [
"Set",
"module",
"options"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/AbstractTable.php#L114-L122 |
189,698 | dudapiotr/ZfTable | src/ZfTable/AbstractTable.php | AbstractTable.initializable | protected function initializable()
{
if (!$this->getParamAdapter()) {
throw new Exception\LogicException('Param Adapter is required');
}
if (!$this->getSource()) {
throw new Exception\LogicException('Source data is required');
}
$this->init = true;
... | php | protected function initializable()
{
if (!$this->getParamAdapter()) {
throw new Exception\LogicException('Param Adapter is required');
}
if (!$this->getSource()) {
throw new Exception\LogicException('Source data is required');
}
$this->init = true;
... | [
"protected",
"function",
"initializable",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"getParamAdapter",
"(",
")",
")",
"{",
"throw",
"new",
"Exception",
"\\",
"LogicException",
"(",
"'Param Adapter is required'",
")",
";",
"}",
"if",
"(",
"!",
"$",
... | Init configuration like setting header, decorators, filters and others
(call in render method as well) | [
"Init",
"configuration",
"like",
"setting",
"header",
"decorators",
"filters",
"and",
"others"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/AbstractTable.php#L266-L285 |
189,699 | dudapiotr/ZfTable | src/ZfTable/AbstractTable.php | AbstractTable.addHeader | public function addHeader($name, $options)
{
$header = new Header($name, $options);
$header->setTable($this);
$this->headersObjects[$name] = $header;
} | php | public function addHeader($name, $options)
{
$header = new Header($name, $options);
$header->setTable($this);
$this->headersObjects[$name] = $header;
} | [
"public",
"function",
"addHeader",
"(",
"$",
"name",
",",
"$",
"options",
")",
"{",
"$",
"header",
"=",
"new",
"Header",
"(",
"$",
"name",
",",
"$",
"options",
")",
";",
"$",
"header",
"->",
"setTable",
"(",
"$",
"this",
")",
";",
"$",
"this",
"-... | Add new header
@param string $name
@param array $options | [
"Add",
"new",
"header"
] | 8c7750c10d16137208d055345ca81c7d845e59d2 | https://github.com/dudapiotr/ZfTable/blob/8c7750c10d16137208d055345ca81c7d845e59d2/src/ZfTable/AbstractTable.php#L356-L361 |
Subsets and Splits
Yii Code Samples
Gathers all records from test, train, and validation sets that contain the word 'yii', providing a basic filtered view of the dataset relevant to Yii-related content.