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
Make sure we clean up after ourselves:
public function tearDown(): void { if (file_exists(static::$in)) { unlink(static::$in); } if (file_exists(static::$ou)) { unlink(static::$ou); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanup() {\n\t\t//TODO\n\t}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {...
[ "0.7923063", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "0.7868171", "...
0.0
-1
Lists all Incident entities.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('ComDaufinBundle:Incident')->findAll(); return $this->render('ComDaufinBundle:Incident:index.html.twig', array( 'entities' => $entities, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return IncidentResource::collection(Incident::all());\n }", "public function index()\n {\n //\n return Incidencies::get();\n }", "public function indexAction() {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepo...
[ "0.7005375", "0.64993304", "0.6474207", "0.6351045", "0.6330612", "0.6325362", "0.62754", "0.62179345", "0.604176", "0.60272324", "0.59795886", "0.59509426", "0.5944533", "0.5941982", "0.5938184", "0.59238094", "0.5922805", "0.5902203", "0.5880296", "0.5874867", "0.58739233",...
0.70976186
0
Creates a new Incident entity.
public function createAction(Request $request) { $entity = new Incident(); $form = $this->createCreateForm($entity); $form->handleRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->persist($entity); $em->flush(); return $this->redirect($this->generateUrl('com_incident_show', array('id' => $entity->getId()))); } return $this->render('ComDaufinBundle:Incident:new.html.twig', array( 'entity' => $entity, 'form' => $form->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n $invoice = new InvoiceEntity();\n $invoice->setNumber('019101910191091')\n ->setValue(100.90)\n ->setUrl('http://domain.com')\n ->setIssuanceDate('2017-09-15')\n ->setKey('POL9898AS');\n\n $tracking =...
[ "0.6706735", "0.6457992", "0.6446366", "0.6385899", "0.6277113", "0.61486065", "0.5979126", "0.59275085", "0.5880445", "0.58601385", "0.5850204", "0.5766788", "0.56750894", "0.5626665", "0.5607427", "0.55651003", "0.5553112", "0.55517745", "0.5489903", "0.54832596", "0.547114...
0.66564465
1
Creates a form to create a Incident entity.
private function createCreateForm(Incident $entity) { $form = $this->createForm(new IncidentType(), $entity, array( 'action' => $this->generateUrl('com_incident_create'), 'method' => 'POST', )); $form->add('submit', 'submit', array('label' => 'Créer','attr'=>array('class'=>'btn btn-success','style'=>'width:100px;'))); return $form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n $entity = new Incident();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ComDaufinBundle:Incident:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public...
[ "0.7192309", "0.68735206", "0.68468374", "0.6635487", "0.66038954", "0.65442777", "0.65247846", "0.6472963", "0.64462566", "0.6418852", "0.6418213", "0.63939124", "0.6363234", "0.6362272", "0.6343542", "0.6338978", "0.63089514", "0.6285326", "0.62333995", "0.6231594", "0.6212...
0.74190396
0
Displays a form to create a new Incident entity.
public function newAction() { $entity = new Incident(); $form = $this->createCreateForm($entity); return $this->render('ComDaufinBundle:Incident:new.html.twig', array( 'entity' => $entity, 'form' => $form->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n $entity = new Customer();\n $form = $this->createForm(new CustomerType(), $entity);\n\n return $this->render('EnterpriseBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n ...
[ "0.70455056", "0.7045127", "0.7003517", "0.69731975", "0.6914362", "0.68953305", "0.68729633", "0.681382", "0.6805253", "0.6802053", "0.67273897", "0.66950154", "0.6684786", "0.6684345", "0.66575485", "0.66535896", "0.6651636", "0.66473633", "0.66428775", "0.66112876", "0.658...
0.82271135
0
Finds and displays a Incident entity.
public function showAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('ComDaufinBundle:Incident')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Incident entity.'); } $deleteForm = $this->createDeleteForm($id); return $this->render('ComDaufinBundle:Incident:show.html.twig', array( 'entity' => $entity, 'delete_form' => $deleteForm->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('ComDaufinBundle:Incident')->findAll();\n\n return $this->render('ComDaufinBundle:Incident:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", ...
[ "0.616971", "0.59756875", "0.5934177", "0.58935094", "0.58935094", "0.58935094", "0.58935094", "0.584898", "0.584898", "0.584898", "0.584898", "0.58170164", "0.5796828", "0.5766367", "0.5760096", "0.57500017", "0.5737531", "0.572718", "0.56909657", "0.56738275", "0.56692946",...
0.6801066
0
Displays a form to edit an existing Incident entity.
public function editAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('ComDaufinBundle:Incident')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Incident entity.'); } $editForm = $this->createEditForm($entity); $deleteForm = $this->createDeleteForm($id); return $this->render('ComDaufinBundle:Incident:edit.html.twig', array( 'entity' => $entity, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AcmeInvoiceBundle:Invoice')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Invoice entity.');\n }\n\n $editForm ...
[ "0.6804953", "0.6797847", "0.6790573", "0.67861074", "0.67824024", "0.6764167", "0.6758988", "0.67570597", "0.6756569", "0.6752052", "0.67458874", "0.67458874", "0.6735235", "0.6734836", "0.67290646", "0.6704641", "0.6695267", "0.666571", "0.6652674", "0.6652674", "0.6647207"...
0.76934713
0
Creates a form to edit a Incident entity.
private function createEditForm(Incident $entity) { $form = $this->createForm(new IncidentType(), $entity, array( 'action' => $this->generateUrl('com_incident_update', array('id' => $entity->getId())), 'method' => 'PUT', )); $form->add('submit', 'submit', array('label' => 'Modifier','attr'=>array('class'=>'btn btn-warning','style'=>'width:100px;'))); return $form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createEditForm(Resident $entity)\n {\n $form = $this->createForm(new ResidentType(), $entity, array(\n 'action' => $this->generateUrl('resident_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', arr...
[ "0.7342424", "0.6961575", "0.6939798", "0.69292074", "0.68942547", "0.6856624", "0.68178684", "0.679424", "0.6787024", "0.67820334", "0.6758182", "0.67476124", "0.6735985", "0.6683128", "0.6670898", "0.66447186", "0.6642921", "0.66244024", "0.6619014", "0.6599569", "0.6597531...
0.7549447
0
Edits an existing Incident entity.
public function updateAction(Request $request, $id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('ComDaufinBundle:Incident')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Incident entity.'); } $deleteForm = $this->createDeleteForm($id); $editForm = $this->createEditForm($entity); $editForm->handleRequest($request); if ($editForm->isValid()) { $em->flush(); return $this->redirect($this->generateUrl('com_incident_edit', array('id' => $id))); } return $this->render('ComDaufinBundle:Incident:edit.html.twig', array( 'entity' => $entity, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('ComDaufinBundle:Incident')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Incident entity.');\n }\n\n $editForm ...
[ "0.6319217", "0.63158965", "0.627774", "0.627774", "0.6185913", "0.61171865", "0.61171865", "0.6106951", "0.60550815", "0.59439", "0.59278923", "0.5907007", "0.5907007", "0.5906806", "0.5882417", "0.5877427", "0.58710736", "0.5850906", "0.58480793", "0.58137566", "0.57866013"...
0.66009545
0
Deletes a Incident entity.
public function deleteAction(Request $request, $id) { $form = $this->createDeleteForm($id); $form->handleRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('ComDaufinBundle:Incident')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Incident entity.'); } $em->remove($entity); $em->flush(); } return $this->redirect($this->generateUrl('com_incident')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($entity);", "public function delete($entity){ \n //TODO: Implement remove record.\n }", "public function delete($entity) {\n $this->deleteRecord([\n 'id' => $entity->getId(),\n ]);\n }", "public function deleteById($entityId);", "public function ...
[ "0.6830146", "0.68224484", "0.66419566", "0.6605579", "0.6605579", "0.6557135", "0.6520767", "0.64835405", "0.6448817", "0.6444898", "0.63975054", "0.63898546", "0.6381406", "0.637278", "0.63500845", "0.63316095", "0.6325505", "0.6271819", "0.6243988", "0.61904764", "0.615637...
0.66085356
3
Creates a form to delete a Incident entity by id.
private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('com_incident_delete', array('id' => $id))) ->setMethod('DELETE') ->add('submit', 'submit', array('label' => 'Supprimer','attr'=>array('class'=>'btn btn-danger','style'=>'width:100px;'))) ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('resident_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\...
[ "0.74156785", "0.72755706", "0.7257462", "0.7250423", "0.7204331", "0.7203511", "0.7182645", "0.7179833", "0.71696275", "0.71631914", "0.71582997", "0.71538776", "0.7147314", "0.7133575", "0.7127885", "0.7127556", "0.711653", "0.7115973", "0.7111385", "0.71107155", "0.7107131...
0.75169045
0
Getter for the google client.
public function getClient() { return $this->client; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClient(): GoogleClient\n {\n return $this->client;\n }", "final public function get_client() {\n\t\tif ( null === $this->google_client ) {\n\t\t\t$client = $this->setup_client();\n\t\t\tif ( ! $client instanceof Google_Site_Kit_Client ) {\n\t\t\t\tthrow new Exception( __( 'Google ...
[ "0.8751706", "0.8221763", "0.7847299", "0.7847299", "0.7847299", "0.78089327", "0.77447075", "0.7680968", "0.76801217", "0.76339483", "0.75699747", "0.75699747", "0.75695187", "0.75695187", "0.75695187", "0.75688946", "0.7557225", "0.75440043", "0.7493169", "0.74301696", "0.7...
0.75659597
36
Setter for the google client.
public function setClient(Google_Client $client) { $this->client = $client; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setClient(\\Google_Client $client)\r\n {\r\n $this->client = $client;\r\n return $this;\r\n }", "public function setClient(GoogleClient $client): self\n {\n $this->client = $client;\n\n return $this;\n }", "public function setClient($client);", "public ...
[ "0.73747283", "0.72117686", "0.6976156", "0.69015646", "0.6863136", "0.68357456", "0.68357456", "0.68357456", "0.68095446", "0.678631", "0.6668789", "0.66338456", "0.66338456", "0.66338456", "0.66220224", "0.6569491", "0.6456773", "0.6453873", "0.6440004", "0.6426204", "0.642...
0.7144233
2
Getter for the google service.
public function make($service, $username = '') { if ($username != '') { $this->client->setSubject($username); } else { $this->client->setSubject(array_get($this->config, 'service.username', $username)); } $service = 'Google_Service_' . ucfirst($service); if (class_exists($service)) { $class = new \ReflectionClass($service); return $class->newInstance($this->client); } throw new UnknownServiceException($service); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getAuth_Provider_Oauth_Service_GoogleService()\n {\n return $this->services['auth.provider.oauth.service.google'] = new \\phpbb\\auth\\provider\\oauth\\service\\google(${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'}, ${...
[ "0.78957677", "0.73489", "0.712035", "0.71058846", "0.7097972", "0.70928127", "0.709136", "0.6952296", "0.69340914", "0.6926755", "0.6926755", "0.6921906", "0.6892419", "0.6892419", "0.6892419", "0.6892419", "0.6892419", "0.6892419", "0.6892419", "0.68864363", "0.68561697", ...
0.0
-1
Setup correct auth method based on type.
protected function auth($userEmail = '') { // see (and use) if user has set Credentials if ($this->useAssertCredentials($userEmail)) { return; } // fallback to compute engine or app engine $this->client->useApplicationDefaultCredentials(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAuthType($authtype){\n $this->authType=$authtype;\n }", "function setAuthType($authtype){\n $this->authType=$authtype;\n }", "function setAuthType($authtype){\r\n\t\t$this->authType=$authtype;\r\n\t}", "public function setAuthenticationType( $type ) {\n\t\t$this->_mAuthenticat...
[ "0.67937845", "0.67937845", "0.6751413", "0.64627504", "0.6237156", "0.6135115", "0.61311436", "0.6075073", "0.6052783", "0.5931882", "0.577759", "0.573098", "0.57279503", "0.571286", "0.56499", "0.5610476", "0.56008196", "0.55722994", "0.55034995", "0.54790825", "0.5440763",...
0.0
-1
Determine and use credentials if user has set them.
protected function useAssertCredentials($userEmail = '') { $serviceJsonUrl = array_get($this->config, 'service.file', ''); if (empty($serviceJsonUrl)) { return false; } try { $this->client->setAuthConfig($serviceJsonUrl); } catch (\Google_Exception $e) { } if (!empty($userEmail)) { $this->client->setSubject($userEmail); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function credentials();", "public function checkCredentials()\n\t{\n\t\t$user = $this->_getLoggedUser();\n\t\tif (null === $user) {\n\t\t\t$_SESSION['url'] = $_SERVER['REQUEST_URI'];\n\t\t\t$this->redirectTo();\n\t\t}\n\t\treturn $user;\n\t}", "public function init_credentials()\n\t{\n\t\tif($t...
[ "0.68260324", "0.6811275", "0.6784165", "0.66838235", "0.6622387", "0.65956503", "0.6461491", "0.63168913", "0.6240046", "0.62174886", "0.61289656", "0.60792303", "0.6066517", "0.60614973", "0.6054333", "0.60475665", "0.60272527", "0.60136276", "0.60086256", "0.5993867", "0.5...
0.0
-1
Fetch object by id from a POST parameter.
public function fromPost($className, $parameterName = null, $default = null) { if (!$className) { throw new \InvalidArgumentException('Argument "classname" is required'); } $parameterName = $parameterName ?: $this->classNameToParamName($className); $value = $this->paramPlugin->fromPost($parameterName); return $this->paramValueToObject($className, $value, $default); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieve(int $id);", "public function fetch($id);", "public function fetch($id);", "abstract public function retrieve($id);", "public function retrieveById($id);", "function get(string $id);", "public function get(string $id);", "public function get( $id );", "public function find($...
[ "0.68102175", "0.675621", "0.675621", "0.6724093", "0.667974", "0.656311", "0.65278196", "0.6494114", "0.64223164", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0.6392696", "0...
0.0
-1
Fetch object by id from a query parameter.
public function fromQuery($className, $parameterName = null, $default = null) { if (!$className) { throw new \InvalidArgumentException('Argument "classname" is required'); } $parameterName = $parameterName ?: $this->classNameToParamName($className); $value = $this->paramPlugin->fromQuery($parameterName); return $this->paramValueToObject($className, $value, $default); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetch($id);", "public function fetch($id);", "public function get(string $id);", "abstract public function get($id);", "abstract public function get($id);", "abstract public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", ...
[ "0.74019414", "0.74019414", "0.7263795", "0.72583133", "0.72583133", "0.72583133", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666", "0.7238666"...
0.0
-1
Fetch object by id from a route parameter.
public function fromRoute($className = null, $parameterName = null, $default = null) { $parameterName = $parameterName ?: $this->classNameToParamName($className); $value = $this->paramPlugin->fromRoute($parameterName); return $this->paramValueToObject($className, $value, $default); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get(string $id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "publi...
[ "0.7399329", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626", "0.73938626",...
0.0
-1
Test dispatch and notifier supports event
public function testDispatchWithNotifierSupportEvent() { $event = new EventTested(); $this->eventDispatcher->expects($this->once()) ->method('dispatch') ->with('foo', $event) ->will($this->returnValue($event)); $this->notifier->expects($this->once()) ->method('supportsObject') ->with($event, 'foo') ->will($this->returnValue(true)); $this->notifier->expects($this->once()) ->method('notify') ->with($event, 'foo'); $this->notifierProxy->dispatch('foo', $event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_event_notification()\n {\n $this->event_notification_helper('event_method', true);\n }", "public function testDispatchEvents()\n {\n $this->uut->dispatch($this->buildRequest('/default'));\n\n $this->assertArrayHasKey(OnPreDispatch::class, self::$lastEvents);\n ...
[ "0.7251876", "0.6926086", "0.68950593", "0.68823737", "0.6845733", "0.67082274", "0.65592337", "0.6544384", "0.65202934", "0.64910245", "0.6483528", "0.6480512", "0.64468634", "0.6420582", "0.6403316", "0.6342289", "0.6320253", "0.621622", "0.617445", "0.6100438", "0.6085242"...
0.7587493
0
Test dispatch and notifier not supports event
public function testDispatchWithNotifierNotSupportEvent() { $event = new EventTested(); $this->eventDispatcher->expects($this->once()) ->method('dispatch') ->with('foo', $event) ->will($this->returnValue($event)); $this->notifier->expects($this->once()) ->method('supportsObject') ->with($event, 'foo') ->will($this->returnValue(false)); $this->notifier->expects($this->never()) ->method('notify'); $this->notifierProxy->dispatch('foo', $event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDispatchWithNotifierSupportEvent()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('foo', $event)\n ->will($this->returnValue($event));\n\n $this->notifier->expects($thi...
[ "0.77085", "0.7282865", "0.69786185", "0.68518674", "0.6836486", "0.68063074", "0.6661304", "0.65491754", "0.65007126", "0.6484004", "0.64833546", "0.64133465", "0.639523", "0.6303966", "0.6281974", "0.62275475", "0.62245667", "0.6221535", "0.6183446", "0.6105046", "0.6102692...
0.7240296
2
Test dispatch and event name in disabled list
public function testDispatchWithEventNameIsDisabledForNotify() { $event = new EventTested(); $this->eventDispatcher->expects($this->once()) ->method('dispatch') ->with('disable_event', $event); $this->notifier->expects($this->never()) ->method('supportsObject') ->with($event, 'foo'); $this->notifier->expects($this->never()) ->method('notify'); $this->notifierProxy->dispatch('disable_event', $event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkDisableFunctions() {}", "final public function allowsEvents() {\n\t\treturn false;\n\t}", "protected function getDisableActions() {}", "function isEnabled($name);", "public function testDispatchEvents()\n {\n $this->uut->dispatch($this->buildRequest('/default'));\n\n ...
[ "0.6124215", "0.6076351", "0.59966105", "0.58803976", "0.5877575", "0.58018386", "0.5771938", "0.5737068", "0.57081234", "0.56724346", "0.5671866", "0.56586415", "0.5642557", "0.5576867", "0.55707306", "0.5538965", "0.55288213", "0.5515749", "0.55136687", "0.5470841", "0.5456...
0.6821323
0
Save a new exchange rate
public function post(Request $request) { // Validate the form using Lumen's validation $this->validate($request, [ 'source' => 'required|different:target|exists:currencies,symbol', 'target' => 'required|different:source|exists:currencies,symbol', 'rate' => 'required|numeric', ]); // Validate the currencies $source = Currency::where('symbol', strtoupper($request->get('source')))->firstOrFail(); $target = Currency::where('symbol', strtoupper($request->get('target')))->firstOrFail(); $precision = env('APP_RATE_PRECISION', 4); $new = ExchangeRate::create([ 'source_id' => $source->id, 'target_id' => $target->id, 'rate' => round($request->get('rate'), $precision) ]); // Create the reverse rate ExchangeRate::create([ 'source_id' => $target->id, 'target_id' => $source->id, 'rate' => round(1 / $new->rate, $precision) ]); return $new; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function saveExchangeRate($exchangeRates, $baseCurrency) {\n $objEntityManager = $this->getDoctrine()->getManager();\n foreach ($exchangeRates->rates as $key => $exchangeRate) {\n $objExchangeRate = new ExchangeRates();\n $objExchangeRate->setBaseCurrency($baseCurrency);...
[ "0.6485968", "0.6445084", "0.6398197", "0.63192105", "0.6287837", "0.6222001", "0.6219934", "0.6163704", "0.61587644", "0.6156318", "0.6031435", "0.6002568", "0.6000224", "0.5994023", "0.5988532", "0.5982222", "0.5911185", "0.5910511", "0.58958864", "0.58545166", "0.5831257",...
0.55513453
45
Turn this item object into a generic array
public function transform(Blog $blog) { return [ 'id' => (int) $blog['id'], 'author' => $blog->author, 'title' => $blog['title'], 'content' => $blog['content'], 'status' => $blog['status'], 'subcategory' => $blog['subcategory'], 'comments' => $blog->comments, 'visibility_id' => $blog->visibility_id, 'coverImage' => $blog->blog_cover_image, 'created_date' => $blog->created_at, 'updated_date' => $blog->updated_at, 'scale' => $blog->scale, 'blog_image' => $blog->blog_image, 'trending' => $blog->trending ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function convertItemArray() {}", "public function toArray(): array {\n return $this->items;\n }", "public function toArray(): array\n {\n return (array) $this->items;\n }", "abstract protected function toArray();", "public function getItemsAsArray()\n {\n $map = function ($item)...
[ "0.82164854", "0.7369612", "0.7275971", "0.7240289", "0.7219985", "0.7183764", "0.7144832", "0.71438384", "0.71438384", "0.7129873", "0.7113866", "0.7002954", "0.7002954", "0.7002954", "0.7002954", "0.7002954", "0.6983072", "0.6971123", "0.6953985", "0.69449085", "0.69449085"...
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'description' => [ 'required', 'unique:colleges,description,'.$this->id, ], 'code' => [ 'required', 'max:10', 'unique:colleges,code,'.$this->id, ], ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
function correct this start task_1_correction
private function task_1_correction($task_name) { require_once public_path('task\\') . $task_name; $newValue_of_task = explode('.',$task_name); if(class_exists($newValue_of_task[0])){ $task = new $newValue_of_task[0]; if(session()->has('error_class')){ session()->forget('error_class'); } if(method_exists($newValue_of_task[0], 'check_name')){ $wrong = array(); $wrong[0] = ""; $wrong[1] = "al"; $wrong[2] = "asdryuimngyuioplkjhgd"; $wrong[3] = "bassem55"; $wrong[4] = "bassem reda"; $wrong[5] = "<script>anything</script>"; $correct = array(); $correct[0] = "abanoub"; $correct[1] = "ali"; $correct[2] = "bassem"; $notes = array(); $counter = 0; $degree = 0; for($i=0;$i<count($wrong);$i++) { if($task->check_name($wrong[$i]) === "wrong") { $degree++; } else if($task->check_name($wrong[$i]) === "correct") { $notes[$counter] = $wrong[$i]; $counter++; } } for($i=0;$i<count($correct);$i++) { if($task->check_name($correct[$i]) === "correct") { $degree++; } else if($task->check_name($correct[$i]) === "wrong") { $notes[$counter] = $wrong[$i]; $counter++; } } $arr = array(); $arr[0] = $degree;//degree $arr[1] = count($wrong) + count($correct);//total degree $arr[2] = $notes; return $arr; }else{ $this->checker2 = true; session()->put('error_function','error_function'); unlink(public_path('task\\') . $task_name); } }else{ $this->checker1 = true; session()->put('error_class','error_class'); unlink(public_path('task\\') . $task_name); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function task_2_correction($task_name)\n {\n\n \n require_once public_path('task\\\\') . $task_name;\n $newValue_of_task = explode('.',$task_name);\n\n if(class_exists($newValue_of_task[0])){\n\n if(session()->has('error_class')){\n session()->forget('error_cl...
[ "0.617361", "0.58540034", "0.56896424", "0.5686089", "0.5682584", "0.5664828", "0.5574911", "0.55473596", "0.5536141", "0.5534181", "0.55162424", "0.55063725", "0.54707783", "0.5469982", "0.5447325", "0.5436089", "0.54146636", "0.541194", "0.5386737", "0.5385267", "0.5381056"...
0.6471341
0
End task_1_correction Start task_2_correction
private function task_2_correction($task_name) { require_once public_path('task\\') . $task_name; $newValue_of_task = explode('.',$task_name); if(class_exists($newValue_of_task[0])){ if(session()->has('error_class')){ session()->forget('error_class'); } if(method_exists($newValue_of_task[0], 'check_phonenumber')){ if(session()->has('error_function')){ session()->forget('error_function'); } $task = new $newValue_of_task[0]; $wrong = array(); $wrong[0] = "0120287465";//10 $wrong[1] = "012028736166";//12 $wrong[2] = "012012";//6 $wrong[3] = "01302873616";//12 but start with 013 $wrong[4] = "01702873616";//12 but start with 017 $wrong[5] = "012e45mu576";//12 but contain characters $correct = array(); $correct[0] = "01201873616"; $correct[1] = "01102764837"; $correct[2] = "01098237673"; $degree = 0; $notes = array(); $counter = 0; $degree = 0; for($i=0;$i<count($wrong);$i++) { if($task->check_phonenumber($wrong[$i]) == "wrong") { $degree++; } else if($task->check_phonenumber($wrong[$i]) == "correct") { $notes[$counter] = $wrong[$i]; $counter++; } } for($i=0;$i<count($correct);$i++) { if($task->check_phonenumber($correct[$i]) == "correct") { $degree++; } else if($task->check_phonenumber($correct[$i]) == "wrong") { $notes[$counter] = $wrong[$i]; $counter++; } } $arr = array(); $arr[0] = $degree;//degree $arr[1] = count($wrong) + count($correct);//total degree $arr[2] = $notes; return $arr; }else{ $this->checker2 = true; session()->put('error_function','error_function'); unlink(public_path('task\\') . $task_name); } }else{ $this->checker1 = true; session()->put('error_class','error_class'); unlink(public_path('task\\') . $task_name); }//if class is exist or not }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function taskB()\n {\n Performance::point(__FUNCTION__);\n\n //\n // Run code\n usleep(2000);\n //\n\n // Finish point Task B\n Performance::finish();\n }", "public function testTask2(){\n\n }", "public function step_2()\n {\n }", ...
[ "0.5747008", "0.5722135", "0.5699618", "0.5631746", "0.557549", "0.5478545", "0.54723316", "0.5455139", "0.52931464", "0.5285361", "0.52625", "0.5217947", "0.52016664", "0.519787", "0.5156039", "0.5148465", "0.5140543", "0.514036", "0.5083986", "0.5061822", "0.5039475", "0....
0.5518794
5
End task_2_correction Start task_3_correction
private function task_3_correction($task_name) { require_once public_path('task\\') . $task_name; $newValue_of_task = explode('.',$task_name); if(class_exists($newValue_of_task[0])){ $task = new $newValue_of_task[0]; if(session()->has('error_class')){ session()->forget('error_class'); } if(method_exists($newValue_of_task[0], 'check_email')){ if(session()->has('error_function')){ session()->forget('error_function'); } $wrong = array(); $wrong[0] = "";//empty $wrong[1] = "bassem reda@gmail.com";//space $wrong[2] = "bassemreda@anything.com";//not gmail or yahoo $wrong[3] = "bassem#gmail.com";//# not @ $wrong[4] = "bassem@gmail.com@gmail.com";//@gmail.com written two times $wrong[5] = "bassem@gmailcom"; $correct = array(); $correct[0] = "bassemreda55@gmail.com"; $correct[1] = "abanoub@yahoo.com"; $correct[2] = "bassem@yahoo.com"; $notes = array(); $counter = 0; $degree = 0; for($i=0;$i<count($wrong);$i++) { if($task->check_email($wrong[$i]) == "wrong") { $degree++; } else if($task->check_email($wrong[$i]) == "correct") { $notes[$counter] = $wrong[$i]; $counter++; } } for($i=0;$i<count($correct);$i++) { if($task->check_email($correct[$i]) == "correct") { $degree++; } else if($task->check_email($correct[$i]) == "wrong") { $notes[$counter] = $wrong[$i]; $counter++; } } $arr = array(); $arr[0] = $degree;//degree $arr[1] = count($wrong) + count($correct);//total degree $arr[2] = $notes; return $arr; }else{ $this->checker2 = true; session()->put('error_function','error_function'); unlink(public_path('task\\') . $task_name); } }else{ $this->checker1 = true; session()->put('error_class','error_class'); unlink(public_path('task\\') . $task_name); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function step_3()\n {\n }", "private function task_1_correction($task_name)\n {\n \n require_once public_path('task\\\\') . $task_name;\n $newValue_of_task = explode('.',$task_name);\n \n if(class_exists($newValue_of_task[0])){\n $task = new $newValue_of...
[ "0.6004627", "0.58566993", "0.5725865", "0.56256425", "0.55530465", "0.54087365", "0.53765833", "0.5326187", "0.530182", "0.5287233", "0.52449656", "0.5239364", "0.52220654", "0.52174973", "0.5172016", "0.51604825", "0.5148938", "0.5145727", "0.5087899", "0.5075644", "0.50678...
0.56053764
4
Register any application services.
public function register() { $this->app->bind(GiaoHangNhanhGateway::class, function($app) { $token = config('services.giaohangnhanh.token'); $shopId = config('services.giaohangnhanh.shop_id'); $fromDistrictId = config('services.giaohangnhanh.from_district_id'); $headers = [ 'Content-Type' => 'application/json', 'token' => $token, 'ShopId' => $shopId ]; return new GiaoHangNhanh($token, $headers, $shopId, $fromDistrictId, 1); // Duong bo }); $this->app->bind('Address', function($app) { return new Address; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n ...
[ "0.7879658", "0.7600202", "0.74930716", "0.73852855", "0.736794", "0.7306089", "0.7291359", "0.72896826", "0.72802424", "0.7268026", "0.7267702", "0.72658145", "0.7249053", "0.72171587", "0.7208486", "0.7198799", "0.7196415", "0.719478", "0.7176513", "0.7176227", "0.7164647",...
0.0
-1
Bootstrap any application services.
public function boot() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bootstrap(): void\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n $this->app->loadDeferredProviders();\n }", "public function boot()\n {\n // Boot here application\n }", "public func...
[ "0.7344842", "0.7212776", "0.7207748", "0.7123287", "0.7109729", "0.70822036", "0.7076881", "0.70718396", "0.7051853", "0.7025475", "0.7011949", "0.70043486", "0.6955807", "0.69322443", "0.69319373", "0.69272774", "0.6911386", "0.69069713", "0.6898877", "0.6898432", "0.689659...
0.0
-1
Find out the stocks associated with this genotype (allele)
function mainlab_get_allele_associated_stocks ($genotype_id, $project = 0, $stock_uniquename = 0, $species = 0) { $ssql = "SELECT DISTINCT S.stock_id, S.uniquename, CP.nid AS project_nid, P.name AS project FROM {nd_experiment_genotype} NDG INNER JOIN {nd_experiment_stock} NDS ON NDG.nd_experiment_id = NDS.nd_experiment_id INNER JOIN {stock} EXP ON EXP.stock_id = NDS.stock_id INNER JOIN {stock_relationship} SR ON SR.subject_id = EXP.stock_id INNER JOIN {stock} S ON S.stock_id = SR.object_id INNER JOIN {nd_experiment_project} NEP ON NEP.nd_experiment_id = NDG.nd_experiment_id LEFT JOIN {project} P ON P.project_id = NEP.project_id LEFT JOIN public.chado_project CP ON P.project_id = CP.project_id LEFT JOIN (SELECT * FROM {stockprop} WHERE type_id = (SELECT cvterm_id FROM {cvterm} WHERE name = 'permission' AND cv_id = (SELECT cv_id FROM {cv} WHERE name ='MAIN'))) SP ON S.stock_id = SP.stock_id LEFT JOIN (SELECT * FROM {projectprop} PP WHERE type_id = (SELECT cvterm_id FROM {cvterm} WHERE name = 'project_type' AND cv_id = (SELECT cv_id FROM {cv} WHERE name = 'MAIN'))) PTYPE ON PTYPE.project_id = P.project_id LEFT JOIN (SELECT * FROM {projectprop} PP WHERE type_id = (SELECT cvterm_id FROM {cvterm} WHERE name = 'sub_type' AND cv_id = (SELECT cv_id FROM {cv} WHERE name = 'MAIN'))) SUBTYPE ON SUBTYPE.project_id = P.project_id LEFT JOIN (SELECT * FROM {projectprop} PP WHERE type_id = (SELECT cvterm_id FROM {cvterm} WHERE name = 'permission' AND cv_id = (SELECT cv_id FROM {cv} WHERE name = 'MAIN'))) PERM ON PERM.project_id = P.project_id WHERE SR.type_id = (SELECT cvterm_id FROM {cvterm} WHERE name = 'sample_of' AND cv_id = (SELECT cv_id FROM {cv} WHERE name = 'MAIN')) AND PTYPE.value = 'genotyping' AND SUBTYPE.value = 'SSR' AND PERM.value = 'public' AND genotype_id = :genotype_id"; if ($project) {$ssql .= " AND P.name = '$project'";} if ($stock_uniquename) {$ssql .= " AND S.uniquename = '$stock_uniquename'";} if ($species) {$ssql .= " AND (SELECT genus || ' ' || species FROM {organism} WHERE organism_id =S.organism_id) = '$species'";} $sresult = chado_query($ssql, array(':genotype_id' => $genotype_id)); $stocks = array(); $scounter = 0; while ($stock = $sresult->fetchObject()) { // Find out the stock nid if there is one if (db_table_exists('chado_stock')) { $nsql = "SELECT nid FROM {chado_stock} WHERE stock_id = :stock_id"; $nid = db_query($nsql, array(':stock_id' => $stock->stock_id))->fetchField(); $stock->nid = $nid; } $stocks [$scounter] = $stock; $scounter ++; } return $stocks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStock();", "public function getVariantStocks()\n {\n return $this->getProductStocks()\n ->joinWith('stock');\n }", "public function read_stocks() {\n return $this->yahooStock->getQuotes();\n }", "public function getStock()\n ...
[ "0.65531206", "0.63600194", "0.6261578", "0.6231055", "0.6231055", "0.62242687", "0.62242687", "0.62242687", "0.62242687", "0.62242687", "0.61554205", "0.60537744", "0.60195446", "0.5988002", "0.59194744", "0.58896285", "0.5798436", "0.5758166", "0.57405263", "0.57309055", "0...
0.6559824
0
Display a listing of the resource.
public function index() { $categories = category::all(); return view('page.category.index', ['categories' => $categories]); // }
{ "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) { $categoryCheck = category::where('categoryname', $request->categoryname)->first(); if ($categoryCheck == null) { category::create(['categoryname' => $request->categoryname]); $request->session()->flash('success', 'Add category success fully'); return redirect()->action('CategoryController@index'); } else { $request->session()->flash('danger', 'category has already exit'); return redirect()->action('CategoryController@index'); } // }
{ "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(category $category) { return "show"; // }
{ "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(category $category) { return "category"; // }
{ "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, category $category) { $categoryCheck = category::where('categoryname', $request->categoryname)->first(); if ($categoryCheck == null) { category::where('id', $category->id) ->update(['categoryname' => $request->categoryname]); $request->session()->flash('info', 'Update category Success fully'); return redirect()->action('CategoryController@index'); } else { if ($categoryCheck->id == $category->id) { category::where('id', $category->id) ->update(['categoryname' => $request->categoryname]); $request->session()->flash('info', 'Update category Success fully'); return redirect()->action('CategoryController@index'); } $request->session()->flash('danger', 'category has already exit'); return redirect()->action('CategoryController@index'); } }
{ "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(category $category) { $deletecategory = category::where('id', $category->id); $deletecategory->delete(); session()->flash('success', 'Delete category Success fully'); return redirect()->action('CategoryController@index'); }
{ "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
Display a listing of the resource.
public function index() { $location=Ho_details::all(); return view('admin.master.ho_details.view',compact('location')); }
{ "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() { $state=State::all(); //$location_type=LocationType::all(); return view('admin.master.ho_details.add',compact('state')); }
{ "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) { $validator = Validator::make($request->all(), [ 'gst_number' => 'required', 'address_line_1' => 'required', 'name' => 'required', 'state_id' => 'required', 'postal_code' => 'required', 'name' => 'required|unique:ho_details,name,NULL,id,deleted_at,NULL,gst_number,'.$request->gst_number, ])->validate(); $location = new Ho_details(); $location->name = $request->name; $location->gst_number = $request->gst_number; $location->address_line_1 = $request->address_line_1; $location->address_line_2 = $request->address_line_2; $location->land_mark = $request->land_mark; $location->country_id = 1; $location->state_id = $request->state_id; $location->district_id = $request->district_id; $location->city_id = $request->city_id; $location->postal_code = $request->postal_code; $location->country_id = 1; /* Only India's States */ $location->created_by = 0; $location->updated_by = 0; if ($location->save()) { return Redirect::back()->with('success', 'Successfully created'); } else { return Redirect::back()->with('failure', 'Something Went Wrong..!'); } }
{ "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(Location $location,$id) { $location=Ho_details::find($id); return view('admin.master.ho_details.show',compact('location')); }
{ "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(Location $location,$id) { $state=State::all(); $location=Ho_details::find($id); return view('admin.master.ho_details.edit',compact('state','location')); }
{ "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, Location $location,$id) { $location = Ho_details::find($id); $validator = Validator::make($request->all(), [ 'gst_number' => 'required', 'address_line_1' => 'required', 'name' => 'required', 'state_id' => 'required', 'postal_code' => 'required', 'name' => 'required|unique:ho_details,name,'.$id.',id,deleted_at,NULL,gst_number,'.$request->gst_number, ])->validate(); $location->name = $request->name; $location->gst_number = $request->gst_number; $location->address_line_1 = $request->address_line_1; $location->address_line_2 = $request->address_line_2; $location->land_mark = $request->land_mark; $location->state_id = $request->state_id; $location->district_id = $request->district_id; $location->city_id = $request->city_id; $location->postal_code = $request->postal_code; $location->created_by = 0; $location->updated_by = 0; if ($location->save()) { return Redirect::back()->with('success', 'Successfully Updated'); } else { return Redirect::back()->with('failure', 'Something Went Wrong..!'); } }
{ "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(Location $location,$id) { $location = Ho_details::find($id); if ($location->delete()) { return Redirect::back()->with('success', 'Deleted successfully'); } else { return Redirect::back()->with('failure', 'Something Went Wrong..!'); } }
{ "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
Display a listing of the BText.
public function index(Request $request) { $this->bTextRepository->pushCriteria(new RequestCriteria($request)); $bTexts = $this->bTextRepository->all(); return view('b_texts.index') ->with('bTexts', $bTexts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderListContent() {}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "pu...
[ "0.6876131", "0.6868345", "0.6807685", "0.6665387", "0.65461314", "0.639859", "0.63736576", "0.6299446", "0.62643903", "0.626056", "0.6227146", "0.6212653", "0.6177368", "0.61589545", "0.61426634", "0.61038685", "0.60984755", "0.60861754", "0.6075717", "0.60469574", "0.603604...
0.0
-1
Show the form for creating a new BText.
public function create($id = '') { return view('b_texts.create')->with('block_id', $id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function display_create_form(){\n echo \"<form action='../../Controllers/charity_controller.class.php?action=save' method='post'>\";\n echo \"Name: <input type='text' name='name' /><br />\";\n echo \"Description: <textarea name='description'></textarea><br />\";\n echo \"<input type='subm...
[ "0.69649106", "0.6947938", "0.6843854", "0.6773878", "0.6688774", "0.6587767", "0.65580046", "0.6536644", "0.6532218", "0.651691", "0.64974207", "0.64923656", "0.6491102", "0.647722", "0.64708614", "0.64708614", "0.64651275", "0.64651275", "0.64651275", "0.64651275", "0.64542...
0.62675154
47
Store a newly created BText in storage.
public function store(CreateBTextRequest $request, $id = '') { $input = $request->all(); $bText = $this->bTextRepository->create($input); Flash::success('B Text saved successfully.'); return redirect('/blocks/show_texts/'.$id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n {\n // If the user is logged in...\n if (Auth::check()) {\n // validate\n // read more on validation at http://laravel.com/docs/validation\n $rules = array(\n 'title' => 'required',\n );\n $validat...
[ "0.6215897", "0.6140597", "0.5994075", "0.5851112", "0.58351237", "0.5800299", "0.5800299", "0.5800299", "0.5793487", "0.57908916", "0.57633173", "0.5744871", "0.5741598", "0.5741598", "0.5741598", "0.5741598", "0.5741598", "0.5741598", "0.5741598", "0.5741598", "0.5741598", ...
0.6857694
0
Display the specified BText.
public function show($id) { $bText = $this->bTextRepository->findWithoutFail($id); if (empty($bText)) { Flash::error('B Text not found'); return redirect(route('bTexts.index')); } return view('b_texts.show')->with('bText', $bText); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showText($text) {}", "protected function _showText($text) {}", "public function raw_display($text) {\n\t\tif(self::$display_stopped) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ($this->buffering_on()) {\n\t\t\tself::$core_display->buffer .= \"$text\";\n\t\t} else {\n\t\t\techo($text);\n\t\t}\n\t}", "pu...
[ "0.73928577", "0.7351276", "0.68721545", "0.6620478", "0.6540805", "0.6307055", "0.612524", "0.6093456", "0.606125", "0.59836864", "0.5909928", "0.5909928", "0.5891977", "0.58734703", "0.58204454", "0.5820397", "0.58120465", "0.57981044", "0.5777029", "0.57465625", "0.570843"...
0.5370711
45
Show the form for editing the specified BText.
public function edit($id, $block_id) { $bText = $this->bTextRepository->findWithoutFail($id); if (empty($bText)) { Flash::error('B Text not found'); return redirect(route('bTexts.index')); } return view('b_texts.edit')->with(['bText' => $bText, 'block_id' => $block_id]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editView() {\n $this->template()->addTplFile('edit.phtml');\n $this->setTinyMCE($this->formEdit->text, 'advanced');\n $this->setTinyMCE($this->formEdit->textPanel, 'advanced', array('height' => 300));\n if(isset($this->formEdit->textFooter)){\n $this->setTinyMCE($this->f...
[ "0.7350388", "0.6917361", "0.64566207", "0.6325472", "0.6306054", "0.6265109", "0.6194443", "0.6190279", "0.61731315", "0.6153242", "0.6145709", "0.6144594", "0.6124497", "0.61168873", "0.6102363", "0.6097743", "0.60226005", "0.5996404", "0.5995575", "0.599051", "0.5984346", ...
0.5820614
30
Update the specified BText in storage.
public function update($id, UpdateBTextRequest $request, $block_id) { $bText = $this->bTextRepository->findWithoutFail($id); if (empty($bText)) { Flash::error('B Text not found'); return redirect('/blocks/show_texts/'.$block_id); } $bText = $this->bTextRepository->update($request->all(), $id); Flash::success('B Text updated successfully.'); return redirect('/blocks/show_texts/'.$block_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateText($text, $additionalData = array()) {\n $additionalSql = '';\n foreach ($additionalData as $key => $value) {\n $additionalSql .= ',' . $key . \"='\" . escapeString($value) . \"'\";\n }\n\n if (CHAPTER_IN_FILE) {\n $this->file = CHAPTER_FILE...
[ "0.6398287", "0.63336074", "0.6281504", "0.6093129", "0.5967151", "0.5888563", "0.58335865", "0.58010066", "0.5774895", "0.5770646", "0.5770646", "0.57649565", "0.5740013", "0.57216424", "0.57216424", "0.5717348", "0.57007104", "0.57007104", "0.57007104", "0.5699877", "0.5676...
0.6241406
3
Remove the specified BText from storage.
public function destroy($id, $block_id) { $bText = $this->bTextRepository->findWithoutFail($id); if (empty($bText)) { Flash::error('B Text not found'); return redirect(route('bTexts.index')); } $this->bTextRepository->delete($id); Flash::success('B Text deleted successfully.'); return redirect('/blocks/show_texts/'.$block_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete(\\Core\\Model\\Content\\Text $text)\n {\n if(!$text->getShared())\n {\n $this->getEntityManager()->remove($text);\n }\n }", "public function remove_avaliation_text($avaliation_text_id)\n {\n $avaliation_text = new Avaliation_Text($avaliation_text_i...
[ "0.6657056", "0.6336554", "0.62061745", "0.6147514", "0.6000653", "0.59989655", "0.57107997", "0.56854826", "0.56854826", "0.56854826", "0.56854826", "0.55370003", "0.54540837", "0.5453029", "0.53865063", "0.53865063", "0.53865063", "0.518496", "0.51825666", "0.5157386", "0.5...
0.48260924
56
get all customer attribute used for onetepcheckout by postion
public function getBillingFields() { $attributes = $this->getCollection() ->addFieldToFilter( 'is_used_for_onestepcheckout', array( 'neq' => '', ) ) ->addFieldToFilter( 'is_billing', array( 'eq' => 1, ) ); $attributes->setOrder('position', Varien_Data_Collection::SORT_ORDER_ASC); return $attributes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributesProperty()\n {\n return Attribute::whereAttributeType(Customer::class)->get();\n }", "public function getAllForCustonObj() {\n $query = $this->db->query(\"SELECT * FROM $this->table ORDER BY shortname;\");\n $this->allcpny = $query->custom_result_object('en...
[ "0.6423683", "0.6247091", "0.6188016", "0.603144", "0.60107034", "0.6000907", "0.59976995", "0.5892204", "0.5860612", "0.5826148", "0.57773954", "0.5763146", "0.576171", "0.5750154", "0.5710744", "0.5704958", "0.5703669", "0.5682921", "0.56790966", "0.5614745", "0.5610439", ...
0.5861925
8
__ __ ____ _ ___ / /_ / /_ ___ _____ / __ `// _ \ / __// __// _ \ / ___/ / /_/ // __// /_ / /_ / __// / \__, / \___/ \__/ \__/ \___//_/ /____/ __ __ _____ ___ / /_ / /_ ___ _____ / ___// _ \ / __// __// _ \ / ___/ (__ )/ __// /_ / /_ / __// / /____/ \___/ \__/ \__/ \___//_/
public function getId(): ?int { return $this->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function kahlan()\n {\n return <<<EOD\n _ _\n /\\ /\\__ _| |__ | | __ _ _ __\n / //_/ _` | '_ \\| |/ _` | '_ \\\n/ __ \\ (_| | | | | | (_| | | | |\n\\/ \\/\\__,_|_| |_|_|\\__,_|_| |_|\nEOD;\n }", "private function _i() {\n }", "public function native();", "function gener...
[ "0.5567709", "0.5329465", "0.51470697", "0.5142269", "0.51126146", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", "0.5050366", ...
0.0
-1
require_once "RSMtestsFunctionsLibrary.php"; Get relations for the round and subject passed
function getRelations($theRoundID, $theSubjectID, $clientID) { global $definitions; //get item type $relationsItemTypeID = getClientItemTypeID_RelatedWith_byName($definitions['roundSubjectsTestRelations'], $clientID); //get properties $relationsRoundPropertyID = getClientPropertyID_RelatedWith_byName($definitions['roundSubjectsTestRelationsRoundID' ], $clientID); $relationsSubjectPropertyID = getClientPropertyID_RelatedWith_byName($definitions['roundSubjectsTestRelationsSubjectID' ], $clientID); $relationsTestCasesPropertyID = getClientPropertyID_RelatedWith_byName($definitions['roundSubjectsTestRelationsTestID' ], $clientID); $relationsTestCategoriesPropertyID = getClientPropertyID_RelatedWith_byName($definitions['roundSubjectsTestRelationsTestCatIDs'], $clientID); //First get the relation associated $returnProperties = array(); $returnProperties[] = array('ID' => $relationsRoundPropertyID, 'name' => 'roundID'); $returnProperties[] = array('ID' => $relationsSubjectPropertyID, 'name' => 'subjectID'); $returnProperties[] = array('ID' => $relationsTestCasesPropertyID, 'name' => 'testCasesIDs'); $returnProperties[] = array('ID' => $relationsTestCategoriesPropertyID, 'name' => 'testCatIDs'); //build the filter $filters = array(); $filters[] = array('ID' => $relationsRoundPropertyID, 'value' => $theRoundID); $filters[] = array('ID' => $relationsSubjectPropertyID, 'value' => $theSubjectID); $relations = getFilteredItemsIDs($relationsItemTypeID, $clientID, $filters, $returnProperties); return $relations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRelations($theRoundID, $theSubjectID, $clientID) {\n global $definitions;\n\n $relationsItemTypeID = getClientItemTypeID_RelatedWith_byName($definitions['roundSubjectsTestRelations'], $clientID);\n\n $relationsRoundPropertyID = getClientPropertyID_RelatedWith_byName($definitions['roundSubjects...
[ "0.72404677", "0.5648223", "0.56259716", "0.5612863", "0.5479739", "0.54645437", "0.54273313", "0.536446", "0.53118503", "0.53118503", "0.53082985", "0.5284517", "0.5284517", "0.52818125", "0.5240556", "0.52320874", "0.5208981", "0.51988804", "0.5197865", "0.5194668", "0.5153...
0.7326091
0
/This function returns all the testcases inside one group (and inside their categories and subcategories)
function getAllTestCategoriesInsideAGroup($groupID, $clientID) { global $definitions; //get item type $itemTypeTestCasesCategoriesID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID); //get property $testCategoryParentGroupID = getClientPropertyID_RelatedWith_byName($definitions['testcasescategoryGroupID'], $clientID); //First, we need get all the categories that has the parent groupID // build return properties array $returnProperties = array(); //build the filter $filters = array(); $filters[] = array('ID' => $testCategoryParentGroupID, 'value' => $groupID); $testCategories = getFilteredItemsIDs($itemTypeTestCasesCategoriesID, $clientID, $filters, $returnProperties); //Get only the testCategories ids $onlyIds = array(); foreach ($testCategories as $tcat) { $onlyIds[] = $tcat['ID']; } return $onlyIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllTestCasesInsideAGroup($groupID, $clientID) {\n\n global $definitions;\n\n //get item type\n $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID);\n\n //get property\n $testCasesParentPropertyID = getClientPropertyID_RelatedWith_byName($de...
[ "0.74986976", "0.7086617", "0.6691464", "0.65267557", "0.63119113", "0.620665", "0.6079876", "0.60327107", "0.6007429", "0.5951198", "0.5872737", "0.5853507", "0.5796919", "0.5793174", "0.57880014", "0.5783927", "0.5762488", "0.57443327", "0.57362705", "0.57321674", "0.568987...
0.6938299
2
This function returns all the testcases inside one group (and inside their categories and subcategories)
function getAllTestCasesInsideAGroup($groupID, $clientID) { global $definitions; //get item type $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID); //get property $testCasesParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasesFolderID'], $clientID); //get all categories inside group $onlyIds = getAllTestCategoriesInsideAGroup($groupID, $clientID); //Next, create a string with all the categories inside the group $toFilter = implode(',', $onlyIds); //Create the filter // build return properties array $returnProperties = array(); //build the filter $filters = array(); $filters[] = array('ID' => $testCasesParentPropertyID, 'value' => $toFilter, 'mode' => '<-IN'); $allTestCases = getFilteredItemsIDs($itemTypeTestCasesID, $clientID, $filters, $returnProperties); //Get only the testCategories ids $onlyIds = array(); foreach ($allTestCases as $tcas) { $onlyIds[] = $tcas['ID']; } return $onlyIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTestCasesInsideACategory($testCategoryID, $theSubjectID, $roundID, $clientID) {\n global $definitions;\n\n $categoriesItemTypeID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID);\n $categoryParentPropertyID = getClientPropertyID_RelatedWith_byName($definit...
[ "0.70565355", "0.6960221", "0.6703277", "0.6524542", "0.6343473", "0.62679315", "0.6077294", "0.6069568", "0.6024369", "0.5877993", "0.58598197", "0.58119255", "0.57896143", "0.57848513", "0.5781865", "0.57703596", "0.57599324", "0.5756043", "0.57417434", "0.574049", "0.57175...
0.7521374
0
This function returns all the categories inside one parent category and their subcategories
function getAllTestCategoriesInsideACategory($parentCategoryID, $clientID) { global $definitions; //get item type $itemTypeTestCasesCategoriesID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID); //get property $testCategoryParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasescategoryParentID'], $clientID); //First, we need the tree categories $tree = getItemsTree($itemTypeTestCasesCategoriesID, $clientID, $testCategoryParentPropertyID, $parentCategoryID); //Transform the items tree and store the ids in an unidimensional array $allCategories = array(); //First, add the parentCategoryID $allCategories[] = $parentCategoryID; if ($tree) { foreach ($tree as $parid => $parent) { if (!in_array($parid, $allCategories)) { //Add the value $allCategories[] = $parid; } foreach ($parent as $child) { $id = $child['ID']; //Check if the values does not exist in the allCategories array. if (!in_array($id, $allCategories)) { //Add the value $allCategories[] = $id; } } } } //And return the testCategories return ($allCategories); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCategories($parent=0)\n {\n $sql=\"select * from itf_category where parent ='\".$parent.\"' and status='1' order by catname\";\n $res = $this->dbcon->FetchAllResults($sql);\n\n if(count($res) > 0){\n foreach($res as &$r)\n {\n $re = $this->g...
[ "0.80137753", "0.7982417", "0.7608047", "0.7503634", "0.7493022", "0.74341655", "0.74308854", "0.73981786", "0.7324852", "0.7305709", "0.7301678", "0.72558624", "0.7221863", "0.71843475", "0.7150873", "0.71488196", "0.71227723", "0.71027344", "0.70949554", "0.7094945", "0.708...
0.6911727
35
This function returns the categories inside one parent category only (not subcategories)
function getTestCategoriesInsideACategory($parentCategoryID, $clientID) { global $definitions; //get item type $itemTypeTestCasesCategoriesID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID); //get property $testCategoryParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasescategoryParentID'], $clientID); //Create the filter // build return properties array $returnProperties = array(); //build an empty filter $filters = array(); $filters[] = array('ID' => $testCategoryParentPropertyID, 'value' => $parentCategoryID); $testCategories = getFilteredItemsIDs($itemTypeTestCasesCategoriesID, $clientID, $filters, $returnProperties); //Get only the testCategories ids $onlyIds = array(); foreach ($testCategories as $tcat) { $onlyIds[] = $tcat['ID']; } return $onlyIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParentCategories() {\n $select = $this->select()\n ->from($this->info('name'), array(\"category_id\", \"category_name\"))\n ->where(\"cat_dependency = 0 AND subcat_dependency = 0\");\n\n return $this->fetchAll($select);\n }", "public static function parentCategorie...
[ "0.8241106", "0.80656826", "0.7721613", "0.76219827", "0.7516852", "0.75166065", "0.7508327", "0.7327596", "0.72452265", "0.72415334", "0.7238069", "0.718599", "0.71627456", "0.7108079", "0.6898846", "0.68768287", "0.6861745", "0.68567145", "0.68544215", "0.68466514", "0.6814...
0.64809835
58
This function returns all the testcases inside one parent category and their subcategories
function getAllTestCasesInsideCategory($parentCategoryID, $clientID) { global $definitions; //get item type $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID); //get property $testCasesParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasesFolderID'], $clientID); //get all categories inside $allCategories = getAllTestCategoriesInsideACategory($parentCategoryID, $clientID); $toFilter = implode(',', $allCategories); //When we have all the categories inside, get their test cases //Create the filter // build return properties array $returnProperties = array(); //build an empty filter $filters = array(); $filters[] = array('ID' => $testCasesParentPropertyID, 'value' => $toFilter, 'mode' => '<-IN'); $testCases = getFilteredItemsIDs($itemTypeTestCasesID, $clientID, $filters, $returnProperties); //Get only the testCategories ids $onlyIds = array(); foreach ($testCases as $tcas) { $onlyIds[] = $tcas['ID']; } return $onlyIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllTestCategoriesInsideACategory($parentCategoryID, $clientID) {\n\n global $definitions;\n\n //get item type\n $itemTypeTestCasesCategoriesID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID);\n\n //get property\n $testCategoryParentPropertyID = getC...
[ "0.7586548", "0.73783547", "0.71820617", "0.7177901", "0.7008018", "0.6816272", "0.6548999", "0.65266335", "0.65198386", "0.6519264", "0.6501634", "0.64544076", "0.64261615", "0.62595737", "0.6247661", "0.61789495", "0.6156544", "0.6150775", "0.6107434", "0.6097609", "0.60720...
0.77038574
0
This function returns the testcases inside one parent category only (not subcategories)
function getTestCasesInsideCategory($parentCategoryID, $clientID) { global $definitions; //get item type $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID); //get property $testCasesParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasesFolderID'], $clientID); // build return properties array $returnProperties = array(); //build an empty filter $filters = array(); $filters[] = array('ID' => $testCasesParentPropertyID, 'value' => $parentCategoryID); $testCases = getFilteredItemsIDs($itemTypeTestCasesID, $clientID, $filters, $returnProperties); //Get only the testCategories ids $onlyIds = array(); foreach ($testCases as $tcas) { $onlyIds[] = $tcas['ID']; } return $onlyIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllTestCasesInsideCategory($parentCategoryID, $clientID) {\n\n global $definitions;\n\n //get item type\n $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID);\n\n //get property\n $testCasesParentPropertyID = getClientPropertyID_RelatedWith...
[ "0.7650469", "0.7343272", "0.734251", "0.72037286", "0.71789485", "0.68887734", "0.6658828", "0.66286737", "0.657201", "0.65059453", "0.64021194", "0.6396007", "0.63922936", "0.6322818", "0.6291699", "0.61062264", "0.60999966", "0.60893714", "0.6061898", "0.6060847", "0.60547...
0.7512762
1
Get the structure from the testCategories to the first test category. Returns all inversed testCategories tree
function getParentCategoriesForCategory($categoryID, $clientID) { global $definitions; //get item type $itemTypeTestCasesCategoriesID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID); //get property $testCategoryParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasescategoryParentID'], $clientID); //start loop with passed category $aux = $categoryID; $categoriesArray = array(); //search parent category until 0 level reached while ($aux != 0) { $categoriesArray[] = $aux; $aux = getItemPropertyValue($aux, $testCategoryParentPropertyID, $clientID); } //return categories array return $categoriesArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategoryTree() {\n $categories = TableRegistry::get('Categories');\n\n $first_level_categories = $categories->find()->select([\n 'id',\n 'title',\n 'slug'\n ])->where([\n 'level' => '0',\n ...
[ "0.6431287", "0.628329", "0.62236667", "0.61234224", "0.6120856", "0.5991601", "0.5969033", "0.59373623", "0.59091896", "0.5882585", "0.58429545", "0.58425784", "0.58111674", "0.57841706", "0.5761384", "0.5739707", "0.5735731", "0.57079184", "0.56722015", "0.5649777", "0.5622...
0.5641655
20
Get the structure from the testCase to the first test category. Returns all inversed testCategories tree
function getParentCategoriesForTestCase($testCaseID, $clientID) { global $definitions; //get item type $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID); //get property $testCasesParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['testcasesFolderID'], $clientID); //First, get the parent test category for the test case $categoryID = getItemPropertyValue($testCaseID, $testCasesParentPropertyID, $clientID); //return all categories return getParentCategoriesForCategory($categoryID, $clientID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTestCasesInsideACategory($testCategoryID, $theSubjectID, $roundID, $clientID) {\n global $definitions;\n\n $categoriesItemTypeID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID);\n $categoryParentPropertyID = getClientPropertyID_RelatedWith_byName($definit...
[ "0.6299497", "0.6204236", "0.61932635", "0.6171437", "0.60780704", "0.6059209", "0.59716314", "0.59021354", "0.5776588", "0.57236856", "0.5707779", "0.5692827", "0.5683793", "0.5652623", "0.5638312", "0.56229925", "0.5620955", "0.55915844", "0.55809176", "0.5569658", "0.55412...
0.6220792
1
Adds the tests or categories that aren't in the relation
function addItemsToRelationIfNotExists($itemsList, $listToAdd) { //First, split the two lists $existingRelation = explode(',', $itemsList); $toAddIds = explode(',', $listToAdd); //Only add if previously not exists for ($i = 0; $i < count($toAddIds); $i++) { $theAddedID = $toAddIds[$i]; if (!in_array($theAddedID, $existingRelation)) { //The item does not exist $existingRelation[] = $theAddedID; } } //Finally, implode the list of categories and return //First, clear empty values $existingRelation = array_filter($existingRelation); return implode(',', $existingRelation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddCategoriesWithoutI18n()\n {\n $this->setExpectedException(ApiException::class, null, 422);\n\n $category = new Category();\n $category->setActive(true);\n $category->setPosition(1);\n $category->setVisibility([Model\\Brand::VISIBILITY_FACEBOOK]);\n\n ...
[ "0.5967625", "0.5955763", "0.57028973", "0.56872016", "0.56073993", "0.55611086", "0.5550551", "0.55462074", "0.5514198", "0.55095315", "0.5498648", "0.54900724", "0.5438827", "0.54218835", "0.540567", "0.53877515", "0.53515035", "0.5342937", "0.53364605", "0.5292597", "0.525...
0.0
-1
Removes the tests or categories that are in the relation
function removeItemsFromRelationIfExists($itemsList, $listToRemove) { //First, split the two lists $existingRelation = explode(',', $itemsList); $toRemoveIds = explode(',', $listToRemove); //Only remove if previously exists for ($i = 0; $i < count($toRemoveIds); $i++) { $theRemovedPos = array_search($toRemoveIds[$i], $existingRelation); if ($theRemovedPos !== false) { //The item exists unset($existingRelation[$theRemovedPos]); } } //Finally, implode the list of categories and return //First, clear empty values $existingRelation = array_filter($existingRelation); return implode(',', $existingRelation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearCategories()\n {\n $scenario = Scenarios::getOrCreateUserScenario();\n $scenario->categories()->detach();\n }", "public function clearCategories() {\n\t\t$this->quizCategoriesTable->deleteWhere('quizId', $this->id);\n\t}", "private function clearCategories() {\n ...
[ "0.73939544", "0.65888613", "0.62314576", "0.61368716", "0.61323315", "0.6111323", "0.6049203", "0.60189515", "0.58857423", "0.58665246", "0.5841267", "0.58157915", "0.5764568", "0.5682738", "0.5670453", "0.5642359", "0.56197023", "0.5613559", "0.55975145", "0.5596358", "0.55...
0.0
-1
This function removes the steps of a test case from the results
function deleteStepsResultsForATestCase($testCase, $relation, $clientID) { global $definitions; //DEFINITIONS $itemTypeStepsID = getClientItemTypeID_RelatedWith_byName($definitions['steps'], $clientID); $resultsItemTypeID = getClientItemTypeID_RelatedWith_byName($definitions['result'], $clientID); //DEFINITIONS FOR PROPERTIES $tcParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['stepsTestCaseParentID'], $clientID); $relatedStepPropertyID = getClientPropertyID_RelatedWith_byName($definitions['stepsRelatedID'], $clientID); $relatedRelationPropertyID = getClientPropertyID_RelatedWith_byName($definitions['stepsRoundSubjectRelationID'], $clientID); $stepAssocPropertyID = getClientPropertyID_RelatedWith_byName($definitions['resultStepAssociatedID'], $clientID); //build the return array $returnProperties = array(); //build the filter $filters = array(); $filters[] = array('ID' => $tcParentPropertyID, 'value' => $testCase); $filters[] = array('ID' => $relatedStepPropertyID, 'value' => 0, 'mode' => '<>'); $filters[] = array('ID' => $relatedRelationPropertyID, 'value' => $relation['ID']); // get testcase steps $steps = getFilteredItemsIDs($itemTypeStepsID, $clientID, $filters, $returnProperties); $stepsList = array(); foreach ($steps as $step) { $stepsList[] = $step['ID']; } if (count($stepsList) > 0) { // delete steps associated results //build the return array $returnProperties = array(); //build the filter $filters = array(); $filters[] = array('ID' => $stepAssocPropertyID, 'value' => implode(',', $stepsList), 'mode' => '<-IN'); //get results $res = getFilteredItemsIDs($resultsItemTypeID, $clientID, $filters, $returnProperties); $resList = array(); foreach ($res as $result) { $resList[] = $result['ID']; } if (count($resList) > 0) { //Clear results steps list deleteItems($resultsItemTypeID, $clientID, implode(',', $resList)); } // finally delete steps deleteItems($itemTypeStepsID, $clientID, implode(',', $stepsList)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function clean(&$testResults) {\n $n = count($testResults);\n for($i = 0; $i < $n; $i++) {\n $this->cleanTestResult(&$testResults[$i]);\n }\n }", "public function skip() {\n parent::skip();\n foreach ($this->suites as $suite) {\n $suite->skip();...
[ "0.58990055", "0.58325917", "0.5803855", "0.5635781", "0.55998796", "0.5564479", "0.5558872", "0.5542909", "0.5541296", "0.55059236", "0.5505281", "0.5501082", "0.54515016", "0.5410092", "0.5388904", "0.5348952", "0.5348952", "0.5348952", "0.5318067", "0.5308237", "0.5293523"...
0.6617149
0
This function duplicate the steps of a test case
function duplicateStepsForTestCase($testCase, $relation, $clientID) { global $definitions; //DEFINITIONS $itemTypeStepsID = getClientItemTypeID_RelatedWith_byName($definitions['steps'], $clientID); //DEFINITIONS FOR PROPERTIES $tcParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['stepsTestCaseParentID'], $clientID); $relatedStepPropertyID = getClientPropertyID_RelatedWith_byName($definitions['stepsRelatedID'], $clientID); $relatedRelationPropertyID = getClientPropertyID_RelatedWith_byName($definitions['stepsRoundSubjectRelationID'], $clientID); //First, duplicate the steps inside the test case and set the new relation //build the return array $returnProperties = array(); //build the filter $filters = array(); $filters[] = array('ID' => $tcParentPropertyID, 'value' => $testCase); $filters[] = array('ID' => $relatedStepPropertyID, 'value' => 0); // get testcase steps $steps = getFilteredItemsIDs($itemTypeStepsID, $clientID, $filters, $returnProperties); foreach ($steps as $step) { // make a copy of the step $stepCopy = duplicateItem($itemTypeStepsID, $step['ID'], $clientID); // change some properties setPropertyValueByID($relatedStepPropertyID, $itemTypeStepsID, $stepCopy, $clientID, $step['ID'], '', $RSuserID); setPropertyValueByID($relatedRelationPropertyID, $itemTypeStepsID, $stepCopy, $clientID, $relation['ID'], '', $RSuserID); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function runTests()\n {\n $this->testCase(1, array (1, 1));\n $this->testCase(2, array (1, 2));\n $this->testCase(3, array (2, 2));\n $this->testCase(4, array (2, 2));\n $this->testCase(5, array (2, 3));\n $this->testCase(6, array (2, 3));\n $this->...
[ "0.65887916", "0.65253687", "0.64334506", "0.6366367", "0.6351567", "0.62950706", "0.62858593", "0.61406565", "0.6132214", "0.6116482", "0.60540974", "0.60418534", "0.603572", "0.60321826", "0.6024948", "0.60017884", "0.60017884", "0.60012907", "0.59583235", "0.593861", "0.59...
0.6459156
2
zavolat metodu rodice, ktera provede obecne hlavni kroky a nacte parametry
public function apiAction(Request $request) { parent::indexAction($request, ""); // KONTROLA ZABEZPECENI - pro jistotu // test, jestli je uzivatel prihlasen, pokud NE, tak redirect na LOGIN $this->checkAdminLogged(); // objekt pro praci s obyvateli $scheduler = new Scheduler(); $scheduler->SetPDOConnection($this->ds1->GetPDOConnection()); // DATA - v postu dostanu field a search // POZOR: data jsou ve formatu application/json a neni mozne je prijmout $_POST, musi se to takto: $json_data = file_get_contents("php://input"); $post_data = (array) json_decode($json_data); // zaroven pretypovat na pole // pro kontrolni vypis zpet do Angularu - zobrazit se to v konzoli: // print_r($post_data); // nacist vstupni data: field = napr. klicove_slovo, search: vstup od uživatele, např. lyž $select = @$post_data["select"]; $id = @$post_data["id"]; $limit = @$post_data["limit"]; if (!empty($limit)) { $scheduler->setLimit($limit); } switch($select) { case "days": return $this->selectServicesDays($scheduler); case "detail": return $this->selectDetailServices($scheduler, $id); case "time": return $this->selectServicesTime($scheduler); case "all": return $this->selectServicesAll($scheduler); case "obyvatel": return $this->selectServicesObyvatele($scheduler, $id); case "type": return $this->selectServicesType($scheduler, $id); case "history": return $this->selectServicesHistory($scheduler); case "types": return $this->selectTypes($scheduler); case "obInService": return $this->selectObyvatelInServices($scheduler); case "users": return $this->selectServicesUsers($scheduler); case "service": return $this->selectSpecificService($scheduler, $id); } return new JsonResponse("We have nothing to offer you."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Zapis_vsechny_kolize_v_zaveru_formulare ($pole, $idcka_skolizi, $iducast, $formular){\r\n //zapise kolize formulare \r\n self::Zapis_kolize_formulare($pole,$idcka_skolizi, $iducast, $formular);\r\n //-----------------------------------------------------------------------------\r\n \r\n \r\n ...
[ "0.6343705", "0.6323445", "0.630729", "0.6260156", "0.62524784", "0.6220938", "0.6208774", "0.62052613", "0.61596894", "0.61511743", "0.6004822", "0.5986814", "0.5985391", "0.595244", "0.5947402", "0.59426004", "0.59295815", "0.5901086", "0.5895857", "0.58798504", "0.5864931"...
0.0
-1
nacita detail jedne sluzby
private function selectDetailServices($scheduler, $id){ $result = $scheduler->adminLoadServiceDetail($id); return $this->transformToJSON($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sanphamdetail()\n\t\t{\n\t\t\t$id = $_GET['chitiet_sanpham'];\n\t\t\t//goi ham model de xu li\n\t\t\t$ketqua = $this->sanpham_model->OneRecordData1($id);\n\t\t\treturn $ketqua;\n\t\t}", "public function getDetail();", "public function detail(){\r\n\t\t//only ajax is allowed\r\n\t\tif(!$this->in...
[ "0.7121118", "0.7032738", "0.66960555", "0.6680659", "0.6623892", "0.6619089", "0.65787786", "0.65642756", "0.652367", "0.6519367", "0.65161127", "0.6511925", "0.649565", "0.6463777", "0.64018697", "0.63732517", "0.6353531", "0.6333449", "0.6327856", "0.63276976", "0.63235223...
0.0
-1
nacita vse o sluzbach
private function selectServicesAll($scheduler){ $result = $scheduler->adminLoadAllService(); return $this->transformToJSON($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valorpasaje();", "public function Zapis_vsechny_kolize_v_zaveru_formulare ($pole, $idcka_skolizi, $iducast, $formular){\r\n //zapise kolize formulare \r\n self::Zapis_kolize_formulare($pole,$idcka_skolizi, $iducast, $formular);\r\n //----------------------------------------------------------...
[ "0.70428383", "0.6815604", "0.67527896", "0.67498994", "0.6693766", "0.6678844", "0.6621182", "0.6617279", "0.65369576", "0.65358853", "0.64657897", "0.6455418", "0.6453334", "0.64334923", "0.6391967", "0.6363233", "0.63605577", "0.631687", "0.6279471", "0.62777925", "0.62738...
0.0
-1
nacita sluzby podle obyvatele
private function selectServicesObyvatele($scheduler, $id){ $result = $scheduler->adminLoadServiceObyvatel($id); return $this->transformToJSON($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function valorpasaje();", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast, $formular) { \r\n//znevalidneni vsech kolizi pro ucastnika a tento formular\r\n self::Znevalidni_kolize_ucastnika_formulare($iducast, $formular); ...
[ "0.66892415", "0.64546406", "0.64162046", "0.63975793", "0.6335729", "0.62612176", "0.620683", "0.6202906", "0.6181131", "0.6174497", "0.6172146", "0.6156974", "0.6150868", "0.6146335", "0.6125453", "0.6120123", "0.60771805", "0.6076578", "0.6061147", "0.6058047", "0.60566556...
0.0
-1
nacita sluzby podle typu
private function selectServicesType($scheduler, $id){ $result = $scheduler->adminLoadServiceType($id); return $this->transformToJSON($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function valorpasaje();", "public function masodik()\n {\n }", "public function nadar()\n {\n }", "public function contrato()\r\n\t{\r\n\t}", "abstract public function getPasiekimai();", "public function ispisiOsobu(){\n // echo \"...
[ "0.69627744", "0.65639246", "0.6440517", "0.62833834", "0.62246835", "0.62182826", "0.6182384", "0.6169467", "0.6159491", "0.6114522", "0.61074257", "0.6079935", "0.6059501", "0.60355026", "0.60133916", "0.59952754", "0.5884364", "0.5873616", "0.5855764", "0.5854049", "0.5842...
0.0
-1
nacita sluzby se zaznamem (jen ty co uz probehli tedy moznost pro nacteni detailu )
private function selectServicesHistory($scheduler ){ $result = $scheduler->adminLoadHistoryService(); return $this->transformToJSON($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNom();", "public function obtener_nombre()\n {\n echo \" el nombre es del alumno es: \" .$this -> nombre; \n }", "public function getNameLukasBodnariuc(): string{\r\n return $this->nameLukasBodnariuc . \" \" . $this->surnameLukasBodnariuc;\r\n }", "functi...
[ "0.6850276", "0.6742901", "0.66993076", "0.6638543", "0.6537316", "0.6462235", "0.6462235", "0.6420453", "0.6420453", "0.6416945", "0.64166665", "0.63890505", "0.6369147", "0.6349061", "0.63467467", "0.63467467", "0.63467467", "0.6335448", "0.63330793", "0.63249904", "0.63026...
0.0
-1
nacita jednotlive obyvatele kteri maji naplanovanou sluzbu
private function selectObyvatelInServices($scheduler ){ $result = $scheduler->adminLoadObyvatelInService(); return $this->transformToJSON($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function masodik()\n {\n }", "public function isplata($iznos){\n\n $stanjesalimitom=$this->stanje+$this->limit;\n\n if($iznos<=$stanjesalimitom){\n // $novostanje=$stanjesalimitom-$iznos;\n //echo \"Vas iznos je isplacen<br>\";\n /...
[ "0.6763633", "0.6498896", "0.6435336", "0.6400117", "0.6338507", "0.63028884", "0.62764853", "0.62628025", "0.6261086", "0.6244401", "0.6238245", "0.6198853", "0.6178986", "0.61770964", "0.6174095", "0.61623126", "0.61380106", "0.6130095", "0.61041707", "0.61007035", "0.60793...
0.0
-1
nacita jednotlive uzivatele s naplanovanou sluzbou
private function selectServicesUsers($scheduler ){ $result = $scheduler->adminLoadServiceUsers(); return $this->transformToJSON($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function uputstvo()\n {\n $this->prikaz(\"uputstvo\", []);\n }", "public static function Znevalidni_kolize_ucastnika_vsechny($iducast) {\r\n//echo \"<hr><br>*Znevalidnuji vsechny kolize ucastnika , formular=\" . $formular;\r\n \r\n $dbh = Projektor2_AppContext::getDB();\r\n\r\n //vyberu v...
[ "0.6261769", "0.6206415", "0.6167502", "0.61146504", "0.6073522", "0.606679", "0.6055197", "0.59345776", "0.5902912", "0.58943695", "0.58661616", "0.5826666", "0.57695", "0.57505834", "0.5731802", "0.5712274", "0.5703575", "0.569372", "0.5684364", "0.5673018", "0.5661475", ...
0.0
-1
nacita sluzbu podle jejiho ID
private function selectSpecificService($scheduler, $id ){ $result = $scheduler->adminLoadServiceSpecific($id); return $this->transformToJSON($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getID();", "public function getID();", "public function getID();", "public function get_id();", "public function get_id();", "public function id();", "public function id();", "public function id();", "public function id();", "public function id();", "public function id();", "p...
[ "0.7739128", "0.7739128", "0.7739128", "0.7633263", "0.7633263", "0.7601631", "0.7601631", "0.7601631", "0.7601631", "0.7601631", "0.7601631", "0.7601631", "0.7601631", "0.7601631", "0.7561888", "0.75478244", "0.75478244", "0.75325245", "0.75201696", "0.7520006", "0.7516258",...
0.0
-1
transformuje vysledky z DB do JSONu
private function transformToJSON ($result) { $data_for_response = array(); if ($result){ $data_for_response["msg"] = "ok"; foreach ($result as $service) { $data_for_response["results"][] = $service; } }else { $data_for_response["msg"] = "fail - no data found!"; } return new JsonResponse($data_for_response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toJson();", "public function toJson();", "public function jsonSerialize()\n {\n return $this->tinydb_get_serializable_data();\n }", "public function toJSON() {\n\n $oServidor = ServidorRepository::getInstanciaByCodigo(\n $this->getMatricula(),\n DBPessoal...
[ "0.6133322", "0.6133322", "0.60462767", "0.60450554", "0.5973576", "0.5928447", "0.592475", "0.59096986", "0.59087414", "0.58941096", "0.58303803", "0.58032423", "0.58032423", "0.58032423", "0.58032423", "0.58032423", "0.58032423", "0.58032423", "0.58032423", "0.5780656", "0....
0.0
-1
Returns path to image. Gallery is define by ID.
abstract public function getPathImage($id, $filename);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getImagePath () {\n return luxbum::getImage($this->dir, $this->file);\n }", "function ImageFile()\n\t{\treturn $this->imagedir . (int)$this->id . \".jpg\";\n\t}", "public function getImagePath()\n {\n return $this->getImagesFolder() . '/' . $this->getRootImagePath();\n }", "publi...
[ "0.70817566", "0.6955634", "0.67909914", "0.67677885", "0.67656475", "0.6746698", "0.67443603", "0.67343765", "0.6726124", "0.6713007", "0.66791016", "0.6635203", "0.66279024", "0.6602257", "0.65997326", "0.65807176", "0.6576765", "0.65731096", "0.6536184", "0.65257263", "0.6...
0.7338167
0
Changes ordering of file to left.
abstract public function moveLeft($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveLeft()\n {\n $this->position--;\n if ($this->position < 0) {\n $this->position++;\n array_unshift($this->line, '_');\n }\n }", "function orderdown() {\n\t\torder(-1);\n\t}", "public function rotateLeft();", "function moveRight()\n {\n $t...
[ "0.67862177", "0.55442137", "0.55202234", "0.5433197", "0.54241836", "0.541454", "0.5405853", "0.53767693", "0.5365945", "0.53263277", "0.5319033", "0.5267803", "0.52632487", "0.5222855", "0.5182751", "0.51150364", "0.50972545", "0.50861746", "0.50426984", "0.5036923", "0.502...
0.56322354
1
Changes ordering of file to right.
abstract public function moveRight($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveRight()\n {\n $this->position++;\n if ($this->position >= count($this->line)) {\n array_push($this->line, '_');\n }\n }", "function changeOrder() {\n $this->iteratorH = array_reverse($this->iteratorH);\n }", "private function rotate() {\n\t\t/* @var ...
[ "0.63709867", "0.601009", "0.56289303", "0.5619757", "0.54461527", "0.52787673", "0.52694744", "0.5219468", "0.51456875", "0.51101816", "0.5086046", "0.5073166", "0.5055275", "0.5033563", "0.5004794", "0.49952954", "0.49535945", "0.4952535", "0.49372664", "0.4907106", "0.4902...
0.5144927
9
Returns all photos in gallery. If admin is true returns invisible photos too.
abstract public function getByGallery($id, $admin = false);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGallery()\n {\n return $this->getItems()->getItems()->andWhere(['type' => 'gallery']);\n\n }", "public function get_all_gallery_images() {\n\n\t\tcheck_ajax_referer( 'daylife-gallery-add-nonce', 'nonce' );\n\t\trequire_once( dirname( __FILE__ ) . '/class-wp-daylife-api.php' );\n\t...
[ "0.7446688", "0.71433467", "0.7114587", "0.70431155", "0.70430017", "0.70332485", "0.6920346", "0.687838", "0.6803603", "0.67782533", "0.6724931", "0.671263", "0.6689347", "0.6680222", "0.6662867", "0.66008234", "0.6572055", "0.65330446", "0.65083766", "0.6475394", "0.647224"...
0.65843785
16
Returns information for photo by given id.
abstract public function getById($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPhoto($id);", "function getPhotoInfo($photoId);", "public function getPhoto($id)\n {\n $res = $this->db->select(\"SELECT * FROM `{$this->domainPhoto}` WHERE itemName()='{$id}'\", array('ConsistentRead' => 'true'));\n $this->logErrors($res);\n if(isset($res->body->SelectResult->Item...
[ "0.86148846", "0.82478034", "0.7939101", "0.78117687", "0.76279664", "0.7617161", "0.7611939", "0.7607837", "0.755626", "0.7458441", "0.7366674", "0.7341912", "0.7276771", "0.7253216", "0.72277224", "0.7226098", "0.72216177", "0.70732707", "0.70658284", "0.70450896", "0.70434...
0.0
-1
get name of currently active menu
private function getCurrentMenuName(){ if(!$this->currentmenuname) $this->setCurrentMenuName(); return $this->currentmenuname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function menu_get_active_title()\n {\n return menu_get_active_title();\n }", "protected function _getMenuName()\n\t{\n\t\treturn self::$_sMenuName;\n\t}", "private function setCurrentMenuName(){\n \n $currentmenuname = NULL;\n \n foreach(array_keys(menu_ui_get_menus()) as $menun...
[ "0.8192552", "0.7741272", "0.74787724", "0.7426227", "0.7187578", "0.70964164", "0.70712155", "0.70094985", "0.69799507", "0.69750637", "0.6937813", "0.6934306", "0.69078887", "0.676227", "0.67540586", "0.6704641", "0.66280884", "0.66134053", "0.65600723", "0.6549534", "0.653...
0.844474
0
get menu tree output
public function getTreeOutput(){ if(!$this->treeoutput) $this->setTreeOutput(); return $this->treeoutput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getMenuTree();", "private function setTreeOutput(){\n \n $item = $this->item;\n \n $treeoutput = NULL;\n $menuname = NULL;\n $parameters = NULL;\n \n $menutree = \\Drupal::menuTree();\n \n if($item->menu_name == 'active-menu'){\n \n $menuname = $t...
[ "0.82591563", "0.7686194", "0.7588158", "0.74582005", "0.71252334", "0.70664406", "0.7011994", "0.7001981", "0.6976187", "0.6924417", "0.6894052", "0.68812627", "0.6881028", "0.68802756", "0.6879682", "0.6879682", "0.6877606", "0.6877606", "0.6877606", "0.6877606", "0.6877606...
0.62787104
69
set name of currently active menu
private function setCurrentMenuName(){ $currentmenuname = NULL; foreach(array_keys(menu_ui_get_menus()) as $menuname){ $activelink = \Drupal::service('menu.active_trail')->getActiveLink($menuname); if(!empty($activelink)) $currentmenuname = $menuname; } $this->currentmenuname = $currentmenuname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate_menu_item($name)\n\t{\n\t\t$this->_active_item = $name;\n\t}", "private function getCurrentMenuName(){\n \n if(!$this->currentmenuname)\n $this->setCurrentMenuName();\n \n return $this->currentmenuname;\n \n }", "public function setNameMenu( $name = NULL ){\n\t\t$t...
[ "0.73577625", "0.72689193", "0.72062", "0.6825129", "0.6769948", "0.66666394", "0.63398755", "0.62708247", "0.6180183", "0.6150929", "0.61056125", "0.6017139", "0.6016042", "0.600131", "0.5976361", "0.59685475", "0.5942405", "0.5936161", "0.5909389", "0.59001833", "0.5896184"...
0.83405966
0
set tree menu output
private function setTreeOutput(){ $item = $this->item; $treeoutput = NULL; $menuname = NULL; $parameters = NULL; $menutree = \Drupal::menuTree(); if($item->menu_name == 'active-menu'){ $menuname = $this->getCurrentMenuName(); if($menuname) $parameters = $menutree->getCurrentRouteMenuTreeParameters($menuname); }else{ $parameters = new MenuTreeParameters(); $parameters->root = $item->menu_plid; $menuname = $item->menu_name; } if($parameters && $menuname){ $parameters->setMaxDepth($item->menu_level); $tree = $menutree->load($menuname, $parameters); $treeoutput = $menutree->build($tree); } $this->treeoutput = $treeoutput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function menu_tree_output($tree)\n {\n return menu_tree_output($tree);\n }", "abstract protected function getMenuTree();", "function show_tree(){\n\t\t\t\t\tswitch(LINK_TYPE){\n\t\t\t\t\t\tcase \"static\":\n\t\t\t\t\t\t\treturn $this->show_tree_static();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcas...
[ "0.74459684", "0.73401934", "0.7000974", "0.6971639", "0.687586", "0.67948323", "0.67288136", "0.67284083", "0.6727923", "0.6727923", "0.66981566", "0.666226", "0.66375524", "0.6573268", "0.65616155", "0.65614253", "0.65428555", "0.65063876", "0.649541", "0.6465559", "0.64205...
0.8216575
0
Display a listing of the usuario. GET|HEAD /usuarios
public function index(Request $request) { $usuarios = $this->usuarioRepository->all( $request->except(['skip', 'limit']), $request->get('skip'), $request->get('limit') ); return $this->sendResponse($usuarios->toArray(), 'Usuarios retrieved successfully'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listarUsuariosAction(){\n\t\t$em = $this->getDoctrine()->getManager();\n\t\t$usuario = $em->getRepository('TheClickCmsAdminBundle:Usuarios')->findAll();\n\t\treturn $this->render('TheClickCmsAdminBundle:Default:listarUsuarios.html.twig', array('usuario' => $usuario));\n\t}", "public function show...
[ "0.8237987", "0.7894338", "0.779039", "0.77085334", "0.77069235", "0.76667064", "0.7635397", "0.7629959", "0.7616057", "0.7614678", "0.7600047", "0.75940025", "0.7577003", "0.7568033", "0.7568033", "0.75564915", "0.7545871", "0.7543463", "0.7524099", "0.75187844", "0.7504789"...
0.0
-1
Store a newly created usuario in storage. POST /usuarios
public function store(CreateusuarioAPIRequest $request) { $input = $request->all(); //TODO: error_log(json_encode($input)); $input["rol"] = $this->loadRol($input["rol"]); $input["fecha_nacimiento"] = $this->loadFechaNacimiento($input); $input['password'] = Hash::make($input['password']); $usuario = $this->usuarioRepository->create($input); return $this->sendResponse($usuario->toArray(), 'Usuario saved successfully'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(CreateUsuarioRequest $request)\n {\n $empresa_id = $request->EMPRESA_ID;\n $codigoProveedorSap = $request->codigoProveedorSap;\n //dd($request->all());\n\n $usuario = new User();\n\n $usuario->nombre = $request->nombre;\n $usuario->email = $request...
[ "0.77160746", "0.7660578", "0.7599462", "0.75670785", "0.75288874", "0.74884486", "0.74745804", "0.74569935", "0.7447692", "0.74243057", "0.7417932", "0.7398573", "0.7395772", "0.7393412", "0.7382085", "0.7382073", "0.73697007", "0.7320803", "0.73194784", "0.7308013", "0.7280...
0.0
-1
Display a listing of the resource.
public function index() { $admin = Admin::orderBy('nia')->get(); return view('admin.index', compact('admin')); }
{ "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) { $rules = array( 'nia' => 'required|min:3|numeric', 'nama' => 'required', 'password' => 'required' ); $error = Validator::make($request->all(), $rules); if ($error->fails()) { return response()->json(['errors' => $error->errors()->all()]); } if (Hash::needsRehash($request->password)) { $password = Hash::make($request->password); } $id = rand(1000,9000).rand(10,99).date("y"); $data = array( 'id' => $id, 'nia' => $request->nia, 'nama' => $request->nama, 'password' => $password ); Admin::create($data); return response()->json(['success' => 'Data Berhasil Ditambahkan']); }
{ "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(Admin $admin) { // }
{ "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(Admin $admin) { // }
{ "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, Admin $admin) { $request->validate([ 'id' => 'required', 'nia' => 'required', 'nama' => 'required' ]); $id = $request->id; $data = Admin::where('id',$admin->id)->first(); $pass = $data->password; $password = $request->password; if ($pass == $password) { Admin::where('id',$admin->id)->update([ 'nia' => $request->nia, 'nama' => $request->nama ]); }else{ if (Hash::needsRehash($request->password)) { $password = Hash::make($request->password); } Admin::where('id',$admin->id)->update([ 'nia' => $request->nia, 'nama' => $request->nama, 'password' => $password ]); } return redirect('admin')->with('status','Data '.$request->nama.' berhasil di Ubah'); }
{ "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(Admin $admin) { $nama = $admin->nama; $id = $admin->id; Admin::destroy($id); return redirect('admin')->with('status','Data '.$nama.' berhasil dihapus'); }
{ "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
Styles CSS et Script JS
function womendevs_enqueue_style() { // Bootstrap CSS wp_enqueue_style( 'bootstrap', '//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' , false ); // Google Font wp_enqueue_style( 'googlefont', '//fonts.googleapis.com/css?family=Roboto' , false ); // Font Awesome wp_enqueue_style( 'fontawesome', '//use.fontawesome.com/releases/v5.8.1/css/all.css' , false ); // Ma feuille CSS wp_enqueue_style( 'core', get_stylesheet_uri() , false ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function css() {\r\n\t\tif ($this->cssLink != false) {\r\n\t\t\tif($this->scriptTo) {\r\n\t\t\t\t$elem = pzk_element($this->scriptTo);\r\n\t\t\t\t$elem->append(pzk_parse('<html.css src=\"'.BASE_REQUEST.'/default/skin/'.pzk_app()->name.'/css/'.$this->cssLink.'.css\" />'));\r\n\t\t\t} else {\r\n\t\t\t\tif($pa...
[ "0.7264032", "0.70890117", "0.70715135", "0.69279563", "0.67542344", "0.6696553", "0.6615371", "0.6590148", "0.6581412", "0.657947", "0.65727127", "0.6538414", "0.6409961", "0.64028174", "0.64023525", "0.6375011", "0.636637", "0.6331898", "0.63275564", "0.6312378", "0.6306614...
0.0
-1
Create a new controller instance.
public function __construct(UserRepository $userRepo, UserService $userService) { $this->userRepo = $userRepo; $this->userService = $userService; $this->beforeFilter('permission:view_user', array('only' => array('index', 'show'))); $this->beforeFilter('permission:create_user', array('only' => array('create'))); $this->beforeFilter('permission:edit_user', array('only' => array('edit'))); }
{ "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.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Display the user management list
public function index() { // $users = $this->userRepo->getPaginatedWhere(3, 'disabled', 1); $users = $this->userRepo->getUserIndex(Input::all()); return View::make('user.index')->with('users', $users); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function userlist()\n\t{\n\t\t$data['page']='Userlist';\n\t\t$data['users_list']=$this->users->get_many_by('userlevel_id',2);\n\t\t$view = 'admin/userlist/admin_userlist_view';\n\t\techo Modules::run('template/admin_template', $view, $data);\t\n\t}", "public function _list()\n\t{\n\t\t_root::getRequest()-...
[ "0.80328774", "0.79829454", "0.79617774", "0.7936461", "0.78770405", "0.78609973", "0.7753942", "0.7744209", "0.7698048", "0.76405257", "0.759406", "0.75901765", "0.7579566", "0.75531316", "0.7537325", "0.74891394", "0.74805313", "0.74687713", "0.7464593", "0.7462214", "0.744...
0.0
-1
Show the form for creating a new user.
public function create() { $available_roles = $this->userService->getAvailableRolesForSelect(Auth::user()->getLevel()); return View::make('user.create', compact('available_roles')); }
{ "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