query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Assign a new instance of Gears to the view property
public function __construct() { $this->view = new \Core\Libraries\Gears; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct()\r\n {\r\n $this->view = new View();\r\n }", "function __construct()\n {\n $this->view = new View();\n }", "function __construct()\n {\n $this->view = new View(); \n }", "protected function setView()\n {\n $view = 'Src\\Modules\\\\' . $t...
[ "0.61637133", "0.61618423", "0.6148535", "0.61242723", "0.6073945", "0.60577977", "0.60032684", "0.6000113", "0.5991512", "0.5977732", "0.5973455", "0.5963443", "0.5898052", "0.5881164", "0.5834694", "0.58236593", "0.58013153", "0.57917356", "0.5774", "0.5735332", "0.57333404...
0.68965524
0
Render a view via the Gears template engine
public function render ($view, $data = array()) { list ($path, $view) = explode ('::', $view); $path = PACKAGES_PATH.str_replace ('.', DS, strtolower ($path)).DS; $view = ! strstr ($view, '.tpl') ? $view.'.tpl' : $view; $this->view->setPath ($path); if (count ($data)) { $this->v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderTemplate();", "abstract protected function renderView();", "protected function render(){\n //render view\n \n }", "public function render()\n {\n $page = $this->twig->load($this->template);\n $this->prepareFlashMessages();\n $html = $page->render(...
[ "0.7650863", "0.76000774", "0.73168266", "0.7223769", "0.7196695", "0.7160795", "0.7158699", "0.7158699", "0.7158699", "0.7157996", "0.7098405", "0.70688707", "0.7047418", "0.7042157", "0.70402104", "0.6992882", "0.6944563", "0.6934764", "0.68817693", "0.68817693", "0.6881769...
0.0
-1
Get list of subscribers. In addition, register reinstallMagento annotation processing.
protected function _getSubscribers(\Magento\TestFramework\Application $application) { return [ new \Magento\TestFramework\Workaround\Segfault(), new \Magento\TestFramework\Workaround\Cleanup\TestCaseProperties(), new \Magento\TestFramework\Workaround\Cleanup\StaticPropert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubscribers()\n {\n return $this['subscribers'];\n }", "public function collectSubscribers();", "public function getSubscribers()\n\t\t{\n\t\t\treturn $this->subscribers;\n\t\t}", "private function get_subscribers()\n {\n return array(\n new CommentIQ_Subs...
[ "0.69961363", "0.69953275", "0.6803105", "0.67790896", "0.6567562", "0.65089154", "0.6489106", "0.6457621", "0.6323084", "0.6245208", "0.62275606", "0.6119219", "0.60983825", "0.60770994", "0.5949607", "0.5928331", "0.59195143", "0.5914152", "0.5898258", "0.58796275", "0.5856...
0.5500867
52
Gets the config options as an array, if a key is supplied then that keys options is returned.
protected function getConfig($key = null) { if ($this->config === null) { $this->setConfig(); } if (null === $key) { return $this->config; } if (!array_key_exists($key, $this->config)) { throw new InvalidArgumentException("key: '" . $key ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOptions($key): mixed\n {\n return $this->options[$key];\n }", "public\n function options($key = null)\n {\n if ($key !== null)\n {\n return $this->options[$key];\n }\n\n return $this->options;\n }", "public\n function options($k...
[ "0.7126416", "0.7070007", "0.7054318", "0.7015635", "0.7004087", "0.69703877", "0.6957293", "0.68644273", "0.68644273", "0.68644273", "0.68644273", "0.68644273", "0.68644273", "0.68644273", "0.68644273", "0.68644273", "0.68563", "0.6841256", "0.6827613", "0.68174416", "0.6817...
0.0
-1
Sets the config array.
protected function setConfig() { $this->config = $this->getServiceLocator() ->getServiceLocator() ->get('config'); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setConfiguration(array $config);", "public static function set(array $config): void;", "public function setConfig(array $config)\r\n {\r\n $this->config = $config;\r\n }", "public function set(array $config)\r\n {\r\n $this->config = $this->validateConfig($config);\r\n ...
[ "0.7816703", "0.76205647", "0.7571238", "0.73596597", "0.7352628", "0.7352628", "0.71626115", "0.7049095", "0.69920164", "0.69464207", "0.6945286", "0.68843204", "0.6882026", "0.67062396", "0.6668455", "0.6602296", "0.6565727", "0.6565234", "0.6549235", "0.6542518", "0.653402...
0.0
-1
Called after loading the form description display menu in uppermenu (visible like a tab)
public function onContentPrepareForm($form, $data)//OK { if (!($form instanceof JForm)) { $this->_subject->setError('JERROR_NOT_A_FORM'); return false; } // only for catid=10 ['nasi beneficjenci'] if( isset($data->{'catid'}) && $data->{'catid'} != 10 ) return true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onRsformBackendAfterShowFormEditTabsTab(): void\n\t{\n\t\t?>\n\t\t<li>\n\t\t\t<?php\n\t\t\techo HTMLHelper::_(\n\t\t\t\t'link',\n\t\t\t\t'javascript: void(0);',\n\t\t\t\t'<span class=\"rsficon jdicon-jdideal\"></span><span class=\"inner-text\">'\n\t\t\t\t. Text::_(\n\t\t\t\t\t'PLG_RSFP_JDIDEAL_LABE...
[ "0.65113455", "0.6471007", "0.63150775", "0.6314267", "0.6314267", "0.6313428", "0.62901294", "0.6187986", "0.61805195", "0.6131876", "0.6105446", "0.6089235", "0.6035851", "0.602191", "0.5996983", "0.59947056", "0.5980416", "0.5960157", "0.59319323", "0.59291583", "0.5918739...
0.0
-1
$a = print_r($article, true);
public function onContentBeforeSave($context, $article, $isNew) { //JError::raiseNotice( 100+strlen($a),"<br/><br/>Results: ".$a."<br/><br/>" ); if( !isset($article->{attribs}) ) return true; if( isset(json_decode($article->{attribs})->{fanimani_exists}) && json_decode($article->{attribs})->{fanimani_exists...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dump($array) {\n\treturn \"<pre>\" . htmlentities(print_r($array, 1)) . \"</pre>\";\n}", "function get_a($object, $html_format = true)\n{\n if (is_array($object)) {\n $content = print_r($object, true);\n } else {\n ob_start();\n var_dump($object);\n $content = ob_get_co...
[ "0.7189156", "0.70824164", "0.7072425", "0.70225483", "0.69503176", "0.6931521", "0.68993187", "0.6859816", "0.68321884", "0.68292904", "0.6807428", "0.67952675", "0.67893463", "0.67485166", "0.6717147", "0.67142636", "0.67142636", "0.6714076", "0.6683753", "0.66774195", "0.6...
0.0
-1
Called after loading the article from the database load script which show content from tabmenu in contentview _&&_ load data about settings this content
public function onContentPrepareData($context, $data) { $cols = array("fanimani_id"=>"","fanimani_url"=>"","fanimani_msg"=>"","fanimani_exists"=>0); if (is_object($data)) { foreach($cols as $k=>$v) $data->{attribs}[$k] = $v; $db = JFactory::getDbo(); $articleId = isset($data->id)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function postLoad(){\n\t\t\t\n\t\t}", "public function postLoad() {}", "public function postLoad() { }", "public function init() {\n // Load article from db\n $article = ORM::forTable('articles')->findOne($this->id);\n\n // If article exists set variables using the db object\n ...
[ "0.6912168", "0.6592185", "0.65455896", "0.65072566", "0.6499246", "0.63287926", "0.6326859", "0.6307072", "0.6132104", "0.61185926", "0.6109039", "0.6090116", "0.6061948", "0.60572803", "0.604433", "0.6041131", "0.5974385", "0.59606326", "0.5944134", "0.59263325", "0.592019"...
0.0
-1
Returns the lines where errors should occur. The key of the array should represent the line number and the value should represent the number of errors that should occur on that line.
public function getErrorList() { return [ 13 => 1, 33 => 1, 83 => 1, 88 => 1, 92 => 1, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getErrorLines()\n {\n return array('Something went wrong... ಠ_ಠ');\n }", "public function getFailedLines(): array;", "public function getErrorList() : array {\n\t\t$file = func_get_arg( 0 );\n\t\tswitch ( $file ) {\n\t\t\tcase 'SlowMetaQueryUnitTest.success.inc':\n\t\t\t\treturn []...
[ "0.7633277", "0.73337495", "0.7272207", "0.6981461", "0.69379115", "0.6921507", "0.6912529", "0.6908259", "0.68823206", "0.68724495", "0.6795629", "0.6748919", "0.67395264", "0.6725019", "0.6708239", "0.6605295", "0.65925217", "0.6514959", "0.64788556", "0.6412835", "0.639488...
0.7015604
3
Add your modelspecific methods here. This file will not be overriden by gtc except you force it.
public static function model($className = __CLASS__) { return parent::model($className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function model();", "abstract protected function model();", "protected abstract function model();", "abstract public function model();", "abstract public function model();", "abstract public function model();", "abstract public function model();", "abstract function model();", "a...
[ "0.65740985", "0.65740985", "0.63966787", "0.62842137", "0.62842137", "0.62842137", "0.62842137", "0.62300676", "0.62300676", "0.62300676", "0.62300676", "0.62129664", "0.62062055", "0.61146456", "0.606547", "0.6053379", "0.59576136", "0.59538496", "0.5953466", "0.5953466", "...
0.0
-1
set system company id
public function save($runValidation = true, $attributes = NULL) { if ($this->isNewRecord && Yii::app()->sysCompany->getActiveCompany()){ $this->ccmp_sys_ccmp_id = Yii::app()->sysCompany->getActiveCompany(); } return parent::save($runValidation,$attributes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCompany($company_nid);", "function updatePricingCompanyId($params) {\n $sql = __query_update_pricing_company_id($params);\n execute_sql($sql);\n}", "public function setCompanyIdAttribute($input)\n {\n $this->attributes['company_id'] = $input ? $input : null;\n }", "prote...
[ "0.6709161", "0.6544029", "0.6527315", "0.64362013", "0.63712233", "0.6333566", "0.6325846", "0.6325846", "0.61410975", "0.6114779", "0.60698014", "0.60034114", "0.6000746", "0.5986199", "0.5885805", "0.58470154", "0.5805946", "0.57775337", "0.5703043", "0.56549144", "0.56079...
0.5033352
77
spec defined access to companies
protected function beforeFind() { $uc = false; //get defined user positions in companies $sql = " SELECT DISTINCT cucp_id FROM AuthItem ai INNER JOIN cucp_user_company_position ON ai.name = cucp_role...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCompany() {}", "public function getCompany();", "public function getAuthorcompany() {}", "public function getCompanyWithUsers();", "public function testCompanyApi()\n {\n $this->call('GET', '/companies');\n\n $this->assertResponseStatus(200);\n $this->seeJson();\n...
[ "0.727157", "0.71387345", "0.65532583", "0.6453889", "0.63706774", "0.62487245", "0.61803764", "0.6175887", "0.6136584", "0.61032826", "0.60942334", "0.6091797", "0.60026443", "0.59647334", "0.5949286", "0.5944328", "0.591779", "0.5888538", "0.5877522", "0.5866599", "0.584890...
0.53404325
96
special search for company list. Main model:CcxgCompanyXGroup
public function searchForList($criteria = null) { if (is_null($criteria)) { $criteria = new CDbCriteria; } $criteria->select = "t.*,ccgr_name,ccxg_ccgr_id"; $criteria->compare('ccmp_id', $this->ccmp_id); $criteria->compare('ccmp_name', $this->ccmp_name, true); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findcompanys() {\n $this->auth(SUPPORT_ADM_LEVEL);\n $search_word = $this->input->post('search');\n if($search_word == '-1'){ //initial listing\n $data['records'] = $this->m_company->getAll(40);\n } else { //regular search\n $data['records'] = $this->m_company->getByWildcard($searc...
[ "0.70867807", "0.68736047", "0.66601723", "0.64698815", "0.6277668", "0.6247567", "0.61872554", "0.6094019", "0.60720736", "0.6040432", "0.6025865", "0.601708", "0.5978145", "0.59753317", "0.5970454", "0.5945595", "0.59134316", "0.58738345", "0.58536434", "0.5843092", "0.5836...
0.5616861
45
get all syscomanies array without access control
public static function getAllGroupCompanies($ccgr_id) { $sql = " SELECT ccmp_id, ccmp_name FROM ccxg_company_x_group INNER JOIN ccmp_company ON ccxg_ccmp_id = ccmp_id WHERE ccxg_ccgr_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSysInfo() : array;", "public function getSystemUserPrograms()\n {\n $system_user_programs = array();\n return $system_user_programs;\n }", "private function getSysInfo(){\r\n $array = array('version' => phpversion(),\r\n 'system info' =>array(...
[ "0.7029212", "0.6512348", "0.6151811", "0.6080549", "0.5967255", "0.5967255", "0.5855667", "0.5854226", "0.5796701", "0.57454294", "0.5728627", "0.5709563", "0.5691331", "0.5683252", "0.56320244", "0.5610608", "0.55917513", "0.5575032", "0.55454046", "0.55115396", "0.55098903...
0.0
-1
Add rout for minify script
public function appendRoute($routes) { $routes['min/styles/{hash}'] = [ 'html' => ['\\lolita\\LolitaFramework\\Min\\Controllers\\ControllerAssets', 'styles'] ]; $routes['min/scripts/{hash}'] = [ 'html' => ['\\lolita\\LolitaFramework\\Min\\Controllers\\ControllerAssets...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function preRouter(){\n\t\t\n\t}", "function add_custom_admin_routes($app) {\n\n}", "function router_use_rewriting()\n{\n return framework_config('pretty_urls', false, true);\n}", "private function appendRoute($fileName){\n\n $contents = ' require_once \"Larastrapi/'.$this->appNamePat...
[ "0.56354386", "0.5633989", "0.5544774", "0.54873633", "0.54611015", "0.54521126", "0.53734714", "0.52911496", "0.52911496", "0.5282028", "0.52715504", "0.5270991", "0.52519816", "0.5222281", "0.5201205", "0.52005714", "0.5191865", "0.5182189", "0.5174693", "0.5169876", "0.515...
0.49641243
75
Bootstrap the application events.
public function boot(DispatcherContract $events) { parent::boot($events); $events->listen('ynievesdotnet.fourstream.messageArrived', array([ 'YnievesDotNet\Fourstream\Listeners\messageArrived', ])); $this->publishes([ base_path('vendor/ynievesdotnet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function boot()\n {\n\n Event::listen('pages.menuitem.listTypes', function () {\n return [\n 'portfolio-item' => 'depcore.portfolio::lang.portfolioitem.label' ,\n 'all-portfolio-items' => 'depcore.portfolio::lang.portfolioitems.menu_label',\n ];\...
[ "0.74753386", "0.74493223", "0.7439741", "0.74258", "0.73784643", "0.7333372", "0.7289559", "0.727908", "0.72720927", "0.7254705", "0.7239023", "0.7202616", "0.7202278", "0.7192641", "0.7188342", "0.7178829", "0.717757", "0.7174152", "0.71665907", "0.71626914", "0.71626914", ...
0.0
-1
Register the service provider.
public function register() { $this->app->singleton('fs.router', 'YnievesDotNet\FourStream\FourStreamRouter'); $this->app['command.fourstream:start'] = $this->app->share(function ($app) { return new FourStreamStartCommand(); }); $this->commands('command.fourstr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }", "public function register()\n {\n //\n if (env('APP_DEBUG', false) && $this->app->isLocal()) {\n $this->a...
[ "0.71774215", "0.7054453", "0.6968271", "0.69677705", "0.6952019", "0.6931252", "0.6926226", "0.6918423", "0.6899592", "0.6895726", "0.6894278", "0.68906504", "0.68906504", "0.6883112", "0.6872877", "0.6865099", "0.68640506", "0.68627584", "0.68624485", "0.68491566", "0.68236...
0.0
-1
Get the services provided by the provider.
public function provides() { return array('command.fourstream:start'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function getServices()\n {\n if (is_null($this->serviceProviders)) {\n $this->serviceProviders = $this->getServiceProviders();\n }\n\n return $this->serviceProviders;\n }", "protected function getServices()\n {\n return $this->services;\n }", "pro...
[ "0.79039633", "0.7667588", "0.76229626", "0.75573224", "0.7470691", "0.7423859", "0.7423859", "0.7423859", "0.7409516", "0.736475", "0.736475", "0.7363987", "0.7322196", "0.71889", "0.7162814", "0.71509963", "0.7137116", "0.70622355", "0.7047945", "0.70362085", "0.70213807", ...
0.0
-1
Set the keys for a save update query.
protected function setKeysForSaveQuery(\Illuminate\Database\Eloquent\Builder $query) { $keys = $this->getKeyName(); if(!is_array($keys)){ return parent::setKeysForSaveQuery($query); } foreach($keys as $keyName){ $query->where($keyName, '=', $this->getKeyForSaveQuery($keyName)); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addKeysToUpdates()\n\t{\n\t\t$keys = $this->database->getNewKeys();\n\n\t\tif (!empty($keys)) {\n\t\t\t$this->addToUpdates($keys);\n\t\t}\n\t}", "protected function setKeysForSaveQuery($query)\n {\n $keys = $this->getKeyName();\n if (!is_array($keys)) {\n return parent...
[ "0.6659885", "0.6540267", "0.65106434", "0.6489765", "0.6489765", "0.63688564", "0.6330578", "0.6235332", "0.62120336", "0.6160813", "0.6140322", "0.6140256", "0.6083512", "0.60695255", "0.6012893", "0.6001872", "0.59882134", "0.59398645", "0.586974", "0.58557355", "0.5855444...
0.6633894
1
Get the primary key value for a save query.
protected function getKeyForSaveQuery($keyName = null) { if(is_null($keyName)){ $keyName = $this->getKeyName(); } if (isset($this->original[$keyName])) { return $this->original[$keyName]; } return $this->getAttribute($keyName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getKeyForSaveQuery(){\n\t\treturn $this->getKey();\n\t}", "public static function getPk(){\n return static::$_primaryKey;\n }", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public static function getPrimaryKey()\n {\n return s...
[ "0.82098943", "0.7570138", "0.7536554", "0.74932474", "0.74514025", "0.74208516", "0.7416689", "0.7402964", "0.736552", "0.7350424", "0.73088926", "0.728568", "0.724963", "0.72351557", "0.722091", "0.71946245", "0.71946245", "0.71946245", "0.717752", "0.7171154", "0.71633464"...
0.0
-1
Get an article by searching for a matching 'title_alias' or 'title'
function plugin_peoplebook($database, $phrase, $partial_match = true) { global $mainframe; $result = null; if (file_exists("components/com_peoplebook/peoplebook.php")) { $where_clause = ($partial_match) ? "LIKE '%$phrase%'" : "= '$phrase'"; $database->setQuery("SELECT * FROM #__peoplebook WHERE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function searchByTitle($title){\n $name = $title['search'];\n return db()->QUERY(\"SELECT * FROM posts WHERE title LIKE '%$name%' ORDER BY title\");\n }", "public function getArticleBySearch($search)\n {\n $query = \"SELECT posts.*, categories.category_name \n FROM ...
[ "0.6686883", "0.6482616", "0.63009006", "0.62155455", "0.61292493", "0.6116177", "0.6022243", "0.6014953", "0.59790003", "0.5890566", "0.58699197", "0.5860393", "0.5856596", "0.5842274", "0.584195", "0.57830435", "0.57822496", "0.5772151", "0.57477784", "0.574359", "0.5742274...
0.0
-1
Display a listing of the resource.
public function index() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request, $id) { $cartDbEntry = $this->retrieveCartDatabaseEntry($request); if ($cartDbEntry) { $cart = Cart::find($cartDbEntry->id); if (is_null($cart->items)) { $cartItems = (object)[]; } else { $cart...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.728708", "0.7144915", "0.7132209", "0.66401577", "0.66205436", "0.65682197", "0.6526531", "0.65085673", "0.6449452", "0.63749766", "0.63726056", "0.6364582", "0.6364582", "0.6364582", "0.6341498", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.634...
0.0
-1
Display the specified resource.
public function show(Request $request) { $cartDbEntry = $this->retrieveCartDatabaseEntry($request); if ($cartDbEntry) { $cartItems = json_decode($cartDbEntry->items); $total = $cartDbEntry->total; } else { $cartItems = null; $total = 0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request) { $updatedCartData = $request->input('cartData'); $cartDbEntry = $this->retrieveCartDatabaseEntry($request); $cart = Cart::find($cartDbEntry->id); $cartItems = json_decode($cart->items); foreach($updatedCartData as $item) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
return $this>getDb()>selectQuery("EMPRESA", "", "");
public function selectEmpresas() { return $this->getDb()->query("SELECT E.ID_EMPRESA,E.NOMBRE,E.TELEFONO,E.DIRECCION,concat(U.NOMBRE,concat(' ',U.APELLIDO)) \"USUARIO ENCARGADO\" ,E.ESTADO FROM EMPRESA E LEFT JOIN USUARIO U ON(E.ID_PERSONA_ENCARGADA=U.IDENTIFICADOR)"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_empresas() {\n\t\t$query = $this -> db -> select() -> from('empresas') -> get();\n\n\t\tif ($query -> num_rows() > 0) {\n\t\t\treturn $query;\n\t\t}\n\t}", "public function select(){\n\t$sql=\"SELECT * FROM tipousuario\";\n\treturn ejecutarConsulta($sql);\n}", "public function listeEmployee(){\n\t...
[ "0.7358705", "0.7245504", "0.7015006", "0.6912601", "0.6788352", "0.6735739", "0.66542894", "0.66458684", "0.6630022", "0.6625393", "0.66175944", "0.6616625", "0.6613896", "0.6607662", "0.65646505", "0.6562973", "0.6557117", "0.65561765", "0.65211004", "0.65074104", "0.650688...
0.7175829
2
yo thau ma requirement save huna aaucha
public function save(){ // yei bata feri "index.php" ma falne jun chai profile ma jancha $req = new Requirement(); if(isset($_POST['title'])){ $req->setTitle($_POST['title']); }else{ $req->setTitle(""); } if(isset($_POST['date'])){ $req->setDate($_POST['date']); }else{ $req->setDate("01-01-200...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function save()\n {\n }", "function save()\n {\n }", "public function save()\n\t{\n\n\t}", "function save();", "function save();", "public function save()\r\n {\r\n \r\n }", "public function save() {\n\t\t\t\n\t\t}", "function saveVister()\n {\n \n }", "functi...
[ "0.6064194", "0.6064194", "0.6034287", "0.6028627", "0.6028627", "0.6011346", "0.6007474", "0.5951088", "0.59067535", "0.5847437", "0.5845925", "0.5844639", "0.5834071", "0.58112854", "0.5803388", "0.5775602", "0.5765763", "0.5765763", "0.5764737", "0.5764737", "0.5764737", ...
0.7193968
0
Changes all database tables charset to the specified charset recommended to use utf8,utf8_general_ci for testing purposes you might use latin1, latin1_general_ci
function db_change_charset_for_tables($charset = 'utf8', $collate='utf8_general_ci', $data = true){ if(!trim($charset) || !trim($collate)){ echo 'No charset selected'; return; } $CI = &get_instance(); $query_show_tables = 'SELECT table_name FROM information_schema.tables WHERE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function charset()\n\t{\n\t\tif (isset($this->_conf['charset']) AND $this->_conf['charset'] != '')\n\t\t{\n\t\t\tif (isset($this->_conf['collation']) AND $this->_conf['collation'] != '')\n\t\t\t{\n\t\t\t\t$this->_con->exec('SET NAMES '.$this->_conf['charset'].' COLLATE '.$this->_conf['collation']);\n\t\t\t...
[ "0.7186634", "0.70275986", "0.6864148", "0.6849646", "0.6609463", "0.6600705", "0.6423357", "0.6407846", "0.6255509", "0.6217119", "0.6161178", "0.6103325", "0.60913867", "0.6069469", "0.60602903", "0.60290754", "0.6023016", "0.6019959", "0.5961847", "0.5909544", "0.583975", ...
0.7734704
0
Display a listing of the resource.
public function index(request $request) { if($request->has('cari')){ $dtKepen = Kependidikan::where('nama','LIKE', '%' .$request->cari. '%')->paginate(2); }else{ $dtKepen = Kependidikan::paginate(2); } return view('KependidikanView.kependidikan-index', compa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7447426", "0.73628515", "0.73007894", "0.7249563", "0.7164474", "0.7148467", "0.71320325", "0.7104678", "0.7103152", "0.7100512", "0.7048493", "0.6994995", "0.69899315", "0.6935843", "0.6899995", "0.68999326", "0.6892163", "0.6887924", "0.6867505", "0.6851258", "0.6831236"...
0.0
-1
Show the form for creating a new resource.
public function create() { return view('KependidikanView.kependidikan-create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $nm = $request->foto; $nmFile = $nm->getClientOriginalName(); $dtUp = new Kependidikan; $dtUp->nip = $request->nip; $dtUp->nama = $request->nama; $dtUp->foto = $nmFile; $nm->move(public_path().'/img', $nmFile); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show(kependidikan $kependidikan) { return view('KependidikanView.kependidikan-detail',compact('kependidikan')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit(kependidikan $kependidikan) { return view('KependidikanView.kependidikan-edit',compact('kependidikan')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78560394", "0.76944435", "0.7274738", "0.7242069", "0.7171281", "0.70639855", "0.7054131", "0.6983364", "0.69478005", "0.69461757", "0.69413805", "0.69277894", "0.690145", "0.68984276", "0.68984276", "0.68784773", "0.68642735", "0.68610847", "0.6857929", "0.684406", "0.683...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $ubah = Kependidikan::findorfail($id); $awal = $ubah->foto; $dt = [ 'nip' => $request['nip'], 'nama' => $request['nama'], 'foto' => $awal, ]; $request->foto->move(public_path().'/img', $aw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy(kependidikan $kependidikan) { Kependidikan::destroy($kependidikan->id); return redirect('/kependidikan') -> with('status','Deleted'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
method response digunakan untuk langsung mencetak string / text ke layar
public function getWelcome(){ // berguna untuk debugging return response("Welcome"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLangWidgetAction()\n {\n $this->response['LANG'] = array(\n 'YOURCITY' => 'Ваш город',\n 'COURIER' => 'Курьер',\n 'PICKUP' => 'Самовывоз',\n 'TERM' => 'Срок',\n 'PRICE' => 'Стоимость',\n 'DAY' ...
[ "0.66641784", "0.6549816", "0.6383949", "0.6358248", "0.63362354", "0.6229947", "0.6223381", "0.61819875", "0.61480594", "0.6124543", "0.60299504", "0.6000768", "0.5994711", "0.5992639", "0.5951198", "0.5938699", "0.59306794", "0.5914436", "0.5900166", "0.5894488", "0.5892737...
0.0
-1
Execute the console command.
public function handle() { $relative = $this->option('relative'); foreach ($this->links() as $link => $target) { if (file_exists($link) && ! $this->isRemovableSymlink($link, $this->option('force'))) { $this->error("The [$link] link already exists."); cont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() meth...
[ "0.6469124", "0.64643437", "0.64273024", "0.6350274", "0.6317952", "0.6274692", "0.6261577", "0.6260772", "0.6235357", "0.6224455", "0.62206244", "0.62140554", "0.61932796", "0.6192204", "0.6183315", "0.61777353", "0.6176878", "0.6173231", "0.6149831", "0.6149495", "0.6148379...
0.0
-1
Get the symbolic links that are configured for the application.
protected function links() { return $this->laravel['config']['filesystems.links'] ?? [public_path('storage') => storage_path('app/public')]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDeviceFileSymlinks()\n {\n return [];\n }", "public function getSymlinkMaps() {\n return $this->maps;\n }", "public static function getLinks()\n\t{\n\t\treturn static::$links;\n\t}", "public static function getLinks() {\n $links = Yii::$app->cacheManage->links...
[ "0.7384656", "0.7163757", "0.68649286", "0.6854557", "0.6848591", "0.64935845", "0.6394646", "0.6383204", "0.62798035", "0.6268321", "0.6242634", "0.62301546", "0.6221509", "0.62140924", "0.62048304", "0.61971486", "0.6191184", "0.6191184", "0.6191184", "0.6186622", "0.618662...
0.80326825
0
Determine if the provided path is a symlink that can be removed.
protected function isRemovableSymlink(string $link, bool $force): bool { return is_link($link) && $force; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkIsSymlink($path);", "public function unlink(string $path): bool\n\t{\n\t\t$path = substr($path, strpos($path, ':') + 3);\n\t\treturn unlink($path);\n\t}", "public function canNotUnlink()\n {\n $this->assertFalse(@unlink(vfsStream::url('foo')));\n }", "function isSymlink($id)...
[ "0.7856528", "0.660201", "0.65583813", "0.6549792", "0.6548262", "0.6482006", "0.63904107", "0.62043226", "0.61628944", "0.61554193", "0.61408186", "0.59936845", "0.5987892", "0.5883", "0.585465", "0.58324975", "0.5829509", "0.5818415", "0.5719908", "0.5715086", "0.5679792", ...
0.6751973
1
fin de traitement principal
function etape_1(&$repete) { global $message,$Dossier,$Cabinet, $deval, $self, $tcabinet, $tville, $t_diab; $req="SELECT cabinet, total_diab2, nom_cab, region ". "FROM account ". "WHERE region!='' and infirmiere!='' ". "GROUP BY nom_cab ". "ORDER BY nom_cab "; $res=mysql_qu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function factures_autoriser(){}", "public function traerCualquiera()\n {\n }", "public function principal(){\n\t if (!ServiceSession::read(\"name\")) {\n\t Redirect::to(\"/login\")->do();\n\t }\n\t $this->view('principal');\n\t }", "public function principal()\n\t {\n\t\t require_once(...
[ "0.6012221", "0.5928925", "0.58840805", "0.58655506", "0.57948005", "0.56317806", "0.5409164", "0.5348811", "0.53366923", "0.5257695", "0.5243187", "0.5241235", "0.52344143", "0.52296406", "0.522285", "0.5214845", "0.520934", "0.5186971", "0.5169508", "0.5156379", "0.51526284...
0.0
-1
Create a new controller instance.
public function index(){ return view('student.curriculum'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82678324", "0.8173564", "0.78118384", "0.7706353", "0.76816905", "0.7659159", "0.74858105", "0.7406485", "0.7298472", "0.7253435", "0.7196091", "0.7174443", "0.7016074", "0.6989523", "0.69837826", "0.69728553", "0.69640046", "0.69357765", "0.6897687", "0.689282", "0.687757...
0.0
-1
/Obtener los idiomas de la base de datos
public function getLanguage() { $queries = \DB::table('languages') ->orderBy('language') ->get(); foreach ($queries as $query) { $results[] = [ 'id' => $query->id, 'value' => $query->language]; } return Response::json($results); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdiomas()\n\t{\n\t\t//Retorna os dados dos banners\n\t\treturn TableFactory::getInstance('WebsiteIdiomas')->getIdiomas();\n\t}", "public function getIdiomas()\n\t{\n\t\treturn TableFactory::getInstance('WebsiteIdiomas')->getIdiomas();\n\t}", "function datos_idioma($id_idioma) {\n\t\t$query =...
[ "0.6428871", "0.6309934", "0.605969", "0.594305", "0.577778", "0.5770638", "0.57337004", "0.5730534", "0.5636783", "0.5618239", "0.56157583", "0.5567526", "0.5548749", "0.5547696", "0.5542753", "0.55352515", "0.553471", "0.55203784", "0.5517098", "0.5505864", "0.5505292", "...
0.0
-1
/Almacenar o actualizar el idioma de un usuario
public function store(LanguageRequest $request) { /*Input oculto para distinguir entre store y update*/ $id_query = $request->input('id'); $language = $request->input(); $language_id = \DB::table('languages')->where('language' , $language['language'])->value('id'); if ($id_query == 0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveUsuario(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_usuario SET usuario = \"%s\" password = \"%s\" WHERE usuario_id = %d',\n $this->usuario,\n $this->password,\n $this->codigo);\n ...
[ "0.6308505", "0.611441", "0.59041864", "0.5889915", "0.5869512", "0.5841992", "0.5839715", "0.5833855", "0.58307433", "0.5811085", "0.5803951", "0.5793719", "0.5764676", "0.5761687", "0.57488644", "0.57398325", "0.5717253", "0.5703978", "0.5692041", "0.56799996", "0.56711644"...
0.0
-1
Eliminar un idioma de un usuario
public function destroy($lang) { $language_id = \DB::table('languages')->where('language',$lang)->value('id'); $queries = \DB::table('studentlanguages')->where('language_id',$language_id)->where('student_id',$this->student_id)->delete(); Session::flash('type',"warning"); Session::flash('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminar_autonomo()\n\t{\n\t\ttry {\n\t\t\t$this->db->abrir_transaccion();\n\t\t\t$this->db->retrasar_constraints();\n\t\t\t$this->eliminar();\n\t\t\t$this->db->cerrar_transaccion();\n\t\t\t$this->manejador_interface->mensaje(\"El proyecto '{$this->identificador}' ha sido eliminado\");\n\t\t} catch ( toba...
[ "0.6489756", "0.6451372", "0.6387446", "0.63840175", "0.63604814", "0.62771523", "0.62402207", "0.6188455", "0.6179664", "0.617", "0.61413926", "0.61274296", "0.61265564", "0.6125673", "0.6123372", "0.6109999", "0.6107757", "0.60867316", "0.6054584", "0.6054547", "0.6041617",...
0.0
-1
Ajoute un commentaire dans la base
public function ajouterCommentaire($auteur, $contenu, $idBillet) { $sql = 'insert into t_commentaire(COM_DATE, COM_AUTEUR, COM_CONTENU, BIL_ID)' . ' values(?, ?, ?, ?)'; $date = date('Y-m-d H:i:s'); // Récupère la date courante $this->executerRequete($sql, array($date, $aute...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newComment() {\n $datas['chapter_id'] = abs((int) $_GET['id']);\n $datas['author'] = trim(htmlspecialchars((string) $_POST['newCommentAuthor']));\n $datas['content'] = trim(htmlspecialchars((string) $_POST['newCommentContent']));\n\n if (!empty($datas['content']) && !emp...
[ "0.7989061", "0.7784646", "0.77734876", "0.76247346", "0.75675684", "0.7524545", "0.74627316", "0.73090017", "0.7238747", "0.7188389", "0.7153212", "0.7111921", "0.7109631", "0.6968721", "0.6966442", "0.6959047", "0.69573927", "0.6950325", "0.6923525", "0.69226426", "0.691915...
0.6938964
18
Add class methods here
public static function add_normal_case_shortcode() { // Use [amdv-sub-switch-dynamic-product-normal][/...] to call this shortcode add_shortcode( 'amdv-sub-switch-dynamic-product-normal', array( 'Ammonite_Dynamic_Product_Page_On_Subscription_Switch', 'normal_case_shortcode_callback' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_class()\n\t{\n\t\t\n\t\t// NO LONGER NEEDED\n\t}", "public function methods();", "function classes() {\n\tcore();\n}", "public function plugin_classes() {\n\t\t$this->options = new Options( $this ) ;\n\t\t$this->helpers = new Helpers( $this );\n\t\t$this->core = new Core( $this );\n\t}",...
[ "0.6671783", "0.658291", "0.65529877", "0.6362824", "0.6269494", "0.6081705", "0.60578036", "0.6022318", "0.60070044", "0.59741086", "0.59491765", "0.58120143", "0.5807766", "0.57921344", "0.57774514", "0.576427", "0.57633924", "0.57556885", "0.5743431", "0.57398343", "0.5729...
0.0
-1
Use [amdvsubswitchdynamicproductswitch][/...] to call this shortcode
public static function add_switch_case_shortcode() { add_shortcode( 'amdv-sub-switch-dynamic-product-switch', array( 'Ammonite_Dynamic_Product_Page_On_Subscription_Switch', 'switch_case_shortcode_callback' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_normal_case_shortcode() {\n // Use [amdv-sub-switch-dynamic-product-normal][/...] to call this shortcode\n add_shortcode( 'amdv-sub-switch-dynamic-product-normal', array( 'Ammonite_Dynamic_Product_Page_On_Subscription_Switch', 'normal_case_shortcode_callback' ) );\n }", "f...
[ "0.71515334", "0.56276035", "0.55906737", "0.54101384", "0.5379348", "0.5356283", "0.53303295", "0.5304273", "0.5285399", "0.5285045", "0.5284752", "0.5260563", "0.52409726", "0.52369136", "0.5236848", "0.52091396", "0.52060884", "0.5192828", "0.5189148", "0.5186522", "0.5163...
0.81297636
0
Serializes message to string
public function serialize($messageName, $arguments, array $meta = array()) { return serialize([ $messageName, $arguments, $meta ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __toString()\n\t{\n\t\treturn (string) $this->message;\n\t}", "public function __toString()\n {\n return (string) $this->message;\n }", "public function __toString(): string\n {\n return $this->message;\n }", "public static function serializeMessage($message)\n {\...
[ "0.72173166", "0.71530956", "0.701513", "0.7006077", "0.6817962", "0.67001814", "0.6525483", "0.6525483", "0.6525483", "0.6525483", "0.6525483", "0.6525483", "0.6525413", "0.6525413", "0.65134627", "0.6455436", "0.64310306", "0.6411574", "0.63971573", "0.6392268", "0.6373016"...
0.0
-1
Unserializes message string to array, which contains message name and its arguments
public function unserialize($messageSerialized) { return unserialize($messageSerialized); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function decomposeMsg (string $msg) : array {\n\t\tif (($pos = strpos ($msg, ':')) === false || ($command = \\DataLib::isInt (substr ($msg, 0, $pos))) === false || !Command::isCommand ($command)) {\n\t\t\treturn [ Command::INVALID ];\n\t\t}\n\t\treturn [\n\t\t\t$command,\n\t\t\tjson_decode (substr ($...
[ "0.68234146", "0.56260407", "0.5613232", "0.54898244", "0.5450762", "0.5379476", "0.5339271", "0.53222835", "0.531563", "0.5306378", "0.5282207", "0.52708936", "0.5270886", "0.52580106", "0.5228971", "0.5221436", "0.5163102", "0.516228", "0.51506233", "0.513443", "0.51333886"...
0.5365858
6
Der Rand von links
public function getPosX($c) { $x = $this->getWidthOfBorder(); # Beim 1. Feld brauchen wir sonst keinen Abstand if($c == 1) { $x += 0; } if($c >= 2) { $x += $this->getFieldsWidthBrutto() * ($c-1); } if($c >= 3) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRandomLink() {\n\t\t$link = getDbConnect();\n\t\t$preparedStatement = $link->prepare(\"SELECT * FROM urls ORDER BY RAND() LIMIT 1;\");\n\t\t$preparedStatement->execute(array());\n\t\treturn parseFullResults($preparedStatement->fetchAll());\n\t}", "public function random();", "public function orderR...
[ "0.70327264", "0.692919", "0.68286526", "0.674898", "0.6579774", "0.64992416", "0.63017327", "0.62563586", "0.6234002", "0.6171639", "0.6168669", "0.6151963", "0.612277", "0.6101543", "0.6086519", "0.6056398", "0.6049515", "0.60404676", "0.60002637", "0.59647495", "0.5964702"...
0.0
-1
Get list of tempory uploaded files
public function getAll() { $list = $this->_tableGw->select(); return $list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFiles()\n {\n return R::findAll('upload');\n }", "public function getUploadedFiles() {}", "private function getUploadedFiles()\n {\n $list = array();\n \n if(isset($_REQUEST['files']))\n {\n $files = explode('::', $_REQUEST['files']);\n ...
[ "0.7819385", "0.7664267", "0.747257", "0.73408234", "0.72912335", "0.7197342", "0.7197342", "0.7122286", "0.70128083", "0.7009124", "0.69708335", "0.6958534", "0.6958534", "0.6958534", "0.6934792", "0.69292104", "0.6923858", "0.69049114", "0.6889502", "0.6889502", "0.6889502"...
0.0
-1
Get count of tempory storaged images
public function countTemporyImages(){ $count = $this->_tableGw->select()->count(); return $count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count()\n {\n return $this->getImages()->count();\n }", "function total_images_uploaded() {\n\tglobal $dB;\n\t$uploaded_qry = $dB->query_fetch_single(\"SELECT count(*) as total FROM chv_images;\");\n\treturn $uploaded_qry[\"total\"];\n}", "public function count(): int\n {\n ...
[ "0.7088729", "0.6806957", "0.6746369", "0.66332316", "0.6608738", "0.6556508", "0.64675283", "0.64452153", "0.64270383", "0.6419856", "0.64023995", "0.63392824", "0.63272494", "0.63240576", "0.62039655", "0.6195368", "0.6159883", "0.6150446", "0.6137345", "0.60788465", "0.607...
0.8303075
0
Copy uploaded file to temp storage, and add it information to database
public function addFile($file) { $originalName = $file['name']; $fileType = $file['type']; if ($fileType !== 'audio/mp3') { return false; } if (!file_exists(self::ROOT_PATH . "/public/{$this->storagePath}")) { mkdir(self::ROOT_PATH . "/public/{$this->sto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function upload_file() {\n upload_file_to_temp();\n }", "public function upload()\n {\n if (null === $this->file) {\n return;\n }\n\n // si on avait un ancien fichier on le supprime\n if (null !== $this->tempFilename) {\n $oldFile = $this->getUploadR...
[ "0.71968025", "0.65895", "0.6565526", "0.6479392", "0.6467935", "0.64483696", "0.64217734", "0.64117765", "0.6393578", "0.6392456", "0.632139", "0.62807786", "0.6258501", "0.61633986", "0.61501694", "0.6131079", "0.612517", "0.6118918", "0.61097497", "0.61087775", "0.60758346...
0.0
-1
Get single tempory storage item information
public function getEntry($entryId) { $rowset = $this->_tableGw->select(array('id' => (int) $entryId)); $entry = $rowset->current(); if (!$entry) { throw new \Exception("Could not find entry with id: $entryId"); } return $entry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItem() {}", "public function getItem() {}", "function getItem() ;", "protected function getStorageInfo() {\n\t\t$dirInfo = \\OC\\Files\\Filesystem::getFileInfo('/', false);\n\t\treturn \\OC_Helper::getStorageInfo('/', $dirInfo);\n\t}", "public function getItem()\n {\n return $t...
[ "0.67651176", "0.67651176", "0.67520857", "0.6719238", "0.6706887", "0.6493131", "0.649241", "0.64919925", "0.6490673", "0.648171", "0.64614415", "0.6453562", "0.6449652", "0.6449652", "0.6449652", "0.6449652", "0.6449652", "0.6449652", "0.6449652", "0.6449652", "0.6449652", ...
0.0
-1
Delete current tempory image item from DB and storage
public function deleteEntry($entryId) { $rowset = $this->_tableGw->select(array('id' => (int) $entryId)); $entry = $rowset->current(); if (!$entry) { throw new \Exception("Could not find entry with id: $entryId"); } else { if (unlink($entry->filepath)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public static function deleteImage(){}", "public function deleteImage1()\n {\n Storage::delete($this->image1);\n }", "public function d...
[ "0.78890854", "0.7610641", "0.72132725", "0.7097558", "0.70782965", "0.7042595", "0.69506484", "0.692985", "0.6915368", "0.6893346", "0.6882658", "0.6866592", "0.68548876", "0.68538207", "0.68332034", "0.6832461", "0.67977124", "0.6794679", "0.6792924", "0.6788387", "0.678511...
0.0
-1
Clean tempory storage and dell all items fron DB table
public function clearAll() { $list = scandir(self::ROOT_PATH . "/public/{$this->storagePath}"); foreach ($list as $file) { if ($file == '.' || $file == '..') { continue; } $filePath = self::ROOT_PATH . "/public/{$this->storagePath}/$file"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function empty_temp_db() {\n\t\tif(self::using_temp_db()) {\n\t\t\t$dbadmin = new DatabaseAdmin();\n\t\t\t$dbadmin->clearAllData();\n\t\t\t\n\t\t\t// Some DataExtensions keep a static cache of information that needs to \n\t\t\t// be reset whenever the database is cleaned out\n\t\t\tforeach(array_merge(Class...
[ "0.7007235", "0.6908007", "0.68983954", "0.68895525", "0.68500066", "0.68411887", "0.6809482", "0.6802274", "0.6790552", "0.66109735", "0.659425", "0.65871114", "0.6557937", "0.6557367", "0.65443844", "0.6520375", "0.6503157", "0.6499922", "0.645771", "0.6442338", "0.6433538"...
0.6346495
29
check upload file correctly
protected function _checkConfirmUploadFile() { switch ($this->_uploadedFile->getError()) { case UPLOAD_ERR_OK: break; case UPLOAD_ERR_NO_FILE: throw new Exception('Empty File Upload ERROR!'); break; case UPLOAD_ERR_FORM_SIZE; case UPLOAD_ERR_INI_SIZE; throw new Exception('Too Large File S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkUpload() {}", "public function validUpload() {\t\n\t\tif($this->file['error'] == 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function isUploadedFile() {}", "protected function checkFileUploadEnabled() {}", "function verifyUpload( $file ){\n $passed = false;...
[ "0.84827316", "0.78676766", "0.7772631", "0.7655765", "0.75868315", "0.7424297", "0.73151714", "0.7312731", "0.72873", "0.72188663", "0.7209874", "0.7204869", "0.71957964", "0.7190982", "0.71563894", "0.7136154", "0.713357", "0.7100517", "0.7090529", "0.7082756", "0.7079601",...
0.72108823
10
set file content instance variable
protected function _setFile() { $this->_moveToImageDir(); if (!$this->_validateMimeType()) { unlink($this->getFilePath()); // delete file throw new Exception('Not Allowed MIME Type File ERROR!'); } $this->_file = file_get_contents($this->getFilePath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function setContentFromFile($file);", "public function setFile($file) {}", "abstract public function getContent($file);", "function readFile(){\n $this->setHeaders();\n $this->readContent();\n\n }", "public static function setFile($file) {}", "private function setContents...
[ "0.826248", "0.7169582", "0.70859504", "0.7058194", "0.697367", "0.6829309", "0.6731941", "0.6660945", "0.66163015", "0.6605668", "0.6605668", "0.6605668", "0.66014045", "0.6586884", "0.6582516", "0.6570423", "0.6570423", "0.6570423", "0.65679324", "0.6561804", "0.6526309", ...
0.63001597
38
validate uploaded file's mime type
protected function _validateMimeType() { $this->_fileType = \MimeType\MimeType::getType($this->getFilePath()); if (!in_array($this->_fileType, $this->_allowedMimeType)) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mimeTypeValid()\n\t{\n\t\tif (!in_array($this->files['type'], $this->mime_types)) {\n\t\t\tthrow new Exception(\"Invalid file Extension\",6);\n\t\t}\n\t}", "private function checkMimeType()\n {\n $allowedTypes = $this->getSetting('allowed_upload_types', true);\n if (is_string($al...
[ "0.8046193", "0.78944933", "0.7808767", "0.7656104", "0.76006645", "0.73375887", "0.7196841", "0.7189285", "0.712684", "0.71250063", "0.7089263", "0.7063943", "0.7049437", "0.69398004", "0.693935", "0.6938242", "0.6921766", "0.6901871", "0.6899989", "0.68848467", "0.6837849",...
0.80739963
0
get unique file name for put application directory
public function getUniqFilename() { if (empty($this->_uniqFilename)) { $this->_uniqFilename = sprintf('%s_%s', uniqid(), $this->_uploadedFile->getClientFilename()); } return $this->_uniqFilename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function generateUniqueFileName()\n {\n // uniqid(), which is based on timestamps\n return md5(uniqid());\n }", "private function generateUniqueFileName()\n {\n // uniqid(), which is based on timestamps\n return md5(uniqid());\n }", "private function generateUni...
[ "0.78171515", "0.779017", "0.779017", "0.779017", "0.779017", "0.779017", "0.779017", "0.7673765", "0.7561922", "0.7549031", "0.74456614", "0.7251621", "0.7171117", "0.7076525", "0.7028489", "0.6968183", "0.6954334", "0.69376177", "0.69349277", "0.6926752", "0.6898566", "0....
0.69259745
20
move to images directory for save file
protected function _moveToImageDir() { $path = $this->getFilePath(); $this->_uploadedFile->moveTo($path); chmod($path, 0644); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n {\n $dir = $this->pathTmpImage;\n\n $files = scandir($dir);\n\n foreach ($files as $file) {\n if ($file == $_POST['image']) { \n copy($this->pathTmpImage . $file, $this->pathResult . $file);\n }\n }\n\n ...
[ "0.72756493", "0.7137192", "0.6728117", "0.66027415", "0.6515712", "0.64665794", "0.64650667", "0.6416328", "0.6379757", "0.63393956", "0.6246647", "0.6169967", "0.6163733", "0.6160299", "0.61403024", "0.61263263", "0.6080647", "0.60633135", "0.598659", "0.5960824", "0.59401"...
0.7284063
0
los metodos abstractos NO SE IMPLEMENTAN
public abstract function Ataca();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function interface();", "abstract function ActualizarDatos();", "abstract protected function __construct();", "abstract function __construct();", "abstract public function __construct();", "abstract public function __construct();", "abstract public function __construct();", "protec...
[ "0.67779523", "0.6328906", "0.63200045", "0.6230149", "0.6211472", "0.6211472", "0.6211472", "0.61371976", "0.6037189", "0.59432745", "0.5937664", "0.5932766", "0.5925315", "0.59185725", "0.5905362", "0.5882711", "0.5878965", "0.58538866", "0.58116037", "0.58116037", "0.58100...
0.6310848
3
Returns the static model of the specified AR class.
public static function model($className=__CLASS__) { return parent::model($className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function model()\r\n {\r\n return static::class;\r\n }", "public static function model() {\n return parent::model(get_called_class());\n }", "public static function model($class = __CLASS__)\n {\n return parent::model($class);\n }", "public static function model($cl...
[ "0.74850124", "0.73803526", "0.7154113", "0.71401674", "0.70629025", "0.703232", "0.69285315", "0.69285315", "0.6925706", "0.6902751", "0.6894916", "0.6894916", "0.68900806", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0....
0.0
-1
Retrieves a list of models based on the current search/filter conditions.
public function search() { // Warning: Please modify the following code to remove attributes that // should not be searched. $criteria=new CDbCriteria; if(isset($this->mallId) && !empty($this->mallId)){ $criteria->join = 'INNER JOIN mall_build as mb ON t.user_id = mb.admin_id AND mb.id = :mallId'; $cr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModels();", "public function getModels();", "public function findAll($model);", "public function getListSearch()\n {\n //set warehouse and client id\n $warehouse_id = ( !is_numeric(request()->get('warehouse_id')) ) ? auth()->user()->current_warehouse_id : request()->get('w...
[ "0.6743169", "0.6743169", "0.660761", "0.6479806", "0.63798267", "0.63454884", "0.6310211", "0.630157", "0.6253882", "0.62494963", "0.62494963", "0.6111013", "0.6077699", "0.60734916", "0.604629", "0.60349816", "0.60323626", "0.6014135", "0.5981404", "0.5979577", "0.59790176"...
0.0
-1
Plugin Name: Term Meta Version: 1.0 Description: Uses a custom post type to shadow each term and optionally create a taxonomy default and store data specific to that taxonomy term or taxonomy default. This plugin also enables multiple termmeta containers to be associated with the same taxonomy or term which can be real...
function add_post_meta($term_id, $taxonomy, $meta_key, $meta_value, $unique = false) { return add_metadata('post', $post_id, $meta_key, $meta_value, $unique); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function acf_upgrade_550_termmeta()\n{\n}", "function add_custom_taxonomies() {\n register_taxonomy('meta_info', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => arra...
[ "0.68641204", "0.6510419", "0.6482216", "0.6425195", "0.6406462", "0.63415444", "0.63359463", "0.6300006", "0.6294453", "0.6281465", "0.6273607", "0.6271631", "0.62563264", "0.62327147", "0.62222475", "0.6214253", "0.6210641", "0.6207574", "0.6205022", "0.62006646", "0.618076...
0.6286156
9
Remove metadata matching criteria from a term. You can match based on the key, or key and value. Removing based on key and value, will keep from removing duplicate metadata with the same key. It also allows removing all metadata matching key, if needed.
function delete_post_meta($term_id, $taxonomy, $meta_key, $meta_value = '') { return delete_metadata('post', $post_id, $meta_key, $meta_value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_term_meta($term_id, $meta_key, $meta_value = '')\n {\n }", "function delete_term_meta_by_key($term_meta_key, $taxonomy) {\n\n return delete_metadata( 'post', null, $term_meta_key, '', true );\n}", "function delete_term_taxo_by_key_and_value( $key = '', $value = '' ) {\n\tglobal $wpdb;\...
[ "0.66996115", "0.6635874", "0.65351737", "0.64605224", "0.6438688", "0.61814994", "0.590193", "0.572366", "0.5672847", "0.5549445", "0.5484713", "0.54545414", "0.5297534", "0.52857476", "0.52857476", "0.52857476", "0.5281976", "0.51888573", "0.50658005", "0.505576", "0.504565...
0.62007934
5
Retrieve post meta field for a post.
function get_term_meta($term_id, $taxonomy, $key = '', $single = false) { return get_metadata('post', $post_id, $key, $single); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_post_field($field, $post = \\null, $context = 'display')\n {\n }", "public function get_value($post){\n $post = get_post($post);\n return $post && !is_wp_error($post) && metadata_exists('post', $post->ID, $this->meta_id) ? get_post_meta( $post->ID, $this->meta_id, true ) : null;\...
[ "0.72402555", "0.7201801", "0.69531655", "0.6936257", "0.68448013", "0.68272704", "0.6794014", "0.6698509", "0.6664783", "0.665199", "0.65965384", "0.6586196", "0.6510911", "0.64955556", "0.6485975", "0.64787775", "0.6444478", "0.64061624", "0.63689816", "0.63678193", "0.6337...
0.59003603
58
Update term meta field based on term ID. Use the $prev_value parameter to differentiate between meta fields with the same key and term ID. If the meta field for the term does not exist, it will be added.
function update_term_meta($term_id, $taxonomy, $meta_key, $meta_value, $prev_value = '') { return update_metadata('post', $post_id, $meta_key, $meta_value, $prev_value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' ) {\n\treturn update_metadata( 'taxonomy', $term_id, $meta_key, $meta_value, $prev_value );\n}", "function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' ) {\r\n\r\n if ( current_theme_supports( 'extended-taxon...
[ "0.8276113", "0.8161409", "0.813169", "0.8048638", "0.73687947", "0.7023288", "0.6536044", "0.65350175", "0.6453492", "0.64461505", "0.64024687", "0.63926846", "0.6338034", "0.62576437", "0.62459403", "0.6175759", "0.6173477", "0.602359", "0.5984961", "0.5960638", "0.5889396"...
0.80472076
4
Delete everything from term meta matching meta key.
function delete_term_meta_by_key($term_meta_key, $taxonomy) { return delete_metadata( 'post', null, $term_meta_key, '', true ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_term_meta($term_id, $meta_key, $meta_value = '')\n {\n }", "function delete_carton_term_meta( $term_id, $meta_key, $meta_value = '', $delete_all = false ) {\n\treturn delete_metadata( 'carton_term', $term_id, $meta_key, $meta_value, $delete_all );\n}", "public function delete_meta( $key, ...
[ "0.78010523", "0.76035565", "0.73961407", "0.73939276", "0.7322915", "0.72382957", "0.7230125", "0.7057978", "0.70179665", "0.6931987", "0.67334014", "0.67172503", "0.66218704", "0.65565264", "0.6526685", "0.6493556", "0.6411842", "0.6361658", "0.633371", "0.63043064", "0.628...
0.79197097
0
outputs the content of the widget
public function widget($args, $instance) { extract($args); $html_open = '<ul class="contact-bar__list">'; $html_close ='</ul>'; $starter_text = apply_filters( 'widget_text', $instance['starter_text'] ); $starter_link = apply_filters( 'widget_text', $instance['starter_link'] )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function output() {\n\t\t\techo $this->before();\n\t\t\techo wponion_input_group_html( $this->data( 'prefix' ), $this->data( 'surfix' ), $this->element_html() );\n\t\t\techo $this->datalist();\n\t\t\techo $this->after();\n\t\t}", "public function displayComponent() {\n\t\t\n\t\t\t$this->outputLine($thi...
[ "0.73546016", "0.718772", "0.71313274", "0.70252377", "0.69536865", "0.69119745", "0.6908941", "0.6880235", "0.6834984", "0.6826785", "0.68184483", "0.68177927", "0.68170154", "0.67431366", "0.67376524", "0.6724866", "0.6712972", "0.66808975", "0.66754866", "0.667024", "0.665...
0.0
-1
outputs the options form in the admin
public function form($instance) { if ( isset( $instance[ 'starter_text' ] ) ) { $starter_text = $instance[ 'starter_text' ]; } else { $starter_text = __( 'Generic Text', 'starter_theme_generic_widget_domain' ); } ?> <p> <label for="...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_options() {\r\n echo '<h3>' . __('Mondido', 'mondido') . '</h3>';\r\n echo '<p>' . __('Mondido, Simple payments, smart functions', 'mondido') . '</p>';\r\n echo '<table class=\"form-table\">';\r\n // Generate the HTML For the settings form.\r\n ...
[ "0.83773917", "0.8275272", "0.8177535", "0.79074216", "0.7848807", "0.78093666", "0.77692044", "0.775667", "0.77481157", "0.76686513", "0.76585025", "0.7620533", "0.7590297", "0.7572669", "0.7572585", "0.75387585", "0.74784654", "0.74784654", "0.74784654", "0.74779993", "0.73...
0.0
-1
processes widget options to be saved
public function update($new_instance, $old_instance) { $instance = array(); $instance['starter_text'] = ( !empty( $new_instance['starter_text'] ) ) ? strip_tags( $new_instance['starter_text'] ) : ''; $instance['starter_link'] = ( !empty( $new_instance['starter_link'] ) ) ? strip_tags( $new_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handle_options()\r\n {\r\n $options = $this->get_options();\r\n \r\n if (isset($_POST['submitted'])) {\r\n \t\t\r\n \t\t//check security\r\n \t\tcheck_admin_referer('snazzy-nonce');\r\n \t\t\r\n ...
[ "0.69915545", "0.6716821", "0.66808283", "0.6677745", "0.66202074", "0.6602848", "0.6494906", "0.646696", "0.6403739", "0.6341822", "0.633675", "0.63270384", "0.6325295", "0.63135666", "0.6311957", "0.6301942", "0.62736166", "0.62450916", "0.62045175", "0.62020034", "0.620046...
0.0
-1
All config variables are here the same as default ones (incase config is missing, default is already statically compiled into core) SetupVariables function
protected function CustomVariables () { // Overwrite variables if you want them custom $this->Set ('autoload', true); $this->Set ('enable_query_strings', false); // Add your own variables $this->Set ('database_host', 'localhost'); $this->Set ('database_user', 'database_username'); $this->Set ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initVars() {\n\n\t\t}", "public function testconfig_vars()\n\t{\n\t\t$vars = array ('sys_name',\n\t\t\t 'sys_user_reg_restricted',\n\t\t\t 'sys_require_accept_conditions',\n\t\t\t 'sys_project_reg_restricted',\n\t\t\t 'sys_use_private_project',\n\t\t\t 'sys_defaul...
[ "0.6588747", "0.65023637", "0.6322836", "0.62487996", "0.62450653", "0.6211987", "0.61995757", "0.614621", "0.6106223", "0.60706204", "0.60244054", "0.60039264", "0.5987584", "0.5975801", "0.5956693", "0.5936735", "0.593521", "0.5916018", "0.59126204", "0.59119403", "0.590850...
0.65782815
1
Replace services in SilverStripe's injector with fake instances. The service names are usually class names.
public function registerServices() { $services = Config::inst()->get('FakeManager', 'services'); if($services) { foreach($services as $origName => $fakeName) { $fakeObj = Injector::inst()->create($fakeName); if($this->db && $fakeObj instanceof FakeDatabaseConsumerInterface) { $fakeObj->setDb($this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function services(){\n\n $facades = Array(\n 'Cache' => 'Disco\\classes\\Cache',\n 'Crypt' => 'Disco\\classes\\Crypt',\n 'Data' => 'Disco\\classes\\Data',\n 'DB' => 'Disco\\classes\\DB',\n 'Email' => 'Disco\\classes\\Email...
[ "0.6312676", "0.62457955", "0.6202498", "0.6135621", "0.6112149", "0.59715587", "0.5936051", "0.5912065", "0.58333063", "0.580694", "0.57813543", "0.57766896", "0.57750434", "0.57244205", "0.57021767", "0.5689793", "0.56820965", "0.56757486", "0.56680375", "0.56636864", "0.56...
0.69556475
0
checks to see if local fields are empty as well as fields of children
public function isEmpty() { return !( ($this->dict['account_id'] && $this->dict['account_id'] != 0) || ($this->dict['entry'] && !$this->dict['entry']->isEmpty()) || ($this->dict['recurring'] && !$this->dict['recurring']->isEmpty()) || ($this->di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getAllFieldsAreEmpty() {}", "public function hasFields()\n {\n return !empty($this->fields);\n }", "public function hasFields(){ return !empty($this->field_map); }", "public function hasFields()\n {\n return null !== @$this->fields;\n }", "public function isFiel...
[ "0.76100683", "0.6693551", "0.6575833", "0.64146197", "0.63944066", "0.6362705", "0.63606447", "0.62480253", "0.6243596", "0.61988574", "0.6135376", "0.61104053", "0.6026322", "0.60221744", "0.6022099", "0.5991924", "0.5986454", "0.5961513", "0.5937311", "0.584389", "0.583905...
0.58774996
19
Reverse geo: given geocoordinates return the address
public function show(Apartment $apartment, Geolocation $geolocation) { return $geolocation->getAddress($apartment->latitude, $apartment->longitude); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function helperReverseGeocode($lat, $lng) {\n\t\t$addressData = array();\n\t\t$lng = floatval($lat);\n\t\t$lng = floatval($lat);\n\n\t\tif ($key == '' || $lng == 0 || $lat == 0 ) {\n\t\t\treturn $addressData;\n\t\t}\n\n\t\t$coords\t\t= $lat . ',' . $lng;\n\t\t$url\t\t\t= 'http://maps.google.com/maps/geo?q='.$coord...
[ "0.6951918", "0.6949223", "0.6816421", "0.62720865", "0.61952394", "0.60657483", "0.5906925", "0.5859497", "0.57537293", "0.572569", "0.57230216", "0.57113755", "0.5702485", "0.56994015", "0.566471", "0.5663677", "0.5651832", "0.5611745", "0.56050766", "0.5598703", "0.5559373...
0.0
-1
/ time in seconds
public function setStartTime( $time ) { if ( !is_numeric( $time ) ) { throw new \Exception( "Argument \"time\" must be a number" ); } $this->start_time = $time; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function time_seconds($time) {\n //Convert oanda time from microseconds to seconds\n\t\t\treturn floor($time/1000000);\n\t\t}", "public function toSeconds($time) {\n \treturn intval($time / 1000) % 60;\n }", "function getElapsedSeconds() {\n\t\treturn $this->time;\n\t}", "publi...
[ "0.78189534", "0.73285294", "0.7259209", "0.72310925", "0.71272033", "0.69883496", "0.68861526", "0.68740344", "0.68660873", "0.6864612", "0.68554425", "0.68518794", "0.6835165", "0.68146384", "0.6797688", "0.6743643", "0.6728188", "0.6713151", "0.67122394", "0.67092484", "0....
0.0
-1
/ offset in seconds
public function setTimeZoneOffset( $offset ) { $this->timezone_offset = $offset; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOffset(){\r\n $t=time()+microtime()-$this->api->start_time;\r\n $res=$t-$this->offset;\r\n $this->offset=$t;\r\n return $res;\r\n }", "private function get_offset() {\n\t\treturn ( (time() - $this->skew) % ($this->lifetime + $this->skew) );\n\t}", "protected function ...
[ "0.72530854", "0.69455636", "0.6932639", "0.69000256", "0.68429065", "0.663119", "0.6627468", "0.6375547", "0.63315636", "0.63138664", "0.61983657", "0.6099405", "0.60966396", "0.60865575", "0.60449415", "0.60341126", "0.60165346", "0.5903255", "0.58942294", "0.58442086", "0....
0.0
-1
Add and edit function in one method
public function save($id = null) { if(empty($id)){ if ($this->request->is('post')) { $this->Supplier->create(); if ($this->Supplier->saveAssociated($this->request->data)) { //Magic saveAssociated function $this->Flash->su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(){\n $this->edit();\n }", "public function edit() {\n\t\t\t\n\t\t}", "public function edit()\n\t{\n\t\t//\n\t}", "public function edit()\n\t{\n\t\t\n\t}", "public function edit( )\r\n {\r\n //\r\n }", "public function edit()\r\n {\r\n //\r\n ...
[ "0.76721567", "0.7498406", "0.73867285", "0.73668563", "0.7321171", "0.7305307", "0.7305307", "0.72514564", "0.7241225", "0.7174917", "0.7166391", "0.7166391", "0.7166391", "0.71651834", "0.7154125", "0.7154125", "0.7154125", "0.7153819", "0.71444356", "0.713599", "0.713599",...
0.0
-1
Example middleware invokable class
public function __invoke(Request $request, Response $response, $next) { $route = $request->getAttribute('route'); $session = $this->container->session; $user_id = $session->getVar('userid', 0); if (!$this->hasAccess($route, $user_id)) { $router = $this->container->router...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get(): Middleware;", "public function getMiddleware();", "public function middleware()\n {\n // TODO: Implement middleware() method.\n }", "private static function middleware()\n {\n $files = ['Filters', 'Middleware'];\n $folder = static::$root.'Http/Middleware'....
[ "0.72244614", "0.71935344", "0.70709306", "0.6746728", "0.66919494", "0.6510601", "0.6387525", "0.63849556", "0.63401264", "0.6336634", "0.6306557", "0.6207183", "0.619368", "0.6193426", "0.61835295", "0.6145894", "0.6142988", "0.6067079", "0.6032965", "0.5985332", "0.5973016...
0.0
-1
Display a listing of the users.
public function index() { //Não vai existir }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function list()\n {\n $listUsers = AppUser::findAll();\n $this->show('back/user/list', [\"users\" => $listUsers]);\n }", "public function userList() {\n /** @var User[] $users */\n $users = $this->entityManager->getRepository(\"Entity\\\\User\")->findAll(); // Retrieve al...
[ "0.84978604", "0.8424922", "0.8382446", "0.8369435", "0.8355932", "0.8318713", "0.82194597", "0.8214937", "0.82096994", "0.8201803", "0.819085", "0.8157125", "0.8146758", "0.8082202", "0.8064668", "0.80488336", "0.80327445", "0.8001808", "0.7992122", "0.79866624", "0.79777277...
0.0
-1
Show the form for creating a new user.
public function create() { if(Auth::user()) { return redirect('/'); } $locations = Location::all(); //busca todos os países na base de dados locations return view('users.create', compact('locations', $locations)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newUserAction()\n {\n $user = new User();\n\n $form = $this->createForm(UserType::class, $user);\n\n return $this->render('GrtResBundle:User:form.html.twig', array(\n 'form' => $form->createView()\n ));\n }", "public function showUserCreationForm()\n ...
[ "0.8325336", "0.8320299", "0.8224984", "0.8186878", "0.81729275", "0.8164761", "0.8090949", "0.80711204", "0.80502844", "0.80146444", "0.8013211", "0.8011888", "0.8008955", "0.800888", "0.79978997", "0.79958636", "0.7989843", "0.7989178", "0.7989178", "0.79677856", "0.79656",...
0.0
-1
Show the form for receiving an email and reset password.
public function indexForgotten(Request $request) { return view('users.forgotten-password'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showPasswordResetForm()\n\t{\n\t\t# if we get here then forget the redirect value as the user will presumably always want to go back to \n\t\t# the log-in screen after requesting a password reset\n\t\tSession::put('ignoreRedirect', true);\n\n\t\t# the reset request succeeded\n\t\tif(Session::has('s...
[ "0.770645", "0.7644647", "0.7390729", "0.7374672", "0.7365633", "0.73515415", "0.73515415", "0.722683", "0.72263473", "0.7149228", "0.70756054", "0.70602167", "0.70522314", "0.7044608", "0.7043371", "0.7042462", "0.6995902", "0.6953199", "0.69472796", "0.6892269", "0.68674254...
0.0
-1
TODO: falta ajustar Show the form for creating a new password.
public function createNewPassword(Request $request) { return view('users.reset-password'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function new_password_form()\n {\n $markers = array();\n $markers['errors'] = $this->Register['Validate']->getErrors();\n if (isset($_SESSION['FpsForm'])) unset($_SESSION['FpsForm']);\n\n\n $markers['action'] = get_url('/users/send_new_password/');\n $source = $this->re...
[ "0.80616045", "0.7684239", "0.7646801", "0.75258684", "0.75046504", "0.74696034", "0.74666655", "0.74477726", "0.7429513", "0.7419797", "0.73968446", "0.7364836", "0.73550475", "0.73549026", "0.7352263", "0.7333145", "0.72306854", "0.7224862", "0.71950847", "0.7187927", "0.71...
0.0
-1
Store a newly created user in storage.
public function store(ValidatingUserRegisterForm $request) { $data = $request->except('_token'); $data['password'] = Hash::make($data['password']); $data['img'] = 'no-photo-icon.png'; //configura imagem default para novo usuário $user = User::create($data); $role = Role::select('id')->where('name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n\t{\n\t\t$user = $this->user->store( Input::all() );\n\t}", "public function store()\n {\n $attributes = request()->validate([\n 'name' => 'required|max:255',\n 'username' => 'required|unique:users,username',\n 'email' => 'required|email|max:255...
[ "0.7977994", "0.7891813", "0.75408196", "0.73961365", "0.73023385", "0.72862226", "0.725491", "0.72042626", "0.7187874", "0.71762484", "0.715708", "0.7143125", "0.7140137", "0.7129351", "0.71151006", "0.71122867", "0.70378095", "0.70330864", "0.70203406", "0.6998708", "0.6986...
0.0
-1
Display the specified resource.
public function show($id, Request $request) { $user = User::find($id); $userName = explode(' ', $user->name); $message = $request->session()->get('message'); if (Auth::user()->email == $user->email) { // VAGAS // busca todas as vagas do usuário $vacancies_table = DB::table('user_va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit(User $user, Request $request) { if (Auth::user()->email == $user->email) { $locations = Location::all(); //busca todos os países na base de dados locations $message = $request->session()->get('message'); return view('users.edit', compact('user','locations','message')); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(ValidatingUserEditForm $request, User $user) { $user->name = $request->userFullName; $user->email = $request->userEmail; $user->location_id = $request->userCountry; $user->phone = $request->userPhone; $user->address = $request->userAddressStr; $user->address_number =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy(User $user) { //TODO: montar excluir usuário }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
update model and only pass in the fillable fields
public function update(Request $request) { $this->model->update($request->only($this->model->getModel()->fillable), $request->id); return response()->json($this->model->show($request->id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function updateModel();", "protected function _updatefields() {}", "public function testUpdateExtraFields(): void { }", "function update(){\n\t\t$this->model->update();\n\t}", "public function testUpdateModelSet()\n {\n }", "function update($field, $value, $model)\n {\n }",...
[ "0.7460964", "0.69655836", "0.66231287", "0.65549284", "0.6497529", "0.646454", "0.6455769", "0.63644964", "0.63113445", "0.6308253", "0.6289007", "0.6279021", "0.62369347", "0.62186605", "0.6215565", "0.614767", "0.61346143", "0.61302584", "0.61150753", "0.61005", "0.6076777...
0.5953896
29
fungsi untuk mengambil waktu sekarang
function getDateTime() { return (new DateTime('now'))->format('Y-m-d H:i:s'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tampil_bentuk_sedia(){\n $data['login'] = 'Halaman Login';\n $data['title'] = 'Kelola Satuan Sedia';\n $data['query'] = $this->m_barang->tampil_satuan_sedia();\n $this->template->load('static','barang/satuan/satuansedia', $data);\n }", "function berinamateman ($teman) {\n ...
[ "0.68992054", "0.6580212", "0.65088505", "0.6450263", "0.6443442", "0.64433736", "0.6428101", "0.6409441", "0.64052415", "0.6402224", "0.63957804", "0.6395323", "0.6383288", "0.6378791", "0.6377201", "0.6369719", "0.63499665", "0.63440156", "0.6341131", "0.6329661", "0.632587...
0.0
-1
mengambil data user yg login
function user() { return isset($_SESSION['user']) ? \Models\User::find($_SESSION['user']) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLogin();", "public function getLogin();", "public function getLogin();", "private function login(){\n \n }", "function get_userdatabylogin($user_login)\n {\n }", "public function login();", "public function login();", "private function sessionLogin() {\r\n $t...
[ "0.6863907", "0.6863907", "0.6863907", "0.6823112", "0.67430097", "0.6727759", "0.6727759", "0.671942", "0.6654", "0.6616035", "0.6603831", "0.6592929", "0.6589889", "0.6489692", "0.6480355", "0.6447294", "0.643399", "0.6421071", "0.64206177", "0.6413082", "0.6336544", "0.6...
0.0
-1
fungsi untuk menulis log
function writeLog($text) { $file = fopen("../log.txt", "a+") or die("Unable to open file!"); fwrite($file, $text . "\n"); fclose($file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function log() {\n }", "public function log($log);", "public function log($log) {\n //$this->log = $log;\n }", "function log()\n {\n }", "public function log()\n {\n $this->appendLog('log', \\func_get_args());\n }", "function changeLogs() {\n\n }", "function log($...
[ "0.77604216", "0.7690199", "0.76225424", "0.75519484", "0.7499335", "0.73860186", "0.7283939", "0.7266439", "0.7107609", "0.7100534", "0.7067475", "0.7058697", "0.70411104", "0.70120126", "0.7000011", "0.69713634", "0.69698614", "0.6964543", "0.69456565", "0.69372445", "0.690...
0.0
-1
fungsi untuk membaca log pengguna
function readLog() { $file = fopen("../log.txt", "r"); while (!feof($file)) { $text = fgets($file); $line = explode('_', $text); if (isset($line[1])){ if (!isset($log[$line[0]])) $log[$line[0]] = []; array_pus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function log_info($attr)\r\n {\r\n try\r\n {\r\n $logindata=$this->session->userdata(\"admin_loggedin\");\r\n return $this->write_log($attr[\"msg\"],decrypt($logindata[\"user_id\"]),($attr[\"sql\"]?$attr[\"sql\"]:\"\"));\r\n }\r\n catch(Exception $err_obj...
[ "0.70409", "0.70409", "0.70409", "0.70099217", "0.69143885", "0.6909542", "0.6905303", "0.6900457", "0.6891625", "0.6873019", "0.6871168", "0.6870433", "0.68411607", "0.6838295", "0.68371564", "0.68205917", "0.6811551", "0.6796058", "0.67258644", "0.6695385", "0.66761523", ...
0.0
-1
Returns information on a user.
public function get($user) { return $this->makeRequest('get', "/users/{$user}"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserInfo()\n {\n return $this->_process('user/info')->user;\n }", "function getUserInfo(){\n\n\t\t/* Fetch user info from Flickr */\n\t\t$user = $this->askFlickr('people.getinfo','user_id='.$this->user);\n\n\t\t/* Return User info */\n\t\treturn $user;\n\t}", "public function ge...
[ "0.81525236", "0.81124127", "0.8033031", "0.80057615", "0.7858954", "0.7805747", "0.77782476", "0.77782476", "0.77782476", "0.77782476", "0.77782476", "0.77782476", "0.77782476", "0.7729571", "0.7676437", "0.7664914", "0.7664103", "0.7638963", "0.76306313", "0.76062924", "0.7...
0.0
-1
Returns a list of emoticons that the currently authenitcated user is authorized to use. Authentication is required. Required scope: user_subscriptions
public function getAuthenticatedEmotes($user) { return $this->makeRequest('get', "/users/{$user}/emotes"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find_emoticons()\n {\n if (!is_null($this->EMOTICON_CACHE)) {\n return $this->EMOTICON_CACHE;\n }\n $rows = $this->connection->query_select('smilies', array('*'));\n $this->EMOTICON_CACHE = array();\n foreach ($rows as $myrow) {\n $src = $...
[ "0.620023", "0.5851211", "0.5702223", "0.55356514", "0.54271233", "0.5394965", "0.5339925", "0.5306913", "0.52977407", "0.5286911", "0.5286805", "0.5284953", "0.5277632", "0.5277615", "0.5252867", "0.5247422", "0.5224818", "0.521768", "0.5217433", "0.5196056", "0.51900446", ...
0.60182273
1
Returns the currently authenticated user's information. If the user's registered Email Address is not verified, null will be returned. Authentication is required. Required scope: user_read
public function getAuthenticated($user) { return $this->makeRequest('get', "/user"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserInfo()\n {\n $CI = &get_instance();\n if (!$this->loggedIn()) {\n return null;\n } else {\n $id = $CI->session->userdata('user_id');\n return $CI->user_model->get($id);\n }\n }", "public function user_info() {\n if (...
[ "0.77322865", "0.7501728", "0.7487985", "0.74824005", "0.7353201", "0.73199815", "0.72836107", "0.72814626", "0.7254474", "0.7243872", "0.72340024", "0.72238094", "0.71814936", "0.71681863", "0.71671766", "0.71671766", "0.71671766", "0.71216", "0.7120387", "0.71201956", "0.70...
0.0
-1