query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
84406928fffebfd1473f5c0f83a9a5e2
Triggered on thank you hook, it will delete currency session.
[ { "docid": "16f837a9495a2e93ce90344d6f2d2a99", "score": "0.7407249", "text": "public function delete_currency_session() {\n\t\tWC()->session->__unset( self::ORIGINAL_CURRENCY_SESSION );\n\t\tWC()->session->__unset( self::CURRENCY_TIMES_SWITCHED_SESSION );\n\t\tWC()->session->__unset( self::CURRENCY_BYPA...
[ { "docid": "ae57811d28eafd9eb0a7d309bcd947c3", "score": "0.66348195", "text": "public function removeCCGV(){\n\t\tif (Session::exists('credit_covers') === true) Session::remove('credit_covers');\n\t\tif (Session::exists('cot_gv') === true) Session::remove('cot_gv');\n\t\t// End - CREDIT CLASS Gift Vouch...
51f1faf4b741d4b79b426ac190c71952
///////////////////// Utility functions. ///////////////////// Creates a frontend user in the mapper (in memory), a city in the database and a object in the database with that user as owner and that city.
[ { "docid": "e4e6c61bfdcf970f1b8e83aaba56cb0f", "score": "0.61929053", "text": "private function createObjectWithOwner(array $userData = array()) {\n\t\t$owner = tx_oelib_MapperRegistry::get('tx_realty_Mapper_FrontEndUser')\n\t\t\t->getLoadedTestingModel($userData);\n\t\t$this->ownerUid = $owner->getUid(...
[ { "docid": "4df557281eec63b86647a4b935ff2f8b", "score": "0.60644984", "text": "private function buildUserObject ()\n\t{\n\t\tif (!isset($_SESSION[config::APP_NAMESPACE]))\n\t\t\t\t$this->reloadTarget(config::LOGIN_URL);\n\t\t\t$id = $_SESSION[config::APP_NAMESPACE];\n\t\t\t$this->user = (object) $this->...
760f59914ff2e90ce387dcc6b19f0b6c
Don't show the date in the Google preview for WooCommerce products, since Google does not show dates for product pages in the search results.
[ { "docid": "05b58b50fd3f74249aa8bbca39825492", "score": "0.0", "text": "public function remove_meta_description_date($values, $post)\n {\n }", "title": "" } ]
[ { "docid": "6ed2580a3dc8c0f7b38f86f25b4c0f17", "score": "0.62187123", "text": "function my_epl_display_sold_date() {\n\tglobal $property;\n\n\t$sold_date = $property->get_property_price_sold_date( '' );\n\n\tif ( $sold_date ) {\n\t\t?>\n\t\t<div class=\"sold-date\">\n\t\t\t<span><?php echo esc_html( $so...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "cb2be71498e33b4889b92af1f0833fb7", "score": "0.0", "text": "public function edit($id)\n\t{\n\t\t//\n\t\t$accion = Accion::find($id);\n\n\t\t$actuador = $accion->actuador()->first();\n\n\t\t$habitacion = $actuador->nodo()->first();\n\n\t\t$dia_sem = array();\n\t\t$dias = DB::table('acciones_d...
[ { "docid": "d7ce48ce019e0bea04d049b9105b5e4d", "score": "0.7734901", "text": "public function edit(Resource $resource)\n {\n return view('dashboard.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "84ff2076d8b6fd70c23777380e8adaff", "score": "0.71830827...
f122f3f1d676d2b3e5b1942fa1f00663
returns scripts used by this module
[ { "docid": "574b3d4a013040593309d604eb9f74e4", "score": "0.82016724", "text": "function getScripts () {\r\n\r\n }", "title": "" } ]
[ { "docid": "638a48df111ce695b82cf4b9f068ec96", "score": "0.82958966", "text": "public function getScripts();", "title": "" }, { "docid": "29f820815255cf5eb3d909245d37450d", "score": "0.7913342", "text": "protected static function getScripts() {\n return [];\n }", "title...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "eabbb193d9e49e01601ceefd39ab6ec8", "score": "0.0", "text": "public function create()\n {\n return view('sponsorship.create');\n }", "title": "" } ]
[ { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75663006", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n ...
1e98f9e3c7b41ec988d845049d1addeb
Returns whether the object has ever been saved. This will be false, if the object was retrieved from storage or was created and then saved.
[ { "docid": "ce65f6c0fec1bd772db7c28262d67b99", "score": "0.0", "text": "public function isNew()\n {\n return $this->new;\n }", "title": "" } ]
[ { "docid": "ca338f7bbe3ca1008d6ec6169d6e4760", "score": "0.83735126", "text": "public function isSaved(): bool\n {\n return $this->saved;\n }", "title": "" }, { "docid": "aa529043a4171c668b4176ce7afc1687", "score": "0.83015186", "text": "public function isSaved(): bool\n...
2e0a94e7ebebe7cd8649d70c1a584965
Prepare a value for INI.
[ { "docid": "2ebdcda856fa359e1efcec33e774215d", "score": "0.47987574", "text": "protected function prepareValue($value)\n {\n if (is_int($value) || is_float($value)) {\n return $value;\n }\n\n if (is_bool($value)) {\n return $value ? 'true' : 'false';\n ...
[ { "docid": "b2c54fdc893f3303bacd77a9034d0459", "score": "0.6059945", "text": "public static function prep_value($value)\r\n\t{\r\n\t\treturn static::$instance->prep_value($value);\r\n\t}", "title": "" }, { "docid": "d806862f37ee320ce48ef6cd663c5eeb", "score": "0.57789856", "text": "f...
94fcc7fbaea0c24a9b15c268fdc9be64
WordPress pre 4.5 we need to make sure that uicore|widget|mouse are loaded before sortable.
[ { "docid": "debf1454bc5c288126c258007a50130f", "score": "0.73514", "text": "function fl_before_sortable_enqueue_callback() {\n\n\tif ( version_compare( get_bloginfo( 'version' ), '4.5', '<' ) ) {\n\t\twp_deregister_script( 'jquery-ui-widget' );\n\t\twp_deregister_script( 'jquery-ui-mouse' );\n\t\twp_der...
[ { "docid": "ae42aacfcb84c3b75b2a65b03e0fee2b", "score": "0.7472995", "text": "function init_sortable_widgets(){\n add_action( 'admin_enqueue_scripts', array( $this, '_sortable_widgets_js' ) );\n add_action( 'admin_head', array( $this, '_admin_css' ) );\n }", "title": "" }, { "docid": ...
bb2b35de5b5d9592434e7aaad10de5db
Zwraca daty z miesiecy ktore obejmuje ta kolekcja
[ { "docid": "5ae0c20bc53ad1ef831c44b760a74337", "score": "0.0", "text": "public function iterateMonths() {\n\t\t$used = array();\n\t\tforeach($this->days as $oDate) {\n\t\t\tfalse && $oDate = new Date();\n\t\t\t$k = $oDate->getMonth() . '-' . $oDate->getYear();\n\t\t\tif (!$used[$k]) {\n\t\t\t\tyield $oD...
[ { "docid": "0af116ae74f8180db3d094462d2c263b", "score": "0.63583195", "text": "public function zapocniKonverzaciju()\n\t{\n\t\t$text = $_POST['knjiga'];\n\n\t\t$korisnik1 = $this->session->get(\"korisnik\")->IdK;\n\t\t$korisnik2 = $_POST['primalac'];\n\n\t\t$razgModel = new ModelRazgovor();\n\n\t\t//ins...
09ca35f969f2af4893e68f1d8e5a9b5c
Get a list of maps attached to the post
[ { "docid": "d9ea9280429248c9d025efe0b317e748", "score": "0.7634387", "text": "function get_post_map_list($postid) {\r\n\t\tglobal $wpdb;\r\n\t\t$posts_table = $wpdb->prefix . 'mappress_posts';\r\n\r\n\t\t$results = $wpdb->get_results($wpdb->prepare(\"SELECT postid, mapid FROM $posts_table WHERE postid =...
[ { "docid": "b1438d0661a92b66177a2dd34b5529cd", "score": "0.66991824", "text": "public function getMaps()\n {\n return $this->_maps;\n }", "title": "" }, { "docid": "b1438d0661a92b66177a2dd34b5529cd", "score": "0.66991824", "text": "public function getMaps()\n {\n ...
5daff914b4b9dae35796d7de3babedf6
OneToMany (owning side) Remove ComprasOrdemItem
[ { "docid": "a17bfe6de10610e7e7426813fd835664", "score": "0.56751335", "text": "public function removeFkComprasOrdemItens(\\Urbem\\CoreBundle\\Entity\\Compras\\OrdemItem $fkComprasOrdemItem)\n {\n $this->fkComprasOrdemItens->removeElement($fkComprasOrdemItem);\n }", "title": "" } ]
[ { "docid": "61b42b4e585c9b83998313afe728312a", "score": "0.6253855", "text": "public function clearRelated();", "title": "" }, { "docid": "b4446eae315cf3236454f9c70f752666", "score": "0.6154292", "text": "public function remover() {\n\n $oDaoBpaMagnetico = new cl_lab_bpamagnet...
b5326d6296b10ade72a2da3774b30cf2
Fatal error: Access level to Cat::cry() must be public (as in class Animal)
[ { "docid": "1aa714958c0acb3f6c0580f3f8632282", "score": "0.46444193", "text": "public function cry()\n {\n echo '小猫喵喵叫~';\n }", "title": "" } ]
[ { "docid": "5a2aaa24dd7cb3bdc80e384aed880f0e", "score": "0.54289114", "text": "public function Con_Animal(){\n // TODO\n }", "title": "" }, { "docid": "da39b580dfbc0d512c5296e96f7ac044", "score": "0.5406416", "text": "abstract protected function category();", "title": "" },...
6970732bc770b3c105805b7115026b45
BUSCA FRETE DA API DOS CORREIOS
[ { "docid": "7140ebec153a5f731161313f23306592", "score": "0.54786485", "text": "private function getApiCorreios($transporte, $produto, $cep_destino){\n\n $array['nCdEmpresa'] = ($transporte['codAdministrativo']) ? $transporte['codAdministrativo'] : '';\n $array['sDsSenha'] = ($transporte['s...
[ { "docid": "85c11255d273fb1c9ab703ce1a868088", "score": "0.64352584", "text": "function clonarOP(){\n $this->procedimiento='tes.ft_obligacion_pago_ime';\n $this->transaccion='TES_REPOP_IME';\n $this->tipo_procedimiento='IME';\n\n //Define los parametros para la funcion\n ...
160aa472c8fe1dfc35be3dcd5f65b0e8
/ prints error message
[ { "docid": "2e60fa21b00ecc51ffb9891c67acab9f", "score": "0.0", "text": "private static function error($controller, $action, $msg=NULL){\n echo \"<h1>Error occurred</h1><p>$msg</p>\";\n exit(0);\n }", "title": "" } ]
[ { "docid": "ff121d73b3325c3721a582f60c0fe1ef", "score": "0.7772783", "text": "public function error();", "title": "" }, { "docid": "97b8a0cf9a65d4ed45572cc26f8ddf04", "score": "0.76964396", "text": "abstract public function error();", "title": "" }, { "docid": "97b8a0cf9a...
787035bc8e3c36432dfee2d0b86d0ddc
Get the path to the application "app" directory.
[ { "docid": "5a90ce1bb0e4f570beb1c7ad7071d7d8", "score": "0.78055686", "text": "public function path()\n {\n return $this->basePath.DIRECTORY_SEPARATOR.'app';\n }", "title": "" } ]
[ { "docid": "3fd785b010911f0c4c87f4fc3ab9e8b6", "score": "0.8877233", "text": "public function getAppPath() {\n return str_replace('\\\\', '/', realpath($this->appDir));\n }", "title": "" }, { "docid": "a358ecef2daf08ed19a20e085a763d11", "score": "0.87416685", "text": "publi...
a85e260dd2e6e462a217a94383d34f85
Register any application services.
[ { "docid": "011346c6589e19b161889b4094b34fc4", "score": "0.0", "text": "public function register()\r\n {\r\n App::bind(ILocationCAD::class, LocationCAD::class);\r\n App::bind(ILocationCAN::class, LocationCAN::class);\r\n App::bind(IServiceLogsCAD::class, ServiceLogsCAD::class);\r...
[ { "docid": "fbbb425b3bd02bbcc276621894741fe7", "score": "0.7714091", "text": "public function register()\n {\n// $this->registerServices();\n $this->registerRepositories();\n }", "title": "" }, { "docid": "f4bce7ab24b860b65455405e7af802e6", "score": "0.76522887", ...
f15be84d7cf7e910bf64b78dd646bc0f
Return action message for history log
[ { "docid": "20e72e8ebe2a75a0c499bac47dc6bff6", "score": "0.6382086", "text": "public function getHistoryMessage($args = array())\n\t{\n\t\t$incrementId = isset($args['increment_id']) ? $args['increment_id'] : '';\n\t\treturn df_h()->reward()->__('Earned points for order #%s.', $incrementId);\n\t}", ...
[ { "docid": "9f0355284295d6c67bd9686c4f8c1855", "score": "0.65113485", "text": "public function getName() {\n\t\treturn \"log_action\";\n\t}", "title": "" }, { "docid": "e8b5656b266f8277607b3ad10a1bae08", "score": "0.6172861", "text": "function _log_action($action = '')\n\t{\n\t\tglob...
33b0b5768df228b3024cf55a05133955
A way to get all the currently 'hot' artists Uses last.fm at the moment, could change later
[ { "docid": "44d202e8ee89d28e58bda106f5f94684", "score": "0.6771763", "text": "public function hot() {\n\t\t$this->set('artists', $this->Artist->getHot(8));\n\t}", "title": "" } ]
[ { "docid": "fafbf95d6ff8f6816791b4f9cb0f0b34", "score": "0.704185", "text": "public function GetAllArtist()\r\n {\r\n $html = $this->LoadSite(\"http://www.eachamps.rw/audios\");\r\n $c = HtmlPageCrawler::create($html);\r\n $links = $c->filter('.tabcontents #view2 .scroll-pane .pa...
d2e6a55072549a661ff599e7b5112d32
Get the fields available on the action.
[ { "docid": "e53d261b0050462f8a70085c68e4eca0", "score": "0.0", "text": "public function fields()\n {\n $data = \\App\\Collection::query()\n ->orderBy('count', 'DESC')\n ->pluck('name', 'id')\n ->toArray();\n return [\n SelectAutoComplete::mak...
[ { "docid": "fbcb81ed29ba972b1535b534c6090f35", "score": "0.76794356", "text": "final private function action_fields() {\n\t\techo json_encode( array(\n\t\t\t'fields' => $this->_fields,\n\t\t\t'required' => $this->_required,\n\t\t));\n\t}", "title": "" }, { "docid": "d0033b2bfffa85cdb4f9369...
3db22ff6ebfcb14b7c19b8e39f7b2bd3
Function for generating vouchers.
[ { "docid": "1dc1ad0ec001109058d7d380b00df31f", "score": "0.4653837", "text": "public function generateVoucher($minutes = 60, $count = 1, $numberOfUsage = 4, $note = null, $upSpeed = null, $downSpeed = null, $totalMB = null)\n {\n return self::$uniFiClient->create_voucher($minutes, $count, $num...
[ { "docid": "c4c9f4e5070adf19f9913662f8bf5672", "score": "0.6959568", "text": "public function action_generate()\n {\n\n $id_offer = Input::post(\"id_offer_gen\");\n $expiration_date = Input::post(\"date_expiration\");\n\n $recipients = \\Model_Recipient::find('all');\n\n /...
c536d2a82ffe6fcdc0049f91208cd188
Gets the instance of the View
[ { "docid": "4745e282952c35d8df19a7b0e2e2c3b7", "score": "0.0", "text": "public static function getInstance(){\n if( self::$instance === null ){\n self::$instance = new self();\n }\n return self::$instance;\n }", "title": "" } ]
[ { "docid": "bb5dea0ff81a828fe32385dfa5878532", "score": "0.8054523", "text": "protected function _view()\n {\n if (!$this->_view) {\n $this->_view = \\Core\\View::getInstance();\n }\n return $this->_view;\n }", "title": "" }, { "docid": "fbd89f00eb5efadb...
3c29a7ad437fe4613d19e59cc70077ad
Retrieves the raw result
[ { "docid": "970b3d66db82016bef6dde1f0a7dacea", "score": "0.8254048", "text": "function getRawResult()\n {\n return $this->_raw_result;\n }", "title": "" } ]
[ { "docid": "fee6ca042cb7b7a7534ccb393ed8e0ce", "score": "0.8654125", "text": "public function getRawResult();", "title": "" }, { "docid": "f060351cd064680258cf40af1011c87a", "score": "0.7553329", "text": "public function getRawResponse()\n {\n return $this->execute(false);\...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "3466d9dff55537179a6b4dbf5ccab133", "score": "0.0", "text": "public function create()\n {\n $page_title = 'Tambah Master Kupon';\n return view('view_kupon.create',compact('page_title'));\n }", "title": "" } ]
[ { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75663006", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n ...
d44b00db19a0535f11425bbc0ad42b69
checks if analysis with specified parameters is already done and cached in local store. If so, returns cached result
[ { "docid": "e81daac7f02e4d2ca01944e096d71a16", "score": "0.62183636", "text": "protected function isAnalysisCached(){\n\t\t// one more criteria should be added for user authorization.\n\t\t// Analysis request may come from different users for different \n\t\t// domain, source etc. \n\t\treturn smongo::$...
[ { "docid": "99098f35dbdf97195cb45e4fd17be741", "score": "0.63279456", "text": "protected function cacheAnalysis($result){\n\t\tsmongo::$db->analysis->insert($result);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "ce89b953cd29f71e0662be72577ca6d6", "score": "0.5725143", "text...
d39d595318bf00ac5a1ff84c16ba0179
Absorb the build from git.
[ { "docid": "2ea1ac473c4f9d3570afda8dbbff1743", "score": "0.79937714", "text": "private function absorbBuild()\n {\n if (($type = $this->config->get('build.git_absorb')) === false) {\n return;\n }\n\n $config = $this->config->getRoot();\n\n $config['build']['numb...
[ { "docid": "cd7dbae20affffd816a6f6300e8c7efe", "score": "0.60403705", "text": "private function absorbVersion()\n {\n if (($type = $this->config->get('current.git_absorb')) === false) {\n return;\n }\n\n $version = $this->git->extractVersion(\n $this->git->g...
042ccd567b21942a9bd4ca21fa34db10
/! \brief Function that delete the first index of an array \param[in]$inThe array \returnReturn the array without the first index
[ { "docid": "a9041cd356fdb5cff0027a9cd233b087", "score": "0.715564", "text": "function deleteFirst($in){\n\t\treturn deleteIndex($in, 0);\n\t}", "title": "" } ]
[ { "docid": "b3ce71f701b0d39600ae5767f4b9fdfe", "score": "0.70402986", "text": "function shoestrap_array_delete( $idx, $array ) { \n unset( $array[$idx] );\n return ( is_array( $array ) ) ? array_values( $array ) : null;\n}", "title": "" }, { "docid": "e791476bbae84a4479ac3dbcf3274966", ...
e7fb1283598f2703a7d1d8620389e92d
1 Admin App , 2 Admin Sekolah
[ { "docid": "74d042544a4a54344666da849fa3d90f", "score": "0.0", "text": "public function edit($id)\n {\n // if (Auth::user()->role_id !== 1){\n // return abort(401); \n //}\n\n $user = Admins::findOrFail($id);\n $roles = Roles::all();\n // $karyawan = Karyaw...
[ { "docid": "c9c3f4b08d2ce4b9770298d1e45e5012", "score": "0.7055417", "text": "public function admin();", "title": "" }, { "docid": "ff26487a8acf761fd57d5704d29e4ae3", "score": "0.6846866", "text": "public function admin() {}", "title": "" }, { "docid": "25ce3e9cae65b06628...
d9bf71a72fd8d1084dcc5a80cab91cc7
Constructor to create a valid object
[ { "docid": "298e4bd7a4e83c6dd43d8bb18c10e416", "score": "0.0", "text": "public function __construct($strSystemid = \"\") {\n //base class\n parent::__construct($strSystemid);\n\n $this->objSortManager = new class_pages_sortmanager($this);\n }", "title": "" } ]
[ { "docid": "130418f7cb2e409a53c4b649aee236c7", "score": "0.7260301", "text": "function _construct(){ }", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.7122245", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e87...
1eeee3e3e567d7a1aae4acd98e226c1c
initialize decks for a given user. The initialization is soft as it will be able to add new subquestions
[ { "docid": "5811bc00889b19110d520d290151b9a0", "score": "0.5715417", "text": "function flashcard_initialize(&$flashcard, $userid) {\n global $DB;\n\n // Get all cards (all decks).\n $select = 'flashcardid = ? AND userid = ?';\n $cards = $DB->get_records_select('flashcard_card', $select, arra...
[ { "docid": "b4b33e70d95928a99d21e041a5470b1f", "score": "0.6136086", "text": "private function init()\n {\n $this->setVariables($newcomer = false, $month = false, $em = true, $ids = false, $expense = false);\n $this->categories_for_user = $this->category_repository->findCategoriesByUser...
586f613fd4f96dca4991ccc8bec5def6
Test case for languageProfilesUpsert Language Profiles: Upsert.
[ { "docid": "904b8ef256c6838d20883d75ebd1e840", "score": "0.8302745", "text": "public function testLanguageProfilesUpsert()\n {\n }", "title": "" } ]
[ { "docid": "26eaf97c06b1d0a1a5b618bd6349c841", "score": "0.6128322", "text": "public function testPredefinedProfilesUpdatePredefinedProfile()\n {\n }", "title": "" }, { "docid": "91d63cada85506c340b3fcd02ad87057", "score": "0.5678561", "text": "public function testPredefinedPro...
2e640b2819e0e2483ca2c8015eacce77
Show the application dashboard.
[ { "docid": "d3a9b9fab616cf1bd8c5352ed0103a73", "score": "0.0", "text": "public function index()\n { \n $articles=Article::select('id','title','des','img')->get();\n return view('home')->with(['h1'=>$this->h1,'m'=>$this->m,'m2'=>$this->m2,'articles'=>$articles]);\n }", "title": ...
[ { "docid": "6ca363f07685b1b797386a6d50b6d019", "score": "0.75147176", "text": "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "title": "" }, { "docid": "b996d9240f711f5adb19e49d08fd67fc", ...
66a9cc52e7fc1dbadd09b269b0d771bc
Checks if Twitter Tweet counts is enabled in Sweet tooth configuration section.
[ { "docid": "668dc86a472fa723c9503c00a154520d", "score": "0.82510644", "text": "public function isTweetCountEnabled()\n {\n return Mage::getStoreConfigFlag('rewards/twitter/enableTweetCount');\n }", "title": "" } ]
[ { "docid": "8b80c01bb5c455608386f88fe5ba1810", "score": "0.71392566", "text": "public function isTweetingEnabled()\n {\n return Mage::getStoreConfigFlag('rewards/twitter/enableTwitterTweet');\n }", "title": "" }, { "docid": "7de10cb28b47e6e40af7c728a3e8e93f", "score": "0.659...
5dcb9175ab81057d47b6644fd8fc2ba9
/ Get all requisito activo
[ { "docid": "7c46647d6890d31d641e301f03db0808", "score": "0.7998188", "text": "function get_all_requisitoactivo()\n {\n $requisito = $this->db->query(\"\n SELECT\n r.*, b.beca_nombre, e.estado_descripcion, e.estado_color\n FROM\n `requisito` r...
[ { "docid": "bcd45e9a331148b173bdb52aeaa36c80", "score": "0.72356415", "text": "public function ListarInactivos()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$stm = $this->pdo->prepare(\"SELECT * FROM usuarios, tipousuario WHERE usuarios.idTipo=tipousuario.idTipo AND activo=0\");\n\t\t\t$stm->execute();\n\t\t\treturn $s...
2e8ffe812d86dd0325d4317194abd110
Admin trails create route
[ { "docid": "d95fe2ede5ec9c97a6f2e8b3b505fd7c", "score": "0.0", "text": "public function create(Trail $trail)\n {\n // Get all the hospitals\n $hospitals = Hospital::all();\n\n // Return admin trails create view\n return view('admin.trails.create', ['hospitals' => $hospital...
[ { "docid": "c1822c40947a437080483796e72e4471", "score": "0.73166287", "text": "public function create()\n {\n //Not Used because using API Route\n }", "title": "" }, { "docid": "63cd30631c266249d26f922c6e0613d9", "score": "0.6722936", "text": "public function create()\n ...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "3ca53e14e3e38135fa94fd05f5150494", "score": "0.0", "text": "public function index(ContractorDataTable $contractor)\n {\n // dd(app()->getLocale());\n // return Session::all();\n return $contractor->render('admin.contractors.index');\n }", "title": "" } ]
[ { "docid": "d37ee75c4feac8dcd7712d902a70bf82", "score": "0.7607344", "text": "public function listAction()\n {\n \t/**\n \t * @todo return a paginated and ordered list, selecting only valid elements (move valid clause to rowset)\n \t */\n \t$this->view->resources = $this->_table->fetchAll...
4557752ac75105483d98706b2226a87d
Get Network Interface information for a server. Get server's network interfaces. Returns IP addresses and net masks. This call will use zmrcd to call /opt/zimbra/libexec/zmserverips
[ { "docid": "a88b2ce99dc2482ca35196e5420c4056", "score": "0.6261978", "text": "public function getServerNIfs(Server $server, IpType $type = null)\n {\n $request = new \\Zimbra\\Admin\\Request\\GetServerNIfs(\n $server, $type\n );\n return $this->getClient()->doRequest($...
[ { "docid": "fa764e9b937c1eeef065e720a8a79eff", "score": "0.62304616", "text": "public function getNetworkInterfaces()\n {\n if (is_null($this->_all))\n {\n $this->_all = explode(\"\\n\", $this->getShellExec(self::NETWORKSETUP.\" | grep 'en' | grep -o en.\"));\n }\n\n return $this->_all...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "a661ce5e7c104ffb494cd03d67293e57", "score": "0.0", "text": "public function show(Inclusion $inclusion)\n {\n $this->authorize('show', $inclusion);\n\n return new InclusionResource($inclusion);\n }", "title": "" } ]
[ { "docid": "cc12628aa1525caac0bf08e767bd6cb4", "score": "0.7593495", "text": "public function view(ResourceInterface $resource);", "title": "" }, { "docid": "d57b314bf807713f346bc35fb937529e", "score": "0.6845801", "text": "public function render() {\n $this->_template->display($t...
4d9bbbf3cba6fa1bb4cdc7717913bd37
Determine if the user is authorized to make this request.
[ { "docid": "7dc5ba4f66129deb94fcdcf0df35f0c4", "score": "0.0", "text": "public function authorize()\n {\n return auth()->user()->can('update', $this->route('classroom_discipline_user'));\n }", "title": "" } ]
[ { "docid": "adc35a96694d73041eb8bde60a1a3a34", "score": "0.8355789", "text": "public function authorize()\n {\n // Only authenticated user can make this request\n if (Auth()->check())\n {\n return true;\n }\n return false;\n }", "title": "" }, ...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "761f978b91b59f9930eb0a8ed10d3b74", "score": "0.0", "text": "public function create()\n {\n return view('transaksi.create');\n }", "title": "" } ]
[ { "docid": "65c7e51c557119c4523c305976c470bc", "score": "0.80575514", "text": "public function create()\n {\n return view('Admin.acl.resource.form');\n }", "title": "" }, { "docid": "bb87b5e7b03ebf8127b27e4ff14ee77c", "score": "0.7914315", "text": "public function create...
eb3eb36e1da8034018ebbfcdd576e526
/////////////////////////////////////////////// Tests concerning access to the image upload. ///////////////////////////////////////////////
[ { "docid": "f3d8641ffe33303704a5a19958a5b487", "score": "0.0", "text": "public function checkAccessForImageUploadThrowsExceptionWithPleaseLoginMessageForAnInvalidUidAndNoUserLoggedIn() {\n\t\t$this->setExpectedException(\n\t\t\t'tx_oelib_Exception_AccessDenied', 'message_please_login'\n\t\t);\n\n\t\t$th...
[ { "docid": "b107068a5dd680fe755279d81665c1d8", "score": "0.8225248", "text": "public function testUploadOptionSetImage()\n {\n }", "title": "" }, { "docid": "cc640f407a5424ab2393e457988a5110", "score": "0.8173278", "text": "public function testUploadImage()\n {\n// St...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "bb28ad264f975b9f924d40421a112a2a", "score": "0.0", "text": "public function destroy($id)\n {\n Cart::remove($id);\n \n return redirect(route('panier.index'));\n }", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "6f5cb91b0423a11c78f100fc165554df", "score": "0.6959094", "text": "public function delete(ResourceInterfac...
54b779f0d94d9f1df21173d500f19ffa
Called by owning model.
[ { "docid": "7faf7cd112d6d4a3533bb37a82717e66", "score": "0.0", "text": "function Cleared(){}", "title": "" } ]
[ { "docid": "b6408c717c29f34496afaf584b18b025", "score": "0.6198525", "text": "protected function _postSaveRelatedRecords(){ }", "title": "" }, { "docid": "e5cf041c46405389186558e0cc86ec2b", "score": "0.616115", "text": "protected function afterSave(){}", "title": "" }, { ...
ae32125935a140c1e805b99ef7ca79e6
end of method register Login User method
[ { "docid": "1549a34187d617edefa08c89e88c0654", "score": "0.0", "text": "public function login() {\n $data['title'] = 'Sign In';\n \n //setting errors\n $this->form_validation->set_rules('username', 'Username', 'required');\n $thi...
[ { "docid": "ac663c28d060996ad5dffd435b0defa5", "score": "0.7721084", "text": "public function registerUser();", "title": "" }, { "docid": "1dda688b5a0b4df0b171bffb0d0a8ded", "score": "0.71939015", "text": "function register()\n\t{\n\t\tif($this->data)\n\t\t{\n\t\t\tif(!$this->isFree(...
fbd54493c3fe95aeef757c813992ae12
Get the products from the Basket
[ { "docid": "44ba2008210d18a0d66cec21467ffbd9", "score": "0.6470745", "text": "public function products(): Collection\n {\n return $this->products;\n }", "title": "" } ]
[ { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.7853867", "text": "public function getProducts();", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.7853867", "text": "public function getProducts();", "title": "" }, { "docid": "02d6fce4...
74d99e6f9cefa0216e663b78c62fbb04
Get all allowed currencies
[ { "docid": "c1e8f30afd3f66bfeeefc47697957ce9", "score": "0.7572188", "text": "public function getCurrencies()\n {\n return Mage::getModel('ml_converter/converter')->getAllCurrencies();\n }", "title": "" } ]
[ { "docid": "7851487edc9f9b500965bee534df3eff", "score": "0.8411949", "text": "public function getOptionAllCurrencies();", "title": "" }, { "docid": "ffceb262114a6f5be39c99760c392348", "score": "0.82192683", "text": "public function getAvailableCurrencies()\r\n {\r\n\t/*\r\n\t On...
f674bcc35f34ad229092e3a814cc226d
Constructs a coupon read service object.
[ { "docid": "ca1045de764aa63c97b0bfbacc963543", "score": "0.0", "text": "public function __construct(\n CartRepositoryInterface $quoteRepository,\n Totals $totals,\n QuoteIdMaskFactory $quoteIdMaskFactory\n ) {\n $this->quoteRepository = $quoteRepository;\n $this->qu...
[ { "docid": "0ef0ee16493bea6f9213648407a82214", "score": "0.586491", "text": "public function getById($id)\n {\n $coupon = null;\n\n $response = $this->request('coupons/' . $id);\n\n if (is_array($response) && is_array($response['coupon'])) {\n $coupon = new Resource($r...
1d3c3a5ce2d9c4971dd4027cd5c8a9ff
Page Data Rendering event
[ { "docid": "70098260caf46ec2d24e675ca9db27ad", "score": "0.0", "text": "function Page_DataRendering(&$header) {\n\n\t\t// Example:\n\t\t//$header = \"your header\";\n\n\t}", "title": "" } ]
[ { "docid": "05506e5950f68b2a1e4d6c4e5d49222b", "score": "0.7066581", "text": "public function renderPage();", "title": "" }, { "docid": "959baae0e4bb1d899a2bc054ba1fa016", "score": "0.67980355", "text": "protected function initPageRenderer() {}", "title": "" }, { "docid":...
6254fd8a69dc52a4c571d175bcae999f
_getFullName method this method will creata a full name to the user.
[ { "docid": "a0880d74ae1f666f91a4921eca3c782c", "score": "0.7450094", "text": "protected function _getFullName()\n {\n return $this->_properties['first_name'] . ' ' . $this->_properties['last_name'];\n }", "title": "" } ]
[ { "docid": "108a3ec699b0e7d6e2d1430068eae9b7", "score": "0.7973666", "text": "public function getFullName(){\n\t\treturn $this->user->getFirstName().' '.$this->user->getLastName();\n\t}", "title": "" }, { "docid": "ca44c2671a189035091bb78e59bc9fce", "score": "0.7904046", "text": "pub...
56559872530cc4c0794e7a719683cf0c
USADO PARA STATUS LEITURA EM PAG ANALISE
[ { "docid": "6655986950cf342e91b8f44a2630da58", "score": "0.0", "text": "public function recuperarFimLeitura($doc_id, $user_id = null)\n\n\t\t{ \t \n\t\t\t$user_id = (is_null($user_id)) ? auth()->id() : $user_id;\t\n\n\t\t\t$Acesso_fimLeitura = $this->where('doc_id', $doc_id)\n\t\t\t->where('tipo_id'...
[ { "docid": "226030e08b12da7e9b2c12d53af6577f", "score": "0.6955129", "text": "public function getStatus(){\n \n \t \n \tif(! $this->isVigente())\n \t\treturn $this->statusDescription[Plan::STATUS_CONCLUIDO];\n \t \n \t \n \tif ($this->DOCUMENTO_APROBATORIO === null) return $this->s...
0e71ac8467a2cc53c258fb2a0e14438b
returns list of supported filetypes of this parser
[ { "docid": "0852b04be296a46ff0f25b37b792c57f", "score": "0.8152007", "text": "public static function getSupportedFiletypes() : array\n {\n return static::$supportedFiletypes;\n }", "title": "" } ]
[ { "docid": "7991efc46fb6b46813e34663d3e52b98", "score": "0.7941198", "text": "public function getSupportedFileTypes(): SupportedFileTypes\n\t{\n\t\t// TODO: Implement getSupportedFileTypes() method.\n\t}", "title": "" }, { "docid": "8dd23ca048ce8a6e0b08df1fdcfadb1e", "score": "0.77492476...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "0dea886f93ebb55e9ba981cd5e7b23bc", "score": "0.0", "text": "public function update($id) {\n //\n }", "title": "" } ]
[ { "docid": "b4e3ef83b1a29ff10f6ec4e5a5ce3acd", "score": "0.65113205", "text": "public function update(Resource $resource, ResourceRequest $request)\n {\n $resource->update($request->only('name'));\n\n return redirect()->route('admin.resources.index');\n }", "title": "" }, { ...
334afee0fe3b6e82f2cee9ac994d75e5
Sets the 'scope' member. Defines the navigation scope of this web application's application context. This basically restricts what web pages can be viewed while the manifest is applied. If the user navigates the application outside the scope, it returns to being a normal web page. If the scope is a relative URL, the ba...
[ { "docid": "ae7e02d8fb82ccefa7b51905cc3d543b", "score": "0.6396727", "text": "public function setScope(string $value):void\n {\n $this->webManifest['scope'] = $value;\n }", "title": "" } ]
[ { "docid": "74a459b59e402ce6d9dd03c7a2dcab9b", "score": "0.62918836", "text": "public function setScope($scope = null);", "title": "" }, { "docid": "3135448ad133e1c944282d582fc72465", "score": "0.62148005", "text": "function setScope()\n {\n global $imSettings;\n $sc...
7565834f7989387a62cc3e6bf546ffe5
test login with valid parameters and expect a 201
[ { "docid": "11dcc5b93f27c61ca4299af0f0ad4fd3", "score": "0.0", "text": "public function testLoginSuccessAndGetOrdersOfService() {\n $request = $this->getRequest();\n $request->setMethod('POST');\n\n $service = $this->getRandomService();\n $service->setPassword(md5('testen'));...
[ { "docid": "68463a19eb2f1aec0bdaf6efcfcdb1b3", "score": "0.8026949", "text": "protected function login() {\n list($r, $s) = self::jsonRequest('POST', '/api/login',\n array(\n 'username' => $this::USER_EMAIL,\n 'password' => $this::USER_...
058c181b0c0991a48f2c3788098a7030
Sets the starting center point of the map.
[ { "docid": "01bac4598010dd80cc5ac89828e4b46b", "score": "0.44127145", "text": "public function defaultCenter($lat, $lng, $zoom = 10)\n {\n return $this->config([\n 'defaultCenter' => [\n 'lat' => $lat,\n 'lng' => $lng,\n ],\n 'defa...
[ { "docid": "6a9053a24fd5498964cafec7d9b13447", "score": "0.6044059", "text": "public function autoCenter()\n {\n $center = $this->bounds->getCenter();\n\n if($center->getLat() && $center->getLng()) {\n $this->setCenter($center->getLat(), $center->getLng());\n }\n\n ...
1e7f38bdd092db0d2ed3d8869d55988a
Get the details of this booking
[ { "docid": "c9edf5e980e057c440c3a4ec63677cd6", "score": "0.0", "text": "function dspDayBooking($id)\n{\n\t$query = \"SELECT m.first_name, m.last_name, b.booking_id, b.status, b.booking_date,\n DATE_ADD(b.booking_date, INTERVAL 14 DAY) AS deposit_due\n\tFROM edelweiss_days AS d, edelweiss_booking AS b, ...
[ { "docid": "d5f494e83169eef2f81dba20d6b9d534", "score": "0.77704346", "text": "public function getBooking()\n {\n return $this->booking;\n }", "title": "" }, { "docid": "322ac690c81e6c20221706ff788467e0", "score": "0.7753924", "text": "public function getBooking() {\n ...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "1c2f1908928bd932b2e366897ef33ea7", "score": "0.0", "text": "public function create() {\n\t\t$title = 'COREVAT';\n\t\t$title_section = 'Catálogo de Empresas';\n\t\t$titleGrid = 'Catálogo de Empresas';\n\t\t$row = $this->table;\n\t\t$rows = Empresas::orderBy('rs', 'asc')->get();\n\t\treturn Vi...
[ { "docid": "847f003a4addf6820c7b7d4e542cfa95", "score": "0.7909494", "text": "public function create()\n {\n $resource = $this->prepResource('create');\n $this->showBreadcrumb($resource, [null => 'Create New']);\n\n return $this->view(compact('resource'));\n }", "title": "...
ba9b6a8fe9c4f557838de18a0bf7f9b6
Enqueue scripts and styles.
[ { "docid": "bd68afae8332072c2c58b93b3b3be826", "score": "0.0", "text": "function grabjet_scripts() {\n\t\n\twp_enqueue_style('google-Roboto-font', '//fonts.googleapis.com/css?family=Roboto:300,400,500,700', array(), null );\n\twp_enqueue_style('google-Material-font', '//fonts.googleapis.com/icon?family=...
[ { "docid": "a5c67a74a8f6965c6affe9c64b24ab95", "score": "0.8440598", "text": "public function enqueueScripts() {}", "title": "" }, { "docid": "bd846b0b7767ea7f97bafacf9f4933f7", "score": "0.82236314", "text": "public function enqueueAssets ()\n\t\t{\t\n\t\t\tadd_action('wp_enqueue_sc...
4e452bbece585a6e400f0834721a716b
Fetch a result row as an object
[ { "docid": "9a144055ca1d6b4baad6163da0f7a2ac", "score": "0.0", "text": "public function fetchArray($result)\n {\n return mysql_fetch_assoc($result);\n }", "title": "" } ]
[ { "docid": "ee4ffa4cb28945dc120d0a5b4fc6e9dd", "score": "0.78233874", "text": "function fetchObject() {\n \treturn mysql_fetch_object($this->res);\n }", "title": "" }, { "docid": "4fd6c6a2509f603d27dd21669d33c3dd", "score": "0.7732603", "text": "public static function fetchObje...
bf9f5fc07602775d17723a3ce77467e9
calculate the days of current week
[ { "docid": "2f2e9133cc355b40b1c90d011d169ebd", "score": "0.68500435", "text": "public static function get_week_days() {\n $result = [];\n $day_of_week = date('N');\n $now = time();\n $day_of_week = $now - (static::OneDay * $day_of_week);\n\n for ($i=0 ; $i<7 ; $i++) {\...
[ { "docid": "a9e625e6660dcdb9fc9a28a9e9ba75e9", "score": "0.761117", "text": "public function getSumOfWeekDays()\n { \n $weekDays = 0;\n foreach($this->days as $day){\n $day = strtolower($day);\n if ($day != \"sat\" || $day != \"sun\"){\n $weekD...
a847b677426f9c472d3c122042eb15b3
Returns the entity initialiser.
[ { "docid": "7d6f00d8778c9adb58219bec182f0f31", "score": "0.8886914", "text": "public function getEntityInitialiser()\n {\n return $this->entityInitialiser;\n }", "title": "" } ]
[ { "docid": "4faee4b920040a24f82841f014ab4059", "score": "0.6247925", "text": "public function setEntityInitialiser($entityInitialiser)\n {\n if ($this->entityInitialiser != $entityInitialiser) {\n $this->entityInitialiser = $entityInitialiser;\n }\n }", "title": "" }...
92a80d22b673d62f8fb65e0f0cc5b1ad
instantiate and use the dompdf class
[ { "docid": "545823f2406f08860c52e8f5ce2b8c70", "score": "0.58312124", "text": "public static function generateByHtml(string $html) : void\n\t{\n\t\t$dompdf = new Dompdf();\n\n\t\t$dompdf->loadHtml($html);\n\n\t\t$dompdf->setPaper('A4', 'landscape');\n\n\t\t$dompdf->render();\n\n\t\t$dompdf->stream();\n\...
[ { "docid": "8b0a9736f570c12eb614dc2e480cbc84", "score": "0.7998106", "text": "public function dompdf()\n {\n $dompdf = new Dompdf();\n $dompdf->loadHtml(view('pages/dompdf'));\n // (Optional) Setup the paper size and orientation\n $dompdf->setPaper('A4', 'landscape');\n ...
41792e9a40205217f0ebc3f7a4b25c21
set the location of a member
[ { "docid": "30d62418e547f52591db30ce697bb600", "score": "0.57501495", "text": "public function setLocation($IdMember,$geonameid = false)\n {\n \n // Address IdCity address must only consider Populated palces (definition of cities), it also must consider the address checking process\n \n ...
[ { "docid": "8fe36cbe92611af872c68b290e5a4ce6", "score": "0.7234167", "text": "function setMemberPositon($memberPositon){\n $this->memberPositon = $memberPositon; \n }", "title": "" }, { "docid": "18f217980ef803848399508ad7224a14", "score": "0.6944342", "text": "function se...
5f9e3ac26341efd86cdaf6602b9b5711
Interakt Change the SQL connection locale to a specified locale. This is used to get the date formats written depending on the client locale.
[ { "docid": "c9ecca2d47e2010e320debaf6647347a", "score": "0.7537893", "text": "function _setLocale($locale = 'US')\n\t{\t\n\t\tswitch (strtoupper($locale))\n\t\t{\n\t\t\tcase 'US':\n\t\t\t\t$this->Execute(\"set datestyle='ISO'\");\n\t\t\t\tbreak;\n\t\t\tcase 'EN':\n\t\t\t\t$this->Execute(\"set datestyle=...
[ { "docid": "01405a73030369bc576e00891f8c9191", "score": "0.6971565", "text": "function _setLocale($locale = 'Us') {\n\t\tswitch ($locale) {\n\t\t\tcase 'En':\n\t\t\t\tibase_timefmt('%d-%m-%Y');\n\t\t\t\tbreak;\n\t\t\tcase 'EUS':\n\t\t\t\tibase_timefmt('%m-%d-%Y');\n\t\t\t\tbreak;\n\t\t\tcase 'Ro':\n\t\t...
c36db3bcb79334598bba893df708e559
Returns the MessageKey this MessageItemChildCompoundKey represents. No references between this and the returned key exist.
[ { "docid": "102d69f4a2aa0918ef1487f9326a3bc1", "score": "0.68176454", "text": "public function getMessageKey(): MessageKey\n {\n return new MessageKey(\n $this->getMailAccountId(),\n $this->getMailFolderId(),\n $this->getParentMessageItemId()\n );\n }...
[ { "docid": "fc4c6097f095300d192226e557c22163", "score": "0.5935129", "text": "protected function getKey()\n {\n return $this->row[$this->parent->getKeyName()];\n }", "title": "" }, { "docid": "5759e6ec0e992bcba29fe527b09f28cf", "score": "0.5892184", "text": "function get...
26f3aee49155c1bc64932e1f662eacfc
Creates an exception with appropriate message.
[ { "docid": "cea9cc6c908393b79d11219f9e055847", "score": "0.53920317", "text": "private static function createException(string $key, string $type, mixed $value): TypedConfigException\n {\n return new TypedConfigException($key, $type, $value);\n }", "title": "" } ]
[ { "docid": "1f5cb36d0d16a98bac78dddf1b48e089", "score": "0.6742168", "text": "public function __construct()\n {\n \n //Get arguments.\n $args = func_get_args();\n \n //Set the previous exception to given or null.\n $previous = ($args[0] instanceof self) ? array_shift($args) : null;\n ...
5219931b85e18cfc0cd348036bda0947
Sets the node's pageId and pathPath properties, and returns the calling object. $sd>setBlock( "group;blockchooser", $cascade>getAsset( a\DataBlock::TYPE, "1f21e3268b7ffe834c5fe91e2e0a7b2d" ) )> setFile( "group;filechooser" )> setPage( "group;pagechooser" )> setLinkable( "group;linkablechooser" )> setSymlink( "group;sym...
[ { "docid": "4c817fbcbf8080b88515920e9bdcb4cf", "score": "0.45810094", "text": "public function setPage( string $node_name, a\\Page $page=NULL ) : Property\n {\n if( isset( $this->node_map[ $node_name ] ) )\n $this->node_map[ $node_name ]->setPage( $page );\n return $this;\n ...
[ { "docid": "9fad883a593867d35281a5024f4e6c90", "score": "0.48869655", "text": "public function setBlock( string $node_name, a\\Block $block=NULL ) : Property\n {\n if( self::DEBUG ) { u\\DebugUtility::dump( $block ); }\n if( self::DEBUG ) { u\\DebugUtility::out( $node_name ); }\n ...
98644bb5479cfe7591fd959d32d46825
Gets new status changes which will be email to the user since the last emailing NOTE: you have to return the same result set as getnewevents
[ { "docid": "d0401819dbe37e2a9195598edd8eb7bb", "score": "0.7448207", "text": "public function getnewstatuschanges($userid, $lastemail) {\n\t\t// get changes since last emailing \n\t\t$this->isirdb->where('spis_status_history.date > ', $lastemail);\n\t\t$this->_prepareStatusChangeSelect($userid);\n\t\t\n...
[ { "docid": "1fd937ba47e275ade85da44a0cb8abfd", "score": "0.65930843", "text": "function api_email_updates() {\n\t$rv = array(\"status\" => true);\n\t\n\t$query = \"SELECT `created_date` FROM `events` WHERE `type`='email' ORDER BY `created_date` DESC LIMIT 1\";\n\t$result = db_query($query);\n\t\n\tif (d...
389d103373214e3d89dbc0ff975de3bf
Magic method, searches for the key and returns its value. $value = $this>foo;
[ { "docid": "c94093d1b4b978db2665511774b66485", "score": "0.0", "text": "public function __get($key)\n {\n if (isset($this->$key)) {\n return $this->_data[$key];\n } else {\n throw new Exception('The variable \"'.$key.'\" is not set.');\n }\n }", "titl...
[ { "docid": "9a83e46ceaed1011ad999b524060b8e2", "score": "0.6433605", "text": "public function get($key) {}", "title": "" }, { "docid": "9a83e46ceaed1011ad999b524060b8e2", "score": "0.6433605", "text": "public function get($key) {}", "title": "" }, { "docid": "c2adf493aac0...
26db7c11537064e22bfe260aeaf4607c
Adiciona o filtro Minhas Paginas
[ { "docid": "27da8a926f6631411cdff838d0b1cd37", "score": "0.0", "text": "function wp38_add_movies_filter($views){\n\t\n\t// pega as informacoes do usuario logado\n\t$user = wp_get_current_user();\n\n\tif($user->roles[0] == 'contributor'){\n\n\t\tif( $_GET['filter'] == 'grupo' ){\n\n\t\t\t$views['grupos']...
[ { "docid": "e0985e36155127a8d4266cfad70c654c", "score": "0.69461966", "text": "public function filter(){\r\n\t\t\t$this->pagina = 1;\r\n\t\t\t$this->filtroSQL = \"SELECT p.long_name pais, pro.provincia, pf.long_name fpais, prof.provincia fprovincia, cli.* \r\n\t\t\t\tFROM clientes cli LEFT JOIN pais p O...
7bc6e59c0904ba086b7601929bcb07d3
check if user registered,his data(username,password) is correct ,if yes set session and cookie
[ { "docid": "237f7f028699624e6c00e085e728e775", "score": "0.0", "text": "function user_login($username, $password)\n{\n if (user_exists($username) == FALSE) { // check if user exists\n return \"You are not a registered member\";\n }\n else if (confirm_user($username, md5($password)) === F...
[ { "docid": "6ccf19fc4ef459b35538d6545b06be62", "score": "0.7156944", "text": "public function login($thepost)\n{\n extract($thepost);\n $password = md5(mysql_real_escape_string($password));\n //check if present in sul_signup_profile\n $r = mysql_query(\"SELECT * from sul_signup_profile where...
921313a2b04ed2afcf91b6e31fb3010d
Sets the policy length
[ { "docid": "4ba75df55724c5c75d6438749eea6465", "score": "0.7534722", "text": "public function setPolicyLength($policyLength)\n {\n $this->policyLength = $policyLength;\n return $this;\n }", "title": "" } ]
[ { "docid": "3f5246e87c2db78e1a85bc8d567852a6", "score": "0.72333366", "text": "public function setLength($length);", "title": "" }, { "docid": "5eb262aa7755be6452fd36bd5b237ad0", "score": "0.7053596", "text": "function SetRequestedLength($length){}", "title": "" }, { "doc...
a64da42041bafee9241b2da2c405e26d
Destroy (remove) the namespace file resource and all contents
[ { "docid": "8ea9c7229f9e01ed244ac3bef3f3e34c", "score": "0.762664", "text": "protected function destroy( $namespace = null ) {\n\n $exist = false;\n $path = $this->getFile( $namespace, null, $exist );\n if( $exist ) $this->destroyFile( $path );\n }", "title": "" } ]
[ { "docid": "2961fd7e3d8100bdb9570443ca486260", "score": "0.71656996", "text": "public function destroy()\n {\n if ($this->resource) {\n sem_remove($this->resource);\n @unlink($this->filePath);\n }\n }", "title": "" }, { "docid": "cf15f6055f619cfcdccc...
c7e1cfd095b953b34e405d7918288eb0
Archives one comment and renders comment/view
[ { "docid": "81ecf020cef611ef22566bfc596548f6", "score": "0.7396747", "text": "public function actionArchive()\n {\n $id = Yii::$app->request->get('id');\n $comment = new Comment();\n $comment->archiveComment($id);\n Yii::$app->session->setFlash('messageArchived');\n ...
[ { "docid": "5f76ae3d5b9948a113f2d5023eb6d6c3", "score": "0.61477387", "text": "public function comment()\n { \n\n $author = $this->ctrlRequest->requestGetParam(\"author\");\n $content = $this->ctrlRequest->requestGetParam(\"content\");\n $idPost = $this->ctrlRequest->requestG...
07ae77acec9374c4891afd15f8ae307f
Rachitha:this function will give topcards.
[ { "docid": "670b9ce2905e11bd546562723d59c7e7", "score": "0.0", "text": "function filter_top_cards($icon,$cardtitle,$data,$color){\n global $DB, $OUTPUT;\n $cardarray=[\n 'cards' =>array(\"hascard\"=>1,\n 'icon' =>$icon,\n 'cardtitle' =>strtoupper($cardtitle),\n 'data' =>$data,\n ...
[ { "docid": "841795e327d045775881f1d44ca5c2f6", "score": "0.57414246", "text": "function supercard($pid){\n\t\n\t$playerstats = get_player_data($pid);\n\t$info = get_player_basic_info($pid);\n\t$firstname = $info[0]['first'];\n\t$lastname = $info[0]['last'];\n\t$position = $info[0]['position'];\n\n\t$get...
66e76a62a6e4b2253ab75f18f904745f
Operation deletePackageTypeWithHttpInfo Delete an packagetype
[ { "docid": "4b9e6238e6180e8b2725ccff0246b259", "score": "0.65124476", "text": "public function deletePackageTypeWithHttpInfo($package_type_id)\n {\n // verify the required parameter 'package_type_id' is set\n if ($package_type_id === null) {\n throw new \\InvalidArgumentExcep...
[ { "docid": "5f17a7cce1965dab5df1bb09fcf32b93", "score": "0.5600216", "text": "public function deleteWithHttpInfo($request)\n {\n $request = $this->deleteRequest($request);\n \n $response = $this->callClient($request);\n return [null, $response->getStatusCode(), $response->getH...
853bae4c1f832824ca803ba2f74a382e
Retrieve consents. This function should return a list of consents the user has saved.
[ { "docid": "e7ff34bbf12337ebfc68d47822a6bc02", "score": "0.5491765", "text": "public function getConsents($userId)\n {\n assert('is_string($userId)');\n\n $ret = array();\n\n $st = $this->_execute(\n 'SELECT service_id, attribute, consent_date, usage_date ' .\n ...
[ { "docid": "8910b50329640cfde336b0658cf864e0", "score": "0.55958676", "text": "public function clientCorrespondences()\n {\n return Basecamp::clientCorrespondences($this->id);\n }", "title": "" }, { "docid": "145cc46624d165c8a9cadfd8da1b4de7", "score": "0.5520358", "text...
1e73f40de055272663c9bcdc84c70dbb
Filter the query on the tdate column Example usage: $query>filterByTdate('20110314'); // WHERE tdate = '20110314' $query>filterByTdate('now'); // WHERE tdate = '20110314' $query>filterByTdate(array('max' => 'yesterday')); // WHERE tdate > '20110313'
[ { "docid": "03414ceee785d952e1b6ef62bed2544d", "score": "0.53202915", "text": "public function filterByTdate($tdate = null, $comparison = null)\n {\n if (is_array($tdate)) {\n $useMinMax = false;\n if (isset($tdate['min'])) {\n $this->addUsingAlias(AliFmbon...
[ { "docid": "690fceaae0bc63c2404145f48ff9ffea", "score": "0.5598991", "text": "public function scopeFilterByEndDate( $query )\n {\n $date = request() -> get( 'end_date' );\n\n if( $date )\n {\n try \n {\n $date = Carbon :: parse($date);\n ...
b7864522ebbd3ab0de3c513c368673e4
Set the id of the user who created this rule.
[ { "docid": "d4adf21c3c8413f91ef5f19cd1e76fe4", "score": "0.0", "text": "public function setGrantedByUser($createdByUser);", "title": "" } ]
[ { "docid": "8afd6015c7b16259cc1e26158b5f17db", "score": "0.72755086", "text": "public function setUserId( $id ) {\n\t\t$this->userId = $id;\n\t}", "title": "" }, { "docid": "7fc9491b2b9efc727280fb3b5d5173ce", "score": "0.7209619", "text": "public function setUserId($value){\n ...
366628ea005432297a28d0fda76a254d
Store a newly created CentralElectrica in storage. POST /centralElectricas
[ { "docid": "517f0e820b2d2a778aa1f20237af6856", "score": "0.7422654", "text": "public function store(CreateCentralElectricaAPIRequest $request)\n {\n $input = $request->all();\n\n $centralElectrica = $this->centralElectricaRepository->create($input);\n\n return $this->sendResponse...
[ { "docid": "d3eb15451fd1ef1117dff6cbf3ecd9d0", "score": "0.606247", "text": "public function store(Request $request)\n {\n $request->validate([\n 'storage_code' => ['required', 'max:255', 'unique:silo_actuals'],\n 'date' => ['required'],\n 'value_actual' => ['r...
ca9f6429434e393d6f262a5e33bf67c6
bool player_camera = 6;
[ { "docid": "cb0ae94e8fb8ec318dbeaa23792a1140", "score": "0.6332921", "text": "public function setPlayerCamera($var)\n {\n GPBUtil::checkBool($var);\n $this->player_camera = $var;\n }", "title": "" } ]
[ { "docid": "1d5fee24f5da8713e837dd00ed29e236", "score": "0.6100702", "text": "function cameraInput()\n {\n return isset($this->whiteMap[\"{$this->y},{$this->x}\"]) ? 1 : 0;\n }", "title": "" }, { "docid": "adc72085a4e9a135b3678d0163e50bff", "score": "0.6055702", "text": ...
78a0569df5a22d38dc8d5af391417789
/ check items function v1.0 function to check item in database [function accept parameters] $select = the item to select [example : user , item , category] $from = the table to select from [example : users , items , categories ] $value = the value of select [example : osama , box , electronics]
[ { "docid": "31824d556f79bd1d41ad175b80fc94b6", "score": "0.74108577", "text": "function checkItem ($select , $from , $value) {\n\t\n\tglobal $con; \n\t\n\t$statement = $con->prepare(\"select $select from $from where $select = ? \"); \n\t\n\t$statement->execute(array($value)); \n\t\n\t$count = $statement...
[ { "docid": "fdc8da9ba3e0295c135bab9617fd8666", "score": "0.76120293", "text": "function checkItem($select, $from, $value) {\n\t\t\n\t\tglobal $con;\n\n\t\t$statement = $con->prepare(\"SELECT $select FROM $from WHERE $select = ?\");\n\n\t\t$statement->execute(array($value));\n\n\t\t$count = $statement->r...
4d9bbbf3cba6fa1bb4cdc7717913bd37
Determine if the user is authorized to make this request.
[ { "docid": "392040ec403ae875aeef2d2a3d96424a", "score": "0.0", "text": "public function authorize()\n {\n return Auth::check();\n }", "title": "" } ]
[ { "docid": "9fb39029db943b6c00f8b0416336e051", "score": "0.82641774", "text": "public function authorize()\n {\n return $this->session()->has('user');\n }", "title": "" }, { "docid": "31beff90f07fc0d7b251495f888cf277", "score": "0.8246314", "text": "public function autho...
f25b0db1ccb95daf541da004683a033f
Gets as description Text description of error.
[ { "docid": "6ea2220043d501427df36dbc55009ffa", "score": "0.0", "text": "public function getDescription()\n {\n return $this->description;\n }", "title": "" } ]
[ { "docid": "5f62441f2f130f2be0738f6d145b1c49", "score": "0.8368376", "text": "public function getErrorDesc() {\n\t\treturn $this->errorDesc;\n\t}", "title": "" }, { "docid": "370ea3a059738f67a0d3e4ed60c3f132", "score": "0.81451356", "text": "public function getDescription()\n ...
fbdbdab7706aa244ead79e839624452a
// relationship between todos and items
[ { "docid": "305be780a868f714e63fe0858f1a3d33", "score": "0.5846517", "text": "public function items()\n {\n return $this->hasMany('App\\Item');\n }", "title": "" } ]
[ { "docid": "4a70c65a043004c38014d6495ca33682", "score": "0.68108135", "text": "public function todos()\n {\n return $this->hasMany('App\\Models\\Todo');\n }", "title": "" }, { "docid": "7ecab6fefaa5b5a81e9003497f9471b7", "score": "0.67878985", "text": "public function to...
aa9b2063c9bf2dd7eb0ead1782e95844
Create request for operation 'mailingIdQueuePut'
[ { "docid": "457ac55f3a283f4bd2cbfaa755099b22", "score": "0.7434382", "text": "protected function mailingIdQueuePutRequest($id, $body)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentE...
[ { "docid": "dab5644055551f80735148ca57743297", "score": "0.64982796", "text": "protected function mailingIdPutRequest($id, $body)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentExcep...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "a6688716096de732ac676d2606652404", "score": "0.7856724", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "5781a2d120285a71e7e85b5a66be6d25", "score": "0.783050...
d0ec94121d1bf457197fc458f8d2bc6f
END DISPLAY ATTACHMENTS > PREVIEW Assign Variables and Definitions based on the fetched Attachments internal used by all displaying functions, the Data was collected before, it's only dependend on the template used. :) before this function is usable, init_display_attachments have to be called for specific pages (pm, po...
[ { "docid": "0ab2e2fa0b306642eaf1458c54a0b5c5", "score": "0.5905478", "text": "function display_attachments($post_id, $type = 'postrow')\n{\n\tglobal $db, $config, $template, $user, $lang;\n\tglobal $upload_dir, $allowed_extensions, $display_categories, $download_modes, $attachments, $upload_icons, $user...
[ { "docid": "5094a82505c4698fd90863dd0a9a69f7", "score": "0.68666136", "text": "function init_display_pm_attachments($switch_attachment)\n{\n\tglobal $config, $template, $user, $lang, $attachments, $privmsg;\n\n\tif ($user->data['user_level'] == ADMIN)\n\t{\n\t\t$auth_download = 1;\n\t}\n\telse\n\t{\n\t\...
ca803cbddb2d6141bf95c9dc2f94bf93
Testing validateStock on newer shop version
[ { "docid": "66d0ada146c37fca49b51f9253f847aa", "score": "0.8114148", "text": "public function test_validateStock_NewerShopVersion() \n {\n $this->wrapExpectException('oxOutOfStockException');\n $oMockConfig = $this->getMock('oxConfig', array('getConfigParam'));\n $oMockConfig->ex...
[ { "docid": "6a744786e55310fff39946c3ff0e4f3c", "score": "0.80824304", "text": "public function test_validateStock_OldShopVersion() \n {\n $this->wrapExpectException('oxOutOfStockException');\n $oMockConfig = $this->getMock('oxConfig', array('getConfigParam'));\n $oMockConfig->exp...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "dfd3785eb5c04acee6816519f9880d62", "score": "0.0", "text": "public function create()\n {\n return view('admin.genres.create');\n }", "title": "" } ]
[ { "docid": "847f003a4addf6820c7b7d4e542cfa95", "score": "0.7909494", "text": "public function create()\n {\n $resource = $this->prepResource('create');\n $this->showBreadcrumb($resource, [null => 'Create New']);\n\n return $this->view(compact('resource'));\n }", "title": "...
c69deac1bde7b6aba26fc792c6d71229
Is a group's full name unique?
[ { "docid": "2b9dc804979a8aec78e139c1b39f255e", "score": "0.7984236", "text": "public function fullNameUnique()\n\t{\n\t\tif (isset($this->modelData['fullname'])) \n\t\t{\n\t\t\t$group = $this->getByFullName($this->modelData['fullname']);\n\t\t\tif ((! $group['id']) OR ($this->modelData['id'] == $group['...
[ { "docid": "94da33e98da5a74dce97bf143185abfd", "score": "0.7972394", "text": "public function nameUnique()\n\t{\n\t\tif (isset($this->modelData['name'])) \n\t\t{\n\t\t\t$group = $this->getByName($this->modelData['name']);\n\t\t\tif ((! $group['id']) OR ($this->modelData['id'] == $group['id']))\n\t\t\t{\...
1c2005a75844bea883863cb6fa81e4d7
Receives an array and returns it sorted
[ { "docid": "4270da8028350374fe1c43191c9e662b", "score": "0.0", "text": "function bubbleShort(array $arr) {\n do {\n $hasChanged = false;\n for ($i = 0; $i < count($arr) - 1; ++$i) {\n if ($arr[$i] > $arr[$i + 1]) {\n ...
[ { "docid": "9a03141e1437d3a8502acd97e124b110", "score": "0.7533531", "text": "function pages_sortArray($array) {\n\t\t$result = NULL;\n\t\tif(count($array)>0) {\n\t\t\tksort($array);\n\t\t\tforeach((array)$array as $value) $result .= $value;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { ...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "94ae0874372df5a62f5c4b3bb32ffa85", "score": "0.0", "text": "public function index(Request $request)\n {\n $id = $request->input('clinic_id');\n $clinicIdCriteria = new ClinicIdCriteria($id);\n $this->repository->pushCriteria($clinicIdCriteria);\n\n retu...
[ { "docid": "5d4e963a8d7919c8e89993bd060a7615", "score": "0.77891225", "text": "public function listAction()\n {\n $this->_messenger = $this->getHelper('MessengerPigeon');\n\n\t\tif ($this->_messenger->broadcast()) {\n\t\t\t// disables the back button for 1 hop\n\t\t\t$this->_namespace->noBackB...
1ccf04ad07f9fb27df7cde15b985056a
/ RELATIONSHIP / QUERY BUILDER / MUTATOR / ACCESSOR boot observing model
[ { "docid": "d8ca01e4310f33f960219a4276cf384e", "score": "0.0", "text": "public static function boot() \n\t{\n parent::boot();\n\n PersonContact::observe(new ContactObserver());\n }", "title": "" } ]
[ { "docid": "846547aa69d7c3d9da8b62e632221596", "score": "0.637888", "text": "abstract protected function getModel();", "title": "" }, { "docid": "846547aa69d7c3d9da8b62e632221596", "score": "0.637888", "text": "abstract protected function getModel();", "title": "" }, { "d...
192e9a045065bfadc495c694535cfcd5
Get carrier name by code
[ { "docid": "55309e207a61793f01f4a4603d7425f9", "score": "0.74032444", "text": "public function getCarrierName($carrierCode)\n {\n if ($name = Mage::getStoreConfig('carriers/' . $carrierCode . '/title')) {\n return $name;\n }\n\n return $carrierCode;\n }", "title...
[ { "docid": "18fc4439025fb2bf6ebbd3f1acea8e7b", "score": "0.7750605", "text": "function _GetCarrierName($strCode)\n\t{\n\t\t// TODO: waiting for codes from Scott\n\t\treturn \"Undefined Carrier (Internal Code: \".$strCode.\")\";\n\t}", "title": "" }, { "docid": "5d9492ae083ee3edf475aaea423619...
fcda45e1389b5d673b9114cb02477642
Renvoie la liste des annonces de la base
[ { "docid": "e32800ada6d2f3e4c72602d1075be4fb", "score": "0.0", "text": "public function getAnnonces() {\n $sql = \"SELECT id_annonce, titre_annonce, nom_fdc, id_type, id_localisation,\n prix_annonce, descriptif_annonce, image_annonce, date_annonce, id_utilisateur,\n loyer_annuel, mo...
[ { "docid": "028b15eb09d82d2edebb26c7983d5d9f", "score": "0.6824184", "text": "function getAll() {\n\n /* FIN DU CODE AJOUTÉ */\n }", "title": "" }, { "docid": "6f2bd4d7c7c399c45e00686f44c55485", "score": "0.6789323", "text": "public function forgetAll();", "title": "" }, ...
140717f7f5237a1bb86eef32f5ae436a
= public array validation_errors() Returns assoc array of validation errors key field name $result[$key] validation error
[ { "docid": "805d5857bcdd4fe5c0d12e662cfd76e8", "score": "0.76685154", "text": "public function validation_errors()\n\t{\n\t\t$errors = array();\n\n\t\tforeach ($this->validators as $fld=>$arr)\n\t\t{\n\t\t\tforeach ($arr as $vl)\n\t\t\t{\n\t\t\t\t$vl->page = $this;\n\n\t\t\t\tif (!$vl->validate($fld, $t...
[ { "docid": "4e7ddfbb0847b587e29b75fc5a0ef5ce", "score": "0.78790027", "text": "public function _getValidationErrors(): array\n\t{\n\t\t$errs = parent::_getValidationErrors();\n\t\t$validationRules = $this->_getValidationRules();\n\t\tif (null !== ($v = $this->getUrl())) {\n\t\t\tif ([] !== ($fieldErrs =...
fea5802ae1c455a09c89dd5848ad8db7
This function gives array of username and password for passed company and account
[ { "docid": "281693e32439de28f7c1d9ad7cd7e155", "score": "0.6752998", "text": "public function getAccountCredential($companyId, $accoutNo)\n {\n $query1 = \"select username,password from \".DB_PREFIX.\"courier_vs_company\n where company_id = $companyId and account_number = '$a...
[ { "docid": "df58868a3a391d8fca22630762ea875c", "score": "0.69127154", "text": "static function get_crm_credentials(){\n\t\tinclude dirname(__FILE__) . '/Credentials.inc';\n\t\t\n\t\t//referral usr id and new user pass\n\t\t$credentials = get_option('custom_crm_credentials');\t\n\n\t\treturn array(\n\t\t...
edf94db24796e3ed4c643bfeb67726ed
Appends to the html string
[ { "docid": "7b06b4aa0bc31a331ec19182f10f363b", "score": "0.6532244", "text": "function addHtml($sMoreHtml) {\n $this->sHtml = $this->sHtml . $sMoreHtml;\n }", "title": "" } ]
[ { "docid": "f459384865786669730bbe51ae8e38c2", "score": "0.7028402", "text": "public function addHTML($html)\n\t{\n\t\t$this->innerHTML .= $html;\n\t}", "title": "" }, { "docid": "9d1cf3010f966ce3d24d0d82f5febb81", "score": "0.66869354", "text": "public function addHTML($html)\n {\...
6557b04f28706ec28dabb75635da74e7
if text has x
[ { "docid": "bfb97e9a96bd65aed3c86671d158ba8c", "score": "0.70518416", "text": "private static function textHas($text,$has){\n if (strpos($text, $has) !== false)\n return true;\n return false;\n }", "title": "" } ]
[ { "docid": "bcbec246f059eb6f0ace36443fa12030", "score": "0.70128465", "text": "public function hasText(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "1f8acc436b7b9f7f30354b4baf63e3de", "score": "0.61780703", "text": "public function isTextPresent($text) {\r\n\t\...