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
Checks wether this element is ancestor of $element
Проверяет, является ли этот элемент предком $element
public function isAncestor($element) { $ancestor = false; foreach ($this->children as $child) { if ($element===$child) { $ancestor = true; break; } elseif ($child->isAncestor($element)) { $ancestor = true; } } return $ancestor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAncestorOf(Hierarchy $element, $loader = null)\n {\n return $element->isOffspring($this, $loader);\n }", "public function isAncestor()\n {\n $model_ticket_forwarded_to = self::find()->andWhere(['forwarded_from_id' => $this->id])->one();\n\n return !is_null($model_t...
[ "0.6542127", "0.64991647", "0.61710393", "0.61710393", "0.61710393", "0.61230016", "0.60059696", "0.60046726", "0.59604484", "0.5921563", "0.5902705", "0.5757671", "0.5728297", "0.57192826", "0.5699878", "0.56545407", "0.5634029", "0.5566879", "0.5560207", "0.5556685", "0.554...
0.7277344
0
Creates a base job from OLP on EFI
Создает базовую задачу из OLP на EFI
function efi_create_job($job_id, $extra_job_data = array()){ global $order_date, $delivery_date, $debug; $base_job_data['job']=$job_id; $base_job_data['customer']='SINALITE'; $base_job_data['description']='SINALITE PRESSRUN '.$job_id; $base_job_data['description2']='Generated by OLP'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function makeJob();", "abstract public function makeJob();", "public function addNewJobOpo()\n {\n }", "protected function generateJob()\n\t{\n\t\t$name = $this->inflector->getJob();\n\n\t\t$this->call('make:job', compact('name'));\n\t}", "private function createSearchJob() {\n $re...
[ "0.6454626", "0.6454626", "0.5926238", "0.5911856", "0.5560392", "0.54484826", "0.5372004", "0.5367039", "0.5263153", "0.5160501", "0.514083", "0.51307267", "0.5094002", "0.50655574", "0.50480133", "0.5047628", "0.50425905", "0.50350827", "0.4979414", "0.4966838", "0.4966826"...
0.7077317
0
Constructs a new DigestReader implementation, reading from the Reader $reader and hashing all data with the algorithm $hashAlgo.
Создает новый объект DigestReader, читающий данные из Reader $reader и хэширующий все данные алгоритмом $hashAlgo.
public function __construct(Reader $reader, $hashAlgo) { $this->_base = $reader; $this->_resource = hash_init($hashAlgo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __construct(Reader $reader)\n {\n $this->_reader = $reader;\n }", "public function __construct(Reader $reader)\n {\n $this->reader = $reader;\n }", "public function __construct(Reader $reader)\n {\n $this->reader = $reader;\n }", "public static functi...
[ "0.5410404", "0.53830004", "0.53830004", "0.5262567", "0.5086237", "0.4889678", "0.4856584", "0.482767", "0.47710654", "0.47192723", "0.46631235", "0.4624918", "0.45854688", "0.456514", "0.45649627", "0.4535507", "0.4465374", "0.44271603", "0.44090238", "0.435876", "0.4327976...
0.7672387
0
Returns a relative link to this category.
Возвращает относительную ссылку на эту категорию.
public function getLink() { return Controller::join_links($this->Blog()->Link(), 'category', $this->URLSegment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canonicalLink()\n\t{\n\t\treturn $this->URL();\n\t}", "public function getUrlAttribute()\n {\n return url(\"blog/category/{$this->id}-\") . strtolower(str_replace(\" \", \"-\", $this->name));\n }", "public function Link() {\n $Action = 'show/' . $this->ID . '/' . $this->Cate...
[ "0.6979202", "0.68052036", "0.6756991", "0.67027897", "0.669461", "0.66623235", "0.66561204", "0.65567994", "0.65025854", "0.6496775", "0.6473944", "0.6439003", "0.64306366", "0.642306", "0.640929", "0.6390306", "0.6344888", "0.63352424", "0.63352424", "0.63352424", "0.633524...
0.78979516
0
Sets a new otherCertificate
Устанавливает новый otherCertificate
public function setOtherCertificate(array $otherCertificate) { $this->otherCertificate = $otherCertificate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCertificate($val)\n {\n $this->_propDict[\"certificate\"] = $val;\n return $this;\n }", "public function testUpdateCertificate()\n {\n }", "function setCertificateID($id) {\n $this->certificateID = $id;\n }", "function setCertificatePassword($password)\...
[ "0.6442554", "0.6081556", "0.58484876", "0.5844857", "0.57556254", "0.57211185", "0.55608356", "0.55008894", "0.5461199", "0.54429686", "0.5420772", "0.5417981", "0.53751665", "0.52398384", "0.52111876", "0.52045345", "0.52045345", "0.5054363", "0.5041309", "0.5011718", "0.49...
0.74124104
0
Show the form for creating a new QcTipoEqualizacaoTecnica.
Показать форму для создания нового QcTipoEqualizacaoTecnica.
public function create() { return view('qc_tipo_equalizacao_tecnicas.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(CreateQcTipoEqualizacaoTecnicaRequest $request)\n {\n $input = $request->all();\n\n $qcTipoEqualizacaoTecnica = $this->qcTipoEqualizacaoTecnicaRepository->create($input);\n\n Flash::success('Qc Tipo Equalizacao Tecnica '.trans('common.saved').' '.trans('common.successf...
[ "0.63867724", "0.6321323", "0.6248641", "0.6170369", "0.61597025", "0.61566734", "0.61521035", "0.61520785", "0.6149233", "0.6145191", "0.6131166", "0.6128632", "0.61170894", "0.6116662", "0.60984033", "0.60978085", "0.6090943", "0.6088183", "0.60780376", "0.60660523", "0.606...
0.7429291
0
Store a newly created QcTipoEqualizacaoTecnica in storage.
Храните только что созданную QcTipoEqualizacaoTecnica в хранилище.
public function store(CreateQcTipoEqualizacaoTecnicaRequest $request) { $input = $request->all(); $qcTipoEqualizacaoTecnica = $this->qcTipoEqualizacaoTecnicaRepository->create($input); Flash::success('Qc Tipo Equalizacao Tecnica '.trans('common.saved').' '.trans('common.successfully').'.')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function store($valutazione)\n {\n $con = FConnectionDB::getIstanza();\n $con->store($valutazione, static::$nomeClasse);\n }", "public function store(Request $request)\n {\n DB::beginTransaction();\n try{\n $tacNuevo = new Tac;\n $tacNuevo->nombre=$req...
[ "0.55074793", "0.5428944", "0.53076106", "0.5231666", "0.51308054", "0.5123865", "0.50989157", "0.5078516", "0.50765", "0.5006776", "0.500204", "0.49781814", "0.49584776", "0.495819", "0.49563813", "0.49557543", "0.49315625", "0.49293077", "0.4915092", "0.49088088", "0.490880...
0.70216274
0
Return a unique zip filename in the Elvis folder in the storage directory.
Верните уникальное имя zip-файла в папке Elvis в каталоге хранения.
private function createUniqueZipFilename() { $directory = storage_path() . '/elvis/'; if (!file_exists($directory)) { mkdir($directory); } return $directory . Str::random(40) . '.zip'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeFilename()\n {\n return getcwd().'/package'.md5(time().uniqid()).'.zip';\n }", "protected function makeFilename()\n {\n return getcwd().'/bolt_'.md5(time().uniqid()).'.zip';\n }", "protected static function generateArchiveName(): string\n {\n $archiveName...
[ "0.7570685", "0.755048", "0.75492525", "0.75096065", "0.66830945", "0.65340286", "0.6525944", "0.651863", "0.651863", "0.651863", "0.651863", "0.651863", "0.651863", "0.65106976", "0.6480843", "0.6367123", "0.6359182", "0.6345084", "0.6333627", "0.63045716", "0.6269606", "0...
0.8426513
0
Lock object in memory.
Заблокировать объект в памяти.
public function lock() { if ( !($this->_state & self::LOADED) ) { $this->_memManager->load($this, $this->_id); $this->_state |= self::LOADED; } $this->_state |= self::LOCKED; /** * @todo * It's possible to set "value" container attribute to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lock() {}", "public function lock(): void;", "public function lock(): void {}", "public function lock(): void {}", "public function lock(): void {}", "public function lock(): void {}", "public function lock(): void {}", "public function lock()\n\t{\n\t\t$this->immutable = true;\n\t}",...
[ "0.79939806", "0.76784873", "0.7584581", "0.7584581", "0.7584581", "0.7584581", "0.7584581", "0.7529791", "0.7516779", "0.74915516", "0.7487365", "0.7477436", "0.73398083", "0.7234214", "0.7216432", "0.71107876", "0.7060109", "0.70130384", "0.699959", "0.6960688", "0.69207907...
0.8080703
0
Set value (used by memory manager when value is loaded)
Значение (используется менеджером памяти при загрузке значения)
public function setValue($value) { $this->_value = new Zend_Memory_Value($value, $this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setValue($value, $load = false);", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function...
[ "0.77804565", "0.7724653", "0.7724653", "0.7724653", "0.7724653", "0.7724653", "0.7724653", "0.7724653", "0.7724653", "0.7724653", "0.7724653", "0.7724653", "0.7724288", "0.7724288", "0.76851404", "0.76851404", "0.76851404", "0.76851404", "0.76851404", "0.76851404", "0.768514...
0.7927431
0
Check if object is marked as swapped
Проверить, помечен ли объект как обменный
public function isSwapped() { return $this->_state & self::SWAPPED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_switched()\n {\n }", "protected function isUnchanged() {}", "function ms_is_switched()\n {\n }", "function ms_is_switched() {\n\treturn ! empty( $GLOBALS['_wp_switched_stack'] );\n}", "public function retainObjectOrder()\n {\n return false;\n }", "publi...
[ "0.67545384", "0.637417", "0.5814218", "0.5543415", "0.5515815", "0.54928035", "0.54928035", "0.53640574", "0.5350206", "0.53006804", "0.52732044", "0.5247265", "0.5108829", "0.51074255", "0.5100363", "0.49751502", "0.49751502", "0.4940735", "0.4918538", "0.48654747", "0.4865...
0.7614702
0
Get the value of errorIcon
Получить значение errorIcon
public function getErrorIcon() { return $this->errorIcon; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "public function icon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->get(self::_ICON);\n }", "public function ge...
[ "0.70776504", "0.70776504", "0.69794035", "0.69553447", "0.6916963", "0.6916963", "0.69139004", "0.6906492", "0.6906492", "0.6906492", "0.6906492", "0.6906492", "0.6906492", "0.6906492", "0.6888174", "0.68779695", "0.68680894", "0.68303347", "0.67731565", "0.6759747", "0.6727...
0.86516255
0
Get the value of errorDesc
Получить значение errorDesc
public function getErrorDesc() { return $this->errorDesc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getErrorDescription() {\n\t\treturn $this->error_description;\n\t}", "public function getErrorDescription()\n {\n return $this->errorDescription;\n }", "public function getErrorDescription(): string\n {\n return $this->errorDescription;\n }", "public function getErro...
[ "0.7963527", "0.7799581", "0.7755414", "0.76882154", "0.75526524", "0.7546791", "0.7464236", "0.740983", "0.740983", "0.74003184", "0.73228717", "0.7320093", "0.7292492", "0.72740436", "0.7264626", "0.7254259", "0.72516125", "0.72449696", "0.72449696", "0.72432756", "0.723529...
0.8590951
0
get Product by Category Path
Получить продукт по пути к категории
function getProductByCategoryPath($path){ $q_product_id=getResultSet("SELECT product_id FROM ".DB_PREFIX."product_to_category WHERE category_id=".$path); while($rp=mysql_fetch_array($q_product_id)){ $product_id = $rp['product_id']; $product = new product($product_id); echo '<div class="item">'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prod_list_by_category() {\n $url_cate = get_raw_app_uri();\n if (!empty($url_cate)) {\n $Product = new Product();\n $info = $Product->getProductByCategory($url_cate);\n $data['content'] = 'list_product'; \n $data['product'] = $inf...
[ "0.65317667", "0.64077926", "0.6311345", "0.6276059", "0.6240993", "0.62391573", "0.62004507", "0.6194961", "0.6185571", "0.6171575", "0.6099227", "0.6077542", "0.6072147", "0.60644984", "0.60644984", "0.6045247", "0.60351044", "0.6023607", "0.6013061", "0.6012197", "0.596237...
0.7754095
0
get Product by Category Search
Поиск продукта по категории
function getProductByCategorySearch($category_id, $keyword){ $unix_product = array(); //$has_printed = false; $total_product_1 = 0; $total_product_2 = 0; $keyword=strtolower($keyword); if($category_id!=0){ $q_category = getResultSet("SELECT DISTINCT(category_id) FROM ".DB_PREFIX."category WHER...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $request = request();\n $category_id = $request->input('category_id');\n $keyword = $request->input('q');\n\n $products = Product::when($category_id, function($query, $category_id) {\n return $query->where('category_id', $category_id);\n ...
[ "0.71643317", "0.7025536", "0.69703025", "0.6907894", "0.68832415", "0.6829164", "0.68226475", "0.67797655", "0.6772409", "0.6767486", "0.67455864", "0.673169", "0.6724667", "0.670287", "0.67013144", "0.6683852", "0.6656874", "0.663494", "0.6634396", "0.6626445", "0.661354", ...
0.73423225
0
Lists all reservation entities.
Список всех сущностей резервирования.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $reservation = $em->getRepository('CommerceBundle:Reservation')->findAll(); return $this->render('reservation/index.html.twig', array( 'reservation' => $reservation, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return Reservation::all();\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('VCReservasBundle:Reserva')->findAll();\n\n return array(\n 'entities' => $entities,\n ...
[ "0.7254961", "0.71217114", "0.6814796", "0.6761953", "0.6728081", "0.6691792", "0.66635925", "0.6657193", "0.6632309", "0.65781355", "0.6526293", "0.65245694", "0.6493011", "0.6482767", "0.64495856", "0.6447723", "0.64351624", "0.64106417", "0.63504595", "0.634273", "0.632136...
0.7567255
0
Get a list of Shipping Services associated with this App.
Получите список служб доставки, связанных с этим приложением.
public function getList() { return $this->call('GET', "/shipping/services.json"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n $services = InvoiceService::where('office_id', request('office_id'))->where('name', 'like', '%' . request('q') . '%')->get();\n\n return $services;\n }", "public function g...
[ "0.6723004", "0.6688981", "0.6671607", "0.6671607", "0.6671607", "0.6667309", "0.66655296", "0.66655296", "0.6656359", "0.663274", "0.6594247", "0.6470561", "0.6410358", "0.6403323", "0.63763595", "0.62962925", "0.6294049", "0.62781715", "0.6260912", "0.6237242", "0.6231255",...
0.79947937
0
/ Converts a number of seconds to hours, minutes and seconds.
Конвертирует количество секунд в часы, минуты и секунды.
function convert_seconds_to_hour($time){ echo "Time diff in seconds: " . $time . "<br>"; $numHours = $time / 3600; echo $numHours; echo "<br>"; echo "Time diff in hours: " . (int)$numHours . "<br>"; $numMinutes = ($time % 3600) / 60; echo $numMinutes; echo "<br>"; echo "Time diff i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hms2sec ($hms) {\n\tlist($h, $m, $s) = explode (\":\", $hms);\n\t$seconds = 0;\n\t$seconds += (intval($h) * 3600);\n\t$seconds += (intval($m) * 60);\n\t$seconds += (intval($s));\n\treturn $seconds;\n}", "function get_hh_ss($seconds) {\n $hours = floor($seconds / 60 / 60);\n $minutes = floor(($seco...
[ "0.7389435", "0.73260266", "0.7112515", "0.71064585", "0.7030816", "0.70249516", "0.69129205", "0.6895721", "0.6881544", "0.6875911", "0.6856346", "0.6850859", "0.6848863", "0.68434554", "0.6805531", "0.6757704", "0.67499095", "0.67359865", "0.6705889", "0.66434646", "0.66316...
0.7329921
1
Attach a writer instance
Прикрепить экземпляр writer
public function attachWriter(Writer $writer) { if (isset($writer)) { $this->writers[] = $writer; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addWriter(\\SetaPDF_Core_Writer_WriterInterface $writer) {}", "public function attach(Kohana_Log_Writer $writer, array $types = NULL)\n\t{\n\t\t$this->_writers[\"{$writer}\"] = array\n\t\t(\n\t\t\t'object' => $writer,\n\t\t\t'types' => $types\n\t\t);\n\n\t\treturn $this;\n\t}", "private functio...
[ "0.6557399", "0.6333759", "0.62169576", "0.61179495", "0.6077798", "0.5568247", "0.55649376", "0.555916", "0.5547654", "0.55437225", "0.54704833", "0.5461469", "0.53434277", "0.53208095", "0.53114057", "0.5302123", "0.5302123", "0.5281024", "0.5266721", "0.523793", "0.5182185...
0.7423104
0
Check if value can be cast to string
Проверить, можно ли значение привести к строке
protected static function canBeCastToString($value) { if (is_object($value) && method_exists($value, "__toString")) { return true; } return is_scalar($value) || is_null($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function aString($value)\n {\n return (is_string($value))?:false;\n }", "private function canBeString($value): bool\n {\n // https://stackoverflow.com/a/5496674\n return !is_array($value) && (\n (!is_object($value) && settype($value, 'string') !== false)...
[ "0.69170946", "0.67336637", "0.6730131", "0.651785", "0.6409559", "0.6367405", "0.6363094", "0.6347807", "0.6308053", "0.6257929", "0.6243511", "0.62164634", "0.6186825", "0.6164853", "0.61502516", "0.6146022", "0.6125181", "0.6106843", "0.60612065", "0.59892136", "0.594983",...
0.7591007
0
The head action handles HEAD requests; it should respond with an identical response to the one that would correspond to a GET request, but without the response body.
Действие HEAD обрабатывает запросы HEAD; оно должно отвечать идентичным ответом, соответствующим запросу GET, но без тела ответа.
public function headAction() { Extra_ErrorREST::setInvalidHTTPMethod($this->getResponse()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function head($id = null) {\n $action = $this->params('actiion');\n $job_id = $this->params('jobid');\n \n //$job_id > 30 is only for checking if the request is garbage and so save resources\n if($action == 'head' && strlen($job_id) >= 30){\n $crawlResultHelper ...
[ "0.7382294", "0.71671796", "0.7164798", "0.71319973", "0.70671886", "0.7047216", "0.6946991", "0.69293755", "0.68885183", "0.6802876", "0.6799131", "0.67906845", "0.67873675", "0.67367345", "0.67367345", "0.6715691", "0.67076296", "0.6698354", "0.66940653", "0.6686401", "0.66...
0.7187432
1
Convenience method that does the complete initialization for DocBlox. This method will register the autoloader, event dispatcher and plugins. The methods called can also be implemented separately, for example when you want to use your own autoloader.
Удобный метод, выполняющий полную инициализацию для DocBlox. Этот метод регистрирует автозагрузчик, диспетчер событий и плагины. Методы, которые вызываются, также могут быть реализованы отдельно, например, когда вы хотите использовать свой собственный автозагрузчик.
public function initialize() { $autoloader = $this->registerAutoloader(); $this->registerPlugins($autoloader); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function init() {\n\n\t\tif ( ! $this->should_load() ) {\n\t\t\treturn;\n\t\t}\n\t\t$this->setup_admin();\n\t\t$this->setup_api();\n\t}", "public static function _init()\n\t{\n\t\t\\Module::load('documentation');\n\t}", "public static function register_autoloader()\n {\n }", "protected ...
[ "0.68206704", "0.66960126", "0.6666122", "0.6646043", "0.66263855", "0.6624106", "0.6591112", "0.6558713", "0.64892226", "0.6451603", "0.64219743", "0.63961893", "0.63901526", "0.6332813", "0.63216305", "0.6320369", "0.6314277", "0.6275027", "0.62626415", "0.62625897", "0.626...
0.7356257
0
Registers and returns the autoloader for DocBlox. DocBlox uses the ZF2 autoloader to register the common paths and start a PSR0 fallback. The autoloader is also used by the plugin system to make sure that everything in a plugin can be autoloaded.
Регистрирует и возвращает автозагрузчик для DocBlox. DocBlox использует автозагрузчик ZF2 для регистрации общих путей и запуска PSR0-загрузчика по умолчанию. Автозагрузчик также используется системой плагинов для обеспечения автозагрузки всего содержимого плагина.
public function registerAutoloader() { $base_include_folder = dirname(__FILE__) . '/../../src'; // set path to add lib folder, load the Zend Autoloader set_include_path( $base_include_folder . PATH_SEPARATOR . get_include_path() ); include_once $base_include_fol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerAutoloaders()\n {\n }", "public static function register_autoloader()\n {\n }", "protected function _initAutoload() {\r\n $autoLoader = Zend_Loader_Autoloader::getInstance();\r\n $autoLoader->registerNamespace('CMS_');\r\n $resourceLoader = new Z...
[ "0.71239805", "0.70356315", "0.7014604", "0.69268245", "0.69074523", "0.6881294", "0.6874796", "0.687425", "0.6843537", "0.6786774", "0.6757401", "0.673854", "0.6735615", "0.67146933", "0.6698351", "0.6682487", "0.6631243", "0.66288084", "0.6608404", "0.6566878", "0.655929", ...
0.7894871
0
Checks if $this>data exists inside $this>url
Проверяет, существует ли $this>data внутри $this>url
private function checkDataInURL() { $html = @file_get_contents($this->url); if ($html === FALSE) throw new Exception('Unable to get html from URL.'); return strpos($html, $this->data) !== FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exists(){\n\n\t\treturn (!empty($this->_data)) ? true : false;\n\n\t}", "protected function has_data()\n {\n }", "public function hasUrl()\n {\n return ! empty($this->url);\n }", "public function has_data()\n {\n }", "public function hasData(){\n ...
[ "0.69160885", "0.6750902", "0.65724427", "0.6543552", "0.65159374", "0.64892465", "0.6432191", "0.6417725", "0.6336273", "0.63291854", "0.63265705", "0.6172349", "0.6168309", "0.61219645", "0.612057", "0.6114995", "0.6113378", "0.61113495", "0.61113495", "0.6109108", "0.60993...
0.7399255
0
Checks if $this>checkDataInURL() status has changed from the the last known status stored in the cookie
Проверяет, изменился ли статус $this>checkDataInURL() с последнего известного статуса, сохраненного в cookie
private function hasURLDataChanged() { $isDataInURL = filter_var($this->cookie->get(URLDATATRACKER_ISDATAINURL), FILTER_VALIDATE_BOOLEAN); try { $dataCompareResult = $isDataInURL !== $this->checkDataInURL(); echo "Successfully performed data check.\n"; return $dataCompareResult; } catch (E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_new_data() {\n $rv = FALSE;\n if ($this->is_remote($this->url)) {\n $ts_standard = $this->GetRemoteLastModified($this->url . FileFetcher::FILE_STANDARDS);\n $ts_counties = $this->GetRemoteLastModified($this->url . FileFetcher::FILE_COUNTIES);\n }\n ...
[ "0.59183085", "0.5706716", "0.56382966", "0.56382966", "0.56168854", "0.5615127", "0.56083584", "0.5400694", "0.5390382", "0.53425604", "0.5327734", "0.5321748", "0.530336", "0.5274762", "0.5253346", "0.52509844", "0.522989", "0.5225797", "0.5221308", "0.5215015", "0.5182281"...
0.82121
0
Stores the current $this>checkDataInURL() status to a cookie
Хранит текущий статус $this>checkDataInURL() в cookie
private function storeCookie() { try { $this->cookie->store(URLDATATRACKER_ISDATAINURL, $this->checkDataInURL() ? 'TRUE' : 'FALSE'); echo "Successfully stored cookie.\n"; } catch (Exception $e) { echo "Failed to store cookie.\n"; throw $e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function hasURLDataChanged() {\n $isDataInURL = filter_var($this->cookie->get(URLDATATRACKER_ISDATAINURL), FILTER_VALIDATE_BOOLEAN);\n try {\n $dataCompareResult = $isDataInURL !== $this->checkDataInURL();\n echo \"Successfully performed data check.\\n\";\n return $dataCompareResult;\n...
[ "0.6307936", "0.62240255", "0.57195693", "0.5614683", "0.55893165", "0.5564948", "0.5545319", "0.5518148", "0.54891455", "0.54829985", "0.54582965", "0.54274374", "0.5424936", "0.53587395", "0.53414977", "0.5272552", "0.5266992", "0.5262771", "0.5241918", "0.5218157", "0.5201...
0.7268596
0
/ Smarty plugin File: function.set.php Type: function Name: set Purpose: set a variable
Smarty плагин Файл: function.set.php Тип: функция Имя: set Назначение: установить переменную
function smarty_function_set($params, &$smarty) { // if an array is to create if (substr($params['value'], 0, 6) == "array(") eval("\$params['value'] = " . str_replace('"', '', $params['value']) . ";"); if (!isset($params['var'])) { $smarty->trigger_error("set: missing 'var' parameter", E_USER_WARNING); retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($variable, $value);", "function set_var($name, $value){ // set the template variable\n\tif (func_num_args()> 2){\n\t\tif (!$this->in_vars($name)) $this->vars[$name] = array();\n\t\t$this->vars[$name][func_get_arg(2)] = $value;\n\t} else $this->vars[$name] = $value;\n}", "function testSetVar...
[ "0.7084304", "0.7051902", "0.6641909", "0.663742", "0.6556279", "0.6314208", "0.6253499", "0.62321454", "0.6225774", "0.62167346", "0.619909", "0.61985904", "0.61957854", "0.6175531", "0.6111055", "0.6111023", "0.61055166", "0.60730654", "0.6067533", "0.60530436", "0.60393184...
0.70628375
1
Configure the roles and permissions that are available within the application.
Настройте роли и разрешения, которые доступны внутри приложения.
protected function configurePermissions() { Jetstream::defaultApiTokenPermissions(['read']); Jetstream::role('admin', __('Yonetici'), [ 'create', 'read', 'update', 'delete', ])->description(__('Şirket hakkındaki herşeyi yapabilir')); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function configurePermissions()\n {\n Jetstream::defaultApiTokenPermissions(['read']);\n\n Jetstream::role('admin', __('Administrator'), [\n 'create',\n 'read',\n 'update',\n 'delete',\n ])->description(__('Administrator users can perfor...
[ "0.81627846", "0.7353705", "0.72163177", "0.69928795", "0.6643593", "0.65624666", "0.65544295", "0.6506982", "0.64614314", "0.6461098", "0.64407104", "0.64307064", "0.63897914", "0.6353988", "0.63536364", "0.63150376", "0.6307666", "0.62971354", "0.62647355", "0.6251233", "0....
0.78103733
1
saveUserTimeLine fetch social messages from social provider and save into db
saveUserTimeLine получает социальные сообщения от поставщика социальных услуг и сохраняет их в базе данных
public function saveUserTimeLine(){ try { $messages = $this->socialService->getSocialUserTimeline()->toArray(); } catch (ClientException $ex){ if ($ex->hasResponse()) { throw new TwitterAuthException(Psr7\str($ex->getResponse())); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function syncTwitterTimeLine($username,$count){\n //Define response array\n $response = array(\n \"success\" => false,\n \"message\" => \"\",\n \"data\"=>array()\n );\n \n $user = User::where(\"username\",\"=\",$username)->first();\n ...
[ "0.589219", "0.5686585", "0.5467757", "0.5410428", "0.5407477", "0.5379563", "0.53723794", "0.53591806", "0.5352307", "0.53262806", "0.5326073", "0.5311935", "0.5295915", "0.5230922", "0.521633", "0.51970136", "0.5196925", "0.5180001", "0.5160863", "0.5158906", "0.5136321", ...
0.8168409
0
TODO: Implement getUserMessagesAll() method.
TODO: Реализовать метод getUserMessagesAll().
public function getUserMessagesAll(User $user) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAll()\n\t{\n\t\t$msgs = Message::findByUser($this->getUser());\n\t\t$this->updateQueryTime();\n\t\treturn $msgs;\n\t}", "public function getMessages() {}", "public function getMessages() {}", "public function fetchAllMessages()\n {\n return Chat::with('user')->get();\n }", "...
[ "0.796697", "0.7772985", "0.7772985", "0.7730543", "0.7661503", "0.7661503", "0.7661503", "0.7661503", "0.7661503", "0.7661503", "0.7661503", "0.74403864", "0.73074996", "0.7259104", "0.7202516", "0.7188276", "0.7188276", "0.7188276", "0.71113104", "0.71113104", "0.7049612", ...
0.79915184
0
TODO: Implement getUserMessagesByUsername() method.
TODO: Реализовать метод getUserMessagesByUsername().
public function getUserMessagesByUsername(User $user, string $username) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUserMessages($username){\n\t\t$username = escapeQuery($username);\n\t\t$query = \"SELECT M.message_id, U1.username AS fromUser, U2.username AS toUser, M.messageTitle, M.messageText\n\t\t\tFROM Messages AS M\n\t\t\tINNER JOIN User AS U1 ON M.fromUserId = U1.user_id\n\t\t\tINNER JOIN User AS U2 ON M.toUs...
[ "0.73914415", "0.72065824", "0.7187663", "0.7187663", "0.711694", "0.70896125", "0.70896125", "0.70896125", "0.70896125", "0.70896125", "0.70896125", "0.70896125", "0.6917909", "0.6863951", "0.6807001", "0.6723794", "0.67154646", "0.66435647", "0.66296554", "0.6612778", "0.65...
0.7635346
0
Can we update information in Kount for a payment? kount_ens_update is set when an ENS update is received from Kount
Можно ли обновить информацию в Kount для платежа? kount_ens_update устанавливается при получении запроса на обновление ENS от Kount
public function canUpdateKount() { return !Mage::registry('kount_ens_update') && Mage::getStoreConfig('payment/gene_braintree_creditcard/kount_merchant_id') && Mage::getStoreConfig('payment/gene_braintree_creditcard/kount_api_key'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateSuperfund()\n {\n }", "public function testUpdatePayrun()\n {\n }", "public static function ipnStatusEdit($event) { \n\t\t$keyAttrs = $event->key->attributes();\n\t\t$value = (string) $event->new_value;\n\t\t$agent = (string) $event->agent;\n\t\t$shoppingCartId = $keyAttrs...
[ "0.65465504", "0.64529794", "0.60469157", "0.5990693", "0.58008426", "0.57362884", "0.57291186", "0.5711061", "0.56581914", "0.56432563", "0.563268", "0.56152546", "0.56152546", "0.5589125", "0.5581432", "0.5567886", "0.5558687", "0.55558026", "0.55481434", "0.5532721", "0.55...
0.71354496
0
Can we run the migration? Requires the Braintree_Payments module to be installed
Можно ли запустить миграцию? Требуется модуль Braintree_Payments
public function canRunMigration() { return Mage::helper('core')->isModuleEnabled('Braintree_Payments'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function shouldRunMigration()\n {\n return $this->canRunMigration()\n && !Mage::getStoreConfigFlag(self::MIGRATION_COMPLETE)\n && !Mage::getStoreConfig('payment/gene_braintree/merchant_id')\n && !Mage::getStoreConfig('payment/gene_braintree/sandbox_merchant_id');\n...
[ "0.6793458", "0.5980437", "0.5979496", "0.5975387", "0.5971543", "0.59567803", "0.5955138", "0.5932166", "0.5888833", "0.5818952", "0.575944", "0.57486707", "0.5665119", "0.5664528", "0.5661015", "0.56197315", "0.56167066", "0.5601573", "0.55725", "0.5519048", "0.5506389", ...
0.8323674
0
Should the system run the migration tool automatically
Система должна автоматически запускать инструмент миграции
public function shouldRunMigration() { return $this->canRunMigration() && !Mage::getStoreConfigFlag(self::MIGRATION_COMPLETE) && !Mage::getStoreConfig('payment/gene_braintree/merchant_id') && !Mage::getStoreConfig('payment/gene_braintree/sandbox_merchant_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMigratingUp();", "public function execute() {\n $oldMigrations = new Filesystem(\"App/system/databases/migrations\");\n $oldMigrations->addFilter(new MigrationFilter($this->model->getShortModelName()));\n\n\n //todo: write custom iterator\n $oldMigrations->customCall...
[ "0.6954632", "0.6761658", "0.67213285", "0.6699633", "0.66636103", "0.66186184", "0.6539002", "0.6516198", "0.64371294", "0.6427038", "0.64209986", "0.63902366", "0.63767916", "0.6326578", "0.6326274", "0.6321944", "0.6288583", "0.6277459", "0.6220412", "0.6210137", "0.616221...
0.7653
0
Sets the relative flag
Устанавливает флаг относительности
public function relative($relative) { $this->relative = (bool)$relative; return $this->relative; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function relative($relative) {\n if (is_bool($relative)) {\n $this->relative = $relative;\n }\n return $this->relative;\n }", "public function SetAbsolute ($absolute = TRUE);", "public function setRelativePosition($value) {\r\n $this->relativePosition = $this->setDoubleProperty($th...
[ "0.70307744", "0.63239795", "0.6143951", "0.6117714", "0.60353297", "0.58966285", "0.583431", "0.57801837", "0.5590096", "0.5526776", "0.5501168", "0.5478037", "0.545992", "0.5452076", "0.54490334", "0.5442625", "0.53240454", "0.53238535", "0.53065914", "0.52629024", "0.52609...
0.7146466
0
Sets the from URLs array used for matching.
Устанавливает массив from URLs, используемый для сопоставления.
private function from_urls($from_urls) { if (is_array($from_urls)) { $this->from_urls = $from_urls; } return $this->from_urls; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLinksFoundArray()\n { \n $cnt = count($this->links_found_url_descriptors);\n for ($x=0; $x<$cnt; $x++)\n {\n $UrlDescriptor = $this->links_found_url_descriptors[$x];\n \n // Convert $UrlDescriptor-object to an array\n $object_vars = get_object_vars($UrlDescriptor);\...
[ "0.624209", "0.5642078", "0.55370617", "0.5502138", "0.547881", "0.547881", "0.54528564", "0.54377615", "0.54377496", "0.53958905", "0.5381506", "0.53243273", "0.52862126", "0.5280621", "0.52668285", "0.5263272", "0.52441674", "0.5214679", "0.5199855", "0.5187761", "0.5154621...
0.74515975
0
WordPress Options implementation for Discussion Settings.
Реализация параметров WordPress для настроек обсуждений.
function add_settings_fields_options_discussion() { sae_add_settings_section( 'article', __( 'Default article settings' ), 'settings_section_article_before', 'discussion' ); sae_add_settings_field( 'default_pingback_flag', '', 'checkbox', 'discussion', 'article', array( 'skip_title' => true, 'label' => __( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ci_cptr_plugin_options() {\n\t\n\tif ( !current_user_can('manage_options') )\n\t{\n\t\twp_die( __('You do not have sufficient permissions to access this page.') );\n\t}\n\t?>\n\t<div class=\"wrap\" id=\"cptr-options\">\n\t\t<!--<h2><?php echo sprintf(__('CSSIgniter Custom Post Types Relationships v%s - Se...
[ "0.66515255", "0.66283154", "0.6481121", "0.64136285", "0.6383131", "0.6308863", "0.62851787", "0.6273663", "0.6265167", "0.6232458", "0.6227361", "0.6188906", "0.6148076", "0.6120388", "0.61195356", "0.61006784", "0.6100154", "0.6096246", "0.6095549", "0.60656744", "0.606253...
0.714491
0
Tests a purchase and shop flow.
Проверяет процесс покупки и использования магазина.
public function testPurchaseFlow() { // Prepare $user = factory('App\User')->create(['password' => Hash::make('laravel-shop')]); $bool = Auth::attempt(['email' => $user->email, 'password' => 'laravel-shop']); $cart = App\Cart::current() ->add(['sku' => '0001', 'price' => 1.99]) ->add(['sku' => '0002',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreatePurchase()\n {\n print \"testPurchase()\\n\";\n\n // TODO: Impl\n\n $this->fail();\n }", "public function purchaseTest()\n {\n\t $this->json('POST','/compraproducto', [\n 'user_id' => '15',\n 'product_id' => '31',\n 'quant...
[ "0.7443279", "0.73323864", "0.6954387", "0.6948993", "0.67016095", "0.66181165", "0.6580395", "0.65131956", "0.65059507", "0.63474095", "0.6316441", "0.6208938", "0.61863816", "0.61861706", "0.6174373", "0.6167726", "0.61453515", "0.61388654", "0.6111685", "0.6102436", "0.609...
0.8077523
0
Tests if failed transactions are being created.
Проверяет, создаются ли неудачные транзакции.
public function testFailedTransactions() { // Prepare $user = factory('App\User')->create(['password' => Hash::make('laravel-shop')]); $bool = Auth::attempt(['email' => $user->email, 'password' => 'laravel-shop']); $cart = App\Cart::current() ->add(['sku' => '0001', 'price' => 1.99]) ->add(['sku' => '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function HasFailedTrans() {}", "public static function fail_transaction()\n {\n if (!self::hasMasterDB()) {\n return;\n }\n\n self::getMasterDB()->FailTrans();\n }", "public function hasFailed();", "public function _transaction_status_check()\n {\n if (!$this->...
[ "0.69478875", "0.6739031", "0.6566308", "0.6480289", "0.64404553", "0.63927454", "0.638956", "0.6377925", "0.6365319", "0.6272036", "0.62243897", "0.6218126", "0.6202211", "0.61805546", "0.61805546", "0.6153341", "0.61309755", "0.61016524", "0.6085042", "0.608083", "0.6071926...
0.7613613
0
Gets a singleton instance of AdsUtilityRegistry.
Получает одиночный экземпляр AdsUtilityRegistry.
public static function getInstance() { if (AdsUtilityRegistry::$instance === null) { AdsUtilityRegistry::$instance = new AdsUtilityRegistry(); } return AdsUtilityRegistry::$instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getInstance() {\n if (is_null(self::$instance)) {\n self::$instance = new Registry();\n }\n\n return self::$instance;\n }", "public static function getInstance()\n {\n if (null === self::$_instance) {\n self::$_instance = new Erfurt_Wrapper_...
[ "0.7134761", "0.70926714", "0.70070636", "0.68938255", "0.6865972", "0.6787268", "0.6787268", "0.67415017", "0.6689432", "0.6570779", "0.6468434", "0.6364053", "0.6343517", "0.6302693", "0.62996197", "0.6286468", "0.6283082", "0.62771463", "0.6276897", "0.62636983", "0.626369...
0.90742975
0
Adds a new ads utility to the ads utilities list.
Добавляет новый инструмент для рекламы в список инструментов для рекламы.
public function addUtility($adsUtility) { $this->adsUtilities[$adsUtility] = $adsUtility; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addads() \n\t{\n\t\t$view = $this->getView('ads');\n\t\t// Get/Create the model\n\t\tif ($model = $this->getModel('addads'))\n\t\t{\n\t\t\t//Push the model into the view (as default)\n\t\t\t//Second parameter indicates that it is the default model for the view\n\t\t\t$view->setModel($model, true);\n\t\t}\...
[ "0.5385179", "0.5314983", "0.5279856", "0.5146267", "0.5079267", "0.4978246", "0.49534488", "0.49397013", "0.49397013", "0.48824134", "0.4882009", "0.4877826", "0.48247582", "0.47846347", "0.47846347", "0.47846347", "0.47723496", "0.47723496", "0.4743089", "0.4708489", "0.465...
0.80423445
0
allPortletEntries function This function is used to get all portlet enteries
Функция allPortletEntries. Эта функция используется для получения всех записей портлета
public function allPortletEntries() { try { $client = new SoapClient($this->PORTLETS_WHDL); $res = $client->getAllPortlet(); return $res; } catch (Zend_Exception $e) { var_dump($e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllLeaflets(){\n\t\t//$queryEbsLeaflets = db_select('ebs_leaflets_final_static', 'elf')\n\t\t$queryEbsLeaflets = db_select('ebs_leaflets_final', 'elf')\n\t\t->fields('elf');\n\t\t//->condition('leaflet_code', 'L16302');//Plastering\n\t\t//->range(0,10);\n\t\t$results = $queryEbsLeaflets->execute();\n\t...
[ "0.6176444", "0.604833", "0.5811748", "0.5711449", "0.5634922", "0.5633302", "0.5483635", "0.54601353", "0.5457423", "0.5445203", "0.5368463", "0.53073496", "0.53073496", "0.53073496", "0.5245478", "0.52420926", "0.5237719", "0.5219111", "0.5219111", "0.5219111", "0.5219111",...
0.79756707
0
userPortletEntries function This function is used to get all portlet enteries selected by user
Функция userPortletEntries. Эта функция используется для получения всех портлет-записей, выбранных пользователем
public function userPortletEntries() { try { $client = new SoapClient($this->USER_PORTLETS_WHDL); $res = $client->getUserPortlet(array('userid' => $_SESSION['User']['id'])); return $res; } catch (Zend_Exception $e) { var_dump($e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allPortletEntries() {\n try {\n $client = new SoapClient($this->PORTLETS_WHDL);\n $res = $client->getAllPortlet();\n return $res;\n } catch (Zend_Exception $e) {\n var_dump($e);\n }\n }", "public function get_all_hotspot_user(){\...
[ "0.67762697", "0.57619816", "0.5582212", "0.54887474", "0.5416936", "0.5363085", "0.5272938", "0.5263771", "0.5249547", "0.5231821", "0.52012074", "0.51996034", "0.5195534", "0.51937926", "0.5169772", "0.51692915", "0.5168951", "0.5033899", "0.5026059", "0.50259656", "0.50164...
0.7723702
0
getResolutions function This function is used to get all resolutions
Функция getResolutions. Эта функция используется для получения всех разрешений
public function getResolutions() { try { $client = new SoapClient($this->RESOLUTION_WSDL); $res = $client->findAllActiveResolution(); return $res; } catch (Zend_Exception $e) { var_dump($e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getResolutions(){\n\t\t\t$result = ScreenResolution::select('screen_size_id', DB::raw('CONCAT( width, \"x\", height ) AS resolution') )\n\t\t\t\t\t\t\t\t\t ->where('status', '=', 1)\n\t\t\t\t\t\t\t\t\t ->get();\n\t\t\treturn $result;\n\t\t}", "public function getResolution();", "privat...
[ "0.80982244", "0.6909432", "0.6531623", "0.63554764", "0.6345761", "0.6285803", "0.56788623", "0.56481916", "0.5644111", "0.5577921", "0.54016495", "0.53626347", "0.53626347", "0.53626347", "0.53626347", "0.5349729", "0.53468484", "0.5334881", "0.5330813", "0.5326807", "0.532...
0.75999534
1
getContainerById function This function is used to get container by id
Функция getContainerById. Эта функция используется для получения контейнера по идентификатору
public function getContainerById($id) { try { $client = new Zend_Soap_Client($this->CONTAINER_WSDL_URI); $options = array('soap_version' => SOAP_1_1, 'encoding' => 'ISO-8859-1', ); $client->setOptions($options); $client->action = 'findB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function apiContainer($id){\n try{\n $query_id = Crypt::decryptString($id);\n } catch (DecryptException $e) {\n return 'UPD-E0002';\n }\n \n $container = GroupContainer::find($query_id);\n $container->crypt = $id;\n return $container;\n ...
[ "0.7313941", "0.72630984", "0.6917761", "0.6917761", "0.6917761", "0.6917761", "0.6917761", "0.6870776", "0.6857306", "0.68522614", "0.6818698", "0.66124433", "0.65994334", "0.6469962", "0.6407047", "0.63505465", "0.6324328", "0.6303207", "0.6069069", "0.6059326", "0.6023313"...
0.7747591
0
getPortletById function This function is used to get portlet by id
Функция getPortletById. Эта функция используется для получения портлета по идентификатору
public function getPortletById($id) { try { $client = new Zend_Soap_Client($this->PORTLETS_WSDL); $options = array('soap_version' => SOAP_1_1, 'encoding' => 'ISO-8859-1', ); $client->setOptions($options); $client->action = 'findByPortle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContainerPortletById($id) {\n try {\n $client = new Zend_Soap_Client($this->LAYOUT_PORTLET_WSDL);\n $options = array('soap_version' => SOAP_1_1,\n 'encoding' => 'ISO-8859-1',\n );\n $client->setOptions($options);\n $cli...
[ "0.69989693", "0.6604329", "0.6031833", "0.5862441", "0.5812298", "0.5744732", "0.55939275", "0.5591593", "0.550928", "0.54824084", "0.54546523", "0.54375875", "0.541807", "0.54007286", "0.5387358", "0.5378726", "0.5368209", "0.533004", "0.53278387", "0.53278387", "0.53278387...
0.8178555
0
getContainerPortletById function This function is used to get container assigned portlet
Функция getContainerPortletById. Эта функция используется для получения портлета, назначенного контейнеру
public function getContainerPortletById($id) { try { $client = new Zend_Soap_Client($this->LAYOUT_PORTLET_WSDL); $options = array('soap_version' => SOAP_1_1, 'encoding' => 'ISO-8859-1', ); $client->setOptions($options); $client->action ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPortletById($id) {\n try {\n $client = new Zend_Soap_Client($this->PORTLETS_WSDL);\n $options = array('soap_version' => SOAP_1_1,\n 'encoding' => 'ISO-8859-1',\n );\n $client->setOptions($options);\n $client->action = '...
[ "0.6206179", "0.60682017", "0.59871316", "0.594841", "0.5863705", "0.56761324", "0.56761324", "0.56761324", "0.56761324", "0.56761324", "0.55957335", "0.5563759", "0.55250055", "0.5523886", "0.54104036", "0.5404021", "0.53600514", "0.5324838", "0.53228927", "0.52966577", "0.5...
0.7637612
0
getLayoutList function This function is used to get layout list
Функция getLayoutList. Эта функция используется для получения списка размещений
public function getLayoutList() { try { $client = new Zend_Soap_Client($this->LAYOUT_WSDL_URI); $options = array('soap_version' => SOAP_1_1, 'encoding' => 'ISO-8859-1', ); $client->setOptions($options); $client->action = 'findAllActiveL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLayouts();", "public function getThemeLayouts();", "public function getLayout();", "public function getLayouts()\r\n {\r\n return $this->layouts;\r\n }", "public function getLayouts() {\n $path = APPPATH.'opencnab/layouts';\n $diretorio = dir($path);\n\n ...
[ "0.74406", "0.67492497", "0.66446334", "0.66443837", "0.6602989", "0.6568083", "0.64953923", "0.64392877", "0.63960826", "0.6287807", "0.61981934", "0.6124567", "0.6124254", "0.61240125", "0.60523856", "0.60431004", "0.6041389", "0.6018977", "0.6004391", "0.5986772", "0.59623...
0.7614369
0
getLayoutById function This function is used to get layout by id
Функция getLayoutById. Эта функция используется для получения разметки по идентификатору
public function getLayoutById($id) { try { $client = new Zend_Soap_Client($this->LAYOUT_WSDL_URI); $options = array('soap_version' => SOAP_1_1, 'encoding' => 'ISO-8859-1', ); $client->setOptions($options); $client->action = 'findByLayou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getLayout($id='default'){\n\t\tinclude($this->layoutsPath.'/'.$id.'.php');\n\t}", "public function get_layout($id)\n\t{\n\t\treturn $this->get_single($id);\n\t}", "function getLayout($id){\r\n \r\n $transform = ucfirst(str_replace('-', \"_\", $id));\r\n $layout_name = \"\\\\LK...
[ "0.7934728", "0.7855377", "0.7808574", "0.71562916", "0.6929441", "0.69128704", "0.6854917", "0.6632366", "0.6515695", "0.64206934", "0.63828343", "0.62927973", "0.6284169", "0.62073284", "0.6178479", "0.6165249", "0.6155828", "0.6104079", "0.60934794", "0.60568744", "0.60456...
0.8035609
0
getSection function This function is used to get section entries
Функция getSection. Эта функция используется для получения записей секции
public function getSection() { try { $client = new SoapClient($this->SECTION_WSDL); $res = $client->findAllActiveSection(); return $res; //print_r($res); } catch (Zend_Exception $e) { var_dump($e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function spr_get_sections() {\n\tglobal $spr_sql_fields;\n\n\t$sql_tables = safe_pfx('txp_section');\n\t$rs = safe_query(\"SELECT \".$spr_sql_fields.\" FROM \".$sql_tables.\" WHERE name != 'default' ORDER BY name\");\n\twhile ($a = nextRow($rs)) {\n\t\textract($a); // set 'name','title','parent' etc in $a\n\t\t$ou...
[ "0.7111836", "0.70920223", "0.70709133", "0.7065703", "0.7050888", "0.703154", "0.6953231", "0.69414365", "0.6926791", "0.69164747", "0.6908541", "0.6907127", "0.69016635", "0.6859368", "0.68413264", "0.6777993", "0.67745495", "0.6727927", "0.66207397", "0.65879625", "0.65858...
0.7470858
0
getPortlets function This function is used to get portlets
Функция getPortlets. Эта функция используется для получения портлетов
public function getPortlets() { try { $client = new SoapClient($this->PORTLETS_WSDL); $res = $client->findAllActivePortlets(); return $res; } catch (Zend_Exception $e) { var_dump($e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allPortletEntries() {\n try {\n $client = new SoapClient($this->PORTLETS_WHDL);\n $res = $client->getAllPortlet();\n return $res;\n } catch (Zend_Exception $e) {\n var_dump($e);\n }\n }", "public function getPortlets($objModule)\...
[ "0.69863886", "0.69406146", "0.6893998", "0.6561756", "0.61531913", "0.6107161", "0.59942466", "0.59285027", "0.5887251", "0.582165", "0.5774122", "0.57290596", "0.56584764", "0.56342655", "0.5625925", "0.561996", "0.561996", "0.561996", "0.561996", "0.5273533", "0.5258295", ...
0.7519339
0
Show View New Satker
Показать вид New Satker
public function viewNewSatker() { $id_account = Auth::id(); $check_access = Acces::where('user', $id_account) ->first(); if($check_access->kelola_akun == 1){ return view('manage_satker.new_satker'); }else{ return back(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showView()\n\t{\n\t\ttrigger_error(\"showView() is not implemented\");\n\t}", "public function showNew()\n {\n\n return view('backend.floors.new');\n }", "public function view()\n\t{\n\t\t// TODO Implement\t\n\t}", "public function createView();", "public function view() {\r\n\r\n\t}"...
[ "0.6980852", "0.6954369", "0.6946453", "0.69158417", "0.6882767", "0.68267924", "0.67632693", "0.67377275", "0.6723841", "0.6677313", "0.6647056", "0.6647056", "0.6647056", "0.6636263", "0.66105044", "0.660442", "0.6596854", "0.6594862", "0.6594862", "0.65854454", "0.6581243"...
0.70965886
0
This covers the case when: Custom choice type added after a choice type. Custom type is expanded. Custom type replaces 'choices' normalizer with a custom one. In this case, custom type should not inherit labels from the first added choice type.
Это охватывает случай, когда: добавлен пользовательский тип выбора после типа выбора. Пользовательский тип расширен. Пользовательский тип заменяет нормализатор 'choices' на кастомный. В этом случае пользовательский тип не должен наследовать метки от первого добавленного типа выбора.
public function testCustomChoiceTypeDoesNotInheritChoiceLabels() { $builder = $this->factory->createBuilder(); $builder->add('choice', static::TESTED_TYPE, [ 'choices' => [ '1' => '1', '2' => '2', ], ]); $builder->add('subChoice...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testChoiceRowWithCustomBlock()\n {\n $form = $this->factory->createNamedBuilder('name_c', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType', 'a', [\n 'choices' => ['ChoiceA' => 'a', 'ChoiceB' => 'b'],\n 'expanded' => true,\n ])\n ...
[ "0.6111748", "0.55591875", "0.5556261", "0.5527538", "0.53797257", "0.52370995", "0.5233238", "0.51429194", "0.5089764", "0.50459105", "0.5021706", "0.5017269", "0.49889198", "0.49784356", "0.4976623", "0.4967231", "0.49495542", "0.49495542", "0.49294254", "0.49079007", "0.48...
0.784494
0
Checks if discount applies
Проверяет, применяется ли скидка
public function isApplicable() : bool{ $items = $this->order->getOrderItems(); foreach($items as $item){ // checks every item for order if the quantity is >= $products_nr if($item["quantity"] >= $this->products_nr){ $tmp_item = $this->order->getProductById($i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasDiscount(){\n return $this->_has(9);\n }", "protected function calculateDiscount() : void{\r\n $percentage = ($this->discounted_value * 100) / $this->order->getTrueTotal();\r\n $new_total = $this->order->getTrueTotal() - $this->discounted_value;\r\n\r\n $this->orde...
[ "0.7618146", "0.7270947", "0.72340137", "0.715524", "0.71517646", "0.71249115", "0.70885605", "0.706408", "0.7057738", "0.7048481", "0.7021707", "0.69795144", "0.6943336", "0.6913798", "0.6840746", "0.68282205", "0.66541547", "0.66393834", "0.66211575", "0.6599872", "0.656426...
0.73404837
1
Calculate discount values For this type of discount, it calculates the discount percentage and total value based on what the customer would have paid if the free items were payed also
Вычислить значения скидки Для этого типа скидки вычисляется процент скидки и общая сумма, исходя из того, сколько бы клиент заплатил, если бы бесплатные товары были оплачены также
protected function calculateDiscount() : void{ $percentage = ($this->discounted_value * 100) / $this->order->getTrueTotal(); $new_total = $this->order->getTrueTotal() - $this->discounted_value; $this->order_discount_value = $this->discounted_value; $this->order_discount_percentage ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalDiscountAmount();", "public function getTotalDiscount(): float;", "public function getDiscountAmount();", "public function calculate_discount_percentage() {\n extract($_POST);\n $disc_rate = ($discount_amount / $class_fees) * 100;\n $fees_due = $class_fees - $disc...
[ "0.73960626", "0.7374415", "0.71881676", "0.7114153", "0.6973156", "0.6847869", "0.6844876", "0.68253005", "0.67820567", "0.67662627", "0.67467326", "0.6726075", "0.672154", "0.67117846", "0.67021674", "0.66355133", "0.66330737", "0.66272503", "0.66185063", "0.65991306", "0.6...
0.7469309
0
The index page, locate to the browse page.
Главная страница, перейдите на страницу просмотра.
public function index() { $this->locate(inlink('browse')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n { \n $this->locate(inlink('browse'));\n }", "public function indexAction()\n {\n $this->_forward($this->_getBrowseAction());\n }", "public function index()\n {\n return view('browse::index');\n }", "private function indexAction()\n {\n ...
[ "0.79717267", "0.7480382", "0.7168533", "0.71246254", "0.70695394", "0.70135677", "0.7005812", "0.6942369", "0.683793", "0.6764486", "0.6635541", "0.6625695", "0.65831625", "0.6521389", "0.65118533", "0.6490293", "0.64698666", "0.64491755", "0.6427759", "0.64161557", "0.64073...
0.81339765
1
Ajax get depositor of customer.
Ajax получает плательщика клиента.
public function ajaxGetDepositor($customerID) { $customer = $this->loadModel('customer')->getByID($customerID); if(!$customer) die(); die($customer->depositor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getdepositorDeatils() {\n $select = $this->select()\n ->from(array('wr' => 'withdrawal_request'))\n ->setIntegrityCheck(false)\n ->join(array('u' => 'users'), 'u.user_id = wr.user_id', array(\"u.user_name\"))\n ->where('wr.status =?...
[ "0.6361772", "0.6106198", "0.6021105", "0.5990199", "0.5872384", "0.58593726", "0.5815851", "0.5694056", "0.5691081", "0.5619118", "0.56175154", "0.5585047", "0.55311126", "0.5492871", "0.5465653", "0.5449429", "0.5435644", "0.5433026", "0.53804153", "0.5361763", "0.53282577"...
0.77174145
0
get all metas by product id
получить все метаданные по идентификатору продукта
public function getAllMetasByProductId($product_id){ $metas = self::model()->findAllByAttributes(array('meta_product_id'=>$product_id)); return $metas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetAll()\n {\n $this->abrir_conexion();\n $sql = \"SELECT * FROM metas order by meta_id\";\n $resultado = mysqli_query($this->db, $sql);\n\n while ($row = mysqli_fetch_assoc($resultado)) {\n $datos[] = $row;\n }\n\n return $datos;\n $t...
[ "0.61366117", "0.5819989", "0.58198357", "0.581712", "0.5810902", "0.5800615", "0.5780671", "0.57743186", "0.5771443", "0.57713085", "0.5757353", "0.57418656", "0.5723199", "0.5714585", "0.5708035", "0.5689784", "0.5682461", "0.56792915", "0.56739163", "0.56724083", "0.566842...
0.7990064
0
get profile by term id
получить профиль по идентификатору термина
public function getProfileByTerm($term_id){ $term_id = intval($term_id); $profiles = self::model()->findAllByAttributes(array('term_id'=>$term_id)); return $profiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_term_by_id_only($term, $output = OBJECT, $filter = 'raw') \n{\n global $wpdb;\n $null = null;\n\n if(empty($term)) \n {\n $error = new WP_Error('invalid_term', __('Empty Term'));\n return $error;\n }\n\n if (is_object($term) && empty($term->filter)) \n {\n wp_...
[ "0.6048984", "0.58989257", "0.5848117", "0.58226085", "0.58089286", "0.5793495", "0.5746491", "0.5742494", "0.56389517", "0.5634547", "0.561424", "0.5608936", "0.5608586", "0.5608173", "0.554196", "0.54852825", "0.5465611", "0.5425418", "0.53936136", "0.5373281", "0.5351662",...
0.8214183
0
Get a default directory value, if any is available
Получить значение по умолчанию для каталога, если оно доступно
public function getDefaultDirectory(): string|null;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultFolder() ;", "public function getDefaultFolder() {}", "public function getDefaultFolder() {}", "public function getDirectoryVar();", "public function getDefaultDirectoryName()\r\n {\r\n // make sure the default directory is configured\r\n $dir = $this->configuration['def...
[ "0.75598466", "0.737822", "0.73770374", "0.69499046", "0.6821692", "0.67223114", "0.6644269", "0.6623192", "0.66207135", "0.65349984", "0.6511435", "0.6482287", "0.64784783", "0.6465363", "0.63043064", "0.626823", "0.6229162", "0.6209954", "0.6208406", "0.61950034", "0.617603...
0.78473544
0
Returns latest handled event.
Возвращает последнее обработанное событие.
public function getLastEvent() { return $this->_lastEvent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastEvent()\n\t{\n\t\treturn App_Model_Event_Mapper::getInstance()->getLastEventForAction($this->_actionId);\n\t}", "final public function getLastEvent()\n\t\t{\n\n\t\t\treturn $this->getEventByTimeAlgo(\"last_event\");\n\n\t\t}", "public function getLastEvent()\n {\n $events = $th...
[ "0.7083937", "0.68813014", "0.67795074", "0.64995176", "0.6392295", "0.6388409", "0.6358545", "0.62646884", "0.6257622", "0.61114824", "0.61114824", "0.61114824", "0.6091731", "0.6026872", "0.60109454", "0.5905975", "0.5821422", "0.5802755", "0.5799888", "0.5789211", "0.56929...
0.7270454
0
RemoveDuplicatedLinesByString This function removes all duplicated lines of the given string.
RemoveDuplicatedLinesByString Эта функция удаляет все дублирующиеся строки заданного текста.
function RemoveDuplicatedLinesByString($Lines, $IgnoreCase=false, $NewLine="\n"){ if (is_array($Lines)) $Lines = implode($NewLine, $Lines); $Lines = explode($NewLine, $Lines); $LineArray = array(); $Duplicates = 0; // Go trough all lines of the given file for ($Line=0; $Line < count($Lines); $Line++){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RemoveDuplicatedLines($Filepath, $IgnoreCase=false, $NewLine=\"\\n\"){\n if (!file_exists($Filepath)){\n $ErrorMsg = 'RemoveDuplicatedLines error: ';\n $ErrorMsg .= 'The given file ' . $Filepath . ' does not exist!';\n die($ErrorMsg);\n }\n $Content = file_get_contents($Filepath);\n $Content ...
[ "0.59280765", "0.5641486", "0.54177105", "0.5278075", "0.52758557", "0.5216487", "0.5210474", "0.5115459", "0.50858736", "0.50508696", "0.50501883", "0.50501883", "0.49964908", "0.49439558", "0.48893446", "0.48761228", "0.4866521", "0.48469144", "0.48248908", "0.48046523", "0...
0.7064799
0
Provides unique string. Can be used to compare or aggregate charges.
Предоставляет уникальную строку. Может использоваться для сравнения или агрегации зарядов.
public function getUniqueString(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function value(): string\n {\n return uniqid(prefix: 'dsafsdaf-');\n }", "function cjpopups_unique_string(){\n\t$unique_string = sprintf(\n\t\t\"%04s%03s%s\", base_convert(mt_rand(0, pow(36, 4) - 1), 10, 36), base_convert(mt_rand(0, pow(36, 3) - 1), 10, 36), substr(sha1(md5(strtotime(date('Y-m-d H:i:...
[ "0.7504234", "0.7376836", "0.7351319", "0.71266276", "0.70953906", "0.7089753", "0.7088121", "0.70299673", "0.70288724", "0.69950056", "0.69773144", "0.6973052", "0.69697887", "0.6964284", "0.6929929", "0.6928505", "0.6916197", "0.6910288", "0.6862804", "0.68600863", "0.68551...
0.83400697
0
wof_utils_find_id checks a sequence of possible root directories until it finds an absolute path for the WOF record. Returns null if no existing file was found. See also: wof_utils_id2abspath
wof_utils_find_id проверяет последовательность возможных корневых директорий, пока не найдет абсолютный путь для записи WOF. Возвращает null, если не было найдено существующего файла. См. также: wof_utils_id2abspath
function wof_utils_find_id($root_dirs, $id, $more=array()){ foreach ($root_dirs as $root) { $path = wof_utils_id2abspath($root, $id, $more); if (file_exists($path)) { return $path; } } return null; // Not found! }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetVideoPath($id, $find = false)\r\n{\r\n $path = \"results/video/$id\";\r\n if( strpos($id, '_') == 6 )\r\n {\r\n $parts = explode('_', $id);\r\n\r\n // see if we have an extra level of hashing\r\n $dir = $parts[1];\r\n if( count($parts) > 2 && strlen($parts[2]))\r\n ...
[ "0.5309187", "0.52888405", "0.5240357", "0.515072", "0.5119805", "0.51019037", "0.5058278", "0.50544035", "0.50343734", "0.50131696", "0.4964622", "0.49068168", "0.4871403", "0.48654434", "0.48481137", "0.48275697", "0.48145744", "0.4789864", "0.47747964", "0.4764606", "0.475...
0.7364819
0
Get the queued information for all pending signups.
Получите информацию о заданных записях для всех ожидающих регистрации.
abstract public function getQueuedSignups();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function queued()\n {\n return $this->memory->get('orchestra.publisher.queue', []);\n }", "private function getPendingEvents ()\n {\n return EventQueue::pending()->with('event_detail')\n ->orderBy('scheduled_start_time', 'asc')\n ->limit(100)\n ->get...
[ "0.66504604", "0.6465695", "0.6410548", "0.62923247", "0.62330604", "0.6206414", "0.613877", "0.5972018", "0.59293026", "0.5917628", "0.5915809", "0.58557093", "0.5829299", "0.5707008", "0.5630875", "0.5630875", "0.5624456", "0.5590666", "0.5578604", "0.55750173", "0.5557389"...
0.8040564
0
Remove a queued signup.
Удалить запланированную регистрацию.
abstract public function removeQueuedSignup($username);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _queueSignup($signup);", "public function destroy(signUp $signUp)\n {\n //\n }", "public function removeMe()\n {\n $this->current_signal=self::SIGNAL_NONE;\n $this->sigtable=[];\n Bot::remove($this->bot_slot,0);\n }", "public function remove...
[ "0.6350057", "0.619954", "0.6091219", "0.5895107", "0.5894864", "0.5843646", "0.57947135", "0.5791942", "0.5791942", "0.5791942", "0.5791942", "0.5789654", "0.57308805", "0.56527686", "0.5625517", "0.56191975", "0.5613924", "0.5568349", "0.55519533", "0.55058306", "0.54833055...
0.72926486
0
Description: This function put the tags css and js per each module and the libs of the framework Example: $array = putHEAD_MODULE_HTML('calendar'); Developer: Eduardo Cueva email:
Описание: Эта функция добавляет теги css и js для каждого модуля и библиотеки фреймворка Пример: $array = putHEAD_MODULE_HTML('calendar'); Разработчик: Эдуардо Кувеа email:
private function putHEAD_MODULE_HTML($menuLibs) // add by eduardo { // get the header with scripts and links(css) $documentRoot = $_SERVER["DOCUMENT_ROOT"]; //STEP 1: include file of module $directory = "$documentRoot/modules/".$menuLibs; $HEADER_MODULES = array(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildHeadMarkup(){\n\n echo file_get_contents(\"head/home.html\");\n\n $this->head_script_tags = \"\";\n\n foreach( $this->head_scripts as $value ){\n\n $this->head_script_tags .= \"<script src=\\\"\" . $value . \"\\\"></script>\";\n\n }\n\n $this->head ...
[ "0.65041566", "0.63861233", "0.63532317", "0.63205826", "0.6289136", "0.626311", "0.6224272", "0.6216721", "0.62098813", "0.61856943", "0.6180138", "0.617964", "0.61727595", "0.6143129", "0.610814", "0.6062575", "0.603623", "0.6031179", "0.5999173", "0.59975046", "0.59922177"...
0.7352971
0
Description: This function Obtain all name files into of a directory where $type is the extension of the file Example: $array = obtainFiles('/var/www/html/modules/calendar/themes/default/js/','js'); Developer: Eduardo Cueva email:
Описание: Эта функция получает все имена файлов в директории, где $type — это расширение файла. Пример: $array = obtainFiles('/var/www/html/modules/calendar/themes/default/js/','js'); Разработчик: Эдуардо Кувеа email:
private function obtainFiles($dir,$type){ $files = glob($dir."/{*.$type}",GLOB_BRACE); $names =""; foreach ($files as $ima) $names[]=array_pop(explode("/",$ima)); if(!$names) return false; return $names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_all_files($some_folder,$type){\n $rs = [];\n if ($handle = opendir($some_folder)) {\n while (false !== ($entry = readdir($handle))) {\n if ($entry != \".\" && $entry != \"..\") {\n $pathinfo = pathinfo($entry);\n if(!empty($...
[ "0.7345774", "0.7028902", "0.6906481", "0.6832486", "0.6700525", "0.65779394", "0.64625704", "0.64625704", "0.64625704", "0.64586926", "0.6440647", "0.6434251", "0.64283216", "0.6407517", "0.6405298", "0.6358711", "0.6358143", "0.6331347", "0.63220847", "0.62803584", "0.62771...
0.7753094
0
Log a user into the application by their ID
Авторизуйте пользователя в приложении по их ID
static function loginUsingId($id) { $session = App::get('session'); $user = DB::load('users', $id); if($user->group > 0) { $user['rights'] = self::loadRights((int)$user->group); } self::$user = $user; $session->set('user', self::$user); self::createSession($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loginUsingId($id)\n {\n Auth::user();\n $user = Auth::loginUsingId($id,true);\n if($user)\n {\n return redirect('/init_check');\n }else{\n echo \"unable to login\";\n }\n }", "public static function logIn($userId)\r\n {\r\n ...
[ "0.7126813", "0.6801682", "0.6788236", "0.6652875", "0.66079175", "0.6563919", "0.65605795", "0.65080506", "0.6479399", "0.639023", "0.6388826", "0.6388782", "0.6387727", "0.6381826", "0.6379136", "0.63717264", "0.6370282", "0.6367987", "0.6361378", "0.6347572", "0.63252354",...
0.73634773
0
Creates a new Profile model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый модель профиля. Если создание успешно, браузер будет перенаправлен на страницу просмотра.
public function actionProfilecreate() { $model = new Profile(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->user_id]); } else { return $this->render('profilecreate', [ 'model' => $m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n\t{\n\t\t$model=new Profile;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Profile']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Profile'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(a...
[ "0.8568201", "0.79260474", "0.7795949", "0.7585542", "0.7562291", "0.7512637", "0.74405026", "0.74405026", "0.74405026", "0.74405026", "0.7399002", "0.7329287", "0.7273033", "0.7268309", "0.72066015", "0.7147042", "0.7115441", "0.7107603", "0.7102133", "0.709844", "0.70739806...
0.85188234
1
Process functions for hbmode theme. Process entry.
Функции обработки для темы hbmode. Входная точка обработки.
function theme_hbmode_process_entry($app, &$entry) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function display_themes()\n {\n }", "function preview_theme()\n {\n }", "public function postApplyTheme()\n {\n //...\n }", "function ahs_callposts_activate(){\n add_option('ahscp_css', \".callposts_2col .post { float: left; margin-right: 20px; border-bottom: 1px solid #999; overf...
[ "0.6006836", "0.5805936", "0.57955307", "0.57039696", "0.5686233", "0.55796105", "0.5527659", "0.5502935", "0.54734594", "0.54650664", "0.54466856", "0.54289013", "0.5403688", "0.53966403", "0.5392407", "0.5384376", "0.5378697", "0.53729475", "0.5356937", "0.53414154", "0.532...
0.7609848
0
Creates a payment method with the given payment details.
Создает метод оплаты с указанными деталями платежа.
public function createPaymentMethod(PaymentMethodInterface $payment_method, array $payment_details);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createPayment()\n\t{\n\n\t}", "public function createPayment(array $details): Payment\n {\n return $this->payments()->create($details);\n }", "protected function createPayment() {\n /* @var \\Drupal\\commerce_payment\\Plugin\\Commerce\\PaymentGateway\\PaymentGatewayInterface $pa...
[ "0.74206847", "0.71568614", "0.69920665", "0.69359213", "0.6576943", "0.654405", "0.6537641", "0.65367395", "0.63170093", "0.63028896", "0.6230322", "0.6215662", "0.6182721", "0.61779064", "0.6114539", "0.6081557", "0.60743964", "0.6072241", "0.6044847", "0.60441643", "0.6016...
0.8091649
0
Fetch Initial reviews data to display via DataTables
Получить начальные данные отзывов для отображения через DataTables
public function fetchData() { $reviews = Review::orderBy('created_at', 'desc')->get(); return Datatables::of($reviews)->addColumn('actions', function ($review) { return '<button class="btn btn-xs btn-default view" id="' . $review->id . '"><i class="glyphicon glyphicon-eye-open">...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReviewData() {\n\t\t//$stat = Statistic::select(array('statistic.id', 'statistic.created_at', 'statistic.ip_address','posts.title'))\n\t\t//->join('posts','posts.id','=','statistic.post_id')\n\t\t//->join('category','statistic.category_id','=','category.id')->groupBy('statistic.created_at'); \n\...
[ "0.7097132", "0.70095176", "0.69412005", "0.6419252", "0.64149517", "0.6399225", "0.6312428", "0.6096311", "0.6028731", "0.5926043", "0.58523345", "0.5815846", "0.57626766", "0.5747311", "0.5692843", "0.5645172", "0.56260407", "0.5623575", "0.56219614", "0.5580744", "0.556410...
0.7632372
0
Get all of the team's users including its owner.
Получить всех пользователей команды, включая её владельца.
public function allUsers(): Collection { return $this->users->merge([$this->owner]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allUsers()\n {\n return $this->users->merge([$this->owner]);\n }", "public function getUsers()\n {\n $em = $this->container->get('doctrine')->getEntityManager();\n $builder = $em->getRepository('AppWebBundle:User')->createQueryBuilder('u');\n \n re...
[ "0.7976052", "0.7341824", "0.7134687", "0.70949966", "0.7062962", "0.70589393", "0.7051689", "0.7049509", "0.7011225", "0.69923085", "0.6992027", "0.69452274", "0.692693", "0.6912979", "0.6901021", "0.6888882", "0.6878683", "0.68554854", "0.683215", "0.6818103", "0.6815784", ...
0.7534283
1
Determine if the given user belongs to the team.
Определите, принадлежит ли заданный пользователь к команде.
public function hasUser($user): bool { return $this->users->contains($user) || $user->ownsTeam($this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isTeamAdmin($team_id, $user_id)\n {\n \t$repo = App::make(TeamMemberRepository::class);\n \t\n $member = $repo->teamMember($user_id, $team_id);\n\n if (! $member) {\n return false;\n }\n\n return $repo->using($member)->isAdmin();\n }", "function ...
[ "0.6722286", "0.66832703", "0.6583112", "0.6482696", "0.6431472", "0.6383294", "0.6357043", "0.6331604", "0.6299012", "0.62829864", "0.62466127", "0.62406075", "0.62260306", "0.6211696", "0.6194759", "0.61733305", "0.61700094", "0.6157626", "0.6135846", "0.6096666", "0.608362...
0.7189285
0
Determine if the given user has the given permission on the team.
Определите, имеет ли указанный пользователь указанное разрешение на команде.
public function userHasPermission($user, string $permission): bool { return $user->hasTeamPermission($this, $permission); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isGranted($userOrId, $permission);", "private function userHasAccess()\n {\n $required_perm = $this->route['perm'];\n $user_group = $_SESSION['user_group'];\n if ($required_perm == 'all') {\n return true;\n } elseif ($user_group == $required_perm) {\n ...
[ "0.77348423", "0.7286303", "0.7112272", "0.7075129", "0.7074393", "0.6976545", "0.6976545", "0.6976545", "0.6976545", "0.6909379", "0.69077575", "0.6901391", "0.68962604", "0.6829901", "0.68271255", "0.6822575", "0.6789734", "0.6729686", "0.6590225", "0.65776384", "0.6543744"...
0.75705945
1
Remove the given user from the team.
Удалить заданного пользователя из команды.
public function removeUser($user): void { if ($user->current_team_id === $this->id) { $user->forceFill([ 'current_team_id' => null, ])->save(); } $this->users()->detach($user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeTeamUser($user)\n {\n if ($user->current_team_id === $this->id) {\n $user->forceFill([\n 'current_team_id' => null,\n ])->save();\n }\n\n $this->users()->detach($user);\n }", "private function removeTestUser(): void\n {\n ...
[ "0.79755574", "0.75431055", "0.75427365", "0.73586243", "0.7262876", "0.7156294", "0.71549106", "0.7125897", "0.70644796", "0.6986967", "0.6907574", "0.68884015", "0.68234956", "0.6784968", "0.6777039", "0.6760495", "0.67104954", "0.6618967", "0.65640634", "0.6506193", "0.649...
0.77595353
1
List of columns in this table. Order of columns matches the display order. Generated from protobuf field repeated .google.area120.tables.v1alpha1.ColumnDescription columns = 3;
Список столбцов в этой таблице. Порядок столбцов соответствует порядку отображения. Сгенерировано из поля protobuf field repeated .google.area120.tables.v1alpha1.ColumnDescription columns = 3;
public function setColumns($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Area120\Tables\V1alpha1\ColumnDescription::class); $this->columns = $arr; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setColumns($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Eolymp\\Typewriter\\Block\\Table\\Column::class);\n $this->columns = $arr;\n\n return $this;\n }", "public function setColumns($var)\n {\n $arr = ...
[ "0.7312351", "0.72562695", "0.7049908", "0.70408726", "0.7016782", "0.7005243", "0.6995957", "0.69806916", "0.69617254", "0.6944253", "0.69377893", "0.68655807", "0.683925", "0.683925", "0.683925", "0.683925", "0.683925", "0.683925", "0.683925", "0.683925", "0.683925", "0.6...
0.7588614
0
Gets the Composer object.
Получает объект Composer.
public function getComposer() { if (!$this->composer) { $this->composer = Factory::create($this->io(), NULL, TRUE); } return $this->composer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getComposer(): Composer\n {\n return $this->composer;\n }", "public static function getComposer();", "private function get_composer() {\n\n\t\t$this->set_composer_json_path( WP_CLI\\Utils\\find_file_upward( 'composer.json', WP_CLI_ROOT ) );\n\t\n\t\t// Composer's auto-load generati...
[ "0.8179008", "0.78570175", "0.7813503", "0.76068354", "0.75659424", "0.7166097", "0.71533245", "0.7028945", "0.6666297", "0.64772123", "0.6289479", "0.61340314", "0.61161333", "0.6104005", "0.60232365", "0.59783226", "0.5887549", "0.5885247", "0.58667094", "0.58641326", "0.58...
0.8254837
0
Gets the output from the io() fixture.
Получает вывод из фикстуры io().
public function getOutput() { return $this->io()->getOutput(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIO()\n {\n if (!isset($this->inputOutput)) {\n $this->inputOutput = new ConsoleIO($this->getInput(), new TaskOutput($this), new HelperSet([]));\n }\n\n return $this->inputOutput;\n }", "public function getOutput()\n {\n return $this->output ?? $t...
[ "0.6473439", "0.63353753", "0.6323778", "0.63194734", "0.62506944", "0.62506944", "0.62506944", "0.62506944", "0.62506944", "0.62506944", "0.62506944", "0.62331814", "0.6230994", "0.6182043", "0.61637384", "0.61403847", "0.61306226", "0.61110026", "0.6096022", "0.6039402", "0...
0.72473776
0
Gets a path to a source scaffold fixture. Use in place of ScaffoldFilePath::sourcePath().
Получает путь к исходному шаблону фикстуры. Используйте вместо ScaffoldFilePath::sourcePath().
public function sourcePath($project_name, $source) { $package_name = "fixtures/{$project_name}"; $source_rel_path = "assets/{$source}"; $package_path = $this->projectFixtureDir($project_name); return ScaffoldFilePath::sourcePath($package_name, $package_path, 'unknown', $source_rel_path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSourceFilePath(): string\n {\n $basePath = 'app/DataTransferObjects';\n if ($this->getDir()) {\n $basePath = $basePath.'/'.$this->getDir();\n }\n return base_path($basePath).'/'.$this->name.'.php';\n }", "public function getSourcePath()\n {\n ...
[ "0.6677343", "0.64780104", "0.6265266", "0.6231613", "0.61676866", "0.612762", "0.6104936", "0.6081275", "0.604178", "0.5982545", "0.597747", "0.59456885", "0.59193426", "0.5847541", "0.5836624", "0.5818463", "0.57240224", "0.5721878", "0.5721878", "0.57032585", "0.5686962", ...
0.70591694
0
Gets an Interpolator with 'webroot' and 'packagename' set. Use in place of ManageOptions::getLocationReplacements().
Получает интерполятор с заданными 'webroot' и 'packagename'. Используйте вместо ManageOptions::getLocationReplacements().
public function getLocationReplacements() { $destinationTmpDir = $this->mkTmpDir('location-replacements'); $interpolator = new Interpolator(); $interpolator->setData(['web-root' => $destinationTmpDir, 'package-name' => 'fixtures/tmp-destination']); return $interpolator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getInterpolatorInstance()\n {\n if (static::$interpolator === null)\n {\n static::$interpolator = new Interpolator;\n }\n\n return static::$interpolator;\n }", "public static function basePath()\n {\n if(!self::$BASE_PATH){\n ...
[ "0.558868", "0.54573625", "0.5395541", "0.53863853", "0.5369531", "0.5252047", "0.520073", "0.52004737", "0.5153014", "0.5151826", "0.515091", "0.5150849", "0.5148738", "0.51312125", "0.5100409", "0.5072993", "0.50632215", "0.5026717", "0.50062716", "0.49942848", "0.4991894",...
0.7276354
0
Generates a persistent prefix to use with all of our temporary directories. The presumption is that this should reduce collisions in highlyparallel tests. We prepend the process id to play nicely with phpunit process isolation.
Генерирует постоянный префикс для использования со всеми нашими временными директориями. Предполагается, что это снизит коллизии в высокопараллельных тестах. Мы добавляем идентификатор процесса в начало, чтобы хорошо взаимодействовать с изоляцией процессов phpunit.
protected static function persistentPrefix() { if (empty(static::$randomPrefix)) { static::$randomPrefix = getmypid() . md5(microtime()); } return static::$randomPrefix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tmpDir($prefix) {\n $prefix .= static::persistentPrefix();\n $tmpDir = sys_get_temp_dir() . '/scaffold-' . $prefix . uniqid(md5($prefix . microtime()), TRUE);\n $this->tmpDirs[] = $tmpDir;\n return $tmpDir;\n }", "protected function createPrefix(): string\n {\n return date(...
[ "0.66962767", "0.62778515", "0.61463594", "0.61449325", "0.6003106", "0.5954735", "0.59517664", "0.59446406", "0.5921644", "0.5904021", "0.5899834", "0.58931035", "0.58464664", "0.57892936", "0.57664853", "0.5748578", "0.568589", "0.56743336", "0.566525", "0.56398135", "0.563...
0.7247035
0
Create an isolated cache directory for Composer.
Создайте изолированный каталог кэша для Composer.
public function createIsolatedComposerCacheDir() { $cacheDir = $this->mkTmpDir('composer-cache'); putenv("COMPOSER_CACHE_DIR=$cacheDir"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createCacheDir()\n {\n if ( ! file_exists($this->cacheDir)) {\n mkdir($this->cacheDir);\n }\n }", "private function cacheFolder(){\n $cachePath = ROOT . \"/\" . $this->_config['cachePath'];\n if (!is_dir( $cachePath )) { // no\n if (!mkdi...
[ "0.7456021", "0.6763888", "0.67559797", "0.67225903", "0.6713593", "0.6676169", "0.6616641", "0.6615672", "0.6500503", "0.6482021", "0.6478068", "0.64588225", "0.6440065", "0.6392255", "0.63419425", "0.63360435", "0.62999564", "0.62630945", "0.62436086", "0.6237634", "0.62052...
0.85923177
0
/////create Consumer login log///////
/////создание лога входа Consumer///////
function loginLog($consumerUserName,$password_encript,$status) { $ip = $_SERVER['REMOTE_ADDR']; $date = date('Y-m-d h:i:s'); $d1 = date("Y-m-d"); $handle = curl_init(); $url = "http://111.118.188.206/consumeranddealerloginlog.php"; $postData = array( '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function login(){\n \n }", "Public Function login()\n\t{\n\t\t$Arr = array();\n\t\t\n\t\t$Arr['a'] = 'login';\n\t\t$Arr['j'] = '';\n\t\t$Arr['LogType'] = 'a';\n\t\t$Arr['UserName'] = $this->publisherLogin;\n\t\t$Arr['Password'] = $this->publisherPassword;\n\t\t\n\t\t\n\t\t$this->loginUrl\t= 'ht...
[ "0.60382706", "0.58859426", "0.5849044", "0.5722104", "0.5656531", "0.55811554", "0.5563599", "0.5547989", "0.55447865", "0.55028754", "0.5494649", "0.5463573", "0.5442394", "0.5441576", "0.54407644", "0.54407644", "0.5438249", "0.5414403", "0.54000425", "0.53950495", "0.5378...
0.7088718
0
function autosave() Destructor. Send data to Mongo if autosave is enabled.
Функция autosave() Деструктор. Отправить данные в Mongo, если включено автосохранение.
public function __destruct(){ if( $this->_autosave ){ $this->save( array('secure' => false) ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAutosave($autosave)\n {\n $this->autosave = $autosave;\n }", "public function setAutosave($autosave)\n\t{\n\t\t$this->autosave = (bool) $autosave;\n\t}", "function heartbeat_autosave($response, $data)\n {\n }", "public function autosaved()\n {\n }", "func...
[ "0.6935602", "0.6893411", "0.6360726", "0.6325889", "0.60957724", "0.6062565", "0.6046666", "0.5953444", "0.5953125", "0.5951271", "0.5902857", "0.58590674", "0.5856436", "0.585617", "0.5819672", "0.5819672", "0.5819672", "0.5819672", "0.5819672", "0.5819672", "0.5819672", ...
0.74631786
0
Validates that the incoming request is a valid/authorized request.
Проверяет, является ли входящий запрос допустимым/авторизованным.
private function validateRequest() { //verify there is a valid access token and it matches our config. Bail if not present $incoming_access_token = $this->request->token(); if ($incoming_access_token !== $this->config->access_token && ! empty($this->config->access_token)) { $msg ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validateRequest() {\n $request = new Oauth_Model_Request($this->getRequest());\n\n if (!$this->_request_validator->isValid($request)) {\n $response = Array();\n\n $messages = $this->_request_validator->getMessages();\n $last_msg = explode(\":\", arr...
[ "0.7541807", "0.75149894", "0.74442476", "0.7389434", "0.7347846", "0.72556835", "0.7174355", "0.71658814", "0.7089179", "0.6973612", "0.68638843", "0.68058693", "0.6779807", "0.6765485", "0.6712854", "0.6701762", "0.6701762", "0.6680339", "0.6668852", "0.6620888", "0.6612118...
0.79388493
0
Triggers any grunt tasks for the incoming request.
Запускает любые задачи grunt для входящего запроса.
private function triggerGruntTask() { $has_run = false; foreach ($this->config->map as $slug => $clone_url) { if ($clone_url === $this->request->cloneUrl()) { $this->triggerGrunt($slug); $has_run = true; } } //message about no s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute()\n\t{\n\t\t// Make sure we're using a secure connection\n\t\tif (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off')\n\t\t{\n\t\t\tApp::redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], '', 'message', true);\n\t\t\tdie('insecure connection and redirection failed')...
[ "0.6221774", "0.6091784", "0.59093165", "0.56856716", "0.5499107", "0.5427254", "0.5405551", "0.53995764", "0.53808504", "0.5248557", "0.524689", "0.524308", "0.52226293", "0.52190876", "0.5202867", "0.51992095", "0.51544607", "0.51384413", "0.51175517", "0.51013553", "0.5084...
0.74714935
0
Returns an anchor with the given link, class and value
Возвращает якорь с заданной ссылкой, классом и значением
function crb_create_anchor($value, $link, $classes = '', $target = '_self') { if ( empty($link) || empty($link) ) { return; } if ( $classes ) { if ( is_array($classes) ) { $classes = implode(' ', $classes); } $classes = 'class="' . $classes . '"'; } ob_start(); ?> <a href="<?php echo $link; ?>" ta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function a($link, $text, $id = Null, $class = Null)\n {\n return '<a'.self::_id($id).self::_class($class).' href=\"'. $link.'\" title=\"'.$text.'\" >'.$text.'</a>';\n }", "function HTMLLink ($params) {\n $val = $params['value'];\n unset($params['value']);\n $str = '';\n ...
[ "0.6559348", "0.6205403", "0.5955067", "0.5936664", "0.58264565", "0.57999104", "0.5777246", "0.57326233", "0.56983376", "0.5677638", "0.5617736", "0.56033367", "0.5565279", "0.5563245", "0.55420333", "0.55221355", "0.5510888", "0.5487099", "0.54411805", "0.54125786", "0.5399...
0.75925964
0
Get mod index Return current index and increment
Получить индекс модуля. Вернуть текущий индекс и увеличить его
function get_next_mod_index() { $index = $this->mod_index; $this->mod_index++; return $index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getNextIndex();", "public function mod($dividend, $modulus);", "function mod($n, $m) {\n return (($n % $m) + $m) % $m;\n}", "function modulo( $value, $modulus ){\n return ( $value % $modulus + $modulus ) % $modulus;\n}", "public function restarIndice($index){\n return in...
[ "0.6051524", "0.59328556", "0.59037733", "0.58293825", "0.57918376", "0.5703392", "0.5662827", "0.56360185", "0.55786234", "0.5572161", "0.5546898", "0.54898906", "0.5461385", "0.5363392", "0.53581303", "0.533865", "0.53377146", "0.52648395", "0.5230609", "0.5210018", "0.5201...
0.786606
0
add_child Registers (and stores) another modular post object as a child of this one, so that all ModularPosts are published together when the parent is published.
add_child Регистрирует (и сохраняет) другой объект modular post как дочерний для этого, чтобы все ModularPosts были опубликованы вместе с родительским объектом.
function add_child( $child ) { if( $child instanceof ModularPost ) { $this->children[] = $child; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addChild(self $child): void\n\t{\n\t\tif (!$this->children->contains($child)) {\n\t\t\t// ...and assign it to collection\n\t\t\t$this->children->add($child);\n\t\t}\n\t}", "public function add_child($child) {\n\t\t$this->children[] = $child;\n\t}", "public function add($child) {\n $thi...
[ "0.6878146", "0.6753129", "0.67298603", "0.6534231", "0.6471426", "0.6387882", "0.6284903", "0.62809867", "0.61824405", "0.60927105", "0.6074885", "0.60194635", "0.5958614", "0.59482145", "0.59363043", "0.5885069", "0.5878206", "0.5798835", "0.5719506", "0.5694451", "0.564215...
0.80680364
0
set_subsite_root Sets this post as the subsite root. If set, headers on child posts will inherit the title of this post.
set_subsite_root Устанавливает этот пост в качестве корня подсайта. Если установлено, заголовки дочерних постов будут наследовать заголовок этого поста.
function set_subsite_root() { $this->is_subsite_root = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setRootContentType ($content_type) {\r\n $this->_rootContentType = $content_type;\r\n }", "private function applySubsiteTheme()\n {\n if (class_exists('Subsite')) {\n $config = $this->get_config();\n if ($config->SubsiteID) {\n $subsite = DataObje...
[ "0.5275777", "0.5143665", "0.50856966", "0.50167215", "0.4925443", "0.48494148", "0.4826631", "0.48106274", "0.47946453", "0.47863272", "0.47640988", "0.47538662", "0.47415182", "0.46758607", "0.46637848", "0.46567982", "0.4651777", "0.4597022", "0.4581904", "0.45790532", "0....
0.7612973
0
Require (once) all migration files for the supplied module.
Требуется (один раз) все файлы миграции для указанного модуля.
protected function requireMigrations($module) { $path = $this->getMigrationPath($module); $migrations = $this->laravel['files']->glob($path . '*_*.php'); foreach ($migrations as $migration) { $this->laravel['files']->requireOnce($migration); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function migrate() \n {\n\n Masteryl_Migration::createOrUpdateDir(MASTERYL_MIGRATIONS_PATH, $this);\n\n if(!empty($this->modules)) {\n foreach($this->modules as $mod) {\n $dir = $mod['path'].'migrations';\n \n if(file_exists($dir))\n Masteryl_Migration::createOrUpdate...
[ "0.68078274", "0.663604", "0.6609619", "0.6483795", "0.6061468", "0.6035795", "0.6015691", "0.596113", "0.5951953", "0.59339964", "0.5922177", "0.5913617", "0.58970535", "0.58704877", "0.58515316", "0.58139616", "0.58044016", "0.5756215", "0.574642", "0.57312745", "0.5720909"...
0.7920751
0
Retrieve left navigation html
Получить html левой навигации
protected function _getLeftNavHtml() { if ($this->_request->getFullActionName() == self::CATEGORY_VIEW_ACTION_NAME) { return $this->_layout->getBlock($this->_vars['catalog_left_navigation_block'])->toHtml(); } elseif ($this->_request->getFullActionName() == self::CATALOG_SEARCH_ACTION_NA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function leftNavPanel() {\r\n\t\tprint file_get_contents('html/leftnav.html');\r\n\t}", "public function LeftNavigation() {\n\t\t$pageId = (isset($_GET['page'])) ? (int)$_GET['page'] : 0;\n \n if(($page = DataObject::get_by_id('Page', $pageId))) {\n Director::set_current_page($pag...
[ "0.7817765", "0.72904193", "0.7204154", "0.69043773", "0.68519425", "0.67965984", "0.67601603", "0.67373127", "0.66010153", "0.65632313", "0.654753", "0.6484029", "0.64832383", "0.64800173", "0.64084685", "0.63814104", "0.63656944", "0.63526964", "0.6309322", "0.6278091", "0....
0.762449
1
Generate Username Take type as input of class or string and return generated username
Создать имя пользователя. Входные данные: тип класса или строка, возвращать сгенерированное имя пользователя
public function generate_username($type) { $array = array_merge(range(0,9),range('A','Z'),range('a','z')); shuffle($array); $characters = implode('',array_slice($array,0,10)); if (($type instanceof Bronze_Customer)) { $this->username = self:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateUsername(){\n $this->username = strtolower(substr($this->firstname,0,1).$this->lastname.$this->id());\n }", "private function generateUsername() {\n $name = \"\";\n $name = $this->generator->generateString(4, '2346789abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXYZ');\n ...
[ "0.7557174", "0.70024", "0.69090945", "0.679564", "0.6716008", "0.65790653", "0.6231332", "0.6147677", "0.606555", "0.606555", "0.606555", "0.606555", "0.606555", "0.60640657", "0.6049839", "0.60438144", "0.60366726", "0.60325634", "0.6027219", "0.6022788", "0.60082", "0.59...
0.8176767
0
same cases as in testParseNationalNumber
такие же случаи, как в тесте testParseNationalNumber
public function testFindNationalNumber() { $this->doTestFindInContext('033316005', RegionCode::NZ); // ("33316005", RegionCode.NZ) is omitted since the national prefix is obligatory for these // types of numbers in New Zealand. // National prefix attached and some formatting present....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parseUSPhoneNumber($phoneNumber){\n\t\t$input = preg_replace('/\\D/', '', $phoneNumber);\n\t\t$areaCode;\n\t\t$phone;\n\t\t//if it's not 10 or 11 in length we have an issue\n\t\tif(strlen($input) == 11){\n\t\t\t$areaCode = substr($input, 1,3);\n\t\t\t$phone = substr($input, 4,7);\n\t\t\treturn [\"area\" =...
[ "0.6484881", "0.6329323", "0.6162301", "0.609839", "0.58950704", "0.58746946", "0.58741057", "0.5783783", "0.573542", "0.57323104", "0.5713046", "0.5691429", "0.5675164", "0.56374824", "0.5592286", "0.5588977", "0.55550027", "0.5536587", "0.5531358", "0.55024105", "0.54725873...
0.7553331
0
Asserts that another number can be found in $text starting at $index, and that its corresponding range in $start to $end
Утверждает, что другое число можно найти в $text, начиная с $index, и что его соответствующий диапазон находится от $start до $end
protected function assertEqualRange($text, $index, $start, $end) { $sub = \mb_substr($text, $index, \mb_strlen($text) - $index); $matches = $this->phoneUtil->findNumbers($sub, RegionCode::NZ, Leniency::POSSIBLE(), PHP_INT_MAX); $matches->next(); $this->assertTrue($matches->valid());...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIntermediateParsePositions()\n {\n $text = 'Call 033316005 or 032316005!';\n // | | | | | |\n // 0 5 10 15 20 25\n\n // Iterate over all possible indices.\n for ($i = 0; $i <= 5; $i++) {\n $this->assertEqual...
[ "0.62983525", "0.5777926", "0.5431298", "0.5421564", "0.5354658", "0.5315711", "0.5296634", "0.52924395", "0.5289547", "0.5207557", "0.5196987", "0.51622915", "0.50495416", "0.504585", "0.5040655", "0.5014563", "0.49904117", "0.49635023", "0.4959943", "0.49368316", "0.4916863...
0.77637887
0
Set layout root path if given in configuration
Установить путь корня размещения, если он указан в конфигурации
protected function setLayoutRootPath(array $conf) { // Override the default layout path via typoscript $layoutPaths = []; if (isset($conf['layoutRootPath']) || isset($conf['layoutRootPath.'])) { $layoutRootPath = isset($conf['layoutRootPath.']) ? $this->cObj->stdW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLayoutRootPath() {}", "protected function setInitialRootPath() {}", "function set_root ($root)\n {\n $this->mPath = realpath($root) . '/';\n }", "public function getDefaultLayoutRootPath()\r\n {\r\n return $this->getDirectoryName($this->defaultLayoutRootPath);\r\n ...
[ "0.70892435", "0.6838849", "0.6521641", "0.6495577", "0.64152163", "0.63877046", "0.63692397", "0.62902516", "0.6288645", "0.6254587", "0.62483", "0.6176403", "0.61132485", "0.6097147", "0.5965899", "0.5953479", "0.59266204", "0.59139276", "0.5876032", "0.58734936", "0.585953...
0.7095352
0
Execute the hook displayOrderConfirmation
Выполнить обработчик displayOrderConfirmation
public function displayOrderConfirmation() { if (Validate::isUnsignedId($this->id_order)) { $params = array(); $order = new Order($this->id_order); $currency = new Currency($order->id_currency); if (Validate::isLoadedObject($order)) { $params['total_to_pay'] = $order->getOrdersTotalPaid(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hookDisplayOrderConfirmation($params)\n\t{\n\t\t$order = $params['objOrder'];\n\t\t$products = $order->getProducts();\n\n\t\t$productArray = array();\n\n\t\tforeach ($products as $product) {\n\t\t\t$productArray[] = array(\n\t\t\t\t'id' => $product['id_product'],\n\t\t\t\t'quantity' => $product['pr...
[ "0.7468301", "0.73247045", "0.6828955", "0.6759842", "0.67215604", "0.66631645", "0.66513056", "0.6542252", "0.65214217", "0.6513991", "0.64891934", "0.6488919", "0.64647716", "0.6400064", "0.63607323", "0.63209456", "0.6304609", "0.6293105", "0.6284362", "0.6266437", "0.6257...
0.7667244
0
Returns whether or not the menu is available for anonymous users
Возвращает, доступен ли меню анонимным пользователям
public function isMenuAvailableAnonymously() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function canDisplayUsersMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_USER);\n\t}", "public static function currentUserHasAccess() {\n return current_user_can('admin_access');\n }", "function checkAccess () {\n if ($GLOBALS[\"pagedata\"][\"login\"...
[ "0.7477891", "0.70917064", "0.7042298", "0.7042298", "0.7014701", "0.70025444", "0.6973911", "0.6931351", "0.6844492", "0.6793678", "0.678821", "0.67747253", "0.6774348", "0.6767565", "0.67589927", "0.67247564", "0.6705326", "0.66838944", "0.6675412", "0.66555166", "0.6645197...
0.7869106
0