query stringlengths 11 3.13k | ru_query stringlengths 9 3.91k | document stringlengths 18 71k | metadata dict | negatives listlengths 0 100 | negative_scores listlengths 0 100 | document_score stringlengths 5 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|---|
/ FUNCTIONS Generates the url for the specified entity | routing string | page id | / ФУНКЦИИ Генерирует url для указанного сущности | маршрутизационной строки | идентификатора страницы | public function generateUrl($entity, $params = null)
{
if (gettype($entity) === 'string') {
$entity = "AllegroSites_$entity";
}
return $this->routingHelper->generateUrl($entity, $params);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function returnUrlForEntity(Entity $entity) {\n\t\treturn Router::url(\n\t\t\t[\n\t\t\t\t'plugin' => null,\n\t\t\t\t'prefix' => null,\n\t\t\t\t'controller' => $this->_table->alias(),\n\t\t\t\t'action' => 'view',\n\t\t\t\t$entity->{$this->_table->primaryKey()},\n\t\t\t],\n\t\t\ttrue\n\t\t);\n\t}",
"functio... | [
"0.69575846",
"0.67800105",
"0.651899",
"0.6492901",
"0.6464377",
"0.64279646",
"0.63752335",
"0.6347413",
"0.6296337",
"0.62721276",
"0.62549084",
"0.624497",
"0.62296355",
"0.6176377",
"0.61689",
"0.61653763",
"0.61525023",
"0.6147345",
"0.6120563",
"0.6070356",
"0.60581106... | 0.7027142 | 0 |
Creates a workflow process for the given workflow and workflow event | Создает workflow-процесс для заданного workflow и workflow-события | public function createWorkflowProcess(Workflow $workflow, AbstractWorkflowEvent $workflowEvent): WorkflowProcess
{
$isValid = $workflowEvent->hasValidTokens();
if (! $isValid) {
throw WorkflowEventException::invalidWorkflowEventParameters();
}
// Create the workflow run... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createWorkflow($datas);",
"function execute($process, $event)\n {\n $returnStatus = eZWorkflowType::STATUS_ACCEPTED;\n\n $parameters = $process->attribute('parameter_list');\n $object = eZContentObject::fetch($parameters['object_id']);\n\n if (!$object) {\n ... | [
"0.58642316",
"0.568541",
"0.5602228",
"0.5544195",
"0.55028105",
"0.54834634",
"0.5331092",
"0.5264262",
"0.5229887",
"0.5201359",
"0.5194857",
"0.51594996",
"0.51308477",
"0.5127265",
"0.5110349",
"0.5097143",
"0.50173897",
"0.5000769",
"0.49907723",
"0.49805492",
"0.497931... | 0.77619076 | 0 |
Creates an output token for the workflow process and identifies the activity that created it | Создает выходной токен для процесса workflow и определяет активность, которая его создала | public function createOutputToken(WorkflowProcess $workflowRun, WorkflowActivity $workflowActivity, string $key, mixed $value): WorkflowProcessToken
{
/** @var WorkflowProcessToken $workflowRunToken */
$workflowRunToken = $workflowRun->workflowProcessTokens()->create([
'workflow_activity... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createTokenInput(){\n $this->generateToken();\n return '<input type=\"hidden\" name=\"_once\" value=\"' . $_SESSION['token'] . '\">';\n }",
"public function createInputToken(WorkflowProcess $workflowProcess, string $key, mixed $value): WorkflowProcessToken\n {\n /** @va... | [
"0.542975",
"0.5419562",
"0.5270009",
"0.52655",
"0.5235124",
"0.51977557",
"0.51264775",
"0.5118552",
"0.5103477",
"0.5085816",
"0.50402534",
"0.5003512",
"0.4981819",
"0.49771118",
"0.49572334",
"0.49068543",
"0.48853388",
"0.48708984",
"0.48608392",
"0.48572114",
"0.485679... | 0.7040817 | 0 |
test if value is submit but is empty | проверить, является ли значение отправленным, но пустым | public function is_empty()
{
if( $this->is_submit() && ($this->taintedInputs->length()=== 0))
return true;
else
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function checkEmpty(){\n\t\tif(!empty($_POST)){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"function fieldsEmpty() {\n if(empty($_POST['title']) || empty($_POST['date']) || empty($_POST['location'])) {\n return true;\n } else {\n return false;\n }\n}",
"function n... | [
"0.7227422",
"0.6979103",
"0.6805974",
"0.6757064",
"0.67430276",
"0.6710216",
"0.6621762",
"0.66206884",
"0.6590798",
"0.6555877",
"0.63911146",
"0.6390588",
"0.6387652",
"0.63636065",
"0.63464504",
"0.63461804",
"0.63356763",
"0.6332535",
"0.63195604",
"0.6318699",
"0.63169... | 0.7660282 | 0 |
Prepare data for update | Подготовить данные для обновления | protected function _prepareUpdateData($data) {
$dataPrepared = array(
'name' => $data->getName(),
'module_id' => $data->getModule_id(),
'system' => $data->getSystem(),
'person_id' => $data->getPerson_id(),
'color' => $data->getColor(),
);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function prepareData();",
"protected function prepareDataForUpdate(){\n\n\t\t// the object get by isUsing function\n\t\t$object = $this->_currentObject[$this->_model->alias];\n\t\t$post = $this->request->data;\n\t\tif (!$this->_model->validates()){\n\t\t\tthrow new NotFoundException($this->_model... | [
"0.7103722",
"0.7100322",
"0.6887894",
"0.6813769",
"0.6648072",
"0.65205246",
"0.65174204",
"0.65110296",
"0.64727515",
"0.64644086",
"0.64620405",
"0.64552224",
"0.6392809",
"0.6330844",
"0.63108474",
"0.6304468",
"0.62723124",
"0.6270269",
"0.6261377",
"0.6257602",
"0.6239... | 0.7291098 | 0 |
Get the URL and return it as a string | Получите URL и верните его в виде строки | public function getUrlAsString(): string
{
return $this->url;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_url(): string\n {\n return $this->get_url_internal();\n }",
"public function getURL(): string\n {\n return $this->http->getURL();\n }",
"public function getURL();",
"public function getURL();",
"protected function getUrl(): string\n {\n return $this->... | [
"0.8298792",
"0.82575816",
"0.8222928",
"0.8222928",
"0.8146713",
"0.80857027",
"0.7984615",
"0.7959286",
"0.79391223",
"0.79391223",
"0.7905314",
"0.7896312",
"0.7877292",
"0.7848821",
"0.7848821",
"0.78416365",
"0.78416365",
"0.7818941",
"0.78179413",
"0.7758728",
"0.774719... | 0.8354214 | 0 |
Serializes card to serialization string. | Сериализует карту в строку сериализации. | public function serialize(Card $card); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function serialize() \n {\n return serialize([\n 'boardingCardNumber'=>$this->boardingCardId,\n 'arrival'=>$this->arrival, \n 'departure'=>$this->departure, \n 'passenger'=>$this->passen... | [
"0.6130203",
"0.59581643",
"0.59273213",
"0.5885571",
"0.58813125",
"0.5772732",
"0.5638529",
"0.5582901",
"0.553565",
"0.55190796",
"0.55066",
"0.55066",
"0.55066",
"0.55066",
"0.55066",
"0.55066",
"0.55061454",
"0.55061454",
"0.5470354",
"0.5470354",
"0.5470354",
"0.54401... | 0.84580797 | 0 |
Creates a new Products model. If creation is successful, the browser will be redirected to the 'view' page. | Создает новый модель Products. Если создание успешно, браузер будет перенаправлен на страницу 'view'. | public function actionCreate()
{
$model = new Products();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
} else {
return $this->render('create', [
'model' => $model,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n {\n $model = new Product();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\... | [
"0.8466368",
"0.83674884",
"0.8355095",
"0.8326711",
"0.82675",
"0.8135018",
"0.80130744",
"0.8007102",
"0.78880584",
"0.77849776",
"0.77426726",
"0.77388746",
"0.7736695",
"0.7681387",
"0.7625231",
"0.75885767",
"0.7572512",
"0.75501007",
"0.75344485",
"0.7519762",
"0.751976... | 0.8813426 | 0 |
Get options for cart endpoint. | Получить параметры для конечной точки корзины. | public static function getCartOptions()
{
return self::get('cart') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCartOptions()\n {\n return [\n '1' => [\n 'name' => 'Цвет',\n 'variants' => ['1' => 'Красный', '2' => 'Белый', '3' => 'Синий'],\n ],\n '2' => [\n 'name' => 'Размер',\n 'variants' => ['4' => 'XL... | [
"0.71079016",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66131854",
"0.66060644",
"0.6605481",
"0.6605481",
... | 0.8125265 | 0 |
Get options for categories endpoint. | Получить параметры для конечной точки категорий. | public static function getCategoriesOptions()
{
return self::get('categories') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getCategoryOptions()\n {\n return self::get('category') ?: [];\n }",
"public function GetCategoryOptions() {\n $return = \"\";\n $this->GetCategories();\n \n // Create the Options\n foreach ($this->rs as $row) {\n $return .= '<opti... | [
"0.8261367",
"0.70652246",
"0.706271",
"0.704938",
"0.70073146",
"0.7007286",
"0.6964633",
"0.69297147",
"0.690113",
"0.6773926",
"0.6773926",
"0.6707636",
"0.6640951",
"0.66292703",
"0.661323",
"0.65897006",
"0.65704167",
"0.65588415",
"0.65588415",
"0.65588415",
"0.65588415... | 0.82011175 | 1 |
Get options for category endpoint. | Получить параметры для конечной точки категории. | public static function getCategoryOptions()
{
return self::get('category') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getCategoriesOptions()\n {\n return self::get('categories') ?: [];\n }",
"public function GetCategoryOptions() {\n $return = \"\";\n $this->GetCategories();\n \n // Create the Options\n foreach ($this->rs as $row) {\n $return .= '<... | [
"0.7576817",
"0.6869979",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66761726",
"0.66178155",
"0.6617386",
... | 0.8151903 | 0 |
Get options for products endpoint. | Получить параметры для конечной точки продуктов. | public static function getProductsOptions()
{
return self::get('products') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getProductOptions()\n {\n return self::get('product') ?: [];\n }",
"public function getProducts_options() {\n\t\treturn $this->products_options;\n\t}",
"public function getProductOption();",
"public function getOptionList()\n {\n return Mage::helper('bundle/catal... | [
"0.8232958",
"0.7722287",
"0.7475715",
"0.6926583",
"0.69037056",
"0.6831782",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
"0.6676823",
... | 0.8249201 | 0 |
Get options for product endpoint. | Получить параметры для конечной точки продукта. | public static function getProductOptions()
{
return self::get('product') ?: [];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getProductsOptions()\n {\n return self::get('products') ?: [];\n }",
"public function getProductOption();",
"public function getProducts_options() {\n\t\treturn $this->products_options;\n\t}",
"public function getOptionList()\n {\n return Mage::helper('bundle/cat... | [
"0.7604395",
"0.75408506",
"0.7381102",
"0.7118237",
"0.71144694",
"0.7113813",
"0.7113813",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
"0.7113068",
... | 0.79135555 | 0 |
Registers an event to be published when the aggregate is saved, containing the given payload and optional metadata. | Зарегистрировать событие для публикации при сохранении агрегата, содержащее заданный полезную нагрузку и необязательные метаданные. | protected function registerEvent($payload, $metadata = null)
{
if ($payload instanceof AbstractDomainEvent && null === $payload->aggregateId) {
$payload->setAggregateId($this->getId());
}
return $this->getEventContainer()
->addEvent($payload, $metadata);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function push($event, $payload = array())\n {\n $this->listen($event .'_pushed', function() use ($event, $payload)\n {\n $this->dispatch($event, $payload);\n });\n }",
"public function publish($event, $bus);",
"public function register($slug, $args = [], $descriptio... | [
"0.5790317",
"0.5744322",
"0.5651529",
"0.5641642",
"0.5621258",
"0.560686",
"0.5526483",
"0.5516685",
"0.5459593",
"0.53452635",
"0.53317636",
"0.51465344",
"0.5091057",
"0.50896096",
"0.5042483",
"0.50397635",
"0.50018495",
"0.49942774",
"0.49684134",
"0.4965024",
"0.495183... | 0.7300139 | 0 |
Get raw data array. | Получить массив сырых данных. | public function getRawData(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRawData() {}",
"public function getData()\n {\n return $this->raw;\n }",
"public function getData(): array;",
"public function getData(): array;",
"public function getData(): array;",
"public function getData(): array;",
"public static function getRawData()\n {\n ret... | [
"0.8163359",
"0.78400236",
"0.77813596",
"0.77813596",
"0.77813596",
"0.77813596",
"0.7756806",
"0.7741698",
"0.76840156",
"0.7661394",
"0.75895286",
"0.75895286",
"0.7582252",
"0.75677174",
"0.7556133",
"0.7556133",
"0.7556133",
"0.7546974",
"0.7544819",
"0.7520431",
"0.7506... | 0.82051533 | 1 |
Set formatted data array. | Установить массив данных с форматированием. | public function setFormattedData($formatted_data); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function formatData(array $data)\n {\n $this->data = json_encode($data);\n }",
"public function setFromArray(array &$_data);",
"public function setFromArray(array $data);",
"public function setData(Array $data);",
"public function setData(array $data);",
"public function setData(array... | [
"0.7183745",
"0.6917905",
"0.6846041",
"0.6757843",
"0.6600288",
"0.6600288",
"0.6600288",
"0.6375393",
"0.63494265",
"0.62377405",
"0.62374145",
"0.62307835",
"0.62186104",
"0.62186104",
"0.62186104",
"0.62186104",
"0.62103075",
"0.6199522",
"0.61931646",
"0.6192093",
"0.612... | 0.70812774 | 1 |
Get the email key. | Получите ключ электронной почты. | public static function getEmailKey($tracking_method = null); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getEmailKey() {\n\t\treturn $this->getData('emailKey');\n\t}",
"function getEmailId() {\n\t\treturn $this->getData('emailId');\n\t}",
"private function getKey() {\n\t\tif ( !$this->key )\n\t\t\t$this->key = \"mvn-maillists-\" . sanitize_key( $this->getName() );\n\n\t\treturn $this->key;\n\t}",
"publ... | [
"0.8846848",
"0.72901225",
"0.6949957",
"0.68924683",
"0.6844382",
"0.6832427",
"0.6803062",
"0.6773031",
"0.6751315",
"0.6751315",
"0.66886264",
"0.66882163",
"0.66881645",
"0.66864604",
"0.66756535",
"0.66611224",
"0.66611224",
"0.6658664",
"0.6658664",
"0.66254276",
"0.662... | 0.73549336 | 1 |
Format the data based on tracking method. | Форматируйте данные в зависимости от метода отслеживания. | public function formatData() {
$raw_data = $this->getRawData();
$formatted_data = array();
// Format the data based on tracking method.
switch ($this->getTrackingMethod()) {
case 'rest':
// Replace marketo_id with value of MARKETO_REST_LEAD_FIELD_REST_KEY.
foreach ($raw_data as $id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFormattedData();",
"public function formatData(){\n $from = $this->dataObject->getFrom();\n\n // prepare array for counterxmlbuild with vendor informations\n $data = array(\n 'Report' => array (\n 0 => array(\n // Report attribu... | [
"0.62123954",
"0.60214823",
"0.5959424",
"0.5959424",
"0.57091194",
"0.5628866",
"0.55798537",
"0.555564",
"0.5537534",
"0.5520703",
"0.5515618",
"0.54503894",
"0.54503894",
"0.54205036",
"0.5397852",
"0.533216",
"0.53151554",
"0.52789956",
"0.5245866",
"0.5159401",
"0.515528... | 0.7600277 | 0 |
Get the [op_prime_id] column value. | Получите значение столбца [op_prime_id]. | public function getOpPrimeId()
{
return $this->op_prime_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"public function getOperationPrimeCurrencyId()\n {\n\n return $this->operation_prime_currency_id;\n }",
"public fun... | [
"0.72192276",
"0.69231695",
"0.6648075",
"0.6617529",
"0.62691385",
"0.5923606",
"0.5923606",
"0.5825936",
"0.5816718",
"0.5714843",
"0.57011503",
"0.5628362",
"0.5580933",
"0.55354625",
"0.5518492",
"0.55079764",
"0.54923713",
"0.5469512",
"0.54591674",
"0.54401",
"0.5406993... | 0.82185084 | 0 |
Get the [op_id] column value. | Получите значение столбца [op_id]. | public function getOpId()
{
return $this->op_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationId()\n {\n return $this->operation_id;\n }",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t... | [
"0.6854243",
"0.64414126",
"0.64414126",
"0.63226193",
"0.62305635",
"0.60161823",
"0.5986363",
"0.59794766",
"0.597422",
"0.59416896",
"0.59416896",
"0.59350705",
"0.5930112",
"0.5891276",
"0.5881656",
"0.58718306",
"0.58709615",
"0.58382976",
"0.58303183",
"0.58217275",
"0.... | 0.80394846 | 0 |
Get the [op_prime_libelle] column value. | Получите значение столбца [op_prime_libelle]. | public function getOpPrimeLibelle()
{
return $this->op_prime_libelle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime... | [
"0.64187676",
"0.64187676",
"0.64187676",
"0.6328785",
"0.6213114",
"0.62074524",
"0.5890744",
"0.57305837",
"0.5648851",
"0.54826444",
"0.54175",
"0.5410004",
"0.5381991",
"0.5363936",
"0.5327431",
"0.53254193",
"0.53252274",
"0.5240946",
"0.5192604",
"0.51889575",
"0.518247... | 0.7962335 | 0 |
Get the [op_prime_numero] column value. | Получите значение столбца [op_prime_numero]. | public function getOpPrimeNumero()
{
return $this->op_prime_numero;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function getOpPrimeLibelle()\n {\n\n return $this->op_prime_libelle;\n }",
"public function getNumeroProcesso() {\n return $this->iNumeroProcesso;\n }",
"public function getNumero() {\n return... | [
"0.69652295",
"0.6779649",
"0.6195364",
"0.61157924",
"0.6081711",
"0.6076515",
"0.60570854",
"0.5930269",
"0.592364",
"0.58985156",
"0.585972",
"0.585972",
"0.58493847",
"0.5824136",
"0.5770044",
"0.56389725",
"0.56212413",
"0.5605843",
"0.558562",
"0.55486846",
"0.54947644"... | 0.8128191 | 0 |
Get the [gdl_art_id] column value. | Получите значение столбца [gdl_art_id]. | public function getGdlArtId()
{
return $this->gdl_art_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getIdArt()\n {\n return $this->idArt;\n }",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t }",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t }",
"public function getidArt()\n\t {\n\t return $this->idArt;\n\t ... | [
"0.65305364",
"0.642353",
"0.642353",
"0.642353",
"0.621799",
"0.6118175",
"0.61141753",
"0.6101657",
"0.6011724",
"0.5935601",
"0.5928047",
"0.5911564",
"0.5911564",
"0.5823948",
"0.58236337",
"0.5812425",
"0.5804981",
"0.580294",
"0.57908815",
"0.57905495",
"0.57878834",
... | 0.78920126 | 0 |
Get the [operation_prime_currency_id] column value. | Получите значение столбца [operation_prime_currency_id]. | public function getOperationPrimeCurrencyId()
{
return $this->operation_prime_currency_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOpPrimeId()\n {\n\n return $this->op_prime_id;\n }",
"public function getId() {\r\n\t\treturn($this->_currency_id);\r\n\t}",
"public function getCurrencyId()\n {\n return $this->currency_id;\n }",
"public function setOperationPrimeCurrencyId($v)\n {\n ... | [
"0.67050874",
"0.65308934",
"0.6258168",
"0.6064645",
"0.6054431",
"0.5844944",
"0.5679418",
"0.5539268",
"0.5504156",
"0.5503011",
"0.5502969",
"0.54434776",
"0.54260874",
"0.53574157",
"0.5279207",
"0.5279207",
"0.52437246",
"0.5204225",
"0.5194511",
"0.5179614",
"0.5169454... | 0.8447531 | 0 |
Get the [operation_prime_r_reward_type_id] column value. | Получите значение столбца [operation_prime_r_reward_type_id]. | public function getOperationPrimeRRewardTypeId()
{
return $this->operation_prime_r_reward_type_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getType_id()\n {\n return $this->type_id;\n }",
"public function getOperationPrimeRRewardExpeditionModeId()\n {\n\n return $this->operation_prime_r_reward_expedition_mode_id;\n }",
"public function getIdType() {\n\t\treturn $this->id_type;\n\t}",
"public function get... | [
"0.6128773",
"0.5971852",
"0.5958365",
"0.5925417",
"0.5923487",
"0.5910461",
"0.5900198",
"0.58992726",
"0.57221735",
"0.57031703",
"0.56892955",
"0.56892955",
"0.56892955",
"0.5680827",
"0.5666618",
"0.56575644",
"0.56103384",
"0.56047326",
"0.56027794",
"0.56008273",
"0.55... | 0.8441382 | 0 |
Get the [operation_prime_r_reward_expedition_mode_id] column value. | Получите значение столбца [operation_prime_r_reward_expedition_mode_id]. | public function getOperationPrimeRRewardExpeditionModeId()
{
return $this->operation_prime_r_reward_expedition_mode_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n ... | [
"0.642256",
"0.626327",
"0.6258651",
"0.6167572",
"0.5966962",
"0.58576626",
"0.56559217",
"0.5654066",
"0.56506354",
"0.5639693",
"0.5526582",
"0.5503014",
"0.5487547",
"0.5472692",
"0.5467565",
"0.5455491",
"0.54516625",
"0.54383254",
"0.5418965",
"0.5400028",
"0.5400028",
... | 0.8657667 | 0 |
Get the [operation_prime_r_reward_transporter_id] column value. | Получите значение столбца [operation_prime_r_reward_transporter_id]. | public function getOperationPrimeRRewardTransporterId()
{
return $this->operation_prime_r_reward_transporter_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRelaterId()\n {\n $value = $this->get(self::RELATER_ID);\n return $value === null ? (integer)$value : $value;\n }",
"private function getRetailerId()\n {\n $retailerId = null;\n if ($this->currentStore->getRetailer() && $this->currentStore->getRetailer()->g... | [
"0.6779566",
"0.67292094",
"0.6601552",
"0.6599131",
"0.6279402",
"0.6278373",
"0.60891867",
"0.60190415",
"0.5993007",
"0.5989244",
"0.5960304",
"0.5921398",
"0.5859235",
"0.5796274",
"0.57935035",
"0.5786525",
"0.5776628",
"0.5774534",
"0.57615083",
"0.57615083",
"0.5761508... | 0.8755693 | 0 |
Get the [operation_prime_fixed_amount] column value. | Получите значение столбца [operation_prime_fixed_amount]. | public function getOperationPrimeFixedAmount()
{
return $this->operation_prime_fixed_amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeMaximumAmount()\n {\n\n return $this->operation_prime_maximum_amount;\n }",
"public function setOperationPrimeFixedAmount($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n ... | [
"0.6291335",
"0.56566775",
"0.53594",
"0.53132343",
"0.52206147",
"0.52107495",
"0.5126435",
"0.5124241",
"0.51042885",
"0.508893",
"0.50851667",
"0.50497",
"0.48663005",
"0.48652673",
"0.48305568",
"0.48106357",
"0.48056546",
"0.48026884",
"0.47845963",
"0.47630927",
"0.4747... | 0.82540286 | 0 |
Get the [operation_prime_product_price_pourcentage] column value. | Получите значение столбца [operation_prime_product_price_pourcentage]. | public function getOperationPrimeProductPricePourcentage()
{
return $this->operation_prime_product_price_pourcentage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n ... | [
"0.68424267",
"0.6395525",
"0.6274206",
"0.61656374",
"0.61491066",
"0.61201084",
"0.6116658",
"0.6059438",
"0.60510963",
"0.5940293",
"0.58956015",
"0.587776",
"0.58571327",
"0.5856519",
"0.58443177",
"0.5826923",
"0.5826112",
"0.58171475",
"0.5777953",
"0.5754116",
"0.57386... | 0.8628817 | 0 |
Get the [operation_prime_maximum_amount] column value. | Получите значение столбца [operation_prime_maximum_amount]. | public function getOperationPrimeMaximumAmount()
{
return $this->operation_prime_maximum_amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeFixedAmount()\n {\n\n return $this->operation_prime_fixed_amount;\n }",
"public function getMaxPriceInt()\n {\n $stats = $this->_getFieldStats();\n $max = $stats['max'];\n if (!is_numeric($max)) {\n $max = parent::getMaxPriceInt();\... | [
"0.65634733",
"0.6449375",
"0.6447475",
"0.64324164",
"0.6414635",
"0.6414212",
"0.6369714",
"0.6368224",
"0.63564134",
"0.63075167",
"0.6303096",
"0.6262085",
"0.6239464",
"0.62193793",
"0.61821467",
"0.6166045",
"0.6160484",
"0.6154595",
"0.6154595",
"0.61134857",
"0.610121... | 0.83265495 | 0 |
Set the value of [op_prime_id] column. | Задайте значение столбца [op_prime_id]. | public function setOpPrimeId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->op... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if... | [
"0.70000744",
"0.69464374",
"0.6362339",
"0.6270644",
"0.5910605",
"0.5812543",
"0.5671231",
"0.5596519",
"0.5596519",
"0.5568444",
"0.5216141",
"0.5169974",
"0.51482946",
"0.51230294",
"0.5119571",
"0.49663097",
"0.49595487",
"0.49336648",
"0.49336648",
"0.4933062",
"0.49271... | 0.7637416 | 0 |
setOpPrimeId() Set the value of [op_id] column. | setOpPrimeId() Установить значение столбца [op_id]. | public function setOpId($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_numeric($v)) {
$v = (int) $v;
}
}
if ($this->op_id !... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n ... | [
"0.7645354",
"0.6735857",
"0.6311355",
"0.60500765",
"0.58966213",
"0.54381555",
"0.5321016",
"0.5246689",
"0.5246689",
"0.52158755",
"0.51608074",
"0.5129233",
"0.5099695",
"0.50778925",
"0.5020183",
"0.5008836",
"0.5005647",
"0.5005647",
"0.49662164",
"0.49269044",
"0.49193... | 0.73395073 | 1 |
setOperationPrimeProductPricePourcentage() Set the value of [operation_prime_maximum_amount] column. | setOperationPrimeProductPricePourcentage() Устанавливает значение столбца [operation_prime_maximum_amount]. | public function setOperationPrimeMaximumAmount($v)
{
if ($v === ''){
$v = null;
}
elseif ($v !== null){
if(is_string($v)){
$v = str_replace(
array(' ',','),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationPrimeProductPricePourcentage()\n {\n\n return $this->operation_prime_product_price_pourcentage;\n }",
"public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n ... | [
"0.70905197",
"0.6973483",
"0.65682626",
"0.5927806",
"0.5793626",
"0.5509157",
"0.54604095",
"0.54604095",
"0.54604095",
"0.5455875",
"0.5373107",
"0.52523375",
"0.52031016",
"0.51025015",
"0.5088597",
"0.5012854",
"0.5007222",
"0.4998971",
"0.49829134",
"0.4940826",
"0.4930... | 0.70858216 | 1 |
Generic method to set the primary key (op_prime_id column). | Общий метод установки первичного ключа (столбец op_prime_id). | public function setPrimaryKey($key)
{
$this->setOpPrimeId($key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOpPrimeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n ... | [
"0.6875452",
"0.6530969",
"0.64509064",
"0.64460796",
"0.63987476",
"0.63456076",
"0.62977344",
"0.6285413",
"0.6285413",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252991",
"0.6252182",
"0.62244624",
"0.62244624",
"0.621682... | 0.7266264 | 0 |
Declares an association between this object and a RRewardExpeditionModes object. | Объявляет ассоциацию между этим объектом и объектом RRewardExpeditionModes. | public function setRRewardExpeditionModes(RRewardExpeditionModes $v = null)
{
if ($v === null) {
$this->setOperationPrimeRRewardExpeditionModeId(NULL);
} else {
$this->setOperationPrimeRRewardExpeditionModeId($v->getRRewardExpeditionModeId());
}
$this->aRRewa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrimeRRewardExpeditionModeId($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n ... | [
"0.599741",
"0.5618633",
"0.4911883",
"0.4834147",
"0.4806142",
"0.4684537",
"0.4624924",
"0.4554939",
"0.45481062",
"0.4432999",
"0.44015458",
"0.43724847",
"0.43066055",
"0.42781222",
"0.4174686",
"0.4174686",
"0.4148976",
"0.41225937",
"0.4112767",
"0.4111509",
"0.41092896... | 0.7004069 | 0 |
Declares an association between this object and a RRewardTransporters object. | Объявляет ассоциацию между этим объектом и объектом RRewardTransporters. | public function setRRewardTransporters(RRewardTransporters $v = null)
{
if ($v === null) {
$this->setOperationPrimeRRewardTransporterId(NULL);
} else {
$this->setOperationPrimeRRewardTransporterId($v->getRRewardTransporterId());
}
$this->aRRewardTransporters ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTransportReff()\n {\n return $this->hasOne(MsRefference::className(), ['id' => 'transport_reff_id']);\n }",
"public function trainer()\n {\n return $this->hasOne('App\\Models\\Trainer');\n }",
"public function setOperationPrimeRRewardTransporterId($v)\n {\n ... | [
"0.5896614",
"0.5728776",
"0.571786",
"0.5373154",
"0.5350214",
"0.5274701",
"0.50467205",
"0.5030582",
"0.49982965",
"0.49600393",
"0.49323332",
"0.4928343",
"0.49009565",
"0.4899642",
"0.4886878",
"0.48790926",
"0.4867794",
"0.4830812",
"0.48303097",
"0.4789412",
"0.4761225... | 0.7208917 | 0 |
Clears out the collOperationPrestationss collection This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method. | Очищает коллекцию collOperationPrestationss. Это не изменяет базу данных; однако, это удалит все связанные объекты, заставляя их повторно загружаться последующими вызовами метода доступа. | public function clearOperationPrestationss()
{
$this->collOperationPrestationss = null; // important to set this to null since that means it is uninitialized
$this->collOperationPrestationssPartial = null;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }",
"public function clear()\n {\n $this->op_prime_id... | [
"0.674621",
"0.6288673",
"0.6185417",
"0.60685194",
"0.603315",
"0.5999126",
"0.5965161",
"0.59575105",
"0.595447",
"0.5941018",
"0.5928908",
"0.5921569",
"0.5875568",
"0.5865466",
"0.58006847",
"0.5782392",
"0.57652754",
"0.57650787",
"0.5749568",
"0.5733896",
"0.56765324",
... | 0.8006322 | 0 |
Initializes the collOperationPrestationss collection. By default this just sets the collOperationPrestationss collection to an empty array (like clearcollOperationPrestationss()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the... | Инициализирует коллекцию collOperationPrestationss. По умолчанию это просто устанавливает коллекцию collOperationPrestationss в пустой массив (как clearcollOperationPrestationss()); однако вы можете переопределить этот метод в своей заглушке, чтобы задать значения, соответствующие вашему приложению, например, установит... | public function initOperationPrestationss($overrideExisting = true)
{
if (null !== $this->collOperationPrestationss && !$overrideExisting) {
return;
}
$this->collOperationPrestationss = new PropelObjectCollection();
$this->collOperationPrestationss->setModel('OperationPre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationPrestationss(PropelCollection $operationPrestationss, PropelPDO $con = null)\n {\n $operationPrestationssToDelete = $this->getOperationPrestationss(new Criteria(), $con)->diff($operationPrestationss);\n\n\n $this->operationPrestationssScheduledForDeletion = $operationPr... | [
"0.73556983",
"0.6526355",
"0.63225114",
"0.6301389",
"0.57139075",
"0.5607161",
"0.5303804",
"0.5236978",
"0.5098507",
"0.5087634",
"0.50738126",
"0.48939562",
"0.4883697",
"0.4818911",
"0.48068157",
"0.47963655",
"0.4773215",
"0.4769695",
"0.47458127",
"0.46931636",
"0.4642... | 0.7210099 | 1 |
Gets an array of OperationPrestations objects which contain a foreign key that references this object. If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $cri... | Получает массив объектов OperationPrestations, которые содержат идентификатор внешнего ключа, ссылающийся на этот объект. Если $criteria не равен null, он используется для получения результатов всегда из базы данных. В противном случае результаты сначала извлекаются из базы данных, а затем кэшируются. При следующем выз... | public function getOperationPrestationss($criteria = null, PropelPDO $con = null)
{
$partial = $this->collOperationPrestationssPartial && !$this->isNew();
if (null === $this->collOperationPrestationss || null !== $criteria || $partial) {
if ($this->isNew() && null === $this->collOperati... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collOperationScenariisPartial && !$this->isNew();\n if (null === $this->collOperationScenariis || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collOperati... | [
"0.69494057",
"0.6451171",
"0.5951217",
"0.58791965",
"0.5715523",
"0.55273855",
"0.54977137",
"0.5471179",
"0.5467212",
"0.5393388",
"0.5346385",
"0.5292309",
"0.52794075",
"0.5270325",
"0.5226816",
"0.52264035",
"0.5216543",
"0.5216543",
"0.52002007",
"0.5180528",
"0.517010... | 0.78791815 | 0 |
Method called to associate a OperationPrestations object to this object through the OperationPrestations foreign key attribute. | Метод, вызываемый для привязки объекта OperationPrestations к этому объекту через атрибут внешнего ключа OperationPrestations. | public function addOperationPrestations(OperationPrestations $l)
{
if ($this->collOperationPrestationss === null) {
$this->initOperationPrestationss();
$this->collOperationPrestationssPartial = true;
}
if (!in_array($l, $this->collOperationPrestationss->getArrayCopy(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function initOperationPrestationss($overrideExisting = true)\n {\n if (null !== $this->collOperationPrestationss && !$overrideExisting) {\n return;\n }\n $this->collOperationPrestationss = new PropelObjectCollection();\n $this->collOperationPrestationss->setModel('O... | [
"0.5854731",
"0.5768094",
"0.5285368",
"0.5162804",
"0.4965603",
"0.48521185",
"0.47333303",
"0.47283053",
"0.47233707",
"0.46891028",
"0.4627381",
"0.4606199",
"0.46025395",
"0.4514157",
"0.4506085",
"0.4440997",
"0.4427161",
"0.44236058",
"0.4386487",
"0.4386487",
"0.433747... | 0.73192304 | 0 |
Clears out the collOperationScenariis collection This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method. | Очищает коллекцию collOperationScenariis. Это не изменяет базу данных; однако, это удалит любые связанные объекты, заставляя их быть заново загруженными последующими вызовами метода доступа. | public function clearOperationScenariis()
{
$this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized
$this->collOperationScenariisPartial = null;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clear()\n {\n $this->collection->clear();\n $this->keys = [];\n }",
"public function clearCollection()\n {\n $this->collections = [];\n }",
"public function clear()\n {\n $this->op_prime_id = null;\n $this->op_id = null;\n $this->op_prime... | [
"0.6750238",
"0.6639179",
"0.65198493",
"0.6416884",
"0.63867074",
"0.6307864",
"0.6274599",
"0.6241243",
"0.61812353",
"0.61485565",
"0.6132217",
"0.607879",
"0.60750383",
"0.60667855",
"0.604218",
"0.60326314",
"0.6023424",
"0.59935606",
"0.59800345",
"0.5976338",
"0.596588... | 0.7762139 | 0 |
Initializes the collOperationScenariis collection. By default this just sets the collOperationScenariis collection to an empty array (like clearcollOperationScenariis()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial ... | Инициализирует коллекцию collOperationScenariis. По умолчанию это просто устанавливает коллекцию collOperationScenariis в пустой массив (как clearcollOperationScenariis()); однако вы можете переопределить этот метод в своей заглушке, чтобы задать соответствующие значения для вашего приложения, например, установить нача... | public function initOperationScenariis($overrideExisting = true)
{
if (null !== $this->collOperationScenariis && !$overrideExisting) {
return;
}
$this->collOperationScenariis = new PropelObjectCollection();
$this->collOperationScenariis->setModel('OperationScenarii');
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOperationScenariis(PropelCollection $operationScenariis, PropelPDO $con = null)\n {\n $operationScenariisToDelete = $this->getOperationScenariis(new Criteria(), $con)->diff($operationScenariis);\n\n\n $this->operationScenariisScheduledForDeletion = $operationScenariisToDelete;\n... | [
"0.7024721",
"0.5935696",
"0.5555607",
"0.55048114",
"0.5274908",
"0.520496",
"0.5170482",
"0.516791",
"0.5073825",
"0.5029846",
"0.49778882",
"0.49626476",
"0.49363145",
"0.4904427",
"0.48997408",
"0.48211908",
"0.47973523",
"0.4793396",
"0.47741362",
"0.47221175",
"0.471622... | 0.7022886 | 1 |
Gets an array of OperationScenarii objects which contain a foreign key that references this object. If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criter... | Получает массив объектов OperationScenarii, которые содержат идентификатор-ссылку на этот объект. Если $criteria не равен null, он используется для получения результатов из базы данных каждый раз. В противном случае результаты сначала загружаются из базы данных, а затем кэшируются. При следующем вызове этой же метода б... | public function getOperationScenariis($criteria = null, PropelPDO $con = null)
{
$partial = $this->collOperationScenariisPartial && !$this->isNew();
if (null === $this->collOperationScenariis || null !== $criteria || $partial) {
if ($this->isNew() && null === $this->collOperationScenari... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();\n if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {\n if ($this->isNew() ... | [
"0.67946124",
"0.6406716",
"0.6288889",
"0.6235915",
"0.59735477",
"0.59352905",
"0.567421",
"0.556548",
"0.550335",
"0.5485317",
"0.54754704",
"0.54493105",
"0.54493105",
"0.5385212",
"0.53807765",
"0.5379429",
"0.53694385",
"0.53662443",
"0.536164",
"0.5353145",
"0.53432184... | 0.7598169 | 0 |
Clears out the collLnkOperationPrimeRCountriess collection This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method. | Очищает коллекцию collLnkOperationPrimeRCountriess. Это не изменяет базу данных; однако, это удалит любые связанные объекты, заставляя их повторно загружаться последующими вызовами метода доступа. | public function clearLnkOperationPrimeRCountriess()
{
$this->collLnkOperationPrimeRCountriess = null; // important to set this to null since that means it is uninitialized
$this->collLnkOperationPrimeRCountriessPartial = null;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function clear()\n {\n $this->op_prime_id = null;\n $this->op_id = null;\n $this->op_prime_libelle = null;\n $this->op_prime_numero = null;\n $this->gdl_art_id = null;\n $this->operation_prime_currency_id = null;\n $this->operation_prime_r_reward_type_id =... | [
"0.64430946",
"0.6380274",
"0.59960514",
"0.5976945",
"0.5924551",
"0.58635014",
"0.5850904",
"0.5838168",
"0.5825917",
"0.56791365",
"0.5651359",
"0.56427115",
"0.5636238",
"0.5629349",
"0.5627899",
"0.56266546",
"0.56032336",
"0.56003785",
"0.5572963",
"0.55691105",
"0.5540... | 0.8122684 | 0 |
Initializes the collLnkOperationPrimeRCountriess collection. By default this just sets the collLnkOperationPrimeRCountriess collection to an empty array (like clearcollLnkOperationPrimeRCountriess()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for... | Инициализирует коллекцию collLnkOperationPrimeRCountriess. По умолчанию это просто устанавливает коллекцию collLnkOperationPrimeRCountriess в пустой массив (как clearcollLnkOperationPrimeRCountriess()); однако вы можете переопределить этот метод в своей заглушке класса, чтобы установить значения, подходящие для вашей п... | public function initLnkOperationPrimeRCountriess($overrideExisting = true)
{
if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {
return;
}
$this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();
$this->collLnkOperationPrimeRCountr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setLnkOperationPrimeRCountriess(PropelCollection $lnkOperationPrimeRCountriess, PropelPDO $con = null)\n {\n $lnkOperationPrimeRCountriessToDelete = $this->getLnkOperationPrimeRCountriess(new Criteria(), $con)->diff($lnkOperationPrimeRCountriess);\n\n\n $this->lnkOperationPrimeRCou... | [
"0.71638006",
"0.70091325",
"0.6869609",
"0.62956905",
"0.5360133",
"0.52857304",
"0.51841426",
"0.51489633",
"0.4538413",
"0.4529241",
"0.44997868",
"0.4471349",
"0.4462172",
"0.43436876",
"0.4245498",
"0.42426777",
"0.42295885",
"0.4212909",
"0.41634142",
"0.41592157",
"0.4... | 0.7232321 | 0 |
Gets an array of LnkOperationPrimeRCountries objects which contain a foreign key that references this object. If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called witho... | Получает массив объектов LnkOperationPrimeRCountries, которые содержат иностранный ключ, ссылающийся на этот объект. Если $criteria не равен null, он используется для получения результатов из базы данных каждый раз. В противном случае результаты сначала загружаются из базы данных, а затем кэшируются. При следующем вызо... | public function getLnkOperationPrimeRCountriess($criteria = null, PropelPDO $con = null)
{
$partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();
if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {
if ($this->isNew() && null =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function buildPkeyCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n\n return $criteria;\n }",
"public function getOperationScenariis($criteria = null, PropelPDO $con = null)\n ... | [
"0.65903765",
"0.6560057",
"0.628412",
"0.61360604",
"0.56110454",
"0.5591172",
"0.5567438",
"0.5505992",
"0.5469546",
"0.54690737",
"0.5392265",
"0.53495556",
"0.5338507",
"0.5283804",
"0.5222667",
"0.52197963",
"0.5208035",
"0.52051127",
"0.51970255",
"0.51662004",
"0.51526... | 0.77509034 | 0 |
Returns the number of related LnkOperationPrimeRCountries objects. | Возвращает количество связанных объектов LnkOperationPrimeRCountries. | public function countLnkOperationPrimeRCountriess(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
$partial = $this->collLnkOperationPrimeRCountriessPartial && !$this->isNew();
if (null === $this->collLnkOperationPrimeRCountriess || null !== $criteria || $partial) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function count()\n {\n return count($this->_mappersByPriority);\n }",
"function getAllNumNodes(){\n\t\t$clase=$this->nmclass;\n\t\t$u=$this->cant_nodos;\n\t\treturn $u;\n\t}",
"static public function rrcnt( object $pp1, string $tbl, array $other=[] ): int { \n self::$pp1 = $pp1 ;\n if... | [
"0.56959254",
"0.56481504",
"0.5630712",
"0.56275594",
"0.5590137",
"0.5587153",
"0.5585118",
"0.5566324",
"0.5562667",
"0.5561838",
"0.55585283",
"0.55396694",
"0.5515096",
"0.5483477",
"0.54697376",
"0.5464577",
"0.5461492",
"0.5453932",
"0.54340005",
"0.54080826",
"0.54080... | 0.7116602 | 0 |
Method called to associate a LnkOperationPrimeRCountries object to this object through the LnkOperationPrimeRCountries foreign key attribute. | Метод, вызываемый для связывания объекта LnkOperationPrimeRCountries с этим объектом через идентификатор внешнего ключа LnkOperationPrimeRCountries. | public function addLnkOperationPrimeRCountries(LnkOperationPrimeRCountries $l)
{
if ($this->collLnkOperationPrimeRCountriess === null) {
$this->initLnkOperationPrimeRCountriess();
$this->collLnkOperationPrimeRCountriessPartial = true;
}
if (!in_array($l, $this->collL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function initLnkOperationPrimeRCountriess($overrideExisting = true)\n {\n if (null !== $this->collLnkOperationPrimeRCountriess && !$overrideExisting) {\n return;\n }\n $this->collLnkOperationPrimeRCountriess = new PropelObjectCollection();\n $this->collLnkOperationP... | [
"0.64621097",
"0.61786366",
"0.5385901",
"0.529308",
"0.4904457",
"0.48280057",
"0.46794182",
"0.46335077",
"0.45321354",
"0.43928742",
"0.43161535",
"0.42277503",
"0.4221812",
"0.42072904",
"0.41790408",
"0.41401613",
"0.411474",
"0.41056487",
"0.40210992",
"0.39886558",
"0.... | 0.7390084 | 0 |
Get the value of returnCode | Получить значение returnCode | public function getReturnCode()
{
return $this->returnCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getStatusCode()\n {\n return (int) $this->getReturnVal();\n }",
"public function getErrorCode(){\n return $this->_section->return_error_code;\n }",
"public function getCode()\n\t{\n\t\treturn (int)$this->statusCode;\n\t}",
"public function getResultCode()\n {\n ... | [
"0.7830994",
"0.7816789",
"0.78109187",
"0.77993613",
"0.77729124",
"0.7733918",
"0.7669106",
"0.7607188",
"0.75310373",
"0.75150716",
"0.75150716",
"0.75150716",
"0.74240613",
"0.74011517",
"0.73512083",
"0.73499054",
"0.7331378",
"0.7331378",
"0.73269075",
"0.73109674",
"0.... | 0.86434954 | 1 |
Get the value of messgae | Получить значение messgae | public function getMessgae()
{
return $this->messgae;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getMessage(){\n\t\t\treturn $this->message;\n\t\t}",
"public function getMessage(){\n\t\treturn $this->message;\n\t}",
"private function getMsg()\n {\n return $this->msg;\n }",
"public function message()\n {\n return $this->msg;\n }",
"public function message()\n {\n ... | [
"0.7179744",
"0.7070213",
"0.69565773",
"0.689962",
"0.689962",
"0.689962",
"0.6893641",
"0.68695295",
"0.68695295",
"0.6853898",
"0.6784508",
"0.6763357",
"0.67558485",
"0.6730124",
"0.6729388",
"0.67285025",
"0.67285025",
"0.67285025",
"0.67285025",
"0.67285025",
"0.6728502... | 0.76615155 | 0 |
Get the value of authCode | Получить значение authCode | public function getAuthCode()
{
return $this->authCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCode()\n {\n return $this->isSuccessful() ? $this->data[\"AuthCode\"] : parent::getCode();\n }",
"public function get_auth_code( $code ) {\n\t\t$tokens = new Token_User( '_indieauth_code_' );\n\t\treturn $tokens->get( $code );\n\t}",
"protected function getAuthorizationCode()... | [
"0.8285153",
"0.78844696",
"0.75953406",
"0.7413289",
"0.7323032",
"0.721884",
"0.7215816",
"0.71820104",
"0.71820104",
"0.7178934",
"0.70966244",
"0.7067525",
"0.70480776",
"0.7043728",
"0.7043728",
"0.6993433",
"0.6930652",
"0.6914984",
"0.68855304",
"0.6883161",
"0.6875588... | 0.86717224 | 0 |
Get the value of accountNo | Получить значение accountNo | public function getAccountNo()
{
return $this->accountNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAccountNo()\n {\n return $this->account_no;\n }",
"public function getAccountNumber()\n {\n return $this->account_number;\n }",
"public function getAccountNumber()\n {\n return $this->account_number;\n }",
"public function getAccountNumber()\n {\n ... | [
"0.86152816",
"0.77893347",
"0.77893347",
"0.75219923",
"0.7485823",
"0.72222084",
"0.7056576",
"0.7037025",
"0.6862045",
"0.67442596",
"0.67246765",
"0.67246765",
"0.66747445",
"0.66747445",
"0.6643635",
"0.6618681",
"0.65814227",
"0.657316",
"0.6361484",
"0.6355416",
"0.634... | 0.85641295 | 1 |
Get the value of ccType | Получить значение ccType | public function getCcType()
{
return $this->ccType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCcTypeName()\n {\n $types = $this->_paymentConfig->getCcTypes();\n $ccType = $this->getInfo()->getCcType();\n if (isset($types[$ccType])) {\n return $types[$ccType];\n }\n return empty($ccType) ? __('N/A') : $ccType;\n }",
"public function ge... | [
"0.7198807",
"0.6995694",
"0.69588137",
"0.67550725",
"0.65317273",
"0.6506843",
"0.6504484",
"0.65002066",
"0.64600253",
"0.6416335",
"0.63788116",
"0.63777524",
"0.6349416",
"0.6346157",
"0.6345668",
"0.63322115",
"0.6297825",
"0.62841064",
"0.62839335",
"0.62708914",
"0.62... | 0.7642755 | 0 |
Applies the 'ref' param to the query being prepared. | Применяет параметр 'ref' к запросу, который готовится. | private function _applyRefParam()
{
if (!$this->ref) {
return;
}
$this->subQuery->andWhere(Db::parseParam('globalsets.handle', $this->ref));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDBRef($ref)\n {\n return $this->__call(__FUNCTION__, func_get_args());\n }",
"public function setRef($ref);",
"public function byReferenceMatch($ref)\n {\n $this->qb->andWhere('(so.id like :ref ' .\n 'or so.customerReference like :ref ' .\n 'or so... | [
"0.57047206",
"0.5651822",
"0.5453584",
"0.5220829",
"0.51574314",
"0.5092207",
"0.50805503",
"0.5037387",
"0.5024351",
"0.5024351",
"0.4988168",
"0.4947402",
"0.49436864",
"0.49435544",
"0.49257338",
"0.49152496",
"0.4907309",
"0.4907309",
"0.4907309",
"0.4907309",
"0.488439... | 0.77686644 | 0 |
Applies the 'editable' param to the query being prepared. | Применяет параметр 'editable' к запросу, который готовится. | private function _applyEditableParam()
{
if ($this->editable) {
// Limit the query to only the global sets the user has permission to edit
$editableSetIds = Craft::$app->getGlobals()->getEditableSetIds();
$this->subQuery->andWhere(['elements.id' => $editableSetIds]);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setEditable(bool $editable=true): self;",
"public function setEditableInColumn(bool $editableInColumn=true): self;",
"public function editable($editable)\n {\n $this->editable = $editable;\n\n return $this;\n }",
"function _set_editable_fields()\n\t{\n\t\tif (empty($this->... | [
"0.64965355",
"0.61671996",
"0.61587083",
"0.6102476",
"0.6025041",
"0.5967622",
"0.58838236",
"0.57766664",
"0.5710694",
"0.5706289",
"0.5664719",
"0.5577722",
"0.5577722",
"0.55641896",
"0.55317223",
"0.5508274",
"0.54628587",
"0.52885413",
"0.52797174",
"0.5232665",
"0.521... | 0.782693 | 1 |
Create a signed signature of the parameters. Return a parameter string that can be tacked onto the end of a URL. | Создайте подписанную подпись параметров. Верните строку параметров, которая может быть прикреплена в конце URL. | public function signParams($params) {
$signing = '';
$values = array();
$secret = $this->getSecret();
ksort($params);
foreach($params as $key => $value) {
$signing .= $key . $value;
$values[] = $key . '=' . urlencode($value);
}
$values[] = 'api_sig=' . md5($secret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_signable_parameters()\n {\n // Grab all parameters\n $params = $this->parameters;\n\n // Remove oauth_signature if present\n if (isset($params['oauth_signature']))\n unset($params['oauth_signature']);\n\n // Urlencode both keys and values\n $keys = OAuthUtil::urlencode_r... | [
"0.7193946",
"0.7172373",
"0.70695317",
"0.70535463",
"0.7001584",
"0.6977871",
"0.6973665",
"0.69485575",
"0.68774813",
"0.6853568",
"0.68328834",
"0.67862785",
"0.6766751",
"0.6756242",
"0.6714858",
"0.67004675",
"0.6683943",
"0.6654663",
"0.6631227",
"0.6628554",
"0.658753... | 0.73691624 | 0 |
Return the Flickr user id of the current authenticated user. If the authentication info is incorrect, NULL will be returned. | Верните идентификатор Flickr пользователя текущего аутентифицированного пользователя. Если информация об аутентификации неверна, будет возвращено значение NULL. | public function getUserId() {
$response = $this->execute(array('method' => 'flickr.auth.checkToken'), 60);
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return $object['auth']['user']['nsid'];
} else {
$this->setError($object['message'], $object['code']);
return NULL;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getAuthUserId() {\r\n global $app, $log;\r\n $email = $app->request->headers(\"PHP_AUTH_USER\");\r\n $password = $app->request->headers(\"PHP_AUTH_PW\");\r\n\r\n if ($email && $password) {\r\n $row = DB::queryFirstRow(\"SELECT * FROM users WHERE email=%s\", $email);\r\n if ($row ... | [
"0.72362965",
"0.72320545",
"0.7120621",
"0.7111939",
"0.70952225",
"0.7031982",
"0.70226246",
"0.7022301",
"0.7006451",
"0.6980121",
"0.6977634",
"0.696011",
"0.6945364",
"0.6943848",
"0.69334257",
"0.6903515",
"0.6890438",
"0.6879291",
"0.6871221",
"0.6869946",
"0.68442464"... | 0.7762619 | 0 |
Returns a list of the user's favorite photos. Only photos which the calling user has permission to see are returned. | Возвращает список избранных фотографий пользователя. Возвращаются только фотографии, которые вызывающий пользователь имеет право видеть. | function favorites_getList ($user_id = NULL, $per_page = 25, $page = 1, $extras = NULL) {
$params = array();
$params['method'] = 'flickr.favorites.getList';
if ($user_id) $params['user_id'] = $user_id;
$params['per_page'] = $per_page;
$params['page'] = $page;
if ($extras) $params['extras'] = $extras;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function favorites_getPublicList ($user_id = NULL, $per_page = 25, $page = 1, $extras = NULL) {\n\t\t$user_id = ($user_id) ? $user_id : $this->getUserId();\n\t\t$params = array();\n\t\t$params['method'] = 'flickr.favorites.getPublicList';\n\t\t$params['user_id'] = $user_id;\n\t\t$params['per_page'] = $per_page;\n\... | [
"0.6951597",
"0.6951065",
"0.6901152",
"0.6783222",
"0.65645576",
"0.65645134",
"0.65489775",
"0.653162",
"0.6520821",
"0.64882904",
"0.6487816",
"0.6480715",
"0.6469994",
"0.6468104",
"0.6425402",
"0.63879156",
"0.6344827",
"0.63429934",
"0.6338001",
"0.6309637",
"0.63036555... | 0.74113095 | 0 |
Returns a list of favorite public photos for the given user. | Возвращает список избранных публичных фотографий для заданного пользователя. | function favorites_getPublicList ($user_id = NULL, $per_page = 25, $page = 1, $extras = NULL) {
$user_id = ($user_id) ? $user_id : $this->getUserId();
$params = array();
$params['method'] = 'flickr.favorites.getPublicList';
$params['user_id'] = $user_id;
$params['per_page'] = $per_page;
$params['page'] = $p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFavoritesPublications($user)\n {\n return $this->getByFavorite($user);\n }",
"public function getPhotoPublications($user)\n {\n return $this->getByCategoryType('Photo', $user);\n }",
"function favorites_getList ($user_id = NULL, $per_page = 25, $page = 1, $extras = ... | [
"0.77330893",
"0.7666382",
"0.75277483",
"0.722145",
"0.7196927",
"0.7091533",
"0.69208944",
"0.6708945",
"0.6678264",
"0.65504897",
"0.6491154",
"0.6482784",
"0.64572716",
"0.6451725",
"0.6430946",
"0.63825727",
"0.62879896",
"0.6244853",
"0.61897665",
"0.61817765",
"0.61812... | 0.79236317 | 0 |
Removes a photo from a user's favorites list. | Удаляет фото из списка избранных пользователя. | function favorites_remove ($photo_id) {
$response = $this->execute(array('method' => 'flickr.favorites.remove', 'photo_id' => $photo_id), 10);
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return TRUE;
} else {
$this->setError($object['message'], $object['code']);
return FALSE;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function removeFavorites()\n {\n $this->favorites()->delete();\n $this->favoriteCounter()->delete();\n }",
"public static function remove_favorite() {\n header( 'HTTP/1.0 200 OK' );\n header( 'Content-Type: application/json' );\n\n $data = array();\n\n if( !... | [
"0.6962366",
"0.6777098",
"0.66394377",
"0.66252553",
"0.6521929",
"0.6515568",
"0.65061086",
"0.64308417",
"0.64284986",
"0.64239705",
"0.64213306",
"0.6409266",
"0.6301437",
"0.62294173",
"0.62175995",
"0.6208038",
"0.61591506",
"0.6157689",
"0.6106015",
"0.6069731",
"0.604... | 0.71413577 | 0 |
/ People methods Return a user's NSID, given their email address | / Методы для работы с людьми Возвращают NSID пользователя по их электронной почте | function people_findByEmail($find_email) {
$response = $this->execute(array('method' => 'flickr.people.findByEmail', 'find_email' => $find_email));
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return $object['user']['nsid'];
} else {
$this->setError($object['message'], $object['c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_user_id_from_string($email_or_login)\n {\n }",
"public function getIdentifier()\n {\n return $this->user->email;\n }",
"public function getUserIdentifier(): string\n {\n return (string) $this->getEmail();\n }",
"public function getUserIdentifier(): string\n {\n... | [
"0.7204528",
"0.7062429",
"0.69925815",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6983918",
"0.6721962",
"0.660183",
"0.6551202",
"0.654427",
"0.6544029",
"0.64955866",
"... | 0.7120048 | 1 |
Get a list of public photos for the given user. | Получить список публичных фотографий для заданного пользователя. | function people_getPublicPhotos ($user_id, $per_page = 25, $page = 1, $safe_search = 1, $extras = NULL) {
$params = array();
$params['method'] = 'flickr.people.getPublicPhotos';
$params['user_id'] = $user_id;
$params['per_page'] = $per_page;
$params['page'] = $page;
$params['safe_search'] = $safe_search;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPhotoPublications($user)\n {\n return $this->getByCategoryType('Photo', $user);\n }",
"public static function get_photos_by_user($user_id) {\n\t\t$photos_array = array();\n\n\t\t$sql = \"SELECT * \n\t\t FROM photo_directory \n\t\t WHERE user_id = {$user_id}\n\t\t ... | [
"0.81467324",
"0.7285678",
"0.7243038",
"0.71633863",
"0.7110668",
"0.6900005",
"0.6805384",
"0.66844726",
"0.66733015",
"0.66701645",
"0.665343",
"0.66399693",
"0.6600413",
"0.65600675",
"0.6483653",
"0.6461635",
"0.64439166",
"0.6395105",
"0.6332279",
"0.6315035",
"0.630973... | 0.80440164 | 1 |
/ Photos methods Add tags to a photo. | / Методы фотографий Добавить теги к фотографии. | function photos_addTags ($photo_id, $tags) {
$response = $this->execute(array('method' => 'flickr.photos.addTags', 'photo_id' => $photo_id, 'tags' => $tags));
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return TRUE;
} else {
$this->setError($object['message'], $object['code']);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function photos_setTags ($photo_id, $tags) {\n\t\t$response = $this->execute(array('method' => 'flickr.photos.setTags', 'photo_id' => $photo_id, 'tags' => $tags));\n\t\t$object = unserialize($response);\n\t\tif ($object['stat'] == 'ok') {\n\t\t\treturn TRUE;\n\t\t} else {\n\t\t\t$this->setError($object['message'],... | [
"0.6724628",
"0.64815724",
"0.6448946",
"0.644029",
"0.61712533",
"0.6033899",
"0.5994737",
"0.59491086",
"0.591882",
"0.58828974",
"0.58600646",
"0.5808063",
"0.5772397",
"0.57443684",
"0.57409966",
"0.57406014",
"0.5707457",
"0.57072794",
"0.56968343",
"0.5681233",
"0.56372... | 0.7340523 | 0 |
Delete a photo from flickr. | Удалить фото с flickr. | function photos_delete ($photo_id) {
$response = $this->execute(array('method' => 'flickr.photos.delete', 'photo_id' => $photo_id));
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return TRUE;
} else {
$this->setError($object['message'], $object['code']);
return FALSE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete_photo(){\n $sql=\"DELETE FROM photos WHERE id=\".$this->id;\n self::$connect->query($sql);\n\n }",
"public function delete_photo ($photo_id){\n\t\t$q_extension = \"SELECT extension FROM photos WHERE photo_id =\".$photo_id;\t\n\t\t$q_photo = 'WHERE photo_id = '.$photo_id;\n... | [
"0.75842",
"0.7137276",
"0.6974389",
"0.695486",
"0.6946395",
"0.69385713",
"0.6874482",
"0.6823608",
"0.6817173",
"0.67936695",
"0.6791227",
"0.67703795",
"0.6729899",
"0.66948974",
"0.6677093",
"0.6649489",
"0.66435516",
"0.6637135",
"0.6637135",
"0.66153735",
"0.6613823",
... | 0.759642 | 0 |
Fetch a list of recent photos from the calling users' contacts. | Получить список недавних фотографий из контактов вызывающего пользователя. | function photos_getContactsPhotos ($count = 10, $just_friends = NULL, $single_photo = NULL, $include_self = NULL, $extras = NULL) {
$params = array();
$params['method'] = 'flickr.photos.getContactsPhotos';
$params['count'] = $count;
if ($just_friends) $params['just_friends'] = $just_friends;
if ($single_photo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function photos_getContactsPublicPhotos ($user_id, $count = 10, $just_friends = NULL, $single_photo = NULL, $include_self = NULL, $extras = NULL) {\n\t\t$params = array();\n\t\t$params['method'] = 'flickr.photos.getContactsPublicPhotos';\n\t\t$params['user_id'] = $user_id;\n\t\t$params['count'] = $count;\n\t\tif (... | [
"0.68440557",
"0.6666258",
"0.6618044",
"0.65922886",
"0.65017796",
"0.64848036",
"0.6447779",
"0.6435721",
"0.64054793",
"0.62770945",
"0.6248473",
"0.6184491",
"0.6127249",
"0.6055801",
"0.60177565",
"0.5982734",
"0.59674066",
"0.59271115",
"0.5924531",
"0.58834046",
"0.585... | 0.72992504 | 0 |
Fetch a list of recent public photos from a users' contacts. | Получить список недавних публичных фотографий из контактов пользователя. | function photos_getContactsPublicPhotos ($user_id, $count = 10, $just_friends = NULL, $single_photo = NULL, $include_self = NULL, $extras = NULL) {
$params = array();
$params['method'] = 'flickr.photos.getContactsPublicPhotos';
$params['user_id'] = $user_id;
$params['count'] = $count;
if ($just_friends) $para... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function photos_getContactsPhotos ($count = 10, $just_friends = NULL, $single_photo = NULL, $include_self = NULL, $extras = NULL) {\n\t\t$params = array();\n\t\t$params['method'] = 'flickr.photos.getContactsPhotos';\n\t\t$params['count'] = $count;\n\t\tif ($just_friends) $params['just_friends'] = $just_friends;\n\... | [
"0.7301247",
"0.7199164",
"0.688835",
"0.6676204",
"0.6649503",
"0.65172833",
"0.6448596",
"0.64393145",
"0.63865054",
"0.6377215",
"0.6306663",
"0.6274159",
"0.62488616",
"0.61948913",
"0.6165222",
"0.61591196",
"0.6140508",
"0.61305773",
"0.6092145",
"0.6075333",
"0.6031383... | 0.76549244 | 0 |
Returns the list of people who have favorited a given photo. | Возвращает список людей, которые отметили понравившейся данной фотографии. | function photos_getFavorites ($photo_id, $page = 1, $per_page = 20) {
$response = $this->execute(array('method' => 'flickr.photos.getFavorites', 'photo_id' => $photo_id, 'page' => $page, 'per_page' => $per_page));
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return $object['photo']['p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFavorites();",
"public function find_favorites() {\n\t\tstatic $favorites;\n\n\t\tif (!is_array($favorites)) {\n\t\t\t$favorites = array();\n\t\t\tif ($this->loaded()) {\n\t\t\t\t$users = db::build()->select('user_id')->from('favorites')->where('event_id', '=', $this->id)->execute()->as_array(... | [
"0.6755054",
"0.66816044",
"0.66116256",
"0.6575815",
"0.6478729",
"0.6462401",
"0.64249754",
"0.6414417",
"0.63521975",
"0.62955076",
"0.62857187",
"0.6243544",
"0.62431455",
"0.6209417",
"0.6202553",
"0.6200787",
"0.6184905",
"0.6150616",
"0.614637",
"0.6143289",
"0.6101929... | 0.7151414 | 0 |
Returns a list of your photos that are not part of any sets. | Возвращает список ваших фотографий, которые не являются частью никаких альбомов. | function photos_getNotInSet ($per_page = 25, $page = 1, $min_upload_date = NULL, $max_upload_date = NULL, $min_taken_date = NULL, $max_taken_date = NULL, $privacy_filter = 1, $media = 'all', $extras = NULL) {
$params = array();
$params['method'] = 'flickr.photos.getNotInSet';
$params['per_page'] = $per_page;
$p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAllWithoutFolders()\n {\n $query = $this->getQueryBuilder()->select('*')\n ->from($this->table)\n ->where('folder_id', '=', 0);\n\n if ($photos = $this->db->get_results($query->build())) {\n foreach ($photos as $index => $photo) {\n ... | [
"0.65620744",
"0.62283874",
"0.6024571",
"0.5930459",
"0.58665824",
"0.57660234",
"0.57490873",
"0.5699103",
"0.56990856",
"0.5698543",
"0.56635684",
"0.5616267",
"0.55531436",
"0.5526648",
"0.54824513",
"0.54305995",
"0.542977",
"0.53921473",
"0.53813857",
"0.5373835",
"0.53... | 0.70838606 | 0 |
Remove a tag from a photo. | Удалить тег из фотографии. | function photos_removeTag ($tag_id) {
$response = $this->execute(array('method' => 'flickr.photos.removeTag', 'tag_id' => $tag_id));
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return TRUE;
} else {
$this->setError($object['message'], $object['code']);
return FALSE;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function delete_tag($tag);",
"public function removeTag()\n\t{\n\t\tif(isset($this->primarySearchData[$this->ref_tag]))\n\t\t{\n\t\t\tunset($this->primarySearchData[$this->ref_tag]);\n\t\t}\n\t}",
"public function remove($tag) { //+\n\t\tunset($this->arShortcodes[$tag]);\n\t}",
"public function remove... | [
"0.7347097",
"0.7204979",
"0.6973377",
"0.6935872",
"0.69193196",
"0.691541",
"0.687112",
"0.68704104",
"0.6707652",
"0.66968507",
"0.66442585",
"0.6489552",
"0.6486538",
"0.64394325",
"0.6409692",
"0.63596255",
"0.63439107",
"0.63427114",
"0.6318437",
"0.630769",
"0.6304296"... | 0.74520034 | 0 |
Set the meta information for a photo. | Установите метаинформацию для фотографии. | function photos_setMeta ($photo_id, $title, $description) {
$response = $this->execute(array('method' => 'flickr.photos.setMeta', 'photo_id' => $photo_id, 'title' => $title, 'description' => $description));
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return TRUE;
} else {
$this->setEr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function metaInit () {\n $this->imageMeta = new ImageMeta($this->getImagePath());\n $this->imageMeta->getMeta();\n }",
"public function setMetaData($metaData);",
"public function setMetaInfo($meta) {\n $this->meta = $meta;\n }",
"protected function setup_metadata() {\n\t\tif ( $this->ge... | [
"0.70335853",
"0.6956919",
"0.6756647",
"0.66268873",
"0.65275466",
"0.6520241",
"0.6519575",
"0.64917016",
"0.6443167",
"0.6443167",
"0.63576895",
"0.63283837",
"0.62890506",
"0.6256569",
"0.62511647",
"0.62334365",
"0.6211461",
"0.6210028",
"0.61742383",
"0.6169706",
"0.616... | 0.7007155 | 1 |
Set the safety level of a photo. | Установите уровень безопасности фотографии. | function photos_setSafetyLevel ($photo_id, $safety_level = 1, $hidden = 0) {
$response = $this->execute(array('method' => 'flickr.photos.setSafetyLevel', 'photo_id' => $photo_id, 'safety_level' => $safety_level, 'hidden' => $hidden));
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return TRUE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setLevel($level);",
"public function setPhoto($value)\n {\n $this->photo = $value;\n }",
"public function setLevel($level);",
"public function set_level($value) {\n\t\tif (is_anint($value)) {\n\t\t\t$this->init_from_type_and_level($this->type, $value);\n\t\t}\n\t}",
"public function s... | [
"0.5569952",
"0.5566912",
"0.52600574",
"0.5245245",
"0.5139422",
"0.50750405",
"0.5073039",
"0.5030286",
"0.49861702",
"0.49638963",
"0.4949922",
"0.49089298",
"0.4855177",
"0.48063585",
"0.4759778",
"0.47478795",
"0.4747587",
"0.47459194",
"0.47209734",
"0.47175965",
"0.471... | 0.7159577 | 0 |
Gets information about a photoset. | Получает информацию о фотосете. | function photosets_getInfo ($photoset_id) {
$response = $this->execute(array('method' => 'flickr.photosets.getInfo', 'photoset_id' => $photoset_id));
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return $object['photoset'];
} else {
$this->setError($object['message'], $object['code']);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getPhotoSetInfo($photoset_id){\n\n\t\t/* Get Photoset Name and Description */\n\t\t$photoset_info = $this->askFlickr('photosets.getInfo','&photoset_id='.$photoset_id);\n\n\t\t/* Return Photo Info Object */\n\t\treturn $photoset_info;\n\t}",
"function getPhotoSet($photoset_id){\n\n\t\t/* Get Photoset */\... | [
"0.7983389",
"0.7624878",
"0.75235385",
"0.71805054",
"0.6704652",
"0.652162",
"0.6079326",
"0.6019746",
"0.5936873",
"0.5889445",
"0.5870294",
"0.58312434",
"0.5807532",
"0.5791189",
"0.57457685",
"0.5726683",
"0.5694535",
"0.56459624",
"0.5619843",
"0.55982786",
"0.5570566"... | 0.7850466 | 1 |
Returns the photosets belonging to the specified user. | Возвращает фотосеты, принадлежащие указанному пользователю. | function photosets_getList ($user_id = NULL) {
$params = array();
$params['method'] = 'flickr.photosets.getList';
if ($user_id) $params['user_id'] = $user_id;
$response = $this->execute($params);
$object = unserialize($response);
if ($object['stat'] == 'ok') {
return $object['photosets']['photoset'];
}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getSets($user){\n\n\t\t/* Get Sets */\n\t\t$sets = $this->askFlickr('photosets.getList','&user_id='.$user.'&extras=url_o,url_z,url_l,url_q,url_t,url_n,url_s');\n\n\t\t/* Return Sets */\n\t\treturn $sets;\n\t}",
"public function getPhotoPublications($user)\n {\n return $this->getByCategoryType(... | [
"0.76590306",
"0.69626945",
"0.6388711",
"0.59604466",
"0.5868237",
"0.5824793",
"0.58002084",
"0.5741096",
"0.57019824",
"0.5700303",
"0.5661259",
"0.5622172",
"0.56107265",
"0.5604882",
"0.55912995",
"0.55279803",
"0.55277044",
"0.55081683",
"0.54907244",
"0.548561",
"0.548... | 0.7680268 | 0 |
Get the list of photos in a set. | Получить список фотографий в наборе. | function photosets_getPhotos ($photoset_id, $per_page = 25, $page = 1, $media = 'photos', $extras = NULL) {
$params = array();
$params['method'] = 'flickr.photosets.getPhotos';
$params['photoset_id'] = $photoset_id;
$params['per_page'] = $per_page;
$params['page'] = $page;
$params['media'] = $media;
if ($... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function photosets_getList ($user_id = NULL) {\n\t\t$params = array();\n\t\t$params['method'] = 'flickr.photosets.getList';\n\t\tif ($user_id) $params['user_id'] = $user_id;\n\t\t$response = $this->execute($params);\n\t\t$object = unserialize($response);\n\t\tif ($object['stat'] == 'ok') {\n\t\t\treturn $object['p... | [
"0.6997282",
"0.6981816",
"0.68711984",
"0.6827155",
"0.6631159",
"0.66159064",
"0.6368315",
"0.62825346",
"0.6200157",
"0.6183843",
"0.6086158",
"0.6067024",
"0.6031689",
"0.6024305",
"0.5999499",
"0.5995712",
"0.5983647",
"0.5953357",
"0.5949816",
"0.5937779",
"0.59330195",... | 0.745263 | 0 |
Remove a photo from a photoset. | Удалить фото из фотосета. | function photosets_removePhoto ($photoset_id, $photo_id) {
$params['method'] = 'flickr.photosets.orderSets';
$response = $this->execute(array('method' => 'flickr.photosets.removePhoto', 'photoset_id' => $photoset_id, 'photo_id' => $photo_id), 10);
$object = unserialize($response);
if ($object['stat'] == 'ok') {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function remove()\n\t{\n\t\t$photosTable = PTA_DB_Table::get('Catalog_Product_Photo');\n\t\t$photos = (array)$photosTable->getPhotos($this->_id);\n\n\t\tif (parent::remove()) {\n\t\t\t$photoFileField = $photosTable->getFieldByAlias('photo');\n\t\t\tforeach ($photos as $photo) {\n\t\t\t\tPTA_Util::unlink(PTA... | [
"0.70054024",
"0.683811",
"0.6623904",
"0.66115767",
"0.6547519",
"0.6327626",
"0.6278144",
"0.6216093",
"0.6189883",
"0.6186994",
"0.61034226",
"0.5992519",
"0.5980534",
"0.5953017",
"0.59094036",
"0.58949935",
"0.58870465",
"0.58870465",
"0.58870465",
"0.58870465",
"0.58853... | 0.8023547 | 0 |
Build direct photo url without flickr API calls | Построить прямую ссылку на фото без вызовов flickr API | public function buildPhotoUrl () {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPublicUrl() {\n\t\treturn \"http://flickr.com/photos/{$this->getUserId()}/{$this->getId()}/\";\n\t}",
"public function getPhotoURL(){\r\n\t\t$photo = $this->getPhoto();\r\n\r\n\t\treturn $photo != null ? \"https://maps.googleapis.com/maps/api/place/photo?maxwidth=800&photoreference=\" . $photo... | [
"0.7149396",
"0.6715539",
"0.6649939",
"0.6552892",
"0.6546769",
"0.6533244",
"0.6471729",
"0.6382621",
"0.63429135",
"0.61817056",
"0.615139",
"0.6149372",
"0.61065555",
"0.6072044",
"0.59625787",
"0.59556365",
"0.588957",
"0.58646643",
"0.5818456",
"0.5807909",
"0.58042216"... | 0.76183903 | 0 |
return array van alle regels van BestelID | вернуть массив всех строк с идентификатором заказа | public static function getBestellingRegelsFromId($BestelID) {
$sql = "SELECT * FROM bestelregel WHERE BestelID='".$BestelID."'";
$dbh = new PDO(DBConfig::$DB_CONNSTRING, DBConfig::$DB_USERNAME, DBConfig::$DB_PASSWORD);
$result = $dbh->query($sql);
$arrBestelregel = array();
forea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function alleBestellungen(){\n\n\t\treturn array(\n\t\t\t[\"ID\" => 1, \"Vorname\" => \"Wenke\", \"Nachname\" => \"Tautz\"],\n\t\t\t[\"ID\" => 2, \"Vorname\" => \"Christoph\", \"Nachname\" => \"Silge\"],\n\t\t\t[\"ID\" => 3, \"Vorname\" => \"Henry\", \"Nachname\" => \"Juwig\"],\n\t\t\t[\"ID\" => 4, \"Vornam... | [
"0.65718067",
"0.64814",
"0.6462641",
"0.6409762",
"0.6257897",
"0.6219593",
"0.6206344",
"0.6188429",
"0.61761147",
"0.6148916",
"0.6142261",
"0.6134887",
"0.613374",
"0.6104324",
"0.60840917",
"0.6064643",
"0.6064643",
"0.6048372",
"0.6033722",
"0.6021515",
"0.601085",
"0... | 0.7542626 | 0 |
Resize the image by preserving aspect ratio. By default, it will keep the image inside the maxWidth and maxHeight. Passing useAsMinimum will make the smaller dimension equal to the maximum corresponding dimension | Измените размер изображения, сохраняя соотношение сторон. По умолчанию изображение будет умещаться внутри maxWidth и maxHeight. Передача useAsMinimum сделает меньшую измерение равным соответствующему максимальному измерению. | public function resizeRatio($width, $height, $useAsMinimum = false)
{
return $this->createCloneWithResource(
function (InterventionImage $resource) use ($width, $height, $useAsMinimum) {
return $resource->resize(
$width,
$height,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function resize()\n {\n $width = $this->width;\n $height = $this->height;\n $orig_width = imagesx($this->image);\n $orig_height = imagesy($this->image);\n \n // Determine new image dimensions\n if($this->mode === \"crop\"){ // Crop image\n \n... | [
"0.64798206",
"0.6374751",
"0.62817496",
"0.6263326",
"0.6260494",
"0.62429357",
"0.61854905",
"0.61782223",
"0.610051",
"0.6014141",
"0.6002788",
"0.5983225",
"0.5946629",
"0.59023577",
"0.59015405",
"0.58619773",
"0.58607596",
"0.5823537",
"0.58031416",
"0.5801501",
"0.5797... | 0.7134943 | 0 |
Test all secondary routes These are the routes that redirect to the primarys Like /guid, or /post/1 or even /1 if static route enabled | Тестировать все второстепенные маршруты. Это маршруты, которые перенаправляются на основные, например, /guid, или /post/1, или даже /1, если включена статическая маршрутизация | public function testSecondaryRoutes()
{
/*//Filters disabled during unit tests unless you enable them
//I need them enabled because they log the user in as anonymous
Route::enableFilters();
// Test /1 redirects to /home
$this->call('GET', '/1');
$this->assertRedirectedTo('/home');
// Test /1/anything/h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testOtherRoutes()\n\t{\n\t\t/*//Filters disabled during unit tests unless you enable them\n\t\t//I need them enabled because they log the user in as anonymous\n\t\tRoute::enableFilters();\n\n\t\t// /google redirects to http://google.com\n\t\t$clicksBefore = Router::where('slug', '=', 'google')->fir... | [
"0.7204182",
"0.6919818",
"0.6698115",
"0.6589368",
"0.6526395",
"0.63424766",
"0.6289119",
"0.618975",
"0.6177964",
"0.6166853",
"0.6137895",
"0.6047036",
"0.6030814",
"0.5938619",
"0.59225214",
"0.5891399",
"0.586563",
"0.58331573",
"0.58331037",
"0.58169955",
"0.5803621",
... | 0.7643486 | 0 |
Test all legacy routes These are old mrcore4 routes like /topic/1 or /files/1 | Тестировать все устаревшие маршруты. Эти маршруты из старой версии mrcore4, например, /topic/1 или /files/1 | public function testLegacyRoutes()
{
/*//Filters disabled during unit tests unless you enable them
//I need them enabled because they log the user in as anonymous
Route::enableFilters();
// Test /topic/1 redirects to /home
$this->call('GET', '/topic/1');
$this->assertRedirectedTo('/home');
$this->call('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testOtherRoutes()\n\t{\n\t\t/*//Filters disabled during unit tests unless you enable them\n\t\t//I need them enabled because they log the user in as anonymous\n\t\tRoute::enableFilters();\n\n\t\t// /google redirects to http://google.com\n\t\t$clicksBefore = Router::where('slug', '=', 'google')->fir... | [
"0.68819845",
"0.6517291",
"0.6515215",
"0.64230275",
"0.63861775",
"0.637783",
"0.6365655",
"0.6297713",
"0.6234368",
"0.6229927",
"0.6049419",
"0.6035521",
"0.6035405",
"0.59113884",
"0.5872114",
"0.5870536",
"0.5868843",
"0.5864645",
"0.5854764",
"0.58521515",
"0.5803533",... | 0.818495 | 0 |
Test all other routes | Тестировать все остальные маршруты | public function testOtherRoutes()
{
/*//Filters disabled during unit tests unless you enable them
//I need them enabled because they log the user in as anonymous
Route::enableFilters();
// /google redirects to http://google.com
$clicksBefore = Router::where('slug', '=', 'google')->first()->clicks;
$this->... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testSecondaryRoutes()\n\t{\n\t\t/*//Filters disabled during unit tests unless you enable them\n\t\t//I need them enabled because they log the user in as anonymous\n\t\tRoute::enableFilters();\n\n\t\t// Test /1 redirects to /home\n\t\t$this->call('GET', '/1');\n\t\t$this->assertRedirectedTo('/home')... | [
"0.79910094",
"0.7811927",
"0.75201195",
"0.732454",
"0.7244227",
"0.71635914",
"0.714568",
"0.71409196",
"0.71266437",
"0.711719",
"0.7026858",
"0.7017001",
"0.68593204",
"0.6837021",
"0.6762935",
"0.66284937",
"0.659048",
"0.65550375",
"0.65054977",
"0.64900243",
"0.6480425... | 0.86215246 | 0 |
Get the featured companies on the VTC page. | Получить выделенные компании на странице VTC. | public function getFeatured(): CompanyCollection
{
return $this->featured;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFeaturedCovered(): CompanyCollection\n {\n return $this->featuredCovered;\n }",
"public function getfeaturedCities(){\n\t\t $featuredTestimonial = array();\n\t\t $tData = $this->find('all',array('conditions'=>array('CmsCity.is_display'=>1),\n\t\t\t\t\t\t\t\t\t\t\t'fields'=>arr... | [
"0.66041654",
"0.62949586",
"0.5998069",
"0.5930802",
"0.5925925",
"0.5887295",
"0.5881822",
"0.57872397",
"0.5750885",
"0.5621846",
"0.562016",
"0.5538192",
"0.55300665",
"0.55181867",
"0.5509221",
"0.54950464",
"0.5485105",
"0.5473954",
"0.5455649",
"0.544388",
"0.5436083",... | 0.73709166 | 0 |
Get the companies with featured cover images on the VTC page. | Получить компании с выделенными обложками на странице VTC. | public function getFeaturedCovered(): CompanyCollection
{
return $this->featuredCovered;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFeatured(): CompanyCollection\n {\n return $this->featured;\n }",
"public function getfeaturedCities(){\n\t\t $featuredTestimonial = array();\n\t\t $tData = $this->find('all',array('conditions'=>array('CmsCity.is_display'=>1),\n\t\t\t\t\t\t\t\t\t\t\t'fields'=>array('CmsCity.*'... | [
"0.6695556",
"0.6511657",
"0.5851061",
"0.584675",
"0.58007216",
"0.5646993",
"0.5573313",
"0.54981416",
"0.5433945",
"0.5427657",
"0.5417266",
"0.53894633",
"0.5386941",
"0.5381477",
"0.53778076",
"0.5364768",
"0.5359612",
"0.53527004",
"0.5304717",
"0.527311",
"0.5241324",
... | 0.7157424 | 0 |
Sets a new addItemResponseContainer One AddItemResponseContainer container is returned for each listing that was created with the AddItems call. Each container includes the ItemID of each newly created listings, the eBay category each item is listed under, the sellerdefined SKUs of the items (if any), the listing recom... | Устанавливает новый addItemResponseContainer. Каждый AddItemResponseContainer возвращается для каждого объявления, созданного с помощью вызова AddItems. Каждый контейнер включает ItemID каждого нового объявления, категорию eBay, в которой размещено товар, продавец-определяемые SKU товаров (если они есть), рекомендации ... | public function setAddItemResponseContainer(array $addItemResponseContainer)
{
$this->addItemResponseContainer = $addItemResponseContainer;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addToAddItemResponseContainer(\\Nogrod\\eBaySDK\\Trading\\AddItemResponseContainerType $addItemResponseContainer)\n {\n $this->addItemResponseContainer[] = $addItemResponseContainer;\n return $this;\n }",
"public function getAddItemResponseContainer()\n {\n return $t... | [
"0.7072615",
"0.5942786",
"0.54337716",
"0.5295369",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
"0.5191135",
... | 0.70213115 | 1 |
Include in the results only the boats with a length. | Включите в результаты только лодки с длиной. | public function filterByWithLength()
{
$this->query->andWhere($this->query->expr()->isNotNull('b.length'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByWithoutLength()\n {\n $this->query->andWhere($this->query->expr()->isNull('b.length'));\n }",
"function mt_filter_excerpt_length($length) {\n\treturn 20;\n }",
"public function hasLength(){\n return $this->_has(2);\n }",
"public function setLength($length)\n {... | [
"0.5822987",
"0.5197118",
"0.51970273",
"0.51788896",
"0.51788896",
"0.51726323",
"0.5154719",
"0.514515",
"0.51411724",
"0.51280284",
"0.5121146",
"0.51168287",
"0.51014787",
"0.50806004",
"0.50761193",
"0.5058604",
"0.49362087",
"0.4923544",
"0.4884077",
"0.48740026",
"0.48... | 0.70307046 | 0 |
Lists all GdpMails entities. | Список всех сущностей GdpMails. | public function indexAction()
{
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('LooninsIncidentBundle:GdpMails')->findAll();
return array(
'entities' => $entities,
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getAllEmails() {\n return getALL('SELECT * FROM mail');\n}",
"public function findAll()\n {\n return $this->em\n ->getRepository('App:Mail')\n ->findAll()\n ;\n }",
"public function scopeGetAllMails()\n {\n\n $gname = Input::get( 'gname' )... | [
"0.6917383",
"0.6896523",
"0.64885604",
"0.61055005",
"0.6093053",
"0.59815973",
"0.596835",
"0.5936755",
"0.59056824",
"0.5881021",
"0.5873488",
"0.5848727",
"0.57859844",
"0.5781284",
"0.5718998",
"0.57125205",
"0.5697226",
"0.5671937",
"0.56091183",
"0.5585177",
"0.5566545... | 0.72491175 | 0 |
Creates a new GdpMails entity. | Создает новую сущность GdpMails. | public function createAction(Request $request)
{
$entity = new GdpMails();
$form = $this->createCreateForm($entity);
$form->handleRequest($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$em->persist($entity);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createCreateForm(GdpMails $entity)\r\n {\r\n $form = $this->createForm(new GdpMailsType(), $entity, array(\r\n 'action' => $this->generateUrl('gdpmails_create'),\r\n 'method' => 'POST',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'C... | [
"0.65327984",
"0.63309795",
"0.58390903",
"0.58063227",
"0.556461",
"0.55068433",
"0.543389",
"0.5371196",
"0.53418183",
"0.53305686",
"0.52689457",
"0.52421206",
"0.522109",
"0.515451",
"0.5147189",
"0.51235914",
"0.511381",
"0.51007724",
"0.507179",
"0.5047809",
"0.5020041"... | 0.7016379 | 0 |
Creates a form to create a GdpMails entity. | Создает форму для создания сущности GdpMails. | private function createCreateForm(GdpMails $entity)
{
$form = $this->createForm(new GdpMailsType(), $entity, array(
'action' => $this->generateUrl('gdpmails_create'),
'method' => 'POST',
));
$form->add('submit', 'submit', array('label' => 'Create'));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function newAction()\r\n {\r\n $entity = new GdpMails();\r\n $form = $this->createCreateForm($entity);\r\n\r\n return array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView(),\r\n );\r\n }",
"public function createAction(Request $request... | [
"0.7441957",
"0.7244886",
"0.67560875",
"0.6711325",
"0.6540887",
"0.6413211",
"0.6302297",
"0.6300285",
"0.6284974",
"0.6284974",
"0.6214498",
"0.61847866",
"0.61690986",
"0.61140937",
"0.6104232",
"0.60910136",
"0.6045087",
"0.60374",
"0.6030313",
"0.60129994",
"0.6009359",... | 0.82128966 | 0 |
Displays a form to create a new GdpMails entity. | Показывает форму для создания нового сущности GdpMails. | public function newAction()
{
$entity = new GdpMails();
$form = $this->createCreateForm($entity);
return array(
'entity' => $entity,
'form' => $form->createView(),
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createCreateForm(GdpMails $entity)\r\n {\r\n $form = $this->createForm(new GdpMailsType(), $entity, array(\r\n 'action' => $this->generateUrl('gdpmails_create'),\r\n 'method' => 'POST',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'C... | [
"0.727716",
"0.7130548",
"0.7095423",
"0.68532664",
"0.6734487",
"0.65864897",
"0.653791",
"0.64613175",
"0.64500666",
"0.643531",
"0.64125246",
"0.639017",
"0.63869315",
"0.63850164",
"0.6378891",
"0.6378039",
"0.6378039",
"0.6377443",
"0.637716",
"0.6373962",
"0.6346026",
... | 0.79893667 | 0 |
Creates a form to edit a GdpMails entity. | Создает форму для редактирования сущности GdpMails. | private function createEditForm(GdpMails $entity)
{
$form = $this->createForm(new GdpMailsType(), $entity, array(
'action' => $this->generateUrl('gdpmails_update', array('id' => $entity->getId())),
'method' => 'POST',
));
$form->add('submit', 'submit', array('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r... | [
"0.70298886",
"0.65974236",
"0.6443187",
"0.6429276",
"0.64146805",
"0.6377842",
"0.6372164",
"0.6366241",
"0.6334275",
"0.6252145",
"0.6235883",
"0.615982",
"0.614666",
"0.60807306",
"0.6068801",
"0.6067389",
"0.6066465",
"0.605718",
"0.60552603",
"0.6022499",
"0.60184187",
... | 0.81388676 | 0 |
Creates a form to delete a GdpMails entity by id. | Создает форму для удаления сущности GdpMails по идентификатору. | private function createDeleteForm($id)
{
return $this->createFormBuilder()
->setAction($this->generateUrl('gdpmails_delete', array('id' => $id)))
->setMethod('DELETE')
->add('submit', 'submit', array('label' => 'Delete'))
->getForm()
;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('personnelpersonnel_delete', array('id' => $id)))\n ->setMethod('DELETE')\n // ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n ... | [
"0.72619367",
"0.7247486",
"0.7209604",
"0.7196196",
"0.71796817",
"0.7173532",
"0.71676487",
"0.71637625",
"0.7155489",
"0.71530664",
"0.7146956",
"0.7139615",
"0.71217984",
"0.7121034",
"0.7118328",
"0.7107895",
"0.7102422",
"0.70921946",
"0.7087138",
"0.708161",
"0.7080619... | 0.76997733 | 0 |
Display all available ( and validated ) services. | Показать все доступные (и проверенные) службы. | public function displayAllServices() {
$services = $this->userServiceManager->getServices(null, true);
$this->addCss(['search.css', 'forms.css']);
$this->showView('service/allServices', [
'services' => $services,
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function index()\n {\n $services = Service::\n orderBy('status', 'asc')->\n orderBy('created_at', 'desc')->\n paginate(10);\n\n return view('services.services', compact('services'));\n }",
"public function client_all_services(){\n $service = Serv... | [
"0.7252631",
"0.7187641",
"0.71697074",
"0.7118057",
"0.70620745",
"0.7050781",
"0.70186406",
"0.7003626",
"0.6979654",
"0.6951262",
"0.69470584",
"0.6923756",
"0.69005835",
"0.68831795",
"0.68758744",
"0.68757296",
"0.687021",
"0.6865213",
"0.6864922",
"0.68605167",
"0.68573... | 0.8407879 | 0 |
Returns the number of filters. | Возвращает количество фильтров. | public function count()
{
return count($this->_filters);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function count($filters = array()) {\n\n return 1000;\n }",
"public static function countActiveFilters()\n {\n return count(self::$_activeFilters);\n }",
"public function getFilteredCount()\n\t{\n\t\treturn $this->filteredCount;\n\t}",
"public function count($filters)\n {\n ... | [
"0.8212421",
"0.8071703",
"0.7509339",
"0.7496974",
"0.7416118",
"0.7332905",
"0.7168981",
"0.7036285",
"0.6982051",
"0.69567597",
"0.6922746",
"0.6825242",
"0.6785987",
"0.6777178",
"0.6705086",
"0.67007613",
"0.66974866",
"0.6685318",
"0.663803",
"0.6606071",
"0.65987265",
... | 0.8786861 | 0 |
Given a reason number, it resolves the numeric category group to a name | По заданному номеру причины она преобразует числовую группу категорий в имя | function getReasonCategory($reason_number)
{
global $db;
$category_group_info = $db->GetVal("
SELECT
category_group_name
FROM
offline_reasons
JOIN offline_reason_groups USING (category_group)
WHERE
reason_number = $reason_number");
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function groups_parse_name($format, $groupnumber) {\n if (strstr($format, '@') !== false) { // Convert $groupnumber to a character series\n $letter = 'A';\n for($i=0; $i<$groupnumber; $i++) {\n $letter++;\n }\n $str = str_replace('@', $letter, $format);\n } else {\n ... | [
"0.5417614",
"0.520743",
"0.5187734",
"0.5062734",
"0.5046812",
"0.5031372",
"0.4956008",
"0.49444664",
"0.4900403",
"0.48873132",
"0.48361897",
"0.4803727",
"0.4799904",
"0.4793611",
"0.47770697",
"0.47741404",
"0.47711176",
"0.4765816",
"0.47602147",
"0.47515997",
"0.473498... | 0.70032495 | 0 |
Helper function to register a list of hooks. | Помощь функция для регистрации списка хуков. | private function registerHooks(array $hooks, $shopList = null)
{
foreach($hooks as $hook) {
$this->registerHook($hook, $shopList);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function register_hook_callbacks();",
"abstract protected function register_hook_callbacks();",
"public function register(\\WpOrg\\Requests\\Hooks $hooks)\n {\n }",
"public function register(\\WpOrg\\Requests\\Hooks $hooks)\n {\n }",
"protected function registerH... | [
"0.710907",
"0.6961694",
"0.69532424",
"0.69532424",
"0.69415176",
"0.68665826",
"0.68083906",
"0.68083906",
"0.6692734",
"0.6657739",
"0.6570169",
"0.6568446",
"0.6557975",
"0.65321434",
"0.6513378",
"0.6502626",
"0.65002805",
"0.645745",
"0.6456569",
"0.64267874",
"0.638580... | 0.7586508 | 0 |
Helper function to unregister a list of hooks. | Помощьная функция для отписки списка хуков. | private function unregisterHooks(array $hooks, $shopList = null)
{
foreach($hooks as $hook) {
$this->unregisterHook($hook, $shopList);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function remove_hooks()\n {\n }",
"public function remove_hooks()\n {\n }",
"public function remove_all_hook() {\n\t\tremove_action( 'all', [ $this, 'wrap_hook_callbacks' ] );\n\t}",
"public function unregister() {\n // Normally, there are definitely wrappers set for the... | [
"0.6943746",
"0.6943746",
"0.6813454",
"0.64437866",
"0.6325578",
"0.629414",
"0.6284388",
"0.5986685",
"0.5986685",
"0.59760386",
"0.59585655",
"0.59533507",
"0.59479874",
"0.58255345",
"0.5781272",
"0.57512915",
"0.57451767",
"0.57379806",
"0.57089674",
"0.5698835",
"0.5698... | 0.7958074 | 0 |
Asserts that the given register value is valid A valid register value is smaller than 0xffff | Утверждает, что заданное значение регистра является допустимым. Допустимое значение регистра меньше 0xffff | public static function assertValidRegisterValue($value)
{
if ($value > 0xffff) {
throw new InvalidArgumentException('Invalid register value, should be <= 0xffff');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function validateUint($value) {\n if (preg_match(\"/^[0-9]+$/\", $value))\n return true;\n $this->setError(t(\"Invalid positive integer\"));\n return false;\n }",
"public static function assertValidAddress($address)\n {\n if ($address < 0x0000) {\n throw new InvalidA... | [
"0.6001733",
"0.5901429",
"0.58518916",
"0.55640876",
"0.5523201",
"0.53632444",
"0.5333517",
"0.53283733",
"0.53252244",
"0.53240764",
"0.53147423",
"0.52634823",
"0.5258938",
"0.51837677",
"0.51708406",
"0.5152644",
"0.5145378",
"0.5138096",
"0.5131073",
"0.5103631",
"0.509... | 0.7637197 | 0 |
Asserts that the given quantity of bits is valid | Проверяет, что заданное количество битов является допустимым | public static function assertValidQuantityOfBits($quantityOfBits)
{
if ($quantityOfBits < 1) {
throw new InvalidArgumentException('Invalid quantity of bits, should be >= 1');
}
if ($quantityOfBits > 0x7d0) {
throw new InvalidArgumentException('Invalid quantity of bit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testBitArray()\n {\n $array = new BitArray(19);\n for ($i = 0; $i < 19; $i++) {\n $this->assertEquals(0, $array[$i]);\n if ($i == 0 || ($i > 7 && $i < 18)) {\n $array[$i] = 1;\n } else {\n $array[$i] = 0;\n }... | [
"0.61510164",
"0.60687387",
"0.57213634",
"0.5700703",
"0.56383836",
"0.5460097",
"0.5394237",
"0.5367398",
"0.53535885",
"0.53521085",
"0.53506017",
"0.5327079",
"0.5305128",
"0.5290436",
"0.52713686",
"0.5266541",
"0.52328056",
"0.5227709",
"0.52213705",
"0.5207892",
"0.520... | 0.7590083 | 0 |
Asserts that the given coil value is valid | Проверяет, что заданное значение катушки является допустимым | public static function assertValidCoilValue($value)
{
if ($value !== Coil::ON && $value !== Coil::OFF) {
throw new InvalidArgumentException(
sprintf('Invalid coil value. Should be %x or %x', Coil::ON, Coil::OFF)
);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function it_can_identify_valid_values()\n {\n $this->assertTrue(Testee::isValid(self::TEST_NULL_VALUE));\n }",
"public function testValueValid() {\n $config = [\n 'success' => 1,\n 'data' => 'example'\n ];\n $this->assertEmpty($this->getValidator()->v... | [
"0.6008962",
"0.59076023",
"0.58623385",
"0.5819444",
"0.56846976",
"0.5613157",
"0.55885965",
"0.5501875",
"0.5497066",
"0.5492128",
"0.54439676",
"0.5432192",
"0.5430047",
"0.53856987",
"0.5355875",
"0.53495747",
"0.5348872",
"0.5342657",
"0.5341787",
"0.5340112",
"0.532435... | 0.7477078 | 0 |
wp_enqueue_script( 'airshp_chat_socket.io', ' array( 'jquery' ), date('Ymd').'12', true ); | wp_enqueue_script( 'airshp_chat_socket.io', ' array( 'jquery' ), date('Ymd').'12', true ); | function airshp_chat_scripts() {
wp_enqueue_script( 'airshp_chat_socket.io', 'http://beta.tourgigs.com:8080/socket.io/socket.io.js', array( 'jquery' ), date('Y-m-d').'12', true );
/* Serve JS page with Admin controls to only users with permissions */
if ( (current_user_can( 'manage_options' ))) {
wp_enqueue_scrip... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function enqueue_scripts()\n\t{\n\t\twp_register_script('peepso-activitystream', $this->plugin_url . 'asset/js/activitystream.js',\n\t\t\tarray('peepso'), PeepSo::PLUGIN_VERSION, TRUE);\n\t}",
"function add_scripts() {\r\n \twp_enqueue_script('contact-scripts', plugins_url().'/contact-widget/js/script.js'... | [
"0.6992234",
"0.6499352",
"0.64374214",
"0.64326483",
"0.6426292",
"0.6425722",
"0.6418166",
"0.6372247",
"0.637026",
"0.636368",
"0.6354725",
"0.63387126",
"0.6337767",
"0.63250667",
"0.6319121",
"0.6316091",
"0.63114905",
"0.63013506",
"0.62790394",
"0.6278932",
"0.62735635... | 0.81571126 | 0 |