repository_name stringlengths 5 67 | func_path_in_repository stringlengths 4 234 | func_name stringlengths 0 314 | whole_func_string stringlengths 52 3.87M | language stringclasses 6
values | func_code_string stringlengths 52 3.87M | func_code_tokens listlengths 15 672k | func_documentation_string stringlengths 1 47.2k | func_documentation_tokens listlengths 1 3.92k | split_name stringclasses 1
value | func_code_url stringlengths 85 339 |
|---|---|---|---|---|---|---|---|---|---|---|
sciactive/nymph-server | src/Drivers/MySQLDriver.php | MySQLDriver.createTables | private function createTables($etype = null) {
$this->query('SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";');
if ($this->config['MySQL']['foreign_keys']) {
$foreignKeyEntityTableGuid = " REFERENCES `{$this->prefix}guids`(`guid`) ON DELETE CASCADE";
$foreignKeyDataTableGuid = " REFERENCES `{$this->prefix}ent... | php | private function createTables($etype = null) {
$this->query('SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";');
if ($this->config['MySQL']['foreign_keys']) {
$foreignKeyEntityTableGuid = " REFERENCES `{$this->prefix}guids`(`guid`) ON DELETE CASCADE";
$foreignKeyDataTableGuid = " REFERENCES `{$this->prefix}ent... | [
"private",
"function",
"createTables",
"(",
"$",
"etype",
"=",
"null",
")",
"{",
"$",
"this",
"->",
"query",
"(",
"'SET SQL_MODE=\"NO_AUTO_VALUE_ON_ZERO\";'",
")",
";",
"if",
"(",
"$",
"this",
"->",
"config",
"[",
"'MySQL'",
"]",
"[",
"'foreign_keys'",
"]",
... | Create entity tables in the database.
@param string $etype The entity type to create a table for. If this is
blank, the default tables are created.
@return bool True on success, false on failure. | [
"Create",
"entity",
"tables",
"in",
"the",
"database",
"."
] | train | https://github.com/sciactive/nymph-server/blob/3c18dbf45c2750d07c798e14534dba87387beeba/src/Drivers/MySQLDriver.php#L123-L216 |
sciactive/nymph-server | src/Drivers/MySQLDriver.php | MySQLDriver.makeEntityQuery | private function makeEntityQuery(
$options,
$selectors,
$etypeDirty,
$subquery = false
) {
$fullQueryCoverage = true;
$sort = $options['sort'] ?? 'cdate';
$etype = '_'.mysqli_real_escape_string($this->link, $etypeDirty);
$queryParts = $this->iterateSelectorsForQuery($selectors,... | php | private function makeEntityQuery(
$options,
$selectors,
$etypeDirty,
$subquery = false
) {
$fullQueryCoverage = true;
$sort = $options['sort'] ?? 'cdate';
$etype = '_'.mysqli_real_escape_string($this->link, $etypeDirty);
$queryParts = $this->iterateSelectorsForQuery($selectors,... | [
"private",
"function",
"makeEntityQuery",
"(",
"$",
"options",
",",
"$",
"selectors",
",",
"$",
"etypeDirty",
",",
"$",
"subquery",
"=",
"false",
")",
"{",
"$",
"fullQueryCoverage",
"=",
"true",
";",
"$",
"sort",
"=",
"$",
"options",
"[",
"'sort'",
"]",
... | Generate the MySQL query.
@param array $options The options array.
@param array $selectors The formatted selector array.
@param string $etypeDirty
@param bool $subquery Whether only a subquery should be returned.
@return string The SQL query. | [
"Generate",
"the",
"MySQL",
"query",
"."
] | train | https://github.com/sciactive/nymph-server/blob/3c18dbf45c2750d07c798e14534dba87387beeba/src/Drivers/MySQLDriver.php#L367-L990 |
lokhman/silex-tools | src/Silex/Console/Command/Cache/ClearCommand.php | ClearCommand.configure | protected function configure()
{
foreach ((new \ReflectionClass($this))->getMethods() as $method) {
if ($method->class == self::class || is_subclass_of($method->class, self::class)) {
if (strpos($method->name, '_') === 0) {
$targets[] = substr($method->name, 1... | php | protected function configure()
{
foreach ((new \ReflectionClass($this))->getMethods() as $method) {
if ($method->class == self::class || is_subclass_of($method->class, self::class)) {
if (strpos($method->name, '_') === 0) {
$targets[] = substr($method->name, 1... | [
"protected",
"function",
"configure",
"(",
")",
"{",
"foreach",
"(",
"(",
"new",
"\\",
"ReflectionClass",
"(",
"$",
"this",
")",
")",
"->",
"getMethods",
"(",
")",
"as",
"$",
"method",
")",
"{",
"if",
"(",
"$",
"method",
"->",
"class",
"==",
"self",
... | {@inheritdoc} | [
"{"
] | train | https://github.com/lokhman/silex-tools/blob/91e84099479beb4e866abc88a55ed1e457a8a9e9/src/Silex/Console/Command/Cache/ClearCommand.php#L49-L65 |
lokhman/silex-tools | src/Silex/Console/Command/Cache/ClearCommand.php | ClearCommand.execute | protected function execute(InputInterface $input, OutputInterface $output)
{
foreach ($input->getOption('target') as $target) {
if (method_exists($this, '_'.$target)) {
call_user_func([$this, '_'.$target], $input, $output);
} else {
$output->writeln(sp... | php | protected function execute(InputInterface $input, OutputInterface $output)
{
foreach ($input->getOption('target') as $target) {
if (method_exists($this, '_'.$target)) {
call_user_func([$this, '_'.$target], $input, $output);
} else {
$output->writeln(sp... | [
"protected",
"function",
"execute",
"(",
"InputInterface",
"$",
"input",
",",
"OutputInterface",
"$",
"output",
")",
"{",
"foreach",
"(",
"$",
"input",
"->",
"getOption",
"(",
"'target'",
")",
"as",
"$",
"target",
")",
"{",
"if",
"(",
"method_exists",
"(",... | {@inheritdoc} | [
"{"
] | train | https://github.com/lokhman/silex-tools/blob/91e84099479beb4e866abc88a55ed1e457a8a9e9/src/Silex/Console/Command/Cache/ClearCommand.php#L70-L83 |
ShaoZeMing/laravel-merchant | src/Grid/Tools/PerPageSelector.php | PerPageSelector.render | public function render()
{
Merchant::script($this->script());
$options = $this->getOptions()->map(function ($option) {
$selected = ($option == $this->perPage) ? 'selected' : '';
$url = app('request')->fullUrlWithQuery([$this->perPageName => $option]);
return "<o... | php | public function render()
{
Merchant::script($this->script());
$options = $this->getOptions()->map(function ($option) {
$selected = ($option == $this->perPage) ? 'selected' : '';
$url = app('request')->fullUrlWithQuery([$this->perPageName => $option]);
return "<o... | [
"public",
"function",
"render",
"(",
")",
"{",
"Merchant",
"::",
"script",
"(",
"$",
"this",
"->",
"script",
"(",
")",
")",
";",
"$",
"options",
"=",
"$",
"this",
"->",
"getOptions",
"(",
")",
"->",
"map",
"(",
"function",
"(",
"$",
"option",
")",
... | Render PerPageSelector。
@return string | [
"Render",
"PerPageSelector。"
] | train | https://github.com/ShaoZeMing/laravel-merchant/blob/20801b1735e7832a6e58b37c2c391328f8d626fa/src/Grid/Tools/PerPageSelector.php#L66-L92 |
hametuha/wpametu | src/WPametu/API/Rewrite.php | Rewrite.rewrite_rules_array | public function rewrite_rules_array( array $rules ){
if( !empty($this->classes) ){
// Normal rewrite rules
$new_rewrite = [];
$error_message = [];
foreach( $this->classes as $class_name ){
$prefix = $this->get_prefix($class_name);
/** ... | php | public function rewrite_rules_array( array $rules ){
if( !empty($this->classes) ){
// Normal rewrite rules
$new_rewrite = [];
$error_message = [];
foreach( $this->classes as $class_name ){
$prefix = $this->get_prefix($class_name);
/** ... | [
"public",
"function",
"rewrite_rules_array",
"(",
"array",
"$",
"rules",
")",
"{",
"if",
"(",
"!",
"empty",
"(",
"$",
"this",
"->",
"classes",
")",
")",
"{",
"// Normal rewrite rules",
"$",
"new_rewrite",
"=",
"[",
"]",
";",
"$",
"error_message",
"=",
"[... | Add rewrite rules.
@param array $rules
@return array | [
"Add",
"rewrite",
"rules",
"."
] | train | https://github.com/hametuha/wpametu/blob/0939373800815a8396291143d2a57967340da5aa/src/WPametu/API/Rewrite.php#L95-L120 |
hametuha/wpametu | src/WPametu/API/Rewrite.php | Rewrite.pre_get_posts | public function pre_get_posts( \WP_Query &$wp_query ){
if( !is_admin() && $wp_query->is_main_query() && ($api_class = $wp_query->get($this->api_class)) ){
// Detect class is valid
try{
// Fix escaped namespace delimiter
$api_class = str_replace('\\\\', '\\... | php | public function pre_get_posts( \WP_Query &$wp_query ){
if( !is_admin() && $wp_query->is_main_query() && ($api_class = $wp_query->get($this->api_class)) ){
// Detect class is valid
try{
// Fix escaped namespace delimiter
$api_class = str_replace('\\\\', '\\... | [
"public",
"function",
"pre_get_posts",
"(",
"\\",
"WP_Query",
"&",
"$",
"wp_query",
")",
"{",
"if",
"(",
"!",
"is_admin",
"(",
")",
"&&",
"$",
"wp_query",
"->",
"is_main_query",
"(",
")",
"&&",
"(",
"$",
"api_class",
"=",
"$",
"wp_query",
"->",
"get",
... | Parse request and invoke REST class if possible
@param \WP_Query $wp_query | [
"Parse",
"request",
"and",
"invoke",
"REST",
"class",
"if",
"possible"
] | train | https://github.com/hametuha/wpametu/blob/0939373800815a8396291143d2a57967340da5aa/src/WPametu/API/Rewrite.php#L127-L159 |
hametuha/wpametu | src/WPametu/API/Rewrite.php | Rewrite.admin_init | public function admin_init(){
if( !AjaxBase::is_ajax() && current_user_can('manage_options') ){
if( !empty($this->classes) ){
$rewrites = '';
foreach( $this->classes as $class_name ){
$rewrites .= $this->get_prefix($class_name);
}
... | php | public function admin_init(){
if( !AjaxBase::is_ajax() && current_user_can('manage_options') ){
if( !empty($this->classes) ){
$rewrites = '';
foreach( $this->classes as $class_name ){
$rewrites .= $this->get_prefix($class_name);
}
... | [
"public",
"function",
"admin_init",
"(",
")",
"{",
"if",
"(",
"!",
"AjaxBase",
"::",
"is_ajax",
"(",
")",
"&&",
"current_user_can",
"(",
"'manage_options'",
")",
")",
"{",
"if",
"(",
"!",
"empty",
"(",
"$",
"this",
"->",
"classes",
")",
")",
"{",
"$"... | Update rewrite rules if possible | [
"Update",
"rewrite",
"rules",
"if",
"possible"
] | train | https://github.com/hametuha/wpametu/blob/0939373800815a8396291143d2a57967340da5aa/src/WPametu/API/Rewrite.php#L187-L207 |
hametuha/wpametu | src/WPametu/API/Rewrite.php | Rewrite.get_prefix | public function get_prefix($class_name){
/** @var RestBase $class_name */
if( !empty($class_name::$prefix) ){
return $class_name::$prefix;
}else{
$seg = explode('\\', $class_name);
$base = $seg[count($seg) - 1];
return $this->str->camel_to_hyphen($... | php | public function get_prefix($class_name){
/** @var RestBase $class_name */
if( !empty($class_name::$prefix) ){
return $class_name::$prefix;
}else{
$seg = explode('\\', $class_name);
$base = $seg[count($seg) - 1];
return $this->str->camel_to_hyphen($... | [
"public",
"function",
"get_prefix",
"(",
"$",
"class_name",
")",
"{",
"/** @var RestBase $class_name */",
"if",
"(",
"!",
"empty",
"(",
"$",
"class_name",
"::",
"$",
"prefix",
")",
")",
"{",
"return",
"$",
"class_name",
"::",
"$",
"prefix",
";",
"}",
"else... | Get class prefix
@param string $class_name
@return string | [
"Get",
"class",
"prefix"
] | train | https://github.com/hametuha/wpametu/blob/0939373800815a8396291143d2a57967340da5aa/src/WPametu/API/Rewrite.php#L215-L224 |
DotZecker/Larafeed | src/Entry.php | Entry.prepare | public function prepare()
{
// The date format method to use with Carbon to convert the dates
$dateFormatMethod = 'to' . strtolower($this->format) . 'String';
if (null !== $this->pubDate) {
$this->pubDate = Carbon::parse($this->pubDate)->{$dateFormatMethod}();
}
... | php | public function prepare()
{
// The date format method to use with Carbon to convert the dates
$dateFormatMethod = 'to' . strtolower($this->format) . 'String';
if (null !== $this->pubDate) {
$this->pubDate = Carbon::parse($this->pubDate)->{$dateFormatMethod}();
}
... | [
"public",
"function",
"prepare",
"(",
")",
"{",
"// The date format method to use with Carbon to convert the dates",
"$",
"dateFormatMethod",
"=",
"'to'",
".",
"strtolower",
"(",
"$",
"this",
"->",
"format",
")",
".",
"'String'",
";",
"if",
"(",
"null",
"!==",
"$"... | Validate, auto-fill and sanitize the entry
@return void | [
"Validate",
"auto",
"-",
"fill",
"and",
"sanitize",
"the",
"entry"
] | train | https://github.com/DotZecker/Larafeed/blob/d696e2f97b584ed690fe7ba4ac5d739e266c75dd/src/Entry.php#L33-L49 |
DotZecker/Larafeed | src/Entry.php | Entry.autoFill | public function autoFill()
{
// The date format method to use with Carbon to convert the dates
$dateFormatMethod = 'to' . strtolower($this->format) . 'String';
if (null === $this->pubDate) {
$this->pubDate = Carbon::parse('now')->{$dateFormatMethod}();
}
if (nul... | php | public function autoFill()
{
// The date format method to use with Carbon to convert the dates
$dateFormatMethod = 'to' . strtolower($this->format) . 'String';
if (null === $this->pubDate) {
$this->pubDate = Carbon::parse('now')->{$dateFormatMethod}();
}
if (nul... | [
"public",
"function",
"autoFill",
"(",
")",
"{",
"// The date format method to use with Carbon to convert the dates",
"$",
"dateFormatMethod",
"=",
"'to'",
".",
"strtolower",
"(",
"$",
"this",
"->",
"format",
")",
".",
"'String'",
";",
"if",
"(",
"null",
"===",
"$... | Fill the attributes that can be auto-generated
@return void | [
"Fill",
"the",
"attributes",
"that",
"can",
"be",
"auto",
"-",
"generated"
] | train | https://github.com/DotZecker/Larafeed/blob/d696e2f97b584ed690fe7ba4ac5d739e266c75dd/src/Entry.php#L56-L70 |
alevilar/ristorantino-vendor | Compras/Model/Mercaderia.php | Mercaderia.unificarMercaderia | public function unificarMercaderia($id_mercaderia, $id) {
$datosMercaderia = $this->buscarMercaderiaPorId($id);
$name = $datosMercaderia[0]['Mercaderia']['name'];
if ($this->deleteall(array('Mercaderia.name' => $name, 'Mercaderia.id' => $id_mercaderia), false)) {
return $this->PedidoMercaderia->updateAll(arra... | php | public function unificarMercaderia($id_mercaderia, $id) {
$datosMercaderia = $this->buscarMercaderiaPorId($id);
$name = $datosMercaderia[0]['Mercaderia']['name'];
if ($this->deleteall(array('Mercaderia.name' => $name, 'Mercaderia.id' => $id_mercaderia), false)) {
return $this->PedidoMercaderia->updateAll(arra... | [
"public",
"function",
"unificarMercaderia",
"(",
"$",
"id_mercaderia",
",",
"$",
"id",
")",
"{",
"$",
"datosMercaderia",
"=",
"$",
"this",
"->",
"buscarMercaderiaPorId",
"(",
"$",
"id",
")",
";",
"$",
"name",
"=",
"$",
"datosMercaderia",
"[",
"0",
"]",
"... | Borra todas las mercaderías duplicadas, y despues actualiza la tabla compras_pedidos_mercaderias
con el id del producto que se unifico.
@param $id_mercaderia = id de la mercadería duplicada usada como condición para borrar.
@param $id = id de la mercadería que tenia las duplicaciones para actualizar
la tabla compras_p... | [
"Borra",
"todas",
"las",
"mercaderías",
"duplicadas",
"y",
"despues",
"actualiza",
"la",
"tabla",
"compras_pedidos_mercaderias",
"con",
"el",
"id",
"del",
"producto",
"que",
"se",
"unifico",
"."
] | train | https://github.com/alevilar/ristorantino-vendor/blob/6b91a1e20cc0ba09a1968d77e3de6512cfa2d966/Compras/Model/Mercaderia.php#L125-L136 |
DevGroup-ru/yii2-users-module | src/UsersModule.php | UsersModule.buildAliases | protected function buildAliases()
{
$this->routes = ArrayHelper::merge($this->defaultRoutes, $this->routes);
foreach ($this->routes as $alias => $route) {
Yii::setAlias($alias, $route);
}
} | php | protected function buildAliases()
{
$this->routes = ArrayHelper::merge($this->defaultRoutes, $this->routes);
foreach ($this->routes as $alias => $route) {
Yii::setAlias($alias, $route);
}
} | [
"protected",
"function",
"buildAliases",
"(",
")",
"{",
"$",
"this",
"->",
"routes",
"=",
"ArrayHelper",
"::",
"merge",
"(",
"$",
"this",
"->",
"defaultRoutes",
",",
"$",
"this",
"->",
"routes",
")",
";",
"foreach",
"(",
"$",
"this",
"->",
"routes",
"a... | Sets needed routes aliases | [
"Sets",
"needed",
"routes",
"aliases"
] | train | https://github.com/DevGroup-ru/yii2-users-module/blob/ff0103dc55c3462627ccc704c33e70c96053f750/src/UsersModule.php#L165-L171 |
Eresus/EresusCMS | src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php | ezcDbSchemaPgsqlWriter.saveToDb | public function saveToDb( ezcDbHandler $db, ezcDbSchema $dbSchema )
{
$db->beginTransaction();
foreach ( $this->convertToDDL( $dbSchema ) as $query )
{
if ( $this->isQueryAllowed( $db, $query ) )
{
$db->exec( $query );
}
else ... | php | public function saveToDb( ezcDbHandler $db, ezcDbSchema $dbSchema )
{
$db->beginTransaction();
foreach ( $this->convertToDDL( $dbSchema ) as $query )
{
if ( $this->isQueryAllowed( $db, $query ) )
{
$db->exec( $query );
}
else ... | [
"public",
"function",
"saveToDb",
"(",
"ezcDbHandler",
"$",
"db",
",",
"ezcDbSchema",
"$",
"dbSchema",
")",
"{",
"$",
"db",
"->",
"beginTransaction",
"(",
")",
";",
"foreach",
"(",
"$",
"this",
"->",
"convertToDDL",
"(",
"$",
"dbSchema",
")",
"as",
"$",
... | Creates tables defined in $dbSchema in the database referenced by $db.
If table already exists it will be removed first.
This method uses {@link convertToDDL} to create SQL for the schema
definition and then executes the return SQL statements on the database
handler $db.
@todo check for failed transaction
@param ezc... | [
"Creates",
"tables",
"defined",
"in",
"$dbSchema",
"in",
"the",
"database",
"referenced",
"by",
"$db",
"."
] | train | https://github.com/Eresus/EresusCMS/blob/b0afc661105f0a2f65d49abac13956cc93c5188d/src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php#L49-L83 |
Eresus/EresusCMS | src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php | ezcDbSchemaPgsqlWriter.isQueryAllowed | public function isQueryAllowed( ezcDbHandler $db, $query )
{
if ( substr( $query, 0, 10 ) == 'DROP TABLE' )
{
$tableName = trim( substr( $query, strlen( 'DROP TABLE ' ) ), '"' );
$result = $db->query( "SELECT count(*) FROM pg_tables WHERE tablename='$tableName'" )->fetchAll()... | php | public function isQueryAllowed( ezcDbHandler $db, $query )
{
if ( substr( $query, 0, 10 ) == 'DROP TABLE' )
{
$tableName = trim( substr( $query, strlen( 'DROP TABLE ' ) ), '"' );
$result = $db->query( "SELECT count(*) FROM pg_tables WHERE tablename='$tableName'" )->fetchAll()... | [
"public",
"function",
"isQueryAllowed",
"(",
"ezcDbHandler",
"$",
"db",
",",
"$",
"query",
")",
"{",
"if",
"(",
"substr",
"(",
"$",
"query",
",",
"0",
",",
"10",
")",
"==",
"'DROP TABLE'",
")",
"{",
"$",
"tableName",
"=",
"trim",
"(",
"substr",
"(",
... | Checks if certain query allowed.
Perform testing if table exist for DROP TABLE query
to avoid stoping execution while try to drop not existent table.
@param ezcDbHandler $db
@param string $query
@return boolean false if query should not be executed. | [
"Checks",
"if",
"certain",
"query",
"allowed",
"."
] | train | https://github.com/Eresus/EresusCMS/blob/b0afc661105f0a2f65d49abac13956cc93c5188d/src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php#L97-L120 |
Eresus/EresusCMS | src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php | ezcDbSchemaPgsqlWriter.applyDiffToDb | public function applyDiffToDb( ezcDbHandler $db, ezcDbSchemaDiff $dbSchemaDiff )
{
$db->beginTransaction();
foreach ( $this->convertDiffToDDL( $dbSchemaDiff ) as $query )
{
if ( $this->isQueryAllowed( $db, $query ) )
{
$db->exec( $query );
... | php | public function applyDiffToDb( ezcDbHandler $db, ezcDbSchemaDiff $dbSchemaDiff )
{
$db->beginTransaction();
foreach ( $this->convertDiffToDDL( $dbSchemaDiff ) as $query )
{
if ( $this->isQueryAllowed( $db, $query ) )
{
$db->exec( $query );
... | [
"public",
"function",
"applyDiffToDb",
"(",
"ezcDbHandler",
"$",
"db",
",",
"ezcDbSchemaDiff",
"$",
"dbSchemaDiff",
")",
"{",
"$",
"db",
"->",
"beginTransaction",
"(",
")",
";",
"foreach",
"(",
"$",
"this",
"->",
"convertDiffToDDL",
"(",
"$",
"dbSchemaDiff",
... | Applies the differences defined in $dbSchemaDiff to the database referenced by $db.
This method uses {@link convertDiffToDDL} to create SQL for the
differences and then executes the returned SQL statements on the
database handler $db.
@todo check for failed transaction
@param ezcDbHandler $db
@param ezcDbSchemaDi... | [
"Applies",
"the",
"differences",
"defined",
"in",
"$dbSchemaDiff",
"to",
"the",
"database",
"referenced",
"by",
"$db",
"."
] | train | https://github.com/Eresus/EresusCMS/blob/b0afc661105f0a2f65d49abac13956cc93c5188d/src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php#L146-L180 |
Eresus/EresusCMS | src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php | ezcDbSchemaPgsqlWriter.changeField | private function changeField( ezcDbHandler $db, $tableName, $changeFieldName, $changeFieldType )
{
$db->exec( "ALTER TABLE \"{$tableName}\" RENAME COLUMN \"{$changeFieldName}\" TO \"{$changeFieldName}_old\";" );
$db->exec( "ALTER TABLE \"{$tableName}\" ADD COLUMN \"{$changeFieldName}\" {$changeField... | php | private function changeField( ezcDbHandler $db, $tableName, $changeFieldName, $changeFieldType )
{
$db->exec( "ALTER TABLE \"{$tableName}\" RENAME COLUMN \"{$changeFieldName}\" TO \"{$changeFieldName}_old\";" );
$db->exec( "ALTER TABLE \"{$tableName}\" ADD COLUMN \"{$changeFieldName}\" {$changeField... | [
"private",
"function",
"changeField",
"(",
"ezcDbHandler",
"$",
"db",
",",
"$",
"tableName",
",",
"$",
"changeFieldName",
",",
"$",
"changeFieldType",
")",
"{",
"$",
"db",
"->",
"exec",
"(",
"\"ALTER TABLE \\\"{$tableName}\\\" RENAME COLUMN \\\"{$changeFieldName}\\\" TO... | Performs changing field in PostgreSQL table.
( workaround for "ALTER TABLE table ALTER field TYPE fieldDefinition"
that not alowed in PostgreSQL 7.x but works in PostgreSQL 8.x ).
@param ezcDbHandler $db
@param string $tableName
@param string $changeFieldName
@param string $changeFieldTyp... | [
"Performs",
"changing",
"field",
"in",
"PostgreSQL",
"table",
".",
"(",
"workaround",
"for",
"ALTER",
"TABLE",
"table",
"ALTER",
"field",
"TYPE",
"fieldDefinition",
"that",
"not",
"alowed",
"in",
"PostgreSQL",
"7",
".",
"x",
"but",
"works",
"in",
"PostgreSQL",... | train | https://github.com/Eresus/EresusCMS/blob/b0afc661105f0a2f65d49abac13956cc93c5188d/src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php#L204-L210 |
Eresus/EresusCMS | src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php | ezcDbSchemaPgsqlWriter.addField | private function addField( ezcDbHandler $db, $tableName, $fieldName, $fieldType )
{
$db->exec( "ALTER TABLE \"{$tableName}\" ADD \"{$fieldName}\" {$fieldType}" );
$db->exec( "ALTER TABLE \"{$tableName}\" ALTER \"{$fieldName}\" SET NOT NULL" );
} | php | private function addField( ezcDbHandler $db, $tableName, $fieldName, $fieldType )
{
$db->exec( "ALTER TABLE \"{$tableName}\" ADD \"{$fieldName}\" {$fieldType}" );
$db->exec( "ALTER TABLE \"{$tableName}\" ALTER \"{$fieldName}\" SET NOT NULL" );
} | [
"private",
"function",
"addField",
"(",
"ezcDbHandler",
"$",
"db",
",",
"$",
"tableName",
",",
"$",
"fieldName",
",",
"$",
"fieldType",
")",
"{",
"$",
"db",
"->",
"exec",
"(",
"\"ALTER TABLE \\\"{$tableName}\\\" ADD \\\"{$fieldName}\\\" {$fieldType}\"",
")",
";",
... | Performs adding field in PostgreSQL table.
( workaround for "ALTER TABLE table ADD field fieldDefinition NOT NULL"
that not alowed in PostgreSQL 7.x but works in PostgreSQL 8.x ).
@param ezcDbHandler $db
@param string $tableName
@param string $fieldName
@param string $fieldType | [
"Performs",
"adding",
"field",
"in",
"PostgreSQL",
"table",
".",
"(",
"workaround",
"for",
"ALTER",
"TABLE",
"table",
"ADD",
"field",
"fieldDefinition",
"NOT",
"NULL",
"that",
"not",
"alowed",
"in",
"PostgreSQL",
"7",
".",
"x",
"but",
"works",
"in",
"Postgre... | train | https://github.com/Eresus/EresusCMS/blob/b0afc661105f0a2f65d49abac13956cc93c5188d/src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php#L223-L227 |
Eresus/EresusCMS | src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php | ezcDbSchemaPgsqlWriter.generateAddFieldSql | protected function generateAddFieldSql( $tableName, $fieldName, ezcDbSchemaField $fieldDefinition )
{
$this->queries[] = "ALTER TABLE \"$tableName\" ADD " . $this->generateFieldSql( $fieldName, $fieldDefinition );
} | php | protected function generateAddFieldSql( $tableName, $fieldName, ezcDbSchemaField $fieldDefinition )
{
$this->queries[] = "ALTER TABLE \"$tableName\" ADD " . $this->generateFieldSql( $fieldName, $fieldDefinition );
} | [
"protected",
"function",
"generateAddFieldSql",
"(",
"$",
"tableName",
",",
"$",
"fieldName",
",",
"ezcDbSchemaField",
"$",
"fieldDefinition",
")",
"{",
"$",
"this",
"->",
"queries",
"[",
"]",
"=",
"\"ALTER TABLE \\\"$tableName\\\" ADD \"",
".",
"$",
"this",
"->",... | Adds a "alter table" query to add the field $fieldName to $tableName with the definition $fieldDefinition.
@param string $tableName
@param string $fieldName
@param ezcDbSchemaField $fieldDefinition | [
"Adds",
"a",
"alter",
"table",
"query",
"to",
"add",
"the",
"field",
"$fieldName",
"to",
"$tableName",
"with",
"the",
"definition",
"$fieldDefinition",
"."
] | train | https://github.com/Eresus/EresusCMS/blob/b0afc661105f0a2f65d49abac13956cc93c5188d/src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php#L325-L328 |
Eresus/EresusCMS | src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php | ezcDbSchemaPgsqlWriter.generateChangeFieldSql | protected function generateChangeFieldSql( $tableName, $fieldName, ezcDbSchemaField $fieldDefinition )
{
$fieldType = strstr( $this->generateFieldSql( $fieldName, $fieldDefinition ), ' ' );
if ( $fieldDefinition->autoIncrement )
{
$this->queries[] = "CREATE SEQUENCE \"{$tableNa... | php | protected function generateChangeFieldSql( $tableName, $fieldName, ezcDbSchemaField $fieldDefinition )
{
$fieldType = strstr( $this->generateFieldSql( $fieldName, $fieldDefinition ), ' ' );
if ( $fieldDefinition->autoIncrement )
{
$this->queries[] = "CREATE SEQUENCE \"{$tableNa... | [
"protected",
"function",
"generateChangeFieldSql",
"(",
"$",
"tableName",
",",
"$",
"fieldName",
",",
"ezcDbSchemaField",
"$",
"fieldDefinition",
")",
"{",
"$",
"fieldType",
"=",
"strstr",
"(",
"$",
"this",
"->",
"generateFieldSql",
"(",
"$",
"fieldName",
",",
... | Adds a "alter table" query to change the field $fieldName to $tableName with the definition $fieldDefinition.
@param string $tableName
@param string $fieldName
@param ezcDbSchemaField $fieldDefinition | [
"Adds",
"a",
"alter",
"table",
"query",
"to",
"change",
"the",
"field",
"$fieldName",
"to",
"$tableName",
"with",
"the",
"definition",
"$fieldDefinition",
"."
] | train | https://github.com/Eresus/EresusCMS/blob/b0afc661105f0a2f65d49abac13956cc93c5188d/src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/pgsql/writer.php#L337-L351 |
phpnfe/tools | src/Validar.php | Validar.validar | public static function validar($xml, $schemaFile)
{
//Para poder pegar os erros caso houver
libxml_use_internal_errors(true);
libxml_clear_errors();
if (is_file($xml)) {
$xml = file_get_contents($xml);
}
$dom = new DOMDocument('1.0', 'utf-8');
$... | php | public static function validar($xml, $schemaFile)
{
//Para poder pegar os erros caso houver
libxml_use_internal_errors(true);
libxml_clear_errors();
if (is_file($xml)) {
$xml = file_get_contents($xml);
}
$dom = new DOMDocument('1.0', 'utf-8');
$... | [
"public",
"static",
"function",
"validar",
"(",
"$",
"xml",
",",
"$",
"schemaFile",
")",
"{",
"//Para poder pegar os erros caso houver",
"libxml_use_internal_errors",
"(",
"true",
")",
";",
"libxml_clear_errors",
"(",
")",
";",
"if",
"(",
"is_file",
"(",
"$",
"x... | Valida um xml assinado.
@param $xml
@param $schemaFile
@return bool
@throws \Exception | [
"Valida",
"um",
"xml",
"assinado",
"."
] | train | https://github.com/phpnfe/tools/blob/303ca311989e0b345071f61b71d2b3bf7ee80454/src/Validar.php#L15-L42 |
xiewulong/yii2-fileupload | oss/libs/guzzle/stream/Guzzle/Stream/PhpStreamRequestFactory.php | PhpStreamRequestFactory.addDefaultContextOptions | protected function addDefaultContextOptions(RequestInterface $request)
{
$this->setContextValue('http', 'method', $request->getMethod());
$this->setContextValue('http', 'header', $request->getHeaderLines());
// Force 1.0 for now until PHP fully support chunked transfer-encoding decoding
... | php | protected function addDefaultContextOptions(RequestInterface $request)
{
$this->setContextValue('http', 'method', $request->getMethod());
$this->setContextValue('http', 'header', $request->getHeaderLines());
// Force 1.0 for now until PHP fully support chunked transfer-encoding decoding
... | [
"protected",
"function",
"addDefaultContextOptions",
"(",
"RequestInterface",
"$",
"request",
")",
"{",
"$",
"this",
"->",
"setContextValue",
"(",
"'http'",
",",
"'method'",
",",
"$",
"request",
"->",
"getMethod",
"(",
")",
")",
";",
"$",
"this",
"->",
"setC... | Adds the default context options to the stream context options
@param RequestInterface $request Request | [
"Adds",
"the",
"default",
"context",
"options",
"to",
"the",
"stream",
"context",
"options"
] | train | https://github.com/xiewulong/yii2-fileupload/blob/3e75b17a4a18dd8466e3f57c63136de03470ca82/oss/libs/guzzle/stream/Guzzle/Stream/PhpStreamRequestFactory.php#L114-L121 |
xiewulong/yii2-fileupload | oss/libs/guzzle/stream/Guzzle/Stream/PhpStreamRequestFactory.php | PhpStreamRequestFactory.createResource | protected function createResource($callback)
{
// Turn off error reporting while we try to initiate the request
$level = error_reporting(0);
$resource = call_user_func($callback);
error_reporting($level);
// If the resource could not be created, then grab the last error and ... | php | protected function createResource($callback)
{
// Turn off error reporting while we try to initiate the request
$level = error_reporting(0);
$resource = call_user_func($callback);
error_reporting($level);
// If the resource could not be created, then grab the last error and ... | [
"protected",
"function",
"createResource",
"(",
"$",
"callback",
")",
"{",
"// Turn off error reporting while we try to initiate the request",
"$",
"level",
"=",
"error_reporting",
"(",
"0",
")",
";",
"$",
"resource",
"=",
"call_user_func",
"(",
"$",
"callback",
")",
... | Create a resource and check to ensure it was created successfully
@param callable $callback Closure to invoke that must return a valid resource
@return resource
@throws RuntimeException on error | [
"Create",
"a",
"resource",
"and",
"check",
"to",
"ensure",
"it",
"was",
"created",
"successfully"
] | train | https://github.com/xiewulong/yii2-fileupload/blob/3e75b17a4a18dd8466e3f57c63136de03470ca82/oss/libs/guzzle/stream/Guzzle/Stream/PhpStreamRequestFactory.php#L252-L269 |
hametuha/wpametu | src/WPametu/UI/MetaBox.php | MetaBox.override | public function override($post_type, $post){
if( $this->is_valid_post_type($post_type) ){
foreach( $this->fields as $name => $vars ){
switch( $name ){
case 'excerpt':
remove_meta_box('postexcerpt', $post_type, 'normal');
... | php | public function override($post_type, $post){
if( $this->is_valid_post_type($post_type) ){
foreach( $this->fields as $name => $vars ){
switch( $name ){
case 'excerpt':
remove_meta_box('postexcerpt', $post_type, 'normal');
... | [
"public",
"function",
"override",
"(",
"$",
"post_type",
",",
"$",
"post",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"is_valid_post_type",
"(",
"$",
"post_type",
")",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"fields",
"as",
"$",
"name",
"=>",
"$",
... | Override default meta box
@param string $post_type
@param \WP_Post $post | [
"Override",
"default",
"meta",
"box"
] | train | https://github.com/hametuha/wpametu/blob/0939373800815a8396291143d2a57967340da5aa/src/WPametu/UI/MetaBox.php#L117-L144 |
hametuha/wpametu | src/WPametu/UI/MetaBox.php | MetaBox.save_post | public function save_post($post_id, \WP_Post $post ){
// Skip auto save
if( wp_is_post_revision($post) || wp_is_post_autosave($post) ){
return;
}
// Check Nonce
if( !$this->verify_nonce() ){
return;
}
// O.K., let's save
foreach( $t... | php | public function save_post($post_id, \WP_Post $post ){
// Skip auto save
if( wp_is_post_revision($post) || wp_is_post_autosave($post) ){
return;
}
// Check Nonce
if( !$this->verify_nonce() ){
return;
}
// O.K., let's save
foreach( $t... | [
"public",
"function",
"save_post",
"(",
"$",
"post_id",
",",
"\\",
"WP_Post",
"$",
"post",
")",
"{",
"// Skip auto save",
"if",
"(",
"wp_is_post_revision",
"(",
"$",
"post",
")",
"||",
"wp_is_post_autosave",
"(",
"$",
"post",
")",
")",
"{",
"return",
";",
... | Save post data
@param int $post_id
@param \WP_Post $post | [
"Save",
"post",
"data"
] | train | https://github.com/hametuha/wpametu/blob/0939373800815a8396291143d2a57967340da5aa/src/WPametu/UI/MetaBox.php#L166-L191 |
hametuha/wpametu | src/WPametu/UI/MetaBox.php | MetaBox.render | public function render( \WP_Post $post ){
$this->nonce_field();
$this->desc();
echo '<table class="table form-table wpametu-meta-table">';
foreach( $this->loop_fields() as $field ){
if( !is_wp_error($field) ){
/** @var \WPametu\UI\Field\Base $field */
... | php | public function render( \WP_Post $post ){
$this->nonce_field();
$this->desc();
echo '<table class="table form-table wpametu-meta-table">';
foreach( $this->loop_fields() as $field ){
if( !is_wp_error($field) ){
/** @var \WPametu\UI\Field\Base $field */
... | [
"public",
"function",
"render",
"(",
"\\",
"WP_Post",
"$",
"post",
")",
"{",
"$",
"this",
"->",
"nonce_field",
"(",
")",
";",
"$",
"this",
"->",
"desc",
"(",
")",
";",
"echo",
"'<table class=\"table form-table wpametu-meta-table\">'",
";",
"foreach",
"(",
"$... | Render meta box content
@param \WP_Post $post | [
"Render",
"meta",
"box",
"content"
] | train | https://github.com/hametuha/wpametu/blob/0939373800815a8396291143d2a57967340da5aa/src/WPametu/UI/MetaBox.php#L198-L212 |
hametuha/wpametu | src/WPametu/UI/MetaBox.php | MetaBox.loop_fields | protected function loop_fields(){
foreach( $this->fields as $name => $args ){
$return = null;
if( isset($args['class']) && class_exists($args['class']) ){
$class_name = $args['class'];
unset($args['class']);
$args['name'] = $name;
... | php | protected function loop_fields(){
foreach( $this->fields as $name => $args ){
$return = null;
if( isset($args['class']) && class_exists($args['class']) ){
$class_name = $args['class'];
unset($args['class']);
$args['name'] = $name;
... | [
"protected",
"function",
"loop_fields",
"(",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"fields",
"as",
"$",
"name",
"=>",
"$",
"args",
")",
"{",
"$",
"return",
"=",
"null",
";",
"if",
"(",
"isset",
"(",
"$",
"args",
"[",
"'class'",
"]",
")",
"... | Generator
@return \Generator | [
"Generator"
] | train | https://github.com/hametuha/wpametu/blob/0939373800815a8396291143d2a57967340da5aa/src/WPametu/UI/MetaBox.php#L219-L236 |
willhoffmann/domuserp-php | src/Resources/Brands/Secondary/Models.php | Models.getList | public function getList(array $query = [])
{
$list = $this->pagination(
self::DOMUSERP_API_OPERACIONAL . '/marcas/' . $this->brandId . '/modelos',
$query
);
return $list;
} | php | public function getList(array $query = [])
{
$list = $this->pagination(
self::DOMUSERP_API_OPERACIONAL . '/marcas/' . $this->brandId . '/modelos',
$query
);
return $list;
} | [
"public",
"function",
"getList",
"(",
"array",
"$",
"query",
"=",
"[",
"]",
")",
"{",
"$",
"list",
"=",
"$",
"this",
"->",
"pagination",
"(",
"self",
"::",
"DOMUSERP_API_OPERACIONAL",
".",
"'/marcas/'",
".",
"$",
"this",
"->",
"brandId",
".",
"'/modelos'... | List of product models
@param array $query
@return array|string
@throws \GuzzleHttp\Exception\GuzzleException | [
"List",
"of",
"product",
"models"
] | train | https://github.com/willhoffmann/domuserp-php/blob/44e77a4f02b0252bc26cae4c0e6b2b7d578f10a6/src/Resources/Brands/Secondary/Models.php#L35-L43 |
willhoffmann/domuserp-php | src/Resources/Brands/Secondary/Models.php | Models.get | public function get($id)
{
$data = $this->execute(
self::HTTP_GET,
self::DOMUSERP_API_OPERACIONAL . '/marcas/' . $this->brandId . '/modelos/' . $id
);
return $data;
} | php | public function get($id)
{
$data = $this->execute(
self::HTTP_GET,
self::DOMUSERP_API_OPERACIONAL . '/marcas/' . $this->brandId . '/modelos/' . $id
);
return $data;
} | [
"public",
"function",
"get",
"(",
"$",
"id",
")",
"{",
"$",
"data",
"=",
"$",
"this",
"->",
"execute",
"(",
"self",
"::",
"HTTP_GET",
",",
"self",
"::",
"DOMUSERP_API_OPERACIONAL",
".",
"'/marcas/'",
".",
"$",
"this",
"->",
"brandId",
".",
"'/modelos/'",... | Gets the product models data according to the id parameter
@param int $id
@return array|string
@throws \GuzzleHttp\Exception\GuzzleException | [
"Gets",
"the",
"product",
"models",
"data",
"according",
"to",
"the",
"id",
"parameter"
] | train | https://github.com/willhoffmann/domuserp-php/blob/44e77a4f02b0252bc26cae4c0e6b2b7d578f10a6/src/Resources/Brands/Secondary/Models.php#L52-L60 |
WellCommerce/AppBundle | Form/DataTransformer/UserGroupPermissionToArrayTransformer.php | UserGroupPermissionToArrayTransformer.transform | public function transform($modelData)
{
$values = [];
if ($modelData instanceof Collection) {
$modelData->map(function (UserGroupPermission $userGroupPermission) use (&$values) {
list($permissionType, $action) = explode('.', $userGroupPermission->getName());
... | php | public function transform($modelData)
{
$values = [];
if ($modelData instanceof Collection) {
$modelData->map(function (UserGroupPermission $userGroupPermission) use (&$values) {
list($permissionType, $action) = explode('.', $userGroupPermission->getName());
... | [
"public",
"function",
"transform",
"(",
"$",
"modelData",
")",
"{",
"$",
"values",
"=",
"[",
"]",
";",
"if",
"(",
"$",
"modelData",
"instanceof",
"Collection",
")",
"{",
"$",
"modelData",
"->",
"map",
"(",
"function",
"(",
"UserGroupPermission",
"$",
"us... | {@inheritdoc} | [
"{"
] | train | https://github.com/WellCommerce/AppBundle/blob/2add687d1c898dd0b24afd611d896e3811a0eac3/Form/DataTransformer/UserGroupPermissionToArrayTransformer.php#L32-L44 |
WellCommerce/AppBundle | Form/DataTransformer/UserGroupPermissionToArrayTransformer.php | UserGroupPermissionToArrayTransformer.clearPreviousCollection | protected function clearPreviousCollection(Collection $collection)
{
if ($collection->count()) {
foreach ($collection as $item) {
$collection->removeElement($item);
}
}
} | php | protected function clearPreviousCollection(Collection $collection)
{
if ($collection->count()) {
foreach ($collection as $item) {
$collection->removeElement($item);
}
}
} | [
"protected",
"function",
"clearPreviousCollection",
"(",
"Collection",
"$",
"collection",
")",
"{",
"if",
"(",
"$",
"collection",
"->",
"count",
"(",
")",
")",
"{",
"foreach",
"(",
"$",
"collection",
"as",
"$",
"item",
")",
"{",
"$",
"collection",
"->",
... | Resets previous photo collection
@param Collection $collection | [
"Resets",
"previous",
"photo",
"collection"
] | train | https://github.com/WellCommerce/AppBundle/blob/2add687d1c898dd0b24afd611d896e3811a0eac3/Form/DataTransformer/UserGroupPermissionToArrayTransformer.php#L78-L85 |
mvccore/ext-router-module | src/MvcCore/Ext/Routers/Module/UrlByRouteSections.php | UrlByRouteSections.urlByRouteSections | protected function urlByRouteSections (\MvcCore\IRoute & $route, array & $params = [], $urlParamRouteName = NULL) {
/** @var $route \MvcCore\Route */
$defaultParams = array_merge([], $this->GetDefaultParams() ?: []);
if ($urlParamRouteName == 'self')
$params = array_merge($this->requestedParams ?: [], $params... | php | protected function urlByRouteSections (\MvcCore\IRoute & $route, array & $params = [], $urlParamRouteName = NULL) {
/** @var $route \MvcCore\Route */
$defaultParams = array_merge([], $this->GetDefaultParams() ?: []);
if ($urlParamRouteName == 'self')
$params = array_merge($this->requestedParams ?: [], $params... | [
"protected",
"function",
"urlByRouteSections",
"(",
"\\",
"MvcCore",
"\\",
"IRoute",
"&",
"$",
"route",
",",
"array",
"&",
"$",
"params",
"=",
"[",
"]",
",",
"$",
"urlParamRouteName",
"=",
"NULL",
")",
"{",
"/** @var $route \\MvcCore\\Route */",
"$",
"defaultP... | Complete semi-finished result URL as two section strings and system
params array. First section as base section with scheme, domain and base
path, second section as application requested path and query string and
third section as system params like `media_version` and/or `localization`.
Those params could be inserted b... | [
"Complete",
"semi",
"-",
"finished",
"result",
"URL",
"as",
"two",
"section",
"strings",
"and",
"system",
"params",
"array",
".",
"First",
"section",
"as",
"base",
"section",
"with",
"scheme",
"domain",
"and",
"base",
"path",
"second",
"section",
"as",
"appl... | train | https://github.com/mvccore/ext-router-module/blob/7695784a451db86cca6a43c98d076803cd0a50a7/src/MvcCore/Ext/Routers/Module/UrlByRouteSections.php#L48-L64 |
ShaoZeMing/laravel-merchant | src/Middleware/LogOperation.php | LogOperation.handle | public function handle(Request $request, \Closure $next)
{
if ($this->shouldLogOperation($request)) {
$log = [
'user_id' => Merchant::user()->id,
'path' => $request->path(),
'method' => $request->method(),
'ip' => $request-... | php | public function handle(Request $request, \Closure $next)
{
if ($this->shouldLogOperation($request)) {
$log = [
'user_id' => Merchant::user()->id,
'path' => $request->path(),
'method' => $request->method(),
'ip' => $request-... | [
"public",
"function",
"handle",
"(",
"Request",
"$",
"request",
",",
"\\",
"Closure",
"$",
"next",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"shouldLogOperation",
"(",
"$",
"request",
")",
")",
"{",
"$",
"log",
"=",
"[",
"'user_id'",
"=>",
"Merchant",
... | Handle an incoming request.
@param \Illuminate\Http\Request $request
@param \Closure $next
@return mixed | [
"Handle",
"an",
"incoming",
"request",
"."
] | train | https://github.com/ShaoZeMing/laravel-merchant/blob/20801b1735e7832a6e58b37c2c391328f8d626fa/src/Middleware/LogOperation.php#L20-L35 |
heidelpay/PhpDoc | src/phpDocumentor/Transformer/Command/Template/ListCommand.php | ListCommand.execute | protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln('Available templates:');
foreach ($this->factory->getAllNames() as $template_name) {
$output->writeln('* '.$template_name);
}
$output->writeln('');
} | php | protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln('Available templates:');
foreach ($this->factory->getAllNames() as $template_name) {
$output->writeln('* '.$template_name);
}
$output->writeln('');
} | [
"protected",
"function",
"execute",
"(",
"InputInterface",
"$",
"input",
",",
"OutputInterface",
"$",
"output",
")",
"{",
"$",
"output",
"->",
"writeln",
"(",
"'Available templates:'",
")",
";",
"foreach",
"(",
"$",
"this",
"->",
"factory",
"->",
"getAllNames"... | Retrieves all template names from the Template Factory and sends those to stdout.
@param InputInterface $input
@param OutputInterface $output
@return void | [
"Retrieves",
"all",
"template",
"names",
"from",
"the",
"Template",
"Factory",
"and",
"sends",
"those",
"to",
"stdout",
"."
] | train | https://github.com/heidelpay/PhpDoc/blob/5ac9e842cbd4cbb70900533b240c131f3515ee02/src/phpDocumentor/Transformer/Command/Template/ListCommand.php#L67-L74 |
surebert/surebert-framework | src/sb/Request.php | Request.setInput | public function setInput(&$post, &$cookie, &$files, &$put, &$delete, &$data)
{
$this->post = $post;
$this->cookie = $cookie;
$this->files = $files;
$this->put = $put;
$this->delete = $delete;
$this->data = $data;
} | php | public function setInput(&$post, &$cookie, &$files, &$put, &$delete, &$data)
{
$this->post = $post;
$this->cookie = $cookie;
$this->files = $files;
$this->put = $put;
$this->delete = $delete;
$this->data = $data;
} | [
"public",
"function",
"setInput",
"(",
"&",
"$",
"post",
",",
"&",
"$",
"cookie",
",",
"&",
"$",
"files",
",",
"&",
"$",
"put",
",",
"&",
"$",
"delete",
",",
"&",
"$",
"data",
")",
"{",
"$",
"this",
"->",
"post",
"=",
"$",
"post",
";",
"$",
... | Sets the input for the request
@param $post
@param $cookie
@param $files | [
"Sets",
"the",
"input",
"for",
"the",
"request"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L123-L132 |
surebert/surebert-framework | src/sb/Request.php | Request.setInputArgsDelimiter | public function setInputArgsDelimiter($input_args_delimiter)
{
//parse arguments by removing path
$args = preg_replace("~^.{" . strlen($this->path) . "}/?~", "", $this->request);
//remove $_GET string
$args = preg_replace("~\?.*?$~", "", $args);
if ($args !== '') {
... | php | public function setInputArgsDelimiter($input_args_delimiter)
{
//parse arguments by removing path
$args = preg_replace("~^.{" . strlen($this->path) . "}/?~", "", $this->request);
//remove $_GET string
$args = preg_replace("~\?.*?$~", "", $args);
if ($args !== '') {
... | [
"public",
"function",
"setInputArgsDelimiter",
"(",
"$",
"input_args_delimiter",
")",
"{",
"//parse arguments by removing path",
"$",
"args",
"=",
"preg_replace",
"(",
"\"~^.{\"",
".",
"strlen",
"(",
"$",
"this",
"->",
"path",
")",
".",
"\"}/?~\"",
",",
"\"\"",
... | Sets the input argument delimeter and parses it
@param $input_args_delimiter | [
"Sets",
"the",
"input",
"argument",
"delimeter",
"and",
"parses",
"it"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L138-L160 |
surebert/surebert-framework | src/sb/Request.php | Request.getGet | public function getGet($key, $default_val = null)
{
if (isset($this->get[$key])) {
return $this->get[$key];
}
return $default_val;
} | php | public function getGet($key, $default_val = null)
{
if (isset($this->get[$key])) {
return $this->get[$key];
}
return $default_val;
} | [
"public",
"function",
"getGet",
"(",
"$",
"key",
",",
"$",
"default_val",
"=",
"null",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"get",
"[",
"$",
"key",
"]",
")",
")",
"{",
"return",
"$",
"this",
"->",
"get",
"[",
"$",
"key",
"]",
... | Gets a GET variable value or returns the default value (null unless overridden)
@param string $key The $_GET var key to look for
@param mixed $default_val null by default
@return mixed string value or null | [
"Gets",
"a",
"GET",
"variable",
"value",
"or",
"returns",
"the",
"default",
"value",
"(",
"null",
"unless",
"overridden",
")"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L168-L176 |
surebert/surebert-framework | src/sb/Request.php | Request.getPut | public function getPut($key, $default_val = null)
{
if (isset($this->put[$key])) {
return $this->put[$key];
}
return $default_val;
} | php | public function getPut($key, $default_val = null)
{
if (isset($this->put[$key])) {
return $this->put[$key];
}
return $default_val;
} | [
"public",
"function",
"getPut",
"(",
"$",
"key",
",",
"$",
"default_val",
"=",
"null",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"put",
"[",
"$",
"key",
"]",
")",
")",
"{",
"return",
"$",
"this",
"->",
"put",
"[",
"$",
"key",
"]",
... | Gets a PUT variable value or returns the default value (null unless overridden)
@param string $key The $_POST var key to look for
@param mixed $default_val null by default
@return mixed string value or null | [
"Gets",
"a",
"PUT",
"variable",
"value",
"or",
"returns",
"the",
"default",
"value",
"(",
"null",
"unless",
"overridden",
")"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L214-L221 |
surebert/surebert-framework | src/sb/Request.php | Request.getDelete | public function getDelete($key, $default_val = null)
{
if (isset($this->delete[$key])) {
return $this->delete[$key];
}
return $default_val;
} | php | public function getDelete($key, $default_val = null)
{
if (isset($this->delete[$key])) {
return $this->delete[$key];
}
return $default_val;
} | [
"public",
"function",
"getDelete",
"(",
"$",
"key",
",",
"$",
"default_val",
"=",
"null",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"delete",
"[",
"$",
"key",
"]",
")",
")",
"{",
"return",
"$",
"this",
"->",
"delete",
"[",
"$",
"key",... | Gets a post variable value or returns the default value (null unless overridden)
@param string $key The $_POST var key to look for
@param mixed $default_val null by default
@return mixed string value or null | [
"Gets",
"a",
"post",
"variable",
"value",
"or",
"returns",
"the",
"default",
"value",
"(",
"null",
"unless",
"overridden",
")"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L229-L236 |
surebert/surebert-framework | src/sb/Request.php | Request.getSession | public function getSession($key, $default_val = null)
{
if (isset($_SESSION[$key])) {
return $_SESSION[$key];
}
return $default_val;
} | php | public function getSession($key, $default_val = null)
{
if (isset($_SESSION[$key])) {
return $_SESSION[$key];
}
return $default_val;
} | [
"public",
"function",
"getSession",
"(",
"$",
"key",
",",
"$",
"default_val",
"=",
"null",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"_SESSION",
"[",
"$",
"key",
"]",
")",
")",
"{",
"return",
"$",
"_SESSION",
"[",
"$",
"key",
"]",
";",
"}",
"return... | Gets a get variable value or returns the default value (null unless overridden)
@param string $key The $_SESSION var key to look for
@param mixed $default_val null by default
@return mixed string value or null | [
"Gets",
"a",
"get",
"variable",
"value",
"or",
"returns",
"the",
"default",
"value",
"(",
"null",
"unless",
"overridden",
")"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L259-L267 |
surebert/surebert-framework | src/sb/Request.php | Request.getArg | public function getArg($arg_num, $default_val = null)
{
if (isset($this->args[$arg_num])) {
return $this->args[$arg_num];
}
return $default_val;
} | php | public function getArg($arg_num, $default_val = null)
{
if (isset($this->args[$arg_num])) {
return $this->args[$arg_num];
}
return $default_val;
} | [
"public",
"function",
"getArg",
"(",
"$",
"arg_num",
",",
"$",
"default_val",
"=",
"null",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"args",
"[",
"$",
"arg_num",
"]",
")",
")",
"{",
"return",
"$",
"this",
"->",
"args",
"[",
"$",
"arg_... | Gets a args variable value or returns the default value (null unless overridden)
@param integer $arg_num The numeric arg value
@param mixed $default_val null by default
@return mixed string value or null | [
"Gets",
"a",
"args",
"variable",
"value",
"or",
"returns",
"the",
"default",
"value",
"(",
"null",
"unless",
"overridden",
")"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L275-L282 |
surebert/surebert-framework | src/sb/Request.php | Request.getFile | public function getFile($key)
{
if (isset($this->files[$key])) {
return $this->files[$key];
}
return null;
} | php | public function getFile($key)
{
if (isset($this->files[$key])) {
return $this->files[$key];
}
return null;
} | [
"public",
"function",
"getFile",
"(",
"$",
"key",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"files",
"[",
"$",
"key",
"]",
")",
")",
"{",
"return",
"$",
"this",
"->",
"files",
"[",
"$",
"key",
"]",
";",
"}",
"return",
"null",
";",
... | Gets a uploaded file reference, otherwise returns null
@param string $key The key to look for
@return array the file that was uploaded | [
"Gets",
"a",
"uploaded",
"file",
"reference",
"otherwise",
"returns",
"null"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L290-L297 |
surebert/surebert-framework | src/sb/Request.php | Request.getPath | public function getPath($part=null){
if(is_null($part)){
return $this->path;
}
if(isset($this->path_array[$part])){
return $this->path_array[$part];
}
return false;
} | php | public function getPath($part=null){
if(is_null($part)){
return $this->path;
}
if(isset($this->path_array[$part])){
return $this->path_array[$part];
}
return false;
} | [
"public",
"function",
"getPath",
"(",
"$",
"part",
"=",
"null",
")",
"{",
"if",
"(",
"is_null",
"(",
"$",
"part",
")",
")",
"{",
"return",
"$",
"this",
"->",
"path",
";",
"}",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"path_array",
"[",
"$",
... | Grabs the part of the path referenced by index
e.g. if path was /image/of/dog $this->getPath(0) would return image
@param int $part optionally which part to return
@return mixed string or false if not set | [
"Grabs",
"the",
"part",
"of",
"the",
"path",
"referenced",
"by",
"index",
"e",
".",
"g",
".",
"if",
"path",
"was",
"/",
"image",
"/",
"of",
"/",
"dog",
"$this",
"-",
">",
"getPath",
"(",
"0",
")",
"would",
"return",
"image"
] | train | https://github.com/surebert/surebert-framework/blob/f2f32eb693bd39385ceb93355efb5b2a429f27ce/src/sb/Request.php#L321-L332 |
mustardandrew/muan-laravel-acl | src/Traits/PrepareUserTrait.php | PrepareUserTrait.prepareUser | public function prepareUser($id)
{
$userClass = config('auth.providers.users.model');
if (! class_exists($userClass)) {
throw new Exception("User class {$userClass} not found.");
}
if(! $user = $userClass::whereId($id)->first()) {
throw new Exception("User b... | php | public function prepareUser($id)
{
$userClass = config('auth.providers.users.model');
if (! class_exists($userClass)) {
throw new Exception("User class {$userClass} not found.");
}
if(! $user = $userClass::whereId($id)->first()) {
throw new Exception("User b... | [
"public",
"function",
"prepareUser",
"(",
"$",
"id",
")",
"{",
"$",
"userClass",
"=",
"config",
"(",
"'auth.providers.users.model'",
")",
";",
"if",
"(",
"!",
"class_exists",
"(",
"$",
"userClass",
")",
")",
"{",
"throw",
"new",
"Exception",
"(",
"\"User c... | Prepare user
@param int $id
@return mixed
@throws Exception | [
"Prepare",
"user"
] | train | https://github.com/mustardandrew/muan-laravel-acl/blob/b5f23340b5536babb98d9fd0d727a7a3371c97d5/src/Traits/PrepareUserTrait.php#L22-L35 |
rhosocial/yii2-user | UserSearch.php | UserSearch.gmdate | public function gmdate($attribute, $params, $validator)
{
if (isset($this->$attribute)) {
$timestamp = strtotime($this->$attribute);
$this->{$attribute . 'InUtc'} = gmdate('Y-m-d H:i:s', $timestamp);
}
} | php | public function gmdate($attribute, $params, $validator)
{
if (isset($this->$attribute)) {
$timestamp = strtotime($this->$attribute);
$this->{$attribute . 'InUtc'} = gmdate('Y-m-d H:i:s', $timestamp);
}
} | [
"public",
"function",
"gmdate",
"(",
"$",
"attribute",
",",
"$",
"params",
",",
"$",
"validator",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"$",
"attribute",
")",
")",
"{",
"$",
"timestamp",
"=",
"strtotime",
"(",
"$",
"this",
"->",
"$"... | Convert time attribute to UTC time.
@param string $attribute
@param array $params
@param mixed $validator | [
"Convert",
"time",
"attribute",
"to",
"UTC",
"time",
"."
] | train | https://github.com/rhosocial/yii2-user/blob/96737a9d8ca7e9c42cd2b7736d6c0a90ede6e5bc/UserSearch.php#L84-L90 |
rhosocial/yii2-user | UserSearch.php | UserSearch.search | public function search($params)
{
$query = static::find();
/* @var $query BaseUserQuery */
$userClass = $this->userClass;
$query = $query->from("{$userClass::tableName()} {$this->userAlias}");
$noInitUser = $userClass::buildNoInitModel();
/* @var $noInitUser User */
... | php | public function search($params)
{
$query = static::find();
/* @var $query BaseUserQuery */
$userClass = $this->userClass;
$query = $query->from("{$userClass::tableName()} {$this->userAlias}");
$noInitUser = $userClass::buildNoInitModel();
/* @var $noInitUser User */
... | [
"public",
"function",
"search",
"(",
"$",
"params",
")",
"{",
"$",
"query",
"=",
"static",
"::",
"find",
"(",
")",
";",
"/* @var $query BaseUserQuery */",
"$",
"userClass",
"=",
"$",
"this",
"->",
"userClass",
";",
"$",
"query",
"=",
"$",
"query",
"->",
... | Search
@param array $params
@return ActiveDataProvider | [
"Search"
] | train | https://github.com/rhosocial/yii2-user/blob/96737a9d8ca7e9c42cd2b7736d6c0a90ede6e5bc/UserSearch.php#L97-L170 |
rhosocial/yii2-user | UserSearch.php | UserSearch.attributeLabels | public function attributeLabels()
{
$attributeLabels = parent::attributeLabels();
$attributeLabels['id'] = Yii::t('user', 'User ID');
$attributeLabels['nickname'] = Yii::t('user', 'Nickname');
$attributeLabels['first_name'] = Yii::t('user', 'First Name');
$attributeLabels['la... | php | public function attributeLabels()
{
$attributeLabels = parent::attributeLabels();
$attributeLabels['id'] = Yii::t('user', 'User ID');
$attributeLabels['nickname'] = Yii::t('user', 'Nickname');
$attributeLabels['first_name'] = Yii::t('user', 'First Name');
$attributeLabels['la... | [
"public",
"function",
"attributeLabels",
"(",
")",
"{",
"$",
"attributeLabels",
"=",
"parent",
"::",
"attributeLabels",
"(",
")",
";",
"$",
"attributeLabels",
"[",
"'id'",
"]",
"=",
"Yii",
"::",
"t",
"(",
"'user'",
",",
"'User ID'",
")",
";",
"$",
"attri... | Add `createdFrom` & `createdTo` attributes.
@return array | [
"Add",
"createdFrom",
"&",
"createdTo",
"attributes",
"."
] | train | https://github.com/rhosocial/yii2-user/blob/96737a9d8ca7e9c42cd2b7736d6c0a90ede6e5bc/UserSearch.php#L176-L187 |
php-lug/lug | src/Bundle/UiBundle/DependencyInjection/Compiler/RegisterMenuPass.php | RegisterMenuPass.process | public function process(ContainerBuilder $container)
{
foreach ($container->findTaggedServiceIds($tag = 'lug.menu.builder') as $service => $attributes) {
foreach ($attributes as $attribute) {
if (!isset($attribute['alias'])) {
throw new TagAttributeNotFoundExc... | php | public function process(ContainerBuilder $container)
{
foreach ($container->findTaggedServiceIds($tag = 'lug.menu.builder') as $service => $attributes) {
foreach ($attributes as $attribute) {
if (!isset($attribute['alias'])) {
throw new TagAttributeNotFoundExc... | [
"public",
"function",
"process",
"(",
"ContainerBuilder",
"$",
"container",
")",
"{",
"foreach",
"(",
"$",
"container",
"->",
"findTaggedServiceIds",
"(",
"$",
"tag",
"=",
"'lug.menu.builder'",
")",
"as",
"$",
"service",
"=>",
"$",
"attributes",
")",
"{",
"f... | {@inheritdoc} | [
"{"
] | train | https://github.com/php-lug/lug/blob/81c109f187eba0a60f17e8cc59984ebb31841db7/src/Bundle/UiBundle/DependencyInjection/Compiler/RegisterMenuPass.php#L29-L44 |
php-lug/lug | src/Bundle/UiBundle/DependencyInjection/Compiler/RegisterMenuPass.php | RegisterMenuPass.createMenuService | private function createMenuService($service, $alias)
{
$definition = new Definition(ItemInterface::class);
$definition->setFactory([new Reference($service), 'create']);
$definition->addTag('knp_menu.menu', ['alias' => $alias]);
return $definition;
} | php | private function createMenuService($service, $alias)
{
$definition = new Definition(ItemInterface::class);
$definition->setFactory([new Reference($service), 'create']);
$definition->addTag('knp_menu.menu', ['alias' => $alias]);
return $definition;
} | [
"private",
"function",
"createMenuService",
"(",
"$",
"service",
",",
"$",
"alias",
")",
"{",
"$",
"definition",
"=",
"new",
"Definition",
"(",
"ItemInterface",
"::",
"class",
")",
";",
"$",
"definition",
"->",
"setFactory",
"(",
"[",
"new",
"Reference",
"... | @param string $service
@param string $alias
@return Definition | [
"@param",
"string",
"$service",
"@param",
"string",
"$alias"
] | train | https://github.com/php-lug/lug/blob/81c109f187eba0a60f17e8cc59984ebb31841db7/src/Bundle/UiBundle/DependencyInjection/Compiler/RegisterMenuPass.php#L52-L59 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getOauthAuthorization | public function getOauthAuthorization($client_id, $client_secret, $code) {
$instance = new getOauthAuthorization($this, $this->getUserAgent(), $client_id, $client_secret, $code);
return $instance;
} | php | public function getOauthAuthorization($client_id, $client_secret, $code) {
$instance = new getOauthAuthorization($this, $this->getUserAgent(), $client_id, $client_secret, $code);
return $instance;
} | [
"public",
"function",
"getOauthAuthorization",
"(",
"$",
"client_id",
",",
"$",
"client_secret",
",",
"$",
"code",
")",
"{",
"$",
"instance",
"=",
"new",
"getOauthAuthorization",
"(",
"$",
"this",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",... | getOauthAuthorization
Retrieve the Outh2 token for an application. You should have directed the user
to https://github.com/login/oauth/authorize with client_id etc set before
calling this.
@param mixed $client_id string Required. The client ID you received from GitHub
when you registered.
@param mixed $client_secret ... | [
"getOauthAuthorization"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L218-L221 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listUsersGists | public function listUsersGists($authorization, $username) {
$instance = new listUsersGists($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | php | public function listUsersGists($authorization, $username) {
$instance = new listUsersGists($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | [
"public",
"function",
"listUsersGists",
"(",
"$",
"authorization",
",",
"$",
"username",
")",
"{",
"$",
"instance",
"=",
"new",
"listUsersGists",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"us... | listUsersGists
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a ... | [
"listUsersGists"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L251-L254 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.checkGistStarred | public function checkGistStarred($authorization, $id) {
$instance = new checkGistStarred($this, $authorization, $this->getUserAgent(), $id);
return $instance;
} | php | public function checkGistStarred($authorization, $id) {
$instance = new checkGistStarred($this, $authorization, $this->getUserAgent(), $id);
return $instance;
} | [
"public",
"function",
"checkGistStarred",
"(",
"$",
"authorization",
",",
"$",
"id",
")",
"{",
"$",
"instance",
"=",
"new",
"checkGistStarred",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"id",... | checkGistStarred
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to ... | [
"checkGistStarred"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L416-L419 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getGitIgnoreTemplate | public function getGitIgnoreTemplate($authorization, $type) {
$instance = new getGitIgnoreTemplate($this, $authorization, $this->getUserAgent(), $type);
return $instance;
} | php | public function getGitIgnoreTemplate($authorization, $type) {
$instance = new getGitIgnoreTemplate($this, $authorization, $this->getUserAgent(), $type);
return $instance;
} | [
"public",
"function",
"getGitIgnoreTemplate",
"(",
"$",
"authorization",
",",
"$",
"type",
")",
"{",
"$",
"instance",
"=",
"new",
"getGitIgnoreTemplate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$... | getGitIgnoreTemplate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast... | [
"getGitIgnoreTemplate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L497-L500 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getAuthorization | public function getAuthorization($authorization, $id) {
$instance = new getAuthorization($this, $authorization, $this->getUserAgent(), $id);
return $instance;
} | php | public function getAuthorization($authorization, $id) {
$instance = new getAuthorization($this, $authorization, $this->getUserAgent(), $id);
return $instance;
} | [
"public",
"function",
"getAuthorization",
"(",
"$",
"authorization",
",",
"$",
"id",
")",
"{",
"$",
"instance",
"=",
"new",
"getAuthorization",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"id",... | getAuthorization
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to ... | [
"getAuthorization"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L651-L654 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.createAuthorization | public function createAuthorization($authorization, $scopes, $note) {
$instance = new createAuthorization($this, $this->getUserAgent(), $authorization, $scopes, $note);
return $instance;
} | php | public function createAuthorization($authorization, $scopes, $note) {
$instance = new createAuthorization($this, $this->getUserAgent(), $authorization, $scopes, $note);
return $instance;
} | [
"public",
"function",
"createAuthorization",
"(",
"$",
"authorization",
",",
"$",
"scopes",
",",
"$",
"note",
")",
"{",
"$",
"instance",
"=",
"new",
"createAuthorization",
"(",
"$",
"this",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"aut... | createAuthorization
@param mixed $Authorization The basic authentication token
@param mixed $scopes
@param mixed $note
@return \GithubService\Operation\createAuthorization The new operation | [
"createAuthorization"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L664-L667 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getOrCreateAuthorization | public function getOrCreateAuthorization($authorization, $scopes, $note, $note_url, $client_id, $client_secret) {
$instance = new getOrCreateAuthorization($this, $this->getUserAgent(), $authorization, $scopes, $note, $note_url, $client_id, $client_secret);
return $instance;
} | php | public function getOrCreateAuthorization($authorization, $scopes, $note, $note_url, $client_id, $client_secret) {
$instance = new getOrCreateAuthorization($this, $this->getUserAgent(), $authorization, $scopes, $note, $note_url, $client_id, $client_secret);
return $instance;
} | [
"public",
"function",
"getOrCreateAuthorization",
"(",
"$",
"authorization",
",",
"$",
"scopes",
",",
"$",
"note",
",",
"$",
"note_url",
",",
"$",
"client_id",
",",
"$",
"client_secret",
")",
"{",
"$",
"instance",
"=",
"new",
"getOrCreateAuthorization",
"(",
... | getOrCreateAuthorization
@param mixed $Authorization The basic authentication token
@param mixed $scopes A list of scopes that this authorization is in.
@param mixed $note A note to remind you what the OAuth token is for.
@param mixed $note_url A URL to remind you what app the OAuth token is for.
@param mixed $client_... | [
"getOrCreateAuthorization"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L682-L685 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getOrCreateAuthorizationForAppFingerprint | public function getOrCreateAuthorizationForAppFingerprint($client_secret, $scopes, $note, $note_url, $fingerprint) {
$instance = new getOrCreateAuthorizationForAppFingerprint($this, $client_secret, $scopes, $note, $note_url, $fingerprint);
return $instance;
} | php | public function getOrCreateAuthorizationForAppFingerprint($client_secret, $scopes, $note, $note_url, $fingerprint) {
$instance = new getOrCreateAuthorizationForAppFingerprint($this, $client_secret, $scopes, $note, $note_url, $fingerprint);
return $instance;
} | [
"public",
"function",
"getOrCreateAuthorizationForAppFingerprint",
"(",
"$",
"client_secret",
",",
"$",
"scopes",
",",
"$",
"note",
",",
"$",
"note_url",
",",
"$",
"fingerprint",
")",
"{",
"$",
"instance",
"=",
"new",
"getOrCreateAuthorizationForAppFingerprint",
"("... | getOrCreateAuthorizationForAppFingerprint
@param mixed $client_secret The 40 character OAuth app client secret associated
with the client ID specified in the URL.
@param mixed $scopes A list of scopes that this authorization is in.
@param mixed $note A note to remind you what the OAuth token is for.
@param mixed $note... | [
"getOrCreateAuthorizationForAppFingerprint"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L702-L705 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.updateAuthorization | public function updateAuthorization($scopes, $add_scopes, $remove_scopes, $note, $note_url, $fingerprint) {
$instance = new updateAuthorization($this, $scopes, $add_scopes, $remove_scopes, $note, $note_url, $fingerprint);
return $instance;
} | php | public function updateAuthorization($scopes, $add_scopes, $remove_scopes, $note, $note_url, $fingerprint) {
$instance = new updateAuthorization($this, $scopes, $add_scopes, $remove_scopes, $note, $note_url, $fingerprint);
return $instance;
} | [
"public",
"function",
"updateAuthorization",
"(",
"$",
"scopes",
",",
"$",
"add_scopes",
",",
"$",
"remove_scopes",
",",
"$",
"note",
",",
"$",
"note_url",
",",
"$",
"fingerprint",
")",
"{",
"$",
"instance",
"=",
"new",
"updateAuthorization",
"(",
"$",
"th... | updateAuthorization
@param mixed $scopes Replaces the authorization scopes with these.
@param mixed $add_scopes A list of scopes to add to this authorization.
@param mixed $remove_scopes A list of scopes to remove from this authorization.
@param mixed $note A note to remind you what the OAuth token is for.
@param mixe... | [
"updateAuthorization"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L721-L724 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.checkAuthorization | public function checkAuthorization($authorization, $client_id, $access_token) {
$instance = new checkAuthorization($this, $this->getUserAgent(), $authorization, $client_id, $access_token);
return $instance;
} | php | public function checkAuthorization($authorization, $client_id, $access_token) {
$instance = new checkAuthorization($this, $this->getUserAgent(), $authorization, $client_id, $access_token);
return $instance;
} | [
"public",
"function",
"checkAuthorization",
"(",
"$",
"authorization",
",",
"$",
"client_id",
",",
"$",
"access_token",
")",
"{",
"$",
"instance",
"=",
"new",
"checkAuthorization",
"(",
"$",
"this",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$... | checkAuthorization
@param mixed $Authorization The basic authentication token
@param mixed $client_id
@param mixed $access_token
@return \GithubService\Operation\checkAuthorization The new operation | [
"checkAuthorization"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L750-L753 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.resetAuthorization | public function resetAuthorization($authorization, $client_id, $access_token) {
$instance = new resetAuthorization($this, $this->getUserAgent(), $authorization, $client_id, $access_token);
return $instance;
} | php | public function resetAuthorization($authorization, $client_id, $access_token) {
$instance = new resetAuthorization($this, $this->getUserAgent(), $authorization, $client_id, $access_token);
return $instance;
} | [
"public",
"function",
"resetAuthorization",
"(",
"$",
"authorization",
",",
"$",
"client_id",
",",
"$",
"access_token",
")",
"{",
"$",
"instance",
"=",
"new",
"resetAuthorization",
"(",
"$",
"this",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$... | resetAuthorization
@param mixed $Authorization The basic authentication token
@param mixed $client_id
@param mixed $access_token
@return \GithubService\Operation\resetAuthorization The new operation | [
"resetAuthorization"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L763-L766 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.revokeAllAuthority | public function revokeAllAuthority($authorization, $client_id) {
$instance = new revokeAllAuthority($this, $this->getUserAgent(), $authorization, $client_id);
return $instance;
} | php | public function revokeAllAuthority($authorization, $client_id) {
$instance = new revokeAllAuthority($this, $this->getUserAgent(), $authorization, $client_id);
return $instance;
} | [
"public",
"function",
"revokeAllAuthority",
"(",
"$",
"authorization",
",",
"$",
"client_id",
")",
"{",
"$",
"instance",
"=",
"new",
"revokeAllAuthority",
"(",
"$",
"this",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"authorization",
",",
"... | revokeAllAuthority
@param mixed $Authorization The basic authentication token
@param mixed $client_id The id of the client.
@return \GithubService\Operation\revokeAllAuthority The new operation | [
"revokeAllAuthority"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L775-L778 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.revokeAuthorityForApplication | public function revokeAuthorityForApplication($authorization, $client_id, $access_token) {
$instance = new revokeAuthorityForApplication($this, $this->getUserAgent(), $authorization, $client_id, $access_token);
return $instance;
} | php | public function revokeAuthorityForApplication($authorization, $client_id, $access_token) {
$instance = new revokeAuthorityForApplication($this, $this->getUserAgent(), $authorization, $client_id, $access_token);
return $instance;
} | [
"public",
"function",
"revokeAuthorityForApplication",
"(",
"$",
"authorization",
",",
"$",
"client_id",
",",
"$",
"access_token",
")",
"{",
"$",
"instance",
"=",
"new",
"revokeAuthorityForApplication",
"(",
"$",
"this",
",",
"$",
"this",
"->",
"getUserAgent",
"... | revokeAuthorityForApplication
@param mixed $Authorization The basic authentication token
@param mixed $client_id The id of the client.
@param mixed $access_token The access token to delete.
@return \GithubService\Operation\revokeAuthorityForApplication The new operation | [
"revokeAuthorityForApplication"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L788-L791 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listRepoCommits | public function listRepoCommits($authorization, $owner, $repo) {
$instance = new listRepoCommits($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | php | public function listRepoCommits($authorization, $owner, $repo) {
$instance = new listRepoCommits($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | [
"public",
"function",
"listRepoCommits",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
")",
"{",
"$",
"instance",
"=",
"new",
"listRepoCommits",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
"... | listRepoCommits
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a... | [
"listRepoCommits"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1046-L1049 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getArchiveLink | public function getArchiveLink($authorization, $owner, $repo, $ref) {
$instance = new getArchiveLink($this, $authorization, $this->getUserAgent(), $owner, $repo, $ref);
return $instance;
} | php | public function getArchiveLink($authorization, $owner, $repo, $ref) {
$instance = new getArchiveLink($this, $authorization, $this->getUserAgent(), $owner, $repo, $ref);
return $instance;
} | [
"public",
"function",
"getArchiveLink",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"ref",
")",
"{",
"$",
"instance",
"=",
"new",
"getArchiveLink",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getU... | getArchiveLink
This method will return a 302 to a URL to download a tarball or zipball archive
for a repository. Please make sure your HTTP framework is configured to follow
redirects or you will need to use the Location header to make a second GET
request.
@param GithubService\AuthToken $Authorization The token to u... | [
"getArchiveLink"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1168-L1171 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getDevArchiveLink | public function getDevArchiveLink($authorization, $owner, $repo) {
$instance = new getDevArchiveLink($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | php | public function getDevArchiveLink($authorization, $owner, $repo) {
$instance = new getDevArchiveLink($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | [
"public",
"function",
"getDevArchiveLink",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
")",
"{",
"$",
"instance",
"=",
"new",
"getDevArchiveLink",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",... | getDevArchiveLink
This method will return a 302 to a URL to download a tarball or zipball archive
for a repository. Please make sure your HTTP framework is configured to follow
redirects or you will need to use the Location header to make a second GET
request.
@param GithubService\AuthToken $Authorization The token t... | [
"getDevArchiveLink"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1191-L1194 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.updateFile | public function updateFile($authorization, $path, $owner, $repo, $content, $sha, $branch, $message) {
$instance = new updateFile($this, $authorization, $this->getUserAgent(), $path, $owner, $repo, $content, $sha, $branch, $message);
return $instance;
} | php | public function updateFile($authorization, $path, $owner, $repo, $content, $sha, $branch, $message) {
$instance = new updateFile($this, $authorization, $this->getUserAgent(), $path, $owner, $repo, $content, $sha, $branch, $message);
return $instance;
} | [
"public",
"function",
"updateFile",
"(",
"$",
"authorization",
",",
"$",
"path",
",",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"content",
",",
"$",
"sha",
",",
"$",
"branch",
",",
"$",
"message",
")",
"{",
"$",
"instance",
"=",
"new",
"updateFile",
... | updateFile
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a stri... | [
"updateFile"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1215-L1218 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listSelfRepos | public function listSelfRepos($authorization, $type, $sort, $direction) {
$instance = new listSelfRepos($this, $authorization, $this->getUserAgent(), $type, $sort, $direction);
return $instance;
} | php | public function listSelfRepos($authorization, $type, $sort, $direction) {
$instance = new listSelfRepos($this, $authorization, $this->getUserAgent(), $type, $sort, $direction);
return $instance;
} | [
"public",
"function",
"listSelfRepos",
"(",
"$",
"authorization",
",",
"$",
"type",
",",
"$",
"sort",
",",
"$",
"direction",
")",
"{",
"$",
"instance",
"=",
"new",
"listSelfRepos",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"g... | listSelfRepos
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a s... | [
"listSelfRepos"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1506-L1509 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listUserRepos | public function listUserRepos($authorization, $username) {
$instance = new listUserRepos($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | php | public function listUserRepos($authorization, $username) {
$instance = new listUserRepos($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | [
"public",
"function",
"listUserRepos",
"(",
"$",
"authorization",
",",
"$",
"username",
")",
"{",
"$",
"instance",
"=",
"new",
"listUserRepos",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"user... | listUserRepos
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a s... | [
"listUserRepos"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1523-L1526 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listOrgRepos | public function listOrgRepos($authorization, $org, $type) {
$instance = new listOrgRepos($this, $authorization, $this->getUserAgent(), $org, $type);
return $instance;
} | php | public function listOrgRepos($authorization, $org, $type) {
$instance = new listOrgRepos($this, $authorization, $this->getUserAgent(), $org, $type);
return $instance;
} | [
"public",
"function",
"listOrgRepos",
"(",
"$",
"authorization",
",",
"$",
"org",
",",
"$",
"type",
")",
"{",
"$",
"instance",
"=",
"new",
"listOrgRepos",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",... | listOrgRepos
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a st... | [
"listOrgRepos"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1542-L1545 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listPublicRepos | public function listPublicRepos($authorization, $since) {
$instance = new listPublicRepos($this, $authorization, $this->getUserAgent(), $since);
return $instance;
} | php | public function listPublicRepos($authorization, $since) {
$instance = new listPublicRepos($this, $authorization, $this->getUserAgent(), $since);
return $instance;
} | [
"public",
"function",
"listPublicRepos",
"(",
"$",
"authorization",
",",
"$",
"since",
")",
"{",
"$",
"instance",
"=",
"new",
"listPublicRepos",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"sin... | listPublicRepos
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a... | [
"listPublicRepos"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1559-L1562 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getRepo | public function getRepo($authorization, $owner, $repo) {
$instance = new getRepo($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | php | public function getRepo($authorization, $owner, $repo) {
$instance = new getRepo($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | [
"public",
"function",
"getRepo",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
")",
"{",
"$",
"instance",
"=",
"new",
"getRepo",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$"... | getRepo
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a string ... | [
"getRepo"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1587-L1590 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listRepoContributors | public function listRepoContributors($authorization, $owner, $repo, $anon) {
$instance = new listRepoContributors($this, $authorization, $this->getUserAgent(), $owner, $repo, $anon);
return $instance;
} | php | public function listRepoContributors($authorization, $owner, $repo, $anon) {
$instance = new listRepoContributors($this, $authorization, $this->getUserAgent(), $owner, $repo, $anon);
return $instance;
} | [
"public",
"function",
"listRepoContributors",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
",",
"$",
"anon",
")",
"{",
"$",
"instance",
"=",
"new",
"listRepoContributors",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
... | listRepoContributors
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast... | [
"listRepoContributors"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1616-L1619 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listRepoLanguages | public function listRepoLanguages($authorization, $owner, $repo) {
$instance = new listRepoLanguages($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | php | public function listRepoLanguages($authorization, $owner, $repo) {
$instance = new listRepoLanguages($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | [
"public",
"function",
"listRepoLanguages",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
")",
"{",
"$",
"instance",
"=",
"new",
"listRepoLanguages",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",... | listRepoLanguages
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to... | [
"listRepoLanguages"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1634-L1637 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listRepoTeams | public function listRepoTeams($authorization, $owner, $repo) {
$instance = new listRepoTeams($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | php | public function listRepoTeams($authorization, $owner, $repo) {
$instance = new listRepoTeams($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | [
"public",
"function",
"listRepoTeams",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
")",
"{",
"$",
"instance",
"=",
"new",
"listRepoTeams",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
... | listRepoTeams
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a s... | [
"listRepoTeams"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1652-L1655 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listRepoTags | public function listRepoTags($authorization, $owner, $repo) {
$instance = new listRepoTags($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | php | public function listRepoTags($authorization, $owner, $repo) {
$instance = new listRepoTags($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | [
"public",
"function",
"listRepoTags",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
")",
"{",
"$",
"instance",
"=",
"new",
"listRepoTags",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
... | listRepoTags
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a st... | [
"listRepoTags"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1670-L1673 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listRepoBranches | public function listRepoBranches($authorization, $owner, $repo) {
$instance = new listRepoBranches($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | php | public function listRepoBranches($authorization, $owner, $repo) {
$instance = new listRepoBranches($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | [
"public",
"function",
"listRepoBranches",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
")",
"{",
"$",
"instance",
"=",
"new",
"listRepoBranches",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
... | listRepoBranches
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to ... | [
"listRepoBranches"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1688-L1691 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getRepoBranch | public function getRepoBranch($authorization, $username) {
$instance = new getRepoBranch($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | php | public function getRepoBranch($authorization, $username) {
$instance = new getRepoBranch($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | [
"public",
"function",
"getRepoBranch",
"(",
"$",
"authorization",
",",
"$",
"username",
")",
"{",
"$",
"instance",
"=",
"new",
"getRepoBranch",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"user... | getRepoBranch
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a s... | [
"getRepoBranch"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1705-L1708 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.deleteRepo | public function deleteRepo($authorization, $owner, $repo) {
$instance = new deleteRepo($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | php | public function deleteRepo($authorization, $owner, $repo) {
$instance = new deleteRepo($this, $authorization, $this->getUserAgent(), $owner, $repo);
return $instance;
} | [
"public",
"function",
"deleteRepo",
"(",
"$",
"authorization",
",",
"$",
"owner",
",",
"$",
"repo",
")",
"{",
"$",
"instance",
"=",
"new",
"deleteRepo",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",... | deleteRepo
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a stri... | [
"deleteRepo"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1723-L1726 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.searchRepos | public function searchRepos($authorization, $q) {
$instance = new searchRepos($this, $authorization, $this->getUserAgent(), $q);
return $instance;
} | php | public function searchRepos($authorization, $q) {
$instance = new searchRepos($this, $authorization, $this->getUserAgent(), $q);
return $instance;
} | [
"public",
"function",
"searchRepos",
"(",
"$",
"authorization",
",",
"$",
"q",
")",
"{",
"$",
"instance",
"=",
"new",
"searchRepos",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"q",
")",
";... | searchRepos
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a str... | [
"searchRepos"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1740-L1743 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.addUserEmail | public function addUserEmail($authorization, $username) {
$instance = new addUserEmail($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | php | public function addUserEmail($authorization, $username) {
$instance = new addUserEmail($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | [
"public",
"function",
"addUserEmail",
"(",
"$",
"authorization",
",",
"$",
"username",
")",
"{",
"$",
"instance",
"=",
"new",
"addUserEmail",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"userna... | addUserEmail
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a st... | [
"addUserEmail"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1803-L1806 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getUser | public function getUser($authorization, $username) {
$instance = new getUser($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | php | public function getUser($authorization, $username) {
$instance = new getUser($this, $authorization, $this->getUserAgent(), $username);
return $instance;
} | [
"public",
"function",
"getUser",
"(",
"$",
"authorization",
",",
"$",
"username",
")",
"{",
"$",
"instance",
"=",
"new",
"getUser",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"username",
")"... | getUser
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a string ... | [
"getUser"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1830-L1833 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listEmojisPaginate | public function listEmojisPaginate($authorization, $pageURL) {
$instance = new listEmojisPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listEmojisPaginate($authorization, $pageURL) {
$instance = new listEmojisPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listEmojisPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listEmojisPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$"... | listEmojisPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast t... | [
"listEmojisPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1883-L1886 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listUsersGistsPaginate | public function listUsersGistsPaginate($authorization, $pageURL) {
$instance = new listUsersGistsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listUsersGistsPaginate($authorization, $pageURL) {
$instance = new listUsersGistsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listUsersGistsPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listUsersGistsPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",... | listUsersGistsPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be ca... | [
"listUsersGistsPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1900-L1903 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listSelfGistsPaginate | public function listSelfGistsPaginate($authorization, $pageURL) {
$instance = new listSelfGistsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listSelfGistsPaginate($authorization, $pageURL) {
$instance = new listSelfGistsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listSelfGistsPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listSelfGistsPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",... | listSelfGistsPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cas... | [
"listSelfGistsPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1917-L1920 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listPublicGistsPaginate | public function listPublicGistsPaginate($authorization, $pageURL) {
$instance = new listPublicGistsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listPublicGistsPaginate($authorization, $pageURL) {
$instance = new listPublicGistsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listPublicGistsPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listPublicGistsPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
... | listPublicGistsPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be c... | [
"listPublicGistsPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1934-L1937 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listSelfStarredGistsPaginate | public function listSelfStarredGistsPaginate($authorization, $pageURL) {
$instance = new listSelfStarredGistsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listSelfStarredGistsPaginate($authorization, $pageURL) {
$instance = new listSelfStarredGistsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listSelfStarredGistsPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listSelfStarredGistsPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",... | listSelfStarredGistsPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can... | [
"listSelfStarredGistsPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1951-L1954 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getGistPaginate | public function getGistPaginate($authorization, $pageURL) {
$instance = new getGistPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function getGistPaginate($authorization, $pageURL) {
$instance = new getGistPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"getGistPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"getGistPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
"p... | getGistPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to a... | [
"getGistPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1968-L1971 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getGistByRevisionPaginate | public function getGistByRevisionPaginate($authorization, $pageURL) {
$instance = new getGistByRevisionPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function getGistByRevisionPaginate($authorization, $pageURL) {
$instance = new getGistByRevisionPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"getGistByRevisionPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"getGistByRevisionPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")"... | getGistByRevisionPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be... | [
"getGistByRevisionPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L1985-L1988 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listGistCommitsPaginate | public function listGistCommitsPaginate($authorization, $pageURL) {
$instance = new listGistCommitsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listGistCommitsPaginate($authorization, $pageURL) {
$instance = new listGistCommitsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listGistCommitsPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listGistCommitsPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
... | listGistCommitsPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be c... | [
"listGistCommitsPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2002-L2005 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.checkGistStarredPaginate | public function checkGistStarredPaginate($authorization, $pageURL) {
$instance = new checkGistStarredPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function checkGistStarredPaginate($authorization, $pageURL) {
$instance = new checkGistStarredPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"checkGistStarredPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"checkGistStarredPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
... | checkGistStarredPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be ... | [
"checkGistStarredPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2019-L2022 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listGistForksPaginate | public function listGistForksPaginate($authorization, $pageURL) {
$instance = new listGistForksPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listGistForksPaginate($authorization, $pageURL) {
$instance = new listGistForksPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listGistForksPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listGistForksPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",... | listGistForksPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cas... | [
"listGistForksPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2036-L2039 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listGitIgnoreTemplatesPaginate | public function listGitIgnoreTemplatesPaginate($authorization, $pageURL) {
$instance = new listGitIgnoreTemplatesPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listGitIgnoreTemplatesPaginate($authorization, $pageURL) {
$instance = new listGitIgnoreTemplatesPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listGitIgnoreTemplatesPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listGitIgnoreTemplatesPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
... | listGitIgnoreTemplatesPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
c... | [
"listGitIgnoreTemplatesPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2054-L2057 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getGitIgnoreTemplatePaginate | public function getGitIgnoreTemplatePaginate($authorization, $pageURL) {
$instance = new getGitIgnoreTemplatePaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function getGitIgnoreTemplatePaginate($authorization, $pageURL) {
$instance = new getGitIgnoreTemplatePaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"getGitIgnoreTemplatePaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"getGitIgnoreTemplatePaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",... | getGitIgnoreTemplatePaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can... | [
"getGitIgnoreTemplatePaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2071-L2074 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getAuthorizationsPaginate | public function getAuthorizationsPaginate($authorization, $pageURL) {
$instance = new getAuthorizationsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function getAuthorizationsPaginate($authorization, $pageURL) {
$instance = new getAuthorizationsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"getAuthorizationsPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"getAuthorizationsPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")"... | getAuthorizationsPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be... | [
"getAuthorizationsPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2088-L2091 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getAuthorizationPaginate | public function getAuthorizationPaginate($authorization, $pageURL) {
$instance = new getAuthorizationPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function getAuthorizationPaginate($authorization, $pageURL) {
$instance = new getAuthorizationPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"getAuthorizationPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"getAuthorizationPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
... | getAuthorizationPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be ... | [
"getAuthorizationPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2105-L2108 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listRepoCommitsPaginate | public function listRepoCommitsPaginate($authorization, $pageURL) {
$instance = new listRepoCommitsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listRepoCommitsPaginate($authorization, $pageURL) {
$instance = new listRepoCommitsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listRepoCommitsPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listRepoCommitsPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
... | listRepoCommitsPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be c... | [
"listRepoCommitsPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2122-L2125 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.getCommitPaginate | public function getCommitPaginate($authorization, $pageURL) {
$instance = new getCommitPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function getCommitPaginate($authorization, $pageURL) {
$instance = new getCommitPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"getCommitPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"getCommitPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",
"$",
... | getCommitPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cast to... | [
"getCommitPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2139-L2142 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.compareTwoCommitsPaginate | public function compareTwoCommitsPaginate($authorization, $pageURL) {
$instance = new compareTwoCommitsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function compareTwoCommitsPaginate($authorization, $pageURL) {
$instance = new compareTwoCommitsPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"compareTwoCommitsPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"compareTwoCommitsPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")"... | compareTwoCommitsPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be... | [
"compareTwoCommitsPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2156-L2159 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.compareTwoCommitsForksPaginate | public function compareTwoCommitsForksPaginate($authorization, $pageURL) {
$instance = new compareTwoCommitsForksPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function compareTwoCommitsForksPaginate($authorization, $pageURL) {
$instance = new compareTwoCommitsForksPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"compareTwoCommitsForksPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"compareTwoCommitsForksPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
... | compareTwoCommitsForksPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
c... | [
"compareTwoCommitsForksPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2174-L2177 |
Danack/GithubArtaxService | lib/GithubService/GithubArtaxService/GithubArtaxService.php | GithubArtaxService.listSelfReposPaginate | public function listSelfReposPaginate($authorization, $pageURL) {
$instance = new listSelfReposPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | php | public function listSelfReposPaginate($authorization, $pageURL) {
$instance = new listSelfReposPaginate($this, $authorization, $this->getUserAgent(), $pageURL);
return $instance;
} | [
"public",
"function",
"listSelfReposPaginate",
"(",
"$",
"authorization",
",",
"$",
"pageURL",
")",
"{",
"$",
"instance",
"=",
"new",
"listSelfReposPaginate",
"(",
"$",
"this",
",",
"$",
"authorization",
",",
"$",
"this",
"->",
"getUserAgent",
"(",
")",
",",... | listSelfReposPaginate
@param GithubService\AuthToken $Authorization The token to use for the request.
This should either be an a complete token in the format appropriate format e.g.
'token 123567890' for an oauth token, or '"Basic
".base64_encode($username.":".$password)"' for a Basic token or anything that
can be cas... | [
"listSelfReposPaginate"
] | train | https://github.com/Danack/GithubArtaxService/blob/9f62b5be4f413207d4012e7fa084d0ae505680eb/lib/GithubService/GithubArtaxService/GithubArtaxService.php#L2191-L2194 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.