repo
stringlengths
6
63
path
stringlengths
5
140
func_name
stringlengths
3
151
original_string
stringlengths
84
13k
language
stringclasses
1 value
code
stringlengths
84
13k
code_tokens
list
docstring
stringlengths
3
47.2k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
91
247
partition
stringclasses
1 value
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.addResourceGroup
public function addResourceGroup($groupName, array $resources) { $this->validateResourceGroupName($groupName); if ($this->resourceGroupExists($groupName)) { throw new InvalidArgumentException( 'Resource group with name "' . $groupName . '" already exists' ); } return $this->editResourceGroup($groupName, $resources); }
php
public function addResourceGroup($groupName, array $resources) { $this->validateResourceGroupName($groupName); if ($this->resourceGroupExists($groupName)) { throw new InvalidArgumentException( 'Resource group with name "' . $groupName . '" already exists' ); } return $this->editResourceGroup($groupName, $resources); }
[ "public", "function", "addResourceGroup", "(", "$", "groupName", ",", "array", "$", "resources", ")", "{", "$", "this", "->", "validateResourceGroupName", "(", "$", "groupName", ")", ";", "if", "(", "$", "this", "->", "resourceGroupExists", "(", "$", "groupN...
Add a new resource group @param string $groupName Name of the group to create @param array $resources Array of resource names the group should contain @return Model @throws InvalidArgumentException Throw when group name is invalid or group already exists
[ "Add", "a", "new", "resource", "group" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L462-L472
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.editResourceGroup
public function editResourceGroup($groupName, array $resources) { $this->validateResourceGroupName($groupName); return $this->getCommand('EditResourceGroup', array( 'groupName' => $groupName, 'resources' => json_encode($resources), ))->execute(); }
php
public function editResourceGroup($groupName, array $resources) { $this->validateResourceGroupName($groupName); return $this->getCommand('EditResourceGroup', array( 'groupName' => $groupName, 'resources' => json_encode($resources), ))->execute(); }
[ "public", "function", "editResourceGroup", "(", "$", "groupName", ",", "array", "$", "resources", ")", "{", "$", "this", "->", "validateResourceGroupName", "(", "$", "groupName", ")", ";", "return", "$", "this", "->", "getCommand", "(", "'EditResourceGroup'", ...
Edit a resource group Note: If the resource group does not already exist, it will be created @param string $groupName Name of the group to edit @param array $resources Array of resource names the group should contain @return Model @throws InvalidArgumentException Thrown when group name is invalid or group already exists
[ "Edit", "a", "resource", "group" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L484-L491
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.resourceGroupExists
public function resourceGroupExists($groupName) { $this->validateResourceGroupName($groupName); return $this->resourceExists($this->getResourceGroupUrl($groupName)); }
php
public function resourceGroupExists($groupName) { $this->validateResourceGroupName($groupName); return $this->resourceExists($this->getResourceGroupUrl($groupName)); }
[ "public", "function", "resourceGroupExists", "(", "$", "groupName", ")", "{", "$", "this", "->", "validateResourceGroupName", "(", "$", "groupName", ")", ";", "return", "$", "this", "->", "resourceExists", "(", "$", "this", "->", "getResourceGroupUrl", "(", "$...
Checks if a given group exists on the server already @param string $groupName Name of the group @throws InvalidArgumentException Throws an exception if group name is invalid @return boolean
[ "Checks", "if", "a", "given", "group", "exists", "on", "the", "server", "already" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L515-L519
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.publicKeyExists
public function publicKeyExists($publicKey) { $this->validatePublicKeyName($publicKey); return $this->resourceExists($this->getKeyUrl($publicKey)); }
php
public function publicKeyExists($publicKey) { $this->validatePublicKeyName($publicKey); return $this->resourceExists($this->getKeyUrl($publicKey)); }
[ "public", "function", "publicKeyExists", "(", "$", "publicKey", ")", "{", "$", "this", "->", "validatePublicKeyName", "(", "$", "publicKey", ")", ";", "return", "$", "this", "->", "resourceExists", "(", "$", "this", "->", "getKeyUrl", "(", "$", "publicKey", ...
Checks if a given public key exists on the server already @param string $publicKey Public key @return boolean @throws InvalidArgumentException If the public key name is invalid
[ "Checks", "if", "a", "given", "public", "key", "exists", "on", "the", "server", "already" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L583-L587
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getAccessControlRule
public function getAccessControlRule($publicKey, $ruleId) { $this->validatePublicKeyName($publicKey); return $this->getCommand('GetAccessControlRule', array( 'publicKey' => $publicKey, 'id' => $ruleId, ))->execute(); }
php
public function getAccessControlRule($publicKey, $ruleId) { $this->validatePublicKeyName($publicKey); return $this->getCommand('GetAccessControlRule', array( 'publicKey' => $publicKey, 'id' => $ruleId, ))->execute(); }
[ "public", "function", "getAccessControlRule", "(", "$", "publicKey", ",", "$", "ruleId", ")", "{", "$", "this", "->", "validatePublicKeyName", "(", "$", "publicKey", ")", ";", "return", "$", "this", "->", "getCommand", "(", "'GetAccessControlRule'", ",", "arra...
Get the access control rule with the given ID which belongs to the given public key @param string $publicKey Public key @param string $ruleId ID of the rule to retrieve @return Model @throws InvalidArgumentException If the public key name is invalid
[ "Get", "the", "access", "control", "rule", "with", "the", "given", "ID", "which", "belongs", "to", "the", "given", "public", "key" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L612-L619
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.addAccessControlRules
public function addAccessControlRules($publicKey, $rules) { $this->validatePublicKeyName($publicKey); return $this->getCommand('AddAccessControlRules', array( 'publicKey' => $publicKey, 'rules' => json_encode($rules), ))->execute(); }
php
public function addAccessControlRules($publicKey, $rules) { $this->validatePublicKeyName($publicKey); return $this->getCommand('AddAccessControlRules', array( 'publicKey' => $publicKey, 'rules' => json_encode($rules), ))->execute(); }
[ "public", "function", "addAccessControlRules", "(", "$", "publicKey", ",", "$", "rules", ")", "{", "$", "this", "->", "validatePublicKeyName", "(", "$", "publicKey", ")", ";", "return", "$", "this", "->", "getCommand", "(", "'AddAccessControlRules'", ",", "arr...
Add access control rules to the given public key @param string $publicKey Public key to add rules to @param array $rules Rules to add @return Model @throws InvalidArgumentException If the public key name is invalid
[ "Add", "access", "control", "rules", "to", "the", "given", "public", "key" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L641-L648
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.deleteAccessControlRule
public function deleteAccessControlRule($publicKey, $ruleId) { $this->validatePublicKeyName($publicKey); return $this->getCommand('DeleteAccessControlRule', array( 'publicKey' => $publicKey, 'id' => $ruleId, ))->execute(); }
php
public function deleteAccessControlRule($publicKey, $ruleId) { $this->validatePublicKeyName($publicKey); return $this->getCommand('DeleteAccessControlRule', array( 'publicKey' => $publicKey, 'id' => $ruleId, ))->execute(); }
[ "public", "function", "deleteAccessControlRule", "(", "$", "publicKey", ",", "$", "ruleId", ")", "{", "$", "this", "->", "validatePublicKeyName", "(", "$", "publicKey", ")", ";", "return", "$", "this", "->", "getCommand", "(", "'DeleteAccessControlRule'", ",", ...
Delete an access control rule @param string $publicKey Name of the public key which owns the rule @param string $ruleId ID of the rule to delete @return Model @throws InvalidArgumentException Thrown if the public key name is invalid
[ "Delete", "an", "access", "control", "rule" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L658-L665
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getResourceGroupsUrl
public function getResourceGroupsUrl() { return Http\ResourceGroupsUrl::factory( $this->getBaseUrl() . '/groups.json', $this->getConfig('privateKey'), $this->getPublicKey() ); }
php
public function getResourceGroupsUrl() { return Http\ResourceGroupsUrl::factory( $this->getBaseUrl() . '/groups.json', $this->getConfig('privateKey'), $this->getPublicKey() ); }
[ "public", "function", "getResourceGroupsUrl", "(", ")", "{", "return", "Http", "\\", "ResourceGroupsUrl", "::", "factory", "(", "$", "this", "->", "getBaseUrl", "(", ")", ".", "'/groups.json'", ",", "$", "this", "->", "getConfig", "(", "'privateKey'", ")", "...
Get a URL for the groups endpoint @return Http\GroupsUrl
[ "Get", "a", "URL", "for", "the", "groups", "endpoint" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L699-L705
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getResourceGroupUrl
public function getResourceGroupUrl($groupName) { $url = sprintf($this->getBaseUrl() . '/groups/%s.json', $groupName); return Http\ResourceGroupUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
php
public function getResourceGroupUrl($groupName) { $url = sprintf($this->getBaseUrl() . '/groups/%s.json', $groupName); return Http\ResourceGroupUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
[ "public", "function", "getResourceGroupUrl", "(", "$", "groupName", ")", "{", "$", "url", "=", "sprintf", "(", "$", "this", "->", "getBaseUrl", "(", ")", ".", "'/groups/%s.json'", ",", "$", "groupName", ")", ";", "return", "Http", "\\", "ResourceGroupUrl", ...
Get a URL for the group endpoint @param string $groupName Name of group @return Http\GroupUrl
[ "Get", "a", "URL", "for", "the", "group", "endpoint" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L713-L721
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getKeysUrl
public function getKeysUrl() { return Http\KeysUrl::factory( $this->getBaseUrl() . '/keys.json', $this->getConfig('privateKey'), $this->getPublicKey() ); }
php
public function getKeysUrl() { return Http\KeysUrl::factory( $this->getBaseUrl() . '/keys.json', $this->getConfig('privateKey'), $this->getPublicKey() ); }
[ "public", "function", "getKeysUrl", "(", ")", "{", "return", "Http", "\\", "KeysUrl", "::", "factory", "(", "$", "this", "->", "getBaseUrl", "(", ")", ".", "'/keys.json'", ",", "$", "this", "->", "getConfig", "(", "'privateKey'", ")", ",", "$", "this", ...
Get a URL for the keys endpoint @return Http\KeysUrl
[ "Get", "a", "URL", "for", "the", "keys", "endpoint" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L728-L734
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getKeyUrl
public function getKeyUrl($publicKey) { $url = sprintf($this->getBaseUrl() . '/keys/%s', $publicKey); return Http\KeyUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
php
public function getKeyUrl($publicKey) { $url = sprintf($this->getBaseUrl() . '/keys/%s', $publicKey); return Http\KeyUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
[ "public", "function", "getKeyUrl", "(", "$", "publicKey", ")", "{", "$", "url", "=", "sprintf", "(", "$", "this", "->", "getBaseUrl", "(", ")", ".", "'/keys/%s'", ",", "$", "publicKey", ")", ";", "return", "Http", "\\", "KeyUrl", "::", "factory", "(", ...
Get a URL for the key endpoint @param string $publicKey Public key @return Http\KeyUrl
[ "Get", "a", "URL", "for", "the", "key", "endpoint" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L742-L750
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getUserUrl
public function getUserUrl() { $url = sprintf($this->getBaseUrl() . '/users/%s.json', $this->getUser()); return Http\UserUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
php
public function getUserUrl() { $url = sprintf($this->getBaseUrl() . '/users/%s.json', $this->getUser()); return Http\UserUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
[ "public", "function", "getUserUrl", "(", ")", "{", "$", "url", "=", "sprintf", "(", "$", "this", "->", "getBaseUrl", "(", ")", ".", "'/users/%s.json'", ",", "$", "this", "->", "getUser", "(", ")", ")", ";", "return", "Http", "\\", "UserUrl", "::", "f...
Get a URL for the user endpoint @return Http\UserUrl
[ "Get", "a", "URL", "for", "the", "user", "endpoint" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L757-L765
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getImagesUrl
public function getImagesUrl() { $url = sprintf($this->getBaseUrl() . '/users/%s/images.json', $this->getUser()); return Http\ImagesUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
php
public function getImagesUrl() { $url = sprintf($this->getBaseUrl() . '/users/%s/images.json', $this->getUser()); return Http\ImagesUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
[ "public", "function", "getImagesUrl", "(", ")", "{", "$", "url", "=", "sprintf", "(", "$", "this", "->", "getBaseUrl", "(", ")", ".", "'/users/%s/images.json'", ",", "$", "this", "->", "getUser", "(", ")", ")", ";", "return", "Http", "\\", "ImagesUrl", ...
Get a URL for the images resource @return Http\ImagesUrl
[ "Get", "a", "URL", "for", "the", "images", "resource" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L772-L780
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getImageUrl
public function getImageUrl($imageIdentifier) { if (empty($imageIdentifier)) { throw new InvalidArgumentException('Missing image identifier'); } $url = sprintf( $this->getHostForImageIdentifier($imageIdentifier) . '/users/%s/images/%s', $this->getUser(), $imageIdentifier ); return Http\ImageUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
php
public function getImageUrl($imageIdentifier) { if (empty($imageIdentifier)) { throw new InvalidArgumentException('Missing image identifier'); } $url = sprintf( $this->getHostForImageIdentifier($imageIdentifier) . '/users/%s/images/%s', $this->getUser(), $imageIdentifier ); return Http\ImageUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
[ "public", "function", "getImageUrl", "(", "$", "imageIdentifier", ")", "{", "if", "(", "empty", "(", "$", "imageIdentifier", ")", ")", "{", "throw", "new", "InvalidArgumentException", "(", "'Missing image identifier'", ")", ";", "}", "$", "url", "=", "sprintf"...
Get a URL for the image resource @throws InvalidArgumentException @param string $imageIdentifier An image identifier @return Http\ImageUrl
[ "Get", "a", "URL", "for", "the", "image", "resource" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L789-L805
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getMetadataUrl
public function getMetadataUrl($imageIdentifier) { $url = sprintf( $this->getHostForImageIdentifier($imageIdentifier) . '/users/%s/images/%s/metadata.json', $this->getUser(), $imageIdentifier ); return Http\MetadataUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
php
public function getMetadataUrl($imageIdentifier) { $url = sprintf( $this->getHostForImageIdentifier($imageIdentifier) . '/users/%s/images/%s/metadata.json', $this->getUser(), $imageIdentifier ); return Http\MetadataUrl::factory( $url, $this->getConfig('privateKey'), $this->getPublicKey() ); }
[ "public", "function", "getMetadataUrl", "(", "$", "imageIdentifier", ")", "{", "$", "url", "=", "sprintf", "(", "$", "this", "->", "getHostForImageIdentifier", "(", "$", "imageIdentifier", ")", ".", "'/users/%s/images/%s/metadata.json'", ",", "$", "this", "->", ...
Get a URL for the metadata resource @param string $imageIdentifier An image identifier @return Http\MetadataUrl
[ "Get", "a", "URL", "for", "the", "metadata", "resource" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L813-L825
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.imageExists
public function imageExists($path) { $this->validateLocalFile($path); $checksum = md5_file($path); $query = new ImagesQuery(); $query->originalChecksums(array($checksum)) ->limit(1); $response = $this->getImages($query); return (boolean) $response['search']['hits']; }
php
public function imageExists($path) { $this->validateLocalFile($path); $checksum = md5_file($path); $query = new ImagesQuery(); $query->originalChecksums(array($checksum)) ->limit(1); $response = $this->getImages($query); return (boolean) $response['search']['hits']; }
[ "public", "function", "imageExists", "(", "$", "path", ")", "{", "$", "this", "->", "validateLocalFile", "(", "$", "path", ")", ";", "$", "checksum", "=", "md5_file", "(", "$", "path", ")", ";", "$", "query", "=", "new", "ImagesQuery", "(", ")", ";",...
Checks if a given image exists on the server already by specifying a local path @param string $path Path to the local image @throws InvalidArgumentException Throws an exception if the specified file does not exist or is of zero length @return boolean
[ "Checks", "if", "a", "given", "image", "exists", "on", "the", "server", "already", "by", "specifying", "a", "local", "path" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L874-L884
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getImageDataFromUrl
public function getImageDataFromUrl(Http\ImageUrl $imageUrl) { return (string) $this->get((string) $imageUrl)->send()->getBody(); }
php
public function getImageDataFromUrl(Http\ImageUrl $imageUrl) { return (string) $this->get((string) $imageUrl)->send()->getBody(); }
[ "public", "function", "getImageDataFromUrl", "(", "Http", "\\", "ImageUrl", "$", "imageUrl", ")", "{", "return", "(", "string", ")", "$", "this", "->", "get", "(", "(", "string", ")", "$", "imageUrl", ")", "->", "send", "(", ")", "->", "getBody", "(", ...
Get the binary data of an image stored on the server @param Url\ImageInterface $url URL instance for the image you want to retrieve @return string
[ "Get", "the", "binary", "data", "of", "an", "image", "stored", "on", "the", "server" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L912-L914
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.getHostForImageIdentifier
private function getHostForImageIdentifier($imageIdentifier) { $dec = ord(substr($imageIdentifier, -1)); // If this is an old image identifier (32 character hex string), // maintain backwards compatibility if (preg_match('#^[a-f0-9]{32}$#', $imageIdentifier)) { $dec = hexdec($imageIdentifier[0] . $imageIdentifier[1]); } return $this->serverUrls[$dec % count($this->serverUrls)]; }
php
private function getHostForImageIdentifier($imageIdentifier) { $dec = ord(substr($imageIdentifier, -1)); // If this is an old image identifier (32 character hex string), // maintain backwards compatibility if (preg_match('#^[a-f0-9]{32}$#', $imageIdentifier)) { $dec = hexdec($imageIdentifier[0] . $imageIdentifier[1]); } return $this->serverUrls[$dec % count($this->serverUrls)]; }
[ "private", "function", "getHostForImageIdentifier", "(", "$", "imageIdentifier", ")", "{", "$", "dec", "=", "ord", "(", "substr", "(", "$", "imageIdentifier", ",", "-", "1", ")", ")", ";", "// If this is an old image identifier (32 character hex string),", "// maintai...
Get a predictable hostname for the given image identifier @param string $imageIdentifier The image identifier @return string
[ "Get", "a", "predictable", "hostname", "for", "the", "given", "image", "identifier" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L922-L932
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.parseUrls
private function parseUrls($urls) { $urls = (array) $urls; $result = array(); $counter = 0; foreach ($urls as $serverUrl) { if (!preg_match('|^https?://|', $serverUrl)) { $serverUrl = 'http://' . $serverUrl; } $parts = parse_url($serverUrl); // Remove the port from the server URL if it's equal to 80 when scheme is http, or if // it's equal to 443 when the scheme is https if ( isset($parts['port']) && ( ($parts['scheme'] === 'http' && $parts['port'] == 80) || ($parts['scheme'] === 'https' && $parts['port'] == 443) ) ) { if (empty($parts['path'])) { $parts['path'] = ''; } $serverUrl = $parts['scheme'] . '://' . $parts['host'] . $parts['path']; } $serverUrl = rtrim($serverUrl, '/'); if (!isset($result[$serverUrl])) { $result[$serverUrl] = $counter++; } } return array_flip($result); }
php
private function parseUrls($urls) { $urls = (array) $urls; $result = array(); $counter = 0; foreach ($urls as $serverUrl) { if (!preg_match('|^https?://|', $serverUrl)) { $serverUrl = 'http://' . $serverUrl; } $parts = parse_url($serverUrl); // Remove the port from the server URL if it's equal to 80 when scheme is http, or if // it's equal to 443 when the scheme is https if ( isset($parts['port']) && ( ($parts['scheme'] === 'http' && $parts['port'] == 80) || ($parts['scheme'] === 'https' && $parts['port'] == 443) ) ) { if (empty($parts['path'])) { $parts['path'] = ''; } $serverUrl = $parts['scheme'] . '://' . $parts['host'] . $parts['path']; } $serverUrl = rtrim($serverUrl, '/'); if (!isset($result[$serverUrl])) { $result[$serverUrl] = $counter++; } } return array_flip($result); }
[ "private", "function", "parseUrls", "(", "$", "urls", ")", "{", "$", "urls", "=", "(", "array", ")", "$", "urls", ";", "$", "result", "=", "array", "(", ")", ";", "$", "counter", "=", "0", ";", "foreach", "(", "$", "urls", "as", "$", "serverUrl",...
Parse server URLs and prepare them for usage @param array|string $urls One or more URLs to an Imbo server @return array Returns an array of URLs
[ "Parse", "server", "URLs", "and", "prepare", "them", "for", "usage" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L940-L975
train
imbo/imboclient-php
src/ImboClient/ImboClient.php
ImboClient.validateLocalFile
private function validateLocalFile($path) { if (!is_file($path)) { throw new InvalidArgumentException('File does not exist: ' . $path); } if (!filesize($path)) { throw new InvalidArgumentException('File is of zero length: ' . $path); } }
php
private function validateLocalFile($path) { if (!is_file($path)) { throw new InvalidArgumentException('File does not exist: ' . $path); } if (!filesize($path)) { throw new InvalidArgumentException('File is of zero length: ' . $path); } }
[ "private", "function", "validateLocalFile", "(", "$", "path", ")", "{", "if", "(", "!", "is_file", "(", "$", "path", ")", ")", "{", "throw", "new", "InvalidArgumentException", "(", "'File does not exist: '", ".", "$", "path", ")", ";", "}", "if", "(", "!...
Helper method to make sure a local file exists, and that it is not empty @param string $path The path to a local file @throws InvalidArgumentException
[ "Helper", "method", "to", "make", "sure", "a", "local", "file", "exists", "and", "that", "it", "is", "not", "empty" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImboClient.php#L983-L991
train
imbo/imboclient-php
src/ImboClient/ImagesQuery.php
ImagesQuery.metadata
public function metadata($metadata = null) { if ($metadata === null) { return $this->metadata; } $this->metadata = (bool) $metadata; return $this; }
php
public function metadata($metadata = null) { if ($metadata === null) { return $this->metadata; } $this->metadata = (bool) $metadata; return $this; }
[ "public", "function", "metadata", "(", "$", "metadata", "=", "null", ")", "{", "if", "(", "$", "metadata", "===", "null", ")", "{", "return", "$", "this", "->", "metadata", ";", "}", "$", "this", "->", "metadata", "=", "(", "bool", ")", "$", "metad...
Set or get the metadata flag @param boolean $metadata Give this a value to set the metadata flag @return boolean|self
[ "Set", "or", "get", "the", "metadata", "flag" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImagesQuery.php#L82-L90
train
imbo/imboclient-php
src/ImboClient/ImagesQuery.php
ImagesQuery.from
public function from($from = null) { if ($from === null) { return $this->from; } $this->from = (int) $from; return $this; }
php
public function from($from = null) { if ($from === null) { return $this->from; } $this->from = (int) $from; return $this; }
[ "public", "function", "from", "(", "$", "from", "=", "null", ")", "{", "if", "(", "$", "from", "===", "null", ")", "{", "return", "$", "this", "->", "from", ";", "}", "$", "this", "->", "from", "=", "(", "int", ")", "$", "from", ";", "return", ...
Set or get the from attribute @param int $from Give this a value to set the from property @return int|self
[ "Set", "or", "get", "the", "from", "attribute" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImagesQuery.php#L98-L106
train
imbo/imboclient-php
src/ImboClient/ImagesQuery.php
ImagesQuery.to
public function to($to = null) { if ($to === null) { return $this->to; } $this->to = (int) $to; return $this; }
php
public function to($to = null) { if ($to === null) { return $this->to; } $this->to = (int) $to; return $this; }
[ "public", "function", "to", "(", "$", "to", "=", "null", ")", "{", "if", "(", "$", "to", "===", "null", ")", "{", "return", "$", "this", "->", "to", ";", "}", "$", "this", "->", "to", "=", "(", "int", ")", "$", "to", ";", "return", "$", "th...
Set or get the to attribute @param int $to Give this a value to set the to property @return int|self
[ "Set", "or", "get", "the", "to", "attribute" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImagesQuery.php#L114-L122
train
imbo/imboclient-php
src/ImboClient/ImagesQuery.php
ImagesQuery.fields
public function fields(array $fields = null) { if ($fields === null) { return $this->fields; } $this->fields = $fields; return $this; }
php
public function fields(array $fields = null) { if ($fields === null) { return $this->fields; } $this->fields = $fields; return $this; }
[ "public", "function", "fields", "(", "array", "$", "fields", "=", "null", ")", "{", "if", "(", "$", "fields", "===", "null", ")", "{", "return", "$", "this", "->", "fields", ";", "}", "$", "this", "->", "fields", "=", "$", "fields", ";", "return", ...
Set or get the fields attribute @param string[] $fields Give this a value to set the fields property @return string[]|self
[ "Set", "or", "get", "the", "fields", "attribute" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImagesQuery.php#L130-L138
train
imbo/imboclient-php
src/ImboClient/ImagesQuery.php
ImagesQuery.sort
public function sort(array $sort = null) { if ($sort === null) { return $this->sort; } $this->sort = $sort; return $this; }
php
public function sort(array $sort = null) { if ($sort === null) { return $this->sort; } $this->sort = $sort; return $this; }
[ "public", "function", "sort", "(", "array", "$", "sort", "=", "null", ")", "{", "if", "(", "$", "sort", "===", "null", ")", "{", "return", "$", "this", "->", "sort", ";", "}", "$", "this", "->", "sort", "=", "$", "sort", ";", "return", "$", "th...
Set or get the sort attribute @param string[] $sort Give this a value to set the sort property @return string[]|self
[ "Set", "or", "get", "the", "sort", "attribute" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImagesQuery.php#L146-L154
train
imbo/imboclient-php
src/ImboClient/ImagesQuery.php
ImagesQuery.ids
public function ids(array $ids = null) { if ($ids === null) { return $this->ids; } $this->ids = $ids; return $this; }
php
public function ids(array $ids = null) { if ($ids === null) { return $this->ids; } $this->ids = $ids; return $this; }
[ "public", "function", "ids", "(", "array", "$", "ids", "=", "null", ")", "{", "if", "(", "$", "ids", "===", "null", ")", "{", "return", "$", "this", "->", "ids", ";", "}", "$", "this", "->", "ids", "=", "$", "ids", ";", "return", "$", "this", ...
Set or get the ids attribute @param string[] $ids Give this a value to set the ids property @return string[]|self
[ "Set", "or", "get", "the", "ids", "attribute" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImagesQuery.php#L162-L170
train
imbo/imboclient-php
src/ImboClient/ImagesQuery.php
ImagesQuery.checksums
public function checksums(array $checksums = null) { if ($checksums === null) { return $this->checksums; } $this->checksums = $checksums; return $this; }
php
public function checksums(array $checksums = null) { if ($checksums === null) { return $this->checksums; } $this->checksums = $checksums; return $this; }
[ "public", "function", "checksums", "(", "array", "$", "checksums", "=", "null", ")", "{", "if", "(", "$", "checksums", "===", "null", ")", "{", "return", "$", "this", "->", "checksums", ";", "}", "$", "this", "->", "checksums", "=", "$", "checksums", ...
Set or get the checksums attribute @param string[] $checksums Give this a value to set the checksums property @return string[]|self
[ "Set", "or", "get", "the", "checksums", "attribute" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImagesQuery.php#L178-L186
train
imbo/imboclient-php
src/ImboClient/ImagesQuery.php
ImagesQuery.originalChecksums
public function originalChecksums(array $checksums = null) { if ($checksums === null) { return $this->originalChecksums; } $this->originalChecksums = $checksums; return $this; }
php
public function originalChecksums(array $checksums = null) { if ($checksums === null) { return $this->originalChecksums; } $this->originalChecksums = $checksums; return $this; }
[ "public", "function", "originalChecksums", "(", "array", "$", "checksums", "=", "null", ")", "{", "if", "(", "$", "checksums", "===", "null", ")", "{", "return", "$", "this", "->", "originalChecksums", ";", "}", "$", "this", "->", "originalChecksums", "=",...
Set or get the originalChecksums attribute @param string[] $checksums Give this a value to set the originalChecksums property @return string[]|self
[ "Set", "or", "get", "the", "originalChecksums", "attribute" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/ImagesQuery.php#L194-L202
train
imbo/imboclient-php
src/ImboClient/EventSubscriber/AccessToken.php
AccessToken.appendAccessToken
public function appendAccessToken(Event $event) { $command = $event['command']; switch ($command->getName()) { case 'GetResourceGroup': case 'GetResourceGroups': case 'GetAccessControlRule': case 'GetAccessControlRules': case 'GetUserInfo': case 'GetImages': case 'GetImageProperties': case 'GetMetadata': $request = $command->getRequest(); // Generate an access token $accessToken = $this->getAccessToken(urldecode($request->getUrl()), $request->getClient()->getConfig('privateKey')); // Add as query parameter $request->getQuery()->set('accessToken', $accessToken); break; } }
php
public function appendAccessToken(Event $event) { $command = $event['command']; switch ($command->getName()) { case 'GetResourceGroup': case 'GetResourceGroups': case 'GetAccessControlRule': case 'GetAccessControlRules': case 'GetUserInfo': case 'GetImages': case 'GetImageProperties': case 'GetMetadata': $request = $command->getRequest(); // Generate an access token $accessToken = $this->getAccessToken(urldecode($request->getUrl()), $request->getClient()->getConfig('privateKey')); // Add as query parameter $request->getQuery()->set('accessToken', $accessToken); break; } }
[ "public", "function", "appendAccessToken", "(", "Event", "$", "event", ")", "{", "$", "command", "=", "$", "event", "[", "'command'", "]", ";", "switch", "(", "$", "command", "->", "getName", "(", ")", ")", "{", "case", "'GetResourceGroup'", ":", "case",...
Append an access token query parameter to the request URL @param Event $event The current event
[ "Append", "an", "access", "token", "query", "parameter", "to", "the", "request", "URL" ]
41287eb61bf11054822468dd6cc2cdf0e220e115
https://github.com/imbo/imboclient-php/blob/41287eb61bf11054822468dd6cc2cdf0e220e115/src/ImboClient/EventSubscriber/AccessToken.php#L41-L62
train
nglasl/silverstripe-extensible-search
src/controllers/ExtensibleSearchPageController.php
ExtensibleSearchPageController.index
public function index() { // Determine whether a search engine has been selected. $engine = $this->data()->SearchEngine; $classes = Config::inst()->get(FulltextSearchable::class, 'searchable_classes'); if(!$engine || (($engine !== 'Full-Text') && !ClassInfo::exists($engine)) || (($engine === 'Full-Text') && (!is_array($classes) || (count($classes) === 0)))) { // The search engine has not been selected. return $this->httpError(404); } // Determine whether the search page should start with a listing. if($this->data()->StartWithListing) { // Display some search results. $request = $this->getRequest(); return $this->getSearchResults(array( 'Search' => $request->getVar('Search'), 'SortBy' => $request->getVar('SortBy'), 'SortDirection' => $request->getVar('SortDirection') ), $this->getForm($request)); } else { // Instantiate some default templates. $templates = array( 'ExtensibleSearch', 'ExtensibleSearchPage', 'Page' ); // Instantiate the search engine specific templates. if($engine !== 'Full-Text') { $explode = explode('\\', $engine); $explode = end($explode); $templates = array_merge(array( $explode, "{$explode}Page" ), $templates); } // Determine the template to use. $this->extend('updateTemplates', $templates); return $this->renderWith($templates); } }
php
public function index() { // Determine whether a search engine has been selected. $engine = $this->data()->SearchEngine; $classes = Config::inst()->get(FulltextSearchable::class, 'searchable_classes'); if(!$engine || (($engine !== 'Full-Text') && !ClassInfo::exists($engine)) || (($engine === 'Full-Text') && (!is_array($classes) || (count($classes) === 0)))) { // The search engine has not been selected. return $this->httpError(404); } // Determine whether the search page should start with a listing. if($this->data()->StartWithListing) { // Display some search results. $request = $this->getRequest(); return $this->getSearchResults(array( 'Search' => $request->getVar('Search'), 'SortBy' => $request->getVar('SortBy'), 'SortDirection' => $request->getVar('SortDirection') ), $this->getForm($request)); } else { // Instantiate some default templates. $templates = array( 'ExtensibleSearch', 'ExtensibleSearchPage', 'Page' ); // Instantiate the search engine specific templates. if($engine !== 'Full-Text') { $explode = explode('\\', $engine); $explode = end($explode); $templates = array_merge(array( $explode, "{$explode}Page" ), $templates); } // Determine the template to use. $this->extend('updateTemplates', $templates); return $this->renderWith($templates); } }
[ "public", "function", "index", "(", ")", "{", "// Determine whether a search engine has been selected.", "$", "engine", "=", "$", "this", "->", "data", "(", ")", "->", "SearchEngine", ";", "$", "classes", "=", "Config", "::", "inst", "(", ")", "->", "get", "...
Determine whether the search page should start with a listing.
[ "Determine", "whether", "the", "search", "page", "should", "start", "with", "a", "listing", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/controllers/ExtensibleSearchPageController.php#L38-L90
train
nglasl/silverstripe-extensible-search
src/controllers/ExtensibleSearchPageController.php
ExtensibleSearchPageController.getForm
public function getForm($request = null, $sorting = true) { // Determine whether a search engine has been selected. $engine = $this->data()->SearchEngine; $configuration = Config::inst(); $classes = $configuration->get(FulltextSearchable::class, 'searchable_classes'); if(!$engine || (($engine !== 'Full-Text') && !ClassInfo::exists($engine)) || (($engine === 'Full-Text') && (!is_array($classes) || (count($classes) === 0)))) { // The search engine has not been selected. return null; } // Determine whether the request has been passed through. if(is_null($request)) { $request = $this->getRequest(); } // Display the search. $fields = FieldList::create( TextField::create( 'Search', _t('EXTENSIBLE_SEARCH.SEARCH', 'Search'), $request->getVar('Search') )->addExtraClass('extensible-search')->setAttribute('data-suggestions-enabled', $configuration->get(ExtensibleSearchSuggestion::class, 'enable_suggestions') ? 'true' : 'false')->setAttribute('data-extensible-search-page', $this->data()->ID) ); // Determine whether sorting has been passed through from the template. if(is_string($sorting)) { $sorting = ($sorting === 'true'); } // Determine whether to display the sorting selection. if($sorting) { // Display the sorting selection. $fields->push(DropdownField::create( 'SortBy', _t('EXTENSIBLE_SEARCH.SORT_BY', 'Sort By'), $this->data()->getSelectableFields(), $request->getVar('SortBy') ? $request->getVar('SortBy') : $this->data()->SortBy )->setHasEmptyDefault(true)); $fields->push(DropdownField::create( 'SortDirection', _t('EXTENSIBLE_SEARCH.SORT_DIRECTION', 'Sort Direction'), array( 'DESC' => _t('EXTENSIBLE_SEARCH.DESCENDING', 'Descending'), 'ASC' => _t('EXTENSIBLE_SEARCH.ASCENDING', 'Ascending') ), $request->getVar('SortDirection') ? $request->getVar('SortDirection') : $this->data()->SortDirection )->setHasEmptyDefault(true)); } // Instantiate the search form. $form = SearchForm::create( $this, 'getForm', $fields, FieldList::create( FormAction::create( 'getSearchResults', _t('EXTENSIBLE_SEARCH.GO', 'Go') ) ) ); // When using the full-text search engine, the classes to search needs to be initialised. if($engine === 'Full-Text') { $form->classesToSearch($classes); } // Allow extension customisation. $this->extend('updateExtensibleSearchForm', $form); return $form; }
php
public function getForm($request = null, $sorting = true) { // Determine whether a search engine has been selected. $engine = $this->data()->SearchEngine; $configuration = Config::inst(); $classes = $configuration->get(FulltextSearchable::class, 'searchable_classes'); if(!$engine || (($engine !== 'Full-Text') && !ClassInfo::exists($engine)) || (($engine === 'Full-Text') && (!is_array($classes) || (count($classes) === 0)))) { // The search engine has not been selected. return null; } // Determine whether the request has been passed through. if(is_null($request)) { $request = $this->getRequest(); } // Display the search. $fields = FieldList::create( TextField::create( 'Search', _t('EXTENSIBLE_SEARCH.SEARCH', 'Search'), $request->getVar('Search') )->addExtraClass('extensible-search')->setAttribute('data-suggestions-enabled', $configuration->get(ExtensibleSearchSuggestion::class, 'enable_suggestions') ? 'true' : 'false')->setAttribute('data-extensible-search-page', $this->data()->ID) ); // Determine whether sorting has been passed through from the template. if(is_string($sorting)) { $sorting = ($sorting === 'true'); } // Determine whether to display the sorting selection. if($sorting) { // Display the sorting selection. $fields->push(DropdownField::create( 'SortBy', _t('EXTENSIBLE_SEARCH.SORT_BY', 'Sort By'), $this->data()->getSelectableFields(), $request->getVar('SortBy') ? $request->getVar('SortBy') : $this->data()->SortBy )->setHasEmptyDefault(true)); $fields->push(DropdownField::create( 'SortDirection', _t('EXTENSIBLE_SEARCH.SORT_DIRECTION', 'Sort Direction'), array( 'DESC' => _t('EXTENSIBLE_SEARCH.DESCENDING', 'Descending'), 'ASC' => _t('EXTENSIBLE_SEARCH.ASCENDING', 'Ascending') ), $request->getVar('SortDirection') ? $request->getVar('SortDirection') : $this->data()->SortDirection )->setHasEmptyDefault(true)); } // Instantiate the search form. $form = SearchForm::create( $this, 'getForm', $fields, FieldList::create( FormAction::create( 'getSearchResults', _t('EXTENSIBLE_SEARCH.GO', 'Go') ) ) ); // When using the full-text search engine, the classes to search needs to be initialised. if($engine === 'Full-Text') { $form->classesToSearch($classes); } // Allow extension customisation. $this->extend('updateExtensibleSearchForm', $form); return $form; }
[ "public", "function", "getForm", "(", "$", "request", "=", "null", ",", "$", "sorting", "=", "true", ")", "{", "// Determine whether a search engine has been selected.", "$", "engine", "=", "$", "this", "->", "data", "(", ")", "->", "SearchEngine", ";", "$", ...
Instantiate the search form. @parameter <{REQUEST}> http request @parameter <{DISPLAY_SORTING}> boolean @return search form
[ "Instantiate", "the", "search", "form", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/controllers/ExtensibleSearchPageController.php#L100-L183
train
nglasl/silverstripe-extensible-search
src/pages/ExtensibleSearchPage.php
ExtensibleSearchPage.requireDefaultRecords
public function requireDefaultRecords() { parent::requireDefaultRecords(); $stage = Versioned::get_stage() ?: 'Stage'; Versioned::set_stage('Stage'); // Determine whether pages should be created. if(!self::config()->create_default_pages) { return; } // This is required to support multiple sites. if(ClassInfo::exists(Multisites::class)) { foreach(Site::get() as $site) { // The problem is that class name mapping happens after this, but we need it right now to query pages. if(!SiteTree::get()->filter(array( 'ClassName' => array( ExtensibleSearchPage::class, 'ExtensibleSearchPage' ), 'SiteID' => $site->ID ))->first()) { // Instantiate an extensible search page. $page = ExtensibleSearchPage::create(); $page->ParentID = $site->ID; $page->Title = 'Search Page'; $page->write(); DB::alteration_message("\"{$site->Title}\" Extensible Search Page", 'created'); } } } else { // The problem is that class name mapping happens after this, but we need it right now to query pages. if(!SiteTree::get()->filter('ClassName', array( ExtensibleSearchPage::class, 'ExtensibleSearchPage' ))->first()) { // Instantiate an extensible search page. $page = ExtensibleSearchPage::create(); $page->Title = 'Search Page'; $page->write(); DB::alteration_message('"Default" Extensible Search Page', 'created'); } } Versioned::set_stage($stage); }
php
public function requireDefaultRecords() { parent::requireDefaultRecords(); $stage = Versioned::get_stage() ?: 'Stage'; Versioned::set_stage('Stage'); // Determine whether pages should be created. if(!self::config()->create_default_pages) { return; } // This is required to support multiple sites. if(ClassInfo::exists(Multisites::class)) { foreach(Site::get() as $site) { // The problem is that class name mapping happens after this, but we need it right now to query pages. if(!SiteTree::get()->filter(array( 'ClassName' => array( ExtensibleSearchPage::class, 'ExtensibleSearchPage' ), 'SiteID' => $site->ID ))->first()) { // Instantiate an extensible search page. $page = ExtensibleSearchPage::create(); $page->ParentID = $site->ID; $page->Title = 'Search Page'; $page->write(); DB::alteration_message("\"{$site->Title}\" Extensible Search Page", 'created'); } } } else { // The problem is that class name mapping happens after this, but we need it right now to query pages. if(!SiteTree::get()->filter('ClassName', array( ExtensibleSearchPage::class, 'ExtensibleSearchPage' ))->first()) { // Instantiate an extensible search page. $page = ExtensibleSearchPage::create(); $page->Title = 'Search Page'; $page->write(); DB::alteration_message('"Default" Extensible Search Page', 'created'); } } Versioned::set_stage($stage); }
[ "public", "function", "requireDefaultRecords", "(", ")", "{", "parent", "::", "requireDefaultRecords", "(", ")", ";", "$", "stage", "=", "Versioned", "::", "get_stage", "(", ")", "?", ":", "'Stage'", ";", "Versioned", "::", "set_stage", "(", "'Stage'", ")", ...
Instantiate a search page, should one not exist.
[ "Instantiate", "a", "search", "page", "should", "one", "not", "exist", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/pages/ExtensibleSearchPage.php#L86-L141
train
nglasl/silverstripe-extensible-search
src/pages/ExtensibleSearchPage.php
ExtensibleSearchPage.getSelectableFields
public function getSelectableFields() { // Instantiate some default selectable fields, just in case the search engine does not provide any. $selectable = array( 'LastEdited' => _t('EXTENSIBLE_SEARCH.LAST_EDITED', 'Last Edited'), 'ID' => _t('EXTENSIBLE_SEARCH.CREATED', 'Created'), 'ClassName' => _t('EXTENSIBLE_SEARCH.TYPE', 'Type') ); // Determine the search engine that has been selected. if(($this->SearchEngine !== 'Full-Text') && ClassInfo::exists($this->SearchEngine)) { // Determine the search engine specific selectable fields. $fields = singleton($this->SearchEngine)->getSelectableFields($this) ?: array(); return $fields + $selectable; } else if(($this->SearchEngine === 'Full-Text') && is_array($classes = Config::inst()->get(FulltextSearchable::class, 'searchable_classes')) && (count($classes) > 0)) { // Determine the full-text specific selectable fields. $selectable = array( 'Relevance' => _t('EXTENSIBLE_SEARCH.RELEVANCE', 'Relevance') ) + $selectable; foreach($classes as $class) { $fields = DataObject::getSchema()->databaseFields($class); // Determine the most appropriate fields, primarily for sorting. if(isset($fields['Title'])) { $selectable['Title'] = _t('EXTENSIBLE_SEARCH.TITLE', 'Title'); } if(isset($fields['MenuTitle'])) { $selectable['MenuTitle'] = _t('EXTENSIBLE_SEARCH.NAVIGATION_TITLE', 'Navigation Title'); } if(isset($fields['Sort'])) { $selectable['Sort'] = _t('EXTENSIBLE_SEARCH.DISPLAY_ORDER', 'Display Order'); } // This is specific to file searching. if(isset($fields['Name'])) { $selectable['Name'] = _t('EXTENSIBLE_SEARCH.FILE_NAME', 'File Name'); } } } // Allow extension customisation, so custom fields may be selectable. $this->extend('updateExtensibleSearchPageSelectableFields', $selectable); return $selectable; }
php
public function getSelectableFields() { // Instantiate some default selectable fields, just in case the search engine does not provide any. $selectable = array( 'LastEdited' => _t('EXTENSIBLE_SEARCH.LAST_EDITED', 'Last Edited'), 'ID' => _t('EXTENSIBLE_SEARCH.CREATED', 'Created'), 'ClassName' => _t('EXTENSIBLE_SEARCH.TYPE', 'Type') ); // Determine the search engine that has been selected. if(($this->SearchEngine !== 'Full-Text') && ClassInfo::exists($this->SearchEngine)) { // Determine the search engine specific selectable fields. $fields = singleton($this->SearchEngine)->getSelectableFields($this) ?: array(); return $fields + $selectable; } else if(($this->SearchEngine === 'Full-Text') && is_array($classes = Config::inst()->get(FulltextSearchable::class, 'searchable_classes')) && (count($classes) > 0)) { // Determine the full-text specific selectable fields. $selectable = array( 'Relevance' => _t('EXTENSIBLE_SEARCH.RELEVANCE', 'Relevance') ) + $selectable; foreach($classes as $class) { $fields = DataObject::getSchema()->databaseFields($class); // Determine the most appropriate fields, primarily for sorting. if(isset($fields['Title'])) { $selectable['Title'] = _t('EXTENSIBLE_SEARCH.TITLE', 'Title'); } if(isset($fields['MenuTitle'])) { $selectable['MenuTitle'] = _t('EXTENSIBLE_SEARCH.NAVIGATION_TITLE', 'Navigation Title'); } if(isset($fields['Sort'])) { $selectable['Sort'] = _t('EXTENSIBLE_SEARCH.DISPLAY_ORDER', 'Display Order'); } // This is specific to file searching. if(isset($fields['Name'])) { $selectable['Name'] = _t('EXTENSIBLE_SEARCH.FILE_NAME', 'File Name'); } } } // Allow extension customisation, so custom fields may be selectable. $this->extend('updateExtensibleSearchPageSelectableFields', $selectable); return $selectable; }
[ "public", "function", "getSelectableFields", "(", ")", "{", "// Instantiate some default selectable fields, just in case the search engine does not provide any.", "$", "selectable", "=", "array", "(", "'LastEdited'", "=>", "_t", "(", "'EXTENSIBLE_SEARCH.LAST_EDITED'", ",", "'Last...
Determine the search engine specific selectable fields, primarily for sorting. @return array(string, string)
[ "Determine", "the", "search", "engine", "specific", "selectable", "fields", "primarily", "for", "sorting", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/pages/ExtensibleSearchPage.php#L418-L471
train
nglasl/silverstripe-extensible-search
src/pages/ExtensibleSearchPage.php
ExtensibleSearchPage.getHistorySummary
public function getHistorySummary() { $history = $this->History(); $query = new SQLSelect( "Term, COUNT(*) AS Frequency, ((COUNT(*) * 100.00) / {$history->count()}) AS FrequencyPercentage, AVG(Time) AS AverageTimeTaken, (Results > 0) AS Results", 'ExtensibleSearch', "ExtensibleSearchPageID = {$this->ID}", array( 'Frequency' => 'DESC', 'Term' => 'ASC' ), array( 'Term', 'Results' ) ); // These will require display formatting. $analytics = ArrayList::create(); foreach($query->execute() as $result) { $result = ArrayData::create( $result ); $result->FrequencyPercentage = sprintf('%.2f %%', $result->FrequencyPercentage); $result->AverageTimeTaken = sprintf('%.5f', $result->AverageTimeTaken); $result->Results = $result->Results ? _t('EXTENSIBLE_SEARCH.TRUE', 'true') : _t('EXTENSIBLE_SEARCH.FALSE', 'false'); $analytics->push($result); } return $analytics; }
php
public function getHistorySummary() { $history = $this->History(); $query = new SQLSelect( "Term, COUNT(*) AS Frequency, ((COUNT(*) * 100.00) / {$history->count()}) AS FrequencyPercentage, AVG(Time) AS AverageTimeTaken, (Results > 0) AS Results", 'ExtensibleSearch', "ExtensibleSearchPageID = {$this->ID}", array( 'Frequency' => 'DESC', 'Term' => 'ASC' ), array( 'Term', 'Results' ) ); // These will require display formatting. $analytics = ArrayList::create(); foreach($query->execute() as $result) { $result = ArrayData::create( $result ); $result->FrequencyPercentage = sprintf('%.2f %%', $result->FrequencyPercentage); $result->AverageTimeTaken = sprintf('%.5f', $result->AverageTimeTaken); $result->Results = $result->Results ? _t('EXTENSIBLE_SEARCH.TRUE', 'true') : _t('EXTENSIBLE_SEARCH.FALSE', 'false'); $analytics->push($result); } return $analytics; }
[ "public", "function", "getHistorySummary", "(", ")", "{", "$", "history", "=", "$", "this", "->", "History", "(", ")", ";", "$", "query", "=", "new", "SQLSelect", "(", "\"Term, COUNT(*) AS Frequency, ((COUNT(*) * 100.00) / {$history->count()}) AS FrequencyPercentage, AVG(...
Determine the search page specific analytics. @return array list
[ "Determine", "the", "search", "page", "specific", "analytics", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/pages/ExtensibleSearchPage.php#L479-L509
train
nglasl/silverstripe-extensible-search
src/objects/ExtensibleSearch.php
ExtensibleSearch.getSearchEngineSummary
public function getSearchEngineSummary() { $configuration = Config::inst()->get(ExtensibleSearchPage::class, 'custom_search_engines'); return isset($configuration[$this->SearchEngine]) ? $configuration[$this->SearchEngine] : $this->SearchEngine; }
php
public function getSearchEngineSummary() { $configuration = Config::inst()->get(ExtensibleSearchPage::class, 'custom_search_engines'); return isset($configuration[$this->SearchEngine]) ? $configuration[$this->SearchEngine] : $this->SearchEngine; }
[ "public", "function", "getSearchEngineSummary", "(", ")", "{", "$", "configuration", "=", "Config", "::", "inst", "(", ")", "->", "get", "(", "ExtensibleSearchPage", "::", "class", ",", "'custom_search_engines'", ")", ";", "return", "isset", "(", "$", "configu...
Retrieve the search engine for display purposes. @return string
[ "Retrieve", "the", "search", "engine", "for", "display", "purposes", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/objects/ExtensibleSearch.php#L77-L81
train
nglasl/silverstripe-extensible-search
src/services/ExtensibleSearchService.php
ExtensibleSearchService.logSearch
public function logSearch($term, $results, $time, $engine, $pageID) { // Make sure the search analytics are enabled. if(!Config::inst()->get(ExtensibleSearch::class, 'enable_analytics')) { return null; } // Log the details of the user search. $search = ExtensibleSearch::create( array( 'Term' => $term, 'Results' => $results, 'Time' => $time, 'SearchEngine' => $engine, 'ExtensibleSearchPageID' => $pageID ) ); $search->write(); // Log the details of the user search as a suggestion. if($results > 0) { $this->logSuggestion($term, $pageID); } return $search; }
php
public function logSearch($term, $results, $time, $engine, $pageID) { // Make sure the search analytics are enabled. if(!Config::inst()->get(ExtensibleSearch::class, 'enable_analytics')) { return null; } // Log the details of the user search. $search = ExtensibleSearch::create( array( 'Term' => $term, 'Results' => $results, 'Time' => $time, 'SearchEngine' => $engine, 'ExtensibleSearchPageID' => $pageID ) ); $search->write(); // Log the details of the user search as a suggestion. if($results > 0) { $this->logSuggestion($term, $pageID); } return $search; }
[ "public", "function", "logSearch", "(", "$", "term", ",", "$", "results", ",", "$", "time", ",", "$", "engine", ",", "$", "pageID", ")", "{", "// Make sure the search analytics are enabled.", "if", "(", "!", "Config", "::", "inst", "(", ")", "->", "get", ...
Log the details of a user search for analytics. @parameter <{SEARCH_TERM}> string @parameter <{NUMBER_OF_SEARCH_RESULTS}> integer @parameter <{SEARCH_TIME}> float @parameter <{SEARCH_ENGINE}> string @parameter <{EXTENSIBLE_SEARCH_PAGE_ID}> integer @return extensible search
[ "Log", "the", "details", "of", "a", "user", "search", "for", "analytics", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/services/ExtensibleSearchService.php#L26-L53
train
nglasl/silverstripe-extensible-search
src/services/ExtensibleSearchService.php
ExtensibleSearchService.logSuggestion
public function logSuggestion($term, $pageID) { // Make sure the search matches the minimum autocomplete length. if(strlen($term) < 3) { return null; } // Make sure the suggestion doesn't already exist. $term = strtolower($term); $filter = array( 'Term' => $term, 'ExtensibleSearchPageID' => $pageID ); $suggestion = ExtensibleSearchSuggestion::get()->filter($filter)->first(); // Store the frequency to make search suggestion relevance more efficient. $frequency = ExtensibleSearch::get()->filter($filter)->count(); if($suggestion) { $suggestion->Frequency = $frequency; } else { // Log the suggestion. $suggestion = ExtensibleSearchSuggestion::create( array( 'Term' => $term, 'Frequency' => $frequency, 'Approved' => (int)Config::inst()->get(ExtensibleSearchSuggestion::class, 'automatic_approval'), 'ExtensibleSearchPageID' => $pageID ) ); } // The suggestion might now exist. try { $suggestion->write(); } catch(ValidationException $exception) { // This indicates a possible race condition. $suggestions = ExtensibleSearchSuggestion::get()->filter($filter); while($suggestions->count() > 1) { $suggestions->last()->delete(); } $suggestion = $suggestions->first(); $frequency = ExtensibleSearch::get()->filter($filter)->count(); $suggestion->Frequency = $frequency; $suggestion->write(); } return $suggestion; }
php
public function logSuggestion($term, $pageID) { // Make sure the search matches the minimum autocomplete length. if(strlen($term) < 3) { return null; } // Make sure the suggestion doesn't already exist. $term = strtolower($term); $filter = array( 'Term' => $term, 'ExtensibleSearchPageID' => $pageID ); $suggestion = ExtensibleSearchSuggestion::get()->filter($filter)->first(); // Store the frequency to make search suggestion relevance more efficient. $frequency = ExtensibleSearch::get()->filter($filter)->count(); if($suggestion) { $suggestion->Frequency = $frequency; } else { // Log the suggestion. $suggestion = ExtensibleSearchSuggestion::create( array( 'Term' => $term, 'Frequency' => $frequency, 'Approved' => (int)Config::inst()->get(ExtensibleSearchSuggestion::class, 'automatic_approval'), 'ExtensibleSearchPageID' => $pageID ) ); } // The suggestion might now exist. try { $suggestion->write(); } catch(ValidationException $exception) { // This indicates a possible race condition. $suggestions = ExtensibleSearchSuggestion::get()->filter($filter); while($suggestions->count() > 1) { $suggestions->last()->delete(); } $suggestion = $suggestions->first(); $frequency = ExtensibleSearch::get()->filter($filter)->count(); $suggestion->Frequency = $frequency; $suggestion->write(); } return $suggestion; }
[ "public", "function", "logSuggestion", "(", "$", "term", ",", "$", "pageID", ")", "{", "// Make sure the search matches the minimum autocomplete length.", "if", "(", "strlen", "(", "$", "term", ")", "<", "3", ")", "{", "return", "null", ";", "}", "// Make sure t...
Log a user search generated suggestion. @parameter <{SEARCH_TERM}> string @parameter <{EXTENSIBLE_SEARCH_PAGE_ID}> integer @return extensible search suggestion
[ "Log", "a", "user", "search", "generated", "suggestion", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/services/ExtensibleSearchService.php#L63-L119
train
nglasl/silverstripe-extensible-search
src/services/ExtensibleSearchService.php
ExtensibleSearchService.getPageSuggestions
public function getPageSuggestions($pageID, $limit = 0, $approved = true) { // Make sure the current user has appropriate permission. $pageID = (int)$pageID; if(($page = ExtensibleSearchPage::get_by_id(ExtensibleSearchPage::class, $pageID)) && $page->canView()) { // Retrieve the search suggestions. $suggestions = ExtensibleSearchSuggestion::get()->filter(array( 'Approved' => (int)$approved, 'ExtensibleSearchPageID' => $pageID ))->sort('Frequency', 'DESC'); if($limit) { $suggestions = $suggestions->limit($limit); } // Make sure the search suggestions are unique. return $suggestions->column('Term'); } return array(); }
php
public function getPageSuggestions($pageID, $limit = 0, $approved = true) { // Make sure the current user has appropriate permission. $pageID = (int)$pageID; if(($page = ExtensibleSearchPage::get_by_id(ExtensibleSearchPage::class, $pageID)) && $page->canView()) { // Retrieve the search suggestions. $suggestions = ExtensibleSearchSuggestion::get()->filter(array( 'Approved' => (int)$approved, 'ExtensibleSearchPageID' => $pageID ))->sort('Frequency', 'DESC'); if($limit) { $suggestions = $suggestions->limit($limit); } // Make sure the search suggestions are unique. return $suggestions->column('Term'); } return array(); }
[ "public", "function", "getPageSuggestions", "(", "$", "pageID", ",", "$", "limit", "=", "0", ",", "$", "approved", "=", "true", ")", "{", "// Make sure the current user has appropriate permission.", "$", "pageID", "=", "(", "int", ")", "$", "pageID", ";", "if"...
Retrieve the search suggestions for a page. @parameter <{EXTENSIBLE_SEARCH_PAGE_ID}> integer @parameter <{LIMIT}> integer @parameter <{APPROVED_ONLY}> boolean @return array
[ "Retrieve", "the", "search", "suggestions", "for", "a", "page", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/services/ExtensibleSearchService.php#L157-L179
train
nglasl/silverstripe-extensible-search
src/services/ExtensibleSearchService.php
ExtensibleSearchService.getSuggestions
public function getSuggestions($term, $pageID, $limit = 5, $approved = true) { // Make sure the search matches the minimum autocomplete length. if($term && (strlen($term) > 2)) { // Make sure the current user has appropriate permission. $pageID = (int)$pageID; if(($page = ExtensibleSearchPage::get_by_id(ExtensibleSearchPage::class, $pageID)) && $page->canView()) { // Retrieve the search suggestions. $suggestions = ExtensibleSearchSuggestion::get()->filter(array( 'Term:StartsWith' => $term, 'Approved' => (int)$approved, 'ExtensibleSearchPageID' => $pageID ))->sort('Frequency', 'DESC')->limit($limit); // Make sure the search suggestions are unique. return $suggestions->column('Term'); } } return array(); }
php
public function getSuggestions($term, $pageID, $limit = 5, $approved = true) { // Make sure the search matches the minimum autocomplete length. if($term && (strlen($term) > 2)) { // Make sure the current user has appropriate permission. $pageID = (int)$pageID; if(($page = ExtensibleSearchPage::get_by_id(ExtensibleSearchPage::class, $pageID)) && $page->canView()) { // Retrieve the search suggestions. $suggestions = ExtensibleSearchSuggestion::get()->filter(array( 'Term:StartsWith' => $term, 'Approved' => (int)$approved, 'ExtensibleSearchPageID' => $pageID ))->sort('Frequency', 'DESC')->limit($limit); // Make sure the search suggestions are unique. return $suggestions->column('Term'); } } return array(); }
[ "public", "function", "getSuggestions", "(", "$", "term", ",", "$", "pageID", ",", "$", "limit", "=", "5", ",", "$", "approved", "=", "true", ")", "{", "// Make sure the search matches the minimum autocomplete length.", "if", "(", "$", "term", "&&", "(", "strl...
Retrieve the most relevant search suggestions. @parameter <{SEARCH_TERM}> string @parameter <{EXTENSIBLE_SEARCH_PAGE_ID}> integer @parameter <{LIMIT}> integer @parameter <{APPROVED_ONLY}> boolean @return array
[ "Retrieve", "the", "most", "relevant", "search", "suggestions", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/services/ExtensibleSearchService.php#L191-L216
train
nglasl/silverstripe-extensible-search
src/extensions/ExtensibleSearchExtension.php
ExtensibleSearchExtension.getSearchPage
public function getSearchPage() { $pages = ExtensibleSearchPage::get(); // This is required to support multiple sites. if(ClassInfo::exists(Multisites::class)) { $pages = $pages->filter('SiteID', $this->owner->SiteID); } return $pages->first(); }
php
public function getSearchPage() { $pages = ExtensibleSearchPage::get(); // This is required to support multiple sites. if(ClassInfo::exists(Multisites::class)) { $pages = $pages->filter('SiteID', $this->owner->SiteID); } return $pages->first(); }
[ "public", "function", "getSearchPage", "(", ")", "{", "$", "pages", "=", "ExtensibleSearchPage", "::", "get", "(", ")", ";", "// This is required to support multiple sites.", "if", "(", "ClassInfo", "::", "exists", "(", "Multisites", "::", "class", ")", ")", "{"...
Retrieve the search page. @return extensible search page
[ "Retrieve", "the", "search", "page", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/extensions/ExtensibleSearchExtension.php#L42-L52
train
nglasl/silverstripe-extensible-search
src/objects/ExtensibleSearchSuggestion.php
ExtensibleSearchSuggestion.validate
public function validate() { $result = parent::validate(); // Confirm that the current search suggestion matches the minimum autocomplete length and doesn't already exist. if($result->isValid() && (strlen($this->Term) < 3)) { $result->addError('Minimum autocomplete length required!'); } else if($result->isValid() && ExtensibleSearchSuggestion::get_one(ExtensibleSearchSuggestion::class, array( 'ID != ?' => (int)$this->ID, 'Term = ?' => $this->Term, 'ExtensibleSearchPageID = ?' => $this->ExtensibleSearchPageID ))) { $result->addError('Suggestion already exists!'); } // Allow extension customisation. $this->extend('validateExtensibleSearchSuggestion', $result); return $result; }
php
public function validate() { $result = parent::validate(); // Confirm that the current search suggestion matches the minimum autocomplete length and doesn't already exist. if($result->isValid() && (strlen($this->Term) < 3)) { $result->addError('Minimum autocomplete length required!'); } else if($result->isValid() && ExtensibleSearchSuggestion::get_one(ExtensibleSearchSuggestion::class, array( 'ID != ?' => (int)$this->ID, 'Term = ?' => $this->Term, 'ExtensibleSearchPageID = ?' => $this->ExtensibleSearchPageID ))) { $result->addError('Suggestion already exists!'); } // Allow extension customisation. $this->extend('validateExtensibleSearchSuggestion', $result); return $result; }
[ "public", "function", "validate", "(", ")", "{", "$", "result", "=", "parent", "::", "validate", "(", ")", ";", "// Confirm that the current search suggestion matches the minimum autocomplete length and doesn't already exist.", "if", "(", "$", "result", "->", "isValid", "...
Confirm that the current search suggestion is valid.
[ "Confirm", "that", "the", "current", "search", "suggestion", "is", "valid", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/objects/ExtensibleSearchSuggestion.php#L126-L147
train
nglasl/silverstripe-extensible-search
src/objects/ExtensibleSearchSuggestion.php
ExtensibleSearchSuggestion.getFrequencyPercentage
public function getFrequencyPercentage() { $history = ExtensibleSearch::get()->filter('ExtensibleSearchPageID', $this->ExtensibleSearchPageID); return $this->Frequency ? sprintf('%.2f %%', ($this->Frequency / $history->count()) * 100) : '-'; }
php
public function getFrequencyPercentage() { $history = ExtensibleSearch::get()->filter('ExtensibleSearchPageID', $this->ExtensibleSearchPageID); return $this->Frequency ? sprintf('%.2f %%', ($this->Frequency / $history->count()) * 100) : '-'; }
[ "public", "function", "getFrequencyPercentage", "(", ")", "{", "$", "history", "=", "ExtensibleSearch", "::", "get", "(", ")", "->", "filter", "(", "'ExtensibleSearchPageID'", ",", "$", "this", "->", "ExtensibleSearchPageID", ")", ";", "return", "$", "this", "...
Retrieve the frequency percentage. @return string
[ "Retrieve", "the", "frequency", "percentage", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/objects/ExtensibleSearchSuggestion.php#L176-L180
train
nglasl/silverstripe-extensible-search
src/objects/ExtensibleSearchSuggestion.php
ExtensibleSearchSuggestion.getApprovedField
public function getApprovedField() { $approved = CheckboxField::create( 'Approved', '', $this->Approved )->addExtraClass('approved'); // Restrict this field appropriately. $user = Member::currentUserID(); if(!Permission::checkMember($user, 'EXTENSIBLE_SEARCH_SUGGESTIONS')) { $approved->setAttribute('disabled', 'true'); } return $approved; }
php
public function getApprovedField() { $approved = CheckboxField::create( 'Approved', '', $this->Approved )->addExtraClass('approved'); // Restrict this field appropriately. $user = Member::currentUserID(); if(!Permission::checkMember($user, 'EXTENSIBLE_SEARCH_SUGGESTIONS')) { $approved->setAttribute('disabled', 'true'); } return $approved; }
[ "public", "function", "getApprovedField", "(", ")", "{", "$", "approved", "=", "CheckboxField", "::", "create", "(", "'Approved'", ",", "''", ",", "$", "this", "->", "Approved", ")", "->", "addExtraClass", "(", "'approved'", ")", ";", "// Restrict this field a...
Retrieve the approved field for update purposes. @return string
[ "Retrieve", "the", "approved", "field", "for", "update", "purposes", "." ]
07f1150e6214fc2780723353f02f4aadd77d0dc2
https://github.com/nglasl/silverstripe-extensible-search/blob/07f1150e6214fc2780723353f02f4aadd77d0dc2/src/objects/ExtensibleSearchSuggestion.php#L188-L203
train
unicodeveloper/jusibe-php-lib
src/Jusibe.php
Jusibe.sendSMS
public function sendSMS($payload = []) { if (empty($payload)) { throw IsEmpty::create("Message Payload can not be empty. Please fill the appropriate details"); } $this->performPostRequest('/smsapi/send_sms', $payload); return $this; }
php
public function sendSMS($payload = []) { if (empty($payload)) { throw IsEmpty::create("Message Payload can not be empty. Please fill the appropriate details"); } $this->performPostRequest('/smsapi/send_sms', $payload); return $this; }
[ "public", "function", "sendSMS", "(", "$", "payload", "=", "[", "]", ")", "{", "if", "(", "empty", "(", "$", "payload", ")", ")", "{", "throw", "IsEmpty", "::", "create", "(", "\"Message Payload can not be empty. Please fill the appropriate details\"", ")", ";",...
Send SMS using the Jusibe API @param array $payload @return $this
[ "Send", "SMS", "using", "the", "Jusibe", "API" ]
084729ebae0ad48048ae83c1124f0ff7ef8bb671
https://github.com/unicodeveloper/jusibe-php-lib/blob/084729ebae0ad48048ae83c1124f0ff7ef8bb671/src/Jusibe.php#L109-L118
train
unicodeveloper/jusibe-php-lib
src/Jusibe.php
Jusibe.checkDeliveryStatus
public function checkDeliveryStatus($messageID = null) { if (is_null($messageID)) { throw IsNull::create("Message ID can not be empty."); } $this->performGetRequest("/smsapi/delivery_status?message_id={$messageID}"); return $this; }
php
public function checkDeliveryStatus($messageID = null) { if (is_null($messageID)) { throw IsNull::create("Message ID can not be empty."); } $this->performGetRequest("/smsapi/delivery_status?message_id={$messageID}"); return $this; }
[ "public", "function", "checkDeliveryStatus", "(", "$", "messageID", "=", "null", ")", "{", "if", "(", "is_null", "(", "$", "messageID", ")", ")", "{", "throw", "IsNull", "::", "create", "(", "\"Message ID can not be empty.\"", ")", ";", "}", "$", "this", "...
Check the delivery status of a sent SMS @param string $messageID @return $this
[ "Check", "the", "delivery", "status", "of", "a", "sent", "SMS" ]
084729ebae0ad48048ae83c1124f0ff7ef8bb671
https://github.com/unicodeveloper/jusibe-php-lib/blob/084729ebae0ad48048ae83c1124f0ff7ef8bb671/src/Jusibe.php#L136-L145
train
MageTest/MageSpec
src/Mage/Core/Controller/Request/Http.php
Mage_Core_Controller_Request_Http.setPathInfo
public function setPathInfo($pathInfo = null) { if ($pathInfo === null) { $requestUri = $this->getRequestUri(); if (null === $requestUri) { return $this; } // Remove the query string from REQUEST_URI $pos = strpos($requestUri, '?'); if ($pos) { $requestUri = substr($requestUri, 0, $pos); } $baseUrl = $this->getBaseUrl(); $pathInfo = substr($requestUri, strlen($baseUrl)); if ((null !== $baseUrl) && (false === $pathInfo)) { $pathInfo = ''; } elseif (null === $baseUrl) { $pathInfo = $requestUri; } if ($this->_canBeStoreCodeInUrl()) { $pathParts = explode('/', ltrim($pathInfo, '/'), 2); $storeCode = $pathParts[0]; if (!$this->isDirectAccessFrontendName($storeCode)) { $stores = Mage::app()->getStores(true, true); if ($storeCode!=='' && isset($stores[$storeCode])) { Mage::app()->setCurrentStore($storeCode); $pathInfo = '/'.(isset($pathParts[1]) ? $pathParts[1] : ''); } elseif ($storeCode !== '') { $this->setActionName('noRoute'); } } } $this->_originalPathInfo = (string) $pathInfo; $this->_requestString = $pathInfo . ($pos!==false ? substr($requestUri, $pos) : ''); } $this->_pathInfo = (string) $pathInfo; return $this; }
php
public function setPathInfo($pathInfo = null) { if ($pathInfo === null) { $requestUri = $this->getRequestUri(); if (null === $requestUri) { return $this; } // Remove the query string from REQUEST_URI $pos = strpos($requestUri, '?'); if ($pos) { $requestUri = substr($requestUri, 0, $pos); } $baseUrl = $this->getBaseUrl(); $pathInfo = substr($requestUri, strlen($baseUrl)); if ((null !== $baseUrl) && (false === $pathInfo)) { $pathInfo = ''; } elseif (null === $baseUrl) { $pathInfo = $requestUri; } if ($this->_canBeStoreCodeInUrl()) { $pathParts = explode('/', ltrim($pathInfo, '/'), 2); $storeCode = $pathParts[0]; if (!$this->isDirectAccessFrontendName($storeCode)) { $stores = Mage::app()->getStores(true, true); if ($storeCode!=='' && isset($stores[$storeCode])) { Mage::app()->setCurrentStore($storeCode); $pathInfo = '/'.(isset($pathParts[1]) ? $pathParts[1] : ''); } elseif ($storeCode !== '') { $this->setActionName('noRoute'); } } } $this->_originalPathInfo = (string) $pathInfo; $this->_requestString = $pathInfo . ($pos!==false ? substr($requestUri, $pos) : ''); } $this->_pathInfo = (string) $pathInfo; return $this; }
[ "public", "function", "setPathInfo", "(", "$", "pathInfo", "=", "null", ")", "{", "if", "(", "$", "pathInfo", "===", "null", ")", "{", "$", "requestUri", "=", "$", "this", "->", "getRequestUri", "(", ")", ";", "if", "(", "null", "===", "$", "requestU...
Set the PATH_INFO string Set the ORIGINAL_PATH_INFO string @param string|null $pathInfo @return Zend_Controller_Request_Http
[ "Set", "the", "PATH_INFO", "string", "Set", "the", "ORIGINAL_PATH_INFO", "string" ]
c97ac743504e65d39e80bca86bbd3bba4764082f
https://github.com/MageTest/MageSpec/blob/c97ac743504e65d39e80bca86bbd3bba4764082f/src/Mage/Core/Controller/Request/Http.php#L137-L182
train
MageTest/MageSpec
src/Mage/Core/Controller/Request/Http.php
Mage_Core_Controller_Request_Http.rewritePathInfo
public function rewritePathInfo($pathInfo) { if (($pathInfo != $this->getPathInfo()) && ($this->_rewritedPathInfo === null)) { $this->_rewritedPathInfo = explode('/', trim($this->getPathInfo(), '/')); } $this->setPathInfo($pathInfo); return $this; }
php
public function rewritePathInfo($pathInfo) { if (($pathInfo != $this->getPathInfo()) && ($this->_rewritedPathInfo === null)) { $this->_rewritedPathInfo = explode('/', trim($this->getPathInfo(), '/')); } $this->setPathInfo($pathInfo); return $this; }
[ "public", "function", "rewritePathInfo", "(", "$", "pathInfo", ")", "{", "if", "(", "(", "$", "pathInfo", "!=", "$", "this", "->", "getPathInfo", "(", ")", ")", "&&", "(", "$", "this", "->", "_rewritedPathInfo", "===", "null", ")", ")", "{", "$", "th...
Specify new path info It happen when occur rewrite based on configuration @param string $pathInfo @return Mage_Core_Controller_Request_Http
[ "Specify", "new", "path", "info", "It", "happen", "when", "occur", "rewrite", "based", "on", "configuration" ]
c97ac743504e65d39e80bca86bbd3bba4764082f
https://github.com/MageTest/MageSpec/blob/c97ac743504e65d39e80bca86bbd3bba4764082f/src/Mage/Core/Controller/Request/Http.php#L191-L198
train
MageTest/MageSpec
src/Mage/Core/Controller/Request/Http.php
Mage_Core_Controller_Request_Http.getDirectFrontNames
public function getDirectFrontNames() { if (is_null($this->_directFrontNames)) { $names = Mage::getConfig()->getNode(self::XML_NODE_DIRECT_FRONT_NAMES); if ($names) { $this->_directFrontNames = $names->asArray(); } else { return []; } } return $this->_directFrontNames; }
php
public function getDirectFrontNames() { if (is_null($this->_directFrontNames)) { $names = Mage::getConfig()->getNode(self::XML_NODE_DIRECT_FRONT_NAMES); if ($names) { $this->_directFrontNames = $names->asArray(); } else { return []; } } return $this->_directFrontNames; }
[ "public", "function", "getDirectFrontNames", "(", ")", "{", "if", "(", "is_null", "(", "$", "this", "->", "_directFrontNames", ")", ")", "{", "$", "names", "=", "Mage", "::", "getConfig", "(", ")", "->", "getNode", "(", "self", "::", "XML_NODE_DIRECT_FRONT...
Get list of front names available with access without store code @return array
[ "Get", "list", "of", "front", "names", "available", "with", "access", "without", "store", "code" ]
c97ac743504e65d39e80bca86bbd3bba4764082f
https://github.com/MageTest/MageSpec/blob/c97ac743504e65d39e80bca86bbd3bba4764082f/src/Mage/Core/Controller/Request/Http.php#L228-L239
train
MageTest/MageSpec
src/Mage/Core/Controller/Request/Http.php
Mage_Core_Controller_Request_Http.initForward
public function initForward() { if (empty($this->_beforeForwardInfo)) { $this->_beforeForwardInfo = [ 'params' => $this->getParams(), 'action_name' => $this->getActionName(), 'controller_name' => $this->getControllerName(), 'module_name' => $this->getModuleName() ]; } return $this; }
php
public function initForward() { if (empty($this->_beforeForwardInfo)) { $this->_beforeForwardInfo = [ 'params' => $this->getParams(), 'action_name' => $this->getActionName(), 'controller_name' => $this->getControllerName(), 'module_name' => $this->getModuleName() ]; } return $this; }
[ "public", "function", "initForward", "(", ")", "{", "if", "(", "empty", "(", "$", "this", "->", "_beforeForwardInfo", ")", ")", "{", "$", "this", "->", "_beforeForwardInfo", "=", "[", "'params'", "=>", "$", "this", "->", "getParams", "(", ")", ",", "'a...
Collect properties changed by _forward in protected storage before _forward was called first time. @return Mage_Core_Controller_Request_Http
[ "Collect", "properties", "changed", "by", "_forward", "in", "protected", "storage", "before", "_forward", "was", "called", "first", "time", "." ]
c97ac743504e65d39e80bca86bbd3bba4764082f
https://github.com/MageTest/MageSpec/blob/c97ac743504e65d39e80bca86bbd3bba4764082f/src/Mage/Core/Controller/Request/Http.php#L481-L493
train
MageTest/MageSpec
src/Mage/Core/Controller/Request/Http.php
Mage_Core_Controller_Request_Http.getBeforeForwardInfo
public function getBeforeForwardInfo($name = null) { if (is_null($name)) { return $this->_beforeForwardInfo; } elseif (isset($this->_beforeForwardInfo[$name])) { return $this->_beforeForwardInfo[$name]; } return null; }
php
public function getBeforeForwardInfo($name = null) { if (is_null($name)) { return $this->_beforeForwardInfo; } elseif (isset($this->_beforeForwardInfo[$name])) { return $this->_beforeForwardInfo[$name]; } return null; }
[ "public", "function", "getBeforeForwardInfo", "(", "$", "name", "=", "null", ")", "{", "if", "(", "is_null", "(", "$", "name", ")", ")", "{", "return", "$", "this", "->", "_beforeForwardInfo", ";", "}", "elseif", "(", "isset", "(", "$", "this", "->", ...
Retrieve property's value which was before _forward call. If property was not changed during _forward call null will be returned. If passed name will be null whole state array will be returned. @param string $name @return array|string|null
[ "Retrieve", "property", "s", "value", "which", "was", "before", "_forward", "call", ".", "If", "property", "was", "not", "changed", "during", "_forward", "call", "null", "will", "be", "returned", ".", "If", "passed", "name", "will", "be", "null", "whole", ...
c97ac743504e65d39e80bca86bbd3bba4764082f
https://github.com/MageTest/MageSpec/blob/c97ac743504e65d39e80bca86bbd3bba4764082f/src/Mage/Core/Controller/Request/Http.php#L503-L512
train
MageTest/MageSpec
src/Mage/Core/Controller/Request/Http.php
Mage_Core_Controller_Request_Http.isAjax
public function isAjax() { if ($this->isXmlHttpRequest()) { return true; } if ($this->getParam('ajax') || $this->getParam('isAjax')) { return true; } return false; }
php
public function isAjax() { if ($this->isXmlHttpRequest()) { return true; } if ($this->getParam('ajax') || $this->getParam('isAjax')) { return true; } return false; }
[ "public", "function", "isAjax", "(", ")", "{", "if", "(", "$", "this", "->", "isXmlHttpRequest", "(", ")", ")", "{", "return", "true", ";", "}", "if", "(", "$", "this", "->", "getParam", "(", "'ajax'", ")", "||", "$", "this", "->", "getParam", "(",...
Check is Request from AJAX @return boolean
[ "Check", "is", "Request", "from", "AJAX" ]
c97ac743504e65d39e80bca86bbd3bba4764082f
https://github.com/MageTest/MageSpec/blob/c97ac743504e65d39e80bca86bbd3bba4764082f/src/Mage/Core/Controller/Request/Http.php#L533-L542
train
agentsib/diadoc-php
src/Api/Proto/ForwardDocumentEvent.php
ForwardDocumentEvent.setTimestamp
public function setTimestamp(\AgentSIB\Diadoc\Api\Proto\Timestamp $value = null) { $this->Timestamp = $value; }
php
public function setTimestamp(\AgentSIB\Diadoc\Api\Proto\Timestamp $value = null) { $this->Timestamp = $value; }
[ "public", "function", "setTimestamp", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Timestamp", "$", "value", "=", "null", ")", "{", "$", "this", "->", "Timestamp", "=", "$", "value", ";", "}" ]
Set 'Timestamp' value @param \AgentSIB\Diadoc\Api\Proto\Timestamp $value
[ "Set", "Timestamp", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/ForwardDocumentEvent.php#L66-L69
train
agentsib/diadoc-php
src/Api/Proto/Docflow/InvoiceCorrectionDocumentInfo.php
InvoiceCorrectionDocumentInfo.setOriginalInvoiceRevisionDateAndNumber
public function setOriginalInvoiceRevisionDateAndNumber(\AgentSIB\Diadoc\Api\Proto\Docflow\DocumentDateAndNumber $value = null) { $this->OriginalInvoiceRevisionDateAndNumber = $value; }
php
public function setOriginalInvoiceRevisionDateAndNumber(\AgentSIB\Diadoc\Api\Proto\Docflow\DocumentDateAndNumber $value = null) { $this->OriginalInvoiceRevisionDateAndNumber = $value; }
[ "public", "function", "setOriginalInvoiceRevisionDateAndNumber", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Docflow", "\\", "DocumentDateAndNumber", "$", "value", "=", "null", ")", "{", "$", "this", "->", "OriginalInvoiceRevisionDateAn...
Set 'OriginalInvoiceRevisionDateAndNumber' value @param \AgentSIB\Diadoc\Api\Proto\Docflow\DocumentDateAndNumber $value
[ "Set", "OriginalInvoiceRevisionDateAndNumber", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/InvoiceCorrectionDocumentInfo.php#L289-L292
train
agentsib/diadoc-php
src/Api/Proto/Docflow/InvoiceCorrectionDocumentInfo.php
InvoiceCorrectionDocumentInfo.setOriginalInvoiceCorrectionDateAndNumber
public function setOriginalInvoiceCorrectionDateAndNumber(\AgentSIB\Diadoc\Api\Proto\Docflow\DocumentDateAndNumber $value = null) { $this->OriginalInvoiceCorrectionDateAndNumber = $value; }
php
public function setOriginalInvoiceCorrectionDateAndNumber(\AgentSIB\Diadoc\Api\Proto\Docflow\DocumentDateAndNumber $value = null) { $this->OriginalInvoiceCorrectionDateAndNumber = $value; }
[ "public", "function", "setOriginalInvoiceCorrectionDateAndNumber", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Docflow", "\\", "DocumentDateAndNumber", "$", "value", "=", "null", ")", "{", "$", "this", "->", "OriginalInvoiceCorrectionDa...
Set 'OriginalInvoiceCorrectionDateAndNumber' value @param \AgentSIB\Diadoc\Api\Proto\Docflow\DocumentDateAndNumber $value
[ "Set", "OriginalInvoiceCorrectionDateAndNumber", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/InvoiceCorrectionDocumentInfo.php#L319-L322
train
agentsib/diadoc-php
src/Api/Proto/Docflow/InboundInvoiceReceiptDocflow.php
InboundInvoiceReceiptDocflow.setReceiptAttachment
public function setReceiptAttachment(\AgentSIB\Diadoc\Api\Proto\Docflow\SignedAttachment $value = null) { $this->ReceiptAttachment = $value; }
php
public function setReceiptAttachment(\AgentSIB\Diadoc\Api\Proto\Docflow\SignedAttachment $value = null) { $this->ReceiptAttachment = $value; }
[ "public", "function", "setReceiptAttachment", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Docflow", "\\", "SignedAttachment", "$", "value", "=", "null", ")", "{", "$", "this", "->", "ReceiptAttachment", "=", "$", "value", ";", ...
Set 'ReceiptAttachment' value @param \AgentSIB\Diadoc\Api\Proto\Docflow\SignedAttachment $value
[ "Set", "ReceiptAttachment", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/InboundInvoiceReceiptDocflow.php#L104-L107
train
agentsib/diadoc-php
src/Api/Proto/Docflow/InboundInvoiceReceiptDocflow.php
InboundInvoiceReceiptDocflow.setConfirmationDocflow
public function setConfirmationDocflow(\AgentSIB\Diadoc\Api\Proto\Docflow\InvoiceConfirmationDocflow $value = null) { $this->ConfirmationDocflow = $value; }
php
public function setConfirmationDocflow(\AgentSIB\Diadoc\Api\Proto\Docflow\InvoiceConfirmationDocflow $value = null) { $this->ConfirmationDocflow = $value; }
[ "public", "function", "setConfirmationDocflow", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Docflow", "\\", "InvoiceConfirmationDocflow", "$", "value", "=", "null", ")", "{", "$", "this", "->", "ConfirmationDocflow", "=", "$", "va...
Set 'ConfirmationDocflow' value @param \AgentSIB\Diadoc\Api\Proto\Docflow\InvoiceConfirmationDocflow $value
[ "Set", "ConfirmationDocflow", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/InboundInvoiceReceiptDocflow.php#L134-L137
train
agentsib/diadoc-php
src/Api/Proto/Docflow/RecipientSignatureRejectionDocflow.php
RecipientSignatureRejectionDocflow.setRecipientSignatureRejectionAttachment
public function setRecipientSignatureRejectionAttachment(\AgentSIB\Diadoc\Api\Proto\Docflow\SignedAttachment $value = null) { $this->RecipientSignatureRejectionAttachment = $value; }
php
public function setRecipientSignatureRejectionAttachment(\AgentSIB\Diadoc\Api\Proto\Docflow\SignedAttachment $value = null) { $this->RecipientSignatureRejectionAttachment = $value; }
[ "public", "function", "setRecipientSignatureRejectionAttachment", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Docflow", "\\", "SignedAttachment", "$", "value", "=", "null", ")", "{", "$", "this", "->", "RecipientSignatureRejectionAttach...
Set 'RecipientSignatureRejectionAttachment' value @param \AgentSIB\Diadoc\Api\Proto\Docflow\SignedAttachment $value
[ "Set", "RecipientSignatureRejectionAttachment", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/RecipientSignatureRejectionDocflow.php#L104-L107
train
agentsib/diadoc-php
src/Api/Proto/Docflow/RecipientSignatureRejectionDocflow.php
RecipientSignatureRejectionDocflow.setDeliveryTimestamp
public function setDeliveryTimestamp(\AgentSIB\Diadoc\Api\Proto\Timestamp $value = null) { $this->DeliveryTimestamp = $value; }
php
public function setDeliveryTimestamp(\AgentSIB\Diadoc\Api\Proto\Timestamp $value = null) { $this->DeliveryTimestamp = $value; }
[ "public", "function", "setDeliveryTimestamp", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Timestamp", "$", "value", "=", "null", ")", "{", "$", "this", "->", "DeliveryTimestamp", "=", "$", "value", ";", "}" ]
Set 'DeliveryTimestamp' value @param \AgentSIB\Diadoc\Api\Proto\Timestamp $value
[ "Set", "DeliveryTimestamp", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/RecipientSignatureRejectionDocflow.php#L134-L137
train
agentsib/diadoc-php
src/Api/Proto/Invoicing/Organizations/ExtendedOrganizationInfo.php
ExtendedOrganizationInfo.setAddress
public function setAddress(\AgentSIB\Diadoc\Api\Proto\Address $value = null) { $this->Address = $value; }
php
public function setAddress(\AgentSIB\Diadoc\Api\Proto\Address $value = null) { $this->Address = $value; }
[ "public", "function", "setAddress", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Address", "$", "value", "=", "null", ")", "{", "$", "this", "->", "Address", "=", "$", "value", ";", "}" ]
Set 'Address' value @param \AgentSIB\Diadoc\Api\Proto\Address $value
[ "Set", "Address", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Invoicing/Organizations/ExtendedOrganizationInfo.php#L313-L316
train
agentsib/diadoc-php
src/Api/Proto/Invoicing/Organizations/ExtendedOrganizationInfo.php
ExtendedOrganizationInfo.setOrgType
public function setOrgType(\AgentSIB\Diadoc\Api\Proto\Invoicing\Organizations\OrgType $value) { $this->OrgType = $value; }
php
public function setOrgType(\AgentSIB\Diadoc\Api\Proto\Invoicing\Organizations\OrgType $value) { $this->OrgType = $value; }
[ "public", "function", "setOrgType", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Invoicing", "\\", "Organizations", "\\", "OrgType", "$", "value", ")", "{", "$", "this", "->", "OrgType", "=", "$", "value", ";", "}" ]
Set 'OrgType' value @param \AgentSIB\Diadoc\Api\Proto\Invoicing\Organizations\OrgType $value
[ "Set", "OrgType", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Invoicing/Organizations/ExtendedOrganizationInfo.php#L373-L376
train
agentsib/diadoc-php
src/Api/Proto/Docflow/SearchDocflowsRequest.php
SearchDocflowsRequest.setScope
public function setScope(\AgentSIB\Diadoc\Api\Proto\Docflow\SearchScope $value = null) { $this->Scope = $value; }
php
public function setScope(\AgentSIB\Diadoc\Api\Proto\Docflow\SearchScope $value = null) { $this->Scope = $value; }
[ "public", "function", "setScope", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Docflow", "\\", "SearchScope", "$", "value", "=", "null", ")", "{", "$", "this", "->", "Scope", "=", "$", "value", ";", "}" ]
Set 'Scope' value @param \AgentSIB\Diadoc\Api\Proto\Docflow\SearchScope $value
[ "Set", "Scope", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/SearchDocflowsRequest.php#L189-L192
train
agentsib/diadoc-php
src/Api/Proto/Events/BoxEventList.php
BoxEventList.addEvents
public function addEvents(\AgentSIB\Diadoc\Api\Proto\Events\BoxEvent $value) { if ($this->Events === null) { $this->Events = new \Protobuf\MessageCollection(); } $this->Events->add($value); }
php
public function addEvents(\AgentSIB\Diadoc\Api\Proto\Events\BoxEvent $value) { if ($this->Events === null) { $this->Events = new \Protobuf\MessageCollection(); } $this->Events->add($value); }
[ "public", "function", "addEvents", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Events", "\\", "BoxEvent", "$", "value", ")", "{", "if", "(", "$", "this", "->", "Events", "===", "null", ")", "{", "$", "this", "->", "Event...
Add a new element to 'Events' @param \AgentSIB\Diadoc\Api\Proto\Events\BoxEvent $value
[ "Add", "a", "new", "element", "to", "Events" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Events/BoxEventList.php#L76-L83
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.addInitialDocumentIds
public function addInitialDocumentIds(\AgentSIB\Diadoc\Api\Proto\DocumentId $value) { if ($this->InitialDocumentIds === null) { $this->InitialDocumentIds = new \Protobuf\MessageCollection(); } $this->InitialDocumentIds->add($value); }
php
public function addInitialDocumentIds(\AgentSIB\Diadoc\Api\Proto\DocumentId $value) { if ($this->InitialDocumentIds === null) { $this->InitialDocumentIds = new \Protobuf\MessageCollection(); } $this->InitialDocumentIds->add($value); }
[ "public", "function", "addInitialDocumentIds", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "DocumentId", "$", "value", ")", "{", "if", "(", "$", "this", "->", "InitialDocumentIds", "===", "null", ")", "{", "$", "this", "->", ...
Add a new element to 'InitialDocumentIds' @param \AgentSIB\Diadoc\Api\Proto\DocumentId $value
[ "Add", "a", "new", "element", "to", "InitialDocumentIds" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L639-L646
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.addSubordinateDocumentIds
public function addSubordinateDocumentIds(\AgentSIB\Diadoc\Api\Proto\DocumentId $value) { if ($this->SubordinateDocumentIds === null) { $this->SubordinateDocumentIds = new \Protobuf\MessageCollection(); } $this->SubordinateDocumentIds->add($value); }
php
public function addSubordinateDocumentIds(\AgentSIB\Diadoc\Api\Proto\DocumentId $value) { if ($this->SubordinateDocumentIds === null) { $this->SubordinateDocumentIds = new \Protobuf\MessageCollection(); } $this->SubordinateDocumentIds->add($value); }
[ "public", "function", "addSubordinateDocumentIds", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "DocumentId", "$", "value", ")", "{", "if", "(", "$", "this", "->", "SubordinateDocumentIds", "===", "null", ")", "{", "$", "this", ...
Add a new element to 'SubordinateDocumentIds' @param \AgentSIB\Diadoc\Api\Proto\DocumentId $value
[ "Add", "a", "new", "element", "to", "SubordinateDocumentIds" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L683-L690
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setNonformalizedDocumentMetadata
public function setNonformalizedDocumentMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value = null) { $this->NonformalizedDocumentMetadata = $value; }
php
public function setNonformalizedDocumentMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value = null) { $this->NonformalizedDocumentMetadata = $value; }
[ "public", "function", "setNonformalizedDocumentMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "NonformalizedDocument", "\\", "NonformalizedDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", "this", ...
Set 'NonformalizedDocumentMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value
[ "Set", "NonformalizedDocumentMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L837-L840
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setTrustConnectionRequestMetadata
public function setTrustConnectionRequestMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\TrustConnectionRequestMetadata $value = null) { $this->TrustConnectionRequestMetadata = $value; }
php
public function setTrustConnectionRequestMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\TrustConnectionRequestMetadata $value = null) { $this->TrustConnectionRequestMetadata = $value; }
[ "public", "function", "setTrustConnectionRequestMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "TrustConnectionRequestMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "-...
Set 'TrustConnectionRequestMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\TrustConnectionRequestMetadata $value
[ "Set", "TrustConnectionRequestMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L897-L900
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setTorg12Metadata
public function setTorg12Metadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value = null) { $this->Torg12Metadata = $value; }
php
public function setTorg12Metadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value = null) { $this->Torg12Metadata = $value; }
[ "public", "function", "setTorg12Metadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "BasicDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "Torg12Metadata", ...
Set 'Torg12Metadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value
[ "Set", "Torg12Metadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L927-L930
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setInvoiceRevisionMetadata
public function setInvoiceRevisionMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\InvoiceDocument\InvoiceRevisionMetadata $value = null) { $this->InvoiceRevisionMetadata = $value; }
php
public function setInvoiceRevisionMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\InvoiceDocument\InvoiceRevisionMetadata $value = null) { $this->InvoiceRevisionMetadata = $value; }
[ "public", "function", "setInvoiceRevisionMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "InvoiceDocument", "\\", "InvoiceRevisionMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "InvoiceRe...
Set 'InvoiceRevisionMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\InvoiceDocument\InvoiceRevisionMetadata $value
[ "Set", "InvoiceRevisionMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L957-L960
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setInvoiceCorrectionRevisionMetadata
public function setInvoiceCorrectionRevisionMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\InvoiceDocument\InvoiceCorrectionRevisionMetadata $value = null) { $this->InvoiceCorrectionRevisionMetadata = $value; }
php
public function setInvoiceCorrectionRevisionMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\InvoiceDocument\InvoiceCorrectionRevisionMetadata $value = null) { $this->InvoiceCorrectionRevisionMetadata = $value; }
[ "public", "function", "setInvoiceCorrectionRevisionMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "InvoiceDocument", "\\", "InvoiceCorrectionRevisionMetadata", "$", "value", "=", "null", ")", "{", "$", "this", ...
Set 'InvoiceCorrectionRevisionMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\InvoiceDocument\InvoiceCorrectionRevisionMetadata $value
[ "Set", "InvoiceCorrectionRevisionMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1017-L1020
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setAcceptanceCertificateMetadata
public function setAcceptanceCertificateMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\AcceptanceCertificateDocument\AcceptanceCertificateMetadata $value = null) { $this->AcceptanceCertificateMetadata = $value; }
php
public function setAcceptanceCertificateMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\AcceptanceCertificateDocument\AcceptanceCertificateMetadata $value = null) { $this->AcceptanceCertificateMetadata = $value; }
[ "public", "function", "setAcceptanceCertificateMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "AcceptanceCertificateDocument", "\\", "AcceptanceCertificateMetadata", "$", "value", "=", "null", ")", "{", "$", "t...
Set 'AcceptanceCertificateMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\AcceptanceCertificateDocument\AcceptanceCertificateMetadata $value
[ "Set", "AcceptanceCertificateMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1047-L1050
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setProformaInvoiceMetadata
public function setProformaInvoiceMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\UnilateralDocument\ProformaInvoiceMetadata $value = null) { $this->ProformaInvoiceMetadata = $value; }
php
public function setProformaInvoiceMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\UnilateralDocument\ProformaInvoiceMetadata $value = null) { $this->ProformaInvoiceMetadata = $value; }
[ "public", "function", "setProformaInvoiceMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "UnilateralDocument", "\\", "ProformaInvoiceMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "Profor...
Set 'ProformaInvoiceMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\UnilateralDocument\ProformaInvoiceMetadata $value
[ "Set", "ProformaInvoiceMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1077-L1080
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setXmlTorg12Metadata
public function setXmlTorg12Metadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value = null) { $this->XmlTorg12Metadata = $value; }
php
public function setXmlTorg12Metadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value = null) { $this->XmlTorg12Metadata = $value; }
[ "public", "function", "setXmlTorg12Metadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "BasicDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "XmlTorg12Metada...
Set 'XmlTorg12Metadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value
[ "Set", "XmlTorg12Metadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1107-L1110
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setXmlAcceptanceCertificateMetadata
public function setXmlAcceptanceCertificateMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value = null) { $this->XmlAcceptanceCertificateMetadata = $value; }
php
public function setXmlAcceptanceCertificateMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value = null) { $this->XmlAcceptanceCertificateMetadata = $value; }
[ "public", "function", "setXmlAcceptanceCertificateMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "BasicDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "...
Set 'XmlAcceptanceCertificateMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value
[ "Set", "XmlAcceptanceCertificateMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1137-L1140
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setPriceListMetadata
public function setPriceListMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\PriceListMetadata $value = null) { $this->PriceListMetadata = $value; }
php
public function setPriceListMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\PriceListMetadata $value = null) { $this->PriceListMetadata = $value; }
[ "public", "function", "setPriceListMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "PriceListMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "PriceListMetadata",...
Set 'PriceListMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\PriceListMetadata $value
[ "Set", "PriceListMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1317-L1320
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setResolutionStatus
public function setResolutionStatus(\AgentSIB\Diadoc\Api\Proto\Documents\ResolutionStatus $value = null) { $this->ResolutionStatus = $value; }
php
public function setResolutionStatus(\AgentSIB\Diadoc\Api\Proto\Documents\ResolutionStatus $value = null) { $this->ResolutionStatus = $value; }
[ "public", "function", "setResolutionStatus", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "ResolutionStatus", "$", "value", "=", "null", ")", "{", "$", "this", "->", "ResolutionStatus", "=", "$", "value", ";", ...
Set 'ResolutionStatus' value @param \AgentSIB\Diadoc\Api\Proto\Documents\ResolutionStatus $value
[ "Set", "ResolutionStatus", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1377-L1380
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setRevocationStatus
public function setRevocationStatus(\AgentSIB\Diadoc\Api\Proto\Documents\RevocationStatus $value = null) { $this->RevocationStatus = $value; }
php
public function setRevocationStatus(\AgentSIB\Diadoc\Api\Proto\Documents\RevocationStatus $value = null) { $this->RevocationStatus = $value; }
[ "public", "function", "setRevocationStatus", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "RevocationStatus", "$", "value", "=", "null", ")", "{", "$", "this", "->", "RevocationStatus", "=", "$", "value", ";", ...
Set 'RevocationStatus' value @param \AgentSIB\Diadoc\Api\Proto\Documents\RevocationStatus $value
[ "Set", "RevocationStatus", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1407-L1410
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.addForwardDocumentEvents
public function addForwardDocumentEvents(\AgentSIB\Diadoc\Api\Proto\ForwardDocumentEvent $value) { if ($this->ForwardDocumentEvents === null) { $this->ForwardDocumentEvents = new \Protobuf\MessageCollection(); } $this->ForwardDocumentEvents->add($value); }
php
public function addForwardDocumentEvents(\AgentSIB\Diadoc\Api\Proto\ForwardDocumentEvent $value) { if ($this->ForwardDocumentEvents === null) { $this->ForwardDocumentEvents = new \Protobuf\MessageCollection(); } $this->ForwardDocumentEvents->add($value); }
[ "public", "function", "addForwardDocumentEvents", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "ForwardDocumentEvent", "$", "value", ")", "{", "if", "(", "$", "this", "->", "ForwardDocumentEvents", "===", "null", ")", "{", "$", "t...
Add a new element to 'ForwardDocumentEvents' @param \AgentSIB\Diadoc\Api\Proto\ForwardDocumentEvent $value
[ "Add", "a", "new", "element", "to", "ForwardDocumentEvents" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1507-L1514
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setReconciliationActMetadata
public function setReconciliationActMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BilateralDocumentMetadata $value = null) { $this->ReconciliationActMetadata = $value; }
php
public function setReconciliationActMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BilateralDocumentMetadata $value = null) { $this->ReconciliationActMetadata = $value; }
[ "public", "function", "setReconciliationActMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "BilateralDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "Rec...
Set 'ReconciliationActMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BilateralDocumentMetadata $value
[ "Set", "ReconciliationActMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1541-L1544
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setContractMetadata
public function setContractMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\ContractMetadata $value = null) { $this->ContractMetadata = $value; }
php
public function setContractMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\ContractMetadata $value = null) { $this->ContractMetadata = $value; }
[ "public", "function", "setContractMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "ContractMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "ContractMetadata", ...
Set 'ContractMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\ContractMetadata $value
[ "Set", "ContractMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1571-L1574
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setTorg13Metadata
public function setTorg13Metadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value = null) { $this->Torg13Metadata = $value; }
php
public function setTorg13Metadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value = null) { $this->Torg13Metadata = $value; }
[ "public", "function", "setTorg13Metadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "BasicDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "Torg13Metadata", ...
Set 'Torg13Metadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\BasicDocumentMetadata $value
[ "Set", "Torg13Metadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1601-L1604
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setServiceDetailsMetadata
public function setServiceDetailsMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\UnilateralDocument\ServiceDetailsMetadata $value = null) { $this->ServiceDetailsMetadata = $value; }
php
public function setServiceDetailsMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\UnilateralDocument\ServiceDetailsMetadata $value = null) { $this->ServiceDetailsMetadata = $value; }
[ "public", "function", "setServiceDetailsMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "UnilateralDocument", "\\", "ServiceDetailsMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->", "ServiceD...
Set 'ServiceDetailsMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\UnilateralDocument\ServiceDetailsMetadata $value
[ "Set", "ServiceDetailsMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1631-L1634
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setRoamingNotificationStatus
public function setRoamingNotificationStatus(\AgentSIB\Diadoc\Api\Proto\Documents\RoamingNotificationStatus $value = null) { $this->RoamingNotificationStatus = $value; }
php
public function setRoamingNotificationStatus(\AgentSIB\Diadoc\Api\Proto\Documents\RoamingNotificationStatus $value = null) { $this->RoamingNotificationStatus = $value; }
[ "public", "function", "setRoamingNotificationStatus", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "RoamingNotificationStatus", "$", "value", "=", "null", ")", "{", "$", "this", "->", "RoamingNotificationStatus", "=",...
Set 'RoamingNotificationStatus' value @param \AgentSIB\Diadoc\Api\Proto\Documents\RoamingNotificationStatus $value
[ "Set", "RoamingNotificationStatus", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1661-L1664
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.addCustomData
public function addCustomData(\AgentSIB\Diadoc\Api\Proto\CustomDataItem $value) { if ($this->CustomData === null) { $this->CustomData = new \Protobuf\MessageCollection(); } $this->CustomData->add($value); }
php
public function addCustomData(\AgentSIB\Diadoc\Api\Proto\CustomDataItem $value) { if ($this->CustomData === null) { $this->CustomData = new \Protobuf\MessageCollection(); } $this->CustomData->add($value); }
[ "public", "function", "addCustomData", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "CustomDataItem", "$", "value", ")", "{", "if", "(", "$", "this", "->", "CustomData", "===", "null", ")", "{", "$", "this", "->", "CustomData"...
Add a new element to 'CustomData' @param \AgentSIB\Diadoc\Api\Proto\CustomDataItem $value
[ "Add", "a", "new", "element", "to", "CustomData" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1731-L1738
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setDocumentDirection
public function setDocumentDirection(\AgentSIB\Diadoc\Api\Proto\DocumentDirection $value = null) { $this->DocumentDirection = $value; }
php
public function setDocumentDirection(\AgentSIB\Diadoc\Api\Proto\DocumentDirection $value = null) { $this->DocumentDirection = $value; }
[ "public", "function", "setDocumentDirection", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "DocumentDirection", "$", "value", "=", "null", ")", "{", "$", "this", "->", "DocumentDirection", "=", "$", "value", ";", "}" ]
Set 'DocumentDirection' value @param \AgentSIB\Diadoc\Api\Proto\DocumentDirection $value
[ "Set", "DocumentDirection", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1795-L1798
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setSenderSignatureStatus
public function setSenderSignatureStatus(\AgentSIB\Diadoc\Api\Proto\Documents\SenderSignatureStatus $value = null) { $this->SenderSignatureStatus = $value; }
php
public function setSenderSignatureStatus(\AgentSIB\Diadoc\Api\Proto\Documents\SenderSignatureStatus $value = null) { $this->SenderSignatureStatus = $value; }
[ "public", "function", "setSenderSignatureStatus", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "SenderSignatureStatus", "$", "value", "=", "null", ")", "{", "$", "this", "->", "SenderSignatureStatus", "=", "$", "v...
Set 'SenderSignatureStatus' value @param \AgentSIB\Diadoc\Api\Proto\Documents\SenderSignatureStatus $value
[ "Set", "SenderSignatureStatus", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1885-L1888
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setSupplementaryAgreementMetadata
public function setSupplementaryAgreementMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\SupplementaryAgreementMetadata $value = null) { $this->SupplementaryAgreementMetadata = $value; }
php
public function setSupplementaryAgreementMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\SupplementaryAgreementMetadata $value = null) { $this->SupplementaryAgreementMetadata = $value; }
[ "public", "function", "setSupplementaryAgreementMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "BilateralDocument", "\\", "SupplementaryAgreementMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "-...
Set 'SupplementaryAgreementMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\BilateralDocument\SupplementaryAgreementMetadata $value
[ "Set", "SupplementaryAgreementMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L1915-L1918
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setPriceListAgreementMetadata
public function setPriceListAgreementMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value = null) { $this->PriceListAgreementMetadata = $value; }
php
public function setPriceListAgreementMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value = null) { $this->PriceListAgreementMetadata = $value; }
[ "public", "function", "setPriceListAgreementMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "NonformalizedDocument", "\\", "NonformalizedDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "->...
Set 'PriceListAgreementMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value
[ "Set", "PriceListAgreementMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L2035-L2038
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setCertificateRegistryMetadata
public function setCertificateRegistryMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value = null) { $this->CertificateRegistryMetadata = $value; }
php
public function setCertificateRegistryMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value = null) { $this->CertificateRegistryMetadata = $value; }
[ "public", "function", "setCertificateRegistryMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "NonformalizedDocument", "\\", "NonformalizedDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", "this", "-...
Set 'CertificateRegistryMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentMetadata $value
[ "Set", "CertificateRegistryMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L2065-L2068
train
agentsib/diadoc-php
src/Api/Proto/Documents/Document.php
Document.setUniversalTransferDocumentMetadata
public function setUniversalTransferDocumentMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\UniversalTransferDocument\UniversalTransferDocumentMetadata $value = null) { $this->UniversalTransferDocumentMetadata = $value; }
php
public function setUniversalTransferDocumentMetadata(\AgentSIB\Diadoc\Api\Proto\Documents\UniversalTransferDocument\UniversalTransferDocumentMetadata $value = null) { $this->UniversalTransferDocumentMetadata = $value; }
[ "public", "function", "setUniversalTransferDocumentMetadata", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Documents", "\\", "UniversalTransferDocument", "\\", "UniversalTransferDocumentMetadata", "$", "value", "=", "null", ")", "{", "$", ...
Set 'UniversalTransferDocumentMetadata' value @param \AgentSIB\Diadoc\Api\Proto\Documents\UniversalTransferDocument\UniversalTransferDocumentMetadata $value
[ "Set", "UniversalTransferDocumentMetadata", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Documents/Document.php#L2095-L2098
train
agentsib/diadoc-php
src/Api/Proto/Events/SupplementaryAgreementAttachment.php
SupplementaryAgreementAttachment.setSignedContent
public function setSignedContent(\AgentSIB\Diadoc\Api\Proto\Events\SignedContent $value) { $this->SignedContent = $value; }
php
public function setSignedContent(\AgentSIB\Diadoc\Api\Proto\Events\SignedContent $value) { $this->SignedContent = $value; }
[ "public", "function", "setSignedContent", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Events", "\\", "SignedContent", "$", "value", ")", "{", "$", "this", "->", "SignedContent", "=", "$", "value", ";", "}" ]
Set 'SignedContent' value @param \AgentSIB\Diadoc\Api\Proto\Events\SignedContent $value
[ "Set", "SignedContent", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Events/SupplementaryAgreementAttachment.php#L161-L164
train
agentsib/diadoc-php
src/Api/Proto/Docflow/GetDocflowEventsRequest.php
GetDocflowEventsRequest.setFilter
public function setFilter(\AgentSIB\Diadoc\Api\Proto\TimeBasedFilter $value) { $this->Filter = $value; }
php
public function setFilter(\AgentSIB\Diadoc\Api\Proto\TimeBasedFilter $value) { $this->Filter = $value; }
[ "public", "function", "setFilter", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "TimeBasedFilter", "$", "value", ")", "{", "$", "this", "->", "Filter", "=", "$", "value", ";", "}" ]
Set 'Filter' value @param \AgentSIB\Diadoc\Api\Proto\TimeBasedFilter $value
[ "Set", "Filter", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/GetDocflowEventsRequest.php#L99-L102
train
agentsib/diadoc-php
src/Api/Proto/Docflow/GetDocflowEventsRequest.php
GetDocflowEventsRequest.setAfterIndexKey
public function setAfterIndexKey($value = null) { if ($value !== null && ! $value instanceof \Protobuf\Stream) { $value = \Protobuf\Stream::wrap($value); } $this->AfterIndexKey = $value; }
php
public function setAfterIndexKey($value = null) { if ($value !== null && ! $value instanceof \Protobuf\Stream) { $value = \Protobuf\Stream::wrap($value); } $this->AfterIndexKey = $value; }
[ "public", "function", "setAfterIndexKey", "(", "$", "value", "=", "null", ")", "{", "if", "(", "$", "value", "!==", "null", "&&", "!", "$", "value", "instanceof", "\\", "Protobuf", "\\", "Stream", ")", "{", "$", "value", "=", "\\", "Protobuf", "\\", ...
Set 'AfterIndexKey' value @param \Protobuf\Stream $value
[ "Set", "AfterIndexKey", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Docflow/GetDocflowEventsRequest.php#L129-L136
train
agentsib/diadoc-php
src/Api/Proto/OrganizationWithCounteragentStatus.php
OrganizationWithCounteragentStatus.setOrganization
public function setOrganization(\AgentSIB\Diadoc\Api\Proto\Organization $value) { $this->Organization = $value; }
php
public function setOrganization(\AgentSIB\Diadoc\Api\Proto\Organization $value) { $this->Organization = $value; }
[ "public", "function", "setOrganization", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Organization", "$", "value", ")", "{", "$", "this", "->", "Organization", "=", "$", "value", ";", "}" ]
Set 'Organization' value @param \AgentSIB\Diadoc\Api\Proto\Organization $value
[ "Set", "Organization", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/OrganizationWithCounteragentStatus.php#L76-L79
train
agentsib/diadoc-php
src/Api/Proto/OrganizationWithCounteragentStatus.php
OrganizationWithCounteragentStatus.setCounteragentStatus
public function setCounteragentStatus(\AgentSIB\Diadoc\Api\Proto\CounteragentStatus $value = null) { $this->CounteragentStatus = $value; }
php
public function setCounteragentStatus(\AgentSIB\Diadoc\Api\Proto\CounteragentStatus $value = null) { $this->CounteragentStatus = $value; }
[ "public", "function", "setCounteragentStatus", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "CounteragentStatus", "$", "value", "=", "null", ")", "{", "$", "this", "->", "CounteragentStatus", "=", "$", "value", ";", "}" ]
Set 'CounteragentStatus' value @param \AgentSIB\Diadoc\Api\Proto\CounteragentStatus $value
[ "Set", "CounteragentStatus", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/OrganizationWithCounteragentStatus.php#L106-L109
train
agentsib/diadoc-php
src/Api/Proto/Invoicing/ExtendedInvoiceItem.php
ExtendedInvoiceItem.setTaxRate
public function setTaxRate(\AgentSIB\Diadoc\Api\Proto\Invoicing\TaxRate $value) { $this->TaxRate = $value; }
php
public function setTaxRate(\AgentSIB\Diadoc\Api\Proto\Invoicing\TaxRate $value) { $this->TaxRate = $value; }
[ "public", "function", "setTaxRate", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Invoicing", "\\", "TaxRate", "$", "value", ")", "{", "$", "this", "->", "TaxRate", "=", "$", "value", ";", "}" ]
Set 'TaxRate' value @param \AgentSIB\Diadoc\Api\Proto\Invoicing\TaxRate $value
[ "Set", "TaxRate", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Invoicing/ExtendedInvoiceItem.php#L358-L361
train
agentsib/diadoc-php
src/Api/Proto/Invoicing/ExtendedInvoiceItem.php
ExtendedInvoiceItem.addCustomsDeclarations
public function addCustomsDeclarations(\AgentSIB\Diadoc\Api\Proto\Invoicing\CustomsDeclaration $value) { if ($this->CustomsDeclarations === null) { $this->CustomsDeclarations = new \Protobuf\MessageCollection(); } $this->CustomsDeclarations->add($value); }
php
public function addCustomsDeclarations(\AgentSIB\Diadoc\Api\Proto\Invoicing\CustomsDeclaration $value) { if ($this->CustomsDeclarations === null) { $this->CustomsDeclarations = new \Protobuf\MessageCollection(); } $this->CustomsDeclarations->add($value); }
[ "public", "function", "addCustomsDeclarations", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Invoicing", "\\", "CustomsDeclaration", "$", "value", ")", "{", "if", "(", "$", "this", "->", "CustomsDeclarations", "===", "null", ")", ...
Add a new element to 'CustomsDeclarations' @param \AgentSIB\Diadoc\Api\Proto\Invoicing\CustomsDeclaration $value
[ "Add", "a", "new", "element", "to", "CustomsDeclarations" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Invoicing/ExtendedInvoiceItem.php#L488-L495
train
agentsib/diadoc-php
src/Api/Proto/Invoicing/ExtendedInvoiceItem.php
ExtendedInvoiceItem.setItemMark
public function setItemMark(\AgentSIB\Diadoc\Api\Proto\Invoicing\ItemMark $value = null) { $this->ItemMark = $value; }
php
public function setItemMark(\AgentSIB\Diadoc\Api\Proto\Invoicing\ItemMark $value = null) { $this->ItemMark = $value; }
[ "public", "function", "setItemMark", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Invoicing", "\\", "ItemMark", "$", "value", "=", "null", ")", "{", "$", "this", "->", "ItemMark", "=", "$", "value", ";", "}" ]
Set 'ItemMark' value @param \AgentSIB\Diadoc\Api\Proto\Invoicing\ItemMark $value
[ "Set", "ItemMark", "value" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Invoicing/ExtendedInvoiceItem.php#L522-L525
train
agentsib/diadoc-php
src/Api/Proto/Invoicing/ExtendedInvoiceItem.php
ExtendedInvoiceItem.addAdditionalInfo
public function addAdditionalInfo(\AgentSIB\Diadoc\Api\Proto\Invoicing\AdditionalInfo $value) { if ($this->AdditionalInfo === null) { $this->AdditionalInfo = new \Protobuf\MessageCollection(); } $this->AdditionalInfo->add($value); }
php
public function addAdditionalInfo(\AgentSIB\Diadoc\Api\Proto\Invoicing\AdditionalInfo $value) { if ($this->AdditionalInfo === null) { $this->AdditionalInfo = new \Protobuf\MessageCollection(); } $this->AdditionalInfo->add($value); }
[ "public", "function", "addAdditionalInfo", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Invoicing", "\\", "AdditionalInfo", "$", "value", ")", "{", "if", "(", "$", "this", "->", "AdditionalInfo", "===", "null", ")", "{", "$", ...
Add a new element to 'AdditionalInfo' @param \AgentSIB\Diadoc\Api\Proto\Invoicing\AdditionalInfo $value
[ "Add", "a", "new", "element", "to", "AdditionalInfo" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Invoicing/ExtendedInvoiceItem.php#L712-L719
train
agentsib/diadoc-php
src/Api/Proto/GetOrganizationsByInnListRequest.php
GetOrganizationsByInnListRequest.addInnList
public function addInnList($value) { if ($this->InnList === null) { $this->InnList = new \Protobuf\ScalarCollection(); } $this->InnList->add($value); }
php
public function addInnList($value) { if ($this->InnList === null) { $this->InnList = new \Protobuf\ScalarCollection(); } $this->InnList->add($value); }
[ "public", "function", "addInnList", "(", "$", "value", ")", "{", "if", "(", "$", "this", "->", "InnList", "===", "null", ")", "{", "$", "this", "->", "InnList", "=", "new", "\\", "Protobuf", "\\", "ScalarCollection", "(", ")", ";", "}", "$", "this", ...
Add a new element to 'InnList' @param string $value
[ "Add", "a", "new", "element", "to", "InnList" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/GetOrganizationsByInnListRequest.php#L69-L76
train
agentsib/diadoc-php
src/Api/Proto/Events/DraftToSend.php
DraftToSend.addDocumentSignatures
public function addDocumentSignatures(\AgentSIB\Diadoc\Api\Proto\Events\DocumentSenderSignature $value) { if ($this->DocumentSignatures === null) { $this->DocumentSignatures = new \Protobuf\MessageCollection(); } $this->DocumentSignatures->add($value); }
php
public function addDocumentSignatures(\AgentSIB\Diadoc\Api\Proto\Events\DocumentSenderSignature $value) { if ($this->DocumentSignatures === null) { $this->DocumentSignatures = new \Protobuf\MessageCollection(); } $this->DocumentSignatures->add($value); }
[ "public", "function", "addDocumentSignatures", "(", "\\", "AgentSIB", "\\", "Diadoc", "\\", "Api", "\\", "Proto", "\\", "Events", "\\", "DocumentSenderSignature", "$", "value", ")", "{", "if", "(", "$", "this", "->", "DocumentSignatures", "===", "null", ")", ...
Add a new element to 'DocumentSignatures' @param \AgentSIB\Diadoc\Api\Proto\Events\DocumentSenderSignature $value
[ "Add", "a", "new", "element", "to", "DocumentSignatures" ]
0dbfe63397a1f3083c4815ad7033bcb986904979
https://github.com/agentsib/diadoc-php/blob/0dbfe63397a1f3083c4815ad7033bcb986904979/src/Api/Proto/Events/DraftToSend.php#L231-L238
train